3 # From configure.in CVSid
14 # Guess values for system-dependent variables and create Makefiles.
15 # Generated automatically using autoconf version 2.13
16 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
18 # This configure script is free software; the Free Software Foundation
19 # gives unlimited permission to copy, distribute and modify it.
23 ac_default_prefix
=/usr
/local
24 # Any additions from configure.in:
26 --with-gmp=DIRECTORY find GMP source code in DIRECTORY (not needed)"
28 --with-gd=DIR find libgd include dir and library with prefix DIR"
30 --with-gd-include=DIR find libgd include files in DIR"
32 --with-gd-lib=DIR find libgd library files in DIR"
34 --with-fp if using floating-point hardware [default=yes]"
36 --with-binutils=PATH specify location of binutils (as and ld)"
38 --with-elf if using the ELF object format"
40 --with-xcoff if using the XCOFF object format"
42 --without-cvs if CVS should not be used"
44 --with-headers=PATH location of system headers to use
45 [e.g. /usr/src/linux/include]
46 [default=compiler default]"
48 --disable-sanity-checks really do not use threads (should not be used
49 except in special situations) [default=yes]"
51 --enable-shared build shared library [default=yes if GNU ld & ELF]"
53 --enable-profile build profiled library [default=yes]"
55 --enable-omitfp build undebuggable optimized library [default=no]"
57 --enable-bounded build with runtime bounds checking [default=no]"
59 --disable-versioning do not include versioning information in the
60 library objects [default=yes if supported]"
62 --enable-oldest-abi=ABI configure the oldest ABI supported [e.g. 2.2]
63 [default=glibc default]"
65 --enable-add-ons[=DIR1,DIR2]...
66 configure and build add-ons in DIR1,DIR2,...
67 search for add-ons if no parameter given"
69 --with-tls enable support for TLS"
71 --enable-static-nss build static NSS modules [default=no]"
73 --disable-force-install don't force installation of files from this package,
74 even if they are older than the installed files"
76 --enable-kernel=VERSION compile for compatibility with kernel not older
79 --enable-all-warnings enable all useful warnings gcc can issue"
81 # Initialize some variables set by options.
82 # The variables have the same names as the options, with
83 # dashes changed to underlines.
85 cache_file
=.
/config.cache
94 program_transform_name
=s
,x
,x
,
102 bindir
='${exec_prefix}/bin'
103 sbindir
='${exec_prefix}/sbin'
104 libexecdir
='${exec_prefix}/libexec'
105 datadir
='${prefix}/share'
106 sysconfdir
='${prefix}/etc'
107 sharedstatedir
='${prefix}/com'
108 localstatedir
='${prefix}/var'
109 libdir
='${exec_prefix}/lib'
110 includedir
='${prefix}/include'
111 oldincludedir
='/usr/include'
112 infodir
='${prefix}/info'
113 mandir
='${prefix}/man'
115 # Initialize some other variables.
118 SHELL
=${CONFIG_SHELL-/bin/sh}
119 # Maximum number of lines to put in a shell here document.
126 # If the previous option needs an argument, assign it.
127 if test -n "$ac_prev"; then
128 eval "$ac_prev=\$ac_option"
134 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
138 # Accept the important Cygnus configure options, so we can diagnose typos.
142 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
144 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
145 bindir
="$ac_optarg" ;;
147 -build |
--build |
--buil |
--bui |
--bu)
149 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
150 build
="$ac_optarg" ;;
152 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
153 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
154 ac_prev
=cache_file
;;
155 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
156 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
157 cache_file
="$ac_optarg" ;;
159 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
161 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
163 datadir
="$ac_optarg" ;;
165 -disable-* |
--disable-*)
166 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
167 # Reject names that are not valid shell variable names.
168 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
169 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
171 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
172 eval "enable_${ac_feature}=no" ;;
174 -enable-* |
--enable-*)
175 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
176 # Reject names that are not valid shell variable names.
177 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
178 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
180 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
185 eval "enable_${ac_feature}='$ac_optarg'" ;;
187 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
188 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
189 |
--exec |
--exe |
--ex)
190 ac_prev
=exec_prefix
;;
191 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
192 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
193 |
--exec=* |
--exe=* |
--ex=*)
194 exec_prefix
="$ac_optarg" ;;
196 -gas |
--gas |
--ga |
--g)
197 # Obsolete; use --with-gas.
200 -help |
--help |
--hel |
--he)
201 # Omit some internal or obsolete options to make the list less imposing.
202 # This message is too long to be a string in the A/UX 3.1 sh.
204 Usage: configure [options] [host]
205 Options: [defaults in brackets after descriptions]
207 --cache-file=FILE cache test results in FILE
208 --help print this message
209 --no-create do not create output files
210 --quiet, --silent do not print \`checking...' messages
211 --version print the version of autoconf that created configure
212 Directory and file names:
213 --prefix=PREFIX install architecture-independent files in PREFIX
215 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
217 --bindir=DIR user executables in DIR [EPREFIX/bin]
218 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
219 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
220 --datadir=DIR read-only architecture-independent data in DIR
222 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
223 --sharedstatedir=DIR modifiable architecture-independent data in DIR
225 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
226 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
227 --includedir=DIR C header files in DIR [PREFIX/include]
228 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
229 --infodir=DIR info documentation in DIR [PREFIX/info]
230 --mandir=DIR man documentation in DIR [PREFIX/man]
231 --srcdir=DIR find the sources in DIR [configure dir or ..]
232 --program-prefix=PREFIX prepend PREFIX to installed program names
233 --program-suffix=SUFFIX append SUFFIX to installed program names
234 --program-transform-name=PROGRAM
235 run sed PROGRAM on installed program names
239 --build=BUILD configure for building on BUILD [BUILD=HOST]
240 --host=HOST configure for HOST [guessed]
241 --target=TARGET configure for TARGET [TARGET=HOST]
242 Features and packages:
243 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
244 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
245 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
246 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
247 --x-includes=DIR X include files are in DIR
248 --x-libraries=DIR X library files are in DIR
250 if test -n "$ac_help"; then
251 echo "--enable and --with options recognized:$ac_help"
255 -host |
--host |
--hos |
--ho)
257 -host=* |
--host=* |
--hos=* |
--ho=*)
260 -includedir |
--includedir |
--includedi |
--included |
--include \
261 |
--includ |
--inclu |
--incl |
--inc)
262 ac_prev
=includedir
;;
263 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
264 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
265 includedir
="$ac_optarg" ;;
267 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
269 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
270 infodir
="$ac_optarg" ;;
272 -libdir |
--libdir |
--libdi |
--libd)
274 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
275 libdir
="$ac_optarg" ;;
277 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
278 |
--libexe |
--libex |
--libe)
279 ac_prev
=libexecdir
;;
280 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
281 |
--libexe=* |
--libex=* |
--libe=*)
282 libexecdir
="$ac_optarg" ;;
284 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
285 |
--localstate |
--localstat |
--localsta |
--localst \
286 |
--locals |
--local |
--loca |
--loc |
--lo)
287 ac_prev
=localstatedir
;;
288 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
289 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
290 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
291 localstatedir
="$ac_optarg" ;;
293 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
295 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
296 mandir
="$ac_optarg" ;;
299 # Obsolete; use --without-fp.
302 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
306 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
307 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
310 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
311 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
312 |
--oldin |
--oldi |
--old |
--ol |
--o)
313 ac_prev
=oldincludedir
;;
314 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
315 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
316 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
317 oldincludedir
="$ac_optarg" ;;
319 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
321 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
322 prefix
="$ac_optarg" ;;
324 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
325 |
--program-pre |
--program-pr |
--program-p)
326 ac_prev
=program_prefix
;;
327 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
328 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
329 program_prefix
="$ac_optarg" ;;
331 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
332 |
--program-suf |
--program-su |
--program-s)
333 ac_prev
=program_suffix
;;
334 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
335 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
336 program_suffix
="$ac_optarg" ;;
338 -program-transform-name |
--program-transform-name \
339 |
--program-transform-nam |
--program-transform-na \
340 |
--program-transform-n |
--program-transform- \
341 |
--program-transform |
--program-transfor \
342 |
--program-transfo |
--program-transf \
343 |
--program-trans |
--program-tran \
344 |
--progr-tra |
--program-tr |
--program-t)
345 ac_prev
=program_transform_name
;;
346 -program-transform-name=* |
--program-transform-name=* \
347 |
--program-transform-nam=* |
--program-transform-na=* \
348 |
--program-transform-n=* |
--program-transform-=* \
349 |
--program-transform=* |
--program-transfor=* \
350 |
--program-transfo=* |
--program-transf=* \
351 |
--program-trans=* |
--program-tran=* \
352 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
353 program_transform_name
="$ac_optarg" ;;
355 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
356 |
-silent |
--silent |
--silen |
--sile |
--sil)
359 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
361 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
363 sbindir
="$ac_optarg" ;;
365 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
366 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
367 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
369 ac_prev
=sharedstatedir
;;
370 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
371 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
372 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
374 sharedstatedir
="$ac_optarg" ;;
376 -site |
--site |
--sit)
378 -site=* |
--site=* |
--sit=*)
381 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
383 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
384 srcdir
="$ac_optarg" ;;
386 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
387 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
388 ac_prev
=sysconfdir
;;
389 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
390 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
391 sysconfdir
="$ac_optarg" ;;
393 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
395 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
396 target
="$ac_optarg" ;;
398 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
401 -version |
--version |
--versio |
--versi |
--vers)
402 echo "configure generated by autoconf version 2.13"
406 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
407 # Reject names that are not valid shell variable names.
408 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
409 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
411 ac_package
=`echo $ac_package| sed 's/-/_/g'`
416 eval "with_${ac_package}='$ac_optarg'" ;;
418 -without-* |
--without-*)
419 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
420 # Reject names that are not valid shell variable names.
421 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
422 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
424 ac_package
=`echo $ac_package| sed 's/-/_/g'`
425 eval "with_${ac_package}=no" ;;
428 # Obsolete; use --with-x.
431 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
432 |
--x-incl |
--x-inc |
--x-in |
--x-i)
433 ac_prev
=x_includes
;;
434 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
435 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
436 x_includes
="$ac_optarg" ;;
438 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
439 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
440 ac_prev
=x_libraries
;;
441 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
442 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
443 x_libraries
="$ac_optarg" ;;
445 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
449 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
450 echo "configure: warning: $ac_option: invalid host type" 1>&2
452 if test "x$nonopt" != xNONE
; then
453 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
461 if test -n "$ac_prev"; then
462 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
465 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
467 # File descriptor usage:
470 # 2 errors and warnings
471 # 3 some systems may open it to /dev/tty
472 # 4 used on the Kubota Titan
473 # 6 checking for... messages and results
474 # 5 compiler messages saved in config.log
475 if test "$silent" = yes; then
483 This file contains any messages produced by compilers while
484 running configure, to aid debugging if configure makes a mistake.
487 # Strip out --no-create and --no-recursion so they do not pile up.
488 # Also quote any args containing shell metacharacters.
493 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
494 |
--no-cr |
--no-c) ;;
495 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
496 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
497 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
498 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
499 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
504 # Only set these to C if already set. These must not be set unconditionally
505 # because not all systems understand e.g. LANG=C (notably SCO).
506 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
507 # Non-C LC_CTYPE values break the ctype check.
508 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
509 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
510 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
511 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
513 # confdefs.h avoids OS command line length limits that DEFS can exceed.
514 rm -rf conftest
* confdefs.h
515 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
518 # A filename unique to this package, relative to the directory that
519 # configure is in, which we can look for to find out if srcdir is correct.
520 ac_unique_file
=include
/features.h
522 # Find the source files, if location was not specified.
523 if test -z "$srcdir"; then
524 ac_srcdir_defaulted
=yes
525 # Try the directory containing this script, then its parent.
527 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
528 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
530 if test ! -r $srcdir/$ac_unique_file; then
534 ac_srcdir_defaulted
=no
536 if test ! -r $srcdir/$ac_unique_file; then
537 if test "$ac_srcdir_defaulted" = yes; then
538 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
540 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
543 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
545 # Prefer explicitly selected file to automatically selected ones.
546 if test -z "$CONFIG_SITE"; then
547 if test "x$prefix" != xNONE
; then
548 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
550 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
553 for ac_site_file
in $CONFIG_SITE; do
554 if test -r "$ac_site_file"; then
555 echo "loading site script $ac_site_file"
560 if test -r "$cache_file"; then
561 echo "loading cache $cache_file"
564 echo "creating cache $cache_file"
569 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
570 ac_cpp
='$CPP $CPPFLAGS'
571 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
572 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
573 cross_compiling
=$ac_cv_prog_cc_cross
577 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
578 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
579 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
586 ac_n
= ac_c
='\c' ac_t
=
589 if test -r /vmunix
; then
590 kernel_id
=`strings /vmunix | grep UNIX`
591 elif test -r /dynix
; then
592 kernel_id
=`strings /dynix | grep DYNIX`
600 for ac_dir
in scripts
$srcdir/scripts
; do
601 if test -f $ac_dir/install-sh
; then
603 ac_install_sh
="$ac_aux_dir/install-sh -c"
605 elif test -f $ac_dir/install.sh
; then
607 ac_install_sh
="$ac_aux_dir/install.sh -c"
611 if test -z "$ac_aux_dir"; then
612 { echo "configure: error: can not find install-sh or install.sh in scripts $srcdir/scripts" 1>&2; exit 1; }
614 ac_config_guess
=$ac_aux_dir/config.guess
615 ac_config_sub
=$ac_aux_dir/config.sub
616 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
619 # This will get text that should go into config.make.
622 # Check for a --with-gmp argument and set gmp-srcdir in config.make.
623 # Check whether --with-gmp or --without-gmp was given.
624 if test "${with_gmp+set}" = set; then
627 yes) { echo "configure: error: --with-gmp requires an argument; use --with-gmp=DIRECTORY" 1>&2; exit 1; } ;;
629 *) config_vars
="$config_vars
630 gmp-srcdir = $withval" ;;
635 # Check for a --with-gd argument and set libgd-LDFLAGS in config.make.
636 # Check whether --with-gd or --without-gd was given.
637 if test "${with_gd+set}" = set; then
641 *) libgd_include
="-I$withval/include"
642 libgd_ldflags
="-L$withval/lib" ;;
647 # Check whether --with-gd-include or --without-gd-include was given.
648 if test "${with_gd_include+set}" = set; then
649 withval
="$with_gd_include"
650 case "$with_gd_include" in
652 *) libgd_include
="-I$withval" ;;
657 # Check whether --with-gd-lib or --without-gd-lib was given.
658 if test "${with_gd_lib+set}" = set; then
659 withval
="$with_gd_lib"
660 case "$with_gd_lib" in
662 *) libgd_ldflags
="-L$withval" ;;
668 if test -n "$libgd_include"; then
669 config_vars
="$config_vars
670 CFLAGS-memusagestat.c = $libgd_include"
672 if test -n "$libgd_ldflags"; then
673 config_vars
="$config_vars
674 libgd-LDFLAGS = $libgd_ldflags"
677 # Check whether --with-fp or --without-fp was given.
678 if test "${with_fp+set}" = set; then
686 # Check whether --with-binutils or --without-binutils was given.
687 if test "${with_binutils+set}" = set; then
688 withval
="$with_binutils"
689 path_binutils
=$withval
694 # Check whether --with-elf or --without-elf was given.
695 if test "${with_elf+set}" = set; then
702 # Check whether --with-xcoff or --without-xcoff was given.
703 if test "${with_xcoff+set}" = set; then
704 withval
="$with_xcoff"
710 # Check whether --with-cvs or --without-cvs was given.
711 if test "${with_cvs+set}" = set; then
718 if test "$with_cvs" = yes; then
719 if test -d $srcdir/CVS
&& grep :pserver
: $srcdir/CVS
/Root
> /dev
/null
726 # Check whether --with-headers or --without-headers was given.
727 if test "${with_headers+set}" = set; then
728 withval
="$with_headers"
735 # Check whether --enable-sanity-checks or --disable-sanity-checks was given.
736 if test "${enable_sanity_checks+set}" = set; then
737 enableval
="$enable_sanity_checks"
738 enable_sanity
=$enableval
745 # Check whether --enable-shared or --disable-shared was given.
746 if test "${enable_shared+set}" = set; then
747 enableval
="$enable_shared"
753 # Check whether --enable-profile or --disable-profile was given.
754 if test "${enable_profile+set}" = set; then
755 enableval
="$enable_profile"
761 # Check whether --enable-omitfp or --disable-omitfp was given.
762 if test "${enable_omitfp+set}" = set; then
763 enableval
="$enable_omitfp"
769 # Check whether --enable-bounded or --disable-bounded was given.
770 if test "${enable_bounded+set}" = set; then
771 enableval
="$enable_bounded"
777 # Check whether --enable-versioning or --disable-versioning was given.
778 if test "${enable_versioning+set}" = set; then
779 enableval
="$enable_versioning"
780 enable_versioning
=$enableval
782 enable_versioning
=yes
786 # Check whether --enable-oldest-abi or --disable-oldest-abi was given.
787 if test "${enable_oldest_abi+set}" = set; then
788 enableval
="$enable_oldest_abi"
789 oldest_abi
=$enableval
794 if test "$oldest_abi" = yes ||
test "$oldest_abi" = no
; then
797 cat >> confdefs.h
<<EOF
798 #define GLIBC_OLDEST_ABI "$oldest_abi"
804 # Check whether --enable-add-ons or --disable-add-ons was given.
805 if test "${enable_add_ons+set}" = set; then
806 enableval
="$enable_add_ons"
808 yes) add_ons
=`cd $srcdir && echo */configure | sed -e 's!/configure!!g'`
809 test "$add_ons" = "*" && add_ons
= ;;
810 *) add_ons
=`echo "$enableval" | sed 's/,/ /g'`;;
817 # Check whether --with-tls or --without-tls was given.
818 if test "${with_tls+set}" = set; then
829 if test x
"$add_ons" != x
; then
830 for f
in $add_ons; do
832 if test "$f" = "crypt"; then
833 { echo "configure: error:
834 *** It seems that you're using an old \`crypt' add-on. crypt is now
835 *** part of glibc and using the old add-on will not work with this
836 *** release. Start again with fresh sources and without the old
837 *** \`crypt' add-on." 1>&2; exit 1; }
839 if test "$f" = "localedata"; then
840 { echo "configure: error:
841 *** It seems that you're using an old \`localedata' add-on. localedata
842 *** is now part of glibc and using the old add-on will not work with
843 *** this release. Start again with fresh sources and without the old
844 *** \`localedata' add-on." 1>&2; exit 1; }
846 # Test whether such a subdir really exists.
847 if test -d $srcdir/$f; then
848 add_ons_pfx
="$add_ons_pfx $f/"
850 { echo "configure: error: add-on directory \"$f\" does not exist" 1>&2; exit 1; }
855 # Check whether --enable-static-nss or --disable-static-nss was given.
856 if test "${enable_static_nss+set}" = set; then
857 enableval
="$enable_static_nss"
858 static_nss
=$enableval
863 if test x
"$static_nss" = xyes ||
test x
"$shared" = xno
; then
865 cat >> confdefs.h
<<\EOF
866 #define DO_STATIC_NSS 1
871 # Check whether --enable-force-install or --disable-force-install was given.
872 if test "${enable_force_install+set}" = set; then
873 enableval
="$enable_force_install"
874 force_install
=$enableval
881 # Check whether --enable-kernel or --disable-kernel was given.
882 if test "${enable_kernel+set}" = set; then
883 enableval
="$enable_kernel"
884 minimum_kernel
=$enableval
887 if test "$minimum_kernel" = yes ||
test "$minimum_kernel" = no
; then
888 # Better nothing than this.
891 if test "$minimum_kernel" = current
; then
892 minimum_kernel
=`uname -r 2>/dev/null` || minimum_kernel
=
896 # Check whether --enable-all-warnings or --disable-all-warnings was given.
897 if test "${enable_all_warnings+set}" = set; then
898 enableval
="$enable_all_warnings"
899 all_warnings
=$enableval
905 # Make sure we can run config.sub.
906 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4
>/dev
/null
2>&1; then :
907 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
910 echo $ac_n "checking host system type""... $ac_c" 1>&6
911 echo "configure:912: checking host system type" >&5
914 case "$host_alias" in
918 if host_alias
=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
919 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
921 *) host_alias
=$nonopt ;;
925 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
926 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
927 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
928 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
929 echo "$ac_t""$host" 1>&6
932 # The way shlib-versions is used to generate soversions.mk uses a
933 # fairly simplistic model for name recognition that can't distinguish
934 # i486-pc-linux-gnu fully from i486-pc-gnu. So we mutate a $host_os
935 # of `gnu*' here to be `gnu-gnu*' just so that shlib-versions can
936 # tell. This doesn't get used much beyond that, so it's fairly safe.
941 host_os
=`echo $host_os | sed -e 's/gnu/gnu-gnu/'`
945 # We keep the original values in `$config_*' and never modify them, so we
946 # can write them unchanged into config.make. Everything else uses
947 # $machine, $vendor, and $os, and changes them whenever convenient.
948 config_machine
=$host_cpu config_vendor
=$host_vendor config_os
=$host_os
950 # Don't allow vendor == "unknown"
951 test "$config_vendor" = unknown
&& config_vendor
=
952 config_os
="`echo $config_os | sed 's/^unknown-//'`"
954 # Some configurations imply other options.
956 gnu
* | linux
* | bsd4.4
* | netbsd
* | freebsd
*)
957 # These systems always use GNU tools.
958 gnu_ld
=yes gnu_as
=yes ;;
961 # i586-linuxaout is mangled into i586-pc-linux-gnuaout
962 linux
*ecoff
* | linux
*aout
* | gnu
*aout
* | gnu
*ecoff
*)
964 gnu
* | linux
* | freebsd
* | netbsd
* | sysv4
* | solaris2
* | irix6
*)
965 # These systems (almost) always use the ELF format.
969 # These systems are always xcoff
975 machine
=$config_machine
976 vendor
=$config_vendor
979 # config.guess on some IBM machines says `rs6000' instead of `powerpc'.
981 if test "$machine" = rs6000
; then
986 ### I put this here to prevent those annoying emails from people who cannot
987 ### read and try to compile glibc on unsupported platforms. --drepper
989 ### By using the undocumented --enable-hacker-mode option for configure
990 ### one can skip this test to make the configuration not fail for unsupported
993 if test -z "$enable_hacker_mode"; then
994 case "$machine-$host_os" in
995 *-linux* |
*-gnu* | arm
*-none* | powerpc-aix4.3.
*)
998 echo "*** The GNU C library is currently not available for this platform."
999 echo "*** So far nobody cared to port it and if there is no volunteer it"
1000 echo "*** might never happen. So, if you have interest to see glibc on"
1001 echo "*** this platform visit"
1002 echo "*** http://www.gnu.org/software/libc/porting.html"
1003 echo "*** and join the group of porters"
1009 # Expand the configuration machine name into a subdirectory by architecture
1010 # type and particular chip.
1012 a29k | am29000
) base_machine
=a29k machine
=a29k
;;
1013 alpha
*) base_machine
=alpha machine
=alpha
/$machine ;;
1014 arm
*) base_machine
=arm machine
=arm
/arm32
/$machine ;;
1015 c3
[012]) base_machine
=cx0 machine
=cx
0/c30
;;
1016 c4
[04]) base_machine
=cx0 machine
=cx
0/c40
;;
1017 hppa
*64*) base_machine
=hppa machine
=hppa
/hppa64
;;
1018 hppa
*) base_machine
=hppa machine
=hppa
/hppa1.1
;;
1019 i
[3456]86) base_machine
=i386 machine
=i386
/$machine ;;
1020 ia64
) base_machine
=ia64 machine
=ia64
;;
1021 m680?
0) base_machine
=m68k machine
=m68k
/$machine ;;
1022 m68k
) base_machine
=m68k machine
=m68k
/m68020
;;
1023 m88???
) base_machine
=m88k machine
=m88k
/$machine ;;
1024 m88k
) base_machine
=m88k machine
=m88k
/m88100
;;
1025 mips64
*) base_machine
=mips64 machine
=mips
/mips64
/$machine ;;
1026 mips
*) base_machine
=mips machine
=mips
/$machine ;;
1027 s390
) base_machine
=s390 machine
=s390
/s390-32
;;
1028 s390x
) base_machine
=s390 machine
=s390
/s390-64
;;
1029 sh3
*) base_machine
=sh machine
=sh
/sh3
;;
1030 sh4
*) base_machine
=sh machine
=sh
/sh4
;;
1032 base_machine
=sparc machine
=sparc
/sparc32
;;
1033 sparcv8 | supersparc | hypersparc
)
1034 base_machine
=sparc machine
=sparc
/sparc32
/sparcv8
;;
1035 sparcv8plus | sparcv8plusa | sparcv9
)
1036 base_machine
=sparc machine
=sparc
/sparc32
/sparcv9
;;
1037 sparcv8plusb | sparcv9b
)
1038 base_machine
=sparc machine
=sparc
/sparc32
/sparcv9b
;;
1039 sparc64 | ultrasparc
)
1040 base_machine
=sparc machine
=sparc
/sparc64
;;
1041 sparc64b | ultrasparc3
)
1042 base_machine
=sparc machine
=sparc
/sparc64
/sparcv9b
;;
1043 thumb
*) base_machine
=thumb machine
=arm
/thumb
/$machine ;;
1044 *) base_machine
=$machine ;;
1048 if test "$base_machine" = "i386"; then
1049 cat >> confdefs.h
<<\EOF
1050 #define USE_REGPARMS 1
1055 # Compute the list of sysdep directories for this configuration.
1056 # This can take a while to compute.
1057 sysdep_dir
=$srcdir/sysdeps
1058 echo $ac_n "checking sysdep dirs""... $ac_c" 1>&6
1059 echo "configure:1060: checking sysdep dirs" >&5
1060 # Make sco3.2v4 become sco3.2.4 and sunos4.1.1_U1 become sunos4.1.1.U1.
1061 os
="`echo $os | sed 's/\([0-9A-Z]\)[v_]\([0-9A-Z]\)/\1.\2/g'`"
1065 base_os
=mach
/hurd
;;
1066 netbsd
* |
386bsd
* | freebsd
* | bsdi
*)
1067 base_os
=unix
/bsd
/bsd4.4
;;
1068 osf
* | sunos
* | ultrix
* | newsos
* | dynix
* |
*bsd
*)
1070 sysv
* | isc
* | esix
* | sco
* | minix
* | irix4
* | linux
*)
1071 base_os
=unix
/sysv
;;
1073 base_os
=unix
/sysv
/irix
6/$os ;;
1075 base_os
=unix
/sysv
/sysv4
;;
1077 base_os
=unix
/sysv
/hpux
/$os ;;
1079 base_os
=unix
/sysv
/aix
/aix4.3
;;
1081 base_os
=standalone
;;
1086 # For sunos4.1.1, try sunos4.1.1, then sunos4.1, then sunos4, then sunos.
1089 while o
=`echo $tail | sed 's/\.[^.]*$//'`; test $o != $tail; do
1093 o
=`echo $tail | sed 's/[0-9]*$//'`
1094 if test $o != $tail; then
1097 # For linux-gnu, try linux-gnu, then linux.
1098 o
=`echo $tail | sed 's/-.*$//'`
1099 if test $o != $tail; then
1103 # For unix/sysv/sysv4, try unix/sysv/sysv4, then unix/sysv, then unix.
1106 while b
=`echo $tail | sed 's@^\(.*\)/\([^/]*\)$@& \1@'`; test -n "$b"; do
1112 # For sparc/sparc32, try sparc/sparc32 and then sparc.
1115 while m
=`echo $tail | sed 's@^\(.*\)/\([^/]*\)$@& \1@'`; test -n "$m"; do
1117 # Prepend the machine's FPU directory unless --without-fp.
1118 if test "$with_fp" = yes; then
1119 mach
="$mach /$1/fpu"
1126 # Find what sysdep directories exist.
1128 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1129 for d
in $add_ons_pfx ''; do
1130 for b
in $base ''; do
1131 for m0
in $mach ''; do
1132 for v
in /$vendor ''; do
1133 test "$v" = / && continue
1134 for o
in /$ostry ''; do
1135 test "$o" = / && continue
1136 for m
in $mach ''; do
1137 if test "$m0$b$v$o$m"; then
1138 try
="${d}sysdeps$m0$b$v$o$m"
1139 test -n "$enable_debug_configure" &&
1140 echo "$0 DEBUG: try $try" >&2
1141 if test -d $srcdir/$try; then
1142 sysnames
="$sysnames $try"
1143 { test -n "$o" ||
test -n "$b"; } && os_used
=t
1144 { test -n "$m" ||
test -n "$m0"; } && machine_used
=t
1155 if test -z "$os_used" && test "$os" != none
; then
1156 { echo "configure: error: Operating system $os is not supported." 1>&2; exit 1; }
1158 if test -z "$machine_used" && test "$machine" != none
; then
1159 { echo "configure: error: The $machine is not supported." 1>&2; exit 1; }
1162 # We have now validated the configuration.
1165 # If using ELF, look for an `elf' subdirectory of each machine directory.
1166 # We prepend these rather than inserting them whereever the machine appears
1167 # because things specified by the machine's ELF ABI should override
1168 # OS-specific things, and should always be the same for any OS on the
1169 # machine (otherwise what's the point of an ABI?).
1170 if test "$elf" = yes; then
1172 for d
in $add_ons_pfx ''; do
1174 if test -d $srcdir/${d}sysdeps
$m/elf
; then
1175 elf_dirs
="$elf_dirs ${d}sysdeps$m/elf"
1179 sysnames
="`echo $elf_dirs | sed -e 's,//,/,g'` $sysnames"
1183 # Expand the list of system names into a full list of directories
1184 # from each element's parent name and Implies file (if present).
1187 while test $# -gt 0; do
1191 case " $names " in *" $name "*)
1192 # Already in the list.
1196 # Report each name as we discover it, so there is no long pause in output.
1197 echo $ac_n "$name $ac_c" >&6
1199 name_base
=`echo $name | sed -e 's@\(.*sysdeps\)/.*@\1@'`
1203 *) xsrcdir
=$srcdir/ ;;
1205 test -n "$enable_debug_configure" &&
1206 echo "DEBUG: name/Implies $xsrcdir$name/Implies" >&2
1208 if test -f $xsrcdir$name/Implies
; then
1209 # Collect more names from the `Implies' file (removing comments).
1210 implied_candidate
="`sed 's/#.*$//' < $xsrcdir$name/Implies`"
1212 for x
in $implied_candidate; do
1214 if test -d $xsrcdir$name_base/$x; then
1215 implied
="$implied $name_base/$x";
1218 for d
in $add_ons_pfx ''; do
1219 try
="${d}sysdeps/$x"
1222 *) try_srcdir
=$srcdir/ ;;
1224 test -n "$enable_debug_configure" &&
1225 echo "DEBUG: $name implied $x try($d) {$try_srcdir}$try" >&2
1226 if test $try != $xsrcdir$name_base/$x && test -d $try_srcdir$try;
1228 implied
="$implied $try"
1232 if test $found = no
; then
1233 echo "configure: warning: $name/Implies specifies nonexistent $x" 1>&2
1240 # Add NAME to the list of names.
1241 names
="$names $name"
1243 # Find the parent of NAME, using the empty string if it has none.
1244 parent
="`echo $name | sed -n -e 's=/[^/]*$==' -e '/sysdeps$/q' -e p`"
1246 # Add the names implied by NAME, and NAME's parent (if it has one), to
1247 # the list of names to be processed (the argument list). We prepend the
1248 # implied names to the list and append the parent. We want implied
1249 # directories to come before further directories inferred from the
1250 # configuration components; this ensures that for sysv4, unix/common
1251 # (implied by unix/sysv/sysv4) comes before unix/sysv (in ostry (here $*)
1253 sysnames
="`echo $implied $* $parent`"
1254 test -n "$sysnames" && set $sysnames
1257 # Add the default directories.
1258 default_sysnames
=sysdeps
/generic
1259 if test "$elf" = yes; then
1260 default_sysnames
="sysdeps/generic/elf $default_sysnames"
1262 sysnames
="$names $default_sysnames"
1264 # The other names were emitted during the scan.
1265 echo "$ac_t""$default_sysnames" 1>&6
1270 # Find a good install program. We prefer a C program (faster),
1271 # so one script is as good as another. But avoid the broken or
1272 # incompatible versions:
1273 # SysV /etc/install, /usr/sbin/install
1274 # SunOS /usr/etc/install
1275 # IRIX /sbin/install
1277 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1278 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1279 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1280 # ./install, which can be erroneously created by make from ./install.sh.
1281 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1282 echo "configure:1283: checking for a BSD compatible install" >&5
1283 if test -z "$INSTALL"; then
1284 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1285 echo $ac_n "(cached) $ac_c" 1>&6
1287 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
=":"
1288 for ac_dir
in $PATH; do
1289 # Account for people who put trailing slashes in PATH elements.
1291 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
1293 # OSF1 and SCO ODT 3.0 have their own names for install.
1294 # Don't use installbsd from OSF since it installs stuff as root
1296 for ac_prog
in ginstall scoinst
install; do
1297 if test -f $ac_dir/$ac_prog; then
1298 if test $ac_prog = install &&
1299 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
1300 # AIX install. It has an incompatible calling convention.
1303 ac_cv_path_install
="$ac_dir/$ac_prog -c"
1314 if test "${ac_cv_path_install+set}" = set; then
1315 INSTALL
="$ac_cv_path_install"
1317 # As a last resort, use the slow shell script. We don't cache a
1318 # path for INSTALL within a source directory, because that will
1319 # break other packages using the cache if that directory is
1320 # removed, or if the path is relative.
1321 INSTALL
="$ac_install_sh"
1324 echo "$ac_t""$INSTALL" 1>&6
1326 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1327 # It thinks the first close brace ends the variable substitution.
1328 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
1330 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
1332 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
1334 if test "$INSTALL" = "${srcdir}/scripts/install-sh -c"; then
1335 # The makefiles need to use a different form to find it in $srcdir.
1336 INSTALL
='\$(..)./scripts/install-sh -c'
1338 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1339 echo "configure:1340: checking whether ln -s works" >&5
1340 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1341 echo $ac_n "(cached) $ac_c" 1>&6
1344 if ln -s X conftestdata
2>/dev
/null
1347 ac_cv_prog_LN_S
="ln -s"
1352 LN_S
="$ac_cv_prog_LN_S"
1353 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1354 echo "$ac_t""yes" 1>&6
1356 echo "$ac_t""no" 1>&6
1360 # We need the physical current working directory. We cannot use the
1361 # "pwd -P" shell builtin since that's not portable. Instead we try to
1362 # find a pwd binary. Note that assigning to the PWD environment
1363 # variable might have some interesting side effects, so we don't do
1365 # Extract the first word of "pwd", so it can be a program name with args.
1366 set dummy
pwd; ac_word
=$2
1367 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1368 echo "configure:1369: checking for $ac_word" >&5
1369 if eval "test \"`echo '$''{'ac_cv_path_PWD_P'+set}'`\" = set"; then
1370 echo $ac_n "(cached) $ac_c" 1>&6
1374 ac_cv_path_PWD_P
="$PWD_P" # Let the user override the test with a path.
1377 ac_cv_path_PWD_P
="$PWD_P" # Let the user override the test with a dos path.
1380 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1382 for ac_dir
in $ac_dummy; do
1383 test -z "$ac_dir" && ac_dir
=.
1384 if test -f $ac_dir/$ac_word; then
1385 ac_cv_path_PWD_P
="$ac_dir/$ac_word"
1390 test -z "$ac_cv_path_PWD_P" && ac_cv_path_PWD_P
="no"
1394 PWD_P
="$ac_cv_path_PWD_P"
1395 if test -n "$PWD_P"; then
1396 echo "$ac_t""$PWD_P" 1>&6
1398 echo "$ac_t""no" 1>&6
1401 if test "$PWD_P" = no
; then
1402 { echo "configure: error: *** A pwd binary could not be found." 1>&2; exit 1; }
1405 # These programs are version sensitive.
1406 echo $ac_n "checking build system type""... $ac_c" 1>&6
1407 echo "configure:1408: checking build system type" >&5
1410 case "$build_alias" in
1413 NONE
) build_alias
=$host_alias ;;
1414 *) build_alias
=$nonopt ;;
1418 build
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1419 build_cpu
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1420 build_vendor
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1421 build_os
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1422 echo "$ac_t""$build" 1>&6
1424 if test $host != $build; then
1425 ac_tool_prefix
=${host_alias}-
1430 for ac_prog
in ${ac_tool_prefix}gcc
${ac_tool_prefix}cc
1432 # Extract the first word of "$ac_prog", so it can be a program name with args.
1433 set dummy
$ac_prog; ac_word
=$2
1434 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1435 echo "configure:1436: checking for $ac_word" >&5
1436 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1437 echo $ac_n "(cached) $ac_c" 1>&6
1439 if test -n "$CC"; then
1440 ac_cv_prog_CC
="$CC" # Let the user override the test.
1442 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1444 for ac_dir
in $ac_dummy; do
1445 test -z "$ac_dir" && ac_dir
=.
1446 if test -f $ac_dir/$ac_word; then
1447 ac_cv_prog_CC
="$ac_prog"
1455 if test -n "$CC"; then
1456 echo "$ac_t""$CC" 1>&6
1458 echo "$ac_t""no" 1>&6
1461 test -n "$CC" && break
1464 if test -z "$CC"; then
1467 # Found it, now check the version.
1468 echo $ac_n "checking version of $CC""... $ac_c" 1>&6
1469 echo "configure:1470: checking version of $CC" >&5
1470 ac_prog_version
=`$CC -v 2>&1 | sed -n 's/^.*version \([egcygnustpi-]*[0-9.]*\).*$/\1/p'`
1471 case $ac_prog_version in
1472 '') ac_prog_version
="v. ?.??, bad"; ac_verc_fail
=yes;;
1474 ac_prog_version
="$ac_prog_version, ok"; ac_verc_fail
=no
;;
1475 *) ac_prog_version
="$ac_prog_version, bad"; ac_verc_fail
=yes;;
1478 echo "$ac_t""$ac_prog_version" 1>&6
1480 if test $ac_verc_fail = yes; then
1481 critic_missing
="$critic_missing gcc"
1484 for ac_prog
in gnumake gmake
make
1486 # Extract the first word of "$ac_prog", so it can be a program name with args.
1487 set dummy
$ac_prog; ac_word
=$2
1488 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1489 echo "configure:1490: checking for $ac_word" >&5
1490 if eval "test \"`echo '$''{'ac_cv_prog_MAKE'+set}'`\" = set"; then
1491 echo $ac_n "(cached) $ac_c" 1>&6
1493 if test -n "$MAKE"; then
1494 ac_cv_prog_MAKE
="$MAKE" # Let the user override the test.
1496 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1498 for ac_dir
in $ac_dummy; do
1499 test -z "$ac_dir" && ac_dir
=.
1500 if test -f $ac_dir/$ac_word; then
1501 ac_cv_prog_MAKE
="$ac_prog"
1508 MAKE
="$ac_cv_prog_MAKE"
1509 if test -n "$MAKE"; then
1510 echo "$ac_t""$MAKE" 1>&6
1512 echo "$ac_t""no" 1>&6
1515 test -n "$MAKE" && break
1518 if test -z "$MAKE"; then
1521 # Found it, now check the version.
1522 echo $ac_n "checking version of $MAKE""... $ac_c" 1>&6
1523 echo "configure:1524: checking version of $MAKE" >&5
1524 ac_prog_version
=`$MAKE --version 2>&1 | sed -n 's/^.*GNU Make[^0-9]*\([0-9][0-9.]*\).*$/\1/p'`
1525 case $ac_prog_version in
1526 '') ac_prog_version
="v. ?.??, bad"; ac_verc_fail
=yes;;
1528 ac_prog_version
="$ac_prog_version, ok"; ac_verc_fail
=no
;;
1529 *) ac_prog_version
="$ac_prog_version, bad"; ac_verc_fail
=yes;;
1532 echo "$ac_t""$ac_prog_version" 1>&6
1534 if test $ac_verc_fail = yes; then
1535 critic_missing
="$critic_missing make"
1540 if test -n "$critic_missing"; then
1541 { echo "configure: error:
1542 *** These critical programs are missing or too old:$critic_missing
1543 *** Check the INSTALL file for required versions." 1>&2; exit 1; }
1547 for ac_prog
in gnumsgfmt gmsgfmt msgfmt
1549 # Extract the first word of "$ac_prog", so it can be a program name with args.
1550 set dummy
$ac_prog; ac_word
=$2
1551 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1552 echo "configure:1553: checking for $ac_word" >&5
1553 if eval "test \"`echo '$''{'ac_cv_prog_MSGFMT'+set}'`\" = set"; then
1554 echo $ac_n "(cached) $ac_c" 1>&6
1556 if test -n "$MSGFMT"; then
1557 ac_cv_prog_MSGFMT
="$MSGFMT" # Let the user override the test.
1559 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1561 for ac_dir
in $ac_dummy; do
1562 test -z "$ac_dir" && ac_dir
=.
1563 if test -f $ac_dir/$ac_word; then
1564 ac_cv_prog_MSGFMT
="$ac_prog"
1571 MSGFMT
="$ac_cv_prog_MSGFMT"
1572 if test -n "$MSGFMT"; then
1573 echo "$ac_t""$MSGFMT" 1>&6
1575 echo "$ac_t""no" 1>&6
1578 test -n "$MSGFMT" && break
1581 if test -z "$MSGFMT"; then
1584 # Found it, now check the version.
1585 echo $ac_n "checking version of $MSGFMT""... $ac_c" 1>&6
1586 echo "configure:1587: checking version of $MSGFMT" >&5
1587 ac_prog_version
=`$MSGFMT --version 2>&1 | sed -n 's/^.*GNU gettext.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
1588 case $ac_prog_version in
1589 '') ac_prog_version
="v. ?.??, bad"; ac_verc_fail
=yes;;
1590 0.10.3[6-9]* |
0.10.
[4-9][0-9]* |
0.1[1-9]* |
0.
[2-9][0-9]* |
[1-9].
*)
1591 ac_prog_version
="$ac_prog_version, ok"; ac_verc_fail
=no
;;
1592 *) ac_prog_version
="$ac_prog_version, bad"; ac_verc_fail
=yes;;
1595 echo "$ac_t""$ac_prog_version" 1>&6
1597 if test $ac_verc_fail = yes; then
1598 MSGFMT
=: aux_missing
="$aux_missing msgfmt"
1601 for ac_prog
in makeinfo
1603 # Extract the first word of "$ac_prog", so it can be a program name with args.
1604 set dummy
$ac_prog; ac_word
=$2
1605 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1606 echo "configure:1607: checking for $ac_word" >&5
1607 if eval "test \"`echo '$''{'ac_cv_prog_MAKEINFO'+set}'`\" = set"; then
1608 echo $ac_n "(cached) $ac_c" 1>&6
1610 if test -n "$MAKEINFO"; then
1611 ac_cv_prog_MAKEINFO
="$MAKEINFO" # Let the user override the test.
1613 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1615 for ac_dir
in $ac_dummy; do
1616 test -z "$ac_dir" && ac_dir
=.
1617 if test -f $ac_dir/$ac_word; then
1618 ac_cv_prog_MAKEINFO
="$ac_prog"
1625 MAKEINFO
="$ac_cv_prog_MAKEINFO"
1626 if test -n "$MAKEINFO"; then
1627 echo "$ac_t""$MAKEINFO" 1>&6
1629 echo "$ac_t""no" 1>&6
1632 test -n "$MAKEINFO" && break
1635 if test -z "$MAKEINFO"; then
1638 # Found it, now check the version.
1639 echo $ac_n "checking version of $MAKEINFO""... $ac_c" 1>&6
1640 echo "configure:1641: checking version of $MAKEINFO" >&5
1641 ac_prog_version
=`$MAKEINFO --version 2>&1 | sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
1642 case $ac_prog_version in
1643 '') ac_prog_version
="v. ?.??, bad"; ac_verc_fail
=yes;;
1645 ac_prog_version
="$ac_prog_version, ok"; ac_verc_fail
=no
;;
1646 *) ac_prog_version
="$ac_prog_version, bad"; ac_verc_fail
=yes;;
1649 echo "$ac_t""$ac_prog_version" 1>&6
1651 if test $ac_verc_fail = yes; then
1652 MAKEINFO
=: aux_missing
="$aux_missing makeinfo"
1657 # Extract the first word of "$ac_prog", so it can be a program name with args.
1658 set dummy
$ac_prog; ac_word
=$2
1659 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1660 echo "configure:1661: checking for $ac_word" >&5
1661 if eval "test \"`echo '$''{'ac_cv_prog_SED'+set}'`\" = set"; then
1662 echo $ac_n "(cached) $ac_c" 1>&6
1664 if test -n "$SED"; then
1665 ac_cv_prog_SED
="$SED" # Let the user override the test.
1667 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1669 for ac_dir
in $ac_dummy; do
1670 test -z "$ac_dir" && ac_dir
=.
1671 if test -f $ac_dir/$ac_word; then
1672 ac_cv_prog_SED
="$ac_prog"
1679 SED
="$ac_cv_prog_SED"
1680 if test -n "$SED"; then
1681 echo "$ac_t""$SED" 1>&6
1683 echo "$ac_t""no" 1>&6
1686 test -n "$SED" && break
1689 if test -z "$SED"; then
1692 # Found it, now check the version.
1693 echo $ac_n "checking version of $SED""... $ac_c" 1>&6
1694 echo "configure:1695: checking version of $SED" >&5
1695 ac_prog_version
=`$SED --version 2>&1 | sed -n 's/^.*GNU sed version \([0-9]*\.[0-9.]*\).*$/\1/p'`
1696 case $ac_prog_version in
1697 '') ac_prog_version
="v. ?.??, bad"; ac_verc_fail
=yes;;
1698 3.0[2-9]*|
3.
[1-9]*|
[4-9]*)
1699 ac_prog_version
="$ac_prog_version, ok"; ac_verc_fail
=no
;;
1700 *) ac_prog_version
="$ac_prog_version, bad"; ac_verc_fail
=yes;;
1703 echo "$ac_t""$ac_prog_version" 1>&6
1705 if test $ac_verc_fail = yes; then
1706 SED
=: aux_missing
="$aux_missing sed"
1711 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1712 echo "configure:1713: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1713 if eval "test \"`echo '$''{'ac_cv_prog_cc_works'+set}'`\" = set"; then
1714 echo $ac_n "(cached) $ac_c" 1>&6
1718 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1719 ac_cpp
='$CPP $CPPFLAGS'
1720 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1721 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1722 cross_compiling
=$ac_cv_prog_cc_cross
1724 cat > conftest.
$ac_ext << EOF
1726 #line 1727 "configure"
1727 #include "confdefs.h"
1731 if { (eval echo configure
:1732: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1732 ac_cv_prog_cc_works
=yes
1733 # If we can't run a trivial program, we are probably using a cross compiler.
1734 if (.
/conftest
; exit) 2>/dev
/null
; then
1735 ac_cv_prog_cc_cross
=no
1737 ac_cv_prog_cc_cross
=yes
1740 echo "configure: failed program was:" >&5
1741 cat conftest.
$ac_ext >&5
1742 ac_cv_prog_cc_works
=no
1746 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1747 ac_cpp
='$CPP $CPPFLAGS'
1748 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1749 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1750 cross_compiling
=$ac_cv_prog_cc_cross
1754 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1755 if test $ac_cv_prog_cc_works = no
; then
1757 ac_cv_prog_cc_cross
=yes
1761 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1762 echo "configure:1763: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1763 if eval "test \"`echo '$''{'ac_cv_prog_cc_cross'+set}'`\" = set"; then
1764 echo $ac_n "(cached) $ac_c" 1>&6
1769 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1771 cross_compiling
=$ac_cv_prog_cc_cross
1773 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1774 echo "configure:1775: checking whether we are using GNU C" >&5
1775 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1776 echo $ac_n "(cached) $ac_c" 1>&6
1778 cat > conftest.c
<<EOF
1783 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:1784: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
1790 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1791 if test $ac_cv_prog_gcc != yes; then
1792 { echo "configure: error: GNU libc must be compiled using GNU CC" 1>&2; exit 1; }
1795 echo $ac_n "checking build system type""... $ac_c" 1>&6
1796 echo "configure:1797: checking build system type" >&5
1799 case "$build_alias" in
1802 NONE
) build_alias
=$host_alias ;;
1803 *) build_alias
=$nonopt ;;
1807 build
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1808 build_cpu
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1809 build_vendor
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1810 build_os
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1811 echo "$ac_t""$build" 1>&6
1813 if test $host != $build; then
1814 for ac_prog
in gcc cc
1816 # Extract the first word of "$ac_prog", so it can be a program name with args.
1817 set dummy
$ac_prog; ac_word
=$2
1818 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1819 echo "configure:1820: checking for $ac_word" >&5
1820 if eval "test \"`echo '$''{'ac_cv_prog_BUILD_CC'+set}'`\" = set"; then
1821 echo $ac_n "(cached) $ac_c" 1>&6
1823 if test -n "$BUILD_CC"; then
1824 ac_cv_prog_BUILD_CC
="$BUILD_CC" # Let the user override the test.
1826 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1828 for ac_dir
in $ac_dummy; do
1829 test -z "$ac_dir" && ac_dir
=.
1830 if test -f $ac_dir/$ac_word; then
1831 ac_cv_prog_BUILD_CC
="$ac_prog"
1838 BUILD_CC
="$ac_cv_prog_BUILD_CC"
1839 if test -n "$BUILD_CC"; then
1840 echo "$ac_t""$BUILD_CC" 1>&6
1842 echo "$ac_t""no" 1>&6
1845 test -n "$BUILD_CC" && break
1850 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1851 echo "configure:1852: checking how to run the C preprocessor" >&5
1852 # On Suns, sometimes $CPP names a directory.
1853 if test -n "$CPP" && test -d "$CPP"; then
1856 if test -z "$CPP"; then
1857 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1858 echo $ac_n "(cached) $ac_c" 1>&6
1860 # This must be in double quotes, not single quotes, because CPP may get
1861 # substituted into the Makefile and "${CC-cc}" will confuse make.
1863 # On the NeXT, cc -E runs the code through the compiler's parser,
1864 # not just through cpp.
1865 cat > conftest.
$ac_ext <<EOF
1866 #line 1867 "configure"
1867 #include "confdefs.h"
1871 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1872 { (eval echo configure
:1873: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1873 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1874 if test -z "$ac_err"; then
1878 echo "configure: failed program was:" >&5
1879 cat conftest.
$ac_ext >&5
1881 CPP
="${CC-cc} -E -traditional-cpp"
1882 cat > conftest.
$ac_ext <<EOF
1883 #line 1884 "configure"
1884 #include "confdefs.h"
1888 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1889 { (eval echo configure
:1890: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1890 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1891 if test -z "$ac_err"; then
1895 echo "configure: failed program was:" >&5
1896 cat conftest.
$ac_ext >&5
1898 CPP
="${CC-cc} -nologo -E"
1899 cat > conftest.
$ac_ext <<EOF
1900 #line 1901 "configure"
1901 #include "confdefs.h"
1905 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1906 { (eval echo configure
:1907: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1907 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1908 if test -z "$ac_err"; then
1912 echo "configure: failed program was:" >&5
1913 cat conftest.
$ac_ext >&5
1922 ac_cv_prog_CPP
="$CPP"
1924 CPP
="$ac_cv_prog_CPP"
1926 ac_cv_prog_CPP
="$CPP"
1928 echo "$ac_t""$CPP" 1>&6
1930 # Was a --with-binutils option given?
1931 if test -n "$path_binutils"; then
1932 # Make absolute; ensure a single trailing slash.
1933 path_binutils
=`(cd $path_binutils; pwd) | sed 's%/*$%/%'`
1934 CC
="$CC -B$path_binutils"
1936 AS
=`$CC -print-prog-name=as`
1937 LD
=`$CC -print-prog-name=ld`
1938 AR
=`$CC -print-prog-name=ar`
1941 # ranlib has to be treated a bit differently since it might not exist at all.
1942 RANLIB
=`$CC -print-prog-name=ranlib`
1943 if test $RANLIB = ranlib
; then
1944 # This extra check has to happen since gcc simply echos the parameter in
1945 # case it cannot find the value in its own directories.
1946 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1947 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
1948 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1949 echo "configure:1950: checking for $ac_word" >&5
1950 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1951 echo $ac_n "(cached) $ac_c" 1>&6
1953 if test -n "$RANLIB"; then
1954 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1956 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1958 for ac_dir
in $ac_dummy; do
1959 test -z "$ac_dir" && ac_dir
=.
1960 if test -f $ac_dir/$ac_word; then
1961 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
1968 RANLIB
="$ac_cv_prog_RANLIB"
1969 if test -n "$RANLIB"; then
1970 echo "$ac_t""$RANLIB" 1>&6
1972 echo "$ac_t""no" 1>&6
1976 if test -z "$ac_cv_prog_RANLIB"; then
1977 if test -n "$ac_tool_prefix"; then
1978 # Extract the first word of "ranlib", so it can be a program name with args.
1979 set dummy ranlib
; ac_word
=$2
1980 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1981 echo "configure:1982: checking for $ac_word" >&5
1982 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1983 echo $ac_n "(cached) $ac_c" 1>&6
1985 if test -n "$RANLIB"; then
1986 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1988 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1990 for ac_dir
in $ac_dummy; do
1991 test -z "$ac_dir" && ac_dir
=.
1992 if test -f $ac_dir/$ac_word; then
1993 ac_cv_prog_RANLIB
="ranlib"
1998 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
2001 RANLIB
="$ac_cv_prog_RANLIB"
2002 if test -n "$RANLIB"; then
2003 echo "$ac_t""$RANLIB" 1>&6
2005 echo "$ac_t""no" 1>&6
2016 # Determine whether we are using GNU binutils.
2017 echo $ac_n "checking whether $AS is GNU as""... $ac_c" 1>&6
2018 echo "configure:2019: checking whether $AS is GNU as" >&5
2019 if eval "test \"`echo '$''{'libc_cv_prog_as_gnu'+set}'`\" = set"; then
2020 echo $ac_n "(cached) $ac_c" 1>&6
2022 # Most GNU programs take a -v and spit out some text including
2023 # the word 'GNU'. Some try to read stdin, so give them /dev/null.
2024 if $AS -o conftest
-v </dev
/null
2>&1 |
grep GNU
> /dev
/null
2>&1; then
2025 libc_cv_prog_as_gnu
=yes
2027 libc_cv_prog_as_gnu
=no
2032 echo "$ac_t""$libc_cv_prog_as_gnu" 1>&6
2034 gnu_as
=$libc_cv_prog_as_gnu
2036 echo $ac_n "checking whether $LD is GNU ld""... $ac_c" 1>&6
2037 echo "configure:2038: checking whether $LD is GNU ld" >&5
2038 if eval "test \"`echo '$''{'libc_cv_prog_ld_gnu'+set}'`\" = set"; then
2039 echo $ac_n "(cached) $ac_c" 1>&6
2041 # Most GNU programs take a -v and spit out some text including
2042 # the word 'GNU'. Some try to read stdin, so give them /dev/null.
2043 if $LD -o conftest
-v </dev
/null
2>&1 |
grep GNU
> /dev
/null
2>&1; then
2044 libc_cv_prog_ld_gnu
=yes
2046 libc_cv_prog_ld_gnu
=no
2051 echo "$ac_t""$libc_cv_prog_ld_gnu" 1>&6
2052 gnu_ld
=$libc_cv_prog_ld_gnu
2054 # Extract the first word of "${ac_tool_prefix}mig", so it can be a program name with args.
2055 set dummy
${ac_tool_prefix}mig
; ac_word
=$2
2056 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2057 echo "configure:2058: checking for $ac_word" >&5
2058 if eval "test \"`echo '$''{'ac_cv_prog_MIG'+set}'`\" = set"; then
2059 echo $ac_n "(cached) $ac_c" 1>&6
2061 if test -n "$MIG"; then
2062 ac_cv_prog_MIG
="$MIG" # Let the user override the test.
2064 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2066 for ac_dir
in $ac_dummy; do
2067 test -z "$ac_dir" && ac_dir
=.
2068 if test -f $ac_dir/$ac_word; then
2069 ac_cv_prog_MIG
="${ac_tool_prefix}mig"
2076 MIG
="$ac_cv_prog_MIG"
2077 if test -n "$MIG"; then
2078 echo "$ac_t""$MIG" 1>&6
2080 echo "$ac_t""no" 1>&6
2084 if test -z "$ac_cv_prog_MIG"; then
2085 if test -n "$ac_tool_prefix"; then
2086 # Extract the first word of "mig", so it can be a program name with args.
2087 set dummy mig
; ac_word
=$2
2088 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2089 echo "configure:2090: checking for $ac_word" >&5
2090 if eval "test \"`echo '$''{'ac_cv_prog_MIG'+set}'`\" = set"; then
2091 echo $ac_n "(cached) $ac_c" 1>&6
2093 if test -n "$MIG"; then
2094 ac_cv_prog_MIG
="$MIG" # Let the user override the test.
2096 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2098 for ac_dir
in $ac_dummy; do
2099 test -z "$ac_dir" && ac_dir
=.
2100 if test -f $ac_dir/$ac_word; then
2101 ac_cv_prog_MIG
="mig"
2106 test -z "$ac_cv_prog_MIG" && ac_cv_prog_MIG
="MISSING"
2109 MIG
="$ac_cv_prog_MIG"
2110 if test -n "$MIG"; then
2111 echo "$ac_t""$MIG" 1>&6
2113 echo "$ac_t""no" 1>&6
2122 # Accept binutils 2.10.1 or newer (and also any ia64 2.9 version)
2123 # XXX Commented out because it filters out too many good versions.
2125 # AC_CHECK_PROG_VER(AS, $AS, --version,
2126 # [GNU assembler.* \([0-9]*\.[0-9.]*\(-ia64-[0-9]*\)*\)],
2127 # [2.10.[1-9]* | 2.1[1-9]* | 2.9-ia64-*], AS=: critic_missing=t)
2129 test -n "$aux_missing" && echo "configure: warning:
2130 *** These auxiliary programs are missing or too old:$aux_missing
2131 *** some features will be disabled.
2132 *** Check the INSTALL file for required versions." 1>&2
2134 # glibcbug.in wants to know the compiler version.
2135 CCVERSION
=`$CC -v 2>&1 | sed -n 's/gcc version //p'`
2138 # if using special system headers, find out the compiler's sekrit
2139 # header directory and add that to the list. NOTE: Only does the right
2140 # thing on a system that doesn't need fixincludes. (Not presently a problem.)
2141 if test -n "$sysheaders"; then
2142 ccheaders
=`$CC -print-file-name=include`
2143 SYSINCLUDES
="-nostdinc -isystem $ccheaders -isystem $sysheaders"
2147 # check if ranlib is necessary
2148 echo $ac_n "checking whether ranlib is necessary""... $ac_c" 1>&6
2149 echo "configure:2150: checking whether ranlib is necessary" >&5
2150 if eval "test \"`echo '$''{'libc_cv_ranlib_necessary'+set}'`\" = set"; then
2151 echo $ac_n "(cached) $ac_c" 1>&6
2153 cat > conftest.c
<<EOF
2158 $CC $CFLAGS -c conftest.c
2159 $AR cr conftest.a conftest.c
2160 cp conftest.a conftest2.a
2162 if cmp -s conftest.a conftest2.a
; then
2163 libc_cv_ranlib_necessary
=no
2165 libc_cv_ranlib_necessary
=yes
2170 echo "$ac_t""$libc_cv_ranlib_necessary" 1>&6
2171 if test "$libc_cv_ranlib_necessary" = no
; then
2175 # Test if LD_LIBRARY_PATH contains the notation for the current directory
2176 # since this would lead to problems installing/building glibc.
2177 # LD_LIBRARY_PATH contains the current directory if one of the following
2179 # - one of the terminals (":" and ";") is the first or last sign
2180 # - two terminals occur directly after each other
2181 # - the path contains an element with a dot in it
2182 echo $ac_n "checking LD_LIBRARY_PATH variable""... $ac_c" 1>&6
2183 echo "configure:2184: checking LD_LIBRARY_PATH variable" >&5
2184 case ${LD_LIBRARY_PATH} in
2185 [:\
;]* |
*[:\
;] |
*[:\
;][:\
;]* |
*[:\
;]. | .
[:\
;]*| . |
*[:\
;].
[:\
;]* )
2186 ld_library_path_setting
="contains current directory"
2189 ld_library_path_setting
="ok"
2192 echo "$ac_t""$ld_library_path_setting" 1>&6
2193 if test "$ld_library_path_setting" != "ok"; then
2194 { echo "configure: error:
2195 *** LD_LIBRARY_PATH shouldn't contain the current directory when
2196 *** building glibc. Please change the environment variable
2197 *** and run configure again." 1>&2; exit 1; }
2200 echo $ac_n "checking whether GCC supports -static-libgcc""... $ac_c" 1>&6
2201 echo "configure:2202: checking whether GCC supports -static-libgcc" >&5
2202 if eval "test \"`echo '$''{'libc_cv_gcc_static_libgcc'+set}'`\" = set"; then
2203 echo $ac_n "(cached) $ac_c" 1>&6
2205 if $CC -v -static-libgcc 2>&1 |
grep -q 'unrecognized option.*static-libgcc'; then
2206 libc_cv_gcc_static_libgcc
=
2208 libc_cv_gcc_static_libgcc
=-static-libgcc
2212 echo "$ac_t""$libc_cv_gcc_static_libgcc" 1>&6
2215 # Extract the first word of "bash", so it can be a program name with args.
2216 set dummy bash
; ac_word
=$2
2217 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2218 echo "configure:2219: checking for $ac_word" >&5
2219 if eval "test \"`echo '$''{'ac_cv_path_BASH'+set}'`\" = set"; then
2220 echo $ac_n "(cached) $ac_c" 1>&6
2224 ac_cv_path_BASH
="$BASH" # Let the user override the test with a path.
2227 ac_cv_path_BASH
="$BASH" # Let the user override the test with a dos path.
2230 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2232 for ac_dir
in $ac_dummy; do
2233 test -z "$ac_dir" && ac_dir
=.
2234 if test -f $ac_dir/$ac_word; then
2235 ac_cv_path_BASH
="$ac_dir/$ac_word"
2240 test -z "$ac_cv_path_BASH" && ac_cv_path_BASH
="no"
2244 BASH
="$ac_cv_path_BASH"
2245 if test -n "$BASH"; then
2246 echo "$ac_t""$BASH" 1>&6
2248 echo "$ac_t""no" 1>&6
2251 if test "$BASH" != no
&&
2252 $BASH -c 'test "$BASH_VERSINFO" \
2253 && test "$BASH_VERSINFO" -ge 2 >&/dev/null'; then
2254 libc_cv_have_bash2
=yes
2256 libc_cv_have_bash2
=no
2260 if test "$BASH" = no
; then
2261 # Extract the first word of "ksh", so it can be a program name with args.
2262 set dummy ksh
; ac_word
=$2
2263 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2264 echo "configure:2265: checking for $ac_word" >&5
2265 if eval "test \"`echo '$''{'ac_cv_path_KSH'+set}'`\" = set"; then
2266 echo $ac_n "(cached) $ac_c" 1>&6
2270 ac_cv_path_KSH
="$KSH" # Let the user override the test with a path.
2273 ac_cv_path_KSH
="$KSH" # Let the user override the test with a dos path.
2276 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2278 for ac_dir
in $ac_dummy; do
2279 test -z "$ac_dir" && ac_dir
=.
2280 if test -f $ac_dir/$ac_word; then
2281 ac_cv_path_KSH
="$ac_dir/$ac_word"
2286 test -z "$ac_cv_path_KSH" && ac_cv_path_KSH
="no"
2290 KSH
="$ac_cv_path_KSH"
2291 if test -n "$KSH"; then
2292 echo "$ac_t""$KSH" 1>&6
2294 echo "$ac_t""no" 1>&6
2297 if test "$KSH" = no
; then
2300 libc_cv_have_ksh
=yes
2305 libc_cv_have_ksh
=yes
2309 for ac_prog
in gawk mawk nawk
awk
2311 # Extract the first word of "$ac_prog", so it can be a program name with args.
2312 set dummy
$ac_prog; ac_word
=$2
2313 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2314 echo "configure:2315: checking for $ac_word" >&5
2315 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
2316 echo $ac_n "(cached) $ac_c" 1>&6
2318 if test -n "$AWK"; then
2319 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
2321 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2323 for ac_dir
in $ac_dummy; do
2324 test -z "$ac_dir" && ac_dir
=.
2325 if test -f $ac_dir/$ac_word; then
2326 ac_cv_prog_AWK
="$ac_prog"
2333 AWK
="$ac_cv_prog_AWK"
2334 if test -n "$AWK"; then
2335 echo "$ac_t""$AWK" 1>&6
2337 echo "$ac_t""no" 1>&6
2340 test -n "$AWK" && break
2343 # Extract the first word of "perl", so it can be a program name with args.
2344 set dummy perl
; ac_word
=$2
2345 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2346 echo "configure:2347: checking for $ac_word" >&5
2347 if eval "test \"`echo '$''{'ac_cv_path_PERL'+set}'`\" = set"; then
2348 echo $ac_n "(cached) $ac_c" 1>&6
2352 ac_cv_path_PERL
="$PERL" # Let the user override the test with a path.
2355 ac_cv_path_PERL
="$PERL" # Let the user override the test with a dos path.
2358 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2360 for ac_dir
in $ac_dummy; do
2361 test -z "$ac_dir" && ac_dir
=.
2362 if test -f $ac_dir/$ac_word; then
2363 ac_cv_path_PERL
="$ac_dir/$ac_word"
2368 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL
="no"
2372 PERL
="$ac_cv_path_PERL"
2373 if test -n "$PERL"; then
2374 echo "$ac_t""$PERL" 1>&6
2376 echo "$ac_t""no" 1>&6
2379 if test "$PERL" != no
&&
2380 (eval `$PERL -V:apiversion`; test `expr "$apiversion" \< 5` -ne 0); then
2383 # Extract the first word of "install-info", so it can be a program name with args.
2384 set dummy install-info
; ac_word
=$2
2385 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2386 echo "configure:2387: checking for $ac_word" >&5
2387 if eval "test \"`echo '$''{'ac_cv_path_INSTALL_INFO'+set}'`\" = set"; then
2388 echo $ac_n "(cached) $ac_c" 1>&6
2390 case "$INSTALL_INFO" in
2392 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
2395 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a dos path.
2398 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2399 ac_dummy
="$PATH:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin"
2400 for ac_dir
in $ac_dummy; do
2401 test -z "$ac_dir" && ac_dir
=.
2402 if test -f $ac_dir/$ac_word; then
2403 ac_cv_path_INSTALL_INFO
="$ac_dir/$ac_word"
2408 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO
="no"
2412 INSTALL_INFO
="$ac_cv_path_INSTALL_INFO"
2413 if test -n "$INSTALL_INFO"; then
2414 echo "$ac_t""$INSTALL_INFO" 1>&6
2416 echo "$ac_t""no" 1>&6
2419 if test "$INSTALL_INFO" != "no"; then
2420 echo $ac_n "checking for old Debian install-info""... $ac_c" 1>&6
2421 echo "configure:2422: checking for old Debian install-info" >&5
2422 if eval "test \"`echo '$''{'libc_cv_old_debian_install_info'+set}'`\" = set"; then
2423 echo $ac_n "(cached) $ac_c" 1>&6
2426 # There is a hard ^_ on the next line. I am open to better ideas.
2428 echo 'File: dir Node: Top This is the top of the INFO tree'
2429 echo '* Menu:') >conftest.d
/dir
2430 (echo 'INFO-DIR-SECTION i-d-s works'
2431 echo 'START-INFO-DIR-ENTRY'
2432 echo '* Prog: (prog). Program.'
2433 echo 'END-INFO-DIR-ENTRY') >conftest.d
/prog.info
2434 if $INSTALL_INFO --info-dir=conftest.d conftest.d
/prog.info
>&5 2>&1
2436 if grep -s 'i-d-s works' conftest.d
/dir
>/dev
/null
2437 then libc_cv_old_debian_install_info
=no
2438 else libc_cv_old_debian_install_info
=yes
2440 else libc_cv_old_debian_install_info
=no testfailed
=t
2445 echo "$ac_t""$libc_cv_old_debian_install_info" 1>&6
2446 if test -n "$testfailed"
2447 then echo "configure: warning: install-info errored out, check config.log" 1>&2
2449 OLD_DEBIAN_INSTALL_INFO
=$libc_cv_old_debian_install_info
2453 # Extract the first word of "bison", so it can be a program name with args.
2454 set dummy bison
; ac_word
=$2
2455 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2456 echo "configure:2457: checking for $ac_word" >&5
2457 if eval "test \"`echo '$''{'ac_cv_path_BISON'+set}'`\" = set"; then
2458 echo $ac_n "(cached) $ac_c" 1>&6
2462 ac_cv_path_BISON
="$BISON" # Let the user override the test with a path.
2465 ac_cv_path_BISON
="$BISON" # Let the user override the test with a dos path.
2468 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2469 ac_dummy
="$PATH:/usr/local/bin:/usr/bin:/bin"
2470 for ac_dir
in $ac_dummy; do
2471 test -z "$ac_dir" && ac_dir
=.
2472 if test -f $ac_dir/$ac_word; then
2473 ac_cv_path_BISON
="$ac_dir/$ac_word"
2478 test -z "$ac_cv_path_BISON" && ac_cv_path_BISON
="no"
2482 BISON
="$ac_cv_path_BISON"
2483 if test -n "$BISON"; then
2484 echo "$ac_t""$BISON" 1>&6
2486 echo "$ac_t""no" 1>&6
2490 echo $ac_n "checking for signed size_t type""... $ac_c" 1>&6
2491 echo "configure:2492: checking for signed size_t type" >&5
2492 if eval "test \"`echo '$''{'libc_cv_signed_size_t'+set}'`\" = set"; then
2493 echo $ac_n "(cached) $ac_c" 1>&6
2495 echo '#include <stddef.h>
2496 FOOBAR __SIZE_TYPE__ FOOBAR' > conftest.c
2497 if eval "$ac_cpp conftest.c 2>/dev/null" \
2498 |
grep '^FOOBAR.*unsigned.*FOOBAR$' >/dev
/null
; then
2499 libc_cv_signed_size_t
=no
2501 libc_cv_signed_size_t
=yes
2506 echo "$ac_t""$libc_cv_signed_size_t" 1>&6
2507 if test $libc_cv_signed_size_t = yes; then
2508 cat >> confdefs.h
<<\EOF
2509 #undef __SIZE_TYPE__
2510 #define __SIZE_TYPE__ unsigned
2514 echo $ac_n "checking for libc-friendly stddef.h""... $ac_c" 1>&6
2515 echo "configure:2516: checking for libc-friendly stddef.h" >&5
2516 if eval "test \"`echo '$''{'libc_cv_friendly_stddef'+set}'`\" = set"; then
2517 echo $ac_n "(cached) $ac_c" 1>&6
2519 cat > conftest.
$ac_ext <<EOF
2520 #line 2521 "configure"
2521 #include "confdefs.h"
2522 #define __need_size_t
2523 #define __need_wchar_t
2528 size_t size; wchar_t wchar;
2530 #error stddef.h ignored __need_*
2532 if (&size == NULL || &wchar == NULL) abort ();
2535 if { (eval echo configure
:2536: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2537 libc_cv_friendly_stddef
=yes
2539 echo "configure: failed program was:" >&5
2540 cat conftest.
$ac_ext >&5
2542 libc_cv_friendly_stddef
=no
2547 echo "$ac_t""$libc_cv_friendly_stddef" 1>&6
2548 if test $libc_cv_friendly_stddef = yes; then
2549 config_vars
="$config_vars
2550 override stddef.h = # The installed <stddef.h> seems to be libc-friendly."
2553 echo $ac_n "checking whether we need to use -P to assemble .S files""... $ac_c" 1>&6
2554 echo "configure:2555: checking whether we need to use -P to assemble .S files" >&5
2555 if eval "test \"`echo '$''{'libc_cv_need_minus_P'+set}'`\" = set"; then
2556 echo $ac_n "(cached) $ac_c" 1>&6
2558 cat > conftest.S
<<EOF
2559 #include "confdefs.h"
2560 /* Nothing whatsoever. */
2562 if ${CC-cc} $CFLAGS -c conftest.S
2>/dev
/null
; then
2563 libc_cv_need_minus_P
=no
2565 libc_cv_need_minus_P
=yes
2570 echo "$ac_t""$libc_cv_need_minus_P" 1>&6
2571 if test $libc_cv_need_minus_P = yes; then
2572 config_vars
="$config_vars
2573 asm-CPPFLAGS = -P # The assembler can't grok cpp's # line directives."
2576 echo $ac_n "checking whether .text pseudo-op must be used""... $ac_c" 1>&6
2577 echo "configure:2578: checking whether .text pseudo-op must be used" >&5
2578 if eval "test \"`echo '$''{'libc_cv_dot_text'+set}'`\" = set"; then
2579 echo $ac_n "(cached) $ac_c" 1>&6
2581 cat > conftest.s
<<EOF
2585 if ${CC-cc} $CFLAGS -c conftest.s
2>/dev
/null
; then
2586 libc_cv_dot_text
=.text
2591 if test -z "$libc_cv_dot_text"; then
2592 echo "$ac_t""no" 1>&6
2594 echo "$ac_t""yes" 1>&6
2597 echo $ac_n "checking for assembler global-symbol directive""... $ac_c" 1>&6
2598 echo "configure:2599: checking for assembler global-symbol directive" >&5
2599 if eval "test \"`echo '$''{'libc_cv_asm_global_directive'+set}'`\" = set"; then
2600 echo $ac_n "(cached) $ac_c" 1>&6
2602 libc_cv_asm_global_directive
=UNKNOWN
2603 for ac_globl
in .globl .global .EXPORT
; do
2604 cat > conftest.s
<<EOF
2609 if ${CC-cc} $CFLAGS -c conftest.s
2>/dev
/null
; then
2610 libc_cv_asm_global_directive
=${ac_globl}
2613 test $libc_cv_asm_global_directive != UNKNOWN
&& break
2617 echo "$ac_t""$libc_cv_asm_global_directive" 1>&6
2618 if test $libc_cv_asm_global_directive = UNKNOWN
; then
2619 { echo "configure: error: cannot determine asm global directive" 1>&2; exit 1; }
2621 cat >> confdefs.h
<<EOF
2622 #define ASM_GLOBAL_DIRECTIVE ${libc_cv_asm_global_directive}
2627 echo $ac_n "checking for .set assembler directive""... $ac_c" 1>&6
2628 echo "configure:2629: checking for .set assembler directive" >&5
2629 if eval "test \"`echo '$''{'libc_cv_asm_set_directive'+set}'`\" = set"; then
2630 echo $ac_n "(cached) $ac_c" 1>&6
2632 cat > conftest.s
<<EOF
2635 .set glibc_conftest_frobozz,foo
2636 $libc_cv_asm_global_directive glibc_conftest_frobozz
2638 # The alpha-dec-osf1 assembler gives only a warning for `.set'
2639 # (but it doesn't work), so we must do a linking check to be sure.
2640 cat > conftest1.c
<<\EOF
2641 extern int glibc_conftest_frobozz
;
2642 main
() { printf ("%d\n", glibc_conftest_frobozz
); }
2644 if ${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \
2645 -o conftest conftest.s conftest1.c
1>&5 2>&5; then
2646 libc_cv_asm_set_directive
=yes
2648 libc_cv_asm_set_directive
=no
2653 echo "$ac_t""$libc_cv_asm_set_directive" 1>&6
2654 if test $libc_cv_asm_set_directive = yes; then
2655 cat >> confdefs.h
<<\EOF
2656 #define HAVE_ASM_SET_DIRECTIVE 1
2661 echo $ac_n "checking for assembler .type directive prefix""... $ac_c" 1>&6
2662 echo "configure:2663: checking for assembler .type directive prefix" >&5
2663 if eval "test \"`echo '$''{'libc_cv_asm_type_prefix'+set}'`\" = set"; then
2664 echo $ac_n "(cached) $ac_c" 1>&6
2666 libc_cv_asm_type_prefix
=no
2667 for ac_try_prefix
in '@' '%' '#'; do
2668 cat > conftest.s
<<EOF
2670 ${libc_cv_asm_global_directive} foo
2671 .type foo, ${ac_try_prefix}object
2676 if ${CC-cc} $CFLAGS -c conftest.s
2>/dev
/null
; then
2677 libc_cv_asm_type_prefix
=${ac_try_prefix}
2680 test "x$libc_cv_asm_type_prefix" != xno
&& break
2684 echo "$ac_t""$libc_cv_asm_type_prefix" 1>&6
2685 if test "x$libc_cv_asm_type_prefix" != xno
; then
2686 cat >> confdefs.h
<<EOF
2687 #define ASM_TYPE_DIRECTIVE_PREFIX ${libc_cv_asm_type_prefix}
2692 # The Aix ld uses global .symbol_names instead of symbol_names.
2695 cat >> confdefs.h
<<\EOF
2696 #define HAVE_ASM_GLOBAL_DOT_NAME 1
2701 echo $ac_n "checking for .symver assembler directive""... $ac_c" 1>&6
2702 echo "configure:2703: checking for .symver assembler directive" >&5
2703 if eval "test \"`echo '$''{'libc_cv_asm_symver_directive'+set}'`\" = set"; then
2704 echo $ac_n "(cached) $ac_c" 1>&6
2706 cat > conftest.s
<<EOF
2709 .symver _sym,sym@VERS
2711 if ${CC-cc} -c $CFLAGS $CPPFLAGS conftest.s
1>&5 2>&5; then
2712 libc_cv_asm_symver_directive
=yes
2714 libc_cv_asm_symver_directive
=no
2719 echo "$ac_t""$libc_cv_asm_symver_directive" 1>&6
2720 echo $ac_n "checking for ld --version-script""... $ac_c" 1>&6
2721 echo "configure:2722: checking for ld --version-script" >&5
2722 if eval "test \"`echo '$''{'libc_cv_ld_version_script_option'+set}'`\" = set"; then
2723 echo $ac_n "(cached) $ac_c" 1>&6
2725 if test $libc_cv_asm_symver_directive = yes; then
2726 cat > conftest.s
<<EOF
2729 .symver _sym,sym@VERS
2731 cat > conftest.map
<<EOF
2740 if ${CC-cc} -c $CFLAGS $CPPFLAGS conftest.s
1>&5 2>&5; then
2741 if { ac_try
='${CC-cc} $CFLAGS -shared -o conftest.so conftest.o
2742 -nostartfiles -nostdlib
2743 -Wl,--version-script,conftest.map
2744 1>&5'; { (eval echo configure
:2745: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; };
2746 libc_cv_ld_version_script_option
=yes
2748 libc_cv_ld_version_script_option
=no
2751 libc_cv_ld_version_script_option
=no
2754 libc_cv_ld_version_script_option
=no
2759 echo "$ac_t""$libc_cv_ld_version_script_option" 1>&6
2760 if test $shared != no
&&
2761 test $libc_cv_asm_symver_directive = yes &&
2762 test $libc_cv_ld_version_script_option = yes &&
2763 test $enable_versioning = yes; then
2765 cat >> confdefs.h
<<\EOF
2766 #define DO_VERSIONING 1
2774 if test $elf = yes && test $shared != no
&& test $VERSIONING = no
; then
2776 *** WARNING: You should not compile GNU libc without versioning. Not using
2777 *** versioning will introduce incompatibilities so that old binaries
2778 *** will not run anymore.
2779 *** For versioning you need recent binutils (binutils-2.8.1.0.23 or newer)."
2781 if test $elf = yes; then
2782 echo $ac_n "checking for .previous assembler directive""... $ac_c" 1>&6
2783 echo "configure:2784: checking for .previous assembler directive" >&5
2784 if eval "test \"`echo '$''{'libc_cv_asm_previous_directive'+set}'`\" = set"; then
2785 echo $ac_n "(cached) $ac_c" 1>&6
2787 cat > conftest.s
<<EOF
2788 .section foo_section
2791 if { ac_try
='${CC-cc} -c $CFLAGS conftest.s 1>&5'; { (eval echo configure
:2792: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
2792 libc_cv_asm_previous_directive
=yes
2794 libc_cv_asm_previous_directive
=no
2799 echo "$ac_t""$libc_cv_asm_previous_directive" 1>&6
2800 if test $libc_cv_asm_previous_directive = yes; then
2801 cat >> confdefs.h
<<\EOF
2802 #define HAVE_ASM_PREVIOUS_DIRECTIVE 1
2806 echo $ac_n "checking for .popsection assembler directive""... $ac_c" 1>&6
2807 echo "configure:2808: checking for .popsection assembler directive" >&5
2808 if eval "test \"`echo '$''{'libc_cv_asm_popsection_directive'+set}'`\" = set"; then
2809 echo $ac_n "(cached) $ac_c" 1>&6
2811 cat > conftest.s
<<EOF
2812 .pushsection foo_section
2815 if { ac_try
='${CC-cc} -c $CFLAGS conftest.s 1>&5'; { (eval echo configure
:2816: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
2816 libc_cv_asm_popsection_directive
=yes
2818 libc_cv_asm_popsection_directive
=no
2823 echo "$ac_t""$libc_cv_asm_popsection_directive" 1>&6
2824 if test $libc_cv_asm_popsection_directive = yes; then
2825 cat >> confdefs.h
<<\EOF
2826 #define HAVE_ASM_POPSECTION_DIRECTIVE 1
2831 echo $ac_n "checking for .protected and .hidden assembler directive""... $ac_c" 1>&6
2832 echo "configure:2833: checking for .protected and .hidden assembler directive" >&5
2833 if eval "test \"`echo '$''{'libc_cv_asm_protected_directive'+set}'`\" = set"; then
2834 echo $ac_n "(cached) $ac_c" 1>&6
2836 cat > conftest.s
<<EOF
2842 if { ac_try
='${CC-cc} -c $CFLAGS conftest.s 1>&5'; { (eval echo configure
:2843: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
2843 libc_cv_asm_protected_directive
=yes
2845 libc_cv_asm_protected_directive
=no
2850 echo "$ac_t""$libc_cv_asm_protected_directive" 1>&6
2852 cat >> confdefs.h
<<\EOF
2853 #define HAVE_PROTECTED 1
2856 cat >> confdefs.h
<<\EOF
2857 #define HAVE_HIDDEN 1
2861 if test $libc_cv_asm_protected_directive = yes; then
2862 echo $ac_n "checking whether __attribute__((visibility())) is supported""... $ac_c" 1>&6
2863 echo "configure:2864: checking whether __attribute__((visibility())) is supported" >&5
2864 if eval "test \"`echo '$''{'libc_cv_visibility_attribute'+set}'`\" = set"; then
2865 echo $ac_n "(cached) $ac_c" 1>&6
2867 cat > conftest.c
<<EOF
2868 int foo __attribute__ ((visibility ("hidden"))) = 1;
2869 int bar __attribute__ ((visibility ("protected"))) = 1;
2871 libc_cv_visibility_attribute
=no
2872 if ${CC-cc} -Werror -S conftest.c
-o conftest.s
>/dev
/null
2>&1; then
2873 if grep '\.hidden.*foo' conftest.s
>/dev
/null
; then
2874 if grep '\.protected.*bar' conftest.s
>/dev
/null
; then
2875 libc_cv_visibility_attribute
=yes
2883 echo "$ac_t""$libc_cv_visibility_attribute" 1>&6
2884 if test $libc_cv_visibility_attribute = yes; then
2885 cat >> confdefs.h
<<\EOF
2886 #define HAVE_VISIBILITY_ATTRIBUTE 1
2892 if test $libc_cv_visibility_attribute = yes; then
2893 echo $ac_n "checking for broken __attribute__((visibility()))""... $ac_c" 1>&6
2894 echo "configure:2895: checking for broken __attribute__((visibility()))" >&5
2895 if eval "test \"`echo '$''{'libc_cv_broken_visibility_attribute'+set}'`\" = set"; then
2896 echo $ac_n "(cached) $ac_c" 1>&6
2898 cat > conftest.c
<<EOF
2900 int bar (int x) __asm__ ("foo") __attribute__ ((visibility ("hidden")));
2901 int bar (int x) { return x; }
2903 libc_cv_broken_visibility_attribute
=yes
2904 if ${CC-cc} -Werror -S conftest.c
-o conftest.s
>/dev
/null
2>&1; then
2905 if grep '\.hidden[ _]foo' conftest.s
>/dev
/null
; then
2906 libc_cv_broken_visibility_attribute
=no
2909 rm -f conftest.c conftest.s
2913 echo "$ac_t""$libc_cv_broken_visibility_attribute" 1>&6
2914 if test $libc_cv_broken_visibility_attribute = yes; then
2915 cat >> confdefs.h
<<\EOF
2916 #define HAVE_BROKEN_VISIBILITY_ATTRIBUTE 1
2922 echo $ac_n "checking for broken __attribute__((alias()))""... $ac_c" 1>&6
2923 echo "configure:2924: checking for broken __attribute__((alias()))" >&5
2924 if eval "test \"`echo '$''{'libc_cv_broken_alias_attribute'+set}'`\" = set"; then
2925 echo $ac_n "(cached) $ac_c" 1>&6
2927 cat > conftest.c
<<EOF
2928 extern int foo (int x) __asm ("xyzzy");
2929 int bar (int x) { return x; }
2930 extern __typeof (bar) foo __attribute ((weak, alias ("bar")));
2932 extern __typeof (dfoo) dfoo __asm ("abccb");
2935 libc_cv_broken_alias_attribute
=yes
2936 if ${CC-cc} -Werror -S conftest.c
-o conftest.s
>/dev
/null
2>&1; then
2937 if grep 'xyzzy' conftest.s
>/dev
/null
&&
2938 grep 'abccb' conftest.s
>/dev
/null
; then
2939 libc_cv_broken_alias_attribute
=no
2942 rm -f conftest.c conftest.s
2946 echo "$ac_t""$libc_cv_broken_alias_attribute" 1>&6
2947 if test $libc_cv_broken_alias_attribute = yes; then
2948 cat >> confdefs.h
<<\EOF
2949 #define HAVE_BROKEN_ALIAS_ATTRIBUTE 1
2954 if test $libc_cv_visibility_attribute = yes -a $gnu_ld = yes; then
2955 echo $ac_n "checking whether to put _rtld_local into .sdata section""... $ac_c" 1>&6
2956 echo "configure:2957: checking whether to put _rtld_local into .sdata section" >&5
2957 if eval "test \"`echo '$''{'libc_cv_have_sdata_section'+set}'`\" = set"; then
2958 echo $ac_n "(cached) $ac_c" 1>&6
2960 echo "int i;" > conftest.c
2961 libc_cv_have_sdata_section
=no
2962 if ${CC-cc} -shared -Wl,--verbose conftest.c
-o conftest.so
2>&1 \
2963 |
grep '\.sdata' >/dev
/null
; then
2964 libc_cv_have_sdata_section
=yes
2966 rm -f conftest.c conftest.so
2970 echo "$ac_t""$libc_cv_have_sdata_section" 1>&6
2971 if test $libc_cv_have_sdata_section = yes; then
2972 cat >> confdefs.h
<<\EOF
2973 #define HAVE_SDATA_SECTION 1
2979 echo $ac_n "checking for .preinit_array/.init_array/.fini_array support""... $ac_c" 1>&6
2980 echo "configure:2981: checking for .preinit_array/.init_array/.fini_array support" >&5
2981 if eval "test \"`echo '$''{'libc_cv_initfinit_array'+set}'`\" = set"; then
2982 echo $ac_n "(cached) $ac_c" 1>&6
2984 cat > conftest.c
<<EOF
2985 int _start (void) { return 0; }
2986 int __start (void) { return 0; }
2987 int foo (void) { return 1; }
2988 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
2990 if { ac_try
='${CC-cc} -o conftest conftest.c
2991 -static -nostartfiles -nostdlib 1>&5'; { (eval echo configure
:2992: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }
2993 if readelf
-S conftest | fgrep INIT_ARRAY
> /dev
/null
; then
2994 libc_cv_initfinit_array
=yes
2996 libc_cv_initfinit_array
=no
2999 libc_cv_initfinit_array
=no
3004 echo "$ac_t""$libc_cv_initfinit_array" 1>&6
3006 if test $libc_cv_initfinit_array = yes; then
3007 cat >> confdefs.h
<<\EOF
3008 #define HAVE_INITFINI_ARRAY 1
3013 echo $ac_n "checking for -z nodelete option""... $ac_c" 1>&6
3014 echo "configure:3015: checking for -z nodelete option" >&5
3015 if eval "test \"`echo '$''{'libc_cv_z_nodelete'+set}'`\" = set"; then
3016 echo $ac_n "(cached) $ac_c" 1>&6
3018 cat > conftest.c
<<EOF
3019 int _start (void) { return 42; }
3021 if { ac_try
='${CC-cc} -shared -o conftest.so conftest.c
3022 -nostartfiles -nostdlib
3023 -Wl,--enable-new-dtags,-z,nodelete 1>&5'; { (eval echo configure
:3024: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }
3025 libc_cv_z_nodelete
=yes
3027 libc_cv_z_nodelete
=no
3032 echo "$ac_t""$libc_cv_z_nodelete" 1>&6
3035 echo $ac_n "checking for -z nodlopen option""... $ac_c" 1>&6
3036 echo "configure:3037: checking for -z nodlopen option" >&5
3037 if eval "test \"`echo '$''{'libc_cv_z_nodlopen'+set}'`\" = set"; then
3038 echo $ac_n "(cached) $ac_c" 1>&6
3040 cat > conftest.c
<<EOF
3041 int _start (void) { return 42; }
3043 if { ac_try
='${CC-cc} -shared -o conftest.so conftest.c
3044 -nostartfiles -nostdlib
3045 -Wl,--enable-new-dtags,-z,nodlopen 1>&5'; { (eval echo configure
:3046: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }
3047 libc_cv_z_nodlopen
=yes
3049 libc_cv_z_nodlopen
=no
3054 echo "$ac_t""$libc_cv_z_nodlopen" 1>&6
3057 echo $ac_n "checking for -z initfirst option""... $ac_c" 1>&6
3058 echo "configure:3059: checking for -z initfirst option" >&5
3059 if eval "test \"`echo '$''{'libc_cv_z_initfirst'+set}'`\" = set"; then
3060 echo $ac_n "(cached) $ac_c" 1>&6
3062 cat > conftest.c
<<EOF
3063 int _start (void) { return 42; }
3065 if { ac_try
='${CC-cc} -shared -o conftest.so conftest.c
3066 -nostartfiles -nostdlib
3067 -Wl,--enable-new-dtags,-z,initfirst 1>&5'; { (eval echo configure
:3068: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }
3069 libc_cv_z_initfirst
=yes
3071 libc_cv_z_initfirst
=no
3076 echo "$ac_t""$libc_cv_z_initfirst" 1>&6
3079 echo $ac_n "checking for -Bgroup option""... $ac_c" 1>&6
3080 echo "configure:3081: checking for -Bgroup option" >&5
3081 if eval "test \"`echo '$''{'libc_cv_Bgroup'+set}'`\" = set"; then
3082 echo $ac_n "(cached) $ac_c" 1>&6
3084 cat > conftest.c
<<EOF
3085 int _start (void) { return 42; }
3087 if { ac_try
='${CC-cc} -shared -o conftest.so conftest.c -Wl,-Bgroup -nostdlib 1>&5'; { (eval echo configure
:3088: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }
3096 echo "$ac_t""$libc_cv_Bgroup" 1>&6
3099 echo $ac_n "checking for -z combreloc""... $ac_c" 1>&6
3100 echo "configure:3101: checking for -z combreloc" >&5
3101 if eval "test \"`echo '$''{'libc_cv_z_combreloc'+set}'`\" = set"; then
3102 echo $ac_n "(cached) $ac_c" 1>&6
3104 cat > conftest.c
<<EOF
3105 extern int bar (int);
3107 int foo (void) { return bar (mumble); }
3109 if { ac_try
='${CC-cc} -shared -o conftest.so conftest.c
3110 -nostdlib -nostartfiles
3111 -Wl,-z,combreloc 1>&5'; { (eval echo configure
:3112: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }
3113 if readelf
-S conftest.so |
grep '\.rel\(a\|\)\.dyn' > /dev
/null
; then
3114 libc_cv_z_combreloc
=yes
3116 libc_cv_z_combreloc
=no
3119 libc_cv_z_combreloc
=no
3124 echo "$ac_t""$libc_cv_z_combreloc" 1>&6
3125 if test "$libc_cv_z_combreloc" = yes; then
3126 cat >> confdefs.h
<<\EOF
3127 #define HAVE_Z_COMBRELOC 1
3134 if test $elf != yes; then
3135 echo $ac_n "checking for .init and .fini sections""... $ac_c" 1>&6
3136 echo "configure:3137: checking for .init and .fini sections" >&5
3137 if eval "test \"`echo '$''{'libc_cv_have_initfini'+set}'`\" = set"; then
3138 echo $ac_n "(cached) $ac_c" 1>&6
3140 cat > conftest.
$ac_ext <<EOF
3141 #line 3142 "configure"
3142 #include "confdefs.h"
3145 asm (".section .init");
3146 asm (".section .fini");
3147 asm ("${libc_cv_dot_text}");
3150 if { (eval echo configure
:3151: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3152 libc_cv_have_initfini
=yes
3154 echo "configure: failed program was:" >&5
3155 cat conftest.
$ac_ext >&5
3157 libc_cv_have_initfini
=no
3162 echo "$ac_t""$libc_cv_have_initfini" 1>&6
3163 if test $libc_cv_have_initfini = yes; then
3164 cat >> confdefs.h
<<\EOF
3165 #define HAVE_INITFINI 1
3171 if test $elf = yes -a $gnu_ld = yes; then
3172 echo $ac_n "checking whether cc puts quotes around section names""... $ac_c" 1>&6
3173 echo "configure:3174: checking whether cc puts quotes around section names" >&5
3174 if eval "test \"`echo '$''{'libc_cv_have_section_quotes'+set}'`\" = set"; then
3175 echo $ac_n "(cached) $ac_c" 1>&6
3177 cat > conftest.c
<<EOF
3178 static const int foo
3179 __attribute__ ((section ("bar"))) = 1;
3181 if ${CC-cc} -S conftest.c
-o conftest.s
; then
3182 if grep '\.section.*"bar"' conftest.s
>/dev
/null
; then
3183 libc_cv_have_section_quotes
=yes
3185 libc_cv_have_section_quotes
=no
3188 libc_cv_have_section_quotes
=unknown
3194 echo "$ac_t""$libc_cv_have_section_quotes" 1>&6
3195 if test $libc_cv_have_section_quotes = yes; then
3196 cat >> confdefs.h
<<\EOF
3197 #define HAVE_SECTION_QUOTES 1
3205 if test $elf = yes; then
3206 libc_cv_asm_underscores
=no
3208 if test $ac_cv_prog_cc_works = yes; then
3209 echo $ac_n "checking for _ prefix on C symbol names""... $ac_c" 1>&6
3210 echo "configure:3211: checking for _ prefix on C symbol names" >&5
3211 if eval "test \"`echo '$''{'libc_cv_asm_underscores'+set}'`\" = set"; then
3212 echo $ac_n "(cached) $ac_c" 1>&6
3214 cat > conftest.
$ac_ext <<EOF
3215 #line 3216 "configure"
3216 #include "confdefs.h"
3217 asm ("_glibc_foobar:");
3222 if { (eval echo configure
:3223: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3224 libc_cv_asm_underscores
=yes
3226 echo "configure: failed program was:" >&5
3227 cat conftest.
$ac_ext >&5
3229 libc_cv_asm_underscores
=no
3234 echo "$ac_t""$libc_cv_asm_underscores" 1>&6
3236 echo $ac_n "checking for _ prefix on C symbol names""... $ac_c" 1>&6
3237 echo "configure:3238: checking for _ prefix on C symbol names" >&5
3238 if eval "test \"`echo '$''{'libc_cv_asm_underscores'+set}'`\" = set"; then
3239 echo $ac_n "(cached) $ac_c" 1>&6
3241 cat > conftest.
$ac_ext <<EOF
3242 #line 3243 "configure"
3243 #include "confdefs.h"
3244 void underscore_test(void) {
3247 if { (eval echo configure
:3248: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3248 if grep _underscore_test conftest
* >/dev
/null
; then
3250 libc_cv_asm_underscores
=yes
3253 libc_cv_asm_underscores
=no
3256 echo "configure: failed program was:" >&5
3257 cat conftest.
$ac_ext >&5
3259 libc_cv_asm_underscores
=no
3264 echo "$ac_t""$libc_cv_asm_underscores" 1>&6
3267 if test $libc_cv_asm_underscores = no
; then
3268 cat >> confdefs.h
<<\EOF
3269 #define NO_UNDERSCORES 1
3274 if test $elf = yes; then
3275 libc_cv_weak_symbols
=yes
3278 echo $ac_n "checking for assembler .weak directive""... $ac_c" 1>&6
3279 echo "configure:3280: checking for assembler .weak directive" >&5
3280 if eval "test \"`echo '$''{'libc_cv_asm_weak_directive'+set}'`\" = set"; then
3281 echo $ac_n "(cached) $ac_c" 1>&6
3283 cat > conftest.s
<<EOF
3285 ${libc_cv_asm_global_directive} foo
3288 .weak bar; bar = foo
3290 if ${CC-cc} $CFLAGS -c conftest.s
2>/dev
/null
; then
3291 libc_cv_asm_weak_directive
=yes
3293 libc_cv_asm_weak_directive
=no
3298 echo "$ac_t""$libc_cv_asm_weak_directive" 1>&6
3300 if test $libc_cv_asm_weak_directive = no
; then
3301 echo $ac_n "checking for assembler .weakext directive""... $ac_c" 1>&6
3302 echo "configure:3303: checking for assembler .weakext directive" >&5
3303 if eval "test \"`echo '$''{'libc_cv_asm_weakext_directive'+set}'`\" = set"; then
3304 echo $ac_n "(cached) $ac_c" 1>&6
3306 cat > conftest.s
<<EOF
3308 ${libc_cv_asm_global_directive} foo
3312 ${libc_cv_asm_global_directive} baz
3315 if ${CC-cc} $CFLAGS -c conftest.s
2>/dev
/null
; then
3316 libc_cv_asm_weakext_directive
=yes
3318 libc_cv_asm_weakext_directive
=no
3323 echo "$ac_t""$libc_cv_asm_weakext_directive" 1>&6
3327 if test $libc_cv_asm_weak_directive = yes; then
3328 cat >> confdefs.h
<<\EOF
3329 #define HAVE_ASM_WEAK_DIRECTIVE 1
3332 elif test $libc_cv_asm_weakext_directive = yes; then
3333 cat >> confdefs.h
<<\EOF
3334 #define HAVE_ASM_WEAKEXT_DIRECTIVE 1
3339 case "${host_cpu}-${host_os}" in
3341 libc_cv_asm_line_sep
='@'
3342 cat >> confdefs.h
<<EOF
3343 #define ASM_LINE_SEP $libc_cv_asm_line_sep
3348 echo $ac_n "checking for assembler line separator""... $ac_c" 1>&6
3349 echo "configure:3350: checking for assembler line separator" >&5
3350 if eval "test \"`echo '$''{'libc_cv_asm_line_sep'+set}'`\" = set"; then
3351 echo $ac_n "(cached) $ac_c" 1>&6
3353 cat > conftest.s
<<EOF
3356 if { ac_try
='${CC-cc} -c $CFLAGS conftest.s 1>&5'; { (eval echo configure
:3357: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
3357 libc_cv_asm_line_sep
='!'
3359 if test -z "$enable_hacker_mode"; then
3360 echo "*** You need a newer assembler to compile glibc"
3364 libc_cv_asm_line_sep
=';'
3369 echo "$ac_t""$libc_cv_asm_line_sep" 1>&6
3370 cat >> confdefs.h
<<EOF
3371 #define ASM_LINE_SEP $libc_cv_asm_line_sep
3377 echo $ac_n "checking for ld --no-whole-archive""... $ac_c" 1>&6
3378 echo "configure:3379: checking for ld --no-whole-archive" >&5
3379 if eval "test \"`echo '$''{'libc_cv_ld_no_whole_archive'+set}'`\" = set"; then
3380 echo $ac_n "(cached) $ac_c" 1>&6
3382 cat > conftest.c
<<\EOF
3387 if { ac_try
='${CC-cc} $CFLAGS
3388 -nostdlib -nostartfiles -Wl,--no-whole-archive
3389 -o conftest conftest.c 1>&5'; { (eval echo configure
:3390: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
3390 libc_cv_ld_no_whole_archive
=yes
3392 libc_cv_ld_no_whole_archive
=no
3397 echo "$ac_t""$libc_cv_ld_no_whole_archive" 1>&6
3398 if test $libc_cv_ld_no_whole_archive = yes; then
3399 no_whole_archive
=-Wl,--no-whole-archive
3402 echo $ac_n "checking for gcc -fexceptions""... $ac_c" 1>&6
3403 echo "configure:3404: checking for gcc -fexceptions" >&5
3404 if eval "test \"`echo '$''{'libc_cv_gcc_exceptions'+set}'`\" = set"; then
3405 echo $ac_n "(cached) $ac_c" 1>&6
3407 cat > conftest.c
<<\EOF
3412 if { ac_try
='${CC-cc} $CFLAGS
3413 -nostdlib -nostartfiles -fexceptions
3414 -o conftest conftest.c 1>&5'; { (eval echo configure
:3415: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
3415 libc_cv_gcc_exceptions
=yes
3417 libc_cv_gcc_exceptions
=no
3422 echo "$ac_t""$libc_cv_gcc_exceptions" 1>&6
3423 if test $libc_cv_gcc_exceptions = yes; then
3424 exceptions
=-fexceptions
3427 if test "$base_machine" = alpha
; then
3428 echo $ac_n "checking for function ..ng prefix""... $ac_c" 1>&6
3429 echo "configure:3430: checking for function ..ng prefix" >&5
3430 if eval "test \"`echo '$''{'libc_cv_gcc_alpha_ng_prefix'+set}'`\" = set"; then
3431 echo $ac_n "(cached) $ac_c" 1>&6
3433 cat > conftest.c
<<\EOF
3436 if { ac_try
='${CC-cc} -S conftest.c -o - | fgrep "\$foo..ng" > /dev/null'; { (eval echo configure
:3437: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; };
3438 libc_cv_gcc_alpha_ng_prefix
=yes
3440 libc_cv_gcc_alpha_ng_prefix
=no
3445 echo "$ac_t""$libc_cv_gcc_alpha_ng_prefix" 1>&6
3446 if test $libc_cv_gcc_alpha_ng_prefix = yes ; then
3447 cat >> confdefs.h
<<\EOF
3448 #define ASM_ALPHA_NG_SYMBOL_PREFIX "$"
3452 cat >> confdefs.h
<<\EOF
3453 #define ASM_ALPHA_NG_SYMBOL_PREFIX ""
3459 if test "$host_cpu" = powerpc
; then
3460 # Check for a bug present in at least versions 2.8.x of GCC
3461 # and versions 1.0.x of EGCS.
3462 echo $ac_n "checking whether clobbering cr0 causes problems""... $ac_c" 1>&6
3463 echo "configure:3464: checking whether clobbering cr0 causes problems" >&5
3464 if eval "test \"`echo '$''{'libc_cv_c_asmcr0_bug'+set}'`\" = set"; then
3465 echo $ac_n "(cached) $ac_c" 1>&6
3467 cat > conftest.
$ac_ext <<EOF
3468 #line 3469 "configure"
3469 #include "confdefs.h"
3470 int tester(int x) { asm ("" : : : "cc"); return x & 123; }
3475 if { (eval echo configure
:3476: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3477 libc_cv_c_asmcr0_bug
='no'
3479 echo "configure: failed program was:" >&5
3480 cat conftest.
$ac_ext >&5
3482 libc_cv_c_asmcr0_bug
='yes'
3487 echo "$ac_t""$libc_cv_c_asmcr0_bug" 1>&6
3488 if test "$libc_cv_c_asmcr0_bug" != 'no'; then
3489 cat >> confdefs.h
<<\EOF
3490 #define BROKEN_PPC_ASM_CR0 1
3496 echo $ac_n "checking for DWARF2 unwind info support""... $ac_c" 1>&6
3497 echo "configure:3498: checking for DWARF2 unwind info support" >&5
3498 if eval "test \"`echo '$''{'libc_cv_gcc_dwarf2_unwind_info'+set}'`\" = set"; then
3499 echo $ac_n "(cached) $ac_c" 1>&6
3501 cat > conftest.c
<<EOF
3502 #line 3503 "configure"
3503 static char *__EH_FRAME_BEGIN__;
3506 #ifdef CHECK__register_frame
3507 __register_frame (__EH_FRAME_BEGIN__);
3508 __deregister_frame (__EH_FRAME_BEGIN__);
3510 #ifdef CHECK__register_frame_info
3511 __register_frame_info (__EH_FRAME_BEGIN__);
3512 __deregister_frame_info (__EH_FRAME_BEGIN__);
3517 /* FIXME: this is fragile. */
3527 if { ac_try
='${CC-cc} $CFLAGS -DCHECK__register_frame_info
3528 -nostdlib -nostartfiles
3529 -o conftest conftest.c -lgcc >&5'; { (eval echo configure
:3530: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
3530 libc_cv_gcc_dwarf2_unwind_info
=static
3532 libc_cv_gcc_dwarf2_unwind_info
=no
3534 if { ac_try
='${CC-cc} $CFLAGS -DCHECK__register_frame_info
3535 -nostdlib -nostartfiles
3536 -o conftest conftest.c -lgcc -lgcc_eh >&5'; { (eval echo configure
:3537: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
3537 if ${CC-cc} $CFLAGS -DCHECK__register_frame_info -nostdlib -nostartfiles \
3538 -o conftest conftest.c
-lgcc -lgcc_eh -v 2>&1 >/dev
/null \
3539 |
grep -q -- --eh-frame-hdr; then
3540 libc_cv_gcc_dwarf2_unwind_info
=no_registry_needed
3542 libc_cv_gcc_dwarf2_unwind_info
=static
3545 libc_cv_gcc_dwarf2_unwind_info
=no
3547 if test $libc_cv_gcc_dwarf2_unwind_info = no
; then
3548 if { ac_try
='${CC-cc} $CFLAGS -DCHECK__register_frame
3549 -nostdlib -nostartfiles
3550 -o conftest conftest.c -lgcc >&5'; { (eval echo configure
:3551: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
3551 libc_cv_gcc_dwarf2_unwind_info
=yes
3553 libc_cv_gcc_dwarf2_unwind_info
=no
3559 echo "$ac_t""$libc_cv_gcc_dwarf2_unwind_info" 1>&6
3560 case $libc_cv_gcc_dwarf2_unwind_info in
3562 cat >> confdefs.h
<<\EOF
3563 #define HAVE_DWARF2_UNWIND_INFO 1
3568 cat >> confdefs.h
<<\EOF
3569 #define HAVE_DWARF2_UNWIND_INFO 1
3572 cat >> confdefs.h
<<\EOF
3573 #define HAVE_DWARF2_UNWIND_INFO_STATIC 1
3579 echo $ac_n "checking for __builtin_expect""... $ac_c" 1>&6
3580 echo "configure:3581: checking for __builtin_expect" >&5
3581 if eval "test \"`echo '$''{'libc_cv_gcc_builtin_expect'+set}'`\" = set"; then
3582 echo $ac_n "(cached) $ac_c" 1>&6
3584 cat > conftest.c
<<EOF
3585 #line 3586 "configure"
3588 a = __builtin_expect (a, 10);
3589 return a == 10 ? 0 : 1;
3592 if { ac_try
='${CC-cc} $CFLAGS -nostdlib -nostartfiles
3593 -o conftest conftest.c -lgcc >&5'; { (eval echo configure
:3594: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
3594 libc_cv_gcc_builtin_expect
=yes
3596 libc_cv_gcc_builtin_expect
=no
3601 echo "$ac_t""$libc_cv_gcc_builtin_expect" 1>&6
3602 if test "$libc_cv_gcc_builtin_expect" = yes; then
3603 cat >> confdefs.h
<<\EOF
3604 #define HAVE_BUILTIN_EXPECT 1
3609 echo $ac_n "checking for __builtin_memset""... $ac_c" 1>&6
3610 echo "configure:3611: checking for __builtin_memset" >&5
3611 if eval "test \"`echo '$''{'libc_cv_gcc_builtin_memset'+set}'`\" = set"; then
3612 echo $ac_n "(cached) $ac_c" 1>&6
3614 cat > conftest.c
<<\EOF
3617 __builtin_memset
(x
, 0, 1000);
3620 if { ac_try
='${CC-cc} -O3 -S conftest.c -o - | fgrep "memset" > /dev/null'; { (eval echo configure
:3621: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; };
3622 libc_cv_gcc_builtin_memset
=no
3624 libc_cv_gcc_builtin_memset
=yes
3629 echo "$ac_t""$libc_cv_gcc_builtin_memset" 1>&6
3630 if test "$libc_cv_gcc_builtin_memset" = yes ; then
3631 cat >> confdefs.h
<<\EOF
3632 #define HAVE_BUILTIN_MEMSET 1
3637 echo $ac_n "checking for local label subtraction""... $ac_c" 1>&6
3638 echo "configure:3639: checking for local label subtraction" >&5
3639 if eval "test \"`echo '$''{'libc_cv_gcc_subtract_local_labels'+set}'`\" = set"; then
3640 echo $ac_n "(cached) $ac_c" 1>&6
3642 cat > conftest.c
<<EOF
3643 #line 3644 "configure"
3646 static const int ar[] = { &&l1 - &&l1, &&l2 - &&l1 };
3647 void *p = &&l1 + ar[a];
3655 if { ac_try
='${CC-cc} $CFLAGS -nostdlib -nostartfiles
3656 -o conftest conftest.c -lgcc >&5'; { (eval echo configure
:3657: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
3657 libc_cv_gcc_subtract_local_labels
=yes
3659 libc_cv_gcc_subtract_local_labels
=no
3664 echo "$ac_t""$libc_cv_gcc_subtract_local_labels" 1>&6
3665 if test "$libc_cv_gcc_subtract_local_labels" = yes; then
3666 cat >> confdefs.h
<<\EOF
3667 #define HAVE_SUBTRACT_LOCAL_LABELS 1
3672 echo $ac_n "checking for __thread""... $ac_c" 1>&6
3673 echo "configure:3674: checking for __thread" >&5
3674 if eval "test \"`echo '$''{'libc_cv_gcc___thread'+set}'`\" = set"; then
3675 echo $ac_n "(cached) $ac_c" 1>&6
3677 cat > conftest.c
<<EOF
3678 __thread int a = 42;
3680 if { ac_try
='${CC-cc} $CFLAGS -c conftest.c >&5'; { (eval echo configure
:3681: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
3681 libc_cv_gcc___thread
=yes
3683 libc_cv_gcc___thread
=no
3688 echo "$ac_t""$libc_cv_gcc___thread" 1>&6
3689 if test "$libc_cv_gcc___thread" = yes; then
3690 cat >> confdefs.h
<<\EOF
3691 #define HAVE___THREAD 1
3697 echo $ac_n "checking for libgd""... $ac_c" 1>&6
3698 echo "configure:3699: checking for libgd" >&5
3699 if test "$with_gd" != "no"; then
3700 old_CFLAGS
="$CFLAGS"
3701 CFLAGS
="$CFLAGS $libgd_include"
3702 old_LDFLAGS
="$LDFLAGS"
3703 LDFLAGS
="$LDFLAGS $libgd_ldflags"
3705 LIBS
="$LIBS -lgd -lpng -lz -lm"
3706 cat > conftest.
$ac_ext <<EOF
3707 #line 3708 "configure"
3708 #include "confdefs.h"
3714 if { (eval echo configure
:3715: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3718 echo "configure: failed program was:" >&5
3719 cat conftest.
$ac_ext >&5
3724 CFLAGS
="$old_CFLAGS"
3725 LDFLAGS
="$old_LDFLAGS"
3730 echo "$ac_t""$LIBGD" 1>&6
3733 echo $ac_n "checking size of long double""... $ac_c" 1>&6
3734 echo "configure:3735: checking size of long double" >&5
3735 if eval "test \"`echo '$''{'ac_cv_sizeof_long_double'+set}'`\" = set"; then
3736 echo $ac_n "(cached) $ac_c" 1>&6
3738 if test "$cross_compiling" = yes; then
3739 ac_cv_sizeof_long_double
=0
3741 cat > conftest.
$ac_ext <<EOF
3742 #line 3743 "configure"
3743 #include "confdefs.h"
3747 FILE *f=fopen("conftestval", "w");
3749 fprintf(f, "%d\n", sizeof(long double));
3753 if { (eval echo configure
:3754: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3755 ac_cv_sizeof_long_double
=`cat conftestval`
3757 echo "configure: failed program was:" >&5
3758 cat conftest.
$ac_ext >&5
3760 ac_cv_sizeof_long_double
=0
3766 echo "$ac_t""$ac_cv_sizeof_long_double" 1>&6
3767 cat >> confdefs.h
<<EOF
3768 #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
3772 sizeof_long_double
=$ac_cv_sizeof_long_double
3775 ### End of automated tests.
3776 ### Now run sysdeps configure fragments.
3778 # sysdeps configure fragments may set these with files to be linked below.
3782 # They also can set these variables.
3784 ldd_rewrite_script
=no
3785 libc_cv_sysconfdir
=$sysconfdir
3786 libc_cv_gcc_unwind_find_fde
=no
3788 # Iterate over all the sysdep directories we will use, running their
3789 # configure fragments, and looking for a uname implementation.
3791 for dir
in $sysnames; do
3794 *) dest
=$srcdir/$dir ;;
3796 if test -r $dest/configure
; then
3797 echo "$ac_t""running configure fragment for $dest" 1>&6
3801 if test -z "$uname"; then
3802 if test -r $dest/uname.c ||
3803 test -r $dest/uname.S ||
3804 { test -r $dest/syscalls.list
&&
3805 grep '^uname[ ]' $dest/syscalls.list
>/dev
/null
; }; then
3811 if test x
$libc_cv_gcc_unwind_find_fde = xyes
; then
3812 cat >> confdefs.h
<<\EOF
3813 #define EXPORT_UNWIND_FIND_FDE 1
3821 # If we will use the generic uname implementation, we must figure out what
3822 # it will say by examining the system, and write the results in config-name.h.
3823 if test "$uname" = "sysdeps/generic"; then
3825 uname_sysname
=`echo $config_os | sed 's/[0-9.]*$//'`
3826 if test $uname_sysname != $config_os; then
3827 config_release
=`echo $config_os | sed s/$uname_sysname//`
3830 echo $ac_n "checking OS release for uname""... $ac_c" 1>&6
3831 echo "configure:3832: checking OS release for uname" >&5
3832 if eval "test \"`echo '$''{'libc_cv_uname_release'+set}'`\" = set"; then
3833 echo $ac_n "(cached) $ac_c" 1>&6
3835 kernel_release
=`echo "$kernel_id" | sed 's/^[^0-9.]*\([0-9.]*\).*$/\1/'`
3836 if test x
`echo "$config_release" | sed "s/^$kernel_release//"` \
3837 != x
$config_release; then
3838 # The configuration release is a substring of the kernel release.
3839 libc_cv_uname_release
=$kernel_release
3840 elif test x
$config_release != x
; then
3841 libc_cv_uname_release
=$config_release
3842 elif test x
$kernel_release != x
; then
3843 libc_cv_uname_release
=$kernel_release
3845 libc_cv_uname_release
=unknown
3849 echo "$ac_t""$libc_cv_uname_release" 1>&6
3850 uname_release
="$libc_cv_uname_release"
3852 echo $ac_n "checking OS version for uname""... $ac_c" 1>&6
3853 echo "configure:3854: checking OS version for uname" >&5
3854 if eval "test \"`echo '$''{'libc_cv_uname_version'+set}'`\" = set"; then
3855 echo $ac_n "(cached) $ac_c" 1>&6
3857 kernel_version
=`echo "$kernel_id" | sed 's/^[^#]*#\([0-9]*\).*$/\1/'`
3858 if test -n "$kernel_version"; then
3859 libc_cv_uname_version
="$kernel_version"
3861 libc_cv_uname_version
=unknown
3865 echo "$ac_t""$libc_cv_uname_version" 1>&6
3866 uname_version
="$libc_cv_uname_version"
3868 config_uname
=config-name.h
:config-name.
in
3870 # For non-generic uname, we don't need to create config-name.h at all.
3874 cat >> confdefs.h
<<\EOF
3875 #define USE_IN_LIBIO 1
3879 # Test for old glibc 2.0.x headers so that they can be removed properly
3880 # Search only in includedir.
3881 echo $ac_n "checking for old glibc 2.0.x headers""... $ac_c" 1>&6
3882 echo "configure:3883: checking for old glibc 2.0.x headers" >&5
3883 if eval test -f "${includedir}/elfclass.h" -a -f "${includedir}/fcntlbits.h"
3885 old_glibc_headers
=yes
3887 old_glibc_headers
=no
3889 echo "$ac_t""$old_glibc_headers" 1>&6
3890 if test ${old_glibc_headers} = yes; then
3891 echo "configure: warning: *** During \"make install\" old headers from glibc 2.0.x will" 1>&2
3892 echo "configure: warning: *** be removed." 1>&2
3905 if test $gnu_ld = yes; then
3906 cat >> confdefs.h
<<\EOF
3907 #define HAVE_GNU_LD 1
3911 if test $gnu_as = yes; then
3912 cat >> confdefs.h
<<\EOF
3913 #define HAVE_GNU_AS 1
3917 if test $elf = yes; then
3918 cat >> confdefs.h
<<\EOF
3923 if test $xcoff = yes; then
3924 cat >> confdefs.h
<<\EOF
3925 #define HAVE_XCOFF 1
3932 if test $shared = default
; then
3933 if test $gnu_ld = yes; then
3936 # For now we do not assume shared libs are available. In future more
3937 # tests might become available.
3942 echo $ac_n "checking whether -fPIC is default""... $ac_c" 1>&6
3943 echo "configure:3944: checking whether -fPIC is default" >&5
3944 if eval "test \"`echo '$''{'pic_default'+set}'`\" = set"; then
3945 echo $ac_n "(cached) $ac_c" 1>&6
3948 cat > conftest.c
<<EOF
3949 #if defined __PIC__ || defined __pic__ || defined PIC || defined pic
3950 # error PIC is default.
3953 if eval "${CC-cc} -S conftest.c 2>&5 1>&5"; then
3959 echo "$ac_t""$pic_default" 1>&6
3971 *door
*) linux_doors
=yes ;;
3972 *) linux_doors
=no
;;
3978 if test "`(cd $srcdir; pwd)`" = "`pwd`"; then
3981 config_makefile
=Makefile
3984 VERSION
=`sed -n -e 's/^#define VERSION "\([^"]*\)"/\1/p' < $srcdir/version.h`
3985 RELEASE
=`sed -n -e 's/^#define RELEASE "\([^"]*\)"/\1/p' < $srcdir/version.h`
3990 cat > confcache
<<\EOF
3991 # This file is a shell script that caches the results of configure
3992 # tests run on this system so they can be shared between configure
3993 # scripts and configure runs. It is not useful on other systems.
3994 # If it contains results you don't want to keep, you may remove or edit it.
3996 # By default, configure uses ./config.cache as the cache file,
3997 # creating it if it does not exist already. You can give configure
3998 # the --cache-file=FILE option to use a different cache file; that is
3999 # what configure does when it calls configure scripts in
4000 # subdirectories, so they share the cache.
4001 # Giving --cache-file=/dev/null disables caching, for debugging configure.
4002 # config.status only pays attention to the cache file if you give it the
4003 # --recheck option to rerun configure.
4006 # The following way of writing the cache mishandles newlines in values,
4007 # but we know of no workaround that is simple, portable, and efficient.
4008 # So, don't put newlines in cache variables' values.
4009 # Ultrix sh set writes to stderr and can't be redirected directly,
4010 # and sets the high bit in the cache file unless we assign to the vars.
4012 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4014 # `set' does not quote correctly, so add quotes (double-quote substitution
4015 # turns \\\\ into \\, and sed turns \\ into \).
4017 -e "s/'/'\\\\''/g" \
4018 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
4021 # `set' quotes correctly as required by POSIX, so do not add quotes.
4022 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
4025 if cmp -s $cache_file confcache
; then
4028 if test -w $cache_file; then
4029 echo "updating cache $cache_file"
4030 cat confcache
> $cache_file
4032 echo "not updating unwritable cache $cache_file"
4037 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
4039 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
4040 # Let make expand exec_prefix.
4041 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
4043 # Any assignment to VPATH causes Sun make to only execute
4044 # the first set of double-colon rules, so remove it if not needed.
4045 # If there is a colon in the path, we need to keep it.
4046 if test "x$srcdir" = x.
; then
4047 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
4050 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
4052 DEFS
=-DHAVE_CONFIG_H
4054 # Without the "./", some shells look in PATH for config.status.
4055 : ${CONFIG_STATUS=./config.status}
4057 echo creating
$CONFIG_STATUS
4058 rm -f $CONFIG_STATUS
4059 cat > $CONFIG_STATUS <<EOF
4061 # Generated automatically by configure.
4062 # Run this file to recreate the current configuration.
4063 # This directory was configured as follows,
4064 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
4066 # $0 $ac_configure_args
4068 # Compiler output produced by configure, useful for debugging
4069 # configure, is in ./config.log if it exists.
4071 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
4074 case "\$ac_option" in
4075 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4076 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
4077 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
4078 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
4079 echo "$CONFIG_STATUS generated by autoconf version 2.13"
4081 -help | --help | --hel | --he | --h)
4082 echo "\$ac_cs_usage"; exit 0 ;;
4083 *) echo "\$ac_cs_usage"; exit 1 ;;
4087 ac_given_srcdir=$srcdir
4088 ac_given_INSTALL="$INSTALL"
4090 trap 'rm -fr `echo "config.make glibcbug ${config_makefile} ${config_uname} config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
4092 cat >> $CONFIG_STATUS <<EOF
4094 # Protect against being on the right side of a sed subst in config.status.
4095 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
4096 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
4100 s%@CFLAGS@%$CFLAGS%g
4101 s%@CPPFLAGS@%$CPPFLAGS%g
4102 s%@CXXFLAGS@%$CXXFLAGS%g
4103 s%@FFLAGS@%$FFLAGS%g
4105 s%@LDFLAGS@%$LDFLAGS%g
4107 s%@exec_prefix@%$exec_prefix%g
4108 s%@prefix@%$prefix%g
4109 s%@program_transform_name@%$program_transform_name%g
4110 s%@bindir@%$bindir%g
4111 s%@sbindir@%$sbindir%g
4112 s%@libexecdir@%$libexecdir%g
4113 s%@datadir@%$datadir%g
4114 s%@sysconfdir@%$sysconfdir%g
4115 s%@sharedstatedir@%$sharedstatedir%g
4116 s%@localstatedir@%$localstatedir%g
4117 s%@libdir@%$libdir%g
4118 s%@includedir@%$includedir%g
4119 s%@oldincludedir@%$oldincludedir%g
4120 s%@infodir@%$infodir%g
4121 s%@mandir@%$mandir%g
4122 s%@with_fp@%$with_fp%g
4123 s%@with_cvs@%$with_cvs%g
4124 s%@oldest_abi@%$oldest_abi%g
4125 s%@subdirs@%$subdirs%g
4126 s%@force_install@%$force_install%g
4127 s%@all_warnings@%$all_warnings%g
4129 s%@host_alias@%$host_alias%g
4130 s%@host_cpu@%$host_cpu%g
4131 s%@host_vendor@%$host_vendor%g
4132 s%@host_os@%$host_os%g
4133 s%@base_machine@%$base_machine%g
4134 s%@sysnames@%$sysnames%g
4135 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
4136 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
4137 s%@INSTALL_DATA@%$INSTALL_DATA%g
4141 s%@build_alias@%$build_alias%g
4142 s%@build_cpu@%$build_cpu%g
4143 s%@build_vendor@%$build_vendor%g
4144 s%@build_os@%$build_os%g
4147 s%@MSGFMT@%$MSGFMT%g
4148 s%@MAKEINFO@%$MAKEINFO%g
4150 s%@cross_linkable@%$cross_linkable%g
4151 s%@BUILD_CC@%$BUILD_CC%g
4152 s%@cross_compiling@%$cross_compiling%g
4155 s%@RANLIB@%$RANLIB%g
4157 s%@CCVERSION@%$CCVERSION%g
4158 s%@SYSINCLUDES@%$SYSINCLUDES%g
4159 s%@libc_cv_gcc_static_libgcc@%$libc_cv_gcc_static_libgcc%g
4161 s%@libc_cv_have_bash2@%$libc_cv_have_bash2%g
4163 s%@libc_cv_have_ksh@%$libc_cv_have_ksh%g
4166 s%@INSTALL_INFO@%$INSTALL_INFO%g
4167 s%@OLD_DEBIAN_INSTALL_INFO@%$OLD_DEBIAN_INSTALL_INFO%g
4169 s%@VERSIONING@%$VERSIONING%g
4170 s%@libc_cv_asm_protected_directive@%$libc_cv_asm_protected_directive%g
4171 s%@libc_cv_initfinit_array@%$libc_cv_initfinit_array%g
4172 s%@libc_cv_z_nodelete@%$libc_cv_z_nodelete%g
4173 s%@libc_cv_z_nodlopen@%$libc_cv_z_nodlopen%g
4174 s%@libc_cv_z_initfirst@%$libc_cv_z_initfirst%g
4175 s%@libc_cv_Bgroup@%$libc_cv_Bgroup%g
4176 s%@libc_cv_z_combreloc@%$libc_cv_z_combreloc%g
4177 s%@libc_cv_have_initfini@%$libc_cv_have_initfini%g
4178 s%@no_whole_archive@%$no_whole_archive%g
4179 s%@exceptions@%$exceptions%g
4181 s%@sizeof_long_double@%$sizeof_long_double%g
4182 s%@libc_cv_gcc_unwind_find_fde@%$libc_cv_gcc_unwind_find_fde%g
4183 s%@uname_sysname@%$uname_sysname%g
4184 s%@uname_release@%$uname_release%g
4185 s%@uname_version@%$uname_version%g
4186 s%@old_glibc_headers@%$old_glibc_headers%g
4187 s%@libc_cv_slibdir@%$libc_cv_slibdir%g
4188 s%@libc_cv_localedir@%$libc_cv_localedir%g
4189 s%@libc_cv_sysconfdir@%$libc_cv_sysconfdir%g
4190 s%@libc_cv_rootsbindir@%$libc_cv_rootsbindir%g
4191 s%@use_ldconfig@%$use_ldconfig%g
4192 s%@ldd_rewrite_script@%$ldd_rewrite_script%g
4193 s%@gnu_ld@%$gnu_ld%g
4194 s%@gnu_as@%$gnu_as%g
4197 s%@static@%$static%g
4198 s%@shared@%$shared%g
4199 s%@pic_default@%$pic_default%g
4200 s%@profile@%$profile%g
4201 s%@omitfp@%$omitfp%g
4202 s%@bounded@%$bounded%g
4203 s%@static_nss@%$static_nss%g
4204 s%@nopic_initfini@%$nopic_initfini%g
4205 s%@DEFINES@%$DEFINES%g
4206 s%@linux_doors@%$linux_doors%g
4207 s%@mach_interface_list@%$mach_interface_list%g
4208 s%@VERSION@%$VERSION%g
4209 s%@RELEASE@%$RELEASE%g
4214 cat >> $CONFIG_STATUS <<\EOF
4216 # Split the substitutions into bite-sized pieces for seds with
4217 # small command number limits, like on Digital OSF/1 and HP-UX.
4218 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
4219 ac_file
=1 # Number of current file.
4220 ac_beg
=1 # First line for current file.
4221 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
4224 while $ac_more_lines; do
4225 if test $ac_beg -gt 1; then
4226 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
4228 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
4230 if test ! -s conftest.s
$ac_file; then
4232 rm -f conftest.s
$ac_file
4234 if test -z "$ac_sed_cmds"; then
4235 ac_sed_cmds
="sed -f conftest.s$ac_file"
4237 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
4239 ac_file
=`expr $ac_file + 1`
4241 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
4244 if test -z "$ac_sed_cmds"; then
4249 cat >> $CONFIG_STATUS <<EOF
4251 CONFIG_FILES=\${CONFIG_FILES-"config.make glibcbug ${config_makefile} ${config_uname}"}
4253 cat >> $CONFIG_STATUS <<\EOF
4254 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
4255 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4257 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
4258 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
4259 *) ac_file_in
="${ac_file}.in" ;;
4262 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
4264 # Remove last slash and all that follows it. Not all systems have dirname.
4265 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
4266 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
4267 # The file is in a subdirectory.
4268 test ! -d "$ac_dir" && mkdir
"$ac_dir"
4269 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
4270 # A "../" for each directory in $ac_dir_suffix.
4271 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
4273 ac_dir_suffix
= ac_dots
=
4276 case "$ac_given_srcdir" in
4278 if test -z "$ac_dots"; then top_srcdir
=.
4279 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
4280 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
4282 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
4283 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
4286 case "$ac_given_INSTALL" in
4287 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
4288 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
4291 echo creating
"$ac_file"
4293 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
4295 *Makefile
*) ac_comsub
="1i\\
4296 # $configure_input" ;;
4300 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4302 s%@configure_input@%$configure_input%g
4303 s%@srcdir@%$srcdir%g
4304 s%@top_srcdir@%$top_srcdir%g
4305 s%@INSTALL@%$INSTALL%g
4306 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
4310 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
4311 # NAME is the cpp macro being defined and VALUE is the value it is being given.
4313 # ac_d sets the value in "#define NAME VALUE" lines.
4314 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
4315 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
4318 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
4319 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
4320 ac_uB
='\([ ]\)%\1#\2define\3'
4323 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
4324 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
4325 ac_eB
='$%\1#\2define\3'
4329 if test "${CONFIG_HEADERS+set}" != set; then
4331 cat >> $CONFIG_STATUS <<EOF
4332 CONFIG_HEADERS="config.h"
4334 cat >> $CONFIG_STATUS <<\EOF
4336 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
4337 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4339 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
4340 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
4341 *) ac_file_in
="${ac_file}.in" ;;
4344 echo creating
$ac_file
4346 rm -f conftest.frag conftest.
in conftest.out
4347 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4348 cat $ac_file_inputs > conftest.
in
4352 # Transform confdefs.h into a sed script conftest.vals that substitutes
4353 # the proper values into config.h.in to produce config.h. And first:
4354 # Protect against being on the right side of a sed subst in config.status.
4355 # Protect against being in an unquoted here document in config.status.
4357 cat > conftest.hdr
<<\EOF
4360 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
4364 sed -n -f conftest.hdr confdefs.h > conftest.vals
4367 # This sed command replaces #undef with comments. This is necessary, for
4368 # example, in the case of _POSIX_SOURCE, which is predefined and required
4369 # on some systems where configure will not decide to define it.
4370 cat >> conftest.vals <<\EOF
4371 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
4374 # Break up conftest.vals because some shells have a limit on
4375 # the size of here documents, and old seds have small limits too.
4380 ac_lines=`grep -c . conftest.vals
`
4381 # grep -c gives empty output for an empty file on some AIX systems.
4382 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
4383 # Write a limited-size here document to conftest.frag.
4384 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
4385 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
4387 sed -f conftest.frag conftest.in > conftest.out
4389 mv conftest.out conftest.in
4391 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
4393 mv conftest.tail conftest.vals
4397 cat >> $CONFIG_STATUS <<\EOF
4398 rm -f conftest.frag conftest.h
4399 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
4400 cat conftest.in >> conftest.h
4402 if cmp -s $ac_file conftest.h 2>/dev/null; then
4403 echo "$ac_file is unchanged"
4406 # Remove last slash and all that follows it. Not all systems have dirname.
4407 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
4408 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
4409 # The file is in a subdirectory.
4410 test ! -d "$ac_dir" && mkdir "$ac_dir"
4413 mv conftest.h $ac_file
4419 cat >> $CONFIG_STATUS <<EOF
4420 ac_sources="`echo $libc_link_sources`"
4421 ac_dests="`echo $libc_link_dests`"
4424 cat >> $CONFIG_STATUS <<\EOF
4425 srcdir=$ac_given_srcdir
4426 while test -n "$ac_sources"; do
4427 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
4428 set $ac_sources; ac_source=$1; shift; ac_sources=$*
4430 echo "linking $srcdir/$ac_source to $ac_dest"
4432 if test ! -r $srcdir/$ac_source; then
4433 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
4437 # Make relative symlinks.
4438 # Remove last slash and all that follows it. Not all systems have dirname.
4439 ac_dest_dir=`echo $ac_dest|
sed 's%/[^/][^/]*$%%'`
4440 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
4441 # The dest file is in a subdirectory.
4442 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
4443 ac_dest_dir_suffix="/`echo $ac_dest_dir|
sed 's%^\./%%'`"
4444 # A "../" for each directory in $ac_dest_dir_suffix.
4445 ac_dots=`echo $ac_dest_dir_suffix|
sed 's%/[^/]*%../%g'`
4447 ac_dest_dir_suffix= ac_dots=
4451 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
4452 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
4455 # Make a symlink if possible; otherwise try a hard link.
4456 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
4457 ln $srcdir/$ac_source $ac_dest; then :
4459 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
4463 cat >> $CONFIG_STATUS <<EOF
4464 config_vars='$config_vars'
4466 cat >> $CONFIG_STATUS <<\EOF
4468 case $CONFIG_FILES in *config.make*)
4469 echo "$config_vars" >> config.make;;
4471 test -d bits || mkdir bits
4474 chmod +x $CONFIG_STATUS
4475 rm -fr confdefs* $ac_clean_files
4476 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
4478 if test "$no_recursion" != yes; then
4480 # Remove --cache-file and --srcdir arguments so they do not pile up.
4481 ac_sub_configure_args=
4483 for ac_arg in $ac_configure_args; do
4484 if test -n "$ac_prev"; then
4489 -cache-file | --cache-file | --cache-fil | --cache-fi \
4490 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
4491 ac_prev=cache_file ;;
4492 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
4493 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
4495 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
4497 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
4499 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
4503 for ac_config_dir in $add_ons; do
4505 # Do not complain, so a configure script can configure whichever
4506 # parts of a large source tree are present.
4507 if test ! -d $srcdir/$ac_config_dir; then
4511 echo configuring in $ac_config_dir
4516 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
4518 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
4526 # A "../" for each directory in /$ac_config_dir.
4527 ac_dots=`echo $ac_config_dir|
sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
4530 .) # No --srcdir option. We are building in place.
4531 ac_sub_srcdir=$srcdir ;;
4532 /*) # Absolute path.
4533 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
4535 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
4538 # Check for guested configure; otherwise get Cygnus style configure.
4539 if test -f $ac_sub_srcdir/configure; then
4540 ac_sub_configure=$ac_sub_srcdir/configure
4541 elif test -f $ac_sub_srcdir/configure.in; then
4542 ac_sub_configure=$ac_configure
4544 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
4548 # The recursion is here.
4549 if test -n "$ac_sub_configure"; then
4551 # Make the cache file name correct relative to the subdirectory.
4552 case "$cache_file" in
4553 /*) ac_sub_cache_file=$cache_file ;;
4555 ac_sub_cache_file="$ac_dots$cache_file" ;;
4557 case "$ac_given_INSTALL" in
4558 [/$]*) INSTALL="$ac_given_INSTALL" ;;
4559 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
4562 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
4563 # The eval makes quoting arguments work.
4564 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
4567 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }