* bits/libc-tsd.h (__libc_tsd_define, __libc_tsd_address,
[glibc.git] / configure
blob73f199689e80491877cedf989b9a3cef6ac20fd0
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 # Factoring default headers for most tests.
584 ac_includes_default="\
585 #include <stdio.h>
586 #ifdef HAVE_SYS_TYPES_H
587 # include <sys/types.h>
588 #endif
589 #ifdef HAVE_SYS_STAT_H
590 # include <sys/stat.h>
591 #endif
592 #ifdef STDC_HEADERS
593 # include <stdlib.h>
594 # include <stddef.h>
595 #else
596 # ifdef HAVE_STDLIB_H
597 # include <stdlib.h>
598 # endif
599 #endif
600 #ifdef HAVE_STRING_H
601 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
602 # include <memory.h>
603 # endif
604 # include <string.h>
605 #endif
606 #ifdef HAVE_STRINGS_H
607 # include <strings.h>
608 #endif
609 #ifdef HAVE_INTTYPES_H
610 # include <inttypes.h>
611 #endif
612 #ifdef HAVE_STDINT_H
613 # include <stdint.h>
614 #endif
615 #ifdef HAVE_UNISTD_H
616 # include <unistd.h>
617 #endif"
619 ac_subst_vars='SHELL
620 PATH_SEPARATOR
621 PACKAGE_NAME
622 PACKAGE_TARNAME
623 PACKAGE_VERSION
624 PACKAGE_STRING
625 PACKAGE_BUGREPORT
626 exec_prefix
627 prefix
628 program_transform_name
629 bindir
630 sbindir
631 libexecdir
632 datarootdir
633 datadir
634 sysconfdir
635 sharedstatedir
636 localstatedir
637 includedir
638 oldincludedir
639 docdir
640 infodir
641 htmldir
642 dvidir
643 pdfdir
644 psdir
645 libdir
646 localedir
647 mandir
648 DEFS
649 ECHO_C
650 ECHO_N
651 ECHO_T
652 LIBS
653 build_alias
654 host_alias
655 target_alias
656 with_fp
657 with_cvs
658 enable_check_abi
659 oldest_abi
660 bindnow
661 force_install
662 all_warnings
663 build
664 build_cpu
665 build_vendor
666 build_os
667 host
668 host_cpu
669 host_vendor
670 host_os
671 subdirs
672 add_ons
673 add_on_subdirs
674 base_machine
675 submachine
676 sysnames
677 sysdeps_add_ons
678 INSTALL_PROGRAM
679 INSTALL_SCRIPT
680 INSTALL_DATA
681 LN_S
683 CFLAGS
684 LDFLAGS
685 CPPFLAGS
686 ac_ct_CC
687 OBJEXT
688 BUILD_CC
689 cross_compiling
692 CXXFLAGS
693 ac_ct_CXX
695 OBJDUMP
696 RANLIB
700 PWD_P
701 MAKE
702 MSGFMT
703 MAKEINFO
705 AUTOCONF
706 SYSINCLUDES
707 CXX_SYSINCLUDES
708 libc_cv_gcc_static_libgcc
709 BASH_SHELL
710 libc_cv_have_bash2
712 libc_cv_have_ksh
714 PERL
715 INSTALL_INFO
716 BISON
717 VERSIONING
718 libc_cv_cc_with_libunwind
719 libc_cv_Bgroup
720 libc_cv_libgcc_s_suffix
721 libc_cv_as_needed
722 ASFLAGS_config
723 libc_cv_z_combreloc
724 libc_cv_z_execstack
725 libc_cv_fpie
726 libc_cv_hashstyle
727 fno_unit_at_a_time
728 libc_cv_ssp
729 libc_cv_gnu89_inline
730 libc_cv_have_initfini
731 no_whole_archive
732 exceptions
733 libc_cv_cc_submachine
734 LIBGD
735 have_libaudit
736 have_libcap
737 have_selinux
738 GREP
739 EGREP
740 sizeof_long_double
741 libc_cv_gcc_unwind_find_fde
742 uname_sysname
743 uname_release
744 uname_version
745 old_glibc_headers
746 libc_cv_slibdir
747 libc_cv_localedir
748 libc_cv_sysconfdir
749 libc_cv_rootsbindir
750 libc_cv_forced_unwind
751 use_ldconfig
752 ldd_rewrite_script
754 xcoff
755 static
756 shared
757 pic_default
758 profile
759 omitfp
760 bounded
761 static_nss
762 nopic_initfini
763 DEFINES
764 mach_interface_list
765 VERSION
766 RELEASE
767 LIBOBJS
768 LTLIBOBJS'
769 ac_subst_files=''
770 ac_precious_vars='build_alias
771 host_alias
772 target_alias
774 CFLAGS
775 LDFLAGS
776 LIBS
777 CPPFLAGS
780 CXXFLAGS
781 CCC'
782 ac_subdirs_all=''
784 # Initialize some variables set by options.
785 ac_init_help=
786 ac_init_version=false
787 # The variables have the same names as the options, with
788 # dashes changed to underlines.
789 cache_file=/dev/null
790 exec_prefix=NONE
791 no_create=
792 no_recursion=
793 prefix=NONE
794 program_prefix=NONE
795 program_suffix=NONE
796 program_transform_name=s,x,x,
797 silent=
798 site=
799 srcdir=
800 verbose=
801 x_includes=NONE
802 x_libraries=NONE
804 # Installation directory options.
805 # These are left unexpanded so users can "make install exec_prefix=/foo"
806 # and all the variables that are supposed to be based on exec_prefix
807 # by default will actually change.
808 # Use braces instead of parens because sh, perl, etc. also accept them.
809 # (The list follows the same order as the GNU Coding Standards.)
810 bindir='${exec_prefix}/bin'
811 sbindir='${exec_prefix}/sbin'
812 libexecdir='${exec_prefix}/libexec'
813 datarootdir='${prefix}/share'
814 datadir='${datarootdir}'
815 sysconfdir='${prefix}/etc'
816 sharedstatedir='${prefix}/com'
817 localstatedir='${prefix}/var'
818 includedir='${prefix}/include'
819 oldincludedir='/usr/include'
820 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
821 infodir='${datarootdir}/info'
822 htmldir='${docdir}'
823 dvidir='${docdir}'
824 pdfdir='${docdir}'
825 psdir='${docdir}'
826 libdir='${exec_prefix}/lib'
827 localedir='${datarootdir}/locale'
828 mandir='${datarootdir}/man'
830 ac_prev=
831 ac_dashdash=
832 for ac_option
834 # If the previous option needs an argument, assign it.
835 if test -n "$ac_prev"; then
836 eval $ac_prev=\$ac_option
837 ac_prev=
838 continue
841 case $ac_option in
842 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
843 *) ac_optarg=yes ;;
844 esac
846 # Accept the important Cygnus configure options, so we can diagnose typos.
848 case $ac_dashdash$ac_option in
850 ac_dashdash=yes ;;
852 -bindir | --bindir | --bindi | --bind | --bin | --bi)
853 ac_prev=bindir ;;
854 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
855 bindir=$ac_optarg ;;
857 -build | --build | --buil | --bui | --bu)
858 ac_prev=build_alias ;;
859 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
860 build_alias=$ac_optarg ;;
862 -cache-file | --cache-file | --cache-fil | --cache-fi \
863 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
864 ac_prev=cache_file ;;
865 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
866 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
867 cache_file=$ac_optarg ;;
869 --config-cache | -C)
870 cache_file=config.cache ;;
872 -datadir | --datadir | --datadi | --datad)
873 ac_prev=datadir ;;
874 -datadir=* | --datadir=* | --datadi=* | --datad=*)
875 datadir=$ac_optarg ;;
877 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
878 | --dataroo | --dataro | --datar)
879 ac_prev=datarootdir ;;
880 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
881 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
882 datarootdir=$ac_optarg ;;
884 -disable-* | --disable-*)
885 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
886 # Reject names that are not valid shell variable names.
887 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
888 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
889 { (exit 1); exit 1; }; }
890 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
891 eval enable_$ac_feature=no ;;
893 -docdir | --docdir | --docdi | --doc | --do)
894 ac_prev=docdir ;;
895 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
896 docdir=$ac_optarg ;;
898 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
899 ac_prev=dvidir ;;
900 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
901 dvidir=$ac_optarg ;;
903 -enable-* | --enable-*)
904 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
905 # Reject names that are not valid shell variable names.
906 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
907 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
908 { (exit 1); exit 1; }; }
909 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
910 eval enable_$ac_feature=\$ac_optarg ;;
912 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
913 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
914 | --exec | --exe | --ex)
915 ac_prev=exec_prefix ;;
916 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
917 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
918 | --exec=* | --exe=* | --ex=*)
919 exec_prefix=$ac_optarg ;;
921 -gas | --gas | --ga | --g)
922 # Obsolete; use --with-gas.
923 with_gas=yes ;;
925 -help | --help | --hel | --he | -h)
926 ac_init_help=long ;;
927 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
928 ac_init_help=recursive ;;
929 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
930 ac_init_help=short ;;
932 -host | --host | --hos | --ho)
933 ac_prev=host_alias ;;
934 -host=* | --host=* | --hos=* | --ho=*)
935 host_alias=$ac_optarg ;;
937 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
938 ac_prev=htmldir ;;
939 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
940 | --ht=*)
941 htmldir=$ac_optarg ;;
943 -includedir | --includedir | --includedi | --included | --include \
944 | --includ | --inclu | --incl | --inc)
945 ac_prev=includedir ;;
946 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
947 | --includ=* | --inclu=* | --incl=* | --inc=*)
948 includedir=$ac_optarg ;;
950 -infodir | --infodir | --infodi | --infod | --info | --inf)
951 ac_prev=infodir ;;
952 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
953 infodir=$ac_optarg ;;
955 -libdir | --libdir | --libdi | --libd)
956 ac_prev=libdir ;;
957 -libdir=* | --libdir=* | --libdi=* | --libd=*)
958 libdir=$ac_optarg ;;
960 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
961 | --libexe | --libex | --libe)
962 ac_prev=libexecdir ;;
963 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
964 | --libexe=* | --libex=* | --libe=*)
965 libexecdir=$ac_optarg ;;
967 -localedir | --localedir | --localedi | --localed | --locale)
968 ac_prev=localedir ;;
969 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
970 localedir=$ac_optarg ;;
972 -localstatedir | --localstatedir | --localstatedi | --localstated \
973 | --localstate | --localstat | --localsta | --localst | --locals)
974 ac_prev=localstatedir ;;
975 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
976 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
977 localstatedir=$ac_optarg ;;
979 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
980 ac_prev=mandir ;;
981 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
982 mandir=$ac_optarg ;;
984 -nfp | --nfp | --nf)
985 # Obsolete; use --without-fp.
986 with_fp=no ;;
988 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
989 | --no-cr | --no-c | -n)
990 no_create=yes ;;
992 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
993 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
994 no_recursion=yes ;;
996 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
997 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
998 | --oldin | --oldi | --old | --ol | --o)
999 ac_prev=oldincludedir ;;
1000 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1001 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1002 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1003 oldincludedir=$ac_optarg ;;
1005 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1006 ac_prev=prefix ;;
1007 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1008 prefix=$ac_optarg ;;
1010 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1011 | --program-pre | --program-pr | --program-p)
1012 ac_prev=program_prefix ;;
1013 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1014 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1015 program_prefix=$ac_optarg ;;
1017 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1018 | --program-suf | --program-su | --program-s)
1019 ac_prev=program_suffix ;;
1020 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1021 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1022 program_suffix=$ac_optarg ;;
1024 -program-transform-name | --program-transform-name \
1025 | --program-transform-nam | --program-transform-na \
1026 | --program-transform-n | --program-transform- \
1027 | --program-transform | --program-transfor \
1028 | --program-transfo | --program-transf \
1029 | --program-trans | --program-tran \
1030 | --progr-tra | --program-tr | --program-t)
1031 ac_prev=program_transform_name ;;
1032 -program-transform-name=* | --program-transform-name=* \
1033 | --program-transform-nam=* | --program-transform-na=* \
1034 | --program-transform-n=* | --program-transform-=* \
1035 | --program-transform=* | --program-transfor=* \
1036 | --program-transfo=* | --program-transf=* \
1037 | --program-trans=* | --program-tran=* \
1038 | --progr-tra=* | --program-tr=* | --program-t=*)
1039 program_transform_name=$ac_optarg ;;
1041 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1042 ac_prev=pdfdir ;;
1043 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1044 pdfdir=$ac_optarg ;;
1046 -psdir | --psdir | --psdi | --psd | --ps)
1047 ac_prev=psdir ;;
1048 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1049 psdir=$ac_optarg ;;
1051 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1052 | -silent | --silent | --silen | --sile | --sil)
1053 silent=yes ;;
1055 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1056 ac_prev=sbindir ;;
1057 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1058 | --sbi=* | --sb=*)
1059 sbindir=$ac_optarg ;;
1061 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1062 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1063 | --sharedst | --shareds | --shared | --share | --shar \
1064 | --sha | --sh)
1065 ac_prev=sharedstatedir ;;
1066 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1067 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1068 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1069 | --sha=* | --sh=*)
1070 sharedstatedir=$ac_optarg ;;
1072 -site | --site | --sit)
1073 ac_prev=site ;;
1074 -site=* | --site=* | --sit=*)
1075 site=$ac_optarg ;;
1077 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1078 ac_prev=srcdir ;;
1079 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1080 srcdir=$ac_optarg ;;
1082 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1083 | --syscon | --sysco | --sysc | --sys | --sy)
1084 ac_prev=sysconfdir ;;
1085 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1086 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1087 sysconfdir=$ac_optarg ;;
1089 -target | --target | --targe | --targ | --tar | --ta | --t)
1090 ac_prev=target_alias ;;
1091 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1092 target_alias=$ac_optarg ;;
1094 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1095 verbose=yes ;;
1097 -version | --version | --versio | --versi | --vers | -V)
1098 ac_init_version=: ;;
1100 -with-* | --with-*)
1101 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1102 # Reject names that are not valid shell variable names.
1103 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1104 { echo "$as_me: error: invalid package name: $ac_package" >&2
1105 { (exit 1); exit 1; }; }
1106 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1107 eval with_$ac_package=\$ac_optarg ;;
1109 -without-* | --without-*)
1110 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1111 # Reject names that are not valid shell variable names.
1112 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1113 { echo "$as_me: error: invalid package name: $ac_package" >&2
1114 { (exit 1); exit 1; }; }
1115 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1116 eval with_$ac_package=no ;;
1118 --x)
1119 # Obsolete; use --with-x.
1120 with_x=yes ;;
1122 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1123 | --x-incl | --x-inc | --x-in | --x-i)
1124 ac_prev=x_includes ;;
1125 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1126 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1127 x_includes=$ac_optarg ;;
1129 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1130 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1131 ac_prev=x_libraries ;;
1132 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1133 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1134 x_libraries=$ac_optarg ;;
1136 -*) { echo "$as_me: error: unrecognized option: $ac_option
1137 Try \`$0 --help' for more information." >&2
1138 { (exit 1); exit 1; }; }
1141 *=*)
1142 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1143 # Reject names that are not valid shell variable names.
1144 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1145 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1146 { (exit 1); exit 1; }; }
1147 eval $ac_envvar=\$ac_optarg
1148 export $ac_envvar ;;
1151 # FIXME: should be removed in autoconf 3.0.
1152 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1153 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1154 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1155 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1158 esac
1159 done
1161 if test -n "$ac_prev"; then
1162 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1163 { echo "$as_me: error: missing argument to $ac_option" >&2
1164 { (exit 1); exit 1; }; }
1167 # Be sure to have absolute directory names.
1168 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1169 datadir sysconfdir sharedstatedir localstatedir includedir \
1170 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1171 libdir localedir mandir
1173 eval ac_val=\$$ac_var
1174 case $ac_val in
1175 [\\/$]* | ?:[\\/]* ) continue;;
1176 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1177 esac
1178 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1179 { (exit 1); exit 1; }; }
1180 done
1182 # There might be people who depend on the old broken behavior: `$host'
1183 # used to hold the argument of --host etc.
1184 # FIXME: To remove some day.
1185 build=$build_alias
1186 host=$host_alias
1187 target=$target_alias
1189 # FIXME: To remove some day.
1190 if test "x$host_alias" != x; then
1191 if test "x$build_alias" = x; then
1192 cross_compiling=maybe
1193 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1194 If a cross compiler is detected then cross compile mode will be used." >&2
1195 elif test "x$build_alias" != "x$host_alias"; then
1196 cross_compiling=yes
1200 ac_tool_prefix=
1201 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1203 test "$silent" = yes && exec 6>/dev/null
1206 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1207 ac_ls_di=`ls -di .` &&
1208 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1209 { echo "$as_me: error: Working directory cannot be determined" >&2
1210 { (exit 1); exit 1; }; }
1211 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1212 { echo "$as_me: error: pwd does not report name of working directory" >&2
1213 { (exit 1); exit 1; }; }
1216 # Find the source files, if location was not specified.
1217 if test -z "$srcdir"; then
1218 ac_srcdir_defaulted=yes
1219 # Try the directory containing this script, then the parent directory.
1220 ac_confdir=`$as_dirname -- "$0" ||
1221 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1222 X"$0" : 'X\(//\)[^/]' \| \
1223 X"$0" : 'X\(//\)$' \| \
1224 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1225 echo X"$0" |
1226 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1227 s//\1/
1230 /^X\(\/\/\)[^/].*/{
1231 s//\1/
1234 /^X\(\/\/\)$/{
1235 s//\1/
1238 /^X\(\/\).*/{
1239 s//\1/
1242 s/.*/./; q'`
1243 srcdir=$ac_confdir
1244 if test ! -r "$srcdir/$ac_unique_file"; then
1245 srcdir=..
1247 else
1248 ac_srcdir_defaulted=no
1250 if test ! -r "$srcdir/$ac_unique_file"; then
1251 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1252 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1253 { (exit 1); exit 1; }; }
1255 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1256 ac_abs_confdir=`(
1257 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1258 { (exit 1); exit 1; }; }
1259 pwd)`
1260 # When building in place, set srcdir=.
1261 if test "$ac_abs_confdir" = "$ac_pwd"; then
1262 srcdir=.
1264 # Remove unnecessary trailing slashes from srcdir.
1265 # Double slashes in file names in object file debugging info
1266 # mess up M-x gdb in Emacs.
1267 case $srcdir in
1268 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1269 esac
1270 for ac_var in $ac_precious_vars; do
1271 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1272 eval ac_env_${ac_var}_value=\$${ac_var}
1273 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1274 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1275 done
1278 # Report the --help message.
1280 if test "$ac_init_help" = "long"; then
1281 # Omit some internal or obsolete options to make the list less imposing.
1282 # This message is too long to be a string in the A/UX 3.1 sh.
1283 cat <<_ACEOF
1284 \`configure' configures GNU C Library (see version.h) to adapt to many kinds of systems.
1286 Usage: $0 [OPTION]... [VAR=VALUE]...
1288 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1289 VAR=VALUE. See below for descriptions of some of the useful variables.
1291 Defaults for the options are specified in brackets.
1293 Configuration:
1294 -h, --help display this help and exit
1295 --help=short display options specific to this package
1296 --help=recursive display the short help of all the included packages
1297 -V, --version display version information and exit
1298 -q, --quiet, --silent do not print \`checking...' messages
1299 --cache-file=FILE cache test results in FILE [disabled]
1300 -C, --config-cache alias for \`--cache-file=config.cache'
1301 -n, --no-create do not create output files
1302 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1304 Installation directories:
1305 --prefix=PREFIX install architecture-independent files in PREFIX
1306 [$ac_default_prefix]
1307 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1308 [PREFIX]
1310 By default, \`make install' will install all the files in
1311 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1312 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1313 for instance \`--prefix=\$HOME'.
1315 For better control, use the options below.
1317 Fine tuning of the installation directories:
1318 --bindir=DIR user executables [EPREFIX/bin]
1319 --sbindir=DIR system admin executables [EPREFIX/sbin]
1320 --libexecdir=DIR program executables [EPREFIX/libexec]
1321 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1322 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1323 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1324 --libdir=DIR object code libraries [EPREFIX/lib]
1325 --includedir=DIR C header files [PREFIX/include]
1326 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1327 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1328 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1329 --infodir=DIR info documentation [DATAROOTDIR/info]
1330 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1331 --mandir=DIR man documentation [DATAROOTDIR/man]
1332 --docdir=DIR documentation root [DATAROOTDIR/doc/c-library]
1333 --htmldir=DIR html documentation [DOCDIR]
1334 --dvidir=DIR dvi documentation [DOCDIR]
1335 --pdfdir=DIR pdf documentation [DOCDIR]
1336 --psdir=DIR ps documentation [DOCDIR]
1337 _ACEOF
1339 cat <<\_ACEOF
1341 System types:
1342 --build=BUILD configure for building on BUILD [guessed]
1343 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1344 _ACEOF
1347 if test -n "$ac_init_help"; then
1348 case $ac_init_help in
1349 short | recursive ) echo "Configuration of GNU C Library (see version.h):";;
1350 esac
1351 cat <<\_ACEOF
1353 Optional Features:
1354 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1355 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1356 --disable-sanity-checks really do not use threads (should not be used except
1357 in special situations) [default=yes]
1358 --enable-check-abi do "make check-abi" in "make check" (no/warn/yes)
1359 [default=no]
1360 --enable-shared build shared library [default=yes if GNU ld & ELF]
1361 --enable-profile build profiled library [default=no]
1362 --enable-omitfp build undebuggable optimized library [default=no]
1363 --enable-bounded build with runtime bounds checking [default=no]
1364 --disable-versioning do not include versioning information in the library
1365 objects [default=yes if supported]
1366 --enable-oldest-abi=ABI configure the oldest ABI supported [e.g. 2.2]
1367 [default=glibc default]
1368 --enable-stackguard-randomization
1369 initialize __stack_chk_guard canary with a random
1370 number at program start
1371 --enable-add-ons[=DIRS...]
1372 configure and build add-ons in DIR1,DIR2,... search
1373 for add-ons if no parameter given
1374 --disable-hidden-plt do not hide internal function calls to avoid PLT
1375 --enable-bind-now disable lazy relocations in DSOs
1376 --enable-static-nss build static NSS modules [default=no]
1377 --disable-force-install don't force installation of files from this package,
1378 even if they are older than the installed files
1379 --enable-kernel=VERSION compile for compatibility with kernel not older than
1380 VERSION
1381 --enable-all-warnings enable all useful warnings gcc can issue
1383 Optional Packages:
1384 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1385 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1386 --with-gd=DIR find libgd include dir and library with prefix DIR
1387 --with-gd-include=DIR find libgd include files in DIR
1388 --with-gd-lib=DIR find libgd library files in DIR
1389 --with-fp if using floating-point hardware [default=yes]
1390 --with-binutils=PATH specify location of binutils (as and ld)
1391 --with-elf if using the ELF object format
1392 --with-selinux if building with SELinux support
1393 --with-xcoff if using the XCOFF object format
1394 --without-cvs if CVS should not be used
1395 --with-headers=PATH location of system headers to use (for example
1396 /usr/src/linux/include) [default=compiler default]
1397 --with-tls enable support for TLS
1398 --without-__thread do not use TLS features even when supporting them
1399 --with-cpu=CPU select code for CPU variant
1401 Some influential environment variables:
1402 CC C compiler command
1403 CFLAGS C compiler flags
1404 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1405 nonstandard directory <lib dir>
1406 LIBS libraries to pass to the linker, e.g. -l<library>
1407 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1408 you have headers in a nonstandard directory <include dir>
1409 CPP C preprocessor
1410 CXX C++ compiler command
1411 CXXFLAGS C++ compiler flags
1413 Use these variables to override the choices made by `configure' or to help
1414 it to find libraries and programs with nonstandard names/locations.
1416 Report bugs to <glibc>.
1417 _ACEOF
1418 ac_status=$?
1421 if test "$ac_init_help" = "recursive"; then
1422 # If there are subdirs, report their specific --help.
1423 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1424 test -d "$ac_dir" || continue
1425 ac_builddir=.
1427 case "$ac_dir" in
1428 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1430 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1431 # A ".." for each directory in $ac_dir_suffix.
1432 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1433 case $ac_top_builddir_sub in
1434 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1435 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1436 esac ;;
1437 esac
1438 ac_abs_top_builddir=$ac_pwd
1439 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1440 # for backward compatibility:
1441 ac_top_builddir=$ac_top_build_prefix
1443 case $srcdir in
1444 .) # We are building in place.
1445 ac_srcdir=.
1446 ac_top_srcdir=$ac_top_builddir_sub
1447 ac_abs_top_srcdir=$ac_pwd ;;
1448 [\\/]* | ?:[\\/]* ) # Absolute name.
1449 ac_srcdir=$srcdir$ac_dir_suffix;
1450 ac_top_srcdir=$srcdir
1451 ac_abs_top_srcdir=$srcdir ;;
1452 *) # Relative name.
1453 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1454 ac_top_srcdir=$ac_top_build_prefix$srcdir
1455 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1456 esac
1457 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1459 cd "$ac_dir" || { ac_status=$?; continue; }
1460 # Check for guested configure.
1461 if test -f "$ac_srcdir/configure.gnu"; then
1462 echo &&
1463 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1464 elif test -f "$ac_srcdir/configure"; then
1465 echo &&
1466 $SHELL "$ac_srcdir/configure" --help=recursive
1467 else
1468 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1469 fi || ac_status=$?
1470 cd "$ac_pwd" || { ac_status=$?; break; }
1471 done
1474 test -n "$ac_init_help" && exit $ac_status
1475 if $ac_init_version; then
1476 cat <<\_ACEOF
1477 GNU C Library configure (see version.h)
1478 generated by GNU Autoconf 2.61
1480 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1481 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1482 This configure script is free software; the Free Software Foundation
1483 gives unlimited permission to copy, distribute and modify it.
1484 _ACEOF
1485 exit
1487 cat >config.log <<_ACEOF
1488 This file contains any messages produced by compilers while
1489 running configure, to aid debugging if configure makes a mistake.
1491 It was created by GNU C Library $as_me (see version.h), which was
1492 generated by GNU Autoconf 2.61. Invocation command line was
1494 $ $0 $@
1496 _ACEOF
1497 exec 5>>config.log
1499 cat <<_ASUNAME
1500 ## --------- ##
1501 ## Platform. ##
1502 ## --------- ##
1504 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1505 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1506 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1507 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1508 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1510 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1511 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1513 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1514 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1515 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1516 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1517 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1518 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1519 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1521 _ASUNAME
1523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1524 for as_dir in $PATH
1526 IFS=$as_save_IFS
1527 test -z "$as_dir" && as_dir=.
1528 echo "PATH: $as_dir"
1529 done
1530 IFS=$as_save_IFS
1532 } >&5
1534 cat >&5 <<_ACEOF
1537 ## ----------- ##
1538 ## Core tests. ##
1539 ## ----------- ##
1541 _ACEOF
1544 # Keep a trace of the command line.
1545 # Strip out --no-create and --no-recursion so they do not pile up.
1546 # Strip out --silent because we don't want to record it for future runs.
1547 # Also quote any args containing shell meta-characters.
1548 # Make two passes to allow for proper duplicate-argument suppression.
1549 ac_configure_args=
1550 ac_configure_args0=
1551 ac_configure_args1=
1552 ac_must_keep_next=false
1553 for ac_pass in 1 2
1555 for ac_arg
1557 case $ac_arg in
1558 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1559 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1560 | -silent | --silent | --silen | --sile | --sil)
1561 continue ;;
1562 *\'*)
1563 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1564 esac
1565 case $ac_pass in
1566 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1568 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1569 if test $ac_must_keep_next = true; then
1570 ac_must_keep_next=false # Got value, back to normal.
1571 else
1572 case $ac_arg in
1573 *=* | --config-cache | -C | -disable-* | --disable-* \
1574 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1575 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1576 | -with-* | --with-* | -without-* | --without-* | --x)
1577 case "$ac_configure_args0 " in
1578 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1579 esac
1581 -* ) ac_must_keep_next=true ;;
1582 esac
1584 ac_configure_args="$ac_configure_args '$ac_arg'"
1586 esac
1587 done
1588 done
1589 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1590 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1592 # When interrupted or exit'd, cleanup temporary files, and complete
1593 # config.log. We remove comments because anyway the quotes in there
1594 # would cause problems or look ugly.
1595 # WARNING: Use '\'' to represent an apostrophe within the trap.
1596 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1597 trap 'exit_status=$?
1598 # Save into config.log some information that might help in debugging.
1600 echo
1602 cat <<\_ASBOX
1603 ## ---------------- ##
1604 ## Cache variables. ##
1605 ## ---------------- ##
1606 _ASBOX
1607 echo
1608 # The following way of writing the cache mishandles newlines in values,
1610 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1611 eval ac_val=\$$ac_var
1612 case $ac_val in #(
1613 *${as_nl}*)
1614 case $ac_var in #(
1615 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1616 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1617 esac
1618 case $ac_var in #(
1619 _ | IFS | as_nl) ;; #(
1620 *) $as_unset $ac_var ;;
1621 esac ;;
1622 esac
1623 done
1624 (set) 2>&1 |
1625 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1626 *${as_nl}ac_space=\ *)
1627 sed -n \
1628 "s/'\''/'\''\\\\'\'''\''/g;
1629 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1630 ;; #(
1632 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1634 esac |
1635 sort
1637 echo
1639 cat <<\_ASBOX
1640 ## ----------------- ##
1641 ## Output variables. ##
1642 ## ----------------- ##
1643 _ASBOX
1644 echo
1645 for ac_var in $ac_subst_vars
1647 eval ac_val=\$$ac_var
1648 case $ac_val in
1649 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1650 esac
1651 echo "$ac_var='\''$ac_val'\''"
1652 done | sort
1653 echo
1655 if test -n "$ac_subst_files"; then
1656 cat <<\_ASBOX
1657 ## ------------------- ##
1658 ## File substitutions. ##
1659 ## ------------------- ##
1660 _ASBOX
1661 echo
1662 for ac_var in $ac_subst_files
1664 eval ac_val=\$$ac_var
1665 case $ac_val in
1666 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1667 esac
1668 echo "$ac_var='\''$ac_val'\''"
1669 done | sort
1670 echo
1673 if test -s confdefs.h; then
1674 cat <<\_ASBOX
1675 ## ----------- ##
1676 ## confdefs.h. ##
1677 ## ----------- ##
1678 _ASBOX
1679 echo
1680 cat confdefs.h
1681 echo
1683 test "$ac_signal" != 0 &&
1684 echo "$as_me: caught signal $ac_signal"
1685 echo "$as_me: exit $exit_status"
1686 } >&5
1687 rm -f core *.core core.conftest.* &&
1688 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1689 exit $exit_status
1691 for ac_signal in 1 2 13 15; do
1692 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1693 done
1694 ac_signal=0
1696 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1697 rm -f -r conftest* confdefs.h
1699 # Predefined preprocessor variables.
1701 cat >>confdefs.h <<_ACEOF
1702 #define PACKAGE_NAME "$PACKAGE_NAME"
1703 _ACEOF
1706 cat >>confdefs.h <<_ACEOF
1707 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1708 _ACEOF
1711 cat >>confdefs.h <<_ACEOF
1712 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1713 _ACEOF
1716 cat >>confdefs.h <<_ACEOF
1717 #define PACKAGE_STRING "$PACKAGE_STRING"
1718 _ACEOF
1721 cat >>confdefs.h <<_ACEOF
1722 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1723 _ACEOF
1726 # Let the site file select an alternate cache file if it wants to.
1727 # Prefer explicitly selected file to automatically selected ones.
1728 if test -n "$CONFIG_SITE"; then
1729 set x "$CONFIG_SITE"
1730 elif test "x$prefix" != xNONE; then
1731 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1732 else
1733 set x "$ac_default_prefix/share/config.site" \
1734 "$ac_default_prefix/etc/config.site"
1736 shift
1737 for ac_site_file
1739 if test -r "$ac_site_file"; then
1740 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1741 echo "$as_me: loading site script $ac_site_file" >&6;}
1742 sed 's/^/| /' "$ac_site_file" >&5
1743 . "$ac_site_file"
1745 done
1747 if test -r "$cache_file"; then
1748 # Some versions of bash will fail to source /dev/null (special
1749 # files actually), so we avoid doing that.
1750 if test -f "$cache_file"; then
1751 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1752 echo "$as_me: loading cache $cache_file" >&6;}
1753 case $cache_file in
1754 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1755 *) . "./$cache_file";;
1756 esac
1758 else
1759 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1760 echo "$as_me: creating cache $cache_file" >&6;}
1761 >$cache_file
1764 # Check that the precious variables saved in the cache have kept the same
1765 # value.
1766 ac_cache_corrupted=false
1767 for ac_var in $ac_precious_vars; do
1768 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1769 eval ac_new_set=\$ac_env_${ac_var}_set
1770 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1771 eval ac_new_val=\$ac_env_${ac_var}_value
1772 case $ac_old_set,$ac_new_set in
1773 set,)
1774 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1775 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1776 ac_cache_corrupted=: ;;
1777 ,set)
1778 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1779 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1780 ac_cache_corrupted=: ;;
1781 ,);;
1783 if test "x$ac_old_val" != "x$ac_new_val"; then
1784 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1785 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1786 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1787 echo "$as_me: former value: $ac_old_val" >&2;}
1788 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1789 echo "$as_me: current value: $ac_new_val" >&2;}
1790 ac_cache_corrupted=:
1791 fi;;
1792 esac
1793 # Pass precious variables to config.status.
1794 if test "$ac_new_set" = set; then
1795 case $ac_new_val in
1796 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1797 *) ac_arg=$ac_var=$ac_new_val ;;
1798 esac
1799 case " $ac_configure_args " in
1800 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1801 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1802 esac
1804 done
1805 if $ac_cache_corrupted; then
1806 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1807 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1808 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1809 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1810 { (exit 1); exit 1; }; }
1837 ac_ext=c
1838 ac_cpp='$CPP $CPPFLAGS'
1839 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1840 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1841 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1845 ac_config_headers="$ac_config_headers config.h"
1847 ac_aux_dir=
1848 for ac_dir in scripts "$srcdir"/scripts; do
1849 if test -f "$ac_dir/install-sh"; then
1850 ac_aux_dir=$ac_dir
1851 ac_install_sh="$ac_aux_dir/install-sh -c"
1852 break
1853 elif test -f "$ac_dir/install.sh"; then
1854 ac_aux_dir=$ac_dir
1855 ac_install_sh="$ac_aux_dir/install.sh -c"
1856 break
1857 elif test -f "$ac_dir/shtool"; then
1858 ac_aux_dir=$ac_dir
1859 ac_install_sh="$ac_aux_dir/shtool install -c"
1860 break
1862 done
1863 if test -z "$ac_aux_dir"; then
1864 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in scripts \"$srcdir\"/scripts" >&5
1865 echo "$as_me: error: cannot find install-sh or install.sh in scripts \"$srcdir\"/scripts" >&2;}
1866 { (exit 1); exit 1; }; }
1869 # These three variables are undocumented and unsupported,
1870 # and are intended to be withdrawn in a future Autoconf release.
1871 # They can cause serious problems if a builder's source tree is in a directory
1872 # whose full name contains unusual characters.
1873 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1874 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1875 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1879 if test "`cd $srcdir; /bin/pwd`" = "`/bin/pwd`"; then
1880 { { echo "$as_me:$LINENO: error: you must configure in a separate build directory" >&5
1881 echo "$as_me: error: you must configure in a separate build directory" >&2;}
1882 { (exit 1); exit 1; }; }
1885 # This will get text that should go into config.make.
1886 config_vars=
1888 # Check for a --with-gd argument and set libgd-LDFLAGS in config.make.
1890 # Check whether --with-gd was given.
1891 if test "${with_gd+set}" = set; then
1892 withval=$with_gd; case "$with_gd" in
1893 yes|''|no) ;;
1894 *) libgd_include="-I$withval/include"
1895 libgd_ldflags="-L$withval/lib" ;;
1896 esac
1901 # Check whether --with-gd-include was given.
1902 if test "${with_gd_include+set}" = set; then
1903 withval=$with_gd_include; case "$with_gd_include" in
1904 ''|no) ;;
1905 *) libgd_include="-I$withval" ;;
1906 esac
1911 # Check whether --with-gd-lib was given.
1912 if test "${with_gd_lib+set}" = set; then
1913 withval=$with_gd_lib; case "$with_gd_lib" in
1914 ''|no) ;;
1915 *) libgd_ldflags="-L$withval" ;;
1916 esac
1921 if test -n "$libgd_include"; then
1922 config_vars="$config_vars
1923 CFLAGS-memusagestat.c = $libgd_include"
1925 if test -n "$libgd_ldflags"; then
1926 config_vars="$config_vars
1927 libgd-LDFLAGS = $libgd_ldflags"
1931 # Check whether --with-fp was given.
1932 if test "${with_fp+set}" = set; then
1933 withval=$with_fp; with_fp=$withval
1934 else
1935 with_fp=yes
1940 # Check whether --with-binutils was given.
1941 if test "${with_binutils+set}" = set; then
1942 withval=$with_binutils; path_binutils=$withval
1943 else
1944 path_binutils=''
1948 # Check whether --with-elf was given.
1949 if test "${with_elf+set}" = set; then
1950 withval=$with_elf; elf=$withval
1951 else
1952 elf=no
1956 # Check whether --with-selinux was given.
1957 if test "${with_selinux+set}" = set; then
1958 withval=$with_selinux; with_selinux=$withval
1959 else
1960 with_selinux=auto
1964 # Check whether --with-xcoff was given.
1965 if test "${with_xcoff+set}" = set; then
1966 withval=$with_xcoff; xcoff=$withval
1967 else
1968 xcoff=no
1972 # Check whether --with-cvs was given.
1973 if test "${with_cvs+set}" = set; then
1974 withval=$with_cvs; with_cvs=$withval
1975 else
1976 with_cvs=yes
1979 if test "$with_cvs" = yes; then
1980 if test -d $srcdir/CVS && grep :pserver: $srcdir/CVS/Root > /dev/null
1981 then
1982 with_cvs=no
1988 # Check whether --with-headers was given.
1989 if test "${with_headers+set}" = set; then
1990 withval=$with_headers; sysheaders=$withval
1991 else
1992 sysheaders=''
1996 # Check whether --enable-sanity-checks was given.
1997 if test "${enable_sanity_checks+set}" = set; then
1998 enableval=$enable_sanity_checks; enable_sanity=$enableval
1999 else
2000 enable_sanity=yes
2005 # Check whether --enable-check-abi was given.
2006 if test "${enable_check_abi+set}" = set; then
2007 enableval=$enable_check_abi; enable_check_abi=$enableval
2008 else
2009 enable_check_abi=no
2013 static=yes
2014 # Check whether --enable-shared was given.
2015 if test "${enable_shared+set}" = set; then
2016 enableval=$enable_shared; shared=$enableval
2017 else
2018 shared=default
2021 # Check whether --enable-profile was given.
2022 if test "${enable_profile+set}" = set; then
2023 enableval=$enable_profile; profile=$enableval
2024 else
2025 profile=no
2028 # Check whether --enable-omitfp was given.
2029 if test "${enable_omitfp+set}" = set; then
2030 enableval=$enable_omitfp; omitfp=$enableval
2031 else
2032 omitfp=no
2035 # Check whether --enable-bounded was given.
2036 if test "${enable_bounded+set}" = set; then
2037 enableval=$enable_bounded; bounded=$enableval
2038 else
2039 bounded=no
2042 # Check whether --enable-versioning was given.
2043 if test "${enable_versioning+set}" = set; then
2044 enableval=$enable_versioning; enable_versioning=$enableval
2045 else
2046 enable_versioning=yes
2050 # Check whether --enable-oldest-abi was given.
2051 if test "${enable_oldest_abi+set}" = set; then
2052 enableval=$enable_oldest_abi; oldest_abi=$enableval
2053 else
2054 oldest_abi=no
2057 if test "$oldest_abi" = yes || test "$oldest_abi" = no; then
2058 oldest_abi=default
2059 else
2060 cat >>confdefs.h <<_ACEOF
2061 #define GLIBC_OLDEST_ABI "$oldest_abi"
2062 _ACEOF
2067 # Check whether --enable-stackguard-randomization was given.
2068 if test "${enable_stackguard_randomization+set}" = set; then
2069 enableval=$enable_stackguard_randomization; enable_stackguard_randomize=$enableval
2070 else
2071 enable_stackguard_randomize=no
2074 if test "$enable_stackguard_randomize" = yes; then
2075 cat >>confdefs.h <<\_ACEOF
2076 #define ENABLE_STACKGUARD_RANDOMIZE 1
2077 _ACEOF
2081 # Check whether --enable-add-ons was given.
2082 if test "${enable_add_ons+set}" = set; then
2083 enableval=$enable_add_ons;
2084 else
2085 enable_add_ons=yes
2090 # Check whether --with-tls was given.
2091 if test "${with_tls+set}" = set; then
2092 withval=$with_tls; usetls=$withval
2093 else
2094 usetls=yes
2099 # Check whether --with-__thread was given.
2100 if test "${with___thread+set}" = set; then
2101 withval=$with___thread; use__thread=$withval
2102 else
2103 use__thread=yes
2107 # Check whether --enable-hidden-plt was given.
2108 if test "${enable_hidden_plt+set}" = set; then
2109 enableval=$enable_hidden_plt; hidden=$enableval
2110 else
2111 hidden=yes
2114 if test "x$hidden" = xno; then
2115 cat >>confdefs.h <<\_ACEOF
2116 #define NO_HIDDEN 1
2117 _ACEOF
2121 # Check whether --enable-bind-now was given.
2122 if test "${enable_bind_now+set}" = set; then
2123 enableval=$enable_bind_now; bindnow=$enableval
2124 else
2125 bindnow=no
2130 # Check whether --enable-static-nss was given.
2131 if test "${enable_static_nss+set}" = set; then
2132 enableval=$enable_static_nss; static_nss=$enableval
2133 else
2134 static_nss=no
2137 if test x"$static_nss" = xyes || test x"$shared" = xno; then
2138 static_nss=yes
2139 cat >>confdefs.h <<\_ACEOF
2140 #define DO_STATIC_NSS 1
2141 _ACEOF
2145 # Check whether --enable-force-install was given.
2146 if test "${enable_force_install+set}" = set; then
2147 enableval=$enable_force_install; force_install=$enableval
2148 else
2149 force_install=yes
2154 # Check whether --enable-kernel was given.
2155 if test "${enable_kernel+set}" = set; then
2156 enableval=$enable_kernel; minimum_kernel=$enableval
2159 if test "$minimum_kernel" = yes || test "$minimum_kernel" = no; then
2160 # Better nothing than this.
2161 minimum_kernel=""
2162 else
2163 if test "$minimum_kernel" = current; then
2164 minimum_kernel=`uname -r 2>/dev/null` || minimum_kernel=
2168 # Check whether --enable-all-warnings was given.
2169 if test "${enable_all_warnings+set}" = set; then
2170 enableval=$enable_all_warnings; all_warnings=$enableval
2175 # Make sure we can run config.sub.
2176 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2177 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2178 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2179 { (exit 1); exit 1; }; }
2181 { echo "$as_me:$LINENO: checking build system type" >&5
2182 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2183 if test "${ac_cv_build+set}" = set; then
2184 echo $ECHO_N "(cached) $ECHO_C" >&6
2185 else
2186 ac_build_alias=$build_alias
2187 test "x$ac_build_alias" = x &&
2188 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2189 test "x$ac_build_alias" = x &&
2190 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2191 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2192 { (exit 1); exit 1; }; }
2193 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2194 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2195 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2196 { (exit 1); exit 1; }; }
2199 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2200 echo "${ECHO_T}$ac_cv_build" >&6; }
2201 case $ac_cv_build in
2202 *-*-*) ;;
2203 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2204 echo "$as_me: error: invalid value of canonical build" >&2;}
2205 { (exit 1); exit 1; }; };;
2206 esac
2207 build=$ac_cv_build
2208 ac_save_IFS=$IFS; IFS='-'
2209 set x $ac_cv_build
2210 shift
2211 build_cpu=$1
2212 build_vendor=$2
2213 shift; shift
2214 # Remember, the first character of IFS is used to create $*,
2215 # except with old shells:
2216 build_os=$*
2217 IFS=$ac_save_IFS
2218 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2221 { echo "$as_me:$LINENO: checking host system type" >&5
2222 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2223 if test "${ac_cv_host+set}" = set; then
2224 echo $ECHO_N "(cached) $ECHO_C" >&6
2225 else
2226 if test "x$host_alias" = x; then
2227 ac_cv_host=$ac_cv_build
2228 else
2229 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2230 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2231 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2232 { (exit 1); exit 1; }; }
2236 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2237 echo "${ECHO_T}$ac_cv_host" >&6; }
2238 case $ac_cv_host in
2239 *-*-*) ;;
2240 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2241 echo "$as_me: error: invalid value of canonical host" >&2;}
2242 { (exit 1); exit 1; }; };;
2243 esac
2244 host=$ac_cv_host
2245 ac_save_IFS=$IFS; IFS='-'
2246 set x $ac_cv_host
2247 shift
2248 host_cpu=$1
2249 host_vendor=$2
2250 shift; shift
2251 # Remember, the first character of IFS is used to create $*,
2252 # except with old shells:
2253 host_os=$*
2254 IFS=$ac_save_IFS
2255 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2259 # The way shlib-versions is used to generate soversions.mk uses a
2260 # fairly simplistic model for name recognition that can't distinguish
2261 # i486-pc-linux-gnu fully from i486-pc-gnu. So we mutate a $host_os
2262 # of `gnu*' here to be `gnu-gnu*' just so that shlib-versions can
2263 # tell. This doesn't get used much beyond that, so it's fairly safe.
2264 case "$host_os" in
2265 linux*)
2267 gnu*)
2268 host_os=`echo $host_os | sed -e 's/gnu/gnu-gnu/'`
2270 esac
2272 # We keep the original values in `$config_*' and never modify them, so we
2273 # can write them unchanged into config.make. Everything else uses
2274 # $machine, $vendor, and $os, and changes them whenever convenient.
2275 config_machine=$host_cpu config_vendor=$host_vendor config_os=$host_os
2277 # Don't allow vendor == "unknown"
2278 test "$config_vendor" = unknown && config_vendor=
2279 config_os="`echo $config_os | sed 's/^unknown-//'`"
2281 # Some configurations imply other options.
2282 case "$host_os" in
2283 # i586-linuxaout is mangled into i586-pc-linux-gnuaout
2284 linux*ecoff* | linux*aout* | gnu*aout* | gnu*ecoff*)
2286 gnu* | linux* | freebsd* | netbsd* | sysv4* | solaris2* | irix6*)
2287 # These systems (almost) always use the ELF format.
2288 elf=yes
2290 aix*)
2291 # These systems are always xcoff
2292 xcoff=yes
2293 elf=no
2295 esac
2297 # The configure fragment of an add-on port can modify these to supplement
2298 # or override the table in the case statement below. No fragment should
2299 # ever change the config_* variables, however.
2300 machine=$config_machine
2301 vendor=$config_vendor
2302 os=$config_os
2303 base_os=''
2305 # config.guess on some IBM machines says `rs6000' instead of `powerpc'.
2306 # Unify this here.
2307 if test "$machine" = rs6000; then
2308 machine="powerpc"
2311 # Braindead PowerPC box with absolutely no FPU.
2312 case "$machine-$host_os" in
2313 powerpc*-*soft)
2314 with_fp=no
2316 esac
2318 submachine=
2320 # Check whether --with-cpu was given.
2321 if test "${with_cpu+set}" = set; then
2322 withval=$with_cpu; case "$withval" in
2323 yes|'') { { echo "$as_me:$LINENO: error: --with-cpu requires an argument" >&5
2324 echo "$as_me: error: --with-cpu requires an argument" >&2;}
2325 { (exit 1); exit 1; }; } ;;
2326 no) ;;
2327 *) submachine="$withval" ;;
2328 esac
2333 # An add-on can set this when it wants to disable the sanity check below.
2334 libc_config_ok=no
2336 subdirs="$subdirs "
2339 case "$enable_add_ons" in
2340 ''|no) add_ons= ;;
2341 yes|'*')
2342 add_ons=`cd $srcdir && ls -d 2> /dev/null */configure */sysdeps |
2343 sed 's@/[^/]*$@@' | sort | uniq`
2344 add_ons_automatic=yes
2346 *) add_ons=`echo "$enable_add_ons" | sed 's/,/ /g'`
2347 add_ons_automatic=no ;;
2348 esac
2350 configured_add_ons=
2351 add_ons_sfx=
2352 add_ons_pfx=
2353 if test x"$add_ons" != x; then
2354 for f in $add_ons; do
2355 # Some sanity checks
2356 case "$f" in
2357 crypt)
2358 { { echo "$as_me:$LINENO: error:
2359 *** It seems that you're using an old \`crypt' add-on. crypt is now
2360 *** part of glibc and using the old add-on will not work with this
2361 *** release. Start again with fresh sources and without the old
2362 *** \`crypt' add-on." >&5
2363 echo "$as_me: error:
2364 *** It seems that you're using an old \`crypt' add-on. crypt is now
2365 *** part of glibc and using the old add-on will not work with this
2366 *** release. Start again with fresh sources and without the old
2367 *** \`crypt' add-on." >&2;}
2368 { (exit 1); exit 1; }; }
2370 localedata)
2371 { { echo "$as_me:$LINENO: error:
2372 *** It seems that you're using an old \`localedata' add-on. localedata
2373 *** is now part of glibc and using the old add-on will not work with
2374 *** this release. Start again with fresh sources and without the old
2375 *** \`localedata' add-on." >&5
2376 echo "$as_me: error:
2377 *** It seems that you're using an old \`localedata' add-on. localedata
2378 *** is now part of glibc and using the old add-on will not work with
2379 *** this release. Start again with fresh sources and without the old
2380 *** \`localedata' add-on." >&2;}
2381 { (exit 1); exit 1; }; }
2383 esac
2384 done
2386 # Now source each add-on's configure fragment.
2387 # The fragments can use $srcdir/$libc_add_on to find themselves,
2388 # and test $add_ons_automatic to see if they were explicitly requested.
2389 # A fragment can clear (or even change) $libc_add_on to affect
2390 # whether it goes into the list to be actually used in the build.
2391 use_add_ons=
2392 for libc_add_on in $add_ons; do
2393 # Test whether such a directory really exists.
2394 # It can be absolute, or relative to $srcdir, or relative to the build dir.
2395 case "$libc_add_on" in
2397 libc_add_on_srcdir=$libc_add_on
2400 test -d "$srcdir/$libc_add_on" || {
2401 if test -d "$libc_add_on"; then
2402 libc_add_on="`pwd`/$libc_add_on"
2403 else
2404 { { echo "$as_me:$LINENO: error: add-on directory \"$libc_add_on\" does not exist" >&5
2405 echo "$as_me: error: add-on directory \"$libc_add_on\" does not exist" >&2;}
2406 { (exit 1); exit 1; }; }
2409 libc_add_on_srcdir=$srcdir/$libc_add_on
2411 esac
2413 libc_add_on_frag=$libc_add_on_srcdir/configure
2414 libc_add_on_canonical=
2415 if test -r "$libc_add_on_frag"; then
2416 { echo "$as_me:$LINENO: running configure fragment for add-on $libc_add_on" >&5
2417 echo "$as_me: running configure fragment for add-on $libc_add_on" >&6;}
2418 libc_add_on_canonical=unknown
2419 libc_add_on_subdirs=
2420 . "$libc_add_on_frag"
2421 test -z "$libc_add_on" || {
2422 configured_add_ons="$configured_add_ons $libc_add_on"
2423 if test "x$libc_add_on_canonical" = xunknown; then
2424 { { echo "$as_me:$LINENO: error: fragment must set \$libc_add_on_canonical" >&5
2425 echo "$as_me: error: fragment must set \$libc_add_on_canonical" >&2;}
2426 { (exit 1); exit 1; }; }
2428 for d in $libc_add_on_subdirs; do
2429 case "$libc_add_on" in
2430 /*) subdir_srcdir="$libc_add_on" ;;
2431 *) subdir_srcdir="\$(..)$libc_add_on" ;;
2432 esac
2433 case "$d" in
2435 d="${libc_add_on_canonical:-$libc_add_on}"
2438 subdir_srcdir="$d"
2441 subdir_srcdir="$subdir_srcdir/$d"
2443 esac
2444 d=`echo "$d" | sed 's@/*$@@;s@^.*/@@'`
2445 add_on_subdirs="$add_on_subdirs $d"
2446 test "$subdir_srcdir" = "\$(..)$d" || config_vars="$config_vars
2447 $d-srcdir = $subdir_srcdir"
2448 done
2451 if test -n "$libc_add_on"; then
2452 if frags=`ls -d $libc_add_on_srcdir/sysdeps/*/preconfigure 2> /dev/null`
2453 then
2454 { echo "$as_me:$LINENO: checking add-on $libc_add_on for preconfigure fragments" >&5
2455 echo $ECHO_N "checking add-on $libc_add_on for preconfigure fragments... $ECHO_C" >&6; }
2456 for frag in $frags; do
2457 name=`echo "$frag" | sed 's@/[^/]*$@@;s@^.*/@@'`
2458 echo $ECHO_N "$name $ECHO_C" >&6
2459 . "$frag"
2460 done
2461 { echo "$as_me:$LINENO: result: " >&5
2462 echo "${ECHO_T}" >&6; }
2464 use_add_ons="$use_add_ons $libc_add_on"
2465 add_ons_pfx="$add_ons_pfx $libc_add_on/"
2466 test -z "$libc_add_on_canonical" ||
2467 add_ons_sfx="$add_ons_sfx /$libc_add_on_canonical"
2469 done
2470 # Use echo to strip excess whitespace.
2471 add_ons="`echo $use_add_ons`"
2478 ### I put this here to prevent those annoying emails from people who cannot
2479 ### read and try to compile glibc on unsupported platforms. --drepper
2481 ### By using the undocumented --enable-hacker-mode option for configure
2482 ### one can skip this test to make the configuration not fail for unsupported
2483 ### platforms.
2485 if test -z "$enable_hacker_mode" && test x"$libc_config_ok" != xyes; then
2486 case "$machine-$host_os" in
2487 *-linux* | *-gnu* | arm*-none* | powerpc-aix4.3.*)
2490 echo "*** The GNU C library is currently not available for this platform."
2491 echo "*** So far nobody cared to port it and if there is no volunteer it"
2492 echo "*** might never happen. So, if you have interest to see glibc on"
2493 echo "*** this platform visit"
2494 echo "*** http://www.gnu.org/software/libc/porting.html"
2495 echo "*** and join the group of porters"
2496 exit 1
2498 esac
2501 # Expand the configuration machine name into a subdirectory by architecture
2502 # type and particular chip. If an add-on configure fragment already set
2503 # base_machine, we don't change it.
2504 test -n "$base_machine" || case "$machine" in
2505 a29k | am29000) base_machine=a29k machine=a29k ;;
2506 alpha*) base_machine=alpha machine=alpha/$machine ;;
2507 c3[012]) base_machine=cx0 machine=cx0/c30 ;;
2508 c4[04]) base_machine=cx0 machine=cx0/c40 ;;
2509 i[34567]86) base_machine=i386 machine=i386/$machine ;;
2510 ia64) base_machine=ia64 machine=ia64 ;;
2511 m88???) base_machine=m88k machine=m88k/$machine ;;
2512 m88k) base_machine=m88k machine=m88k/m88100 ;;
2513 powerpc) base_machine=powerpc machine=powerpc/powerpc32 ;;
2514 powerpc64) base_machine=powerpc machine=powerpc/powerpc64 ;;
2515 s390) base_machine=s390 machine=s390/s390-32 ;;
2516 s390x) base_machine=s390 machine=s390/s390-64 ;;
2517 sh3*) base_machine=sh machine=sh/sh3 ;;
2518 sh4*) base_machine=sh machine=sh/sh4 ;;
2519 sparc | sparcv[67])
2520 base_machine=sparc machine=sparc/sparc32 ;;
2521 sparcv8 | supersparc | hypersparc)
2522 base_machine=sparc machine=sparc/sparc32/sparcv8 ;;
2523 sparcv8plus | sparcv8plusa | sparcv9)
2524 base_machine=sparc machine=sparc/sparc32/sparcv9 ;;
2525 sparcv8plusb | sparcv9b)
2526 base_machine=sparc machine=sparc/sparc32/sparcv9/sparcv9b ;;
2527 sparcv9v)
2528 base_machine=sparc machine=sparc/sparc32/sparcv9/sparcv9v ;;
2529 sparcv9v2)
2530 base_machine=sparc machine=sparc/sparc32/sparcv9/sparcv9v2 ;;
2531 sparc64)
2532 base_machine=sparc machine=sparc/sparc64 ;;
2533 sparc64b)
2534 base_machine=sparc machine=sparc/sparc64/sparcv9b ;;
2535 sparc64v)
2536 base_machine=sparc machine=sparc/sparc64/sparcv9v ;;
2537 sparc64v2)
2538 base_machine=sparc machine=sparc/sparc64/sparcv9v2 ;;
2539 *) base_machine=$machine ;;
2540 esac
2543 if test "$base_machine" = "i386"; then
2544 cat >>confdefs.h <<\_ACEOF
2545 #define USE_REGPARMS 1
2546 _ACEOF
2550 # Compute the list of sysdep directories for this configuration.
2551 # This can take a while to compute.
2552 sysdep_dir=$srcdir/sysdeps
2553 { echo "$as_me:$LINENO: checking sysdep dirs" >&5
2554 echo $ECHO_N "checking sysdep dirs... $ECHO_C" >&6; }
2555 # Make sco3.2v4 become sco3.2.4 and sunos4.1.1_U1 become sunos4.1.1.U1.
2556 os="`echo $os | sed 's/\([0-9A-Z]\)[v_]\([0-9A-Z]\)/\1.\2/g'`"
2558 test "x$base_os" != x || case "$os" in
2559 gnu*)
2560 base_os=mach/hurd ;;
2561 netbsd* | 386bsd* | freebsd* | bsdi*)
2562 base_os=unix/bsd/bsd4.4 ;;
2563 osf* | sunos* | ultrix* | newsos* | dynix* | *bsd*)
2564 base_os=unix/bsd ;;
2565 sysv* | isc* | esix* | sco* | minix* | irix4* | linux*)
2566 base_os=unix/sysv ;;
2567 irix6*)
2568 base_os=unix/sysv/irix6/$os ;;
2569 solaris[2-9]*)
2570 base_os=unix/sysv/sysv4 ;;
2571 hpux*)
2572 base_os=unix/sysv/hpux/$os ;;
2573 aix4.3*)
2574 base_os=unix/sysv/aix/aix4.3 ;;
2575 none)
2576 base_os=standalone ;;
2577 esac
2579 # For sunos4.1.1, try sunos4.1.1, then sunos4.1, then sunos4, then sunos.
2580 tail=$os
2581 ostry=$os
2582 while o=`echo $tail | sed 's/\.[^.]*$//'`; test $o != $tail; do
2583 ostry="$ostry /$o"
2584 tail=$o
2585 done
2586 o=`echo $tail | sed 's/[0-9]*$//'`
2587 if test $o != $tail; then
2588 ostry="$ostry /$o"
2590 # For linux-gnu, try linux-gnu, then linux.
2591 o=`echo $tail | sed 's/-.*$//'`
2592 if test $o != $tail; then
2593 ostry="$ostry /$o"
2596 # For unix/sysv/sysv4, try unix/sysv/sysv4, then unix/sysv, then unix.
2597 base=
2598 tail=$base_os
2599 while b=`echo $tail | sed 's@^\(.*\)/\([^/]*\)$@& \1@'`; test -n "$b"; do
2600 set $b
2601 base="$base /$1"
2602 tail="$2"
2603 done
2605 # For sparc/sparc32, try sparc/sparc32 and then sparc.
2606 mach=
2607 tail=$machine${submachine:+/$submachine}
2608 while m=`echo $tail | sed 's@^\(.*\)/\([^/]*\)$@& \1@'`; test -n "$m"; do
2609 set $m
2610 # Prepend the machine's FPU directory unless --without-fp.
2611 if test "$with_fp" = yes; then
2612 mach="$mach /$1/fpu"
2613 else
2614 mach="$mach /$1/nofpu"
2616 mach="$mach /$1"
2617 tail="$2"
2618 done
2621 # Find what sysdep directories exist.
2622 sysnames_add_ons=
2623 sysnames=
2624 for b in $base ''; do
2625 for m0 in $mach ''; do
2626 for v in /$vendor ''; do
2627 test "$v" = / && continue
2628 for o in /$ostry ''; do
2629 test "$o" = / && continue
2630 for m in $mach ''; do
2631 for d in $add_ons_pfx ''; do
2632 for a in $add_ons_sfx ''; do
2633 if test -n "$m0$m0sub$b$v$o$m$msub"; then
2634 try_srcdir="${srcdir}/"
2635 case "$d" in
2636 /*) try_srcdir= ;;
2637 esac
2638 try="${d}sysdeps$m0$m0sub$b$v$o$m$msub$a"
2639 test -n "$enable_debug_configure" &&
2640 echo "$0 DEBUG: try $try" >&2
2641 if test -d "$try_srcdir$try"; then
2642 sysnames="$sysnames $try"
2643 { test -n "$o" || test -n "$b"; } && os_used=t
2644 { test -n "$m" || test -n "$m0"; } && machine_used=t
2645 case x${m0:-$m} in
2646 x*/$submachine) submachine_used=t ;;
2647 esac
2648 if test -n "$d"; then
2649 case "$sysnames_add_ons" in
2650 *" $d "*) ;;
2651 *|'') sysnames_add_ons="$sysnames_add_ons $d" ;;
2652 esac
2656 done
2657 done
2658 done
2659 done
2660 done
2661 done
2662 done
2664 if test -z "$os_used" && test "$os" != none; then
2665 { { echo "$as_me:$LINENO: error: Operating system $os is not supported." >&5
2666 echo "$as_me: error: Operating system $os is not supported." >&2;}
2667 { (exit 1); exit 1; }; }
2669 if test -z "$machine_used" && test "$machine" != none; then
2670 { { echo "$as_me:$LINENO: error: The $machine is not supported." >&5
2671 echo "$as_me: error: The $machine is not supported." >&2;}
2672 { (exit 1); exit 1; }; }
2674 if test -z "$submachine_used" && test -n "$submachine"; then
2675 { { echo "$as_me:$LINENO: error: The $submachine subspecies of $host_cpu is not supported." >&5
2676 echo "$as_me: error: The $submachine subspecies of $host_cpu is not supported." >&2;}
2677 { (exit 1); exit 1; }; }
2681 # We have now validated the configuration.
2684 # If using ELF, look for an `elf' subdirectory of each machine directory.
2685 # We prepend these rather than inserting them whereever the machine appears
2686 # because things specified by the machine's ELF ABI should override
2687 # OS-specific things, and should always be the same for any OS on the
2688 # machine (otherwise what's the point of an ABI?).
2689 if test "$elf" = yes; then
2690 elf_dirs=
2691 for d in $add_ons_pfx ''; do
2692 for m in $mach; do
2693 if test -d $srcdir/${d}sysdeps$m/elf; then
2694 elf_dirs="$elf_dirs ${d}sysdeps$m/elf"
2696 done
2697 done
2698 sysnames="`echo $elf_dirs | sed -e 's,//,/,g'` $sysnames"
2702 # Expand the list of system names into a full list of directories
2703 # from each element's parent name and Implies file (if present).
2704 set $sysnames
2705 names=
2706 while test $# -gt 0; do
2707 name=$1
2708 shift
2710 case " $names " in *" $name "*)
2711 # Already in the list.
2712 continue
2713 esac
2715 # Report each name as we discover it, so there is no long pause in output.
2716 echo $ECHO_N "$name $ECHO_C" >&6
2718 name_base=`echo $name | sed -e 's@\(.*sysdeps\)/.*@\1@'`
2720 case $name in
2721 /*) xsrcdir= ;;
2722 *) xsrcdir=$srcdir/ ;;
2723 esac
2724 test -n "$enable_debug_configure" &&
2725 echo "DEBUG: name/Implies $xsrcdir$name/Implies" >&2
2727 if test -f $xsrcdir$name/Implies; then
2728 # Collect more names from the `Implies' file (removing comments).
2729 implied_candidate="`sed 's/#.*$//' < $xsrcdir$name/Implies`"
2730 implied=
2731 for x in $implied_candidate; do
2732 found=no
2733 if test -d $xsrcdir$name_base/$x; then
2734 implied="$implied $name_base/$x";
2735 found=yes
2737 for d in $add_ons_pfx ''; do
2738 try="${d}sysdeps/$x"
2739 case $d in
2740 /*) try_srcdir= ;;
2741 *) try_srcdir=$srcdir/ ;;
2742 esac
2743 test -n "$enable_debug_configure" &&
2744 echo "DEBUG: $name implied $x try($d) {$try_srcdir}$try" >&2
2745 if test $try != $xsrcdir$name_base/$x && test -d $try_srcdir$try;
2746 then
2747 implied="$implied $try"
2748 found=yes
2749 case "$sysnames_add_ons" in
2750 *" $d "*) ;;
2751 *|'') sysnames_add_ons="$sysnames_add_ons $d" ;;
2752 esac
2754 done
2755 if test $found = no; then
2756 { echo "$as_me:$LINENO: WARNING: $name/Implies specifies nonexistent $x" >&5
2757 echo "$as_me: WARNING: $name/Implies specifies nonexistent $x" >&2;}
2759 done
2760 else
2761 implied=
2764 # Add NAME to the list of names.
2765 names="$names $name"
2767 # Find the parent of NAME, using the empty string if it has none.
2768 parent="`echo $name | sed -n -e 's=/[^/]*$==' -e '/sysdeps$/q' -e p`"
2770 # Add the names implied by NAME, and NAME's parent (if it has one), to
2771 # the list of names to be processed (the argument list). We prepend the
2772 # implied names to the list and append the parent. We want implied
2773 # directories to come before further directories inferred from the
2774 # configuration components; this ensures that for sysv4, unix/common
2775 # (implied by unix/sysv/sysv4) comes before unix/sysv (in ostry (here $*)
2776 # after sysv4).
2777 sysnames="`echo $implied $* $parent`"
2778 test -n "$sysnames" && set $sysnames
2779 done
2781 # Add the default directories.
2782 default_sysnames=sysdeps/generic
2783 if test "$elf" = yes; then
2784 default_sysnames="sysdeps/generic/elf $default_sysnames"
2786 sysnames="$names $default_sysnames"
2788 # The other names were emitted during the scan.
2789 { echo "$as_me:$LINENO: result: $default_sysnames" >&5
2790 echo "${ECHO_T}$default_sysnames" >&6; }
2792 # Collect the list of add-ons that supply partial sysdeps trees.
2793 sysdeps_add_ons=
2794 for add_on in $add_ons; do
2795 case "$add_on" in
2796 /*) xsrcdir= ;;
2797 *) xsrcdir="$srcdir/" ;;
2798 esac
2800 test -d "$xsrcdir$add_on/sysdeps" || {
2801 case "$configured_add_ons " in
2802 *" $add_on "*) ;;
2803 *|'')
2804 { { echo "$as_me:$LINENO: error: add-on $add_on has no configure fragment or sysdeps tree" >&5
2805 echo "$as_me: error: add-on $add_on has no configure fragment or sysdeps tree" >&2;}
2806 { (exit 1); exit 1; }; }
2808 esac
2809 continue
2812 sysdeps_add_ons="$sysdeps_add_ons $add_on"
2813 case "$sysnames_add_ons" in
2814 *" $add_on/ "*) ;;
2815 *|'')
2816 { echo "$as_me:$LINENO: WARNING: add-on $add_on contributed no sysdeps directories" >&5
2817 echo "$as_me: WARNING: add-on $add_on contributed no sysdeps directories" >&2;}
2818 continue ;;
2819 esac
2821 found=no
2822 for d in $sysnames; do
2823 case "$d" in
2824 $add_on/sysdeps/*) ;;
2825 *) continue ;;
2826 esac
2827 (cd "$xsrcdir$d" && for f in *[!~]; do
2828 case "$f" in
2829 sys|bits)
2830 for ff in $f/*.h; do
2831 test -d "$ff" || { test -e "$ff" && exit 88; }
2832 done
2835 test -d "$f" || { test -e "$f" && exit 88; }
2837 esac
2838 done)
2839 if test $? -eq 88; then
2840 found=yes
2841 break
2843 done
2844 if test $found = no; then
2845 { echo "$as_me:$LINENO: WARNING: add-on $add_on contributed no useful sysdeps directories" >&5
2846 echo "$as_me: WARNING: add-on $add_on contributed no useful sysdeps directories" >&2;}
2848 done
2852 ### Locate tools.
2854 # Find a good install program. We prefer a C program (faster),
2855 # so one script is as good as another. But avoid the broken or
2856 # incompatible versions:
2857 # SysV /etc/install, /usr/sbin/install
2858 # SunOS /usr/etc/install
2859 # IRIX /sbin/install
2860 # AIX /bin/install
2861 # AmigaOS /C/install, which installs bootblocks on floppy discs
2862 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2863 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2864 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2865 # OS/2's system install, which has a completely different semantic
2866 # ./install, which can be erroneously created by make from ./install.sh.
2867 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2868 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2869 if test -z "$INSTALL"; then
2870 if test "${ac_cv_path_install+set}" = set; then
2871 echo $ECHO_N "(cached) $ECHO_C" >&6
2872 else
2873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2874 for as_dir in $PATH
2876 IFS=$as_save_IFS
2877 test -z "$as_dir" && as_dir=.
2878 # Account for people who put trailing slashes in PATH elements.
2879 case $as_dir/ in
2880 ./ | .// | /cC/* | \
2881 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2882 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2883 /usr/ucb/* ) ;;
2885 # OSF1 and SCO ODT 3.0 have their own names for install.
2886 # Don't use installbsd from OSF since it installs stuff as root
2887 # by default.
2888 for ac_prog in ginstall scoinst install; do
2889 for ac_exec_ext in '' $ac_executable_extensions; do
2890 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2891 if test $ac_prog = install &&
2892 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2893 # AIX install. It has an incompatible calling convention.
2895 elif test $ac_prog = install &&
2896 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2897 # program-specific install script used by HP pwplus--don't use.
2899 else
2900 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2901 break 3
2904 done
2905 done
2907 esac
2908 done
2909 IFS=$as_save_IFS
2913 if test "${ac_cv_path_install+set}" = set; then
2914 INSTALL=$ac_cv_path_install
2915 else
2916 # As a last resort, use the slow shell script. Don't cache a
2917 # value for INSTALL within a source directory, because that will
2918 # break other packages using the cache if that directory is
2919 # removed, or if the value is a relative name.
2920 INSTALL=$ac_install_sh
2923 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2924 echo "${ECHO_T}$INSTALL" >&6; }
2926 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2927 # It thinks the first close brace ends the variable substitution.
2928 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2930 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2932 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2934 if test "$INSTALL" = "${srcdir}/scripts/install-sh -c"; then
2935 # The makefiles need to use a different form to find it in $srcdir.
2936 INSTALL='\$(..)./scripts/install-sh -c'
2938 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
2939 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
2940 LN_S=$as_ln_s
2941 if test "$LN_S" = "ln -s"; then
2942 { echo "$as_me:$LINENO: result: yes" >&5
2943 echo "${ECHO_T}yes" >&6; }
2944 else
2945 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
2946 echo "${ECHO_T}no, using $LN_S" >&6; }
2950 ac_ext=c
2951 ac_cpp='$CPP $CPPFLAGS'
2952 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2953 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2954 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2955 if test -n "$ac_tool_prefix"; then
2956 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2957 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2958 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2959 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2960 if test "${ac_cv_prog_CC+set}" = set; then
2961 echo $ECHO_N "(cached) $ECHO_C" >&6
2962 else
2963 if test -n "$CC"; then
2964 ac_cv_prog_CC="$CC" # Let the user override the test.
2965 else
2966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2967 for as_dir in $PATH
2969 IFS=$as_save_IFS
2970 test -z "$as_dir" && as_dir=.
2971 for ac_exec_ext in '' $ac_executable_extensions; do
2972 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2973 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2974 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2975 break 2
2977 done
2978 done
2979 IFS=$as_save_IFS
2983 CC=$ac_cv_prog_CC
2984 if test -n "$CC"; then
2985 { echo "$as_me:$LINENO: result: $CC" >&5
2986 echo "${ECHO_T}$CC" >&6; }
2987 else
2988 { echo "$as_me:$LINENO: result: no" >&5
2989 echo "${ECHO_T}no" >&6; }
2994 if test -z "$ac_cv_prog_CC"; then
2995 ac_ct_CC=$CC
2996 # Extract the first word of "gcc", so it can be a program name with args.
2997 set dummy gcc; ac_word=$2
2998 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2999 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3000 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3001 echo $ECHO_N "(cached) $ECHO_C" >&6
3002 else
3003 if test -n "$ac_ct_CC"; then
3004 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3005 else
3006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3007 for as_dir in $PATH
3009 IFS=$as_save_IFS
3010 test -z "$as_dir" && as_dir=.
3011 for ac_exec_ext in '' $ac_executable_extensions; do
3012 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3013 ac_cv_prog_ac_ct_CC="gcc"
3014 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3015 break 2
3017 done
3018 done
3019 IFS=$as_save_IFS
3023 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3024 if test -n "$ac_ct_CC"; then
3025 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3026 echo "${ECHO_T}$ac_ct_CC" >&6; }
3027 else
3028 { echo "$as_me:$LINENO: result: no" >&5
3029 echo "${ECHO_T}no" >&6; }
3032 if test "x$ac_ct_CC" = x; then
3033 CC=""
3034 else
3035 case $cross_compiling:$ac_tool_warned in
3036 yes:)
3037 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3038 whose name does not start with the host triplet. If you think this
3039 configuration is useful to you, please write to autoconf@gnu.org." >&5
3040 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3041 whose name does not start with the host triplet. If you think this
3042 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3043 ac_tool_warned=yes ;;
3044 esac
3045 CC=$ac_ct_CC
3047 else
3048 CC="$ac_cv_prog_CC"
3051 if test -z "$CC"; then
3052 if test -n "$ac_tool_prefix"; then
3053 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3054 set dummy ${ac_tool_prefix}cc; ac_word=$2
3055 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3056 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3057 if test "${ac_cv_prog_CC+set}" = set; then
3058 echo $ECHO_N "(cached) $ECHO_C" >&6
3059 else
3060 if test -n "$CC"; then
3061 ac_cv_prog_CC="$CC" # Let the user override the test.
3062 else
3063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3064 for as_dir in $PATH
3066 IFS=$as_save_IFS
3067 test -z "$as_dir" && as_dir=.
3068 for ac_exec_ext in '' $ac_executable_extensions; do
3069 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3070 ac_cv_prog_CC="${ac_tool_prefix}cc"
3071 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3072 break 2
3074 done
3075 done
3076 IFS=$as_save_IFS
3080 CC=$ac_cv_prog_CC
3081 if test -n "$CC"; then
3082 { echo "$as_me:$LINENO: result: $CC" >&5
3083 echo "${ECHO_T}$CC" >&6; }
3084 else
3085 { echo "$as_me:$LINENO: result: no" >&5
3086 echo "${ECHO_T}no" >&6; }
3092 if test -z "$CC"; then
3093 # Extract the first word of "cc", so it can be a program name with args.
3094 set dummy cc; ac_word=$2
3095 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3096 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3097 if test "${ac_cv_prog_CC+set}" = set; then
3098 echo $ECHO_N "(cached) $ECHO_C" >&6
3099 else
3100 if test -n "$CC"; then
3101 ac_cv_prog_CC="$CC" # Let the user override the test.
3102 else
3103 ac_prog_rejected=no
3104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3105 for as_dir in $PATH
3107 IFS=$as_save_IFS
3108 test -z "$as_dir" && as_dir=.
3109 for ac_exec_ext in '' $ac_executable_extensions; do
3110 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3111 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3112 ac_prog_rejected=yes
3113 continue
3115 ac_cv_prog_CC="cc"
3116 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3117 break 2
3119 done
3120 done
3121 IFS=$as_save_IFS
3123 if test $ac_prog_rejected = yes; then
3124 # We found a bogon in the path, so make sure we never use it.
3125 set dummy $ac_cv_prog_CC
3126 shift
3127 if test $# != 0; then
3128 # We chose a different compiler from the bogus one.
3129 # However, it has the same basename, so the bogon will be chosen
3130 # first if we set CC to just the basename; use the full file name.
3131 shift
3132 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3137 CC=$ac_cv_prog_CC
3138 if test -n "$CC"; then
3139 { echo "$as_me:$LINENO: result: $CC" >&5
3140 echo "${ECHO_T}$CC" >&6; }
3141 else
3142 { echo "$as_me:$LINENO: result: no" >&5
3143 echo "${ECHO_T}no" >&6; }
3148 if test -z "$CC"; then
3149 if test -n "$ac_tool_prefix"; then
3150 for ac_prog in cl.exe
3152 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3153 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3154 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3155 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3156 if test "${ac_cv_prog_CC+set}" = set; then
3157 echo $ECHO_N "(cached) $ECHO_C" >&6
3158 else
3159 if test -n "$CC"; then
3160 ac_cv_prog_CC="$CC" # Let the user override the test.
3161 else
3162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3163 for as_dir in $PATH
3165 IFS=$as_save_IFS
3166 test -z "$as_dir" && as_dir=.
3167 for ac_exec_ext in '' $ac_executable_extensions; do
3168 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3169 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3170 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3171 break 2
3173 done
3174 done
3175 IFS=$as_save_IFS
3179 CC=$ac_cv_prog_CC
3180 if test -n "$CC"; then
3181 { echo "$as_me:$LINENO: result: $CC" >&5
3182 echo "${ECHO_T}$CC" >&6; }
3183 else
3184 { echo "$as_me:$LINENO: result: no" >&5
3185 echo "${ECHO_T}no" >&6; }
3189 test -n "$CC" && break
3190 done
3192 if test -z "$CC"; then
3193 ac_ct_CC=$CC
3194 for ac_prog in cl.exe
3196 # Extract the first word of "$ac_prog", so it can be a program name with args.
3197 set dummy $ac_prog; ac_word=$2
3198 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3199 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3200 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3201 echo $ECHO_N "(cached) $ECHO_C" >&6
3202 else
3203 if test -n "$ac_ct_CC"; then
3204 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3205 else
3206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3207 for as_dir in $PATH
3209 IFS=$as_save_IFS
3210 test -z "$as_dir" && as_dir=.
3211 for ac_exec_ext in '' $ac_executable_extensions; do
3212 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3213 ac_cv_prog_ac_ct_CC="$ac_prog"
3214 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3215 break 2
3217 done
3218 done
3219 IFS=$as_save_IFS
3223 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3224 if test -n "$ac_ct_CC"; then
3225 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3226 echo "${ECHO_T}$ac_ct_CC" >&6; }
3227 else
3228 { echo "$as_me:$LINENO: result: no" >&5
3229 echo "${ECHO_T}no" >&6; }
3233 test -n "$ac_ct_CC" && break
3234 done
3236 if test "x$ac_ct_CC" = x; then
3237 CC=""
3238 else
3239 case $cross_compiling:$ac_tool_warned in
3240 yes:)
3241 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3242 whose name does not start with the host triplet. If you think this
3243 configuration is useful to you, please write to autoconf@gnu.org." >&5
3244 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3245 whose name does not start with the host triplet. If you think this
3246 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3247 ac_tool_warned=yes ;;
3248 esac
3249 CC=$ac_ct_CC
3256 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3257 See \`config.log' for more details." >&5
3258 echo "$as_me: error: no acceptable C compiler found in \$PATH
3259 See \`config.log' for more details." >&2;}
3260 { (exit 1); exit 1; }; }
3262 # Provide some information about the compiler.
3263 echo "$as_me:$LINENO: checking for C compiler version" >&5
3264 ac_compiler=`set X $ac_compile; echo $2`
3265 { (ac_try="$ac_compiler --version >&5"
3266 case "(($ac_try" in
3267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3268 *) ac_try_echo=$ac_try;;
3269 esac
3270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3271 (eval "$ac_compiler --version >&5") 2>&5
3272 ac_status=$?
3273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3274 (exit $ac_status); }
3275 { (ac_try="$ac_compiler -v >&5"
3276 case "(($ac_try" in
3277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3278 *) ac_try_echo=$ac_try;;
3279 esac
3280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3281 (eval "$ac_compiler -v >&5") 2>&5
3282 ac_status=$?
3283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3284 (exit $ac_status); }
3285 { (ac_try="$ac_compiler -V >&5"
3286 case "(($ac_try" in
3287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3288 *) ac_try_echo=$ac_try;;
3289 esac
3290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3291 (eval "$ac_compiler -V >&5") 2>&5
3292 ac_status=$?
3293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3294 (exit $ac_status); }
3296 EXEEXT=
3297 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3298 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3299 if test "${ac_cv_objext+set}" = set; then
3300 echo $ECHO_N "(cached) $ECHO_C" >&6
3301 else
3302 cat >conftest.$ac_ext <<_ACEOF
3303 /* confdefs.h. */
3304 _ACEOF
3305 cat confdefs.h >>conftest.$ac_ext
3306 cat >>conftest.$ac_ext <<_ACEOF
3307 /* end confdefs.h. */
3310 main ()
3314 return 0;
3316 _ACEOF
3317 rm -f conftest.o conftest.obj
3318 if { (ac_try="$ac_compile"
3319 case "(($ac_try" in
3320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3321 *) ac_try_echo=$ac_try;;
3322 esac
3323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3324 (eval "$ac_compile") 2>&5
3325 ac_status=$?
3326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3327 (exit $ac_status); }; then
3328 for ac_file in conftest.o conftest.obj conftest.*; do
3329 test -f "$ac_file" || continue;
3330 case $ac_file in
3331 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3332 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3333 break;;
3334 esac
3335 done
3336 else
3337 echo "$as_me: failed program was:" >&5
3338 sed 's/^/| /' conftest.$ac_ext >&5
3340 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3341 See \`config.log' for more details." >&5
3342 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3343 See \`config.log' for more details." >&2;}
3344 { (exit 1); exit 1; }; }
3347 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3349 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3350 echo "${ECHO_T}$ac_cv_objext" >&6; }
3351 OBJEXT=$ac_cv_objext
3352 ac_objext=$OBJEXT
3353 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3354 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3355 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3356 echo $ECHO_N "(cached) $ECHO_C" >&6
3357 else
3358 cat >conftest.$ac_ext <<_ACEOF
3359 /* confdefs.h. */
3360 _ACEOF
3361 cat confdefs.h >>conftest.$ac_ext
3362 cat >>conftest.$ac_ext <<_ACEOF
3363 /* end confdefs.h. */
3366 main ()
3368 #ifndef __GNUC__
3369 choke me
3370 #endif
3373 return 0;
3375 _ACEOF
3376 rm -f conftest.$ac_objext
3377 if { (ac_try="$ac_compile"
3378 case "(($ac_try" in
3379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3380 *) ac_try_echo=$ac_try;;
3381 esac
3382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3383 (eval "$ac_compile") 2>conftest.er1
3384 ac_status=$?
3385 grep -v '^ *+' conftest.er1 >conftest.err
3386 rm -f conftest.er1
3387 cat conftest.err >&5
3388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3389 (exit $ac_status); } && {
3390 test -z "$ac_c_werror_flag" ||
3391 test ! -s conftest.err
3392 } && test -s conftest.$ac_objext; then
3393 ac_compiler_gnu=yes
3394 else
3395 echo "$as_me: failed program was:" >&5
3396 sed 's/^/| /' conftest.$ac_ext >&5
3398 ac_compiler_gnu=no
3401 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3402 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3405 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3406 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3407 GCC=`test $ac_compiler_gnu = yes && echo yes`
3408 ac_test_CFLAGS=${CFLAGS+set}
3409 ac_save_CFLAGS=$CFLAGS
3410 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3411 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3412 if test "${ac_cv_prog_cc_g+set}" = set; then
3413 echo $ECHO_N "(cached) $ECHO_C" >&6
3414 else
3415 ac_save_c_werror_flag=$ac_c_werror_flag
3416 ac_c_werror_flag=yes
3417 ac_cv_prog_cc_g=no
3418 CFLAGS="-g"
3419 cat >conftest.$ac_ext <<_ACEOF
3420 /* confdefs.h. */
3421 _ACEOF
3422 cat confdefs.h >>conftest.$ac_ext
3423 cat >>conftest.$ac_ext <<_ACEOF
3424 /* end confdefs.h. */
3427 main ()
3431 return 0;
3433 _ACEOF
3434 rm -f conftest.$ac_objext
3435 if { (ac_try="$ac_compile"
3436 case "(($ac_try" in
3437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3438 *) ac_try_echo=$ac_try;;
3439 esac
3440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3441 (eval "$ac_compile") 2>conftest.er1
3442 ac_status=$?
3443 grep -v '^ *+' conftest.er1 >conftest.err
3444 rm -f conftest.er1
3445 cat conftest.err >&5
3446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3447 (exit $ac_status); } && {
3448 test -z "$ac_c_werror_flag" ||
3449 test ! -s conftest.err
3450 } && test -s conftest.$ac_objext; then
3451 ac_cv_prog_cc_g=yes
3452 else
3453 echo "$as_me: failed program was:" >&5
3454 sed 's/^/| /' conftest.$ac_ext >&5
3456 CFLAGS=""
3457 cat >conftest.$ac_ext <<_ACEOF
3458 /* confdefs.h. */
3459 _ACEOF
3460 cat confdefs.h >>conftest.$ac_ext
3461 cat >>conftest.$ac_ext <<_ACEOF
3462 /* end confdefs.h. */
3465 main ()
3469 return 0;
3471 _ACEOF
3472 rm -f conftest.$ac_objext
3473 if { (ac_try="$ac_compile"
3474 case "(($ac_try" in
3475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3476 *) ac_try_echo=$ac_try;;
3477 esac
3478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3479 (eval "$ac_compile") 2>conftest.er1
3480 ac_status=$?
3481 grep -v '^ *+' conftest.er1 >conftest.err
3482 rm -f conftest.er1
3483 cat conftest.err >&5
3484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3485 (exit $ac_status); } && {
3486 test -z "$ac_c_werror_flag" ||
3487 test ! -s conftest.err
3488 } && test -s conftest.$ac_objext; then
3490 else
3491 echo "$as_me: failed program was:" >&5
3492 sed 's/^/| /' conftest.$ac_ext >&5
3494 ac_c_werror_flag=$ac_save_c_werror_flag
3495 CFLAGS="-g"
3496 cat >conftest.$ac_ext <<_ACEOF
3497 /* confdefs.h. */
3498 _ACEOF
3499 cat confdefs.h >>conftest.$ac_ext
3500 cat >>conftest.$ac_ext <<_ACEOF
3501 /* end confdefs.h. */
3504 main ()
3508 return 0;
3510 _ACEOF
3511 rm -f conftest.$ac_objext
3512 if { (ac_try="$ac_compile"
3513 case "(($ac_try" in
3514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3515 *) ac_try_echo=$ac_try;;
3516 esac
3517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3518 (eval "$ac_compile") 2>conftest.er1
3519 ac_status=$?
3520 grep -v '^ *+' conftest.er1 >conftest.err
3521 rm -f conftest.er1
3522 cat conftest.err >&5
3523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3524 (exit $ac_status); } && {
3525 test -z "$ac_c_werror_flag" ||
3526 test ! -s conftest.err
3527 } && test -s conftest.$ac_objext; then
3528 ac_cv_prog_cc_g=yes
3529 else
3530 echo "$as_me: failed program was:" >&5
3531 sed 's/^/| /' conftest.$ac_ext >&5
3536 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3539 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3542 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3543 ac_c_werror_flag=$ac_save_c_werror_flag
3545 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3546 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3547 if test "$ac_test_CFLAGS" = set; then
3548 CFLAGS=$ac_save_CFLAGS
3549 elif test $ac_cv_prog_cc_g = yes; then
3550 if test "$GCC" = yes; then
3551 CFLAGS="-g -O2"
3552 else
3553 CFLAGS="-g"
3555 else
3556 if test "$GCC" = yes; then
3557 CFLAGS="-O2"
3558 else
3559 CFLAGS=
3562 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3563 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3564 if test "${ac_cv_prog_cc_c89+set}" = set; then
3565 echo $ECHO_N "(cached) $ECHO_C" >&6
3566 else
3567 ac_cv_prog_cc_c89=no
3568 ac_save_CC=$CC
3569 cat >conftest.$ac_ext <<_ACEOF
3570 /* confdefs.h. */
3571 _ACEOF
3572 cat confdefs.h >>conftest.$ac_ext
3573 cat >>conftest.$ac_ext <<_ACEOF
3574 /* end confdefs.h. */
3575 #include <stdarg.h>
3576 #include <stdio.h>
3577 #include <sys/types.h>
3578 #include <sys/stat.h>
3579 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3580 struct buf { int x; };
3581 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3582 static char *e (p, i)
3583 char **p;
3584 int i;
3586 return p[i];
3588 static char *f (char * (*g) (char **, int), char **p, ...)
3590 char *s;
3591 va_list v;
3592 va_start (v,p);
3593 s = g (p, va_arg (v,int));
3594 va_end (v);
3595 return s;
3598 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3599 function prototypes and stuff, but not '\xHH' hex character constants.
3600 These don't provoke an error unfortunately, instead are silently treated
3601 as 'x'. The following induces an error, until -std is added to get
3602 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3603 array size at least. It's necessary to write '\x00'==0 to get something
3604 that's true only with -std. */
3605 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3607 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3608 inside strings and character constants. */
3609 #define FOO(x) 'x'
3610 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3612 int test (int i, double x);
3613 struct s1 {int (*f) (int a);};
3614 struct s2 {int (*f) (double a);};
3615 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3616 int argc;
3617 char **argv;
3619 main ()
3621 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3623 return 0;
3625 _ACEOF
3626 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3627 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3629 CC="$ac_save_CC $ac_arg"
3630 rm -f conftest.$ac_objext
3631 if { (ac_try="$ac_compile"
3632 case "(($ac_try" in
3633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3634 *) ac_try_echo=$ac_try;;
3635 esac
3636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3637 (eval "$ac_compile") 2>conftest.er1
3638 ac_status=$?
3639 grep -v '^ *+' conftest.er1 >conftest.err
3640 rm -f conftest.er1
3641 cat conftest.err >&5
3642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3643 (exit $ac_status); } && {
3644 test -z "$ac_c_werror_flag" ||
3645 test ! -s conftest.err
3646 } && test -s conftest.$ac_objext; then
3647 ac_cv_prog_cc_c89=$ac_arg
3648 else
3649 echo "$as_me: failed program was:" >&5
3650 sed 's/^/| /' conftest.$ac_ext >&5
3655 rm -f core conftest.err conftest.$ac_objext
3656 test "x$ac_cv_prog_cc_c89" != "xno" && break
3657 done
3658 rm -f conftest.$ac_ext
3659 CC=$ac_save_CC
3662 # AC_CACHE_VAL
3663 case "x$ac_cv_prog_cc_c89" in
3665 { echo "$as_me:$LINENO: result: none needed" >&5
3666 echo "${ECHO_T}none needed" >&6; } ;;
3667 xno)
3668 { echo "$as_me:$LINENO: result: unsupported" >&5
3669 echo "${ECHO_T}unsupported" >&6; } ;;
3671 CC="$CC $ac_cv_prog_cc_c89"
3672 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3673 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3674 esac
3677 ac_ext=c
3678 ac_cpp='$CPP $CPPFLAGS'
3679 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3680 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3681 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3683 if test $host != $build; then
3684 for ac_prog in gcc cc
3686 # Extract the first word of "$ac_prog", so it can be a program name with args.
3687 set dummy $ac_prog; ac_word=$2
3688 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3689 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3690 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
3691 echo $ECHO_N "(cached) $ECHO_C" >&6
3692 else
3693 if test -n "$BUILD_CC"; then
3694 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
3695 else
3696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3697 for as_dir in $PATH
3699 IFS=$as_save_IFS
3700 test -z "$as_dir" && as_dir=.
3701 for ac_exec_ext in '' $ac_executable_extensions; do
3702 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3703 ac_cv_prog_BUILD_CC="$ac_prog"
3704 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3705 break 2
3707 done
3708 done
3709 IFS=$as_save_IFS
3713 BUILD_CC=$ac_cv_prog_BUILD_CC
3714 if test -n "$BUILD_CC"; then
3715 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
3716 echo "${ECHO_T}$BUILD_CC" >&6; }
3717 else
3718 { echo "$as_me:$LINENO: result: no" >&5
3719 echo "${ECHO_T}no" >&6; }
3723 test -n "$BUILD_CC" && break
3724 done
3728 ac_ext=c
3729 ac_cpp='$CPP $CPPFLAGS'
3730 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3731 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3732 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3733 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3734 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3735 # On Suns, sometimes $CPP names a directory.
3736 if test -n "$CPP" && test -d "$CPP"; then
3737 CPP=
3739 if test -z "$CPP"; then
3740 if test "${ac_cv_prog_CPP+set}" = set; then
3741 echo $ECHO_N "(cached) $ECHO_C" >&6
3742 else
3743 # Double quotes because CPP needs to be expanded
3744 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3746 ac_preproc_ok=false
3747 for ac_c_preproc_warn_flag in '' yes
3749 # Use a header file that comes with gcc, so configuring glibc
3750 # with a fresh cross-compiler works.
3751 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3752 # <limits.h> exists even on freestanding compilers.
3753 # On the NeXT, cc -E runs the code through the compiler's parser,
3754 # not just through cpp. "Syntax error" is here to catch this case.
3755 cat >conftest.$ac_ext <<_ACEOF
3756 /* confdefs.h. */
3757 _ACEOF
3758 cat confdefs.h >>conftest.$ac_ext
3759 cat >>conftest.$ac_ext <<_ACEOF
3760 /* end confdefs.h. */
3761 #ifdef __STDC__
3762 # include <limits.h>
3763 #else
3764 # include <assert.h>
3765 #endif
3766 Syntax error
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
3785 else
3786 echo "$as_me: failed program was:" >&5
3787 sed 's/^/| /' conftest.$ac_ext >&5
3789 # Broken: fails on valid input.
3790 continue
3793 rm -f conftest.err conftest.$ac_ext
3795 # OK, works on sane cases. Now check whether nonexistent headers
3796 # can be detected and how.
3797 cat >conftest.$ac_ext <<_ACEOF
3798 /* confdefs.h. */
3799 _ACEOF
3800 cat confdefs.h >>conftest.$ac_ext
3801 cat >>conftest.$ac_ext <<_ACEOF
3802 /* end confdefs.h. */
3803 #include <ac_nonexistent.h>
3804 _ACEOF
3805 if { (ac_try="$ac_cpp conftest.$ac_ext"
3806 case "(($ac_try" in
3807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3808 *) ac_try_echo=$ac_try;;
3809 esac
3810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3811 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3812 ac_status=$?
3813 grep -v '^ *+' conftest.er1 >conftest.err
3814 rm -f conftest.er1
3815 cat conftest.err >&5
3816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3817 (exit $ac_status); } >/dev/null && {
3818 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3819 test ! -s conftest.err
3820 }; then
3821 # Broken: success on invalid input.
3822 continue
3823 else
3824 echo "$as_me: failed program was:" >&5
3825 sed 's/^/| /' conftest.$ac_ext >&5
3827 # Passes both tests.
3828 ac_preproc_ok=:
3829 break
3832 rm -f conftest.err conftest.$ac_ext
3834 done
3835 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3836 rm -f conftest.err conftest.$ac_ext
3837 if $ac_preproc_ok; then
3838 break
3841 done
3842 ac_cv_prog_CPP=$CPP
3845 CPP=$ac_cv_prog_CPP
3846 else
3847 ac_cv_prog_CPP=$CPP
3849 { echo "$as_me:$LINENO: result: $CPP" >&5
3850 echo "${ECHO_T}$CPP" >&6; }
3851 ac_preproc_ok=false
3852 for ac_c_preproc_warn_flag in '' yes
3854 # Use a header file that comes with gcc, so configuring glibc
3855 # with a fresh cross-compiler works.
3856 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3857 # <limits.h> exists even on freestanding compilers.
3858 # On the NeXT, cc -E runs the code through the compiler's parser,
3859 # not just through cpp. "Syntax error" is here to catch this case.
3860 cat >conftest.$ac_ext <<_ACEOF
3861 /* confdefs.h. */
3862 _ACEOF
3863 cat confdefs.h >>conftest.$ac_ext
3864 cat >>conftest.$ac_ext <<_ACEOF
3865 /* end confdefs.h. */
3866 #ifdef __STDC__
3867 # include <limits.h>
3868 #else
3869 # include <assert.h>
3870 #endif
3871 Syntax error
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
3890 else
3891 echo "$as_me: failed program was:" >&5
3892 sed 's/^/| /' conftest.$ac_ext >&5
3894 # Broken: fails on valid input.
3895 continue
3898 rm -f conftest.err conftest.$ac_ext
3900 # OK, works on sane cases. Now check whether nonexistent headers
3901 # can be detected and how.
3902 cat >conftest.$ac_ext <<_ACEOF
3903 /* confdefs.h. */
3904 _ACEOF
3905 cat confdefs.h >>conftest.$ac_ext
3906 cat >>conftest.$ac_ext <<_ACEOF
3907 /* end confdefs.h. */
3908 #include <ac_nonexistent.h>
3909 _ACEOF
3910 if { (ac_try="$ac_cpp conftest.$ac_ext"
3911 case "(($ac_try" in
3912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3913 *) ac_try_echo=$ac_try;;
3914 esac
3915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3916 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3917 ac_status=$?
3918 grep -v '^ *+' conftest.er1 >conftest.err
3919 rm -f conftest.er1
3920 cat conftest.err >&5
3921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3922 (exit $ac_status); } >/dev/null && {
3923 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3924 test ! -s conftest.err
3925 }; then
3926 # Broken: success on invalid input.
3927 continue
3928 else
3929 echo "$as_me: failed program was:" >&5
3930 sed 's/^/| /' conftest.$ac_ext >&5
3932 # Passes both tests.
3933 ac_preproc_ok=:
3934 break
3937 rm -f conftest.err conftest.$ac_ext
3939 done
3940 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3941 rm -f conftest.err conftest.$ac_ext
3942 if $ac_preproc_ok; then
3944 else
3945 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3946 See \`config.log' for more details." >&5
3947 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3948 See \`config.log' for more details." >&2;}
3949 { (exit 1); exit 1; }; }
3952 ac_ext=c
3953 ac_cpp='$CPP $CPPFLAGS'
3954 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3955 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3956 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3958 # We need the C++ compiler only for testing.
3959 ac_ext=cpp
3960 ac_cpp='$CXXCPP $CPPFLAGS'
3961 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3962 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3963 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3964 if test -z "$CXX"; then
3965 if test -n "$CCC"; then
3966 CXX=$CCC
3967 else
3968 if test -n "$ac_tool_prefix"; then
3969 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3971 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3972 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3973 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3974 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3975 if test "${ac_cv_prog_CXX+set}" = set; then
3976 echo $ECHO_N "(cached) $ECHO_C" >&6
3977 else
3978 if test -n "$CXX"; then
3979 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3980 else
3981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3982 for as_dir in $PATH
3984 IFS=$as_save_IFS
3985 test -z "$as_dir" && as_dir=.
3986 for ac_exec_ext in '' $ac_executable_extensions; do
3987 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3988 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3989 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3990 break 2
3992 done
3993 done
3994 IFS=$as_save_IFS
3998 CXX=$ac_cv_prog_CXX
3999 if test -n "$CXX"; then
4000 { echo "$as_me:$LINENO: result: $CXX" >&5
4001 echo "${ECHO_T}$CXX" >&6; }
4002 else
4003 { echo "$as_me:$LINENO: result: no" >&5
4004 echo "${ECHO_T}no" >&6; }
4008 test -n "$CXX" && break
4009 done
4011 if test -z "$CXX"; then
4012 ac_ct_CXX=$CXX
4013 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4015 # Extract the first word of "$ac_prog", so it can be a program name with args.
4016 set dummy $ac_prog; ac_word=$2
4017 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4018 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4019 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4020 echo $ECHO_N "(cached) $ECHO_C" >&6
4021 else
4022 if test -n "$ac_ct_CXX"; then
4023 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4024 else
4025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4026 for as_dir in $PATH
4028 IFS=$as_save_IFS
4029 test -z "$as_dir" && as_dir=.
4030 for ac_exec_ext in '' $ac_executable_extensions; do
4031 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4032 ac_cv_prog_ac_ct_CXX="$ac_prog"
4033 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4034 break 2
4036 done
4037 done
4038 IFS=$as_save_IFS
4042 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4043 if test -n "$ac_ct_CXX"; then
4044 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4045 echo "${ECHO_T}$ac_ct_CXX" >&6; }
4046 else
4047 { echo "$as_me:$LINENO: result: no" >&5
4048 echo "${ECHO_T}no" >&6; }
4052 test -n "$ac_ct_CXX" && break
4053 done
4055 if test "x$ac_ct_CXX" = x; then
4056 CXX="g++"
4057 else
4058 case $cross_compiling:$ac_tool_warned in
4059 yes:)
4060 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4061 whose name does not start with the host triplet. If you think this
4062 configuration is useful to you, please write to autoconf@gnu.org." >&5
4063 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4064 whose name does not start with the host triplet. If you think this
4065 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4066 ac_tool_warned=yes ;;
4067 esac
4068 CXX=$ac_ct_CXX
4074 # Provide some information about the compiler.
4075 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
4076 ac_compiler=`set X $ac_compile; echo $2`
4077 { (ac_try="$ac_compiler --version >&5"
4078 case "(($ac_try" in
4079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4080 *) ac_try_echo=$ac_try;;
4081 esac
4082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4083 (eval "$ac_compiler --version >&5") 2>&5
4084 ac_status=$?
4085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4086 (exit $ac_status); }
4087 { (ac_try="$ac_compiler -v >&5"
4088 case "(($ac_try" in
4089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4090 *) ac_try_echo=$ac_try;;
4091 esac
4092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4093 (eval "$ac_compiler -v >&5") 2>&5
4094 ac_status=$?
4095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4096 (exit $ac_status); }
4097 { (ac_try="$ac_compiler -V >&5"
4098 case "(($ac_try" in
4099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4100 *) ac_try_echo=$ac_try;;
4101 esac
4102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4103 (eval "$ac_compiler -V >&5") 2>&5
4104 ac_status=$?
4105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4106 (exit $ac_status); }
4108 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4109 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
4110 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4111 echo $ECHO_N "(cached) $ECHO_C" >&6
4112 else
4113 cat >conftest.$ac_ext <<_ACEOF
4114 /* confdefs.h. */
4115 _ACEOF
4116 cat confdefs.h >>conftest.$ac_ext
4117 cat >>conftest.$ac_ext <<_ACEOF
4118 /* end confdefs.h. */
4121 main ()
4123 #ifndef __GNUC__
4124 choke me
4125 #endif
4128 return 0;
4130 _ACEOF
4131 rm -f conftest.$ac_objext
4132 if { (ac_try="$ac_compile"
4133 case "(($ac_try" in
4134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4135 *) ac_try_echo=$ac_try;;
4136 esac
4137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4138 (eval "$ac_compile") 2>conftest.er1
4139 ac_status=$?
4140 grep -v '^ *+' conftest.er1 >conftest.err
4141 rm -f conftest.er1
4142 cat conftest.err >&5
4143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4144 (exit $ac_status); } && {
4145 test -z "$ac_cxx_werror_flag" ||
4146 test ! -s conftest.err
4147 } && test -s conftest.$ac_objext; then
4148 ac_compiler_gnu=yes
4149 else
4150 echo "$as_me: failed program was:" >&5
4151 sed 's/^/| /' conftest.$ac_ext >&5
4153 ac_compiler_gnu=no
4156 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4157 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4160 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4161 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
4162 GXX=`test $ac_compiler_gnu = yes && echo yes`
4163 ac_test_CXXFLAGS=${CXXFLAGS+set}
4164 ac_save_CXXFLAGS=$CXXFLAGS
4165 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4166 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
4167 if test "${ac_cv_prog_cxx_g+set}" = set; then
4168 echo $ECHO_N "(cached) $ECHO_C" >&6
4169 else
4170 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4171 ac_cxx_werror_flag=yes
4172 ac_cv_prog_cxx_g=no
4173 CXXFLAGS="-g"
4174 cat >conftest.$ac_ext <<_ACEOF
4175 /* confdefs.h. */
4176 _ACEOF
4177 cat confdefs.h >>conftest.$ac_ext
4178 cat >>conftest.$ac_ext <<_ACEOF
4179 /* end confdefs.h. */
4182 main ()
4186 return 0;
4188 _ACEOF
4189 rm -f conftest.$ac_objext
4190 if { (ac_try="$ac_compile"
4191 case "(($ac_try" in
4192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4193 *) ac_try_echo=$ac_try;;
4194 esac
4195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4196 (eval "$ac_compile") 2>conftest.er1
4197 ac_status=$?
4198 grep -v '^ *+' conftest.er1 >conftest.err
4199 rm -f conftest.er1
4200 cat conftest.err >&5
4201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4202 (exit $ac_status); } && {
4203 test -z "$ac_cxx_werror_flag" ||
4204 test ! -s conftest.err
4205 } && test -s conftest.$ac_objext; then
4206 ac_cv_prog_cxx_g=yes
4207 else
4208 echo "$as_me: failed program was:" >&5
4209 sed 's/^/| /' conftest.$ac_ext >&5
4211 CXXFLAGS=""
4212 cat >conftest.$ac_ext <<_ACEOF
4213 /* confdefs.h. */
4214 _ACEOF
4215 cat confdefs.h >>conftest.$ac_ext
4216 cat >>conftest.$ac_ext <<_ACEOF
4217 /* end confdefs.h. */
4220 main ()
4224 return 0;
4226 _ACEOF
4227 rm -f conftest.$ac_objext
4228 if { (ac_try="$ac_compile"
4229 case "(($ac_try" in
4230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4231 *) ac_try_echo=$ac_try;;
4232 esac
4233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4234 (eval "$ac_compile") 2>conftest.er1
4235 ac_status=$?
4236 grep -v '^ *+' conftest.er1 >conftest.err
4237 rm -f conftest.er1
4238 cat conftest.err >&5
4239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4240 (exit $ac_status); } && {
4241 test -z "$ac_cxx_werror_flag" ||
4242 test ! -s conftest.err
4243 } && test -s conftest.$ac_objext; then
4245 else
4246 echo "$as_me: failed program was:" >&5
4247 sed 's/^/| /' conftest.$ac_ext >&5
4249 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4250 CXXFLAGS="-g"
4251 cat >conftest.$ac_ext <<_ACEOF
4252 /* confdefs.h. */
4253 _ACEOF
4254 cat confdefs.h >>conftest.$ac_ext
4255 cat >>conftest.$ac_ext <<_ACEOF
4256 /* end confdefs.h. */
4259 main ()
4263 return 0;
4265 _ACEOF
4266 rm -f conftest.$ac_objext
4267 if { (ac_try="$ac_compile"
4268 case "(($ac_try" in
4269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4270 *) ac_try_echo=$ac_try;;
4271 esac
4272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4273 (eval "$ac_compile") 2>conftest.er1
4274 ac_status=$?
4275 grep -v '^ *+' conftest.er1 >conftest.err
4276 rm -f conftest.er1
4277 cat conftest.err >&5
4278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4279 (exit $ac_status); } && {
4280 test -z "$ac_cxx_werror_flag" ||
4281 test ! -s conftest.err
4282 } && test -s conftest.$ac_objext; then
4283 ac_cv_prog_cxx_g=yes
4284 else
4285 echo "$as_me: failed program was:" >&5
4286 sed 's/^/| /' conftest.$ac_ext >&5
4291 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4294 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4297 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4298 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4300 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4301 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
4302 if test "$ac_test_CXXFLAGS" = set; then
4303 CXXFLAGS=$ac_save_CXXFLAGS
4304 elif test $ac_cv_prog_cxx_g = yes; then
4305 if test "$GXX" = yes; then
4306 CXXFLAGS="-g -O2"
4307 else
4308 CXXFLAGS="-g"
4310 else
4311 if test "$GXX" = yes; then
4312 CXXFLAGS="-O2"
4313 else
4314 CXXFLAGS=
4317 ac_ext=c
4318 ac_cpp='$CPP $CPPFLAGS'
4319 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4320 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4321 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4323 # Was a --with-binutils option given?
4324 if test -n "$path_binutils"; then
4325 # Make absolute; ensure a single trailing slash.
4326 path_binutils=`(cd $path_binutils; pwd) | sed 's%/*$%/%'`
4327 CC="$CC -B$path_binutils"
4329 AS=`$CC -print-prog-name=as`
4330 LD=`$CC -print-prog-name=ld`
4331 AR=`$CC -print-prog-name=ar`
4333 OBJDUMP=`$CC -print-prog-name=objdump`
4336 # ranlib has to be treated a bit differently since it might not exist at all.
4337 ac_ranlib=`$CC -print-prog-name=ranlib`
4338 if test "x$ac_ranlib" = xranlib; then
4339 # This extra check has to happen since gcc simply echos the parameter in
4340 # case it cannot find the value in its own directories.
4341 if test -n "$ac_tool_prefix"; then
4342 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4343 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4344 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4345 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4346 if test "${ac_cv_prog_RANLIB+set}" = set; then
4347 echo $ECHO_N "(cached) $ECHO_C" >&6
4348 else
4349 if test -n "$RANLIB"; then
4350 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4351 else
4352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4353 for as_dir in $PATH
4355 IFS=$as_save_IFS
4356 test -z "$as_dir" && as_dir=.
4357 for ac_exec_ext in '' $ac_executable_extensions; do
4358 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4359 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4360 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4361 break 2
4363 done
4364 done
4365 IFS=$as_save_IFS
4369 RANLIB=$ac_cv_prog_RANLIB
4370 if test -n "$RANLIB"; then
4371 { echo "$as_me:$LINENO: result: $RANLIB" >&5
4372 echo "${ECHO_T}$RANLIB" >&6; }
4373 else
4374 { echo "$as_me:$LINENO: result: no" >&5
4375 echo "${ECHO_T}no" >&6; }
4380 if test -z "$ac_cv_prog_RANLIB"; then
4381 ac_ct_RANLIB=$RANLIB
4382 # Extract the first word of "ranlib", so it can be a program name with args.
4383 set dummy ranlib; ac_word=$2
4384 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4385 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4386 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4387 echo $ECHO_N "(cached) $ECHO_C" >&6
4388 else
4389 if test -n "$ac_ct_RANLIB"; then
4390 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4391 else
4392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4393 for as_dir in $PATH
4395 IFS=$as_save_IFS
4396 test -z "$as_dir" && as_dir=.
4397 for ac_exec_ext in '' $ac_executable_extensions; do
4398 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4399 ac_cv_prog_ac_ct_RANLIB="ranlib"
4400 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4401 break 2
4403 done
4404 done
4405 IFS=$as_save_IFS
4409 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4410 if test -n "$ac_ct_RANLIB"; then
4411 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4412 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
4413 else
4414 { echo "$as_me:$LINENO: result: no" >&5
4415 echo "${ECHO_T}no" >&6; }
4418 if test "x$ac_ct_RANLIB" = x; then
4419 RANLIB=":"
4420 else
4421 case $cross_compiling:$ac_tool_warned in
4422 yes:)
4423 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4424 whose name does not start with the host triplet. If you think this
4425 configuration is useful to you, please write to autoconf@gnu.org." >&5
4426 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4427 whose name does not start with the host triplet. If you think this
4428 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4429 ac_tool_warned=yes ;;
4430 esac
4431 RANLIB=$ac_ct_RANLIB
4433 else
4434 RANLIB="$ac_cv_prog_RANLIB"
4437 else
4438 RANLIB=$ac_ranlib
4442 # Determine whether we are using GNU binutils.
4443 { echo "$as_me:$LINENO: checking whether $AS is GNU as" >&5
4444 echo $ECHO_N "checking whether $AS is GNU as... $ECHO_C" >&6; }
4445 if test "${libc_cv_prog_as_gnu+set}" = set; then
4446 echo $ECHO_N "(cached) $ECHO_C" >&6
4447 else
4448 # Most GNU programs take a -v and spit out some text including
4449 # the word 'GNU'. Some try to read stdin, so give them /dev/null.
4450 if $AS -o conftest -v </dev/null 2>&1 | grep GNU > /dev/null 2>&1; then
4451 libc_cv_prog_as_gnu=yes
4452 else
4453 libc_cv_prog_as_gnu=no
4455 rm -fr contest*
4457 { echo "$as_me:$LINENO: result: $libc_cv_prog_as_gnu" >&5
4458 echo "${ECHO_T}$libc_cv_prog_as_gnu" >&6; }
4459 rm -f a.out
4460 gnu_as=$libc_cv_prog_as_gnu
4462 { echo "$as_me:$LINENO: checking whether $LD is GNU ld" >&5
4463 echo $ECHO_N "checking whether $LD is GNU ld... $ECHO_C" >&6; }
4464 if test "${libc_cv_prog_ld_gnu+set}" = set; then
4465 echo $ECHO_N "(cached) $ECHO_C" >&6
4466 else
4467 # Most GNU programs take a -v and spit out some text including
4468 # the word 'GNU'. Some try to read stdin, so give them /dev/null.
4469 if $LD -o conftest -v </dev/null 2>&1 | grep GNU > /dev/null 2>&1; then
4470 libc_cv_prog_ld_gnu=yes
4471 else
4472 libc_cv_prog_ld_gnu=no
4474 rm -fr contest*
4476 { echo "$as_me:$LINENO: result: $libc_cv_prog_ld_gnu" >&5
4477 echo "${ECHO_T}$libc_cv_prog_ld_gnu" >&6; }
4478 gnu_ld=$libc_cv_prog_ld_gnu
4481 # Accept binutils 2.13 or newer.
4482 for ac_prog in $AS
4484 # Extract the first word of "$ac_prog", so it can be a program name with args.
4485 set dummy $ac_prog; ac_word=$2
4486 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4487 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4488 if test "${ac_cv_prog_AS+set}" = set; then
4489 echo $ECHO_N "(cached) $ECHO_C" >&6
4490 else
4491 if test -n "$AS"; then
4492 ac_cv_prog_AS="$AS" # Let the user override the test.
4493 else
4494 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4495 for as_dir in $PATH
4497 IFS=$as_save_IFS
4498 test -z "$as_dir" && as_dir=.
4499 for ac_exec_ext in '' $ac_executable_extensions; do
4500 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4501 ac_cv_prog_AS="$ac_prog"
4502 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4503 break 2
4505 done
4506 done
4507 IFS=$as_save_IFS
4511 AS=$ac_cv_prog_AS
4512 if test -n "$AS"; then
4513 { echo "$as_me:$LINENO: result: $AS" >&5
4514 echo "${ECHO_T}$AS" >&6; }
4515 else
4516 { echo "$as_me:$LINENO: result: no" >&5
4517 echo "${ECHO_T}no" >&6; }
4521 test -n "$AS" && break
4522 done
4524 if test -z "$AS"; then
4525 ac_verc_fail=yes
4526 else
4527 # Found it, now check the version.
4528 { echo "$as_me:$LINENO: checking version of $AS" >&5
4529 echo $ECHO_N "checking version of $AS... $ECHO_C" >&6; }
4530 ac_prog_version=`$AS --version 2>&1 | sed -n 's/^.*GNU assembler.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
4531 case $ac_prog_version in
4532 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
4533 2.1[3-9]*)
4534 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
4535 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
4537 esac
4538 { echo "$as_me:$LINENO: result: $ac_prog_version" >&5
4539 echo "${ECHO_T}$ac_prog_version" >&6; }
4541 if test $ac_verc_fail = yes; then
4542 AS=: critic_missing="$critic_missing as"
4545 for ac_prog in $LD
4547 # Extract the first word of "$ac_prog", so it can be a program name with args.
4548 set dummy $ac_prog; ac_word=$2
4549 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4550 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4551 if test "${ac_cv_prog_LD+set}" = set; then
4552 echo $ECHO_N "(cached) $ECHO_C" >&6
4553 else
4554 if test -n "$LD"; then
4555 ac_cv_prog_LD="$LD" # Let the user override the test.
4556 else
4557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4558 for as_dir in $PATH
4560 IFS=$as_save_IFS
4561 test -z "$as_dir" && as_dir=.
4562 for ac_exec_ext in '' $ac_executable_extensions; do
4563 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4564 ac_cv_prog_LD="$ac_prog"
4565 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4566 break 2
4568 done
4569 done
4570 IFS=$as_save_IFS
4574 LD=$ac_cv_prog_LD
4575 if test -n "$LD"; then
4576 { echo "$as_me:$LINENO: result: $LD" >&5
4577 echo "${ECHO_T}$LD" >&6; }
4578 else
4579 { echo "$as_me:$LINENO: result: no" >&5
4580 echo "${ECHO_T}no" >&6; }
4584 test -n "$LD" && break
4585 done
4587 if test -z "$LD"; then
4588 ac_verc_fail=yes
4589 else
4590 # Found it, now check the version.
4591 { echo "$as_me:$LINENO: checking version of $LD" >&5
4592 echo $ECHO_N "checking version of $LD... $ECHO_C" >&6; }
4593 ac_prog_version=`$LD --version 2>&1 | sed -n 's/^.*GNU ld.* \([0-9][0-9]*\.[0-9.]*\).*$/\1/p'`
4594 case $ac_prog_version in
4595 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
4596 2.1[3-9]*)
4597 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
4598 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
4600 esac
4601 { echo "$as_me:$LINENO: result: $ac_prog_version" >&5
4602 echo "${ECHO_T}$ac_prog_version" >&6; }
4604 if test $ac_verc_fail = yes; then
4605 LD=: critic_missing="$critic_missing ld"
4609 # We need the physical current working directory. We cannot use the
4610 # "pwd -P" shell builtin since that's not portable. Instead we try to
4611 # find a pwd binary. Note that assigning to the PWD environment
4612 # variable might have some interesting side effects, so we don't do
4613 # that.
4614 # Extract the first word of "pwd", so it can be a program name with args.
4615 set dummy pwd; ac_word=$2
4616 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4617 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4618 if test "${ac_cv_path_PWD_P+set}" = set; then
4619 echo $ECHO_N "(cached) $ECHO_C" >&6
4620 else
4621 case $PWD_P in
4622 [\\/]* | ?:[\\/]*)
4623 ac_cv_path_PWD_P="$PWD_P" # Let the user override the test with a path.
4626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4627 for as_dir in $PATH
4629 IFS=$as_save_IFS
4630 test -z "$as_dir" && as_dir=.
4631 for ac_exec_ext in '' $ac_executable_extensions; do
4632 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4633 ac_cv_path_PWD_P="$as_dir/$ac_word$ac_exec_ext"
4634 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4635 break 2
4637 done
4638 done
4639 IFS=$as_save_IFS
4641 test -z "$ac_cv_path_PWD_P" && ac_cv_path_PWD_P="no"
4643 esac
4645 PWD_P=$ac_cv_path_PWD_P
4646 if test -n "$PWD_P"; then
4647 { echo "$as_me:$LINENO: result: $PWD_P" >&5
4648 echo "${ECHO_T}$PWD_P" >&6; }
4649 else
4650 { echo "$as_me:$LINENO: result: no" >&5
4651 echo "${ECHO_T}no" >&6; }
4655 if test "$PWD_P" = no; then
4656 { { echo "$as_me:$LINENO: error: *** A pwd binary could not be found." >&5
4657 echo "$as_me: error: *** A pwd binary could not be found." >&2;}
4658 { (exit 1); exit 1; }; }
4661 # These programs are version sensitive.
4663 for ac_prog in ${ac_tool_prefix}gcc ${ac_tool_prefix}cc
4665 # Extract the first word of "$ac_prog", so it can be a program name with args.
4666 set dummy $ac_prog; ac_word=$2
4667 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4668 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4669 if test "${ac_cv_prog_CC+set}" = set; then
4670 echo $ECHO_N "(cached) $ECHO_C" >&6
4671 else
4672 if test -n "$CC"; then
4673 ac_cv_prog_CC="$CC" # Let the user override the test.
4674 else
4675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4676 for as_dir in $PATH
4678 IFS=$as_save_IFS
4679 test -z "$as_dir" && as_dir=.
4680 for ac_exec_ext in '' $ac_executable_extensions; do
4681 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4682 ac_cv_prog_CC="$ac_prog"
4683 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4684 break 2
4686 done
4687 done
4688 IFS=$as_save_IFS
4692 CC=$ac_cv_prog_CC
4693 if test -n "$CC"; then
4694 { echo "$as_me:$LINENO: result: $CC" >&5
4695 echo "${ECHO_T}$CC" >&6; }
4696 else
4697 { echo "$as_me:$LINENO: result: no" >&5
4698 echo "${ECHO_T}no" >&6; }
4702 test -n "$CC" && break
4703 done
4705 if test -z "$CC"; then
4706 ac_verc_fail=yes
4707 else
4708 # Found it, now check the version.
4709 { echo "$as_me:$LINENO: checking version of $CC" >&5
4710 echo $ECHO_N "checking version of $CC... $ECHO_C" >&6; }
4711 ac_prog_version=`$CC -v 2>&1 | sed -n 's/^.*version \([egcygnustpi-]*[0-9.]*\).*$/\1/p'`
4712 case $ac_prog_version in
4713 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
4714 3.4* | 4.[0-9]* )
4715 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
4716 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
4718 esac
4719 { echo "$as_me:$LINENO: result: $ac_prog_version" >&5
4720 echo "${ECHO_T}$ac_prog_version" >&6; }
4722 if test $ac_verc_fail = yes; then
4723 critic_missing="$critic_missing gcc"
4726 for ac_prog in gnumake gmake make
4728 # Extract the first word of "$ac_prog", so it can be a program name with args.
4729 set dummy $ac_prog; ac_word=$2
4730 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4731 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4732 if test "${ac_cv_prog_MAKE+set}" = set; then
4733 echo $ECHO_N "(cached) $ECHO_C" >&6
4734 else
4735 if test -n "$MAKE"; then
4736 ac_cv_prog_MAKE="$MAKE" # Let the user override the test.
4737 else
4738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4739 for as_dir in $PATH
4741 IFS=$as_save_IFS
4742 test -z "$as_dir" && as_dir=.
4743 for ac_exec_ext in '' $ac_executable_extensions; do
4744 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4745 ac_cv_prog_MAKE="$ac_prog"
4746 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4747 break 2
4749 done
4750 done
4751 IFS=$as_save_IFS
4755 MAKE=$ac_cv_prog_MAKE
4756 if test -n "$MAKE"; then
4757 { echo "$as_me:$LINENO: result: $MAKE" >&5
4758 echo "${ECHO_T}$MAKE" >&6; }
4759 else
4760 { echo "$as_me:$LINENO: result: no" >&5
4761 echo "${ECHO_T}no" >&6; }
4765 test -n "$MAKE" && break
4766 done
4768 if test -z "$MAKE"; then
4769 ac_verc_fail=yes
4770 else
4771 # Found it, now check the version.
4772 { echo "$as_me:$LINENO: checking version of $MAKE" >&5
4773 echo $ECHO_N "checking version of $MAKE... $ECHO_C" >&6; }
4774 ac_prog_version=`$MAKE --version 2>&1 | sed -n 's/^.*GNU Make[^0-9]*\([0-9][0-9.]*\).*$/\1/p'`
4775 case $ac_prog_version in
4776 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
4777 3.79* | 3.[89]*)
4778 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
4779 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
4781 esac
4782 { echo "$as_me:$LINENO: result: $ac_prog_version" >&5
4783 echo "${ECHO_T}$ac_prog_version" >&6; }
4785 if test $ac_verc_fail = yes; then
4786 critic_missing="$critic_missing make"
4790 for ac_prog in gnumsgfmt gmsgfmt msgfmt
4792 # Extract the first word of "$ac_prog", so it can be a program name with args.
4793 set dummy $ac_prog; ac_word=$2
4794 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4795 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4796 if test "${ac_cv_prog_MSGFMT+set}" = set; then
4797 echo $ECHO_N "(cached) $ECHO_C" >&6
4798 else
4799 if test -n "$MSGFMT"; then
4800 ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
4801 else
4802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4803 for as_dir in $PATH
4805 IFS=$as_save_IFS
4806 test -z "$as_dir" && as_dir=.
4807 for ac_exec_ext in '' $ac_executable_extensions; do
4808 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4809 ac_cv_prog_MSGFMT="$ac_prog"
4810 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4811 break 2
4813 done
4814 done
4815 IFS=$as_save_IFS
4819 MSGFMT=$ac_cv_prog_MSGFMT
4820 if test -n "$MSGFMT"; then
4821 { echo "$as_me:$LINENO: result: $MSGFMT" >&5
4822 echo "${ECHO_T}$MSGFMT" >&6; }
4823 else
4824 { echo "$as_me:$LINENO: result: no" >&5
4825 echo "${ECHO_T}no" >&6; }
4829 test -n "$MSGFMT" && break
4830 done
4832 if test -z "$MSGFMT"; then
4833 ac_verc_fail=yes
4834 else
4835 # Found it, now check the version.
4836 { echo "$as_me:$LINENO: checking version of $MSGFMT" >&5
4837 echo $ECHO_N "checking version of $MSGFMT... $ECHO_C" >&6; }
4838 ac_prog_version=`$MSGFMT --version 2>&1 | sed -n 's/^.*GNU gettext.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
4839 case $ac_prog_version in
4840 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
4841 0.10.3[6-9]* | 0.10.[4-9][0-9]* | 0.1[1-9]* | 0.[2-9][0-9]* | [1-9].*)
4842 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
4843 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
4845 esac
4846 { echo "$as_me:$LINENO: result: $ac_prog_version" >&5
4847 echo "${ECHO_T}$ac_prog_version" >&6; }
4849 if test $ac_verc_fail = yes; then
4850 MSGFMT=: aux_missing="$aux_missing msgfmt"
4853 for ac_prog in makeinfo
4855 # Extract the first word of "$ac_prog", so it can be a program name with args.
4856 set dummy $ac_prog; ac_word=$2
4857 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4858 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4859 if test "${ac_cv_prog_MAKEINFO+set}" = set; then
4860 echo $ECHO_N "(cached) $ECHO_C" >&6
4861 else
4862 if test -n "$MAKEINFO"; then
4863 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
4864 else
4865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4866 for as_dir in $PATH
4868 IFS=$as_save_IFS
4869 test -z "$as_dir" && as_dir=.
4870 for ac_exec_ext in '' $ac_executable_extensions; do
4871 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4872 ac_cv_prog_MAKEINFO="$ac_prog"
4873 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4874 break 2
4876 done
4877 done
4878 IFS=$as_save_IFS
4882 MAKEINFO=$ac_cv_prog_MAKEINFO
4883 if test -n "$MAKEINFO"; then
4884 { echo "$as_me:$LINENO: result: $MAKEINFO" >&5
4885 echo "${ECHO_T}$MAKEINFO" >&6; }
4886 else
4887 { echo "$as_me:$LINENO: result: no" >&5
4888 echo "${ECHO_T}no" >&6; }
4892 test -n "$MAKEINFO" && break
4893 done
4895 if test -z "$MAKEINFO"; then
4896 ac_verc_fail=yes
4897 else
4898 # Found it, now check the version.
4899 { echo "$as_me:$LINENO: checking version of $MAKEINFO" >&5
4900 echo $ECHO_N "checking version of $MAKEINFO... $ECHO_C" >&6; }
4901 ac_prog_version=`$MAKEINFO --version 2>&1 | sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
4902 case $ac_prog_version in
4903 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
4904 4.*)
4905 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
4906 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
4908 esac
4909 { echo "$as_me:$LINENO: result: $ac_prog_version" >&5
4910 echo "${ECHO_T}$ac_prog_version" >&6; }
4912 if test $ac_verc_fail = yes; then
4913 MAKEINFO=: aux_missing="$aux_missing makeinfo"
4916 for ac_prog in sed
4918 # Extract the first word of "$ac_prog", so it can be a program name with args.
4919 set dummy $ac_prog; ac_word=$2
4920 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4921 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4922 if test "${ac_cv_prog_SED+set}" = set; then
4923 echo $ECHO_N "(cached) $ECHO_C" >&6
4924 else
4925 if test -n "$SED"; then
4926 ac_cv_prog_SED="$SED" # Let the user override the test.
4927 else
4928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4929 for as_dir in $PATH
4931 IFS=$as_save_IFS
4932 test -z "$as_dir" && as_dir=.
4933 for ac_exec_ext in '' $ac_executable_extensions; do
4934 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4935 ac_cv_prog_SED="$ac_prog"
4936 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4937 break 2
4939 done
4940 done
4941 IFS=$as_save_IFS
4945 SED=$ac_cv_prog_SED
4946 if test -n "$SED"; then
4947 { echo "$as_me:$LINENO: result: $SED" >&5
4948 echo "${ECHO_T}$SED" >&6; }
4949 else
4950 { echo "$as_me:$LINENO: result: no" >&5
4951 echo "${ECHO_T}no" >&6; }
4955 test -n "$SED" && break
4956 done
4958 if test -z "$SED"; then
4959 ac_verc_fail=yes
4960 else
4961 # Found it, now check the version.
4962 { echo "$as_me:$LINENO: checking version of $SED" >&5
4963 echo $ECHO_N "checking version of $SED... $ECHO_C" >&6; }
4964 ac_prog_version=`$SED --version 2>&1 | sed -n 's/^.*GNU sed version \([0-9]*\.[0-9.]*\).*$/\1/p'`
4965 case $ac_prog_version in
4966 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
4967 3.0[2-9]*|3.[1-9]*|[4-9]*)
4968 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
4969 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
4971 esac
4972 { echo "$as_me:$LINENO: result: $ac_prog_version" >&5
4973 echo "${ECHO_T}$ac_prog_version" >&6; }
4975 if test $ac_verc_fail = yes; then
4976 SED=: aux_missing="$aux_missing sed"
4980 for ac_prog in autoconf
4982 # Extract the first word of "$ac_prog", so it can be a program name with args.
4983 set dummy $ac_prog; ac_word=$2
4984 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4985 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4986 if test "${ac_cv_prog_AUTOCONF+set}" = set; then
4987 echo $ECHO_N "(cached) $ECHO_C" >&6
4988 else
4989 if test -n "$AUTOCONF"; then
4990 ac_cv_prog_AUTOCONF="$AUTOCONF" # Let the user override the test.
4991 else
4992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4993 for as_dir in $PATH
4995 IFS=$as_save_IFS
4996 test -z "$as_dir" && as_dir=.
4997 for ac_exec_ext in '' $ac_executable_extensions; do
4998 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4999 ac_cv_prog_AUTOCONF="$ac_prog"
5000 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5001 break 2
5003 done
5004 done
5005 IFS=$as_save_IFS
5009 AUTOCONF=$ac_cv_prog_AUTOCONF
5010 if test -n "$AUTOCONF"; then
5011 { echo "$as_me:$LINENO: result: $AUTOCONF" >&5
5012 echo "${ECHO_T}$AUTOCONF" >&6; }
5013 else
5014 { echo "$as_me:$LINENO: result: no" >&5
5015 echo "${ECHO_T}no" >&6; }
5019 test -n "$AUTOCONF" && break
5020 done
5021 test -n "$AUTOCONF" || AUTOCONF="no"
5023 case "x$AUTOCONF" in
5024 xno|x|x:) AUTOCONF=no ;;
5026 { echo "$as_me:$LINENO: checking whether $AUTOCONF${ACFLAGS:+ }$ACFLAGS works" >&5
5027 echo $ECHO_N "checking whether $AUTOCONF${ACFLAGS:+ }$ACFLAGS works... $ECHO_C" >&6; }
5028 if test "${libc_cv_autoconf_works+set}" = set; then
5029 echo $ECHO_N "(cached) $ECHO_C" >&6
5030 else
5031 if (cd $srcdir; $AUTOCONF $ACFLAGS configure.in > /dev/null 2>&1); then
5032 libc_cv_autoconf_works=yes
5033 else
5034 libc_cv_autoconf_works=no
5037 { echo "$as_me:$LINENO: result: $libc_cv_autoconf_works" >&5
5038 echo "${ECHO_T}$libc_cv_autoconf_works" >&6; }
5039 test $libc_cv_autoconf_works = yes || AUTOCONF=no
5041 esac
5042 if test "x$with_cvs" = xyes && test "x$AUTOCONF" = xno; then
5043 # If --without-cvs they probably won't change configure.in, so no complaints.
5044 aux_missing="$aux_missing autoconf"
5047 test -n "$critic_missing" && { { echo "$as_me:$LINENO: error:
5048 *** These critical programs are missing or too old:$critic_missing
5049 *** Check the INSTALL file for required versions." >&5
5050 echo "$as_me: error:
5051 *** These critical programs are missing or too old:$critic_missing
5052 *** Check the INSTALL file for required versions." >&2;}
5053 { (exit 1); exit 1; }; }
5055 test -n "$aux_missing" && { echo "$as_me:$LINENO: WARNING:
5056 *** These auxiliary programs are missing or incompatible versions:$aux_missing
5057 *** some features will be disabled.
5058 *** Check the INSTALL file for required versions." >&5
5059 echo "$as_me: WARNING:
5060 *** These auxiliary programs are missing or incompatible versions:$aux_missing
5061 *** some features will be disabled.
5062 *** Check the INSTALL file for required versions." >&2;}
5064 # if using special system headers, find out the compiler's sekrit
5065 # header directory and add that to the list. NOTE: Only does the right
5066 # thing on a system that doesn't need fixincludes. (Not presently a problem.)
5067 if test -n "$sysheaders"; then
5068 SYSINCLUDES=-nostdinc
5069 for d in include include-fixed; do
5070 i=`$CC -print-file-name="$d"` && test "x$i" != x && test "x$i" != "x$d" &&
5071 SYSINCLUDES="$SYSINCLUDES -isystem $i"
5072 done
5073 SYSINCLUDES="$SYSINCLUDES \
5074 -isystem `echo $sysheaders | sed 's/:/ -isystem /g'`"
5075 if test -n "$CXX"; then
5076 cxxversion=`$CXX -dumpversion 2>&5` &&
5077 cxxmachine=`$CXX -dumpmachine 2>&5` &&
5078 cxxheaders=`$CXX -print-file-name=../../../../include/c++/`"$cxxversion" &&
5079 CXX_SYSINCLUDES="-isystem $cxxheaders \
5080 -isystem $cxxheaders/$cxxmachine -isystem $cxxheaders/backward"
5086 # check if ranlib is necessary
5087 { echo "$as_me:$LINENO: checking whether ranlib is necessary" >&5
5088 echo $ECHO_N "checking whether ranlib is necessary... $ECHO_C" >&6; }
5089 if test "${libc_cv_ranlib_necessary+set}" = set; then
5090 echo $ECHO_N "(cached) $ECHO_C" >&6
5091 else
5092 cat > conftest.c <<EOF
5093 int a;
5094 char b;
5095 void c(void) {}
5097 $CC $CFLAGS $CPPFLAGS -c conftest.c
5098 $AR cr conftest.a conftest.o
5099 cp conftest.a conftest2.a
5100 $RANLIB conftest.a
5101 if cmp -s conftest.a conftest2.a; then
5102 libc_cv_ranlib_necessary=no
5103 else
5104 libc_cv_ranlib_necessary=yes
5106 rm -rf conftest*
5108 { echo "$as_me:$LINENO: result: $libc_cv_ranlib_necessary" >&5
5109 echo "${ECHO_T}$libc_cv_ranlib_necessary" >&6; }
5110 if test "$libc_cv_ranlib_necessary" = no; then
5111 RANLIB=:
5114 # Test if LD_LIBRARY_PATH contains the notation for the current directory
5115 # since this would lead to problems installing/building glibc.
5116 # LD_LIBRARY_PATH contains the current directory if one of the following
5117 # is true:
5118 # - one of the terminals (":" and ";") is the first or last sign
5119 # - two terminals occur directly after each other
5120 # - the path contains an element with a dot in it
5121 { echo "$as_me:$LINENO: checking LD_LIBRARY_PATH variable" >&5
5122 echo $ECHO_N "checking LD_LIBRARY_PATH variable... $ECHO_C" >&6; }
5123 case ${LD_LIBRARY_PATH} in
5124 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
5125 ld_library_path_setting="contains current directory"
5128 ld_library_path_setting="ok"
5130 esac
5131 { echo "$as_me:$LINENO: result: $ld_library_path_setting" >&5
5132 echo "${ECHO_T}$ld_library_path_setting" >&6; }
5133 if test "$ld_library_path_setting" != "ok"; then
5134 { { echo "$as_me:$LINENO: error:
5135 *** LD_LIBRARY_PATH shouldn't contain the current directory when
5136 *** building glibc. Please change the environment variable
5137 *** and run configure again." >&5
5138 echo "$as_me: error:
5139 *** LD_LIBRARY_PATH shouldn't contain the current directory when
5140 *** building glibc. Please change the environment variable
5141 *** and run configure again." >&2;}
5142 { (exit 1); exit 1; }; }
5145 { echo "$as_me:$LINENO: checking whether GCC supports -static-libgcc" >&5
5146 echo $ECHO_N "checking whether GCC supports -static-libgcc... $ECHO_C" >&6; }
5147 if test "${libc_cv_gcc_static_libgcc+set}" = set; then
5148 echo $ECHO_N "(cached) $ECHO_C" >&6
5149 else
5150 if $CC -v -static-libgcc 2>&1 | grep -q 'unrecognized option.*static-libgcc'; then
5151 libc_cv_gcc_static_libgcc=
5152 else
5153 libc_cv_gcc_static_libgcc=-static-libgcc
5156 { echo "$as_me:$LINENO: result: $libc_cv_gcc_static_libgcc" >&5
5157 echo "${ECHO_T}$libc_cv_gcc_static_libgcc" >&6; }
5160 # Extract the first word of "bash", so it can be a program name with args.
5161 set dummy bash; ac_word=$2
5162 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5163 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5164 if test "${ac_cv_path_BASH_SHELL+set}" = set; then
5165 echo $ECHO_N "(cached) $ECHO_C" >&6
5166 else
5167 case $BASH_SHELL in
5168 [\\/]* | ?:[\\/]*)
5169 ac_cv_path_BASH_SHELL="$BASH_SHELL" # Let the user override the test with a path.
5172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5173 for as_dir in $PATH
5175 IFS=$as_save_IFS
5176 test -z "$as_dir" && as_dir=.
5177 for ac_exec_ext in '' $ac_executable_extensions; do
5178 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5179 ac_cv_path_BASH_SHELL="$as_dir/$ac_word$ac_exec_ext"
5180 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5181 break 2
5183 done
5184 done
5185 IFS=$as_save_IFS
5187 test -z "$ac_cv_path_BASH_SHELL" && ac_cv_path_BASH_SHELL="no"
5189 esac
5191 BASH_SHELL=$ac_cv_path_BASH_SHELL
5192 if test -n "$BASH_SHELL"; then
5193 { echo "$as_me:$LINENO: result: $BASH_SHELL" >&5
5194 echo "${ECHO_T}$BASH_SHELL" >&6; }
5195 else
5196 { echo "$as_me:$LINENO: result: no" >&5
5197 echo "${ECHO_T}no" >&6; }
5201 if test "$BASH_SHELL" != no &&
5202 $BASH_SHELL -c 'test "$BASH_VERSINFO" \
5203 && test "$BASH_VERSINFO" -ge 2 >&/dev/null'; then
5204 libc_cv_have_bash2=yes
5205 else
5206 libc_cv_have_bash2=no
5210 if test "$BASH_SHELL" = no; then
5211 # Extract the first word of "ksh", so it can be a program name with args.
5212 set dummy ksh; ac_word=$2
5213 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5214 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5215 if test "${ac_cv_path_KSH+set}" = set; then
5216 echo $ECHO_N "(cached) $ECHO_C" >&6
5217 else
5218 case $KSH in
5219 [\\/]* | ?:[\\/]*)
5220 ac_cv_path_KSH="$KSH" # Let the user override the test with a path.
5223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5224 for as_dir in $PATH
5226 IFS=$as_save_IFS
5227 test -z "$as_dir" && as_dir=.
5228 for ac_exec_ext in '' $ac_executable_extensions; do
5229 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5230 ac_cv_path_KSH="$as_dir/$ac_word$ac_exec_ext"
5231 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5232 break 2
5234 done
5235 done
5236 IFS=$as_save_IFS
5238 test -z "$ac_cv_path_KSH" && ac_cv_path_KSH="no"
5240 esac
5242 KSH=$ac_cv_path_KSH
5243 if test -n "$KSH"; then
5244 { echo "$as_me:$LINENO: result: $KSH" >&5
5245 echo "${ECHO_T}$KSH" >&6; }
5246 else
5247 { echo "$as_me:$LINENO: result: no" >&5
5248 echo "${ECHO_T}no" >&6; }
5252 if test "$KSH" = no; then
5253 libc_cv_have_ksh=no
5254 else
5255 libc_cv_have_ksh=yes
5257 else
5258 KSH="$BASH_SHELL"
5260 libc_cv_have_ksh=yes
5264 for ac_prog in gawk mawk nawk awk
5266 # Extract the first word of "$ac_prog", so it can be a program name with args.
5267 set dummy $ac_prog; ac_word=$2
5268 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5269 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5270 if test "${ac_cv_prog_AWK+set}" = set; then
5271 echo $ECHO_N "(cached) $ECHO_C" >&6
5272 else
5273 if test -n "$AWK"; then
5274 ac_cv_prog_AWK="$AWK" # Let the user override the test.
5275 else
5276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5277 for as_dir in $PATH
5279 IFS=$as_save_IFS
5280 test -z "$as_dir" && as_dir=.
5281 for ac_exec_ext in '' $ac_executable_extensions; do
5282 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5283 ac_cv_prog_AWK="$ac_prog"
5284 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5285 break 2
5287 done
5288 done
5289 IFS=$as_save_IFS
5293 AWK=$ac_cv_prog_AWK
5294 if test -n "$AWK"; then
5295 { echo "$as_me:$LINENO: result: $AWK" >&5
5296 echo "${ECHO_T}$AWK" >&6; }
5297 else
5298 { echo "$as_me:$LINENO: result: no" >&5
5299 echo "${ECHO_T}no" >&6; }
5303 test -n "$AWK" && break
5304 done
5306 # Extract the first word of "perl", so it can be a program name with args.
5307 set dummy perl; ac_word=$2
5308 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5309 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5310 if test "${ac_cv_path_PERL+set}" = set; then
5311 echo $ECHO_N "(cached) $ECHO_C" >&6
5312 else
5313 case $PERL in
5314 [\\/]* | ?:[\\/]*)
5315 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
5318 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5319 for as_dir in $PATH
5321 IFS=$as_save_IFS
5322 test -z "$as_dir" && as_dir=.
5323 for ac_exec_ext in '' $ac_executable_extensions; do
5324 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5325 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
5326 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5327 break 2
5329 done
5330 done
5331 IFS=$as_save_IFS
5333 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="no"
5335 esac
5337 PERL=$ac_cv_path_PERL
5338 if test -n "$PERL"; then
5339 { echo "$as_me:$LINENO: result: $PERL" >&5
5340 echo "${ECHO_T}$PERL" >&6; }
5341 else
5342 { echo "$as_me:$LINENO: result: no" >&5
5343 echo "${ECHO_T}no" >&6; }
5347 if test "$PERL" != no &&
5348 (eval `$PERL -V:apiversion`; test `expr "$apiversion" \< 5` -ne 0); then
5349 PERL=no
5351 # Extract the first word of "install-info", so it can be a program name with args.
5352 set dummy install-info; ac_word=$2
5353 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5354 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5355 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5356 echo $ECHO_N "(cached) $ECHO_C" >&6
5357 else
5358 case $INSTALL_INFO in
5359 [\\/]* | ?:[\\/]*)
5360 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5364 as_dummy="$PATH:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin"
5365 for as_dir in $as_dummy
5367 IFS=$as_save_IFS
5368 test -z "$as_dir" && as_dir=.
5369 for ac_exec_ext in '' $ac_executable_extensions; do
5370 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5371 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5372 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5373 break 2
5375 done
5376 done
5377 IFS=$as_save_IFS
5379 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO="no"
5381 esac
5383 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5384 if test -n "$INSTALL_INFO"; then
5385 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5386 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5387 else
5388 { echo "$as_me:$LINENO: result: no" >&5
5389 echo "${ECHO_T}no" >&6; }
5393 # Extract the first word of "bison", so it can be a program name with args.
5394 set dummy bison; ac_word=$2
5395 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5396 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5397 if test "${ac_cv_path_BISON+set}" = set; then
5398 echo $ECHO_N "(cached) $ECHO_C" >&6
5399 else
5400 case $BISON in
5401 [\\/]* | ?:[\\/]*)
5402 ac_cv_path_BISON="$BISON" # Let the user override the test with a path.
5405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5406 as_dummy="$PATH:/usr/local/bin:/usr/bin:/bin"
5407 for as_dir in $as_dummy
5409 IFS=$as_save_IFS
5410 test -z "$as_dir" && as_dir=.
5411 for ac_exec_ext in '' $ac_executable_extensions; do
5412 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5413 ac_cv_path_BISON="$as_dir/$ac_word$ac_exec_ext"
5414 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5415 break 2
5417 done
5418 done
5419 IFS=$as_save_IFS
5421 test -z "$ac_cv_path_BISON" && ac_cv_path_BISON="no"
5423 esac
5425 BISON=$ac_cv_path_BISON
5426 if test -n "$BISON"; then
5427 { echo "$as_me:$LINENO: result: $BISON" >&5
5428 echo "${ECHO_T}$BISON" >&6; }
5429 else
5430 { echo "$as_me:$LINENO: result: no" >&5
5431 echo "${ECHO_T}no" >&6; }
5436 { echo "$as_me:$LINENO: checking for signed size_t type" >&5
5437 echo $ECHO_N "checking for signed size_t type... $ECHO_C" >&6; }
5438 if test "${libc_cv_signed_size_t+set}" = set; then
5439 echo $ECHO_N "(cached) $ECHO_C" >&6
5440 else
5441 echo '#include <stddef.h>
5442 FOOBAR __SIZE_TYPE__ FOOBAR' > conftest.c
5443 if eval "$ac_cpp conftest.c 2>/dev/null" \
5444 | grep '^FOOBAR.*unsigned.*FOOBAR$' >/dev/null; then
5445 libc_cv_signed_size_t=no
5446 else
5447 libc_cv_signed_size_t=yes
5449 rm -f conftest*
5451 { echo "$as_me:$LINENO: result: $libc_cv_signed_size_t" >&5
5452 echo "${ECHO_T}$libc_cv_signed_size_t" >&6; }
5453 if test $libc_cv_signed_size_t = yes; then
5454 cat >> confdefs.h <<\EOF
5455 #undef __SIZE_TYPE__
5456 #define __SIZE_TYPE__ unsigned
5461 { echo "$as_me:$LINENO: checking for libc-friendly stddef.h" >&5
5462 echo $ECHO_N "checking for libc-friendly stddef.h... $ECHO_C" >&6; }
5463 if test "${libc_cv_friendly_stddef+set}" = set; then
5464 echo $ECHO_N "(cached) $ECHO_C" >&6
5465 else
5466 cat >conftest.$ac_ext <<_ACEOF
5467 /* confdefs.h. */
5468 _ACEOF
5469 cat confdefs.h >>conftest.$ac_ext
5470 cat >>conftest.$ac_ext <<_ACEOF
5471 /* end confdefs.h. */
5472 #define __need_size_t
5473 #define __need_wchar_t
5474 #include <stddef.h>
5475 #define __need_NULL
5476 #include <stddef.h>
5478 main ()
5480 size_t size; wchar_t wchar;
5481 #ifdef offsetof
5482 #error stddef.h ignored __need_*
5483 #endif
5484 if (&size == NULL || &wchar == NULL) abort ();
5486 return 0;
5488 _ACEOF
5489 rm -f conftest.$ac_objext
5490 if { (ac_try="$ac_compile"
5491 case "(($ac_try" in
5492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5493 *) ac_try_echo=$ac_try;;
5494 esac
5495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5496 (eval "$ac_compile") 2>conftest.er1
5497 ac_status=$?
5498 grep -v '^ *+' conftest.er1 >conftest.err
5499 rm -f conftest.er1
5500 cat conftest.err >&5
5501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5502 (exit $ac_status); } && {
5503 test -z "$ac_c_werror_flag" ||
5504 test ! -s conftest.err
5505 } && test -s conftest.$ac_objext; then
5506 libc_cv_friendly_stddef=yes
5507 else
5508 echo "$as_me: failed program was:" >&5
5509 sed 's/^/| /' conftest.$ac_ext >&5
5511 libc_cv_friendly_stddef=no
5514 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5516 { echo "$as_me:$LINENO: result: $libc_cv_friendly_stddef" >&5
5517 echo "${ECHO_T}$libc_cv_friendly_stddef" >&6; }
5518 if test $libc_cv_friendly_stddef = yes; then
5519 config_vars="$config_vars
5520 override stddef.h = # The installed <stddef.h> seems to be libc-friendly."
5523 { echo "$as_me:$LINENO: checking whether we need to use -P to assemble .S files" >&5
5524 echo $ECHO_N "checking whether we need to use -P to assemble .S files... $ECHO_C" >&6; }
5525 if test "${libc_cv_need_minus_P+set}" = set; then
5526 echo $ECHO_N "(cached) $ECHO_C" >&6
5527 else
5528 cat > conftest.S <<EOF
5529 #include "confdefs.h"
5530 /* Nothing whatsoever. */
5532 if { ac_try='${CC-cc} $CPPFLAGS $ASFLAGS -c conftest.S 1>&5'
5533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5534 (eval $ac_try) 2>&5
5535 ac_status=$?
5536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5537 (exit $ac_status); }; }; then
5538 libc_cv_need_minus_P=no
5539 else
5540 libc_cv_need_minus_P=yes
5542 rm -f conftest*
5544 { echo "$as_me:$LINENO: result: $libc_cv_need_minus_P" >&5
5545 echo "${ECHO_T}$libc_cv_need_minus_P" >&6; }
5546 if test $libc_cv_need_minus_P = yes; then
5547 config_vars="$config_vars
5548 asm-CPPFLAGS = -P # The assembler can't grok cpp's # line directives."
5551 { echo "$as_me:$LINENO: checking whether .text pseudo-op must be used" >&5
5552 echo $ECHO_N "checking whether .text pseudo-op must be used... $ECHO_C" >&6; }
5553 if test "${libc_cv_dot_text+set}" = set; then
5554 echo $ECHO_N "(cached) $ECHO_C" >&6
5555 else
5556 cat > conftest.s <<EOF
5557 .text
5559 libc_cv_dot_text=
5560 if { ac_try='${CC-cc} $ASFLAGS -c conftest.s 1>&5'
5561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5562 (eval $ac_try) 2>&5
5563 ac_status=$?
5564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5565 (exit $ac_status); }; }; then
5566 libc_cv_dot_text=.text
5568 rm -f conftest*
5571 if test -z "$libc_cv_dot_text"; then
5572 { echo "$as_me:$LINENO: result: no" >&5
5573 echo "${ECHO_T}no" >&6; }
5574 else
5575 { echo "$as_me:$LINENO: result: yes" >&5
5576 echo "${ECHO_T}yes" >&6; }
5579 { echo "$as_me:$LINENO: checking for assembler global-symbol directive" >&5
5580 echo $ECHO_N "checking for assembler global-symbol directive... $ECHO_C" >&6; }
5581 if test "${libc_cv_asm_global_directive+set}" = set; then
5582 echo $ECHO_N "(cached) $ECHO_C" >&6
5583 else
5584 libc_cv_asm_global_directive=UNKNOWN
5585 for ac_globl in .globl .global .EXPORT; do
5586 cat > conftest.s <<EOF
5587 ${libc_cv_dot_text}
5588 ${ac_globl} foo
5589 foo:
5591 if { ac_try='${CC-cc} $ASFLAGS -c conftest.s 1>&5'
5592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5593 (eval $ac_try) 2>&5
5594 ac_status=$?
5595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5596 (exit $ac_status); }; }; then
5597 libc_cv_asm_global_directive=${ac_globl}
5599 rm -f conftest*
5600 test $libc_cv_asm_global_directive != UNKNOWN && break
5601 done
5603 { echo "$as_me:$LINENO: result: $libc_cv_asm_global_directive" >&5
5604 echo "${ECHO_T}$libc_cv_asm_global_directive" >&6; }
5605 if test $libc_cv_asm_global_directive = UNKNOWN; then
5606 { { echo "$as_me:$LINENO: error: cannot determine asm global directive" >&5
5607 echo "$as_me: error: cannot determine asm global directive" >&2;}
5608 { (exit 1); exit 1; }; }
5609 else
5610 cat >>confdefs.h <<_ACEOF
5611 #define ASM_GLOBAL_DIRECTIVE ${libc_cv_asm_global_directive}
5612 _ACEOF
5616 { echo "$as_me:$LINENO: checking for .set assembler directive" >&5
5617 echo $ECHO_N "checking for .set assembler directive... $ECHO_C" >&6; }
5618 if test "${libc_cv_asm_set_directive+set}" = set; then
5619 echo $ECHO_N "(cached) $ECHO_C" >&6
5620 else
5621 cat > conftest.s <<EOF
5622 ${libc_cv_dot_text}
5623 foo:
5624 .set glibc_conftest_frobozz,foo
5625 $libc_cv_asm_global_directive glibc_conftest_frobozz
5627 # The alpha-dec-osf1 assembler gives only a warning for `.set'
5628 # (but it doesn't work), so we must do a linking check to be sure.
5629 cat > conftest1.c <<\EOF
5630 extern int glibc_conftest_frobozz;
5631 void _start() { glibc_conftest_frobozz = 1; }
5633 if ${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \
5634 -nostartfiles -nostdlib \
5635 -o conftest conftest.s conftest1.c 1>&5 2>&5; then
5636 libc_cv_asm_set_directive=yes
5637 else
5638 libc_cv_asm_set_directive=no
5640 rm -f conftest*
5642 { echo "$as_me:$LINENO: result: $libc_cv_asm_set_directive" >&5
5643 echo "${ECHO_T}$libc_cv_asm_set_directive" >&6; }
5644 if test $libc_cv_asm_set_directive = yes; then
5645 cat >>confdefs.h <<\_ACEOF
5646 #define HAVE_ASM_SET_DIRECTIVE 1
5647 _ACEOF
5651 { echo "$as_me:$LINENO: checking for assembler .type directive prefix" >&5
5652 echo $ECHO_N "checking for assembler .type directive prefix... $ECHO_C" >&6; }
5653 if test "${libc_cv_asm_type_prefix+set}" = set; then
5654 echo $ECHO_N "(cached) $ECHO_C" >&6
5655 else
5656 libc_cv_asm_type_prefix=no
5657 for ac_try_prefix in '@' '%' '#'; do
5658 cat > conftest.s <<EOF
5659 ${libc_cv_dot_text}
5660 ${libc_cv_asm_global_directive} foo
5661 .type foo, ${ac_try_prefix}object
5662 .size foo, 1
5663 foo:
5664 .byte 1
5666 if { ac_try='${CC-cc} $ASFLAGS -c conftest.s 1>&5'
5667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5668 (eval $ac_try) 2>&5
5669 ac_status=$?
5670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5671 (exit $ac_status); }; }; then
5672 libc_cv_asm_type_prefix=${ac_try_prefix}
5674 rm -f conftest*
5675 test "x$libc_cv_asm_type_prefix" != xno && break
5676 done
5678 { echo "$as_me:$LINENO: result: $libc_cv_asm_type_prefix" >&5
5679 echo "${ECHO_T}$libc_cv_asm_type_prefix" >&6; }
5680 if test "x$libc_cv_asm_type_prefix" != xno; then
5681 cat >>confdefs.h <<_ACEOF
5682 #define ASM_TYPE_DIRECTIVE_PREFIX ${libc_cv_asm_type_prefix}
5683 _ACEOF
5687 { echo "$as_me:$LINENO: checking for .symver assembler directive" >&5
5688 echo $ECHO_N "checking for .symver assembler directive... $ECHO_C" >&6; }
5689 if test "${libc_cv_asm_symver_directive+set}" = set; then
5690 echo $ECHO_N "(cached) $ECHO_C" >&6
5691 else
5692 cat > conftest.s <<EOF
5693 ${libc_cv_dot_text}
5694 _sym:
5695 .symver _sym,sym@VERS
5697 if ${CC-cc} -c $ASFLAGS conftest.s 1>&5 2>&5; then
5698 libc_cv_asm_symver_directive=yes
5699 else
5700 libc_cv_asm_symver_directive=no
5702 rm -f conftest*
5704 { echo "$as_me:$LINENO: result: $libc_cv_asm_symver_directive" >&5
5705 echo "${ECHO_T}$libc_cv_asm_symver_directive" >&6; }
5706 { echo "$as_me:$LINENO: checking for ld --version-script" >&5
5707 echo $ECHO_N "checking for ld --version-script... $ECHO_C" >&6; }
5708 if test "${libc_cv_ld_version_script_option+set}" = set; then
5709 echo $ECHO_N "(cached) $ECHO_C" >&6
5710 else
5711 if test $libc_cv_asm_symver_directive = yes; then
5712 cat > conftest.s <<EOF
5713 ${libc_cv_dot_text}
5714 _sym:
5715 .symver _sym,sym@VERS
5717 cat > conftest.map <<EOF
5718 VERS_1 {
5719 global: sym;
5722 VERS_2 {
5723 global: sym;
5724 } VERS_1;
5726 if ${CC-cc} -c $ASFLAGS conftest.s 1>&5 2>&5; then
5727 if { ac_try='${CC-cc} $CFLAGS $LDFLAGS -shared
5728 -o conftest.so conftest.o
5729 -nostartfiles -nostdlib
5730 -Wl,--version-script,conftest.map
5731 1>&5'
5732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5733 (eval $ac_try) 2>&5
5734 ac_status=$?
5735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5736 (exit $ac_status); }; };
5737 then
5738 libc_cv_ld_version_script_option=yes
5739 else
5740 libc_cv_ld_version_script_option=no
5742 else
5743 libc_cv_ld_version_script_option=no
5745 else
5746 libc_cv_ld_version_script_option=no
5748 rm -f conftest*
5750 { echo "$as_me:$LINENO: result: $libc_cv_ld_version_script_option" >&5
5751 echo "${ECHO_T}$libc_cv_ld_version_script_option" >&6; }
5752 if test $shared != no &&
5753 test $libc_cv_asm_symver_directive = yes &&
5754 test $libc_cv_ld_version_script_option = yes &&
5755 test $enable_versioning = yes; then
5756 VERSIONING=yes
5757 cat >>confdefs.h <<\_ACEOF
5758 #define DO_VERSIONING 1
5759 _ACEOF
5761 else
5762 VERSIONING=no
5766 if test $elf = yes && test $shared != no && test $VERSIONING = no; then
5767 echo "\
5768 *** WARNING: You should not compile GNU libc without versioning. Not using
5769 *** versioning will introduce incompatibilities so that old binaries
5770 *** will not run anymore.
5771 *** For versioning you need recent binutils (binutils-2.8.1.0.23 or newer)."
5773 if test $elf = yes; then
5774 { echo "$as_me:$LINENO: checking for .previous assembler directive" >&5
5775 echo $ECHO_N "checking for .previous assembler directive... $ECHO_C" >&6; }
5776 if test "${libc_cv_asm_previous_directive+set}" = set; then
5777 echo $ECHO_N "(cached) $ECHO_C" >&6
5778 else
5779 cat > conftest.s <<EOF
5780 .section foo_section
5781 .previous
5783 if { ac_try='${CC-cc} -c $ASFLAGS conftest.s 1>&5'
5784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5785 (eval $ac_try) 2>&5
5786 ac_status=$?
5787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5788 (exit $ac_status); }; }; then
5789 libc_cv_asm_previous_directive=yes
5790 else
5791 libc_cv_asm_previous_directive=no
5793 rm -f conftest*
5795 { echo "$as_me:$LINENO: result: $libc_cv_asm_previous_directive" >&5
5796 echo "${ECHO_T}$libc_cv_asm_previous_directive" >&6; }
5797 if test $libc_cv_asm_previous_directive = yes; then
5798 cat >>confdefs.h <<\_ACEOF
5799 #define HAVE_ASM_PREVIOUS_DIRECTIVE 1
5800 _ACEOF
5802 else
5803 { echo "$as_me:$LINENO: checking for .popsection assembler directive" >&5
5804 echo $ECHO_N "checking for .popsection assembler directive... $ECHO_C" >&6; }
5805 if test "${libc_cv_asm_popsection_directive+set}" = set; then
5806 echo $ECHO_N "(cached) $ECHO_C" >&6
5807 else
5808 cat > conftest.s <<EOF
5809 .pushsection foo_section
5810 .popsection
5812 if { ac_try='${CC-cc} -c $ASFLAGS conftest.s 1>&5'
5813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5814 (eval $ac_try) 2>&5
5815 ac_status=$?
5816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5817 (exit $ac_status); }; }; then
5818 libc_cv_asm_popsection_directive=yes
5819 else
5820 libc_cv_asm_popsection_directive=no
5822 rm -f conftest*
5824 { echo "$as_me:$LINENO: result: $libc_cv_asm_popsection_directive" >&5
5825 echo "${ECHO_T}$libc_cv_asm_popsection_directive" >&6; }
5826 if test $libc_cv_asm_popsection_directive = yes; then
5827 cat >>confdefs.h <<\_ACEOF
5828 #define HAVE_ASM_POPSECTION_DIRECTIVE 1
5829 _ACEOF
5833 { echo "$as_me:$LINENO: checking for .protected and .hidden assembler directive" >&5
5834 echo $ECHO_N "checking for .protected and .hidden assembler directive... $ECHO_C" >&6; }
5835 if test "${libc_cv_asm_protected_directive+set}" = set; then
5836 echo $ECHO_N "(cached) $ECHO_C" >&6
5837 else
5838 cat > conftest.s <<EOF
5839 .protected foo
5840 foo:
5841 .hidden bar
5842 bar:
5844 if { ac_try='${CC-cc} -c $ASFLAGS conftest.s 1>&5'
5845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5846 (eval $ac_try) 2>&5
5847 ac_status=$?
5848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5849 (exit $ac_status); }; }; then
5850 libc_cv_asm_protected_directive=yes
5851 else
5852 { { echo "$as_me:$LINENO: error: assembler support for symbol visibility is required" >&5
5853 echo "$as_me: error: assembler support for symbol visibility is required" >&2;}
5854 { (exit 1); exit 1; }; }
5856 rm -f conftest*
5858 { echo "$as_me:$LINENO: result: $libc_cv_asm_protected_directive" >&5
5859 echo "${ECHO_T}$libc_cv_asm_protected_directive" >&6; }
5861 if test $libc_cv_asm_protected_directive = yes; then
5862 { echo "$as_me:$LINENO: checking whether __attribute__((visibility())) is supported" >&5
5863 echo $ECHO_N "checking whether __attribute__((visibility())) is supported... $ECHO_C" >&6; }
5864 if test "${libc_cv_visibility_attribute+set}" = set; then
5865 echo $ECHO_N "(cached) $ECHO_C" >&6
5866 else
5867 cat > conftest.c <<EOF
5868 int foo __attribute__ ((visibility ("hidden"))) = 1;
5869 int bar __attribute__ ((visibility ("protected"))) = 1;
5871 libc_cv_visibility_attribute=no
5872 if { ac_try='${CC-cc} -Werror -S conftest.c -o conftest.s 1>&5'
5873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5874 (eval $ac_try) 2>&5
5875 ac_status=$?
5876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5877 (exit $ac_status); }; }; then
5878 if grep '\.hidden.*foo' conftest.s >/dev/null; then
5879 if grep '\.protected.*bar' conftest.s >/dev/null; then
5880 libc_cv_visibility_attribute=yes
5884 rm -f conftest.cs
5887 { echo "$as_me:$LINENO: result: $libc_cv_visibility_attribute" >&5
5888 echo "${ECHO_T}$libc_cv_visibility_attribute" >&6; }
5889 if test $libc_cv_visibility_attribute != yes; then
5890 { { echo "$as_me:$LINENO: error: compiler support for visibility attribute is required" >&5
5891 echo "$as_me: error: compiler support for visibility attribute is required" >&2;}
5892 { (exit 1); exit 1; }; }
5896 if test $libc_cv_visibility_attribute = yes; then
5897 { echo "$as_me:$LINENO: checking for broken __attribute__((visibility()))" >&5
5898 echo $ECHO_N "checking for broken __attribute__((visibility()))... $ECHO_C" >&6; }
5899 if test "${libc_cv_broken_visibility_attribute+set}" = set; then
5900 echo $ECHO_N "(cached) $ECHO_C" >&6
5901 else
5902 cat > conftest.c <<EOF
5903 int foo (int x);
5904 int bar (int x) __asm__ ("foo") __attribute__ ((visibility ("hidden")));
5905 int bar (int x) { return x; }
5907 libc_cv_broken_visibility_attribute=yes
5908 if { ac_try='${CC-cc} -Werror -S conftest.c -o conftest.s1>&5'
5909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5910 (eval $ac_try) 2>&5
5911 ac_status=$?
5912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5913 (exit $ac_status); }; }; then
5914 if grep '\.hidden[ _]foo' conftest.s >/dev/null; then
5915 libc_cv_broken_visibility_attribute=no
5918 rm -f conftest.c conftest.s
5921 { echo "$as_me:$LINENO: result: $libc_cv_broken_visibility_attribute" >&5
5922 echo "${ECHO_T}$libc_cv_broken_visibility_attribute" >&6; }
5923 if test $libc_cv_broken_visibility_attribute = yes; then
5924 { { echo "$as_me:$LINENO: error: working compiler support for visibility attribute is required" >&5
5925 echo "$as_me: error: working compiler support for visibility attribute is required" >&2;}
5926 { (exit 1); exit 1; }; }
5930 { echo "$as_me:$LINENO: checking for broken __attribute__((alias()))" >&5
5931 echo $ECHO_N "checking for broken __attribute__((alias()))... $ECHO_C" >&6; }
5932 if test "${libc_cv_broken_alias_attribute+set}" = set; then
5933 echo $ECHO_N "(cached) $ECHO_C" >&6
5934 else
5935 cat > conftest.c <<EOF
5936 extern int foo (int x) __asm ("xyzzy");
5937 int bar (int x) { return x; }
5938 extern __typeof (bar) foo __attribute ((weak, alias ("bar")));
5939 extern int dfoo;
5940 extern __typeof (dfoo) dfoo __asm ("abccb");
5941 int dfoo = 1;
5943 libc_cv_broken_alias_attribute=yes
5944 if { ac_try='${CC-cc} -Werror -S conftest.c -o conftest.s 1>&5'
5945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5946 (eval $ac_try) 2>&5
5947 ac_status=$?
5948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5949 (exit $ac_status); }; }; then
5950 if grep 'xyzzy' conftest.s >/dev/null &&
5951 grep 'abccb' conftest.s >/dev/null; then
5952 libc_cv_broken_alias_attribute=no
5955 rm -f conftest.c conftest.s
5958 { echo "$as_me:$LINENO: result: $libc_cv_broken_alias_attribute" >&5
5959 echo "${ECHO_T}$libc_cv_broken_alias_attribute" >&6; }
5960 if test $libc_cv_broken_alias_attribute = yes; then
5961 { { echo "$as_me:$LINENO: error: working alias attribute support required" >&5
5962 echo "$as_me: error: working alias attribute support required" >&2;}
5963 { (exit 1); exit 1; }; }
5966 if test $libc_cv_visibility_attribute = yes; then
5967 { echo "$as_me:$LINENO: checking whether to put _rtld_local into .sdata section" >&5
5968 echo $ECHO_N "checking whether to put _rtld_local into .sdata section... $ECHO_C" >&6; }
5969 if test "${libc_cv_have_sdata_section+set}" = set; then
5970 echo $ECHO_N "(cached) $ECHO_C" >&6
5971 else
5972 echo "int i;" > conftest.c
5973 libc_cv_have_sdata_section=no
5974 if ${CC-cc} $LDFLAGS -fPIC -shared -Wl,--verbose conftest.c -o conftest.so 2>&1 \
5975 | grep '\.sdata' >/dev/null; then
5976 libc_cv_have_sdata_section=yes
5978 rm -f conftest.c conftest.so
5981 { echo "$as_me:$LINENO: result: $libc_cv_have_sdata_section" >&5
5982 echo "${ECHO_T}$libc_cv_have_sdata_section" >&6; }
5983 if test $libc_cv_have_sdata_section = yes; then
5984 cat >>confdefs.h <<\_ACEOF
5985 #define HAVE_SDATA_SECTION 1
5986 _ACEOF
5991 { echo "$as_me:$LINENO: checking for .preinit_array/.init_array/.fini_array support" >&5
5992 echo $ECHO_N "checking for .preinit_array/.init_array/.fini_array support... $ECHO_C" >&6; }
5993 if test "${libc_cv_initfini_array+set}" = set; then
5994 echo $ECHO_N "(cached) $ECHO_C" >&6
5995 else
5996 cat > conftest.c <<EOF
5997 int _start (void) { return 0; }
5998 int __start (void) { return 0; }
5999 int foo (void) { return 1; }
6000 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
6002 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS -o conftest conftest.c
6003 -static -nostartfiles -nostdlib 1>&5'
6004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6005 (eval $ac_try) 2>&5
6006 ac_status=$?
6007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6008 (exit $ac_status); }; }
6009 then
6010 if readelf -S conftest | fgrep INIT_ARRAY > /dev/null; then
6011 libc_cv_initfini_array=yes
6012 else
6013 libc_cv_initfini_array=no
6015 else
6016 libc_cv_initfini_array=no
6018 rm -f conftest*
6020 { echo "$as_me:$LINENO: result: $libc_cv_initfini_array" >&5
6021 echo "${ECHO_T}$libc_cv_initfini_array" >&6; }
6022 if test $libc_cv_initfini_array != yes; then
6023 { { echo "$as_me:$LINENO: error: Need linker with .init_array/.fini_array support." >&5
6024 echo "$as_me: error: Need linker with .init_array/.fini_array support." >&2;}
6025 { (exit 1); exit 1; }; }
6028 { echo "$as_me:$LINENO: checking for libunwind-support in compiler" >&5
6029 echo $ECHO_N "checking for libunwind-support in compiler... $ECHO_C" >&6; }
6030 if test "${libc_cv_cc_with_libunwind+set}" = set; then
6031 echo $ECHO_N "(cached) $ECHO_C" >&6
6032 else
6034 cat > conftest.c <<EOF
6035 int main (void) { return 0; }
6037 if ${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS -static -o conftest \
6038 conftest.c -v 2>&1 >/dev/null | grep -q " -lunwind "; then
6039 libc_cv_cc_with_libunwind=yes
6040 else
6041 libc_cv_cc_with_libunwind=no
6043 rm -f conftest*
6045 { echo "$as_me:$LINENO: result: $libc_cv_cc_with_libunwind" >&5
6046 echo "${ECHO_T}$libc_cv_cc_with_libunwind" >&6; }
6048 if test $libc_cv_cc_with_libunwind = yes; then
6049 cat >>confdefs.h <<\_ACEOF
6050 #define HAVE_CC_WITH_LIBUNWIND 1
6051 _ACEOF
6055 { echo "$as_me:$LINENO: checking for -z nodelete option" >&5
6056 echo $ECHO_N "checking for -z nodelete option... $ECHO_C" >&6; }
6057 if test "${libc_cv_z_nodelete+set}" = set; then
6058 echo $ECHO_N "(cached) $ECHO_C" >&6
6059 else
6060 cat > conftest.c <<EOF
6061 int _start (void) { return 42; }
6063 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
6064 -fPIC -shared -o conftest.so conftest.c
6065 -nostartfiles -nostdlib
6066 -Wl,--enable-new-dtags,-z,nodelete 1>&5'
6067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6068 (eval $ac_try) 2>&5
6069 ac_status=$?
6070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6071 (exit $ac_status); }; }
6072 then
6073 libc_cv_z_nodelete=yes
6074 else
6075 { { echo "$as_me:$LINENO: error: linker with -z nodelete support required" >&5
6076 echo "$as_me: error: linker with -z nodelete support required" >&2;}
6077 { (exit 1); exit 1; }; }
6079 rm -f conftest*
6081 { echo "$as_me:$LINENO: result: $libc_cv_z_nodelete" >&5
6082 echo "${ECHO_T}$libc_cv_z_nodelete" >&6; }
6084 { echo "$as_me:$LINENO: checking for -z nodlopen option" >&5
6085 echo $ECHO_N "checking for -z nodlopen option... $ECHO_C" >&6; }
6086 if test "${libc_cv_z_nodlopen+set}" = set; then
6087 echo $ECHO_N "(cached) $ECHO_C" >&6
6088 else
6089 cat > conftest.c <<EOF
6090 int _start (void) { return 42; }
6092 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
6093 -fPIC -shared -o conftest.so conftest.c
6094 -nostartfiles -nostdlib
6095 -Wl,--enable-new-dtags,-z,nodlopen 1>&5'
6096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6097 (eval $ac_try) 2>&5
6098 ac_status=$?
6099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6100 (exit $ac_status); }; }
6101 then
6102 libc_cv_z_nodlopen=yes
6103 else
6104 { { echo "$as_me:$LINENO: error: linker with -z nodlopen support required" >&5
6105 echo "$as_me: error: linker with -z nodlopen support required" >&2;}
6106 { (exit 1); exit 1; }; }
6108 rm -f conftest*
6110 { echo "$as_me:$LINENO: result: $libc_cv_z_nodlopen" >&5
6111 echo "${ECHO_T}$libc_cv_z_nodlopen" >&6; }
6113 { echo "$as_me:$LINENO: checking for -z initfirst option" >&5
6114 echo $ECHO_N "checking for -z initfirst option... $ECHO_C" >&6; }
6115 if test "${libc_cv_z_initfirst+set}" = set; then
6116 echo $ECHO_N "(cached) $ECHO_C" >&6
6117 else
6118 cat > conftest.c <<EOF
6119 int _start (void) { return 42; }
6121 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
6122 -fPIC -shared -o conftest.so conftest.c
6123 -nostartfiles -nostdlib
6124 -Wl,--enable-new-dtags,-z,initfirst 1>&5'
6125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6126 (eval $ac_try) 2>&5
6127 ac_status=$?
6128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6129 (exit $ac_status); }; }
6130 then
6131 libc_cv_z_initfirst=yes
6132 else
6133 { { echo "$as_me:$LINENO: error: linker with -z initfirst support required" >&5
6134 echo "$as_me: error: linker with -z initfirst support required" >&2;}
6135 { (exit 1); exit 1; }; }
6137 rm -f conftest*
6139 { echo "$as_me:$LINENO: result: $libc_cv_z_initfirst" >&5
6140 echo "${ECHO_T}$libc_cv_z_initfirst" >&6; }
6142 case "$base_machine" in
6143 i[34567]86 | x86_64 | powerpc* | s390* | sparc* | alpha*)
6144 { echo "$as_me:$LINENO: checking for -z relro option" >&5
6145 echo $ECHO_N "checking for -z relro option... $ECHO_C" >&6; }
6146 if test "${libc_cv_z_relro+set}" = set; then
6147 echo $ECHO_N "(cached) $ECHO_C" >&6
6148 else
6149 libc_cv_z_relro=no
6150 if { ac_try='${CC-cc} -v --help 2>&1|grep "z relro" 1>&5'
6151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6152 (eval $ac_try) 2>&5
6153 ac_status=$?
6154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6155 (exit $ac_status); }; }
6156 then
6157 if { ac_try='${CC-cc} -Wl,--verbose 2>&1|grep DATA_SEGMENT_RELRO_END 1>&5'
6158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6159 (eval $ac_try) 2>&5
6160 ac_status=$?
6161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6162 (exit $ac_status); }; }
6163 then
6164 libc_cv_z_relro=yes
6168 { echo "$as_me:$LINENO: result: $libc_cv_z_relro" >&5
6169 echo "${ECHO_T}$libc_cv_z_relro" >&6; }
6170 if test "$libc_cv_z_relro" = no; then
6171 { { echo "$as_me:$LINENO: error: linker with -z relro support required" >&5
6172 echo "$as_me: error: linker with -z relro support required" >&2;}
6173 { (exit 1); exit 1; }; }
6176 *) ;;
6177 esac
6179 { echo "$as_me:$LINENO: checking for -Bgroup option" >&5
6180 echo $ECHO_N "checking for -Bgroup option... $ECHO_C" >&6; }
6181 if test "${libc_cv_Bgroup+set}" = set; then
6182 echo $ECHO_N "(cached) $ECHO_C" >&6
6183 else
6184 cat > conftest.c <<EOF
6185 int _start (void) { return 42; }
6187 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
6188 -fPIC -shared -o conftest.so conftest.c
6189 -Wl,-Bgroup -nostdlib 1>&5'
6190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6191 (eval $ac_try) 2>&5
6192 ac_status=$?
6193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6194 (exit $ac_status); }; }
6195 then
6196 libc_cv_Bgroup=yes
6197 else
6198 libc_cv_Bgroup=no
6200 rm -f conftest*
6202 { echo "$as_me:$LINENO: result: $libc_cv_Bgroup" >&5
6203 echo "${ECHO_T}$libc_cv_Bgroup" >&6; }
6206 { echo "$as_me:$LINENO: checking for libgcc_s suffix" >&5
6207 echo $ECHO_N "checking for libgcc_s suffix... $ECHO_C" >&6; }
6208 if test "${libc_cv_libgcc_s_suffix+set}" = set; then
6209 echo $ECHO_N "(cached) $ECHO_C" >&6
6210 else
6211 cat > conftest.c <<EOF
6212 int main (void) { return 0; }
6214 libc_cv_libgcc_s_suffix=`${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \
6215 -fPIC -shared -shared-libgcc -o conftest.so \
6216 conftest.c -v 2>&1 >/dev/null \
6217 | sed -n 's/^.* -lgcc_s\([^ ]*\) .*$/\1/p'`
6218 rm -f conftest*
6220 { echo "$as_me:$LINENO: result: $libc_cv_libgcc_s_suffix" >&5
6221 echo "${ECHO_T}$libc_cv_libgcc_s_suffix" >&6; }
6224 { echo "$as_me:$LINENO: checking for --as-needed option" >&5
6225 echo $ECHO_N "checking for --as-needed option... $ECHO_C" >&6; }
6226 if test "${libc_cv_as_needed+set}" = set; then
6227 echo $ECHO_N "(cached) $ECHO_C" >&6
6228 else
6229 cat > conftest.c <<EOF
6230 int main (void) { return 0; }
6232 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
6233 -fPIC -shared -o conftest.so conftest.c
6234 -lgcc_s$libc_cv_libgcc_s_suffix -Wl,--as-needed
6235 -nostdlib 1>&5'
6236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6237 (eval $ac_try) 2>&5
6238 ac_status=$?
6239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6240 (exit $ac_status); }; }
6241 then
6242 libc_cv_as_needed=yes
6243 else
6244 libc_cv_as_needed=no
6246 rm -f conftest*
6248 { echo "$as_me:$LINENO: result: $libc_cv_as_needed" >&5
6249 echo "${ECHO_T}$libc_cv_as_needed" >&6; }
6252 ASFLAGS_config=
6253 { echo "$as_me:$LINENO: checking whether --noexecstack is desirable for .S files" >&5
6254 echo $ECHO_N "checking whether --noexecstack is desirable for .S files... $ECHO_C" >&6; }
6255 if test "${libc_cv_as_noexecstack+set}" = set; then
6256 echo $ECHO_N "(cached) $ECHO_C" >&6
6257 else
6258 cat > conftest.c <<EOF
6259 void foo (void) { }
6261 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS
6262 -S -o conftest.s conftest.c 1>&5'
6263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6264 (eval $ac_try) 2>&5
6265 ac_status=$?
6266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6267 (exit $ac_status); }; } \
6268 && grep -q .note.GNU-stack conftest.s \
6269 && { ac_try='${CC-cc} $ASFLAGS -Wa,--noexecstack
6270 -c -o conftest.o conftest.s 1>&5'
6271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6272 (eval $ac_try) 2>&5
6273 ac_status=$?
6274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6275 (exit $ac_status); }; }
6276 then
6277 libc_cv_as_noexecstack=yes
6278 else
6279 libc_cv_as_noexecstack=no
6281 rm -f conftest*
6283 { echo "$as_me:$LINENO: result: $libc_cv_as_noexecstack" >&5
6284 echo "${ECHO_T}$libc_cv_as_noexecstack" >&6; }
6285 if test $libc_cv_as_noexecstack = yes; then
6286 ASFLAGS_config="$ASFLAGS_config -Wa,--noexecstack"
6290 { echo "$as_me:$LINENO: checking for -z combreloc" >&5
6291 echo $ECHO_N "checking for -z combreloc... $ECHO_C" >&6; }
6292 if test "${libc_cv_z_combreloc+set}" = set; then
6293 echo $ECHO_N "(cached) $ECHO_C" >&6
6294 else
6295 cat > conftest.c <<EOF
6296 extern int bar (int);
6297 extern int mumble;
6298 int foo (void) { return bar (mumble); }
6300 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
6301 -fPIC -shared -o conftest.so conftest.c
6302 -nostdlib -nostartfiles
6303 -Wl,-z,combreloc 1>&5'
6304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6305 (eval $ac_try) 2>&5
6306 ac_status=$?
6307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6308 (exit $ac_status); }; }
6309 then
6310 if readelf -S conftest.so | grep '\.rel\(a\|\)\.dyn' > /dev/null; then
6311 libc_cv_z_combreloc=yes
6312 else
6313 libc_cv_z_combreloc=no
6315 else
6316 libc_cv_z_combreloc=no
6318 rm -f conftest*
6320 { echo "$as_me:$LINENO: result: $libc_cv_z_combreloc" >&5
6321 echo "${ECHO_T}$libc_cv_z_combreloc" >&6; }
6322 if test "$libc_cv_z_combreloc" = yes; then
6323 cat >>confdefs.h <<\_ACEOF
6324 #define HAVE_Z_COMBRELOC 1
6325 _ACEOF
6330 { echo "$as_me:$LINENO: checking for -z execstack" >&5
6331 echo $ECHO_N "checking for -z execstack... $ECHO_C" >&6; }
6332 if test "${libc_cv_z_execstack+set}" = set; then
6333 echo $ECHO_N "(cached) $ECHO_C" >&6
6334 else
6335 cat > conftest.c <<EOF
6336 int _start (void) { return 42; }
6338 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
6339 -fPIC -shared -o conftest.so conftest.c
6340 -Wl,-z,execstack -nostdlib
6341 1>&5'
6342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6343 (eval $ac_try) 2>&5
6344 ac_status=$?
6345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6346 (exit $ac_status); }; }
6347 then
6348 libc_cv_z_execstack=yes
6349 else
6350 libc_cv_z_execstack=no
6352 rm -f conftest*
6354 { echo "$as_me:$LINENO: result: $libc_cv_z_execstack" >&5
6355 echo "${ECHO_T}$libc_cv_z_execstack" >&6; }
6358 { echo "$as_me:$LINENO: checking for -fpie" >&5
6359 echo $ECHO_N "checking for -fpie... $ECHO_C" >&6; }
6360 if test "${libc_cv_fpie+set}" = set; then
6361 echo $ECHO_N "(cached) $ECHO_C" >&6
6362 else
6363 cat > conftest.c <<EOF
6364 int foo;
6365 main () { return 0;}
6367 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS -pie -fpie
6368 -o conftest conftest.c 1>&5'
6369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6370 (eval $ac_try) 2>&5
6371 ac_status=$?
6372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6373 (exit $ac_status); }; }
6374 then
6375 libc_cv_fpie=yes
6376 else
6377 libc_cv_fpie=no
6379 rm -f conftest*
6381 { echo "$as_me:$LINENO: result: $libc_cv_fpie" >&5
6382 echo "${ECHO_T}$libc_cv_fpie" >&6; }
6386 { echo "$as_me:$LINENO: checking for --hash-style option" >&5
6387 echo $ECHO_N "checking for --hash-style option... $ECHO_C" >&6; }
6388 if test "${libc_cv_hashstyle+set}" = set; then
6389 echo $ECHO_N "(cached) $ECHO_C" >&6
6390 else
6391 cat > conftest.c <<EOF
6392 int _start (void) { return 42; }
6394 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
6395 -fPIC -shared -o conftest.so conftest.c
6396 -Wl,--hash-style=both -nostdlib 1>&5'
6397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6398 (eval $ac_try) 2>&5
6399 ac_status=$?
6400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6401 (exit $ac_status); }; }
6402 then
6403 libc_cv_hashstyle=yes
6404 else
6405 libc_cv_hashstyle=no
6407 rm -f conftest*
6409 { echo "$as_me:$LINENO: result: $libc_cv_hashstyle" >&5
6410 echo "${ECHO_T}$libc_cv_hashstyle" >&6; }
6414 { echo "$as_me:$LINENO: checking for -fno-toplevel-reorder -fno-section-anchors" >&5
6415 echo $ECHO_N "checking for -fno-toplevel-reorder -fno-section-anchors... $ECHO_C" >&6; }
6416 if test "${libc_cv_fno_toplevel_reorder+set}" = set; then
6417 echo $ECHO_N "(cached) $ECHO_C" >&6
6418 else
6419 cat > conftest.c <<EOF
6420 int foo;
6422 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -S -fno-toplevel-reorder -fno-section-anchors
6423 conftest.c 1>&5'
6424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6425 (eval $ac_try) 2>&5
6426 ac_status=$?
6427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6428 (exit $ac_status); }; }
6429 then
6430 libc_cv_fno_toplevel_reorder=yes
6431 else
6432 libc_cv_fno_toplevel_reorder=no
6434 rm -f conftest*
6436 { echo "$as_me:$LINENO: result: $libc_cv_fno_toplevel_reorder" >&5
6437 echo "${ECHO_T}$libc_cv_fno_toplevel_reorder" >&6; }
6438 if test $libc_cv_fno_toplevel_reorder = yes; then
6439 fno_unit_at_a_time="-fno-toplevel-reorder -fno-section-anchors"
6440 else
6441 fno_unit_at_a_time=-fno-unit-at-a-time
6445 { echo "$as_me:$LINENO: checking for -fstack-protector" >&5
6446 echo $ECHO_N "checking for -fstack-protector... $ECHO_C" >&6; }
6447 if test "${libc_cv_ssp+set}" = set; then
6448 echo $ECHO_N "(cached) $ECHO_C" >&6
6449 else
6450 cat > conftest.c <<EOF
6451 int foo;
6452 main () { return 0;}
6454 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS -Werror -fstack-protector
6455 -o conftest conftest.c 1>&5'
6456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6457 (eval $ac_try) 2>&5
6458 ac_status=$?
6459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6460 (exit $ac_status); }; }
6461 then
6462 libc_cv_ssp=yes
6463 else
6464 libc_cv_ssp=no
6466 rm -f conftest*
6468 { echo "$as_me:$LINENO: result: $libc_cv_ssp" >&5
6469 echo "${ECHO_T}$libc_cv_ssp" >&6; }
6472 { echo "$as_me:$LINENO: checking for -fgnu89-inline" >&5
6473 echo $ECHO_N "checking for -fgnu89-inline... $ECHO_C" >&6; }
6474 if test "${libc_cv_gnu89_inline+set}" = set; then
6475 echo $ECHO_N "(cached) $ECHO_C" >&6
6476 else
6477 cat > conftest.c <<EOF
6478 int foo;
6479 #ifdef __GNUC_GNU_INLINE__
6480 main () { return 0;}
6481 #else
6482 #error
6483 #endif
6485 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -S -std=gnu99 -fgnu89-inline
6486 -o conftest.s conftest.c 1>&5'
6487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6488 (eval $ac_try) 2>&5
6489 ac_status=$?
6490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6491 (exit $ac_status); }; }
6492 then
6493 libc_cv_gnu89_inline=yes
6494 else
6495 libc_cv_gnu89_inline=no
6497 rm -f conftest*
6499 { echo "$as_me:$LINENO: result: $libc_cv_gnu89_inline" >&5
6500 echo "${ECHO_T}$libc_cv_gnu89_inline" >&6; }
6501 if test $libc_cv_gnu89_inline = yes; then
6502 libc_cv_gnu89_inline=-fgnu89-inline
6503 else
6504 libc_cv_gnu89_inline=
6508 if test $elf != yes; then
6509 { echo "$as_me:$LINENO: checking for .init and .fini sections" >&5
6510 echo $ECHO_N "checking for .init and .fini sections... $ECHO_C" >&6; }
6511 if test "${libc_cv_have_initfini+set}" = set; then
6512 echo $ECHO_N "(cached) $ECHO_C" >&6
6513 else
6514 cat >conftest.$ac_ext <<_ACEOF
6515 /* confdefs.h. */
6516 _ACEOF
6517 cat confdefs.h >>conftest.$ac_ext
6518 cat >>conftest.$ac_ext <<_ACEOF
6519 /* end confdefs.h. */
6522 main ()
6524 asm (".section .init");
6525 asm (".section .fini");
6526 asm ("${libc_cv_dot_text}");
6528 return 0;
6530 _ACEOF
6531 rm -f conftest.$ac_objext
6532 if { (ac_try="$ac_compile"
6533 case "(($ac_try" in
6534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6535 *) ac_try_echo=$ac_try;;
6536 esac
6537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6538 (eval "$ac_compile") 2>conftest.er1
6539 ac_status=$?
6540 grep -v '^ *+' conftest.er1 >conftest.err
6541 rm -f conftest.er1
6542 cat conftest.err >&5
6543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6544 (exit $ac_status); } && {
6545 test -z "$ac_c_werror_flag" ||
6546 test ! -s conftest.err
6547 } && test -s conftest.$ac_objext; then
6548 libc_cv_have_initfini=yes
6549 else
6550 echo "$as_me: failed program was:" >&5
6551 sed 's/^/| /' conftest.$ac_ext >&5
6553 libc_cv_have_initfini=no
6556 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6558 { echo "$as_me:$LINENO: result: $libc_cv_have_initfini" >&5
6559 echo "${ECHO_T}$libc_cv_have_initfini" >&6; }
6560 if test $libc_cv_have_initfini = yes; then
6561 cat >>confdefs.h <<\_ACEOF
6562 #define HAVE_INITFINI 1
6563 _ACEOF
6568 if test $elf = yes; then
6569 { echo "$as_me:$LINENO: checking whether cc puts quotes around section names" >&5
6570 echo $ECHO_N "checking whether cc puts quotes around section names... $ECHO_C" >&6; }
6571 if test "${libc_cv_have_section_quotes+set}" = set; then
6572 echo $ECHO_N "(cached) $ECHO_C" >&6
6573 else
6574 cat > conftest.c <<EOF
6575 static const int foo
6576 __attribute__ ((section ("bar"))) = 1;
6578 if ${CC-cc} -S conftest.c -o conftest.s; then
6579 if grep '\.section.*"bar"' conftest.s >/dev/null; then
6580 libc_cv_have_section_quotes=yes
6581 else
6582 libc_cv_have_section_quotes=no
6584 else
6585 libc_cv_have_section_quotes=unknown
6587 rm -f conftest.cs
6590 { echo "$as_me:$LINENO: result: $libc_cv_have_section_quotes" >&5
6591 echo "${ECHO_T}$libc_cv_have_section_quotes" >&6; }
6592 if test $libc_cv_have_section_quotes = yes; then
6593 cat >>confdefs.h <<\_ACEOF
6594 #define HAVE_SECTION_QUOTES 1
6595 _ACEOF
6602 if test $elf = yes; then
6603 libc_cv_asm_underscores=no
6604 else
6605 if test $ac_cv_prog_cc_works = yes; then
6606 { echo "$as_me:$LINENO: checking for _ prefix on C symbol names" >&5
6607 echo $ECHO_N "checking for _ prefix on C symbol names... $ECHO_C" >&6; }
6608 if test "${libc_cv_asm_underscores+set}" = set; then
6609 echo $ECHO_N "(cached) $ECHO_C" >&6
6610 else
6611 cat >conftest.$ac_ext <<_ACEOF
6612 /* confdefs.h. */
6613 _ACEOF
6614 cat confdefs.h >>conftest.$ac_ext
6615 cat >>conftest.$ac_ext <<_ACEOF
6616 /* end confdefs.h. */
6617 asm ("_glibc_foobar:");
6619 main ()
6621 glibc_foobar ();
6623 return 0;
6625 _ACEOF
6626 rm -f conftest.$ac_objext conftest$ac_exeext
6627 if { (ac_try="$ac_link"
6628 case "(($ac_try" in
6629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6630 *) ac_try_echo=$ac_try;;
6631 esac
6632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6633 (eval "$ac_link") 2>conftest.er1
6634 ac_status=$?
6635 grep -v '^ *+' conftest.er1 >conftest.err
6636 rm -f conftest.er1
6637 cat conftest.err >&5
6638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6639 (exit $ac_status); } && {
6640 test -z "$ac_c_werror_flag" ||
6641 test ! -s conftest.err
6642 } && test -s conftest$ac_exeext &&
6643 $as_test_x conftest$ac_exeext; then
6644 libc_cv_asm_underscores=yes
6645 else
6646 echo "$as_me: failed program was:" >&5
6647 sed 's/^/| /' conftest.$ac_ext >&5
6649 libc_cv_asm_underscores=no
6652 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6653 conftest$ac_exeext conftest.$ac_ext
6655 { echo "$as_me:$LINENO: result: $libc_cv_asm_underscores" >&5
6656 echo "${ECHO_T}$libc_cv_asm_underscores" >&6; }
6657 else
6658 { echo "$as_me:$LINENO: checking for _ prefix on C symbol names" >&5
6659 echo $ECHO_N "checking for _ prefix on C symbol names... $ECHO_C" >&6; }
6660 if test "${libc_cv_asm_underscores+set}" = set; then
6661 echo $ECHO_N "(cached) $ECHO_C" >&6
6662 else
6663 cat > conftest.$ac_ext <<EOF
6664 #line $LINENO "configure"
6665 #include "confdefs.h"
6666 void underscore_test(void) {
6667 return; }
6669 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6670 (eval $ac_compile) 2>&5
6671 ac_status=$?
6672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6673 (exit $ac_status); }; then
6674 if grep _underscore_test conftest* >/dev/null; then
6675 rm -f conftest*
6676 libc_cv_asm_underscores=yes
6677 else
6678 rm -f conftest*
6679 libc_cv_asm_underscores=no
6681 else
6682 echo "configure: failed program was:" >&5
6683 cat conftest.$ac_ext >&5
6684 rm -f conftest*
6685 libc_cv_asm_underscores=no
6687 rm -f conftest*
6689 { echo "$as_me:$LINENO: result: $libc_cv_asm_underscores" >&5
6690 echo "${ECHO_T}$libc_cv_asm_underscores" >&6; }
6693 if test $libc_cv_asm_underscores = no; then
6694 cat >>confdefs.h <<\_ACEOF
6695 #define NO_UNDERSCORES 1
6696 _ACEOF
6700 if test $elf = yes; then
6701 libc_cv_weak_symbols=yes
6704 { echo "$as_me:$LINENO: checking for assembler .weak directive" >&5
6705 echo $ECHO_N "checking for assembler .weak directive... $ECHO_C" >&6; }
6706 if test "${libc_cv_asm_weak_directive+set}" = set; then
6707 echo $ECHO_N "(cached) $ECHO_C" >&6
6708 else
6709 cat > conftest.s <<EOF
6710 ${libc_cv_dot_text}
6711 ${libc_cv_asm_global_directive} foo
6712 foo:
6713 .weak foo
6714 .weak bar; bar = foo
6716 if { ac_try='${CC-cc} $ASFLAGS -c conftest.s 1>&5'
6717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6718 (eval $ac_try) 2>&5
6719 ac_status=$?
6720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6721 (exit $ac_status); }; }; then
6722 libc_cv_asm_weak_directive=yes
6723 else
6724 libc_cv_asm_weak_directive=no
6726 rm -f conftest*
6728 { echo "$as_me:$LINENO: result: $libc_cv_asm_weak_directive" >&5
6729 echo "${ECHO_T}$libc_cv_asm_weak_directive" >&6; }
6731 if test $libc_cv_asm_weak_directive = no; then
6732 { echo "$as_me:$LINENO: checking for assembler .weakext directive" >&5
6733 echo $ECHO_N "checking for assembler .weakext directive... $ECHO_C" >&6; }
6734 if test "${libc_cv_asm_weakext_directive+set}" = set; then
6735 echo $ECHO_N "(cached) $ECHO_C" >&6
6736 else
6737 cat > conftest.s <<EOF
6738 ${libc_cv_dot_text}
6739 ${libc_cv_asm_global_directive} foo
6740 foo:
6741 .weakext bar foo
6742 .weakext baz
6743 ${libc_cv_asm_global_directive} baz
6744 baz:
6746 if { ac_try='${CC-cc} $ASFLAGS -c conftest.s 1>&5'
6747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6748 (eval $ac_try) 2>&5
6749 ac_status=$?
6750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6751 (exit $ac_status); }; }; then
6752 libc_cv_asm_weakext_directive=yes
6753 else
6754 libc_cv_asm_weakext_directive=no
6756 rm -f conftest*
6758 { echo "$as_me:$LINENO: result: $libc_cv_asm_weakext_directive" >&5
6759 echo "${ECHO_T}$libc_cv_asm_weakext_directive" >&6; }
6761 fi # no .weak
6763 if test $libc_cv_asm_weak_directive = yes; then
6764 cat >>confdefs.h <<\_ACEOF
6765 #define HAVE_ASM_WEAK_DIRECTIVE 1
6766 _ACEOF
6768 elif test $libc_cv_asm_weakext_directive = yes; then
6769 cat >>confdefs.h <<\_ACEOF
6770 #define HAVE_ASM_WEAKEXT_DIRECTIVE 1
6771 _ACEOF
6775 { echo "$as_me:$LINENO: checking whether CFI directives are supported" >&5
6776 echo $ECHO_N "checking whether CFI directives are supported... $ECHO_C" >&6; }
6777 if test "${libc_cv_asm_cfi_directives+set}" = set; then
6778 echo $ECHO_N "(cached) $ECHO_C" >&6
6779 else
6780 case $machine in
6781 sparc/sparc64*) cfi_offset=2047;;
6782 *) cfi_offset=0;;
6783 esac
6784 cat > conftest.s <<EOF
6785 .text
6786 .type func,%function
6787 func:
6788 .cfi_startproc
6789 .cfi_remember_state
6790 .cfi_rel_offset 1, $cfi_offset
6791 .cfi_endproc
6793 if { ac_try='${CC-cc} $ASFLAGS -c conftest.s 1>&5'
6794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6795 (eval $ac_try) 2>&5
6796 ac_status=$?
6797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6798 (exit $ac_status); }; }; then
6799 libc_cv_asm_cfi_directives=yes
6800 else
6801 libc_cv_asm_cfi_directives=no
6803 rm -f conftest*
6805 { echo "$as_me:$LINENO: result: $libc_cv_asm_cfi_directives" >&5
6806 echo "${ECHO_T}$libc_cv_asm_cfi_directives" >&6; }
6807 if test $libc_cv_asm_cfi_directives = yes; then
6808 cat >>confdefs.h <<\_ACEOF
6809 #define HAVE_ASM_CFI_DIRECTIVES 1
6810 _ACEOF
6814 { echo "$as_me:$LINENO: checking for ld --no-whole-archive" >&5
6815 echo $ECHO_N "checking for ld --no-whole-archive... $ECHO_C" >&6; }
6816 if test "${libc_cv_ld_no_whole_archive+set}" = set; then
6817 echo $ECHO_N "(cached) $ECHO_C" >&6
6818 else
6819 cat > conftest.c <<\EOF
6820 _start () {}
6821 int __eh_pc;
6822 __throw () {}
6824 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
6825 -nostdlib -nostartfiles -Wl,--no-whole-archive
6826 -o conftest conftest.c 1>&5'
6827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6828 (eval $ac_try) 2>&5
6829 ac_status=$?
6830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6831 (exit $ac_status); }; }; then
6832 libc_cv_ld_no_whole_archive=yes
6833 else
6834 libc_cv_ld_no_whole_archive=no
6836 rm -f conftest*
6838 { echo "$as_me:$LINENO: result: $libc_cv_ld_no_whole_archive" >&5
6839 echo "${ECHO_T}$libc_cv_ld_no_whole_archive" >&6; }
6840 if test $libc_cv_ld_no_whole_archive = yes; then
6841 no_whole_archive=-Wl,--no-whole-archive
6844 { echo "$as_me:$LINENO: checking for gcc -fexceptions" >&5
6845 echo $ECHO_N "checking for gcc -fexceptions... $ECHO_C" >&6; }
6846 if test "${libc_cv_gcc_exceptions+set}" = set; then
6847 echo $ECHO_N "(cached) $ECHO_C" >&6
6848 else
6849 cat > conftest.c <<\EOF
6850 _start () {}
6851 int __eh_pc;
6852 __throw () {}
6854 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
6855 -nostdlib -nostartfiles -fexceptions
6856 -o conftest conftest.c 1>&5'
6857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6858 (eval $ac_try) 2>&5
6859 ac_status=$?
6860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6861 (exit $ac_status); }; }; then
6862 libc_cv_gcc_exceptions=yes
6863 else
6864 libc_cv_gcc_exceptions=no
6866 rm -f conftest*
6868 { echo "$as_me:$LINENO: result: $libc_cv_gcc_exceptions" >&5
6869 echo "${ECHO_T}$libc_cv_gcc_exceptions" >&6; }
6870 if test $libc_cv_gcc_exceptions = yes; then
6871 exceptions=-fexceptions
6874 if test "$host_cpu" = powerpc ; then
6875 # Check for a bug present in at least versions 2.8.x of GCC
6876 # and versions 1.0.x of EGCS.
6877 { echo "$as_me:$LINENO: checking whether clobbering cr0 causes problems" >&5
6878 echo $ECHO_N "checking whether clobbering cr0 causes problems... $ECHO_C" >&6; }
6879 if test "${libc_cv_c_asmcr0_bug+set}" = set; then
6880 echo $ECHO_N "(cached) $ECHO_C" >&6
6881 else
6882 cat >conftest.$ac_ext <<_ACEOF
6883 /* confdefs.h. */
6884 _ACEOF
6885 cat confdefs.h >>conftest.$ac_ext
6886 cat >>conftest.$ac_ext <<_ACEOF
6887 /* end confdefs.h. */
6888 int tester(int x) { asm ("" : : : "cc"); return x & 123; }
6890 main ()
6894 return 0;
6896 _ACEOF
6897 rm -f conftest.$ac_objext
6898 if { (ac_try="$ac_compile"
6899 case "(($ac_try" in
6900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6901 *) ac_try_echo=$ac_try;;
6902 esac
6903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6904 (eval "$ac_compile") 2>conftest.er1
6905 ac_status=$?
6906 grep -v '^ *+' conftest.er1 >conftest.err
6907 rm -f conftest.er1
6908 cat conftest.err >&5
6909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6910 (exit $ac_status); } && {
6911 test -z "$ac_c_werror_flag" ||
6912 test ! -s conftest.err
6913 } && test -s conftest.$ac_objext; then
6914 libc_cv_c_asmcr0_bug='no'
6915 else
6916 echo "$as_me: failed program was:" >&5
6917 sed 's/^/| /' conftest.$ac_ext >&5
6919 libc_cv_c_asmcr0_bug='yes'
6922 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6924 { echo "$as_me:$LINENO: result: $libc_cv_c_asmcr0_bug" >&5
6925 echo "${ECHO_T}$libc_cv_c_asmcr0_bug" >&6; }
6926 if test "$libc_cv_c_asmcr0_bug" != 'no'; then
6927 cat >>confdefs.h <<\_ACEOF
6928 #define BROKEN_PPC_ASM_CR0 1
6929 _ACEOF
6934 { echo "$as_me:$LINENO: checking for __builtin_expect" >&5
6935 echo $ECHO_N "checking for __builtin_expect... $ECHO_C" >&6; }
6936 if test "${libc_cv_gcc_builtin_expect+set}" = set; then
6937 echo $ECHO_N "(cached) $ECHO_C" >&6
6938 else
6939 cat > conftest.c <<EOF
6940 #line $LINENO "configure"
6941 int foo (int a)
6943 a = __builtin_expect (a, 10);
6944 return a == 10 ? 0 : 1;
6947 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS -nostdlib -nostartfiles
6948 -o conftest conftest.c -lgcc >&5'
6949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6950 (eval $ac_try) 2>&5
6951 ac_status=$?
6952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6953 (exit $ac_status); }; }; then
6954 libc_cv_gcc_builtin_expect=yes
6955 else
6956 libc_cv_gcc_builtin_expect=no
6958 rm -f conftest*
6960 { echo "$as_me:$LINENO: result: $libc_cv_gcc_builtin_expect" >&5
6961 echo "${ECHO_T}$libc_cv_gcc_builtin_expect" >&6; }
6962 if test "$libc_cv_gcc_builtin_expect" = yes; then
6963 cat >>confdefs.h <<\_ACEOF
6964 #define HAVE_BUILTIN_EXPECT 1
6965 _ACEOF
6969 { echo "$as_me:$LINENO: checking for __builtin_memset" >&5
6970 echo $ECHO_N "checking for __builtin_memset... $ECHO_C" >&6; }
6971 if test "${libc_cv_gcc_builtin_memset+set}" = set; then
6972 echo $ECHO_N "(cached) $ECHO_C" >&6
6973 else
6974 cat > conftest.c <<\EOF
6975 void zero (void *x)
6977 __builtin_memset (x, 0, 1000);
6980 if { ac_try='${CC-cc} -O3 -S conftest.c -o - | fgrep "memset" > /dev/null'
6981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6982 (eval $ac_try) 2>&5
6983 ac_status=$?
6984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6985 (exit $ac_status); }; };
6986 then
6987 libc_cv_gcc_builtin_memset=no
6988 else
6989 libc_cv_gcc_builtin_memset=yes
6991 rm -f conftest*
6993 { echo "$as_me:$LINENO: result: $libc_cv_gcc_builtin_memset" >&5
6994 echo "${ECHO_T}$libc_cv_gcc_builtin_memset" >&6; }
6995 if test "$libc_cv_gcc_builtin_memset" = yes ; then
6996 cat >>confdefs.h <<\_ACEOF
6997 #define HAVE_BUILTIN_MEMSET 1
6998 _ACEOF
7002 { echo "$as_me:$LINENO: checking for redirection of built-in functions" >&5
7003 echo $ECHO_N "checking for redirection of built-in functions... $ECHO_C" >&6; }
7004 if test "${libc_cv_gcc_builtin_redirection+set}" = set; then
7005 echo $ECHO_N "(cached) $ECHO_C" >&6
7006 else
7007 cat > conftest.c <<\EOF
7008 extern char *strstr (const char *, const char *) __asm ("my_strstr");
7009 char *foo (const char *a, const char *b)
7011 return __builtin_strstr (a, b);
7014 if { ac_try='${CC-cc} -O3 -S conftest.c -o - | fgrep "my_strstr" > /dev/null'
7015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7016 (eval $ac_try) 2>&5
7017 ac_status=$?
7018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7019 (exit $ac_status); }; };
7020 then
7021 libc_cv_gcc_builtin_redirection=yes
7022 else
7023 libc_cv_gcc_builtin_redirection=no
7025 rm -f conftest*
7027 { echo "$as_me:$LINENO: result: $libc_cv_gcc_builtin_redirection" >&5
7028 echo "${ECHO_T}$libc_cv_gcc_builtin_redirection" >&6; }
7029 if test "$libc_cv_gcc_builtin_redirection" = yes ; then
7030 cat >>confdefs.h <<\_ACEOF
7031 #define HAVE_BUILTIN_REDIRECTION 1
7032 _ACEOF
7036 if test "x$use__thread" != xno; then
7037 { echo "$as_me:$LINENO: checking for __thread" >&5
7038 echo $ECHO_N "checking for __thread... $ECHO_C" >&6; }
7039 if test "${libc_cv_gcc___thread+set}" = set; then
7040 echo $ECHO_N "(cached) $ECHO_C" >&6
7041 else
7042 cat > conftest.c <<\EOF
7043 __thread int a = 42;
7045 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -c conftest.c >&5'
7046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7047 (eval $ac_try) 2>&5
7048 ac_status=$?
7049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7050 (exit $ac_status); }; }; then
7051 libc_cv_gcc___thread=yes
7052 else
7053 libc_cv_gcc___thread=no
7055 rm -f conftest*
7057 { echo "$as_me:$LINENO: result: $libc_cv_gcc___thread" >&5
7058 echo "${ECHO_T}$libc_cv_gcc___thread" >&6; }
7059 if test "$libc_cv_gcc___thread" = yes; then
7060 cat >>confdefs.h <<\_ACEOF
7061 #define HAVE___THREAD 1
7062 _ACEOF
7065 else
7066 libc_cv_gcc___thread=no
7069 if test "$libc_cv_gcc___thread" = yes; then
7070 { echo "$as_me:$LINENO: checking for tls_model attribute" >&5
7071 echo $ECHO_N "checking for tls_model attribute... $ECHO_C" >&6; }
7072 if test "${libc_cv_gcc_tls_model_attr+set}" = set; then
7073 echo $ECHO_N "(cached) $ECHO_C" >&6
7074 else
7075 cat > conftest.c <<\EOF
7076 extern __thread int a __attribute__((tls_model ("initial-exec")));
7078 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -S -Werror conftest.c >&5'
7079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7080 (eval $ac_try) 2>&5
7081 ac_status=$?
7082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7083 (exit $ac_status); }; }; then
7084 libc_cv_gcc_tls_model_attr=yes
7085 else
7086 libc_cv_gcc_tls_model_attr=no
7088 rm -f conftest*
7090 { echo "$as_me:$LINENO: result: $libc_cv_gcc_tls_model_attr" >&5
7091 echo "${ECHO_T}$libc_cv_gcc_tls_model_attr" >&6; }
7092 if test "$libc_cv_gcc_tls_model_attr" = yes; then
7093 cat >>confdefs.h <<\_ACEOF
7094 #define HAVE_TLS_MODEL_ATTRIBUTE 1
7095 _ACEOF
7100 if test -n "$submachine"; then
7101 { echo "$as_me:$LINENO: checking for compiler option for CPU variant" >&5
7102 echo $ECHO_N "checking for compiler option for CPU variant... $ECHO_C" >&6; }
7103 if test "${libc_cv_cc_submachine+set}" = set; then
7104 echo $ECHO_N "(cached) $ECHO_C" >&6
7105 else
7106 libc_cv_cc_submachine=no
7107 for opt in "-march=$submachine" "-mcpu=$submachine"; do
7108 if { ac_try='${CC-cc} $opt -xc /dev/null -S -o /dev/null'
7109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7110 (eval $ac_try) 2>&5
7111 ac_status=$?
7112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7113 (exit $ac_status); }; }; then
7114 libc_cv_cc_submachine="$opt"
7115 break
7117 done
7119 { echo "$as_me:$LINENO: result: $libc_cv_cc_submachine" >&5
7120 echo "${ECHO_T}$libc_cv_cc_submachine" >&6; }
7121 if test "x$libc_cv_cc_submachine" = xno; then
7122 { { echo "$as_me:$LINENO: error: ${CC-cc} does not support $submachine" >&5
7123 echo "$as_me: error: ${CC-cc} does not support $submachine" >&2;}
7124 { (exit 1); exit 1; }; }
7129 { echo "$as_me:$LINENO: checking for libgd" >&5
7130 echo $ECHO_N "checking for libgd... $ECHO_C" >&6; }
7131 if test "$with_gd" != "no"; then
7132 old_CFLAGS="$CFLAGS"
7133 CFLAGS="$CFLAGS $libgd_include"
7134 old_LDFLAGS="$LDFLAGS"
7135 LDFLAGS="$LDFLAGS $libgd_ldflags"
7136 old_LIBS="$LIBS"
7137 LIBS="$LIBS -lgd -lpng -lz -lm"
7138 cat >conftest.$ac_ext <<_ACEOF
7139 /* confdefs.h. */
7140 _ACEOF
7141 cat confdefs.h >>conftest.$ac_ext
7142 cat >>conftest.$ac_ext <<_ACEOF
7143 /* end confdefs.h. */
7144 #include <gd.h>
7146 main ()
7148 gdImagePng (0, 0)
7150 return 0;
7152 _ACEOF
7153 rm -f conftest.$ac_objext conftest$ac_exeext
7154 if { (ac_try="$ac_link"
7155 case "(($ac_try" in
7156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7157 *) ac_try_echo=$ac_try;;
7158 esac
7159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7160 (eval "$ac_link") 2>conftest.er1
7161 ac_status=$?
7162 grep -v '^ *+' conftest.er1 >conftest.err
7163 rm -f conftest.er1
7164 cat conftest.err >&5
7165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7166 (exit $ac_status); } && {
7167 test -z "$ac_c_werror_flag" ||
7168 test ! -s conftest.err
7169 } && test -s conftest$ac_exeext &&
7170 $as_test_x conftest$ac_exeext; then
7171 LIBGD=yes
7172 else
7173 echo "$as_me: failed program was:" >&5
7174 sed 's/^/| /' conftest.$ac_ext >&5
7176 LIBGD=no
7179 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7180 conftest$ac_exeext conftest.$ac_ext
7181 CFLAGS="$old_CFLAGS"
7182 LDFLAGS="$old_LDFLAGS"
7183 LIBS="$old_LIBS"
7184 else
7185 LIBGD=no
7187 { echo "$as_me:$LINENO: result: $LIBGD" >&5
7188 echo "${ECHO_T}$LIBGD" >&6; }
7191 # SELinux detection
7192 if test x$with_selinux = xno ; then
7193 have_selinux=no;
7194 else
7195 # See if we have the SELinux library
7196 { echo "$as_me:$LINENO: checking for is_selinux_enabled in -lselinux" >&5
7197 echo $ECHO_N "checking for is_selinux_enabled in -lselinux... $ECHO_C" >&6; }
7198 if test "${ac_cv_lib_selinux_is_selinux_enabled+set}" = set; then
7199 echo $ECHO_N "(cached) $ECHO_C" >&6
7200 else
7201 ac_check_lib_save_LIBS=$LIBS
7202 LIBS="-lselinux $LIBS"
7203 cat >conftest.$ac_ext <<_ACEOF
7204 /* confdefs.h. */
7205 _ACEOF
7206 cat confdefs.h >>conftest.$ac_ext
7207 cat >>conftest.$ac_ext <<_ACEOF
7208 /* end confdefs.h. */
7210 /* Override any GCC internal prototype to avoid an error.
7211 Use char because int might match the return type of a GCC
7212 builtin and then its argument prototype would still apply. */
7213 #ifdef __cplusplus
7214 extern "C"
7215 #endif
7216 char is_selinux_enabled ();
7218 main ()
7220 return is_selinux_enabled ();
7222 return 0;
7224 _ACEOF
7225 rm -f conftest.$ac_objext conftest$ac_exeext
7226 if { (ac_try="$ac_link"
7227 case "(($ac_try" in
7228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7229 *) ac_try_echo=$ac_try;;
7230 esac
7231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7232 (eval "$ac_link") 2>conftest.er1
7233 ac_status=$?
7234 grep -v '^ *+' conftest.er1 >conftest.err
7235 rm -f conftest.er1
7236 cat conftest.err >&5
7237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7238 (exit $ac_status); } && {
7239 test -z "$ac_c_werror_flag" ||
7240 test ! -s conftest.err
7241 } && test -s conftest$ac_exeext &&
7242 $as_test_x conftest$ac_exeext; then
7243 ac_cv_lib_selinux_is_selinux_enabled=yes
7244 else
7245 echo "$as_me: failed program was:" >&5
7246 sed 's/^/| /' conftest.$ac_ext >&5
7248 ac_cv_lib_selinux_is_selinux_enabled=no
7251 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7252 conftest$ac_exeext conftest.$ac_ext
7253 LIBS=$ac_check_lib_save_LIBS
7255 { echo "$as_me:$LINENO: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5
7256 echo "${ECHO_T}$ac_cv_lib_selinux_is_selinux_enabled" >&6; }
7257 if test $ac_cv_lib_selinux_is_selinux_enabled = yes; then
7258 have_selinux=yes
7259 else
7260 have_selinux=no
7263 # See if we have the SELinux header with the NSCD permissions in it.
7264 if test x$have_selinux = xyes ; then
7265 { echo "$as_me:$LINENO: checking for NSCD Flask permissions in selinux/av_permissions.h" >&5
7266 echo $ECHO_N "checking for NSCD Flask permissions in selinux/av_permissions.h... $ECHO_C" >&6; }
7267 cat >conftest.$ac_ext <<_ACEOF
7268 /* confdefs.h. */
7269 _ACEOF
7270 cat confdefs.h >>conftest.$ac_ext
7271 cat >>conftest.$ac_ext <<_ACEOF
7272 /* end confdefs.h. */
7273 #include <selinux/av_permissions.h>
7275 main ()
7277 #ifdef NSCD__SHMEMHOST
7278 return 0;
7279 #else
7280 #error NSCD__SHMEMHOST not defined
7281 #endif
7283 return 0;
7285 _ACEOF
7286 rm -f conftest.$ac_objext
7287 if { (ac_try="$ac_compile"
7288 case "(($ac_try" in
7289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7290 *) ac_try_echo=$ac_try;;
7291 esac
7292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7293 (eval "$ac_compile") 2>conftest.er1
7294 ac_status=$?
7295 grep -v '^ *+' conftest.er1 >conftest.err
7296 rm -f conftest.er1
7297 cat conftest.err >&5
7298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7299 (exit $ac_status); } && {
7300 test -z "$ac_c_werror_flag" ||
7301 test ! -s conftest.err
7302 } && test -s conftest.$ac_objext; then
7303 have_selinux=yes
7304 else
7305 echo "$as_me: failed program was:" >&5
7306 sed 's/^/| /' conftest.$ac_ext >&5
7308 have_selinux=no
7311 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7312 { echo "$as_me:$LINENO: result: $have_selinux" >&5
7313 echo "${ECHO_T}$have_selinux" >&6; }
7316 if test x$with_selinux = xyes ; then
7317 if test x$have_selinux = xno ; then
7318 { { echo "$as_me:$LINENO: error: SELinux explicitly required, but sufficiently recent SELinux library not found" >&5
7319 echo "$as_me: error: SELinux explicitly required, but sufficiently recent SELinux library not found" >&2;}
7320 { (exit 1); exit 1; }; }
7324 # Check if we're building with SELinux support.
7325 if test "x$have_selinux" = xyes; then
7327 cat >>confdefs.h <<\_ACEOF
7328 #define HAVE_SELINUX 1
7329 _ACEOF
7332 # See if we have the libaudit library
7333 { echo "$as_me:$LINENO: checking for audit_log_user_avc_message in -laudit" >&5
7334 echo $ECHO_N "checking for audit_log_user_avc_message in -laudit... $ECHO_C" >&6; }
7335 if test "${ac_cv_lib_audit_audit_log_user_avc_message+set}" = set; then
7336 echo $ECHO_N "(cached) $ECHO_C" >&6
7337 else
7338 ac_check_lib_save_LIBS=$LIBS
7339 LIBS="-laudit $LIBS"
7340 cat >conftest.$ac_ext <<_ACEOF
7341 /* confdefs.h. */
7342 _ACEOF
7343 cat confdefs.h >>conftest.$ac_ext
7344 cat >>conftest.$ac_ext <<_ACEOF
7345 /* end confdefs.h. */
7347 /* Override any GCC internal prototype to avoid an error.
7348 Use char because int might match the return type of a GCC
7349 builtin and then its argument prototype would still apply. */
7350 #ifdef __cplusplus
7351 extern "C"
7352 #endif
7353 char audit_log_user_avc_message ();
7355 main ()
7357 return audit_log_user_avc_message ();
7359 return 0;
7361 _ACEOF
7362 rm -f conftest.$ac_objext conftest$ac_exeext
7363 if { (ac_try="$ac_link"
7364 case "(($ac_try" in
7365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7366 *) ac_try_echo=$ac_try;;
7367 esac
7368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7369 (eval "$ac_link") 2>conftest.er1
7370 ac_status=$?
7371 grep -v '^ *+' conftest.er1 >conftest.err
7372 rm -f conftest.er1
7373 cat conftest.err >&5
7374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7375 (exit $ac_status); } && {
7376 test -z "$ac_c_werror_flag" ||
7377 test ! -s conftest.err
7378 } && test -s conftest$ac_exeext &&
7379 $as_test_x conftest$ac_exeext; then
7380 ac_cv_lib_audit_audit_log_user_avc_message=yes
7381 else
7382 echo "$as_me: failed program was:" >&5
7383 sed 's/^/| /' conftest.$ac_ext >&5
7385 ac_cv_lib_audit_audit_log_user_avc_message=no
7388 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7389 conftest$ac_exeext conftest.$ac_ext
7390 LIBS=$ac_check_lib_save_LIBS
7392 { echo "$as_me:$LINENO: result: $ac_cv_lib_audit_audit_log_user_avc_message" >&5
7393 echo "${ECHO_T}$ac_cv_lib_audit_audit_log_user_avc_message" >&6; }
7394 if test $ac_cv_lib_audit_audit_log_user_avc_message = yes; then
7395 have_libaudit=yes
7396 else
7397 have_libaudit=no
7400 if test "x$have_libaudit" = xyes; then
7402 cat >>confdefs.h <<\_ACEOF
7403 #define HAVE_LIBAUDIT 1
7404 _ACEOF
7409 # See if we have the libcap library
7410 { echo "$as_me:$LINENO: checking for cap_init in -lcap" >&5
7411 echo $ECHO_N "checking for cap_init in -lcap... $ECHO_C" >&6; }
7412 if test "${ac_cv_lib_cap_cap_init+set}" = set; then
7413 echo $ECHO_N "(cached) $ECHO_C" >&6
7414 else
7415 ac_check_lib_save_LIBS=$LIBS
7416 LIBS="-lcap $LIBS"
7417 cat >conftest.$ac_ext <<_ACEOF
7418 /* confdefs.h. */
7419 _ACEOF
7420 cat confdefs.h >>conftest.$ac_ext
7421 cat >>conftest.$ac_ext <<_ACEOF
7422 /* end confdefs.h. */
7424 /* Override any GCC internal prototype to avoid an error.
7425 Use char because int might match the return type of a GCC
7426 builtin and then its argument prototype would still apply. */
7427 #ifdef __cplusplus
7428 extern "C"
7429 #endif
7430 char cap_init ();
7432 main ()
7434 return cap_init ();
7436 return 0;
7438 _ACEOF
7439 rm -f conftest.$ac_objext conftest$ac_exeext
7440 if { (ac_try="$ac_link"
7441 case "(($ac_try" in
7442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7443 *) ac_try_echo=$ac_try;;
7444 esac
7445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7446 (eval "$ac_link") 2>conftest.er1
7447 ac_status=$?
7448 grep -v '^ *+' conftest.er1 >conftest.err
7449 rm -f conftest.er1
7450 cat conftest.err >&5
7451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7452 (exit $ac_status); } && {
7453 test -z "$ac_c_werror_flag" ||
7454 test ! -s conftest.err
7455 } && test -s conftest$ac_exeext &&
7456 $as_test_x conftest$ac_exeext; then
7457 ac_cv_lib_cap_cap_init=yes
7458 else
7459 echo "$as_me: failed program was:" >&5
7460 sed 's/^/| /' conftest.$ac_ext >&5
7462 ac_cv_lib_cap_cap_init=no
7465 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7466 conftest$ac_exeext conftest.$ac_ext
7467 LIBS=$ac_check_lib_save_LIBS
7469 { echo "$as_me:$LINENO: result: $ac_cv_lib_cap_cap_init" >&5
7470 echo "${ECHO_T}$ac_cv_lib_cap_cap_init" >&6; }
7471 if test $ac_cv_lib_cap_cap_init = yes; then
7472 have_libcap=yes
7473 else
7474 have_libcap=no
7477 if test "x$have_libcap" = xyes; then
7479 cat >>confdefs.h <<\_ACEOF
7480 #define HAVE_LIBCAP 1
7481 _ACEOF
7489 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
7490 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
7491 if test "${ac_cv_path_GREP+set}" = set; then
7492 echo $ECHO_N "(cached) $ECHO_C" >&6
7493 else
7494 # Extract the first word of "grep ggrep" to use in msg output
7495 if test -z "$GREP"; then
7496 set dummy grep ggrep; ac_prog_name=$2
7497 if test "${ac_cv_path_GREP+set}" = set; then
7498 echo $ECHO_N "(cached) $ECHO_C" >&6
7499 else
7500 ac_path_GREP_found=false
7501 # Loop through the user's path and test for each of PROGNAME-LIST
7502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7503 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7505 IFS=$as_save_IFS
7506 test -z "$as_dir" && as_dir=.
7507 for ac_prog in grep ggrep; do
7508 for ac_exec_ext in '' $ac_executable_extensions; do
7509 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
7510 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
7511 # Check for GNU ac_path_GREP and select it if it is found.
7512 # Check for GNU $ac_path_GREP
7513 case `"$ac_path_GREP" --version 2>&1` in
7514 *GNU*)
7515 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
7517 ac_count=0
7518 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
7519 while :
7521 cat "conftest.in" "conftest.in" >"conftest.tmp"
7522 mv "conftest.tmp" "conftest.in"
7523 cp "conftest.in" "conftest.nl"
7524 echo 'GREP' >> "conftest.nl"
7525 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7526 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7527 ac_count=`expr $ac_count + 1`
7528 if test $ac_count -gt ${ac_path_GREP_max-0}; then
7529 # Best one so far, save it but keep looking for a better one
7530 ac_cv_path_GREP="$ac_path_GREP"
7531 ac_path_GREP_max=$ac_count
7533 # 10*(2^10) chars as input seems more than enough
7534 test $ac_count -gt 10 && break
7535 done
7536 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7537 esac
7540 $ac_path_GREP_found && break 3
7541 done
7542 done
7544 done
7545 IFS=$as_save_IFS
7550 GREP="$ac_cv_path_GREP"
7551 if test -z "$GREP"; then
7552 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
7553 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
7554 { (exit 1); exit 1; }; }
7557 else
7558 ac_cv_path_GREP=$GREP
7563 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
7564 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
7565 GREP="$ac_cv_path_GREP"
7568 { echo "$as_me:$LINENO: checking for egrep" >&5
7569 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
7570 if test "${ac_cv_path_EGREP+set}" = set; then
7571 echo $ECHO_N "(cached) $ECHO_C" >&6
7572 else
7573 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
7574 then ac_cv_path_EGREP="$GREP -E"
7575 else
7576 # Extract the first word of "egrep" to use in msg output
7577 if test -z "$EGREP"; then
7578 set dummy egrep; ac_prog_name=$2
7579 if test "${ac_cv_path_EGREP+set}" = set; then
7580 echo $ECHO_N "(cached) $ECHO_C" >&6
7581 else
7582 ac_path_EGREP_found=false
7583 # Loop through the user's path and test for each of PROGNAME-LIST
7584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7585 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7587 IFS=$as_save_IFS
7588 test -z "$as_dir" && as_dir=.
7589 for ac_prog in egrep; do
7590 for ac_exec_ext in '' $ac_executable_extensions; do
7591 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
7592 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
7593 # Check for GNU ac_path_EGREP and select it if it is found.
7594 # Check for GNU $ac_path_EGREP
7595 case `"$ac_path_EGREP" --version 2>&1` in
7596 *GNU*)
7597 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
7599 ac_count=0
7600 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
7601 while :
7603 cat "conftest.in" "conftest.in" >"conftest.tmp"
7604 mv "conftest.tmp" "conftest.in"
7605 cp "conftest.in" "conftest.nl"
7606 echo 'EGREP' >> "conftest.nl"
7607 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7608 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7609 ac_count=`expr $ac_count + 1`
7610 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
7611 # Best one so far, save it but keep looking for a better one
7612 ac_cv_path_EGREP="$ac_path_EGREP"
7613 ac_path_EGREP_max=$ac_count
7615 # 10*(2^10) chars as input seems more than enough
7616 test $ac_count -gt 10 && break
7617 done
7618 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7619 esac
7622 $ac_path_EGREP_found && break 3
7623 done
7624 done
7626 done
7627 IFS=$as_save_IFS
7632 EGREP="$ac_cv_path_EGREP"
7633 if test -z "$EGREP"; then
7634 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
7635 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
7636 { (exit 1); exit 1; }; }
7639 else
7640 ac_cv_path_EGREP=$EGREP
7646 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
7647 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
7648 EGREP="$ac_cv_path_EGREP"
7651 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7652 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
7653 if test "${ac_cv_header_stdc+set}" = set; then
7654 echo $ECHO_N "(cached) $ECHO_C" >&6
7655 else
7656 cat >conftest.$ac_ext <<_ACEOF
7657 /* confdefs.h. */
7658 _ACEOF
7659 cat confdefs.h >>conftest.$ac_ext
7660 cat >>conftest.$ac_ext <<_ACEOF
7661 /* end confdefs.h. */
7662 #include <stdlib.h>
7663 #include <stdarg.h>
7664 #include <string.h>
7665 #include <float.h>
7668 main ()
7672 return 0;
7674 _ACEOF
7675 rm -f conftest.$ac_objext
7676 if { (ac_try="$ac_compile"
7677 case "(($ac_try" in
7678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7679 *) ac_try_echo=$ac_try;;
7680 esac
7681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7682 (eval "$ac_compile") 2>conftest.er1
7683 ac_status=$?
7684 grep -v '^ *+' conftest.er1 >conftest.err
7685 rm -f conftest.er1
7686 cat conftest.err >&5
7687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7688 (exit $ac_status); } && {
7689 test -z "$ac_c_werror_flag" ||
7690 test ! -s conftest.err
7691 } && test -s conftest.$ac_objext; then
7692 ac_cv_header_stdc=yes
7693 else
7694 echo "$as_me: failed program was:" >&5
7695 sed 's/^/| /' conftest.$ac_ext >&5
7697 ac_cv_header_stdc=no
7700 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7702 if test $ac_cv_header_stdc = yes; then
7703 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7704 cat >conftest.$ac_ext <<_ACEOF
7705 /* confdefs.h. */
7706 _ACEOF
7707 cat confdefs.h >>conftest.$ac_ext
7708 cat >>conftest.$ac_ext <<_ACEOF
7709 /* end confdefs.h. */
7710 #include <string.h>
7712 _ACEOF
7713 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7714 $EGREP "memchr" >/dev/null 2>&1; then
7716 else
7717 ac_cv_header_stdc=no
7719 rm -f conftest*
7723 if test $ac_cv_header_stdc = yes; then
7724 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7725 cat >conftest.$ac_ext <<_ACEOF
7726 /* confdefs.h. */
7727 _ACEOF
7728 cat confdefs.h >>conftest.$ac_ext
7729 cat >>conftest.$ac_ext <<_ACEOF
7730 /* end confdefs.h. */
7731 #include <stdlib.h>
7733 _ACEOF
7734 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7735 $EGREP "free" >/dev/null 2>&1; then
7737 else
7738 ac_cv_header_stdc=no
7740 rm -f conftest*
7744 if test $ac_cv_header_stdc = yes; then
7745 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7746 if test "$cross_compiling" = yes; then
7748 else
7749 cat >conftest.$ac_ext <<_ACEOF
7750 /* confdefs.h. */
7751 _ACEOF
7752 cat confdefs.h >>conftest.$ac_ext
7753 cat >>conftest.$ac_ext <<_ACEOF
7754 /* end confdefs.h. */
7755 #include <ctype.h>
7756 #include <stdlib.h>
7757 #if ((' ' & 0x0FF) == 0x020)
7758 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7759 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7760 #else
7761 # define ISLOWER(c) \
7762 (('a' <= (c) && (c) <= 'i') \
7763 || ('j' <= (c) && (c) <= 'r') \
7764 || ('s' <= (c) && (c) <= 'z'))
7765 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7766 #endif
7768 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7770 main ()
7772 int i;
7773 for (i = 0; i < 256; i++)
7774 if (XOR (islower (i), ISLOWER (i))
7775 || toupper (i) != TOUPPER (i))
7776 return 2;
7777 return 0;
7779 _ACEOF
7780 rm -f conftest$ac_exeext
7781 if { (ac_try="$ac_link"
7782 case "(($ac_try" in
7783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7784 *) ac_try_echo=$ac_try;;
7785 esac
7786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7787 (eval "$ac_link") 2>&5
7788 ac_status=$?
7789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7790 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7791 { (case "(($ac_try" in
7792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7793 *) ac_try_echo=$ac_try;;
7794 esac
7795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7796 (eval "$ac_try") 2>&5
7797 ac_status=$?
7798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7799 (exit $ac_status); }; }; then
7801 else
7802 echo "$as_me: program exited with status $ac_status" >&5
7803 echo "$as_me: failed program was:" >&5
7804 sed 's/^/| /' conftest.$ac_ext >&5
7806 ( exit $ac_status )
7807 ac_cv_header_stdc=no
7809 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7815 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7816 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
7817 if test $ac_cv_header_stdc = yes; then
7819 cat >>confdefs.h <<\_ACEOF
7820 #define STDC_HEADERS 1
7821 _ACEOF
7825 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7835 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7836 inttypes.h stdint.h unistd.h
7838 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7839 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7840 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7841 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7842 echo $ECHO_N "(cached) $ECHO_C" >&6
7843 else
7844 cat >conftest.$ac_ext <<_ACEOF
7845 /* confdefs.h. */
7846 _ACEOF
7847 cat confdefs.h >>conftest.$ac_ext
7848 cat >>conftest.$ac_ext <<_ACEOF
7849 /* end confdefs.h. */
7850 $ac_includes_default
7852 #include <$ac_header>
7853 _ACEOF
7854 rm -f conftest.$ac_objext
7855 if { (ac_try="$ac_compile"
7856 case "(($ac_try" in
7857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7858 *) ac_try_echo=$ac_try;;
7859 esac
7860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7861 (eval "$ac_compile") 2>conftest.er1
7862 ac_status=$?
7863 grep -v '^ *+' conftest.er1 >conftest.err
7864 rm -f conftest.er1
7865 cat conftest.err >&5
7866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7867 (exit $ac_status); } && {
7868 test -z "$ac_c_werror_flag" ||
7869 test ! -s conftest.err
7870 } && test -s conftest.$ac_objext; then
7871 eval "$as_ac_Header=yes"
7872 else
7873 echo "$as_me: failed program was:" >&5
7874 sed 's/^/| /' conftest.$ac_ext >&5
7876 eval "$as_ac_Header=no"
7879 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7881 ac_res=`eval echo '${'$as_ac_Header'}'`
7882 { echo "$as_me:$LINENO: result: $ac_res" >&5
7883 echo "${ECHO_T}$ac_res" >&6; }
7884 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7885 cat >>confdefs.h <<_ACEOF
7886 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7887 _ACEOF
7891 done
7894 { echo "$as_me:$LINENO: checking for long double" >&5
7895 echo $ECHO_N "checking for long double... $ECHO_C" >&6; }
7896 if test "${ac_cv_type_long_double+set}" = set; then
7897 echo $ECHO_N "(cached) $ECHO_C" >&6
7898 else
7899 cat >conftest.$ac_ext <<_ACEOF
7900 /* confdefs.h. */
7901 _ACEOF
7902 cat confdefs.h >>conftest.$ac_ext
7903 cat >>conftest.$ac_ext <<_ACEOF
7904 /* end confdefs.h. */
7905 $ac_includes_default
7906 typedef long double ac__type_new_;
7908 main ()
7910 if ((ac__type_new_ *) 0)
7911 return 0;
7912 if (sizeof (ac__type_new_))
7913 return 0;
7915 return 0;
7917 _ACEOF
7918 rm -f conftest.$ac_objext
7919 if { (ac_try="$ac_compile"
7920 case "(($ac_try" in
7921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7922 *) ac_try_echo=$ac_try;;
7923 esac
7924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7925 (eval "$ac_compile") 2>conftest.er1
7926 ac_status=$?
7927 grep -v '^ *+' conftest.er1 >conftest.err
7928 rm -f conftest.er1
7929 cat conftest.err >&5
7930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7931 (exit $ac_status); } && {
7932 test -z "$ac_c_werror_flag" ||
7933 test ! -s conftest.err
7934 } && test -s conftest.$ac_objext; then
7935 ac_cv_type_long_double=yes
7936 else
7937 echo "$as_me: failed program was:" >&5
7938 sed 's/^/| /' conftest.$ac_ext >&5
7940 ac_cv_type_long_double=no
7943 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7945 { echo "$as_me:$LINENO: result: $ac_cv_type_long_double" >&5
7946 echo "${ECHO_T}$ac_cv_type_long_double" >&6; }
7948 # The cast to long int works around a bug in the HP C Compiler
7949 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7950 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7951 # This bug is HP SR number 8606223364.
7952 { echo "$as_me:$LINENO: checking size of long double" >&5
7953 echo $ECHO_N "checking size of long double... $ECHO_C" >&6; }
7954 if test "${ac_cv_sizeof_long_double+set}" = set; then
7955 echo $ECHO_N "(cached) $ECHO_C" >&6
7956 else
7957 if test "$cross_compiling" = yes; then
7958 # Depending upon the size, compute the lo and hi bounds.
7959 cat >conftest.$ac_ext <<_ACEOF
7960 /* confdefs.h. */
7961 _ACEOF
7962 cat confdefs.h >>conftest.$ac_ext
7963 cat >>conftest.$ac_ext <<_ACEOF
7964 /* end confdefs.h. */
7965 $ac_includes_default
7966 typedef long double ac__type_sizeof_;
7968 main ()
7970 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
7971 test_array [0] = 0
7974 return 0;
7976 _ACEOF
7977 rm -f conftest.$ac_objext
7978 if { (ac_try="$ac_compile"
7979 case "(($ac_try" in
7980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7981 *) ac_try_echo=$ac_try;;
7982 esac
7983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7984 (eval "$ac_compile") 2>conftest.er1
7985 ac_status=$?
7986 grep -v '^ *+' conftest.er1 >conftest.err
7987 rm -f conftest.er1
7988 cat conftest.err >&5
7989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7990 (exit $ac_status); } && {
7991 test -z "$ac_c_werror_flag" ||
7992 test ! -s conftest.err
7993 } && test -s conftest.$ac_objext; then
7994 ac_lo=0 ac_mid=0
7995 while :; do
7996 cat >conftest.$ac_ext <<_ACEOF
7997 /* confdefs.h. */
7998 _ACEOF
7999 cat confdefs.h >>conftest.$ac_ext
8000 cat >>conftest.$ac_ext <<_ACEOF
8001 /* end confdefs.h. */
8002 $ac_includes_default
8003 typedef long double ac__type_sizeof_;
8005 main ()
8007 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8008 test_array [0] = 0
8011 return 0;
8013 _ACEOF
8014 rm -f conftest.$ac_objext
8015 if { (ac_try="$ac_compile"
8016 case "(($ac_try" in
8017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8018 *) ac_try_echo=$ac_try;;
8019 esac
8020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8021 (eval "$ac_compile") 2>conftest.er1
8022 ac_status=$?
8023 grep -v '^ *+' conftest.er1 >conftest.err
8024 rm -f conftest.er1
8025 cat conftest.err >&5
8026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8027 (exit $ac_status); } && {
8028 test -z "$ac_c_werror_flag" ||
8029 test ! -s conftest.err
8030 } && test -s conftest.$ac_objext; then
8031 ac_hi=$ac_mid; break
8032 else
8033 echo "$as_me: failed program was:" >&5
8034 sed 's/^/| /' conftest.$ac_ext >&5
8036 ac_lo=`expr $ac_mid + 1`
8037 if test $ac_lo -le $ac_mid; then
8038 ac_lo= ac_hi=
8039 break
8041 ac_mid=`expr 2 '*' $ac_mid + 1`
8044 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8045 done
8046 else
8047 echo "$as_me: failed program was:" >&5
8048 sed 's/^/| /' conftest.$ac_ext >&5
8050 cat >conftest.$ac_ext <<_ACEOF
8051 /* confdefs.h. */
8052 _ACEOF
8053 cat confdefs.h >>conftest.$ac_ext
8054 cat >>conftest.$ac_ext <<_ACEOF
8055 /* end confdefs.h. */
8056 $ac_includes_default
8057 typedef long double ac__type_sizeof_;
8059 main ()
8061 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
8062 test_array [0] = 0
8065 return 0;
8067 _ACEOF
8068 rm -f conftest.$ac_objext
8069 if { (ac_try="$ac_compile"
8070 case "(($ac_try" in
8071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8072 *) ac_try_echo=$ac_try;;
8073 esac
8074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8075 (eval "$ac_compile") 2>conftest.er1
8076 ac_status=$?
8077 grep -v '^ *+' conftest.er1 >conftest.err
8078 rm -f conftest.er1
8079 cat conftest.err >&5
8080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8081 (exit $ac_status); } && {
8082 test -z "$ac_c_werror_flag" ||
8083 test ! -s conftest.err
8084 } && test -s conftest.$ac_objext; then
8085 ac_hi=-1 ac_mid=-1
8086 while :; do
8087 cat >conftest.$ac_ext <<_ACEOF
8088 /* confdefs.h. */
8089 _ACEOF
8090 cat confdefs.h >>conftest.$ac_ext
8091 cat >>conftest.$ac_ext <<_ACEOF
8092 /* end confdefs.h. */
8093 $ac_includes_default
8094 typedef long double ac__type_sizeof_;
8096 main ()
8098 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
8099 test_array [0] = 0
8102 return 0;
8104 _ACEOF
8105 rm -f conftest.$ac_objext
8106 if { (ac_try="$ac_compile"
8107 case "(($ac_try" in
8108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8109 *) ac_try_echo=$ac_try;;
8110 esac
8111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8112 (eval "$ac_compile") 2>conftest.er1
8113 ac_status=$?
8114 grep -v '^ *+' conftest.er1 >conftest.err
8115 rm -f conftest.er1
8116 cat conftest.err >&5
8117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8118 (exit $ac_status); } && {
8119 test -z "$ac_c_werror_flag" ||
8120 test ! -s conftest.err
8121 } && test -s conftest.$ac_objext; then
8122 ac_lo=$ac_mid; break
8123 else
8124 echo "$as_me: failed program was:" >&5
8125 sed 's/^/| /' conftest.$ac_ext >&5
8127 ac_hi=`expr '(' $ac_mid ')' - 1`
8128 if test $ac_mid -le $ac_hi; then
8129 ac_lo= ac_hi=
8130 break
8132 ac_mid=`expr 2 '*' $ac_mid`
8135 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8136 done
8137 else
8138 echo "$as_me: failed program was:" >&5
8139 sed 's/^/| /' conftest.$ac_ext >&5
8141 ac_lo= ac_hi=
8144 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8147 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8148 # Binary search between lo and hi bounds.
8149 while test "x$ac_lo" != "x$ac_hi"; do
8150 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8151 cat >conftest.$ac_ext <<_ACEOF
8152 /* confdefs.h. */
8153 _ACEOF
8154 cat confdefs.h >>conftest.$ac_ext
8155 cat >>conftest.$ac_ext <<_ACEOF
8156 /* end confdefs.h. */
8157 $ac_includes_default
8158 typedef long double ac__type_sizeof_;
8160 main ()
8162 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8163 test_array [0] = 0
8166 return 0;
8168 _ACEOF
8169 rm -f conftest.$ac_objext
8170 if { (ac_try="$ac_compile"
8171 case "(($ac_try" in
8172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8173 *) ac_try_echo=$ac_try;;
8174 esac
8175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8176 (eval "$ac_compile") 2>conftest.er1
8177 ac_status=$?
8178 grep -v '^ *+' conftest.er1 >conftest.err
8179 rm -f conftest.er1
8180 cat conftest.err >&5
8181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8182 (exit $ac_status); } && {
8183 test -z "$ac_c_werror_flag" ||
8184 test ! -s conftest.err
8185 } && test -s conftest.$ac_objext; then
8186 ac_hi=$ac_mid
8187 else
8188 echo "$as_me: failed program was:" >&5
8189 sed 's/^/| /' conftest.$ac_ext >&5
8191 ac_lo=`expr '(' $ac_mid ')' + 1`
8194 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8195 done
8196 case $ac_lo in
8197 ?*) ac_cv_sizeof_long_double=$ac_lo;;
8198 '') if test "$ac_cv_type_long_double" = yes; then
8199 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long double)
8200 See \`config.log' for more details." >&5
8201 echo "$as_me: error: cannot compute sizeof (long double)
8202 See \`config.log' for more details." >&2;}
8203 { (exit 77); exit 77; }; }
8204 else
8205 ac_cv_sizeof_long_double=0
8206 fi ;;
8207 esac
8208 else
8209 cat >conftest.$ac_ext <<_ACEOF
8210 /* confdefs.h. */
8211 _ACEOF
8212 cat confdefs.h >>conftest.$ac_ext
8213 cat >>conftest.$ac_ext <<_ACEOF
8214 /* end confdefs.h. */
8215 $ac_includes_default
8216 typedef long double ac__type_sizeof_;
8217 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
8218 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
8219 #include <stdio.h>
8220 #include <stdlib.h>
8222 main ()
8225 FILE *f = fopen ("conftest.val", "w");
8226 if (! f)
8227 return 1;
8228 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
8230 long int i = longval ();
8231 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8232 return 1;
8233 fprintf (f, "%ld\n", i);
8235 else
8237 unsigned long int i = ulongval ();
8238 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8239 return 1;
8240 fprintf (f, "%lu\n", i);
8242 return ferror (f) || fclose (f) != 0;
8245 return 0;
8247 _ACEOF
8248 rm -f conftest$ac_exeext
8249 if { (ac_try="$ac_link"
8250 case "(($ac_try" in
8251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8252 *) ac_try_echo=$ac_try;;
8253 esac
8254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8255 (eval "$ac_link") 2>&5
8256 ac_status=$?
8257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8258 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8259 { (case "(($ac_try" in
8260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8261 *) ac_try_echo=$ac_try;;
8262 esac
8263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8264 (eval "$ac_try") 2>&5
8265 ac_status=$?
8266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8267 (exit $ac_status); }; }; then
8268 ac_cv_sizeof_long_double=`cat conftest.val`
8269 else
8270 echo "$as_me: program exited with status $ac_status" >&5
8271 echo "$as_me: failed program was:" >&5
8272 sed 's/^/| /' conftest.$ac_ext >&5
8274 ( exit $ac_status )
8275 if test "$ac_cv_type_long_double" = yes; then
8276 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long double)
8277 See \`config.log' for more details." >&5
8278 echo "$as_me: error: cannot compute sizeof (long double)
8279 See \`config.log' for more details." >&2;}
8280 { (exit 77); exit 77; }; }
8281 else
8282 ac_cv_sizeof_long_double=0
8285 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8287 rm -f conftest.val
8289 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_double" >&5
8290 echo "${ECHO_T}$ac_cv_sizeof_long_double" >&6; }
8294 cat >>confdefs.h <<_ACEOF
8295 #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
8296 _ACEOF
8299 sizeof_long_double=$ac_cv_sizeof_long_double
8302 ### End of automated tests.
8303 ### Now run sysdeps configure fragments.
8305 # They also can set these variables.
8306 use_ldconfig=no
8307 ldd_rewrite_script=no
8308 libc_cv_sysconfdir=$sysconfdir
8309 libc_cv_gcc_unwind_find_fde=no
8310 libc_cv_idn=no
8312 # Iterate over all the sysdep directories we will use, running their
8313 # configure fragments, and looking for a uname implementation.
8314 uname=
8315 for dir in $sysnames; do
8316 case $dir in
8317 /*) dest=$dir ;;
8318 *) dest=$srcdir/$dir ;;
8319 esac
8320 if test -r $dest/configure; then
8321 { echo "$as_me:$LINENO: result: running configure fragment for $dir" >&5
8322 echo "${ECHO_T}running configure fragment for $dir" >&6; }
8323 . $dest/configure
8326 if test -z "$uname"; then
8327 if test -r $dest/uname.c ||
8328 test -r $dest/uname.S ||
8329 { test -r $dest/syscalls.list &&
8330 grep '^uname[ ]' $dest/syscalls.list >/dev/null; }; then
8331 uname=$dir
8334 done
8336 if test x$libc_cv_gcc_unwind_find_fde = xyes; then
8337 cat >>confdefs.h <<\_ACEOF
8338 #define EXPORT_UNWIND_FIND_FDE 1
8339 _ACEOF
8344 # If we will use the generic uname implementation, we must figure out what
8345 # it will say by examining the system, and write the results in config-name.h.
8346 if test "$uname" = "sysdeps/generic"; then
8348 uname_sysname=`echo $config_os | sed 's/[0-9.]*$//'`
8349 if test $uname_sysname != $config_os; then
8350 config_release=`echo $config_os | sed s/$uname_sysname//`
8353 { echo "$as_me:$LINENO: checking OS release for uname" >&5
8354 echo $ECHO_N "checking OS release for uname... $ECHO_C" >&6; }
8355 if test "${libc_cv_uname_release+set}" = set; then
8356 echo $ECHO_N "(cached) $ECHO_C" >&6
8357 else
8358 if test -r /vmunix; then
8359 kernel_id=`strings /vmunix | grep UNIX`
8360 elif test -r /dynix; then
8361 kernel_id=`strings /dynix | grep DYNIX`
8362 else
8363 kernel_id=
8366 kernel_release=`echo "$kernel_id" | sed 's/^[^0-9.]*\([0-9.]*\).*$/\1/'`
8367 if test x`echo "$config_release" | sed "s/^$kernel_release//"` \
8368 != x$config_release; then
8369 # The configuration release is a substring of the kernel release.
8370 libc_cv_uname_release=$kernel_release
8371 elif test x$config_release != x; then
8372 libc_cv_uname_release=$config_release
8373 elif test x$kernel_release != x; then
8374 libc_cv_uname_release=$kernel_release
8375 else
8376 libc_cv_uname_release=unknown
8379 { echo "$as_me:$LINENO: result: $libc_cv_uname_release" >&5
8380 echo "${ECHO_T}$libc_cv_uname_release" >&6; }
8381 uname_release="$libc_cv_uname_release"
8383 { echo "$as_me:$LINENO: checking OS version for uname" >&5
8384 echo $ECHO_N "checking OS version for uname... $ECHO_C" >&6; }
8385 if test "${libc_cv_uname_version+set}" = set; then
8386 echo $ECHO_N "(cached) $ECHO_C" >&6
8387 else
8388 if test -r /vmunix; then
8389 kernel_id=`strings /vmunix | grep UNIX`
8390 elif test -r /dynix; then
8391 kernel_id=`strings /dynix | grep DYNIX`
8392 else
8393 kernel_id=
8396 kernel_version=`echo "$kernel_id" | sed 's/^[^#]*#\([0-9]*\).*$/\1/'`
8397 if test -n "$kernel_version"; then
8398 libc_cv_uname_version="$kernel_version"
8399 else
8400 libc_cv_uname_version=unknown
8403 { echo "$as_me:$LINENO: result: $libc_cv_uname_version" >&5
8404 echo "${ECHO_T}$libc_cv_uname_version" >&6; }
8405 uname_version="$libc_cv_uname_version"
8407 config_uname=config-name.h:config-name.in
8408 else
8409 # For non-generic uname, we don't need to create config-name.h at all.
8410 config_uname=
8413 cat >>confdefs.h <<\_ACEOF
8414 #define USE_IN_LIBIO 1
8415 _ACEOF
8418 # Test for old glibc 2.0.x headers so that they can be removed properly
8419 # Search only in includedir.
8420 { echo "$as_me:$LINENO: checking for old glibc 2.0.x headers" >&5
8421 echo $ECHO_N "checking for old glibc 2.0.x headers... $ECHO_C" >&6; }
8422 if eval test -f "${includedir}/elfclass.h" -a -f "${includedir}/fcntlbits.h"
8423 then
8424 old_glibc_headers=yes
8425 else
8426 old_glibc_headers=no
8428 { echo "$as_me:$LINENO: result: $old_glibc_headers" >&5
8429 echo "${ECHO_T}$old_glibc_headers" >&6; }
8430 if test ${old_glibc_headers} = yes; then
8431 { echo "$as_me:$LINENO: WARNING: *** During \"make install\" old headers from glibc 2.0.x will" >&5
8432 echo "$as_me: WARNING: *** During \"make install\" old headers from glibc 2.0.x will" >&2;}
8433 { echo "$as_me:$LINENO: WARNING: *** be removed." >&5
8434 echo "$as_me: WARNING: *** be removed." >&2;}
8448 if test $elf = yes; then
8449 cat >>confdefs.h <<\_ACEOF
8450 #define HAVE_ELF 1
8451 _ACEOF
8454 if test $xcoff = yes; then
8455 cat >>confdefs.h <<\_ACEOF
8456 #define HAVE_XCOFF 1
8457 _ACEOF
8463 if test $shared = default; then
8464 shared=$elf
8467 { echo "$as_me:$LINENO: checking whether -fPIC is default" >&5
8468 echo $ECHO_N "checking whether -fPIC is default... $ECHO_C" >&6; }
8469 if test "${pic_default+set}" = set; then
8470 echo $ECHO_N "(cached) $ECHO_C" >&6
8471 else
8472 pic_default=yes
8473 cat > conftest.c <<EOF
8474 #if defined __PIC__ || defined __pic__ || defined PIC || defined pic
8475 # error PIC is default.
8476 #endif
8478 if eval "${CC-cc} -S conftest.c 2>&5 1>&5"; then
8479 pic_default=no
8481 rm -f conftest.*
8483 { echo "$as_me:$LINENO: result: $pic_default" >&5
8484 echo "${ECHO_T}$pic_default" >&6; }
8497 if test "`(cd $srcdir; pwd)`" = "`pwd`"; then
8498 config_makefile=
8499 else
8500 config_makefile=Makefile
8503 VERSION=`sed -n -e 's/^#define VERSION "\([^"]*\)"/\1/p' < $srcdir/version.h`
8504 RELEASE=`sed -n -e 's/^#define RELEASE "\([^"]*\)"/\1/p' < $srcdir/version.h`
8508 ac_config_files="$ac_config_files config.make ${config_makefile} ${config_uname}"
8510 ac_config_commands="$ac_config_commands default"
8512 cat >confcache <<\_ACEOF
8513 # This file is a shell script that caches the results of configure
8514 # tests run on this system so they can be shared between configure
8515 # scripts and configure runs, see configure's option --config-cache.
8516 # It is not useful on other systems. If it contains results you don't
8517 # want to keep, you may remove or edit it.
8519 # config.status only pays attention to the cache file if you give it
8520 # the --recheck option to rerun configure.
8522 # `ac_cv_env_foo' variables (set or unset) will be overridden when
8523 # loading this file, other *unset* `ac_cv_foo' will be assigned the
8524 # following values.
8526 _ACEOF
8528 # The following way of writing the cache mishandles newlines in values,
8529 # but we know of no workaround that is simple, portable, and efficient.
8530 # So, we kill variables containing newlines.
8531 # Ultrix sh set writes to stderr and can't be redirected directly,
8532 # and sets the high bit in the cache file unless we assign to the vars.
8534 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
8535 eval ac_val=\$$ac_var
8536 case $ac_val in #(
8537 *${as_nl}*)
8538 case $ac_var in #(
8539 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
8540 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
8541 esac
8542 case $ac_var in #(
8543 _ | IFS | as_nl) ;; #(
8544 *) $as_unset $ac_var ;;
8545 esac ;;
8546 esac
8547 done
8549 (set) 2>&1 |
8550 case $as_nl`(ac_space=' '; set) 2>&1` in #(
8551 *${as_nl}ac_space=\ *)
8552 # `set' does not quote correctly, so add quotes (double-quote
8553 # substitution turns \\\\ into \\, and sed turns \\ into \).
8554 sed -n \
8555 "s/'/'\\\\''/g;
8556 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
8557 ;; #(
8559 # `set' quotes correctly as required by POSIX, so do not add quotes.
8560 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
8562 esac |
8563 sort
8565 sed '
8566 /^ac_cv_env_/b end
8567 t clear
8568 :clear
8569 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
8570 t end
8571 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8572 :end' >>confcache
8573 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
8574 if test -w "$cache_file"; then
8575 test "x$cache_file" != "x/dev/null" &&
8576 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
8577 echo "$as_me: updating cache $cache_file" >&6;}
8578 cat confcache >$cache_file
8579 else
8580 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
8581 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
8584 rm -f confcache
8586 test "x$prefix" = xNONE && prefix=$ac_default_prefix
8587 # Let make expand exec_prefix.
8588 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8590 DEFS=-DHAVE_CONFIG_H
8592 ac_libobjs=
8593 ac_ltlibobjs=
8594 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
8595 # 1. Remove the extension, and $U if already installed.
8596 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
8597 ac_i=`echo "$ac_i" | sed "$ac_script"`
8598 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
8599 # will be set to the directory where LIBOBJS objects are built.
8600 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
8601 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
8602 done
8603 LIBOBJS=$ac_libobjs
8605 LTLIBOBJS=$ac_ltlibobjs
8609 : ${CONFIG_STATUS=./config.status}
8610 ac_clean_files_save=$ac_clean_files
8611 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
8612 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
8613 echo "$as_me: creating $CONFIG_STATUS" >&6;}
8614 cat >$CONFIG_STATUS <<_ACEOF
8615 #! $SHELL
8616 # Generated by $as_me.
8617 # Run this file to recreate the current configuration.
8618 # Compiler output produced by configure, useful for debugging
8619 # configure, is in config.log if it exists.
8621 debug=false
8622 ac_cs_recheck=false
8623 ac_cs_silent=false
8624 SHELL=\${CONFIG_SHELL-$SHELL}
8625 _ACEOF
8627 cat >>$CONFIG_STATUS <<\_ACEOF
8628 ## --------------------- ##
8629 ## M4sh Initialization. ##
8630 ## --------------------- ##
8632 # Be more Bourne compatible
8633 DUALCASE=1; export DUALCASE # for MKS sh
8634 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
8635 emulate sh
8636 NULLCMD=:
8637 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
8638 # is contrary to our usage. Disable this feature.
8639 alias -g '${1+"$@"}'='"$@"'
8640 setopt NO_GLOB_SUBST
8641 else
8642 case `(set -o) 2>/dev/null` in
8643 *posix*) set -o posix ;;
8644 esac
8651 # PATH needs CR
8652 # Avoid depending upon Character Ranges.
8653 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
8654 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
8655 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
8656 as_cr_digits='0123456789'
8657 as_cr_alnum=$as_cr_Letters$as_cr_digits
8659 # The user is always right.
8660 if test "${PATH_SEPARATOR+set}" != set; then
8661 echo "#! /bin/sh" >conf$$.sh
8662 echo "exit 0" >>conf$$.sh
8663 chmod +x conf$$.sh
8664 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
8665 PATH_SEPARATOR=';'
8666 else
8667 PATH_SEPARATOR=:
8669 rm -f conf$$.sh
8672 # Support unset when possible.
8673 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
8674 as_unset=unset
8675 else
8676 as_unset=false
8680 # IFS
8681 # We need space, tab and new line, in precisely that order. Quoting is
8682 # there to prevent editors from complaining about space-tab.
8683 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
8684 # splitting by setting IFS to empty value.)
8685 as_nl='
8687 IFS=" "" $as_nl"
8689 # Find who we are. Look in the path if we contain no directory separator.
8690 case $0 in
8691 *[\\/]* ) as_myself=$0 ;;
8692 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8693 for as_dir in $PATH
8695 IFS=$as_save_IFS
8696 test -z "$as_dir" && as_dir=.
8697 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
8698 done
8699 IFS=$as_save_IFS
8702 esac
8703 # We did not find ourselves, most probably we were run as `sh COMMAND'
8704 # in which case we are not to be found in the path.
8705 if test "x$as_myself" = x; then
8706 as_myself=$0
8708 if test ! -f "$as_myself"; then
8709 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
8710 { (exit 1); exit 1; }
8713 # Work around bugs in pre-3.0 UWIN ksh.
8714 for as_var in ENV MAIL MAILPATH
8715 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
8716 done
8717 PS1='$ '
8718 PS2='> '
8719 PS4='+ '
8721 # NLS nuisances.
8722 for as_var in \
8723 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
8724 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
8725 LC_TELEPHONE LC_TIME
8727 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
8728 eval $as_var=C; export $as_var
8729 else
8730 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
8732 done
8734 # Required to use basename.
8735 if expr a : '\(a\)' >/dev/null 2>&1 &&
8736 test "X`expr 00001 : '.*\(...\)'`" = X001; then
8737 as_expr=expr
8738 else
8739 as_expr=false
8742 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
8743 as_basename=basename
8744 else
8745 as_basename=false
8749 # Name of the executable.
8750 as_me=`$as_basename -- "$0" ||
8751 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
8752 X"$0" : 'X\(//\)$' \| \
8753 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
8754 echo X/"$0" |
8755 sed '/^.*\/\([^/][^/]*\)\/*$/{
8756 s//\1/
8759 /^X\/\(\/\/\)$/{
8760 s//\1/
8763 /^X\/\(\/\).*/{
8764 s//\1/
8767 s/.*/./; q'`
8769 # CDPATH.
8770 $as_unset CDPATH
8774 as_lineno_1=$LINENO
8775 as_lineno_2=$LINENO
8776 test "x$as_lineno_1" != "x$as_lineno_2" &&
8777 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
8779 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
8780 # uniformly replaced by the line number. The first 'sed' inserts a
8781 # line-number line after each line using $LINENO; the second 'sed'
8782 # does the real work. The second script uses 'N' to pair each
8783 # line-number line with the line containing $LINENO, and appends
8784 # trailing '-' during substitution so that $LINENO is not a special
8785 # case at line end.
8786 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
8787 # scripts with optimization help from Paolo Bonzini. Blame Lee
8788 # E. McMahon (1931-1989) for sed's syntax. :-)
8789 sed -n '
8791 /[$]LINENO/=
8792 ' <$as_myself |
8793 sed '
8794 s/[$]LINENO.*/&-/
8795 t lineno
8797 :lineno
8799 :loop
8800 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
8801 t loop
8802 s/-\n.*//
8803 ' >$as_me.lineno &&
8804 chmod +x "$as_me.lineno" ||
8805 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
8806 { (exit 1); exit 1; }; }
8808 # Don't try to exec as it changes $[0], causing all sort of problems
8809 # (the dirname of $[0] is not the place where we might find the
8810 # original and so on. Autoconf is especially sensitive to this).
8811 . "./$as_me.lineno"
8812 # Exit status is that of the last command.
8813 exit
8817 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
8818 as_dirname=dirname
8819 else
8820 as_dirname=false
8823 ECHO_C= ECHO_N= ECHO_T=
8824 case `echo -n x` in
8825 -n*)
8826 case `echo 'x\c'` in
8827 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
8828 *) ECHO_C='\c';;
8829 esac;;
8831 ECHO_N='-n';;
8832 esac
8834 if expr a : '\(a\)' >/dev/null 2>&1 &&
8835 test "X`expr 00001 : '.*\(...\)'`" = X001; then
8836 as_expr=expr
8837 else
8838 as_expr=false
8841 rm -f conf$$ conf$$.exe conf$$.file
8842 if test -d conf$$.dir; then
8843 rm -f conf$$.dir/conf$$.file
8844 else
8845 rm -f conf$$.dir
8846 mkdir conf$$.dir
8848 echo >conf$$.file
8849 if ln -s conf$$.file conf$$ 2>/dev/null; then
8850 as_ln_s='ln -s'
8851 # ... but there are two gotchas:
8852 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
8853 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
8854 # In both cases, we have to default to `cp -p'.
8855 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
8856 as_ln_s='cp -p'
8857 elif ln conf$$.file conf$$ 2>/dev/null; then
8858 as_ln_s=ln
8859 else
8860 as_ln_s='cp -p'
8862 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
8863 rmdir conf$$.dir 2>/dev/null
8865 if mkdir -p . 2>/dev/null; then
8866 as_mkdir_p=:
8867 else
8868 test -d ./-p && rmdir ./-p
8869 as_mkdir_p=false
8872 if test -x / >/dev/null 2>&1; then
8873 as_test_x='test -x'
8874 else
8875 if ls -dL / >/dev/null 2>&1; then
8876 as_ls_L_option=L
8877 else
8878 as_ls_L_option=
8880 as_test_x='
8881 eval sh -c '\''
8882 if test -d "$1"; then
8883 test -d "$1/.";
8884 else
8885 case $1 in
8886 -*)set "./$1";;
8887 esac;
8888 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
8889 ???[sx]*):;;*)false;;esac;fi
8890 '\'' sh
8893 as_executable_p=$as_test_x
8895 # Sed expression to map a string onto a valid CPP name.
8896 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
8898 # Sed expression to map a string onto a valid variable name.
8899 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
8902 exec 6>&1
8904 # Save the log message, to keep $[0] and so on meaningful, and to
8905 # report actual input values of CONFIG_FILES etc. instead of their
8906 # values after options handling.
8907 ac_log="
8908 This file was extended by GNU C Library $as_me (see version.h), which was
8909 generated by GNU Autoconf 2.61. Invocation command line was
8911 CONFIG_FILES = $CONFIG_FILES
8912 CONFIG_HEADERS = $CONFIG_HEADERS
8913 CONFIG_LINKS = $CONFIG_LINKS
8914 CONFIG_COMMANDS = $CONFIG_COMMANDS
8915 $ $0 $@
8917 on `(hostname || uname -n) 2>/dev/null | sed 1q`
8920 _ACEOF
8922 cat >>$CONFIG_STATUS <<_ACEOF
8923 # Files that config.status was made for.
8924 config_files="$ac_config_files"
8925 config_headers="$ac_config_headers"
8926 config_commands="$ac_config_commands"
8928 _ACEOF
8930 cat >>$CONFIG_STATUS <<\_ACEOF
8931 ac_cs_usage="\
8932 \`$as_me' instantiates files from templates according to the
8933 current configuration.
8935 Usage: $0 [OPTIONS] [FILE]...
8937 -h, --help print this help, then exit
8938 -V, --version print version number and configuration settings, then exit
8939 -q, --quiet do not print progress messages
8940 -d, --debug don't remove temporary files
8941 --recheck update $as_me by reconfiguring in the same conditions
8942 --file=FILE[:TEMPLATE]
8943 instantiate the configuration file FILE
8944 --header=FILE[:TEMPLATE]
8945 instantiate the configuration header FILE
8947 Configuration files:
8948 $config_files
8950 Configuration headers:
8951 $config_headers
8953 Configuration commands:
8954 $config_commands
8956 Report bugs to <bug-autoconf@gnu.org>."
8958 _ACEOF
8959 cat >>$CONFIG_STATUS <<_ACEOF
8960 ac_cs_version="\\
8961 GNU C Library config.status (see version.h)
8962 configured by $0, generated by GNU Autoconf 2.61,
8963 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
8965 Copyright (C) 2006 Free Software Foundation, Inc.
8966 This config.status script is free software; the Free Software Foundation
8967 gives unlimited permission to copy, distribute and modify it."
8969 ac_pwd='$ac_pwd'
8970 srcdir='$srcdir'
8971 INSTALL='$INSTALL'
8972 _ACEOF
8974 cat >>$CONFIG_STATUS <<\_ACEOF
8975 # If no file are specified by the user, then we need to provide default
8976 # value. By we need to know if files were specified by the user.
8977 ac_need_defaults=:
8978 while test $# != 0
8980 case $1 in
8981 --*=*)
8982 ac_option=`expr "X$1" : 'X\([^=]*\)='`
8983 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
8984 ac_shift=:
8987 ac_option=$1
8988 ac_optarg=$2
8989 ac_shift=shift
8991 esac
8993 case $ac_option in
8994 # Handling of the options.
8995 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8996 ac_cs_recheck=: ;;
8997 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
8998 echo "$ac_cs_version"; exit ;;
8999 --debug | --debu | --deb | --de | --d | -d )
9000 debug=: ;;
9001 --file | --fil | --fi | --f )
9002 $ac_shift
9003 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
9004 ac_need_defaults=false;;
9005 --header | --heade | --head | --hea )
9006 $ac_shift
9007 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
9008 ac_need_defaults=false;;
9009 --he | --h)
9010 # Conflict between --help and --header
9011 { echo "$as_me: error: ambiguous option: $1
9012 Try \`$0 --help' for more information." >&2
9013 { (exit 1); exit 1; }; };;
9014 --help | --hel | -h )
9015 echo "$ac_cs_usage"; exit ;;
9016 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
9017 | -silent | --silent | --silen | --sile | --sil | --si | --s)
9018 ac_cs_silent=: ;;
9020 # This is an error.
9021 -*) { echo "$as_me: error: unrecognized option: $1
9022 Try \`$0 --help' for more information." >&2
9023 { (exit 1); exit 1; }; } ;;
9025 *) ac_config_targets="$ac_config_targets $1"
9026 ac_need_defaults=false ;;
9028 esac
9029 shift
9030 done
9032 ac_configure_extra_args=
9034 if $ac_cs_silent; then
9035 exec 6>/dev/null
9036 ac_configure_extra_args="$ac_configure_extra_args --silent"
9039 _ACEOF
9040 cat >>$CONFIG_STATUS <<_ACEOF
9041 if \$ac_cs_recheck; then
9042 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
9043 CONFIG_SHELL=$SHELL
9044 export CONFIG_SHELL
9045 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
9048 _ACEOF
9049 cat >>$CONFIG_STATUS <<\_ACEOF
9050 exec 5>>config.log
9052 echo
9053 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
9054 ## Running $as_me. ##
9055 _ASBOX
9056 echo "$ac_log"
9057 } >&5
9059 _ACEOF
9060 cat >>$CONFIG_STATUS <<_ACEOF
9062 # INIT-COMMANDS
9064 config_vars='$config_vars'
9066 _ACEOF
9068 cat >>$CONFIG_STATUS <<\_ACEOF
9070 # Handling of arguments.
9071 for ac_config_target in $ac_config_targets
9073 case $ac_config_target in
9074 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
9075 "config.make") CONFIG_FILES="$CONFIG_FILES config.make" ;;
9076 "${config_makefile}") CONFIG_FILES="$CONFIG_FILES ${config_makefile}" ;;
9077 "${config_uname}") CONFIG_FILES="$CONFIG_FILES ${config_uname}" ;;
9078 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
9080 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
9081 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
9082 { (exit 1); exit 1; }; };;
9083 esac
9084 done
9087 # If the user did not use the arguments to specify the items to instantiate,
9088 # then the envvar interface is used. Set only those that are not.
9089 # We use the long form for the default assignment because of an extremely
9090 # bizarre bug on SunOS 4.1.3.
9091 if $ac_need_defaults; then
9092 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
9093 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
9094 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
9097 # Have a temporary directory for convenience. Make it in the build tree
9098 # simply because there is no reason against having it here, and in addition,
9099 # creating and moving files from /tmp can sometimes cause problems.
9100 # Hook for its removal unless debugging.
9101 # Note that there is a small window in which the directory will not be cleaned:
9102 # after its creation but before its name has been assigned to `$tmp'.
9103 $debug ||
9105 tmp=
9106 trap 'exit_status=$?
9107 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
9109 trap '{ (exit 1); exit 1; }' 1 2 13 15
9111 # Create a (secure) tmp directory for tmp files.
9114 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
9115 test -n "$tmp" && test -d "$tmp"
9116 } ||
9118 tmp=./conf$$-$RANDOM
9119 (umask 077 && mkdir "$tmp")
9120 } ||
9122 echo "$me: cannot create a temporary directory in ." >&2
9123 { (exit 1); exit 1; }
9127 # Set up the sed scripts for CONFIG_FILES section.
9130 # No need to generate the scripts if there are no CONFIG_FILES.
9131 # This happens for instance when ./config.status config.h
9132 if test -n "$CONFIG_FILES"; then
9134 _ACEOF
9138 ac_delim='%!_!# '
9139 for ac_last_try in false false false false false :; do
9140 cat >conf$$subs.sed <<_ACEOF
9141 SHELL!$SHELL$ac_delim
9142 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
9143 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
9144 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
9145 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
9146 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
9147 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
9148 exec_prefix!$exec_prefix$ac_delim
9149 prefix!$prefix$ac_delim
9150 program_transform_name!$program_transform_name$ac_delim
9151 bindir!$bindir$ac_delim
9152 sbindir!$sbindir$ac_delim
9153 libexecdir!$libexecdir$ac_delim
9154 datarootdir!$datarootdir$ac_delim
9155 datadir!$datadir$ac_delim
9156 sysconfdir!$sysconfdir$ac_delim
9157 sharedstatedir!$sharedstatedir$ac_delim
9158 localstatedir!$localstatedir$ac_delim
9159 includedir!$includedir$ac_delim
9160 oldincludedir!$oldincludedir$ac_delim
9161 docdir!$docdir$ac_delim
9162 infodir!$infodir$ac_delim
9163 htmldir!$htmldir$ac_delim
9164 dvidir!$dvidir$ac_delim
9165 pdfdir!$pdfdir$ac_delim
9166 psdir!$psdir$ac_delim
9167 libdir!$libdir$ac_delim
9168 localedir!$localedir$ac_delim
9169 mandir!$mandir$ac_delim
9170 DEFS!$DEFS$ac_delim
9171 ECHO_C!$ECHO_C$ac_delim
9172 ECHO_N!$ECHO_N$ac_delim
9173 ECHO_T!$ECHO_T$ac_delim
9174 LIBS!$LIBS$ac_delim
9175 build_alias!$build_alias$ac_delim
9176 host_alias!$host_alias$ac_delim
9177 target_alias!$target_alias$ac_delim
9178 with_fp!$with_fp$ac_delim
9179 with_cvs!$with_cvs$ac_delim
9180 enable_check_abi!$enable_check_abi$ac_delim
9181 oldest_abi!$oldest_abi$ac_delim
9182 bindnow!$bindnow$ac_delim
9183 force_install!$force_install$ac_delim
9184 all_warnings!$all_warnings$ac_delim
9185 build!$build$ac_delim
9186 build_cpu!$build_cpu$ac_delim
9187 build_vendor!$build_vendor$ac_delim
9188 build_os!$build_os$ac_delim
9189 host!$host$ac_delim
9190 host_cpu!$host_cpu$ac_delim
9191 host_vendor!$host_vendor$ac_delim
9192 host_os!$host_os$ac_delim
9193 subdirs!$subdirs$ac_delim
9194 add_ons!$add_ons$ac_delim
9195 add_on_subdirs!$add_on_subdirs$ac_delim
9196 base_machine!$base_machine$ac_delim
9197 submachine!$submachine$ac_delim
9198 sysnames!$sysnames$ac_delim
9199 sysdeps_add_ons!$sysdeps_add_ons$ac_delim
9200 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
9201 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
9202 INSTALL_DATA!$INSTALL_DATA$ac_delim
9203 LN_S!$LN_S$ac_delim
9204 CC!$CC$ac_delim
9205 CFLAGS!$CFLAGS$ac_delim
9206 LDFLAGS!$LDFLAGS$ac_delim
9207 CPPFLAGS!$CPPFLAGS$ac_delim
9208 ac_ct_CC!$ac_ct_CC$ac_delim
9209 OBJEXT!$OBJEXT$ac_delim
9210 BUILD_CC!$BUILD_CC$ac_delim
9211 cross_compiling!$cross_compiling$ac_delim
9212 CPP!$CPP$ac_delim
9213 CXX!$CXX$ac_delim
9214 CXXFLAGS!$CXXFLAGS$ac_delim
9215 ac_ct_CXX!$ac_ct_CXX$ac_delim
9216 AR!$AR$ac_delim
9217 OBJDUMP!$OBJDUMP$ac_delim
9218 RANLIB!$RANLIB$ac_delim
9219 MIG!$MIG$ac_delim
9220 AS!$AS$ac_delim
9221 LD!$LD$ac_delim
9222 PWD_P!$PWD_P$ac_delim
9223 MAKE!$MAKE$ac_delim
9224 MSGFMT!$MSGFMT$ac_delim
9225 MAKEINFO!$MAKEINFO$ac_delim
9226 SED!$SED$ac_delim
9227 AUTOCONF!$AUTOCONF$ac_delim
9228 SYSINCLUDES!$SYSINCLUDES$ac_delim
9229 CXX_SYSINCLUDES!$CXX_SYSINCLUDES$ac_delim
9230 libc_cv_gcc_static_libgcc!$libc_cv_gcc_static_libgcc$ac_delim
9231 BASH_SHELL!$BASH_SHELL$ac_delim
9232 libc_cv_have_bash2!$libc_cv_have_bash2$ac_delim
9233 KSH!$KSH$ac_delim
9234 libc_cv_have_ksh!$libc_cv_have_ksh$ac_delim
9235 AWK!$AWK$ac_delim
9236 PERL!$PERL$ac_delim
9237 INSTALL_INFO!$INSTALL_INFO$ac_delim
9238 _ACEOF
9240 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
9241 break
9242 elif $ac_last_try; then
9243 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
9244 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
9245 { (exit 1); exit 1; }; }
9246 else
9247 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
9249 done
9251 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
9252 if test -n "$ac_eof"; then
9253 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
9254 ac_eof=`expr $ac_eof + 1`
9257 cat >>$CONFIG_STATUS <<_ACEOF
9258 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
9259 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
9260 _ACEOF
9261 sed '
9262 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
9263 s/^/s,@/; s/!/@,|#_!!_#|/
9266 s/'"$ac_delim"'$/,g/; t
9267 s/$/\\/; p
9268 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
9269 ' >>$CONFIG_STATUS <conf$$subs.sed
9270 rm -f conf$$subs.sed
9271 cat >>$CONFIG_STATUS <<_ACEOF
9272 CEOF$ac_eof
9273 _ACEOF
9276 ac_delim='%!_!# '
9277 for ac_last_try in false false false false false :; do
9278 cat >conf$$subs.sed <<_ACEOF
9279 BISON!$BISON$ac_delim
9280 VERSIONING!$VERSIONING$ac_delim
9281 libc_cv_cc_with_libunwind!$libc_cv_cc_with_libunwind$ac_delim
9282 libc_cv_Bgroup!$libc_cv_Bgroup$ac_delim
9283 libc_cv_libgcc_s_suffix!$libc_cv_libgcc_s_suffix$ac_delim
9284 libc_cv_as_needed!$libc_cv_as_needed$ac_delim
9285 ASFLAGS_config!$ASFLAGS_config$ac_delim
9286 libc_cv_z_combreloc!$libc_cv_z_combreloc$ac_delim
9287 libc_cv_z_execstack!$libc_cv_z_execstack$ac_delim
9288 libc_cv_fpie!$libc_cv_fpie$ac_delim
9289 libc_cv_hashstyle!$libc_cv_hashstyle$ac_delim
9290 fno_unit_at_a_time!$fno_unit_at_a_time$ac_delim
9291 libc_cv_ssp!$libc_cv_ssp$ac_delim
9292 libc_cv_gnu89_inline!$libc_cv_gnu89_inline$ac_delim
9293 libc_cv_have_initfini!$libc_cv_have_initfini$ac_delim
9294 no_whole_archive!$no_whole_archive$ac_delim
9295 exceptions!$exceptions$ac_delim
9296 libc_cv_cc_submachine!$libc_cv_cc_submachine$ac_delim
9297 LIBGD!$LIBGD$ac_delim
9298 have_libaudit!$have_libaudit$ac_delim
9299 have_libcap!$have_libcap$ac_delim
9300 have_selinux!$have_selinux$ac_delim
9301 GREP!$GREP$ac_delim
9302 EGREP!$EGREP$ac_delim
9303 sizeof_long_double!$sizeof_long_double$ac_delim
9304 libc_cv_gcc_unwind_find_fde!$libc_cv_gcc_unwind_find_fde$ac_delim
9305 uname_sysname!$uname_sysname$ac_delim
9306 uname_release!$uname_release$ac_delim
9307 uname_version!$uname_version$ac_delim
9308 old_glibc_headers!$old_glibc_headers$ac_delim
9309 libc_cv_slibdir!$libc_cv_slibdir$ac_delim
9310 libc_cv_localedir!$libc_cv_localedir$ac_delim
9311 libc_cv_sysconfdir!$libc_cv_sysconfdir$ac_delim
9312 libc_cv_rootsbindir!$libc_cv_rootsbindir$ac_delim
9313 libc_cv_forced_unwind!$libc_cv_forced_unwind$ac_delim
9314 use_ldconfig!$use_ldconfig$ac_delim
9315 ldd_rewrite_script!$ldd_rewrite_script$ac_delim
9316 elf!$elf$ac_delim
9317 xcoff!$xcoff$ac_delim
9318 static!$static$ac_delim
9319 shared!$shared$ac_delim
9320 pic_default!$pic_default$ac_delim
9321 profile!$profile$ac_delim
9322 omitfp!$omitfp$ac_delim
9323 bounded!$bounded$ac_delim
9324 static_nss!$static_nss$ac_delim
9325 nopic_initfini!$nopic_initfini$ac_delim
9326 DEFINES!$DEFINES$ac_delim
9327 mach_interface_list!$mach_interface_list$ac_delim
9328 VERSION!$VERSION$ac_delim
9329 RELEASE!$RELEASE$ac_delim
9330 LIBOBJS!$LIBOBJS$ac_delim
9331 LTLIBOBJS!$LTLIBOBJS$ac_delim
9332 _ACEOF
9334 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 53; then
9335 break
9336 elif $ac_last_try; then
9337 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
9338 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
9339 { (exit 1); exit 1; }; }
9340 else
9341 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
9343 done
9345 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
9346 if test -n "$ac_eof"; then
9347 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
9348 ac_eof=`expr $ac_eof + 1`
9351 cat >>$CONFIG_STATUS <<_ACEOF
9352 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
9353 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
9354 _ACEOF
9355 sed '
9356 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
9357 s/^/s,@/; s/!/@,|#_!!_#|/
9360 s/'"$ac_delim"'$/,g/; t
9361 s/$/\\/; p
9362 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
9363 ' >>$CONFIG_STATUS <conf$$subs.sed
9364 rm -f conf$$subs.sed
9365 cat >>$CONFIG_STATUS <<_ACEOF
9366 :end
9367 s/|#_!!_#|//g
9368 CEOF$ac_eof
9369 _ACEOF
9372 # VPATH may cause trouble with some makes, so we remove $(srcdir),
9373 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
9374 # trailing colons and then remove the whole line if VPATH becomes empty
9375 # (actually we leave an empty line to preserve line numbers).
9376 if test "x$srcdir" = x.; then
9377 ac_vpsub='/^[ ]*VPATH[ ]*=/{
9378 s/:*\$(srcdir):*/:/
9379 s/:*\${srcdir}:*/:/
9380 s/:*@srcdir@:*/:/
9381 s/^\([^=]*=[ ]*\):*/\1/
9382 s/:*$//
9383 s/^[^=]*=[ ]*$//
9387 cat >>$CONFIG_STATUS <<\_ACEOF
9388 fi # test -n "$CONFIG_FILES"
9391 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
9393 case $ac_tag in
9394 :[FHLC]) ac_mode=$ac_tag; continue;;
9395 esac
9396 case $ac_mode$ac_tag in
9397 :[FHL]*:*);;
9398 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
9399 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
9400 { (exit 1); exit 1; }; };;
9401 :[FH]-) ac_tag=-:-;;
9402 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
9403 esac
9404 ac_save_IFS=$IFS
9405 IFS=:
9406 set x $ac_tag
9407 IFS=$ac_save_IFS
9408 shift
9409 ac_file=$1
9410 shift
9412 case $ac_mode in
9413 :L) ac_source=$1;;
9414 :[FH])
9415 ac_file_inputs=
9416 for ac_f
9418 case $ac_f in
9419 -) ac_f="$tmp/stdin";;
9420 *) # Look for the file first in the build tree, then in the source tree
9421 # (if the path is not absolute). The absolute path cannot be DOS-style,
9422 # because $ac_f cannot contain `:'.
9423 test -f "$ac_f" ||
9424 case $ac_f in
9425 [\\/$]*) false;;
9426 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
9427 esac ||
9428 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
9429 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
9430 { (exit 1); exit 1; }; };;
9431 esac
9432 ac_file_inputs="$ac_file_inputs $ac_f"
9433 done
9435 # Let's still pretend it is `configure' which instantiates (i.e., don't
9436 # use $as_me), people would be surprised to read:
9437 # /* config.h. Generated by config.status. */
9438 configure_input="Generated from "`IFS=:
9439 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
9440 if test x"$ac_file" != x-; then
9441 configure_input="$ac_file. $configure_input"
9442 { echo "$as_me:$LINENO: creating $ac_file" >&5
9443 echo "$as_me: creating $ac_file" >&6;}
9446 case $ac_tag in
9447 *:-:* | *:-) cat >"$tmp/stdin";;
9448 esac
9450 esac
9452 ac_dir=`$as_dirname -- "$ac_file" ||
9453 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9454 X"$ac_file" : 'X\(//\)[^/]' \| \
9455 X"$ac_file" : 'X\(//\)$' \| \
9456 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
9457 echo X"$ac_file" |
9458 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9459 s//\1/
9462 /^X\(\/\/\)[^/].*/{
9463 s//\1/
9466 /^X\(\/\/\)$/{
9467 s//\1/
9470 /^X\(\/\).*/{
9471 s//\1/
9474 s/.*/./; q'`
9475 { as_dir="$ac_dir"
9476 case $as_dir in #(
9477 -*) as_dir=./$as_dir;;
9478 esac
9479 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
9480 as_dirs=
9481 while :; do
9482 case $as_dir in #(
9483 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
9484 *) as_qdir=$as_dir;;
9485 esac
9486 as_dirs="'$as_qdir' $as_dirs"
9487 as_dir=`$as_dirname -- "$as_dir" ||
9488 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9489 X"$as_dir" : 'X\(//\)[^/]' \| \
9490 X"$as_dir" : 'X\(//\)$' \| \
9491 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
9492 echo X"$as_dir" |
9493 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9494 s//\1/
9497 /^X\(\/\/\)[^/].*/{
9498 s//\1/
9501 /^X\(\/\/\)$/{
9502 s//\1/
9505 /^X\(\/\).*/{
9506 s//\1/
9509 s/.*/./; q'`
9510 test -d "$as_dir" && break
9511 done
9512 test -z "$as_dirs" || eval "mkdir $as_dirs"
9513 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
9514 echo "$as_me: error: cannot create directory $as_dir" >&2;}
9515 { (exit 1); exit 1; }; }; }
9516 ac_builddir=.
9518 case "$ac_dir" in
9519 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
9521 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
9522 # A ".." for each directory in $ac_dir_suffix.
9523 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
9524 case $ac_top_builddir_sub in
9525 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
9526 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
9527 esac ;;
9528 esac
9529 ac_abs_top_builddir=$ac_pwd
9530 ac_abs_builddir=$ac_pwd$ac_dir_suffix
9531 # for backward compatibility:
9532 ac_top_builddir=$ac_top_build_prefix
9534 case $srcdir in
9535 .) # We are building in place.
9536 ac_srcdir=.
9537 ac_top_srcdir=$ac_top_builddir_sub
9538 ac_abs_top_srcdir=$ac_pwd ;;
9539 [\\/]* | ?:[\\/]* ) # Absolute name.
9540 ac_srcdir=$srcdir$ac_dir_suffix;
9541 ac_top_srcdir=$srcdir
9542 ac_abs_top_srcdir=$srcdir ;;
9543 *) # Relative name.
9544 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
9545 ac_top_srcdir=$ac_top_build_prefix$srcdir
9546 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
9547 esac
9548 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
9551 case $ac_mode in
9554 # CONFIG_FILE
9557 case $INSTALL in
9558 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
9559 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
9560 esac
9561 _ACEOF
9563 cat >>$CONFIG_STATUS <<\_ACEOF
9564 # If the template does not know about datarootdir, expand it.
9565 # FIXME: This hack should be removed a few years after 2.60.
9566 ac_datarootdir_hack=; ac_datarootdir_seen=
9568 case `sed -n '/datarootdir/ {
9572 /@datadir@/p
9573 /@docdir@/p
9574 /@infodir@/p
9575 /@localedir@/p
9576 /@mandir@/p
9577 ' $ac_file_inputs` in
9578 *datarootdir*) ac_datarootdir_seen=yes;;
9579 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
9580 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
9581 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
9582 _ACEOF
9583 cat >>$CONFIG_STATUS <<_ACEOF
9584 ac_datarootdir_hack='
9585 s&@datadir@&$datadir&g
9586 s&@docdir@&$docdir&g
9587 s&@infodir@&$infodir&g
9588 s&@localedir@&$localedir&g
9589 s&@mandir@&$mandir&g
9590 s&\\\${datarootdir}&$datarootdir&g' ;;
9591 esac
9592 _ACEOF
9594 # Neutralize VPATH when `$srcdir' = `.'.
9595 # Shell code in configure.ac might set extrasub.
9596 # FIXME: do we really want to maintain this feature?
9597 cat >>$CONFIG_STATUS <<_ACEOF
9598 sed "$ac_vpsub
9599 $extrasub
9600 _ACEOF
9601 cat >>$CONFIG_STATUS <<\_ACEOF
9603 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
9604 s&@configure_input@&$configure_input&;t t
9605 s&@top_builddir@&$ac_top_builddir_sub&;t t
9606 s&@srcdir@&$ac_srcdir&;t t
9607 s&@abs_srcdir@&$ac_abs_srcdir&;t t
9608 s&@top_srcdir@&$ac_top_srcdir&;t t
9609 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
9610 s&@builddir@&$ac_builddir&;t t
9611 s&@abs_builddir@&$ac_abs_builddir&;t t
9612 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
9613 s&@INSTALL@&$ac_INSTALL&;t t
9614 $ac_datarootdir_hack
9615 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
9617 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
9618 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
9619 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
9620 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
9621 which seems to be undefined. Please make sure it is defined." >&5
9622 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
9623 which seems to be undefined. Please make sure it is defined." >&2;}
9625 rm -f "$tmp/stdin"
9626 case $ac_file in
9627 -) cat "$tmp/out"; rm -f "$tmp/out";;
9628 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
9629 esac
9633 # CONFIG_HEADER
9635 _ACEOF
9637 # Transform confdefs.h into a sed script `conftest.defines', that
9638 # substitutes the proper values into config.h.in to produce config.h.
9639 rm -f conftest.defines conftest.tail
9640 # First, append a space to every undef/define line, to ease matching.
9641 echo 's/$/ /' >conftest.defines
9642 # Then, protect against being on the right side of a sed subst, or in
9643 # an unquoted here document, in config.status. If some macros were
9644 # called several times there might be several #defines for the same
9645 # symbol, which is useless. But do not sort them, since the last
9646 # AC_DEFINE must be honored.
9647 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
9648 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
9649 # NAME is the cpp macro being defined, VALUE is the value it is being given.
9650 # PARAMS is the parameter list in the macro definition--in most cases, it's
9651 # just an empty string.
9652 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
9653 ac_dB='\\)[ (].*,\\1define\\2'
9654 ac_dC=' '
9655 ac_dD=' ,'
9657 uniq confdefs.h |
9658 sed -n '
9659 t rset
9660 :rset
9661 s/^[ ]*#[ ]*define[ ][ ]*//
9662 t ok
9665 s/[\\&,]/\\&/g
9666 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
9667 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
9668 ' >>conftest.defines
9670 # Remove the space that was appended to ease matching.
9671 # Then replace #undef with comments. This is necessary, for
9672 # example, in the case of _POSIX_SOURCE, which is predefined and required
9673 # on some systems where configure will not decide to define it.
9674 # (The regexp can be short, since the line contains either #define or #undef.)
9675 echo 's/ $//
9676 s,^[ #]*u.*,/* & */,' >>conftest.defines
9678 # Break up conftest.defines:
9679 ac_max_sed_lines=50
9681 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
9682 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
9683 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
9684 # et cetera.
9685 ac_in='$ac_file_inputs'
9686 ac_out='"$tmp/out1"'
9687 ac_nxt='"$tmp/out2"'
9689 while :
9691 # Write a here document:
9692 cat >>$CONFIG_STATUS <<_ACEOF
9693 # First, check the format of the line:
9694 cat >"\$tmp/defines.sed" <<\\CEOF
9695 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
9696 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
9698 :def
9699 _ACEOF
9700 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
9701 echo 'CEOF
9702 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
9703 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
9704 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
9705 grep . conftest.tail >/dev/null || break
9706 rm -f conftest.defines
9707 mv conftest.tail conftest.defines
9708 done
9709 rm -f conftest.defines conftest.tail
9711 echo "ac_result=$ac_in" >>$CONFIG_STATUS
9712 cat >>$CONFIG_STATUS <<\_ACEOF
9713 if test x"$ac_file" != x-; then
9714 echo "/* $configure_input */" >"$tmp/config.h"
9715 cat "$ac_result" >>"$tmp/config.h"
9716 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
9717 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
9718 echo "$as_me: $ac_file is unchanged" >&6;}
9719 else
9720 rm -f $ac_file
9721 mv "$tmp/config.h" $ac_file
9723 else
9724 echo "/* $configure_input */"
9725 cat "$ac_result"
9727 rm -f "$tmp/out12"
9730 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
9731 echo "$as_me: executing $ac_file commands" >&6;}
9733 esac
9736 case $ac_file$ac_mode in
9737 "default":C)
9738 case $CONFIG_FILES in *config.make*)
9739 echo "$config_vars" >> config.make;;
9740 esac
9741 test -d bits || mkdir bits ;;
9743 esac
9744 done # for ac_tag
9747 { (exit 0); exit 0; }
9748 _ACEOF
9749 chmod +x $CONFIG_STATUS
9750 ac_clean_files=$ac_clean_files_save
9753 # configure is writing to config.log, and then calls config.status.
9754 # config.status does its own redirection, appending to config.log.
9755 # Unfortunately, on DOS this fails, as config.log is still kept open
9756 # by configure, so config.status won't be able to write to it; its
9757 # output is simply discarded. So we exec the FD to /dev/null,
9758 # effectively closing config.log, so it can be properly (re)opened and
9759 # appended to by config.status. When coming back to configure, we
9760 # need to make the FD available again.
9761 if test "$no_create" != yes; then
9762 ac_cs_success=:
9763 ac_config_status_args=
9764 test "$silent" = yes &&
9765 ac_config_status_args="$ac_config_status_args --quiet"
9766 exec 5>/dev/null
9767 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
9768 exec 5>>config.log
9769 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
9770 # would make configure fail if this is the last instruction.
9771 $ac_cs_success || { (exit 1); exit 1; }
9775 # CONFIG_SUBDIRS section.
9777 if test "$no_recursion" != yes; then
9779 # Remove --cache-file and --srcdir arguments so they do not pile up.
9780 ac_sub_configure_args=
9781 ac_prev=
9782 eval "set x $ac_configure_args"
9783 shift
9784 for ac_arg
9786 if test -n "$ac_prev"; then
9787 ac_prev=
9788 continue
9790 case $ac_arg in
9791 -cache-file | --cache-file | --cache-fil | --cache-fi \
9792 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
9793 ac_prev=cache_file ;;
9794 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
9795 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
9796 | --c=*)
9798 --config-cache | -C)
9800 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
9801 ac_prev=srcdir ;;
9802 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
9804 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
9805 ac_prev=prefix ;;
9806 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
9809 case $ac_arg in
9810 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
9811 esac
9812 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
9813 esac
9814 done
9816 # Always prepend --prefix to ensure using the same prefix
9817 # in subdir configurations.
9818 ac_arg="--prefix=$prefix"
9819 case $ac_arg in
9820 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
9821 esac
9822 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
9824 # Pass --silent
9825 if test "$silent" = yes; then
9826 ac_sub_configure_args="--silent $ac_sub_configure_args"
9829 ac_popdir=`pwd`
9830 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
9832 # Do not complain, so a configure script can configure whichever
9833 # parts of a large source tree are present.
9834 test -d "$srcdir/$ac_dir" || continue
9836 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
9837 echo "$as_me:$LINENO: $ac_msg" >&5
9838 echo "$ac_msg" >&6
9839 { as_dir="$ac_dir"
9840 case $as_dir in #(
9841 -*) as_dir=./$as_dir;;
9842 esac
9843 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
9844 as_dirs=
9845 while :; do
9846 case $as_dir in #(
9847 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
9848 *) as_qdir=$as_dir;;
9849 esac
9850 as_dirs="'$as_qdir' $as_dirs"
9851 as_dir=`$as_dirname -- "$as_dir" ||
9852 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9853 X"$as_dir" : 'X\(//\)[^/]' \| \
9854 X"$as_dir" : 'X\(//\)$' \| \
9855 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
9856 echo X"$as_dir" |
9857 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9858 s//\1/
9861 /^X\(\/\/\)[^/].*/{
9862 s//\1/
9865 /^X\(\/\/\)$/{
9866 s//\1/
9869 /^X\(\/\).*/{
9870 s//\1/
9873 s/.*/./; q'`
9874 test -d "$as_dir" && break
9875 done
9876 test -z "$as_dirs" || eval "mkdir $as_dirs"
9877 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
9878 echo "$as_me: error: cannot create directory $as_dir" >&2;}
9879 { (exit 1); exit 1; }; }; }
9880 ac_builddir=.
9882 case "$ac_dir" in
9883 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
9885 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
9886 # A ".." for each directory in $ac_dir_suffix.
9887 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
9888 case $ac_top_builddir_sub in
9889 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
9890 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
9891 esac ;;
9892 esac
9893 ac_abs_top_builddir=$ac_pwd
9894 ac_abs_builddir=$ac_pwd$ac_dir_suffix
9895 # for backward compatibility:
9896 ac_top_builddir=$ac_top_build_prefix
9898 case $srcdir in
9899 .) # We are building in place.
9900 ac_srcdir=.
9901 ac_top_srcdir=$ac_top_builddir_sub
9902 ac_abs_top_srcdir=$ac_pwd ;;
9903 [\\/]* | ?:[\\/]* ) # Absolute name.
9904 ac_srcdir=$srcdir$ac_dir_suffix;
9905 ac_top_srcdir=$srcdir
9906 ac_abs_top_srcdir=$srcdir ;;
9907 *) # Relative name.
9908 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
9909 ac_top_srcdir=$ac_top_build_prefix$srcdir
9910 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
9911 esac
9912 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
9915 cd "$ac_dir"
9917 # Check for guested configure; otherwise get Cygnus style configure.
9918 if test -f "$ac_srcdir/configure.gnu"; then
9919 ac_sub_configure=$ac_srcdir/configure.gnu
9920 elif test -f "$ac_srcdir/configure"; then
9921 ac_sub_configure=$ac_srcdir/configure
9922 elif test -f "$ac_srcdir/configure.in"; then
9923 # This should be Cygnus configure.
9924 ac_sub_configure=$ac_aux_dir/configure
9925 else
9926 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
9927 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
9928 ac_sub_configure=
9931 # The recursion is here.
9932 if test -n "$ac_sub_configure"; then
9933 # Make the cache file name correct relative to the subdirectory.
9934 case $cache_file in
9935 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
9936 *) # Relative name.
9937 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
9938 esac
9940 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
9941 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
9942 # The eval makes quoting arguments work.
9943 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
9944 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
9945 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
9946 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
9947 { (exit 1); exit 1; }; }
9950 cd "$ac_popdir"
9951 done