ld.so: Don't try to read own ELF headers on startup
[glibc/nacl-glibc.git] / configure
blobd118c1196f059190a4ab19d9a09ad84737052954
1 #! /bin/sh
2 # From configure.in CVSid.
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.61 for GNU C Library (see version.h).
6 # Report bugs to <glibc>.
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006 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 more Bourne compatible
17 DUALCASE=1; export DUALCASE # for MKS sh
18 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19 emulate sh
20 NULLCMD=:
21 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22 # is contrary to our usage. Disable this feature.
23 alias -g '${1+"$@"}'='"$@"'
24 setopt NO_GLOB_SUBST
25 else
26 case `(set -o) 2>/dev/null` in
27 *posix*) set -o posix ;;
28 esac
35 # PATH needs CR
36 # Avoid depending upon Character Ranges.
37 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
38 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
39 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
40 as_cr_digits='0123456789'
41 as_cr_alnum=$as_cr_Letters$as_cr_digits
43 # The user is always right.
44 if test "${PATH_SEPARATOR+set}" != set; then
45 echo "#! /bin/sh" >conf$$.sh
46 echo "exit 0" >>conf$$.sh
47 chmod +x conf$$.sh
48 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
49 PATH_SEPARATOR=';'
50 else
51 PATH_SEPARATOR=:
53 rm -f conf$$.sh
56 # Support unset when possible.
57 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
58 as_unset=unset
59 else
60 as_unset=false
64 # IFS
65 # We need space, tab and new line, in precisely that order. Quoting is
66 # there to prevent editors from complaining about space-tab.
67 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
68 # splitting by setting IFS to empty value.)
69 as_nl='
71 IFS=" "" $as_nl"
73 # Find who we are. Look in the path if we contain no directory separator.
74 case $0 in
75 *[\\/]* ) as_myself=$0 ;;
76 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
77 for as_dir in $PATH
79 IFS=$as_save_IFS
80 test -z "$as_dir" && as_dir=.
81 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
82 done
83 IFS=$as_save_IFS
86 esac
87 # We did not find ourselves, most probably we were run as `sh COMMAND'
88 # in which case we are not to be found in the path.
89 if test "x$as_myself" = x; then
90 as_myself=$0
92 if test ! -f "$as_myself"; then
93 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
94 { (exit 1); exit 1; }
97 # Work around bugs in pre-3.0 UWIN ksh.
98 for as_var in ENV MAIL MAILPATH
99 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
100 done
101 PS1='$ '
102 PS2='> '
103 PS4='+ '
105 # NLS nuisances.
106 for as_var in \
107 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
108 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
109 LC_TELEPHONE LC_TIME
111 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
112 eval $as_var=C; export $as_var
113 else
114 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
116 done
118 # Required to use basename.
119 if expr a : '\(a\)' >/dev/null 2>&1 &&
120 test "X`expr 00001 : '.*\(...\)'`" = X001; then
121 as_expr=expr
122 else
123 as_expr=false
126 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
127 as_basename=basename
128 else
129 as_basename=false
133 # Name of the executable.
134 as_me=`$as_basename -- "$0" ||
135 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
136 X"$0" : 'X\(//\)$' \| \
137 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
138 echo X/"$0" |
139 sed '/^.*\/\([^/][^/]*\)\/*$/{
140 s//\1/
143 /^X\/\(\/\/\)$/{
144 s//\1/
147 /^X\/\(\/\).*/{
148 s//\1/
151 s/.*/./; q'`
153 # CDPATH.
154 $as_unset CDPATH
157 if test "x$CONFIG_SHELL" = x; then
158 if (eval ":") 2>/dev/null; then
159 as_have_required=yes
160 else
161 as_have_required=no
164 if test $as_have_required = yes && (eval ":
165 (as_func_return () {
166 (exit \$1)
168 as_func_success () {
169 as_func_return 0
171 as_func_failure () {
172 as_func_return 1
174 as_func_ret_success () {
175 return 0
177 as_func_ret_failure () {
178 return 1
181 exitcode=0
182 if as_func_success; then
184 else
185 exitcode=1
186 echo as_func_success failed.
189 if as_func_failure; then
190 exitcode=1
191 echo as_func_failure succeeded.
194 if as_func_ret_success; then
196 else
197 exitcode=1
198 echo as_func_ret_success failed.
201 if as_func_ret_failure; then
202 exitcode=1
203 echo as_func_ret_failure succeeded.
206 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
208 else
209 exitcode=1
210 echo positional parameters were not saved.
213 test \$exitcode = 0) || { (exit 1); exit 1; }
216 as_lineno_1=\$LINENO
217 as_lineno_2=\$LINENO
218 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
219 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
220 ") 2> /dev/null; then
222 else
223 as_candidate_shells=
224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
225 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
227 IFS=$as_save_IFS
228 test -z "$as_dir" && as_dir=.
229 case $as_dir in
231 for as_base in sh bash ksh sh5; do
232 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
233 done;;
234 esac
235 done
236 IFS=$as_save_IFS
239 for as_shell in $as_candidate_shells $SHELL; do
240 # Try only shells that exist, to save several forks.
241 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
242 { ("$as_shell") 2> /dev/null <<\_ASEOF
243 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
244 emulate sh
245 NULLCMD=:
246 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
247 # is contrary to our usage. Disable this feature.
248 alias -g '${1+"$@"}'='"$@"'
249 setopt NO_GLOB_SUBST
250 else
251 case `(set -o) 2>/dev/null` in
252 *posix*) set -o posix ;;
253 esac
259 _ASEOF
260 }; then
261 CONFIG_SHELL=$as_shell
262 as_have_required=yes
263 if { "$as_shell" 2> /dev/null <<\_ASEOF
264 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
265 emulate sh
266 NULLCMD=:
267 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
268 # is contrary to our usage. Disable this feature.
269 alias -g '${1+"$@"}'='"$@"'
270 setopt NO_GLOB_SUBST
271 else
272 case `(set -o) 2>/dev/null` in
273 *posix*) set -o posix ;;
274 esac
280 (as_func_return () {
281 (exit $1)
283 as_func_success () {
284 as_func_return 0
286 as_func_failure () {
287 as_func_return 1
289 as_func_ret_success () {
290 return 0
292 as_func_ret_failure () {
293 return 1
296 exitcode=0
297 if as_func_success; then
299 else
300 exitcode=1
301 echo as_func_success failed.
304 if as_func_failure; then
305 exitcode=1
306 echo as_func_failure succeeded.
309 if as_func_ret_success; then
311 else
312 exitcode=1
313 echo as_func_ret_success failed.
316 if as_func_ret_failure; then
317 exitcode=1
318 echo as_func_ret_failure succeeded.
321 if ( set x; as_func_ret_success y && test x = "$1" ); then
323 else
324 exitcode=1
325 echo positional parameters were not saved.
328 test $exitcode = 0) || { (exit 1); exit 1; }
331 as_lineno_1=$LINENO
332 as_lineno_2=$LINENO
333 test "x$as_lineno_1" != "x$as_lineno_2" &&
334 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
336 _ASEOF
337 }; then
338 break
343 done
345 if test "x$CONFIG_SHELL" != x; then
346 for as_var in BASH_ENV ENV
347 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
348 done
349 export CONFIG_SHELL
350 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
354 if test $as_have_required = no; then
355 echo This script requires a shell more modern than all the
356 echo shells that I found on your system. Please install a
357 echo modern shell, or manually run the script under such a
358 echo shell if you do have one.
359 { (exit 1); exit 1; }
369 (eval "as_func_return () {
370 (exit \$1)
372 as_func_success () {
373 as_func_return 0
375 as_func_failure () {
376 as_func_return 1
378 as_func_ret_success () {
379 return 0
381 as_func_ret_failure () {
382 return 1
385 exitcode=0
386 if as_func_success; then
388 else
389 exitcode=1
390 echo as_func_success failed.
393 if as_func_failure; then
394 exitcode=1
395 echo as_func_failure succeeded.
398 if as_func_ret_success; then
400 else
401 exitcode=1
402 echo as_func_ret_success failed.
405 if as_func_ret_failure; then
406 exitcode=1
407 echo as_func_ret_failure succeeded.
410 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
412 else
413 exitcode=1
414 echo positional parameters were not saved.
417 test \$exitcode = 0") || {
418 echo No shell found that supports shell functions.
419 echo Please tell autoconf@gnu.org about your system,
420 echo including any error possibly output before this
421 echo message
426 as_lineno_1=$LINENO
427 as_lineno_2=$LINENO
428 test "x$as_lineno_1" != "x$as_lineno_2" &&
429 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
431 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
432 # uniformly replaced by the line number. The first 'sed' inserts a
433 # line-number line after each line using $LINENO; the second 'sed'
434 # does the real work. The second script uses 'N' to pair each
435 # line-number line with the line containing $LINENO, and appends
436 # trailing '-' during substitution so that $LINENO is not a special
437 # case at line end.
438 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
439 # scripts with optimization help from Paolo Bonzini. Blame Lee
440 # E. McMahon (1931-1989) for sed's syntax. :-)
441 sed -n '
443 /[$]LINENO/=
444 ' <$as_myself |
445 sed '
446 s/[$]LINENO.*/&-/
447 t lineno
449 :lineno
451 :loop
452 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
453 t loop
454 s/-\n.*//
455 ' >$as_me.lineno &&
456 chmod +x "$as_me.lineno" ||
457 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
458 { (exit 1); exit 1; }; }
460 # Don't try to exec as it changes $[0], causing all sort of problems
461 # (the dirname of $[0] is not the place where we might find the
462 # original and so on. Autoconf is especially sensitive to this).
463 . "./$as_me.lineno"
464 # Exit status is that of the last command.
465 exit
469 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
470 as_dirname=dirname
471 else
472 as_dirname=false
475 ECHO_C= ECHO_N= ECHO_T=
476 case `echo -n x` in
477 -n*)
478 case `echo 'x\c'` in
479 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
480 *) ECHO_C='\c';;
481 esac;;
483 ECHO_N='-n';;
484 esac
486 if expr a : '\(a\)' >/dev/null 2>&1 &&
487 test "X`expr 00001 : '.*\(...\)'`" = X001; then
488 as_expr=expr
489 else
490 as_expr=false
493 rm -f conf$$ conf$$.exe conf$$.file
494 if test -d conf$$.dir; then
495 rm -f conf$$.dir/conf$$.file
496 else
497 rm -f conf$$.dir
498 mkdir conf$$.dir
500 echo >conf$$.file
501 if ln -s conf$$.file conf$$ 2>/dev/null; then
502 as_ln_s='ln -s'
503 # ... but there are two gotchas:
504 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
505 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
506 # In both cases, we have to default to `cp -p'.
507 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
508 as_ln_s='cp -p'
509 elif ln conf$$.file conf$$ 2>/dev/null; then
510 as_ln_s=ln
511 else
512 as_ln_s='cp -p'
514 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
515 rmdir conf$$.dir 2>/dev/null
517 if mkdir -p . 2>/dev/null; then
518 as_mkdir_p=:
519 else
520 test -d ./-p && rmdir ./-p
521 as_mkdir_p=false
524 if test -x / >/dev/null 2>&1; then
525 as_test_x='test -x'
526 else
527 if ls -dL / >/dev/null 2>&1; then
528 as_ls_L_option=L
529 else
530 as_ls_L_option=
532 as_test_x='
533 eval sh -c '\''
534 if test -d "$1"; then
535 test -d "$1/.";
536 else
537 case $1 in
538 -*)set "./$1";;
539 esac;
540 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
541 ???[sx]*):;;*)false;;esac;fi
542 '\'' sh
545 as_executable_p=$as_test_x
547 # Sed expression to map a string onto a valid CPP name.
548 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
550 # Sed expression to map a string onto a valid variable name.
551 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
555 exec 7<&0 </dev/null 6>&1
557 # Name of the host.
558 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
559 # so uname gets run too.
560 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
563 # Initializations.
565 ac_default_prefix=/usr/local
566 ac_clean_files=
567 ac_config_libobj_dir=.
568 LIBOBJS=
569 cross_compiling=no
570 subdirs=
571 MFLAGS=
572 MAKEFLAGS=
573 SHELL=${CONFIG_SHELL-/bin/sh}
575 # Identity of this package.
576 PACKAGE_NAME='GNU C Library'
577 PACKAGE_TARNAME='c-library'
578 PACKAGE_VERSION='(see version.h)'
579 PACKAGE_STRING='GNU C Library (see version.h)'
580 PACKAGE_BUGREPORT='glibc'
582 ac_unique_file="include/features.h"
583 ac_subst_vars='SHELL
584 PATH_SEPARATOR
585 PACKAGE_NAME
586 PACKAGE_TARNAME
587 PACKAGE_VERSION
588 PACKAGE_STRING
589 PACKAGE_BUGREPORT
590 exec_prefix
591 prefix
592 program_transform_name
593 bindir
594 sbindir
595 libexecdir
596 datarootdir
597 datadir
598 sysconfdir
599 sharedstatedir
600 localstatedir
601 includedir
602 oldincludedir
603 docdir
604 infodir
605 htmldir
606 dvidir
607 pdfdir
608 psdir
609 libdir
610 localedir
611 mandir
612 DEFS
613 ECHO_C
614 ECHO_N
615 ECHO_T
616 LIBS
617 build_alias
618 host_alias
619 target_alias
620 with_fp
621 with_cvs
622 enable_check_abi
623 oldest_abi
624 bindnow
625 force_install
626 all_warnings
627 build
628 build_cpu
629 build_vendor
630 build_os
631 host
632 host_cpu
633 host_vendor
634 host_os
635 subdirs
636 add_ons
637 add_on_subdirs
638 base_machine
639 submachine
640 sysnames
641 sysdeps_add_ons
642 INSTALL_PROGRAM
643 INSTALL_SCRIPT
644 INSTALL_DATA
645 LN_S
647 CFLAGS
648 LDFLAGS
649 CPPFLAGS
650 ac_ct_CC
651 OBJEXT
652 BUILD_CC
653 cross_compiling
656 CXXFLAGS
657 ac_ct_CXX
659 OBJDUMP
660 RANLIB
664 PWD_P
665 MAKE
666 MSGFMT
667 MAKEINFO
669 AUTOCONF
670 SYSINCLUDES
671 CXX_SYSINCLUDES
672 libc_cv_gcc_static_libgcc
673 BASH_SHELL
674 libc_cv_have_bash2
676 libc_cv_have_ksh
678 PERL
679 INSTALL_INFO
680 BISON
681 VERSIONING
682 libc_cv_cc_with_libunwind
683 libc_cv_Bgroup
684 libc_cv_libgcc_s_suffix
685 libc_cv_as_needed
686 ASFLAGS_config
687 libc_cv_z_combreloc
688 libc_cv_z_execstack
689 libc_cv_fpie
690 libc_cv_hashstyle
691 fno_unit_at_a_time
692 libc_cv_ssp
693 libc_cv_gnu89_inline
694 libc_cv_have_initfini
695 no_whole_archive
696 exceptions
697 libc_cv_cc_submachine
698 LIBGD
699 have_libaudit
700 have_libcap
701 have_selinux
702 sizeof_long_double
703 libc_cv_gcc_unwind_find_fde
704 uname_sysname
705 uname_release
706 uname_version
707 old_glibc_headers
708 libc_cv_slibdir
709 libc_cv_localedir
710 libc_cv_sysconfdir
711 libc_cv_rootsbindir
712 libc_cv_forced_unwind
713 libc_cv_cpp_asm_debuginfo
714 use_ldconfig
715 ldd_rewrite_script
717 xcoff
718 static
719 shared
720 pic_default
721 profile
722 omitfp
723 bounded
724 static_nss
725 nopic_initfini
726 DEFINES
727 mach_interface_list
728 VERSION
729 RELEASE
730 LIBOBJS
731 LTLIBOBJS'
732 ac_subst_files=''
733 ac_precious_vars='build_alias
734 host_alias
735 target_alias
737 CFLAGS
738 LDFLAGS
739 LIBS
740 CPPFLAGS
743 CXXFLAGS
744 CCC'
745 ac_subdirs_all=''
747 # Initialize some variables set by options.
748 ac_init_help=
749 ac_init_version=false
750 # The variables have the same names as the options, with
751 # dashes changed to underlines.
752 cache_file=/dev/null
753 exec_prefix=NONE
754 no_create=
755 no_recursion=
756 prefix=NONE
757 program_prefix=NONE
758 program_suffix=NONE
759 program_transform_name=s,x,x,
760 silent=
761 site=
762 srcdir=
763 verbose=
764 x_includes=NONE
765 x_libraries=NONE
767 # Installation directory options.
768 # These are left unexpanded so users can "make install exec_prefix=/foo"
769 # and all the variables that are supposed to be based on exec_prefix
770 # by default will actually change.
771 # Use braces instead of parens because sh, perl, etc. also accept them.
772 # (The list follows the same order as the GNU Coding Standards.)
773 bindir='${exec_prefix}/bin'
774 sbindir='${exec_prefix}/sbin'
775 libexecdir='${exec_prefix}/libexec'
776 datarootdir='${prefix}/share'
777 datadir='${datarootdir}'
778 sysconfdir='${prefix}/etc'
779 sharedstatedir='${prefix}/com'
780 localstatedir='${prefix}/var'
781 includedir='${prefix}/include'
782 oldincludedir='/usr/include'
783 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
784 infodir='${datarootdir}/info'
785 htmldir='${docdir}'
786 dvidir='${docdir}'
787 pdfdir='${docdir}'
788 psdir='${docdir}'
789 libdir='${exec_prefix}/lib'
790 localedir='${datarootdir}/locale'
791 mandir='${datarootdir}/man'
793 ac_prev=
794 ac_dashdash=
795 for ac_option
797 # If the previous option needs an argument, assign it.
798 if test -n "$ac_prev"; then
799 eval $ac_prev=\$ac_option
800 ac_prev=
801 continue
804 case $ac_option in
805 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
806 *) ac_optarg=yes ;;
807 esac
809 # Accept the important Cygnus configure options, so we can diagnose typos.
811 case $ac_dashdash$ac_option in
813 ac_dashdash=yes ;;
815 -bindir | --bindir | --bindi | --bind | --bin | --bi)
816 ac_prev=bindir ;;
817 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
818 bindir=$ac_optarg ;;
820 -build | --build | --buil | --bui | --bu)
821 ac_prev=build_alias ;;
822 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
823 build_alias=$ac_optarg ;;
825 -cache-file | --cache-file | --cache-fil | --cache-fi \
826 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
827 ac_prev=cache_file ;;
828 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
829 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
830 cache_file=$ac_optarg ;;
832 --config-cache | -C)
833 cache_file=config.cache ;;
835 -datadir | --datadir | --datadi | --datad)
836 ac_prev=datadir ;;
837 -datadir=* | --datadir=* | --datadi=* | --datad=*)
838 datadir=$ac_optarg ;;
840 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
841 | --dataroo | --dataro | --datar)
842 ac_prev=datarootdir ;;
843 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
844 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
845 datarootdir=$ac_optarg ;;
847 -disable-* | --disable-*)
848 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
849 # Reject names that are not valid shell variable names.
850 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
851 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
852 { (exit 1); exit 1; }; }
853 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
854 eval enable_$ac_feature=no ;;
856 -docdir | --docdir | --docdi | --doc | --do)
857 ac_prev=docdir ;;
858 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
859 docdir=$ac_optarg ;;
861 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
862 ac_prev=dvidir ;;
863 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
864 dvidir=$ac_optarg ;;
866 -enable-* | --enable-*)
867 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
868 # Reject names that are not valid shell variable names.
869 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
870 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
871 { (exit 1); exit 1; }; }
872 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
873 eval enable_$ac_feature=\$ac_optarg ;;
875 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
876 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
877 | --exec | --exe | --ex)
878 ac_prev=exec_prefix ;;
879 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
880 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
881 | --exec=* | --exe=* | --ex=*)
882 exec_prefix=$ac_optarg ;;
884 -gas | --gas | --ga | --g)
885 # Obsolete; use --with-gas.
886 with_gas=yes ;;
888 -help | --help | --hel | --he | -h)
889 ac_init_help=long ;;
890 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
891 ac_init_help=recursive ;;
892 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
893 ac_init_help=short ;;
895 -host | --host | --hos | --ho)
896 ac_prev=host_alias ;;
897 -host=* | --host=* | --hos=* | --ho=*)
898 host_alias=$ac_optarg ;;
900 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
901 ac_prev=htmldir ;;
902 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
903 | --ht=*)
904 htmldir=$ac_optarg ;;
906 -includedir | --includedir | --includedi | --included | --include \
907 | --includ | --inclu | --incl | --inc)
908 ac_prev=includedir ;;
909 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
910 | --includ=* | --inclu=* | --incl=* | --inc=*)
911 includedir=$ac_optarg ;;
913 -infodir | --infodir | --infodi | --infod | --info | --inf)
914 ac_prev=infodir ;;
915 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
916 infodir=$ac_optarg ;;
918 -libdir | --libdir | --libdi | --libd)
919 ac_prev=libdir ;;
920 -libdir=* | --libdir=* | --libdi=* | --libd=*)
921 libdir=$ac_optarg ;;
923 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
924 | --libexe | --libex | --libe)
925 ac_prev=libexecdir ;;
926 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
927 | --libexe=* | --libex=* | --libe=*)
928 libexecdir=$ac_optarg ;;
930 -localedir | --localedir | --localedi | --localed | --locale)
931 ac_prev=localedir ;;
932 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
933 localedir=$ac_optarg ;;
935 -localstatedir | --localstatedir | --localstatedi | --localstated \
936 | --localstate | --localstat | --localsta | --localst | --locals)
937 ac_prev=localstatedir ;;
938 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
939 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
940 localstatedir=$ac_optarg ;;
942 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
943 ac_prev=mandir ;;
944 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
945 mandir=$ac_optarg ;;
947 -nfp | --nfp | --nf)
948 # Obsolete; use --without-fp.
949 with_fp=no ;;
951 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
952 | --no-cr | --no-c | -n)
953 no_create=yes ;;
955 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
956 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
957 no_recursion=yes ;;
959 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
960 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
961 | --oldin | --oldi | --old | --ol | --o)
962 ac_prev=oldincludedir ;;
963 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
964 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
965 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
966 oldincludedir=$ac_optarg ;;
968 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
969 ac_prev=prefix ;;
970 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
971 prefix=$ac_optarg ;;
973 -program-prefix | --program-prefix | --program-prefi | --program-pref \
974 | --program-pre | --program-pr | --program-p)
975 ac_prev=program_prefix ;;
976 -program-prefix=* | --program-prefix=* | --program-prefi=* \
977 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
978 program_prefix=$ac_optarg ;;
980 -program-suffix | --program-suffix | --program-suffi | --program-suff \
981 | --program-suf | --program-su | --program-s)
982 ac_prev=program_suffix ;;
983 -program-suffix=* | --program-suffix=* | --program-suffi=* \
984 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
985 program_suffix=$ac_optarg ;;
987 -program-transform-name | --program-transform-name \
988 | --program-transform-nam | --program-transform-na \
989 | --program-transform-n | --program-transform- \
990 | --program-transform | --program-transfor \
991 | --program-transfo | --program-transf \
992 | --program-trans | --program-tran \
993 | --progr-tra | --program-tr | --program-t)
994 ac_prev=program_transform_name ;;
995 -program-transform-name=* | --program-transform-name=* \
996 | --program-transform-nam=* | --program-transform-na=* \
997 | --program-transform-n=* | --program-transform-=* \
998 | --program-transform=* | --program-transfor=* \
999 | --program-transfo=* | --program-transf=* \
1000 | --program-trans=* | --program-tran=* \
1001 | --progr-tra=* | --program-tr=* | --program-t=*)
1002 program_transform_name=$ac_optarg ;;
1004 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1005 ac_prev=pdfdir ;;
1006 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1007 pdfdir=$ac_optarg ;;
1009 -psdir | --psdir | --psdi | --psd | --ps)
1010 ac_prev=psdir ;;
1011 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1012 psdir=$ac_optarg ;;
1014 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1015 | -silent | --silent | --silen | --sile | --sil)
1016 silent=yes ;;
1018 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1019 ac_prev=sbindir ;;
1020 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1021 | --sbi=* | --sb=*)
1022 sbindir=$ac_optarg ;;
1024 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1025 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1026 | --sharedst | --shareds | --shared | --share | --shar \
1027 | --sha | --sh)
1028 ac_prev=sharedstatedir ;;
1029 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1030 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1031 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1032 | --sha=* | --sh=*)
1033 sharedstatedir=$ac_optarg ;;
1035 -site | --site | --sit)
1036 ac_prev=site ;;
1037 -site=* | --site=* | --sit=*)
1038 site=$ac_optarg ;;
1040 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1041 ac_prev=srcdir ;;
1042 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1043 srcdir=$ac_optarg ;;
1045 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1046 | --syscon | --sysco | --sysc | --sys | --sy)
1047 ac_prev=sysconfdir ;;
1048 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1049 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1050 sysconfdir=$ac_optarg ;;
1052 -target | --target | --targe | --targ | --tar | --ta | --t)
1053 ac_prev=target_alias ;;
1054 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1055 target_alias=$ac_optarg ;;
1057 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1058 verbose=yes ;;
1060 -version | --version | --versio | --versi | --vers | -V)
1061 ac_init_version=: ;;
1063 -with-* | --with-*)
1064 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1065 # Reject names that are not valid shell variable names.
1066 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1067 { echo "$as_me: error: invalid package name: $ac_package" >&2
1068 { (exit 1); exit 1; }; }
1069 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1070 eval with_$ac_package=\$ac_optarg ;;
1072 -without-* | --without-*)
1073 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1074 # Reject names that are not valid shell variable names.
1075 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1076 { echo "$as_me: error: invalid package name: $ac_package" >&2
1077 { (exit 1); exit 1; }; }
1078 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1079 eval with_$ac_package=no ;;
1081 --x)
1082 # Obsolete; use --with-x.
1083 with_x=yes ;;
1085 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1086 | --x-incl | --x-inc | --x-in | --x-i)
1087 ac_prev=x_includes ;;
1088 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1089 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1090 x_includes=$ac_optarg ;;
1092 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1093 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1094 ac_prev=x_libraries ;;
1095 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1096 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1097 x_libraries=$ac_optarg ;;
1099 -*) { echo "$as_me: error: unrecognized option: $ac_option
1100 Try \`$0 --help' for more information." >&2
1101 { (exit 1); exit 1; }; }
1104 *=*)
1105 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1106 # Reject names that are not valid shell variable names.
1107 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1108 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1109 { (exit 1); exit 1; }; }
1110 eval $ac_envvar=\$ac_optarg
1111 export $ac_envvar ;;
1114 # FIXME: should be removed in autoconf 3.0.
1115 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1116 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1117 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1118 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1121 esac
1122 done
1124 if test -n "$ac_prev"; then
1125 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1126 { echo "$as_me: error: missing argument to $ac_option" >&2
1127 { (exit 1); exit 1; }; }
1130 # Be sure to have absolute directory names.
1131 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1132 datadir sysconfdir sharedstatedir localstatedir includedir \
1133 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1134 libdir localedir mandir
1136 eval ac_val=\$$ac_var
1137 case $ac_val in
1138 [\\/$]* | ?:[\\/]* ) continue;;
1139 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1140 esac
1141 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1142 { (exit 1); exit 1; }; }
1143 done
1145 # There might be people who depend on the old broken behavior: `$host'
1146 # used to hold the argument of --host etc.
1147 # FIXME: To remove some day.
1148 build=$build_alias
1149 host=$host_alias
1150 target=$target_alias
1152 # FIXME: To remove some day.
1153 if test "x$host_alias" != x; then
1154 if test "x$build_alias" = x; then
1155 cross_compiling=maybe
1156 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1157 If a cross compiler is detected then cross compile mode will be used." >&2
1158 elif test "x$build_alias" != "x$host_alias"; then
1159 cross_compiling=yes
1163 ac_tool_prefix=
1164 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1166 test "$silent" = yes && exec 6>/dev/null
1169 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1170 ac_ls_di=`ls -di .` &&
1171 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1172 { echo "$as_me: error: Working directory cannot be determined" >&2
1173 { (exit 1); exit 1; }; }
1174 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1175 { echo "$as_me: error: pwd does not report name of working directory" >&2
1176 { (exit 1); exit 1; }; }
1179 # Find the source files, if location was not specified.
1180 if test -z "$srcdir"; then
1181 ac_srcdir_defaulted=yes
1182 # Try the directory containing this script, then the parent directory.
1183 ac_confdir=`$as_dirname -- "$0" ||
1184 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1185 X"$0" : 'X\(//\)[^/]' \| \
1186 X"$0" : 'X\(//\)$' \| \
1187 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1188 echo X"$0" |
1189 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1190 s//\1/
1193 /^X\(\/\/\)[^/].*/{
1194 s//\1/
1197 /^X\(\/\/\)$/{
1198 s//\1/
1201 /^X\(\/\).*/{
1202 s//\1/
1205 s/.*/./; q'`
1206 srcdir=$ac_confdir
1207 if test ! -r "$srcdir/$ac_unique_file"; then
1208 srcdir=..
1210 else
1211 ac_srcdir_defaulted=no
1213 if test ! -r "$srcdir/$ac_unique_file"; then
1214 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1215 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1216 { (exit 1); exit 1; }; }
1218 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1219 ac_abs_confdir=`(
1220 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1221 { (exit 1); exit 1; }; }
1222 pwd)`
1223 # When building in place, set srcdir=.
1224 if test "$ac_abs_confdir" = "$ac_pwd"; then
1225 srcdir=.
1227 # Remove unnecessary trailing slashes from srcdir.
1228 # Double slashes in file names in object file debugging info
1229 # mess up M-x gdb in Emacs.
1230 case $srcdir in
1231 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1232 esac
1233 for ac_var in $ac_precious_vars; do
1234 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1235 eval ac_env_${ac_var}_value=\$${ac_var}
1236 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1237 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1238 done
1241 # Report the --help message.
1243 if test "$ac_init_help" = "long"; then
1244 # Omit some internal or obsolete options to make the list less imposing.
1245 # This message is too long to be a string in the A/UX 3.1 sh.
1246 cat <<_ACEOF
1247 \`configure' configures GNU C Library (see version.h) to adapt to many kinds of systems.
1249 Usage: $0 [OPTION]... [VAR=VALUE]...
1251 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1252 VAR=VALUE. See below for descriptions of some of the useful variables.
1254 Defaults for the options are specified in brackets.
1256 Configuration:
1257 -h, --help display this help and exit
1258 --help=short display options specific to this package
1259 --help=recursive display the short help of all the included packages
1260 -V, --version display version information and exit
1261 -q, --quiet, --silent do not print \`checking...' messages
1262 --cache-file=FILE cache test results in FILE [disabled]
1263 -C, --config-cache alias for \`--cache-file=config.cache'
1264 -n, --no-create do not create output files
1265 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1267 Installation directories:
1268 --prefix=PREFIX install architecture-independent files in PREFIX
1269 [$ac_default_prefix]
1270 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1271 [PREFIX]
1273 By default, \`make install' will install all the files in
1274 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1275 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1276 for instance \`--prefix=\$HOME'.
1278 For better control, use the options below.
1280 Fine tuning of the installation directories:
1281 --bindir=DIR user executables [EPREFIX/bin]
1282 --sbindir=DIR system admin executables [EPREFIX/sbin]
1283 --libexecdir=DIR program executables [EPREFIX/libexec]
1284 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1285 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1286 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1287 --libdir=DIR object code libraries [EPREFIX/lib]
1288 --includedir=DIR C header files [PREFIX/include]
1289 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1290 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1291 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1292 --infodir=DIR info documentation [DATAROOTDIR/info]
1293 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1294 --mandir=DIR man documentation [DATAROOTDIR/man]
1295 --docdir=DIR documentation root [DATAROOTDIR/doc/c-library]
1296 --htmldir=DIR html documentation [DOCDIR]
1297 --dvidir=DIR dvi documentation [DOCDIR]
1298 --pdfdir=DIR pdf documentation [DOCDIR]
1299 --psdir=DIR ps documentation [DOCDIR]
1300 _ACEOF
1302 cat <<\_ACEOF
1304 System types:
1305 --build=BUILD configure for building on BUILD [guessed]
1306 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1307 _ACEOF
1310 if test -n "$ac_init_help"; then
1311 case $ac_init_help in
1312 short | recursive ) echo "Configuration of GNU C Library (see version.h):";;
1313 esac
1314 cat <<\_ACEOF
1316 Optional Features:
1317 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1318 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1319 --disable-sanity-checks really do not use threads (should not be used except
1320 in special situations) [default=yes]
1321 --enable-check-abi do "make check-abi" in "make check" (no/warn/yes)
1322 [default=no]
1323 --enable-shared build shared library [default=yes if GNU ld & ELF]
1324 --enable-profile build profiled library [default=no]
1325 --enable-omitfp build undebuggable optimized library [default=no]
1326 --enable-bounded build with runtime bounds checking [default=no]
1327 --disable-versioning do not include versioning information in the library
1328 objects [default=yes if supported]
1329 --enable-oldest-abi=ABI configure the oldest ABI supported [e.g. 2.2]
1330 [default=glibc default]
1331 --enable-stackguard-randomization
1332 initialize __stack_chk_guard canary with a random
1333 number at program start
1334 --enable-add-ons[=DIRS...]
1335 configure and build add-ons in DIR1,DIR2,... search
1336 for add-ons if no parameter given
1337 --disable-hidden-plt do not hide internal function calls to avoid PLT
1338 --enable-bind-now disable lazy relocations in DSOs
1339 --enable-static-nss build static NSS modules [default=no]
1340 --disable-force-install don't force installation of files from this package,
1341 even if they are older than the installed files
1342 --enable-kernel=VERSION compile for compatibility with kernel not older than
1343 VERSION
1344 --enable-all-warnings enable all useful warnings gcc can issue
1346 Optional Packages:
1347 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1348 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1349 --with-gd=DIR find libgd include dir and library with prefix DIR
1350 --with-gd-include=DIR find libgd include files in DIR
1351 --with-gd-lib=DIR find libgd library files in DIR
1352 --with-fp if using floating-point hardware [default=yes]
1353 --with-binutils=PATH specify location of binutils (as and ld)
1354 --with-elf if using the ELF object format
1355 --with-selinux if building with SELinux support
1356 --with-xcoff if using the XCOFF object format
1357 --without-cvs if CVS should not be used
1358 --with-headers=PATH location of system headers to use (for example
1359 /usr/src/linux/include) [default=compiler default]
1360 --with-tls enable support for TLS
1361 --without-__thread do not use TLS features even when supporting them
1362 --with-cpu=CPU select code for CPU variant
1364 Some influential environment variables:
1365 CC C compiler command
1366 CFLAGS C compiler flags
1367 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1368 nonstandard directory <lib dir>
1369 LIBS libraries to pass to the linker, e.g. -l<library>
1370 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1371 you have headers in a nonstandard directory <include dir>
1372 CPP C preprocessor
1373 CXX C++ compiler command
1374 CXXFLAGS C++ compiler flags
1376 Use these variables to override the choices made by `configure' or to help
1377 it to find libraries and programs with nonstandard names/locations.
1379 Report bugs to <glibc>.
1380 _ACEOF
1381 ac_status=$?
1384 if test "$ac_init_help" = "recursive"; then
1385 # If there are subdirs, report their specific --help.
1386 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1387 test -d "$ac_dir" || continue
1388 ac_builddir=.
1390 case "$ac_dir" in
1391 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1393 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1394 # A ".." for each directory in $ac_dir_suffix.
1395 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1396 case $ac_top_builddir_sub in
1397 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1398 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1399 esac ;;
1400 esac
1401 ac_abs_top_builddir=$ac_pwd
1402 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1403 # for backward compatibility:
1404 ac_top_builddir=$ac_top_build_prefix
1406 case $srcdir in
1407 .) # We are building in place.
1408 ac_srcdir=.
1409 ac_top_srcdir=$ac_top_builddir_sub
1410 ac_abs_top_srcdir=$ac_pwd ;;
1411 [\\/]* | ?:[\\/]* ) # Absolute name.
1412 ac_srcdir=$srcdir$ac_dir_suffix;
1413 ac_top_srcdir=$srcdir
1414 ac_abs_top_srcdir=$srcdir ;;
1415 *) # Relative name.
1416 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1417 ac_top_srcdir=$ac_top_build_prefix$srcdir
1418 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1419 esac
1420 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1422 cd "$ac_dir" || { ac_status=$?; continue; }
1423 # Check for guested configure.
1424 if test -f "$ac_srcdir/configure.gnu"; then
1425 echo &&
1426 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1427 elif test -f "$ac_srcdir/configure"; then
1428 echo &&
1429 $SHELL "$ac_srcdir/configure" --help=recursive
1430 else
1431 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1432 fi || ac_status=$?
1433 cd "$ac_pwd" || { ac_status=$?; break; }
1434 done
1437 test -n "$ac_init_help" && exit $ac_status
1438 if $ac_init_version; then
1439 cat <<\_ACEOF
1440 GNU C Library configure (see version.h)
1441 generated by GNU Autoconf 2.61
1443 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1444 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1445 This configure script is free software; the Free Software Foundation
1446 gives unlimited permission to copy, distribute and modify it.
1447 _ACEOF
1448 exit
1450 cat >config.log <<_ACEOF
1451 This file contains any messages produced by compilers while
1452 running configure, to aid debugging if configure makes a mistake.
1454 It was created by GNU C Library $as_me (see version.h), which was
1455 generated by GNU Autoconf 2.61. Invocation command line was
1457 $ $0 $@
1459 _ACEOF
1460 exec 5>>config.log
1462 cat <<_ASUNAME
1463 ## --------- ##
1464 ## Platform. ##
1465 ## --------- ##
1467 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1468 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1469 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1470 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1471 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1473 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1474 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1476 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1477 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1478 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1479 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1480 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1481 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1482 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1484 _ASUNAME
1486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1487 for as_dir in $PATH
1489 IFS=$as_save_IFS
1490 test -z "$as_dir" && as_dir=.
1491 echo "PATH: $as_dir"
1492 done
1493 IFS=$as_save_IFS
1495 } >&5
1497 cat >&5 <<_ACEOF
1500 ## ----------- ##
1501 ## Core tests. ##
1502 ## ----------- ##
1504 _ACEOF
1507 # Keep a trace of the command line.
1508 # Strip out --no-create and --no-recursion so they do not pile up.
1509 # Strip out --silent because we don't want to record it for future runs.
1510 # Also quote any args containing shell meta-characters.
1511 # Make two passes to allow for proper duplicate-argument suppression.
1512 ac_configure_args=
1513 ac_configure_args0=
1514 ac_configure_args1=
1515 ac_must_keep_next=false
1516 for ac_pass in 1 2
1518 for ac_arg
1520 case $ac_arg in
1521 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1522 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1523 | -silent | --silent | --silen | --sile | --sil)
1524 continue ;;
1525 *\'*)
1526 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1527 esac
1528 case $ac_pass in
1529 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1531 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1532 if test $ac_must_keep_next = true; then
1533 ac_must_keep_next=false # Got value, back to normal.
1534 else
1535 case $ac_arg in
1536 *=* | --config-cache | -C | -disable-* | --disable-* \
1537 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1538 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1539 | -with-* | --with-* | -without-* | --without-* | --x)
1540 case "$ac_configure_args0 " in
1541 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1542 esac
1544 -* ) ac_must_keep_next=true ;;
1545 esac
1547 ac_configure_args="$ac_configure_args '$ac_arg'"
1549 esac
1550 done
1551 done
1552 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1553 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1555 # When interrupted or exit'd, cleanup temporary files, and complete
1556 # config.log. We remove comments because anyway the quotes in there
1557 # would cause problems or look ugly.
1558 # WARNING: Use '\'' to represent an apostrophe within the trap.
1559 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1560 trap 'exit_status=$?
1561 # Save into config.log some information that might help in debugging.
1563 echo
1565 cat <<\_ASBOX
1566 ## ---------------- ##
1567 ## Cache variables. ##
1568 ## ---------------- ##
1569 _ASBOX
1570 echo
1571 # The following way of writing the cache mishandles newlines in values,
1573 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1574 eval ac_val=\$$ac_var
1575 case $ac_val in #(
1576 *${as_nl}*)
1577 case $ac_var in #(
1578 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1579 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1580 esac
1581 case $ac_var in #(
1582 _ | IFS | as_nl) ;; #(
1583 *) $as_unset $ac_var ;;
1584 esac ;;
1585 esac
1586 done
1587 (set) 2>&1 |
1588 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1589 *${as_nl}ac_space=\ *)
1590 sed -n \
1591 "s/'\''/'\''\\\\'\'''\''/g;
1592 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1593 ;; #(
1595 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1597 esac |
1598 sort
1600 echo
1602 cat <<\_ASBOX
1603 ## ----------------- ##
1604 ## Output variables. ##
1605 ## ----------------- ##
1606 _ASBOX
1607 echo
1608 for ac_var in $ac_subst_vars
1610 eval ac_val=\$$ac_var
1611 case $ac_val in
1612 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1613 esac
1614 echo "$ac_var='\''$ac_val'\''"
1615 done | sort
1616 echo
1618 if test -n "$ac_subst_files"; then
1619 cat <<\_ASBOX
1620 ## ------------------- ##
1621 ## File substitutions. ##
1622 ## ------------------- ##
1623 _ASBOX
1624 echo
1625 for ac_var in $ac_subst_files
1627 eval ac_val=\$$ac_var
1628 case $ac_val in
1629 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1630 esac
1631 echo "$ac_var='\''$ac_val'\''"
1632 done | sort
1633 echo
1636 if test -s confdefs.h; then
1637 cat <<\_ASBOX
1638 ## ----------- ##
1639 ## confdefs.h. ##
1640 ## ----------- ##
1641 _ASBOX
1642 echo
1643 cat confdefs.h
1644 echo
1646 test "$ac_signal" != 0 &&
1647 echo "$as_me: caught signal $ac_signal"
1648 echo "$as_me: exit $exit_status"
1649 } >&5
1650 rm -f core *.core core.conftest.* &&
1651 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1652 exit $exit_status
1654 for ac_signal in 1 2 13 15; do
1655 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1656 done
1657 ac_signal=0
1659 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1660 rm -f -r conftest* confdefs.h
1662 # Predefined preprocessor variables.
1664 cat >>confdefs.h <<_ACEOF
1665 #define PACKAGE_NAME "$PACKAGE_NAME"
1666 _ACEOF
1669 cat >>confdefs.h <<_ACEOF
1670 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1671 _ACEOF
1674 cat >>confdefs.h <<_ACEOF
1675 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1676 _ACEOF
1679 cat >>confdefs.h <<_ACEOF
1680 #define PACKAGE_STRING "$PACKAGE_STRING"
1681 _ACEOF
1684 cat >>confdefs.h <<_ACEOF
1685 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1686 _ACEOF
1689 # Let the site file select an alternate cache file if it wants to.
1690 # Prefer explicitly selected file to automatically selected ones.
1691 if test -n "$CONFIG_SITE"; then
1692 set x "$CONFIG_SITE"
1693 elif test "x$prefix" != xNONE; then
1694 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1695 else
1696 set x "$ac_default_prefix/share/config.site" \
1697 "$ac_default_prefix/etc/config.site"
1699 shift
1700 for ac_site_file
1702 if test -r "$ac_site_file"; then
1703 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1704 echo "$as_me: loading site script $ac_site_file" >&6;}
1705 sed 's/^/| /' "$ac_site_file" >&5
1706 . "$ac_site_file"
1708 done
1710 if test -r "$cache_file"; then
1711 # Some versions of bash will fail to source /dev/null (special
1712 # files actually), so we avoid doing that.
1713 if test -f "$cache_file"; then
1714 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1715 echo "$as_me: loading cache $cache_file" >&6;}
1716 case $cache_file in
1717 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1718 *) . "./$cache_file";;
1719 esac
1721 else
1722 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1723 echo "$as_me: creating cache $cache_file" >&6;}
1724 >$cache_file
1727 # Check that the precious variables saved in the cache have kept the same
1728 # value.
1729 ac_cache_corrupted=false
1730 for ac_var in $ac_precious_vars; do
1731 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1732 eval ac_new_set=\$ac_env_${ac_var}_set
1733 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1734 eval ac_new_val=\$ac_env_${ac_var}_value
1735 case $ac_old_set,$ac_new_set in
1736 set,)
1737 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1738 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1739 ac_cache_corrupted=: ;;
1740 ,set)
1741 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1742 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1743 ac_cache_corrupted=: ;;
1744 ,);;
1746 if test "x$ac_old_val" != "x$ac_new_val"; then
1747 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1748 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1749 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1750 echo "$as_me: former value: $ac_old_val" >&2;}
1751 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1752 echo "$as_me: current value: $ac_new_val" >&2;}
1753 ac_cache_corrupted=:
1754 fi;;
1755 esac
1756 # Pass precious variables to config.status.
1757 if test "$ac_new_set" = set; then
1758 case $ac_new_val in
1759 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1760 *) ac_arg=$ac_var=$ac_new_val ;;
1761 esac
1762 case " $ac_configure_args " in
1763 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1764 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1765 esac
1767 done
1768 if $ac_cache_corrupted; then
1769 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1770 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1771 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1772 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1773 { (exit 1); exit 1; }; }
1800 ac_ext=c
1801 ac_cpp='$CPP $CPPFLAGS'
1802 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1803 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1804 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1808 ac_config_headers="$ac_config_headers config.h"
1810 ac_aux_dir=
1811 for ac_dir in scripts "$srcdir"/scripts; do
1812 if test -f "$ac_dir/install-sh"; then
1813 ac_aux_dir=$ac_dir
1814 ac_install_sh="$ac_aux_dir/install-sh -c"
1815 break
1816 elif test -f "$ac_dir/install.sh"; then
1817 ac_aux_dir=$ac_dir
1818 ac_install_sh="$ac_aux_dir/install.sh -c"
1819 break
1820 elif test -f "$ac_dir/shtool"; then
1821 ac_aux_dir=$ac_dir
1822 ac_install_sh="$ac_aux_dir/shtool install -c"
1823 break
1825 done
1826 if test -z "$ac_aux_dir"; then
1827 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in scripts \"$srcdir\"/scripts" >&5
1828 echo "$as_me: error: cannot find install-sh or install.sh in scripts \"$srcdir\"/scripts" >&2;}
1829 { (exit 1); exit 1; }; }
1832 # These three variables are undocumented and unsupported,
1833 # and are intended to be withdrawn in a future Autoconf release.
1834 # They can cause serious problems if a builder's source tree is in a directory
1835 # whose full name contains unusual characters.
1836 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1837 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1838 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1842 if test "`cd $srcdir; /bin/pwd`" = "`/bin/pwd`"; then
1843 { { echo "$as_me:$LINENO: error: you must configure in a separate build directory" >&5
1844 echo "$as_me: error: you must configure in a separate build directory" >&2;}
1845 { (exit 1); exit 1; }; }
1848 # This will get text that should go into config.make.
1849 config_vars=
1851 # Check for a --with-gd argument and set libgd-LDFLAGS in config.make.
1853 # Check whether --with-gd was given.
1854 if test "${with_gd+set}" = set; then
1855 withval=$with_gd; case "$with_gd" in
1856 yes|''|no) ;;
1857 *) libgd_include="-I$withval/include"
1858 libgd_ldflags="-L$withval/lib" ;;
1859 esac
1864 # Check whether --with-gd-include was given.
1865 if test "${with_gd_include+set}" = set; then
1866 withval=$with_gd_include; case "$with_gd_include" in
1867 ''|no) ;;
1868 *) libgd_include="-I$withval" ;;
1869 esac
1874 # Check whether --with-gd-lib was given.
1875 if test "${with_gd_lib+set}" = set; then
1876 withval=$with_gd_lib; case "$with_gd_lib" in
1877 ''|no) ;;
1878 *) libgd_ldflags="-L$withval" ;;
1879 esac
1884 if test -n "$libgd_include"; then
1885 config_vars="$config_vars
1886 CFLAGS-memusagestat.c = $libgd_include"
1888 if test -n "$libgd_ldflags"; then
1889 config_vars="$config_vars
1890 libgd-LDFLAGS = $libgd_ldflags"
1894 # Check whether --with-fp was given.
1895 if test "${with_fp+set}" = set; then
1896 withval=$with_fp; with_fp=$withval
1897 else
1898 with_fp=yes
1903 # Check whether --with-binutils was given.
1904 if test "${with_binutils+set}" = set; then
1905 withval=$with_binutils; path_binutils=$withval
1906 else
1907 path_binutils=''
1911 # Check whether --with-elf was given.
1912 if test "${with_elf+set}" = set; then
1913 withval=$with_elf; elf=$withval
1914 else
1915 elf=no
1919 # Check whether --with-selinux was given.
1920 if test "${with_selinux+set}" = set; then
1921 withval=$with_selinux; with_selinux=$withval
1922 else
1923 with_selinux=auto
1927 # Check whether --with-xcoff was given.
1928 if test "${with_xcoff+set}" = set; then
1929 withval=$with_xcoff; xcoff=$withval
1930 else
1931 xcoff=no
1935 # Check whether --with-cvs was given.
1936 if test "${with_cvs+set}" = set; then
1937 withval=$with_cvs; with_cvs=$withval
1938 else
1939 with_cvs=yes
1942 if test "$with_cvs" = yes; then
1943 if test -d $srcdir/CVS && grep :pserver: $srcdir/CVS/Root > /dev/null
1944 then
1945 with_cvs=no
1951 # Check whether --with-headers was given.
1952 if test "${with_headers+set}" = set; then
1953 withval=$with_headers; sysheaders=$withval
1954 else
1955 sysheaders=''
1959 # Check whether --enable-sanity-checks was given.
1960 if test "${enable_sanity_checks+set}" = set; then
1961 enableval=$enable_sanity_checks; enable_sanity=$enableval
1962 else
1963 enable_sanity=yes
1968 # Check whether --enable-check-abi was given.
1969 if test "${enable_check_abi+set}" = set; then
1970 enableval=$enable_check_abi; enable_check_abi=$enableval
1971 else
1972 enable_check_abi=no
1976 static=yes
1977 # Check whether --enable-shared was given.
1978 if test "${enable_shared+set}" = set; then
1979 enableval=$enable_shared; shared=$enableval
1980 else
1981 shared=default
1984 # Check whether --enable-profile was given.
1985 if test "${enable_profile+set}" = set; then
1986 enableval=$enable_profile; profile=$enableval
1987 else
1988 profile=no
1991 # Check whether --enable-omitfp was given.
1992 if test "${enable_omitfp+set}" = set; then
1993 enableval=$enable_omitfp; omitfp=$enableval
1994 else
1995 omitfp=no
1998 # Check whether --enable-bounded was given.
1999 if test "${enable_bounded+set}" = set; then
2000 enableval=$enable_bounded; bounded=$enableval
2001 else
2002 bounded=no
2005 # Check whether --enable-versioning was given.
2006 if test "${enable_versioning+set}" = set; then
2007 enableval=$enable_versioning; enable_versioning=$enableval
2008 else
2009 enable_versioning=yes
2013 # Check whether --enable-oldest-abi was given.
2014 if test "${enable_oldest_abi+set}" = set; then
2015 enableval=$enable_oldest_abi; oldest_abi=$enableval
2016 else
2017 oldest_abi=no
2020 if test "$oldest_abi" = yes || test "$oldest_abi" = no; then
2021 oldest_abi=default
2022 else
2023 cat >>confdefs.h <<_ACEOF
2024 #define GLIBC_OLDEST_ABI "$oldest_abi"
2025 _ACEOF
2030 # Check whether --enable-stackguard-randomization was given.
2031 if test "${enable_stackguard_randomization+set}" = set; then
2032 enableval=$enable_stackguard_randomization; enable_stackguard_randomize=$enableval
2033 else
2034 enable_stackguard_randomize=no
2037 if test "$enable_stackguard_randomize" = yes; then
2038 cat >>confdefs.h <<\_ACEOF
2039 #define ENABLE_STACKGUARD_RANDOMIZE 1
2040 _ACEOF
2044 # Check whether --enable-add-ons was given.
2045 if test "${enable_add_ons+set}" = set; then
2046 enableval=$enable_add_ons;
2047 else
2048 enable_add_ons=yes
2053 # Check whether --with-tls was given.
2054 if test "${with_tls+set}" = set; then
2055 withval=$with_tls; usetls=$withval
2056 else
2057 usetls=yes
2062 # Check whether --with-__thread was given.
2063 if test "${with___thread+set}" = set; then
2064 withval=$with___thread; use__thread=$withval
2065 else
2066 use__thread=yes
2070 # Check whether --enable-hidden-plt was given.
2071 if test "${enable_hidden_plt+set}" = set; then
2072 enableval=$enable_hidden_plt; hidden=$enableval
2073 else
2074 hidden=yes
2077 if test "x$hidden" = xno; then
2078 cat >>confdefs.h <<\_ACEOF
2079 #define NO_HIDDEN 1
2080 _ACEOF
2084 # Check whether --enable-bind-now was given.
2085 if test "${enable_bind_now+set}" = set; then
2086 enableval=$enable_bind_now; bindnow=$enableval
2087 else
2088 bindnow=no
2093 # Check whether --enable-static-nss was given.
2094 if test "${enable_static_nss+set}" = set; then
2095 enableval=$enable_static_nss; static_nss=$enableval
2096 else
2097 static_nss=no
2100 if test x"$static_nss" = xyes || test x"$shared" = xno; then
2101 static_nss=yes
2102 cat >>confdefs.h <<\_ACEOF
2103 #define DO_STATIC_NSS 1
2104 _ACEOF
2108 # Check whether --enable-force-install was given.
2109 if test "${enable_force_install+set}" = set; then
2110 enableval=$enable_force_install; force_install=$enableval
2111 else
2112 force_install=yes
2117 # Check whether --enable-kernel was given.
2118 if test "${enable_kernel+set}" = set; then
2119 enableval=$enable_kernel; minimum_kernel=$enableval
2122 if test "$minimum_kernel" = yes || test "$minimum_kernel" = no; then
2123 # Better nothing than this.
2124 minimum_kernel=""
2125 else
2126 if test "$minimum_kernel" = current; then
2127 minimum_kernel=`uname -r 2>/dev/null` || minimum_kernel=
2131 # Check whether --enable-all-warnings was given.
2132 if test "${enable_all_warnings+set}" = set; then
2133 enableval=$enable_all_warnings; all_warnings=$enableval
2138 # Make sure we can run config.sub.
2139 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2140 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2141 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2142 { (exit 1); exit 1; }; }
2144 { echo "$as_me:$LINENO: checking build system type" >&5
2145 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2146 if test "${ac_cv_build+set}" = set; then
2147 echo $ECHO_N "(cached) $ECHO_C" >&6
2148 else
2149 ac_build_alias=$build_alias
2150 test "x$ac_build_alias" = x &&
2151 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2152 test "x$ac_build_alias" = x &&
2153 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2154 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2155 { (exit 1); exit 1; }; }
2156 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2157 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2158 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2159 { (exit 1); exit 1; }; }
2162 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2163 echo "${ECHO_T}$ac_cv_build" >&6; }
2164 case $ac_cv_build in
2165 *-*-*) ;;
2166 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2167 echo "$as_me: error: invalid value of canonical build" >&2;}
2168 { (exit 1); exit 1; }; };;
2169 esac
2170 build=$ac_cv_build
2171 ac_save_IFS=$IFS; IFS='-'
2172 set x $ac_cv_build
2173 shift
2174 build_cpu=$1
2175 build_vendor=$2
2176 shift; shift
2177 # Remember, the first character of IFS is used to create $*,
2178 # except with old shells:
2179 build_os=$*
2180 IFS=$ac_save_IFS
2181 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2184 { echo "$as_me:$LINENO: checking host system type" >&5
2185 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2186 if test "${ac_cv_host+set}" = set; then
2187 echo $ECHO_N "(cached) $ECHO_C" >&6
2188 else
2189 if test "x$host_alias" = x; then
2190 ac_cv_host=$ac_cv_build
2191 else
2192 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2193 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2194 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2195 { (exit 1); exit 1; }; }
2199 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2200 echo "${ECHO_T}$ac_cv_host" >&6; }
2201 case $ac_cv_host in
2202 *-*-*) ;;
2203 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2204 echo "$as_me: error: invalid value of canonical host" >&2;}
2205 { (exit 1); exit 1; }; };;
2206 esac
2207 host=$ac_cv_host
2208 ac_save_IFS=$IFS; IFS='-'
2209 set x $ac_cv_host
2210 shift
2211 host_cpu=$1
2212 host_vendor=$2
2213 shift; shift
2214 # Remember, the first character of IFS is used to create $*,
2215 # except with old shells:
2216 host_os=$*
2217 IFS=$ac_save_IFS
2218 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2222 # The way shlib-versions is used to generate soversions.mk uses a
2223 # fairly simplistic model for name recognition that can't distinguish
2224 # i486-pc-linux-gnu fully from i486-pc-gnu. So we mutate a $host_os
2225 # of `gnu*' here to be `gnu-gnu*' just so that shlib-versions can
2226 # tell. This doesn't get used much beyond that, so it's fairly safe.
2227 case "$host_os" in
2228 linux*)
2230 gnu*)
2231 host_os=`echo $host_os | sed -e 's/gnu/gnu-gnu/'`
2233 esac
2235 # We keep the original values in `$config_*' and never modify them, so we
2236 # can write them unchanged into config.make. Everything else uses
2237 # $machine, $vendor, and $os, and changes them whenever convenient.
2238 config_machine=$host_cpu config_vendor=$host_vendor config_os=$host_os
2240 # Don't allow vendor == "unknown"
2241 test "$config_vendor" = unknown && config_vendor=
2242 config_os="`echo $config_os | sed 's/^unknown-//'`"
2244 # Some configurations imply other options.
2245 case "$host_os" in
2246 # i586-linuxaout is mangled into i586-pc-linux-gnuaout
2247 linux*ecoff* | linux*aout* | gnu*aout* | gnu*ecoff*)
2249 gnu* | linux* | freebsd* | netbsd* | sysv4* | solaris2* | irix6*)
2250 # These systems (almost) always use the ELF format.
2251 elf=yes
2253 aix*)
2254 # These systems are always xcoff
2255 xcoff=yes
2256 elf=no
2258 esac
2260 # The configure fragment of an add-on port can modify these to supplement
2261 # or override the table in the case statement below. No fragment should
2262 # ever change the config_* variables, however.
2263 machine=$config_machine
2264 vendor=$config_vendor
2265 os=$config_os
2266 base_os=''
2268 # config.guess on some IBM machines says `rs6000' instead of `powerpc'.
2269 # Unify this here.
2270 if test "$machine" = rs6000; then
2271 machine="powerpc"
2274 # Braindead PowerPC box with absolutely no FPU.
2275 case "$machine-$host_os" in
2276 powerpc*-*soft)
2277 with_fp=no
2279 esac
2281 submachine=
2283 # Check whether --with-cpu was given.
2284 if test "${with_cpu+set}" = set; then
2285 withval=$with_cpu; case "$withval" in
2286 yes|'') { { echo "$as_me:$LINENO: error: --with-cpu requires an argument" >&5
2287 echo "$as_me: error: --with-cpu requires an argument" >&2;}
2288 { (exit 1); exit 1; }; } ;;
2289 no) ;;
2290 *) submachine="$withval" ;;
2291 esac
2296 # An add-on can set this when it wants to disable the sanity check below.
2297 libc_config_ok=no
2299 subdirs="$subdirs "
2302 case "$enable_add_ons" in
2303 ''|no) add_ons= ;;
2304 yes|'*')
2305 add_ons=`cd $srcdir && ls -d 2> /dev/null */configure */sysdeps |
2306 sed 's@/[^/]*$@@' | sort | uniq`
2307 add_ons_automatic=yes
2309 *) add_ons=`echo "$enable_add_ons" | sed 's/,/ /g'`
2310 add_ons_automatic=no ;;
2311 esac
2313 configured_add_ons=
2314 add_ons_sfx=
2315 add_ons_pfx=
2316 if test x"$add_ons" != x; then
2317 for f in $add_ons; do
2318 # Some sanity checks
2319 case "$f" in
2320 crypt)
2321 { { echo "$as_me:$LINENO: error:
2322 *** It seems that you're using an old \`crypt' add-on. crypt is now
2323 *** part of glibc and using the old add-on will not work with this
2324 *** release. Start again with fresh sources and without the old
2325 *** \`crypt' add-on." >&5
2326 echo "$as_me: error:
2327 *** It seems that you're using an old \`crypt' add-on. crypt is now
2328 *** part of glibc and using the old add-on will not work with this
2329 *** release. Start again with fresh sources and without the old
2330 *** \`crypt' add-on." >&2;}
2331 { (exit 1); exit 1; }; }
2333 localedata)
2334 { { echo "$as_me:$LINENO: error:
2335 *** It seems that you're using an old \`localedata' add-on. localedata
2336 *** is now part of glibc and using the old add-on will not work with
2337 *** this release. Start again with fresh sources and without the old
2338 *** \`localedata' add-on." >&5
2339 echo "$as_me: error:
2340 *** It seems that you're using an old \`localedata' add-on. localedata
2341 *** is now part of glibc and using the old add-on will not work with
2342 *** this release. Start again with fresh sources and without the old
2343 *** \`localedata' add-on." >&2;}
2344 { (exit 1); exit 1; }; }
2346 esac
2347 done
2349 # Now source each add-on's configure fragment.
2350 # The fragments can use $srcdir/$libc_add_on to find themselves,
2351 # and test $add_ons_automatic to see if they were explicitly requested.
2352 # A fragment can clear (or even change) $libc_add_on to affect
2353 # whether it goes into the list to be actually used in the build.
2354 use_add_ons=
2355 for libc_add_on in $add_ons; do
2356 # Test whether such a directory really exists.
2357 # It can be absolute, or relative to $srcdir, or relative to the build dir.
2358 case "$libc_add_on" in
2360 libc_add_on_srcdir=$libc_add_on
2363 test -d "$srcdir/$libc_add_on" || {
2364 if test -d "$libc_add_on"; then
2365 libc_add_on="`pwd`/$libc_add_on"
2366 else
2367 { { echo "$as_me:$LINENO: error: add-on directory \"$libc_add_on\" does not exist" >&5
2368 echo "$as_me: error: add-on directory \"$libc_add_on\" does not exist" >&2;}
2369 { (exit 1); exit 1; }; }
2372 libc_add_on_srcdir=$srcdir/$libc_add_on
2374 esac
2376 libc_add_on_frag=$libc_add_on_srcdir/configure
2377 libc_add_on_canonical=
2378 if test -r "$libc_add_on_frag"; then
2379 { echo "$as_me:$LINENO: running configure fragment for add-on $libc_add_on" >&5
2380 echo "$as_me: running configure fragment for add-on $libc_add_on" >&6;}
2381 libc_add_on_canonical=unknown
2382 libc_add_on_subdirs=
2383 . "$libc_add_on_frag"
2384 test -z "$libc_add_on" || {
2385 configured_add_ons="$configured_add_ons $libc_add_on"
2386 if test "x$libc_add_on_canonical" = xunknown; then
2387 { { echo "$as_me:$LINENO: error: fragment must set \$libc_add_on_canonical" >&5
2388 echo "$as_me: error: fragment must set \$libc_add_on_canonical" >&2;}
2389 { (exit 1); exit 1; }; }
2391 for d in $libc_add_on_subdirs; do
2392 case "$libc_add_on" in
2393 /*) subdir_srcdir="$libc_add_on" ;;
2394 *) subdir_srcdir="\$(..)$libc_add_on" ;;
2395 esac
2396 case "$d" in
2398 d="${libc_add_on_canonical:-$libc_add_on}"
2401 subdir_srcdir="$d"
2404 subdir_srcdir="$subdir_srcdir/$d"
2406 esac
2407 d=`echo "$d" | sed 's@/*$@@;s@^.*/@@'`
2408 add_on_subdirs="$add_on_subdirs $d"
2409 test "$subdir_srcdir" = "\$(..)$d" || config_vars="$config_vars
2410 $d-srcdir = $subdir_srcdir"
2411 done
2414 if test -n "$libc_add_on"; then
2415 if frags=`ls -d $libc_add_on_srcdir/sysdeps/*/preconfigure 2> /dev/null`
2416 then
2417 { echo "$as_me:$LINENO: checking add-on $libc_add_on for preconfigure fragments" >&5
2418 echo $ECHO_N "checking add-on $libc_add_on for preconfigure fragments... $ECHO_C" >&6; }
2419 for frag in $frags; do
2420 name=`echo "$frag" | sed 's@/[^/]*$@@;s@^.*/@@'`
2421 echo $ECHO_N "$name $ECHO_C" >&6
2422 . "$frag"
2423 done
2424 { echo "$as_me:$LINENO: result: " >&5
2425 echo "${ECHO_T}" >&6; }
2427 use_add_ons="$use_add_ons $libc_add_on"
2428 add_ons_pfx="$add_ons_pfx $libc_add_on/"
2429 test -z "$libc_add_on_canonical" ||
2430 add_ons_sfx="$add_ons_sfx /$libc_add_on_canonical"
2432 done
2433 # Use echo to strip excess whitespace.
2434 add_ons="`echo $use_add_ons`"
2441 ### I put this here to prevent those annoying emails from people who cannot
2442 ### read and try to compile glibc on unsupported platforms. --drepper
2444 ### By using the undocumented --enable-hacker-mode option for configure
2445 ### one can skip this test to make the configuration not fail for unsupported
2446 ### platforms.
2448 if test -z "$enable_hacker_mode" && test x"$libc_config_ok" != xyes; then
2449 case "$machine-$host_os" in
2450 *-linux* | *-gnu* | arm*-none* | powerpc-aix4.3.*)
2453 echo "*** The GNU C library is currently not available for this platform."
2454 echo "*** So far nobody cared to port it and if there is no volunteer it"
2455 echo "*** might never happen. So, if you have interest to see glibc on"
2456 echo "*** this platform visit"
2457 echo "*** http://www.gnu.org/software/libc/porting.html"
2458 echo "*** and join the group of porters"
2459 exit 1
2461 esac
2464 # Expand the configuration machine name into a subdirectory by architecture
2465 # type and particular chip. If an add-on configure fragment already set
2466 # base_machine, we don't change it.
2467 test -n "$base_machine" || case "$machine" in
2468 a29k | am29000) base_machine=a29k machine=a29k ;;
2469 alpha*) base_machine=alpha machine=alpha/$machine ;;
2470 c3[012]) base_machine=cx0 machine=cx0/c30 ;;
2471 c4[04]) base_machine=cx0 machine=cx0/c40 ;;
2472 i[34567]86) base_machine=i386 machine=i386/$machine ;;
2473 ia64) base_machine=ia64 machine=ia64 ;;
2474 m88???) base_machine=m88k machine=m88k/$machine ;;
2475 m88k) base_machine=m88k machine=m88k/m88100 ;;
2476 powerpc) base_machine=powerpc machine=powerpc/powerpc32 ;;
2477 powerpc64) base_machine=powerpc machine=powerpc/powerpc64 ;;
2478 s390) base_machine=s390 machine=s390/s390-32 ;;
2479 s390x) base_machine=s390 machine=s390/s390-64 ;;
2480 sh3*) base_machine=sh machine=sh/sh3 ;;
2481 sh4*) base_machine=sh machine=sh/sh4 ;;
2482 sparc | sparcv[67])
2483 base_machine=sparc machine=sparc/sparc32 ;;
2484 sparcv8 | supersparc | hypersparc)
2485 base_machine=sparc machine=sparc/sparc32/sparcv8 ;;
2486 sparcv8plus | sparcv8plusa | sparcv9)
2487 base_machine=sparc machine=sparc/sparc32/sparcv9 ;;
2488 sparcv8plusb | sparcv9b)
2489 base_machine=sparc machine=sparc/sparc32/sparcv9/sparcv9b ;;
2490 sparcv9v)
2491 base_machine=sparc machine=sparc/sparc32/sparcv9/sparcv9v ;;
2492 sparcv9v2)
2493 base_machine=sparc machine=sparc/sparc32/sparcv9/sparcv9v2 ;;
2494 sparc64)
2495 base_machine=sparc machine=sparc/sparc64 ;;
2496 sparc64b)
2497 base_machine=sparc machine=sparc/sparc64/sparcv9b ;;
2498 sparc64v)
2499 base_machine=sparc machine=sparc/sparc64/sparcv9v ;;
2500 sparc64v2)
2501 base_machine=sparc machine=sparc/sparc64/sparcv9v2 ;;
2502 *) base_machine=$machine ;;
2503 esac
2506 if test "$base_machine" = "i386"; then
2507 cat >>confdefs.h <<\_ACEOF
2508 #define USE_REGPARMS 1
2509 _ACEOF
2513 # Compute the list of sysdep directories for this configuration.
2514 # This can take a while to compute.
2515 sysdep_dir=$srcdir/sysdeps
2516 { echo "$as_me:$LINENO: checking sysdep dirs" >&5
2517 echo $ECHO_N "checking sysdep dirs... $ECHO_C" >&6; }
2518 # Make sco3.2v4 become sco3.2.4 and sunos4.1.1_U1 become sunos4.1.1.U1.
2519 os="`echo $os | sed 's/\([0-9A-Z]\)[v_]\([0-9A-Z]\)/\1.\2/g'`"
2521 test "x$base_os" != x || case "$os" in
2522 gnu*)
2523 base_os=mach/hurd ;;
2524 netbsd* | 386bsd* | freebsd* | bsdi*)
2525 base_os=unix/bsd/bsd4.4 ;;
2526 osf* | sunos* | ultrix* | newsos* | dynix* | *bsd*)
2527 base_os=unix/bsd ;;
2528 sysv* | isc* | esix* | sco* | minix* | irix4* | linux*)
2529 base_os=unix/sysv ;;
2530 irix6*)
2531 base_os=unix/sysv/irix6/$os ;;
2532 solaris[2-9]*)
2533 base_os=unix/sysv/sysv4 ;;
2534 hpux*)
2535 base_os=unix/sysv/hpux/$os ;;
2536 aix4.3*)
2537 base_os=unix/sysv/aix/aix4.3 ;;
2538 none)
2539 base_os=standalone ;;
2540 esac
2542 # For sunos4.1.1, try sunos4.1.1, then sunos4.1, then sunos4, then sunos.
2543 tail=$os
2544 ostry=$os
2545 while o=`echo $tail | sed 's/\.[^.]*$//'`; test $o != $tail; do
2546 ostry="$ostry /$o"
2547 tail=$o
2548 done
2549 o=`echo $tail | sed 's/[0-9]*$//'`
2550 if test $o != $tail; then
2551 ostry="$ostry /$o"
2553 # For linux-gnu, try linux-gnu, then linux.
2554 o=`echo $tail | sed 's/-.*$//'`
2555 if test $o != $tail; then
2556 ostry="$ostry /$o"
2559 # For unix/sysv/sysv4, try unix/sysv/sysv4, then unix/sysv, then unix.
2560 base=
2561 tail=$base_os
2562 while b=`echo $tail | sed 's@^\(.*\)/\([^/]*\)$@& \1@'`; test -n "$b"; do
2563 set $b
2564 base="$base /$1"
2565 tail="$2"
2566 done
2568 # For sparc/sparc32, try sparc/sparc32 and then sparc.
2569 mach=
2570 tail=$machine${submachine:+/$submachine}
2571 while m=`echo $tail | sed 's@^\(.*\)/\([^/]*\)$@& \1@'`; test -n "$m"; do
2572 set $m
2573 # Prepend the machine's FPU directory unless --without-fp.
2574 if test "$with_fp" = yes; then
2575 mach="$mach /$1/fpu"
2576 else
2577 mach="$mach /$1/nofpu"
2579 mach="$mach /$1"
2580 tail="$2"
2581 done
2584 # Find what sysdep directories exist.
2585 sysnames_add_ons=
2586 sysnames="sysdeps/nacl "
2587 for b in $base ''; do
2588 for m0 in $mach ''; do
2589 for v in /$vendor ''; do
2590 test "$v" = / && continue
2591 for o in /$ostry ''; do
2592 test "$o" = / && continue
2593 for m in $mach ''; do
2594 for d in $add_ons_pfx ''; do
2595 for a in $add_ons_sfx ''; do
2596 if test -n "$m0$m0sub$b$v$o$m$msub"; then
2597 try_srcdir="${srcdir}/"
2598 case "$d" in
2599 /*) try_srcdir= ;;
2600 esac
2601 try="${d}sysdeps$m0$m0sub$b$v$o$m$msub$a"
2602 test -n "$enable_debug_configure" &&
2603 echo "$0 DEBUG: try $try" >&2
2604 if test -d "$try_srcdir$try"; then
2605 sysnames="$sysnames $try"
2606 { test -n "$o" || test -n "$b"; } && os_used=t
2607 { test -n "$m" || test -n "$m0"; } && machine_used=t
2608 case x${m0:-$m} in
2609 x*/$submachine) submachine_used=t ;;
2610 esac
2611 if test -n "$d"; then
2612 case "$sysnames_add_ons" in
2613 *" $d "*) ;;
2614 *|'') sysnames_add_ons="$sysnames_add_ons $d" ;;
2615 esac
2619 done
2620 done
2621 done
2622 done
2623 done
2624 done
2625 done
2627 if test -z "$os_used" && test "$os" != none; then
2628 { { echo "$as_me:$LINENO: error: Operating system $os is not supported." >&5
2629 echo "$as_me: error: Operating system $os is not supported." >&2;}
2630 { (exit 1); exit 1; }; }
2632 if test -z "$machine_used" && test "$machine" != none; then
2633 { { echo "$as_me:$LINENO: error: The $machine is not supported." >&5
2634 echo "$as_me: error: The $machine is not supported." >&2;}
2635 { (exit 1); exit 1; }; }
2637 if test -z "$submachine_used" && test -n "$submachine"; then
2638 { { echo "$as_me:$LINENO: error: The $submachine subspecies of $host_cpu is not supported." >&5
2639 echo "$as_me: error: The $submachine subspecies of $host_cpu is not supported." >&2;}
2640 { (exit 1); exit 1; }; }
2644 # We have now validated the configuration.
2647 # If using ELF, look for an `elf' subdirectory of each machine directory.
2648 # We prepend these rather than inserting them whereever the machine appears
2649 # because things specified by the machine's ELF ABI should override
2650 # OS-specific things, and should always be the same for any OS on the
2651 # machine (otherwise what's the point of an ABI?).
2652 if test "$elf" = yes; then
2653 elf_dirs=
2654 for d in $add_ons_pfx ''; do
2655 for m in $mach; do
2656 if test -d $srcdir/${d}sysdeps$m/elf; then
2657 elf_dirs="$elf_dirs ${d}sysdeps$m/elf"
2659 done
2660 done
2661 sysnames="`echo $elf_dirs | sed -e 's,//,/,g'` $sysnames"
2665 # Expand the list of system names into a full list of directories
2666 # from each element's parent name and Implies file (if present).
2667 set $sysnames
2668 names=
2669 while test $# -gt 0; do
2670 name=$1
2671 shift
2673 case " $names " in *" $name "*)
2674 # Already in the list.
2675 continue
2676 esac
2678 # Report each name as we discover it, so there is no long pause in output.
2679 echo $ECHO_N "$name $ECHO_C" >&6
2681 name_base=`echo $name | sed -e 's@\(.*sysdeps\)/.*@\1@'`
2683 case $name in
2684 /*) xsrcdir= ;;
2685 *) xsrcdir=$srcdir/ ;;
2686 esac
2687 test -n "$enable_debug_configure" &&
2688 echo "DEBUG: name/Implies $xsrcdir$name/Implies" >&2
2690 if test -f $xsrcdir$name/Implies; then
2691 # Collect more names from the `Implies' file (removing comments).
2692 implied_candidate="`sed 's/#.*$//' < $xsrcdir$name/Implies`"
2693 implied=
2694 for x in $implied_candidate; do
2695 found=no
2696 if test -d $xsrcdir$name_base/$x; then
2697 implied="$implied $name_base/$x";
2698 found=yes
2700 for d in $add_ons_pfx ''; do
2701 try="${d}sysdeps/$x"
2702 case $d in
2703 /*) try_srcdir= ;;
2704 *) try_srcdir=$srcdir/ ;;
2705 esac
2706 test -n "$enable_debug_configure" &&
2707 echo "DEBUG: $name implied $x try($d) {$try_srcdir}$try" >&2
2708 if test $try != $xsrcdir$name_base/$x && test -d $try_srcdir$try;
2709 then
2710 implied="$implied $try"
2711 found=yes
2712 case "$sysnames_add_ons" in
2713 *" $d "*) ;;
2714 *|'') sysnames_add_ons="$sysnames_add_ons $d" ;;
2715 esac
2717 done
2718 if test $found = no; then
2719 { echo "$as_me:$LINENO: WARNING: $name/Implies specifies nonexistent $x" >&5
2720 echo "$as_me: WARNING: $name/Implies specifies nonexistent $x" >&2;}
2722 done
2723 else
2724 implied=
2727 # Add NAME to the list of names.
2728 names="$names $name"
2730 # Find the parent of NAME, using the empty string if it has none.
2731 parent="`echo $name | sed -n -e 's=/[^/]*$==' -e '/sysdeps$/q' -e p`"
2733 # Add the names implied by NAME, and NAME's parent (if it has one), to
2734 # the list of names to be processed (the argument list). We prepend the
2735 # implied names to the list and append the parent. We want implied
2736 # directories to come before further directories inferred from the
2737 # configuration components; this ensures that for sysv4, unix/common
2738 # (implied by unix/sysv/sysv4) comes before unix/sysv (in ostry (here $*)
2739 # after sysv4).
2740 sysnames="`echo $implied $* $parent`"
2741 test -n "$sysnames" && set $sysnames
2742 done
2744 # Add the default directories.
2745 default_sysnames=sysdeps/generic
2746 if test "$elf" = yes; then
2747 default_sysnames="sysdeps/generic/elf $default_sysnames"
2749 sysnames="$names $default_sysnames"
2751 # The other names were emitted during the scan.
2752 { echo "$as_me:$LINENO: result: $default_sysnames" >&5
2753 echo "${ECHO_T}$default_sysnames" >&6; }
2755 # Collect the list of add-ons that supply partial sysdeps trees.
2756 sysdeps_add_ons=
2757 for add_on in $add_ons; do
2758 case "$add_on" in
2759 /*) xsrcdir= ;;
2760 *) xsrcdir="$srcdir/" ;;
2761 esac
2763 test -d "$xsrcdir$add_on/sysdeps" || {
2764 case "$configured_add_ons " in
2765 *" $add_on "*) ;;
2766 *|'')
2767 { { echo "$as_me:$LINENO: error: add-on $add_on has no configure fragment or sysdeps tree" >&5
2768 echo "$as_me: error: add-on $add_on has no configure fragment or sysdeps tree" >&2;}
2769 { (exit 1); exit 1; }; }
2771 esac
2772 continue
2775 sysdeps_add_ons="$sysdeps_add_ons $add_on"
2776 case "$sysnames_add_ons" in
2777 *" $add_on/ "*) ;;
2778 *|'')
2779 { echo "$as_me:$LINENO: WARNING: add-on $add_on contributed no sysdeps directories" >&5
2780 echo "$as_me: WARNING: add-on $add_on contributed no sysdeps directories" >&2;}
2781 continue ;;
2782 esac
2784 found=no
2785 for d in $sysnames; do
2786 case "$d" in
2787 $add_on/sysdeps/*) ;;
2788 *) continue ;;
2789 esac
2790 (cd "$xsrcdir$d" && for f in *[!~]; do
2791 case "$f" in
2792 sys|bits)
2793 for ff in $f/*.h; do
2794 test -d "$ff" || { test -e "$ff" && exit 88; }
2795 done
2798 test -d "$f" || { test -e "$f" && exit 88; }
2800 esac
2801 done)
2802 if test $? -eq 88; then
2803 found=yes
2804 break
2806 done
2807 if test $found = no; then
2808 { echo "$as_me:$LINENO: WARNING: add-on $add_on contributed no useful sysdeps directories" >&5
2809 echo "$as_me: WARNING: add-on $add_on contributed no useful sysdeps directories" >&2;}
2811 done
2815 ### Locate tools.
2817 # Find a good install program. We prefer a C program (faster),
2818 # so one script is as good as another. But avoid the broken or
2819 # incompatible versions:
2820 # SysV /etc/install, /usr/sbin/install
2821 # SunOS /usr/etc/install
2822 # IRIX /sbin/install
2823 # AIX /bin/install
2824 # AmigaOS /C/install, which installs bootblocks on floppy discs
2825 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2826 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2827 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2828 # OS/2's system install, which has a completely different semantic
2829 # ./install, which can be erroneously created by make from ./install.sh.
2830 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2831 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2832 if test -z "$INSTALL"; then
2833 if test "${ac_cv_path_install+set}" = set; then
2834 echo $ECHO_N "(cached) $ECHO_C" >&6
2835 else
2836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2837 for as_dir in $PATH
2839 IFS=$as_save_IFS
2840 test -z "$as_dir" && as_dir=.
2841 # Account for people who put trailing slashes in PATH elements.
2842 case $as_dir/ in
2843 ./ | .// | /cC/* | \
2844 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2845 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2846 /usr/ucb/* ) ;;
2848 # OSF1 and SCO ODT 3.0 have their own names for install.
2849 # Don't use installbsd from OSF since it installs stuff as root
2850 # by default.
2851 for ac_prog in ginstall scoinst install; do
2852 for ac_exec_ext in '' $ac_executable_extensions; do
2853 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2854 if test $ac_prog = install &&
2855 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2856 # AIX install. It has an incompatible calling convention.
2858 elif test $ac_prog = install &&
2859 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2860 # program-specific install script used by HP pwplus--don't use.
2862 else
2863 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2864 break 3
2867 done
2868 done
2870 esac
2871 done
2872 IFS=$as_save_IFS
2876 if test "${ac_cv_path_install+set}" = set; then
2877 INSTALL=$ac_cv_path_install
2878 else
2879 # As a last resort, use the slow shell script. Don't cache a
2880 # value for INSTALL within a source directory, because that will
2881 # break other packages using the cache if that directory is
2882 # removed, or if the value is a relative name.
2883 INSTALL=$ac_install_sh
2886 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2887 echo "${ECHO_T}$INSTALL" >&6; }
2889 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2890 # It thinks the first close brace ends the variable substitution.
2891 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2893 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2895 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2897 if test "$INSTALL" = "${srcdir}/scripts/install-sh -c"; then
2898 # The makefiles need to use a different form to find it in $srcdir.
2899 INSTALL='\$(..)./scripts/install-sh -c'
2901 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
2902 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
2903 LN_S=$as_ln_s
2904 if test "$LN_S" = "ln -s"; then
2905 { echo "$as_me:$LINENO: result: yes" >&5
2906 echo "${ECHO_T}yes" >&6; }
2907 else
2908 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
2909 echo "${ECHO_T}no, using $LN_S" >&6; }
2913 ac_ext=c
2914 ac_cpp='$CPP $CPPFLAGS'
2915 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2916 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2917 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2918 if test -n "$ac_tool_prefix"; then
2919 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2920 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2921 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2922 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2923 if test "${ac_cv_prog_CC+set}" = set; then
2924 echo $ECHO_N "(cached) $ECHO_C" >&6
2925 else
2926 if test -n "$CC"; then
2927 ac_cv_prog_CC="$CC" # Let the user override the test.
2928 else
2929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2930 for as_dir in $PATH
2932 IFS=$as_save_IFS
2933 test -z "$as_dir" && as_dir=.
2934 for ac_exec_ext in '' $ac_executable_extensions; do
2935 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2936 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2937 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2938 break 2
2940 done
2941 done
2942 IFS=$as_save_IFS
2946 CC=$ac_cv_prog_CC
2947 if test -n "$CC"; then
2948 { echo "$as_me:$LINENO: result: $CC" >&5
2949 echo "${ECHO_T}$CC" >&6; }
2950 else
2951 { echo "$as_me:$LINENO: result: no" >&5
2952 echo "${ECHO_T}no" >&6; }
2957 if test -z "$ac_cv_prog_CC"; then
2958 ac_ct_CC=$CC
2959 # Extract the first word of "gcc", so it can be a program name with args.
2960 set dummy gcc; ac_word=$2
2961 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2962 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2963 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2964 echo $ECHO_N "(cached) $ECHO_C" >&6
2965 else
2966 if test -n "$ac_ct_CC"; then
2967 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2968 else
2969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2970 for as_dir in $PATH
2972 IFS=$as_save_IFS
2973 test -z "$as_dir" && as_dir=.
2974 for ac_exec_ext in '' $ac_executable_extensions; do
2975 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2976 ac_cv_prog_ac_ct_CC="gcc"
2977 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2978 break 2
2980 done
2981 done
2982 IFS=$as_save_IFS
2986 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2987 if test -n "$ac_ct_CC"; then
2988 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2989 echo "${ECHO_T}$ac_ct_CC" >&6; }
2990 else
2991 { echo "$as_me:$LINENO: result: no" >&5
2992 echo "${ECHO_T}no" >&6; }
2995 if test "x$ac_ct_CC" = x; then
2996 CC=""
2997 else
2998 case $cross_compiling:$ac_tool_warned in
2999 yes:)
3000 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3001 whose name does not start with the host triplet. If you think this
3002 configuration is useful to you, please write to autoconf@gnu.org." >&5
3003 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3004 whose name does not start with the host triplet. If you think this
3005 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3006 ac_tool_warned=yes ;;
3007 esac
3008 CC=$ac_ct_CC
3010 else
3011 CC="$ac_cv_prog_CC"
3014 if test -z "$CC"; then
3015 if test -n "$ac_tool_prefix"; then
3016 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3017 set dummy ${ac_tool_prefix}cc; ac_word=$2
3018 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3019 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3020 if test "${ac_cv_prog_CC+set}" = set; then
3021 echo $ECHO_N "(cached) $ECHO_C" >&6
3022 else
3023 if test -n "$CC"; then
3024 ac_cv_prog_CC="$CC" # Let the user override the test.
3025 else
3026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3027 for as_dir in $PATH
3029 IFS=$as_save_IFS
3030 test -z "$as_dir" && as_dir=.
3031 for ac_exec_ext in '' $ac_executable_extensions; do
3032 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3033 ac_cv_prog_CC="${ac_tool_prefix}cc"
3034 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3035 break 2
3037 done
3038 done
3039 IFS=$as_save_IFS
3043 CC=$ac_cv_prog_CC
3044 if test -n "$CC"; then
3045 { echo "$as_me:$LINENO: result: $CC" >&5
3046 echo "${ECHO_T}$CC" >&6; }
3047 else
3048 { echo "$as_me:$LINENO: result: no" >&5
3049 echo "${ECHO_T}no" >&6; }
3055 if test -z "$CC"; then
3056 # Extract the first word of "cc", so it can be a program name with args.
3057 set dummy cc; ac_word=$2
3058 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3059 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3060 if test "${ac_cv_prog_CC+set}" = set; then
3061 echo $ECHO_N "(cached) $ECHO_C" >&6
3062 else
3063 if test -n "$CC"; then
3064 ac_cv_prog_CC="$CC" # Let the user override the test.
3065 else
3066 ac_prog_rejected=no
3067 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3068 for as_dir in $PATH
3070 IFS=$as_save_IFS
3071 test -z "$as_dir" && as_dir=.
3072 for ac_exec_ext in '' $ac_executable_extensions; do
3073 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3074 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3075 ac_prog_rejected=yes
3076 continue
3078 ac_cv_prog_CC="cc"
3079 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3080 break 2
3082 done
3083 done
3084 IFS=$as_save_IFS
3086 if test $ac_prog_rejected = yes; then
3087 # We found a bogon in the path, so make sure we never use it.
3088 set dummy $ac_cv_prog_CC
3089 shift
3090 if test $# != 0; then
3091 # We chose a different compiler from the bogus one.
3092 # However, it has the same basename, so the bogon will be chosen
3093 # first if we set CC to just the basename; use the full file name.
3094 shift
3095 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3100 CC=$ac_cv_prog_CC
3101 if test -n "$CC"; then
3102 { echo "$as_me:$LINENO: result: $CC" >&5
3103 echo "${ECHO_T}$CC" >&6; }
3104 else
3105 { echo "$as_me:$LINENO: result: no" >&5
3106 echo "${ECHO_T}no" >&6; }
3111 if test -z "$CC"; then
3112 if test -n "$ac_tool_prefix"; then
3113 for ac_prog in cl.exe
3115 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3116 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3117 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3118 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3119 if test "${ac_cv_prog_CC+set}" = set; then
3120 echo $ECHO_N "(cached) $ECHO_C" >&6
3121 else
3122 if test -n "$CC"; then
3123 ac_cv_prog_CC="$CC" # Let the user override the test.
3124 else
3125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3126 for as_dir in $PATH
3128 IFS=$as_save_IFS
3129 test -z "$as_dir" && as_dir=.
3130 for ac_exec_ext in '' $ac_executable_extensions; do
3131 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3132 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3133 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3134 break 2
3136 done
3137 done
3138 IFS=$as_save_IFS
3142 CC=$ac_cv_prog_CC
3143 if test -n "$CC"; then
3144 { echo "$as_me:$LINENO: result: $CC" >&5
3145 echo "${ECHO_T}$CC" >&6; }
3146 else
3147 { echo "$as_me:$LINENO: result: no" >&5
3148 echo "${ECHO_T}no" >&6; }
3152 test -n "$CC" && break
3153 done
3155 if test -z "$CC"; then
3156 ac_ct_CC=$CC
3157 for ac_prog in cl.exe
3159 # Extract the first word of "$ac_prog", so it can be a program name with args.
3160 set dummy $ac_prog; ac_word=$2
3161 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3162 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3163 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3164 echo $ECHO_N "(cached) $ECHO_C" >&6
3165 else
3166 if test -n "$ac_ct_CC"; then
3167 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3168 else
3169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3170 for as_dir in $PATH
3172 IFS=$as_save_IFS
3173 test -z "$as_dir" && as_dir=.
3174 for ac_exec_ext in '' $ac_executable_extensions; do
3175 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3176 ac_cv_prog_ac_ct_CC="$ac_prog"
3177 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3178 break 2
3180 done
3181 done
3182 IFS=$as_save_IFS
3186 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3187 if test -n "$ac_ct_CC"; then
3188 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3189 echo "${ECHO_T}$ac_ct_CC" >&6; }
3190 else
3191 { echo "$as_me:$LINENO: result: no" >&5
3192 echo "${ECHO_T}no" >&6; }
3196 test -n "$ac_ct_CC" && break
3197 done
3199 if test "x$ac_ct_CC" = x; then
3200 CC=""
3201 else
3202 case $cross_compiling:$ac_tool_warned in
3203 yes:)
3204 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3205 whose name does not start with the host triplet. If you think this
3206 configuration is useful to you, please write to autoconf@gnu.org." >&5
3207 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3208 whose name does not start with the host triplet. If you think this
3209 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3210 ac_tool_warned=yes ;;
3211 esac
3212 CC=$ac_ct_CC
3219 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3220 See \`config.log' for more details." >&5
3221 echo "$as_me: error: no acceptable C compiler found in \$PATH
3222 See \`config.log' for more details." >&2;}
3223 { (exit 1); exit 1; }; }
3225 # Provide some information about the compiler.
3226 echo "$as_me:$LINENO: checking for C compiler version" >&5
3227 ac_compiler=`set X $ac_compile; echo $2`
3228 { (ac_try="$ac_compiler --version >&5"
3229 case "(($ac_try" in
3230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3231 *) ac_try_echo=$ac_try;;
3232 esac
3233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3234 (eval "$ac_compiler --version >&5") 2>&5
3235 ac_status=$?
3236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3237 (exit $ac_status); }
3238 { (ac_try="$ac_compiler -v >&5"
3239 case "(($ac_try" in
3240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3241 *) ac_try_echo=$ac_try;;
3242 esac
3243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3244 (eval "$ac_compiler -v >&5") 2>&5
3245 ac_status=$?
3246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3247 (exit $ac_status); }
3248 { (ac_try="$ac_compiler -V >&5"
3249 case "(($ac_try" in
3250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3251 *) ac_try_echo=$ac_try;;
3252 esac
3253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3254 (eval "$ac_compiler -V >&5") 2>&5
3255 ac_status=$?
3256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3257 (exit $ac_status); }
3259 EXEEXT=
3260 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3261 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3262 if test "${ac_cv_objext+set}" = set; then
3263 echo $ECHO_N "(cached) $ECHO_C" >&6
3264 else
3265 cat >conftest.$ac_ext <<_ACEOF
3266 /* confdefs.h. */
3267 _ACEOF
3268 cat confdefs.h >>conftest.$ac_ext
3269 cat >>conftest.$ac_ext <<_ACEOF
3270 /* end confdefs.h. */
3273 main ()
3277 return 0;
3279 _ACEOF
3280 rm -f conftest.o conftest.obj
3281 if { (ac_try="$ac_compile"
3282 case "(($ac_try" in
3283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3284 *) ac_try_echo=$ac_try;;
3285 esac
3286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3287 (eval "$ac_compile") 2>&5
3288 ac_status=$?
3289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3290 (exit $ac_status); }; then
3291 for ac_file in conftest.o conftest.obj conftest.*; do
3292 test -f "$ac_file" || continue;
3293 case $ac_file in
3294 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3295 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3296 break;;
3297 esac
3298 done
3299 else
3300 echo "$as_me: failed program was:" >&5
3301 sed 's/^/| /' conftest.$ac_ext >&5
3303 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3304 See \`config.log' for more details." >&5
3305 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3306 See \`config.log' for more details." >&2;}
3307 { (exit 1); exit 1; }; }
3310 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3312 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3313 echo "${ECHO_T}$ac_cv_objext" >&6; }
3314 OBJEXT=$ac_cv_objext
3315 ac_objext=$OBJEXT
3316 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3317 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3318 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3319 echo $ECHO_N "(cached) $ECHO_C" >&6
3320 else
3321 cat >conftest.$ac_ext <<_ACEOF
3322 /* confdefs.h. */
3323 _ACEOF
3324 cat confdefs.h >>conftest.$ac_ext
3325 cat >>conftest.$ac_ext <<_ACEOF
3326 /* end confdefs.h. */
3329 main ()
3331 #ifndef __GNUC__
3332 choke me
3333 #endif
3336 return 0;
3338 _ACEOF
3339 rm -f conftest.$ac_objext
3340 if { (ac_try="$ac_compile"
3341 case "(($ac_try" in
3342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3343 *) ac_try_echo=$ac_try;;
3344 esac
3345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3346 (eval "$ac_compile") 2>conftest.er1
3347 ac_status=$?
3348 grep -v '^ *+' conftest.er1 >conftest.err
3349 rm -f conftest.er1
3350 cat conftest.err >&5
3351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3352 (exit $ac_status); } && {
3353 test -z "$ac_c_werror_flag" ||
3354 test ! -s conftest.err
3355 } && test -s conftest.$ac_objext; then
3356 ac_compiler_gnu=yes
3357 else
3358 echo "$as_me: failed program was:" >&5
3359 sed 's/^/| /' conftest.$ac_ext >&5
3361 ac_compiler_gnu=no
3364 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3365 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3368 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3369 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3370 GCC=`test $ac_compiler_gnu = yes && echo yes`
3371 ac_test_CFLAGS=${CFLAGS+set}
3372 ac_save_CFLAGS=$CFLAGS
3373 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3374 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3375 if test "${ac_cv_prog_cc_g+set}" = set; then
3376 echo $ECHO_N "(cached) $ECHO_C" >&6
3377 else
3378 ac_save_c_werror_flag=$ac_c_werror_flag
3379 ac_c_werror_flag=yes
3380 ac_cv_prog_cc_g=no
3381 CFLAGS="-g"
3382 cat >conftest.$ac_ext <<_ACEOF
3383 /* confdefs.h. */
3384 _ACEOF
3385 cat confdefs.h >>conftest.$ac_ext
3386 cat >>conftest.$ac_ext <<_ACEOF
3387 /* end confdefs.h. */
3390 main ()
3394 return 0;
3396 _ACEOF
3397 rm -f conftest.$ac_objext
3398 if { (ac_try="$ac_compile"
3399 case "(($ac_try" in
3400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3401 *) ac_try_echo=$ac_try;;
3402 esac
3403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3404 (eval "$ac_compile") 2>conftest.er1
3405 ac_status=$?
3406 grep -v '^ *+' conftest.er1 >conftest.err
3407 rm -f conftest.er1
3408 cat conftest.err >&5
3409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3410 (exit $ac_status); } && {
3411 test -z "$ac_c_werror_flag" ||
3412 test ! -s conftest.err
3413 } && test -s conftest.$ac_objext; then
3414 ac_cv_prog_cc_g=yes
3415 else
3416 echo "$as_me: failed program was:" >&5
3417 sed 's/^/| /' conftest.$ac_ext >&5
3419 CFLAGS=""
3420 cat >conftest.$ac_ext <<_ACEOF
3421 /* confdefs.h. */
3422 _ACEOF
3423 cat confdefs.h >>conftest.$ac_ext
3424 cat >>conftest.$ac_ext <<_ACEOF
3425 /* end confdefs.h. */
3428 main ()
3432 return 0;
3434 _ACEOF
3435 rm -f conftest.$ac_objext
3436 if { (ac_try="$ac_compile"
3437 case "(($ac_try" in
3438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3439 *) ac_try_echo=$ac_try;;
3440 esac
3441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3442 (eval "$ac_compile") 2>conftest.er1
3443 ac_status=$?
3444 grep -v '^ *+' conftest.er1 >conftest.err
3445 rm -f conftest.er1
3446 cat conftest.err >&5
3447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3448 (exit $ac_status); } && {
3449 test -z "$ac_c_werror_flag" ||
3450 test ! -s conftest.err
3451 } && test -s conftest.$ac_objext; then
3453 else
3454 echo "$as_me: failed program was:" >&5
3455 sed 's/^/| /' conftest.$ac_ext >&5
3457 ac_c_werror_flag=$ac_save_c_werror_flag
3458 CFLAGS="-g"
3459 cat >conftest.$ac_ext <<_ACEOF
3460 /* confdefs.h. */
3461 _ACEOF
3462 cat confdefs.h >>conftest.$ac_ext
3463 cat >>conftest.$ac_ext <<_ACEOF
3464 /* end confdefs.h. */
3467 main ()
3471 return 0;
3473 _ACEOF
3474 rm -f conftest.$ac_objext
3475 if { (ac_try="$ac_compile"
3476 case "(($ac_try" in
3477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3478 *) ac_try_echo=$ac_try;;
3479 esac
3480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3481 (eval "$ac_compile") 2>conftest.er1
3482 ac_status=$?
3483 grep -v '^ *+' conftest.er1 >conftest.err
3484 rm -f conftest.er1
3485 cat conftest.err >&5
3486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3487 (exit $ac_status); } && {
3488 test -z "$ac_c_werror_flag" ||
3489 test ! -s conftest.err
3490 } && test -s conftest.$ac_objext; then
3491 ac_cv_prog_cc_g=yes
3492 else
3493 echo "$as_me: failed program was:" >&5
3494 sed 's/^/| /' conftest.$ac_ext >&5
3499 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3502 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3505 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3506 ac_c_werror_flag=$ac_save_c_werror_flag
3508 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3509 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3510 if test "$ac_test_CFLAGS" = set; then
3511 CFLAGS=$ac_save_CFLAGS
3512 elif test $ac_cv_prog_cc_g = yes; then
3513 if test "$GCC" = yes; then
3514 CFLAGS="-g -O2"
3515 else
3516 CFLAGS="-g"
3518 else
3519 if test "$GCC" = yes; then
3520 CFLAGS="-O2"
3521 else
3522 CFLAGS=
3525 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3526 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3527 if test "${ac_cv_prog_cc_c89+set}" = set; then
3528 echo $ECHO_N "(cached) $ECHO_C" >&6
3529 else
3530 ac_cv_prog_cc_c89=no
3531 ac_save_CC=$CC
3532 cat >conftest.$ac_ext <<_ACEOF
3533 /* confdefs.h. */
3534 _ACEOF
3535 cat confdefs.h >>conftest.$ac_ext
3536 cat >>conftest.$ac_ext <<_ACEOF
3537 /* end confdefs.h. */
3538 #include <stdarg.h>
3539 #include <stdio.h>
3540 #include <sys/types.h>
3541 #include <sys/stat.h>
3542 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3543 struct buf { int x; };
3544 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3545 static char *e (p, i)
3546 char **p;
3547 int i;
3549 return p[i];
3551 static char *f (char * (*g) (char **, int), char **p, ...)
3553 char *s;
3554 va_list v;
3555 va_start (v,p);
3556 s = g (p, va_arg (v,int));
3557 va_end (v);
3558 return s;
3561 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3562 function prototypes and stuff, but not '\xHH' hex character constants.
3563 These don't provoke an error unfortunately, instead are silently treated
3564 as 'x'. The following induces an error, until -std is added to get
3565 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3566 array size at least. It's necessary to write '\x00'==0 to get something
3567 that's true only with -std. */
3568 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3570 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3571 inside strings and character constants. */
3572 #define FOO(x) 'x'
3573 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3575 int test (int i, double x);
3576 struct s1 {int (*f) (int a);};
3577 struct s2 {int (*f) (double a);};
3578 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3579 int argc;
3580 char **argv;
3582 main ()
3584 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3586 return 0;
3588 _ACEOF
3589 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3590 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3592 CC="$ac_save_CC $ac_arg"
3593 rm -f conftest.$ac_objext
3594 if { (ac_try="$ac_compile"
3595 case "(($ac_try" in
3596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3597 *) ac_try_echo=$ac_try;;
3598 esac
3599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3600 (eval "$ac_compile") 2>conftest.er1
3601 ac_status=$?
3602 grep -v '^ *+' conftest.er1 >conftest.err
3603 rm -f conftest.er1
3604 cat conftest.err >&5
3605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3606 (exit $ac_status); } && {
3607 test -z "$ac_c_werror_flag" ||
3608 test ! -s conftest.err
3609 } && test -s conftest.$ac_objext; then
3610 ac_cv_prog_cc_c89=$ac_arg
3611 else
3612 echo "$as_me: failed program was:" >&5
3613 sed 's/^/| /' conftest.$ac_ext >&5
3618 rm -f core conftest.err conftest.$ac_objext
3619 test "x$ac_cv_prog_cc_c89" != "xno" && break
3620 done
3621 rm -f conftest.$ac_ext
3622 CC=$ac_save_CC
3625 # AC_CACHE_VAL
3626 case "x$ac_cv_prog_cc_c89" in
3628 { echo "$as_me:$LINENO: result: none needed" >&5
3629 echo "${ECHO_T}none needed" >&6; } ;;
3630 xno)
3631 { echo "$as_me:$LINENO: result: unsupported" >&5
3632 echo "${ECHO_T}unsupported" >&6; } ;;
3634 CC="$CC $ac_cv_prog_cc_c89"
3635 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3636 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3637 esac
3640 ac_ext=c
3641 ac_cpp='$CPP $CPPFLAGS'
3642 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3643 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3644 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3646 if test $host != $build; then
3647 for ac_prog in gcc cc
3649 # Extract the first word of "$ac_prog", so it can be a program name with args.
3650 set dummy $ac_prog; ac_word=$2
3651 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3652 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3653 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
3654 echo $ECHO_N "(cached) $ECHO_C" >&6
3655 else
3656 if test -n "$BUILD_CC"; then
3657 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
3658 else
3659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3660 for as_dir in $PATH
3662 IFS=$as_save_IFS
3663 test -z "$as_dir" && as_dir=.
3664 for ac_exec_ext in '' $ac_executable_extensions; do
3665 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3666 ac_cv_prog_BUILD_CC="$ac_prog"
3667 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3668 break 2
3670 done
3671 done
3672 IFS=$as_save_IFS
3676 BUILD_CC=$ac_cv_prog_BUILD_CC
3677 if test -n "$BUILD_CC"; then
3678 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
3679 echo "${ECHO_T}$BUILD_CC" >&6; }
3680 else
3681 { echo "$as_me:$LINENO: result: no" >&5
3682 echo "${ECHO_T}no" >&6; }
3686 test -n "$BUILD_CC" && break
3687 done
3691 ac_ext=c
3692 ac_cpp='$CPP $CPPFLAGS'
3693 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3694 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3695 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3696 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3697 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3698 # On Suns, sometimes $CPP names a directory.
3699 if test -n "$CPP" && test -d "$CPP"; then
3700 CPP=
3702 if test -z "$CPP"; then
3703 if test "${ac_cv_prog_CPP+set}" = set; then
3704 echo $ECHO_N "(cached) $ECHO_C" >&6
3705 else
3706 # Double quotes because CPP needs to be expanded
3707 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3709 ac_preproc_ok=false
3710 for ac_c_preproc_warn_flag in '' yes
3712 # Use a header file that comes with gcc, so configuring glibc
3713 # with a fresh cross-compiler works.
3714 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3715 # <limits.h> exists even on freestanding compilers.
3716 # On the NeXT, cc -E runs the code through the compiler's parser,
3717 # not just through cpp. "Syntax error" is here to catch this case.
3718 cat >conftest.$ac_ext <<_ACEOF
3719 /* confdefs.h. */
3720 _ACEOF
3721 cat confdefs.h >>conftest.$ac_ext
3722 cat >>conftest.$ac_ext <<_ACEOF
3723 /* end confdefs.h. */
3724 #ifdef __STDC__
3725 # include <limits.h>
3726 #else
3727 # include <assert.h>
3728 #endif
3729 Syntax error
3730 _ACEOF
3731 if { (ac_try="$ac_cpp conftest.$ac_ext"
3732 case "(($ac_try" in
3733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3734 *) ac_try_echo=$ac_try;;
3735 esac
3736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3737 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3738 ac_status=$?
3739 grep -v '^ *+' conftest.er1 >conftest.err
3740 rm -f conftest.er1
3741 cat conftest.err >&5
3742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3743 (exit $ac_status); } >/dev/null && {
3744 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3745 test ! -s conftest.err
3746 }; then
3748 else
3749 echo "$as_me: failed program was:" >&5
3750 sed 's/^/| /' conftest.$ac_ext >&5
3752 # Broken: fails on valid input.
3753 continue
3756 rm -f conftest.err conftest.$ac_ext
3758 # OK, works on sane cases. Now check whether nonexistent headers
3759 # can be detected and how.
3760 cat >conftest.$ac_ext <<_ACEOF
3761 /* confdefs.h. */
3762 _ACEOF
3763 cat confdefs.h >>conftest.$ac_ext
3764 cat >>conftest.$ac_ext <<_ACEOF
3765 /* end confdefs.h. */
3766 #include <ac_nonexistent.h>
3767 _ACEOF
3768 if { (ac_try="$ac_cpp conftest.$ac_ext"
3769 case "(($ac_try" in
3770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3771 *) ac_try_echo=$ac_try;;
3772 esac
3773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3774 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3775 ac_status=$?
3776 grep -v '^ *+' conftest.er1 >conftest.err
3777 rm -f conftest.er1
3778 cat conftest.err >&5
3779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3780 (exit $ac_status); } >/dev/null && {
3781 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3782 test ! -s conftest.err
3783 }; then
3784 # Broken: success on invalid input.
3785 continue
3786 else
3787 echo "$as_me: failed program was:" >&5
3788 sed 's/^/| /' conftest.$ac_ext >&5
3790 # Passes both tests.
3791 ac_preproc_ok=:
3792 break
3795 rm -f conftest.err conftest.$ac_ext
3797 done
3798 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3799 rm -f conftest.err conftest.$ac_ext
3800 if $ac_preproc_ok; then
3801 break
3804 done
3805 ac_cv_prog_CPP=$CPP
3808 CPP=$ac_cv_prog_CPP
3809 else
3810 ac_cv_prog_CPP=$CPP
3812 { echo "$as_me:$LINENO: result: $CPP" >&5
3813 echo "${ECHO_T}$CPP" >&6; }
3814 ac_preproc_ok=false
3815 for ac_c_preproc_warn_flag in '' yes
3817 # Use a header file that comes with gcc, so configuring glibc
3818 # with a fresh cross-compiler works.
3819 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3820 # <limits.h> exists even on freestanding compilers.
3821 # On the NeXT, cc -E runs the code through the compiler's parser,
3822 # not just through cpp. "Syntax error" is here to catch this case.
3823 cat >conftest.$ac_ext <<_ACEOF
3824 /* confdefs.h. */
3825 _ACEOF
3826 cat confdefs.h >>conftest.$ac_ext
3827 cat >>conftest.$ac_ext <<_ACEOF
3828 /* end confdefs.h. */
3829 #ifdef __STDC__
3830 # include <limits.h>
3831 #else
3832 # include <assert.h>
3833 #endif
3834 Syntax error
3835 _ACEOF
3836 if { (ac_try="$ac_cpp conftest.$ac_ext"
3837 case "(($ac_try" in
3838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3839 *) ac_try_echo=$ac_try;;
3840 esac
3841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3842 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3843 ac_status=$?
3844 grep -v '^ *+' conftest.er1 >conftest.err
3845 rm -f conftest.er1
3846 cat conftest.err >&5
3847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3848 (exit $ac_status); } >/dev/null && {
3849 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3850 test ! -s conftest.err
3851 }; then
3853 else
3854 echo "$as_me: failed program was:" >&5
3855 sed 's/^/| /' conftest.$ac_ext >&5
3857 # Broken: fails on valid input.
3858 continue
3861 rm -f conftest.err conftest.$ac_ext
3863 # OK, works on sane cases. Now check whether nonexistent headers
3864 # can be detected and how.
3865 cat >conftest.$ac_ext <<_ACEOF
3866 /* confdefs.h. */
3867 _ACEOF
3868 cat confdefs.h >>conftest.$ac_ext
3869 cat >>conftest.$ac_ext <<_ACEOF
3870 /* end confdefs.h. */
3871 #include <ac_nonexistent.h>
3872 _ACEOF
3873 if { (ac_try="$ac_cpp conftest.$ac_ext"
3874 case "(($ac_try" in
3875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3876 *) ac_try_echo=$ac_try;;
3877 esac
3878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3879 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3880 ac_status=$?
3881 grep -v '^ *+' conftest.er1 >conftest.err
3882 rm -f conftest.er1
3883 cat conftest.err >&5
3884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3885 (exit $ac_status); } >/dev/null && {
3886 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3887 test ! -s conftest.err
3888 }; then
3889 # Broken: success on invalid input.
3890 continue
3891 else
3892 echo "$as_me: failed program was:" >&5
3893 sed 's/^/| /' conftest.$ac_ext >&5
3895 # Passes both tests.
3896 ac_preproc_ok=:
3897 break
3900 rm -f conftest.err conftest.$ac_ext
3902 done
3903 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3904 rm -f conftest.err conftest.$ac_ext
3905 if $ac_preproc_ok; then
3907 else
3908 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3909 See \`config.log' for more details." >&5
3910 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3911 See \`config.log' for more details." >&2;}
3912 { (exit 1); exit 1; }; }
3915 ac_ext=c
3916 ac_cpp='$CPP $CPPFLAGS'
3917 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3918 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3919 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3921 # We need the C++ compiler only for testing.
3922 ac_ext=cpp
3923 ac_cpp='$CXXCPP $CPPFLAGS'
3924 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3925 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3926 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3927 if test -z "$CXX"; then
3928 if test -n "$CCC"; then
3929 CXX=$CCC
3930 else
3931 if test -n "$ac_tool_prefix"; then
3932 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3934 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3935 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3936 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3937 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3938 if test "${ac_cv_prog_CXX+set}" = set; then
3939 echo $ECHO_N "(cached) $ECHO_C" >&6
3940 else
3941 if test -n "$CXX"; then
3942 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3943 else
3944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3945 for as_dir in $PATH
3947 IFS=$as_save_IFS
3948 test -z "$as_dir" && as_dir=.
3949 for ac_exec_ext in '' $ac_executable_extensions; do
3950 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3951 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3952 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3953 break 2
3955 done
3956 done
3957 IFS=$as_save_IFS
3961 CXX=$ac_cv_prog_CXX
3962 if test -n "$CXX"; then
3963 { echo "$as_me:$LINENO: result: $CXX" >&5
3964 echo "${ECHO_T}$CXX" >&6; }
3965 else
3966 { echo "$as_me:$LINENO: result: no" >&5
3967 echo "${ECHO_T}no" >&6; }
3971 test -n "$CXX" && break
3972 done
3974 if test -z "$CXX"; then
3975 ac_ct_CXX=$CXX
3976 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3978 # Extract the first word of "$ac_prog", so it can be a program name with args.
3979 set dummy $ac_prog; ac_word=$2
3980 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3981 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3982 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3983 echo $ECHO_N "(cached) $ECHO_C" >&6
3984 else
3985 if test -n "$ac_ct_CXX"; then
3986 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3987 else
3988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3989 for as_dir in $PATH
3991 IFS=$as_save_IFS
3992 test -z "$as_dir" && as_dir=.
3993 for ac_exec_ext in '' $ac_executable_extensions; do
3994 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3995 ac_cv_prog_ac_ct_CXX="$ac_prog"
3996 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3997 break 2
3999 done
4000 done
4001 IFS=$as_save_IFS
4005 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4006 if test -n "$ac_ct_CXX"; then
4007 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4008 echo "${ECHO_T}$ac_ct_CXX" >&6; }
4009 else
4010 { echo "$as_me:$LINENO: result: no" >&5
4011 echo "${ECHO_T}no" >&6; }
4015 test -n "$ac_ct_CXX" && break
4016 done
4018 if test "x$ac_ct_CXX" = x; then
4019 CXX="g++"
4020 else
4021 case $cross_compiling:$ac_tool_warned in
4022 yes:)
4023 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4024 whose name does not start with the host triplet. If you think this
4025 configuration is useful to you, please write to autoconf@gnu.org." >&5
4026 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4027 whose name does not start with the host triplet. If you think this
4028 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4029 ac_tool_warned=yes ;;
4030 esac
4031 CXX=$ac_ct_CXX
4037 # Provide some information about the compiler.
4038 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
4039 ac_compiler=`set X $ac_compile; echo $2`
4040 { (ac_try="$ac_compiler --version >&5"
4041 case "(($ac_try" in
4042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4043 *) ac_try_echo=$ac_try;;
4044 esac
4045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4046 (eval "$ac_compiler --version >&5") 2>&5
4047 ac_status=$?
4048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4049 (exit $ac_status); }
4050 { (ac_try="$ac_compiler -v >&5"
4051 case "(($ac_try" in
4052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4053 *) ac_try_echo=$ac_try;;
4054 esac
4055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4056 (eval "$ac_compiler -v >&5") 2>&5
4057 ac_status=$?
4058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4059 (exit $ac_status); }
4060 { (ac_try="$ac_compiler -V >&5"
4061 case "(($ac_try" in
4062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4063 *) ac_try_echo=$ac_try;;
4064 esac
4065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4066 (eval "$ac_compiler -V >&5") 2>&5
4067 ac_status=$?
4068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4069 (exit $ac_status); }
4071 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4072 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
4073 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4074 echo $ECHO_N "(cached) $ECHO_C" >&6
4075 else
4076 cat >conftest.$ac_ext <<_ACEOF
4077 /* confdefs.h. */
4078 _ACEOF
4079 cat confdefs.h >>conftest.$ac_ext
4080 cat >>conftest.$ac_ext <<_ACEOF
4081 /* end confdefs.h. */
4084 main ()
4086 #ifndef __GNUC__
4087 choke me
4088 #endif
4091 return 0;
4093 _ACEOF
4094 rm -f conftest.$ac_objext
4095 if { (ac_try="$ac_compile"
4096 case "(($ac_try" in
4097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4098 *) ac_try_echo=$ac_try;;
4099 esac
4100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4101 (eval "$ac_compile") 2>conftest.er1
4102 ac_status=$?
4103 grep -v '^ *+' conftest.er1 >conftest.err
4104 rm -f conftest.er1
4105 cat conftest.err >&5
4106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4107 (exit $ac_status); } && {
4108 test -z "$ac_cxx_werror_flag" ||
4109 test ! -s conftest.err
4110 } && test -s conftest.$ac_objext; then
4111 ac_compiler_gnu=yes
4112 else
4113 echo "$as_me: failed program was:" >&5
4114 sed 's/^/| /' conftest.$ac_ext >&5
4116 ac_compiler_gnu=no
4119 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4120 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4123 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4124 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
4125 GXX=`test $ac_compiler_gnu = yes && echo yes`
4126 ac_test_CXXFLAGS=${CXXFLAGS+set}
4127 ac_save_CXXFLAGS=$CXXFLAGS
4128 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4129 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
4130 if test "${ac_cv_prog_cxx_g+set}" = set; then
4131 echo $ECHO_N "(cached) $ECHO_C" >&6
4132 else
4133 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4134 ac_cxx_werror_flag=yes
4135 ac_cv_prog_cxx_g=no
4136 CXXFLAGS="-g"
4137 cat >conftest.$ac_ext <<_ACEOF
4138 /* confdefs.h. */
4139 _ACEOF
4140 cat confdefs.h >>conftest.$ac_ext
4141 cat >>conftest.$ac_ext <<_ACEOF
4142 /* end confdefs.h. */
4145 main ()
4149 return 0;
4151 _ACEOF
4152 rm -f conftest.$ac_objext
4153 if { (ac_try="$ac_compile"
4154 case "(($ac_try" in
4155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4156 *) ac_try_echo=$ac_try;;
4157 esac
4158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4159 (eval "$ac_compile") 2>conftest.er1
4160 ac_status=$?
4161 grep -v '^ *+' conftest.er1 >conftest.err
4162 rm -f conftest.er1
4163 cat conftest.err >&5
4164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4165 (exit $ac_status); } && {
4166 test -z "$ac_cxx_werror_flag" ||
4167 test ! -s conftest.err
4168 } && test -s conftest.$ac_objext; then
4169 ac_cv_prog_cxx_g=yes
4170 else
4171 echo "$as_me: failed program was:" >&5
4172 sed 's/^/| /' conftest.$ac_ext >&5
4174 CXXFLAGS=""
4175 cat >conftest.$ac_ext <<_ACEOF
4176 /* confdefs.h. */
4177 _ACEOF
4178 cat confdefs.h >>conftest.$ac_ext
4179 cat >>conftest.$ac_ext <<_ACEOF
4180 /* end confdefs.h. */
4183 main ()
4187 return 0;
4189 _ACEOF
4190 rm -f conftest.$ac_objext
4191 if { (ac_try="$ac_compile"
4192 case "(($ac_try" in
4193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4194 *) ac_try_echo=$ac_try;;
4195 esac
4196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4197 (eval "$ac_compile") 2>conftest.er1
4198 ac_status=$?
4199 grep -v '^ *+' conftest.er1 >conftest.err
4200 rm -f conftest.er1
4201 cat conftest.err >&5
4202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4203 (exit $ac_status); } && {
4204 test -z "$ac_cxx_werror_flag" ||
4205 test ! -s conftest.err
4206 } && test -s conftest.$ac_objext; then
4208 else
4209 echo "$as_me: failed program was:" >&5
4210 sed 's/^/| /' conftest.$ac_ext >&5
4212 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4213 CXXFLAGS="-g"
4214 cat >conftest.$ac_ext <<_ACEOF
4215 /* confdefs.h. */
4216 _ACEOF
4217 cat confdefs.h >>conftest.$ac_ext
4218 cat >>conftest.$ac_ext <<_ACEOF
4219 /* end confdefs.h. */
4222 main ()
4226 return 0;
4228 _ACEOF
4229 rm -f conftest.$ac_objext
4230 if { (ac_try="$ac_compile"
4231 case "(($ac_try" in
4232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4233 *) ac_try_echo=$ac_try;;
4234 esac
4235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4236 (eval "$ac_compile") 2>conftest.er1
4237 ac_status=$?
4238 grep -v '^ *+' conftest.er1 >conftest.err
4239 rm -f conftest.er1
4240 cat conftest.err >&5
4241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4242 (exit $ac_status); } && {
4243 test -z "$ac_cxx_werror_flag" ||
4244 test ! -s conftest.err
4245 } && test -s conftest.$ac_objext; then
4246 ac_cv_prog_cxx_g=yes
4247 else
4248 echo "$as_me: failed program was:" >&5
4249 sed 's/^/| /' conftest.$ac_ext >&5
4254 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4257 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4260 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4261 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4263 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4264 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
4265 if test "$ac_test_CXXFLAGS" = set; then
4266 CXXFLAGS=$ac_save_CXXFLAGS
4267 elif test $ac_cv_prog_cxx_g = yes; then
4268 if test "$GXX" = yes; then
4269 CXXFLAGS="-g -O2"
4270 else
4271 CXXFLAGS="-g"
4273 else
4274 if test "$GXX" = yes; then
4275 CXXFLAGS="-O2"
4276 else
4277 CXXFLAGS=
4280 ac_ext=c
4281 ac_cpp='$CPP $CPPFLAGS'
4282 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4283 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4284 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4286 # Was a --with-binutils option given?
4287 if test -n "$path_binutils"; then
4288 # Make absolute; ensure a single trailing slash.
4289 path_binutils=`(cd $path_binutils; pwd) | sed 's%/*$%/%'`
4290 CC="$CC -B$path_binutils"
4292 AS=`$CC -print-prog-name=as`
4293 LD=`$CC -print-prog-name=ld`
4294 AR=`$CC -print-prog-name=ar`
4296 OBJDUMP=`$CC -print-prog-name=objdump`
4299 # ranlib has to be treated a bit differently since it might not exist at all.
4300 ac_ranlib=`$CC -print-prog-name=ranlib`
4301 if test "x$ac_ranlib" = xranlib; then
4302 # This extra check has to happen since gcc simply echos the parameter in
4303 # case it cannot find the value in its own directories.
4304 if test -n "$ac_tool_prefix"; then
4305 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4306 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4307 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4308 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4309 if test "${ac_cv_prog_RANLIB+set}" = set; then
4310 echo $ECHO_N "(cached) $ECHO_C" >&6
4311 else
4312 if test -n "$RANLIB"; then
4313 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4314 else
4315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4316 for as_dir in $PATH
4318 IFS=$as_save_IFS
4319 test -z "$as_dir" && as_dir=.
4320 for ac_exec_ext in '' $ac_executable_extensions; do
4321 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4322 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4323 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4324 break 2
4326 done
4327 done
4328 IFS=$as_save_IFS
4332 RANLIB=$ac_cv_prog_RANLIB
4333 if test -n "$RANLIB"; then
4334 { echo "$as_me:$LINENO: result: $RANLIB" >&5
4335 echo "${ECHO_T}$RANLIB" >&6; }
4336 else
4337 { echo "$as_me:$LINENO: result: no" >&5
4338 echo "${ECHO_T}no" >&6; }
4343 if test -z "$ac_cv_prog_RANLIB"; then
4344 ac_ct_RANLIB=$RANLIB
4345 # Extract the first word of "ranlib", so it can be a program name with args.
4346 set dummy ranlib; ac_word=$2
4347 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4348 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4349 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4350 echo $ECHO_N "(cached) $ECHO_C" >&6
4351 else
4352 if test -n "$ac_ct_RANLIB"; then
4353 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4354 else
4355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4356 for as_dir in $PATH
4358 IFS=$as_save_IFS
4359 test -z "$as_dir" && as_dir=.
4360 for ac_exec_ext in '' $ac_executable_extensions; do
4361 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4362 ac_cv_prog_ac_ct_RANLIB="ranlib"
4363 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4364 break 2
4366 done
4367 done
4368 IFS=$as_save_IFS
4372 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4373 if test -n "$ac_ct_RANLIB"; then
4374 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4375 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
4376 else
4377 { echo "$as_me:$LINENO: result: no" >&5
4378 echo "${ECHO_T}no" >&6; }
4381 if test "x$ac_ct_RANLIB" = x; then
4382 RANLIB=":"
4383 else
4384 case $cross_compiling:$ac_tool_warned in
4385 yes:)
4386 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4387 whose name does not start with the host triplet. If you think this
4388 configuration is useful to you, please write to autoconf@gnu.org." >&5
4389 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4390 whose name does not start with the host triplet. If you think this
4391 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4392 ac_tool_warned=yes ;;
4393 esac
4394 RANLIB=$ac_ct_RANLIB
4396 else
4397 RANLIB="$ac_cv_prog_RANLIB"
4400 else
4401 RANLIB=$ac_ranlib
4405 # Determine whether we are using GNU binutils.
4406 { echo "$as_me:$LINENO: checking whether $AS is GNU as" >&5
4407 echo $ECHO_N "checking whether $AS is GNU as... $ECHO_C" >&6; }
4408 if test "${libc_cv_prog_as_gnu+set}" = set; then
4409 echo $ECHO_N "(cached) $ECHO_C" >&6
4410 else
4411 # Most GNU programs take a -v and spit out some text including
4412 # the word 'GNU'. Some try to read stdin, so give them /dev/null.
4413 if $AS -o conftest -v </dev/null 2>&1 | grep GNU > /dev/null 2>&1; then
4414 libc_cv_prog_as_gnu=yes
4415 else
4416 libc_cv_prog_as_gnu=no
4418 rm -fr contest*
4420 { echo "$as_me:$LINENO: result: $libc_cv_prog_as_gnu" >&5
4421 echo "${ECHO_T}$libc_cv_prog_as_gnu" >&6; }
4422 rm -f a.out
4423 gnu_as=$libc_cv_prog_as_gnu
4425 { echo "$as_me:$LINENO: checking whether $LD is GNU ld" >&5
4426 echo $ECHO_N "checking whether $LD is GNU ld... $ECHO_C" >&6; }
4427 if test "${libc_cv_prog_ld_gnu+set}" = set; then
4428 echo $ECHO_N "(cached) $ECHO_C" >&6
4429 else
4430 # Most GNU programs take a -v and spit out some text including
4431 # the word 'GNU'. Some try to read stdin, so give them /dev/null.
4432 if $LD -o conftest -v </dev/null 2>&1 | grep GNU > /dev/null 2>&1; then
4433 libc_cv_prog_ld_gnu=yes
4434 else
4435 libc_cv_prog_ld_gnu=no
4437 rm -fr contest*
4439 { echo "$as_me:$LINENO: result: $libc_cv_prog_ld_gnu" >&5
4440 echo "${ECHO_T}$libc_cv_prog_ld_gnu" >&6; }
4441 gnu_ld=$libc_cv_prog_ld_gnu
4444 # Accept binutils 2.13 or newer.
4445 for ac_prog in $AS
4447 # Extract the first word of "$ac_prog", so it can be a program name with args.
4448 set dummy $ac_prog; ac_word=$2
4449 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4450 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4451 if test "${ac_cv_prog_AS+set}" = set; then
4452 echo $ECHO_N "(cached) $ECHO_C" >&6
4453 else
4454 if test -n "$AS"; then
4455 ac_cv_prog_AS="$AS" # Let the user override the test.
4456 else
4457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4458 for as_dir in $PATH
4460 IFS=$as_save_IFS
4461 test -z "$as_dir" && as_dir=.
4462 for ac_exec_ext in '' $ac_executable_extensions; do
4463 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4464 ac_cv_prog_AS="$ac_prog"
4465 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4466 break 2
4468 done
4469 done
4470 IFS=$as_save_IFS
4474 AS=$ac_cv_prog_AS
4475 if test -n "$AS"; then
4476 { echo "$as_me:$LINENO: result: $AS" >&5
4477 echo "${ECHO_T}$AS" >&6; }
4478 else
4479 { echo "$as_me:$LINENO: result: no" >&5
4480 echo "${ECHO_T}no" >&6; }
4484 test -n "$AS" && break
4485 done
4487 if test -z "$AS"; then
4488 ac_verc_fail=yes
4489 else
4490 # Found it, now check the version.
4491 { echo "$as_me:$LINENO: checking version of $AS" >&5
4492 echo $ECHO_N "checking version of $AS... $ECHO_C" >&6; }
4493 ac_prog_version=`$AS --version 2>&1 | sed -n 's/^.*GNU assembler.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
4494 case $ac_prog_version in
4495 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
4496 2.1[3-9]*|[2-9].[2-9]*)
4497 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
4498 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
4500 esac
4501 { echo "$as_me:$LINENO: result: $ac_prog_version" >&5
4502 echo "${ECHO_T}$ac_prog_version" >&6; }
4504 if test $ac_verc_fail = yes; then
4505 AS=: critic_missing="$critic_missing as"
4508 for ac_prog in $LD
4510 # Extract the first word of "$ac_prog", so it can be a program name with args.
4511 set dummy $ac_prog; ac_word=$2
4512 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4513 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4514 if test "${ac_cv_prog_LD+set}" = set; then
4515 echo $ECHO_N "(cached) $ECHO_C" >&6
4516 else
4517 if test -n "$LD"; then
4518 ac_cv_prog_LD="$LD" # Let the user override the test.
4519 else
4520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4521 for as_dir in $PATH
4523 IFS=$as_save_IFS
4524 test -z "$as_dir" && as_dir=.
4525 for ac_exec_ext in '' $ac_executable_extensions; do
4526 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4527 ac_cv_prog_LD="$ac_prog"
4528 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4529 break 2
4531 done
4532 done
4533 IFS=$as_save_IFS
4537 LD=$ac_cv_prog_LD
4538 if test -n "$LD"; then
4539 { echo "$as_me:$LINENO: result: $LD" >&5
4540 echo "${ECHO_T}$LD" >&6; }
4541 else
4542 { echo "$as_me:$LINENO: result: no" >&5
4543 echo "${ECHO_T}no" >&6; }
4547 test -n "$LD" && break
4548 done
4550 if test -z "$LD"; then
4551 ac_verc_fail=yes
4552 else
4553 # Found it, now check the version.
4554 { echo "$as_me:$LINENO: checking version of $LD" >&5
4555 echo $ECHO_N "checking version of $LD... $ECHO_C" >&6; }
4556 ac_prog_version=`$LD --version 2>&1 | sed -n 's/^.*GNU ld.* \([0-9][0-9]*\.[0-9.]*\).*$/\1/p'`
4557 case $ac_prog_version in
4558 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
4559 2.1[3-9]*|[2-9].[2-9]*)
4560 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
4561 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
4563 esac
4564 { echo "$as_me:$LINENO: result: $ac_prog_version" >&5
4565 echo "${ECHO_T}$ac_prog_version" >&6; }
4567 if test $ac_verc_fail = yes; then
4568 LD=: critic_missing="$critic_missing ld"
4572 # We need the physical current working directory. We cannot use the
4573 # "pwd -P" shell builtin since that's not portable. Instead we try to
4574 # find a pwd binary. Note that assigning to the PWD environment
4575 # variable might have some interesting side effects, so we don't do
4576 # that.
4577 # Extract the first word of "pwd", so it can be a program name with args.
4578 set dummy pwd; ac_word=$2
4579 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4580 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4581 if test "${ac_cv_path_PWD_P+set}" = set; then
4582 echo $ECHO_N "(cached) $ECHO_C" >&6
4583 else
4584 case $PWD_P in
4585 [\\/]* | ?:[\\/]*)
4586 ac_cv_path_PWD_P="$PWD_P" # Let the user override the test with a path.
4589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4590 for as_dir in $PATH
4592 IFS=$as_save_IFS
4593 test -z "$as_dir" && as_dir=.
4594 for ac_exec_ext in '' $ac_executable_extensions; do
4595 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4596 ac_cv_path_PWD_P="$as_dir/$ac_word$ac_exec_ext"
4597 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4598 break 2
4600 done
4601 done
4602 IFS=$as_save_IFS
4604 test -z "$ac_cv_path_PWD_P" && ac_cv_path_PWD_P="no"
4606 esac
4608 PWD_P=$ac_cv_path_PWD_P
4609 if test -n "$PWD_P"; then
4610 { echo "$as_me:$LINENO: result: $PWD_P" >&5
4611 echo "${ECHO_T}$PWD_P" >&6; }
4612 else
4613 { echo "$as_me:$LINENO: result: no" >&5
4614 echo "${ECHO_T}no" >&6; }
4618 if test "$PWD_P" = no; then
4619 { { echo "$as_me:$LINENO: error: *** A pwd binary could not be found." >&5
4620 echo "$as_me: error: *** A pwd binary could not be found." >&2;}
4621 { (exit 1); exit 1; }; }
4624 # These programs are version sensitive.
4626 for ac_prog in ${ac_tool_prefix}gcc ${ac_tool_prefix}cc
4628 # Extract the first word of "$ac_prog", so it can be a program name with args.
4629 set dummy $ac_prog; ac_word=$2
4630 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4631 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4632 if test "${ac_cv_prog_CC+set}" = set; then
4633 echo $ECHO_N "(cached) $ECHO_C" >&6
4634 else
4635 if test -n "$CC"; then
4636 ac_cv_prog_CC="$CC" # Let the user override the test.
4637 else
4638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4639 for as_dir in $PATH
4641 IFS=$as_save_IFS
4642 test -z "$as_dir" && as_dir=.
4643 for ac_exec_ext in '' $ac_executable_extensions; do
4644 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4645 ac_cv_prog_CC="$ac_prog"
4646 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4647 break 2
4649 done
4650 done
4651 IFS=$as_save_IFS
4655 CC=$ac_cv_prog_CC
4656 if test -n "$CC"; then
4657 { echo "$as_me:$LINENO: result: $CC" >&5
4658 echo "${ECHO_T}$CC" >&6; }
4659 else
4660 { echo "$as_me:$LINENO: result: no" >&5
4661 echo "${ECHO_T}no" >&6; }
4665 test -n "$CC" && break
4666 done
4668 if test -z "$CC"; then
4669 ac_verc_fail=yes
4670 else
4671 # Found it, now check the version.
4672 { echo "$as_me:$LINENO: checking version of $CC" >&5
4673 echo $ECHO_N "checking version of $CC... $ECHO_C" >&6; }
4674 ac_prog_version=`$CC -v 2>&1 | sed -n 's/^.*version \([egcygnustpi-]*[0-9.]*\).*$/\1/p'`
4675 case $ac_prog_version in
4676 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
4677 3.4* | 4.[0-9]* )
4678 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
4679 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
4681 esac
4682 { echo "$as_me:$LINENO: result: $ac_prog_version" >&5
4683 echo "${ECHO_T}$ac_prog_version" >&6; }
4685 if test $ac_verc_fail = yes; then
4686 critic_missing="$critic_missing gcc"
4689 for ac_prog in gnumake gmake make
4691 # Extract the first word of "$ac_prog", so it can be a program name with args.
4692 set dummy $ac_prog; ac_word=$2
4693 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4694 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4695 if test "${ac_cv_prog_MAKE+set}" = set; then
4696 echo $ECHO_N "(cached) $ECHO_C" >&6
4697 else
4698 if test -n "$MAKE"; then
4699 ac_cv_prog_MAKE="$MAKE" # Let the user override the test.
4700 else
4701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4702 for as_dir in $PATH
4704 IFS=$as_save_IFS
4705 test -z "$as_dir" && as_dir=.
4706 for ac_exec_ext in '' $ac_executable_extensions; do
4707 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4708 ac_cv_prog_MAKE="$ac_prog"
4709 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4710 break 2
4712 done
4713 done
4714 IFS=$as_save_IFS
4718 MAKE=$ac_cv_prog_MAKE
4719 if test -n "$MAKE"; then
4720 { echo "$as_me:$LINENO: result: $MAKE" >&5
4721 echo "${ECHO_T}$MAKE" >&6; }
4722 else
4723 { echo "$as_me:$LINENO: result: no" >&5
4724 echo "${ECHO_T}no" >&6; }
4728 test -n "$MAKE" && break
4729 done
4731 if test -z "$MAKE"; then
4732 ac_verc_fail=yes
4733 else
4734 # Found it, now check the version.
4735 { echo "$as_me:$LINENO: checking version of $MAKE" >&5
4736 echo $ECHO_N "checking version of $MAKE... $ECHO_C" >&6; }
4737 ac_prog_version=`$MAKE --version 2>&1 | sed -n 's/^.*GNU Make[^0-9]*\([0-9][0-9.]*\).*$/\1/p'`
4738 case $ac_prog_version in
4739 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
4740 3.79* | 3.[89]*)
4741 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
4742 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
4744 esac
4745 { echo "$as_me:$LINENO: result: $ac_prog_version" >&5
4746 echo "${ECHO_T}$ac_prog_version" >&6; }
4748 if test $ac_verc_fail = yes; then
4749 critic_missing="$critic_missing make"
4753 for ac_prog in gnumsgfmt gmsgfmt msgfmt
4755 # Extract the first word of "$ac_prog", so it can be a program name with args.
4756 set dummy $ac_prog; ac_word=$2
4757 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4758 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4759 if test "${ac_cv_prog_MSGFMT+set}" = set; then
4760 echo $ECHO_N "(cached) $ECHO_C" >&6
4761 else
4762 if test -n "$MSGFMT"; then
4763 ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
4764 else
4765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4766 for as_dir in $PATH
4768 IFS=$as_save_IFS
4769 test -z "$as_dir" && as_dir=.
4770 for ac_exec_ext in '' $ac_executable_extensions; do
4771 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4772 ac_cv_prog_MSGFMT="$ac_prog"
4773 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4774 break 2
4776 done
4777 done
4778 IFS=$as_save_IFS
4782 MSGFMT=$ac_cv_prog_MSGFMT
4783 if test -n "$MSGFMT"; then
4784 { echo "$as_me:$LINENO: result: $MSGFMT" >&5
4785 echo "${ECHO_T}$MSGFMT" >&6; }
4786 else
4787 { echo "$as_me:$LINENO: result: no" >&5
4788 echo "${ECHO_T}no" >&6; }
4792 test -n "$MSGFMT" && break
4793 done
4795 if test -z "$MSGFMT"; then
4796 ac_verc_fail=yes
4797 else
4798 # Found it, now check the version.
4799 { echo "$as_me:$LINENO: checking version of $MSGFMT" >&5
4800 echo $ECHO_N "checking version of $MSGFMT... $ECHO_C" >&6; }
4801 ac_prog_version=`$MSGFMT --version 2>&1 | sed -n 's/^.*GNU gettext.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
4802 case $ac_prog_version in
4803 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
4804 0.10.3[6-9]* | 0.10.[4-9][0-9]* | 0.1[1-9]* | 0.[2-9][0-9]* | [1-9].*)
4805 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
4806 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
4808 esac
4809 { echo "$as_me:$LINENO: result: $ac_prog_version" >&5
4810 echo "${ECHO_T}$ac_prog_version" >&6; }
4812 if test $ac_verc_fail = yes; then
4813 MSGFMT=: aux_missing="$aux_missing msgfmt"
4816 for ac_prog in makeinfo
4818 # Extract the first word of "$ac_prog", so it can be a program name with args.
4819 set dummy $ac_prog; ac_word=$2
4820 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4821 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4822 if test "${ac_cv_prog_MAKEINFO+set}" = set; then
4823 echo $ECHO_N "(cached) $ECHO_C" >&6
4824 else
4825 if test -n "$MAKEINFO"; then
4826 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
4827 else
4828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4829 for as_dir in $PATH
4831 IFS=$as_save_IFS
4832 test -z "$as_dir" && as_dir=.
4833 for ac_exec_ext in '' $ac_executable_extensions; do
4834 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4835 ac_cv_prog_MAKEINFO="$ac_prog"
4836 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4837 break 2
4839 done
4840 done
4841 IFS=$as_save_IFS
4845 MAKEINFO=$ac_cv_prog_MAKEINFO
4846 if test -n "$MAKEINFO"; then
4847 { echo "$as_me:$LINENO: result: $MAKEINFO" >&5
4848 echo "${ECHO_T}$MAKEINFO" >&6; }
4849 else
4850 { echo "$as_me:$LINENO: result: no" >&5
4851 echo "${ECHO_T}no" >&6; }
4855 test -n "$MAKEINFO" && break
4856 done
4858 if test -z "$MAKEINFO"; then
4859 ac_verc_fail=yes
4860 else
4861 # Found it, now check the version.
4862 { echo "$as_me:$LINENO: checking version of $MAKEINFO" >&5
4863 echo $ECHO_N "checking version of $MAKEINFO... $ECHO_C" >&6; }
4864 ac_prog_version=`$MAKEINFO --version 2>&1 | sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
4865 case $ac_prog_version in
4866 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
4867 4.*)
4868 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
4869 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
4871 esac
4872 { echo "$as_me:$LINENO: result: $ac_prog_version" >&5
4873 echo "${ECHO_T}$ac_prog_version" >&6; }
4875 if test $ac_verc_fail = yes; then
4876 MAKEINFO=: aux_missing="$aux_missing makeinfo"
4879 for ac_prog in sed
4881 # Extract the first word of "$ac_prog", so it can be a program name with args.
4882 set dummy $ac_prog; ac_word=$2
4883 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4884 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4885 if test "${ac_cv_prog_SED+set}" = set; then
4886 echo $ECHO_N "(cached) $ECHO_C" >&6
4887 else
4888 if test -n "$SED"; then
4889 ac_cv_prog_SED="$SED" # Let the user override the test.
4890 else
4891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4892 for as_dir in $PATH
4894 IFS=$as_save_IFS
4895 test -z "$as_dir" && as_dir=.
4896 for ac_exec_ext in '' $ac_executable_extensions; do
4897 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4898 ac_cv_prog_SED="$ac_prog"
4899 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4900 break 2
4902 done
4903 done
4904 IFS=$as_save_IFS
4908 SED=$ac_cv_prog_SED
4909 if test -n "$SED"; then
4910 { echo "$as_me:$LINENO: result: $SED" >&5
4911 echo "${ECHO_T}$SED" >&6; }
4912 else
4913 { echo "$as_me:$LINENO: result: no" >&5
4914 echo "${ECHO_T}no" >&6; }
4918 test -n "$SED" && break
4919 done
4921 if test -z "$SED"; then
4922 ac_verc_fail=yes
4923 else
4924 # Found it, now check the version.
4925 { echo "$as_me:$LINENO: checking version of $SED" >&5
4926 echo $ECHO_N "checking version of $SED... $ECHO_C" >&6; }
4927 ac_prog_version=`$SED --version 2>&1 | sed -n 's/^.*GNU sed version \([0-9]*\.[0-9.]*\).*$/\1/p'`
4928 case $ac_prog_version in
4929 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
4930 3.0[2-9]*|3.[1-9]*|[4-9]*)
4931 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
4932 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
4934 esac
4935 { echo "$as_me:$LINENO: result: $ac_prog_version" >&5
4936 echo "${ECHO_T}$ac_prog_version" >&6; }
4938 if test $ac_verc_fail = yes; then
4939 SED=: aux_missing="$aux_missing sed"
4943 for ac_prog in autoconf
4945 # Extract the first word of "$ac_prog", so it can be a program name with args.
4946 set dummy $ac_prog; ac_word=$2
4947 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4948 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4949 if test "${ac_cv_prog_AUTOCONF+set}" = set; then
4950 echo $ECHO_N "(cached) $ECHO_C" >&6
4951 else
4952 if test -n "$AUTOCONF"; then
4953 ac_cv_prog_AUTOCONF="$AUTOCONF" # Let the user override the test.
4954 else
4955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4956 for as_dir in $PATH
4958 IFS=$as_save_IFS
4959 test -z "$as_dir" && as_dir=.
4960 for ac_exec_ext in '' $ac_executable_extensions; do
4961 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4962 ac_cv_prog_AUTOCONF="$ac_prog"
4963 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4964 break 2
4966 done
4967 done
4968 IFS=$as_save_IFS
4972 AUTOCONF=$ac_cv_prog_AUTOCONF
4973 if test -n "$AUTOCONF"; then
4974 { echo "$as_me:$LINENO: result: $AUTOCONF" >&5
4975 echo "${ECHO_T}$AUTOCONF" >&6; }
4976 else
4977 { echo "$as_me:$LINENO: result: no" >&5
4978 echo "${ECHO_T}no" >&6; }
4982 test -n "$AUTOCONF" && break
4983 done
4984 test -n "$AUTOCONF" || AUTOCONF="no"
4986 case "x$AUTOCONF" in
4987 xno|x|x:) AUTOCONF=no ;;
4989 { echo "$as_me:$LINENO: checking whether $AUTOCONF${ACFLAGS:+ }$ACFLAGS works" >&5
4990 echo $ECHO_N "checking whether $AUTOCONF${ACFLAGS:+ }$ACFLAGS works... $ECHO_C" >&6; }
4991 if test "${libc_cv_autoconf_works+set}" = set; then
4992 echo $ECHO_N "(cached) $ECHO_C" >&6
4993 else
4994 if (cd $srcdir; $AUTOCONF $ACFLAGS configure.in > /dev/null 2>&1); then
4995 libc_cv_autoconf_works=yes
4996 else
4997 libc_cv_autoconf_works=no
5000 { echo "$as_me:$LINENO: result: $libc_cv_autoconf_works" >&5
5001 echo "${ECHO_T}$libc_cv_autoconf_works" >&6; }
5002 test $libc_cv_autoconf_works = yes || AUTOCONF=no
5004 esac
5005 if test "x$with_cvs" = xyes && test "x$AUTOCONF" = xno; then
5006 # If --without-cvs they probably won't change configure.in, so no complaints.
5007 aux_missing="$aux_missing autoconf"
5010 test -n "$critic_missing" && { { echo "$as_me:$LINENO: error:
5011 *** These critical programs are missing or too old:$critic_missing
5012 *** Check the INSTALL file for required versions." >&5
5013 echo "$as_me: error:
5014 *** These critical programs are missing or too old:$critic_missing
5015 *** Check the INSTALL file for required versions." >&2;}
5016 { (exit 1); exit 1; }; }
5018 test -n "$aux_missing" && { echo "$as_me:$LINENO: WARNING:
5019 *** These auxiliary programs are missing or incompatible versions:$aux_missing
5020 *** some features will be disabled.
5021 *** Check the INSTALL file for required versions." >&5
5022 echo "$as_me: WARNING:
5023 *** These auxiliary programs are missing or incompatible versions:$aux_missing
5024 *** some features will be disabled.
5025 *** Check the INSTALL file for required versions." >&2;}
5027 # if using special system headers, find out the compiler's sekrit
5028 # header directory and add that to the list. NOTE: Only does the right
5029 # thing on a system that doesn't need fixincludes. (Not presently a problem.)
5030 if test -n "$sysheaders"; then
5031 SYSINCLUDES=-nostdinc
5032 for d in include include-fixed; do
5033 i=`$CC -print-file-name="$d"` && test "x$i" != x && test "x$i" != "x$d" &&
5034 SYSINCLUDES="$SYSINCLUDES -isystem $i"
5035 done
5036 SYSINCLUDES="$SYSINCLUDES \
5037 -isystem `echo $sysheaders | sed 's/:/ -isystem /g'`"
5038 if test -n "$CXX"; then
5039 cxxversion=`$CXX -dumpversion 2>&5` &&
5040 cxxmachine=`$CXX -dumpmachine 2>&5` &&
5041 cxxheaders=`$CXX -print-file-name=../../../../include/c++/`"$cxxversion" &&
5042 CXX_SYSINCLUDES="-isystem $cxxheaders \
5043 -isystem $cxxheaders/$cxxmachine -isystem $cxxheaders/backward"
5049 # check if ranlib is necessary
5050 { echo "$as_me:$LINENO: checking whether ranlib is necessary" >&5
5051 echo $ECHO_N "checking whether ranlib is necessary... $ECHO_C" >&6; }
5052 if test "${libc_cv_ranlib_necessary+set}" = set; then
5053 echo $ECHO_N "(cached) $ECHO_C" >&6
5054 else
5055 cat > conftest.c <<EOF
5056 int a;
5057 char b;
5058 void c(void) {}
5060 $CC $CFLAGS $CPPFLAGS -c conftest.c
5061 $AR cr conftest.a conftest.o
5062 cp conftest.a conftest2.a
5063 $RANLIB conftest.a
5064 if cmp -s conftest.a conftest2.a; then
5065 libc_cv_ranlib_necessary=no
5066 else
5067 libc_cv_ranlib_necessary=yes
5069 rm -rf conftest*
5071 { echo "$as_me:$LINENO: result: $libc_cv_ranlib_necessary" >&5
5072 echo "${ECHO_T}$libc_cv_ranlib_necessary" >&6; }
5073 if test "$libc_cv_ranlib_necessary" = no; then
5074 RANLIB=:
5077 # Test if LD_LIBRARY_PATH contains the notation for the current directory
5078 # since this would lead to problems installing/building glibc.
5079 # LD_LIBRARY_PATH contains the current directory if one of the following
5080 # is true:
5081 # - one of the terminals (":" and ";") is the first or last sign
5082 # - two terminals occur directly after each other
5083 # - the path contains an element with a dot in it
5084 { echo "$as_me:$LINENO: checking LD_LIBRARY_PATH variable" >&5
5085 echo $ECHO_N "checking LD_LIBRARY_PATH variable... $ECHO_C" >&6; }
5086 case ${LD_LIBRARY_PATH} in
5087 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
5088 ld_library_path_setting="contains current directory"
5091 ld_library_path_setting="ok"
5093 esac
5094 { echo "$as_me:$LINENO: result: $ld_library_path_setting" >&5
5095 echo "${ECHO_T}$ld_library_path_setting" >&6; }
5096 if test "$ld_library_path_setting" != "ok"; then
5097 { { echo "$as_me:$LINENO: error:
5098 *** LD_LIBRARY_PATH shouldn't contain the current directory when
5099 *** building glibc. Please change the environment variable
5100 *** and run configure again." >&5
5101 echo "$as_me: error:
5102 *** LD_LIBRARY_PATH shouldn't contain the current directory when
5103 *** building glibc. Please change the environment variable
5104 *** and run configure again." >&2;}
5105 { (exit 1); exit 1; }; }
5108 { echo "$as_me:$LINENO: checking whether GCC supports -static-libgcc" >&5
5109 echo $ECHO_N "checking whether GCC supports -static-libgcc... $ECHO_C" >&6; }
5110 if test "${libc_cv_gcc_static_libgcc+set}" = set; then
5111 echo $ECHO_N "(cached) $ECHO_C" >&6
5112 else
5113 if $CC -v -static-libgcc 2>&1 | grep -q 'unrecognized option.*static-libgcc'; then
5114 libc_cv_gcc_static_libgcc=
5115 else
5116 libc_cv_gcc_static_libgcc=-static-libgcc
5119 { echo "$as_me:$LINENO: result: $libc_cv_gcc_static_libgcc" >&5
5120 echo "${ECHO_T}$libc_cv_gcc_static_libgcc" >&6; }
5123 # Extract the first word of "bash", so it can be a program name with args.
5124 set dummy bash; ac_word=$2
5125 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5126 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5127 if test "${ac_cv_path_BASH_SHELL+set}" = set; then
5128 echo $ECHO_N "(cached) $ECHO_C" >&6
5129 else
5130 case $BASH_SHELL in
5131 [\\/]* | ?:[\\/]*)
5132 ac_cv_path_BASH_SHELL="$BASH_SHELL" # Let the user override the test with a path.
5135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5136 for as_dir in $PATH
5138 IFS=$as_save_IFS
5139 test -z "$as_dir" && as_dir=.
5140 for ac_exec_ext in '' $ac_executable_extensions; do
5141 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5142 ac_cv_path_BASH_SHELL="$as_dir/$ac_word$ac_exec_ext"
5143 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5144 break 2
5146 done
5147 done
5148 IFS=$as_save_IFS
5150 test -z "$ac_cv_path_BASH_SHELL" && ac_cv_path_BASH_SHELL="no"
5152 esac
5154 BASH_SHELL=$ac_cv_path_BASH_SHELL
5155 if test -n "$BASH_SHELL"; then
5156 { echo "$as_me:$LINENO: result: $BASH_SHELL" >&5
5157 echo "${ECHO_T}$BASH_SHELL" >&6; }
5158 else
5159 { echo "$as_me:$LINENO: result: no" >&5
5160 echo "${ECHO_T}no" >&6; }
5164 if test "$BASH_SHELL" != no &&
5165 $BASH_SHELL -c 'test "$BASH_VERSINFO" \
5166 && test "$BASH_VERSINFO" -ge 2 >&/dev/null'; then
5167 libc_cv_have_bash2=yes
5168 else
5169 libc_cv_have_bash2=no
5173 if test "$BASH_SHELL" = no; then
5174 # Extract the first word of "ksh", so it can be a program name with args.
5175 set dummy ksh; ac_word=$2
5176 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5177 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5178 if test "${ac_cv_path_KSH+set}" = set; then
5179 echo $ECHO_N "(cached) $ECHO_C" >&6
5180 else
5181 case $KSH in
5182 [\\/]* | ?:[\\/]*)
5183 ac_cv_path_KSH="$KSH" # Let the user override the test with a path.
5186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5187 for as_dir in $PATH
5189 IFS=$as_save_IFS
5190 test -z "$as_dir" && as_dir=.
5191 for ac_exec_ext in '' $ac_executable_extensions; do
5192 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5193 ac_cv_path_KSH="$as_dir/$ac_word$ac_exec_ext"
5194 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5195 break 2
5197 done
5198 done
5199 IFS=$as_save_IFS
5201 test -z "$ac_cv_path_KSH" && ac_cv_path_KSH="no"
5203 esac
5205 KSH=$ac_cv_path_KSH
5206 if test -n "$KSH"; then
5207 { echo "$as_me:$LINENO: result: $KSH" >&5
5208 echo "${ECHO_T}$KSH" >&6; }
5209 else
5210 { echo "$as_me:$LINENO: result: no" >&5
5211 echo "${ECHO_T}no" >&6; }
5215 if test "$KSH" = no; then
5216 libc_cv_have_ksh=no
5217 else
5218 libc_cv_have_ksh=yes
5220 else
5221 KSH="$BASH_SHELL"
5223 libc_cv_have_ksh=yes
5227 for ac_prog in gawk mawk nawk awk
5229 # Extract the first word of "$ac_prog", so it can be a program name with args.
5230 set dummy $ac_prog; ac_word=$2
5231 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5232 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5233 if test "${ac_cv_prog_AWK+set}" = set; then
5234 echo $ECHO_N "(cached) $ECHO_C" >&6
5235 else
5236 if test -n "$AWK"; then
5237 ac_cv_prog_AWK="$AWK" # Let the user override the test.
5238 else
5239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5240 for as_dir in $PATH
5242 IFS=$as_save_IFS
5243 test -z "$as_dir" && as_dir=.
5244 for ac_exec_ext in '' $ac_executable_extensions; do
5245 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5246 ac_cv_prog_AWK="$ac_prog"
5247 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5248 break 2
5250 done
5251 done
5252 IFS=$as_save_IFS
5256 AWK=$ac_cv_prog_AWK
5257 if test -n "$AWK"; then
5258 { echo "$as_me:$LINENO: result: $AWK" >&5
5259 echo "${ECHO_T}$AWK" >&6; }
5260 else
5261 { echo "$as_me:$LINENO: result: no" >&5
5262 echo "${ECHO_T}no" >&6; }
5266 test -n "$AWK" && break
5267 done
5269 # Extract the first word of "perl", so it can be a program name with args.
5270 set dummy perl; ac_word=$2
5271 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5272 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5273 if test "${ac_cv_path_PERL+set}" = set; then
5274 echo $ECHO_N "(cached) $ECHO_C" >&6
5275 else
5276 case $PERL in
5277 [\\/]* | ?:[\\/]*)
5278 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
5281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5282 for as_dir in $PATH
5284 IFS=$as_save_IFS
5285 test -z "$as_dir" && as_dir=.
5286 for ac_exec_ext in '' $ac_executable_extensions; do
5287 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5288 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
5289 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5290 break 2
5292 done
5293 done
5294 IFS=$as_save_IFS
5296 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="no"
5298 esac
5300 PERL=$ac_cv_path_PERL
5301 if test -n "$PERL"; then
5302 { echo "$as_me:$LINENO: result: $PERL" >&5
5303 echo "${ECHO_T}$PERL" >&6; }
5304 else
5305 { echo "$as_me:$LINENO: result: no" >&5
5306 echo "${ECHO_T}no" >&6; }
5310 if test "$PERL" != no &&
5311 (eval `$PERL -V:apiversion`; test `expr "$apiversion" \< 5` -ne 0); then
5312 PERL=no
5314 # Extract the first word of "install-info", so it can be a program name with args.
5315 set dummy install-info; ac_word=$2
5316 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5317 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5318 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5319 echo $ECHO_N "(cached) $ECHO_C" >&6
5320 else
5321 case $INSTALL_INFO in
5322 [\\/]* | ?:[\\/]*)
5323 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5327 as_dummy="$PATH:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin"
5328 for as_dir in $as_dummy
5330 IFS=$as_save_IFS
5331 test -z "$as_dir" && as_dir=.
5332 for ac_exec_ext in '' $ac_executable_extensions; do
5333 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5334 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5335 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5336 break 2
5338 done
5339 done
5340 IFS=$as_save_IFS
5342 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO="no"
5344 esac
5346 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5347 if test -n "$INSTALL_INFO"; then
5348 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5349 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5350 else
5351 { echo "$as_me:$LINENO: result: no" >&5
5352 echo "${ECHO_T}no" >&6; }
5356 # Extract the first word of "bison", so it can be a program name with args.
5357 set dummy bison; ac_word=$2
5358 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5359 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5360 if test "${ac_cv_path_BISON+set}" = set; then
5361 echo $ECHO_N "(cached) $ECHO_C" >&6
5362 else
5363 case $BISON in
5364 [\\/]* | ?:[\\/]*)
5365 ac_cv_path_BISON="$BISON" # Let the user override the test with a path.
5368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5369 as_dummy="$PATH:/usr/local/bin:/usr/bin:/bin"
5370 for as_dir in $as_dummy
5372 IFS=$as_save_IFS
5373 test -z "$as_dir" && as_dir=.
5374 for ac_exec_ext in '' $ac_executable_extensions; do
5375 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5376 ac_cv_path_BISON="$as_dir/$ac_word$ac_exec_ext"
5377 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5378 break 2
5380 done
5381 done
5382 IFS=$as_save_IFS
5384 test -z "$ac_cv_path_BISON" && ac_cv_path_BISON="no"
5386 esac
5388 BISON=$ac_cv_path_BISON
5389 if test -n "$BISON"; then
5390 { echo "$as_me:$LINENO: result: $BISON" >&5
5391 echo "${ECHO_T}$BISON" >&6; }
5392 else
5393 { echo "$as_me:$LINENO: result: no" >&5
5394 echo "${ECHO_T}no" >&6; }
5399 { echo "$as_me:$LINENO: checking for signed size_t type" >&5
5400 echo $ECHO_N "checking for signed size_t type... $ECHO_C" >&6; }
5401 if test "${libc_cv_signed_size_t+set}" = set; then
5402 echo $ECHO_N "(cached) $ECHO_C" >&6
5403 else
5404 echo '#include <stddef.h>
5405 FOOBAR __SIZE_TYPE__ FOOBAR' > conftest.c
5406 if eval "$ac_cpp conftest.c 2>/dev/null" \
5407 | grep '^FOOBAR.*unsigned.*FOOBAR$' >/dev/null; then
5408 libc_cv_signed_size_t=no
5409 else
5410 libc_cv_signed_size_t=yes
5412 rm -f conftest*
5414 { echo "$as_me:$LINENO: result: $libc_cv_signed_size_t" >&5
5415 echo "${ECHO_T}$libc_cv_signed_size_t" >&6; }
5416 if test $libc_cv_signed_size_t = yes; then
5417 cat >> confdefs.h <<\EOF
5418 #undef __SIZE_TYPE__
5419 #define __SIZE_TYPE__ unsigned
5424 { echo "$as_me:$LINENO: checking for libc-friendly stddef.h" >&5
5425 echo $ECHO_N "checking for libc-friendly stddef.h... $ECHO_C" >&6; }
5426 if test "${libc_cv_friendly_stddef+set}" = set; then
5427 echo $ECHO_N "(cached) $ECHO_C" >&6
5428 else
5429 cat >conftest.$ac_ext <<_ACEOF
5430 /* confdefs.h. */
5431 _ACEOF
5432 cat confdefs.h >>conftest.$ac_ext
5433 cat >>conftest.$ac_ext <<_ACEOF
5434 /* end confdefs.h. */
5435 #define __need_size_t
5436 #define __need_wchar_t
5437 #include <stddef.h>
5438 #define __need_NULL
5439 #include <stddef.h>
5441 main ()
5443 size_t size; wchar_t wchar;
5444 #ifdef offsetof
5445 #error stddef.h ignored __need_*
5446 #endif
5447 if (&size == NULL || &wchar == NULL) abort ();
5449 return 0;
5451 _ACEOF
5452 rm -f conftest.$ac_objext
5453 if { (ac_try="$ac_compile"
5454 case "(($ac_try" in
5455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5456 *) ac_try_echo=$ac_try;;
5457 esac
5458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5459 (eval "$ac_compile") 2>conftest.er1
5460 ac_status=$?
5461 grep -v '^ *+' conftest.er1 >conftest.err
5462 rm -f conftest.er1
5463 cat conftest.err >&5
5464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5465 (exit $ac_status); } && {
5466 test -z "$ac_c_werror_flag" ||
5467 test ! -s conftest.err
5468 } && test -s conftest.$ac_objext; then
5469 libc_cv_friendly_stddef=yes
5470 else
5471 echo "$as_me: failed program was:" >&5
5472 sed 's/^/| /' conftest.$ac_ext >&5
5474 libc_cv_friendly_stddef=no
5477 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5479 { echo "$as_me:$LINENO: result: $libc_cv_friendly_stddef" >&5
5480 echo "${ECHO_T}$libc_cv_friendly_stddef" >&6; }
5481 if test $libc_cv_friendly_stddef = yes; then
5482 config_vars="$config_vars
5483 override stddef.h = # The installed <stddef.h> seems to be libc-friendly."
5486 { echo "$as_me:$LINENO: checking whether we need to use -P to assemble .S files" >&5
5487 echo $ECHO_N "checking whether we need to use -P to assemble .S files... $ECHO_C" >&6; }
5488 if test "${libc_cv_need_minus_P+set}" = set; then
5489 echo $ECHO_N "(cached) $ECHO_C" >&6
5490 else
5491 cat > conftest.S <<EOF
5492 #include "confdefs.h"
5493 /* Nothing whatsoever. */
5495 if { ac_try='${CC-cc} $CPPFLAGS $ASFLAGS -c conftest.S 1>&5'
5496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5497 (eval $ac_try) 2>&5
5498 ac_status=$?
5499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5500 (exit $ac_status); }; }; then
5501 libc_cv_need_minus_P=no
5502 else
5503 libc_cv_need_minus_P=yes
5505 rm -f conftest*
5507 { echo "$as_me:$LINENO: result: $libc_cv_need_minus_P" >&5
5508 echo "${ECHO_T}$libc_cv_need_minus_P" >&6; }
5509 if test $libc_cv_need_minus_P = yes; then
5510 config_vars="$config_vars
5511 asm-CPPFLAGS = -P # The assembler can't grok cpp's # line directives."
5514 { echo "$as_me:$LINENO: checking whether .text pseudo-op must be used" >&5
5515 echo $ECHO_N "checking whether .text pseudo-op must be used... $ECHO_C" >&6; }
5516 if test "${libc_cv_dot_text+set}" = set; then
5517 echo $ECHO_N "(cached) $ECHO_C" >&6
5518 else
5519 cat > conftest.s <<EOF
5520 .text
5522 libc_cv_dot_text=
5523 if { ac_try='${CC-cc} $ASFLAGS -c conftest.s 1>&5'
5524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5525 (eval $ac_try) 2>&5
5526 ac_status=$?
5527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5528 (exit $ac_status); }; }; then
5529 libc_cv_dot_text=.text
5531 rm -f conftest*
5534 if test -z "$libc_cv_dot_text"; then
5535 { echo "$as_me:$LINENO: result: no" >&5
5536 echo "${ECHO_T}no" >&6; }
5537 else
5538 { echo "$as_me:$LINENO: result: yes" >&5
5539 echo "${ECHO_T}yes" >&6; }
5542 { echo "$as_me:$LINENO: checking for assembler global-symbol directive" >&5
5543 echo $ECHO_N "checking for assembler global-symbol directive... $ECHO_C" >&6; }
5544 if test "${libc_cv_asm_global_directive+set}" = set; then
5545 echo $ECHO_N "(cached) $ECHO_C" >&6
5546 else
5547 libc_cv_asm_global_directive=UNKNOWN
5548 for ac_globl in .globl .global .EXPORT; do
5549 cat > conftest.s <<EOF
5550 ${libc_cv_dot_text}
5551 ${ac_globl} foo
5552 foo:
5554 if { ac_try='${CC-cc} $ASFLAGS -c conftest.s 1>&5'
5555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5556 (eval $ac_try) 2>&5
5557 ac_status=$?
5558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5559 (exit $ac_status); }; }; then
5560 libc_cv_asm_global_directive=${ac_globl}
5562 rm -f conftest*
5563 test $libc_cv_asm_global_directive != UNKNOWN && break
5564 done
5566 { echo "$as_me:$LINENO: result: $libc_cv_asm_global_directive" >&5
5567 echo "${ECHO_T}$libc_cv_asm_global_directive" >&6; }
5568 if test $libc_cv_asm_global_directive = UNKNOWN; then
5569 { { echo "$as_me:$LINENO: error: cannot determine asm global directive" >&5
5570 echo "$as_me: error: cannot determine asm global directive" >&2;}
5571 { (exit 1); exit 1; }; }
5572 else
5573 cat >>confdefs.h <<_ACEOF
5574 #define ASM_GLOBAL_DIRECTIVE ${libc_cv_asm_global_directive}
5575 _ACEOF
5579 { echo "$as_me:$LINENO: checking for .set assembler directive" >&5
5580 echo $ECHO_N "checking for .set assembler directive... $ECHO_C" >&6; }
5581 if test "${libc_cv_asm_set_directive+set}" = set; then
5582 echo $ECHO_N "(cached) $ECHO_C" >&6
5583 else
5584 cat > conftest.s <<EOF
5585 ${libc_cv_dot_text}
5586 foo:
5587 .set glibc_conftest_frobozz,foo
5588 $libc_cv_asm_global_directive glibc_conftest_frobozz
5590 # The alpha-dec-osf1 assembler gives only a warning for `.set'
5591 # (but it doesn't work), so we must do a linking check to be sure.
5592 cat > conftest1.c <<\EOF
5593 extern int glibc_conftest_frobozz;
5594 void _start() { glibc_conftest_frobozz = 1; }
5596 if ${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \
5597 -nostartfiles -nostdlib \
5598 -o conftest conftest.s conftest1.c 1>&5 2>&5; then
5599 libc_cv_asm_set_directive=yes
5600 else
5601 libc_cv_asm_set_directive=no
5603 rm -f conftest*
5605 { echo "$as_me:$LINENO: result: $libc_cv_asm_set_directive" >&5
5606 echo "${ECHO_T}$libc_cv_asm_set_directive" >&6; }
5607 if test $libc_cv_asm_set_directive = yes; then
5608 cat >>confdefs.h <<\_ACEOF
5609 #define HAVE_ASM_SET_DIRECTIVE 1
5610 _ACEOF
5614 { echo "$as_me:$LINENO: checking for assembler .type directive prefix" >&5
5615 echo $ECHO_N "checking for assembler .type directive prefix... $ECHO_C" >&6; }
5616 if test "${libc_cv_asm_type_prefix+set}" = set; then
5617 echo $ECHO_N "(cached) $ECHO_C" >&6
5618 else
5619 libc_cv_asm_type_prefix=no
5620 for ac_try_prefix in '@' '%' '#'; do
5621 cat > conftest.s <<EOF
5622 ${libc_cv_dot_text}
5623 ${libc_cv_asm_global_directive} foo
5624 .type foo, ${ac_try_prefix}object
5625 .size foo, 1
5626 foo:
5627 .byte 1
5629 if { ac_try='${CC-cc} $ASFLAGS -c conftest.s 1>&5'
5630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5631 (eval $ac_try) 2>&5
5632 ac_status=$?
5633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5634 (exit $ac_status); }; }; then
5635 libc_cv_asm_type_prefix=${ac_try_prefix}
5637 rm -f conftest*
5638 test "x$libc_cv_asm_type_prefix" != xno && break
5639 done
5641 { echo "$as_me:$LINENO: result: $libc_cv_asm_type_prefix" >&5
5642 echo "${ECHO_T}$libc_cv_asm_type_prefix" >&6; }
5643 if test "x$libc_cv_asm_type_prefix" != xno; then
5644 cat >>confdefs.h <<_ACEOF
5645 #define ASM_TYPE_DIRECTIVE_PREFIX ${libc_cv_asm_type_prefix}
5646 _ACEOF
5650 { echo "$as_me:$LINENO: checking for .symver assembler directive" >&5
5651 echo $ECHO_N "checking for .symver assembler directive... $ECHO_C" >&6; }
5652 if test "${libc_cv_asm_symver_directive+set}" = set; then
5653 echo $ECHO_N "(cached) $ECHO_C" >&6
5654 else
5655 cat > conftest.s <<EOF
5656 ${libc_cv_dot_text}
5657 _sym:
5658 .symver _sym,sym@VERS
5660 if ${CC-cc} -c $ASFLAGS conftest.s 1>&5 2>&5; then
5661 libc_cv_asm_symver_directive=yes
5662 else
5663 libc_cv_asm_symver_directive=no
5665 rm -f conftest*
5667 { echo "$as_me:$LINENO: result: $libc_cv_asm_symver_directive" >&5
5668 echo "${ECHO_T}$libc_cv_asm_symver_directive" >&6; }
5669 { echo "$as_me:$LINENO: checking for ld --version-script" >&5
5670 echo $ECHO_N "checking for ld --version-script... $ECHO_C" >&6; }
5671 if test "${libc_cv_ld_version_script_option+set}" = set; then
5672 echo $ECHO_N "(cached) $ECHO_C" >&6
5673 else
5674 if test $libc_cv_asm_symver_directive = yes; then
5675 cat > conftest.s <<EOF
5676 ${libc_cv_dot_text}
5677 _sym:
5678 .symver _sym,sym@VERS
5680 cat > conftest.map <<EOF
5681 VERS_1 {
5682 global: sym;
5685 VERS_2 {
5686 global: sym;
5687 } VERS_1;
5689 if ${CC-cc} -c $ASFLAGS conftest.s 1>&5 2>&5; then
5690 if { ac_try='${CC-cc} $CFLAGS $LDFLAGS -shared
5691 -o conftest.so conftest.o
5692 -nostartfiles -nostdlib
5693 -Wl,--version-script,conftest.map
5694 1>&5'
5695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5696 (eval $ac_try) 2>&5
5697 ac_status=$?
5698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5699 (exit $ac_status); }; };
5700 then
5701 libc_cv_ld_version_script_option=yes
5702 else
5703 libc_cv_ld_version_script_option=no
5705 else
5706 libc_cv_ld_version_script_option=no
5708 else
5709 libc_cv_ld_version_script_option=no
5711 rm -f conftest*
5713 { echo "$as_me:$LINENO: result: $libc_cv_ld_version_script_option" >&5
5714 echo "${ECHO_T}$libc_cv_ld_version_script_option" >&6; }
5715 if test $shared != no &&
5716 test $libc_cv_asm_symver_directive = yes &&
5717 test $libc_cv_ld_version_script_option = yes &&
5718 test $enable_versioning = yes; then
5719 VERSIONING=yes
5720 cat >>confdefs.h <<\_ACEOF
5721 #define DO_VERSIONING 1
5722 _ACEOF
5724 else
5725 VERSIONING=no
5729 if test $elf = yes && test $shared != no && test $VERSIONING = no; then
5730 echo "\
5731 *** WARNING: You should not compile GNU libc without versioning. Not using
5732 *** versioning will introduce incompatibilities so that old binaries
5733 *** will not run anymore.
5734 *** For versioning you need recent binutils (binutils-2.8.1.0.23 or newer)."
5736 if test $elf = yes; then
5737 { echo "$as_me:$LINENO: checking for .previous assembler directive" >&5
5738 echo $ECHO_N "checking for .previous assembler directive... $ECHO_C" >&6; }
5739 if test "${libc_cv_asm_previous_directive+set}" = set; then
5740 echo $ECHO_N "(cached) $ECHO_C" >&6
5741 else
5742 cat > conftest.s <<EOF
5743 .section foo_section
5744 .previous
5746 if { ac_try='${CC-cc} -c $ASFLAGS conftest.s 1>&5'
5747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5748 (eval $ac_try) 2>&5
5749 ac_status=$?
5750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5751 (exit $ac_status); }; }; then
5752 libc_cv_asm_previous_directive=yes
5753 else
5754 libc_cv_asm_previous_directive=no
5756 rm -f conftest*
5758 { echo "$as_me:$LINENO: result: $libc_cv_asm_previous_directive" >&5
5759 echo "${ECHO_T}$libc_cv_asm_previous_directive" >&6; }
5760 if test $libc_cv_asm_previous_directive = yes; then
5761 cat >>confdefs.h <<\_ACEOF
5762 #define HAVE_ASM_PREVIOUS_DIRECTIVE 1
5763 _ACEOF
5765 else
5766 { echo "$as_me:$LINENO: checking for .popsection assembler directive" >&5
5767 echo $ECHO_N "checking for .popsection assembler directive... $ECHO_C" >&6; }
5768 if test "${libc_cv_asm_popsection_directive+set}" = set; then
5769 echo $ECHO_N "(cached) $ECHO_C" >&6
5770 else
5771 cat > conftest.s <<EOF
5772 .pushsection foo_section
5773 .popsection
5775 if { ac_try='${CC-cc} -c $ASFLAGS conftest.s 1>&5'
5776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5777 (eval $ac_try) 2>&5
5778 ac_status=$?
5779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5780 (exit $ac_status); }; }; then
5781 libc_cv_asm_popsection_directive=yes
5782 else
5783 libc_cv_asm_popsection_directive=no
5785 rm -f conftest*
5787 { echo "$as_me:$LINENO: result: $libc_cv_asm_popsection_directive" >&5
5788 echo "${ECHO_T}$libc_cv_asm_popsection_directive" >&6; }
5789 if test $libc_cv_asm_popsection_directive = yes; then
5790 cat >>confdefs.h <<\_ACEOF
5791 #define HAVE_ASM_POPSECTION_DIRECTIVE 1
5792 _ACEOF
5796 { echo "$as_me:$LINENO: checking for .protected and .hidden assembler directive" >&5
5797 echo $ECHO_N "checking for .protected and .hidden assembler directive... $ECHO_C" >&6; }
5798 if test "${libc_cv_asm_protected_directive+set}" = set; then
5799 echo $ECHO_N "(cached) $ECHO_C" >&6
5800 else
5801 cat > conftest.s <<EOF
5802 .protected foo
5803 foo:
5804 .hidden bar
5805 bar:
5807 if { ac_try='${CC-cc} -c $ASFLAGS conftest.s 1>&5'
5808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5809 (eval $ac_try) 2>&5
5810 ac_status=$?
5811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5812 (exit $ac_status); }; }; then
5813 libc_cv_asm_protected_directive=yes
5814 else
5815 { { echo "$as_me:$LINENO: error: assembler support for symbol visibility is required" >&5
5816 echo "$as_me: error: assembler support for symbol visibility is required" >&2;}
5817 { (exit 1); exit 1; }; }
5819 rm -f conftest*
5821 { echo "$as_me:$LINENO: result: $libc_cv_asm_protected_directive" >&5
5822 echo "${ECHO_T}$libc_cv_asm_protected_directive" >&6; }
5824 if test $libc_cv_asm_protected_directive = yes; then
5825 { echo "$as_me:$LINENO: checking whether __attribute__((visibility())) is supported" >&5
5826 echo $ECHO_N "checking whether __attribute__((visibility())) is supported... $ECHO_C" >&6; }
5827 if test "${libc_cv_visibility_attribute+set}" = set; then
5828 echo $ECHO_N "(cached) $ECHO_C" >&6
5829 else
5830 cat > conftest.c <<EOF
5831 int foo __attribute__ ((visibility ("hidden"))) = 1;
5832 int bar __attribute__ ((visibility ("protected"))) = 1;
5834 libc_cv_visibility_attribute=no
5835 if { ac_try='${CC-cc} -Werror -S conftest.c -o conftest.s 1>&5'
5836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5837 (eval $ac_try) 2>&5
5838 ac_status=$?
5839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5840 (exit $ac_status); }; }; then
5841 if grep '\.hidden.*foo' conftest.s >/dev/null; then
5842 if grep '\.protected.*bar' conftest.s >/dev/null; then
5843 libc_cv_visibility_attribute=yes
5847 rm -f conftest.cs
5850 { echo "$as_me:$LINENO: result: $libc_cv_visibility_attribute" >&5
5851 echo "${ECHO_T}$libc_cv_visibility_attribute" >&6; }
5852 if test $libc_cv_visibility_attribute != yes; then
5853 { { echo "$as_me:$LINENO: error: compiler support for visibility attribute is required" >&5
5854 echo "$as_me: error: compiler support for visibility attribute is required" >&2;}
5855 { (exit 1); exit 1; }; }
5859 if test $libc_cv_visibility_attribute = yes; then
5860 { echo "$as_me:$LINENO: checking for broken __attribute__((visibility()))" >&5
5861 echo $ECHO_N "checking for broken __attribute__((visibility()))... $ECHO_C" >&6; }
5862 if test "${libc_cv_broken_visibility_attribute+set}" = set; then
5863 echo $ECHO_N "(cached) $ECHO_C" >&6
5864 else
5865 cat > conftest.c <<EOF
5866 int foo (int x);
5867 int bar (int x) __asm__ ("foo") __attribute__ ((visibility ("hidden")));
5868 int bar (int x) { return x; }
5870 libc_cv_broken_visibility_attribute=yes
5871 if { ac_try='${CC-cc} -Werror -S conftest.c -o conftest.s1>&5'
5872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5873 (eval $ac_try) 2>&5
5874 ac_status=$?
5875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5876 (exit $ac_status); }; }; then
5877 if grep '\.hidden[ _]foo' conftest.s >/dev/null; then
5878 libc_cv_broken_visibility_attribute=no
5881 rm -f conftest.c conftest.s
5884 { echo "$as_me:$LINENO: result: $libc_cv_broken_visibility_attribute" >&5
5885 echo "${ECHO_T}$libc_cv_broken_visibility_attribute" >&6; }
5886 if test $libc_cv_broken_visibility_attribute = yes; then
5887 { { echo "$as_me:$LINENO: error: working compiler support for visibility attribute is required" >&5
5888 echo "$as_me: error: working compiler support for visibility attribute is required" >&2;}
5889 { (exit 1); exit 1; }; }
5893 { echo "$as_me:$LINENO: checking for broken __attribute__((alias()))" >&5
5894 echo $ECHO_N "checking for broken __attribute__((alias()))... $ECHO_C" >&6; }
5895 if test "${libc_cv_broken_alias_attribute+set}" = set; then
5896 echo $ECHO_N "(cached) $ECHO_C" >&6
5897 else
5898 cat > conftest.c <<EOF
5899 extern int foo (int x) __asm ("xyzzy");
5900 int bar (int x) { return x; }
5901 extern __typeof (bar) foo __attribute ((weak, alias ("bar")));
5902 extern int dfoo;
5903 extern __typeof (dfoo) dfoo __asm ("abccb");
5904 int dfoo = 1;
5906 libc_cv_broken_alias_attribute=yes
5907 if { ac_try='${CC-cc} -Werror -S conftest.c -o conftest.s 1>&5'
5908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5909 (eval $ac_try) 2>&5
5910 ac_status=$?
5911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5912 (exit $ac_status); }; }; then
5913 if grep 'xyzzy' conftest.s >/dev/null &&
5914 grep 'abccb' conftest.s >/dev/null; then
5915 libc_cv_broken_alias_attribute=no
5918 rm -f conftest.c conftest.s
5921 { echo "$as_me:$LINENO: result: $libc_cv_broken_alias_attribute" >&5
5922 echo "${ECHO_T}$libc_cv_broken_alias_attribute" >&6; }
5923 if test $libc_cv_broken_alias_attribute = yes; then
5924 { { echo "$as_me:$LINENO: error: working alias attribute support required" >&5
5925 echo "$as_me: error: working alias attribute support required" >&2;}
5926 { (exit 1); exit 1; }; }
5929 if test $libc_cv_visibility_attribute = yes; then
5930 { echo "$as_me:$LINENO: checking whether to put _rtld_local into .sdata section" >&5
5931 echo $ECHO_N "checking whether to put _rtld_local into .sdata section... $ECHO_C" >&6; }
5932 if test "${libc_cv_have_sdata_section+set}" = set; then
5933 echo $ECHO_N "(cached) $ECHO_C" >&6
5934 else
5935 echo "int i;" > conftest.c
5936 libc_cv_have_sdata_section=no
5937 if ${CC-cc} $LDFLAGS -fPIC -shared -Wl,--verbose conftest.c -o conftest.so 2>&1 \
5938 | grep '\.sdata' >/dev/null; then
5939 libc_cv_have_sdata_section=yes
5941 rm -f conftest.c conftest.so
5944 { echo "$as_me:$LINENO: result: $libc_cv_have_sdata_section" >&5
5945 echo "${ECHO_T}$libc_cv_have_sdata_section" >&6; }
5946 if test $libc_cv_have_sdata_section = yes; then
5947 cat >>confdefs.h <<\_ACEOF
5948 #define HAVE_SDATA_SECTION 1
5949 _ACEOF
5954 { echo "$as_me:$LINENO: checking for .preinit_array/.init_array/.fini_array support" >&5
5955 echo $ECHO_N "checking for .preinit_array/.init_array/.fini_array support... $ECHO_C" >&6; }
5956 if test "${libc_cv_initfini_array+set}" = set; then
5957 echo $ECHO_N "(cached) $ECHO_C" >&6
5958 else
5959 cat > conftest.c <<EOF
5960 int _start (void) { return 0; }
5961 int __start (void) { return 0; }
5962 int foo (void) { return 1; }
5963 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
5965 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS -o conftest conftest.c
5966 -static -nostartfiles -nostdlib 1>&5'
5967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5968 (eval $ac_try) 2>&5
5969 ac_status=$?
5970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5971 (exit $ac_status); }; }
5972 then
5973 if readelf -S conftest | fgrep INIT_ARRAY > /dev/null; then
5974 libc_cv_initfini_array=yes
5975 else
5976 libc_cv_initfini_array=no
5978 else
5979 libc_cv_initfini_array=no
5981 rm -f conftest*
5983 { echo "$as_me:$LINENO: result: $libc_cv_initfini_array" >&5
5984 echo "${ECHO_T}$libc_cv_initfini_array" >&6; }
5985 if test $libc_cv_initfini_array != yes; then
5986 { { echo "$as_me:$LINENO: error: Need linker with .init_array/.fini_array support." >&5
5987 echo "$as_me: error: Need linker with .init_array/.fini_array support." >&2;}
5988 { (exit 1); exit 1; }; }
5991 { echo "$as_me:$LINENO: checking for libunwind-support in compiler" >&5
5992 echo $ECHO_N "checking for libunwind-support in compiler... $ECHO_C" >&6; }
5993 if test "${libc_cv_cc_with_libunwind+set}" = set; then
5994 echo $ECHO_N "(cached) $ECHO_C" >&6
5995 else
5997 cat > conftest.c <<EOF
5998 int main (void) { return 0; }
6000 if ${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS -static -o conftest \
6001 conftest.c -v 2>&1 >/dev/null | grep -q " -lunwind "; then
6002 libc_cv_cc_with_libunwind=yes
6003 else
6004 libc_cv_cc_with_libunwind=no
6006 rm -f conftest*
6008 { echo "$as_me:$LINENO: result: $libc_cv_cc_with_libunwind" >&5
6009 echo "${ECHO_T}$libc_cv_cc_with_libunwind" >&6; }
6011 if test $libc_cv_cc_with_libunwind = yes; then
6012 cat >>confdefs.h <<\_ACEOF
6013 #define HAVE_CC_WITH_LIBUNWIND 1
6014 _ACEOF
6018 { echo "$as_me:$LINENO: checking for -z nodelete option" >&5
6019 echo $ECHO_N "checking for -z nodelete option... $ECHO_C" >&6; }
6020 if test "${libc_cv_z_nodelete+set}" = set; then
6021 echo $ECHO_N "(cached) $ECHO_C" >&6
6022 else
6023 cat > conftest.c <<EOF
6024 int _start (void) { return 42; }
6026 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
6027 -fPIC -shared -o conftest.so conftest.c
6028 -nostartfiles -nostdlib
6029 -Wl,--enable-new-dtags,-z,nodelete 1>&5'
6030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6031 (eval $ac_try) 2>&5
6032 ac_status=$?
6033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6034 (exit $ac_status); }; }
6035 then
6036 libc_cv_z_nodelete=yes
6037 else
6038 { { echo "$as_me:$LINENO: error: linker with -z nodelete support required" >&5
6039 echo "$as_me: error: linker with -z nodelete support required" >&2;}
6040 { (exit 1); exit 1; }; }
6042 rm -f conftest*
6044 { echo "$as_me:$LINENO: result: $libc_cv_z_nodelete" >&5
6045 echo "${ECHO_T}$libc_cv_z_nodelete" >&6; }
6047 { echo "$as_me:$LINENO: checking for -z nodlopen option" >&5
6048 echo $ECHO_N "checking for -z nodlopen option... $ECHO_C" >&6; }
6049 if test "${libc_cv_z_nodlopen+set}" = set; then
6050 echo $ECHO_N "(cached) $ECHO_C" >&6
6051 else
6052 cat > conftest.c <<EOF
6053 int _start (void) { return 42; }
6055 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
6056 -fPIC -shared -o conftest.so conftest.c
6057 -nostartfiles -nostdlib
6058 -Wl,--enable-new-dtags,-z,nodlopen 1>&5'
6059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6060 (eval $ac_try) 2>&5
6061 ac_status=$?
6062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6063 (exit $ac_status); }; }
6064 then
6065 libc_cv_z_nodlopen=yes
6066 else
6067 { { echo "$as_me:$LINENO: error: linker with -z nodlopen support required" >&5
6068 echo "$as_me: error: linker with -z nodlopen support required" >&2;}
6069 { (exit 1); exit 1; }; }
6071 rm -f conftest*
6073 { echo "$as_me:$LINENO: result: $libc_cv_z_nodlopen" >&5
6074 echo "${ECHO_T}$libc_cv_z_nodlopen" >&6; }
6076 { echo "$as_me:$LINENO: checking for -z initfirst option" >&5
6077 echo $ECHO_N "checking for -z initfirst option... $ECHO_C" >&6; }
6078 if test "${libc_cv_z_initfirst+set}" = set; then
6079 echo $ECHO_N "(cached) $ECHO_C" >&6
6080 else
6081 cat > conftest.c <<EOF
6082 int _start (void) { return 42; }
6084 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
6085 -fPIC -shared -o conftest.so conftest.c
6086 -nostartfiles -nostdlib
6087 -Wl,--enable-new-dtags,-z,initfirst 1>&5'
6088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6089 (eval $ac_try) 2>&5
6090 ac_status=$?
6091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6092 (exit $ac_status); }; }
6093 then
6094 libc_cv_z_initfirst=yes
6095 else
6096 { { echo "$as_me:$LINENO: error: linker with -z initfirst support required" >&5
6097 echo "$as_me: error: linker with -z initfirst support required" >&2;}
6098 { (exit 1); exit 1; }; }
6100 rm -f conftest*
6102 { echo "$as_me:$LINENO: result: $libc_cv_z_initfirst" >&5
6103 echo "${ECHO_T}$libc_cv_z_initfirst" >&6; }
6105 case "$base_machine" in
6106 i[34567]86 | x86_64 | powerpc* | s390* | sparc* | alpha*)
6107 { echo "$as_me:$LINENO: checking for -z relro option" >&5
6108 echo $ECHO_N "checking for -z relro option... $ECHO_C" >&6; }
6109 if test "${libc_cv_z_relro+set}" = set; then
6110 echo $ECHO_N "(cached) $ECHO_C" >&6
6111 else
6112 libc_cv_z_relro=no
6113 if { ac_try='${CC-cc} -v --help 2>&1|grep "z relro" 1>&5'
6114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6115 (eval $ac_try) 2>&5
6116 ac_status=$?
6117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6118 (exit $ac_status); }; }
6119 then
6120 if { ac_try='${CC-cc} -Wl,--verbose 2>&1|grep DATA_SEGMENT_RELRO_END 1>&5'
6121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6122 (eval $ac_try) 2>&5
6123 ac_status=$?
6124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6125 (exit $ac_status); }; }
6126 then
6127 libc_cv_z_relro=yes
6131 { echo "$as_me:$LINENO: result: $libc_cv_z_relro" >&5
6132 echo "${ECHO_T}$libc_cv_z_relro" >&6; }
6133 if test "$libc_cv_z_relro" = no; then
6134 { { echo "$as_me:$LINENO: error: linker with -z relro support required" >&5
6135 echo "$as_me: error: linker with -z relro support required" >&2;}
6136 { (exit 1); exit 1; }; }
6139 *) ;;
6140 esac
6142 { echo "$as_me:$LINENO: checking for -Bgroup option" >&5
6143 echo $ECHO_N "checking for -Bgroup option... $ECHO_C" >&6; }
6144 if test "${libc_cv_Bgroup+set}" = set; then
6145 echo $ECHO_N "(cached) $ECHO_C" >&6
6146 else
6147 cat > conftest.c <<EOF
6148 int _start (void) { return 42; }
6150 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
6151 -fPIC -shared -o conftest.so conftest.c
6152 -Wl,-Bgroup -nostdlib 1>&5'
6153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6154 (eval $ac_try) 2>&5
6155 ac_status=$?
6156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6157 (exit $ac_status); }; }
6158 then
6159 libc_cv_Bgroup=yes
6160 else
6161 libc_cv_Bgroup=no
6163 rm -f conftest*
6165 { echo "$as_me:$LINENO: result: $libc_cv_Bgroup" >&5
6166 echo "${ECHO_T}$libc_cv_Bgroup" >&6; }
6169 { echo "$as_me:$LINENO: checking for libgcc_s suffix" >&5
6170 echo $ECHO_N "checking for libgcc_s suffix... $ECHO_C" >&6; }
6171 if test "${libc_cv_libgcc_s_suffix+set}" = set; then
6172 echo $ECHO_N "(cached) $ECHO_C" >&6
6173 else
6174 cat > conftest.c <<EOF
6175 int main (void) { return 0; }
6177 libc_cv_libgcc_s_suffix=`${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \
6178 -fPIC -shared -shared-libgcc -o conftest.so \
6179 conftest.c -v 2>&1 >/dev/null \
6180 | sed -n 's/^.* -lgcc_s\([^ ]*\) .*$/\1/p'`
6181 rm -f conftest*
6183 { echo "$as_me:$LINENO: result: $libc_cv_libgcc_s_suffix" >&5
6184 echo "${ECHO_T}$libc_cv_libgcc_s_suffix" >&6; }
6187 { echo "$as_me:$LINENO: checking for --as-needed option" >&5
6188 echo $ECHO_N "checking for --as-needed option... $ECHO_C" >&6; }
6189 if test "${libc_cv_as_needed+set}" = set; then
6190 echo $ECHO_N "(cached) $ECHO_C" >&6
6191 else
6192 cat > conftest.c <<EOF
6193 int main (void) { return 0; }
6195 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
6196 -fPIC -shared -o conftest.so conftest.c
6197 -lgcc_s$libc_cv_libgcc_s_suffix -Wl,--as-needed
6198 -nostdlib 1>&5'
6199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6200 (eval $ac_try) 2>&5
6201 ac_status=$?
6202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6203 (exit $ac_status); }; }
6204 then
6205 libc_cv_as_needed=yes
6206 else
6207 libc_cv_as_needed=no
6209 rm -f conftest*
6211 { echo "$as_me:$LINENO: result: $libc_cv_as_needed" >&5
6212 echo "${ECHO_T}$libc_cv_as_needed" >&6; }
6215 ASFLAGS_config=
6216 { echo "$as_me:$LINENO: checking whether --noexecstack is desirable for .S files" >&5
6217 echo $ECHO_N "checking whether --noexecstack is desirable for .S files... $ECHO_C" >&6; }
6218 if test "${libc_cv_as_noexecstack+set}" = set; then
6219 echo $ECHO_N "(cached) $ECHO_C" >&6
6220 else
6221 cat > conftest.c <<EOF
6222 void foo (void) { }
6224 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS
6225 -S -o conftest.s conftest.c 1>&5'
6226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6227 (eval $ac_try) 2>&5
6228 ac_status=$?
6229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6230 (exit $ac_status); }; } \
6231 && grep -q .note.GNU-stack conftest.s \
6232 && { ac_try='${CC-cc} $ASFLAGS -Wa,--noexecstack
6233 -c -o conftest.o conftest.s 1>&5'
6234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6235 (eval $ac_try) 2>&5
6236 ac_status=$?
6237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6238 (exit $ac_status); }; }
6239 then
6240 libc_cv_as_noexecstack=yes
6241 else
6242 libc_cv_as_noexecstack=no
6244 rm -f conftest*
6246 { echo "$as_me:$LINENO: result: $libc_cv_as_noexecstack" >&5
6247 echo "${ECHO_T}$libc_cv_as_noexecstack" >&6; }
6248 if test $libc_cv_as_noexecstack = yes; then
6249 ASFLAGS_config="$ASFLAGS_config -Wa,--noexecstack"
6253 { echo "$as_me:$LINENO: checking for -z combreloc" >&5
6254 echo $ECHO_N "checking for -z combreloc... $ECHO_C" >&6; }
6255 if test "${libc_cv_z_combreloc+set}" = set; then
6256 echo $ECHO_N "(cached) $ECHO_C" >&6
6257 else
6258 cat > conftest.c <<EOF
6259 extern int bar (int);
6260 extern int mumble;
6261 int foo (void) { return bar (mumble); }
6263 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
6264 -fPIC -shared -o conftest.so conftest.c
6265 -nostdlib -nostartfiles
6266 -Wl,-z,combreloc 1>&5'
6267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6268 (eval $ac_try) 2>&5
6269 ac_status=$?
6270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6271 (exit $ac_status); }; }
6272 then
6273 if readelf -S conftest.so | grep '\.rel\(a\|\)\.dyn' > /dev/null; then
6274 libc_cv_z_combreloc=yes
6275 else
6276 libc_cv_z_combreloc=no
6278 else
6279 libc_cv_z_combreloc=no
6281 rm -f conftest*
6283 { echo "$as_me:$LINENO: result: $libc_cv_z_combreloc" >&5
6284 echo "${ECHO_T}$libc_cv_z_combreloc" >&6; }
6285 if test "$libc_cv_z_combreloc" = yes; then
6286 cat >>confdefs.h <<\_ACEOF
6287 #define HAVE_Z_COMBRELOC 1
6288 _ACEOF
6293 { echo "$as_me:$LINENO: checking for -z execstack" >&5
6294 echo $ECHO_N "checking for -z execstack... $ECHO_C" >&6; }
6295 if test "${libc_cv_z_execstack+set}" = set; then
6296 echo $ECHO_N "(cached) $ECHO_C" >&6
6297 else
6298 cat > conftest.c <<EOF
6299 int _start (void) { return 42; }
6301 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
6302 -fPIC -shared -o conftest.so conftest.c
6303 -Wl,-z,execstack -nostdlib
6304 1>&5'
6305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6306 (eval $ac_try) 2>&5
6307 ac_status=$?
6308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6309 (exit $ac_status); }; }
6310 then
6311 libc_cv_z_execstack=yes
6312 else
6313 libc_cv_z_execstack=no
6315 rm -f conftest*
6317 { echo "$as_me:$LINENO: result: $libc_cv_z_execstack" >&5
6318 echo "${ECHO_T}$libc_cv_z_execstack" >&6; }
6321 { echo "$as_me:$LINENO: checking for -fpie" >&5
6322 echo $ECHO_N "checking for -fpie... $ECHO_C" >&6; }
6323 if test "${libc_cv_fpie+set}" = set; then
6324 echo $ECHO_N "(cached) $ECHO_C" >&6
6325 else
6326 cat > conftest.c <<EOF
6327 int foo;
6328 main () { return 0;}
6330 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS -pie -fpie
6331 -o conftest conftest.c 1>&5'
6332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6333 (eval $ac_try) 2>&5
6334 ac_status=$?
6335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6336 (exit $ac_status); }; }
6337 then
6338 libc_cv_fpie=yes
6339 else
6340 libc_cv_fpie=no
6342 rm -f conftest*
6344 { echo "$as_me:$LINENO: result: $libc_cv_fpie" >&5
6345 echo "${ECHO_T}$libc_cv_fpie" >&6; }
6349 { echo "$as_me:$LINENO: checking for --hash-style option" >&5
6350 echo $ECHO_N "checking for --hash-style option... $ECHO_C" >&6; }
6351 if test "${libc_cv_hashstyle+set}" = set; then
6352 echo $ECHO_N "(cached) $ECHO_C" >&6
6353 else
6354 cat > conftest.c <<EOF
6355 int _start (void) { return 42; }
6357 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
6358 -fPIC -shared -o conftest.so conftest.c
6359 -Wl,--hash-style=both -nostdlib 1>&5'
6360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6361 (eval $ac_try) 2>&5
6362 ac_status=$?
6363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6364 (exit $ac_status); }; }
6365 then
6366 libc_cv_hashstyle=yes
6367 else
6368 libc_cv_hashstyle=no
6370 rm -f conftest*
6372 { echo "$as_me:$LINENO: result: $libc_cv_hashstyle" >&5
6373 echo "${ECHO_T}$libc_cv_hashstyle" >&6; }
6377 { echo "$as_me:$LINENO: checking for -fno-toplevel-reorder -fno-section-anchors" >&5
6378 echo $ECHO_N "checking for -fno-toplevel-reorder -fno-section-anchors... $ECHO_C" >&6; }
6379 if test "${libc_cv_fno_toplevel_reorder+set}" = set; then
6380 echo $ECHO_N "(cached) $ECHO_C" >&6
6381 else
6382 cat > conftest.c <<EOF
6383 int foo;
6385 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -S -fno-toplevel-reorder -fno-section-anchors
6386 conftest.c 1>&5'
6387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6388 (eval $ac_try) 2>&5
6389 ac_status=$?
6390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6391 (exit $ac_status); }; }
6392 then
6393 libc_cv_fno_toplevel_reorder=yes
6394 else
6395 libc_cv_fno_toplevel_reorder=no
6397 rm -f conftest*
6399 { echo "$as_me:$LINENO: result: $libc_cv_fno_toplevel_reorder" >&5
6400 echo "${ECHO_T}$libc_cv_fno_toplevel_reorder" >&6; }
6401 if test $libc_cv_fno_toplevel_reorder = yes; then
6402 fno_unit_at_a_time="-fno-toplevel-reorder -fno-section-anchors"
6403 else
6404 fno_unit_at_a_time=-fno-unit-at-a-time
6408 { echo "$as_me:$LINENO: checking for -fstack-protector" >&5
6409 echo $ECHO_N "checking for -fstack-protector... $ECHO_C" >&6; }
6410 if test "${libc_cv_ssp+set}" = set; then
6411 echo $ECHO_N "(cached) $ECHO_C" >&6
6412 else
6413 cat > conftest.c <<EOF
6414 int foo;
6415 main () { return 0;}
6417 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS -Werror -fstack-protector
6418 -o conftest conftest.c 1>&5'
6419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6420 (eval $ac_try) 2>&5
6421 ac_status=$?
6422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6423 (exit $ac_status); }; }
6424 then
6425 libc_cv_ssp=yes
6426 else
6427 libc_cv_ssp=no
6429 rm -f conftest*
6431 { echo "$as_me:$LINENO: result: $libc_cv_ssp" >&5
6432 echo "${ECHO_T}$libc_cv_ssp" >&6; }
6435 { echo "$as_me:$LINENO: checking for -fgnu89-inline" >&5
6436 echo $ECHO_N "checking for -fgnu89-inline... $ECHO_C" >&6; }
6437 if test "${libc_cv_gnu89_inline+set}" = set; then
6438 echo $ECHO_N "(cached) $ECHO_C" >&6
6439 else
6440 cat > conftest.c <<EOF
6441 int foo;
6442 #ifdef __GNUC_GNU_INLINE__
6443 main () { return 0;}
6444 #else
6445 #error
6446 #endif
6448 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -S -std=gnu99 -fgnu89-inline
6449 -o conftest.s conftest.c 1>&5'
6450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6451 (eval $ac_try) 2>&5
6452 ac_status=$?
6453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6454 (exit $ac_status); }; }
6455 then
6456 libc_cv_gnu89_inline=yes
6457 else
6458 libc_cv_gnu89_inline=no
6460 rm -f conftest*
6462 { echo "$as_me:$LINENO: result: $libc_cv_gnu89_inline" >&5
6463 echo "${ECHO_T}$libc_cv_gnu89_inline" >&6; }
6464 if test $libc_cv_gnu89_inline = yes; then
6465 libc_cv_gnu89_inline=-fgnu89-inline
6466 else
6467 libc_cv_gnu89_inline=
6471 if test $elf != yes; then
6472 { echo "$as_me:$LINENO: checking for .init and .fini sections" >&5
6473 echo $ECHO_N "checking for .init and .fini sections... $ECHO_C" >&6; }
6474 if test "${libc_cv_have_initfini+set}" = set; then
6475 echo $ECHO_N "(cached) $ECHO_C" >&6
6476 else
6477 cat >conftest.$ac_ext <<_ACEOF
6478 /* confdefs.h. */
6479 _ACEOF
6480 cat confdefs.h >>conftest.$ac_ext
6481 cat >>conftest.$ac_ext <<_ACEOF
6482 /* end confdefs.h. */
6485 main ()
6487 asm (".section .init");
6488 asm (".section .fini");
6489 asm ("${libc_cv_dot_text}");
6491 return 0;
6493 _ACEOF
6494 rm -f conftest.$ac_objext
6495 if { (ac_try="$ac_compile"
6496 case "(($ac_try" in
6497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6498 *) ac_try_echo=$ac_try;;
6499 esac
6500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6501 (eval "$ac_compile") 2>conftest.er1
6502 ac_status=$?
6503 grep -v '^ *+' conftest.er1 >conftest.err
6504 rm -f conftest.er1
6505 cat conftest.err >&5
6506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6507 (exit $ac_status); } && {
6508 test -z "$ac_c_werror_flag" ||
6509 test ! -s conftest.err
6510 } && test -s conftest.$ac_objext; then
6511 libc_cv_have_initfini=yes
6512 else
6513 echo "$as_me: failed program was:" >&5
6514 sed 's/^/| /' conftest.$ac_ext >&5
6516 libc_cv_have_initfini=no
6519 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6521 { echo "$as_me:$LINENO: result: $libc_cv_have_initfini" >&5
6522 echo "${ECHO_T}$libc_cv_have_initfini" >&6; }
6523 if test $libc_cv_have_initfini = yes; then
6524 cat >>confdefs.h <<\_ACEOF
6525 #define HAVE_INITFINI 1
6526 _ACEOF
6531 if test $elf = yes; then
6532 { echo "$as_me:$LINENO: checking whether cc puts quotes around section names" >&5
6533 echo $ECHO_N "checking whether cc puts quotes around section names... $ECHO_C" >&6; }
6534 if test "${libc_cv_have_section_quotes+set}" = set; then
6535 echo $ECHO_N "(cached) $ECHO_C" >&6
6536 else
6537 cat > conftest.c <<EOF
6538 static const int foo
6539 __attribute__ ((section ("bar"))) = 1;
6541 if ${CC-cc} -S conftest.c -o conftest.s; then
6542 if grep '\.section.*"bar"' conftest.s >/dev/null; then
6543 libc_cv_have_section_quotes=yes
6544 else
6545 libc_cv_have_section_quotes=no
6547 else
6548 libc_cv_have_section_quotes=unknown
6550 rm -f conftest.cs
6553 { echo "$as_me:$LINENO: result: $libc_cv_have_section_quotes" >&5
6554 echo "${ECHO_T}$libc_cv_have_section_quotes" >&6; }
6555 if test $libc_cv_have_section_quotes = yes; then
6556 cat >>confdefs.h <<\_ACEOF
6557 #define HAVE_SECTION_QUOTES 1
6558 _ACEOF
6565 if test $elf = yes; then
6566 libc_cv_asm_underscores=no
6567 else
6568 if test $ac_cv_prog_cc_works = yes; then
6569 { echo "$as_me:$LINENO: checking for _ prefix on C symbol names" >&5
6570 echo $ECHO_N "checking for _ prefix on C symbol names... $ECHO_C" >&6; }
6571 if test "${libc_cv_asm_underscores+set}" = set; then
6572 echo $ECHO_N "(cached) $ECHO_C" >&6
6573 else
6574 cat >conftest.$ac_ext <<_ACEOF
6575 /* confdefs.h. */
6576 _ACEOF
6577 cat confdefs.h >>conftest.$ac_ext
6578 cat >>conftest.$ac_ext <<_ACEOF
6579 /* end confdefs.h. */
6580 asm ("_glibc_foobar:");
6582 main ()
6584 glibc_foobar ();
6586 return 0;
6588 _ACEOF
6589 rm -f conftest.$ac_objext conftest$ac_exeext
6590 if { (ac_try="$ac_link"
6591 case "(($ac_try" in
6592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6593 *) ac_try_echo=$ac_try;;
6594 esac
6595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6596 (eval "$ac_link") 2>conftest.er1
6597 ac_status=$?
6598 grep -v '^ *+' conftest.er1 >conftest.err
6599 rm -f conftest.er1
6600 cat conftest.err >&5
6601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6602 (exit $ac_status); } && {
6603 test -z "$ac_c_werror_flag" ||
6604 test ! -s conftest.err
6605 } && test -s conftest$ac_exeext &&
6606 $as_test_x conftest$ac_exeext; then
6607 libc_cv_asm_underscores=yes
6608 else
6609 echo "$as_me: failed program was:" >&5
6610 sed 's/^/| /' conftest.$ac_ext >&5
6612 libc_cv_asm_underscores=no
6615 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6616 conftest$ac_exeext conftest.$ac_ext
6618 { echo "$as_me:$LINENO: result: $libc_cv_asm_underscores" >&5
6619 echo "${ECHO_T}$libc_cv_asm_underscores" >&6; }
6620 else
6621 { echo "$as_me:$LINENO: checking for _ prefix on C symbol names" >&5
6622 echo $ECHO_N "checking for _ prefix on C symbol names... $ECHO_C" >&6; }
6623 if test "${libc_cv_asm_underscores+set}" = set; then
6624 echo $ECHO_N "(cached) $ECHO_C" >&6
6625 else
6626 cat > conftest.$ac_ext <<EOF
6627 #line $LINENO "configure"
6628 #include "confdefs.h"
6629 void underscore_test(void) {
6630 return; }
6632 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6633 (eval $ac_compile) 2>&5
6634 ac_status=$?
6635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6636 (exit $ac_status); }; then
6637 if grep _underscore_test conftest* >/dev/null; then
6638 rm -f conftest*
6639 libc_cv_asm_underscores=yes
6640 else
6641 rm -f conftest*
6642 libc_cv_asm_underscores=no
6644 else
6645 echo "configure: failed program was:" >&5
6646 cat conftest.$ac_ext >&5
6647 rm -f conftest*
6648 libc_cv_asm_underscores=no
6650 rm -f conftest*
6652 { echo "$as_me:$LINENO: result: $libc_cv_asm_underscores" >&5
6653 echo "${ECHO_T}$libc_cv_asm_underscores" >&6; }
6656 if test $libc_cv_asm_underscores = no; then
6657 cat >>confdefs.h <<\_ACEOF
6658 #define NO_UNDERSCORES 1
6659 _ACEOF
6663 if test $elf = yes; then
6664 libc_cv_weak_symbols=yes
6667 { echo "$as_me:$LINENO: checking for assembler .weak directive" >&5
6668 echo $ECHO_N "checking for assembler .weak directive... $ECHO_C" >&6; }
6669 if test "${libc_cv_asm_weak_directive+set}" = set; then
6670 echo $ECHO_N "(cached) $ECHO_C" >&6
6671 else
6672 cat > conftest.s <<EOF
6673 ${libc_cv_dot_text}
6674 ${libc_cv_asm_global_directive} foo
6675 foo:
6676 .weak foo
6677 .weak bar; bar = foo
6679 if { ac_try='${CC-cc} $ASFLAGS -c conftest.s 1>&5'
6680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6681 (eval $ac_try) 2>&5
6682 ac_status=$?
6683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6684 (exit $ac_status); }; }; then
6685 libc_cv_asm_weak_directive=yes
6686 else
6687 libc_cv_asm_weak_directive=no
6689 rm -f conftest*
6691 { echo "$as_me:$LINENO: result: $libc_cv_asm_weak_directive" >&5
6692 echo "${ECHO_T}$libc_cv_asm_weak_directive" >&6; }
6694 if test $libc_cv_asm_weak_directive = no; then
6695 { echo "$as_me:$LINENO: checking for assembler .weakext directive" >&5
6696 echo $ECHO_N "checking for assembler .weakext directive... $ECHO_C" >&6; }
6697 if test "${libc_cv_asm_weakext_directive+set}" = set; then
6698 echo $ECHO_N "(cached) $ECHO_C" >&6
6699 else
6700 cat > conftest.s <<EOF
6701 ${libc_cv_dot_text}
6702 ${libc_cv_asm_global_directive} foo
6703 foo:
6704 .weakext bar foo
6705 .weakext baz
6706 ${libc_cv_asm_global_directive} baz
6707 baz:
6709 if { ac_try='${CC-cc} $ASFLAGS -c conftest.s 1>&5'
6710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6711 (eval $ac_try) 2>&5
6712 ac_status=$?
6713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6714 (exit $ac_status); }; }; then
6715 libc_cv_asm_weakext_directive=yes
6716 else
6717 libc_cv_asm_weakext_directive=no
6719 rm -f conftest*
6721 { echo "$as_me:$LINENO: result: $libc_cv_asm_weakext_directive" >&5
6722 echo "${ECHO_T}$libc_cv_asm_weakext_directive" >&6; }
6724 fi # no .weak
6726 if test $libc_cv_asm_weak_directive = yes; then
6727 cat >>confdefs.h <<\_ACEOF
6728 #define HAVE_ASM_WEAK_DIRECTIVE 1
6729 _ACEOF
6731 elif test $libc_cv_asm_weakext_directive = yes; then
6732 cat >>confdefs.h <<\_ACEOF
6733 #define HAVE_ASM_WEAKEXT_DIRECTIVE 1
6734 _ACEOF
6738 { echo "$as_me:$LINENO: checking whether CFI directives are supported" >&5
6739 echo $ECHO_N "checking whether CFI directives are supported... $ECHO_C" >&6; }
6740 if test "${libc_cv_asm_cfi_directives+set}" = set; then
6741 echo $ECHO_N "(cached) $ECHO_C" >&6
6742 else
6743 case $machine in
6744 sparc/sparc64*) cfi_offset=2047;;
6745 *) cfi_offset=0;;
6746 esac
6747 cat > conftest.s <<EOF
6748 .text
6749 .type func,%function
6750 func:
6751 .cfi_startproc
6752 .cfi_remember_state
6753 .cfi_rel_offset 1, $cfi_offset
6754 .cfi_endproc
6756 if { ac_try='${CC-cc} $ASFLAGS -c conftest.s 1>&5'
6757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6758 (eval $ac_try) 2>&5
6759 ac_status=$?
6760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6761 (exit $ac_status); }; }; then
6762 libc_cv_asm_cfi_directives=yes
6763 else
6764 libc_cv_asm_cfi_directives=no
6766 rm -f conftest*
6768 { echo "$as_me:$LINENO: result: $libc_cv_asm_cfi_directives" >&5
6769 echo "${ECHO_T}$libc_cv_asm_cfi_directives" >&6; }
6770 if test $libc_cv_asm_cfi_directives = yes; then
6771 cat >>confdefs.h <<\_ACEOF
6772 #define HAVE_ASM_CFI_DIRECTIVES 1
6773 _ACEOF
6777 { echo "$as_me:$LINENO: checking for ld --no-whole-archive" >&5
6778 echo $ECHO_N "checking for ld --no-whole-archive... $ECHO_C" >&6; }
6779 if test "${libc_cv_ld_no_whole_archive+set}" = set; then
6780 echo $ECHO_N "(cached) $ECHO_C" >&6
6781 else
6782 cat > conftest.c <<\EOF
6783 _start () {}
6784 int __eh_pc;
6785 __throw () {}
6787 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
6788 -nostdlib -nostartfiles -Wl,--no-whole-archive
6789 -o conftest conftest.c 1>&5'
6790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6791 (eval $ac_try) 2>&5
6792 ac_status=$?
6793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6794 (exit $ac_status); }; }; then
6795 libc_cv_ld_no_whole_archive=yes
6796 else
6797 libc_cv_ld_no_whole_archive=no
6799 rm -f conftest*
6801 { echo "$as_me:$LINENO: result: $libc_cv_ld_no_whole_archive" >&5
6802 echo "${ECHO_T}$libc_cv_ld_no_whole_archive" >&6; }
6803 if test $libc_cv_ld_no_whole_archive = yes; then
6804 no_whole_archive=-Wl,--no-whole-archive
6807 { echo "$as_me:$LINENO: checking for gcc -fexceptions" >&5
6808 echo $ECHO_N "checking for gcc -fexceptions... $ECHO_C" >&6; }
6809 if test "${libc_cv_gcc_exceptions+set}" = set; then
6810 echo $ECHO_N "(cached) $ECHO_C" >&6
6811 else
6812 cat > conftest.c <<\EOF
6813 _start () {}
6814 int __eh_pc;
6815 __throw () {}
6817 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
6818 -nostdlib -nostartfiles -fexceptions
6819 -o conftest conftest.c 1>&5'
6820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6821 (eval $ac_try) 2>&5
6822 ac_status=$?
6823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6824 (exit $ac_status); }; }; then
6825 libc_cv_gcc_exceptions=yes
6826 else
6827 libc_cv_gcc_exceptions=no
6829 rm -f conftest*
6831 { echo "$as_me:$LINENO: result: $libc_cv_gcc_exceptions" >&5
6832 echo "${ECHO_T}$libc_cv_gcc_exceptions" >&6; }
6833 if test $libc_cv_gcc_exceptions = yes; then
6834 exceptions=-fexceptions
6837 if test "$host_cpu" = powerpc ; then
6838 # Check for a bug present in at least versions 2.8.x of GCC
6839 # and versions 1.0.x of EGCS.
6840 { echo "$as_me:$LINENO: checking whether clobbering cr0 causes problems" >&5
6841 echo $ECHO_N "checking whether clobbering cr0 causes problems... $ECHO_C" >&6; }
6842 if test "${libc_cv_c_asmcr0_bug+set}" = set; then
6843 echo $ECHO_N "(cached) $ECHO_C" >&6
6844 else
6845 cat >conftest.$ac_ext <<_ACEOF
6846 /* confdefs.h. */
6847 _ACEOF
6848 cat confdefs.h >>conftest.$ac_ext
6849 cat >>conftest.$ac_ext <<_ACEOF
6850 /* end confdefs.h. */
6851 int tester(int x) { asm ("" : : : "cc"); return x & 123; }
6853 main ()
6857 return 0;
6859 _ACEOF
6860 rm -f conftest.$ac_objext
6861 if { (ac_try="$ac_compile"
6862 case "(($ac_try" in
6863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6864 *) ac_try_echo=$ac_try;;
6865 esac
6866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6867 (eval "$ac_compile") 2>conftest.er1
6868 ac_status=$?
6869 grep -v '^ *+' conftest.er1 >conftest.err
6870 rm -f conftest.er1
6871 cat conftest.err >&5
6872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6873 (exit $ac_status); } && {
6874 test -z "$ac_c_werror_flag" ||
6875 test ! -s conftest.err
6876 } && test -s conftest.$ac_objext; then
6877 libc_cv_c_asmcr0_bug='no'
6878 else
6879 echo "$as_me: failed program was:" >&5
6880 sed 's/^/| /' conftest.$ac_ext >&5
6882 libc_cv_c_asmcr0_bug='yes'
6885 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6887 { echo "$as_me:$LINENO: result: $libc_cv_c_asmcr0_bug" >&5
6888 echo "${ECHO_T}$libc_cv_c_asmcr0_bug" >&6; }
6889 if test "$libc_cv_c_asmcr0_bug" != 'no'; then
6890 cat >>confdefs.h <<\_ACEOF
6891 #define BROKEN_PPC_ASM_CR0 1
6892 _ACEOF
6897 { echo "$as_me:$LINENO: checking for __builtin_expect" >&5
6898 echo $ECHO_N "checking for __builtin_expect... $ECHO_C" >&6; }
6899 if test "${libc_cv_gcc_builtin_expect+set}" = set; then
6900 echo $ECHO_N "(cached) $ECHO_C" >&6
6901 else
6902 cat > conftest.c <<EOF
6903 #line $LINENO "configure"
6904 int foo (int a)
6906 a = __builtin_expect (a, 10);
6907 return a == 10 ? 0 : 1;
6910 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS -nostdlib -nostartfiles
6911 -o conftest conftest.c -lgcc >&5'
6912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6913 (eval $ac_try) 2>&5
6914 ac_status=$?
6915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6916 (exit $ac_status); }; }; then
6917 libc_cv_gcc_builtin_expect=yes
6918 else
6919 libc_cv_gcc_builtin_expect=no
6921 rm -f conftest*
6923 { echo "$as_me:$LINENO: result: $libc_cv_gcc_builtin_expect" >&5
6924 echo "${ECHO_T}$libc_cv_gcc_builtin_expect" >&6; }
6925 if test "$libc_cv_gcc_builtin_expect" = yes; then
6926 cat >>confdefs.h <<\_ACEOF
6927 #define HAVE_BUILTIN_EXPECT 1
6928 _ACEOF
6932 { echo "$as_me:$LINENO: checking for __builtin_memset" >&5
6933 echo $ECHO_N "checking for __builtin_memset... $ECHO_C" >&6; }
6934 if test "${libc_cv_gcc_builtin_memset+set}" = set; then
6935 echo $ECHO_N "(cached) $ECHO_C" >&6
6936 else
6937 cat > conftest.c <<\EOF
6938 void zero (void *x)
6940 __builtin_memset (x, 0, 1000);
6943 if { ac_try='${CC-cc} -O3 -S conftest.c -o - | fgrep "memset" > /dev/null'
6944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6945 (eval $ac_try) 2>&5
6946 ac_status=$?
6947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6948 (exit $ac_status); }; };
6949 then
6950 libc_cv_gcc_builtin_memset=no
6951 else
6952 libc_cv_gcc_builtin_memset=yes
6954 rm -f conftest*
6956 { echo "$as_me:$LINENO: result: $libc_cv_gcc_builtin_memset" >&5
6957 echo "${ECHO_T}$libc_cv_gcc_builtin_memset" >&6; }
6958 if test "$libc_cv_gcc_builtin_memset" = yes ; then
6959 cat >>confdefs.h <<\_ACEOF
6960 #define HAVE_BUILTIN_MEMSET 1
6961 _ACEOF
6965 { echo "$as_me:$LINENO: checking for redirection of built-in functions" >&5
6966 echo $ECHO_N "checking for redirection of built-in functions... $ECHO_C" >&6; }
6967 if test "${libc_cv_gcc_builtin_redirection+set}" = set; then
6968 echo $ECHO_N "(cached) $ECHO_C" >&6
6969 else
6970 cat > conftest.c <<\EOF
6971 extern char *strstr (const char *, const char *) __asm ("my_strstr");
6972 char *foo (const char *a, const char *b)
6974 return __builtin_strstr (a, b);
6977 if { ac_try='${CC-cc} -O3 -S conftest.c -o - | fgrep "my_strstr" > /dev/null'
6978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6979 (eval $ac_try) 2>&5
6980 ac_status=$?
6981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6982 (exit $ac_status); }; };
6983 then
6984 libc_cv_gcc_builtin_redirection=yes
6985 else
6986 libc_cv_gcc_builtin_redirection=no
6988 rm -f conftest*
6990 { echo "$as_me:$LINENO: result: $libc_cv_gcc_builtin_redirection" >&5
6991 echo "${ECHO_T}$libc_cv_gcc_builtin_redirection" >&6; }
6992 if test "$libc_cv_gcc_builtin_redirection" = yes ; then
6993 cat >>confdefs.h <<\_ACEOF
6994 #define HAVE_BUILTIN_REDIRECTION 1
6995 _ACEOF
6999 if test "x$use__thread" != xno; then
7000 { echo "$as_me:$LINENO: checking for __thread" >&5
7001 echo $ECHO_N "checking for __thread... $ECHO_C" >&6; }
7002 if test "${libc_cv_gcc___thread+set}" = set; then
7003 echo $ECHO_N "(cached) $ECHO_C" >&6
7004 else
7005 cat > conftest.c <<\EOF
7006 __thread int a = 42;
7008 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -c conftest.c >&5'
7009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7010 (eval $ac_try) 2>&5
7011 ac_status=$?
7012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7013 (exit $ac_status); }; }; then
7014 libc_cv_gcc___thread=yes
7015 else
7016 libc_cv_gcc___thread=no
7018 rm -f conftest*
7020 { echo "$as_me:$LINENO: result: $libc_cv_gcc___thread" >&5
7021 echo "${ECHO_T}$libc_cv_gcc___thread" >&6; }
7022 if test "$libc_cv_gcc___thread" = yes; then
7023 cat >>confdefs.h <<\_ACEOF
7024 #define HAVE___THREAD 1
7025 _ACEOF
7028 else
7029 libc_cv_gcc___thread=no
7032 if test "$libc_cv_gcc___thread" = yes; then
7033 { echo "$as_me:$LINENO: checking for tls_model attribute" >&5
7034 echo $ECHO_N "checking for tls_model attribute... $ECHO_C" >&6; }
7035 if test "${libc_cv_gcc_tls_model_attr+set}" = set; then
7036 echo $ECHO_N "(cached) $ECHO_C" >&6
7037 else
7038 cat > conftest.c <<\EOF
7039 extern __thread int a __attribute__((tls_model ("initial-exec")));
7041 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -S -Werror conftest.c >&5'
7042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7043 (eval $ac_try) 2>&5
7044 ac_status=$?
7045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7046 (exit $ac_status); }; }; then
7047 libc_cv_gcc_tls_model_attr=yes
7048 else
7049 libc_cv_gcc_tls_model_attr=no
7051 rm -f conftest*
7053 { echo "$as_me:$LINENO: result: $libc_cv_gcc_tls_model_attr" >&5
7054 echo "${ECHO_T}$libc_cv_gcc_tls_model_attr" >&6; }
7055 if test "$libc_cv_gcc_tls_model_attr" = yes; then
7056 cat >>confdefs.h <<\_ACEOF
7057 #define HAVE_TLS_MODEL_ATTRIBUTE 1
7058 _ACEOF
7063 if test -n "$submachine"; then
7064 { echo "$as_me:$LINENO: checking for compiler option for CPU variant" >&5
7065 echo $ECHO_N "checking for compiler option for CPU variant... $ECHO_C" >&6; }
7066 if test "${libc_cv_cc_submachine+set}" = set; then
7067 echo $ECHO_N "(cached) $ECHO_C" >&6
7068 else
7069 libc_cv_cc_submachine=no
7070 for opt in "-march=$submachine" "-mcpu=$submachine"; do
7071 if { ac_try='${CC-cc} $opt -xc /dev/null -S -o /dev/null'
7072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7073 (eval $ac_try) 2>&5
7074 ac_status=$?
7075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7076 (exit $ac_status); }; }; then
7077 libc_cv_cc_submachine="$opt"
7078 break
7080 done
7082 { echo "$as_me:$LINENO: result: $libc_cv_cc_submachine" >&5
7083 echo "${ECHO_T}$libc_cv_cc_submachine" >&6; }
7084 if test "x$libc_cv_cc_submachine" = xno; then
7085 { { echo "$as_me:$LINENO: error: ${CC-cc} does not support $submachine" >&5
7086 echo "$as_me: error: ${CC-cc} does not support $submachine" >&2;}
7087 { (exit 1); exit 1; }; }
7092 { echo "$as_me:$LINENO: checking for libgd" >&5
7093 echo $ECHO_N "checking for libgd... $ECHO_C" >&6; }
7094 if test "$with_gd" != "no"; then
7095 old_CFLAGS="$CFLAGS"
7096 CFLAGS="$CFLAGS $libgd_include"
7097 old_LDFLAGS="$LDFLAGS"
7098 LDFLAGS="$LDFLAGS $libgd_ldflags"
7099 old_LIBS="$LIBS"
7100 LIBS="$LIBS -lgd -lpng -lz -lm"
7101 cat >conftest.$ac_ext <<_ACEOF
7102 /* confdefs.h. */
7103 _ACEOF
7104 cat confdefs.h >>conftest.$ac_ext
7105 cat >>conftest.$ac_ext <<_ACEOF
7106 /* end confdefs.h. */
7107 #include <gd.h>
7109 main ()
7111 gdImagePng (0, 0)
7113 return 0;
7115 _ACEOF
7116 rm -f conftest.$ac_objext conftest$ac_exeext
7117 if { (ac_try="$ac_link"
7118 case "(($ac_try" in
7119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7120 *) ac_try_echo=$ac_try;;
7121 esac
7122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7123 (eval "$ac_link") 2>conftest.er1
7124 ac_status=$?
7125 grep -v '^ *+' conftest.er1 >conftest.err
7126 rm -f conftest.er1
7127 cat conftest.err >&5
7128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7129 (exit $ac_status); } && {
7130 test -z "$ac_c_werror_flag" ||
7131 test ! -s conftest.err
7132 } && test -s conftest$ac_exeext &&
7133 $as_test_x conftest$ac_exeext; then
7134 LIBGD=yes
7135 else
7136 echo "$as_me: failed program was:" >&5
7137 sed 's/^/| /' conftest.$ac_ext >&5
7139 LIBGD=no
7142 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7143 conftest$ac_exeext conftest.$ac_ext
7144 CFLAGS="$old_CFLAGS"
7145 LDFLAGS="$old_LDFLAGS"
7146 LIBS="$old_LIBS"
7147 else
7148 LIBGD=no
7150 { echo "$as_me:$LINENO: result: $LIBGD" >&5
7151 echo "${ECHO_T}$LIBGD" >&6; }
7154 # SELinux detection
7155 if test x$with_selinux = xno ; then
7156 have_selinux=no;
7157 else
7158 # See if we have the SELinux library
7159 { echo "$as_me:$LINENO: checking for is_selinux_enabled in -lselinux" >&5
7160 echo $ECHO_N "checking for is_selinux_enabled in -lselinux... $ECHO_C" >&6; }
7161 if test "${ac_cv_lib_selinux_is_selinux_enabled+set}" = set; then
7162 echo $ECHO_N "(cached) $ECHO_C" >&6
7163 else
7164 ac_check_lib_save_LIBS=$LIBS
7165 LIBS="-lselinux $LIBS"
7166 cat >conftest.$ac_ext <<_ACEOF
7167 /* confdefs.h. */
7168 _ACEOF
7169 cat confdefs.h >>conftest.$ac_ext
7170 cat >>conftest.$ac_ext <<_ACEOF
7171 /* end confdefs.h. */
7173 /* Override any GCC internal prototype to avoid an error.
7174 Use char because int might match the return type of a GCC
7175 builtin and then its argument prototype would still apply. */
7176 #ifdef __cplusplus
7177 extern "C"
7178 #endif
7179 char is_selinux_enabled ();
7181 main ()
7183 return is_selinux_enabled ();
7185 return 0;
7187 _ACEOF
7188 rm -f conftest.$ac_objext conftest$ac_exeext
7189 if { (ac_try="$ac_link"
7190 case "(($ac_try" in
7191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7192 *) ac_try_echo=$ac_try;;
7193 esac
7194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7195 (eval "$ac_link") 2>conftest.er1
7196 ac_status=$?
7197 grep -v '^ *+' conftest.er1 >conftest.err
7198 rm -f conftest.er1
7199 cat conftest.err >&5
7200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7201 (exit $ac_status); } && {
7202 test -z "$ac_c_werror_flag" ||
7203 test ! -s conftest.err
7204 } && test -s conftest$ac_exeext &&
7205 $as_test_x conftest$ac_exeext; then
7206 ac_cv_lib_selinux_is_selinux_enabled=yes
7207 else
7208 echo "$as_me: failed program was:" >&5
7209 sed 's/^/| /' conftest.$ac_ext >&5
7211 ac_cv_lib_selinux_is_selinux_enabled=no
7214 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7215 conftest$ac_exeext conftest.$ac_ext
7216 LIBS=$ac_check_lib_save_LIBS
7218 { echo "$as_me:$LINENO: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5
7219 echo "${ECHO_T}$ac_cv_lib_selinux_is_selinux_enabled" >&6; }
7220 if test $ac_cv_lib_selinux_is_selinux_enabled = yes; then
7221 have_selinux=yes
7222 else
7223 have_selinux=no
7226 # See if we have the SELinux header with the NSCD permissions in it.
7227 if test x$have_selinux = xyes ; then
7228 { echo "$as_me:$LINENO: checking for NSCD Flask permissions in selinux/av_permissions.h" >&5
7229 echo $ECHO_N "checking for NSCD Flask permissions in selinux/av_permissions.h... $ECHO_C" >&6; }
7230 cat >conftest.$ac_ext <<_ACEOF
7231 /* confdefs.h. */
7232 _ACEOF
7233 cat confdefs.h >>conftest.$ac_ext
7234 cat >>conftest.$ac_ext <<_ACEOF
7235 /* end confdefs.h. */
7236 #include <selinux/av_permissions.h>
7238 main ()
7240 #ifdef NSCD__SHMEMHOST
7241 return 0;
7242 #else
7243 #error NSCD__SHMEMHOST not defined
7244 #endif
7246 return 0;
7248 _ACEOF
7249 rm -f conftest.$ac_objext
7250 if { (ac_try="$ac_compile"
7251 case "(($ac_try" in
7252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7253 *) ac_try_echo=$ac_try;;
7254 esac
7255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7256 (eval "$ac_compile") 2>conftest.er1
7257 ac_status=$?
7258 grep -v '^ *+' conftest.er1 >conftest.err
7259 rm -f conftest.er1
7260 cat conftest.err >&5
7261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7262 (exit $ac_status); } && {
7263 test -z "$ac_c_werror_flag" ||
7264 test ! -s conftest.err
7265 } && test -s conftest.$ac_objext; then
7266 have_selinux=yes
7267 else
7268 echo "$as_me: failed program was:" >&5
7269 sed 's/^/| /' conftest.$ac_ext >&5
7271 have_selinux=no
7274 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7275 { echo "$as_me:$LINENO: result: $have_selinux" >&5
7276 echo "${ECHO_T}$have_selinux" >&6; }
7279 if test x$with_selinux = xyes ; then
7280 if test x$have_selinux = xno ; then
7281 { { echo "$as_me:$LINENO: error: SELinux explicitly required, but sufficiently recent SELinux library not found" >&5
7282 echo "$as_me: error: SELinux explicitly required, but sufficiently recent SELinux library not found" >&2;}
7283 { (exit 1); exit 1; }; }
7287 # Check if we're building with SELinux support.
7288 if test "x$have_selinux" = xyes; then
7290 cat >>confdefs.h <<\_ACEOF
7291 #define HAVE_SELINUX 1
7292 _ACEOF
7295 # See if we have the libaudit library
7296 { echo "$as_me:$LINENO: checking for audit_log_user_avc_message in -laudit" >&5
7297 echo $ECHO_N "checking for audit_log_user_avc_message in -laudit... $ECHO_C" >&6; }
7298 if test "${ac_cv_lib_audit_audit_log_user_avc_message+set}" = set; then
7299 echo $ECHO_N "(cached) $ECHO_C" >&6
7300 else
7301 ac_check_lib_save_LIBS=$LIBS
7302 LIBS="-laudit $LIBS"
7303 cat >conftest.$ac_ext <<_ACEOF
7304 /* confdefs.h. */
7305 _ACEOF
7306 cat confdefs.h >>conftest.$ac_ext
7307 cat >>conftest.$ac_ext <<_ACEOF
7308 /* end confdefs.h. */
7310 /* Override any GCC internal prototype to avoid an error.
7311 Use char because int might match the return type of a GCC
7312 builtin and then its argument prototype would still apply. */
7313 #ifdef __cplusplus
7314 extern "C"
7315 #endif
7316 char audit_log_user_avc_message ();
7318 main ()
7320 return audit_log_user_avc_message ();
7322 return 0;
7324 _ACEOF
7325 rm -f conftest.$ac_objext conftest$ac_exeext
7326 if { (ac_try="$ac_link"
7327 case "(($ac_try" in
7328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7329 *) ac_try_echo=$ac_try;;
7330 esac
7331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7332 (eval "$ac_link") 2>conftest.er1
7333 ac_status=$?
7334 grep -v '^ *+' conftest.er1 >conftest.err
7335 rm -f conftest.er1
7336 cat conftest.err >&5
7337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7338 (exit $ac_status); } && {
7339 test -z "$ac_c_werror_flag" ||
7340 test ! -s conftest.err
7341 } && test -s conftest$ac_exeext &&
7342 $as_test_x conftest$ac_exeext; then
7343 ac_cv_lib_audit_audit_log_user_avc_message=yes
7344 else
7345 echo "$as_me: failed program was:" >&5
7346 sed 's/^/| /' conftest.$ac_ext >&5
7348 ac_cv_lib_audit_audit_log_user_avc_message=no
7351 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7352 conftest$ac_exeext conftest.$ac_ext
7353 LIBS=$ac_check_lib_save_LIBS
7355 { echo "$as_me:$LINENO: result: $ac_cv_lib_audit_audit_log_user_avc_message" >&5
7356 echo "${ECHO_T}$ac_cv_lib_audit_audit_log_user_avc_message" >&6; }
7357 if test $ac_cv_lib_audit_audit_log_user_avc_message = yes; then
7358 have_libaudit=yes
7359 else
7360 have_libaudit=no
7363 if test "x$have_libaudit" = xyes; then
7365 cat >>confdefs.h <<\_ACEOF
7366 #define HAVE_LIBAUDIT 1
7367 _ACEOF
7372 # See if we have the libcap library
7373 { echo "$as_me:$LINENO: checking for cap_init in -lcap" >&5
7374 echo $ECHO_N "checking for cap_init in -lcap... $ECHO_C" >&6; }
7375 if test "${ac_cv_lib_cap_cap_init+set}" = set; then
7376 echo $ECHO_N "(cached) $ECHO_C" >&6
7377 else
7378 ac_check_lib_save_LIBS=$LIBS
7379 LIBS="-lcap $LIBS"
7380 cat >conftest.$ac_ext <<_ACEOF
7381 /* confdefs.h. */
7382 _ACEOF
7383 cat confdefs.h >>conftest.$ac_ext
7384 cat >>conftest.$ac_ext <<_ACEOF
7385 /* end confdefs.h. */
7387 /* Override any GCC internal prototype to avoid an error.
7388 Use char because int might match the return type of a GCC
7389 builtin and then its argument prototype would still apply. */
7390 #ifdef __cplusplus
7391 extern "C"
7392 #endif
7393 char cap_init ();
7395 main ()
7397 return cap_init ();
7399 return 0;
7401 _ACEOF
7402 rm -f conftest.$ac_objext conftest$ac_exeext
7403 if { (ac_try="$ac_link"
7404 case "(($ac_try" in
7405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7406 *) ac_try_echo=$ac_try;;
7407 esac
7408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7409 (eval "$ac_link") 2>conftest.er1
7410 ac_status=$?
7411 grep -v '^ *+' conftest.er1 >conftest.err
7412 rm -f conftest.er1
7413 cat conftest.err >&5
7414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7415 (exit $ac_status); } && {
7416 test -z "$ac_c_werror_flag" ||
7417 test ! -s conftest.err
7418 } && test -s conftest$ac_exeext &&
7419 $as_test_x conftest$ac_exeext; then
7420 ac_cv_lib_cap_cap_init=yes
7421 else
7422 echo "$as_me: failed program was:" >&5
7423 sed 's/^/| /' conftest.$ac_ext >&5
7425 ac_cv_lib_cap_cap_init=no
7428 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7429 conftest$ac_exeext conftest.$ac_ext
7430 LIBS=$ac_check_lib_save_LIBS
7432 { echo "$as_me:$LINENO: result: $ac_cv_lib_cap_cap_init" >&5
7433 echo "${ECHO_T}$ac_cv_lib_cap_cap_init" >&6; }
7434 if test $ac_cv_lib_cap_cap_init = yes; then
7435 have_libcap=yes
7436 else
7437 have_libcap=no
7440 if test "x$have_libcap" = xyes; then
7442 cat >>confdefs.h <<\_ACEOF
7443 #define HAVE_LIBCAP 1
7444 _ACEOF
7451 #AC_CHECK_SIZEOF(long double, 0)
7452 #sizeof_long_double=$ac_cv_sizeof_long_double
7455 ### End of automated tests.
7456 ### Now run sysdeps configure fragments.
7458 # They also can set these variables.
7459 use_ldconfig=no
7460 ldd_rewrite_script=no
7461 libc_cv_sysconfdir=$sysconfdir
7462 libc_cv_gcc_unwind_find_fde=no
7463 libc_cv_idn=no
7465 # Iterate over all the sysdep directories we will use, running their
7466 # configure fragments, and looking for a uname implementation.
7467 uname=
7468 for dir in $sysnames; do
7469 case $dir in
7470 /*) dest=$dir ;;
7471 *) dest=$srcdir/$dir ;;
7472 esac
7473 if test -r $dest/configure; then
7474 { echo "$as_me:$LINENO: result: running configure fragment for $dir" >&5
7475 echo "${ECHO_T}running configure fragment for $dir" >&6; }
7476 . $dest/configure
7479 if test -z "$uname"; then
7480 if test -r $dest/uname.c ||
7481 test -r $dest/uname.S ||
7482 { test -r $dest/syscalls.list &&
7483 grep '^uname[ ]' $dest/syscalls.list >/dev/null; }; then
7484 uname=$dir
7487 done
7489 if test x$libc_cv_gcc_unwind_find_fde = xyes; then
7490 cat >>confdefs.h <<\_ACEOF
7491 #define EXPORT_UNWIND_FIND_FDE 1
7492 _ACEOF
7497 # If we will use the generic uname implementation, we must figure out what
7498 # it will say by examining the system, and write the results in config-name.h.
7499 if test "$uname" = "sysdeps/generic"; then
7501 uname_sysname=`echo $config_os | sed 's/[0-9.]*$//'`
7502 if test $uname_sysname != $config_os; then
7503 config_release=`echo $config_os | sed s/$uname_sysname//`
7506 { echo "$as_me:$LINENO: checking OS release for uname" >&5
7507 echo $ECHO_N "checking OS release for uname... $ECHO_C" >&6; }
7508 if test "${libc_cv_uname_release+set}" = set; then
7509 echo $ECHO_N "(cached) $ECHO_C" >&6
7510 else
7511 if test -r /vmunix; then
7512 kernel_id=`strings /vmunix | grep UNIX`
7513 elif test -r /dynix; then
7514 kernel_id=`strings /dynix | grep DYNIX`
7515 else
7516 kernel_id=
7519 kernel_release=`echo "$kernel_id" | sed 's/^[^0-9.]*\([0-9.]*\).*$/\1/'`
7520 if test x`echo "$config_release" | sed "s/^$kernel_release//"` \
7521 != x$config_release; then
7522 # The configuration release is a substring of the kernel release.
7523 libc_cv_uname_release=$kernel_release
7524 elif test x$config_release != x; then
7525 libc_cv_uname_release=$config_release
7526 elif test x$kernel_release != x; then
7527 libc_cv_uname_release=$kernel_release
7528 else
7529 libc_cv_uname_release=unknown
7532 { echo "$as_me:$LINENO: result: $libc_cv_uname_release" >&5
7533 echo "${ECHO_T}$libc_cv_uname_release" >&6; }
7534 uname_release="$libc_cv_uname_release"
7536 { echo "$as_me:$LINENO: checking OS version for uname" >&5
7537 echo $ECHO_N "checking OS version for uname... $ECHO_C" >&6; }
7538 if test "${libc_cv_uname_version+set}" = set; then
7539 echo $ECHO_N "(cached) $ECHO_C" >&6
7540 else
7541 if test -r /vmunix; then
7542 kernel_id=`strings /vmunix | grep UNIX`
7543 elif test -r /dynix; then
7544 kernel_id=`strings /dynix | grep DYNIX`
7545 else
7546 kernel_id=
7549 kernel_version=`echo "$kernel_id" | sed 's/^[^#]*#\([0-9]*\).*$/\1/'`
7550 if test -n "$kernel_version"; then
7551 libc_cv_uname_version="$kernel_version"
7552 else
7553 libc_cv_uname_version=unknown
7556 { echo "$as_me:$LINENO: result: $libc_cv_uname_version" >&5
7557 echo "${ECHO_T}$libc_cv_uname_version" >&6; }
7558 uname_version="$libc_cv_uname_version"
7560 config_uname=config-name.h:config-name.in
7561 else
7562 # For non-generic uname, we don't need to create config-name.h at all.
7563 config_uname=
7566 cat >>confdefs.h <<\_ACEOF
7567 #define USE_IN_LIBIO 1
7568 _ACEOF
7571 # Test for old glibc 2.0.x headers so that they can be removed properly
7572 # Search only in includedir.
7573 { echo "$as_me:$LINENO: checking for old glibc 2.0.x headers" >&5
7574 echo $ECHO_N "checking for old glibc 2.0.x headers... $ECHO_C" >&6; }
7575 if eval test -f "${includedir}/elfclass.h" -a -f "${includedir}/fcntlbits.h"
7576 then
7577 old_glibc_headers=yes
7578 else
7579 old_glibc_headers=no
7581 { echo "$as_me:$LINENO: result: $old_glibc_headers" >&5
7582 echo "${ECHO_T}$old_glibc_headers" >&6; }
7583 if test ${old_glibc_headers} = yes; then
7584 { echo "$as_me:$LINENO: WARNING: *** During \"make install\" old headers from glibc 2.0.x will" >&5
7585 echo "$as_me: WARNING: *** During \"make install\" old headers from glibc 2.0.x will" >&2;}
7586 { echo "$as_me:$LINENO: WARNING: *** be removed." >&5
7587 echo "$as_me: WARNING: *** be removed." >&2;}
7603 if test $elf = yes; then
7604 cat >>confdefs.h <<\_ACEOF
7605 #define HAVE_ELF 1
7606 _ACEOF
7609 if test $xcoff = yes; then
7610 cat >>confdefs.h <<\_ACEOF
7611 #define HAVE_XCOFF 1
7612 _ACEOF
7618 if test $shared = default; then
7619 shared=$elf
7622 { echo "$as_me:$LINENO: checking whether -fPIC is default" >&5
7623 echo $ECHO_N "checking whether -fPIC is default... $ECHO_C" >&6; }
7624 if test "${pic_default+set}" = set; then
7625 echo $ECHO_N "(cached) $ECHO_C" >&6
7626 else
7627 pic_default=yes
7628 cat > conftest.c <<EOF
7629 #if defined __PIC__ || defined __pic__ || defined PIC || defined pic
7630 # error PIC is default.
7631 #endif
7633 if eval "${CC-cc} -S conftest.c 2>&5 1>&5"; then
7634 pic_default=no
7636 rm -f conftest.*
7638 { echo "$as_me:$LINENO: result: $pic_default" >&5
7639 echo "${ECHO_T}$pic_default" >&6; }
7652 if test "`(cd $srcdir; pwd)`" = "`pwd`"; then
7653 config_makefile=
7654 else
7655 config_makefile=Makefile
7658 VERSION=`sed -n -e 's/^#define VERSION "\([^"]*\)"/\1/p' < $srcdir/version.h`
7659 RELEASE=`sed -n -e 's/^#define RELEASE "\([^"]*\)"/\1/p' < $srcdir/version.h`
7663 ac_config_files="$ac_config_files config.make ${config_makefile} ${config_uname}"
7665 ac_config_commands="$ac_config_commands default"
7667 cat >confcache <<\_ACEOF
7668 # This file is a shell script that caches the results of configure
7669 # tests run on this system so they can be shared between configure
7670 # scripts and configure runs, see configure's option --config-cache.
7671 # It is not useful on other systems. If it contains results you don't
7672 # want to keep, you may remove or edit it.
7674 # config.status only pays attention to the cache file if you give it
7675 # the --recheck option to rerun configure.
7677 # `ac_cv_env_foo' variables (set or unset) will be overridden when
7678 # loading this file, other *unset* `ac_cv_foo' will be assigned the
7679 # following values.
7681 _ACEOF
7683 # The following way of writing the cache mishandles newlines in values,
7684 # but we know of no workaround that is simple, portable, and efficient.
7685 # So, we kill variables containing newlines.
7686 # Ultrix sh set writes to stderr and can't be redirected directly,
7687 # and sets the high bit in the cache file unless we assign to the vars.
7689 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
7690 eval ac_val=\$$ac_var
7691 case $ac_val in #(
7692 *${as_nl}*)
7693 case $ac_var in #(
7694 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
7695 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
7696 esac
7697 case $ac_var in #(
7698 _ | IFS | as_nl) ;; #(
7699 *) $as_unset $ac_var ;;
7700 esac ;;
7701 esac
7702 done
7704 (set) 2>&1 |
7705 case $as_nl`(ac_space=' '; set) 2>&1` in #(
7706 *${as_nl}ac_space=\ *)
7707 # `set' does not quote correctly, so add quotes (double-quote
7708 # substitution turns \\\\ into \\, and sed turns \\ into \).
7709 sed -n \
7710 "s/'/'\\\\''/g;
7711 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7712 ;; #(
7714 # `set' quotes correctly as required by POSIX, so do not add quotes.
7715 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
7717 esac |
7718 sort
7720 sed '
7721 /^ac_cv_env_/b end
7722 t clear
7723 :clear
7724 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
7725 t end
7726 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7727 :end' >>confcache
7728 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
7729 if test -w "$cache_file"; then
7730 test "x$cache_file" != "x/dev/null" &&
7731 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
7732 echo "$as_me: updating cache $cache_file" >&6;}
7733 cat confcache >$cache_file
7734 else
7735 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
7736 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
7739 rm -f confcache
7741 test "x$prefix" = xNONE && prefix=$ac_default_prefix
7742 # Let make expand exec_prefix.
7743 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7745 DEFS=-DHAVE_CONFIG_H
7747 ac_libobjs=
7748 ac_ltlibobjs=
7749 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
7750 # 1. Remove the extension, and $U if already installed.
7751 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
7752 ac_i=`echo "$ac_i" | sed "$ac_script"`
7753 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
7754 # will be set to the directory where LIBOBJS objects are built.
7755 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
7756 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
7757 done
7758 LIBOBJS=$ac_libobjs
7760 LTLIBOBJS=$ac_ltlibobjs
7764 : ${CONFIG_STATUS=./config.status}
7765 ac_clean_files_save=$ac_clean_files
7766 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
7767 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
7768 echo "$as_me: creating $CONFIG_STATUS" >&6;}
7769 cat >$CONFIG_STATUS <<_ACEOF
7770 #! $SHELL
7771 # Generated by $as_me.
7772 # Run this file to recreate the current configuration.
7773 # Compiler output produced by configure, useful for debugging
7774 # configure, is in config.log if it exists.
7776 debug=false
7777 ac_cs_recheck=false
7778 ac_cs_silent=false
7779 SHELL=\${CONFIG_SHELL-$SHELL}
7780 _ACEOF
7782 cat >>$CONFIG_STATUS <<\_ACEOF
7783 ## --------------------- ##
7784 ## M4sh Initialization. ##
7785 ## --------------------- ##
7787 # Be more Bourne compatible
7788 DUALCASE=1; export DUALCASE # for MKS sh
7789 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
7790 emulate sh
7791 NULLCMD=:
7792 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
7793 # is contrary to our usage. Disable this feature.
7794 alias -g '${1+"$@"}'='"$@"'
7795 setopt NO_GLOB_SUBST
7796 else
7797 case `(set -o) 2>/dev/null` in
7798 *posix*) set -o posix ;;
7799 esac
7806 # PATH needs CR
7807 # Avoid depending upon Character Ranges.
7808 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
7809 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
7810 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
7811 as_cr_digits='0123456789'
7812 as_cr_alnum=$as_cr_Letters$as_cr_digits
7814 # The user is always right.
7815 if test "${PATH_SEPARATOR+set}" != set; then
7816 echo "#! /bin/sh" >conf$$.sh
7817 echo "exit 0" >>conf$$.sh
7818 chmod +x conf$$.sh
7819 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7820 PATH_SEPARATOR=';'
7821 else
7822 PATH_SEPARATOR=:
7824 rm -f conf$$.sh
7827 # Support unset when possible.
7828 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7829 as_unset=unset
7830 else
7831 as_unset=false
7835 # IFS
7836 # We need space, tab and new line, in precisely that order. Quoting is
7837 # there to prevent editors from complaining about space-tab.
7838 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
7839 # splitting by setting IFS to empty value.)
7840 as_nl='
7842 IFS=" "" $as_nl"
7844 # Find who we are. Look in the path if we contain no directory separator.
7845 case $0 in
7846 *[\\/]* ) as_myself=$0 ;;
7847 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7848 for as_dir in $PATH
7850 IFS=$as_save_IFS
7851 test -z "$as_dir" && as_dir=.
7852 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
7853 done
7854 IFS=$as_save_IFS
7857 esac
7858 # We did not find ourselves, most probably we were run as `sh COMMAND'
7859 # in which case we are not to be found in the path.
7860 if test "x$as_myself" = x; then
7861 as_myself=$0
7863 if test ! -f "$as_myself"; then
7864 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
7865 { (exit 1); exit 1; }
7868 # Work around bugs in pre-3.0 UWIN ksh.
7869 for as_var in ENV MAIL MAILPATH
7870 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
7871 done
7872 PS1='$ '
7873 PS2='> '
7874 PS4='+ '
7876 # NLS nuisances.
7877 for as_var in \
7878 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
7879 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
7880 LC_TELEPHONE LC_TIME
7882 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
7883 eval $as_var=C; export $as_var
7884 else
7885 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
7887 done
7889 # Required to use basename.
7890 if expr a : '\(a\)' >/dev/null 2>&1 &&
7891 test "X`expr 00001 : '.*\(...\)'`" = X001; then
7892 as_expr=expr
7893 else
7894 as_expr=false
7897 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
7898 as_basename=basename
7899 else
7900 as_basename=false
7904 # Name of the executable.
7905 as_me=`$as_basename -- "$0" ||
7906 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
7907 X"$0" : 'X\(//\)$' \| \
7908 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
7909 echo X/"$0" |
7910 sed '/^.*\/\([^/][^/]*\)\/*$/{
7911 s//\1/
7914 /^X\/\(\/\/\)$/{
7915 s//\1/
7918 /^X\/\(\/\).*/{
7919 s//\1/
7922 s/.*/./; q'`
7924 # CDPATH.
7925 $as_unset CDPATH
7929 as_lineno_1=$LINENO
7930 as_lineno_2=$LINENO
7931 test "x$as_lineno_1" != "x$as_lineno_2" &&
7932 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
7934 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
7935 # uniformly replaced by the line number. The first 'sed' inserts a
7936 # line-number line after each line using $LINENO; the second 'sed'
7937 # does the real work. The second script uses 'N' to pair each
7938 # line-number line with the line containing $LINENO, and appends
7939 # trailing '-' during substitution so that $LINENO is not a special
7940 # case at line end.
7941 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
7942 # scripts with optimization help from Paolo Bonzini. Blame Lee
7943 # E. McMahon (1931-1989) for sed's syntax. :-)
7944 sed -n '
7946 /[$]LINENO/=
7947 ' <$as_myself |
7948 sed '
7949 s/[$]LINENO.*/&-/
7950 t lineno
7952 :lineno
7954 :loop
7955 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
7956 t loop
7957 s/-\n.*//
7958 ' >$as_me.lineno &&
7959 chmod +x "$as_me.lineno" ||
7960 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
7961 { (exit 1); exit 1; }; }
7963 # Don't try to exec as it changes $[0], causing all sort of problems
7964 # (the dirname of $[0] is not the place where we might find the
7965 # original and so on. Autoconf is especially sensitive to this).
7966 . "./$as_me.lineno"
7967 # Exit status is that of the last command.
7968 exit
7972 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
7973 as_dirname=dirname
7974 else
7975 as_dirname=false
7978 ECHO_C= ECHO_N= ECHO_T=
7979 case `echo -n x` in
7980 -n*)
7981 case `echo 'x\c'` in
7982 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
7983 *) ECHO_C='\c';;
7984 esac;;
7986 ECHO_N='-n';;
7987 esac
7989 if expr a : '\(a\)' >/dev/null 2>&1 &&
7990 test "X`expr 00001 : '.*\(...\)'`" = X001; then
7991 as_expr=expr
7992 else
7993 as_expr=false
7996 rm -f conf$$ conf$$.exe conf$$.file
7997 if test -d conf$$.dir; then
7998 rm -f conf$$.dir/conf$$.file
7999 else
8000 rm -f conf$$.dir
8001 mkdir conf$$.dir
8003 echo >conf$$.file
8004 if ln -s conf$$.file conf$$ 2>/dev/null; then
8005 as_ln_s='ln -s'
8006 # ... but there are two gotchas:
8007 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
8008 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
8009 # In both cases, we have to default to `cp -p'.
8010 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
8011 as_ln_s='cp -p'
8012 elif ln conf$$.file conf$$ 2>/dev/null; then
8013 as_ln_s=ln
8014 else
8015 as_ln_s='cp -p'
8017 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
8018 rmdir conf$$.dir 2>/dev/null
8020 if mkdir -p . 2>/dev/null; then
8021 as_mkdir_p=:
8022 else
8023 test -d ./-p && rmdir ./-p
8024 as_mkdir_p=false
8027 if test -x / >/dev/null 2>&1; then
8028 as_test_x='test -x'
8029 else
8030 if ls -dL / >/dev/null 2>&1; then
8031 as_ls_L_option=L
8032 else
8033 as_ls_L_option=
8035 as_test_x='
8036 eval sh -c '\''
8037 if test -d "$1"; then
8038 test -d "$1/.";
8039 else
8040 case $1 in
8041 -*)set "./$1";;
8042 esac;
8043 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
8044 ???[sx]*):;;*)false;;esac;fi
8045 '\'' sh
8048 as_executable_p=$as_test_x
8050 # Sed expression to map a string onto a valid CPP name.
8051 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
8053 # Sed expression to map a string onto a valid variable name.
8054 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
8057 exec 6>&1
8059 # Save the log message, to keep $[0] and so on meaningful, and to
8060 # report actual input values of CONFIG_FILES etc. instead of their
8061 # values after options handling.
8062 ac_log="
8063 This file was extended by GNU C Library $as_me (see version.h), which was
8064 generated by GNU Autoconf 2.61. Invocation command line was
8066 CONFIG_FILES = $CONFIG_FILES
8067 CONFIG_HEADERS = $CONFIG_HEADERS
8068 CONFIG_LINKS = $CONFIG_LINKS
8069 CONFIG_COMMANDS = $CONFIG_COMMANDS
8070 $ $0 $@
8072 on `(hostname || uname -n) 2>/dev/null | sed 1q`
8075 _ACEOF
8077 cat >>$CONFIG_STATUS <<_ACEOF
8078 # Files that config.status was made for.
8079 config_files="$ac_config_files"
8080 config_headers="$ac_config_headers"
8081 config_commands="$ac_config_commands"
8083 _ACEOF
8085 cat >>$CONFIG_STATUS <<\_ACEOF
8086 ac_cs_usage="\
8087 \`$as_me' instantiates files from templates according to the
8088 current configuration.
8090 Usage: $0 [OPTIONS] [FILE]...
8092 -h, --help print this help, then exit
8093 -V, --version print version number and configuration settings, then exit
8094 -q, --quiet do not print progress messages
8095 -d, --debug don't remove temporary files
8096 --recheck update $as_me by reconfiguring in the same conditions
8097 --file=FILE[:TEMPLATE]
8098 instantiate the configuration file FILE
8099 --header=FILE[:TEMPLATE]
8100 instantiate the configuration header FILE
8102 Configuration files:
8103 $config_files
8105 Configuration headers:
8106 $config_headers
8108 Configuration commands:
8109 $config_commands
8111 Report bugs to <bug-autoconf@gnu.org>."
8113 _ACEOF
8114 cat >>$CONFIG_STATUS <<_ACEOF
8115 ac_cs_version="\\
8116 GNU C Library config.status (see version.h)
8117 configured by $0, generated by GNU Autoconf 2.61,
8118 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
8120 Copyright (C) 2006 Free Software Foundation, Inc.
8121 This config.status script is free software; the Free Software Foundation
8122 gives unlimited permission to copy, distribute and modify it."
8124 ac_pwd='$ac_pwd'
8125 srcdir='$srcdir'
8126 INSTALL='$INSTALL'
8127 _ACEOF
8129 cat >>$CONFIG_STATUS <<\_ACEOF
8130 # If no file are specified by the user, then we need to provide default
8131 # value. By we need to know if files were specified by the user.
8132 ac_need_defaults=:
8133 while test $# != 0
8135 case $1 in
8136 --*=*)
8137 ac_option=`expr "X$1" : 'X\([^=]*\)='`
8138 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
8139 ac_shift=:
8142 ac_option=$1
8143 ac_optarg=$2
8144 ac_shift=shift
8146 esac
8148 case $ac_option in
8149 # Handling of the options.
8150 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8151 ac_cs_recheck=: ;;
8152 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
8153 echo "$ac_cs_version"; exit ;;
8154 --debug | --debu | --deb | --de | --d | -d )
8155 debug=: ;;
8156 --file | --fil | --fi | --f )
8157 $ac_shift
8158 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
8159 ac_need_defaults=false;;
8160 --header | --heade | --head | --hea )
8161 $ac_shift
8162 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
8163 ac_need_defaults=false;;
8164 --he | --h)
8165 # Conflict between --help and --header
8166 { echo "$as_me: error: ambiguous option: $1
8167 Try \`$0 --help' for more information." >&2
8168 { (exit 1); exit 1; }; };;
8169 --help | --hel | -h )
8170 echo "$ac_cs_usage"; exit ;;
8171 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
8172 | -silent | --silent | --silen | --sile | --sil | --si | --s)
8173 ac_cs_silent=: ;;
8175 # This is an error.
8176 -*) { echo "$as_me: error: unrecognized option: $1
8177 Try \`$0 --help' for more information." >&2
8178 { (exit 1); exit 1; }; } ;;
8180 *) ac_config_targets="$ac_config_targets $1"
8181 ac_need_defaults=false ;;
8183 esac
8184 shift
8185 done
8187 ac_configure_extra_args=
8189 if $ac_cs_silent; then
8190 exec 6>/dev/null
8191 ac_configure_extra_args="$ac_configure_extra_args --silent"
8194 _ACEOF
8195 cat >>$CONFIG_STATUS <<_ACEOF
8196 if \$ac_cs_recheck; then
8197 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
8198 CONFIG_SHELL=$SHELL
8199 export CONFIG_SHELL
8200 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
8203 _ACEOF
8204 cat >>$CONFIG_STATUS <<\_ACEOF
8205 exec 5>>config.log
8207 echo
8208 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
8209 ## Running $as_me. ##
8210 _ASBOX
8211 echo "$ac_log"
8212 } >&5
8214 _ACEOF
8215 cat >>$CONFIG_STATUS <<_ACEOF
8217 # INIT-COMMANDS
8219 config_vars='$config_vars'
8221 _ACEOF
8223 cat >>$CONFIG_STATUS <<\_ACEOF
8225 # Handling of arguments.
8226 for ac_config_target in $ac_config_targets
8228 case $ac_config_target in
8229 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
8230 "config.make") CONFIG_FILES="$CONFIG_FILES config.make" ;;
8231 "${config_makefile}") CONFIG_FILES="$CONFIG_FILES ${config_makefile}" ;;
8232 "${config_uname}") CONFIG_FILES="$CONFIG_FILES ${config_uname}" ;;
8233 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
8235 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
8236 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
8237 { (exit 1); exit 1; }; };;
8238 esac
8239 done
8242 # If the user did not use the arguments to specify the items to instantiate,
8243 # then the envvar interface is used. Set only those that are not.
8244 # We use the long form for the default assignment because of an extremely
8245 # bizarre bug on SunOS 4.1.3.
8246 if $ac_need_defaults; then
8247 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
8248 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
8249 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
8252 # Have a temporary directory for convenience. Make it in the build tree
8253 # simply because there is no reason against having it here, and in addition,
8254 # creating and moving files from /tmp can sometimes cause problems.
8255 # Hook for its removal unless debugging.
8256 # Note that there is a small window in which the directory will not be cleaned:
8257 # after its creation but before its name has been assigned to `$tmp'.
8258 $debug ||
8260 tmp=
8261 trap 'exit_status=$?
8262 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
8264 trap '{ (exit 1); exit 1; }' 1 2 13 15
8266 # Create a (secure) tmp directory for tmp files.
8269 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
8270 test -n "$tmp" && test -d "$tmp"
8271 } ||
8273 tmp=./conf$$-$RANDOM
8274 (umask 077 && mkdir "$tmp")
8275 } ||
8277 echo "$me: cannot create a temporary directory in ." >&2
8278 { (exit 1); exit 1; }
8282 # Set up the sed scripts for CONFIG_FILES section.
8285 # No need to generate the scripts if there are no CONFIG_FILES.
8286 # This happens for instance when ./config.status config.h
8287 if test -n "$CONFIG_FILES"; then
8289 _ACEOF
8293 ac_delim='%!_!# '
8294 for ac_last_try in false false false false false :; do
8295 cat >conf$$subs.sed <<_ACEOF
8296 SHELL!$SHELL$ac_delim
8297 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
8298 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
8299 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
8300 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
8301 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
8302 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
8303 exec_prefix!$exec_prefix$ac_delim
8304 prefix!$prefix$ac_delim
8305 program_transform_name!$program_transform_name$ac_delim
8306 bindir!$bindir$ac_delim
8307 sbindir!$sbindir$ac_delim
8308 libexecdir!$libexecdir$ac_delim
8309 datarootdir!$datarootdir$ac_delim
8310 datadir!$datadir$ac_delim
8311 sysconfdir!$sysconfdir$ac_delim
8312 sharedstatedir!$sharedstatedir$ac_delim
8313 localstatedir!$localstatedir$ac_delim
8314 includedir!$includedir$ac_delim
8315 oldincludedir!$oldincludedir$ac_delim
8316 docdir!$docdir$ac_delim
8317 infodir!$infodir$ac_delim
8318 htmldir!$htmldir$ac_delim
8319 dvidir!$dvidir$ac_delim
8320 pdfdir!$pdfdir$ac_delim
8321 psdir!$psdir$ac_delim
8322 libdir!$libdir$ac_delim
8323 localedir!$localedir$ac_delim
8324 mandir!$mandir$ac_delim
8325 DEFS!$DEFS$ac_delim
8326 ECHO_C!$ECHO_C$ac_delim
8327 ECHO_N!$ECHO_N$ac_delim
8328 ECHO_T!$ECHO_T$ac_delim
8329 LIBS!$LIBS$ac_delim
8330 build_alias!$build_alias$ac_delim
8331 host_alias!$host_alias$ac_delim
8332 target_alias!$target_alias$ac_delim
8333 with_fp!$with_fp$ac_delim
8334 with_cvs!$with_cvs$ac_delim
8335 enable_check_abi!$enable_check_abi$ac_delim
8336 oldest_abi!$oldest_abi$ac_delim
8337 bindnow!$bindnow$ac_delim
8338 force_install!$force_install$ac_delim
8339 all_warnings!$all_warnings$ac_delim
8340 build!$build$ac_delim
8341 build_cpu!$build_cpu$ac_delim
8342 build_vendor!$build_vendor$ac_delim
8343 build_os!$build_os$ac_delim
8344 host!$host$ac_delim
8345 host_cpu!$host_cpu$ac_delim
8346 host_vendor!$host_vendor$ac_delim
8347 host_os!$host_os$ac_delim
8348 subdirs!$subdirs$ac_delim
8349 add_ons!$add_ons$ac_delim
8350 add_on_subdirs!$add_on_subdirs$ac_delim
8351 base_machine!$base_machine$ac_delim
8352 submachine!$submachine$ac_delim
8353 sysnames!$sysnames$ac_delim
8354 sysdeps_add_ons!$sysdeps_add_ons$ac_delim
8355 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
8356 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
8357 INSTALL_DATA!$INSTALL_DATA$ac_delim
8358 LN_S!$LN_S$ac_delim
8359 CC!$CC$ac_delim
8360 CFLAGS!$CFLAGS$ac_delim
8361 LDFLAGS!$LDFLAGS$ac_delim
8362 CPPFLAGS!$CPPFLAGS$ac_delim
8363 ac_ct_CC!$ac_ct_CC$ac_delim
8364 OBJEXT!$OBJEXT$ac_delim
8365 BUILD_CC!$BUILD_CC$ac_delim
8366 cross_compiling!$cross_compiling$ac_delim
8367 CPP!$CPP$ac_delim
8368 CXX!$CXX$ac_delim
8369 CXXFLAGS!$CXXFLAGS$ac_delim
8370 ac_ct_CXX!$ac_ct_CXX$ac_delim
8371 AR!$AR$ac_delim
8372 OBJDUMP!$OBJDUMP$ac_delim
8373 RANLIB!$RANLIB$ac_delim
8374 MIG!$MIG$ac_delim
8375 AS!$AS$ac_delim
8376 LD!$LD$ac_delim
8377 PWD_P!$PWD_P$ac_delim
8378 MAKE!$MAKE$ac_delim
8379 MSGFMT!$MSGFMT$ac_delim
8380 MAKEINFO!$MAKEINFO$ac_delim
8381 SED!$SED$ac_delim
8382 AUTOCONF!$AUTOCONF$ac_delim
8383 SYSINCLUDES!$SYSINCLUDES$ac_delim
8384 CXX_SYSINCLUDES!$CXX_SYSINCLUDES$ac_delim
8385 libc_cv_gcc_static_libgcc!$libc_cv_gcc_static_libgcc$ac_delim
8386 BASH_SHELL!$BASH_SHELL$ac_delim
8387 libc_cv_have_bash2!$libc_cv_have_bash2$ac_delim
8388 KSH!$KSH$ac_delim
8389 libc_cv_have_ksh!$libc_cv_have_ksh$ac_delim
8390 AWK!$AWK$ac_delim
8391 PERL!$PERL$ac_delim
8392 INSTALL_INFO!$INSTALL_INFO$ac_delim
8393 _ACEOF
8395 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
8396 break
8397 elif $ac_last_try; then
8398 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
8399 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
8400 { (exit 1); exit 1; }; }
8401 else
8402 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
8404 done
8406 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
8407 if test -n "$ac_eof"; then
8408 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
8409 ac_eof=`expr $ac_eof + 1`
8412 cat >>$CONFIG_STATUS <<_ACEOF
8413 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
8414 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
8415 _ACEOF
8416 sed '
8417 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
8418 s/^/s,@/; s/!/@,|#_!!_#|/
8421 s/'"$ac_delim"'$/,g/; t
8422 s/$/\\/; p
8423 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
8424 ' >>$CONFIG_STATUS <conf$$subs.sed
8425 rm -f conf$$subs.sed
8426 cat >>$CONFIG_STATUS <<_ACEOF
8427 CEOF$ac_eof
8428 _ACEOF
8431 ac_delim='%!_!# '
8432 for ac_last_try in false false false false false :; do
8433 cat >conf$$subs.sed <<_ACEOF
8434 BISON!$BISON$ac_delim
8435 VERSIONING!$VERSIONING$ac_delim
8436 libc_cv_cc_with_libunwind!$libc_cv_cc_with_libunwind$ac_delim
8437 libc_cv_Bgroup!$libc_cv_Bgroup$ac_delim
8438 libc_cv_libgcc_s_suffix!$libc_cv_libgcc_s_suffix$ac_delim
8439 libc_cv_as_needed!$libc_cv_as_needed$ac_delim
8440 ASFLAGS_config!$ASFLAGS_config$ac_delim
8441 libc_cv_z_combreloc!$libc_cv_z_combreloc$ac_delim
8442 libc_cv_z_execstack!$libc_cv_z_execstack$ac_delim
8443 libc_cv_fpie!$libc_cv_fpie$ac_delim
8444 libc_cv_hashstyle!$libc_cv_hashstyle$ac_delim
8445 fno_unit_at_a_time!$fno_unit_at_a_time$ac_delim
8446 libc_cv_ssp!$libc_cv_ssp$ac_delim
8447 libc_cv_gnu89_inline!$libc_cv_gnu89_inline$ac_delim
8448 libc_cv_have_initfini!$libc_cv_have_initfini$ac_delim
8449 no_whole_archive!$no_whole_archive$ac_delim
8450 exceptions!$exceptions$ac_delim
8451 libc_cv_cc_submachine!$libc_cv_cc_submachine$ac_delim
8452 LIBGD!$LIBGD$ac_delim
8453 have_libaudit!$have_libaudit$ac_delim
8454 have_libcap!$have_libcap$ac_delim
8455 have_selinux!$have_selinux$ac_delim
8456 sizeof_long_double!$sizeof_long_double$ac_delim
8457 libc_cv_gcc_unwind_find_fde!$libc_cv_gcc_unwind_find_fde$ac_delim
8458 uname_sysname!$uname_sysname$ac_delim
8459 uname_release!$uname_release$ac_delim
8460 uname_version!$uname_version$ac_delim
8461 old_glibc_headers!$old_glibc_headers$ac_delim
8462 libc_cv_slibdir!$libc_cv_slibdir$ac_delim
8463 libc_cv_localedir!$libc_cv_localedir$ac_delim
8464 libc_cv_sysconfdir!$libc_cv_sysconfdir$ac_delim
8465 libc_cv_rootsbindir!$libc_cv_rootsbindir$ac_delim
8466 libc_cv_forced_unwind!$libc_cv_forced_unwind$ac_delim
8467 libc_cv_cpp_asm_debuginfo!$libc_cv_cpp_asm_debuginfo$ac_delim
8468 use_ldconfig!$use_ldconfig$ac_delim
8469 ldd_rewrite_script!$ldd_rewrite_script$ac_delim
8470 elf!$elf$ac_delim
8471 xcoff!$xcoff$ac_delim
8472 static!$static$ac_delim
8473 shared!$shared$ac_delim
8474 pic_default!$pic_default$ac_delim
8475 profile!$profile$ac_delim
8476 omitfp!$omitfp$ac_delim
8477 bounded!$bounded$ac_delim
8478 static_nss!$static_nss$ac_delim
8479 nopic_initfini!$nopic_initfini$ac_delim
8480 DEFINES!$DEFINES$ac_delim
8481 mach_interface_list!$mach_interface_list$ac_delim
8482 VERSION!$VERSION$ac_delim
8483 RELEASE!$RELEASE$ac_delim
8484 LIBOBJS!$LIBOBJS$ac_delim
8485 LTLIBOBJS!$LTLIBOBJS$ac_delim
8486 _ACEOF
8488 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 52; then
8489 break
8490 elif $ac_last_try; then
8491 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
8492 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
8493 { (exit 1); exit 1; }; }
8494 else
8495 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
8497 done
8499 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
8500 if test -n "$ac_eof"; then
8501 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
8502 ac_eof=`expr $ac_eof + 1`
8505 cat >>$CONFIG_STATUS <<_ACEOF
8506 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
8507 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
8508 _ACEOF
8509 sed '
8510 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
8511 s/^/s,@/; s/!/@,|#_!!_#|/
8514 s/'"$ac_delim"'$/,g/; t
8515 s/$/\\/; p
8516 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
8517 ' >>$CONFIG_STATUS <conf$$subs.sed
8518 rm -f conf$$subs.sed
8519 cat >>$CONFIG_STATUS <<_ACEOF
8520 :end
8521 s/|#_!!_#|//g
8522 CEOF$ac_eof
8523 _ACEOF
8526 # VPATH may cause trouble with some makes, so we remove $(srcdir),
8527 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
8528 # trailing colons and then remove the whole line if VPATH becomes empty
8529 # (actually we leave an empty line to preserve line numbers).
8530 if test "x$srcdir" = x.; then
8531 ac_vpsub='/^[ ]*VPATH[ ]*=/{
8532 s/:*\$(srcdir):*/:/
8533 s/:*\${srcdir}:*/:/
8534 s/:*@srcdir@:*/:/
8535 s/^\([^=]*=[ ]*\):*/\1/
8536 s/:*$//
8537 s/^[^=]*=[ ]*$//
8541 cat >>$CONFIG_STATUS <<\_ACEOF
8542 fi # test -n "$CONFIG_FILES"
8545 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
8547 case $ac_tag in
8548 :[FHLC]) ac_mode=$ac_tag; continue;;
8549 esac
8550 case $ac_mode$ac_tag in
8551 :[FHL]*:*);;
8552 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
8553 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
8554 { (exit 1); exit 1; }; };;
8555 :[FH]-) ac_tag=-:-;;
8556 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
8557 esac
8558 ac_save_IFS=$IFS
8559 IFS=:
8560 set x $ac_tag
8561 IFS=$ac_save_IFS
8562 shift
8563 ac_file=$1
8564 shift
8566 case $ac_mode in
8567 :L) ac_source=$1;;
8568 :[FH])
8569 ac_file_inputs=
8570 for ac_f
8572 case $ac_f in
8573 -) ac_f="$tmp/stdin";;
8574 *) # Look for the file first in the build tree, then in the source tree
8575 # (if the path is not absolute). The absolute path cannot be DOS-style,
8576 # because $ac_f cannot contain `:'.
8577 test -f "$ac_f" ||
8578 case $ac_f in
8579 [\\/$]*) false;;
8580 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
8581 esac ||
8582 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
8583 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
8584 { (exit 1); exit 1; }; };;
8585 esac
8586 ac_file_inputs="$ac_file_inputs $ac_f"
8587 done
8589 # Let's still pretend it is `configure' which instantiates (i.e., don't
8590 # use $as_me), people would be surprised to read:
8591 # /* config.h. Generated by config.status. */
8592 configure_input="Generated from "`IFS=:
8593 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
8594 if test x"$ac_file" != x-; then
8595 configure_input="$ac_file. $configure_input"
8596 { echo "$as_me:$LINENO: creating $ac_file" >&5
8597 echo "$as_me: creating $ac_file" >&6;}
8600 case $ac_tag in
8601 *:-:* | *:-) cat >"$tmp/stdin";;
8602 esac
8604 esac
8606 ac_dir=`$as_dirname -- "$ac_file" ||
8607 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8608 X"$ac_file" : 'X\(//\)[^/]' \| \
8609 X"$ac_file" : 'X\(//\)$' \| \
8610 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
8611 echo X"$ac_file" |
8612 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8613 s//\1/
8616 /^X\(\/\/\)[^/].*/{
8617 s//\1/
8620 /^X\(\/\/\)$/{
8621 s//\1/
8624 /^X\(\/\).*/{
8625 s//\1/
8628 s/.*/./; q'`
8629 { as_dir="$ac_dir"
8630 case $as_dir in #(
8631 -*) as_dir=./$as_dir;;
8632 esac
8633 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
8634 as_dirs=
8635 while :; do
8636 case $as_dir in #(
8637 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
8638 *) as_qdir=$as_dir;;
8639 esac
8640 as_dirs="'$as_qdir' $as_dirs"
8641 as_dir=`$as_dirname -- "$as_dir" ||
8642 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8643 X"$as_dir" : 'X\(//\)[^/]' \| \
8644 X"$as_dir" : 'X\(//\)$' \| \
8645 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
8646 echo X"$as_dir" |
8647 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8648 s//\1/
8651 /^X\(\/\/\)[^/].*/{
8652 s//\1/
8655 /^X\(\/\/\)$/{
8656 s//\1/
8659 /^X\(\/\).*/{
8660 s//\1/
8663 s/.*/./; q'`
8664 test -d "$as_dir" && break
8665 done
8666 test -z "$as_dirs" || eval "mkdir $as_dirs"
8667 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
8668 echo "$as_me: error: cannot create directory $as_dir" >&2;}
8669 { (exit 1); exit 1; }; }; }
8670 ac_builddir=.
8672 case "$ac_dir" in
8673 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
8675 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
8676 # A ".." for each directory in $ac_dir_suffix.
8677 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
8678 case $ac_top_builddir_sub in
8679 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
8680 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
8681 esac ;;
8682 esac
8683 ac_abs_top_builddir=$ac_pwd
8684 ac_abs_builddir=$ac_pwd$ac_dir_suffix
8685 # for backward compatibility:
8686 ac_top_builddir=$ac_top_build_prefix
8688 case $srcdir in
8689 .) # We are building in place.
8690 ac_srcdir=.
8691 ac_top_srcdir=$ac_top_builddir_sub
8692 ac_abs_top_srcdir=$ac_pwd ;;
8693 [\\/]* | ?:[\\/]* ) # Absolute name.
8694 ac_srcdir=$srcdir$ac_dir_suffix;
8695 ac_top_srcdir=$srcdir
8696 ac_abs_top_srcdir=$srcdir ;;
8697 *) # Relative name.
8698 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
8699 ac_top_srcdir=$ac_top_build_prefix$srcdir
8700 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
8701 esac
8702 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
8705 case $ac_mode in
8708 # CONFIG_FILE
8711 case $INSTALL in
8712 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
8713 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
8714 esac
8715 _ACEOF
8717 cat >>$CONFIG_STATUS <<\_ACEOF
8718 # If the template does not know about datarootdir, expand it.
8719 # FIXME: This hack should be removed a few years after 2.60.
8720 ac_datarootdir_hack=; ac_datarootdir_seen=
8722 case `sed -n '/datarootdir/ {
8726 /@datadir@/p
8727 /@docdir@/p
8728 /@infodir@/p
8729 /@localedir@/p
8730 /@mandir@/p
8731 ' $ac_file_inputs` in
8732 *datarootdir*) ac_datarootdir_seen=yes;;
8733 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
8734 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
8735 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
8736 _ACEOF
8737 cat >>$CONFIG_STATUS <<_ACEOF
8738 ac_datarootdir_hack='
8739 s&@datadir@&$datadir&g
8740 s&@docdir@&$docdir&g
8741 s&@infodir@&$infodir&g
8742 s&@localedir@&$localedir&g
8743 s&@mandir@&$mandir&g
8744 s&\\\${datarootdir}&$datarootdir&g' ;;
8745 esac
8746 _ACEOF
8748 # Neutralize VPATH when `$srcdir' = `.'.
8749 # Shell code in configure.ac might set extrasub.
8750 # FIXME: do we really want to maintain this feature?
8751 cat >>$CONFIG_STATUS <<_ACEOF
8752 sed "$ac_vpsub
8753 $extrasub
8754 _ACEOF
8755 cat >>$CONFIG_STATUS <<\_ACEOF
8757 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
8758 s&@configure_input@&$configure_input&;t t
8759 s&@top_builddir@&$ac_top_builddir_sub&;t t
8760 s&@srcdir@&$ac_srcdir&;t t
8761 s&@abs_srcdir@&$ac_abs_srcdir&;t t
8762 s&@top_srcdir@&$ac_top_srcdir&;t t
8763 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
8764 s&@builddir@&$ac_builddir&;t t
8765 s&@abs_builddir@&$ac_abs_builddir&;t t
8766 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
8767 s&@INSTALL@&$ac_INSTALL&;t t
8768 $ac_datarootdir_hack
8769 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
8771 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
8772 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
8773 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
8774 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
8775 which seems to be undefined. Please make sure it is defined." >&5
8776 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
8777 which seems to be undefined. Please make sure it is defined." >&2;}
8779 rm -f "$tmp/stdin"
8780 case $ac_file in
8781 -) cat "$tmp/out"; rm -f "$tmp/out";;
8782 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
8783 esac
8787 # CONFIG_HEADER
8789 _ACEOF
8791 # Transform confdefs.h into a sed script `conftest.defines', that
8792 # substitutes the proper values into config.h.in to produce config.h.
8793 rm -f conftest.defines conftest.tail
8794 # First, append a space to every undef/define line, to ease matching.
8795 echo 's/$/ /' >conftest.defines
8796 # Then, protect against being on the right side of a sed subst, or in
8797 # an unquoted here document, in config.status. If some macros were
8798 # called several times there might be several #defines for the same
8799 # symbol, which is useless. But do not sort them, since the last
8800 # AC_DEFINE must be honored.
8801 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
8802 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
8803 # NAME is the cpp macro being defined, VALUE is the value it is being given.
8804 # PARAMS is the parameter list in the macro definition--in most cases, it's
8805 # just an empty string.
8806 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
8807 ac_dB='\\)[ (].*,\\1define\\2'
8808 ac_dC=' '
8809 ac_dD=' ,'
8811 uniq confdefs.h |
8812 sed -n '
8813 t rset
8814 :rset
8815 s/^[ ]*#[ ]*define[ ][ ]*//
8816 t ok
8819 s/[\\&,]/\\&/g
8820 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
8821 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
8822 ' >>conftest.defines
8824 # Remove the space that was appended to ease matching.
8825 # Then replace #undef with comments. This is necessary, for
8826 # example, in the case of _POSIX_SOURCE, which is predefined and required
8827 # on some systems where configure will not decide to define it.
8828 # (The regexp can be short, since the line contains either #define or #undef.)
8829 echo 's/ $//
8830 s,^[ #]*u.*,/* & */,' >>conftest.defines
8832 # Break up conftest.defines:
8833 ac_max_sed_lines=50
8835 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
8836 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
8837 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
8838 # et cetera.
8839 ac_in='$ac_file_inputs'
8840 ac_out='"$tmp/out1"'
8841 ac_nxt='"$tmp/out2"'
8843 while :
8845 # Write a here document:
8846 cat >>$CONFIG_STATUS <<_ACEOF
8847 # First, check the format of the line:
8848 cat >"\$tmp/defines.sed" <<\\CEOF
8849 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
8850 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
8852 :def
8853 _ACEOF
8854 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
8855 echo 'CEOF
8856 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
8857 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
8858 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
8859 grep . conftest.tail >/dev/null || break
8860 rm -f conftest.defines
8861 mv conftest.tail conftest.defines
8862 done
8863 rm -f conftest.defines conftest.tail
8865 echo "ac_result=$ac_in" >>$CONFIG_STATUS
8866 cat >>$CONFIG_STATUS <<\_ACEOF
8867 if test x"$ac_file" != x-; then
8868 echo "/* $configure_input */" >"$tmp/config.h"
8869 cat "$ac_result" >>"$tmp/config.h"
8870 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
8871 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
8872 echo "$as_me: $ac_file is unchanged" >&6;}
8873 else
8874 rm -f $ac_file
8875 mv "$tmp/config.h" $ac_file
8877 else
8878 echo "/* $configure_input */"
8879 cat "$ac_result"
8881 rm -f "$tmp/out12"
8884 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
8885 echo "$as_me: executing $ac_file commands" >&6;}
8887 esac
8890 case $ac_file$ac_mode in
8891 "default":C)
8892 case $CONFIG_FILES in *config.make*)
8893 echo "$config_vars" >> config.make;;
8894 esac
8895 test -d bits || mkdir bits ;;
8897 esac
8898 done # for ac_tag
8901 { (exit 0); exit 0; }
8902 _ACEOF
8903 chmod +x $CONFIG_STATUS
8904 ac_clean_files=$ac_clean_files_save
8907 # configure is writing to config.log, and then calls config.status.
8908 # config.status does its own redirection, appending to config.log.
8909 # Unfortunately, on DOS this fails, as config.log is still kept open
8910 # by configure, so config.status won't be able to write to it; its
8911 # output is simply discarded. So we exec the FD to /dev/null,
8912 # effectively closing config.log, so it can be properly (re)opened and
8913 # appended to by config.status. When coming back to configure, we
8914 # need to make the FD available again.
8915 if test "$no_create" != yes; then
8916 ac_cs_success=:
8917 ac_config_status_args=
8918 test "$silent" = yes &&
8919 ac_config_status_args="$ac_config_status_args --quiet"
8920 exec 5>/dev/null
8921 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
8922 exec 5>>config.log
8923 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
8924 # would make configure fail if this is the last instruction.
8925 $ac_cs_success || { (exit 1); exit 1; }
8929 # CONFIG_SUBDIRS section.
8931 if test "$no_recursion" != yes; then
8933 # Remove --cache-file and --srcdir arguments so they do not pile up.
8934 ac_sub_configure_args=
8935 ac_prev=
8936 eval "set x $ac_configure_args"
8937 shift
8938 for ac_arg
8940 if test -n "$ac_prev"; then
8941 ac_prev=
8942 continue
8944 case $ac_arg in
8945 -cache-file | --cache-file | --cache-fil | --cache-fi \
8946 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
8947 ac_prev=cache_file ;;
8948 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
8949 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
8950 | --c=*)
8952 --config-cache | -C)
8954 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
8955 ac_prev=srcdir ;;
8956 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
8958 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
8959 ac_prev=prefix ;;
8960 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
8963 case $ac_arg in
8964 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
8965 esac
8966 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
8967 esac
8968 done
8970 # Always prepend --prefix to ensure using the same prefix
8971 # in subdir configurations.
8972 ac_arg="--prefix=$prefix"
8973 case $ac_arg in
8974 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
8975 esac
8976 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
8978 # Pass --silent
8979 if test "$silent" = yes; then
8980 ac_sub_configure_args="--silent $ac_sub_configure_args"
8983 ac_popdir=`pwd`
8984 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
8986 # Do not complain, so a configure script can configure whichever
8987 # parts of a large source tree are present.
8988 test -d "$srcdir/$ac_dir" || continue
8990 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
8991 echo "$as_me:$LINENO: $ac_msg" >&5
8992 echo "$ac_msg" >&6
8993 { as_dir="$ac_dir"
8994 case $as_dir in #(
8995 -*) as_dir=./$as_dir;;
8996 esac
8997 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
8998 as_dirs=
8999 while :; do
9000 case $as_dir in #(
9001 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
9002 *) as_qdir=$as_dir;;
9003 esac
9004 as_dirs="'$as_qdir' $as_dirs"
9005 as_dir=`$as_dirname -- "$as_dir" ||
9006 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9007 X"$as_dir" : 'X\(//\)[^/]' \| \
9008 X"$as_dir" : 'X\(//\)$' \| \
9009 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
9010 echo X"$as_dir" |
9011 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9012 s//\1/
9015 /^X\(\/\/\)[^/].*/{
9016 s//\1/
9019 /^X\(\/\/\)$/{
9020 s//\1/
9023 /^X\(\/\).*/{
9024 s//\1/
9027 s/.*/./; q'`
9028 test -d "$as_dir" && break
9029 done
9030 test -z "$as_dirs" || eval "mkdir $as_dirs"
9031 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
9032 echo "$as_me: error: cannot create directory $as_dir" >&2;}
9033 { (exit 1); exit 1; }; }; }
9034 ac_builddir=.
9036 case "$ac_dir" in
9037 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
9039 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
9040 # A ".." for each directory in $ac_dir_suffix.
9041 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
9042 case $ac_top_builddir_sub in
9043 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
9044 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
9045 esac ;;
9046 esac
9047 ac_abs_top_builddir=$ac_pwd
9048 ac_abs_builddir=$ac_pwd$ac_dir_suffix
9049 # for backward compatibility:
9050 ac_top_builddir=$ac_top_build_prefix
9052 case $srcdir in
9053 .) # We are building in place.
9054 ac_srcdir=.
9055 ac_top_srcdir=$ac_top_builddir_sub
9056 ac_abs_top_srcdir=$ac_pwd ;;
9057 [\\/]* | ?:[\\/]* ) # Absolute name.
9058 ac_srcdir=$srcdir$ac_dir_suffix;
9059 ac_top_srcdir=$srcdir
9060 ac_abs_top_srcdir=$srcdir ;;
9061 *) # Relative name.
9062 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
9063 ac_top_srcdir=$ac_top_build_prefix$srcdir
9064 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
9065 esac
9066 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
9069 cd "$ac_dir"
9071 # Check for guested configure; otherwise get Cygnus style configure.
9072 if test -f "$ac_srcdir/configure.gnu"; then
9073 ac_sub_configure=$ac_srcdir/configure.gnu
9074 elif test -f "$ac_srcdir/configure"; then
9075 ac_sub_configure=$ac_srcdir/configure
9076 elif test -f "$ac_srcdir/configure.in"; then
9077 # This should be Cygnus configure.
9078 ac_sub_configure=$ac_aux_dir/configure
9079 else
9080 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
9081 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
9082 ac_sub_configure=
9085 # The recursion is here.
9086 if test -n "$ac_sub_configure"; then
9087 # Make the cache file name correct relative to the subdirectory.
9088 case $cache_file in
9089 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
9090 *) # Relative name.
9091 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
9092 esac
9094 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
9095 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
9096 # The eval makes quoting arguments work.
9097 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
9098 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
9099 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
9100 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
9101 { (exit 1); exit 1; }; }
9104 cd "$ac_popdir"
9105 done