3 # From configure.in CVSid
14 # Guess values for system-dependent variables and create Makefiles.
15 # Generated automatically using autoconf version 2.14.1
16 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
18 # This configure script is free software; the Free Software Foundation
19 # gives unlimited permission to copy, distribute and modify it.
23 ac_default_prefix
=/usr
/local
24 # Any additions from configure.in:
26 --with-gmp=DIRECTORY find GMP source code in DIRECTORY (not needed)"
28 --with-gettext=DIR find GNU gettext source code in DIR (not needed)"
30 --with-fp if using floating-point hardware [default=yes]"
32 --with-binutils=PATH specify location of binutils (as and ld)"
34 --with-elf if using the ELF object format"
36 --without-cvs if CVS should not be used"
38 --with-headers=PATH location of system headers to use
39 [e.g. /usr/src/linux/include]
40 [default=compiler default]"
42 --enable-libio build in GNU libio instead of GNU stdio"
44 --disable-sanity-checks really do not use threads (should not be used
45 except in special situations) [default=yes]"
47 --enable-shared build shared library [default=yes if GNU ld & ELF]"
49 --enable-profile build profiled library [default=yes]"
51 --enable-omitfp build undebuggable optimized library [default=no]"
53 --enable-bounded build with runtime bounds checking [default=no]"
55 --disable-versioning do not include versioning information in the
56 library objects [default=yes if supported]"
58 --enable-add-ons[=DIR1,DIR2]...
59 configure and build add-ons in DIR1,DIR2,...
60 search for add-ons if no parameter given"
62 --enable-static-nss build static NSS modules [default=no]"
64 --disable-force-install don't force installation of files from this package,
65 even if they are older than the installed files"
67 --enable-kernel=VERSION compile for compatibility with kernel not older
70 # Initialize some variables set by options.
71 # The variables have the same names as the options, with
72 # dashes changed to underlines.
74 cache_file
=.
/config.cache
83 program_transform_name
=s
,x
,x
,
91 bindir
='${exec_prefix}/bin'
92 sbindir
='${exec_prefix}/sbin'
93 libexecdir
='${exec_prefix}/libexec'
94 datadir
='${prefix}/share'
95 sysconfdir
='${prefix}/etc'
96 sharedstatedir
='${prefix}/com'
97 localstatedir
='${prefix}/var'
98 libdir
='${exec_prefix}/lib'
99 includedir
='${prefix}/include'
100 oldincludedir
='/usr/include'
101 infodir
='${prefix}/info'
102 mandir
='${prefix}/man'
104 # Initialize some other variables.
107 SHELL
=${CONFIG_SHELL-/bin/sh}
108 # Maximum number of lines to put in a shell here document.
115 # If the previous option needs an argument, assign it.
116 if test -n "$ac_prev"; then
117 eval "$ac_prev=\$ac_option"
123 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
127 # Accept the important Cygnus configure options, so we can diagnose typos.
131 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
133 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
134 bindir
="$ac_optarg" ;;
136 -build |
--build |
--buil |
--bui |
--bu)
138 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
139 build
="$ac_optarg" ;;
141 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
142 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
143 ac_prev
=cache_file
;;
144 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
145 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
146 cache_file
="$ac_optarg" ;;
148 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
150 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
152 datadir
="$ac_optarg" ;;
154 -disable-* |
--disable-*)
155 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
156 # Reject names that are not valid shell variable names.
157 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
158 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
160 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
161 eval "enable_${ac_feature}=no" ;;
163 -enable-* |
--enable-*)
164 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
165 # Reject names that are not valid shell variable names.
166 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
167 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
169 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
174 eval "enable_${ac_feature}='$ac_optarg'" ;;
176 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
177 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
178 |
--exec |
--exe |
--ex)
179 ac_prev
=exec_prefix
;;
180 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
181 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
182 |
--exec=* |
--exe=* |
--ex=*)
183 exec_prefix
="$ac_optarg" ;;
185 -gas |
--gas |
--ga |
--g)
186 # Obsolete; use --with-gas.
189 -help |
--help |
--hel |
--he)
190 # Omit some internal or obsolete options to make the list less imposing.
191 # This message is too long to be a string in the A/UX 3.1 sh.
193 Usage: configure [options] [host]
194 Options: [defaults in brackets after descriptions]
196 --cache-file=FILE cache test results in FILE
197 --help print this message
198 --no-create do not create output files
199 --quiet, --silent do not print \`checking...' messages
200 --version print the version of autoconf that created configure
201 Directory and file names:
202 --prefix=PREFIX install architecture-independent files in PREFIX
204 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
206 --bindir=DIR user executables in DIR [EPREFIX/bin]
207 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
208 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
209 --datadir=DIR read-only architecture-independent data in DIR
211 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
212 --sharedstatedir=DIR modifiable architecture-independent data in DIR
214 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
215 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
216 --includedir=DIR C header files in DIR [PREFIX/include]
217 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
218 --infodir=DIR info documentation in DIR [PREFIX/info]
219 --mandir=DIR man documentation in DIR [PREFIX/man]
220 --srcdir=DIR find the sources in DIR [configure dir or ..]
221 --program-prefix=PREFIX prepend PREFIX to installed program names
222 --program-suffix=SUFFIX append SUFFIX to installed program names
223 --program-transform-name=PROGRAM
224 run sed PROGRAM on installed program names
228 --build=BUILD configure for building on BUILD [BUILD=HOST]
229 --host=HOST configure for HOST [guessed]
230 --target=TARGET configure for TARGET [TARGET=HOST]
231 Features and packages:
232 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
233 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
234 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
235 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
236 --x-includes=DIR X include files are in DIR
237 --x-libraries=DIR X library files are in DIR
239 if test -n "$ac_help"; then
240 echo "--enable and --with options recognized:$ac_help"
244 -host |
--host |
--hos |
--ho)
246 -host=* |
--host=* |
--hos=* |
--ho=*)
249 -includedir |
--includedir |
--includedi |
--included |
--include \
250 |
--includ |
--inclu |
--incl |
--inc)
251 ac_prev
=includedir
;;
252 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
253 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
254 includedir
="$ac_optarg" ;;
256 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
258 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
259 infodir
="$ac_optarg" ;;
261 -libdir |
--libdir |
--libdi |
--libd)
263 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
264 libdir
="$ac_optarg" ;;
266 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
267 |
--libexe |
--libex |
--libe)
268 ac_prev
=libexecdir
;;
269 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
270 |
--libexe=* |
--libex=* |
--libe=*)
271 libexecdir
="$ac_optarg" ;;
273 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
274 |
--localstate |
--localstat |
--localsta |
--localst \
275 |
--locals |
--local |
--loca |
--loc |
--lo)
276 ac_prev
=localstatedir
;;
277 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
278 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
279 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
280 localstatedir
="$ac_optarg" ;;
282 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
284 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
285 mandir
="$ac_optarg" ;;
288 # Obsolete; use --without-fp.
291 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
295 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
296 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
299 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
300 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
301 |
--oldin |
--oldi |
--old |
--ol |
--o)
302 ac_prev
=oldincludedir
;;
303 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
304 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
305 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
306 oldincludedir
="$ac_optarg" ;;
308 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
310 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
311 prefix
="$ac_optarg" ;;
313 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
314 |
--program-pre |
--program-pr |
--program-p)
315 ac_prev
=program_prefix
;;
316 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
317 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
318 program_prefix
="$ac_optarg" ;;
320 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
321 |
--program-suf |
--program-su |
--program-s)
322 ac_prev
=program_suffix
;;
323 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
324 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
325 program_suffix
="$ac_optarg" ;;
327 -program-transform-name |
--program-transform-name \
328 |
--program-transform-nam |
--program-transform-na \
329 |
--program-transform-n |
--program-transform- \
330 |
--program-transform |
--program-transfor \
331 |
--program-transfo |
--program-transf \
332 |
--program-trans |
--program-tran \
333 |
--progr-tra |
--program-tr |
--program-t)
334 ac_prev
=program_transform_name
;;
335 -program-transform-name=* |
--program-transform-name=* \
336 |
--program-transform-nam=* |
--program-transform-na=* \
337 |
--program-transform-n=* |
--program-transform-=* \
338 |
--program-transform=* |
--program-transfor=* \
339 |
--program-transfo=* |
--program-transf=* \
340 |
--program-trans=* |
--program-tran=* \
341 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
342 program_transform_name
="$ac_optarg" ;;
344 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
345 |
-silent |
--silent |
--silen |
--sile |
--sil)
348 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
350 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
352 sbindir
="$ac_optarg" ;;
354 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
355 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
356 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
358 ac_prev
=sharedstatedir
;;
359 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
360 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
361 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
363 sharedstatedir
="$ac_optarg" ;;
365 -site |
--site |
--sit)
367 -site=* |
--site=* |
--sit=*)
370 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
372 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
373 srcdir
="$ac_optarg" ;;
375 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
376 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
377 ac_prev
=sysconfdir
;;
378 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
379 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
380 sysconfdir
="$ac_optarg" ;;
382 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
384 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
385 target
="$ac_optarg" ;;
387 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
390 -version |
--version |
--versio |
--versi |
--vers)
391 echo "configure generated by autoconf version 2.14.1"
395 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
396 # Reject names that are not valid shell variable names.
397 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
398 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
400 ac_package
=`echo $ac_package| sed 's/-/_/g'`
405 eval "with_${ac_package}='$ac_optarg'" ;;
407 -without-* |
--without-*)
408 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
409 # Reject names that are not valid shell variable names.
410 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
411 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
413 ac_package
=`echo $ac_package| sed 's/-/_/g'`
414 eval "with_${ac_package}=no" ;;
417 # Obsolete; use --with-x.
420 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
421 |
--x-incl |
--x-inc |
--x-in |
--x-i)
422 ac_prev
=x_includes
;;
423 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
424 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
425 x_includes
="$ac_optarg" ;;
427 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
428 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
429 ac_prev
=x_libraries
;;
430 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
431 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
432 x_libraries
="$ac_optarg" ;;
434 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
438 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
439 echo "configure: warning: $ac_option: invalid host type" 1>&2
441 if test "x$nonopt" != xNONE
; then
442 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
450 if test -n "$ac_prev"; then
451 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
454 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
456 # File descriptor usage:
459 # 2 errors and warnings
460 # 3 some systems may open it to /dev/tty
461 # 4 used on the Kubota Titan
462 # 6 checking for... messages and results
463 # 5 compiler messages saved in config.log
464 if test "$silent" = yes; then
472 This file contains any messages produced by compilers while
473 running configure, to aid debugging if configure makes a mistake.
476 # Strip out --no-create and --no-recursion so they do not pile up.
477 # Also quote any args containing shell metacharacters.
482 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
483 |
--no-cr |
--no-c) ;;
484 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
485 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
486 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
487 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
488 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
493 # Only set these to C if already set. These must not be set unconditionally
494 # because not all systems understand e.g. LANG=C (notably SCO).
495 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
496 # Non-C LC_CTYPE values break the ctype check.
497 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
498 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
499 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
500 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
502 # confdefs.h avoids OS command line length limits that DEFS can exceed.
503 rm -rf conftest
* confdefs.h
504 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
507 # A filename unique to this package, relative to the directory that
508 # configure is in, which we can look for to find out if srcdir is correct.
509 ac_unique_file
=include
/features.h
511 # Find the source files, if location was not specified.
512 if test -z "$srcdir"; then
513 ac_srcdir_defaulted
=yes
514 # Try the directory containing this script, then its parent.
516 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
517 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
519 if test ! -r $srcdir/$ac_unique_file; then
523 ac_srcdir_defaulted
=no
525 if test ! -r $srcdir/$ac_unique_file; then
526 if test "$ac_srcdir_defaulted" = yes; then
527 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
529 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
532 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
534 # Prefer explicitly selected file to automatically selected ones.
535 if test -z "$CONFIG_SITE"; then
536 if test "x$prefix" != xNONE
; then
537 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
539 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
542 for ac_site_file
in $CONFIG_SITE; do
543 if test -r "$ac_site_file"; then
544 echo "loading site script $ac_site_file"
549 if test -r "$cache_file"; then
550 echo "loading cache $cache_file"
551 test -f "$cache_file" && .
$cache_file
553 echo "creating cache $cache_file"
558 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
559 ac_cpp
='$CPP $CPPFLAGS'
560 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
561 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
562 cross_compiling
=$ac_cv_prog_cc_cross
566 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
567 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
568 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
575 ac_n
= ac_c
='\c' ac_t
=
578 if test -r /vmunix
; then
579 kernel_id
=`strings /vmunix | grep UNIX`
580 elif test -r /dynix
; then
581 kernel_id
=`strings /dynix | grep DYNIX`
589 for ac_dir
in scripts
$srcdir/scripts
; do
590 if test -f $ac_dir/install-sh
; then
592 ac_install_sh
="$ac_aux_dir/install-sh -c"
594 elif test -f $ac_dir/install.sh
; then
596 ac_install_sh
="$ac_aux_dir/install.sh -c"
600 if test -z "$ac_aux_dir"; then
601 { echo "configure: error: can not find install-sh or install.sh in scripts $srcdir/scripts" 1>&2; exit 1; }
603 ac_config_guess
="$SHELL $ac_aux_dir/config.guess"
604 ac_config_sub
="$SHELL $ac_aux_dir/config.sub"
605 ac_configure
="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
608 # This will get text that should go into config.make.
611 # Check for a --with-gmp argument and set gmp-srcdir in config.make.
612 # Check whether --with-gmp or --without-gmp was given.
613 if test "${with_gmp+set}" = set; then
616 yes) { echo "configure: error: --with-gmp requires an argument; use --with-gmp=DIRECTORY" 1>&2; exit 1; } ;;
618 *) config_vars
="$config_vars
619 gmp-srcdir = $withval" ;;
624 # Check for a --with-gettext argument and set gettext-srcdir in config.make.
625 # Check whether --with-gettext or --without-gettext was given.
626 if test "${with_gettext+set}" = set; then
627 withval
="$with_gettext"
628 case "$with_gettext" in
630 { echo "configure: error: --with-gettext requires an argument; use --with-gettext=DIR" 1>&2; exit 1; } ;;
633 config_vars
="$config_vars
634 gettext-srcdir = $withval" ;;
640 # Check whether --with-fp or --without-fp was given.
641 if test "${with_fp+set}" = set; then
648 # Check whether --with-binutils or --without-binutils was given.
649 if test "${with_binutils+set}" = set; then
650 withval
="$with_binutils"
651 path_binutils
=$withval
656 # Check whether --with-elf or --without-elf was given.
657 if test "${with_elf+set}" = set; then
664 # Check whether --with-cvs or --without-cvs was given.
665 if test "${with_cvs+set}" = set; then
674 # Check whether --with-headers or --without-headers was given.
675 if test "${with_headers+set}" = set; then
676 withval
="$with_headers"
683 # Check whether --enable-libio or --disable-libio was given.
684 if test "${enable_libio+set}" = set; then
685 enableval
="$enable_libio"
686 if test $enableval = yes; then
696 # Check whether --enable-sanity-checks or --disable-sanity-checks was given.
697 if test "${enable_sanity_checks+set}" = set; then
698 enableval
="$enable_sanity_checks"
699 enable_sanity
=$enableval
706 # Check whether --enable-shared or --disable-shared was given.
707 if test "${enable_shared+set}" = set; then
708 enableval
="$enable_shared"
714 # Check whether --enable-profile or --disable-profile was given.
715 if test "${enable_profile+set}" = set; then
716 enableval
="$enable_profile"
722 # Check whether --enable-omitfp or --disable-omitfp was given.
723 if test "${enable_omitfp+set}" = set; then
724 enableval
="$enable_omitfp"
730 # Check whether --enable-bounded or --disable-bounded was given.
731 if test "${enable_bounded+set}" = set; then
732 enableval
="$enable_bounded"
738 # Check whether --enable-versioning or --disable-versioning was given.
739 if test "${enable_versioning+set}" = set; then
740 enableval
="$enable_versioning"
741 enable_versioning
=$enableval
743 enable_versioning
=yes
747 # Check whether --enable-add-ons or --disable-add-ons was given.
748 if test "${enable_add_ons+set}" = set; then
749 enableval
="$enable_add_ons"
751 yes) add_ons
=`cd $srcdir && echo */configure | sed -e 's!/configure!!g'`
752 test "$add_ons" = "*" && add_ons
= ;;
753 *) add_ons
=`echo "$enableval" | sed 's/,/ /g'`;;
763 if test x
"$add_ons" != x
; then
764 for f
in $add_ons; do
765 # Test whether such a subdir really exists.
766 if test -d $srcdir/$f; then
767 add_ons_pfx
="$add_ons_pfx $f/"
769 { echo "configure: error: add-on directory \"$f\" does not exist" 1>&2; exit 1; }
774 # Check whether --enable-static-nss or --disable-static-nss was given.
775 if test "${enable_static_nss+set}" = set; then
776 enableval
="$enable_static_nss"
777 static_nss
=$enableval
782 if test x
"$static_nss" = xyes
; then
783 cat >> confdefs.h
<<\EOF
784 #define DO_STATIC_NSS 1
789 # Check whether --enable-force-install or --disable-force-install was given.
790 if test "${enable_force_install+set}" = set; then
791 enableval
="$enable_force_install"
792 force_install
=$enableval
799 # Check whether --enable-kernel or --disable-kernel was given.
800 if test "${enable_kernel+set}" = set; then
801 enableval
="$enable_kernel"
802 minimum_kernel
=$enableval
807 echo $ac_n "checking host system type""... $ac_c" 1>&6
808 echo "configure:809: checking host system type" >&5
809 if test "x$ac_cv_host" = "x" ||
(test "x$host" != "xNONE" && test "x$host" != "x$ac_cv_host_alias"); then
811 # Make sure we can run config.sub.
812 if $ac_config_sub sun4
>/dev
/null
2>&1; then :
813 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
816 ac_cv_host_alias
=$host
817 case "$ac_cv_host_alias" in
821 if ac_cv_host_alias
=`$ac_config_guess`; then :
822 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
824 *) ac_cv_host_alias
=$nonopt ;;
828 ac_cv_host
=`$ac_config_sub $ac_cv_host_alias`
829 ac_cv_host_cpu
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
830 ac_cv_host_vendor
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
831 ac_cv_host_os
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
833 echo $ac_n "(cached) $ac_c" 1>&6
836 echo "$ac_t""$ac_cv_host" 1>&6
839 host_alias
=$ac_cv_host_alias
840 host_cpu
=$ac_cv_host_cpu
841 host_vendor
=$ac_cv_host_vendor
842 host_os
=$ac_cv_host_os
848 # The way shlib-versions is used to generate soversions.mk uses a
849 # fairly simplistic model for name recognition that can't distinguish
850 # i486-pc-linux-gnu fully from i486-pc-gnu. So we mutate a $host_os
851 # of `gnu*' here to be `gnu-gnu*' just so that shlib-versions can
852 # tell. This doesn't get used much beyond that, so it's fairly safe.
857 host_os
=`echo $host_os | sed -e 's/gnu/gnu-gnu/'`
861 # We keep the original values in `$config_*' and never modify them, so we
862 # can write them unchanged into config.make. Everything else uses
863 # $machine, $vendor, and $os, and changes them whenever convenient.
864 config_machine
=$host_cpu config_vendor
=$host_vendor config_os
=$host_os
866 # Some configurations imply other options.
868 gnu
* | linux
* | bsd4.4
* | netbsd
* | freebsd
*)
869 # These systems always use GNU tools.
870 gnu_ld
=yes gnu_as
=yes ;;
873 # i586-linuxaout is mangled into i586-pc-linux-gnuaout
874 linux
*ecoff
* | linux
*aout
* | gnu
*aout
* | gnu
*ecoff
*)
876 gnu
* | linux
* | sysv4
* | solaris2
* | irix6
*)
877 # These systems (almost) always use the ELF format.
882 machine
=$config_machine
883 vendor
=$config_vendor
887 ### I put this here to prevent those annoying emails from people who cannot
888 ### read and try to compile glibc on unsupported platforms. --drepper
890 ### By using the undocumented --enable-hacker-mode option for configure
891 ### one can skip this test to make the configuration not fail for unsupported
894 if test -z "$enable_hacker_mode"; then
895 case "$machine-$host_os" in
896 *-linux* |
*-gnu* | arm
*-none*)
899 echo "*** The GNU C library is currently not available for this platform."
900 echo "*** So far nobody cared to port it and if there is no volunteer it"
901 echo "*** might never happen. So, if you have interest to see glibc on"
902 echo "*** this platform visit"
903 echo "*** http://www.gnu.org/software/libc/porting.html"
904 echo "*** and join the group of porters"
910 # Expand the configuration machine name into a subdirectory by architecture
911 # type and particular chip.
913 a29k | am29000
) base_machine
=a29k machine
=a29k
;;
914 alpha
*) base_machine
=alpha machine
=alpha
/$machine ;;
915 arm
*) base_machine
=arm machine
=arm
/$machine ;;
916 c3
[012]) base_machine
=cx0 machine
=cx
0/c30
;;
917 c4
[04]) base_machine
=cx0 machine
=cx
0/c40
;;
918 hppa
*) base_machine
=hppa machine
=hppa
/$machine ;;
919 i
[3456]86) base_machine
=i386 machine
=i386
/$machine ;;
920 m680?
0) base_machine
=m68k machine
=m68k
/$machine ;;
921 m68k
) base_machine
=m68k machine
=m68k
/m68020
;;
922 m88???
) base_machine
=m88k machine
=m88k
/$machine ;;
923 m88k
) base_machine
=m88k machine
=m88k
/m88100
;;
924 mips64
*) base_machine
=mips64 machine
=mips
/mips64
/$machine ;;
925 mips
*) base_machine
=mips
927 IP22
) machine
=mips
/mips3
;;
928 *) machine
=mips
/$machine ;;
931 base_machine
=sparc machine
=sparc
/sparc32
;;
932 sparcv8 | supersparc | hypersparc
)
933 base_machine
=sparc machine
=sparc
/sparc32
/sparcv8
;;
934 sparcv8plus | sparcv8plusa | sparcv9
)
935 base_machine
=sparc machine
=sparc
/sparc32
/sparcv9
;;
936 sparc64 | ultrasparc
)
937 base_machine
=sparc machine
=sparc
/sparc64
;;
941 if test "$base_machine" = "i386"; then
942 cat >> confdefs.h
<<\EOF
943 #define USE_REGPARMS 1
948 # Compute the list of sysdep directories for this configuration.
949 # This can take a while to compute.
950 sysdep_dir
=$srcdir/sysdeps
951 echo $ac_n "checking sysdep dirs""... $ac_c" 1>&6
952 echo "configure:953: checking sysdep dirs" >&5
953 # Make sco3.2v4 become sco3.2.4 and sunos4.1.1_U1 become sunos4.1.1.U1.
954 os
="`echo $os | sed 's/\([0-9A-Z]\)[v_]\([0-9A-Z]\)/\1.\2/g'`"
959 netbsd
* |
386bsd
* | freebsd
* | bsdi
*)
960 base_os
=unix
/bsd
/bsd4.4
;;
961 osf
* | sunos
* | ultrix
* | newsos
* | dynix
* |
*bsd
*)
963 sysv
* | isc
* | esix
* | sco
* | minix
* | irix4
* | linux
*)
966 base_os
=unix
/sysv
/irix
6/$os ;;
968 base_os
=unix
/sysv
/sysv4
;;
970 base_os
=unix
/sysv
/hpux
/$os ;;
972 base_os
=standalone
;;
977 # For sunos4.1.1, try sunos4.1.1, then sunos4.1, then sunos4, then sunos.
980 while o
=`echo $tail | sed 's/\.[^.]*$//'`; test $o != $tail; do
984 o
=`echo $tail | sed 's/[0-9]*$//'`
985 if test $o != $tail; then
988 # For linux-gnu, try linux-gnu, then linux.
989 o
=`echo $tail | sed 's/-.*$//'`
990 if test $o != $tail; then
994 # For unix/sysv/sysv4, try unix/sysv/sysv4, then unix/sysv, then unix.
997 while b
=`echo $tail | sed 's@^\(.*\)/\([^/]*\)$@& \1@'`; test -n "$b"; do
1003 # For sparc/sparc32, try sparc/sparc32 and then sparc.
1006 while m
=`echo $tail | sed 's@^\(.*\)/\([^/]*\)$@& \1@'`; test -n "$m"; do
1008 # Prepend the machine's FPU directory unless --without-fp.
1009 if test "$with_fp" = yes; then
1010 mach
="$mach /$1/fpu"
1017 # Find what sysdep directories exist.
1019 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1020 for d
in $add_ons_pfx ''; do
1021 for b
in $base ''; do
1022 for m0
in $mach ''; do
1023 for v
in /$vendor ''; do
1024 test "$v" = / && continue
1025 for o
in /$ostry ''; do
1026 test "$o" = / && continue
1027 for m
in $mach ''; do
1028 if test "$m0$b$v$o$m"; then
1029 try
="${d}sysdeps$m0$b$v$o$m"
1030 test -n "$enable_debug_configure" &&
1031 echo "$0 DEBUG: try $try" >&2
1032 if test -d $srcdir/$try; then
1033 sysnames
="$sysnames $try"
1034 { test -n "$o" ||
test -n "$b"; } && os_used
=t
1035 { test -n "$m" ||
test -n "$m0"; } && machine_used
=t
1046 if test -z "$os_used" && test "$os" != none
; then
1047 { echo "configure: error: Operating system $os is not supported." 1>&2; exit 1; }
1049 if test -z "$machine_used" && test "$machine" != none
; then
1050 { echo "configure: error: The $machine is not supported." 1>&2; exit 1; }
1053 # We have now validated the configuration.
1056 # If using ELF, look for an `elf' subdirectory of each machine directory.
1057 # We prepend these rather than inserting them whereever the machine appears
1058 # because things specified by the machine's ELF ABI should override
1059 # OS-specific things, and should always be the same for any OS on the
1060 # machine (otherwise what's the point of an ABI?).
1061 if test "$elf" = yes; then
1063 for d
in $add_ons_pfx ''; do
1065 if test -d $srcdir/${d}sysdeps
$m/elf
; then
1066 elf_dirs
="$elf_dirs ${d}sysdeps$m/elf"
1070 sysnames
="`echo $elf_dirs | sed -e 's,//,/,g'` $sysnames"
1074 # Expand the list of system names into a full list of directories
1075 # from each element's parent name and Implies file (if present).
1078 while test $# -gt 0; do
1082 case " $names " in *" $name "*)
1083 # Already in the list.
1087 # Report each name as we discover it, so there is no long pause in output.
1088 echo $ac_n "$name $ac_c" >&6
1090 name_base
=`echo $name | sed -e 's@\(.*sysdeps\)/.*@\1@'`
1094 *) xsrcdir
=$srcdir/ ;;
1096 test -n "$enable_debug_configure" &&
1097 echo "DEBUG: name/Implies $xsrcdir$name/Implies" >&2
1099 if test -f $xsrcdir$name/Implies
; then
1100 # Collect more names from the `Implies' file (removing comments).
1101 implied_candidate
="`sed 's/#.*$//' < $xsrcdir$name/Implies`"
1103 for x
in $implied_candidate; do
1104 if test -d $xsrcdir$name_base/$x; then
1105 implied
="$implied $name_base/$x";
1107 echo "configure: warning: $name/Implies specifies nonexistent $x" 1>&2
1114 # Add NAME to the list of names.
1115 names
="$names $name"
1117 # Find the parent of NAME, using the empty string if it has none.
1118 parent
="`echo $name | sed -n -e 's=/[^/]*$==' -e '/sysdeps$/q' -e p`"
1120 # Add the names implied by NAME, and NAME's parent (if it has one), to
1121 # the list of names to be processed (the argument list). We prepend the
1122 # implied names to the list and append the parent. We want implied
1123 # directories to come before further directories inferred from the
1124 # configuration components; this ensures that for sysv4, unix/common
1125 # (implied by unix/sysv/sysv4) comes before unix/sysv (in ostry (here $*)
1127 sysnames
="`echo $implied $* $parent`"
1128 test -n "$sysnames" && set $sysnames
1131 # Add the default directories.
1132 default_sysnames
=sysdeps
/generic
1133 if test "$elf" = yes; then
1134 default_sysnames
="sysdeps/generic/elf $default_sysnames"
1136 sysnames
="$names $default_sysnames"
1138 # The other names were emitted during the scan.
1139 echo "$ac_t""$default_sysnames" 1>&6
1144 # Find a good install program. We prefer a C program (faster),
1145 # so one script is as good as another. But avoid the broken or
1146 # incompatible versions:
1147 # SysV /etc/install, /usr/sbin/install
1148 # SunOS /usr/etc/install
1149 # IRIX /sbin/install
1151 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1152 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1153 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1154 # ./install, which can be erroneously created by make from ./install.sh.
1155 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1156 echo "configure:1157: checking for a BSD compatible install" >&5
1157 if test -z "$INSTALL"; then
1158 if eval "test \"\${ac_cv_path_install+set}\" = set"; then
1159 echo $ac_n "(cached) $ac_c" 1>&6
1161 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
=":"
1162 for ac_dir
in $PATH; do
1163 # Account for people who put trailing slashes in PATH elements.
1165 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
1167 # OSF1 and SCO ODT 3.0 have their own names for install.
1168 # Don't use installbsd from OSF since it installs stuff as root
1170 for ac_prog
in ginstall scoinst
install; do
1171 if test -f $ac_dir/$ac_prog; then
1172 if test $ac_prog = install &&
1173 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
1174 # AIX install. It has an incompatible calling convention.
1176 elif test $ac_prog = install &&
1177 grep pwplus
$ac_dir/$ac_prog >/dev
/null
2>&1; then
1178 # program-specific install script used by HP pwplus--don't use.
1181 ac_cv_path_install
="$ac_dir/$ac_prog -c"
1192 if test "${ac_cv_path_install+set}" = set; then
1193 INSTALL
="$ac_cv_path_install"
1195 # As a last resort, use the slow shell script. We don't cache a
1196 # path for INSTALL within a source directory, because that will
1197 # break other packages using the cache if that directory is
1198 # removed, or if the path is relative.
1199 INSTALL
="$ac_install_sh"
1202 echo "$ac_t""$INSTALL" 1>&6
1204 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1205 # It thinks the first close brace ends the variable substitution.
1206 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
1208 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
1210 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
1212 if test "$INSTALL" = "${srcdir}/scripts/install-sh -c"; then
1213 # The makefiles need to use a different form to find it in $srcdir.
1214 INSTALL
='\$(..)./scripts/install-sh -c'
1216 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1217 echo "configure:1218: checking whether ln -s works" >&5
1218 if eval "test \"\${ac_cv_prog_LN_S+set}\" = set"; then
1219 echo $ac_n "(cached) $ac_c" 1>&6
1222 if ln -s X conftestdata
2>/dev
/null
1225 ac_cv_prog_LN_S
="ln -s"
1230 LN_S
="$ac_cv_prog_LN_S"
1231 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1232 echo "$ac_t""yes" 1>&6
1234 echo "$ac_t""no" 1>&6
1238 # These programs are version sensitive.
1240 echo $ac_n "checking build system type""... $ac_c" 1>&6
1241 echo "configure:1242: checking build system type" >&5
1242 if test "x$ac_cv_build" = "x" ||
(test "x$build" != "xNONE" && test "x$build" != "x$ac_cv_build_alias"); then
1244 # Make sure we can run config.sub.
1245 if $ac_config_sub sun4
>/dev
/null
2>&1; then :
1246 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1249 ac_cv_build_alias
=$build
1250 case "$ac_cv_build_alias" in
1254 ac_cv_build_alias
=$host_alias ;;
1256 *) ac_cv_build_alias
=$nonopt ;;
1260 ac_cv_build
=`$ac_config_sub $ac_cv_build_alias`
1261 ac_cv_build_cpu
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1262 ac_cv_build_vendor
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1263 ac_cv_build_os
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1265 echo $ac_n "(cached) $ac_c" 1>&6
1268 echo "$ac_t""$ac_cv_build" 1>&6
1271 build_alias
=$ac_cv_build_alias
1272 build_cpu
=$ac_cv_build_cpu
1273 build_vendor
=$ac_cv_build_vendor
1274 build_os
=$ac_cv_build_os
1279 if test $host != $build; then
1280 ac_tool_prefix
=${host_alias}-
1285 for ac_prog
in ${ac_tool_prefix}gcc
${ac_tool_prefix}cc
1287 # Extract the first word of "$ac_prog", so it can be a program name with args.
1288 set dummy
$ac_prog; ac_word
=$2
1289 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1290 echo "configure:1291: checking for $ac_word" >&5
1291 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
1292 echo $ac_n "(cached) $ac_c" 1>&6
1294 if test -n "$CC"; then
1295 ac_cv_prog_CC
="$CC" # Let the user override the test.
1297 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1299 for ac_dir
in $ac_dummy; do
1300 test -z "$ac_dir" && ac_dir
=.
1301 if test -f $ac_dir/$ac_word; then
1302 ac_cv_prog_CC
="$ac_prog"
1310 if test -n "$CC"; then
1311 echo "$ac_t""$CC" 1>&6
1313 echo "$ac_t""no" 1>&6
1316 test -n "$CC" && break
1319 if test -z "$CC"; then
1322 # Found it, now check the version.
1323 echo $ac_n "checking version of $CC""... $ac_c" 1>&6
1324 echo "configure:1325: checking version of $CC" >&5
1325 ac_prog_version
=`$CC -v 2>&1 | sed -n 's/^.*version \([egcygnustp-]*[0-9.]*\).*$/\1/p'`
1326 case $ac_prog_version in
1327 '') ac_prog_version
="v. ?.??, bad"; ac_verc_fail
=yes;;
1328 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])
1329 ac_prog_version
="$ac_prog_version, ok"; ac_verc_fail
=no
;;
1330 *) ac_prog_version
="$ac_prog_version, bad"; ac_verc_fail
=yes;;
1333 echo "$ac_t""$ac_prog_version" 1>&6
1335 if test $ac_verc_fail = yes; then
1339 for ac_prog
in gnumake gmake
make
1341 # Extract the first word of "$ac_prog", so it can be a program name with args.
1342 set dummy
$ac_prog; ac_word
=$2
1343 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1344 echo "configure:1345: checking for $ac_word" >&5
1345 if eval "test \"\${ac_cv_prog_MAKE+set}\" = set"; then
1346 echo $ac_n "(cached) $ac_c" 1>&6
1348 if test -n "$MAKE"; then
1349 ac_cv_prog_MAKE
="$MAKE" # Let the user override the test.
1351 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1353 for ac_dir
in $ac_dummy; do
1354 test -z "$ac_dir" && ac_dir
=.
1355 if test -f $ac_dir/$ac_word; then
1356 ac_cv_prog_MAKE
="$ac_prog"
1363 MAKE
="$ac_cv_prog_MAKE"
1364 if test -n "$MAKE"; then
1365 echo "$ac_t""$MAKE" 1>&6
1367 echo "$ac_t""no" 1>&6
1370 test -n "$MAKE" && break
1373 if test -z "$MAKE"; then
1376 # Found it, now check the version.
1377 echo $ac_n "checking version of $MAKE""... $ac_c" 1>&6
1378 echo "configure:1379: checking version of $MAKE" >&5
1379 ac_prog_version
=`$MAKE --version 2>&1 | sed -n 's/^.*version \([0-9][0-9.]*\), by.*$/\1/p'`
1380 case $ac_prog_version in
1381 '') ac_prog_version
="v. ?.??, bad"; ac_verc_fail
=yes;;
1382 3.75 |
3.76.
[1-9]* |
3.7[789]* |
3.
[89]*)
1383 ac_prog_version
="$ac_prog_version, ok"; ac_verc_fail
=no
;;
1384 *) ac_prog_version
="$ac_prog_version, bad"; ac_verc_fail
=yes;;
1387 echo "$ac_t""$ac_prog_version" 1>&6
1389 if test $ac_verc_fail = yes; then
1394 for ac_prog
in gnumsgfmt gmsgfmt msgfmt
1396 # Extract the first word of "$ac_prog", so it can be a program name with args.
1397 set dummy
$ac_prog; ac_word
=$2
1398 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1399 echo "configure:1400: checking for $ac_word" >&5
1400 if eval "test \"\${ac_cv_prog_MSGFMT+set}\" = set"; then
1401 echo $ac_n "(cached) $ac_c" 1>&6
1403 if test -n "$MSGFMT"; then
1404 ac_cv_prog_MSGFMT
="$MSGFMT" # Let the user override the test.
1406 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1408 for ac_dir
in $ac_dummy; do
1409 test -z "$ac_dir" && ac_dir
=.
1410 if test -f $ac_dir/$ac_word; then
1411 ac_cv_prog_MSGFMT
="$ac_prog"
1418 MSGFMT
="$ac_cv_prog_MSGFMT"
1419 if test -n "$MSGFMT"; then
1420 echo "$ac_t""$MSGFMT" 1>&6
1422 echo "$ac_t""no" 1>&6
1425 test -n "$MSGFMT" && break
1428 if test -z "$MSGFMT"; then
1431 # Found it, now check the version.
1432 echo $ac_n "checking version of $MSGFMT""... $ac_c" 1>&6
1433 echo "configure:1434: checking version of $MSGFMT" >&5
1434 ac_prog_version
=`$MSGFMT --version 2>&1 | sed -n 's/^.*GNU gettext.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
1435 case $ac_prog_version in
1436 '') ac_prog_version
="v. ?.??, bad"; ac_verc_fail
=yes;;
1437 0.
[1-9][0-9].
* |
[1-9].
*)
1438 ac_prog_version
="$ac_prog_version, ok"; ac_verc_fail
=no
;;
1439 *) ac_prog_version
="$ac_prog_version, bad"; ac_verc_fail
=yes;;
1442 echo "$ac_t""$ac_prog_version" 1>&6
1444 if test $ac_verc_fail = yes; then
1445 MSGFMT
=: aux_missing
=t
1448 for ac_prog
in makeinfo
1450 # Extract the first word of "$ac_prog", so it can be a program name with args.
1451 set dummy
$ac_prog; ac_word
=$2
1452 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1453 echo "configure:1454: checking for $ac_word" >&5
1454 if eval "test \"\${ac_cv_prog_MAKEINFO+set}\" = set"; then
1455 echo $ac_n "(cached) $ac_c" 1>&6
1457 if test -n "$MAKEINFO"; then
1458 ac_cv_prog_MAKEINFO
="$MAKEINFO" # Let the user override the test.
1460 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1462 for ac_dir
in $ac_dummy; do
1463 test -z "$ac_dir" && ac_dir
=.
1464 if test -f $ac_dir/$ac_word; then
1465 ac_cv_prog_MAKEINFO
="$ac_prog"
1472 MAKEINFO
="$ac_cv_prog_MAKEINFO"
1473 if test -n "$MAKEINFO"; then
1474 echo "$ac_t""$MAKEINFO" 1>&6
1476 echo "$ac_t""no" 1>&6
1479 test -n "$MAKEINFO" && break
1482 if test -z "$MAKEINFO"; then
1485 # Found it, now check the version.
1486 echo $ac_n "checking version of $MAKEINFO""... $ac_c" 1>&6
1487 echo "configure:1488: checking version of $MAKEINFO" >&5
1488 ac_prog_version
=`$MAKEINFO --version 2>&1 | sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
1489 case $ac_prog_version in
1490 '') ac_prog_version
="v. ?.??, bad"; ac_verc_fail
=yes;;
1491 3.1[1-9] |
3.
[2-9][0-9] |
1.6[89] |
1.7[0-9])
1492 ac_prog_version
="$ac_prog_version, ok"; ac_verc_fail
=no
;;
1493 *) ac_prog_version
="$ac_prog_version, bad"; ac_verc_fail
=yes;;
1496 echo "$ac_t""$ac_prog_version" 1>&6
1498 if test $ac_verc_fail = yes; then
1499 MAKEINFO
=: aux_missing
=t
1503 if test -n "$critic_missing"; then
1504 { echo "configure: error:
1505 *** Some critical program is missing or too old.
1506 *** Check the INSTALL file for required versions." 1>&2; exit 1; }
1509 test -n "$aux_missing" && echo "configure: warning:
1510 *** An auxiliary program is missing or too old;
1511 *** some features will be disabled.
1512 *** Check the INSTALL file for required versions." 1>&2
1515 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1516 echo "configure:1517: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1517 if eval "test \"\${ac_cv_prog_cc_works+set}\" = set"; then
1518 echo $ac_n "(cached) $ac_c" 1>&6
1522 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1523 ac_cpp
='$CPP $CPPFLAGS'
1524 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1525 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1526 cross_compiling
=$ac_cv_prog_cc_cross
1528 cat > conftest.
$ac_ext << EOF
1530 #line 1531 "configure"
1531 #include "confdefs.h"
1535 if { (eval echo configure
:1536: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1536 ac_cv_prog_cc_works
=yes
1537 # If we can't run a trivial program, we are probably using a cross compiler.
1538 if (.
/conftest
; exit) 2>/dev
/null
; then
1539 ac_cv_prog_cc_cross
=no
1541 ac_cv_prog_cc_cross
=yes
1544 echo "configure: failed program was:" >&5
1545 cat conftest.
$ac_ext >&5
1546 ac_cv_prog_cc_works
=no
1550 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1551 ac_cpp
='$CPP $CPPFLAGS'
1552 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1553 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1554 cross_compiling
=$ac_cv_prog_cc_cross
1558 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1559 if test $ac_cv_prog_cc_works = no
; then
1561 ac_cv_prog_cc_cross
=yes
1565 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1566 echo "configure:1567: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1567 if eval "test \"\${ac_cv_prog_cc_cross+set}\" = set"; then
1568 echo $ac_n "(cached) $ac_c" 1>&6
1573 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1575 cross_compiling
=$ac_cv_prog_cc_cross
1577 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1578 echo "configure:1579: checking whether we are using GNU C" >&5
1579 if eval "test \"\${ac_cv_prog_gcc+set}\" = set"; then
1580 echo $ac_n "(cached) $ac_c" 1>&6
1582 cat > conftest.c
<<EOF
1587 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:1588: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
1594 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1595 if test $ac_cv_prog_gcc != yes; then
1596 { echo "configure: error: GNU libc must be compiled using GNU CC" 1>&2; exit 1; }
1600 echo $ac_n "checking build system type""... $ac_c" 1>&6
1601 echo "configure:1602: checking build system type" >&5
1602 if test "x$ac_cv_build" = "x" ||
(test "x$build" != "xNONE" && test "x$build" != "x$ac_cv_build_alias"); then
1604 # Make sure we can run config.sub.
1605 if $ac_config_sub sun4
>/dev
/null
2>&1; then :
1606 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1609 ac_cv_build_alias
=$build
1610 case "$ac_cv_build_alias" in
1614 ac_cv_build_alias
=$host_alias ;;
1616 *) ac_cv_build_alias
=$nonopt ;;
1620 ac_cv_build
=`$ac_config_sub $ac_cv_build_alias`
1621 ac_cv_build_cpu
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1622 ac_cv_build_vendor
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1623 ac_cv_build_os
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1625 echo $ac_n "(cached) $ac_c" 1>&6
1628 echo "$ac_t""$ac_cv_build" 1>&6
1631 build_alias
=$ac_cv_build_alias
1632 build_cpu
=$ac_cv_build_cpu
1633 build_vendor
=$ac_cv_build_vendor
1634 build_os
=$ac_cv_build_os
1639 if test $host != $build; then
1640 for ac_prog
in gcc cc
1642 # Extract the first word of "$ac_prog", so it can be a program name with args.
1643 set dummy
$ac_prog; ac_word
=$2
1644 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1645 echo "configure:1646: checking for $ac_word" >&5
1646 if eval "test \"\${ac_cv_prog_BUILD_CC+set}\" = set"; then
1647 echo $ac_n "(cached) $ac_c" 1>&6
1649 if test -n "$BUILD_CC"; then
1650 ac_cv_prog_BUILD_CC
="$BUILD_CC" # Let the user override the test.
1652 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1654 for ac_dir
in $ac_dummy; do
1655 test -z "$ac_dir" && ac_dir
=.
1656 if test -f $ac_dir/$ac_word; then
1657 ac_cv_prog_BUILD_CC
="$ac_prog"
1664 BUILD_CC
="$ac_cv_prog_BUILD_CC"
1665 if test -n "$BUILD_CC"; then
1666 echo "$ac_t""$BUILD_CC" 1>&6
1668 echo "$ac_t""no" 1>&6
1671 test -n "$BUILD_CC" && break
1676 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1677 echo "configure:1678: checking how to run the C preprocessor" >&5
1678 # On Suns, sometimes $CPP names a directory.
1679 if test -n "$CPP" && test -d "$CPP"; then
1682 if test -z "$CPP"; then
1683 if eval "test \"\${ac_cv_prog_CPP+set}\" = set"; then
1684 echo $ac_n "(cached) $ac_c" 1>&6
1686 # This must be in double quotes, not single quotes, because CPP may get
1687 # substituted into the Makefile and "${CC-cc}" will confuse make.
1689 # On the NeXT, cc -E runs the code through the compiler's parser,
1690 # not just through cpp.
1691 cat > conftest.
$ac_ext <<EOF
1692 #line 1693 "configure"
1693 #include "confdefs.h"
1697 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1698 { (eval echo configure
:1699: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1699 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1700 if test -z "$ac_err"; then
1704 echo "configure: failed program was:" >&5
1705 cat conftest.
$ac_ext >&5
1707 CPP
="${CC-cc} -E -traditional-cpp"
1708 cat > conftest.
$ac_ext <<EOF
1709 #line 1710 "configure"
1710 #include "confdefs.h"
1714 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1715 { (eval echo configure
:1716: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1716 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1717 if test -z "$ac_err"; then
1721 echo "configure: failed program was:" >&5
1722 cat conftest.
$ac_ext >&5
1724 CPP
="${CC-cc} -nologo -E"
1725 cat > conftest.
$ac_ext <<EOF
1726 #line 1727 "configure"
1727 #include "confdefs.h"
1731 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1732 { (eval echo configure
:1733: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1733 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1734 if test -z "$ac_err"; then
1738 echo "configure: failed program was:" >&5
1739 cat conftest.
$ac_ext >&5
1748 ac_cv_prog_CPP
="$CPP"
1750 CPP
="$ac_cv_prog_CPP"
1752 ac_cv_prog_CPP
="$CPP"
1754 echo "$ac_t""$CPP" 1>&6
1756 # Was a --with-binutils option given?
1757 if test -n "$path_binutils"; then
1758 # Make absolute; ensure a single trailing slash.
1759 path_binutils
=`(cd $path_binutils; pwd) | sed 's%/*$%/%'`
1760 CC
="$CC -B$path_binutils"
1762 AS
=`$CC -print-prog-name=as`
1763 LD
=`$CC -print-prog-name=ld`
1764 AR
=`$CC -print-prog-name=ar`
1767 # ranlib has to be treated a bit differently since it might not exist at all.
1768 RANLIB
=`$CC -print-prog-name=ranlib`
1769 if test $RANLIB = ranlib
; then
1770 # This extra check has to happen since gcc simply echos the parameter in
1771 # case it cannot find the value in its own directories.
1772 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1773 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
1774 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1775 echo "configure:1776: checking for $ac_word" >&5
1776 if eval "test \"\${ac_cv_prog_RANLIB+set}\" = set"; then
1777 echo $ac_n "(cached) $ac_c" 1>&6
1779 if test -n "$RANLIB"; then
1780 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1782 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1784 for ac_dir
in $ac_dummy; do
1785 test -z "$ac_dir" && ac_dir
=.
1786 if test -f $ac_dir/$ac_word; then
1787 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
1794 RANLIB
="$ac_cv_prog_RANLIB"
1795 if test -n "$RANLIB"; then
1796 echo "$ac_t""$RANLIB" 1>&6
1798 echo "$ac_t""no" 1>&6
1802 if test -z "$ac_cv_prog_RANLIB"; then
1803 if test -n "$ac_tool_prefix"; then
1804 # Extract the first word of "ranlib", so it can be a program name with args.
1805 set dummy ranlib
; ac_word
=$2
1806 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1807 echo "configure:1808: checking for $ac_word" >&5
1808 if eval "test \"\${ac_cv_prog_RANLIB+set}\" = set"; then
1809 echo $ac_n "(cached) $ac_c" 1>&6
1811 if test -n "$RANLIB"; then
1812 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1814 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1816 for ac_dir
in $ac_dummy; do
1817 test -z "$ac_dir" && ac_dir
=.
1818 if test -f $ac_dir/$ac_word; then
1819 ac_cv_prog_RANLIB
="ranlib"
1824 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
1827 RANLIB
="$ac_cv_prog_RANLIB"
1828 if test -n "$RANLIB"; then
1829 echo "$ac_t""$RANLIB" 1>&6
1831 echo "$ac_t""no" 1>&6
1842 # Determine whether we are using GNU binutils.
1843 echo $ac_n "checking whether $AS is GNU as""... $ac_c" 1>&6
1844 echo "configure:1845: checking whether $AS is GNU as" >&5
1845 if eval "test \"\${libc_cv_prog_as_gnu+set}\" = set"; then
1846 echo $ac_n "(cached) $ac_c" 1>&6
1848 # Most GNU programs take a -v and spit out some text including
1849 # the word 'GNU'. Some try to read stdin, so give them /dev/null.
1850 if $AS -o conftest
-v </dev
/null
2>&1 |
grep GNU
> /dev
/null
2>&1; then
1851 libc_cv_prog_as_gnu
=yes
1853 libc_cv_prog_as_gnu
=no
1858 echo "$ac_t""$libc_cv_prog_as_gnu" 1>&6
1860 gnu_as
=$libc_cv_prog_as_gnu
1862 echo $ac_n "checking whether $LD is GNU ld""... $ac_c" 1>&6
1863 echo "configure:1864: checking whether $LD is GNU ld" >&5
1864 if eval "test \"\${libc_cv_prog_ld_gnu+set}\" = set"; then
1865 echo $ac_n "(cached) $ac_c" 1>&6
1867 # Most GNU programs take a -v and spit out some text including
1868 # the word 'GNU'. Some try to read stdin, so give them /dev/null.
1869 if $LD -o conftest
-v </dev
/null
2>&1 |
grep GNU
> /dev
/null
2>&1; then
1870 libc_cv_prog_ld_gnu
=yes
1872 libc_cv_prog_ld_gnu
=no
1877 echo "$ac_t""$libc_cv_prog_ld_gnu" 1>&6
1878 gnu_ld
=$libc_cv_prog_ld_gnu
1880 # Extract the first word of "${ac_tool_prefix}mig", so it can be a program name with args.
1881 set dummy
${ac_tool_prefix}mig
; ac_word
=$2
1882 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1883 echo "configure:1884: checking for $ac_word" >&5
1884 if eval "test \"\${ac_cv_prog_MIG+set}\" = set"; then
1885 echo $ac_n "(cached) $ac_c" 1>&6
1887 if test -n "$MIG"; then
1888 ac_cv_prog_MIG
="$MIG" # Let the user override the test.
1890 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1892 for ac_dir
in $ac_dummy; do
1893 test -z "$ac_dir" && ac_dir
=.
1894 if test -f $ac_dir/$ac_word; then
1895 ac_cv_prog_MIG
="${ac_tool_prefix}mig"
1900 test -z "$ac_cv_prog_MIG" && ac_cv_prog_MIG
="mig"
1903 MIG
="$ac_cv_prog_MIG"
1904 if test -n "$MIG"; then
1905 echo "$ac_t""$MIG" 1>&6
1907 echo "$ac_t""no" 1>&6
1913 # if using special system headers, find out the compiler's sekrit
1914 # header directory and add that to the list. NOTE: Only does the right
1915 # thing on a system that doesn't need fixincludes. (Not presently a problem.)
1916 if test -n "$sysheaders"; then
1917 ccheaders
=`$CC -print-file-name=include`
1918 SYSINCLUDES
="-nostdinc -isystem $ccheaders -isystem $sysheaders"
1922 # check if ranlib is necessary
1923 echo $ac_n "checking whether ranlib is necessary""... $ac_c" 1>&6
1924 echo "configure:1925: checking whether ranlib is necessary" >&5
1925 if eval "test \"\${libc_cv_ranlib_necessary+set}\" = set"; then
1926 echo $ac_n "(cached) $ac_c" 1>&6
1928 cat > conftest.c
<<EOF
1933 $CC $CFLAGS -c conftest.c
1934 $AR cr conftest.a conftest.c
1935 cp conftest.a conftest2.a
1937 if cmp -s conftest.a conftest2.a
; then
1938 libc_cv_ranlib_necessary
=no
1940 libc_cv_ranlib_necessary
=yes
1945 echo "$ac_t""$libc_cv_ranlib_necessary" 1>&6
1946 if test "$libc_cv_ranlib_necessary" = no
; then
1950 # Test if LD_LIBRARY_PATH contains the notation for the current directory
1951 # since this would lead to problems installing/building glibc.
1952 # LD_LIBRARY_PATH contains the current directory if one of the following
1954 # - one of the terminals (":" and ";") is the first or last sign
1955 # - two terminals occur directly after each other
1956 # - the path contains an element with a dot in it
1957 echo $ac_n "checking LD_LIBRARY_PATH variable""... $ac_c" 1>&6
1958 echo "configure:1959: checking LD_LIBRARY_PATH variable" >&5
1959 case ${LD_LIBRARY_PATH} in
1960 [:\
;]* |
*[:\
;] |
*[:\
;][:\
;]* |
*[:\
;]. | .
[:\
;]*| . |
*[:\
;].
[:\
;]* )
1961 ld_library_path_setting
="contains current directory"
1964 ld_library_path_setting
="ok"
1967 echo "$ac_t""$ld_library_path_setting" 1>&6
1968 if test "$ld_library_path_setting" != "ok"; then
1969 { echo "configure: error:
1970 *** LD_LIBRARY_PATH shouldn't contain the current directory when
1971 *** building glibc. Please change the environment variable
1972 *** and run configure again." 1>&2; exit 1; }
1975 # Extract the first word of "bash", so it can be a program name with args.
1976 set dummy bash
; ac_word
=$2
1977 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1978 echo "configure:1979: checking for $ac_word" >&5
1979 if eval "test \"\${ac_cv_path_BASH+set}\" = set"; then
1980 echo $ac_n "(cached) $ac_c" 1>&6
1984 ac_cv_path_BASH
="$BASH" # Let the user override the test with a path.
1987 ac_cv_path_BASH
="$BASH" # Let the user override the test with a dos path.
1990 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1992 for ac_dir
in $ac_dummy; do
1993 test -z "$ac_dir" && ac_dir
=.
1994 if test -f $ac_dir/$ac_word; then
1995 ac_cv_path_BASH
="$ac_dir/$ac_word"
2000 test -z "$ac_cv_path_BASH" && ac_cv_path_BASH
="no"
2004 BASH
="$ac_cv_path_BASH"
2005 if test -n "$BASH"; then
2006 echo "$ac_t""$BASH" 1>&6
2008 echo "$ac_t""no" 1>&6
2011 if test "$BASH" != no
&&
2012 $BASH -c 'test "$BASH_VERSINFO" \
2013 && test "$BASH_VERSINFO" -ge 2 >&/dev/null'; then
2014 libc_cv_have_bash2
=yes
2016 libc_cv_have_bash2
=no
2020 if test "$BASH" = no
; then
2021 # Extract the first word of "ksh", so it can be a program name with args.
2022 set dummy ksh
; ac_word
=$2
2023 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2024 echo "configure:2025: checking for $ac_word" >&5
2025 if eval "test \"\${ac_cv_path_KSH+set}\" = set"; then
2026 echo $ac_n "(cached) $ac_c" 1>&6
2030 ac_cv_path_KSH
="$KSH" # Let the user override the test with a path.
2033 ac_cv_path_KSH
="$KSH" # Let the user override the test with a dos path.
2036 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2038 for ac_dir
in $ac_dummy; do
2039 test -z "$ac_dir" && ac_dir
=.
2040 if test -f $ac_dir/$ac_word; then
2041 ac_cv_path_KSH
="$ac_dir/$ac_word"
2046 test -z "$ac_cv_path_KSH" && ac_cv_path_KSH
="no"
2050 KSH
="$ac_cv_path_KSH"
2051 if test -n "$KSH"; then
2052 echo "$ac_t""$KSH" 1>&6
2054 echo "$ac_t""no" 1>&6
2057 if test "$KSH" = no
; then
2060 libc_cv_have_ksh
=yes
2065 libc_cv_have_ksh
=yes
2069 for ac_prog
in mawk gawk nawk
awk
2071 # Extract the first word of "$ac_prog", so it can be a program name with args.
2072 set dummy
$ac_prog; ac_word
=$2
2073 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2074 echo "configure:2075: checking for $ac_word" >&5
2075 if eval "test \"\${ac_cv_prog_AWK+set}\" = set"; then
2076 echo $ac_n "(cached) $ac_c" 1>&6
2078 if test -n "$AWK"; then
2079 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
2081 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2083 for ac_dir
in $ac_dummy; do
2084 test -z "$ac_dir" && ac_dir
=.
2085 if test -f $ac_dir/$ac_word; then
2086 ac_cv_prog_AWK
="$ac_prog"
2093 AWK
="$ac_cv_prog_AWK"
2094 if test -n "$AWK"; then
2095 echo "$ac_t""$AWK" 1>&6
2097 echo "$ac_t""no" 1>&6
2100 test -n "$AWK" && break
2103 # Extract the first word of "perl", so it can be a program name with args.
2104 set dummy perl
; ac_word
=$2
2105 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2106 echo "configure:2107: checking for $ac_word" >&5
2107 if eval "test \"\${ac_cv_path_PERL+set}\" = set"; then
2108 echo $ac_n "(cached) $ac_c" 1>&6
2112 ac_cv_path_PERL
="$PERL" # Let the user override the test with a path.
2115 ac_cv_path_PERL
="$PERL" # Let the user override the test with a dos path.
2118 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2120 for ac_dir
in $ac_dummy; do
2121 test -z "$ac_dir" && ac_dir
=.
2122 if test -f $ac_dir/$ac_word; then
2123 ac_cv_path_PERL
="$ac_dir/$ac_word"
2128 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL
="no"
2132 PERL
="$ac_cv_path_PERL"
2133 if test -n "$PERL"; then
2134 echo "$ac_t""$PERL" 1>&6
2136 echo "$ac_t""no" 1>&6
2140 # Extract the first word of "install-info", so it can be a program name with args.
2141 set dummy install-info
; ac_word
=$2
2142 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2143 echo "configure:2144: checking for $ac_word" >&5
2144 if eval "test \"\${ac_cv_path_INSTALL_INFO+set}\" = set"; then
2145 echo $ac_n "(cached) $ac_c" 1>&6
2147 case "$INSTALL_INFO" in
2149 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
2152 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a dos path.
2155 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2156 ac_dummy
="$PATH:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin"
2157 for ac_dir
in $ac_dummy; do
2158 test -z "$ac_dir" && ac_dir
=.
2159 if test -f $ac_dir/$ac_word; then
2160 ac_cv_path_INSTALL_INFO
="$ac_dir/$ac_word"
2165 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO
="no"
2169 INSTALL_INFO
="$ac_cv_path_INSTALL_INFO"
2170 if test -n "$INSTALL_INFO"; then
2171 echo "$ac_t""$INSTALL_INFO" 1>&6
2173 echo "$ac_t""no" 1>&6
2177 if test "$INSTALL_INFO" != "no"; then
2178 echo $ac_n "checking for old Debian install-info""... $ac_c" 1>&6
2179 echo "configure:2180: checking for old Debian install-info" >&5
2180 if eval "test \"\${libc_cv_old_debian_install_info+set}\" = set"; then
2181 echo $ac_n "(cached) $ac_c" 1>&6
2184 # There is a hard ^_ on the next line. I am open to better ideas.
2186 echo 'File: dir Node: Top This is the top of the INFO tree'
2187 echo '* Menu:') >conftest.d
/dir
2188 (echo 'INFO-DIR-SECTION i-d-s works'
2189 echo 'START-INFO-DIR-ENTRY'
2190 echo '* Prog: (prog). Program.'
2191 echo 'END-INFO-DIR-ENTRY') >conftest.d
/prog.info
2192 if $INSTALL_INFO --info-dir=conftest.d conftest.d
/prog.info
>&5 2>&1
2194 if grep -s 'i-d-s works' conftest.d
/dir
>/dev
/null
2195 then libc_cv_old_debian_install_info
=no
2196 else libc_cv_old_debian_install_info
=yes
2198 else libc_cv_old_debian_install_info
=no testfailed
=t
2203 echo "$ac_t""$libc_cv_old_debian_install_info" 1>&6
2204 if test -n "$testfailed"
2205 then echo "configure: warning: install-info errored out, check config.log" 1>&2
2207 OLD_DEBIAN_INSTALL_INFO
=$libc_cv_old_debian_install_info
2211 echo $ac_n "checking for signed size_t type""... $ac_c" 1>&6
2212 echo "configure:2213: checking for signed size_t type" >&5
2213 if eval "test \"\${libc_cv_signed_size_t+set}\" = set"; then
2214 echo $ac_n "(cached) $ac_c" 1>&6
2216 echo '#include <stddef.h>
2217 FOOBAR __SIZE_TYPE__ FOOBAR' > conftest.c
2218 if eval "$ac_cpp conftest.c 2>/dev/null" \
2219 |
grep '^FOOBAR.*unsigned.*FOOBAR$' >/dev
/null
; then
2220 libc_cv_signed_size_t
=no
2222 libc_cv_signed_size_t
=yes
2227 echo "$ac_t""$libc_cv_signed_size_t" 1>&6
2228 if test $libc_cv_signed_size_t = yes; then
2229 cat >> confdefs.h
<<\EOF
2230 #undef __SIZE_TYPE__
2231 #define __SIZE_TYPE__ unsigned
2235 echo $ac_n "checking for libc-friendly stddef.h""... $ac_c" 1>&6
2236 echo "configure:2237: checking for libc-friendly stddef.h" >&5
2237 if eval "test \"\${libc_cv_friendly_stddef+set}\" = set"; then
2238 echo $ac_n "(cached) $ac_c" 1>&6
2240 cat > conftest.
$ac_ext <<EOF
2241 #line 2242 "configure"
2242 #include "confdefs.h"
2243 #define __need_size_t
2244 #define __need_wchar_t
2249 size_t size; wchar_t wchar;
2251 #error stddef.h ignored __need_*
2253 if (&size == NULL || &wchar == NULL) abort ();
2256 if { (eval echo configure
:2257: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2258 libc_cv_friendly_stddef
=yes
2260 echo "configure: failed program was:" >&5
2261 cat conftest.
$ac_ext >&5
2263 libc_cv_friendly_stddef
=no
2268 echo "$ac_t""$libc_cv_friendly_stddef" 1>&6
2269 if test $libc_cv_friendly_stddef = yes; then
2270 config_vars
="$config_vars
2271 override stddef.h = # The installed <stddef.h> seems to be libc-friendly."
2274 echo $ac_n "checking whether we need to use -P to assemble .S files""... $ac_c" 1>&6
2275 echo "configure:2276: checking whether we need to use -P to assemble .S files" >&5
2276 if eval "test \"\${libc_cv_need_minus_P+set}\" = set"; then
2277 echo $ac_n "(cached) $ac_c" 1>&6
2279 cat > conftest.S
<<EOF
2280 #include "confdefs.h"
2281 /* Nothing whatsoever. */
2283 if ${CC-cc} $CFLAGS -c conftest.S
2>/dev
/null
; then
2284 libc_cv_need_minus_P
=no
2286 libc_cv_need_minus_P
=yes
2291 echo "$ac_t""$libc_cv_need_minus_P" 1>&6
2292 if test $libc_cv_need_minus_P = yes; then
2293 config_vars
="$config_vars
2294 asm-CPPFLAGS = -P # The assembler can't grok cpp's # line directives."
2297 echo $ac_n "checking for assembler global-symbol directive""... $ac_c" 1>&6
2298 echo "configure:2299: checking for assembler global-symbol directive" >&5
2299 if eval "test \"\${libc_cv_asm_global_directive+set}\" = set"; then
2300 echo $ac_n "(cached) $ac_c" 1>&6
2302 libc_cv_asm_global_directive
=UNKNOWN
2303 for ac_globl
in .globl .global .EXPORT
; do
2304 cat > conftest.s
<<EOF
2309 if ${CC-cc} $CFLAGS -c conftest.s
2>/dev
/null
; then
2310 libc_cv_asm_global_directive
=${ac_globl}
2313 test $libc_cv_asm_global_directive != UNKNOWN
&& break
2317 echo "$ac_t""$libc_cv_asm_global_directive" 1>&6
2318 if test $libc_cv_asm_global_directive = UNKNOWN
; then
2319 { echo "configure: error: cannot determine asm global directive" 1>&2; exit 1; }
2321 cat >> confdefs.h
<<EOF
2322 #define ASM_GLOBAL_DIRECTIVE ${libc_cv_asm_global_directive}
2327 echo $ac_n "checking for .set assembler directive""... $ac_c" 1>&6
2328 echo "configure:2329: checking for .set assembler directive" >&5
2329 if eval "test \"\${libc_cv_asm_set_directive+set}\" = set"; then
2330 echo $ac_n "(cached) $ac_c" 1>&6
2332 cat > conftest.s
<<EOF
2335 .set glibc_conftest_frobozz,foo
2336 $libc_cv_asm_global_directive glibc_conftest_frobozz
2338 # The alpha-dec-osf1 assembler gives only a warning for `.set'
2339 # (but it doesn't work), so we must do a linking check to be sure.
2340 cat > conftest1.c
<<\EOF
2341 extern int glibc_conftest_frobozz
;
2342 main
() { printf ("%d\n", glibc_conftest_frobozz
); }
2344 if ${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \
2345 -o conftest conftest.s conftest1.c
1>&5 2>&5; then
2346 libc_cv_asm_set_directive
=yes
2348 libc_cv_asm_set_directive
=no
2353 echo "$ac_t""$libc_cv_asm_set_directive" 1>&6
2354 if test $libc_cv_asm_set_directive = yes; then
2355 cat >> confdefs.h
<<\EOF
2356 #define HAVE_ASM_SET_DIRECTIVE 1
2361 echo $ac_n "checking for .symver assembler directive""... $ac_c" 1>&6
2362 echo "configure:2363: checking for .symver assembler directive" >&5
2363 if eval "test \"\${libc_cv_asm_symver_directive+set}\" = set"; then
2364 echo $ac_n "(cached) $ac_c" 1>&6
2366 cat > conftest.s
<<EOF
2369 .symver _sym,sym@VERS
2371 if ${CC-cc} -c $CFLAGS $CPPFLAGS conftest.s
1>&5 2>&5; then
2372 libc_cv_asm_symver_directive
=yes
2374 libc_cv_asm_symver_directive
=no
2379 echo "$ac_t""$libc_cv_asm_symver_directive" 1>&6
2380 echo $ac_n "checking for ld --version-script""... $ac_c" 1>&6
2381 echo "configure:2382: checking for ld --version-script" >&5
2382 if eval "test \"\${libc_cv_ld_version_script_option+set}\" = set"; then
2383 echo $ac_n "(cached) $ac_c" 1>&6
2385 if test $libc_cv_asm_symver_directive = yes; then
2386 cat > conftest.s
<<EOF
2389 .symver _sym,sym@VERS
2391 cat > conftest.map
<<EOF
2400 if ${CC-cc} -c $CFLAGS $CPPFLAGS conftest.s
1>&5 2>&5; then
2401 if { ac_try
='${CC-cc} $CFLAGS -shared -o conftest.so conftest.o
2402 -nostartfiles -nostdlib
2403 -Wl,--version-script,conftest.map
2404 1>&5'; { (eval echo configure
:2405: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; };
2406 libc_cv_ld_version_script_option
=yes
2408 libc_cv_ld_version_script_option
=no
2411 libc_cv_ld_version_script_option
=no
2414 libc_cv_ld_version_script_option
=no
2419 echo "$ac_t""$libc_cv_ld_version_script_option" 1>&6
2420 if test $libc_cv_asm_symver_directive = yes &&
2421 test $libc_cv_ld_version_script_option = yes &&
2422 test $enable_versioning = yes; then
2424 cat >> confdefs.h
<<\EOF
2425 #define DO_VERSIONING 1
2433 if test $VERSIONING = no
; then
2435 *** WARNING: You should not compile GNU libc without versioning. Not using
2436 *** versioning will introduce incompatibilities so that old binaries
2437 *** will not run anymore.
2438 *** For versioning you need recent binutils (binutils-2.8.1.0.23 or newer)."
2440 if test $elf = yes; then
2441 echo $ac_n "checking for .previous assembler directive""... $ac_c" 1>&6
2442 echo "configure:2443: checking for .previous assembler directive" >&5
2443 if eval "test \"\${libc_cv_asm_previous_directive+set}\" = set"; then
2444 echo $ac_n "(cached) $ac_c" 1>&6
2446 cat > conftest.s
<<EOF
2447 .section foo_section
2450 if { ac_try
='${CC-cc} -c $CFLAGS conftest.s 1>&5'; { (eval echo configure
:2451: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
2451 libc_cv_asm_previous_directive
=yes
2453 libc_cv_asm_previous_directive
=no
2458 echo "$ac_t""$libc_cv_asm_previous_directive" 1>&6
2459 if test $libc_cv_asm_previous_directive = yes; then
2460 cat >> confdefs.h
<<\EOF
2461 #define HAVE_ASM_PREVIOUS_DIRECTIVE 1
2465 echo $ac_n "checking for .popsection assembler directive""... $ac_c" 1>&6
2466 echo "configure:2467: checking for .popsection assembler directive" >&5
2467 if eval "test \"\${libc_cv_asm_popsection_directive+set}\" = set"; then
2468 echo $ac_n "(cached) $ac_c" 1>&6
2470 cat > conftest.s
<<EOF
2471 .pushsection foo_section
2474 if { ac_try
='${CC-cc} -c $CFLAGS conftest.s 1>&5'; { (eval echo configure
:2475: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
2475 libc_cv_asm_popsection_directive
=yes
2477 libc_cv_asm_popsection_directive
=no
2482 echo "$ac_t""$libc_cv_asm_popsection_directive" 1>&6
2483 if test $libc_cv_asm_popsection_directive = yes; then
2484 cat >> confdefs.h
<<\EOF
2485 #define HAVE_ASM_POPSECTION_DIRECTIVE 1
2492 if test $elf != yes; then
2493 echo $ac_n "checking for .init and .fini sections""... $ac_c" 1>&6
2494 echo "configure:2495: checking for .init and .fini sections" >&5
2495 if eval "test \"\${libc_cv_have_initfini+set}\" = set"; then
2496 echo $ac_n "(cached) $ac_c" 1>&6
2498 cat > conftest.
$ac_ext <<EOF
2499 #line 2500 "configure"
2500 #include "confdefs.h"
2503 asm (".section .init");
2504 asm (".section .fini");
2508 if { (eval echo configure
:2509: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2510 libc_cv_have_initfini
=yes
2512 echo "configure: failed program was:" >&5
2513 cat conftest.
$ac_ext >&5
2515 libc_cv_have_initfini
=no
2520 echo "$ac_t""$libc_cv_have_initfini" 1>&6
2521 if test $libc_cv_have_initfini = yes; then
2522 cat >> confdefs.h
<<\EOF
2523 #define HAVE_INITFINI 1
2531 if test $elf = yes; then
2532 libc_cv_asm_underscores
=no
2534 if test $ac_cv_prog_cc_works = yes; then
2535 echo $ac_n "checking for _ prefix on C symbol names""... $ac_c" 1>&6
2536 echo "configure:2537: checking for _ prefix on C symbol names" >&5
2537 if eval "test \"\${libc_cv_asm_underscores+set}\" = set"; then
2538 echo $ac_n "(cached) $ac_c" 1>&6
2540 cat > conftest.
$ac_ext <<EOF
2541 #line 2542 "configure"
2542 #include "confdefs.h"
2543 asm ("_glibc_foobar:");
2548 if { (eval echo configure
:2549: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2550 libc_cv_asm_underscores
=yes
2552 echo "configure: failed program was:" >&5
2553 cat conftest.
$ac_ext >&5
2555 libc_cv_asm_underscores
=no
2560 echo "$ac_t""$libc_cv_asm_underscores" 1>&6
2562 echo $ac_n "checking for _ prefix on C symbol names""... $ac_c" 1>&6
2563 echo "configure:2564: checking for _ prefix on C symbol names" >&5
2564 if eval "test \"\${libc_cv_asm_underscores+set}\" = set"; then
2565 echo $ac_n "(cached) $ac_c" 1>&6
2567 cat > conftest.
$ac_ext <<EOF
2568 #line 2569 "configure"
2569 #include "confdefs.h"
2570 void underscore_test(void) {
2573 if { (eval echo configure
:2574: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2574 if grep _underscore_test conftest
* >/dev
/null
; then
2576 libc_cv_asm_underscores
=yes
2579 libc_cv_asm_underscores
=no
2582 echo "configure: failed program was:" >&5
2583 cat conftest.
$ac_ext >&5
2585 libc_cv_asm_underscores
=no
2590 echo "$ac_t""$libc_cv_asm_underscores" 1>&6
2593 if test $libc_cv_asm_underscores = no
; then
2594 cat >> confdefs.h
<<\EOF
2595 #define NO_UNDERSCORES 1
2600 if test $elf = yes; then
2601 libc_cv_weak_symbols
=yes
2604 echo $ac_n "checking for assembler .weak directive""... $ac_c" 1>&6
2605 echo "configure:2606: checking for assembler .weak directive" >&5
2606 if eval "test \"\${libc_cv_asm_weak_directive+set}\" = set"; then
2607 echo $ac_n "(cached) $ac_c" 1>&6
2609 cat > conftest.s
<<EOF
2611 ${libc_cv_asm_global_directive} foo
2614 .weak bar; bar = foo
2616 if ${CC-cc} $CFLAGS -c conftest.s
2>/dev
/null
; then
2617 libc_cv_asm_weak_directive
=yes
2619 libc_cv_asm_weak_directive
=no
2624 echo "$ac_t""$libc_cv_asm_weak_directive" 1>&6
2626 if test $libc_cv_asm_weak_directive = no
; then
2627 echo $ac_n "checking for assembler .weakext directive""... $ac_c" 1>&6
2628 echo "configure:2629: checking for assembler .weakext directive" >&5
2629 if eval "test \"\${libc_cv_asm_weakext_directive+set}\" = set"; then
2630 echo $ac_n "(cached) $ac_c" 1>&6
2632 cat > conftest.s
<<EOF
2634 ${libc_cv_asm_global_directive} foo
2638 ${libc_cv_asm_global_directive} baz
2641 if ${CC-cc} $CFLAGS -c conftest.s
2>/dev
/null
; then
2642 libc_cv_asm_weakext_directive
=yes
2644 libc_cv_asm_weakext_directive
=no
2649 echo "$ac_t""$libc_cv_asm_weakext_directive" 1>&6
2653 if test $libc_cv_asm_weak_directive = yes; then
2654 cat >> confdefs.h
<<\EOF
2655 #define HAVE_ASM_WEAK_DIRECTIVE 1
2658 elif test $libc_cv_asm_weakext_directive = yes; then
2659 cat >> confdefs.h
<<\EOF
2660 #define HAVE_ASM_WEAKEXT_DIRECTIVE 1
2665 echo $ac_n "checking for ld --no-whole-archive""... $ac_c" 1>&6
2666 echo "configure:2667: checking for ld --no-whole-archive" >&5
2667 if eval "test \"\${libc_cv_ld_no_whole_archive+set}\" = set"; then
2668 echo $ac_n "(cached) $ac_c" 1>&6
2670 cat > conftest.c
<<\EOF
2675 if { ac_try
='${CC-cc} $CFLAGS
2676 -nostdlib -nostartfiles -Wl,--no-whole-archive
2677 -o conftest conftest.c 1>&5'; { (eval echo configure
:2678: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
2678 libc_cv_ld_no_whole_archive
=yes
2680 libc_cv_ld_no_whole_archive
=no
2685 echo "$ac_t""$libc_cv_ld_no_whole_archive" 1>&6
2686 if test $libc_cv_ld_no_whole_archive = yes; then
2687 no_whole_archive
=-Wl,--no-whole-archive
2690 echo $ac_n "checking for gcc -fexceptions""... $ac_c" 1>&6
2691 echo "configure:2692: checking for gcc -fexceptions" >&5
2692 if eval "test \"\${libc_cv_gcc_exceptions+set}\" = set"; then
2693 echo $ac_n "(cached) $ac_c" 1>&6
2695 cat > conftest.c
<<\EOF
2700 if { ac_try
='${CC-cc} $CFLAGS
2701 -nostdlib -nostartfiles -fexceptions
2702 -o conftest conftest.c 1>&5'; { (eval echo configure
:2703: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
2703 libc_cv_gcc_exceptions
=yes
2705 libc_cv_gcc_exceptions
=no
2710 echo "$ac_t""$libc_cv_gcc_exceptions" 1>&6
2711 if test $libc_cv_gcc_exceptions = yes; then
2712 exceptions
=-fexceptions
2715 if test "$base_machine" = alpha
; then
2716 echo $ac_n "checking for function ..ng prefix""... $ac_c" 1>&6
2717 echo "configure:2718: checking for function ..ng prefix" >&5
2718 if eval "test \"\${libc_cv_gcc_alpha_ng_prefix+set}\" = set"; then
2719 echo $ac_n "(cached) $ac_c" 1>&6
2721 cat > conftest.c
<<\EOF
2724 if { ac_try
='${CC-cc} -S conftest.c -o - | fgrep "\$foo..ng" > /dev/null'; { (eval echo configure
:2725: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; };
2726 libc_cv_gcc_alpha_ng_prefix
=yes
2728 libc_cv_gcc_alpha_ng_prefix
=no
2733 echo "$ac_t""$libc_cv_gcc_alpha_ng_prefix" 1>&6
2734 if test $libc_cv_gcc_alpha_ng_prefix = yes ; then
2735 cat >> confdefs.h
<<\EOF
2736 #define ASM_ALPHA_NG_SYMBOL_PREFIX "$"
2740 cat >> confdefs.h
<<\EOF
2741 #define ASM_ALPHA_NG_SYMBOL_PREFIX ""
2747 if test "$host_cpu" = powerpc
; then
2748 # Check for a bug present in at least versions 2.8.x of GCC
2749 # and versions 1.0.x of EGCS.
2750 echo $ac_n "checking whether clobbering cr0 causes problems""... $ac_c" 1>&6
2751 echo "configure:2752: checking whether clobbering cr0 causes problems" >&5
2752 if eval "test \"\${libc_cv_c_asmcr0_bug+set}\" = set"; then
2753 echo $ac_n "(cached) $ac_c" 1>&6
2755 cat > conftest.
$ac_ext <<EOF
2756 #line 2757 "configure"
2757 #include "confdefs.h"
2758 int tester(int x) { asm ("" : : : "cc"); return x & 123; }
2763 if { (eval echo configure
:2764: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2765 libc_cv_c_asmcr0_bug
='no'
2767 echo "configure: failed program was:" >&5
2768 cat conftest.
$ac_ext >&5
2770 libc_cv_c_asmcr0_bug
='yes'
2775 echo "$ac_t""$libc_cv_c_asmcr0_bug" 1>&6
2776 if test "$libc_cv_c_asmcr0_bug" != 'no'; then
2777 cat >> confdefs.h
<<\EOF
2778 #define BROKEN_PPC_ASM_CR0 1
2784 echo $ac_n "checking for DWARF2 unwind info support""... $ac_c" 1>&6
2785 echo "configure:2786: checking for DWARF2 unwind info support" >&5
2786 if eval "test \"\${libc_cv_gcc_dwarf2_unwind_info+set}\" = set"; then
2787 echo $ac_n "(cached) $ac_c" 1>&6
2789 cat > conftest.c
<<EOF
2790 #line 2791 "configure"
2791 static char __EH_FRAME_BEGIN__;
2794 #ifdef CHECK__register_frame
2795 __register_frame (__EH_FRAME_BEGIN__);
2796 __deregister_frame (__EH_FRAME_BEGIN__);
2798 #ifdef CHECK__register_frame_info
2799 __register_frame_info (__EH_FRAME_BEGIN__);
2800 __deregister_frame_info (__EH_FRAME_BEGIN__);
2805 /* FIXME: this is fragile. */
2815 if { ac_try
='${CC-cc} $CFLAGS -DCHECK__register_frame_info
2816 -nostdlib -nostartfiles
2817 -o conftest conftest.c -lgcc >&5'; { (eval echo configure
:2818: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
2818 libc_cv_gcc_dwarf2_unwind_info
=static
2820 libc_cv_gcc_dwarf2_unwind_info
=no
2822 if test $libc_cv_gcc_dwarf2_unwind_info = no
; then
2823 if { ac_try
='${CC-cc} $CFLAGS -DCHECK__register_frame
2824 -nostdlib -nostartfiles
2825 -o conftest conftest.c -lgcc >&5'; { (eval echo configure
:2826: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
2826 libc_cv_gcc_dwarf2_unwind_info
=yes
2828 libc_cv_gcc_dwarf2_unwind_info
=no
2834 echo "$ac_t""$libc_cv_gcc_dwarf2_unwind_info" 1>&6
2835 case $libc_cv_gcc_dwarf2_unwind_info in
2837 cat >> confdefs.h
<<\EOF
2838 #define HAVE_DWARF2_UNWIND_INFO 1
2843 cat >> confdefs.h
<<\EOF
2844 #define HAVE_DWARF2_UNWIND_INFO 1
2847 cat >> confdefs.h
<<\EOF
2848 #define HAVE_DWARF2_UNWIND_INFO_STATIC 1
2854 echo $ac_n "checking for __builtin_expect""... $ac_c" 1>&6
2855 echo "configure:2856: checking for __builtin_expect" >&5
2856 if eval "test \"\${libc_cv_gcc_builtin_expect+set}\" = set"; then
2857 echo $ac_n "(cached) $ac_c" 1>&6
2859 cat > conftest.c
<<EOF
2860 #line 2861 "configure"
2863 a = __builtin_expect (a, 10);
2864 return a == 10 ? 0 : 1;
2867 if { ac_try
='${CC-cc} $CFLAGS -nostdlib -nostartfiles
2868 -o conftest conftest.c -lgcc >&5'; { (eval echo configure
:2869: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
2869 libc_cv_gcc_builtin_expect
=yes
2871 libc_cv_gcc_builtin_expect
=no
2876 echo "$ac_t""$libc_cv_gcc_builtin_expect" 1>&6
2877 if test "$libc_cv_gcc_builtin_expect" = yes; then
2878 cat >> confdefs.h
<<\EOF
2879 #define HAVE_BUILTIN_EXPECT 1
2884 echo $ac_n "checking for local label subtraction""... $ac_c" 1>&6
2885 echo "configure:2886: checking for local label subtraction" >&5
2886 if eval "test \"\${libc_cv_gcc_subtract_local_labels+set}\" = set"; then
2887 echo $ac_n "(cached) $ac_c" 1>&6
2889 cat > conftest.c
<<EOF
2890 #line 2891 "configure"
2893 static const int ar[] = { &&l1 - &&l1, &&l2 - &&l1 };
2894 void *p = &&l1 + ar[a];
2902 if { ac_try
='${CC-cc} $CFLAGS -nostdlib -nostartfiles
2903 -o conftest conftest.c -lgcc >&5'; { (eval echo configure
:2904: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
2904 libc_cv_gcc_subtract_local_labels
=yes
2906 libc_cv_gcc_subtract_local_labels
=no
2911 echo "$ac_t""$libc_cv_gcc_subtract_local_labels" 1>&6
2912 if test "$libc_cv_gcc_subtract_local_labels" = yes; then
2913 cat >> confdefs.h
<<\EOF
2914 #define HAVE_SUBTRACT_LOCAL_LABELS 1
2920 ### End of automated tests.
2921 ### Now run sysdeps configure fragments.
2923 # sysdeps configure fragments may set these with files to be linked below.
2927 # They also can set these variables.
2928 ldd_rewrite_script
=no
2930 # Iterate over all the sysdep directories we will use, running their
2931 # configure fragments, and looking for a uname implementation.
2933 for dir
in $sysnames; do
2936 *) dest
=$srcdir/$dir ;;
2938 if test -r $dest/configure
; then
2939 echo "$ac_t""running configure fragment for $dest" 1>&6
2943 if test -z "$uname"; then
2944 if test -r $dest/uname.c ||
2945 test -r $dest/uname.S ||
2946 { test -r $dest/syscalls.list
&&
2947 grep '^uname[ ]' $dest/syscalls.list
>/dev
/null
; }; then
2955 # If we will use the generic uname implementation, we must figure out what
2956 # it will say by examining the system, and write the results in config-name.h.
2957 if test "$uname" = "sysdeps/generic"; then
2959 uname_sysname
=`echo $config_os | sed 's/[0-9.]*$//'`
2960 if test $uname_sysname != $config_os; then
2961 config_release
=`echo $config_os | sed s/$uname_sysname//`
2964 echo $ac_n "checking OS release for uname""... $ac_c" 1>&6
2965 echo "configure:2966: checking OS release for uname" >&5
2966 if eval "test \"\${libc_cv_uname_release+set}\" = set"; then
2967 echo $ac_n "(cached) $ac_c" 1>&6
2969 kernel_release
=`echo "$kernel_id" | sed 's/^[^0-9.]*\([0-9.]*\).*$/\1/'`
2970 if test x
`echo "$config_release" | sed "s/^$kernel_release//"` \
2971 != x
$config_release; then
2972 # The configuration release is a substring of the kernel release.
2973 libc_cv_uname_release
=$kernel_release
2974 elif test x
$config_release != x
; then
2975 libc_cv_uname_release
=$config_release
2976 elif test x
$kernel_release != x
; then
2977 libc_cv_uname_release
=$kernel_release
2979 libc_cv_uname_release
=unknown
2983 echo "$ac_t""$libc_cv_uname_release" 1>&6
2984 uname_release
="$libc_cv_uname_release"
2986 echo $ac_n "checking OS version for uname""... $ac_c" 1>&6
2987 echo "configure:2988: checking OS version for uname" >&5
2988 if eval "test \"\${libc_cv_uname_version+set}\" = set"; then
2989 echo $ac_n "(cached) $ac_c" 1>&6
2991 kernel_version
=`echo "$kernel_id" | sed 's/^[^#]*#\([0-9]*\).*$/\1/'`
2992 if test -n "$kernel_version"; then
2993 libc_cv_uname_version
="$kernel_version"
2995 libc_cv_uname_version
=unknown
2999 echo "$ac_t""$libc_cv_uname_version" 1>&6
3000 uname_version
="$libc_cv_uname_version"
3002 config_uname
=config-name.h
:config-name.
in
3004 # For non-generic uname, we don't need to create config-name.h at all.
3008 echo $ac_n "checking stdio selection""... $ac_c" 1>&6
3009 echo "configure:3010: checking stdio selection" >&5
3012 libio
) cat >> confdefs.h
<<\EOF
3013 #define USE_IN_LIBIO 1
3016 default
) stdio
=stdio
;;
3018 echo "$ac_t""$stdio" 1>&6
3020 # Test for old glibc 2.0.x headers so that they can be removed properly
3021 # Search only in includedir.
3022 echo $ac_n "checking for old glibc 2.0.x headers""... $ac_c" 1>&6
3023 echo "configure:3024: checking for old glibc 2.0.x headers" >&5
3024 if eval test -f "${includedir}/elfclass.h" -a -f "${includedir}/fcntlbits.h"
3026 old_glibc_headers
=yes
3028 old_glibc_headers
=no
3030 echo "$ac_t""$old_glibc_headers" 1>&6
3031 if test ${old_glibc_headers} = yes; then
3032 echo "configure: warning: *** During \"make install\" old headers from glibc 2.0.x will" 1>&2
3033 echo "configure: warning: *** be removed." 1>&2
3045 if test $gnu_ld = yes; then
3046 cat >> confdefs.h
<<\EOF
3047 #define HAVE_GNU_LD 1
3051 if test $gnu_as = yes; then
3052 cat >> confdefs.h
<<\EOF
3053 #define HAVE_GNU_AS 1
3057 if test $elf = yes; then
3058 cat >> confdefs.h
<<\EOF
3066 if test $shared = default
; then
3067 if test $gnu_ld = yes; then
3070 # For now we do not assume shared libs are available. In future more
3071 # tests might become available.
3076 echo $ac_n "checking whether -fPIC is default""... $ac_c" 1>&6
3077 echo "configure:3078: checking whether -fPIC is default" >&5
3078 if eval "test \"\${pic_default+set}\" = set"; then
3079 echo $ac_n "(cached) $ac_c" 1>&6
3082 cat > conftest.c
<<EOF
3083 #if defined __PIC__ || defined __pic__ || defined PIC || defined pic
3084 # error PIC is default.
3087 if eval "${CC-cc} -S conftest.c 2>&5 1>&5"; then
3093 echo "$ac_t""$pic_default" 1>&6
3105 *door
*) linux_doors
=yes ;;
3106 *) linux_doors
=no
;;
3110 if test "`(cd $srcdir; pwd)`" = "`pwd`"; then
3113 config_makefile
=Makefile
3116 VERSION
=`sed -n -e 's/^#define VERSION "\([^"]*\)"/\1/p' < $srcdir/version.h`
3117 RELEASE
=`sed -n -e 's/^#define RELEASE "\([^"]*\)"/\1/p' < $srcdir/version.h`
3121 echo '*** Do NOT install this release on any production system!'
3122 echo '*** It is known to be broken and will be so for quite some time.'
3123 echo '*** Use the latest released version instead.'
3126 cat > confcache
<<\EOF
3127 # This file is a shell script that caches the results of configure
3128 # tests run on this system so they can be shared between configure
3129 # scripts and configure runs. It is not useful on other systems.
3130 # If it contains results you don't want to keep, you may remove or edit it.
3132 # By default, configure uses ./config.cache as the cache file,
3133 # creating it if it does not exist already. You can give configure
3134 # the --cache-file=FILE option to use a different cache file; that is
3135 # what configure does when it calls configure scripts in
3136 # subdirectories, so they share the cache.
3137 # Giving --cache-file=/dev/null disables caching, for debugging configure.
3138 # config.status only pays attention to the cache file if you give it the
3139 # --recheck option to rerun configure.
3142 # The following way of writing the cache mishandles newlines in values,
3143 # but we know of no workaround that is simple, portable, and efficient.
3144 # So, don't put newlines in cache variables' values.
3145 # Ultrix sh set writes to stderr and can't be redirected directly,
3146 # and sets the high bit in the cache file unless we assign to the vars.
3148 case `(ac_space=' '; set | grep ac_space) 2>&1` in
3150 # `set' does not quote correctly, so add quotes (double-quote substitution
3151 # turns \\\\ into \\, and sed turns \\ into \).
3153 -e "s/'/'\\\\''/g" \
3154 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
3157 # `set' quotes correctly as required by POSIX, so do not add quotes.
3158 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
3161 if cmp -s $cache_file confcache
; then
3164 if test -w $cache_file; then
3165 echo "updating cache $cache_file"
3166 cat confcache
> $cache_file
3168 echo "not updating unwritable cache $cache_file"
3173 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
3175 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
3176 # Let make expand exec_prefix.
3177 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
3179 # Any assignment to VPATH causes Sun make to only execute
3180 # the first set of double-colon rules, so remove it if not needed.
3181 # If there is a colon in the path, we need to keep it.
3182 if test "x$srcdir" = x.
; then
3183 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
3186 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
3188 DEFS
=-DHAVE_CONFIG_H
3190 # Without the "./", some shells look in PATH for config.status.
3191 : ${CONFIG_STATUS=./config.status}
3193 echo creating
$CONFIG_STATUS
3194 rm -f $CONFIG_STATUS
3195 cat > $CONFIG_STATUS <<EOF
3197 # Generated automatically by configure.
3198 # Run this file to recreate the current configuration.
3199 # This directory was configured as follows,
3200 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
3202 # $0 $ac_configure_args
3204 # Compiler output produced by configure, useful for debugging
3205 # configure, is in ./config.log if it exists.
3207 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
3210 case "\$ac_option" in
3211 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3212 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
3213 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
3214 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
3215 echo "$CONFIG_STATUS generated by autoconf version 2.14.1"
3217 -help | --help | --hel | --he | --h)
3218 echo "\$ac_cs_usage"; exit 0 ;;
3219 *) echo "\$ac_cs_usage"; exit 1 ;;
3223 ac_given_srcdir=$srcdir
3224 ac_given_INSTALL="$INSTALL"
3226 trap 'rm -fr `echo "config.make glibcbug ${config_makefile} ${config_uname} config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
3228 cat >> $CONFIG_STATUS <<EOF
3230 # Protect against being on the right side of a sed subst in config.status.
3231 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
3232 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
3236 s%@CFLAGS@%$CFLAGS%g
3237 s%@CPPFLAGS@%$CPPFLAGS%g
3238 s%@CXXFLAGS@%$CXXFLAGS%g
3239 s%@FFLAGS@%$FFLAGS%g
3241 s%@LDFLAGS@%$LDFLAGS%g
3243 s%@exec_prefix@%$exec_prefix%g
3244 s%@prefix@%$prefix%g
3245 s%@program_transform_name@%$program_transform_name%g
3246 s%@bindir@%$bindir%g
3247 s%@sbindir@%$sbindir%g
3248 s%@libexecdir@%$libexecdir%g
3249 s%@datadir@%$datadir%g
3250 s%@sysconfdir@%$sysconfdir%g
3251 s%@sharedstatedir@%$sharedstatedir%g
3252 s%@localstatedir@%$localstatedir%g
3253 s%@libdir@%$libdir%g
3254 s%@includedir@%$includedir%g
3255 s%@oldincludedir@%$oldincludedir%g
3256 s%@infodir@%$infodir%g
3257 s%@mandir@%$mandir%g
3258 s%@with_cvs@%$with_cvs%g
3259 s%@subdirs@%$subdirs%g
3260 s%@force_install@%$force_install%g
3262 s%@host_alias@%$host_alias%g
3263 s%@host_cpu@%$host_cpu%g
3264 s%@host_vendor@%$host_vendor%g
3265 s%@host_os@%$host_os%g
3266 s%@base_machine@%$base_machine%g
3267 s%@sysnames@%$sysnames%g
3268 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
3269 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
3270 s%@INSTALL_DATA@%$INSTALL_DATA%g
3273 s%@build_alias@%$build_alias%g
3274 s%@build_cpu@%$build_cpu%g
3275 s%@build_vendor@%$build_vendor%g
3276 s%@build_os@%$build_os%g
3279 s%@MSGFMT@%$MSGFMT%g
3280 s%@MAKEINFO@%$MAKEINFO%g
3281 s%@cross_linkable@%$cross_linkable%g
3282 s%@BUILD_CC@%$BUILD_CC%g
3283 s%@cross_compiling@%$cross_compiling%g
3286 s%@RANLIB@%$RANLIB%g
3288 s%@SYSINCLUDES@%$SYSINCLUDES%g
3290 s%@libc_cv_have_bash2@%$libc_cv_have_bash2%g
3292 s%@libc_cv_have_ksh@%$libc_cv_have_ksh%g
3295 s%@INSTALL_INFO@%$INSTALL_INFO%g
3296 s%@OLD_DEBIAN_INSTALL_INFO@%$OLD_DEBIAN_INSTALL_INFO%g
3297 s%@VERSIONING@%$VERSIONING%g
3298 s%@libc_cv_have_initfini@%$libc_cv_have_initfini%g
3299 s%@no_whole_archive@%$no_whole_archive%g
3300 s%@exceptions@%$exceptions%g
3301 s%@uname_sysname@%$uname_sysname%g
3302 s%@uname_release@%$uname_release%g
3303 s%@uname_version@%$uname_version%g
3305 s%@old_glibc_headers@%$old_glibc_headers%g
3306 s%@libc_cv_slibdir@%$libc_cv_slibdir%g
3307 s%@libc_cv_sysconfdir@%$libc_cv_sysconfdir%g
3308 s%@libc_cv_rootsbindir@%$libc_cv_rootsbindir%g
3309 s%@has_ldconfig@%$has_ldconfig%g
3310 s%@ldd_rewrite_script@%$ldd_rewrite_script%g
3311 s%@gnu_ld@%$gnu_ld%g
3312 s%@gnu_as@%$gnu_as%g
3314 s%@static@%$static%g
3315 s%@shared@%$shared%g
3316 s%@pic_default@%$pic_default%g
3317 s%@profile@%$profile%g
3318 s%@omitfp@%$omitfp%g
3319 s%@bounded@%$bounded%g
3320 s%@static_nss@%$static_nss%g
3321 s%@nopic_initfini@%$nopic_initfini%g
3322 s%@DEFINES@%$DEFINES%g
3323 s%@linux_doors@%$linux_doors%g
3324 s%@VERSION@%$VERSION%g
3325 s%@RELEASE@%$RELEASE%g
3330 cat >> $CONFIG_STATUS <<\EOF
3332 # Split the substitutions into bite-sized pieces for seds with
3333 # small command number limits, like on Digital OSF/1 and HP-UX.
3334 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
3335 ac_file
=1 # Number of current file.
3336 ac_beg
=1 # First line for current file.
3337 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
3340 while $ac_more_lines; do
3341 if test $ac_beg -gt 1; then
3342 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
3344 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
3346 if test ! -s conftest.s
$ac_file; then
3348 rm -f conftest.s
$ac_file
3350 if test -z "$ac_sed_cmds"; then
3351 ac_sed_cmds
="sed -f conftest.s$ac_file"
3353 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
3355 ac_file
=`expr $ac_file + 1`
3357 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
3360 if test -z "$ac_sed_cmds"; then
3365 cat >> $CONFIG_STATUS <<EOF
3367 CONFIG_FILES=\${CONFIG_FILES-"config.make glibcbug ${config_makefile} ${config_uname}"}
3369 cat >> $CONFIG_STATUS <<\EOF
3370 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
3371 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3373 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
3374 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
3375 *) ac_file_in
="${ac_file}.in" ;;
3378 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
3380 # Remove last slash and all that follows it. Not all systems have dirname.
3381 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3382 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
3383 # The file is in a subdirectory.
3384 test ! -d "$ac_dir" && mkdir
"$ac_dir"
3385 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
3386 # A "../" for each directory in $ac_dir_suffix.
3387 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
3389 ac_dir_suffix
= ac_dots
=
3392 case "$ac_given_srcdir" in
3394 if test -z "$ac_dots"; then top_srcdir
=.
3395 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
3396 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
3398 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
3399 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
3402 case "$ac_given_INSTALL" in
3403 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
3404 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
3407 echo creating
"$ac_file"
3409 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
3411 *Makefile
*) ac_comsub
="1i\\
3412 # $configure_input" ;;
3416 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3418 s%@configure_input@%$configure_input%g
3419 s%@srcdir@%$srcdir%g
3420 s%@top_srcdir@%$top_srcdir%g
3421 s%@INSTALL@%$INSTALL%g
3422 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
3426 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
3427 # NAME is the cpp macro being defined and VALUE is the value it is being given.
3429 # ac_d sets the value in "#define NAME VALUE" lines.
3430 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
3431 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
3434 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
3435 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3436 ac_uB
='\([ ]\)%\1#\2define\3'
3439 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
3440 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3441 ac_eB
='$%\1#\2define\3'
3445 if test "${CONFIG_HEADERS+set}" != set; then
3447 cat >> $CONFIG_STATUS <<EOF
3448 CONFIG_HEADERS="config.h"
3450 cat >> $CONFIG_STATUS <<\EOF
3452 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
3453 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3455 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
3456 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
3457 *) ac_file_in
="${ac_file}.in" ;;
3460 echo creating
$ac_file
3462 rm -f conftest.frag conftest.
in conftest.out
3463 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3464 cat $ac_file_inputs > conftest.
in
3468 # Transform confdefs.h into a sed script conftest.vals that substitutes
3469 # the proper values into config.h.in to produce config.h. And first:
3470 # Protect against being on the right side of a sed subst in config.status.
3471 # Protect against being in an unquoted here document in config.status.
3473 cat > conftest.hdr
<<\EOF
3476 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
3480 sed -n -f conftest.hdr confdefs.h > conftest.vals
3483 # This sed command replaces #undef with comments. This is necessary, for
3484 # example, in the case of _POSIX_SOURCE, which is predefined and required
3485 # on some systems where configure will not decide to define it.
3486 cat >> conftest.vals <<\EOF
3487 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
3490 # Break up conftest.vals because some shells have a limit on
3491 # the size of here documents, and old seds have small limits too.
3496 ac_lines=`grep -c . conftest.vals
`
3497 # grep -c gives empty output for an empty file on some AIX systems.
3498 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
3499 # Write a limited-size here document to conftest.frag.
3500 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
3501 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
3503 sed -f conftest.frag conftest.in > conftest.out
3505 mv conftest.out conftest.in
3507 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
3509 mv conftest.tail conftest.vals
3513 cat >> $CONFIG_STATUS <<\EOF
3514 rm -f conftest.frag conftest.h
3515 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
3516 cat conftest.in >> conftest.h
3518 if cmp -s $ac_file conftest.h 2>/dev/null; then
3519 echo "$ac_file is unchanged"
3522 # Remove last slash and all that follows it. Not all systems have dirname.
3523 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
3524 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3525 # The file is in a subdirectory.
3526 test ! -d "$ac_dir" && mkdir "$ac_dir"
3529 mv conftest.h $ac_file
3535 cat >> $CONFIG_STATUS <<EOF
3536 ac_sources="`echo $libc_link_sources`"
3537 ac_dests="`echo $libc_link_dests`"
3540 cat >> $CONFIG_STATUS <<\EOF
3541 srcdir=$ac_given_srcdir
3542 while test -n "$ac_sources"; do
3543 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
3544 set $ac_sources; ac_source=$1; shift; ac_sources=$*
3546 echo "linking $srcdir/$ac_source to $ac_dest"
3548 if test ! -r $srcdir/$ac_source; then
3549 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
3553 # Make relative symlinks.
3554 # Remove last slash and all that follows it. Not all systems have dirname.
3555 ac_dest_dir=`echo $ac_dest|
sed 's%/[^/][^/]*$%%'`
3556 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
3557 # The dest file is in a subdirectory.
3558 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
3559 ac_dest_dir_suffix="/`echo $ac_dest_dir|
sed 's%^\./%%'`"
3560 # A "../" for each directory in $ac_dest_dir_suffix.
3561 ac_dots=`echo $ac_dest_dir_suffix|
sed 's%/[^/]*%../%g'`
3563 ac_dest_dir_suffix= ac_dots=
3567 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
3568 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
3571 # Make a symlink if possible; otherwise try a hard link.
3572 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
3573 ln $srcdir/$ac_source $ac_dest; then :
3575 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
3579 cat >> $CONFIG_STATUS <<EOF
3580 config_vars='$config_vars'
3582 cat >> $CONFIG_STATUS <<\EOF
3584 case $CONFIG_FILES in *config.make*)
3585 echo "$config_vars" >> config.make;;
3587 test -d bits || mkdir bits
3590 chmod +x $CONFIG_STATUS
3591 rm -fr confdefs* $ac_clean_files
3592 test "$no_create" = yes || $SHELL $CONFIG_STATUS || exit 1
3594 if test "$no_recursion" != yes; then
3596 # Remove --cache-file and --srcdir arguments so they do not pile up.
3597 ac_sub_configure_args=
3599 for ac_arg in $ac_configure_args; do
3600 if test -n "$ac_prev"; then
3605 -cache-file | --cache-file | --cache-fil | --cache-fi \
3606 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
3607 ac_prev=cache_file ;;
3608 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
3609 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
3611 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
3613 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
3615 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
3619 for ac_config_dir in $add_ons; do
3621 # Do not complain, so a configure script can configure whichever
3622 # parts of a large source tree are present.
3623 if test ! -d $srcdir/$ac_config_dir; then
3627 echo configuring in $ac_config_dir
3632 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
3634 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
3642 # A "../" for each directory in /$ac_config_dir.
3643 ac_dots=`echo $ac_config_dir|
sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
3646 .) # No --srcdir option. We are building in place.
3647 ac_sub_srcdir=$srcdir ;;
3648 /*) # Absolute path.
3649 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
3651 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
3654 # Check for guested configure; otherwise get Cygnus style configure.
3655 if test -f $ac_sub_srcdir/configure; then
3656 ac_sub_configure="$SHELL $ac_sub_srcdir/configure"
3657 elif test -f $ac_sub_srcdir/configure.in; then
3658 ac_sub_configure=$ac_configure
3660 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
3664 # The recursion is here.
3665 if test -n "$ac_sub_configure"; then
3667 # Make the cache file name correct relative to the subdirectory.
3668 case "$cache_file" in
3669 /*) ac_sub_cache_file=$cache_file ;;
3671 ac_sub_cache_file="$ac_dots$cache_file" ;;
3673 case "$ac_given_INSTALL" in
3674 [/$]*) INSTALL="$ac_given_INSTALL" ;;
3675 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
3678 echo "running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
3679 # The eval makes quoting arguments work.
3680 if eval $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
3683 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }