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 --with-xcoff if using the XCOFF object format"
42 --without-cvs if CVS should not be used"
44 --with-headers=PATH location of system headers to use
45 [e.g. /usr/src/linux/include]
46 [default=compiler default]"
48 --enable-libio build in GNU libio instead of GNU stdio"
50 --disable-sanity-checks really do not use threads (should not be used
51 except in special situations) [default=yes]"
53 --enable-shared build shared library [default=yes if GNU ld & ELF]"
55 --enable-profile build profiled library [default=yes]"
57 --enable-omitfp build undebuggable optimized library [default=no]"
59 --enable-bounded build with runtime bounds checking [default=no]"
61 --disable-versioning do not include versioning information in the
62 library objects [default=yes if supported]"
64 --enable-oldest-abi=ABI configure the oldest ABI supported [e.g. 2.2]
65 [default=glibc default]"
67 --enable-add-ons[=DIR1,DIR2]...
68 configure and build add-ons in DIR1,DIR2,...
69 search for add-ons if no parameter given"
71 --without-tls prevent support for TLS"
73 --enable-static-nss build static NSS modules [default=no]"
75 --disable-force-install don't force installation of files from this package,
76 even if they are older than the installed files"
78 --enable-kernel=VERSION compile for compatibility with kernel not older
81 --enable-all-warnings enable all useful warnings gcc can issue"
83 # Initialize some variables set by options.
84 # The variables have the same names as the options, with
85 # dashes changed to underlines.
87 cache_file=./config.cache
96 program_transform_name=s,x,x,
104 bindir='${exec_prefix}/bin'
105 sbindir='${exec_prefix}/sbin'
106 libexecdir='${exec_prefix}/libexec'
107 datadir='${prefix}/share'
108 sysconfdir='${prefix}/etc'
109 sharedstatedir='${prefix}/com'
110 localstatedir='${prefix}/var'
111 libdir='${exec_prefix}/lib'
112 includedir='${prefix}/include'
113 oldincludedir='/usr/include'
114 infodir='${prefix}/info'
115 mandir='${prefix}/man'
117 # Initialize some other variables.
120 SHELL=${CONFIG_SHELL-/bin/sh}
121 # Maximum number of lines to put in a shell here document.
128 # If the previous option needs an argument, assign it.
129 if test -n "$ac_prev"; then
130 eval "$ac_prev=\$ac_option"
136 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
140 # Accept the important Cygnus configure options, so we can diagnose typos.
144 -bindir | --bindir | --bindi | --bind | --bin | --bi)
146 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
147 bindir="$ac_optarg" ;;
149 -build | --build | --buil | --bui | --bu)
151 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
152 build="$ac_optarg" ;;
154 -cache-file | --cache-file | --cache-fil | --cache-fi \
155 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
156 ac_prev=cache_file ;;
157 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
158 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
159 cache_file="$ac_optarg" ;;
161 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
163 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
165 datadir="$ac_optarg" ;;
167 -disable-* | --disable-*)
168 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
169 # Reject names that are not valid shell variable names.
170 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
171 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
173 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
174 eval "enable_${ac_feature}=no" ;;
176 -enable-* | --enable-*)
177 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
178 # Reject names that are not valid shell variable names.
179 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
180 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
182 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
187 eval "enable_${ac_feature}='$ac_optarg'" ;;
189 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
190 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
191 | --exec | --exe | --ex)
192 ac_prev=exec_prefix ;;
193 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
194 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
195 | --exec=* | --exe=* | --ex=*)
196 exec_prefix="$ac_optarg" ;;
198 -gas | --gas | --ga | --g)
199 # Obsolete; use --with-gas.
202 -help | --help | --hel | --he)
203 # Omit some internal or obsolete options to make the list less imposing.
204 # This message is too long to be a string in the A/UX 3.1 sh.
206 Usage: configure [options] [host]
207 Options: [defaults in brackets after descriptions]
209 --cache-file=FILE cache test results in FILE
210 --help print this message
211 --no-create do not create output files
212 --quiet, --silent do not print \`checking...' messages
213 --version print the version of autoconf that created configure
214 Directory and file names:
215 --prefix=PREFIX install architecture-independent files in PREFIX
217 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
219 --bindir=DIR user executables in DIR [EPREFIX/bin]
220 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
221 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
222 --datadir=DIR read-only architecture-independent data in DIR
224 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
225 --sharedstatedir=DIR modifiable architecture-independent data in DIR
227 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
228 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
229 --includedir=DIR C header files in DIR [PREFIX/include]
230 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
231 --infodir=DIR info documentation in DIR [PREFIX/info]
232 --mandir=DIR man documentation in DIR [PREFIX/man]
233 --srcdir=DIR find the sources in DIR [configure dir or ..]
234 --program-prefix=PREFIX prepend PREFIX to installed program names
235 --program-suffix=SUFFIX append SUFFIX to installed program names
236 --program-transform-name=PROGRAM
237 run sed PROGRAM on installed program names
241 --build=BUILD configure for building on BUILD [BUILD=HOST]
242 --host=HOST configure for HOST [guessed]
243 --target=TARGET configure for TARGET [TARGET=HOST]
244 Features and packages:
245 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
246 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
247 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
248 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
249 --x-includes=DIR X include files are in DIR
250 --x-libraries=DIR X library files are in DIR
252 if test -n "$ac_help"; then
253 echo "--enable and --with options recognized:$ac_help"
257 -host | --host | --hos | --ho)
259 -host=* | --host=* | --hos=* | --ho=*)
262 -includedir | --includedir | --includedi | --included | --include \
263 | --includ | --inclu | --incl | --inc)
264 ac_prev=includedir ;;
265 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
266 | --includ=* | --inclu=* | --incl=* | --inc=*)
267 includedir="$ac_optarg" ;;
269 -infodir | --infodir | --infodi | --infod | --info | --inf)
271 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
272 infodir="$ac_optarg" ;;
274 -libdir | --libdir | --libdi | --libd)
276 -libdir=* | --libdir=* | --libdi=* | --libd=*)
277 libdir="$ac_optarg" ;;
279 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
280 | --libexe | --libex | --libe)
281 ac_prev=libexecdir ;;
282 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
283 | --libexe=* | --libex=* | --libe=*)
284 libexecdir="$ac_optarg" ;;
286 -localstatedir | --localstatedir | --localstatedi | --localstated \
287 | --localstate | --localstat | --localsta | --localst \
288 | --locals | --local | --loca | --loc | --lo)
289 ac_prev=localstatedir ;;
290 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
291 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
292 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
293 localstatedir="$ac_optarg" ;;
295 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
297 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
298 mandir="$ac_optarg" ;;
301 # Obsolete; use --without-fp.
304 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
308 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
309 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
312 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
313 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
314 | --oldin | --oldi | --old | --ol | --o)
315 ac_prev=oldincludedir ;;
316 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
317 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
318 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
319 oldincludedir="$ac_optarg" ;;
321 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
323 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
324 prefix="$ac_optarg" ;;
326 -program-prefix | --program-prefix | --program-prefi | --program-pref \
327 | --program-pre | --program-pr | --program-p)
328 ac_prev=program_prefix ;;
329 -program-prefix=* | --program-prefix=* | --program-prefi=* \
330 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
331 program_prefix="$ac_optarg" ;;
333 -program-suffix | --program-suffix | --program-suffi | --program-suff \
334 | --program-suf | --program-su | --program-s)
335 ac_prev=program_suffix ;;
336 -program-suffix=* | --program-suffix=* | --program-suffi=* \
337 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
338 program_suffix="$ac_optarg" ;;
340 -program-transform-name | --program-transform-name \
341 | --program-transform-nam | --program-transform-na \
342 | --program-transform-n | --program-transform- \
343 | --program-transform | --program-transfor \
344 | --program-transfo | --program-transf \
345 | --program-trans | --program-tran \
346 | --progr-tra | --program-tr | --program-t)
347 ac_prev=program_transform_name ;;
348 -program-transform-name=* | --program-transform-name=* \
349 | --program-transform-nam=* | --program-transform-na=* \
350 | --program-transform-n=* | --program-transform-=* \
351 | --program-transform=* | --program-transfor=* \
352 | --program-transfo=* | --program-transf=* \
353 | --program-trans=* | --program-tran=* \
354 | --progr-tra=* | --program-tr=* | --program-t=*)
355 program_transform_name="$ac_optarg" ;;
357 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
358 | -silent | --silent | --silen | --sile | --sil)
361 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
363 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
365 sbindir="$ac_optarg" ;;
367 -sharedstatedir | --sharedstatedir | --sharedstatedi \
368 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
369 | --sharedst | --shareds | --shared | --share | --shar \
371 ac_prev=sharedstatedir ;;
372 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
373 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
374 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
376 sharedstatedir="$ac_optarg" ;;
378 -site | --site | --sit)
380 -site=* | --site=* | --sit=*)
383 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
385 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
386 srcdir="$ac_optarg" ;;
388 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
389 | --syscon | --sysco | --sysc | --sys | --sy)
390 ac_prev=sysconfdir ;;
391 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
392 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
393 sysconfdir="$ac_optarg" ;;
395 -target | --target | --targe | --targ | --tar | --ta | --t)
397 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
398 target="$ac_optarg" ;;
400 -v | -verbose | --verbose | --verbos | --verbo | --verb)
403 -version | --version | --versio | --versi | --vers)
404 echo "configure generated by autoconf version 2.13"
408 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
409 # Reject names that are not valid shell variable names.
410 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
411 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
413 ac_package=`echo $ac_package| sed 's/-/_/g'`
418 eval "with_${ac_package}='$ac_optarg'" ;;
420 -without-* | --without-*)
421 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
422 # Reject names that are not valid shell variable names.
423 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
424 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
426 ac_package=`echo $ac_package| sed 's/-/_/g'`
427 eval "with_${ac_package}=no" ;;
430 # Obsolete; use --with-x.
433 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
434 | --x-incl | --x-inc | --x-in | --x-i)
435 ac_prev=x_includes ;;
436 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
437 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
438 x_includes="$ac_optarg" ;;
440 -x-libraries | --x-libraries | --x-librarie | --x-librari \
441 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
442 ac_prev=x_libraries ;;
443 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
444 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
445 x_libraries="$ac_optarg" ;;
447 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
451 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
452 echo "configure: warning: $ac_option: invalid host type" 1>&2
454 if test "x$nonopt" != xNONE; then
455 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
463 if test -n "$ac_prev"; then
464 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
467 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
469 # File descriptor usage:
472 # 2 errors and warnings
473 # 3 some systems may open it to /dev/tty
474 # 4 used on the Kubota Titan
475 # 6 checking for... messages and results
476 # 5 compiler messages saved in config.log
477 if test "$silent" = yes; then
485 This file contains any messages produced by compilers while
486 running configure, to aid debugging if configure makes a mistake.
489 # Strip out --no-create and --no-recursion so they do not pile up.
490 # Also quote any args containing shell metacharacters.
495 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
496 | --no-cr | --no-c) ;;
497 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
498 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
499 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
500 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
501 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
506 # Only set these to C if already set. These must not be set unconditionally
507 # because not all systems understand e.g. LANG=C (notably SCO).
508 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
509 # Non-C LC_CTYPE values break the ctype check.
510 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
511 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
512 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
513 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
515 # confdefs.h avoids OS command line length limits that DEFS can exceed.
516 rm -rf conftest* confdefs.h
517 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
520 # A filename unique to this package, relative to the directory that
521 # configure is in, which we can look for to find out if srcdir is correct.
522 ac_unique_file=include/features.h
524 # Find the source files, if location was not specified.
525 if test -z "$srcdir"; then
526 ac_srcdir_defaulted=yes
527 # Try the directory containing this script, then its parent.
529 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
530 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
532 if test ! -r $srcdir/$ac_unique_file; then
536 ac_srcdir_defaulted=no
538 if test ! -r $srcdir/$ac_unique_file; then
539 if test "$ac_srcdir_defaulted" = yes; then
540 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
542 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
545 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
547 # Prefer explicitly selected file to automatically selected ones.
548 if test -z "$CONFIG_SITE"; then
549 if test "x$prefix" != xNONE; then
550 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
552 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
555 for ac_site_file in $CONFIG_SITE; do
556 if test -r "$ac_site_file"; then
557 echo "loading site script $ac_site_file"
562 if test -r "$cache_file"; then
563 echo "loading cache $cache_file"
566 echo "creating cache $cache_file"
571 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
572 ac_cpp='$CPP $CPPFLAGS'
573 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
574 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
575 cross_compiling=$ac_cv_prog_cc_cross
579 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
580 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
581 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
588 ac_n= ac_c='\c' ac_t=
591 if test -r /vmunix; then
592 kernel_id=`strings /vmunix | grep UNIX`
593 elif test -r /dynix; then
594 kernel_id=`strings /dynix | grep DYNIX`
602 for ac_dir in scripts $srcdir/scripts; do
603 if test -f $ac_dir/install-sh; then
605 ac_install_sh="$ac_aux_dir/install-sh -c"
607 elif test -f $ac_dir/install.sh; then
609 ac_install_sh="$ac_aux_dir/install.sh -c"
613 if test -z "$ac_aux_dir"; then
614 { echo "configure: error: can not find install-sh or install.sh in scripts $srcdir/scripts" 1>&2; exit 1; }
616 ac_config_guess=$ac_aux_dir/config.guess
617 ac_config_sub=$ac_aux_dir/config.sub
618 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
621 # This will get text that should go into config.make.
624 # Check for a --with-gmp argument and set gmp-srcdir in config.make.
625 # Check whether --with-gmp or --without-gmp was given.
626 if test "${with_gmp+set}" = set; then
629 yes) { echo "configure: error: --with-gmp requires an argument; use --with-gmp=DIRECTORY" 1>&2; exit 1; } ;;
631 *) config_vars="$config_vars
632 gmp-srcdir = $withval" ;;
637 # Check for a --with-gd argument and set libgd-LDFLAGS in config.make.
638 # Check whether --with-gd or --without-gd was given.
639 if test "${with_gd+set}" = set; then
643 *) libgd_include="-I$withval/include"
644 libgd_ldflags="-L$withval/lib" ;;
649 # Check whether --with-gd-include or --without-gd-include was given.
650 if test "${with_gd_include+set}" = set; then
651 withval="$with_gd_include"
652 case "$with_gd_include" in
654 *) libgd_include="-I$withval" ;;
659 # Check whether --with-gd-lib or --without-gd-lib was given.
660 if test "${with_gd_lib+set}" = set; then
661 withval="$with_gd_lib"
662 case "$with_gd_lib" in
664 *) libgd_ldflags="-L$withval" ;;
670 if test -n "$libgd_include"; then
671 config_vars="$config_vars
672 CFLAGS-memusagestat.c = $libgd_include"
674 if test -n "$libgd_ldflags"; then
675 config_vars="$config_vars
676 libgd-LDFLAGS = $libgd_ldflags"
679 # Check whether --with-fp or --without-fp was given.
680 if test "${with_fp+set}" = set; then
688 # Check whether --with-binutils or --without-binutils was given.
689 if test "${with_binutils+set}" = set; then
690 withval="$with_binutils"
691 path_binutils=$withval
696 # Check whether --with-elf or --without-elf was given.
697 if test "${with_elf+set}" = set; then
704 # Check whether --with-xcoff or --without-xcoff was given.
705 if test "${with_xcoff+set}" = set; then
706 withval="$with_xcoff"
712 # Check whether --with-cvs or --without-cvs was given.
713 if test "${with_cvs+set}" = set; then
720 if test "$with_cvs" = yes; then
721 if test -d $srcdir/CVS && grep :pserver: $srcdir/CVS/Root > /dev/null
728 # Check whether --with-headers or --without-headers was given.
729 if test "${with_headers+set}" = set; then
730 withval="$with_headers"
737 # Check whether --enable-libio or --disable-libio was given.
738 if test "${enable_libio+set}" = set; then
739 enableval="$enable_libio"
740 if test $enableval = yes; then
750 # Check whether --enable-sanity-checks or --disable-sanity-checks was given.
751 if test "${enable_sanity_checks+set}" = set; then
752 enableval="$enable_sanity_checks"
753 enable_sanity=$enableval
760 # Check whether --enable-shared or --disable-shared was given.
761 if test "${enable_shared+set}" = set; then
762 enableval="$enable_shared"
768 # Check whether --enable-profile or --disable-profile was given.
769 if test "${enable_profile+set}" = set; then
770 enableval="$enable_profile"
776 # Check whether --enable-omitfp or --disable-omitfp was given.
777 if test "${enable_omitfp+set}" = set; then
778 enableval="$enable_omitfp"
784 # Check whether --enable-bounded or --disable-bounded was given.
785 if test "${enable_bounded+set}" = set; then
786 enableval="$enable_bounded"
792 # Check whether --enable-versioning or --disable-versioning was given.
793 if test "${enable_versioning+set}" = set; then
794 enableval="$enable_versioning"
795 enable_versioning=$enableval
797 enable_versioning=yes
801 # Check whether --enable-oldest-abi or --disable-oldest-abi was given.
802 if test "${enable_oldest_abi+set}" = set; then
803 enableval="$enable_oldest_abi"
804 oldest_abi=$enableval
809 if test "$oldest_abi" = yes || test "$oldest_abi" = no; then
812 cat >> confdefs.h <<EOF
813 #define GLIBC_OLDEST_ABI "$oldest_abi"
819 # Check whether --enable-add-ons or --disable-add-ons was given.
820 if test "${enable_add_ons+set}" = set; then
821 enableval="$enable_add_ons"
823 yes) add_ons=`cd $srcdir && echo */configure | sed -e 's!/configure!!g'`
824 test "$add_ons" = "*" && add_ons= ;;
825 *) add_ons=`echo "$enableval" | sed 's/,/ /g'`;;
832 # Check whether --with-tls or --without-tls was given.
833 if test "${with_tls+set}" = set; then
844 if test x"$add_ons" != x; then
845 for f in $add_ons; do
847 if test "$f" = "crypt"; then
848 { echo "configure: error:
849 *** It seems that you're using an old \`crypt' add-on. crypt is now
850 *** part of glibc and using the old add-on will not work with this
851 *** release. Start again with fresh sources and without the old
852 *** \`crypt' add-on." 1>&2; exit 1; }
854 if test "$f" = "localedata"; then
855 { echo "configure: error:
856 *** It seems that you're using an old \`localedata' add-on. localedata
857 *** is now part of glibc and using the old add-on will not work with
858 *** this release. Start again with fresh sources and without the old
859 *** \`localedata' add-on." 1>&2; exit 1; }
861 # Test whether such a subdir really exists.
862 if test -d $srcdir/$f; then
863 add_ons_pfx="$add_ons_pfx $f/"
865 { echo "configure: error: add-on directory \"$f\" does not exist" 1>&2; exit 1; }
870 # Check whether --enable-static-nss or --disable-static-nss was given.
871 if test "${enable_static_nss+set}" = set; then
872 enableval="$enable_static_nss"
873 static_nss=$enableval
878 if test x"$static_nss" = xyes; then
879 cat >> confdefs.h <<\EOF
880 #define DO_STATIC_NSS 1
885 # Check whether --enable-force-install or --disable-force-install was given.
886 if test "${enable_force_install+set}" = set; then
887 enableval="$enable_force_install"
888 force_install=$enableval
895 # Check whether --enable-kernel or --disable-kernel was given.
896 if test "${enable_kernel+set}" = set; then
897 enableval="$enable_kernel"
898 minimum_kernel=$enableval
901 if test "$minimum_kernel" = yes || test "$minimum_kernel" = no; then
902 # Better nothing than this.
905 if test "$minimum_kernel" = current; then
906 minimum_kernel=`uname -r 2>/dev/null` || minimum_kernel=
910 # Check whether --enable-all-warnings or --disable-all-warnings was given.
911 if test "${enable_all_warnings+set}" = set; then
912 enableval="$enable_all_warnings"
913 all_warnings=$enableval
919 # Make sure we can run config.sub.
920 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
921 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
924 echo $ac_n "checking host system type""... $ac_c" 1>&6
925 echo "configure:926: checking host system type" >&5
928 case "$host_alias" in
932 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
933 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
935 *) host_alias=$nonopt ;;
939 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
940 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
941 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
942 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
943 echo "$ac_t""$host" 1>&6
946 # The way shlib-versions is used to generate soversions.mk uses a
947 # fairly simplistic model for name recognition that can't distinguish
948 # i486-pc-linux-gnu fully from i486-pc-gnu. So we mutate a $host_os
949 # of `gnu*' here to be `gnu-gnu*' just so that shlib-versions can
950 # tell. This doesn't get used much beyond that, so it's fairly safe.
955 host_os=`echo $host_os | sed -e 's/gnu/gnu-gnu/'`
959 # We keep the original values in `$config_*' and never modify them, so we
960 # can write them unchanged into config.make. Everything else uses
961 # $machine, $vendor, and $os, and changes them whenever convenient.
962 config_machine=$host_cpu config_vendor=$host_vendor config_os=$host_os
964 # Don't allow vendor == "unknown"
965 test "$config_vendor" = unknown && config_vendor=
966 config_os="`echo $config_os | sed 's/^unknown-//'`"
968 # Some configurations imply other options.
970 gnu* | linux* | bsd4.4* | netbsd* | freebsd*)
971 # These systems always use GNU tools.
972 gnu_ld=yes gnu_as=yes ;;
975 # i586-linuxaout is mangled into i586-pc-linux-gnuaout
976 linux*ecoff* | linux*aout* | gnu*aout* | gnu*ecoff*)
978 gnu* | linux* | sysv4* | solaris2* | irix6*)
979 # These systems (almost) always use the ELF format.
983 # These systems are always xcoff
989 machine=$config_machine
990 vendor=$config_vendor
993 # config.guess on some IBM machines says `rs6000' instead of `powerpc'.
995 if test "$machine" = rs6000; then
1000 ### I put this here to prevent those annoying emails from people who cannot
1001 ### read and try to compile glibc on unsupported platforms. --drepper
1003 ### By using the undocumented --enable-hacker-mode option for configure
1004 ### one can skip this test to make the configuration not fail for unsupported
1007 if test -z "$enable_hacker_mode"; then
1008 case "$machine-$host_os" in
1009 *-linux* | *-gnu* | arm*-none* | powerpc-aix4.3.*)
1012 echo "*** The GNU C library is currently not available for this platform."
1013 echo "*** So far nobody cared to port it and if there is no volunteer it"
1014 echo "*** might never happen. So, if you have interest to see glibc on"
1015 echo "*** this platform visit"
1016 echo "*** http://www.gnu.org/software/libc/porting.html"
1017 echo "*** and join the group of porters"
1023 # Expand the configuration machine name into a subdirectory by architecture
1024 # type and particular chip.
1026 a29k | am29000) base_machine=a29k machine=a29k ;;
1027 alpha*) base_machine=alpha machine=alpha/$machine ;;
1028 arm*) base_machine=arm machine=arm/arm32/$machine ;;
1029 c3[012]) base_machine=cx0 machine=cx0/c30 ;;
1030 c4[04]) base_machine=cx0 machine=cx0/c40 ;;
1031 hppa*64*) base_machine=hppa machine=hppa/hppa64 ;;
1032 hppa*) base_machine=hppa machine=hppa/hppa1.1 ;;
1033 i[3456]86) base_machine=i386 machine=i386/$machine ;;
1034 ia64) base_machine=ia64 machine=ia64 ;;
1035 m680?0) base_machine=m68k machine=m68k/$machine ;;
1036 m68k) base_machine=m68k machine=m68k/m68020 ;;
1037 m88???) base_machine=m88k machine=m88k/$machine ;;
1038 m88k) base_machine=m88k machine=m88k/m88100 ;;
1039 mips64*) base_machine=mips64 machine=mips/mips64/$machine ;;
1040 mips*) base_machine=mips
1041 case "`uname -m`" in
1042 IP22) machine=mips/mips3 ;;
1043 *) machine=mips/$machine ;;
1045 s390) base_machine=s390 machine=s390/s390-32 ;;
1046 s390x) base_machine=s390 machine=s390/s390-64 ;;
1047 sh3*) base_machine=sh machine=sh/sh3 ;;
1048 sh4*) base_machine=sh machine=sh/sh4 ;;
1050 base_machine=sparc machine=sparc/sparc32 ;;
1051 sparcv8 | supersparc | hypersparc)
1052 base_machine=sparc machine=sparc/sparc32/sparcv8 ;;
1053 sparcv8plus | sparcv8plusa | sparcv9)
1054 base_machine=sparc machine=sparc/sparc32/sparcv9 ;;
1055 sparcv8plusb | sparcv9b)
1056 base_machine=sparc machine=sparc/sparc32/sparcv9b ;;
1057 sparc64 | ultrasparc)
1058 base_machine=sparc machine=sparc/sparc64 ;;
1059 sparc64b | ultrasparc3)
1060 base_machine=sparc machine=sparc/sparc64/sparcv9b ;;
1061 thumb*) base_machine=thumb machine=arm/thumb/$machine ;;
1062 *) base_machine=$machine ;;
1066 if test "$base_machine" = "i386"; then
1067 cat >> confdefs.h <<\EOF
1068 #define USE_REGPARMS 1
1073 # Compute the list of sysdep directories for this configuration.
1074 # This can take a while to compute.
1075 sysdep_dir=$srcdir/sysdeps
1076 echo $ac_n "checking sysdep dirs""... $ac_c" 1>&6
1077 echo "configure:1078: checking sysdep dirs" >&5
1078 # Make sco3.2v4 become sco3.2.4 and sunos4.1.1_U1 become sunos4.1.1.U1.
1079 os="`echo $os | sed 's/\([0-9A-Z]\)[v_]\([0-9A-Z]\)/\1.\2/g'`"
1083 base_os=mach/hurd ;;
1084 netbsd* | 386bsd* | freebsd* | bsdi*)
1085 base_os=unix/bsd/bsd4.4 ;;
1086 osf* | sunos* | ultrix* | newsos* | dynix* | *bsd*)
1088 sysv* | isc* | esix* | sco* | minix* | irix4* | linux*)
1089 base_os=unix/sysv ;;
1091 base_os=unix/sysv/irix6/$os ;;
1093 base_os=unix/sysv/sysv4 ;;
1095 base_os=unix/sysv/hpux/$os ;;
1097 base_os=unix/sysv/aix/aix4.3 ;;
1099 base_os=standalone ;;
1104 # For sunos4.1.1, try sunos4.1.1, then sunos4.1, then sunos4, then sunos.
1107 while o=`echo $tail | sed 's/\.[^.]*$//'`; test $o != $tail; do
1111 o=`echo $tail | sed 's/[0-9]*$//'`
1112 if test $o != $tail; then
1115 # For linux-gnu, try linux-gnu, then linux.
1116 o=`echo $tail | sed 's/-.*$//'`
1117 if test $o != $tail; then
1121 # For unix/sysv/sysv4, try unix/sysv/sysv4, then unix/sysv, then unix.
1124 while b=`echo $tail | sed 's@^\(.*\)/\([^/]*\)$@& \1@'`; test -n "$b"; do
1130 # For sparc/sparc32, try sparc/sparc32 and then sparc.
1133 while m=`echo $tail | sed 's@^\(.*\)/\([^/]*\)$@& \1@'`; test -n "$m"; do
1135 # Prepend the machine's FPU directory unless --without-fp.
1136 if test "$with_fp" = yes; then
1137 mach="$mach /$1/fpu"
1144 # Find what sysdep directories exist.
1146 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1147 for d in $add_ons_pfx ''; do
1148 for b in $base ''; do
1149 for m0 in $mach ''; do
1150 for v in /$vendor ''; do
1151 test "$v" = / && continue
1152 for o in /$ostry ''; do
1153 test "$o" = / && continue
1154 for m in $mach ''; do
1155 if test "$m0$b$v$o$m"; then
1156 try="${d}sysdeps$m0$b$v$o$m"
1157 test -n "$enable_debug_configure" &&
1158 echo "$0 DEBUG: try $try" >&2
1159 if test -d $srcdir/$try; then
1160 sysnames="$sysnames $try"
1161 { test -n "$o" || test -n "$b"; } && os_used=t
1162 { test -n "$m" || test -n "$m0"; } && machine_used=t
1173 if test -z "$os_used" && test "$os" != none; then
1174 { echo "configure: error: Operating system $os is not supported." 1>&2; exit 1; }
1176 if test -z "$machine_used" && test "$machine" != none; then
1177 { echo "configure: error: The $machine is not supported." 1>&2; exit 1; }
1180 # We have now validated the configuration.
1183 # If using ELF, look for an `elf' subdirectory of each machine directory.
1184 # We prepend these rather than inserting them whereever the machine appears
1185 # because things specified by the machine's ELF ABI should override
1186 # OS-specific things, and should always be the same for any OS on the
1187 # machine (otherwise what's the point of an ABI?).
1188 if test "$elf" = yes; then
1190 for d in $add_ons_pfx ''; do
1192 if test -d $srcdir/${d}sysdeps$m/elf; then
1193 elf_dirs="$elf_dirs ${d}sysdeps$m/elf"
1197 sysnames="`echo $elf_dirs | sed -e 's,//,/,g'` $sysnames"
1201 # Expand the list of system names into a full list of directories
1202 # from each element's parent name and Implies file (if present).
1205 while test $# -gt 0; do
1209 case " $names " in *" $name "*)
1210 # Already in the list.
1214 # Report each name as we discover it, so there is no long pause in output.
1215 echo $ac_n "$name $ac_c" >&6
1217 name_base=`echo $name | sed -e 's@\(.*sysdeps\)/.*@\1@'`
1221 *) xsrcdir=$srcdir/ ;;
1223 test -n "$enable_debug_configure" &&
1224 echo "DEBUG: name/Implies $xsrcdir$name/Implies" >&2
1226 if test -f $xsrcdir$name/Implies; then
1227 # Collect more names from the `Implies' file (removing comments).
1228 implied_candidate="`sed 's/#.*$//' < $xsrcdir$name/Implies`"
1230 for x in $implied_candidate; do
1232 if test -d $xsrcdir$name_base/$x; then
1233 implied="$implied $name_base/$x";
1236 for d in $add_ons_pfx ''; do
1237 try="${d}sysdeps/$x"
1240 *) try_srcdir=$srcdir/ ;;
1242 test -n "$enable_debug_configure" &&
1243 echo "DEBUG: $name implied $x try($d) {$try_srcdir}$try" >&2
1244 if test $try != $xsrcdir$name_base/$x && test -d $try_srcdir$try;
1246 implied="$implied $try"
1250 if test $found = no; then
1251 echo "configure: warning: $name/Implies specifies nonexistent $x" 1>&2
1258 # Add NAME to the list of names.
1259 names="$names $name"
1261 # Find the parent of NAME, using the empty string if it has none.
1262 parent="`echo $name | sed -n -e 's=/[^/]*$==' -e '/sysdeps$/q' -e p`"
1264 # Add the names implied by NAME, and NAME's parent (if it has one), to
1265 # the list of names to be processed (the argument list). We prepend the
1266 # implied names to the list and append the parent. We want implied
1267 # directories to come before further directories inferred from the
1268 # configuration components; this ensures that for sysv4, unix/common
1269 # (implied by unix/sysv/sysv4) comes before unix/sysv (in ostry (here $*)
1271 sysnames="`echo $implied $* $parent`"
1272 test -n "$sysnames" && set $sysnames
1275 # Add the default directories.
1276 default_sysnames=sysdeps/generic
1277 if test "$elf" = yes; then
1278 default_sysnames="sysdeps/generic/elf $default_sysnames"
1280 sysnames="$names $default_sysnames"
1282 # The other names were emitted during the scan.
1283 echo "$ac_t""$default_sysnames" 1>&6
1288 # Find a good install program. We prefer a C program (faster),
1289 # so one script is as good as another. But avoid the broken or
1290 # incompatible versions:
1291 # SysV /etc/install, /usr/sbin/install
1292 # SunOS /usr/etc/install
1293 # IRIX /sbin/install
1295 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1296 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1297 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1298 # ./install, which can be erroneously created by make from ./install.sh.
1299 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1300 echo "configure:1301: checking for a BSD compatible install" >&5
1301 if test -z "$INSTALL"; then
1302 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1303 echo $ac_n "(cached) $ac_c" 1>&6
1305 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1306 for ac_dir in $PATH; do
1307 # Account for people who put trailing slashes in PATH elements.
1309 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1311 # OSF1 and SCO ODT 3.0 have their own names for install.
1312 # Don't use installbsd from OSF since it installs stuff as root
1314 for ac_prog in ginstall scoinst install; do
1315 if test -f $ac_dir/$ac_prog; then
1316 if test $ac_prog = install &&
1317 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1318 # AIX install. It has an incompatible calling convention.
1321 ac_cv_path_install="$ac_dir/$ac_prog -c"
1332 if test "${ac_cv_path_install+set}" = set; then
1333 INSTALL="$ac_cv_path_install"
1335 # As a last resort, use the slow shell script. We don't cache a
1336 # path for INSTALL within a source directory, because that will
1337 # break other packages using the cache if that directory is
1338 # removed, or if the path is relative.
1339 INSTALL="$ac_install_sh"
1342 echo "$ac_t""$INSTALL" 1>&6
1344 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1345 # It thinks the first close brace ends the variable substitution.
1346 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1348 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1350 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1352 if test "$INSTALL" = "${srcdir}/scripts/install-sh -c"; then
1353 # The makefiles need to use a different form to find it in $srcdir.
1354 INSTALL='\$(..)./scripts/install-sh -c'
1356 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1357 echo "configure:1358: checking whether ln -s works" >&5
1358 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1359 echo $ac_n "(cached) $ac_c" 1>&6
1362 if ln -s X conftestdata 2>/dev/null
1365 ac_cv_prog_LN_S="ln -s"
1370 LN_S="$ac_cv_prog_LN_S"
1371 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1372 echo "$ac_t""yes" 1>&6
1374 echo "$ac_t""no" 1>&6
1378 # We need the physical current working directory. We cannot use the
1379 # "pwd -P" shell builtin since that's not portable. Instead we try to
1380 # find a pwd binary. Note that assigning to the PWD environment
1381 # variable might have some interesting side effects, so we don't do
1383 # Extract the first word of "pwd", so it can be a program name with args.
1384 set dummy pwd; ac_word=$2
1385 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1386 echo "configure:1387: checking for $ac_word" >&5
1387 if eval "test \"`echo '$''{'ac_cv_path_PWD_P'+set}'`\" = set"; then
1388 echo $ac_n "(cached) $ac_c" 1>&6
1392 ac_cv_path_PWD_P="$PWD_P" # Let the user override the test with a path.
1395 ac_cv_path_PWD_P="$PWD_P" # Let the user override the test with a dos path.
1398 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1400 for ac_dir in $ac_dummy; do
1401 test -z "$ac_dir" && ac_dir=.
1402 if test -f $ac_dir/$ac_word; then
1403 ac_cv_path_PWD_P="$ac_dir/$ac_word"
1408 test -z "$ac_cv_path_PWD_P" && ac_cv_path_PWD_P="no"
1412 PWD_P="$ac_cv_path_PWD_P"
1413 if test -n "$PWD_P"; then
1414 echo "$ac_t""$PWD_P" 1>&6
1416 echo "$ac_t""no" 1>&6
1419 if test "$PWD_P" = no; then
1420 { echo "configure: error: *** A pwd binary could not be found." 1>&2; exit 1; }
1423 # These programs are version sensitive.
1424 echo $ac_n "checking build system type""... $ac_c" 1>&6
1425 echo "configure:1426: checking build system type" >&5
1428 case "$build_alias" in
1431 NONE) build_alias=$host_alias ;;
1432 *) build_alias=$nonopt ;;
1436 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1437 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1438 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1439 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1440 echo "$ac_t""$build" 1>&6
1442 if test $host != $build; then
1443 ac_tool_prefix=${host_alias}-
1448 for ac_prog in ${ac_tool_prefix}gcc ${ac_tool_prefix}cc
1450 # Extract the first word of "$ac_prog", so it can be a program name with args.
1451 set dummy $ac_prog; ac_word=$2
1452 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1453 echo "configure:1454: checking for $ac_word" >&5
1454 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1455 echo $ac_n "(cached) $ac_c" 1>&6
1457 if test -n "$CC"; then
1458 ac_cv_prog_CC="$CC" # Let the user override the test.
1460 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1462 for ac_dir in $ac_dummy; do
1463 test -z "$ac_dir" && ac_dir=.
1464 if test -f $ac_dir/$ac_word; then
1465 ac_cv_prog_CC="$ac_prog"
1473 if test -n "$CC"; then
1474 echo "$ac_t""$CC" 1>&6
1476 echo "$ac_t""no" 1>&6
1479 test -n "$CC" && break
1482 if test -z "$CC"; then
1485 # Found it, now check the version.
1486 echo $ac_n "checking version of $CC""... $ac_c" 1>&6
1487 echo "configure:1488: checking version of $CC" >&5
1488 ac_prog_version=`$CC -v 2>&1 | sed -n 's/^.*version \([egcygnustpi-]*[0-9.]*\).*$/\1/p'`
1489 case $ac_prog_version in
1490 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
1491 *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-*)
1492 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
1493 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
1496 echo "$ac_t""$ac_prog_version" 1>&6
1498 if test $ac_verc_fail = yes; then
1502 for ac_prog in gnumake gmake make
1504 # Extract the first word of "$ac_prog", so it can be a program name with args.
1505 set dummy $ac_prog; ac_word=$2
1506 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1507 echo "configure:1508: checking for $ac_word" >&5
1508 if eval "test \"`echo '$''{'ac_cv_prog_MAKE'+set}'`\" = set"; then
1509 echo $ac_n "(cached) $ac_c" 1>&6
1511 if test -n "$MAKE"; then
1512 ac_cv_prog_MAKE="$MAKE" # Let the user override the test.
1514 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1516 for ac_dir in $ac_dummy; do
1517 test -z "$ac_dir" && ac_dir=.
1518 if test -f $ac_dir/$ac_word; then
1519 ac_cv_prog_MAKE="$ac_prog"
1526 MAKE="$ac_cv_prog_MAKE"
1527 if test -n "$MAKE"; then
1528 echo "$ac_t""$MAKE" 1>&6
1530 echo "$ac_t""no" 1>&6
1533 test -n "$MAKE" && break
1536 if test -z "$MAKE"; then
1539 # Found it, now check the version.
1540 echo $ac_n "checking version of $MAKE""... $ac_c" 1>&6
1541 echo "configure:1542: checking version of $MAKE" >&5
1542 ac_prog_version=`$MAKE --version 2>&1 | sed -n 's/^.*GNU Make[^0-9]*\([0-9][0-9.]*\).*$/\1/p'`
1543 case $ac_prog_version in
1544 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
1546 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
1547 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
1550 echo "$ac_t""$ac_prog_version" 1>&6
1552 if test $ac_verc_fail = yes; then
1553 critic_missing="$critic_missing make"
1558 if test -n "$critic_missing"; then
1559 { echo "configure: error:
1560 *** These critical programs are missing or too old:$critic_missing
1561 *** Check the INSTALL file for required versions." 1>&2; exit 1; }
1565 for ac_prog in gnumsgfmt gmsgfmt msgfmt
1567 # Extract the first word of "$ac_prog", so it can be a program name with args.
1568 set dummy $ac_prog; ac_word=$2
1569 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1570 echo "configure:1571: checking for $ac_word" >&5
1571 if eval "test \"`echo '$''{'ac_cv_prog_MSGFMT'+set}'`\" = set"; then
1572 echo $ac_n "(cached) $ac_c" 1>&6
1574 if test -n "$MSGFMT"; then
1575 ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
1577 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1579 for ac_dir in $ac_dummy; do
1580 test -z "$ac_dir" && ac_dir=.
1581 if test -f $ac_dir/$ac_word; then
1582 ac_cv_prog_MSGFMT="$ac_prog"
1589 MSGFMT="$ac_cv_prog_MSGFMT"
1590 if test -n "$MSGFMT"; then
1591 echo "$ac_t""$MSGFMT" 1>&6
1593 echo "$ac_t""no" 1>&6
1596 test -n "$MSGFMT" && break
1599 if test -z "$MSGFMT"; then
1602 # Found it, now check the version.
1603 echo $ac_n "checking version of $MSGFMT""... $ac_c" 1>&6
1604 echo "configure:1605: checking version of $MSGFMT" >&5
1605 ac_prog_version=`$MSGFMT --version 2>&1 | sed -n 's/^.*GNU gettext.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
1606 case $ac_prog_version in
1607 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
1608 0.10.3[6-9]* | 0.10.[4-9][0-9]* | 0.1[1-9]* | 0.[2-9][0-9]* | [1-9].*)
1609 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
1610 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
1613 echo "$ac_t""$ac_prog_version" 1>&6
1615 if test $ac_verc_fail = yes; then
1616 MSGFMT=: aux_missing="$aux_missing msgfmt"
1619 for ac_prog in makeinfo
1621 # Extract the first word of "$ac_prog", so it can be a program name with args.
1622 set dummy $ac_prog; ac_word=$2
1623 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1624 echo "configure:1625: checking for $ac_word" >&5
1625 if eval "test \"`echo '$''{'ac_cv_prog_MAKEINFO'+set}'`\" = set"; then
1626 echo $ac_n "(cached) $ac_c" 1>&6
1628 if test -n "$MAKEINFO"; then
1629 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
1631 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1633 for ac_dir in $ac_dummy; do
1634 test -z "$ac_dir" && ac_dir=.
1635 if test -f $ac_dir/$ac_word; then
1636 ac_cv_prog_MAKEINFO="$ac_prog"
1643 MAKEINFO="$ac_cv_prog_MAKEINFO"
1644 if test -n "$MAKEINFO"; then
1645 echo "$ac_t""$MAKEINFO" 1>&6
1647 echo "$ac_t""no" 1>&6
1650 test -n "$MAKEINFO" && break
1653 if test -z "$MAKEINFO"; then
1656 # Found it, now check the version.
1657 echo $ac_n "checking version of $MAKEINFO""... $ac_c" 1>&6
1658 echo "configure:1659: checking version of $MAKEINFO" >&5
1659 ac_prog_version=`$MAKEINFO --version 2>&1 | sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
1660 case $ac_prog_version in
1661 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
1663 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
1664 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
1667 echo "$ac_t""$ac_prog_version" 1>&6
1669 if test $ac_verc_fail = yes; then
1670 MAKEINFO=: aux_missing="$aux_missing makeinfo"
1675 # Extract the first word of "$ac_prog", so it can be a program name with args.
1676 set dummy $ac_prog; ac_word=$2
1677 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1678 echo "configure:1679: checking for $ac_word" >&5
1679 if eval "test \"`echo '$''{'ac_cv_prog_SED'+set}'`\" = set"; then
1680 echo $ac_n "(cached) $ac_c" 1>&6
1682 if test -n "$SED"; then
1683 ac_cv_prog_SED="$SED" # Let the user override the test.
1685 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1687 for ac_dir in $ac_dummy; do
1688 test -z "$ac_dir" && ac_dir=.
1689 if test -f $ac_dir/$ac_word; then
1690 ac_cv_prog_SED="$ac_prog"
1697 SED="$ac_cv_prog_SED"
1698 if test -n "$SED"; then
1699 echo "$ac_t""$SED" 1>&6
1701 echo "$ac_t""no" 1>&6
1704 test -n "$SED" && break
1707 if test -z "$SED"; then
1710 # Found it, now check the version.
1711 echo $ac_n "checking version of $SED""... $ac_c" 1>&6
1712 echo "configure:1713: checking version of $SED" >&5
1713 ac_prog_version=`$SED --version 2>&1 | sed -n 's/^.*GNU sed version \([0-9]*\.[0-9.]*\).*$/\1/p'`
1714 case $ac_prog_version in
1715 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
1716 3.0[2-9]*|3.[1-9]*|[4-9]*)
1717 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
1718 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
1721 echo "$ac_t""$ac_prog_version" 1>&6
1723 if test $ac_verc_fail = yes; then
1724 SED=: aux_missing="$aux_missing sed"
1729 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1730 echo "configure:1731: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1731 if eval "test \"`echo '$''{'ac_cv_prog_cc_works'+set}'`\" = set"; then
1732 echo $ac_n "(cached) $ac_c" 1>&6
1736 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1737 ac_cpp='$CPP $CPPFLAGS'
1738 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1739 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1740 cross_compiling=$ac_cv_prog_cc_cross
1742 cat > conftest.$ac_ext << EOF
1744 #line 1745 "configure"
1745 #include "confdefs.h"
1749 if { (eval echo configure:1750: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1750 ac_cv_prog_cc_works=yes
1751 # If we can't run a trivial program, we are probably using a cross compiler.
1752 if (./conftest; exit) 2>/dev/null; then
1753 ac_cv_prog_cc_cross=no
1755 ac_cv_prog_cc_cross=yes
1758 echo "configure: failed program was:" >&5
1759 cat conftest.$ac_ext >&5
1760 ac_cv_prog_cc_works=no
1764 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1765 ac_cpp='$CPP $CPPFLAGS'
1766 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1767 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1768 cross_compiling=$ac_cv_prog_cc_cross
1772 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1773 if test $ac_cv_prog_cc_works = no; then
1775 ac_cv_prog_cc_cross=yes
1779 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1780 echo "configure:1781: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1781 if eval "test \"`echo '$''{'ac_cv_prog_cc_cross'+set}'`\" = set"; then
1782 echo $ac_n "(cached) $ac_c" 1>&6
1787 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1789 cross_compiling=$ac_cv_prog_cc_cross
1791 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1792 echo "configure:1793: checking whether we are using GNU C" >&5
1793 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1794 echo $ac_n "(cached) $ac_c" 1>&6
1796 cat > conftest.c <<EOF
1801 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1802: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1808 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1809 if test $ac_cv_prog_gcc != yes; then
1810 { echo "configure: error: GNU libc must be compiled using GNU CC" 1>&2; exit 1; }
1813 echo $ac_n "checking build system type""... $ac_c" 1>&6
1814 echo "configure:1815: checking build system type" >&5
1817 case "$build_alias" in
1820 NONE) build_alias=$host_alias ;;
1821 *) build_alias=$nonopt ;;
1825 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1826 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1827 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1828 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1829 echo "$ac_t""$build" 1>&6
1831 if test $host != $build; then
1832 for ac_prog in gcc cc
1834 # Extract the first word of "$ac_prog", so it can be a program name with args.
1835 set dummy $ac_prog; ac_word=$2
1836 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1837 echo "configure:1838: checking for $ac_word" >&5
1838 if eval "test \"`echo '$''{'ac_cv_prog_BUILD_CC'+set}'`\" = set"; then
1839 echo $ac_n "(cached) $ac_c" 1>&6
1841 if test -n "$BUILD_CC"; then
1842 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
1844 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1846 for ac_dir in $ac_dummy; do
1847 test -z "$ac_dir" && ac_dir=.
1848 if test -f $ac_dir/$ac_word; then
1849 ac_cv_prog_BUILD_CC="$ac_prog"
1856 BUILD_CC="$ac_cv_prog_BUILD_CC"
1857 if test -n "$BUILD_CC"; then
1858 echo "$ac_t""$BUILD_CC" 1>&6
1860 echo "$ac_t""no" 1>&6
1863 test -n "$BUILD_CC" && break
1868 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1869 echo "configure:1870: checking how to run the C preprocessor" >&5
1870 # On Suns, sometimes $CPP names a directory.
1871 if test -n "$CPP" && test -d "$CPP"; then
1874 if test -z "$CPP"; then
1875 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1876 echo $ac_n "(cached) $ac_c" 1>&6
1878 # This must be in double quotes, not single quotes, because CPP may get
1879 # substituted into the Makefile and "${CC-cc}" will confuse make.
1881 # On the NeXT, cc -E runs the code through the compiler's parser,
1882 # not just through cpp.
1883 cat > conftest.$ac_ext <<EOF
1884 #line 1885 "configure"
1885 #include "confdefs.h"
1889 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1890 { (eval echo configure:1891: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1891 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1892 if test -z "$ac_err"; then
1896 echo "configure: failed program was:" >&5
1897 cat conftest.$ac_ext >&5
1899 CPP="${CC-cc} -E -traditional-cpp"
1900 cat > conftest.$ac_ext <<EOF
1901 #line 1902 "configure"
1902 #include "confdefs.h"
1906 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1907 { (eval echo configure:1908: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1908 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1909 if test -z "$ac_err"; then
1913 echo "configure: failed program was:" >&5
1914 cat conftest.$ac_ext >&5
1916 CPP="${CC-cc} -nologo -E"
1917 cat > conftest.$ac_ext <<EOF
1918 #line 1919 "configure"
1919 #include "confdefs.h"
1923 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1924 { (eval echo configure:1925: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1925 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1926 if test -z "$ac_err"; then
1930 echo "configure: failed program was:" >&5
1931 cat conftest.$ac_ext >&5
1940 ac_cv_prog_CPP="$CPP"
1942 CPP="$ac_cv_prog_CPP"
1944 ac_cv_prog_CPP="$CPP"
1946 echo "$ac_t""$CPP" 1>&6
1948 # Was a --with-binutils option given?
1949 if test -n "$path_binutils"; then
1950 # Make absolute; ensure a single trailing slash.
1951 path_binutils=`(cd $path_binutils; pwd) | sed 's%/*$%/%'`
1952 CC="$CC -B$path_binutils"
1954 AS=`$CC -print-prog-name=as`
1955 LD=`$CC -print-prog-name=ld`
1956 AR=`$CC -print-prog-name=ar`
1959 # ranlib has to be treated a bit differently since it might not exist at all.
1960 RANLIB=`$CC -print-prog-name=ranlib`
1961 if test $RANLIB = ranlib; then
1962 # This extra check has to happen since gcc simply echos the parameter in
1963 # case it cannot find the value in its own directories.
1964 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1965 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1966 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1967 echo "configure:1968: checking for $ac_word" >&5
1968 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1969 echo $ac_n "(cached) $ac_c" 1>&6
1971 if test -n "$RANLIB"; then
1972 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1974 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1976 for ac_dir in $ac_dummy; do
1977 test -z "$ac_dir" && ac_dir=.
1978 if test -f $ac_dir/$ac_word; then
1979 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1986 RANLIB="$ac_cv_prog_RANLIB"
1987 if test -n "$RANLIB"; then
1988 echo "$ac_t""$RANLIB" 1>&6
1990 echo "$ac_t""no" 1>&6
1994 if test -z "$ac_cv_prog_RANLIB"; then
1995 if test -n "$ac_tool_prefix"; then
1996 # Extract the first word of "ranlib", so it can be a program name with args.
1997 set dummy ranlib; ac_word=$2
1998 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1999 echo "configure:2000: checking for $ac_word" >&5
2000 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2001 echo $ac_n "(cached) $ac_c" 1>&6
2003 if test -n "$RANLIB"; then
2004 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2006 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2008 for ac_dir in $ac_dummy; do
2009 test -z "$ac_dir" && ac_dir=.
2010 if test -f $ac_dir/$ac_word; then
2011 ac_cv_prog_RANLIB="ranlib"
2016 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2019 RANLIB="$ac_cv_prog_RANLIB"
2020 if test -n "$RANLIB"; then
2021 echo "$ac_t""$RANLIB" 1>&6
2023 echo "$ac_t""no" 1>&6
2034 # Determine whether we are using GNU binutils.
2035 echo $ac_n "checking whether $AS is GNU as""... $ac_c" 1>&6
2036 echo "configure:2037: checking whether $AS is GNU as" >&5
2037 if eval "test \"`echo '$''{'libc_cv_prog_as_gnu'+set}'`\" = set"; then
2038 echo $ac_n "(cached) $ac_c" 1>&6
2040 # Most GNU programs take a -v and spit out some text including
2041 # the word 'GNU'. Some try to read stdin, so give them /dev/null.
2042 if $AS -o conftest -v </dev/null 2>&1 | grep GNU > /dev/null 2>&1; then
2043 libc_cv_prog_as_gnu=yes
2045 libc_cv_prog_as_gnu=no
2050 echo "$ac_t""$libc_cv_prog_as_gnu" 1>&6
2052 gnu_as=$libc_cv_prog_as_gnu
2054 echo $ac_n "checking whether $LD is GNU ld""... $ac_c" 1>&6
2055 echo "configure:2056: checking whether $LD is GNU ld" >&5
2056 if eval "test \"`echo '$''{'libc_cv_prog_ld_gnu'+set}'`\" = set"; then
2057 echo $ac_n "(cached) $ac_c" 1>&6
2059 # Most GNU programs take a -v and spit out some text including
2060 # the word 'GNU'. Some try to read stdin, so give them /dev/null.
2061 if $LD -o conftest -v </dev/null 2>&1 | grep GNU > /dev/null 2>&1; then
2062 libc_cv_prog_ld_gnu=yes
2064 libc_cv_prog_ld_gnu=no
2069 echo "$ac_t""$libc_cv_prog_ld_gnu" 1>&6
2070 gnu_ld=$libc_cv_prog_ld_gnu
2072 # Extract the first word of "${ac_tool_prefix}mig", so it can be a program name with args.
2073 set dummy ${ac_tool_prefix}mig; ac_word=$2
2074 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2075 echo "configure:2076: checking for $ac_word" >&5
2076 if eval "test \"`echo '$''{'ac_cv_prog_MIG'+set}'`\" = set"; then
2077 echo $ac_n "(cached) $ac_c" 1>&6
2079 if test -n "$MIG"; then
2080 ac_cv_prog_MIG="$MIG" # Let the user override the test.
2082 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2084 for ac_dir in $ac_dummy; do
2085 test -z "$ac_dir" && ac_dir=.
2086 if test -f $ac_dir/$ac_word; then
2087 ac_cv_prog_MIG="${ac_tool_prefix}mig"
2092 test -z "$ac_cv_prog_MIG" && ac_cv_prog_MIG="mig"
2095 MIG="$ac_cv_prog_MIG"
2096 if test -n "$MIG"; then
2097 echo "$ac_t""$MIG" 1>&6
2099 echo "$ac_t""no" 1>&6
2105 # Accept binutils 2.10.1 or newer (and also any ia64 2.9 version)
2106 # XXX Commented out because it filters out too many good versions.
2108 # AC_CHECK_PROG_VER(AS, $AS, --version,
2109 # [GNU assembler.* \([0-9]*\.[0-9.]*\(-ia64-[0-9]*\)*\)],
2110 # [2.10.[1-9]* | 2.1[1-9]* | 2.9-ia64-*], AS=: critic_missing=t)
2112 test -n "$aux_missing" && echo "configure: warning:
2113 *** These auxiliary programs are missing or too old:$aux_missing
2114 *** some features will be disabled.
2115 *** Check the INSTALL file for required versions." 1>&2
2117 # glibcbug.in wants to know the compiler version.
2118 CCVERSION=`$CC -v 2>&1 | sed -n 's/gcc version //p'`
2121 # if using special system headers, find out the compiler's sekrit
2122 # header directory and add that to the list. NOTE: Only does the right
2123 # thing on a system that doesn't need fixincludes. (Not presently a problem.)
2124 if test -n "$sysheaders"; then
2125 ccheaders=`$CC -print-file-name=include`
2126 SYSINCLUDES="-nostdinc -isystem $ccheaders -isystem $sysheaders"
2130 # check if ranlib is necessary
2131 echo $ac_n "checking whether ranlib is necessary""... $ac_c" 1>&6
2132 echo "configure:2133: checking whether ranlib is necessary" >&5
2133 if eval "test \"`echo '$''{'libc_cv_ranlib_necessary'+set}'`\" = set"; then
2134 echo $ac_n "(cached) $ac_c" 1>&6
2136 cat > conftest.c <<EOF
2141 $CC $CFLAGS -c conftest.c
2142 $AR cr conftest.a conftest.c
2143 cp conftest.a conftest2.a
2145 if cmp -s conftest.a conftest2.a; then
2146 libc_cv_ranlib_necessary=no
2148 libc_cv_ranlib_necessary=yes
2153 echo "$ac_t""$libc_cv_ranlib_necessary" 1>&6
2154 if test "$libc_cv_ranlib_necessary" = no; then
2158 # Test if LD_LIBRARY_PATH contains the notation for the current directory
2159 # since this would lead to problems installing/building glibc.
2160 # LD_LIBRARY_PATH contains the current directory if one of the following
2162 # - one of the terminals (":" and ";") is the first or last sign
2163 # - two terminals occur directly after each other
2164 # - the path contains an element with a dot in it
2165 echo $ac_n "checking LD_LIBRARY_PATH variable""... $ac_c" 1>&6
2166 echo "configure:2167: checking LD_LIBRARY_PATH variable" >&5
2167 case ${LD_LIBRARY_PATH} in
2168 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
2169 ld_library_path_setting="contains current directory"
2172 ld_library_path_setting="ok"
2175 echo "$ac_t""$ld_library_path_setting" 1>&6
2176 if test "$ld_library_path_setting" != "ok"; then
2177 { echo "configure: error:
2178 *** LD_LIBRARY_PATH shouldn't contain the current directory when
2179 *** building glibc. Please change the environment variable
2180 *** and run configure again." 1>&2; exit 1; }
2183 echo $ac_n "checking whether GCC supports -static-libgcc""... $ac_c" 1>&6
2184 echo "configure:2185: checking whether GCC supports -static-libgcc" >&5
2185 if eval "test \"`echo '$''{'libc_cv_gcc_static_libgcc'+set}'`\" = set"; then
2186 echo $ac_n "(cached) $ac_c" 1>&6
2188 if $CC -v -static-libgcc 2>&1 | grep -q 'unrecognized option.*static-libgcc'; then
2189 libc_cv_gcc_static_libgcc=
2191 libc_cv_gcc_static_libgcc=-static-libgcc
2195 echo "$ac_t""$libc_cv_gcc_static_libgcc" 1>&6
2198 # Extract the first word of "bash", so it can be a program name with args.
2199 set dummy bash; ac_word=$2
2200 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2201 echo "configure:2202: checking for $ac_word" >&5
2202 if eval "test \"`echo '$''{'ac_cv_path_BASH'+set}'`\" = set"; then
2203 echo $ac_n "(cached) $ac_c" 1>&6
2207 ac_cv_path_BASH="$BASH" # Let the user override the test with a path.
2210 ac_cv_path_BASH="$BASH" # Let the user override the test with a dos path.
2213 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2215 for ac_dir in $ac_dummy; do
2216 test -z "$ac_dir" && ac_dir=.
2217 if test -f $ac_dir/$ac_word; then
2218 ac_cv_path_BASH="$ac_dir/$ac_word"
2223 test -z "$ac_cv_path_BASH" && ac_cv_path_BASH="no"
2227 BASH="$ac_cv_path_BASH"
2228 if test -n "$BASH"; then
2229 echo "$ac_t""$BASH" 1>&6
2231 echo "$ac_t""no" 1>&6
2234 if test "$BASH" != no &&
2235 $BASH -c 'test "$BASH_VERSINFO" \
2236 && test "$BASH_VERSINFO" -ge 2 >&/dev/null'; then
2237 libc_cv_have_bash2=yes
2239 libc_cv_have_bash2=no
2243 if test "$BASH" = no; then
2244 # Extract the first word of "ksh", so it can be a program name with args.
2245 set dummy ksh; ac_word=$2
2246 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2247 echo "configure:2248: checking for $ac_word" >&5
2248 if eval "test \"`echo '$''{'ac_cv_path_KSH'+set}'`\" = set"; then
2249 echo $ac_n "(cached) $ac_c" 1>&6
2253 ac_cv_path_KSH="$KSH" # Let the user override the test with a path.
2256 ac_cv_path_KSH="$KSH" # Let the user override the test with a dos path.
2259 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2261 for ac_dir in $ac_dummy; do
2262 test -z "$ac_dir" && ac_dir=.
2263 if test -f $ac_dir/$ac_word; then
2264 ac_cv_path_KSH="$ac_dir/$ac_word"
2269 test -z "$ac_cv_path_KSH" && ac_cv_path_KSH="no"
2273 KSH="$ac_cv_path_KSH"
2274 if test -n "$KSH"; then
2275 echo "$ac_t""$KSH" 1>&6
2277 echo "$ac_t""no" 1>&6
2280 if test "$KSH" = no; then
2283 libc_cv_have_ksh=yes
2288 libc_cv_have_ksh=yes
2292 for ac_prog in gawk mawk nawk awk
2294 # Extract the first word of "$ac_prog", so it can be a program name with args.
2295 set dummy $ac_prog; ac_word=$2
2296 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2297 echo "configure:2298: checking for $ac_word" >&5
2298 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
2299 echo $ac_n "(cached) $ac_c" 1>&6
2301 if test -n "$AWK"; then
2302 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2304 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2306 for ac_dir in $ac_dummy; do
2307 test -z "$ac_dir" && ac_dir=.
2308 if test -f $ac_dir/$ac_word; then
2309 ac_cv_prog_AWK="$ac_prog"
2316 AWK="$ac_cv_prog_AWK"
2317 if test -n "$AWK"; then
2318 echo "$ac_t""$AWK" 1>&6
2320 echo "$ac_t""no" 1>&6
2323 test -n "$AWK" && break
2326 # Extract the first word of "perl", so it can be a program name with args.
2327 set dummy perl; ac_word=$2
2328 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2329 echo "configure:2330: checking for $ac_word" >&5
2330 if eval "test \"`echo '$''{'ac_cv_path_PERL'+set}'`\" = set"; then
2331 echo $ac_n "(cached) $ac_c" 1>&6
2335 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
2338 ac_cv_path_PERL="$PERL" # Let the user override the test with a dos path.
2341 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2343 for ac_dir in $ac_dummy; do
2344 test -z "$ac_dir" && ac_dir=.
2345 if test -f $ac_dir/$ac_word; then
2346 ac_cv_path_PERL="$ac_dir/$ac_word"
2351 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="no"
2355 PERL="$ac_cv_path_PERL"
2356 if test -n "$PERL"; then
2357 echo "$ac_t""$PERL" 1>&6
2359 echo "$ac_t""no" 1>&6
2362 if test "$PERL" != no &&
2363 (eval `$PERL -V:apiversion`; test `expr "$apiversion" \< 5` -ne 0); then
2366 # Extract the first word of "install-info", so it can be a program name with args.
2367 set dummy install-info; ac_word=$2
2368 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2369 echo "configure:2370: checking for $ac_word" >&5
2370 if eval "test \"`echo '$''{'ac_cv_path_INSTALL_INFO'+set}'`\" = set"; then
2371 echo $ac_n "(cached) $ac_c" 1>&6
2373 case "$INSTALL_INFO" in
2375 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
2378 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a dos path.
2381 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2382 ac_dummy="$PATH:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin"
2383 for ac_dir in $ac_dummy; do
2384 test -z "$ac_dir" && ac_dir=.
2385 if test -f $ac_dir/$ac_word; then
2386 ac_cv_path_INSTALL_INFO="$ac_dir/$ac_word"
2391 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO="no"
2395 INSTALL_INFO="$ac_cv_path_INSTALL_INFO"
2396 if test -n "$INSTALL_INFO"; then
2397 echo "$ac_t""$INSTALL_INFO" 1>&6
2399 echo "$ac_t""no" 1>&6
2402 if test "$INSTALL_INFO" != "no"; then
2403 echo $ac_n "checking for old Debian install-info""... $ac_c" 1>&6
2404 echo "configure:2405: checking for old Debian install-info" >&5
2405 if eval "test \"`echo '$''{'libc_cv_old_debian_install_info'+set}'`\" = set"; then
2406 echo $ac_n "(cached) $ac_c" 1>&6
2409 # There is a hard ^_ on the next line. I am open to better ideas.
2411 echo 'File: dir Node: Top This is the top of the INFO tree'
2412 echo '* Menu:') >conftest.d/dir
2413 (echo 'INFO-DIR-SECTION i-d-s works'
2414 echo 'START-INFO-DIR-ENTRY'
2415 echo '* Prog: (prog). Program.'
2416 echo 'END-INFO-DIR-ENTRY') >conftest.d/prog.info
2417 if $INSTALL_INFO --info-dir=conftest.d conftest.d/prog.info >&5 2>&1
2419 if grep -s 'i-d-s works' conftest.d/dir >/dev/null
2420 then libc_cv_old_debian_install_info=no
2421 else libc_cv_old_debian_install_info=yes
2423 else libc_cv_old_debian_install_info=no testfailed=t
2428 echo "$ac_t""$libc_cv_old_debian_install_info" 1>&6
2429 if test -n "$testfailed"
2430 then echo "configure: warning: install-info errored out, check config.log" 1>&2
2432 OLD_DEBIAN_INSTALL_INFO=$libc_cv_old_debian_install_info
2436 # Extract the first word of "bison", so it can be a program name with args.
2437 set dummy bison; ac_word=$2
2438 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2439 echo "configure:2440: checking for $ac_word" >&5
2440 if eval "test \"`echo '$''{'ac_cv_path_BISON'+set}'`\" = set"; then
2441 echo $ac_n "(cached) $ac_c" 1>&6
2445 ac_cv_path_BISON="$BISON" # Let the user override the test with a path.
2448 ac_cv_path_BISON="$BISON" # Let the user override the test with a dos path.
2451 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2452 ac_dummy="$PATH:/usr/local/bin:/usr/bin:/bin"
2453 for ac_dir in $ac_dummy; do
2454 test -z "$ac_dir" && ac_dir=.
2455 if test -f $ac_dir/$ac_word; then
2456 ac_cv_path_BISON="$ac_dir/$ac_word"
2461 test -z "$ac_cv_path_BISON" && ac_cv_path_BISON="no"
2465 BISON="$ac_cv_path_BISON"
2466 if test -n "$BISON"; then
2467 echo "$ac_t""$BISON" 1>&6
2469 echo "$ac_t""no" 1>&6
2473 echo $ac_n "checking for signed size_t type""... $ac_c" 1>&6
2474 echo "configure:2475: checking for signed size_t type" >&5
2475 if eval "test \"`echo '$''{'libc_cv_signed_size_t'+set}'`\" = set"; then
2476 echo $ac_n "(cached) $ac_c" 1>&6
2478 echo '#include <stddef.h>
2479 FOOBAR __SIZE_TYPE__ FOOBAR' > conftest.c
2480 if eval "$ac_cpp conftest.c 2>/dev/null" \
2481 | grep '^FOOBAR.*unsigned.*FOOBAR$' >/dev/null; then
2482 libc_cv_signed_size_t=no
2484 libc_cv_signed_size_t=yes
2489 echo "$ac_t""$libc_cv_signed_size_t" 1>&6
2490 if test $libc_cv_signed_size_t = yes; then
2491 cat >> confdefs.h <<\EOF
2492 #undef __SIZE_TYPE__
2493 #define __SIZE_TYPE__ unsigned
2497 echo $ac_n "checking for libc-friendly stddef.h""... $ac_c" 1>&6
2498 echo "configure:2499: checking for libc-friendly stddef.h" >&5
2499 if eval "test \"`echo '$''{'libc_cv_friendly_stddef'+set}'`\" = set"; then
2500 echo $ac_n "(cached) $ac_c" 1>&6
2502 cat > conftest.$ac_ext <<EOF
2503 #line 2504 "configure"
2504 #include "confdefs.h"
2505 #define __need_size_t
2506 #define __need_wchar_t
2511 size_t size; wchar_t wchar;
2513 #error stddef.h ignored __need_*
2515 if (&size == NULL || &wchar == NULL) abort ();
2518 if { (eval echo configure:2519: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2520 libc_cv_friendly_stddef=yes
2522 echo "configure: failed program was:" >&5
2523 cat conftest.$ac_ext >&5
2525 libc_cv_friendly_stddef=no
2530 echo "$ac_t""$libc_cv_friendly_stddef" 1>&6
2531 if test $libc_cv_friendly_stddef = yes; then
2532 config_vars="$config_vars
2533 override stddef.h = # The installed <stddef.h> seems to be libc-friendly."
2536 echo $ac_n "checking whether we need to use -P to assemble .S files""... $ac_c" 1>&6
2537 echo "configure:2538: checking whether we need to use -P to assemble .S files" >&5
2538 if eval "test \"`echo '$''{'libc_cv_need_minus_P'+set}'`\" = set"; then
2539 echo $ac_n "(cached) $ac_c" 1>&6
2541 cat > conftest.S <<EOF
2542 #include "confdefs.h"
2543 /* Nothing whatsoever. */
2545 if ${CC-cc} $CFLAGS -c conftest.S 2>/dev/null; then
2546 libc_cv_need_minus_P=no
2548 libc_cv_need_minus_P=yes
2553 echo "$ac_t""$libc_cv_need_minus_P" 1>&6
2554 if test $libc_cv_need_minus_P = yes; then
2555 config_vars="$config_vars
2556 asm-CPPFLAGS = -P # The assembler can't grok cpp's # line directives."
2559 echo $ac_n "checking whether .text pseudo-op must be used""... $ac_c" 1>&6
2560 echo "configure:2561: checking whether .text pseudo-op must be used" >&5
2561 if eval "test \"`echo '$''{'libc_cv_dot_text'+set}'`\" = set"; then
2562 echo $ac_n "(cached) $ac_c" 1>&6
2564 cat > conftest.s <<EOF
2568 if ${CC-cc} $CFLAGS -c conftest.s 2>/dev/null; then
2569 libc_cv_dot_text=.text
2574 if test -z "$libc_cv_dot_text"; then
2575 echo "$ac_t""no" 1>&6
2577 echo "$ac_t""yes" 1>&6
2580 echo $ac_n "checking for assembler global-symbol directive""... $ac_c" 1>&6
2581 echo "configure:2582: checking for assembler global-symbol directive" >&5
2582 if eval "test \"`echo '$''{'libc_cv_asm_global_directive'+set}'`\" = set"; then
2583 echo $ac_n "(cached) $ac_c" 1>&6
2585 libc_cv_asm_global_directive=UNKNOWN
2586 for ac_globl in .globl .global .EXPORT; do
2587 cat > conftest.s <<EOF
2592 if ${CC-cc} $CFLAGS -c conftest.s 2>/dev/null; then
2593 libc_cv_asm_global_directive=${ac_globl}
2596 test $libc_cv_asm_global_directive != UNKNOWN && break
2600 echo "$ac_t""$libc_cv_asm_global_directive" 1>&6
2601 if test $libc_cv_asm_global_directive = UNKNOWN; then
2602 { echo "configure: error: cannot determine asm global directive" 1>&2; exit 1; }
2604 cat >> confdefs.h <<EOF
2605 #define ASM_GLOBAL_DIRECTIVE ${libc_cv_asm_global_directive}
2610 echo $ac_n "checking for .set assembler directive""... $ac_c" 1>&6
2611 echo "configure:2612: checking for .set assembler directive" >&5
2612 if eval "test \"`echo '$''{'libc_cv_asm_set_directive'+set}'`\" = set"; then
2613 echo $ac_n "(cached) $ac_c" 1>&6
2615 cat > conftest.s <<EOF
2618 .set glibc_conftest_frobozz,foo
2619 $libc_cv_asm_global_directive glibc_conftest_frobozz
2621 # The alpha-dec-osf1 assembler gives only a warning for `.set'
2622 # (but it doesn't work), so we must do a linking check to be sure.
2623 cat > conftest1.c <<\EOF
2624 extern int glibc_conftest_frobozz;
2625 main () { printf ("%d\n", glibc_conftest_frobozz); }
2627 if ${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \
2628 -o conftest conftest.s conftest1.c 1>&5 2>&5; then
2629 libc_cv_asm_set_directive=yes
2631 libc_cv_asm_set_directive=no
2636 echo "$ac_t""$libc_cv_asm_set_directive" 1>&6
2637 if test $libc_cv_asm_set_directive = yes; then
2638 cat >> confdefs.h <<\EOF
2639 #define HAVE_ASM_SET_DIRECTIVE 1
2644 # The Aix ld uses global .symbol_names instead of symbol_names.
2647 cat >> confdefs.h <<\EOF
2648 #define HAVE_ASM_GLOBAL_DOT_NAME 1
2653 echo $ac_n "checking for .symver assembler directive""... $ac_c" 1>&6
2654 echo "configure:2655: checking for .symver assembler directive" >&5
2655 if eval "test \"`echo '$''{'libc_cv_asm_symver_directive'+set}'`\" = set"; then
2656 echo $ac_n "(cached) $ac_c" 1>&6
2658 cat > conftest.s <<EOF
2661 .symver _sym,sym@VERS
2663 if ${CC-cc} -c $CFLAGS $CPPFLAGS conftest.s 1>&5 2>&5; then
2664 libc_cv_asm_symver_directive=yes
2666 libc_cv_asm_symver_directive=no
2671 echo "$ac_t""$libc_cv_asm_symver_directive" 1>&6
2672 echo $ac_n "checking for ld --version-script""... $ac_c" 1>&6
2673 echo "configure:2674: checking for ld --version-script" >&5
2674 if eval "test \"`echo '$''{'libc_cv_ld_version_script_option'+set}'`\" = set"; then
2675 echo $ac_n "(cached) $ac_c" 1>&6
2677 if test $libc_cv_asm_symver_directive = yes; then
2678 cat > conftest.s <<EOF
2681 .symver _sym,sym@VERS
2683 cat > conftest.map <<EOF
2692 if ${CC-cc} -c $CFLAGS $CPPFLAGS conftest.s 1>&5 2>&5; then
2693 if { ac_try='${CC-cc} $CFLAGS -shared -o conftest.so conftest.o
2694 -nostartfiles -nostdlib
2695 -Wl,--version-script,conftest.map
2696 1>&5'; { (eval echo configure:2697: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; };
2698 libc_cv_ld_version_script_option=yes
2700 libc_cv_ld_version_script_option=no
2703 libc_cv_ld_version_script_option=no
2706 libc_cv_ld_version_script_option=no
2711 echo "$ac_t""$libc_cv_ld_version_script_option" 1>&6
2712 if test $shared != no &&
2713 test $libc_cv_asm_symver_directive = yes &&
2714 test $libc_cv_ld_version_script_option = yes &&
2715 test $enable_versioning = yes; then
2717 cat >> confdefs.h <<\EOF
2718 #define DO_VERSIONING 1
2726 if test $elf = yes && test $shared != no && test $VERSIONING = no; then
2728 *** WARNING: You should not compile GNU libc without versioning. Not using
2729 *** versioning will introduce incompatibilities so that old binaries
2730 *** will not run anymore.
2731 *** For versioning you need recent binutils (binutils-2.8.1.0.23 or newer)."
2733 if test $elf = yes; then
2734 echo $ac_n "checking for .previous assembler directive""... $ac_c" 1>&6
2735 echo "configure:2736: checking for .previous assembler directive" >&5
2736 if eval "test \"`echo '$''{'libc_cv_asm_previous_directive'+set}'`\" = set"; then
2737 echo $ac_n "(cached) $ac_c" 1>&6
2739 cat > conftest.s <<EOF
2740 .section foo_section
2743 if { ac_try='${CC-cc} -c $CFLAGS conftest.s 1>&5'; { (eval echo configure:2744: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
2744 libc_cv_asm_previous_directive=yes
2746 libc_cv_asm_previous_directive=no
2751 echo "$ac_t""$libc_cv_asm_previous_directive" 1>&6
2752 if test $libc_cv_asm_previous_directive = yes; then
2753 cat >> confdefs.h <<\EOF
2754 #define HAVE_ASM_PREVIOUS_DIRECTIVE 1
2758 echo $ac_n "checking for .popsection assembler directive""... $ac_c" 1>&6
2759 echo "configure:2760: checking for .popsection assembler directive" >&5
2760 if eval "test \"`echo '$''{'libc_cv_asm_popsection_directive'+set}'`\" = set"; then
2761 echo $ac_n "(cached) $ac_c" 1>&6
2763 cat > conftest.s <<EOF
2764 .pushsection foo_section
2767 if { ac_try='${CC-cc} -c $CFLAGS conftest.s 1>&5'; { (eval echo configure:2768: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
2768 libc_cv_asm_popsection_directive=yes
2770 libc_cv_asm_popsection_directive=no
2775 echo "$ac_t""$libc_cv_asm_popsection_directive" 1>&6
2776 if test $libc_cv_asm_popsection_directive = yes; then
2777 cat >> confdefs.h <<\EOF
2778 #define HAVE_ASM_POPSECTION_DIRECTIVE 1
2783 echo $ac_n "checking for .protected and .hidden assembler directive""... $ac_c" 1>&6
2784 echo "configure:2785: checking for .protected and .hidden assembler directive" >&5
2785 if eval "test \"`echo '$''{'libc_cv_asm_protected_directive'+set}'`\" = set"; then
2786 echo $ac_n "(cached) $ac_c" 1>&6
2788 cat > conftest.s <<EOF
2794 if { ac_try='${CC-cc} -c $CFLAGS conftest.s 1>&5'; { (eval echo configure:2795: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
2795 libc_cv_asm_protected_directive=yes
2797 libc_cv_asm_protected_directive=no
2802 echo "$ac_t""$libc_cv_asm_protected_directive" 1>&6
2804 cat >> confdefs.h <<\EOF
2805 #define HAVE_PROTECTED 1
2809 if test $libc_cv_asm_protected_directive = yes; then
2810 echo $ac_n "checking whether __attribute__((visibility())) is supported""... $ac_c" 1>&6
2811 echo "configure:2812: checking whether __attribute__((visibility())) is supported" >&5
2812 if eval "test \"`echo '$''{'libc_cv_visibility_attribute'+set}'`\" = set"; then
2813 echo $ac_n "(cached) $ac_c" 1>&6
2815 cat > conftest.c <<EOF
2816 int foo __attribute__ ((visibility ("hidden"))) = 1;
2817 int bar __attribute__ ((visibility ("protected"))) = 1;
2819 libc_cv_visibility_attribute=no
2820 if ${CC-cc} -Werror -S conftest.c -o conftest.s >/dev/null 2>&1; then
2821 if grep '\.hidden.*foo' conftest.s >/dev/null; then
2822 if grep '\.protected.*bar' conftest.s >/dev/null; then
2823 libc_cv_visibility_attribute=yes
2831 echo "$ac_t""$libc_cv_visibility_attribute" 1>&6
2832 if test $libc_cv_visibility_attribute = yes; then
2833 cat >> confdefs.h <<\EOF
2834 #define HAVE_VISIBILITY_ATTRIBUTE 1
2840 if test $libc_cv_visibility_attribute = yes -a $gnu_ld = yes; then
2841 echo $ac_n "checking whether to put _rtld_local into .sdata section""... $ac_c" 1>&6
2842 echo "configure:2843: checking whether to put _rtld_local into .sdata section" >&5
2843 if eval "test \"`echo '$''{'libc_cv_have_sdata_section'+set}'`\" = set"; then
2844 echo $ac_n "(cached) $ac_c" 1>&6
2846 echo "int i;" > conftest.c
2847 libc_cv_have_sdata_section=no
2848 if ${CC-cc} -shared -Wl,--verbose conftest.c -o conftest.so 2>&1 \
2849 | grep '\.sdata' >/dev/null; then
2850 libc_cv_have_sdata_section=yes
2852 rm -f conftest.c conftest.so
2856 echo "$ac_t""$libc_cv_have_sdata_section" 1>&6
2857 if test $libc_cv_have_sdata_section = yes; then
2858 cat >> confdefs.h <<\EOF
2859 #define HAVE_SDATA_SECTION 1
2865 echo $ac_n "checking for .preinit_array/.init_array/.fini_array support""... $ac_c" 1>&6
2866 echo "configure:2867: checking for .preinit_array/.init_array/.fini_array support" >&5
2867 if eval "test \"`echo '$''{'libc_cv_initfinit_array'+set}'`\" = set"; then
2868 echo $ac_n "(cached) $ac_c" 1>&6
2870 cat > conftest.c <<EOF
2871 int _start (void) { return 0; }
2872 int __start (void) { return 0; }
2873 int foo (void) { return 1; }
2874 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
2876 if { ac_try='${CC-cc} -o conftest conftest.c
2877 -static -nostartfiles -nostdlib 1>&5'; { (eval echo configure:2878: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }
2879 if readelf -S conftest | fgrep INIT_ARRAY > /dev/null; then
2880 libc_cv_initfinit_array=yes
2882 libc_cv_initfinit_array=no
2885 libc_cv_initfinit_array=no
2890 echo "$ac_t""$libc_cv_initfinit_array" 1>&6
2892 if test $libc_cv_initfinit_array = yes; then
2893 cat >> confdefs.h <<\EOF
2894 #define HAVE_INITFINI_ARRAY 1
2899 echo $ac_n "checking for -z nodelete option""... $ac_c" 1>&6
2900 echo "configure:2901: checking for -z nodelete option" >&5
2901 if eval "test \"`echo '$''{'libc_cv_z_nodelete'+set}'`\" = set"; then
2902 echo $ac_n "(cached) $ac_c" 1>&6
2904 cat > conftest.c <<EOF
2905 int _start (void) { return 42; }
2907 if { ac_try='${CC-cc} -shared -o conftest.so conftest.c
2908 -nostartfiles -nostdlib
2909 -Wl,--enable-new-dtags,-z,nodelete 1>&5'; { (eval echo configure:2910: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }
2911 libc_cv_z_nodelete=yes
2913 libc_cv_z_nodelete=no
2918 echo "$ac_t""$libc_cv_z_nodelete" 1>&6
2921 echo $ac_n "checking for -z nodlopen option""... $ac_c" 1>&6
2922 echo "configure:2923: checking for -z nodlopen option" >&5
2923 if eval "test \"`echo '$''{'libc_cv_z_nodlopen'+set}'`\" = set"; then
2924 echo $ac_n "(cached) $ac_c" 1>&6
2926 cat > conftest.c <<EOF
2927 int _start (void) { return 42; }
2929 if { ac_try='${CC-cc} -shared -o conftest.so conftest.c
2930 -nostartfiles -nostdlib
2931 -Wl,--enable-new-dtags,-z,nodlopen 1>&5'; { (eval echo configure:2932: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }
2933 libc_cv_z_nodlopen=yes
2935 libc_cv_z_nodlopen=no
2940 echo "$ac_t""$libc_cv_z_nodlopen" 1>&6
2943 echo $ac_n "checking for -z initfirst option""... $ac_c" 1>&6
2944 echo "configure:2945: checking for -z initfirst option" >&5
2945 if eval "test \"`echo '$''{'libc_cv_z_initfirst'+set}'`\" = set"; then
2946 echo $ac_n "(cached) $ac_c" 1>&6
2948 cat > conftest.c <<EOF
2949 int _start (void) { return 42; }
2951 if { ac_try='${CC-cc} -shared -o conftest.so conftest.c
2952 -nostartfiles -nostdlib
2953 -Wl,--enable-new-dtags,-z,initfirst 1>&5'; { (eval echo configure:2954: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }
2955 libc_cv_z_initfirst=yes
2957 libc_cv_z_initfirst=no
2962 echo "$ac_t""$libc_cv_z_initfirst" 1>&6
2965 echo $ac_n "checking for -Bgroup option""... $ac_c" 1>&6
2966 echo "configure:2967: checking for -Bgroup option" >&5
2967 if eval "test \"`echo '$''{'libc_cv_Bgroup'+set}'`\" = set"; then
2968 echo $ac_n "(cached) $ac_c" 1>&6
2970 cat > conftest.c <<EOF
2971 int _start (void) { return 42; }
2973 if { ac_try='${CC-cc} -shared -o conftest.so conftest.c -Wl,-Bgroup -nostdlib 1>&5'; { (eval echo configure:2974: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }
2982 echo "$ac_t""$libc_cv_Bgroup" 1>&6
2985 echo $ac_n "checking for -z combreloc""... $ac_c" 1>&6
2986 echo "configure:2987: checking for -z combreloc" >&5
2987 if eval "test \"`echo '$''{'libc_cv_z_combreloc'+set}'`\" = set"; then
2988 echo $ac_n "(cached) $ac_c" 1>&6
2990 cat > conftest.c <<EOF
2991 extern int bar (int);
2993 int foo (void) { return bar (mumble); }
2995 if { ac_try='${CC-cc} -shared -o conftest.so conftest.c
2996 -nostdlib -nostartfiles
2997 -Wl,-z,combreloc 1>&5'; { (eval echo configure:2998: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }
2999 if readelf -S conftest.so | grep '\.rel\(a\|\)\.dyn' > /dev/null; then
3000 libc_cv_z_combreloc=yes
3002 libc_cv_z_combreloc=no
3005 libc_cv_z_combreloc=no
3010 echo "$ac_t""$libc_cv_z_combreloc" 1>&6
3011 if test "$libc_cv_z_combreloc" = yes; then
3012 cat >> confdefs.h <<\EOF
3013 #define HAVE_Z_COMBRELOC 1
3020 if test $elf != yes; then
3021 echo $ac_n "checking for .init and .fini sections""... $ac_c" 1>&6
3022 echo "configure:3023: checking for .init and .fini sections" >&5
3023 if eval "test \"`echo '$''{'libc_cv_have_initfini'+set}'`\" = set"; then
3024 echo $ac_n "(cached) $ac_c" 1>&6
3026 cat > conftest.$ac_ext <<EOF
3027 #line 3028 "configure"
3028 #include "confdefs.h"
3031 asm (".section .init");
3032 asm (".section .fini");
3033 asm ("${libc_cv_dot_text}");
3036 if { (eval echo configure:3037: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3038 libc_cv_have_initfini=yes
3040 echo "configure: failed program was:" >&5
3041 cat conftest.$ac_ext >&5
3043 libc_cv_have_initfini=no
3048 echo "$ac_t""$libc_cv_have_initfini" 1>&6
3049 if test $libc_cv_have_initfini = yes; then
3050 cat >> confdefs.h <<\EOF
3051 #define HAVE_INITFINI 1
3057 if test $elf = yes -a $gnu_ld = yes; then
3058 echo $ac_n "checking whether cc puts quotes around section names""... $ac_c" 1>&6
3059 echo "configure:3060: checking whether cc puts quotes around section names" >&5
3060 if eval "test \"`echo '$''{'libc_cv_have_section_quotes'+set}'`\" = set"; then
3061 echo $ac_n "(cached) $ac_c" 1>&6
3063 cat > conftest.c <<EOF
3064 static const int foo
3065 __attribute__ ((section ("bar"))) = 1;
3067 if ${CC-cc} -S conftest.c -o conftest.s; then
3068 if grep '\.section.*"bar"' conftest.s >/dev/null; then
3069 libc_cv_have_section_quotes=yes
3071 libc_cv_have_section_quotes=no
3074 libc_cv_have_section_quotes=unknown
3080 echo "$ac_t""$libc_cv_have_section_quotes" 1>&6
3081 if test $libc_cv_have_section_quotes = yes; then
3082 cat >> confdefs.h <<\EOF
3083 #define HAVE_SECTION_QUOTES 1
3091 if test $elf = yes; then
3092 libc_cv_asm_underscores=no
3094 if test $ac_cv_prog_cc_works = yes; then
3095 echo $ac_n "checking for _ prefix on C symbol names""... $ac_c" 1>&6
3096 echo "configure:3097: checking for _ prefix on C symbol names" >&5
3097 if eval "test \"`echo '$''{'libc_cv_asm_underscores'+set}'`\" = set"; then
3098 echo $ac_n "(cached) $ac_c" 1>&6
3100 cat > conftest.$ac_ext <<EOF
3101 #line 3102 "configure"
3102 #include "confdefs.h"
3103 asm ("_glibc_foobar:");
3108 if { (eval echo configure:3109: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3110 libc_cv_asm_underscores=yes
3112 echo "configure: failed program was:" >&5
3113 cat conftest.$ac_ext >&5
3115 libc_cv_asm_underscores=no
3120 echo "$ac_t""$libc_cv_asm_underscores" 1>&6
3122 echo $ac_n "checking for _ prefix on C symbol names""... $ac_c" 1>&6
3123 echo "configure:3124: checking for _ prefix on C symbol names" >&5
3124 if eval "test \"`echo '$''{'libc_cv_asm_underscores'+set}'`\" = set"; then
3125 echo $ac_n "(cached) $ac_c" 1>&6
3127 cat > conftest.$ac_ext <<EOF
3128 #line 3129 "configure"
3129 #include "confdefs.h"
3130 void underscore_test(void) {
3133 if { (eval echo configure:3134: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3134 if grep _underscore_test conftest* >/dev/null; then
3136 libc_cv_asm_underscores=yes
3139 libc_cv_asm_underscores=no
3142 echo "configure: failed program was:" >&5
3143 cat conftest.$ac_ext >&5
3145 libc_cv_asm_underscores=no
3150 echo "$ac_t""$libc_cv_asm_underscores" 1>&6
3153 if test $libc_cv_asm_underscores = no; then
3154 cat >> confdefs.h <<\EOF
3155 #define NO_UNDERSCORES 1
3160 if test $elf = yes; then
3161 libc_cv_weak_symbols=yes
3164 echo $ac_n "checking for assembler .weak directive""... $ac_c" 1>&6
3165 echo "configure:3166: checking for assembler .weak directive" >&5
3166 if eval "test \"`echo '$''{'libc_cv_asm_weak_directive'+set}'`\" = set"; then
3167 echo $ac_n "(cached) $ac_c" 1>&6
3169 cat > conftest.s <<EOF
3171 ${libc_cv_asm_global_directive} foo
3174 .weak bar; bar = foo
3176 if ${CC-cc} $CFLAGS -c conftest.s 2>/dev/null; then
3177 libc_cv_asm_weak_directive=yes
3179 libc_cv_asm_weak_directive=no
3184 echo "$ac_t""$libc_cv_asm_weak_directive" 1>&6
3186 if test $libc_cv_asm_weak_directive = no; then
3187 echo $ac_n "checking for assembler .weakext directive""... $ac_c" 1>&6
3188 echo "configure:3189: checking for assembler .weakext directive" >&5
3189 if eval "test \"`echo '$''{'libc_cv_asm_weakext_directive'+set}'`\" = set"; then
3190 echo $ac_n "(cached) $ac_c" 1>&6
3192 cat > conftest.s <<EOF
3194 ${libc_cv_asm_global_directive} foo
3198 ${libc_cv_asm_global_directive} baz
3201 if ${CC-cc} $CFLAGS -c conftest.s 2>/dev/null; then
3202 libc_cv_asm_weakext_directive=yes
3204 libc_cv_asm_weakext_directive=no
3209 echo "$ac_t""$libc_cv_asm_weakext_directive" 1>&6
3213 if test $libc_cv_asm_weak_directive = yes; then
3214 cat >> confdefs.h <<\EOF
3215 #define HAVE_ASM_WEAK_DIRECTIVE 1
3218 elif test $libc_cv_asm_weakext_directive = yes; then
3219 cat >> confdefs.h <<\EOF
3220 #define HAVE_ASM_WEAKEXT_DIRECTIVE 1
3225 case "${host_cpu}-${host_os}" in
3227 libc_cv_asm_line_sep='@'
3228 cat >> confdefs.h <<EOF
3229 #define ASM_LINE_SEP $libc_cv_asm_line_sep
3234 echo $ac_n "checking for assembler line separator""... $ac_c" 1>&6
3235 echo "configure:3236: checking for assembler line separator" >&5
3236 if eval "test \"`echo '$''{'libc_cv_asm_line_sep'+set}'`\" = set"; then
3237 echo $ac_n "(cached) $ac_c" 1>&6
3239 cat > conftest.s <<EOF
3242 if { ac_try='${CC-cc} -c $CFLAGS conftest.s 1>&5'; { (eval echo configure:3243: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
3243 libc_cv_asm_line_sep='!'
3245 if test -z "$enable_hacker_mode"; then
3246 echo "*** You need a newer assembler to compile glibc"
3250 libc_cv_asm_line_sep=';'
3255 echo "$ac_t""$libc_cv_asm_line_sep" 1>&6
3256 cat >> confdefs.h <<EOF
3257 #define ASM_LINE_SEP $libc_cv_asm_line_sep
3263 echo $ac_n "checking for ld --no-whole-archive""... $ac_c" 1>&6
3264 echo "configure:3265: checking for ld --no-whole-archive" >&5
3265 if eval "test \"`echo '$''{'libc_cv_ld_no_whole_archive'+set}'`\" = set"; then
3266 echo $ac_n "(cached) $ac_c" 1>&6
3268 cat > conftest.c <<\EOF
3273 if { ac_try='${CC-cc} $CFLAGS
3274 -nostdlib -nostartfiles -Wl,--no-whole-archive
3275 -o conftest conftest.c 1>&5'; { (eval echo configure:3276: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
3276 libc_cv_ld_no_whole_archive=yes
3278 libc_cv_ld_no_whole_archive=no
3283 echo "$ac_t""$libc_cv_ld_no_whole_archive" 1>&6
3284 if test $libc_cv_ld_no_whole_archive = yes; then
3285 no_whole_archive=-Wl,--no-whole-archive
3288 echo $ac_n "checking for gcc -fexceptions""... $ac_c" 1>&6
3289 echo "configure:3290: checking for gcc -fexceptions" >&5
3290 if eval "test \"`echo '$''{'libc_cv_gcc_exceptions'+set}'`\" = set"; then
3291 echo $ac_n "(cached) $ac_c" 1>&6
3293 cat > conftest.c <<\EOF
3298 if { ac_try='${CC-cc} $CFLAGS
3299 -nostdlib -nostartfiles -fexceptions
3300 -o conftest conftest.c 1>&5'; { (eval echo configure:3301: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
3301 libc_cv_gcc_exceptions=yes
3303 libc_cv_gcc_exceptions=no
3308 echo "$ac_t""$libc_cv_gcc_exceptions" 1>&6
3309 if test $libc_cv_gcc_exceptions = yes; then
3310 exceptions=-fexceptions
3313 if test "$base_machine" = alpha ; then
3314 echo $ac_n "checking for function ..ng prefix""... $ac_c" 1>&6
3315 echo "configure:3316: checking for function ..ng prefix" >&5
3316 if eval "test \"`echo '$''{'libc_cv_gcc_alpha_ng_prefix'+set}'`\" = set"; then
3317 echo $ac_n "(cached) $ac_c" 1>&6
3319 cat > conftest.c <<\EOF
3322 if { ac_try='${CC-cc} -S conftest.c -o - | fgrep "\$foo..ng" > /dev/null'; { (eval echo configure:3323: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; };
3324 libc_cv_gcc_alpha_ng_prefix=yes
3326 libc_cv_gcc_alpha_ng_prefix=no
3331 echo "$ac_t""$libc_cv_gcc_alpha_ng_prefix" 1>&6
3332 if test $libc_cv_gcc_alpha_ng_prefix = yes ; then
3333 cat >> confdefs.h <<\EOF
3334 #define ASM_ALPHA_NG_SYMBOL_PREFIX "$"
3338 cat >> confdefs.h <<\EOF
3339 #define ASM_ALPHA_NG_SYMBOL_PREFIX ""
3345 if test "$host_cpu" = powerpc ; then
3346 # Check for a bug present in at least versions 2.8.x of GCC
3347 # and versions 1.0.x of EGCS.
3348 echo $ac_n "checking whether clobbering cr0 causes problems""... $ac_c" 1>&6
3349 echo "configure:3350: checking whether clobbering cr0 causes problems" >&5
3350 if eval "test \"`echo '$''{'libc_cv_c_asmcr0_bug'+set}'`\" = set"; then
3351 echo $ac_n "(cached) $ac_c" 1>&6
3353 cat > conftest.$ac_ext <<EOF
3354 #line 3355 "configure"
3355 #include "confdefs.h"
3356 int tester(int x) { asm ("" : : : "cc"); return x & 123; }
3361 if { (eval echo configure:3362: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3363 libc_cv_c_asmcr0_bug='no'
3365 echo "configure: failed program was:" >&5
3366 cat conftest.$ac_ext >&5
3368 libc_cv_c_asmcr0_bug='yes'
3373 echo "$ac_t""$libc_cv_c_asmcr0_bug" 1>&6
3374 if test "$libc_cv_c_asmcr0_bug" != 'no'; then
3375 cat >> confdefs.h <<\EOF
3376 #define BROKEN_PPC_ASM_CR0 1
3382 echo $ac_n "checking for DWARF2 unwind info support""... $ac_c" 1>&6
3383 echo "configure:3384: checking for DWARF2 unwind info support" >&5
3384 if eval "test \"`echo '$''{'libc_cv_gcc_dwarf2_unwind_info'+set}'`\" = set"; then
3385 echo $ac_n "(cached) $ac_c" 1>&6
3387 cat > conftest.c <<EOF
3388 #line 3389 "configure"
3389 static char __EH_FRAME_BEGIN__;
3392 #ifdef CHECK__register_frame
3393 __register_frame (__EH_FRAME_BEGIN__);
3394 __deregister_frame (__EH_FRAME_BEGIN__);
3396 #ifdef CHECK__register_frame_info
3397 __register_frame_info (__EH_FRAME_BEGIN__);
3398 __deregister_frame_info (__EH_FRAME_BEGIN__);
3403 /* FIXME: this is fragile. */
3413 if { ac_try='${CC-cc} $CFLAGS -DCHECK__register_frame_info
3414 -nostdlib -nostartfiles
3415 -o conftest conftest.c -lgcc >&5'; { (eval echo configure:3416: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
3416 libc_cv_gcc_dwarf2_unwind_info=static
3418 libc_cv_gcc_dwarf2_unwind_info=no
3420 if test $libc_cv_gcc_dwarf2_unwind_info = no; then
3421 if { ac_try='${CC-cc} $CFLAGS -DCHECK__register_frame
3422 -nostdlib -nostartfiles
3423 -o conftest conftest.c -lgcc >&5'; { (eval echo configure:3424: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
3424 libc_cv_gcc_dwarf2_unwind_info=yes
3426 libc_cv_gcc_dwarf2_unwind_info=no
3432 echo "$ac_t""$libc_cv_gcc_dwarf2_unwind_info" 1>&6
3433 case $libc_cv_gcc_dwarf2_unwind_info in
3435 cat >> confdefs.h <<\EOF
3436 #define HAVE_DWARF2_UNWIND_INFO 1
3441 cat >> confdefs.h <<\EOF
3442 #define HAVE_DWARF2_UNWIND_INFO 1
3445 cat >> confdefs.h <<\EOF
3446 #define HAVE_DWARF2_UNWIND_INFO_STATIC 1
3452 echo $ac_n "checking for __builtin_expect""... $ac_c" 1>&6
3453 echo "configure:3454: checking for __builtin_expect" >&5
3454 if eval "test \"`echo '$''{'libc_cv_gcc_builtin_expect'+set}'`\" = set"; then
3455 echo $ac_n "(cached) $ac_c" 1>&6
3457 cat > conftest.c <<EOF
3458 #line 3459 "configure"
3461 a = __builtin_expect (a, 10);
3462 return a == 10 ? 0 : 1;
3465 if { ac_try='${CC-cc} $CFLAGS -nostdlib -nostartfiles
3466 -o conftest conftest.c -lgcc >&5'; { (eval echo configure:3467: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
3467 libc_cv_gcc_builtin_expect=yes
3469 libc_cv_gcc_builtin_expect=no
3474 echo "$ac_t""$libc_cv_gcc_builtin_expect" 1>&6
3475 if test "$libc_cv_gcc_builtin_expect" = yes; then
3476 cat >> confdefs.h <<\EOF
3477 #define HAVE_BUILTIN_EXPECT 1
3482 echo $ac_n "checking for __builtin_memset""... $ac_c" 1>&6
3483 echo "configure:3484: checking for __builtin_memset" >&5
3484 if eval "test \"`echo '$''{'libc_cv_gcc_builtin_memset'+set}'`\" = set"; then
3485 echo $ac_n "(cached) $ac_c" 1>&6
3487 cat > conftest.c <<\EOF
3490 __builtin_memset (x, 0, 1000);
3493 if { ac_try='${CC-cc} -O3 -S conftest.c -o - | fgrep "memset" > /dev/null'; { (eval echo configure:3494: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; };
3495 libc_cv_gcc_builtin_memset=no
3497 libc_cv_gcc_builtin_memset=yes
3502 echo "$ac_t""$libc_cv_gcc_builtin_memset" 1>&6
3503 if test "$libc_cv_gcc_builtin_memset" = yes ; then
3504 cat >> confdefs.h <<\EOF
3505 #define HAVE_BUILTIN_MEMSET 1
3510 echo $ac_n "checking for local label subtraction""... $ac_c" 1>&6
3511 echo "configure:3512: checking for local label subtraction" >&5
3512 if eval "test \"`echo '$''{'libc_cv_gcc_subtract_local_labels'+set}'`\" = set"; then
3513 echo $ac_n "(cached) $ac_c" 1>&6
3515 cat > conftest.c <<EOF
3516 #line 3517 "configure"
3519 static const int ar[] = { &&l1 - &&l1, &&l2 - &&l1 };
3520 void *p = &&l1 + ar[a];
3528 if { ac_try='${CC-cc} $CFLAGS -nostdlib -nostartfiles
3529 -o conftest conftest.c -lgcc >&5'; { (eval echo configure:3530: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
3530 libc_cv_gcc_subtract_local_labels=yes
3532 libc_cv_gcc_subtract_local_labels=no
3537 echo "$ac_t""$libc_cv_gcc_subtract_local_labels" 1>&6
3538 if test "$libc_cv_gcc_subtract_local_labels" = yes; then
3539 cat >> confdefs.h <<\EOF
3540 #define HAVE_SUBTRACT_LOCAL_LABELS 1
3545 echo $ac_n "checking for libgd""... $ac_c" 1>&6
3546 echo "configure:3547: checking for libgd" >&5
3547 if test "$with_gd" != "no"; then
3548 old_CFLAGS="$CFLAGS"
3549 CFLAGS="$CFLAGS $libgd_include"
3550 old_LDFLAGS="$LDFLAGS"
3551 LDFLAGS="$LDFLAGS $libgd_ldflags"
3553 LIBS="$LIBS -lgd -lpng -lz -lm"
3554 cat > conftest.$ac_ext <<EOF
3555 #line 3556 "configure"
3556 #include "confdefs.h"
3562 if { (eval echo configure:3563: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3566 echo "configure: failed program was:" >&5
3567 cat conftest.$ac_ext >&5
3572 CFLAGS="$old_CFLAGS"
3573 LDFLAGS="$old_LDFLAGS"
3578 echo "$ac_t""$LIBGD" 1>&6
3581 echo $ac_n "checking size of long double""... $ac_c" 1>&6
3582 echo "configure:3583: checking size of long double" >&5
3583 if eval "test \"`echo '$''{'ac_cv_sizeof_long_double'+set}'`\" = set"; then
3584 echo $ac_n "(cached) $ac_c" 1>&6
3586 if test "$cross_compiling" = yes; then
3587 ac_cv_sizeof_long_double=0
3589 cat > conftest.$ac_ext <<EOF
3590 #line 3591 "configure"
3591 #include "confdefs.h"
3595 FILE *f=fopen("conftestval", "w");
3597 fprintf(f, "%d\n", sizeof(long double));
3601 if { (eval echo configure:3602: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3603 ac_cv_sizeof_long_double=`cat conftestval`
3605 echo "configure: failed program was:" >&5
3606 cat conftest.$ac_ext >&5
3608 ac_cv_sizeof_long_double=0
3614 echo "$ac_t""$ac_cv_sizeof_long_double" 1>&6
3615 cat >> confdefs.h <<EOF
3616 #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
3620 sizeof_long_double=$ac_cv_sizeof_long_double
3623 ### End of automated tests.
3624 ### Now run sysdeps configure fragments.
3626 # sysdeps configure fragments may set these with files to be linked below.
3630 # They also can set these variables.
3632 ldd_rewrite_script=no
3633 libc_cv_sysconfdir=$sysconfdir
3634 libc_cv_gcc_unwind_find_fde=no
3636 # Iterate over all the sysdep directories we will use, running their
3637 # configure fragments, and looking for a uname implementation.
3639 for dir in $sysnames; do
3642 *) dest=$srcdir/$dir ;;
3644 if test -r $dest/configure; then
3645 echo "$ac_t""running configure fragment for $dest" 1>&6
3649 if test -z "$uname"; then
3650 if test -r $dest/uname.c ||
3651 test -r $dest/uname.S ||
3652 { test -r $dest/syscalls.list &&
3653 grep '^uname[ ]' $dest/syscalls.list >/dev/null; }; then
3659 if test x$libc_cv_gcc_unwind_find_fde = xyes; then
3660 cat >> confdefs.h <<\EOF
3661 #define EXPORT_UNWIND_FIND_FDE 1
3669 # If we will use the generic uname implementation, we must figure out what
3670 # it will say by examining the system, and write the results in config-name.h.
3671 if test "$uname" = "sysdeps/generic"; then
3673 uname_sysname=`echo $config_os | sed 's/[0-9.]*$//'`
3674 if test $uname_sysname != $config_os; then
3675 config_release=`echo $config_os | sed s/$uname_sysname//`
3678 echo $ac_n "checking OS release for uname""... $ac_c" 1>&6
3679 echo "configure:3680: checking OS release for uname" >&5
3680 if eval "test \"`echo '$''{'libc_cv_uname_release'+set}'`\" = set"; then
3681 echo $ac_n "(cached) $ac_c" 1>&6
3683 kernel_release=`echo "$kernel_id" | sed 's/^[^0-9.]*\([0-9.]*\).*$/\1/'`
3684 if test x`echo "$config_release" | sed "s/^$kernel_release//"` \
3685 != x$config_release; then
3686 # The configuration release is a substring of the kernel release.
3687 libc_cv_uname_release=$kernel_release
3688 elif test x$config_release != x; then
3689 libc_cv_uname_release=$config_release
3690 elif test x$kernel_release != x; then
3691 libc_cv_uname_release=$kernel_release
3693 libc_cv_uname_release=unknown
3697 echo "$ac_t""$libc_cv_uname_release" 1>&6
3698 uname_release="$libc_cv_uname_release"
3700 echo $ac_n "checking OS version for uname""... $ac_c" 1>&6
3701 echo "configure:3702: checking OS version for uname" >&5
3702 if eval "test \"`echo '$''{'libc_cv_uname_version'+set}'`\" = set"; then
3703 echo $ac_n "(cached) $ac_c" 1>&6
3705 kernel_version=`echo "$kernel_id" | sed 's/^[^#]*#\([0-9]*\).*$/\1/'`
3706 if test -n "$kernel_version"; then
3707 libc_cv_uname_version="$kernel_version"
3709 libc_cv_uname_version=unknown
3713 echo "$ac_t""$libc_cv_uname_version" 1>&6
3714 uname_version="$libc_cv_uname_version"
3716 config_uname=config-name.h:config-name.in
3718 # For non-generic uname, we don't need to create config-name.h at all.
3722 echo $ac_n "checking stdio selection""... $ac_c" 1>&6
3723 echo "configure:3724: checking stdio selection" >&5
3726 libio) cat >> confdefs.h <<\EOF
3727 #define USE_IN_LIBIO 1
3730 default) stdio=stdio ;;
3732 echo "$ac_t""$stdio" 1>&6
3734 # Test for old glibc 2.0.x headers so that they can be removed properly
3735 # Search only in includedir.
3736 echo $ac_n "checking for old glibc 2.0.x headers""... $ac_c" 1>&6
3737 echo "configure:3738: checking for old glibc 2.0.x headers" >&5
3738 if eval test -f "${includedir}/elfclass.h" -a -f "${includedir}/fcntlbits.h"
3740 old_glibc_headers=yes
3742 old_glibc_headers=no
3744 echo "$ac_t""$old_glibc_headers" 1>&6
3745 if test ${old_glibc_headers} = yes; then
3746 echo "configure: warning: *** During \"make install\" old headers from glibc 2.0.x will" 1>&2
3747 echo "configure: warning: *** be removed." 1>&2
3760 if test $gnu_ld = yes; then
3761 cat >> confdefs.h <<\EOF
3762 #define HAVE_GNU_LD 1
3766 if test $gnu_as = yes; then
3767 cat >> confdefs.h <<\EOF
3768 #define HAVE_GNU_AS 1
3772 if test $elf = yes; then
3773 cat >> confdefs.h <<\EOF
3778 if test $xcoff = yes; then
3779 cat >> confdefs.h <<\EOF
3780 #define HAVE_XCOFF 1
3787 if test $shared = default; then
3788 if test $gnu_ld = yes; then
3791 # For now we do not assume shared libs are available. In future more
3792 # tests might become available.
3797 echo $ac_n "checking whether -fPIC is default""... $ac_c" 1>&6
3798 echo "configure:3799: checking whether -fPIC is default" >&5
3799 if eval "test \"`echo '$''{'pic_default'+set}'`\" = set"; then
3800 echo $ac_n "(cached) $ac_c" 1>&6
3803 cat > conftest.c <<EOF
3804 #if defined __PIC__ || defined __pic__ || defined PIC || defined pic
3805 # error PIC is default.
3808 if eval "${CC-cc} -S conftest.c 2>&5 1>&5"; then
3814 echo "$ac_t""$pic_default" 1>&6
3826 *door*) linux_doors=yes ;;
3827 *) linux_doors=no ;;
3833 if test "`(cd $srcdir; pwd)`" = "`pwd`"; then
3836 config_makefile=Makefile
3839 VERSION=`sed -n -e 's/^#define VERSION "\([^"]*\)"/\1/p' < $srcdir/version.h`
3840 RELEASE=`sed -n -e 's/^#define RELEASE "\([^"]*\)"/\1/p' < $srcdir/version.h`
3845 cat > confcache <<\EOF
3846 # This file is a shell script that caches the results of configure
3847 # tests run on this system so they can be shared between configure
3848 # scripts and configure runs. It is not useful on other systems.
3849 # If it contains results you don't want to keep, you may remove or edit it.
3851 # By default, configure uses ./config.cache as the cache file,
3852 # creating it if it does not exist already. You can give configure
3853 # the --cache-file=FILE option to use a different cache file; that is
3854 # what configure does when it calls configure scripts in
3855 # subdirectories, so they share the cache.
3856 # Giving --cache-file=/dev/null disables caching, for debugging configure.
3857 # config.status only pays attention to the cache file if you give it the
3858 # --recheck option to rerun configure.
3861 # The following way of writing the cache mishandles newlines in values,
3862 # but we know of no workaround that is simple, portable, and efficient.
3863 # So, don't put newlines in cache variables' values.
3864 # Ultrix sh set writes to stderr and can't be redirected directly,
3865 # and sets the high bit in the cache file unless we assign to the vars.
3867 case `(ac_space=' '; set | grep ac_space) 2>&1` in
3869 # `set' does not quote correctly, so add quotes (double-quote substitution
3870 # turns \\\\ into \\, and sed turns \\ into \).
3872 -e "s/'/'\\\\''/g" \
3873 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
3876 # `set' quotes correctly as required by POSIX, so do not add quotes.
3877 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
3880 if cmp -s $cache_file confcache; then
3883 if test -w $cache_file; then
3884 echo "updating cache $cache_file"
3885 cat confcache > $cache_file
3887 echo "not updating unwritable cache $cache_file"
3892 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
3894 test "x$prefix" = xNONE && prefix=$ac_default_prefix
3895 # Let make expand exec_prefix.
3896 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3898 # Any assignment to VPATH causes Sun make to only execute
3899 # the first set of double-colon rules, so remove it if not needed.
3900 # If there is a colon in the path, we need to keep it.
3901 if test "x$srcdir" = x.; then
3902 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
3905 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
3907 DEFS=-DHAVE_CONFIG_H
3909 # Without the "./", some shells look in PATH for config.status.
3910 : ${CONFIG_STATUS=./config.status}
3912 echo creating $CONFIG_STATUS
3913 rm -f $CONFIG_STATUS
3914 cat > $CONFIG_STATUS <<EOF
3916 # Generated automatically by configure.
3917 # Run this file to recreate the current configuration.
3918 # This directory was configured as follows,
3919 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
3921 # $0 $ac_configure_args
3923 # Compiler output produced by configure, useful for debugging
3924 # configure, is in ./config.log if it exists.
3926 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
3929 case "\$ac_option" in
3930 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3931 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
3932 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
3933 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
3934 echo "$CONFIG_STATUS generated by autoconf version 2.13"
3936 -help | --help | --hel | --he | --h)
3937 echo "\$ac_cs_usage"; exit 0 ;;
3938 *) echo "\$ac_cs_usage"; exit 1 ;;
3942 ac_given_srcdir=$srcdir
3943 ac_given_INSTALL="$INSTALL"
3945 trap 'rm -fr `echo "config.make glibcbug ${config_makefile} ${config_uname} config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
3947 cat >> $CONFIG_STATUS <<EOF
3949 # Protect against being on the right side of a sed subst in config.status.
3950 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
3951 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
3955 s%@CFLAGS@%$CFLAGS%g
3956 s%@CPPFLAGS@%$CPPFLAGS%g
3957 s%@CXXFLAGS@%$CXXFLAGS%g
3958 s%@FFLAGS@%$FFLAGS%g
3960 s%@LDFLAGS@%$LDFLAGS%g
3962 s%@exec_prefix@%$exec_prefix%g
3963 s%@prefix@%$prefix%g
3964 s%@program_transform_name@%$program_transform_name%g
3965 s%@bindir@%$bindir%g
3966 s%@sbindir@%$sbindir%g
3967 s%@libexecdir@%$libexecdir%g
3968 s%@datadir@%$datadir%g
3969 s%@sysconfdir@%$sysconfdir%g
3970 s%@sharedstatedir@%$sharedstatedir%g
3971 s%@localstatedir@%$localstatedir%g
3972 s%@libdir@%$libdir%g
3973 s%@includedir@%$includedir%g
3974 s%@oldincludedir@%$oldincludedir%g
3975 s%@infodir@%$infodir%g
3976 s%@mandir@%$mandir%g
3977 s%@with_fp@%$with_fp%g
3978 s%@with_cvs@%$with_cvs%g
3979 s%@oldest_abi@%$oldest_abi%g
3980 s%@subdirs@%$subdirs%g
3981 s%@force_install@%$force_install%g
3982 s%@all_warnings@%$all_warnings%g
3984 s%@host_alias@%$host_alias%g
3985 s%@host_cpu@%$host_cpu%g
3986 s%@host_vendor@%$host_vendor%g
3987 s%@host_os@%$host_os%g
3988 s%@base_machine@%$base_machine%g
3989 s%@sysnames@%$sysnames%g
3990 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
3991 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
3992 s%@INSTALL_DATA@%$INSTALL_DATA%g
3996 s%@build_alias@%$build_alias%g
3997 s%@build_cpu@%$build_cpu%g
3998 s%@build_vendor@%$build_vendor%g
3999 s%@build_os@%$build_os%g
4002 s%@MSGFMT@%$MSGFMT%g
4003 s%@MAKEINFO@%$MAKEINFO%g
4005 s%@cross_linkable@%$cross_linkable%g
4006 s%@BUILD_CC@%$BUILD_CC%g
4007 s%@cross_compiling@%$cross_compiling%g
4010 s%@RANLIB@%$RANLIB%g
4012 s%@CCVERSION@%$CCVERSION%g
4013 s%@SYSINCLUDES@%$SYSINCLUDES%g
4014 s%@libc_cv_gcc_static_libgcc@%$libc_cv_gcc_static_libgcc%g
4016 s%@libc_cv_have_bash2@%$libc_cv_have_bash2%g
4018 s%@libc_cv_have_ksh@%$libc_cv_have_ksh%g
4021 s%@INSTALL_INFO@%$INSTALL_INFO%g
4022 s%@OLD_DEBIAN_INSTALL_INFO@%$OLD_DEBIAN_INSTALL_INFO%g
4024 s%@VERSIONING@%$VERSIONING%g
4025 s%@libc_cv_asm_protected_directive@%$libc_cv_asm_protected_directive%g
4026 s%@libc_cv_initfinit_array@%$libc_cv_initfinit_array%g
4027 s%@libc_cv_z_nodelete@%$libc_cv_z_nodelete%g
4028 s%@libc_cv_z_nodlopen@%$libc_cv_z_nodlopen%g
4029 s%@libc_cv_z_initfirst@%$libc_cv_z_initfirst%g
4030 s%@libc_cv_Bgroup@%$libc_cv_Bgroup%g
4031 s%@libc_cv_z_combreloc@%$libc_cv_z_combreloc%g
4032 s%@libc_cv_have_initfini@%$libc_cv_have_initfini%g
4033 s%@no_whole_archive@%$no_whole_archive%g
4034 s%@exceptions@%$exceptions%g
4036 s%@sizeof_long_double@%$sizeof_long_double%g
4037 s%@libc_cv_gcc_unwind_find_fde@%$libc_cv_gcc_unwind_find_fde%g
4038 s%@uname_sysname@%$uname_sysname%g
4039 s%@uname_release@%$uname_release%g
4040 s%@uname_version@%$uname_version%g
4042 s%@old_glibc_headers@%$old_glibc_headers%g
4043 s%@libc_cv_slibdir@%$libc_cv_slibdir%g
4044 s%@libc_cv_localedir@%$libc_cv_localedir%g
4045 s%@libc_cv_sysconfdir@%$libc_cv_sysconfdir%g
4046 s%@libc_cv_rootsbindir@%$libc_cv_rootsbindir%g
4047 s%@use_ldconfig@%$use_ldconfig%g
4048 s%@ldd_rewrite_script@%$ldd_rewrite_script%g
4049 s%@gnu_ld@%$gnu_ld%g
4050 s%@gnu_as@%$gnu_as%g
4053 s%@static@%$static%g
4054 s%@shared@%$shared%g
4055 s%@pic_default@%$pic_default%g
4056 s%@profile@%$profile%g
4057 s%@omitfp@%$omitfp%g
4058 s%@bounded@%$bounded%g
4059 s%@static_nss@%$static_nss%g
4060 s%@nopic_initfini@%$nopic_initfini%g
4061 s%@DEFINES@%$DEFINES%g
4062 s%@linux_doors@%$linux_doors%g
4063 s%@mach_interface_list@%$mach_interface_list%g
4064 s%@VERSION@%$VERSION%g
4065 s%@RELEASE@%$RELEASE%g
4070 cat >> $CONFIG_STATUS <<\EOF
4072 # Split the substitutions into bite-sized pieces for seds with
4073 # small command number limits, like on Digital OSF/1 and HP-UX.
4074 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
4075 ac_file=1 # Number of current file.
4076 ac_beg=1 # First line for current file.
4077 ac_end=$ac_max_sed_cmds # Line after last line for current file.
4080 while $ac_more_lines; do
4081 if test $ac_beg -gt 1; then
4082 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
4084 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
4086 if test ! -s conftest.s$ac_file; then
4088 rm -f conftest.s$ac_file
4090 if test -z "$ac_sed_cmds"; then
4091 ac_sed_cmds="sed -f conftest.s$ac_file"
4093 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
4095 ac_file=`expr $ac_file + 1`
4097 ac_end=`expr $ac_end + $ac_max_sed_cmds`
4100 if test -z "$ac_sed_cmds"; then
4105 cat >> $CONFIG_STATUS <<EOF
4107 CONFIG_FILES=\${CONFIG_FILES-"config.make glibcbug ${config_makefile} ${config_uname}"}
4109 cat >> $CONFIG_STATUS <<\EOF
4110 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
4111 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4113 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
4114 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
4115 *) ac_file_in="${ac_file}.in" ;;
4118 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
4120 # Remove last slash and all that follows it. Not all systems have dirname.
4121 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
4122 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
4123 # The file is in a subdirectory.
4124 test ! -d "$ac_dir" && mkdir "$ac_dir"
4125 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
4126 # A "../" for each directory in $ac_dir_suffix.
4127 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
4129 ac_dir_suffix= ac_dots=
4132 case "$ac_given_srcdir" in
4134 if test -z "$ac_dots"; then top_srcdir=.
4135 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
4136 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
4138 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
4139 top_srcdir="$ac_dots$ac_given_srcdir" ;;
4142 case "$ac_given_INSTALL" in
4143 [/$]*) INSTALL="$ac_given_INSTALL" ;;
4144 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
4147 echo creating "$ac_file"
4149 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
4151 *Makefile*) ac_comsub="1i\\
4152 # $configure_input" ;;
4156 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4158 s%@configure_input@%$configure_input%g
4159 s%@srcdir@%$srcdir%g
4160 s%@top_srcdir@%$top_srcdir%g
4161 s%@INSTALL@%$INSTALL%g
4162 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
4166 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
4167 # NAME is the cpp macro being defined and VALUE is the value it is being given.
4169 # ac_d sets the value in "#define NAME VALUE" lines.
4170 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
4171 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
4174 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
4175 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
4176 ac_uB='\([ ]\)%\1#\2define\3'
4179 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
4180 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
4181 ac_eB='$%\1#\2define\3'
4185 if test "${CONFIG_HEADERS+set}" != set; then
4187 cat >> $CONFIG_STATUS <<EOF
4188 CONFIG_HEADERS="config.h"
4190 cat >> $CONFIG_STATUS <<\EOF
4192 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
4193 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4195 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
4196 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
4197 *) ac_file_in="${ac_file}.in" ;;
4200 echo creating $ac_file
4202 rm -f conftest.frag conftest.in conftest.out
4203 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4204 cat $ac_file_inputs > conftest.in
4208 # Transform confdefs.h into a sed script conftest.vals that substitutes
4209 # the proper values into config.h.in to produce config.h. And first:
4210 # Protect against being on the right side of a sed subst in config.status.
4211 # Protect against being in an unquoted here document in config.status.
4213 cat > conftest.hdr <<\EOF
4216 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
4220 sed -n -f conftest.hdr confdefs.h > conftest.vals
4223 # This sed command replaces #undef with comments. This is necessary, for
4224 # example, in the case of _POSIX_SOURCE, which is predefined and required
4225 # on some systems where configure will not decide to define it.
4226 cat >> conftest.vals <<\EOF
4227 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
4230 # Break up conftest.vals because some shells have a limit on
4231 # the size of here documents, and old seds have small limits too.
4236 ac_lines=`grep -c . conftest.vals`
4237 # grep -c gives empty output for an empty file on some AIX systems.
4238 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
4239 # Write a limited-size here document to conftest.frag.
4240 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
4241 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
4243 sed -f conftest.frag conftest.in > conftest.out
4245 mv conftest.out conftest.in
4247 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
4249 mv conftest.tail conftest.vals
4253 cat >> $CONFIG_STATUS <<\EOF
4254 rm -f conftest.frag conftest.h
4255 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
4256 cat conftest.in >> conftest.h
4258 if cmp -s $ac_file conftest.h 2>/dev/null; then
4259 echo "$ac_file is unchanged"
4262 # Remove last slash and all that follows it. Not all systems have dirname.
4263 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
4264 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
4265 # The file is in a subdirectory.
4266 test ! -d "$ac_dir" && mkdir "$ac_dir"
4269 mv conftest.h $ac_file
4275 cat >> $CONFIG_STATUS <<EOF
4276 ac_sources="`echo $libc_link_sources`"
4277 ac_dests="`echo $libc_link_dests`"
4280 cat >> $CONFIG_STATUS <<\EOF
4281 srcdir=$ac_given_srcdir
4282 while test -n "$ac_sources"; do
4283 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
4284 set $ac_sources; ac_source=$1; shift; ac_sources=$*
4286 echo "linking $srcdir/$ac_source to $ac_dest"
4288 if test ! -r $srcdir/$ac_source; then
4289 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
4293 # Make relative symlinks.
4294 # Remove last slash and all that follows it. Not all systems have dirname.
4295 ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'`
4296 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
4297 # The dest file is in a subdirectory.
4298 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
4299 ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`"
4300 # A "../" for each directory in $ac_dest_dir_suffix.
4301 ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'`
4303 ac_dest_dir_suffix= ac_dots=
4307 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
4308 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
4311 # Make a symlink if possible; otherwise try a hard link.
4312 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
4313 ln $srcdir/$ac_source $ac_dest; then :
4315 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
4319 cat >> $CONFIG_STATUS <<EOF
4320 config_vars='$config_vars'
4322 cat >> $CONFIG_STATUS <<\EOF
4324 case $CONFIG_FILES in *config.make*)
4325 echo "$config_vars" >> config.make;;
4327 test -d bits || mkdir bits
4330 chmod +x $CONFIG_STATUS
4331 rm -fr confdefs* $ac_clean_files
4332 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
4334 if test "$no_recursion" != yes; then
4336 # Remove --cache-file and --srcdir arguments so they do not pile up.
4337 ac_sub_configure_args=
4339 for ac_arg in $ac_configure_args; do
4340 if test -n "$ac_prev"; then
4345 -cache-file | --cache-file | --cache-fil | --cache-fi \
4346 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
4347 ac_prev=cache_file ;;
4348 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
4349 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
4351 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
4353 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
4355 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
4359 for ac_config_dir in $add_ons; do
4361 # Do not complain, so a configure script can configure whichever
4362 # parts of a large source tree are present.
4363 if test ! -d $srcdir/$ac_config_dir; then
4367 echo configuring in $ac_config_dir
4372 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
4374 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
4382 # A "../" for each directory in /$ac_config_dir.
4383 ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
4386 .) # No --srcdir option. We are building in place.
4387 ac_sub_srcdir=$srcdir ;;
4388 /*) # Absolute path.
4389 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
4391 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
4394 # Check for guested configure; otherwise get Cygnus style configure.
4395 if test -f $ac_sub_srcdir/configure; then
4396 ac_sub_configure=$ac_sub_srcdir/configure
4397 elif test -f $ac_sub_srcdir/configure.in; then
4398 ac_sub_configure=$ac_configure
4400 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
4404 # The recursion is here.
4405 if test -n "$ac_sub_configure"; then
4407 # Make the cache file name correct relative to the subdirectory.
4408 case "$cache_file" in
4409 /*) ac_sub_cache_file=$cache_file ;;
4411 ac_sub_cache_file="$ac_dots$cache_file" ;;
4413 case "$ac_given_INSTALL" in
4414 [/$]*) INSTALL="$ac_given_INSTALL" ;;
4415 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
4418 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
4419 # The eval makes quoting arguments work.
4420 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
4423 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }