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.
23 ac_default_prefix=/usr/local
24 # Any additions from configure.in:
26 --with-gmp=DIRECTORY find GMP source code in DIRECTORY (not needed)"
28 --with-gd=DIR find libgd include dir and library with prefix DIR"
30 --with-gd-include=DIR find libgd include files in DIR"
32 --with-gd-lib=DIR find libgd library files in DIR"
34 --with-fp if using floating-point hardware [default=yes]"
36 --with-binutils=PATH specify location of binutils (as and ld)"
38 --with-elf if using the ELF object format"
40 --without-cvs if CVS should not be used"
42 --with-headers=PATH location of system headers to use
43 [e.g. /usr/src/linux/include]
44 [default=compiler default]"
46 --enable-libio build in GNU libio instead of GNU stdio"
48 --disable-sanity-checks really do not use threads (should not be used
49 except in special situations) [default=yes]"
51 --enable-shared build shared library [default=yes if GNU ld & ELF]"
53 --enable-profile build profiled library [default=yes]"
55 --enable-omitfp build undebuggable optimized library [default=no]"
57 --enable-bounded build with runtime bounds checking [default=no]"
59 --disable-versioning do not include versioning information in the
60 library objects [default=yes if supported]"
62 --enable-add-ons[=DIR1,DIR2]...
63 configure and build add-ons in DIR1,DIR2,...
64 search for add-ons if no parameter given"
66 --enable-static-nss build static NSS modules [default=no]"
68 --disable-force-install don't force installation of files from this package,
69 even if they are older than the installed files"
71 --enable-kernel=VERSION compile for compatibility with kernel not older
74 # Initialize some variables set by options.
75 # The variables have the same names as the options, with
76 # dashes changed to underlines.
78 cache_file=./config.cache
87 program_transform_name=s,x,x,
95 bindir='${exec_prefix}/bin'
96 sbindir='${exec_prefix}/sbin'
97 libexecdir='${exec_prefix}/libexec'
98 datadir='${prefix}/share'
99 sysconfdir='${prefix}/etc'
100 sharedstatedir='${prefix}/com'
101 localstatedir='${prefix}/var'
102 libdir='${exec_prefix}/lib'
103 includedir='${prefix}/include'
104 oldincludedir='/usr/include'
105 infodir='${prefix}/info'
106 mandir='${prefix}/man'
108 # Initialize some other variables.
111 SHELL=${CONFIG_SHELL-/bin/sh}
112 # Maximum number of lines to put in a shell here document.
119 # If the previous option needs an argument, assign it.
120 if test -n "$ac_prev"; then
121 eval "$ac_prev=\$ac_option"
127 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
131 # Accept the important Cygnus configure options, so we can diagnose typos.
135 -bindir | --bindir | --bindi | --bind | --bin | --bi)
137 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
138 bindir="$ac_optarg" ;;
140 -build | --build | --buil | --bui | --bu)
142 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
143 build="$ac_optarg" ;;
145 -cache-file | --cache-file | --cache-fil | --cache-fi \
146 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
147 ac_prev=cache_file ;;
148 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
149 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
150 cache_file="$ac_optarg" ;;
152 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
154 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
156 datadir="$ac_optarg" ;;
158 -disable-* | --disable-*)
159 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
160 # Reject names that are not valid shell variable names.
161 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
162 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
164 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
165 eval "enable_${ac_feature}=no" ;;
167 -enable-* | --enable-*)
168 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
169 # Reject names that are not valid shell variable names.
170 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
171 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
173 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
178 eval "enable_${ac_feature}='$ac_optarg'" ;;
180 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
181 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
182 | --exec | --exe | --ex)
183 ac_prev=exec_prefix ;;
184 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
185 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
186 | --exec=* | --exe=* | --ex=*)
187 exec_prefix="$ac_optarg" ;;
189 -gas | --gas | --ga | --g)
190 # Obsolete; use --with-gas.
193 -help | --help | --hel | --he)
194 # Omit some internal or obsolete options to make the list less imposing.
195 # This message is too long to be a string in the A/UX 3.1 sh.
197 Usage: configure [options] [host]
198 Options: [defaults in brackets after descriptions]
200 --cache-file=FILE cache test results in FILE
201 --help print this message
202 --no-create do not create output files
203 --quiet, --silent do not print \`checking...' messages
204 --version print the version of autoconf that created configure
205 Directory and file names:
206 --prefix=PREFIX install architecture-independent files in PREFIX
208 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
210 --bindir=DIR user executables in DIR [EPREFIX/bin]
211 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
212 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
213 --datadir=DIR read-only architecture-independent data in DIR
215 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
216 --sharedstatedir=DIR modifiable architecture-independent data in DIR
218 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
219 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
220 --includedir=DIR C header files in DIR [PREFIX/include]
221 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
222 --infodir=DIR info documentation in DIR [PREFIX/info]
223 --mandir=DIR man documentation in DIR [PREFIX/man]
224 --srcdir=DIR find the sources in DIR [configure dir or ..]
225 --program-prefix=PREFIX prepend PREFIX to installed program names
226 --program-suffix=SUFFIX append SUFFIX to installed program names
227 --program-transform-name=PROGRAM
228 run sed PROGRAM on installed program names
232 --build=BUILD configure for building on BUILD [BUILD=HOST]
233 --host=HOST configure for HOST [guessed]
234 --target=TARGET configure for TARGET [TARGET=HOST]
235 Features and packages:
236 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
237 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
238 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
239 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
240 --x-includes=DIR X include files are in DIR
241 --x-libraries=DIR X library files are in DIR
243 if test -n "$ac_help"; then
244 echo "--enable and --with options recognized:$ac_help"
248 -host | --host | --hos | --ho)
250 -host=* | --host=* | --hos=* | --ho=*)
253 -includedir | --includedir | --includedi | --included | --include \
254 | --includ | --inclu | --incl | --inc)
255 ac_prev=includedir ;;
256 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
257 | --includ=* | --inclu=* | --incl=* | --inc=*)
258 includedir="$ac_optarg" ;;
260 -infodir | --infodir | --infodi | --infod | --info | --inf)
262 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
263 infodir="$ac_optarg" ;;
265 -libdir | --libdir | --libdi | --libd)
267 -libdir=* | --libdir=* | --libdi=* | --libd=*)
268 libdir="$ac_optarg" ;;
270 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
271 | --libexe | --libex | --libe)
272 ac_prev=libexecdir ;;
273 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
274 | --libexe=* | --libex=* | --libe=*)
275 libexecdir="$ac_optarg" ;;
277 -localstatedir | --localstatedir | --localstatedi | --localstated \
278 | --localstate | --localstat | --localsta | --localst \
279 | --locals | --local | --loca | --loc | --lo)
280 ac_prev=localstatedir ;;
281 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
282 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
283 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
284 localstatedir="$ac_optarg" ;;
286 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
288 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
289 mandir="$ac_optarg" ;;
292 # Obsolete; use --without-fp.
295 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
299 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
300 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
303 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
304 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
305 | --oldin | --oldi | --old | --ol | --o)
306 ac_prev=oldincludedir ;;
307 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
308 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
309 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
310 oldincludedir="$ac_optarg" ;;
312 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
314 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
315 prefix="$ac_optarg" ;;
317 -program-prefix | --program-prefix | --program-prefi | --program-pref \
318 | --program-pre | --program-pr | --program-p)
319 ac_prev=program_prefix ;;
320 -program-prefix=* | --program-prefix=* | --program-prefi=* \
321 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
322 program_prefix="$ac_optarg" ;;
324 -program-suffix | --program-suffix | --program-suffi | --program-suff \
325 | --program-suf | --program-su | --program-s)
326 ac_prev=program_suffix ;;
327 -program-suffix=* | --program-suffix=* | --program-suffi=* \
328 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
329 program_suffix="$ac_optarg" ;;
331 -program-transform-name | --program-transform-name \
332 | --program-transform-nam | --program-transform-na \
333 | --program-transform-n | --program-transform- \
334 | --program-transform | --program-transfor \
335 | --program-transfo | --program-transf \
336 | --program-trans | --program-tran \
337 | --progr-tra | --program-tr | --program-t)
338 ac_prev=program_transform_name ;;
339 -program-transform-name=* | --program-transform-name=* \
340 | --program-transform-nam=* | --program-transform-na=* \
341 | --program-transform-n=* | --program-transform-=* \
342 | --program-transform=* | --program-transfor=* \
343 | --program-transfo=* | --program-transf=* \
344 | --program-trans=* | --program-tran=* \
345 | --progr-tra=* | --program-tr=* | --program-t=*)
346 program_transform_name="$ac_optarg" ;;
348 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
349 | -silent | --silent | --silen | --sile | --sil)
352 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
354 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
356 sbindir="$ac_optarg" ;;
358 -sharedstatedir | --sharedstatedir | --sharedstatedi \
359 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
360 | --sharedst | --shareds | --shared | --share | --shar \
362 ac_prev=sharedstatedir ;;
363 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
364 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
365 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
367 sharedstatedir="$ac_optarg" ;;
369 -site | --site | --sit)
371 -site=* | --site=* | --sit=*)
374 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
376 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
377 srcdir="$ac_optarg" ;;
379 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
380 | --syscon | --sysco | --sysc | --sys | --sy)
381 ac_prev=sysconfdir ;;
382 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
383 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
384 sysconfdir="$ac_optarg" ;;
386 -target | --target | --targe | --targ | --tar | --ta | --t)
388 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
389 target="$ac_optarg" ;;
391 -v | -verbose | --verbose | --verbos | --verbo | --verb)
394 -version | --version | --versio | --versi | --vers)
395 echo "configure generated by autoconf version 2.13"
399 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
400 # Reject names that are not valid shell variable names.
401 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
402 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
404 ac_package=`echo $ac_package| sed 's/-/_/g'`
409 eval "with_${ac_package}='$ac_optarg'" ;;
411 -without-* | --without-*)
412 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
413 # Reject names that are not valid shell variable names.
414 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
415 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
417 ac_package=`echo $ac_package| sed 's/-/_/g'`
418 eval "with_${ac_package}=no" ;;
421 # Obsolete; use --with-x.
424 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
425 | --x-incl | --x-inc | --x-in | --x-i)
426 ac_prev=x_includes ;;
427 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
428 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
429 x_includes="$ac_optarg" ;;
431 -x-libraries | --x-libraries | --x-librarie | --x-librari \
432 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
433 ac_prev=x_libraries ;;
434 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
435 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
436 x_libraries="$ac_optarg" ;;
438 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
442 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
443 echo "configure: warning: $ac_option: invalid host type" 1>&2
445 if test "x$nonopt" != xNONE; then
446 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
454 if test -n "$ac_prev"; then
455 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
458 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
460 # File descriptor usage:
463 # 2 errors and warnings
464 # 3 some systems may open it to /dev/tty
465 # 4 used on the Kubota Titan
466 # 6 checking for... messages and results
467 # 5 compiler messages saved in config.log
468 if test "$silent" = yes; then
476 This file contains any messages produced by compilers while
477 running configure, to aid debugging if configure makes a mistake.
480 # Strip out --no-create and --no-recursion so they do not pile up.
481 # Also quote any args containing shell metacharacters.
486 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
487 | --no-cr | --no-c) ;;
488 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
489 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
490 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
491 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
492 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
497 # Only set these to C if already set. These must not be set unconditionally
498 # because not all systems understand e.g. LANG=C (notably SCO).
499 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
500 # Non-C LC_CTYPE values break the ctype check.
501 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
502 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
503 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
504 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
506 # confdefs.h avoids OS command line length limits that DEFS can exceed.
507 rm -rf conftest* confdefs.h
508 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
511 # A filename unique to this package, relative to the directory that
512 # configure is in, which we can look for to find out if srcdir is correct.
513 ac_unique_file=include/features.h
515 # Find the source files, if location was not specified.
516 if test -z "$srcdir"; then
517 ac_srcdir_defaulted=yes
518 # Try the directory containing this script, then its parent.
520 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
521 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
523 if test ! -r $srcdir/$ac_unique_file; then
527 ac_srcdir_defaulted=no
529 if test ! -r $srcdir/$ac_unique_file; then
530 if test "$ac_srcdir_defaulted" = yes; then
531 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
533 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
536 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
538 # Prefer explicitly selected file to automatically selected ones.
539 if test -z "$CONFIG_SITE"; then
540 if test "x$prefix" != xNONE; then
541 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
543 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
546 for ac_site_file in $CONFIG_SITE; do
547 if test -r "$ac_site_file"; then
548 echo "loading site script $ac_site_file"
553 if test -r "$cache_file"; then
554 echo "loading cache $cache_file"
557 echo "creating cache $cache_file"
562 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
563 ac_cpp='$CPP $CPPFLAGS'
564 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
565 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
566 cross_compiling=$ac_cv_prog_cc_cross
570 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
571 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
572 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
579 ac_n= ac_c='\c' ac_t=
582 if test -r /vmunix; then
583 kernel_id=`strings /vmunix | grep UNIX`
584 elif test -r /dynix; then
585 kernel_id=`strings /dynix | grep DYNIX`
593 for ac_dir in scripts $srcdir/scripts; do
594 if test -f $ac_dir/install-sh; then
596 ac_install_sh="$ac_aux_dir/install-sh -c"
598 elif test -f $ac_dir/install.sh; then
600 ac_install_sh="$ac_aux_dir/install.sh -c"
604 if test -z "$ac_aux_dir"; then
605 { echo "configure: error: can not find install-sh or install.sh in scripts $srcdir/scripts" 1>&2; exit 1; }
607 ac_config_guess=$ac_aux_dir/config.guess
608 ac_config_sub=$ac_aux_dir/config.sub
609 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
612 # This will get text that should go into config.make.
615 # Check for a --with-gmp argument and set gmp-srcdir in config.make.
616 # Check whether --with-gmp or --without-gmp was given.
617 if test "${with_gmp+set}" = set; then
620 yes) { echo "configure: error: --with-gmp requires an argument; use --with-gmp=DIRECTORY" 1>&2; exit 1; } ;;
622 *) config_vars="$config_vars
623 gmp-srcdir = $withval" ;;
628 # Check for a --with-gd argument and set libgd-LDFLAGS in config.make.
629 # Check whether --with-gd or --without-gd was given.
630 if test "${with_gd+set}" = set; then
634 *) libgd_include="-I$withval/include"
635 libgd_ldflags="-L$withval/lib" ;;
640 # Check whether --with-gd-include or --without-gd-include was given.
641 if test "${with_gd_include+set}" = set; then
642 withval="$with_gd_include"
643 case "$with_gd_include" in
645 *) libgd_include="-I$withval" ;;
650 # Check whether --with-gd-lib or --without-gd-lib was given.
651 if test "${with_gd_lib+set}" = set; then
652 withval="$with_gd_lib"
653 case "$with_gd_lib" in
655 *) libgd_ldflags="-L$withval" ;;
661 if test -n "$libgd_include"; then
662 config_vars="$config_vars
663 CFLAGS-memusagestat.c = $libgd_include"
665 if test -n "$libgd_ldflags"; then
666 config_vars="$config_vars
667 libgd-LDFLAGS = $libgd_ldflags"
670 # Check whether --with-fp or --without-fp was given.
671 if test "${with_fp+set}" = set; then
678 # Check whether --with-binutils or --without-binutils was given.
679 if test "${with_binutils+set}" = set; then
680 withval="$with_binutils"
681 path_binutils=$withval
686 # Check whether --with-elf or --without-elf was given.
687 if test "${with_elf+set}" = set; then
694 # Check whether --with-cvs or --without-cvs was given.
695 if test "${with_cvs+set}" = set; then
704 # Check whether --with-headers or --without-headers was given.
705 if test "${with_headers+set}" = set; then
706 withval="$with_headers"
713 # Check whether --enable-libio or --disable-libio was given.
714 if test "${enable_libio+set}" = set; then
715 enableval="$enable_libio"
716 if test $enableval = yes; then
726 # Check whether --enable-sanity-checks or --disable-sanity-checks was given.
727 if test "${enable_sanity_checks+set}" = set; then
728 enableval="$enable_sanity_checks"
729 enable_sanity=$enableval
736 # Check whether --enable-shared or --disable-shared was given.
737 if test "${enable_shared+set}" = set; then
738 enableval="$enable_shared"
744 # Check whether --enable-profile or --disable-profile was given.
745 if test "${enable_profile+set}" = set; then
746 enableval="$enable_profile"
752 # Check whether --enable-omitfp or --disable-omitfp was given.
753 if test "${enable_omitfp+set}" = set; then
754 enableval="$enable_omitfp"
760 # Check whether --enable-bounded or --disable-bounded was given.
761 if test "${enable_bounded+set}" = set; then
762 enableval="$enable_bounded"
768 # Check whether --enable-versioning or --disable-versioning was given.
769 if test "${enable_versioning+set}" = set; then
770 enableval="$enable_versioning"
771 enable_versioning=$enableval
773 enable_versioning=yes
777 # Check whether --enable-add-ons or --disable-add-ons was given.
778 if test "${enable_add_ons+set}" = set; then
779 enableval="$enable_add_ons"
781 yes) add_ons=`cd $srcdir && echo */configure | sed -e 's!/configure!!g'`
782 test "$add_ons" = "*" && add_ons= ;;
783 *) add_ons=`echo "$enableval" | sed 's/,/ /g'`;;
793 if test x"$add_ons" != x; then
794 for f in $add_ons; do
795 # Test whether such a subdir really exists.
796 if test -d $srcdir/$f; then
797 add_ons_pfx="$add_ons_pfx $f/"
799 { echo "configure: error: add-on directory \"$f\" does not exist" 1>&2; exit 1; }
804 # Check whether --enable-static-nss or --disable-static-nss was given.
805 if test "${enable_static_nss+set}" = set; then
806 enableval="$enable_static_nss"
807 static_nss=$enableval
812 if test x"$static_nss" = xyes; then
813 cat >> confdefs.h <<\EOF
814 #define DO_STATIC_NSS 1
819 # Check whether --enable-force-install or --disable-force-install was given.
820 if test "${enable_force_install+set}" = set; then
821 enableval="$enable_force_install"
822 force_install=$enableval
829 # Check whether --enable-kernel or --disable-kernel was given.
830 if test "${enable_kernel+set}" = set; then
831 enableval="$enable_kernel"
832 minimum_kernel=$enableval
835 if test "$minimum_kernel" = yes || test "$minimum_kernel" = no; then
836 # Better nothing than this.
839 if test "$minimum_kernel" = current; then
840 minimum_kernel=`uname -r 2>/dev/null` || minimum_kernel=
845 # Make sure we can run config.sub.
846 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
847 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
850 echo $ac_n "checking host system type""... $ac_c" 1>&6
851 echo "configure:852: checking host system type" >&5
854 case "$host_alias" in
858 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
859 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
861 *) host_alias=$nonopt ;;
865 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
866 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
867 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
868 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
869 echo "$ac_t""$host" 1>&6
872 # The way shlib-versions is used to generate soversions.mk uses a
873 # fairly simplistic model for name recognition that can't distinguish
874 # i486-pc-linux-gnu fully from i486-pc-gnu. So we mutate a $host_os
875 # of `gnu*' here to be `gnu-gnu*' just so that shlib-versions can
876 # tell. This doesn't get used much beyond that, so it's fairly safe.
881 host_os=`echo $host_os | sed -e 's/gnu/gnu-gnu/'`
885 # We keep the original values in `$config_*' and never modify them, so we
886 # can write them unchanged into config.make. Everything else uses
887 # $machine, $vendor, and $os, and changes them whenever convenient.
888 config_machine=$host_cpu config_vendor=$host_vendor config_os=$host_os
890 # Some configurations imply other options.
892 gnu* | linux* | bsd4.4* | netbsd* | freebsd*)
893 # These systems always use GNU tools.
894 gnu_ld=yes gnu_as=yes ;;
897 # i586-linuxaout is mangled into i586-pc-linux-gnuaout
898 linux*ecoff* | linux*aout* | gnu*aout* | gnu*ecoff*)
900 gnu* | linux* | sysv4* | solaris2* | irix6*)
901 # These systems (almost) always use the ELF format.
906 machine=$config_machine
907 vendor=$config_vendor
910 # config.guess on some IBM machines says `rs6000' instead of `powerpc'.
912 if test "$machine" = rs6000; then
917 ### I put this here to prevent those annoying emails from people who cannot
918 ### read and try to compile glibc on unsupported platforms. --drepper
920 ### By using the undocumented --enable-hacker-mode option for configure
921 ### one can skip this test to make the configuration not fail for unsupported
924 if test -z "$enable_hacker_mode"; then
925 case "$machine-$host_os" in
926 *-linux* | *-gnu* | arm*-none* | powerpc-aix4.3.*)
929 echo "*** The GNU C library is currently not available for this platform."
930 echo "*** So far nobody cared to port it and if there is no volunteer it"
931 echo "*** might never happen. So, if you have interest to see glibc on"
932 echo "*** this platform visit"
933 echo "*** http://www.gnu.org/software/libc/porting.html"
934 echo "*** and join the group of porters"
940 # Expand the configuration machine name into a subdirectory by architecture
941 # type and particular chip.
943 a29k | am29000) base_machine=a29k machine=a29k ;;
944 alpha*) base_machine=alpha machine=alpha/$machine ;;
945 arm*) base_machine=arm machine=arm/$machine ;;
946 c3[012]) base_machine=cx0 machine=cx0/c30 ;;
947 c4[04]) base_machine=cx0 machine=cx0/c40 ;;
948 hppa*) base_machine=hppa machine=hppa/$machine ;;
949 i[3456]86) base_machine=i386 machine=i386/$machine ;;
950 ia64) base_machine=ia64 machine=ia64 ;;
951 m680?0) base_machine=m68k machine=m68k/$machine ;;
952 m68k) base_machine=m68k machine=m68k/m68020 ;;
953 m88???) base_machine=m88k machine=m88k/$machine ;;
954 m88k) base_machine=m88k machine=m88k/m88100 ;;
955 mips64*) base_machine=mips64 machine=mips/mips64/$machine ;;
956 mips*) base_machine=mips
958 IP22) machine=mips/mips3 ;;
959 *) machine=mips/$machine ;;
961 sh3*) base_machine=sh machine=sh/sh3 ;;
962 sh4*) base_machine=sh machine=sh/sh4 ;;
964 base_machine=sparc machine=sparc/sparc32 ;;
965 sparcv8 | supersparc | hypersparc)
966 base_machine=sparc machine=sparc/sparc32/sparcv8 ;;
967 sparcv8plus | sparcv8plusa | sparcv9)
968 base_machine=sparc machine=sparc/sparc32/sparcv9 ;;
969 sparc64 | ultrasparc)
970 base_machine=sparc machine=sparc/sparc64 ;;
974 if test "$base_machine" = "i386"; then
975 cat >> confdefs.h <<\EOF
976 #define USE_REGPARMS 1
981 # Compute the list of sysdep directories for this configuration.
982 # This can take a while to compute.
983 sysdep_dir=$srcdir/sysdeps
984 echo $ac_n "checking sysdep dirs""... $ac_c" 1>&6
985 echo "configure:986: checking sysdep dirs" >&5
986 # Make sco3.2v4 become sco3.2.4 and sunos4.1.1_U1 become sunos4.1.1.U1.
987 os="`echo $os | sed 's/\([0-9A-Z]\)[v_]\([0-9A-Z]\)/\1.\2/g'`"
992 netbsd* | 386bsd* | freebsd* | bsdi*)
993 base_os=unix/bsd/bsd4.4 ;;
994 osf* | sunos* | ultrix* | newsos* | dynix* | *bsd*)
996 sysv* | isc* | esix* | sco* | minix* | irix4* | linux*)
999 base_os=unix/sysv/irix6/$os ;;
1001 base_os=unix/sysv/sysv4 ;;
1003 base_os=unix/sysv/hpux/$os ;;
1005 base_os=unix/sysv/aix/aix4.3 ;;
1007 base_os=standalone ;;
1012 # For sunos4.1.1, try sunos4.1.1, then sunos4.1, then sunos4, then sunos.
1015 while o=`echo $tail | sed 's/\.[^.]*$//'`; test $o != $tail; do
1019 o=`echo $tail | sed 's/[0-9]*$//'`
1020 if test $o != $tail; then
1023 # For linux-gnu, try linux-gnu, then linux.
1024 o=`echo $tail | sed 's/-.*$//'`
1025 if test $o != $tail; then
1029 # For unix/sysv/sysv4, try unix/sysv/sysv4, then unix/sysv, then unix.
1032 while b=`echo $tail | sed 's@^\(.*\)/\([^/]*\)$@& \1@'`; test -n "$b"; do
1038 # For sparc/sparc32, try sparc/sparc32 and then sparc.
1041 while m=`echo $tail | sed 's@^\(.*\)/\([^/]*\)$@& \1@'`; test -n "$m"; do
1043 # Prepend the machine's FPU directory unless --without-fp.
1044 if test "$with_fp" = yes; then
1045 mach="$mach /$1/fpu"
1052 # Find what sysdep directories exist.
1054 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1055 for d in $add_ons_pfx ''; do
1056 for b in $base ''; do
1057 for m0 in $mach ''; do
1058 for v in /$vendor ''; do
1059 test "$v" = / && continue
1060 for o in /$ostry ''; do
1061 test "$o" = / && continue
1062 for m in $mach ''; do
1063 if test "$m0$b$v$o$m"; then
1064 try="${d}sysdeps$m0$b$v$o$m"
1065 test -n "$enable_debug_configure" &&
1066 echo "$0 DEBUG: try $try" >&2
1067 if test -d $srcdir/$try; then
1068 sysnames="$sysnames $try"
1069 { test -n "$o" || test -n "$b"; } && os_used=t
1070 { test -n "$m" || test -n "$m0"; } && machine_used=t
1081 if test -z "$os_used" && test "$os" != none; then
1082 { echo "configure: error: Operating system $os is not supported." 1>&2; exit 1; }
1084 if test -z "$machine_used" && test "$machine" != none; then
1085 { echo "configure: error: The $machine is not supported." 1>&2; exit 1; }
1088 # We have now validated the configuration.
1091 # If using ELF, look for an `elf' subdirectory of each machine directory.
1092 # We prepend these rather than inserting them whereever the machine appears
1093 # because things specified by the machine's ELF ABI should override
1094 # OS-specific things, and should always be the same for any OS on the
1095 # machine (otherwise what's the point of an ABI?).
1096 if test "$elf" = yes; then
1098 for d in $add_ons_pfx ''; do
1100 if test -d $srcdir/${d}sysdeps$m/elf; then
1101 elf_dirs="$elf_dirs ${d}sysdeps$m/elf"
1105 sysnames="`echo $elf_dirs | sed -e 's,//,/,g'` $sysnames"
1109 # Expand the list of system names into a full list of directories
1110 # from each element's parent name and Implies file (if present).
1113 while test $# -gt 0; do
1117 case " $names " in *" $name "*)
1118 # Already in the list.
1122 # Report each name as we discover it, so there is no long pause in output.
1123 echo $ac_n "$name $ac_c" >&6
1125 name_base=`echo $name | sed -e 's@\(.*sysdeps\)/.*@\1@'`
1129 *) xsrcdir=$srcdir/ ;;
1131 test -n "$enable_debug_configure" &&
1132 echo "DEBUG: name/Implies $xsrcdir$name/Implies" >&2
1134 if test -f $xsrcdir$name/Implies; then
1135 # Collect more names from the `Implies' file (removing comments).
1136 implied_candidate="`sed 's/#.*$//' < $xsrcdir$name/Implies`"
1138 for x in $implied_candidate; do
1139 if test -d $xsrcdir$name_base/$x; then
1140 implied="$implied $name_base/$x";
1142 echo "configure: warning: $name/Implies specifies nonexistent $x" 1>&2
1149 # Add NAME to the list of names.
1150 names="$names $name"
1152 # Find the parent of NAME, using the empty string if it has none.
1153 parent="`echo $name | sed -n -e 's=/[^/]*$==' -e '/sysdeps$/q' -e p`"
1155 # Add the names implied by NAME, and NAME's parent (if it has one), to
1156 # the list of names to be processed (the argument list). We prepend the
1157 # implied names to the list and append the parent. We want implied
1158 # directories to come before further directories inferred from the
1159 # configuration components; this ensures that for sysv4, unix/common
1160 # (implied by unix/sysv/sysv4) comes before unix/sysv (in ostry (here $*)
1162 sysnames="`echo $implied $* $parent`"
1163 test -n "$sysnames" && set $sysnames
1166 # Add the default directories.
1167 default_sysnames=sysdeps/generic
1168 if test "$elf" = yes; then
1169 default_sysnames="sysdeps/generic/elf $default_sysnames"
1171 sysnames="$names $default_sysnames"
1173 # The other names were emitted during the scan.
1174 echo "$ac_t""$default_sysnames" 1>&6
1179 # Find a good install program. We prefer a C program (faster),
1180 # so one script is as good as another. But avoid the broken or
1181 # incompatible versions:
1182 # SysV /etc/install, /usr/sbin/install
1183 # SunOS /usr/etc/install
1184 # IRIX /sbin/install
1186 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1187 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1188 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1189 # ./install, which can be erroneously created by make from ./install.sh.
1190 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1191 echo "configure:1192: checking for a BSD compatible install" >&5
1192 if test -z "$INSTALL"; then
1193 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1194 echo $ac_n "(cached) $ac_c" 1>&6
1196 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1197 for ac_dir in $PATH; do
1198 # Account for people who put trailing slashes in PATH elements.
1200 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1202 # OSF1 and SCO ODT 3.0 have their own names for install.
1203 # Don't use installbsd from OSF since it installs stuff as root
1205 for ac_prog in ginstall scoinst install; do
1206 if test -f $ac_dir/$ac_prog; then
1207 if test $ac_prog = install &&
1208 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1209 # AIX install. It has an incompatible calling convention.
1212 ac_cv_path_install="$ac_dir/$ac_prog -c"
1223 if test "${ac_cv_path_install+set}" = set; then
1224 INSTALL="$ac_cv_path_install"
1226 # As a last resort, use the slow shell script. We don't cache a
1227 # path for INSTALL within a source directory, because that will
1228 # break other packages using the cache if that directory is
1229 # removed, or if the path is relative.
1230 INSTALL="$ac_install_sh"
1233 echo "$ac_t""$INSTALL" 1>&6
1235 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1236 # It thinks the first close brace ends the variable substitution.
1237 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1239 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1241 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1243 if test "$INSTALL" = "${srcdir}/scripts/install-sh -c"; then
1244 # The makefiles need to use a different form to find it in $srcdir.
1245 INSTALL='\$(..)./scripts/install-sh -c'
1247 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1248 echo "configure:1249: checking whether ln -s works" >&5
1249 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1250 echo $ac_n "(cached) $ac_c" 1>&6
1253 if ln -s X conftestdata 2>/dev/null
1256 ac_cv_prog_LN_S="ln -s"
1261 LN_S="$ac_cv_prog_LN_S"
1262 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1263 echo "$ac_t""yes" 1>&6
1265 echo "$ac_t""no" 1>&6
1269 # We need the physical current working directory. We cannot use the
1270 # "pwd -P" shell builtin since that's not portable. Instead we try to
1271 # find a pwd binary. Note that assigning to the PWD environment
1272 # variable might have some interesting side effects, so we don't do
1274 # Extract the first word of "pwd", so it can be a program name with args.
1275 set dummy pwd; ac_word=$2
1276 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1277 echo "configure:1278: checking for $ac_word" >&5
1278 if eval "test \"`echo '$''{'ac_cv_path_PWD_P'+set}'`\" = set"; then
1279 echo $ac_n "(cached) $ac_c" 1>&6
1283 ac_cv_path_PWD_P="$PWD_P" # Let the user override the test with a path.
1286 ac_cv_path_PWD_P="$PWD_P" # Let the user override the test with a dos path.
1289 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1291 for ac_dir in $ac_dummy; do
1292 test -z "$ac_dir" && ac_dir=.
1293 if test -f $ac_dir/$ac_word; then
1294 ac_cv_path_PWD_P="$ac_dir/$ac_word"
1299 test -z "$ac_cv_path_PWD_P" && ac_cv_path_PWD_P="no"
1303 PWD_P="$ac_cv_path_PWD_P"
1304 if test -n "$PWD_P"; then
1305 echo "$ac_t""$PWD_P" 1>&6
1307 echo "$ac_t""no" 1>&6
1310 if test "$PWD_P" = no; then
1311 { echo "configure: error: *** A pwd binary could not be found." 1>&2; exit 1; }
1314 # These programs are version sensitive.
1315 echo $ac_n "checking build system type""... $ac_c" 1>&6
1316 echo "configure:1317: checking build system type" >&5
1319 case "$build_alias" in
1322 NONE) build_alias=$host_alias ;;
1323 *) build_alias=$nonopt ;;
1327 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1328 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1329 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1330 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1331 echo "$ac_t""$build" 1>&6
1333 if test $host != $build; then
1334 ac_tool_prefix=${host_alias}-
1339 for ac_prog in ${ac_tool_prefix}gcc ${ac_tool_prefix}cc
1341 # Extract the first word of "$ac_prog", so it can be a program name with args.
1342 set dummy $ac_prog; ac_word=$2
1343 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1344 echo "configure:1345: checking for $ac_word" >&5
1345 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1346 echo $ac_n "(cached) $ac_c" 1>&6
1348 if test -n "$CC"; then
1349 ac_cv_prog_CC="$CC" # Let the user override the test.
1351 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1353 for ac_dir in $ac_dummy; do
1354 test -z "$ac_dir" && ac_dir=.
1355 if test -f $ac_dir/$ac_word; then
1356 ac_cv_prog_CC="$ac_prog"
1364 if test -n "$CC"; then
1365 echo "$ac_t""$CC" 1>&6
1367 echo "$ac_t""no" 1>&6
1370 test -n "$CC" && break
1373 if test -z "$CC"; then
1376 # Found it, now check the version.
1377 echo $ac_n "checking version of $CC""... $ac_c" 1>&6
1378 echo "configure:1379: checking version of $CC" >&5
1379 ac_prog_version=`$CC -v 2>&1 | sed -n 's/^.*version \([egcygnustpi-]*[0-9.]*\).*$/\1/p'`
1380 case $ac_prog_version in
1381 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
1382 egcs-2.9[1-9].*|egcs-2.90.2[789]|egcs-2.90.[3-9][0-9]|*gcc-2.9[1-9].*|pgcc-2.90.2[789]|pgcc-2.90.[3-9][0-9]|*2.8.[1-9]*|*2.9|*2.9.[0-9]*|2.9[5-9]*|cygnus-2.9[1-9]*|gcc-2.9[5-9]|gcc-2.1[0-9][0-9]|sgicc-*)
1383 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
1384 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
1387 echo "$ac_t""$ac_prog_version" 1>&6
1389 if test $ac_verc_fail = yes; then
1393 for ac_prog in gnumake gmake make
1395 # Extract the first word of "$ac_prog", so it can be a program name with args.
1396 set dummy $ac_prog; ac_word=$2
1397 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1398 echo "configure:1399: checking for $ac_word" >&5
1399 if eval "test \"`echo '$''{'ac_cv_prog_MAKE'+set}'`\" = set"; then
1400 echo $ac_n "(cached) $ac_c" 1>&6
1402 if test -n "$MAKE"; then
1403 ac_cv_prog_MAKE="$MAKE" # Let the user override the test.
1405 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1407 for ac_dir in $ac_dummy; do
1408 test -z "$ac_dir" && ac_dir=.
1409 if test -f $ac_dir/$ac_word; then
1410 ac_cv_prog_MAKE="$ac_prog"
1417 MAKE="$ac_cv_prog_MAKE"
1418 if test -n "$MAKE"; then
1419 echo "$ac_t""$MAKE" 1>&6
1421 echo "$ac_t""no" 1>&6
1424 test -n "$MAKE" && break
1427 if test -z "$MAKE"; then
1430 # Found it, now check the version.
1431 echo $ac_n "checking version of $MAKE""... $ac_c" 1>&6
1432 echo "configure:1433: checking version of $MAKE" >&5
1433 ac_prog_version=`$MAKE --version 2>&1 | sed -n 's/^.*GNU Make[^0-9]*\([0-9][0-9.]*\).*$/\1/p'`
1434 case $ac_prog_version in
1435 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
1437 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
1438 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
1441 echo "$ac_t""$ac_prog_version" 1>&6
1443 if test $ac_verc_fail = yes; then
1448 for ac_prog in gnumsgfmt gmsgfmt msgfmt
1450 # Extract the first word of "$ac_prog", so it can be a program name with args.
1451 set dummy $ac_prog; ac_word=$2
1452 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1453 echo "configure:1454: checking for $ac_word" >&5
1454 if eval "test \"`echo '$''{'ac_cv_prog_MSGFMT'+set}'`\" = set"; then
1455 echo $ac_n "(cached) $ac_c" 1>&6
1457 if test -n "$MSGFMT"; then
1458 ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
1460 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1462 for ac_dir in $ac_dummy; do
1463 test -z "$ac_dir" && ac_dir=.
1464 if test -f $ac_dir/$ac_word; then
1465 ac_cv_prog_MSGFMT="$ac_prog"
1472 MSGFMT="$ac_cv_prog_MSGFMT"
1473 if test -n "$MSGFMT"; then
1474 echo "$ac_t""$MSGFMT" 1>&6
1476 echo "$ac_t""no" 1>&6
1479 test -n "$MSGFMT" && break
1482 if test -z "$MSGFMT"; then
1485 # Found it, now check the version.
1486 echo $ac_n "checking version of $MSGFMT""... $ac_c" 1>&6
1487 echo "configure:1488: checking version of $MSGFMT" >&5
1488 ac_prog_version=`$MSGFMT --version 2>&1 | sed -n 's/^.*GNU gettext.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
1489 case $ac_prog_version in
1490 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
1491 0.[1-9][0-9].* | [1-9].*)
1492 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
1493 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
1496 echo "$ac_t""$ac_prog_version" 1>&6
1498 if test $ac_verc_fail = yes; then
1499 MSGFMT=: aux_missing=t
1502 for ac_prog in makeinfo
1504 # Extract the first word of "$ac_prog", so it can be a program name with args.
1505 set dummy $ac_prog; ac_word=$2
1506 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1507 echo "configure:1508: checking for $ac_word" >&5
1508 if eval "test \"`echo '$''{'ac_cv_prog_MAKEINFO'+set}'`\" = set"; then
1509 echo $ac_n "(cached) $ac_c" 1>&6
1511 if test -n "$MAKEINFO"; then
1512 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
1514 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1516 for ac_dir in $ac_dummy; do
1517 test -z "$ac_dir" && ac_dir=.
1518 if test -f $ac_dir/$ac_word; then
1519 ac_cv_prog_MAKEINFO="$ac_prog"
1526 MAKEINFO="$ac_cv_prog_MAKEINFO"
1527 if test -n "$MAKEINFO"; then
1528 echo "$ac_t""$MAKEINFO" 1>&6
1530 echo "$ac_t""no" 1>&6
1533 test -n "$MAKEINFO" && break
1536 if test -z "$MAKEINFO"; then
1539 # Found it, now check the version.
1540 echo $ac_n "checking version of $MAKEINFO""... $ac_c" 1>&6
1541 echo "configure:1542: checking version of $MAKEINFO" >&5
1542 ac_prog_version=`$MAKEINFO --version 2>&1 | sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
1543 case $ac_prog_version in
1544 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
1545 3.1[1-9] | 3.[2-9][0-9] | 4.* | 1.6[89] | 1.7[0-9])
1546 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
1547 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
1550 echo "$ac_t""$ac_prog_version" 1>&6
1552 if test $ac_verc_fail = yes; then
1553 MAKEINFO=: aux_missing=t
1556 for ac_prog in gsed sed
1558 # Extract the first word of "$ac_prog", so it can be a program name with args.
1559 set dummy $ac_prog; ac_word=$2
1560 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1561 echo "configure:1562: checking for $ac_word" >&5
1562 if eval "test \"`echo '$''{'ac_cv_prog_SED'+set}'`\" = set"; then
1563 echo $ac_n "(cached) $ac_c" 1>&6
1565 if test -n "$SED"; then
1566 ac_cv_prog_SED="$SED" # Let the user override the test.
1568 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1570 for ac_dir in $ac_dummy; do
1571 test -z "$ac_dir" && ac_dir=.
1572 if test -f $ac_dir/$ac_word; then
1573 ac_cv_prog_SED="$ac_prog"
1580 SED="$ac_cv_prog_SED"
1581 if test -n "$SED"; then
1582 echo "$ac_t""$SED" 1>&6
1584 echo "$ac_t""no" 1>&6
1587 test -n "$SED" && break
1590 if test -z "$SED"; then
1593 # Found it, now check the version.
1594 echo $ac_n "checking version of $SED""... $ac_c" 1>&6
1595 echo "configure:1596: checking version of $SED" >&5
1596 ac_prog_version=`$SED --version 2>&1 | sed -n 's/^.*GNU sed version \([0-9]*\.[0-9.]*\).*$/\1/p'`
1597 case $ac_prog_version in
1598 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
1599 3.0[2-9]*|3.[1-9]*|[4-9]*)
1600 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
1601 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
1604 echo "$ac_t""$ac_prog_version" 1>&6
1606 if test $ac_verc_fail = yes; then
1611 if test -n "$critic_missing"; then
1612 { echo "configure: error:
1613 *** Some critical program is missing or too old.
1614 *** Check the INSTALL file for required versions." 1>&2; exit 1; }
1617 test -n "$aux_missing" && echo "configure: warning:
1618 *** An auxiliary program is missing or too old;
1619 *** some features will be disabled.
1620 *** Check the INSTALL file for required versions." 1>&2
1622 # glibcbug.in wants to know the compiler version.
1623 CCVERSION=`$CC -v 2>&1 | sed -n 's/gcc version //p'`
1627 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1628 echo "configure:1629: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1629 if eval "test \"`echo '$''{'ac_cv_prog_cc_works'+set}'`\" = set"; then
1630 echo $ac_n "(cached) $ac_c" 1>&6
1634 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1635 ac_cpp='$CPP $CPPFLAGS'
1636 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1637 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1638 cross_compiling=$ac_cv_prog_cc_cross
1640 cat > conftest.$ac_ext << EOF
1642 #line 1643 "configure"
1643 #include "confdefs.h"
1647 if { (eval echo configure:1648: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1648 ac_cv_prog_cc_works=yes
1649 # If we can't run a trivial program, we are probably using a cross compiler.
1650 if (./conftest; exit) 2>/dev/null; then
1651 ac_cv_prog_cc_cross=no
1653 ac_cv_prog_cc_cross=yes
1656 echo "configure: failed program was:" >&5
1657 cat conftest.$ac_ext >&5
1658 ac_cv_prog_cc_works=no
1662 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1663 ac_cpp='$CPP $CPPFLAGS'
1664 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1665 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1666 cross_compiling=$ac_cv_prog_cc_cross
1670 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1671 if test $ac_cv_prog_cc_works = no; then
1673 ac_cv_prog_cc_cross=yes
1677 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1678 echo "configure:1679: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1679 if eval "test \"`echo '$''{'ac_cv_prog_cc_cross'+set}'`\" = set"; then
1680 echo $ac_n "(cached) $ac_c" 1>&6
1685 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1687 cross_compiling=$ac_cv_prog_cc_cross
1689 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1690 echo "configure:1691: checking whether we are using GNU C" >&5
1691 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1692 echo $ac_n "(cached) $ac_c" 1>&6
1694 cat > conftest.c <<EOF
1699 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1700: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1706 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1707 if test $ac_cv_prog_gcc != yes; then
1708 { echo "configure: error: GNU libc must be compiled using GNU CC" 1>&2; exit 1; }
1711 echo $ac_n "checking build system type""... $ac_c" 1>&6
1712 echo "configure:1713: checking build system type" >&5
1715 case "$build_alias" in
1718 NONE) build_alias=$host_alias ;;
1719 *) build_alias=$nonopt ;;
1723 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1724 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1725 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1726 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1727 echo "$ac_t""$build" 1>&6
1729 if test $host != $build; then
1730 for ac_prog in gcc cc
1732 # Extract the first word of "$ac_prog", so it can be a program name with args.
1733 set dummy $ac_prog; ac_word=$2
1734 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1735 echo "configure:1736: checking for $ac_word" >&5
1736 if eval "test \"`echo '$''{'ac_cv_prog_BUILD_CC'+set}'`\" = set"; then
1737 echo $ac_n "(cached) $ac_c" 1>&6
1739 if test -n "$BUILD_CC"; then
1740 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
1742 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1744 for ac_dir in $ac_dummy; do
1745 test -z "$ac_dir" && ac_dir=.
1746 if test -f $ac_dir/$ac_word; then
1747 ac_cv_prog_BUILD_CC="$ac_prog"
1754 BUILD_CC="$ac_cv_prog_BUILD_CC"
1755 if test -n "$BUILD_CC"; then
1756 echo "$ac_t""$BUILD_CC" 1>&6
1758 echo "$ac_t""no" 1>&6
1761 test -n "$BUILD_CC" && break
1766 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1767 echo "configure:1768: checking how to run the C preprocessor" >&5
1768 # On Suns, sometimes $CPP names a directory.
1769 if test -n "$CPP" && test -d "$CPP"; then
1772 if test -z "$CPP"; then
1773 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1774 echo $ac_n "(cached) $ac_c" 1>&6
1776 # This must be in double quotes, not single quotes, because CPP may get
1777 # substituted into the Makefile and "${CC-cc}" will confuse make.
1779 # On the NeXT, cc -E runs the code through the compiler's parser,
1780 # not just through cpp.
1781 cat > conftest.$ac_ext <<EOF
1782 #line 1783 "configure"
1783 #include "confdefs.h"
1787 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1788 { (eval echo configure:1789: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1789 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1790 if test -z "$ac_err"; then
1794 echo "configure: failed program was:" >&5
1795 cat conftest.$ac_ext >&5
1797 CPP="${CC-cc} -E -traditional-cpp"
1798 cat > conftest.$ac_ext <<EOF
1799 #line 1800 "configure"
1800 #include "confdefs.h"
1804 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1805 { (eval echo configure:1806: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1806 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1807 if test -z "$ac_err"; then
1811 echo "configure: failed program was:" >&5
1812 cat conftest.$ac_ext >&5
1814 CPP="${CC-cc} -nologo -E"
1815 cat > conftest.$ac_ext <<EOF
1816 #line 1817 "configure"
1817 #include "confdefs.h"
1821 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1822 { (eval echo configure:1823: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1823 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1824 if test -z "$ac_err"; then
1828 echo "configure: failed program was:" >&5
1829 cat conftest.$ac_ext >&5
1838 ac_cv_prog_CPP="$CPP"
1840 CPP="$ac_cv_prog_CPP"
1842 ac_cv_prog_CPP="$CPP"
1844 echo "$ac_t""$CPP" 1>&6
1846 # Was a --with-binutils option given?
1847 if test -n "$path_binutils"; then
1848 # Make absolute; ensure a single trailing slash.
1849 path_binutils=`(cd $path_binutils; pwd) | sed 's%/*$%/%'`
1850 CC="$CC -B$path_binutils"
1852 AS=`$CC -print-prog-name=as`
1853 LD=`$CC -print-prog-name=ld`
1854 AR=`$CC -print-prog-name=ar`
1857 # ranlib has to be treated a bit differently since it might not exist at all.
1858 RANLIB=`$CC -print-prog-name=ranlib`
1859 if test $RANLIB = ranlib; then
1860 # This extra check has to happen since gcc simply echos the parameter in
1861 # case it cannot find the value in its own directories.
1862 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1863 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1864 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1865 echo "configure:1866: checking for $ac_word" >&5
1866 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1867 echo $ac_n "(cached) $ac_c" 1>&6
1869 if test -n "$RANLIB"; then
1870 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1872 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1874 for ac_dir in $ac_dummy; do
1875 test -z "$ac_dir" && ac_dir=.
1876 if test -f $ac_dir/$ac_word; then
1877 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1884 RANLIB="$ac_cv_prog_RANLIB"
1885 if test -n "$RANLIB"; then
1886 echo "$ac_t""$RANLIB" 1>&6
1888 echo "$ac_t""no" 1>&6
1892 if test -z "$ac_cv_prog_RANLIB"; then
1893 if test -n "$ac_tool_prefix"; then
1894 # Extract the first word of "ranlib", so it can be a program name with args.
1895 set dummy ranlib; ac_word=$2
1896 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1897 echo "configure:1898: checking for $ac_word" >&5
1898 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1899 echo $ac_n "(cached) $ac_c" 1>&6
1901 if test -n "$RANLIB"; then
1902 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1904 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1906 for ac_dir in $ac_dummy; do
1907 test -z "$ac_dir" && ac_dir=.
1908 if test -f $ac_dir/$ac_word; then
1909 ac_cv_prog_RANLIB="ranlib"
1914 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1917 RANLIB="$ac_cv_prog_RANLIB"
1918 if test -n "$RANLIB"; then
1919 echo "$ac_t""$RANLIB" 1>&6
1921 echo "$ac_t""no" 1>&6
1932 # Determine whether we are using GNU binutils.
1933 echo $ac_n "checking whether $AS is GNU as""... $ac_c" 1>&6
1934 echo "configure:1935: checking whether $AS is GNU as" >&5
1935 if eval "test \"`echo '$''{'libc_cv_prog_as_gnu'+set}'`\" = set"; then
1936 echo $ac_n "(cached) $ac_c" 1>&6
1938 # Most GNU programs take a -v and spit out some text including
1939 # the word 'GNU'. Some try to read stdin, so give them /dev/null.
1940 if $AS -o conftest -v </dev/null 2>&1 | grep GNU > /dev/null 2>&1; then
1941 libc_cv_prog_as_gnu=yes
1943 libc_cv_prog_as_gnu=no
1948 echo "$ac_t""$libc_cv_prog_as_gnu" 1>&6
1950 gnu_as=$libc_cv_prog_as_gnu
1952 echo $ac_n "checking whether $LD is GNU ld""... $ac_c" 1>&6
1953 echo "configure:1954: checking whether $LD is GNU ld" >&5
1954 if eval "test \"`echo '$''{'libc_cv_prog_ld_gnu'+set}'`\" = set"; then
1955 echo $ac_n "(cached) $ac_c" 1>&6
1957 # Most GNU programs take a -v and spit out some text including
1958 # the word 'GNU'. Some try to read stdin, so give them /dev/null.
1959 if $LD -o conftest -v </dev/null 2>&1 | grep GNU > /dev/null 2>&1; then
1960 libc_cv_prog_ld_gnu=yes
1962 libc_cv_prog_ld_gnu=no
1967 echo "$ac_t""$libc_cv_prog_ld_gnu" 1>&6
1968 gnu_ld=$libc_cv_prog_ld_gnu
1970 # Extract the first word of "${ac_tool_prefix}mig", so it can be a program name with args.
1971 set dummy ${ac_tool_prefix}mig; ac_word=$2
1972 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1973 echo "configure:1974: checking for $ac_word" >&5
1974 if eval "test \"`echo '$''{'ac_cv_prog_MIG'+set}'`\" = set"; then
1975 echo $ac_n "(cached) $ac_c" 1>&6
1977 if test -n "$MIG"; then
1978 ac_cv_prog_MIG="$MIG" # Let the user override the test.
1980 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1982 for ac_dir in $ac_dummy; do
1983 test -z "$ac_dir" && ac_dir=.
1984 if test -f $ac_dir/$ac_word; then
1985 ac_cv_prog_MIG="${ac_tool_prefix}mig"
1990 test -z "$ac_cv_prog_MIG" && ac_cv_prog_MIG="mig"
1993 MIG="$ac_cv_prog_MIG"
1994 if test -n "$MIG"; then
1995 echo "$ac_t""$MIG" 1>&6
1997 echo "$ac_t""no" 1>&6
2003 # if using special system headers, find out the compiler's sekrit
2004 # header directory and add that to the list. NOTE: Only does the right
2005 # thing on a system that doesn't need fixincludes. (Not presently a problem.)
2006 if test -n "$sysheaders"; then
2007 ccheaders=`$CC -print-file-name=include`
2008 SYSINCLUDES="-nostdinc -isystem $ccheaders -isystem $sysheaders"
2012 # check if ranlib is necessary
2013 echo $ac_n "checking whether ranlib is necessary""... $ac_c" 1>&6
2014 echo "configure:2015: checking whether ranlib is necessary" >&5
2015 if eval "test \"`echo '$''{'libc_cv_ranlib_necessary'+set}'`\" = set"; then
2016 echo $ac_n "(cached) $ac_c" 1>&6
2018 cat > conftest.c <<EOF
2023 $CC $CFLAGS -c conftest.c
2024 $AR cr conftest.a conftest.c
2025 cp conftest.a conftest2.a
2027 if cmp -s conftest.a conftest2.a; then
2028 libc_cv_ranlib_necessary=no
2030 libc_cv_ranlib_necessary=yes
2035 echo "$ac_t""$libc_cv_ranlib_necessary" 1>&6
2036 if test "$libc_cv_ranlib_necessary" = no; then
2040 # Test if LD_LIBRARY_PATH contains the notation for the current directory
2041 # since this would lead to problems installing/building glibc.
2042 # LD_LIBRARY_PATH contains the current directory if one of the following
2044 # - one of the terminals (":" and ";") is the first or last sign
2045 # - two terminals occur directly after each other
2046 # - the path contains an element with a dot in it
2047 echo $ac_n "checking LD_LIBRARY_PATH variable""... $ac_c" 1>&6
2048 echo "configure:2049: checking LD_LIBRARY_PATH variable" >&5
2049 case ${LD_LIBRARY_PATH} in
2050 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
2051 ld_library_path_setting="contains current directory"
2054 ld_library_path_setting="ok"
2057 echo "$ac_t""$ld_library_path_setting" 1>&6
2058 if test "$ld_library_path_setting" != "ok"; then
2059 { echo "configure: error:
2060 *** LD_LIBRARY_PATH shouldn't contain the current directory when
2061 *** building glibc. Please change the environment variable
2062 *** and run configure again." 1>&2; exit 1; }
2065 # Extract the first word of "bash", so it can be a program name with args.
2066 set dummy bash; ac_word=$2
2067 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2068 echo "configure:2069: checking for $ac_word" >&5
2069 if eval "test \"`echo '$''{'ac_cv_path_BASH'+set}'`\" = set"; then
2070 echo $ac_n "(cached) $ac_c" 1>&6
2074 ac_cv_path_BASH="$BASH" # Let the user override the test with a path.
2077 ac_cv_path_BASH="$BASH" # Let the user override the test with a dos path.
2080 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2082 for ac_dir in $ac_dummy; do
2083 test -z "$ac_dir" && ac_dir=.
2084 if test -f $ac_dir/$ac_word; then
2085 ac_cv_path_BASH="$ac_dir/$ac_word"
2090 test -z "$ac_cv_path_BASH" && ac_cv_path_BASH="no"
2094 BASH="$ac_cv_path_BASH"
2095 if test -n "$BASH"; then
2096 echo "$ac_t""$BASH" 1>&6
2098 echo "$ac_t""no" 1>&6
2101 if test "$BASH" != no &&
2102 $BASH -c 'test "$BASH_VERSINFO" \
2103 && test "$BASH_VERSINFO" -ge 2 >&/dev/null'; then
2104 libc_cv_have_bash2=yes
2106 libc_cv_have_bash2=no
2110 if test "$BASH" = no; then
2111 # Extract the first word of "ksh", so it can be a program name with args.
2112 set dummy ksh; ac_word=$2
2113 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2114 echo "configure:2115: checking for $ac_word" >&5
2115 if eval "test \"`echo '$''{'ac_cv_path_KSH'+set}'`\" = set"; then
2116 echo $ac_n "(cached) $ac_c" 1>&6
2120 ac_cv_path_KSH="$KSH" # Let the user override the test with a path.
2123 ac_cv_path_KSH="$KSH" # Let the user override the test with a dos path.
2126 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2128 for ac_dir in $ac_dummy; do
2129 test -z "$ac_dir" && ac_dir=.
2130 if test -f $ac_dir/$ac_word; then
2131 ac_cv_path_KSH="$ac_dir/$ac_word"
2136 test -z "$ac_cv_path_KSH" && ac_cv_path_KSH="no"
2140 KSH="$ac_cv_path_KSH"
2141 if test -n "$KSH"; then
2142 echo "$ac_t""$KSH" 1>&6
2144 echo "$ac_t""no" 1>&6
2147 if test "$KSH" = no; then
2150 libc_cv_have_ksh=yes
2155 libc_cv_have_ksh=yes
2159 for ac_prog in gawk mawk nawk awk
2161 # Extract the first word of "$ac_prog", so it can be a program name with args.
2162 set dummy $ac_prog; ac_word=$2
2163 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2164 echo "configure:2165: checking for $ac_word" >&5
2165 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
2166 echo $ac_n "(cached) $ac_c" 1>&6
2168 if test -n "$AWK"; then
2169 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2171 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2173 for ac_dir in $ac_dummy; do
2174 test -z "$ac_dir" && ac_dir=.
2175 if test -f $ac_dir/$ac_word; then
2176 ac_cv_prog_AWK="$ac_prog"
2183 AWK="$ac_cv_prog_AWK"
2184 if test -n "$AWK"; then
2185 echo "$ac_t""$AWK" 1>&6
2187 echo "$ac_t""no" 1>&6
2190 test -n "$AWK" && break
2193 # Extract the first word of "perl", so it can be a program name with args.
2194 set dummy perl; ac_word=$2
2195 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2196 echo "configure:2197: checking for $ac_word" >&5
2197 if eval "test \"`echo '$''{'ac_cv_path_PERL'+set}'`\" = set"; then
2198 echo $ac_n "(cached) $ac_c" 1>&6
2202 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
2205 ac_cv_path_PERL="$PERL" # Let the user override the test with a dos path.
2208 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2210 for ac_dir in $ac_dummy; do
2211 test -z "$ac_dir" && ac_dir=.
2212 if test -f $ac_dir/$ac_word; then
2213 ac_cv_path_PERL="$ac_dir/$ac_word"
2218 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="no"
2222 PERL="$ac_cv_path_PERL"
2223 if test -n "$PERL"; then
2224 echo "$ac_t""$PERL" 1>&6
2226 echo "$ac_t""no" 1>&6
2229 if test "$PERL" != no &&
2230 (eval `$PERL -V:apiversion`; test `expr "$apiversion" \< 5` -ne 0); then
2233 # Extract the first word of "install-info", so it can be a program name with args.
2234 set dummy install-info; ac_word=$2
2235 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2236 echo "configure:2237: checking for $ac_word" >&5
2237 if eval "test \"`echo '$''{'ac_cv_path_INSTALL_INFO'+set}'`\" = set"; then
2238 echo $ac_n "(cached) $ac_c" 1>&6
2240 case "$INSTALL_INFO" in
2242 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
2245 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a dos path.
2248 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2249 ac_dummy="$PATH:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin"
2250 for ac_dir in $ac_dummy; do
2251 test -z "$ac_dir" && ac_dir=.
2252 if test -f $ac_dir/$ac_word; then
2253 ac_cv_path_INSTALL_INFO="$ac_dir/$ac_word"
2258 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO="no"
2262 INSTALL_INFO="$ac_cv_path_INSTALL_INFO"
2263 if test -n "$INSTALL_INFO"; then
2264 echo "$ac_t""$INSTALL_INFO" 1>&6
2266 echo "$ac_t""no" 1>&6
2269 if test "$INSTALL_INFO" != "no"; then
2270 echo $ac_n "checking for old Debian install-info""... $ac_c" 1>&6
2271 echo "configure:2272: checking for old Debian install-info" >&5
2272 if eval "test \"`echo '$''{'libc_cv_old_debian_install_info'+set}'`\" = set"; then
2273 echo $ac_n "(cached) $ac_c" 1>&6
2276 # There is a hard ^_ on the next line. I am open to better ideas.
2278 echo 'File: dir Node: Top This is the top of the INFO tree'
2279 echo '* Menu:') >conftest.d/dir
2280 (echo 'INFO-DIR-SECTION i-d-s works'
2281 echo 'START-INFO-DIR-ENTRY'
2282 echo '* Prog: (prog). Program.'
2283 echo 'END-INFO-DIR-ENTRY') >conftest.d/prog.info
2284 if $INSTALL_INFO --info-dir=conftest.d conftest.d/prog.info >&5 2>&1
2286 if grep -s 'i-d-s works' conftest.d/dir >/dev/null
2287 then libc_cv_old_debian_install_info=no
2288 else libc_cv_old_debian_install_info=yes
2290 else libc_cv_old_debian_install_info=no testfailed=t
2295 echo "$ac_t""$libc_cv_old_debian_install_info" 1>&6
2296 if test -n "$testfailed"
2297 then echo "configure: warning: install-info errored out, check config.log" 1>&2
2299 OLD_DEBIAN_INSTALL_INFO=$libc_cv_old_debian_install_info
2303 echo $ac_n "checking for signed size_t type""... $ac_c" 1>&6
2304 echo "configure:2305: checking for signed size_t type" >&5
2305 if eval "test \"`echo '$''{'libc_cv_signed_size_t'+set}'`\" = set"; then
2306 echo $ac_n "(cached) $ac_c" 1>&6
2308 echo '#include <stddef.h>
2309 FOOBAR __SIZE_TYPE__ FOOBAR' > conftest.c
2310 if eval "$ac_cpp conftest.c 2>/dev/null" \
2311 | grep '^FOOBAR.*unsigned.*FOOBAR$' >/dev/null; then
2312 libc_cv_signed_size_t=no
2314 libc_cv_signed_size_t=yes
2319 echo "$ac_t""$libc_cv_signed_size_t" 1>&6
2320 if test $libc_cv_signed_size_t = yes; then
2321 cat >> confdefs.h <<\EOF
2322 #undef __SIZE_TYPE__
2323 #define __SIZE_TYPE__ unsigned
2327 echo $ac_n "checking for libc-friendly stddef.h""... $ac_c" 1>&6
2328 echo "configure:2329: checking for libc-friendly stddef.h" >&5
2329 if eval "test \"`echo '$''{'libc_cv_friendly_stddef'+set}'`\" = set"; then
2330 echo $ac_n "(cached) $ac_c" 1>&6
2332 cat > conftest.$ac_ext <<EOF
2333 #line 2334 "configure"
2334 #include "confdefs.h"
2335 #define __need_size_t
2336 #define __need_wchar_t
2341 size_t size; wchar_t wchar;
2343 #error stddef.h ignored __need_*
2345 if (&size == NULL || &wchar == NULL) abort ();
2348 if { (eval echo configure:2349: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2350 libc_cv_friendly_stddef=yes
2352 echo "configure: failed program was:" >&5
2353 cat conftest.$ac_ext >&5
2355 libc_cv_friendly_stddef=no
2360 echo "$ac_t""$libc_cv_friendly_stddef" 1>&6
2361 if test $libc_cv_friendly_stddef = yes; then
2362 config_vars="$config_vars
2363 override stddef.h = # The installed <stddef.h> seems to be libc-friendly."
2366 echo $ac_n "checking whether we need to use -P to assemble .S files""... $ac_c" 1>&6
2367 echo "configure:2368: checking whether we need to use -P to assemble .S files" >&5
2368 if eval "test \"`echo '$''{'libc_cv_need_minus_P'+set}'`\" = set"; then
2369 echo $ac_n "(cached) $ac_c" 1>&6
2371 cat > conftest.S <<EOF
2372 #include "confdefs.h"
2373 /* Nothing whatsoever. */
2375 if ${CC-cc} $CFLAGS -c conftest.S 2>/dev/null; then
2376 libc_cv_need_minus_P=no
2378 libc_cv_need_minus_P=yes
2383 echo "$ac_t""$libc_cv_need_minus_P" 1>&6
2384 if test $libc_cv_need_minus_P = yes; then
2385 config_vars="$config_vars
2386 asm-CPPFLAGS = -P # The assembler can't grok cpp's # line directives."
2389 echo $ac_n "checking whether .text pseudo-op must be used""... $ac_c" 1>&6
2390 echo "configure:2391: checking whether .text pseudo-op must be used" >&5
2391 if eval "test \"`echo '$''{'libc_cv_dot_text'+set}'`\" = set"; then
2392 echo $ac_n "(cached) $ac_c" 1>&6
2394 cat > conftest.s <<EOF
2398 if ${CC-cc} $CFLAGS -c conftest.s 2>/dev/null; then
2399 libc_cv_dot_text=.text
2404 if test -z "$libc_cv_dot_text"; then
2405 echo "$ac_t""no" 1>&6
2407 echo "$ac_t""yes" 1>&6
2410 echo $ac_n "checking for assembler global-symbol directive""... $ac_c" 1>&6
2411 echo "configure:2412: checking for assembler global-symbol directive" >&5
2412 if eval "test \"`echo '$''{'libc_cv_asm_global_directive'+set}'`\" = set"; then
2413 echo $ac_n "(cached) $ac_c" 1>&6
2415 libc_cv_asm_global_directive=UNKNOWN
2416 for ac_globl in .globl .global .EXPORT; do
2417 cat > conftest.s <<EOF
2422 if ${CC-cc} $CFLAGS -c conftest.s 2>/dev/null; then
2423 libc_cv_asm_global_directive=${ac_globl}
2426 test $libc_cv_asm_global_directive != UNKNOWN && break
2430 echo "$ac_t""$libc_cv_asm_global_directive" 1>&6
2431 if test $libc_cv_asm_global_directive = UNKNOWN; then
2432 { echo "configure: error: cannot determine asm global directive" 1>&2; exit 1; }
2434 cat >> confdefs.h <<EOF
2435 #define ASM_GLOBAL_DIRECTIVE ${libc_cv_asm_global_directive}
2440 echo $ac_n "checking for .set assembler directive""... $ac_c" 1>&6
2441 echo "configure:2442: checking for .set assembler directive" >&5
2442 if eval "test \"`echo '$''{'libc_cv_asm_set_directive'+set}'`\" = set"; then
2443 echo $ac_n "(cached) $ac_c" 1>&6
2445 cat > conftest.s <<EOF
2448 .set glibc_conftest_frobozz,foo
2449 $libc_cv_asm_global_directive glibc_conftest_frobozz
2451 # The alpha-dec-osf1 assembler gives only a warning for `.set'
2452 # (but it doesn't work), so we must do a linking check to be sure.
2453 cat > conftest1.c <<\EOF
2454 extern int glibc_conftest_frobozz;
2455 main () { printf ("%d\n", glibc_conftest_frobozz); }
2457 if ${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \
2458 -o conftest conftest.s conftest1.c 1>&5 2>&5; then
2459 libc_cv_asm_set_directive=yes
2461 libc_cv_asm_set_directive=no
2466 echo "$ac_t""$libc_cv_asm_set_directive" 1>&6
2467 if test $libc_cv_asm_set_directive = yes; then
2468 cat >> confdefs.h <<\EOF
2469 #define HAVE_ASM_SET_DIRECTIVE 1
2474 echo $ac_n "checking for .symver assembler directive""... $ac_c" 1>&6
2475 echo "configure:2476: checking for .symver assembler directive" >&5
2476 if eval "test \"`echo '$''{'libc_cv_asm_symver_directive'+set}'`\" = set"; then
2477 echo $ac_n "(cached) $ac_c" 1>&6
2479 cat > conftest.s <<EOF
2482 .symver _sym,sym@VERS
2484 if ${CC-cc} -c $CFLAGS $CPPFLAGS conftest.s 1>&5 2>&5; then
2485 libc_cv_asm_symver_directive=yes
2487 libc_cv_asm_symver_directive=no
2492 echo "$ac_t""$libc_cv_asm_symver_directive" 1>&6
2493 echo $ac_n "checking for ld --version-script""... $ac_c" 1>&6
2494 echo "configure:2495: checking for ld --version-script" >&5
2495 if eval "test \"`echo '$''{'libc_cv_ld_version_script_option'+set}'`\" = set"; then
2496 echo $ac_n "(cached) $ac_c" 1>&6
2498 if test $libc_cv_asm_symver_directive = yes; then
2499 cat > conftest.s <<EOF
2502 .symver _sym,sym@VERS
2504 cat > conftest.map <<EOF
2513 if ${CC-cc} -c $CFLAGS $CPPFLAGS conftest.s 1>&5 2>&5; then
2514 if { ac_try='${CC-cc} $CFLAGS -shared -o conftest.so conftest.o
2515 -nostartfiles -nostdlib
2516 -Wl,--version-script,conftest.map
2517 1>&5'; { (eval echo configure:2518: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; };
2519 libc_cv_ld_version_script_option=yes
2521 libc_cv_ld_version_script_option=no
2524 libc_cv_ld_version_script_option=no
2527 libc_cv_ld_version_script_option=no
2532 echo "$ac_t""$libc_cv_ld_version_script_option" 1>&6
2533 if test $shared != no &&
2534 test $libc_cv_asm_symver_directive = yes &&
2535 test $libc_cv_ld_version_script_option = yes &&
2536 test $enable_versioning = yes; then
2538 cat >> confdefs.h <<\EOF
2539 #define DO_VERSIONING 1
2547 if test $shared != no && test $VERSIONING = no; then
2549 *** WARNING: You should not compile GNU libc without versioning. Not using
2550 *** versioning will introduce incompatibilities so that old binaries
2551 *** will not run anymore.
2552 *** For versioning you need recent binutils (binutils-2.8.1.0.23 or newer)."
2554 if test $elf = yes; then
2555 echo $ac_n "checking for .previous assembler directive""... $ac_c" 1>&6
2556 echo "configure:2557: checking for .previous assembler directive" >&5
2557 if eval "test \"`echo '$''{'libc_cv_asm_previous_directive'+set}'`\" = set"; then
2558 echo $ac_n "(cached) $ac_c" 1>&6
2560 cat > conftest.s <<EOF
2561 .section foo_section
2564 if { ac_try='${CC-cc} -c $CFLAGS conftest.s 1>&5'; { (eval echo configure:2565: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
2565 libc_cv_asm_previous_directive=yes
2567 libc_cv_asm_previous_directive=no
2572 echo "$ac_t""$libc_cv_asm_previous_directive" 1>&6
2573 if test $libc_cv_asm_previous_directive = yes; then
2574 cat >> confdefs.h <<\EOF
2575 #define HAVE_ASM_PREVIOUS_DIRECTIVE 1
2579 echo $ac_n "checking for .popsection assembler directive""... $ac_c" 1>&6
2580 echo "configure:2581: checking for .popsection assembler directive" >&5
2581 if eval "test \"`echo '$''{'libc_cv_asm_popsection_directive'+set}'`\" = set"; then
2582 echo $ac_n "(cached) $ac_c" 1>&6
2584 cat > conftest.s <<EOF
2585 .pushsection foo_section
2588 if { ac_try='${CC-cc} -c $CFLAGS conftest.s 1>&5'; { (eval echo configure:2589: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
2589 libc_cv_asm_popsection_directive=yes
2591 libc_cv_asm_popsection_directive=no
2596 echo "$ac_t""$libc_cv_asm_popsection_directive" 1>&6
2597 if test $libc_cv_asm_popsection_directive = yes; then
2598 cat >> confdefs.h <<\EOF
2599 #define HAVE_ASM_POPSECTION_DIRECTIVE 1
2604 echo $ac_n "checking for .protected and .hidden assembler directive""... $ac_c" 1>&6
2605 echo "configure:2606: checking for .protected and .hidden assembler directive" >&5
2606 if eval "test \"`echo '$''{'libc_cv_asm_protected_directive'+set}'`\" = set"; then
2607 echo $ac_n "(cached) $ac_c" 1>&6
2609 cat > conftest.s <<EOF
2615 if { ac_try='${CC-cc} -c $CFLAGS conftest.s 1>&5'; { (eval echo configure:2616: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
2616 libc_cv_asm_protected_directive=yes
2618 libc_cv_asm_protected_directive=no
2623 echo "$ac_t""$libc_cv_asm_protected_directive" 1>&6
2626 echo $ac_n "checking for -z nodelete option""... $ac_c" 1>&6
2627 echo "configure:2628: checking for -z nodelete option" >&5
2628 if eval "test \"`echo '$''{'libc_cv_z_nodelete'+set}'`\" = set"; then
2629 echo $ac_n "(cached) $ac_c" 1>&6
2631 cat > conftest.c <<EOF
2632 int _start (void) { return 42; }
2634 if { ac_try='${CC-cc} -shared -o conftest.so conftest.c -Wl,--enable-new-dtags,-z,nodelete 1>&5'; { (eval echo configure:2635: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }
2636 libc_cv_z_nodelete=yes
2638 libc_cv_z_nodelete=no
2643 echo "$ac_t""$libc_cv_z_nodelete" 1>&6
2646 echo $ac_n "checking for -z nodlopen option""... $ac_c" 1>&6
2647 echo "configure:2648: checking for -z nodlopen option" >&5
2648 if eval "test \"`echo '$''{'libc_cv_z_nodlopen'+set}'`\" = set"; then
2649 echo $ac_n "(cached) $ac_c" 1>&6
2651 cat > conftest.c <<EOF
2652 int _start (void) { return 42; }
2654 if { ac_try='${CC-cc} -shared -o conftest.so conftest.c -Wl,--enable-new-dtags,-z,nodlopen 1>&5'; { (eval echo configure:2655: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }
2656 libc_cv_z_nodlopen=yes
2658 libc_cv_z_nodlopen=no
2663 echo "$ac_t""$libc_cv_z_nodlopen" 1>&6
2667 if test $elf != yes; then
2668 echo $ac_n "checking for .init and .fini sections""... $ac_c" 1>&6
2669 echo "configure:2670: checking for .init and .fini sections" >&5
2670 if eval "test \"`echo '$''{'libc_cv_have_initfini'+set}'`\" = set"; then
2671 echo $ac_n "(cached) $ac_c" 1>&6
2673 cat > conftest.$ac_ext <<EOF
2674 #line 2675 "configure"
2675 #include "confdefs.h"
2678 asm (".section .init");
2679 asm (".section .fini");
2680 asm ("${libc_cv_dot_text}");
2683 if { (eval echo configure:2684: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2685 libc_cv_have_initfini=yes
2687 echo "configure: failed program was:" >&5
2688 cat conftest.$ac_ext >&5
2690 libc_cv_have_initfini=no
2695 echo "$ac_t""$libc_cv_have_initfini" 1>&6
2696 if test $libc_cv_have_initfini = yes; then
2697 cat >> confdefs.h <<\EOF
2698 #define HAVE_INITFINI 1
2704 if test $elf = yes -a $gnu_ld = yes; then
2705 echo $ac_n "checking whether cc puts quotes around section names""... $ac_c" 1>&6
2706 echo "configure:2707: checking whether cc puts quotes around section names" >&5
2707 if eval "test \"`echo '$''{'libc_cv_have_section_quotes'+set}'`\" = set"; then
2708 echo $ac_n "(cached) $ac_c" 1>&6
2710 cat > conftest.c <<EOF
2711 static const int foo
2712 __attribute__ ((section ("bar"))) = 1;
2714 if ${CC-cc} -S conftest.c -o conftest.s; then
2715 if grep '\.section.*"bar"' conftest.s >/dev/null; then
2716 libc_cv_have_section_quotes=yes
2718 libc_cv_have_section_quotes=no
2721 libc_cv_have_section_quotes=unknown
2727 echo "$ac_t""$libc_cv_have_section_quotes" 1>&6
2728 if test $libc_cv_have_section_quotes = yes; then
2729 cat >> confdefs.h <<\EOF
2730 #define HAVE_SECTION_QUOTES 1
2738 if test $elf = yes; then
2739 libc_cv_asm_underscores=no
2741 if test $ac_cv_prog_cc_works = yes; then
2742 echo $ac_n "checking for _ prefix on C symbol names""... $ac_c" 1>&6
2743 echo "configure:2744: checking for _ prefix on C symbol names" >&5
2744 if eval "test \"`echo '$''{'libc_cv_asm_underscores'+set}'`\" = set"; then
2745 echo $ac_n "(cached) $ac_c" 1>&6
2747 cat > conftest.$ac_ext <<EOF
2748 #line 2749 "configure"
2749 #include "confdefs.h"
2750 asm ("_glibc_foobar:");
2755 if { (eval echo configure:2756: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2757 libc_cv_asm_underscores=yes
2759 echo "configure: failed program was:" >&5
2760 cat conftest.$ac_ext >&5
2762 libc_cv_asm_underscores=no
2767 echo "$ac_t""$libc_cv_asm_underscores" 1>&6
2769 echo $ac_n "checking for _ prefix on C symbol names""... $ac_c" 1>&6
2770 echo "configure:2771: checking for _ prefix on C symbol names" >&5
2771 if eval "test \"`echo '$''{'libc_cv_asm_underscores'+set}'`\" = set"; then
2772 echo $ac_n "(cached) $ac_c" 1>&6
2774 cat > conftest.$ac_ext <<EOF
2775 #line 2776 "configure"
2776 #include "confdefs.h"
2777 void underscore_test(void) {
2780 if { (eval echo configure:2781: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2781 if grep _underscore_test conftest* >/dev/null; then
2783 libc_cv_asm_underscores=yes
2786 libc_cv_asm_underscores=no
2789 echo "configure: failed program was:" >&5
2790 cat conftest.$ac_ext >&5
2792 libc_cv_asm_underscores=no
2797 echo "$ac_t""$libc_cv_asm_underscores" 1>&6
2800 if test $libc_cv_asm_underscores = no; then
2801 cat >> confdefs.h <<\EOF
2802 #define NO_UNDERSCORES 1
2807 if test $elf = yes; then
2808 libc_cv_weak_symbols=yes
2811 echo $ac_n "checking for assembler .weak directive""... $ac_c" 1>&6
2812 echo "configure:2813: checking for assembler .weak directive" >&5
2813 if eval "test \"`echo '$''{'libc_cv_asm_weak_directive'+set}'`\" = set"; then
2814 echo $ac_n "(cached) $ac_c" 1>&6
2816 cat > conftest.s <<EOF
2818 ${libc_cv_asm_global_directive} foo
2821 .weak bar; bar = foo
2823 if ${CC-cc} $CFLAGS -c conftest.s 2>/dev/null; then
2824 libc_cv_asm_weak_directive=yes
2826 libc_cv_asm_weak_directive=no
2831 echo "$ac_t""$libc_cv_asm_weak_directive" 1>&6
2833 if test $libc_cv_asm_weak_directive = no; then
2834 echo $ac_n "checking for assembler .weakext directive""... $ac_c" 1>&6
2835 echo "configure:2836: checking for assembler .weakext directive" >&5
2836 if eval "test \"`echo '$''{'libc_cv_asm_weakext_directive'+set}'`\" = set"; then
2837 echo $ac_n "(cached) $ac_c" 1>&6
2839 cat > conftest.s <<EOF
2841 ${libc_cv_asm_global_directive} foo
2845 ${libc_cv_asm_global_directive} baz
2848 if ${CC-cc} $CFLAGS -c conftest.s 2>/dev/null; then
2849 libc_cv_asm_weakext_directive=yes
2851 libc_cv_asm_weakext_directive=no
2856 echo "$ac_t""$libc_cv_asm_weakext_directive" 1>&6
2860 if test $libc_cv_asm_weak_directive = yes; then
2861 cat >> confdefs.h <<\EOF
2862 #define HAVE_ASM_WEAK_DIRECTIVE 1
2865 elif test $libc_cv_asm_weakext_directive = yes; then
2866 cat >> confdefs.h <<\EOF
2867 #define HAVE_ASM_WEAKEXT_DIRECTIVE 1
2872 echo $ac_n "checking for ld --no-whole-archive""... $ac_c" 1>&6
2873 echo "configure:2874: checking for ld --no-whole-archive" >&5
2874 if eval "test \"`echo '$''{'libc_cv_ld_no_whole_archive'+set}'`\" = set"; then
2875 echo $ac_n "(cached) $ac_c" 1>&6
2877 cat > conftest.c <<\EOF
2882 if { ac_try='${CC-cc} $CFLAGS
2883 -nostdlib -nostartfiles -Wl,--no-whole-archive
2884 -o conftest conftest.c 1>&5'; { (eval echo configure:2885: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
2885 libc_cv_ld_no_whole_archive=yes
2887 libc_cv_ld_no_whole_archive=no
2892 echo "$ac_t""$libc_cv_ld_no_whole_archive" 1>&6
2893 if test $libc_cv_ld_no_whole_archive = yes; then
2894 no_whole_archive=-Wl,--no-whole-archive
2897 echo $ac_n "checking for gcc -fexceptions""... $ac_c" 1>&6
2898 echo "configure:2899: checking for gcc -fexceptions" >&5
2899 if eval "test \"`echo '$''{'libc_cv_gcc_exceptions'+set}'`\" = set"; then
2900 echo $ac_n "(cached) $ac_c" 1>&6
2902 cat > conftest.c <<\EOF
2907 if { ac_try='${CC-cc} $CFLAGS
2908 -nostdlib -nostartfiles -fexceptions
2909 -o conftest conftest.c 1>&5'; { (eval echo configure:2910: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
2910 libc_cv_gcc_exceptions=yes
2912 libc_cv_gcc_exceptions=no
2917 echo "$ac_t""$libc_cv_gcc_exceptions" 1>&6
2918 if test $libc_cv_gcc_exceptions = yes; then
2919 exceptions=-fexceptions
2922 if test "$base_machine" = alpha ; then
2923 echo $ac_n "checking for function ..ng prefix""... $ac_c" 1>&6
2924 echo "configure:2925: checking for function ..ng prefix" >&5
2925 if eval "test \"`echo '$''{'libc_cv_gcc_alpha_ng_prefix'+set}'`\" = set"; then
2926 echo $ac_n "(cached) $ac_c" 1>&6
2928 cat > conftest.c <<\EOF
2931 if { ac_try='${CC-cc} -S conftest.c -o - | fgrep "\$foo..ng" > /dev/null'; { (eval echo configure:2932: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; };
2933 libc_cv_gcc_alpha_ng_prefix=yes
2935 libc_cv_gcc_alpha_ng_prefix=no
2940 echo "$ac_t""$libc_cv_gcc_alpha_ng_prefix" 1>&6
2941 if test $libc_cv_gcc_alpha_ng_prefix = yes ; then
2942 cat >> confdefs.h <<\EOF
2943 #define ASM_ALPHA_NG_SYMBOL_PREFIX "$"
2947 cat >> confdefs.h <<\EOF
2948 #define ASM_ALPHA_NG_SYMBOL_PREFIX ""
2954 if test "$host_cpu" = powerpc ; then
2955 # Check for a bug present in at least versions 2.8.x of GCC
2956 # and versions 1.0.x of EGCS.
2957 echo $ac_n "checking whether clobbering cr0 causes problems""... $ac_c" 1>&6
2958 echo "configure:2959: checking whether clobbering cr0 causes problems" >&5
2959 if eval "test \"`echo '$''{'libc_cv_c_asmcr0_bug'+set}'`\" = set"; then
2960 echo $ac_n "(cached) $ac_c" 1>&6
2962 cat > conftest.$ac_ext <<EOF
2963 #line 2964 "configure"
2964 #include "confdefs.h"
2965 int tester(int x) { asm ("" : : : "cc"); return x & 123; }
2970 if { (eval echo configure:2971: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2972 libc_cv_c_asmcr0_bug='no'
2974 echo "configure: failed program was:" >&5
2975 cat conftest.$ac_ext >&5
2977 libc_cv_c_asmcr0_bug='yes'
2982 echo "$ac_t""$libc_cv_c_asmcr0_bug" 1>&6
2983 if test "$libc_cv_c_asmcr0_bug" != 'no'; then
2984 cat >> confdefs.h <<\EOF
2985 #define BROKEN_PPC_ASM_CR0 1
2991 echo $ac_n "checking for DWARF2 unwind info support""... $ac_c" 1>&6
2992 echo "configure:2993: checking for DWARF2 unwind info support" >&5
2993 if eval "test \"`echo '$''{'libc_cv_gcc_dwarf2_unwind_info'+set}'`\" = set"; then
2994 echo $ac_n "(cached) $ac_c" 1>&6
2996 cat > conftest.c <<EOF
2997 #line 2998 "configure"
2998 static char __EH_FRAME_BEGIN__;
3001 #ifdef CHECK__register_frame
3002 __register_frame (__EH_FRAME_BEGIN__);
3003 __deregister_frame (__EH_FRAME_BEGIN__);
3005 #ifdef CHECK__register_frame_info
3006 __register_frame_info (__EH_FRAME_BEGIN__);
3007 __deregister_frame_info (__EH_FRAME_BEGIN__);
3012 /* FIXME: this is fragile. */
3022 if { ac_try='${CC-cc} $CFLAGS -DCHECK__register_frame_info
3023 -nostdlib -nostartfiles
3024 -o conftest conftest.c -lgcc >&5'; { (eval echo configure:3025: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
3025 libc_cv_gcc_dwarf2_unwind_info=static
3027 libc_cv_gcc_dwarf2_unwind_info=no
3029 if test $libc_cv_gcc_dwarf2_unwind_info = no; then
3030 if { ac_try='${CC-cc} $CFLAGS -DCHECK__register_frame
3031 -nostdlib -nostartfiles
3032 -o conftest conftest.c -lgcc >&5'; { (eval echo configure:3033: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
3033 libc_cv_gcc_dwarf2_unwind_info=yes
3035 libc_cv_gcc_dwarf2_unwind_info=no
3041 echo "$ac_t""$libc_cv_gcc_dwarf2_unwind_info" 1>&6
3042 case $libc_cv_gcc_dwarf2_unwind_info in
3044 cat >> confdefs.h <<\EOF
3045 #define HAVE_DWARF2_UNWIND_INFO 1
3050 cat >> confdefs.h <<\EOF
3051 #define HAVE_DWARF2_UNWIND_INFO 1
3054 cat >> confdefs.h <<\EOF
3055 #define HAVE_DWARF2_UNWIND_INFO_STATIC 1
3061 echo $ac_n "checking for __builtin_expect""... $ac_c" 1>&6
3062 echo "configure:3063: checking for __builtin_expect" >&5
3063 if eval "test \"`echo '$''{'libc_cv_gcc_builtin_expect'+set}'`\" = set"; then
3064 echo $ac_n "(cached) $ac_c" 1>&6
3066 cat > conftest.c <<EOF
3067 #line 3068 "configure"
3070 a = __builtin_expect (a, 10);
3071 return a == 10 ? 0 : 1;
3074 if { ac_try='${CC-cc} $CFLAGS -nostdlib -nostartfiles
3075 -o conftest conftest.c -lgcc >&5'; { (eval echo configure:3076: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
3076 libc_cv_gcc_builtin_expect=yes
3078 libc_cv_gcc_builtin_expect=no
3083 echo "$ac_t""$libc_cv_gcc_builtin_expect" 1>&6
3084 if test "$libc_cv_gcc_builtin_expect" = yes; then
3085 cat >> confdefs.h <<\EOF
3086 #define HAVE_BUILTIN_EXPECT 1
3091 echo $ac_n "checking for local label subtraction""... $ac_c" 1>&6
3092 echo "configure:3093: checking for local label subtraction" >&5
3093 if eval "test \"`echo '$''{'libc_cv_gcc_subtract_local_labels'+set}'`\" = set"; then
3094 echo $ac_n "(cached) $ac_c" 1>&6
3096 cat > conftest.c <<EOF
3097 #line 3098 "configure"
3100 static const int ar[] = { &&l1 - &&l1, &&l2 - &&l1 };
3101 void *p = &&l1 + ar[a];
3109 if { ac_try='${CC-cc} $CFLAGS -nostdlib -nostartfiles
3110 -o conftest conftest.c -lgcc >&5'; { (eval echo configure:3111: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
3111 libc_cv_gcc_subtract_local_labels=yes
3113 libc_cv_gcc_subtract_local_labels=no
3118 echo "$ac_t""$libc_cv_gcc_subtract_local_labels" 1>&6
3119 if test "$libc_cv_gcc_subtract_local_labels" = yes; then
3120 cat >> confdefs.h <<\EOF
3121 #define HAVE_SUBTRACT_LOCAL_LABELS 1
3126 echo $ac_n "checking for libgd""... $ac_c" 1>&6
3127 echo "configure:3128: checking for libgd" >&5
3128 old_CFLAGS="$CFLAGS"
3129 CFLAGS="$CFLAGS $libgd_include"
3130 old_LDFLAGS="$LDFLAGS"
3131 LDFLAGS="$LDFLAGS $libgd_ldflags"
3133 LIBS="$LIBS -lgd -lpng -lz -lm"
3134 cat > conftest.$ac_ext <<EOF
3135 #line 3136 "configure"
3136 #include "confdefs.h"
3142 if { (eval echo configure:3143: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3146 echo "configure: failed program was:" >&5
3147 cat conftest.$ac_ext >&5
3152 CFLAGS="$old_CFLAGS"
3153 LDFLAGS="$old_LDFLAGS"
3155 echo "$ac_t""$LIBGD" 1>&6
3158 echo $ac_n "checking size of long double""... $ac_c" 1>&6
3159 echo "configure:3160: checking size of long double" >&5
3160 if eval "test \"`echo '$''{'ac_cv_sizeof_long_double'+set}'`\" = set"; then
3161 echo $ac_n "(cached) $ac_c" 1>&6
3163 if test "$cross_compiling" = yes; then
3164 ac_cv_sizeof_long_double=0
3166 cat > conftest.$ac_ext <<EOF
3167 #line 3168 "configure"
3168 #include "confdefs.h"
3172 FILE *f=fopen("conftestval", "w");
3174 fprintf(f, "%d\n", sizeof(long double));
3178 if { (eval echo configure:3179: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3180 ac_cv_sizeof_long_double=`cat conftestval`
3182 echo "configure: failed program was:" >&5
3183 cat conftest.$ac_ext >&5
3185 ac_cv_sizeof_long_double=0
3191 echo "$ac_t""$ac_cv_sizeof_long_double" 1>&6
3192 cat >> confdefs.h <<EOF
3193 #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
3197 sizeof_long_double=$ac_cv_sizeof_long_double
3200 ### End of automated tests.
3201 ### Now run sysdeps configure fragments.
3203 # sysdeps configure fragments may set these with files to be linked below.
3207 # They also can set these variables.
3209 ldd_rewrite_script=no
3211 # Iterate over all the sysdep directories we will use, running their
3212 # configure fragments, and looking for a uname implementation.
3214 for dir in $sysnames; do
3217 *) dest=$srcdir/$dir ;;
3219 if test -r $dest/configure; then
3220 echo "$ac_t""running configure fragment for $dest" 1>&6
3224 if test -z "$uname"; then
3225 if test -r $dest/uname.c ||
3226 test -r $dest/uname.S ||
3227 { test -r $dest/syscalls.list &&
3228 grep '^uname[ ]' $dest/syscalls.list >/dev/null; }; then
3236 # If we will use the generic uname implementation, we must figure out what
3237 # it will say by examining the system, and write the results in config-name.h.
3238 if test "$uname" = "sysdeps/generic"; then
3240 uname_sysname=`echo $config_os | sed 's/[0-9.]*$//'`
3241 if test $uname_sysname != $config_os; then
3242 config_release=`echo $config_os | sed s/$uname_sysname//`
3245 echo $ac_n "checking OS release for uname""... $ac_c" 1>&6
3246 echo "configure:3247: checking OS release for uname" >&5
3247 if eval "test \"`echo '$''{'libc_cv_uname_release'+set}'`\" = set"; then
3248 echo $ac_n "(cached) $ac_c" 1>&6
3250 kernel_release=`echo "$kernel_id" | sed 's/^[^0-9.]*\([0-9.]*\).*$/\1/'`
3251 if test x`echo "$config_release" | sed "s/^$kernel_release//"` \
3252 != x$config_release; then
3253 # The configuration release is a substring of the kernel release.
3254 libc_cv_uname_release=$kernel_release
3255 elif test x$config_release != x; then
3256 libc_cv_uname_release=$config_release
3257 elif test x$kernel_release != x; then
3258 libc_cv_uname_release=$kernel_release
3260 libc_cv_uname_release=unknown
3264 echo "$ac_t""$libc_cv_uname_release" 1>&6
3265 uname_release="$libc_cv_uname_release"
3267 echo $ac_n "checking OS version for uname""... $ac_c" 1>&6
3268 echo "configure:3269: checking OS version for uname" >&5
3269 if eval "test \"`echo '$''{'libc_cv_uname_version'+set}'`\" = set"; then
3270 echo $ac_n "(cached) $ac_c" 1>&6
3272 kernel_version=`echo "$kernel_id" | sed 's/^[^#]*#\([0-9]*\).*$/\1/'`
3273 if test -n "$kernel_version"; then
3274 libc_cv_uname_version="$kernel_version"
3276 libc_cv_uname_version=unknown
3280 echo "$ac_t""$libc_cv_uname_version" 1>&6
3281 uname_version="$libc_cv_uname_version"
3283 config_uname=config-name.h:config-name.in
3285 # For non-generic uname, we don't need to create config-name.h at all.
3289 echo $ac_n "checking stdio selection""... $ac_c" 1>&6
3290 echo "configure:3291: checking stdio selection" >&5
3293 libio) cat >> confdefs.h <<\EOF
3294 #define USE_IN_LIBIO 1
3297 default) stdio=stdio ;;
3299 echo "$ac_t""$stdio" 1>&6
3301 # Test for old glibc 2.0.x headers so that they can be removed properly
3302 # Search only in includedir.
3303 echo $ac_n "checking for old glibc 2.0.x headers""... $ac_c" 1>&6
3304 echo "configure:3305: checking for old glibc 2.0.x headers" >&5
3305 if eval test -f "${includedir}/elfclass.h" -a -f "${includedir}/fcntlbits.h"
3307 old_glibc_headers=yes
3309 old_glibc_headers=no
3311 echo "$ac_t""$old_glibc_headers" 1>&6
3312 if test ${old_glibc_headers} = yes; then
3313 echo "configure: warning: *** During \"make install\" old headers from glibc 2.0.x will" 1>&2
3314 echo "configure: warning: *** be removed." 1>&2
3327 if test $gnu_ld = yes; then
3328 cat >> confdefs.h <<\EOF
3329 #define HAVE_GNU_LD 1
3333 if test $gnu_as = yes; then
3334 cat >> confdefs.h <<\EOF
3335 #define HAVE_GNU_AS 1
3339 if test $elf = yes; then
3340 cat >> confdefs.h <<\EOF
3348 if test $shared = default; then
3349 if test $gnu_ld = yes; then
3352 # For now we do not assume shared libs are available. In future more
3353 # tests might become available.
3358 echo $ac_n "checking whether -fPIC is default""... $ac_c" 1>&6
3359 echo "configure:3360: checking whether -fPIC is default" >&5
3360 if eval "test \"`echo '$''{'pic_default'+set}'`\" = set"; then
3361 echo $ac_n "(cached) $ac_c" 1>&6
3364 cat > conftest.c <<EOF
3365 #if defined __PIC__ || defined __pic__ || defined PIC || defined pic
3366 # error PIC is default.
3369 if eval "${CC-cc} -S conftest.c 2>&5 1>&5"; then
3375 echo "$ac_t""$pic_default" 1>&6
3387 *door*) linux_doors=yes ;;
3388 *) linux_doors=no ;;
3392 if test "`(cd $srcdir; pwd)`" = "`pwd`"; then
3395 config_makefile=Makefile
3398 VERSION=`sed -n -e 's/^#define VERSION "\([^"]*\)"/\1/p' < $srcdir/version.h`
3399 RELEASE=`sed -n -e 's/^#define RELEASE "\([^"]*\)"/\1/p' < $srcdir/version.h`
3403 echo '*** Do NOT install this release on any production system!'
3404 echo '*** We are in early testing stages.'
3407 cat > confcache <<\EOF
3408 # This file is a shell script that caches the results of configure
3409 # tests run on this system so they can be shared between configure
3410 # scripts and configure runs. It is not useful on other systems.
3411 # If it contains results you don't want to keep, you may remove or edit it.
3413 # By default, configure uses ./config.cache as the cache file,
3414 # creating it if it does not exist already. You can give configure
3415 # the --cache-file=FILE option to use a different cache file; that is
3416 # what configure does when it calls configure scripts in
3417 # subdirectories, so they share the cache.
3418 # Giving --cache-file=/dev/null disables caching, for debugging configure.
3419 # config.status only pays attention to the cache file if you give it the
3420 # --recheck option to rerun configure.
3423 # The following way of writing the cache mishandles newlines in values,
3424 # but we know of no workaround that is simple, portable, and efficient.
3425 # So, don't put newlines in cache variables' values.
3426 # Ultrix sh set writes to stderr and can't be redirected directly,
3427 # and sets the high bit in the cache file unless we assign to the vars.
3429 case `(ac_space=' '; set | grep ac_space) 2>&1` in
3431 # `set' does not quote correctly, so add quotes (double-quote substitution
3432 # turns \\\\ into \\, and sed turns \\ into \).
3434 -e "s/'/'\\\\''/g" \
3435 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
3438 # `set' quotes correctly as required by POSIX, so do not add quotes.
3439 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
3442 if cmp -s $cache_file confcache; then
3445 if test -w $cache_file; then
3446 echo "updating cache $cache_file"
3447 cat confcache > $cache_file
3449 echo "not updating unwritable cache $cache_file"
3454 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
3456 test "x$prefix" = xNONE && prefix=$ac_default_prefix
3457 # Let make expand exec_prefix.
3458 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3460 # Any assignment to VPATH causes Sun make to only execute
3461 # the first set of double-colon rules, so remove it if not needed.
3462 # If there is a colon in the path, we need to keep it.
3463 if test "x$srcdir" = x.; then
3464 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
3467 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
3469 DEFS=-DHAVE_CONFIG_H
3471 # Without the "./", some shells look in PATH for config.status.
3472 : ${CONFIG_STATUS=./config.status}
3474 echo creating $CONFIG_STATUS
3475 rm -f $CONFIG_STATUS
3476 cat > $CONFIG_STATUS <<EOF
3478 # Generated automatically by configure.
3479 # Run this file to recreate the current configuration.
3480 # This directory was configured as follows,
3481 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
3483 # $0 $ac_configure_args
3485 # Compiler output produced by configure, useful for debugging
3486 # configure, is in ./config.log if it exists.
3488 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
3491 case "\$ac_option" in
3492 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3493 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
3494 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
3495 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
3496 echo "$CONFIG_STATUS generated by autoconf version 2.13"
3498 -help | --help | --hel | --he | --h)
3499 echo "\$ac_cs_usage"; exit 0 ;;
3500 *) echo "\$ac_cs_usage"; exit 1 ;;
3504 ac_given_srcdir=$srcdir
3505 ac_given_INSTALL="$INSTALL"
3507 trap 'rm -fr `echo "config.make glibcbug ${config_makefile} ${config_uname} config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
3509 cat >> $CONFIG_STATUS <<EOF
3511 # Protect against being on the right side of a sed subst in config.status.
3512 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
3513 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
3517 s%@CFLAGS@%$CFLAGS%g
3518 s%@CPPFLAGS@%$CPPFLAGS%g
3519 s%@CXXFLAGS@%$CXXFLAGS%g
3520 s%@FFLAGS@%$FFLAGS%g
3522 s%@LDFLAGS@%$LDFLAGS%g
3524 s%@exec_prefix@%$exec_prefix%g
3525 s%@prefix@%$prefix%g
3526 s%@program_transform_name@%$program_transform_name%g
3527 s%@bindir@%$bindir%g
3528 s%@sbindir@%$sbindir%g
3529 s%@libexecdir@%$libexecdir%g
3530 s%@datadir@%$datadir%g
3531 s%@sysconfdir@%$sysconfdir%g
3532 s%@sharedstatedir@%$sharedstatedir%g
3533 s%@localstatedir@%$localstatedir%g
3534 s%@libdir@%$libdir%g
3535 s%@includedir@%$includedir%g
3536 s%@oldincludedir@%$oldincludedir%g
3537 s%@infodir@%$infodir%g
3538 s%@mandir@%$mandir%g
3539 s%@with_cvs@%$with_cvs%g
3540 s%@subdirs@%$subdirs%g
3541 s%@force_install@%$force_install%g
3543 s%@host_alias@%$host_alias%g
3544 s%@host_cpu@%$host_cpu%g
3545 s%@host_vendor@%$host_vendor%g
3546 s%@host_os@%$host_os%g
3547 s%@base_machine@%$base_machine%g
3548 s%@sysnames@%$sysnames%g
3549 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
3550 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
3551 s%@INSTALL_DATA@%$INSTALL_DATA%g
3555 s%@build_alias@%$build_alias%g
3556 s%@build_cpu@%$build_cpu%g
3557 s%@build_vendor@%$build_vendor%g
3558 s%@build_os@%$build_os%g
3561 s%@MSGFMT@%$MSGFMT%g
3562 s%@MAKEINFO@%$MAKEINFO%g
3564 s%@CCVERSION@%$CCVERSION%g
3565 s%@cross_linkable@%$cross_linkable%g
3566 s%@BUILD_CC@%$BUILD_CC%g
3567 s%@cross_compiling@%$cross_compiling%g
3570 s%@RANLIB@%$RANLIB%g
3572 s%@SYSINCLUDES@%$SYSINCLUDES%g
3574 s%@libc_cv_have_bash2@%$libc_cv_have_bash2%g
3576 s%@libc_cv_have_ksh@%$libc_cv_have_ksh%g
3579 s%@INSTALL_INFO@%$INSTALL_INFO%g
3580 s%@OLD_DEBIAN_INSTALL_INFO@%$OLD_DEBIAN_INSTALL_INFO%g
3581 s%@VERSIONING@%$VERSIONING%g
3582 s%@libc_cv_asm_protected_directive@%$libc_cv_asm_protected_directive%g
3583 s%@libc_cv_z_nodelete@%$libc_cv_z_nodelete%g
3584 s%@libc_cv_z_nodlopen@%$libc_cv_z_nodlopen%g
3585 s%@libc_cv_have_initfini@%$libc_cv_have_initfini%g
3586 s%@no_whole_archive@%$no_whole_archive%g
3587 s%@exceptions@%$exceptions%g
3589 s%@sizeof_long_double@%$sizeof_long_double%g
3590 s%@uname_sysname@%$uname_sysname%g
3591 s%@uname_release@%$uname_release%g
3592 s%@uname_version@%$uname_version%g
3594 s%@old_glibc_headers@%$old_glibc_headers%g
3595 s%@libc_cv_slibdir@%$libc_cv_slibdir%g
3596 s%@libc_cv_localedir@%$libc_cv_localedir%g
3597 s%@libc_cv_sysconfdir@%$libc_cv_sysconfdir%g
3598 s%@libc_cv_rootsbindir@%$libc_cv_rootsbindir%g
3599 s%@use_ldconfig@%$use_ldconfig%g
3600 s%@ldd_rewrite_script@%$ldd_rewrite_script%g
3601 s%@gnu_ld@%$gnu_ld%g
3602 s%@gnu_as@%$gnu_as%g
3604 s%@static@%$static%g
3605 s%@shared@%$shared%g
3606 s%@pic_default@%$pic_default%g
3607 s%@profile@%$profile%g
3608 s%@omitfp@%$omitfp%g
3609 s%@bounded@%$bounded%g
3610 s%@static_nss@%$static_nss%g
3611 s%@nopic_initfini@%$nopic_initfini%g
3612 s%@DEFINES@%$DEFINES%g
3613 s%@linux_doors@%$linux_doors%g
3614 s%@VERSION@%$VERSION%g
3615 s%@RELEASE@%$RELEASE%g
3620 cat >> $CONFIG_STATUS <<\EOF
3622 # Split the substitutions into bite-sized pieces for seds with
3623 # small command number limits, like on Digital OSF/1 and HP-UX.
3624 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
3625 ac_file=1 # Number of current file.
3626 ac_beg=1 # First line for current file.
3627 ac_end=$ac_max_sed_cmds # Line after last line for current file.
3630 while $ac_more_lines; do
3631 if test $ac_beg -gt 1; then
3632 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
3634 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
3636 if test ! -s conftest.s$ac_file; then
3638 rm -f conftest.s$ac_file
3640 if test -z "$ac_sed_cmds"; then
3641 ac_sed_cmds="sed -f conftest.s$ac_file"
3643 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
3645 ac_file=`expr $ac_file + 1`
3647 ac_end=`expr $ac_end + $ac_max_sed_cmds`
3650 if test -z "$ac_sed_cmds"; then
3655 cat >> $CONFIG_STATUS <<EOF
3657 CONFIG_FILES=\${CONFIG_FILES-"config.make glibcbug ${config_makefile} ${config_uname}"}
3659 cat >> $CONFIG_STATUS <<\EOF
3660 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
3661 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3663 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3664 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3665 *) ac_file_in="${ac_file}.in" ;;
3668 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
3670 # Remove last slash and all that follows it. Not all systems have dirname.
3671 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3672 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3673 # The file is in a subdirectory.
3674 test ! -d "$ac_dir" && mkdir "$ac_dir"
3675 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
3676 # A "../" for each directory in $ac_dir_suffix.
3677 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
3679 ac_dir_suffix= ac_dots=
3682 case "$ac_given_srcdir" in
3684 if test -z "$ac_dots"; then top_srcdir=.
3685 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
3686 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
3688 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
3689 top_srcdir="$ac_dots$ac_given_srcdir" ;;
3692 case "$ac_given_INSTALL" in
3693 [/$]*) INSTALL="$ac_given_INSTALL" ;;
3694 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
3697 echo creating "$ac_file"
3699 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
3701 *Makefile*) ac_comsub="1i\\
3702 # $configure_input" ;;
3706 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3708 s%@configure_input@%$configure_input%g
3709 s%@srcdir@%$srcdir%g
3710 s%@top_srcdir@%$top_srcdir%g
3711 s%@INSTALL@%$INSTALL%g
3712 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
3716 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
3717 # NAME is the cpp macro being defined and VALUE is the value it is being given.
3719 # ac_d sets the value in "#define NAME VALUE" lines.
3720 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
3721 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
3724 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
3725 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3726 ac_uB='\([ ]\)%\1#\2define\3'
3729 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
3730 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3731 ac_eB='$%\1#\2define\3'
3735 if test "${CONFIG_HEADERS+set}" != set; then
3737 cat >> $CONFIG_STATUS <<EOF
3738 CONFIG_HEADERS="config.h"
3740 cat >> $CONFIG_STATUS <<\EOF
3742 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
3743 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3745 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3746 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3747 *) ac_file_in="${ac_file}.in" ;;
3750 echo creating $ac_file
3752 rm -f conftest.frag conftest.in conftest.out
3753 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3754 cat $ac_file_inputs > conftest.in
3758 # Transform confdefs.h into a sed script conftest.vals that substitutes
3759 # the proper values into config.h.in to produce config.h. And first:
3760 # Protect against being on the right side of a sed subst in config.status.
3761 # Protect against being in an unquoted here document in config.status.
3763 cat > conftest.hdr <<\EOF
3766 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
3770 sed -n -f conftest.hdr confdefs.h > conftest.vals
3773 # This sed command replaces #undef with comments. This is necessary, for
3774 # example, in the case of _POSIX_SOURCE, which is predefined and required
3775 # on some systems where configure will not decide to define it.
3776 cat >> conftest.vals <<\EOF
3777 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
3780 # Break up conftest.vals because some shells have a limit on
3781 # the size of here documents, and old seds have small limits too.
3786 ac_lines=`grep -c . conftest.vals`
3787 # grep -c gives empty output for an empty file on some AIX systems.
3788 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
3789 # Write a limited-size here document to conftest.frag.
3790 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
3791 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
3793 sed -f conftest.frag conftest.in > conftest.out
3795 mv conftest.out conftest.in
3797 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
3799 mv conftest.tail conftest.vals
3803 cat >> $CONFIG_STATUS <<\EOF
3804 rm -f conftest.frag conftest.h
3805 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
3806 cat conftest.in >> conftest.h
3808 if cmp -s $ac_file conftest.h 2>/dev/null; then
3809 echo "$ac_file is unchanged"
3812 # Remove last slash and all that follows it. Not all systems have dirname.
3813 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3814 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3815 # The file is in a subdirectory.
3816 test ! -d "$ac_dir" && mkdir "$ac_dir"
3819 mv conftest.h $ac_file
3825 cat >> $CONFIG_STATUS <<EOF
3826 ac_sources="`echo $libc_link_sources`"
3827 ac_dests="`echo $libc_link_dests`"
3830 cat >> $CONFIG_STATUS <<\EOF
3831 srcdir=$ac_given_srcdir
3832 while test -n "$ac_sources"; do
3833 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
3834 set $ac_sources; ac_source=$1; shift; ac_sources=$*
3836 echo "linking $srcdir/$ac_source to $ac_dest"
3838 if test ! -r $srcdir/$ac_source; then
3839 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
3843 # Make relative symlinks.
3844 # Remove last slash and all that follows it. Not all systems have dirname.
3845 ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'`
3846 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
3847 # The dest file is in a subdirectory.
3848 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
3849 ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`"
3850 # A "../" for each directory in $ac_dest_dir_suffix.
3851 ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'`
3853 ac_dest_dir_suffix= ac_dots=
3857 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
3858 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
3861 # Make a symlink if possible; otherwise try a hard link.
3862 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
3863 ln $srcdir/$ac_source $ac_dest; then :
3865 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
3869 cat >> $CONFIG_STATUS <<EOF
3870 config_vars='$config_vars'
3872 cat >> $CONFIG_STATUS <<\EOF
3874 case $CONFIG_FILES in *config.make*)
3875 echo "$config_vars" >> config.make;;
3877 test -d bits || mkdir bits
3880 chmod +x $CONFIG_STATUS
3881 rm -fr confdefs* $ac_clean_files
3882 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
3884 if test "$no_recursion" != yes; then
3886 # Remove --cache-file and --srcdir arguments so they do not pile up.
3887 ac_sub_configure_args=
3889 for ac_arg in $ac_configure_args; do
3890 if test -n "$ac_prev"; then
3895 -cache-file | --cache-file | --cache-fil | --cache-fi \
3896 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
3897 ac_prev=cache_file ;;
3898 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
3899 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
3901 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
3903 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
3905 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
3909 for ac_config_dir in $add_ons; do
3911 # Do not complain, so a configure script can configure whichever
3912 # parts of a large source tree are present.
3913 if test ! -d $srcdir/$ac_config_dir; then
3917 echo configuring in $ac_config_dir
3922 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
3924 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
3932 # A "../" for each directory in /$ac_config_dir.
3933 ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
3936 .) # No --srcdir option. We are building in place.
3937 ac_sub_srcdir=$srcdir ;;
3938 /*) # Absolute path.
3939 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
3941 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
3944 # Check for guested configure; otherwise get Cygnus style configure.
3945 if test -f $ac_sub_srcdir/configure; then
3946 ac_sub_configure=$ac_sub_srcdir/configure
3947 elif test -f $ac_sub_srcdir/configure.in; then
3948 ac_sub_configure=$ac_configure
3950 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
3954 # The recursion is here.
3955 if test -n "$ac_sub_configure"; then
3957 # Make the cache file name correct relative to the subdirectory.
3958 case "$cache_file" in
3959 /*) ac_sub_cache_file=$cache_file ;;
3961 ac_sub_cache_file="$ac_dots$cache_file" ;;
3963 case "$ac_given_INSTALL" in
3964 [/$]*) INSTALL="$ac_given_INSTALL" ;;
3965 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
3968 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
3969 # The eval makes quoting arguments work.
3970 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
3973 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }