2 # From configure.in CVSid.
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.57 for GNU C Library (see version.h).
6 # Report bugs to <glibc>.
8 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
9 # Free Software Foundation, Inc.
10 # This configure script is free software; the Free Software Foundation
11 # gives unlimited permission to copy, distribute and modify it.
12 ## --------------------- ##
13 ## M4sh Initialization. ##
14 ## --------------------- ##
16 # Be Bourne compatible
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
27 # Support unset when possible.
28 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
35 # Work around bugs in pre-3.0 UWIN ksh.
36 $as_unset ENV MAIL MAILPATH
43 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
44 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
47 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
48 eval $as_var=C; export $as_var
54 # Required to use basename.
55 if expr a : '\(a\)' >/dev/null 2>&1; then
61 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
68 # Name of the executable.
69 as_me=`$as_basename "$0" ||
70 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
71 X"$0" : 'X\(//\)$' \| \
72 X"$0" : 'X\(/\)$' \| \
73 . : '\(.\)' 2>/dev/null ||
75 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
76 /^X\/\(\/\/\)$/{ s//\1/; q; }
77 /^X\/\(\/\).*/{ s//\1/; q; }
81 # PATH needs CR, and LINENO needs CR and PATH.
82 # Avoid depending upon Character Ranges.
83 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
84 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
85 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
86 as_cr_digits='0123456789'
87 as_cr_alnum=$as_cr_Letters$as_cr_digits
89 # The user is always right.
90 if test "${PATH_SEPARATOR+set}" != set; then
91 echo "#! /bin/sh" >conf$$.sh
92 echo "exit 0" >>conf$$.sh
94 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
105 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
106 test "x$as_lineno_1" != "x$as_lineno_2" &&
107 test "x$as_lineno_3" = "x$as_lineno_2" || {
108 # Find who we are. Look in the path if we contain no path at all
111 *[\\/]* ) as_myself=$0 ;;
112 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
116 test -z "$as_dir" && as_dir=.
117 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
122 # We did not find ourselves, most probably we were run as `sh COMMAND'
123 # in which case we are not to be found in the path.
124 if test "x$as_myself" = x; then
127 if test ! -f "$as_myself"; then
128 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
129 { (exit 1); exit 1; }; }
131 case $CONFIG_SHELL in
133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
134 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
137 test -z "$as_dir" && as_dir=.
138 for as_base in sh bash ksh sh5; do
141 if ("$as_dir/$as_base" -c '
144 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
145 test "x$as_lineno_1" != "x$as_lineno_2" &&
146 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
147 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
148 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
149 CONFIG_SHELL=$as_dir/$as_base
151 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
159 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
160 # uniformly replaced by the line number. The first 'sed' inserts a
161 # line-number line before each line; the second 'sed' does the real
162 # work. The second script uses 'N' to pair each line-number line
163 # with the numbered line, and appends trailing '-' during
164 # substitution so that $LINENO is not a special case at line end.
165 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
166 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
167 sed '=' <$as_myself |
172 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
175 s,^['$as_cr_digits']*\n,,
177 chmod +x $as_me.lineno ||
178 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
179 { (exit 1); exit 1; }; }
181 # Don't try to exec as it changes $[0], causing all sort of problems
182 # (the dirname of $[0] is not the place where we might find the
183 # original and so on. Autoconf is especially sensible to this).
185 # Exit status is that of the last command.
190 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
191 *c*,-n*) ECHO_N= ECHO_C='
193 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
194 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
197 if expr a : '\(a\)' >/dev/null 2>&1; then
203 rm -f conf$$ conf$$.exe conf$$.file
205 if ln -s conf$$.file conf$$ 2>/dev/null; then
206 # We could just check for DJGPP; but this test a) works b) is more generic
207 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
208 if test -f conf$$.exe; then
209 # Don't use ln at all; we don't have any links
214 elif ln conf$$.file conf$$ 2>/dev/null; then
219 rm -f conf$$ conf$$.exe conf$$.file
221 if mkdir -p . 2>/dev/null; then
227 as_executable_p="test -f"
229 # Sed expression to map a string onto a valid CPP name.
230 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
232 # Sed expression to map a string onto a valid variable name.
233 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
237 # We need space, tab and new line, in precisely that order.
247 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
248 # so uname gets run too.
249 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
256 ac_default_prefix=/usr/local
257 ac_config_libobj_dir=.
262 SHELL=${CONFIG_SHELL-/bin/sh}
264 # Maximum number of lines to put in a shell here document.
265 # This variable seems obsolete. It should probably be removed, and
266 # only ac_max_sed_lines should be used.
267 : ${ac_max_here_lines=38}
269 # Identity of this package.
270 PACKAGE_NAME='GNU C Library'
271 PACKAGE_TARNAME='c-library'
272 PACKAGE_VERSION='(see version.h)'
273 PACKAGE_STRING='GNU C Library (see version.h)'
274 PACKAGE_BUGREPORT='glibc'
276 ac_unique_file="include/features.h"
277 ac_subdirs_all="$ac_subdirs_all "
278 # Factoring default headers for most tests.
279 ac_includes_default="\
282 # include <sys/types.h>
285 # include <sys/stat.h>
296 # if !STDC_HEADERS && HAVE_MEMORY_H
302 # include <strings.h>
305 # include <inttypes.h>
315 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS with_fp with_cvs enable_check_abi oldest_abi subdirs force_install all_warnings build build_cpu build_vendor build_os host host_cpu host_vendor host_os base_machine sysnames INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LN_S CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC OBJEXT BUILD_CC cross_compiling CPP AR OBJDUMP RANLIB ac_ct_RANLIB MIG AS LD PWD_P MAKE MSGFMT MAKEINFO SED AUTOCONF CCVERSION SYSINCLUDES libc_cv_gcc_static_libgcc BASH libc_cv_have_bash2 KSH libc_cv_have_ksh AWK PERL INSTALL_INFO OLD_DEBIAN_INSTALL_INFO BISON VERSIONING libc_cv_asm_protected_directive libc_cv_initfinit_array libc_cv_z_nodelete libc_cv_z_nodlopen libc_cv_z_initfirst libc_cv_Bgroup libc_cv_z_combreloc libc_cv_have_initfini libc_cv_cpp_asm_debuginfo no_whole_archive exceptions LIBGD EGREP sizeof_long_double libc_cv_gcc_unwind_find_fde uname_sysname uname_release uname_version old_glibc_headers libc_cv_slibdir libc_cv_localedir libc_cv_sysconfdir libc_cv_rootsbindir use_ldconfig ldd_rewrite_script gnu_ld gnu_as elf xcoff static shared pic_default profile omitfp bounded static_nss nopic_initfini DEFINES linux_doors mach_interface_list VERSION RELEASE LIBOBJS LTLIBOBJS'
318 # Initialize some variables set by options.
320 ac_init_version=false
321 # The variables have the same names as the options, with
322 # dashes changed to underlines.
330 program_transform_name=s,x,x,
338 # Installation directory options.
339 # These are left unexpanded so users can "make install exec_prefix=/foo"
340 # and all the variables that are supposed to be based on exec_prefix
341 # by default will actually change.
342 # Use braces instead of parens because sh, perl, etc. also accept them.
343 bindir='${exec_prefix}/bin'
344 sbindir='${exec_prefix}/sbin'
345 libexecdir='${exec_prefix}/libexec'
346 datadir='${prefix}/share'
347 sysconfdir='${prefix}/etc'
348 sharedstatedir='${prefix}/com'
349 localstatedir='${prefix}/var'
350 libdir='${exec_prefix}/lib'
351 includedir='${prefix}/include'
352 oldincludedir='/usr/include'
353 infodir='${prefix}/info'
354 mandir='${prefix}/man'
359 # If the previous option needs an argument, assign it.
360 if test -n "$ac_prev"; then
361 eval "$ac_prev=\$ac_option"
366 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
368 # Accept the important Cygnus configure options, so we can diagnose typos.
372 -bindir | --bindir | --bindi | --bind | --bin | --bi)
374 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
377 -build | --build | --buil | --bui | --bu)
378 ac_prev=build_alias ;;
379 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
380 build_alias=$ac_optarg ;;
382 -cache-file | --cache-file | --cache-fil | --cache-fi \
383 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
384 ac_prev=cache_file ;;
385 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
386 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
387 cache_file=$ac_optarg ;;
390 cache_file=config.cache ;;
392 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
394 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
396 datadir=$ac_optarg ;;
398 -disable-* | --disable-*)
399 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
400 # Reject names that are not valid shell variable names.
401 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
402 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
403 { (exit 1); exit 1; }; }
404 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
405 eval "enable_$ac_feature=no" ;;
407 -enable-* | --enable-*)
408 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
409 # Reject names that are not valid shell variable names.
410 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
411 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
412 { (exit 1); exit 1; }; }
413 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
415 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
418 eval "enable_$ac_feature='$ac_optarg'" ;;
420 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
421 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
422 | --exec | --exe | --ex)
423 ac_prev=exec_prefix ;;
424 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
425 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
426 | --exec=* | --exe=* | --ex=*)
427 exec_prefix=$ac_optarg ;;
429 -gas | --gas | --ga | --g)
430 # Obsolete; use --with-gas.
433 -help | --help | --hel | --he | -h)
435 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
436 ac_init_help=recursive ;;
437 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
438 ac_init_help=short ;;
440 -host | --host | --hos | --ho)
441 ac_prev=host_alias ;;
442 -host=* | --host=* | --hos=* | --ho=*)
443 host_alias=$ac_optarg ;;
445 -includedir | --includedir | --includedi | --included | --include \
446 | --includ | --inclu | --incl | --inc)
447 ac_prev=includedir ;;
448 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
449 | --includ=* | --inclu=* | --incl=* | --inc=*)
450 includedir=$ac_optarg ;;
452 -infodir | --infodir | --infodi | --infod | --info | --inf)
454 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
455 infodir=$ac_optarg ;;
457 -libdir | --libdir | --libdi | --libd)
459 -libdir=* | --libdir=* | --libdi=* | --libd=*)
462 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
463 | --libexe | --libex | --libe)
464 ac_prev=libexecdir ;;
465 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
466 | --libexe=* | --libex=* | --libe=*)
467 libexecdir=$ac_optarg ;;
469 -localstatedir | --localstatedir | --localstatedi | --localstated \
470 | --localstate | --localstat | --localsta | --localst \
471 | --locals | --local | --loca | --loc | --lo)
472 ac_prev=localstatedir ;;
473 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
474 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
475 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
476 localstatedir=$ac_optarg ;;
478 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
480 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
484 # Obsolete; use --without-fp.
487 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
488 | --no-cr | --no-c | -n)
491 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
492 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
495 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
496 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
497 | --oldin | --oldi | --old | --ol | --o)
498 ac_prev=oldincludedir ;;
499 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
500 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
501 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
502 oldincludedir=$ac_optarg ;;
504 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
506 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
509 -program-prefix | --program-prefix | --program-prefi | --program-pref \
510 | --program-pre | --program-pr | --program-p)
511 ac_prev=program_prefix ;;
512 -program-prefix=* | --program-prefix=* | --program-prefi=* \
513 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
514 program_prefix=$ac_optarg ;;
516 -program-suffix | --program-suffix | --program-suffi | --program-suff \
517 | --program-suf | --program-su | --program-s)
518 ac_prev=program_suffix ;;
519 -program-suffix=* | --program-suffix=* | --program-suffi=* \
520 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
521 program_suffix=$ac_optarg ;;
523 -program-transform-name | --program-transform-name \
524 | --program-transform-nam | --program-transform-na \
525 | --program-transform-n | --program-transform- \
526 | --program-transform | --program-transfor \
527 | --program-transfo | --program-transf \
528 | --program-trans | --program-tran \
529 | --progr-tra | --program-tr | --program-t)
530 ac_prev=program_transform_name ;;
531 -program-transform-name=* | --program-transform-name=* \
532 | --program-transform-nam=* | --program-transform-na=* \
533 | --program-transform-n=* | --program-transform-=* \
534 | --program-transform=* | --program-transfor=* \
535 | --program-transfo=* | --program-transf=* \
536 | --program-trans=* | --program-tran=* \
537 | --progr-tra=* | --program-tr=* | --program-t=*)
538 program_transform_name=$ac_optarg ;;
540 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
541 | -silent | --silent | --silen | --sile | --sil)
544 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
546 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
548 sbindir=$ac_optarg ;;
550 -sharedstatedir | --sharedstatedir | --sharedstatedi \
551 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
552 | --sharedst | --shareds | --shared | --share | --shar \
554 ac_prev=sharedstatedir ;;
555 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
556 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
557 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
559 sharedstatedir=$ac_optarg ;;
561 -site | --site | --sit)
563 -site=* | --site=* | --sit=*)
566 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
568 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
571 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
572 | --syscon | --sysco | --sysc | --sys | --sy)
573 ac_prev=sysconfdir ;;
574 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
575 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
576 sysconfdir=$ac_optarg ;;
578 -target | --target | --targe | --targ | --tar | --ta | --t)
579 ac_prev=target_alias ;;
580 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
581 target_alias=$ac_optarg ;;
583 -v | -verbose | --verbose | --verbos | --verbo | --verb)
586 -version | --version | --versio | --versi | --vers | -V)
590 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
591 # Reject names that are not valid shell variable names.
592 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
593 { echo "$as_me: error: invalid package name: $ac_package" >&2
594 { (exit 1); exit 1; }; }
595 ac_package=`echo $ac_package| sed 's/-/_/g'`
597 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
600 eval "with_$ac_package='$ac_optarg'" ;;
602 -without-* | --without-*)
603 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
604 # Reject names that are not valid shell variable names.
605 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
606 { echo "$as_me: error: invalid package name: $ac_package" >&2
607 { (exit 1); exit 1; }; }
608 ac_package=`echo $ac_package | sed 's/-/_/g'`
609 eval "with_$ac_package=no" ;;
612 # Obsolete; use --with-x.
615 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
616 | --x-incl | --x-inc | --x-in | --x-i)
617 ac_prev=x_includes ;;
618 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
619 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
620 x_includes=$ac_optarg ;;
622 -x-libraries | --x-libraries | --x-librarie | --x-librari \
623 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
624 ac_prev=x_libraries ;;
625 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
626 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
627 x_libraries=$ac_optarg ;;
629 -*) { echo "$as_me: error: unrecognized option: $ac_option
630 Try \`$0 --help' for more information." >&2
631 { (exit 1); exit 1; }; }
635 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
636 # Reject names that are not valid shell variable names.
637 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
638 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
639 { (exit 1); exit 1; }; }
640 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
641 eval "$ac_envvar='$ac_optarg'"
645 # FIXME: should be removed in autoconf 3.0.
646 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
647 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
648 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
649 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
655 if test -n "$ac_prev"; then
656 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
657 { echo "$as_me: error: missing argument to $ac_option" >&2
658 { (exit 1); exit 1; }; }
661 # Be sure to have absolute paths.
662 for ac_var in exec_prefix prefix
664 eval ac_val=$`echo $ac_var`
666 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
667 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
668 { (exit 1); exit 1; }; };;
672 # Be sure to have absolute paths.
673 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
674 localstatedir libdir includedir oldincludedir infodir mandir
676 eval ac_val=$`echo $ac_var`
678 [\\/$]* | ?:[\\/]* ) ;;
679 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
680 { (exit 1); exit 1; }; };;
684 # There might be people who depend on the old broken behavior: `$host'
685 # used to hold the argument of --host etc.
686 # FIXME: To remove some day.
691 # FIXME: To remove some day.
692 if test "x$host_alias" != x; then
693 if test "x$build_alias" = x; then
694 cross_compiling=maybe
695 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
696 If a cross compiler is detected then cross compile mode will be used." >&2
697 elif test "x$build_alias" != "x$host_alias"; then
703 test -n "$host_alias" && ac_tool_prefix=$host_alias-
705 test "$silent" = yes && exec 6>/dev/null
708 # Find the source files, if location was not specified.
709 if test -z "$srcdir"; then
710 ac_srcdir_defaulted=yes
711 # Try the directory containing this script, then its parent.
712 ac_confdir=`(dirname "$0") 2>/dev/null ||
713 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
714 X"$0" : 'X\(//\)[^/]' \| \
715 X"$0" : 'X\(//\)$' \| \
716 X"$0" : 'X\(/\)' \| \
717 . : '\(.\)' 2>/dev/null ||
719 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
720 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
721 /^X\(\/\/\)$/{ s//\1/; q; }
722 /^X\(\/\).*/{ s//\1/; q; }
725 if test ! -r $srcdir/$ac_unique_file; then
729 ac_srcdir_defaulted=no
731 if test ! -r $srcdir/$ac_unique_file; then
732 if test "$ac_srcdir_defaulted" = yes; then
733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
734 { (exit 1); exit 1; }; }
736 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
737 { (exit 1); exit 1; }; }
740 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
741 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
742 { (exit 1); exit 1; }; }
743 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
744 ac_env_build_alias_set=${build_alias+set}
745 ac_env_build_alias_value=$build_alias
746 ac_cv_env_build_alias_set=${build_alias+set}
747 ac_cv_env_build_alias_value=$build_alias
748 ac_env_host_alias_set=${host_alias+set}
749 ac_env_host_alias_value=$host_alias
750 ac_cv_env_host_alias_set=${host_alias+set}
751 ac_cv_env_host_alias_value=$host_alias
752 ac_env_target_alias_set=${target_alias+set}
753 ac_env_target_alias_value=$target_alias
754 ac_cv_env_target_alias_set=${target_alias+set}
755 ac_cv_env_target_alias_value=$target_alias
756 ac_env_CC_set=${CC+set}
758 ac_cv_env_CC_set=${CC+set}
759 ac_cv_env_CC_value=$CC
760 ac_env_CFLAGS_set=${CFLAGS+set}
761 ac_env_CFLAGS_value=$CFLAGS
762 ac_cv_env_CFLAGS_set=${CFLAGS+set}
763 ac_cv_env_CFLAGS_value=$CFLAGS
764 ac_env_LDFLAGS_set=${LDFLAGS+set}
765 ac_env_LDFLAGS_value=$LDFLAGS
766 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
767 ac_cv_env_LDFLAGS_value=$LDFLAGS
768 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
769 ac_env_CPPFLAGS_value=$CPPFLAGS
770 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
771 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
772 ac_env_CPP_set=${CPP+set}
773 ac_env_CPP_value=$CPP
774 ac_cv_env_CPP_set=${CPP+set}
775 ac_cv_env_CPP_value=$CPP
778 # Report the --help message.
780 if test "$ac_init_help" = "long"; then
781 # Omit some internal or obsolete options to make the list less imposing.
782 # This message is too long to be a string in the A/UX 3.1 sh.
784 \`configure' configures GNU C Library (see version.h) to adapt to many kinds of systems.
786 Usage: $0 [OPTION]... [VAR=VALUE]...
788 To assign environment variables (e.g., CC, CFLAGS...), specify them as
789 VAR=VALUE. See below for descriptions of some of the useful variables.
791 Defaults for the options are specified in brackets.
794 -h, --help display this help and exit
795 --help=short display options specific to this package
796 --help=recursive display the short help of all the included packages
797 -V, --version display version information and exit
798 -q, --quiet, --silent do not print \`checking...' messages
799 --cache-file=FILE cache test results in FILE [disabled]
800 -C, --config-cache alias for \`--cache-file=config.cache'
801 -n, --no-create do not create output files
802 --srcdir=DIR find the sources in DIR [configure dir or \`..']
807 Installation directories:
808 --prefix=PREFIX install architecture-independent files in PREFIX
810 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
813 By default, \`make install' will install all the files in
814 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
815 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
816 for instance \`--prefix=\$HOME'.
818 For better control, use the options below.
820 Fine tuning of the installation directories:
821 --bindir=DIR user executables [EPREFIX/bin]
822 --sbindir=DIR system admin executables [EPREFIX/sbin]
823 --libexecdir=DIR program executables [EPREFIX/libexec]
824 --datadir=DIR read-only architecture-independent data [PREFIX/share]
825 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
826 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
827 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
828 --libdir=DIR object code libraries [EPREFIX/lib]
829 --includedir=DIR C header files [PREFIX/include]
830 --oldincludedir=DIR C header files for non-gcc [/usr/include]
831 --infodir=DIR info documentation [PREFIX/info]
832 --mandir=DIR man documentation [PREFIX/man]
838 --build=BUILD configure for building on BUILD [guessed]
839 --host=HOST cross-compile to build programs to run on HOST [BUILD]
843 if test -n "$ac_init_help"; then
844 case $ac_init_help in
845 short | recursive ) echo "Configuration of GNU C Library (see version.h):";;
850 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
851 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
852 --disable-sanity-checks really do not use threads (should not be used except
853 in special situations) [default=yes]
854 --disable-check-abi omit "make check-abi" from "make check"
855 --enable-shared build shared library [default=yes if GNU ld &
857 --enable-profile build profiled library [default=yes]
858 --enable-omitfp build undebuggable optimized library
860 --enable-bounded build with runtime bounds checking
862 --disable-versioning do not include versioning information in the library
863 objects [default=yes if supported]
864 --enable-oldest-abi=ABI configure the oldest ABI supported [e.g. 2.2]
865 [default=glibc default]
866 --enable-add-ons[=DIRS...]
867 configure and build add-ons in DIR1,DIR2,... search
868 for add-ons if no parameter given
869 --disable-hidden-plt do not hide internal function calls to avoid PLT
870 --enable-static-nss build static NSS modules [default=no]
871 --disable-force-install don't force installation of files from this package,
872 even if they are older than the installed files
873 --enable-kernel=VERSION compile for compatibility with kernel not older than
875 --enable-all-warnings enable all useful warnings gcc can issue
878 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
879 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
880 --with-gmp=DIRECTORY find GMP source code in DIRECTORY (not needed)
881 --with-gd=DIR find libgd include dir and library with prefix DIR
882 --with-gd-include=DIR find libgd include files in DIR
883 --with-gd-lib=DIR find libgd library files in DIR
884 --with-fp if using floating-point hardware [default=yes]
885 --with-binutils=PATH specify location of binutils (as and ld)
886 --with-elf if using the ELF object format
887 --with-xcoff if using the XCOFF object format
888 --without-cvs if CVS should not be used
889 --with-headers=PATH location of system headers to use (for example
890 /usr/src/linux/include) [default=compiler
892 --with-tls enable support for TLS
893 --without-__thread do not use TLS features even when supporting them
895 Some influential environment variables:
896 CC C compiler command
897 CFLAGS C compiler flags
898 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
899 nonstandard directory <lib dir>
900 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
901 headers in a nonstandard directory <include dir>
904 Use these variables to override the choices made by `configure' or to help
905 it to find libraries and programs with nonstandard names/locations.
907 Report bugs to <glibc>.
911 if test "$ac_init_help" = "recursive"; then
912 # If there are subdirs, report their specific --help.
914 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
915 test -d $ac_dir || continue
918 if test "$ac_dir" != .; then
919 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
920 # A "../" for each directory in $ac_dir_suffix.
921 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
923 ac_dir_suffix= ac_top_builddir=
927 .) # No --srcdir option. We are building in place.
929 if test -z "$ac_top_builddir"; then
932 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
934 [\\/]* | ?:[\\/]* ) # Absolute path.
935 ac_srcdir=$srcdir$ac_dir_suffix;
936 ac_top_srcdir=$srcdir ;;
938 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
939 ac_top_srcdir=$ac_top_builddir$srcdir ;;
941 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
943 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
944 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
945 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
946 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
949 # Check for guested configure; otherwise get Cygnus style configure.
950 if test -f $ac_srcdir/configure.gnu; then
952 $SHELL $ac_srcdir/configure.gnu --help=recursive
953 elif test -f $ac_srcdir/configure; then
955 $SHELL $ac_srcdir/configure --help=recursive
956 elif test -f $ac_srcdir/configure.ac ||
957 test -f $ac_srcdir/configure.in; then
961 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
967 test -n "$ac_init_help" && exit 0
968 if $ac_init_version; then
970 GNU C Library configure (see version.h)
971 generated by GNU Autoconf 2.57
973 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
974 Free Software Foundation, Inc.
975 This configure script is free software; the Free Software Foundation
976 gives unlimited permission to copy, distribute and modify it.
982 This file contains any messages produced by compilers while
983 running configure, to aid debugging if configure makes a mistake.
985 It was created by GNU C Library $as_me (see version.h), which was
986 generated by GNU Autoconf 2.57. Invocation command line was
997 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
998 uname -m = `(uname -m) 2>/dev/null || echo unknown`
999 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1000 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1001 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1003 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1004 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1006 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1007 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1008 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1009 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1010 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1011 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1012 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1020 test -z "$as_dir" && as_dir=.
1021 echo "PATH: $as_dir"
1036 # Keep a trace of the command line.
1037 # Strip out --no-create and --no-recursion so they do not pile up.
1038 # Strip out --silent because we don't want to record it for future runs.
1039 # Also quote any args containing shell meta-characters.
1040 # Make two passes to allow for proper duplicate-argument suppression.
1045 ac_must_keep_next=false
1051 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1052 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1053 | -silent | --silent | --silen | --sile | --sil)
1055 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1056 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1059 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1061 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1062 if test $ac_must_keep_next = true; then
1063 ac_must_keep_next=false # Got value, back to normal.
1066 *=* | --config-cache | -C | -disable-* | --disable-* \
1067 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1068 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1069 | -with-* | --with-* | -without-* | --without-* | --x)
1070 case "$ac_configure_args0 " in
1071 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1074 -* ) ac_must_keep_next=true ;;
1077 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1078 # Get rid of the leading space.
1084 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1085 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1087 # When interrupted or exit'd, cleanup temporary files, and complete
1088 # config.log. We remove comments because anyway the quotes in there
1089 # would cause problems or look ugly.
1090 # WARNING: Be sure not to use single quotes in there, as some shells,
1091 # such as our DU 5.0 friend, will then `close' the trap.
1092 trap 'exit_status=$?
1093 # Save into config.log some information that might help in debugging.
1098 ## ---------------- ##
1099 ## Cache variables. ##
1100 ## ---------------- ##
1103 # The following way of writing the cache mishandles newlines in values,
1106 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1109 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1110 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1114 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1121 ## ----------------- ##
1122 ## Output variables. ##
1123 ## ----------------- ##
1126 for ac_var in $ac_subst_vars
1128 eval ac_val=$`echo $ac_var`
1129 echo "$ac_var='"'"'$ac_val'"'"'"
1133 if test -n "$ac_subst_files"; then
1140 for ac_var in $ac_subst_files
1142 eval ac_val=$`echo $ac_var`
1143 echo "$ac_var='"'"'$ac_val'"'"'"
1148 if test -s confdefs.h; then
1155 sed "/^$/d" confdefs.h | sort
1158 test "$ac_signal" != 0 &&
1159 echo "$as_me: caught signal $ac_signal"
1160 echo "$as_me: exit $exit_status"
1162 rm -f core core.* *.core &&
1163 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1166 for ac_signal in 1 2 13 15; do
1167 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1171 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1172 rm -rf conftest* confdefs.h
1173 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1176 # Predefined preprocessor variables.
1178 cat >>confdefs.h <<_ACEOF
1179 #define PACKAGE_NAME "$PACKAGE_NAME"
1183 cat >>confdefs.h <<_ACEOF
1184 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1188 cat >>confdefs.h <<_ACEOF
1189 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1193 cat >>confdefs.h <<_ACEOF
1194 #define PACKAGE_STRING "$PACKAGE_STRING"
1198 cat >>confdefs.h <<_ACEOF
1199 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1203 # Let the site file select an alternate cache file if it wants to.
1204 # Prefer explicitly selected file to automatically selected ones.
1205 if test -z "$CONFIG_SITE"; then
1206 if test "x$prefix" != xNONE; then
1207 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1209 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1212 for ac_site_file in $CONFIG_SITE; do
1213 if test -r "$ac_site_file"; then
1214 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1215 echo "$as_me: loading site script $ac_site_file" >&6;}
1216 sed 's/^/| /' "$ac_site_file" >&5
1221 if test -r "$cache_file"; then
1222 # Some versions of bash will fail to source /dev/null (special
1223 # files actually), so we avoid doing that.
1224 if test -f "$cache_file"; then
1225 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1226 echo "$as_me: loading cache $cache_file" >&6;}
1228 [\\/]* | ?:[\\/]* ) . $cache_file;;
1229 *) . ./$cache_file;;
1233 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1234 echo "$as_me: creating cache $cache_file" >&6;}
1238 # Check that the precious variables saved in the cache have kept the same
1240 ac_cache_corrupted=false
1241 for ac_var in `(set) 2>&1 |
1242 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1243 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1244 eval ac_new_set=\$ac_env_${ac_var}_set
1245 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1246 eval ac_new_val="\$ac_env_${ac_var}_value"
1247 case $ac_old_set,$ac_new_set in
1249 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1250 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1251 ac_cache_corrupted=: ;;
1253 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1254 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1255 ac_cache_corrupted=: ;;
1258 if test "x$ac_old_val" != "x$ac_new_val"; then
1259 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1260 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1261 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1262 echo "$as_me: former value: $ac_old_val" >&2;}
1263 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1264 echo "$as_me: current value: $ac_new_val" >&2;}
1265 ac_cache_corrupted=:
1268 # Pass precious variables to config.status.
1269 if test "$ac_new_set" = set; then
1271 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1272 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1273 *) ac_arg=$ac_var=$ac_new_val ;;
1275 case " $ac_configure_args " in
1276 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1277 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1281 if $ac_cache_corrupted; then
1282 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1283 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1284 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1285 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1286 { (exit 1); exit 1; }; }
1290 ac_cpp='$CPP $CPPFLAGS'
1291 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1292 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1293 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1322 ac_config_headers="$ac_config_headers config.h"
1325 for ac_dir in scripts $srcdir/scripts; do
1326 if test -f $ac_dir/install-sh; then
1328 ac_install_sh="$ac_aux_dir/install-sh -c"
1330 elif test -f $ac_dir/install.sh; then
1332 ac_install_sh="$ac_aux_dir/install.sh -c"
1334 elif test -f $ac_dir/shtool; then
1336 ac_install_sh="$ac_aux_dir/shtool install -c"
1340 if test -z "$ac_aux_dir"; then
1341 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in scripts $srcdir/scripts" >&5
1342 echo "$as_me: error: cannot find install-sh or install.sh in scripts $srcdir/scripts" >&2;}
1343 { (exit 1); exit 1; }; }
1345 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1346 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1347 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1350 if test "`cd $srcdir; /bin/pwd`" = "`/bin/pwd`"; then
1351 { { echo "$as_me:$LINENO: error: you must configure in a separate build directory" >&5
1352 echo "$as_me: error: you must configure in a separate build directory" >&2;}
1353 { (exit 1); exit 1; }; }
1356 # This will get text that should go into config.make.
1359 # Check for a --with-gmp argument and set gmp-srcdir in config.make.
1361 # Check whether --with-gmp or --without-gmp was given.
1362 if test "${with_gmp+set}" = set; then
1366 yes) { { echo "$as_me:$LINENO: error: --with-gmp requires an argument; use --with-gmp=DIRECTORY" >&5
1367 echo "$as_me: error: --with-gmp requires an argument; use --with-gmp=DIRECTORY" >&2;}
1368 { (exit 1); exit 1; }; } ;;
1370 *) config_vars="$config_vars
1371 gmp-srcdir = $withval" ;;
1375 # Check for a --with-gd argument and set libgd-LDFLAGS in config.make.
1377 # Check whether --with-gd or --without-gd was given.
1378 if test "${with_gd+set}" = set; then
1382 *) libgd_include="-I$withval/include"
1383 libgd_ldflags="-L$withval/lib" ;;
1388 # Check whether --with-gd-include or --without-gd-include was given.
1389 if test "${with_gd_include+set}" = set; then
1390 withval="$with_gd_include"
1391 case "$with_gd_include" in
1393 *) libgd_include="-I$withval" ;;
1398 # Check whether --with-gd-lib or --without-gd-lib was given.
1399 if test "${with_gd_lib+set}" = set; then
1400 withval="$with_gd_lib"
1401 case "$with_gd_lib" in
1403 *) libgd_ldflags="-L$withval" ;;
1408 if test -n "$libgd_include"; then
1409 config_vars="$config_vars
1410 CFLAGS-memusagestat.c = $libgd_include"
1412 if test -n "$libgd_ldflags"; then
1413 config_vars="$config_vars
1414 libgd-LDFLAGS = $libgd_ldflags"
1418 # Check whether --with-fp or --without-fp was given.
1419 if test "${with_fp+set}" = set; then
1427 # Check whether --with-binutils or --without-binutils was given.
1428 if test "${with_binutils+set}" = set; then
1429 withval="$with_binutils"
1430 path_binutils=$withval
1435 # Check whether --with-elf or --without-elf was given.
1436 if test "${with_elf+set}" = set; then
1443 # Check whether --with-xcoff or --without-xcoff was given.
1444 if test "${with_xcoff+set}" = set; then
1445 withval="$with_xcoff"
1451 # Check whether --with-cvs or --without-cvs was given.
1452 if test "${with_cvs+set}" = set; then
1458 if test "$with_cvs" = yes; then
1459 if test -d $srcdir/CVS && grep :pserver: $srcdir/CVS/Root > /dev/null
1467 # Check whether --with-headers or --without-headers was given.
1468 if test "${with_headers+set}" = set; then
1469 withval="$with_headers"
1475 # Check whether --enable-sanity-checks or --disable-sanity-checks was given.
1476 if test "${enable_sanity_checks+set}" = set; then
1477 enableval="$enable_sanity_checks"
1478 enable_sanity=$enableval
1484 # Check whether --enable-check-abi or --disable-check-abi was given.
1485 if test "${enable_check_abi+set}" = set; then
1486 enableval="$enable_check_abi"
1487 enable_check_abi=$enableval
1489 enable_check_abi=yes
1493 # Check whether --enable-shared or --disable-shared was given.
1494 if test "${enable_shared+set}" = set; then
1495 enableval="$enable_shared"
1500 # Check whether --enable-profile or --disable-profile was given.
1501 if test "${enable_profile+set}" = set; then
1502 enableval="$enable_profile"
1507 # Check whether --enable-omitfp or --disable-omitfp was given.
1508 if test "${enable_omitfp+set}" = set; then
1509 enableval="$enable_omitfp"
1514 # Check whether --enable-bounded or --disable-bounded was given.
1515 if test "${enable_bounded+set}" = set; then
1516 enableval="$enable_bounded"
1521 # Check whether --enable-versioning or --disable-versioning was given.
1522 if test "${enable_versioning+set}" = set; then
1523 enableval="$enable_versioning"
1524 enable_versioning=$enableval
1526 enable_versioning=yes
1529 # Check whether --enable-oldest-abi or --disable-oldest-abi was given.
1530 if test "${enable_oldest_abi+set}" = set; then
1531 enableval="$enable_oldest_abi"
1532 oldest_abi=$enableval
1536 if test "$oldest_abi" = yes || test "$oldest_abi" = no; then
1539 cat >>confdefs.h <<_ACEOF
1540 #define GLIBC_OLDEST_ABI "$oldest_abi"
1546 # Check whether --enable-add-ons or --disable-add-ons was given.
1547 if test "${enable_add_ons+set}" = set; then
1548 enableval="$enable_add_ons"
1549 case "$enableval" in
1550 yes) add_ons=`cd $srcdir && echo */configure | sed -e 's!/configure!!g'`
1551 test "$add_ons" = "*" && add_ons= ;;
1552 *) add_ons=`echo "$enableval" | sed 's/,/ /g'`;;
1559 # Check whether --with-tls or --without-tls was given.
1560 if test "${with_tls+set}" = set; then
1568 # Check whether --with-__thread or --without-__thread was given.
1569 if test "${with___thread+set}" = set; then
1570 withval="$with___thread"
1571 use__thread=$withval
1576 # Check whether --enable-hidden-plt or --disable-hidden-plt was given.
1577 if test "${enable_hidden_plt+set}" = set; then
1578 enableval="$enable_hidden_plt"
1583 if test "x$hidden" = xno; then
1584 cat >>confdefs.h <<\_ACEOF
1594 if test x"$add_ons" != x; then
1595 for f in $add_ons; do
1596 # Some sanity checks
1597 if test "$f" = "crypt"; then
1598 { { echo "$as_me:$LINENO: error:
1599 *** It seems that you're using an old \`crypt' add-on. crypt is now
1600 *** part of glibc and using the old add-on will not work with this
1601 *** release. Start again with fresh sources and without the old
1602 *** \`crypt' add-on." >&5
1603 echo "$as_me: error:
1604 *** It seems that you're using an old \`crypt' add-on. crypt is now
1605 *** part of glibc and using the old add-on will not work with this
1606 *** release. Start again with fresh sources and without the old
1607 *** \`crypt' add-on." >&2;}
1608 { (exit 1); exit 1; }; }
1610 if test "$f" = "localedata"; then
1611 { { echo "$as_me:$LINENO: error:
1612 *** It seems that you're using an old \`localedata' add-on. localedata
1613 *** is now part of glibc and using the old add-on will not work with
1614 *** this release. Start again with fresh sources and without the old
1615 *** \`localedata' add-on." >&5
1616 echo "$as_me: error:
1617 *** It seems that you're using an old \`localedata' add-on. localedata
1618 *** is now part of glibc and using the old add-on will not work with
1619 *** this release. Start again with fresh sources and without the old
1620 *** \`localedata' add-on." >&2;}
1621 { (exit 1); exit 1; }; }
1623 # Test whether such a subdir really exists.
1624 if test -d $srcdir/$f; then
1625 add_ons_pfx="$add_ons_pfx $f/"
1626 subdirs="$subdirs $f"
1628 { { echo "$as_me:$LINENO: error: add-on directory \"$f\" does not exist" >&5
1629 echo "$as_me: error: add-on directory \"$f\" does not exist" >&2;}
1630 { (exit 1); exit 1; }; }
1635 # Check whether --enable-static-nss or --disable-static-nss was given.
1636 if test "${enable_static_nss+set}" = set; then
1637 enableval="$enable_static_nss"
1638 static_nss=$enableval
1642 if test x"$static_nss" = xyes || test x"$shared" = xno; then
1644 cat >>confdefs.h <<\_ACEOF
1645 #define DO_STATIC_NSS 1
1650 # Check whether --enable-force-install or --disable-force-install was given.
1651 if test "${enable_force_install+set}" = set; then
1652 enableval="$enable_force_install"
1653 force_install=$enableval
1659 # Check whether --enable-kernel or --disable-kernel was given.
1660 if test "${enable_kernel+set}" = set; then
1661 enableval="$enable_kernel"
1662 minimum_kernel=$enableval
1664 if test "$minimum_kernel" = yes || test "$minimum_kernel" = no; then
1665 # Better nothing than this.
1668 if test "$minimum_kernel" = current; then
1669 minimum_kernel=`uname -r 2>/dev/null` || minimum_kernel=
1673 # Check whether --enable-all-warnings or --disable-all-warnings was given.
1674 if test "${enable_all_warnings+set}" = set; then
1675 enableval="$enable_all_warnings"
1676 all_warnings=$enableval
1680 # Make sure we can run config.sub.
1681 $ac_config_sub sun4 >/dev/null 2>&1 ||
1682 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1683 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1684 { (exit 1); exit 1; }; }
1686 echo "$as_me:$LINENO: checking build system type" >&5
1687 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1688 if test "${ac_cv_build+set}" = set; then
1689 echo $ECHO_N "(cached) $ECHO_C" >&6
1691 ac_cv_build_alias=$build_alias
1692 test -z "$ac_cv_build_alias" &&
1693 ac_cv_build_alias=`$ac_config_guess`
1694 test -z "$ac_cv_build_alias" &&
1695 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1696 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1697 { (exit 1); exit 1; }; }
1698 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1699 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1700 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1701 { (exit 1); exit 1; }; }
1704 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1705 echo "${ECHO_T}$ac_cv_build" >&6
1707 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1708 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1709 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1712 echo "$as_me:$LINENO: checking host system type" >&5
1713 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1714 if test "${ac_cv_host+set}" = set; then
1715 echo $ECHO_N "(cached) $ECHO_C" >&6
1717 ac_cv_host_alias=$host_alias
1718 test -z "$ac_cv_host_alias" &&
1719 ac_cv_host_alias=$ac_cv_build_alias
1720 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1721 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1722 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1723 { (exit 1); exit 1; }; }
1726 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1727 echo "${ECHO_T}$ac_cv_host" >&6
1729 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1730 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1731 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1735 # The way shlib-versions is used to generate soversions.mk uses a
1736 # fairly simplistic model for name recognition that can't distinguish
1737 # i486-pc-linux-gnu fully from i486-pc-gnu. So we mutate a $host_os
1738 # of `gnu*' here to be `gnu-gnu*' just so that shlib-versions can
1739 # tell. This doesn't get used much beyond that, so it's fairly safe.
1744 host_os=`echo $host_os | sed -e 's/gnu/gnu-gnu/'`
1748 # We keep the original values in `$config_*' and never modify them, so we
1749 # can write them unchanged into config.make. Everything else uses
1750 # $machine, $vendor, and $os, and changes them whenever convenient.
1751 config_machine=$host_cpu config_vendor=$host_vendor config_os=$host_os
1753 # Don't allow vendor == "unknown"
1754 test "$config_vendor" = unknown && config_vendor=
1755 config_os="`echo $config_os | sed 's/^unknown-//'`"
1757 # Some configurations imply other options.
1759 gnu* | linux* | bsd4.4* | netbsd* | freebsd*)
1760 # These systems always use GNU tools.
1761 gnu_ld=yes gnu_as=yes ;;
1764 # i586-linuxaout is mangled into i586-pc-linux-gnuaout
1765 linux*ecoff* | linux*aout* | gnu*aout* | gnu*ecoff*)
1767 gnu* | linux* | freebsd* | netbsd* | sysv4* | solaris2* | irix6*)
1768 # These systems (almost) always use the ELF format.
1772 # These systems are always xcoff
1778 machine=$config_machine
1779 vendor=$config_vendor
1782 # config.guess on some IBM machines says `rs6000' instead of `powerpc'.
1784 if test "$machine" = rs6000; then
1788 # Braindead PowerPC box with absolutely no FPU.
1789 case "$machine-$host_os" in
1796 ### I put this here to prevent those annoying emails from people who cannot
1797 ### read and try to compile glibc on unsupported platforms. --drepper
1799 ### By using the undocumented --enable-hacker-mode option for configure
1800 ### one can skip this test to make the configuration not fail for unsupported
1803 if test -z "$enable_hacker_mode"; then
1804 case "$machine-$host_os" in
1805 *-linux* | *-gnu* | arm*-none* | powerpc-aix4.3.*)
1808 echo "*** The GNU C library is currently not available for this platform."
1809 echo "*** So far nobody cared to port it and if there is no volunteer it"
1810 echo "*** might never happen. So, if you have interest to see glibc on"
1811 echo "*** this platform visit"
1812 echo "*** http://www.gnu.org/software/libc/porting.html"
1813 echo "*** and join the group of porters"
1819 # Expand the configuration machine name into a subdirectory by architecture
1820 # type and particular chip.
1822 a29k | am29000) base_machine=a29k machine=a29k ;;
1823 alpha*) base_machine=alpha machine=alpha/$machine ;;
1824 arm*) base_machine=arm machine=arm/arm32/$machine ;;
1825 c3[012]) base_machine=cx0 machine=cx0/c30 ;;
1826 c4[04]) base_machine=cx0 machine=cx0/c40 ;;
1827 hppa*64*) base_machine=hppa machine=hppa/hppa64 ;;
1828 hppa*) base_machine=hppa machine=hppa/hppa1.1 ;;
1829 i[3456]86) base_machine=i386 machine=i386/$machine ;;
1830 ia64) base_machine=ia64 machine=ia64 ;;
1831 m680?0) base_machine=m68k machine=m68k/$machine ;;
1832 m68k) base_machine=m68k machine=m68k/m68020 ;;
1833 m88???) base_machine=m88k machine=m88k/$machine ;;
1834 m88k) base_machine=m88k machine=m88k/m88100 ;;
1835 mips64*) base_machine=mips64 machine=mips/mips64/$machine ;;
1836 mips*) base_machine=mips machine=mips/$machine ;;
1837 powerpc) base_machine=powerpc machine=powerpc/powerpc32 ;;
1838 powerpc64) base_machine=powerpc machine=powerpc/powerpc64 ;;
1839 s390) base_machine=s390 machine=s390/s390-32 ;;
1840 s390x) base_machine=s390 machine=s390/s390-64 ;;
1841 sh3*) base_machine=sh machine=sh/sh3 ;;
1842 sh4*) base_machine=sh machine=sh/sh4 ;;
1844 base_machine=sparc machine=sparc/sparc32 ;;
1845 sparcv8 | supersparc | hypersparc)
1846 base_machine=sparc machine=sparc/sparc32/sparcv8 ;;
1847 sparcv8plus | sparcv8plusa | sparcv9)
1848 base_machine=sparc machine=sparc/sparc32/sparcv9 ;;
1849 sparcv8plusb | sparcv9b)
1850 base_machine=sparc machine=sparc/sparc32/sparcv9b ;;
1851 sparc64 | ultrasparc)
1852 base_machine=sparc machine=sparc/sparc64 ;;
1853 sparc64b | ultrasparc3)
1854 base_machine=sparc machine=sparc/sparc64/sparcv9b ;;
1855 thumb*) base_machine=thumb machine=arm/thumb/$machine ;;
1856 *) base_machine=$machine ;;
1860 if test "$base_machine" = "i386"; then
1861 cat >>confdefs.h <<\_ACEOF
1862 #define USE_REGPARMS 1
1867 # Compute the list of sysdep directories for this configuration.
1868 # This can take a while to compute.
1869 sysdep_dir=$srcdir/sysdeps
1870 echo "$as_me:$LINENO: checking sysdep dirs" >&5
1871 echo $ECHO_N "checking sysdep dirs... $ECHO_C" >&6
1872 # Make sco3.2v4 become sco3.2.4 and sunos4.1.1_U1 become sunos4.1.1.U1.
1873 os="`echo $os | sed 's/\([0-9A-Z]\)[v_]\([0-9A-Z]\)/\1.\2/g'`"
1877 base_os=mach/hurd ;;
1878 netbsd* | 386bsd* | freebsd* | bsdi*)
1879 base_os=unix/bsd/bsd4.4 ;;
1880 osf* | sunos* | ultrix* | newsos* | dynix* | *bsd*)
1882 sysv* | isc* | esix* | sco* | minix* | irix4* | linux*)
1883 base_os=unix/sysv ;;
1885 base_os=unix/sysv/irix6/$os ;;
1887 base_os=unix/sysv/sysv4 ;;
1889 base_os=unix/sysv/hpux/$os ;;
1891 base_os=unix/sysv/aix/aix4.3 ;;
1893 base_os=standalone ;;
1898 # For sunos4.1.1, try sunos4.1.1, then sunos4.1, then sunos4, then sunos.
1901 while o=`echo $tail | sed 's/\.[^.]*$//'`; test $o != $tail; do
1905 o=`echo $tail | sed 's/[0-9]*$//'`
1906 if test $o != $tail; then
1909 # For linux-gnu, try linux-gnu, then linux.
1910 o=`echo $tail | sed 's/-.*$//'`
1911 if test $o != $tail; then
1915 # For unix/sysv/sysv4, try unix/sysv/sysv4, then unix/sysv, then unix.
1918 while b=`echo $tail | sed 's@^\(.*\)/\([^/]*\)$@& \1@'`; test -n "$b"; do
1924 # For sparc/sparc32, try sparc/sparc32 and then sparc.
1927 while m=`echo $tail | sed 's@^\(.*\)/\([^/]*\)$@& \1@'`; test -n "$m"; do
1929 # Prepend the machine's FPU directory unless --without-fp.
1930 if test "$with_fp" = yes; then
1931 mach="$mach /$1/fpu"
1933 mach="$mach /$1/nofpu"
1940 # Find what sysdep directories exist.
1942 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1943 for d in $add_ons_pfx ''; do
1944 for b in $base ''; do
1945 for m0 in $mach ''; do
1946 for v in /$vendor ''; do
1947 test "$v" = / && continue
1948 for o in /$ostry ''; do
1949 test "$o" = / && continue
1950 for m in $mach ''; do
1951 if test "$m0$b$v$o$m"; then
1952 try="${d}sysdeps$m0$b$v$o$m"
1953 test -n "$enable_debug_configure" &&
1954 echo "$0 DEBUG: try $try" >&2
1955 if test -d $srcdir/$try; then
1956 sysnames="$sysnames $try"
1957 { test -n "$o" || test -n "$b"; } && os_used=t
1958 { test -n "$m" || test -n "$m0"; } && machine_used=t
1969 if test -z "$os_used" && test "$os" != none; then
1970 { { echo "$as_me:$LINENO: error: Operating system $os is not supported." >&5
1971 echo "$as_me: error: Operating system $os is not supported." >&2;}
1972 { (exit 1); exit 1; }; }
1974 if test -z "$machine_used" && test "$machine" != none; then
1975 { { echo "$as_me:$LINENO: error: The $machine is not supported." >&5
1976 echo "$as_me: error: The $machine is not supported." >&2;}
1977 { (exit 1); exit 1; }; }
1980 # We have now validated the configuration.
1983 # If using ELF, look for an `elf' subdirectory of each machine directory.
1984 # We prepend these rather than inserting them whereever the machine appears
1985 # because things specified by the machine's ELF ABI should override
1986 # OS-specific things, and should always be the same for any OS on the
1987 # machine (otherwise what's the point of an ABI?).
1988 if test "$elf" = yes; then
1990 for d in $add_ons_pfx ''; do
1992 if test -d $srcdir/${d}sysdeps$m/elf; then
1993 elf_dirs="$elf_dirs ${d}sysdeps$m/elf"
1997 sysnames="`echo $elf_dirs | sed -e 's,//,/,g'` $sysnames"
2001 # Expand the list of system names into a full list of directories
2002 # from each element's parent name and Implies file (if present).
2005 while test $# -gt 0; do
2009 case " $names " in *" $name "*)
2010 # Already in the list.
2014 # Report each name as we discover it, so there is no long pause in output.
2015 echo $ECHO_N "$name $ECHO_C" >&6
2017 name_base=`echo $name | sed -e 's@\(.*sysdeps\)/.*@\1@'`
2021 *) xsrcdir=$srcdir/ ;;
2023 test -n "$enable_debug_configure" &&
2024 echo "DEBUG: name/Implies $xsrcdir$name/Implies" >&2
2026 if test -f $xsrcdir$name/Implies; then
2027 # Collect more names from the `Implies' file (removing comments).
2028 implied_candidate="`sed 's/#.*$//' < $xsrcdir$name/Implies`"
2030 for x in $implied_candidate; do
2032 if test -d $xsrcdir$name_base/$x; then
2033 implied="$implied $name_base/$x";
2036 for d in $add_ons_pfx ''; do
2037 try="${d}sysdeps/$x"
2040 *) try_srcdir=$srcdir/ ;;
2042 test -n "$enable_debug_configure" &&
2043 echo "DEBUG: $name implied $x try($d) {$try_srcdir}$try" >&2
2044 if test $try != $xsrcdir$name_base/$x && test -d $try_srcdir$try;
2046 implied="$implied $try"
2050 if test $found = no; then
2051 { echo "$as_me:$LINENO: WARNING: $name/Implies specifies nonexistent $x" >&5
2052 echo "$as_me: WARNING: $name/Implies specifies nonexistent $x" >&2;}
2059 # Add NAME to the list of names.
2060 names="$names $name"
2062 # Find the parent of NAME, using the empty string if it has none.
2063 parent="`echo $name | sed -n -e 's=/[^/]*$==' -e '/sysdeps$/q' -e p`"
2065 # Add the names implied by NAME, and NAME's parent (if it has one), to
2066 # the list of names to be processed (the argument list). We prepend the
2067 # implied names to the list and append the parent. We want implied
2068 # directories to come before further directories inferred from the
2069 # configuration components; this ensures that for sysv4, unix/common
2070 # (implied by unix/sysv/sysv4) comes before unix/sysv (in ostry (here $*)
2072 sysnames="`echo $implied $* $parent`"
2073 test -n "$sysnames" && set $sysnames
2076 # Add the default directories.
2077 default_sysnames=sysdeps/generic
2078 if test "$elf" = yes; then
2079 default_sysnames="sysdeps/generic/elf $default_sysnames"
2081 sysnames="$names $default_sysnames"
2083 # The other names were emitted during the scan.
2084 echo "$as_me:$LINENO: result: $default_sysnames" >&5
2085 echo "${ECHO_T}$default_sysnames" >&6
2090 # Find a good install program. We prefer a C program (faster),
2091 # so one script is as good as another. But avoid the broken or
2092 # incompatible versions:
2093 # SysV /etc/install, /usr/sbin/install
2094 # SunOS /usr/etc/install
2095 # IRIX /sbin/install
2097 # AmigaOS /C/install, which installs bootblocks on floppy discs
2098 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2099 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2100 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2101 # ./install, which can be erroneously created by make from ./install.sh.
2102 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2103 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2104 if test -z "$INSTALL"; then
2105 if test "${ac_cv_path_install+set}" = set; then
2106 echo $ECHO_N "(cached) $ECHO_C" >&6
2108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2112 test -z "$as_dir" && as_dir=.
2113 # Account for people who put trailing slashes in PATH elements.
2115 ./ | .// | /cC/* | \
2116 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2119 # OSF1 and SCO ODT 3.0 have their own names for install.
2120 # Don't use installbsd from OSF since it installs stuff as root
2122 for ac_prog in ginstall scoinst install; do
2123 for ac_exec_ext in '' $ac_executable_extensions; do
2124 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2125 if test $ac_prog = install &&
2126 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2127 # AIX install. It has an incompatible calling convention.
2129 elif test $ac_prog = install &&
2130 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2131 # program-specific install script used by HP pwplus--don't use.
2134 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2146 if test "${ac_cv_path_install+set}" = set; then
2147 INSTALL=$ac_cv_path_install
2149 # As a last resort, use the slow shell script. We don't cache a
2150 # path for INSTALL within a source directory, because that will
2151 # break other packages using the cache if that directory is
2152 # removed, or if the path is relative.
2153 INSTALL=$ac_install_sh
2156 echo "$as_me:$LINENO: result: $INSTALL" >&5
2157 echo "${ECHO_T}$INSTALL" >&6
2159 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2160 # It thinks the first close brace ends the variable substitution.
2161 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2163 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2165 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2167 if test "$INSTALL" = "${srcdir}/scripts/install-sh -c"; then
2168 # The makefiles need to use a different form to find it in $srcdir.
2169 INSTALL='\$(..)./scripts/install-sh -c'
2171 echo "$as_me:$LINENO: checking whether ln -s works" >&5
2172 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
2174 if test "$LN_S" = "ln -s"; then
2175 echo "$as_me:$LINENO: result: yes" >&5
2176 echo "${ECHO_T}yes" >&6
2178 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
2179 echo "${ECHO_T}no, using $LN_S" >&6
2184 ac_cpp='$CPP $CPPFLAGS'
2185 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2186 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2187 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2188 if test -n "$ac_tool_prefix"; then
2189 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2190 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2191 echo "$as_me:$LINENO: checking for $ac_word" >&5
2192 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2193 if test "${ac_cv_prog_CC+set}" = set; then
2194 echo $ECHO_N "(cached) $ECHO_C" >&6
2196 if test -n "$CC"; then
2197 ac_cv_prog_CC="$CC" # Let the user override the test.
2199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2203 test -z "$as_dir" && as_dir=.
2204 for ac_exec_ext in '' $ac_executable_extensions; do
2205 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2206 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2207 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2216 if test -n "$CC"; then
2217 echo "$as_me:$LINENO: result: $CC" >&5
2218 echo "${ECHO_T}$CC" >&6
2220 echo "$as_me:$LINENO: result: no" >&5
2221 echo "${ECHO_T}no" >&6
2225 if test -z "$ac_cv_prog_CC"; then
2227 # Extract the first word of "gcc", so it can be a program name with args.
2228 set dummy gcc; ac_word=$2
2229 echo "$as_me:$LINENO: checking for $ac_word" >&5
2230 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2231 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2232 echo $ECHO_N "(cached) $ECHO_C" >&6
2234 if test -n "$ac_ct_CC"; then
2235 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2241 test -z "$as_dir" && as_dir=.
2242 for ac_exec_ext in '' $ac_executable_extensions; do
2243 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2244 ac_cv_prog_ac_ct_CC="gcc"
2245 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2253 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2254 if test -n "$ac_ct_CC"; then
2255 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2256 echo "${ECHO_T}$ac_ct_CC" >&6
2258 echo "$as_me:$LINENO: result: no" >&5
2259 echo "${ECHO_T}no" >&6
2267 if test -z "$CC"; then
2268 if test -n "$ac_tool_prefix"; then
2269 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2270 set dummy ${ac_tool_prefix}cc; ac_word=$2
2271 echo "$as_me:$LINENO: checking for $ac_word" >&5
2272 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2273 if test "${ac_cv_prog_CC+set}" = set; then
2274 echo $ECHO_N "(cached) $ECHO_C" >&6
2276 if test -n "$CC"; then
2277 ac_cv_prog_CC="$CC" # Let the user override the test.
2279 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2283 test -z "$as_dir" && as_dir=.
2284 for ac_exec_ext in '' $ac_executable_extensions; do
2285 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2286 ac_cv_prog_CC="${ac_tool_prefix}cc"
2287 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2296 if test -n "$CC"; then
2297 echo "$as_me:$LINENO: result: $CC" >&5
2298 echo "${ECHO_T}$CC" >&6
2300 echo "$as_me:$LINENO: result: no" >&5
2301 echo "${ECHO_T}no" >&6
2305 if test -z "$ac_cv_prog_CC"; then
2307 # Extract the first word of "cc", so it can be a program name with args.
2308 set dummy cc; ac_word=$2
2309 echo "$as_me:$LINENO: checking for $ac_word" >&5
2310 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2311 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2312 echo $ECHO_N "(cached) $ECHO_C" >&6
2314 if test -n "$ac_ct_CC"; then
2315 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2321 test -z "$as_dir" && as_dir=.
2322 for ac_exec_ext in '' $ac_executable_extensions; do
2323 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2324 ac_cv_prog_ac_ct_CC="cc"
2325 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2333 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2334 if test -n "$ac_ct_CC"; then
2335 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2336 echo "${ECHO_T}$ac_ct_CC" >&6
2338 echo "$as_me:$LINENO: result: no" >&5
2339 echo "${ECHO_T}no" >&6
2348 if test -z "$CC"; then
2349 # Extract the first word of "cc", so it can be a program name with args.
2350 set dummy cc; ac_word=$2
2351 echo "$as_me:$LINENO: checking for $ac_word" >&5
2352 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2353 if test "${ac_cv_prog_CC+set}" = set; then
2354 echo $ECHO_N "(cached) $ECHO_C" >&6
2356 if test -n "$CC"; then
2357 ac_cv_prog_CC="$CC" # Let the user override the test.
2360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2364 test -z "$as_dir" && as_dir=.
2365 for ac_exec_ext in '' $ac_executable_extensions; do
2366 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2367 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2368 ac_prog_rejected=yes
2372 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2378 if test $ac_prog_rejected = yes; then
2379 # We found a bogon in the path, so make sure we never use it.
2380 set dummy $ac_cv_prog_CC
2382 if test $# != 0; then
2383 # We chose a different compiler from the bogus one.
2384 # However, it has the same basename, so the bogon will be chosen
2385 # first if we set CC to just the basename; use the full file name.
2387 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2393 if test -n "$CC"; then
2394 echo "$as_me:$LINENO: result: $CC" >&5
2395 echo "${ECHO_T}$CC" >&6
2397 echo "$as_me:$LINENO: result: no" >&5
2398 echo "${ECHO_T}no" >&6
2402 if test -z "$CC"; then
2403 if test -n "$ac_tool_prefix"; then
2406 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2407 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2408 echo "$as_me:$LINENO: checking for $ac_word" >&5
2409 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2410 if test "${ac_cv_prog_CC+set}" = set; then
2411 echo $ECHO_N "(cached) $ECHO_C" >&6
2413 if test -n "$CC"; then
2414 ac_cv_prog_CC="$CC" # Let the user override the test.
2416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2420 test -z "$as_dir" && as_dir=.
2421 for ac_exec_ext in '' $ac_executable_extensions; do
2422 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2423 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2424 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2433 if test -n "$CC"; then
2434 echo "$as_me:$LINENO: result: $CC" >&5
2435 echo "${ECHO_T}$CC" >&6
2437 echo "$as_me:$LINENO: result: no" >&5
2438 echo "${ECHO_T}no" >&6
2441 test -n "$CC" && break
2444 if test -z "$CC"; then
2448 # Extract the first word of "$ac_prog", so it can be a program name with args.
2449 set dummy $ac_prog; ac_word=$2
2450 echo "$as_me:$LINENO: checking for $ac_word" >&5
2451 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2452 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2453 echo $ECHO_N "(cached) $ECHO_C" >&6
2455 if test -n "$ac_ct_CC"; then
2456 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2458 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2462 test -z "$as_dir" && as_dir=.
2463 for ac_exec_ext in '' $ac_executable_extensions; do
2464 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2465 ac_cv_prog_ac_ct_CC="$ac_prog"
2466 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2474 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2475 if test -n "$ac_ct_CC"; then
2476 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2477 echo "${ECHO_T}$ac_ct_CC" >&6
2479 echo "$as_me:$LINENO: result: no" >&5
2480 echo "${ECHO_T}no" >&6
2483 test -n "$ac_ct_CC" && break
2492 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2493 See \`config.log' for more details." >&5
2494 echo "$as_me: error: no acceptable C compiler found in \$PATH
2495 See \`config.log' for more details." >&2;}
2496 { (exit 1); exit 1; }; }
2498 # Provide some information about the compiler.
2499 echo "$as_me:$LINENO:" \
2500 "checking for C compiler version" >&5
2501 ac_compiler=`set X $ac_compile; echo $2`
2502 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2503 (eval $ac_compiler --version </dev/null >&5) 2>&5
2505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2506 (exit $ac_status); }
2507 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2508 (eval $ac_compiler -v </dev/null >&5) 2>&5
2510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2511 (exit $ac_status); }
2512 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2513 (eval $ac_compiler -V </dev/null >&5) 2>&5
2515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2516 (exit $ac_status); }
2519 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2520 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2521 if test "${ac_cv_objext+set}" = set; then
2522 echo $ECHO_N "(cached) $ECHO_C" >&6
2524 cat >conftest.$ac_ext <<_ACEOF
2525 #line $LINENO "configure"
2528 cat confdefs.h >>conftest.$ac_ext
2529 cat >>conftest.$ac_ext <<_ACEOF
2530 /* end confdefs.h. */
2540 rm -f conftest.o conftest.obj
2541 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2542 (eval $ac_compile) 2>&5
2544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2545 (exit $ac_status); }; then
2546 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2548 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2549 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2554 echo "$as_me: failed program was:" >&5
2555 sed 's/^/| /' conftest.$ac_ext >&5
2557 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2558 See \`config.log' for more details." >&5
2559 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2560 See \`config.log' for more details." >&2;}
2561 { (exit 1); exit 1; }; }
2564 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2566 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2567 echo "${ECHO_T}$ac_cv_objext" >&6
2568 OBJEXT=$ac_cv_objext
2570 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2571 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2572 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2573 echo $ECHO_N "(cached) $ECHO_C" >&6
2575 cat >conftest.$ac_ext <<_ACEOF
2576 #line $LINENO "configure"
2579 cat confdefs.h >>conftest.$ac_ext
2580 cat >>conftest.$ac_ext <<_ACEOF
2581 /* end confdefs.h. */
2594 rm -f conftest.$ac_objext
2595 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2596 (eval $ac_compile) 2>&5
2598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2599 (exit $ac_status); } &&
2600 { ac_try='test -s conftest.$ac_objext'
2601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2605 (exit $ac_status); }; }; then
2608 echo "$as_me: failed program was:" >&5
2609 sed 's/^/| /' conftest.$ac_ext >&5
2613 rm -f conftest.$ac_objext conftest.$ac_ext
2614 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2617 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2618 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2619 GCC=`test $ac_compiler_gnu = yes && echo yes`
2620 ac_test_CFLAGS=${CFLAGS+set}
2621 ac_save_CFLAGS=$CFLAGS
2623 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2624 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2625 if test "${ac_cv_prog_cc_g+set}" = set; then
2626 echo $ECHO_N "(cached) $ECHO_C" >&6
2628 cat >conftest.$ac_ext <<_ACEOF
2629 #line $LINENO "configure"
2632 cat confdefs.h >>conftest.$ac_ext
2633 cat >>conftest.$ac_ext <<_ACEOF
2634 /* end confdefs.h. */
2644 rm -f conftest.$ac_objext
2645 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2646 (eval $ac_compile) 2>&5
2648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2649 (exit $ac_status); } &&
2650 { ac_try='test -s conftest.$ac_objext'
2651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2655 (exit $ac_status); }; }; then
2658 echo "$as_me: failed program was:" >&5
2659 sed 's/^/| /' conftest.$ac_ext >&5
2663 rm -f conftest.$ac_objext conftest.$ac_ext
2665 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2666 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2667 if test "$ac_test_CFLAGS" = set; then
2668 CFLAGS=$ac_save_CFLAGS
2669 elif test $ac_cv_prog_cc_g = yes; then
2670 if test "$GCC" = yes; then
2676 if test "$GCC" = yes; then
2682 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2683 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2684 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2685 echo $ECHO_N "(cached) $ECHO_C" >&6
2687 ac_cv_prog_cc_stdc=no
2689 cat >conftest.$ac_ext <<_ACEOF
2690 #line $LINENO "configure"
2693 cat confdefs.h >>conftest.$ac_ext
2694 cat >>conftest.$ac_ext <<_ACEOF
2695 /* end confdefs.h. */
2698 #include <sys/types.h>
2699 #include <sys/stat.h>
2700 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2701 struct buf { int x; };
2702 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2703 static char *e (p, i)
2709 static char *f (char * (*g) (char **, int), char **p, ...)
2714 s = g (p, va_arg (v,int));
2718 int test (int i, double x);
2719 struct s1 {int (*f) (int a);};
2720 struct s2 {int (*f) (double a);};
2721 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2727 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2732 # Don't try gcc -ansi; that turns off useful extensions and
2733 # breaks some systems' header files.
2734 # AIX -qlanglvl=ansi
2735 # Ultrix and OSF/1 -std1
2736 # HP-UX 10.20 and later -Ae
2737 # HP-UX older versions -Aa -D_HPUX_SOURCE
2738 # SVR4 -Xc -D__EXTENSIONS__
2739 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2741 CC="$ac_save_CC $ac_arg"
2742 rm -f conftest.$ac_objext
2743 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2744 (eval $ac_compile) 2>&5
2746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2747 (exit $ac_status); } &&
2748 { ac_try='test -s conftest.$ac_objext'
2749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2753 (exit $ac_status); }; }; then
2754 ac_cv_prog_cc_stdc=$ac_arg
2757 echo "$as_me: failed program was:" >&5
2758 sed 's/^/| /' conftest.$ac_ext >&5
2761 rm -f conftest.$ac_objext
2763 rm -f conftest.$ac_ext conftest.$ac_objext
2768 case "x$ac_cv_prog_cc_stdc" in
2770 echo "$as_me:$LINENO: result: none needed" >&5
2771 echo "${ECHO_T}none needed" >&6 ;;
2773 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2774 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2775 CC="$CC $ac_cv_prog_cc_stdc" ;;
2778 # Some people use a C++ compiler to compile C. Since we use `exit',
2779 # in C++ we need to declare it. In case someone uses the same compiler
2780 # for both compiling C and C++ we need to have the C++ compiler decide
2781 # the declaration of exit, since it's the most demanding environment.
2782 cat >conftest.$ac_ext <<_ACEOF
2787 rm -f conftest.$ac_objext
2788 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2789 (eval $ac_compile) 2>&5
2791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2792 (exit $ac_status); } &&
2793 { ac_try='test -s conftest.$ac_objext'
2794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2798 (exit $ac_status); }; }; then
2799 for ac_declaration in \
2801 '#include <stdlib.h>' \
2802 'extern "C" void std::exit (int) throw (); using std::exit;' \
2803 'extern "C" void std::exit (int); using std::exit;' \
2804 'extern "C" void exit (int) throw ();' \
2805 'extern "C" void exit (int);' \
2808 cat >conftest.$ac_ext <<_ACEOF
2809 #line $LINENO "configure"
2812 cat confdefs.h >>conftest.$ac_ext
2813 cat >>conftest.$ac_ext <<_ACEOF
2814 /* end confdefs.h. */
2825 rm -f conftest.$ac_objext
2826 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2827 (eval $ac_compile) 2>&5
2829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2830 (exit $ac_status); } &&
2831 { ac_try='test -s conftest.$ac_objext'
2832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2836 (exit $ac_status); }; }; then
2839 echo "$as_me: failed program was:" >&5
2840 sed 's/^/| /' conftest.$ac_ext >&5
2844 rm -f conftest.$ac_objext conftest.$ac_ext
2845 cat >conftest.$ac_ext <<_ACEOF
2846 #line $LINENO "configure"
2849 cat confdefs.h >>conftest.$ac_ext
2850 cat >>conftest.$ac_ext <<_ACEOF
2851 /* end confdefs.h. */
2861 rm -f conftest.$ac_objext
2862 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2863 (eval $ac_compile) 2>&5
2865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2866 (exit $ac_status); } &&
2867 { ac_try='test -s conftest.$ac_objext'
2868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2872 (exit $ac_status); }; }; then
2875 echo "$as_me: failed program was:" >&5
2876 sed 's/^/| /' conftest.$ac_ext >&5
2879 rm -f conftest.$ac_objext conftest.$ac_ext
2882 if test -n "$ac_declaration"; then
2883 echo '#ifdef __cplusplus' >>confdefs.h
2884 echo $ac_declaration >>confdefs.h
2885 echo '#endif' >>confdefs.h
2889 echo "$as_me: failed program was:" >&5
2890 sed 's/^/| /' conftest.$ac_ext >&5
2893 rm -f conftest.$ac_objext conftest.$ac_ext
2895 ac_cpp='$CPP $CPPFLAGS'
2896 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2897 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2898 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2900 if test $host != $build; then
2901 for ac_prog in gcc cc
2903 # Extract the first word of "$ac_prog", so it can be a program name with args.
2904 set dummy $ac_prog; ac_word=$2
2905 echo "$as_me:$LINENO: checking for $ac_word" >&5
2906 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2907 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
2908 echo $ECHO_N "(cached) $ECHO_C" >&6
2910 if test -n "$BUILD_CC"; then
2911 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
2913 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2917 test -z "$as_dir" && as_dir=.
2918 for ac_exec_ext in '' $ac_executable_extensions; do
2919 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2920 ac_cv_prog_BUILD_CC="$ac_prog"
2921 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2929 BUILD_CC=$ac_cv_prog_BUILD_CC
2930 if test -n "$BUILD_CC"; then
2931 echo "$as_me:$LINENO: result: $BUILD_CC" >&5
2932 echo "${ECHO_T}$BUILD_CC" >&6
2934 echo "$as_me:$LINENO: result: no" >&5
2935 echo "${ECHO_T}no" >&6
2938 test -n "$BUILD_CC" && break
2944 ac_cpp='$CPP $CPPFLAGS'
2945 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2946 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2947 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2948 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2949 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2950 # On Suns, sometimes $CPP names a directory.
2951 if test -n "$CPP" && test -d "$CPP"; then
2954 if test -z "$CPP"; then
2955 if test "${ac_cv_prog_CPP+set}" = set; then
2956 echo $ECHO_N "(cached) $ECHO_C" >&6
2958 # Double quotes because CPP needs to be expanded
2959 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2962 for ac_c_preproc_warn_flag in '' yes
2964 # Use a header file that comes with gcc, so configuring glibc
2965 # with a fresh cross-compiler works.
2966 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2967 # <limits.h> exists even on freestanding compilers.
2968 # On the NeXT, cc -E runs the code through the compiler's parser,
2969 # not just through cpp. "Syntax error" is here to catch this case.
2970 cat >conftest.$ac_ext <<_ACEOF
2971 #line $LINENO "configure"
2974 cat confdefs.h >>conftest.$ac_ext
2975 cat >>conftest.$ac_ext <<_ACEOF
2976 /* end confdefs.h. */
2978 # include <limits.h>
2980 # include <assert.h>
2984 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2985 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2987 grep -v '^ *+' conftest.er1 >conftest.err
2989 cat conftest.err >&5
2990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2991 (exit $ac_status); } >/dev/null; then
2992 if test -s conftest.err; then
2993 ac_cpp_err=$ac_c_preproc_warn_flag
3000 if test -z "$ac_cpp_err"; then
3003 echo "$as_me: failed program was:" >&5
3004 sed 's/^/| /' conftest.$ac_ext >&5
3006 # Broken: fails on valid input.
3009 rm -f conftest.err conftest.$ac_ext
3011 # OK, works on sane cases. Now check whether non-existent headers
3012 # can be detected and how.
3013 cat >conftest.$ac_ext <<_ACEOF
3014 #line $LINENO "configure"
3017 cat confdefs.h >>conftest.$ac_ext
3018 cat >>conftest.$ac_ext <<_ACEOF
3019 /* end confdefs.h. */
3020 #include <ac_nonexistent.h>
3022 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3023 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3025 grep -v '^ *+' conftest.er1 >conftest.err
3027 cat conftest.err >&5
3028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3029 (exit $ac_status); } >/dev/null; then
3030 if test -s conftest.err; then
3031 ac_cpp_err=$ac_c_preproc_warn_flag
3038 if test -z "$ac_cpp_err"; then
3039 # Broken: success on invalid input.
3042 echo "$as_me: failed program was:" >&5
3043 sed 's/^/| /' conftest.$ac_ext >&5
3045 # Passes both tests.
3049 rm -f conftest.err conftest.$ac_ext
3052 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3053 rm -f conftest.err conftest.$ac_ext
3054 if $ac_preproc_ok; then
3066 echo "$as_me:$LINENO: result: $CPP" >&5
3067 echo "${ECHO_T}$CPP" >&6
3069 for ac_c_preproc_warn_flag in '' yes
3071 # Use a header file that comes with gcc, so configuring glibc
3072 # with a fresh cross-compiler works.
3073 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3074 # <limits.h> exists even on freestanding compilers.
3075 # On the NeXT, cc -E runs the code through the compiler's parser,
3076 # not just through cpp. "Syntax error" is here to catch this case.
3077 cat >conftest.$ac_ext <<_ACEOF
3078 #line $LINENO "configure"
3081 cat confdefs.h >>conftest.$ac_ext
3082 cat >>conftest.$ac_ext <<_ACEOF
3083 /* end confdefs.h. */
3085 # include <limits.h>
3087 # include <assert.h>
3091 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3092 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3094 grep -v '^ *+' conftest.er1 >conftest.err
3096 cat conftest.err >&5
3097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3098 (exit $ac_status); } >/dev/null; then
3099 if test -s conftest.err; then
3100 ac_cpp_err=$ac_c_preproc_warn_flag
3107 if test -z "$ac_cpp_err"; then
3110 echo "$as_me: failed program was:" >&5
3111 sed 's/^/| /' conftest.$ac_ext >&5
3113 # Broken: fails on valid input.
3116 rm -f conftest.err conftest.$ac_ext
3118 # OK, works on sane cases. Now check whether non-existent headers
3119 # can be detected and how.
3120 cat >conftest.$ac_ext <<_ACEOF
3121 #line $LINENO "configure"
3124 cat confdefs.h >>conftest.$ac_ext
3125 cat >>conftest.$ac_ext <<_ACEOF
3126 /* end confdefs.h. */
3127 #include <ac_nonexistent.h>
3129 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3130 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3132 grep -v '^ *+' conftest.er1 >conftest.err
3134 cat conftest.err >&5
3135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3136 (exit $ac_status); } >/dev/null; then
3137 if test -s conftest.err; then
3138 ac_cpp_err=$ac_c_preproc_warn_flag
3145 if test -z "$ac_cpp_err"; then
3146 # Broken: success on invalid input.
3149 echo "$as_me: failed program was:" >&5
3150 sed 's/^/| /' conftest.$ac_ext >&5
3152 # Passes both tests.
3156 rm -f conftest.err conftest.$ac_ext
3159 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3160 rm -f conftest.err conftest.$ac_ext
3161 if $ac_preproc_ok; then
3164 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3165 See \`config.log' for more details." >&5
3166 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3167 See \`config.log' for more details." >&2;}
3168 { (exit 1); exit 1; }; }
3172 ac_cpp='$CPP $CPPFLAGS'
3173 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3174 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3175 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3177 # Was a --with-binutils option given?
3178 if test -n "$path_binutils"; then
3179 # Make absolute; ensure a single trailing slash.
3180 path_binutils=`(cd $path_binutils; pwd) | sed 's%/*$%/%'`
3181 CC="$CC -B$path_binutils"
3183 AS=`$CC -print-prog-name=as`
3184 LD=`$CC -print-prog-name=ld`
3185 AR=`$CC -print-prog-name=ar`
3187 OBJDUMP=`$CC -print-prog-name=objdump`
3190 # ranlib has to be treated a bit differently since it might not exist at all.
3191 ac_ranlib=`$CC -print-prog-name=ranlib`
3192 if test "x$ac_ranlib" = xranlib; then
3193 # This extra check has to happen since gcc simply echos the parameter in
3194 # case it cannot find the value in its own directories.
3195 if test -n "$ac_tool_prefix"; then
3196 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3197 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3198 echo "$as_me:$LINENO: checking for $ac_word" >&5
3199 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3200 if test "${ac_cv_prog_RANLIB+set}" = set; then
3201 echo $ECHO_N "(cached) $ECHO_C" >&6
3203 if test -n "$RANLIB"; then
3204 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3210 test -z "$as_dir" && as_dir=.
3211 for ac_exec_ext in '' $ac_executable_extensions; do
3212 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3213 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3214 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3222 RANLIB=$ac_cv_prog_RANLIB
3223 if test -n "$RANLIB"; then
3224 echo "$as_me:$LINENO: result: $RANLIB" >&5
3225 echo "${ECHO_T}$RANLIB" >&6
3227 echo "$as_me:$LINENO: result: no" >&5
3228 echo "${ECHO_T}no" >&6
3232 if test -z "$ac_cv_prog_RANLIB"; then
3233 ac_ct_RANLIB=$RANLIB
3234 # Extract the first word of "ranlib", so it can be a program name with args.
3235 set dummy ranlib; ac_word=$2
3236 echo "$as_me:$LINENO: checking for $ac_word" >&5
3237 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3238 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3239 echo $ECHO_N "(cached) $ECHO_C" >&6
3241 if test -n "$ac_ct_RANLIB"; then
3242 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3248 test -z "$as_dir" && as_dir=.
3249 for ac_exec_ext in '' $ac_executable_extensions; do
3250 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3251 ac_cv_prog_ac_ct_RANLIB="ranlib"
3252 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3258 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3261 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3262 if test -n "$ac_ct_RANLIB"; then
3263 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3264 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3266 echo "$as_me:$LINENO: result: no" >&5
3267 echo "${ECHO_T}no" >&6
3270 RANLIB=$ac_ct_RANLIB
3272 RANLIB="$ac_cv_prog_RANLIB"
3280 # Determine whether we are using GNU binutils.
3281 echo "$as_me:$LINENO: checking whether $AS is GNU as" >&5
3282 echo $ECHO_N "checking whether $AS is GNU as... $ECHO_C" >&6
3283 if test "${libc_cv_prog_as_gnu+set}" = set; then
3284 echo $ECHO_N "(cached) $ECHO_C" >&6
3286 # Most GNU programs take a -v and spit out some text including
3287 # the word 'GNU'. Some try to read stdin, so give them /dev/null.
3288 if $AS -o conftest -v </dev/null 2>&1 | grep GNU > /dev/null 2>&1; then
3289 libc_cv_prog_as_gnu=yes
3291 libc_cv_prog_as_gnu=no
3295 echo "$as_me:$LINENO: result: $libc_cv_prog_as_gnu" >&5
3296 echo "${ECHO_T}$libc_cv_prog_as_gnu" >&6
3298 gnu_as=$libc_cv_prog_as_gnu
3300 echo "$as_me:$LINENO: checking whether $LD is GNU ld" >&5
3301 echo $ECHO_N "checking whether $LD is GNU ld... $ECHO_C" >&6
3302 if test "${libc_cv_prog_ld_gnu+set}" = set; then
3303 echo $ECHO_N "(cached) $ECHO_C" >&6
3305 # Most GNU programs take a -v and spit out some text including
3306 # the word 'GNU'. Some try to read stdin, so give them /dev/null.
3307 if $LD -o conftest -v </dev/null 2>&1 | grep GNU > /dev/null 2>&1; then
3308 libc_cv_prog_ld_gnu=yes
3310 libc_cv_prog_ld_gnu=no
3314 echo "$as_me:$LINENO: result: $libc_cv_prog_ld_gnu" >&5
3315 echo "${ECHO_T}$libc_cv_prog_ld_gnu" >&6
3316 gnu_ld=$libc_cv_prog_ld_gnu
3319 # Accept binutils 2.13 or newer.
3322 # Extract the first word of "$ac_prog", so it can be a program name with args.
3323 set dummy $ac_prog; ac_word=$2
3324 echo "$as_me:$LINENO: checking for $ac_word" >&5
3325 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3326 if test "${ac_cv_prog_AS+set}" = set; then
3327 echo $ECHO_N "(cached) $ECHO_C" >&6
3329 if test -n "$AS"; then
3330 ac_cv_prog_AS="$AS" # Let the user override the test.
3332 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3336 test -z "$as_dir" && as_dir=.
3337 for ac_exec_ext in '' $ac_executable_extensions; do
3338 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3339 ac_cv_prog_AS="$ac_prog"
3340 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3349 if test -n "$AS"; then
3350 echo "$as_me:$LINENO: result: $AS" >&5
3351 echo "${ECHO_T}$AS" >&6
3353 echo "$as_me:$LINENO: result: no" >&5
3354 echo "${ECHO_T}no" >&6
3357 test -n "$AS" && break
3360 if test -z "$AS"; then
3363 # Found it, now check the version.
3364 echo "$as_me:$LINENO: checking version of $AS" >&5
3365 echo $ECHO_N "checking version of $AS... $ECHO_C" >&6
3366 ac_prog_version=`$AS --version 2>&1 | sed -n 's/^.*GNU assembler.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
3367 case $ac_prog_version in
3368 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
3370 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
3371 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
3374 echo "$as_me:$LINENO: result: $ac_prog_version" >&5
3375 echo "${ECHO_T}$ac_prog_version" >&6
3377 if test $ac_verc_fail = yes; then
3378 AS=: critic_missing=t
3383 # Extract the first word of "$ac_prog", so it can be a program name with args.
3384 set dummy $ac_prog; ac_word=$2
3385 echo "$as_me:$LINENO: checking for $ac_word" >&5
3386 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3387 if test "${ac_cv_prog_LD+set}" = set; then
3388 echo $ECHO_N "(cached) $ECHO_C" >&6
3390 if test -n "$LD"; then
3391 ac_cv_prog_LD="$LD" # Let the user override the test.
3393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3397 test -z "$as_dir" && as_dir=.
3398 for ac_exec_ext in '' $ac_executable_extensions; do
3399 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3400 ac_cv_prog_LD="$ac_prog"
3401 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3410 if test -n "$LD"; then
3411 echo "$as_me:$LINENO: result: $LD" >&5
3412 echo "${ECHO_T}$LD" >&6
3414 echo "$as_me:$LINENO: result: no" >&5
3415 echo "${ECHO_T}no" >&6
3418 test -n "$LD" && break
3421 if test -z "$LD"; then
3424 # Found it, now check the version.
3425 echo "$as_me:$LINENO: checking version of $LD" >&5
3426 echo $ECHO_N "checking version of $LD... $ECHO_C" >&6
3427 ac_prog_version=`$LD --version 2>&1 | sed -n 's/^.*GNU ld.* \([0-9][0-9]*\.[0-9.]*\).*$/\1/p'`
3428 case $ac_prog_version in
3429 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
3431 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
3432 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
3435 echo "$as_me:$LINENO: result: $ac_prog_version" >&5
3436 echo "${ECHO_T}$ac_prog_version" >&6
3438 if test $ac_verc_fail = yes; then
3439 LD=: critic_missing=t
3443 # We need the physical current working directory. We cannot use the
3444 # "pwd -P" shell builtin since that's not portable. Instead we try to
3445 # find a pwd binary. Note that assigning to the PWD environment
3446 # variable might have some interesting side effects, so we don't do
3448 # Extract the first word of "pwd", so it can be a program name with args.
3449 set dummy pwd; ac_word=$2
3450 echo "$as_me:$LINENO: checking for $ac_word" >&5
3451 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3452 if test "${ac_cv_path_PWD_P+set}" = set; then
3453 echo $ECHO_N "(cached) $ECHO_C" >&6
3457 ac_cv_path_PWD_P="$PWD_P" # Let the user override the test with a path.
3460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3464 test -z "$as_dir" && as_dir=.
3465 for ac_exec_ext in '' $ac_executable_extensions; do
3466 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3467 ac_cv_path_PWD_P="$as_dir/$ac_word$ac_exec_ext"
3468 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3474 test -z "$ac_cv_path_PWD_P" && ac_cv_path_PWD_P="no"
3478 PWD_P=$ac_cv_path_PWD_P
3480 if test -n "$PWD_P"; then
3481 echo "$as_me:$LINENO: result: $PWD_P" >&5
3482 echo "${ECHO_T}$PWD_P" >&6
3484 echo "$as_me:$LINENO: result: no" >&5
3485 echo "${ECHO_T}no" >&6
3488 if test "$PWD_P" = no; then
3489 { { echo "$as_me:$LINENO: error: *** A pwd binary could not be found." >&5
3490 echo "$as_me: error: *** A pwd binary could not be found." >&2;}
3491 { (exit 1); exit 1; }; }
3494 # These programs are version sensitive.
3496 for ac_prog in ${ac_tool_prefix}gcc ${ac_tool_prefix}cc
3498 # Extract the first word of "$ac_prog", so it can be a program name with args.
3499 set dummy $ac_prog; ac_word=$2
3500 echo "$as_me:$LINENO: checking for $ac_word" >&5
3501 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3502 if test "${ac_cv_prog_CC+set}" = set; then
3503 echo $ECHO_N "(cached) $ECHO_C" >&6
3505 if test -n "$CC"; then
3506 ac_cv_prog_CC="$CC" # Let the user override the test.
3508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3512 test -z "$as_dir" && as_dir=.
3513 for ac_exec_ext in '' $ac_executable_extensions; do
3514 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3515 ac_cv_prog_CC="$ac_prog"
3516 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3525 if test -n "$CC"; then
3526 echo "$as_me:$LINENO: result: $CC" >&5
3527 echo "${ECHO_T}$CC" >&6
3529 echo "$as_me:$LINENO: result: no" >&5
3530 echo "${ECHO_T}no" >&6
3533 test -n "$CC" && break
3536 if test -z "$CC"; then
3539 # Found it, now check the version.
3540 echo "$as_me:$LINENO: checking version of $CC" >&5
3541 echo $ECHO_N "checking version of $CC... $ECHO_C" >&6
3542 ac_prog_version=`$CC -v 2>&1 | sed -n 's/^.*version \([egcygnustpi-]*[0-9.]*\).*$/\1/p'`
3543 case $ac_prog_version in
3544 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
3546 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
3547 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
3550 echo "$as_me:$LINENO: result: $ac_prog_version" >&5
3551 echo "${ECHO_T}$ac_prog_version" >&6
3553 if test $ac_verc_fail = yes; then
3554 critic_missing="$critic_missing gcc"
3557 for ac_prog in gnumake gmake make
3559 # Extract the first word of "$ac_prog", so it can be a program name with args.
3560 set dummy $ac_prog; ac_word=$2
3561 echo "$as_me:$LINENO: checking for $ac_word" >&5
3562 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3563 if test "${ac_cv_prog_MAKE+set}" = set; then
3564 echo $ECHO_N "(cached) $ECHO_C" >&6
3566 if test -n "$MAKE"; then
3567 ac_cv_prog_MAKE="$MAKE" # Let the user override the test.
3569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3573 test -z "$as_dir" && as_dir=.
3574 for ac_exec_ext in '' $ac_executable_extensions; do
3575 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3576 ac_cv_prog_MAKE="$ac_prog"
3577 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3585 MAKE=$ac_cv_prog_MAKE
3586 if test -n "$MAKE"; then
3587 echo "$as_me:$LINENO: result: $MAKE" >&5
3588 echo "${ECHO_T}$MAKE" >&6
3590 echo "$as_me:$LINENO: result: no" >&5
3591 echo "${ECHO_T}no" >&6
3594 test -n "$MAKE" && break
3597 if test -z "$MAKE"; then
3600 # Found it, now check the version.
3601 echo "$as_me:$LINENO: checking version of $MAKE" >&5
3602 echo $ECHO_N "checking version of $MAKE... $ECHO_C" >&6
3603 ac_prog_version=`$MAKE --version 2>&1 | sed -n 's/^.*GNU Make[^0-9]*\([0-9][0-9.]*\).*$/\1/p'`
3604 case $ac_prog_version in
3605 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
3607 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
3608 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
3611 echo "$as_me:$LINENO: result: $ac_prog_version" >&5
3612 echo "${ECHO_T}$ac_prog_version" >&6
3614 if test $ac_verc_fail = yes; then
3615 critic_missing="$critic_missing make"
3619 for ac_prog in gnumsgfmt gmsgfmt msgfmt
3621 # Extract the first word of "$ac_prog", so it can be a program name with args.
3622 set dummy $ac_prog; ac_word=$2
3623 echo "$as_me:$LINENO: checking for $ac_word" >&5
3624 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3625 if test "${ac_cv_prog_MSGFMT+set}" = set; then
3626 echo $ECHO_N "(cached) $ECHO_C" >&6
3628 if test -n "$MSGFMT"; then
3629 ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
3631 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3635 test -z "$as_dir" && as_dir=.
3636 for ac_exec_ext in '' $ac_executable_extensions; do
3637 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3638 ac_cv_prog_MSGFMT="$ac_prog"
3639 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3647 MSGFMT=$ac_cv_prog_MSGFMT
3648 if test -n "$MSGFMT"; then
3649 echo "$as_me:$LINENO: result: $MSGFMT" >&5
3650 echo "${ECHO_T}$MSGFMT" >&6
3652 echo "$as_me:$LINENO: result: no" >&5
3653 echo "${ECHO_T}no" >&6
3656 test -n "$MSGFMT" && break
3659 if test -z "$MSGFMT"; then
3662 # Found it, now check the version.
3663 echo "$as_me:$LINENO: checking version of $MSGFMT" >&5
3664 echo $ECHO_N "checking version of $MSGFMT... $ECHO_C" >&6
3665 ac_prog_version=`$MSGFMT --version 2>&1 | sed -n 's/^.*GNU gettext.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
3666 case $ac_prog_version in
3667 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
3668 0.10.3[6-9]* | 0.10.[4-9][0-9]* | 0.1[1-9]* | 0.[2-9][0-9]* | [1-9].*)
3669 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
3670 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
3673 echo "$as_me:$LINENO: result: $ac_prog_version" >&5
3674 echo "${ECHO_T}$ac_prog_version" >&6
3676 if test $ac_verc_fail = yes; then
3677 MSGFMT=: aux_missing="$aux_missing msgfmt"
3680 for ac_prog in makeinfo
3682 # Extract the first word of "$ac_prog", so it can be a program name with args.
3683 set dummy $ac_prog; ac_word=$2
3684 echo "$as_me:$LINENO: checking for $ac_word" >&5
3685 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3686 if test "${ac_cv_prog_MAKEINFO+set}" = set; then
3687 echo $ECHO_N "(cached) $ECHO_C" >&6
3689 if test -n "$MAKEINFO"; then
3690 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
3692 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3696 test -z "$as_dir" && as_dir=.
3697 for ac_exec_ext in '' $ac_executable_extensions; do
3698 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3699 ac_cv_prog_MAKEINFO="$ac_prog"
3700 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3708 MAKEINFO=$ac_cv_prog_MAKEINFO
3709 if test -n "$MAKEINFO"; then
3710 echo "$as_me:$LINENO: result: $MAKEINFO" >&5
3711 echo "${ECHO_T}$MAKEINFO" >&6
3713 echo "$as_me:$LINENO: result: no" >&5
3714 echo "${ECHO_T}no" >&6
3717 test -n "$MAKEINFO" && break
3720 if test -z "$MAKEINFO"; then
3723 # Found it, now check the version.
3724 echo "$as_me:$LINENO: checking version of $MAKEINFO" >&5
3725 echo $ECHO_N "checking version of $MAKEINFO... $ECHO_C" >&6
3726 ac_prog_version=`$MAKEINFO --version 2>&1 | sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
3727 case $ac_prog_version in
3728 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
3730 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
3731 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
3734 echo "$as_me:$LINENO: result: $ac_prog_version" >&5
3735 echo "${ECHO_T}$ac_prog_version" >&6
3737 if test $ac_verc_fail = yes; then
3738 MAKEINFO=: aux_missing="$aux_missing makeinfo"
3743 # Extract the first word of "$ac_prog", so it can be a program name with args.
3744 set dummy $ac_prog; ac_word=$2
3745 echo "$as_me:$LINENO: checking for $ac_word" >&5
3746 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3747 if test "${ac_cv_prog_SED+set}" = set; then
3748 echo $ECHO_N "(cached) $ECHO_C" >&6
3750 if test -n "$SED"; then
3751 ac_cv_prog_SED="$SED" # Let the user override the test.
3753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3757 test -z "$as_dir" && as_dir=.
3758 for ac_exec_ext in '' $ac_executable_extensions; do
3759 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3760 ac_cv_prog_SED="$ac_prog"
3761 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3770 if test -n "$SED"; then
3771 echo "$as_me:$LINENO: result: $SED" >&5
3772 echo "${ECHO_T}$SED" >&6
3774 echo "$as_me:$LINENO: result: no" >&5
3775 echo "${ECHO_T}no" >&6
3778 test -n "$SED" && break
3781 if test -z "$SED"; then
3784 # Found it, now check the version.
3785 echo "$as_me:$LINENO: checking version of $SED" >&5
3786 echo $ECHO_N "checking version of $SED... $ECHO_C" >&6
3787 ac_prog_version=`$SED --version 2>&1 | sed -n 's/^.*GNU sed version \([0-9]*\.[0-9.]*\).*$/\1/p'`
3788 case $ac_prog_version in
3789 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
3790 3.0[2-9]*|3.[1-9]*|[4-9]*)
3791 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
3792 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
3795 echo "$as_me:$LINENO: result: $ac_prog_version" >&5
3796 echo "${ECHO_T}$ac_prog_version" >&6
3798 if test $ac_verc_fail = yes; then
3799 SED=: aux_missing="$aux_missing sed"
3803 if test "x$with_cvs" != xyes; then
3804 for ac_prog in autoconf
3806 # Extract the first word of "$ac_prog", so it can be a program name with args.
3807 set dummy $ac_prog; ac_word=$2
3808 echo "$as_me:$LINENO: checking for $ac_word" >&5
3809 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3810 if test "${ac_cv_prog_AUTOCONF+set}" = set; then
3811 echo $ECHO_N "(cached) $ECHO_C" >&6
3813 if test -n "$AUTOCONF"; then
3814 ac_cv_prog_AUTOCONF="$AUTOCONF" # Let the user override the test.
3816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3820 test -z "$as_dir" && as_dir=.
3821 for ac_exec_ext in '' $ac_executable_extensions; do
3822 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3823 ac_cv_prog_AUTOCONF="$ac_prog"
3824 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3832 AUTOCONF=$ac_cv_prog_AUTOCONF
3833 if test -n "$AUTOCONF"; then
3834 echo "$as_me:$LINENO: result: $AUTOCONF" >&5
3835 echo "${ECHO_T}$AUTOCONF" >&6
3837 echo "$as_me:$LINENO: result: no" >&5
3838 echo "${ECHO_T}no" >&6
3841 test -n "$AUTOCONF" && break
3843 test -n "$AUTOCONF" || AUTOCONF="no"
3845 case "x$AUTOCONF" in
3846 xno|x|x:) AUTOCONF=no ;;
3848 echo "$as_me:$LINENO: checking whether $AUTOCONF${ACFLAGS:+ }$ACFLAGS works" >&5
3849 echo $ECHO_N "checking whether $AUTOCONF${ACFLAGS:+ }$ACFLAGS works... $ECHO_C" >&6
3850 if test "${libc_cv_autoconf_works+set}" = set; then
3851 echo $ECHO_N "(cached) $ECHO_C" >&6
3853 if (cd $srcdir; $AUTOCONF $ACFLAGS configure.in > /dev/null 2>&1); then
3854 libc_cv_autoconf_works=yes
3856 libc_cv_autoconf_works=no
3859 echo "$as_me:$LINENO: result: $libc_cv_autoconf_works" >&5
3860 echo "${ECHO_T}$libc_cv_autoconf_works" >&6
3861 test $libc_cv_autoconf_works = yes || AUTOCONF=no
3864 test "x$AUTOCONF" != xno || aux_missing="$aux_missing autoconf"
3867 test -n "$critic_missing" && { { echo "$as_me:$LINENO: error:
3868 *** These critical programs are missing or too old:$critic_missing
3869 *** Check the INSTALL file for required versions." >&5
3870 echo "$as_me: error:
3871 *** These critical programs are missing or too old:$critic_missing
3872 *** Check the INSTALL file for required versions." >&2;}
3873 { (exit 1); exit 1; }; }
3875 test -n "$aux_missing" && { echo "$as_me:$LINENO: WARNING:
3876 *** These auxiliary programs are missing or incompatible versions:$aux_missing
3877 *** some features will be disabled.
3878 *** Check the INSTALL file for required versions." >&5
3879 echo "$as_me: WARNING:
3880 *** These auxiliary programs are missing or incompatible versions:$aux_missing
3881 *** some features will be disabled.
3882 *** Check the INSTALL file for required versions." >&2;}
3884 # glibcbug.in wants to know the compiler version.
3885 CCVERSION=`$CC -v 2>&1 | sed -n 's/gcc version //p'`
3888 # if using special system headers, find out the compiler's sekrit
3889 # header directory and add that to the list. NOTE: Only does the right
3890 # thing on a system that doesn't need fixincludes. (Not presently a problem.)
3891 if test -n "$sysheaders"; then
3892 ccheaders=`$CC -print-file-name=include`
3893 SYSINCLUDES="-nostdinc -isystem $ccheaders -isystem $sysheaders"
3897 # check if ranlib is necessary
3898 echo "$as_me:$LINENO: checking whether ranlib is necessary" >&5
3899 echo $ECHO_N "checking whether ranlib is necessary... $ECHO_C" >&6
3900 if test "${libc_cv_ranlib_necessary+set}" = set; then
3901 echo $ECHO_N "(cached) $ECHO_C" >&6
3903 cat > conftest.c <<EOF
3908 $CC $CFLAGS -c conftest.c
3909 $AR cr conftest.a conftest.o
3910 cp conftest.a conftest2.a
3912 if cmp -s conftest.a conftest2.a; then
3913 libc_cv_ranlib_necessary=no
3915 libc_cv_ranlib_necessary=yes
3919 echo "$as_me:$LINENO: result: $libc_cv_ranlib_necessary" >&5
3920 echo "${ECHO_T}$libc_cv_ranlib_necessary" >&6
3921 if test "$libc_cv_ranlib_necessary" = no; then
3925 # Test if LD_LIBRARY_PATH contains the notation for the current directory
3926 # since this would lead to problems installing/building glibc.
3927 # LD_LIBRARY_PATH contains the current directory if one of the following
3929 # - one of the terminals (":" and ";") is the first or last sign
3930 # - two terminals occur directly after each other
3931 # - the path contains an element with a dot in it
3932 echo "$as_me:$LINENO: checking LD_LIBRARY_PATH variable" >&5
3933 echo $ECHO_N "checking LD_LIBRARY_PATH variable... $ECHO_C" >&6
3934 case ${LD_LIBRARY_PATH} in
3935 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3936 ld_library_path_setting="contains current directory"
3939 ld_library_path_setting="ok"
3942 echo "$as_me:$LINENO: result: $ld_library_path_setting" >&5
3943 echo "${ECHO_T}$ld_library_path_setting" >&6
3944 if test "$ld_library_path_setting" != "ok"; then
3945 { { echo "$as_me:$LINENO: error:
3946 *** LD_LIBRARY_PATH shouldn't contain the current directory when
3947 *** building glibc. Please change the environment variable
3948 *** and run configure again." >&5
3949 echo "$as_me: error:
3950 *** LD_LIBRARY_PATH shouldn't contain the current directory when
3951 *** building glibc. Please change the environment variable
3952 *** and run configure again." >&2;}
3953 { (exit 1); exit 1; }; }
3956 echo "$as_me:$LINENO: checking whether GCC supports -static-libgcc" >&5
3957 echo $ECHO_N "checking whether GCC supports -static-libgcc... $ECHO_C" >&6
3958 if test "${libc_cv_gcc_static_libgcc+set}" = set; then
3959 echo $ECHO_N "(cached) $ECHO_C" >&6
3961 if $CC -v -static-libgcc 2>&1 | grep -q 'unrecognized option.*static-libgcc'; then
3962 libc_cv_gcc_static_libgcc=
3964 libc_cv_gcc_static_libgcc=-static-libgcc
3967 echo "$as_me:$LINENO: result: $libc_cv_gcc_static_libgcc" >&5
3968 echo "${ECHO_T}$libc_cv_gcc_static_libgcc" >&6
3971 # Extract the first word of "bash", so it can be a program name with args.
3972 set dummy bash; ac_word=$2
3973 echo "$as_me:$LINENO: checking for $ac_word" >&5
3974 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3975 if test "${ac_cv_path_BASH+set}" = set; then
3976 echo $ECHO_N "(cached) $ECHO_C" >&6
3980 ac_cv_path_BASH="$BASH" # Let the user override the test with a path.
3983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3987 test -z "$as_dir" && as_dir=.
3988 for ac_exec_ext in '' $ac_executable_extensions; do
3989 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3990 ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext"
3991 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3997 test -z "$ac_cv_path_BASH" && ac_cv_path_BASH="no"
4001 BASH=$ac_cv_path_BASH
4003 if test -n "$BASH"; then
4004 echo "$as_me:$LINENO: result: $BASH" >&5
4005 echo "${ECHO_T}$BASH" >&6
4007 echo "$as_me:$LINENO: result: no" >&5
4008 echo "${ECHO_T}no" >&6
4011 if test "$BASH" != no &&
4012 $BASH -c 'test "$BASH_VERSINFO" \
4013 && test "$BASH_VERSINFO" -ge 2 >&/dev/null'; then
4014 libc_cv_have_bash2=yes
4016 libc_cv_have_bash2=no
4020 if test "$BASH" = no; then
4021 # Extract the first word of "ksh", so it can be a program name with args.
4022 set dummy ksh; ac_word=$2
4023 echo "$as_me:$LINENO: checking for $ac_word" >&5
4024 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4025 if test "${ac_cv_path_KSH+set}" = set; then
4026 echo $ECHO_N "(cached) $ECHO_C" >&6
4030 ac_cv_path_KSH="$KSH" # Let the user override the test with a path.
4033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4037 test -z "$as_dir" && as_dir=.
4038 for ac_exec_ext in '' $ac_executable_extensions; do
4039 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4040 ac_cv_path_KSH="$as_dir/$ac_word$ac_exec_ext"
4041 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4047 test -z "$ac_cv_path_KSH" && ac_cv_path_KSH="no"
4053 if test -n "$KSH"; then
4054 echo "$as_me:$LINENO: result: $KSH" >&5
4055 echo "${ECHO_T}$KSH" >&6
4057 echo "$as_me:$LINENO: result: no" >&5
4058 echo "${ECHO_T}no" >&6
4061 if test "$KSH" = no; then
4064 libc_cv_have_ksh=yes
4069 libc_cv_have_ksh=yes
4073 for ac_prog in gawk mawk nawk awk
4075 # Extract the first word of "$ac_prog", so it can be a program name with args.
4076 set dummy $ac_prog; ac_word=$2
4077 echo "$as_me:$LINENO: checking for $ac_word" >&5
4078 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4079 if test "${ac_cv_prog_AWK+set}" = set; then
4080 echo $ECHO_N "(cached) $ECHO_C" >&6
4082 if test -n "$AWK"; then
4083 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4089 test -z "$as_dir" && as_dir=.
4090 for ac_exec_ext in '' $ac_executable_extensions; do
4091 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4092 ac_cv_prog_AWK="$ac_prog"
4093 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4102 if test -n "$AWK"; then
4103 echo "$as_me:$LINENO: result: $AWK" >&5
4104 echo "${ECHO_T}$AWK" >&6
4106 echo "$as_me:$LINENO: result: no" >&5
4107 echo "${ECHO_T}no" >&6
4110 test -n "$AWK" && break
4113 # Extract the first word of "perl", so it can be a program name with args.
4114 set dummy perl; ac_word=$2
4115 echo "$as_me:$LINENO: checking for $ac_word" >&5
4116 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4117 if test "${ac_cv_path_PERL+set}" = set; then
4118 echo $ECHO_N "(cached) $ECHO_C" >&6
4122 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
4125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4129 test -z "$as_dir" && as_dir=.
4130 for ac_exec_ext in '' $ac_executable_extensions; do
4131 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4132 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
4133 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4139 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="no"
4143 PERL=$ac_cv_path_PERL
4145 if test -n "$PERL"; then
4146 echo "$as_me:$LINENO: result: $PERL" >&5
4147 echo "${ECHO_T}$PERL" >&6
4149 echo "$as_me:$LINENO: result: no" >&5
4150 echo "${ECHO_T}no" >&6
4153 if test "$PERL" != no &&
4154 (eval `$PERL -V:apiversion`; test `expr "$apiversion" \< 5` -ne 0); then
4157 # Extract the first word of "install-info", so it can be a program name with args.
4158 set dummy install-info; ac_word=$2
4159 echo "$as_me:$LINENO: checking for $ac_word" >&5
4160 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4161 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4162 echo $ECHO_N "(cached) $ECHO_C" >&6
4164 case $INSTALL_INFO in
4166 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
4169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4170 as_dummy="$PATH:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin"
4171 for as_dir in $as_dummy
4174 test -z "$as_dir" && as_dir=.
4175 for ac_exec_ext in '' $ac_executable_extensions; do
4176 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4177 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
4178 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4184 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO="no"
4188 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
4190 if test -n "$INSTALL_INFO"; then
4191 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4192 echo "${ECHO_T}$INSTALL_INFO" >&6
4194 echo "$as_me:$LINENO: result: no" >&5
4195 echo "${ECHO_T}no" >&6
4198 if test "$INSTALL_INFO" != "no"; then
4199 echo "$as_me:$LINENO: checking for old Debian install-info" >&5
4200 echo $ECHO_N "checking for old Debian install-info... $ECHO_C" >&6
4201 if test "${libc_cv_old_debian_install_info+set}" = set; then
4202 echo $ECHO_N "(cached) $ECHO_C" >&6
4205 # There is a hard ^_ on the next line. I am open to better ideas.
4207 echo 'File: dir Node: Top This is the top of the INFO tree'
4208 echo '* Menu:') >conftest.d/dir
4209 (echo 'INFO-DIR-SECTION i-d-s works'
4210 echo 'START-INFO-DIR-ENTRY'
4211 echo '* Prog: (prog). Program.'
4212 echo 'END-INFO-DIR-ENTRY') >conftest.d/prog.info
4213 if $INSTALL_INFO --info-dir=conftest.d conftest.d/prog.info >&5 2>&1
4215 if grep -s 'i-d-s works' conftest.d/dir >/dev/null
4216 then libc_cv_old_debian_install_info=no
4217 else libc_cv_old_debian_install_info=yes
4219 else libc_cv_old_debian_install_info=no testfailed=t
4223 echo "$as_me:$LINENO: result: $libc_cv_old_debian_install_info" >&5
4224 echo "${ECHO_T}$libc_cv_old_debian_install_info" >&6
4225 if test -n "$testfailed"
4226 then { echo "$as_me:$LINENO: WARNING: install-info errored out, check config.log" >&5
4227 echo "$as_me: WARNING: install-info errored out, check config.log" >&2;}
4229 OLD_DEBIAN_INSTALL_INFO=$libc_cv_old_debian_install_info
4233 # Extract the first word of "bison", so it can be a program name with args.
4234 set dummy bison; ac_word=$2
4235 echo "$as_me:$LINENO: checking for $ac_word" >&5
4236 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4237 if test "${ac_cv_path_BISON+set}" = set; then
4238 echo $ECHO_N "(cached) $ECHO_C" >&6
4242 ac_cv_path_BISON="$BISON" # Let the user override the test with a path.
4245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4246 as_dummy="$PATH:/usr/local/bin:/usr/bin:/bin"
4247 for as_dir in $as_dummy
4250 test -z "$as_dir" && as_dir=.
4251 for ac_exec_ext in '' $ac_executable_extensions; do
4252 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4253 ac_cv_path_BISON="$as_dir/$ac_word$ac_exec_ext"
4254 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4260 test -z "$ac_cv_path_BISON" && ac_cv_path_BISON="no"
4264 BISON=$ac_cv_path_BISON
4266 if test -n "$BISON"; then
4267 echo "$as_me:$LINENO: result: $BISON" >&5
4268 echo "${ECHO_T}$BISON" >&6
4270 echo "$as_me:$LINENO: result: no" >&5
4271 echo "${ECHO_T}no" >&6
4275 echo "$as_me:$LINENO: checking for signed size_t type" >&5
4276 echo $ECHO_N "checking for signed size_t type... $ECHO_C" >&6
4277 if test "${libc_cv_signed_size_t+set}" = set; then
4278 echo $ECHO_N "(cached) $ECHO_C" >&6
4280 echo '#include <stddef.h>
4281 FOOBAR __SIZE_TYPE__ FOOBAR' > conftest.c
4282 if eval "$ac_cpp conftest.c 2>/dev/null" \
4283 | grep '^FOOBAR.*unsigned.*FOOBAR$' >/dev/null; then
4284 libc_cv_signed_size_t=no
4286 libc_cv_signed_size_t=yes
4290 echo "$as_me:$LINENO: result: $libc_cv_signed_size_t" >&5
4291 echo "${ECHO_T}$libc_cv_signed_size_t" >&6
4292 if test $libc_cv_signed_size_t = yes; then
4293 cat >> confdefs.h <<\EOF
4294 #undef __SIZE_TYPE__
4295 #define __SIZE_TYPE__ unsigned
4300 echo "$as_me:$LINENO: checking for libc-friendly stddef.h" >&5
4301 echo $ECHO_N "checking for libc-friendly stddef.h... $ECHO_C" >&6
4302 if test "${libc_cv_friendly_stddef+set}" = set; then
4303 echo $ECHO_N "(cached) $ECHO_C" >&6
4305 cat >conftest.$ac_ext <<_ACEOF
4306 #line $LINENO "configure"
4309 cat confdefs.h >>conftest.$ac_ext
4310 cat >>conftest.$ac_ext <<_ACEOF
4311 /* end confdefs.h. */
4312 #define __need_size_t
4313 #define __need_wchar_t
4320 size_t size; wchar_t wchar;
4322 #error stddef.h ignored __need_*
4324 if (&size == NULL || &wchar == NULL) abort ();
4329 rm -f conftest.$ac_objext
4330 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4331 (eval $ac_compile) 2>&5
4333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4334 (exit $ac_status); } &&
4335 { ac_try='test -s conftest.$ac_objext'
4336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4340 (exit $ac_status); }; }; then
4341 libc_cv_friendly_stddef=yes
4343 echo "$as_me: failed program was:" >&5
4344 sed 's/^/| /' conftest.$ac_ext >&5
4346 libc_cv_friendly_stddef=no
4348 rm -f conftest.$ac_objext conftest.$ac_ext
4350 echo "$as_me:$LINENO: result: $libc_cv_friendly_stddef" >&5
4351 echo "${ECHO_T}$libc_cv_friendly_stddef" >&6
4352 if test $libc_cv_friendly_stddef = yes; then
4353 config_vars="$config_vars
4354 override stddef.h = # The installed <stddef.h> seems to be libc-friendly."
4357 echo "$as_me:$LINENO: checking whether we need to use -P to assemble .S files" >&5
4358 echo $ECHO_N "checking whether we need to use -P to assemble .S files... $ECHO_C" >&6
4359 if test "${libc_cv_need_minus_P+set}" = set; then
4360 echo $ECHO_N "(cached) $ECHO_C" >&6
4362 cat > conftest.S <<EOF
4363 #include "confdefs.h"
4364 /* Nothing whatsoever. */
4366 if { ac_try='${CC-cc} $CFLAGS -c conftest.S 1>&5'
4367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4371 (exit $ac_status); }; }; then
4372 libc_cv_need_minus_P=no
4374 libc_cv_need_minus_P=yes
4378 echo "$as_me:$LINENO: result: $libc_cv_need_minus_P" >&5
4379 echo "${ECHO_T}$libc_cv_need_minus_P" >&6
4380 if test $libc_cv_need_minus_P = yes; then
4381 config_vars="$config_vars
4382 asm-CPPFLAGS = -P # The assembler can't grok cpp's # line directives."
4385 echo "$as_me:$LINENO: checking whether .text pseudo-op must be used" >&5
4386 echo $ECHO_N "checking whether .text pseudo-op must be used... $ECHO_C" >&6
4387 if test "${libc_cv_dot_text+set}" = set; then
4388 echo $ECHO_N "(cached) $ECHO_C" >&6
4390 cat > conftest.s <<EOF
4394 if { ac_try='${CC-cc} $CFLAGS -c conftest.s 1>&5'
4395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4399 (exit $ac_status); }; }; then
4400 libc_cv_dot_text=.text
4405 if test -z "$libc_cv_dot_text"; then
4406 echo "$as_me:$LINENO: result: no" >&5
4407 echo "${ECHO_T}no" >&6
4409 echo "$as_me:$LINENO: result: yes" >&5
4410 echo "${ECHO_T}yes" >&6
4413 echo "$as_me:$LINENO: checking for assembler global-symbol directive" >&5
4414 echo $ECHO_N "checking for assembler global-symbol directive... $ECHO_C" >&6
4415 if test "${libc_cv_asm_global_directive+set}" = set; then
4416 echo $ECHO_N "(cached) $ECHO_C" >&6
4418 libc_cv_asm_global_directive=UNKNOWN
4419 for ac_globl in .globl .global .EXPORT; do
4420 cat > conftest.s <<EOF
4425 if { ac_try='${CC-cc} $CFLAGS -c conftest.s 1>&5'
4426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4430 (exit $ac_status); }; }; then
4431 libc_cv_asm_global_directive=${ac_globl}
4434 test $libc_cv_asm_global_directive != UNKNOWN && break
4437 echo "$as_me:$LINENO: result: $libc_cv_asm_global_directive" >&5
4438 echo "${ECHO_T}$libc_cv_asm_global_directive" >&6
4439 if test $libc_cv_asm_global_directive = UNKNOWN; then
4440 { { echo "$as_me:$LINENO: error: cannot determine asm global directive" >&5
4441 echo "$as_me: error: cannot determine asm global directive" >&2;}
4442 { (exit 1); exit 1; }; }
4444 cat >>confdefs.h <<_ACEOF
4445 #define ASM_GLOBAL_DIRECTIVE ${libc_cv_asm_global_directive}
4450 echo "$as_me:$LINENO: checking for .set assembler directive" >&5
4451 echo $ECHO_N "checking for .set assembler directive... $ECHO_C" >&6
4452 if test "${libc_cv_asm_set_directive+set}" = set; then
4453 echo $ECHO_N "(cached) $ECHO_C" >&6
4455 cat > conftest.s <<EOF
4458 .set glibc_conftest_frobozz,foo
4459 $libc_cv_asm_global_directive glibc_conftest_frobozz
4461 # The alpha-dec-osf1 assembler gives only a warning for `.set'
4462 # (but it doesn't work), so we must do a linking check to be sure.
4463 cat > conftest1.c <<\EOF
4464 extern int glibc_conftest_frobozz;
4465 main () { printf ("%d\n", glibc_conftest_frobozz); }
4467 if ${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \
4468 -o conftest conftest.s conftest1.c 1>&5 2>&5; then
4469 libc_cv_asm_set_directive=yes
4471 libc_cv_asm_set_directive=no
4475 echo "$as_me:$LINENO: result: $libc_cv_asm_set_directive" >&5
4476 echo "${ECHO_T}$libc_cv_asm_set_directive" >&6
4477 if test $libc_cv_asm_set_directive = yes; then
4478 cat >>confdefs.h <<\_ACEOF
4479 #define HAVE_ASM_SET_DIRECTIVE 1
4484 echo "$as_me:$LINENO: checking for assembler .type directive prefix" >&5
4485 echo $ECHO_N "checking for assembler .type directive prefix... $ECHO_C" >&6
4486 if test "${libc_cv_asm_type_prefix+set}" = set; then
4487 echo $ECHO_N "(cached) $ECHO_C" >&6
4489 libc_cv_asm_type_prefix=no
4490 for ac_try_prefix in '@' '%' '#'; do
4491 cat > conftest.s <<EOF
4493 ${libc_cv_asm_global_directive} foo
4494 .type foo, ${ac_try_prefix}object
4499 if { ac_try='${CC-cc} $CFLAGS -c conftest.s 1>&5'
4500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4504 (exit $ac_status); }; }; then
4505 libc_cv_asm_type_prefix=${ac_try_prefix}
4508 test "x$libc_cv_asm_type_prefix" != xno && break
4511 echo "$as_me:$LINENO: result: $libc_cv_asm_type_prefix" >&5
4512 echo "${ECHO_T}$libc_cv_asm_type_prefix" >&6
4513 if test "x$libc_cv_asm_type_prefix" != xno; then
4514 cat >>confdefs.h <<_ACEOF
4515 #define ASM_TYPE_DIRECTIVE_PREFIX ${libc_cv_asm_type_prefix}
4520 # The Aix ld uses global .symbol_names instead of symbol_names.
4521 # Unfortunately also used in the PPC64 ELF ABI.
4522 case "${os}${machine}" in
4523 aix4.3* | linux*powerpc/powerpc64*)
4524 cat >>confdefs.h <<\_ACEOF
4525 #define HAVE_ASM_GLOBAL_DOT_NAME 1
4530 echo "$as_me:$LINENO: checking for .symver assembler directive" >&5
4531 echo $ECHO_N "checking for .symver assembler directive... $ECHO_C" >&6
4532 if test "${libc_cv_asm_symver_directive+set}" = set; then
4533 echo $ECHO_N "(cached) $ECHO_C" >&6
4535 cat > conftest.s <<EOF
4538 .symver _sym,sym@VERS
4540 if ${CC-cc} -c $CFLAGS $CPPFLAGS conftest.s 1>&5 2>&5; then
4541 libc_cv_asm_symver_directive=yes
4543 libc_cv_asm_symver_directive=no
4547 echo "$as_me:$LINENO: result: $libc_cv_asm_symver_directive" >&5
4548 echo "${ECHO_T}$libc_cv_asm_symver_directive" >&6
4549 echo "$as_me:$LINENO: checking for ld --version-script" >&5
4550 echo $ECHO_N "checking for ld --version-script... $ECHO_C" >&6
4551 if test "${libc_cv_ld_version_script_option+set}" = set; then
4552 echo $ECHO_N "(cached) $ECHO_C" >&6
4554 if test $libc_cv_asm_symver_directive = yes; then
4555 cat > conftest.s <<EOF
4558 .symver _sym,sym@VERS
4560 cat > conftest.map <<EOF
4569 if ${CC-cc} -c $CFLAGS $CPPFLAGS conftest.s 1>&5 2>&5; then
4570 if { ac_try='${CC-cc} $CFLAGS -shared -o conftest.so conftest.o
4571 -nostartfiles -nostdlib
4572 -Wl,--version-script,conftest.map
4574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4578 (exit $ac_status); }; };
4580 libc_cv_ld_version_script_option=yes
4582 libc_cv_ld_version_script_option=no
4585 libc_cv_ld_version_script_option=no
4588 libc_cv_ld_version_script_option=no
4592 echo "$as_me:$LINENO: result: $libc_cv_ld_version_script_option" >&5
4593 echo "${ECHO_T}$libc_cv_ld_version_script_option" >&6
4594 if test $shared != no &&
4595 test $libc_cv_asm_symver_directive = yes &&
4596 test $libc_cv_ld_version_script_option = yes &&
4597 test $enable_versioning = yes; then
4599 cat >>confdefs.h <<\_ACEOF
4600 #define DO_VERSIONING 1
4608 if test $elf = yes && test $shared != no && test $VERSIONING = no; then
4610 *** WARNING: You should not compile GNU libc without versioning. Not using
4611 *** versioning will introduce incompatibilities so that old binaries
4612 *** will not run anymore.
4613 *** For versioning you need recent binutils (binutils-2.8.1.0.23 or newer)."
4615 if test $elf = yes; then
4616 echo "$as_me:$LINENO: checking for .previous assembler directive" >&5
4617 echo $ECHO_N "checking for .previous assembler directive... $ECHO_C" >&6
4618 if test "${libc_cv_asm_previous_directive+set}" = set; then
4619 echo $ECHO_N "(cached) $ECHO_C" >&6
4621 cat > conftest.s <<EOF
4622 .section foo_section
4625 if { ac_try='${CC-cc} -c $CFLAGS conftest.s 1>&5'
4626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4630 (exit $ac_status); }; }; then
4631 libc_cv_asm_previous_directive=yes
4633 libc_cv_asm_previous_directive=no
4637 echo "$as_me:$LINENO: result: $libc_cv_asm_previous_directive" >&5
4638 echo "${ECHO_T}$libc_cv_asm_previous_directive" >&6
4639 if test $libc_cv_asm_previous_directive = yes; then
4640 cat >>confdefs.h <<\_ACEOF
4641 #define HAVE_ASM_PREVIOUS_DIRECTIVE 1
4645 echo "$as_me:$LINENO: checking for .popsection assembler directive" >&5
4646 echo $ECHO_N "checking for .popsection assembler directive... $ECHO_C" >&6
4647 if test "${libc_cv_asm_popsection_directive+set}" = set; then