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-oldest-abi=ABI configure the oldest ABI supported [e.g. 2.2]
63 [default=glibc default]"
65 --enable-add-ons[=DIR1,DIR2]...
66 configure and build add-ons in DIR1,DIR2,...
67 search for add-ons if no parameter given"
69 --enable-static-nss build static NSS modules [default=no]"
71 --disable-force-install don't force installation of files from this package,
72 even if they are older than the installed files"
74 --enable-kernel=VERSION compile for compatibility with kernel not older
77 --enable-all-warnings enable all useful warnings gcc can issue"
79 # Initialize some variables set by options.
80 # The variables have the same names as the options, with
81 # dashes changed to underlines.
83 cache_file=./config.cache
92 program_transform_name=s,x,x,
100 bindir='${exec_prefix}/bin'
101 sbindir='${exec_prefix}/sbin'
102 libexecdir='${exec_prefix}/libexec'
103 datadir='${prefix}/share'
104 sysconfdir='${prefix}/etc'
105 sharedstatedir='${prefix}/com'
106 localstatedir='${prefix}/var'
107 libdir='${exec_prefix}/lib'
108 includedir='${prefix}/include'
109 oldincludedir='/usr/include'
110 infodir='${prefix}/info'
111 mandir='${prefix}/man'
113 # Initialize some other variables.
116 SHELL=${CONFIG_SHELL-/bin/sh}
117 # Maximum number of lines to put in a shell here document.
124 # If the previous option needs an argument, assign it.
125 if test -n "$ac_prev"; then
126 eval "$ac_prev=\$ac_option"
132 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
136 # Accept the important Cygnus configure options, so we can diagnose typos.
140 -bindir | --bindir | --bindi | --bind | --bin | --bi)
142 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
143 bindir="$ac_optarg" ;;
145 -build | --build | --buil | --bui | --bu)
147 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
148 build="$ac_optarg" ;;
150 -cache-file | --cache-file | --cache-fil | --cache-fi \
151 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
152 ac_prev=cache_file ;;
153 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
154 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
155 cache_file="$ac_optarg" ;;
157 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
159 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
161 datadir="$ac_optarg" ;;
163 -disable-* | --disable-*)
164 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
165 # Reject names that are not valid shell variable names.
166 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
167 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
169 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
170 eval "enable_${ac_feature}=no" ;;
172 -enable-* | --enable-*)
173 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
174 # Reject names that are not valid shell variable names.
175 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
176 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
178 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
183 eval "enable_${ac_feature}='$ac_optarg'" ;;
185 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
186 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
187 | --exec | --exe | --ex)
188 ac_prev=exec_prefix ;;
189 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
190 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
191 | --exec=* | --exe=* | --ex=*)
192 exec_prefix="$ac_optarg" ;;
194 -gas | --gas | --ga | --g)
195 # Obsolete; use --with-gas.
198 -help | --help | --hel | --he)
199 # Omit some internal or obsolete options to make the list less imposing.
200 # This message is too long to be a string in the A/UX 3.1 sh.
202 Usage: configure [options] [host]
203 Options: [defaults in brackets after descriptions]
205 --cache-file=FILE cache test results in FILE
206 --help print this message
207 --no-create do not create output files
208 --quiet, --silent do not print \`checking...' messages
209 --version print the version of autoconf that created configure
210 Directory and file names:
211 --prefix=PREFIX install architecture-independent files in PREFIX
213 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
215 --bindir=DIR user executables in DIR [EPREFIX/bin]
216 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
217 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
218 --datadir=DIR read-only architecture-independent data in DIR
220 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
221 --sharedstatedir=DIR modifiable architecture-independent data in DIR
223 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
224 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
225 --includedir=DIR C header files in DIR [PREFIX/include]
226 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
227 --infodir=DIR info documentation in DIR [PREFIX/info]
228 --mandir=DIR man documentation in DIR [PREFIX/man]
229 --srcdir=DIR find the sources in DIR [configure dir or ..]
230 --program-prefix=PREFIX prepend PREFIX to installed program names
231 --program-suffix=SUFFIX append SUFFIX to installed program names
232 --program-transform-name=PROGRAM
233 run sed PROGRAM on installed program names
237 --build=BUILD configure for building on BUILD [BUILD=HOST]
238 --host=HOST configure for HOST [guessed]
239 --target=TARGET configure for TARGET [TARGET=HOST]
240 Features and packages:
241 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
242 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
243 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
244 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
245 --x-includes=DIR X include files are in DIR
246 --x-libraries=DIR X library files are in DIR
248 if test -n "$ac_help"; then
249 echo "--enable and --with options recognized:$ac_help"
253 -host | --host | --hos | --ho)
255 -host=* | --host=* | --hos=* | --ho=*)
258 -includedir | --includedir | --includedi | --included | --include \
259 | --includ | --inclu | --incl | --inc)
260 ac_prev=includedir ;;
261 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
262 | --includ=* | --inclu=* | --incl=* | --inc=*)
263 includedir="$ac_optarg" ;;
265 -infodir | --infodir | --infodi | --infod | --info | --inf)
267 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
268 infodir="$ac_optarg" ;;
270 -libdir | --libdir | --libdi | --libd)
272 -libdir=* | --libdir=* | --libdi=* | --libd=*)
273 libdir="$ac_optarg" ;;
275 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
276 | --libexe | --libex | --libe)
277 ac_prev=libexecdir ;;
278 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
279 | --libexe=* | --libex=* | --libe=*)
280 libexecdir="$ac_optarg" ;;
282 -localstatedir | --localstatedir | --localstatedi | --localstated \
283 | --localstate | --localstat | --localsta | --localst \
284 | --locals | --local | --loca | --loc | --lo)
285 ac_prev=localstatedir ;;
286 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
287 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
288 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
289 localstatedir="$ac_optarg" ;;
291 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
293 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
294 mandir="$ac_optarg" ;;
297 # Obsolete; use --without-fp.
300 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
304 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
305 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
308 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
309 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
310 | --oldin | --oldi | --old | --ol | --o)
311 ac_prev=oldincludedir ;;
312 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
313 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
314 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
315 oldincludedir="$ac_optarg" ;;
317 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
319 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
320 prefix="$ac_optarg" ;;
322 -program-prefix | --program-prefix | --program-prefi | --program-pref \
323 | --program-pre | --program-pr | --program-p)
324 ac_prev=program_prefix ;;
325 -program-prefix=* | --program-prefix=* | --program-prefi=* \
326 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
327 program_prefix="$ac_optarg" ;;
329 -program-suffix | --program-suffix | --program-suffi | --program-suff \
330 | --program-suf | --program-su | --program-s)
331 ac_prev=program_suffix ;;
332 -program-suffix=* | --program-suffix=* | --program-suffi=* \
333 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
334 program_suffix="$ac_optarg" ;;
336 -program-transform-name | --program-transform-name \
337 | --program-transform-nam | --program-transform-na \
338 | --program-transform-n | --program-transform- \
339 | --program-transform | --program-transfor \
340 | --program-transfo | --program-transf \
341 | --program-trans | --program-tran \
342 | --progr-tra | --program-tr | --program-t)
343 ac_prev=program_transform_name ;;
344 -program-transform-name=* | --program-transform-name=* \
345 | --program-transform-nam=* | --program-transform-na=* \
346 | --program-transform-n=* | --program-transform-=* \
347 | --program-transform=* | --program-transfor=* \
348 | --program-transfo=* | --program-transf=* \
349 | --program-trans=* | --program-tran=* \
350 | --progr-tra=* | --program-tr=* | --program-t=*)
351 program_transform_name="$ac_optarg" ;;
353 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
354 | -silent | --silent | --silen | --sile | --sil)
357 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
359 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
361 sbindir="$ac_optarg" ;;
363 -sharedstatedir | --sharedstatedir | --sharedstatedi \
364 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
365 | --sharedst | --shareds | --shared | --share | --shar \
367 ac_prev=sharedstatedir ;;
368 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
369 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
370 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
372 sharedstatedir="$ac_optarg" ;;
374 -site | --site | --sit)
376 -site=* | --site=* | --sit=*)
379 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
381 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
382 srcdir="$ac_optarg" ;;
384 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
385 | --syscon | --sysco | --sysc | --sys | --sy)
386 ac_prev=sysconfdir ;;
387 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
388 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
389 sysconfdir="$ac_optarg" ;;
391 -target | --target | --targe | --targ | --tar | --ta | --t)
393 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
394 target="$ac_optarg" ;;
396 -v | -verbose | --verbose | --verbos | --verbo | --verb)
399 -version | --version | --versio | --versi | --vers)
400 echo "configure generated by autoconf version 2.13"
404 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
405 # Reject names that are not valid shell variable names.
406 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
407 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
409 ac_package=`echo $ac_package| sed 's/-/_/g'`
414 eval "with_${ac_package}='$ac_optarg'" ;;
416 -without-* | --without-*)
417 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
418 # Reject names that are not valid shell variable names.
419 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
420 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
422 ac_package=`echo $ac_package| sed 's/-/_/g'`
423 eval "with_${ac_package}=no" ;;
426 # Obsolete; use --with-x.
429 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
430 | --x-incl | --x-inc | --x-in | --x-i)
431 ac_prev=x_includes ;;
432 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
433 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
434 x_includes="$ac_optarg" ;;
436 -x-libraries | --x-libraries | --x-librarie | --x-librari \
437 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
438 ac_prev=x_libraries ;;
439 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
440 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
441 x_libraries="$ac_optarg" ;;
443 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
447 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
448 echo "configure: warning: $ac_option: invalid host type" 1>&2
450 if test "x$nonopt" != xNONE; then
451 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
459 if test -n "$ac_prev"; then
460 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
463 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
465 # File descriptor usage:
468 # 2 errors and warnings
469 # 3 some systems may open it to /dev/tty
470 # 4 used on the Kubota Titan
471 # 6 checking for... messages and results
472 # 5 compiler messages saved in config.log
473 if test "$silent" = yes; then
481 This file contains any messages produced by compilers while
482 running configure, to aid debugging if configure makes a mistake.
485 # Strip out --no-create and --no-recursion so they do not pile up.
486 # Also quote any args containing shell metacharacters.
491 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
492 | --no-cr | --no-c) ;;
493 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
494 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
495 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
496 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
497 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
502 # Only set these to C if already set. These must not be set unconditionally
503 # because not all systems understand e.g. LANG=C (notably SCO).
504 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
505 # Non-C LC_CTYPE values break the ctype check.
506 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
507 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
508 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
509 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
511 # confdefs.h avoids OS command line length limits that DEFS can exceed.
512 rm -rf conftest* confdefs.h
513 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
516 # A filename unique to this package, relative to the directory that
517 # configure is in, which we can look for to find out if srcdir is correct.
518 ac_unique_file=include/features.h
520 # Find the source files, if location was not specified.
521 if test -z "$srcdir"; then
522 ac_srcdir_defaulted=yes
523 # Try the directory containing this script, then its parent.
525 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
526 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
528 if test ! -r $srcdir/$ac_unique_file; then
532 ac_srcdir_defaulted=no
534 if test ! -r $srcdir/$ac_unique_file; then
535 if test "$ac_srcdir_defaulted" = yes; then
536 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
538 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
541 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
543 # Prefer explicitly selected file to automatically selected ones.
544 if test -z "$CONFIG_SITE"; then
545 if test "x$prefix" != xNONE; then
546 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
548 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
551 for ac_site_file in $CONFIG_SITE; do
552 if test -r "$ac_site_file"; then
553 echo "loading site script $ac_site_file"
558 if test -r "$cache_file"; then
559 echo "loading cache $cache_file"
562 echo "creating cache $cache_file"
567 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
568 ac_cpp='$CPP $CPPFLAGS'
569 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
570 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
571 cross_compiling=$ac_cv_prog_cc_cross
575 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
576 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
577 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
584 ac_n= ac_c='\c' ac_t=
587 if test -r /vmunix; then
588 kernel_id=`strings /vmunix | grep UNIX`
589 elif test -r /dynix; then
590 kernel_id=`strings /dynix | grep DYNIX`
598 for ac_dir in scripts $srcdir/scripts; do
599 if test -f $ac_dir/install-sh; then
601 ac_install_sh="$ac_aux_dir/install-sh -c"
603 elif test -f $ac_dir/install.sh; then
605 ac_install_sh="$ac_aux_dir/install.sh -c"
609 if test -z "$ac_aux_dir"; then
610 { echo "configure: error: can not find install-sh or install.sh in scripts $srcdir/scripts" 1>&2; exit 1; }
612 ac_config_guess=$ac_aux_dir/config.guess
613 ac_config_sub=$ac_aux_dir/config.sub
614 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
617 # This will get text that should go into config.make.
620 # Check for a --with-gmp argument and set gmp-srcdir in config.make.
621 # Check whether --with-gmp or --without-gmp was given.
622 if test "${with_gmp+set}" = set; then
625 yes) { echo "configure: error: --with-gmp requires an argument; use --with-gmp=DIRECTORY" 1>&2; exit 1; } ;;
627 *) config_vars="$config_vars
628 gmp-srcdir = $withval" ;;
633 # Check for a --with-gd argument and set libgd-LDFLAGS in config.make.
634 # Check whether --with-gd or --without-gd was given.
635 if test "${with_gd+set}" = set; then
639 *) libgd_include="-I$withval/include"
640 libgd_ldflags="-L$withval/lib" ;;
645 # Check whether --with-gd-include or --without-gd-include was given.
646 if test "${with_gd_include+set}" = set; then
647 withval="$with_gd_include"
648 case "$with_gd_include" in
650 *) libgd_include="-I$withval" ;;
655 # Check whether --with-gd-lib or --without-gd-lib was given.
656 if test "${with_gd_lib+set}" = set; then
657 withval="$with_gd_lib"
658 case "$with_gd_lib" in
660 *) libgd_ldflags="-L$withval" ;;
666 if test -n "$libgd_include"; then
667 config_vars="$config_vars
668 CFLAGS-memusagestat.c = $libgd_include"
670 if test -n "$libgd_ldflags"; then
671 config_vars="$config_vars
672 libgd-LDFLAGS = $libgd_ldflags"
675 # Check whether --with-fp or --without-fp was given.
676 if test "${with_fp+set}" = set; then
683 # Check whether --with-binutils or --without-binutils was given.
684 if test "${with_binutils+set}" = set; then
685 withval="$with_binutils"
686 path_binutils=$withval
691 # Check whether --with-elf or --without-elf was given.
692 if test "${with_elf+set}" = set; then
699 # Check whether --with-cvs or --without-cvs was given.
700 if test "${with_cvs+set}" = set; then
707 if test "$with_cvs" = yes; then
708 if test -d $srcdir/CVS && grep :pserver: $srcdir/CVS/Root > /dev/null
715 # Check whether --with-headers or --without-headers was given.
716 if test "${with_headers+set}" = set; then
717 withval="$with_headers"
724 # Check whether --enable-libio or --disable-libio was given.
725 if test "${enable_libio+set}" = set; then
726 enableval="$enable_libio"
727 if test $enableval = yes; then
737 # Check whether --enable-sanity-checks or --disable-sanity-checks was given.
738 if test "${enable_sanity_checks+set}" = set; then
739 enableval="$enable_sanity_checks"
740 enable_sanity=$enableval
747 # Check whether --enable-shared or --disable-shared was given.
748 if test "${enable_shared+set}" = set; then
749 enableval="$enable_shared"
755 # Check whether --enable-profile or --disable-profile was given.
756 if test "${enable_profile+set}" = set; then
757 enableval="$enable_profile"
763 # Check whether --enable-omitfp or --disable-omitfp was given.
764 if test "${enable_omitfp+set}" = set; then
765 enableval="$enable_omitfp"
771 # Check whether --enable-bounded or --disable-bounded was given.
772 if test "${enable_bounded+set}" = set; then
773 enableval="$enable_bounded"
779 # Check whether --enable-versioning or --disable-versioning was given.
780 if test "${enable_versioning+set}" = set; then
781 enableval="$enable_versioning"
782 enable_versioning=$enableval
784 enable_versioning=yes
788 # Check whether --enable-oldest-abi or --disable-oldest-abi was given.
789 if test "${enable_oldest_abi+set}" = set; then
790 enableval="$enable_oldest_abi"
791 oldest_abi=$enableval
796 if test "$oldest_abi" = yes || test "$oldest_abi" = no; then
799 cat >> confdefs.h <<EOF
800 #define GLIBC_OLDEST_ABI "$oldest_abi"
806 # Check whether --enable-add-ons or --disable-add-ons was given.
807 if test "${enable_add_ons+set}" = set; then
808 enableval="$enable_add_ons"
810 yes) add_ons=`cd $srcdir && echo */configure | sed -e 's!/configure!!g'`
811 test "$add_ons" = "*" && add_ons= ;;
812 *) add_ons=`echo "$enableval" | sed 's/,/ /g'`;;
822 if test x"$add_ons" != x; then
823 for f in $add_ons; do
825 if test "$f" = "crypt"; then
826 { echo "configure: error:
827 *** It seems that you're using an old \`crypt' add-on. crypt is now
828 *** part of glibc and using the old add-on will not work with this
829 *** release. Start again with fresh sources and without the old
830 *** \`crypt' add-on." 1>&2; exit 1; }
832 if test "$f" = "localedata"; then
833 { echo "configure: error:
834 *** It seems that you're using an old \`localedata' add-on. localedata
835 *** is now part of glibc and using the old add-on will not work with
836 *** this release. Start again with fresh sources and without the old
837 *** \`localedata' add-on." 1>&2; exit 1; }
839 # Test whether such a subdir really exists.
840 if test -d $srcdir/$f; then
841 add_ons_pfx="$add_ons_pfx $f/"
843 { echo "configure: error: add-on directory \"$f\" does not exist" 1>&2; exit 1; }
848 # Check whether --enable-static-nss or --disable-static-nss was given.
849 if test "${enable_static_nss+set}" = set; then
850 enableval="$enable_static_nss"
851 static_nss=$enableval
856 if test x"$static_nss" = xyes; then
857 cat >> confdefs.h <<\EOF
858 #define DO_STATIC_NSS 1
863 # Check whether --enable-force-install or --disable-force-install was given.
864 if test "${enable_force_install+set}" = set; then
865 enableval="$enable_force_install"
866 force_install=$enableval
873 # Check whether --enable-kernel or --disable-kernel was given.
874 if test "${enable_kernel+set}" = set; then
875 enableval="$enable_kernel"
876 minimum_kernel=$enableval
879 if test "$minimum_kernel" = yes || test "$minimum_kernel" = no; then
880 # Better nothing than this.
883 if test "$minimum_kernel" = current; then
884 minimum_kernel=`uname -r 2>/dev/null` || minimum_kernel=
888 # Check whether --enable-all-warnings or --disable-all-warnings was given.
889 if test "${enable_all_warnings+set}" = set; then
890 enableval="$enable_all_warnings"
891 all_warnings=$enableval
897 # Make sure we can run config.sub.
898 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
899 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
902 echo $ac_n "checking host system type""... $ac_c" 1>&6
903 echo "configure:904: checking host system type" >&5
906 case "$host_alias" in
910 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
911 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
913 *) host_alias=$nonopt ;;
917 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
918 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
919 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
920 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
921 echo "$ac_t""$host" 1>&6
924 # The way shlib-versions is used to generate soversions.mk uses a
925 # fairly simplistic model for name recognition that can't distinguish
926 # i486-pc-linux-gnu fully from i486-pc-gnu. So we mutate a $host_os
927 # of `gnu*' here to be `gnu-gnu*' just so that shlib-versions can
928 # tell. This doesn't get used much beyond that, so it's fairly safe.
933 host_os=`echo $host_os | sed -e 's/gnu/gnu-gnu/'`
937 # We keep the original values in `$config_*' and never modify them, so we
938 # can write them unchanged into config.make. Everything else uses
939 # $machine, $vendor, and $os, and changes them whenever convenient.
940 config_machine=$host_cpu config_vendor=$host_vendor config_os=$host_os
942 # Don't allow vendor == "unknown"
943 test "$config_vendor" = unknown && config_vendor=
944 config_os="`echo $config_os | sed 's/^unknown-//'`"
946 # Some configurations imply other options.
948 gnu* | linux* | bsd4.4* | netbsd* | freebsd*)
949 # These systems always use GNU tools.
950 gnu_ld=yes gnu_as=yes ;;
953 # i586-linuxaout is mangled into i586-pc-linux-gnuaout
954 linux*ecoff* | linux*aout* | gnu*aout* | gnu*ecoff*)
956 gnu* | linux* | sysv4* | solaris2* | irix6*)
957 # These systems (almost) always use the ELF format.
962 machine=$config_machine
963 vendor=$config_vendor
966 # config.guess on some IBM machines says `rs6000' instead of `powerpc'.
968 if test "$machine" = rs6000; then
973 ### I put this here to prevent those annoying emails from people who cannot
974 ### read and try to compile glibc on unsupported platforms. --drepper
976 ### By using the undocumented --enable-hacker-mode option for configure
977 ### one can skip this test to make the configuration not fail for unsupported
980 if test -z "$enable_hacker_mode"; then
981 case "$machine-$host_os" in
982 *-linux* | *-gnu* | arm*-none* | powerpc-aix4.3.*)
985 echo "*** The GNU C library is currently not available for this platform."
986 echo "*** So far nobody cared to port it and if there is no volunteer it"
987 echo "*** might never happen. So, if you have interest to see glibc on"
988 echo "*** this platform visit"
989 echo "*** http://www.gnu.org/software/libc/porting.html"
990 echo "*** and join the group of porters"
996 # Expand the configuration machine name into a subdirectory by architecture
997 # type and particular chip.
999 a29k | am29000) base_machine=a29k machine=a29k ;;
1000 alpha*) base_machine=alpha machine=alpha/$machine ;;
1001 arm*) base_machine=arm machine=arm/arm32/$machine ;;
1002 c3[012]) base_machine=cx0 machine=cx0/c30 ;;
1003 c4[04]) base_machine=cx0 machine=cx0/c40 ;;
1004 hppa*64*) base_machine=hppa machine=hppa/hppa64 ;;
1005 hppa*) base_machine=hppa machine=hppa/hppa1.1 ;;
1006 i[3456]86) base_machine=i386 machine=i386/$machine ;;
1007 ia64) base_machine=ia64 machine=ia64 ;;
1008 m680?0) base_machine=m68k machine=m68k/$machine ;;
1009 m68k) base_machine=m68k machine=m68k/m68020 ;;
1010 m88???) base_machine=m88k machine=m88k/$machine ;;
1011 m88k) base_machine=m88k machine=m88k/m88100 ;;
1012 mips64*) base_machine=mips64 machine=mips/mips64/$machine ;;
1013 mips*) base_machine=mips
1014 case "`uname -m`" in
1015 IP22) machine=mips/mips3 ;;
1016 *) machine=mips/$machine ;;
1018 s390) base_machine=s390 machine=s390/s390-32 ;;
1019 s390x) base_machine=s390 machine=s390/s390-64 ;;
1020 sh3*) base_machine=sh machine=sh/sh3 ;;
1021 sh4*) base_machine=sh machine=sh/sh4 ;;
1023 base_machine=sparc machine=sparc/sparc32 ;;
1024 sparcv8 | supersparc | hypersparc)
1025 base_machine=sparc machine=sparc/sparc32/sparcv8 ;;
1026 sparcv8plus | sparcv8plusa | sparcv9)
1027 base_machine=sparc machine=sparc/sparc32/sparcv9 ;;
1028 sparc64 | ultrasparc)
1029 base_machine=sparc machine=sparc/sparc64 ;;
1030 thumb*) base_machine=thumb machine=arm/thumb/$machine ;;
1034 if test "$base_machine" = "i386"; then
1035 cat >> confdefs.h <<\EOF
1036 #define USE_REGPARMS 1
1041 # Compute the list of sysdep directories for this configuration.
1042 # This can take a while to compute.
1043 sysdep_dir=$srcdir/sysdeps
1044 echo $ac_n "checking sysdep dirs""... $ac_c" 1>&6
1045 echo "configure:1046: checking sysdep dirs" >&5
1046 # Make sco3.2v4 become sco3.2.4 and sunos4.1.1_U1 become sunos4.1.1.U1.
1047 os="`echo $os | sed 's/\([0-9A-Z]\)[v_]\([0-9A-Z]\)/\1.\2/g'`"
1051 base_os=mach/hurd ;;
1052 netbsd* | 386bsd* | freebsd* | bsdi*)
1053 base_os=unix/bsd/bsd4.4 ;;
1054 osf* | sunos* | ultrix* | newsos* | dynix* | *bsd*)
1056 sysv* | isc* | esix* | sco* | minix* | irix4* | linux*)
1057 base_os=unix/sysv ;;
1059 base_os=unix/sysv/irix6/$os ;;
1061 base_os=unix/sysv/sysv4 ;;
1063 base_os=unix/sysv/hpux/$os ;;
1065 base_os=unix/sysv/aix/aix4.3 ;;
1067 base_os=standalone ;;
1072 # For sunos4.1.1, try sunos4.1.1, then sunos4.1, then sunos4, then sunos.
1075 while o=`echo $tail | sed 's/\.[^.]*$//'`; test $o != $tail; do
1079 o=`echo $tail | sed 's/[0-9]*$//'`
1080 if test $o != $tail; then
1083 # For linux-gnu, try linux-gnu, then linux.
1084 o=`echo $tail | sed 's/-.*$//'`
1085 if test $o != $tail; then
1089 # For unix/sysv/sysv4, try unix/sysv/sysv4, then unix/sysv, then unix.
1092 while b=`echo $tail | sed 's@^\(.*\)/\([^/]*\)$@& \1@'`; test -n "$b"; do
1098 # For sparc/sparc32, try sparc/sparc32 and then sparc.
1101 while m=`echo $tail | sed 's@^\(.*\)/\([^/]*\)$@& \1@'`; test -n "$m"; do
1103 # Prepend the machine's FPU directory unless --without-fp.
1104 if test "$with_fp" = yes; then
1105 mach="$mach /$1/fpu"
1112 # Find what sysdep directories exist.
1114 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1115 for d in $add_ons_pfx ''; do
1116 for b in $base ''; do
1117 for m0 in $mach ''; do
1118 for v in /$vendor ''; do
1119 test "$v" = / && continue
1120 for o in /$ostry ''; do
1121 test "$o" = / && continue
1122 for m in $mach ''; do
1123 if test "$m0$b$v$o$m"; then
1124 try="${d}sysdeps$m0$b$v$o$m"
1125 test -n "$enable_debug_configure" &&
1126 echo "$0 DEBUG: try $try" >&2
1127 if test -d $srcdir/$try; then
1128 sysnames="$sysnames $try"
1129 { test -n "$o" || test -n "$b"; } && os_used=t
1130 { test -n "$m" || test -n "$m0"; } && machine_used=t
1141 if test -z "$os_used" && test "$os" != none; then
1142 { echo "configure: error: Operating system $os is not supported." 1>&2; exit 1; }
1144 if test -z "$machine_used" && test "$machine" != none; then
1145 { echo "configure: error: The $machine is not supported." 1>&2; exit 1; }
1148 # We have now validated the configuration.
1151 # If using ELF, look for an `elf' subdirectory of each machine directory.
1152 # We prepend these rather than inserting them whereever the machine appears
1153 # because things specified by the machine's ELF ABI should override
1154 # OS-specific things, and should always be the same for any OS on the
1155 # machine (otherwise what's the point of an ABI?).
1156 if test "$elf" = yes; then
1158 for d in $add_ons_pfx ''; do
1160 if test -d $srcdir/${d}sysdeps$m/elf; then
1161 elf_dirs="$elf_dirs ${d}sysdeps$m/elf"
1165 sysnames="`echo $elf_dirs | sed -e 's,//,/,g'` $sysnames"
1169 # Expand the list of system names into a full list of directories
1170 # from each element's parent name and Implies file (if present).
1173 while test $# -gt 0; do
1177 case " $names " in *" $name "*)
1178 # Already in the list.
1182 # Report each name as we discover it, so there is no long pause in output.
1183 echo $ac_n "$name $ac_c" >&6
1185 name_base=`echo $name | sed -e 's@\(.*sysdeps\)/.*@\1@'`
1189 *) xsrcdir=$srcdir/ ;;
1191 test -n "$enable_debug_configure" &&
1192 echo "DEBUG: name/Implies $xsrcdir$name/Implies" >&2
1194 if test -f $xsrcdir$name/Implies; then
1195 # Collect more names from the `Implies' file (removing comments).
1196 implied_candidate="`sed 's/#.*$//' < $xsrcdir$name/Implies`"
1198 for x in $implied_candidate; do
1199 if test -d $xsrcdir$name_base/$x; then
1200 implied="$implied $name_base/$x";
1202 echo "configure: warning: $name/Implies specifies nonexistent $x" 1>&2
1209 # Add NAME to the list of names.
1210 names="$names $name"
1212 # Find the parent of NAME, using the empty string if it has none.
1213 parent="`echo $name | sed -n -e 's=/[^/]*$==' -e '/sysdeps$/q' -e p`"
1215 # Add the names implied by NAME, and NAME's parent (if it has one), to
1216 # the list of names to be processed (the argument list). We prepend the
1217 # implied names to the list and append the parent. We want implied
1218 # directories to come before further directories inferred from the
1219 # configuration components; this ensures that for sysv4, unix/common
1220 # (implied by unix/sysv/sysv4) comes before unix/sysv (in ostry (here $*)
1222 sysnames="`echo $implied $* $parent`"
1223 test -n "$sysnames" && set $sysnames
1226 # Add the default directories.
1227 default_sysnames=sysdeps/generic
1228 if test "$elf" = yes; then
1229 default_sysnames="sysdeps/generic/elf $default_sysnames"
1231 sysnames="$names $default_sysnames"
1233 # The other names were emitted during the scan.
1234 echo "$ac_t""$default_sysnames" 1>&6
1239 # Find a good install program. We prefer a C program (faster),
1240 # so one script is as good as another. But avoid the broken or
1241 # incompatible versions:
1242 # SysV /etc/install, /usr/sbin/install
1243 # SunOS /usr/etc/install
1244 # IRIX /sbin/install
1246 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1247 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1248 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1249 # ./install, which can be erroneously created by make from ./install.sh.
1250 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1251 echo "configure:1252: checking for a BSD compatible install" >&5
1252 if test -z "$INSTALL"; then
1253 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1254 echo $ac_n "(cached) $ac_c" 1>&6
1256 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1257 for ac_dir in $PATH; do
1258 # Account for people who put trailing slashes in PATH elements.
1260 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1262 # OSF1 and SCO ODT 3.0 have their own names for install.
1263 # Don't use installbsd from OSF since it installs stuff as root
1265 for ac_prog in ginstall scoinst install; do
1266 if test -f $ac_dir/$ac_prog; then
1267 if test $ac_prog = install &&
1268 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1269 # AIX install. It has an incompatible calling convention.
1272 ac_cv_path_install="$ac_dir/$ac_prog -c"
1283 if test "${ac_cv_path_install+set}" = set; then
1284 INSTALL="$ac_cv_path_install"
1286 # As a last resort, use the slow shell script. We don't cache a
1287 # path for INSTALL within a source directory, because that will
1288 # break other packages using the cache if that directory is
1289 # removed, or if the path is relative.
1290 INSTALL="$ac_install_sh"
1293 echo "$ac_t""$INSTALL" 1>&6
1295 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1296 # It thinks the first close brace ends the variable substitution.
1297 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1299 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1301 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1303 if test "$INSTALL" = "${srcdir}/scripts/install-sh -c"; then
1304 # The makefiles need to use a different form to find it in $srcdir.
1305 INSTALL='\$(..)./scripts/install-sh -c'
1307 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1308 echo "configure:1309: checking whether ln -s works" >&5
1309 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1310 echo $ac_n "(cached) $ac_c" 1>&6
1313 if ln -s X conftestdata 2>/dev/null
1316 ac_cv_prog_LN_S="ln -s"
1321 LN_S="$ac_cv_prog_LN_S"
1322 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1323 echo "$ac_t""yes" 1>&6
1325 echo "$ac_t""no" 1>&6
1329 # We need the physical current working directory. We cannot use the
1330 # "pwd -P" shell builtin since that's not portable. Instead we try to
1331 # find a pwd binary. Note that assigning to the PWD environment
1332 # variable might have some interesting side effects, so we don't do
1334 # Extract the first word of "pwd", so it can be a program name with args.
1335 set dummy pwd; ac_word=$2
1336 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1337 echo "configure:1338: checking for $ac_word" >&5
1338 if eval "test \"`echo '$''{'ac_cv_path_PWD_P'+set}'`\" = set"; then
1339 echo $ac_n "(cached) $ac_c" 1>&6
1343 ac_cv_path_PWD_P="$PWD_P" # Let the user override the test with a path.
1346 ac_cv_path_PWD_P="$PWD_P" # Let the user override the test with a dos path.
1349 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1351 for ac_dir in $ac_dummy; do
1352 test -z "$ac_dir" && ac_dir=.
1353 if test -f $ac_dir/$ac_word; then
1354 ac_cv_path_PWD_P="$ac_dir/$ac_word"
1359 test -z "$ac_cv_path_PWD_P" && ac_cv_path_PWD_P="no"
1363 PWD_P="$ac_cv_path_PWD_P"
1364 if test -n "$PWD_P"; then
1365 echo "$ac_t""$PWD_P" 1>&6
1367 echo "$ac_t""no" 1>&6
1370 if test "$PWD_P" = no; then
1371 { echo "configure: error: *** A pwd binary could not be found." 1>&2; exit 1; }
1374 # These programs are version sensitive.
1375 echo $ac_n "checking build system type""... $ac_c" 1>&6
1376 echo "configure:1377: checking build system type" >&5
1379 case "$build_alias" in
1382 NONE) build_alias=$host_alias ;;
1383 *) build_alias=$nonopt ;;
1387 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1388 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1389 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1390 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1391 echo "$ac_t""$build" 1>&6
1393 if test $host != $build; then
1394 ac_tool_prefix=${host_alias}-
1399 for ac_prog in ${ac_tool_prefix}gcc ${ac_tool_prefix}cc
1401 # Extract the first word of "$ac_prog", so it can be a program name with args.
1402 set dummy $ac_prog; ac_word=$2
1403 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1404 echo "configure:1405: checking for $ac_word" >&5
1405 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1406 echo $ac_n "(cached) $ac_c" 1>&6
1408 if test -n "$CC"; then
1409 ac_cv_prog_CC="$CC" # Let the user override the test.
1411 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1413 for ac_dir in $ac_dummy; do
1414 test -z "$ac_dir" && ac_dir=.
1415 if test -f $ac_dir/$ac_word; then
1416 ac_cv_prog_CC="$ac_prog"
1424 if test -n "$CC"; then
1425 echo "$ac_t""$CC" 1>&6
1427 echo "$ac_t""no" 1>&6
1430 test -n "$CC" && break
1433 if test -z "$CC"; then
1436 # Found it, now check the version.
1437 echo $ac_n "checking version of $CC""... $ac_c" 1>&6
1438 echo "configure:1439: checking version of $CC" >&5
1439 ac_prog_version=`$CC -v 2>&1 | sed -n 's/^.*version \([egcygnustpi-]*[0-9.]*\).*$/\1/p'`
1440 case $ac_prog_version in
1441 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
1442 *gcc-2.9[5-9].*|*2.8.[1-9]*|*2.9|*2.9.[0-9]*|2.9[5-9]*|3.[0-9]*|cygnus-2.9[1-9]*|gcc-2.9[5-9]|gcc-2.1[0-9][0-9]|sgicc-*)
1443 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
1444 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
1447 echo "$ac_t""$ac_prog_version" 1>&6
1449 if test $ac_verc_fail = yes; then
1453 for ac_prog in gnumake gmake make
1455 # Extract the first word of "$ac_prog", so it can be a program name with args.
1456 set dummy $ac_prog; ac_word=$2
1457 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1458 echo "configure:1459: checking for $ac_word" >&5
1459 if eval "test \"`echo '$''{'ac_cv_prog_MAKE'+set}'`\" = set"; then
1460 echo $ac_n "(cached) $ac_c" 1>&6
1462 if test -n "$MAKE"; then
1463 ac_cv_prog_MAKE="$MAKE" # Let the user override the test.
1465 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1467 for ac_dir in $ac_dummy; do
1468 test -z "$ac_dir" && ac_dir=.
1469 if test -f $ac_dir/$ac_word; then
1470 ac_cv_prog_MAKE="$ac_prog"
1477 MAKE="$ac_cv_prog_MAKE"
1478 if test -n "$MAKE"; then
1479 echo "$ac_t""$MAKE" 1>&6
1481 echo "$ac_t""no" 1>&6
1484 test -n "$MAKE" && break
1487 if test -z "$MAKE"; then
1490 # Found it, now check the version.
1491 echo $ac_n "checking version of $MAKE""... $ac_c" 1>&6
1492 echo "configure:1493: checking version of $MAKE" >&5
1493 ac_prog_version=`$MAKE --version 2>&1 | sed -n 's/^.*GNU Make[^0-9]*\([0-9][0-9.]*\).*$/\1/p'`
1494 case $ac_prog_version in
1495 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
1497 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
1498 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
1501 echo "$ac_t""$ac_prog_version" 1>&6
1503 if test $ac_verc_fail = yes; then
1508 for ac_prog in gnumsgfmt gmsgfmt msgfmt
1510 # Extract the first word of "$ac_prog", so it can be a program name with args.
1511 set dummy $ac_prog; ac_word=$2
1512 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1513 echo "configure:1514: checking for $ac_word" >&5
1514 if eval "test \"`echo '$''{'ac_cv_prog_MSGFMT'+set}'`\" = set"; then
1515 echo $ac_n "(cached) $ac_c" 1>&6
1517 if test -n "$MSGFMT"; then
1518 ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
1520 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1522 for ac_dir in $ac_dummy; do
1523 test -z "$ac_dir" && ac_dir=.
1524 if test -f $ac_dir/$ac_word; then
1525 ac_cv_prog_MSGFMT="$ac_prog"
1532 MSGFMT="$ac_cv_prog_MSGFMT"
1533 if test -n "$MSGFMT"; then
1534 echo "$ac_t""$MSGFMT" 1>&6
1536 echo "$ac_t""no" 1>&6
1539 test -n "$MSGFMT" && break
1542 if test -z "$MSGFMT"; then
1545 # Found it, now check the version.
1546 echo $ac_n "checking version of $MSGFMT""... $ac_c" 1>&6
1547 echo "configure:1548: checking version of $MSGFMT" >&5
1548 ac_prog_version=`$MSGFMT --version 2>&1 | sed -n 's/^.*GNU gettext.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
1549 case $ac_prog_version in
1550 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
1551 0.[1-9][0-9].* | [1-9].*)
1552 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
1553 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
1556 echo "$ac_t""$ac_prog_version" 1>&6
1558 if test $ac_verc_fail = yes; then
1559 MSGFMT=: aux_missing=t
1562 for ac_prog in makeinfo
1564 # Extract the first word of "$ac_prog", so it can be a program name with args.
1565 set dummy $ac_prog; ac_word=$2
1566 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1567 echo "configure:1568: checking for $ac_word" >&5
1568 if eval "test \"`echo '$''{'ac_cv_prog_MAKEINFO'+set}'`\" = set"; then
1569 echo $ac_n "(cached) $ac_c" 1>&6
1571 if test -n "$MAKEINFO"; then
1572 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
1574 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1576 for ac_dir in $ac_dummy; do
1577 test -z "$ac_dir" && ac_dir=.
1578 if test -f $ac_dir/$ac_word; then
1579 ac_cv_prog_MAKEINFO="$ac_prog"
1586 MAKEINFO="$ac_cv_prog_MAKEINFO"
1587 if test -n "$MAKEINFO"; then
1588 echo "$ac_t""$MAKEINFO" 1>&6
1590 echo "$ac_t""no" 1>&6
1593 test -n "$MAKEINFO" && break
1596 if test -z "$MAKEINFO"; then
1599 # Found it, now check the version.
1600 echo $ac_n "checking version of $MAKEINFO""... $ac_c" 1>&6
1601 echo "configure:1602: checking version of $MAKEINFO" >&5
1602 ac_prog_version=`$MAKEINFO --version 2>&1 | sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
1603 case $ac_prog_version in
1604 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
1606 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
1607 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
1610 echo "$ac_t""$ac_prog_version" 1>&6
1612 if test $ac_verc_fail = yes; then
1613 MAKEINFO=: aux_missing=t
1616 for ac_prog in gsed sed
1618 # Extract the first word of "$ac_prog", so it can be a program name with args.
1619 set dummy $ac_prog; ac_word=$2
1620 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1621 echo "configure:1622: checking for $ac_word" >&5
1622 if eval "test \"`echo '$''{'ac_cv_prog_SED'+set}'`\" = set"; then
1623 echo $ac_n "(cached) $ac_c" 1>&6
1625 if test -n "$SED"; then
1626 ac_cv_prog_SED="$SED" # Let the user override the test.
1628 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1630 for ac_dir in $ac_dummy; do
1631 test -z "$ac_dir" && ac_dir=.
1632 if test -f $ac_dir/$ac_word; then
1633 ac_cv_prog_SED="$ac_prog"
1640 SED="$ac_cv_prog_SED"
1641 if test -n "$SED"; then
1642 echo "$ac_t""$SED" 1>&6
1644 echo "$ac_t""no" 1>&6
1647 test -n "$SED" && break
1650 if test -z "$SED"; then
1653 # Found it, now check the version.
1654 echo $ac_n "checking version of $SED""... $ac_c" 1>&6
1655 echo "configure:1656: checking version of $SED" >&5
1656 ac_prog_version=`$SED --version 2>&1 | sed -n 's/^.*GNU sed version \([0-9]*\.[0-9.]*\).*$/\1/p'`
1657 case $ac_prog_version in
1658 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
1659 3.0[2-9]*|3.[1-9]*|[4-9]*)
1660 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
1661 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
1664 echo "$ac_t""$ac_prog_version" 1>&6
1666 if test $ac_verc_fail = yes; then
1672 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1673 echo "configure:1674: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1674 if eval "test \"`echo '$''{'ac_cv_prog_cc_works'+set}'`\" = set"; then
1675 echo $ac_n "(cached) $ac_c" 1>&6
1679 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1680 ac_cpp='$CPP $CPPFLAGS'
1681 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1682 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1683 cross_compiling=$ac_cv_prog_cc_cross
1685 cat > conftest.$ac_ext << EOF
1687 #line 1688 "configure"
1688 #include "confdefs.h"
1692 if { (eval echo configure:1693: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1693 ac_cv_prog_cc_works=yes
1694 # If we can't run a trivial program, we are probably using a cross compiler.
1695 if (./conftest; exit) 2>/dev/null; then
1696 ac_cv_prog_cc_cross=no
1698 ac_cv_prog_cc_cross=yes
1701 echo "configure: failed program was:" >&5
1702 cat conftest.$ac_ext >&5
1703 ac_cv_prog_cc_works=no
1707 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1708 ac_cpp='$CPP $CPPFLAGS'
1709 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1710 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1711 cross_compiling=$ac_cv_prog_cc_cross
1715 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1716 if test $ac_cv_prog_cc_works = no; then
1718 ac_cv_prog_cc_cross=yes
1722 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1723 echo "configure:1724: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1724 if eval "test \"`echo '$''{'ac_cv_prog_cc_cross'+set}'`\" = set"; then
1725 echo $ac_n "(cached) $ac_c" 1>&6
1730 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1732 cross_compiling=$ac_cv_prog_cc_cross
1734 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1735 echo "configure:1736: checking whether we are using GNU C" >&5
1736 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1737 echo $ac_n "(cached) $ac_c" 1>&6
1739 cat > conftest.c <<EOF
1744 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1745: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1751 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1752 if test $ac_cv_prog_gcc != yes; then
1753 { echo "configure: error: GNU libc must be compiled using GNU CC" 1>&2; exit 1; }
1756 echo $ac_n "checking build system type""... $ac_c" 1>&6
1757 echo "configure:1758: checking build system type" >&5
1760 case "$build_alias" in
1763 NONE) build_alias=$host_alias ;;
1764 *) build_alias=$nonopt ;;
1768 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1769 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1770 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1771 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1772 echo "$ac_t""$build" 1>&6
1774 if test $host != $build; then
1775 for ac_prog in gcc cc
1777 # Extract the first word of "$ac_prog", so it can be a program name with args.
1778 set dummy $ac_prog; ac_word=$2
1779 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1780 echo "configure:1781: checking for $ac_word" >&5
1781 if eval "test \"`echo '$''{'ac_cv_prog_BUILD_CC'+set}'`\" = set"; then
1782 echo $ac_n "(cached) $ac_c" 1>&6
1784 if test -n "$BUILD_CC"; then
1785 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
1787 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1789 for ac_dir in $ac_dummy; do
1790 test -z "$ac_dir" && ac_dir=.
1791 if test -f $ac_dir/$ac_word; then
1792 ac_cv_prog_BUILD_CC="$ac_prog"
1799 BUILD_CC="$ac_cv_prog_BUILD_CC"
1800 if test -n "$BUILD_CC"; then
1801 echo "$ac_t""$BUILD_CC" 1>&6
1803 echo "$ac_t""no" 1>&6
1806 test -n "$BUILD_CC" && break
1811 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1812 echo "configure:1813: checking how to run the C preprocessor" >&5
1813 # On Suns, sometimes $CPP names a directory.
1814 if test -n "$CPP" && test -d "$CPP"; then
1817 if test -z "$CPP"; then
1818 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1819 echo $ac_n "(cached) $ac_c" 1>&6
1821 # This must be in double quotes, not single quotes, because CPP may get
1822 # substituted into the Makefile and "${CC-cc}" will confuse make.
1824 # On the NeXT, cc -E runs the code through the compiler's parser,
1825 # not just through cpp.
1826 cat > conftest.$ac_ext <<EOF
1827 #line 1828 "configure"
1828 #include "confdefs.h"
1832 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1833 { (eval echo configure:1834: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1834 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1835 if test -z "$ac_err"; then
1839 echo "configure: failed program was:" >&5
1840 cat conftest.$ac_ext >&5
1842 CPP="${CC-cc} -E -traditional-cpp"
1843 cat > conftest.$ac_ext <<EOF
1844 #line 1845 "configure"
1845 #include "confdefs.h"
1849 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1850 { (eval echo configure:1851: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1851 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1852 if test -z "$ac_err"; then
1856 echo "configure: failed program was:" >&5
1857 cat conftest.$ac_ext >&5
1859 CPP="${CC-cc} -nologo -E"
1860 cat > conftest.$ac_ext <<EOF
1861 #line 1862 "configure"
1862 #include "confdefs.h"
1866 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1867 { (eval echo configure:1868: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1868 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1869 if test -z "$ac_err"; then
1873 echo "configure: failed program was:" >&5
1874 cat conftest.$ac_ext >&5
1883 ac_cv_prog_CPP="$CPP"
1885 CPP="$ac_cv_prog_CPP"
1887 ac_cv_prog_CPP="$CPP"
1889 echo "$ac_t""$CPP" 1>&6
1891 # Was a --with-binutils option given?
1892 if test -n "$path_binutils"; then
1893 # Make absolute; ensure a single trailing slash.
1894 path_binutils=`(cd $path_binutils; pwd) | sed 's%/*$%/%'`
1895 CC="$CC -B$path_binutils"
1897 AS=`$CC -print-prog-name=as`
1898 LD=`$CC -print-prog-name=ld`
1899 AR=`$CC -print-prog-name=ar`
1902 # ranlib has to be treated a bit differently since it might not exist at all.
1903 RANLIB=`$CC -print-prog-name=ranlib`
1904 if test $RANLIB = ranlib; then
1905 # This extra check has to happen since gcc simply echos the parameter in
1906 # case it cannot find the value in its own directories.
1907 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1908 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1909 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1910 echo "configure:1911: checking for $ac_word" >&5
1911 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1912 echo $ac_n "(cached) $ac_c" 1>&6
1914 if test -n "$RANLIB"; then
1915 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1917 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1919 for ac_dir in $ac_dummy; do
1920 test -z "$ac_dir" && ac_dir=.
1921 if test -f $ac_dir/$ac_word; then
1922 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1929 RANLIB="$ac_cv_prog_RANLIB"
1930 if test -n "$RANLIB"; then
1931 echo "$ac_t""$RANLIB" 1>&6
1933 echo "$ac_t""no" 1>&6
1937 if test -z "$ac_cv_prog_RANLIB"; then
1938 if test -n "$ac_tool_prefix"; then
1939 # Extract the first word of "ranlib", so it can be a program name with args.
1940 set dummy ranlib; ac_word=$2
1941 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1942 echo "configure:1943: checking for $ac_word" >&5
1943 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1944 echo $ac_n "(cached) $ac_c" 1>&6
1946 if test -n "$RANLIB"; then
1947 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1949 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1951 for ac_dir in $ac_dummy; do
1952 test -z "$ac_dir" && ac_dir=.
1953 if test -f $ac_dir/$ac_word; then
1954 ac_cv_prog_RANLIB="ranlib"
1959 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1962 RANLIB="$ac_cv_prog_RANLIB"
1963 if test -n "$RANLIB"; then
1964 echo "$ac_t""$RANLIB" 1>&6
1966 echo "$ac_t""no" 1>&6
1977 # Determine whether we are using GNU binutils.
1978 echo $ac_n "checking whether $AS is GNU as""... $ac_c" 1>&6
1979 echo "configure:1980: checking whether $AS is GNU as" >&5
1980 if eval "test \"`echo '$''{'libc_cv_prog_as_gnu'+set}'`\" = set"; then
1981 echo $ac_n "(cached) $ac_c" 1>&6
1983 # Most GNU programs take a -v and spit out some text including
1984 # the word 'GNU'. Some try to read stdin, so give them /dev/null.
1985 if $AS -o conftest -v </dev/null 2>&1 | grep GNU > /dev/null 2>&1; then
1986 libc_cv_prog_as_gnu=yes
1988 libc_cv_prog_as_gnu=no
1993 echo "$ac_t""$libc_cv_prog_as_gnu" 1>&6
1995 gnu_as=$libc_cv_prog_as_gnu
1997 echo $ac_n "checking whether $LD is GNU ld""... $ac_c" 1>&6
1998 echo "configure:1999: checking whether $LD is GNU ld" >&5
1999 if eval "test \"`echo '$''{'libc_cv_prog_ld_gnu'+set}'`\" = set"; then
2000 echo $ac_n "(cached) $ac_c" 1>&6
2002 # Most GNU programs take a -v and spit out some text including
2003 # the word 'GNU'. Some try to read stdin, so give them /dev/null.
2004 if $LD -o conftest -v </dev/null 2>&1 | grep GNU > /dev/null 2>&1; then
2005 libc_cv_prog_ld_gnu=yes
2007 libc_cv_prog_ld_gnu=no
2012 echo "$ac_t""$libc_cv_prog_ld_gnu" 1>&6
2013 gnu_ld=$libc_cv_prog_ld_gnu
2015 # Extract the first word of "${ac_tool_prefix}mig", so it can be a program name with args.
2016 set dummy ${ac_tool_prefix}mig; ac_word=$2
2017 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2018 echo "configure:2019: checking for $ac_word" >&5
2019 if eval "test \"`echo '$''{'ac_cv_prog_MIG'+set}'`\" = set"; then
2020 echo $ac_n "(cached) $ac_c" 1>&6
2022 if test -n "$MIG"; then
2023 ac_cv_prog_MIG="$MIG" # Let the user override the test.
2025 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2027 for ac_dir in $ac_dummy; do
2028 test -z "$ac_dir" && ac_dir=.
2029 if test -f $ac_dir/$ac_word; then
2030 ac_cv_prog_MIG="${ac_tool_prefix}mig"
2035 test -z "$ac_cv_prog_MIG" && ac_cv_prog_MIG="mig"
2038 MIG="$ac_cv_prog_MIG"
2039 if test -n "$MIG"; then
2040 echo "$ac_t""$MIG" 1>&6
2042 echo "$ac_t""no" 1>&6
2048 # Accept binutils 2.10.1 or newer (and also any ia64 2.9 version)
2049 # XXX Commented out because it filters out too many good versions.
2051 # AC_CHECK_PROG_VER(AS, $AS, --version,
2052 # [GNU assembler.* \([0-9]*\.[0-9.]*\(-ia64-[0-9]*\)*\)],
2053 # [2.10.[1-9]* | 2.1[1-9]* | 2.9-ia64-*], AS=: critic_missing=t)
2055 if test -n "$critic_missing"; then
2056 { echo "configure: error:
2057 *** Some critical program is missing or too old.
2058 *** Check the INSTALL file for required versions." 1>&2; exit 1; }
2061 test -n "$aux_missing" && echo "configure: warning:
2062 *** An auxiliary program is missing or too old;
2063 *** some features will be disabled.
2064 *** Check the INSTALL file for required versions." 1>&2
2066 # glibcbug.in wants to know the compiler version.
2067 CCVERSION=`$CC -v 2>&1 | sed -n 's/gcc version //p'`
2070 # if using special system headers, find out the compiler's sekrit
2071 # header directory and add that to the list. NOTE: Only does the right
2072 # thing on a system that doesn't need fixincludes. (Not presently a problem.)
2073 if test -n "$sysheaders"; then
2074 ccheaders=`$CC -print-file-name=include`
2075 SYSINCLUDES="-nostdinc -isystem $ccheaders -isystem $sysheaders"
2079 # check if ranlib is necessary
2080 echo $ac_n "checking whether ranlib is necessary""... $ac_c" 1>&6
2081 echo "configure:2082: checking whether ranlib is necessary" >&5
2082 if eval "test \"`echo '$''{'libc_cv_ranlib_necessary'+set}'`\" = set"; then
2083 echo $ac_n "(cached) $ac_c" 1>&6
2085 cat > conftest.c <<EOF
2090 $CC $CFLAGS -c conftest.c
2091 $AR cr conftest.a conftest.c
2092 cp conftest.a conftest2.a
2094 if cmp -s conftest.a conftest2.a; then
2095 libc_cv_ranlib_necessary=no
2097 libc_cv_ranlib_necessary=yes
2102 echo "$ac_t""$libc_cv_ranlib_necessary" 1>&6
2103 if test "$libc_cv_ranlib_necessary" = no; then
2107 # Test if LD_LIBRARY_PATH contains the notation for the current directory
2108 # since this would lead to problems installing/building glibc.
2109 # LD_LIBRARY_PATH contains the current directory if one of the following
2111 # - one of the terminals (":" and ";") is the first or last sign
2112 # - two terminals occur directly after each other
2113 # - the path contains an element with a dot in it
2114 echo $ac_n "checking LD_LIBRARY_PATH variable""... $ac_c" 1>&6
2115 echo "configure:2116: checking LD_LIBRARY_PATH variable" >&5
2116 case ${LD_LIBRARY_PATH} in
2117 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
2118 ld_library_path_setting="contains current directory"
2121 ld_library_path_setting="ok"
2124 echo "$ac_t""$ld_library_path_setting" 1>&6
2125 if test "$ld_library_path_setting" != "ok"; then
2126 { echo "configure: error:
2127 *** LD_LIBRARY_PATH shouldn't contain the current directory when
2128 *** building glibc. Please change the environment variable
2129 *** and run configure again." 1>&2; exit 1; }
2132 # Extract the first word of "bash", so it can be a program name with args.
2133 set dummy bash; ac_word=$2
2134 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2135 echo "configure:2136: checking for $ac_word" >&5
2136 if eval "test \"`echo '$''{'ac_cv_path_BASH'+set}'`\" = set"; then
2137 echo $ac_n "(cached) $ac_c" 1>&6
2141 ac_cv_path_BASH="$BASH" # Let the user override the test with a path.
2144 ac_cv_path_BASH="$BASH" # Let the user override the test with a dos path.
2147 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2149 for ac_dir in $ac_dummy; do
2150 test -z "$ac_dir" && ac_dir=.
2151 if test -f $ac_dir/$ac_word; then
2152 ac_cv_path_BASH="$ac_dir/$ac_word"
2157 test -z "$ac_cv_path_BASH" && ac_cv_path_BASH="no"
2161 BASH="$ac_cv_path_BASH"
2162 if test -n "$BASH"; then
2163 echo "$ac_t""$BASH" 1>&6
2165 echo "$ac_t""no" 1>&6
2168 if test "$BASH" != no &&
2169 $BASH -c 'test "$BASH_VERSINFO" \
2170 && test "$BASH_VERSINFO" -ge 2 >&/dev/null'; then
2171 libc_cv_have_bash2=yes
2173 libc_cv_have_bash2=no
2177 if test "$BASH" = no; then
2178 # Extract the first word of "ksh", so it can be a program name with args.
2179 set dummy ksh; ac_word=$2
2180 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2181 echo "configure:2182: checking for $ac_word" >&5
2182 if eval "test \"`echo '$''{'ac_cv_path_KSH'+set}'`\" = set"; then
2183 echo $ac_n "(cached) $ac_c" 1>&6
2187 ac_cv_path_KSH="$KSH" # Let the user override the test with a path.
2190 ac_cv_path_KSH="$KSH" # Let the user override the test with a dos path.
2193 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2195 for ac_dir in $ac_dummy; do
2196 test -z "$ac_dir" && ac_dir=.
2197 if test -f $ac_dir/$ac_word; then
2198 ac_cv_path_KSH="$ac_dir/$ac_word"
2203 test -z "$ac_cv_path_KSH" && ac_cv_path_KSH="no"
2207 KSH="$ac_cv_path_KSH"
2208 if test -n "$KSH"; then
2209 echo "$ac_t""$KSH" 1>&6
2211 echo "$ac_t""no" 1>&6
2214 if test "$KSH" = no; then
2217 libc_cv_have_ksh=yes
2222 libc_cv_have_ksh=yes
2226 for ac_prog in gawk mawk nawk awk
2228 # Extract the first word of "$ac_prog", so it can be a program name with args.
2229 set dummy $ac_prog; ac_word=$2
2230 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2231 echo "configure:2232: checking for $ac_word" >&5
2232 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
2233 echo $ac_n "(cached) $ac_c" 1>&6
2235 if test -n "$AWK"; then
2236 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2238 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2240 for ac_dir in $ac_dummy; do
2241 test -z "$ac_dir" && ac_dir=.
2242 if test -f $ac_dir/$ac_word; then
2243 ac_cv_prog_AWK="$ac_prog"
2250 AWK="$ac_cv_prog_AWK"
2251 if test -n "$AWK"; then
2252 echo "$ac_t""$AWK" 1>&6
2254 echo "$ac_t""no" 1>&6
2257 test -n "$AWK" && break
2260 # Extract the first word of "perl", so it can be a program name with args.
2261 set dummy perl; ac_word=$2
2262 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2263 echo "configure:2264: checking for $ac_word" >&5
2264 if eval "test \"`echo '$''{'ac_cv_path_PERL'+set}'`\" = set"; then
2265 echo $ac_n "(cached) $ac_c" 1>&6
2269 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
2272 ac_cv_path_PERL="$PERL" # Let the user override the test with a dos path.
2275 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2277 for ac_dir in $ac_dummy; do
2278 test -z "$ac_dir" && ac_dir=.
2279 if test -f $ac_dir/$ac_word; then
2280 ac_cv_path_PERL="$ac_dir/$ac_word"
2285 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="no"
2289 PERL="$ac_cv_path_PERL"
2290 if test -n "$PERL"; then
2291 echo "$ac_t""$PERL" 1>&6
2293 echo "$ac_t""no" 1>&6
2296 if test "$PERL" != no &&
2297 (eval `$PERL -V:apiversion`; test `expr "$apiversion" \< 5` -ne 0); then
2300 # Extract the first word of "install-info", so it can be a program name with args.
2301 set dummy install-info; ac_word=$2
2302 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2303 echo "configure:2304: checking for $ac_word" >&5
2304 if eval "test \"`echo '$''{'ac_cv_path_INSTALL_INFO'+set}'`\" = set"; then
2305 echo $ac_n "(cached) $ac_c" 1>&6
2307 case "$INSTALL_INFO" in
2309 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
2312 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a dos path.
2315 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2316 ac_dummy="$PATH:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin"
2317 for ac_dir in $ac_dummy; do
2318 test -z "$ac_dir" && ac_dir=.
2319 if test -f $ac_dir/$ac_word; then
2320 ac_cv_path_INSTALL_INFO="$ac_dir/$ac_word"
2325 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO="no"
2329 INSTALL_INFO="$ac_cv_path_INSTALL_INFO"
2330 if test -n "$INSTALL_INFO"; then
2331 echo "$ac_t""$INSTALL_INFO" 1>&6
2333 echo "$ac_t""no" 1>&6
2336 if test "$INSTALL_INFO" != "no"; then
2337 echo $ac_n "checking for old Debian install-info""... $ac_c" 1>&6
2338 echo "configure:2339: checking for old Debian install-info" >&5
2339 if eval "test \"`echo '$''{'libc_cv_old_debian_install_info'+set}'`\" = set"; then
2340 echo $ac_n "(cached) $ac_c" 1>&6
2343 # There is a hard ^_ on the next line. I am open to better ideas.
2345 echo 'File: dir Node: Top This is the top of the INFO tree'
2346 echo '* Menu:') >conftest.d/dir
2347 (echo 'INFO-DIR-SECTION i-d-s works'
2348 echo 'START-INFO-DIR-ENTRY'
2349 echo '* Prog: (prog). Program.'
2350 echo 'END-INFO-DIR-ENTRY') >conftest.d/prog.info
2351 if $INSTALL_INFO --info-dir=conftest.d conftest.d/prog.info >&5 2>&1
2353 if grep -s 'i-d-s works' conftest.d/dir >/dev/null
2354 then libc_cv_old_debian_install_info=no
2355 else libc_cv_old_debian_install_info=yes
2357 else libc_cv_old_debian_install_info=no testfailed=t
2362 echo "$ac_t""$libc_cv_old_debian_install_info" 1>&6
2363 if test -n "$testfailed"
2364 then echo "configure: warning: install-info errored out, check config.log" 1>&2
2366 OLD_DEBIAN_INSTALL_INFO=$libc_cv_old_debian_install_info
2370 # Extract the first word of "bison", so it can be a program name with args.
2371 set dummy bison; ac_word=$2
2372 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2373 echo "configure:2374: checking for $ac_word" >&5
2374 if eval "test \"`echo '$''{'ac_cv_path_BISON'+set}'`\" = set"; then
2375 echo $ac_n "(cached) $ac_c" 1>&6
2379 ac_cv_path_BISON="$BISON" # Let the user override the test with a path.
2382 ac_cv_path_BISON="$BISON" # Let the user override the test with a dos path.
2385 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2386 ac_dummy="$PATH:/usr/local/bin:/usr/bin:/bin"
2387 for ac_dir in $ac_dummy; do
2388 test -z "$ac_dir" && ac_dir=.
2389 if test -f $ac_dir/$ac_word; then
2390 ac_cv_path_BISON="$ac_dir/$ac_word"
2395 test -z "$ac_cv_path_BISON" && ac_cv_path_BISON="no"
2399 BISON="$ac_cv_path_BISON"
2400 if test -n "$BISON"; then
2401 echo "$ac_t""$BISON" 1>&6
2403 echo "$ac_t""no" 1>&6
2407 echo $ac_n "checking for signed size_t type""... $ac_c" 1>&6
2408 echo "configure:2409: checking for signed size_t type" >&5
2409 if eval "test \"`echo '$''{'libc_cv_signed_size_t'+set}'`\" = set"; then
2410 echo $ac_n "(cached) $ac_c" 1>&6
2412 echo '#include <stddef.h>
2413 FOOBAR __SIZE_TYPE__ FOOBAR' > conftest.c
2414 if eval "$ac_cpp conftest.c 2>/dev/null" \
2415 | grep '^FOOBAR.*unsigned.*FOOBAR$' >/dev/null; then
2416 libc_cv_signed_size_t=no
2418 libc_cv_signed_size_t=yes
2423 echo "$ac_t""$libc_cv_signed_size_t" 1>&6
2424 if test $libc_cv_signed_size_t = yes; then
2425 cat >> confdefs.h <<\EOF
2426 #undef __SIZE_TYPE__
2427 #define __SIZE_TYPE__ unsigned
2431 echo $ac_n "checking for libc-friendly stddef.h""... $ac_c" 1>&6
2432 echo "configure:2433: checking for libc-friendly stddef.h" >&5
2433 if eval "test \"`echo '$''{'libc_cv_friendly_stddef'+set}'`\" = set"; then
2434 echo $ac_n "(cached) $ac_c" 1>&6
2436 cat > conftest.$ac_ext <<EOF
2437 #line 2438 "configure"
2438 #include "confdefs.h"
2439 #define __need_size_t
2440 #define __need_wchar_t
2445 size_t size; wchar_t wchar;
2447 #error stddef.h ignored __need_*
2449 if (&size == NULL || &wchar == NULL) abort ();
2452 if { (eval echo configure:2453: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2454 libc_cv_friendly_stddef=yes
2456 echo "configure: failed program was:" >&5
2457 cat conftest.$ac_ext >&5
2459 libc_cv_friendly_stddef=no
2464 echo "$ac_t""$libc_cv_friendly_stddef" 1>&6
2465 if test $libc_cv_friendly_stddef = yes; then
2466 config_vars="$config_vars
2467 override stddef.h = # The installed <stddef.h> seems to be libc-friendly."
2470 echo $ac_n "checking whether we need to use -P to assemble .S files""... $ac_c" 1>&6
2471 echo "configure:2472: checking whether we need to use -P to assemble .S files" >&5
2472 if eval "test \"`echo '$''{'libc_cv_need_minus_P'+set}'`\" = set"; then
2473 echo $ac_n "(cached) $ac_c" 1>&6
2475 cat > conftest.S <<EOF
2476 #include "confdefs.h"
2477 /* Nothing whatsoever. */
2479 if ${CC-cc} $CFLAGS -c conftest.S 2>/dev/null; then
2480 libc_cv_need_minus_P=no
2482 libc_cv_need_minus_P=yes
2487 echo "$ac_t""$libc_cv_need_minus_P" 1>&6
2488 if test $libc_cv_need_minus_P = yes; then
2489 config_vars="$config_vars
2490 asm-CPPFLAGS = -P # The assembler can't grok cpp's # line directives."
2493 echo $ac_n "checking whether .text pseudo-op must be used""... $ac_c" 1>&6
2494 echo "configure:2495: checking whether .text pseudo-op must be used" >&5
2495 if eval "test \"`echo '$''{'libc_cv_dot_text'+set}'`\" = set"; then
2496 echo $ac_n "(cached) $ac_c" 1>&6
2498 cat > conftest.s <<EOF
2502 if ${CC-cc} $CFLAGS -c conftest.s 2>/dev/null; then
2503 libc_cv_dot_text=.text
2508 if test -z "$libc_cv_dot_text"; then
2509 echo "$ac_t""no" 1>&6
2511 echo "$ac_t""yes" 1>&6
2514 echo $ac_n "checking for assembler global-symbol directive""... $ac_c" 1>&6
2515 echo "configure:2516: checking for assembler global-symbol directive" >&5
2516 if eval "test \"`echo '$''{'libc_cv_asm_global_directive'+set}'`\" = set"; then
2517 echo $ac_n "(cached) $ac_c" 1>&6
2519 libc_cv_asm_global_directive=UNKNOWN
2520 for ac_globl in .globl .global .EXPORT; do
2521 cat > conftest.s <<EOF
2526 if ${CC-cc} $CFLAGS -c conftest.s 2>/dev/null; then
2527 libc_cv_asm_global_directive=${ac_globl}
2530 test $libc_cv_asm_global_directive != UNKNOWN && break
2534 echo "$ac_t""$libc_cv_asm_global_directive" 1>&6
2535 if test $libc_cv_asm_global_directive = UNKNOWN; then
2536 { echo "configure: error: cannot determine asm global directive" 1>&2; exit 1; }
2538 cat >> confdefs.h <<EOF
2539 #define ASM_GLOBAL_DIRECTIVE ${libc_cv_asm_global_directive}
2544 echo $ac_n "checking for .set assembler directive""... $ac_c" 1>&6
2545 echo "configure:2546: checking for .set assembler directive" >&5
2546 if eval "test \"`echo '$''{'libc_cv_asm_set_directive'+set}'`\" = set"; then
2547 echo $ac_n "(cached) $ac_c" 1>&6
2549 cat > conftest.s <<EOF
2552 .set glibc_conftest_frobozz,foo
2553 $libc_cv_asm_global_directive glibc_conftest_frobozz
2555 # The alpha-dec-osf1 assembler gives only a warning for `.set'
2556 # (but it doesn't work), so we must do a linking check to be sure.
2557 cat > conftest1.c <<\EOF
2558 extern int glibc_conftest_frobozz;
2559 main () { printf ("%d\n", glibc_conftest_frobozz); }
2561 if ${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \
2562 -o conftest conftest.s conftest1.c 1>&5 2>&5; then
2563 libc_cv_asm_set_directive=yes
2565 libc_cv_asm_set_directive=no
2570 echo "$ac_t""$libc_cv_asm_set_directive" 1>&6
2571 if test $libc_cv_asm_set_directive = yes; then
2572 cat >> confdefs.h <<\EOF
2573 #define HAVE_ASM_SET_DIRECTIVE 1
2578 # The Aix ld uses global .symbol_names instead of symbol_names.
2581 cat >> confdefs.h <<\EOF
2582 #define HAVE_ASM_GLOBAL_DOT_NAME 1
2587 echo $ac_n "checking for .symver assembler directive""... $ac_c" 1>&6
2588 echo "configure:2589: checking for .symver assembler directive" >&5
2589 if eval "test \"`echo '$''{'libc_cv_asm_symver_directive'+set}'`\" = set"; then
2590 echo $ac_n "(cached) $ac_c" 1>&6
2592 cat > conftest.s <<EOF
2595 .symver _sym,sym@VERS
2597 if ${CC-cc} -c $CFLAGS $CPPFLAGS conftest.s 1>&5 2>&5; then
2598 libc_cv_asm_symver_directive=yes
2600 libc_cv_asm_symver_directive=no
2605 echo "$ac_t""$libc_cv_asm_symver_directive" 1>&6
2606 echo $ac_n "checking for ld --version-script""... $ac_c" 1>&6
2607 echo "configure:2608: checking for ld --version-script" >&5
2608 if eval "test \"`echo '$''{'libc_cv_ld_version_script_option'+set}'`\" = set"; then
2609 echo $ac_n "(cached) $ac_c" 1>&6
2611 if test $libc_cv_asm_symver_directive = yes; then
2612 cat > conftest.s <<EOF
2615 .symver _sym,sym@VERS
2617 cat > conftest.map <<EOF
2626 if ${CC-cc} -c $CFLAGS $CPPFLAGS conftest.s 1>&5 2>&5; then
2627 if { ac_try='${CC-cc} $CFLAGS -shared -o conftest.so conftest.o
2628 -nostartfiles -nostdlib
2629 -Wl,--version-script,conftest.map
2630 1>&5'; { (eval echo configure:2631: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; };
2632 libc_cv_ld_version_script_option=yes
2634 libc_cv_ld_version_script_option=no
2637 libc_cv_ld_version_script_option=no
2640 libc_cv_ld_version_script_option=no
2645 echo "$ac_t""$libc_cv_ld_version_script_option" 1>&6
2646 if test $shared != no &&
2647 test $libc_cv_asm_symver_directive = yes &&
2648 test $libc_cv_ld_version_script_option = yes &&
2649 test $enable_versioning = yes; then
2651 cat >> confdefs.h <<\EOF
2652 #define DO_VERSIONING 1
2660 if test $shared != no && test $VERSIONING = no; then
2662 *** WARNING: You should not compile GNU libc without versioning. Not using
2663 *** versioning will introduce incompatibilities so that old binaries
2664 *** will not run anymore.
2665 *** For versioning you need recent binutils (binutils-2.8.1.0.23 or newer)."
2667 if test $elf = yes; then
2668 echo $ac_n "checking for .previous assembler directive""... $ac_c" 1>&6
2669 echo "configure:2670: checking for .previous assembler directive" >&5
2670 if eval "test \"`echo '$''{'libc_cv_asm_previous_directive'+set}'`\" = set"; then
2671 echo $ac_n "(cached) $ac_c" 1>&6
2673 cat > conftest.s <<EOF
2674 .section foo_section
2677 if { ac_try='${CC-cc} -c $CFLAGS conftest.s 1>&5'; { (eval echo configure:2678: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
2678 libc_cv_asm_previous_directive=yes
2680 libc_cv_asm_previous_directive=no
2685 echo "$ac_t""$libc_cv_asm_previous_directive" 1>&6
2686 if test $libc_cv_asm_previous_directive = yes; then
2687 cat >> confdefs.h <<\EOF
2688 #define HAVE_ASM_PREVIOUS_DIRECTIVE 1
2692 echo $ac_n "checking for .popsection assembler directive""... $ac_c" 1>&6
2693 echo "configure:2694: checking for .popsection assembler directive" >&5
2694 if eval "test \"`echo '$''{'libc_cv_asm_popsection_directive'+set}'`\" = set"; then
2695 echo $ac_n "(cached) $ac_c" 1>&6
2697 cat > conftest.s <<EOF
2698 .pushsection foo_section
2701 if { ac_try='${CC-cc} -c $CFLAGS conftest.s 1>&5'; { (eval echo configure:2702: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
2702 libc_cv_asm_popsection_directive=yes
2704 libc_cv_asm_popsection_directive=no
2709 echo "$ac_t""$libc_cv_asm_popsection_directive" 1>&6
2710 if test $libc_cv_asm_popsection_directive = yes; then
2711 cat >> confdefs.h <<\EOF
2712 #define HAVE_ASM_POPSECTION_DIRECTIVE 1
2717 echo $ac_n "checking for .protected and .hidden assembler directive""... $ac_c" 1>&6
2718 echo "configure:2719: checking for .protected and .hidden assembler directive" >&5
2719 if eval "test \"`echo '$''{'libc_cv_asm_protected_directive'+set}'`\" = set"; then
2720 echo $ac_n "(cached) $ac_c" 1>&6
2722 cat > conftest.s <<EOF
2728 if { ac_try='${CC-cc} -c $CFLAGS conftest.s 1>&5'; { (eval echo configure:2729: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
2729 libc_cv_asm_protected_directive=yes
2731 libc_cv_asm_protected_directive=no
2736 echo "$ac_t""$libc_cv_asm_protected_directive" 1>&6
2739 echo $ac_n "checking for -z nodelete option""... $ac_c" 1>&6
2740 echo "configure:2741: checking for -z nodelete option" >&5
2741 if eval "test \"`echo '$''{'libc_cv_z_nodelete'+set}'`\" = set"; then
2742 echo $ac_n "(cached) $ac_c" 1>&6
2744 cat > conftest.c <<EOF
2745 int _start (void) { return 42; }
2747 if { ac_try='${CC-cc} -shared -o conftest.so conftest.c -Wl,--enable-new-dtags,-z,nodelete 1>&5'; { (eval echo configure:2748: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }
2749 libc_cv_z_nodelete=yes
2751 libc_cv_z_nodelete=no
2756 echo "$ac_t""$libc_cv_z_nodelete" 1>&6
2759 echo $ac_n "checking for -z nodlopen option""... $ac_c" 1>&6
2760 echo "configure:2761: checking for -z nodlopen option" >&5
2761 if eval "test \"`echo '$''{'libc_cv_z_nodlopen'+set}'`\" = set"; then
2762 echo $ac_n "(cached) $ac_c" 1>&6
2764 cat > conftest.c <<EOF
2765 int _start (void) { return 42; }
2767 if { ac_try='${CC-cc} -shared -o conftest.so conftest.c -Wl,--enable-new-dtags,-z,nodlopen 1>&5'; { (eval echo configure:2768: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }
2769 libc_cv_z_nodlopen=yes
2771 libc_cv_z_nodlopen=no
2776 echo "$ac_t""$libc_cv_z_nodlopen" 1>&6
2779 echo $ac_n "checking for -z initfirst option""... $ac_c" 1>&6
2780 echo "configure:2781: checking for -z initfirst option" >&5
2781 if eval "test \"`echo '$''{'libc_cv_z_initfirst'+set}'`\" = set"; then
2782 echo $ac_n "(cached) $ac_c" 1>&6
2784 cat > conftest.c <<EOF
2785 int _start (void) { return 42; }
2787 if { ac_try='${CC-cc} -shared -o conftest.so conftest.c -Wl,--enable-new-dtags,-z,initfirst 1>&5'; { (eval echo configure:2788: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }
2789 libc_cv_z_initfirst=yes
2791 libc_cv_z_initfirst=no
2796 echo "$ac_t""$libc_cv_z_initfirst" 1>&6
2800 if test $elf != yes; then
2801 echo $ac_n "checking for .init and .fini sections""... $ac_c" 1>&6
2802 echo "configure:2803: checking for .init and .fini sections" >&5
2803 if eval "test \"`echo '$''{'libc_cv_have_initfini'+set}'`\" = set"; then
2804 echo $ac_n "(cached) $ac_c" 1>&6
2806 cat > conftest.$ac_ext <<EOF
2807 #line 2808 "configure"
2808 #include "confdefs.h"
2811 asm (".section .init");
2812 asm (".section .fini");
2813 asm ("${libc_cv_dot_text}");
2816 if { (eval echo configure:2817: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2818 libc_cv_have_initfini=yes
2820 echo "configure: failed program was:" >&5
2821 cat conftest.$ac_ext >&5
2823 libc_cv_have_initfini=no
2828 echo "$ac_t""$libc_cv_have_initfini" 1>&6
2829 if test $libc_cv_have_initfini = yes; then
2830 cat >> confdefs.h <<\EOF
2831 #define HAVE_INITFINI 1
2837 if test $elf = yes -a $gnu_ld = yes; then
2838 echo $ac_n "checking whether cc puts quotes around section names""... $ac_c" 1>&6
2839 echo "configure:2840: checking whether cc puts quotes around section names" >&5
2840 if eval "test \"`echo '$''{'libc_cv_have_section_quotes'+set}'`\" = set"; then
2841 echo $ac_n "(cached) $ac_c" 1>&6
2843 cat > conftest.c <<EOF
2844 static const int foo
2845 __attribute__ ((section ("bar"))) = 1;
2847 if ${CC-cc} -S conftest.c -o conftest.s; then
2848 if grep '\.section.*"bar"' conftest.s >/dev/null; then
2849 libc_cv_have_section_quotes=yes
2851 libc_cv_have_section_quotes=no
2854 libc_cv_have_section_quotes=unknown
2860 echo "$ac_t""$libc_cv_have_section_quotes" 1>&6
2861 if test $libc_cv_have_section_quotes = yes; then
2862 cat >> confdefs.h <<\EOF
2863 #define HAVE_SECTION_QUOTES 1
2871 if test $elf = yes; then
2872 libc_cv_asm_underscores=no
2874 if test $ac_cv_prog_cc_works = yes; then
2875 echo $ac_n "checking for _ prefix on C symbol names""... $ac_c" 1>&6
2876 echo "configure:2877: checking for _ prefix on C symbol names" >&5
2877 if eval "test \"`echo '$''{'libc_cv_asm_underscores'+set}'`\" = set"; then
2878 echo $ac_n "(cached) $ac_c" 1>&6
2880 cat > conftest.$ac_ext <<EOF
2881 #line 2882 "configure"
2882 #include "confdefs.h"
2883 asm ("_glibc_foobar:");
2888 if { (eval echo configure:2889: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2890 libc_cv_asm_underscores=yes
2892 echo "configure: failed program was:" >&5
2893 cat conftest.$ac_ext >&5
2895 libc_cv_asm_underscores=no
2900 echo "$ac_t""$libc_cv_asm_underscores" 1>&6
2902 echo $ac_n "checking for _ prefix on C symbol names""... $ac_c" 1>&6
2903 echo "configure:2904: checking for _ prefix on C symbol names" >&5
2904 if eval "test \"`echo '$''{'libc_cv_asm_underscores'+set}'`\" = set"; then
2905 echo $ac_n "(cached) $ac_c" 1>&6
2907 cat > conftest.$ac_ext <<EOF
2908 #line 2909 "configure"
2909 #include "confdefs.h"
2910 void underscore_test(void) {
2913 if { (eval echo configure:2914: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2914 if grep _underscore_test conftest* >/dev/null; then
2916 libc_cv_asm_underscores=yes
2919 libc_cv_asm_underscores=no
2922 echo "configure: failed program was:" >&5
2923 cat conftest.$ac_ext >&5
2925 libc_cv_asm_underscores=no
2930 echo "$ac_t""$libc_cv_asm_underscores" 1>&6
2933 if test $libc_cv_asm_underscores = no; then
2934 cat >> confdefs.h <<\EOF
2935 #define NO_UNDERSCORES 1
2940 if test $elf = yes; then
2941 libc_cv_weak_symbols=yes
2944 echo $ac_n "checking for assembler .weak directive""... $ac_c" 1>&6
2945 echo "configure:2946: checking for assembler .weak directive" >&5
2946 if eval "test \"`echo '$''{'libc_cv_asm_weak_directive'+set}'`\" = set"; then
2947 echo $ac_n "(cached) $ac_c" 1>&6
2949 cat > conftest.s <<EOF
2951 ${libc_cv_asm_global_directive} foo
2954 .weak bar; bar = foo
2956 if ${CC-cc} $CFLAGS -c conftest.s 2>/dev/null; then
2957 libc_cv_asm_weak_directive=yes
2959 libc_cv_asm_weak_directive=no
2964 echo "$ac_t""$libc_cv_asm_weak_directive" 1>&6
2966 if test $libc_cv_asm_weak_directive = no; then
2967 echo $ac_n "checking for assembler .weakext directive""... $ac_c" 1>&6
2968 echo "configure:2969: checking for assembler .weakext directive" >&5
2969 if eval "test \"`echo '$''{'libc_cv_asm_weakext_directive'+set}'`\" = set"; then
2970 echo $ac_n "(cached) $ac_c" 1>&6
2972 cat > conftest.s <<EOF
2974 ${libc_cv_asm_global_directive} foo
2978 ${libc_cv_asm_global_directive} baz
2981 if ${CC-cc} $CFLAGS -c conftest.s 2>/dev/null; then
2982 libc_cv_asm_weakext_directive=yes
2984 libc_cv_asm_weakext_directive=no
2989 echo "$ac_t""$libc_cv_asm_weakext_directive" 1>&6
2993 if test $libc_cv_asm_weak_directive = yes; then
2994 cat >> confdefs.h <<\EOF
2995 #define HAVE_ASM_WEAK_DIRECTIVE 1
2998 elif test $libc_cv_asm_weakext_directive = yes; then
2999 cat >> confdefs.h <<\EOF
3000 #define HAVE_ASM_WEAKEXT_DIRECTIVE 1
3005 case "${host_cpu}-${host_os}" in
3007 echo $ac_n "checking for assembler line separator""... $ac_c" 1>&6
3008 echo "configure:3009: checking for assembler line separator" >&5
3009 if eval "test \"`echo '$''{'libc_cv_asm_line_sep'+set}'`\" = set"; then
3010 echo $ac_n "(cached) $ac_c" 1>&6
3012 cat > conftest.s <<EOF
3015 if { ac_try='${CC-cc} -c $CFLAGS conftest.s 1>&5'; { (eval echo configure:3016: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
3016 libc_cv_asm_line_sep='!'
3018 if test -z "$enable_hacker_mode"; then
3019 echo "*** You need a newer assembler to compile glibc"
3023 libc_cv_asm_line_sep=';'
3028 echo "$ac_t""$libc_cv_asm_line_sep" 1>&6
3029 cat >> confdefs.h <<EOF
3030 #define ASM_LINE_SEP $libc_cv_asm_line_sep
3036 echo $ac_n "checking for ld --no-whole-archive""... $ac_c" 1>&6
3037 echo "configure:3038: checking for ld --no-whole-archive" >&5
3038 if eval "test \"`echo '$''{'libc_cv_ld_no_whole_archive'+set}'`\" = set"; then
3039 echo $ac_n "(cached) $ac_c" 1>&6
3041 cat > conftest.c <<\EOF
3046 if { ac_try='${CC-cc} $CFLAGS
3047 -nostdlib -nostartfiles -Wl,--no-whole-archive
3048 -o conftest conftest.c 1>&5'; { (eval echo configure:3049: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
3049 libc_cv_ld_no_whole_archive=yes
3051 libc_cv_ld_no_whole_archive=no
3056 echo "$ac_t""$libc_cv_ld_no_whole_archive" 1>&6
3057 if test $libc_cv_ld_no_whole_archive = yes; then
3058 no_whole_archive=-Wl,--no-whole-archive
3061 echo $ac_n "checking for gcc -fexceptions""... $ac_c" 1>&6
3062 echo "configure:3063: checking for gcc -fexceptions" >&5
3063 if eval "test \"`echo '$''{'libc_cv_gcc_exceptions'+set}'`\" = set"; then
3064 echo $ac_n "(cached) $ac_c" 1>&6
3066 cat > conftest.c <<\EOF
3071 if { ac_try='${CC-cc} $CFLAGS
3072 -nostdlib -nostartfiles -fexceptions
3073 -o conftest conftest.c 1>&5'; { (eval echo configure:3074: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
3074 libc_cv_gcc_exceptions=yes
3076 libc_cv_gcc_exceptions=no
3081 echo "$ac_t""$libc_cv_gcc_exceptions" 1>&6
3082 if test $libc_cv_gcc_exceptions = yes; then
3083 exceptions=-fexceptions
3086 if test "$base_machine" = alpha ; then
3087 echo $ac_n "checking for function ..ng prefix""... $ac_c" 1>&6
3088 echo "configure:3089: checking for function ..ng prefix" >&5
3089 if eval "test \"`echo '$''{'libc_cv_gcc_alpha_ng_prefix'+set}'`\" = set"; then
3090 echo $ac_n "(cached) $ac_c" 1>&6
3092 cat > conftest.c <<\EOF
3095 if { ac_try='${CC-cc} -S conftest.c -o - | fgrep "\$foo..ng" > /dev/null'; { (eval echo configure:3096: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; };
3097 libc_cv_gcc_alpha_ng_prefix=yes
3099 libc_cv_gcc_alpha_ng_prefix=no
3104 echo "$ac_t""$libc_cv_gcc_alpha_ng_prefix" 1>&6
3105 if test $libc_cv_gcc_alpha_ng_prefix = yes ; then
3106 cat >> confdefs.h <<\EOF
3107 #define ASM_ALPHA_NG_SYMBOL_PREFIX "$"
3111 cat >> confdefs.h <<\EOF
3112 #define ASM_ALPHA_NG_SYMBOL_PREFIX ""
3118 if test "$host_cpu" = powerpc ; then
3119 # Check for a bug present in at least versions 2.8.x of GCC
3120 # and versions 1.0.x of EGCS.
3121 echo $ac_n "checking whether clobbering cr0 causes problems""... $ac_c" 1>&6
3122 echo "configure:3123: checking whether clobbering cr0 causes problems" >&5
3123 if eval "test \"`echo '$''{'libc_cv_c_asmcr0_bug'+set}'`\" = set"; then
3124 echo $ac_n "(cached) $ac_c" 1>&6
3126 cat > conftest.$ac_ext <<EOF
3127 #line 3128 "configure"
3128 #include "confdefs.h"
3129 int tester(int x) { asm ("" : : : "cc"); return x & 123; }
3134 if { (eval echo configure:3135: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3136 libc_cv_c_asmcr0_bug='no'
3138 echo "configure: failed program was:" >&5
3139 cat conftest.$ac_ext >&5
3141 libc_cv_c_asmcr0_bug='yes'
3146 echo "$ac_t""$libc_cv_c_asmcr0_bug" 1>&6
3147 if test "$libc_cv_c_asmcr0_bug" != 'no'; then
3148 cat >> confdefs.h <<\EOF
3149 #define BROKEN_PPC_ASM_CR0 1
3155 echo $ac_n "checking for DWARF2 unwind info support""... $ac_c" 1>&6
3156 echo "configure:3157: checking for DWARF2 unwind info support" >&5
3157 if eval "test \"`echo '$''{'libc_cv_gcc_dwarf2_unwind_info'+set}'`\" = set"; then
3158 echo $ac_n "(cached) $ac_c" 1>&6
3160 cat > conftest.c <<EOF
3161 #line 3162 "configure"
3162 static char __EH_FRAME_BEGIN__;
3165 #ifdef CHECK__register_frame
3166 __register_frame (__EH_FRAME_BEGIN__);
3167 __deregister_frame (__EH_FRAME_BEGIN__);
3169 #ifdef CHECK__register_frame_info
3170 __register_frame_info (__EH_FRAME_BEGIN__);
3171 __deregister_frame_info (__EH_FRAME_BEGIN__);
3176 /* FIXME: this is fragile. */
3186 if { ac_try='${CC-cc} $CFLAGS -DCHECK__register_frame_info
3187 -nostdlib -nostartfiles
3188 -o conftest conftest.c -lgcc >&5'; { (eval echo configure:3189: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
3189 libc_cv_gcc_dwarf2_unwind_info=static
3191 libc_cv_gcc_dwarf2_unwind_info=no
3193 if test $libc_cv_gcc_dwarf2_unwind_info = no; then
3194 if { ac_try='${CC-cc} $CFLAGS -DCHECK__register_frame
3195 -nostdlib -nostartfiles
3196 -o conftest conftest.c -lgcc >&5'; { (eval echo configure:3197: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
3197 libc_cv_gcc_dwarf2_unwind_info=yes
3199 libc_cv_gcc_dwarf2_unwind_info=no
3205 echo "$ac_t""$libc_cv_gcc_dwarf2_unwind_info" 1>&6
3206 case $libc_cv_gcc_dwarf2_unwind_info in
3208 cat >> confdefs.h <<\EOF
3209 #define HAVE_DWARF2_UNWIND_INFO 1
3214 cat >> confdefs.h <<\EOF
3215 #define HAVE_DWARF2_UNWIND_INFO 1
3218 cat >> confdefs.h <<\EOF
3219 #define HAVE_DWARF2_UNWIND_INFO_STATIC 1
3225 echo $ac_n "checking for __builtin_expect""... $ac_c" 1>&6
3226 echo "configure:3227: checking for __builtin_expect" >&5
3227 if eval "test \"`echo '$''{'libc_cv_gcc_builtin_expect'+set}'`\" = set"; then
3228 echo $ac_n "(cached) $ac_c" 1>&6
3230 cat > conftest.c <<EOF
3231 #line 3232 "configure"
3234 a = __builtin_expect (a, 10);
3235 return a == 10 ? 0 : 1;
3238 if { ac_try='${CC-cc} $CFLAGS -nostdlib -nostartfiles
3239 -o conftest conftest.c -lgcc >&5'; { (eval echo configure:3240: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
3240 libc_cv_gcc_builtin_expect=yes
3242 libc_cv_gcc_builtin_expect=no
3247 echo "$ac_t""$libc_cv_gcc_builtin_expect" 1>&6
3248 if test "$libc_cv_gcc_builtin_expect" = yes; then
3249 cat >> confdefs.h <<\EOF
3250 #define HAVE_BUILTIN_EXPECT 1
3255 echo $ac_n "checking for local label subtraction""... $ac_c" 1>&6
3256 echo "configure:3257: checking for local label subtraction" >&5
3257 if eval "test \"`echo '$''{'libc_cv_gcc_subtract_local_labels'+set}'`\" = set"; then
3258 echo $ac_n "(cached) $ac_c" 1>&6
3260 cat > conftest.c <<EOF
3261 #line 3262 "configure"
3264 static const int ar[] = { &&l1 - &&l1, &&l2 - &&l1 };
3265 void *p = &&l1 + ar[a];
3273 if { ac_try='${CC-cc} $CFLAGS -nostdlib -nostartfiles
3274 -o conftest conftest.c -lgcc >&5'; { (eval echo configure:3275: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
3275 libc_cv_gcc_subtract_local_labels=yes
3277 libc_cv_gcc_subtract_local_labels=no
3282 echo "$ac_t""$libc_cv_gcc_subtract_local_labels" 1>&6
3283 if test "$libc_cv_gcc_subtract_local_labels" = yes; then
3284 cat >> confdefs.h <<\EOF
3285 #define HAVE_SUBTRACT_LOCAL_LABELS 1
3290 echo $ac_n "checking for libgd""... $ac_c" 1>&6
3291 echo "configure:3292: checking for libgd" >&5
3292 if test "$with_gd" != "no"; then
3293 old_CFLAGS="$CFLAGS"
3294 CFLAGS="$CFLAGS $libgd_include"
3295 old_LDFLAGS="$LDFLAGS"
3296 LDFLAGS="$LDFLAGS $libgd_ldflags"
3298 LIBS="$LIBS -lgd -lpng -lz -lm"
3299 cat > conftest.$ac_ext <<EOF
3300 #line 3301 "configure"
3301 #include "confdefs.h"
3307 if { (eval echo configure:3308: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3311 echo "configure: failed program was:" >&5
3312 cat conftest.$ac_ext >&5
3317 CFLAGS="$old_CFLAGS"
3318 LDFLAGS="$old_LDFLAGS"
3323 echo "$ac_t""$LIBGD" 1>&6
3326 echo $ac_n "checking size of long double""... $ac_c" 1>&6
3327 echo "configure:3328: checking size of long double" >&5
3328 if eval "test \"`echo '$''{'ac_cv_sizeof_long_double'+set}'`\" = set"; then
3329 echo $ac_n "(cached) $ac_c" 1>&6
3331 if test "$cross_compiling" = yes; then
3332 ac_cv_sizeof_long_double=0
3334 cat > conftest.$ac_ext <<EOF
3335 #line 3336 "configure"
3336 #include "confdefs.h"
3340 FILE *f=fopen("conftestval", "w");
3342 fprintf(f, "%d\n", sizeof(long double));
3346 if { (eval echo configure:3347: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3348 ac_cv_sizeof_long_double=`cat conftestval`
3350 echo "configure: failed program was:" >&5
3351 cat conftest.$ac_ext >&5
3353 ac_cv_sizeof_long_double=0
3359 echo "$ac_t""$ac_cv_sizeof_long_double" 1>&6
3360 cat >> confdefs.h <<EOF
3361 #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
3365 sizeof_long_double=$ac_cv_sizeof_long_double
3368 ### End of automated tests.
3369 ### Now run sysdeps configure fragments.
3371 # sysdeps configure fragments may set these with files to be linked below.
3375 # They also can set these variables.
3377 ldd_rewrite_script=no
3379 # Iterate over all the sysdep directories we will use, running their
3380 # configure fragments, and looking for a uname implementation.
3382 for dir in $sysnames; do
3385 *) dest=$srcdir/$dir ;;
3387 if test -r $dest/configure; then
3388 echo "$ac_t""running configure fragment for $dest" 1>&6
3392 if test -z "$uname"; then
3393 if test -r $dest/uname.c ||
3394 test -r $dest/uname.S ||
3395 { test -r $dest/syscalls.list &&
3396 grep '^uname[ ]' $dest/syscalls.list >/dev/null; }; then
3404 # If we will use the generic uname implementation, we must figure out what
3405 # it will say by examining the system, and write the results in config-name.h.
3406 if test "$uname" = "sysdeps/generic"; then
3408 uname_sysname=`echo $config_os | sed 's/[0-9.]*$//'`
3409 if test $uname_sysname != $config_os; then
3410 config_release=`echo $config_os | sed s/$uname_sysname//`
3413 echo $ac_n "checking OS release for uname""... $ac_c" 1>&6
3414 echo "configure:3415: checking OS release for uname" >&5
3415 if eval "test \"`echo '$''{'libc_cv_uname_release'+set}'`\" = set"; then
3416 echo $ac_n "(cached) $ac_c" 1>&6
3418 kernel_release=`echo "$kernel_id" | sed 's/^[^0-9.]*\([0-9.]*\).*$/\1/'`
3419 if test x`echo "$config_release" | sed "s/^$kernel_release//"` \
3420 != x$config_release; then
3421 # The configuration release is a substring of the kernel release.
3422 libc_cv_uname_release=$kernel_release
3423 elif test x$config_release != x; then
3424 libc_cv_uname_release=$config_release
3425 elif test x$kernel_release != x; then
3426 libc_cv_uname_release=$kernel_release
3428 libc_cv_uname_release=unknown
3432 echo "$ac_t""$libc_cv_uname_release" 1>&6
3433 uname_release="$libc_cv_uname_release"
3435 echo $ac_n "checking OS version for uname""... $ac_c" 1>&6
3436 echo "configure:3437: checking OS version for uname" >&5
3437 if eval "test \"`echo '$''{'libc_cv_uname_version'+set}'`\" = set"; then
3438 echo $ac_n "(cached) $ac_c" 1>&6
3440 kernel_version=`echo "$kernel_id" | sed 's/^[^#]*#\([0-9]*\).*$/\1/'`
3441 if test -n "$kernel_version"; then
3442 libc_cv_uname_version="$kernel_version"
3444 libc_cv_uname_version=unknown
3448 echo "$ac_t""$libc_cv_uname_version" 1>&6
3449 uname_version="$libc_cv_uname_version"
3451 config_uname=config-name.h:config-name.in
3453 # For non-generic uname, we don't need to create config-name.h at all.
3457 echo $ac_n "checking stdio selection""... $ac_c" 1>&6
3458 echo "configure:3459: checking stdio selection" >&5
3461 libio) cat >> confdefs.h <<\EOF
3462 #define USE_IN_LIBIO 1
3465 default) stdio=stdio ;;
3467 echo "$ac_t""$stdio" 1>&6
3469 # Test for old glibc 2.0.x headers so that they can be removed properly
3470 # Search only in includedir.
3471 echo $ac_n "checking for old glibc 2.0.x headers""... $ac_c" 1>&6
3472 echo "configure:3473: checking for old glibc 2.0.x headers" >&5
3473 if eval test -f "${includedir}/elfclass.h" -a -f "${includedir}/fcntlbits.h"
3475 old_glibc_headers=yes
3477 old_glibc_headers=no
3479 echo "$ac_t""$old_glibc_headers" 1>&6
3480 if test ${old_glibc_headers} = yes; then
3481 echo "configure: warning: *** During \"make install\" old headers from glibc 2.0.x will" 1>&2
3482 echo "configure: warning: *** be removed." 1>&2
3495 if test $gnu_ld = yes; then
3496 cat >> confdefs.h <<\EOF
3497 #define HAVE_GNU_LD 1
3501 if test $gnu_as = yes; then
3502 cat >> confdefs.h <<\EOF
3503 #define HAVE_GNU_AS 1
3507 if test $elf = yes; then
3508 cat >> confdefs.h <<\EOF
3516 if test $shared = default; then
3517 if test $gnu_ld = yes; then
3520 # For now we do not assume shared libs are available. In future more
3521 # tests might become available.
3526 echo $ac_n "checking whether -fPIC is default""... $ac_c" 1>&6
3527 echo "configure:3528: checking whether -fPIC is default" >&5
3528 if eval "test \"`echo '$''{'pic_default'+set}'`\" = set"; then
3529 echo $ac_n "(cached) $ac_c" 1>&6
3532 cat > conftest.c <<EOF
3533 #if defined __PIC__ || defined __pic__ || defined PIC || defined pic
3534 # error PIC is default.
3537 if eval "${CC-cc} -S conftest.c 2>&5 1>&5"; then
3543 echo "$ac_t""$pic_default" 1>&6
3555 *door*) linux_doors=yes ;;
3556 *) linux_doors=no ;;
3560 if test "`(cd $srcdir; pwd)`" = "`pwd`"; then
3563 config_makefile=Makefile
3566 VERSION=`sed -n -e 's/^#define VERSION "\([^"]*\)"/\1/p' < $srcdir/version.h`
3567 RELEASE=`sed -n -e 's/^#define RELEASE "\([^"]*\)"/\1/p' < $srcdir/version.h`
3572 cat > confcache <<\EOF
3573 # This file is a shell script that caches the results of configure
3574 # tests run on this system so they can be shared between configure
3575 # scripts and configure runs. It is not useful on other systems.
3576 # If it contains results you don't want to keep, you may remove or edit it.
3578 # By default, configure uses ./config.cache as the cache file,
3579 # creating it if it does not exist already. You can give configure
3580 # the --cache-file=FILE option to use a different cache file; that is
3581 # what configure does when it calls configure scripts in
3582 # subdirectories, so they share the cache.
3583 # Giving --cache-file=/dev/null disables caching, for debugging configure.
3584 # config.status only pays attention to the cache file if you give it the
3585 # --recheck option to rerun configure.
3588 # The following way of writing the cache mishandles newlines in values,
3589 # but we know of no workaround that is simple, portable, and efficient.
3590 # So, don't put newlines in cache variables' values.
3591 # Ultrix sh set writes to stderr and can't be redirected directly,
3592 # and sets the high bit in the cache file unless we assign to the vars.
3594 case `(ac_space=' '; set | grep ac_space) 2>&1` in
3596 # `set' does not quote correctly, so add quotes (double-quote substitution
3597 # turns \\\\ into \\, and sed turns \\ into \).
3599 -e "s/'/'\\\\''/g" \
3600 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
3603 # `set' quotes correctly as required by POSIX, so do not add quotes.
3604 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
3607 if cmp -s $cache_file confcache; then
3610 if test -w $cache_file; then
3611 echo "updating cache $cache_file"
3612 cat confcache > $cache_file
3614 echo "not updating unwritable cache $cache_file"
3619 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
3621 test "x$prefix" = xNONE && prefix=$ac_default_prefix
3622 # Let make expand exec_prefix.
3623 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3625 # Any assignment to VPATH causes Sun make to only execute
3626 # the first set of double-colon rules, so remove it if not needed.
3627 # If there is a colon in the path, we need to keep it.
3628 if test "x$srcdir" = x.; then
3629 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
3632 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
3634 DEFS=-DHAVE_CONFIG_H
3636 # Without the "./", some shells look in PATH for config.status.
3637 : ${CONFIG_STATUS=./config.status}
3639 echo creating $CONFIG_STATUS
3640 rm -f $CONFIG_STATUS
3641 cat > $CONFIG_STATUS <<EOF
3643 # Generated automatically by configure.
3644 # Run this file to recreate the current configuration.
3645 # This directory was configured as follows,
3646 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
3648 # $0 $ac_configure_args
3650 # Compiler output produced by configure, useful for debugging
3651 # configure, is in ./config.log if it exists.
3653 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
3656 case "\$ac_option" in
3657 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3658 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
3659 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
3660 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
3661 echo "$CONFIG_STATUS generated by autoconf version 2.13"
3663 -help | --help | --hel | --he | --h)
3664 echo "\$ac_cs_usage"; exit 0 ;;
3665 *) echo "\$ac_cs_usage"; exit 1 ;;
3669 ac_given_srcdir=$srcdir
3670 ac_given_INSTALL="$INSTALL"
3672 trap 'rm -fr `echo "config.make glibcbug ${config_makefile} ${config_uname} config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
3674 cat >> $CONFIG_STATUS <<EOF
3676 # Protect against being on the right side of a sed subst in config.status.
3677 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
3678 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
3682 s%@CFLAGS@%$CFLAGS%g
3683 s%@CPPFLAGS@%$CPPFLAGS%g
3684 s%@CXXFLAGS@%$CXXFLAGS%g
3685 s%@FFLAGS@%$FFLAGS%g
3687 s%@LDFLAGS@%$LDFLAGS%g
3689 s%@exec_prefix@%$exec_prefix%g
3690 s%@prefix@%$prefix%g
3691 s%@program_transform_name@%$program_transform_name%g
3692 s%@bindir@%$bindir%g
3693 s%@sbindir@%$sbindir%g
3694 s%@libexecdir@%$libexecdir%g
3695 s%@datadir@%$datadir%g
3696 s%@sysconfdir@%$sysconfdir%g
3697 s%@sharedstatedir@%$sharedstatedir%g
3698 s%@localstatedir@%$localstatedir%g
3699 s%@libdir@%$libdir%g
3700 s%@includedir@%$includedir%g
3701 s%@oldincludedir@%$oldincludedir%g
3702 s%@infodir@%$infodir%g
3703 s%@mandir@%$mandir%g
3704 s%@with_cvs@%$with_cvs%g
3705 s%@oldest_abi@%$oldest_abi%g
3706 s%@subdirs@%$subdirs%g
3707 s%@force_install@%$force_install%g
3708 s%@all_warnings@%$all_warnings%g
3710 s%@host_alias@%$host_alias%g
3711 s%@host_cpu@%$host_cpu%g
3712 s%@host_vendor@%$host_vendor%g
3713 s%@host_os@%$host_os%g
3714 s%@base_machine@%$base_machine%g
3715 s%@sysnames@%$sysnames%g
3716 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
3717 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
3718 s%@INSTALL_DATA@%$INSTALL_DATA%g
3722 s%@build_alias@%$build_alias%g
3723 s%@build_cpu@%$build_cpu%g
3724 s%@build_vendor@%$build_vendor%g
3725 s%@build_os@%$build_os%g
3728 s%@MSGFMT@%$MSGFMT%g
3729 s%@MAKEINFO@%$MAKEINFO%g
3731 s%@cross_linkable@%$cross_linkable%g
3732 s%@BUILD_CC@%$BUILD_CC%g
3733 s%@cross_compiling@%$cross_compiling%g
3736 s%@RANLIB@%$RANLIB%g
3738 s%@CCVERSION@%$CCVERSION%g
3739 s%@SYSINCLUDES@%$SYSINCLUDES%g
3741 s%@libc_cv_have_bash2@%$libc_cv_have_bash2%g
3743 s%@libc_cv_have_ksh@%$libc_cv_have_ksh%g
3746 s%@INSTALL_INFO@%$INSTALL_INFO%g
3747 s%@OLD_DEBIAN_INSTALL_INFO@%$OLD_DEBIAN_INSTALL_INFO%g
3749 s%@VERSIONING@%$VERSIONING%g
3750 s%@libc_cv_asm_protected_directive@%$libc_cv_asm_protected_directive%g
3751 s%@libc_cv_z_nodelete@%$libc_cv_z_nodelete%g
3752 s%@libc_cv_z_nodlopen@%$libc_cv_z_nodlopen%g
3753 s%@libc_cv_z_initfirst@%$libc_cv_z_initfirst%g
3754 s%@libc_cv_have_initfini@%$libc_cv_have_initfini%g
3755 s%@no_whole_archive@%$no_whole_archive%g
3756 s%@exceptions@%$exceptions%g
3758 s%@sizeof_long_double@%$sizeof_long_double%g
3759 s%@uname_sysname@%$uname_sysname%g
3760 s%@uname_release@%$uname_release%g
3761 s%@uname_version@%$uname_version%g
3763 s%@old_glibc_headers@%$old_glibc_headers%g
3764 s%@libc_cv_slibdir@%$libc_cv_slibdir%g
3765 s%@libc_cv_localedir@%$libc_cv_localedir%g
3766 s%@libc_cv_sysconfdir@%$libc_cv_sysconfdir%g
3767 s%@libc_cv_rootsbindir@%$libc_cv_rootsbindir%g
3768 s%@use_ldconfig@%$use_ldconfig%g
3769 s%@ldd_rewrite_script@%$ldd_rewrite_script%g
3770 s%@gnu_ld@%$gnu_ld%g
3771 s%@gnu_as@%$gnu_as%g
3773 s%@static@%$static%g
3774 s%@shared@%$shared%g
3775 s%@pic_default@%$pic_default%g
3776 s%@profile@%$profile%g
3777 s%@omitfp@%$omitfp%g
3778 s%@bounded@%$bounded%g
3779 s%@static_nss@%$static_nss%g
3780 s%@nopic_initfini@%$nopic_initfini%g
3781 s%@DEFINES@%$DEFINES%g
3782 s%@linux_doors@%$linux_doors%g
3783 s%@VERSION@%$VERSION%g
3784 s%@RELEASE@%$RELEASE%g
3789 cat >> $CONFIG_STATUS <<\EOF
3791 # Split the substitutions into bite-sized pieces for seds with
3792 # small command number limits, like on Digital OSF/1 and HP-UX.
3793 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
3794 ac_file=1 # Number of current file.
3795 ac_beg=1 # First line for current file.
3796 ac_end=$ac_max_sed_cmds # Line after last line for current file.
3799 while $ac_more_lines; do
3800 if test $ac_beg -gt 1; then
3801 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
3803 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
3805 if test ! -s conftest.s$ac_file; then
3807 rm -f conftest.s$ac_file
3809 if test -z "$ac_sed_cmds"; then
3810 ac_sed_cmds="sed -f conftest.s$ac_file"
3812 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
3814 ac_file=`expr $ac_file + 1`
3816 ac_end=`expr $ac_end + $ac_max_sed_cmds`
3819 if test -z "$ac_sed_cmds"; then
3824 cat >> $CONFIG_STATUS <<EOF
3826 CONFIG_FILES=\${CONFIG_FILES-"config.make glibcbug ${config_makefile} ${config_uname}"}
3828 cat >> $CONFIG_STATUS <<\EOF
3829 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
3830 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3832 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3833 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3834 *) ac_file_in="${ac_file}.in" ;;
3837 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
3839 # Remove last slash and all that follows it. Not all systems have dirname.
3840 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3841 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3842 # The file is in a subdirectory.
3843 test ! -d "$ac_dir" && mkdir "$ac_dir"
3844 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
3845 # A "../" for each directory in $ac_dir_suffix.
3846 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
3848 ac_dir_suffix= ac_dots=
3851 case "$ac_given_srcdir" in
3853 if test -z "$ac_dots"; then top_srcdir=.
3854 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
3855 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
3857 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
3858 top_srcdir="$ac_dots$ac_given_srcdir" ;;
3861 case "$ac_given_INSTALL" in
3862 [/$]*) INSTALL="$ac_given_INSTALL" ;;
3863 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
3866 echo creating "$ac_file"
3868 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
3870 *Makefile*) ac_comsub="1i\\
3871 # $configure_input" ;;
3875 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3877 s%@configure_input@%$configure_input%g
3878 s%@srcdir@%$srcdir%g
3879 s%@top_srcdir@%$top_srcdir%g
3880 s%@INSTALL@%$INSTALL%g
3881 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
3885 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
3886 # NAME is the cpp macro being defined and VALUE is the value it is being given.
3888 # ac_d sets the value in "#define NAME VALUE" lines.
3889 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
3890 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
3893 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
3894 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3895 ac_uB='\([ ]\)%\1#\2define\3'
3898 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
3899 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3900 ac_eB='$%\1#\2define\3'
3904 if test "${CONFIG_HEADERS+set}" != set; then
3906 cat >> $CONFIG_STATUS <<EOF
3907 CONFIG_HEADERS="config.h"
3909 cat >> $CONFIG_STATUS <<\EOF
3911 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
3912 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3914 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3915 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3916 *) ac_file_in="${ac_file}.in" ;;
3919 echo creating $ac_file
3921 rm -f conftest.frag conftest.in conftest.out
3922 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3923 cat $ac_file_inputs > conftest.in
3927 # Transform confdefs.h into a sed script conftest.vals that substitutes
3928 # the proper values into config.h.in to produce config.h. And first:
3929 # Protect against being on the right side of a sed subst in config.status.
3930 # Protect against being in an unquoted here document in config.status.
3932 cat > conftest.hdr <<\EOF
3935 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
3939 sed -n -f conftest.hdr confdefs.h > conftest.vals
3942 # This sed command replaces #undef with comments. This is necessary, for
3943 # example, in the case of _POSIX_SOURCE, which is predefined and required
3944 # on some systems where configure will not decide to define it.
3945 cat >> conftest.vals <<\EOF
3946 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
3949 # Break up conftest.vals because some shells have a limit on
3950 # the size of here documents, and old seds have small limits too.
3955 ac_lines=`grep -c . conftest.vals`
3956 # grep -c gives empty output for an empty file on some AIX systems.
3957 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
3958 # Write a limited-size here document to conftest.frag.
3959 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
3960 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
3962 sed -f conftest.frag conftest.in > conftest.out
3964 mv conftest.out conftest.in
3966 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
3968 mv conftest.tail conftest.vals
3972 cat >> $CONFIG_STATUS <<\EOF
3973 rm -f conftest.frag conftest.h
3974 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
3975 cat conftest.in >> conftest.h
3977 if cmp -s $ac_file conftest.h 2>/dev/null; then
3978 echo "$ac_file is unchanged"
3981 # Remove last slash and all that follows it. Not all systems have dirname.
3982 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3983 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3984 # The file is in a subdirectory.
3985 test ! -d "$ac_dir" && mkdir "$ac_dir"
3988 mv conftest.h $ac_file
3994 cat >> $CONFIG_STATUS <<EOF
3995 ac_sources="`echo $libc_link_sources`"
3996 ac_dests="`echo $libc_link_dests`"
3999 cat >> $CONFIG_STATUS <<\EOF
4000 srcdir=$ac_given_srcdir
4001 while test -n "$ac_sources"; do
4002 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
4003 set $ac_sources; ac_source=$1; shift; ac_sources=$*
4005 echo "linking $srcdir/$ac_source to $ac_dest"
4007 if test ! -r $srcdir/$ac_source; then
4008 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
4012 # Make relative symlinks.
4013 # Remove last slash and all that follows it. Not all systems have dirname.
4014 ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'`
4015 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
4016 # The dest file is in a subdirectory.
4017 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
4018 ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`"
4019 # A "../" for each directory in $ac_dest_dir_suffix.
4020 ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'`
4022 ac_dest_dir_suffix= ac_dots=
4026 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
4027 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
4030 # Make a symlink if possible; otherwise try a hard link.
4031 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
4032 ln $srcdir/$ac_source $ac_dest; then :
4034 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
4038 cat >> $CONFIG_STATUS <<EOF
4039 config_vars='$config_vars'
4041 cat >> $CONFIG_STATUS <<\EOF
4043 case $CONFIG_FILES in *config.make*)
4044 echo "$config_vars" >> config.make;;
4046 test -d bits || mkdir bits
4049 chmod +x $CONFIG_STATUS
4050 rm -fr confdefs* $ac_clean_files
4051 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
4053 if test "$no_recursion" != yes; then
4055 # Remove --cache-file and --srcdir arguments so they do not pile up.
4056 ac_sub_configure_args=
4058 for ac_arg in $ac_configure_args; do
4059 if test -n "$ac_prev"; then
4064 -cache-file | --cache-file | --cache-fil | --cache-fi \
4065 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
4066 ac_prev=cache_file ;;
4067 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
4068 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
4070 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
4072 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
4074 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
4078 for ac_config_dir in $add_ons; do
4080 # Do not complain, so a configure script can configure whichever
4081 # parts of a large source tree are present.
4082 if test ! -d $srcdir/$ac_config_dir; then
4086 echo configuring in $ac_config_dir
4091 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
4093 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
4101 # A "../" for each directory in /$ac_config_dir.
4102 ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
4105 .) # No --srcdir option. We are building in place.
4106 ac_sub_srcdir=$srcdir ;;
4107 /*) # Absolute path.
4108 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
4110 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
4113 # Check for guested configure; otherwise get Cygnus style configure.
4114 if test -f $ac_sub_srcdir/configure; then
4115 ac_sub_configure=$ac_sub_srcdir/configure
4116 elif test -f $ac_sub_srcdir/configure.in; then
4117 ac_sub_configure=$ac_configure
4119 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
4123 # The recursion is here.
4124 if test -n "$ac_sub_configure"; then
4126 # Make the cache file name correct relative to the subdirectory.
4127 case "$cache_file" in
4128 /*) ac_sub_cache_file=$cache_file ;;
4130 ac_sub_cache_file="$ac_dots$cache_file" ;;
4132 case "$ac_given_INSTALL" in
4133 [/$]*) INSTALL="$ac_given_INSTALL" ;;
4134 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
4137 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
4138 # The eval makes quoting arguments work.
4139 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
4142 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }