3 # From configure.in CVSid
14 # Guess values for system-dependent variables and create Makefiles.
15 # Generated automatically using autoconf version 2.12
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-gettext=DIR find GNU gettext source code in DIR (not needed)"
30 --with-fp if using floating-point hardware [default=yes]"
32 --with-binutils=PATH specify location of binutils (as and ld)"
34 --with-elf if using the ELF object format"
36 --without-cvs if CVS should not be used"
38 --enable-libio build in GNU libio instead of GNU stdio"
40 --disable-sanity-checks really do not use threads (should not be used
41 except in special situations) [default=yes]"
43 --enable-static build static library [default=yes]"
45 --enable-shared build shared library [default=yes if GNU ld & ELF]"
47 --enable-profile build profiled library [default=yes]"
49 --enable-omitfp build undebuggable optimized library [default=no]"
51 --enable-bounded build with runtime bounds checking [default=no]"
53 --disable-versioning do not include versioning information in the
54 library objects [default=yes if supported]"
56 --enable-add-ons[=DIR1,DIR2]... configure and build add-ons in DIR1,DIR2,...
57 search for add-ons if no parameter given"
59 --enable-static-nss build static NSS modules [default=no]"
61 # Initialize some variables set by options.
62 # The variables have the same names as the options, with
63 # dashes changed to underlines.
65 cache_file=./config.cache
74 program_transform_name=s,x,x,
82 bindir='${exec_prefix}/bin'
83 sbindir='${exec_prefix}/sbin'
84 libexecdir='${exec_prefix}/libexec'
85 datadir='${prefix}/share'
86 sysconfdir='${prefix}/etc'
87 sharedstatedir='${prefix}/com'
88 localstatedir='${prefix}/var'
89 libdir='${exec_prefix}/lib'
90 includedir='${prefix}/include'
91 oldincludedir='/usr/include'
92 infodir='${prefix}/info'
93 mandir='${prefix}/man'
95 # Initialize some other variables.
98 # Maximum number of lines to put in a shell here document.
105 # If the previous option needs an argument, assign it.
106 if test -n "$ac_prev"; then
107 eval "$ac_prev=\$ac_option"
113 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
117 # Accept the important Cygnus configure options, so we can diagnose typos.
121 -bindir | --bindir | --bindi | --bind | --bin | --bi)
123 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
124 bindir="$ac_optarg" ;;
126 -build | --build | --buil | --bui | --bu)
128 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
129 build="$ac_optarg" ;;
131 -cache-file | --cache-file | --cache-fil | --cache-fi \
132 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
133 ac_prev=cache_file ;;
134 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
135 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
136 cache_file="$ac_optarg" ;;
138 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
140 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
142 datadir="$ac_optarg" ;;
144 -disable-* | --disable-*)
145 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
146 # Reject names that are not valid shell variable names.
147 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
148 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
150 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
151 eval "enable_${ac_feature}=no" ;;
153 -enable-* | --enable-*)
154 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
155 # Reject names that are not valid shell variable names.
156 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
157 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
159 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
164 eval "enable_${ac_feature}='$ac_optarg'" ;;
166 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
167 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
168 | --exec | --exe | --ex)
169 ac_prev=exec_prefix ;;
170 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
171 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
172 | --exec=* | --exe=* | --ex=*)
173 exec_prefix="$ac_optarg" ;;
175 -gas | --gas | --ga | --g)
176 # Obsolete; use --with-gas.
179 -help | --help | --hel | --he)
180 # Omit some internal or obsolete options to make the list less imposing.
181 # This message is too long to be a string in the A/UX 3.1 sh.
183 Usage: configure [options] [host]
184 Options: [defaults in brackets after descriptions]
186 --cache-file=FILE cache test results in FILE
187 --help print this message
188 --no-create do not create output files
189 --quiet, --silent do not print \`checking...' messages
190 --version print the version of autoconf that created configure
191 Directory and file names:
192 --prefix=PREFIX install architecture-independent files in PREFIX
194 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
196 --bindir=DIR user executables in DIR [EPREFIX/bin]
197 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
198 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
199 --datadir=DIR read-only architecture-independent data in DIR
201 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
202 --sharedstatedir=DIR modifiable architecture-independent data in DIR
204 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
205 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
206 --includedir=DIR C header files in DIR [PREFIX/include]
207 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
208 --infodir=DIR info documentation in DIR [PREFIX/info]
209 --mandir=DIR man documentation in DIR [PREFIX/man]
210 --srcdir=DIR find the sources in DIR [configure dir or ..]
211 --program-prefix=PREFIX prepend PREFIX to installed program names
212 --program-suffix=SUFFIX append SUFFIX to installed program names
213 --program-transform-name=PROGRAM
214 run sed PROGRAM on installed program names
218 --build=BUILD configure for building on BUILD [BUILD=HOST]
219 --host=HOST configure for HOST [guessed]
220 --target=TARGET configure for TARGET [TARGET=HOST]
221 Features and packages:
222 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
223 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
224 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
225 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
226 --x-includes=DIR X include files are in DIR
227 --x-libraries=DIR X library files are in DIR
229 if test -n "$ac_help"; then
230 echo "--enable and --with options recognized:$ac_help"
234 -host | --host | --hos | --ho)
236 -host=* | --host=* | --hos=* | --ho=*)
239 -includedir | --includedir | --includedi | --included | --include \
240 | --includ | --inclu | --incl | --inc)
241 ac_prev=includedir ;;
242 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
243 | --includ=* | --inclu=* | --incl=* | --inc=*)
244 includedir="$ac_optarg" ;;
246 -infodir | --infodir | --infodi | --infod | --info | --inf)
248 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
249 infodir="$ac_optarg" ;;
251 -libdir | --libdir | --libdi | --libd)
253 -libdir=* | --libdir=* | --libdi=* | --libd=*)
254 libdir="$ac_optarg" ;;
256 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
257 | --libexe | --libex | --libe)
258 ac_prev=libexecdir ;;
259 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
260 | --libexe=* | --libex=* | --libe=*)
261 libexecdir="$ac_optarg" ;;
263 -localstatedir | --localstatedir | --localstatedi | --localstated \
264 | --localstate | --localstat | --localsta | --localst \
265 | --locals | --local | --loca | --loc | --lo)
266 ac_prev=localstatedir ;;
267 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
268 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
269 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
270 localstatedir="$ac_optarg" ;;
272 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
274 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
275 mandir="$ac_optarg" ;;
278 # Obsolete; use --without-fp.
281 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
285 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
286 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
289 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
290 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
291 | --oldin | --oldi | --old | --ol | --o)
292 ac_prev=oldincludedir ;;
293 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
294 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
295 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
296 oldincludedir="$ac_optarg" ;;
298 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
300 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
301 prefix="$ac_optarg" ;;
303 -program-prefix | --program-prefix | --program-prefi | --program-pref \
304 | --program-pre | --program-pr | --program-p)
305 ac_prev=program_prefix ;;
306 -program-prefix=* | --program-prefix=* | --program-prefi=* \
307 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
308 program_prefix="$ac_optarg" ;;
310 -program-suffix | --program-suffix | --program-suffi | --program-suff \
311 | --program-suf | --program-su | --program-s)
312 ac_prev=program_suffix ;;
313 -program-suffix=* | --program-suffix=* | --program-suffi=* \
314 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
315 program_suffix="$ac_optarg" ;;
317 -program-transform-name | --program-transform-name \
318 | --program-transform-nam | --program-transform-na \
319 | --program-transform-n | --program-transform- \
320 | --program-transform | --program-transfor \
321 | --program-transfo | --program-transf \
322 | --program-trans | --program-tran \
323 | --progr-tra | --program-tr | --program-t)
324 ac_prev=program_transform_name ;;
325 -program-transform-name=* | --program-transform-name=* \
326 | --program-transform-nam=* | --program-transform-na=* \
327 | --program-transform-n=* | --program-transform-=* \
328 | --program-transform=* | --program-transfor=* \
329 | --program-transfo=* | --program-transf=* \
330 | --program-trans=* | --program-tran=* \
331 | --progr-tra=* | --program-tr=* | --program-t=*)
332 program_transform_name="$ac_optarg" ;;
334 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
335 | -silent | --silent | --silen | --sile | --sil)
338 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
340 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
342 sbindir="$ac_optarg" ;;
344 -sharedstatedir | --sharedstatedir | --sharedstatedi \
345 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
346 | --sharedst | --shareds | --shared | --share | --shar \
348 ac_prev=sharedstatedir ;;
349 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
350 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
351 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
353 sharedstatedir="$ac_optarg" ;;
355 -site | --site | --sit)
357 -site=* | --site=* | --sit=*)
360 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
362 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
363 srcdir="$ac_optarg" ;;
365 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
366 | --syscon | --sysco | --sysc | --sys | --sy)
367 ac_prev=sysconfdir ;;
368 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
369 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
370 sysconfdir="$ac_optarg" ;;
372 -target | --target | --targe | --targ | --tar | --ta | --t)
374 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
375 target="$ac_optarg" ;;
377 -v | -verbose | --verbose | --verbos | --verbo | --verb)
380 -version | --version | --versio | --versi | --vers)
381 echo "configure generated by autoconf version 2.12"
385 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
386 # Reject names that are not valid shell variable names.
387 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
388 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
390 ac_package=`echo $ac_package| sed 's/-/_/g'`
395 eval "with_${ac_package}='$ac_optarg'" ;;
397 -without-* | --without-*)
398 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
399 # Reject names that are not valid shell variable names.
400 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
401 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
403 ac_package=`echo $ac_package| sed 's/-/_/g'`
404 eval "with_${ac_package}=no" ;;
407 # Obsolete; use --with-x.
410 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
411 | --x-incl | --x-inc | --x-in | --x-i)
412 ac_prev=x_includes ;;
413 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
414 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
415 x_includes="$ac_optarg" ;;
417 -x-libraries | --x-libraries | --x-librarie | --x-librari \
418 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
419 ac_prev=x_libraries ;;
420 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
421 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
422 x_libraries="$ac_optarg" ;;
424 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
428 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
429 echo "configure: warning: $ac_option: invalid host type" 1>&2
431 if test "x$nonopt" != xNONE; then
432 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
440 if test -n "$ac_prev"; then
441 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
444 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
446 # File descriptor usage:
449 # 2 errors and warnings
450 # 3 some systems may open it to /dev/tty
451 # 4 used on the Kubota Titan
452 # 6 checking for... messages and results
453 # 5 compiler messages saved in config.log
454 if test "$silent" = yes; then
462 This file contains any messages produced by compilers while
463 running configure, to aid debugging if configure makes a mistake.
466 # Strip out --no-create and --no-recursion so they do not pile up.
467 # Also quote any args containing shell metacharacters.
472 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
473 | --no-cr | --no-c) ;;
474 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
475 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
476 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
477 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
478 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
483 # Only set these to C if already set. These must not be set unconditionally
484 # because not all systems understand e.g. LANG=C (notably SCO).
485 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
486 # Non-C LC_CTYPE values break the ctype check.
487 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
488 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
489 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
490 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
492 # confdefs.h avoids OS command line length limits that DEFS can exceed.
493 rm -rf conftest* confdefs.h
494 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
497 # A filename unique to this package, relative to the directory that
498 # configure is in, which we can look for to find out if srcdir is correct.
499 ac_unique_file=include/features.h
501 # Find the source files, if location was not specified.
502 if test -z "$srcdir"; then
503 ac_srcdir_defaulted=yes
504 # Try the directory containing this script, then its parent.
506 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
507 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
509 if test ! -r $srcdir/$ac_unique_file; then
513 ac_srcdir_defaulted=no
515 if test ! -r $srcdir/$ac_unique_file; then
516 if test "$ac_srcdir_defaulted" = yes; then
517 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
519 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
522 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
524 # Prefer explicitly selected file to automatically selected ones.
525 if test -z "$CONFIG_SITE"; then
526 if test "x$prefix" != xNONE; then
527 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
529 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
532 for ac_site_file in $CONFIG_SITE; do
533 if test -r "$ac_site_file"; then
534 echo "loading site script $ac_site_file"
539 if test -r "$cache_file"; then
540 echo "loading cache $cache_file"
543 echo "creating cache $cache_file"
548 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
549 ac_cpp='$CPP $CPPFLAGS'
550 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
551 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
552 cross_compiling=$ac_cv_prog_cc_cross
554 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
555 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
556 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
563 ac_n= ac_c='\c' ac_t=
566 if test -r /vmunix; then
567 kernel_id=`strings /vmunix | grep UNIX`
568 elif test -r /dynix; then
569 kernel_id=`strings /dynix | grep DYNIX`
577 # This will get text that should go into config.make.
580 # Check for a --with-gmp argument and set gmp-srcdir in config.make.
581 # Check whether --with-gmp or --without-gmp was given.
582 if test "${with_gmp+set}" = set; then
585 yes) { echo "configure: error: --with-gmp requires an argument; use --with-gmp=DIRECTORY" 1>&2; exit 1; } ;;
587 *) config_vars="$config_vars
588 gmp-srcdir = $withval" ;;
593 # Check for a --with-gettext argument and set gettext-srcdir in config.make.
594 # Check whether --with-gettext or --without-gettext was given.
595 if test "${with_gettext+set}" = set; then
596 withval="$with_gettext"
597 case "$with_gettext" in
599 { echo "configure: error: --with-gettext requires an argument; use --with-gettext=DIR" 1>&2; exit 1; } ;;
602 config_vars="$config_vars
603 gettext-srcdir = $withval" ;;
609 # Check whether --with-fp or --without-fp was given.
610 if test "${with_fp+set}" = set; then
617 # Check whether --with-binutils or --without-binutils was given.
618 if test "${with_binutils+set}" = set; then
619 withval="$with_binutils"
620 path_binutils=$withval
625 # Check whether --with-elf or --without-elf was given.
626 if test "${with_elf+set}" = set; then
633 # Check whether --with-cvs or --without-cvs was given.
634 if test "${with_cvs+set}" = set; then
643 # Check whether --enable-libio or --disable-libio was given.
644 if test "${enable_libio+set}" = set; then
645 enableval="$enable_libio"
646 if test $enableval = yes; then
656 # Check whether --enable-sanity-checks or --disable-sanity-checks was given.
657 if test "${enable_sanity_checks+set}" = set; then
658 enableval="$enable_sanity_checks"
659 enable_sanity=$enableval
665 # Check whether --enable-static or --disable-static was given.
666 if test "${enable_static+set}" = set; then
667 enableval="$enable_static"
673 # Check whether --enable-shared or --disable-shared was given.
674 if test "${enable_shared+set}" = set; then
675 enableval="$enable_shared"
681 # Check whether --enable-profile or --disable-profile was given.
682 if test "${enable_profile+set}" = set; then
683 enableval="$enable_profile"
689 # Check whether --enable-omitfp or --disable-omitfp was given.
690 if test "${enable_omitfp+set}" = set; then
691 enableval="$enable_omitfp"
697 # Check whether --enable-bounded or --disable-bounded was given.
698 if test "${enable_bounded+set}" = set; then
699 enableval="$enable_bounded"
705 # Check whether --enable-versioning or --disable-versioning was given.
706 if test "${enable_versioning+set}" = set; then
707 enableval="$enable_versioning"
708 enable_versioning=$enableval
710 enable_versioning=yes
714 # Check whether --enable-add-ons or --disable-add-ons was given.
715 if test "${enable_add_ons+set}" = set; then
716 enableval="$enable_add_ons"
718 yes) if test "$srcdir" = "."; then
719 add_ons=`echo */configure | sed -e 's!/configure!!g'`
721 add_ons=`echo $srcdir/*/configure | \
722 sed -e 's!/configure!!g' -e "s!$srcdir/!!g"`
724 *) add_ons=`echo "$enableval" | sed 's/,/ /g'`;;
732 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
733 if test -f $ac_dir/install-sh; then
735 ac_install_sh="$ac_aux_dir/install-sh -c"
737 elif test -f $ac_dir/install.sh; then
739 ac_install_sh="$ac_aux_dir/install.sh -c"
743 if test -z "$ac_aux_dir"; then
744 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
746 ac_config_guess=$ac_aux_dir/config.guess
747 ac_config_sub=$ac_aux_dir/config.sub
748 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
753 if test x"$add_ons" != x; then
754 for f in $add_ons; do
755 # Test whether such a subdir really exists.
756 if test -d $srcdir/$f; then
757 add_ons_pfx="$add_ons_pfx $f/"
759 { echo "configure: error: add-on directory \"$f\" does not exist" 1>&2; exit 1; }
764 # Check whether --enable-static-nss or --disable-static-nss was given.
765 if test "${enable_static_nss+set}" = set; then
766 enableval="$enable_static_nss"
767 static_nss=$enableval
772 if test x"$static_nss" = xyes; then
773 cat >> confdefs.h <<\EOF
774 #define DO_STATIC_NSS 1
780 # Make sure we can run config.sub.
781 if $ac_config_sub sun4 >/dev/null 2>&1; then :
782 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
785 echo $ac_n "checking host system type""... $ac_c" 1>&6
786 echo "configure:787: checking host system type" >&5
789 case "$host_alias" in
793 if host_alias=`$ac_config_guess`; then :
794 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
796 *) host_alias=$nonopt ;;
800 host=`$ac_config_sub $host_alias`
801 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
802 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
803 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
804 echo "$ac_t""$host" 1>&6
807 # The way shlib-versions is used to generate soversions.mk uses a
808 # fairly simplistic model for name recognition that can't distinguish
809 # i486-pc-linux-gnu fully from i486-pc-gnu. So we mutate a $host_os
810 # of `gnu*' here to be `gnu-gnu*' just so that shlib-versions can
811 # tell. This doesn't get used much beyond that, so it's fairly safe.
816 host_os=`echo $host_os | sed -e 's/gnu/gnu-gnu/'`
821 ### I put this here to prevent those annoying emails from people who cannot
822 ### read and try to compile glibc on unsupported platforms. --drepper
824 ### By using the undocumented --enable-hacker-mode option for configure
825 ### one can skip this test to make the configuration not fail for unsupported
828 if test -z "$enable_hacker_mode"; then
829 case "$machine-$host_os" in
830 *-linux* | *-gnu* | arm*-none*)
833 echo "*** The GNU C library is currently not available for this platform."
834 echo "*** So far nobody cared to port it and if there is no volunteer it"
835 echo "*** might never happen. So, if you have interest to see glibc on"
836 echo "*** this platform visit"
837 echo "*** http://www.gnu.org/software/libc/porting.html"
838 echo "*** and join the group of porters"
844 # We keep the original values in `$config_*' and never modify them, so we
845 # can write them unchanged into config.make. Everything else uses
846 # $machine, $vendor, and $os, and changes them whenever convenient.
847 config_machine=$host_cpu config_vendor=$host_vendor config_os=$host_os
849 # Some configurations imply other options.
851 gnu* | linux* | bsd4.4* | netbsd* | freebsd*)
852 # These systems always use GNU tools.
853 gnu_ld=yes gnu_as=yes ;;
856 # i586-linuxaout is mangled into i586-pc-linux-gnuaout
857 linux*ecoff* | linux*aout* | gnu*aout* | gnu*ecoff*)
859 gnu* | linux* | sysv4* | solaris2* | irix6*)
860 # These systems (almost) always use the ELF format.
865 machine=$config_machine
866 vendor=$config_vendor
869 # Expand the configuration machine name into a subdirectory by architecture
870 # type and particular chip.
872 a29k | am29000) base_machine=a29k machine=a29k ;;
873 alpha*) base_machine=alpha machine=alpha/$machine ;;
874 arm*) base_machine=arm machine=arm/$machine ;;
875 c3[012]) base_machine=cx0 machine=cx0/c30 ;;
876 c4[04]) base_machine=cx0 machine=cx0/c40 ;;
877 hppa*) base_machine=hppa machine=hppa/$machine ;;
878 i[3456]86) base_machine=i386 machine=i386/$machine ;;
879 m680?0) base_machine=m68k machine=m68k/$machine ;;
880 m68k) base_machine=m68k machine=m68k/m68020 ;;
881 m88???) base_machine=m88k machine=m88k/$machine ;;
882 m88k) base_machine=m88k machine=m88k/m88100 ;;
883 mips64*) base_machine=mips64 machine=mips/mips64/$machine ;;
884 mips*) base_machine=mips
886 IP22) machine=mips/mips3 ;;
887 *) machine=mips/$machine ,,
890 base_machine=sparc machine=sparc/sparc32 ;;
891 sparcv8 | supersparc | hypersparc)
892 base_machine=sparc machine=sparc/sparc32/sparcv8 ;;
893 sparc64 | ultrasparc)
894 base_machine=sparc machine=sparc/sparc64 ;;
898 if test "$base_machine" = "i386"; then
899 cat >> confdefs.h <<\EOF
900 #define USE_REGPARMS 1
905 # Compute the list of sysdep directories for this configuration.
906 # This can take a while to compute.
907 sysdep_dir=$srcdir/sysdeps
908 echo $ac_n "checking sysdep dirs""... $ac_c" 1>&6
909 echo "configure:910: checking sysdep dirs" >&5
910 # Make sco3.2v4 become sco3.2.4 and sunos4.1.1_U1 become sunos4.1.1.U1.
911 os="`echo $os | sed 's/\([0-9A-Z]\)[v_]\([0-9A-Z]\)/\1.\2/g'`"
916 netbsd* | 386bsd* | freebsd* | bsdi*)
917 base_os=unix/bsd/bsd4.4 ;;
918 osf* | sunos* | ultrix* | newsos* | dynix* | *bsd*)
920 sysv* | isc* | esix* | sco* | minix* | irix4* | linux*)
923 base_os=unix/sysv/irix6/$os ;;
925 base_os=unix/sysv/sysv4 ;;
927 base_os=standalone ;;
932 # For sunos4.1.1, try sunos4.1.1, then sunos4.1, then sunos4, then sunos.
935 while o=`echo $tail | sed 's/\.[^.]*$//'`; test $o != $tail; do
939 o=`echo $tail | sed 's/[0-9]*$//'`
940 if test $o != $tail; then
943 # For linux-gnu, try linux-gnu, then linux.
944 o=`echo $tail | sed 's/-.*$//'`
945 if test $o != $tail; then
949 # For unix/sysv/sysv4, try unix/sysv/sysv4, then unix/sysv, then unix.
952 while b=`echo $tail | sed 's@^\(.*\)/\([^/]*\)$@& \1@'`; test -n "$b"; do
958 # For sparc/sparc9, try sparc/sparc9 and then sparc.
961 while m=`echo $tail | sed 's@^\(.*\)/\([^/]*\)$@& \1@'`; test -n "$m"; do
963 # Prepend the machine's FPU directory unless --without-fp.
964 if test "$with_fp" = yes; then
972 # Find what sysdep directories exist.
974 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
975 for d in $add_ons_pfx ''; do
976 for b in $base ''; do
977 for m0 in $mach ''; do
978 for v in /$vendor ''; do
979 test "$v" = / && continue
980 for o in /$ostry ''; do
981 test "$o" = / && continue
982 for m in $mach ''; do
983 if test "$m0$b$v$o$m"; then
984 try="${d}sysdeps$m0$b$v$o$m"
985 test -n "$enable_debug_configure" &&
986 echo "$0 DEBUG: try $try" >&2
989 *) dest=$srcdir/$try ;;
991 if test -d $dest; then
992 sysnames="$sysnames $try"
993 { test -n "$o" || test -n "$b"; } && os_used=t
994 { test -n "$m" || test -n "$m0"; } && machine_used=t
1005 if test -z "$os_used" && test "$os" != none; then
1006 { echo "configure: error: Operating system $os is not supported." 1>&2; exit 1; }
1008 if test -z "$machine_used" && test "$machine" != none; then
1009 { echo "configure: error: The $machine is not supported." 1>&2; exit 1; }
1012 # We have now validated the configuration.
1015 # If using ELF, look for an `elf' subdirectory of each machine directory.
1016 # We prepend these rather than inserting them whereever the machine appears
1017 # because things specified by the machine's ELF ABI should override
1018 # OS-specific things, and should always be the same for any OS on the
1019 # machine (otherwise what's the point of an ABI?).
1020 if test "$elf" = yes; then
1022 for d in $add_ons_pfx ''; do
1025 *) xsrcdir=$srcdir/ ;;
1028 if test -d $xsrcdir${d}sysdeps$m/elf; then
1029 elf_dirs="$elf_dirs ${d}sysdeps$m/elf"
1033 sysnames="`echo $elf_dirs | sed -e 's,//,/,g'` $sysnames"
1037 # Expand the list of system names into a full list of directories
1038 # from each element's parent name and Implies file (if present).
1041 while test $# -gt 0; do
1045 case " $names " in *" $name "*)
1046 # Already in the list.
1050 # Report each name as we discover it, so there is no long pause in output.
1051 echo $ac_n "$name $ac_c" >&6
1053 name_base=`echo $name | sed -e 's@\(.*sysdeps\)/.*@\1@'`
1057 *) xsrcdir=$srcdir/ ;;
1059 test -n "$enable_debug_configure" &&
1060 echo "DEBUG: name/Implies $xsrcdir$name/Implies" >&2
1062 if test -f $xsrcdir$name/Implies; then
1063 # Collect more names from the `Implies' file (removing comments).
1064 implied_candidate="`sed 's/#.*$//' < $xsrcdir$name/Implies`"
1066 for x in $implied_candidate; do
1067 if test -d $xsrcdir$name_base/$x; then
1068 implied="$implied $name_base/$x";
1070 echo "configure: warning: $name/Implies specifies nonexistent $x" 1>&2
1077 # Add NAME to the list of names.
1078 names="$names $name"
1080 # Find the parent of NAME, using the empty string if it has none.
1081 parent="`echo $name | sed -n -e 's=/[^/]*$==' -e '/sysdeps$/q' -e p`"
1083 # Add the names implied by NAME, and NAME's parent (if it has one), to
1084 # the list of names to be processed (the argument list). We prepend the
1085 # implied names to the list and append the parent. We want implied
1086 # directories to come before further directories inferred from the
1087 # configuration components; this ensures that for sysv4, unix/common
1088 # (implied by unix/sysv/sysv4) comes before unix/sysv (in ostry (here $*)
1090 sysnames="`echo $implied $* $parent`"
1091 test -n "$sysnames" && set $sysnames
1094 # Add the default directories.
1095 sysnames="$names sysdeps/generic"
1097 # The other names were emitted during the scan.
1098 echo "$ac_t""sysdeps/generic" 1>&6
1103 # Find a good install program. We prefer a C program (faster),
1104 # so one script is as good as another. But avoid the broken or
1105 # incompatible versions:
1106 # SysV /etc/install, /usr/sbin/install
1107 # SunOS /usr/etc/install
1108 # IRIX /sbin/install
1110 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1111 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1112 # ./install, which can be erroneously created by make from ./install.sh.
1113 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1114 echo "configure:1115: checking for a BSD compatible install" >&5
1115 if test -z "$INSTALL"; then
1116 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1117 echo $ac_n "(cached) $ac_c" 1>&6
1119 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
1120 for ac_dir in $PATH; do
1121 # Account for people who put trailing slashes in PATH elements.
1123 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1125 # OSF1 and SCO ODT 3.0 have their own names for install.
1126 for ac_prog in ginstall installbsd scoinst install; do
1127 if test -f $ac_dir/$ac_prog; then
1128 if test $ac_prog = install &&
1129 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1130 # AIX install. It has an incompatible calling convention.
1131 # OSF/1 installbsd also uses dspmsg, but is usable.
1134 ac_cv_path_install="$ac_dir/$ac_prog -c"
1145 if test "${ac_cv_path_install+set}" = set; then
1146 INSTALL="$ac_cv_path_install"
1148 # As a last resort, use the slow shell script. We don't cache a
1149 # path for INSTALL within a source directory, because that will
1150 # break other packages using the cache if that directory is
1151 # removed, or if the path is relative.
1152 INSTALL="$ac_install_sh"
1155 echo "$ac_t""$INSTALL" 1>&6
1157 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1158 # It thinks the first close brace ends the variable substitution.
1159 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1161 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1163 if test "$INSTALL" = "${srcdir}/install-sh -c"; then
1164 # The makefiles need to use a different form to find it in $srcdir.
1165 INSTALL='\$(..)./install-sh -c'
1167 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1168 echo "configure:1169: checking whether ln -s works" >&5
1169 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1170 echo $ac_n "(cached) $ac_c" 1>&6
1173 if ln -s X conftestdata 2>/dev/null
1176 ac_cv_prog_LN_S="ln -s"
1181 LN_S="$ac_cv_prog_LN_S"
1182 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1183 echo "$ac_t""yes" 1>&6
1185 echo "$ac_t""no" 1>&6
1189 # These programs are version sensitive.
1190 echo $ac_n "checking build system type""... $ac_c" 1>&6
1191 echo "configure:1192: checking build system type" >&5
1194 case "$build_alias" in
1197 NONE) build_alias=$host_alias ;;
1198 *) build_alias=$nonopt ;;
1202 build=`$ac_config_sub $build_alias`
1203 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1204 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1205 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1206 echo "$ac_t""$build" 1>&6
1208 if test $host != $build; then
1209 ac_tool_prefix=${host_alias}-
1214 for ac_prog in ${ac_tool_prefix}gcc ${ac_tool_prefix}cc
1216 # Extract the first word of "$ac_prog", so it can be a program name with args.
1217 set dummy $ac_prog; ac_word=$2
1218 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1219 echo "configure:1220: checking for $ac_word" >&5
1220 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1221 echo $ac_n "(cached) $ac_c" 1>&6
1223 if test -n "$CC"; then
1224 ac_cv_prog_CC="$CC" # Let the user override the test.
1226 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1227 for ac_dir in $PATH; do
1228 test -z "$ac_dir" && ac_dir=.
1229 if test -f $ac_dir/$ac_word; then
1230 ac_cv_prog_CC="$ac_prog"
1238 if test -n "$CC"; then
1239 echo "$ac_t""$CC" 1>&6
1241 echo "$ac_t""no" 1>&6
1244 test -n "$CC" && break
1247 if test -z "$CC"; then
1250 # Found it, now check the version.
1251 echo $ac_n "checking version of $CC""... $ac_c" 1>&6
1252 echo "configure:1253: checking version of $CC" >&5
1253 ac_prog_version=`$CC -v 2>&1 | sed -n 's/^.*version \([egcst0-9.-]*\).*$/\1/p'`
1254 case $ac_prog_version in
1255 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
1256 egcs-2.91.*|egcs-2.90.2[789]|egcs-2.90.[3-9][0-9]|*2.8.[1-9]*|*2.9.[0-9]*)
1257 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
1258 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
1261 echo "$ac_t""$ac_prog_version" 1>&6
1263 if test $ac_verc_fail = yes; then
1267 for ac_prog in make gmake
1269 # Extract the first word of "$ac_prog", so it can be a program name with args.
1270 set dummy $ac_prog; ac_word=$2
1271 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1272 echo "configure:1273: checking for $ac_word" >&5
1273 if eval "test \"`echo '$''{'ac_cv_prog_MAKE'+set}'`\" = set"; then
1274 echo $ac_n "(cached) $ac_c" 1>&6
1276 if test -n "$MAKE"; then
1277 ac_cv_prog_MAKE="$MAKE" # Let the user override the test.
1279 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1280 for ac_dir in $PATH; do
1281 test -z "$ac_dir" && ac_dir=.
1282 if test -f $ac_dir/$ac_word; then
1283 ac_cv_prog_MAKE="$ac_prog"
1290 MAKE="$ac_cv_prog_MAKE"
1291 if test -n "$MAKE"; then
1292 echo "$ac_t""$MAKE" 1>&6
1294 echo "$ac_t""no" 1>&6
1297 test -n "$MAKE" && break
1300 if test -z "$MAKE"; then
1303 # Found it, now check the version.
1304 echo $ac_n "checking version of $MAKE""... $ac_c" 1>&6
1305 echo "configure:1306: checking version of $MAKE" >&5
1306 ac_prog_version=`$MAKE --version 2>&1 | sed -n 's/^.*version \([0-9][0-9.]*\), by.*$/\1/p'`
1307 case $ac_prog_version in
1308 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
1309 3.75 | 3.76.[1-9] | 3.7[789]* | 3.[89]*)
1310 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
1311 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
1314 echo "$ac_t""$ac_prog_version" 1>&6
1316 if test $ac_verc_fail = yes; then
1321 for ac_prog in msgfmt gmsgfmt
1323 # Extract the first word of "$ac_prog", so it can be a program name with args.
1324 set dummy $ac_prog; ac_word=$2
1325 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1326 echo "configure:1327: checking for $ac_word" >&5
1327 if eval "test \"`echo '$''{'ac_cv_prog_MSGFMT'+set}'`\" = set"; then
1328 echo $ac_n "(cached) $ac_c" 1>&6
1330 if test -n "$MSGFMT"; then
1331 ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
1333 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1334 for ac_dir in $PATH; do
1335 test -z "$ac_dir" && ac_dir=.
1336 if test -f $ac_dir/$ac_word; then
1337 ac_cv_prog_MSGFMT="$ac_prog"
1344 MSGFMT="$ac_cv_prog_MSGFMT"
1345 if test -n "$MSGFMT"; then
1346 echo "$ac_t""$MSGFMT" 1>&6
1348 echo "$ac_t""no" 1>&6
1351 test -n "$MSGFMT" && break
1354 if test -z "$MSGFMT"; then
1357 # Found it, now check the version.
1358 echo $ac_n "checking version of $MSGFMT""... $ac_c" 1>&6
1359 echo "configure:1360: checking version of $MSGFMT" >&5
1360 ac_prog_version=`$MSGFMT --version 2>&1 | sed -n 's/^.*GNU gettext.*\([0-9][0-9]*\.[0-9]*\).*$/\1/p'`
1361 case $ac_prog_version in
1362 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
1363 0.[1-9][0-9] | [1-9].*)
1364 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
1365 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
1368 echo "$ac_t""$ac_prog_version" 1>&6
1370 if test $ac_verc_fail = yes; then
1371 MSGFMT=: aux_missing=t
1374 for ac_prog in makeinfo
1376 # Extract the first word of "$ac_prog", so it can be a program name with args.
1377 set dummy $ac_prog; ac_word=$2
1378 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1379 echo "configure:1380: checking for $ac_word" >&5
1380 if eval "test \"`echo '$''{'ac_cv_prog_MAKEINFO'+set}'`\" = set"; then
1381 echo $ac_n "(cached) $ac_c" 1>&6
1383 if test -n "$MAKEINFO"; then
1384 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
1386 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1387 for ac_dir in $PATH; do
1388 test -z "$ac_dir" && ac_dir=.
1389 if test -f $ac_dir/$ac_word; then
1390 ac_cv_prog_MAKEINFO="$ac_prog"
1397 MAKEINFO="$ac_cv_prog_MAKEINFO"
1398 if test -n "$MAKEINFO"; then
1399 echo "$ac_t""$MAKEINFO" 1>&6
1401 echo "$ac_t""no" 1>&6
1404 test -n "$MAKEINFO" && break
1407 if test -z "$MAKEINFO"; then
1410 # Found it, now check the version.
1411 echo $ac_n "checking version of $MAKEINFO""... $ac_c" 1>&6
1412 echo "configure:1413: checking version of $MAKEINFO" >&5
1413 ac_prog_version=`$MAKEINFO --version 2>&1 | sed -n 's/^.*GNU texinfo \([0-9][0-9.]*\).*$/\1/p'`
1414 case $ac_prog_version in
1415 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
1416 3.1[1-9] | 3.[2-9][0-9])
1417 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
1418 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
1421 echo "$ac_t""$ac_prog_version" 1>&6
1423 if test $ac_verc_fail = yes; then
1424 MAKEINFO=: aux_missing=t
1428 if test -n "$critic_missing"; then
1429 { echo "configure: error:
1430 *** Some critical program is missing or too old.
1431 *** Check the INSTALL file for required versions." 1>&2; exit 1; }
1434 test -n "$aux_missing" && echo "configure: warning:
1435 *** An auxiliary program is missing or too old;
1436 *** some features will be disabled.
1437 *** Check the INSTALL file for required versions." 1>&2
1440 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1441 echo "configure:1442: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1442 if eval "test \"`echo '$''{'ac_cv_prog_cc_works'+set}'`\" = set"; then
1443 echo $ac_n "(cached) $ac_c" 1>&6
1447 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1448 ac_cpp='$CPP $CPPFLAGS'
1449 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1450 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1451 cross_compiling=$ac_cv_prog_cc_cross
1453 cat > conftest.$ac_ext <<EOF
1454 #line 1455 "configure"
1455 #include "confdefs.h"
1458 if { (eval echo configure:1459: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1459 ac_cv_prog_cc_works=yes
1460 # If we can't run a trivial program, we are probably using a cross compiler.
1461 if (./conftest; exit) 2>/dev/null; then
1462 ac_cv_prog_cc_cross=no
1464 ac_cv_prog_cc_cross=yes
1467 echo "configure: failed program was:" >&5
1468 cat conftest.$ac_ext >&5
1469 ac_cv_prog_cc_works=no
1475 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1476 if test $ac_cv_prog_cc_works = no; then
1478 ac_cv_prog_cc_cross=yes
1482 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1483 echo "configure:1484: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1484 if eval "test \"`echo '$''{'ac_cv_prog_cc_cross'+set}'`\" = set"; then
1485 echo $ac_n "(cached) $ac_c" 1>&6
1490 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1492 cross_compiling=$ac_cv_prog_cc_cross
1494 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1495 echo "configure:1496: checking whether we are using GNU C" >&5
1496 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1497 echo $ac_n "(cached) $ac_c" 1>&6
1499 cat > conftest.c <<EOF
1504 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1505: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1511 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1512 if test $ac_cv_prog_gcc != yes; then
1513 { echo "configure: error: GNU libc must be compiled using GNU CC" 1>&2; exit 1; }
1516 echo $ac_n "checking build system type""... $ac_c" 1>&6
1517 echo "configure:1518: checking build system type" >&5
1520 case "$build_alias" in
1523 NONE) build_alias=$host_alias ;;
1524 *) build_alias=$nonopt ;;
1528 build=`$ac_config_sub $build_alias`
1529 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1530 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1531 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1532 echo "$ac_t""$build" 1>&6
1534 if test $host != $build; then
1535 for ac_prog in gcc cc
1537 # Extract the first word of "$ac_prog", so it can be a program name with args.
1538 set dummy $ac_prog; ac_word=$2
1539 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1540 echo "configure:1541: checking for $ac_word" >&5
1541 if eval "test \"`echo '$''{'ac_cv_prog_BUILD_CC'+set}'`\" = set"; then
1542 echo $ac_n "(cached) $ac_c" 1>&6
1544 if test -n "$BUILD_CC"; then
1545 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
1547 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1548 for ac_dir in $PATH; do
1549 test -z "$ac_dir" && ac_dir=.
1550 if test -f $ac_dir/$ac_word; then
1551 ac_cv_prog_BUILD_CC="$ac_prog"
1558 BUILD_CC="$ac_cv_prog_BUILD_CC"
1559 if test -n "$BUILD_CC"; then
1560 echo "$ac_t""$BUILD_CC" 1>&6
1562 echo "$ac_t""no" 1>&6
1565 test -n "$BUILD_CC" && break
1570 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1571 echo "configure:1572: checking how to run the C preprocessor" >&5
1572 # On Suns, sometimes $CPP names a directory.
1573 if test -n "$CPP" && test -d "$CPP"; then
1576 if test -z "$CPP"; then
1577 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1578 echo $ac_n "(cached) $ac_c" 1>&6
1580 # This must be in double quotes, not single quotes, because CPP may get
1581 # substituted into the Makefile and "${CC-cc}" will confuse make.
1583 # On the NeXT, cc -E runs the code through the compiler's parser,
1584 # not just through cpp.
1585 cat > conftest.$ac_ext <<EOF
1586 #line 1587 "configure"
1587 #include "confdefs.h"
1591 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1592 { (eval echo configure:1593: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1593 ac_err=`grep -v '^ *+' conftest.out`
1594 if test -z "$ac_err"; then
1598 echo "configure: failed program was:" >&5
1599 cat conftest.$ac_ext >&5
1601 CPP="${CC-cc} -E -traditional-cpp"
1602 cat > conftest.$ac_ext <<EOF
1603 #line 1604 "configure"
1604 #include "confdefs.h"
1608 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1609 { (eval echo configure:1610: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1610 ac_err=`grep -v '^ *+' conftest.out`
1611 if test -z "$ac_err"; then
1615 echo "configure: failed program was:" >&5
1616 cat conftest.$ac_ext >&5
1623 ac_cv_prog_CPP="$CPP"
1625 CPP="$ac_cv_prog_CPP"
1627 ac_cv_prog_CPP="$CPP"
1629 echo "$ac_t""$CPP" 1>&6
1631 # Was a --with-binutils option given?
1632 if test -n "$path_binutils"; then
1633 # Make absolute; ensure a single trailing slash.
1634 path_binutils=`(cd $path_binutils; pwd) | sed 's%/*$%/%'`
1635 CC="$CC -B$path_binutils"
1637 AS=`$CC -print-file-name=as`
1638 LD=`$CC -print-file-name=ld`
1640 # Determine whether we are using GNU binutils.
1641 echo $ac_n "checking whether $AS is GNU as""... $ac_c" 1>&6
1642 echo "configure:1643: checking whether $AS is GNU as" >&5
1643 if eval "test \"`echo '$''{'libc_cv_prog_as_gnu'+set}'`\" = set"; then
1644 echo $ac_n "(cached) $ac_c" 1>&6
1646 # Most GNU programs take a -v and spit out some text including
1647 # the word 'GNU'. Some try to read stdin, so give them /dev/null.
1648 if $AS -v </dev/null 2>&1 | grep GNU > /dev/null 2>&1; then
1649 libc_cv_prog_as_gnu=yes
1651 libc_cv_prog_as_gnu=no
1655 echo "$ac_t""$libc_cv_prog_as_gnu" 1>&6
1657 gnu_as=$libc_cv_prog_as_gnu
1659 echo $ac_n "checking whether $LD is GNU ld""... $ac_c" 1>&6
1660 echo "configure:1661: checking whether $LD is GNU ld" >&5
1661 if eval "test \"`echo '$''{'libc_cv_prog_ld_gnu'+set}'`\" = set"; then
1662 echo $ac_n "(cached) $ac_c" 1>&6
1664 # Most GNU programs take a -v and spit out some text including
1665 # the word 'GNU'. Some try to read stdin, so give them /dev/null.
1666 if $LD -v </dev/null 2>&1 | grep GNU > /dev/null 2>&1; then
1667 libc_cv_prog_ld_gnu=yes
1669 libc_cv_prog_ld_gnu=no
1673 echo "$ac_t""$libc_cv_prog_ld_gnu" 1>&6
1674 gnu_ld=$libc_cv_prog_ld_gnu
1676 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
1677 set dummy ${ac_tool_prefix}ar; ac_word=$2
1678 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1679 echo "configure:1680: checking for $ac_word" >&5
1680 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1681 echo $ac_n "(cached) $ac_c" 1>&6
1683 if test -n "$AR"; then
1684 ac_cv_prog_AR="$AR" # Let the user override the test.
1686 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1687 for ac_dir in $PATH; do
1688 test -z "$ac_dir" && ac_dir=.
1689 if test -f $ac_dir/$ac_word; then
1690 ac_cv_prog_AR="${ac_tool_prefix}ar"
1695 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
1699 if test -n "$AR"; then
1700 echo "$ac_t""$AR" 1>&6
1702 echo "$ac_t""no" 1>&6
1707 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1708 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1709 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1710 echo "configure:1711: checking for $ac_word" >&5
1711 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1712 echo $ac_n "(cached) $ac_c" 1>&6
1714 if test -n "$RANLIB"; then
1715 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1717 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1718 for ac_dir in $PATH; do
1719 test -z "$ac_dir" && ac_dir=.
1720 if test -f $ac_dir/$ac_word; then
1721 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1728 RANLIB="$ac_cv_prog_RANLIB"
1729 if test -n "$RANLIB"; then
1730 echo "$ac_t""$RANLIB" 1>&6
1732 echo "$ac_t""no" 1>&6
1736 if test -z "$ac_cv_prog_RANLIB"; then
1737 if test -n "$ac_tool_prefix"; then
1738 # Extract the first word of "ranlib", so it can be a program name with args.
1739 set dummy ranlib; ac_word=$2
1740 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1741 echo "configure:1742: checking for $ac_word" >&5
1742 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1743 echo $ac_n "(cached) $ac_c" 1>&6
1745 if test -n "$RANLIB"; then
1746 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1748 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1749 for ac_dir in $PATH; do
1750 test -z "$ac_dir" && ac_dir=.
1751 if test -f $ac_dir/$ac_word; then
1752 ac_cv_prog_RANLIB="ranlib"
1757 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1760 RANLIB="$ac_cv_prog_RANLIB"
1761 if test -n "$RANLIB"; then
1762 echo "$ac_t""$RANLIB" 1>&6
1764 echo "$ac_t""no" 1>&6
1772 # Extract the first word of "${ac_tool_prefix}mig", so it can be a program name with args.
1773 set dummy ${ac_tool_prefix}mig; ac_word=$2
1774 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1775 echo "configure:1776: checking for $ac_word" >&5
1776 if eval "test \"`echo '$''{'ac_cv_prog_MIG'+set}'`\" = set"; then
1777 echo $ac_n "(cached) $ac_c" 1>&6
1779 if test -n "$MIG"; then
1780 ac_cv_prog_MIG="$MIG" # Let the user override the test.
1782 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1783 for ac_dir in $PATH; do
1784 test -z "$ac_dir" && ac_dir=.
1785 if test -f $ac_dir/$ac_word; then
1786 ac_cv_prog_MIG="${ac_tool_prefix}mig"
1791 test -z "$ac_cv_prog_MIG" && ac_cv_prog_MIG="mig"
1794 MIG="$ac_cv_prog_MIG"
1795 if test -n "$MIG"; then
1796 echo "$ac_t""$MIG" 1>&6
1798 echo "$ac_t""no" 1>&6
1804 # check if ar takes S
1805 echo $ac_n "checking for ar S""... $ac_c" 1>&6
1806 echo "configure:1807: checking for ar S" >&5
1807 if eval "test \"`echo '$''{'libc_cv_ar_S'+set}'`\" = set"; then
1808 echo $ac_n "(cached) $ac_c" 1>&6
1814 if { ac_try='${AR-ar} rcuS $tmplib $tmpo > /dev/null 2>&1'; { (eval echo configure:1815: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
1822 echo "$ac_t""$libc_cv_ar_S" 1>&6
1824 # Test if LD_LIBRARY_PATH contains the notation for the current directory
1825 # since this would lead to problems installing/building glibc.
1826 # LD_LIBRARY_PATH contains the current directory if one of the following
1828 # - one of the terminals (":" and ";") is the first or last sign
1829 # - two terminals occur directly after each other
1830 # - the path contains an element with a dot in it
1831 echo $ac_n "checking LD_LIBRARY_PATH variable""... $ac_c" 1>&6
1832 echo "configure:1833: checking LD_LIBRARY_PATH variable" >&5
1833 case ${LD_LIBRARY_PATH} in
1834 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
1835 ld_library_path_setting="contains current directory"
1838 ld_library_path_setting="ok"
1841 echo "$ac_t""$ld_library_path_setting" 1>&6
1842 if test "$ld_library_path_setting" != "ok"; then
1843 { echo "configure: error:
1844 *** LD_LIBRARY_PATH shouldn't contain the current directory when
1845 *** building glibc. Please change the environment variable
1846 *** and run configure again." 1>&2; exit 1; }
1849 # Extract the first word of "bash", so it can be a program name with args.
1850 set dummy bash; ac_word=$2
1851 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1852 echo "configure:1853: checking for $ac_word" >&5
1853 if eval "test \"`echo '$''{'ac_cv_path_BASH'+set}'`\" = set"; then
1854 echo $ac_n "(cached) $ac_c" 1>&6
1858 ac_cv_path_BASH="$BASH" # Let the user override the test with a path.
1861 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1862 for ac_dir in $PATH; do
1863 test -z "$ac_dir" && ac_dir=.
1864 if test -f $ac_dir/$ac_word; then
1865 ac_cv_path_BASH="$ac_dir/$ac_word"
1870 test -z "$ac_cv_path_BASH" && ac_cv_path_BASH="no"
1874 BASH="$ac_cv_path_BASH"
1875 if test -n "$BASH"; then
1876 echo "$ac_t""$BASH" 1>&6
1878 echo "$ac_t""no" 1>&6
1881 if test "$BASH" != no &&
1882 $BASH -c 'test "$BASH_VERSINFO" \
1883 && test "$BASH_VERSINFO" -ge 2 >&/dev/null'; then
1884 libc_cv_have_bash2=yes
1886 libc_cv_have_bash2=no
1890 if test "$BASH" = no; then
1891 # Extract the first word of "ksh", so it can be a program name with args.
1892 set dummy ksh; ac_word=$2
1893 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1894 echo "configure:1895: checking for $ac_word" >&5
1895 if eval "test \"`echo '$''{'ac_cv_path_KSH'+set}'`\" = set"; then
1896 echo $ac_n "(cached) $ac_c" 1>&6
1900 ac_cv_path_KSH="$KSH" # Let the user override the test with a path.
1903 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1904 for ac_dir in $PATH; do
1905 test -z "$ac_dir" && ac_dir=.
1906 if test -f $ac_dir/$ac_word; then
1907 ac_cv_path_KSH="$ac_dir/$ac_word"
1912 test -z "$ac_cv_path_KSH" && ac_cv_path_KSH="no"
1916 KSH="$ac_cv_path_KSH"
1917 if test -n "$KSH"; then
1918 echo "$ac_t""$KSH" 1>&6
1920 echo "$ac_t""no" 1>&6
1923 if test "$KSH" = no; then
1926 libc_cv_have_ksh=yes
1931 libc_cv_have_ksh=yes
1937 # Extract the first word of "$ac_prog", so it can be a program name with args.
1938 set dummy $ac_prog; ac_word=$2
1939 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1940 echo "configure:1941: checking for $ac_word" >&5
1941 if eval "test \"`echo '$''{'ac_cv_path_PERL'+set}'`\" = set"; then
1942 echo $ac_n "(cached) $ac_c" 1>&6
1946 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
1949 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1950 for ac_dir in $PATH; do
1951 test -z "$ac_dir" && ac_dir=.
1952 if test -f $ac_dir/$ac_word; then
1953 ac_cv_path_PERL="$ac_dir/$ac_word"
1961 PERL="$ac_cv_path_PERL"
1962 if test -n "$PERL"; then
1963 echo "$ac_t""$PERL" 1>&6
1965 echo "$ac_t""no" 1>&6
1968 test -n "$PERL" && break
1970 test -n "$PERL" || PERL="no"
1974 echo $ac_n "checking for signed size_t type""... $ac_c" 1>&6
1975 echo "configure:1976: checking for signed size_t type" >&5
1976 if eval "test \"`echo '$''{'libc_cv_signed_size_t'+set}'`\" = set"; then
1977 echo $ac_n "(cached) $ac_c" 1>&6
1979 echo '#include <stddef.h>
1980 FOOBAR __SIZE_TYPE__ FOOBAR' > conftest.c
1981 if eval "$ac_cpp conftest.c 2>/dev/null" \
1982 | grep '^FOOBAR.*unsigned.*FOOBAR$' >/dev/null; then
1983 libc_cv_signed_size_t=no
1985 libc_cv_signed_size_t=yes
1990 echo "$ac_t""$libc_cv_signed_size_t" 1>&6
1991 if test $libc_cv_signed_size_t = yes; then
1992 cat >> confdefs.h <<\EOF
1993 #undef __SIZE_TYPE__
1994 #define __SIZE_TYPE__ unsigned
1998 echo $ac_n "checking for libc-friendly stddef.h""... $ac_c" 1>&6
1999 echo "configure:2000: checking for libc-friendly stddef.h" >&5
2000 if eval "test \"`echo '$''{'libc_cv_friendly_stddef'+set}'`\" = set"; then
2001 echo $ac_n "(cached) $ac_c" 1>&6
2003 cat > conftest.$ac_ext <<EOF
2004 #line 2005 "configure"
2005 #include "confdefs.h"
2006 #define __need_size_t
2007 #define __need_wchar_t
2012 size_t size; wchar_t wchar;
2014 #error stddef.h ignored __need_*
2016 if (&size == NULL || &wchar == NULL) abort ();
2019 if { (eval echo configure:2020: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2021 libc_cv_friendly_stddef=yes
2023 echo "configure: failed program was:" >&5
2024 cat conftest.$ac_ext >&5
2026 libc_cv_friendly_stddef=no
2031 echo "$ac_t""$libc_cv_friendly_stddef" 1>&6
2032 if test $libc_cv_friendly_stddef = yes; then
2033 config_vars="$config_vars
2034 override stddef.h = # The installed <stddef.h> seems to be libc-friendly."
2037 echo $ac_n "checking whether we need to use -P to assemble .S files""... $ac_c" 1>&6
2038 echo "configure:2039: checking whether we need to use -P to assemble .S files" >&5
2039 if eval "test \"`echo '$''{'libc_cv_need_minus_P'+set}'`\" = set"; then
2040 echo $ac_n "(cached) $ac_c" 1>&6
2042 cat > conftest.S <<EOF
2043 #include "confdefs.h"
2044 /* Nothing whatsoever. */
2046 if ${CC-cc} $CFLAGS -c conftest.S 2>/dev/null; then
2047 libc_cv_need_minus_P=no
2049 libc_cv_need_minus_P=yes
2054 echo "$ac_t""$libc_cv_need_minus_P" 1>&6
2055 if test $libc_cv_need_minus_P = yes; then
2056 config_vars="$config_vars
2057 asm-CPPFLAGS = -P # The assembler can't grok cpp's # line directives."
2060 echo $ac_n "checking for assembler global-symbol directive""... $ac_c" 1>&6
2061 echo "configure:2062: checking for assembler global-symbol directive" >&5
2062 if eval "test \"`echo '$''{'libc_cv_asm_global_directive'+set}'`\" = set"; then
2063 echo $ac_n "(cached) $ac_c" 1>&6
2065 libc_cv_asm_global_directive=UNKNOWN
2066 for ac_globl in .globl .global; do
2067 cat > conftest.s <<EOF
2072 if ${CC-cc} $CFLAGS -c conftest.s 2>/dev/null; then
2073 libc_cv_asm_global_directive=${ac_globl}
2076 test $libc_cv_asm_global_directive != UNKNOWN && break
2080 echo "$ac_t""$libc_cv_asm_global_directive" 1>&6
2081 if test $libc_cv_asm_global_directive = UNKNOWN; then
2082 { echo "configure: error: cannot determine asm global directive" 1>&2; exit 1; }
2084 cat >> confdefs.h <<EOF
2085 #define ASM_GLOBAL_DIRECTIVE ${libc_cv_asm_global_directive}
2090 echo $ac_n "checking for .set assembler directive""... $ac_c" 1>&6
2091 echo "configure:2092: checking for .set assembler directive" >&5
2092 if eval "test \"`echo '$''{'libc_cv_asm_set_directive'+set}'`\" = set"; then
2093 echo $ac_n "(cached) $ac_c" 1>&6
2095 cat > conftest.s <<EOF
2098 .set glibc_conftest_frobozz,foo
2099 $libc_cv_asm_global_directive glibc_conftest_frobozz
2101 # The alpha-dec-osf1 assembler gives only a warning for `.set'
2102 # (but it doesn't work), so we must do a linking check to be sure.
2103 cat > conftest1.c <<\EOF
2104 extern int glibc_conftest_frobozz;
2105 main () { printf ("%d\n", glibc_conftest_frobozz); }
2107 if ${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \
2108 -o conftest conftest.s conftest1.c 1>&5 2>&5; then
2109 libc_cv_asm_set_directive=yes
2111 libc_cv_asm_set_directive=no
2116 echo "$ac_t""$libc_cv_asm_set_directive" 1>&6
2117 if test $libc_cv_asm_set_directive = yes; then
2118 cat >> confdefs.h <<\EOF
2119 #define HAVE_ASM_SET_DIRECTIVE 1
2124 echo $ac_n "checking for .symver assembler directive""... $ac_c" 1>&6
2125 echo "configure:2126: checking for .symver assembler directive" >&5
2126 if eval "test \"`echo '$''{'libc_cv_asm_symver_directive'+set}'`\" = set"; then
2127 echo $ac_n "(cached) $ac_c" 1>&6
2129 cat > conftest.s <<EOF
2132 .symver _sym,sym@VERS
2134 if ${CC-cc} -c $CFLAGS $CPPFLAGS conftest.s 1>&5 2>&5; then
2135 libc_cv_asm_symver_directive=yes
2137 libc_cv_asm_symver_directive=no
2142 echo "$ac_t""$libc_cv_asm_symver_directive" 1>&6
2143 echo $ac_n "checking for ld --version-script""... $ac_c" 1>&6
2144 echo "configure:2145: checking for ld --version-script" >&5
2145 if eval "test \"`echo '$''{'libc_cv_ld_version_script_option'+set}'`\" = set"; then
2146 echo $ac_n "(cached) $ac_c" 1>&6
2148 if test $libc_cv_asm_symver_directive = yes; then
2149 cat > conftest.s <<EOF
2152 .symver _sym,sym@VERS
2154 cat > conftest.map <<EOF
2163 if ${CC-cc} -c $CFLAGS $CPPFLAGS conftest.s 1>&5 2>&5; then
2164 if { ac_try='${CC-cc} $CFLAGS -shared -o conftest.so conftest.o
2165 -nostartfiles -nostdlib
2166 -Wl,--version-script,conftest.map
2167 1>&5'; { (eval echo configure:2168: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; };
2169 libc_cv_ld_version_script_option=yes
2171 libc_cv_ld_version_script_option=no
2174 libc_cv_ld_version_script_option=no
2177 libc_cv_ld_version_script_option=no
2182 echo "$ac_t""$libc_cv_ld_version_script_option" 1>&6
2183 if test $libc_cv_asm_symver_directive = yes &&
2184 test $libc_cv_ld_version_script_option = yes &&
2185 test $enable_versioning = yes; then
2187 cat >> confdefs.h <<\EOF
2188 #define DO_VERSIONING 1
2196 if test $VERSIONING = no; then
2198 *** WARNING: You should not compile GNU libc without versioning. Not using
2199 *** versioning will introduce incompatibilities so that old binaries
2200 *** will not run anymore.
2201 *** For versioning you need recent binutils (binutils-2.8.1.0.17 or newer)."
2203 if test $elf = yes; then
2204 echo $ac_n "checking for .previous assembler directive""... $ac_c" 1>&6
2205 echo "configure:2206: checking for .previous assembler directive" >&5
2206 if eval "test \"`echo '$''{'libc_cv_asm_previous_directive'+set}'`\" = set"; then
2207 echo $ac_n "(cached) $ac_c" 1>&6
2209 cat > conftest.s <<EOF
2210 .section foo_section
2213 if { ac_try='${CC-cc} -c $CFLAGS conftest.s 1>&5'; { (eval echo configure:2214: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
2214 libc_cv_asm_previous_directive=yes
2216 libc_cv_asm_previous_directive=no
2221 echo "$ac_t""$libc_cv_asm_previous_directive" 1>&6
2222 if test $libc_cv_asm_previous_directive = yes; then
2223 cat >> confdefs.h <<\EOF
2224 #define HAVE_ASM_PREVIOUS_DIRECTIVE 1
2228 echo $ac_n "checking for .popsection assembler directive""... $ac_c" 1>&6
2229 echo "configure:2230: checking for .popsection assembler directive" >&5
2230 if eval "test \"`echo '$''{'libc_cv_asm_popsection_directive'+set}'`\" = set"; then
2231 echo $ac_n "(cached) $ac_c" 1>&6
2233 cat > conftest.s <<EOF
2234 .pushsection foo_section
2237 if { ac_try='${CC-cc} -c $CFLAGS conftest.s 1>&5'; { (eval echo configure:2238: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
2238 libc_cv_asm_popsection_directive=yes
2240 libc_cv_asm_popsection_directive=no
2245 echo "$ac_t""$libc_cv_asm_popsection_directive" 1>&6
2246 if test $libc_cv_asm_popsection_directive = yes; then
2247 cat >> confdefs.h <<\EOF
2248 #define HAVE_ASM_POPSECTION_DIRECTIVE 1
2255 if test $elf != yes; then
2256 echo $ac_n "checking for .init and .fini sections""... $ac_c" 1>&6
2257 echo "configure:2258: checking for .init and .fini sections" >&5
2258 if eval "test \"`echo '$''{'libc_cv_have_initfini'+set}'`\" = set"; then
2259 echo $ac_n "(cached) $ac_c" 1>&6
2261 cat > conftest.$ac_ext <<EOF
2262 #line 2263 "configure"
2263 #include "confdefs.h"
2266 asm (".section .init");
2267 asm (".section .fini");
2271 if { (eval echo configure:2272: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2273 libc_cv_have_initfini=yes
2275 echo "configure: failed program was:" >&5
2276 cat conftest.$ac_ext >&5
2278 libc_cv_have_initfini=no
2283 echo "$ac_t""$libc_cv_have_initfini" 1>&6
2284 if test $libc_cv_have_initfini = yes; then
2285 cat >> confdefs.h <<\EOF
2286 #define HAVE_INITFINI 1
2294 if test $elf = yes; then
2295 libc_cv_asm_underscores=no
2297 if test $ac_cv_prog_cc_works = yes; then
2298 echo $ac_n "checking for _ prefix on C symbol names""... $ac_c" 1>&6
2299 echo "configure:2300: checking for _ prefix on C symbol names" >&5
2300 if eval "test \"`echo '$''{'libc_cv_asm_underscores'+set}'`\" = set"; then
2301 echo $ac_n "(cached) $ac_c" 1>&6
2303 cat > conftest.$ac_ext <<EOF
2304 #line 2305 "configure"
2305 #include "confdefs.h"
2306 asm ("_glibc_foobar:");
2311 if { (eval echo configure:2312: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2313 libc_cv_asm_underscores=yes
2315 echo "configure: failed program was:" >&5
2316 cat conftest.$ac_ext >&5
2318 libc_cv_asm_underscores=no
2323 echo "$ac_t""$libc_cv_asm_underscores" 1>&6
2325 echo $ac_n "checking for _ prefix on C symbol names""... $ac_c" 1>&6
2326 echo "configure:2327: checking for _ prefix on C symbol names" >&5
2327 if eval "test \"`echo '$''{'libc_cv_asm_underscores'+set}'`\" = set"; then
2328 echo $ac_n "(cached) $ac_c" 1>&6
2330 cat > conftest.$ac_ext <<EOF
2331 #line 2332 "configure"
2332 #include "confdefs.h"
2333 void underscore_test(void) {
2336 if { (eval echo configure:2337: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2337 if grep _underscore_test conftest* >/dev/null; then
2339 libc_cv_asm_underscores=yes
2342 libc_cv_asm_underscores=no
2345 echo "configure: failed program was:" >&5
2346 cat conftest.$ac_ext >&5
2348 libc_cv_asm_underscores=no
2353 echo "$ac_t""$libc_cv_asm_underscores" 1>&6
2356 if test $libc_cv_asm_underscores = no; then
2357 cat >> confdefs.h <<\EOF
2358 #define NO_UNDERSCORES 1
2363 if test $elf = yes; then
2364 libc_cv_weak_symbols=yes
2367 echo $ac_n "checking for assembler .weak directive""... $ac_c" 1>&6
2368 echo "configure:2369: checking for assembler .weak directive" >&5
2369 if eval "test \"`echo '$''{'libc_cv_asm_weak_directive'+set}'`\" = set"; then
2370 echo $ac_n "(cached) $ac_c" 1>&6
2372 cat > conftest.s <<EOF
2374 ${libc_cv_asm_global_directive} foo
2377 .weak bar; bar = foo
2379 if ${CC-cc} $CFLAGS -c conftest.s 2>/dev/null; then
2380 libc_cv_asm_weak_directive=yes
2382 libc_cv_asm_weak_directive=no
2387 echo "$ac_t""$libc_cv_asm_weak_directive" 1>&6
2389 if test $libc_cv_asm_weak_directive = no; then
2390 echo $ac_n "checking for assembler .weakext directive""... $ac_c" 1>&6
2391 echo "configure:2392: checking for assembler .weakext directive" >&5
2392 if eval "test \"`echo '$''{'libc_cv_asm_weakext_directive'+set}'`\" = set"; then
2393 echo $ac_n "(cached) $ac_c" 1>&6
2395 cat > conftest.s <<EOF
2397 ${libc_cv_asm_global_directive} foo
2401 ${libc_cv_asm_global_directive} baz
2404 if ${CC-cc} $CFLAGS -c conftest.s 2>/dev/null; then
2405 libc_cv_asm_weakext_directive=yes
2407 libc_cv_asm_weakext_directive=no
2412 echo "$ac_t""$libc_cv_asm_weakext_directive" 1>&6
2416 if test $libc_cv_asm_weak_directive = yes; then
2417 cat >> confdefs.h <<\EOF
2418 #define HAVE_ASM_WEAK_DIRECTIVE 1
2421 elif test $libc_cv_asm_weakext_directive = yes; then
2422 cat >> confdefs.h <<\EOF
2423 #define HAVE_ASM_WEAKEXT_DIRECTIVE 1
2428 echo $ac_n "checking for ld --no-whole-archive""... $ac_c" 1>&6
2429 echo "configure:2430: checking for ld --no-whole-archive" >&5
2430 if eval "test \"`echo '$''{'libc_cv_ld_no_whole_archive'+set}'`\" = set"; then
2431 echo $ac_n "(cached) $ac_c" 1>&6
2433 cat > conftest.c <<\EOF
2438 if { ac_try='${CC-cc} $CFLAGS
2439 -nostdlib -nostartfiles -Wl,--no-whole-archive
2440 -o conftest conftest.c 1>&5'; { (eval echo configure:2441: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
2441 libc_cv_ld_no_whole_archive=yes
2443 libc_cv_ld_no_whole_archive=no
2448 echo "$ac_t""$libc_cv_ld_no_whole_archive" 1>&6
2450 echo $ac_n "checking for gcc -fno-exceptions""... $ac_c" 1>&6
2451 echo "configure:2452: checking for gcc -fno-exceptions" >&5
2452 if eval "test \"`echo '$''{'libc_cv_gcc_no_exceptions'+set}'`\" = set"; then
2453 echo $ac_n "(cached) $ac_c" 1>&6
2455 cat > conftest.c <<\EOF
2460 if { ac_try='${CC-cc} $CFLAGS
2461 -nostdlib -nostartfiles -fno-exceptions
2462 -o conftest conftest.c 1>&5'; { (eval echo configure:2463: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
2463 libc_cv_gcc_no_exceptions=yes
2465 libc_cv_gcc_no_exceptions=no
2470 echo "$ac_t""$libc_cv_gcc_no_exceptions" 1>&6
2472 if test "$base_machine" = alpha ; then
2473 echo $ac_n "checking for function ..ng prefix""... $ac_c" 1>&6
2474 echo "configure:2475: checking for function ..ng prefix" >&5
2475 if eval "test \"`echo '$''{'libc_cv_gcc_alpha_ng_prefix'+set}'`\" = set"; then
2476 echo $ac_n "(cached) $ac_c" 1>&6
2478 cat > conftest.c <<\EOF
2481 if { ac_try='${CC-cc} -S conftest.c -o - | fgrep "\$foo..ng" > /dev/null'; { (eval echo configure:2482: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; };
2483 libc_cv_gcc_alpha_ng_prefix=yes
2485 libc_cv_gcc_alpha_ng_prefix=no
2490 echo "$ac_t""$libc_cv_gcc_alpha_ng_prefix" 1>&6
2491 if test $libc_cv_gcc_alpha_ng_prefix = yes ; then
2492 cat >> confdefs.h <<\EOF
2493 #define ASM_ALPHA_NG_SYMBOL_PREFIX "$"
2497 cat >> confdefs.h <<\EOF
2498 #define ASM_ALPHA_NG_SYMBOL_PREFIX ""
2504 echo $ac_n "checking for DWARF2 unwind info support""... $ac_c" 1>&6
2505 echo "configure:2506: checking for DWARF2 unwind info support" >&5
2506 if eval "test \"`echo '$''{'libc_cv_gcc_dwarf2_unwind_info'+set}'`\" = set"; then
2507 echo $ac_n "(cached) $ac_c" 1>&6
2509 cat > conftest.c <<EOF
2510 #line 2511 "configure"
2511 static char __EH_FRAME_BEGIN__;
2514 #ifdef CHECK__register_frame
2515 __register_frame (__EH_FRAME_BEGIN__);
2516 __deregister_frame (__EH_FRAME_BEGIN__);
2518 #ifdef CHECK__register_frame_info
2519 __register_frame_info (__EH_FRAME_BEGIN__);
2520 __deregister_frame_info (__EH_FRAME_BEGIN__);
2525 /* FIXME: this is fragile. */
2535 if { ac_try='${CC-cc} $CFLAGS -DCHECK__register_frame_info
2536 -nostdlib -nostartfiles
2537 -o conftest conftest.c -lgcc >&5'; { (eval echo configure:2538: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
2538 libc_cv_gcc_dwarf2_unwind_info=static
2540 libc_cv_gcc_dwarf2_unwind_info=no
2542 if test $libc_cv_gcc_dwarf2_unwind_info = no; then
2543 if { ac_try='${CC-cc} $CFLAGS -DCHECK__register_frame
2544 -nostdlib -nostartfiles
2545 -o conftest conftest.c -lgcc >&5'; { (eval echo configure:2546: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
2546 libc_cv_gcc_dwarf2_unwind_info=yes
2548 libc_cv_gcc_dwarf2_unwind_info=no
2554 echo "$ac_t""$libc_cv_gcc_dwarf2_unwind_info" 1>&6
2555 case $libc_cv_gcc_dwarf2_unwind_info in
2557 cat >> confdefs.h <<\EOF
2558 #define HAVE_DWARF2_UNWIND_INFO 1
2563 cat >> confdefs.h <<\EOF
2564 #define HAVE_DWARF2_UNWIND_INFO 1
2567 cat >> confdefs.h <<\EOF
2568 #define HAVE_DWARF2_UNWIND_INFO_STATIC 1
2574 ### End of automated tests.
2575 ### Now run sysdeps configure fragments.
2577 # sysdeps configure fragments may set these with files to be linked below.
2581 # They also can set these variables.
2582 ldd_rewrite_script=no
2584 # Iterate over all the sysdep directories we will use, running their
2585 # configure fragments, and looking for a uname implementation.
2587 for dir in $sysnames; do
2590 *) dest=$srcdir/$dir ;;
2592 if test -r $dest/configure; then
2593 echo "$ac_t""running configure fragment for $dest" 1>&6
2597 if test -z "$uname"; then
2598 if test -r $dest/uname.c ||
2599 test -r $dest/uname.S ||
2600 { test -r $dest/syscalls.list &&
2601 grep '^uname[ ]' $dest/syscalls.list >/dev/null; }; then
2609 # If we will use the generic uname implementation, we must figure out what
2610 # it will say by examining the system, and write the results in config-name.h.
2611 if test "$uname" = "sysdeps/generic"; then
2613 uname_sysname=`echo $config_os | sed 's/[0-9.]*$//'`
2614 if test $uname_sysname != $config_os; then
2615 config_release=`echo $config_os | sed s/$uname_sysname//`
2618 echo $ac_n "checking OS release for uname""... $ac_c" 1>&6
2619 echo "configure:2620: checking OS release for uname" >&5
2620 if eval "test \"`echo '$''{'libc_cv_uname_release'+set}'`\" = set"; then
2621 echo $ac_n "(cached) $ac_c" 1>&6
2623 kernel_release=`echo "$kernel_id" | sed 's/^[^0-9.]*\([0-9.]*\).*$/\1/'`
2624 if test x`echo "$config_release" | sed "s/^$kernel_release//"` \
2625 != x$config_release; then
2626 # The configuration release is a substring of the kernel release.
2627 libc_cv_uname_release=$kernel_release
2628 elif test x$config_release != x; then
2629 libc_cv_uname_release=$config_release
2630 elif test x$kernel_release != x; then
2631 libc_cv_uname_release=$kernel_release
2633 libc_cv_uname_release=unknown
2637 echo "$ac_t""$libc_cv_uname_release" 1>&6
2638 uname_release="$libc_cv_uname_release"
2640 echo $ac_n "checking OS version for uname""... $ac_c" 1>&6
2641 echo "configure:2642: checking OS version for uname" >&5
2642 if eval "test \"`echo '$''{'libc_cv_uname_version'+set}'`\" = set"; then
2643 echo $ac_n "(cached) $ac_c" 1>&6
2645 kernel_version=`echo "$kernel_id" | sed 's/^[^#]*#\([0-9]*\).*$/\1/'`
2646 if test -n "$kernel_version"; then
2647 libc_cv_uname_version="$kernel_version"
2649 libc_cv_uname_version=unknown
2653 echo "$ac_t""$libc_cv_uname_version" 1>&6
2654 uname_version="$libc_cv_uname_version"
2656 config_uname=config-name.h:config-name.in
2658 # For non-generic uname, we don't need to create config-name.h at all.
2662 echo $ac_n "checking stdio selection""... $ac_c" 1>&6
2663 echo "configure:2664: checking stdio selection" >&5
2666 libio) cat >> confdefs.h <<\EOF
2667 #define USE_IN_LIBIO 1
2670 default) stdio=stdio ;;
2672 echo "$ac_t""$stdio" 1>&6
2674 echo $ac_n "checking ldap selection""... $ac_c" 1>&6
2675 echo "configure:2676: checking ldap selection" >&5
2684 echo "$ac_t""$ldap" 1>&6
2694 if test $gnu_ld = yes; then
2695 cat >> confdefs.h <<\EOF
2696 #define HAVE_GNU_LD 1
2700 if test $gnu_as = yes; then
2701 cat >> confdefs.h <<\EOF
2702 #define HAVE_GNU_AS 1
2706 if test $elf = yes; then
2707 cat >> confdefs.h <<\EOF
2715 if test $shared = default; then
2716 if test $gnu_ld = yes; then
2719 # For now we do not assume shared libs are available. In future more
2720 # tests might become available.
2725 if test $static = no && test $shared = yes; then
2728 { echo "configure: error:
2729 *** You must compile with support for the static library since the shared
2730 *** library uses it. Restart configure without \`--disable-static'." 1>&2; exit 1; }
2737 echo $ac_n "checking whether -fPIC is default""... $ac_c" 1>&6
2738 echo "configure:2739: checking whether -fPIC is default" >&5
2739 if eval "test \"`echo '$''{'pic_default'+set}'`\" = set"; then
2740 echo $ac_n "(cached) $ac_c" 1>&6
2743 cat > conftest.c <<EOF
2744 #if defined __PIC__ || defined __pic__ || defined PIC || defined pic
2745 # error PIC is default.
2748 if eval "${CC-cc} -S conftest.c 2>&5 1>&5"; then
2754 echo "$ac_t""$pic_default" 1>&6
2765 if test "`(cd $srcdir; pwd)`" = "`pwd`"; then
2768 config_makefile=Makefile
2771 VERSION=`sed -e 's/^#define VERSION "\([^"]*\)"/\1/p' -e d < $srcdir/version.h`
2775 cat > confcache <<\EOF
2776 # This file is a shell script that caches the results of configure
2777 # tests run on this system so they can be shared between configure
2778 # scripts and configure runs. It is not useful on other systems.
2779 # If it contains results you don't want to keep, you may remove or edit it.
2781 # By default, configure uses ./config.cache as the cache file,
2782 # creating it if it does not exist already. You can give configure
2783 # the --cache-file=FILE option to use a different cache file; that is
2784 # what configure does when it calls configure scripts in
2785 # subdirectories, so they share the cache.
2786 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2787 # config.status only pays attention to the cache file if you give it the
2788 # --recheck option to rerun configure.
2791 # The following way of writing the cache mishandles newlines in values,
2792 # but we know of no workaround that is simple, portable, and efficient.
2793 # So, don't put newlines in cache variables' values.
2794 # Ultrix sh set writes to stderr and can't be redirected directly,
2795 # and sets the high bit in the cache file unless we assign to the vars.
2797 case `(ac_space=' '; set) 2>&1` in
2799 # `set' does not quote correctly, so add quotes (double-quote substitution
2800 # turns \\\\ into \\, and sed turns \\ into \).
2802 -e "s/'/'\\\\''/g" \
2803 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2806 # `set' quotes correctly as required by POSIX, so do not add quotes.
2807 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2810 if cmp -s $cache_file confcache; then
2813 if test -w $cache_file; then
2814 echo "updating cache $cache_file"
2815 cat confcache > $cache_file
2817 echo "not updating unwritable cache $cache_file"
2822 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
2824 test "x$prefix" = xNONE && prefix=$ac_default_prefix
2825 # Let make expand exec_prefix.
2826 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
2828 # Any assignment to VPATH causes Sun make to only execute
2829 # the first set of double-colon rules, so remove it if not needed.
2830 # If there is a colon in the path, we need to keep it.
2831 if test "x$srcdir" = x.; then
2832 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
2835 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
2837 DEFS=-DHAVE_CONFIG_H
2839 # Without the "./", some shells look in PATH for config.status.
2840 : ${CONFIG_STATUS=./config.status}
2842 echo creating $CONFIG_STATUS
2843 rm -f $CONFIG_STATUS
2844 cat > $CONFIG_STATUS <<EOF
2846 # Generated automatically by configure.
2847 # Run this file to recreate the current configuration.
2848 # This directory was configured as follows,
2849 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
2851 # $0 $ac_configure_args
2853 # Compiler output produced by configure, useful for debugging
2854 # configure, is in ./config.log if it exists.
2856 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
2859 case "\$ac_option" in
2860 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
2861 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
2862 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
2863 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
2864 echo "$CONFIG_STATUS generated by autoconf version 2.12"
2866 -help | --help | --hel | --he | --h)
2867 echo "\$ac_cs_usage"; exit 0 ;;
2868 *) echo "\$ac_cs_usage"; exit 1 ;;
2872 ac_given_srcdir=$srcdir
2873 ac_given_INSTALL="$INSTALL"
2875 trap 'rm -fr `echo "config.make glibcbug ${config_makefile} ${config_uname} config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
2877 cat >> $CONFIG_STATUS <<EOF
2879 # Protect against being on the right side of a sed subst in config.status.
2880 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
2881 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
2884 s%@CFLAGS@%$CFLAGS%g
2885 s%@CPPFLAGS@%$CPPFLAGS%g
2886 s%@CXXFLAGS@%$CXXFLAGS%g
2888 s%@LDFLAGS@%$LDFLAGS%g
2890 s%@exec_prefix@%$exec_prefix%g
2891 s%@prefix@%$prefix%g
2892 s%@program_transform_name@%$program_transform_name%g
2893 s%@bindir@%$bindir%g
2894 s%@sbindir@%$sbindir%g
2895 s%@libexecdir@%$libexecdir%g
2896 s%@datadir@%$datadir%g
2897 s%@sysconfdir@%$sysconfdir%g
2898 s%@sharedstatedir@%$sharedstatedir%g
2899 s%@localstatedir@%$localstatedir%g
2900 s%@libdir@%$libdir%g
2901 s%@includedir@%$includedir%g
2902 s%@oldincludedir@%$oldincludedir%g
2903 s%@infodir@%$infodir%g
2904 s%@mandir@%$mandir%g
2905 s%@with_cvs@%$with_cvs%g
2906 s%@subdirs@%$subdirs%g
2908 s%@host_alias@%$host_alias%g
2909 s%@host_cpu@%$host_cpu%g
2910 s%@host_vendor@%$host_vendor%g
2911 s%@host_os@%$host_os%g
2912 s%@base_machine@%$base_machine%g
2913 s%@sysnames@%$sysnames%g
2914 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
2915 s%@INSTALL_DATA@%$INSTALL_DATA%g
2918 s%@build_alias@%$build_alias%g
2919 s%@build_cpu@%$build_cpu%g
2920 s%@build_vendor@%$build_vendor%g
2921 s%@build_os@%$build_os%g
2924 s%@MSGFMT@%$MSGFMT%g
2925 s%@MAKEINFO@%$MAKEINFO%g
2926 s%@cross_linkable@%$cross_linkable%g
2927 s%@BUILD_CC@%$BUILD_CC%g
2928 s%@cross_compiling@%$cross_compiling%g
2931 s%@RANLIB@%$RANLIB%g
2933 s%@libc_cv_ar_S@%$libc_cv_ar_S%g
2935 s%@libc_cv_have_bash2@%$libc_cv_have_bash2%g
2937 s%@libc_cv_have_ksh@%$libc_cv_have_ksh%g
2939 s%@VERSIONING@%$VERSIONING%g
2940 s%@libc_cv_have_initfini@%$libc_cv_have_initfini%g
2941 s%@libc_cv_ld_no_whole_archive@%$libc_cv_ld_no_whole_archive%g
2942 s%@libc_cv_gcc_no_exceptions@%$libc_cv_gcc_no_exceptions%g
2943 s%@uname_sysname@%$uname_sysname%g
2944 s%@uname_release@%$uname_release%g
2945 s%@uname_version@%$uname_version%g
2948 s%@libc_cv_slibdir@%$libc_cv_slibdir%g
2949 s%@libc_cv_sysconfdir@%$libc_cv_sysconfdir%g
2950 s%@libc_cv_rootsbindir@%$libc_cv_rootsbindir%g
2951 s%@has_ldconfig@%$has_ldconfig%g
2952 s%@ldd_rewrite_script@%$ldd_rewrite_script%g
2953 s%@gnu_ld@%$gnu_ld%g
2954 s%@gnu_as@%$gnu_as%g
2956 s%@static@%$static%g
2957 s%@shared@%$shared%g
2958 s%@pic_default@%$pic_default%g
2959 s%@profile@%$profile%g
2960 s%@omitfp@%$omitfp%g
2961 s%@bounded@%$bounded%g
2962 s%@static_nss@%$static_nss%g
2963 s%@nopic_initfini@%$nopic_initfini%g
2964 s%@DEFINES@%$DEFINES%g
2965 s%@VERSION@%$VERSION%g
2970 cat >> $CONFIG_STATUS <<\EOF
2972 # Split the substitutions into bite-sized pieces for seds with
2973 # small command number limits, like on Digital OSF/1 and HP-UX.
2974 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
2975 ac_file=1 # Number of current file.
2976 ac_beg=1 # First line for current file.
2977 ac_end=$ac_max_sed_cmds # Line after last line for current file.
2980 while $ac_more_lines; do
2981 if test $ac_beg -gt 1; then
2982 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
2984 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
2986 if test ! -s conftest.s$ac_file; then
2988 rm -f conftest.s$ac_file
2990 if test -z "$ac_sed_cmds"; then
2991 ac_sed_cmds="sed -f conftest.s$ac_file"
2993 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
2995 ac_file=`expr $ac_file + 1`
2997 ac_end=`expr $ac_end + $ac_max_sed_cmds`
3000 if test -z "$ac_sed_cmds"; then
3005 cat >> $CONFIG_STATUS <<EOF
3007 CONFIG_FILES=\${CONFIG_FILES-"config.make glibcbug ${config_makefile} ${config_uname}"}
3009 cat >> $CONFIG_STATUS <<\EOF
3010 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
3011 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3013 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3014 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3015 *) ac_file_in="${ac_file}.in" ;;
3018 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
3020 # Remove last slash and all that follows it. Not all systems have dirname.
3021 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3022 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3023 # The file is in a subdirectory.
3024 test ! -d "$ac_dir" && mkdir "$ac_dir"
3025 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
3026 # A "../" for each directory in $ac_dir_suffix.
3027 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
3029 ac_dir_suffix= ac_dots=
3032 case "$ac_given_srcdir" in
3034 if test -z "$ac_dots"; then top_srcdir=.
3035 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
3036 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
3038 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
3039 top_srcdir="$ac_dots$ac_given_srcdir" ;;
3042 case "$ac_given_INSTALL" in
3043 [/$]*) INSTALL="$ac_given_INSTALL" ;;
3044 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
3047 echo creating "$ac_file"
3049 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
3051 *Makefile*) ac_comsub="1i\\
3052 # $configure_input" ;;
3056 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3058 s%@configure_input@%$configure_input%g
3059 s%@srcdir@%$srcdir%g
3060 s%@top_srcdir@%$top_srcdir%g
3061 s%@INSTALL@%$INSTALL%g
3062 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
3066 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
3067 # NAME is the cpp macro being defined and VALUE is the value it is being given.
3069 # ac_d sets the value in "#define NAME VALUE" lines.
3070 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
3071 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
3074 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
3075 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3076 ac_uB='\([ ]\)%\1#\2define\3'
3079 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
3080 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3081 ac_eB='$%\1#\2define\3'
3085 if test "${CONFIG_HEADERS+set}" != set; then
3087 cat >> $CONFIG_STATUS <<EOF
3088 CONFIG_HEADERS="config.h"
3090 cat >> $CONFIG_STATUS <<\EOF
3092 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
3093 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3095 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3096 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3097 *) ac_file_in="${ac_file}.in" ;;
3100 echo creating $ac_file
3102 rm -f conftest.frag conftest.in conftest.out
3103 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3104 cat $ac_file_inputs > conftest.in
3108 # Transform confdefs.h into a sed script conftest.vals that substitutes
3109 # the proper values into config.h.in to produce config.h. And first:
3110 # Protect against being on the right side of a sed subst in config.status.
3111 # Protect against being in an unquoted here document in config.status.
3113 cat > conftest.hdr <<\EOF
3116 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
3120 sed -n -f conftest.hdr confdefs.h > conftest.vals
3123 # This sed command replaces #undef with comments. This is necessary, for
3124 # example, in the case of _POSIX_SOURCE, which is predefined and required
3125 # on some systems where configure will not decide to define it.
3126 cat >> conftest.vals <<\EOF
3127 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
3130 # Break up conftest.vals because some shells have a limit on
3131 # the size of here documents, and old seds have small limits too.
3136 ac_lines=`grep -c . conftest.vals`
3137 # grep -c gives empty output for an empty file on some AIX systems.
3138 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
3139 # Write a limited-size here document to conftest.frag.
3140 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
3141 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
3143 sed -f conftest.frag conftest.in > conftest.out
3145 mv conftest.out conftest.in
3147 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
3149 mv conftest.tail conftest.vals
3153 cat >> $CONFIG_STATUS <<\EOF
3154 rm -f conftest.frag conftest.h
3155 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
3156 cat conftest.in >> conftest.h
3158 if cmp -s $ac_file conftest.h 2>/dev/null; then
3159 echo "$ac_file is unchanged"
3162 # Remove last slash and all that follows it. Not all systems have dirname.
3163 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3164 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3165 # The file is in a subdirectory.
3166 test ! -d "$ac_dir" && mkdir "$ac_dir"
3169 mv conftest.h $ac_file
3175 cat >> $CONFIG_STATUS <<EOF
3176 ac_sources="`echo $libc_link_sources`"
3177 ac_dests="`echo $libc_link_dests`"
3180 cat >> $CONFIG_STATUS <<\EOF
3181 srcdir=$ac_given_srcdir
3182 while test -n "$ac_sources"; do
3183 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
3184 set $ac_sources; ac_source=$1; shift; ac_sources=$*
3186 echo "linking $srcdir/$ac_source to $ac_dest"
3188 if test ! -r $srcdir/$ac_source; then
3189 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
3193 # Make relative symlinks.
3194 # Remove last slash and all that follows it. Not all systems have dirname.
3195 ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'`
3196 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
3197 # The dest file is in a subdirectory.
3198 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
3199 ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`"
3200 # A "../" for each directory in $ac_dest_dir_suffix.
3201 ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'`
3203 ac_dest_dir_suffix= ac_dots=
3207 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
3208 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
3211 # Make a symlink if possible; otherwise try a hard link.
3212 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
3213 ln $srcdir/$ac_source $ac_dest; then :
3215 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
3219 cat >> $CONFIG_STATUS <<EOF
3220 echo '$config_vars' >> config.make; test -d bits || mkdir bits
3222 cat >> $CONFIG_STATUS <<\EOF
3226 chmod +x $CONFIG_STATUS
3227 rm -fr confdefs* $ac_clean_files
3228 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
3230 if test "$no_recursion" != yes; then
3232 # Remove --cache-file and --srcdir arguments so they do not pile up.
3233 ac_sub_configure_args=
3235 for ac_arg in $ac_configure_args; do
3236 if test -n "$ac_prev"; then
3241 -cache-file | --cache-file | --cache-fil | --cache-fi \
3242 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
3243 ac_prev=cache_file ;;
3244 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
3245 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
3247 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
3249 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
3251 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
3255 for ac_config_dir in $add_ons; do
3257 # Do not complain, so a configure script can configure whichever
3258 # parts of a large source tree are present.
3259 if test ! -d $srcdir/$ac_config_dir; then
3263 echo configuring in $ac_config_dir
3268 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
3270 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
3278 # A "../" for each directory in /$ac_config_dir.
3279 ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
3282 .) # No --srcdir option. We are building in place.
3283 ac_sub_srcdir=$srcdir ;;
3284 /*) # Absolute path.
3285 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
3287 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
3290 # Check for guested configure; otherwise get Cygnus style configure.
3291 if test -f $ac_sub_srcdir/configure; then
3292 ac_sub_configure=$ac_sub_srcdir/configure
3293 elif test -f $ac_sub_srcdir/configure.in; then
3294 ac_sub_configure=$ac_configure
3296 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
3300 # The recursion is here.
3301 if test -n "$ac_sub_configure"; then
3303 # Make the cache file name correct relative to the subdirectory.
3304 case "$cache_file" in
3305 /*) ac_sub_cache_file=$cache_file ;;
3307 ac_sub_cache_file="$ac_dots$cache_file" ;;
3309 case "$ac_given_INSTALL" in
3310 [/$]*) INSTALL="$ac_given_INSTALL" ;;
3311 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
3314 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
3315 # The eval makes quoting arguments work.
3316 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
3319 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }