3 # From configure.in CVSid
14 # Guess values for system-dependent variables and create Makefiles.
15 # Generated automatically using autoconf version 2.13
16 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
18 # This configure script is free software; the Free Software Foundation
19 # gives unlimited permission to copy, distribute and modify it.
23 ac_default_prefix
=/usr
/local
24 # Any additions from configure.in:
26 --with-gmp=DIRECTORY find GMP source code in DIRECTORY (not needed)"
28 --with-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.13"
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"
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
=$ac_aux_dir/config.guess
604 ac_config_sub
=$ac_aux_dir/config.sub
605 ac_configure
=$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 # Make sure we can run config.sub.
808 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4
>/dev
/null
2>&1; then :
809 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
812 echo $ac_n "checking host system type""... $ac_c" 1>&6
813 echo "configure:814: checking host system type" >&5
816 case "$host_alias" in
820 if host_alias
=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
821 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
823 *) host_alias
=$nonopt ;;
827 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
828 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
829 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
830 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
831 echo "$ac_t""$host" 1>&6
834 # The way shlib-versions is used to generate soversions.mk uses a
835 # fairly simplistic model for name recognition that can't distinguish
836 # i486-pc-linux-gnu fully from i486-pc-gnu. So we mutate a $host_os
837 # of `gnu*' here to be `gnu-gnu*' just so that shlib-versions can
838 # tell. This doesn't get used much beyond that, so it's fairly safe.
843 host_os
=`echo $host_os | sed -e 's/gnu/gnu-gnu/'`
847 # We keep the original values in `$config_*' and never modify them, so we
848 # can write them unchanged into config.make. Everything else uses
849 # $machine, $vendor, and $os, and changes them whenever convenient.
850 config_machine
=$host_cpu config_vendor
=$host_vendor config_os
=$host_os
852 # Some configurations imply other options.
854 gnu
* | linux
* | bsd4.4
* | netbsd
* | freebsd
*)
855 # These systems always use GNU tools.
856 gnu_ld
=yes gnu_as
=yes ;;
859 # i586-linuxaout is mangled into i586-pc-linux-gnuaout
860 linux
*ecoff
* | linux
*aout
* | gnu
*aout
* | gnu
*ecoff
*)
862 gnu
* | linux
* | sysv4
* | solaris2
* | irix6
*)
863 # These systems (almost) always use the ELF format.
868 machine
=$config_machine
869 vendor
=$config_vendor
873 ### I put this here to prevent those annoying emails from people who cannot
874 ### read and try to compile glibc on unsupported platforms. --drepper
876 ### By using the undocumented --enable-hacker-mode option for configure
877 ### one can skip this test to make the configuration not fail for unsupported
880 if test -z "$enable_hacker_mode"; then
881 case "$machine-$host_os" in
882 *-linux* |
*-gnu* | arm
*-none*)
885 echo "*** The GNU C library is currently not available for this platform."
886 echo "*** So far nobody cared to port it and if there is no volunteer it"
887 echo "*** might never happen. So, if you have interest to see glibc on"
888 echo "*** this platform visit"
889 echo "*** http://www.gnu.org/software/libc/porting.html"
890 echo "*** and join the group of porters"
896 # Expand the configuration machine name into a subdirectory by architecture
897 # type and particular chip.
899 a29k | am29000
) base_machine
=a29k machine
=a29k
;;
900 alpha
*) base_machine
=alpha machine
=alpha
/$machine ;;
901 arm
*) base_machine
=arm machine
=arm
/$machine ;;
902 c3
[012]) base_machine
=cx0 machine
=cx
0/c30
;;
903 c4
[04]) base_machine
=cx0 machine
=cx
0/c40
;;
904 hppa
*) base_machine
=hppa machine
=hppa
/$machine ;;
905 i
[3456]86) base_machine
=i386 machine
=i386
/$machine ;;
906 m680?
0) base_machine
=m68k machine
=m68k
/$machine ;;
907 m68k
) base_machine
=m68k machine
=m68k
/m68020
;;
908 m88???
) base_machine
=m88k machine
=m88k
/$machine ;;
909 m88k
) base_machine
=m88k machine
=m88k
/m88100
;;
910 mips64
*) base_machine
=mips64 machine
=mips
/mips64
/$machine ;;
911 mips
*) base_machine
=mips
913 IP22
) machine
=mips
/mips3
;;
914 *) machine
=mips
/$machine ;;
917 base_machine
=sparc machine
=sparc
/sparc32
;;
918 sparcv8 | supersparc | hypersparc
)
919 base_machine
=sparc machine
=sparc
/sparc32
/sparcv8
;;
920 sparcv8plus | sparcv8plusa | sparcv9
)
921 base_machine
=sparc machine
=sparc
/sparc32
/sparcv9
;;
922 sparc64 | ultrasparc
)
923 base_machine
=sparc machine
=sparc
/sparc64
;;
927 if test "$base_machine" = "i386"; then
928 cat >> confdefs.h
<<\EOF
929 #define USE_REGPARMS 1
934 # Compute the list of sysdep directories for this configuration.
935 # This can take a while to compute.
936 sysdep_dir
=$srcdir/sysdeps
937 echo $ac_n "checking sysdep dirs""... $ac_c" 1>&6
938 echo "configure:939: checking sysdep dirs" >&5
939 # Make sco3.2v4 become sco3.2.4 and sunos4.1.1_U1 become sunos4.1.1.U1.
940 os
="`echo $os | sed 's/\([0-9A-Z]\)[v_]\([0-9A-Z]\)/\1.\2/g'`"
945 netbsd
* |
386bsd
* | freebsd
* | bsdi
*)
946 base_os
=unix
/bsd
/bsd4.4
;;
947 osf
* | sunos
* | ultrix
* | newsos
* | dynix
* |
*bsd
*)
949 sysv
* | isc
* | esix
* | sco
* | minix
* | irix4
* | linux
*)
952 base_os
=unix
/sysv
/irix
6/$os ;;
954 base_os
=unix
/sysv
/sysv4
;;
956 base_os
=unix
/sysv
/hpux
/$os ;;
958 base_os
=standalone
;;
963 # For sunos4.1.1, try sunos4.1.1, then sunos4.1, then sunos4, then sunos.
966 while o
=`echo $tail | sed 's/\.[^.]*$//'`; test $o != $tail; do
970 o
=`echo $tail | sed 's/[0-9]*$//'`
971 if test $o != $tail; then
974 # For linux-gnu, try linux-gnu, then linux.
975 o
=`echo $tail | sed 's/-.*$//'`
976 if test $o != $tail; then
980 # For unix/sysv/sysv4, try unix/sysv/sysv4, then unix/sysv, then unix.
983 while b
=`echo $tail | sed 's@^\(.*\)/\([^/]*\)$@& \1@'`; test -n "$b"; do
989 # For sparc/sparc32, try sparc/sparc32 and then sparc.
992 while m
=`echo $tail | sed 's@^\(.*\)/\([^/]*\)$@& \1@'`; test -n "$m"; do
994 # Prepend the machine's FPU directory unless --without-fp.
995 if test "$with_fp" = yes; then
1003 # Find what sysdep directories exist.
1005 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1006 for d
in $add_ons_pfx ''; do
1007 for b
in $base ''; do
1008 for m0
in $mach ''; do
1009 for v
in /$vendor ''; do
1010 test "$v" = / && continue
1011 for o
in /$ostry ''; do
1012 test "$o" = / && continue
1013 for m
in $mach ''; do
1014 if test "$m0$b$v$o$m"; then
1015 try
="${d}sysdeps$m0$b$v$o$m"
1016 test -n "$enable_debug_configure" &&
1017 echo "$0 DEBUG: try $try" >&2
1018 if test -d $srcdir/$try; then
1019 sysnames
="$sysnames $try"
1020 { test -n "$o" ||
test -n "$b"; } && os_used
=t
1021 { test -n "$m" ||
test -n "$m0"; } && machine_used
=t
1032 if test -z "$os_used" && test "$os" != none
; then
1033 { echo "configure: error: Operating system $os is not supported." 1>&2; exit 1; }
1035 if test -z "$machine_used" && test "$machine" != none
; then
1036 { echo "configure: error: The $machine is not supported." 1>&2; exit 1; }
1039 # We have now validated the configuration.
1042 # If using ELF, look for an `elf' subdirectory of each machine directory.
1043 # We prepend these rather than inserting them whereever the machine appears
1044 # because things specified by the machine's ELF ABI should override
1045 # OS-specific things, and should always be the same for any OS on the
1046 # machine (otherwise what's the point of an ABI?).
1047 if test "$elf" = yes; then
1049 for d
in $add_ons_pfx ''; do
1051 if test -d $srcdir/${d}sysdeps
$m/elf
; then
1052 elf_dirs
="$elf_dirs ${d}sysdeps$m/elf"
1056 sysnames
="`echo $elf_dirs | sed -e 's,//,/,g'` $sysnames"
1060 # Expand the list of system names into a full list of directories
1061 # from each element's parent name and Implies file (if present).
1064 while test $# -gt 0; do
1068 case " $names " in *" $name "*)
1069 # Already in the list.
1073 # Report each name as we discover it, so there is no long pause in output.
1074 echo $ac_n "$name $ac_c" >&6
1076 name_base
=`echo $name | sed -e 's@\(.*sysdeps\)/.*@\1@'`
1080 *) xsrcdir
=$srcdir/ ;;
1082 test -n "$enable_debug_configure" &&
1083 echo "DEBUG: name/Implies $xsrcdir$name/Implies" >&2
1085 if test -f $xsrcdir$name/Implies
; then
1086 # Collect more names from the `Implies' file (removing comments).
1087 implied_candidate
="`sed 's/#.*$//' < $xsrcdir$name/Implies`"
1089 for x
in $implied_candidate; do
1090 if test -d $xsrcdir$name_base/$x; then
1091 implied
="$implied $name_base/$x";
1093 echo "configure: warning: $name/Implies specifies nonexistent $x" 1>&2
1100 # Add NAME to the list of names.
1101 names
="$names $name"
1103 # Find the parent of NAME, using the empty string if it has none.
1104 parent
="`echo $name | sed -n -e 's=/[^/]*$==' -e '/sysdeps$/q' -e p`"
1106 # Add the names implied by NAME, and NAME's parent (if it has one), to
1107 # the list of names to be processed (the argument list). We prepend the
1108 # implied names to the list and append the parent. We want implied
1109 # directories to come before further directories inferred from the
1110 # configuration components; this ensures that for sysv4, unix/common
1111 # (implied by unix/sysv/sysv4) comes before unix/sysv (in ostry (here $*)
1113 sysnames
="`echo $implied $* $parent`"
1114 test -n "$sysnames" && set $sysnames
1117 # Add the default directories.
1118 default_sysnames
=sysdeps
/generic
1119 if test "$elf" = yes; then
1120 default_sysnames
="sysdeps/generic/elf $default_sysnames"
1122 sysnames
="$names $default_sysnames"
1124 # The other names were emitted during the scan.
1125 echo "$ac_t""$default_sysnames" 1>&6
1130 # Find a good install program. We prefer a C program (faster),
1131 # so one script is as good as another. But avoid the broken or
1132 # incompatible versions:
1133 # SysV /etc/install, /usr/sbin/install
1134 # SunOS /usr/etc/install
1135 # IRIX /sbin/install
1137 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1138 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1139 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1140 # ./install, which can be erroneously created by make from ./install.sh.
1141 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1142 echo "configure:1143: checking for a BSD compatible install" >&5
1143 if test -z "$INSTALL"; then
1144 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1145 echo $ac_n "(cached) $ac_c" 1>&6
1147 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
=":"
1148 for ac_dir
in $PATH; do
1149 # Account for people who put trailing slashes in PATH elements.
1151 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
1153 # OSF1 and SCO ODT 3.0 have their own names for install.
1154 # Don't use installbsd from OSF since it installs stuff as root
1156 for ac_prog
in ginstall scoinst
install; do
1157 if test -f $ac_dir/$ac_prog; then
1158 if test $ac_prog = install &&
1159 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
1160 # AIX install. It has an incompatible calling convention.
1163 ac_cv_path_install
="$ac_dir/$ac_prog -c"
1174 if test "${ac_cv_path_install+set}" = set; then
1175 INSTALL
="$ac_cv_path_install"
1177 # As a last resort, use the slow shell script. We don't cache a
1178 # path for INSTALL within a source directory, because that will
1179 # break other packages using the cache if that directory is
1180 # removed, or if the path is relative.
1181 INSTALL
="$ac_install_sh"
1184 echo "$ac_t""$INSTALL" 1>&6
1186 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1187 # It thinks the first close brace ends the variable substitution.
1188 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
1190 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
1192 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
1194 if test "$INSTALL" = "${srcdir}/scripts/install-sh -c"; then
1195 # The makefiles need to use a different form to find it in $srcdir.
1196 INSTALL
='\$(..)./scripts/install-sh -c'
1198 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1199 echo "configure:1200: checking whether ln -s works" >&5
1200 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1201 echo $ac_n "(cached) $ac_c" 1>&6
1204 if ln -s X conftestdata
2>/dev
/null
1207 ac_cv_prog_LN_S
="ln -s"
1212 LN_S
="$ac_cv_prog_LN_S"
1213 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1214 echo "$ac_t""yes" 1>&6
1216 echo "$ac_t""no" 1>&6
1220 # These programs are version sensitive.
1221 echo $ac_n "checking build system type""... $ac_c" 1>&6
1222 echo "configure:1223: checking build system type" >&5
1225 case "$build_alias" in
1228 NONE
) build_alias
=$host_alias ;;
1229 *) build_alias
=$nonopt ;;
1233 build
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1234 build_cpu
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1235 build_vendor
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1236 build_os
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1237 echo "$ac_t""$build" 1>&6
1239 if test $host != $build; then
1240 ac_tool_prefix
=${host_alias}-
1245 for ac_prog
in ${ac_tool_prefix}gcc
${ac_tool_prefix}cc
1247 # Extract the first word of "$ac_prog", so it can be a program name with args.
1248 set dummy
$ac_prog; ac_word
=$2
1249 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1250 echo "configure:1251: checking for $ac_word" >&5
1251 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1252 echo $ac_n "(cached) $ac_c" 1>&6
1254 if test -n "$CC"; then
1255 ac_cv_prog_CC
="$CC" # Let the user override the test.
1257 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1259 for ac_dir
in $ac_dummy; do
1260 test -z "$ac_dir" && ac_dir
=.
1261 if test -f $ac_dir/$ac_word; then
1262 ac_cv_prog_CC
="$ac_prog"
1270 if test -n "$CC"; then
1271 echo "$ac_t""$CC" 1>&6
1273 echo "$ac_t""no" 1>&6
1276 test -n "$CC" && break
1279 if test -z "$CC"; then
1282 # Found it, now check the version.
1283 echo $ac_n "checking version of $CC""... $ac_c" 1>&6
1284 echo "configure:1285: checking version of $CC" >&5
1285 ac_prog_version
=`$CC -v 2>&1 | sed -n 's/^.*version \([egcygnustp-]*[0-9.]*\).*$/\1/p'`
1286 case $ac_prog_version in
1287 '') ac_prog_version
="v. ?.??, bad"; ac_verc_fail
=yes;;
1288 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]*|
2.9[5-9]*|cygnus-2.9
[1-9].
*|gcc-2.9
[5-9]|gcc-2.1
[0-9][0-9])
1289 ac_prog_version
="$ac_prog_version, ok"; ac_verc_fail
=no
;;
1290 *) ac_prog_version
="$ac_prog_version, bad"; ac_verc_fail
=yes;;
1293 echo "$ac_t""$ac_prog_version" 1>&6
1295 if test $ac_verc_fail = yes; then
1299 for ac_prog
in make gmake
1301 # Extract the first word of "$ac_prog", so it can be a program name with args.
1302 set dummy
$ac_prog; ac_word
=$2
1303 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1304 echo "configure:1305: checking for $ac_word" >&5
1305 if eval "test \"`echo '$''{'ac_cv_prog_MAKE'+set}'`\" = set"; then
1306 echo $ac_n "(cached) $ac_c" 1>&6
1308 if test -n "$MAKE"; then
1309 ac_cv_prog_MAKE
="$MAKE" # Let the user override the test.
1311 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1313 for ac_dir
in $ac_dummy; do
1314 test -z "$ac_dir" && ac_dir
=.
1315 if test -f $ac_dir/$ac_word; then
1316 ac_cv_prog_MAKE
="$ac_prog"
1323 MAKE
="$ac_cv_prog_MAKE"
1324 if test -n "$MAKE"; then
1325 echo "$ac_t""$MAKE" 1>&6
1327 echo "$ac_t""no" 1>&6
1330 test -n "$MAKE" && break
1333 if test -z "$MAKE"; then
1336 # Found it, now check the version.
1337 echo $ac_n "checking version of $MAKE""... $ac_c" 1>&6
1338 echo "configure:1339: checking version of $MAKE" >&5
1339 ac_prog_version
=`$MAKE --version 2>&1 | sed -n 's/^.*version \([0-9][0-9.]*\), by.*$/\1/p'`
1340 case $ac_prog_version in
1341 '') ac_prog_version
="v. ?.??, bad"; ac_verc_fail
=yes;;
1342 3.75 |
3.76.
[1-9]* |
3.7[789]* |
3.
[89]*)
1343 ac_prog_version
="$ac_prog_version, ok"; ac_verc_fail
=no
;;
1344 *) ac_prog_version
="$ac_prog_version, bad"; ac_verc_fail
=yes;;
1347 echo "$ac_t""$ac_prog_version" 1>&6
1349 if test $ac_verc_fail = yes; then
1354 for ac_prog
in msgfmt gmsgfmt
1356 # Extract the first word of "$ac_prog", so it can be a program name with args.
1357 set dummy
$ac_prog; ac_word
=$2
1358 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1359 echo "configure:1360: checking for $ac_word" >&5
1360 if eval "test \"`echo '$''{'ac_cv_prog_MSGFMT'+set}'`\" = set"; then
1361 echo $ac_n "(cached) $ac_c" 1>&6
1363 if test -n "$MSGFMT"; then
1364 ac_cv_prog_MSGFMT
="$MSGFMT" # Let the user override the test.
1366 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1368 for ac_dir
in $ac_dummy; do
1369 test -z "$ac_dir" && ac_dir
=.
1370 if test -f $ac_dir/$ac_word; then
1371 ac_cv_prog_MSGFMT
="$ac_prog"
1378 MSGFMT
="$ac_cv_prog_MSGFMT"
1379 if test -n "$MSGFMT"; then
1380 echo "$ac_t""$MSGFMT" 1>&6
1382 echo "$ac_t""no" 1>&6
1385 test -n "$MSGFMT" && break
1388 if test -z "$MSGFMT"; then
1391 # Found it, now check the version.
1392 echo $ac_n "checking version of $MSGFMT""... $ac_c" 1>&6
1393 echo "configure:1394: checking version of $MSGFMT" >&5
1394 ac_prog_version
=`$MSGFMT --version 2>&1 | sed -n 's/^.*GNU gettext.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
1395 case $ac_prog_version in
1396 '') ac_prog_version
="v. ?.??, bad"; ac_verc_fail
=yes;;
1397 0.
[1-9][0-9].
* |
[1-9].
*)
1398 ac_prog_version
="$ac_prog_version, ok"; ac_verc_fail
=no
;;
1399 *) ac_prog_version
="$ac_prog_version, bad"; ac_verc_fail
=yes;;
1402 echo "$ac_t""$ac_prog_version" 1>&6
1404 if test $ac_verc_fail = yes; then
1405 MSGFMT
=: aux_missing
=t
1408 for ac_prog
in makeinfo
1410 # Extract the first word of "$ac_prog", so it can be a program name with args.
1411 set dummy
$ac_prog; ac_word
=$2
1412 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1413 echo "configure:1414: checking for $ac_word" >&5
1414 if eval "test \"`echo '$''{'ac_cv_prog_MAKEINFO'+set}'`\" = set"; then
1415 echo $ac_n "(cached) $ac_c" 1>&6
1417 if test -n "$MAKEINFO"; then
1418 ac_cv_prog_MAKEINFO
="$MAKEINFO" # Let the user override the test.
1420 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1422 for ac_dir
in $ac_dummy; do
1423 test -z "$ac_dir" && ac_dir
=.
1424 if test -f $ac_dir/$ac_word; then
1425 ac_cv_prog_MAKEINFO
="$ac_prog"
1432 MAKEINFO
="$ac_cv_prog_MAKEINFO"
1433 if test -n "$MAKEINFO"; then
1434 echo "$ac_t""$MAKEINFO" 1>&6
1436 echo "$ac_t""no" 1>&6
1439 test -n "$MAKEINFO" && break
1442 if test -z "$MAKEINFO"; then
1445 # Found it, now check the version.
1446 echo $ac_n "checking version of $MAKEINFO""... $ac_c" 1>&6
1447 echo "configure:1448: checking version of $MAKEINFO" >&5
1448 ac_prog_version
=`$MAKEINFO --version 2>&1 | sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
1449 case $ac_prog_version in
1450 '') ac_prog_version
="v. ?.??, bad"; ac_verc_fail
=yes;;
1451 3.1[1-9] |
3.
[2-9][0-9] |
1.6[89] |
1.7[0-9])
1452 ac_prog_version
="$ac_prog_version, ok"; ac_verc_fail
=no
;;
1453 *) ac_prog_version
="$ac_prog_version, bad"; ac_verc_fail
=yes;;
1456 echo "$ac_t""$ac_prog_version" 1>&6
1458 if test $ac_verc_fail = yes; then
1459 MAKEINFO
=: aux_missing
=t
1463 if test -n "$critic_missing"; then
1464 { echo "configure: error:
1465 *** Some critical program is missing or too old.
1466 *** Check the INSTALL file for required versions." 1>&2; exit 1; }
1469 test -n "$aux_missing" && echo "configure: warning:
1470 *** An auxiliary program is missing or too old;
1471 *** some features will be disabled.
1472 *** Check the INSTALL file for required versions." 1>&2
1475 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1476 echo "configure:1477: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1477 if eval "test \"`echo '$''{'ac_cv_prog_cc_works'+set}'`\" = set"; then
1478 echo $ac_n "(cached) $ac_c" 1>&6
1482 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1483 ac_cpp
='$CPP $CPPFLAGS'
1484 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1485 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1486 cross_compiling
=$ac_cv_prog_cc_cross
1488 cat > conftest.
$ac_ext << EOF
1490 #line 1491 "configure"
1491 #include "confdefs.h"
1495 if { (eval echo configure
:1496: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1496 ac_cv_prog_cc_works
=yes
1497 # If we can't run a trivial program, we are probably using a cross compiler.
1498 if (.
/conftest
; exit) 2>/dev
/null
; then
1499 ac_cv_prog_cc_cross
=no
1501 ac_cv_prog_cc_cross
=yes
1504 echo "configure: failed program was:" >&5
1505 cat conftest.
$ac_ext >&5
1506 ac_cv_prog_cc_works
=no
1510 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1511 ac_cpp
='$CPP $CPPFLAGS'
1512 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1513 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1514 cross_compiling
=$ac_cv_prog_cc_cross
1518 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1519 if test $ac_cv_prog_cc_works = no
; then
1521 ac_cv_prog_cc_cross
=yes
1525 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1526 echo "configure:1527: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1527 if eval "test \"`echo '$''{'ac_cv_prog_cc_cross'+set}'`\" = set"; then
1528 echo $ac_n "(cached) $ac_c" 1>&6
1533 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1535 cross_compiling
=$ac_cv_prog_cc_cross
1537 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1538 echo "configure:1539: checking whether we are using GNU C" >&5
1539 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1540 echo $ac_n "(cached) $ac_c" 1>&6
1542 cat > conftest.c
<<EOF
1547 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:1548: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
1554 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1555 if test $ac_cv_prog_gcc != yes; then
1556 { echo "configure: error: GNU libc must be compiled using GNU CC" 1>&2; exit 1; }
1559 echo $ac_n "checking build system type""... $ac_c" 1>&6
1560 echo "configure:1561: checking build system type" >&5
1563 case "$build_alias" in
1566 NONE
) build_alias
=$host_alias ;;
1567 *) build_alias
=$nonopt ;;
1571 build
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1572 build_cpu
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1573 build_vendor
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1574 build_os
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1575 echo "$ac_t""$build" 1>&6
1577 if test $host != $build; then
1578 for ac_prog
in gcc cc
1580 # Extract the first word of "$ac_prog", so it can be a program name with args.
1581 set dummy
$ac_prog; ac_word
=$2
1582 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1583 echo "configure:1584: checking for $ac_word" >&5
1584 if eval "test \"`echo '$''{'ac_cv_prog_BUILD_CC'+set}'`\" = set"; then
1585 echo $ac_n "(cached) $ac_c" 1>&6
1587 if test -n "$BUILD_CC"; then
1588 ac_cv_prog_BUILD_CC
="$BUILD_CC" # Let the user override the test.
1590 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1592 for ac_dir
in $ac_dummy; do
1593 test -z "$ac_dir" && ac_dir
=.
1594 if test -f $ac_dir/$ac_word; then
1595 ac_cv_prog_BUILD_CC
="$ac_prog"
1602 BUILD_CC
="$ac_cv_prog_BUILD_CC"
1603 if test -n "$BUILD_CC"; then
1604 echo "$ac_t""$BUILD_CC" 1>&6
1606 echo "$ac_t""no" 1>&6
1609 test -n "$BUILD_CC" && break
1614 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1615 echo "configure:1616: checking how to run the C preprocessor" >&5
1616 # On Suns, sometimes $CPP names a directory.
1617 if test -n "$CPP" && test -d "$CPP"; then
1620 if test -z "$CPP"; then
1621 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1622 echo $ac_n "(cached) $ac_c" 1>&6
1624 # This must be in double quotes, not single quotes, because CPP may get
1625 # substituted into the Makefile and "${CC-cc}" will confuse make.
1627 # On the NeXT, cc -E runs the code through the compiler's parser,
1628 # not just through cpp.
1629 cat > conftest.
$ac_ext <<EOF
1630 #line 1631 "configure"
1631 #include "confdefs.h"
1635 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1636 { (eval echo configure
:1637: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1637 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1638 if test -z "$ac_err"; then
1642 echo "configure: failed program was:" >&5
1643 cat conftest.
$ac_ext >&5
1645 CPP
="${CC-cc} -E -traditional-cpp"
1646 cat > conftest.
$ac_ext <<EOF
1647 #line 1648 "configure"
1648 #include "confdefs.h"
1652 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1653 { (eval echo configure
:1654: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1654 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1655 if test -z "$ac_err"; then
1659 echo "configure: failed program was:" >&5
1660 cat conftest.
$ac_ext >&5
1662 CPP
="${CC-cc} -nologo -E"
1663 cat > conftest.
$ac_ext <<EOF
1664 #line 1665 "configure"
1665 #include "confdefs.h"
1669 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1670 { (eval echo configure
:1671: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1671 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1672 if test -z "$ac_err"; then
1676 echo "configure: failed program was:" >&5
1677 cat conftest.
$ac_ext >&5
1686 ac_cv_prog_CPP
="$CPP"
1688 CPP
="$ac_cv_prog_CPP"
1690 ac_cv_prog_CPP
="$CPP"
1692 echo "$ac_t""$CPP" 1>&6
1694 # Was a --with-binutils option given?
1695 if test -n "$path_binutils"; then
1696 # Make absolute; ensure a single trailing slash.
1697 path_binutils
=`(cd $path_binutils; pwd) | sed 's%/*$%/%'`
1698 CC
="$CC -B$path_binutils"
1700 AS
=`$CC -print-prog-name=as`
1701 LD
=`$CC -print-prog-name=ld`
1702 AR
=`$CC -print-prog-name=ar`
1705 # ranlib has to be treated a bit differently since it might not exist at all.
1706 RANLIB
=`$CC -print-prog-name=ranlib`
1707 if test $RANLIB = ranlib
; then
1708 # This extra check has to happen since gcc simply echos the parameter in
1709 # case it cannot find the value in its own directories.
1710 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1711 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
1712 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1713 echo "configure:1714: checking for $ac_word" >&5
1714 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1715 echo $ac_n "(cached) $ac_c" 1>&6
1717 if test -n "$RANLIB"; then
1718 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1720 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1722 for ac_dir
in $ac_dummy; do
1723 test -z "$ac_dir" && ac_dir
=.
1724 if test -f $ac_dir/$ac_word; then
1725 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
1732 RANLIB
="$ac_cv_prog_RANLIB"
1733 if test -n "$RANLIB"; then
1734 echo "$ac_t""$RANLIB" 1>&6
1736 echo "$ac_t""no" 1>&6
1740 if test -z "$ac_cv_prog_RANLIB"; then
1741 if test -n "$ac_tool_prefix"; then
1742 # Extract the first word of "ranlib", so it can be a program name with args.
1743 set dummy ranlib
; ac_word
=$2
1744 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1745 echo "configure:1746: checking for $ac_word" >&5
1746 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1747 echo $ac_n "(cached) $ac_c" 1>&6
1749 if test -n "$RANLIB"; then
1750 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1752 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1754 for ac_dir
in $ac_dummy; do
1755 test -z "$ac_dir" && ac_dir
=.
1756 if test -f $ac_dir/$ac_word; then
1757 ac_cv_prog_RANLIB
="ranlib"
1762 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
1765 RANLIB
="$ac_cv_prog_RANLIB"
1766 if test -n "$RANLIB"; then
1767 echo "$ac_t""$RANLIB" 1>&6
1769 echo "$ac_t""no" 1>&6
1780 # Determine whether we are using GNU binutils.
1781 echo $ac_n "checking whether $AS is GNU as""... $ac_c" 1>&6
1782 echo "configure:1783: checking whether $AS is GNU as" >&5
1783 if eval "test \"`echo '$''{'libc_cv_prog_as_gnu'+set}'`\" = set"; then
1784 echo $ac_n "(cached) $ac_c" 1>&6
1786 # Most GNU programs take a -v and spit out some text including
1787 # the word 'GNU'. Some try to read stdin, so give them /dev/null.
1788 if $AS -o conftest
-v </dev
/null
2>&1 |
grep GNU
> /dev
/null
2>&1; then
1789 libc_cv_prog_as_gnu
=yes
1791 libc_cv_prog_as_gnu
=no
1796 echo "$ac_t""$libc_cv_prog_as_gnu" 1>&6
1798 gnu_as
=$libc_cv_prog_as_gnu
1800 echo $ac_n "checking whether $LD is GNU ld""... $ac_c" 1>&6
1801 echo "configure:1802: checking whether $LD is GNU ld" >&5
1802 if eval "test \"`echo '$''{'libc_cv_prog_ld_gnu'+set}'`\" = set"; then
1803 echo $ac_n "(cached) $ac_c" 1>&6
1805 # Most GNU programs take a -v and spit out some text including
1806 # the word 'GNU'. Some try to read stdin, so give them /dev/null.
1807 if $LD -o conftest
-v </dev
/null
2>&1 |
grep GNU
> /dev
/null
2>&1; then
1808 libc_cv_prog_ld_gnu
=yes
1810 libc_cv_prog_ld_gnu
=no
1815 echo "$ac_t""$libc_cv_prog_ld_gnu" 1>&6
1816 gnu_ld
=$libc_cv_prog_ld_gnu
1818 # Extract the first word of "${ac_tool_prefix}mig", so it can be a program name with args.
1819 set dummy
${ac_tool_prefix}mig
; ac_word
=$2
1820 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1821 echo "configure:1822: checking for $ac_word" >&5
1822 if eval "test \"`echo '$''{'ac_cv_prog_MIG'+set}'`\" = set"; then
1823 echo $ac_n "(cached) $ac_c" 1>&6
1825 if test -n "$MIG"; then
1826 ac_cv_prog_MIG
="$MIG" # Let the user override the test.
1828 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1830 for ac_dir
in $ac_dummy; do
1831 test -z "$ac_dir" && ac_dir
=.
1832 if test -f $ac_dir/$ac_word; then
1833 ac_cv_prog_MIG
="${ac_tool_prefix}mig"
1838 test -z "$ac_cv_prog_MIG" && ac_cv_prog_MIG
="mig"
1841 MIG
="$ac_cv_prog_MIG"
1842 if test -n "$MIG"; then
1843 echo "$ac_t""$MIG" 1>&6
1845 echo "$ac_t""no" 1>&6
1851 # if using special system headers, find out the compiler's sekrit
1852 # header directory and add that to the list. NOTE: Only does the right
1853 # thing on a system that doesn't need fixincludes. (Not presently a problem.)
1854 if test -n "$sysheaders"; then
1855 ccheaders
=`$CC -print-file-name=include`
1856 SYSINCLUDES
="-nostdinc -isystem $ccheaders -isystem $sysheaders"
1860 # check if ranlib is necessary
1861 echo $ac_n "checking whether ranlib is necessary""... $ac_c" 1>&6
1862 echo "configure:1863: checking whether ranlib is necessary" >&5
1863 if eval "test \"`echo '$''{'libc_cv_ranlib_necessary'+set}'`\" = set"; then
1864 echo $ac_n "(cached) $ac_c" 1>&6
1866 cat > conftest.c
<<EOF
1871 $CC $CFLAGS -c conftest.c
1872 $AR cr conftest.a conftest.c
1873 cp conftest.a conftest2.a
1875 if cmp -s conftest.a conftest2.a
; then
1876 libc_cv_ranlib_necessary
=no
1878 libc_cv_ranlib_necessary
=yes
1883 echo "$ac_t""$libc_cv_ranlib_necessary" 1>&6
1884 if test "$libc_cv_ranlib_necessary" = no
; then
1888 # Test if LD_LIBRARY_PATH contains the notation for the current directory
1889 # since this would lead to problems installing/building glibc.
1890 # LD_LIBRARY_PATH contains the current directory if one of the following
1892 # - one of the terminals (":" and ";") is the first or last sign
1893 # - two terminals occur directly after each other
1894 # - the path contains an element with a dot in it
1895 echo $ac_n "checking LD_LIBRARY_PATH variable""... $ac_c" 1>&6
1896 echo "configure:1897: checking LD_LIBRARY_PATH variable" >&5
1897 case ${LD_LIBRARY_PATH} in
1898 [:\
;]* |
*[:\
;] |
*[:\
;][:\
;]* |
*[:\
;]. | .
[:\
;]*| . |
*[:\
;].
[:\
;]* )
1899 ld_library_path_setting
="contains current directory"
1902 ld_library_path_setting
="ok"
1905 echo "$ac_t""$ld_library_path_setting" 1>&6
1906 if test "$ld_library_path_setting" != "ok"; then
1907 { echo "configure: error:
1908 *** LD_LIBRARY_PATH shouldn't contain the current directory when
1909 *** building glibc. Please change the environment variable
1910 *** and run configure again." 1>&2; exit 1; }
1913 # Extract the first word of "bash", so it can be a program name with args.
1914 set dummy bash
; ac_word
=$2
1915 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1916 echo "configure:1917: checking for $ac_word" >&5
1917 if eval "test \"`echo '$''{'ac_cv_path_BASH'+set}'`\" = set"; then
1918 echo $ac_n "(cached) $ac_c" 1>&6
1922 ac_cv_path_BASH
="$BASH" # Let the user override the test with a path.
1925 ac_cv_path_BASH
="$BASH" # Let the user override the test with a dos path.
1928 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1930 for ac_dir
in $ac_dummy; do
1931 test -z "$ac_dir" && ac_dir
=.
1932 if test -f $ac_dir/$ac_word; then
1933 ac_cv_path_BASH
="$ac_dir/$ac_word"
1938 test -z "$ac_cv_path_BASH" && ac_cv_path_BASH
="no"
1942 BASH
="$ac_cv_path_BASH"
1943 if test -n "$BASH"; then
1944 echo "$ac_t""$BASH" 1>&6
1946 echo "$ac_t""no" 1>&6
1949 if test "$BASH" != no
&&
1950 $BASH -c 'test "$BASH_VERSINFO" \
1951 && test "$BASH_VERSINFO" -ge 2 >&/dev/null'; then
1952 libc_cv_have_bash2
=yes
1954 libc_cv_have_bash2
=no
1958 if test "$BASH" = no
; then
1959 # Extract the first word of "ksh", so it can be a program name with args.
1960 set dummy ksh
; ac_word
=$2
1961 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1962 echo "configure:1963: checking for $ac_word" >&5
1963 if eval "test \"`echo '$''{'ac_cv_path_KSH'+set}'`\" = set"; then
1964 echo $ac_n "(cached) $ac_c" 1>&6
1968 ac_cv_path_KSH
="$KSH" # Let the user override the test with a path.
1971 ac_cv_path_KSH
="$KSH" # Let the user override the test with a dos path.
1974 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1976 for ac_dir
in $ac_dummy; do
1977 test -z "$ac_dir" && ac_dir
=.
1978 if test -f $ac_dir/$ac_word; then
1979 ac_cv_path_KSH
="$ac_dir/$ac_word"
1984 test -z "$ac_cv_path_KSH" && ac_cv_path_KSH
="no"
1988 KSH
="$ac_cv_path_KSH"
1989 if test -n "$KSH"; then
1990 echo "$ac_t""$KSH" 1>&6
1992 echo "$ac_t""no" 1>&6
1995 if test "$KSH" = no
; then
1998 libc_cv_have_ksh
=yes
2003 libc_cv_have_ksh
=yes
2007 for ac_prog
in mawk gawk nawk
awk
2009 # Extract the first word of "$ac_prog", so it can be a program name with args.
2010 set dummy
$ac_prog; ac_word
=$2
2011 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2012 echo "configure:2013: checking for $ac_word" >&5
2013 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
2014 echo $ac_n "(cached) $ac_c" 1>&6
2016 if test -n "$AWK"; then
2017 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
2019 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2021 for ac_dir
in $ac_dummy; do
2022 test -z "$ac_dir" && ac_dir
=.
2023 if test -f $ac_dir/$ac_word; then
2024 ac_cv_prog_AWK
="$ac_prog"
2031 AWK
="$ac_cv_prog_AWK"
2032 if test -n "$AWK"; then
2033 echo "$ac_t""$AWK" 1>&6
2035 echo "$ac_t""no" 1>&6
2038 test -n "$AWK" && break
2041 # Extract the first word of "perl", so it can be a program name with args.
2042 set dummy perl
; ac_word
=$2
2043 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2044 echo "configure:2045: checking for $ac_word" >&5
2045 if eval "test \"`echo '$''{'ac_cv_path_PERL'+set}'`\" = set"; then
2046 echo $ac_n "(cached) $ac_c" 1>&6
2050 ac_cv_path_PERL
="$PERL" # Let the user override the test with a path.
2053 ac_cv_path_PERL
="$PERL" # Let the user override the test with a dos path.
2056 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2058 for ac_dir
in $ac_dummy; do
2059 test -z "$ac_dir" && ac_dir
=.
2060 if test -f $ac_dir/$ac_word; then
2061 ac_cv_path_PERL
="$ac_dir/$ac_word"
2066 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL
="no"
2070 PERL
="$ac_cv_path_PERL"
2071 if test -n "$PERL"; then
2072 echo "$ac_t""$PERL" 1>&6
2074 echo "$ac_t""no" 1>&6
2078 # Extract the first word of "install-info", so it can be a program name with args.
2079 set dummy install-info
; ac_word
=$2
2080 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2081 echo "configure:2082: checking for $ac_word" >&5
2082 if eval "test \"`echo '$''{'ac_cv_path_INSTALL_INFO'+set}'`\" = set"; then
2083 echo $ac_n "(cached) $ac_c" 1>&6
2085 case "$INSTALL_INFO" in
2087 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
2090 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a dos path.
2093 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2094 ac_dummy
="$PATH:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin"
2095 for ac_dir
in $ac_dummy; do
2096 test -z "$ac_dir" && ac_dir
=.
2097 if test -f $ac_dir/$ac_word; then
2098 ac_cv_path_INSTALL_INFO
="$ac_dir/$ac_word"
2103 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO
="no"
2107 INSTALL_INFO
="$ac_cv_path_INSTALL_INFO"
2108 if test -n "$INSTALL_INFO"; then
2109 echo "$ac_t""$INSTALL_INFO" 1>&6
2111 echo "$ac_t""no" 1>&6
2115 if test "$INSTALL_INFO" != "no"; then
2116 echo $ac_n "checking for old Debian install-info""... $ac_c" 1>&6
2117 echo "configure:2118: checking for old Debian install-info" >&5
2118 if eval "test \"`echo '$''{'libc_cv_old_debian_install_info'+set}'`\" = set"; then
2119 echo $ac_n "(cached) $ac_c" 1>&6
2122 # There is a hard ^_ on the next line. I am open to better ideas.
2124 echo 'File: dir Node: Top This is the top of the INFO tree'
2125 echo '* Menu:') >conftest.d
/dir
2126 (echo 'INFO-DIR-SECTION i-d-s works'
2127 echo 'START-INFO-DIR-ENTRY'
2128 echo '* Prog: (prog). Program.'
2129 echo 'END-INFO-DIR-ENTRY') >conftest.d
/prog.info
2130 if $INSTALL_INFO --info-dir=conftest.d conftest.d
/prog.info
>&5 2>&1
2132 if grep -s 'i-d-s works' conftest.d
/dir
>/dev
/null
2133 then libc_cv_old_debian_install_info
=no
2134 else libc_cv_old_debian_install_info
=yes
2136 else libc_cv_old_debian_install_info
=no testfailed
=t
2141 echo "$ac_t""$libc_cv_old_debian_install_info" 1>&6
2142 if test -n "$testfailed"
2143 then echo "configure: warning: install-info errored out, check config.log" 1>&2
2145 OLD_DEBIAN_INSTALL_INFO
=$libc_cv_old_debian_install_info
2149 echo $ac_n "checking for signed size_t type""... $ac_c" 1>&6
2150 echo "configure:2151: checking for signed size_t type" >&5
2151 if eval "test \"`echo '$''{'libc_cv_signed_size_t'+set}'`\" = set"; then
2152 echo $ac_n "(cached) $ac_c" 1>&6
2154 echo '#include <stddef.h>
2155 FOOBAR __SIZE_TYPE__ FOOBAR' > conftest.c
2156 if eval "$ac_cpp conftest.c 2>/dev/null" \
2157 |
grep '^FOOBAR.*unsigned.*FOOBAR$' >/dev
/null
; then
2158 libc_cv_signed_size_t
=no
2160 libc_cv_signed_size_t
=yes
2165 echo "$ac_t""$libc_cv_signed_size_t" 1>&6
2166 if test $libc_cv_signed_size_t = yes; then
2167 cat >> confdefs.h
<<\EOF
2168 #undef __SIZE_TYPE__
2169 #define __SIZE_TYPE__ unsigned
2173 echo $ac_n "checking for libc-friendly stddef.h""... $ac_c" 1>&6
2174 echo "configure:2175: checking for libc-friendly stddef.h" >&5
2175 if eval "test \"`echo '$''{'libc_cv_friendly_stddef'+set}'`\" = set"; then
2176 echo $ac_n "(cached) $ac_c" 1>&6
2178 cat > conftest.
$ac_ext <<EOF
2179 #line 2180 "configure"
2180 #include "confdefs.h"
2181 #define __need_size_t
2182 #define __need_wchar_t
2187 size_t size; wchar_t wchar;
2189 #error stddef.h ignored __need_*
2191 if (&size == NULL || &wchar == NULL) abort ();
2194 if { (eval echo configure
:2195: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2196 libc_cv_friendly_stddef
=yes
2198 echo "configure: failed program was:" >&5
2199 cat conftest.
$ac_ext >&5
2201 libc_cv_friendly_stddef
=no
2206 echo "$ac_t""$libc_cv_friendly_stddef" 1>&6
2207 if test $libc_cv_friendly_stddef = yes; then
2208 config_vars
="$config_vars
2209 override stddef.h = # The installed <stddef.h> seems to be libc-friendly."
2212 echo $ac_n "checking whether we need to use -P to assemble .S files""... $ac_c" 1>&6
2213 echo "configure:2214: checking whether we need to use -P to assemble .S files" >&5
2214 if eval "test \"`echo '$''{'libc_cv_need_minus_P'+set}'`\" = set"; then
2215 echo $ac_n "(cached) $ac_c" 1>&6
2217 cat > conftest.S
<<EOF
2218 #include "confdefs.h"
2219 /* Nothing whatsoever. */
2221 if ${CC-cc} $CFLAGS -c conftest.S
2>/dev
/null
; then
2222 libc_cv_need_minus_P
=no
2224 libc_cv_need_minus_P
=yes
2229 echo "$ac_t""$libc_cv_need_minus_P" 1>&6
2230 if test $libc_cv_need_minus_P = yes; then
2231 config_vars
="$config_vars
2232 asm-CPPFLAGS = -P # The assembler can't grok cpp's # line directives."
2235 echo $ac_n "checking for assembler global-symbol directive""... $ac_c" 1>&6
2236 echo "configure:2237: checking for assembler global-symbol directive" >&5
2237 if eval "test \"`echo '$''{'libc_cv_asm_global_directive'+set}'`\" = set"; then
2238 echo $ac_n "(cached) $ac_c" 1>&6
2240 libc_cv_asm_global_directive
=UNKNOWN
2241 for ac_globl
in .globl .global .EXPORT
; do
2242 cat > conftest.s
<<EOF
2247 if ${CC-cc} $CFLAGS -c conftest.s
2>/dev
/null
; then
2248 libc_cv_asm_global_directive
=${ac_globl}
2251 test $libc_cv_asm_global_directive != UNKNOWN
&& break
2255 echo "$ac_t""$libc_cv_asm_global_directive" 1>&6
2256 if test $libc_cv_asm_global_directive = UNKNOWN
; then
2257 { echo "configure: error: cannot determine asm global directive" 1>&2; exit 1; }
2259 cat >> confdefs.h
<<EOF
2260 #define ASM_GLOBAL_DIRECTIVE ${libc_cv_asm_global_directive}
2265 echo $ac_n "checking for .set assembler directive""... $ac_c" 1>&6
2266 echo "configure:2267: checking for .set assembler directive" >&5
2267 if eval "test \"`echo '$''{'libc_cv_asm_set_directive'+set}'`\" = set"; then
2268 echo $ac_n "(cached) $ac_c" 1>&6
2270 cat > conftest.s
<<EOF
2273 .set glibc_conftest_frobozz,foo
2274 $libc_cv_asm_global_directive glibc_conftest_frobozz
2276 # The alpha-dec-osf1 assembler gives only a warning for `.set'
2277 # (but it doesn't work), so we must do a linking check to be sure.
2278 cat > conftest1.c
<<\EOF
2279 extern int glibc_conftest_frobozz
;
2280 main
() { printf ("%d\n", glibc_conftest_frobozz
); }
2282 if ${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \
2283 -o conftest conftest.s conftest1.c
1>&5 2>&5; then
2284 libc_cv_asm_set_directive
=yes
2286 libc_cv_asm_set_directive
=no
2291 echo "$ac_t""$libc_cv_asm_set_directive" 1>&6
2292 if test $libc_cv_asm_set_directive = yes; then
2293 cat >> confdefs.h
<<\EOF
2294 #define HAVE_ASM_SET_DIRECTIVE 1
2299 echo $ac_n "checking for .symver assembler directive""... $ac_c" 1>&6
2300 echo "configure:2301: checking for .symver assembler directive" >&5
2301 if eval "test \"`echo '$''{'libc_cv_asm_symver_directive'+set}'`\" = set"; then
2302 echo $ac_n "(cached) $ac_c" 1>&6
2304 cat > conftest.s
<<EOF
2307 .symver _sym,sym@VERS
2309 if ${CC-cc} -c $CFLAGS $CPPFLAGS conftest.s
1>&5 2>&5; then
2310 libc_cv_asm_symver_directive
=yes
2312 libc_cv_asm_symver_directive
=no
2317 echo "$ac_t""$libc_cv_asm_symver_directive" 1>&6
2318 echo $ac_n "checking for ld --version-script""... $ac_c" 1>&6
2319 echo "configure:2320: checking for ld --version-script" >&5
2320 if eval "test \"`echo '$''{'libc_cv_ld_version_script_option'+set}'`\" = set"; then
2321 echo $ac_n "(cached) $ac_c" 1>&6
2323 if test $libc_cv_asm_symver_directive = yes; then
2324 cat > conftest.s
<<EOF
2327 .symver _sym,sym@VERS
2329 cat > conftest.map
<<EOF
2338 if ${CC-cc} -c $CFLAGS $CPPFLAGS conftest.s
1>&5 2>&5; then
2339 if { ac_try
='${CC-cc} $CFLAGS -shared -o conftest.so conftest.o
2340 -nostartfiles -nostdlib
2341 -Wl,--version-script,conftest.map
2342 1>&5'; { (eval echo configure
:2343: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; };
2344 libc_cv_ld_version_script_option
=yes
2346 libc_cv_ld_version_script_option
=no
2349 libc_cv_ld_version_script_option
=no
2352 libc_cv_ld_version_script_option
=no
2357 echo "$ac_t""$libc_cv_ld_version_script_option" 1>&6
2358 if test $libc_cv_asm_symver_directive = yes &&
2359 test $libc_cv_ld_version_script_option = yes &&
2360 test $enable_versioning = yes; then
2362 cat >> confdefs.h
<<\EOF
2363 #define DO_VERSIONING 1
2371 if test $VERSIONING = no
; then
2373 *** WARNING: You should not compile GNU libc without versioning. Not using
2374 *** versioning will introduce incompatibilities so that old binaries
2375 *** will not run anymore.
2376 *** For versioning you need recent binutils (binutils-2.8.1.0.23 or newer)."
2378 if test $elf = yes; then
2379 echo $ac_n "checking for .previous assembler directive""... $ac_c" 1>&6
2380 echo "configure:2381: checking for .previous assembler directive" >&5
2381 if eval "test \"`echo '$''{'libc_cv_asm_previous_directive'+set}'`\" = set"; then
2382 echo $ac_n "(cached) $ac_c" 1>&6
2384 cat > conftest.s
<<EOF
2385 .section foo_section
2388 if { ac_try
='${CC-cc} -c $CFLAGS conftest.s 1>&5'; { (eval echo configure
:2389: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
2389 libc_cv_asm_previous_directive
=yes
2391 libc_cv_asm_previous_directive
=no
2396 echo "$ac_t""$libc_cv_asm_previous_directive" 1>&6
2397 if test $libc_cv_asm_previous_directive = yes; then
2398 cat >> confdefs.h
<<\EOF
2399 #define HAVE_ASM_PREVIOUS_DIRECTIVE 1
2403 echo $ac_n "checking for .popsection assembler directive""... $ac_c" 1>&6
2404 echo "configure:2405: checking for .popsection assembler directive" >&5
2405 if eval "test \"`echo '$''{'libc_cv_asm_popsection_directive'+set}'`\" = set"; then
2406 echo $ac_n "(cached) $ac_c" 1>&6
2408 cat > conftest.s
<<EOF
2409 .pushsection foo_section
2412 if { ac_try
='${CC-cc} -c $CFLAGS conftest.s 1>&5'; { (eval echo configure
:2413: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
2413 libc_cv_asm_popsection_directive
=yes
2415 libc_cv_asm_popsection_directive
=no
2420 echo "$ac_t""$libc_cv_asm_popsection_directive" 1>&6
2421 if test $libc_cv_asm_popsection_directive = yes; then
2422 cat >> confdefs.h
<<\EOF
2423 #define HAVE_ASM_POPSECTION_DIRECTIVE 1
2430 if test $elf != yes; then
2431 echo $ac_n "checking for .init and .fini sections""... $ac_c" 1>&6
2432 echo "configure:2433: checking for .init and .fini sections" >&5
2433 if eval "test \"`echo '$''{'libc_cv_have_initfini'+set}'`\" = set"; then
2434 echo $ac_n "(cached) $ac_c" 1>&6
2436 cat > conftest.
$ac_ext <<EOF
2437 #line 2438 "configure"
2438 #include "confdefs.h"
2441 asm (".section .init");
2442 asm (".section .fini");
2446 if { (eval echo configure
:2447: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2448 libc_cv_have_initfini
=yes
2450 echo "configure: failed program was:" >&5
2451 cat conftest.
$ac_ext >&5
2453 libc_cv_have_initfini
=no
2458 echo "$ac_t""$libc_cv_have_initfini" 1>&6
2459 if test $libc_cv_have_initfini = yes; then
2460 cat >> confdefs.h
<<\EOF
2461 #define HAVE_INITFINI 1
2469 if test $elf = yes; then
2470 libc_cv_asm_underscores
=no
2472 if test $ac_cv_prog_cc_works = yes; then
2473 echo $ac_n "checking for _ prefix on C symbol names""... $ac_c" 1>&6
2474 echo "configure:2475: checking for _ prefix on C symbol names" >&5
2475 if eval "test \"`echo '$''{'libc_cv_asm_underscores'+set}'`\" = set"; then
2476 echo $ac_n "(cached) $ac_c" 1>&6
2478 cat > conftest.
$ac_ext <<EOF
2479 #line 2480 "configure"
2480 #include "confdefs.h"
2481 asm ("_glibc_foobar:");
2486 if { (eval echo configure
:2487: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2488 libc_cv_asm_underscores
=yes
2490 echo "configure: failed program was:" >&5
2491 cat conftest.
$ac_ext >&5
2493 libc_cv_asm_underscores
=no
2498 echo "$ac_t""$libc_cv_asm_underscores" 1>&6
2500 echo $ac_n "checking for _ prefix on C symbol names""... $ac_c" 1>&6
2501 echo "configure:2502: checking for _ prefix on C symbol names" >&5
2502 if eval "test \"`echo '$''{'libc_cv_asm_underscores'+set}'`\" = set"; then
2503 echo $ac_n "(cached) $ac_c" 1>&6
2505 cat > conftest.
$ac_ext <<EOF
2506 #line 2507 "configure"
2507 #include "confdefs.h"
2508 void underscore_test(void) {
2511 if { (eval echo configure
:2512: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2512 if grep _underscore_test conftest
* >/dev
/null
; then
2514 libc_cv_asm_underscores
=yes
2517 libc_cv_asm_underscores
=no
2520 echo "configure: failed program was:" >&5
2521 cat conftest.
$ac_ext >&5
2523 libc_cv_asm_underscores
=no
2528 echo "$ac_t""$libc_cv_asm_underscores" 1>&6
2531 if test $libc_cv_asm_underscores = no
; then
2532 cat >> confdefs.h
<<\EOF
2533 #define NO_UNDERSCORES 1
2538 if test $elf = yes; then
2539 libc_cv_weak_symbols
=yes
2542 echo $ac_n "checking for assembler .weak directive""... $ac_c" 1>&6
2543 echo "configure:2544: checking for assembler .weak directive" >&5
2544 if eval "test \"`echo '$''{'libc_cv_asm_weak_directive'+set}'`\" = set"; then
2545 echo $ac_n "(cached) $ac_c" 1>&6
2547 cat > conftest.s
<<EOF
2549 ${libc_cv_asm_global_directive} foo
2552 .weak bar; bar = foo
2554 if ${CC-cc} $CFLAGS -c conftest.s
2>/dev
/null
; then
2555 libc_cv_asm_weak_directive
=yes
2557 libc_cv_asm_weak_directive
=no
2562 echo "$ac_t""$libc_cv_asm_weak_directive" 1>&6
2564 if test $libc_cv_asm_weak_directive = no
; then
2565 echo $ac_n "checking for assembler .weakext directive""... $ac_c" 1>&6
2566 echo "configure:2567: checking for assembler .weakext directive" >&5
2567 if eval "test \"`echo '$''{'libc_cv_asm_weakext_directive'+set}'`\" = set"; then
2568 echo $ac_n "(cached) $ac_c" 1>&6
2570 cat > conftest.s
<<EOF
2572 ${libc_cv_asm_global_directive} foo
2576 ${libc_cv_asm_global_directive} baz
2579 if ${CC-cc} $CFLAGS -c conftest.s
2>/dev
/null
; then
2580 libc_cv_asm_weakext_directive
=yes
2582 libc_cv_asm_weakext_directive
=no
2587 echo "$ac_t""$libc_cv_asm_weakext_directive" 1>&6
2591 if test $libc_cv_asm_weak_directive = yes; then
2592 cat >> confdefs.h
<<\EOF
2593 #define HAVE_ASM_WEAK_DIRECTIVE 1
2596 elif test $libc_cv_asm_weakext_directive = yes; then
2597 cat >> confdefs.h
<<\EOF
2598 #define HAVE_ASM_WEAKEXT_DIRECTIVE 1
2603 echo $ac_n "checking for ld --no-whole-archive""... $ac_c" 1>&6
2604 echo "configure:2605: checking for ld --no-whole-archive" >&5
2605 if eval "test \"`echo '$''{'libc_cv_ld_no_whole_archive'+set}'`\" = set"; then
2606 echo $ac_n "(cached) $ac_c" 1>&6
2608 cat > conftest.c
<<\EOF
2613 if { ac_try
='${CC-cc} $CFLAGS
2614 -nostdlib -nostartfiles -Wl,--no-whole-archive
2615 -o conftest conftest.c 1>&5'; { (eval echo configure
:2616: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
2616 libc_cv_ld_no_whole_archive
=yes
2618 libc_cv_ld_no_whole_archive
=no
2623 echo "$ac_t""$libc_cv_ld_no_whole_archive" 1>&6
2624 if test $libc_cv_ld_no_whole_archive = yes; then
2625 no_whole_archive
=-Wl,--no-whole-archive
2628 echo $ac_n "checking for gcc -fexceptions""... $ac_c" 1>&6
2629 echo "configure:2630: checking for gcc -fexceptions" >&5
2630 if eval "test \"`echo '$''{'libc_cv_gcc_exceptions'+set}'`\" = set"; then
2631 echo $ac_n "(cached) $ac_c" 1>&6
2633 cat > conftest.c
<<\EOF
2638 if { ac_try
='${CC-cc} $CFLAGS
2639 -nostdlib -nostartfiles -fexceptions
2640 -o conftest conftest.c 1>&5'; { (eval echo configure
:2641: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
2641 libc_cv_gcc_exceptions
=yes
2643 libc_cv_gcc_exceptions
=no
2648 echo "$ac_t""$libc_cv_gcc_exceptions" 1>&6
2649 if test $libc_cv_gcc_exceptions = yes; then
2650 exceptions
=-fexceptions
2653 if test "$base_machine" = alpha
; then
2654 echo $ac_n "checking for function ..ng prefix""... $ac_c" 1>&6
2655 echo "configure:2656: checking for function ..ng prefix" >&5
2656 if eval "test \"`echo '$''{'libc_cv_gcc_alpha_ng_prefix'+set}'`\" = set"; then
2657 echo $ac_n "(cached) $ac_c" 1>&6
2659 cat > conftest.c
<<\EOF
2662 if { ac_try
='${CC-cc} -S conftest.c -o - | fgrep "\$foo..ng" > /dev/null'; { (eval echo configure
:2663: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; };
2664 libc_cv_gcc_alpha_ng_prefix
=yes
2666 libc_cv_gcc_alpha_ng_prefix
=no
2671 echo "$ac_t""$libc_cv_gcc_alpha_ng_prefix" 1>&6
2672 if test $libc_cv_gcc_alpha_ng_prefix = yes ; then
2673 cat >> confdefs.h
<<\EOF
2674 #define ASM_ALPHA_NG_SYMBOL_PREFIX "$"
2678 cat >> confdefs.h
<<\EOF
2679 #define ASM_ALPHA_NG_SYMBOL_PREFIX ""
2685 if test "$host_cpu" = powerpc
; then
2686 # Check for a bug present in at least versions 2.8.x of GCC
2687 # and versions 1.0.x of EGCS.
2688 echo $ac_n "checking whether clobbering cr0 causes problems""... $ac_c" 1>&6
2689 echo "configure:2690: checking whether clobbering cr0 causes problems" >&5
2690 if eval "test \"`echo '$''{'libc_cv_c_asmcr0_bug'+set}'`\" = set"; then
2691 echo $ac_n "(cached) $ac_c" 1>&6
2693 cat > conftest.
$ac_ext <<EOF
2694 #line 2695 "configure"
2695 #include "confdefs.h"
2696 int tester(int x) { asm ("" : : : "cc"); return x & 123; }
2701 if { (eval echo configure
:2702: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2703 libc_cv_c_asmcr0_bug
='no'
2705 echo "configure: failed program was:" >&5
2706 cat conftest.
$ac_ext >&5
2708 libc_cv_c_asmcr0_bug
='yes'
2713 echo "$ac_t""$libc_cv_c_asmcr0_bug" 1>&6
2714 if test "$libc_cv_c_asmcr0_bug" != 'no'; then
2715 cat >> confdefs.h
<<\EOF
2716 #define BROKEN_PPC_ASM_CR0 1
2722 echo $ac_n "checking for DWARF2 unwind info support""... $ac_c" 1>&6
2723 echo "configure:2724: checking for DWARF2 unwind info support" >&5
2724 if eval "test \"`echo '$''{'libc_cv_gcc_dwarf2_unwind_info'+set}'`\" = set"; then
2725 echo $ac_n "(cached) $ac_c" 1>&6
2727 cat > conftest.c
<<EOF
2728 #line 2729 "configure"
2729 static char __EH_FRAME_BEGIN__;
2732 #ifdef CHECK__register_frame
2733 __register_frame (__EH_FRAME_BEGIN__);
2734 __deregister_frame (__EH_FRAME_BEGIN__);
2736 #ifdef CHECK__register_frame_info
2737 __register_frame_info (__EH_FRAME_BEGIN__);
2738 __deregister_frame_info (__EH_FRAME_BEGIN__);
2743 /* FIXME: this is fragile. */
2753 if { ac_try
='${CC-cc} $CFLAGS -DCHECK__register_frame_info
2754 -nostdlib -nostartfiles
2755 -o conftest conftest.c -lgcc >&5'; { (eval echo configure
:2756: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
2756 libc_cv_gcc_dwarf2_unwind_info
=static
2758 libc_cv_gcc_dwarf2_unwind_info
=no
2760 if test $libc_cv_gcc_dwarf2_unwind_info = no
; then
2761 if { ac_try
='${CC-cc} $CFLAGS -DCHECK__register_frame
2762 -nostdlib -nostartfiles
2763 -o conftest conftest.c -lgcc >&5'; { (eval echo configure
:2764: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
2764 libc_cv_gcc_dwarf2_unwind_info
=yes
2766 libc_cv_gcc_dwarf2_unwind_info
=no
2772 echo "$ac_t""$libc_cv_gcc_dwarf2_unwind_info" 1>&6
2773 case $libc_cv_gcc_dwarf2_unwind_info in
2775 cat >> confdefs.h
<<\EOF
2776 #define HAVE_DWARF2_UNWIND_INFO 1
2781 cat >> confdefs.h
<<\EOF
2782 #define HAVE_DWARF2_UNWIND_INFO 1
2785 cat >> confdefs.h
<<\EOF
2786 #define HAVE_DWARF2_UNWIND_INFO_STATIC 1
2792 echo $ac_n "checking for __builtin_expect""... $ac_c" 1>&6
2793 echo "configure:2794: checking for __builtin_expect" >&5
2794 if eval "test \"`echo '$''{'libc_cv_gcc_builtin_expect'+set}'`\" = set"; then
2795 echo $ac_n "(cached) $ac_c" 1>&6
2797 cat > conftest.c
<<EOF
2798 #line 2799 "configure"
2801 a = __builtin_expect (a, 10);
2802 return a == 10 ? 0 : 1;
2805 if { ac_try
='${CC-cc} $CFLAGS -nostdlib -nostartfiles
2806 -o conftest conftest.c -lgcc >&5'; { (eval echo configure
:2807: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
2807 libc_cv_gcc_builtin_expect
=yes
2809 libc_cv_gcc_builtin_expect
=no
2814 echo "$ac_t""$libc_cv_gcc_builtin_expect" 1>&6
2815 if test "$libc_cv_gcc_builtin_expect" = yes; then
2816 cat >> confdefs.h
<<\EOF
2817 #define HAVE_BUILTIN_EXPECT 1
2822 echo $ac_n "checking for local label subtraction""... $ac_c" 1>&6
2823 echo "configure:2824: checking for local label subtraction" >&5
2824 if eval "test \"`echo '$''{'libc_cv_gcc_subtract_local_labels'+set}'`\" = set"; then
2825 echo $ac_n "(cached) $ac_c" 1>&6
2827 cat > conftest.c
<<EOF
2828 #line 2829 "configure"
2831 static const int ar[] = { &&l1 - &&l1, &&l2 - &&l1 };
2832 void *p = &&l1 + ar[a];
2840 if { ac_try
='${CC-cc} $CFLAGS -nostdlib -nostartfiles
2841 -o conftest conftest.c -lgcc >&5'; { (eval echo configure
:2842: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
2842 libc_cv_gcc_subtract_local_labels
=yes
2844 libc_cv_gcc_subtract_local_labels
=no
2849 echo "$ac_t""$libc_cv_gcc_subtract_local_labels" 1>&6
2850 if test "$libc_cv_gcc_subtract_local_labels" = yes; then
2851 cat >> confdefs.h
<<\EOF
2852 #define HAVE_SUBTRACT_LOCAL_LABELS 1
2858 ### End of automated tests.
2859 ### Now run sysdeps configure fragments.
2861 # sysdeps configure fragments may set these with files to be linked below.
2865 # They also can set these variables.
2866 ldd_rewrite_script
=no
2868 # Iterate over all the sysdep directories we will use, running their
2869 # configure fragments, and looking for a uname implementation.
2871 for dir
in $sysnames; do
2874 *) dest
=$srcdir/$dir ;;
2876 if test -r $dest/configure
; then
2877 echo "$ac_t""running configure fragment for $dest" 1>&6
2881 if test -z "$uname"; then
2882 if test -r $dest/uname.c ||
2883 test -r $dest/uname.S ||
2884 { test -r $dest/syscalls.list
&&
2885 grep '^uname[ ]' $dest/syscalls.list
>/dev
/null
; }; then
2893 # If we will use the generic uname implementation, we must figure out what
2894 # it will say by examining the system, and write the results in config-name.h.
2895 if test "$uname" = "sysdeps/generic"; then
2897 uname_sysname
=`echo $config_os | sed 's/[0-9.]*$//'`
2898 if test $uname_sysname != $config_os; then
2899 config_release
=`echo $config_os | sed s/$uname_sysname//`
2902 echo $ac_n "checking OS release for uname""... $ac_c" 1>&6
2903 echo "configure:2904: checking OS release for uname" >&5
2904 if eval "test \"`echo '$''{'libc_cv_uname_release'+set}'`\" = set"; then
2905 echo $ac_n "(cached) $ac_c" 1>&6
2907 kernel_release
=`echo "$kernel_id" | sed 's/^[^0-9.]*\([0-9.]*\).*$/\1/'`
2908 if test x
`echo "$config_release" | sed "s/^$kernel_release//"` \
2909 != x
$config_release; then
2910 # The configuration release is a substring of the kernel release.
2911 libc_cv_uname_release
=$kernel_release
2912 elif test x
$config_release != x
; then
2913 libc_cv_uname_release
=$config_release
2914 elif test x
$kernel_release != x
; then
2915 libc_cv_uname_release
=$kernel_release
2917 libc_cv_uname_release
=unknown
2921 echo "$ac_t""$libc_cv_uname_release" 1>&6
2922 uname_release
="$libc_cv_uname_release"
2924 echo $ac_n "checking OS version for uname""... $ac_c" 1>&6
2925 echo "configure:2926: checking OS version for uname" >&5
2926 if eval "test \"`echo '$''{'libc_cv_uname_version'+set}'`\" = set"; then
2927 echo $ac_n "(cached) $ac_c" 1>&6
2929 kernel_version
=`echo "$kernel_id" | sed 's/^[^#]*#\([0-9]*\).*$/\1/'`
2930 if test -n "$kernel_version"; then
2931 libc_cv_uname_version
="$kernel_version"
2933 libc_cv_uname_version
=unknown
2937 echo "$ac_t""$libc_cv_uname_version" 1>&6
2938 uname_version
="$libc_cv_uname_version"
2940 config_uname
=config-name.h
:config-name.
in
2942 # For non-generic uname, we don't need to create config-name.h at all.
2946 echo $ac_n "checking stdio selection""... $ac_c" 1>&6
2947 echo "configure:2948: checking stdio selection" >&5
2950 libio
) cat >> confdefs.h
<<\EOF
2951 #define USE_IN_LIBIO 1
2954 default
) stdio
=stdio
;;
2956 echo "$ac_t""$stdio" 1>&6
2958 # Test for old glibc 2.0.x headers so that they can be removed properly
2959 # Search only in includedir.
2960 echo $ac_n "checking for old glibc 2.0.x headers""... $ac_c" 1>&6
2961 echo "configure:2962: checking for old glibc 2.0.x headers" >&5
2962 if eval test -f "${includedir}/elfclass.h" -a -f "${includedir}/fcntlbits.h"
2964 old_glibc_headers
=yes
2966 old_glibc_headers
=no
2968 echo "$ac_t""$old_glibc_headers" 1>&6
2969 if test ${old_glibc_headers} = yes; then
2970 echo "configure: warning: *** During \"make install\" old headers from glibc 2.0.x will" 1>&2
2971 echo "configure: warning: *** be removed." 1>&2
2983 if test $gnu_ld = yes; then
2984 cat >> confdefs.h
<<\EOF
2985 #define HAVE_GNU_LD 1
2989 if test $gnu_as = yes; then
2990 cat >> confdefs.h
<<\EOF
2991 #define HAVE_GNU_AS 1
2995 if test $elf = yes; then
2996 cat >> confdefs.h
<<\EOF
3004 if test $shared = default
; then
3005 if test $gnu_ld = yes; then
3008 # For now we do not assume shared libs are available. In future more
3009 # tests might become available.
3014 echo $ac_n "checking whether -fPIC is default""... $ac_c" 1>&6
3015 echo "configure:3016: checking whether -fPIC is default" >&5
3016 if eval "test \"`echo '$''{'pic_default'+set}'`\" = set"; then
3017 echo $ac_n "(cached) $ac_c" 1>&6
3020 cat > conftest.c
<<EOF
3021 #if defined __PIC__ || defined __pic__ || defined PIC || defined pic
3022 # error PIC is default.
3025 if eval "${CC-cc} -S conftest.c 2>&5 1>&5"; then
3031 echo "$ac_t""$pic_default" 1>&6
3043 *door
*) linux_doors
=yes ;;
3044 *) linux_doors
=no
;;
3048 if test "`(cd $srcdir; pwd)`" = "`pwd`"; then
3051 config_makefile
=Makefile
3054 VERSION
=`sed -n -e 's/^#define VERSION "\([^"]*\)"/\1/p' < $srcdir/version.h`
3055 RELEASE
=`sed -n -e 's/^#define RELEASE "\([^"]*\)"/\1/p' < $srcdir/version.h`
3059 echo '*** Do NOT install this release on any production system!'
3060 echo '*** It is known to be broken and will be so for quite some time.'
3061 echo '*** Use the latest released version instead.'
3064 cat > confcache
<<\EOF
3065 # This file is a shell script that caches the results of configure
3066 # tests run on this system so they can be shared between configure
3067 # scripts and configure runs. It is not useful on other systems.
3068 # If it contains results you don't want to keep, you may remove or edit it.
3070 # By default, configure uses ./config.cache as the cache file,
3071 # creating it if it does not exist already. You can give configure
3072 # the --cache-file=FILE option to use a different cache file; that is
3073 # what configure does when it calls configure scripts in
3074 # subdirectories, so they share the cache.
3075 # Giving --cache-file=/dev/null disables caching, for debugging configure.
3076 # config.status only pays attention to the cache file if you give it the
3077 # --recheck option to rerun configure.
3080 # The following way of writing the cache mishandles newlines in values,
3081 # but we know of no workaround that is simple, portable, and efficient.
3082 # So, don't put newlines in cache variables' values.
3083 # Ultrix sh set writes to stderr and can't be redirected directly,
3084 # and sets the high bit in the cache file unless we assign to the vars.
3086 case `(ac_space=' '; set | grep ac_space) 2>&1` in
3088 # `set' does not quote correctly, so add quotes (double-quote substitution
3089 # turns \\\\ into \\, and sed turns \\ into \).
3091 -e "s/'/'\\\\''/g" \
3092 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
3095 # `set' quotes correctly as required by POSIX, so do not add quotes.
3096 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
3099 if cmp -s $cache_file confcache
; then
3102 if test -w $cache_file; then
3103 echo "updating cache $cache_file"
3104 cat confcache
> $cache_file
3106 echo "not updating unwritable cache $cache_file"
3111 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
3113 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
3114 # Let make expand exec_prefix.
3115 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
3117 # Any assignment to VPATH causes Sun make to only execute
3118 # the first set of double-colon rules, so remove it if not needed.
3119 # If there is a colon in the path, we need to keep it.
3120 if test "x$srcdir" = x.
; then
3121 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
3124 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
3126 DEFS
=-DHAVE_CONFIG_H
3128 # Without the "./", some shells look in PATH for config.status.
3129 : ${CONFIG_STATUS=./config.status}
3131 echo creating
$CONFIG_STATUS
3132 rm -f $CONFIG_STATUS
3133 cat > $CONFIG_STATUS <<EOF
3135 # Generated automatically by configure.
3136 # Run this file to recreate the current configuration.
3137 # This directory was configured as follows,
3138 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
3140 # $0 $ac_configure_args
3142 # Compiler output produced by configure, useful for debugging
3143 # configure, is in ./config.log if it exists.
3145 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
3148 case "\$ac_option" in
3149 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3150 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
3151 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
3152 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
3153 echo "$CONFIG_STATUS generated by autoconf version 2.13"
3155 -help | --help | --hel | --he | --h)
3156 echo "\$ac_cs_usage"; exit 0 ;;
3157 *) echo "\$ac_cs_usage"; exit 1 ;;
3161 ac_given_srcdir=$srcdir
3162 ac_given_INSTALL="$INSTALL"
3164 trap 'rm -fr `echo "config.make glibcbug ${config_makefile} ${config_uname} config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
3166 cat >> $CONFIG_STATUS <<EOF
3168 # Protect against being on the right side of a sed subst in config.status.
3169 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
3170 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
3174 s%@CFLAGS@%$CFLAGS%g
3175 s%@CPPFLAGS@%$CPPFLAGS%g
3176 s%@CXXFLAGS@%$CXXFLAGS%g
3177 s%@FFLAGS@%$FFLAGS%g
3179 s%@LDFLAGS@%$LDFLAGS%g
3181 s%@exec_prefix@%$exec_prefix%g
3182 s%@prefix@%$prefix%g
3183 s%@program_transform_name@%$program_transform_name%g
3184 s%@bindir@%$bindir%g
3185 s%@sbindir@%$sbindir%g
3186 s%@libexecdir@%$libexecdir%g
3187 s%@datadir@%$datadir%g
3188 s%@sysconfdir@%$sysconfdir%g
3189 s%@sharedstatedir@%$sharedstatedir%g
3190 s%@localstatedir@%$localstatedir%g
3191 s%@libdir@%$libdir%g
3192 s%@includedir@%$includedir%g
3193 s%@oldincludedir@%$oldincludedir%g
3194 s%@infodir@%$infodir%g
3195 s%@mandir@%$mandir%g
3196 s%@with_cvs@%$with_cvs%g
3197 s%@subdirs@%$subdirs%g
3198 s%@force_install@%$force_install%g
3200 s%@host_alias@%$host_alias%g
3201 s%@host_cpu@%$host_cpu%g
3202 s%@host_vendor@%$host_vendor%g
3203 s%@host_os@%$host_os%g
3204 s%@base_machine@%$base_machine%g
3205 s%@sysnames@%$sysnames%g
3206 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
3207 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
3208 s%@INSTALL_DATA@%$INSTALL_DATA%g
3211 s%@build_alias@%$build_alias%g
3212 s%@build_cpu@%$build_cpu%g
3213 s%@build_vendor@%$build_vendor%g
3214 s%@build_os@%$build_os%g
3217 s%@MSGFMT@%$MSGFMT%g
3218 s%@MAKEINFO@%$MAKEINFO%g
3219 s%@cross_linkable@%$cross_linkable%g
3220 s%@BUILD_CC@%$BUILD_CC%g
3221 s%@cross_compiling@%$cross_compiling%g
3224 s%@RANLIB@%$RANLIB%g
3226 s%@SYSINCLUDES@%$SYSINCLUDES%g
3228 s%@libc_cv_have_bash2@%$libc_cv_have_bash2%g
3230 s%@libc_cv_have_ksh@%$libc_cv_have_ksh%g
3233 s%@INSTALL_INFO@%$INSTALL_INFO%g
3234 s%@OLD_DEBIAN_INSTALL_INFO@%$OLD_DEBIAN_INSTALL_INFO%g
3235 s%@VERSIONING@%$VERSIONING%g
3236 s%@libc_cv_have_initfini@%$libc_cv_have_initfini%g
3237 s%@no_whole_archive@%$no_whole_archive%g
3238 s%@exceptions@%$exceptions%g
3239 s%@uname_sysname@%$uname_sysname%g
3240 s%@uname_release@%$uname_release%g
3241 s%@uname_version@%$uname_version%g
3243 s%@old_glibc_headers@%$old_glibc_headers%g
3244 s%@libc_cv_slibdir@%$libc_cv_slibdir%g
3245 s%@libc_cv_sysconfdir@%$libc_cv_sysconfdir%g
3246 s%@libc_cv_rootsbindir@%$libc_cv_rootsbindir%g
3247 s%@has_ldconfig@%$has_ldconfig%g
3248 s%@ldd_rewrite_script@%$ldd_rewrite_script%g
3249 s%@gnu_ld@%$gnu_ld%g
3250 s%@gnu_as@%$gnu_as%g
3252 s%@static@%$static%g
3253 s%@shared@%$shared%g
3254 s%@pic_default@%$pic_default%g
3255 s%@profile@%$profile%g
3256 s%@omitfp@%$omitfp%g
3257 s%@bounded@%$bounded%g
3258 s%@static_nss@%$static_nss%g
3259 s%@nopic_initfini@%$nopic_initfini%g
3260 s%@DEFINES@%$DEFINES%g
3261 s%@linux_doors@%$linux_doors%g
3262 s%@VERSION@%$VERSION%g
3263 s%@RELEASE@%$RELEASE%g
3268 cat >> $CONFIG_STATUS <<\EOF
3270 # Split the substitutions into bite-sized pieces for seds with
3271 # small command number limits, like on Digital OSF/1 and HP-UX.
3272 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
3273 ac_file
=1 # Number of current file.
3274 ac_beg
=1 # First line for current file.
3275 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
3278 while $ac_more_lines; do
3279 if test $ac_beg -gt 1; then
3280 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
3282 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
3284 if test ! -s conftest.s
$ac_file; then
3286 rm -f conftest.s
$ac_file
3288 if test -z "$ac_sed_cmds"; then
3289 ac_sed_cmds
="sed -f conftest.s$ac_file"
3291 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
3293 ac_file
=`expr $ac_file + 1`
3295 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
3298 if test -z "$ac_sed_cmds"; then
3303 cat >> $CONFIG_STATUS <<EOF
3305 CONFIG_FILES=\${CONFIG_FILES-"config.make glibcbug ${config_makefile} ${config_uname}"}
3307 cat >> $CONFIG_STATUS <<\EOF
3308 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
3309 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3311 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
3312 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
3313 *) ac_file_in
="${ac_file}.in" ;;
3316 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
3318 # Remove last slash and all that follows it. Not all systems have dirname.
3319 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3320 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
3321 # The file is in a subdirectory.
3322 test ! -d "$ac_dir" && mkdir
"$ac_dir"
3323 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
3324 # A "../" for each directory in $ac_dir_suffix.
3325 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
3327 ac_dir_suffix
= ac_dots
=
3330 case "$ac_given_srcdir" in
3332 if test -z "$ac_dots"; then top_srcdir
=.
3333 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
3334 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
3336 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
3337 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
3340 case "$ac_given_INSTALL" in
3341 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
3342 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
3345 echo creating
"$ac_file"
3347 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
3349 *Makefile
*) ac_comsub
="1i\\
3350 # $configure_input" ;;
3354 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3356 s%@configure_input@%$configure_input%g
3357 s%@srcdir@%$srcdir%g
3358 s%@top_srcdir@%$top_srcdir%g
3359 s%@INSTALL@%$INSTALL%g
3360 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
3364 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
3365 # NAME is the cpp macro being defined and VALUE is the value it is being given.
3367 # ac_d sets the value in "#define NAME VALUE" lines.
3368 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
3369 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
3372 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
3373 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3374 ac_uB
='\([ ]\)%\1#\2define\3'
3377 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
3378 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3379 ac_eB
='$%\1#\2define\3'
3383 if test "${CONFIG_HEADERS+set}" != set; then
3385 cat >> $CONFIG_STATUS <<EOF
3386 CONFIG_HEADERS="config.h"
3388 cat >> $CONFIG_STATUS <<\EOF
3390 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
3391 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3393 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
3394 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
3395 *) ac_file_in
="${ac_file}.in" ;;
3398 echo creating
$ac_file
3400 rm -f conftest.frag conftest.
in conftest.out
3401 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3402 cat $ac_file_inputs > conftest.
in
3406 # Transform confdefs.h into a sed script conftest.vals that substitutes
3407 # the proper values into config.h.in to produce config.h. And first:
3408 # Protect against being on the right side of a sed subst in config.status.
3409 # Protect against being in an unquoted here document in config.status.
3411 cat > conftest.hdr
<<\EOF
3414 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
3418 sed -n -f conftest.hdr confdefs.h > conftest.vals
3421 # This sed command replaces #undef with comments. This is necessary, for
3422 # example, in the case of _POSIX_SOURCE, which is predefined and required
3423 # on some systems where configure will not decide to define it.
3424 cat >> conftest.vals <<\EOF
3425 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
3428 # Break up conftest.vals because some shells have a limit on
3429 # the size of here documents, and old seds have small limits too.
3434 ac_lines=`grep -c . conftest.vals
`
3435 # grep -c gives empty output for an empty file on some AIX systems.
3436 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
3437 # Write a limited-size here document to conftest.frag.
3438 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
3439 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
3441 sed -f conftest.frag conftest.in > conftest.out
3443 mv conftest.out conftest.in
3445 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
3447 mv conftest.tail conftest.vals
3451 cat >> $CONFIG_STATUS <<\EOF
3452 rm -f conftest.frag conftest.h
3453 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
3454 cat conftest.in >> conftest.h
3456 if cmp -s $ac_file conftest.h 2>/dev/null; then
3457 echo "$ac_file is unchanged"
3460 # Remove last slash and all that follows it. Not all systems have dirname.
3461 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
3462 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3463 # The file is in a subdirectory.
3464 test ! -d "$ac_dir" && mkdir "$ac_dir"
3467 mv conftest.h $ac_file
3473 cat >> $CONFIG_STATUS <<EOF
3474 ac_sources="`echo $libc_link_sources`"
3475 ac_dests="`echo $libc_link_dests`"
3478 cat >> $CONFIG_STATUS <<\EOF
3479 srcdir=$ac_given_srcdir
3480 while test -n "$ac_sources"; do
3481 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
3482 set $ac_sources; ac_source=$1; shift; ac_sources=$*
3484 echo "linking $srcdir/$ac_source to $ac_dest"
3486 if test ! -r $srcdir/$ac_source; then
3487 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
3491 # Make relative symlinks.
3492 # Remove last slash and all that follows it. Not all systems have dirname.
3493 ac_dest_dir=`echo $ac_dest|
sed 's%/[^/][^/]*$%%'`
3494 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
3495 # The dest file is in a subdirectory.
3496 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
3497 ac_dest_dir_suffix="/`echo $ac_dest_dir|
sed 's%^\./%%'`"
3498 # A "../" for each directory in $ac_dest_dir_suffix.
3499 ac_dots=`echo $ac_dest_dir_suffix|
sed 's%/[^/]*%../%g'`
3501 ac_dest_dir_suffix= ac_dots=
3505 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
3506 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
3509 # Make a symlink if possible; otherwise try a hard link.
3510 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
3511 ln $srcdir/$ac_source $ac_dest; then :
3513 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
3517 cat >> $CONFIG_STATUS <<EOF
3518 config_vars='$config_vars'
3520 cat >> $CONFIG_STATUS <<\EOF
3522 case $CONFIG_FILES in *config.make*)
3523 echo "$config_vars" >> config.make;;
3525 test -d bits || mkdir bits
3528 chmod +x $CONFIG_STATUS
3529 rm -fr confdefs* $ac_clean_files
3530 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
3532 if test "$no_recursion" != yes; then
3534 # Remove --cache-file and --srcdir arguments so they do not pile up.
3535 ac_sub_configure_args=
3537 for ac_arg in $ac_configure_args; do
3538 if test -n "$ac_prev"; then
3543 -cache-file | --cache-file | --cache-fil | --cache-fi \
3544 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
3545 ac_prev=cache_file ;;
3546 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
3547 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
3549 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
3551 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
3553 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
3557 for ac_config_dir in $add_ons; do
3559 # Do not complain, so a configure script can configure whichever
3560 # parts of a large source tree are present.
3561 if test ! -d $srcdir/$ac_config_dir; then
3565 echo configuring in $ac_config_dir
3570 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
3572 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
3580 # A "../" for each directory in /$ac_config_dir.
3581 ac_dots=`echo $ac_config_dir|
sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
3584 .) # No --srcdir option. We are building in place.
3585 ac_sub_srcdir=$srcdir ;;
3586 /*) # Absolute path.
3587 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
3589 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
3592 # Check for guested configure; otherwise get Cygnus style configure.
3593 if test -f $ac_sub_srcdir/configure; then
3594 ac_sub_configure=$ac_sub_srcdir/configure
3595 elif test -f $ac_sub_srcdir/configure.in; then
3596 ac_sub_configure=$ac_configure
3598 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
3602 # The recursion is here.
3603 if test -n "$ac_sub_configure"; then
3605 # Make the cache file name correct relative to the subdirectory.
3606 case "$cache_file" in
3607 /*) ac_sub_cache_file=$cache_file ;;
3609 ac_sub_cache_file="$ac_dots$cache_file" ;;
3611 case "$ac_given_INSTALL" in
3612 [/$]*) INSTALL="$ac_given_INSTALL" ;;
3613 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
3616 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
3617 # The eval makes quoting arguments work.
3618 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
3621 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }