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 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 PWD_P CC MAKE MSGFMT MAKEINFO SED AUTOCONF CFLAGS LDFLAGS CPPFLAGS ac_ct_CC OBJEXT BUILD_CC cross_compiling CPP AR OBJDUMP RANLIB ac_ct_RANLIB MIG AS LD 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 --enable-shared build shared library [default=yes if GNU ld &
856 --enable-profile build profiled library [default=yes]
857 --enable-omitfp build undebuggable optimized library
859 --enable-bounded build with runtime bounds checking
861 --disable-versioning do not include versioning information in the library
862 objects [default=yes if supported]
863 --enable-oldest-abi=ABI configure the oldest ABI supported [e.g. 2.2]
864 [default=glibc default]
865 --enable-add-ons[=DIRS...]
866 configure and build add-ons in DIR1,DIR2,... search
867 for add-ons if no parameter given
868 --disable-hidden-plt do not hide internal function calls to avoid PLT
869 --enable-static-nss build static NSS modules [default=no]
870 --disable-force-install don't force installation of files from this package,
871 even if they are older than the installed files
872 --enable-kernel=VERSION compile for compatibility with kernel not older than
874 --enable-all-warnings enable all useful warnings gcc can issue
877 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
878 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
879 --with-gmp=DIRECTORY find GMP source code in DIRECTORY (not needed)
880 --with-gd=DIR find libgd include dir and library with prefix DIR
881 --with-gd-include=DIR find libgd include files in DIR
882 --with-gd-lib=DIR find libgd library files in DIR
883 --with-fp if using floating-point hardware [default=yes]
884 --with-binutils=PATH specify location of binutils (as and ld)
885 --with-elf if using the ELF object format
886 --with-xcoff if using the XCOFF object format
887 --without-cvs if CVS should not be used
888 --with-headers=PATH location of system headers to use (for example
889 /usr/src/linux/include) [default=compiler
891 --with-tls enable support for TLS
892 --without-__thread do not use TLS features even when supporting them
894 Some influential environment variables:
895 CC C compiler command
896 CFLAGS C compiler flags
897 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
898 nonstandard directory <lib dir>
899 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
900 headers in a nonstandard directory <include dir>
903 Use these variables to override the choices made by `configure' or to help
904 it to find libraries and programs with nonstandard names/locations.
906 Report bugs to <glibc>.
910 if test "$ac_init_help" = "recursive"; then
911 # If there are subdirs, report their specific --help.
913 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
914 test -d $ac_dir || continue
917 if test "$ac_dir" != .; then
918 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
919 # A "../" for each directory in $ac_dir_suffix.
920 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
922 ac_dir_suffix= ac_top_builddir=
926 .) # No --srcdir option. We are building in place.
928 if test -z "$ac_top_builddir"; then
931 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
933 [\\/]* | ?:[\\/]* ) # Absolute path.
934 ac_srcdir=$srcdir$ac_dir_suffix;
935 ac_top_srcdir=$srcdir ;;
937 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
938 ac_top_srcdir=$ac_top_builddir$srcdir ;;
940 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
942 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
943 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
944 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
945 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
948 # Check for guested configure; otherwise get Cygnus style configure.
949 if test -f $ac_srcdir/configure.gnu; then
951 $SHELL $ac_srcdir/configure.gnu --help=recursive
952 elif test -f $ac_srcdir/configure; then
954 $SHELL $ac_srcdir/configure --help=recursive
955 elif test -f $ac_srcdir/configure.ac ||
956 test -f $ac_srcdir/configure.in; then
960 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
966 test -n "$ac_init_help" && exit 0
967 if $ac_init_version; then
969 GNU C Library configure (see version.h)
970 generated by GNU Autoconf 2.57
972 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
973 Free Software Foundation, Inc.
974 This configure script is free software; the Free Software Foundation
975 gives unlimited permission to copy, distribute and modify it.
981 This file contains any messages produced by compilers while
982 running configure, to aid debugging if configure makes a mistake.
984 It was created by GNU C Library $as_me (see version.h), which was
985 generated by GNU Autoconf 2.57. Invocation command line was
996 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
997 uname -m = `(uname -m) 2>/dev/null || echo unknown`
998 uname -r = `(uname -r) 2>/dev/null || echo unknown`
999 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1000 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1002 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1003 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1005 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1006 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1007 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1008 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1009 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1010 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1011 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1019 test -z "$as_dir" && as_dir=.
1020 echo "PATH: $as_dir"
1035 # Keep a trace of the command line.
1036 # Strip out --no-create and --no-recursion so they do not pile up.
1037 # Strip out --silent because we don't want to record it for future runs.
1038 # Also quote any args containing shell meta-characters.
1039 # Make two passes to allow for proper duplicate-argument suppression.
1044 ac_must_keep_next=false
1050 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1051 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1052 | -silent | --silent | --silen | --sile | --sil)
1054 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1055 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1058 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1060 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1061 if test $ac_must_keep_next = true; then
1062 ac_must_keep_next=false # Got value, back to normal.
1065 *=* | --config-cache | -C | -disable-* | --disable-* \
1066 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1067 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1068 | -with-* | --with-* | -without-* | --without-* | --x)
1069 case "$ac_configure_args0 " in
1070 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1073 -* ) ac_must_keep_next=true ;;
1076 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1077 # Get rid of the leading space.
1083 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1084 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1086 # When interrupted or exit'd, cleanup temporary files, and complete
1087 # config.log. We remove comments because anyway the quotes in there
1088 # would cause problems or look ugly.
1089 # WARNING: Be sure not to use single quotes in there, as some shells,
1090 # such as our DU 5.0 friend, will then `close' the trap.
1091 trap 'exit_status=$?
1092 # Save into config.log some information that might help in debugging.
1097 ## ---------------- ##
1098 ## Cache variables. ##
1099 ## ---------------- ##
1102 # The following way of writing the cache mishandles newlines in values,
1105 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1108 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1109 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1113 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1120 ## ----------------- ##
1121 ## Output variables. ##
1122 ## ----------------- ##
1125 for ac_var in $ac_subst_vars
1127 eval ac_val=$`echo $ac_var`
1128 echo "$ac_var='"'"'$ac_val'"'"'"
1132 if test -n "$ac_subst_files"; then
1139 for ac_var in $ac_subst_files
1141 eval ac_val=$`echo $ac_var`
1142 echo "$ac_var='"'"'$ac_val'"'"'"
1147 if test -s confdefs.h; then
1154 sed "/^$/d" confdefs.h | sort
1157 test "$ac_signal" != 0 &&
1158 echo "$as_me: caught signal $ac_signal"
1159 echo "$as_me: exit $exit_status"
1161 rm -f core core.* *.core &&
1162 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1165 for ac_signal in 1 2 13 15; do
1166 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1170 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1171 rm -rf conftest* confdefs.h
1172 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1175 # Predefined preprocessor variables.
1177 cat >>confdefs.h <<_ACEOF
1178 #define PACKAGE_NAME "$PACKAGE_NAME"
1182 cat >>confdefs.h <<_ACEOF
1183 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1187 cat >>confdefs.h <<_ACEOF
1188 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1192 cat >>confdefs.h <<_ACEOF
1193 #define PACKAGE_STRING "$PACKAGE_STRING"
1197 cat >>confdefs.h <<_ACEOF
1198 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1202 # Let the site file select an alternate cache file if it wants to.
1203 # Prefer explicitly selected file to automatically selected ones.
1204 if test -z "$CONFIG_SITE"; then
1205 if test "x$prefix" != xNONE; then
1206 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1208 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1211 for ac_site_file in $CONFIG_SITE; do
1212 if test -r "$ac_site_file"; then
1213 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1214 echo "$as_me: loading site script $ac_site_file" >&6;}
1215 sed 's/^/| /' "$ac_site_file" >&5
1220 if test -r "$cache_file"; then
1221 # Some versions of bash will fail to source /dev/null (special
1222 # files actually), so we avoid doing that.
1223 if test -f "$cache_file"; then
1224 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1225 echo "$as_me: loading cache $cache_file" >&6;}
1227 [\\/]* | ?:[\\/]* ) . $cache_file;;
1228 *) . ./$cache_file;;
1232 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1233 echo "$as_me: creating cache $cache_file" >&6;}
1237 # Check that the precious variables saved in the cache have kept the same
1239 ac_cache_corrupted=false
1240 for ac_var in `(set) 2>&1 |
1241 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1242 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1243 eval ac_new_set=\$ac_env_${ac_var}_set
1244 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1245 eval ac_new_val="\$ac_env_${ac_var}_value"
1246 case $ac_old_set,$ac_new_set in
1248 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1249 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1250 ac_cache_corrupted=: ;;
1252 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1253 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1254 ac_cache_corrupted=: ;;
1257 if test "x$ac_old_val" != "x$ac_new_val"; then
1258 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1259 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1260 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1261 echo "$as_me: former value: $ac_old_val" >&2;}
1262 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1263 echo "$as_me: current value: $ac_new_val" >&2;}
1264 ac_cache_corrupted=:
1267 # Pass precious variables to config.status.
1268 if test "$ac_new_set" = set; then
1270 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1271 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1272 *) ac_arg=$ac_var=$ac_new_val ;;
1274 case " $ac_configure_args " in
1275 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1276 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1280 if $ac_cache_corrupted; then
1281 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1282 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1283 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1284 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1285 { (exit 1); exit 1; }; }
1289 ac_cpp='$CPP $CPPFLAGS'
1290 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1291 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1292 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1321 ac_config_headers="$ac_config_headers config.h"
1324 for ac_dir in scripts $srcdir/scripts; do
1325 if test -f $ac_dir/install-sh; then
1327 ac_install_sh="$ac_aux_dir/install-sh -c"
1329 elif test -f $ac_dir/install.sh; then
1331 ac_install_sh="$ac_aux_dir/install.sh -c"
1333 elif test -f $ac_dir/shtool; then
1335 ac_install_sh="$ac_aux_dir/shtool install -c"
1339 if test -z "$ac_aux_dir"; then
1340 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in scripts $srcdir/scripts" >&5
1341 echo "$as_me: error: cannot find install-sh or install.sh in scripts $srcdir/scripts" >&2;}
1342 { (exit 1); exit 1; }; }
1344 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1345 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1346 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1349 if test "`cd $srcdir; /bin/pwd`" = "`/bin/pwd`"; then
1350 { { echo "$as_me:$LINENO: error: you must configure in a separate build directory" >&5
1351 echo "$as_me: error: you must configure in a separate build directory" >&2;}
1352 { (exit 1); exit 1; }; }
1355 # This will get text that should go into config.make.
1358 # Check for a --with-gmp argument and set gmp-srcdir in config.make.
1360 # Check whether --with-gmp or --without-gmp was given.
1361 if test "${with_gmp+set}" = set; then
1365 yes) { { echo "$as_me:$LINENO: error: --with-gmp requires an argument; use --with-gmp=DIRECTORY" >&5
1366 echo "$as_me: error: --with-gmp requires an argument; use --with-gmp=DIRECTORY" >&2;}
1367 { (exit 1); exit 1; }; } ;;
1369 *) config_vars="$config_vars
1370 gmp-srcdir = $withval" ;;
1374 # Check for a --with-gd argument and set libgd-LDFLAGS in config.make.
1376 # Check whether --with-gd or --without-gd was given.
1377 if test "${with_gd+set}" = set; then
1381 *) libgd_include="-I$withval/include"
1382 libgd_ldflags="-L$withval/lib" ;;
1387 # Check whether --with-gd-include or --without-gd-include was given.
1388 if test "${with_gd_include+set}" = set; then
1389 withval="$with_gd_include"
1390 case "$with_gd_include" in
1392 *) libgd_include="-I$withval" ;;
1397 # Check whether --with-gd-lib or --without-gd-lib was given.
1398 if test "${with_gd_lib+set}" = set; then
1399 withval="$with_gd_lib"
1400 case "$with_gd_lib" in
1402 *) libgd_ldflags="-L$withval" ;;
1407 if test -n "$libgd_include"; then
1408 config_vars="$config_vars
1409 CFLAGS-memusagestat.c = $libgd_include"
1411 if test -n "$libgd_ldflags"; then
1412 config_vars="$config_vars
1413 libgd-LDFLAGS = $libgd_ldflags"
1417 # Check whether --with-fp or --without-fp was given.
1418 if test "${with_fp+set}" = set; then
1426 # Check whether --with-binutils or --without-binutils was given.
1427 if test "${with_binutils+set}" = set; then
1428 withval="$with_binutils"
1429 path_binutils=$withval
1434 # Check whether --with-elf or --without-elf was given.
1435 if test "${with_elf+set}" = set; then
1442 # Check whether --with-xcoff or --without-xcoff was given.
1443 if test "${with_xcoff+set}" = set; then
1444 withval="$with_xcoff"
1450 # Check whether --with-cvs or --without-cvs was given.
1451 if test "${with_cvs+set}" = set; then
1457 if test "$with_cvs" = yes; then
1458 if test -d $srcdir/CVS && grep :pserver: $srcdir/CVS/Root > /dev/null
1466 # Check whether --with-headers or --without-headers was given.
1467 if test "${with_headers+set}" = set; then
1468 withval="$with_headers"
1474 # Check whether --enable-sanity-checks or --disable-sanity-checks was given.
1475 if test "${enable_sanity_checks+set}" = set; then
1476 enableval="$enable_sanity_checks"
1477 enable_sanity=$enableval
1483 # Check whether --enable-shared or --disable-shared was given.
1484 if test "${enable_shared+set}" = set; then
1485 enableval="$enable_shared"
1490 # Check whether --enable-profile or --disable-profile was given.
1491 if test "${enable_profile+set}" = set; then
1492 enableval="$enable_profile"
1497 # Check whether --enable-omitfp or --disable-omitfp was given.
1498 if test "${enable_omitfp+set}" = set; then
1499 enableval="$enable_omitfp"
1504 # Check whether --enable-bounded or --disable-bounded was given.
1505 if test "${enable_bounded+set}" = set; then
1506 enableval="$enable_bounded"
1511 # Check whether --enable-versioning or --disable-versioning was given.
1512 if test "${enable_versioning+set}" = set; then
1513 enableval="$enable_versioning"
1514 enable_versioning=$enableval
1516 enable_versioning=yes
1519 # Check whether --enable-oldest-abi or --disable-oldest-abi was given.
1520 if test "${enable_oldest_abi+set}" = set; then
1521 enableval="$enable_oldest_abi"
1522 oldest_abi=$enableval
1526 if test "$oldest_abi" = yes || test "$oldest_abi" = no; then
1529 cat >>confdefs.h <<_ACEOF
1530 #define GLIBC_OLDEST_ABI "$oldest_abi"
1536 # Check whether --enable-add-ons or --disable-add-ons was given.
1537 if test "${enable_add_ons+set}" = set; then
1538 enableval="$enable_add_ons"
1539 case "$enableval" in
1540 yes) add_ons=`cd $srcdir && echo */configure | sed -e 's!/configure!!g'`
1541 test "$add_ons" = "*" && add_ons= ;;
1542 *) add_ons=`echo "$enableval" | sed 's/,/ /g'`;;
1549 # Check whether --with-tls or --without-tls was given.
1550 if test "${with_tls+set}" = set; then
1558 # Check whether --with-__thread or --without-__thread was given.
1559 if test "${with___thread+set}" = set; then
1560 withval="$with___thread"
1561 use__thread=$withval
1566 # Check whether --enable-hidden-plt or --disable-hidden-plt was given.
1567 if test "${enable_hidden_plt+set}" = set; then
1568 enableval="$enable_hidden_plt"
1573 if test "x$hidden" = xno; then
1574 cat >>confdefs.h <<\_ACEOF
1584 if test x"$add_ons" != x; then
1585 for f in $add_ons; do
1586 # Some sanity checks
1587 if test "$f" = "crypt"; then
1588 { { echo "$as_me:$LINENO: error:
1589 *** It seems that you're using an old \`crypt' add-on. crypt is now
1590 *** part of glibc and using the old add-on will not work with this
1591 *** release. Start again with fresh sources and without the old
1592 *** \`crypt' add-on." >&5
1593 echo "$as_me: error:
1594 *** It seems that you're using an old \`crypt' add-on. crypt is now
1595 *** part of glibc and using the old add-on will not work with this
1596 *** release. Start again with fresh sources and without the old
1597 *** \`crypt' add-on." >&2;}
1598 { (exit 1); exit 1; }; }
1600 if test "$f" = "localedata"; then
1601 { { echo "$as_me:$LINENO: error:
1602 *** It seems that you're using an old \`localedata' add-on. localedata
1603 *** is now part of glibc and using the old add-on will not work with
1604 *** this release. Start again with fresh sources and without the old
1605 *** \`localedata' add-on." >&5
1606 echo "$as_me: error:
1607 *** It seems that you're using an old \`localedata' add-on. localedata
1608 *** is now part of glibc and using the old add-on will not work with
1609 *** this release. Start again with fresh sources and without the old
1610 *** \`localedata' add-on." >&2;}
1611 { (exit 1); exit 1; }; }
1613 # Test whether such a subdir really exists.
1614 if test -d $srcdir/$f; then
1615 add_ons_pfx="$add_ons_pfx $f/"
1616 subdirs="$subdirs $f"
1618 { { echo "$as_me:$LINENO: error: add-on directory \"$f\" does not exist" >&5
1619 echo "$as_me: error: add-on directory \"$f\" does not exist" >&2;}
1620 { (exit 1); exit 1; }; }
1625 # Check whether --enable-static-nss or --disable-static-nss was given.
1626 if test "${enable_static_nss+set}" = set; then
1627 enableval="$enable_static_nss"
1628 static_nss=$enableval
1632 if test x"$static_nss" = xyes || test x"$shared" = xno; then
1634 cat >>confdefs.h <<\_ACEOF
1635 #define DO_STATIC_NSS 1
1640 # Check whether --enable-force-install or --disable-force-install was given.
1641 if test "${enable_force_install+set}" = set; then
1642 enableval="$enable_force_install"
1643 force_install=$enableval
1649 # Check whether --enable-kernel or --disable-kernel was given.
1650 if test "${enable_kernel+set}" = set; then
1651 enableval="$enable_kernel"
1652 minimum_kernel=$enableval
1654 if test "$minimum_kernel" = yes || test "$minimum_kernel" = no; then
1655 # Better nothing than this.
1658 if test "$minimum_kernel" = current; then
1659 minimum_kernel=`uname -r 2>/dev/null` || minimum_kernel=
1663 # Check whether --enable-all-warnings or --disable-all-warnings was given.
1664 if test "${enable_all_warnings+set}" = set; then
1665 enableval="$enable_all_warnings"
1666 all_warnings=$enableval
1670 # Make sure we can run config.sub.
1671 $ac_config_sub sun4 >/dev/null 2>&1 ||
1672 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1673 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1674 { (exit 1); exit 1; }; }
1676 echo "$as_me:$LINENO: checking build system type" >&5
1677 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1678 if test "${ac_cv_build+set}" = set; then
1679 echo $ECHO_N "(cached) $ECHO_C" >&6
1681 ac_cv_build_alias=$build_alias
1682 test -z "$ac_cv_build_alias" &&
1683 ac_cv_build_alias=`$ac_config_guess`
1684 test -z "$ac_cv_build_alias" &&
1685 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1686 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1687 { (exit 1); exit 1; }; }
1688 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1689 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1690 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1691 { (exit 1); exit 1; }; }
1694 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1695 echo "${ECHO_T}$ac_cv_build" >&6
1697 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1698 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1699 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1702 echo "$as_me:$LINENO: checking host system type" >&5
1703 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1704 if test "${ac_cv_host+set}" = set; then
1705 echo $ECHO_N "(cached) $ECHO_C" >&6
1707 ac_cv_host_alias=$host_alias
1708 test -z "$ac_cv_host_alias" &&
1709 ac_cv_host_alias=$ac_cv_build_alias
1710 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1711 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1712 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1713 { (exit 1); exit 1; }; }
1716 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1717 echo "${ECHO_T}$ac_cv_host" >&6
1719 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1720 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1721 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1725 # The way shlib-versions is used to generate soversions.mk uses a
1726 # fairly simplistic model for name recognition that can't distinguish
1727 # i486-pc-linux-gnu fully from i486-pc-gnu. So we mutate a $host_os
1728 # of `gnu*' here to be `gnu-gnu*' just so that shlib-versions can
1729 # tell. This doesn't get used much beyond that, so it's fairly safe.
1734 host_os=`echo $host_os | sed -e 's/gnu/gnu-gnu/'`
1738 # We keep the original values in `$config_*' and never modify them, so we
1739 # can write them unchanged into config.make. Everything else uses
1740 # $machine, $vendor, and $os, and changes them whenever convenient.
1741 config_machine=$host_cpu config_vendor=$host_vendor config_os=$host_os
1743 # Don't allow vendor == "unknown"
1744 test "$config_vendor" = unknown && config_vendor=
1745 config_os="`echo $config_os | sed 's/^unknown-//'`"
1747 # Some configurations imply other options.
1749 gnu* | linux* | bsd4.4* | netbsd* | freebsd*)
1750 # These systems always use GNU tools.
1751 gnu_ld=yes gnu_as=yes ;;
1754 # i586-linuxaout is mangled into i586-pc-linux-gnuaout
1755 linux*ecoff* | linux*aout* | gnu*aout* | gnu*ecoff*)
1757 gnu* | linux* | freebsd* | netbsd* | sysv4* | solaris2* | irix6*)
1758 # These systems (almost) always use the ELF format.
1762 # These systems are always xcoff
1768 machine=$config_machine
1769 vendor=$config_vendor
1772 # config.guess on some IBM machines says `rs6000' instead of `powerpc'.
1774 if test "$machine" = rs6000; then
1778 # Braindead PowerPC box with absolutely no FPU.
1779 case "$machine-$host_os" in
1786 ### I put this here to prevent those annoying emails from people who cannot
1787 ### read and try to compile glibc on unsupported platforms. --drepper
1789 ### By using the undocumented --enable-hacker-mode option for configure
1790 ### one can skip this test to make the configuration not fail for unsupported
1793 if test -z "$enable_hacker_mode"; then
1794 case "$machine-$host_os" in
1795 *-linux* | *-gnu* | arm*-none* | powerpc-aix4.3.*)
1798 echo "*** The GNU C library is currently not available for this platform."
1799 echo "*** So far nobody cared to port it and if there is no volunteer it"
1800 echo "*** might never happen. So, if you have interest to see glibc on"
1801 echo "*** this platform visit"
1802 echo "*** http://www.gnu.org/software/libc/porting.html"
1803 echo "*** and join the group of porters"
1809 # Expand the configuration machine name into a subdirectory by architecture
1810 # type and particular chip.
1812 a29k | am29000) base_machine=a29k machine=a29k ;;
1813 alpha*) base_machine=alpha machine=alpha/$machine ;;
1814 arm*) base_machine=arm machine=arm/arm32/$machine ;;
1815 c3[012]) base_machine=cx0 machine=cx0/c30 ;;
1816 c4[04]) base_machine=cx0 machine=cx0/c40 ;;
1817 hppa*64*) base_machine=hppa machine=hppa/hppa64 ;;
1818 hppa*) base_machine=hppa machine=hppa/hppa1.1 ;;
1819 i[3456]86) base_machine=i386 machine=i386/$machine ;;
1820 ia64) base_machine=ia64 machine=ia64 ;;
1821 m680?0) base_machine=m68k machine=m68k/$machine ;;
1822 m68k) base_machine=m68k machine=m68k/m68020 ;;
1823 m88???) base_machine=m88k machine=m88k/$machine ;;
1824 m88k) base_machine=m88k machine=m88k/m88100 ;;
1825 mips64*) base_machine=mips64 machine=mips/mips64/$machine ;;
1826 mips*) base_machine=mips machine=mips/$machine ;;
1827 powerpc) base_machine=powerpc machine=powerpc/powerpc32 ;;
1828 powerpc64) base_machine=powerpc machine=powerpc/powerpc64 ;;
1829 s390) base_machine=s390 machine=s390/s390-32 ;;
1830 s390x) base_machine=s390 machine=s390/s390-64 ;;
1831 sh3*) base_machine=sh machine=sh/sh3 ;;
1832 sh4*) base_machine=sh machine=sh/sh4 ;;
1834 base_machine=sparc machine=sparc/sparc32 ;;
1835 sparcv8 | supersparc | hypersparc)
1836 base_machine=sparc machine=sparc/sparc32/sparcv8 ;;
1837 sparcv8plus | sparcv8plusa | sparcv9)
1838 base_machine=sparc machine=sparc/sparc32/sparcv9 ;;
1839 sparcv8plusb | sparcv9b)
1840 base_machine=sparc machine=sparc/sparc32/sparcv9b ;;
1841 sparc64 | ultrasparc)
1842 base_machine=sparc machine=sparc/sparc64 ;;
1843 sparc64b | ultrasparc3)
1844 base_machine=sparc machine=sparc/sparc64/sparcv9b ;;
1845 thumb*) base_machine=thumb machine=arm/thumb/$machine ;;
1846 *) base_machine=$machine ;;
1850 if test "$base_machine" = "i386"; then
1851 cat >>confdefs.h <<\_ACEOF
1852 #define USE_REGPARMS 1
1857 # Compute the list of sysdep directories for this configuration.
1858 # This can take a while to compute.
1859 sysdep_dir=$srcdir/sysdeps
1860 echo "$as_me:$LINENO: checking sysdep dirs" >&5
1861 echo $ECHO_N "checking sysdep dirs... $ECHO_C" >&6
1862 # Make sco3.2v4 become sco3.2.4 and sunos4.1.1_U1 become sunos4.1.1.U1.
1863 os="`echo $os | sed 's/\([0-9A-Z]\)[v_]\([0-9A-Z]\)/\1.\2/g'`"
1867 base_os=mach/hurd ;;
1868 netbsd* | 386bsd* | freebsd* | bsdi*)
1869 base_os=unix/bsd/bsd4.4 ;;
1870 osf* | sunos* | ultrix* | newsos* | dynix* | *bsd*)
1872 sysv* | isc* | esix* | sco* | minix* | irix4* | linux*)
1873 base_os=unix/sysv ;;
1875 base_os=unix/sysv/irix6/$os ;;
1877 base_os=unix/sysv/sysv4 ;;
1879 base_os=unix/sysv/hpux/$os ;;
1881 base_os=unix/sysv/aix/aix4.3 ;;
1883 base_os=standalone ;;
1888 # For sunos4.1.1, try sunos4.1.1, then sunos4.1, then sunos4, then sunos.
1891 while o=`echo $tail | sed 's/\.[^.]*$//'`; test $o != $tail; do
1895 o=`echo $tail | sed 's/[0-9]*$//'`
1896 if test $o != $tail; then
1899 # For linux-gnu, try linux-gnu, then linux.
1900 o=`echo $tail | sed 's/-.*$//'`
1901 if test $o != $tail; then
1905 # For unix/sysv/sysv4, try unix/sysv/sysv4, then unix/sysv, then unix.
1908 while b=`echo $tail | sed 's@^\(.*\)/\([^/]*\)$@& \1@'`; test -n "$b"; do
1914 # For sparc/sparc32, try sparc/sparc32 and then sparc.
1917 while m=`echo $tail | sed 's@^\(.*\)/\([^/]*\)$@& \1@'`; test -n "$m"; do
1919 # Prepend the machine's FPU directory unless --without-fp.
1920 if test "$with_fp" = yes; then
1921 mach="$mach /$1/fpu"
1923 mach="$mach /$1/nofpu"
1930 # Find what sysdep directories exist.
1932 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1933 for d in $add_ons_pfx ''; do
1934 for b in $base ''; do
1935 for m0 in $mach ''; do
1936 for v in /$vendor ''; do
1937 test "$v" = / && continue
1938 for o in /$ostry ''; do
1939 test "$o" = / && continue
1940 for m in $mach ''; do
1941 if test "$m0$b$v$o$m"; then
1942 try="${d}sysdeps$m0$b$v$o$m"
1943 test -n "$enable_debug_configure" &&
1944 echo "$0 DEBUG: try $try" >&2
1945 if test -d $srcdir/$try; then
1946 sysnames="$sysnames $try"
1947 { test -n "$o" || test -n "$b"; } && os_used=t
1948 { test -n "$m" || test -n "$m0"; } && machine_used=t
1959 if test -z "$os_used" && test "$os" != none; then
1960 { { echo "$as_me:$LINENO: error: Operating system $os is not supported." >&5
1961 echo "$as_me: error: Operating system $os is not supported." >&2;}
1962 { (exit 1); exit 1; }; }
1964 if test -z "$machine_used" && test "$machine" != none; then
1965 { { echo "$as_me:$LINENO: error: The $machine is not supported." >&5
1966 echo "$as_me: error: The $machine is not supported." >&2;}
1967 { (exit 1); exit 1; }; }
1970 # We have now validated the configuration.
1973 # If using ELF, look for an `elf' subdirectory of each machine directory.
1974 # We prepend these rather than inserting them whereever the machine appears
1975 # because things specified by the machine's ELF ABI should override
1976 # OS-specific things, and should always be the same for any OS on the
1977 # machine (otherwise what's the point of an ABI?).
1978 if test "$elf" = yes; then
1980 for d in $add_ons_pfx ''; do
1982 if test -d $srcdir/${d}sysdeps$m/elf; then
1983 elf_dirs="$elf_dirs ${d}sysdeps$m/elf"
1987 sysnames="`echo $elf_dirs | sed -e 's,//,/,g'` $sysnames"
1991 # Expand the list of system names into a full list of directories
1992 # from each element's parent name and Implies file (if present).
1995 while test $# -gt 0; do
1999 case " $names " in *" $name "*)
2000 # Already in the list.
2004 # Report each name as we discover it, so there is no long pause in output.
2005 echo $ECHO_N "$name $ECHO_C" >&6
2007 name_base=`echo $name | sed -e 's@\(.*sysdeps\)/.*@\1@'`
2011 *) xsrcdir=$srcdir/ ;;
2013 test -n "$enable_debug_configure" &&
2014 echo "DEBUG: name/Implies $xsrcdir$name/Implies" >&2
2016 if test -f $xsrcdir$name/Implies; then
2017 # Collect more names from the `Implies' file (removing comments).
2018 implied_candidate="`sed 's/#.*$//' < $xsrcdir$name/Implies`"
2020 for x in $implied_candidate; do
2022 if test -d $xsrcdir$name_base/$x; then
2023 implied="$implied $name_base/$x";
2026 for d in $add_ons_pfx ''; do
2027 try="${d}sysdeps/$x"
2030 *) try_srcdir=$srcdir/ ;;
2032 test -n "$enable_debug_configure" &&
2033 echo "DEBUG: $name implied $x try($d) {$try_srcdir}$try" >&2
2034 if test $try != $xsrcdir$name_base/$x && test -d $try_srcdir$try;
2036 implied="$implied $try"
2040 if test $found = no; then
2041 { echo "$as_me:$LINENO: WARNING: $name/Implies specifies nonexistent $x" >&5
2042 echo "$as_me: WARNING: $name/Implies specifies nonexistent $x" >&2;}
2049 # Add NAME to the list of names.
2050 names="$names $name"
2052 # Find the parent of NAME, using the empty string if it has none.
2053 parent="`echo $name | sed -n -e 's=/[^/]*$==' -e '/sysdeps$/q' -e p`"
2055 # Add the names implied by NAME, and NAME's parent (if it has one), to
2056 # the list of names to be processed (the argument list). We prepend the
2057 # implied names to the list and append the parent. We want implied
2058 # directories to come before further directories inferred from the
2059 # configuration components; this ensures that for sysv4, unix/common
2060 # (implied by unix/sysv/sysv4) comes before unix/sysv (in ostry (here $*)
2062 sysnames="`echo $implied $* $parent`"
2063 test -n "$sysnames" && set $sysnames
2066 # Add the default directories.
2067 default_sysnames=sysdeps/generic
2068 if test "$elf" = yes; then
2069 default_sysnames="sysdeps/generic/elf $default_sysnames"
2071 sysnames="$names $default_sysnames"
2073 # The other names were emitted during the scan.
2074 echo "$as_me:$LINENO: result: $default_sysnames" >&5
2075 echo "${ECHO_T}$default_sysnames" >&6
2080 # Find a good install program. We prefer a C program (faster),
2081 # so one script is as good as another. But avoid the broken or
2082 # incompatible versions:
2083 # SysV /etc/install, /usr/sbin/install
2084 # SunOS /usr/etc/install
2085 # IRIX /sbin/install
2087 # AmigaOS /C/install, which installs bootblocks on floppy discs
2088 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2089 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2090 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2091 # ./install, which can be erroneously created by make from ./install.sh.
2092 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2093 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2094 if test -z "$INSTALL"; then
2095 if test "${ac_cv_path_install+set}" = set; then
2096 echo $ECHO_N "(cached) $ECHO_C" >&6
2098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2102 test -z "$as_dir" && as_dir=.
2103 # Account for people who put trailing slashes in PATH elements.
2105 ./ | .// | /cC/* | \
2106 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2109 # OSF1 and SCO ODT 3.0 have their own names for install.
2110 # Don't use installbsd from OSF since it installs stuff as root
2112 for ac_prog in ginstall scoinst install; do
2113 for ac_exec_ext in '' $ac_executable_extensions; do
2114 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2115 if test $ac_prog = install &&
2116 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2117 # AIX install. It has an incompatible calling convention.
2119 elif test $ac_prog = install &&
2120 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2121 # program-specific install script used by HP pwplus--don't use.
2124 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2136 if test "${ac_cv_path_install+set}" = set; then
2137 INSTALL=$ac_cv_path_install
2139 # As a last resort, use the slow shell script. We don't cache a
2140 # path for INSTALL within a source directory, because that will
2141 # break other packages using the cache if that directory is
2142 # removed, or if the path is relative.
2143 INSTALL=$ac_install_sh
2146 echo "$as_me:$LINENO: result: $INSTALL" >&5
2147 echo "${ECHO_T}$INSTALL" >&6
2149 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2150 # It thinks the first close brace ends the variable substitution.
2151 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2153 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2155 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2157 if test "$INSTALL" = "${srcdir}/scripts/install-sh -c"; then
2158 # The makefiles need to use a different form to find it in $srcdir.
2159 INSTALL='\$(..)./scripts/install-sh -c'
2161 echo "$as_me:$LINENO: checking whether ln -s works" >&5
2162 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
2164 if test "$LN_S" = "ln -s"; then
2165 echo "$as_me:$LINENO: result: yes" >&5
2166 echo "${ECHO_T}yes" >&6
2168 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
2169 echo "${ECHO_T}no, using $LN_S" >&6
2173 # We need the physical current working directory. We cannot use the
2174 # "pwd -P" shell builtin since that's not portable. Instead we try to
2175 # find a pwd binary. Note that assigning to the PWD environment
2176 # variable might have some interesting side effects, so we don't do
2178 # Extract the first word of "pwd", so it can be a program name with args.
2179 set dummy pwd; ac_word=$2
2180 echo "$as_me:$LINENO: checking for $ac_word" >&5
2181 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2182 if test "${ac_cv_path_PWD_P+set}" = set; then
2183 echo $ECHO_N "(cached) $ECHO_C" >&6
2187 ac_cv_path_PWD_P="$PWD_P" # Let the user override the test with a path.
2190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2194 test -z "$as_dir" && as_dir=.
2195 for ac_exec_ext in '' $ac_executable_extensions; do
2196 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2197 ac_cv_path_PWD_P="$as_dir/$ac_word$ac_exec_ext"
2198 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2204 test -z "$ac_cv_path_PWD_P" && ac_cv_path_PWD_P="no"
2208 PWD_P=$ac_cv_path_PWD_P
2210 if test -n "$PWD_P"; then
2211 echo "$as_me:$LINENO: result: $PWD_P" >&5
2212 echo "${ECHO_T}$PWD_P" >&6
2214 echo "$as_me:$LINENO: result: no" >&5
2215 echo "${ECHO_T}no" >&6
2218 if test "$PWD_P" = no; then
2219 { { echo "$as_me:$LINENO: error: *** A pwd binary could not be found." >&5
2220 echo "$as_me: error: *** A pwd binary could not be found." >&2;}
2221 { (exit 1); exit 1; }; }
2224 # These programs are version sensitive.
2226 for ac_prog in ${ac_tool_prefix}gcc ${ac_tool_prefix}cc
2228 # Extract the first word of "$ac_prog", so it can be a program name with args.
2229 set dummy $ac_prog; ac_word=$2
2230 echo "$as_me:$LINENO: checking for $ac_word" >&5
2231 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2232 if test "${ac_cv_prog_CC+set}" = set; then
2233 echo $ECHO_N "(cached) $ECHO_C" >&6
2235 if test -n "$CC"; then
2236 ac_cv_prog_CC="$CC" # Let the user override the test.
2238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2242 test -z "$as_dir" && as_dir=.
2243 for ac_exec_ext in '' $ac_executable_extensions; do
2244 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2245 ac_cv_prog_CC="$ac_prog"
2246 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2255 if test -n "$CC"; then
2256 echo "$as_me:$LINENO: result: $CC" >&5
2257 echo "${ECHO_T}$CC" >&6
2259 echo "$as_me:$LINENO: result: no" >&5
2260 echo "${ECHO_T}no" >&6
2263 test -n "$CC" && break
2266 if test -z "$CC"; then
2269 # Found it, now check the version.
2270 echo "$as_me:$LINENO: checking version of $CC" >&5
2271 echo $ECHO_N "checking version of $CC... $ECHO_C" >&6
2272 ac_prog_version=`$CC -v 2>&1 | sed -n 's/^.*version \([egcygnustpi-]*[0-9.]*\).*$/\1/p'`
2273 case $ac_prog_version in
2274 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
2276 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
2277 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
2280 echo "$as_me:$LINENO: result: $ac_prog_version" >&5
2281 echo "${ECHO_T}$ac_prog_version" >&6
2283 if test $ac_verc_fail = yes; then
2284 critic_missing="$critic_missing gcc"
2287 for ac_prog in gnumake gmake make
2289 # Extract the first word of "$ac_prog", so it can be a program name with args.
2290 set dummy $ac_prog; ac_word=$2
2291 echo "$as_me:$LINENO: checking for $ac_word" >&5
2292 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2293 if test "${ac_cv_prog_MAKE+set}" = set; then
2294 echo $ECHO_N "(cached) $ECHO_C" >&6
2296 if test -n "$MAKE"; then
2297 ac_cv_prog_MAKE="$MAKE" # Let the user override the test.
2299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2303 test -z "$as_dir" && as_dir=.
2304 for ac_exec_ext in '' $ac_executable_extensions; do
2305 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2306 ac_cv_prog_MAKE="$ac_prog"
2307 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2315 MAKE=$ac_cv_prog_MAKE
2316 if test -n "$MAKE"; then
2317 echo "$as_me:$LINENO: result: $MAKE" >&5
2318 echo "${ECHO_T}$MAKE" >&6
2320 echo "$as_me:$LINENO: result: no" >&5
2321 echo "${ECHO_T}no" >&6
2324 test -n "$MAKE" && break
2327 if test -z "$MAKE"; then
2330 # Found it, now check the version.
2331 echo "$as_me:$LINENO: checking version of $MAKE" >&5
2332 echo $ECHO_N "checking version of $MAKE... $ECHO_C" >&6
2333 ac_prog_version=`$MAKE --version 2>&1 | sed -n 's/^.*GNU Make[^0-9]*\([0-9][0-9.]*\).*$/\1/p'`
2334 case $ac_prog_version in
2335 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
2337 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
2338 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
2341 echo "$as_me:$LINENO: result: $ac_prog_version" >&5
2342 echo "${ECHO_T}$ac_prog_version" >&6
2344 if test $ac_verc_fail = yes; then
2345 critic_missing="$critic_missing make"
2349 for ac_prog in gnumsgfmt gmsgfmt msgfmt
2351 # Extract the first word of "$ac_prog", so it can be a program name with args.
2352 set dummy $ac_prog; ac_word=$2
2353 echo "$as_me:$LINENO: checking for $ac_word" >&5
2354 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2355 if test "${ac_cv_prog_MSGFMT+set}" = set; then
2356 echo $ECHO_N "(cached) $ECHO_C" >&6
2358 if test -n "$MSGFMT"; then
2359 ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
2361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2365 test -z "$as_dir" && as_dir=.
2366 for ac_exec_ext in '' $ac_executable_extensions; do
2367 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2368 ac_cv_prog_MSGFMT="$ac_prog"
2369 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2377 MSGFMT=$ac_cv_prog_MSGFMT
2378 if test -n "$MSGFMT"; then
2379 echo "$as_me:$LINENO: result: $MSGFMT" >&5
2380 echo "${ECHO_T}$MSGFMT" >&6
2382 echo "$as_me:$LINENO: result: no" >&5
2383 echo "${ECHO_T}no" >&6
2386 test -n "$MSGFMT" && break
2389 if test -z "$MSGFMT"; then
2392 # Found it, now check the version.
2393 echo "$as_me:$LINENO: checking version of $MSGFMT" >&5
2394 echo $ECHO_N "checking version of $MSGFMT... $ECHO_C" >&6
2395 ac_prog_version=`$MSGFMT --version 2>&1 | sed -n 's/^.*GNU gettext.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
2396 case $ac_prog_version in
2397 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
2398 0.10.3[6-9]* | 0.10.[4-9][0-9]* | 0.1[1-9]* | 0.[2-9][0-9]* | [1-9].*)
2399 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
2400 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
2403 echo "$as_me:$LINENO: result: $ac_prog_version" >&5
2404 echo "${ECHO_T}$ac_prog_version" >&6
2406 if test $ac_verc_fail = yes; then
2407 MSGFMT=: aux_missing="$aux_missing msgfmt"
2410 for ac_prog in makeinfo
2412 # Extract the first word of "$ac_prog", so it can be a program name with args.
2413 set dummy $ac_prog; ac_word=$2
2414 echo "$as_me:$LINENO: checking for $ac_word" >&5
2415 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2416 if test "${ac_cv_prog_MAKEINFO+set}" = set; then
2417 echo $ECHO_N "(cached) $ECHO_C" >&6
2419 if test -n "$MAKEINFO"; then
2420 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
2422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2426 test -z "$as_dir" && as_dir=.
2427 for ac_exec_ext in '' $ac_executable_extensions; do
2428 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2429 ac_cv_prog_MAKEINFO="$ac_prog"
2430 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2438 MAKEINFO=$ac_cv_prog_MAKEINFO
2439 if test -n "$MAKEINFO"; then
2440 echo "$as_me:$LINENO: result: $MAKEINFO" >&5
2441 echo "${ECHO_T}$MAKEINFO" >&6
2443 echo "$as_me:$LINENO: result: no" >&5
2444 echo "${ECHO_T}no" >&6
2447 test -n "$MAKEINFO" && break
2450 if test -z "$MAKEINFO"; then
2453 # Found it, now check the version.
2454 echo "$as_me:$LINENO: checking version of $MAKEINFO" >&5
2455 echo $ECHO_N "checking version of $MAKEINFO... $ECHO_C" >&6
2456 ac_prog_version=`$MAKEINFO --version 2>&1 | sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
2457 case $ac_prog_version in
2458 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
2460 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
2461 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
2464 echo "$as_me:$LINENO: result: $ac_prog_version" >&5
2465 echo "${ECHO_T}$ac_prog_version" >&6
2467 if test $ac_verc_fail = yes; then
2468 MAKEINFO=: aux_missing="$aux_missing makeinfo"
2473 # Extract the first word of "$ac_prog", so it can be a program name with args.
2474 set dummy $ac_prog; ac_word=$2
2475 echo "$as_me:$LINENO: checking for $ac_word" >&5
2476 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2477 if test "${ac_cv_prog_SED+set}" = set; then
2478 echo $ECHO_N "(cached) $ECHO_C" >&6
2480 if test -n "$SED"; then
2481 ac_cv_prog_SED="$SED" # Let the user override the test.
2483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2487 test -z "$as_dir" && as_dir=.
2488 for ac_exec_ext in '' $ac_executable_extensions; do
2489 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2490 ac_cv_prog_SED="$ac_prog"
2491 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2500 if test -n "$SED"; then
2501 echo "$as_me:$LINENO: result: $SED" >&5
2502 echo "${ECHO_T}$SED" >&6
2504 echo "$as_me:$LINENO: result: no" >&5
2505 echo "${ECHO_T}no" >&6
2508 test -n "$SED" && break
2511 if test -z "$SED"; then
2514 # Found it, now check the version.
2515 echo "$as_me:$LINENO: checking version of $SED" >&5
2516 echo $ECHO_N "checking version of $SED... $ECHO_C" >&6
2517 ac_prog_version=`$SED --version 2>&1 | sed -n 's/^.*GNU sed version \([0-9]*\.[0-9.]*\).*$/\1/p'`
2518 case $ac_prog_version in
2519 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
2520 3.0[2-9]*|3.[1-9]*|[4-9]*)
2521 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
2522 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
2525 echo "$as_me:$LINENO: result: $ac_prog_version" >&5
2526 echo "${ECHO_T}$ac_prog_version" >&6
2528 if test $ac_verc_fail = yes; then
2529 SED=: aux_missing="$aux_missing sed"
2533 if test "x$with_cvs" != xyes; then
2534 for ac_prog in autoconf
2536 # Extract the first word of "$ac_prog", so it can be a program name with args.
2537 set dummy $ac_prog; ac_word=$2
2538 echo "$as_me:$LINENO: checking for $ac_word" >&5
2539 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2540 if test "${ac_cv_prog_AUTOCONF+set}" = set; then
2541 echo $ECHO_N "(cached) $ECHO_C" >&6
2543 if test -n "$AUTOCONF"; then
2544 ac_cv_prog_AUTOCONF="$AUTOCONF" # Let the user override the test.
2546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2550 test -z "$as_dir" && as_dir=.
2551 for ac_exec_ext in '' $ac_executable_extensions; do
2552 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2553 ac_cv_prog_AUTOCONF="$ac_prog"
2554 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2562 AUTOCONF=$ac_cv_prog_AUTOCONF
2563 if test -n "$AUTOCONF"; then
2564 echo "$as_me:$LINENO: result: $AUTOCONF" >&5
2565 echo "${ECHO_T}$AUTOCONF" >&6
2567 echo "$as_me:$LINENO: result: no" >&5
2568 echo "${ECHO_T}no" >&6
2571 test -n "$AUTOCONF" && break
2573 test -n "$AUTOCONF" || AUTOCONF="no"
2575 case "x$AUTOCONF" in
2576 xno|x|x:) AUTOCONF=no ;;
2578 echo "$as_me:$LINENO: checking whether $AUTOCONF${ACFLAGS:+ }$ACFLAGS works" >&5
2579 echo $ECHO_N "checking whether $AUTOCONF${ACFLAGS:+ }$ACFLAGS works... $ECHO_C" >&6
2580 if test "${libc_cv_autoconf_works+set}" = set; then
2581 echo $ECHO_N "(cached) $ECHO_C" >&6
2583 if (cd $srcdir; $AUTOCONF $ACFLAGS configure.in > /dev/null 2>&1); then
2584 libc_cv_autoconf_works=yes
2586 libc_cv_autoconf_works=no
2589 echo "$as_me:$LINENO: result: $libc_cv_autoconf_works" >&5
2590 echo "${ECHO_T}$libc_cv_autoconf_works" >&6
2591 test $libc_cv_autoconf_works = yes || AUTOCONF=no
2594 test "x$AUTOCONF" != xno || aux_missing="$aux_missing autoconf"
2598 ac_cpp='$CPP $CPPFLAGS'
2599 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2600 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2601 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2602 if test -n "$ac_tool_prefix"; then
2603 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2604 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2605 echo "$as_me:$LINENO: checking for $ac_word" >&5
2606 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2607 if test "${ac_cv_prog_CC+set}" = set; then
2608 echo $ECHO_N "(cached) $ECHO_C" >&6
2610 if test -n "$CC"; then
2611 ac_cv_prog_CC="$CC" # Let the user override the test.
2613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2617 test -z "$as_dir" && as_dir=.
2618 for ac_exec_ext in '' $ac_executable_extensions; do
2619 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2620 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2621 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2630 if test -n "$CC"; then
2631 echo "$as_me:$LINENO: result: $CC" >&5
2632 echo "${ECHO_T}$CC" >&6
2634 echo "$as_me:$LINENO: result: no" >&5
2635 echo "${ECHO_T}no" >&6
2639 if test -z "$ac_cv_prog_CC"; then
2641 # Extract the first word of "gcc", so it can be a program name with args.
2642 set dummy gcc; ac_word=$2
2643 echo "$as_me:$LINENO: checking for $ac_word" >&5
2644 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2645 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2646 echo $ECHO_N "(cached) $ECHO_C" >&6
2648 if test -n "$ac_ct_CC"; then
2649 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2655 test -z "$as_dir" && as_dir=.
2656 for ac_exec_ext in '' $ac_executable_extensions; do
2657 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2658 ac_cv_prog_ac_ct_CC="gcc"
2659 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2667 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2668 if test -n "$ac_ct_CC"; then
2669 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2670 echo "${ECHO_T}$ac_ct_CC" >&6
2672 echo "$as_me:$LINENO: result: no" >&5
2673 echo "${ECHO_T}no" >&6
2681 if test -z "$CC"; then
2682 if test -n "$ac_tool_prefix"; then
2683 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2684 set dummy ${ac_tool_prefix}cc; ac_word=$2
2685 echo "$as_me:$LINENO: checking for $ac_word" >&5
2686 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2687 if test "${ac_cv_prog_CC+set}" = set; then
2688 echo $ECHO_N "(cached) $ECHO_C" >&6
2690 if test -n "$CC"; then
2691 ac_cv_prog_CC="$CC" # Let the user override the test.
2693 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2697 test -z "$as_dir" && as_dir=.
2698 for ac_exec_ext in '' $ac_executable_extensions; do
2699 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2700 ac_cv_prog_CC="${ac_tool_prefix}cc"
2701 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2710 if test -n "$CC"; then
2711 echo "$as_me:$LINENO: result: $CC" >&5
2712 echo "${ECHO_T}$CC" >&6
2714 echo "$as_me:$LINENO: result: no" >&5
2715 echo "${ECHO_T}no" >&6
2719 if test -z "$ac_cv_prog_CC"; then
2721 # Extract the first word of "cc", so it can be a program name with args.
2722 set dummy cc; ac_word=$2
2723 echo "$as_me:$LINENO: checking for $ac_word" >&5
2724 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2725 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2726 echo $ECHO_N "(cached) $ECHO_C" >&6
2728 if test -n "$ac_ct_CC"; then
2729 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2735 test -z "$as_dir" && as_dir=.
2736 for ac_exec_ext in '' $ac_executable_extensions; do
2737 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2738 ac_cv_prog_ac_ct_CC="cc"
2739 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2747 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2748 if test -n "$ac_ct_CC"; then
2749 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2750 echo "${ECHO_T}$ac_ct_CC" >&6
2752 echo "$as_me:$LINENO: result: no" >&5
2753 echo "${ECHO_T}no" >&6
2762 if test -z "$CC"; then
2763 # Extract the first word of "cc", so it can be a program name with args.
2764 set dummy cc; ac_word=$2
2765 echo "$as_me:$LINENO: checking for $ac_word" >&5
2766 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2767 if test "${ac_cv_prog_CC+set}" = set; then
2768 echo $ECHO_N "(cached) $ECHO_C" >&6
2770 if test -n "$CC"; then
2771 ac_cv_prog_CC="$CC" # Let the user override the test.
2774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2778 test -z "$as_dir" && as_dir=.
2779 for ac_exec_ext in '' $ac_executable_extensions; do
2780 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2781 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2782 ac_prog_rejected=yes
2786 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2792 if test $ac_prog_rejected = yes; then
2793 # We found a bogon in the path, so make sure we never use it.
2794 set dummy $ac_cv_prog_CC
2796 if test $# != 0; then
2797 # We chose a different compiler from the bogus one.
2798 # However, it has the same basename, so the bogon will be chosen
2799 # first if we set CC to just the basename; use the full file name.
2801 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2807 if test -n "$CC"; then
2808 echo "$as_me:$LINENO: result: $CC" >&5
2809 echo "${ECHO_T}$CC" >&6
2811 echo "$as_me:$LINENO: result: no" >&5
2812 echo "${ECHO_T}no" >&6
2816 if test -z "$CC"; then
2817 if test -n "$ac_tool_prefix"; then
2820 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2821 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2822 echo "$as_me:$LINENO: checking for $ac_word" >&5
2823 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2824 if test "${ac_cv_prog_CC+set}" = set; then
2825 echo $ECHO_N "(cached) $ECHO_C" >&6
2827 if test -n "$CC"; then
2828 ac_cv_prog_CC="$CC" # Let the user override the test.
2830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2834 test -z "$as_dir" && as_dir=.
2835 for ac_exec_ext in '' $ac_executable_extensions; do
2836 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2837 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2838 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2847 if test -n "$CC"; then
2848 echo "$as_me:$LINENO: result: $CC" >&5
2849 echo "${ECHO_T}$CC" >&6
2851 echo "$as_me:$LINENO: result: no" >&5
2852 echo "${ECHO_T}no" >&6
2855 test -n "$CC" && break
2858 if test -z "$CC"; then
2862 # Extract the first word of "$ac_prog", so it can be a program name with args.
2863 set dummy $ac_prog; ac_word=$2
2864 echo "$as_me:$LINENO: checking for $ac_word" >&5
2865 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2866 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2867 echo $ECHO_N "(cached) $ECHO_C" >&6
2869 if test -n "$ac_ct_CC"; then
2870 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2876 test -z "$as_dir" && as_dir=.
2877 for ac_exec_ext in '' $ac_executable_extensions; do
2878 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2879 ac_cv_prog_ac_ct_CC="$ac_prog"
2880 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2888 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2889 if test -n "$ac_ct_CC"; then
2890 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2891 echo "${ECHO_T}$ac_ct_CC" >&6
2893 echo "$as_me:$LINENO: result: no" >&5
2894 echo "${ECHO_T}no" >&6
2897 test -n "$ac_ct_CC" && break
2906 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2907 See \`config.log' for more details." >&5
2908 echo "$as_me: error: no acceptable C compiler found in \$PATH
2909 See \`config.log' for more details." >&2;}
2910 { (exit 1); exit 1; }; }
2912 # Provide some information about the compiler.
2913 echo "$as_me:$LINENO:" \
2914 "checking for C compiler version" >&5
2915 ac_compiler=`set X $ac_compile; echo $2`
2916 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2917 (eval $ac_compiler --version </dev/null >&5) 2>&5
2919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2920 (exit $ac_status); }
2921 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2922 (eval $ac_compiler -v </dev/null >&5) 2>&5
2924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2925 (exit $ac_status); }
2926 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2927 (eval $ac_compiler -V </dev/null >&5) 2>&5
2929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2930 (exit $ac_status); }
2933 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2934 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2935 if test "${ac_cv_objext+set}" = set; then
2936 echo $ECHO_N "(cached) $ECHO_C" >&6
2938 cat >conftest.$ac_ext <<_ACEOF
2939 #line $LINENO "configure"
2942 cat confdefs.h >>conftest.$ac_ext
2943 cat >>conftest.$ac_ext <<_ACEOF
2944 /* end confdefs.h. */
2954 rm -f conftest.o conftest.obj
2955 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2956 (eval $ac_compile) 2>&5
2958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2959 (exit $ac_status); }; then
2960 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2962 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2963 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2968 echo "$as_me: failed program was:" >&5
2969 sed 's/^/| /' conftest.$ac_ext >&5
2971 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2972 See \`config.log' for more details." >&5
2973 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2974 See \`config.log' for more details." >&2;}
2975 { (exit 1); exit 1; }; }
2978 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2980 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2981 echo "${ECHO_T}$ac_cv_objext" >&6
2982 OBJEXT=$ac_cv_objext
2984 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2985 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2986 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2987 echo $ECHO_N "(cached) $ECHO_C" >&6
2989 cat >conftest.$ac_ext <<_ACEOF
2990 #line $LINENO "configure"
2993 cat confdefs.h >>conftest.$ac_ext
2994 cat >>conftest.$ac_ext <<_ACEOF
2995 /* end confdefs.h. */
3008 rm -f conftest.$ac_objext
3009 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3010 (eval $ac_compile) 2>&5
3012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3013 (exit $ac_status); } &&
3014 { ac_try='test -s conftest.$ac_objext'
3015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3019 (exit $ac_status); }; }; then
3022 echo "$as_me: failed program was:" >&5
3023 sed 's/^/| /' conftest.$ac_ext >&5
3027 rm -f conftest.$ac_objext conftest.$ac_ext
3028 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3031 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3032 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3033 GCC=`test $ac_compiler_gnu = yes && echo yes`
3034 ac_test_CFLAGS=${CFLAGS+set}
3035 ac_save_CFLAGS=$CFLAGS
3037 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3038 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3039 if test "${ac_cv_prog_cc_g+set}" = set; then
3040 echo $ECHO_N "(cached) $ECHO_C" >&6
3042 cat >conftest.$ac_ext <<_ACEOF
3043 #line $LINENO "configure"
3046 cat confdefs.h >>conftest.$ac_ext
3047 cat >>conftest.$ac_ext <<_ACEOF
3048 /* end confdefs.h. */
3058 rm -f conftest.$ac_objext
3059 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3060 (eval $ac_compile) 2>&5
3062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3063 (exit $ac_status); } &&
3064 { ac_try='test -s conftest.$ac_objext'
3065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3069 (exit $ac_status); }; }; then
3072 echo "$as_me: failed program was:" >&5
3073 sed 's/^/| /' conftest.$ac_ext >&5
3077 rm -f conftest.$ac_objext conftest.$ac_ext
3079 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3080 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3081 if test "$ac_test_CFLAGS" = set; then
3082 CFLAGS=$ac_save_CFLAGS
3083 elif test $ac_cv_prog_cc_g = yes; then
3084 if test "$GCC" = yes; then
3090 if test "$GCC" = yes; then
3096 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3097 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3098 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3099 echo $ECHO_N "(cached) $ECHO_C" >&6
3101 ac_cv_prog_cc_stdc=no
3103 cat >conftest.$ac_ext <<_ACEOF
3104 #line $LINENO "configure"
3107 cat confdefs.h >>conftest.$ac_ext
3108 cat >>conftest.$ac_ext <<_ACEOF
3109 /* end confdefs.h. */
3112 #include <sys/types.h>
3113 #include <sys/stat.h>
3114 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3115 struct buf { int x; };
3116 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3117 static char *e (p, i)
3123 static char *f (char * (*g) (char **, int), char **p, ...)
3128 s = g (p, va_arg (v,int));
3132 int test (int i, double x);
3133 struct s1 {int (*f) (int a);};
3134 struct s2 {int (*f) (double a);};
3135 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3141 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3146 # Don't try gcc -ansi; that turns off useful extensions and
3147 # breaks some systems' header files.
3148 # AIX -qlanglvl=ansi
3149 # Ultrix and OSF/1 -std1
3150 # HP-UX 10.20 and later -Ae
3151 # HP-UX older versions -Aa -D_HPUX_SOURCE
3152 # SVR4 -Xc -D__EXTENSIONS__
3153 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3155 CC="$ac_save_CC $ac_arg"
3156 rm -f conftest.$ac_objext
3157 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3158 (eval $ac_compile) 2>&5
3160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3161 (exit $ac_status); } &&
3162 { ac_try='test -s conftest.$ac_objext'
3163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3167 (exit $ac_status); }; }; then
3168 ac_cv_prog_cc_stdc=$ac_arg
3171 echo "$as_me: failed program was:" >&5
3172 sed 's/^/| /' conftest.$ac_ext >&5
3175 rm -f conftest.$ac_objext
3177 rm -f conftest.$ac_ext conftest.$ac_objext
3182 case "x$ac_cv_prog_cc_stdc" in
3184 echo "$as_me:$LINENO: result: none needed" >&5
3185 echo "${ECHO_T}none needed" >&6 ;;
3187 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3188 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3189 CC="$CC $ac_cv_prog_cc_stdc" ;;
3192 # Some people use a C++ compiler to compile C. Since we use `exit',
3193 # in C++ we need to declare it. In case someone uses the same compiler
3194 # for both compiling C and C++ we need to have the C++ compiler decide
3195 # the declaration of exit, since it's the most demanding environment.
3196 cat >conftest.$ac_ext <<_ACEOF
3201 rm -f conftest.$ac_objext
3202 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3203 (eval $ac_compile) 2>&5
3205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3206 (exit $ac_status); } &&
3207 { ac_try='test -s conftest.$ac_objext'
3208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3212 (exit $ac_status); }; }; then
3213 for ac_declaration in \
3215 '#include <stdlib.h>' \
3216 'extern "C" void std::exit (int) throw (); using std::exit;' \
3217 'extern "C" void std::exit (int); using std::exit;' \
3218 'extern "C" void exit (int) throw ();' \
3219 'extern "C" void exit (int);' \
3222 cat >conftest.$ac_ext <<_ACEOF
3223 #line $LINENO "configure"
3226 cat confdefs.h >>conftest.$ac_ext
3227 cat >>conftest.$ac_ext <<_ACEOF
3228 /* end confdefs.h. */
3239 rm -f conftest.$ac_objext
3240 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3241 (eval $ac_compile) 2>&5
3243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3244 (exit $ac_status); } &&
3245 { ac_try='test -s conftest.$ac_objext'
3246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3250 (exit $ac_status); }; }; then
3253 echo "$as_me: failed program was:" >&5
3254 sed 's/^/| /' conftest.$ac_ext >&5
3258 rm -f conftest.$ac_objext conftest.$ac_ext
3259 cat >conftest.$ac_ext <<_ACEOF
3260 #line $LINENO "configure"
3263 cat confdefs.h >>conftest.$ac_ext
3264 cat >>conftest.$ac_ext <<_ACEOF
3265 /* end confdefs.h. */
3275 rm -f conftest.$ac_objext
3276 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3277 (eval $ac_compile) 2>&5
3279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3280 (exit $ac_status); } &&
3281 { ac_try='test -s conftest.$ac_objext'
3282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3286 (exit $ac_status); }; }; then
3289 echo "$as_me: failed program was:" >&5
3290 sed 's/^/| /' conftest.$ac_ext >&5
3293 rm -f conftest.$ac_objext conftest.$ac_ext
3296 if test -n "$ac_declaration"; then
3297 echo '#ifdef __cplusplus' >>confdefs.h
3298 echo $ac_declaration >>confdefs.h
3299 echo '#endif' >>confdefs.h
3303 echo "$as_me: failed program was:" >&5
3304 sed 's/^/| /' conftest.$ac_ext >&5
3307 rm -f conftest.$ac_objext conftest.$ac_ext
3309 ac_cpp='$CPP $CPPFLAGS'
3310 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3311 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3312 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3314 if test $host != $build; then
3315 for ac_prog in gcc cc
3317 # Extract the first word of "$ac_prog", so it can be a program name with args.
3318 set dummy $ac_prog; ac_word=$2
3319 echo "$as_me:$LINENO: checking for $ac_word" >&5
3320 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3321 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
3322 echo $ECHO_N "(cached) $ECHO_C" >&6
3324 if test -n "$BUILD_CC"; then
3325 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
3327 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3331 test -z "$as_dir" && as_dir=.
3332 for ac_exec_ext in '' $ac_executable_extensions; do
3333 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3334 ac_cv_prog_BUILD_CC="$ac_prog"
3335 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3343 BUILD_CC=$ac_cv_prog_BUILD_CC
3344 if test -n "$BUILD_CC"; then
3345 echo "$as_me:$LINENO: result: $BUILD_CC" >&5
3346 echo "${ECHO_T}$BUILD_CC" >&6
3348 echo "$as_me:$LINENO: result: no" >&5
3349 echo "${ECHO_T}no" >&6
3352 test -n "$BUILD_CC" && break
3358 ac_cpp='$CPP $CPPFLAGS'
3359 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3360 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3361 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3362 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3363 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3364 # On Suns, sometimes $CPP names a directory.
3365 if test -n "$CPP" && test -d "$CPP"; then
3368 if test -z "$CPP"; then
3369 if test "${ac_cv_prog_CPP+set}" = set; then
3370 echo $ECHO_N "(cached) $ECHO_C" >&6
3372 # Double quotes because CPP needs to be expanded
3373 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3376 for ac_c_preproc_warn_flag in '' yes
3378 # Use a header file that comes with gcc, so configuring glibc
3379 # with a fresh cross-compiler works.
3380 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3381 # <limits.h> exists even on freestanding compilers.
3382 # On the NeXT, cc -E runs the code through the compiler's parser,
3383 # not just through cpp. "Syntax error" is here to catch this case.
3384 cat >conftest.$ac_ext <<_ACEOF
3385 #line $LINENO "configure"
3388 cat confdefs.h >>conftest.$ac_ext
3389 cat >>conftest.$ac_ext <<_ACEOF
3390 /* end confdefs.h. */
3392 # include <limits.h>
3394 # include <assert.h>
3398 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3399 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3401 grep -v '^ *+' conftest.er1 >conftest.err
3403 cat conftest.err >&5
3404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3405 (exit $ac_status); } >/dev/null; then
3406 if test -s conftest.err; then
3407 ac_cpp_err=$ac_c_preproc_warn_flag
3414 if test -z "$ac_cpp_err"; then
3417 echo "$as_me: failed program was:" >&5
3418 sed 's/^/| /' conftest.$ac_ext >&5
3420 # Broken: fails on valid input.
3423 rm -f conftest.err conftest.$ac_ext
3425 # OK, works on sane cases. Now check whether non-existent headers
3426 # can be detected and how.
3427 cat >conftest.$ac_ext <<_ACEOF
3428 #line $LINENO "configure"
3431 cat confdefs.h >>conftest.$ac_ext
3432 cat >>conftest.$ac_ext <<_ACEOF
3433 /* end confdefs.h. */
3434 #include <ac_nonexistent.h>
3436 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3437 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3439 grep -v '^ *+' conftest.er1 >conftest.err
3441 cat conftest.err >&5
3442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3443 (exit $ac_status); } >/dev/null; then
3444 if test -s conftest.err; then
3445 ac_cpp_err=$ac_c_preproc_warn_flag
3452 if test -z "$ac_cpp_err"; then
3453 # Broken: success on invalid input.
3456 echo "$as_me: failed program was:" >&5
3457 sed 's/^/| /' conftest.$ac_ext >&5
3459 # Passes both tests.
3463 rm -f conftest.err conftest.$ac_ext
3466 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3467 rm -f conftest.err conftest.$ac_ext
3468 if $ac_preproc_ok; then
3480 echo "$as_me:$LINENO: result: $CPP" >&5
3481 echo "${ECHO_T}$CPP" >&6
3483 for ac_c_preproc_warn_flag in '' yes
3485 # Use a header file that comes with gcc, so configuring glibc
3486 # with a fresh cross-compiler works.
3487 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3488 # <limits.h> exists even on freestanding compilers.
3489 # On the NeXT, cc -E runs the code through the compiler's parser,
3490 # not just through cpp. "Syntax error" is here to catch this case.
3491 cat >conftest.$ac_ext <<_ACEOF
3492 #line $LINENO "configure"
3495 cat confdefs.h >>conftest.$ac_ext
3496 cat >>conftest.$ac_ext <<_ACEOF
3497 /* end confdefs.h. */
3499 # include <limits.h>
3501 # include <assert.h>
3505 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3506 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3508 grep -v '^ *+' conftest.er1 >conftest.err
3510 cat conftest.err >&5
3511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3512 (exit $ac_status); } >/dev/null; then
3513 if test -s conftest.err; then
3514 ac_cpp_err=$ac_c_preproc_warn_flag
3521 if test -z "$ac_cpp_err"; then
3524 echo "$as_me: failed program was:" >&5
3525 sed 's/^/| /' conftest.$ac_ext >&5
3527 # Broken: fails on valid input.
3530 rm -f conftest.err conftest.$ac_ext
3532 # OK, works on sane cases. Now check whether non-existent headers
3533 # can be detected and how.
3534 cat >conftest.$ac_ext <<_ACEOF
3535 #line $LINENO "configure"
3538 cat confdefs.h >>conftest.$ac_ext
3539 cat >>conftest.$ac_ext <<_ACEOF
3540 /* end confdefs.h. */
3541 #include <ac_nonexistent.h>
3543 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3544 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3546 grep -v '^ *+' conftest.er1 >conftest.err
3548 cat conftest.err >&5
3549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3550 (exit $ac_status); } >/dev/null; then
3551 if test -s conftest.err; then
3552 ac_cpp_err=$ac_c_preproc_warn_flag
3559 if test -z "$ac_cpp_err"; then
3560 # Broken: success on invalid input.
3563 echo "$as_me: failed program was:" >&5
3564 sed 's/^/| /' conftest.$ac_ext >&5
3566 # Passes both tests.
3570 rm -f conftest.err conftest.$ac_ext
3573 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3574 rm -f conftest.err conftest.$ac_ext
3575 if $ac_preproc_ok; then
3578 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3579 See \`config.log' for more details." >&5
3580 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3581 See \`config.log' for more details." >&2;}
3582 { (exit 1); exit 1; }; }
3586 ac_cpp='$CPP $CPPFLAGS'
3587 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3588 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3589 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3591 # Was a --with-binutils option given?
3592 if test -n "$path_binutils"; then
3593 # Make absolute; ensure a single trailing slash.
3594 path_binutils=`(cd $path_binutils; pwd) | sed 's%/*$%/%'`
3595 CC="$CC -B$path_binutils"
3597 AS=`$CC -print-prog-name=as`
3598 LD=`$CC -print-prog-name=ld`
3599 AR=`$CC -print-prog-name=ar`
3601 OBJDUMP=`$CC -print-prog-name=objdump`
3604 # ranlib has to be treated a bit differently since it might not exist at all.
3605 ac_ranlib=`$CC -print-prog-name=ranlib`
3606 if test "x$ac_ranlib" = xranlib; then
3607 # This extra check has to happen since gcc simply echos the parameter in
3608 # case it cannot find the value in its own directories.
3609 if test -n "$ac_tool_prefix"; then
3610 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3611 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3612 echo "$as_me:$LINENO: checking for $ac_word" >&5
3613 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3614 if test "${ac_cv_prog_RANLIB+set}" = set; then
3615 echo $ECHO_N "(cached) $ECHO_C" >&6
3617 if test -n "$RANLIB"; then
3618 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3624 test -z "$as_dir" && as_dir=.
3625 for ac_exec_ext in '' $ac_executable_extensions; do
3626 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3627 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3628 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3636 RANLIB=$ac_cv_prog_RANLIB
3637 if test -n "$RANLIB"; then
3638 echo "$as_me:$LINENO: result: $RANLIB" >&5
3639 echo "${ECHO_T}$RANLIB" >&6
3641 echo "$as_me:$LINENO: result: no" >&5
3642 echo "${ECHO_T}no" >&6
3646 if test -z "$ac_cv_prog_RANLIB"; then
3647 ac_ct_RANLIB=$RANLIB
3648 # Extract the first word of "ranlib", so it can be a program name with args.
3649 set dummy ranlib; ac_word=$2
3650 echo "$as_me:$LINENO: checking for $ac_word" >&5
3651 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3652 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3653 echo $ECHO_N "(cached) $ECHO_C" >&6
3655 if test -n "$ac_ct_RANLIB"; then
3656 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3662 test -z "$as_dir" && as_dir=.
3663 for ac_exec_ext in '' $ac_executable_extensions; do
3664 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3665 ac_cv_prog_ac_ct_RANLIB="ranlib"
3666 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3672 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3675 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3676 if test -n "$ac_ct_RANLIB"; then
3677 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3678 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3680 echo "$as_me:$LINENO: result: no" >&5
3681 echo "${ECHO_T}no" >&6
3684 RANLIB=$ac_ct_RANLIB
3686 RANLIB="$ac_cv_prog_RANLIB"
3694 # Determine whether we are using GNU binutils.
3695 echo "$as_me:$LINENO: checking whether $AS is GNU as" >&5
3696 echo $ECHO_N "checking whether $AS is GNU as... $ECHO_C" >&6
3697 if test "${libc_cv_prog_as_gnu+set}" = set; then
3698 echo $ECHO_N "(cached) $ECHO_C" >&6
3700 # Most GNU programs take a -v and spit out some text including
3701 # the word 'GNU'. Some try to read stdin, so give them /dev/null.
3702 if $AS -o conftest -v </dev/null 2>&1 | grep GNU > /dev/null 2>&1; then
3703 libc_cv_prog_as_gnu=yes
3705 libc_cv_prog_as_gnu=no
3709 echo "$as_me:$LINENO: result: $libc_cv_prog_as_gnu" >&5
3710 echo "${ECHO_T}$libc_cv_prog_as_gnu" >&6
3712 gnu_as=$libc_cv_prog_as_gnu
3714 echo "$as_me:$LINENO: checking whether $LD is GNU ld" >&5
3715 echo $ECHO_N "checking whether $LD is GNU ld... $ECHO_C" >&6
3716 if test "${libc_cv_prog_ld_gnu+set}" = set; then
3717 echo $ECHO_N "(cached) $ECHO_C" >&6
3719 # Most GNU programs take a -v and spit out some text including
3720 # the word 'GNU'. Some try to read stdin, so give them /dev/null.
3721 if $LD -o conftest -v </dev/null 2>&1 | grep GNU > /dev/null 2>&1; then
3722 libc_cv_prog_ld_gnu=yes
3724 libc_cv_prog_ld_gnu=no
3728 echo "$as_me:$LINENO: result: $libc_cv_prog_ld_gnu" >&5
3729 echo "${ECHO_T}$libc_cv_prog_ld_gnu" >&6
3730 gnu_ld=$libc_cv_prog_ld_gnu
3733 # Accept binutils 2.13 or newer.
3736 # Extract the first word of "$ac_prog", so it can be a program name with args.
3737 set dummy $ac_prog; ac_word=$2
3738 echo "$as_me:$LINENO: checking for $ac_word" >&5
3739 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3740 if test "${ac_cv_prog_AS+set}" = set; then
3741 echo $ECHO_N "(cached) $ECHO_C" >&6
3743 if test -n "$AS"; then
3744 ac_cv_prog_AS="$AS" # Let the user override the test.
3746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3750 test -z "$as_dir" && as_dir=.
3751 for ac_exec_ext in '' $ac_executable_extensions; do
3752 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3753 ac_cv_prog_AS="$ac_prog"
3754 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3763 if test -n "$AS"; then
3764 echo "$as_me:$LINENO: result: $AS" >&5
3765 echo "${ECHO_T}$AS" >&6
3767 echo "$as_me:$LINENO: result: no" >&5
3768 echo "${ECHO_T}no" >&6
3771 test -n "$AS" && break
3774 if test -z "$AS"; then
3777 # Found it, now check the version.
3778 echo "$as_me:$LINENO: checking version of $AS" >&5
3779 echo $ECHO_N "checking version of $AS... $ECHO_C" >&6
3780 ac_prog_version=`$AS --version 2>&1 | sed -n 's/^.*GNU assembler.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
3781 case $ac_prog_version in
3782 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
3784 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
3785 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
3788 echo "$as_me:$LINENO: result: $ac_prog_version" >&5
3789 echo "${ECHO_T}$ac_prog_version" >&6
3791 if test $ac_verc_fail = yes; then
3792 AS=: critic_missing=t
3797 # Extract the first word of "$ac_prog", so it can be a program name with args.
3798 set dummy $ac_prog; ac_word=$2
3799 echo "$as_me:$LINENO: checking for $ac_word" >&5
3800 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3801 if test "${ac_cv_prog_LD+set}" = set; then
3802 echo $ECHO_N "(cached) $ECHO_C" >&6
3804 if test -n "$LD"; then
3805 ac_cv_prog_LD="$LD" # Let the user override the test.
3807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3811 test -z "$as_dir" && as_dir=.
3812 for ac_exec_ext in '' $ac_executable_extensions; do
3813 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3814 ac_cv_prog_LD="$ac_prog"
3815 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3824 if test -n "$LD"; then
3825 echo "$as_me:$LINENO: result: $LD" >&5
3826 echo "${ECHO_T}$LD" >&6
3828 echo "$as_me:$LINENO: result: no" >&5
3829 echo "${ECHO_T}no" >&6
3832 test -n "$LD" && break
3835 if test -z "$LD"; then
3838 # Found it, now check the version.
3839 echo "$as_me:$LINENO: checking version of $LD" >&5
3840 echo $ECHO_N "checking version of $LD... $ECHO_C" >&6
3841 ac_prog_version=`$LD --version 2>&1 | sed -n 's/^.*GNU ld.* \([0-9][0-9]*\.[0-9.]*\).*$/\1/p'`
3842 case $ac_prog_version in
3843 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
3845 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
3846 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
3849 echo "$as_me:$LINENO: result: $ac_prog_version" >&5
3850 echo "${ECHO_T}$ac_prog_version" >&6
3852 if test $ac_verc_fail = yes; then
3853 LD=: critic_missing=t
3857 test -n "$critic_missing" && { { echo "$as_me:$LINENO: error:
3858 *** These critical programs are missing or too old:$critic_missing
3859 *** Check the INSTALL file for required versions." >&5
3860 echo "$as_me: error:
3861 *** These critical programs are missing or too old:$critic_missing
3862 *** Check the INSTALL file for required versions." >&2;}
3863 { (exit 1); exit 1; }; }
3865 test -n "$aux_missing" && { echo "$as_me:$LINENO: WARNING:
3866 *** These auxiliary programs are missing or incompatible versions:$aux_missing
3867 *** some features will be disabled.
3868 *** Check the INSTALL file for required versions." >&5
3869 echo "$as_me: WARNING:
3870 *** These auxiliary programs are missing or incompatible versions:$aux_missing
3871 *** some features will be disabled.
3872 *** Check the INSTALL file for required versions." >&2;}
3874 # glibcbug.in wants to know the compiler version.
3875 CCVERSION=`$CC -v 2>&1 | sed -n 's/gcc version //p'`
3878 # if using special system headers, find out the compiler's sekrit
3879 # header directory and add that to the list. NOTE: Only does the right
3880 # thing on a system that doesn't need fixincludes. (Not presently a problem.)
3881 if test -n "$sysheaders"; then
3882 ccheaders=`$CC -print-file-name=include`
3883 SYSINCLUDES="-nostdinc -isystem $ccheaders -isystem $sysheaders"
3887 # check if ranlib is necessary
3888 echo "$as_me:$LINENO: checking whether ranlib is necessary" >&5
3889 echo $ECHO_N "checking whether ranlib is necessary... $ECHO_C" >&6
3890 if test "${libc_cv_ranlib_necessary+set}" = set; then
3891 echo $ECHO_N "(cached) $ECHO_C" >&6
3893 cat > conftest.c <<EOF
3898 $CC $CFLAGS -c conftest.c
3899 $AR cr conftest.a conftest.o
3900 cp conftest.a conftest2.a
3902 if cmp -s conftest.a conftest2.a; then
3903 libc_cv_ranlib_necessary=no
3905 libc_cv_ranlib_necessary=yes
3909 echo "$as_me:$LINENO: result: $libc_cv_ranlib_necessary" >&5
3910 echo "${ECHO_T}$libc_cv_ranlib_necessary" >&6
3911 if test "$libc_cv_ranlib_necessary" = no; then
3915 # Test if LD_LIBRARY_PATH contains the notation for the current directory
3916 # since this would lead to problems installing/building glibc.
3917 # LD_LIBRARY_PATH contains the current directory if one of the following
3919 # - one of the terminals (":" and ";") is the first or last sign
3920 # - two terminals occur directly after each other
3921 # - the path contains an element with a dot in it
3922 echo "$as_me:$LINENO: checking LD_LIBRARY_PATH variable" >&5
3923 echo $ECHO_N "checking LD_LIBRARY_PATH variable... $ECHO_C" >&6
3924 case ${LD_LIBRARY_PATH} in
3925 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3926 ld_library_path_setting="contains current directory"
3929 ld_library_path_setting="ok"
3932 echo "$as_me:$LINENO: result: $ld_library_path_setting" >&5
3933 echo "${ECHO_T}$ld_library_path_setting" >&6
3934 if test "$ld_library_path_setting" != "ok"; then
3935 { { echo "$as_me:$LINENO: error:
3936 *** LD_LIBRARY_PATH shouldn't contain the current directory when
3937 *** building glibc. Please change the environment variable
3938 *** and run configure again." >&5
3939 echo "$as_me: error:
3940 *** LD_LIBRARY_PATH shouldn't contain the current directory when
3941 *** building glibc. Please change the environment variable
3942 *** and run configure again." >&2;}
3943 { (exit 1); exit 1; }; }
3946 echo "$as_me:$LINENO: checking whether GCC supports -static-libgcc" >&5
3947 echo $ECHO_N "checking whether GCC supports -static-libgcc... $ECHO_C" >&6
3948 if test "${libc_cv_gcc_static_libgcc+set}" = set; then
3949 echo $ECHO_N "(cached) $ECHO_C" >&6
3951 if $CC -v -static-libgcc 2>&1 | grep -q 'unrecognized option.*static-libgcc'; then
3952 libc_cv_gcc_static_libgcc=
3954 libc_cv_gcc_static_libgcc=-static-libgcc
3957 echo "$as_me:$LINENO: result: $libc_cv_gcc_static_libgcc" >&5
3958 echo "${ECHO_T}$libc_cv_gcc_static_libgcc" >&6
3961 # Extract the first word of "bash", so it can be a program name with args.
3962 set dummy bash; ac_word=$2
3963 echo "$as_me:$LINENO: checking for $ac_word" >&5
3964 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3965 if test "${ac_cv_path_BASH+set}" = set; then
3966 echo $ECHO_N "(cached) $ECHO_C" >&6
3970 ac_cv_path_BASH="$BASH" # Let the user override the test with a path.
3973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3977 test -z "$as_dir" && as_dir=.
3978 for ac_exec_ext in '' $ac_executable_extensions; do
3979 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3980 ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext"
3981 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3987 test -z "$ac_cv_path_BASH" && ac_cv_path_BASH="no"
3991 BASH=$ac_cv_path_BASH
3993 if test -n "$BASH"; then
3994 echo "$as_me:$LINENO: result: $BASH" >&5
3995 echo "${ECHO_T}$BASH" >&6
3997 echo "$as_me:$LINENO: result: no" >&5
3998 echo "${ECHO_T}no" >&6
4001 if test "$BASH" != no &&
4002 $BASH -c 'test "$BASH_VERSINFO" \
4003 && test "$BASH_VERSINFO" -ge 2 >&/dev/null'; then
4004 libc_cv_have_bash2=yes
4006 libc_cv_have_bash2=no
4010 if test "$BASH" = no; then
4011 # Extract the first word of "ksh", so it can be a program name with args.
4012 set dummy ksh; ac_word=$2
4013 echo "$as_me:$LINENO: checking for $ac_word" >&5
4014 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4015 if test "${ac_cv_path_KSH+set}" = set; then
4016 echo $ECHO_N "(cached) $ECHO_C" >&6
4020 ac_cv_path_KSH="$KSH" # Let the user override the test with a path.
4023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4027 test -z "$as_dir" && as_dir=.
4028 for ac_exec_ext in '' $ac_executable_extensions; do
4029 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4030 ac_cv_path_KSH="$as_dir/$ac_word$ac_exec_ext"
4031 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4037 test -z "$ac_cv_path_KSH" && ac_cv_path_KSH="no"
4043 if test -n "$KSH"; then
4044 echo "$as_me:$LINENO: result: $KSH" >&5
4045 echo "${ECHO_T}$KSH" >&6
4047 echo "$as_me:$LINENO: result: no" >&5
4048 echo "${ECHO_T}no" >&6
4051 if test "$KSH" = no; then
4054 libc_cv_have_ksh=yes
4059 libc_cv_have_ksh=yes
4063 for ac_prog in gawk mawk nawk awk
4065 # Extract the first word of "$ac_prog", so it can be a program name with args.
4066 set dummy $ac_prog; ac_word=$2
4067 echo "$as_me:$LINENO: checking for $ac_word" >&5
4068 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4069 if test "${ac_cv_prog_AWK+set}" = set; then
4070 echo $ECHO_N "(cached) $ECHO_C" >&6
4072 if test -n "$AWK"; then
4073 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4079 test -z "$as_dir" && as_dir=.
4080 for ac_exec_ext in '' $ac_executable_extensions; do
4081 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4082 ac_cv_prog_AWK="$ac_prog"
4083 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4092 if test -n "$AWK"; then
4093 echo "$as_me:$LINENO: result: $AWK" >&5
4094 echo "${ECHO_T}$AWK" >&6
4096 echo "$as_me:$LINENO: result: no" >&5
4097 echo "${ECHO_T}no" >&6
4100 test -n "$AWK" && break
4103 # Extract the first word of "perl", so it can be a program name with args.
4104 set dummy perl; ac_word=$2
4105 echo "$as_me:$LINENO: checking for $ac_word" >&5
4106 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4107 if test "${ac_cv_path_PERL+set}" = set; then
4108 echo $ECHO_N "(cached) $ECHO_C" >&6
4112 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
4115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4119 test -z "$as_dir" && as_dir=.
4120 for ac_exec_ext in '' $ac_executable_extensions; do
4121 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4122 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
4123 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4129 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="no"
4133 PERL=$ac_cv_path_PERL
4135 if test -n "$PERL"; then
4136 echo "$as_me:$LINENO: result: $PERL" >&5
4137 echo "${ECHO_T}$PERL" >&6
4139 echo "$as_me:$LINENO: result: no" >&5
4140 echo "${ECHO_T}no" >&6
4143 if test "$PERL" != no &&
4144 (eval `$PERL -V:apiversion`; test `expr "$apiversion" \< 5` -ne 0); then
4147 # Extract the first word of "install-info", so it can be a program name with args.
4148 set dummy install-info; ac_word=$2
4149 echo "$as_me:$LINENO: checking for $ac_word" >&5
4150 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4151 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4152 echo $ECHO_N "(cached) $ECHO_C" >&6
4154 case $INSTALL_INFO in
4156 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
4159 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4160 as_dummy="$PATH:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin"
4161 for as_dir in $as_dummy
4164 test -z "$as_dir" && as_dir=.
4165 for ac_exec_ext in '' $ac_executable_extensions; do
4166 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4167 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
4168 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4174 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO="no"
4178 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
4180 if test -n "$INSTALL_INFO"; then
4181 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4182 echo "${ECHO_T}$INSTALL_INFO" >&6
4184 echo "$as_me:$LINENO: result: no" >&5
4185 echo "${ECHO_T}no" >&6
4188 if test "$INSTALL_INFO" != "no"; then
4189 echo "$as_me:$LINENO: checking for old Debian install-info" >&5
4190 echo $ECHO_N "checking for old Debian install-info... $ECHO_C" >&6
4191 if test "${libc_cv_old_debian_install_info+set}" = set; then
4192 echo $ECHO_N "(cached) $ECHO_C" >&6
4195 # There is a hard ^_ on the next line. I am open to better ideas.
4197 echo 'File: dir Node: Top This is the top of the INFO tree'
4198 echo '* Menu:') >conftest.d/dir
4199 (echo 'INFO-DIR-SECTION i-d-s works'
4200 echo 'START-INFO-DIR-ENTRY'
4201 echo '* Prog: (prog). Program.'
4202 echo 'END-INFO-DIR-ENTRY') >conftest.d/prog.info
4203 if $INSTALL_INFO --info-dir=conftest.d conftest.d/prog.info >&5 2>&1
4205 if grep -s 'i-d-s works' conftest.d/dir >/dev/null
4206 then libc_cv_old_debian_install_info=no
4207 else libc_cv_old_debian_install_info=yes
4209 else libc_cv_old_debian_install_info=no testfailed=t
4213 echo "$as_me:$LINENO: result: $libc_cv_old_debian_install_info" >&5
4214 echo "${ECHO_T}$libc_cv_old_debian_install_info" >&6
4215 if test -n "$testfailed"
4216 then { echo "$as_me:$LINENO: WARNING: install-info errored out, check config.log" >&5
4217 echo "$as_me: WARNING: install-info errored out, check config.log" >&2;}
4219 OLD_DEBIAN_INSTALL_INFO=$libc_cv_old_debian_install_info
4223 # Extract the first word of "bison", so it can be a program name with args.
4224 set dummy bison; ac_word=$2
4225 echo "$as_me:$LINENO: checking for $ac_word" >&5
4226 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4227 if test "${ac_cv_path_BISON+set}" = set; then
4228 echo $ECHO_N "(cached) $ECHO_C" >&6
4232 ac_cv_path_BISON="$BISON" # Let the user override the test with a path.
4235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4236 as_dummy="$PATH:/usr/local/bin:/usr/bin:/bin"
4237 for as_dir in $as_dummy
4240 test -z "$as_dir" && as_dir=.
4241 for ac_exec_ext in '' $ac_executable_extensions; do
4242 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4243 ac_cv_path_BISON="$as_dir/$ac_word$ac_exec_ext"
4244 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4250 test -z "$ac_cv_path_BISON" && ac_cv_path_BISON="no"
4254 BISON=$ac_cv_path_BISON
4256 if test -n "$BISON"; then
4257 echo "$as_me:$LINENO: result: $BISON" >&5
4258 echo "${ECHO_T}$BISON" >&6
4260 echo "$as_me:$LINENO: result: no" >&5
4261 echo "${ECHO_T}no" >&6
4265 echo "$as_me:$LINENO: checking for signed size_t type" >&5
4266 echo $ECHO_N "checking for signed size_t type... $ECHO_C" >&6
4267 if test "${libc_cv_signed_size_t+set}" = set; then
4268 echo $ECHO_N "(cached) $ECHO_C" >&6
4270 echo '#include <stddef.h>
4271 FOOBAR __SIZE_TYPE__ FOOBAR' > conftest.c
4272 if eval "$ac_cpp conftest.c 2>/dev/null" \
4273 | grep '^FOOBAR.*unsigned.*FOOBAR$' >/dev/null; then
4274 libc_cv_signed_size_t=no
4276 libc_cv_signed_size_t=yes
4280 echo "$as_me:$LINENO: result: $libc_cv_signed_size_t" >&5
4281 echo "${ECHO_T}$libc_cv_signed_size_t" >&6
4282 if test $libc_cv_signed_size_t = yes; then
4283 cat >> confdefs.h <<\EOF
4284 #undef __SIZE_TYPE__
4285 #define __SIZE_TYPE__ unsigned
4290 echo "$as_me:$LINENO: checking for libc-friendly stddef.h" >&5
4291 echo $ECHO_N "checking for libc-friendly stddef.h... $ECHO_C" >&6
4292 if test "${libc_cv_friendly_stddef+set}" = set; then
4293 echo $ECHO_N "(cached) $ECHO_C" >&6
4295 cat >conftest.$ac_ext <<_ACEOF
4296 #line $LINENO "configure"
4299 cat confdefs.h >>conftest.$ac_ext
4300 cat >>conftest.$ac_ext <<_ACEOF
4301 /* end confdefs.h. */
4302 #define __need_size_t
4303 #define __need_wchar_t
4310 size_t size; wchar_t wchar;
4312 #error stddef.h ignored __need_*
4314 if (&size == NULL || &wchar == NULL) abort ();
4319 rm -f conftest.$ac_objext
4320 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4321 (eval $ac_compile) 2>&5
4323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4324 (exit $ac_status); } &&
4325 { ac_try='test -s conftest.$ac_objext'
4326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4330 (exit $ac_status); }; }; then
4331 libc_cv_friendly_stddef=yes
4333 echo "$as_me: failed program was:" >&5
4334 sed 's/^/| /' conftest.$ac_ext >&5
4336 libc_cv_friendly_stddef=no
4338 rm -f conftest.$ac_objext conftest.$ac_ext
4340 echo "$as_me:$LINENO: result: $libc_cv_friendly_stddef" >&5
4341 echo "${ECHO_T}$libc_cv_friendly_stddef" >&6
4342 if test $libc_cv_friendly_stddef = yes; then
4343 config_vars="$config_vars
4344 override stddef.h = # The installed <stddef.h> seems to be libc-friendly."
4347 echo "$as_me:$LINENO: checking whether we need to use -P to assemble .S files" >&5
4348 echo $ECHO_N "checking whether we need to use -P to assemble .S files... $ECHO_C" >&6
4349 if test "${libc_cv_need_minus_P+set}" = set; then
4350 echo $ECHO_N "(cached) $ECHO_C" >&6
4352 cat > conftest.S <<EOF
4353 #include "confdefs.h"
4354 /* Nothing whatsoever. */
4356 if { ac_try='${CC-cc} $CFLAGS -c conftest.S 1>&5'
4357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4361 (exit $ac_status); }; }; then
4362 libc_cv_need_minus_P=no
4364 libc_cv_need_minus_P=yes
4368 echo "$as_me:$LINENO: result: $libc_cv_need_minus_P" >&5
4369 echo "${ECHO_T}$libc_cv_need_minus_P" >&6
4370 if test $libc_cv_need_minus_P = yes; then
4371 config_vars="$config_vars
4372 asm-CPPFLAGS = -P # The assembler can't grok cpp's # line directives."
4375 echo "$as_me:$LINENO: checking whether .text pseudo-op must be used" >&5
4376 echo $ECHO_N "checking whether .text pseudo-op must be used... $ECHO_C" >&6
4377 if test "${libc_cv_dot_text+set}" = set; then
4378 echo $ECHO_N "(cached) $ECHO_C" >&6
4380 cat > conftest.s <<EOF
4384 if { ac_try='${CC-cc} $CFLAGS -c conftest.s 1>&5'
4385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4389 (exit $ac_status); }; }; then
4390 libc_cv_dot_text=.text
4395 if test -z "$libc_cv_dot_text"; then
4396 echo "$as_me:$LINENO: result: no" >&5
4397 echo "${ECHO_T}no" >&6
4399 echo "$as_me:$LINENO: result: yes" >&5
4400 echo "${ECHO_T}yes" >&6
4403 echo "$as_me:$LINENO: checking for assembler global-symbol directive" >&5
4404 echo $ECHO_N "checking for assembler global-symbol directive... $ECHO_C" >&6
4405 if test "${libc_cv_asm_global_directive+set}" = set; then
4406 echo $ECHO_N "(cached) $ECHO_C" >&6
4408 libc_cv_asm_global_directive=UNKNOWN
4409 for ac_globl in .globl .global .EXPORT; do
4410 cat > conftest.s <<EOF
4415 if { ac_try='${CC-cc} $CFLAGS -c conftest.s 1>&5'
4416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4420 (exit $ac_status); }; }; then
4421 libc_cv_asm_global_directive=${ac_globl}
4424 test $libc_cv_asm_global_directive != UNKNOWN && break
4427 echo "$as_me:$LINENO: result: $libc_cv_asm_global_directive" >&5
4428 echo "${ECHO_T}$libc_cv_asm_global_directive" >&6
4429 if test $libc_cv_asm_global_directive = UNKNOWN; then
4430 { { echo "$as_me:$LINENO: error: cannot determine asm global directive" >&5
4431 echo "$as_me: error: cannot determine asm global directive" >&2;}
4432 { (exit 1); exit 1; }; }
4434 cat >>confdefs.h <<_ACEOF
4435 #define ASM_GLOBAL_DIRECTIVE ${libc_cv_asm_global_directive}
4440 echo "$as_me:$LINENO: checking for .set assembler directive" >&5
4441 echo $ECHO_N "checking for .set assembler directive... $ECHO_C" >&6
4442 if test "${libc_cv_asm_set_directive+set}" = set; then
4443 echo $ECHO_N "(cached) $ECHO_C" >&6
4445 cat > conftest.s <<EOF
4448 .set glibc_conftest_frobozz,foo
4449 $libc_cv_asm_global_directive glibc_conftest_frobozz
4451 # The alpha-dec-osf1 assembler gives only a warning for `.set'
4452 # (but it doesn't work), so we must do a linking check to be sure.
4453 cat > conftest1.c <<\EOF
4454 extern int glibc_conftest_frobozz;
4455 main () { printf ("%d\n", glibc_conftest_frobozz); }
4457 if ${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \
4458 -o conftest conftest.s conftest1.c 1>&5 2>&5; then
4459 libc_cv_asm_set_directive=yes
4461 libc_cv_asm_set_directive=no
4465 echo "$as_me:$LINENO: result: $libc_cv_asm_set_directive" >&5
4466 echo "${ECHO_T}$libc_cv_asm_set_directive" >&6
4467 if test $libc_cv_asm_set_directive = yes; then
4468 cat >>confdefs.h <<\_ACEOF
4469 #define HAVE_ASM_SET_DIRECTIVE 1
4474 echo "$as_me:$LINENO: checking for assembler .type directive prefix" >&5
4475 echo $ECHO_N "checking for assembler .type directive prefix... $ECHO_C" >&6
4476 if test "${libc_cv_asm_type_prefix+set}" = set; then
4477 echo $ECHO_N "(cached) $ECHO_C" >&6
4479 libc_cv_asm_type_prefix=no
4480 for ac_try_prefix in '@' '%' '#'; do
4481 cat > conftest.s <<EOF
4483 ${libc_cv_asm_global_directive} foo
4484 .type foo, ${ac_try_prefix}object
4489 if { ac_try='${CC-cc} $CFLAGS -c conftest.s 1>&5'
4490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4494 (exit $ac_status); }; }; then
4495 libc_cv_asm_type_prefix=${ac_try_prefix}
4498 test "x$libc_cv_asm_type_prefix" != xno && break
4501 echo "$as_me:$LINENO: result: $libc_cv_asm_type_prefix" >&5
4502 echo "${ECHO_T}$libc_cv_asm_type_prefix" >&6
4503 if test "x$libc_cv_asm_type_prefix" != xno; then
4504 cat >>confdefs.h <<_ACEOF
4505 #define ASM_TYPE_DIRECTIVE_PREFIX ${libc_cv_asm_type_prefix}
4510 # The Aix ld uses global .symbol_names instead of symbol_names.
4511 # Unfortunately also used in the PPC64 ELF ABI.
4512 case "${os}${machine}" in
4513 aix4.3* | linux*powerpc/powerpc64*)
4514 cat >>confdefs.h <<\_ACEOF
4515 #define HAVE_ASM_GLOBAL_DOT_NAME 1
4520 echo "$as_me:$LINENO: checking for .symver assembler directive" >&5
4521 echo $ECHO_N "checking for .symver assembler directive... $ECHO_C" >&6
4522 if test "${libc_cv_asm_symver_directive+set}" = set; then
4523 echo $ECHO_N "(cached) $ECHO_C" >&6
4525 cat > conftest.s <<EOF
4528 .symver _sym,sym@VERS
4530 if ${CC-cc} -c $CFLAGS $CPPFLAGS conftest.s 1>&5 2>&5; then
4531 libc_cv_asm_symver_directive=yes
4533 libc_cv_asm_symver_directive=no
4537 echo "$as_me:$LINENO: result: $libc_cv_asm_symver_directive" >&5
4538 echo "${ECHO_T}$libc_cv_asm_symver_directive" >&6
4539 echo "$as_me:$LINENO: checking for ld --version-script" >&5
4540 echo $ECHO_N "checking for ld --version-script... $ECHO_C" >&6
4541 if test "${libc_cv_ld_version_script_option+set}" = set; then
4542 echo $ECHO_N "(cached) $ECHO_C" >&6
4544 if test $libc_cv_asm_symver_directive = yes; then
4545 cat > conftest.s <<EOF
4548 .symver _sym,sym@VERS
4550 cat > conftest.map <<EOF
4559 if ${CC-cc} -c $CFLAGS $CPPFLAGS conftest.s 1>&5 2>&5; then
4560 if { ac_try='${CC-cc} $CFLAGS -shared -o conftest.so conftest.o
4561 -nostartfiles -nostdlib
4562 -Wl,--version-script,conftest.map
4564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4568 (exit $ac_status); }; };
4570 libc_cv_ld_version_script_option=yes
4572 libc_cv_ld_version_script_option=no
4575 libc_cv_ld_version_script_option=no
4578 libc_cv_ld_version_script_option=no
4582 echo "$as_me:$LINENO: result: $libc_cv_ld_version_script_option" >&5
4583 echo "${ECHO_T}$libc_cv_ld_version_script_option" >&6
4584 if test $shared != no &&
4585 test $libc_cv_asm_symver_directive = yes &&
4586 test $libc_cv_ld_version_script_option = yes &&
4587 test $enable_versioning = yes; then
4589 cat >>confdefs.h <<\_ACEOF
4590 #define DO_VERSIONING 1
4598 if test $elf = yes && test $shared != no && test $VERSIONING = no; then
4600 *** WARNING: You should not compile GNU libc without versioning. Not using
4601 *** versioning will introduce incompatibilities so that old binaries
4602 *** will not run anymore.
4603 *** For versioning you need recent binutils (binutils-2.8.1.0.23 or newer)."
4605 if test $elf = yes; then
4606 echo "$as_me:$LINENO: checking for .previous assembler directive" >&5
4607 echo $ECHO_N "checking for .previous assembler directive... $ECHO_C" >&6
4608 if test "${libc_cv_asm_previous_directive+set}" = set; then
4609 echo $ECHO_N "(cached) $ECHO_C" >&6
4611 cat > conftest.s <<EOF
4612 .section foo_section
4615 if { ac_try='${CC-cc} -c $CFLAGS conftest.s 1>&5'
4616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4620 (exit $ac_status); }; }; then
4621 libc_cv_asm_previous_directive=yes
4623 libc_cv_asm_previous_directive=no
4627 echo "$as_me:$LINENO: result: $libc_cv_asm_previous_directive" >&5
4628 echo "${ECHO_T}$libc_cv_asm_previous_directive" >&6
4629 if test $libc_cv_asm_previous_directive = yes; then
4630 cat >>confdefs.h <<\_ACEOF
4631 #define HAVE_ASM_PREVIOUS_DIRECTIVE 1
4635 echo "$as_me:$LINENO: checking for .popsection assembler directive" >&5
4636 echo $ECHO_N "checking for .popsection assembler directive... $ECHO_C" >&6
4637 if test "${libc_cv_asm_popsection_directive+set}" = set; then
4638 echo $ECHO_N "(cached) $ECHO_C" >&6
4640 cat > conftest.s <<EOF
4641 .pushsection foo_section
4644 if { ac_try='${CC-cc} -c $CFLAGS conftest.s 1>&5'
4645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5