Update.
[glibc.git] / configure
blobc7571cb6cd251cb21601a3f198014b7f07a9fc66
1 #! /bin/sh
3 # From configure.in CVSid
14 # Guess values for system-dependent variables and create Makefiles.
15 # Generated automatically using autoconf version 2.13
16 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
18 # This configure script is free software; the Free Software Foundation
19 # gives unlimited permission to copy, distribute and modify it.
21 # Defaults:
22 ac_help=
23 ac_default_prefix=/usr/local
24 # Any additions from configure.in:
25 ac_help="$ac_help
26 --with-gmp=DIRECTORY find GMP source code in DIRECTORY (not needed)"
27 ac_help="$ac_help
28 --with-gd=DIR find libgd include dir and library with prefix DIR"
29 ac_help="$ac_help
30 --with-gd-include=DIR find libgd include files in DIR"
31 ac_help="$ac_help
32 --with-gd-lib=DIR find libgd library files in DIR"
33 ac_help="$ac_help
34 --with-fp if using floating-point hardware [default=yes]"
35 ac_help="$ac_help
36 --with-binutils=PATH specify location of binutils (as and ld)"
37 ac_help="$ac_help
38 --with-elf if using the ELF object format"
39 ac_help="$ac_help
40 --with-xcoff if using the XCOFF object format"
41 ac_help="$ac_help
42 --without-cvs if CVS should not be used"
43 ac_help="$ac_help
44 --with-headers=PATH location of system headers to use
45 [e.g. /usr/src/linux/include]
46 [default=compiler default]"
47 ac_help="$ac_help
48 --enable-libio build in GNU libio instead of GNU stdio"
49 ac_help="$ac_help
50 --disable-sanity-checks really do not use threads (should not be used
51 except in special situations) [default=yes]"
52 ac_help="$ac_help
53 --enable-shared build shared library [default=yes if GNU ld & ELF]"
54 ac_help="$ac_help
55 --enable-profile build profiled library [default=yes]"
56 ac_help="$ac_help
57 --enable-omitfp build undebuggable optimized library [default=no]"
58 ac_help="$ac_help
59 --enable-bounded build with runtime bounds checking [default=no]"
60 ac_help="$ac_help
61 --disable-versioning do not include versioning information in the
62 library objects [default=yes if supported]"
63 ac_help="$ac_help
64 --enable-oldest-abi=ABI configure the oldest ABI supported [e.g. 2.2]
65 [default=glibc default]"
66 ac_help="$ac_help
67 --enable-add-ons[=DIR1,DIR2]...
68 configure and build add-ons in DIR1,DIR2,...
69 search for add-ons if no parameter given"
70 ac_help="$ac_help
71 --enable-static-nss build static NSS modules [default=no]"
72 ac_help="$ac_help
73 --disable-force-install don't force installation of files from this package,
74 even if they are older than the installed files"
75 ac_help="$ac_help
76 --enable-kernel=VERSION compile for compatibility with kernel not older
77 than VERSION"
78 ac_help="$ac_help
79 --enable-all-warnings enable all useful warnings gcc can issue"
81 # Initialize some variables set by options.
82 # The variables have the same names as the options, with
83 # dashes changed to underlines.
84 build=NONE
85 cache_file=./config.cache
86 exec_prefix=NONE
87 host=NONE
88 no_create=
89 nonopt=NONE
90 no_recursion=
91 prefix=NONE
92 program_prefix=NONE
93 program_suffix=NONE
94 program_transform_name=s,x,x,
95 silent=
96 site=
97 srcdir=
98 target=NONE
99 verbose=
100 x_includes=NONE
101 x_libraries=NONE
102 bindir='${exec_prefix}/bin'
103 sbindir='${exec_prefix}/sbin'
104 libexecdir='${exec_prefix}/libexec'
105 datadir='${prefix}/share'
106 sysconfdir='${prefix}/etc'
107 sharedstatedir='${prefix}/com'
108 localstatedir='${prefix}/var'
109 libdir='${exec_prefix}/lib'
110 includedir='${prefix}/include'
111 oldincludedir='/usr/include'
112 infodir='${prefix}/info'
113 mandir='${prefix}/man'
115 # Initialize some other variables.
116 subdirs=
117 MFLAGS= MAKEFLAGS=
118 SHELL=${CONFIG_SHELL-/bin/sh}
119 # Maximum number of lines to put in a shell here document.
120 ac_max_here_lines=12
122 ac_prev=
123 for ac_option
126 # If the previous option needs an argument, assign it.
127 if test -n "$ac_prev"; then
128 eval "$ac_prev=\$ac_option"
129 ac_prev=
130 continue
133 case "$ac_option" in
134 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
135 *) ac_optarg= ;;
136 esac
138 # Accept the important Cygnus configure options, so we can diagnose typos.
140 case "$ac_option" in
142 -bindir | --bindir | --bindi | --bind | --bin | --bi)
143 ac_prev=bindir ;;
144 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
145 bindir="$ac_optarg" ;;
147 -build | --build | --buil | --bui | --bu)
148 ac_prev=build ;;
149 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
150 build="$ac_optarg" ;;
152 -cache-file | --cache-file | --cache-fil | --cache-fi \
153 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
154 ac_prev=cache_file ;;
155 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
156 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
157 cache_file="$ac_optarg" ;;
159 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
160 ac_prev=datadir ;;
161 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
162 | --da=*)
163 datadir="$ac_optarg" ;;
165 -disable-* | --disable-*)
166 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
167 # Reject names that are not valid shell variable names.
168 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
169 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
171 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
172 eval "enable_${ac_feature}=no" ;;
174 -enable-* | --enable-*)
175 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
176 # Reject names that are not valid shell variable names.
177 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
178 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
180 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
181 case "$ac_option" in
182 *=*) ;;
183 *) ac_optarg=yes ;;
184 esac
185 eval "enable_${ac_feature}='$ac_optarg'" ;;
187 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
188 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
189 | --exec | --exe | --ex)
190 ac_prev=exec_prefix ;;
191 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
192 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
193 | --exec=* | --exe=* | --ex=*)
194 exec_prefix="$ac_optarg" ;;
196 -gas | --gas | --ga | --g)
197 # Obsolete; use --with-gas.
198 with_gas=yes ;;
200 -help | --help | --hel | --he)
201 # Omit some internal or obsolete options to make the list less imposing.
202 # This message is too long to be a string in the A/UX 3.1 sh.
203 cat << EOF
204 Usage: configure [options] [host]
205 Options: [defaults in brackets after descriptions]
206 Configuration:
207 --cache-file=FILE cache test results in FILE
208 --help print this message
209 --no-create do not create output files
210 --quiet, --silent do not print \`checking...' messages
211 --version print the version of autoconf that created configure
212 Directory and file names:
213 --prefix=PREFIX install architecture-independent files in PREFIX
214 [$ac_default_prefix]
215 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
216 [same as prefix]
217 --bindir=DIR user executables in DIR [EPREFIX/bin]
218 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
219 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
220 --datadir=DIR read-only architecture-independent data in DIR
221 [PREFIX/share]
222 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
223 --sharedstatedir=DIR modifiable architecture-independent data in DIR
224 [PREFIX/com]
225 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
226 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
227 --includedir=DIR C header files in DIR [PREFIX/include]
228 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
229 --infodir=DIR info documentation in DIR [PREFIX/info]
230 --mandir=DIR man documentation in DIR [PREFIX/man]
231 --srcdir=DIR find the sources in DIR [configure dir or ..]
232 --program-prefix=PREFIX prepend PREFIX to installed program names
233 --program-suffix=SUFFIX append SUFFIX to installed program names
234 --program-transform-name=PROGRAM
235 run sed PROGRAM on installed program names
237 cat << EOF
238 Host type:
239 --build=BUILD configure for building on BUILD [BUILD=HOST]
240 --host=HOST configure for HOST [guessed]
241 --target=TARGET configure for TARGET [TARGET=HOST]
242 Features and packages:
243 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
244 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
245 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
246 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
247 --x-includes=DIR X include files are in DIR
248 --x-libraries=DIR X library files are in DIR
250 if test -n "$ac_help"; then
251 echo "--enable and --with options recognized:$ac_help"
253 exit 0 ;;
255 -host | --host | --hos | --ho)
256 ac_prev=host ;;
257 -host=* | --host=* | --hos=* | --ho=*)
258 host="$ac_optarg" ;;
260 -includedir | --includedir | --includedi | --included | --include \
261 | --includ | --inclu | --incl | --inc)
262 ac_prev=includedir ;;
263 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
264 | --includ=* | --inclu=* | --incl=* | --inc=*)
265 includedir="$ac_optarg" ;;
267 -infodir | --infodir | --infodi | --infod | --info | --inf)
268 ac_prev=infodir ;;
269 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
270 infodir="$ac_optarg" ;;
272 -libdir | --libdir | --libdi | --libd)
273 ac_prev=libdir ;;
274 -libdir=* | --libdir=* | --libdi=* | --libd=*)
275 libdir="$ac_optarg" ;;
277 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
278 | --libexe | --libex | --libe)
279 ac_prev=libexecdir ;;
280 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
281 | --libexe=* | --libex=* | --libe=*)
282 libexecdir="$ac_optarg" ;;
284 -localstatedir | --localstatedir | --localstatedi | --localstated \
285 | --localstate | --localstat | --localsta | --localst \
286 | --locals | --local | --loca | --loc | --lo)
287 ac_prev=localstatedir ;;
288 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
289 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
290 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
291 localstatedir="$ac_optarg" ;;
293 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
294 ac_prev=mandir ;;
295 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
296 mandir="$ac_optarg" ;;
298 -nfp | --nfp | --nf)
299 # Obsolete; use --without-fp.
300 with_fp=no ;;
302 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
303 | --no-cr | --no-c)
304 no_create=yes ;;
306 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
307 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
308 no_recursion=yes ;;
310 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
311 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
312 | --oldin | --oldi | --old | --ol | --o)
313 ac_prev=oldincludedir ;;
314 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
315 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
316 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
317 oldincludedir="$ac_optarg" ;;
319 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
320 ac_prev=prefix ;;
321 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
322 prefix="$ac_optarg" ;;
324 -program-prefix | --program-prefix | --program-prefi | --program-pref \
325 | --program-pre | --program-pr | --program-p)
326 ac_prev=program_prefix ;;
327 -program-prefix=* | --program-prefix=* | --program-prefi=* \
328 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
329 program_prefix="$ac_optarg" ;;
331 -program-suffix | --program-suffix | --program-suffi | --program-suff \
332 | --program-suf | --program-su | --program-s)
333 ac_prev=program_suffix ;;
334 -program-suffix=* | --program-suffix=* | --program-suffi=* \
335 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
336 program_suffix="$ac_optarg" ;;
338 -program-transform-name | --program-transform-name \
339 | --program-transform-nam | --program-transform-na \
340 | --program-transform-n | --program-transform- \
341 | --program-transform | --program-transfor \
342 | --program-transfo | --program-transf \
343 | --program-trans | --program-tran \
344 | --progr-tra | --program-tr | --program-t)
345 ac_prev=program_transform_name ;;
346 -program-transform-name=* | --program-transform-name=* \
347 | --program-transform-nam=* | --program-transform-na=* \
348 | --program-transform-n=* | --program-transform-=* \
349 | --program-transform=* | --program-transfor=* \
350 | --program-transfo=* | --program-transf=* \
351 | --program-trans=* | --program-tran=* \
352 | --progr-tra=* | --program-tr=* | --program-t=*)
353 program_transform_name="$ac_optarg" ;;
355 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
356 | -silent | --silent | --silen | --sile | --sil)
357 silent=yes ;;
359 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
360 ac_prev=sbindir ;;
361 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
362 | --sbi=* | --sb=*)
363 sbindir="$ac_optarg" ;;
365 -sharedstatedir | --sharedstatedir | --sharedstatedi \
366 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
367 | --sharedst | --shareds | --shared | --share | --shar \
368 | --sha | --sh)
369 ac_prev=sharedstatedir ;;
370 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
371 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
372 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
373 | --sha=* | --sh=*)
374 sharedstatedir="$ac_optarg" ;;
376 -site | --site | --sit)
377 ac_prev=site ;;
378 -site=* | --site=* | --sit=*)
379 site="$ac_optarg" ;;
381 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
382 ac_prev=srcdir ;;
383 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
384 srcdir="$ac_optarg" ;;
386 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
387 | --syscon | --sysco | --sysc | --sys | --sy)
388 ac_prev=sysconfdir ;;
389 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
390 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
391 sysconfdir="$ac_optarg" ;;
393 -target | --target | --targe | --targ | --tar | --ta | --t)
394 ac_prev=target ;;
395 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
396 target="$ac_optarg" ;;
398 -v | -verbose | --verbose | --verbos | --verbo | --verb)
399 verbose=yes ;;
401 -version | --version | --versio | --versi | --vers)
402 echo "configure generated by autoconf version 2.13"
403 exit 0 ;;
405 -with-* | --with-*)
406 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
407 # Reject names that are not valid shell variable names.
408 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
409 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
411 ac_package=`echo $ac_package| sed 's/-/_/g'`
412 case "$ac_option" in
413 *=*) ;;
414 *) ac_optarg=yes ;;
415 esac
416 eval "with_${ac_package}='$ac_optarg'" ;;
418 -without-* | --without-*)
419 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
420 # Reject names that are not valid shell variable names.
421 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
422 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
424 ac_package=`echo $ac_package| sed 's/-/_/g'`
425 eval "with_${ac_package}=no" ;;
427 --x)
428 # Obsolete; use --with-x.
429 with_x=yes ;;
431 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
432 | --x-incl | --x-inc | --x-in | --x-i)
433 ac_prev=x_includes ;;
434 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
435 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
436 x_includes="$ac_optarg" ;;
438 -x-libraries | --x-libraries | --x-librarie | --x-librari \
439 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
440 ac_prev=x_libraries ;;
441 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
442 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
443 x_libraries="$ac_optarg" ;;
445 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
449 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
450 echo "configure: warning: $ac_option: invalid host type" 1>&2
452 if test "x$nonopt" != xNONE; then
453 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
455 nonopt="$ac_option"
458 esac
459 done
461 if test -n "$ac_prev"; then
462 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
465 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
467 # File descriptor usage:
468 # 0 standard input
469 # 1 file creation
470 # 2 errors and warnings
471 # 3 some systems may open it to /dev/tty
472 # 4 used on the Kubota Titan
473 # 6 checking for... messages and results
474 # 5 compiler messages saved in config.log
475 if test "$silent" = yes; then
476 exec 6>/dev/null
477 else
478 exec 6>&1
480 exec 5>./config.log
482 echo "\
483 This file contains any messages produced by compilers while
484 running configure, to aid debugging if configure makes a mistake.
485 " 1>&5
487 # Strip out --no-create and --no-recursion so they do not pile up.
488 # Also quote any args containing shell metacharacters.
489 ac_configure_args=
490 for ac_arg
492 case "$ac_arg" in
493 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
494 | --no-cr | --no-c) ;;
495 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
496 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
497 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
498 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
499 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
500 esac
501 done
503 # NLS nuisances.
504 # Only set these to C if already set. These must not be set unconditionally
505 # because not all systems understand e.g. LANG=C (notably SCO).
506 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
507 # Non-C LC_CTYPE values break the ctype check.
508 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
509 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
510 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
511 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
513 # confdefs.h avoids OS command line length limits that DEFS can exceed.
514 rm -rf conftest* confdefs.h
515 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
516 echo > confdefs.h
518 # A filename unique to this package, relative to the directory that
519 # configure is in, which we can look for to find out if srcdir is correct.
520 ac_unique_file=include/features.h
522 # Find the source files, if location was not specified.
523 if test -z "$srcdir"; then
524 ac_srcdir_defaulted=yes
525 # Try the directory containing this script, then its parent.
526 ac_prog=$0
527 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
528 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
529 srcdir=$ac_confdir
530 if test ! -r $srcdir/$ac_unique_file; then
531 srcdir=..
533 else
534 ac_srcdir_defaulted=no
536 if test ! -r $srcdir/$ac_unique_file; then
537 if test "$ac_srcdir_defaulted" = yes; then
538 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
539 else
540 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
543 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
545 # Prefer explicitly selected file to automatically selected ones.
546 if test -z "$CONFIG_SITE"; then
547 if test "x$prefix" != xNONE; then
548 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
549 else
550 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
553 for ac_site_file in $CONFIG_SITE; do
554 if test -r "$ac_site_file"; then
555 echo "loading site script $ac_site_file"
556 . "$ac_site_file"
558 done
560 if test -r "$cache_file"; then
561 echo "loading cache $cache_file"
562 . $cache_file
563 else
564 echo "creating cache $cache_file"
565 > $cache_file
568 ac_ext=c
569 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
570 ac_cpp='$CPP $CPPFLAGS'
571 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
572 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
573 cross_compiling=$ac_cv_prog_cc_cross
575 ac_exeext=
576 ac_objext=o
577 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
578 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
579 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
580 ac_n= ac_c='
581 ' ac_t=' '
582 else
583 ac_n=-n ac_c= ac_t=
585 else
586 ac_n= ac_c='\c' ac_t=
589 if test -r /vmunix; then
590 kernel_id=`strings /vmunix | grep UNIX`
591 elif test -r /dynix; then
592 kernel_id=`strings /dynix | grep DYNIX`
593 else
594 kernel_id=
599 ac_aux_dir=
600 for ac_dir in scripts $srcdir/scripts; do
601 if test -f $ac_dir/install-sh; then
602 ac_aux_dir=$ac_dir
603 ac_install_sh="$ac_aux_dir/install-sh -c"
604 break
605 elif test -f $ac_dir/install.sh; then
606 ac_aux_dir=$ac_dir
607 ac_install_sh="$ac_aux_dir/install.sh -c"
608 break
610 done
611 if test -z "$ac_aux_dir"; then
612 { echo "configure: error: can not find install-sh or install.sh in scripts $srcdir/scripts" 1>&2; exit 1; }
614 ac_config_guess=$ac_aux_dir/config.guess
615 ac_config_sub=$ac_aux_dir/config.sub
616 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
619 # This will get text that should go into config.make.
620 config_vars=
622 # Check for a --with-gmp argument and set gmp-srcdir in config.make.
623 # Check whether --with-gmp or --without-gmp was given.
624 if test "${with_gmp+set}" = set; then
625 withval="$with_gmp"
626 case "$with_gmp" in
627 yes) { echo "configure: error: --with-gmp requires an argument; use --with-gmp=DIRECTORY" 1>&2; exit 1; } ;;
628 ''|no) ;;
629 *) config_vars="$config_vars
630 gmp-srcdir = $withval" ;;
631 esac
635 # Check for a --with-gd argument and set libgd-LDFLAGS in config.make.
636 # Check whether --with-gd or --without-gd was given.
637 if test "${with_gd+set}" = set; then
638 withval="$with_gd"
639 case "$with_gd" in
640 yes|''|no) ;;
641 *) libgd_include="-I$withval/include"
642 libgd_ldflags="-L$withval/lib" ;;
643 esac
647 # Check whether --with-gd-include or --without-gd-include was given.
648 if test "${with_gd_include+set}" = set; then
649 withval="$with_gd_include"
650 case "$with_gd_include" in
651 ''|no) ;;
652 *) libgd_include="-I$withval" ;;
653 esac
657 # Check whether --with-gd-lib or --without-gd-lib was given.
658 if test "${with_gd_lib+set}" = set; then
659 withval="$with_gd_lib"
660 case "$with_gd_lib" in
661 ''|no) ;;
662 *) libgd_ldflags="-L$withval" ;;
663 esac
668 if test -n "$libgd_include"; then
669 config_vars="$config_vars
670 CFLAGS-memusagestat.c = $libgd_include"
672 if test -n "$libgd_ldflags"; then
673 config_vars="$config_vars
674 libgd-LDFLAGS = $libgd_ldflags"
677 # Check whether --with-fp or --without-fp was given.
678 if test "${with_fp+set}" = set; then
679 withval="$with_fp"
680 with_fp=$withval
681 else
682 with_fp=yes
686 # Check whether --with-binutils or --without-binutils was given.
687 if test "${with_binutils+set}" = set; then
688 withval="$with_binutils"
689 path_binutils=$withval
690 else
691 path_binutils=''
694 # Check whether --with-elf or --without-elf was given.
695 if test "${with_elf+set}" = set; then
696 withval="$with_elf"
697 elf=$withval
698 else
699 elf=no
702 # Check whether --with-xcoff or --without-xcoff was given.
703 if test "${with_xcoff+set}" = set; then
704 withval="$with_xcoff"
705 xcoff=$withval
706 else
707 xcoff=no
710 # Check whether --with-cvs or --without-cvs was given.
711 if test "${with_cvs+set}" = set; then
712 withval="$with_cvs"
713 with_cvs=$withval
714 else
715 with_cvs=yes
718 if test "$with_cvs" = yes; then
719 if test -d $srcdir/CVS && grep :pserver: $srcdir/CVS/Root > /dev/null
720 then
721 with_cvs=no
726 # Check whether --with-headers or --without-headers was given.
727 if test "${with_headers+set}" = set; then
728 withval="$with_headers"
729 sysheaders=$withval
730 else
731 sysheaders=''
735 # Check whether --enable-libio or --disable-libio was given.
736 if test "${enable_libio+set}" = set; then
737 enableval="$enable_libio"
738 if test $enableval = yes; then
739 stdio=libio
740 else
741 stdio=stdio
743 else
744 stdio=default
748 # Check whether --enable-sanity-checks or --disable-sanity-checks was given.
749 if test "${enable_sanity_checks+set}" = set; then
750 enableval="$enable_sanity_checks"
751 enable_sanity=$enableval
752 else
753 enable_sanity=yes
757 static=yes
758 # Check whether --enable-shared or --disable-shared was given.
759 if test "${enable_shared+set}" = set; then
760 enableval="$enable_shared"
761 shared=$enableval
762 else
763 shared=default
766 # Check whether --enable-profile or --disable-profile was given.
767 if test "${enable_profile+set}" = set; then
768 enableval="$enable_profile"
769 profile=$enableval
770 else
771 profile=yes
774 # Check whether --enable-omitfp or --disable-omitfp was given.
775 if test "${enable_omitfp+set}" = set; then
776 enableval="$enable_omitfp"
777 omitfp=$enableval
778 else
779 omitfp=no
782 # Check whether --enable-bounded or --disable-bounded was given.
783 if test "${enable_bounded+set}" = set; then
784 enableval="$enable_bounded"
785 bounded=$enableval
786 else
787 bounded=no
790 # Check whether --enable-versioning or --disable-versioning was given.
791 if test "${enable_versioning+set}" = set; then
792 enableval="$enable_versioning"
793 enable_versioning=$enableval
794 else
795 enable_versioning=yes
799 # Check whether --enable-oldest-abi or --disable-oldest-abi was given.
800 if test "${enable_oldest_abi+set}" = set; then
801 enableval="$enable_oldest_abi"
802 oldest_abi=$enableval
803 else
804 oldest_abi=no
807 if test "$oldest_abi" = yes || test "$oldest_abi" = no; then
808 oldest_abi=default
809 else
810 cat >> confdefs.h <<EOF
811 #define GLIBC_OLDEST_ABI "$oldest_abi"
817 # Check whether --enable-add-ons or --disable-add-ons was given.
818 if test "${enable_add_ons+set}" = set; then
819 enableval="$enable_add_ons"
820 case "$enableval" in
821 yes) add_ons=`cd $srcdir && echo */configure | sed -e 's!/configure!!g'`
822 test "$add_ons" = "*" && add_ons= ;;
823 *) add_ons=`echo "$enableval" | sed 's/,/ /g'`;;
824 esac
825 else
826 add_ons=
830 subdirs="$add_ons"
832 add_ons_pfx=
833 if test x"$add_ons" != x; then
834 for f in $add_ons; do
835 # Some sanity checks
836 if test "$f" = "crypt"; then
837 { echo "configure: error:
838 *** It seems that you're using an old \`crypt' add-on. crypt is now
839 *** part of glibc and using the old add-on will not work with this
840 *** release. Start again with fresh sources and without the old
841 *** \`crypt' add-on." 1>&2; exit 1; }
843 if test "$f" = "localedata"; then
844 { echo "configure: error:
845 *** It seems that you're using an old \`localedata' add-on. localedata
846 *** is now part of glibc and using the old add-on will not work with
847 *** this release. Start again with fresh sources and without the old
848 *** \`localedata' add-on." 1>&2; exit 1; }
850 # Test whether such a subdir really exists.
851 if test -d $srcdir/$f; then
852 add_ons_pfx="$add_ons_pfx $f/"
853 else
854 { echo "configure: error: add-on directory \"$f\" does not exist" 1>&2; exit 1; }
856 done
859 # Check whether --enable-static-nss or --disable-static-nss was given.
860 if test "${enable_static_nss+set}" = set; then
861 enableval="$enable_static_nss"
862 static_nss=$enableval
863 else
864 static_nss=no
867 if test x"$static_nss" = xyes; then
868 cat >> confdefs.h <<\EOF
869 #define DO_STATIC_NSS 1
874 # Check whether --enable-force-install or --disable-force-install was given.
875 if test "${enable_force_install+set}" = set; then
876 enableval="$enable_force_install"
877 force_install=$enableval
878 else
879 force_install=yes
884 # Check whether --enable-kernel or --disable-kernel was given.
885 if test "${enable_kernel+set}" = set; then
886 enableval="$enable_kernel"
887 minimum_kernel=$enableval
890 if test "$minimum_kernel" = yes || test "$minimum_kernel" = no; then
891 # Better nothing than this.
892 minimum_kernel=""
893 else
894 if test "$minimum_kernel" = current; then
895 minimum_kernel=`uname -r 2>/dev/null` || minimum_kernel=
899 # Check whether --enable-all-warnings or --disable-all-warnings was given.
900 if test "${enable_all_warnings+set}" = set; then
901 enableval="$enable_all_warnings"
902 all_warnings=$enableval
908 # Make sure we can run config.sub.
909 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
910 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
913 echo $ac_n "checking host system type""... $ac_c" 1>&6
914 echo "configure:915: checking host system type" >&5
916 host_alias=$host
917 case "$host_alias" in
918 NONE)
919 case $nonopt in
920 NONE)
921 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
922 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
923 fi ;;
924 *) host_alias=$nonopt ;;
925 esac ;;
926 esac
928 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
929 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
930 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
931 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
932 echo "$ac_t""$host" 1>&6
935 # The way shlib-versions is used to generate soversions.mk uses a
936 # fairly simplistic model for name recognition that can't distinguish
937 # i486-pc-linux-gnu fully from i486-pc-gnu. So we mutate a $host_os
938 # of `gnu*' here to be `gnu-gnu*' just so that shlib-versions can
939 # tell. This doesn't get used much beyond that, so it's fairly safe.
940 case "$host_os" in
941 linux*)
943 gnu*)
944 host_os=`echo $host_os | sed -e 's/gnu/gnu-gnu/'`
946 esac
948 # We keep the original values in `$config_*' and never modify them, so we
949 # can write them unchanged into config.make. Everything else uses
950 # $machine, $vendor, and $os, and changes them whenever convenient.
951 config_machine=$host_cpu config_vendor=$host_vendor config_os=$host_os
953 # Don't allow vendor == "unknown"
954 test "$config_vendor" = unknown && config_vendor=
955 config_os="`echo $config_os | sed 's/^unknown-//'`"
957 # Some configurations imply other options.
958 case "$host_os" in
959 gnu* | linux* | bsd4.4* | netbsd* | freebsd*)
960 # These systems always use GNU tools.
961 gnu_ld=yes gnu_as=yes ;;
962 esac
963 case "$host_os" in
964 # i586-linuxaout is mangled into i586-pc-linux-gnuaout
965 linux*ecoff* | linux*aout* | gnu*aout* | gnu*ecoff*)
967 gnu* | linux* | sysv4* | solaris2* | irix6*)
968 # These systems (almost) always use the ELF format.
969 elf=yes
971 aix*)
972 # These systems are always xcoff
973 xcoff=yes
974 elf=no
976 esac
978 machine=$config_machine
979 vendor=$config_vendor
980 os=$config_os
982 # config.guess on some IBM machines says `rs6000' instead of `powerpc'.
983 # Unify this here.
984 if test "$machine" = rs6000; then
985 machine="powerpc"
989 ### I put this here to prevent those annoying emails from people who cannot
990 ### read and try to compile glibc on unsupported platforms. --drepper
992 ### By using the undocumented --enable-hacker-mode option for configure
993 ### one can skip this test to make the configuration not fail for unsupported
994 ### platforms.
996 if test -z "$enable_hacker_mode"; then
997 case "$machine-$host_os" in
998 *-linux* | *-gnu* | arm*-none* | powerpc-aix4.3.*)
1001 echo "*** The GNU C library is currently not available for this platform."
1002 echo "*** So far nobody cared to port it and if there is no volunteer it"
1003 echo "*** might never happen. So, if you have interest to see glibc on"
1004 echo "*** this platform visit"
1005 echo "*** http://www.gnu.org/software/libc/porting.html"
1006 echo "*** and join the group of porters"
1007 exit 1
1009 esac
1012 # Expand the configuration machine name into a subdirectory by architecture
1013 # type and particular chip.
1014 case "$machine" in
1015 a29k | am29000) base_machine=a29k machine=a29k ;;
1016 alpha*) base_machine=alpha machine=alpha/$machine ;;
1017 arm*) base_machine=arm machine=arm/arm32/$machine ;;
1018 c3[012]) base_machine=cx0 machine=cx0/c30 ;;
1019 c4[04]) base_machine=cx0 machine=cx0/c40 ;;
1020 hppa*64*) base_machine=hppa machine=hppa/hppa64 ;;
1021 hppa*) base_machine=hppa machine=hppa/hppa1.1 ;;
1022 i[3456]86) base_machine=i386 machine=i386/$machine ;;
1023 ia64) base_machine=ia64 machine=ia64 ;;
1024 m680?0) base_machine=m68k machine=m68k/$machine ;;
1025 m68k) base_machine=m68k machine=m68k/m68020 ;;
1026 m88???) base_machine=m88k machine=m88k/$machine ;;
1027 m88k) base_machine=m88k machine=m88k/m88100 ;;
1028 mips64*) base_machine=mips64 machine=mips/mips64/$machine ;;
1029 mips*) base_machine=mips
1030 case "`uname -m`" in
1031 IP22) machine=mips/mips3 ;;
1032 *) machine=mips/$machine ;;
1033 esac ;;
1034 s390) base_machine=s390 machine=s390/s390-32 ;;
1035 s390x) base_machine=s390 machine=s390/s390-64 ;;
1036 sh3*) base_machine=sh machine=sh/sh3 ;;
1037 sh4*) base_machine=sh machine=sh/sh4 ;;
1038 sparc | sparcv[67])
1039 base_machine=sparc machine=sparc/sparc32 ;;
1040 sparcv8 | supersparc | hypersparc)
1041 base_machine=sparc machine=sparc/sparc32/sparcv8 ;;
1042 sparcv8plus | sparcv8plusa | sparcv9)
1043 base_machine=sparc machine=sparc/sparc32/sparcv9 ;;
1044 sparcv8plusb | sparcv9b)
1045 base_machine=sparc machine=sparc/sparc32/sparcv9b ;;
1046 sparc64 | ultrasparc)
1047 base_machine=sparc machine=sparc/sparc64 ;;
1048 sparc64b | ultrasparc3)
1049 base_machine=sparc machine=sparc/sparc64/sparcv9b ;;
1050 thumb*) base_machine=thumb machine=arm/thumb/$machine ;;
1051 esac
1054 if test "$base_machine" = "i386"; then
1055 cat >> confdefs.h <<\EOF
1056 #define USE_REGPARMS 1
1061 # Compute the list of sysdep directories for this configuration.
1062 # This can take a while to compute.
1063 sysdep_dir=$srcdir/sysdeps
1064 echo $ac_n "checking sysdep dirs""... $ac_c" 1>&6
1065 echo "configure:1066: checking sysdep dirs" >&5
1066 # Make sco3.2v4 become sco3.2.4 and sunos4.1.1_U1 become sunos4.1.1.U1.
1067 os="`echo $os | sed 's/\([0-9A-Z]\)[v_]\([0-9A-Z]\)/\1.\2/g'`"
1069 case "$os" in
1070 gnu*)
1071 base_os=mach/hurd ;;
1072 netbsd* | 386bsd* | freebsd* | bsdi*)
1073 base_os=unix/bsd/bsd4.4 ;;
1074 osf* | sunos* | ultrix* | newsos* | dynix* | *bsd*)
1075 base_os=unix/bsd ;;
1076 sysv* | isc* | esix* | sco* | minix* | irix4* | linux*)
1077 base_os=unix/sysv ;;
1078 irix6*)
1079 base_os=unix/sysv/irix6/$os ;;
1080 solaris[2-9]*)
1081 base_os=unix/sysv/sysv4 ;;
1082 hpux*)
1083 base_os=unix/sysv/hpux/$os ;;
1084 aix4.3*)
1085 base_os=unix/sysv/aix/aix4.3 ;;
1086 none)
1087 base_os=standalone ;;
1089 base_os='' ;;
1090 esac
1092 # For sunos4.1.1, try sunos4.1.1, then sunos4.1, then sunos4, then sunos.
1093 tail=$os
1094 ostry=$os
1095 while o=`echo $tail | sed 's/\.[^.]*$//'`; test $o != $tail; do
1096 ostry="$ostry /$o"
1097 tail=$o
1098 done
1099 o=`echo $tail | sed 's/[0-9]*$//'`
1100 if test $o != $tail; then
1101 ostry="$ostry /$o"
1103 # For linux-gnu, try linux-gnu, then linux.
1104 o=`echo $tail | sed 's/-.*$//'`
1105 if test $o != $tail; then
1106 ostry="$ostry /$o"
1109 # For unix/sysv/sysv4, try unix/sysv/sysv4, then unix/sysv, then unix.
1110 base=
1111 tail=$base_os
1112 while b=`echo $tail | sed 's@^\(.*\)/\([^/]*\)$@& \1@'`; test -n "$b"; do
1113 set $b
1114 base="$base /$1"
1115 tail="$2"
1116 done
1118 # For sparc/sparc32, try sparc/sparc32 and then sparc.
1119 mach=
1120 tail=$machine
1121 while m=`echo $tail | sed 's@^\(.*\)/\([^/]*\)$@& \1@'`; test -n "$m"; do
1122 set $m
1123 # Prepend the machine's FPU directory unless --without-fp.
1124 if test "$with_fp" = yes; then
1125 mach="$mach /$1/fpu"
1127 mach="$mach /$1"
1128 tail="$2"
1129 done
1132 # Find what sysdep directories exist.
1133 sysnames=
1134 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1135 for d in $add_ons_pfx ''; do
1136 for b in $base ''; do
1137 for m0 in $mach ''; do
1138 for v in /$vendor ''; do
1139 test "$v" = / && continue
1140 for o in /$ostry ''; do
1141 test "$o" = / && continue
1142 for m in $mach ''; do
1143 if test "$m0$b$v$o$m"; then
1144 try="${d}sysdeps$m0$b$v$o$m"
1145 test -n "$enable_debug_configure" &&
1146 echo "$0 DEBUG: try $try" >&2
1147 if test -d $srcdir/$try; then
1148 sysnames="$sysnames $try"
1149 { test -n "$o" || test -n "$b"; } && os_used=t
1150 { test -n "$m" || test -n "$m0"; } && machine_used=t
1153 done
1154 done
1155 done
1156 done
1157 done
1158 done
1159 IFS="$ac_save_ifs"
1161 if test -z "$os_used" && test "$os" != none; then
1162 { echo "configure: error: Operating system $os is not supported." 1>&2; exit 1; }
1164 if test -z "$machine_used" && test "$machine" != none; then
1165 { echo "configure: error: The $machine is not supported." 1>&2; exit 1; }
1168 # We have now validated the configuration.
1171 # If using ELF, look for an `elf' subdirectory of each machine directory.
1172 # We prepend these rather than inserting them whereever the machine appears
1173 # because things specified by the machine's ELF ABI should override
1174 # OS-specific things, and should always be the same for any OS on the
1175 # machine (otherwise what's the point of an ABI?).
1176 if test "$elf" = yes; then
1177 elf_dirs=
1178 for d in $add_ons_pfx ''; do
1179 for m in $mach; do
1180 if test -d $srcdir/${d}sysdeps$m/elf; then
1181 elf_dirs="$elf_dirs ${d}sysdeps$m/elf"
1183 done
1184 done
1185 sysnames="`echo $elf_dirs | sed -e 's,//,/,g'` $sysnames"
1189 # Expand the list of system names into a full list of directories
1190 # from each element's parent name and Implies file (if present).
1191 set $sysnames
1192 names=
1193 while test $# -gt 0; do
1194 name=$1
1195 shift
1197 case " $names " in *" $name "*)
1198 # Already in the list.
1199 continue
1200 esac
1202 # Report each name as we discover it, so there is no long pause in output.
1203 echo $ac_n "$name $ac_c" >&6
1205 name_base=`echo $name | sed -e 's@\(.*sysdeps\)/.*@\1@'`
1207 case $name in
1208 /*) xsrcdir= ;;
1209 *) xsrcdir=$srcdir/ ;;
1210 esac
1211 test -n "$enable_debug_configure" &&
1212 echo "DEBUG: name/Implies $xsrcdir$name/Implies" >&2
1214 if test -f $xsrcdir$name/Implies; then
1215 # Collect more names from the `Implies' file (removing comments).
1216 implied_candidate="`sed 's/#.*$//' < $xsrcdir$name/Implies`"
1217 implied=
1218 for x in $implied_candidate; do
1219 found=no
1220 if test -d $xsrcdir$name_base/$x; then
1221 implied="$implied $name_base/$x";
1222 found=yes
1224 for d in $add_ons_pfx ''; do
1225 try="${d}sysdeps/$x"
1226 case $d in
1227 /*) try_srcdir= ;;
1228 *) try_srcdir=$srcdir/ ;;
1229 esac
1230 test -n "$enable_debug_configure" &&
1231 echo "DEBUG: $name implied $x try($d) {$try_srcdir}$try" >&2
1232 if test $try != $xsrcdir$name_base/$x && test -d $try_srcdir$try;
1233 then
1234 implied="$implied $try"
1235 found=yes
1237 done
1238 if test $found = no; then
1239 echo "configure: warning: $name/Implies specifies nonexistent $x" 1>&2
1241 done
1242 else
1243 implied=
1246 # Add NAME to the list of names.
1247 names="$names $name"
1249 # Find the parent of NAME, using the empty string if it has none.
1250 parent="`echo $name | sed -n -e 's=/[^/]*$==' -e '/sysdeps$/q' -e p`"
1252 # Add the names implied by NAME, and NAME's parent (if it has one), to
1253 # the list of names to be processed (the argument list). We prepend the
1254 # implied names to the list and append the parent. We want implied
1255 # directories to come before further directories inferred from the
1256 # configuration components; this ensures that for sysv4, unix/common
1257 # (implied by unix/sysv/sysv4) comes before unix/sysv (in ostry (here $*)
1258 # after sysv4).
1259 sysnames="`echo $implied $* $parent`"
1260 test -n "$sysnames" && set $sysnames
1261 done
1263 # Add the default directories.
1264 default_sysnames=sysdeps/generic
1265 if test "$elf" = yes; then
1266 default_sysnames="sysdeps/generic/elf $default_sysnames"
1268 sysnames="$names $default_sysnames"
1270 # The other names were emitted during the scan.
1271 echo "$ac_t""$default_sysnames" 1>&6
1274 ### Locate tools.
1276 # Find a good install program. We prefer a C program (faster),
1277 # so one script is as good as another. But avoid the broken or
1278 # incompatible versions:
1279 # SysV /etc/install, /usr/sbin/install
1280 # SunOS /usr/etc/install
1281 # IRIX /sbin/install
1282 # AIX /bin/install
1283 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1284 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1285 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1286 # ./install, which can be erroneously created by make from ./install.sh.
1287 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1288 echo "configure:1289: checking for a BSD compatible install" >&5
1289 if test -z "$INSTALL"; then
1290 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1291 echo $ac_n "(cached) $ac_c" 1>&6
1292 else
1293 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1294 for ac_dir in $PATH; do
1295 # Account for people who put trailing slashes in PATH elements.
1296 case "$ac_dir/" in
1297 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1299 # OSF1 and SCO ODT 3.0 have their own names for install.
1300 # Don't use installbsd from OSF since it installs stuff as root
1301 # by default.
1302 for ac_prog in ginstall scoinst install; do
1303 if test -f $ac_dir/$ac_prog; then
1304 if test $ac_prog = install &&
1305 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1306 # AIX install. It has an incompatible calling convention.
1308 else
1309 ac_cv_path_install="$ac_dir/$ac_prog -c"
1310 break 2
1313 done
1315 esac
1316 done
1317 IFS="$ac_save_IFS"
1320 if test "${ac_cv_path_install+set}" = set; then
1321 INSTALL="$ac_cv_path_install"
1322 else
1323 # As a last resort, use the slow shell script. We don't cache a
1324 # path for INSTALL within a source directory, because that will
1325 # break other packages using the cache if that directory is
1326 # removed, or if the path is relative.
1327 INSTALL="$ac_install_sh"
1330 echo "$ac_t""$INSTALL" 1>&6
1332 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1333 # It thinks the first close brace ends the variable substitution.
1334 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1336 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1338 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1340 if test "$INSTALL" = "${srcdir}/scripts/install-sh -c"; then
1341 # The makefiles need to use a different form to find it in $srcdir.
1342 INSTALL='\$(..)./scripts/install-sh -c'
1344 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1345 echo "configure:1346: checking whether ln -s works" >&5
1346 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1347 echo $ac_n "(cached) $ac_c" 1>&6
1348 else
1349 rm -f conftestdata
1350 if ln -s X conftestdata 2>/dev/null
1351 then
1352 rm -f conftestdata
1353 ac_cv_prog_LN_S="ln -s"
1354 else
1355 ac_cv_prog_LN_S=ln
1358 LN_S="$ac_cv_prog_LN_S"
1359 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1360 echo "$ac_t""yes" 1>&6
1361 else
1362 echo "$ac_t""no" 1>&6
1366 # We need the physical current working directory. We cannot use the
1367 # "pwd -P" shell builtin since that's not portable. Instead we try to
1368 # find a pwd binary. Note that assigning to the PWD environment
1369 # variable might have some interesting side effects, so we don't do
1370 # that.
1371 # Extract the first word of "pwd", so it can be a program name with args.
1372 set dummy pwd; ac_word=$2
1373 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1374 echo "configure:1375: checking for $ac_word" >&5
1375 if eval "test \"`echo '$''{'ac_cv_path_PWD_P'+set}'`\" = set"; then
1376 echo $ac_n "(cached) $ac_c" 1>&6
1377 else
1378 case "$PWD_P" in
1380 ac_cv_path_PWD_P="$PWD_P" # Let the user override the test with a path.
1382 ?:/*)
1383 ac_cv_path_PWD_P="$PWD_P" # Let the user override the test with a dos path.
1386 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1387 ac_dummy="$PATH"
1388 for ac_dir in $ac_dummy; do
1389 test -z "$ac_dir" && ac_dir=.
1390 if test -f $ac_dir/$ac_word; then
1391 ac_cv_path_PWD_P="$ac_dir/$ac_word"
1392 break
1394 done
1395 IFS="$ac_save_ifs"
1396 test -z "$ac_cv_path_PWD_P" && ac_cv_path_PWD_P="no"
1398 esac
1400 PWD_P="$ac_cv_path_PWD_P"
1401 if test -n "$PWD_P"; then
1402 echo "$ac_t""$PWD_P" 1>&6
1403 else
1404 echo "$ac_t""no" 1>&6
1407 if test "$PWD_P" = no; then
1408 { echo "configure: error: *** A pwd binary could not be found." 1>&2; exit 1; }
1411 # These programs are version sensitive.
1412 echo $ac_n "checking build system type""... $ac_c" 1>&6
1413 echo "configure:1414: checking build system type" >&5
1415 build_alias=$build
1416 case "$build_alias" in
1417 NONE)
1418 case $nonopt in
1419 NONE) build_alias=$host_alias ;;
1420 *) build_alias=$nonopt ;;
1421 esac ;;
1422 esac
1424 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1425 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1426 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1427 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1428 echo "$ac_t""$build" 1>&6
1430 if test $host != $build; then
1431 ac_tool_prefix=${host_alias}-
1432 else
1433 ac_tool_prefix=
1436 for ac_prog in ${ac_tool_prefix}gcc ${ac_tool_prefix}cc
1438 # Extract the first word of "$ac_prog", so it can be a program name with args.
1439 set dummy $ac_prog; ac_word=$2
1440 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1441 echo "configure:1442: checking for $ac_word" >&5
1442 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1443 echo $ac_n "(cached) $ac_c" 1>&6
1444 else
1445 if test -n "$CC"; then
1446 ac_cv_prog_CC="$CC" # Let the user override the test.
1447 else
1448 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1449 ac_dummy="$PATH"
1450 for ac_dir in $ac_dummy; do
1451 test -z "$ac_dir" && ac_dir=.
1452 if test -f $ac_dir/$ac_word; then
1453 ac_cv_prog_CC="$ac_prog"
1454 break
1456 done
1457 IFS="$ac_save_ifs"
1460 CC="$ac_cv_prog_CC"
1461 if test -n "$CC"; then
1462 echo "$ac_t""$CC" 1>&6
1463 else
1464 echo "$ac_t""no" 1>&6
1467 test -n "$CC" && break
1468 done
1470 if test -z "$CC"; then
1471 ac_verc_fail=yes
1472 else
1473 # Found it, now check the version.
1474 echo $ac_n "checking version of $CC""... $ac_c" 1>&6
1475 echo "configure:1476: checking version of $CC" >&5
1476 ac_prog_version=`$CC -v 2>&1 | sed -n 's/^.*version \([egcygnustpi-]*[0-9.]*\).*$/\1/p'`
1477 case $ac_prog_version in
1478 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
1479 *gcc-2.9[5-9].*|*2.8.[1-9]*|*2.9|*2.9.[0-9]*|2.9[5-9]*|3.[0-9]*|cygnus-2.9[1-9]*|gcc-2.9[5-9]|gcc-2.1[0-9][0-9]|sgicc-*)
1480 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
1481 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
1483 esac
1484 echo "$ac_t""$ac_prog_version" 1>&6
1486 if test $ac_verc_fail = yes; then
1487 critic_missing=gcc
1490 for ac_prog in gnumake gmake make
1492 # Extract the first word of "$ac_prog", so it can be a program name with args.
1493 set dummy $ac_prog; ac_word=$2
1494 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1495 echo "configure:1496: checking for $ac_word" >&5
1496 if eval "test \"`echo '$''{'ac_cv_prog_MAKE'+set}'`\" = set"; then
1497 echo $ac_n "(cached) $ac_c" 1>&6
1498 else
1499 if test -n "$MAKE"; then
1500 ac_cv_prog_MAKE="$MAKE" # Let the user override the test.
1501 else
1502 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1503 ac_dummy="$PATH"
1504 for ac_dir in $ac_dummy; do
1505 test -z "$ac_dir" && ac_dir=.
1506 if test -f $ac_dir/$ac_word; then
1507 ac_cv_prog_MAKE="$ac_prog"
1508 break
1510 done
1511 IFS="$ac_save_ifs"
1514 MAKE="$ac_cv_prog_MAKE"
1515 if test -n "$MAKE"; then
1516 echo "$ac_t""$MAKE" 1>&6
1517 else
1518 echo "$ac_t""no" 1>&6
1521 test -n "$MAKE" && break
1522 done
1524 if test -z "$MAKE"; then
1525 ac_verc_fail=yes
1526 else
1527 # Found it, now check the version.
1528 echo $ac_n "checking version of $MAKE""... $ac_c" 1>&6
1529 echo "configure:1530: checking version of $MAKE" >&5
1530 ac_prog_version=`$MAKE --version 2>&1 | sed -n 's/^.*GNU Make[^0-9]*\([0-9][0-9.]*\).*$/\1/p'`
1531 case $ac_prog_version in
1532 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
1533 3.79* | 3.[89]*)
1534 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
1535 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
1537 esac
1538 echo "$ac_t""$ac_prog_version" 1>&6
1540 if test $ac_verc_fail = yes; then
1541 critic_missing="$critic_missing make"
1546 if test -n "$critic_missing"; then
1547 { echo "configure: error:
1548 *** These critical programs are missing or too old:$critic_missing
1549 *** Check the INSTALL file for required versions." 1>&2; exit 1; }
1553 for ac_prog in gnumsgfmt gmsgfmt msgfmt
1555 # Extract the first word of "$ac_prog", so it can be a program name with args.
1556 set dummy $ac_prog; ac_word=$2
1557 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1558 echo "configure:1559: checking for $ac_word" >&5
1559 if eval "test \"`echo '$''{'ac_cv_prog_MSGFMT'+set}'`\" = set"; then
1560 echo $ac_n "(cached) $ac_c" 1>&6
1561 else
1562 if test -n "$MSGFMT"; then
1563 ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
1564 else
1565 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1566 ac_dummy="$PATH"
1567 for ac_dir in $ac_dummy; do
1568 test -z "$ac_dir" && ac_dir=.
1569 if test -f $ac_dir/$ac_word; then
1570 ac_cv_prog_MSGFMT="$ac_prog"
1571 break
1573 done
1574 IFS="$ac_save_ifs"
1577 MSGFMT="$ac_cv_prog_MSGFMT"
1578 if test -n "$MSGFMT"; then
1579 echo "$ac_t""$MSGFMT" 1>&6
1580 else
1581 echo "$ac_t""no" 1>&6
1584 test -n "$MSGFMT" && break
1585 done
1587 if test -z "$MSGFMT"; then
1588 ac_verc_fail=yes
1589 else
1590 # Found it, now check the version.
1591 echo $ac_n "checking version of $MSGFMT""... $ac_c" 1>&6
1592 echo "configure:1593: checking version of $MSGFMT" >&5
1593 ac_prog_version=`$MSGFMT --version 2>&1 | sed -n 's/^.*GNU gettext.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
1594 case $ac_prog_version in
1595 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
1596 0.10.3[6-9]* | 0.10.[4-9][0-9]* | 0.1[1-9]* | 0.[2-9][0-9]* | [1-9].*)
1597 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
1598 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
1600 esac
1601 echo "$ac_t""$ac_prog_version" 1>&6
1603 if test $ac_verc_fail = yes; then
1604 MSGFMT=: aux_missing="$aux_missing msgfmt"
1607 for ac_prog in makeinfo
1609 # Extract the first word of "$ac_prog", so it can be a program name with args.
1610 set dummy $ac_prog; ac_word=$2
1611 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1612 echo "configure:1613: checking for $ac_word" >&5
1613 if eval "test \"`echo '$''{'ac_cv_prog_MAKEINFO'+set}'`\" = set"; then
1614 echo $ac_n "(cached) $ac_c" 1>&6
1615 else
1616 if test -n "$MAKEINFO"; then
1617 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
1618 else
1619 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1620 ac_dummy="$PATH"
1621 for ac_dir in $ac_dummy; do
1622 test -z "$ac_dir" && ac_dir=.
1623 if test -f $ac_dir/$ac_word; then
1624 ac_cv_prog_MAKEINFO="$ac_prog"
1625 break
1627 done
1628 IFS="$ac_save_ifs"
1631 MAKEINFO="$ac_cv_prog_MAKEINFO"
1632 if test -n "$MAKEINFO"; then
1633 echo "$ac_t""$MAKEINFO" 1>&6
1634 else
1635 echo "$ac_t""no" 1>&6
1638 test -n "$MAKEINFO" && break
1639 done
1641 if test -z "$MAKEINFO"; then
1642 ac_verc_fail=yes
1643 else
1644 # Found it, now check the version.
1645 echo $ac_n "checking version of $MAKEINFO""... $ac_c" 1>&6
1646 echo "configure:1647: checking version of $MAKEINFO" >&5
1647 ac_prog_version=`$MAKEINFO --version 2>&1 | sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
1648 case $ac_prog_version in
1649 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
1650 4.*)
1651 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
1652 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
1654 esac
1655 echo "$ac_t""$ac_prog_version" 1>&6
1657 if test $ac_verc_fail = yes; then
1658 MAKEINFO=: aux_missing="$aux_missing makeinfo"
1661 for ac_prog in sed
1663 # Extract the first word of "$ac_prog", so it can be a program name with args.
1664 set dummy $ac_prog; ac_word=$2
1665 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1666 echo "configure:1667: checking for $ac_word" >&5
1667 if eval "test \"`echo '$''{'ac_cv_prog_SED'+set}'`\" = set"; then
1668 echo $ac_n "(cached) $ac_c" 1>&6
1669 else
1670 if test -n "$SED"; then
1671 ac_cv_prog_SED="$SED" # Let the user override the test.
1672 else
1673 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1674 ac_dummy="$PATH"
1675 for ac_dir in $ac_dummy; do
1676 test -z "$ac_dir" && ac_dir=.
1677 if test -f $ac_dir/$ac_word; then
1678 ac_cv_prog_SED="$ac_prog"
1679 break
1681 done
1682 IFS="$ac_save_ifs"
1685 SED="$ac_cv_prog_SED"
1686 if test -n "$SED"; then
1687 echo "$ac_t""$SED" 1>&6
1688 else
1689 echo "$ac_t""no" 1>&6
1692 test -n "$SED" && break
1693 done
1695 if test -z "$SED"; then
1696 ac_verc_fail=yes
1697 else
1698 # Found it, now check the version.
1699 echo $ac_n "checking version of $SED""... $ac_c" 1>&6
1700 echo "configure:1701: checking version of $SED" >&5
1701 ac_prog_version=`$SED --version 2>&1 | sed -n 's/^.*GNU sed version \([0-9]*\.[0-9.]*\).*$/\1/p'`
1702 case $ac_prog_version in
1703 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
1704 3.0[2-9]*|3.[1-9]*|[4-9]*)
1705 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
1706 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
1708 esac
1709 echo "$ac_t""$ac_prog_version" 1>&6
1711 if test $ac_verc_fail = yes; then
1712 SED=: aux_missing="$aux_missing sed"
1717 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1718 echo "configure:1719: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1719 if eval "test \"`echo '$''{'ac_cv_prog_cc_works'+set}'`\" = set"; then
1720 echo $ac_n "(cached) $ac_c" 1>&6
1721 else
1723 ac_ext=c
1724 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1725 ac_cpp='$CPP $CPPFLAGS'
1726 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1727 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1728 cross_compiling=$ac_cv_prog_cc_cross
1730 cat > conftest.$ac_ext << EOF
1732 #line 1733 "configure"
1733 #include "confdefs.h"
1735 main(){return(0);}
1737 if { (eval echo configure:1738: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1738 ac_cv_prog_cc_works=yes
1739 # If we can't run a trivial program, we are probably using a cross compiler.
1740 if (./conftest; exit) 2>/dev/null; then
1741 ac_cv_prog_cc_cross=no
1742 else
1743 ac_cv_prog_cc_cross=yes
1745 else
1746 echo "configure: failed program was:" >&5
1747 cat conftest.$ac_ext >&5
1748 ac_cv_prog_cc_works=no
1750 rm -fr conftest*
1751 ac_ext=c
1752 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1753 ac_cpp='$CPP $CPPFLAGS'
1754 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1755 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1756 cross_compiling=$ac_cv_prog_cc_cross
1760 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1761 if test $ac_cv_prog_cc_works = no; then
1762 cross_linkable=no
1763 ac_cv_prog_cc_cross=yes
1764 else
1765 cross_linkable=yes
1767 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1768 echo "configure:1769: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1769 if eval "test \"`echo '$''{'ac_cv_prog_cc_cross'+set}'`\" = set"; then
1770 echo $ac_n "(cached) $ac_c" 1>&6
1771 else
1775 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1777 cross_compiling=$ac_cv_prog_cc_cross
1779 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1780 echo "configure:1781: checking whether we are using GNU C" >&5
1781 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1782 echo $ac_n "(cached) $ac_c" 1>&6
1783 else
1784 cat > conftest.c <<EOF
1785 #ifdef __GNUC__
1786 yes;
1787 #endif
1789 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1790: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1790 ac_cv_prog_gcc=yes
1791 else
1792 ac_cv_prog_gcc=no
1796 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1797 if test $ac_cv_prog_gcc != yes; then
1798 { echo "configure: error: GNU libc must be compiled using GNU CC" 1>&2; exit 1; }
1801 echo $ac_n "checking build system type""... $ac_c" 1>&6
1802 echo "configure:1803: checking build system type" >&5
1804 build_alias=$build
1805 case "$build_alias" in
1806 NONE)
1807 case $nonopt in
1808 NONE) build_alias=$host_alias ;;
1809 *) build_alias=$nonopt ;;
1810 esac ;;
1811 esac
1813 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1814 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1815 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1816 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1817 echo "$ac_t""$build" 1>&6
1819 if test $host != $build; then
1820 for ac_prog in gcc cc
1822 # Extract the first word of "$ac_prog", so it can be a program name with args.
1823 set dummy $ac_prog; ac_word=$2
1824 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1825 echo "configure:1826: checking for $ac_word" >&5
1826 if eval "test \"`echo '$''{'ac_cv_prog_BUILD_CC'+set}'`\" = set"; then
1827 echo $ac_n "(cached) $ac_c" 1>&6
1828 else
1829 if test -n "$BUILD_CC"; then
1830 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
1831 else
1832 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1833 ac_dummy="$PATH"
1834 for ac_dir in $ac_dummy; do
1835 test -z "$ac_dir" && ac_dir=.
1836 if test -f $ac_dir/$ac_word; then
1837 ac_cv_prog_BUILD_CC="$ac_prog"
1838 break
1840 done
1841 IFS="$ac_save_ifs"
1844 BUILD_CC="$ac_cv_prog_BUILD_CC"
1845 if test -n "$BUILD_CC"; then
1846 echo "$ac_t""$BUILD_CC" 1>&6
1847 else
1848 echo "$ac_t""no" 1>&6
1851 test -n "$BUILD_CC" && break
1852 done
1856 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1857 echo "configure:1858: checking how to run the C preprocessor" >&5
1858 # On Suns, sometimes $CPP names a directory.
1859 if test -n "$CPP" && test -d "$CPP"; then
1860 CPP=
1862 if test -z "$CPP"; then
1863 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1864 echo $ac_n "(cached) $ac_c" 1>&6
1865 else
1866 # This must be in double quotes, not single quotes, because CPP may get
1867 # substituted into the Makefile and "${CC-cc}" will confuse make.
1868 CPP="${CC-cc} -E"
1869 # On the NeXT, cc -E runs the code through the compiler's parser,
1870 # not just through cpp.
1871 cat > conftest.$ac_ext <<EOF
1872 #line 1873 "configure"
1873 #include "confdefs.h"
1874 #include <assert.h>
1875 Syntax Error
1877 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1878 { (eval echo configure:1879: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1879 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1880 if test -z "$ac_err"; then
1882 else
1883 echo "$ac_err" >&5
1884 echo "configure: failed program was:" >&5
1885 cat conftest.$ac_ext >&5
1886 rm -rf conftest*
1887 CPP="${CC-cc} -E -traditional-cpp"
1888 cat > conftest.$ac_ext <<EOF
1889 #line 1890 "configure"
1890 #include "confdefs.h"
1891 #include <assert.h>
1892 Syntax Error
1894 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1895 { (eval echo configure:1896: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1896 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1897 if test -z "$ac_err"; then
1899 else
1900 echo "$ac_err" >&5
1901 echo "configure: failed program was:" >&5
1902 cat conftest.$ac_ext >&5
1903 rm -rf conftest*
1904 CPP="${CC-cc} -nologo -E"
1905 cat > conftest.$ac_ext <<EOF
1906 #line 1907 "configure"
1907 #include "confdefs.h"
1908 #include <assert.h>
1909 Syntax Error
1911 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1912 { (eval echo configure:1913: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1913 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1914 if test -z "$ac_err"; then
1916 else
1917 echo "$ac_err" >&5
1918 echo "configure: failed program was:" >&5
1919 cat conftest.$ac_ext >&5
1920 rm -rf conftest*
1921 CPP=/lib/cpp
1923 rm -f conftest*
1925 rm -f conftest*
1927 rm -f conftest*
1928 ac_cv_prog_CPP="$CPP"
1930 CPP="$ac_cv_prog_CPP"
1931 else
1932 ac_cv_prog_CPP="$CPP"
1934 echo "$ac_t""$CPP" 1>&6
1936 # Was a --with-binutils option given?
1937 if test -n "$path_binutils"; then
1938 # Make absolute; ensure a single trailing slash.
1939 path_binutils=`(cd $path_binutils; pwd) | sed 's%/*$%/%'`
1940 CC="$CC -B$path_binutils"
1942 AS=`$CC -print-prog-name=as`
1943 LD=`$CC -print-prog-name=ld`
1944 AR=`$CC -print-prog-name=ar`
1947 # ranlib has to be treated a bit differently since it might not exist at all.
1948 RANLIB=`$CC -print-prog-name=ranlib`
1949 if test $RANLIB = ranlib; then
1950 # This extra check has to happen since gcc simply echos the parameter in
1951 # case it cannot find the value in its own directories.
1952 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1953 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1954 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1955 echo "configure:1956: checking for $ac_word" >&5
1956 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1957 echo $ac_n "(cached) $ac_c" 1>&6
1958 else
1959 if test -n "$RANLIB"; then
1960 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1961 else
1962 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1963 ac_dummy="$PATH"
1964 for ac_dir in $ac_dummy; do
1965 test -z "$ac_dir" && ac_dir=.
1966 if test -f $ac_dir/$ac_word; then
1967 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1968 break
1970 done
1971 IFS="$ac_save_ifs"
1974 RANLIB="$ac_cv_prog_RANLIB"
1975 if test -n "$RANLIB"; then
1976 echo "$ac_t""$RANLIB" 1>&6
1977 else
1978 echo "$ac_t""no" 1>&6
1982 if test -z "$ac_cv_prog_RANLIB"; then
1983 if test -n "$ac_tool_prefix"; then
1984 # Extract the first word of "ranlib", so it can be a program name with args.
1985 set dummy ranlib; ac_word=$2
1986 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1987 echo "configure:1988: checking for $ac_word" >&5
1988 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1989 echo $ac_n "(cached) $ac_c" 1>&6
1990 else
1991 if test -n "$RANLIB"; then
1992 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1993 else
1994 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1995 ac_dummy="$PATH"
1996 for ac_dir in $ac_dummy; do
1997 test -z "$ac_dir" && ac_dir=.
1998 if test -f $ac_dir/$ac_word; then
1999 ac_cv_prog_RANLIB="ranlib"
2000 break
2002 done
2003 IFS="$ac_save_ifs"
2004 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2007 RANLIB="$ac_cv_prog_RANLIB"
2008 if test -n "$RANLIB"; then
2009 echo "$ac_t""$RANLIB" 1>&6
2010 else
2011 echo "$ac_t""no" 1>&6
2014 else
2015 RANLIB=":"
2022 # Determine whether we are using GNU binutils.
2023 echo $ac_n "checking whether $AS is GNU as""... $ac_c" 1>&6
2024 echo "configure:2025: checking whether $AS is GNU as" >&5
2025 if eval "test \"`echo '$''{'libc_cv_prog_as_gnu'+set}'`\" = set"; then
2026 echo $ac_n "(cached) $ac_c" 1>&6
2027 else
2028 # Most GNU programs take a -v and spit out some text including
2029 # the word 'GNU'. Some try to read stdin, so give them /dev/null.
2030 if $AS -o conftest -v </dev/null 2>&1 | grep GNU > /dev/null 2>&1; then
2031 libc_cv_prog_as_gnu=yes
2032 else
2033 libc_cv_prog_as_gnu=no
2035 rm -fr contest*
2038 echo "$ac_t""$libc_cv_prog_as_gnu" 1>&6
2039 rm -f a.out
2040 gnu_as=$libc_cv_prog_as_gnu
2042 echo $ac_n "checking whether $LD is GNU ld""... $ac_c" 1>&6
2043 echo "configure:2044: checking whether $LD is GNU ld" >&5
2044 if eval "test \"`echo '$''{'libc_cv_prog_ld_gnu'+set}'`\" = set"; then
2045 echo $ac_n "(cached) $ac_c" 1>&6
2046 else
2047 # Most GNU programs take a -v and spit out some text including
2048 # the word 'GNU'. Some try to read stdin, so give them /dev/null.
2049 if $LD -o conftest -v </dev/null 2>&1 | grep GNU > /dev/null 2>&1; then
2050 libc_cv_prog_ld_gnu=yes
2051 else
2052 libc_cv_prog_ld_gnu=no
2054 rm -fr contest*
2057 echo "$ac_t""$libc_cv_prog_ld_gnu" 1>&6
2058 gnu_ld=$libc_cv_prog_ld_gnu
2060 # Extract the first word of "${ac_tool_prefix}mig", so it can be a program name with args.
2061 set dummy ${ac_tool_prefix}mig; ac_word=$2
2062 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2063 echo "configure:2064: checking for $ac_word" >&5
2064 if eval "test \"`echo '$''{'ac_cv_prog_MIG'+set}'`\" = set"; then
2065 echo $ac_n "(cached) $ac_c" 1>&6
2066 else
2067 if test -n "$MIG"; then
2068 ac_cv_prog_MIG="$MIG" # Let the user override the test.
2069 else
2070 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2071 ac_dummy="$PATH"
2072 for ac_dir in $ac_dummy; do
2073 test -z "$ac_dir" && ac_dir=.
2074 if test -f $ac_dir/$ac_word; then
2075 ac_cv_prog_MIG="${ac_tool_prefix}mig"
2076 break
2078 done
2079 IFS="$ac_save_ifs"
2080 test -z "$ac_cv_prog_MIG" && ac_cv_prog_MIG="mig"
2083 MIG="$ac_cv_prog_MIG"
2084 if test -n "$MIG"; then
2085 echo "$ac_t""$MIG" 1>&6
2086 else
2087 echo "$ac_t""no" 1>&6
2093 # Accept binutils 2.10.1 or newer (and also any ia64 2.9 version)
2094 # XXX Commented out because it filters out too many good versions.
2095 # XXX --drepper
2096 # AC_CHECK_PROG_VER(AS, $AS, --version,
2097 # [GNU assembler.* \([0-9]*\.[0-9.]*\(-ia64-[0-9]*\)*\)],
2098 # [2.10.[1-9]* | 2.1[1-9]* | 2.9-ia64-*], AS=: critic_missing=t)
2100 test -n "$aux_missing" && echo "configure: warning:
2101 *** These auxiliary programs are missing or too old:$aux_missing
2102 *** some features will be disabled.
2103 *** Check the INSTALL file for required versions." 1>&2
2105 # glibcbug.in wants to know the compiler version.
2106 CCVERSION=`$CC -v 2>&1 | sed -n 's/gcc version //p'`
2109 # if using special system headers, find out the compiler's sekrit
2110 # header directory and add that to the list. NOTE: Only does the right
2111 # thing on a system that doesn't need fixincludes. (Not presently a problem.)
2112 if test -n "$sysheaders"; then
2113 ccheaders=`$CC -print-file-name=include`
2114 SYSINCLUDES="-nostdinc -isystem $ccheaders -isystem $sysheaders"
2118 # check if ranlib is necessary
2119 echo $ac_n "checking whether ranlib is necessary""... $ac_c" 1>&6
2120 echo "configure:2121: checking whether ranlib is necessary" >&5
2121 if eval "test \"`echo '$''{'libc_cv_ranlib_necessary'+set}'`\" = set"; then
2122 echo $ac_n "(cached) $ac_c" 1>&6
2123 else
2124 cat > conftest.c <<EOF
2125 int a;
2126 char b;
2127 void c(void) {}
2129 $CC $CFLAGS -c conftest.c
2130 $AR cr conftest.a conftest.c
2131 cp conftest.a conftest2.a
2132 $RANLIB conftest.a
2133 if cmp -s conftest.a conftest2.a; then
2134 libc_cv_ranlib_necessary=no
2135 else
2136 libc_cv_ranlib_necessary=yes
2138 rm -rf conftest*
2141 echo "$ac_t""$libc_cv_ranlib_necessary" 1>&6
2142 if test "$libc_cv_ranlib_necessary" = no; then
2143 RANLIB=:
2146 # Test if LD_LIBRARY_PATH contains the notation for the current directory
2147 # since this would lead to problems installing/building glibc.
2148 # LD_LIBRARY_PATH contains the current directory if one of the following
2149 # is true:
2150 # - one of the terminals (":" and ";") is the first or last sign
2151 # - two terminals occur directly after each other
2152 # - the path contains an element with a dot in it
2153 echo $ac_n "checking LD_LIBRARY_PATH variable""... $ac_c" 1>&6
2154 echo "configure:2155: checking LD_LIBRARY_PATH variable" >&5
2155 case ${LD_LIBRARY_PATH} in
2156 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
2157 ld_library_path_setting="contains current directory"
2160 ld_library_path_setting="ok"
2162 esac
2163 echo "$ac_t""$ld_library_path_setting" 1>&6
2164 if test "$ld_library_path_setting" != "ok"; then
2165 { echo "configure: error:
2166 *** LD_LIBRARY_PATH shouldn't contain the current directory when
2167 *** building glibc. Please change the environment variable
2168 *** and run configure again." 1>&2; exit 1; }
2171 echo $ac_n "checking whether GCC supports -static-libgcc""... $ac_c" 1>&6
2172 echo "configure:2173: checking whether GCC supports -static-libgcc" >&5
2173 if eval "test \"`echo '$''{'libc_cv_gcc_static_libgcc'+set}'`\" = set"; then
2174 echo $ac_n "(cached) $ac_c" 1>&6
2175 else
2176 if $CC -v -static-libgcc 2>&1 | grep -q 'unrecognized option.*static-libgcc'; then
2177 libc_cv_gcc_static_libgcc=
2178 else
2179 libc_cv_gcc_static_libgcc=-static-libgcc
2183 echo "$ac_t""$libc_cv_gcc_static_libgcc" 1>&6
2186 # Extract the first word of "bash", so it can be a program name with args.
2187 set dummy bash; ac_word=$2
2188 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2189 echo "configure:2190: checking for $ac_word" >&5
2190 if eval "test \"`echo '$''{'ac_cv_path_BASH'+set}'`\" = set"; then
2191 echo $ac_n "(cached) $ac_c" 1>&6
2192 else
2193 case "$BASH" in
2195 ac_cv_path_BASH="$BASH" # Let the user override the test with a path.
2197 ?:/*)
2198 ac_cv_path_BASH="$BASH" # Let the user override the test with a dos path.
2201 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2202 ac_dummy="$PATH"
2203 for ac_dir in $ac_dummy; do
2204 test -z "$ac_dir" && ac_dir=.
2205 if test -f $ac_dir/$ac_word; then
2206 ac_cv_path_BASH="$ac_dir/$ac_word"
2207 break
2209 done
2210 IFS="$ac_save_ifs"
2211 test -z "$ac_cv_path_BASH" && ac_cv_path_BASH="no"
2213 esac
2215 BASH="$ac_cv_path_BASH"
2216 if test -n "$BASH"; then
2217 echo "$ac_t""$BASH" 1>&6
2218 else
2219 echo "$ac_t""no" 1>&6
2222 if test "$BASH" != no &&
2223 $BASH -c 'test "$BASH_VERSINFO" \
2224 && test "$BASH_VERSINFO" -ge 2 >&/dev/null'; then
2225 libc_cv_have_bash2=yes
2226 else
2227 libc_cv_have_bash2=no
2231 if test "$BASH" = no; then
2232 # Extract the first word of "ksh", so it can be a program name with args.
2233 set dummy ksh; ac_word=$2
2234 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2235 echo "configure:2236: checking for $ac_word" >&5
2236 if eval "test \"`echo '$''{'ac_cv_path_KSH'+set}'`\" = set"; then
2237 echo $ac_n "(cached) $ac_c" 1>&6
2238 else
2239 case "$KSH" in
2241 ac_cv_path_KSH="$KSH" # Let the user override the test with a path.
2243 ?:/*)
2244 ac_cv_path_KSH="$KSH" # Let the user override the test with a dos path.
2247 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2248 ac_dummy="$PATH"
2249 for ac_dir in $ac_dummy; do
2250 test -z "$ac_dir" && ac_dir=.
2251 if test -f $ac_dir/$ac_word; then
2252 ac_cv_path_KSH="$ac_dir/$ac_word"
2253 break
2255 done
2256 IFS="$ac_save_ifs"
2257 test -z "$ac_cv_path_KSH" && ac_cv_path_KSH="no"
2259 esac
2261 KSH="$ac_cv_path_KSH"
2262 if test -n "$KSH"; then
2263 echo "$ac_t""$KSH" 1>&6
2264 else
2265 echo "$ac_t""no" 1>&6
2268 if test "$KSH" = no; then
2269 libc_cv_have_ksh=no
2270 else
2271 libc_cv_have_ksh=yes
2273 else
2274 KSH="$BASH"
2276 libc_cv_have_ksh=yes
2280 for ac_prog in gawk mawk nawk awk
2282 # Extract the first word of "$ac_prog", so it can be a program name with args.
2283 set dummy $ac_prog; ac_word=$2
2284 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2285 echo "configure:2286: checking for $ac_word" >&5
2286 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
2287 echo $ac_n "(cached) $ac_c" 1>&6
2288 else
2289 if test -n "$AWK"; then
2290 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2291 else
2292 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2293 ac_dummy="$PATH"
2294 for ac_dir in $ac_dummy; do
2295 test -z "$ac_dir" && ac_dir=.
2296 if test -f $ac_dir/$ac_word; then
2297 ac_cv_prog_AWK="$ac_prog"
2298 break
2300 done
2301 IFS="$ac_save_ifs"
2304 AWK="$ac_cv_prog_AWK"
2305 if test -n "$AWK"; then
2306 echo "$ac_t""$AWK" 1>&6
2307 else
2308 echo "$ac_t""no" 1>&6
2311 test -n "$AWK" && break
2312 done
2314 # Extract the first word of "perl", so it can be a program name with args.
2315 set dummy perl; ac_word=$2
2316 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2317 echo "configure:2318: checking for $ac_word" >&5
2318 if eval "test \"`echo '$''{'ac_cv_path_PERL'+set}'`\" = set"; then
2319 echo $ac_n "(cached) $ac_c" 1>&6
2320 else
2321 case "$PERL" in
2323 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
2325 ?:/*)
2326 ac_cv_path_PERL="$PERL" # Let the user override the test with a dos path.
2329 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2330 ac_dummy="$PATH"
2331 for ac_dir in $ac_dummy; do
2332 test -z "$ac_dir" && ac_dir=.
2333 if test -f $ac_dir/$ac_word; then
2334 ac_cv_path_PERL="$ac_dir/$ac_word"
2335 break
2337 done
2338 IFS="$ac_save_ifs"
2339 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="no"
2341 esac
2343 PERL="$ac_cv_path_PERL"
2344 if test -n "$PERL"; then
2345 echo "$ac_t""$PERL" 1>&6
2346 else
2347 echo "$ac_t""no" 1>&6
2350 if test "$PERL" != no &&
2351 (eval `$PERL -V:apiversion`; test `expr "$apiversion" \< 5` -ne 0); then
2352 PERL=no
2354 # Extract the first word of "install-info", so it can be a program name with args.
2355 set dummy install-info; ac_word=$2
2356 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2357 echo "configure:2358: checking for $ac_word" >&5
2358 if eval "test \"`echo '$''{'ac_cv_path_INSTALL_INFO'+set}'`\" = set"; then
2359 echo $ac_n "(cached) $ac_c" 1>&6
2360 else
2361 case "$INSTALL_INFO" in
2363 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
2365 ?:/*)
2366 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a dos path.
2369 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2370 ac_dummy="$PATH:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin"
2371 for ac_dir in $ac_dummy; do
2372 test -z "$ac_dir" && ac_dir=.
2373 if test -f $ac_dir/$ac_word; then
2374 ac_cv_path_INSTALL_INFO="$ac_dir/$ac_word"
2375 break
2377 done
2378 IFS="$ac_save_ifs"
2379 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO="no"
2381 esac
2383 INSTALL_INFO="$ac_cv_path_INSTALL_INFO"
2384 if test -n "$INSTALL_INFO"; then
2385 echo "$ac_t""$INSTALL_INFO" 1>&6
2386 else
2387 echo "$ac_t""no" 1>&6
2390 if test "$INSTALL_INFO" != "no"; then
2391 echo $ac_n "checking for old Debian install-info""... $ac_c" 1>&6
2392 echo "configure:2393: checking for old Debian install-info" >&5
2393 if eval "test \"`echo '$''{'libc_cv_old_debian_install_info'+set}'`\" = set"; then
2394 echo $ac_n "(cached) $ac_c" 1>&6
2395 else
2396 mkdir conftest.d
2397 # There is a hard ^_ on the next line. I am open to better ideas.
2398 (echo '\x1f'
2399 echo 'File: dir Node: Top This is the top of the INFO tree'
2400 echo '* Menu:') >conftest.d/dir
2401 (echo 'INFO-DIR-SECTION i-d-s works'
2402 echo 'START-INFO-DIR-ENTRY'
2403 echo '* Prog: (prog). Program.'
2404 echo 'END-INFO-DIR-ENTRY') >conftest.d/prog.info
2405 if $INSTALL_INFO --info-dir=conftest.d conftest.d/prog.info >&5 2>&1
2406 then
2407 if grep -s 'i-d-s works' conftest.d/dir >/dev/null
2408 then libc_cv_old_debian_install_info=no
2409 else libc_cv_old_debian_install_info=yes
2411 else libc_cv_old_debian_install_info=no testfailed=t
2413 rm -fr conftest.d
2416 echo "$ac_t""$libc_cv_old_debian_install_info" 1>&6
2417 if test -n "$testfailed"
2418 then echo "configure: warning: install-info errored out, check config.log" 1>&2
2420 OLD_DEBIAN_INSTALL_INFO=$libc_cv_old_debian_install_info
2424 # Extract the first word of "bison", so it can be a program name with args.
2425 set dummy bison; ac_word=$2
2426 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2427 echo "configure:2428: checking for $ac_word" >&5
2428 if eval "test \"`echo '$''{'ac_cv_path_BISON'+set}'`\" = set"; then
2429 echo $ac_n "(cached) $ac_c" 1>&6
2430 else
2431 case "$BISON" in
2433 ac_cv_path_BISON="$BISON" # Let the user override the test with a path.
2435 ?:/*)
2436 ac_cv_path_BISON="$BISON" # Let the user override the test with a dos path.
2439 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2440 ac_dummy="$PATH:/usr/local/bin:/usr/bin:/bin"
2441 for ac_dir in $ac_dummy; do
2442 test -z "$ac_dir" && ac_dir=.
2443 if test -f $ac_dir/$ac_word; then
2444 ac_cv_path_BISON="$ac_dir/$ac_word"
2445 break
2447 done
2448 IFS="$ac_save_ifs"
2449 test -z "$ac_cv_path_BISON" && ac_cv_path_BISON="no"
2451 esac
2453 BISON="$ac_cv_path_BISON"
2454 if test -n "$BISON"; then
2455 echo "$ac_t""$BISON" 1>&6
2456 else
2457 echo "$ac_t""no" 1>&6
2461 echo $ac_n "checking for signed size_t type""... $ac_c" 1>&6
2462 echo "configure:2463: checking for signed size_t type" >&5
2463 if eval "test \"`echo '$''{'libc_cv_signed_size_t'+set}'`\" = set"; then
2464 echo $ac_n "(cached) $ac_c" 1>&6
2465 else
2466 echo '#include <stddef.h>
2467 FOOBAR __SIZE_TYPE__ FOOBAR' > conftest.c
2468 if eval "$ac_cpp conftest.c 2>/dev/null" \
2469 | grep '^FOOBAR.*unsigned.*FOOBAR$' >/dev/null; then
2470 libc_cv_signed_size_t=no
2471 else
2472 libc_cv_signed_size_t=yes
2474 rm -f conftest*
2477 echo "$ac_t""$libc_cv_signed_size_t" 1>&6
2478 if test $libc_cv_signed_size_t = yes; then
2479 cat >> confdefs.h <<\EOF
2480 #undef __SIZE_TYPE__
2481 #define __SIZE_TYPE__ unsigned
2485 echo $ac_n "checking for libc-friendly stddef.h""... $ac_c" 1>&6
2486 echo "configure:2487: checking for libc-friendly stddef.h" >&5
2487 if eval "test \"`echo '$''{'libc_cv_friendly_stddef'+set}'`\" = set"; then
2488 echo $ac_n "(cached) $ac_c" 1>&6
2489 else
2490 cat > conftest.$ac_ext <<EOF
2491 #line 2492 "configure"
2492 #include "confdefs.h"
2493 #define __need_size_t
2494 #define __need_wchar_t
2495 #include <stddef.h>
2496 #define __need_NULL
2497 #include <stddef.h>
2498 int main() {
2499 size_t size; wchar_t wchar;
2500 #ifdef offsetof
2501 #error stddef.h ignored __need_*
2502 #endif
2503 if (&size == NULL || &wchar == NULL) abort ();
2504 ; return 0; }
2506 if { (eval echo configure:2507: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2507 rm -rf conftest*
2508 libc_cv_friendly_stddef=yes
2509 else
2510 echo "configure: failed program was:" >&5
2511 cat conftest.$ac_ext >&5
2512 rm -rf conftest*
2513 libc_cv_friendly_stddef=no
2515 rm -f conftest*
2518 echo "$ac_t""$libc_cv_friendly_stddef" 1>&6
2519 if test $libc_cv_friendly_stddef = yes; then
2520 config_vars="$config_vars
2521 override stddef.h = # The installed <stddef.h> seems to be libc-friendly."
2524 echo $ac_n "checking whether we need to use -P to assemble .S files""... $ac_c" 1>&6
2525 echo "configure:2526: checking whether we need to use -P to assemble .S files" >&5
2526 if eval "test \"`echo '$''{'libc_cv_need_minus_P'+set}'`\" = set"; then
2527 echo $ac_n "(cached) $ac_c" 1>&6
2528 else
2529 cat > conftest.S <<EOF
2530 #include "confdefs.h"
2531 /* Nothing whatsoever. */
2533 if ${CC-cc} $CFLAGS -c conftest.S 2>/dev/null; then
2534 libc_cv_need_minus_P=no
2535 else
2536 libc_cv_need_minus_P=yes
2538 rm -f conftest*
2541 echo "$ac_t""$libc_cv_need_minus_P" 1>&6
2542 if test $libc_cv_need_minus_P = yes; then
2543 config_vars="$config_vars
2544 asm-CPPFLAGS = -P # The assembler can't grok cpp's # line directives."
2547 echo $ac_n "checking whether .text pseudo-op must be used""... $ac_c" 1>&6
2548 echo "configure:2549: checking whether .text pseudo-op must be used" >&5
2549 if eval "test \"`echo '$''{'libc_cv_dot_text'+set}'`\" = set"; then
2550 echo $ac_n "(cached) $ac_c" 1>&6
2551 else
2552 cat > conftest.s <<EOF
2553 .text
2555 libc_cv_dot_text=
2556 if ${CC-cc} $CFLAGS -c conftest.s 2>/dev/null; then
2557 libc_cv_dot_text=.text
2559 rm -f conftest*
2562 if test -z "$libc_cv_dot_text"; then
2563 echo "$ac_t""no" 1>&6
2564 else
2565 echo "$ac_t""yes" 1>&6
2568 echo $ac_n "checking for assembler global-symbol directive""... $ac_c" 1>&6
2569 echo "configure:2570: checking for assembler global-symbol directive" >&5
2570 if eval "test \"`echo '$''{'libc_cv_asm_global_directive'+set}'`\" = set"; then
2571 echo $ac_n "(cached) $ac_c" 1>&6
2572 else
2573 libc_cv_asm_global_directive=UNKNOWN
2574 for ac_globl in .globl .global .EXPORT; do
2575 cat > conftest.s <<EOF
2576 ${libc_cv_dot_text}
2577 ${ac_globl} foo
2578 foo:
2580 if ${CC-cc} $CFLAGS -c conftest.s 2>/dev/null; then
2581 libc_cv_asm_global_directive=${ac_globl}
2583 rm -f conftest*
2584 test $libc_cv_asm_global_directive != UNKNOWN && break
2585 done
2588 echo "$ac_t""$libc_cv_asm_global_directive" 1>&6
2589 if test $libc_cv_asm_global_directive = UNKNOWN; then
2590 { echo "configure: error: cannot determine asm global directive" 1>&2; exit 1; }
2591 else
2592 cat >> confdefs.h <<EOF
2593 #define ASM_GLOBAL_DIRECTIVE ${libc_cv_asm_global_directive}
2598 echo $ac_n "checking for .set assembler directive""... $ac_c" 1>&6
2599 echo "configure:2600: checking for .set assembler directive" >&5
2600 if eval "test \"`echo '$''{'libc_cv_asm_set_directive'+set}'`\" = set"; then
2601 echo $ac_n "(cached) $ac_c" 1>&6
2602 else
2603 cat > conftest.s <<EOF
2604 ${libc_cv_dot_text}
2605 foo:
2606 .set glibc_conftest_frobozz,foo
2607 $libc_cv_asm_global_directive glibc_conftest_frobozz
2609 # The alpha-dec-osf1 assembler gives only a warning for `.set'
2610 # (but it doesn't work), so we must do a linking check to be sure.
2611 cat > conftest1.c <<\EOF
2612 extern int glibc_conftest_frobozz;
2613 main () { printf ("%d\n", glibc_conftest_frobozz); }
2615 if ${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \
2616 -o conftest conftest.s conftest1.c 1>&5 2>&5; then
2617 libc_cv_asm_set_directive=yes
2618 else
2619 libc_cv_asm_set_directive=no
2621 rm -f conftest*
2624 echo "$ac_t""$libc_cv_asm_set_directive" 1>&6
2625 if test $libc_cv_asm_set_directive = yes; then
2626 cat >> confdefs.h <<\EOF
2627 #define HAVE_ASM_SET_DIRECTIVE 1
2632 # The Aix ld uses global .symbol_names instead of symbol_names.
2633 case "$os" in
2634 aix4.3*)
2635 cat >> confdefs.h <<\EOF
2636 #define HAVE_ASM_GLOBAL_DOT_NAME 1
2639 esac
2641 echo $ac_n "checking for .symver assembler directive""... $ac_c" 1>&6
2642 echo "configure:2643: checking for .symver assembler directive" >&5
2643 if eval "test \"`echo '$''{'libc_cv_asm_symver_directive'+set}'`\" = set"; then
2644 echo $ac_n "(cached) $ac_c" 1>&6
2645 else
2646 cat > conftest.s <<EOF
2647 ${libc_cv_dot_text}
2648 _sym:
2649 .symver _sym,sym@VERS
2651 if ${CC-cc} -c $CFLAGS $CPPFLAGS conftest.s 1>&5 2>&5; then
2652 libc_cv_asm_symver_directive=yes
2653 else
2654 libc_cv_asm_symver_directive=no
2656 rm -f conftest*
2659 echo "$ac_t""$libc_cv_asm_symver_directive" 1>&6
2660 echo $ac_n "checking for ld --version-script""... $ac_c" 1>&6
2661 echo "configure:2662: checking for ld --version-script" >&5
2662 if eval "test \"`echo '$''{'libc_cv_ld_version_script_option'+set}'`\" = set"; then
2663 echo $ac_n "(cached) $ac_c" 1>&6
2664 else
2665 if test $libc_cv_asm_symver_directive = yes; then
2666 cat > conftest.s <<EOF
2667 ${libc_cv_dot_text}
2668 _sym:
2669 .symver _sym,sym@VERS
2671 cat > conftest.map <<EOF
2672 VERS_1 {
2673 global: sym;
2676 VERS_2 {
2677 global: sym;
2678 } VERS_1;
2680 if ${CC-cc} -c $CFLAGS $CPPFLAGS conftest.s 1>&5 2>&5; then
2681 if { ac_try='${CC-cc} $CFLAGS -shared -o conftest.so conftest.o
2682 -nostartfiles -nostdlib
2683 -Wl,--version-script,conftest.map
2684 1>&5'; { (eval echo configure:2685: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; };
2685 then
2686 libc_cv_ld_version_script_option=yes
2687 else
2688 libc_cv_ld_version_script_option=no
2690 else
2691 libc_cv_ld_version_script_option=no
2693 else
2694 libc_cv_ld_version_script_option=no
2696 rm -f conftest*
2699 echo "$ac_t""$libc_cv_ld_version_script_option" 1>&6
2700 if test $shared != no &&
2701 test $libc_cv_asm_symver_directive = yes &&
2702 test $libc_cv_ld_version_script_option = yes &&
2703 test $enable_versioning = yes; then
2704 VERSIONING=yes
2705 cat >> confdefs.h <<\EOF
2706 #define DO_VERSIONING 1
2709 else
2710 VERSIONING=no
2714 if test $elf = yes && test $shared != no && test $VERSIONING = no; then
2715 echo "\
2716 *** WARNING: You should not compile GNU libc without versioning. Not using
2717 *** versioning will introduce incompatibilities so that old binaries
2718 *** will not run anymore.
2719 *** For versioning you need recent binutils (binutils-2.8.1.0.23 or newer)."
2721 if test $elf = yes; then
2722 echo $ac_n "checking for .previous assembler directive""... $ac_c" 1>&6
2723 echo "configure:2724: checking for .previous assembler directive" >&5
2724 if eval "test \"`echo '$''{'libc_cv_asm_previous_directive'+set}'`\" = set"; then
2725 echo $ac_n "(cached) $ac_c" 1>&6
2726 else
2727 cat > conftest.s <<EOF
2728 .section foo_section
2729 .previous
2731 if { ac_try='${CC-cc} -c $CFLAGS conftest.s 1>&5'; { (eval echo configure:2732: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
2732 libc_cv_asm_previous_directive=yes
2733 else
2734 libc_cv_asm_previous_directive=no
2736 rm -f conftest*
2739 echo "$ac_t""$libc_cv_asm_previous_directive" 1>&6
2740 if test $libc_cv_asm_previous_directive = yes; then
2741 cat >> confdefs.h <<\EOF
2742 #define HAVE_ASM_PREVIOUS_DIRECTIVE 1
2745 else
2746 echo $ac_n "checking for .popsection assembler directive""... $ac_c" 1>&6
2747 echo "configure:2748: checking for .popsection assembler directive" >&5
2748 if eval "test \"`echo '$''{'libc_cv_asm_popsection_directive'+set}'`\" = set"; then
2749 echo $ac_n "(cached) $ac_c" 1>&6
2750 else
2751 cat > conftest.s <<EOF
2752 .pushsection foo_section
2753 .popsection
2755 if { ac_try='${CC-cc} -c $CFLAGS conftest.s 1>&5'; { (eval echo configure:2756: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
2756 libc_cv_asm_popsection_directive=yes
2757 else
2758 libc_cv_asm_popsection_directive=no
2760 rm -f conftest*
2763 echo "$ac_t""$libc_cv_asm_popsection_directive" 1>&6
2764 if test $libc_cv_asm_popsection_directive = yes; then
2765 cat >> confdefs.h <<\EOF
2766 #define HAVE_ASM_POPSECTION_DIRECTIVE 1
2771 echo $ac_n "checking for .protected and .hidden assembler directive""... $ac_c" 1>&6
2772 echo "configure:2773: checking for .protected and .hidden assembler directive" >&5
2773 if eval "test \"`echo '$''{'libc_cv_asm_protected_directive'+set}'`\" = set"; then
2774 echo $ac_n "(cached) $ac_c" 1>&6
2775 else
2776 cat > conftest.s <<EOF
2777 .protected foo
2778 foo:
2779 .hidden bar
2780 bar:
2782 if { ac_try='${CC-cc} -c $CFLAGS conftest.s 1>&5'; { (eval echo configure:2783: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
2783 libc_cv_asm_protected_directive=yes
2784 else
2785 libc_cv_asm_protected_directive=no
2787 rm -f conftest*
2790 echo "$ac_t""$libc_cv_asm_protected_directive" 1>&6
2792 cat >> confdefs.h <<\EOF
2793 #define HAVE_PROTECTED 1
2797 echo $ac_n "checking for -z nodelete option""... $ac_c" 1>&6
2798 echo "configure:2799: checking for -z nodelete option" >&5
2799 if eval "test \"`echo '$''{'libc_cv_z_nodelete'+set}'`\" = set"; then
2800 echo $ac_n "(cached) $ac_c" 1>&6
2801 else
2802 cat > conftest.c <<EOF
2803 int _start (void) { return 42; }
2805 if { ac_try='${CC-cc} -shared -o conftest.so conftest.c
2806 -nostartfiles -nostdlib
2807 -Wl,--enable-new-dtags,-z,nodelete 1>&5'; { (eval echo configure:2808: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }
2808 then
2809 libc_cv_z_nodelete=yes
2810 else
2811 libc_cv_z_nodelete=no
2813 rm -f conftest*
2816 echo "$ac_t""$libc_cv_z_nodelete" 1>&6
2819 echo $ac_n "checking for -z nodlopen option""... $ac_c" 1>&6
2820 echo "configure:2821: checking for -z nodlopen option" >&5
2821 if eval "test \"`echo '$''{'libc_cv_z_nodlopen'+set}'`\" = set"; then
2822 echo $ac_n "(cached) $ac_c" 1>&6
2823 else
2824 cat > conftest.c <<EOF
2825 int _start (void) { return 42; }
2827 if { ac_try='${CC-cc} -shared -o conftest.so conftest.c
2828 -nostartfiles -nostdlib
2829 -Wl,--enable-new-dtags,-z,nodlopen 1>&5'; { (eval echo configure:2830: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }
2830 then
2831 libc_cv_z_nodlopen=yes
2832 else
2833 libc_cv_z_nodlopen=no
2835 rm -f conftest*
2838 echo "$ac_t""$libc_cv_z_nodlopen" 1>&6
2841 echo $ac_n "checking for -z initfirst option""... $ac_c" 1>&6
2842 echo "configure:2843: checking for -z initfirst option" >&5
2843 if eval "test \"`echo '$''{'libc_cv_z_initfirst'+set}'`\" = set"; then
2844 echo $ac_n "(cached) $ac_c" 1>&6
2845 else
2846 cat > conftest.c <<EOF
2847 int _start (void) { return 42; }
2849 if { ac_try='${CC-cc} -shared -o conftest.so conftest.c
2850 -nostartfiles -nostdlib
2851 -Wl,--enable-new-dtags,-z,initfirst 1>&5'; { (eval echo configure:2852: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }
2852 then
2853 libc_cv_z_initfirst=yes
2854 else
2855 libc_cv_z_initfirst=no
2857 rm -f conftest*
2860 echo "$ac_t""$libc_cv_z_initfirst" 1>&6
2863 echo $ac_n "checking for -Bgroup option""... $ac_c" 1>&6
2864 echo "configure:2865: checking for -Bgroup option" >&5
2865 if eval "test \"`echo '$''{'libc_cv_Bgroup'+set}'`\" = set"; then
2866 echo $ac_n "(cached) $ac_c" 1>&6
2867 else
2868 cat > conftest.c <<EOF
2869 int _start (void) { return 42; }
2871 if { ac_try='${CC-cc} -shared -o conftest.so conftest.c -Wl,-Bgroup -nostdlib 1>&5'; { (eval echo configure:2872: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }
2872 then
2873 libc_cv_Bgroup=yes
2874 else
2875 libc_cv_Bgroup=no
2877 rm -f conftest*
2880 echo "$ac_t""$libc_cv_Bgroup" 1>&6
2883 echo $ac_n "checking for -z combreloc""... $ac_c" 1>&6
2884 echo "configure:2885: checking for -z combreloc" >&5
2885 if eval "test \"`echo '$''{'libc_cv_z_combreloc'+set}'`\" = set"; then
2886 echo $ac_n "(cached) $ac_c" 1>&6
2887 else
2888 cat > conftest.c <<EOF
2889 extern int bar (void);
2890 int foo (void) { return bar (); }
2892 if { ac_try='${CC-cc} -shared -o conftest.so conftest.c
2893 -nostdlib -nostartfiles
2894 -Wl,-z,combreloc 1>&5'; { (eval echo configure:2895: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }
2895 then
2896 if readelf -S conftest.so | grep '\.rel\(a\|\)\.dyn' > /dev/null; then
2897 libc_cv_z_combreloc=yes
2898 else
2899 libc_cv_z_combreloc=no
2901 else
2902 libc_cv_z_combreloc=no
2904 rm -f conftest*
2907 echo "$ac_t""$libc_cv_z_combreloc" 1>&6
2908 if test "$libc_cv_z_combreloc" = yes; then
2909 cat >> confdefs.h <<\EOF
2910 #define HAVE_Z_COMBRELOC 1
2917 if test $elf != yes; then
2918 echo $ac_n "checking for .init and .fini sections""... $ac_c" 1>&6
2919 echo "configure:2920: checking for .init and .fini sections" >&5
2920 if eval "test \"`echo '$''{'libc_cv_have_initfini'+set}'`\" = set"; then
2921 echo $ac_n "(cached) $ac_c" 1>&6
2922 else
2923 cat > conftest.$ac_ext <<EOF
2924 #line 2925 "configure"
2925 #include "confdefs.h"
2927 int main() {
2928 asm (".section .init");
2929 asm (".section .fini");
2930 asm ("${libc_cv_dot_text}");
2931 ; return 0; }
2933 if { (eval echo configure:2934: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2934 rm -rf conftest*
2935 libc_cv_have_initfini=yes
2936 else
2937 echo "configure: failed program was:" >&5
2938 cat conftest.$ac_ext >&5
2939 rm -rf conftest*
2940 libc_cv_have_initfini=no
2942 rm -f conftest*
2945 echo "$ac_t""$libc_cv_have_initfini" 1>&6
2946 if test $libc_cv_have_initfini = yes; then
2947 cat >> confdefs.h <<\EOF
2948 #define HAVE_INITFINI 1
2954 if test $elf = yes -a $gnu_ld = yes; then
2955 echo $ac_n "checking whether cc puts quotes around section names""... $ac_c" 1>&6
2956 echo "configure:2957: checking whether cc puts quotes around section names" >&5
2957 if eval "test \"`echo '$''{'libc_cv_have_section_quotes'+set}'`\" = set"; then
2958 echo $ac_n "(cached) $ac_c" 1>&6
2959 else
2960 cat > conftest.c <<EOF
2961 static const int foo
2962 __attribute__ ((section ("bar"))) = 1;
2964 if ${CC-cc} -S conftest.c -o conftest.s; then
2965 if grep '\.section.*"bar"' conftest.s >/dev/null; then
2966 libc_cv_have_section_quotes=yes
2967 else
2968 libc_cv_have_section_quotes=no
2970 else
2971 libc_cv_have_section_quotes=unknown
2973 rm -f conftest.cs
2977 echo "$ac_t""$libc_cv_have_section_quotes" 1>&6
2978 if test $libc_cv_have_section_quotes = yes; then
2979 cat >> confdefs.h <<\EOF
2980 #define HAVE_SECTION_QUOTES 1
2988 if test $elf = yes; then
2989 libc_cv_asm_underscores=no
2990 else
2991 if test $ac_cv_prog_cc_works = yes; then
2992 echo $ac_n "checking for _ prefix on C symbol names""... $ac_c" 1>&6
2993 echo "configure:2994: checking for _ prefix on C symbol names" >&5
2994 if eval "test \"`echo '$''{'libc_cv_asm_underscores'+set}'`\" = set"; then
2995 echo $ac_n "(cached) $ac_c" 1>&6
2996 else
2997 cat > conftest.$ac_ext <<EOF
2998 #line 2999 "configure"
2999 #include "confdefs.h"
3000 asm ("_glibc_foobar:");
3001 int main() {
3002 glibc_foobar ();
3003 ; return 0; }
3005 if { (eval echo configure:3006: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3006 rm -rf conftest*
3007 libc_cv_asm_underscores=yes
3008 else
3009 echo "configure: failed program was:" >&5
3010 cat conftest.$ac_ext >&5
3011 rm -rf conftest*
3012 libc_cv_asm_underscores=no
3014 rm -f conftest*
3017 echo "$ac_t""$libc_cv_asm_underscores" 1>&6
3018 else
3019 echo $ac_n "checking for _ prefix on C symbol names""... $ac_c" 1>&6
3020 echo "configure:3021: checking for _ prefix on C symbol names" >&5
3021 if eval "test \"`echo '$''{'libc_cv_asm_underscores'+set}'`\" = set"; then
3022 echo $ac_n "(cached) $ac_c" 1>&6
3023 else
3024 cat > conftest.$ac_ext <<EOF
3025 #line 3026 "configure"
3026 #include "confdefs.h"
3027 void underscore_test(void) {
3028 return; }
3030 if { (eval echo configure:3031: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3031 if grep _underscore_test conftest* >/dev/null; then
3032 rm -f conftest*
3033 libc_cv_asm_underscores=yes
3034 else
3035 rm -f conftest*
3036 libc_cv_asm_underscores=no
3038 else
3039 echo "configure: failed program was:" >&5
3040 cat conftest.$ac_ext >&5
3041 rm -f conftest*
3042 libc_cv_asm_underscores=no
3044 rm -f conftest*
3047 echo "$ac_t""$libc_cv_asm_underscores" 1>&6
3050 if test $libc_cv_asm_underscores = no; then
3051 cat >> confdefs.h <<\EOF
3052 #define NO_UNDERSCORES 1
3057 if test $elf = yes; then
3058 libc_cv_weak_symbols=yes
3061 echo $ac_n "checking for assembler .weak directive""... $ac_c" 1>&6
3062 echo "configure:3063: checking for assembler .weak directive" >&5
3063 if eval "test \"`echo '$''{'libc_cv_asm_weak_directive'+set}'`\" = set"; then
3064 echo $ac_n "(cached) $ac_c" 1>&6
3065 else
3066 cat > conftest.s <<EOF
3067 ${libc_cv_dot_text}
3068 ${libc_cv_asm_global_directive} foo
3069 foo:
3070 .weak foo
3071 .weak bar; bar = foo
3073 if ${CC-cc} $CFLAGS -c conftest.s 2>/dev/null; then
3074 libc_cv_asm_weak_directive=yes
3075 else
3076 libc_cv_asm_weak_directive=no
3078 rm -f conftest*
3081 echo "$ac_t""$libc_cv_asm_weak_directive" 1>&6
3083 if test $libc_cv_asm_weak_directive = no; then
3084 echo $ac_n "checking for assembler .weakext directive""... $ac_c" 1>&6
3085 echo "configure:3086: checking for assembler .weakext directive" >&5
3086 if eval "test \"`echo '$''{'libc_cv_asm_weakext_directive'+set}'`\" = set"; then
3087 echo $ac_n "(cached) $ac_c" 1>&6
3088 else
3089 cat > conftest.s <<EOF
3090 ${libc_cv_dot_text}
3091 ${libc_cv_asm_global_directive} foo
3092 foo:
3093 .weakext bar foo
3094 .weakext baz
3095 ${libc_cv_asm_global_directive} baz
3096 baz:
3098 if ${CC-cc} $CFLAGS -c conftest.s 2>/dev/null; then
3099 libc_cv_asm_weakext_directive=yes
3100 else
3101 libc_cv_asm_weakext_directive=no
3103 rm -f conftest*
3106 echo "$ac_t""$libc_cv_asm_weakext_directive" 1>&6
3108 fi # no .weak
3110 if test $libc_cv_asm_weak_directive = yes; then
3111 cat >> confdefs.h <<\EOF
3112 #define HAVE_ASM_WEAK_DIRECTIVE 1
3115 elif test $libc_cv_asm_weakext_directive = yes; then
3116 cat >> confdefs.h <<\EOF
3117 #define HAVE_ASM_WEAKEXT_DIRECTIVE 1
3122 case "${host_cpu}-${host_os}" in
3123 cris*)
3124 libc_cv_asm_line_sep='@'
3125 cat >> confdefs.h <<EOF
3126 #define ASM_LINE_SEP $libc_cv_asm_line_sep
3130 hppa*linux*)
3131 echo $ac_n "checking for assembler line separator""... $ac_c" 1>&6
3132 echo "configure:3133: checking for assembler line separator" >&5
3133 if eval "test \"`echo '$''{'libc_cv_asm_line_sep'+set}'`\" = set"; then
3134 echo $ac_n "(cached) $ac_c" 1>&6
3135 else
3136 cat > conftest.s <<EOF
3137 nop ; is_old_puffin
3139 if { ac_try='${CC-cc} -c $CFLAGS conftest.s 1>&5'; { (eval echo configure:3140: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
3140 libc_cv_asm_line_sep='!'
3141 else
3142 if test -z "$enable_hacker_mode"; then
3143 echo "*** You need a newer assembler to compile glibc"
3144 rm -f conftest*
3145 exit 1
3147 libc_cv_asm_line_sep=';'
3149 rm -f conftest*
3152 echo "$ac_t""$libc_cv_asm_line_sep" 1>&6
3153 cat >> confdefs.h <<EOF
3154 #define ASM_LINE_SEP $libc_cv_asm_line_sep
3158 esac
3160 echo $ac_n "checking for ld --no-whole-archive""... $ac_c" 1>&6
3161 echo "configure:3162: checking for ld --no-whole-archive" >&5
3162 if eval "test \"`echo '$''{'libc_cv_ld_no_whole_archive'+set}'`\" = set"; then
3163 echo $ac_n "(cached) $ac_c" 1>&6
3164 else
3165 cat > conftest.c <<\EOF
3166 _start () {}
3167 int __eh_pc;
3168 __throw () {}
3170 if { ac_try='${CC-cc} $CFLAGS
3171 -nostdlib -nostartfiles -Wl,--no-whole-archive
3172 -o conftest conftest.c 1>&5'; { (eval echo configure:3173: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
3173 libc_cv_ld_no_whole_archive=yes
3174 else
3175 libc_cv_ld_no_whole_archive=no
3177 rm -f conftest*
3180 echo "$ac_t""$libc_cv_ld_no_whole_archive" 1>&6
3181 if test $libc_cv_ld_no_whole_archive = yes; then
3182 no_whole_archive=-Wl,--no-whole-archive
3185 echo $ac_n "checking for gcc -fexceptions""... $ac_c" 1>&6
3186 echo "configure:3187: checking for gcc -fexceptions" >&5
3187 if eval "test \"`echo '$''{'libc_cv_gcc_exceptions'+set}'`\" = set"; then
3188 echo $ac_n "(cached) $ac_c" 1>&6
3189 else
3190 cat > conftest.c <<\EOF
3191 _start () {}
3192 int __eh_pc;
3193 __throw () {}
3195 if { ac_try='${CC-cc} $CFLAGS
3196 -nostdlib -nostartfiles -fexceptions
3197 -o conftest conftest.c 1>&5'; { (eval echo configure:3198: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
3198 libc_cv_gcc_exceptions=yes
3199 else
3200 libc_cv_gcc_exceptions=no
3202 rm -f conftest*
3205 echo "$ac_t""$libc_cv_gcc_exceptions" 1>&6
3206 if test $libc_cv_gcc_exceptions = yes; then
3207 exceptions=-fexceptions
3210 if test "$base_machine" = alpha ; then
3211 echo $ac_n "checking for function ..ng prefix""... $ac_c" 1>&6
3212 echo "configure:3213: checking for function ..ng prefix" >&5
3213 if eval "test \"`echo '$''{'libc_cv_gcc_alpha_ng_prefix'+set}'`\" = set"; then
3214 echo $ac_n "(cached) $ac_c" 1>&6
3215 else
3216 cat > conftest.c <<\EOF
3217 foo () { }
3219 if { ac_try='${CC-cc} -S conftest.c -o - | fgrep "\$foo..ng" > /dev/null'; { (eval echo configure:3220: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; };
3220 then
3221 libc_cv_gcc_alpha_ng_prefix=yes
3222 else
3223 libc_cv_gcc_alpha_ng_prefix=no
3225 rm -f conftest*
3228 echo "$ac_t""$libc_cv_gcc_alpha_ng_prefix" 1>&6
3229 if test $libc_cv_gcc_alpha_ng_prefix = yes ; then
3230 cat >> confdefs.h <<\EOF
3231 #define ASM_ALPHA_NG_SYMBOL_PREFIX "$"
3234 else
3235 cat >> confdefs.h <<\EOF
3236 #define ASM_ALPHA_NG_SYMBOL_PREFIX ""
3242 if test "$host_cpu" = powerpc ; then
3243 # Check for a bug present in at least versions 2.8.x of GCC
3244 # and versions 1.0.x of EGCS.
3245 echo $ac_n "checking whether clobbering cr0 causes problems""... $ac_c" 1>&6
3246 echo "configure:3247: checking whether clobbering cr0 causes problems" >&5
3247 if eval "test \"`echo '$''{'libc_cv_c_asmcr0_bug'+set}'`\" = set"; then
3248 echo $ac_n "(cached) $ac_c" 1>&6
3249 else
3250 cat > conftest.$ac_ext <<EOF
3251 #line 3252 "configure"
3252 #include "confdefs.h"
3253 int tester(int x) { asm ("" : : : "cc"); return x & 123; }
3254 int main() {
3256 ; return 0; }
3258 if { (eval echo configure:3259: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3259 rm -rf conftest*
3260 libc_cv_c_asmcr0_bug='no'
3261 else
3262 echo "configure: failed program was:" >&5
3263 cat conftest.$ac_ext >&5
3264 rm -rf conftest*
3265 libc_cv_c_asmcr0_bug='yes'
3267 rm -f conftest*
3270 echo "$ac_t""$libc_cv_c_asmcr0_bug" 1>&6
3271 if test "$libc_cv_c_asmcr0_bug" != 'no'; then
3272 cat >> confdefs.h <<\EOF
3273 #define BROKEN_PPC_ASM_CR0 1
3279 echo $ac_n "checking for DWARF2 unwind info support""... $ac_c" 1>&6
3280 echo "configure:3281: checking for DWARF2 unwind info support" >&5
3281 if eval "test \"`echo '$''{'libc_cv_gcc_dwarf2_unwind_info'+set}'`\" = set"; then
3282 echo $ac_n "(cached) $ac_c" 1>&6
3283 else
3284 cat > conftest.c <<EOF
3285 #line 3286 "configure"
3286 static char __EH_FRAME_BEGIN__;
3287 _start ()
3289 #ifdef CHECK__register_frame
3290 __register_frame (__EH_FRAME_BEGIN__);
3291 __deregister_frame (__EH_FRAME_BEGIN__);
3292 #endif
3293 #ifdef CHECK__register_frame_info
3294 __register_frame_info (__EH_FRAME_BEGIN__);
3295 __deregister_frame_info (__EH_FRAME_BEGIN__);
3296 #endif
3298 int __eh_pc;
3299 __throw () {}
3300 /* FIXME: this is fragile. */
3301 malloc () {}
3302 strcmp () {}
3303 strlen () {}
3304 memcpy () {}
3305 memset () {}
3306 free () {}
3307 abort () {}
3308 __bzero () {}
3310 if { ac_try='${CC-cc} $CFLAGS -DCHECK__register_frame_info
3311 -nostdlib -nostartfiles
3312 -o conftest conftest.c -lgcc >&5'; { (eval echo configure:3313: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
3313 libc_cv_gcc_dwarf2_unwind_info=static
3314 else
3315 libc_cv_gcc_dwarf2_unwind_info=no
3317 if test $libc_cv_gcc_dwarf2_unwind_info = no; then
3318 if { ac_try='${CC-cc} $CFLAGS -DCHECK__register_frame
3319 -nostdlib -nostartfiles
3320 -o conftest conftest.c -lgcc >&5'; { (eval echo configure:3321: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
3321 libc_cv_gcc_dwarf2_unwind_info=yes
3322 else
3323 libc_cv_gcc_dwarf2_unwind_info=no
3326 rm -f conftest*
3329 echo "$ac_t""$libc_cv_gcc_dwarf2_unwind_info" 1>&6
3330 case $libc_cv_gcc_dwarf2_unwind_info in
3331 yes)
3332 cat >> confdefs.h <<\EOF
3333 #define HAVE_DWARF2_UNWIND_INFO 1
3337 static)
3338 cat >> confdefs.h <<\EOF
3339 #define HAVE_DWARF2_UNWIND_INFO 1
3342 cat >> confdefs.h <<\EOF
3343 #define HAVE_DWARF2_UNWIND_INFO_STATIC 1
3347 esac
3349 echo $ac_n "checking for __builtin_expect""... $ac_c" 1>&6
3350 echo "configure:3351: checking for __builtin_expect" >&5
3351 if eval "test \"`echo '$''{'libc_cv_gcc_builtin_expect'+set}'`\" = set"; then
3352 echo $ac_n "(cached) $ac_c" 1>&6
3353 else
3354 cat > conftest.c <<EOF
3355 #line 3356 "configure"
3356 int foo (int a)
3358 a = __builtin_expect (a, 10);
3359 return a == 10 ? 0 : 1;
3362 if { ac_try='${CC-cc} $CFLAGS -nostdlib -nostartfiles
3363 -o conftest conftest.c -lgcc >&5'; { (eval echo configure:3364: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
3364 libc_cv_gcc_builtin_expect=yes
3365 else
3366 libc_cv_gcc_builtin_expect=no
3368 rm -f conftest*
3371 echo "$ac_t""$libc_cv_gcc_builtin_expect" 1>&6
3372 if test "$libc_cv_gcc_builtin_expect" = yes; then
3373 cat >> confdefs.h <<\EOF
3374 #define HAVE_BUILTIN_EXPECT 1
3379 echo $ac_n "checking for local label subtraction""... $ac_c" 1>&6
3380 echo "configure:3381: checking for local label subtraction" >&5
3381 if eval "test \"`echo '$''{'libc_cv_gcc_subtract_local_labels'+set}'`\" = set"; then
3382 echo $ac_n "(cached) $ac_c" 1>&6
3383 else
3384 cat > conftest.c <<EOF
3385 #line 3386 "configure"
3386 int foo (int a)
3388 static const int ar[] = { &&l1 - &&l1, &&l2 - &&l1 };
3389 void *p = &&l1 + ar[a];
3390 goto *p;
3392 return 1;
3394 return 2;
3397 if { ac_try='${CC-cc} $CFLAGS -nostdlib -nostartfiles
3398 -o conftest conftest.c -lgcc >&5'; { (eval echo configure:3399: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
3399 libc_cv_gcc_subtract_local_labels=yes
3400 else
3401 libc_cv_gcc_subtract_local_labels=no
3403 rm -f conftest*
3406 echo "$ac_t""$libc_cv_gcc_subtract_local_labels" 1>&6
3407 if test "$libc_cv_gcc_subtract_local_labels" = yes; then
3408 cat >> confdefs.h <<\EOF
3409 #define HAVE_SUBTRACT_LOCAL_LABELS 1
3414 echo $ac_n "checking for libgd""... $ac_c" 1>&6
3415 echo "configure:3416: checking for libgd" >&5
3416 if test "$with_gd" != "no"; then
3417 old_CFLAGS="$CFLAGS"
3418 CFLAGS="$CFLAGS $libgd_include"
3419 old_LDFLAGS="$LDFLAGS"
3420 LDFLAGS="$LDFLAGS $libgd_ldflags"
3421 old_LIBS="$LIBS"
3422 LIBS="$LIBS -lgd -lpng -lz -lm"
3423 cat > conftest.$ac_ext <<EOF
3424 #line 3425 "configure"
3425 #include "confdefs.h"
3426 #include <gd.h>
3427 int main() {
3428 gdImagePng (0, 0)
3429 ; return 0; }
3431 if { (eval echo configure:3432: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3432 rm -rf conftest*
3433 LIBGD=yes
3434 else
3435 echo "configure: failed program was:" >&5
3436 cat conftest.$ac_ext >&5
3437 rm -rf conftest*
3438 LIBGD=no
3440 rm -f conftest*
3441 CFLAGS="$old_CFLAGS"
3442 LDFLAGS="$old_LDFLAGS"
3443 LIBS="$old_LIBS"
3444 else
3445 LIBGD=no
3447 echo "$ac_t""$LIBGD" 1>&6
3450 echo $ac_n "checking size of long double""... $ac_c" 1>&6
3451 echo "configure:3452: checking size of long double" >&5
3452 if eval "test \"`echo '$''{'ac_cv_sizeof_long_double'+set}'`\" = set"; then
3453 echo $ac_n "(cached) $ac_c" 1>&6
3454 else
3455 if test "$cross_compiling" = yes; then
3456 ac_cv_sizeof_long_double=0
3457 else
3458 cat > conftest.$ac_ext <<EOF
3459 #line 3460 "configure"
3460 #include "confdefs.h"
3461 #include <stdio.h>
3462 int main()
3464 FILE *f=fopen("conftestval", "w");
3465 if (!f) return(1);
3466 fprintf(f, "%d\n", sizeof(long double));
3467 return(0);
3470 if { (eval echo configure:3471: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3471 then
3472 ac_cv_sizeof_long_double=`cat conftestval`
3473 else
3474 echo "configure: failed program was:" >&5
3475 cat conftest.$ac_ext >&5
3476 rm -fr conftest*
3477 ac_cv_sizeof_long_double=0
3479 rm -fr conftest*
3483 echo "$ac_t""$ac_cv_sizeof_long_double" 1>&6
3484 cat >> confdefs.h <<EOF
3485 #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
3489 sizeof_long_double=$ac_cv_sizeof_long_double
3492 ### End of automated tests.
3493 ### Now run sysdeps configure fragments.
3495 # sysdeps configure fragments may set these with files to be linked below.
3496 libc_link_dests=
3497 libc_link_sources=
3499 # They also can set these variables.
3500 use_ldconfig=no
3501 ldd_rewrite_script=no
3502 libc_cv_sysconfdir=$sysconfdir
3503 libc_cv_gcc_unwind_find_fde=no
3505 # Iterate over all the sysdep directories we will use, running their
3506 # configure fragments, and looking for a uname implementation.
3507 uname=
3508 for dir in $sysnames; do
3509 case $dir in
3510 /*) dest=$dir ;;
3511 *) dest=$srcdir/$dir ;;
3512 esac
3513 if test -r $dest/configure; then
3514 echo "$ac_t""running configure fragment for $dest" 1>&6
3515 . $dest/configure
3518 if test -z "$uname"; then
3519 if test -r $dest/uname.c ||
3520 test -r $dest/uname.S ||
3521 { test -r $dest/syscalls.list &&
3522 grep '^uname[ ]' $dest/syscalls.list >/dev/null; }; then
3523 uname=$dir
3526 done
3528 if test x$libc_cv_gcc_unwind_find_fde = xyes; then
3529 cat >> confdefs.h <<\EOF
3530 #define EXPORT_UNWIND_FIND_FDE 1
3538 # If we will use the generic uname implementation, we must figure out what
3539 # it will say by examining the system, and write the results in config-name.h.
3540 if test "$uname" = "sysdeps/generic"; then
3542 uname_sysname=`echo $config_os | sed 's/[0-9.]*$//'`
3543 if test $uname_sysname != $config_os; then
3544 config_release=`echo $config_os | sed s/$uname_sysname//`
3547 echo $ac_n "checking OS release for uname""... $ac_c" 1>&6
3548 echo "configure:3549: checking OS release for uname" >&5
3549 if eval "test \"`echo '$''{'libc_cv_uname_release'+set}'`\" = set"; then
3550 echo $ac_n "(cached) $ac_c" 1>&6
3551 else
3552 kernel_release=`echo "$kernel_id" | sed 's/^[^0-9.]*\([0-9.]*\).*$/\1/'`
3553 if test x`echo "$config_release" | sed "s/^$kernel_release//"` \
3554 != x$config_release; then
3555 # The configuration release is a substring of the kernel release.
3556 libc_cv_uname_release=$kernel_release
3557 elif test x$config_release != x; then
3558 libc_cv_uname_release=$config_release
3559 elif test x$kernel_release != x; then
3560 libc_cv_uname_release=$kernel_release
3561 else
3562 libc_cv_uname_release=unknown
3566 echo "$ac_t""$libc_cv_uname_release" 1>&6
3567 uname_release="$libc_cv_uname_release"
3569 echo $ac_n "checking OS version for uname""... $ac_c" 1>&6
3570 echo "configure:3571: checking OS version for uname" >&5
3571 if eval "test \"`echo '$''{'libc_cv_uname_version'+set}'`\" = set"; then
3572 echo $ac_n "(cached) $ac_c" 1>&6
3573 else
3574 kernel_version=`echo "$kernel_id" | sed 's/^[^#]*#\([0-9]*\).*$/\1/'`
3575 if test -n "$kernel_version"; then
3576 libc_cv_uname_version="$kernel_version"
3577 else
3578 libc_cv_uname_version=unknown
3582 echo "$ac_t""$libc_cv_uname_version" 1>&6
3583 uname_version="$libc_cv_uname_version"
3585 config_uname=config-name.h:config-name.in
3586 else
3587 # For non-generic uname, we don't need to create config-name.h at all.
3588 config_uname=
3591 echo $ac_n "checking stdio selection""... $ac_c" 1>&6
3592 echo "configure:3593: checking stdio selection" >&5
3594 case $stdio in
3595 libio) cat >> confdefs.h <<\EOF
3596 #define USE_IN_LIBIO 1
3599 default) stdio=stdio ;;
3600 esac
3601 echo "$ac_t""$stdio" 1>&6
3603 # Test for old glibc 2.0.x headers so that they can be removed properly
3604 # Search only in includedir.
3605 echo $ac_n "checking for old glibc 2.0.x headers""... $ac_c" 1>&6
3606 echo "configure:3607: checking for old glibc 2.0.x headers" >&5
3607 if eval test -f "${includedir}/elfclass.h" -a -f "${includedir}/fcntlbits.h"
3608 then
3609 old_glibc_headers=yes
3610 else
3611 old_glibc_headers=no
3613 echo "$ac_t""$old_glibc_headers" 1>&6
3614 if test ${old_glibc_headers} = yes; then
3615 echo "configure: warning: *** During \"make install\" old headers from glibc 2.0.x will" 1>&2
3616 echo "configure: warning: *** be removed." 1>&2
3629 if test $gnu_ld = yes; then
3630 cat >> confdefs.h <<\EOF
3631 #define HAVE_GNU_LD 1
3635 if test $gnu_as = yes; then
3636 cat >> confdefs.h <<\EOF
3637 #define HAVE_GNU_AS 1
3641 if test $elf = yes; then
3642 cat >> confdefs.h <<\EOF
3643 #define HAVE_ELF 1
3647 if test $xcoff = yes; then
3648 cat >> confdefs.h <<\EOF
3649 #define HAVE_XCOFF 1
3656 if test $shared = default; then
3657 if test $gnu_ld = yes; then
3658 shared=$elf
3659 else
3660 # For now we do not assume shared libs are available. In future more
3661 # tests might become available.
3662 shared=no
3666 echo $ac_n "checking whether -fPIC is default""... $ac_c" 1>&6
3667 echo "configure:3668: checking whether -fPIC is default" >&5
3668 if eval "test \"`echo '$''{'pic_default'+set}'`\" = set"; then
3669 echo $ac_n "(cached) $ac_c" 1>&6
3670 else
3671 pic_default=yes
3672 cat > conftest.c <<EOF
3673 #if defined __PIC__ || defined __pic__ || defined PIC || defined pic
3674 # error PIC is default.
3675 #endif
3677 if eval "${CC-cc} -S conftest.c 2>&5 1>&5"; then
3678 pic_default=no
3680 rm -f conftest.*
3683 echo "$ac_t""$pic_default" 1>&6
3694 case "$add_ons" in
3695 *door*) linux_doors=yes ;;
3696 *) linux_doors=no ;;
3697 esac
3700 if test "`(cd $srcdir; pwd)`" = "`pwd`"; then
3701 config_makefile=
3702 else
3703 config_makefile=Makefile
3706 VERSION=`sed -n -e 's/^#define VERSION "\([^"]*\)"/\1/p' < $srcdir/version.h`
3707 RELEASE=`sed -n -e 's/^#define RELEASE "\([^"]*\)"/\1/p' < $srcdir/version.h`
3711 trap '' 1 2 15
3712 cat > confcache <<\EOF
3713 # This file is a shell script that caches the results of configure
3714 # tests run on this system so they can be shared between configure
3715 # scripts and configure runs. It is not useful on other systems.
3716 # If it contains results you don't want to keep, you may remove or edit it.
3718 # By default, configure uses ./config.cache as the cache file,
3719 # creating it if it does not exist already. You can give configure
3720 # the --cache-file=FILE option to use a different cache file; that is
3721 # what configure does when it calls configure scripts in
3722 # subdirectories, so they share the cache.
3723 # Giving --cache-file=/dev/null disables caching, for debugging configure.
3724 # config.status only pays attention to the cache file if you give it the
3725 # --recheck option to rerun configure.
3728 # The following way of writing the cache mishandles newlines in values,
3729 # but we know of no workaround that is simple, portable, and efficient.
3730 # So, don't put newlines in cache variables' values.
3731 # Ultrix sh set writes to stderr and can't be redirected directly,
3732 # and sets the high bit in the cache file unless we assign to the vars.
3733 (set) 2>&1 |
3734 case `(ac_space=' '; set | grep ac_space) 2>&1` in
3735 *ac_space=\ *)
3736 # `set' does not quote correctly, so add quotes (double-quote substitution
3737 # turns \\\\ into \\, and sed turns \\ into \).
3738 sed -n \
3739 -e "s/'/'\\\\''/g" \
3740 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
3743 # `set' quotes correctly as required by POSIX, so do not add quotes.
3744 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
3746 esac >> confcache
3747 if cmp -s $cache_file confcache; then
3749 else
3750 if test -w $cache_file; then
3751 echo "updating cache $cache_file"
3752 cat confcache > $cache_file
3753 else
3754 echo "not updating unwritable cache $cache_file"
3757 rm -f confcache
3759 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
3761 test "x$prefix" = xNONE && prefix=$ac_default_prefix
3762 # Let make expand exec_prefix.
3763 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3765 # Any assignment to VPATH causes Sun make to only execute
3766 # the first set of double-colon rules, so remove it if not needed.
3767 # If there is a colon in the path, we need to keep it.
3768 if test "x$srcdir" = x.; then
3769 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
3772 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
3774 DEFS=-DHAVE_CONFIG_H
3776 # Without the "./", some shells look in PATH for config.status.
3777 : ${CONFIG_STATUS=./config.status}
3779 echo creating $CONFIG_STATUS
3780 rm -f $CONFIG_STATUS
3781 cat > $CONFIG_STATUS <<EOF
3782 #! /bin/sh
3783 # Generated automatically by configure.
3784 # Run this file to recreate the current configuration.
3785 # This directory was configured as follows,
3786 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
3788 # $0 $ac_configure_args
3790 # Compiler output produced by configure, useful for debugging
3791 # configure, is in ./config.log if it exists.
3793 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
3794 for ac_option
3796 case "\$ac_option" in
3797 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3798 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
3799 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
3800 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
3801 echo "$CONFIG_STATUS generated by autoconf version 2.13"
3802 exit 0 ;;
3803 -help | --help | --hel | --he | --h)
3804 echo "\$ac_cs_usage"; exit 0 ;;
3805 *) echo "\$ac_cs_usage"; exit 1 ;;
3806 esac
3807 done
3809 ac_given_srcdir=$srcdir
3810 ac_given_INSTALL="$INSTALL"
3812 trap 'rm -fr `echo "config.make glibcbug ${config_makefile} ${config_uname} config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
3814 cat >> $CONFIG_STATUS <<EOF
3816 # Protect against being on the right side of a sed subst in config.status.
3817 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
3818 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
3819 $ac_vpsub
3820 $extrasub
3821 s%@SHELL@%$SHELL%g
3822 s%@CFLAGS@%$CFLAGS%g
3823 s%@CPPFLAGS@%$CPPFLAGS%g
3824 s%@CXXFLAGS@%$CXXFLAGS%g
3825 s%@FFLAGS@%$FFLAGS%g
3826 s%@DEFS@%$DEFS%g
3827 s%@LDFLAGS@%$LDFLAGS%g
3828 s%@LIBS@%$LIBS%g
3829 s%@exec_prefix@%$exec_prefix%g
3830 s%@prefix@%$prefix%g
3831 s%@program_transform_name@%$program_transform_name%g
3832 s%@bindir@%$bindir%g
3833 s%@sbindir@%$sbindir%g
3834 s%@libexecdir@%$libexecdir%g
3835 s%@datadir@%$datadir%g
3836 s%@sysconfdir@%$sysconfdir%g
3837 s%@sharedstatedir@%$sharedstatedir%g
3838 s%@localstatedir@%$localstatedir%g
3839 s%@libdir@%$libdir%g
3840 s%@includedir@%$includedir%g
3841 s%@oldincludedir@%$oldincludedir%g
3842 s%@infodir@%$infodir%g
3843 s%@mandir@%$mandir%g
3844 s%@with_fp@%$with_fp%g
3845 s%@with_cvs@%$with_cvs%g
3846 s%@oldest_abi@%$oldest_abi%g
3847 s%@subdirs@%$subdirs%g
3848 s%@force_install@%$force_install%g
3849 s%@all_warnings@%$all_warnings%g
3850 s%@host@%$host%g
3851 s%@host_alias@%$host_alias%g
3852 s%@host_cpu@%$host_cpu%g
3853 s%@host_vendor@%$host_vendor%g
3854 s%@host_os@%$host_os%g
3855 s%@base_machine@%$base_machine%g
3856 s%@sysnames@%$sysnames%g
3857 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
3858 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
3859 s%@INSTALL_DATA@%$INSTALL_DATA%g
3860 s%@LN_S@%$LN_S%g
3861 s%@PWD_P@%$PWD_P%g
3862 s%@build@%$build%g
3863 s%@build_alias@%$build_alias%g
3864 s%@build_cpu@%$build_cpu%g
3865 s%@build_vendor@%$build_vendor%g
3866 s%@build_os@%$build_os%g
3867 s%@CC@%$CC%g
3868 s%@MAKE@%$MAKE%g
3869 s%@MSGFMT@%$MSGFMT%g
3870 s%@MAKEINFO@%$MAKEINFO%g
3871 s%@SED@%$SED%g
3872 s%@cross_linkable@%$cross_linkable%g
3873 s%@BUILD_CC@%$BUILD_CC%g
3874 s%@cross_compiling@%$cross_compiling%g
3875 s%@CPP@%$CPP%g
3876 s%@AR@%$AR%g
3877 s%@RANLIB@%$RANLIB%g
3878 s%@MIG@%$MIG%g
3879 s%@CCVERSION@%$CCVERSION%g
3880 s%@SYSINCLUDES@%$SYSINCLUDES%g
3881 s%@libc_cv_gcc_static_libgcc@%$libc_cv_gcc_static_libgcc%g
3882 s%@BASH@%$BASH%g
3883 s%@libc_cv_have_bash2@%$libc_cv_have_bash2%g
3884 s%@KSH@%$KSH%g
3885 s%@libc_cv_have_ksh@%$libc_cv_have_ksh%g
3886 s%@AWK@%$AWK%g
3887 s%@PERL@%$PERL%g
3888 s%@INSTALL_INFO@%$INSTALL_INFO%g
3889 s%@OLD_DEBIAN_INSTALL_INFO@%$OLD_DEBIAN_INSTALL_INFO%g
3890 s%@BISON@%$BISON%g
3891 s%@VERSIONING@%$VERSIONING%g
3892 s%@libc_cv_asm_protected_directive@%$libc_cv_asm_protected_directive%g
3893 s%@libc_cv_z_nodelete@%$libc_cv_z_nodelete%g
3894 s%@libc_cv_z_nodlopen@%$libc_cv_z_nodlopen%g
3895 s%@libc_cv_z_initfirst@%$libc_cv_z_initfirst%g
3896 s%@libc_cv_Bgroup@%$libc_cv_Bgroup%g
3897 s%@libc_cv_z_combreloc@%$libc_cv_z_combreloc%g
3898 s%@libc_cv_have_initfini@%$libc_cv_have_initfini%g
3899 s%@no_whole_archive@%$no_whole_archive%g
3900 s%@exceptions@%$exceptions%g
3901 s%@LIBGD@%$LIBGD%g
3902 s%@sizeof_long_double@%$sizeof_long_double%g
3903 s%@libc_cv_gcc_unwind_find_fde@%$libc_cv_gcc_unwind_find_fde%g
3904 s%@uname_sysname@%$uname_sysname%g
3905 s%@uname_release@%$uname_release%g
3906 s%@uname_version@%$uname_version%g
3907 s%@stdio@%$stdio%g
3908 s%@old_glibc_headers@%$old_glibc_headers%g
3909 s%@libc_cv_slibdir@%$libc_cv_slibdir%g
3910 s%@libc_cv_localedir@%$libc_cv_localedir%g
3911 s%@libc_cv_sysconfdir@%$libc_cv_sysconfdir%g
3912 s%@libc_cv_rootsbindir@%$libc_cv_rootsbindir%g
3913 s%@use_ldconfig@%$use_ldconfig%g
3914 s%@ldd_rewrite_script@%$ldd_rewrite_script%g
3915 s%@gnu_ld@%$gnu_ld%g
3916 s%@gnu_as@%$gnu_as%g
3917 s%@elf@%$elf%g
3918 s%@xcoff@%$xcoff%g
3919 s%@static@%$static%g
3920 s%@shared@%$shared%g
3921 s%@pic_default@%$pic_default%g
3922 s%@profile@%$profile%g
3923 s%@omitfp@%$omitfp%g
3924 s%@bounded@%$bounded%g
3925 s%@static_nss@%$static_nss%g
3926 s%@nopic_initfini@%$nopic_initfini%g
3927 s%@DEFINES@%$DEFINES%g
3928 s%@linux_doors@%$linux_doors%g
3929 s%@VERSION@%$VERSION%g
3930 s%@RELEASE@%$RELEASE%g
3932 CEOF
3935 cat >> $CONFIG_STATUS <<\EOF
3937 # Split the substitutions into bite-sized pieces for seds with
3938 # small command number limits, like on Digital OSF/1 and HP-UX.
3939 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
3940 ac_file=1 # Number of current file.
3941 ac_beg=1 # First line for current file.
3942 ac_end=$ac_max_sed_cmds # Line after last line for current file.
3943 ac_more_lines=:
3944 ac_sed_cmds=""
3945 while $ac_more_lines; do
3946 if test $ac_beg -gt 1; then
3947 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
3948 else
3949 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
3951 if test ! -s conftest.s$ac_file; then
3952 ac_more_lines=false
3953 rm -f conftest.s$ac_file
3954 else
3955 if test -z "$ac_sed_cmds"; then
3956 ac_sed_cmds="sed -f conftest.s$ac_file"
3957 else
3958 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
3960 ac_file=`expr $ac_file + 1`
3961 ac_beg=$ac_end
3962 ac_end=`expr $ac_end + $ac_max_sed_cmds`
3964 done
3965 if test -z "$ac_sed_cmds"; then
3966 ac_sed_cmds=cat
3970 cat >> $CONFIG_STATUS <<EOF
3972 CONFIG_FILES=\${CONFIG_FILES-"config.make glibcbug ${config_makefile} ${config_uname}"}
3974 cat >> $CONFIG_STATUS <<\EOF
3975 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
3976 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3977 case "$ac_file" in
3978 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3979 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3980 *) ac_file_in="${ac_file}.in" ;;
3981 esac
3983 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
3985 # Remove last slash and all that follows it. Not all systems have dirname.
3986 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3987 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3988 # The file is in a subdirectory.
3989 test ! -d "$ac_dir" && mkdir "$ac_dir"
3990 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
3991 # A "../" for each directory in $ac_dir_suffix.
3992 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
3993 else
3994 ac_dir_suffix= ac_dots=
3997 case "$ac_given_srcdir" in
3998 .) srcdir=.
3999 if test -z "$ac_dots"; then top_srcdir=.
4000 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
4001 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
4002 *) # Relative path.
4003 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
4004 top_srcdir="$ac_dots$ac_given_srcdir" ;;
4005 esac
4007 case "$ac_given_INSTALL" in
4008 [/$]*) INSTALL="$ac_given_INSTALL" ;;
4009 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
4010 esac
4012 echo creating "$ac_file"
4013 rm -f "$ac_file"
4014 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
4015 case "$ac_file" in
4016 *Makefile*) ac_comsub="1i\\
4017 # $configure_input" ;;
4018 *) ac_comsub= ;;
4019 esac
4021 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4022 sed -e "$ac_comsub
4023 s%@configure_input@%$configure_input%g
4024 s%@srcdir@%$srcdir%g
4025 s%@top_srcdir@%$top_srcdir%g
4026 s%@INSTALL@%$INSTALL%g
4027 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
4028 fi; done
4029 rm -f conftest.s*
4031 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
4032 # NAME is the cpp macro being defined and VALUE is the value it is being given.
4034 # ac_d sets the value in "#define NAME VALUE" lines.
4035 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
4036 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
4037 ac_dC='\3'
4038 ac_dD='%g'
4039 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
4040 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
4041 ac_uB='\([ ]\)%\1#\2define\3'
4042 ac_uC=' '
4043 ac_uD='\4%g'
4044 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
4045 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
4046 ac_eB='$%\1#\2define\3'
4047 ac_eC=' '
4048 ac_eD='%g'
4050 if test "${CONFIG_HEADERS+set}" != set; then
4052 cat >> $CONFIG_STATUS <<EOF
4053 CONFIG_HEADERS="config.h"
4055 cat >> $CONFIG_STATUS <<\EOF
4057 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
4058 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4059 case "$ac_file" in
4060 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
4061 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
4062 *) ac_file_in="${ac_file}.in" ;;
4063 esac
4065 echo creating $ac_file
4067 rm -f conftest.frag conftest.in conftest.out
4068 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4069 cat $ac_file_inputs > conftest.in
4073 # Transform confdefs.h into a sed script conftest.vals that substitutes
4074 # the proper values into config.h.in to produce config.h. And first:
4075 # Protect against being on the right side of a sed subst in config.status.
4076 # Protect against being in an unquoted here document in config.status.
4077 rm -f conftest.vals
4078 cat > conftest.hdr <<\EOF
4079 s/[\\&%]/\\&/g
4080 s%[\\$`]%\\&%g
4081 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
4082 s%ac_d%ac_u%gp
4083 s%ac_u%ac_e%gp
4085 sed -n -f conftest.hdr confdefs.h > conftest.vals
4086 rm -f conftest.hdr
4088 # This sed command replaces #undef with comments. This is necessary, for
4089 # example, in the case of _POSIX_SOURCE, which is predefined and required
4090 # on some systems where configure will not decide to define it.
4091 cat >> conftest.vals <<\EOF
4092 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
4095 # Break up conftest.vals because some shells have a limit on
4096 # the size of here documents, and old seds have small limits too.
4098 rm -f conftest.tail
4099 while :
4101 ac_lines=`grep -c . conftest.vals`
4102 # grep -c gives empty output for an empty file on some AIX systems.
4103 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
4104 # Write a limited-size here document to conftest.frag.
4105 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
4106 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
4107 echo 'CEOF
4108 sed -f conftest.frag conftest.in > conftest.out
4109 rm -f conftest.in
4110 mv conftest.out conftest.in
4111 ' >> $CONFIG_STATUS
4112 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
4113 rm -f conftest.vals
4114 mv conftest.tail conftest.vals
4115 done
4116 rm -f conftest.vals
4118 cat >> $CONFIG_STATUS <<\EOF
4119 rm -f conftest.frag conftest.h
4120 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
4121 cat conftest.in >> conftest.h
4122 rm -f conftest.in
4123 if cmp -s $ac_file conftest.h 2>/dev/null; then
4124 echo "$ac_file is unchanged"
4125 rm -f conftest.h
4126 else
4127 # Remove last slash and all that follows it. Not all systems have dirname.
4128 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
4129 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
4130 # The file is in a subdirectory.
4131 test ! -d "$ac_dir" && mkdir "$ac_dir"
4133 rm -f $ac_file
4134 mv conftest.h $ac_file
4136 fi; done
4140 cat >> $CONFIG_STATUS <<EOF
4141 ac_sources="`echo $libc_link_sources`"
4142 ac_dests="`echo $libc_link_dests`"
4145 cat >> $CONFIG_STATUS <<\EOF
4146 srcdir=$ac_given_srcdir
4147 while test -n "$ac_sources"; do
4148 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
4149 set $ac_sources; ac_source=$1; shift; ac_sources=$*
4151 echo "linking $srcdir/$ac_source to $ac_dest"
4153 if test ! -r $srcdir/$ac_source; then
4154 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
4156 rm -f $ac_dest
4158 # Make relative symlinks.
4159 # Remove last slash and all that follows it. Not all systems have dirname.
4160 ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'`
4161 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
4162 # The dest file is in a subdirectory.
4163 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
4164 ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`"
4165 # A "../" for each directory in $ac_dest_dir_suffix.
4166 ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'`
4167 else
4168 ac_dest_dir_suffix= ac_dots=
4171 case "$srcdir" in
4172 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
4173 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
4174 esac
4176 # Make a symlink if possible; otherwise try a hard link.
4177 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
4178 ln $srcdir/$ac_source $ac_dest; then :
4179 else
4180 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
4182 done
4184 cat >> $CONFIG_STATUS <<EOF
4185 config_vars='$config_vars'
4187 cat >> $CONFIG_STATUS <<\EOF
4189 case $CONFIG_FILES in *config.make*)
4190 echo "$config_vars" >> config.make;;
4191 esac
4192 test -d bits || mkdir bits
4193 exit 0
4195 chmod +x $CONFIG_STATUS
4196 rm -fr confdefs* $ac_clean_files
4197 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
4199 if test "$no_recursion" != yes; then
4201 # Remove --cache-file and --srcdir arguments so they do not pile up.
4202 ac_sub_configure_args=
4203 ac_prev=
4204 for ac_arg in $ac_configure_args; do
4205 if test -n "$ac_prev"; then
4206 ac_prev=
4207 continue
4209 case "$ac_arg" in
4210 -cache-file | --cache-file | --cache-fil | --cache-fi \
4211 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
4212 ac_prev=cache_file ;;
4213 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
4214 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
4216 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
4217 ac_prev=srcdir ;;
4218 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
4220 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
4221 esac
4222 done
4224 for ac_config_dir in $add_ons; do
4226 # Do not complain, so a configure script can configure whichever
4227 # parts of a large source tree are present.
4228 if test ! -d $srcdir/$ac_config_dir; then
4229 continue
4232 echo configuring in $ac_config_dir
4234 case "$srcdir" in
4235 .) ;;
4237 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
4238 else
4239 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
4242 esac
4244 ac_popdir=`pwd`
4245 cd $ac_config_dir
4247 # A "../" for each directory in /$ac_config_dir.
4248 ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
4250 case "$srcdir" in
4251 .) # No --srcdir option. We are building in place.
4252 ac_sub_srcdir=$srcdir ;;
4253 /*) # Absolute path.
4254 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
4255 *) # Relative path.
4256 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
4257 esac
4259 # Check for guested configure; otherwise get Cygnus style configure.
4260 if test -f $ac_sub_srcdir/configure; then
4261 ac_sub_configure=$ac_sub_srcdir/configure
4262 elif test -f $ac_sub_srcdir/configure.in; then
4263 ac_sub_configure=$ac_configure
4264 else
4265 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
4266 ac_sub_configure=
4269 # The recursion is here.
4270 if test -n "$ac_sub_configure"; then
4272 # Make the cache file name correct relative to the subdirectory.
4273 case "$cache_file" in
4274 /*) ac_sub_cache_file=$cache_file ;;
4275 *) # Relative path.
4276 ac_sub_cache_file="$ac_dots$cache_file" ;;
4277 esac
4278 case "$ac_given_INSTALL" in
4279 [/$]*) INSTALL="$ac_given_INSTALL" ;;
4280 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
4281 esac
4283 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
4284 # The eval makes quoting arguments work.
4285 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
4286 then :
4287 else
4288 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
4292 cd $ac_popdir
4293 done