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 --with-headers=PATH location of system headers to use
39 [e.g. /usr/src/linux/include]
40 [default=compiler default]"
42 --enable-libio build in GNU libio instead of GNU stdio"
44 --disable-sanity-checks really do not use threads (should not be used
45 except in special situations) [default=yes]"
47 --enable-static build static library [default=yes]"
49 --enable-shared build shared library [default=yes if GNU ld & ELF]"
51 --enable-profile build profiled library [default=yes]"
53 --enable-omitfp build undebuggable optimized library [default=no]"
55 --enable-bounded build with runtime bounds checking [default=no]"
57 --disable-versioning do not include versioning information in the
58 library objects [default=yes if supported]"
60 --enable-add-ons[=DIR1,DIR2]... configure and build add-ons in DIR1,DIR2,...
61 search for add-ons if no parameter given"
63 --enable-static-nss build static NSS modules [default=no]"
65 # Initialize some variables set by options.
66 # The variables have the same names as the options, with
67 # dashes changed to underlines.
69 cache_file=./config.cache
78 program_transform_name=s,x,x,
86 bindir='${exec_prefix}/bin'
87 sbindir='${exec_prefix}/sbin'
88 libexecdir='${exec_prefix}/libexec'
89 datadir='${prefix}/share'
90 sysconfdir='${prefix}/etc'
91 sharedstatedir='${prefix}/com'
92 localstatedir='${prefix}/var'
93 libdir='${exec_prefix}/lib'
94 includedir='${prefix}/include'
95 oldincludedir='/usr/include'
96 infodir='${prefix}/info'
97 mandir='${prefix}/man'
99 # Initialize some other variables.
102 # Maximum number of lines to put in a shell here document.
109 # If the previous option needs an argument, assign it.
110 if test -n "$ac_prev"; then
111 eval "$ac_prev=\$ac_option"
117 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
121 # Accept the important Cygnus configure options, so we can diagnose typos.
125 -bindir | --bindir | --bindi | --bind | --bin | --bi)
127 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
128 bindir="$ac_optarg" ;;
130 -build | --build | --buil | --bui | --bu)
132 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
133 build="$ac_optarg" ;;
135 -cache-file | --cache-file | --cache-fil | --cache-fi \
136 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
137 ac_prev=cache_file ;;
138 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
139 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
140 cache_file="$ac_optarg" ;;
142 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
144 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
146 datadir="$ac_optarg" ;;
148 -disable-* | --disable-*)
149 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
150 # Reject names that are not valid shell variable names.
151 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
152 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
154 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
155 eval "enable_${ac_feature}=no" ;;
157 -enable-* | --enable-*)
158 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
159 # Reject names that are not valid shell variable names.
160 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
161 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
163 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
168 eval "enable_${ac_feature}='$ac_optarg'" ;;
170 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
171 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
172 | --exec | --exe | --ex)
173 ac_prev=exec_prefix ;;
174 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
175 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
176 | --exec=* | --exe=* | --ex=*)
177 exec_prefix="$ac_optarg" ;;
179 -gas | --gas | --ga | --g)
180 # Obsolete; use --with-gas.
183 -help | --help | --hel | --he)
184 # Omit some internal or obsolete options to make the list less imposing.
185 # This message is too long to be a string in the A/UX 3.1 sh.
187 Usage: configure [options] [host]
188 Options: [defaults in brackets after descriptions]
190 --cache-file=FILE cache test results in FILE
191 --help print this message
192 --no-create do not create output files
193 --quiet, --silent do not print \`checking...' messages
194 --version print the version of autoconf that created configure
195 Directory and file names:
196 --prefix=PREFIX install architecture-independent files in PREFIX
198 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
200 --bindir=DIR user executables in DIR [EPREFIX/bin]
201 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
202 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
203 --datadir=DIR read-only architecture-independent data in DIR
205 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
206 --sharedstatedir=DIR modifiable architecture-independent data in DIR
208 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
209 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
210 --includedir=DIR C header files in DIR [PREFIX/include]
211 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
212 --infodir=DIR info documentation in DIR [PREFIX/info]
213 --mandir=DIR man documentation in DIR [PREFIX/man]
214 --srcdir=DIR find the sources in DIR [configure dir or ..]
215 --program-prefix=PREFIX prepend PREFIX to installed program names
216 --program-suffix=SUFFIX append SUFFIX to installed program names
217 --program-transform-name=PROGRAM
218 run sed PROGRAM on installed program names
222 --build=BUILD configure for building on BUILD [BUILD=HOST]
223 --host=HOST configure for HOST [guessed]
224 --target=TARGET configure for TARGET [TARGET=HOST]
225 Features and packages:
226 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
227 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
228 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
229 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
230 --x-includes=DIR X include files are in DIR
231 --x-libraries=DIR X library files are in DIR
233 if test -n "$ac_help"; then
234 echo "--enable and --with options recognized:$ac_help"
238 -host | --host | --hos | --ho)
240 -host=* | --host=* | --hos=* | --ho=*)
243 -includedir | --includedir | --includedi | --included | --include \
244 | --includ | --inclu | --incl | --inc)
245 ac_prev=includedir ;;
246 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
247 | --includ=* | --inclu=* | --incl=* | --inc=*)
248 includedir="$ac_optarg" ;;
250 -infodir | --infodir | --infodi | --infod | --info | --inf)
252 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
253 infodir="$ac_optarg" ;;
255 -libdir | --libdir | --libdi | --libd)
257 -libdir=* | --libdir=* | --libdi=* | --libd=*)
258 libdir="$ac_optarg" ;;
260 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
261 | --libexe | --libex | --libe)
262 ac_prev=libexecdir ;;
263 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
264 | --libexe=* | --libex=* | --libe=*)
265 libexecdir="$ac_optarg" ;;
267 -localstatedir | --localstatedir | --localstatedi | --localstated \
268 | --localstate | --localstat | --localsta | --localst \
269 | --locals | --local | --loca | --loc | --lo)
270 ac_prev=localstatedir ;;
271 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
272 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
273 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
274 localstatedir="$ac_optarg" ;;
276 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
278 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
279 mandir="$ac_optarg" ;;
282 # Obsolete; use --without-fp.
285 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
289 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
290 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
293 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
294 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
295 | --oldin | --oldi | --old | --ol | --o)
296 ac_prev=oldincludedir ;;
297 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
298 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
299 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
300 oldincludedir="$ac_optarg" ;;
302 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
304 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
305 prefix="$ac_optarg" ;;
307 -program-prefix | --program-prefix | --program-prefi | --program-pref \
308 | --program-pre | --program-pr | --program-p)
309 ac_prev=program_prefix ;;
310 -program-prefix=* | --program-prefix=* | --program-prefi=* \
311 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
312 program_prefix="$ac_optarg" ;;
314 -program-suffix | --program-suffix | --program-suffi | --program-suff \
315 | --program-suf | --program-su | --program-s)
316 ac_prev=program_suffix ;;
317 -program-suffix=* | --program-suffix=* | --program-suffi=* \
318 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
319 program_suffix="$ac_optarg" ;;
321 -program-transform-name | --program-transform-name \
322 | --program-transform-nam | --program-transform-na \
323 | --program-transform-n | --program-transform- \
324 | --program-transform | --program-transfor \
325 | --program-transfo | --program-transf \
326 | --program-trans | --program-tran \
327 | --progr-tra | --program-tr | --program-t)
328 ac_prev=program_transform_name ;;
329 -program-transform-name=* | --program-transform-name=* \
330 | --program-transform-nam=* | --program-transform-na=* \
331 | --program-transform-n=* | --program-transform-=* \
332 | --program-transform=* | --program-transfor=* \
333 | --program-transfo=* | --program-transf=* \
334 | --program-trans=* | --program-tran=* \
335 | --progr-tra=* | --program-tr=* | --program-t=*)
336 program_transform_name="$ac_optarg" ;;
338 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
339 | -silent | --silent | --silen | --sile | --sil)
342 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
344 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
346 sbindir="$ac_optarg" ;;
348 -sharedstatedir | --sharedstatedir | --sharedstatedi \
349 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
350 | --sharedst | --shareds | --shared | --share | --shar \
352 ac_prev=sharedstatedir ;;
353 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
354 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
355 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
357 sharedstatedir="$ac_optarg" ;;
359 -site | --site | --sit)
361 -site=* | --site=* | --sit=*)
364 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
366 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
367 srcdir="$ac_optarg" ;;
369 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
370 | --syscon | --sysco | --sysc | --sys | --sy)
371 ac_prev=sysconfdir ;;
372 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
373 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
374 sysconfdir="$ac_optarg" ;;
376 -target | --target | --targe | --targ | --tar | --ta | --t)
378 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
379 target="$ac_optarg" ;;
381 -v | -verbose | --verbose | --verbos | --verbo | --verb)
384 -version | --version | --versio | --versi | --vers)
385 echo "configure generated by autoconf version 2.12"
389 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
390 # Reject names that are not valid shell variable names.
391 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
392 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
394 ac_package=`echo $ac_package| sed 's/-/_/g'`
399 eval "with_${ac_package}='$ac_optarg'" ;;
401 -without-* | --without-*)
402 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
403 # Reject names that are not valid shell variable names.
404 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
405 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
407 ac_package=`echo $ac_package| sed 's/-/_/g'`
408 eval "with_${ac_package}=no" ;;
411 # Obsolete; use --with-x.
414 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
415 | --x-incl | --x-inc | --x-in | --x-i)
416 ac_prev=x_includes ;;
417 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
418 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
419 x_includes="$ac_optarg" ;;
421 -x-libraries | --x-libraries | --x-librarie | --x-librari \
422 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
423 ac_prev=x_libraries ;;
424 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
425 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
426 x_libraries="$ac_optarg" ;;
428 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
432 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
433 echo "configure: warning: $ac_option: invalid host type" 1>&2
435 if test "x$nonopt" != xNONE; then
436 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
444 if test -n "$ac_prev"; then
445 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
448 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
450 # File descriptor usage:
453 # 2 errors and warnings
454 # 3 some systems may open it to /dev/tty
455 # 4 used on the Kubota Titan
456 # 6 checking for... messages and results
457 # 5 compiler messages saved in config.log
458 if test "$silent" = yes; then
466 This file contains any messages produced by compilers while
467 running configure, to aid debugging if configure makes a mistake.
470 # Strip out --no-create and --no-recursion so they do not pile up.
471 # Also quote any args containing shell metacharacters.
476 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
477 | --no-cr | --no-c) ;;
478 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
479 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
480 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
481 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
482 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
487 # Only set these to C if already set. These must not be set unconditionally
488 # because not all systems understand e.g. LANG=C (notably SCO).
489 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
490 # Non-C LC_CTYPE values break the ctype check.
491 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
492 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
493 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
494 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
496 # confdefs.h avoids OS command line length limits that DEFS can exceed.
497 rm -rf conftest* confdefs.h
498 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
501 # A filename unique to this package, relative to the directory that
502 # configure is in, which we can look for to find out if srcdir is correct.
503 ac_unique_file=include/features.h
505 # Find the source files, if location was not specified.
506 if test -z "$srcdir"; then
507 ac_srcdir_defaulted=yes
508 # Try the directory containing this script, then its parent.
510 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
511 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
513 if test ! -r $srcdir/$ac_unique_file; then
517 ac_srcdir_defaulted=no
519 if test ! -r $srcdir/$ac_unique_file; then
520 if test "$ac_srcdir_defaulted" = yes; then
521 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
523 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
526 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
528 # Prefer explicitly selected file to automatically selected ones.
529 if test -z "$CONFIG_SITE"; then
530 if test "x$prefix" != xNONE; then
531 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
533 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
536 for ac_site_file in $CONFIG_SITE; do
537 if test -r "$ac_site_file"; then
538 echo "loading site script $ac_site_file"
543 if test -r "$cache_file"; then
544 echo "loading cache $cache_file"
547 echo "creating cache $cache_file"
552 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
553 ac_cpp='$CPP $CPPFLAGS'
554 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
555 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
556 cross_compiling=$ac_cv_prog_cc_cross
558 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
559 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
560 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
567 ac_n= ac_c='\c' ac_t=
570 if test -r /vmunix; then
571 kernel_id=`strings /vmunix | grep UNIX`
572 elif test -r /dynix; then
573 kernel_id=`strings /dynix | grep DYNIX`
581 # This will get text that should go into config.make.
584 # Check for a --with-gmp argument and set gmp-srcdir in config.make.
585 # Check whether --with-gmp or --without-gmp was given.
586 if test "${with_gmp+set}" = set; then
589 yes) { echo "configure: error: --with-gmp requires an argument; use --with-gmp=DIRECTORY" 1>&2; exit 1; } ;;
591 *) config_vars="$config_vars
592 gmp-srcdir = $withval" ;;
597 # Check for a --with-gettext argument and set gettext-srcdir in config.make.
598 # Check whether --with-gettext or --without-gettext was given.
599 if test "${with_gettext+set}" = set; then
600 withval="$with_gettext"
601 case "$with_gettext" in
603 { echo "configure: error: --with-gettext requires an argument; use --with-gettext=DIR" 1>&2; exit 1; } ;;
606 config_vars="$config_vars
607 gettext-srcdir = $withval" ;;
613 # Check whether --with-fp or --without-fp was given.
614 if test "${with_fp+set}" = set; then
621 # Check whether --with-binutils or --without-binutils was given.
622 if test "${with_binutils+set}" = set; then
623 withval="$with_binutils"
624 path_binutils=$withval
629 # Check whether --with-elf or --without-elf was given.
630 if test "${with_elf+set}" = set; then
637 # Check whether --with-cvs or --without-cvs was given.
638 if test "${with_cvs+set}" = set; then
647 # Check whether --with-headers or --without-headers was given.
648 if test "${with_headers+set}" = set; then
649 withval="$with_headers"
656 # Check whether --enable-libio or --disable-libio was given.
657 if test "${enable_libio+set}" = set; then
658 enableval="$enable_libio"
659 if test $enableval = yes; then
669 # Check whether --enable-sanity-checks or --disable-sanity-checks was given.
670 if test "${enable_sanity_checks+set}" = set; then
671 enableval="$enable_sanity_checks"
672 enable_sanity=$enableval
678 # Check whether --enable-static or --disable-static was given.
679 if test "${enable_static+set}" = set; then
680 enableval="$enable_static"
686 # Check whether --enable-shared or --disable-shared was given.
687 if test "${enable_shared+set}" = set; then
688 enableval="$enable_shared"
694 # Check whether --enable-profile or --disable-profile was given.
695 if test "${enable_profile+set}" = set; then
696 enableval="$enable_profile"
702 # Check whether --enable-omitfp or --disable-omitfp was given.
703 if test "${enable_omitfp+set}" = set; then
704 enableval="$enable_omitfp"
710 # Check whether --enable-bounded or --disable-bounded was given.
711 if test "${enable_bounded+set}" = set; then
712 enableval="$enable_bounded"
718 # Check whether --enable-versioning or --disable-versioning was given.
719 if test "${enable_versioning+set}" = set; then
720 enableval="$enable_versioning"
721 enable_versioning=$enableval
723 enable_versioning=yes
727 # Check whether --enable-add-ons or --disable-add-ons was given.
728 if test "${enable_add_ons+set}" = set; then
729 enableval="$enable_add_ons"
731 yes) if test "$srcdir" = "."; then
732 add_ons=`echo */configure | sed -e 's!/configure!!g'`
734 add_ons=`echo $srcdir/*/configure | \
735 sed -e 's!/configure!!g' -e "s!$srcdir/!!g"`
737 *) add_ons=`echo "$enableval" | sed 's/,/ /g'`;;
745 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
746 if test -f $ac_dir/install-sh; then
748 ac_install_sh="$ac_aux_dir/install-sh -c"
750 elif test -f $ac_dir/install.sh; then
752 ac_install_sh="$ac_aux_dir/install.sh -c"
756 if test -z "$ac_aux_dir"; then
757 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
759 ac_config_guess=$ac_aux_dir/config.guess
760 ac_config_sub=$ac_aux_dir/config.sub
761 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
766 if test x"$add_ons" != x; then
767 for f in $add_ons; do
768 # Test whether such a subdir really exists.
769 if test -d $srcdir/$f; then
770 add_ons_pfx="$add_ons_pfx $f/"
772 { echo "configure: error: add-on directory \"$f\" does not exist" 1>&2; exit 1; }
777 # Check whether --enable-static-nss or --disable-static-nss was given.
778 if test "${enable_static_nss+set}" = set; then
779 enableval="$enable_static_nss"
780 static_nss=$enableval
785 if test x"$static_nss" = xyes; then
786 cat >> confdefs.h <<\EOF
787 #define DO_STATIC_NSS 1
793 # Make sure we can run config.sub.
794 if $ac_config_sub sun4 >/dev/null 2>&1; then :
795 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
798 echo $ac_n "checking host system type""... $ac_c" 1>&6
799 echo "configure:800: checking host system type" >&5
802 case "$host_alias" in
806 if host_alias=`$ac_config_guess`; then :
807 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
809 *) host_alias=$nonopt ;;
813 host=`$ac_config_sub $host_alias`
814 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
815 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
816 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
817 echo "$ac_t""$host" 1>&6
820 # The way shlib-versions is used to generate soversions.mk uses a
821 # fairly simplistic model for name recognition that can't distinguish
822 # i486-pc-linux-gnu fully from i486-pc-gnu. So we mutate a $host_os
823 # of `gnu*' here to be `gnu-gnu*' just so that shlib-versions can
824 # tell. This doesn't get used much beyond that, so it's fairly safe.
829 host_os=`echo $host_os | sed -e 's/gnu/gnu-gnu/'`
834 ### I put this here to prevent those annoying emails from people who cannot
835 ### read and try to compile glibc on unsupported platforms. --drepper
837 ### By using the undocumented --enable-hacker-mode option for configure
838 ### one can skip this test to make the configuration not fail for unsupported
841 if test -z "$enable_hacker_mode"; then
842 case "$machine-$host_os" in
843 *-linux* | *-gnu* | arm*-none*)
846 echo "*** The GNU C library is currently not available for this platform."
847 echo "*** So far nobody cared to port it and if there is no volunteer it"
848 echo "*** might never happen. So, if you have interest to see glibc on"
849 echo "*** this platform visit"
850 echo "*** http://www.gnu.org/software/libc/porting.html"
851 echo "*** and join the group of porters"
857 # We keep the original values in `$config_*' and never modify them, so we
858 # can write them unchanged into config.make. Everything else uses
859 # $machine, $vendor, and $os, and changes them whenever convenient.
860 config_machine=$host_cpu config_vendor=$host_vendor config_os=$host_os
862 # Some configurations imply other options.
864 gnu* | linux* | bsd4.4* | netbsd* | freebsd*)
865 # These systems always use GNU tools.
866 gnu_ld=yes gnu_as=yes ;;
869 # i586-linuxaout is mangled into i586-pc-linux-gnuaout
870 linux*ecoff* | linux*aout* | gnu*aout* | gnu*ecoff*)
872 gnu* | linux* | sysv4* | solaris2* | irix6*)
873 # These systems (almost) always use the ELF format.
878 machine=$config_machine
879 vendor=$config_vendor
882 # Expand the configuration machine name into a subdirectory by architecture
883 # type and particular chip.
885 a29k | am29000) base_machine=a29k machine=a29k ;;
886 alpha*) base_machine=alpha machine=alpha/$machine ;;
887 arm*) base_machine=arm machine=arm/$machine ;;
888 c3[012]) base_machine=cx0 machine=cx0/c30 ;;
889 c4[04]) base_machine=cx0 machine=cx0/c40 ;;
890 hppa*) base_machine=hppa machine=hppa/$machine ;;
891 i[3456]86) base_machine=i386 machine=i386/$machine ;;
892 m680?0) base_machine=m68k machine=m68k/$machine ;;
893 m68k) base_machine=m68k machine=m68k/m68020 ;;
894 m88???) base_machine=m88k machine=m88k/$machine ;;
895 m88k) base_machine=m88k machine=m88k/m88100 ;;
896 mips64*) base_machine=mips64 machine=mips/mips64/$machine ;;
897 mips*) base_machine=mips
899 IP22) machine=mips/mips3 ;;
900 *) machine=mips/$machine ,,
903 base_machine=sparc machine=sparc/sparc32 ;;
904 sparcv8 | supersparc | hypersparc)
905 base_machine=sparc machine=sparc/sparc32/sparcv8 ;;
906 sparc64 | ultrasparc)
907 base_machine=sparc machine=sparc/sparc64 ;;
911 if test "$base_machine" = "i386"; then
912 cat >> confdefs.h <<\EOF
913 #define USE_REGPARMS 1
918 # Compute the list of sysdep directories for this configuration.
919 # This can take a while to compute.
920 sysdep_dir=$srcdir/sysdeps
921 echo $ac_n "checking sysdep dirs""... $ac_c" 1>&6
922 echo "configure:923: checking sysdep dirs" >&5
923 # Make sco3.2v4 become sco3.2.4 and sunos4.1.1_U1 become sunos4.1.1.U1.
924 os="`echo $os | sed 's/\([0-9A-Z]\)[v_]\([0-9A-Z]\)/\1.\2/g'`"
929 netbsd* | 386bsd* | freebsd* | bsdi*)
930 base_os=unix/bsd/bsd4.4 ;;
931 osf* | sunos* | ultrix* | newsos* | dynix* | *bsd*)
933 sysv* | isc* | esix* | sco* | minix* | irix4* | linux*)
936 base_os=unix/sysv/irix6/$os ;;
938 base_os=unix/sysv/sysv4 ;;
940 base_os=standalone ;;
945 # For sunos4.1.1, try sunos4.1.1, then sunos4.1, then sunos4, then sunos.
948 while o=`echo $tail | sed 's/\.[^.]*$//'`; test $o != $tail; do
952 o=`echo $tail | sed 's/[0-9]*$//'`
953 if test $o != $tail; then
956 # For linux-gnu, try linux-gnu, then linux.
957 o=`echo $tail | sed 's/-.*$//'`
958 if test $o != $tail; then
962 # For unix/sysv/sysv4, try unix/sysv/sysv4, then unix/sysv, then unix.
965 while b=`echo $tail | sed 's@^\(.*\)/\([^/]*\)$@& \1@'`; test -n "$b"; do
971 # For sparc/sparc9, try sparc/sparc9 and then sparc.
974 while m=`echo $tail | sed 's@^\(.*\)/\([^/]*\)$@& \1@'`; test -n "$m"; do
976 # Prepend the machine's FPU directory unless --without-fp.
977 if test "$with_fp" = yes; then
985 # Find what sysdep directories exist.
987 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
988 for d in $add_ons_pfx ''; do
989 for b in $base ''; do
990 for m0 in $mach ''; do
991 for v in /$vendor ''; do
992 test "$v" = / && continue
993 for o in /$ostry ''; do
994 test "$o" = / && continue
995 for m in $mach ''; do
996 if test "$m0$b$v$o$m"; then
997 try="${d}sysdeps$m0$b$v$o$m"
998 test -n "$enable_debug_configure" &&
999 echo "$0 DEBUG: try $try" >&2
1002 *) dest=$srcdir/$try ;;
1004 if test -d $dest; then
1005 sysnames="$sysnames $try"
1006 { test -n "$o" || test -n "$b"; } && os_used=t
1007 { test -n "$m" || test -n "$m0"; } && machine_used=t
1018 if test -z "$os_used" && test "$os" != none; then
1019 { echo "configure: error: Operating system $os is not supported." 1>&2; exit 1; }
1021 if test -z "$machine_used" && test "$machine" != none; then
1022 { echo "configure: error: The $machine is not supported." 1>&2; exit 1; }
1025 # We have now validated the configuration.
1028 # If using ELF, look for an `elf' subdirectory of each machine directory.
1029 # We prepend these rather than inserting them whereever the machine appears
1030 # because things specified by the machine's ELF ABI should override
1031 # OS-specific things, and should always be the same for any OS on the
1032 # machine (otherwise what's the point of an ABI?).
1033 if test "$elf" = yes; then
1035 for d in $add_ons_pfx ''; do
1038 *) xsrcdir=$srcdir/ ;;
1041 if test -d $xsrcdir${d}sysdeps$m/elf; then
1042 elf_dirs="$elf_dirs ${d}sysdeps$m/elf"
1046 sysnames="`echo $elf_dirs | sed -e 's,//,/,g'` $sysnames"
1050 # Expand the list of system names into a full list of directories
1051 # from each element's parent name and Implies file (if present).
1054 while test $# -gt 0; do
1058 case " $names " in *" $name "*)
1059 # Already in the list.
1063 # Report each name as we discover it, so there is no long pause in output.
1064 echo $ac_n "$name $ac_c" >&6
1066 name_base=`echo $name | sed -e 's@\(.*sysdeps\)/.*@\1@'`
1070 *) xsrcdir=$srcdir/ ;;
1072 test -n "$enable_debug_configure" &&
1073 echo "DEBUG: name/Implies $xsrcdir$name/Implies" >&2
1075 if test -f $xsrcdir$name/Implies; then
1076 # Collect more names from the `Implies' file (removing comments).
1077 implied_candidate="`sed 's/#.*$//' < $xsrcdir$name/Implies`"
1079 for x in $implied_candidate; do
1080 if test -d $xsrcdir$name_base/$x; then
1081 implied="$implied $name_base/$x";
1083 echo "configure: warning: $name/Implies specifies nonexistent $x" 1>&2
1090 # Add NAME to the list of names.
1091 names="$names $name"
1093 # Find the parent of NAME, using the empty string if it has none.
1094 parent="`echo $name | sed -n -e 's=/[^/]*$==' -e '/sysdeps$/q' -e p`"
1096 # Add the names implied by NAME, and NAME's parent (if it has one), to
1097 # the list of names to be processed (the argument list). We prepend the
1098 # implied names to the list and append the parent. We want implied
1099 # directories to come before further directories inferred from the
1100 # configuration components; this ensures that for sysv4, unix/common
1101 # (implied by unix/sysv/sysv4) comes before unix/sysv (in ostry (here $*)
1103 sysnames="`echo $implied $* $parent`"
1104 test -n "$sysnames" && set $sysnames
1107 # Add the default directories.
1108 sysnames="$names sysdeps/generic"
1110 # The other names were emitted during the scan.
1111 echo "$ac_t""sysdeps/generic" 1>&6
1116 # Find a good install program. We prefer a C program (faster),
1117 # so one script is as good as another. But avoid the broken or
1118 # incompatible versions:
1119 # SysV /etc/install, /usr/sbin/install
1120 # SunOS /usr/etc/install
1121 # IRIX /sbin/install
1123 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1124 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1125 # ./install, which can be erroneously created by make from ./install.sh.
1126 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1127 echo "configure:1128: checking for a BSD compatible install" >&5
1128 if test -z "$INSTALL"; then
1129 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1130 echo $ac_n "(cached) $ac_c" 1>&6
1132 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
1133 for ac_dir in $PATH; do
1134 # Account for people who put trailing slashes in PATH elements.
1136 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1138 # OSF1 and SCO ODT 3.0 have their own names for install.
1139 for ac_prog in ginstall installbsd scoinst install; do
1140 if test -f $ac_dir/$ac_prog; then
1141 if test $ac_prog = install &&
1142 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1143 # AIX install. It has an incompatible calling convention.
1144 # OSF/1 installbsd also uses dspmsg, but is usable.
1147 ac_cv_path_install="$ac_dir/$ac_prog -c"
1158 if test "${ac_cv_path_install+set}" = set; then
1159 INSTALL="$ac_cv_path_install"
1161 # As a last resort, use the slow shell script. We don't cache a
1162 # path for INSTALL within a source directory, because that will
1163 # break other packages using the cache if that directory is
1164 # removed, or if the path is relative.
1165 INSTALL="$ac_install_sh"
1168 echo "$ac_t""$INSTALL" 1>&6
1170 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1171 # It thinks the first close brace ends the variable substitution.
1172 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1174 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1176 if test "$INSTALL" = "${srcdir}/install-sh -c"; then
1177 # The makefiles need to use a different form to find it in $srcdir.
1178 INSTALL='\$(..)./install-sh -c'
1180 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1181 echo "configure:1182: checking whether ln -s works" >&5
1182 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1183 echo $ac_n "(cached) $ac_c" 1>&6
1186 if ln -s X conftestdata 2>/dev/null
1189 ac_cv_prog_LN_S="ln -s"
1194 LN_S="$ac_cv_prog_LN_S"
1195 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1196 echo "$ac_t""yes" 1>&6
1198 echo "$ac_t""no" 1>&6
1202 # These programs are version sensitive.
1203 echo $ac_n "checking build system type""... $ac_c" 1>&6
1204 echo "configure:1205: checking build system type" >&5
1207 case "$build_alias" in
1210 NONE) build_alias=$host_alias ;;
1211 *) build_alias=$nonopt ;;
1215 build=`$ac_config_sub $build_alias`
1216 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1217 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1218 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1219 echo "$ac_t""$build" 1>&6
1221 if test $host != $build; then
1222 ac_tool_prefix=${host_alias}-
1227 for ac_prog in ${ac_tool_prefix}gcc ${ac_tool_prefix}cc
1229 # Extract the first word of "$ac_prog", so it can be a program name with args.
1230 set dummy $ac_prog; ac_word=$2
1231 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1232 echo "configure:1233: checking for $ac_word" >&5
1233 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1234 echo $ac_n "(cached) $ac_c" 1>&6
1236 if test -n "$CC"; then
1237 ac_cv_prog_CC="$CC" # Let the user override the test.
1239 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1240 for ac_dir in $PATH; do
1241 test -z "$ac_dir" && ac_dir=.
1242 if test -f $ac_dir/$ac_word; then
1243 ac_cv_prog_CC="$ac_prog"
1251 if test -n "$CC"; then
1252 echo "$ac_t""$CC" 1>&6
1254 echo "$ac_t""no" 1>&6
1257 test -n "$CC" && break
1260 if test -z "$CC"; then
1263 # Found it, now check the version.
1264 echo $ac_n "checking version of $CC""... $ac_c" 1>&6
1265 echo "configure:1266: checking version of $CC" >&5
1266 ac_prog_version=`$CC -v 2>&1 | sed -n 's/^.*version \([egcst0-9.-]*\).*$/\1/p'`
1267 case $ac_prog_version in
1268 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
1269 egcs-2.91.*|egcs-2.90.2[789]|egcs-2.90.[3-9][0-9]|*2.8.[1-9]*|*2.9.[0-9]*)
1270 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
1271 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
1274 echo "$ac_t""$ac_prog_version" 1>&6
1276 if test $ac_verc_fail = yes; then
1280 for ac_prog in make gmake
1282 # Extract the first word of "$ac_prog", so it can be a program name with args.
1283 set dummy $ac_prog; ac_word=$2
1284 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1285 echo "configure:1286: checking for $ac_word" >&5
1286 if eval "test \"`echo '$''{'ac_cv_prog_MAKE'+set}'`\" = set"; then
1287 echo $ac_n "(cached) $ac_c" 1>&6
1289 if test -n "$MAKE"; then
1290 ac_cv_prog_MAKE="$MAKE" # Let the user override the test.
1292 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1293 for ac_dir in $PATH; do
1294 test -z "$ac_dir" && ac_dir=.
1295 if test -f $ac_dir/$ac_word; then
1296 ac_cv_prog_MAKE="$ac_prog"
1303 MAKE="$ac_cv_prog_MAKE"
1304 if test -n "$MAKE"; then
1305 echo "$ac_t""$MAKE" 1>&6
1307 echo "$ac_t""no" 1>&6
1310 test -n "$MAKE" && break
1313 if test -z "$MAKE"; then
1316 # Found it, now check the version.
1317 echo $ac_n "checking version of $MAKE""... $ac_c" 1>&6
1318 echo "configure:1319: checking version of $MAKE" >&5
1319 ac_prog_version=`$MAKE --version 2>&1 | sed -n 's/^.*version \([0-9][0-9.]*\), by.*$/\1/p'`
1320 case $ac_prog_version in
1321 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
1322 3.75 | 3.76.[1-9] | 3.7[789]* | 3.[89]*)
1323 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
1324 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
1327 echo "$ac_t""$ac_prog_version" 1>&6
1329 if test $ac_verc_fail = yes; then
1334 for ac_prog in msgfmt gmsgfmt
1336 # Extract the first word of "$ac_prog", so it can be a program name with args.
1337 set dummy $ac_prog; ac_word=$2
1338 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1339 echo "configure:1340: checking for $ac_word" >&5
1340 if eval "test \"`echo '$''{'ac_cv_prog_MSGFMT'+set}'`\" = set"; then
1341 echo $ac_n "(cached) $ac_c" 1>&6
1343 if test -n "$MSGFMT"; then
1344 ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
1346 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1347 for ac_dir in $PATH; do
1348 test -z "$ac_dir" && ac_dir=.
1349 if test -f $ac_dir/$ac_word; then
1350 ac_cv_prog_MSGFMT="$ac_prog"
1357 MSGFMT="$ac_cv_prog_MSGFMT"
1358 if test -n "$MSGFMT"; then
1359 echo "$ac_t""$MSGFMT" 1>&6
1361 echo "$ac_t""no" 1>&6
1364 test -n "$MSGFMT" && break
1367 if test -z "$MSGFMT"; then
1370 # Found it, now check the version.
1371 echo $ac_n "checking version of $MSGFMT""... $ac_c" 1>&6
1372 echo "configure:1373: checking version of $MSGFMT" >&5
1373 ac_prog_version=`$MSGFMT --version 2>&1 | sed -n 's/^.*GNU gettext.*\([0-9][0-9]*\.[0-9]*\).*$/\1/p'`
1374 case $ac_prog_version in
1375 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
1376 0.[1-9][0-9] | [1-9].*)
1377 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
1378 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
1381 echo "$ac_t""$ac_prog_version" 1>&6
1383 if test $ac_verc_fail = yes; then
1384 MSGFMT=: aux_missing=t
1387 for ac_prog in makeinfo
1389 # Extract the first word of "$ac_prog", so it can be a program name with args.
1390 set dummy $ac_prog; ac_word=$2
1391 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1392 echo "configure:1393: checking for $ac_word" >&5
1393 if eval "test \"`echo '$''{'ac_cv_prog_MAKEINFO'+set}'`\" = set"; then
1394 echo $ac_n "(cached) $ac_c" 1>&6
1396 if test -n "$MAKEINFO"; then
1397 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
1399 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1400 for ac_dir in $PATH; do
1401 test -z "$ac_dir" && ac_dir=.
1402 if test -f $ac_dir/$ac_word; then
1403 ac_cv_prog_MAKEINFO="$ac_prog"
1410 MAKEINFO="$ac_cv_prog_MAKEINFO"
1411 if test -n "$MAKEINFO"; then
1412 echo "$ac_t""$MAKEINFO" 1>&6
1414 echo "$ac_t""no" 1>&6
1417 test -n "$MAKEINFO" && break
1420 if test -z "$MAKEINFO"; then
1423 # Found it, now check the version.
1424 echo $ac_n "checking version of $MAKEINFO""... $ac_c" 1>&6
1425 echo "configure:1426: checking version of $MAKEINFO" >&5
1426 ac_prog_version=`$MAKEINFO --version 2>&1 | sed -n 's/^.*GNU texinfo \([0-9][0-9.]*\).*$/\1/p'`
1427 case $ac_prog_version in
1428 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
1429 3.1[1-9] | 3.[2-9][0-9])
1430 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
1431 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
1434 echo "$ac_t""$ac_prog_version" 1>&6
1436 if test $ac_verc_fail = yes; then
1437 MAKEINFO=: aux_missing=t
1441 if test -n "$critic_missing"; then
1442 { echo "configure: error:
1443 *** Some critical program is missing or too old.
1444 *** Check the INSTALL file for required versions." 1>&2; exit 1; }
1447 test -n "$aux_missing" && echo "configure: warning:
1448 *** An auxiliary program is missing or too old;
1449 *** some features will be disabled.
1450 *** Check the INSTALL file for required versions." 1>&2
1453 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1454 echo "configure:1455: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1455 if eval "test \"`echo '$''{'ac_cv_prog_cc_works'+set}'`\" = set"; then
1456 echo $ac_n "(cached) $ac_c" 1>&6
1460 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1461 ac_cpp='$CPP $CPPFLAGS'
1462 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1463 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1464 cross_compiling=$ac_cv_prog_cc_cross
1466 cat > conftest.$ac_ext <<EOF
1467 #line 1468 "configure"
1468 #include "confdefs.h"
1471 if { (eval echo configure:1472: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1472 ac_cv_prog_cc_works=yes
1473 # If we can't run a trivial program, we are probably using a cross compiler.
1474 if (./conftest; exit) 2>/dev/null; then
1475 ac_cv_prog_cc_cross=no
1477 ac_cv_prog_cc_cross=yes
1480 echo "configure: failed program was:" >&5
1481 cat conftest.$ac_ext >&5
1482 ac_cv_prog_cc_works=no
1488 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1489 if test $ac_cv_prog_cc_works = no; then
1491 ac_cv_prog_cc_cross=yes
1495 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1496 echo "configure:1497: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1497 if eval "test \"`echo '$''{'ac_cv_prog_cc_cross'+set}'`\" = set"; then
1498 echo $ac_n "(cached) $ac_c" 1>&6
1503 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1505 cross_compiling=$ac_cv_prog_cc_cross
1507 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1508 echo "configure:1509: checking whether we are using GNU C" >&5
1509 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1510 echo $ac_n "(cached) $ac_c" 1>&6
1512 cat > conftest.c <<EOF
1517 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1518: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1524 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1525 if test $ac_cv_prog_gcc != yes; then
1526 { echo "configure: error: GNU libc must be compiled using GNU CC" 1>&2; exit 1; }
1529 echo $ac_n "checking build system type""... $ac_c" 1>&6
1530 echo "configure:1531: checking build system type" >&5
1533 case "$build_alias" in
1536 NONE) build_alias=$host_alias ;;
1537 *) build_alias=$nonopt ;;
1541 build=`$ac_config_sub $build_alias`
1542 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1543 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1544 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1545 echo "$ac_t""$build" 1>&6
1547 if test $host != $build; then
1548 for ac_prog in gcc cc
1550 # Extract the first word of "$ac_prog", so it can be a program name with args.
1551 set dummy $ac_prog; ac_word=$2
1552 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1553 echo "configure:1554: checking for $ac_word" >&5
1554 if eval "test \"`echo '$''{'ac_cv_prog_BUILD_CC'+set}'`\" = set"; then
1555 echo $ac_n "(cached) $ac_c" 1>&6
1557 if test -n "$BUILD_CC"; then
1558 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
1560 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1561 for ac_dir in $PATH; do
1562 test -z "$ac_dir" && ac_dir=.
1563 if test -f $ac_dir/$ac_word; then
1564 ac_cv_prog_BUILD_CC="$ac_prog"
1571 BUILD_CC="$ac_cv_prog_BUILD_CC"
1572 if test -n "$BUILD_CC"; then
1573 echo "$ac_t""$BUILD_CC" 1>&6
1575 echo "$ac_t""no" 1>&6
1578 test -n "$BUILD_CC" && break
1583 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1584 echo "configure:1585: checking how to run the C preprocessor" >&5
1585 # On Suns, sometimes $CPP names a directory.
1586 if test -n "$CPP" && test -d "$CPP"; then
1589 if test -z "$CPP"; then
1590 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1591 echo $ac_n "(cached) $ac_c" 1>&6
1593 # This must be in double quotes, not single quotes, because CPP may get
1594 # substituted into the Makefile and "${CC-cc}" will confuse make.
1596 # On the NeXT, cc -E runs the code through the compiler's parser,
1597 # not just through cpp.
1598 cat > conftest.$ac_ext <<EOF
1599 #line 1600 "configure"
1600 #include "confdefs.h"
1604 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1605 { (eval echo configure:1606: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1606 ac_err=`grep -v '^ *+' conftest.out`
1607 if test -z "$ac_err"; then
1611 echo "configure: failed program was:" >&5
1612 cat conftest.$ac_ext >&5
1614 CPP="${CC-cc} -E -traditional-cpp"
1615 cat > conftest.$ac_ext <<EOF
1616 #line 1617 "configure"
1617 #include "confdefs.h"
1621 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1622 { (eval echo configure:1623: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1623 ac_err=`grep -v '^ *+' conftest.out`
1624 if test -z "$ac_err"; then
1628 echo "configure: failed program was:" >&5
1629 cat conftest.$ac_ext >&5
1636 ac_cv_prog_CPP="$CPP"
1638 CPP="$ac_cv_prog_CPP"
1640 ac_cv_prog_CPP="$CPP"
1642 echo "$ac_t""$CPP" 1>&6
1644 # Was a --with-binutils option given?
1645 if test -n "$path_binutils"; then
1646 # Make absolute; ensure a single trailing slash.
1647 path_binutils=`(cd $path_binutils; pwd) | sed 's%/*$%/%'`
1648 CC="$CC -B$path_binutils"
1650 AS=`$CC -print-prog-name=as`
1651 LD=`$CC -print-prog-name=ld`
1653 # Determine whether we are using GNU binutils.
1654 echo $ac_n "checking whether $AS is GNU as""... $ac_c" 1>&6
1655 echo "configure:1656: checking whether $AS is GNU as" >&5
1656 if eval "test \"`echo '$''{'libc_cv_prog_as_gnu'+set}'`\" = set"; then
1657 echo $ac_n "(cached) $ac_c" 1>&6
1659 # Most GNU programs take a -v and spit out some text including
1660 # the word 'GNU'. Some try to read stdin, so give them /dev/null.
1661 if $AS -v </dev/null 2>&1 | grep GNU > /dev/null 2>&1; then
1662 libc_cv_prog_as_gnu=yes
1664 libc_cv_prog_as_gnu=no
1668 echo "$ac_t""$libc_cv_prog_as_gnu" 1>&6
1670 gnu_as=$libc_cv_prog_as_gnu
1672 echo $ac_n "checking whether $LD is GNU ld""... $ac_c" 1>&6
1673 echo "configure:1674: checking whether $LD is GNU ld" >&5
1674 if eval "test \"`echo '$''{'libc_cv_prog_ld_gnu'+set}'`\" = set"; then
1675 echo $ac_n "(cached) $ac_c" 1>&6
1677 # Most GNU programs take a -v and spit out some text including
1678 # the word 'GNU'. Some try to read stdin, so give them /dev/null.
1679 if $LD -v </dev/null 2>&1 | grep GNU > /dev/null 2>&1; then
1680 libc_cv_prog_ld_gnu=yes
1682 libc_cv_prog_ld_gnu=no
1686 echo "$ac_t""$libc_cv_prog_ld_gnu" 1>&6
1687 gnu_ld=$libc_cv_prog_ld_gnu
1689 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
1690 set dummy ${ac_tool_prefix}ar; ac_word=$2
1691 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1692 echo "configure:1693: checking for $ac_word" >&5
1693 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1694 echo $ac_n "(cached) $ac_c" 1>&6
1696 if test -n "$AR"; then
1697 ac_cv_prog_AR="$AR" # Let the user override the test.
1699 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1700 for ac_dir in $PATH; do
1701 test -z "$ac_dir" && ac_dir=.
1702 if test -f $ac_dir/$ac_word; then
1703 ac_cv_prog_AR="${ac_tool_prefix}ar"
1708 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
1712 if test -n "$AR"; then
1713 echo "$ac_t""$AR" 1>&6
1715 echo "$ac_t""no" 1>&6
1720 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1721 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1722 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1723 echo "configure:1724: checking for $ac_word" >&5
1724 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1725 echo $ac_n "(cached) $ac_c" 1>&6
1727 if test -n "$RANLIB"; then
1728 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1730 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1731 for ac_dir in $PATH; do
1732 test -z "$ac_dir" && ac_dir=.
1733 if test -f $ac_dir/$ac_word; then
1734 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1741 RANLIB="$ac_cv_prog_RANLIB"
1742 if test -n "$RANLIB"; then
1743 echo "$ac_t""$RANLIB" 1>&6
1745 echo "$ac_t""no" 1>&6
1749 if test -z "$ac_cv_prog_RANLIB"; then
1750 if test -n "$ac_tool_prefix"; then
1751 # Extract the first word of "ranlib", so it can be a program name with args.
1752 set dummy ranlib; ac_word=$2
1753 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1754 echo "configure:1755: checking for $ac_word" >&5
1755 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1756 echo $ac_n "(cached) $ac_c" 1>&6
1758 if test -n "$RANLIB"; then
1759 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1761 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1762 for ac_dir in $PATH; do
1763 test -z "$ac_dir" && ac_dir=.
1764 if test -f $ac_dir/$ac_word; then
1765 ac_cv_prog_RANLIB="ranlib"
1770 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1773 RANLIB="$ac_cv_prog_RANLIB"
1774 if test -n "$RANLIB"; then
1775 echo "$ac_t""$RANLIB" 1>&6
1777 echo "$ac_t""no" 1>&6
1785 # Extract the first word of "${ac_tool_prefix}mig", so it can be a program name with args.
1786 set dummy ${ac_tool_prefix}mig; ac_word=$2
1787 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1788 echo "configure:1789: checking for $ac_word" >&5
1789 if eval "test \"`echo '$''{'ac_cv_prog_MIG'+set}'`\" = set"; then
1790 echo $ac_n "(cached) $ac_c" 1>&6
1792 if test -n "$MIG"; then
1793 ac_cv_prog_MIG="$MIG" # Let the user override the test.
1795 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1796 for ac_dir in $PATH; do
1797 test -z "$ac_dir" && ac_dir=.
1798 if test -f $ac_dir/$ac_word; then
1799 ac_cv_prog_MIG="${ac_tool_prefix}mig"
1804 test -z "$ac_cv_prog_MIG" && ac_cv_prog_MIG="mig"
1807 MIG="$ac_cv_prog_MIG"
1808 if test -n "$MIG"; then
1809 echo "$ac_t""$MIG" 1>&6
1811 echo "$ac_t""no" 1>&6
1817 # if using special system headers, find out the compiler's sekrit
1818 # header directory and add that to the list. NOTE: Only does the right
1819 # thing on a system that doesn't need fixincludes. (Not presently a problem.)
1820 if test -n "$sysheaders"; then
1821 ccheaders=`$CC -print-file-name=include`
1822 SYSINCLUDES="-nostdinc -isystem $ccheaders -isystem $sysheaders"
1826 # check if ar takes S
1827 echo $ac_n "checking for ar S""... $ac_c" 1>&6
1828 echo "configure:1829: checking for ar S" >&5
1829 if eval "test \"`echo '$''{'libc_cv_ar_S'+set}'`\" = set"; then
1830 echo $ac_n "(cached) $ac_c" 1>&6
1836 if { ac_try='${AR-ar} rcuS $tmplib $tmpo > /dev/null 2>&1'; { (eval echo configure:1837: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
1844 echo "$ac_t""$libc_cv_ar_S" 1>&6
1846 # Test if LD_LIBRARY_PATH contains the notation for the current directory
1847 # since this would lead to problems installing/building glibc.
1848 # LD_LIBRARY_PATH contains the current directory if one of the following
1850 # - one of the terminals (":" and ";") is the first or last sign
1851 # - two terminals occur directly after each other
1852 # - the path contains an element with a dot in it
1853 echo $ac_n "checking LD_LIBRARY_PATH variable""... $ac_c" 1>&6
1854 echo "configure:1855: checking LD_LIBRARY_PATH variable" >&5
1855 case ${LD_LIBRARY_PATH} in
1856 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
1857 ld_library_path_setting="contains current directory"
1860 ld_library_path_setting="ok"
1863 echo "$ac_t""$ld_library_path_setting" 1>&6
1864 if test "$ld_library_path_setting" != "ok"; then
1865 { echo "configure: error:
1866 *** LD_LIBRARY_PATH shouldn't contain the current directory when
1867 *** building glibc. Please change the environment variable
1868 *** and run configure again." 1>&2; exit 1; }
1871 # Extract the first word of "bash", so it can be a program name with args.
1872 set dummy bash; ac_word=$2
1873 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1874 echo "configure:1875: checking for $ac_word" >&5
1875 if eval "test \"`echo '$''{'ac_cv_path_BASH'+set}'`\" = set"; then
1876 echo $ac_n "(cached) $ac_c" 1>&6
1880 ac_cv_path_BASH="$BASH" # Let the user override the test with a path.
1883 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1884 for ac_dir in $PATH; do
1885 test -z "$ac_dir" && ac_dir=.
1886 if test -f $ac_dir/$ac_word; then
1887 ac_cv_path_BASH="$ac_dir/$ac_word"
1892 test -z "$ac_cv_path_BASH" && ac_cv_path_BASH="no"
1896 BASH="$ac_cv_path_BASH"
1897 if test -n "$BASH"; then
1898 echo "$ac_t""$BASH" 1>&6
1900 echo "$ac_t""no" 1>&6
1903 if test "$BASH" != no &&
1904 $BASH -c 'test "$BASH_VERSINFO" \
1905 && test "$BASH_VERSINFO" -ge 2 >&/dev/null'; then
1906 libc_cv_have_bash2=yes
1908 libc_cv_have_bash2=no
1912 if test "$BASH" = no; then
1913 # Extract the first word of "ksh", so it can be a program name with args.
1914 set dummy ksh; ac_word=$2
1915 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1916 echo "configure:1917: checking for $ac_word" >&5
1917 if eval "test \"`echo '$''{'ac_cv_path_KSH'+set}'`\" = set"; then
1918 echo $ac_n "(cached) $ac_c" 1>&6
1922 ac_cv_path_KSH="$KSH" # Let the user override the test with a path.
1925 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1926 for ac_dir in $PATH; do
1927 test -z "$ac_dir" && ac_dir=.
1928 if test -f $ac_dir/$ac_word; then
1929 ac_cv_path_KSH="$ac_dir/$ac_word"
1934 test -z "$ac_cv_path_KSH" && ac_cv_path_KSH="no"
1938 KSH="$ac_cv_path_KSH"
1939 if test -n "$KSH"; then
1940 echo "$ac_t""$KSH" 1>&6
1942 echo "$ac_t""no" 1>&6
1945 if test "$KSH" = no; then
1948 libc_cv_have_ksh=yes
1953 libc_cv_have_ksh=yes
1959 # Extract the first word of "$ac_prog", so it can be a program name with args.
1960 set dummy $ac_prog; ac_word=$2
1961 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1962 echo "configure:1963: checking for $ac_word" >&5
1963 if eval "test \"`echo '$''{'ac_cv_path_PERL'+set}'`\" = set"; then
1964 echo $ac_n "(cached) $ac_c" 1>&6
1968 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
1971 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1972 for ac_dir in $PATH; do
1973 test -z "$ac_dir" && ac_dir=.
1974 if test -f $ac_dir/$ac_word; then
1975 ac_cv_path_PERL="$ac_dir/$ac_word"
1983 PERL="$ac_cv_path_PERL"
1984 if test -n "$PERL"; then
1985 echo "$ac_t""$PERL" 1>&6
1987 echo "$ac_t""no" 1>&6
1990 test -n "$PERL" && break
1992 test -n "$PERL" || PERL="no"
1996 echo $ac_n "checking for signed size_t type""... $ac_c" 1>&6
1997 echo "configure:1998: checking for signed size_t type" >&5
1998 if eval "test \"`echo '$''{'libc_cv_signed_size_t'+set}'`\" = set"; then
1999 echo $ac_n "(cached) $ac_c" 1>&6
2001 echo '#include <stddef.h>
2002 FOOBAR __SIZE_TYPE__ FOOBAR' > conftest.c
2003 if eval "$ac_cpp conftest.c 2>/dev/null" \
2004 | grep '^FOOBAR.*unsigned.*FOOBAR$' >/dev/null; then
2005 libc_cv_signed_size_t=no
2007 libc_cv_signed_size_t=yes
2012 echo "$ac_t""$libc_cv_signed_size_t" 1>&6
2013 if test $libc_cv_signed_size_t = yes; then
2014 cat >> confdefs.h <<\EOF
2015 #undef __SIZE_TYPE__
2016 #define __SIZE_TYPE__ unsigned
2020 echo $ac_n "checking for libc-friendly stddef.h""... $ac_c" 1>&6
2021 echo "configure:2022: checking for libc-friendly stddef.h" >&5
2022 if eval "test \"`echo '$''{'libc_cv_friendly_stddef'+set}'`\" = set"; then
2023 echo $ac_n "(cached) $ac_c" 1>&6
2025 cat > conftest.$ac_ext <<EOF
2026 #line 2027 "configure"
2027 #include "confdefs.h"
2028 #define __need_size_t
2029 #define __need_wchar_t
2034 size_t size; wchar_t wchar;
2036 #error stddef.h ignored __need_*
2038 if (&size == NULL || &wchar == NULL) abort ();
2041 if { (eval echo configure:2042: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2043 libc_cv_friendly_stddef=yes
2045 echo "configure: failed program was:" >&5
2046 cat conftest.$ac_ext >&5
2048 libc_cv_friendly_stddef=no
2053 echo "$ac_t""$libc_cv_friendly_stddef" 1>&6
2054 if test $libc_cv_friendly_stddef = yes; then
2055 config_vars="$config_vars
2056 override stddef.h = # The installed <stddef.h> seems to be libc-friendly."
2059 echo $ac_n "checking whether we need to use -P to assemble .S files""... $ac_c" 1>&6
2060 echo "configure:2061: checking whether we need to use -P to assemble .S files" >&5
2061 if eval "test \"`echo '$''{'libc_cv_need_minus_P'+set}'`\" = set"; then
2062 echo $ac_n "(cached) $ac_c" 1>&6
2064 cat > conftest.S <<EOF
2065 #include "confdefs.h"
2066 /* Nothing whatsoever. */
2068 if ${CC-cc} $CFLAGS -c conftest.S 2>/dev/null; then
2069 libc_cv_need_minus_P=no
2071 libc_cv_need_minus_P=yes
2076 echo "$ac_t""$libc_cv_need_minus_P" 1>&6
2077 if test $libc_cv_need_minus_P = yes; then
2078 config_vars="$config_vars
2079 asm-CPPFLAGS = -P # The assembler can't grok cpp's # line directives."
2082 echo $ac_n "checking for assembler global-symbol directive""... $ac_c" 1>&6
2083 echo "configure:2084: checking for assembler global-symbol directive" >&5
2084 if eval "test \"`echo '$''{'libc_cv_asm_global_directive'+set}'`\" = set"; then
2085 echo $ac_n "(cached) $ac_c" 1>&6
2087 libc_cv_asm_global_directive=UNKNOWN
2088 for ac_globl in .globl .global; do
2089 cat > conftest.s <<EOF
2094 if ${CC-cc} $CFLAGS -c conftest.s 2>/dev/null; then
2095 libc_cv_asm_global_directive=${ac_globl}
2098 test $libc_cv_asm_global_directive != UNKNOWN && break
2102 echo "$ac_t""$libc_cv_asm_global_directive" 1>&6
2103 if test $libc_cv_asm_global_directive = UNKNOWN; then
2104 { echo "configure: error: cannot determine asm global directive" 1>&2; exit 1; }
2106 cat >> confdefs.h <<EOF
2107 #define ASM_GLOBAL_DIRECTIVE ${libc_cv_asm_global_directive}
2112 echo $ac_n "checking for .set assembler directive""... $ac_c" 1>&6
2113 echo "configure:2114: checking for .set assembler directive" >&5
2114 if eval "test \"`echo '$''{'libc_cv_asm_set_directive'+set}'`\" = set"; then
2115 echo $ac_n "(cached) $ac_c" 1>&6
2117 cat > conftest.s <<EOF
2120 .set glibc_conftest_frobozz,foo
2121 $libc_cv_asm_global_directive glibc_conftest_frobozz
2123 # The alpha-dec-osf1 assembler gives only a warning for `.set'
2124 # (but it doesn't work), so we must do a linking check to be sure.
2125 cat > conftest1.c <<\EOF
2126 extern int glibc_conftest_frobozz;
2127 main () { printf ("%d\n", glibc_conftest_frobozz); }
2129 if ${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \
2130 -o conftest conftest.s conftest1.c 1>&5 2>&5; then
2131 libc_cv_asm_set_directive=yes
2133 libc_cv_asm_set_directive=no
2138 echo "$ac_t""$libc_cv_asm_set_directive" 1>&6
2139 if test $libc_cv_asm_set_directive = yes; then
2140 cat >> confdefs.h <<\EOF
2141 #define HAVE_ASM_SET_DIRECTIVE 1
2146 echo $ac_n "checking for .symver assembler directive""... $ac_c" 1>&6
2147 echo "configure:2148: checking for .symver assembler directive" >&5
2148 if eval "test \"`echo '$''{'libc_cv_asm_symver_directive'+set}'`\" = set"; then
2149 echo $ac_n "(cached) $ac_c" 1>&6
2151 cat > conftest.s <<EOF
2154 .symver _sym,sym@VERS
2156 if ${CC-cc} -c $CFLAGS $CPPFLAGS conftest.s 1>&5 2>&5; then
2157 libc_cv_asm_symver_directive=yes
2159 libc_cv_asm_symver_directive=no
2164 echo "$ac_t""$libc_cv_asm_symver_directive" 1>&6
2165 echo $ac_n "checking for ld --version-script""... $ac_c" 1>&6
2166 echo "configure:2167: checking for ld --version-script" >&5
2167 if eval "test \"`echo '$''{'libc_cv_ld_version_script_option'+set}'`\" = set"; then
2168 echo $ac_n "(cached) $ac_c" 1>&6
2170 if test $libc_cv_asm_symver_directive = yes; then
2171 cat > conftest.s <<EOF
2174 .symver _sym,sym@VERS
2176 cat > conftest.map <<EOF
2185 if ${CC-cc} -c $CFLAGS $CPPFLAGS conftest.s 1>&5 2>&5; then
2186 if { ac_try='${CC-cc} $CFLAGS -shared -o conftest.so conftest.o
2187 -nostartfiles -nostdlib
2188 -Wl,--version-script,conftest.map
2189 1>&5'; { (eval echo configure:2190: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; };
2191 libc_cv_ld_version_script_option=yes
2193 libc_cv_ld_version_script_option=no
2196 libc_cv_ld_version_script_option=no
2199 libc_cv_ld_version_script_option=no
2204 echo "$ac_t""$libc_cv_ld_version_script_option" 1>&6
2205 if test $libc_cv_asm_symver_directive = yes &&
2206 test $libc_cv_ld_version_script_option = yes &&
2207 test $enable_versioning = yes; then
2209 cat >> confdefs.h <<\EOF
2210 #define DO_VERSIONING 1
2218 if test $VERSIONING = no; then
2220 *** WARNING: You should not compile GNU libc without versioning. Not using
2221 *** versioning will introduce incompatibilities so that old binaries
2222 *** will not run anymore.
2223 *** For versioning you need recent binutils (binutils-2.8.1.0.17 or newer)."
2225 if test $elf = yes; then
2226 echo $ac_n "checking for .previous assembler directive""... $ac_c" 1>&6
2227 echo "configure:2228: checking for .previous assembler directive" >&5
2228 if eval "test \"`echo '$''{'libc_cv_asm_previous_directive'+set}'`\" = set"; then
2229 echo $ac_n "(cached) $ac_c" 1>&6
2231 cat > conftest.s <<EOF
2232 .section foo_section
2235 if { ac_try='${CC-cc} -c $CFLAGS conftest.s 1>&5'; { (eval echo configure:2236: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
2236 libc_cv_asm_previous_directive=yes
2238 libc_cv_asm_previous_directive=no
2243 echo "$ac_t""$libc_cv_asm_previous_directive" 1>&6
2244 if test $libc_cv_asm_previous_directive = yes; then
2245 cat >> confdefs.h <<\EOF
2246 #define HAVE_ASM_PREVIOUS_DIRECTIVE 1
2250 echo $ac_n "checking for .popsection assembler directive""... $ac_c" 1>&6
2251 echo "configure:2252: checking for .popsection assembler directive" >&5
2252 if eval "test \"`echo '$''{'libc_cv_asm_popsection_directive'+set}'`\" = set"; then
2253 echo $ac_n "(cached) $ac_c" 1>&6
2255 cat > conftest.s <<EOF
2256 .pushsection foo_section
2259 if { ac_try='${CC-cc} -c $CFLAGS conftest.s 1>&5'; { (eval echo configure:2260: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
2260 libc_cv_asm_popsection_directive=yes
2262 libc_cv_asm_popsection_directive=no
2267 echo "$ac_t""$libc_cv_asm_popsection_directive" 1>&6
2268 if test $libc_cv_asm_popsection_directive = yes; then
2269 cat >> confdefs.h <<\EOF
2270 #define HAVE_ASM_POPSECTION_DIRECTIVE 1
2277 if test $elf != yes; then
2278 echo $ac_n "checking for .init and .fini sections""... $ac_c" 1>&6
2279 echo "configure:2280: checking for .init and .fini sections" >&5
2280 if eval "test \"`echo '$''{'libc_cv_have_initfini'+set}'`\" = set"; then
2281 echo $ac_n "(cached) $ac_c" 1>&6
2283 cat > conftest.$ac_ext <<EOF
2284 #line 2285 "configure"
2285 #include "confdefs.h"
2288 asm (".section .init");
2289 asm (".section .fini");
2293 if { (eval echo configure:2294: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2295 libc_cv_have_initfini=yes
2297 echo "configure: failed program was:" >&5
2298 cat conftest.$ac_ext >&5
2300 libc_cv_have_initfini=no
2305 echo "$ac_t""$libc_cv_have_initfini" 1>&6
2306 if test $libc_cv_have_initfini = yes; then
2307 cat >> confdefs.h <<\EOF
2308 #define HAVE_INITFINI 1
2316 if test $elf = yes; then
2317 libc_cv_asm_underscores=no
2319 if test $ac_cv_prog_cc_works = yes; then
2320 echo $ac_n "checking for _ prefix on C symbol names""... $ac_c" 1>&6
2321 echo "configure:2322: checking for _ prefix on C symbol names" >&5
2322 if eval "test \"`echo '$''{'libc_cv_asm_underscores'+set}'`\" = set"; then
2323 echo $ac_n "(cached) $ac_c" 1>&6
2325 cat > conftest.$ac_ext <<EOF
2326 #line 2327 "configure"
2327 #include "confdefs.h"
2328 asm ("_glibc_foobar:");
2333 if { (eval echo configure:2334: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2335 libc_cv_asm_underscores=yes
2337 echo "configure: failed program was:" >&5
2338 cat conftest.$ac_ext >&5
2340 libc_cv_asm_underscores=no
2345 echo "$ac_t""$libc_cv_asm_underscores" 1>&6
2347 echo $ac_n "checking for _ prefix on C symbol names""... $ac_c" 1>&6
2348 echo "configure:2349: checking for _ prefix on C symbol names" >&5
2349 if eval "test \"`echo '$''{'libc_cv_asm_underscores'+set}'`\" = set"; then
2350 echo $ac_n "(cached) $ac_c" 1>&6
2352 cat > conftest.$ac_ext <<EOF
2353 #line 2354 "configure"
2354 #include "confdefs.h"
2355 void underscore_test(void) {
2358 if { (eval echo configure:2359: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2359 if grep _underscore_test conftest* >/dev/null; then
2361 libc_cv_asm_underscores=yes
2364 libc_cv_asm_underscores=no
2367 echo "configure: failed program was:" >&5
2368 cat conftest.$ac_ext >&5
2370 libc_cv_asm_underscores=no
2375 echo "$ac_t""$libc_cv_asm_underscores" 1>&6
2378 if test $libc_cv_asm_underscores = no; then
2379 cat >> confdefs.h <<\EOF
2380 #define NO_UNDERSCORES 1
2385 if test $elf = yes; then
2386 libc_cv_weak_symbols=yes
2389 echo $ac_n "checking for assembler .weak directive""... $ac_c" 1>&6
2390 echo "configure:2391: checking for assembler .weak directive" >&5
2391 if eval "test \"`echo '$''{'libc_cv_asm_weak_directive'+set}'`\" = set"; then
2392 echo $ac_n "(cached) $ac_c" 1>&6
2394 cat > conftest.s <<EOF
2396 ${libc_cv_asm_global_directive} foo
2399 .weak bar; bar = foo
2401 if ${CC-cc} $CFLAGS -c conftest.s 2>/dev/null; then
2402 libc_cv_asm_weak_directive=yes
2404 libc_cv_asm_weak_directive=no
2409 echo "$ac_t""$libc_cv_asm_weak_directive" 1>&6
2411 if test $libc_cv_asm_weak_directive = no; then
2412 echo $ac_n "checking for assembler .weakext directive""... $ac_c" 1>&6
2413 echo "configure:2414: checking for assembler .weakext directive" >&5
2414 if eval "test \"`echo '$''{'libc_cv_asm_weakext_directive'+set}'`\" = set"; then
2415 echo $ac_n "(cached) $ac_c" 1>&6
2417 cat > conftest.s <<EOF
2419 ${libc_cv_asm_global_directive} foo
2423 ${libc_cv_asm_global_directive} baz
2426 if ${CC-cc} $CFLAGS -c conftest.s 2>/dev/null; then
2427 libc_cv_asm_weakext_directive=yes
2429 libc_cv_asm_weakext_directive=no
2434 echo "$ac_t""$libc_cv_asm_weakext_directive" 1>&6
2438 if test $libc_cv_asm_weak_directive = yes; then
2439 cat >> confdefs.h <<\EOF
2440 #define HAVE_ASM_WEAK_DIRECTIVE 1
2443 elif test $libc_cv_asm_weakext_directive = yes; then
2444 cat >> confdefs.h <<\EOF
2445 #define HAVE_ASM_WEAKEXT_DIRECTIVE 1
2450 echo $ac_n "checking for ld --no-whole-archive""... $ac_c" 1>&6
2451 echo "configure:2452: checking for ld --no-whole-archive" >&5
2452 if eval "test \"`echo '$''{'libc_cv_ld_no_whole_archive'+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 -Wl,--no-whole-archive
2462 -o conftest conftest.c 1>&5'; { (eval echo configure:2463: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
2463 libc_cv_ld_no_whole_archive=yes
2465 libc_cv_ld_no_whole_archive=no
2470 echo "$ac_t""$libc_cv_ld_no_whole_archive" 1>&6
2472 echo $ac_n "checking for gcc -fno-exceptions""... $ac_c" 1>&6
2473 echo "configure:2474: checking for gcc -fno-exceptions" >&5
2474 if eval "test \"`echo '$''{'libc_cv_gcc_no_exceptions'+set}'`\" = set"; then
2475 echo $ac_n "(cached) $ac_c" 1>&6
2477 cat > conftest.c <<\EOF
2482 if { ac_try='${CC-cc} $CFLAGS
2483 -nostdlib -nostartfiles -fno-exceptions
2484 -o conftest conftest.c 1>&5'; { (eval echo configure:2485: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
2485 libc_cv_gcc_no_exceptions=yes
2487 libc_cv_gcc_no_exceptions=no
2492 echo "$ac_t""$libc_cv_gcc_no_exceptions" 1>&6
2494 if test "$base_machine" = alpha ; then
2495 echo $ac_n "checking for function ..ng prefix""... $ac_c" 1>&6
2496 echo "configure:2497: checking for function ..ng prefix" >&5
2497 if eval "test \"`echo '$''{'libc_cv_gcc_alpha_ng_prefix'+set}'`\" = set"; then
2498 echo $ac_n "(cached) $ac_c" 1>&6
2500 cat > conftest.c <<\EOF
2503 if { ac_try='${CC-cc} -S conftest.c -o - | fgrep "\$foo..ng" > /dev/null'; { (eval echo configure:2504: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; };
2505 libc_cv_gcc_alpha_ng_prefix=yes
2507 libc_cv_gcc_alpha_ng_prefix=no
2512 echo "$ac_t""$libc_cv_gcc_alpha_ng_prefix" 1>&6
2513 if test $libc_cv_gcc_alpha_ng_prefix = yes ; then
2514 cat >> confdefs.h <<\EOF
2515 #define ASM_ALPHA_NG_SYMBOL_PREFIX "$"
2519 cat >> confdefs.h <<\EOF
2520 #define ASM_ALPHA_NG_SYMBOL_PREFIX ""
2526 echo $ac_n "checking for DWARF2 unwind info support""... $ac_c" 1>&6
2527 echo "configure:2528: checking for DWARF2 unwind info support" >&5
2528 if eval "test \"`echo '$''{'libc_cv_gcc_dwarf2_unwind_info'+set}'`\" = set"; then
2529 echo $ac_n "(cached) $ac_c" 1>&6
2531 cat > conftest.c <<EOF
2532 #line 2533 "configure"
2533 static char __EH_FRAME_BEGIN__;
2536 #ifdef CHECK__register_frame
2537 __register_frame (__EH_FRAME_BEGIN__);
2538 __deregister_frame (__EH_FRAME_BEGIN__);
2540 #ifdef CHECK__register_frame_info
2541 __register_frame_info (__EH_FRAME_BEGIN__);
2542 __deregister_frame_info (__EH_FRAME_BEGIN__);
2547 /* FIXME: this is fragile. */
2557 if { ac_try='${CC-cc} $CFLAGS -DCHECK__register_frame_info
2558 -nostdlib -nostartfiles
2559 -o conftest conftest.c -lgcc >&5'; { (eval echo configure:2560: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
2560 libc_cv_gcc_dwarf2_unwind_info=static
2562 libc_cv_gcc_dwarf2_unwind_info=no
2564 if test $libc_cv_gcc_dwarf2_unwind_info = no; then
2565 if { ac_try='${CC-cc} $CFLAGS -DCHECK__register_frame
2566 -nostdlib -nostartfiles
2567 -o conftest conftest.c -lgcc >&5'; { (eval echo configure:2568: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
2568 libc_cv_gcc_dwarf2_unwind_info=yes
2570 libc_cv_gcc_dwarf2_unwind_info=no
2576 echo "$ac_t""$libc_cv_gcc_dwarf2_unwind_info" 1>&6
2577 case $libc_cv_gcc_dwarf2_unwind_info in
2579 cat >> confdefs.h <<\EOF
2580 #define HAVE_DWARF2_UNWIND_INFO 1
2585 cat >> confdefs.h <<\EOF
2586 #define HAVE_DWARF2_UNWIND_INFO 1
2589 cat >> confdefs.h <<\EOF
2590 #define HAVE_DWARF2_UNWIND_INFO_STATIC 1
2596 ### End of automated tests.
2597 ### Now run sysdeps configure fragments.
2599 # sysdeps configure fragments may set these with files to be linked below.
2603 # They also can set these variables.
2604 ldd_rewrite_script=no
2606 # Iterate over all the sysdep directories we will use, running their
2607 # configure fragments, and looking for a uname implementation.
2609 for dir in $sysnames; do
2612 *) dest=$srcdir/$dir ;;
2614 if test -r $dest/configure; then
2615 echo "$ac_t""running configure fragment for $dest" 1>&6
2619 if test -z "$uname"; then
2620 if test -r $dest/uname.c ||
2621 test -r $dest/uname.S ||
2622 { test -r $dest/syscalls.list &&
2623 grep '^uname[ ]' $dest/syscalls.list >/dev/null; }; then
2631 # If we will use the generic uname implementation, we must figure out what
2632 # it will say by examining the system, and write the results in config-name.h.
2633 if test "$uname" = "sysdeps/generic"; then
2635 uname_sysname=`echo $config_os | sed 's/[0-9.]*$//'`
2636 if test $uname_sysname != $config_os; then
2637 config_release=`echo $config_os | sed s/$uname_sysname//`
2640 echo $ac_n "checking OS release for uname""... $ac_c" 1>&6
2641 echo "configure:2642: checking OS release for uname" >&5
2642 if eval "test \"`echo '$''{'libc_cv_uname_release'+set}'`\" = set"; then
2643 echo $ac_n "(cached) $ac_c" 1>&6
2645 kernel_release=`echo "$kernel_id" | sed 's/^[^0-9.]*\([0-9.]*\).*$/\1/'`
2646 if test x`echo "$config_release" | sed "s/^$kernel_release//"` \
2647 != x$config_release; then
2648 # The configuration release is a substring of the kernel release.
2649 libc_cv_uname_release=$kernel_release
2650 elif test x$config_release != x; then
2651 libc_cv_uname_release=$config_release
2652 elif test x$kernel_release != x; then
2653 libc_cv_uname_release=$kernel_release
2655 libc_cv_uname_release=unknown
2659 echo "$ac_t""$libc_cv_uname_release" 1>&6
2660 uname_release="$libc_cv_uname_release"
2662 echo $ac_n "checking OS version for uname""... $ac_c" 1>&6
2663 echo "configure:2664: checking OS version for uname" >&5
2664 if eval "test \"`echo '$''{'libc_cv_uname_version'+set}'`\" = set"; then
2665 echo $ac_n "(cached) $ac_c" 1>&6
2667 kernel_version=`echo "$kernel_id" | sed 's/^[^#]*#\([0-9]*\).*$/\1/'`
2668 if test -n "$kernel_version"; then
2669 libc_cv_uname_version="$kernel_version"
2671 libc_cv_uname_version=unknown
2675 echo "$ac_t""$libc_cv_uname_version" 1>&6
2676 uname_version="$libc_cv_uname_version"
2678 config_uname=config-name.h:config-name.in
2680 # For non-generic uname, we don't need to create config-name.h at all.
2684 echo $ac_n "checking stdio selection""... $ac_c" 1>&6
2685 echo "configure:2686: checking stdio selection" >&5
2688 libio) cat >> confdefs.h <<\EOF
2689 #define USE_IN_LIBIO 1
2692 default) stdio=stdio ;;
2694 echo "$ac_t""$stdio" 1>&6
2696 echo $ac_n "checking ldap selection""... $ac_c" 1>&6
2697 echo "configure:2698: checking ldap selection" >&5
2706 echo "$ac_t""$ldap" 1>&6
2716 if test $gnu_ld = yes; then
2717 cat >> confdefs.h <<\EOF
2718 #define HAVE_GNU_LD 1
2722 if test $gnu_as = yes; then
2723 cat >> confdefs.h <<\EOF
2724 #define HAVE_GNU_AS 1
2728 if test $elf = yes; then
2729 cat >> confdefs.h <<\EOF
2737 if test $shared = default; then
2738 if test $gnu_ld = yes; then
2741 # For now we do not assume shared libs are available. In future more
2742 # tests might become available.
2747 if test $static = no && test $shared = yes; then
2750 { echo "configure: error:
2751 *** You must compile with support for the static library since the shared
2752 *** library uses it. Restart configure without \`--disable-static'." 1>&2; exit 1; }
2759 echo $ac_n "checking whether -fPIC is default""... $ac_c" 1>&6
2760 echo "configure:2761: checking whether -fPIC is default" >&5
2761 if eval "test \"`echo '$''{'pic_default'+set}'`\" = set"; then
2762 echo $ac_n "(cached) $ac_c" 1>&6
2765 cat > conftest.c <<EOF
2766 #if defined __PIC__ || defined __pic__ || defined PIC || defined pic
2767 # error PIC is default.
2770 if eval "${CC-cc} -S conftest.c 2>&5 1>&5"; then
2776 echo "$ac_t""$pic_default" 1>&6
2787 if test "`(cd $srcdir; pwd)`" = "`pwd`"; then
2790 config_makefile=Makefile
2793 VERSION=`sed -e 's/^#define VERSION "\([^"]*\)"/\1/p' -e d < $srcdir/version.h`
2797 cat > confcache <<\EOF
2798 # This file is a shell script that caches the results of configure
2799 # tests run on this system so they can be shared between configure
2800 # scripts and configure runs. It is not useful on other systems.
2801 # If it contains results you don't want to keep, you may remove or edit it.
2803 # By default, configure uses ./config.cache as the cache file,
2804 # creating it if it does not exist already. You can give configure
2805 # the --cache-file=FILE option to use a different cache file; that is
2806 # what configure does when it calls configure scripts in
2807 # subdirectories, so they share the cache.
2808 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2809 # config.status only pays attention to the cache file if you give it the
2810 # --recheck option to rerun configure.
2813 # The following way of writing the cache mishandles newlines in values,
2814 # but we know of no workaround that is simple, portable, and efficient.
2815 # So, don't put newlines in cache variables' values.
2816 # Ultrix sh set writes to stderr and can't be redirected directly,
2817 # and sets the high bit in the cache file unless we assign to the vars.
2819 case `(ac_space=' '; set) 2>&1` in
2821 # `set' does not quote correctly, so add quotes (double-quote substitution
2822 # turns \\\\ into \\, and sed turns \\ into \).
2824 -e "s/'/'\\\\''/g" \
2825 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2828 # `set' quotes correctly as required by POSIX, so do not add quotes.
2829 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2832 if cmp -s $cache_file confcache; then
2835 if test -w $cache_file; then
2836 echo "updating cache $cache_file"
2837 cat confcache > $cache_file
2839 echo "not updating unwritable cache $cache_file"
2844 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
2846 test "x$prefix" = xNONE && prefix=$ac_default_prefix
2847 # Let make expand exec_prefix.
2848 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
2850 # Any assignment to VPATH causes Sun make to only execute
2851 # the first set of double-colon rules, so remove it if not needed.
2852 # If there is a colon in the path, we need to keep it.
2853 if test "x$srcdir" = x.; then
2854 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
2857 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
2859 DEFS=-DHAVE_CONFIG_H
2861 # Without the "./", some shells look in PATH for config.status.
2862 : ${CONFIG_STATUS=./config.status}
2864 echo creating $CONFIG_STATUS
2865 rm -f $CONFIG_STATUS
2866 cat > $CONFIG_STATUS <<EOF
2868 # Generated automatically by configure.
2869 # Run this file to recreate the current configuration.
2870 # This directory was configured as follows,
2871 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
2873 # $0 $ac_configure_args
2875 # Compiler output produced by configure, useful for debugging
2876 # configure, is in ./config.log if it exists.
2878 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
2881 case "\$ac_option" in
2882 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
2883 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
2884 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
2885 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
2886 echo "$CONFIG_STATUS generated by autoconf version 2.12"
2888 -help | --help | --hel | --he | --h)
2889 echo "\$ac_cs_usage"; exit 0 ;;
2890 *) echo "\$ac_cs_usage"; exit 1 ;;
2894 ac_given_srcdir=$srcdir
2895 ac_given_INSTALL="$INSTALL"
2897 trap 'rm -fr `echo "config.make glibcbug ${config_makefile} ${config_uname} config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
2899 cat >> $CONFIG_STATUS <<EOF
2901 # Protect against being on the right side of a sed subst in config.status.
2902 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
2903 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
2906 s%@CFLAGS@%$CFLAGS%g
2907 s%@CPPFLAGS@%$CPPFLAGS%g
2908 s%@CXXFLAGS@%$CXXFLAGS%g
2910 s%@LDFLAGS@%$LDFLAGS%g
2912 s%@exec_prefix@%$exec_prefix%g
2913 s%@prefix@%$prefix%g
2914 s%@program_transform_name@%$program_transform_name%g
2915 s%@bindir@%$bindir%g
2916 s%@sbindir@%$sbindir%g
2917 s%@libexecdir@%$libexecdir%g
2918 s%@datadir@%$datadir%g
2919 s%@sysconfdir@%$sysconfdir%g
2920 s%@sharedstatedir@%$sharedstatedir%g
2921 s%@localstatedir@%$localstatedir%g
2922 s%@libdir@%$libdir%g
2923 s%@includedir@%$includedir%g
2924 s%@oldincludedir@%$oldincludedir%g
2925 s%@infodir@%$infodir%g
2926 s%@mandir@%$mandir%g
2927 s%@with_cvs@%$with_cvs%g
2928 s%@subdirs@%$subdirs%g
2930 s%@host_alias@%$host_alias%g
2931 s%@host_cpu@%$host_cpu%g
2932 s%@host_vendor@%$host_vendor%g
2933 s%@host_os@%$host_os%g
2934 s%@base_machine@%$base_machine%g
2935 s%@sysnames@%$sysnames%g
2936 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
2937 s%@INSTALL_DATA@%$INSTALL_DATA%g
2940 s%@build_alias@%$build_alias%g
2941 s%@build_cpu@%$build_cpu%g
2942 s%@build_vendor@%$build_vendor%g
2943 s%@build_os@%$build_os%g
2946 s%@MSGFMT@%$MSGFMT%g
2947 s%@MAKEINFO@%$MAKEINFO%g
2948 s%@cross_linkable@%$cross_linkable%g
2949 s%@BUILD_CC@%$BUILD_CC%g
2950 s%@cross_compiling@%$cross_compiling%g
2953 s%@RANLIB@%$RANLIB%g
2955 s%@SYSINCLUDES@%$SYSINCLUDES%g
2956 s%@libc_cv_ar_S@%$libc_cv_ar_S%g
2958 s%@libc_cv_have_bash2@%$libc_cv_have_bash2%g
2960 s%@libc_cv_have_ksh@%$libc_cv_have_ksh%g
2962 s%@VERSIONING@%$VERSIONING%g
2963 s%@libc_cv_have_initfini@%$libc_cv_have_initfini%g
2964 s%@libc_cv_ld_no_whole_archive@%$libc_cv_ld_no_whole_archive%g
2965 s%@libc_cv_gcc_no_exceptions@%$libc_cv_gcc_no_exceptions%g
2966 s%@uname_sysname@%$uname_sysname%g
2967 s%@uname_release@%$uname_release%g
2968 s%@uname_version@%$uname_version%g
2971 s%@libc_cv_slibdir@%$libc_cv_slibdir%g
2972 s%@libc_cv_sysconfdir@%$libc_cv_sysconfdir%g
2973 s%@libc_cv_rootsbindir@%$libc_cv_rootsbindir%g
2974 s%@has_ldconfig@%$has_ldconfig%g
2975 s%@ldd_rewrite_script@%$ldd_rewrite_script%g
2976 s%@gnu_ld@%$gnu_ld%g
2977 s%@gnu_as@%$gnu_as%g
2979 s%@static@%$static%g
2980 s%@shared@%$shared%g
2981 s%@pic_default@%$pic_default%g
2982 s%@profile@%$profile%g
2983 s%@omitfp@%$omitfp%g
2984 s%@bounded@%$bounded%g
2985 s%@static_nss@%$static_nss%g
2986 s%@nopic_initfini@%$nopic_initfini%g
2987 s%@DEFINES@%$DEFINES%g
2988 s%@VERSION@%$VERSION%g
2993 cat >> $CONFIG_STATUS <<\EOF
2995 # Split the substitutions into bite-sized pieces for seds with
2996 # small command number limits, like on Digital OSF/1 and HP-UX.
2997 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
2998 ac_file=1 # Number of current file.
2999 ac_beg=1 # First line for current file.
3000 ac_end=$ac_max_sed_cmds # Line after last line for current file.
3003 while $ac_more_lines; do
3004 if test $ac_beg -gt 1; then
3005 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
3007 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
3009 if test ! -s conftest.s$ac_file; then
3011 rm -f conftest.s$ac_file
3013 if test -z "$ac_sed_cmds"; then
3014 ac_sed_cmds="sed -f conftest.s$ac_file"
3016 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
3018 ac_file=`expr $ac_file + 1`
3020 ac_end=`expr $ac_end + $ac_max_sed_cmds`
3023 if test -z "$ac_sed_cmds"; then
3028 cat >> $CONFIG_STATUS <<EOF
3030 CONFIG_FILES=\${CONFIG_FILES-"config.make glibcbug ${config_makefile} ${config_uname}"}
3032 cat >> $CONFIG_STATUS <<\EOF
3033 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
3034 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3036 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3037 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3038 *) ac_file_in="${ac_file}.in" ;;
3041 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
3043 # Remove last slash and all that follows it. Not all systems have dirname.
3044 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3045 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3046 # The file is in a subdirectory.
3047 test ! -d "$ac_dir" && mkdir "$ac_dir"
3048 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
3049 # A "../" for each directory in $ac_dir_suffix.
3050 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
3052 ac_dir_suffix= ac_dots=
3055 case "$ac_given_srcdir" in
3057 if test -z "$ac_dots"; then top_srcdir=.
3058 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
3059 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
3061 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
3062 top_srcdir="$ac_dots$ac_given_srcdir" ;;
3065 case "$ac_given_INSTALL" in
3066 [/$]*) INSTALL="$ac_given_INSTALL" ;;
3067 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
3070 echo creating "$ac_file"
3072 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
3074 *Makefile*) ac_comsub="1i\\
3075 # $configure_input" ;;
3079 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3081 s%@configure_input@%$configure_input%g
3082 s%@srcdir@%$srcdir%g
3083 s%@top_srcdir@%$top_srcdir%g
3084 s%@INSTALL@%$INSTALL%g
3085 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
3089 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
3090 # NAME is the cpp macro being defined and VALUE is the value it is being given.
3092 # ac_d sets the value in "#define NAME VALUE" lines.
3093 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
3094 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
3097 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
3098 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3099 ac_uB='\([ ]\)%\1#\2define\3'
3102 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
3103 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3104 ac_eB='$%\1#\2define\3'
3108 if test "${CONFIG_HEADERS+set}" != set; then
3110 cat >> $CONFIG_STATUS <<EOF
3111 CONFIG_HEADERS="config.h"
3113 cat >> $CONFIG_STATUS <<\EOF
3115 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
3116 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3118 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3119 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3120 *) ac_file_in="${ac_file}.in" ;;
3123 echo creating $ac_file
3125 rm -f conftest.frag conftest.in conftest.out
3126 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3127 cat $ac_file_inputs > conftest.in
3131 # Transform confdefs.h into a sed script conftest.vals that substitutes
3132 # the proper values into config.h.in to produce config.h. And first:
3133 # Protect against being on the right side of a sed subst in config.status.
3134 # Protect against being in an unquoted here document in config.status.
3136 cat > conftest.hdr <<\EOF
3139 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
3143 sed -n -f conftest.hdr confdefs.h > conftest.vals
3146 # This sed command replaces #undef with comments. This is necessary, for
3147 # example, in the case of _POSIX_SOURCE, which is predefined and required
3148 # on some systems where configure will not decide to define it.
3149 cat >> conftest.vals <<\EOF
3150 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
3153 # Break up conftest.vals because some shells have a limit on
3154 # the size of here documents, and old seds have small limits too.
3159 ac_lines=`grep -c . conftest.vals`
3160 # grep -c gives empty output for an empty file on some AIX systems.
3161 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
3162 # Write a limited-size here document to conftest.frag.
3163 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
3164 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
3166 sed -f conftest.frag conftest.in > conftest.out
3168 mv conftest.out conftest.in
3170 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
3172 mv conftest.tail conftest.vals
3176 cat >> $CONFIG_STATUS <<\EOF
3177 rm -f conftest.frag conftest.h
3178 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
3179 cat conftest.in >> conftest.h
3181 if cmp -s $ac_file conftest.h 2>/dev/null; then
3182 echo "$ac_file is unchanged"
3185 # Remove last slash and all that follows it. Not all systems have dirname.
3186 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3187 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3188 # The file is in a subdirectory.
3189 test ! -d "$ac_dir" && mkdir "$ac_dir"
3192 mv conftest.h $ac_file
3198 cat >> $CONFIG_STATUS <<EOF
3199 ac_sources="`echo $libc_link_sources`"
3200 ac_dests="`echo $libc_link_dests`"
3203 cat >> $CONFIG_STATUS <<\EOF
3204 srcdir=$ac_given_srcdir
3205 while test -n "$ac_sources"; do
3206 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
3207 set $ac_sources; ac_source=$1; shift; ac_sources=$*
3209 echo "linking $srcdir/$ac_source to $ac_dest"
3211 if test ! -r $srcdir/$ac_source; then
3212 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
3216 # Make relative symlinks.
3217 # Remove last slash and all that follows it. Not all systems have dirname.
3218 ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'`
3219 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
3220 # The dest file is in a subdirectory.
3221 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
3222 ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`"
3223 # A "../" for each directory in $ac_dest_dir_suffix.
3224 ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'`
3226 ac_dest_dir_suffix= ac_dots=
3230 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
3231 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
3234 # Make a symlink if possible; otherwise try a hard link.
3235 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
3236 ln $srcdir/$ac_source $ac_dest; then :
3238 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
3242 cat >> $CONFIG_STATUS <<EOF
3243 echo '$config_vars' >> config.make; test -d bits || mkdir bits
3245 cat >> $CONFIG_STATUS <<\EOF
3249 chmod +x $CONFIG_STATUS
3250 rm -fr confdefs* $ac_clean_files
3251 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
3253 if test "$no_recursion" != yes; then
3255 # Remove --cache-file and --srcdir arguments so they do not pile up.
3256 ac_sub_configure_args=
3258 for ac_arg in $ac_configure_args; do
3259 if test -n "$ac_prev"; then
3264 -cache-file | --cache-file | --cache-fil | --cache-fi \
3265 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
3266 ac_prev=cache_file ;;
3267 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
3268 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
3270 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
3272 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
3274 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
3278 for ac_config_dir in $add_ons; do
3280 # Do not complain, so a configure script can configure whichever
3281 # parts of a large source tree are present.
3282 if test ! -d $srcdir/$ac_config_dir; then
3286 echo configuring in $ac_config_dir
3291 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
3293 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
3301 # A "../" for each directory in /$ac_config_dir.
3302 ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
3305 .) # No --srcdir option. We are building in place.
3306 ac_sub_srcdir=$srcdir ;;
3307 /*) # Absolute path.
3308 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
3310 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
3313 # Check for guested configure; otherwise get Cygnus style configure.
3314 if test -f $ac_sub_srcdir/configure; then
3315 ac_sub_configure=$ac_sub_srcdir/configure
3316 elif test -f $ac_sub_srcdir/configure.in; then
3317 ac_sub_configure=$ac_configure
3319 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
3323 # The recursion is here.
3324 if test -n "$ac_sub_configure"; then
3326 # Make the cache file name correct relative to the subdirectory.
3327 case "$cache_file" in
3328 /*) ac_sub_cache_file=$cache_file ;;
3330 ac_sub_cache_file="$ac_dots$cache_file" ;;
3332 case "$ac_given_INSTALL" in
3333 [/$]*) INSTALL="$ac_given_INSTALL" ;;
3334 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
3337 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
3338 # The eval makes quoting arguments work.
3339 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
3342 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }