3 # From configure.in CVSid
14 # Guess values for system-dependent variables and create Makefiles.
15 # Generated automatically using autoconf version 2.14.1
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-shared build shared library [default=yes if GNU ld & ELF]"
49 --enable-profile build profiled library [default=yes]"
51 --enable-omitfp build undebuggable optimized library [default=no]"
53 --enable-bounded build with runtime bounds checking [default=no]"
55 --disable-versioning do not include versioning information in the
56 library objects [default=yes if supported]"
58 --enable-add-ons[=DIR1,DIR2]...
59 configure and build add-ons in DIR1,DIR2,...
60 search for add-ons if no parameter given"
62 --enable-static-nss build static NSS modules [default=no]"
64 --disable-force-install don't force installation of files from this package,
65 even if they are older than the installed files"
67 --enable-kernel=VERSION compile for compatibility with kernel not older
70 # Initialize some variables set by options.
71 # The variables have the same names as the options, with
72 # dashes changed to underlines.
74 cache_file
=.
/config.cache
83 program_transform_name
=s
,x
,x
,
91 bindir
='${exec_prefix}/bin'
92 sbindir
='${exec_prefix}/sbin'
93 libexecdir
='${exec_prefix}/libexec'
94 datadir
='${prefix}/share'
95 sysconfdir
='${prefix}/etc'
96 sharedstatedir
='${prefix}/com'
97 localstatedir
='${prefix}/var'
98 libdir
='${exec_prefix}/lib'
99 includedir
='${prefix}/include'
100 oldincludedir
='/usr/include'
101 infodir
='${prefix}/info'
102 mandir
='${prefix}/man'
104 # Initialize some other variables.
107 SHELL
=${CONFIG_SHELL-/bin/sh}
108 # Maximum number of lines to put in a shell here document.
115 # If the previous option needs an argument, assign it.
116 if test -n "$ac_prev"; then
117 eval "$ac_prev=\$ac_option"
123 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
127 # Accept the important Cygnus configure options, so we can diagnose typos.
131 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
133 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
134 bindir
="$ac_optarg" ;;
136 -build |
--build |
--buil |
--bui |
--bu)
138 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
139 build
="$ac_optarg" ;;
141 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
142 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
143 ac_prev
=cache_file
;;
144 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
145 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
146 cache_file
="$ac_optarg" ;;
148 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
150 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
152 datadir
="$ac_optarg" ;;
154 -disable-* |
--disable-*)
155 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
156 # Reject names that are not valid shell variable names.
157 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
158 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
160 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
161 eval "enable_${ac_feature}=no" ;;
163 -enable-* |
--enable-*)
164 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
165 # Reject names that are not valid shell variable names.
166 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
167 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
169 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
174 eval "enable_${ac_feature}='$ac_optarg'" ;;
176 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
177 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
178 |
--exec |
--exe |
--ex)
179 ac_prev
=exec_prefix
;;
180 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
181 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
182 |
--exec=* |
--exe=* |
--ex=*)
183 exec_prefix
="$ac_optarg" ;;
185 -gas |
--gas |
--ga |
--g)
186 # Obsolete; use --with-gas.
189 -help |
--help |
--hel |
--he)
190 # Omit some internal or obsolete options to make the list less imposing.
191 # This message is too long to be a string in the A/UX 3.1 sh.
193 Usage: configure [options] [host]
194 Options: [defaults in brackets after descriptions]
196 --cache-file=FILE cache test results in FILE
197 --help print this message
198 --no-create do not create output files
199 --quiet, --silent do not print \`checking...' messages
200 --version print the version of autoconf that created configure
201 Directory and file names:
202 --prefix=PREFIX install architecture-independent files in PREFIX
204 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
206 --bindir=DIR user executables in DIR [EPREFIX/bin]
207 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
208 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
209 --datadir=DIR read-only architecture-independent data in DIR
211 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
212 --sharedstatedir=DIR modifiable architecture-independent data in DIR
214 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
215 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
216 --includedir=DIR C header files in DIR [PREFIX/include]
217 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
218 --infodir=DIR info documentation in DIR [PREFIX/info]
219 --mandir=DIR man documentation in DIR [PREFIX/man]
220 --srcdir=DIR find the sources in DIR [configure dir or ..]
221 --program-prefix=PREFIX prepend PREFIX to installed program names
222 --program-suffix=SUFFIX append SUFFIX to installed program names
223 --program-transform-name=PROGRAM
224 run sed PROGRAM on installed program names
228 --build=BUILD configure for building on BUILD [BUILD=HOST]
229 --host=HOST configure for HOST [guessed]
230 --target=TARGET configure for TARGET [TARGET=HOST]
231 Features and packages:
232 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
233 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
234 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
235 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
236 --x-includes=DIR X include files are in DIR
237 --x-libraries=DIR X library files are in DIR
239 if test -n "$ac_help"; then
240 echo "--enable and --with options recognized:$ac_help"
244 -host |
--host |
--hos |
--ho)
246 -host=* |
--host=* |
--hos=* |
--ho=*)
249 -includedir |
--includedir |
--includedi |
--included |
--include \
250 |
--includ |
--inclu |
--incl |
--inc)
251 ac_prev
=includedir
;;
252 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
253 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
254 includedir
="$ac_optarg" ;;
256 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
258 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
259 infodir
="$ac_optarg" ;;
261 -libdir |
--libdir |
--libdi |
--libd)
263 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
264 libdir
="$ac_optarg" ;;
266 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
267 |
--libexe |
--libex |
--libe)
268 ac_prev
=libexecdir
;;
269 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
270 |
--libexe=* |
--libex=* |
--libe=*)
271 libexecdir
="$ac_optarg" ;;
273 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
274 |
--localstate |
--localstat |
--localsta |
--localst \
275 |
--locals |
--local |
--loca |
--loc |
--lo)
276 ac_prev
=localstatedir
;;
277 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
278 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
279 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
280 localstatedir
="$ac_optarg" ;;
282 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
284 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
285 mandir
="$ac_optarg" ;;
288 # Obsolete; use --without-fp.
291 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
295 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
296 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
299 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
300 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
301 |
--oldin |
--oldi |
--old |
--ol |
--o)
302 ac_prev
=oldincludedir
;;
303 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
304 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
305 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
306 oldincludedir
="$ac_optarg" ;;
308 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
310 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
311 prefix
="$ac_optarg" ;;
313 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
314 |
--program-pre |
--program-pr |
--program-p)
315 ac_prev
=program_prefix
;;
316 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
317 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
318 program_prefix
="$ac_optarg" ;;
320 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
321 |
--program-suf |
--program-su |
--program-s)
322 ac_prev
=program_suffix
;;
323 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
324 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
325 program_suffix
="$ac_optarg" ;;
327 -program-transform-name |
--program-transform-name \
328 |
--program-transform-nam |
--program-transform-na \
329 |
--program-transform-n |
--program-transform- \
330 |
--program-transform |
--program-transfor \
331 |
--program-transfo |
--program-transf \
332 |
--program-trans |
--program-tran \
333 |
--progr-tra |
--program-tr |
--program-t)
334 ac_prev
=program_transform_name
;;
335 -program-transform-name=* |
--program-transform-name=* \
336 |
--program-transform-nam=* |
--program-transform-na=* \
337 |
--program-transform-n=* |
--program-transform-=* \
338 |
--program-transform=* |
--program-transfor=* \
339 |
--program-transfo=* |
--program-transf=* \
340 |
--program-trans=* |
--program-tran=* \
341 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
342 program_transform_name
="$ac_optarg" ;;
344 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
345 |
-silent |
--silent |
--silen |
--sile |
--sil)
348 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
350 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
352 sbindir
="$ac_optarg" ;;
354 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
355 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
356 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
358 ac_prev
=sharedstatedir
;;
359 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
360 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
361 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
363 sharedstatedir
="$ac_optarg" ;;
365 -site |
--site |
--sit)
367 -site=* |
--site=* |
--sit=*)
370 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
372 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
373 srcdir
="$ac_optarg" ;;
375 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
376 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
377 ac_prev
=sysconfdir
;;
378 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
379 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
380 sysconfdir
="$ac_optarg" ;;
382 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
384 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
385 target
="$ac_optarg" ;;
387 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
390 -version |
--version |
--versio |
--versi |
--vers)
391 echo "configure generated by autoconf version 2.14.1"
395 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
396 # Reject names that are not valid shell variable names.
397 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
398 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
400 ac_package
=`echo $ac_package| sed 's/-/_/g'`
405 eval "with_${ac_package}='$ac_optarg'" ;;
407 -without-* |
--without-*)
408 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
409 # Reject names that are not valid shell variable names.
410 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
411 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
413 ac_package
=`echo $ac_package| sed 's/-/_/g'`
414 eval "with_${ac_package}=no" ;;
417 # Obsolete; use --with-x.
420 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
421 |
--x-incl |
--x-inc |
--x-in |
--x-i)
422 ac_prev
=x_includes
;;
423 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
424 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
425 x_includes
="$ac_optarg" ;;
427 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
428 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
429 ac_prev
=x_libraries
;;
430 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
431 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
432 x_libraries
="$ac_optarg" ;;
434 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
438 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
439 echo "configure: warning: $ac_option: invalid host type" 1>&2
441 if test "x$nonopt" != xNONE
; then
442 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
450 if test -n "$ac_prev"; then
451 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
454 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
456 # File descriptor usage:
459 # 2 errors and warnings
460 # 3 some systems may open it to /dev/tty
461 # 4 used on the Kubota Titan
462 # 6 checking for... messages and results
463 # 5 compiler messages saved in config.log
464 if test "$silent" = yes; then
472 This file contains any messages produced by compilers while
473 running configure, to aid debugging if configure makes a mistake.
476 # Strip out --no-create and --no-recursion so they do not pile up.
477 # Also quote any args containing shell metacharacters.
482 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
483 |
--no-cr |
--no-c) ;;
484 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
485 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
486 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
487 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
488 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
493 # Only set these to C if already set. These must not be set unconditionally
494 # because not all systems understand e.g. LANG=C (notably SCO).
495 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
496 # Non-C LC_CTYPE values break the ctype check.
497 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
498 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
499 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
500 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
502 # confdefs.h avoids OS command line length limits that DEFS can exceed.
503 rm -rf conftest
* confdefs.h
504 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
507 # A filename unique to this package, relative to the directory that
508 # configure is in, which we can look for to find out if srcdir is correct.
509 ac_unique_file
=include
/features.h
511 # Find the source files, if location was not specified.
512 if test -z "$srcdir"; then
513 ac_srcdir_defaulted
=yes
514 # Try the directory containing this script, then its parent.
516 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
517 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
519 if test ! -r $srcdir/$ac_unique_file; then
523 ac_srcdir_defaulted
=no
525 if test ! -r $srcdir/$ac_unique_file; then
526 if test "$ac_srcdir_defaulted" = yes; then
527 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
529 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
532 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
534 # Prefer explicitly selected file to automatically selected ones.
535 if test -z "$CONFIG_SITE"; then
536 if test "x$prefix" != xNONE
; then
537 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
539 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
542 for ac_site_file
in $CONFIG_SITE; do
543 if test -r "$ac_site_file"; then
544 echo "loading site script $ac_site_file"
549 if test -r "$cache_file"; then
550 echo "loading cache $cache_file"
551 test -f "$cache_file" && .
$cache_file
553 echo "creating cache $cache_file"
558 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
559 ac_cpp
='$CPP $CPPFLAGS'
560 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
561 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
562 cross_compiling
=$ac_cv_prog_cc_cross
566 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
567 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
568 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
575 ac_n
= ac_c
='\c' ac_t
=
578 if test -r /vmunix
; then
579 kernel_id
=`strings /vmunix | grep UNIX`
580 elif test -r /dynix
; then
581 kernel_id
=`strings /dynix | grep DYNIX`
589 for ac_dir
in scripts
$srcdir/scripts
; do
590 if test -f $ac_dir/install-sh
; then
592 ac_install_sh
="$ac_aux_dir/install-sh -c"
594 elif test -f $ac_dir/install.sh
; then
596 ac_install_sh
="$ac_aux_dir/install.sh -c"
600 if test -z "$ac_aux_dir"; then
601 { echo "configure: error: can not find install-sh or install.sh in scripts $srcdir/scripts" 1>&2; exit 1; }
603 ac_config_guess
="$SHELL $ac_aux_dir/config.guess"
604 ac_config_sub
="$SHELL $ac_aux_dir/config.sub"
605 ac_configure
="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
608 # This will get text that should go into config.make.
611 # Check for a --with-gmp argument and set gmp-srcdir in config.make.
612 # Check whether --with-gmp or --without-gmp was given.
613 if test "${with_gmp+set}" = set; then
616 yes) { echo "configure: error: --with-gmp requires an argument; use --with-gmp=DIRECTORY" 1>&2; exit 1; } ;;
618 *) config_vars
="$config_vars
619 gmp-srcdir = $withval" ;;
624 # Check for a --with-gettext argument and set gettext-srcdir in config.make.
625 # Check whether --with-gettext or --without-gettext was given.
626 if test "${with_gettext+set}" = set; then
627 withval
="$with_gettext"
628 case "$with_gettext" in
630 { echo "configure: error: --with-gettext requires an argument; use --with-gettext=DIR" 1>&2; exit 1; } ;;
633 config_vars
="$config_vars
634 gettext-srcdir = $withval" ;;
640 # Check whether --with-fp or --without-fp was given.
641 if test "${with_fp+set}" = set; then
648 # Check whether --with-binutils or --without-binutils was given.
649 if test "${with_binutils+set}" = set; then
650 withval
="$with_binutils"
651 path_binutils
=$withval
656 # Check whether --with-elf or --without-elf was given.
657 if test "${with_elf+set}" = set; then
664 # Check whether --with-cvs or --without-cvs was given.
665 if test "${with_cvs+set}" = set; then
674 # Check whether --with-headers or --without-headers was given.
675 if test "${with_headers+set}" = set; then
676 withval
="$with_headers"
683 # Check whether --enable-libio or --disable-libio was given.
684 if test "${enable_libio+set}" = set; then
685 enableval
="$enable_libio"
686 if test $enableval = yes; then
696 # Check whether --enable-sanity-checks or --disable-sanity-checks was given.
697 if test "${enable_sanity_checks+set}" = set; then
698 enableval
="$enable_sanity_checks"
699 enable_sanity
=$enableval
706 # Check whether --enable-shared or --disable-shared was given.
707 if test "${enable_shared+set}" = set; then
708 enableval
="$enable_shared"
714 # Check whether --enable-profile or --disable-profile was given.
715 if test "${enable_profile+set}" = set; then
716 enableval
="$enable_profile"
722 # Check whether --enable-omitfp or --disable-omitfp was given.
723 if test "${enable_omitfp+set}" = set; then
724 enableval
="$enable_omitfp"
730 # Check whether --enable-bounded or --disable-bounded was given.
731 if test "${enable_bounded+set}" = set; then
732 enableval
="$enable_bounded"
738 # Check whether --enable-versioning or --disable-versioning was given.
739 if test "${enable_versioning+set}" = set; then
740 enableval
="$enable_versioning"
741 enable_versioning
=$enableval
743 enable_versioning
=yes
747 # Check whether --enable-add-ons or --disable-add-ons was given.
748 if test "${enable_add_ons+set}" = set; then
749 enableval
="$enable_add_ons"
751 yes) add_ons
=`cd $srcdir && echo */configure | sed -e 's!/configure!!g'`
752 test "$add_ons" = "*" && add_ons
= ;;
753 *) add_ons
=`echo "$enableval" | sed 's/,/ /g'`;;
763 if test x
"$add_ons" != x
; then
764 for f
in $add_ons; do
765 # Test whether such a subdir really exists.
766 if test -d $srcdir/$f; then
767 add_ons_pfx
="$add_ons_pfx $f/"
769 { echo "configure: error: add-on directory \"$f\" does not exist" 1>&2; exit 1; }
774 # Check whether --enable-static-nss or --disable-static-nss was given.
775 if test "${enable_static_nss+set}" = set; then
776 enableval
="$enable_static_nss"
777 static_nss
=$enableval
782 if test x
"$static_nss" = xyes
; then
783 cat >> confdefs.h
<<\EOF
784 #define DO_STATIC_NSS 1
789 # Check whether --enable-force-install or --disable-force-install was given.
790 if test "${enable_force_install+set}" = set; then
791 enableval
="$enable_force_install"
792 force_install
=$enableval
799 # Check whether --enable-kernel or --disable-kernel was given.
800 if test "${enable_kernel+set}" = set; then
801 enableval
="$enable_kernel"
802 minimum_kernel
=$enableval
807 echo $ac_n "checking host system type""... $ac_c" 1>&6
808 echo "configure:809: checking host system type" >&5
809 if test "x$ac_cv_host" = "x" ||
(test "x$host" != "xNONE" && test "x$host" != "x$ac_cv_host_alias"); then
811 # Make sure we can run config.sub.
812 if $ac_config_sub sun4
>/dev
/null
2>&1; then :
813 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
816 ac_cv_host_alias
=$host
817 case "$ac_cv_host_alias" in
821 if ac_cv_host_alias
=`$ac_config_guess`; then :
822 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
824 *) ac_cv_host_alias
=$nonopt ;;
828 ac_cv_host
=`$ac_config_sub $ac_cv_host_alias`
829 ac_cv_host_cpu
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
830 ac_cv_host_vendor
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
831 ac_cv_host_os
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
833 echo $ac_n "(cached) $ac_c" 1>&6
836 echo "$ac_t""$ac_cv_host" 1>&6
839 host_alias
=$ac_cv_host_alias
840 host_cpu
=$ac_cv_host_cpu
841 host_vendor
=$ac_cv_host_vendor
842 host_os
=$ac_cv_host_os
848 # The way shlib-versions is used to generate soversions.mk uses a
849 # fairly simplistic model for name recognition that can't distinguish
850 # i486-pc-linux-gnu fully from i486-pc-gnu. So we mutate a $host_os
851 # of `gnu*' here to be `gnu-gnu*' just so that shlib-versions can
852 # tell. This doesn't get used much beyond that, so it's fairly safe.
857 host_os
=`echo $host_os | sed -e 's/gnu/gnu-gnu/'`
861 # We keep the original values in `$config_*' and never modify them, so we
862 # can write them unchanged into config.make. Everything else uses
863 # $machine, $vendor, and $os, and changes them whenever convenient.
864 config_machine
=$host_cpu config_vendor
=$host_vendor config_os
=$host_os
866 # Some configurations imply other options.
868 gnu
* | linux
* | bsd4.4
* | netbsd
* | freebsd
*)
869 # These systems always use GNU tools.
870 gnu_ld
=yes gnu_as
=yes ;;
873 # i586-linuxaout is mangled into i586-pc-linux-gnuaout
874 linux
*ecoff
* | linux
*aout
* | gnu
*aout
* | gnu
*ecoff
*)
876 gnu
* | linux
* | sysv4
* | solaris2
* | irix6
*)
877 # These systems (almost) always use the ELF format.
882 machine
=$config_machine
883 vendor
=$config_vendor
887 ### I put this here to prevent those annoying emails from people who cannot
888 ### read and try to compile glibc on unsupported platforms. --drepper
890 ### By using the undocumented --enable-hacker-mode option for configure
891 ### one can skip this test to make the configuration not fail for unsupported
894 if test -z "$enable_hacker_mode"; then
895 case "$machine-$host_os" in
896 *-linux* |
*-gnu* | arm
*-none*)
899 echo "*** The GNU C library is currently not available for this platform."
900 echo "*** So far nobody cared to port it and if there is no volunteer it"
901 echo "*** might never happen. So, if you have interest to see glibc on"
902 echo "*** this platform visit"
903 echo "*** http://www.gnu.org/software/libc/porting.html"
904 echo "*** and join the group of porters"
910 # Expand the configuration machine name into a subdirectory by architecture
911 # type and particular chip.
913 a29k | am29000
) base_machine
=a29k machine
=a29k
;;
914 alpha
*) base_machine
=alpha machine
=alpha
/$machine ;;
915 arm
*) base_machine
=arm machine
=arm
/$machine ;;
916 c3
[012]) base_machine
=cx0 machine
=cx
0/c30
;;
917 c4
[04]) base_machine
=cx0 machine
=cx
0/c40
;;
918 hppa
*) base_machine
=hppa machine
=hppa
/$machine ;;
919 i
[3456]86) base_machine
=i386 machine
=i386
/$machine ;;
920 m680?
0) base_machine
=m68k machine
=m68k
/$machine ;;
921 m68k
) base_machine
=m68k machine
=m68k
/m68020
;;
922 m88???
) base_machine
=m88k machine
=m88k
/$machine ;;
923 m88k
) base_machine
=m88k machine
=m88k
/m88100
;;
924 mips64
*) base_machine
=mips64 machine
=mips
/mips64
/$machine ;;
925 mips
*) base_machine
=mips
927 IP22
) machine
=mips
/mips3
;;
928 *) machine
=mips
/$machine ;;
931 base_machine
=sparc machine
=sparc
/sparc32
;;
932 sparcv8 | supersparc | hypersparc
)
933 base_machine
=sparc machine
=sparc
/sparc32
/sparcv8
;;
934 sparcv8plus | sparcv8plusa | sparcv9
)
935 base_machine
=sparc machine
=sparc
/sparc32
/sparcv9
;;
936 sparc64 | ultrasparc
)
937 base_machine
=sparc machine
=sparc
/sparc64
;;
941 if test "$base_machine" = "i386"; then
942 cat >> confdefs.h
<<\EOF
943 #define USE_REGPARMS 1
948 # Compute the list of sysdep directories for this configuration.
949 # This can take a while to compute.
950 sysdep_dir
=$srcdir/sysdeps
951 echo $ac_n "checking sysdep dirs""... $ac_c" 1>&6
952 echo "configure:953: checking sysdep dirs" >&5
953 # Make sco3.2v4 become sco3.2.4 and sunos4.1.1_U1 become sunos4.1.1.U1.
954 os
="`echo $os | sed 's/\([0-9A-Z]\)[v_]\([0-9A-Z]\)/\1.\2/g'`"
959 netbsd
* |
386bsd
* | freebsd
* | bsdi
*)
960 base_os
=unix
/bsd
/bsd4.4
;;
961 osf
* | sunos
* | ultrix
* | newsos
* | dynix
* |
*bsd
*)
963 sysv
* | isc
* | esix
* | sco
* | minix
* | irix4
* | linux
*)
966 base_os
=unix
/sysv
/irix
6/$os ;;
968 base_os
=unix
/sysv
/sysv4
;;
970 base_os
=standalone
;;
975 # For sunos4.1.1, try sunos4.1.1, then sunos4.1, then sunos4, then sunos.
978 while o
=`echo $tail | sed 's/\.[^.]*$//'`; test $o != $tail; do
982 o
=`echo $tail | sed 's/[0-9]*$//'`
983 if test $o != $tail; then
986 # For linux-gnu, try linux-gnu, then linux.
987 o
=`echo $tail | sed 's/-.*$//'`
988 if test $o != $tail; then
992 # For unix/sysv/sysv4, try unix/sysv/sysv4, then unix/sysv, then unix.
995 while b
=`echo $tail | sed 's@^\(.*\)/\([^/]*\)$@& \1@'`; test -n "$b"; do
1001 # For sparc/sparc32, try sparc/sparc32 and then sparc.
1004 while m
=`echo $tail | sed 's@^\(.*\)/\([^/]*\)$@& \1@'`; test -n "$m"; do
1006 # Prepend the machine's FPU directory unless --without-fp.
1007 if test "$with_fp" = yes; then
1008 mach
="$mach /$1/fpu"
1015 # Find what sysdep directories exist.
1017 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1018 for d
in $add_ons_pfx ''; do
1019 for b
in $base ''; do
1020 for m0
in $mach ''; do
1021 for v
in /$vendor ''; do
1022 test "$v" = / && continue
1023 for o
in /$ostry ''; do
1024 test "$o" = / && continue
1025 for m
in $mach ''; do
1026 if test "$m0$b$v$o$m"; then
1027 try
="${d}sysdeps$m0$b$v$o$m"
1028 test -n "$enable_debug_configure" &&
1029 echo "$0 DEBUG: try $try" >&2
1030 if test -d $srcdir/$try; then
1031 sysnames
="$sysnames $try"
1032 { test -n "$o" ||
test -n "$b"; } && os_used
=t
1033 { test -n "$m" ||
test -n "$m0"; } && machine_used
=t
1044 if test -z "$os_used" && test "$os" != none
; then
1045 { echo "configure: error: Operating system $os is not supported." 1>&2; exit 1; }
1047 if test -z "$machine_used" && test "$machine" != none
; then
1048 { echo "configure: error: The $machine is not supported." 1>&2; exit 1; }
1051 # We have now validated the configuration.
1054 # If using ELF, look for an `elf' subdirectory of each machine directory.
1055 # We prepend these rather than inserting them whereever the machine appears
1056 # because things specified by the machine's ELF ABI should override
1057 # OS-specific things, and should always be the same for any OS on the
1058 # machine (otherwise what's the point of an ABI?).
1059 if test "$elf" = yes; then
1061 for d
in $add_ons_pfx ''; do
1063 if test -d $srcdir/${d}sysdeps
$m/elf
; then
1064 elf_dirs
="$elf_dirs ${d}sysdeps$m/elf"
1068 sysnames
="`echo $elf_dirs | sed -e 's,//,/,g'` $sysnames"
1072 # Expand the list of system names into a full list of directories
1073 # from each element's parent name and Implies file (if present).
1076 while test $# -gt 0; do
1080 case " $names " in *" $name "*)
1081 # Already in the list.
1085 # Report each name as we discover it, so there is no long pause in output.
1086 echo $ac_n "$name $ac_c" >&6
1088 name_base
=`echo $name | sed -e 's@\(.*sysdeps\)/.*@\1@'`
1092 *) xsrcdir
=$srcdir/ ;;
1094 test -n "$enable_debug_configure" &&
1095 echo "DEBUG: name/Implies $xsrcdir$name/Implies" >&2
1097 if test -f $xsrcdir$name/Implies
; then
1098 # Collect more names from the `Implies' file (removing comments).
1099 implied_candidate
="`sed 's/#.*$//' < $xsrcdir$name/Implies`"
1101 for x
in $implied_candidate; do
1102 if test -d $xsrcdir$name_base/$x; then
1103 implied
="$implied $name_base/$x";
1105 echo "configure: warning: $name/Implies specifies nonexistent $x" 1>&2
1112 # Add NAME to the list of names.
1113 names
="$names $name"
1115 # Find the parent of NAME, using the empty string if it has none.
1116 parent
="`echo $name | sed -n -e 's=/[^/]*$==' -e '/sysdeps$/q' -e p`"
1118 # Add the names implied by NAME, and NAME's parent (if it has one), to
1119 # the list of names to be processed (the argument list). We prepend the
1120 # implied names to the list and append the parent. We want implied
1121 # directories to come before further directories inferred from the
1122 # configuration components; this ensures that for sysv4, unix/common
1123 # (implied by unix/sysv/sysv4) comes before unix/sysv (in ostry (here $*)
1125 sysnames
="`echo $implied $* $parent`"
1126 test -n "$sysnames" && set $sysnames
1129 # Add the default directories.
1130 default_sysnames
=sysdeps
/generic
1131 if test "$elf" = yes; then
1132 default_sysnames
="sysdeps/generic/elf $default_sysnames"
1134 sysnames
="$names $default_sysnames"
1136 # The other names were emitted during the scan.
1137 echo "$ac_t""$default_sysnames" 1>&6
1142 # Find a good install program. We prefer a C program (faster),
1143 # so one script is as good as another. But avoid the broken or
1144 # incompatible versions:
1145 # SysV /etc/install, /usr/sbin/install
1146 # SunOS /usr/etc/install
1147 # IRIX /sbin/install
1149 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1150 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1151 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1152 # ./install, which can be erroneously created by make from ./install.sh.
1153 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1154 echo "configure:1155: checking for a BSD compatible install" >&5
1155 if test -z "$INSTALL"; then
1156 if eval "test \"\${ac_cv_path_install+set}\" = set"; then
1157 echo $ac_n "(cached) $ac_c" 1>&6
1159 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
=":"
1160 for ac_dir
in $PATH; do
1161 # Account for people who put trailing slashes in PATH elements.
1163 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
1165 # OSF1 and SCO ODT 3.0 have their own names for install.
1166 # Don't use installbsd from OSF since it installs stuff as root
1168 for ac_prog
in ginstall scoinst
install; do
1169 if test -f $ac_dir/$ac_prog; then
1170 if test $ac_prog = install &&
1171 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
1172 # AIX install. It has an incompatible calling convention.
1174 elif test $ac_prog = install &&
1175 grep pwplus
$ac_dir/$ac_prog >/dev
/null
2>&1; then
1176 # program-specific install script used by HP pwplus--don't use.
1179 ac_cv_path_install
="$ac_dir/$ac_prog -c"
1190 if test "${ac_cv_path_install+set}" = set; then
1191 INSTALL
="$ac_cv_path_install"
1193 # As a last resort, use the slow shell script. We don't cache a
1194 # path for INSTALL within a source directory, because that will
1195 # break other packages using the cache if that directory is
1196 # removed, or if the path is relative.
1197 INSTALL
="$ac_install_sh"
1200 echo "$ac_t""$INSTALL" 1>&6
1202 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1203 # It thinks the first close brace ends the variable substitution.
1204 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
1206 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
1208 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
1210 if test "$INSTALL" = "${srcdir}/install-sh -c"; then
1211 # The makefiles need to use a different form to find it in $srcdir.
1212 INSTALL
='\$(..)./install-sh -c'
1214 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1215 echo "configure:1216: checking whether ln -s works" >&5
1216 if eval "test \"\${ac_cv_prog_LN_S+set}\" = set"; then
1217 echo $ac_n "(cached) $ac_c" 1>&6
1220 if ln -s X conftestdata
2>/dev
/null
1223 ac_cv_prog_LN_S
="ln -s"
1228 LN_S
="$ac_cv_prog_LN_S"
1229 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1230 echo "$ac_t""yes" 1>&6
1232 echo "$ac_t""no" 1>&6
1236 # These programs are version sensitive.
1238 echo $ac_n "checking build system type""... $ac_c" 1>&6
1239 echo "configure:1240: checking build system type" >&5
1240 if test "x$ac_cv_build" = "x" ||
(test "x$build" != "xNONE" && test "x$build" != "x$ac_cv_build_alias"); then
1242 # Make sure we can run config.sub.
1243 if $ac_config_sub sun4
>/dev
/null
2>&1; then :
1244 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1247 ac_cv_build_alias
=$build
1248 case "$ac_cv_build_alias" in
1252 ac_cv_build_alias
=$host_alias ;;
1254 *) ac_cv_build_alias
=$nonopt ;;
1258 ac_cv_build
=`$ac_config_sub $ac_cv_build_alias`
1259 ac_cv_build_cpu
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1260 ac_cv_build_vendor
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1261 ac_cv_build_os
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1263 echo $ac_n "(cached) $ac_c" 1>&6
1266 echo "$ac_t""$ac_cv_build" 1>&6
1269 build_alias
=$ac_cv_build_alias
1270 build_cpu
=$ac_cv_build_cpu
1271 build_vendor
=$ac_cv_build_vendor
1272 build_os
=$ac_cv_build_os
1277 if test $host != $build; then
1278 ac_tool_prefix
=${host_alias}-
1283 for ac_prog
in ${ac_tool_prefix}gcc
${ac_tool_prefix}cc
1285 # Extract the first word of "$ac_prog", so it can be a program name with args.
1286 set dummy
$ac_prog; ac_word
=$2
1287 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1288 echo "configure:1289: checking for $ac_word" >&5
1289 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
1290 echo $ac_n "(cached) $ac_c" 1>&6
1292 if test -n "$CC"; then
1293 ac_cv_prog_CC
="$CC" # Let the user override the test.
1295 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1297 for ac_dir
in $ac_dummy; do
1298 test -z "$ac_dir" && ac_dir
=.
1299 if test -f $ac_dir/$ac_word; then
1300 ac_cv_prog_CC
="$ac_prog"
1308 if test -n "$CC"; then
1309 echo "$ac_t""$CC" 1>&6
1311 echo "$ac_t""no" 1>&6
1314 test -n "$CC" && break
1317 if test -z "$CC"; then
1320 # Found it, now check the version.
1321 echo $ac_n "checking version of $CC""... $ac_c" 1>&6
1322 echo "configure:1323: checking version of $CC" >&5
1323 ac_prog_version
=`$CC -v 2>&1 | sed -n 's/^.*version \([egcygnustp-]*[0-9.]*\).*$/\1/p'`
1324 case $ac_prog_version in
1325 '') ac_prog_version
="v. ?.??, bad"; ac_verc_fail
=yes;;
1326 egcs-2.9
[1-9].
*|egcs-2.90
.2[789]|egcs-2.90.
[3-9][0-9]|
*gcc-2.9
[1-9].
*|pgcc-2.90
.2[789]|pgcc-2.90.
[3-9][0-9]|
*2.8.
[1-9]*|
*2.9|
*2.9.
[0-9]*|cygnus-2.9
[1-9].
*|gcc-2.9
[5-9]|gcc-2.1
[0-9][0-9])
1327 ac_prog_version
="$ac_prog_version, ok"; ac_verc_fail
=no
;;
1328 *) ac_prog_version
="$ac_prog_version, bad"; ac_verc_fail
=yes;;
1331 echo "$ac_t""$ac_prog_version" 1>&6
1333 if test $ac_verc_fail = yes; then
1337 for ac_prog
in make gmake
1339 # Extract the first word of "$ac_prog", so it can be a program name with args.
1340 set dummy
$ac_prog; ac_word
=$2
1341 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1342 echo "configure:1343: checking for $ac_word" >&5
1343 if eval "test \"\${ac_cv_prog_MAKE+set}\" = set"; then
1344 echo $ac_n "(cached) $ac_c" 1>&6
1346 if test -n "$MAKE"; then
1347 ac_cv_prog_MAKE
="$MAKE" # Let the user override the test.
1349 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1351 for ac_dir
in $ac_dummy; do
1352 test -z "$ac_dir" && ac_dir
=.
1353 if test -f $ac_dir/$ac_word; then
1354 ac_cv_prog_MAKE
="$ac_prog"
1361 MAKE
="$ac_cv_prog_MAKE"
1362 if test -n "$MAKE"; then
1363 echo "$ac_t""$MAKE" 1>&6
1365 echo "$ac_t""no" 1>&6
1368 test -n "$MAKE" && break
1371 if test -z "$MAKE"; then
1374 # Found it, now check the version.
1375 echo $ac_n "checking version of $MAKE""... $ac_c" 1>&6
1376 echo "configure:1377: checking version of $MAKE" >&5
1377 ac_prog_version
=`$MAKE --version 2>&1 | sed -n 's/^.*version \([0-9][0-9.]*\), by.*$/\1/p'`
1378 case $ac_prog_version in
1379 '') ac_prog_version
="v. ?.??, bad"; ac_verc_fail
=yes;;
1380 3.75 |
3.76.
[1-9]* |
3.7[789]* |
3.
[89]*)
1381 ac_prog_version
="$ac_prog_version, ok"; ac_verc_fail
=no
;;
1382 *) ac_prog_version
="$ac_prog_version, bad"; ac_verc_fail
=yes;;
1385 echo "$ac_t""$ac_prog_version" 1>&6
1387 if test $ac_verc_fail = yes; then
1392 for ac_prog
in msgfmt gmsgfmt
1394 # Extract the first word of "$ac_prog", so it can be a program name with args.
1395 set dummy
$ac_prog; ac_word
=$2
1396 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1397 echo "configure:1398: checking for $ac_word" >&5
1398 if eval "test \"\${ac_cv_prog_MSGFMT+set}\" = set"; then
1399 echo $ac_n "(cached) $ac_c" 1>&6
1401 if test -n "$MSGFMT"; then
1402 ac_cv_prog_MSGFMT
="$MSGFMT" # Let the user override the test.
1404 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1406 for ac_dir
in $ac_dummy; do
1407 test -z "$ac_dir" && ac_dir
=.
1408 if test -f $ac_dir/$ac_word; then
1409 ac_cv_prog_MSGFMT
="$ac_prog"
1416 MSGFMT
="$ac_cv_prog_MSGFMT"
1417 if test -n "$MSGFMT"; then
1418 echo "$ac_t""$MSGFMT" 1>&6
1420 echo "$ac_t""no" 1>&6
1423 test -n "$MSGFMT" && break
1426 if test -z "$MSGFMT"; then
1429 # Found it, now check the version.
1430 echo $ac_n "checking version of $MSGFMT""... $ac_c" 1>&6
1431 echo "configure:1432: checking version of $MSGFMT" >&5
1432 ac_prog_version
=`$MSGFMT --version 2>&1 | sed -n 's/^.*GNU gettext.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
1433 case $ac_prog_version in
1434 '') ac_prog_version
="v. ?.??, bad"; ac_verc_fail
=yes;;
1435 0.
[1-9][0-9].
* |
[1-9].
*)
1436 ac_prog_version
="$ac_prog_version, ok"; ac_verc_fail
=no
;;
1437 *) ac_prog_version
="$ac_prog_version, bad"; ac_verc_fail
=yes;;
1440 echo "$ac_t""$ac_prog_version" 1>&6
1442 if test $ac_verc_fail = yes; then
1443 MSGFMT
=: aux_missing
=t
1446 for ac_prog
in makeinfo
1448 # Extract the first word of "$ac_prog", so it can be a program name with args.
1449 set dummy
$ac_prog; ac_word
=$2
1450 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1451 echo "configure:1452: checking for $ac_word" >&5
1452 if eval "test \"\${ac_cv_prog_MAKEINFO+set}\" = set"; then
1453 echo $ac_n "(cached) $ac_c" 1>&6
1455 if test -n "$MAKEINFO"; then
1456 ac_cv_prog_MAKEINFO
="$MAKEINFO" # Let the user override the test.
1458 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1460 for ac_dir
in $ac_dummy; do
1461 test -z "$ac_dir" && ac_dir
=.
1462 if test -f $ac_dir/$ac_word; then
1463 ac_cv_prog_MAKEINFO
="$ac_prog"
1470 MAKEINFO
="$ac_cv_prog_MAKEINFO"
1471 if test -n "$MAKEINFO"; then
1472 echo "$ac_t""$MAKEINFO" 1>&6
1474 echo "$ac_t""no" 1>&6
1477 test -n "$MAKEINFO" && break
1480 if test -z "$MAKEINFO"; then
1483 # Found it, now check the version.
1484 echo $ac_n "checking version of $MAKEINFO""... $ac_c" 1>&6
1485 echo "configure:1486: checking version of $MAKEINFO" >&5
1486 ac_prog_version
=`$MAKEINFO --version 2>&1 | sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
1487 case $ac_prog_version in
1488 '') ac_prog_version
="v. ?.??, bad"; ac_verc_fail
=yes;;
1489 3.1[1-9] |
3.
[2-9][0-9] |
1.6[89] |
1.7[0-9])
1490 ac_prog_version
="$ac_prog_version, ok"; ac_verc_fail
=no
;;
1491 *) ac_prog_version
="$ac_prog_version, bad"; ac_verc_fail
=yes;;
1494 echo "$ac_t""$ac_prog_version" 1>&6
1496 if test $ac_verc_fail = yes; then
1497 MAKEINFO
=: aux_missing
=t
1501 if test -n "$critic_missing"; then
1502 { echo "configure: error:
1503 *** Some critical program is missing or too old.
1504 *** Check the INSTALL file for required versions." 1>&2; exit 1; }
1507 test -n "$aux_missing" && echo "configure: warning:
1508 *** An auxiliary program is missing or too old;
1509 *** some features will be disabled.
1510 *** Check the INSTALL file for required versions." 1>&2
1513 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1514 echo "configure:1515: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1515 if eval "test \"\${ac_cv_prog_cc_works+set}\" = set"; then
1516 echo $ac_n "(cached) $ac_c" 1>&6
1520 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1521 ac_cpp
='$CPP $CPPFLAGS'
1522 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1523 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1524 cross_compiling
=$ac_cv_prog_cc_cross
1526 cat > conftest.
$ac_ext << EOF
1528 #line 1529 "configure"
1529 #include "confdefs.h"
1533 if { (eval echo configure
:1534: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1534 ac_cv_prog_cc_works
=yes
1535 # If we can't run a trivial program, we are probably using a cross compiler.
1536 if (.
/conftest
; exit) 2>/dev
/null
; then
1537 ac_cv_prog_cc_cross
=no
1539 ac_cv_prog_cc_cross
=yes
1542 echo "configure: failed program was:" >&5
1543 cat conftest.
$ac_ext >&5
1544 ac_cv_prog_cc_works
=no
1548 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1549 ac_cpp
='$CPP $CPPFLAGS'
1550 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1551 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1552 cross_compiling
=$ac_cv_prog_cc_cross
1556 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1557 if test $ac_cv_prog_cc_works = no
; then
1559 ac_cv_prog_cc_cross
=yes
1563 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1564 echo "configure:1565: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1565 if eval "test \"\${ac_cv_prog_cc_cross+set}\" = set"; then
1566 echo $ac_n "(cached) $ac_c" 1>&6
1571 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1573 cross_compiling
=$ac_cv_prog_cc_cross
1575 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1576 echo "configure:1577: checking whether we are using GNU C" >&5
1577 if eval "test \"\${ac_cv_prog_gcc+set}\" = set"; then
1578 echo $ac_n "(cached) $ac_c" 1>&6
1580 cat > conftest.c
<<EOF
1585 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:1586: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
1592 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1593 if test $ac_cv_prog_gcc != yes; then
1594 { echo "configure: error: GNU libc must be compiled using GNU CC" 1>&2; exit 1; }
1598 echo $ac_n "checking build system type""... $ac_c" 1>&6
1599 echo "configure:1600: checking build system type" >&5
1600 if test "x$ac_cv_build" = "x" ||
(test "x$build" != "xNONE" && test "x$build" != "x$ac_cv_build_alias"); then
1602 # Make sure we can run config.sub.
1603 if $ac_config_sub sun4
>/dev
/null
2>&1; then :
1604 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1607 ac_cv_build_alias
=$build
1608 case "$ac_cv_build_alias" in
1612 ac_cv_build_alias
=$host_alias ;;
1614 *) ac_cv_build_alias
=$nonopt ;;
1618 ac_cv_build
=`$ac_config_sub $ac_cv_build_alias`
1619 ac_cv_build_cpu
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1620 ac_cv_build_vendor
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1621 ac_cv_build_os
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1623 echo $ac_n "(cached) $ac_c" 1>&6
1626 echo "$ac_t""$ac_cv_build" 1>&6
1629 build_alias
=$ac_cv_build_alias
1630 build_cpu
=$ac_cv_build_cpu
1631 build_vendor
=$ac_cv_build_vendor
1632 build_os
=$ac_cv_build_os
1637 if test $host != $build; then
1638 for ac_prog
in gcc cc
1640 # Extract the first word of "$ac_prog", so it can be a program name with args.
1641 set dummy
$ac_prog; ac_word
=$2
1642 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1643 echo "configure:1644: checking for $ac_word" >&5
1644 if eval "test \"\${ac_cv_prog_BUILD_CC+set}\" = set"; then
1645 echo $ac_n "(cached) $ac_c" 1>&6
1647 if test -n "$BUILD_CC"; then
1648 ac_cv_prog_BUILD_CC
="$BUILD_CC" # Let the user override the test.
1650 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1652 for ac_dir
in $ac_dummy; do
1653 test -z "$ac_dir" && ac_dir
=.
1654 if test -f $ac_dir/$ac_word; then
1655 ac_cv_prog_BUILD_CC
="$ac_prog"
1662 BUILD_CC
="$ac_cv_prog_BUILD_CC"
1663 if test -n "$BUILD_CC"; then
1664 echo "$ac_t""$BUILD_CC" 1>&6
1666 echo "$ac_t""no" 1>&6
1669 test -n "$BUILD_CC" && break
1674 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1675 echo "configure:1676: checking how to run the C preprocessor" >&5
1676 # On Suns, sometimes $CPP names a directory.
1677 if test -n "$CPP" && test -d "$CPP"; then
1680 if test -z "$CPP"; then
1681 if eval "test \"\${ac_cv_prog_CPP+set}\" = set"; then
1682 echo $ac_n "(cached) $ac_c" 1>&6
1684 # This must be in double quotes, not single quotes, because CPP may get
1685 # substituted into the Makefile and "${CC-cc}" will confuse make.
1687 # On the NeXT, cc -E runs the code through the compiler's parser,
1688 # not just through cpp.
1689 cat > conftest.
$ac_ext <<EOF
1690 #line 1691 "configure"
1691 #include "confdefs.h"
1695 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1696 { (eval echo configure
:1697: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1697 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1698 if test -z "$ac_err"; then
1702 echo "configure: failed program was:" >&5
1703 cat conftest.
$ac_ext >&5
1705 CPP
="${CC-cc} -E -traditional-cpp"
1706 cat > conftest.
$ac_ext <<EOF
1707 #line 1708 "configure"
1708 #include "confdefs.h"
1712 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1713 { (eval echo configure
:1714: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1714 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1715 if test -z "$ac_err"; then
1719 echo "configure: failed program was:" >&5
1720 cat conftest.
$ac_ext >&5
1722 CPP
="${CC-cc} -nologo -E"
1723 cat > conftest.
$ac_ext <<EOF
1724 #line 1725 "configure"
1725 #include "confdefs.h"
1729 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1730 { (eval echo configure
:1731: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1731 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1732 if test -z "$ac_err"; then
1736 echo "configure: failed program was:" >&5
1737 cat conftest.
$ac_ext >&5
1746 ac_cv_prog_CPP
="$CPP"
1748 CPP
="$ac_cv_prog_CPP"
1750 ac_cv_prog_CPP
="$CPP"
1752 echo "$ac_t""$CPP" 1>&6
1754 # Was a --with-binutils option given?
1755 if test -n "$path_binutils"; then
1756 # Make absolute; ensure a single trailing slash.
1757 path_binutils
=`(cd $path_binutils; pwd) | sed 's%/*$%/%'`
1758 CC
="$CC -B$path_binutils"
1760 AS
=`$CC -print-prog-name=as`
1761 LD
=`$CC -print-prog-name=ld`
1762 AR
=`$CC -print-prog-name=ar`
1765 # ranlib has to be treated a bit differently since it might not exist at all.
1766 RANLIB
=`$CC -print-prog-name=ranlib`
1767 if test $RANLIB = ranlib
; then
1768 # This extra check has to happen since gcc simply echos the parameter in
1769 # case it cannot find the value in its own directories.
1770 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1771 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
1772 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1773 echo "configure:1774: checking for $ac_word" >&5
1774 if eval "test \"\${ac_cv_prog_RANLIB+set}\" = set"; then
1775 echo $ac_n "(cached) $ac_c" 1>&6
1777 if test -n "$RANLIB"; then
1778 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1780 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1782 for ac_dir
in $ac_dummy; do
1783 test -z "$ac_dir" && ac_dir
=.
1784 if test -f $ac_dir/$ac_word; then
1785 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
1792 RANLIB
="$ac_cv_prog_RANLIB"
1793 if test -n "$RANLIB"; then
1794 echo "$ac_t""$RANLIB" 1>&6
1796 echo "$ac_t""no" 1>&6
1800 if test -z "$ac_cv_prog_RANLIB"; then
1801 if test -n "$ac_tool_prefix"; then
1802 # Extract the first word of "ranlib", so it can be a program name with args.
1803 set dummy ranlib
; ac_word
=$2
1804 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1805 echo "configure:1806: checking for $ac_word" >&5
1806 if eval "test \"\${ac_cv_prog_RANLIB+set}\" = set"; then
1807 echo $ac_n "(cached) $ac_c" 1>&6
1809 if test -n "$RANLIB"; then
1810 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1812 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1814 for ac_dir
in $ac_dummy; do
1815 test -z "$ac_dir" && ac_dir
=.
1816 if test -f $ac_dir/$ac_word; then
1817 ac_cv_prog_RANLIB
="ranlib"
1822 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
1825 RANLIB
="$ac_cv_prog_RANLIB"
1826 if test -n "$RANLIB"; then
1827 echo "$ac_t""$RANLIB" 1>&6
1829 echo "$ac_t""no" 1>&6
1840 # Determine whether we are using GNU binutils.
1841 echo $ac_n "checking whether $AS is GNU as""... $ac_c" 1>&6
1842 echo "configure:1843: checking whether $AS is GNU as" >&5
1843 if eval "test \"\${libc_cv_prog_as_gnu+set}\" = set"; then
1844 echo $ac_n "(cached) $ac_c" 1>&6
1846 # Most GNU programs take a -v and spit out some text including
1847 # the word 'GNU'. Some try to read stdin, so give them /dev/null.
1848 if $AS -o conftest
-v </dev
/null
2>&1 |
grep GNU
> /dev
/null
2>&1; then
1849 libc_cv_prog_as_gnu
=yes
1851 libc_cv_prog_as_gnu
=no
1856 echo "$ac_t""$libc_cv_prog_as_gnu" 1>&6
1858 gnu_as
=$libc_cv_prog_as_gnu
1860 echo $ac_n "checking whether $LD is GNU ld""... $ac_c" 1>&6
1861 echo "configure:1862: checking whether $LD is GNU ld" >&5
1862 if eval "test \"\${libc_cv_prog_ld_gnu+set}\" = set"; then
1863 echo $ac_n "(cached) $ac_c" 1>&6
1865 # Most GNU programs take a -v and spit out some text including
1866 # the word 'GNU'. Some try to read stdin, so give them /dev/null.
1867 if $LD -o conftest
-v </dev
/null
2>&1 |
grep GNU
> /dev
/null
2>&1; then
1868 libc_cv_prog_ld_gnu
=yes
1870 libc_cv_prog_ld_gnu
=no
1875 echo "$ac_t""$libc_cv_prog_ld_gnu" 1>&6
1876 gnu_ld
=$libc_cv_prog_ld_gnu
1878 # Extract the first word of "${ac_tool_prefix}mig", so it can be a program name with args.
1879 set dummy
${ac_tool_prefix}mig
; ac_word
=$2
1880 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1881 echo "configure:1882: checking for $ac_word" >&5
1882 if eval "test \"\${ac_cv_prog_MIG+set}\" = set"; then
1883 echo $ac_n "(cached) $ac_c" 1>&6
1885 if test -n "$MIG"; then
1886 ac_cv_prog_MIG
="$MIG" # Let the user override the test.
1888 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1890 for ac_dir
in $ac_dummy; do
1891 test -z "$ac_dir" && ac_dir
=.
1892 if test -f $ac_dir/$ac_word; then
1893 ac_cv_prog_MIG
="${ac_tool_prefix}mig"
1898 test -z "$ac_cv_prog_MIG" && ac_cv_prog_MIG
="mig"
1901 MIG
="$ac_cv_prog_MIG"
1902 if test -n "$MIG"; then
1903 echo "$ac_t""$MIG" 1>&6
1905 echo "$ac_t""no" 1>&6
1911 # if using special system headers, find out the compiler's sekrit
1912 # header directory and add that to the list. NOTE: Only does the right
1913 # thing on a system that doesn't need fixincludes. (Not presently a problem.)
1914 if test -n "$sysheaders"; then
1915 ccheaders
=`$CC -print-file-name=include`
1916 SYSINCLUDES
="-nostdinc -isystem $ccheaders -isystem $sysheaders"
1920 # check if ranlib is necessary
1921 echo $ac_n "checking whether ranlib is necessary""... $ac_c" 1>&6
1922 echo "configure:1923: checking whether ranlib is necessary" >&5
1923 if eval "test \"\${libc_cv_ranlib_necessary+set}\" = set"; then
1924 echo $ac_n "(cached) $ac_c" 1>&6
1926 cat > conftest.c
<<EOF
1931 $CC $CFLAGS -c conftest.c
1932 $AR cr conftest.a conftest.c
1933 cp conftest.a conftest2.a
1935 if cmp -s conftest.a conftest2.a
; then
1936 libc_cv_ranlib_necessary
=no
1938 libc_cv_ranlib_necessary
=yes
1943 echo "$ac_t""$libc_cv_ranlib_necessary" 1>&6
1944 if test "$libc_cv_ranlib_necessary" = no
; then
1948 # Test if LD_LIBRARY_PATH contains the notation for the current directory
1949 # since this would lead to problems installing/building glibc.
1950 # LD_LIBRARY_PATH contains the current directory if one of the following
1952 # - one of the terminals (":" and ";") is the first or last sign
1953 # - two terminals occur directly after each other
1954 # - the path contains an element with a dot in it
1955 echo $ac_n "checking LD_LIBRARY_PATH variable""... $ac_c" 1>&6
1956 echo "configure:1957: checking LD_LIBRARY_PATH variable" >&5
1957 case ${LD_LIBRARY_PATH} in
1958 [:\
;]* |
*[:\
;] |
*[:\
;][:\
;]* |
*[:\
;]. | .
[:\
;]*| . |
*[:\
;].
[:\
;]* )
1959 ld_library_path_setting
="contains current directory"
1962 ld_library_path_setting
="ok"
1965 echo "$ac_t""$ld_library_path_setting" 1>&6
1966 if test "$ld_library_path_setting" != "ok"; then
1967 { echo "configure: error:
1968 *** LD_LIBRARY_PATH shouldn't contain the current directory when
1969 *** building glibc. Please change the environment variable
1970 *** and run configure again." 1>&2; exit 1; }
1973 # Extract the first word of "bash", so it can be a program name with args.
1974 set dummy bash
; ac_word
=$2
1975 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1976 echo "configure:1977: checking for $ac_word" >&5
1977 if eval "test \"\${ac_cv_path_BASH+set}\" = set"; then
1978 echo $ac_n "(cached) $ac_c" 1>&6
1982 ac_cv_path_BASH
="$BASH" # Let the user override the test with a path.
1985 ac_cv_path_BASH
="$BASH" # Let the user override the test with a dos path.
1988 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1990 for ac_dir
in $ac_dummy; do
1991 test -z "$ac_dir" && ac_dir
=.
1992 if test -f $ac_dir/$ac_word; then
1993 ac_cv_path_BASH
="$ac_dir/$ac_word"
1998 test -z "$ac_cv_path_BASH" && ac_cv_path_BASH
="no"
2002 BASH
="$ac_cv_path_BASH"
2003 if test -n "$BASH"; then
2004 echo "$ac_t""$BASH" 1>&6
2006 echo "$ac_t""no" 1>&6
2009 if test "$BASH" != no
&&
2010 $BASH -c 'test "$BASH_VERSINFO" \
2011 && test "$BASH_VERSINFO" -ge 2 >&/dev/null'; then
2012 libc_cv_have_bash2
=yes
2014 libc_cv_have_bash2
=no
2018 if test "$BASH" = no
; then
2019 # Extract the first word of "ksh", so it can be a program name with args.
2020 set dummy ksh
; ac_word
=$2
2021 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2022 echo "configure:2023: checking for $ac_word" >&5
2023 if eval "test \"\${ac_cv_path_KSH+set}\" = set"; then
2024 echo $ac_n "(cached) $ac_c" 1>&6
2028 ac_cv_path_KSH
="$KSH" # Let the user override the test with a path.
2031 ac_cv_path_KSH
="$KSH" # Let the user override the test with a dos path.
2034 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2036 for ac_dir
in $ac_dummy; do
2037 test -z "$ac_dir" && ac_dir
=.
2038 if test -f $ac_dir/$ac_word; then
2039 ac_cv_path_KSH
="$ac_dir/$ac_word"
2044 test -z "$ac_cv_path_KSH" && ac_cv_path_KSH
="no"
2048 KSH
="$ac_cv_path_KSH"
2049 if test -n "$KSH"; then
2050 echo "$ac_t""$KSH" 1>&6
2052 echo "$ac_t""no" 1>&6
2055 if test "$KSH" = no
; then
2058 libc_cv_have_ksh
=yes
2063 libc_cv_have_ksh
=yes
2067 for ac_prog
in mawk gawk nawk
awk
2069 # Extract the first word of "$ac_prog", so it can be a program name with args.
2070 set dummy
$ac_prog; ac_word
=$2
2071 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2072 echo "configure:2073: checking for $ac_word" >&5
2073 if eval "test \"\${ac_cv_prog_AWK+set}\" = set"; then
2074 echo $ac_n "(cached) $ac_c" 1>&6
2076 if test -n "$AWK"; then
2077 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
2079 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2081 for ac_dir
in $ac_dummy; do
2082 test -z "$ac_dir" && ac_dir
=.
2083 if test -f $ac_dir/$ac_word; then
2084 ac_cv_prog_AWK
="$ac_prog"
2091 AWK
="$ac_cv_prog_AWK"
2092 if test -n "$AWK"; then
2093 echo "$ac_t""$AWK" 1>&6
2095 echo "$ac_t""no" 1>&6
2098 test -n "$AWK" && break
2101 # Extract the first word of "perl", so it can be a program name with args.
2102 set dummy perl
; ac_word
=$2
2103 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2104 echo "configure:2105: checking for $ac_word" >&5
2105 if eval "test \"\${ac_cv_path_PERL+set}\" = set"; then
2106 echo $ac_n "(cached) $ac_c" 1>&6
2110 ac_cv_path_PERL
="$PERL" # Let the user override the test with a path.
2113 ac_cv_path_PERL
="$PERL" # Let the user override the test with a dos path.
2116 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2118 for ac_dir
in $ac_dummy; do
2119 test -z "$ac_dir" && ac_dir
=.
2120 if test -f $ac_dir/$ac_word; then
2121 ac_cv_path_PERL
="$ac_dir/$ac_word"
2126 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL
="no"
2130 PERL
="$ac_cv_path_PERL"
2131 if test -n "$PERL"; then
2132 echo "$ac_t""$PERL" 1>&6
2134 echo "$ac_t""no" 1>&6
2138 # Extract the first word of "install-info", so it can be a program name with args.
2139 set dummy install-info
; ac_word
=$2
2140 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2141 echo "configure:2142: checking for $ac_word" >&5
2142 if eval "test \"\${ac_cv_path_INSTALL_INFO+set}\" = set"; then
2143 echo $ac_n "(cached) $ac_c" 1>&6
2145 case "$INSTALL_INFO" in
2147 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
2150 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a dos path.
2153 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2154 ac_dummy
="$PATH:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin"
2155 for ac_dir
in $ac_dummy; do
2156 test -z "$ac_dir" && ac_dir
=.
2157 if test -f $ac_dir/$ac_word; then
2158 ac_cv_path_INSTALL_INFO
="$ac_dir/$ac_word"
2163 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO
="no"
2167 INSTALL_INFO
="$ac_cv_path_INSTALL_INFO"
2168 if test -n "$INSTALL_INFO"; then
2169 echo "$ac_t""$INSTALL_INFO" 1>&6
2171 echo "$ac_t""no" 1>&6
2175 if test "$INSTALL_INFO" != "no"; then
2176 echo $ac_n "checking for old Debian install-info""... $ac_c" 1>&6
2177 echo "configure:2178: checking for old Debian install-info" >&5
2178 if eval "test \"\${libc_cv_old_debian_install_info+set}\" = set"; then
2179 echo $ac_n "(cached) $ac_c" 1>&6
2182 # There is a hard ^_ on the next line. I am open to better ideas.
2184 echo 'File: dir Node: Top This is the top of the INFO tree'
2185 echo '* Menu:') >conftest.d
/dir
2186 (echo 'INFO-DIR-SECTION i-d-s works'
2187 echo 'START-INFO-DIR-ENTRY'
2188 echo '* Prog: (prog). Program.'
2189 echo 'END-INFO-DIR-ENTRY') >conftest.d
/prog.info
2190 if $INSTALL_INFO --info-dir=conftest.d conftest.d
/prog.info
>&5 2>&1
2192 if grep -s 'i-d-s works' conftest.d
/dir
>/dev
/null
2193 then libc_cv_old_debian_install_info
=no
2194 else libc_cv_old_debian_install_info
=yes
2196 else libc_cv_old_debian_install_info
=no testfailed
=t
2201 echo "$ac_t""$libc_cv_old_debian_install_info" 1>&6
2202 if test -n "$testfailed"
2203 then echo "configure: warning: install-info errored out, check config.log" 1>&2
2205 OLD_DEBIAN_INSTALL_INFO
=$libc_cv_old_debian_install_info
2209 echo $ac_n "checking for signed size_t type""... $ac_c" 1>&6
2210 echo "configure:2211: checking for signed size_t type" >&5
2211 if eval "test \"\${libc_cv_signed_size_t+set}\" = set"; then
2212 echo $ac_n "(cached) $ac_c" 1>&6
2214 echo '#include <stddef.h>
2215 FOOBAR __SIZE_TYPE__ FOOBAR' > conftest.c
2216 if eval "$ac_cpp conftest.c 2>/dev/null" \
2217 |
grep '^FOOBAR.*unsigned.*FOOBAR$' >/dev
/null
; then
2218 libc_cv_signed_size_t
=no
2220 libc_cv_signed_size_t
=yes
2225 echo "$ac_t""$libc_cv_signed_size_t" 1>&6
2226 if test $libc_cv_signed_size_t = yes; then
2227 cat >> confdefs.h
<<\EOF
2228 #undef __SIZE_TYPE__
2229 #define __SIZE_TYPE__ unsigned
2233 echo $ac_n "checking for libc-friendly stddef.h""... $ac_c" 1>&6
2234 echo "configure:2235: checking for libc-friendly stddef.h" >&5
2235 if eval "test \"\${libc_cv_friendly_stddef+set}\" = set"; then
2236 echo $ac_n "(cached) $ac_c" 1>&6
2238 cat > conftest.
$ac_ext <<EOF
2239 #line 2240 "configure"
2240 #include "confdefs.h"
2241 #define __need_size_t
2242 #define __need_wchar_t
2247 size_t size; wchar_t wchar;
2249 #error stddef.h ignored __need_*
2251 if (&size == NULL || &wchar == NULL) abort ();
2254 if { (eval echo configure
:2255: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2256 libc_cv_friendly_stddef
=yes
2258 echo "configure: failed program was:" >&5
2259 cat conftest.
$ac_ext >&5
2261 libc_cv_friendly_stddef
=no
2266 echo "$ac_t""$libc_cv_friendly_stddef" 1>&6
2267 if test $libc_cv_friendly_stddef = yes; then
2268 config_vars
="$config_vars
2269 override stddef.h = # The installed <stddef.h> seems to be libc-friendly."
2272 echo $ac_n "checking whether we need to use -P to assemble .S files""... $ac_c" 1>&6
2273 echo "configure:2274: checking whether we need to use -P to assemble .S files" >&5
2274 if eval "test \"\${libc_cv_need_minus_P+set}\" = set"; then
2275 echo $ac_n "(cached) $ac_c" 1>&6
2277 cat > conftest.S
<<EOF
2278 #include "confdefs.h"
2279 /* Nothing whatsoever. */
2281 if ${CC-cc} $CFLAGS -c conftest.S
2>/dev
/null
; then
2282 libc_cv_need_minus_P
=no
2284 libc_cv_need_minus_P
=yes
2289 echo "$ac_t""$libc_cv_need_minus_P" 1>&6
2290 if test $libc_cv_need_minus_P = yes; then
2291 config_vars
="$config_vars
2292 asm-CPPFLAGS = -P # The assembler can't grok cpp's # line directives."
2295 echo $ac_n "checking for assembler global-symbol directive""... $ac_c" 1>&6
2296 echo "configure:2297: checking for assembler global-symbol directive" >&5
2297 if eval "test \"\${libc_cv_asm_global_directive+set}\" = set"; then
2298 echo $ac_n "(cached) $ac_c" 1>&6
2300 libc_cv_asm_global_directive
=UNKNOWN
2301 for ac_globl
in .globl .global
; do
2302 cat > conftest.s
<<EOF
2307 if ${CC-cc} $CFLAGS -c conftest.s
2>/dev
/null
; then
2308 libc_cv_asm_global_directive
=${ac_globl}
2311 test $libc_cv_asm_global_directive != UNKNOWN
&& break
2315 echo "$ac_t""$libc_cv_asm_global_directive" 1>&6
2316 if test $libc_cv_asm_global_directive = UNKNOWN
; then
2317 { echo "configure: error: cannot determine asm global directive" 1>&2; exit 1; }
2319 cat >> confdefs.h
<<EOF
2320 #define ASM_GLOBAL_DIRECTIVE ${libc_cv_asm_global_directive}
2325 echo $ac_n "checking for .set assembler directive""... $ac_c" 1>&6
2326 echo "configure:2327: checking for .set assembler directive" >&5
2327 if eval "test \"\${libc_cv_asm_set_directive+set}\" = set"; then
2328 echo $ac_n "(cached) $ac_c" 1>&6
2330 cat > conftest.s
<<EOF
2333 .set glibc_conftest_frobozz,foo
2334 $libc_cv_asm_global_directive glibc_conftest_frobozz
2336 # The alpha-dec-osf1 assembler gives only a warning for `.set'
2337 # (but it doesn't work), so we must do a linking check to be sure.
2338 cat > conftest1.c
<<\EOF
2339 extern int glibc_conftest_frobozz
;
2340 main
() { printf ("%d\n", glibc_conftest_frobozz
); }
2342 if ${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \
2343 -o conftest conftest.s conftest1.c
1>&5 2>&5; then
2344 libc_cv_asm_set_directive
=yes
2346 libc_cv_asm_set_directive
=no
2351 echo "$ac_t""$libc_cv_asm_set_directive" 1>&6
2352 if test $libc_cv_asm_set_directive = yes; then
2353 cat >> confdefs.h
<<\EOF
2354 #define HAVE_ASM_SET_DIRECTIVE 1
2359 echo $ac_n "checking for .symver assembler directive""... $ac_c" 1>&6
2360 echo "configure:2361: checking for .symver assembler directive" >&5
2361 if eval "test \"\${libc_cv_asm_symver_directive+set}\" = set"; then
2362 echo $ac_n "(cached) $ac_c" 1>&6
2364 cat > conftest.s
<<EOF
2367 .symver _sym,sym@VERS
2369 if ${CC-cc} -c $CFLAGS $CPPFLAGS conftest.s
1>&5 2>&5; then
2370 libc_cv_asm_symver_directive
=yes
2372 libc_cv_asm_symver_directive
=no
2377 echo "$ac_t""$libc_cv_asm_symver_directive" 1>&6
2378 echo $ac_n "checking for ld --version-script""... $ac_c" 1>&6
2379 echo "configure:2380: checking for ld --version-script" >&5
2380 if eval "test \"\${libc_cv_ld_version_script_option+set}\" = set"; then
2381 echo $ac_n "(cached) $ac_c" 1>&6
2383 if test $libc_cv_asm_symver_directive = yes; then
2384 cat > conftest.s
<<EOF
2387 .symver _sym,sym@VERS
2389 cat > conftest.map
<<EOF
2398 if ${CC-cc} -c $CFLAGS $CPPFLAGS conftest.s
1>&5 2>&5; then
2399 if { ac_try
='${CC-cc} $CFLAGS -shared -o conftest.so conftest.o
2400 -nostartfiles -nostdlib
2401 -Wl,--version-script,conftest.map
2402 1>&5'; { (eval echo configure
:2403: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; };
2404 libc_cv_ld_version_script_option
=yes
2406 libc_cv_ld_version_script_option
=no
2409 libc_cv_ld_version_script_option
=no
2412 libc_cv_ld_version_script_option
=no
2417 echo "$ac_t""$libc_cv_ld_version_script_option" 1>&6
2418 if test $libc_cv_asm_symver_directive = yes &&
2419 test $libc_cv_ld_version_script_option = yes &&
2420 test $enable_versioning = yes; then
2422 cat >> confdefs.h
<<\EOF
2423 #define DO_VERSIONING 1
2431 if test $VERSIONING = no
; then
2433 *** WARNING: You should not compile GNU libc without versioning. Not using
2434 *** versioning will introduce incompatibilities so that old binaries
2435 *** will not run anymore.
2436 *** For versioning you need recent binutils (binutils-2.8.1.0.23 or newer)."
2438 if test $elf = yes; then
2439 echo $ac_n "checking for .previous assembler directive""... $ac_c" 1>&6
2440 echo "configure:2441: checking for .previous assembler directive" >&5
2441 if eval "test \"\${libc_cv_asm_previous_directive+set}\" = set"; then
2442 echo $ac_n "(cached) $ac_c" 1>&6
2444 cat > conftest.s
<<EOF
2445 .section foo_section
2448 if { ac_try
='${CC-cc} -c $CFLAGS conftest.s 1>&5'; { (eval echo configure
:2449: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
2449 libc_cv_asm_previous_directive
=yes
2451 libc_cv_asm_previous_directive
=no
2456 echo "$ac_t""$libc_cv_asm_previous_directive" 1>&6
2457 if test $libc_cv_asm_previous_directive = yes; then
2458 cat >> confdefs.h
<<\EOF
2459 #define HAVE_ASM_PREVIOUS_DIRECTIVE 1
2463 echo $ac_n "checking for .popsection assembler directive""... $ac_c" 1>&6
2464 echo "configure:2465: checking for .popsection assembler directive" >&5
2465 if eval "test \"\${libc_cv_asm_popsection_directive+set}\" = set"; then
2466 echo $ac_n "(cached) $ac_c" 1>&6
2468 cat > conftest.s
<<EOF
2469 .pushsection foo_section
2472 if { ac_try
='${CC-cc} -c $CFLAGS conftest.s 1>&5'; { (eval echo configure
:2473: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
2473 libc_cv_asm_popsection_directive
=yes
2475 libc_cv_asm_popsection_directive
=no
2480 echo "$ac_t""$libc_cv_asm_popsection_directive" 1>&6
2481 if test $libc_cv_asm_popsection_directive = yes; then
2482 cat >> confdefs.h
<<\EOF
2483 #define HAVE_ASM_POPSECTION_DIRECTIVE 1
2490 if test $elf != yes; then
2491 echo $ac_n "checking for .init and .fini sections""... $ac_c" 1>&6
2492 echo "configure:2493: checking for .init and .fini sections" >&5
2493 if eval "test \"\${libc_cv_have_initfini+set}\" = set"; then
2494 echo $ac_n "(cached) $ac_c" 1>&6
2496 cat > conftest.
$ac_ext <<EOF
2497 #line 2498 "configure"
2498 #include "confdefs.h"
2501 asm (".section .init");
2502 asm (".section .fini");
2506 if { (eval echo configure
:2507: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2508 libc_cv_have_initfini
=yes
2510 echo "configure: failed program was:" >&5
2511 cat conftest.
$ac_ext >&5
2513 libc_cv_have_initfini
=no
2518 echo "$ac_t""$libc_cv_have_initfini" 1>&6
2519 if test $libc_cv_have_initfini = yes; then
2520 cat >> confdefs.h
<<\EOF
2521 #define HAVE_INITFINI 1
2529 if test $elf = yes; then
2530 libc_cv_asm_underscores
=no
2532 if test $ac_cv_prog_cc_works = yes; then
2533 echo $ac_n "checking for _ prefix on C symbol names""... $ac_c" 1>&6
2534 echo "configure:2535: checking for _ prefix on C symbol names" >&5
2535 if eval "test \"\${libc_cv_asm_underscores+set}\" = set"; then
2536 echo $ac_n "(cached) $ac_c" 1>&6
2538 cat > conftest.
$ac_ext <<EOF
2539 #line 2540 "configure"
2540 #include "confdefs.h"
2541 asm ("_glibc_foobar:");
2546 if { (eval echo configure
:2547: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2548 libc_cv_asm_underscores
=yes
2550 echo "configure: failed program was:" >&5
2551 cat conftest.
$ac_ext >&5
2553 libc_cv_asm_underscores
=no
2558 echo "$ac_t""$libc_cv_asm_underscores" 1>&6
2560 echo $ac_n "checking for _ prefix on C symbol names""... $ac_c" 1>&6
2561 echo "configure:2562: checking for _ prefix on C symbol names" >&5
2562 if eval "test \"\${libc_cv_asm_underscores+set}\" = set"; then
2563 echo $ac_n "(cached) $ac_c" 1>&6
2565 cat > conftest.
$ac_ext <<EOF
2566 #line 2567 "configure"
2567 #include "confdefs.h"
2568 void underscore_test(void) {
2571 if { (eval echo configure
:2572: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2572 if grep _underscore_test conftest
* >/dev
/null
; then
2574 libc_cv_asm_underscores
=yes
2577 libc_cv_asm_underscores
=no
2580 echo "configure: failed program was:" >&5
2581 cat conftest.
$ac_ext >&5
2583 libc_cv_asm_underscores
=no
2588 echo "$ac_t""$libc_cv_asm_underscores" 1>&6
2591 if test $libc_cv_asm_underscores = no
; then
2592 cat >> confdefs.h
<<\EOF
2593 #define NO_UNDERSCORES 1
2598 if test $elf = yes; then
2599 libc_cv_weak_symbols
=yes
2602 echo $ac_n "checking for assembler .weak directive""... $ac_c" 1>&6
2603 echo "configure:2604: checking for assembler .weak directive" >&5
2604 if eval "test \"\${libc_cv_asm_weak_directive+set}\" = set"; then
2605 echo $ac_n "(cached) $ac_c" 1>&6
2607 cat > conftest.s
<<EOF
2609 ${libc_cv_asm_global_directive} foo
2612 .weak bar; bar = foo
2614 if ${CC-cc} $CFLAGS -c conftest.s
2>/dev
/null
; then
2615 libc_cv_asm_weak_directive
=yes
2617 libc_cv_asm_weak_directive
=no
2622 echo "$ac_t""$libc_cv_asm_weak_directive" 1>&6
2624 if test $libc_cv_asm_weak_directive = no
; then
2625 echo $ac_n "checking for assembler .weakext directive""... $ac_c" 1>&6
2626 echo "configure:2627: checking for assembler .weakext directive" >&5
2627 if eval "test \"\${libc_cv_asm_weakext_directive+set}\" = set"; then
2628 echo $ac_n "(cached) $ac_c" 1>&6
2630 cat > conftest.s
<<EOF
2632 ${libc_cv_asm_global_directive} foo
2636 ${libc_cv_asm_global_directive} baz
2639 if ${CC-cc} $CFLAGS -c conftest.s
2>/dev
/null
; then
2640 libc_cv_asm_weakext_directive
=yes
2642 libc_cv_asm_weakext_directive
=no
2647 echo "$ac_t""$libc_cv_asm_weakext_directive" 1>&6
2651 if test $libc_cv_asm_weak_directive = yes; then
2652 cat >> confdefs.h
<<\EOF
2653 #define HAVE_ASM_WEAK_DIRECTIVE 1
2656 elif test $libc_cv_asm_weakext_directive = yes; then
2657 cat >> confdefs.h
<<\EOF
2658 #define HAVE_ASM_WEAKEXT_DIRECTIVE 1
2663 echo $ac_n "checking for ld --no-whole-archive""... $ac_c" 1>&6
2664 echo "configure:2665: checking for ld --no-whole-archive" >&5
2665 if eval "test \"\${libc_cv_ld_no_whole_archive+set}\" = set"; then
2666 echo $ac_n "(cached) $ac_c" 1>&6
2668 cat > conftest.c
<<\EOF
2673 if { ac_try
='${CC-cc} $CFLAGS
2674 -nostdlib -nostartfiles -Wl,--no-whole-archive
2675 -o conftest conftest.c 1>&5'; { (eval echo configure
:2676: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
2676 libc_cv_ld_no_whole_archive
=yes
2678 libc_cv_ld_no_whole_archive
=no
2683 echo "$ac_t""$libc_cv_ld_no_whole_archive" 1>&6
2684 if test $libc_cv_ld_no_whole_archive = yes; then
2685 no_whole_archive
=-Wl,--no-whole-archive
2688 echo $ac_n "checking for gcc -fexceptions""... $ac_c" 1>&6
2689 echo "configure:2690: checking for gcc -fexceptions" >&5
2690 if eval "test \"\${libc_cv_gcc_exceptions+set}\" = set"; then
2691 echo $ac_n "(cached) $ac_c" 1>&6
2693 cat > conftest.c
<<\EOF
2698 if { ac_try
='${CC-cc} $CFLAGS
2699 -nostdlib -nostartfiles -fexceptions
2700 -o conftest conftest.c 1>&5'; { (eval echo configure
:2701: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
2701 libc_cv_gcc_exceptions
=yes
2703 libc_cv_gcc_exceptions
=no
2708 echo "$ac_t""$libc_cv_gcc_exceptions" 1>&6
2709 if test $libc_cv_gcc_exceptions = yes; then
2710 exceptions
=-fexceptions
2713 if test "$base_machine" = alpha
; then
2714 echo $ac_n "checking for function ..ng prefix""... $ac_c" 1>&6
2715 echo "configure:2716: checking for function ..ng prefix" >&5
2716 if eval "test \"\${libc_cv_gcc_alpha_ng_prefix+set}\" = set"; then
2717 echo $ac_n "(cached) $ac_c" 1>&6
2719 cat > conftest.c
<<\EOF
2722 if { ac_try
='${CC-cc} -S conftest.c -o - | fgrep "\$foo..ng" > /dev/null'; { (eval echo configure
:2723: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; };
2724 libc_cv_gcc_alpha_ng_prefix
=yes
2726 libc_cv_gcc_alpha_ng_prefix
=no
2731 echo "$ac_t""$libc_cv_gcc_alpha_ng_prefix" 1>&6
2732 if test $libc_cv_gcc_alpha_ng_prefix = yes ; then
2733 cat >> confdefs.h
<<\EOF
2734 #define ASM_ALPHA_NG_SYMBOL_PREFIX "$"
2738 cat >> confdefs.h
<<\EOF
2739 #define ASM_ALPHA_NG_SYMBOL_PREFIX ""
2745 if test "$host_cpu" = powerpc
; then
2746 # Check for a bug present in at least versions 2.8.x of GCC
2747 # and versions 1.0.x of EGCS.
2748 echo $ac_n "checking whether clobbering cr0 causes problems""... $ac_c" 1>&6
2749 echo "configure:2750: checking whether clobbering cr0 causes problems" >&5
2750 if eval "test \"\${libc_cv_c_asmcr0_bug+set}\" = set"; then
2751 echo $ac_n "(cached) $ac_c" 1>&6
2753 cat > conftest.
$ac_ext <<EOF
2754 #line 2755 "configure"
2755 #include "confdefs.h"
2756 int tester(int x) { asm ("" : : : "cc"); return x & 123; }
2761 if { (eval echo configure
:2762: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2763 libc_cv_c_asmcr0_bug
='no'
2765 echo "configure: failed program was:" >&5
2766 cat conftest.
$ac_ext >&5
2768 libc_cv_c_asmcr0_bug
='yes'
2773 echo "$ac_t""$libc_cv_c_asmcr0_bug" 1>&6
2774 if test "$libc_cv_c_asmcr0_bug" != 'no'; then
2775 cat >> confdefs.h
<<\EOF
2776 #define BROKEN_PPC_ASM_CR0 1
2782 echo $ac_n "checking for DWARF2 unwind info support""... $ac_c" 1>&6
2783 echo "configure:2784: checking for DWARF2 unwind info support" >&5
2784 if eval "test \"\${libc_cv_gcc_dwarf2_unwind_info+set}\" = set"; then
2785 echo $ac_n "(cached) $ac_c" 1>&6
2787 cat > conftest.c
<<EOF
2788 #line 2789 "configure"
2789 static char __EH_FRAME_BEGIN__;
2792 #ifdef CHECK__register_frame
2793 __register_frame (__EH_FRAME_BEGIN__);
2794 __deregister_frame (__EH_FRAME_BEGIN__);
2796 #ifdef CHECK__register_frame_info
2797 __register_frame_info (__EH_FRAME_BEGIN__);
2798 __deregister_frame_info (__EH_FRAME_BEGIN__);
2803 /* FIXME: this is fragile. */
2813 if { ac_try
='${CC-cc} $CFLAGS -DCHECK__register_frame_info
2814 -nostdlib -nostartfiles
2815 -o conftest conftest.c -lgcc >&5'; { (eval echo configure
:2816: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
2816 libc_cv_gcc_dwarf2_unwind_info
=static
2818 libc_cv_gcc_dwarf2_unwind_info
=no
2820 if test $libc_cv_gcc_dwarf2_unwind_info = no
; then
2821 if { ac_try
='${CC-cc} $CFLAGS -DCHECK__register_frame
2822 -nostdlib -nostartfiles
2823 -o conftest conftest.c -lgcc >&5'; { (eval echo configure
:2824: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
2824 libc_cv_gcc_dwarf2_unwind_info
=yes
2826 libc_cv_gcc_dwarf2_unwind_info
=no
2832 echo "$ac_t""$libc_cv_gcc_dwarf2_unwind_info" 1>&6
2833 case $libc_cv_gcc_dwarf2_unwind_info in
2835 cat >> confdefs.h
<<\EOF
2836 #define HAVE_DWARF2_UNWIND_INFO 1
2841 cat >> confdefs.h
<<\EOF
2842 #define HAVE_DWARF2_UNWIND_INFO 1
2845 cat >> confdefs.h
<<\EOF
2846 #define HAVE_DWARF2_UNWIND_INFO_STATIC 1
2852 echo $ac_n "checking for __builtin_expect""... $ac_c" 1>&6
2853 echo "configure:2854: checking for __builtin_expect" >&5
2854 if eval "test \"\${libc_cv_gcc_builtin_expect+set}\" = set"; then
2855 echo $ac_n "(cached) $ac_c" 1>&6
2857 cat > conftest.c
<<EOF
2858 #line 2859 "configure"
2861 a = __builtin_expect (a, 10);
2862 return a == 10 ? 0 : 1;
2865 if { ac_try
='${CC-cc} $CFLAGS -nostdlib -nostartfiles
2866 -o conftest conftest.c -lgcc >&5'; { (eval echo configure
:2867: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
2867 libc_cv_gcc_builtin_expect
=yes
2869 libc_cv_gcc_builtin_expect
=no
2874 echo "$ac_t""$libc_cv_gcc_builtin_expect" 1>&6
2875 if test "$libc_cv_gcc_builtin_expect" = yes; then
2876 cat >> confdefs.h
<<\EOF
2877 #define HAVE_BUILTIN_EXPECT 1
2882 ### End of automated tests.
2883 ### Now run sysdeps configure fragments.
2885 # sysdeps configure fragments may set these with files to be linked below.
2889 # They also can set these variables.
2890 ldd_rewrite_script
=no
2892 # Iterate over all the sysdep directories we will use, running their
2893 # configure fragments, and looking for a uname implementation.
2895 for dir
in $sysnames; do
2898 *) dest
=$srcdir/$dir ;;
2900 if test -r $dest/configure
; then
2901 echo "$ac_t""running configure fragment for $dest" 1>&6
2905 if test -z "$uname"; then
2906 if test -r $dest/uname.c ||
2907 test -r $dest/uname.S ||
2908 { test -r $dest/syscalls.list
&&
2909 grep '^uname[ ]' $dest/syscalls.list
>/dev
/null
; }; then
2917 # If we will use the generic uname implementation, we must figure out what
2918 # it will say by examining the system, and write the results in config-name.h.
2919 if test "$uname" = "sysdeps/generic"; then
2921 uname_sysname
=`echo $config_os | sed 's/[0-9.]*$//'`
2922 if test $uname_sysname != $config_os; then
2923 config_release
=`echo $config_os | sed s/$uname_sysname//`
2926 echo $ac_n "checking OS release for uname""... $ac_c" 1>&6
2927 echo "configure:2928: checking OS release for uname" >&5
2928 if eval "test \"\${libc_cv_uname_release+set}\" = set"; then
2929 echo $ac_n "(cached) $ac_c" 1>&6
2931 kernel_release
=`echo "$kernel_id" | sed 's/^[^0-9.]*\([0-9.]*\).*$/\1/'`
2932 if test x
`echo "$config_release" | sed "s/^$kernel_release//"` \
2933 != x
$config_release; then
2934 # The configuration release is a substring of the kernel release.
2935 libc_cv_uname_release
=$kernel_release
2936 elif test x
$config_release != x
; then
2937 libc_cv_uname_release
=$config_release
2938 elif test x
$kernel_release != x
; then
2939 libc_cv_uname_release
=$kernel_release
2941 libc_cv_uname_release
=unknown
2945 echo "$ac_t""$libc_cv_uname_release" 1>&6
2946 uname_release
="$libc_cv_uname_release"
2948 echo $ac_n "checking OS version for uname""... $ac_c" 1>&6
2949 echo "configure:2950: checking OS version for uname" >&5
2950 if eval "test \"\${libc_cv_uname_version+set}\" = set"; then
2951 echo $ac_n "(cached) $ac_c" 1>&6
2953 kernel_version
=`echo "$kernel_id" | sed 's/^[^#]*#\([0-9]*\).*$/\1/'`
2954 if test -n "$kernel_version"; then
2955 libc_cv_uname_version
="$kernel_version"
2957 libc_cv_uname_version
=unknown
2961 echo "$ac_t""$libc_cv_uname_version" 1>&6
2962 uname_version
="$libc_cv_uname_version"
2964 config_uname
=config-name.h
:config-name.
in
2966 # For non-generic uname, we don't need to create config-name.h at all.
2970 echo $ac_n "checking stdio selection""... $ac_c" 1>&6
2971 echo "configure:2972: checking stdio selection" >&5
2974 libio
) cat >> confdefs.h
<<\EOF
2975 #define USE_IN_LIBIO 1
2978 default
) stdio
=stdio
;;
2980 echo "$ac_t""$stdio" 1>&6
2982 # Test for old glibc 2.0.x headers so that they can be removed properly
2983 # Search only in includedir.
2984 echo $ac_n "checking for old glibc 2.0.x headers""... $ac_c" 1>&6
2985 echo "configure:2986: checking for old glibc 2.0.x headers" >&5
2986 if eval test -f "${includedir}/elfclass.h" -a -f "${includedir}/fcntlbits.h"
2988 old_glibc_headers
=yes
2990 old_glibc_headers
=no
2992 echo "$ac_t""$old_glibc_headers" 1>&6
2993 if test ${old_glibc_headers} = yes; then
2994 echo "configure: warning: *** During \"make install\" old headers from glibc 2.0.x will" 1>&2
2995 echo "configure: warning: *** be removed." 1>&2
3007 if test $gnu_ld = yes; then
3008 cat >> confdefs.h
<<\EOF
3009 #define HAVE_GNU_LD 1
3013 if test $gnu_as = yes; then
3014 cat >> confdefs.h
<<\EOF
3015 #define HAVE_GNU_AS 1
3019 if test $elf = yes; then
3020 cat >> confdefs.h
<<\EOF
3028 if test $shared = default
; then
3029 if test $gnu_ld = yes; then
3032 # For now we do not assume shared libs are available. In future more
3033 # tests might become available.
3038 echo $ac_n "checking whether -fPIC is default""... $ac_c" 1>&6
3039 echo "configure:3040: checking whether -fPIC is default" >&5
3040 if eval "test \"\${pic_default+set}\" = set"; then
3041 echo $ac_n "(cached) $ac_c" 1>&6
3044 cat > conftest.c
<<EOF
3045 #if defined __PIC__ || defined __pic__ || defined PIC || defined pic
3046 # error PIC is default.
3049 if eval "${CC-cc} -S conftest.c 2>&5 1>&5"; then
3055 echo "$ac_t""$pic_default" 1>&6
3067 *door
*) linux_doors
=yes ;;
3068 *) linux_doors
=no
;;
3072 if test "`(cd $srcdir; pwd)`" = "`pwd`"; then
3075 config_makefile
=Makefile
3078 VERSION
=`sed -n -e 's/^#define VERSION "\([^"]*\)"/\1/p' < $srcdir/version.h`
3079 RELEASE
=`sed -n -e 's/^#define RELEASE "\([^"]*\)"/\1/p' < $srcdir/version.h`
3084 cat > confcache
<<\EOF
3085 # This file is a shell script that caches the results of configure
3086 # tests run on this system so they can be shared between configure
3087 # scripts and configure runs. It is not useful on other systems.
3088 # If it contains results you don't want to keep, you may remove or edit it.
3090 # By default, configure uses ./config.cache as the cache file,
3091 # creating it if it does not exist already. You can give configure
3092 # the --cache-file=FILE option to use a different cache file; that is
3093 # what configure does when it calls configure scripts in
3094 # subdirectories, so they share the cache.
3095 # Giving --cache-file=/dev/null disables caching, for debugging configure.
3096 # config.status only pays attention to the cache file if you give it the
3097 # --recheck option to rerun configure.
3100 # The following way of writing the cache mishandles newlines in values,
3101 # but we know of no workaround that is simple, portable, and efficient.
3102 # So, don't put newlines in cache variables' values.
3103 # Ultrix sh set writes to stderr and can't be redirected directly,
3104 # and sets the high bit in the cache file unless we assign to the vars.
3106 case `(ac_space=' '; set | grep ac_space) 2>&1` in
3108 # `set' does not quote correctly, so add quotes (double-quote substitution
3109 # turns \\\\ into \\, and sed turns \\ into \).
3111 -e "s/'/'\\\\''/g" \
3112 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
3115 # `set' quotes correctly as required by POSIX, so do not add quotes.
3116 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
3119 if cmp -s $cache_file confcache
; then
3122 if test -w $cache_file; then
3123 echo "updating cache $cache_file"
3124 cat confcache
> $cache_file
3126 echo "not updating unwritable cache $cache_file"
3131 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
3133 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
3134 # Let make expand exec_prefix.
3135 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
3137 # Any assignment to VPATH causes Sun make to only execute
3138 # the first set of double-colon rules, so remove it if not needed.
3139 # If there is a colon in the path, we need to keep it.
3140 if test "x$srcdir" = x.
; then
3141 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
3144 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
3146 DEFS
=-DHAVE_CONFIG_H
3148 # Without the "./", some shells look in PATH for config.status.
3149 : ${CONFIG_STATUS=./config.status}
3151 echo creating
$CONFIG_STATUS
3152 rm -f $CONFIG_STATUS
3153 cat > $CONFIG_STATUS <<EOF
3155 # Generated automatically by configure.
3156 # Run this file to recreate the current configuration.
3157 # This directory was configured as follows,
3158 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
3160 # $0 $ac_configure_args
3162 # Compiler output produced by configure, useful for debugging
3163 # configure, is in ./config.log if it exists.
3165 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
3168 case "\$ac_option" in
3169 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3170 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
3171 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
3172 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
3173 echo "$CONFIG_STATUS generated by autoconf version 2.14.1"
3175 -help | --help | --hel | --he | --h)
3176 echo "\$ac_cs_usage"; exit 0 ;;
3177 *) echo "\$ac_cs_usage"; exit 1 ;;
3181 ac_given_srcdir=$srcdir
3182 ac_given_INSTALL="$INSTALL"
3184 trap 'rm -fr `echo "config.make glibcbug ${config_makefile} ${config_uname} config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
3186 cat >> $CONFIG_STATUS <<EOF
3188 # Protect against being on the right side of a sed subst in config.status.
3189 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
3190 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
3194 s%@CFLAGS@%$CFLAGS%g
3195 s%@CPPFLAGS@%$CPPFLAGS%g
3196 s%@CXXFLAGS@%$CXXFLAGS%g
3197 s%@FFLAGS@%$FFLAGS%g
3199 s%@LDFLAGS@%$LDFLAGS%g
3201 s%@exec_prefix@%$exec_prefix%g
3202 s%@prefix@%$prefix%g
3203 s%@program_transform_name@%$program_transform_name%g
3204 s%@bindir@%$bindir%g
3205 s%@sbindir@%$sbindir%g
3206 s%@libexecdir@%$libexecdir%g
3207 s%@datadir@%$datadir%g
3208 s%@sysconfdir@%$sysconfdir%g
3209 s%@sharedstatedir@%$sharedstatedir%g
3210 s%@localstatedir@%$localstatedir%g
3211 s%@libdir@%$libdir%g
3212 s%@includedir@%$includedir%g
3213 s%@oldincludedir@%$oldincludedir%g
3214 s%@infodir@%$infodir%g
3215 s%@mandir@%$mandir%g
3216 s%@with_cvs@%$with_cvs%g
3217 s%@subdirs@%$subdirs%g
3218 s%@force_install@%$force_install%g
3220 s%@host_alias@%$host_alias%g
3221 s%@host_cpu@%$host_cpu%g
3222 s%@host_vendor@%$host_vendor%g
3223 s%@host_os@%$host_os%g
3224 s%@base_machine@%$base_machine%g
3225 s%@sysnames@%$sysnames%g
3226 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
3227 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
3228 s%@INSTALL_DATA@%$INSTALL_DATA%g
3231 s%@build_alias@%$build_alias%g
3232 s%@build_cpu@%$build_cpu%g
3233 s%@build_vendor@%$build_vendor%g
3234 s%@build_os@%$build_os%g
3237 s%@MSGFMT@%$MSGFMT%g
3238 s%@MAKEINFO@%$MAKEINFO%g
3239 s%@cross_linkable@%$cross_linkable%g
3240 s%@BUILD_CC@%$BUILD_CC%g
3241 s%@cross_compiling@%$cross_compiling%g
3244 s%@RANLIB@%$RANLIB%g
3246 s%@SYSINCLUDES@%$SYSINCLUDES%g
3248 s%@libc_cv_have_bash2@%$libc_cv_have_bash2%g
3250 s%@libc_cv_have_ksh@%$libc_cv_have_ksh%g
3253 s%@INSTALL_INFO@%$INSTALL_INFO%g
3254 s%@OLD_DEBIAN_INSTALL_INFO@%$OLD_DEBIAN_INSTALL_INFO%g
3255 s%@VERSIONING@%$VERSIONING%g
3256 s%@libc_cv_have_initfini@%$libc_cv_have_initfini%g
3257 s%@no_whole_archive@%$no_whole_archive%g
3258 s%@exceptions@%$exceptions%g
3259 s%@uname_sysname@%$uname_sysname%g
3260 s%@uname_release@%$uname_release%g
3261 s%@uname_version@%$uname_version%g
3263 s%@old_glibc_headers@%$old_glibc_headers%g
3264 s%@libc_cv_slibdir@%$libc_cv_slibdir%g
3265 s%@libc_cv_sysconfdir@%$libc_cv_sysconfdir%g
3266 s%@libc_cv_rootsbindir@%$libc_cv_rootsbindir%g
3267 s%@has_ldconfig@%$has_ldconfig%g
3268 s%@ldd_rewrite_script@%$ldd_rewrite_script%g
3269 s%@gnu_ld@%$gnu_ld%g
3270 s%@gnu_as@%$gnu_as%g
3272 s%@static@%$static%g
3273 s%@shared@%$shared%g
3274 s%@pic_default@%$pic_default%g
3275 s%@profile@%$profile%g
3276 s%@omitfp@%$omitfp%g
3277 s%@bounded@%$bounded%g
3278 s%@static_nss@%$static_nss%g
3279 s%@nopic_initfini@%$nopic_initfini%g
3280 s%@DEFINES@%$DEFINES%g
3281 s%@linux_doors@%$linux_doors%g
3282 s%@VERSION@%$VERSION%g
3283 s%@RELEASE@%$RELEASE%g
3288 cat >> $CONFIG_STATUS <<\EOF
3290 # Split the substitutions into bite-sized pieces for seds with
3291 # small command number limits, like on Digital OSF/1 and HP-UX.
3292 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
3293 ac_file
=1 # Number of current file.
3294 ac_beg
=1 # First line for current file.
3295 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
3298 while $ac_more_lines; do
3299 if test $ac_beg -gt 1; then
3300 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
3302 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
3304 if test ! -s conftest.s
$ac_file; then
3306 rm -f conftest.s
$ac_file
3308 if test -z "$ac_sed_cmds"; then
3309 ac_sed_cmds
="sed -f conftest.s$ac_file"
3311 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
3313 ac_file
=`expr $ac_file + 1`
3315 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
3318 if test -z "$ac_sed_cmds"; then
3323 cat >> $CONFIG_STATUS <<EOF
3325 CONFIG_FILES=\${CONFIG_FILES-"config.make glibcbug ${config_makefile} ${config_uname}"}
3327 cat >> $CONFIG_STATUS <<\EOF
3328 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
3329 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3331 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
3332 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
3333 *) ac_file_in
="${ac_file}.in" ;;
3336 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
3338 # Remove last slash and all that follows it. Not all systems have dirname.
3339 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3340 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
3341 # The file is in a subdirectory.
3342 test ! -d "$ac_dir" && mkdir
"$ac_dir"
3343 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
3344 # A "../" for each directory in $ac_dir_suffix.
3345 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
3347 ac_dir_suffix
= ac_dots
=
3350 case "$ac_given_srcdir" in
3352 if test -z "$ac_dots"; then top_srcdir
=.
3353 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
3354 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
3356 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
3357 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
3360 case "$ac_given_INSTALL" in
3361 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
3362 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
3365 echo creating
"$ac_file"
3367 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
3369 *Makefile
*) ac_comsub
="1i\\
3370 # $configure_input" ;;
3374 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3376 s%@configure_input@%$configure_input%g
3377 s%@srcdir@%$srcdir%g
3378 s%@top_srcdir@%$top_srcdir%g
3379 s%@INSTALL@%$INSTALL%g
3380 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
3384 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
3385 # NAME is the cpp macro being defined and VALUE is the value it is being given.
3387 # ac_d sets the value in "#define NAME VALUE" lines.
3388 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
3389 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
3392 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
3393 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3394 ac_uB
='\([ ]\)%\1#\2define\3'
3397 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
3398 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3399 ac_eB
='$%\1#\2define\3'
3403 if test "${CONFIG_HEADERS+set}" != set; then
3405 cat >> $CONFIG_STATUS <<EOF
3406 CONFIG_HEADERS="config.h"
3408 cat >> $CONFIG_STATUS <<\EOF
3410 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
3411 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3413 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
3414 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
3415 *) ac_file_in
="${ac_file}.in" ;;
3418 echo creating
$ac_file
3420 rm -f conftest.frag conftest.
in conftest.out
3421 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3422 cat $ac_file_inputs > conftest.
in
3426 # Transform confdefs.h into a sed script conftest.vals that substitutes
3427 # the proper values into config.h.in to produce config.h. And first:
3428 # Protect against being on the right side of a sed subst in config.status.
3429 # Protect against being in an unquoted here document in config.status.
3431 cat > conftest.hdr
<<\EOF
3434 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
3438 sed -n -f conftest.hdr confdefs.h > conftest.vals
3441 # This sed command replaces #undef with comments. This is necessary, for
3442 # example, in the case of _POSIX_SOURCE, which is predefined and required
3443 # on some systems where configure will not decide to define it.
3444 cat >> conftest.vals <<\EOF
3445 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
3448 # Break up conftest.vals because some shells have a limit on
3449 # the size of here documents, and old seds have small limits too.
3454 ac_lines=`grep -c . conftest.vals
`
3455 # grep -c gives empty output for an empty file on some AIX systems.
3456 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
3457 # Write a limited-size here document to conftest.frag.
3458 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
3459 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
3461 sed -f conftest.frag conftest.in > conftest.out
3463 mv conftest.out conftest.in
3465 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
3467 mv conftest.tail conftest.vals
3471 cat >> $CONFIG_STATUS <<\EOF
3472 rm -f conftest.frag conftest.h
3473 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
3474 cat conftest.in >> conftest.h
3476 if cmp -s $ac_file conftest.h 2>/dev/null; then
3477 echo "$ac_file is unchanged"
3480 # Remove last slash and all that follows it. Not all systems have dirname.
3481 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
3482 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3483 # The file is in a subdirectory.
3484 test ! -d "$ac_dir" && mkdir "$ac_dir"
3487 mv conftest.h $ac_file
3493 cat >> $CONFIG_STATUS <<EOF
3494 ac_sources="`echo $libc_link_sources`"
3495 ac_dests="`echo $libc_link_dests`"
3498 cat >> $CONFIG_STATUS <<\EOF
3499 srcdir=$ac_given_srcdir
3500 while test -n "$ac_sources"; do
3501 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
3502 set $ac_sources; ac_source=$1; shift; ac_sources=$*
3504 echo "linking $srcdir/$ac_source to $ac_dest"
3506 if test ! -r $srcdir/$ac_source; then
3507 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
3511 # Make relative symlinks.
3512 # Remove last slash and all that follows it. Not all systems have dirname.
3513 ac_dest_dir=`echo $ac_dest|
sed 's%/[^/][^/]*$%%'`
3514 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
3515 # The dest file is in a subdirectory.
3516 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
3517 ac_dest_dir_suffix="/`echo $ac_dest_dir|
sed 's%^\./%%'`"
3518 # A "../" for each directory in $ac_dest_dir_suffix.
3519 ac_dots=`echo $ac_dest_dir_suffix|
sed 's%/[^/]*%../%g'`
3521 ac_dest_dir_suffix= ac_dots=
3525 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
3526 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
3529 # Make a symlink if possible; otherwise try a hard link.
3530 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
3531 ln $srcdir/$ac_source $ac_dest; then :
3533 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
3537 cat >> $CONFIG_STATUS <<EOF
3538 config_vars='$config_vars'
3540 cat >> $CONFIG_STATUS <<\EOF
3542 case $CONFIG_FILES in *config.make*)
3543 echo "$config_vars" >> config.make;;
3545 test -d bits || mkdir bits
3548 chmod +x $CONFIG_STATUS
3549 rm -fr confdefs* $ac_clean_files
3550 test "$no_create" = yes || $SHELL $CONFIG_STATUS || exit 1
3552 if test "$no_recursion" != yes; then
3554 # Remove --cache-file and --srcdir arguments so they do not pile up.
3555 ac_sub_configure_args=
3557 for ac_arg in $ac_configure_args; do
3558 if test -n "$ac_prev"; then
3563 -cache-file | --cache-file | --cache-fil | --cache-fi \
3564 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
3565 ac_prev=cache_file ;;
3566 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
3567 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
3569 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
3571 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
3573 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
3577 for ac_config_dir in $add_ons; do
3579 # Do not complain, so a configure script can configure whichever
3580 # parts of a large source tree are present.
3581 if test ! -d $srcdir/$ac_config_dir; then
3585 echo configuring in $ac_config_dir
3590 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
3592 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
3600 # A "../" for each directory in /$ac_config_dir.
3601 ac_dots=`echo $ac_config_dir|
sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
3604 .) # No --srcdir option. We are building in place.
3605 ac_sub_srcdir=$srcdir ;;
3606 /*) # Absolute path.
3607 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
3609 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
3612 # Check for guested configure; otherwise get Cygnus style configure.
3613 if test -f $ac_sub_srcdir/configure; then
3614 ac_sub_configure="$SHELL $ac_sub_srcdir/configure"
3615 elif test -f $ac_sub_srcdir/configure.in; then
3616 ac_sub_configure=$ac_configure
3618 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
3622 # The recursion is here.
3623 if test -n "$ac_sub_configure"; then
3625 # Make the cache file name correct relative to the subdirectory.
3626 case "$cache_file" in
3627 /*) ac_sub_cache_file=$cache_file ;;
3629 ac_sub_cache_file="$ac_dots$cache_file" ;;
3631 case "$ac_given_INSTALL" in
3632 [/$]*) INSTALL="$ac_given_INSTALL" ;;
3633 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
3636 echo "running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
3637 # The eval makes quoting arguments work.
3638 if eval $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
3641 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }