2000-03-21 Eli Zaretskii <eliz@is.elta.co.il>
[deliverable/binutils-gdb.git] / ld / configure
1 #! /bin/sh
2
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
6 #
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9
10 # Defaults:
11 ac_help=
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
14 ac_help="$ac_help
15 --enable-shared[=PKGS] build shared libraries [default=yes]"
16 ac_help="$ac_help
17 --enable-static[=PKGS] build static libraries [default=yes]"
18 ac_help="$ac_help
19 --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
20 ac_help="$ac_help
21 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
22 ac_help="$ac_help
23 --disable-libtool-lock avoid locking (might break parallel builds)"
24 ac_help="$ac_help
25 --enable-targets alternative target configurations"
26 ac_help="$ac_help
27 --enable-64-bit-bfd 64-bit support (on hosts with narrower word sizes)"
28 ac_help="$ac_help
29 --disable-nls do not use Native Language Support"
30 ac_help="$ac_help
31 --with-included-gettext use the GNU gettext library included here"
32 ac_help="$ac_help
33 --enable-maintainer-mode enable make rules and dependencies not useful
34 (and sometimes confusing) to the casual installer"
35
36 # Initialize some variables set by options.
37 # The variables have the same names as the options, with
38 # dashes changed to underlines.
39 build=NONE
40 cache_file=./config.cache
41 exec_prefix=NONE
42 host=NONE
43 no_create=
44 nonopt=NONE
45 no_recursion=
46 prefix=NONE
47 program_prefix=NONE
48 program_suffix=NONE
49 program_transform_name=s,x,x,
50 silent=
51 site=
52 sitefile=
53 srcdir=
54 target=NONE
55 verbose=
56 x_includes=NONE
57 x_libraries=NONE
58 bindir='${exec_prefix}/bin'
59 sbindir='${exec_prefix}/sbin'
60 libexecdir='${exec_prefix}/libexec'
61 datadir='${prefix}/share'
62 sysconfdir='${prefix}/etc'
63 sharedstatedir='${prefix}/com'
64 localstatedir='${prefix}/var'
65 libdir='${exec_prefix}/lib'
66 includedir='${prefix}/include'
67 oldincludedir='/usr/include'
68 infodir='${prefix}/info'
69 mandir='${prefix}/man'
70
71 # Initialize some other variables.
72 subdirs=
73 MFLAGS= MAKEFLAGS=
74 SHELL=${CONFIG_SHELL-/bin/sh}
75 # Maximum number of lines to put in a shell here document.
76 ac_max_here_lines=12
77
78 ac_prev=
79 for ac_option
80 do
81
82 # If the previous option needs an argument, assign it.
83 if test -n "$ac_prev"; then
84 eval "$ac_prev=\$ac_option"
85 ac_prev=
86 continue
87 fi
88
89 case "$ac_option" in
90 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
91 *) ac_optarg= ;;
92 esac
93
94 # Accept the important Cygnus configure options, so we can diagnose typos.
95
96 case "$ac_option" in
97
98 -bindir | --bindir | --bindi | --bind | --bin | --bi)
99 ac_prev=bindir ;;
100 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
101 bindir="$ac_optarg" ;;
102
103 -build | --build | --buil | --bui | --bu)
104 ac_prev=build ;;
105 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
106 build="$ac_optarg" ;;
107
108 -cache-file | --cache-file | --cache-fil | --cache-fi \
109 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
110 ac_prev=cache_file ;;
111 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
112 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
113 cache_file="$ac_optarg" ;;
114
115 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
116 ac_prev=datadir ;;
117 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
118 | --da=*)
119 datadir="$ac_optarg" ;;
120
121 -disable-* | --disable-*)
122 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
123 # Reject names that are not valid shell variable names.
124 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
125 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
126 fi
127 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
128 eval "enable_${ac_feature}=no" ;;
129
130 -enable-* | --enable-*)
131 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
132 # Reject names that are not valid shell variable names.
133 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
134 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
135 fi
136 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
137 case "$ac_option" in
138 *=*) ;;
139 *) ac_optarg=yes ;;
140 esac
141 eval "enable_${ac_feature}='$ac_optarg'" ;;
142
143 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
144 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
145 | --exec | --exe | --ex)
146 ac_prev=exec_prefix ;;
147 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
148 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
149 | --exec=* | --exe=* | --ex=*)
150 exec_prefix="$ac_optarg" ;;
151
152 -gas | --gas | --ga | --g)
153 # Obsolete; use --with-gas.
154 with_gas=yes ;;
155
156 -help | --help | --hel | --he)
157 # Omit some internal or obsolete options to make the list less imposing.
158 # This message is too long to be a string in the A/UX 3.1 sh.
159 cat << EOF
160 Usage: configure [options] [host]
161 Options: [defaults in brackets after descriptions]
162 Configuration:
163 --cache-file=FILE cache test results in FILE
164 --help print this message
165 --no-create do not create output files
166 --quiet, --silent do not print \`checking...' messages
167 --site-file=FILE use FILE as the site file
168 --version print the version of autoconf that created configure
169 Directory and file names:
170 --prefix=PREFIX install architecture-independent files in PREFIX
171 [$ac_default_prefix]
172 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
173 [same as prefix]
174 --bindir=DIR user executables in DIR [EPREFIX/bin]
175 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
176 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
177 --datadir=DIR read-only architecture-independent data in DIR
178 [PREFIX/share]
179 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
180 --sharedstatedir=DIR modifiable architecture-independent data in DIR
181 [PREFIX/com]
182 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
183 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
184 --includedir=DIR C header files in DIR [PREFIX/include]
185 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
186 --infodir=DIR info documentation in DIR [PREFIX/info]
187 --mandir=DIR man documentation in DIR [PREFIX/man]
188 --srcdir=DIR find the sources in DIR [configure dir or ..]
189 --program-prefix=PREFIX prepend PREFIX to installed program names
190 --program-suffix=SUFFIX append SUFFIX to installed program names
191 --program-transform-name=PROGRAM
192 run sed PROGRAM on installed program names
193 EOF
194 cat << EOF
195 Host type:
196 --build=BUILD configure for building on BUILD [BUILD=HOST]
197 --host=HOST configure for HOST [guessed]
198 --target=TARGET configure for TARGET [TARGET=HOST]
199 Features and packages:
200 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
201 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
202 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
203 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
204 --x-includes=DIR X include files are in DIR
205 --x-libraries=DIR X library files are in DIR
206 EOF
207 if test -n "$ac_help"; then
208 echo "--enable and --with options recognized:$ac_help"
209 fi
210 exit 0 ;;
211
212 -host | --host | --hos | --ho)
213 ac_prev=host ;;
214 -host=* | --host=* | --hos=* | --ho=*)
215 host="$ac_optarg" ;;
216
217 -includedir | --includedir | --includedi | --included | --include \
218 | --includ | --inclu | --incl | --inc)
219 ac_prev=includedir ;;
220 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
221 | --includ=* | --inclu=* | --incl=* | --inc=*)
222 includedir="$ac_optarg" ;;
223
224 -infodir | --infodir | --infodi | --infod | --info | --inf)
225 ac_prev=infodir ;;
226 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
227 infodir="$ac_optarg" ;;
228
229 -libdir | --libdir | --libdi | --libd)
230 ac_prev=libdir ;;
231 -libdir=* | --libdir=* | --libdi=* | --libd=*)
232 libdir="$ac_optarg" ;;
233
234 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
235 | --libexe | --libex | --libe)
236 ac_prev=libexecdir ;;
237 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
238 | --libexe=* | --libex=* | --libe=*)
239 libexecdir="$ac_optarg" ;;
240
241 -localstatedir | --localstatedir | --localstatedi | --localstated \
242 | --localstate | --localstat | --localsta | --localst \
243 | --locals | --local | --loca | --loc | --lo)
244 ac_prev=localstatedir ;;
245 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
246 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
247 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
248 localstatedir="$ac_optarg" ;;
249
250 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
251 ac_prev=mandir ;;
252 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
253 mandir="$ac_optarg" ;;
254
255 -nfp | --nfp | --nf)
256 # Obsolete; use --without-fp.
257 with_fp=no ;;
258
259 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
260 | --no-cr | --no-c)
261 no_create=yes ;;
262
263 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
264 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
265 no_recursion=yes ;;
266
267 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
268 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
269 | --oldin | --oldi | --old | --ol | --o)
270 ac_prev=oldincludedir ;;
271 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
272 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
273 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
274 oldincludedir="$ac_optarg" ;;
275
276 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
277 ac_prev=prefix ;;
278 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
279 prefix="$ac_optarg" ;;
280
281 -program-prefix | --program-prefix | --program-prefi | --program-pref \
282 | --program-pre | --program-pr | --program-p)
283 ac_prev=program_prefix ;;
284 -program-prefix=* | --program-prefix=* | --program-prefi=* \
285 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
286 program_prefix="$ac_optarg" ;;
287
288 -program-suffix | --program-suffix | --program-suffi | --program-suff \
289 | --program-suf | --program-su | --program-s)
290 ac_prev=program_suffix ;;
291 -program-suffix=* | --program-suffix=* | --program-suffi=* \
292 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
293 program_suffix="$ac_optarg" ;;
294
295 -program-transform-name | --program-transform-name \
296 | --program-transform-nam | --program-transform-na \
297 | --program-transform-n | --program-transform- \
298 | --program-transform | --program-transfor \
299 | --program-transfo | --program-transf \
300 | --program-trans | --program-tran \
301 | --progr-tra | --program-tr | --program-t)
302 ac_prev=program_transform_name ;;
303 -program-transform-name=* | --program-transform-name=* \
304 | --program-transform-nam=* | --program-transform-na=* \
305 | --program-transform-n=* | --program-transform-=* \
306 | --program-transform=* | --program-transfor=* \
307 | --program-transfo=* | --program-transf=* \
308 | --program-trans=* | --program-tran=* \
309 | --progr-tra=* | --program-tr=* | --program-t=*)
310 program_transform_name="$ac_optarg" ;;
311
312 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
313 | -silent | --silent | --silen | --sile | --sil)
314 silent=yes ;;
315
316 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
317 ac_prev=sbindir ;;
318 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
319 | --sbi=* | --sb=*)
320 sbindir="$ac_optarg" ;;
321
322 -sharedstatedir | --sharedstatedir | --sharedstatedi \
323 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
324 | --sharedst | --shareds | --shared | --share | --shar \
325 | --sha | --sh)
326 ac_prev=sharedstatedir ;;
327 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
328 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
329 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
330 | --sha=* | --sh=*)
331 sharedstatedir="$ac_optarg" ;;
332
333 -site | --site | --sit)
334 ac_prev=site ;;
335 -site=* | --site=* | --sit=*)
336 site="$ac_optarg" ;;
337
338 -site-file | --site-file | --site-fil | --site-fi | --site-f)
339 ac_prev=sitefile ;;
340 -site-file=* | --site-file=* | --site-fil=* | --site-fi=* | --site-f=*)
341 sitefile="$ac_optarg" ;;
342
343 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
344 ac_prev=srcdir ;;
345 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
346 srcdir="$ac_optarg" ;;
347
348 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
349 | --syscon | --sysco | --sysc | --sys | --sy)
350 ac_prev=sysconfdir ;;
351 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
352 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
353 sysconfdir="$ac_optarg" ;;
354
355 -target | --target | --targe | --targ | --tar | --ta | --t)
356 ac_prev=target ;;
357 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
358 target="$ac_optarg" ;;
359
360 -v | -verbose | --verbose | --verbos | --verbo | --verb)
361 verbose=yes ;;
362
363 -version | --version | --versio | --versi | --vers)
364 echo "configure generated by autoconf version 2.13"
365 exit 0 ;;
366
367 -with-* | --with-*)
368 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
369 # Reject names that are not valid shell variable names.
370 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
371 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
372 fi
373 ac_package=`echo $ac_package| sed 's/-/_/g'`
374 case "$ac_option" in
375 *=*) ;;
376 *) ac_optarg=yes ;;
377 esac
378 eval "with_${ac_package}='$ac_optarg'" ;;
379
380 -without-* | --without-*)
381 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
382 # Reject names that are not valid shell variable names.
383 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
384 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
385 fi
386 ac_package=`echo $ac_package| sed 's/-/_/g'`
387 eval "with_${ac_package}=no" ;;
388
389 --x)
390 # Obsolete; use --with-x.
391 with_x=yes ;;
392
393 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
394 | --x-incl | --x-inc | --x-in | --x-i)
395 ac_prev=x_includes ;;
396 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
397 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
398 x_includes="$ac_optarg" ;;
399
400 -x-libraries | --x-libraries | --x-librarie | --x-librari \
401 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
402 ac_prev=x_libraries ;;
403 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
404 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
405 x_libraries="$ac_optarg" ;;
406
407 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
408 ;;
409
410 *)
411 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
412 echo "configure: warning: $ac_option: invalid host type" 1>&2
413 fi
414 if test "x$nonopt" != xNONE; then
415 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
416 fi
417 nonopt="$ac_option"
418 ;;
419
420 esac
421 done
422
423 if test -n "$ac_prev"; then
424 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
425 fi
426
427 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
428
429 # File descriptor usage:
430 # 0 standard input
431 # 1 file creation
432 # 2 errors and warnings
433 # 3 some systems may open it to /dev/tty
434 # 4 used on the Kubota Titan
435 # 6 checking for... messages and results
436 # 5 compiler messages saved in config.log
437 if test "$silent" = yes; then
438 exec 6>/dev/null
439 else
440 exec 6>&1
441 fi
442 exec 5>./config.log
443
444 echo "\
445 This file contains any messages produced by compilers while
446 running configure, to aid debugging if configure makes a mistake.
447 " 1>&5
448
449 # Strip out --no-create and --no-recursion so they do not pile up.
450 # Also quote any args containing shell metacharacters.
451 ac_configure_args=
452 for ac_arg
453 do
454 case "$ac_arg" in
455 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
456 | --no-cr | --no-c) ;;
457 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
458 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
459 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
460 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
461 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
462 esac
463 done
464
465 # NLS nuisances.
466 # Only set these to C if already set. These must not be set unconditionally
467 # because not all systems understand e.g. LANG=C (notably SCO).
468 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
469 # Non-C LC_CTYPE values break the ctype check.
470 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
471 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
472 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
473 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
474
475 # confdefs.h avoids OS command line length limits that DEFS can exceed.
476 rm -rf conftest* confdefs.h
477 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
478 echo > confdefs.h
479
480 # A filename unique to this package, relative to the directory that
481 # configure is in, which we can look for to find out if srcdir is correct.
482 ac_unique_file=ldmain.c
483
484 # Find the source files, if location was not specified.
485 if test -z "$srcdir"; then
486 ac_srcdir_defaulted=yes
487 # Try the directory containing this script, then its parent.
488 ac_prog=$0
489 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
490 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
491 srcdir=$ac_confdir
492 if test ! -r $srcdir/$ac_unique_file; then
493 srcdir=..
494 fi
495 else
496 ac_srcdir_defaulted=no
497 fi
498 if test ! -r $srcdir/$ac_unique_file; then
499 if test "$ac_srcdir_defaulted" = yes; then
500 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
501 else
502 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
503 fi
504 fi
505 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
506
507 # Prefer explicitly selected file to automatically selected ones.
508 if test -z "$sitefile"; then
509 if test -z "$CONFIG_SITE"; then
510 if test "x$prefix" != xNONE; then
511 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
512 else
513 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
514 fi
515 fi
516 else
517 CONFIG_SITE="$sitefile"
518 fi
519 for ac_site_file in $CONFIG_SITE; do
520 if test -r "$ac_site_file"; then
521 echo "loading site script $ac_site_file"
522 . "$ac_site_file"
523 fi
524 done
525
526 if test -r "$cache_file"; then
527 echo "loading cache $cache_file"
528 . $cache_file
529 else
530 echo "creating cache $cache_file"
531 > $cache_file
532 fi
533
534 ac_ext=c
535 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
536 ac_cpp='$CPP $CPPFLAGS'
537 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
538 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
539 cross_compiling=$ac_cv_prog_cc_cross
540
541 ac_exeext=
542 ac_objext=o
543 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
544 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
545 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
546 ac_n= ac_c='
547 ' ac_t=' '
548 else
549 ac_n=-n ac_c= ac_t=
550 fi
551 else
552 ac_n= ac_c='\c' ac_t=
553 fi
554
555
556
557 ac_aux_dir=
558 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
559 if test -f $ac_dir/install-sh; then
560 ac_aux_dir=$ac_dir
561 ac_install_sh="$ac_aux_dir/install-sh -c"
562 break
563 elif test -f $ac_dir/install.sh; then
564 ac_aux_dir=$ac_dir
565 ac_install_sh="$ac_aux_dir/install.sh -c"
566 break
567 fi
568 done
569 if test -z "$ac_aux_dir"; then
570 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
571 fi
572 ac_config_guess=$ac_aux_dir/config.guess
573 ac_config_sub=$ac_aux_dir/config.sub
574 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
575
576
577 # Do some error checking and defaulting for the host and target type.
578 # The inputs are:
579 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
580 #
581 # The rules are:
582 # 1. You are not allowed to specify --host, --target, and nonopt at the
583 # same time.
584 # 2. Host defaults to nonopt.
585 # 3. If nonopt is not specified, then host defaults to the current host,
586 # as determined by config.guess.
587 # 4. Target and build default to nonopt.
588 # 5. If nonopt is not specified, then target and build default to host.
589
590 # The aliases save the names the user supplied, while $host etc.
591 # will get canonicalized.
592 case $host---$target---$nonopt in
593 NONE---*---* | *---NONE---* | *---*---NONE) ;;
594 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
595 esac
596
597
598 # Make sure we can run config.sub.
599 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
600 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
601 fi
602
603 echo $ac_n "checking host system type""... $ac_c" 1>&6
604 echo "configure:605: checking host system type" >&5
605
606 host_alias=$host
607 case "$host_alias" in
608 NONE)
609 case $nonopt in
610 NONE)
611 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
612 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
613 fi ;;
614 *) host_alias=$nonopt ;;
615 esac ;;
616 esac
617
618 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
619 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
620 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
621 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
622 echo "$ac_t""$host" 1>&6
623
624 echo $ac_n "checking target system type""... $ac_c" 1>&6
625 echo "configure:626: checking target system type" >&5
626
627 target_alias=$target
628 case "$target_alias" in
629 NONE)
630 case $nonopt in
631 NONE) target_alias=$host_alias ;;
632 *) target_alias=$nonopt ;;
633 esac ;;
634 esac
635
636 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
637 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
638 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
639 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
640 echo "$ac_t""$target" 1>&6
641
642 echo $ac_n "checking build system type""... $ac_c" 1>&6
643 echo "configure:644: checking build system type" >&5
644
645 build_alias=$build
646 case "$build_alias" in
647 NONE)
648 case $nonopt in
649 NONE) build_alias=$host_alias ;;
650 *) build_alias=$nonopt ;;
651 esac ;;
652 esac
653
654 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
655 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
656 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
657 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
658 echo "$ac_t""$build" 1>&6
659
660 test "$host_alias" != "$target_alias" &&
661 test "$program_prefix$program_suffix$program_transform_name" = \
662 NONENONEs,x,x, &&
663 program_prefix=${target_alias}-
664
665
666 # Find a good install program. We prefer a C program (faster),
667 # so one script is as good as another. But avoid the broken or
668 # incompatible versions:
669 # SysV /etc/install, /usr/sbin/install
670 # SunOS /usr/etc/install
671 # IRIX /sbin/install
672 # AIX /bin/install
673 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
674 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
675 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
676 # ./install, which can be erroneously created by make from ./install.sh.
677 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
678 echo "configure:679: checking for a BSD compatible install" >&5
679 if test -z "$INSTALL"; then
680 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
681 echo $ac_n "(cached) $ac_c" 1>&6
682 else
683 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
684 for ac_dir in $PATH; do
685 # Account for people who put trailing slashes in PATH elements.
686 case "$ac_dir/" in
687 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
688 *)
689 # OSF1 and SCO ODT 3.0 have their own names for install.
690 # Don't use installbsd from OSF since it installs stuff as root
691 # by default.
692 for ac_prog in ginstall scoinst install; do
693 if test -f $ac_dir/$ac_prog; then
694 if test $ac_prog = install &&
695 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
696 # AIX install. It has an incompatible calling convention.
697 :
698 else
699 ac_cv_path_install="$ac_dir/$ac_prog -c"
700 break 2
701 fi
702 fi
703 done
704 ;;
705 esac
706 done
707 IFS="$ac_save_IFS"
708
709 fi
710 if test "${ac_cv_path_install+set}" = set; then
711 INSTALL="$ac_cv_path_install"
712 else
713 # As a last resort, use the slow shell script. We don't cache a
714 # path for INSTALL within a source directory, because that will
715 # break other packages using the cache if that directory is
716 # removed, or if the path is relative.
717 INSTALL="$ac_install_sh"
718 fi
719 fi
720 echo "$ac_t""$INSTALL" 1>&6
721
722 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
723 # It thinks the first close brace ends the variable substitution.
724 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
725
726 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
727
728 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
729
730 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
731 echo "configure:732: checking whether build environment is sane" >&5
732 # Just in case
733 sleep 1
734 echo timestamp > conftestfile
735 # Do `set' in a subshell so we don't clobber the current shell's
736 # arguments. Must try -L first in case configure is actually a
737 # symlink; some systems play weird games with the mod time of symlinks
738 # (eg FreeBSD returns the mod time of the symlink's containing
739 # directory).
740 if (
741 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
742 if test "$*" = "X"; then
743 # -L didn't work.
744 set X `ls -t $srcdir/configure conftestfile`
745 fi
746 if test "$*" != "X $srcdir/configure conftestfile" \
747 && test "$*" != "X conftestfile $srcdir/configure"; then
748
749 # If neither matched, then we have a broken ls. This can happen
750 # if, for instance, CONFIG_SHELL is bash and it inherits a
751 # broken ls alias from the environment. This has actually
752 # happened. Such a system could not be considered "sane".
753 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
754 alias in your environment" 1>&2; exit 1; }
755 fi
756
757 test "$2" = conftestfile
758 )
759 then
760 # Ok.
761 :
762 else
763 { echo "configure: error: newly created file is older than distributed files!
764 Check your system clock" 1>&2; exit 1; }
765 fi
766 rm -f conftest*
767 echo "$ac_t""yes" 1>&6
768 if test "$program_transform_name" = s,x,x,; then
769 program_transform_name=
770 else
771 # Double any \ or $. echo might interpret backslashes.
772 cat <<\EOF_SED > conftestsed
773 s,\\,\\\\,g; s,\$,$$,g
774 EOF_SED
775 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
776 rm -f conftestsed
777 fi
778 test "$program_prefix" != NONE &&
779 program_transform_name="s,^,${program_prefix},; $program_transform_name"
780 # Use a double $ so make ignores it.
781 test "$program_suffix" != NONE &&
782 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
783
784 # sed with no file args requires a program.
785 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
786
787 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
788 echo "configure:789: checking whether ${MAKE-make} sets \${MAKE}" >&5
789 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
790 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
791 echo $ac_n "(cached) $ac_c" 1>&6
792 else
793 cat > conftestmake <<\EOF
794 all:
795 @echo 'ac_maketemp="${MAKE}"'
796 EOF
797 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
798 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
799 if test -n "$ac_maketemp"; then
800 eval ac_cv_prog_make_${ac_make}_set=yes
801 else
802 eval ac_cv_prog_make_${ac_make}_set=no
803 fi
804 rm -f conftestmake
805 fi
806 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
807 echo "$ac_t""yes" 1>&6
808 SET_MAKE=
809 else
810 echo "$ac_t""no" 1>&6
811 SET_MAKE="MAKE=${MAKE-make}"
812 fi
813
814
815 PACKAGE=ld
816
817 VERSION=2.9.5
818
819 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
820 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
821 fi
822 cat >> confdefs.h <<EOF
823 #define PACKAGE "$PACKAGE"
824 EOF
825
826 cat >> confdefs.h <<EOF
827 #define VERSION "$VERSION"
828 EOF
829
830
831
832 missing_dir=`cd $ac_aux_dir && pwd`
833 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
834 echo "configure:835: checking for working aclocal" >&5
835 # Run test in a subshell; some versions of sh will print an error if
836 # an executable is not found, even if stderr is redirected.
837 # Redirect stdin to placate older versions of autoconf. Sigh.
838 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
839 ACLOCAL=aclocal
840 echo "$ac_t""found" 1>&6
841 else
842 ACLOCAL="$missing_dir/missing aclocal"
843 echo "$ac_t""missing" 1>&6
844 fi
845
846 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
847 echo "configure:848: checking for working autoconf" >&5
848 # Run test in a subshell; some versions of sh will print an error if
849 # an executable is not found, even if stderr is redirected.
850 # Redirect stdin to placate older versions of autoconf. Sigh.
851 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
852 AUTOCONF=autoconf
853 echo "$ac_t""found" 1>&6
854 else
855 AUTOCONF="$missing_dir/missing autoconf"
856 echo "$ac_t""missing" 1>&6
857 fi
858
859 echo $ac_n "checking for working automake""... $ac_c" 1>&6
860 echo "configure:861: checking for working automake" >&5
861 # Run test in a subshell; some versions of sh will print an error if
862 # an executable is not found, even if stderr is redirected.
863 # Redirect stdin to placate older versions of autoconf. Sigh.
864 if (automake --version) < /dev/null > /dev/null 2>&1; then
865 AUTOMAKE=automake
866 echo "$ac_t""found" 1>&6
867 else
868 AUTOMAKE="$missing_dir/missing automake"
869 echo "$ac_t""missing" 1>&6
870 fi
871
872 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
873 echo "configure:874: checking for working autoheader" >&5
874 # Run test in a subshell; some versions of sh will print an error if
875 # an executable is not found, even if stderr is redirected.
876 # Redirect stdin to placate older versions of autoconf. Sigh.
877 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
878 AUTOHEADER=autoheader
879 echo "$ac_t""found" 1>&6
880 else
881 AUTOHEADER="$missing_dir/missing autoheader"
882 echo "$ac_t""missing" 1>&6
883 fi
884
885 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
886 echo "configure:887: checking for working makeinfo" >&5
887 # Run test in a subshell; some versions of sh will print an error if
888 # an executable is not found, even if stderr is redirected.
889 # Redirect stdin to placate older versions of autoconf. Sigh.
890 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
891 MAKEINFO=makeinfo
892 echo "$ac_t""found" 1>&6
893 else
894 MAKEINFO="$missing_dir/missing makeinfo"
895 echo "$ac_t""missing" 1>&6
896 fi
897
898
899
900 # Check whether --enable-shared or --disable-shared was given.
901 if test "${enable_shared+set}" = set; then
902 enableval="$enable_shared"
903 p=${PACKAGE-default}
904 case "$enableval" in
905 yes) enable_shared=yes ;;
906 no) enable_shared=no ;;
907 *)
908 enable_shared=no
909 # Look at the argument we got. We use all the common list separators.
910 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
911 for pkg in $enableval; do
912 if test "X$pkg" = "X$p"; then
913 enable_shared=yes
914 fi
915 done
916 IFS="$ac_save_ifs"
917 ;;
918 esac
919 else
920 enable_shared=yes
921 fi
922
923 # Check whether --enable-static or --disable-static was given.
924 if test "${enable_static+set}" = set; then
925 enableval="$enable_static"
926 p=${PACKAGE-default}
927 case "$enableval" in
928 yes) enable_static=yes ;;
929 no) enable_static=no ;;
930 *)
931 enable_static=no
932 # Look at the argument we got. We use all the common list separators.
933 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
934 for pkg in $enableval; do
935 if test "X$pkg" = "X$p"; then
936 enable_static=yes
937 fi
938 done
939 IFS="$ac_save_ifs"
940 ;;
941 esac
942 else
943 enable_static=yes
944 fi
945
946 # Check whether --enable-fast-install or --disable-fast-install was given.
947 if test "${enable_fast_install+set}" = set; then
948 enableval="$enable_fast_install"
949 p=${PACKAGE-default}
950 case "$enableval" in
951 yes) enable_fast_install=yes ;;
952 no) enable_fast_install=no ;;
953 *)
954 enable_fast_install=no
955 # Look at the argument we got. We use all the common list separators.
956 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
957 for pkg in $enableval; do
958 if test "X$pkg" = "X$p"; then
959 enable_fast_install=yes
960 fi
961 done
962 IFS="$ac_save_ifs"
963 ;;
964 esac
965 else
966 enable_fast_install=yes
967 fi
968
969 # Extract the first word of "ranlib", so it can be a program name with args.
970 set dummy ranlib; ac_word=$2
971 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
972 echo "configure:973: checking for $ac_word" >&5
973 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
974 echo $ac_n "(cached) $ac_c" 1>&6
975 else
976 if test -n "$RANLIB"; then
977 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
978 else
979 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
980 ac_dummy="$PATH"
981 for ac_dir in $ac_dummy; do
982 test -z "$ac_dir" && ac_dir=.
983 if test -f $ac_dir/$ac_word; then
984 ac_cv_prog_RANLIB="ranlib"
985 break
986 fi
987 done
988 IFS="$ac_save_ifs"
989 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
990 fi
991 fi
992 RANLIB="$ac_cv_prog_RANLIB"
993 if test -n "$RANLIB"; then
994 echo "$ac_t""$RANLIB" 1>&6
995 else
996 echo "$ac_t""no" 1>&6
997 fi
998
999 # Extract the first word of "gcc", so it can be a program name with args.
1000 set dummy gcc; ac_word=$2
1001 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1002 echo "configure:1003: checking for $ac_word" >&5
1003 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1004 echo $ac_n "(cached) $ac_c" 1>&6
1005 else
1006 if test -n "$CC"; then
1007 ac_cv_prog_CC="$CC" # Let the user override the test.
1008 else
1009 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1010 ac_dummy="$PATH"
1011 for ac_dir in $ac_dummy; do
1012 test -z "$ac_dir" && ac_dir=.
1013 if test -f $ac_dir/$ac_word; then
1014 ac_cv_prog_CC="gcc"
1015 break
1016 fi
1017 done
1018 IFS="$ac_save_ifs"
1019 fi
1020 fi
1021 CC="$ac_cv_prog_CC"
1022 if test -n "$CC"; then
1023 echo "$ac_t""$CC" 1>&6
1024 else
1025 echo "$ac_t""no" 1>&6
1026 fi
1027
1028 if test -z "$CC"; then
1029 # Extract the first word of "cc", so it can be a program name with args.
1030 set dummy cc; ac_word=$2
1031 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1032 echo "configure:1033: checking for $ac_word" >&5
1033 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1034 echo $ac_n "(cached) $ac_c" 1>&6
1035 else
1036 if test -n "$CC"; then
1037 ac_cv_prog_CC="$CC" # Let the user override the test.
1038 else
1039 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1040 ac_prog_rejected=no
1041 ac_dummy="$PATH"
1042 for ac_dir in $ac_dummy; do
1043 test -z "$ac_dir" && ac_dir=.
1044 if test -f $ac_dir/$ac_word; then
1045 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1046 ac_prog_rejected=yes
1047 continue
1048 fi
1049 ac_cv_prog_CC="cc"
1050 break
1051 fi
1052 done
1053 IFS="$ac_save_ifs"
1054 if test $ac_prog_rejected = yes; then
1055 # We found a bogon in the path, so make sure we never use it.
1056 set dummy $ac_cv_prog_CC
1057 shift
1058 if test $# -gt 0; then
1059 # We chose a different compiler from the bogus one.
1060 # However, it has the same basename, so the bogon will be chosen
1061 # first if we set CC to just the basename; use the full file name.
1062 shift
1063 set dummy "$ac_dir/$ac_word" "$@"
1064 shift
1065 ac_cv_prog_CC="$@"
1066 fi
1067 fi
1068 fi
1069 fi
1070 CC="$ac_cv_prog_CC"
1071 if test -n "$CC"; then
1072 echo "$ac_t""$CC" 1>&6
1073 else
1074 echo "$ac_t""no" 1>&6
1075 fi
1076
1077 if test -z "$CC"; then
1078 case "`uname -s`" in
1079 *win32* | *WIN32*)
1080 # Extract the first word of "cl", so it can be a program name with args.
1081 set dummy cl; ac_word=$2
1082 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1083 echo "configure:1084: checking for $ac_word" >&5
1084 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1085 echo $ac_n "(cached) $ac_c" 1>&6
1086 else
1087 if test -n "$CC"; then
1088 ac_cv_prog_CC="$CC" # Let the user override the test.
1089 else
1090 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1091 ac_dummy="$PATH"
1092 for ac_dir in $ac_dummy; do
1093 test -z "$ac_dir" && ac_dir=.
1094 if test -f $ac_dir/$ac_word; then
1095 ac_cv_prog_CC="cl"
1096 break
1097 fi
1098 done
1099 IFS="$ac_save_ifs"
1100 fi
1101 fi
1102 CC="$ac_cv_prog_CC"
1103 if test -n "$CC"; then
1104 echo "$ac_t""$CC" 1>&6
1105 else
1106 echo "$ac_t""no" 1>&6
1107 fi
1108 ;;
1109 esac
1110 fi
1111 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1112 fi
1113
1114 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1115 echo "configure:1116: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1116
1117 ac_ext=c
1118 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1119 ac_cpp='$CPP $CPPFLAGS'
1120 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1121 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1122 cross_compiling=$ac_cv_prog_cc_cross
1123
1124 cat > conftest.$ac_ext << EOF
1125
1126 #line 1127 "configure"
1127 #include "confdefs.h"
1128
1129 main(){return(0);}
1130 EOF
1131 if { (eval echo configure:1132: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1132 ac_cv_prog_cc_works=yes
1133 # If we can't run a trivial program, we are probably using a cross compiler.
1134 if (./conftest; exit) 2>/dev/null; then
1135 ac_cv_prog_cc_cross=no
1136 else
1137 ac_cv_prog_cc_cross=yes
1138 fi
1139 else
1140 echo "configure: failed program was:" >&5
1141 cat conftest.$ac_ext >&5
1142 ac_cv_prog_cc_works=no
1143 fi
1144 rm -fr conftest*
1145 ac_ext=c
1146 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1147 ac_cpp='$CPP $CPPFLAGS'
1148 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1149 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1150 cross_compiling=$ac_cv_prog_cc_cross
1151
1152 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1153 if test $ac_cv_prog_cc_works = no; then
1154 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1155 fi
1156 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1157 echo "configure:1158: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1158 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1159 cross_compiling=$ac_cv_prog_cc_cross
1160
1161 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1162 echo "configure:1163: checking whether we are using GNU C" >&5
1163 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1164 echo $ac_n "(cached) $ac_c" 1>&6
1165 else
1166 cat > conftest.c <<EOF
1167 #ifdef __GNUC__
1168 yes;
1169 #endif
1170 EOF
1171 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1172: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1172 ac_cv_prog_gcc=yes
1173 else
1174 ac_cv_prog_gcc=no
1175 fi
1176 fi
1177
1178 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1179
1180 if test $ac_cv_prog_gcc = yes; then
1181 GCC=yes
1182 else
1183 GCC=
1184 fi
1185
1186 ac_test_CFLAGS="${CFLAGS+set}"
1187 ac_save_CFLAGS="$CFLAGS"
1188 CFLAGS=
1189 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1190 echo "configure:1191: checking whether ${CC-cc} accepts -g" >&5
1191 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1192 echo $ac_n "(cached) $ac_c" 1>&6
1193 else
1194 echo 'void f(){}' > conftest.c
1195 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1196 ac_cv_prog_cc_g=yes
1197 else
1198 ac_cv_prog_cc_g=no
1199 fi
1200 rm -f conftest*
1201
1202 fi
1203
1204 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1205 if test "$ac_test_CFLAGS" = set; then
1206 CFLAGS="$ac_save_CFLAGS"
1207 elif test $ac_cv_prog_cc_g = yes; then
1208 if test "$GCC" = yes; then
1209 CFLAGS="-g -O2"
1210 else
1211 CFLAGS="-g"
1212 fi
1213 else
1214 if test "$GCC" = yes; then
1215 CFLAGS="-O2"
1216 else
1217 CFLAGS=
1218 fi
1219 fi
1220
1221 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1222 if test "${with_gnu_ld+set}" = set; then
1223 withval="$with_gnu_ld"
1224 test "$withval" = no || with_gnu_ld=yes
1225 else
1226 with_gnu_ld=no
1227 fi
1228
1229 ac_prog=ld
1230 if test "$ac_cv_prog_gcc" = yes; then
1231 # Check if gcc -print-prog-name=ld gives a path.
1232 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1233 echo "configure:1234: checking for ld used by GCC" >&5
1234 ac_prog=`($CC -print-prog-name=ld) 2>&5`
1235 case "$ac_prog" in
1236 # Accept absolute paths.
1237 [\\/]* | [A-Za-z]:[\\/]*)
1238 re_direlt='/[^/][^/]*/\.\./'
1239 # Canonicalize the path of ld
1240 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
1241 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
1242 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
1243 done
1244 test -z "$LD" && LD="$ac_prog"
1245 ;;
1246 "")
1247 # If it fails, then pretend we aren't using GCC.
1248 ac_prog=ld
1249 ;;
1250 *)
1251 # If it is relative, then search for the first ld in PATH.
1252 with_gnu_ld=unknown
1253 ;;
1254 esac
1255 elif test "$with_gnu_ld" = yes; then
1256 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1257 echo "configure:1258: checking for GNU ld" >&5
1258 else
1259 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1260 echo "configure:1261: checking for non-GNU ld" >&5
1261 fi
1262 if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
1263 echo $ac_n "(cached) $ac_c" 1>&6
1264 else
1265 if test -z "$LD"; then
1266 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1267 for ac_dir in $PATH; do
1268 test -z "$ac_dir" && ac_dir=.
1269 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1270 ac_cv_path_LD="$ac_dir/$ac_prog"
1271 # Check to see if the program is GNU ld. I'd rather use --version,
1272 # but apparently some GNU ld's only accept -v.
1273 # Break only if it was the GNU/non-GNU ld that we prefer.
1274 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1275 test "$with_gnu_ld" != no && break
1276 else
1277 test "$with_gnu_ld" != yes && break
1278 fi
1279 fi
1280 done
1281 IFS="$ac_save_ifs"
1282 else
1283 ac_cv_path_LD="$LD" # Let the user override the test with a path.
1284 fi
1285 fi
1286
1287 LD="$ac_cv_path_LD"
1288 if test -n "$LD"; then
1289 echo "$ac_t""$LD" 1>&6
1290 else
1291 echo "$ac_t""no" 1>&6
1292 fi
1293 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1294 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1295 echo "configure:1296: checking if the linker ($LD) is GNU ld" >&5
1296 if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
1297 echo $ac_n "(cached) $ac_c" 1>&6
1298 else
1299 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1300 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1301 ac_cv_prog_gnu_ld=yes
1302 else
1303 ac_cv_prog_gnu_ld=no
1304 fi
1305 fi
1306
1307 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
1308
1309
1310 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1311 echo "configure:1312: checking for BSD-compatible nm" >&5
1312 if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then
1313 echo $ac_n "(cached) $ac_c" 1>&6
1314 else
1315 if test -n "$NM"; then
1316 # Let the user override the test.
1317 ac_cv_path_NM="$NM"
1318 else
1319 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1320 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
1321 test -z "$ac_dir" && ac_dir=.
1322 if test -f $ac_dir/nm || test -f $ac_dir/nm$ac_exeext ; then
1323 # Check to see if the nm accepts a BSD-compat flag.
1324 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1325 # nm: unknown option "B" ignored
1326 if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1327 ac_cv_path_NM="$ac_dir/nm -B"
1328 break
1329 elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1330 ac_cv_path_NM="$ac_dir/nm -p"
1331 break
1332 else
1333 ac_cv_path_NM=${ac_cv_path_NM="$ac_dir/nm"} # keep the first match, but
1334 continue # so that we can try to find one that supports BSD flags
1335 fi
1336 fi
1337 done
1338 IFS="$ac_save_ifs"
1339 test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
1340 fi
1341 fi
1342
1343 NM="$ac_cv_path_NM"
1344 echo "$ac_t""$NM" 1>&6
1345
1346 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1347 echo "configure:1348: checking whether ln -s works" >&5
1348 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1349 echo $ac_n "(cached) $ac_c" 1>&6
1350 else
1351 rm -f conftestdata
1352 if ln -s X conftestdata 2>/dev/null
1353 then
1354 rm -f conftestdata
1355 ac_cv_prog_LN_S="ln -s"
1356 else
1357 ac_cv_prog_LN_S=ln
1358 fi
1359 fi
1360 LN_S="$ac_cv_prog_LN_S"
1361 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1362 echo "$ac_t""yes" 1>&6
1363 else
1364 echo "$ac_t""no" 1>&6
1365 fi
1366
1367
1368 case "$target" in
1369 NONE) lt_target="$host" ;;
1370 *) lt_target="$target" ;;
1371 esac
1372
1373 # Check for any special flags to pass to ltconfig.
1374 libtool_flags="--cache-file=$cache_file"
1375 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
1376 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
1377 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
1378 test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
1379 test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
1380
1381
1382 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
1383 if test "${enable_libtool_lock+set}" = set; then
1384 enableval="$enable_libtool_lock"
1385 :
1386 fi
1387
1388 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
1389 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
1390
1391 # Some flags need to be propagated to the compiler or linker for good
1392 # libtool support.
1393 case "$lt_target" in
1394 *-*-irix6*)
1395 # Find out which ABI we are using.
1396 echo '#line 1397 "configure"' > conftest.$ac_ext
1397 if { (eval echo configure:1398: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1398 case "`/usr/bin/file conftest.o`" in
1399 *32-bit*)
1400 LD="${LD-ld} -32"
1401 ;;
1402 *N32*)
1403 LD="${LD-ld} -n32"
1404 ;;
1405 *64-bit*)
1406 LD="${LD-ld} -64"
1407 ;;
1408 esac
1409 fi
1410 rm -rf conftest*
1411 ;;
1412
1413 *-*-sco3.2v5*)
1414 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
1415 SAVE_CFLAGS="$CFLAGS"
1416 CFLAGS="$CFLAGS -belf"
1417 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
1418 echo "configure:1419: checking whether the C compiler needs -belf" >&5
1419 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
1420 echo $ac_n "(cached) $ac_c" 1>&6
1421 else
1422 cat > conftest.$ac_ext <<EOF
1423 #line 1424 "configure"
1424 #include "confdefs.h"
1425
1426 int main() {
1427
1428 ; return 0; }
1429 EOF
1430 if { (eval echo configure:1431: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1431 rm -rf conftest*
1432 lt_cv_cc_needs_belf=yes
1433 else
1434 echo "configure: failed program was:" >&5
1435 cat conftest.$ac_ext >&5
1436 rm -rf conftest*
1437 lt_cv_cc_needs_belf=no
1438 fi
1439 rm -f conftest*
1440 fi
1441
1442 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
1443 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
1444 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
1445 CFLAGS="$SAVE_CFLAGS"
1446 fi
1447 ;;
1448
1449
1450 esac
1451
1452
1453 # Save cache, so that ltconfig can load it
1454 cat > confcache <<\EOF
1455 # This file is a shell script that caches the results of configure
1456 # tests run on this system so they can be shared between configure
1457 # scripts and configure runs. It is not useful on other systems.
1458 # If it contains results you don't want to keep, you may remove or edit it.
1459 #
1460 # By default, configure uses ./config.cache as the cache file,
1461 # creating it if it does not exist already. You can give configure
1462 # the --cache-file=FILE option to use a different cache file; that is
1463 # what configure does when it calls configure scripts in
1464 # subdirectories, so they share the cache.
1465 # Giving --cache-file=/dev/null disables caching, for debugging configure.
1466 # config.status only pays attention to the cache file if you give it the
1467 # --recheck option to rerun configure.
1468 #
1469 EOF
1470 # The following way of writing the cache mishandles newlines in values,
1471 # but we know of no workaround that is simple, portable, and efficient.
1472 # So, don't put newlines in cache variables' values.
1473 # Ultrix sh set writes to stderr and can't be redirected directly,
1474 # and sets the high bit in the cache file unless we assign to the vars.
1475 (set) 2>&1 |
1476 case `(ac_space=' '; set | grep ac_space) 2>&1` in
1477 *ac_space=\ *)
1478 # `set' does not quote correctly, so add quotes (double-quote substitution
1479 # turns \\\\ into \\, and sed turns \\ into \).
1480 sed -n \
1481 -e "s/'/'\\\\''/g" \
1482 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
1483 ;;
1484 *)
1485 # `set' quotes correctly as required by POSIX, so do not add quotes.
1486 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
1487 ;;
1488 esac >> confcache
1489 if cmp -s $cache_file confcache; then
1490 :
1491 else
1492 if test -w $cache_file; then
1493 echo "updating cache $cache_file"
1494 cat confcache > $cache_file
1495 else
1496 echo "not updating unwritable cache $cache_file"
1497 fi
1498 fi
1499 rm -f confcache
1500
1501
1502 # Actually configure libtool. ac_aux_dir is where install-sh is found.
1503 CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
1504 LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
1505 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" \
1506 DLLTOOL="$DLLTOOL" AS="$AS" OBJDUMP="$OBJDUMP" \
1507 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
1508 $libtool_flags --no-verify $ac_aux_dir/ltmain.sh $lt_target \
1509 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
1510
1511 # Reload cache, that may have been modified by ltconfig
1512 if test -r "$cache_file"; then
1513 echo "loading cache $cache_file"
1514 . $cache_file
1515 else
1516 echo "creating cache $cache_file"
1517 > $cache_file
1518 fi
1519
1520
1521 # This can be used to rebuild libtool when needed
1522 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh"
1523
1524 # Always use our own libtool.
1525 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
1526
1527 # Redirect the config.log output again, so that the ltconfig log is not
1528 # clobbered by the next message.
1529 exec 5>>./config.log
1530
1531
1532 # Check whether --enable-targets or --disable-targets was given.
1533 if test "${enable_targets+set}" = set; then
1534 enableval="$enable_targets"
1535 case "${enableval}" in
1536 yes | "") { echo "configure: error: enable-targets option must specify target names or 'all'" 1>&2; exit 1; }
1537 ;;
1538 no) enable_targets= ;;
1539 *) enable_targets=$enableval ;;
1540 esac
1541 fi
1542 # Check whether --enable-64-bit-bfd or --disable-64-bit-bfd was given.
1543 if test "${enable_64_bit_bfd+set}" = set; then
1544 enableval="$enable_64_bit_bfd"
1545 case "${enableval}" in
1546 yes) want64=true ;;
1547 no) want64=false ;;
1548 *) { echo "configure: error: bad value ${enableval} for 64-bit-bfd option" 1>&2; exit 1; } ;;
1549 esac
1550 else
1551 want64=false
1552 fi
1553
1554
1555
1556
1557
1558 if test -z "$target" ; then
1559 { echo "configure: error: Unrecognized target system type; please check config.sub." 1>&2; exit 1; }
1560 fi
1561 if test -z "$host" ; then
1562 { echo "configure: error: Unrecognized host system type; please check config.sub." 1>&2; exit 1; }
1563 fi
1564
1565 # host-specific stuff:
1566
1567 # Extract the first word of "gcc", so it can be a program name with args.
1568 set dummy gcc; ac_word=$2
1569 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1570 echo "configure:1571: checking for $ac_word" >&5
1571 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1572 echo $ac_n "(cached) $ac_c" 1>&6
1573 else
1574 if test -n "$CC"; then
1575 ac_cv_prog_CC="$CC" # Let the user override the test.
1576 else
1577 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1578 ac_dummy="$PATH"
1579 for ac_dir in $ac_dummy; do
1580 test -z "$ac_dir" && ac_dir=.
1581 if test -f $ac_dir/$ac_word; then
1582 ac_cv_prog_CC="gcc"
1583 break
1584 fi
1585 done
1586 IFS="$ac_save_ifs"
1587 fi
1588 fi
1589 CC="$ac_cv_prog_CC"
1590 if test -n "$CC"; then
1591 echo "$ac_t""$CC" 1>&6
1592 else
1593 echo "$ac_t""no" 1>&6
1594 fi
1595
1596 if test -z "$CC"; then
1597 # Extract the first word of "cc", so it can be a program name with args.
1598 set dummy cc; ac_word=$2
1599 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1600 echo "configure:1601: checking for $ac_word" >&5
1601 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1602 echo $ac_n "(cached) $ac_c" 1>&6
1603 else
1604 if test -n "$CC"; then
1605 ac_cv_prog_CC="$CC" # Let the user override the test.
1606 else
1607 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1608 ac_prog_rejected=no
1609 ac_dummy="$PATH"
1610 for ac_dir in $ac_dummy; do
1611 test -z "$ac_dir" && ac_dir=.
1612 if test -f $ac_dir/$ac_word; then
1613 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1614 ac_prog_rejected=yes
1615 continue
1616 fi
1617 ac_cv_prog_CC="cc"
1618 break
1619 fi
1620 done
1621 IFS="$ac_save_ifs"
1622 if test $ac_prog_rejected = yes; then
1623 # We found a bogon in the path, so make sure we never use it.
1624 set dummy $ac_cv_prog_CC
1625 shift
1626 if test $# -gt 0; then
1627 # We chose a different compiler from the bogus one.
1628 # However, it has the same basename, so the bogon will be chosen
1629 # first if we set CC to just the basename; use the full file name.
1630 shift
1631 set dummy "$ac_dir/$ac_word" "$@"
1632 shift
1633 ac_cv_prog_CC="$@"
1634 fi
1635 fi
1636 fi
1637 fi
1638 CC="$ac_cv_prog_CC"
1639 if test -n "$CC"; then
1640 echo "$ac_t""$CC" 1>&6
1641 else
1642 echo "$ac_t""no" 1>&6
1643 fi
1644
1645 if test -z "$CC"; then
1646 case "`uname -s`" in
1647 *win32* | *WIN32*)
1648 # Extract the first word of "cl", so it can be a program name with args.
1649 set dummy cl; ac_word=$2
1650 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1651 echo "configure:1652: checking for $ac_word" >&5
1652 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1653 echo $ac_n "(cached) $ac_c" 1>&6
1654 else
1655 if test -n "$CC"; then
1656 ac_cv_prog_CC="$CC" # Let the user override the test.
1657 else
1658 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1659 ac_dummy="$PATH"
1660 for ac_dir in $ac_dummy; do
1661 test -z "$ac_dir" && ac_dir=.
1662 if test -f $ac_dir/$ac_word; then
1663 ac_cv_prog_CC="cl"
1664 break
1665 fi
1666 done
1667 IFS="$ac_save_ifs"
1668 fi
1669 fi
1670 CC="$ac_cv_prog_CC"
1671 if test -n "$CC"; then
1672 echo "$ac_t""$CC" 1>&6
1673 else
1674 echo "$ac_t""no" 1>&6
1675 fi
1676 ;;
1677 esac
1678 fi
1679 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1680 fi
1681
1682 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1683 echo "configure:1684: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1684
1685 ac_ext=c
1686 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1687 ac_cpp='$CPP $CPPFLAGS'
1688 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1689 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1690 cross_compiling=$ac_cv_prog_cc_cross
1691
1692 cat > conftest.$ac_ext << EOF
1693
1694 #line 1695 "configure"
1695 #include "confdefs.h"
1696
1697 main(){return(0);}
1698 EOF
1699 if { (eval echo configure:1700: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1700 ac_cv_prog_cc_works=yes
1701 # If we can't run a trivial program, we are probably using a cross compiler.
1702 if (./conftest; exit) 2>/dev/null; then
1703 ac_cv_prog_cc_cross=no
1704 else
1705 ac_cv_prog_cc_cross=yes
1706 fi
1707 else
1708 echo "configure: failed program was:" >&5
1709 cat conftest.$ac_ext >&5
1710 ac_cv_prog_cc_works=no
1711 fi
1712 rm -fr conftest*
1713 ac_ext=c
1714 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1715 ac_cpp='$CPP $CPPFLAGS'
1716 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1717 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1718 cross_compiling=$ac_cv_prog_cc_cross
1719
1720 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1721 if test $ac_cv_prog_cc_works = no; then
1722 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1723 fi
1724 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1725 echo "configure:1726: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1726 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1727 cross_compiling=$ac_cv_prog_cc_cross
1728
1729 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1730 echo "configure:1731: checking whether we are using GNU C" >&5
1731 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1732 echo $ac_n "(cached) $ac_c" 1>&6
1733 else
1734 cat > conftest.c <<EOF
1735 #ifdef __GNUC__
1736 yes;
1737 #endif
1738 EOF
1739 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1740: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1740 ac_cv_prog_gcc=yes
1741 else
1742 ac_cv_prog_gcc=no
1743 fi
1744 fi
1745
1746 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1747
1748 if test $ac_cv_prog_gcc = yes; then
1749 GCC=yes
1750 else
1751 GCC=
1752 fi
1753
1754 ac_test_CFLAGS="${CFLAGS+set}"
1755 ac_save_CFLAGS="$CFLAGS"
1756 CFLAGS=
1757 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1758 echo "configure:1759: checking whether ${CC-cc} accepts -g" >&5
1759 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1760 echo $ac_n "(cached) $ac_c" 1>&6
1761 else
1762 echo 'void f(){}' > conftest.c
1763 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1764 ac_cv_prog_cc_g=yes
1765 else
1766 ac_cv_prog_cc_g=no
1767 fi
1768 rm -f conftest*
1769
1770 fi
1771
1772 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1773 if test "$ac_test_CFLAGS" = set; then
1774 CFLAGS="$ac_save_CFLAGS"
1775 elif test $ac_cv_prog_cc_g = yes; then
1776 if test "$GCC" = yes; then
1777 CFLAGS="-g -O2"
1778 else
1779 CFLAGS="-g"
1780 fi
1781 else
1782 if test "$GCC" = yes; then
1783 CFLAGS="-O2"
1784 else
1785 CFLAGS=
1786 fi
1787 fi
1788
1789 # Find a good install program. We prefer a C program (faster),
1790 # so one script is as good as another. But avoid the broken or
1791 # incompatible versions:
1792 # SysV /etc/install, /usr/sbin/install
1793 # SunOS /usr/etc/install
1794 # IRIX /sbin/install
1795 # AIX /bin/install
1796 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1797 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1798 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1799 # ./install, which can be erroneously created by make from ./install.sh.
1800 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1801 echo "configure:1802: checking for a BSD compatible install" >&5
1802 if test -z "$INSTALL"; then
1803 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1804 echo $ac_n "(cached) $ac_c" 1>&6
1805 else
1806 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1807 for ac_dir in $PATH; do
1808 # Account for people who put trailing slashes in PATH elements.
1809 case "$ac_dir/" in
1810 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1811 *)
1812 # OSF1 and SCO ODT 3.0 have their own names for install.
1813 # Don't use installbsd from OSF since it installs stuff as root
1814 # by default.
1815 for ac_prog in ginstall scoinst install; do
1816 if test -f $ac_dir/$ac_prog; then
1817 if test $ac_prog = install &&
1818 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1819 # AIX install. It has an incompatible calling convention.
1820 :
1821 else
1822 ac_cv_path_install="$ac_dir/$ac_prog -c"
1823 break 2
1824 fi
1825 fi
1826 done
1827 ;;
1828 esac
1829 done
1830 IFS="$ac_save_IFS"
1831
1832 fi
1833 if test "${ac_cv_path_install+set}" = set; then
1834 INSTALL="$ac_cv_path_install"
1835 else
1836 # As a last resort, use the slow shell script. We don't cache a
1837 # path for INSTALL within a source directory, because that will
1838 # break other packages using the cache if that directory is
1839 # removed, or if the path is relative.
1840 INSTALL="$ac_install_sh"
1841 fi
1842 fi
1843 echo "$ac_t""$INSTALL" 1>&6
1844
1845 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1846 # It thinks the first close brace ends the variable substitution.
1847 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1848
1849 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1850
1851 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1852
1853
1854 ALL_LINGUAS=
1855 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1856 echo "configure:1857: checking how to run the C preprocessor" >&5
1857 # On Suns, sometimes $CPP names a directory.
1858 if test -n "$CPP" && test -d "$CPP"; then
1859 CPP=
1860 fi
1861 if test -z "$CPP"; then
1862 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1863 echo $ac_n "(cached) $ac_c" 1>&6
1864 else
1865 # This must be in double quotes, not single quotes, because CPP may get
1866 # substituted into the Makefile and "${CC-cc}" will confuse make.
1867 CPP="${CC-cc} -E"
1868 # On the NeXT, cc -E runs the code through the compiler's parser,
1869 # not just through cpp.
1870 cat > conftest.$ac_ext <<EOF
1871 #line 1872 "configure"
1872 #include "confdefs.h"
1873 #include <assert.h>
1874 Syntax Error
1875 EOF
1876 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1877 { (eval echo configure:1878: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1878 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1879 if test -z "$ac_err"; then
1880 :
1881 else
1882 echo "$ac_err" >&5
1883 echo "configure: failed program was:" >&5
1884 cat conftest.$ac_ext >&5
1885 rm -rf conftest*
1886 CPP="${CC-cc} -E -traditional-cpp"
1887 cat > conftest.$ac_ext <<EOF
1888 #line 1889 "configure"
1889 #include "confdefs.h"
1890 #include <assert.h>
1891 Syntax Error
1892 EOF
1893 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1894 { (eval echo configure:1895: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1895 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1896 if test -z "$ac_err"; then
1897 :
1898 else
1899 echo "$ac_err" >&5
1900 echo "configure: failed program was:" >&5
1901 cat conftest.$ac_ext >&5
1902 rm -rf conftest*
1903 CPP="${CC-cc} -nologo -E"
1904 cat > conftest.$ac_ext <<EOF
1905 #line 1906 "configure"
1906 #include "confdefs.h"
1907 #include <assert.h>
1908 Syntax Error
1909 EOF
1910 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1911 { (eval echo configure:1912: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1912 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1913 if test -z "$ac_err"; then
1914 :
1915 else
1916 echo "$ac_err" >&5
1917 echo "configure: failed program was:" >&5
1918 cat conftest.$ac_ext >&5
1919 rm -rf conftest*
1920 CPP=/lib/cpp
1921 fi
1922 rm -f conftest*
1923 fi
1924 rm -f conftest*
1925 fi
1926 rm -f conftest*
1927 ac_cv_prog_CPP="$CPP"
1928 fi
1929 CPP="$ac_cv_prog_CPP"
1930 else
1931 ac_cv_prog_CPP="$CPP"
1932 fi
1933 echo "$ac_t""$CPP" 1>&6
1934
1935 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
1936 echo "configure:1937: checking for POSIXized ISC" >&5
1937 if test -d /etc/conf/kconfig.d &&
1938 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
1939 then
1940 echo "$ac_t""yes" 1>&6
1941 ISC=yes # If later tests want to check for ISC.
1942 cat >> confdefs.h <<\EOF
1943 #define _POSIX_SOURCE 1
1944 EOF
1945
1946 if test "$GCC" = yes; then
1947 CC="$CC -posix"
1948 else
1949 CC="$CC -Xp"
1950 fi
1951 else
1952 echo "$ac_t""no" 1>&6
1953 ISC=
1954 fi
1955
1956 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1957 echo "configure:1958: checking for ANSI C header files" >&5
1958 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1959 echo $ac_n "(cached) $ac_c" 1>&6
1960 else
1961 cat > conftest.$ac_ext <<EOF
1962 #line 1963 "configure"
1963 #include "confdefs.h"
1964 #include <stdlib.h>
1965 #include <stdarg.h>
1966 #include <string.h>
1967 #include <float.h>
1968 EOF
1969 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1970 { (eval echo configure:1971: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1971 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1972 if test -z "$ac_err"; then
1973 rm -rf conftest*
1974 ac_cv_header_stdc=yes
1975 else
1976 echo "$ac_err" >&5
1977 echo "configure: failed program was:" >&5
1978 cat conftest.$ac_ext >&5
1979 rm -rf conftest*
1980 ac_cv_header_stdc=no
1981 fi
1982 rm -f conftest*
1983
1984 if test $ac_cv_header_stdc = yes; then
1985 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1986 cat > conftest.$ac_ext <<EOF
1987 #line 1988 "configure"
1988 #include "confdefs.h"
1989 #include <string.h>
1990 EOF
1991 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1992 egrep "memchr" >/dev/null 2>&1; then
1993 :
1994 else
1995 rm -rf conftest*
1996 ac_cv_header_stdc=no
1997 fi
1998 rm -f conftest*
1999
2000 fi
2001
2002 if test $ac_cv_header_stdc = yes; then
2003 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2004 cat > conftest.$ac_ext <<EOF
2005 #line 2006 "configure"
2006 #include "confdefs.h"
2007 #include <stdlib.h>
2008 EOF
2009 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2010 egrep "free" >/dev/null 2>&1; then
2011 :
2012 else
2013 rm -rf conftest*
2014 ac_cv_header_stdc=no
2015 fi
2016 rm -f conftest*
2017
2018 fi
2019
2020 if test $ac_cv_header_stdc = yes; then
2021 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2022 if test "$cross_compiling" = yes; then
2023 :
2024 else
2025 cat > conftest.$ac_ext <<EOF
2026 #line 2027 "configure"
2027 #include "confdefs.h"
2028 #include <ctype.h>
2029 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2030 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2031 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2032 int main () { int i; for (i = 0; i < 256; i++)
2033 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2034 exit (0); }
2035
2036 EOF
2037 if { (eval echo configure:2038: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2038 then
2039 :
2040 else
2041 echo "configure: failed program was:" >&5
2042 cat conftest.$ac_ext >&5
2043 rm -fr conftest*
2044 ac_cv_header_stdc=no
2045 fi
2046 rm -fr conftest*
2047 fi
2048
2049 fi
2050 fi
2051
2052 echo "$ac_t""$ac_cv_header_stdc" 1>&6
2053 if test $ac_cv_header_stdc = yes; then
2054 cat >> confdefs.h <<\EOF
2055 #define STDC_HEADERS 1
2056 EOF
2057
2058 fi
2059
2060 echo $ac_n "checking for working const""... $ac_c" 1>&6
2061 echo "configure:2062: checking for working const" >&5
2062 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
2063 echo $ac_n "(cached) $ac_c" 1>&6
2064 else
2065 cat > conftest.$ac_ext <<EOF
2066 #line 2067 "configure"
2067 #include "confdefs.h"
2068
2069 int main() {
2070
2071 /* Ultrix mips cc rejects this. */
2072 typedef int charset[2]; const charset x;
2073 /* SunOS 4.1.1 cc rejects this. */
2074 char const *const *ccp;
2075 char **p;
2076 /* NEC SVR4.0.2 mips cc rejects this. */
2077 struct point {int x, y;};
2078 static struct point const zero = {0,0};
2079 /* AIX XL C 1.02.0.0 rejects this.
2080 It does not let you subtract one const X* pointer from another in an arm
2081 of an if-expression whose if-part is not a constant expression */
2082 const char *g = "string";
2083 ccp = &g + (g ? g-g : 0);
2084 /* HPUX 7.0 cc rejects these. */
2085 ++ccp;
2086 p = (char**) ccp;
2087 ccp = (char const *const *) p;
2088 { /* SCO 3.2v4 cc rejects this. */
2089 char *t;
2090 char const *s = 0 ? (char *) 0 : (char const *) 0;
2091
2092 *t++ = 0;
2093 }
2094 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
2095 int x[] = {25, 17};
2096 const int *foo = &x[0];
2097 ++foo;
2098 }
2099 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2100 typedef const int *iptr;
2101 iptr p = 0;
2102 ++p;
2103 }
2104 { /* AIX XL C 1.02.0.0 rejects this saying
2105 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
2106 struct s { int j; const int *ap[3]; };
2107 struct s *b; b->j = 5;
2108 }
2109 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2110 const int foo = 10;
2111 }
2112
2113 ; return 0; }
2114 EOF
2115 if { (eval echo configure:2116: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2116 rm -rf conftest*
2117 ac_cv_c_const=yes
2118 else
2119 echo "configure: failed program was:" >&5
2120 cat conftest.$ac_ext >&5
2121 rm -rf conftest*
2122 ac_cv_c_const=no
2123 fi
2124 rm -f conftest*
2125 fi
2126
2127 echo "$ac_t""$ac_cv_c_const" 1>&6
2128 if test $ac_cv_c_const = no; then
2129 cat >> confdefs.h <<\EOF
2130 #define const
2131 EOF
2132
2133 fi
2134
2135 echo $ac_n "checking for inline""... $ac_c" 1>&6
2136 echo "configure:2137: checking for inline" >&5
2137 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
2138 echo $ac_n "(cached) $ac_c" 1>&6
2139 else
2140 ac_cv_c_inline=no
2141 for ac_kw in inline __inline__ __inline; do
2142 cat > conftest.$ac_ext <<EOF
2143 #line 2144 "configure"
2144 #include "confdefs.h"
2145
2146 int main() {
2147 } $ac_kw foo() {
2148 ; return 0; }
2149 EOF
2150 if { (eval echo configure:2151: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2151 rm -rf conftest*
2152 ac_cv_c_inline=$ac_kw; break
2153 else
2154 echo "configure: failed program was:" >&5
2155 cat conftest.$ac_ext >&5
2156 fi
2157 rm -f conftest*
2158 done
2159
2160 fi
2161
2162 echo "$ac_t""$ac_cv_c_inline" 1>&6
2163 case "$ac_cv_c_inline" in
2164 inline | yes) ;;
2165 no) cat >> confdefs.h <<\EOF
2166 #define inline
2167 EOF
2168 ;;
2169 *) cat >> confdefs.h <<EOF
2170 #define inline $ac_cv_c_inline
2171 EOF
2172 ;;
2173 esac
2174
2175 echo $ac_n "checking for off_t""... $ac_c" 1>&6
2176 echo "configure:2177: checking for off_t" >&5
2177 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
2178 echo $ac_n "(cached) $ac_c" 1>&6
2179 else
2180 cat > conftest.$ac_ext <<EOF
2181 #line 2182 "configure"
2182 #include "confdefs.h"
2183 #include <sys/types.h>
2184 #if STDC_HEADERS
2185 #include <stdlib.h>
2186 #include <stddef.h>
2187 #endif
2188 EOF
2189 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2190 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2191 rm -rf conftest*
2192 ac_cv_type_off_t=yes
2193 else
2194 rm -rf conftest*
2195 ac_cv_type_off_t=no
2196 fi
2197 rm -f conftest*
2198
2199 fi
2200 echo "$ac_t""$ac_cv_type_off_t" 1>&6
2201 if test $ac_cv_type_off_t = no; then
2202 cat >> confdefs.h <<\EOF
2203 #define off_t long
2204 EOF
2205
2206 fi
2207
2208 echo $ac_n "checking for size_t""... $ac_c" 1>&6
2209 echo "configure:2210: checking for size_t" >&5
2210 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
2211 echo $ac_n "(cached) $ac_c" 1>&6
2212 else
2213 cat > conftest.$ac_ext <<EOF
2214 #line 2215 "configure"
2215 #include "confdefs.h"
2216 #include <sys/types.h>
2217 #if STDC_HEADERS
2218 #include <stdlib.h>
2219 #include <stddef.h>
2220 #endif
2221 EOF
2222 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2223 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2224 rm -rf conftest*
2225 ac_cv_type_size_t=yes
2226 else
2227 rm -rf conftest*
2228 ac_cv_type_size_t=no
2229 fi
2230 rm -f conftest*
2231
2232 fi
2233 echo "$ac_t""$ac_cv_type_size_t" 1>&6
2234 if test $ac_cv_type_size_t = no; then
2235 cat >> confdefs.h <<\EOF
2236 #define size_t unsigned
2237 EOF
2238
2239 fi
2240
2241 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
2242 # for constant arguments. Useless!
2243 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
2244 echo "configure:2245: checking for working alloca.h" >&5
2245 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
2246 echo $ac_n "(cached) $ac_c" 1>&6
2247 else
2248 cat > conftest.$ac_ext <<EOF
2249 #line 2250 "configure"
2250 #include "confdefs.h"
2251 #include <alloca.h>
2252 int main() {
2253 char *p = alloca(2 * sizeof(int));
2254 ; return 0; }
2255 EOF
2256 if { (eval echo configure:2257: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2257 rm -rf conftest*
2258 ac_cv_header_alloca_h=yes
2259 else
2260 echo "configure: failed program was:" >&5
2261 cat conftest.$ac_ext >&5
2262 rm -rf conftest*
2263 ac_cv_header_alloca_h=no
2264 fi
2265 rm -f conftest*
2266 fi
2267
2268 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
2269 if test $ac_cv_header_alloca_h = yes; then
2270 cat >> confdefs.h <<\EOF
2271 #define HAVE_ALLOCA_H 1
2272 EOF
2273
2274 fi
2275
2276 echo $ac_n "checking for alloca""... $ac_c" 1>&6
2277 echo "configure:2278: checking for alloca" >&5
2278 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
2279 echo $ac_n "(cached) $ac_c" 1>&6
2280 else
2281 cat > conftest.$ac_ext <<EOF
2282 #line 2283 "configure"
2283 #include "confdefs.h"
2284
2285 #ifdef __GNUC__
2286 # define alloca __builtin_alloca
2287 #else
2288 # ifdef _MSC_VER
2289 # include <malloc.h>
2290 # define alloca _alloca
2291 # else
2292 # if HAVE_ALLOCA_H
2293 # include <alloca.h>
2294 # else
2295 # ifdef _AIX
2296 #pragma alloca
2297 # else
2298 # ifndef alloca /* predefined by HP cc +Olibcalls */
2299 char *alloca ();
2300 # endif
2301 # endif
2302 # endif
2303 # endif
2304 #endif
2305
2306 int main() {
2307 char *p = (char *) alloca(1);
2308 ; return 0; }
2309 EOF
2310 if { (eval echo configure:2311: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2311 rm -rf conftest*
2312 ac_cv_func_alloca_works=yes
2313 else
2314 echo "configure: failed program was:" >&5
2315 cat conftest.$ac_ext >&5
2316 rm -rf conftest*
2317 ac_cv_func_alloca_works=no
2318 fi
2319 rm -f conftest*
2320 fi
2321
2322 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
2323 if test $ac_cv_func_alloca_works = yes; then
2324 cat >> confdefs.h <<\EOF
2325 #define HAVE_ALLOCA 1
2326 EOF
2327
2328 fi
2329
2330 if test $ac_cv_func_alloca_works = no; then
2331 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
2332 # that cause trouble. Some versions do not even contain alloca or
2333 # contain a buggy version. If you still want to use their alloca,
2334 # use ar to extract alloca.o from them instead of compiling alloca.c.
2335 ALLOCA=alloca.${ac_objext}
2336 cat >> confdefs.h <<\EOF
2337 #define C_ALLOCA 1
2338 EOF
2339
2340
2341 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
2342 echo "configure:2343: checking whether alloca needs Cray hooks" >&5
2343 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
2344 echo $ac_n "(cached) $ac_c" 1>&6
2345 else
2346 cat > conftest.$ac_ext <<EOF
2347 #line 2348 "configure"
2348 #include "confdefs.h"
2349 #if defined(CRAY) && ! defined(CRAY2)
2350 webecray
2351 #else
2352 wenotbecray
2353 #endif
2354
2355 EOF
2356 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2357 egrep "webecray" >/dev/null 2>&1; then
2358 rm -rf conftest*
2359 ac_cv_os_cray=yes
2360 else
2361 rm -rf conftest*
2362 ac_cv_os_cray=no
2363 fi
2364 rm -f conftest*
2365
2366 fi
2367
2368 echo "$ac_t""$ac_cv_os_cray" 1>&6
2369 if test $ac_cv_os_cray = yes; then
2370 for ac_func in _getb67 GETB67 getb67; do
2371 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2372 echo "configure:2373: checking for $ac_func" >&5
2373 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2374 echo $ac_n "(cached) $ac_c" 1>&6
2375 else
2376 cat > conftest.$ac_ext <<EOF
2377 #line 2378 "configure"
2378 #include "confdefs.h"
2379 /* System header to define __stub macros and hopefully few prototypes,
2380 which can conflict with char $ac_func(); below. */
2381 #include <assert.h>
2382 /* Override any gcc2 internal prototype to avoid an error. */
2383 /* We use char because int might match the return type of a gcc2
2384 builtin and then its argument prototype would still apply. */
2385 char $ac_func();
2386
2387 int main() {
2388
2389 /* The GNU C library defines this for functions which it implements
2390 to always fail with ENOSYS. Some functions are actually named
2391 something starting with __ and the normal name is an alias. */
2392 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2393 choke me
2394 #else
2395 $ac_func();
2396 #endif
2397
2398 ; return 0; }
2399 EOF
2400 if { (eval echo configure:2401: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2401 rm -rf conftest*
2402 eval "ac_cv_func_$ac_func=yes"
2403 else
2404 echo "configure: failed program was:" >&5
2405 cat conftest.$ac_ext >&5
2406 rm -rf conftest*
2407 eval "ac_cv_func_$ac_func=no"
2408 fi
2409 rm -f conftest*
2410 fi
2411
2412 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2413 echo "$ac_t""yes" 1>&6
2414 cat >> confdefs.h <<EOF
2415 #define CRAY_STACKSEG_END $ac_func
2416 EOF
2417
2418 break
2419 else
2420 echo "$ac_t""no" 1>&6
2421 fi
2422
2423 done
2424 fi
2425
2426 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
2427 echo "configure:2428: checking stack direction for C alloca" >&5
2428 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
2429 echo $ac_n "(cached) $ac_c" 1>&6
2430 else
2431 if test "$cross_compiling" = yes; then
2432 ac_cv_c_stack_direction=0
2433 else
2434 cat > conftest.$ac_ext <<EOF
2435 #line 2436 "configure"
2436 #include "confdefs.h"
2437 find_stack_direction ()
2438 {
2439 static char *addr = 0;
2440 auto char dummy;
2441 if (addr == 0)
2442 {
2443 addr = &dummy;
2444 return find_stack_direction ();
2445 }
2446 else
2447 return (&dummy > addr) ? 1 : -1;
2448 }
2449 main ()
2450 {
2451 exit (find_stack_direction() < 0);
2452 }
2453 EOF
2454 if { (eval echo configure:2455: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2455 then
2456 ac_cv_c_stack_direction=1
2457 else
2458 echo "configure: failed program was:" >&5
2459 cat conftest.$ac_ext >&5
2460 rm -fr conftest*
2461 ac_cv_c_stack_direction=-1
2462 fi
2463 rm -fr conftest*
2464 fi
2465
2466 fi
2467
2468 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
2469 cat >> confdefs.h <<EOF
2470 #define STACK_DIRECTION $ac_cv_c_stack_direction
2471 EOF
2472
2473 fi
2474
2475 for ac_hdr in unistd.h
2476 do
2477 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2478 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2479 echo "configure:2480: checking for $ac_hdr" >&5
2480 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2481 echo $ac_n "(cached) $ac_c" 1>&6
2482 else
2483 cat > conftest.$ac_ext <<EOF
2484 #line 2485 "configure"
2485 #include "confdefs.h"
2486 #include <$ac_hdr>
2487 EOF
2488 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2489 { (eval echo configure:2490: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2490 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2491 if test -z "$ac_err"; then
2492 rm -rf conftest*
2493 eval "ac_cv_header_$ac_safe=yes"
2494 else
2495 echo "$ac_err" >&5
2496 echo "configure: failed program was:" >&5
2497 cat conftest.$ac_ext >&5
2498 rm -rf conftest*
2499 eval "ac_cv_header_$ac_safe=no"
2500 fi
2501 rm -f conftest*
2502 fi
2503 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2504 echo "$ac_t""yes" 1>&6
2505 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2506 cat >> confdefs.h <<EOF
2507 #define $ac_tr_hdr 1
2508 EOF
2509
2510 else
2511 echo "$ac_t""no" 1>&6
2512 fi
2513 done
2514
2515 for ac_func in getpagesize
2516 do
2517 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2518 echo "configure:2519: checking for $ac_func" >&5
2519 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2520 echo $ac_n "(cached) $ac_c" 1>&6
2521 else
2522 cat > conftest.$ac_ext <<EOF
2523 #line 2524 "configure"
2524 #include "confdefs.h"
2525 /* System header to define __stub macros and hopefully few prototypes,
2526 which can conflict with char $ac_func(); below. */
2527 #include <assert.h>
2528 /* Override any gcc2 internal prototype to avoid an error. */
2529 /* We use char because int might match the return type of a gcc2
2530 builtin and then its argument prototype would still apply. */
2531 char $ac_func();
2532
2533 int main() {
2534
2535 /* The GNU C library defines this for functions which it implements
2536 to always fail with ENOSYS. Some functions are actually named
2537 something starting with __ and the normal name is an alias. */
2538 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2539 choke me
2540 #else
2541 $ac_func();
2542 #endif
2543
2544 ; return 0; }
2545 EOF
2546 if { (eval echo configure:2547: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2547 rm -rf conftest*
2548 eval "ac_cv_func_$ac_func=yes"
2549 else
2550 echo "configure: failed program was:" >&5
2551 cat conftest.$ac_ext >&5
2552 rm -rf conftest*
2553 eval "ac_cv_func_$ac_func=no"
2554 fi
2555 rm -f conftest*
2556 fi
2557
2558 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2559 echo "$ac_t""yes" 1>&6
2560 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2561 cat >> confdefs.h <<EOF
2562 #define $ac_tr_func 1
2563 EOF
2564
2565 else
2566 echo "$ac_t""no" 1>&6
2567 fi
2568 done
2569
2570 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
2571 echo "configure:2572: checking for working mmap" >&5
2572 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
2573 echo $ac_n "(cached) $ac_c" 1>&6
2574 else
2575 if test "$cross_compiling" = yes; then
2576 ac_cv_func_mmap_fixed_mapped=no
2577 else
2578 cat > conftest.$ac_ext <<EOF
2579 #line 2580 "configure"
2580 #include "confdefs.h"
2581
2582 /* Thanks to Mike Haertel and Jim Avera for this test.
2583 Here is a matrix of mmap possibilities:
2584 mmap private not fixed
2585 mmap private fixed at somewhere currently unmapped
2586 mmap private fixed at somewhere already mapped
2587 mmap shared not fixed
2588 mmap shared fixed at somewhere currently unmapped
2589 mmap shared fixed at somewhere already mapped
2590 For private mappings, we should verify that changes cannot be read()
2591 back from the file, nor mmap's back from the file at a different
2592 address. (There have been systems where private was not correctly
2593 implemented like the infamous i386 svr4.0, and systems where the
2594 VM page cache was not coherent with the filesystem buffer cache
2595 like early versions of FreeBSD and possibly contemporary NetBSD.)
2596 For shared mappings, we should conversely verify that changes get
2597 propogated back to all the places they're supposed to be.
2598
2599 Grep wants private fixed already mapped.
2600 The main things grep needs to know about mmap are:
2601 * does it exist and is it safe to write into the mmap'd area
2602 * how to use it (BSD variants) */
2603 #include <sys/types.h>
2604 #include <fcntl.h>
2605 #include <sys/mman.h>
2606
2607 /* This mess was copied from the GNU getpagesize.h. */
2608 #ifndef HAVE_GETPAGESIZE
2609 # ifdef HAVE_UNISTD_H
2610 # include <unistd.h>
2611 # endif
2612
2613 /* Assume that all systems that can run configure have sys/param.h. */
2614 # ifndef HAVE_SYS_PARAM_H
2615 # define HAVE_SYS_PARAM_H 1
2616 # endif
2617
2618 # ifdef _SC_PAGESIZE
2619 # define getpagesize() sysconf(_SC_PAGESIZE)
2620 # else /* no _SC_PAGESIZE */
2621 # ifdef HAVE_SYS_PARAM_H
2622 # include <sys/param.h>
2623 # ifdef EXEC_PAGESIZE
2624 # define getpagesize() EXEC_PAGESIZE
2625 # else /* no EXEC_PAGESIZE */
2626 # ifdef NBPG
2627 # define getpagesize() NBPG * CLSIZE
2628 # ifndef CLSIZE
2629 # define CLSIZE 1
2630 # endif /* no CLSIZE */
2631 # else /* no NBPG */
2632 # ifdef NBPC
2633 # define getpagesize() NBPC
2634 # else /* no NBPC */
2635 # ifdef PAGESIZE
2636 # define getpagesize() PAGESIZE
2637 # endif /* PAGESIZE */
2638 # endif /* no NBPC */
2639 # endif /* no NBPG */
2640 # endif /* no EXEC_PAGESIZE */
2641 # else /* no HAVE_SYS_PARAM_H */
2642 # define getpagesize() 8192 /* punt totally */
2643 # endif /* no HAVE_SYS_PARAM_H */
2644 # endif /* no _SC_PAGESIZE */
2645
2646 #endif /* no HAVE_GETPAGESIZE */
2647
2648 #ifdef __cplusplus
2649 extern "C" { void *malloc(unsigned); }
2650 #else
2651 char *malloc();
2652 #endif
2653
2654 int
2655 main()
2656 {
2657 char *data, *data2, *data3;
2658 int i, pagesize;
2659 int fd;
2660
2661 pagesize = getpagesize();
2662
2663 /*
2664 * First, make a file with some known garbage in it.
2665 */
2666 data = malloc(pagesize);
2667 if (!data)
2668 exit(1);
2669 for (i = 0; i < pagesize; ++i)
2670 *(data + i) = rand();
2671 umask(0);
2672 fd = creat("conftestmmap", 0600);
2673 if (fd < 0)
2674 exit(1);
2675 if (write(fd, data, pagesize) != pagesize)
2676 exit(1);
2677 close(fd);
2678
2679 /*
2680 * Next, try to mmap the file at a fixed address which
2681 * already has something else allocated at it. If we can,
2682 * also make sure that we see the same garbage.
2683 */
2684 fd = open("conftestmmap", O_RDWR);
2685 if (fd < 0)
2686 exit(1);
2687 data2 = malloc(2 * pagesize);
2688 if (!data2)
2689 exit(1);
2690 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
2691 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
2692 MAP_PRIVATE | MAP_FIXED, fd, 0L))
2693 exit(1);
2694 for (i = 0; i < pagesize; ++i)
2695 if (*(data + i) != *(data2 + i))
2696 exit(1);
2697
2698 /*
2699 * Finally, make sure that changes to the mapped area
2700 * do not percolate back to the file as seen by read().
2701 * (This is a bug on some variants of i386 svr4.0.)
2702 */
2703 for (i = 0; i < pagesize; ++i)
2704 *(data2 + i) = *(data2 + i) + 1;
2705 data3 = malloc(pagesize);
2706 if (!data3)
2707 exit(1);
2708 if (read(fd, data3, pagesize) != pagesize)
2709 exit(1);
2710 for (i = 0; i < pagesize; ++i)
2711 if (*(data + i) != *(data3 + i))
2712 exit(1);
2713 close(fd);
2714 unlink("conftestmmap");
2715 exit(0);
2716 }
2717
2718 EOF
2719 if { (eval echo configure:2720: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2720 then
2721 ac_cv_func_mmap_fixed_mapped=yes
2722 else
2723 echo "configure: failed program was:" >&5
2724 cat conftest.$ac_ext >&5
2725 rm -fr conftest*
2726 ac_cv_func_mmap_fixed_mapped=no
2727 fi
2728 rm -fr conftest*
2729 fi
2730
2731 fi
2732
2733 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
2734 if test $ac_cv_func_mmap_fixed_mapped = yes; then
2735 cat >> confdefs.h <<\EOF
2736 #define HAVE_MMAP 1
2737 EOF
2738
2739 fi
2740
2741
2742 for ac_hdr in argz.h limits.h locale.h nl_types.h malloc.h string.h \
2743 unistd.h values.h sys/param.h
2744 do
2745 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2746 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2747 echo "configure:2748: checking for $ac_hdr" >&5
2748 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2749 echo $ac_n "(cached) $ac_c" 1>&6
2750 else
2751 cat > conftest.$ac_ext <<EOF
2752 #line 2753 "configure"
2753 #include "confdefs.h"
2754 #include <$ac_hdr>
2755 EOF
2756 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2757 { (eval echo configure:2758: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2758 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2759 if test -z "$ac_err"; then
2760 rm -rf conftest*
2761 eval "ac_cv_header_$ac_safe=yes"
2762 else
2763 echo "$ac_err" >&5
2764 echo "configure: failed program was:" >&5
2765 cat conftest.$ac_ext >&5
2766 rm -rf conftest*
2767 eval "ac_cv_header_$ac_safe=no"
2768 fi
2769 rm -f conftest*
2770 fi
2771 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2772 echo "$ac_t""yes" 1>&6
2773 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2774 cat >> confdefs.h <<EOF
2775 #define $ac_tr_hdr 1
2776 EOF
2777
2778 else
2779 echo "$ac_t""no" 1>&6
2780 fi
2781 done
2782
2783 for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \
2784 __argz_count __argz_stringify __argz_next
2785 do
2786 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2787 echo "configure:2788: checking for $ac_func" >&5
2788 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2789 echo $ac_n "(cached) $ac_c" 1>&6
2790 else
2791 cat > conftest.$ac_ext <<EOF
2792 #line 2793 "configure"
2793 #include "confdefs.h"
2794 /* System header to define __stub macros and hopefully few prototypes,
2795 which can conflict with char $ac_func(); below. */
2796 #include <assert.h>
2797 /* Override any gcc2 internal prototype to avoid an error. */
2798 /* We use char because int might match the return type of a gcc2
2799 builtin and then its argument prototype would still apply. */
2800 char $ac_func();
2801
2802 int main() {
2803
2804 /* The GNU C library defines this for functions which it implements
2805 to always fail with ENOSYS. Some functions are actually named
2806 something starting with __ and the normal name is an alias. */
2807 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2808 choke me
2809 #else
2810 $ac_func();
2811 #endif
2812
2813 ; return 0; }
2814 EOF
2815 if { (eval echo configure:2816: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2816 rm -rf conftest*
2817 eval "ac_cv_func_$ac_func=yes"
2818 else
2819 echo "configure: failed program was:" >&5
2820 cat conftest.$ac_ext >&5
2821 rm -rf conftest*
2822 eval "ac_cv_func_$ac_func=no"
2823 fi
2824 rm -f conftest*
2825 fi
2826
2827 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2828 echo "$ac_t""yes" 1>&6
2829 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2830 cat >> confdefs.h <<EOF
2831 #define $ac_tr_func 1
2832 EOF
2833
2834 else
2835 echo "$ac_t""no" 1>&6
2836 fi
2837 done
2838
2839
2840 if test "${ac_cv_func_stpcpy+set}" != "set"; then
2841 for ac_func in stpcpy
2842 do
2843 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2844 echo "configure:2845: checking for $ac_func" >&5
2845 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2846 echo $ac_n "(cached) $ac_c" 1>&6
2847 else
2848 cat > conftest.$ac_ext <<EOF
2849 #line 2850 "configure"
2850 #include "confdefs.h"
2851 /* System header to define __stub macros and hopefully few prototypes,
2852 which can conflict with char $ac_func(); below. */
2853 #include <assert.h>
2854 /* Override any gcc2 internal prototype to avoid an error. */
2855 /* We use char because int might match the return type of a gcc2
2856 builtin and then its argument prototype would still apply. */
2857 char $ac_func();
2858
2859 int main() {
2860
2861 /* The GNU C library defines this for functions which it implements
2862 to always fail with ENOSYS. Some functions are actually named
2863 something starting with __ and the normal name is an alias. */
2864 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2865 choke me
2866 #else
2867 $ac_func();
2868 #endif
2869
2870 ; return 0; }
2871 EOF
2872 if { (eval echo configure:2873: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2873 rm -rf conftest*
2874 eval "ac_cv_func_$ac_func=yes"
2875 else
2876 echo "configure: failed program was:" >&5
2877 cat conftest.$ac_ext >&5
2878 rm -rf conftest*
2879 eval "ac_cv_func_$ac_func=no"
2880 fi
2881 rm -f conftest*
2882 fi
2883
2884 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2885 echo "$ac_t""yes" 1>&6
2886 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2887 cat >> confdefs.h <<EOF
2888 #define $ac_tr_func 1
2889 EOF
2890
2891 else
2892 echo "$ac_t""no" 1>&6
2893 fi
2894 done
2895
2896 fi
2897 if test "${ac_cv_func_stpcpy}" = "yes"; then
2898 cat >> confdefs.h <<\EOF
2899 #define HAVE_STPCPY 1
2900 EOF
2901
2902 fi
2903
2904 if test $ac_cv_header_locale_h = yes; then
2905 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
2906 echo "configure:2907: checking for LC_MESSAGES" >&5
2907 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
2908 echo $ac_n "(cached) $ac_c" 1>&6
2909 else
2910 cat > conftest.$ac_ext <<EOF
2911 #line 2912 "configure"
2912 #include "confdefs.h"
2913 #include <locale.h>
2914 int main() {
2915 return LC_MESSAGES
2916 ; return 0; }
2917 EOF
2918 if { (eval echo configure:2919: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2919 rm -rf conftest*
2920 am_cv_val_LC_MESSAGES=yes
2921 else
2922 echo "configure: failed program was:" >&5
2923 cat conftest.$ac_ext >&5
2924 rm -rf conftest*
2925 am_cv_val_LC_MESSAGES=no
2926 fi
2927 rm -f conftest*
2928 fi
2929
2930 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
2931 if test $am_cv_val_LC_MESSAGES = yes; then
2932 cat >> confdefs.h <<\EOF
2933 #define HAVE_LC_MESSAGES 1
2934 EOF
2935
2936 fi
2937 fi
2938 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
2939 echo "configure:2940: checking whether NLS is requested" >&5
2940 # Check whether --enable-nls or --disable-nls was given.
2941 if test "${enable_nls+set}" = set; then
2942 enableval="$enable_nls"
2943 USE_NLS=$enableval
2944 else
2945 USE_NLS=yes
2946 fi
2947
2948 echo "$ac_t""$USE_NLS" 1>&6
2949
2950
2951 USE_INCLUDED_LIBINTL=no
2952
2953 if test "$USE_NLS" = "yes"; then
2954 cat >> confdefs.h <<\EOF
2955 #define ENABLE_NLS 1
2956 EOF
2957
2958 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
2959 echo "configure:2960: checking whether included gettext is requested" >&5
2960 # Check whether --with-included-gettext or --without-included-gettext was given.
2961 if test "${with_included_gettext+set}" = set; then
2962 withval="$with_included_gettext"
2963 nls_cv_force_use_gnu_gettext=$withval
2964 else
2965 nls_cv_force_use_gnu_gettext=no
2966 fi
2967
2968 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
2969
2970 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
2971 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
2972 nls_cv_header_intl=
2973 nls_cv_header_libgt=
2974 CATOBJEXT=NONE
2975
2976 ac_safe=`echo "libintl.h" | sed 'y%./+-%__p_%'`
2977 echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
2978 echo "configure:2979: checking for libintl.h" >&5
2979 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2980 echo $ac_n "(cached) $ac_c" 1>&6
2981 else
2982 cat > conftest.$ac_ext <<EOF
2983 #line 2984 "configure"
2984 #include "confdefs.h"
2985 #include <libintl.h>
2986 EOF
2987 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2988 { (eval echo configure:2989: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2989 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2990 if test -z "$ac_err"; then
2991 rm -rf conftest*
2992 eval "ac_cv_header_$ac_safe=yes"
2993 else
2994 echo "$ac_err" >&5
2995 echo "configure: failed program was:" >&5
2996 cat conftest.$ac_ext >&5
2997 rm -rf conftest*
2998 eval "ac_cv_header_$ac_safe=no"
2999 fi
3000 rm -f conftest*
3001 fi
3002 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3003 echo "$ac_t""yes" 1>&6
3004 echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6
3005 echo "configure:3006: checking for gettext in libc" >&5
3006 if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then
3007 echo $ac_n "(cached) $ac_c" 1>&6
3008 else
3009 cat > conftest.$ac_ext <<EOF
3010 #line 3011 "configure"
3011 #include "confdefs.h"
3012 #include <libintl.h>
3013 int main() {
3014 return (int) gettext ("")
3015 ; return 0; }
3016 EOF
3017 if { (eval echo configure:3018: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3018 rm -rf conftest*
3019 gt_cv_func_gettext_libc=yes
3020 else
3021 echo "configure: failed program was:" >&5
3022 cat conftest.$ac_ext >&5
3023 rm -rf conftest*
3024 gt_cv_func_gettext_libc=no
3025 fi
3026 rm -f conftest*
3027 fi
3028
3029 echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6
3030
3031 if test "$gt_cv_func_gettext_libc" != "yes"; then
3032 echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6
3033 echo "configure:3034: checking for bindtextdomain in -lintl" >&5
3034 ac_lib_var=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'`
3035 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3036 echo $ac_n "(cached) $ac_c" 1>&6
3037 else
3038 ac_save_LIBS="$LIBS"
3039 LIBS="-lintl $LIBS"
3040 cat > conftest.$ac_ext <<EOF
3041 #line 3042 "configure"
3042 #include "confdefs.h"
3043 /* Override any gcc2 internal prototype to avoid an error. */
3044 /* We use char because int might match the return type of a gcc2
3045 builtin and then its argument prototype would still apply. */
3046 char bindtextdomain();
3047
3048 int main() {
3049 bindtextdomain()
3050 ; return 0; }
3051 EOF
3052 if { (eval echo configure:3053: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3053 rm -rf conftest*
3054 eval "ac_cv_lib_$ac_lib_var=yes"
3055 else
3056 echo "configure: failed program was:" >&5
3057 cat conftest.$ac_ext >&5
3058 rm -rf conftest*
3059 eval "ac_cv_lib_$ac_lib_var=no"
3060 fi
3061 rm -f conftest*
3062 LIBS="$ac_save_LIBS"
3063
3064 fi
3065 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3066 echo "$ac_t""yes" 1>&6
3067 echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6
3068 echo "configure:3069: checking for gettext in libintl" >&5
3069 if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then
3070 echo $ac_n "(cached) $ac_c" 1>&6
3071 else
3072 cat > conftest.$ac_ext <<EOF
3073 #line 3074 "configure"
3074 #include "confdefs.h"
3075
3076 int main() {
3077 return (int) gettext ("")
3078 ; return 0; }
3079 EOF
3080 if { (eval echo configure:3081: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3081 rm -rf conftest*
3082 gt_cv_func_gettext_libintl=yes
3083 else
3084 echo "configure: failed program was:" >&5
3085 cat conftest.$ac_ext >&5
3086 rm -rf conftest*
3087 gt_cv_func_gettext_libintl=no
3088 fi
3089 rm -f conftest*
3090 fi
3091
3092 echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6
3093 else
3094 echo "$ac_t""no" 1>&6
3095 fi
3096
3097 fi
3098
3099 if test "$gt_cv_func_gettext_libc" = "yes" \
3100 || test "$gt_cv_func_gettext_libintl" = "yes"; then
3101 cat >> confdefs.h <<\EOF
3102 #define HAVE_GETTEXT 1
3103 EOF
3104
3105 # Extract the first word of "msgfmt", so it can be a program name with args.
3106 set dummy msgfmt; ac_word=$2
3107 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3108 echo "configure:3109: checking for $ac_word" >&5
3109 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
3110 echo $ac_n "(cached) $ac_c" 1>&6
3111 else
3112 case "$MSGFMT" in
3113 /*)
3114 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
3115 ;;
3116 *)
3117 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
3118 for ac_dir in $PATH; do
3119 test -z "$ac_dir" && ac_dir=.
3120 if test -f $ac_dir/$ac_word; then
3121 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
3122 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
3123 break
3124 fi
3125 fi
3126 done
3127 IFS="$ac_save_ifs"
3128 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
3129 ;;
3130 esac
3131 fi
3132 MSGFMT="$ac_cv_path_MSGFMT"
3133 if test -n "$MSGFMT"; then
3134 echo "$ac_t""$MSGFMT" 1>&6
3135 else
3136 echo "$ac_t""no" 1>&6
3137 fi
3138 if test "$MSGFMT" != "no"; then
3139 for ac_func in dcgettext
3140 do
3141 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3142 echo "configure:3143: checking for $ac_func" >&5
3143 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3144 echo $ac_n "(cached) $ac_c" 1>&6
3145 else
3146 cat > conftest.$ac_ext <<EOF
3147 #line 3148 "configure"
3148 #include "confdefs.h"
3149 /* System header to define __stub macros and hopefully few prototypes,
3150 which can conflict with char $ac_func(); below. */
3151 #include <assert.h>
3152 /* Override any gcc2 internal prototype to avoid an error. */
3153 /* We use char because int might match the return type of a gcc2
3154 builtin and then its argument prototype would still apply. */
3155 char $ac_func();
3156
3157 int main() {
3158
3159 /* The GNU C library defines this for functions which it implements
3160 to always fail with ENOSYS. Some functions are actually named
3161 something starting with __ and the normal name is an alias. */
3162 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3163 choke me
3164 #else
3165 $ac_func();
3166 #endif
3167
3168 ; return 0; }
3169 EOF
3170 if { (eval echo configure:3171: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3171 rm -rf conftest*
3172 eval "ac_cv_func_$ac_func=yes"
3173 else
3174 echo "configure: failed program was:" >&5
3175 cat conftest.$ac_ext >&5
3176 rm -rf conftest*
3177 eval "ac_cv_func_$ac_func=no"
3178 fi
3179 rm -f conftest*
3180 fi
3181
3182 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3183 echo "$ac_t""yes" 1>&6
3184 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3185 cat >> confdefs.h <<EOF
3186 #define $ac_tr_func 1
3187 EOF
3188
3189 else
3190 echo "$ac_t""no" 1>&6
3191 fi
3192 done
3193
3194 # Extract the first word of "gmsgfmt", so it can be a program name with args.
3195 set dummy gmsgfmt; ac_word=$2
3196 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3197 echo "configure:3198: checking for $ac_word" >&5
3198 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
3199 echo $ac_n "(cached) $ac_c" 1>&6
3200 else
3201 case "$GMSGFMT" in
3202 /*)
3203 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
3204 ;;
3205 ?:/*)
3206 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
3207 ;;
3208 *)
3209 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3210 ac_dummy="$PATH"
3211 for ac_dir in $ac_dummy; do
3212 test -z "$ac_dir" && ac_dir=.
3213 if test -f $ac_dir/$ac_word; then
3214 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
3215 break
3216 fi
3217 done
3218 IFS="$ac_save_ifs"
3219 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
3220 ;;
3221 esac
3222 fi
3223 GMSGFMT="$ac_cv_path_GMSGFMT"
3224 if test -n "$GMSGFMT"; then
3225 echo "$ac_t""$GMSGFMT" 1>&6
3226 else
3227 echo "$ac_t""no" 1>&6
3228 fi
3229
3230 # Extract the first word of "xgettext", so it can be a program name with args.
3231 set dummy xgettext; ac_word=$2
3232 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3233 echo "configure:3234: checking for $ac_word" >&5
3234 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
3235 echo $ac_n "(cached) $ac_c" 1>&6
3236 else
3237 case "$XGETTEXT" in
3238 /*)
3239 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
3240 ;;
3241 *)
3242 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
3243 for ac_dir in $PATH; do
3244 test -z "$ac_dir" && ac_dir=.
3245 if test -f $ac_dir/$ac_word; then
3246 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
3247 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
3248 break
3249 fi
3250 fi
3251 done
3252 IFS="$ac_save_ifs"
3253 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
3254 ;;
3255 esac
3256 fi
3257 XGETTEXT="$ac_cv_path_XGETTEXT"
3258 if test -n "$XGETTEXT"; then
3259 echo "$ac_t""$XGETTEXT" 1>&6
3260 else
3261 echo "$ac_t""no" 1>&6
3262 fi
3263
3264 cat > conftest.$ac_ext <<EOF
3265 #line 3266 "configure"
3266 #include "confdefs.h"
3267
3268 int main() {
3269 extern int _nl_msg_cat_cntr;
3270 return _nl_msg_cat_cntr
3271 ; return 0; }
3272 EOF
3273 if { (eval echo configure:3274: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3274 rm -rf conftest*
3275 CATOBJEXT=.gmo
3276 DATADIRNAME=share
3277 else
3278 echo "configure: failed program was:" >&5
3279 cat conftest.$ac_ext >&5
3280 rm -rf conftest*
3281 CATOBJEXT=.mo
3282 DATADIRNAME=lib
3283 fi
3284 rm -f conftest*
3285 INSTOBJEXT=.mo
3286 fi
3287 fi
3288
3289 else
3290 echo "$ac_t""no" 1>&6
3291 fi
3292
3293
3294
3295 if test "$CATOBJEXT" = "NONE"; then
3296 nls_cv_use_gnu_gettext=yes
3297 fi
3298 fi
3299
3300 if test "$nls_cv_use_gnu_gettext" = "yes"; then
3301 INTLOBJS="\$(GETTOBJS)"
3302 # Extract the first word of "msgfmt", so it can be a program name with args.
3303 set dummy msgfmt; ac_word=$2
3304 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3305 echo "configure:3306: checking for $ac_word" >&5
3306 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
3307 echo $ac_n "(cached) $ac_c" 1>&6
3308 else
3309 case "$MSGFMT" in
3310 /*)
3311 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
3312 ;;
3313 *)
3314 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
3315 for ac_dir in $PATH; do
3316 test -z "$ac_dir" && ac_dir=.
3317 if test -f $ac_dir/$ac_word; then
3318 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
3319 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
3320 break
3321 fi
3322 fi
3323 done
3324 IFS="$ac_save_ifs"
3325 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt"
3326 ;;
3327 esac
3328 fi
3329 MSGFMT="$ac_cv_path_MSGFMT"
3330 if test -n "$MSGFMT"; then
3331 echo "$ac_t""$MSGFMT" 1>&6
3332 else
3333 echo "$ac_t""no" 1>&6
3334 fi
3335
3336 # Extract the first word of "gmsgfmt", so it can be a program name with args.
3337 set dummy gmsgfmt; ac_word=$2
3338 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3339 echo "configure:3340: checking for $ac_word" >&5
3340 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
3341 echo $ac_n "(cached) $ac_c" 1>&6
3342 else
3343 case "$GMSGFMT" in
3344 /*)
3345 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
3346 ;;
3347 ?:/*)
3348 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
3349 ;;
3350 *)
3351 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3352 ac_dummy="$PATH"
3353 for ac_dir in $ac_dummy; do
3354 test -z "$ac_dir" && ac_dir=.
3355 if test -f $ac_dir/$ac_word; then
3356 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
3357 break
3358 fi
3359 done
3360 IFS="$ac_save_ifs"
3361 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
3362 ;;
3363 esac
3364 fi
3365 GMSGFMT="$ac_cv_path_GMSGFMT"
3366 if test -n "$GMSGFMT"; then
3367 echo "$ac_t""$GMSGFMT" 1>&6
3368 else
3369 echo "$ac_t""no" 1>&6
3370 fi
3371
3372 # Extract the first word of "xgettext", so it can be a program name with args.
3373 set dummy xgettext; ac_word=$2
3374 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3375 echo "configure:3376: checking for $ac_word" >&5
3376 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
3377 echo $ac_n "(cached) $ac_c" 1>&6
3378 else
3379 case "$XGETTEXT" in
3380 /*)
3381 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
3382 ;;
3383 *)
3384 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
3385 for ac_dir in $PATH; do
3386 test -z "$ac_dir" && ac_dir=.
3387 if test -f $ac_dir/$ac_word; then
3388 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
3389 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
3390 break
3391 fi
3392 fi
3393 done
3394 IFS="$ac_save_ifs"
3395 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
3396 ;;
3397 esac
3398 fi
3399 XGETTEXT="$ac_cv_path_XGETTEXT"
3400 if test -n "$XGETTEXT"; then
3401 echo "$ac_t""$XGETTEXT" 1>&6
3402 else
3403 echo "$ac_t""no" 1>&6
3404 fi
3405
3406
3407 USE_INCLUDED_LIBINTL=yes
3408 CATOBJEXT=.gmo
3409 INSTOBJEXT=.mo
3410 DATADIRNAME=share
3411 INTLDEPS='$(top_builddir)/../intl/libintl.a'
3412 INTLLIBS=$INTLDEPS
3413 LIBS=`echo $LIBS | sed -e 's/-lintl//'`
3414 nls_cv_header_intl=libintl.h
3415 nls_cv_header_libgt=libgettext.h
3416 fi
3417
3418 if test "$XGETTEXT" != ":"; then
3419 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
3420 : ;
3421 else
3422 echo "$ac_t""found xgettext programs is not GNU xgettext; ignore it" 1>&6
3423 XGETTEXT=":"
3424 fi
3425 fi
3426
3427 # We need to process the po/ directory.
3428 POSUB=po
3429 else
3430 DATADIRNAME=share
3431 nls_cv_header_intl=libintl.h
3432 nls_cv_header_libgt=libgettext.h
3433 fi
3434
3435 # If this is used in GNU gettext we have to set USE_NLS to `yes'
3436 # because some of the sources are only built for this goal.
3437 if test "$PACKAGE" = gettext; then
3438 USE_NLS=yes
3439 USE_INCLUDED_LIBINTL=yes
3440 fi
3441
3442 for lang in $ALL_LINGUAS; do
3443 GMOFILES="$GMOFILES $lang.gmo"
3444 POFILES="$POFILES $lang.po"
3445 done
3446
3447
3448
3449
3450
3451
3452
3453
3454
3455
3456
3457
3458
3459
3460 if test "x$CATOBJEXT" != "x"; then
3461 if test "x$ALL_LINGUAS" = "x"; then
3462 LINGUAS=
3463 else
3464 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
3465 echo "configure:3466: checking for catalogs to be installed" >&5
3466 NEW_LINGUAS=
3467 for lang in ${LINGUAS=$ALL_LINGUAS}; do
3468 case "$ALL_LINGUAS" in
3469 *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
3470 esac
3471 done
3472 LINGUAS=$NEW_LINGUAS
3473 echo "$ac_t""$LINGUAS" 1>&6
3474 fi
3475
3476 if test -n "$LINGUAS"; then
3477 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
3478 fi
3479 fi
3480
3481 if test $ac_cv_header_locale_h = yes; then
3482 INCLUDE_LOCALE_H="#include <locale.h>"
3483 else
3484 INCLUDE_LOCALE_H="\
3485 /* The system does not provide the header <locale.h>. Take care yourself. */"
3486 fi
3487
3488
3489 if test -f $srcdir/po2tbl.sed.in; then
3490 if test "$CATOBJEXT" = ".cat"; then
3491 ac_safe=`echo "linux/version.h" | sed 'y%./+-%__p_%'`
3492 echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6
3493 echo "configure:3494: checking for linux/version.h" >&5
3494 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3495 echo $ac_n "(cached) $ac_c" 1>&6
3496 else
3497 cat > conftest.$ac_ext <<EOF
3498 #line 3499 "configure"
3499 #include "confdefs.h"
3500 #include <linux/version.h>
3501 EOF
3502 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3503 { (eval echo configure:3504: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3504 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3505 if test -z "$ac_err"; then
3506 rm -rf conftest*
3507 eval "ac_cv_header_$ac_safe=yes"
3508 else
3509 echo "$ac_err" >&5
3510 echo "configure: failed program was:" >&5
3511 cat conftest.$ac_ext >&5
3512 rm -rf conftest*
3513 eval "ac_cv_header_$ac_safe=no"
3514 fi
3515 rm -f conftest*
3516 fi
3517 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3518 echo "$ac_t""yes" 1>&6
3519 msgformat=linux
3520 else
3521 echo "$ac_t""no" 1>&6
3522 msgformat=xopen
3523 fi
3524
3525
3526 sed -e '/^#/d' $srcdir/$msgformat-msg.sed > po2msg.sed
3527 fi
3528 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
3529 $srcdir/po2tbl.sed.in > po2tbl.sed
3530 fi
3531
3532 if test "$PACKAGE" = "gettext"; then
3533 GT_NO="#NO#"
3534 GT_YES=
3535 else
3536 GT_NO=
3537 GT_YES="#YES#"
3538 fi
3539
3540
3541
3542 MKINSTALLDIRS="\$(srcdir)/../../mkinstalldirs"
3543
3544
3545 l=
3546
3547
3548 if test -d $srcdir/po; then
3549 test -d po || mkdir po
3550 if test "x$srcdir" != "x."; then
3551 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
3552 posrcprefix="$srcdir/"
3553 else
3554 posrcprefix="../$srcdir/"
3555 fi
3556 else
3557 posrcprefix="../"
3558 fi
3559 rm -f po/POTFILES
3560 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
3561 < $srcdir/po/POTFILES.in > po/POTFILES
3562 fi
3563
3564
3565 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
3566 echo "configure:3567: checking for Cygwin environment" >&5
3567 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
3568 echo $ac_n "(cached) $ac_c" 1>&6
3569 else
3570 cat > conftest.$ac_ext <<EOF
3571 #line 3572 "configure"
3572 #include "confdefs.h"
3573
3574 int main() {
3575
3576 #ifndef __CYGWIN__
3577 #define __CYGWIN__ __CYGWIN32__
3578 #endif
3579 return __CYGWIN__;
3580 ; return 0; }
3581 EOF
3582 if { (eval echo configure:3583: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3583 rm -rf conftest*
3584 ac_cv_cygwin=yes
3585 else
3586 echo "configure: failed program was:" >&5
3587 cat conftest.$ac_ext >&5
3588 rm -rf conftest*
3589 ac_cv_cygwin=no
3590 fi
3591 rm -f conftest*
3592 rm -f conftest*
3593 fi
3594
3595 echo "$ac_t""$ac_cv_cygwin" 1>&6
3596 CYGWIN=
3597 test "$ac_cv_cygwin" = yes && CYGWIN=yes
3598 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
3599 echo "configure:3600: checking for mingw32 environment" >&5
3600 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
3601 echo $ac_n "(cached) $ac_c" 1>&6
3602 else
3603 cat > conftest.$ac_ext <<EOF
3604 #line 3605 "configure"
3605 #include "confdefs.h"
3606
3607 int main() {
3608 return __MINGW32__;
3609 ; return 0; }
3610 EOF
3611 if { (eval echo configure:3612: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3612 rm -rf conftest*
3613 ac_cv_mingw32=yes
3614 else
3615 echo "configure: failed program was:" >&5
3616 cat conftest.$ac_ext >&5
3617 rm -rf conftest*
3618 ac_cv_mingw32=no
3619 fi
3620 rm -f conftest*
3621 rm -f conftest*
3622 fi
3623
3624 echo "$ac_t""$ac_cv_mingw32" 1>&6
3625 MINGW32=
3626 test "$ac_cv_mingw32" = yes && MINGW32=yes
3627
3628
3629 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
3630 echo "configure:3631: checking for executable suffix" >&5
3631 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
3632 echo $ac_n "(cached) $ac_c" 1>&6
3633 else
3634 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
3635 ac_cv_exeext=.exe
3636 else
3637 rm -f conftest*
3638 echo 'int main () { return 0; }' > conftest.$ac_ext
3639 ac_cv_exeext=
3640 if { (eval echo configure:3641: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
3641 for file in conftest.*; do
3642 case $file in
3643 *.c | *.o | *.obj | *.ilk | *.pdb) ;;
3644 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
3645 esac
3646 done
3647 else
3648 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
3649 fi
3650 rm -f conftest*
3651 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
3652 fi
3653 fi
3654
3655 EXEEXT=""
3656 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
3657 echo "$ac_t""${ac_cv_exeext}" 1>&6
3658 ac_exeext=$EXEEXT
3659
3660
3661 for ac_prog in 'bison -y' byacc
3662 do
3663 # Extract the first word of "$ac_prog", so it can be a program name with args.
3664 set dummy $ac_prog; ac_word=$2
3665 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3666 echo "configure:3667: checking for $ac_word" >&5
3667 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
3668 echo $ac_n "(cached) $ac_c" 1>&6
3669 else
3670 if test -n "$YACC"; then
3671 ac_cv_prog_YACC="$YACC" # Let the user override the test.
3672 else
3673 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3674 ac_dummy="$PATH"
3675 for ac_dir in $ac_dummy; do
3676 test -z "$ac_dir" && ac_dir=.
3677 if test -f $ac_dir/$ac_word; then
3678 ac_cv_prog_YACC="$ac_prog"
3679 break
3680 fi
3681 done
3682 IFS="$ac_save_ifs"
3683 fi
3684 fi
3685 YACC="$ac_cv_prog_YACC"
3686 if test -n "$YACC"; then
3687 echo "$ac_t""$YACC" 1>&6
3688 else
3689 echo "$ac_t""no" 1>&6
3690 fi
3691
3692 test -n "$YACC" && break
3693 done
3694 test -n "$YACC" || YACC="yacc"
3695
3696 missing_dir=`cd $ac_aux_dir && pwd`
3697 for ac_prog in flex lex
3698 do
3699 # Extract the first word of "$ac_prog", so it can be a program name with args.
3700 set dummy $ac_prog; ac_word=$2
3701 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3702 echo "configure:3703: checking for $ac_word" >&5
3703 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
3704 echo $ac_n "(cached) $ac_c" 1>&6
3705 else
3706 if test -n "$LEX"; then
3707 ac_cv_prog_LEX="$LEX" # Let the user override the test.
3708 else
3709 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3710 ac_dummy="$PATH"
3711 for ac_dir in $ac_dummy; do
3712 test -z "$ac_dir" && ac_dir=.
3713 if test -f $ac_dir/$ac_word; then
3714 ac_cv_prog_LEX="$ac_prog"
3715 break
3716 fi
3717 done
3718 IFS="$ac_save_ifs"
3719 fi
3720 fi
3721 LEX="$ac_cv_prog_LEX"
3722 if test -n "$LEX"; then
3723 echo "$ac_t""$LEX" 1>&6
3724 else
3725 echo "$ac_t""no" 1>&6
3726 fi
3727
3728 test -n "$LEX" && break
3729 done
3730 test -n "$LEX" || LEX=""$missing_dir/missing flex""
3731
3732 # Extract the first word of "flex", so it can be a program name with args.
3733 set dummy flex; ac_word=$2
3734 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3735 echo "configure:3736: checking for $ac_word" >&5
3736 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
3737 echo $ac_n "(cached) $ac_c" 1>&6
3738 else
3739 if test -n "$LEX"; then
3740 ac_cv_prog_LEX="$LEX" # Let the user override the test.
3741 else
3742 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3743 ac_dummy="$PATH"
3744 for ac_dir in $ac_dummy; do
3745 test -z "$ac_dir" && ac_dir=.
3746 if test -f $ac_dir/$ac_word; then
3747 ac_cv_prog_LEX="flex"
3748 break
3749 fi
3750 done
3751 IFS="$ac_save_ifs"
3752 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
3753 fi
3754 fi
3755 LEX="$ac_cv_prog_LEX"
3756 if test -n "$LEX"; then
3757 echo "$ac_t""$LEX" 1>&6
3758 else
3759 echo "$ac_t""no" 1>&6
3760 fi
3761
3762 if test -z "$LEXLIB"
3763 then
3764 case "$LEX" in
3765 flex*) ac_lib=fl ;;
3766 *) ac_lib=l ;;
3767 esac
3768 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
3769 echo "configure:3770: checking for yywrap in -l$ac_lib" >&5
3770 ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
3771 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3772 echo $ac_n "(cached) $ac_c" 1>&6
3773 else
3774 ac_save_LIBS="$LIBS"
3775 LIBS="-l$ac_lib $LIBS"
3776 cat > conftest.$ac_ext <<EOF
3777 #line 3778 "configure"
3778 #include "confdefs.h"
3779 /* Override any gcc2 internal prototype to avoid an error. */
3780 /* We use char because int might match the return type of a gcc2
3781 builtin and then its argument prototype would still apply. */
3782 char yywrap();
3783
3784 int main() {
3785 yywrap()
3786 ; return 0; }
3787 EOF
3788 if { (eval echo configure:3789: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3789 rm -rf conftest*
3790 eval "ac_cv_lib_$ac_lib_var=yes"
3791 else
3792 echo "configure: failed program was:" >&5
3793 cat conftest.$ac_ext >&5
3794 rm -rf conftest*
3795 eval "ac_cv_lib_$ac_lib_var=no"
3796 fi
3797 rm -f conftest*
3798 LIBS="$ac_save_LIBS"
3799
3800 fi
3801 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3802 echo "$ac_t""yes" 1>&6
3803 LEXLIB="-l$ac_lib"
3804 else
3805 echo "$ac_t""no" 1>&6
3806 fi
3807
3808 fi
3809
3810 echo $ac_n "checking lex output file root""... $ac_c" 1>&6
3811 echo "configure:3812: checking lex output file root" >&5
3812 if eval "test \"`echo '$''{'ac_cv_prog_lex_root'+set}'`\" = set"; then
3813 echo $ac_n "(cached) $ac_c" 1>&6
3814 else
3815 # The minimal lex program is just a single line: %%. But some broken lexes
3816 # (Solaris, I think it was) want two %% lines, so accommodate them.
3817 echo '%%
3818 %%' | $LEX
3819 if test -f lex.yy.c; then
3820 ac_cv_prog_lex_root=lex.yy
3821 elif test -f lexyy.c; then
3822 ac_cv_prog_lex_root=lexyy
3823 else
3824 { echo "configure: error: cannot find output from $LEX; giving up" 1>&2; exit 1; }
3825 fi
3826 fi
3827
3828 echo "$ac_t""$ac_cv_prog_lex_root" 1>&6
3829 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
3830
3831 echo $ac_n "checking whether yytext is a pointer""... $ac_c" 1>&6
3832 echo "configure:3833: checking whether yytext is a pointer" >&5
3833 if eval "test \"`echo '$''{'ac_cv_prog_lex_yytext_pointer'+set}'`\" = set"; then
3834 echo $ac_n "(cached) $ac_c" 1>&6
3835 else
3836 # POSIX says lex can declare yytext either as a pointer or an array; the
3837 # default is implementation-dependent. Figure out which it is, since
3838 # not all implementations provide the %pointer and %array declarations.
3839 ac_cv_prog_lex_yytext_pointer=no
3840 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
3841 ac_save_LIBS="$LIBS"
3842 LIBS="$LIBS $LEXLIB"
3843 cat > conftest.$ac_ext <<EOF
3844 #line 3845 "configure"
3845 #include "confdefs.h"
3846 `cat $LEX_OUTPUT_ROOT.c`
3847 int main() {
3848
3849 ; return 0; }
3850 EOF
3851 if { (eval echo configure:3852: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3852 rm -rf conftest*
3853 ac_cv_prog_lex_yytext_pointer=yes
3854 else
3855 echo "configure: failed program was:" >&5
3856 cat conftest.$ac_ext >&5
3857 fi
3858 rm -f conftest*
3859 LIBS="$ac_save_LIBS"
3860 rm -f "${LEX_OUTPUT_ROOT}.c"
3861
3862 fi
3863
3864 echo "$ac_t""$ac_cv_prog_lex_yytext_pointer" 1>&6
3865 if test $ac_cv_prog_lex_yytext_pointer = yes; then
3866 cat >> confdefs.h <<\EOF
3867 #define YYTEXT_POINTER 1
3868 EOF
3869
3870 fi
3871
3872
3873 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
3874 echo "configure:3875: checking whether to enable maintainer-specific portions of Makefiles" >&5
3875 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
3876 if test "${enable_maintainer_mode+set}" = set; then
3877 enableval="$enable_maintainer_mode"
3878 USE_MAINTAINER_MODE=$enableval
3879 else
3880 USE_MAINTAINER_MODE=no
3881 fi
3882
3883 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
3884
3885
3886 if test $USE_MAINTAINER_MODE = yes; then
3887 MAINTAINER_MODE_TRUE=
3888 MAINTAINER_MODE_FALSE='#'
3889 else
3890 MAINTAINER_MODE_TRUE='#'
3891 MAINTAINER_MODE_FALSE=
3892 fi
3893 MAINT=$MAINTAINER_MODE_TRUE
3894
3895
3896
3897 . ${srcdir}/configure.host
3898
3899
3900
3901
3902
3903
3904 for ac_hdr in string.h strings.h stdlib.h unistd.h
3905 do
3906 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3907 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3908 echo "configure:3909: checking for $ac_hdr" >&5
3909 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3910 echo $ac_n "(cached) $ac_c" 1>&6
3911 else
3912 cat > conftest.$ac_ext <<EOF
3913 #line 3914 "configure"
3914 #include "confdefs.h"
3915 #include <$ac_hdr>
3916 EOF
3917 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3918 { (eval echo configure:3919: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3919 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3920 if test -z "$ac_err"; then
3921 rm -rf conftest*
3922 eval "ac_cv_header_$ac_safe=yes"
3923 else
3924 echo "$ac_err" >&5
3925 echo "configure: failed program was:" >&5
3926 cat conftest.$ac_ext >&5
3927 rm -rf conftest*
3928 eval "ac_cv_header_$ac_safe=no"
3929 fi
3930 rm -f conftest*
3931 fi
3932 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3933 echo "$ac_t""yes" 1>&6
3934 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3935 cat >> confdefs.h <<EOF
3936 #define $ac_tr_hdr 1
3937 EOF
3938
3939 else
3940 echo "$ac_t""no" 1>&6
3941 fi
3942 done
3943
3944 for ac_func in sbrk
3945 do
3946 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3947 echo "configure:3948: checking for $ac_func" >&5
3948 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3949 echo $ac_n "(cached) $ac_c" 1>&6
3950 else
3951 cat > conftest.$ac_ext <<EOF
3952 #line 3953 "configure"
3953 #include "confdefs.h"
3954 /* System header to define __stub macros and hopefully few prototypes,
3955 which can conflict with char $ac_func(); below. */
3956 #include <assert.h>
3957 /* Override any gcc2 internal prototype to avoid an error. */
3958 /* We use char because int might match the return type of a gcc2
3959 builtin and then its argument prototype would still apply. */
3960 char $ac_func();
3961
3962 int main() {
3963
3964 /* The GNU C library defines this for functions which it implements
3965 to always fail with ENOSYS. Some functions are actually named
3966 something starting with __ and the normal name is an alias. */
3967 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3968 choke me
3969 #else
3970 $ac_func();
3971 #endif
3972
3973 ; return 0; }
3974 EOF
3975 if { (eval echo configure:3976: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3976 rm -rf conftest*
3977 eval "ac_cv_func_$ac_func=yes"
3978 else
3979 echo "configure: failed program was:" >&5
3980 cat conftest.$ac_ext >&5
3981 rm -rf conftest*
3982 eval "ac_cv_func_$ac_func=no"
3983 fi
3984 rm -f conftest*
3985 fi
3986
3987 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3988 echo "$ac_t""yes" 1>&6
3989 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3990 cat >> confdefs.h <<EOF
3991 #define $ac_tr_func 1
3992 EOF
3993
3994 else
3995 echo "$ac_t""no" 1>&6
3996 fi
3997 done
3998
3999 ac_header_dirent=no
4000 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
4001 do
4002 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4003 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
4004 echo "configure:4005: checking for $ac_hdr that defines DIR" >&5
4005 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
4006 echo $ac_n "(cached) $ac_c" 1>&6
4007 else
4008 cat > conftest.$ac_ext <<EOF
4009 #line 4010 "configure"
4010 #include "confdefs.h"
4011 #include <sys/types.h>
4012 #include <$ac_hdr>
4013 int main() {
4014 DIR *dirp = 0;
4015 ; return 0; }
4016 EOF
4017 if { (eval echo configure:4018: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4018 rm -rf conftest*
4019 eval "ac_cv_header_dirent_$ac_safe=yes"
4020 else
4021 echo "configure: failed program was:" >&5
4022 cat conftest.$ac_ext >&5
4023 rm -rf conftest*
4024 eval "ac_cv_header_dirent_$ac_safe=no"
4025 fi
4026 rm -f conftest*
4027 fi
4028 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
4029 echo "$ac_t""yes" 1>&6
4030 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4031 cat >> confdefs.h <<EOF
4032 #define $ac_tr_hdr 1
4033 EOF
4034 ac_header_dirent=$ac_hdr; break
4035 else
4036 echo "$ac_t""no" 1>&6
4037 fi
4038 done
4039 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4040 if test $ac_header_dirent = dirent.h; then
4041 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
4042 echo "configure:4043: checking for opendir in -ldir" >&5
4043 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
4044 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4045 echo $ac_n "(cached) $ac_c" 1>&6
4046 else
4047 ac_save_LIBS="$LIBS"
4048 LIBS="-ldir $LIBS"
4049 cat > conftest.$ac_ext <<EOF
4050 #line 4051 "configure"
4051 #include "confdefs.h"
4052 /* Override any gcc2 internal prototype to avoid an error. */
4053 /* We use char because int might match the return type of a gcc2
4054 builtin and then its argument prototype would still apply. */
4055 char opendir();
4056
4057 int main() {
4058 opendir()
4059 ; return 0; }
4060 EOF
4061 if { (eval echo configure:4062: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4062 rm -rf conftest*
4063 eval "ac_cv_lib_$ac_lib_var=yes"
4064 else
4065 echo "configure: failed program was:" >&5
4066 cat conftest.$ac_ext >&5
4067 rm -rf conftest*
4068 eval "ac_cv_lib_$ac_lib_var=no"
4069 fi
4070 rm -f conftest*
4071 LIBS="$ac_save_LIBS"
4072
4073 fi
4074 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4075 echo "$ac_t""yes" 1>&6
4076 LIBS="$LIBS -ldir"
4077 else
4078 echo "$ac_t""no" 1>&6
4079 fi
4080
4081 else
4082 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
4083 echo "configure:4084: checking for opendir in -lx" >&5
4084 ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
4085 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4086 echo $ac_n "(cached) $ac_c" 1>&6
4087 else
4088 ac_save_LIBS="$LIBS"
4089 LIBS="-lx $LIBS"
4090 cat > conftest.$ac_ext <<EOF
4091 #line 4092 "configure"
4092 #include "confdefs.h"
4093 /* Override any gcc2 internal prototype to avoid an error. */
4094 /* We use char because int might match the return type of a gcc2
4095 builtin and then its argument prototype would still apply. */
4096 char opendir();
4097
4098 int main() {
4099 opendir()
4100 ; return 0; }
4101 EOF
4102 if { (eval echo configure:4103: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4103 rm -rf conftest*
4104 eval "ac_cv_lib_$ac_lib_var=yes"
4105 else
4106 echo "configure: failed program was:" >&5
4107 cat conftest.$ac_ext >&5
4108 rm -rf conftest*
4109 eval "ac_cv_lib_$ac_lib_var=no"
4110 fi
4111 rm -f conftest*
4112 LIBS="$ac_save_LIBS"
4113
4114 fi
4115 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4116 echo "$ac_t""yes" 1>&6
4117 LIBS="$LIBS -lx"
4118 else
4119 echo "$ac_t""no" 1>&6
4120 fi
4121
4122 fi
4123
4124
4125
4126 case "${host}" in
4127 *-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*)
4128 cat >> confdefs.h <<\EOF
4129 #define USE_BINARY_FOPEN 1
4130 EOF
4131 ;;
4132 esac
4133
4134 echo $ac_n "checking whether strstr must be declared""... $ac_c" 1>&6
4135 echo "configure:4136: checking whether strstr must be declared" >&5
4136 if eval "test \"`echo '$''{'bfd_cv_decl_needed_strstr'+set}'`\" = set"; then
4137 echo $ac_n "(cached) $ac_c" 1>&6
4138 else
4139 cat > conftest.$ac_ext <<EOF
4140 #line 4141 "configure"
4141 #include "confdefs.h"
4142
4143 #include <stdio.h>
4144 #ifdef HAVE_STRING_H
4145 #include <string.h>
4146 #else
4147 #ifdef HAVE_STRINGS_H
4148 #include <strings.h>
4149 #endif
4150 #endif
4151 #ifdef HAVE_STDLIB_H
4152 #include <stdlib.h>
4153 #endif
4154 #ifdef HAVE_UNISTD_H
4155 #include <unistd.h>
4156 #endif
4157 int main() {
4158 char *(*pfn) = (char *(*)) strstr
4159 ; return 0; }
4160 EOF
4161 if { (eval echo configure:4162: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4162 rm -rf conftest*
4163 bfd_cv_decl_needed_strstr=no
4164 else
4165 echo "configure: failed program was:" >&5
4166 cat conftest.$ac_ext >&5
4167 rm -rf conftest*
4168 bfd_cv_decl_needed_strstr=yes
4169 fi
4170 rm -f conftest*
4171 fi
4172
4173 echo "$ac_t""$bfd_cv_decl_needed_strstr" 1>&6
4174 if test $bfd_cv_decl_needed_strstr = yes; then
4175 cat >> confdefs.h <<\EOF
4176 #define NEED_DECLARATION_STRSTR 1
4177 EOF
4178
4179 fi
4180
4181 echo $ac_n "checking whether free must be declared""... $ac_c" 1>&6
4182 echo "configure:4183: checking whether free must be declared" >&5
4183 if eval "test \"`echo '$''{'bfd_cv_decl_needed_free'+set}'`\" = set"; then
4184 echo $ac_n "(cached) $ac_c" 1>&6
4185 else
4186 cat > conftest.$ac_ext <<EOF
4187 #line 4188 "configure"
4188 #include "confdefs.h"
4189
4190 #include <stdio.h>
4191 #ifdef HAVE_STRING_H
4192 #include <string.h>
4193 #else
4194 #ifdef HAVE_STRINGS_H
4195 #include <strings.h>
4196 #endif
4197 #endif
4198 #ifdef HAVE_STDLIB_H
4199 #include <stdlib.h>
4200 #endif
4201 #ifdef HAVE_UNISTD_H
4202 #include <unistd.h>
4203 #endif
4204 int main() {
4205 char *(*pfn) = (char *(*)) free
4206 ; return 0; }
4207 EOF
4208 if { (eval echo configure:4209: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4209 rm -rf conftest*
4210 bfd_cv_decl_needed_free=no
4211 else
4212 echo "configure: failed program was:" >&5
4213 cat conftest.$ac_ext >&5
4214 rm -rf conftest*
4215 bfd_cv_decl_needed_free=yes
4216 fi
4217 rm -f conftest*
4218 fi
4219
4220 echo "$ac_t""$bfd_cv_decl_needed_free" 1>&6
4221 if test $bfd_cv_decl_needed_free = yes; then
4222 cat >> confdefs.h <<\EOF
4223 #define NEED_DECLARATION_FREE 1
4224 EOF
4225
4226 fi
4227
4228 echo $ac_n "checking whether sbrk must be declared""... $ac_c" 1>&6
4229 echo "configure:4230: checking whether sbrk must be declared" >&5
4230 if eval "test \"`echo '$''{'bfd_cv_decl_needed_sbrk'+set}'`\" = set"; then
4231 echo $ac_n "(cached) $ac_c" 1>&6
4232 else
4233 cat > conftest.$ac_ext <<EOF
4234 #line 4235 "configure"
4235 #include "confdefs.h"
4236
4237 #include <stdio.h>
4238 #ifdef HAVE_STRING_H
4239 #include <string.h>
4240 #else
4241 #ifdef HAVE_STRINGS_H
4242 #include <strings.h>
4243 #endif
4244 #endif
4245 #ifdef HAVE_STDLIB_H
4246 #include <stdlib.h>
4247 #endif
4248 #ifdef HAVE_UNISTD_H
4249 #include <unistd.h>
4250 #endif
4251 int main() {
4252 char *(*pfn) = (char *(*)) sbrk
4253 ; return 0; }
4254 EOF
4255 if { (eval echo configure:4256: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4256 rm -rf conftest*
4257 bfd_cv_decl_needed_sbrk=no
4258 else
4259 echo "configure: failed program was:" >&5
4260 cat conftest.$ac_ext >&5
4261 rm -rf conftest*
4262 bfd_cv_decl_needed_sbrk=yes
4263 fi
4264 rm -f conftest*
4265 fi
4266
4267 echo "$ac_t""$bfd_cv_decl_needed_sbrk" 1>&6
4268 if test $bfd_cv_decl_needed_sbrk = yes; then
4269 cat >> confdefs.h <<\EOF
4270 #define NEED_DECLARATION_SBRK 1
4271 EOF
4272
4273 fi
4274
4275 echo $ac_n "checking whether getenv must be declared""... $ac_c" 1>&6
4276 echo "configure:4277: checking whether getenv must be declared" >&5
4277 if eval "test \"`echo '$''{'bfd_cv_decl_needed_getenv'+set}'`\" = set"; then
4278 echo $ac_n "(cached) $ac_c" 1>&6
4279 else
4280 cat > conftest.$ac_ext <<EOF
4281 #line 4282 "configure"
4282 #include "confdefs.h"
4283
4284 #include <stdio.h>
4285 #ifdef HAVE_STRING_H
4286 #include <string.h>
4287 #else
4288 #ifdef HAVE_STRINGS_H
4289 #include <strings.h>
4290 #endif
4291 #endif
4292 #ifdef HAVE_STDLIB_H
4293 #include <stdlib.h>
4294 #endif
4295 #ifdef HAVE_UNISTD_H
4296 #include <unistd.h>
4297 #endif
4298 int main() {
4299 char *(*pfn) = (char *(*)) getenv
4300 ; return 0; }
4301 EOF
4302 if { (eval echo configure:4303: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4303 rm -rf conftest*
4304 bfd_cv_decl_needed_getenv=no
4305 else
4306 echo "configure: failed program was:" >&5
4307 cat conftest.$ac_ext >&5
4308 rm -rf conftest*
4309 bfd_cv_decl_needed_getenv=yes
4310 fi
4311 rm -f conftest*
4312 fi
4313
4314 echo "$ac_t""$bfd_cv_decl_needed_getenv" 1>&6
4315 if test $bfd_cv_decl_needed_getenv = yes; then
4316 cat >> confdefs.h <<\EOF
4317 #define NEED_DECLARATION_GETENV 1
4318 EOF
4319
4320 fi
4321
4322 echo $ac_n "checking whether environ must be declared""... $ac_c" 1>&6
4323 echo "configure:4324: checking whether environ must be declared" >&5
4324 if eval "test \"`echo '$''{'bfd_cv_decl_needed_environ'+set}'`\" = set"; then
4325 echo $ac_n "(cached) $ac_c" 1>&6
4326 else
4327 cat > conftest.$ac_ext <<EOF
4328 #line 4329 "configure"
4329 #include "confdefs.h"
4330
4331 #include <stdio.h>
4332 #ifdef HAVE_STRING_H
4333 #include <string.h>
4334 #else
4335 #ifdef HAVE_STRINGS_H
4336 #include <strings.h>
4337 #endif
4338 #endif
4339 #ifdef HAVE_STDLIB_H
4340 #include <stdlib.h>
4341 #endif
4342 #ifdef HAVE_UNISTD_H
4343 #include <unistd.h>
4344 #endif
4345 int main() {
4346 char *(*pfn) = (char *(*)) environ
4347 ; return 0; }
4348 EOF
4349 if { (eval echo configure:4350: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4350 rm -rf conftest*
4351 bfd_cv_decl_needed_environ=no
4352 else
4353 echo "configure: failed program was:" >&5
4354 cat conftest.$ac_ext >&5
4355 rm -rf conftest*
4356 bfd_cv_decl_needed_environ=yes
4357 fi
4358 rm -f conftest*
4359 fi
4360
4361 echo "$ac_t""$bfd_cv_decl_needed_environ" 1>&6
4362 if test $bfd_cv_decl_needed_environ = yes; then
4363 cat >> confdefs.h <<\EOF
4364 #define NEED_DECLARATION_ENVIRON 1
4365 EOF
4366
4367 fi
4368
4369
4370 # When converting linker scripts into strings for use in emulation
4371 # files, use astring.sed if the compiler supports ANSI string
4372 # concatenation, or ostring.sed otherwise. This is to support the
4373 # broken Microsoft MSVC compiler, which limits the length of string
4374 # constants, while still supporting pre-ANSI compilers which do not
4375 # support string concatenation.
4376 echo $ac_n "checking whether ANSI C string concatenation works""... $ac_c" 1>&6
4377 echo "configure:4378: checking whether ANSI C string concatenation works" >&5
4378 if eval "test \"`echo '$''{'ld_cv_string_concatenation'+set}'`\" = set"; then
4379 echo $ac_n "(cached) $ac_c" 1>&6
4380 else
4381 cat > conftest.$ac_ext <<EOF
4382 #line 4383 "configure"
4383 #include "confdefs.h"
4384
4385 int main() {
4386 char *a = "a" "a";
4387 ; return 0; }
4388 EOF
4389 if { (eval echo configure:4390: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4390 rm -rf conftest*
4391 ld_cv_string_concatenation=yes
4392 else
4393 echo "configure: failed program was:" >&5
4394 cat conftest.$ac_ext >&5
4395 rm -rf conftest*
4396 ld_cv_string_concatenation=no
4397 fi
4398 rm -f conftest*
4399 fi
4400
4401 echo "$ac_t""$ld_cv_string_concatenation" 1>&6
4402 if test "$ld_cv_string_concatenation" = "yes"; then
4403 STRINGIFY=astring.sed
4404 else
4405 STRINGIFY=ostring.sed
4406 fi
4407
4408
4409 # target-specific stuff:
4410
4411 all_targets=
4412 EMUL=
4413 all_emuls=
4414 all_emul_extras=
4415 all_libpath=
4416
4417 rm -f tdirs
4418
4419 for targ_alias in `echo $target_alias $enable_targets | sed 's/,/ /g'`
4420 do
4421 if test "$targ_alias" = "all"; then
4422 all_targets=true
4423 else
4424 # Canonicalize the secondary target names.
4425 result=`$ac_config_sub $targ_alias 2>/dev/null`
4426 if test -n "$result"; then
4427 targ=$result
4428 else
4429 targ=$targ_alias
4430 fi
4431
4432 . ${srcdir}/configure.tgt
4433
4434 if test "$targ" = "$target"; then
4435 EMUL=$targ_emul
4436 fi
4437
4438 for i in $targ_emul $targ_extra_emuls $targ_extra_libpath; do
4439 case " $all_emuls " in
4440 *" e${i}.o "*) ;;
4441 *)
4442 all_emuls="$all_emuls e${i}.o"
4443 eval result=\$tdir_$i
4444 test -z "$result" && result=$targ_alias
4445 echo tdir_$i=$result >> tdirs
4446 ;;
4447 esac
4448 done
4449
4450 for i in $targ_emul $targ_extra_libpath; do
4451 case " $all_libpath " in
4452 *" ${i} "*) ;;
4453 *)
4454 if test -z "$all_libpath"; then
4455 all_libpath=${i}
4456 else
4457 all_libpath="$all_libpath ${i}"
4458 fi
4459 ;;
4460 esac
4461 done
4462
4463 for i in $targ_extra_ofiles; do
4464 case " $all_emul_extras " in
4465 *" ${i} "*) ;;
4466 *)
4467 all_emul_extras="$all_emul_extras ${i}"
4468 ;;
4469 esac
4470 done
4471 fi
4472 done
4473
4474
4475
4476 TDIRS=tdirs
4477
4478
4479 if test x${all_targets} = xtrue; then
4480 if test x${want64} = xtrue; then
4481 EMULATION_OFILES='$(ALL_EMULATIONS) $(ALL_64_EMULATIONS)'
4482 else
4483 EMULATION_OFILES='$(ALL_EMULATIONS)'
4484 fi
4485 EMUL_EXTRA_OFILES='$(ALL_EMUL_EXTRA_OFILES)'
4486 else
4487 EMULATION_OFILES=$all_emuls
4488 EMUL_EXTRA_OFILES=$all_emul_extras
4489 fi
4490
4491
4492
4493 EMULATION_LIBPATH=$all_libpath
4494
4495
4496 if test x${enable_static} = xno; then
4497 TESTBFDLIB="--rpath ../bfd/.libs ../bfd/.libs/libbfd.so"
4498 else
4499 TESTBFDLIB="../bfd/.libs/libbfd.a"
4500 fi
4501
4502
4503 target_vendor=${target_vendor=$host_vendor}
4504 case "$target_vendor" in
4505 hp) EXTRA_SHLIB_EXTENSION=".sl" ;;
4506 *) EXTRA_SHLIB_EXTENSION= ;;
4507 esac
4508 if test x${EXTRA_SHLIB_EXTENSION} != x ; then
4509 cat >> confdefs.h <<EOF
4510 #define EXTRA_SHLIB_EXTENSION "$EXTRA_SHLIB_EXTENSION"
4511 EOF
4512
4513 fi
4514
4515 trap '' 1 2 15
4516 cat > confcache <<\EOF
4517 # This file is a shell script that caches the results of configure
4518 # tests run on this system so they can be shared between configure
4519 # scripts and configure runs. It is not useful on other systems.
4520 # If it contains results you don't want to keep, you may remove or edit it.
4521 #
4522 # By default, configure uses ./config.cache as the cache file,
4523 # creating it if it does not exist already. You can give configure
4524 # the --cache-file=FILE option to use a different cache file; that is
4525 # what configure does when it calls configure scripts in
4526 # subdirectories, so they share the cache.
4527 # Giving --cache-file=/dev/null disables caching, for debugging configure.
4528 # config.status only pays attention to the cache file if you give it the
4529 # --recheck option to rerun configure.
4530 #
4531 EOF
4532 # The following way of writing the cache mishandles newlines in values,
4533 # but we know of no workaround that is simple, portable, and efficient.
4534 # So, don't put newlines in cache variables' values.
4535 # Ultrix sh set writes to stderr and can't be redirected directly,
4536 # and sets the high bit in the cache file unless we assign to the vars.
4537 (set) 2>&1 |
4538 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4539 *ac_space=\ *)
4540 # `set' does not quote correctly, so add quotes (double-quote substitution
4541 # turns \\\\ into \\, and sed turns \\ into \).
4542 sed -n \
4543 -e "s/'/'\\\\''/g" \
4544 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
4545 ;;
4546 *)
4547 # `set' quotes correctly as required by POSIX, so do not add quotes.
4548 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
4549 ;;
4550 esac >> confcache
4551 if cmp -s $cache_file confcache; then
4552 :
4553 else
4554 if test -w $cache_file; then
4555 echo "updating cache $cache_file"
4556 cat confcache > $cache_file
4557 else
4558 echo "not updating unwritable cache $cache_file"
4559 fi
4560 fi
4561 rm -f confcache
4562
4563 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
4564
4565 test "x$prefix" = xNONE && prefix=$ac_default_prefix
4566 # Let make expand exec_prefix.
4567 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4568
4569 # Any assignment to VPATH causes Sun make to only execute
4570 # the first set of double-colon rules, so remove it if not needed.
4571 # If there is a colon in the path, we need to keep it.
4572 if test "x$srcdir" = x.; then
4573 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
4574 fi
4575
4576 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
4577
4578 DEFS=-DHAVE_CONFIG_H
4579
4580 # Without the "./", some shells look in PATH for config.status.
4581 : ${CONFIG_STATUS=./config.status}
4582
4583 echo creating $CONFIG_STATUS
4584 rm -f $CONFIG_STATUS
4585 cat > $CONFIG_STATUS <<EOF
4586 #! /bin/sh
4587 # Generated automatically by configure.
4588 # Run this file to recreate the current configuration.
4589 # This directory was configured as follows,
4590 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
4591 #
4592 # $0 $ac_configure_args
4593 #
4594 # Compiler output produced by configure, useful for debugging
4595 # configure, is in ./config.log if it exists.
4596
4597 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
4598 for ac_option
4599 do
4600 case "\$ac_option" in
4601 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4602 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
4603 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
4604 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
4605 echo "$CONFIG_STATUS generated by autoconf version 2.13"
4606 exit 0 ;;
4607 -help | --help | --hel | --he | --h)
4608 echo "\$ac_cs_usage"; exit 0 ;;
4609 *) echo "\$ac_cs_usage"; exit 1 ;;
4610 esac
4611 done
4612
4613 ac_given_srcdir=$srcdir
4614 ac_given_INSTALL="$INSTALL"
4615
4616 trap 'rm -fr `echo "Makefile po/Makefile.in:po/Make-in config.h:config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
4617 EOF
4618 cat >> $CONFIG_STATUS <<EOF
4619
4620 # Protect against being on the right side of a sed subst in config.status.
4621 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
4622 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
4623 $ac_vpsub
4624 $extrasub
4625 s%@SHELL@%$SHELL%g
4626 s%@CFLAGS@%$CFLAGS%g
4627 s%@CPPFLAGS@%$CPPFLAGS%g
4628 s%@CXXFLAGS@%$CXXFLAGS%g
4629 s%@FFLAGS@%$FFLAGS%g
4630 s%@DEFS@%$DEFS%g
4631 s%@LDFLAGS@%$LDFLAGS%g
4632 s%@LIBS@%$LIBS%g
4633 s%@exec_prefix@%$exec_prefix%g
4634 s%@prefix@%$prefix%g
4635 s%@program_transform_name@%$program_transform_name%g
4636 s%@bindir@%$bindir%g
4637 s%@sbindir@%$sbindir%g
4638 s%@libexecdir@%$libexecdir%g
4639 s%@datadir@%$datadir%g
4640 s%@sysconfdir@%$sysconfdir%g
4641 s%@sharedstatedir@%$sharedstatedir%g
4642 s%@localstatedir@%$localstatedir%g
4643 s%@libdir@%$libdir%g
4644 s%@includedir@%$includedir%g
4645 s%@oldincludedir@%$oldincludedir%g
4646 s%@infodir@%$infodir%g
4647 s%@mandir@%$mandir%g
4648 s%@host@%$host%g
4649 s%@host_alias@%$host_alias%g
4650 s%@host_cpu@%$host_cpu%g
4651 s%@host_vendor@%$host_vendor%g
4652 s%@host_os@%$host_os%g
4653 s%@target@%$target%g
4654 s%@target_alias@%$target_alias%g
4655 s%@target_cpu@%$target_cpu%g
4656 s%@target_vendor@%$target_vendor%g
4657 s%@target_os@%$target_os%g
4658 s%@build@%$build%g
4659 s%@build_alias@%$build_alias%g
4660 s%@build_cpu@%$build_cpu%g
4661 s%@build_vendor@%$build_vendor%g
4662 s%@build_os@%$build_os%g
4663 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
4664 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
4665 s%@INSTALL_DATA@%$INSTALL_DATA%g
4666 s%@PACKAGE@%$PACKAGE%g
4667 s%@VERSION@%$VERSION%g
4668 s%@ACLOCAL@%$ACLOCAL%g
4669 s%@AUTOCONF@%$AUTOCONF%g
4670 s%@AUTOMAKE@%$AUTOMAKE%g
4671 s%@AUTOHEADER@%$AUTOHEADER%g
4672 s%@MAKEINFO@%$MAKEINFO%g
4673 s%@SET_MAKE@%$SET_MAKE%g
4674 s%@RANLIB@%$RANLIB%g
4675 s%@CC@%$CC%g
4676 s%@LN_S@%$LN_S%g
4677 s%@LIBTOOL@%$LIBTOOL%g
4678 s%@CPP@%$CPP%g
4679 s%@ALLOCA@%$ALLOCA%g
4680 s%@USE_NLS@%$USE_NLS%g
4681 s%@MSGFMT@%$MSGFMT%g
4682 s%@GMSGFMT@%$GMSGFMT%g
4683 s%@XGETTEXT@%$XGETTEXT%g
4684 s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
4685 s%@CATALOGS@%$CATALOGS%g
4686 s%@CATOBJEXT@%$CATOBJEXT%g
4687 s%@DATADIRNAME@%$DATADIRNAME%g
4688 s%@GMOFILES@%$GMOFILES%g
4689 s%@INSTOBJEXT@%$INSTOBJEXT%g
4690 s%@INTLDEPS@%$INTLDEPS%g
4691 s%@INTLLIBS@%$INTLLIBS%g
4692 s%@INTLOBJS@%$INTLOBJS%g
4693 s%@POFILES@%$POFILES%g
4694 s%@POSUB@%$POSUB%g
4695 s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g
4696 s%@GT_NO@%$GT_NO%g
4697 s%@GT_YES@%$GT_YES%g
4698 s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
4699 s%@l@%$l%g
4700 s%@EXEEXT@%$EXEEXT%g
4701 s%@YACC@%$YACC%g
4702 s%@LEX@%$LEX%g
4703 s%@LEXLIB@%$LEXLIB%g
4704 s%@LEX_OUTPUT_ROOT@%$LEX_OUTPUT_ROOT%g
4705 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
4706 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
4707 s%@MAINT@%$MAINT%g
4708 s%@HDEFINES@%$HDEFINES%g
4709 s%@HOSTING_CRT0@%$HOSTING_CRT0%g
4710 s%@HOSTING_LIBS@%$HOSTING_LIBS%g
4711 s%@NATIVE_LIB_DIRS@%$NATIVE_LIB_DIRS%g
4712 s%@STRINGIFY@%$STRINGIFY%g
4713 s%@EMUL@%$EMUL%g
4714 /@TDIRS@/r $TDIRS
4715 s%@TDIRS@%%g
4716 s%@EMULATION_OFILES@%$EMULATION_OFILES%g
4717 s%@EMUL_EXTRA_OFILES@%$EMUL_EXTRA_OFILES%g
4718 s%@EMULATION_LIBPATH@%$EMULATION_LIBPATH%g
4719 s%@TESTBFDLIB@%$TESTBFDLIB%g
4720
4721 CEOF
4722 EOF
4723
4724 cat >> $CONFIG_STATUS <<\EOF
4725
4726 # Split the substitutions into bite-sized pieces for seds with
4727 # small command number limits, like on Digital OSF/1 and HP-UX.
4728 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
4729 ac_file=1 # Number of current file.
4730 ac_beg=1 # First line for current file.
4731 ac_end=$ac_max_sed_cmds # Line after last line for current file.
4732 ac_more_lines=:
4733 ac_sed_cmds=""
4734 while $ac_more_lines; do
4735 if test $ac_beg -gt 1; then
4736 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
4737 else
4738 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
4739 fi
4740 if test ! -s conftest.s$ac_file; then
4741 ac_more_lines=false
4742 rm -f conftest.s$ac_file
4743 else
4744 if test -z "$ac_sed_cmds"; then
4745 ac_sed_cmds="sed -f conftest.s$ac_file"
4746 else
4747 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
4748 fi
4749 ac_file=`expr $ac_file + 1`
4750 ac_beg=$ac_end
4751 ac_end=`expr $ac_end + $ac_max_sed_cmds`
4752 fi
4753 done
4754 if test -z "$ac_sed_cmds"; then
4755 ac_sed_cmds=cat
4756 fi
4757 EOF
4758
4759 cat >> $CONFIG_STATUS <<EOF
4760
4761 CONFIG_FILES=\${CONFIG_FILES-"Makefile po/Makefile.in:po/Make-in"}
4762 EOF
4763 cat >> $CONFIG_STATUS <<\EOF
4764 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
4765 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4766 case "$ac_file" in
4767 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
4768 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
4769 *) ac_file_in="${ac_file}.in" ;;
4770 esac
4771
4772 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
4773
4774 # Remove last slash and all that follows it. Not all systems have dirname.
4775 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
4776 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
4777 # The file is in a subdirectory.
4778 test ! -d "$ac_dir" && mkdir "$ac_dir"
4779 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
4780 # A "../" for each directory in $ac_dir_suffix.
4781 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
4782 else
4783 ac_dir_suffix= ac_dots=
4784 fi
4785
4786 case "$ac_given_srcdir" in
4787 .) srcdir=.
4788 if test -z "$ac_dots"; then top_srcdir=.
4789 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
4790 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
4791 *) # Relative path.
4792 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
4793 top_srcdir="$ac_dots$ac_given_srcdir" ;;
4794 esac
4795
4796 case "$ac_given_INSTALL" in
4797 [/$]*) INSTALL="$ac_given_INSTALL" ;;
4798 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
4799 esac
4800
4801 echo creating "$ac_file"
4802 rm -f "$ac_file"
4803 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
4804 case "$ac_file" in
4805 *Makefile*) ac_comsub="1i\\
4806 # $configure_input" ;;
4807 *) ac_comsub= ;;
4808 esac
4809
4810 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4811 sed -e "$ac_comsub
4812 s%@configure_input@%$configure_input%g
4813 s%@srcdir@%$srcdir%g
4814 s%@top_srcdir@%$top_srcdir%g
4815 s%@INSTALL@%$INSTALL%g
4816 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
4817 fi; done
4818 rm -f conftest.s*
4819
4820 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
4821 # NAME is the cpp macro being defined and VALUE is the value it is being given.
4822 #
4823 # ac_d sets the value in "#define NAME VALUE" lines.
4824 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
4825 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
4826 ac_dC='\3'
4827 ac_dD='%g'
4828 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
4829 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
4830 ac_uB='\([ ]\)%\1#\2define\3'
4831 ac_uC=' '
4832 ac_uD='\4%g'
4833 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
4834 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
4835 ac_eB='$%\1#\2define\3'
4836 ac_eC=' '
4837 ac_eD='%g'
4838
4839 if test "${CONFIG_HEADERS+set}" != set; then
4840 EOF
4841 cat >> $CONFIG_STATUS <<EOF
4842 CONFIG_HEADERS="config.h:config.in"
4843 EOF
4844 cat >> $CONFIG_STATUS <<\EOF
4845 fi
4846 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
4847 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4848 case "$ac_file" in
4849 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
4850 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
4851 *) ac_file_in="${ac_file}.in" ;;
4852 esac
4853
4854 echo creating $ac_file
4855
4856 rm -f conftest.frag conftest.in conftest.out
4857 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4858 cat $ac_file_inputs > conftest.in
4859
4860 EOF
4861
4862 # Transform confdefs.h into a sed script conftest.vals that substitutes
4863 # the proper values into config.h.in to produce config.h. And first:
4864 # Protect against being on the right side of a sed subst in config.status.
4865 # Protect against being in an unquoted here document in config.status.
4866 rm -f conftest.vals
4867 cat > conftest.hdr <<\EOF
4868 s/[\\&%]/\\&/g
4869 s%[\\$`]%\\&%g
4870 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
4871 s%ac_d%ac_u%gp
4872 s%ac_u%ac_e%gp
4873 EOF
4874 sed -n -f conftest.hdr confdefs.h > conftest.vals
4875 rm -f conftest.hdr
4876
4877 # This sed command replaces #undef with comments. This is necessary, for
4878 # example, in the case of _POSIX_SOURCE, which is predefined and required
4879 # on some systems where configure will not decide to define it.
4880 cat >> conftest.vals <<\EOF
4881 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
4882 EOF
4883
4884 # Break up conftest.vals because some shells have a limit on
4885 # the size of here documents, and old seds have small limits too.
4886
4887 rm -f conftest.tail
4888 while :
4889 do
4890 ac_lines=`grep -c . conftest.vals`
4891 # grep -c gives empty output for an empty file on some AIX systems.
4892 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
4893 # Write a limited-size here document to conftest.frag.
4894 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
4895 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
4896 echo 'CEOF
4897 sed -f conftest.frag conftest.in > conftest.out
4898 rm -f conftest.in
4899 mv conftest.out conftest.in
4900 ' >> $CONFIG_STATUS
4901 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
4902 rm -f conftest.vals
4903 mv conftest.tail conftest.vals
4904 done
4905 rm -f conftest.vals
4906
4907 cat >> $CONFIG_STATUS <<\EOF
4908 rm -f conftest.frag conftest.h
4909 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
4910 cat conftest.in >> conftest.h
4911 rm -f conftest.in
4912 if cmp -s $ac_file conftest.h 2>/dev/null; then
4913 echo "$ac_file is unchanged"
4914 rm -f conftest.h
4915 else
4916 # Remove last slash and all that follows it. Not all systems have dirname.
4917 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
4918 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
4919 # The file is in a subdirectory.
4920 test ! -d "$ac_dir" && mkdir "$ac_dir"
4921 fi
4922 rm -f $ac_file
4923 mv conftest.h $ac_file
4924 fi
4925 fi; done
4926
4927 EOF
4928 cat >> $CONFIG_STATUS <<EOF
4929
4930
4931 EOF
4932 cat >> $CONFIG_STATUS <<\EOF
4933 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
4934 sed -e '/POTFILES =/r po/POTFILES' po/Makefile.in > po/Makefile
4935 exit 0
4936 EOF
4937 chmod +x $CONFIG_STATUS
4938 rm -fr confdefs* $ac_clean_files
4939 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
4940
This page took 0.221866 seconds and 4 git commands to generate.