2 # From configure.in CVSid.
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.57 for GNU C Library (see version.h).
6 # Report bugs to <glibc>.
8 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
9 # Free Software Foundation, Inc.
10 # This configure script is free software; the Free Software Foundation
11 # gives unlimited permission to copy, distribute and modify it.
12 ## --------------------- ##
13 ## M4sh Initialization. ##
14 ## --------------------- ##
16 # Be Bourne compatible
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
27 # Support unset when possible.
28 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
35 # Work around bugs in pre-3.0 UWIN ksh.
36 $as_unset ENV MAIL MAILPATH
43 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
44 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
47 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
48 eval $as_var=C; export $as_var
54 # Required to use basename.
55 if expr a : '\(a\)' >/dev/null 2>&1; then
61 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
68 # Name of the executable.
69 as_me=`$as_basename "$0" ||
70 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
71 X"$0" : 'X\(//\)$' \| \
72 X"$0" : 'X\(/\)$' \| \
73 . : '\(.\)' 2>/dev/null ||
75 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
76 /^X\/\(\/\/\)$/{ s//\1/; q; }
77 /^X\/\(\/\).*/{ s//\1/; q; }
81 # PATH needs CR, and LINENO needs CR and PATH.
82 # Avoid depending upon Character Ranges.
83 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
84 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
85 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
86 as_cr_digits='0123456789'
87 as_cr_alnum=$as_cr_Letters$as_cr_digits
89 # The user is always right.
90 if test "${PATH_SEPARATOR+set}" != set; then
91 echo "#! /bin/sh" >conf$$.sh
92 echo "exit 0" >>conf$$.sh
94 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
105 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
106 test "x$as_lineno_1" != "x$as_lineno_2" &&
107 test "x$as_lineno_3" = "x$as_lineno_2" || {
108 # Find who we are. Look in the path if we contain no path at all
111 *[\\/]* ) as_myself=$0 ;;
112 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
116 test -z "$as_dir" && as_dir=.
117 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
122 # We did not find ourselves, most probably we were run as `sh COMMAND'
123 # in which case we are not to be found in the path.
124 if test "x$as_myself" = x; then
127 if test ! -f "$as_myself"; then
128 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
129 { (exit 1); exit 1; }; }
131 case $CONFIG_SHELL in
133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
134 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
137 test -z "$as_dir" && as_dir=.
138 for as_base in sh bash ksh sh5; do
141 if ("$as_dir/$as_base" -c '
144 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
145 test "x$as_lineno_1" != "x$as_lineno_2" &&
146 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
147 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
148 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
149 CONFIG_SHELL=$as_dir/$as_base
151 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
159 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
160 # uniformly replaced by the line number. The first 'sed' inserts a
161 # line-number line before each line; the second 'sed' does the real
162 # work. The second script uses 'N' to pair each line-number line
163 # with the numbered line, and appends trailing '-' during
164 # substitution so that $LINENO is not a special case at line end.
165 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
166 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
167 sed '=' <$as_myself |
172 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
175 s,^['$as_cr_digits']*\n,,
177 chmod +x $as_me.lineno ||
178 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
179 { (exit 1); exit 1; }; }
181 # Don't try to exec as it changes $[0], causing all sort of problems
182 # (the dirname of $[0] is not the place where we might find the
183 # original and so on. Autoconf is especially sensible to this).
185 # Exit status is that of the last command.
190 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
191 *c*,-n*) ECHO_N= ECHO_C='
193 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
194 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
197 if expr a : '\(a\)' >/dev/null 2>&1; then
203 rm -f conf$$ conf$$.exe conf$$.file
205 if ln -s conf$$.file conf$$ 2>/dev/null; then
206 # We could just check for DJGPP; but this test a) works b) is more generic
207 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
208 if test -f conf$$.exe; then
209 # Don't use ln at all; we don't have any links
214 elif ln conf$$.file conf$$ 2>/dev/null; then
219 rm -f conf$$ conf$$.exe conf$$.file
221 if mkdir -p . 2>/dev/null; then
227 as_executable_p="test -f"
229 # Sed expression to map a string onto a valid CPP name.
230 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
232 # Sed expression to map a string onto a valid variable name.
233 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
237 # We need space, tab and new line, in precisely that order.
247 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
248 # so uname gets run too.
249 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
256 ac_default_prefix=/usr/local
257 ac_config_libobj_dir=.
262 SHELL=${CONFIG_SHELL-/bin/sh}
264 # Maximum number of lines to put in a shell here document.
265 # This variable seems obsolete. It should probably be removed, and
266 # only ac_max_sed_lines should be used.
267 : ${ac_max_here_lines=38}
269 # Identity of this package.
270 PACKAGE_NAME='GNU C Library'
271 PACKAGE_TARNAME='c-library'
272 PACKAGE_VERSION='(see version.h)'
273 PACKAGE_STRING='GNU C Library (see version.h)'
274 PACKAGE_BUGREPORT='glibc'
276 ac_unique_file="include/features.h"
277 ac_subdirs_all="$ac_subdirs_all "
278 # Factoring default headers for most tests.
279 ac_includes_default="\
282 # include <sys/types.h>
285 # include <sys/stat.h>
296 # if !STDC_HEADERS && HAVE_MEMORY_H
302 # include <strings.h>
305 # include <inttypes.h>
315 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS with_fp with_cvs enable_check_abi oldest_abi bindnow force_install all_warnings build build_cpu build_vendor build_os host host_cpu host_vendor host_os subdirs add_ons base_machine sysnames INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LN_S CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC OBJEXT BUILD_CC cross_compiling CPP CXX CXXFLAGS ac_ct_CXX AR OBJDUMP RANLIB ac_ct_RANLIB MIG AS LD PWD_P MAKE MSGFMT MAKEINFO SED AUTOCONF SYSINCLUDES libc_cv_gcc_static_libgcc BASH libc_cv_have_bash2 KSH libc_cv_have_ksh AWK PERL INSTALL_INFO BISON VERSIONING libc_cv_asm_protected_directive libc_cv_initfinit_array libc_cv_cc_with_libunwind libc_cv_z_nodelete libc_cv_z_nodlopen libc_cv_z_initfirst libc_cv_z_relro libc_cv_Bgroup libc_cv_libgcc_s_suffix libc_cv_as_needed ASFLAGS_config libc_cv_z_combreloc libc_cv_z_execstack libc_cv_fpie fno_unit_at_a_time 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 libc_cv_forced_unwind 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
776 ac_env_CXX_set=${CXX+set}
777 ac_env_CXX_value=$CXX
778 ac_cv_env_CXX_set=${CXX+set}
779 ac_cv_env_CXX_value=$CXX
780 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
781 ac_env_CXXFLAGS_value=$CXXFLAGS
782 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
783 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
786 # Report the --help message.
788 if test "$ac_init_help" = "long"; then
789 # Omit some internal or obsolete options to make the list less imposing.
790 # This message is too long to be a string in the A/UX 3.1 sh.
792 \`configure' configures GNU C Library (see version.h) to adapt to many kinds of systems.
794 Usage: $0 [OPTION]... [VAR=VALUE]...
796 To assign environment variables (e.g., CC, CFLAGS...), specify them as
797 VAR=VALUE. See below for descriptions of some of the useful variables.
799 Defaults for the options are specified in brackets.
802 -h, --help display this help and exit
803 --help=short display options specific to this package
804 --help=recursive display the short help of all the included packages
805 -V, --version display version information and exit
806 -q, --quiet, --silent do not print \`checking...' messages
807 --cache-file=FILE cache test results in FILE [disabled]
808 -C, --config-cache alias for \`--cache-file=config.cache'
809 -n, --no-create do not create output files
810 --srcdir=DIR find the sources in DIR [configure dir or \`..']
815 Installation directories:
816 --prefix=PREFIX install architecture-independent files in PREFIX
818 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
821 By default, \`make install' will install all the files in
822 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
823 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
824 for instance \`--prefix=\$HOME'.
826 For better control, use the options below.
828 Fine tuning of the installation directories:
829 --bindir=DIR user executables [EPREFIX/bin]
830 --sbindir=DIR system admin executables [EPREFIX/sbin]
831 --libexecdir=DIR program executables [EPREFIX/libexec]
832 --datadir=DIR read-only architecture-independent data [PREFIX/share]
833 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
834 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
835 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
836 --libdir=DIR object code libraries [EPREFIX/lib]
837 --includedir=DIR C header files [PREFIX/include]
838 --oldincludedir=DIR C header files for non-gcc [/usr/include]
839 --infodir=DIR info documentation [PREFIX/info]
840 --mandir=DIR man documentation [PREFIX/man]
846 --build=BUILD configure for building on BUILD [guessed]
847 --host=HOST cross-compile to build programs to run on HOST [BUILD]
851 if test -n "$ac_init_help"; then
852 case $ac_init_help in
853 short | recursive ) echo "Configuration of GNU C Library (see version.h):";;
858 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
859 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
860 --disable-sanity-checks really do not use threads (should not be used except
861 in special situations) [default=yes]
862 --enable-check-abi do "make check-abi" in "make check" (no/warn/yes)
864 --enable-shared build shared library [default=yes if GNU ld &
866 --enable-profile build profiled library [default=yes]
867 --enable-omitfp build undebuggable optimized library
869 --enable-bounded build with runtime bounds checking
871 --disable-versioning do not include versioning information in the library
872 objects [default=yes if supported]
873 --enable-oldest-abi=ABI configure the oldest ABI supported [e.g. 2.2]
874 [default=glibc default]
875 --enable-add-ons[=DIRS...]
876 configure and build add-ons in DIR1,DIR2,... search
877 for add-ons if no parameter given
878 --disable-hidden-plt do not hide internal function calls to avoid PLT
879 --enable-bind-now disable lazy relocations in DSOs
880 --enable-static-nss build static NSS modules [default=no]
881 --disable-force-install don't force installation of files from this package,
882 even if they are older than the installed files
883 --enable-kernel=VERSION compile for compatibility with kernel not older than
885 --enable-all-warnings enable all useful warnings gcc can issue
888 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
889 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
890 --with-gmp=DIRECTORY find GMP source code in DIRECTORY (not needed)
891 --with-gd=DIR find libgd include dir and library with prefix DIR
892 --with-gd-include=DIR find libgd include files in DIR
893 --with-gd-lib=DIR find libgd library files in DIR
894 --with-fp if using floating-point hardware [default=yes]
895 --with-binutils=PATH specify location of binutils (as and ld)
896 --with-elf if using the ELF object format
897 --with-xcoff if using the XCOFF object format
898 --without-cvs if CVS should not be used
899 --with-headers=PATH location of system headers to use (for example
900 /usr/src/linux/include) [default=compiler
902 --with-tls enable support for TLS
903 --without-__thread do not use TLS features even when supporting them
905 Some influential environment variables:
906 CC C compiler command
907 CFLAGS C compiler flags
908 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
909 nonstandard directory <lib dir>
910 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
911 headers in a nonstandard directory <include dir>
913 CXX C++ compiler command
914 CXXFLAGS C++ compiler flags
916 Use these variables to override the choices made by `configure' or to help
917 it to find libraries and programs with nonstandard names/locations.
919 Report bugs to <glibc>.
923 if test "$ac_init_help" = "recursive"; then
924 # If there are subdirs, report their specific --help.
926 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
927 test -d $ac_dir || continue
930 if test "$ac_dir" != .; then
931 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
932 # A "../" for each directory in $ac_dir_suffix.
933 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
935 ac_dir_suffix= ac_top_builddir=
939 .) # No --srcdir option. We are building in place.
941 if test -z "$ac_top_builddir"; then
944 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
946 [\\/]* | ?:[\\/]* ) # Absolute path.
947 ac_srcdir=$srcdir$ac_dir_suffix;
948 ac_top_srcdir=$srcdir ;;
950 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
951 ac_top_srcdir=$ac_top_builddir$srcdir ;;
953 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
955 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
956 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
957 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
958 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
961 # Check for guested configure; otherwise get Cygnus style configure.
962 if test -f $ac_srcdir/configure.gnu; then
964 $SHELL $ac_srcdir/configure.gnu --help=recursive
965 elif test -f $ac_srcdir/configure; then
967 $SHELL $ac_srcdir/configure --help=recursive
968 elif test -f $ac_srcdir/configure.ac ||
969 test -f $ac_srcdir/configure.in; then
973 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
979 test -n "$ac_init_help" && exit 0
980 if $ac_init_version; then
982 GNU C Library configure (see version.h)
983 generated by GNU Autoconf 2.57
985 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
986 Free Software Foundation, Inc.
987 This configure script is free software; the Free Software Foundation
988 gives unlimited permission to copy, distribute and modify it.
994 This file contains any messages produced by compilers while
995 running configure, to aid debugging if configure makes a mistake.
997 It was created by GNU C Library $as_me (see version.h), which was
998 generated by GNU Autoconf 2.57. Invocation command line was
1009 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1010 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1011 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1012 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1013 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1015 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1016 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1018 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1019 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1020 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1021 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1022 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1023 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1024 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1032 test -z "$as_dir" && as_dir=.
1033 echo "PATH: $as_dir"
1048 # Keep a trace of the command line.
1049 # Strip out --no-create and --no-recursion so they do not pile up.
1050 # Strip out --silent because we don't want to record it for future runs.
1051 # Also quote any args containing shell meta-characters.
1052 # Make two passes to allow for proper duplicate-argument suppression.
1057 ac_must_keep_next=false
1063 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1064 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1065 | -silent | --silent | --silen | --sile | --sil)
1067 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1068 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1071 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1073 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1074 if test $ac_must_keep_next = true; then
1075 ac_must_keep_next=false # Got value, back to normal.
1078 *=* | --config-cache | -C | -disable-* | --disable-* \
1079 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1080 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1081 | -with-* | --with-* | -without-* | --without-* | --x)
1082 case "$ac_configure_args0 " in
1083 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1086 -* ) ac_must_keep_next=true ;;
1089 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1090 # Get rid of the leading space.
1096 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1097 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1099 # When interrupted or exit'd, cleanup temporary files, and complete
1100 # config.log. We remove comments because anyway the quotes in there
1101 # would cause problems or look ugly.
1102 # WARNING: Be sure not to use single quotes in there, as some shells,
1103 # such as our DU 5.0 friend, will then `close' the trap.
1104 trap 'exit_status=$?
1105 # Save into config.log some information that might help in debugging.
1110 ## ---------------- ##
1111 ## Cache variables. ##
1112 ## ---------------- ##
1115 # The following way of writing the cache mishandles newlines in values,
1118 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1121 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1122 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1126 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1133 ## ----------------- ##
1134 ## Output variables. ##
1135 ## ----------------- ##
1138 for ac_var in $ac_subst_vars
1140 eval ac_val=$`echo $ac_var`
1141 echo "$ac_var='"'"'$ac_val'"'"'"
1145 if test -n "$ac_subst_files"; then
1152 for ac_var in $ac_subst_files
1154 eval ac_val=$`echo $ac_var`
1155 echo "$ac_var='"'"'$ac_val'"'"'"
1160 if test -s confdefs.h; then
1167 sed "/^$/d" confdefs.h | sort
1170 test "$ac_signal" != 0 &&
1171 echo "$as_me: caught signal $ac_signal"
1172 echo "$as_me: exit $exit_status"
1174 rm -f core core.* *.core &&
1175 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1178 for ac_signal in 1 2 13 15; do
1179 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1183 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1184 rm -rf conftest* confdefs.h
1185 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1188 # Predefined preprocessor variables.
1190 cat >>confdefs.h <<_ACEOF
1191 #define PACKAGE_NAME "$PACKAGE_NAME"
1195 cat >>confdefs.h <<_ACEOF
1196 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1200 cat >>confdefs.h <<_ACEOF
1201 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1205 cat >>confdefs.h <<_ACEOF
1206 #define PACKAGE_STRING "$PACKAGE_STRING"
1210 cat >>confdefs.h <<_ACEOF
1211 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1215 # Let the site file select an alternate cache file if it wants to.
1216 # Prefer explicitly selected file to automatically selected ones.
1217 if test -z "$CONFIG_SITE"; then
1218 if test "x$prefix" != xNONE; then
1219 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1221 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1224 for ac_site_file in $CONFIG_SITE; do
1225 if test -r "$ac_site_file"; then
1226 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1227 echo "$as_me: loading site script $ac_site_file" >&6;}
1228 sed 's/^/| /' "$ac_site_file" >&5
1233 if test -r "$cache_file"; then
1234 # Some versions of bash will fail to source /dev/null (special
1235 # files actually), so we avoid doing that.
1236 if test -f "$cache_file"; then
1237 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1238 echo "$as_me: loading cache $cache_file" >&6;}
1240 [\\/]* | ?:[\\/]* ) . $cache_file;;
1241 *) . ./$cache_file;;
1245 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1246 echo "$as_me: creating cache $cache_file" >&6;}
1250 # Check that the precious variables saved in the cache have kept the same
1252 ac_cache_corrupted=false
1253 for ac_var in `(set) 2>&1 |
1254 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1255 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1256 eval ac_new_set=\$ac_env_${ac_var}_set
1257 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1258 eval ac_new_val="\$ac_env_${ac_var}_value"
1259 case $ac_old_set,$ac_new_set in
1261 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1262 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1263 ac_cache_corrupted=: ;;
1265 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1266 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1267 ac_cache_corrupted=: ;;
1270 if test "x$ac_old_val" != "x$ac_new_val"; then
1271 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1272 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1273 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1274 echo "$as_me: former value: $ac_old_val" >&2;}
1275 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1276 echo "$as_me: current value: $ac_new_val" >&2;}
1277 ac_cache_corrupted=:
1280 # Pass precious variables to config.status.
1281 if test "$ac_new_set" = set; then
1283 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1284 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1285 *) ac_arg=$ac_var=$ac_new_val ;;
1287 case " $ac_configure_args " in
1288 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1289 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1293 if $ac_cache_corrupted; then
1294 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1295 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1296 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1297 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1298 { (exit 1); exit 1; }; }
1302 ac_cpp='$CPP $CPPFLAGS'
1303 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1304 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1305 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1334 ac_config_headers="$ac_config_headers config.h"
1337 for ac_dir in scripts $srcdir/scripts; do
1338 if test -f $ac_dir/install-sh; then
1340 ac_install_sh="$ac_aux_dir/install-sh -c"
1342 elif test -f $ac_dir/install.sh; then
1344 ac_install_sh="$ac_aux_dir/install.sh -c"
1346 elif test -f $ac_dir/shtool; then
1348 ac_install_sh="$ac_aux_dir/shtool install -c"
1352 if test -z "$ac_aux_dir"; then
1353 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in scripts $srcdir/scripts" >&5
1354 echo "$as_me: error: cannot find install-sh or install.sh in scripts $srcdir/scripts" >&2;}
1355 { (exit 1); exit 1; }; }
1357 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1358 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1359 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1362 if test "`cd $srcdir; /bin/pwd`" = "`/bin/pwd`"; then
1363 { { echo "$as_me:$LINENO: error: you must configure in a separate build directory" >&5
1364 echo "$as_me: error: you must configure in a separate build directory" >&2;}
1365 { (exit 1); exit 1; }; }
1368 # This will get text that should go into config.make.
1371 # Check for a --with-gmp argument and set gmp-srcdir in config.make.
1373 # Check whether --with-gmp or --without-gmp was given.
1374 if test "${with_gmp+set}" = set; then
1378 yes) { { echo "$as_me:$LINENO: error: --with-gmp requires an argument; use --with-gmp=DIRECTORY" >&5
1379 echo "$as_me: error: --with-gmp requires an argument; use --with-gmp=DIRECTORY" >&2;}
1380 { (exit 1); exit 1; }; } ;;
1382 *) config_vars="$config_vars
1383 gmp-srcdir = $withval" ;;
1387 # Check for a --with-gd argument and set libgd-LDFLAGS in config.make.
1389 # Check whether --with-gd or --without-gd was given.
1390 if test "${with_gd+set}" = set; then
1394 *) libgd_include="-I$withval/include"
1395 libgd_ldflags="-L$withval/lib" ;;
1400 # Check whether --with-gd-include or --without-gd-include was given.
1401 if test "${with_gd_include+set}" = set; then
1402 withval="$with_gd_include"
1403 case "$with_gd_include" in
1405 *) libgd_include="-I$withval" ;;
1410 # Check whether --with-gd-lib or --without-gd-lib was given.
1411 if test "${with_gd_lib+set}" = set; then
1412 withval="$with_gd_lib"
1413 case "$with_gd_lib" in
1415 *) libgd_ldflags="-L$withval" ;;
1420 if test -n "$libgd_include"; then
1421 config_vars="$config_vars
1422 CFLAGS-memusagestat.c = $libgd_include"
1424 if test -n "$libgd_ldflags"; then
1425 config_vars="$config_vars
1426 libgd-LDFLAGS = $libgd_ldflags"
1430 # Check whether --with-fp or --without-fp was given.
1431 if test "${with_fp+set}" = set; then
1439 # Check whether --with-binutils or --without-binutils was given.
1440 if test "${with_binutils+set}" = set; then
1441 withval="$with_binutils"
1442 path_binutils=$withval
1447 # Check whether --with-elf or --without-elf was given.
1448 if test "${with_elf+set}" = set; then
1455 # Check whether --with-xcoff or --without-xcoff was given.
1456 if test "${with_xcoff+set}" = set; then
1457 withval="$with_xcoff"
1463 # Check whether --with-cvs or --without-cvs was given.
1464 if test "${with_cvs+set}" = set; then
1470 if test "$with_cvs" = yes; then
1471 if test -d $srcdir/CVS && grep :pserver: $srcdir/CVS/Root > /dev/null
1479 # Check whether --with-headers or --without-headers was given.
1480 if test "${with_headers+set}" = set; then
1481 withval="$with_headers"
1487 # Check whether --enable-sanity-checks or --disable-sanity-checks was given.
1488 if test "${enable_sanity_checks+set}" = set; then
1489 enableval="$enable_sanity_checks"
1490 enable_sanity=$enableval
1496 # Check whether --enable-check-abi or --disable-check-abi was given.
1497 if test "${enable_check_abi+set}" = set; then
1498 enableval="$enable_check_abi"
1499 enable_check_abi=$enableval
1505 # Check whether --enable-shared or --disable-shared was given.
1506 if test "${enable_shared+set}" = set; then
1507 enableval="$enable_shared"
1512 # Check whether --enable-profile or --disable-profile was given.
1513 if test "${enable_profile+set}" = set; then
1514 enableval="$enable_profile"
1519 # Check whether --enable-omitfp or --disable-omitfp was given.
1520 if test "${enable_omitfp+set}" = set; then
1521 enableval="$enable_omitfp"
1526 # Check whether --enable-bounded or --disable-bounded was given.
1527 if test "${enable_bounded+set}" = set; then
1528 enableval="$enable_bounded"
1533 # Check whether --enable-versioning or --disable-versioning was given.
1534 if test "${enable_versioning+set}" = set; then
1535 enableval="$enable_versioning"
1536 enable_versioning=$enableval
1538 enable_versioning=yes
1541 # Check whether --enable-oldest-abi or --disable-oldest-abi was given.
1542 if test "${enable_oldest_abi+set}" = set; then
1543 enableval="$enable_oldest_abi"
1544 oldest_abi=$enableval
1548 if test "$oldest_abi" = yes || test "$oldest_abi" = no; then
1551 cat >>confdefs.h <<_ACEOF
1552 #define GLIBC_OLDEST_ABI "$oldest_abi"
1558 # Check whether --enable-add-ons or --disable-add-ons was given.
1559 if test "${enable_add_ons+set}" = set; then
1560 enableval="$enable_add_ons"
1561 case "$enableval" in
1562 yes) add_ons=`cd $srcdir && echo */configure | sed -e 's!/configure!!g'`
1563 test "$add_ons" = "*" && add_ons= ;;
1564 *) add_ons=`echo "$enableval" | sed 's/,/ /g'`;;
1571 # Check whether --with-tls or --without-tls was given.
1572 if test "${with_tls+set}" = set; then
1580 # Check whether --with-__thread or --without-__thread was given.
1581 if test "${with___thread+set}" = set; then
1582 withval="$with___thread"
1583 use__thread=$withval
1588 # Check whether --enable-hidden-plt or --disable-hidden-plt was given.
1589 if test "${enable_hidden_plt+set}" = set; then
1590 enableval="$enable_hidden_plt"
1595 if test "x$hidden" = xno; then
1596 cat >>confdefs.h <<\_ACEOF
1602 # Check whether --enable-bind-now or --disable-bind-now was given.
1603 if test "${enable_bind_now+set}" = set; then
1604 enableval="$enable_bind_now"
1611 # Check whether --enable-static-nss or --disable-static-nss was given.
1612 if test "${enable_static_nss+set}" = set; then
1613 enableval="$enable_static_nss"
1614 static_nss=$enableval
1618 if test x"$static_nss" = xyes || test x"$shared" = xno; then
1620 cat >>confdefs.h <<\_ACEOF
1621 #define DO_STATIC_NSS 1
1626 # Check whether --enable-force-install or --disable-force-install was given.
1627 if test "${enable_force_install+set}" = set; then
1628 enableval="$enable_force_install"
1629 force_install=$enableval
1635 # Check whether --enable-kernel or --disable-kernel was given.
1636 if test "${enable_kernel+set}" = set; then
1637 enableval="$enable_kernel"
1638 minimum_kernel=$enableval
1640 if test "$minimum_kernel" = yes || test "$minimum_kernel" = no; then
1641 # Better nothing than this.
1644 if test "$minimum_kernel" = current; then
1645 minimum_kernel=`uname -r 2>/dev/null` || minimum_kernel=
1649 # Check whether --enable-all-warnings or --disable-all-warnings was given.
1650 if test "${enable_all_warnings+set}" = set; then
1651 enableval="$enable_all_warnings"
1652 all_warnings=$enableval
1656 # Make sure we can run config.sub.
1657 $ac_config_sub sun4 >/dev/null 2>&1 ||
1658 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1659 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1660 { (exit 1); exit 1; }; }
1662 echo "$as_me:$LINENO: checking build system type" >&5
1663 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1664 if test "${ac_cv_build+set}" = set; then
1665 echo $ECHO_N "(cached) $ECHO_C" >&6
1667 ac_cv_build_alias=$build_alias
1668 test -z "$ac_cv_build_alias" &&
1669 ac_cv_build_alias=`$ac_config_guess`
1670 test -z "$ac_cv_build_alias" &&
1671 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1672 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1673 { (exit 1); exit 1; }; }
1674 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1675 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1676 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1677 { (exit 1); exit 1; }; }
1680 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1681 echo "${ECHO_T}$ac_cv_build" >&6
1683 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1684 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1685 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1688 echo "$as_me:$LINENO: checking host system type" >&5
1689 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1690 if test "${ac_cv_host+set}" = set; then
1691 echo $ECHO_N "(cached) $ECHO_C" >&6
1693 ac_cv_host_alias=$host_alias
1694 test -z "$ac_cv_host_alias" &&
1695 ac_cv_host_alias=$ac_cv_build_alias
1696 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1697 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1698 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1699 { (exit 1); exit 1; }; }
1702 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1703 echo "${ECHO_T}$ac_cv_host" >&6
1705 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1706 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1707 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1711 # The way shlib-versions is used to generate soversions.mk uses a
1712 # fairly simplistic model for name recognition that can't distinguish
1713 # i486-pc-linux-gnu fully from i486-pc-gnu. So we mutate a $host_os
1714 # of `gnu*' here to be `gnu-gnu*' just so that shlib-versions can
1715 # tell. This doesn't get used much beyond that, so it's fairly safe.
1720 host_os=`echo $host_os | sed -e 's/gnu/gnu-gnu/'`
1724 # We keep the original values in `$config_*' and never modify them, so we
1725 # can write them unchanged into config.make. Everything else uses
1726 # $machine, $vendor, and $os, and changes them whenever convenient.
1727 config_machine=$host_cpu config_vendor=$host_vendor config_os=$host_os
1729 # Don't allow vendor == "unknown"
1730 test "$config_vendor" = unknown && config_vendor=
1731 config_os="`echo $config_os | sed 's/^unknown-//'`"
1733 # Some configurations imply other options.
1735 gnu* | linux* | bsd4.4* | netbsd* | freebsd*)
1736 # These systems always use GNU tools.
1737 gnu_ld=yes gnu_as=yes ;;
1740 # i586-linuxaout is mangled into i586-pc-linux-gnuaout
1741 linux*ecoff* | linux*aout* | gnu*aout* | gnu*ecoff*)
1743 gnu* | linux* | freebsd* | netbsd* | sysv4* | solaris2* | irix6*)
1744 # These systems (almost) always use the ELF format.
1748 # These systems are always xcoff
1754 # The configure fragment of an add-on port can modify these to supplement
1755 # or override the table in the case statement below. No fragment should
1756 # ever change the config_* variables, however.
1757 machine=$config_machine
1758 vendor=$config_vendor
1761 # config.guess on some IBM machines says `rs6000' instead of `powerpc'.
1763 if test "$machine" = rs6000; then
1767 # Braindead PowerPC box with absolutely no FPU.
1768 case "$machine-$host_os" in
1775 # An add-on can set this when it the tuple to disable the sanity check below.
1785 if test x"$add_ons" != x; then
1786 for f in $add_ons; do
1787 # Some sanity checks
1790 { { echo "$as_me:$LINENO: error:
1791 *** It seems that you're using an old \`crypt' add-on. crypt is now
1792 *** part of glibc and using the old add-on will not work with this
1793 *** release. Start again with fresh sources and without the old
1794 *** \`crypt' add-on." >&5
1795 echo "$as_me: error:
1796 *** It seems that you're using an old \`crypt' add-on. crypt is now
1797 *** part of glibc and using the old add-on will not work with this
1798 *** release. Start again with fresh sources and without the old
1799 *** \`crypt' add-on." >&2;}
1800 { (exit 1); exit 1; }; }
1803 { { echo "$as_me:$LINENO: error:
1804 *** It seems that you're using an old \`localedata' add-on. localedata
1805 *** is now part of glibc and using the old add-on will not work with
1806 *** this release. Start again with fresh sources and without the old
1807 *** \`localedata' add-on." >&5
1808 echo "$as_me: error:
1809 *** It seems that you're using an old \`localedata' add-on. localedata
1810 *** is now part of glibc and using the old add-on will not work with
1811 *** this release. Start again with fresh sources and without the old
1812 *** \`localedata' add-on." >&2;}
1813 { (exit 1); exit 1; }; }
1817 # Test whether such a subdir really exists.
1818 if test -d $srcdir/$f; then
1819 add_ons_pfx="$add_ons_pfx $f/"
1820 add_ons_sfx="$add_ons_sfx /$f"
1822 { { echo "$as_me:$LINENO: error: add-on directory \"$f\" does not exist" >&5
1823 echo "$as_me: error: add-on directory \"$f\" does not exist" >&2;}
1824 { (exit 1); exit 1; }; }
1828 for f in $add_ons; do
1829 frag=$srcdir/$f/configure
1830 if test -r $frag; then
1831 echo "$as_me:$LINENO: result: running configure fragment for add-on $f" >&5
1832 echo "${ECHO_T}running configure fragment for add-on $f" >&6
1835 { echo "$as_me:$LINENO: WARNING: add-on fragment $frag missing" >&5
1836 echo "$as_me: WARNING: add-on fragment $frag missing" >&2;}
1844 ### I put this here to prevent those annoying emails from people who cannot
1845 ### read and try to compile glibc on unsupported platforms. --drepper
1847 ### By using the undocumented --enable-hacker-mode option for configure
1848 ### one can skip this test to make the configuration not fail for unsupported
1851 if test -z "$enable_hacker_mode" && test x"$libc_config_ok" != xyes; then
1852 case "$machine-$host_os" in
1853 *-linux* | *-gnu* | arm*-none* | powerpc-aix4.3.*)
1856 echo "*** The GNU C library is currently not available for this platform."
1857 echo "*** So far nobody cared to port it and if there is no volunteer it"
1858 echo "*** might never happen. So, if you have interest to see glibc on"
1859 echo "*** this platform visit"
1860 echo "*** http://www.gnu.org/software/libc/porting.html"
1861 echo "*** and join the group of porters"
1867 # Expand the configuration machine name into a subdirectory by architecture
1868 # type and particular chip. If an add-on configure fragment already set
1869 # base_machine, we don't change it.
1870 test -n "$base_machine" || case "$machine" in
1871 a29k | am29000) base_machine=a29k machine=a29k ;;
1872 alpha*) base_machine=alpha machine=alpha/$machine ;;
1873 arm*) base_machine=arm machine=arm/arm32/$machine ;;
1874 c3[012]) base_machine=cx0 machine=cx0/c30 ;;
1875 c4[04]) base_machine=cx0 machine=cx0/c40 ;;
1876 hppa*64*) base_machine=hppa machine=hppa/hppa64 ;;
1877 hppa*) base_machine=hppa machine=hppa/hppa1.1 ;;
1878 i[3456]86) base_machine=i386 machine=i386/$machine ;;
1879 ia64) base_machine=ia64 machine=ia64 ;;
1880 m680?0) base_machine=m68k machine=m68k/$machine ;;
1881 m68k) base_machine=m68k machine=m68k/m68020 ;;
1882 m88???) base_machine=m88k machine=m88k/$machine ;;
1883 m88k) base_machine=m88k machine=m88k/m88100 ;;
1884 mips64*) base_machine=mips64
1885 case "$CC $CFLAGS $CPPFLAGS " in
1886 *" -mabi=n32 "*) mips_cc_abi=n32 ;;
1887 *" -mabi=64 "*|*" -mabi=n64 "*) mips_cc_abi=64 ;;
1888 *" -mabi=32 "*|*" -mabi=o32 "*) mips_cc_abi=32 ;;
1889 *) mips_cc_abi=default ;;
1892 *abin32*) mips_config_abi=n32 ;;
1893 *abi64*|*abin64*) mips_config_abi=64 ;;
1894 *abi32*|*abio32*) mips_config_abi=32 ;;
1895 *) mips_config_abi=$mips_cc_abi ;;
1897 case $mips_config_abi in
1898 default) machine=mips/mips64/n32 mips_config_abi=n32 ;;
1899 n32) machine=mips/mips64/n32 ;;
1900 64) machine=mips/mips64/n64 ;;
1901 32) machine=mips/mips32/kern64 ;;
1903 machine=$machine/$config_machine
1904 if test $mips_config_abi != $mips_cc_abi; then
1905 # This won't make it to config.make, but we want to
1906 # set this in case configure tests depend on it.
1907 CPPFLAGS="$CPPFLAGS -mabi=$mips_config_abi"
1910 mips*) base_machine=mips machine=mips/mips32/$machine ;;
1911 powerpc) base_machine=powerpc machine=powerpc/powerpc32 ;;
1912 powerpc64) base_machine=powerpc machine=powerpc/powerpc64 ;;
1913 s390) base_machine=s390 machine=s390/s390-32 ;;
1914 s390x) base_machine=s390 machine=s390/s390-64 ;;
1915 sh3*) base_machine=sh machine=sh/sh3 ;;
1916 sh4*) base_machine=sh machine=sh/sh4 ;;
1918 base_machine=sparc machine=sparc/sparc32 ;;
1919 sparcv8 | supersparc | hypersparc)
1920 base_machine=sparc machine=sparc/sparc32/sparcv8 ;;
1921 sparcv8plus | sparcv8plusa | sparcv9)
1922 base_machine=sparc machine=sparc/sparc32/sparcv9 ;;
1923 sparcv8plusb | sparcv9b)
1924 base_machine=sparc machine=sparc/sparc32/sparcv9b ;;
1925 sparc64 | ultrasparc)
1926 base_machine=sparc machine=sparc/sparc64 ;;
1927 sparc64b | ultrasparc3)
1928 base_machine=sparc machine=sparc/sparc64/sparcv9b ;;
1929 thumb*) base_machine=thumb machine=arm/thumb/$machine ;;
1930 *) base_machine=$machine ;;
1934 if test "$base_machine" = "i386"; then
1935 cat >>confdefs.h <<\_ACEOF
1936 #define USE_REGPARMS 1
1941 # Compute the list of sysdep directories for this configuration.
1942 # This can take a while to compute.
1943 sysdep_dir=$srcdir/sysdeps
1944 echo "$as_me:$LINENO: checking sysdep dirs" >&5
1945 echo $ECHO_N "checking sysdep dirs... $ECHO_C" >&6
1946 # Make sco3.2v4 become sco3.2.4 and sunos4.1.1_U1 become sunos4.1.1.U1.
1947 os="`echo $os | sed 's/\([0-9A-Z]\)[v_]\([0-9A-Z]\)/\1.\2/g'`"
1951 base_os=mach/hurd ;;
1952 netbsd* | 386bsd* | freebsd* | bsdi*)
1953 base_os=unix/bsd/bsd4.4 ;;
1954 osf* | sunos* | ultrix* | newsos* | dynix* | *bsd*)
1956 sysv* | isc* | esix* | sco* | minix* | irix4* | linux*)
1957 base_os=unix/sysv ;;
1959 base_os=unix/sysv/irix6/$os ;;
1961 base_os=unix/sysv/sysv4 ;;
1963 base_os=unix/sysv/hpux/$os ;;
1965 base_os=unix/sysv/aix/aix4.3 ;;
1967 base_os=standalone ;;
1972 # For sunos4.1.1, try sunos4.1.1, then sunos4.1, then sunos4, then sunos.
1975 while o=`echo $tail | sed 's/\.[^.]*$//'`; test $o != $tail; do
1979 o=`echo $tail | sed 's/[0-9]*$//'`
1980 if test $o != $tail; then
1983 # For linux-gnu, try linux-gnu, then linux.
1984 o=`echo $tail | sed 's/-.*$//'`
1985 if test $o != $tail; then
1989 # For unix/sysv/sysv4, try unix/sysv/sysv4, then unix/sysv, then unix.
1992 while b=`echo $tail | sed 's@^\(.*\)/\([^/]*\)$@& \1@'`; test -n "$b"; do
1998 # For sparc/sparc32, try sparc/sparc32 and then sparc.
2001 while m=`echo $tail | sed 's@^\(.*\)/\([^/]*\)$@& \1@'`; test -n "$m"; do
2003 # Prepend the machine's FPU directory unless --without-fp.
2004 if test "$with_fp" = yes; then
2005 mach="$mach /$1/fpu"
2007 mach="$mach /$1/nofpu"
2014 # Find what sysdep directories exist.
2016 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2017 for d in $add_ons_pfx ''; do
2018 for b in $base ''; do
2019 for m0 in $mach ''; do
2020 for v in /$vendor ''; do
2021 test "$v" = / && continue
2022 for o in /$ostry ''; do
2023 test "$o" = / && continue
2024 for m in $mach ''; do
2025 for a in $add_ons_sfx ''; do
2026 if test "$m0$b$v$o$m"; then
2027 try="${d}sysdeps$m0$b$v$o$m$a"
2028 test -n "$enable_debug_configure" &&
2029 echo "$0 DEBUG: try $try" >&2
2030 if test -d $srcdir/$try; then
2031 sysnames="$sysnames $try"
2032 { test -n "$o" || test -n "$b"; } && os_used=t
2033 { test -n "$m" || test -n "$m0"; } && machine_used=t
2045 if test -z "$os_used" && test "$os" != none; then
2046 { { echo "$as_me:$LINENO: error: Operating system $os is not supported." >&5
2047 echo "$as_me: error: Operating system $os is not supported." >&2;}
2048 { (exit 1); exit 1; }; }
2050 if test -z "$machine_used" && test "$machine" != none; then
2051 { { echo "$as_me:$LINENO: error: The $machine is not supported." >&5
2052 echo "$as_me: error: The $machine is not supported." >&2;}
2053 { (exit 1); exit 1; }; }
2056 # We have now validated the configuration.
2059 # If using ELF, look for an `elf' subdirectory of each machine directory.
2060 # We prepend these rather than inserting them whereever the machine appears
2061 # because things specified by the machine's ELF ABI should override
2062 # OS-specific things, and should always be the same for any OS on the
2063 # machine (otherwise what's the point of an ABI?).
2064 if test "$elf" = yes; then
2066 for d in $add_ons_pfx ''; do
2068 if test -d $srcdir/${d}sysdeps$m/elf; then
2069 elf_dirs="$elf_dirs ${d}sysdeps$m/elf"
2073 sysnames="`echo $elf_dirs | sed -e 's,//,/,g'` $sysnames"
2077 # Expand the list of system names into a full list of directories
2078 # from each element's parent name and Implies file (if present).
2081 while test $# -gt 0; do
2085 case " $names " in *" $name "*)
2086 # Already in the list.
2090 # Report each name as we discover it, so there is no long pause in output.
2091 echo $ECHO_N "$name $ECHO_C" >&6
2093 name_base=`echo $name | sed -e 's@\(.*sysdeps\)/.*@\1@'`
2097 *) xsrcdir=$srcdir/ ;;
2099 test -n "$enable_debug_configure" &&
2100 echo "DEBUG: name/Implies $xsrcdir$name/Implies" >&2
2102 if test -f $xsrcdir$name/Implies; then
2103 # Collect more names from the `Implies' file (removing comments).
2104 implied_candidate="`sed 's/#.*$//' < $xsrcdir$name/Implies`"
2106 for x in $implied_candidate; do
2108 if test -d $xsrcdir$name_base/$x; then
2109 implied="$implied $name_base/$x";
2112 for d in $add_ons_pfx ''; do
2113 try="${d}sysdeps/$x"
2116 *) try_srcdir=$srcdir/ ;;
2118 test -n "$enable_debug_configure" &&
2119 echo "DEBUG: $name implied $x try($d) {$try_srcdir}$try" >&2
2120 if test $try != $xsrcdir$name_base/$x && test -d $try_srcdir$try;
2122 implied="$implied $try"
2126 if test $found = no; then
2127 { echo "$as_me:$LINENO: WARNING: $name/Implies specifies nonexistent $x" >&5
2128 echo "$as_me: WARNING: $name/Implies specifies nonexistent $x" >&2;}
2135 # Add NAME to the list of names.
2136 names="$names $name"
2138 # Find the parent of NAME, using the empty string if it has none.
2139 parent="`echo $name | sed -n -e 's=/[^/]*$==' -e '/sysdeps$/q' -e p`"
2141 # Add the names implied by NAME, and NAME's parent (if it has one), to
2142 # the list of names to be processed (the argument list). We prepend the
2143 # implied names to the list and append the parent. We want implied
2144 # directories to come before further directories inferred from the
2145 # configuration components; this ensures that for sysv4, unix/common
2146 # (implied by unix/sysv/sysv4) comes before unix/sysv (in ostry (here $*)
2148 sysnames="`echo $implied $* $parent`"
2149 test -n "$sysnames" && set $sysnames
2152 # Add the default directories.
2153 default_sysnames=sysdeps/generic
2154 if test "$elf" = yes; then
2155 default_sysnames="sysdeps/generic/elf $default_sysnames"
2157 sysnames="$names $default_sysnames"
2159 # The other names were emitted during the scan.
2160 echo "$as_me:$LINENO: result: $default_sysnames" >&5
2161 echo "${ECHO_T}$default_sysnames" >&6
2166 # Find a good install program. We prefer a C program (faster),
2167 # so one script is as good as another. But avoid the broken or
2168 # incompatible versions:
2169 # SysV /etc/install, /usr/sbin/install
2170 # SunOS /usr/etc/install
2171 # IRIX /sbin/install
2173 # AmigaOS /C/install, which installs bootblocks on floppy discs
2174 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2175 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2176 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2177 # ./install, which can be erroneously created by make from ./install.sh.
2178 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2179 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2180 if test -z "$INSTALL"; then
2181 if test "${ac_cv_path_install+set}" = set; then
2182 echo $ECHO_N "(cached) $ECHO_C" >&6
2184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2188 test -z "$as_dir" && as_dir=.
2189 # Account for people who put trailing slashes in PATH elements.
2191 ./ | .// | /cC/* | \
2192 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2195 # OSF1 and SCO ODT 3.0 have their own names for install.
2196 # Don't use installbsd from OSF since it installs stuff as root
2198 for ac_prog in ginstall scoinst install; do
2199 for ac_exec_ext in '' $ac_executable_extensions; do
2200 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2201 if test $ac_prog = install &&
2202 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2203 # AIX install. It has an incompatible calling convention.
2205 elif test $ac_prog = install &&
2206 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2207 # program-specific install script used by HP pwplus--don't use.
2210 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2222 if test "${ac_cv_path_install+set}" = set; then
2223 INSTALL=$ac_cv_path_install
2225 # As a last resort, use the slow shell script. We don't cache a
2226 # path for INSTALL within a source directory, because that will
2227 # break other packages using the cache if that directory is
2228 # removed, or if the path is relative.
2229 INSTALL=$ac_install_sh
2232 echo "$as_me:$LINENO: result: $INSTALL" >&5
2233 echo "${ECHO_T}$INSTALL" >&6
2235 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2236 # It thinks the first close brace ends the variable substitution.
2237 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2239 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2241 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2243 if test "$INSTALL" = "${srcdir}/scripts/install-sh -c"; then
2244 # The makefiles need to use a different form to find it in $srcdir.
2245 INSTALL='\$(..)./scripts/install-sh -c'
2247 echo "$as_me:$LINENO: checking whether ln -s works" >&5
2248 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
2250 if test "$LN_S" = "ln -s"; then
2251 echo "$as_me:$LINENO: result: yes" >&5
2252 echo "${ECHO_T}yes" >&6
2254 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
2255 echo "${ECHO_T}no, using $LN_S" >&6
2260 ac_cpp='$CPP $CPPFLAGS'
2261 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2262 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2263 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2264 if test -n "$ac_tool_prefix"; then
2265 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2266 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2267 echo "$as_me:$LINENO: checking for $ac_word" >&5
2268 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2269 if test "${ac_cv_prog_CC+set}" = set; then
2270 echo $ECHO_N "(cached) $ECHO_C" >&6
2272 if test -n "$CC"; then
2273 ac_cv_prog_CC="$CC" # Let the user override the test.
2275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2279 test -z "$as_dir" && as_dir=.
2280 for ac_exec_ext in '' $ac_executable_extensions; do
2281 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2282 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2283 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2292 if test -n "$CC"; then
2293 echo "$as_me:$LINENO: result: $CC" >&5
2294 echo "${ECHO_T}$CC" >&6
2296 echo "$as_me:$LINENO: result: no" >&5
2297 echo "${ECHO_T}no" >&6
2301 if test -z "$ac_cv_prog_CC"; then
2303 # Extract the first word of "gcc", so it can be a program name with args.
2304 set dummy gcc; ac_word=$2
2305 echo "$as_me:$LINENO: checking for $ac_word" >&5
2306 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2307 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2308 echo $ECHO_N "(cached) $ECHO_C" >&6
2310 if test -n "$ac_ct_CC"; then
2311 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2317 test -z "$as_dir" && as_dir=.
2318 for ac_exec_ext in '' $ac_executable_extensions; do
2319 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2320 ac_cv_prog_ac_ct_CC="gcc"
2321 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2329 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2330 if test -n "$ac_ct_CC"; then
2331 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2332 echo "${ECHO_T}$ac_ct_CC" >&6
2334 echo "$as_me:$LINENO: result: no" >&5
2335 echo "${ECHO_T}no" >&6
2343 if test -z "$CC"; then
2344 if test -n "$ac_tool_prefix"; then
2345 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2346 set dummy ${ac_tool_prefix}cc; ac_word=$2
2347 echo "$as_me:$LINENO: checking for $ac_word" >&5
2348 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2349 if test "${ac_cv_prog_CC+set}" = set; then
2350 echo $ECHO_N "(cached) $ECHO_C" >&6
2352 if test -n "$CC"; then
2353 ac_cv_prog_CC="$CC" # Let the user override the test.
2355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2359 test -z "$as_dir" && as_dir=.
2360 for ac_exec_ext in '' $ac_executable_extensions; do
2361 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2362 ac_cv_prog_CC="${ac_tool_prefix}cc"
2363 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2372 if test -n "$CC"; then
2373 echo "$as_me:$LINENO: result: $CC" >&5
2374 echo "${ECHO_T}$CC" >&6
2376 echo "$as_me:$LINENO: result: no" >&5
2377 echo "${ECHO_T}no" >&6
2381 if test -z "$ac_cv_prog_CC"; then
2383 # Extract the first word of "cc", so it can be a program name with args.
2384 set dummy cc; ac_word=$2
2385 echo "$as_me:$LINENO: checking for $ac_word" >&5
2386 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2387 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2388 echo $ECHO_N "(cached) $ECHO_C" >&6
2390 if test -n "$ac_ct_CC"; then
2391 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2397 test -z "$as_dir" && as_dir=.
2398 for ac_exec_ext in '' $ac_executable_extensions; do
2399 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2400 ac_cv_prog_ac_ct_CC="cc"
2401 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2409 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2410 if test -n "$ac_ct_CC"; then
2411 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2412 echo "${ECHO_T}$ac_ct_CC" >&6
2414 echo "$as_me:$LINENO: result: no" >&5
2415 echo "${ECHO_T}no" >&6
2424 if test -z "$CC"; then
2425 # Extract the first word of "cc", so it can be a program name with args.
2426 set dummy cc; ac_word=$2
2427 echo "$as_me:$LINENO: checking for $ac_word" >&5
2428 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2429 if test "${ac_cv_prog_CC+set}" = set; then
2430 echo $ECHO_N "(cached) $ECHO_C" >&6
2432 if test -n "$CC"; then
2433 ac_cv_prog_CC="$CC" # Let the user override the test.
2436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2440 test -z "$as_dir" && as_dir=.
2441 for ac_exec_ext in '' $ac_executable_extensions; do
2442 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2443 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2444 ac_prog_rejected=yes
2448 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2454 if test $ac_prog_rejected = yes; then
2455 # We found a bogon in the path, so make sure we never use it.
2456 set dummy $ac_cv_prog_CC
2458 if test $# != 0; then
2459 # We chose a different compiler from the bogus one.
2460 # However, it has the same basename, so the bogon will be chosen
2461 # first if we set CC to just the basename; use the full file name.
2463 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2469 if test -n "$CC"; then
2470 echo "$as_me:$LINENO: result: $CC" >&5
2471 echo "${ECHO_T}$CC" >&6
2473 echo "$as_me:$LINENO: result: no" >&5
2474 echo "${ECHO_T}no" >&6
2478 if test -z "$CC"; then
2479 if test -n "$ac_tool_prefix"; then
2482 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2483 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2484 echo "$as_me:$LINENO: checking for $ac_word" >&5
2485 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2486 if test "${ac_cv_prog_CC+set}" = set; then
2487 echo $ECHO_N "(cached) $ECHO_C" >&6
2489 if test -n "$CC"; then
2490 ac_cv_prog_CC="$CC" # Let the user override the test.
2492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2496 test -z "$as_dir" && as_dir=.
2497 for ac_exec_ext in '' $ac_executable_extensions; do
2498 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2499 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2500 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2509 if test -n "$CC"; then
2510 echo "$as_me:$LINENO: result: $CC" >&5
2511 echo "${ECHO_T}$CC" >&6
2513 echo "$as_me:$LINENO: result: no" >&5
2514 echo "${ECHO_T}no" >&6
2517 test -n "$CC" && break
2520 if test -z "$CC"; then
2524 # Extract the first word of "$ac_prog", so it can be a program name with args.
2525 set dummy $ac_prog; ac_word=$2
2526 echo "$as_me:$LINENO: checking for $ac_word" >&5
2527 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2528 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2529 echo $ECHO_N "(cached) $ECHO_C" >&6
2531 if test -n "$ac_ct_CC"; then
2532 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2538 test -z "$as_dir" && as_dir=.
2539 for ac_exec_ext in '' $ac_executable_extensions; do
2540 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2541 ac_cv_prog_ac_ct_CC="$ac_prog"
2542 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2550 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2551 if test -n "$ac_ct_CC"; then
2552 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2553 echo "${ECHO_T}$ac_ct_CC" >&6
2555 echo "$as_me:$LINENO: result: no" >&5
2556 echo "${ECHO_T}no" >&6
2559 test -n "$ac_ct_CC" && break
2568 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2569 See \`config.log' for more details." >&5
2570 echo "$as_me: error: no acceptable C compiler found in \$PATH
2571 See \`config.log' for more details." >&2;}
2572 { (exit 1); exit 1; }; }
2574 # Provide some information about the compiler.
2575 echo "$as_me:$LINENO:" \
2576 "checking for C compiler version" >&5
2577 ac_compiler=`set X $ac_compile; echo $2`
2578 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2579 (eval $ac_compiler --version </dev/null >&5) 2>&5
2581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2582 (exit $ac_status); }
2583 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2584 (eval $ac_compiler -v </dev/null >&5) 2>&5
2586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2587 (exit $ac_status); }
2588 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2589 (eval $ac_compiler -V </dev/null >&5) 2>&5
2591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2592 (exit $ac_status); }
2595 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2596 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2597 if test "${ac_cv_objext+set}" = set; then
2598 echo $ECHO_N "(cached) $ECHO_C" >&6
2600 cat >conftest.$ac_ext <<_ACEOF
2601 #line $LINENO "configure"
2604 cat confdefs.h >>conftest.$ac_ext
2605 cat >>conftest.$ac_ext <<_ACEOF
2606 /* end confdefs.h. */
2616 rm -f conftest.o conftest.obj
2617 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2618 (eval $ac_compile) 2>&5
2620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2621 (exit $ac_status); }; then
2622 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2624 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2625 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2630 echo "$as_me: failed program was:" >&5
2631 sed 's/^/| /' conftest.$ac_ext >&5
2633 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2634 See \`config.log' for more details." >&5
2635 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2636 See \`config.log' for more details." >&2;}
2637 { (exit 1); exit 1; }; }
2640 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2642 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2643 echo "${ECHO_T}$ac_cv_objext" >&6
2644 OBJEXT=$ac_cv_objext
2646 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2647 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2648 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2649 echo $ECHO_N "(cached) $ECHO_C" >&6
2651 cat >conftest.$ac_ext <<_ACEOF
2652 #line $LINENO "configure"
2655 cat confdefs.h >>conftest.$ac_ext
2656 cat >>conftest.$ac_ext <<_ACEOF
2657 /* end confdefs.h. */
2670 rm -f conftest.$ac_objext
2671 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2672 (eval $ac_compile) 2>&5
2674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2675 (exit $ac_status); } &&
2676 { ac_try='test -s conftest.$ac_objext'
2677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2681 (exit $ac_status); }; }; then
2684 echo "$as_me: failed program was:" >&5
2685 sed 's/^/| /' conftest.$ac_ext >&5
2689 rm -f conftest.$ac_objext conftest.$ac_ext
2690 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2693 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2694 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2695 GCC=`test $ac_compiler_gnu = yes && echo yes`
2696 ac_test_CFLAGS=${CFLAGS+set}
2697 ac_save_CFLAGS=$CFLAGS
2699 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2700 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2701 if test "${ac_cv_prog_cc_g+set}" = set; then
2702 echo $ECHO_N "(cached) $ECHO_C" >&6
2704 cat >conftest.$ac_ext <<_ACEOF
2705 #line $LINENO "configure"
2708 cat confdefs.h >>conftest.$ac_ext
2709 cat >>conftest.$ac_ext <<_ACEOF
2710 /* end confdefs.h. */
2720 rm -f conftest.$ac_objext
2721 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2722 (eval $ac_compile) 2>&5
2724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2725 (exit $ac_status); } &&
2726 { ac_try='test -s conftest.$ac_objext'
2727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2731 (exit $ac_status); }; }; then
2734 echo "$as_me: failed program was:" >&5
2735 sed 's/^/| /' conftest.$ac_ext >&5
2739 rm -f conftest.$ac_objext conftest.$ac_ext
2741 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2742 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2743 if test "$ac_test_CFLAGS" = set; then
2744 CFLAGS=$ac_save_CFLAGS
2745 elif test $ac_cv_prog_cc_g = yes; then
2746 if test "$GCC" = yes; then
2752 if test "$GCC" = yes; then
2758 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2759 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2760 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2761 echo $ECHO_N "(cached) $ECHO_C" >&6
2763 ac_cv_prog_cc_stdc=no
2765 cat >conftest.$ac_ext <<_ACEOF
2766 #line $LINENO "configure"
2769 cat confdefs.h >>conftest.$ac_ext
2770 cat >>conftest.$ac_ext <<_ACEOF
2771 /* end confdefs.h. */
2774 #include <sys/types.h>
2775 #include <sys/stat.h>
2776 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2777 struct buf { int x; };
2778 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2779 static char *e (p, i)
2785 static char *f (char * (*g) (char **, int), char **p, ...)
2790 s = g (p, va_arg (v,int));
2794 int test (int i, double x);
2795 struct s1 {int (*f) (int a);};
2796 struct s2 {int (*f) (double a);};
2797 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2803 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2808 # Don't try gcc -ansi; that turns off useful extensions and
2809 # breaks some systems' header files.
2810 # AIX -qlanglvl=ansi
2811 # Ultrix and OSF/1 -std1
2812 # HP-UX 10.20 and later -Ae
2813 # HP-UX older versions -Aa -D_HPUX_SOURCE
2814 # SVR4 -Xc -D__EXTENSIONS__
2815 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2817 CC="$ac_save_CC $ac_arg"
2818 rm -f conftest.$ac_objext
2819 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2820 (eval $ac_compile) 2>&5
2822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2823 (exit $ac_status); } &&
2824 { ac_try='test -s conftest.$ac_objext'
2825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2829 (exit $ac_status); }; }; then
2830 ac_cv_prog_cc_stdc=$ac_arg
2833 echo "$as_me: failed program was:" >&5
2834 sed 's/^/| /' conftest.$ac_ext >&5
2837 rm -f conftest.$ac_objext
2839 rm -f conftest.$ac_ext conftest.$ac_objext
2844 case "x$ac_cv_prog_cc_stdc" in
2846 echo "$as_me:$LINENO: result: none needed" >&5
2847 echo "${ECHO_T}none needed" >&6 ;;
2849 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2850 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2851 CC="$CC $ac_cv_prog_cc_stdc" ;;
2854 # Some people use a C++ compiler to compile C. Since we use `exit',
2855 # in C++ we need to declare it. In case someone uses the same compiler
2856 # for both compiling C and C++ we need to have the C++ compiler decide
2857 # the declaration of exit, since it's the most demanding environment.
2858 cat >conftest.$ac_ext <<_ACEOF
2863 rm -f conftest.$ac_objext
2864 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2865 (eval $ac_compile) 2>&5
2867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2868 (exit $ac_status); } &&
2869 { ac_try='test -s conftest.$ac_objext'
2870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2874 (exit $ac_status); }; }; then
2875 for ac_declaration in \
2877 '#include <stdlib.h>' \
2878 'extern "C" void std::exit (int) throw (); using std::exit;' \
2879 'extern "C" void std::exit (int); using std::exit;' \
2880 'extern "C" void exit (int) throw ();' \
2881 'extern "C" void exit (int);' \
2884 cat >conftest.$ac_ext <<_ACEOF
2885 #line $LINENO "configure"
2888 cat confdefs.h >>conftest.$ac_ext
2889 cat >>conftest.$ac_ext <<_ACEOF
2890 /* end confdefs.h. */
2901 rm -f conftest.$ac_objext
2902 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2903 (eval $ac_compile) 2>&5
2905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2906 (exit $ac_status); } &&
2907 { ac_try='test -s conftest.$ac_objext'
2908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2912 (exit $ac_status); }; }; then
2915 echo "$as_me: failed program was:" >&5
2916 sed 's/^/| /' conftest.$ac_ext >&5
2920 rm -f conftest.$ac_objext conftest.$ac_ext
2921 cat >conftest.$ac_ext <<_ACEOF
2922 #line $LINENO "configure"
2925 cat confdefs.h >>conftest.$ac_ext
2926 cat >>conftest.$ac_ext <<_ACEOF
2927 /* end confdefs.h. */
2937 rm -f conftest.$ac_objext
2938 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2939 (eval $ac_compile) 2>&5
2941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2942 (exit $ac_status); } &&
2943 { ac_try='test -s conftest.$ac_objext'
2944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2948 (exit $ac_status); }; }; then
2951 echo "$as_me: failed program was:" >&5
2952 sed 's/^/| /' conftest.$ac_ext >&5
2955 rm -f conftest.$ac_objext conftest.$ac_ext
2958 if test -n "$ac_declaration"; then
2959 echo '#ifdef __cplusplus' >>confdefs.h
2960 echo $ac_declaration >>confdefs.h
2961 echo '#endif' >>confdefs.h
2965 echo "$as_me: failed program was:" >&5
2966 sed 's/^/| /' conftest.$ac_ext >&5
2969 rm -f conftest.$ac_objext conftest.$ac_ext
2971 ac_cpp='$CPP $CPPFLAGS'
2972 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2973 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2974 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2976 if test $host != $build; then
2977 for ac_prog in gcc cc
2979 # Extract the first word of "$ac_prog", so it can be a program name with args.
2980 set dummy $ac_prog; ac_word=$2
2981 echo "$as_me:$LINENO: checking for $ac_word" >&5
2982 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2983 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
2984 echo $ECHO_N "(cached) $ECHO_C" >&6
2986 if test -n "$BUILD_CC"; then
2987 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
2989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2993 test -z "$as_dir" && as_dir=.
2994 for ac_exec_ext in '' $ac_executable_extensions; do
2995 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2996 ac_cv_prog_BUILD_CC="$ac_prog"
2997 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3005 BUILD_CC=$ac_cv_prog_BUILD_CC
3006 if test -n "$BUILD_CC"; then
3007 echo "$as_me:$LINENO: result: $BUILD_CC" >&5
3008 echo "${ECHO_T}$BUILD_CC" >&6
3010 echo "$as_me:$LINENO: result: no" >&5
3011 echo "${ECHO_T}no" >&6
3014 test -n "$BUILD_CC" && break
3020 ac_cpp='$CPP $CPPFLAGS'
3021 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3022 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3023 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3024 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3025 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3026 # On Suns, sometimes $CPP names a directory.
3027 if test -n "$CPP" && test -d "$CPP"; then
3030 if test -z "$CPP"; then
3031 if test "${ac_cv_prog_CPP+set}" = set; then
3032 echo $ECHO_N "(cached) $ECHO_C" >&6
3034 # Double quotes because CPP needs to be expanded
3035 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3038 for ac_c_preproc_warn_flag in '' yes
3040 # Use a header file that comes with gcc, so configuring glibc
3041 # with a fresh cross-compiler works.
3042 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3043 # <limits.h> exists even on freestanding compilers.
3044 # On the NeXT, cc -E runs the code through the compiler's parser,
3045 # not just through cpp. "Syntax error" is here to catch this case.
3046 cat >conftest.$ac_ext <<_ACEOF
3047 #line $LINENO "configure"
3050 cat confdefs.h >>conftest.$ac_ext
3051 cat >>conftest.$ac_ext <<_ACEOF
3052 /* end confdefs.h. */
3054 # include <limits.h>
3056 # include <assert.h>
3060 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3061 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3063 grep -v '^ *+' conftest.er1 >conftest.err
3065 cat conftest.err >&5
3066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3067 (exit $ac_status); } >/dev/null; then
3068 if test -s conftest.err; then
3069 ac_cpp_err=$ac_c_preproc_warn_flag
3076 if test -z "$ac_cpp_err"; then
3079 echo "$as_me: failed program was:" >&5
3080 sed 's/^/| /' conftest.$ac_ext >&5
3082 # Broken: fails on valid input.
3085 rm -f conftest.err conftest.$ac_ext
3087 # OK, works on sane cases. Now check whether non-existent headers
3088 # can be detected and how.
3089 cat >conftest.$ac_ext <<_ACEOF
3090 #line $LINENO "configure"
3093 cat confdefs.h >>conftest.$ac_ext
3094 cat >>conftest.$ac_ext <<_ACEOF
3095 /* end confdefs.h. */
3096 #include <ac_nonexistent.h>
3098 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3099 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3101 grep -v '^ *+' conftest.er1 >conftest.err
3103 cat conftest.err >&5
3104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3105 (exit $ac_status); } >/dev/null; then
3106 if test -s conftest.err; then
3107 ac_cpp_err=$ac_c_preproc_warn_flag
3114 if test -z "$ac_cpp_err"; then
3115 # Broken: success on invalid input.
3118 echo "$as_me: failed program was:" >&5
3119 sed 's/^/| /' conftest.$ac_ext >&5
3121 # Passes both tests.
3125 rm -f conftest.err conftest.$ac_ext
3128 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3129 rm -f conftest.err conftest.$ac_ext
3130 if $ac_preproc_ok; then
3142 echo "$as_me:$LINENO: result: $CPP" >&5
3143 echo "${ECHO_T}$CPP" >&6
3145 for ac_c_preproc_warn_flag in '' yes
3147 # Use a header file that comes with gcc, so configuring glibc
3148 # with a fresh cross-compiler works.
3149 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3150 # <limits.h> exists even on freestanding compilers.
3151 # On the NeXT, cc -E runs the code through the compiler's parser,
3152 # not just through cpp. "Syntax error" is here to catch this case.
3153 cat >conftest.$ac_ext <<_ACEOF
3154 #line $LINENO "configure"
3157 cat confdefs.h >>conftest.$ac_ext
3158 cat >>conftest.$ac_ext <<_ACEOF
3159 /* end confdefs.h. */
3161 # include <limits.h>
3163 # include <assert.h>
3167 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3168 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3170 grep -v '^ *+' conftest.er1 >conftest.err
3172 cat conftest.err >&5
3173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3174 (exit $ac_status); } >/dev/null; then
3175 if test -s conftest.err; then
3176 ac_cpp_err=$ac_c_preproc_warn_flag
3183 if test -z "$ac_cpp_err"; then
3186 echo "$as_me: failed program was:" >&5
3187 sed 's/^/| /' conftest.$ac_ext >&5
3189 # Broken: fails on valid input.
3192 rm -f conftest.err conftest.$ac_ext
3194 # OK, works on sane cases. Now check whether non-existent headers
3195 # can be detected and how.
3196 cat >conftest.$ac_ext <<_ACEOF
3197 #line $LINENO "configure"
3200 cat confdefs.h >>conftest.$ac_ext
3201 cat >>conftest.$ac_ext <<_ACEOF
3202 /* end confdefs.h. */
3203 #include <ac_nonexistent.h>
3205 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3206 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3208 grep -v '^ *+' conftest.er1 >conftest.err
3210 cat conftest.err >&5
3211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3212 (exit $ac_status); } >/dev/null; then
3213 if test -s conftest.err; then
3214 ac_cpp_err=$ac_c_preproc_warn_flag
3221 if test -z "$ac_cpp_err"; then
3222 # Broken: success on invalid input.
3225 echo "$as_me: failed program was:" >&5
3226 sed 's/^/| /' conftest.$ac_ext >&5
3228 # Passes both tests.
3232 rm -f conftest.err conftest.$ac_ext
3235 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3236 rm -f conftest.err conftest.$ac_ext
3237 if $ac_preproc_ok; then
3240 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3241 See \`config.log' for more details." >&5
3242 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3243 See \`config.log' for more details." >&2;}
3244 { (exit 1); exit 1; }; }
3248 ac_cpp='$CPP $CPPFLAGS'
3249 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3250 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3251 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3253 # We need the C++ compiler only for testing.
3255 ac_cpp='$CXXCPP $CPPFLAGS'
3256 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3257 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3258 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3259 if test -n "$ac_tool_prefix"; then
3260 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3262 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3263 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3264 echo "$as_me:$LINENO: checking for $ac_word" >&5
3265 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3266 if test "${ac_cv_prog_CXX+set}" = set; then
3267 echo $ECHO_N "(cached) $ECHO_C" >&6
3269 if test -n "$CXX"; then
3270 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3276 test -z "$as_dir" && as_dir=.
3277 for ac_exec_ext in '' $ac_executable_extensions; do
3278 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3279 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3280 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3289 if test -n "$CXX"; then
3290 echo "$as_me:$LINENO: result: $CXX" >&5
3291 echo "${ECHO_T}$CXX" >&6
3293 echo "$as_me:$LINENO: result: no" >&5
3294 echo "${ECHO_T}no" >&6
3297 test -n "$CXX" && break
3300 if test -z "$CXX"; then
3302 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3304 # Extract the first word of "$ac_prog", so it can be a program name with args.
3305 set dummy $ac_prog; ac_word=$2
3306 echo "$as_me:$LINENO: checking for $ac_word" >&5
3307 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3308 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3309 echo $ECHO_N "(cached) $ECHO_C" >&6
3311 if test -n "$ac_ct_CXX"; then
3312 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3318 test -z "$as_dir" && as_dir=.
3319 for ac_exec_ext in '' $ac_executable_extensions; do
3320 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3321 ac_cv_prog_ac_ct_CXX="$ac_prog"
3322 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3330 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3331 if test -n "$ac_ct_CXX"; then
3332 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3333 echo "${ECHO_T}$ac_ct_CXX" >&6
3335 echo "$as_me:$LINENO: result: no" >&5
3336 echo "${ECHO_T}no" >&6
3339 test -n "$ac_ct_CXX" && break
3341 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3347 # Provide some information about the compiler.
3348 echo "$as_me:$LINENO:" \
3349 "checking for C++ compiler version" >&5
3350 ac_compiler=`set X $ac_compile; echo $2`
3351 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3352 (eval $ac_compiler --version </dev/null >&5) 2>&5
3354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3355 (exit $ac_status); }
3356 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3357 (eval $ac_compiler -v </dev/null >&5) 2>&5
3359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3360 (exit $ac_status); }
3361 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3362 (eval $ac_compiler -V </dev/null >&5) 2>&5
3364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3365 (exit $ac_status); }
3367 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3368 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3369 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3370 echo $ECHO_N "(cached) $ECHO_C" >&6
3372 cat >conftest.$ac_ext <<_ACEOF
3373 #line $LINENO "configure"
3376 cat confdefs.h >>conftest.$ac_ext
3377 cat >>conftest.$ac_ext <<_ACEOF
3378 /* end confdefs.h. */
3391 rm -f conftest.$ac_objext
3392 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3393 (eval $ac_compile) 2>&5
3395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3396 (exit $ac_status); } &&
3397 { ac_try='test -s conftest.$ac_objext'
3398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3402 (exit $ac_status); }; }; then
3405 echo "$as_me: failed program was:" >&5
3406 sed 's/^/| /' conftest.$ac_ext >&5
3410 rm -f conftest.$ac_objext conftest.$ac_ext
3411 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3414 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3415 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3416 GXX=`test $ac_compiler_gnu = yes && echo yes`
3417 ac_test_CXXFLAGS=${CXXFLAGS+set}
3418 ac_save_CXXFLAGS=$CXXFLAGS
3420 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3421 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3422 if test "${ac_cv_prog_cxx_g+set}" = set; then
3423 echo $ECHO_N "(cached) $ECHO_C" >&6
3425 cat >conftest.$ac_ext <<_ACEOF
3426 #line $LINENO "configure"
3429 cat confdefs.h >>conftest.$ac_ext
3430 cat >>conftest.$ac_ext <<_ACEOF
3431 /* end confdefs.h. */
3441 rm -f conftest.$ac_objext
3442 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3443 (eval $ac_compile) 2>&5
3445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3446 (exit $ac_status); } &&
3447 { ac_try='test -s conftest.$ac_objext'
3448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3452 (exit $ac_status); }; }; then
3453 ac_cv_prog_cxx_g=yes
3455 echo "$as_me: failed program was:" >&5
3456 sed 's/^/| /' conftest.$ac_ext >&5
3460 rm -f conftest.$ac_objext conftest.$ac_ext
3462 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3463 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3464 if test "$ac_test_CXXFLAGS" = set; then
3465 CXXFLAGS=$ac_save_CXXFLAGS
3466 elif test $ac_cv_prog_cxx_g = yes; then
3467 if test "$GXX" = yes; then
3473 if test "$GXX" = yes; then
3479 for ac_declaration in \
3481 '#include <stdlib.h>' \
3482 'extern "C" void std::exit (int) throw (); using std::exit;' \
3483 'extern "C" void std::exit (int); using std::exit;' \
3484 'extern "C" void exit (int) throw ();' \
3485 'extern "C" void exit (int);' \
3488 cat >conftest.$ac_ext <<_ACEOF
3489 #line $LINENO "configure"
3492 cat confdefs.h >>conftest.$ac_ext
3493 cat >>conftest.$ac_ext <<_ACEOF
3494 /* end confdefs.h. */
3505 rm -f conftest.$ac_objext
3506 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3507 (eval $ac_compile) 2>&5
3509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3510 (exit $ac_status); } &&
3511 { ac_try='test -s conftest.$ac_objext'
3512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3516 (exit $ac_status); }; }; then
3519 echo "$as_me: failed program was:" >&5
3520 sed 's/^/| /' conftest.$ac_ext >&5
3524 rm -f conftest.$ac_objext conftest.$ac_ext
3525 cat >conftest.$ac_ext <<_ACEOF
3526 #line $LINENO "configure"
3529 cat confdefs.h >>conftest.$ac_ext
3530 cat >>conftest.$ac_ext <<_ACEOF
3531 /* end confdefs.h. */
3541 rm -f conftest.$ac_objext
3542 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3543 (eval $ac_compile) 2>&5
3545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3546 (exit $ac_status); } &&
3547 { ac_try='test -s conftest.$ac_objext'
3548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3552 (exit $ac_status); }; }; then
3555 echo "$as_me: failed program was:" >&5
3556 sed 's/^/| /' conftest.$ac_ext >&5
3559 rm -f conftest.$ac_objext conftest.$ac_ext
3562 if test -n "$ac_declaration"; then
3563 echo '#ifdef __cplusplus' >>confdefs.h
3564 echo $ac_declaration >>confdefs.h
3565 echo '#endif' >>confdefs.h
3569 ac_cpp='$CPP $CPPFLAGS'
3570 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3571 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3572 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3574 # Was a --with-binutils option given?
3575 if test -n "$path_binutils"; then
3576 # Make absolute; ensure a single trailing slash.
3577 path_binutils=`(cd $path_binutils; pwd) | sed 's%/*$%/%'`
3578 CC="$CC -B$path_binutils"
3580 AS=`$CC -print-prog-name=as`
3581 LD=`$CC -print-prog-name=ld`
3582 AR=`$CC -print-prog-name=ar`
3584 OBJDUMP=`$CC -print-prog-name=objdump`
3587 # ranlib has to be treated a bit differently since it might not exist at all.
3588 ac_ranlib=`$CC -print-prog-name=ranlib`
3589 if test "x$ac_ranlib" = xranlib; then
3590 # This extra check has to happen since gcc simply echos the parameter in
3591 # case it cannot find the value in its own directories.
3592 if test -n "$ac_tool_prefix"; then
3593 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3594 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3595 echo "$as_me:$LINENO: checking for $ac_word" >&5
3596 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3597 if test "${ac_cv_prog_RANLIB+set}" = set; then
3598 echo $ECHO_N "(cached) $ECHO_C" >&6
3600 if test -n "$RANLIB"; then
3601 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3607 test -z "$as_dir" && as_dir=.
3608 for ac_exec_ext in '' $ac_executable_extensions; do
3609 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3610 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3611 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3619 RANLIB=$ac_cv_prog_RANLIB
3620 if test -n "$RANLIB"; then
3621 echo "$as_me:$LINENO: result: $RANLIB" >&5
3622 echo "${ECHO_T}$RANLIB" >&6
3624 echo "$as_me:$LINENO: result: no" >&5
3625 echo "${ECHO_T}no" >&6
3629 if test -z "$ac_cv_prog_RANLIB"; then
3630 ac_ct_RANLIB=$RANLIB
3631 # Extract the first word of "ranlib", so it can be a program name with args.
3632 set dummy ranlib; ac_word=$2
3633 echo "$as_me:$LINENO: checking for $ac_word" >&5
3634 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3635 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3636 echo $ECHO_N "(cached) $ECHO_C" >&6
3638 if test -n "$ac_ct_RANLIB"; then
3639 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3645 test -z "$as_dir" && as_dir=.
3646 for ac_exec_ext in '' $ac_executable_extensions; do
3647 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3648 ac_cv_prog_ac_ct_RANLIB="ranlib"
3649 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3655 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3658 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3659 if test -n "$ac_ct_RANLIB"; then
3660 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3661 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3663 echo "$as_me:$LINENO: result: no" >&5
3664 echo "${ECHO_T}no" >&6
3667 RANLIB=$ac_ct_RANLIB
3669 RANLIB="$ac_cv_prog_RANLIB"
3677 # Determine whether we are using GNU binutils.
3678 echo "$as_me:$LINENO: checking whether $AS is GNU as" >&5
3679 echo $ECHO_N "checking whether $AS is GNU as... $ECHO_C" >&6
3680 if test "${libc_cv_prog_as_gnu+set}" = set; then
3681 echo $ECHO_N "(cached) $ECHO_C" >&6
3683 # Most GNU programs take a -v and spit out some text including
3684 # the word 'GNU'. Some try to read stdin, so give them /dev/null.
3685 if $AS -o conftest -v </dev/null 2>&1 | grep GNU > /dev/null 2>&1; then
3686 libc_cv_prog_as_gnu=yes
3688 libc_cv_prog_as_gnu=no
3692 echo "$as_me:$LINENO: result: $libc_cv_prog_as_gnu" >&5
3693 echo "${ECHO_T}$libc_cv_prog_as_gnu" >&6
3695 gnu_as=$libc_cv_prog_as_gnu
3697 echo "$as_me:$LINENO: checking whether $LD is GNU ld" >&5
3698 echo $ECHO_N "checking whether $LD is GNU ld... $ECHO_C" >&6
3699 if test "${libc_cv_prog_ld_gnu+set}" = set; then
3700 echo $ECHO_N "(cached) $ECHO_C" >&6
3702 # Most GNU programs take a -v and spit out some text including
3703 # the word 'GNU'. Some try to read stdin, so give them /dev/null.
3704 if $LD -o conftest -v </dev/null 2>&1 | grep GNU > /dev/null 2>&1; then
3705 libc_cv_prog_ld_gnu=yes
3707 libc_cv_prog_ld_gnu=no
3711 echo "$as_me:$LINENO: result: $libc_cv_prog_ld_gnu" >&5
3712 echo "${ECHO_T}$libc_cv_prog_ld_gnu" >&6
3713 gnu_ld=$libc_cv_prog_ld_gnu
3716 # Accept binutils 2.13 or newer.
3719 # Extract the first word of "$ac_prog", so it can be a program name with args.
3720 set dummy $ac_prog; ac_word=$2
3721 echo "$as_me:$LINENO: checking for $ac_word" >&5
3722 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3723 if test "${ac_cv_prog_AS+set}" = set; then
3724 echo $ECHO_N "(cached) $ECHO_C" >&6
3726 if test -n "$AS"; then
3727 ac_cv_prog_AS="$AS" # Let the user override the test.
3729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3733 test -z "$as_dir" && as_dir=.
3734 for ac_exec_ext in '' $ac_executable_extensions; do
3735 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3736 ac_cv_prog_AS="$ac_prog"
3737 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3746 if test -n "$AS"; then
3747 echo "$as_me:$LINENO: result: $AS" >&5
3748 echo "${ECHO_T}$AS" >&6
3750 echo "$as_me:$LINENO: result: no" >&5
3751 echo "${ECHO_T}no" >&6
3754 test -n "$AS" && break
3757 if test -z "$AS"; then
3760 # Found it, now check the version.
3761 echo "$as_me:$LINENO: checking version of $AS" >&5
3762 echo $ECHO_N "checking version of $AS... $ECHO_C" >&6
3763 ac_prog_version=`$AS --version 2>&1 | sed -n 's/^.*GNU assembler.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
3764 case $ac_prog_version in
3765 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
3767 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
3768 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
3771 echo "$as_me:$LINENO: result: $ac_prog_version" >&5
3772 echo "${ECHO_T}$ac_prog_version" >&6
3774 if test $ac_verc_fail = yes; then
3775 AS=: critic_missing="$critic_missing as"
3780 # Extract the first word of "$ac_prog", so it can be a program name with args.
3781 set dummy $ac_prog; ac_word=$2
3782 echo "$as_me:$LINENO: checking for $ac_word" >&5
3783 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3784 if test "${ac_cv_prog_LD+set}" = set; then
3785 echo $ECHO_N "(cached) $ECHO_C" >&6
3787 if test -n "$LD"; then
3788 ac_cv_prog_LD="$LD" # Let the user override the test.
3790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3794 test -z "$as_dir" && as_dir=.
3795 for ac_exec_ext in '' $ac_executable_extensions; do
3796 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3797 ac_cv_prog_LD="$ac_prog"
3798 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3807 if test -n "$LD"; then
3808 echo "$as_me:$LINENO: result: $LD" >&5
3809 echo "${ECHO_T}$LD" >&6
3811 echo "$as_me:$LINENO: result: no" >&5
3812 echo "${ECHO_T}no" >&6
3815 test -n "$LD" && break
3818 if test -z "$LD"; then
3821 # Found it, now check the version.
3822 echo "$as_me:$LINENO: checking version of $LD" >&5
3823 echo $ECHO_N "checking version of $LD... $ECHO_C" >&6
3824 ac_prog_version=`$LD --version 2>&1 | sed -n 's/^.*GNU ld.* \([0-9][0-9]*\.[0-9.]*\).*$/\1/p'`
3825 case $ac_prog_version in
3826 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
3828 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
3829 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
3832 echo "$as_me:$LINENO: result: $ac_prog_version" >&5
3833 echo "${ECHO_T}$ac_prog_version" >&6
3835 if test $ac_verc_fail = yes; then
3836 LD=: critic_missing="$critic_missing ld"
3840 # We need the physical current working directory. We cannot use the
3841 # "pwd -P" shell builtin since that's not portable. Instead we try to
3842 # find a pwd binary. Note that assigning to the PWD environment
3843 # variable might have some interesting side effects, so we don't do
3845 # Extract the first word of "pwd", so it can be a program name with args.
3846 set dummy pwd; ac_word=$2
3847 echo "$as_me:$LINENO: checking for $ac_word" >&5
3848 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3849 if test "${ac_cv_path_PWD_P+set}" = set; then
3850 echo $ECHO_N "(cached) $ECHO_C" >&6
3854 ac_cv_path_PWD_P="$PWD_P" # Let the user override the test with a path.
3857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3861 test -z "$as_dir" && as_dir=.
3862 for ac_exec_ext in '' $ac_executable_extensions; do
3863 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3864 ac_cv_path_PWD_P="$as_dir/$ac_word$ac_exec_ext"
3865 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3871 test -z "$ac_cv_path_PWD_P" && ac_cv_path_PWD_P="no"
3875 PWD_P=$ac_cv_path_PWD_P
3877 if test -n "$PWD_P"; then
3878 echo "$as_me:$LINENO: result: $PWD_P" >&5
3879 echo "${ECHO_T}$PWD_P" >&6
3881 echo "$as_me:$LINENO: result: no" >&5
3882 echo "${ECHO_T}no" >&6
3885 if test "$PWD_P" = no; then
3886 { { echo "$as_me:$LINENO: error: *** A pwd binary could not be found." >&5
3887 echo "$as_me: error: *** A pwd binary could not be found." >&2;}
3888 { (exit 1); exit 1; }; }
3891 # These programs are version sensitive.
3893 for ac_prog in ${ac_tool_prefix}gcc ${ac_tool_prefix}cc
3895 # Extract the first word of "$ac_prog", so it can be a program name with args.
3896 set dummy $ac_prog; ac_word=$2
3897 echo "$as_me:$LINENO: checking for $ac_word" >&5
3898 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3899 if test "${ac_cv_prog_CC+set}" = set; then
3900 echo $ECHO_N "(cached) $ECHO_C" >&6
3902 if test -n "$CC"; then
3903 ac_cv_prog_CC="$CC" # Let the user override the test.
3905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3909 test -z "$as_dir" && as_dir=.
3910 for ac_exec_ext in '' $ac_executable_extensions; do
3911 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3912 ac_cv_prog_CC="$ac_prog"
3913 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3922 if test -n "$CC"; then
3923 echo "$as_me:$LINENO: result: $CC" >&5
3924 echo "${ECHO_T}$CC" >&6
3926 echo "$as_me:$LINENO: result: no" >&5
3927 echo "${ECHO_T}no" >&6
3930 test -n "$CC" && break
3933 if test -z "$CC"; then
3936 # Found it, now check the version.
3937 echo "$as_me:$LINENO: checking version of $CC" >&5
3938 echo $ECHO_N "checking version of $CC... $ECHO_C" >&6
3939 ac_prog_version=`$CC -v 2>&1 | sed -n 's/^.*version \([egcygnustpi-]*[0-9.]*\).*$/\1/p'`
3940 case $ac_prog_version in
3941 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
3943 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
3944 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
3947 echo "$as_me:$LINENO: result: $ac_prog_version" >&5
3948 echo "${ECHO_T}$ac_prog_version" >&6
3950 if test $ac_verc_fail = yes; then
3951 critic_missing="$critic_missing gcc"
3954 for ac_prog in gnumake gmake make
3956 # Extract the first word of "$ac_prog", so it can be a program name with args.
3957 set dummy $ac_prog; ac_word=$2
3958 echo "$as_me:$LINENO: checking for $ac_word" >&5
3959 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3960 if test "${ac_cv_prog_MAKE+set}" = set; then
3961 echo $ECHO_N "(cached) $ECHO_C" >&6
3963 if test -n "$MAKE"; then
3964 ac_cv_prog_MAKE="$MAKE" # Let the user override the test.
3966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3970 test -z "$as_dir" && as_dir=.
3971 for ac_exec_ext in '' $ac_executable_extensions; do
3972 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3973 ac_cv_prog_MAKE="$ac_prog"
3974 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3982 MAKE=$ac_cv_prog_MAKE
3983 if test -n "$MAKE"; then
3984 echo "$as_me:$LINENO: result: $MAKE" >&5
3985 echo "${ECHO_T}$MAKE" >&6
3987 echo "$as_me:$LINENO: result: no" >&5
3988 echo "${ECHO_T}no" >&6
3991 test -n "$MAKE" && break
3994 if test -z "$MAKE"; then
3997 # Found it, now check the version.
3998 echo "$as_me:$LINENO: checking version of $MAKE" >&5
3999 echo $ECHO_N "checking version of $MAKE... $ECHO_C" >&6
4000 ac_prog_version=`$MAKE --version 2>&1 | sed -n 's/^.*GNU Make[^0-9]*\([0-9][0-9.]*\).*$/\1/p'`
4001 case $ac_prog_version in
4002 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
4004 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
4005 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
4008 echo "$as_me:$LINENO: result: $ac_prog_version" >&5
4009 echo "${ECHO_T}$ac_prog_version" >&6
4011 if test $ac_verc_fail = yes; then
4012 critic_missing="$critic_missing make"
4016 for ac_prog in gnumsgfmt gmsgfmt msgfmt
4018 # Extract the first word of "$ac_prog", so it can be a program name with args.
4019 set dummy $ac_prog; ac_word=$2
4020 echo "$as_me:$LINENO: checking for $ac_word" >&5
4021 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4022 if test "${ac_cv_prog_MSGFMT+set}" = set; then
4023 echo $ECHO_N "(cached) $ECHO_C" >&6
4025 if test -n "$MSGFMT"; then
4026 ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
4028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4032 test -z "$as_dir" && as_dir=.
4033 for ac_exec_ext in '' $ac_executable_extensions; do
4034 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4035 ac_cv_prog_MSGFMT="$ac_prog"
4036 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4044 MSGFMT=$ac_cv_prog_MSGFMT
4045 if test -n "$MSGFMT"; then
4046 echo "$as_me:$LINENO: result: $MSGFMT" >&5
4047 echo "${ECHO_T}$MSGFMT" >&6
4049 echo "$as_me:$LINENO: result: no" >&5
4050 echo "${ECHO_T}no" >&6
4053 test -n "$MSGFMT" && break
4056 if test -z "$MSGFMT"; then
4059 # Found it, now check the version.
4060 echo "$as_me:$LINENO: checking version of $MSGFMT" >&5
4061 echo $ECHO_N "checking version of $MSGFMT... $ECHO_C" >&6
4062 ac_prog_version=`$MSGFMT --version 2>&1 | sed -n 's/^.*GNU gettext.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
4063 case $ac_prog_version in
4064 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
4065 0.10.3[6-9]* | 0.10.[4-9][0-9]* | 0.1[1-9]* | 0.[2-9][0-9]* | [1-9].*)
4066 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
4067 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
4070 echo "$as_me:$LINENO: result: $ac_prog_version" >&5
4071 echo "${ECHO_T}$ac_prog_version" >&6
4073 if test $ac_verc_fail = yes; then
4074 MSGFMT=: aux_missing="$aux_missing msgfmt"
4077 for ac_prog in makeinfo
4079 # Extract the first word of "$ac_prog", so it can be a program name with args.
4080 set dummy $ac_prog; ac_word=$2
4081 echo "$as_me:$LINENO: checking for $ac_word" >&5
4082 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4083 if test "${ac_cv_prog_MAKEINFO+set}" = set; then
4084 echo $ECHO_N "(cached) $ECHO_C" >&6
4086 if test -n "$MAKEINFO"; then
4087 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
4089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4093 test -z "$as_dir" && as_dir=.
4094 for ac_exec_ext in '' $ac_executable_extensions; do
4095 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4096 ac_cv_prog_MAKEINFO="$ac_prog"
4097 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4105 MAKEINFO=$ac_cv_prog_MAKEINFO
4106 if test -n "$MAKEINFO"; then
4107 echo "$as_me:$LINENO: result: $MAKEINFO" >&5
4108 echo "${ECHO_T}$MAKEINFO" >&6
4110 echo "$as_me:$LINENO: result: no" >&5
4111 echo "${ECHO_T}no" >&6
4114 test -n "$MAKEINFO" && break
4117 if test -z "$MAKEINFO"; then
4120 # Found it, now check the version.
4121 echo "$as_me:$LINENO: checking version of $MAKEINFO" >&5
4122 echo $ECHO_N "checking version of $MAKEINFO... $ECHO_C" >&6
4123 ac_prog_version=`$MAKEINFO --version 2>&1 | sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
4124 case $ac_prog_version in
4125 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
4127 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
4128 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
4131 echo "$as_me:$LINENO: result: $ac_prog_version" >&5
4132 echo "${ECHO_T}$ac_prog_version" >&6
4134 if test $ac_verc_fail = yes; then
4135 MAKEINFO=: aux_missing="$aux_missing makeinfo"
4140 # Extract the first word of "$ac_prog", so it can be a program name with args.
4141 set dummy $ac_prog; ac_word=$2
4142 echo "$as_me:$LINENO: checking for $ac_word" >&5
4143 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4144 if test "${ac_cv_prog_SED+set}" = set; then
4145 echo $ECHO_N "(cached) $ECHO_C" >&6
4147 if test -n "$SED"; then
4148 ac_cv_prog_SED="$SED" # Let the user override the test.
4150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4154 test -z "$as_dir" && as_dir=.
4155 for ac_exec_ext in '' $ac_executable_extensions; do
4156 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4157 ac_cv_prog_SED="$ac_prog"
4158 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4167 if test -n "$SED"; then
4168 echo "$as_me:$LINENO: result: $SED" >&5
4169 echo "${ECHO_T}$SED" >&6
4171 echo "$as_me:$LINENO: result: no" >&5
4172 echo "${ECHO_T}no" >&6
4175 test -n "$SED" && break
4178 if test -z "$SED"; then
4181 # Found it, now check the version.
4182 echo "$as_me:$LINENO: checking version of $SED" >&5
4183 echo $ECHO_N "checking version of $SED... $ECHO_C" >&6
4184 ac_prog_version=`$SED --version 2>&1 | sed -n 's/^.*GNU sed version \([0-9]*\.[0-9.]*\).*$/\1/p'`
4185 case $ac_prog_version in
4186 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
4187 3.0[2-9]*|3.[1-9]*|[4-9]*)
4188 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
4189 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
4192 echo "$as_me:$LINENO: result: $ac_prog_version" >&5
4193 echo "${ECHO_T}$ac_prog_version" >&6
4195 if test $ac_verc_fail = yes; then
4196 SED=: aux_missing="$aux_missing sed"
4200 for ac_prog in autoconf
4202 # Extract the first word of "$ac_prog", so it can be a program name with args.
4203 set dummy $ac_prog; ac_word=$2
4204 echo "$as_me:$LINENO: checking for $ac_word" >&5
4205 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4206 if test "${ac_cv_prog_AUTOCONF+set}" = set; then
4207 echo $ECHO_N "(cached) $ECHO_C" >&6
4209 if test -n "$AUTOCONF"; then
4210 ac_cv_prog_AUTOCONF="$AUTOCONF" # Let the user override the test.
4212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4216 test -z "$as_dir" && as_dir=.
4217 for ac_exec_ext in '' $ac_executable_extensions; do
4218 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4219 ac_cv_prog_AUTOCONF="$ac_prog"
4220 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4228 AUTOCONF=$ac_cv_prog_AUTOCONF
4229 if test -n "$AUTOCONF"; then
4230 echo "$as_me:$LINENO: result: $AUTOCONF" >&5
4231 echo "${ECHO_T}$AUTOCONF" >&6
4233 echo "$as_me:$LINENO: result: no" >&5
4234 echo "${ECHO_T}no" >&6
4237 test -n "$AUTOCONF" && break
4239 test -n "$AUTOCONF" || AUTOCONF="no"
4241 case "x$AUTOCONF" in
4242 xno|x|x:) AUTOCONF=no ;;
4244 echo "$as_me:$LINENO: checking whether $AUTOCONF${ACFLAGS:+ }$ACFLAGS works" >&5
4245 echo $ECHO_N "checking whether $AUTOCONF${ACFLAGS:+ }$ACFLAGS works... $ECHO_C" >&6
4246 if test "${libc_cv_autoconf_works+set}" = set; then
4247 echo $ECHO_N "(cached) $ECHO_C" >&6
4249 if (cd $srcdir; $AUTOCONF $ACFLAGS configure.in > /dev/null 2>&1); then
4250 libc_cv_autoconf_works=yes
4252 libc_cv_autoconf_works=no
4255 echo "$as_me:$LINENO: result: $libc_cv_autoconf_works" >&5
4256 echo "${ECHO_T}$libc_cv_autoconf_works" >&6
4257 test $libc_cv_autoconf_works = yes || AUTOCONF=no
4260 if test "x$with_cvs" = xyes && test "x$AUTOCONF" = xno; then
4261 # If --without-cvs they probably won't change configure.in, so no complaints.
4262 aux_missing="$aux_missing autoconf"
4265 test -n "$critic_missing" && { { echo "$as_me:$LINENO: error:
4266 *** These critical programs are missing or too old:$critic_missing
4267 *** Check the INSTALL file for required versions." >&5
4268 echo "$as_me: error:
4269 *** These critical programs are missing or too old:$critic_missing
4270 *** Check the INSTALL file for required versions." >&2;}
4271 { (exit 1); exit 1; }; }
4273 test -n "$aux_missing" && { echo "$as_me:$LINENO: WARNING:
4274 *** These auxiliary programs are missing or incompatible versions:$aux_missing
4275 *** some features will be disabled.
4276 *** Check the INSTALL file for required versions." >&5
4277 echo "$as_me: WARNING:
4278 *** These auxiliary programs are missing or incompatible versions:$aux_missing
4279 *** some features will be disabled.
4280 *** Check the INSTALL file for required versions." >&2;}
4282 # if using special system headers, find out the compiler's sekrit
4283 # header directory and add that to the list. NOTE: Only does the right
4284 # thing on a system that doesn't need fixincludes. (Not presently a problem.)
4285 if test -n "$sysheaders"; then
4286 ccheaders=`$CC -print-file-name=include`
4287 SYSINCLUDES="-nostdinc -isystem $ccheaders -isystem $sysheaders"
4291 # check if ranlib is necessary
4292 echo "$as_me:$LINENO: checking whether ranlib is necessary" >&5
4293 echo $ECHO_N "checking whether ranlib is necessary... $ECHO_C" >&6
4294 if test "${libc_cv_ranlib_necessary+set}" = set; then
4295 echo $ECHO_N "(cached) $ECHO_C" >&6
4297 cat > conftest.c <<EOF
4302 $CC $CFLAGS $CPPFLAGS -c conftest.c
4303 $AR cr conftest.a conftest.o
4304 cp conftest.a conftest2.a
4306 if cmp -s conftest.a conftest2.a; then
4307 libc_cv_ranlib_necessary=no
4309 libc_cv_ranlib_necessary=yes
4313 echo "$as_me:$LINENO: result: $libc_cv_ranlib_necessary" >&5
4314 echo "${ECHO_T}$libc_cv_ranlib_necessary" >&6
4315 if test "$libc_cv_ranlib_necessary" = no; then
4319 # Test if LD_LIBRARY_PATH contains the notation for the current directory
4320 # since this would lead to problems installing/building glibc.
4321 # LD_LIBRARY_PATH contains the current directory if one of the following
4323 # - one of the terminals (":" and ";") is the first or last sign
4324 # - two terminals occur directly after each other
4325 # - the path contains an element with a dot in it
4326 echo "$as_me:$LINENO: checking LD_LIBRARY_PATH variable" >&5
4327 echo $ECHO_N "checking LD_LIBRARY_PATH variable... $ECHO_C" >&6
4328 case ${LD_LIBRARY_PATH} in
4329 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
4330 ld_library_path_setting="contains current directory"
4333 ld_library_path_setting="ok"
4336 echo "$as_me:$LINENO: result: $ld_library_path_setting" >&5
4337 echo "${ECHO_T}$ld_library_path_setting" >&6
4338 if test "$ld_library_path_setting" != "ok"; then
4339 { { echo "$as_me:$LINENO: error:
4340 *** LD_LIBRARY_PATH shouldn't contain the current directory when
4341 *** building glibc. Please change the environment variable
4342 *** and run configure again." >&5
4343 echo "$as_me: error:
4344 *** LD_LIBRARY_PATH shouldn't contain the current directory when
4345 *** building glibc. Please change the environment variable
4346 *** and run configure again." >&2;}
4347 { (exit 1); exit 1; }; }
4350 echo "$as_me:$LINENO: checking whether GCC supports -static-libgcc" >&5
4351 echo $ECHO_N "checking whether GCC supports -static-libgcc... $ECHO_C" >&6
4352 if test "${libc_cv_gcc_static_libgcc+set}" = set; then
4353 echo $ECHO_N "(cached) $ECHO_C" >&6
4355 if $CC -v -static-libgcc 2>&1 | grep -q 'unrecognized option.*static-libgcc'; then
4356 libc_cv_gcc_static_libgcc=
4358 libc_cv_gcc_static_libgcc=-static-libgcc
4361 echo "$as_me:$LINENO: result: $libc_cv_gcc_static_libgcc" >&5
4362 echo "${ECHO_T}$libc_cv_gcc_static_libgcc" >&6
4365 # Extract the first word of "bash", so it can be a program name with args.
4366 set dummy bash; ac_word=$2
4367 echo "$as_me:$LINENO: checking for $ac_word" >&5
4368 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4369 if test "${ac_cv_path_BASH+set}" = set; then
4370 echo $ECHO_N "(cached) $ECHO_C" >&6
4374 ac_cv_path_BASH="$BASH" # Let the user override the test with a path.
4377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4381 test -z "$as_dir" && as_dir=.
4382 for ac_exec_ext in '' $ac_executable_extensions; do
4383 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4384 ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext"
4385 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4391 test -z "$ac_cv_path_BASH" && ac_cv_path_BASH="no"
4395 BASH=$ac_cv_path_BASH
4397 if test -n "$BASH"; then
4398 echo "$as_me:$LINENO: result: $BASH" >&5
4399 echo "${ECHO_T}$BASH" >&6
4401 echo "$as_me:$LINENO: result: no" >&5
4402 echo "${ECHO_T}no" >&6
4405 if test "$BASH" != no &&
4406 $BASH -c 'test "$BASH_VERSINFO" \
4407 && test "$BASH_VERSINFO" -ge 2 >&/dev/null'; then
4408 libc_cv_have_bash2=yes
4410 libc_cv_have_bash2=no
4414 if test "$BASH" = no; then
4415 # Extract the first word of "ksh", so it can be a program name with args.
4416 set dummy ksh; ac_word=$2
4417 echo "$as_me:$LINENO: checking for $ac_word" >&5
4418 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4419 if test "${ac_cv_path_KSH+set}" = set; then
4420 echo $ECHO_N "(cached) $ECHO_C" >&6
4424 ac_cv_path_KSH="$KSH" # Let the user override the test with a path.
4427 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4431 test -z "$as_dir" && as_dir=.
4432 for ac_exec_ext in '' $ac_executable_extensions; do
4433 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4434 ac_cv_path_KSH="$as_dir/$ac_word$ac_exec_ext"
4435 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4441 test -z "$ac_cv_path_KSH" && ac_cv_path_KSH="no"
4447 if test -n "$KSH"; then
4448 echo "$as_me:$LINENO: result: $KSH" >&5
4449 echo "${ECHO_T}$KSH" >&6
4451 echo "$as_me:$LINENO: result: no" >&5
4452 echo "${ECHO_T}no" >&6
4455 if test "$KSH" = no; then
4458 libc_cv_have_ksh=yes
4463 libc_cv_have_ksh=yes
4467 for ac_prog in gawk mawk nawk awk
4469 # Extract the first word of "$ac_prog", so it can be a program name with args.
4470 set dummy $ac_prog; ac_word=$2
4471 echo "$as_me:$LINENO: checking for $ac_word" >&5
4472 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4473 if test "${ac_cv_prog_AWK+set}" = set; then
4474 echo $ECHO_N "(cached) $ECHO_C" >&6
4476 if test -n "$AWK"; then
4477 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4483 test -z "$as_dir" && as_dir=.
4484 for ac_exec_ext in '' $ac_executable_extensions; do
4485 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4486 ac_cv_prog_AWK="$ac_prog"
4487 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4496 if test -n "$AWK"; then
4497 echo "$as_me:$LINENO: result: $AWK" >&5
4498 echo "${ECHO_T}$AWK" >&6
4500 echo "$as_me:$LINENO: result: no" >&5
4501 echo "${ECHO_T}no" >&6
4504 test -n "$AWK" && break
4507 # Extract the first word of "perl", so it can be a program name with args.
4508 set dummy perl; ac_word=$2
4509 echo "$as_me:$LINENO: checking for $ac_word" >&5
4510 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4511 if test "${ac_cv_path_PERL+set}" = set; then
4512 echo $ECHO_N "(cached) $ECHO_C" >&6
4516 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
4519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4523 test -z "$as_dir" && as_dir=.
4524 for ac_exec_ext in '' $ac_executable_extensions; do
4525 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4526 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
4527 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4533 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="no"
4537 PERL=$ac_cv_path_PERL
4539 if test -n "$PERL"; then
4540 echo "$as_me:$LINENO: result: $PERL" >&5
4541 echo "${ECHO_T}$PERL" >&6
4543 echo "$as_me:$LINENO: result: no" >&5
4544 echo "${ECHO_T}no" >&6
4547 if test "$PERL" != no &&
4548 (eval `$PERL -V:apiversion`; test `expr "$apiversion" \< 5` -ne 0); then
4551 # Extract the first word of "install-info", so it can be a program name with args.
4552 set dummy install-info; ac_word=$2
4553 echo "$as_me:$LINENO: checking for $ac_word" >&5
4554 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4555 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4556 echo $ECHO_N "(cached) $ECHO_C" >&6
4558 case $INSTALL_INFO in
4560 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
4563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4564 as_dummy="$PATH:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin"
4565 for as_dir in $as_dummy
4568 test -z "$as_dir" && as_dir=.
4569 for ac_exec_ext in '' $ac_executable_extensions; do
4570 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4571 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
4572 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4578 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO="no"
4582 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
4584 if test -n "$INSTALL_INFO"; then
4585 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4586 echo "${ECHO_T}$INSTALL_INFO" >&6
4588 echo "$as_me:$LINENO: result: no" >&5
4589 echo "${ECHO_T}no" >&6
4592 # Extract the first word of "bison", so it can be a program name with args.
4593 set dummy bison; ac_word=$2
4594 echo "$as_me:$LINENO: checking for $ac_word" >&5
4595 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4596 if test "${ac_cv_path_BISON+set}" = set; then
4597 echo $ECHO_N "(cached) $ECHO_C" >&6
4601 ac_cv_path_BISON="$BISON" # Let the user override the test with a path.
4604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4605 as_dummy="$PATH:/usr/local/bin:/usr/bin:/bin"
4606 for as_dir in $as_dummy
4609 test -z "$as_dir" && as_dir=.
4610 for ac_exec_ext in '' $ac_executable_extensions; do
4611 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4612 ac_cv_path_BISON="$as_dir/$ac_word$ac_exec_ext"
4613 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4619 test -z "$ac_cv_path_BISON" && ac_cv_path_BISON="no"
4623 BISON=$ac_cv_path_BISON
4625 if test -n "$BISON"; then
4626 echo "$as_me:$LINENO: result: $BISON" >&5
4627 echo "${ECHO_T}$BISON" >&6
4629 echo "$as_me:$LINENO: result: no" >&5
4630 echo "${ECHO_T}no" >&6
4634 echo "$as_me:$LINENO: checking for signed size_t type" >&5
4635 echo $ECHO_N "checking for signed size_t type... $ECHO_C" >&6
4636 if test "${libc_cv_signed_size_t+set}" = set; then
4637 echo $ECHO_N "(cached) $ECHO_C" >&6
4639 echo '#include <stddef.h>
4640 FOOBAR __SIZE_TYPE__ FOOBAR' > conftest.c
4641 if eval "$ac_cpp conftest.c 2>/dev/null" \
4642 | grep '^FOOBAR.*unsigned.*FOOBAR$' >/dev/null; then
4643 libc_cv_signed_size_t=no
4645 libc_cv_signed_size_t=yes
4649 echo "$as_me:$LINENO: result: $libc_cv_signed_size_t" >&5
4650 echo "${ECHO_T}$libc_cv_signed_size_t" >&6
4651 if test $libc_cv_signed_size_t = yes; then
4652 cat >> confdefs.h <<\EOF
4653 #undef __SIZE_TYPE__
4654 #define __SIZE_TYPE__ unsigned
4659 echo "$as_me:$LINENO: checking for libc-friendly stddef.h" >&5
4660 echo $ECHO_N "checking for libc-friendly stddef.h... $ECHO_C" >&6
4661 if test "${libc_cv_friendly_stddef+set}" = set; then
4662 echo $ECHO_N "(cached) $ECHO_C" >&6
4664 cat >conftest.$ac_ext <<_ACEOF
4665 #line $LINENO "configure"
4668 cat confdefs.h >>conftest.$ac_ext
4669 cat >>conftest.$ac_ext <<_ACEOF
4670 /* end confdefs.h. */
4671 #define __need_size_t
4672 #define __need_wchar_t
4679 size_t size; wchar_t wchar;
4681 #error stddef.h ignored __need_*
4683 if (&size == NULL || &wchar == NULL) abort ();
4688 rm -f conftest.$ac_objext
4689 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4690 (eval $ac_compile) 2>&5
4692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4693 (exit $ac_status); } &&
4694 { ac_try='test -s conftest.$ac_objext'
4695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4699 (exit $ac_status); }; }; then
4700 libc_cv_friendly_stddef=yes
4702 echo "$as_me: failed program was:" >&5
4703 sed 's/^/| /' conftest.$ac_ext >&5
4705 libc_cv_friendly_stddef=no
4707 rm -f conftest.$ac_objext conftest.$ac_ext
4709 echo "$as_me:$LINENO: result: $libc_cv_friendly_stddef" >&5
4710 echo "${ECHO_T}$libc_cv_friendly_stddef" >&6
4711 if test $libc_cv_friendly_stddef = yes; then
4712 config_vars="$config_vars
4713 override stddef.h = # The installed <stddef.h> seems to be libc-friendly."
4716 echo "$as_me:$LINENO: checking whether we need to use -P to assemble .S files" >&5
4717 echo $ECHO_N "checking whether we need to use -P to assemble .S files... $ECHO_C" >&6
4718 if test "${libc_cv_need_minus_P+set}" = set; then
4719 echo $ECHO_N "(cached) $ECHO_C" >&6
4721 cat > conftest.S <<EOF
4722 #include "confdefs.h"
4723 /* Nothing whatsoever. */
4725 if { ac_try='${CC-cc} $CPPFLAGS $ASFLAGS -c conftest.S 1>&5'
4726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4730 (exit $ac_status); }; }; then
4731 libc_cv_need_minus_P=no
4733 libc_cv_need_minus_P=yes
4737 echo "$as_me:$LINENO: result: $libc_cv_need_minus_P" >&5
4738 echo "${ECHO_T}$libc_cv_need_minus_P" >&6
4739 if test $libc_cv_need_minus_P = yes; then
4740 config_vars="$config_vars
4741 asm-CPPFLAGS = -P # The assembler can't grok cpp's # line directives."
4744 echo "$as_me:$LINENO: checking whether .text pseudo-op must be used" >&5
4745 echo $ECHO_N "checking whether .text pseudo-op must be used... $ECHO_C" >&6
4746 if test "${libc_cv_dot_text+set}" = set; then
4747 echo $ECHO_N "(cached) $ECHO_C" >&6
4749 cat > conftest.s <<EOF
4753 if { ac_try='${CC-cc} $ASFLAGS -c conftest.s 1>&5'
4754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4758 (exit $ac_status); }; }; then
4759 libc_cv_dot_text=.text
4764 if test -z "$libc_cv_dot_text"; then
4765 echo "$as_me:$LINENO: result: no" >&5
4766 echo "${ECHO_T}no" >&6
4768 echo "$as_me:$LINENO: result: yes" >&5
4769 echo "${ECHO_T}yes" >&6
4772 echo "$as_me:$LINENO: checking for assembler global-symbol directive" >&5
4773 echo $ECHO_N "checking for assembler global-symbol directive... $ECHO_C" >&6
4774 if test "${libc_cv_asm_global_directive+set}" = set; then
4775 echo $ECHO_N "(cached) $ECHO_C" >&6
4777 libc_cv_asm_global_directive=UNKNOWN
4778 for ac_globl in .globl .global .EXPORT; do
4779 cat > conftest.s <<EOF
4784 if { ac_try='${CC-cc} $ASFLAGS -c conftest.s 1>&5'
4785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4789 (exit $ac_status); }; }; then
4790 libc_cv_asm_global_directive=${ac_globl}
4793 test $libc_cv_asm_global_directive != UNKNOWN && break
4796 echo "$as_me:$LINENO: result: $libc_cv_asm_global_directive" >&5
4797 echo "${ECHO_T}$libc_cv_asm_global_directive" >&6
4798 if test $libc_cv_asm_global_directive = UNKNOWN; then
4799 { { echo "$as_me:$LINENO: error: cannot determine asm global directive" >&5
4800 echo "$as_me: error: cannot determine asm global directive" >&2;}
4801 { (exit 1); exit 1; }; }
4803 cat >>confdefs.h <<_ACEOF
4804 #define ASM_GLOBAL_DIRECTIVE ${libc_cv_asm_global_directive}
4809 echo "$as_me:$LINENO: checking for .set assembler directive" >&5
4810 echo $ECHO_N "checking for .set assembler directive... $ECHO_C" >&6
4811 if test "${libc_cv_asm_set_directive+set}" = set; then
4812 echo $ECHO_N "(cached) $ECHO_C" >&6
4814 cat > conftest.s <<EOF
4817 .set glibc_conftest_frobozz,foo
4818 $libc_cv_asm_global_directive glibc_conftest_frobozz
4820 # The alpha-dec-osf1 assembler gives only a warning for `.set'
4821 # (but it doesn't work), so we must do a linking check to be sure.
4822 cat > conftest1.c <<\EOF
4823 extern int glibc_conftest_frobozz;
4824 void _start() { glibc_conftest_frobozz = 1; }
4826 if ${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \
4827 -nostartfiles -nostdlib \
4828 -o conftest conftest.s conftest1.c 1>&5 2>&5; then
4829 libc_cv_asm_set_directive=yes
4831 libc_cv_asm_set_directive=no
4835 echo "$as_me:$LINENO: result: $libc_cv_asm_set_directive" >&5
4836 echo "${ECHO_T}$libc_cv_asm_set_directive" >&6
4837 if test $libc_cv_asm_set_directive = yes; then
4838 cat >>confdefs.h <<\_ACEOF
4839 #define HAVE_ASM_SET_DIRECTIVE 1
4844 echo "$as_me:$LINENO: checking for assembler .type directive prefix" >&5
4845 echo $ECHO_N "checking for assembler .type directive prefix... $ECHO_C" >&6
4846 if test "${libc_cv_asm_type_prefix+set}" = set; then
4847 echo $ECHO_N "(cached) $ECHO_C" >&6
4849 libc_cv_asm_type_prefix=no
4850 for ac_try_prefix in '@' '%' '#'; do
4851 cat > conftest.s <<EOF
4853 ${libc_cv_asm_global_directive} foo
4854 .type foo, ${ac_try_prefix}object
4859 if { ac_try='${CC-cc} $ASFLAGS -c conftest.s 1>&5'
4860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4864 (exit $ac_status); }; }; then
4865 libc_cv_asm_type_prefix=${ac_try_prefix}
4868 test "x$libc_cv_asm_type_prefix" != xno && break
4871 echo "$as_me:$LINENO: result: $libc_cv_asm_type_prefix" >&5
4872 echo "${ECHO_T}$libc_cv_asm_type_prefix" >&6
4873 if test "x$libc_cv_asm_type_prefix" != xno; then
4874 cat >>confdefs.h <<_ACEOF
4875 #define ASM_TYPE_DIRECTIVE_PREFIX ${libc_cv_asm_type_prefix}
4880 # The Aix ld uses global .symbol_names instead of symbol_names.
4881 # Unfortunately also used in the PPC64 ELF ABI.
4882 case "${os}${machine}" in
4883 aix4.3* | linux*powerpc/powerpc64*)
4884 cat >>confdefs.h <<\_ACEOF
4885 #define HAVE_ASM_GLOBAL_DOT_NAME 1
4890 echo "$as_me:$LINENO: checking for .symver assembler directive" >&5
4891 echo $ECHO_N "checking for .symver assembler directive... $ECHO_C" >&6
4892 if test "${libc_cv_asm_symver_directive+set}" = set; then
4893 echo $ECHO_N "(cached) $ECHO_C" >&6
4895 cat > conftest.s <<EOF
4898 .symver _sym,sym@VERS
4900 if ${CC-cc} -c $ASFLAGS conftest.s 1>&5 2>&5; then
4901 libc_cv_asm_symver_directive=yes
4903 libc_cv_asm_symver_directive=no
4907 echo "$as_me:$LINENO: result: $libc_cv_asm_symver_directive" >&5
4908 echo "${ECHO_T}$libc_cv_asm_symver_directive" >&6
4909 echo "$as_me:$LINENO: checking for ld --version-script" >&5
4910 echo $ECHO_N "checking for ld --version-script... $ECHO_C" >&6
4911 if test "${libc_cv_ld_version_script_option+set}" = set; then
4912 echo $ECHO_N "(cached) $ECHO_C" >&6
4914 if test $libc_cv_asm_symver_directive = yes; then
4915 cat > conftest.s <<EOF
4918 .symver _sym,sym@VERS
4920 cat > conftest.map <<EOF
4929 if ${CC-cc} -c $ASFLAGS conftest.s 1>&5 2>&5; then
4930 if { ac_try='${CC-cc} $CFLAGS $LDFLAGS -shared
4931 -o conftest.so conftest.o
4932 -nostartfiles -nostdlib
4933 -Wl,--version-script,conftest.map
4935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4939 (exit $ac_status); }; };
4941 libc_cv_ld_version_script_option=yes
4943 libc_cv_ld_version_script_option=no
4946 libc_cv_ld_version_script_option=no
4949 libc_cv_ld_version_script_option=no
4953 echo "$as_me:$LINENO: result: $libc_cv_ld_version_script_option" >&5
4954 echo "${ECHO_T}$libc_cv_ld_version_script_option" >&6
4955 if test $shared != no &&
4956 test $libc_cv_asm_symver_directive = yes &&
4957 test $libc_cv_ld_version_script_option = yes &&
4958 test $enable_versioning = yes; then
4960 cat >>confdefs.h <<\_ACEOF
4961 #define DO_VERSIONING 1
4969 if test $elf = yes && test $shared != no && test $VERSIONING = no; then
4971 *** WARNING: You should not compile GNU libc without versioning. Not using
4972 *** versioning will introduce incompatibilities so that old binaries
4973 *** will not run anymore.
4974 *** For versioning you need recent binutils (binutils-2.8.1.0.23 or newer)."
4976 if test $elf = yes; then
4977 echo "$as_me:$LINENO: checking for .previous assembler directive" >&5
4978 echo $ECHO_N "checking for .previous assembler directive... $ECHO_C" >&6
4979 if test "${libc_cv_asm_previous_directive+set}" = set; then
4980 echo $ECHO_N "(cached) $ECHO_C" >&6
4982 cat > conftest.s <<EOF
4983 .section foo_section
4986 if { ac_try='${CC-cc} -c $ASFLAGS conftest.s 1>&5'
4987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4991 (exit $ac_status); }; }; then
4992 libc_cv_asm_previous_directive=yes
4994 libc_cv_asm_previous_directive=no
4998 echo "$as_me:$LINENO: result: $libc_cv_asm_previous_directive" >&5
4999 echo "${ECHO_T}$libc_cv_asm_previous_directive" >&6
5000 if test $libc_cv_asm_previous_directive = yes; then
5001 cat >>confdefs.h <<\_ACEOF
5002 #define HAVE_ASM_PREVIOUS_DIRECTIVE 1
5006 echo "$as_me:$LINENO: checking for .popsection assembler directive" >&5
5007 echo $ECHO_N "checking for .popsection assembler directive... $ECHO_C" >&6
5008 if test "${libc_cv_asm_popsection_directive+set}" = set; then
5009 echo $ECHO_N "(cached) $ECHO_C" >&6
5011 cat > conftest.s <<EOF
5012 .pushsection foo_section
5015 if { ac_try='${CC-cc} -c $ASFLAGS conftest.s 1>&5'
5016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5020 (exit $ac_status); }; }; then
5021 libc_cv_asm_popsection_directive=yes
5023 libc_cv_asm_popsection_directive=no
5027 echo "$as_me:$LINENO: result: $libc_cv_asm_popsection_directive" >&5
5028 echo "${ECHO_T}$libc_cv_asm_popsection_directive" >&6
5029 if test $libc_cv_asm_popsection_directive = yes; then
5030 cat >>confdefs.h <<\_ACEOF
5031 #define HAVE_ASM_POPSECTION_DIRECTIVE 1
5036 echo "$as_me:$LINENO: checking for .protected and .hidden assembler directive" >&5
5037 echo $ECHO_N "checking for .protected and .hidden assembler directive... $ECHO_C" >&6
5038 if test "${libc_cv_asm_protected_directive+set}" = set; then
5039 echo $ECHO_N "(cached) $ECHO_C" >&6
5041 cat > conftest.s <<EOF
5047 if { ac_try='${CC-cc} -c $ASFLAGS conftest.s 1>&5'
5048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5052 (exit $ac_status); }; }; then
5053 libc_cv_asm_protected_directive=yes
5055 libc_cv_asm_protected_directive=no
5059 echo "$as_me:$LINENO: result: $libc_cv_asm_protected_directive" >&5
5060 echo "${ECHO_T}$libc_cv_asm_protected_directive" >&6
5062 cat >>confdefs.h <<\_ACEOF
5063 #define HAVE_PROTECTED 1
5066 cat >>confdefs.h <<\_ACEOF
5067 #define HAVE_HIDDEN 1
5071 if test $libc_cv_asm_protected_directive = yes; then
5072 echo "$as_me:$LINENO: checking whether __attribute__((visibility())) is supported" >&5
5073 echo $ECHO_N "checking whether __attribute__((visibility())) is supported... $ECHO_C" >&6
5074 if test "${libc_cv_visibility_attribute+set}" = set; then
5075 echo $ECHO_N "(cached) $ECHO_C" >&6
5077 cat > conftest.c <<EOF
5078 int foo __attribute__ ((visibility ("hidden"))) = 1;
5079 int bar __attribute__ ((visibility ("protected"))) = 1;
5081 libc_cv_visibility_attribute=no
5082 if { ac_try='${CC-cc} -Werror -S conftest.c -o conftest.s 1>&5'
5083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5087 (exit $ac_status); }; }; then
5088 if grep '\.hidden.*foo' conftest.s >/dev/null; then
5089 if grep '\.protected.*bar' conftest.s >/dev/null; then
5090 libc_cv_visibility_attribute=yes
5097 echo "$as_me:$LINENO: result: $libc_cv_visibility_attribute" >&5
5098 echo "${ECHO_T}$libc_cv_visibility_attribute" >&6
5099 if test $libc_cv_visibility_attribute = yes; then
5100 cat >>confdefs.h <<\_ACEOF
5101 #define HAVE_VISIBILITY_ATTRIBUTE 1
5107 if test $libc_cv_visibility_attribute = yes; then
5108 echo "$as_me:$LINENO: checking for broken __attribute__((visibility()))" >&5
5109 echo $ECHO_N "checking for broken __attribute__((visibility()))... $ECHO_C" >&6
5110 if test "${libc_cv_broken_visibility_attribute+set}" = set; then
5111 echo $ECHO_N "(cached) $ECHO_C" >&6
5113 cat > conftest.c <<EOF
5115 int bar (int x) __asm__ ("foo") __attribute__ ((visibility ("hidden")));
5116 int bar (int x) { return x; }
5118 libc_cv_broken_visibility_attribute=yes
5119 if { ac_try='${CC-cc} -Werror -S conftest.c -o conftest.s1>&5'
5120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5124 (exit $ac_status); }; }; then
5125 if grep '\.hidden[ _]foo' conftest.s >/dev/null; then
5126 libc_cv_broken_visibility_attribute=no
5129 rm -f conftest.c conftest.s
5132 echo "$as_me:$LINENO: result: $libc_cv_broken_visibility_attribute" >&5
5133 echo "${ECHO_T}$libc_cv_broken_visibility_attribute" >&6
5134 if test $libc_cv_broken_visibility_attribute = yes; then
5135 cat >>confdefs.h <<\_ACEOF
5136 #define HAVE_BROKEN_VISIBILITY_ATTRIBUTE 1
5142 echo "$as_me:$LINENO: checking for broken __attribute__((alias()))" >&5
5143 echo $ECHO_N "checking for broken __attribute__((alias()))... $ECHO_C" >&6
5144 if test "${libc_cv_broken_alias_attribute+set}" = set; then
5145 echo $ECHO_N "(cached) $ECHO_C" >&6
5147 cat > conftest.c <<EOF
5148 extern int foo (int x) __asm ("xyzzy");
5149 int bar (int x) { return x; }
5150 extern __typeof (bar) foo __attribute ((weak, alias ("bar")));
5152 extern __typeof (dfoo) dfoo __asm ("abccb");
5155 libc_cv_broken_alias_attribute=yes
5156 if { ac_try='${CC-cc} -Werror -S conftest.c -o conftest.s 1>&5'
5157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5161 (exit $ac_status); }; }; then
5162 if grep 'xyzzy' conftest.s >/dev/null &&
5163 grep 'abccb' conftest.s >/dev/null; then
5164 libc_cv_broken_alias_attribute=no
5167 rm -f conftest.c conftest.s
5170 echo "$as_me:$LINENO: result: $libc_cv_broken_alias_attribute" >&5
5171 echo "${ECHO_T}$libc_cv_broken_alias_attribute" >&6
5172 if test $libc_cv_broken_alias_attribute = yes; then
5173 cat >>confdefs.h <<\_ACEOF
5174 #define HAVE_BROKEN_ALIAS_ATTRIBUTE 1
5179 if test $libc_cv_visibility_attribute = yes -a $gnu_ld = yes; then
5180 echo "$as_me:$LINENO: checking whether to put _rtld_local into .sdata section" >&5
5181 echo $ECHO_N "checking whether to put _rtld_local into .sdata section... $ECHO_C" >&6
5182 if test "${libc_cv_have_sdata_section+set}" = set; then
5183 echo $ECHO_N "(cached) $ECHO_C" >&6
5185 echo "int i;" > conftest.c
5186 libc_cv_have_sdata_section=no
5187 if ${CC-cc} $LDFLAGS -shared -Wl,--verbose conftest.c -o conftest.so 2>&1 \
5188 | grep '\.sdata' >/dev/null; then
5189 libc_cv_have_sdata_section=yes
5191 rm -f conftest.c conftest.so
5194 echo "$as_me:$LINENO: result: $libc_cv_have_sdata_section" >&5
5195 echo "${ECHO_T}$libc_cv_have_sdata_section" >&6
5196 if test $libc_cv_have_sdata_section = yes; then
5197 cat >>confdefs.h <<\_ACEOF
5198 #define HAVE_SDATA_SECTION 1
5204 echo "$as_me:$LINENO: checking for .preinit_array/.init_array/.fini_array support" >&5
5205 echo $ECHO_N "checking for .preinit_array/.init_array/.fini_array support... $ECHO_C" >&6
5206 if test "${libc_cv_initfinit_array+set}" = set; then
5207 echo $ECHO_N "(cached) $ECHO_C" >&6
5209 cat > conftest.c <<EOF
5210 int _start (void) { return 0; }
5211 int __start (void) { return 0; }
5212 int foo (void) { return 1; }
5213 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
5215 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS -o conftest conftest.c
5216 -static -nostartfiles -nostdlib 1>&5'
5217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5221 (exit $ac_status); }; }
5223 if readelf -S conftest | fgrep INIT_ARRAY > /dev/null; then
5224 libc_cv_initfinit_array=yes
5226 libc_cv_initfinit_array=no
5229 libc_cv_initfinit_array=no
5233 echo "$as_me:$LINENO: result: $libc_cv_initfinit_array" >&5
5234 echo "${ECHO_T}$libc_cv_initfinit_array" >&6
5236 if test $libc_cv_initfinit_array = yes; then
5237 cat >>confdefs.h <<\_ACEOF
5238 #define HAVE_INITFINI_ARRAY 1
5243 echo "$as_me:$LINENO: checking for libunwind-support in compiler" >&5
5244 echo $ECHO_N "checking for libunwind-support in compiler... $ECHO_C" >&6
5245 if test "${libc_cv_cc_with_libunwind+set}" = set; then
5246 echo $ECHO_N "(cached) $ECHO_C" >&6
5248 cat >conftest.$ac_ext <<_ACEOF
5249 #line $LINENO "configure"
5252 cat confdefs.h >>conftest.$ac_ext
5253 cat >>conftest.$ac_ext <<_ACEOF
5254 /* end confdefs.h. */
5255 #include <libunwind.h>
5262 unw_getcontext (&uc);
5263 unw_init_local (&c, &uc)
5268 rm -f conftest.$ac_objext conftest$ac_exeext
5269 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5270 (eval $ac_link) 2>&5
5272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5273 (exit $ac_status); } &&
5274 { ac_try='test -s conftest$ac_exeext'
5275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5279 (exit $ac_status); }; }; then
5280 libc_cv_cc_with_libunwind=yes
5282 echo "$as_me: failed program was:" >&5
5283 sed 's/^/| /' conftest.$ac_ext >&5
5285 libc_cv_cc_with_libunwind=no
5287 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5289 echo "$as_me:$LINENO: result: $libc_cv_cc_with_libunwind" >&5
5290 echo "${ECHO_T}$libc_cv_cc_with_libunwind" >&6
5292 if test $libc_cv_cc_with_libunwind = yes; then
5293 cat >>confdefs.h <<\_ACEOF
5294 #define HAVE_CC_WITH_LIBUNWIND 1
5299 echo "$as_me:$LINENO: checking for -z nodelete option" >&5
5300 echo $ECHO_N "checking for -z nodelete option... $ECHO_C" >&6
5301 if test "${libc_cv_z_nodelete+set}" = set; then
5302 echo $ECHO_N "(cached) $ECHO_C" >&6
5304 cat > conftest.c <<EOF
5305 int _start (void) { return 42; }
5307 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
5308 -shared -o conftest.so conftest.c
5309 -nostartfiles -nostdlib
5310 -Wl,--enable-new-dtags,-z,nodelete 1>&5'
5311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5315 (exit $ac_status); }; }
5317 libc_cv_z_nodelete=yes
5319 libc_cv_z_nodelete=no
5323 echo "$as_me:$LINENO: result: $libc_cv_z_nodelete" >&5
5324 echo "${ECHO_T}$libc_cv_z_nodelete" >&6
5327 echo "$as_me:$LINENO: checking for -z nodlopen option" >&5
5328 echo $ECHO_N "checking for -z nodlopen option... $ECHO_C" >&6
5329 if test "${libc_cv_z_nodlopen+set}" = set; then
5330 echo $ECHO_N "(cached) $ECHO_C" >&6
5332 cat > conftest.c <<EOF
5333 int _start (void) { return 42; }
5335 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
5336 -shared -o conftest.so conftest.c
5337 -nostartfiles -nostdlib
5338 -Wl,--enable-new-dtags,-z,nodlopen 1>&5'
5339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5343 (exit $ac_status); }; }
5345 libc_cv_z_nodlopen=yes
5347 libc_cv_z_nodlopen=no
5351 echo "$as_me:$LINENO: result: $libc_cv_z_nodlopen" >&5
5352 echo "${ECHO_T}$libc_cv_z_nodlopen" >&6
5355 echo "$as_me:$LINENO: checking for -z initfirst option" >&5
5356 echo $ECHO_N "checking for -z initfirst option... $ECHO_C" >&6
5357 if test "${libc_cv_z_initfirst+set}" = set; then
5358 echo $ECHO_N "(cached) $ECHO_C" >&6
5360 cat > conftest.c <<EOF
5361 int _start (void) { return 42; }
5363 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
5364 -shared -o conftest.so conftest.c
5365 -nostartfiles -nostdlib
5366 -Wl,--enable-new-dtags,-z,initfirst 1>&5'
5367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5371 (exit $ac_status); }; }
5373 libc_cv_z_initfirst=yes
5375 libc_cv_z_initfirst=no
5379 echo "$as_me:$LINENO: result: $libc_cv_z_initfirst" >&5
5380 echo "${ECHO_T}$libc_cv_z_initfirst" >&6
5383 echo "$as_me:$LINENO: checking for -z relro option" >&5
5384 echo $ECHO_N "checking for -z relro option... $ECHO_C" >&6
5385 if test "${libc_cv_z_relro+set}" = set; then
5386 echo $ECHO_N "(cached) $ECHO_C" >&6
5388 if { ac_try='${CC-cc} -v --help 2>&1|grep "z relro" 1>&5'
5389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5393 (exit $ac_status); }; }
5400 echo "$as_me:$LINENO: result: $libc_cv_z_relro" >&5
5401 echo "${ECHO_T}$libc_cv_z_relro" >&6
5403 if test $libc_cv_z_relro = yes; then
5404 cat >>confdefs.h <<\_ACEOF
5405 #define HAVE_Z_RELRO 1
5410 echo "$as_me:$LINENO: checking for -Bgroup option" >&5
5411 echo $ECHO_N "checking for -Bgroup option... $ECHO_C" >&6
5412 if test "${libc_cv_Bgroup+set}" = set; then
5413 echo $ECHO_N "(cached) $ECHO_C" >&6
5415 cat > conftest.c <<EOF
5416 int _start (void) { return 42; }
5418 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
5419 -shared -o conftest.so conftest.c
5420 -Wl,-Bgroup -nostdlib 1>&5'
5421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5425 (exit $ac_status); }; }
5433 echo "$as_me:$LINENO: result: $libc_cv_Bgroup" >&5
5434 echo "${ECHO_T}$libc_cv_Bgroup" >&6
5437 echo "$as_me:$LINENO: checking for libgcc_s suffix" >&5
5438 echo $ECHO_N "checking for libgcc_s suffix... $ECHO_C" >&6
5439 if test "${libc_cv_libgcc_s_suffix+set}" = set; then
5440 echo $ECHO_N "(cached) $ECHO_C" >&6
5442 cat > conftest.c <<EOF
5443 int main (void) { return 0; }
5445 libc_cv_libgcc_s_suffix=`${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \
5446 -shared -shared-libgcc -o conftest.so \
5447 conftest.c -v 2>&1 >/dev/null \
5448 | sed -n 's/^.* -lgcc_s\([^ ]*\) .*$/\1/p'`
5451 echo "$as_me:$LINENO: result: $libc_cv_libgcc_s_suffix" >&5
5452 echo "${ECHO_T}$libc_cv_libgcc_s_suffix" >&6
5455 echo "$as_me:$LINENO: checking for --as-needed option" >&5
5456 echo $ECHO_N "checking for --as-needed option... $ECHO_C" >&6
5457 if test "${libc_cv_as_needed+set}" = set; then
5458 echo $ECHO_N "(cached) $ECHO_C" >&6
5460 cat > conftest.c <<EOF
5461 int main (void) { return 0; }
5463 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
5464 -shared -o conftest.so conftest.c
5465 -lgcc_s$libc_cv_libgcc_s_suffix -Wl,--as-needed
5467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5471 (exit $ac_status); }; }
5473 libc_cv_as_needed=yes
5475 libc_cv_as_needed=no
5479 echo "$as_me:$LINENO: result: $libc_cv_as_needed" >&5
5480 echo "${ECHO_T}$libc_cv_as_needed" >&6
5484 echo "$as_me:$LINENO: checking whether --noexecstack is desirable for .S files" >&5
5485 echo $ECHO_N "checking whether --noexecstack is desirable for .S files... $ECHO_C" >&6
5486 if test "${libc_cv_as_noexecstack+set}" = set; then
5487 echo $ECHO_N "(cached) $ECHO_C" >&6
5489 cat > conftest.c <<EOF
5492 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS
5493 -S -o conftest.s conftest.c 1>&5'
5494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5498 (exit $ac_status); }; } \
5499 && grep -q .note.GNU-stack conftest.s \
5500 && { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -Wa,--noexecstack
5501 -c -o conftest.o conftest.s 1>&5'
5502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5506 (exit $ac_status); }; }
5508 libc_cv_as_noexecstack=yes
5510 libc_cv_as_noexecstack=no
5514 echo "$as_me:$LINENO: result: $libc_cv_as_noexecstack" >&5
5515 echo "${ECHO_T}$libc_cv_as_noexecstack" >&6
5516 if test $libc_cv_as_noexecstack = yes; then
5517 ASFLAGS_config="$ASFLAGS_config -Wa,--noexecstack"
5521 echo "$as_me:$LINENO: checking for -z combreloc" >&5
5522 echo $ECHO_N "checking for -z combreloc... $ECHO_C" >&6
5523 if test "${libc_cv_z_combreloc+set}" = set; then
5524 echo $ECHO_N "(cached) $ECHO_C" >&6
5526 cat > conftest.c <<EOF
5527 extern int bar (int);
5529 int foo (void) { return bar (mumble); }
5531 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
5532 -shared -o conftest.so conftest.c
5533 -nostdlib -nostartfiles
5534 -Wl,-z,combreloc 1>&5'
5535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5539 (exit $ac_status); }; }
5541 if readelf -S conftest.so | grep '\.rel\(a\|\)\.dyn' > /dev/null; then
5542 libc_cv_z_combreloc=yes
5544 libc_cv_z_combreloc=no
5547 libc_cv_z_combreloc=no
5551 echo "$as_me:$LINENO: result: $libc_cv_z_combreloc" >&5
5552 echo "${ECHO_T}$libc_cv_z_combreloc" >&6
5553 if test "$libc_cv_z_combreloc" = yes; then
5554 cat >>confdefs.h <<\_ACEOF
5555 #define HAVE_Z_COMBRELOC 1
5561 echo "$as_me:$LINENO: checking for -z execstack" >&5
5562 echo $ECHO_N "checking for -z execstack... $ECHO_C" >&6
5563 if test "${libc_cv_z_execstack+set}" = set; then
5564 echo $ECHO_N "(cached) $ECHO_C" >&6
5566 cat > conftest.c <<EOF
5567 int _start (void) { return 42; }
5569 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
5570 -shared -o conftest.so conftest.c
5571 -Wl,-z,execstack -nostdlib
5573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5577 (exit $ac_status); }; }
5579 libc_cv_z_execstack=yes
5581 libc_cv_z_execstack=no
5585 echo "$as_me:$LINENO: result: $libc_cv_z_execstack" >&5
5586 echo "${ECHO_T}$libc_cv_z_execstack" >&6
5589 echo "$as_me:$LINENO: checking for -fpie" >&5
5590 echo $ECHO_N "checking for -fpie... $ECHO_C" >&6
5591 if test "${libc_cv_fpie+set}" = set; then
5592 echo $ECHO_N "(cached) $ECHO_C" >&6
5594 cat > conftest.c <<EOF
5596 main () { return 0;}
5598 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS -pie -fpie
5599 -o conftest conftest.c 1>&5'
5600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5604 (exit $ac_status); }; }
5612 echo "$as_me:$LINENO: result: $libc_cv_fpie" >&5
5613 echo "${ECHO_T}$libc_cv_fpie" >&6
5618 echo "$as_me:$LINENO: checking for -fno-unit-at-a-time" >&5
5619 echo $ECHO_N "checking for -fno-unit-at-a-time... $ECHO_C" >&6
5620 if test "${libc_cv_fno_unit_at_a_time+set}" = set; then
5621 echo $ECHO_N "(cached) $ECHO_C" >&6
5623 cat > conftest.c <<EOF
5626 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -S -fno-unit-at-a-time
5628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5632 (exit $ac_status); }; }
5634 libc_cv_fno_unit_at_a_time=yes
5636 libc_cv_fno_unit_at_a_time=no
5640 echo "$as_me:$LINENO: result: $libc_cv_fno_unit_at_a_time" >&5
5641 echo "${ECHO_T}$libc_cv_fno_unit_at_a_time" >&6
5642 if test $libc_cv_fno_unit_at_a_time = yes; then
5643 fno_unit_at_a_time=-fno-unit-at-a-time
5647 if test $elf != yes; then
5648 echo "$as_me:$LINENO: checking for .init and .fini sections" >&5
5649 echo $ECHO_N "checking for .init and .fini sections... $ECHO_C" >&6
5650 if test "${libc_cv_have_initfini+set}" = set; then
5651 echo $ECHO_N "(cached) $ECHO_C" >&6
5653 cat >conftest.$ac_ext <<_ACEOF
5654 #line $LINENO "configure"
5657 cat confdefs.h >>conftest.$ac_ext
5658 cat >>conftest.$ac_ext <<_ACEOF
5659 /* end confdefs.h. */
5664 asm (".section .init");
5665 asm (".section .fini");
5666 asm ("${libc_cv_dot_text}");
5671 rm -f conftest.$ac_objext
5672 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5673 (eval $ac_compile) 2>&5
5675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5676 (exit $ac_status); } &&
5677 { ac_try='test -s conftest.$ac_objext'
5678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5682 (exit $ac_status); }; }; then
5683 libc_cv_have_initfini=yes
5685 echo "$as_me: failed program was:" >&5
5686 sed 's/^/| /' conftest.$ac_ext >&5
5688 libc_cv_have_initfini=no
5690 rm -f conftest.$ac_objext conftest.$ac_ext
5692 echo "$as_me:$LINENO: result: $libc_cv_have_initfini" >&5
5693 echo "${ECHO_T}$libc_cv_have_initfini" >&6
5694 if test $libc_cv_have_initfini = yes; then
5695 cat >>confdefs.h <<\_ACEOF
5696 #define HAVE_INITFINI 1
5702 if test $elf = yes -a $gnu_ld = yes; then
5703 echo "$as_me:$LINENO: checking whether cc puts quotes around section names" >&5
5704 echo $ECHO_N "checking whether cc puts quotes around section names... $ECHO_C" >&6
5705 if test "${libc_cv_have_section_quotes+set}" = set; then
5706 echo $ECHO_N "(cached) $ECHO_C" >&6
5708 cat > conftest.c <<EOF
5709 static const int foo
5710 __attribute__ ((section ("bar"))) = 1;
5712 if ${CC-cc} -S conftest.c -o conftest.s; then
5713 if grep '\.section.*"bar"' conftest.s >/dev/null; then
5714 libc_cv_have_section_quotes=yes
5716 libc_cv_have_section_quotes=no
5719 libc_cv_have_section_quotes=unknown
5724 echo "$as_me:$LINENO: result: $libc_cv_have_section_quotes" >&5
5725 echo "${ECHO_T}$libc_cv_have_section_quotes" >&6
5726 if test $libc_cv_have_section_quotes = yes; then
5727 cat >>confdefs.h <<\_ACEOF
5728 #define HAVE_SECTION_QUOTES 1
5736 if test $elf = yes; then
5737 libc_cv_asm_underscores=no
5739 if test $ac_cv_prog_cc_works = yes; then
5740 echo "$as_me:$LINENO: checking for _ prefix on C symbol names" >&5
5741 echo $ECHO_N "checking for _ prefix on C symbol names... $ECHO_C" >&6
5742 if test "${libc_cv_asm_underscores+set}" = set; then
5743 echo $ECHO_N "(cached) $ECHO_C" >&6
5745 cat >conftest.$ac_ext <<_ACEOF
5746 #line $LINENO "configure"
5749 cat confdefs.h >>conftest.$ac_ext
5750 cat >>conftest.$ac_ext <<_ACEOF
5751 /* end confdefs.h. */
5752 asm ("_glibc_foobar:");
5761 rm -f conftest.$ac_objext conftest$ac_exeext
5762 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5763 (eval $ac_link) 2>&5
5765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5766 (exit $ac_status); } &&
5767 { ac_try='test -s conftest$ac_exeext'
5768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5772 (exit $ac_status); }; }; then
5773 libc_cv_asm_underscores=yes
5775 echo "$as_me: failed program was:" >&5
5776 sed 's/^/| /' conftest.$ac_ext >&5
5778 libc_cv_asm_underscores=no
5780 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5782 echo "$as_me:$LINENO: result: $libc_cv_asm_underscores" >&5
5783 echo "${ECHO_T}$libc_cv_asm_underscores" >&6
5785 echo "$as_me:$LINENO: checking for _ prefix on C symbol names" >&5
5786 echo $ECHO_N "checking for _ prefix on C symbol names... $ECHO_C" >&6
5787 if test "${libc_cv_asm_underscores+set}" = set; then
5788 echo $ECHO_N "(cached) $ECHO_C" >&6
5790 cat > conftest.$ac_ext <<EOF
5791 #line $LINENO "configure"
5792 #include "confdefs.h"
5793 void underscore_test(void) {
5796 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5797 (eval $ac_compile) 2>&5
5799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5800 (exit $ac_status); }; then
5801 if grep _underscore_test conftest* >/dev/null; then
5803 libc_cv_asm_underscores=yes
5806 libc_cv_asm_underscores=no
5809 echo "configure: failed program was:" >&5
5810 cat conftest.$ac_ext >&5
5812 libc_cv_asm_underscores=no
5816 echo "$as_me:$LINENO: result: $libc_cv_asm_underscores" >&5
5817 echo "${ECHO_T}$libc_cv_asm_underscores" >&6
5820 if test $libc_cv_asm_underscores = no; then
5821 cat >>confdefs.h <<\_ACEOF
5822 #define NO_UNDERSCORES 1
5827 if test $elf = yes; then
5828 libc_cv_weak_symbols=yes
5831 echo "$as_me:$LINENO: checking for assembler .weak directive" >&5
5832 echo $ECHO_N "checking for assembler .weak directive... $ECHO_C" >&6
5833 if test "${libc_cv_asm_weak_directive+set}" = set; then
5834 echo $ECHO_N "(cached) $ECHO_C" >&6
5836 cat > conftest.s <<EOF
5838 ${libc_cv_asm_global_directive} foo
5841 .weak bar; bar = foo
5843 if { ac_try='${CC-cc} $ASFLAGS -c conftest.s 1>&5'
5844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5848 (exit $ac_status); }; }; then
5849 libc_cv_asm_weak_directive=yes
5851 libc_cv_asm_weak_directive=no
5855 echo "$as_me:$LINENO: result: $libc_cv_asm_weak_directive" >&5
5856 echo "${ECHO_T}$libc_cv_asm_weak_directive" >&6
5858 if test $libc_cv_asm_weak_directive = no; then
5859 echo "$as_me:$LINENO: checking for assembler .weakext directive" >&5
5860 echo $ECHO_N "checking for assembler .weakext directive... $ECHO_C" >&6
5861 if test "${libc_cv_asm_weakext_directive+set}" = set; then
5862 echo $ECHO_N "(cached) $ECHO_C" >&6
5864 cat > conftest.s <<EOF
5866 ${libc_cv_asm_global_directive} foo
5870 ${libc_cv_asm_global_directive} baz
5873 if { ac_try='${CC-cc} $ASFLAGS -c conftest.s 1>&5'
5874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5878 (exit $ac_status); }; }; then
5879 libc_cv_asm_weakext_directive=yes
5881 libc_cv_asm_weakext_directive=no
5885 echo "$as_me:$LINENO: result: $libc_cv_asm_weakext_directive" >&5
5886 echo "${ECHO_T}$libc_cv_asm_weakext_directive" >&6
5890 if test $libc_cv_asm_weak_directive = yes; then
5891 cat >>confdefs.h <<\_ACEOF
5892 #define HAVE_ASM_WEAK_DIRECTIVE 1
5895 elif test $libc_cv_asm_weakext_directive = yes; then
5896 cat >>confdefs.h <<\_ACEOF
5897 #define HAVE_ASM_WEAKEXT_DIRECTIVE 1
5902 case "${host_cpu}-${host_os}" in
5904 libc_cv_asm_line_sep='@'
5905 cat >>confdefs.h <<_ACEOF
5906 #define ASM_LINE_SEP $libc_cv_asm_line_sep
5911 echo "$as_me:$LINENO: checking for assembler line separator" >&5
5912 echo $ECHO_N "checking for assembler line separator... $ECHO_C" >&6
5913 if test "${libc_cv_asm_line_sep+set}" = set; then
5914 echo $ECHO_N "(cached) $ECHO_C" >&6
5916 cat > conftest.s <<EOF
5919 if { ac_try='${CC-cc} -c $ASFLAGS conftest.s 1>&5'
5920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5924 (exit $ac_status); }; }; then
5925 libc_cv_asm_line_sep='!'
5927 if test -z "$enable_hacker_mode"; then
5928 echo "*** You need a newer assembler to compile glibc"
5932 libc_cv_asm_line_sep=';'
5936 echo "$as_me:$LINENO: result: $libc_cv_asm_line_sep" >&5
5937 echo "${ECHO_T}$libc_cv_asm_line_sep" >&6
5938 cat >>confdefs.h <<_ACEOF
5939 #define ASM_LINE_SEP $libc_cv_asm_line_sep
5945 echo "$as_me:$LINENO: checking whether CFI directives are supported" >&5
5946 echo $ECHO_N "checking whether CFI directives are supported... $ECHO_C" >&6
5947 if test "${libc_cv_asm_cfi_directives+set}" = set; then
5948 echo $ECHO_N "(cached) $ECHO_C" >&6
5950 cat > conftest.s <<EOF
5952 .type func,@function
5956 .cfi_rel_offset 1, 0
5959 if { ac_try='${CC-cc} $ASFLAGS -c conftest.s 1>&5'
5960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5964 (exit $ac_status); }; }; then
5965 libc_cv_asm_cfi_directives=yes
5967 libc_cv_asm_cfi_directives=no
5971 echo "$as_me:$LINENO: result: $libc_cv_asm_cfi_directives" >&5
5972 echo "${ECHO_T}$libc_cv_asm_cfi_directives" >&6
5973 if test $libc_cv_asm_cfi_directives = yes; then
5974 cat >>confdefs.h <<\_ACEOF
5975 #define HAVE_ASM_CFI_DIRECTIVES 1
5980 echo "$as_me:$LINENO: checking if -g produces usable source locations for assembler-with-cpp" >&5
5981 echo $ECHO_N "checking if -g produces usable source locations for assembler-with-cpp... $ECHO_C" >&6
5982 if test "${libc_cv_cpp_asm_debuginfo+set}" = set; then
5983 echo $ECHO_N "(cached) $ECHO_C" >&6
5985 cat > conftest.S <<EOF
5986 #include "confdefs.h"
5991 ${libc_cv_asm_global_directive} foo
5993 /* Unfortunately this test only works for a real instruction,
5994 not for any of the machine-independent pseudo-ops.
5995 So we just have to assume everybody has a "nop". */
6002 if { ac_try='${CC-cc} $CPPFLAGS $ASFLAGS -g -c conftest.S 1>&5'
6003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6007 (exit $ac_status); }; } &&
6008 ac_pattern='conftest\.S'
6009 { ac_try='readelf --debug-dump=line conftest.o |
6010 grep $ac_pattern 1>&5'
6011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6015 (exit $ac_status); }; }; then
6016 libc_cv_cpp_asm_debuginfo=yes
6018 libc_cv_cpp_asm_debuginfo=no
6022 echo "$as_me:$LINENO: result: $libc_cv_cpp_asm_debuginfo" >&5
6023 echo "${ECHO_T}$libc_cv_cpp_asm_debuginfo" >&6
6024 if test $libc_cv_cpp_asm_debuginfo = yes; then
6025 cat >>confdefs.h <<\_ACEOF
6026 #define HAVE_CPP_ASM_DEBUGINFO 1
6031 echo "$as_me:$LINENO: checking for ld --no-whole-archive" >&5
6032 echo $ECHO_N "checking for ld --no-whole-archive... $ECHO_C" >&6
6033 if test "${libc_cv_ld_no_whole_archive+set}" = set; then
6034 echo $ECHO_N "(cached) $ECHO_C" >&6
6036 cat > conftest.c <<\EOF
6041 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
6042 -nostdlib -nostartfiles -Wl,--no-whole-archive
6043 -o conftest conftest.c 1>&5'
6044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6048 (exit $ac_status); }; }; then
6049 libc_cv_ld_no_whole_archive=yes
6051 libc_cv_ld_no_whole_archive=no
6055 echo "$as_me:$LINENO: result: $libc_cv_ld_no_whole_archive" >&5
6056 echo "${ECHO_T}$libc_cv_ld_no_whole_archive" >&6
6057 if test $libc_cv_ld_no_whole_archive = yes; then
6058 no_whole_archive=-Wl,--no-whole-archive
6061 echo "$as_me:$LINENO: checking for gcc -fexceptions" >&5
6062 echo $ECHO_N "checking for gcc -fexceptions... $ECHO_C" >&6
6063 if test "${libc_cv_gcc_exceptions+set}" = set; then
6064 echo $ECHO_N "(cached) $ECHO_C" >&6
6066 cat > conftest.c <<\EOF
6071 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
6072 -nostdlib -nostartfiles -fexceptions
6073 -o conftest conftest.c 1>&5'
6074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6078 (exit $ac_status); }; }; then
6079 libc_cv_gcc_exceptions=yes
6081 libc_cv_gcc_exceptions=no
6085 echo "$as_me:$LINENO: result: $libc_cv_gcc_exceptions" >&5
6086 echo "${ECHO_T}$libc_cv_gcc_exceptions" >&6
6087 if test $libc_cv_gcc_exceptions = yes; then
6088 exceptions=-fexceptions
6091 if test "$host_cpu" = powerpc ; then
6092 # Check for a bug present in at least versions 2.8.x of GCC
6093 # and versions 1.0.x of EGCS.
6094 echo "$as_me:$LINENO: checking whether clobbering cr0 causes problems" >&5
6095 echo $ECHO_N "checking whether clobbering cr0 causes problems... $ECHO_C" >&6
6096 if test "${libc_cv_c_asmcr0_bug+set}" = set; then
6097 echo $ECHO_N "(cached) $ECHO_C" >&6
6099 cat >conftest.$ac_ext <<_ACEOF
6100 #line $LINENO "configure"
6103 cat confdefs.h >>conftest.$ac_ext
6104 cat >>conftest.$ac_ext <<_ACEOF
6105 /* end confdefs.h. */
6106 int tester(int x) { asm ("" : : : "cc"); return x & 123; }
6115 rm -f conftest.$ac_objext
6116 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6117 (eval $ac_compile) 2>&5
6119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6120 (exit $ac_status); } &&
6121 { ac_try='test -s conftest.$ac_objext'
6122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6126 (exit $ac_status); }; }; then
6127 libc_cv_c_asmcr0_bug='no'
6129 echo "$as_me: failed program was:" >&5
6130 sed 's/^/| /' conftest.$ac_ext >&5
6132 libc_cv_c_asmcr0_bug='yes'
6134 rm -f conftest.$ac_objext conftest.$ac_ext
6136 echo "$as_me:$LINENO: result: $libc_cv_c_asmcr0_bug" >&5
6137 echo "${ECHO_T}$libc_cv_c_asmcr0_bug" >&6
6138 if test "$libc_cv_c_asmcr0_bug" != 'no'; then
6139 cat >>confdefs.h <<\_ACEOF
6140 #define BROKEN_PPC_ASM_CR0 1
6146 echo "$as_me:$LINENO: checking for DWARF2 unwind info support" >&5
6147 echo $ECHO_N "checking for DWARF2 unwind info support... $ECHO_C" >&6
6148 if test "${libc_cv_gcc_dwarf2_unwind_info+set}" = set; then
6149 echo $ECHO_N "(cached) $ECHO_C" >&6
6151 cat > conftest.c <<EOF
6152 #line $LINENO "configure"
6153 static char *__EH_FRAME_BEGIN__;
6156 #ifdef CHECK__register_frame
6157 __register_frame (__EH_FRAME_BEGIN__);
6158 __deregister_frame (__EH_FRAME_BEGIN__);
6160 #ifdef CHECK__register_frame_info
6161 __register_frame_info (__EH_FRAME_BEGIN__);
6162 __deregister_frame_info (__EH_FRAME_BEGIN__);
6167 /* FIXME: this is fragile. */
6176 dl_iterate_phdr () {}
6178 libc_unwind_check="${CC-cc} $CFLAGS $CPPFLAGS -DCHECK__register_frame_info \
6180 -nostdlib -nostartfiles -o conftest conftest.c \
6182 # Some platforms' specs put -lgcc first. The second one doesn't hurt.
6183 if { ac_try='$libc_unwind_check >&5'
6184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6188 (exit $ac_status); }; } ||
6189 { ac_try='$libc_unwind_check -lgcc_eh -lgcc >&5'
6190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6194 (exit $ac_status); }; }
6196 if $libc_unwind_check -v 2>&1 >/dev/null \
6197 | grep -- --eh-frame-hdr 2>&1 >/dev/null; then
6198 libc_cv_gcc_dwarf2_unwind_info=no_registry_needed
6200 libc_cv_gcc_dwarf2_unwind_info=static
6203 libc_cv_gcc_dwarf2_unwind_info=no
6205 if test $libc_cv_gcc_dwarf2_unwind_info = no; then
6206 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -DCHECK__register_frame
6207 $LDFLAGS -nostdlib -nostartfiles
6208 -o conftest conftest.c -lgcc >&5'
6209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6213 (exit $ac_status); }; }; then
6214 libc_cv_gcc_dwarf2_unwind_info=yes
6216 libc_cv_gcc_dwarf2_unwind_info=no
6221 echo "$as_me:$LINENO: result: $libc_cv_gcc_dwarf2_unwind_info" >&5
6222 echo "${ECHO_T}$libc_cv_gcc_dwarf2_unwind_info" >&6
6223 case $libc_cv_gcc_dwarf2_unwind_info in
6225 cat >>confdefs.h <<\_ACEOF
6226 #define HAVE_DWARF2_UNWIND_INFO 1
6231 cat >>confdefs.h <<\_ACEOF
6232 #define HAVE_DWARF2_UNWIND_INFO 1
6235 cat >>confdefs.h <<\_ACEOF
6236 #define HAVE_DWARF2_UNWIND_INFO_STATIC 1
6242 echo "$as_me:$LINENO: checking for __builtin_expect" >&5
6243 echo $ECHO_N "checking for __builtin_expect... $ECHO_C" >&6
6244 if test "${libc_cv_gcc_builtin_expect+set}" = set; then
6245 echo $ECHO_N "(cached) $ECHO_C" >&6
6247 cat > conftest.c <<EOF
6248 #line $LINENO "configure"
6251 a = __builtin_expect (a, 10);
6252 return a == 10 ? 0 : 1;
6255 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS -nostdlib -nostartfiles
6256 -o conftest conftest.c -lgcc >&5'
6257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6261 (exit $ac_status); }; }; then
6262 libc_cv_gcc_builtin_expect=yes
6264 libc_cv_gcc_builtin_expect=no
6268 echo "$as_me:$LINENO: result: $libc_cv_gcc_builtin_expect" >&5
6269 echo "${ECHO_T}$libc_cv_gcc_builtin_expect" >&6
6270 if test "$libc_cv_gcc_builtin_expect" = yes; then
6271 cat >>confdefs.h <<\_ACEOF
6272 #define HAVE_BUILTIN_EXPECT 1
6277 echo "$as_me:$LINENO: checking for __builtin_memset" >&5
6278 echo $ECHO_N "checking for __builtin_memset... $ECHO_C" >&6
6279 if test "${libc_cv_gcc_builtin_memset+set}" = set; then
6280 echo $ECHO_N "(cached) $ECHO_C" >&6
6282 cat > conftest.c <<\EOF
6285 __builtin_memset (x, 0, 1000);
6288 if { ac_try='${CC-cc} -O3 -S conftest.c -o - | fgrep "memset" > /dev/null'
6289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6293 (exit $ac_status); }; };
6295 libc_cv_gcc_builtin_memset=no
6297 libc_cv_gcc_builtin_memset=yes
6301 echo "$as_me:$LINENO: result: $libc_cv_gcc_builtin_memset" >&5
6302 echo "${ECHO_T}$libc_cv_gcc_builtin_memset" >&6
6303 if test "$libc_cv_gcc_builtin_memset" = yes ; then
6304 cat >>confdefs.h <<\_ACEOF
6305 #define HAVE_BUILTIN_MEMSET 1
6310 echo "$as_me:$LINENO: checking for redirection of built-in functions" >&5
6311 echo $ECHO_N "checking for redirection of built-in functions... $ECHO_C" >&6
6312 if test "${libc_cv_gcc_builtin_redirection+set}" = set; then
6313 echo $ECHO_N "(cached) $ECHO_C" >&6
6315 cat > conftest.c <<\EOF
6316 extern char *strstr (const char *, const char *) __asm ("my_strstr");
6317 char *foo (const char *a, const char *b)
6319 return __builtin_strstr (a, b);
6322 if { ac_try='${CC-cc} -O3 -S conftest.c -o - | fgrep "my_strstr" > /dev/null'
6323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6327 (exit $ac_status); }; };
6329 libc_cv_gcc_builtin_redirection=yes
6331 libc_cv_gcc_builtin_redirection=no
6335 echo "$as_me:$LINENO: result: $libc_cv_gcc_builtin_redirection" >&5
6336 echo "${ECHO_T}$libc_cv_gcc_builtin_redirection" >&6
6337 if test "$libc_cv_gcc_builtin_redirection" = yes ; then
6338 cat >>confdefs.h <<\_ACEOF
6339 #define HAVE_BUILTIN_REDIRECTION 1
6344 echo "$as_me:$LINENO: checking for local label subtraction" >&5
6345 echo $ECHO_N "checking for local label subtraction... $ECHO_C" >&6
6346 if test "${libc_cv_gcc_subtract_local_labels+set}" = set; then
6347 echo $ECHO_N "(cached) $ECHO_C" >&6
6349 cat > conftest.c <<EOF
6350 #line $LINENO "configure"
6353 static const int ar[] = { &&l1 - &&l1, &&l2 - &&l1 };
6354 void *p = &&l1 + ar[a];
6362 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS -nostdlib -nostartfiles
6363 -o conftest conftest.c -lgcc >&5'
6364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6368 (exit $ac_status); }; }; then
6369 libc_cv_gcc_subtract_local_labels=yes
6371 libc_cv_gcc_subtract_local_labels=no
6375 echo "$as_me:$LINENO: result: $libc_cv_gcc_subtract_local_labels" >&5
6376 echo "${ECHO_T}$libc_cv_gcc_subtract_local_labels" >&6
6377 if test "$libc_cv_gcc_subtract_local_labels" = yes; then
6378 cat >>confdefs.h <<\_ACEOF
6379 #define HAVE_SUBTRACT_LOCAL_LABELS 1
6384 if test "x$use__thread" != xno; then
6385 echo "$as_me:$LINENO: checking for __thread" >&5
6386 echo $ECHO_N "checking for __thread... $ECHO_C" >&6
6387 if test "${libc_cv_gcc___thread+set}" = set; then
6388 echo $ECHO_N "(cached) $ECHO_C" >&6
6390 cat > conftest.c <<\EOF
6391 __thread int a = 42;
6393 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -c conftest.c >&5'
6394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6398 (exit $ac_status); }; }; then
6399 libc_cv_gcc___thread=yes
6401 libc_cv_gcc___thread=no
6405 echo "$as_me:$LINENO: result: $libc_cv_gcc___thread" >&5
6406 echo "${ECHO_T}$libc_cv_gcc___thread" >&6
6407 if test "$libc_cv_gcc___thread" = yes; then
6408 cat >>confdefs.h <<\_ACEOF
6409 #define HAVE___THREAD 1
6414 libc_cv_gcc___thread=no
6417 if test "$libc_cv_gcc___thread" = yes; then
6418 echo "$as_me:$LINENO: checking for tls_model attribute" >&5
6419 echo $ECHO_N "checking for tls_model attribute... $ECHO_C" >&6
6420 if test "${libc_cv_gcc_tls_model_attr+set}" = set; then
6421 echo $ECHO_N "(cached) $ECHO_C" >&6
6423 cat > conftest.c <<\EOF
6424 extern __thread int a __attribute__((tls_model ("initial-exec")));
6426 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -S -Werror conftest.c >&5'
6427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6431 (exit $ac_status); }; }; then
6432 libc_cv_gcc_tls_model_attr=yes
6434 libc_cv_gcc_tls_model_attr=no
6438 echo "$as_me:$LINENO: result: $libc_cv_gcc_tls_model_attr" >&5
6439 echo "${ECHO_T}$libc_cv_gcc_tls_model_attr" >&6
6440 if test "$libc_cv_gcc_tls_model_attr" = yes; then
6441 cat >>confdefs.h <<\_ACEOF
6442 #define HAVE_TLS_MODEL_ATTRIBUTE 1
6448 echo "$as_me:$LINENO: checking for libgd" >&5
6449 echo $ECHO_N "checking for libgd... $ECHO_C" >&6
6450 if test "$with_gd" != "no"; then
6451 old_CFLAGS="$CFLAGS"
6452 CFLAGS="$CFLAGS $libgd_include"
6453 old_LDFLAGS="$LDFLAGS"
6454 LDFLAGS="$LDFLAGS $libgd_ldflags"
6456 LIBS="$LIBS -lgd -lpng -lz -lm"
6457 cat >conftest.$ac_ext <<_ACEOF
6458 #line $LINENO "configure"
6461 cat confdefs.h >>conftest.$ac_ext
6462 cat >>conftest.$ac_ext <<_ACEOF
6463 /* end confdefs.h. */
6473 rm -f conftest.$ac_objext conftest$ac_exeext
6474 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6475 (eval $ac_link) 2>&5
6477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6478 (exit $ac_status); } &&
6479 { ac_try='test -s conftest$ac_exeext'
6480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6484 (exit $ac_status); }; }; then
6487 echo "$as_me: failed program was:" >&5
6488 sed 's/^/| /' conftest.$ac_ext >&5
6492 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6493 CFLAGS="$old_CFLAGS"
6494 LDFLAGS="$old_LDFLAGS"
6499 echo "$as_me:$LINENO: result: $LIBGD" >&5
6500 echo "${ECHO_T}$LIBGD" >&6
6504 echo "$as_me:$LINENO: checking for egrep" >&5
6505 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
6506 if test "${ac_cv_prog_egrep+set}" = set; then
6507 echo $ECHO_N "(cached) $ECHO_C" >&6
6509 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
6510 then ac_cv_prog_egrep='grep -E'
6511 else ac_cv_prog_egrep='egrep'
6514 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
6515 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
6516 EGREP=$ac_cv_prog_egrep
6519 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6520 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6521 if test "${ac_cv_header_stdc+set}" = set; then
6522 echo $ECHO_N "(cached) $ECHO_C" >&6
6524 cat >conftest.$ac_ext <<_ACEOF
6525 #line $LINENO "configure"
6528 cat confdefs.h >>conftest.$ac_ext
6529 cat >>conftest.$ac_ext <<_ACEOF
6530 /* end confdefs.h. */
6544 rm -f conftest.$ac_objext
6545 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6546 (eval $ac_compile) 2>&5
6548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6549 (exit $ac_status); } &&
6550 { ac_try='test -s conftest.$ac_objext'
6551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6555 (exit $ac_status); }; }; then
6556 ac_cv_header_stdc=yes
6558 echo "$as_me: failed program was:" >&5
6559 sed 's/^/| /' conftest.$ac_ext >&5
6561 ac_cv_header_stdc=no
6563 rm -f conftest.$ac_objext conftest.$ac_ext
6565 if test $ac_cv_header_stdc = yes; then
6566 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6567 cat >conftest.$ac_ext <<_ACEOF
6568 #line $LINENO "configure"
6571 cat confdefs.h >>conftest.$ac_ext
6572 cat >>conftest.$ac_ext <<_ACEOF
6573 /* end confdefs.h. */
6577 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6578 $EGREP "memchr" >/dev/null 2>&1; then
6581 ac_cv_header_stdc=no
6587 if test $ac_cv_header_stdc = yes; then
6588 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6589 cat >conftest.$ac_ext <<_ACEOF
6590 #line $LINENO "configure"
6593 cat confdefs.h >>conftest.$ac_ext
6594 cat >>conftest.$ac_ext <<_ACEOF
6595 /* end confdefs.h. */
6599 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6600 $EGREP "free" >/dev/null 2>&1; then
6603 ac_cv_header_stdc=no
6609 if test $ac_cv_header_stdc = yes; then
6610 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6611 if test "$cross_compiling" = yes; then
6614 cat >conftest.$ac_ext <<_ACEOF
6615 #line $LINENO "configure"
6618 cat confdefs.h >>conftest.$ac_ext
6619 cat >>conftest.$ac_ext <<_ACEOF
6620 /* end confdefs.h. */
6622 #if ((' ' & 0x0FF) == 0x020)
6623 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6624 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6626 # define ISLOWER(c) \
6627 (('a' <= (c) && (c) <= 'i') \
6628 || ('j' <= (c) && (c) <= 'r') \
6629 || ('s' <= (c) && (c) <= 'z'))
6630 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6633 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6638 for (i = 0; i < 256; i++)
6639 if (XOR (islower (i), ISLOWER (i))
6640 || toupper (i) != TOUPPER (i))
6645 rm -f conftest$ac_exeext
6646 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6647 (eval $ac_link) 2>&5
6649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6650 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6655 (exit $ac_status); }; }; then
6658 echo "$as_me: program exited with status $ac_status" >&5
6659 echo "$as_me: failed program was:" >&5
6660 sed 's/^/| /' conftest.$ac_ext >&5
6663 ac_cv_header_stdc=no
6665 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6669 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6670 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6671 if test $ac_cv_header_stdc = yes; then
6673 cat >>confdefs.h <<\_ACEOF
6674 #define STDC_HEADERS 1
6679 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6689 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6690 inttypes.h stdint.h unistd.h
6692 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6693 echo "$as_me:$LINENO: checking for $ac_header" >&5
6694 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6695 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6696 echo $ECHO_N "(cached) $ECHO_C" >&6
6698 cat >conftest.$ac_ext <<_ACEOF
6699 #line $LINENO "configure"
6702 cat confdefs.h >>conftest.$ac_ext
6703 cat >>conftest.$ac_ext <<_ACEOF
6704 /* end confdefs.h. */
6705 $ac_includes_default
6707 #include <$ac_header>
6709 rm -f conftest.$ac_objext
6710 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6711 (eval $ac_compile) 2>&5
6713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6714 (exit $ac_status); } &&
6715 { ac_try='test -s conftest.$ac_objext'
6716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6720 (exit $ac_status); }; }; then
6721 eval "$as_ac_Header=yes"
6723 echo "$as_me: failed program was:" >&5
6724 sed 's/^/| /' conftest.$ac_ext >&5
6726 eval "$as_ac_Header=no"
6728 rm -f conftest.$ac_objext conftest.$ac_ext
6730 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6731 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6732 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6733 cat >>confdefs.h <<_ACEOF
6734 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6742 echo "$as_me:$LINENO: checking for long double" >&5
6743 echo $ECHO_N "checking for long double... $ECHO_C" >&6
6744 if test "${ac_cv_type_long_double+set}" = set; then
6745 echo $ECHO_N "(cached) $ECHO_C" >&6
6747 cat >conftest.$ac_ext <<_ACEOF
6748 #line $LINENO "configure"
6751 cat confdefs.h >>conftest.$ac_ext
6752 cat >>conftest.$ac_ext <<_ACEOF
6753 /* end confdefs.h. */
6754 $ac_includes_default
6758 if ((long double *) 0)
6760 if (sizeof (long double))
6766 rm -f conftest.$ac_objext
6767 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6768 (eval $ac_compile) 2>&5
6770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6771 (exit $ac_status); } &&
6772 { ac_try='test -s conftest.$ac_objext'
6773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6777 (exit $ac_status); }; }; then
6778 ac_cv_type_long_double=yes
6780 echo "$as_me: failed program was:" >&5
6781 sed 's/^/| /' conftest.$ac_ext >&5
6783 ac_cv_type_long_double=no
6785 rm -f conftest.$ac_objext conftest.$ac_ext
6787 echo "$as_me:$LINENO: result: $ac_cv_type_long_double" >&5
6788 echo "${ECHO_T}$ac_cv_type_long_double" >&6
6790 echo "$as_me:$LINENO: checking size of long double" >&5
6791 echo $ECHO_N "checking size of long double... $ECHO_C" >&6
6792 if test "${ac_cv_sizeof_long_double+set}" = set; then
6793 echo $ECHO_N "(cached) $ECHO_C" >&6
6795 if test "$ac_cv_type_long_double" = yes; then
6796 # The cast to unsigned long works around a bug in the HP C Compiler
6797 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6798 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6799 # This bug is HP SR number 8606223364.
6800 if test "$cross_compiling" = yes; then
6801 # Depending upon the size, compute the lo and hi bounds.
6802 cat >conftest.$ac_ext <<_ACEOF
6803 #line $LINENO "configure"
6806 cat confdefs.h >>conftest.$ac_ext
6807 cat >>conftest.$ac_ext <<_ACEOF
6808 /* end confdefs.h. */
6809 $ac_includes_default
6813 static int test_array [1 - 2 * !(((long) (sizeof (long double))) >= 0)];
6820 rm -f conftest.$ac_objext
6821 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6822 (eval $ac_compile) 2>&5
6824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6825 (exit $ac_status); } &&
6826 { ac_try='test -s conftest.$ac_objext'
6827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6831 (exit $ac_status); }; }; then
6834 cat >conftest.$ac_ext <<_ACEOF
6835 #line $LINENO "configure"
6838 cat confdefs.h >>conftest.$ac_ext
6839 cat >>conftest.$ac_ext <<_ACEOF
6840 /* end confdefs.h. */
6841 $ac_includes_default
6845 static int test_array [1 - 2 * !(((long) (sizeof (long double))) <= $ac_mid)];
6852 rm -f conftest.$ac_objext
6853 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6854 (eval $ac_compile) 2>&5
6856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6857 (exit $ac_status); } &&
6858 { ac_try='test -s conftest.$ac_objext'
6859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6863 (exit $ac_status); }; }; then
6864 ac_hi=$ac_mid; break
6866 echo "$as_me: failed program was:" >&5
6867 sed 's/^/| /' conftest.$ac_ext >&5
6869 ac_lo=`expr $ac_mid + 1`
6870 if test $ac_lo -le $ac_mid; then
6874 ac_mid=`expr 2 '*' $ac_mid + 1`
6876 rm -f conftest.$ac_objext conftest.$ac_ext
6879 echo "$as_me: failed program was:" >&5
6880 sed 's/^/| /' conftest.$ac_ext >&5
6882 cat >conftest.$ac_ext <<_ACEOF
6883 #line $LINENO "configure"
6886 cat confdefs.h >>conftest.$ac_ext
6887 cat >>conftest.$ac_ext <<_ACEOF
6888 /* end confdefs.h. */
6889 $ac_includes_default
6893 static int test_array [1 - 2 * !(((long) (sizeof (long double))) < 0)];
6900 rm -f conftest.$ac_objext
6901 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6902 (eval $ac_compile) 2>&5
6904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6905 (exit $ac_status); } &&
6906 { ac_try='test -s conftest.$ac_objext'
6907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6911 (exit $ac_status); }; }; then
6914 cat >conftest.$ac_ext <<_ACEOF
6915 #line $LINENO "configure"
6918 cat confdefs.h >>conftest.$ac_ext
6919 cat >>conftest.$ac_ext <<_ACEOF
6920 /* end confdefs.h. */
6921 $ac_includes_default
6925 static int test_array [1 - 2 * !(((long) (sizeof (long double))) >= $ac_mid)];
6932 rm -f conftest.$ac_objext
6933 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6934 (eval $ac_compile) 2>&5
6936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6937 (exit $ac_status); } &&
6938 { ac_try='test -s conftest.$ac_objext'
6939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6943 (exit $ac_status); }; }; then
6944 ac_lo=$ac_mid; break
6946 echo "$as_me: failed program was:" >&5
6947 sed 's/^/| /' conftest.$ac_ext >&5
6949 ac_hi=`expr '(' $ac_mid ')' - 1`
6950 if test $ac_mid -le $ac_hi; then
6954 ac_mid=`expr 2 '*' $ac_mid`
6956 rm -f conftest.$ac_objext conftest.$ac_ext
6959 echo "$as_me: failed program was:" >&5
6960 sed 's/^/| /' conftest.$ac_ext >&5
6964 rm -f conftest.$ac_objext conftest.$ac_ext
6966 rm -f conftest.$ac_objext conftest.$ac_ext
6967 # Binary search between lo and hi bounds.
6968 while test "x$ac_lo" != "x$ac_hi"; do
6969 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6970 cat >conftest.$ac_ext <<_ACEOF
6971 #line $LINENO "configure"
6974 cat confdefs.h >>conftest.$ac_ext
6975 cat >>conftest.$ac_ext <<_ACEOF
6976 /* end confdefs.h. */
6977 $ac_includes_default
6981 static int test_array [1 - 2 * !(((long) (sizeof (long double))) <= $ac_mid)];
6988 rm -f conftest.$ac_objext
6989 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6990 (eval $ac_compile) 2>&5
6992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6993 (exit $ac_status); } &&
6994 { ac_try='test -s conftest.$ac_objext'
6995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6999 (exit $ac_status); }; }; then
7002 echo "$as_me: failed program was:" >&5
7003 sed 's/^/| /' conftest.$ac_ext >&5
7005 ac_lo=`expr '(' $ac_mid ')' + 1`
7007 rm -f conftest.$ac_objext conftest.$ac_ext
7010 ?*) ac_cv_sizeof_long_double=$ac_lo;;
7011 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long double), 77
7012 See \`config.log' for more details." >&5
7013 echo "$as_me: error: cannot compute sizeof (long double), 77
7014 See \`config.log' for more details." >&2;}
7015 { (exit 1); exit 1; }; } ;;
7018 if test "$cross_compiling" = yes; then
7019 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7020 See \`config.log' for more details." >&5
7021 echo "$as_me: error: cannot run test program while cross compiling
7022 See \`config.log' for more details." >&2;}
7023 { (exit 1); exit 1; }; }
7025 cat >conftest.$ac_ext <<_ACEOF
7026 #line $LINENO "configure"
7029 cat confdefs.h >>conftest.$ac_ext
7030 cat >>conftest.$ac_ext <<_ACEOF
7031 /* end confdefs.h. */
7032 $ac_includes_default
7033 long longval () { return (long) (sizeof (long double)); }
7034 unsigned long ulongval () { return (long) (sizeof (long double)); }
7041 FILE *f = fopen ("conftest.val", "w");
7044 if (((long) (sizeof (long double))) < 0)
7046 long i = longval ();
7047 if (i != ((long) (sizeof (long double))))
7049 fprintf (f, "%ld\n", i);
7053 unsigned long i = ulongval ();
7054 if (i != ((long) (sizeof (long double))))
7056 fprintf (f, "%lu\n", i);
7058 exit (ferror (f) || fclose (f) != 0);
7064 rm -f conftest$ac_exeext
7065 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7066 (eval $ac_link) 2>&5
7068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7069 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7074 (exit $ac_status); }; }; then
7075 ac_cv_sizeof_long_double=`cat conftest.val`
7077 echo "$as_me: program exited with status $ac_status" >&5
7078 echo "$as_me: failed program was:" >&5
7079 sed 's/^/| /' conftest.$ac_ext >&5
7082 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long double), 77
7083 See \`config.log' for more details." >&5
7084 echo "$as_me: error: cannot compute sizeof (long double), 77
7085 See \`config.log' for more details." >&2;}
7086 { (exit 1); exit 1; }; }
7088 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7093 ac_cv_sizeof_long_double=0
7096 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_double" >&5
7097 echo "${ECHO_T}$ac_cv_sizeof_long_double" >&6
7098 cat >>confdefs.h <<_ACEOF
7099 #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
7103 sizeof_long_double=$ac_cv_sizeof_long_double
7106 ### End of automated tests.
7107 ### Now run sysdeps configure fragments.
7109 # They also can set these variables.
7111 ldd_rewrite_script=no
7112 libc_cv_sysconfdir=$sysconfdir
7113 libc_cv_gcc_unwind_find_fde=no
7116 # Iterate over all the sysdep directories we will use, running their
7117 # configure fragments, and looking for a uname implementation.
7119 for dir in $sysnames; do
7122 *) dest=$srcdir/$dir ;;
7124 if test -r $dest/configure; then
7125 echo "$as_me:$LINENO: result: running configure fragment for $dir" >&5
7126 echo "${ECHO_T}running configure fragment for $dir" >&6
7130 if test -z "$uname"; then
7131 if test -r $dest/uname.c ||
7132 test -r $dest/uname.S ||
7133 { test -r $dest/syscalls.list &&
7134 grep '^uname[ ]' $dest/syscalls.list >/dev/null; }; then
7140 if test x$libc_cv_gcc_unwind_find_fde = xyes; then
7141 cat >>confdefs.h <<\_ACEOF
7142 #define EXPORT_UNWIND_FIND_FDE 1
7148 # If we will use the generic uname implementation, we must figure out what
7149 # it will say by examining the system, and write the results in config-name.h.
7150 if test "$uname" = "sysdeps/generic"; then
7152 uname_sysname=`echo $config_os | sed 's/[0-9.]*$//'`
7153 if test $uname_sysname != $config_os; then
7154 config_release=`echo $config_os | sed s/$uname_sysname//`
7157 echo "$as_me:$LINENO: checking OS release for uname" >&5
7158 echo $ECHO_N "checking OS release for uname... $ECHO_C" >&6
7159 if test "${libc_cv_uname_release+set}" = set; then
7160 echo $ECHO_N "(cached) $ECHO_C" >&6
7162 if test -r /vmunix; then
7163 kernel_id=`strings /vmunix | grep UNIX`
7164 elif test -r /dynix; then
7165 kernel_id=`strings /dynix | grep DYNIX`
7170 kernel_release=`echo "$kernel_id" | sed 's/^[^0-9.]*\([0-9.]*\).*$/\1/'`
7171 if test x`echo "$config_release" | sed "s/^$kernel_release//"` \
7172 != x$config_release; then
7173 # The configuration release is a substring of the kernel release.
7174 libc_cv_uname_release=$kernel_release
7175 elif test x$config_release != x; then
7176 libc_cv_uname_release=$config_release
7177 elif test x$kernel_release != x; then
7178 libc_cv_uname_release=$kernel_release
7180 libc_cv_uname_release=unknown
7183 echo "$as_me:$LINENO: result: $libc_cv_uname_release" >&5
7184 echo "${ECHO_T}$libc_cv_uname_release" >&6
7185 uname_release="$libc_cv_uname_release"
7187 echo "$as_me:$LINENO: checking OS version for uname" >&5
7188 echo $ECHO_N "checking OS version for uname... $ECHO_C" >&6
7189 if test "${libc_cv_uname_version+set}" = set; then
7190 echo $ECHO_N "(cached) $ECHO_C" >&6
7192 if test -r /vmunix; then
7193 kernel_id=`strings /vmunix | grep UNIX`
7194 elif test -r /dynix; then
7195 kernel_id=`strings /dynix | grep DYNIX`
7200 kernel_version=`echo "$kernel_id" | sed 's/^[^#]*#\([0-9]*\).*$/\1/'`
7201 if test -n "$kernel_version"; then
7202 libc_cv_uname_version="$kernel_version"
7204 libc_cv_uname_version=unknown
7207 echo "$as_me:$LINENO: result: $libc_cv_uname_version" >&5
7208 echo "${ECHO_T}$libc_cv_uname_version" >&6
7209 uname_version="$libc_cv_uname_version"
7211 config_uname=config-name.h:config-name.in
7213 # For non-generic uname, we don't need to create config-name.h at all.
7217 cat >>confdefs.h <<\_ACEOF
7218 #define USE_IN_LIBIO 1
7222 # Test for old glibc 2.0.x headers so that they can be removed properly
7223 # Search only in includedir.
7224 echo "$as_me:$LINENO: checking for old glibc 2.0.x headers" >&5
7225 echo $ECHO_N "checking for old glibc 2.0.x headers... $ECHO_C" >&6
7226 if eval test -f "${includedir}/elfclass.h" -a -f "${includedir}/fcntlbits.h"
7228 old_glibc_headers=yes
7230 old_glibc_headers=no
7232 echo "$as_me:$LINENO: result: $old_glibc_headers" >&5
7233 echo "${ECHO_T}$old_glibc_headers" >&6
7234 if test ${old_glibc_headers} = yes; then
7235 { echo "$as_me:$LINENO: WARNING: *** During \"make install\" old headers from glibc 2.0.x will" >&5
7236 echo "$as_me: WARNING: *** During \"make install\" old headers from glibc 2.0.x will" >&2;}
7237 { echo "$as_me:$LINENO: WARNING: *** be removed." >&5
7238 echo "$as_me: WARNING: *** be removed." >&2;}
7252 if test $gnu_ld = yes; then
7253 cat >>confdefs.h <<\_ACEOF
7254 #define HAVE_GNU_LD 1
7258 if test $gnu_as = yes; then
7259 cat >>confdefs.h <<\_ACEOF
7260 #define HAVE_GNU_AS 1
7264 if test $elf = yes; then
7265 cat >>confdefs.h <<\_ACEOF
7270 if test $xcoff = yes; then
7271 cat >>confdefs.h <<\_ACEOF
7272 #define HAVE_XCOFF 1
7279 if test $shared = default; then
7280 if test $gnu_ld = yes; then
7283 # For now we do not assume shared libs are available. In future more
7284 # tests might become available.
7289 if test x"$libc_cv_idn" = xyes; then
7290 cat >>confdefs.h <<\_ACEOF
7291 #define HAVE_LIBIDN 1
7296 echo "$as_me:$LINENO: checking whether -fPIC is default" >&5
7297 echo $ECHO_N "checking whether -fPIC is default... $ECHO_C" >&6
7298 if test "${pic_default+set}" = set; then
7299 echo $ECHO_N "(cached) $ECHO_C" >&6
7302 cat > conftest.c <<EOF
7303 #if defined __PIC__ || defined __pic__ || defined PIC || defined pic
7304 # error PIC is default.
7307 if eval "${CC-cc} -S conftest.c 2>&5 1>&5"; then
7312 echo "$as_me:$LINENO: result: $pic_default" >&5
7313 echo "${ECHO_T}$pic_default" >&6
7325 *door*) linux_doors=yes ;;
7326 *) linux_doors=no ;;
7332 if test "`(cd $srcdir; pwd)`" = "`pwd`"; then
7335 config_makefile=Makefile
7338 VERSION=`sed -n -e 's/^#define VERSION "\([^"]*\)"/\1/p' < $srcdir/version.h`
7339 RELEASE=`sed -n -e 's/^#define RELEASE "\([^"]*\)"/\1/p' < $srcdir/version.h`
7343 ac_config_files="$ac_config_files config.make ${config_makefile} ${config_uname}"
7345 ac_config_commands="$ac_config_commands default"
7347 cat >confcache <<\_ACEOF
7348 # This file is a shell script that caches the results of configure
7349 # tests run on this system so they can be shared between configure
7350 # scripts and configure runs, see configure's option --config-cache.
7351 # It is not useful on other systems. If it contains results you don't
7352 # want to keep, you may remove or edit it.
7354 # config.status only pays attention to the cache file if you give it
7355 # the --recheck option to rerun configure.
7357 # `ac_cv_env_foo' variables (set or unset) will be overridden when
7358 # loading this file, other *unset* `ac_cv_foo' will be assigned the
7363 # The following way of writing the cache mishandles newlines in values,
7364 # but we know of no workaround that is simple, portable, and efficient.
7365 # So, don't put newlines in cache variables' values.
7366 # Ultrix sh set writes to stderr and can't be redirected directly,
7367 # and sets the high bit in the cache file unless we assign to the vars.
7370 case `(ac_space=' '; set | grep ac_space) 2>&1` in
7372 # `set' does not quote correctly, so add quotes (double-quote
7373 # substitution turns \\\\ into \\, and sed turns \\ into \).
7376 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7379 # `set' quotes correctly as required by POSIX, so do not add quotes.
7381 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
7388 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
7390 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7392 if diff $cache_file confcache >/dev/null 2>&1; then :; else
7393 if test -w $cache_file; then
7394 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
7395 cat confcache >$cache_file
7397 echo "not updating unwritable cache $cache_file"
7402 test "x$prefix" = xNONE && prefix=$ac_default_prefix
7403 # Let make expand exec_prefix.
7404 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7406 # VPATH may cause trouble with some makes, so we remove $(srcdir),
7407 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
7408 # trailing colons and then remove the whole line if VPATH becomes empty
7409 # (actually we leave an empty line to preserve line numbers).
7410 if test "x$srcdir" = x.; then
7411 ac_vpsub='/^[ ]*VPATH[ ]*=/{
7412 s/:*\$(srcdir):*/:/;
7413 s/:*\${srcdir}:*/:/;
7415 s/^\([^=]*=[ ]*\):*/\1/;
7421 DEFS=-DHAVE_CONFIG_H
7425 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
7426 # 1. Remove the extension, and $U if already installed.
7427 ac_i=`echo "$ac_i" |
7428 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
7430 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
7431 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
7435 LTLIBOBJS=$ac_ltlibobjs
7439 : ${CONFIG_STATUS=./config.status}
7440 ac_clean_files_save=$ac_clean_files
7441 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
7442 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
7443 echo "$as_me: creating $CONFIG_STATUS" >&6;}
7444 cat >$CONFIG_STATUS <<_ACEOF
7446 # Generated by $as_me.
7447 # Run this file to recreate the current configuration.
7448 # Compiler output produced by configure, useful for debugging
7449 # configure, is in config.log if it exists.
7454 SHELL=\${CONFIG_SHELL-$SHELL}
7457 cat >>$CONFIG_STATUS <<\_ACEOF
7458 ## --------------------- ##
7459 ## M4sh Initialization. ##
7460 ## --------------------- ##
7462 # Be Bourne compatible
7463 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
7466 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
7467 # is contrary to our usage. Disable this feature.
7468 alias -g '${1+"$@"}'='"$@"'
7469 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
7473 # Support unset when possible.
7474 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
7481 # Work around bugs in pre-3.0 UWIN ksh.
7482 $as_unset ENV MAIL MAILPATH
7489 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
7490 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
7491 LC_TELEPHONE LC_TIME
7493 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
7494 eval $as_var=C; export $as_var
7500 # Required to use basename.
7501 if expr a : '\(a\)' >/dev/null 2>&1; then
7507 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
7508 as_basename=basename
7514 # Name of the executable.
7515 as_me=`$as_basename "$0" ||
7516 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
7517 X"$0" : 'X\(//\)$' \| \
7518 X"$0" : 'X\(/\)$' \| \
7519 . : '\(.\)' 2>/dev/null ||
7521 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
7522 /^X\/\(\/\/\)$/{ s//\1/; q; }
7523 /^X\/\(\/\).*/{ s//\1/; q; }
7527 # PATH needs CR, and LINENO needs CR and PATH.
7528 # Avoid depending upon Character Ranges.
7529 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
7530 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
7531 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
7532 as_cr_digits='0123456789'
7533 as_cr_alnum=$as_cr_Letters$as_cr_digits
7535 # The user is always right.
7536 if test "${PATH_SEPARATOR+set}" != set; then
7537 echo "#! /bin/sh" >conf$$.sh
7538 echo "exit 0" >>conf$$.sh
7540 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7551 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
7552 test "x$as_lineno_1" != "x$as_lineno_2" &&
7553 test "x$as_lineno_3" = "x$as_lineno_2" || {
7554 # Find who we are. Look in the path if we contain no path at all
7557 *[\\/]* ) as_myself=$0 ;;
7558 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7562 test -z "$as_dir" && as_dir=.
7563 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
7568 # We did not find ourselves, most probably we were run as `sh COMMAND'
7569 # in which case we are not to be found in the path.
7570 if test "x$as_myself" = x; then
7573 if test ! -f "$as_myself"; then
7574 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
7575 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
7576 { (exit 1); exit 1; }; }
7578 case $CONFIG_SHELL in
7580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7581 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
7584 test -z "$as_dir" && as_dir=.
7585 for as_base in sh bash ksh sh5; do
7588 if ("$as_dir/$as_base" -c '
7591 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
7592 test "x$as_lineno_1" != "x$as_lineno_2" &&
7593 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
7594 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
7595 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
7596 CONFIG_SHELL=$as_dir/$as_base
7598 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
7606 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
7607 # uniformly replaced by the line number. The first 'sed' inserts a
7608 # line-number line before each line; the second 'sed' does the real
7609 # work. The second script uses 'N' to pair each line-number line
7610 # with the numbered line, and appends trailing '-' during
7611 # substitution so that $LINENO is not a special case at line end.
7612 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
7613 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
7614 sed '=' <$as_myself |
7619 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
7622 s,^['$as_cr_digits']*\n,,
7624 chmod +x $as_me.lineno ||
7625 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
7626 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
7627 { (exit 1); exit 1; }; }
7629 # Don't try to exec as it changes $[0], causing all sort of problems
7630 # (the dirname of $[0] is not the place where we might find the
7631 # original and so on. Autoconf is especially sensible to this).
7633 # Exit status is that of the last command.
7638 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
7639 *c*,-n*) ECHO_N= ECHO_C='
7641 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
7642 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
7645 if expr a : '\(a\)' >/dev/null 2>&1; then
7651 rm -f conf$$ conf$$.exe conf$$.file
7653 if ln -s conf$$.file conf$$ 2>/dev/null; then
7654 # We could just check for DJGPP; but this test a) works b) is more generic
7655 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
7656 if test -f conf$$.exe; then
7657 # Don't use ln at all; we don't have any links
7662 elif ln conf$$.file conf$$ 2>/dev/null; then
7667 rm -f conf$$ conf$$.exe conf$$.file
7669 if mkdir -p . 2>/dev/null; then
7675 as_executable_p="test -f"
7677 # Sed expression to map a string onto a valid CPP name.
7678 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
7680 # Sed expression to map a string onto a valid variable name.
7681 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
7685 # We need space, tab and new line, in precisely that order.
7695 # Open the log real soon, to keep \$[0] and so on meaningful, and to
7696 # report actual input values of CONFIG_FILES etc. instead of their
7697 # values after options handling. Logging --version etc. is OK.
7701 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
7702 ## Running $as_me. ##
7707 This file was extended by GNU C Library $as_me (see version.h), which was
7708 generated by GNU Autoconf 2.57. Invocation command line was
7710 CONFIG_FILES = $CONFIG_FILES
7711 CONFIG_HEADERS = $CONFIG_HEADERS
7712 CONFIG_LINKS = $CONFIG_LINKS
7713 CONFIG_COMMANDS = $CONFIG_COMMANDS
7717 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
7721 # Files that config.status was made for.
7722 if test -n "$ac_config_files"; then
7723 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
7726 if test -n "$ac_config_headers"; then
7727 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
7730 if test -n "$ac_config_links"; then
7731 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
7734 if test -n "$ac_config_commands"; then
7735 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
7738 cat >>$CONFIG_STATUS <<\_ACEOF
7741 \`$as_me' instantiates files from templates according to the
7742 current configuration.
7744 Usage: $0 [OPTIONS] [FILE]...
7746 -h, --help print this help, then exit
7747 -V, --version print version number, then exit
7748 -q, --quiet do not print progress messages
7749 -d, --debug don't remove temporary files
7750 --recheck update $as_me by reconfiguring in the same conditions
7751 --file=FILE[:TEMPLATE]
7752 instantiate the configuration file FILE
7753 --header=FILE[:TEMPLATE]
7754 instantiate the configuration header FILE
7756 Configuration files:
7759 Configuration headers:
7762 Configuration commands:
7765 Report bugs to <bug-autoconf@gnu.org>."
7768 cat >>$CONFIG_STATUS <<_ACEOF
7770 GNU C Library config.status (see version.h)
7771 configured by $0, generated by GNU Autoconf 2.57,
7772 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
7774 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
7775 Free Software Foundation, Inc.
7776 This config.status script is free software; the Free Software Foundation
7777 gives unlimited permission to copy, distribute and modify it."
7782 cat >>$CONFIG_STATUS <<\_ACEOF
7783 # If no file are specified by the user, then we need to provide default
7784 # value. By we need to know if files were specified by the user.
7790 ac_option=`expr "x$1" : 'x\([^=]*\)='`
7791 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
7799 *) # This is not an option, so the user has probably given explicit
7802 ac_need_defaults=false;;
7806 # Handling of the options.
7808 cat >>$CONFIG_STATUS <<\_ACEOF
7809 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7811 --version | --vers* | -V )
7812 echo "$ac_cs_version"; exit 0 ;;
7814 # Conflict between --help and --header
7815 { { echo "$as_me:$LINENO: error: ambiguous option: $1
7816 Try \`$0 --help' for more information." >&5
7817 echo "$as_me: error: ambiguous option: $1
7818 Try \`$0 --help' for more information." >&2;}
7819 { (exit 1); exit 1; }; };;
7820 --help | --hel | -h )
7821 echo "$ac_cs_usage"; exit 0 ;;
7822 --debug | --d* | -d )
7824 --file | --fil | --fi | --f )
7826 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
7827 ac_need_defaults=false;;
7828 --header | --heade | --head | --hea )
7830 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
7831 ac_need_defaults=false;;
7832 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
7833 | -silent | --silent | --silen | --sile | --sil | --si | --s)
7837 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
7838 Try \`$0 --help' for more information." >&5
7839 echo "$as_me: error: unrecognized option: $1
7840 Try \`$0 --help' for more information." >&2;}
7841 { (exit 1); exit 1; }; } ;;
7843 *) ac_config_targets="$ac_config_targets $1" ;;
7849 ac_configure_extra_args=
7851 if $ac_cs_silent; then
7853 ac_configure_extra_args="$ac_configure_extra_args --silent"
7857 cat >>$CONFIG_STATUS <<_ACEOF
7858 if \$ac_cs_recheck; then
7859 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
7860 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
7865 cat >>$CONFIG_STATUS <<_ACEOF
7867 # INIT-COMMANDS section.
7870 config_vars='$config_vars'
7876 cat >>$CONFIG_STATUS <<\_ACEOF
7877 for ac_config_target in $ac_config_targets
7879 case "$ac_config_target" in
7880 # Handling of arguments.
7881 "config.make" ) CONFIG_FILES="$CONFIG_FILES config.make" ;;
7882 "${config_makefile}" ) CONFIG_FILES="$CONFIG_FILES ${config_makefile}" ;;
7883 "${config_uname}" ) CONFIG_FILES="$CONFIG_FILES ${config_uname}" ;;
7884 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
7885 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
7886 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
7887 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
7888 { (exit 1); exit 1; }; };;
7892 # If the user did not use the arguments to specify the items to instantiate,
7893 # then the envvar interface is used. Set only those that are not.
7894 # We use the long form for the default assignment because of an extremely
7895 # bizarre bug on SunOS 4.1.3.
7896 if $ac_need_defaults; then
7897 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
7898 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
7899 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
7902 # Have a temporary directory for convenience. Make it in the build tree
7903 # simply because there is no reason to put it here, and in addition,
7904 # creating and moving files from /tmp can sometimes cause problems.
7905 # Create a temporary directory, and hook for its removal unless debugging.
7908 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
7909 trap '{ (exit 1); exit 1; }' 1 2 13 15
7912 # Create a (secure) tmp directory for tmp files.
7915 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
7916 test -n "$tmp" && test -d "$tmp"
7919 tmp=./confstat$$-$RANDOM
7920 (umask 077 && mkdir $tmp)
7923 echo "$me: cannot create a temporary directory in ." >&2
7924 { (exit 1); exit 1; }
7929 cat >>$CONFIG_STATUS <<_ACEOF
7932 # CONFIG_FILES section.
7935 # No need to generate the scripts if there are no CONFIG_FILES.
7936 # This happens for instance when ./config.status config.h
7937 if test -n "\$CONFIG_FILES"; then
7938 # Protect against being on the right side of a sed subst in config.status.
7939 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
7940 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
7941 s,@SHELL@,$SHELL,;t t
7942 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
7943 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
7944 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
7945 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
7946 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
7947 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
7948 s,@exec_prefix@,$exec_prefix,;t t
7949 s,@prefix@,$prefix,;t t
7950 s,@program_transform_name@,$program_transform_name,;t t
7951 s,@bindir@,$bindir,;t t
7952 s,@sbindir@,$sbindir,;t t
7953 s,@libexecdir@,$libexecdir,;t t
7954 s,@datadir@,$datadir,;t t
7955 s,@sysconfdir@,$sysconfdir,;t t
7956 s,@sharedstatedir@,$sharedstatedir,;t t
7957 s,@localstatedir@,$localstatedir,;t t
7958 s,@libdir@,$libdir,;t t
7959 s,@includedir@,$includedir,;t t
7960 s,@oldincludedir@,$oldincludedir,;t t
7961 s,@infodir@,$infodir,;t t
7962 s,@mandir@,$mandir,;t t
7963 s,@build_alias@,$build_alias,;t t
7964 s,@host_alias@,$host_alias,;t t
7965 s,@target_alias@,$target_alias,;t t
7967 s,@ECHO_C@,$ECHO_C,;t t
7968 s,@ECHO_N@,$ECHO_N,;t t
7969 s,@ECHO_T@,$ECHO_T,;t t
7971 s,@with_fp@,$with_fp,;t t
7972 s,@with_cvs@,$with_cvs,;t t
7973 s,@enable_check_abi@,$enable_check_abi,;t t
7974 s,@oldest_abi@,$oldest_abi,;t t
7975 s,@bindnow@,$bindnow,;t t
7976 s,@force_install@,$force_install,;t t
7977 s,@all_warnings@,$all_warnings,;t t
7978 s,@build@,$build,;t t
7979 s,@build_cpu@,$build_cpu,;t t
7980 s,@build_vendor@,$build_vendor,;t t
7981 s,@build_os@,$build_os,;t t
7983 s,@host_cpu@,$host_cpu,;t t
7984 s,@host_vendor@,$host_vendor,;t t
7985 s,@host_os@,$host_os,;t t
7986 s,@subdirs@,$subdirs,;t t
7987 s,@add_ons@,$add_ons,;t t
7988 s,@base_machine@,$base_machine,;t t
7989 s,@sysnames@,$sysnames,;t t
7990 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
7991 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
7992 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
7995 s,@CFLAGS@,$CFLAGS,;t t
7996 s,@LDFLAGS@,$LDFLAGS,;t t
7997 s,@CPPFLAGS@,$CPPFLAGS,;t t
7998 s,@ac_ct_CC@,$ac_ct_CC,;t t
7999 s,@OBJEXT@,$OBJEXT,;t t
8000 s,@BUILD_CC@,$BUILD_CC,;t t
8001 s,@cross_compiling@,$cross_compiling,;t t
8004 s,@CXXFLAGS@,$CXXFLAGS,;t t
8005 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
8007 s,@OBJDUMP@,$OBJDUMP,;t t
8008 s,@RANLIB@,$RANLIB,;t t
8009 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
8013 s,@PWD_P@,$PWD_P,;t t
8015 s,@MSGFMT@,$MSGFMT,;t t
8016 s,@MAKEINFO@,$MAKEINFO,;t t
8018 s,@AUTOCONF@,$AUTOCONF,;t t
8019 s,@SYSINCLUDES@,$SYSINCLUDES,;t t
8020 s,@libc_cv_gcc_static_libgcc@,$libc_cv_gcc_static_libgcc,;t t
8022 s,@libc_cv_have_bash2@,$libc_cv_have_bash2,;t t
8024 s,@libc_cv_have_ksh@,$libc_cv_have_ksh,;t t
8027 s,@INSTALL_INFO@,$INSTALL_INFO,;t t
8028 s,@BISON@,$BISON,;t t
8029 s,@VERSIONING@,$VERSIONING,;t t
8030 s,@libc_cv_asm_protected_directive@,$libc_cv_asm_protected_directive,;t t
8031 s,@libc_cv_initfinit_array@,$libc_cv_initfinit_array,;t t
8032 s,@libc_cv_cc_with_libunwind@,$libc_cv_cc_with_libunwind,;t t
8033 s,@libc_cv_z_nodelete@,$libc_cv_z_nodelete,;t t
8034 s,@libc_cv_z_nodlopen@,$libc_cv_z_nodlopen,;t t
8035 s,@libc_cv_z_initfirst@,$libc_cv_z_initfirst,;t t
8036 s,@libc_cv_z_relro@,$libc_cv_z_relro,;t t
8037 s,@libc_cv_Bgroup@,$libc_cv_Bgroup,;t t
8038 s,@libc_cv_libgcc_s_suffix@,$libc_cv_libgcc_s_suffix,;t t
8039 s,@libc_cv_as_needed@,$libc_cv_as_needed,;t t
8040 s,@ASFLAGS_config@,$ASFLAGS_config,;t t
8041 s,@libc_cv_z_combreloc@,$libc_cv_z_combreloc,;t t
8042 s,@libc_cv_z_execstack@,$libc_cv_z_execstack,;t t
8043 s,@libc_cv_fpie@,$libc_cv_fpie,;t t
8044 s,@fno_unit_at_a_time@,$fno_unit_at_a_time,;t t
8045 s,@libc_cv_have_initfini@,$libc_cv_have_initfini,;t t
8046 s,@libc_cv_cpp_asm_debuginfo@,$libc_cv_cpp_asm_debuginfo,;t t
8047 s,@no_whole_archive@,$no_whole_archive,;t t
8048 s,@exceptions@,$exceptions,;t t
8049 s,@LIBGD@,$LIBGD,;t t
8050 s,@EGREP@,$EGREP,;t t
8051 s,@sizeof_long_double@,$sizeof_long_double,;t t
8052 s,@libc_cv_gcc_unwind_find_fde@,$libc_cv_gcc_unwind_find_fde,;t t
8053 s,@uname_sysname@,$uname_sysname,;t t
8054 s,@uname_release@,$uname_release,;t t
8055 s,@uname_version@,$uname_version,;t t
8056 s,@old_glibc_headers@,$old_glibc_headers,;t t
8057 s,@libc_cv_slibdir@,$libc_cv_slibdir,;t t
8058 s,@libc_cv_localedir@,$libc_cv_localedir,;t t
8059 s,@libc_cv_sysconfdir@,$libc_cv_sysconfdir,;t t
8060 s,@libc_cv_rootsbindir@,$libc_cv_rootsbindir,;t t
8061 s,@libc_cv_forced_unwind@,$libc_cv_forced_unwind,;t t
8062 s,@use_ldconfig@,$use_ldconfig,;t t
8063 s,@ldd_rewrite_script@,$ldd_rewrite_script,;t t
8064 s,@gnu_ld@,$gnu_ld,;t t
8065 s,@gnu_as@,$gnu_as,;t t
8067 s,@xcoff@,$xcoff,;t t
8068 s,@static@,$static,;t t
8069 s,@shared@,$shared,;t t
8070 s,@pic_default@,$pic_default,;t t
8071 s,@profile@,$profile,;t t
8072 s,@omitfp@,$omitfp,;t t
8073 s,@bounded@,$bounded,;t t
8074 s,@static_nss@,$static_nss,;t t
8075 s,@nopic_initfini@,$nopic_initfini,;t t
8076 s,@DEFINES@,$DEFINES,;t t
8077 s,@linux_doors@,$linux_doors,;t t
8078 s,@mach_interface_list@,$mach_interface_list,;t t
8079 s,@VERSION@,$VERSION,;t t
8080 s,@RELEASE@,$RELEASE,;t t
8081 s,@LIBOBJS@,$LIBOBJS,;t t
8082 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
8087 cat >>$CONFIG_STATUS <<\_ACEOF
8088 # Split the substitutions into bite-sized pieces for seds with
8089 # small command number limits, like on Digital OSF/1 and HP-UX.
8091 ac_sed_frag=1 # Number of current file.
8092 ac_beg=1 # First line for current file.
8093 ac_end=$ac_max_sed_lines # Line after last line for current file.
8096 while $ac_more_lines; do
8097 if test $ac_beg -gt 1; then
8098 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
8100 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
8102 if test ! -s $tmp/subs.frag; then
8105 # The purpose of the label and of the branching condition is to
8106 # speed up the sed processing (if there are no `@' at all, there
8107 # is no need to browse any of the substitutions).
8108 # These are the two extra sed commands mentioned above.
8110 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
8111 if test -z "$ac_sed_cmds"; then
8112 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
8114 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
8116 ac_sed_frag=`expr $ac_sed_frag + 1`
8118 ac_end=`expr $ac_end + $ac_max_sed_lines`
8121 if test -z "$ac_sed_cmds"; then
8124 fi # test -n "$CONFIG_FILES"
8127 cat >>$CONFIG_STATUS <<\_ACEOF
8128 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
8129 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8131 - | *:- | *:-:* ) # input from stdin
8133 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8134 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8135 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8136 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8137 * ) ac_file_in=$ac_file.in ;;
8140 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
8141 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
8142 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8143 X"$ac_file" : 'X\(//\)[^/]' \| \
8144 X"$ac_file" : 'X\(//\)$' \| \
8145 X"$ac_file" : 'X\(/\)' \| \
8146 . : '\(.\)' 2>/dev/null ||
8148 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8149 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8150 /^X\(\/\/\)$/{ s//\1/; q; }
8151 /^X\(\/\).*/{ s//\1/; q; }
8153 { if $as_mkdir_p; then
8158 while test ! -d "$as_dir"; do
8159 as_dirs="$as_dir $as_dirs"
8160 as_dir=`(dirname "$as_dir") 2>/dev/null ||
8161 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8162 X"$as_dir" : 'X\(//\)[^/]' \| \
8163 X"$as_dir" : 'X\(//\)$' \| \
8164 X"$as_dir" : 'X\(/\)' \| \
8165 . : '\(.\)' 2>/dev/null ||
8167 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8168 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8169 /^X\(\/\/\)$/{ s//\1/; q; }
8170 /^X\(\/\).*/{ s//\1/; q; }
8173 test ! -n "$as_dirs" || mkdir $as_dirs
8174 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
8175 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
8176 { (exit 1); exit 1; }; }; }
8180 if test "$ac_dir" != .; then
8181 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
8182 # A "../" for each directory in $ac_dir_suffix.
8183 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
8185 ac_dir_suffix= ac_top_builddir=
8189 .) # No --srcdir option. We are building in place.
8191 if test -z "$ac_top_builddir"; then
8194 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
8196 [\\/]* | ?:[\\/]* ) # Absolute path.
8197 ac_srcdir=$srcdir$ac_dir_suffix;
8198 ac_top_srcdir=$srcdir ;;
8200 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
8201 ac_top_srcdir=$ac_top_builddir$srcdir ;;
8203 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
8205 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
8206 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
8207 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
8208 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
8212 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
8213 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
8216 if test x"$ac_file" != x-; then
8217 { echo "$as_me:$LINENO: creating $ac_file" >&5
8218 echo "$as_me: creating $ac_file" >&6;}
8221 # Let's still pretend it is `configure' which instantiates (i.e., don't
8222 # use $as_me), people would be surprised to read:
8223 # /* config.h. Generated by config.status. */
8224 if test x"$ac_file" = x-; then
8227 configure_input="$ac_file. "
8229 configure_input=$configure_input"Generated from `echo $ac_file_in |
8230 sed 's,.*/,,'` by configure."
8232 # First look for the input files in the build tree, otherwise in the
8234 ac_file_inputs=`IFS=:
8235 for f in $ac_file_in; do
8237 -) echo $tmp/stdin ;;
8239 # Absolute (can't be DOS-style, as IFS=:)
8240 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8241 echo "$as_me: error: cannot find input file: $f" >&2;}
8242 { (exit 1); exit 1; }; }
8245 if test -f "$f"; then
8248 elif test -f "$srcdir/$f"; then
8253 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8254 echo "$as_me: error: cannot find input file: $f" >&2;}
8255 { (exit 1); exit 1; }; }
8258 done` || { (exit 1); exit 1; }
8260 cat >>$CONFIG_STATUS <<_ACEOF
8264 cat >>$CONFIG_STATUS <<\_ACEOF
8266 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
8267 s,@configure_input@,$configure_input,;t t
8268 s,@srcdir@,$ac_srcdir,;t t
8269 s,@abs_srcdir@,$ac_abs_srcdir,;t t
8270 s,@top_srcdir@,$ac_top_srcdir,;t t
8271 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
8272 s,@builddir@,$ac_builddir,;t t
8273 s,@abs_builddir@,$ac_abs_builddir,;t t
8274 s,@top_builddir@,$ac_top_builddir,;t t
8275 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
8276 s,@INSTALL@,$ac_INSTALL,;t t
8277 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
8279 if test x"$ac_file" != x-; then
8280 mv $tmp/out $ac_file
8288 cat >>$CONFIG_STATUS <<\_ACEOF
8291 # CONFIG_HEADER section.
8294 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
8295 # NAME is the cpp macro being defined and VALUE is the value it is being given.
8297 # ac_d sets the value in "#define NAME VALUE" lines.
8298 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
8299 ac_dB='[ ].*$,\1#\2'
8302 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
8303 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
8304 ac_uB='$,\1#\2define\3'
8308 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
8309 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8311 - | *:- | *:-:* ) # input from stdin
8313 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8314 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8315 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8316 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8317 * ) ac_file_in=$ac_file.in ;;
8320 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
8321 echo "$as_me: creating $ac_file" >&6;}
8323 # First look for the input files in the build tree, otherwise in the
8325 ac_file_inputs=`IFS=:
8326 for f in $ac_file_in; do
8328 -) echo $tmp/stdin ;;
8330 # Absolute (can't be DOS-style, as IFS=:)
8331 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8332 echo "$as_me: error: cannot find input file: $f" >&2;}
8333 { (exit 1); exit 1; }; }
8336 if test -f "$f"; then
8339 elif test -f "$srcdir/$f"; then
8344 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8345 echo "$as_me: error: cannot find input file: $f" >&2;}
8346 { (exit 1); exit 1; }; }
8349 done` || { (exit 1); exit 1; }
8350 # Remove the trailing spaces.
8351 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
8355 # Transform confdefs.h into two sed scripts, `conftest.defines' and
8356 # `conftest.undefs', that substitutes the proper values into
8357 # config.h.in to produce config.h. The first handles `#define'
8358 # templates, and the second `#undef' templates.
8359 # And first: Protect against being on the right side of a sed subst in
8360 # config.status. Protect against being in an unquoted here document
8362 rm -f conftest.defines conftest.undefs
8363 # Using a here document instead of a string reduces the quoting nightmare.
8364 # Putting comments in sed scripts is not portable.
8366 # `end' is used to avoid that the second main sed command (meant for
8367 # 0-ary CPP macros) applies to n-ary macro definitions.
8368 # See the Autoconf documentation for `clear'.
8369 cat >confdef2sed.sed <<\_ACEOF
8374 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
8376 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
8379 # If some macros were called several times there might be several times
8380 # the same #defines, which is useless. Nevertheless, we may not want to
8381 # sort them, since we want the *last* AC-DEFINE to be honored.
8382 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
8383 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
8384 rm -f confdef2sed.sed
8386 # This sed command replaces #undef with comments. This is necessary, for
8387 # example, in the case of _POSIX_SOURCE, which is predefined and required
8388 # on some systems where configure will not decide to define it.
8389 cat >>conftest.undefs <<\_ACEOF
8390 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
8393 # Break up conftest.defines because some shells have a limit on the size
8394 # of here documents, and old seds have small limits too (100 cmds).
8395 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
8396 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
8397 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
8398 echo ' :' >>$CONFIG_STATUS
8400 while grep . conftest.defines >/dev/null
8402 # Write a limited-size here document to $tmp/defines.sed.
8403 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
8404 # Speed up: don't consider the non `#define' lines.
8405 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
8406 # Work around the forget-to-reset-the-flag bug.
8407 echo 't clr' >>$CONFIG_STATUS
8408 echo ': clr' >>$CONFIG_STATUS
8409 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
8411 sed -f $tmp/defines.sed $tmp/in >$tmp/out
8415 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
8416 rm -f conftest.defines
8417 mv conftest.tail conftest.defines
8419 rm -f conftest.defines
8420 echo ' fi # grep' >>$CONFIG_STATUS
8421 echo >>$CONFIG_STATUS
8423 # Break up conftest.undefs because some shells have a limit on the size
8424 # of here documents, and old seds have small limits too (100 cmds).
8425 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
8427 while grep . conftest.undefs >/dev/null
8429 # Write a limited-size here document to $tmp/undefs.sed.
8430 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
8431 # Speed up: don't consider the non `#undef'
8432 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
8433 # Work around the forget-to-reset-the-flag bug.
8434 echo 't clr' >>$CONFIG_STATUS
8435 echo ': clr' >>$CONFIG_STATUS
8436 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
8438 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
8442 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
8443 rm -f conftest.undefs
8444 mv conftest.tail conftest.undefs
8446 rm -f conftest.undefs
8448 cat >>$CONFIG_STATUS <<\_ACEOF
8449 # Let's still pretend it is `configure' which instantiates (i.e., don't
8450 # use $as_me), people would be surprised to read:
8451 # /* config.h. Generated by config.status. */
8452 if test x"$ac_file" = x-; then
8453 echo "/* Generated by configure. */" >$tmp/config.h
8455 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
8457 cat $tmp/in >>$tmp/config.h
8459 if test x"$ac_file" != x-; then
8460 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
8461 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
8462 echo "$as_me: $ac_file is unchanged" >&6;}
8464 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
8465 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8466 X"$ac_file" : 'X\(//\)[^/]' \| \
8467 X"$ac_file" : 'X\(//\)$' \| \
8468 X"$ac_file" : 'X\(/\)' \| \
8469 . : '\(.\)' 2>/dev/null ||
8471 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8472 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8473 /^X\(\/\/\)$/{ s//\1/; q; }
8474 /^X\(\/\).*/{ s//\1/; q; }
8476 { if $as_mkdir_p; then
8481 while test ! -d "$as_dir"; do
8482 as_dirs="$as_dir $as_dirs"
8483 as_dir=`(dirname "$as_dir") 2>/dev/null ||
8484 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8485 X"$as_dir" : 'X\(//\)[^/]' \| \
8486 X"$as_dir" : 'X\(//\)$' \| \
8487 X"$as_dir" : 'X\(/\)' \| \
8488 . : '\(.\)' 2>/dev/null ||
8490 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8491 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8492 /^X\(\/\/\)$/{ s//\1/; q; }
8493 /^X\(\/\).*/{ s//\1/; q; }
8496 test ! -n "$as_dirs" || mkdir $as_dirs
8497 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
8498 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
8499 { (exit 1); exit 1; }; }; }
8502 mv $tmp/config.h $ac_file
8510 cat >>$CONFIG_STATUS <<\_ACEOF
8513 # CONFIG_COMMANDS section.
8515 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
8516 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
8517 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
8518 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
8519 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8520 X"$ac_dest" : 'X\(//\)[^/]' \| \
8521 X"$ac_dest" : 'X\(//\)$' \| \
8522 X"$ac_dest" : 'X\(/\)' \| \
8523 . : '\(.\)' 2>/dev/null ||
8525 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8526 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8527 /^X\(\/\/\)$/{ s//\1/; q; }
8528 /^X\(\/\).*/{ s//\1/; q; }
8532 if test "$ac_dir" != .; then
8533 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
8534 # A "../" for each directory in $ac_dir_suffix.
8535 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
8537 ac_dir_suffix= ac_top_builddir=
8541 .) # No --srcdir option. We are building in place.
8543 if test -z "$ac_top_builddir"; then
8546 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
8548 [\\/]* | ?:[\\/]* ) # Absolute path.
8549 ac_srcdir=$srcdir$ac_dir_suffix;
8550 ac_top_srcdir=$srcdir ;;
8552 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
8553 ac_top_srcdir=$ac_top_builddir$srcdir ;;
8555 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
8557 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
8558 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
8559 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
8560 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
8563 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
8564 echo "$as_me: executing $ac_dest commands" >&6;}
8567 case $CONFIG_FILES in *config.make*)
8568 echo "$config_vars" >> config.make;;
8570 test -d bits || mkdir bits ;;
8575 cat >>$CONFIG_STATUS <<\_ACEOF
8577 { (exit 0); exit 0; }
8579 chmod +x $CONFIG_STATUS
8580 ac_clean_files=$ac_clean_files_save
8583 # configure is writing to config.log, and then calls config.status.
8584 # config.status does its own redirection, appending to config.log.
8585 # Unfortunately, on DOS this fails, as config.log is still kept open
8586 # by configure, so config.status won't be able to write to it; its
8587 # output is simply discarded. So we exec the FD to /dev/null,
8588 # effectively closing config.log, so it can be properly (re)opened and
8589 # appended to by config.status. When coming back to configure, we
8590 # need to make the FD available again.
8591 if test "$no_create" != yes; then
8593 ac_config_status_args=
8594 test "$silent" = yes &&
8595 ac_config_status_args="$ac_config_status_args --quiet"
8597 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
8599 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
8600 # would make configure fail if this is the last instruction.
8601 $ac_cs_success || { (exit 1); exit 1; }
8605 # CONFIG_SUBDIRS section.
8607 if test "$no_recursion" != yes; then
8609 # Remove --cache-file and --srcdir arguments so they do not pile up.
8610 ac_sub_configure_args=
8612 for ac_arg in $ac_configure_args; do
8613 if test -n "$ac_prev"; then
8618 -cache-file | --cache-file | --cache-fil | --cache-fi \
8619 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
8620 ac_prev=cache_file ;;
8621 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
8622 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
8625 --config-cache | -C)
8627 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
8629 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
8631 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
8633 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
8635 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
8639 # Always prepend --prefix to ensure using the same prefix
8640 # in subdir configurations.
8641 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
8644 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
8646 # Do not complain, so a configure script can configure whichever
8647 # parts of a large source tree are present.
8648 test -d $srcdir/$ac_dir || continue
8650 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
8651 echo "$as_me: configuring in $ac_dir" >&6;}
8652 { if $as_mkdir_p; then
8657 while test ! -d "$as_dir"; do
8658 as_dirs="$as_dir $as_dirs"
8659 as_dir=`(dirname "$as_dir") 2>/dev/null ||
8660 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8661 X"$as_dir" : 'X\(//\)[^/]' \| \
8662 X"$as_dir" : 'X\(//\)$' \| \
8663 X"$as_dir" : 'X\(/\)' \| \
8664 . : '\(.\)' 2>/dev/null ||
8666 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8667 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8668 /^X\(\/\/\)$/{ s//\1/; q; }
8669 /^X\(\/\).*/{ s//\1/; q; }
8672 test ! -n "$as_dirs" || mkdir $as_dirs
8673 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
8674 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
8675 { (exit 1); exit 1; }; }; }
8679 if test "$ac_dir" != .; then
8680 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
8681 # A "../" for each directory in $ac_dir_suffix.
8682 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
8684 ac_dir_suffix= ac_top_builddir=
8688 .) # No --srcdir option. We are building in place.
8690 if test -z "$ac_top_builddir"; then
8693 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
8695 [\\/]* | ?:[\\/]* ) # Absolute path.
8696 ac_srcdir=$srcdir$ac_dir_suffix;
8697 ac_top_srcdir=$srcdir ;;
8699 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
8700 ac_top_srcdir=$ac_top_builddir$srcdir ;;
8702 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
8704 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
8705 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
8706 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
8707 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
8712 # Check for guested configure; otherwise get Cygnus style configure.
8713 if test -f $ac_srcdir/configure.gnu; then
8714 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
8715 elif test -f $ac_srcdir/configure; then
8716 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
8717 elif test -f $ac_srcdir/configure.in; then
8718 ac_sub_configure=$ac_configure
8720 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
8721 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
8725 # The recursion is here.
8726 if test -n "$ac_sub_configure"; then
8727 # Make the cache file name correct relative to the subdirectory.
8729 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
8731 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
8734 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
8735 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
8736 # The eval makes quoting arguments work.
8737 eval $ac_sub_configure $ac_sub_configure_args \
8738 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
8739 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
8740 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
8741 { (exit 1); exit 1; }; }