* sysdeps/mach/strerror_l.c: New file.
[glibc.git] / configure
bloba2a792c93fb03d2dade12f8ad6d84c7f4af34f3e
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 libc_cv_cpp_asm_debuginfo
752 use_ldconfig
753 ldd_rewrite_script
755 xcoff
756 static
757 shared
758 pic_default
759 profile
760 omitfp
761 bounded
762 static_nss
763 nopic_initfini
764 DEFINES
765 mach_interface_list
766 VERSION
767 RELEASE
768 LIBOBJS
769 LTLIBOBJS'
770 ac_subst_files=''
771 ac_precious_vars='build_alias
772 host_alias
773 target_alias
775 CFLAGS
776 LDFLAGS
777 LIBS
778 CPPFLAGS
781 CXXFLAGS
782 CCC'
783 ac_subdirs_all=''
785 # Initialize some variables set by options.
786 ac_init_help=
787 ac_init_version=false
788 # The variables have the same names as the options, with
789 # dashes changed to underlines.
790 cache_file=/dev/null
791 exec_prefix=NONE
792 no_create=
793 no_recursion=
794 prefix=NONE
795 program_prefix=NONE
796 program_suffix=NONE
797 program_transform_name=s,x,x,
798 silent=
799 site=
800 srcdir=
801 verbose=
802 x_includes=NONE
803 x_libraries=NONE
805 # Installation directory options.
806 # These are left unexpanded so users can "make install exec_prefix=/foo"
807 # and all the variables that are supposed to be based on exec_prefix
808 # by default will actually change.
809 # Use braces instead of parens because sh, perl, etc. also accept them.
810 # (The list follows the same order as the GNU Coding Standards.)
811 bindir='${exec_prefix}/bin'
812 sbindir='${exec_prefix}/sbin'
813 libexecdir='${exec_prefix}/libexec'
814 datarootdir='${prefix}/share'
815 datadir='${datarootdir}'
816 sysconfdir='${prefix}/etc'
817 sharedstatedir='${prefix}/com'
818 localstatedir='${prefix}/var'
819 includedir='${prefix}/include'
820 oldincludedir='/usr/include'
821 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
822 infodir='${datarootdir}/info'
823 htmldir='${docdir}'
824 dvidir='${docdir}'
825 pdfdir='${docdir}'
826 psdir='${docdir}'
827 libdir='${exec_prefix}/lib'
828 localedir='${datarootdir}/locale'
829 mandir='${datarootdir}/man'
831 ac_prev=
832 ac_dashdash=
833 for ac_option
835 # If the previous option needs an argument, assign it.
836 if test -n "$ac_prev"; then
837 eval $ac_prev=\$ac_option
838 ac_prev=
839 continue
842 case $ac_option in
843 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
844 *) ac_optarg=yes ;;
845 esac
847 # Accept the important Cygnus configure options, so we can diagnose typos.
849 case $ac_dashdash$ac_option in
851 ac_dashdash=yes ;;
853 -bindir | --bindir | --bindi | --bind | --bin | --bi)
854 ac_prev=bindir ;;
855 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
856 bindir=$ac_optarg ;;
858 -build | --build | --buil | --bui | --bu)
859 ac_prev=build_alias ;;
860 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
861 build_alias=$ac_optarg ;;
863 -cache-file | --cache-file | --cache-fil | --cache-fi \
864 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
865 ac_prev=cache_file ;;
866 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
867 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
868 cache_file=$ac_optarg ;;
870 --config-cache | -C)
871 cache_file=config.cache ;;
873 -datadir | --datadir | --datadi | --datad)
874 ac_prev=datadir ;;
875 -datadir=* | --datadir=* | --datadi=* | --datad=*)
876 datadir=$ac_optarg ;;
878 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
879 | --dataroo | --dataro | --datar)
880 ac_prev=datarootdir ;;
881 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
882 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
883 datarootdir=$ac_optarg ;;
885 -disable-* | --disable-*)
886 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
887 # Reject names that are not valid shell variable names.
888 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
889 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
890 { (exit 1); exit 1; }; }
891 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
892 eval enable_$ac_feature=no ;;
894 -docdir | --docdir | --docdi | --doc | --do)
895 ac_prev=docdir ;;
896 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
897 docdir=$ac_optarg ;;
899 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
900 ac_prev=dvidir ;;
901 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
902 dvidir=$ac_optarg ;;
904 -enable-* | --enable-*)
905 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
906 # Reject names that are not valid shell variable names.
907 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
908 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
909 { (exit 1); exit 1; }; }
910 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
911 eval enable_$ac_feature=\$ac_optarg ;;
913 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
914 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
915 | --exec | --exe | --ex)
916 ac_prev=exec_prefix ;;
917 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
918 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
919 | --exec=* | --exe=* | --ex=*)
920 exec_prefix=$ac_optarg ;;
922 -gas | --gas | --ga | --g)
923 # Obsolete; use --with-gas.
924 with_gas=yes ;;
926 -help | --help | --hel | --he | -h)
927 ac_init_help=long ;;
928 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
929 ac_init_help=recursive ;;
930 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
931 ac_init_help=short ;;
933 -host | --host | --hos | --ho)
934 ac_prev=host_alias ;;
935 -host=* | --host=* | --hos=* | --ho=*)
936 host_alias=$ac_optarg ;;
938 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
939 ac_prev=htmldir ;;
940 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
941 | --ht=*)
942 htmldir=$ac_optarg ;;
944 -includedir | --includedir | --includedi | --included | --include \
945 | --includ | --inclu | --incl | --inc)
946 ac_prev=includedir ;;
947 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
948 | --includ=* | --inclu=* | --incl=* | --inc=*)
949 includedir=$ac_optarg ;;
951 -infodir | --infodir | --infodi | --infod | --info | --inf)
952 ac_prev=infodir ;;
953 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
954 infodir=$ac_optarg ;;
956 -libdir | --libdir | --libdi | --libd)
957 ac_prev=libdir ;;
958 -libdir=* | --libdir=* | --libdi=* | --libd=*)
959 libdir=$ac_optarg ;;
961 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
962 | --libexe | --libex | --libe)
963 ac_prev=libexecdir ;;
964 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
965 | --libexe=* | --libex=* | --libe=*)
966 libexecdir=$ac_optarg ;;
968 -localedir | --localedir | --localedi | --localed | --locale)
969 ac_prev=localedir ;;
970 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
971 localedir=$ac_optarg ;;
973 -localstatedir | --localstatedir | --localstatedi | --localstated \
974 | --localstate | --localstat | --localsta | --localst | --locals)
975 ac_prev=localstatedir ;;
976 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
977 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
978 localstatedir=$ac_optarg ;;
980 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
981 ac_prev=mandir ;;
982 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
983 mandir=$ac_optarg ;;
985 -nfp | --nfp | --nf)
986 # Obsolete; use --without-fp.
987 with_fp=no ;;
989 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
990 | --no-cr | --no-c | -n)
991 no_create=yes ;;
993 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
994 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
995 no_recursion=yes ;;
997 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
998 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
999 | --oldin | --oldi | --old | --ol | --o)
1000 ac_prev=oldincludedir ;;
1001 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1002 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1003 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1004 oldincludedir=$ac_optarg ;;
1006 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1007 ac_prev=prefix ;;
1008 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1009 prefix=$ac_optarg ;;
1011 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1012 | --program-pre | --program-pr | --program-p)
1013 ac_prev=program_prefix ;;
1014 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1015 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1016 program_prefix=$ac_optarg ;;
1018 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1019 | --program-suf | --program-su | --program-s)
1020 ac_prev=program_suffix ;;
1021 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1022 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1023 program_suffix=$ac_optarg ;;
1025 -program-transform-name | --program-transform-name \
1026 | --program-transform-nam | --program-transform-na \
1027 | --program-transform-n | --program-transform- \
1028 | --program-transform | --program-transfor \
1029 | --program-transfo | --program-transf \
1030 | --program-trans | --program-tran \
1031 | --progr-tra | --program-tr | --program-t)
1032 ac_prev=program_transform_name ;;
1033 -program-transform-name=* | --program-transform-name=* \
1034 | --program-transform-nam=* | --program-transform-na=* \
1035 | --program-transform-n=* | --program-transform-=* \
1036 | --program-transform=* | --program-transfor=* \
1037 | --program-transfo=* | --program-transf=* \
1038 | --program-trans=* | --program-tran=* \
1039 | --progr-tra=* | --program-tr=* | --program-t=*)
1040 program_transform_name=$ac_optarg ;;
1042 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1043 ac_prev=pdfdir ;;
1044 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1045 pdfdir=$ac_optarg ;;
1047 -psdir | --psdir | --psdi | --psd | --ps)
1048 ac_prev=psdir ;;
1049 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1050 psdir=$ac_optarg ;;
1052 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1053 | -silent | --silent | --silen | --sile | --sil)
1054 silent=yes ;;
1056 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1057 ac_prev=sbindir ;;
1058 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1059 | --sbi=* | --sb=*)
1060 sbindir=$ac_optarg ;;
1062 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1063 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1064 | --sharedst | --shareds | --shared | --share | --shar \
1065 | --sha | --sh)
1066 ac_prev=sharedstatedir ;;
1067 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1068 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1069 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1070 | --sha=* | --sh=*)
1071 sharedstatedir=$ac_optarg ;;
1073 -site | --site | --sit)
1074 ac_prev=site ;;
1075 -site=* | --site=* | --sit=*)
1076 site=$ac_optarg ;;
1078 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1079 ac_prev=srcdir ;;
1080 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1081 srcdir=$ac_optarg ;;
1083 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1084 | --syscon | --sysco | --sysc | --sys | --sy)
1085 ac_prev=sysconfdir ;;
1086 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1087 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1088 sysconfdir=$ac_optarg ;;
1090 -target | --target | --targe | --targ | --tar | --ta | --t)
1091 ac_prev=target_alias ;;
1092 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1093 target_alias=$ac_optarg ;;
1095 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1096 verbose=yes ;;
1098 -version | --version | --versio | --versi | --vers | -V)
1099 ac_init_version=: ;;
1101 -with-* | --with-*)
1102 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1103 # Reject names that are not valid shell variable names.
1104 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1105 { echo "$as_me: error: invalid package name: $ac_package" >&2
1106 { (exit 1); exit 1; }; }
1107 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1108 eval with_$ac_package=\$ac_optarg ;;
1110 -without-* | --without-*)
1111 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1112 # Reject names that are not valid shell variable names.
1113 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1114 { echo "$as_me: error: invalid package name: $ac_package" >&2
1115 { (exit 1); exit 1; }; }
1116 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1117 eval with_$ac_package=no ;;
1119 --x)
1120 # Obsolete; use --with-x.
1121 with_x=yes ;;
1123 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1124 | --x-incl | --x-inc | --x-in | --x-i)
1125 ac_prev=x_includes ;;
1126 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1127 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1128 x_includes=$ac_optarg ;;
1130 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1131 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1132 ac_prev=x_libraries ;;
1133 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1134 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1135 x_libraries=$ac_optarg ;;
1137 -*) { echo "$as_me: error: unrecognized option: $ac_option
1138 Try \`$0 --help' for more information." >&2
1139 { (exit 1); exit 1; }; }
1142 *=*)
1143 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1144 # Reject names that are not valid shell variable names.
1145 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1146 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1147 { (exit 1); exit 1; }; }
1148 eval $ac_envvar=\$ac_optarg
1149 export $ac_envvar ;;
1152 # FIXME: should be removed in autoconf 3.0.
1153 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1154 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1155 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1156 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1159 esac
1160 done
1162 if test -n "$ac_prev"; then
1163 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1164 { echo "$as_me: error: missing argument to $ac_option" >&2
1165 { (exit 1); exit 1; }; }
1168 # Be sure to have absolute directory names.
1169 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1170 datadir sysconfdir sharedstatedir localstatedir includedir \
1171 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1172 libdir localedir mandir
1174 eval ac_val=\$$ac_var
1175 case $ac_val in
1176 [\\/$]* | ?:[\\/]* ) continue;;
1177 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1178 esac
1179 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1180 { (exit 1); exit 1; }; }
1181 done
1183 # There might be people who depend on the old broken behavior: `$host'
1184 # used to hold the argument of --host etc.
1185 # FIXME: To remove some day.
1186 build=$build_alias
1187 host=$host_alias
1188 target=$target_alias
1190 # FIXME: To remove some day.
1191 if test "x$host_alias" != x; then
1192 if test "x$build_alias" = x; then
1193 cross_compiling=maybe
1194 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1195 If a cross compiler is detected then cross compile mode will be used." >&2
1196 elif test "x$build_alias" != "x$host_alias"; then
1197 cross_compiling=yes
1201 ac_tool_prefix=
1202 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1204 test "$silent" = yes && exec 6>/dev/null
1207 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1208 ac_ls_di=`ls -di .` &&
1209 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1210 { echo "$as_me: error: Working directory cannot be determined" >&2
1211 { (exit 1); exit 1; }; }
1212 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1213 { echo "$as_me: error: pwd does not report name of working directory" >&2
1214 { (exit 1); exit 1; }; }
1217 # Find the source files, if location was not specified.
1218 if test -z "$srcdir"; then
1219 ac_srcdir_defaulted=yes
1220 # Try the directory containing this script, then the parent directory.
1221 ac_confdir=`$as_dirname -- "$0" ||
1222 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1223 X"$0" : 'X\(//\)[^/]' \| \
1224 X"$0" : 'X\(//\)$' \| \
1225 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1226 echo X"$0" |
1227 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1228 s//\1/
1231 /^X\(\/\/\)[^/].*/{
1232 s//\1/
1235 /^X\(\/\/\)$/{
1236 s//\1/
1239 /^X\(\/\).*/{
1240 s//\1/
1243 s/.*/./; q'`
1244 srcdir=$ac_confdir
1245 if test ! -r "$srcdir/$ac_unique_file"; then
1246 srcdir=..
1248 else
1249 ac_srcdir_defaulted=no
1251 if test ! -r "$srcdir/$ac_unique_file"; then
1252 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1253 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1254 { (exit 1); exit 1; }; }
1256 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1257 ac_abs_confdir=`(
1258 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1259 { (exit 1); exit 1; }; }
1260 pwd)`
1261 # When building in place, set srcdir=.
1262 if test "$ac_abs_confdir" = "$ac_pwd"; then
1263 srcdir=.
1265 # Remove unnecessary trailing slashes from srcdir.
1266 # Double slashes in file names in object file debugging info
1267 # mess up M-x gdb in Emacs.
1268 case $srcdir in
1269 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1270 esac
1271 for ac_var in $ac_precious_vars; do
1272 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1273 eval ac_env_${ac_var}_value=\$${ac_var}
1274 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1275 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1276 done
1279 # Report the --help message.
1281 if test "$ac_init_help" = "long"; then
1282 # Omit some internal or obsolete options to make the list less imposing.
1283 # This message is too long to be a string in the A/UX 3.1 sh.
1284 cat <<_ACEOF
1285 \`configure' configures GNU C Library (see version.h) to adapt to many kinds of systems.
1287 Usage: $0 [OPTION]... [VAR=VALUE]...
1289 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1290 VAR=VALUE. See below for descriptions of some of the useful variables.
1292 Defaults for the options are specified in brackets.
1294 Configuration:
1295 -h, --help display this help and exit
1296 --help=short display options specific to this package
1297 --help=recursive display the short help of all the included packages
1298 -V, --version display version information and exit
1299 -q, --quiet, --silent do not print \`checking...' messages
1300 --cache-file=FILE cache test results in FILE [disabled]
1301 -C, --config-cache alias for \`--cache-file=config.cache'
1302 -n, --no-create do not create output files
1303 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1305 Installation directories:
1306 --prefix=PREFIX install architecture-independent files in PREFIX
1307 [$ac_default_prefix]
1308 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1309 [PREFIX]
1311 By default, \`make install' will install all the files in
1312 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1313 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1314 for instance \`--prefix=\$HOME'.
1316 For better control, use the options below.
1318 Fine tuning of the installation directories:
1319 --bindir=DIR user executables [EPREFIX/bin]
1320 --sbindir=DIR system admin executables [EPREFIX/sbin]
1321 --libexecdir=DIR program executables [EPREFIX/libexec]
1322 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1323 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1324 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1325 --libdir=DIR object code libraries [EPREFIX/lib]
1326 --includedir=DIR C header files [PREFIX/include]
1327 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1328 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1329 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1330 --infodir=DIR info documentation [DATAROOTDIR/info]
1331 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1332 --mandir=DIR man documentation [DATAROOTDIR/man]
1333 --docdir=DIR documentation root [DATAROOTDIR/doc/c-library]
1334 --htmldir=DIR html documentation [DOCDIR]
1335 --dvidir=DIR dvi documentation [DOCDIR]
1336 --pdfdir=DIR pdf documentation [DOCDIR]
1337 --psdir=DIR ps documentation [DOCDIR]
1338 _ACEOF
1340 cat <<\_ACEOF
1342 System types:
1343 --build=BUILD configure for building on BUILD [guessed]
1344 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1345 _ACEOF
1348 if test -n "$ac_init_help"; then
1349 case $ac_init_help in
1350 short | recursive ) echo "Configuration of GNU C Library (see version.h):";;
1351 esac
1352 cat <<\_ACEOF
1354 Optional Features:
1355 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1356 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1357 --disable-sanity-checks really do not use threads (should not be used except
1358 in special situations) [default=yes]
1359 --enable-check-abi do "make check-abi" in "make check" (no/warn/yes)
1360 [default=no]
1361 --enable-shared build shared library [default=yes if GNU ld & ELF]
1362 --enable-profile build profiled library [default=no]
1363 --enable-omitfp build undebuggable optimized library [default=no]
1364 --enable-bounded build with runtime bounds checking [default=no]
1365 --disable-versioning do not include versioning information in the library
1366 objects [default=yes if supported]
1367 --enable-oldest-abi=ABI configure the oldest ABI supported [e.g. 2.2]
1368 [default=glibc default]
1369 --enable-stackguard-randomization
1370 initialize __stack_chk_guard canary with a random
1371 number at program start
1372 --enable-add-ons[=DIRS...]
1373 configure and build add-ons in DIR1,DIR2,... search
1374 for add-ons if no parameter given
1375 --disable-hidden-plt do not hide internal function calls to avoid PLT
1376 --enable-bind-now disable lazy relocations in DSOs
1377 --enable-static-nss build static NSS modules [default=no]
1378 --disable-force-install don't force installation of files from this package,
1379 even if they are older than the installed files
1380 --enable-kernel=VERSION compile for compatibility with kernel not older than
1381 VERSION
1382 --enable-all-warnings enable all useful warnings gcc can issue
1384 Optional Packages:
1385 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1386 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1387 --with-gd=DIR find libgd include dir and library with prefix DIR
1388 --with-gd-include=DIR find libgd include files in DIR
1389 --with-gd-lib=DIR find libgd library files in DIR
1390 --with-fp if using floating-point hardware [default=yes]
1391 --with-binutils=PATH specify location of binutils (as and ld)
1392 --with-elf if using the ELF object format
1393 --with-selinux if building with SELinux support
1394 --with-xcoff if using the XCOFF object format
1395 --without-cvs if CVS should not be used
1396 --with-headers=PATH location of system headers to use (for example
1397 /usr/src/linux/include) [default=compiler default]
1398 --with-tls enable support for TLS
1399 --without-__thread do not use TLS features even when supporting them
1400 --with-cpu=CPU select code for CPU variant
1402 Some influential environment variables:
1403 CC C compiler command
1404 CFLAGS C compiler flags
1405 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1406 nonstandard directory <lib dir>
1407 LIBS libraries to pass to the linker, e.g. -l<library>
1408 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1409 you have headers in a nonstandard directory <include dir>
1410 CPP C preprocessor
1411 CXX C++ compiler command
1412 CXXFLAGS C++ compiler flags
1414 Use these variables to override the choices made by `configure' or to help
1415 it to find libraries and programs with nonstandard names/locations.
1417 Report bugs to <glibc>.
1418 _ACEOF
1419 ac_status=$?
1422 if test "$ac_init_help" = "recursive"; then
1423 # If there are subdirs, report their specific --help.
1424 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1425 test -d "$ac_dir" || continue
1426 ac_builddir=.
1428 case "$ac_dir" in
1429 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1431 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1432 # A ".." for each directory in $ac_dir_suffix.
1433 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1434 case $ac_top_builddir_sub in
1435 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1436 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1437 esac ;;
1438 esac
1439 ac_abs_top_builddir=$ac_pwd
1440 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1441 # for backward compatibility:
1442 ac_top_builddir=$ac_top_build_prefix
1444 case $srcdir in
1445 .) # We are building in place.
1446 ac_srcdir=.
1447 ac_top_srcdir=$ac_top_builddir_sub
1448 ac_abs_top_srcdir=$ac_pwd ;;
1449 [\\/]* | ?:[\\/]* ) # Absolute name.
1450 ac_srcdir=$srcdir$ac_dir_suffix;
1451 ac_top_srcdir=$srcdir
1452 ac_abs_top_srcdir=$srcdir ;;
1453 *) # Relative name.
1454 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1455 ac_top_srcdir=$ac_top_build_prefix$srcdir
1456 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1457 esac
1458 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1460 cd "$ac_dir" || { ac_status=$?; continue; }
1461 # Check for guested configure.
1462 if test -f "$ac_srcdir/configure.gnu"; then
1463 echo &&
1464 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1465 elif test -f "$ac_srcdir/configure"; then
1466 echo &&
1467 $SHELL "$ac_srcdir/configure" --help=recursive
1468 else
1469 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1470 fi || ac_status=$?
1471 cd "$ac_pwd" || { ac_status=$?; break; }
1472 done
1475 test -n "$ac_init_help" && exit $ac_status
1476 if $ac_init_version; then
1477 cat <<\_ACEOF
1478 GNU C Library configure (see version.h)
1479 generated by GNU Autoconf 2.61
1481 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1482 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1483 This configure script is free software; the Free Software Foundation
1484 gives unlimited permission to copy, distribute and modify it.
1485 _ACEOF
1486 exit
1488 cat >config.log <<_ACEOF
1489 This file contains any messages produced by compilers while
1490 running configure, to aid debugging if configure makes a mistake.
1492 It was created by GNU C Library $as_me (see version.h), which was
1493 generated by GNU Autoconf 2.61. Invocation command line was
1495 $ $0 $@
1497 _ACEOF
1498 exec 5>>config.log
1500 cat <<_ASUNAME
1501 ## --------- ##
1502 ## Platform. ##
1503 ## --------- ##
1505 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1506 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1507 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1508 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1509 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1511 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1512 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1514 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1515 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1516 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1517 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1518 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1519 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1520 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1522 _ASUNAME
1524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1525 for as_dir in $PATH
1527 IFS=$as_save_IFS
1528 test -z "$as_dir" && as_dir=.
1529 echo "PATH: $as_dir"
1530 done
1531 IFS=$as_save_IFS
1533 } >&5
1535 cat >&5 <<_ACEOF
1538 ## ----------- ##
1539 ## Core tests. ##
1540 ## ----------- ##
1542 _ACEOF
1545 # Keep a trace of the command line.
1546 # Strip out --no-create and --no-recursion so they do not pile up.
1547 # Strip out --silent because we don't want to record it for future runs.
1548 # Also quote any args containing shell meta-characters.
1549 # Make two passes to allow for proper duplicate-argument suppression.
1550 ac_configure_args=
1551 ac_configure_args0=
1552 ac_configure_args1=
1553 ac_must_keep_next=false
1554 for ac_pass in 1 2
1556 for ac_arg
1558 case $ac_arg in
1559 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1560 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1561 | -silent | --silent | --silen | --sile | --sil)
1562 continue ;;
1563 *\'*)
1564 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1565 esac
1566 case $ac_pass in
1567 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1569 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1570 if test $ac_must_keep_next = true; then
1571 ac_must_keep_next=false # Got value, back to normal.
1572 else
1573 case $ac_arg in
1574 *=* | --config-cache | -C | -disable-* | --disable-* \
1575 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1576 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1577 | -with-* | --with-* | -without-* | --without-* | --x)
1578 case "$ac_configure_args0 " in
1579 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1580 esac
1582 -* ) ac_must_keep_next=true ;;
1583 esac
1585 ac_configure_args="$ac_configure_args '$ac_arg'"
1587 esac
1588 done
1589 done
1590 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1591 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1593 # When interrupted or exit'd, cleanup temporary files, and complete
1594 # config.log. We remove comments because anyway the quotes in there
1595 # would cause problems or look ugly.
1596 # WARNING: Use '\'' to represent an apostrophe within the trap.
1597 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1598 trap 'exit_status=$?
1599 # Save into config.log some information that might help in debugging.
1601 echo
1603 cat <<\_ASBOX
1604 ## ---------------- ##
1605 ## Cache variables. ##
1606 ## ---------------- ##
1607 _ASBOX
1608 echo
1609 # The following way of writing the cache mishandles newlines in values,
1611 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1612 eval ac_val=\$$ac_var
1613 case $ac_val in #(
1614 *${as_nl}*)
1615 case $ac_var in #(
1616 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1617 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1618 esac
1619 case $ac_var in #(
1620 _ | IFS | as_nl) ;; #(
1621 *) $as_unset $ac_var ;;
1622 esac ;;
1623 esac
1624 done
1625 (set) 2>&1 |
1626 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1627 *${as_nl}ac_space=\ *)
1628 sed -n \
1629 "s/'\''/'\''\\\\'\'''\''/g;
1630 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1631 ;; #(
1633 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1635 esac |
1636 sort
1638 echo
1640 cat <<\_ASBOX
1641 ## ----------------- ##
1642 ## Output variables. ##
1643 ## ----------------- ##
1644 _ASBOX
1645 echo
1646 for ac_var in $ac_subst_vars
1648 eval ac_val=\$$ac_var
1649 case $ac_val in
1650 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1651 esac
1652 echo "$ac_var='\''$ac_val'\''"
1653 done | sort
1654 echo
1656 if test -n "$ac_subst_files"; then
1657 cat <<\_ASBOX
1658 ## ------------------- ##
1659 ## File substitutions. ##
1660 ## ------------------- ##
1661 _ASBOX
1662 echo
1663 for ac_var in $ac_subst_files
1665 eval ac_val=\$$ac_var
1666 case $ac_val in
1667 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1668 esac
1669 echo "$ac_var='\''$ac_val'\''"
1670 done | sort
1671 echo
1674 if test -s confdefs.h; then
1675 cat <<\_ASBOX
1676 ## ----------- ##
1677 ## confdefs.h. ##
1678 ## ----------- ##
1679 _ASBOX
1680 echo
1681 cat confdefs.h
1682 echo
1684 test "$ac_signal" != 0 &&
1685 echo "$as_me: caught signal $ac_signal"
1686 echo "$as_me: exit $exit_status"
1687 } >&5
1688 rm -f core *.core core.conftest.* &&
1689 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1690 exit $exit_status
1692 for ac_signal in 1 2 13 15; do
1693 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1694 done
1695 ac_signal=0
1697 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1698 rm -f -r conftest* confdefs.h
1700 # Predefined preprocessor variables.
1702 cat >>confdefs.h <<_ACEOF
1703 #define PACKAGE_NAME "$PACKAGE_NAME"
1704 _ACEOF
1707 cat >>confdefs.h <<_ACEOF
1708 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1709 _ACEOF
1712 cat >>confdefs.h <<_ACEOF
1713 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1714 _ACEOF
1717 cat >>confdefs.h <<_ACEOF
1718 #define PACKAGE_STRING "$PACKAGE_STRING"
1719 _ACEOF
1722 cat >>confdefs.h <<_ACEOF
1723 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1724 _ACEOF
1727 # Let the site file select an alternate cache file if it wants to.
1728 # Prefer explicitly selected file to automatically selected ones.
1729 if test -n "$CONFIG_SITE"; then
1730 set x "$CONFIG_SITE"
1731 elif test "x$prefix" != xNONE; then
1732 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1733 else
1734 set x "$ac_default_prefix/share/config.site" \
1735 "$ac_default_prefix/etc/config.site"
1737 shift
1738 for ac_site_file
1740 if test -r "$ac_site_file"; then
1741 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1742 echo "$as_me: loading site script $ac_site_file" >&6;}
1743 sed 's/^/| /' "$ac_site_file" >&5
1744 . "$ac_site_file"
1746 done
1748 if test -r "$cache_file"; then
1749 # Some versions of bash will fail to source /dev/null (special
1750 # files actually), so we avoid doing that.
1751 if test -f "$cache_file"; then
1752 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1753 echo "$as_me: loading cache $cache_file" >&6;}
1754 case $cache_file in
1755 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1756 *) . "./$cache_file";;
1757 esac
1759 else
1760 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1761 echo "$as_me: creating cache $cache_file" >&6;}
1762 >$cache_file
1765 # Check that the precious variables saved in the cache have kept the same
1766 # value.
1767 ac_cache_corrupted=false
1768 for ac_var in $ac_precious_vars; do
1769 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1770 eval ac_new_set=\$ac_env_${ac_var}_set
1771 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1772 eval ac_new_val=\$ac_env_${ac_var}_value
1773 case $ac_old_set,$ac_new_set in
1774 set,)
1775 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1776 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1777 ac_cache_corrupted=: ;;
1778 ,set)
1779 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1780 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1781 ac_cache_corrupted=: ;;
1782 ,);;
1784 if test "x$ac_old_val" != "x$ac_new_val"; then
1785 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1786 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1787 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1788 echo "$as_me: former value: $ac_old_val" >&2;}
1789 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1790 echo "$as_me: current value: $ac_new_val" >&2;}
1791 ac_cache_corrupted=:
1792 fi;;
1793 esac
1794 # Pass precious variables to config.status.
1795 if test "$ac_new_set" = set; then
1796 case $ac_new_val in
1797 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1798 *) ac_arg=$ac_var=$ac_new_val ;;
1799 esac
1800 case " $ac_configure_args " in
1801 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1802 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1803 esac
1805 done
1806 if $ac_cache_corrupted; then
1807 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1808 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1809 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1810 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1811 { (exit 1); exit 1; }; }
1838 ac_ext=c
1839 ac_cpp='$CPP $CPPFLAGS'
1840 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1841 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1842 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1846 ac_config_headers="$ac_config_headers config.h"
1848 ac_aux_dir=
1849 for ac_dir in scripts "$srcdir"/scripts; do
1850 if test -f "$ac_dir/install-sh"; then
1851 ac_aux_dir=$ac_dir
1852 ac_install_sh="$ac_aux_dir/install-sh -c"
1853 break
1854 elif test -f "$ac_dir/install.sh"; then
1855 ac_aux_dir=$ac_dir
1856 ac_install_sh="$ac_aux_dir/install.sh -c"
1857 break
1858 elif test -f "$ac_dir/shtool"; then
1859 ac_aux_dir=$ac_dir
1860 ac_install_sh="$ac_aux_dir/shtool install -c"
1861 break
1863 done
1864 if test -z "$ac_aux_dir"; then
1865 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in scripts \"$srcdir\"/scripts" >&5
1866 echo "$as_me: error: cannot find install-sh or install.sh in scripts \"$srcdir\"/scripts" >&2;}
1867 { (exit 1); exit 1; }; }
1870 # These three variables are undocumented and unsupported,
1871 # and are intended to be withdrawn in a future Autoconf release.
1872 # They can cause serious problems if a builder's source tree is in a directory
1873 # whose full name contains unusual characters.
1874 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1875 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1876 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1880 if test "`cd $srcdir; /bin/pwd`" = "`/bin/pwd`"; then
1881 { { echo "$as_me:$LINENO: error: you must configure in a separate build directory" >&5
1882 echo "$as_me: error: you must configure in a separate build directory" >&2;}
1883 { (exit 1); exit 1; }; }
1886 # This will get text that should go into config.make.
1887 config_vars=
1889 # Check for a --with-gd argument and set libgd-LDFLAGS in config.make.
1891 # Check whether --with-gd was given.
1892 if test "${with_gd+set}" = set; then
1893 withval=$with_gd; case "$with_gd" in
1894 yes|''|no) ;;
1895 *) libgd_include="-I$withval/include"
1896 libgd_ldflags="-L$withval/lib" ;;
1897 esac
1902 # Check whether --with-gd-include was given.
1903 if test "${with_gd_include+set}" = set; then
1904 withval=$with_gd_include; case "$with_gd_include" in
1905 ''|no) ;;
1906 *) libgd_include="-I$withval" ;;
1907 esac
1912 # Check whether --with-gd-lib was given.
1913 if test "${with_gd_lib+set}" = set; then
1914 withval=$with_gd_lib; case "$with_gd_lib" in
1915 ''|no) ;;
1916 *) libgd_ldflags="-L$withval" ;;
1917 esac
1922 if test -n "$libgd_include"; then
1923 config_vars="$config_vars
1924 CFLAGS-memusagestat.c = $libgd_include"
1926 if test -n "$libgd_ldflags"; then
1927 config_vars="$config_vars
1928 libgd-LDFLAGS = $libgd_ldflags"
1932 # Check whether --with-fp was given.
1933 if test "${with_fp+set}" = set; then
1934 withval=$with_fp; with_fp=$withval
1935 else
1936 with_fp=yes
1941 # Check whether --with-binutils was given.
1942 if test "${with_binutils+set}" = set; then
1943 withval=$with_binutils; path_binutils=$withval
1944 else
1945 path_binutils=''
1949 # Check whether --with-elf was given.
1950 if test "${with_elf+set}" = set; then
1951 withval=$with_elf; elf=$withval
1952 else
1953 elf=no
1957 # Check whether --with-selinux was given.
1958 if test "${with_selinux+set}" = set; then
1959 withval=$with_selinux; with_selinux=$withval
1960 else
1961 with_selinux=auto
1965 # Check whether --with-xcoff was given.
1966 if test "${with_xcoff+set}" = set; then
1967 withval=$with_xcoff; xcoff=$withval
1968 else
1969 xcoff=no
1973 # Check whether --with-cvs was given.
1974 if test "${with_cvs+set}" = set; then
1975 withval=$with_cvs; with_cvs=$withval
1976 else
1977 with_cvs=yes
1980 if test "$with_cvs" = yes; then
1981 if test -d $srcdir/CVS && grep :pserver: $srcdir/CVS/Root > /dev/null
1982 then
1983 with_cvs=no
1989 # Check whether --with-headers was given.
1990 if test "${with_headers+set}" = set; then
1991 withval=$with_headers; sysheaders=$withval
1992 else
1993 sysheaders=''
1997 # Check whether --enable-sanity-checks was given.
1998 if test "${enable_sanity_checks+set}" = set; then
1999 enableval=$enable_sanity_checks; enable_sanity=$enableval
2000 else
2001 enable_sanity=yes
2006 # Check whether --enable-check-abi was given.
2007 if test "${enable_check_abi+set}" = set; then
2008 enableval=$enable_check_abi; enable_check_abi=$enableval
2009 else
2010 enable_check_abi=no
2014 static=yes
2015 # Check whether --enable-shared was given.
2016 if test "${enable_shared+set}" = set; then
2017 enableval=$enable_shared; shared=$enableval
2018 else
2019 shared=default
2022 # Check whether --enable-profile was given.
2023 if test "${enable_profile+set}" = set; then
2024 enableval=$enable_profile; profile=$enableval
2025 else
2026 profile=no
2029 # Check whether --enable-omitfp was given.
2030 if test "${enable_omitfp+set}" = set; then
2031 enableval=$enable_omitfp; omitfp=$enableval
2032 else
2033 omitfp=no
2036 # Check whether --enable-bounded was given.
2037 if test "${enable_bounded+set}" = set; then
2038 enableval=$enable_bounded; bounded=$enableval
2039 else
2040 bounded=no
2043 # Check whether --enable-versioning was given.
2044 if test "${enable_versioning+set}" = set; then
2045 enableval=$enable_versioning; enable_versioning=$enableval
2046 else
2047 enable_versioning=yes
2051 # Check whether --enable-oldest-abi was given.
2052 if test "${enable_oldest_abi+set}" = set; then
2053 enableval=$enable_oldest_abi; oldest_abi=$enableval
2054 else
2055 oldest_abi=no
2058 if test "$oldest_abi" = yes || test "$oldest_abi" = no; then
2059 oldest_abi=default
2060 else
2061 cat >>confdefs.h <<_ACEOF
2062 #define GLIBC_OLDEST_ABI "$oldest_abi"
2063 _ACEOF
2068 # Check whether --enable-stackguard-randomization was given.
2069 if test "${enable_stackguard_randomization+set}" = set; then
2070 enableval=$enable_stackguard_randomization; enable_stackguard_randomize=$enableval
2071 else
2072 enable_stackguard_randomize=no
2075 if test "$enable_stackguard_randomize" = yes; then
2076 cat >>confdefs.h <<\_ACEOF
2077 #define ENABLE_STACKGUARD_RANDOMIZE 1
2078 _ACEOF
2082 # Check whether --enable-add-ons was given.
2083 if test "${enable_add_ons+set}" = set; then
2084 enableval=$enable_add_ons;
2085 else
2086 enable_add_ons=yes
2091 # Check whether --with-tls was given.
2092 if test "${with_tls+set}" = set; then
2093 withval=$with_tls; usetls=$withval
2094 else
2095 usetls=yes
2100 # Check whether --with-__thread was given.
2101 if test "${with___thread+set}" = set; then
2102 withval=$with___thread; use__thread=$withval
2103 else
2104 use__thread=yes
2108 # Check whether --enable-hidden-plt was given.
2109 if test "${enable_hidden_plt+set}" = set; then
2110 enableval=$enable_hidden_plt; hidden=$enableval
2111 else
2112 hidden=yes
2115 if test "x$hidden" = xno; then
2116 cat >>confdefs.h <<\_ACEOF
2117 #define NO_HIDDEN 1
2118 _ACEOF
2122 # Check whether --enable-bind-now was given.
2123 if test "${enable_bind_now+set}" = set; then
2124 enableval=$enable_bind_now; bindnow=$enableval
2125 else
2126 bindnow=no
2131 # Check whether --enable-static-nss was given.
2132 if test "${enable_static_nss+set}" = set; then
2133 enableval=$enable_static_nss; static_nss=$enableval
2134 else
2135 static_nss=no
2138 if test x"$static_nss" = xyes || test x"$shared" = xno; then
2139 static_nss=yes
2140 cat >>confdefs.h <<\_ACEOF
2141 #define DO_STATIC_NSS 1
2142 _ACEOF
2146 # Check whether --enable-force-install was given.
2147 if test "${enable_force_install+set}" = set; then
2148 enableval=$enable_force_install; force_install=$enableval
2149 else
2150 force_install=yes
2155 # Check whether --enable-kernel was given.
2156 if test "${enable_kernel+set}" = set; then
2157 enableval=$enable_kernel; minimum_kernel=$enableval
2160 if test "$minimum_kernel" = yes || test "$minimum_kernel" = no; then
2161 # Better nothing than this.
2162 minimum_kernel=""
2163 else
2164 if test "$minimum_kernel" = current; then
2165 minimum_kernel=`uname -r 2>/dev/null` || minimum_kernel=
2169 # Check whether --enable-all-warnings was given.
2170 if test "${enable_all_warnings+set}" = set; then
2171 enableval=$enable_all_warnings; all_warnings=$enableval
2176 # Make sure we can run config.sub.
2177 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2178 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2179 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2180 { (exit 1); exit 1; }; }
2182 { echo "$as_me:$LINENO: checking build system type" >&5
2183 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2184 if test "${ac_cv_build+set}" = set; then
2185 echo $ECHO_N "(cached) $ECHO_C" >&6
2186 else
2187 ac_build_alias=$build_alias
2188 test "x$ac_build_alias" = x &&
2189 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2190 test "x$ac_build_alias" = x &&
2191 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2192 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2193 { (exit 1); exit 1; }; }
2194 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2195 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2196 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2197 { (exit 1); exit 1; }; }
2200 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2201 echo "${ECHO_T}$ac_cv_build" >&6; }
2202 case $ac_cv_build in
2203 *-*-*) ;;
2204 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2205 echo "$as_me: error: invalid value of canonical build" >&2;}
2206 { (exit 1); exit 1; }; };;
2207 esac
2208 build=$ac_cv_build
2209 ac_save_IFS=$IFS; IFS='-'
2210 set x $ac_cv_build
2211 shift
2212 build_cpu=$1
2213 build_vendor=$2
2214 shift; shift
2215 # Remember, the first character of IFS is used to create $*,
2216 # except with old shells:
2217 build_os=$*
2218 IFS=$ac_save_IFS
2219 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2222 { echo "$as_me:$LINENO: checking host system type" >&5
2223 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2224 if test "${ac_cv_host+set}" = set; then
2225 echo $ECHO_N "(cached) $ECHO_C" >&6
2226 else
2227 if test "x$host_alias" = x; then
2228 ac_cv_host=$ac_cv_build
2229 else
2230 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2231 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2232 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2233 { (exit 1); exit 1; }; }
2237 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2238 echo "${ECHO_T}$ac_cv_host" >&6; }
2239 case $ac_cv_host in
2240 *-*-*) ;;
2241 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2242 echo "$as_me: error: invalid value of canonical host" >&2;}
2243 { (exit 1); exit 1; }; };;
2244 esac
2245 host=$ac_cv_host
2246 ac_save_IFS=$IFS; IFS='-'
2247 set x $ac_cv_host
2248 shift
2249 host_cpu=$1
2250 host_vendor=$2
2251 shift; shift
2252 # Remember, the first character of IFS is used to create $*,
2253 # except with old shells:
2254 host_os=$*
2255 IFS=$ac_save_IFS
2256 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2260 # The way shlib-versions is used to generate soversions.mk uses a
2261 # fairly simplistic model for name recognition that can't distinguish
2262 # i486-pc-linux-gnu fully from i486-pc-gnu. So we mutate a $host_os
2263 # of `gnu*' here to be `gnu-gnu*' just so that shlib-versions can
2264 # tell. This doesn't get used much beyond that, so it's fairly safe.
2265 case "$host_os" in
2266 linux*)
2268 gnu*)
2269 host_os=`echo $host_os | sed -e 's/gnu/gnu-gnu/'`
2271 esac
2273 # We keep the original values in `$config_*' and never modify them, so we
2274 # can write them unchanged into config.make. Everything else uses
2275 # $machine, $vendor, and $os, and changes them whenever convenient.
2276 config_machine=$host_cpu config_vendor=$host_vendor config_os=$host_os
2278 # Don't allow vendor == "unknown"
2279 test "$config_vendor" = unknown && config_vendor=
2280 config_os="`echo $config_os | sed 's/^unknown-//'`"
2282 # Some configurations imply other options.
2283 case "$host_os" in
2284 # i586-linuxaout is mangled into i586-pc-linux-gnuaout
2285 linux*ecoff* | linux*aout* | gnu*aout* | gnu*ecoff*)
2287 gnu* | linux* | freebsd* | netbsd* | sysv4* | solaris2* | irix6*)
2288 # These systems (almost) always use the ELF format.
2289 elf=yes
2291 aix*)
2292 # These systems are always xcoff
2293 xcoff=yes
2294 elf=no
2296 esac
2298 # The configure fragment of an add-on port can modify these to supplement
2299 # or override the table in the case statement below. No fragment should
2300 # ever change the config_* variables, however.
2301 machine=$config_machine
2302 vendor=$config_vendor
2303 os=$config_os
2304 base_os=''
2306 # config.guess on some IBM machines says `rs6000' instead of `powerpc'.
2307 # Unify this here.
2308 if test "$machine" = rs6000; then
2309 machine="powerpc"
2312 # Braindead PowerPC box with absolutely no FPU.
2313 case "$machine-$host_os" in
2314 powerpc*-*soft)
2315 with_fp=no
2317 esac
2319 submachine=
2321 # Check whether --with-cpu was given.
2322 if test "${with_cpu+set}" = set; then
2323 withval=$with_cpu; case "$withval" in
2324 yes|'') { { echo "$as_me:$LINENO: error: --with-cpu requires an argument" >&5
2325 echo "$as_me: error: --with-cpu requires an argument" >&2;}
2326 { (exit 1); exit 1; }; } ;;
2327 no) ;;
2328 *) submachine="$withval" ;;
2329 esac
2334 # An add-on can set this when it wants to disable the sanity check below.
2335 libc_config_ok=no
2337 subdirs="$subdirs "
2340 case "$enable_add_ons" in
2341 ''|no) add_ons= ;;
2342 yes|'*')
2343 add_ons=`cd $srcdir && ls -d 2> /dev/null */configure */sysdeps |
2344 sed 's@/[^/]*$@@' | sort | uniq`
2345 add_ons_automatic=yes
2347 *) add_ons=`echo "$enable_add_ons" | sed 's/,/ /g'`
2348 add_ons_automatic=no ;;
2349 esac
2351 configured_add_ons=
2352 add_ons_sfx=
2353 add_ons_pfx=
2354 if test x"$add_ons" != x; then
2355 for f in $add_ons; do
2356 # Some sanity checks
2357 case "$f" in
2358 crypt)
2359 { { echo "$as_me:$LINENO: error:
2360 *** It seems that you're using an old \`crypt' add-on. crypt is now
2361 *** part of glibc and using the old add-on will not work with this
2362 *** release. Start again with fresh sources and without the old
2363 *** \`crypt' add-on." >&5
2364 echo "$as_me: error:
2365 *** It seems that you're using an old \`crypt' add-on. crypt is now
2366 *** part of glibc and using the old add-on will not work with this
2367 *** release. Start again with fresh sources and without the old
2368 *** \`crypt' add-on." >&2;}
2369 { (exit 1); exit 1; }; }
2371 localedata)
2372 { { echo "$as_me:$LINENO: error:
2373 *** It seems that you're using an old \`localedata' add-on. localedata
2374 *** is now part of glibc and using the old add-on will not work with
2375 *** this release. Start again with fresh sources and without the old
2376 *** \`localedata' add-on." >&5
2377 echo "$as_me: error:
2378 *** It seems that you're using an old \`localedata' add-on. localedata
2379 *** is now part of glibc and using the old add-on will not work with
2380 *** this release. Start again with fresh sources and without the old
2381 *** \`localedata' add-on." >&2;}
2382 { (exit 1); exit 1; }; }
2384 esac
2385 done
2387 # Now source each add-on's configure fragment.
2388 # The fragments can use $srcdir/$libc_add_on to find themselves,
2389 # and test $add_ons_automatic to see if they were explicitly requested.
2390 # A fragment can clear (or even change) $libc_add_on to affect
2391 # whether it goes into the list to be actually used in the build.
2392 use_add_ons=
2393 for libc_add_on in $add_ons; do
2394 # Test whether such a directory really exists.
2395 # It can be absolute, or relative to $srcdir, or relative to the build dir.
2396 case "$libc_add_on" in
2398 libc_add_on_srcdir=$libc_add_on
2401 test -d "$srcdir/$libc_add_on" || {
2402 if test -d "$libc_add_on"; then
2403 libc_add_on="`pwd`/$libc_add_on"
2404 else
2405 { { echo "$as_me:$LINENO: error: add-on directory \"$libc_add_on\" does not exist" >&5
2406 echo "$as_me: error: add-on directory \"$libc_add_on\" does not exist" >&2;}
2407 { (exit 1); exit 1; }; }
2410 libc_add_on_srcdir=$srcdir/$libc_add_on
2412 esac
2414 libc_add_on_frag=$libc_add_on_srcdir/configure
2415 libc_add_on_canonical=
2416 if test -r "$libc_add_on_frag"; then
2417 { echo "$as_me:$LINENO: running configure fragment for add-on $libc_add_on" >&5
2418 echo "$as_me: running configure fragment for add-on $libc_add_on" >&6;}
2419 libc_add_on_canonical=unknown
2420 libc_add_on_subdirs=
2421 . "$libc_add_on_frag"
2422 test -z "$libc_add_on" || {
2423 configured_add_ons="$configured_add_ons $libc_add_on"
2424 if test "x$libc_add_on_canonical" = xunknown; then
2425 { { echo "$as_me:$LINENO: error: fragment must set \$libc_add_on_canonical" >&5
2426 echo "$as_me: error: fragment must set \$libc_add_on_canonical" >&2;}
2427 { (exit 1); exit 1; }; }
2429 for d in $libc_add_on_subdirs; do
2430 case "$libc_add_on" in
2431 /*) subdir_srcdir="$libc_add_on" ;;
2432 *) subdir_srcdir="\$(..)$libc_add_on" ;;
2433 esac
2434 case "$d" in
2436 d="${libc_add_on_canonical:-$libc_add_on}"
2439 subdir_srcdir="$d"
2442 subdir_srcdir="$subdir_srcdir/$d"
2444 esac
2445 d=`echo "$d" | sed 's@/*$@@;s@^.*/@@'`
2446 add_on_subdirs="$add_on_subdirs $d"
2447 test "$subdir_srcdir" = "\$(..)$d" || config_vars="$config_vars
2448 $d-srcdir = $subdir_srcdir"
2449 done
2452 if test -n "$libc_add_on"; then
2453 if frags=`ls -d $libc_add_on_srcdir/sysdeps/*/preconfigure 2> /dev/null`
2454 then
2455 { echo "$as_me:$LINENO: checking add-on $libc_add_on for preconfigure fragments" >&5
2456 echo $ECHO_N "checking add-on $libc_add_on for preconfigure fragments... $ECHO_C" >&6; }
2457 for frag in $frags; do
2458 name=`echo "$frag" | sed 's@/[^/]*$@@;s@^.*/@@'`
2459 echo $ECHO_N "$name $ECHO_C" >&6
2460 . "$frag"
2461 done
2462 { echo "$as_me:$LINENO: result: " >&5
2463 echo "${ECHO_T}" >&6; }
2465 use_add_ons="$use_add_ons $libc_add_on"
2466 add_ons_pfx="$add_ons_pfx $libc_add_on/"
2467 test -z "$libc_add_on_canonical" ||
2468 add_ons_sfx="$add_ons_sfx /$libc_add_on_canonical"
2470 done
2471 # Use echo to strip excess whitespace.
2472 add_ons="`echo $use_add_ons`"
2479 ### I put this here to prevent those annoying emails from people who cannot
2480 ### read and try to compile glibc on unsupported platforms. --drepper
2482 ### By using the undocumented --enable-hacker-mode option for configure
2483 ### one can skip this test to make the configuration not fail for unsupported
2484 ### platforms.
2486 if test -z "$enable_hacker_mode" && test x"$libc_config_ok" != xyes; then
2487 case "$machine-$host_os" in
2488 *-linux* | *-gnu* | arm*-none* | powerpc-aix4.3.*)
2491 echo "*** The GNU C library is currently not available for this platform."
2492 echo "*** So far nobody cared to port it and if there is no volunteer it"
2493 echo "*** might never happen. So, if you have interest to see glibc on"
2494 echo "*** this platform visit"
2495 echo "*** http://www.gnu.org/software/libc/porting.html"
2496 echo "*** and join the group of porters"
2497 exit 1
2499 esac
2502 # Expand the configuration machine name into a subdirectory by architecture
2503 # type and particular chip. If an add-on configure fragment already set
2504 # base_machine, we don't change it.
2505 test -n "$base_machine" || case "$machine" in
2506 a29k | am29000) base_machine=a29k machine=a29k ;;
2507 alpha*) base_machine=alpha machine=alpha/$machine ;;
2508 c3[012]) base_machine=cx0 machine=cx0/c30 ;;
2509 c4[04]) base_machine=cx0 machine=cx0/c40 ;;
2510 i[34567]86) base_machine=i386 machine=i386/$machine ;;
2511 ia64) base_machine=ia64 machine=ia64 ;;
2512 m88???) base_machine=m88k machine=m88k/$machine ;;
2513 m88k) base_machine=m88k machine=m88k/m88100 ;;
2514 powerpc) base_machine=powerpc machine=powerpc/powerpc32 ;;
2515 powerpc64) base_machine=powerpc machine=powerpc/powerpc64 ;;
2516 s390) base_machine=s390 machine=s390/s390-32 ;;
2517 s390x) base_machine=s390 machine=s390/s390-64 ;;
2518 sh3*) base_machine=sh machine=sh/sh3 ;;
2519 sh4*) base_machine=sh machine=sh/sh4 ;;
2520 sparc | sparcv[67])
2521 base_machine=sparc machine=sparc/sparc32 ;;
2522 sparcv8 | supersparc | hypersparc)
2523 base_machine=sparc machine=sparc/sparc32/sparcv8 ;;
2524 sparcv8plus | sparcv8plusa | sparcv9)
2525 base_machine=sparc machine=sparc/sparc32/sparcv9 ;;
2526 sparcv8plusb | sparcv9b)
2527 base_machine=sparc machine=sparc/sparc32/sparcv9/sparcv9b ;;
2528 sparcv9v)
2529 base_machine=sparc machine=sparc/sparc32/sparcv9/sparcv9v ;;
2530 sparcv9v2)
2531 base_machine=sparc machine=sparc/sparc32/sparcv9/sparcv9v2 ;;
2532 sparc64)
2533 base_machine=sparc machine=sparc/sparc64 ;;
2534 sparc64b)
2535 base_machine=sparc machine=sparc/sparc64/sparcv9b ;;
2536 sparc64v)
2537 base_machine=sparc machine=sparc/sparc64/sparcv9v ;;
2538 sparc64v2)
2539 base_machine=sparc machine=sparc/sparc64/sparcv9v2 ;;
2540 *) base_machine=$machine ;;
2541 esac
2544 if test "$base_machine" = "i386"; then
2545 cat >>confdefs.h <<\_ACEOF
2546 #define USE_REGPARMS 1
2547 _ACEOF
2551 # Compute the list of sysdep directories for this configuration.
2552 # This can take a while to compute.
2553 sysdep_dir=$srcdir/sysdeps
2554 { echo "$as_me:$LINENO: checking sysdep dirs" >&5
2555 echo $ECHO_N "checking sysdep dirs... $ECHO_C" >&6; }
2556 # Make sco3.2v4 become sco3.2.4 and sunos4.1.1_U1 become sunos4.1.1.U1.
2557 os="`echo $os | sed 's/\([0-9A-Z]\)[v_]\([0-9A-Z]\)/\1.\2/g'`"
2559 test "x$base_os" != x || case "$os" in
2560 gnu*)
2561 base_os=mach/hurd ;;
2562 netbsd* | 386bsd* | freebsd* | bsdi*)
2563 base_os=unix/bsd/bsd4.4 ;;
2564 osf* | sunos* | ultrix* | newsos* | dynix* | *bsd*)
2565 base_os=unix/bsd ;;
2566 sysv* | isc* | esix* | sco* | minix* | irix4* | linux*)
2567 base_os=unix/sysv ;;
2568 irix6*)
2569 base_os=unix/sysv/irix6/$os ;;
2570 solaris[2-9]*)
2571 base_os=unix/sysv/sysv4 ;;
2572 hpux*)
2573 base_os=unix/sysv/hpux/$os ;;
2574 aix4.3*)
2575 base_os=unix/sysv/aix/aix4.3 ;;
2576 none)
2577 base_os=standalone ;;
2578 esac
2580 # For sunos4.1.1, try sunos4.1.1, then sunos4.1, then sunos4, then sunos.
2581 tail=$os
2582 ostry=$os
2583 while o=`echo $tail | sed 's/\.[^.]*$//'`; test $o != $tail; do
2584 ostry="$ostry /$o"
2585 tail=$o
2586 done
2587 o=`echo $tail | sed 's/[0-9]*$//'`
2588 if test $o != $tail; then
2589 ostry="$ostry /$o"
2591 # For linux-gnu, try linux-gnu, then linux.
2592 o=`echo $tail | sed 's/-.*$//'`
2593 if test $o != $tail; then
2594 ostry="$ostry /$o"
2597 # For unix/sysv/sysv4, try unix/sysv/sysv4, then unix/sysv, then unix.
2598 base=
2599 tail=$base_os
2600 while b=`echo $tail | sed 's@^\(.*\)/\([^/]*\)$@& \1@'`; test -n "$b"; do
2601 set $b
2602 base="$base /$1"
2603 tail="$2"
2604 done
2606 # For sparc/sparc32, try sparc/sparc32 and then sparc.
2607 mach=
2608 tail=$machine${submachine:+/$submachine}
2609 while m=`echo $tail | sed 's@^\(.*\)/\([^/]*\)$@& \1@'`; test -n "$m"; do
2610 set $m
2611 # Prepend the machine's FPU directory unless --without-fp.
2612 if test "$with_fp" = yes; then
2613 mach="$mach /$1/fpu"
2614 else
2615 mach="$mach /$1/nofpu"
2617 mach="$mach /$1"
2618 tail="$2"
2619 done
2622 # Find what sysdep directories exist.
2623 sysnames_add_ons=
2624 sysnames=
2625 for b in $base ''; do
2626 for m0 in $mach ''; do
2627 for v in /$vendor ''; do
2628 test "$v" = / && continue
2629 for o in /$ostry ''; do
2630 test "$o" = / && continue
2631 for m in $mach ''; do
2632 for d in $add_ons_pfx ''; do
2633 for a in $add_ons_sfx ''; do
2634 if test -n "$m0$m0sub$b$v$o$m$msub"; then
2635 try_srcdir="${srcdir}/"
2636 case "$d" in
2637 /*) try_srcdir= ;;
2638 esac
2639 try="${d}sysdeps$m0$m0sub$b$v$o$m$msub$a"
2640 test -n "$enable_debug_configure" &&
2641 echo "$0 DEBUG: try $try" >&2
2642 if test -d "$try_srcdir$try"; then
2643 sysnames="$sysnames $try"
2644 { test -n "$o" || test -n "$b"; } && os_used=t
2645 { test -n "$m" || test -n "$m0"; } && machine_used=t
2646 case x${m0:-$m} in
2647 x*/$submachine) submachine_used=t ;;
2648 esac
2649 if test -n "$d"; then
2650 case "$sysnames_add_ons" in
2651 *" $d "*) ;;
2652 *|'') sysnames_add_ons="$sysnames_add_ons $d" ;;
2653 esac
2657 done
2658 done
2659 done
2660 done
2661 done
2662 done
2663 done
2665 if test -z "$os_used" && test "$os" != none; then
2666 { { echo "$as_me:$LINENO: error: Operating system $os is not supported." >&5
2667 echo "$as_me: error: Operating system $os is not supported." >&2;}
2668 { (exit 1); exit 1; }; }
2670 if test -z "$machine_used" && test "$machine" != none; then
2671 { { echo "$as_me:$LINENO: error: The $machine is not supported." >&5
2672 echo "$as_me: error: The $machine is not supported." >&2;}
2673 { (exit 1); exit 1; }; }
2675 if test -z "$submachine_used" && test -n "$submachine"; then
2676 { { echo "$as_me:$LINENO: error: The $submachine subspecies of $host_cpu is not supported." >&5
2677 echo "$as_me: error: The $submachine subspecies of $host_cpu is not supported." >&2;}
2678 { (exit 1); exit 1; }; }
2682 # We have now validated the configuration.
2685 # If using ELF, look for an `elf' subdirectory of each machine directory.
2686 # We prepend these rather than inserting them whereever the machine appears
2687 # because things specified by the machine's ELF ABI should override
2688 # OS-specific things, and should always be the same for any OS on the
2689 # machine (otherwise what's the point of an ABI?).
2690 if test "$elf" = yes; then
2691 elf_dirs=
2692 for d in $add_ons_pfx ''; do
2693 for m in $mach; do
2694 if test -d $srcdir/${d}sysdeps$m/elf; then
2695 elf_dirs="$elf_dirs ${d}sysdeps$m/elf"
2697 done
2698 done
2699 sysnames="`echo $elf_dirs | sed -e 's,//,/,g'` $sysnames"
2703 # Expand the list of system names into a full list of directories
2704 # from each element's parent name and Implies file (if present).
2705 set $sysnames
2706 names=
2707 while test $# -gt 0; do
2708 name=$1
2709 shift
2711 case " $names " in *" $name "*)
2712 # Already in the list.
2713 continue
2714 esac
2716 # Report each name as we discover it, so there is no long pause in output.
2717 echo $ECHO_N "$name $ECHO_C" >&6
2719 name_base=`echo $name | sed -e 's@\(.*sysdeps\)/.*@\1@'`
2721 case $name in
2722 /*) xsrcdir= ;;
2723 *) xsrcdir=$srcdir/ ;;
2724 esac
2725 test -n "$enable_debug_configure" &&
2726 echo "DEBUG: name/Implies $xsrcdir$name/Implies" >&2
2728 if test -f $xsrcdir$name/Implies; then
2729 # Collect more names from the `Implies' file (removing comments).
2730 implied_candidate="`sed 's/#.*$//' < $xsrcdir$name/Implies`"
2731 implied=
2732 for x in $implied_candidate; do
2733 found=no
2734 if test -d $xsrcdir$name_base/$x; then
2735 implied="$implied $name_base/$x";
2736 found=yes
2738 for d in $add_ons_pfx ''; do
2739 try="${d}sysdeps/$x"
2740 case $d in
2741 /*) try_srcdir= ;;
2742 *) try_srcdir=$srcdir/ ;;
2743 esac
2744 test -n "$enable_debug_configure" &&
2745 echo "DEBUG: $name implied $x try($d) {$try_srcdir}$try" >&2
2746 if test $try != $xsrcdir$name_base/$x && test -d $try_srcdir$try;
2747 then
2748 implied="$implied $try"
2749 found=yes
2750 case "$sysnames_add_ons" in
2751 *" $d "*) ;;
2752 *|'') sysnames_add_ons="$sysnames_add_ons $d" ;;
2753 esac
2755 done
2756 if test $found = no; then
2757 { echo "$as_me:$LINENO: WARNING: $name/Implies specifies nonexistent $x" >&5
2758 echo "$as_me: WARNING: $name/Implies specifies nonexistent $x" >&2;}
2760 done
2761 else
2762 implied=
2765 # Add NAME to the list of names.
2766 names="$names $name"
2768 # Find the parent of NAME, using the empty string if it has none.
2769 parent="`echo $name | sed -n -e 's=/[^/]*$==' -e '/sysdeps$/q' -e p`"
2771 # Add the names implied by NAME, and NAME's parent (if it has one), to
2772 # the list of names to be processed (the argument list). We prepend the
2773 # implied names to the list and append the parent. We want implied
2774 # directories to come before further directories inferred from the
2775 # configuration components; this ensures that for sysv4, unix/common
2776 # (implied by unix/sysv/sysv4) comes before unix/sysv (in ostry (here $*)
2777 # after sysv4).
2778 sysnames="`echo $implied $* $parent`"
2779 test -n "$sysnames" && set $sysnames
2780 done
2782 # Add the default directories.
2783 default_sysnames=sysdeps/generic
2784 if test "$elf" = yes; then
2785 default_sysnames="sysdeps/generic/elf $default_sysnames"
2787 sysnames="$names $default_sysnames"
2789 # The other names were emitted during the scan.
2790 { echo "$as_me:$LINENO: result: $default_sysnames" >&5
2791 echo "${ECHO_T}$default_sysnames" >&6; }
2793 # Collect the list of add-ons that supply partial sysdeps trees.
2794 sysdeps_add_ons=
2795 for add_on in $add_ons; do
2796 case "$add_on" in
2797 /*) xsrcdir= ;;
2798 *) xsrcdir="$srcdir/" ;;
2799 esac
2801 test -d "$xsrcdir$add_on/sysdeps" || {
2802 case "$configured_add_ons " in
2803 *" $add_on "*) ;;
2804 *|'')
2805 { { echo "$as_me:$LINENO: error: add-on $add_on has no configure fragment or sysdeps tree" >&5
2806 echo "$as_me: error: add-on $add_on has no configure fragment or sysdeps tree" >&2;}
2807 { (exit 1); exit 1; }; }
2809 esac
2810 continue
2813 sysdeps_add_ons="$sysdeps_add_ons $add_on"
2814 case "$sysnames_add_ons" in
2815 *" $add_on/ "*) ;;
2816 *|'')
2817 { echo "$as_me:$LINENO: WARNING: add-on $add_on contributed no sysdeps directories" >&5
2818 echo "$as_me: WARNING: add-on $add_on contributed no sysdeps directories" >&2;}
2819 continue ;;
2820 esac
2822 found=no
2823 for d in $sysnames; do
2824 case "$d" in
2825 $add_on/sysdeps/*) ;;
2826 *) continue ;;
2827 esac
2828 (cd "$xsrcdir$d" && for f in *[!~]; do
2829 case "$f" in
2830 sys|bits)
2831 for ff in $f/*.h; do
2832 test -d "$ff" || { test -e "$ff" && exit 88; }
2833 done
2836 test -d "$f" || { test -e "$f" && exit 88; }
2838 esac
2839 done)
2840 if test $? -eq 88; then
2841 found=yes
2842 break
2844 done
2845 if test $found = no; then
2846 { echo "$as_me:$LINENO: WARNING: add-on $add_on contributed no useful sysdeps directories" >&5
2847 echo "$as_me: WARNING: add-on $add_on contributed no useful sysdeps directories" >&2;}
2849 done
2853 ### Locate tools.
2855 # Find a good install program. We prefer a C program (faster),
2856 # so one script is as good as another. But avoid the broken or
2857 # incompatible versions:
2858 # SysV /etc/install, /usr/sbin/install
2859 # SunOS /usr/etc/install
2860 # IRIX /sbin/install
2861 # AIX /bin/install
2862 # AmigaOS /C/install, which installs bootblocks on floppy discs
2863 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2864 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2865 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2866 # OS/2's system install, which has a completely different semantic
2867 # ./install, which can be erroneously created by make from ./install.sh.
2868 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2869 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2870 if test -z "$INSTALL"; then
2871 if test "${ac_cv_path_install+set}" = set; then
2872 echo $ECHO_N "(cached) $ECHO_C" >&6
2873 else
2874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2875 for as_dir in $PATH
2877 IFS=$as_save_IFS
2878 test -z "$as_dir" && as_dir=.
2879 # Account for people who put trailing slashes in PATH elements.
2880 case $as_dir/ in
2881 ./ | .// | /cC/* | \
2882 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2883 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2884 /usr/ucb/* ) ;;
2886 # OSF1 and SCO ODT 3.0 have their own names for install.
2887 # Don't use installbsd from OSF since it installs stuff as root
2888 # by default.
2889 for ac_prog in ginstall scoinst install; do
2890 for ac_exec_ext in '' $ac_executable_extensions; do
2891 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2892 if test $ac_prog = install &&
2893 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2894 # AIX install. It has an incompatible calling convention.
2896 elif test $ac_prog = install &&
2897 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2898 # program-specific install script used by HP pwplus--don't use.
2900 else
2901 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2902 break 3
2905 done
2906 done
2908 esac
2909 done
2910 IFS=$as_save_IFS
2914 if test "${ac_cv_path_install+set}" = set; then
2915 INSTALL=$ac_cv_path_install
2916 else
2917 # As a last resort, use the slow shell script. Don't cache a
2918 # value for INSTALL within a source directory, because that will
2919 # break other packages using the cache if that directory is
2920 # removed, or if the value is a relative name.
2921 INSTALL=$ac_install_sh
2924 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2925 echo "${ECHO_T}$INSTALL" >&6; }
2927 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2928 # It thinks the first close brace ends the variable substitution.
2929 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2931 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2933 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2935 if test "$INSTALL" = "${srcdir}/scripts/install-sh -c"; then
2936 # The makefiles need to use a different form to find it in $srcdir.
2937 INSTALL='\$(..)./scripts/install-sh -c'
2939 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
2940 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
2941 LN_S=$as_ln_s
2942 if test "$LN_S" = "ln -s"; then
2943 { echo "$as_me:$LINENO: result: yes" >&5
2944 echo "${ECHO_T}yes" >&6; }
2945 else
2946 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
2947 echo "${ECHO_T}no, using $LN_S" >&6; }
2951 ac_ext=c
2952 ac_cpp='$CPP $CPPFLAGS'
2953 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2954 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2955 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2956 if test -n "$ac_tool_prefix"; then
2957 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2958 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2959 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2960 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2961 if test "${ac_cv_prog_CC+set}" = set; then
2962 echo $ECHO_N "(cached) $ECHO_C" >&6
2963 else
2964 if test -n "$CC"; then
2965 ac_cv_prog_CC="$CC" # Let the user override the test.
2966 else
2967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2968 for as_dir in $PATH
2970 IFS=$as_save_IFS
2971 test -z "$as_dir" && as_dir=.
2972 for ac_exec_ext in '' $ac_executable_extensions; do
2973 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2974 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2975 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2976 break 2
2978 done
2979 done
2980 IFS=$as_save_IFS
2984 CC=$ac_cv_prog_CC
2985 if test -n "$CC"; then
2986 { echo "$as_me:$LINENO: result: $CC" >&5
2987 echo "${ECHO_T}$CC" >&6; }
2988 else
2989 { echo "$as_me:$LINENO: result: no" >&5
2990 echo "${ECHO_T}no" >&6; }
2995 if test -z "$ac_cv_prog_CC"; then
2996 ac_ct_CC=$CC
2997 # Extract the first word of "gcc", so it can be a program name with args.
2998 set dummy gcc; ac_word=$2
2999 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3000 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3001 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3002 echo $ECHO_N "(cached) $ECHO_C" >&6
3003 else
3004 if test -n "$ac_ct_CC"; then
3005 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3006 else
3007 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3008 for as_dir in $PATH
3010 IFS=$as_save_IFS
3011 test -z "$as_dir" && as_dir=.
3012 for ac_exec_ext in '' $ac_executable_extensions; do
3013 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3014 ac_cv_prog_ac_ct_CC="gcc"
3015 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3016 break 2
3018 done
3019 done
3020 IFS=$as_save_IFS
3024 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3025 if test -n "$ac_ct_CC"; then
3026 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3027 echo "${ECHO_T}$ac_ct_CC" >&6; }
3028 else
3029 { echo "$as_me:$LINENO: result: no" >&5
3030 echo "${ECHO_T}no" >&6; }
3033 if test "x$ac_ct_CC" = x; then
3034 CC=""
3035 else
3036 case $cross_compiling:$ac_tool_warned in
3037 yes:)
3038 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3039 whose name does not start with the host triplet. If you think this
3040 configuration is useful to you, please write to autoconf@gnu.org." >&5
3041 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3042 whose name does not start with the host triplet. If you think this
3043 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3044 ac_tool_warned=yes ;;
3045 esac
3046 CC=$ac_ct_CC
3048 else
3049 CC="$ac_cv_prog_CC"
3052 if test -z "$CC"; then
3053 if test -n "$ac_tool_prefix"; then
3054 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3055 set dummy ${ac_tool_prefix}cc; ac_word=$2
3056 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3057 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3058 if test "${ac_cv_prog_CC+set}" = set; then
3059 echo $ECHO_N "(cached) $ECHO_C" >&6
3060 else
3061 if test -n "$CC"; then
3062 ac_cv_prog_CC="$CC" # Let the user override the test.
3063 else
3064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3065 for as_dir in $PATH
3067 IFS=$as_save_IFS
3068 test -z "$as_dir" && as_dir=.
3069 for ac_exec_ext in '' $ac_executable_extensions; do
3070 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3071 ac_cv_prog_CC="${ac_tool_prefix}cc"
3072 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3073 break 2
3075 done
3076 done
3077 IFS=$as_save_IFS
3081 CC=$ac_cv_prog_CC
3082 if test -n "$CC"; then
3083 { echo "$as_me:$LINENO: result: $CC" >&5
3084 echo "${ECHO_T}$CC" >&6; }
3085 else
3086 { echo "$as_me:$LINENO: result: no" >&5
3087 echo "${ECHO_T}no" >&6; }
3093 if test -z "$CC"; then
3094 # Extract the first word of "cc", so it can be a program name with args.
3095 set dummy cc; ac_word=$2
3096 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3097 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3098 if test "${ac_cv_prog_CC+set}" = set; then
3099 echo $ECHO_N "(cached) $ECHO_C" >&6
3100 else
3101 if test -n "$CC"; then
3102 ac_cv_prog_CC="$CC" # Let the user override the test.
3103 else
3104 ac_prog_rejected=no
3105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3106 for as_dir in $PATH
3108 IFS=$as_save_IFS
3109 test -z "$as_dir" && as_dir=.
3110 for ac_exec_ext in '' $ac_executable_extensions; do
3111 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3112 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3113 ac_prog_rejected=yes
3114 continue
3116 ac_cv_prog_CC="cc"
3117 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3118 break 2
3120 done
3121 done
3122 IFS=$as_save_IFS
3124 if test $ac_prog_rejected = yes; then
3125 # We found a bogon in the path, so make sure we never use it.
3126 set dummy $ac_cv_prog_CC
3127 shift
3128 if test $# != 0; then
3129 # We chose a different compiler from the bogus one.
3130 # However, it has the same basename, so the bogon will be chosen
3131 # first if we set CC to just the basename; use the full file name.
3132 shift
3133 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3138 CC=$ac_cv_prog_CC
3139 if test -n "$CC"; then
3140 { echo "$as_me:$LINENO: result: $CC" >&5
3141 echo "${ECHO_T}$CC" >&6; }
3142 else
3143 { echo "$as_me:$LINENO: result: no" >&5
3144 echo "${ECHO_T}no" >&6; }
3149 if test -z "$CC"; then
3150 if test -n "$ac_tool_prefix"; then
3151 for ac_prog in cl.exe
3153 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3154 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3155 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3156 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3157 if test "${ac_cv_prog_CC+set}" = set; then
3158 echo $ECHO_N "(cached) $ECHO_C" >&6
3159 else
3160 if test -n "$CC"; then
3161 ac_cv_prog_CC="$CC" # Let the user override the test.
3162 else
3163 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3164 for as_dir in $PATH
3166 IFS=$as_save_IFS
3167 test -z "$as_dir" && as_dir=.
3168 for ac_exec_ext in '' $ac_executable_extensions; do
3169 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3170 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3171 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3172 break 2
3174 done
3175 done
3176 IFS=$as_save_IFS
3180 CC=$ac_cv_prog_CC
3181 if test -n "$CC"; then
3182 { echo "$as_me:$LINENO: result: $CC" >&5
3183 echo "${ECHO_T}$CC" >&6; }
3184 else
3185 { echo "$as_me:$LINENO: result: no" >&5
3186 echo "${ECHO_T}no" >&6; }
3190 test -n "$CC" && break
3191 done
3193 if test -z "$CC"; then
3194 ac_ct_CC=$CC
3195 for ac_prog in cl.exe
3197 # Extract the first word of "$ac_prog", so it can be a program name with args.
3198 set dummy $ac_prog; ac_word=$2
3199 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3200 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3201 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3202 echo $ECHO_N "(cached) $ECHO_C" >&6
3203 else
3204 if test -n "$ac_ct_CC"; then
3205 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3206 else
3207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3208 for as_dir in $PATH
3210 IFS=$as_save_IFS
3211 test -z "$as_dir" && as_dir=.
3212 for ac_exec_ext in '' $ac_executable_extensions; do
3213 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3214 ac_cv_prog_ac_ct_CC="$ac_prog"
3215 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3216 break 2
3218 done
3219 done
3220 IFS=$as_save_IFS
3224 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3225 if test -n "$ac_ct_CC"; then
3226 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3227 echo "${ECHO_T}$ac_ct_CC" >&6; }
3228 else
3229 { echo "$as_me:$LINENO: result: no" >&5
3230 echo "${ECHO_T}no" >&6; }
3234 test -n "$ac_ct_CC" && break
3235 done
3237 if test "x$ac_ct_CC" = x; then
3238 CC=""
3239 else
3240 case $cross_compiling:$ac_tool_warned in
3241 yes:)
3242 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3243 whose name does not start with the host triplet. If you think this
3244 configuration is useful to you, please write to autoconf@gnu.org." >&5
3245 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3246 whose name does not start with the host triplet. If you think this
3247 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3248 ac_tool_warned=yes ;;
3249 esac
3250 CC=$ac_ct_CC
3257 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3258 See \`config.log' for more details." >&5
3259 echo "$as_me: error: no acceptable C compiler found in \$PATH
3260 See \`config.log' for more details." >&2;}
3261 { (exit 1); exit 1; }; }
3263 # Provide some information about the compiler.
3264 echo "$as_me:$LINENO: checking for C compiler version" >&5
3265 ac_compiler=`set X $ac_compile; echo $2`
3266 { (ac_try="$ac_compiler --version >&5"
3267 case "(($ac_try" in
3268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3269 *) ac_try_echo=$ac_try;;
3270 esac
3271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3272 (eval "$ac_compiler --version >&5") 2>&5
3273 ac_status=$?
3274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3275 (exit $ac_status); }
3276 { (ac_try="$ac_compiler -v >&5"
3277 case "(($ac_try" in
3278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3279 *) ac_try_echo=$ac_try;;
3280 esac
3281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3282 (eval "$ac_compiler -v >&5") 2>&5
3283 ac_status=$?
3284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3285 (exit $ac_status); }
3286 { (ac_try="$ac_compiler -V >&5"
3287 case "(($ac_try" in
3288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3289 *) ac_try_echo=$ac_try;;
3290 esac
3291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3292 (eval "$ac_compiler -V >&5") 2>&5
3293 ac_status=$?
3294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3295 (exit $ac_status); }
3297 EXEEXT=
3298 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3299 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3300 if test "${ac_cv_objext+set}" = set; then
3301 echo $ECHO_N "(cached) $ECHO_C" >&6
3302 else
3303 cat >conftest.$ac_ext <<_ACEOF
3304 /* confdefs.h. */
3305 _ACEOF
3306 cat confdefs.h >>conftest.$ac_ext
3307 cat >>conftest.$ac_ext <<_ACEOF
3308 /* end confdefs.h. */
3311 main ()
3315 return 0;
3317 _ACEOF
3318 rm -f conftest.o conftest.obj
3319 if { (ac_try="$ac_compile"
3320 case "(($ac_try" in
3321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3322 *) ac_try_echo=$ac_try;;
3323 esac
3324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3325 (eval "$ac_compile") 2>&5
3326 ac_status=$?
3327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3328 (exit $ac_status); }; then
3329 for ac_file in conftest.o conftest.obj conftest.*; do
3330 test -f "$ac_file" || continue;
3331 case $ac_file in
3332 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3333 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3334 break;;
3335 esac
3336 done
3337 else
3338 echo "$as_me: failed program was:" >&5
3339 sed 's/^/| /' conftest.$ac_ext >&5
3341 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3342 See \`config.log' for more details." >&5
3343 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3344 See \`config.log' for more details." >&2;}
3345 { (exit 1); exit 1; }; }
3348 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3350 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3351 echo "${ECHO_T}$ac_cv_objext" >&6; }
3352 OBJEXT=$ac_cv_objext
3353 ac_objext=$OBJEXT
3354 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3355 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3356 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3357 echo $ECHO_N "(cached) $ECHO_C" >&6
3358 else
3359 cat >conftest.$ac_ext <<_ACEOF
3360 /* confdefs.h. */
3361 _ACEOF
3362 cat confdefs.h >>conftest.$ac_ext
3363 cat >>conftest.$ac_ext <<_ACEOF
3364 /* end confdefs.h. */
3367 main ()
3369 #ifndef __GNUC__
3370 choke me
3371 #endif
3374 return 0;
3376 _ACEOF
3377 rm -f conftest.$ac_objext
3378 if { (ac_try="$ac_compile"
3379 case "(($ac_try" in
3380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3381 *) ac_try_echo=$ac_try;;
3382 esac
3383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3384 (eval "$ac_compile") 2>conftest.er1
3385 ac_status=$?
3386 grep -v '^ *+' conftest.er1 >conftest.err
3387 rm -f conftest.er1
3388 cat conftest.err >&5
3389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3390 (exit $ac_status); } && {
3391 test -z "$ac_c_werror_flag" ||
3392 test ! -s conftest.err
3393 } && test -s conftest.$ac_objext; then
3394 ac_compiler_gnu=yes
3395 else
3396 echo "$as_me: failed program was:" >&5
3397 sed 's/^/| /' conftest.$ac_ext >&5
3399 ac_compiler_gnu=no
3402 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3403 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3406 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3407 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3408 GCC=`test $ac_compiler_gnu = yes && echo yes`
3409 ac_test_CFLAGS=${CFLAGS+set}
3410 ac_save_CFLAGS=$CFLAGS
3411 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3412 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3413 if test "${ac_cv_prog_cc_g+set}" = set; then
3414 echo $ECHO_N "(cached) $ECHO_C" >&6
3415 else
3416 ac_save_c_werror_flag=$ac_c_werror_flag
3417 ac_c_werror_flag=yes
3418 ac_cv_prog_cc_g=no
3419 CFLAGS="-g"
3420 cat >conftest.$ac_ext <<_ACEOF
3421 /* confdefs.h. */
3422 _ACEOF
3423 cat confdefs.h >>conftest.$ac_ext
3424 cat >>conftest.$ac_ext <<_ACEOF
3425 /* end confdefs.h. */
3428 main ()
3432 return 0;
3434 _ACEOF
3435 rm -f conftest.$ac_objext
3436 if { (ac_try="$ac_compile"
3437 case "(($ac_try" in
3438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3439 *) ac_try_echo=$ac_try;;
3440 esac
3441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3442 (eval "$ac_compile") 2>conftest.er1
3443 ac_status=$?
3444 grep -v '^ *+' conftest.er1 >conftest.err
3445 rm -f conftest.er1
3446 cat conftest.err >&5
3447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3448 (exit $ac_status); } && {
3449 test -z "$ac_c_werror_flag" ||
3450 test ! -s conftest.err
3451 } && test -s conftest.$ac_objext; then
3452 ac_cv_prog_cc_g=yes
3453 else
3454 echo "$as_me: failed program was:" >&5
3455 sed 's/^/| /' conftest.$ac_ext >&5
3457 CFLAGS=""
3458 cat >conftest.$ac_ext <<_ACEOF
3459 /* confdefs.h. */
3460 _ACEOF
3461 cat confdefs.h >>conftest.$ac_ext
3462 cat >>conftest.$ac_ext <<_ACEOF
3463 /* end confdefs.h. */
3466 main ()
3470 return 0;
3472 _ACEOF
3473 rm -f conftest.$ac_objext
3474 if { (ac_try="$ac_compile"
3475 case "(($ac_try" in
3476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3477 *) ac_try_echo=$ac_try;;
3478 esac
3479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3480 (eval "$ac_compile") 2>conftest.er1
3481 ac_status=$?
3482 grep -v '^ *+' conftest.er1 >conftest.err
3483 rm -f conftest.er1
3484 cat conftest.err >&5
3485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3486 (exit $ac_status); } && {
3487 test -z "$ac_c_werror_flag" ||
3488 test ! -s conftest.err
3489 } && test -s conftest.$ac_objext; then
3491 else
3492 echo "$as_me: failed program was:" >&5
3493 sed 's/^/| /' conftest.$ac_ext >&5
3495 ac_c_werror_flag=$ac_save_c_werror_flag
3496 CFLAGS="-g"
3497 cat >conftest.$ac_ext <<_ACEOF
3498 /* confdefs.h. */
3499 _ACEOF
3500 cat confdefs.h >>conftest.$ac_ext
3501 cat >>conftest.$ac_ext <<_ACEOF
3502 /* end confdefs.h. */
3505 main ()
3509 return 0;
3511 _ACEOF
3512 rm -f conftest.$ac_objext
3513 if { (ac_try="$ac_compile"
3514 case "(($ac_try" in
3515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3516 *) ac_try_echo=$ac_try;;
3517 esac
3518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3519 (eval "$ac_compile") 2>conftest.er1
3520 ac_status=$?
3521 grep -v '^ *+' conftest.er1 >conftest.err
3522 rm -f conftest.er1
3523 cat conftest.err >&5
3524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3525 (exit $ac_status); } && {
3526 test -z "$ac_c_werror_flag" ||
3527 test ! -s conftest.err
3528 } && test -s conftest.$ac_objext; then
3529 ac_cv_prog_cc_g=yes
3530 else
3531 echo "$as_me: failed program was:" >&5
3532 sed 's/^/| /' conftest.$ac_ext >&5
3537 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3540 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3543 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3544 ac_c_werror_flag=$ac_save_c_werror_flag
3546 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3547 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3548 if test "$ac_test_CFLAGS" = set; then
3549 CFLAGS=$ac_save_CFLAGS
3550 elif test $ac_cv_prog_cc_g = yes; then
3551 if test "$GCC" = yes; then
3552 CFLAGS="-g -O2"
3553 else
3554 CFLAGS="-g"
3556 else
3557 if test "$GCC" = yes; then
3558 CFLAGS="-O2"
3559 else
3560 CFLAGS=
3563 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3564 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3565 if test "${ac_cv_prog_cc_c89+set}" = set; then
3566 echo $ECHO_N "(cached) $ECHO_C" >&6
3567 else
3568 ac_cv_prog_cc_c89=no
3569 ac_save_CC=$CC
3570 cat >conftest.$ac_ext <<_ACEOF
3571 /* confdefs.h. */
3572 _ACEOF
3573 cat confdefs.h >>conftest.$ac_ext
3574 cat >>conftest.$ac_ext <<_ACEOF
3575 /* end confdefs.h. */
3576 #include <stdarg.h>
3577 #include <stdio.h>
3578 #include <sys/types.h>
3579 #include <sys/stat.h>
3580 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3581 struct buf { int x; };
3582 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3583 static char *e (p, i)
3584 char **p;
3585 int i;
3587 return p[i];
3589 static char *f (char * (*g) (char **, int), char **p, ...)
3591 char *s;
3592 va_list v;
3593 va_start (v,p);
3594 s = g (p, va_arg (v,int));
3595 va_end (v);
3596 return s;
3599 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3600 function prototypes and stuff, but not '\xHH' hex character constants.
3601 These don't provoke an error unfortunately, instead are silently treated
3602 as 'x'. The following induces an error, until -std is added to get
3603 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3604 array size at least. It's necessary to write '\x00'==0 to get something
3605 that's true only with -std. */
3606 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3608 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3609 inside strings and character constants. */
3610 #define FOO(x) 'x'
3611 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3613 int test (int i, double x);
3614 struct s1 {int (*f) (int a);};
3615 struct s2 {int (*f) (double a);};
3616 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3617 int argc;
3618 char **argv;
3620 main ()
3622 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3624 return 0;
3626 _ACEOF
3627 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3628 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3630 CC="$ac_save_CC $ac_arg"
3631 rm -f conftest.$ac_objext
3632 if { (ac_try="$ac_compile"
3633 case "(($ac_try" in
3634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3635 *) ac_try_echo=$ac_try;;
3636 esac
3637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3638 (eval "$ac_compile") 2>conftest.er1
3639 ac_status=$?
3640 grep -v '^ *+' conftest.er1 >conftest.err
3641 rm -f conftest.er1
3642 cat conftest.err >&5
3643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3644 (exit $ac_status); } && {
3645 test -z "$ac_c_werror_flag" ||
3646 test ! -s conftest.err
3647 } && test -s conftest.$ac_objext; then
3648 ac_cv_prog_cc_c89=$ac_arg
3649 else
3650 echo "$as_me: failed program was:" >&5
3651 sed 's/^/| /' conftest.$ac_ext >&5
3656 rm -f core conftest.err conftest.$ac_objext
3657 test "x$ac_cv_prog_cc_c89" != "xno" && break
3658 done
3659 rm -f conftest.$ac_ext
3660 CC=$ac_save_CC
3663 # AC_CACHE_VAL
3664 case "x$ac_cv_prog_cc_c89" in
3666 { echo "$as_me:$LINENO: result: none needed" >&5
3667 echo "${ECHO_T}none needed" >&6; } ;;
3668 xno)
3669 { echo "$as_me:$LINENO: result: unsupported" >&5
3670 echo "${ECHO_T}unsupported" >&6; } ;;
3672 CC="$CC $ac_cv_prog_cc_c89"
3673 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3674 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3675 esac
3678 ac_ext=c
3679 ac_cpp='$CPP $CPPFLAGS'
3680 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3681 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3682 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3684 if test $host != $build; then
3685 for ac_prog in gcc cc
3687 # Extract the first word of "$ac_prog", so it can be a program name with args.
3688 set dummy $ac_prog; ac_word=$2
3689 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3690 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3691 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
3692 echo $ECHO_N "(cached) $ECHO_C" >&6
3693 else
3694 if test -n "$BUILD_CC"; then
3695 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
3696 else
3697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3698 for as_dir in $PATH
3700 IFS=$as_save_IFS
3701 test -z "$as_dir" && as_dir=.
3702 for ac_exec_ext in '' $ac_executable_extensions; do
3703 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3704 ac_cv_prog_BUILD_CC="$ac_prog"
3705 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3706 break 2
3708 done
3709 done
3710 IFS=$as_save_IFS
3714 BUILD_CC=$ac_cv_prog_BUILD_CC
3715 if test -n "$BUILD_CC"; then
3716 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
3717 echo "${ECHO_T}$BUILD_CC" >&6; }
3718 else
3719 { echo "$as_me:$LINENO: result: no" >&5
3720 echo "${ECHO_T}no" >&6; }
3724 test -n "$BUILD_CC" && break
3725 done
3729 ac_ext=c
3730 ac_cpp='$CPP $CPPFLAGS'
3731 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3732 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3733 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3734 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3735 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3736 # On Suns, sometimes $CPP names a directory.
3737 if test -n "$CPP" && test -d "$CPP"; then
3738 CPP=
3740 if test -z "$CPP"; then
3741 if test "${ac_cv_prog_CPP+set}" = set; then
3742 echo $ECHO_N "(cached) $ECHO_C" >&6
3743 else
3744 # Double quotes because CPP needs to be expanded
3745 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3747 ac_preproc_ok=false
3748 for ac_c_preproc_warn_flag in '' yes
3750 # Use a header file that comes with gcc, so configuring glibc
3751 # with a fresh cross-compiler works.
3752 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3753 # <limits.h> exists even on freestanding compilers.
3754 # On the NeXT, cc -E runs the code through the compiler's parser,
3755 # not just through cpp. "Syntax error" is here to catch this case.
3756 cat >conftest.$ac_ext <<_ACEOF
3757 /* confdefs.h. */
3758 _ACEOF
3759 cat confdefs.h >>conftest.$ac_ext
3760 cat >>conftest.$ac_ext <<_ACEOF
3761 /* end confdefs.h. */
3762 #ifdef __STDC__
3763 # include <limits.h>
3764 #else
3765 # include <assert.h>
3766 #endif
3767 Syntax error
3768 _ACEOF
3769 if { (ac_try="$ac_cpp conftest.$ac_ext"
3770 case "(($ac_try" in
3771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3772 *) ac_try_echo=$ac_try;;
3773 esac
3774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3775 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3776 ac_status=$?
3777 grep -v '^ *+' conftest.er1 >conftest.err
3778 rm -f conftest.er1
3779 cat conftest.err >&5
3780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3781 (exit $ac_status); } >/dev/null && {
3782 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3783 test ! -s conftest.err
3784 }; then
3786 else
3787 echo "$as_me: failed program was:" >&5
3788 sed 's/^/| /' conftest.$ac_ext >&5
3790 # Broken: fails on valid input.
3791 continue
3794 rm -f conftest.err conftest.$ac_ext
3796 # OK, works on sane cases. Now check whether nonexistent headers
3797 # can be detected and how.
3798 cat >conftest.$ac_ext <<_ACEOF
3799 /* confdefs.h. */
3800 _ACEOF
3801 cat confdefs.h >>conftest.$ac_ext
3802 cat >>conftest.$ac_ext <<_ACEOF
3803 /* end confdefs.h. */
3804 #include <ac_nonexistent.h>
3805 _ACEOF
3806 if { (ac_try="$ac_cpp conftest.$ac_ext"
3807 case "(($ac_try" in
3808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3809 *) ac_try_echo=$ac_try;;
3810 esac
3811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3812 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3813 ac_status=$?
3814 grep -v '^ *+' conftest.er1 >conftest.err
3815 rm -f conftest.er1
3816 cat conftest.err >&5
3817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3818 (exit $ac_status); } >/dev/null && {
3819 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3820 test ! -s conftest.err
3821 }; then
3822 # Broken: success on invalid input.
3823 continue
3824 else
3825 echo "$as_me: failed program was:" >&5
3826 sed 's/^/| /' conftest.$ac_ext >&5
3828 # Passes both tests.
3829 ac_preproc_ok=:
3830 break
3833 rm -f conftest.err conftest.$ac_ext
3835 done
3836 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3837 rm -f conftest.err conftest.$ac_ext
3838 if $ac_preproc_ok; then
3839 break
3842 done
3843 ac_cv_prog_CPP=$CPP
3846 CPP=$ac_cv_prog_CPP
3847 else
3848 ac_cv_prog_CPP=$CPP
3850 { echo "$as_me:$LINENO: result: $CPP" >&5
3851 echo "${ECHO_T}$CPP" >&6; }
3852 ac_preproc_ok=false
3853 for ac_c_preproc_warn_flag in '' yes
3855 # Use a header file that comes with gcc, so configuring glibc
3856 # with a fresh cross-compiler works.
3857 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3858 # <limits.h> exists even on freestanding compilers.
3859 # On the NeXT, cc -E runs the code through the compiler's parser,
3860 # not just through cpp. "Syntax error" is here to catch this case.
3861 cat >conftest.$ac_ext <<_ACEOF
3862 /* confdefs.h. */
3863 _ACEOF
3864 cat confdefs.h >>conftest.$ac_ext
3865 cat >>conftest.$ac_ext <<_ACEOF
3866 /* end confdefs.h. */
3867 #ifdef __STDC__
3868 # include <limits.h>
3869 #else
3870 # include <assert.h>
3871 #endif
3872 Syntax error
3873 _ACEOF
3874 if { (ac_try="$ac_cpp conftest.$ac_ext"
3875 case "(($ac_try" in
3876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3877 *) ac_try_echo=$ac_try;;
3878 esac
3879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3880 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3881 ac_status=$?
3882 grep -v '^ *+' conftest.er1 >conftest.err
3883 rm -f conftest.er1
3884 cat conftest.err >&5
3885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3886 (exit $ac_status); } >/dev/null && {
3887 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3888 test ! -s conftest.err
3889 }; then
3891 else
3892 echo "$as_me: failed program was:" >&5
3893 sed 's/^/| /' conftest.$ac_ext >&5
3895 # Broken: fails on valid input.
3896 continue
3899 rm -f conftest.err conftest.$ac_ext
3901 # OK, works on sane cases. Now check whether nonexistent headers
3902 # can be detected and how.
3903 cat >conftest.$ac_ext <<_ACEOF
3904 /* confdefs.h. */
3905 _ACEOF
3906 cat confdefs.h >>conftest.$ac_ext
3907 cat >>conftest.$ac_ext <<_ACEOF
3908 /* end confdefs.h. */
3909 #include <ac_nonexistent.h>
3910 _ACEOF
3911 if { (ac_try="$ac_cpp conftest.$ac_ext"
3912 case "(($ac_try" in
3913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3914 *) ac_try_echo=$ac_try;;
3915 esac
3916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3917 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3918 ac_status=$?
3919 grep -v '^ *+' conftest.er1 >conftest.err
3920 rm -f conftest.er1
3921 cat conftest.err >&5
3922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3923 (exit $ac_status); } >/dev/null && {
3924 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3925 test ! -s conftest.err
3926 }; then
3927 # Broken: success on invalid input.
3928 continue
3929 else
3930 echo "$as_me: failed program was:" >&5
3931 sed 's/^/| /' conftest.$ac_ext >&5
3933 # Passes both tests.
3934 ac_preproc_ok=:
3935 break
3938 rm -f conftest.err conftest.$ac_ext
3940 done
3941 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3942 rm -f conftest.err conftest.$ac_ext
3943 if $ac_preproc_ok; then
3945 else
3946 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3947 See \`config.log' for more details." >&5
3948 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3949 See \`config.log' for more details." >&2;}
3950 { (exit 1); exit 1; }; }
3953 ac_ext=c
3954 ac_cpp='$CPP $CPPFLAGS'
3955 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3956 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3957 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3959 # We need the C++ compiler only for testing.
3960 ac_ext=cpp
3961 ac_cpp='$CXXCPP $CPPFLAGS'
3962 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3963 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3964 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3965 if test -z "$CXX"; then
3966 if test -n "$CCC"; then
3967 CXX=$CCC
3968 else
3969 if test -n "$ac_tool_prefix"; then
3970 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3972 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3973 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3974 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3975 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3976 if test "${ac_cv_prog_CXX+set}" = set; then
3977 echo $ECHO_N "(cached) $ECHO_C" >&6
3978 else
3979 if test -n "$CXX"; then
3980 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3981 else
3982 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3983 for as_dir in $PATH
3985 IFS=$as_save_IFS
3986 test -z "$as_dir" && as_dir=.
3987 for ac_exec_ext in '' $ac_executable_extensions; do
3988 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3989 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3990 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3991 break 2
3993 done
3994 done
3995 IFS=$as_save_IFS
3999 CXX=$ac_cv_prog_CXX
4000 if test -n "$CXX"; then
4001 { echo "$as_me:$LINENO: result: $CXX" >&5
4002 echo "${ECHO_T}$CXX" >&6; }
4003 else
4004 { echo "$as_me:$LINENO: result: no" >&5
4005 echo "${ECHO_T}no" >&6; }
4009 test -n "$CXX" && break
4010 done
4012 if test -z "$CXX"; then
4013 ac_ct_CXX=$CXX
4014 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4016 # Extract the first word of "$ac_prog", so it can be a program name with args.
4017 set dummy $ac_prog; ac_word=$2
4018 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4019 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4020 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4021 echo $ECHO_N "(cached) $ECHO_C" >&6
4022 else
4023 if test -n "$ac_ct_CXX"; then
4024 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4025 else
4026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4027 for as_dir in $PATH
4029 IFS=$as_save_IFS
4030 test -z "$as_dir" && as_dir=.
4031 for ac_exec_ext in '' $ac_executable_extensions; do
4032 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4033 ac_cv_prog_ac_ct_CXX="$ac_prog"
4034 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4035 break 2
4037 done
4038 done
4039 IFS=$as_save_IFS
4043 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4044 if test -n "$ac_ct_CXX"; then
4045 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4046 echo "${ECHO_T}$ac_ct_CXX" >&6; }
4047 else
4048 { echo "$as_me:$LINENO: result: no" >&5
4049 echo "${ECHO_T}no" >&6; }
4053 test -n "$ac_ct_CXX" && break
4054 done
4056 if test "x$ac_ct_CXX" = x; then
4057 CXX="g++"
4058 else
4059 case $cross_compiling:$ac_tool_warned in
4060 yes:)
4061 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4062 whose name does not start with the host triplet. If you think this
4063 configuration is useful to you, please write to autoconf@gnu.org." >&5
4064 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4065 whose name does not start with the host triplet. If you think this
4066 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4067 ac_tool_warned=yes ;;
4068 esac
4069 CXX=$ac_ct_CXX
4075 # Provide some information about the compiler.
4076 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
4077 ac_compiler=`set X $ac_compile; echo $2`
4078 { (ac_try="$ac_compiler --version >&5"
4079 case "(($ac_try" in
4080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4081 *) ac_try_echo=$ac_try;;
4082 esac
4083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4084 (eval "$ac_compiler --version >&5") 2>&5
4085 ac_status=$?
4086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4087 (exit $ac_status); }
4088 { (ac_try="$ac_compiler -v >&5"
4089 case "(($ac_try" in
4090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4091 *) ac_try_echo=$ac_try;;
4092 esac
4093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4094 (eval "$ac_compiler -v >&5") 2>&5
4095 ac_status=$?
4096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4097 (exit $ac_status); }
4098 { (ac_try="$ac_compiler -V >&5"
4099 case "(($ac_try" in
4100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4101 *) ac_try_echo=$ac_try;;
4102 esac
4103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4104 (eval "$ac_compiler -V >&5") 2>&5
4105 ac_status=$?
4106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4107 (exit $ac_status); }
4109 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4110 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
4111 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4112 echo $ECHO_N "(cached) $ECHO_C" >&6
4113 else
4114 cat >conftest.$ac_ext <<_ACEOF
4115 /* confdefs.h. */
4116 _ACEOF
4117 cat confdefs.h >>conftest.$ac_ext
4118 cat >>conftest.$ac_ext <<_ACEOF
4119 /* end confdefs.h. */
4122 main ()
4124 #ifndef __GNUC__
4125 choke me
4126 #endif
4129 return 0;
4131 _ACEOF
4132 rm -f conftest.$ac_objext
4133 if { (ac_try="$ac_compile"
4134 case "(($ac_try" in
4135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4136 *) ac_try_echo=$ac_try;;
4137 esac
4138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4139 (eval "$ac_compile") 2>conftest.er1
4140 ac_status=$?
4141 grep -v '^ *+' conftest.er1 >conftest.err
4142 rm -f conftest.er1
4143 cat conftest.err >&5
4144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4145 (exit $ac_status); } && {
4146 test -z "$ac_cxx_werror_flag" ||
4147 test ! -s conftest.err
4148 } && test -s conftest.$ac_objext; then
4149 ac_compiler_gnu=yes
4150 else
4151 echo "$as_me: failed program was:" >&5
4152 sed 's/^/| /' conftest.$ac_ext >&5
4154 ac_compiler_gnu=no
4157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4158 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4161 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4162 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
4163 GXX=`test $ac_compiler_gnu = yes && echo yes`
4164 ac_test_CXXFLAGS=${CXXFLAGS+set}
4165 ac_save_CXXFLAGS=$CXXFLAGS
4166 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4167 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
4168 if test "${ac_cv_prog_cxx_g+set}" = set; then
4169 echo $ECHO_N "(cached) $ECHO_C" >&6
4170 else
4171 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4172 ac_cxx_werror_flag=yes
4173 ac_cv_prog_cxx_g=no
4174 CXXFLAGS="-g"
4175 cat >conftest.$ac_ext <<_ACEOF
4176 /* confdefs.h. */
4177 _ACEOF
4178 cat confdefs.h >>conftest.$ac_ext
4179 cat >>conftest.$ac_ext <<_ACEOF
4180 /* end confdefs.h. */
4183 main ()
4187 return 0;
4189 _ACEOF
4190 rm -f conftest.$ac_objext
4191 if { (ac_try="$ac_compile"
4192 case "(($ac_try" in
4193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4194 *) ac_try_echo=$ac_try;;
4195 esac
4196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4197 (eval "$ac_compile") 2>conftest.er1
4198 ac_status=$?
4199 grep -v '^ *+' conftest.er1 >conftest.err
4200 rm -f conftest.er1
4201 cat conftest.err >&5
4202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4203 (exit $ac_status); } && {
4204 test -z "$ac_cxx_werror_flag" ||
4205 test ! -s conftest.err
4206 } && test -s conftest.$ac_objext; then
4207 ac_cv_prog_cxx_g=yes
4208 else
4209 echo "$as_me: failed program was:" >&5
4210 sed 's/^/| /' conftest.$ac_ext >&5
4212 CXXFLAGS=""
4213 cat >conftest.$ac_ext <<_ACEOF
4214 /* confdefs.h. */
4215 _ACEOF
4216 cat confdefs.h >>conftest.$ac_ext
4217 cat >>conftest.$ac_ext <<_ACEOF
4218 /* end confdefs.h. */
4221 main ()
4225 return 0;
4227 _ACEOF
4228 rm -f conftest.$ac_objext
4229 if { (ac_try="$ac_compile"
4230 case "(($ac_try" in
4231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4232 *) ac_try_echo=$ac_try;;
4233 esac
4234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4235 (eval "$ac_compile") 2>conftest.er1
4236 ac_status=$?
4237 grep -v '^ *+' conftest.er1 >conftest.err
4238 rm -f conftest.er1
4239 cat conftest.err >&5
4240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4241 (exit $ac_status); } && {
4242 test -z "$ac_cxx_werror_flag" ||
4243 test ! -s conftest.err
4244 } && test -s conftest.$ac_objext; then
4246 else
4247 echo "$as_me: failed program was:" >&5
4248 sed 's/^/| /' conftest.$ac_ext >&5
4250 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4251 CXXFLAGS="-g"
4252 cat >conftest.$ac_ext <<_ACEOF
4253 /* confdefs.h. */
4254 _ACEOF
4255 cat confdefs.h >>conftest.$ac_ext
4256 cat >>conftest.$ac_ext <<_ACEOF
4257 /* end confdefs.h. */
4260 main ()
4264 return 0;
4266 _ACEOF
4267 rm -f conftest.$ac_objext
4268 if { (ac_try="$ac_compile"
4269 case "(($ac_try" in
4270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4271 *) ac_try_echo=$ac_try;;
4272 esac
4273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4274 (eval "$ac_compile") 2>conftest.er1
4275 ac_status=$?
4276 grep -v '^ *+' conftest.er1 >conftest.err
4277 rm -f conftest.er1
4278 cat conftest.err >&5
4279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4280 (exit $ac_status); } && {
4281 test -z "$ac_cxx_werror_flag" ||
4282 test ! -s conftest.err
4283 } && test -s conftest.$ac_objext; then
4284 ac_cv_prog_cxx_g=yes
4285 else
4286 echo "$as_me: failed program was:" >&5
4287 sed 's/^/| /' conftest.$ac_ext >&5
4292 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4295 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4298 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4299 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4301 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4302 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
4303 if test "$ac_test_CXXFLAGS" = set; then
4304 CXXFLAGS=$ac_save_CXXFLAGS
4305 elif test $ac_cv_prog_cxx_g = yes; then
4306 if test "$GXX" = yes; then
4307 CXXFLAGS="-g -O2"
4308 else
4309 CXXFLAGS="-g"
4311 else
4312 if test "$GXX" = yes; then
4313 CXXFLAGS="-O2"
4314 else
4315 CXXFLAGS=
4318 ac_ext=c
4319 ac_cpp='$CPP $CPPFLAGS'
4320 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4321 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4322 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4324 # Was a --with-binutils option given?
4325 if test -n "$path_binutils"; then
4326 # Make absolute; ensure a single trailing slash.
4327 path_binutils=`(cd $path_binutils; pwd) | sed 's%/*$%/%'`
4328 CC="$CC -B$path_binutils"
4330 AS=`$CC -print-prog-name=as`
4331 LD=`$CC -print-prog-name=ld`
4332 AR=`$CC -print-prog-name=ar`
4334 OBJDUMP=`$CC -print-prog-name=objdump`
4337 # ranlib has to be treated a bit differently since it might not exist at all.
4338 ac_ranlib=`$CC -print-prog-name=ranlib`
4339 if test "x$ac_ranlib" = xranlib; then
4340 # This extra check has to happen since gcc simply echos the parameter in
4341 # case it cannot find the value in its own directories.
4342 if test -n "$ac_tool_prefix"; then
4343 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4344 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4345 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4346 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4347 if test "${ac_cv_prog_RANLIB+set}" = set; then
4348 echo $ECHO_N "(cached) $ECHO_C" >&6
4349 else
4350 if test -n "$RANLIB"; then
4351 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4352 else
4353 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4354 for as_dir in $PATH
4356 IFS=$as_save_IFS
4357 test -z "$as_dir" && as_dir=.
4358 for ac_exec_ext in '' $ac_executable_extensions; do
4359 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4360 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4361 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4362 break 2
4364 done
4365 done
4366 IFS=$as_save_IFS
4370 RANLIB=$ac_cv_prog_RANLIB
4371 if test -n "$RANLIB"; then
4372 { echo "$as_me:$LINENO: result: $RANLIB" >&5
4373 echo "${ECHO_T}$RANLIB" >&6; }
4374 else
4375 { echo "$as_me:$LINENO: result: no" >&5
4376 echo "${ECHO_T}no" >&6; }
4381 if test -z "$ac_cv_prog_RANLIB"; then
4382 ac_ct_RANLIB=$RANLIB
4383 # Extract the first word of "ranlib", so it can be a program name with args.
4384 set dummy ranlib; ac_word=$2
4385 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4386 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4387 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4388 echo $ECHO_N "(cached) $ECHO_C" >&6
4389 else
4390 if test -n "$ac_ct_RANLIB"; then
4391 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4392 else
4393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4394 for as_dir in $PATH
4396 IFS=$as_save_IFS
4397 test -z "$as_dir" && as_dir=.
4398 for ac_exec_ext in '' $ac_executable_extensions; do
4399 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4400 ac_cv_prog_ac_ct_RANLIB="ranlib"
4401 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4402 break 2
4404 done
4405 done
4406 IFS=$as_save_IFS
4410 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4411 if test -n "$ac_ct_RANLIB"; then
4412 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4413 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
4414 else
4415 { echo "$as_me:$LINENO: result: no" >&5
4416 echo "${ECHO_T}no" >&6; }
4419 if test "x$ac_ct_RANLIB" = x; then
4420 RANLIB=":"
4421 else
4422 case $cross_compiling:$ac_tool_warned in
4423 yes:)
4424 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4425 whose name does not start with the host triplet. If you think this
4426 configuration is useful to you, please write to autoconf@gnu.org." >&5
4427 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4428 whose name does not start with the host triplet. If you think this
4429 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4430 ac_tool_warned=yes ;;
4431 esac
4432 RANLIB=$ac_ct_RANLIB
4434 else
4435 RANLIB="$ac_cv_prog_RANLIB"
4438 else
4439 RANLIB=$ac_ranlib
4443 # Determine whether we are using GNU binutils.
4444 { echo "$as_me:$LINENO: checking whether $AS is GNU as" >&5
4445 echo $ECHO_N "checking whether $AS is GNU as... $ECHO_C" >&6; }
4446 if test "${libc_cv_prog_as_gnu+set}" = set; then
4447 echo $ECHO_N "(cached) $ECHO_C" >&6
4448 else
4449 # Most GNU programs take a -v and spit out some text including
4450 # the word 'GNU'. Some try to read stdin, so give them /dev/null.
4451 if $AS -o conftest -v </dev/null 2>&1 | grep GNU > /dev/null 2>&1; then
4452 libc_cv_prog_as_gnu=yes
4453 else
4454 libc_cv_prog_as_gnu=no
4456 rm -fr contest*
4458 { echo "$as_me:$LINENO: result: $libc_cv_prog_as_gnu" >&5
4459 echo "${ECHO_T}$libc_cv_prog_as_gnu" >&6; }
4460 rm -f a.out
4461 gnu_as=$libc_cv_prog_as_gnu
4463 { echo "$as_me:$LINENO: checking whether $LD is GNU ld" >&5
4464 echo $ECHO_N "checking whether $LD is GNU ld... $ECHO_C" >&6; }
4465 if test "${libc_cv_prog_ld_gnu+set}" = set; then
4466 echo $ECHO_N "(cached) $ECHO_C" >&6
4467 else
4468 # Most GNU programs take a -v and spit out some text including
4469 # the word 'GNU'. Some try to read stdin, so give them /dev/null.
4470 if $LD -o conftest -v </dev/null 2>&1 | grep GNU > /dev/null 2>&1; then
4471 libc_cv_prog_ld_gnu=yes
4472 else
4473 libc_cv_prog_ld_gnu=no
4475 rm -fr contest*
4477 { echo "$as_me:$LINENO: result: $libc_cv_prog_ld_gnu" >&5
4478 echo "${ECHO_T}$libc_cv_prog_ld_gnu" >&6; }
4479 gnu_ld=$libc_cv_prog_ld_gnu
4482 # Accept binutils 2.13 or newer.
4483 for ac_prog in $AS
4485 # Extract the first word of "$ac_prog", so it can be a program name with args.
4486 set dummy $ac_prog; ac_word=$2
4487 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4488 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4489 if test "${ac_cv_prog_AS+set}" = set; then
4490 echo $ECHO_N "(cached) $ECHO_C" >&6
4491 else
4492 if test -n "$AS"; then
4493 ac_cv_prog_AS="$AS" # Let the user override the test.
4494 else
4495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4496 for as_dir in $PATH
4498 IFS=$as_save_IFS
4499 test -z "$as_dir" && as_dir=.
4500 for ac_exec_ext in '' $ac_executable_extensions; do
4501 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4502 ac_cv_prog_AS="$ac_prog"
4503 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4504 break 2
4506 done
4507 done
4508 IFS=$as_save_IFS
4512 AS=$ac_cv_prog_AS
4513 if test -n "$AS"; then
4514 { echo "$as_me:$LINENO: result: $AS" >&5
4515 echo "${ECHO_T}$AS" >&6; }
4516 else
4517 { echo "$as_me:$LINENO: result: no" >&5
4518 echo "${ECHO_T}no" >&6; }
4522 test -n "$AS" && break
4523 done
4525 if test -z "$AS"; then
4526 ac_verc_fail=yes
4527 else
4528 # Found it, now check the version.
4529 { echo "$as_me:$LINENO: checking version of $AS" >&5
4530 echo $ECHO_N "checking version of $AS... $ECHO_C" >&6; }
4531 ac_prog_version=`$AS --version 2>&1 | sed -n 's/^.*GNU assembler.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
4532 case $ac_prog_version in
4533 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
4534 2.1[3-9]*)
4535 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
4536 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
4538 esac
4539 { echo "$as_me:$LINENO: result: $ac_prog_version" >&5
4540 echo "${ECHO_T}$ac_prog_version" >&6; }
4542 if test $ac_verc_fail = yes; then
4543 AS=: critic_missing="$critic_missing as"
4546 for ac_prog in $LD
4548 # Extract the first word of "$ac_prog", so it can be a program name with args.
4549 set dummy $ac_prog; ac_word=$2
4550 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4551 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4552 if test "${ac_cv_prog_LD+set}" = set; then
4553 echo $ECHO_N "(cached) $ECHO_C" >&6
4554 else
4555 if test -n "$LD"; then
4556 ac_cv_prog_LD="$LD" # Let the user override the test.
4557 else
4558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4559 for as_dir in $PATH
4561 IFS=$as_save_IFS
4562 test -z "$as_dir" && as_dir=.
4563 for ac_exec_ext in '' $ac_executable_extensions; do
4564 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4565 ac_cv_prog_LD="$ac_prog"
4566 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4567 break 2
4569 done
4570 done
4571 IFS=$as_save_IFS
4575 LD=$ac_cv_prog_LD
4576 if test -n "$LD"; then
4577 { echo "$as_me:$LINENO: result: $LD" >&5
4578 echo "${ECHO_T}$LD" >&6; }
4579 else
4580 { echo "$as_me:$LINENO: result: no" >&5
4581 echo "${ECHO_T}no" >&6; }
4585 test -n "$LD" && break
4586 done
4588 if test -z "$LD"; then
4589 ac_verc_fail=yes
4590 else
4591 # Found it, now check the version.
4592 { echo "$as_me:$LINENO: checking version of $LD" >&5
4593 echo $ECHO_N "checking version of $LD... $ECHO_C" >&6; }
4594 ac_prog_version=`$LD --version 2>&1 | sed -n 's/^.*GNU ld.* \([0-9][0-9]*\.[0-9.]*\).*$/\1/p'`
4595 case $ac_prog_version in
4596 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
4597 2.1[3-9]*)
4598 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
4599 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
4601 esac
4602 { echo "$as_me:$LINENO: result: $ac_prog_version" >&5
4603 echo "${ECHO_T}$ac_prog_version" >&6; }
4605 if test $ac_verc_fail = yes; then
4606 LD=: critic_missing="$critic_missing ld"
4610 # We need the physical current working directory. We cannot use the
4611 # "pwd -P" shell builtin since that's not portable. Instead we try to
4612 # find a pwd binary. Note that assigning to the PWD environment
4613 # variable might have some interesting side effects, so we don't do
4614 # that.
4615 # Extract the first word of "pwd", so it can be a program name with args.
4616 set dummy pwd; ac_word=$2
4617 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4618 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4619 if test "${ac_cv_path_PWD_P+set}" = set; then
4620 echo $ECHO_N "(cached) $ECHO_C" >&6
4621 else
4622 case $PWD_P in
4623 [\\/]* | ?:[\\/]*)
4624 ac_cv_path_PWD_P="$PWD_P" # Let the user override the test with a path.
4627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4628 for as_dir in $PATH
4630 IFS=$as_save_IFS
4631 test -z "$as_dir" && as_dir=.
4632 for ac_exec_ext in '' $ac_executable_extensions; do
4633 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4634 ac_cv_path_PWD_P="$as_dir/$ac_word$ac_exec_ext"
4635 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4636 break 2
4638 done
4639 done
4640 IFS=$as_save_IFS
4642 test -z "$ac_cv_path_PWD_P" && ac_cv_path_PWD_P="no"
4644 esac
4646 PWD_P=$ac_cv_path_PWD_P
4647 if test -n "$PWD_P"; then
4648 { echo "$as_me:$LINENO: result: $PWD_P" >&5
4649 echo "${ECHO_T}$PWD_P" >&6; }
4650 else
4651 { echo "$as_me:$LINENO: result: no" >&5
4652 echo "${ECHO_T}no" >&6; }
4656 if test "$PWD_P" = no; then
4657 { { echo "$as_me:$LINENO: error: *** A pwd binary could not be found." >&5
4658 echo "$as_me: error: *** A pwd binary could not be found." >&2;}
4659 { (exit 1); exit 1; }; }
4662 # These programs are version sensitive.
4664 for ac_prog in ${ac_tool_prefix}gcc ${ac_tool_prefix}cc
4666 # Extract the first word of "$ac_prog", so it can be a program name with args.
4667 set dummy $ac_prog; ac_word=$2
4668 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4669 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4670 if test "${ac_cv_prog_CC+set}" = set; then
4671 echo $ECHO_N "(cached) $ECHO_C" >&6
4672 else
4673 if test -n "$CC"; then
4674 ac_cv_prog_CC="$CC" # Let the user override the test.
4675 else
4676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4677 for as_dir in $PATH
4679 IFS=$as_save_IFS
4680 test -z "$as_dir" && as_dir=.
4681 for ac_exec_ext in '' $ac_executable_extensions; do
4682 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4683 ac_cv_prog_CC="$ac_prog"
4684 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4685 break 2
4687 done
4688 done
4689 IFS=$as_save_IFS
4693 CC=$ac_cv_prog_CC
4694 if test -n "$CC"; then
4695 { echo "$as_me:$LINENO: result: $CC" >&5
4696 echo "${ECHO_T}$CC" >&6; }
4697 else
4698 { echo "$as_me:$LINENO: result: no" >&5
4699 echo "${ECHO_T}no" >&6; }
4703 test -n "$CC" && break
4704 done
4706 if test -z "$CC"; then
4707 ac_verc_fail=yes
4708 else
4709 # Found it, now check the version.
4710 { echo "$as_me:$LINENO: checking version of $CC" >&5
4711 echo $ECHO_N "checking version of $CC... $ECHO_C" >&6; }
4712 ac_prog_version=`$CC -v 2>&1 | sed -n 's/^.*version \([egcygnustpi-]*[0-9.]*\).*$/\1/p'`
4713 case $ac_prog_version in
4714 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
4715 3.4* | 4.[0-9]* )
4716 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
4717 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
4719 esac
4720 { echo "$as_me:$LINENO: result: $ac_prog_version" >&5
4721 echo "${ECHO_T}$ac_prog_version" >&6; }
4723 if test $ac_verc_fail = yes; then
4724 critic_missing="$critic_missing gcc"
4727 for ac_prog in gnumake gmake make
4729 # Extract the first word of "$ac_prog", so it can be a program name with args.
4730 set dummy $ac_prog; ac_word=$2
4731 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4732 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4733 if test "${ac_cv_prog_MAKE+set}" = set; then
4734 echo $ECHO_N "(cached) $ECHO_C" >&6
4735 else
4736 if test -n "$MAKE"; then
4737 ac_cv_prog_MAKE="$MAKE" # Let the user override the test.
4738 else
4739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4740 for as_dir in $PATH
4742 IFS=$as_save_IFS
4743 test -z "$as_dir" && as_dir=.
4744 for ac_exec_ext in '' $ac_executable_extensions; do
4745 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4746 ac_cv_prog_MAKE="$ac_prog"
4747 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4748 break 2
4750 done
4751 done
4752 IFS=$as_save_IFS
4756 MAKE=$ac_cv_prog_MAKE
4757 if test -n "$MAKE"; then
4758 { echo "$as_me:$LINENO: result: $MAKE" >&5
4759 echo "${ECHO_T}$MAKE" >&6; }
4760 else
4761 { echo "$as_me:$LINENO: result: no" >&5
4762 echo "${ECHO_T}no" >&6; }
4766 test -n "$MAKE" && break
4767 done
4769 if test -z "$MAKE"; then
4770 ac_verc_fail=yes
4771 else
4772 # Found it, now check the version.
4773 { echo "$as_me:$LINENO: checking version of $MAKE" >&5
4774 echo $ECHO_N "checking version of $MAKE... $ECHO_C" >&6; }
4775 ac_prog_version=`$MAKE --version 2>&1 | sed -n 's/^.*GNU Make[^0-9]*\([0-9][0-9.]*\).*$/\1/p'`
4776 case $ac_prog_version in
4777 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
4778 3.79* | 3.[89]*)
4779 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
4780 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
4782 esac
4783 { echo "$as_me:$LINENO: result: $ac_prog_version" >&5
4784 echo "${ECHO_T}$ac_prog_version" >&6; }
4786 if test $ac_verc_fail = yes; then
4787 critic_missing="$critic_missing make"
4791 for ac_prog in gnumsgfmt gmsgfmt msgfmt
4793 # Extract the first word of "$ac_prog", so it can be a program name with args.
4794 set dummy $ac_prog; ac_word=$2
4795 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4796 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4797 if test "${ac_cv_prog_MSGFMT+set}" = set; then
4798 echo $ECHO_N "(cached) $ECHO_C" >&6
4799 else
4800 if test -n "$MSGFMT"; then
4801 ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
4802 else
4803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4804 for as_dir in $PATH
4806 IFS=$as_save_IFS
4807 test -z "$as_dir" && as_dir=.
4808 for ac_exec_ext in '' $ac_executable_extensions; do
4809 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4810 ac_cv_prog_MSGFMT="$ac_prog"
4811 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4812 break 2
4814 done
4815 done
4816 IFS=$as_save_IFS
4820 MSGFMT=$ac_cv_prog_MSGFMT
4821 if test -n "$MSGFMT"; then
4822 { echo "$as_me:$LINENO: result: $MSGFMT" >&5
4823 echo "${ECHO_T}$MSGFMT" >&6; }
4824 else
4825 { echo "$as_me:$LINENO: result: no" >&5
4826 echo "${ECHO_T}no" >&6; }
4830 test -n "$MSGFMT" && break
4831 done
4833 if test -z "$MSGFMT"; then
4834 ac_verc_fail=yes
4835 else
4836 # Found it, now check the version.
4837 { echo "$as_me:$LINENO: checking version of $MSGFMT" >&5
4838 echo $ECHO_N "checking version of $MSGFMT... $ECHO_C" >&6; }
4839 ac_prog_version=`$MSGFMT --version 2>&1 | sed -n 's/^.*GNU gettext.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
4840 case $ac_prog_version in
4841 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
4842 0.10.3[6-9]* | 0.10.[4-9][0-9]* | 0.1[1-9]* | 0.[2-9][0-9]* | [1-9].*)
4843 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
4844 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
4846 esac
4847 { echo "$as_me:$LINENO: result: $ac_prog_version" >&5
4848 echo "${ECHO_T}$ac_prog_version" >&6; }
4850 if test $ac_verc_fail = yes; then
4851 MSGFMT=: aux_missing="$aux_missing msgfmt"
4854 for ac_prog in makeinfo
4856 # Extract the first word of "$ac_prog", so it can be a program name with args.
4857 set dummy $ac_prog; ac_word=$2
4858 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4859 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4860 if test "${ac_cv_prog_MAKEINFO+set}" = set; then
4861 echo $ECHO_N "(cached) $ECHO_C" >&6
4862 else
4863 if test -n "$MAKEINFO"; then
4864 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
4865 else
4866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4867 for as_dir in $PATH
4869 IFS=$as_save_IFS
4870 test -z "$as_dir" && as_dir=.
4871 for ac_exec_ext in '' $ac_executable_extensions; do
4872 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4873 ac_cv_prog_MAKEINFO="$ac_prog"
4874 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4875 break 2
4877 done
4878 done
4879 IFS=$as_save_IFS
4883 MAKEINFO=$ac_cv_prog_MAKEINFO
4884 if test -n "$MAKEINFO"; then
4885 { echo "$as_me:$LINENO: result: $MAKEINFO" >&5
4886 echo "${ECHO_T}$MAKEINFO" >&6; }
4887 else
4888 { echo "$as_me:$LINENO: result: no" >&5
4889 echo "${ECHO_T}no" >&6; }
4893 test -n "$MAKEINFO" && break
4894 done
4896 if test -z "$MAKEINFO"; then
4897 ac_verc_fail=yes
4898 else
4899 # Found it, now check the version.
4900 { echo "$as_me:$LINENO: checking version of $MAKEINFO" >&5
4901 echo $ECHO_N "checking version of $MAKEINFO... $ECHO_C" >&6; }
4902 ac_prog_version=`$MAKEINFO --version 2>&1 | sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
4903 case $ac_prog_version in
4904 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
4905 4.*)
4906 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
4907 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
4909 esac
4910 { echo "$as_me:$LINENO: result: $ac_prog_version" >&5
4911 echo "${ECHO_T}$ac_prog_version" >&6; }
4913 if test $ac_verc_fail = yes; then
4914 MAKEINFO=: aux_missing="$aux_missing makeinfo"
4917 for ac_prog in sed
4919 # Extract the first word of "$ac_prog", so it can be a program name with args.
4920 set dummy $ac_prog; ac_word=$2
4921 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4922 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4923 if test "${ac_cv_prog_SED+set}" = set; then
4924 echo $ECHO_N "(cached) $ECHO_C" >&6
4925 else
4926 if test -n "$SED"; then
4927 ac_cv_prog_SED="$SED" # Let the user override the test.
4928 else
4929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4930 for as_dir in $PATH
4932 IFS=$as_save_IFS
4933 test -z "$as_dir" && as_dir=.
4934 for ac_exec_ext in '' $ac_executable_extensions; do
4935 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4936 ac_cv_prog_SED="$ac_prog"
4937 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4938 break 2
4940 done
4941 done
4942 IFS=$as_save_IFS
4946 SED=$ac_cv_prog_SED
4947 if test -n "$SED"; then
4948 { echo "$as_me:$LINENO: result: $SED" >&5
4949 echo "${ECHO_T}$SED" >&6; }
4950 else
4951 { echo "$as_me:$LINENO: result: no" >&5
4952 echo "${ECHO_T}no" >&6; }
4956 test -n "$SED" && break
4957 done
4959 if test -z "$SED"; then
4960 ac_verc_fail=yes
4961 else
4962 # Found it, now check the version.
4963 { echo "$as_me:$LINENO: checking version of $SED" >&5
4964 echo $ECHO_N "checking version of $SED... $ECHO_C" >&6; }
4965 ac_prog_version=`$SED --version 2>&1 | sed -n 's/^.*GNU sed version \([0-9]*\.[0-9.]*\).*$/\1/p'`
4966 case $ac_prog_version in
4967 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
4968 3.0[2-9]*|3.[1-9]*|[4-9]*)
4969 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
4970 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
4972 esac
4973 { echo "$as_me:$LINENO: result: $ac_prog_version" >&5
4974 echo "${ECHO_T}$ac_prog_version" >&6; }
4976 if test $ac_verc_fail = yes; then
4977 SED=: aux_missing="$aux_missing sed"
4981 for ac_prog in autoconf
4983 # Extract the first word of "$ac_prog", so it can be a program name with args.
4984 set dummy $ac_prog; ac_word=$2
4985 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4986 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4987 if test "${ac_cv_prog_AUTOCONF+set}" = set; then
4988 echo $ECHO_N "(cached) $ECHO_C" >&6
4989 else
4990 if test -n "$AUTOCONF"; then
4991 ac_cv_prog_AUTOCONF="$AUTOCONF" # Let the user override the test.
4992 else
4993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4994 for as_dir in $PATH
4996 IFS=$as_save_IFS
4997 test -z "$as_dir" && as_dir=.
4998 for ac_exec_ext in '' $ac_executable_extensions; do
4999 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5000 ac_cv_prog_AUTOCONF="$ac_prog"
5001 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5002 break 2
5004 done
5005 done
5006 IFS=$as_save_IFS
5010 AUTOCONF=$ac_cv_prog_AUTOCONF
5011 if test -n "$AUTOCONF"; then
5012 { echo "$as_me:$LINENO: result: $AUTOCONF" >&5
5013 echo "${ECHO_T}$AUTOCONF" >&6; }
5014 else
5015 { echo "$as_me:$LINENO: result: no" >&5
5016 echo "${ECHO_T}no" >&6; }
5020 test -n "$AUTOCONF" && break
5021 done
5022 test -n "$AUTOCONF" || AUTOCONF="no"
5024 case "x$AUTOCONF" in
5025 xno|x|x:) AUTOCONF=no ;;
5027 { echo "$as_me:$LINENO: checking whether $AUTOCONF${ACFLAGS:+ }$ACFLAGS works" >&5
5028 echo $ECHO_N "checking whether $AUTOCONF${ACFLAGS:+ }$ACFLAGS works... $ECHO_C" >&6; }
5029 if test "${libc_cv_autoconf_works+set}" = set; then
5030 echo $ECHO_N "(cached) $ECHO_C" >&6
5031 else
5032 if (cd $srcdir; $AUTOCONF $ACFLAGS configure.in > /dev/null 2>&1); then
5033 libc_cv_autoconf_works=yes
5034 else
5035 libc_cv_autoconf_works=no
5038 { echo "$as_me:$LINENO: result: $libc_cv_autoconf_works" >&5
5039 echo "${ECHO_T}$libc_cv_autoconf_works" >&6; }
5040 test $libc_cv_autoconf_works = yes || AUTOCONF=no
5042 esac
5043 if test "x$with_cvs" = xyes && test "x$AUTOCONF" = xno; then
5044 # If --without-cvs they probably won't change configure.in, so no complaints.
5045 aux_missing="$aux_missing autoconf"
5048 test -n "$critic_missing" && { { echo "$as_me:$LINENO: error:
5049 *** These critical programs are missing or too old:$critic_missing
5050 *** Check the INSTALL file for required versions." >&5
5051 echo "$as_me: error:
5052 *** These critical programs are missing or too old:$critic_missing
5053 *** Check the INSTALL file for required versions." >&2;}
5054 { (exit 1); exit 1; }; }
5056 test -n "$aux_missing" && { echo "$as_me:$LINENO: WARNING:
5057 *** These auxiliary programs are missing or incompatible versions:$aux_missing
5058 *** some features will be disabled.
5059 *** Check the INSTALL file for required versions." >&5
5060 echo "$as_me: WARNING:
5061 *** These auxiliary programs are missing or incompatible versions:$aux_missing
5062 *** some features will be disabled.
5063 *** Check the INSTALL file for required versions." >&2;}
5065 # if using special system headers, find out the compiler's sekrit
5066 # header directory and add that to the list. NOTE: Only does the right
5067 # thing on a system that doesn't need fixincludes. (Not presently a problem.)
5068 if test -n "$sysheaders"; then
5069 SYSINCLUDES=-nostdinc
5070 for d in include include-fixed; do
5071 i=`$CC -print-file-name="$d"` && test "x$i" != x && test "x$i" != "x$d" &&
5072 SYSINCLUDES="$SYSINCLUDES -isystem $i"
5073 done
5074 SYSINCLUDES="$SYSINCLUDES \
5075 -isystem `echo $sysheaders | sed 's/:/ -isystem /g'`"
5076 if test -n "$CXX"; then
5077 cxxversion=`$CXX -dumpversion 2>&5` &&
5078 cxxmachine=`$CXX -dumpmachine 2>&5` &&
5079 cxxheaders=`$CXX -print-file-name=../../../../include/c++/`"$cxxversion" &&
5080 CXX_SYSINCLUDES="-isystem $cxxheaders \
5081 -isystem $cxxheaders/$cxxmachine -isystem $cxxheaders/backward"
5087 # check if ranlib is necessary
5088 { echo "$as_me:$LINENO: checking whether ranlib is necessary" >&5
5089 echo $ECHO_N "checking whether ranlib is necessary... $ECHO_C" >&6; }
5090 if test "${libc_cv_ranlib_necessary+set}" = set; then
5091 echo $ECHO_N "(cached) $ECHO_C" >&6
5092 else
5093 cat > conftest.c <<EOF
5094 int a;
5095 char b;
5096 void c(void) {}
5098 $CC $CFLAGS $CPPFLAGS -c conftest.c
5099 $AR cr conftest.a conftest.o
5100 cp conftest.a conftest2.a
5101 $RANLIB conftest.a
5102 if cmp -s conftest.a conftest2.a; then
5103 libc_cv_ranlib_necessary=no
5104 else
5105 libc_cv_ranlib_necessary=yes
5107 rm -rf conftest*
5109 { echo "$as_me:$LINENO: result: $libc_cv_ranlib_necessary" >&5
5110 echo "${ECHO_T}$libc_cv_ranlib_necessary" >&6; }
5111 if test "$libc_cv_ranlib_necessary" = no; then
5112 RANLIB=:
5115 # Test if LD_LIBRARY_PATH contains the notation for the current directory
5116 # since this would lead to problems installing/building glibc.
5117 # LD_LIBRARY_PATH contains the current directory if one of the following
5118 # is true:
5119 # - one of the terminals (":" and ";") is the first or last sign
5120 # - two terminals occur directly after each other
5121 # - the path contains an element with a dot in it
5122 { echo "$as_me:$LINENO: checking LD_LIBRARY_PATH variable" >&5
5123 echo $ECHO_N "checking LD_LIBRARY_PATH variable... $ECHO_C" >&6; }
5124 case ${LD_LIBRARY_PATH} in
5125 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
5126 ld_library_path_setting="contains current directory"
5129 ld_library_path_setting="ok"
5131 esac
5132 { echo "$as_me:$LINENO: result: $ld_library_path_setting" >&5
5133 echo "${ECHO_T}$ld_library_path_setting" >&6; }
5134 if test "$ld_library_path_setting" != "ok"; then
5135 { { echo "$as_me:$LINENO: error:
5136 *** LD_LIBRARY_PATH shouldn't contain the current directory when
5137 *** building glibc. Please change the environment variable
5138 *** and run configure again." >&5
5139 echo "$as_me: error:
5140 *** LD_LIBRARY_PATH shouldn't contain the current directory when
5141 *** building glibc. Please change the environment variable
5142 *** and run configure again." >&2;}
5143 { (exit 1); exit 1; }; }
5146 { echo "$as_me:$LINENO: checking whether GCC supports -static-libgcc" >&5
5147 echo $ECHO_N "checking whether GCC supports -static-libgcc... $ECHO_C" >&6; }
5148 if test "${libc_cv_gcc_static_libgcc+set}" = set; then
5149 echo $ECHO_N "(cached) $ECHO_C" >&6
5150 else
5151 if $CC -v -static-libgcc 2>&1 | grep -q 'unrecognized option.*static-libgcc'; then
5152 libc_cv_gcc_static_libgcc=
5153 else
5154 libc_cv_gcc_static_libgcc=-static-libgcc
5157 { echo "$as_me:$LINENO: result: $libc_cv_gcc_static_libgcc" >&5
5158 echo "${ECHO_T}$libc_cv_gcc_static_libgcc" >&6; }
5161 # Extract the first word of "bash", so it can be a program name with args.
5162 set dummy bash; ac_word=$2
5163 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5164 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5165 if test "${ac_cv_path_BASH_SHELL+set}" = set; then
5166 echo $ECHO_N "(cached) $ECHO_C" >&6
5167 else
5168 case $BASH_SHELL in
5169 [\\/]* | ?:[\\/]*)
5170 ac_cv_path_BASH_SHELL="$BASH_SHELL" # Let the user override the test with a path.
5173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5174 for as_dir in $PATH
5176 IFS=$as_save_IFS
5177 test -z "$as_dir" && as_dir=.
5178 for ac_exec_ext in '' $ac_executable_extensions; do
5179 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5180 ac_cv_path_BASH_SHELL="$as_dir/$ac_word$ac_exec_ext"
5181 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5182 break 2
5184 done
5185 done
5186 IFS=$as_save_IFS
5188 test -z "$ac_cv_path_BASH_SHELL" && ac_cv_path_BASH_SHELL="no"
5190 esac
5192 BASH_SHELL=$ac_cv_path_BASH_SHELL
5193 if test -n "$BASH_SHELL"; then
5194 { echo "$as_me:$LINENO: result: $BASH_SHELL" >&5
5195 echo "${ECHO_T}$BASH_SHELL" >&6; }
5196 else
5197 { echo "$as_me:$LINENO: result: no" >&5
5198 echo "${ECHO_T}no" >&6; }
5202 if test "$BASH_SHELL" != no &&
5203 $BASH_SHELL -c 'test "$BASH_VERSINFO" \
5204 && test "$BASH_VERSINFO" -ge 2 >&/dev/null'; then
5205 libc_cv_have_bash2=yes
5206 else
5207 libc_cv_have_bash2=no
5211 if test "$BASH_SHELL" = no; then
5212 # Extract the first word of "ksh", so it can be a program name with args.
5213 set dummy ksh; ac_word=$2
5214 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5215 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5216 if test "${ac_cv_path_KSH+set}" = set; then
5217 echo $ECHO_N "(cached) $ECHO_C" >&6
5218 else
5219 case $KSH in
5220 [\\/]* | ?:[\\/]*)
5221 ac_cv_path_KSH="$KSH" # Let the user override the test with a path.
5224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5225 for as_dir in $PATH
5227 IFS=$as_save_IFS
5228 test -z "$as_dir" && as_dir=.
5229 for ac_exec_ext in '' $ac_executable_extensions; do
5230 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5231 ac_cv_path_KSH="$as_dir/$ac_word$ac_exec_ext"
5232 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5233 break 2
5235 done
5236 done
5237 IFS=$as_save_IFS
5239 test -z "$ac_cv_path_KSH" && ac_cv_path_KSH="no"
5241 esac
5243 KSH=$ac_cv_path_KSH
5244 if test -n "$KSH"; then
5245 { echo "$as_me:$LINENO: result: $KSH" >&5
5246 echo "${ECHO_T}$KSH" >&6; }
5247 else
5248 { echo "$as_me:$LINENO: result: no" >&5
5249 echo "${ECHO_T}no" >&6; }
5253 if test "$KSH" = no; then
5254 libc_cv_have_ksh=no
5255 else
5256 libc_cv_have_ksh=yes
5258 else
5259 KSH="$BASH_SHELL"
5261 libc_cv_have_ksh=yes
5265 for ac_prog in gawk mawk nawk awk
5267 # Extract the first word of "$ac_prog", so it can be a program name with args.
5268 set dummy $ac_prog; ac_word=$2
5269 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5270 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5271 if test "${ac_cv_prog_AWK+set}" = set; then
5272 echo $ECHO_N "(cached) $ECHO_C" >&6
5273 else
5274 if test -n "$AWK"; then
5275 ac_cv_prog_AWK="$AWK" # Let the user override the test.
5276 else
5277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5278 for as_dir in $PATH
5280 IFS=$as_save_IFS
5281 test -z "$as_dir" && as_dir=.
5282 for ac_exec_ext in '' $ac_executable_extensions; do
5283 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5284 ac_cv_prog_AWK="$ac_prog"
5285 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5286 break 2
5288 done
5289 done
5290 IFS=$as_save_IFS
5294 AWK=$ac_cv_prog_AWK
5295 if test -n "$AWK"; then
5296 { echo "$as_me:$LINENO: result: $AWK" >&5
5297 echo "${ECHO_T}$AWK" >&6; }
5298 else
5299 { echo "$as_me:$LINENO: result: no" >&5
5300 echo "${ECHO_T}no" >&6; }
5304 test -n "$AWK" && break
5305 done
5307 # Extract the first word of "perl", so it can be a program name with args.
5308 set dummy perl; ac_word=$2
5309 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5310 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5311 if test "${ac_cv_path_PERL+set}" = set; then
5312 echo $ECHO_N "(cached) $ECHO_C" >&6
5313 else
5314 case $PERL in
5315 [\\/]* | ?:[\\/]*)
5316 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
5319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5320 for as_dir in $PATH
5322 IFS=$as_save_IFS
5323 test -z "$as_dir" && as_dir=.
5324 for ac_exec_ext in '' $ac_executable_extensions; do
5325 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5326 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
5327 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5328 break 2
5330 done
5331 done
5332 IFS=$as_save_IFS
5334 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="no"
5336 esac
5338 PERL=$ac_cv_path_PERL
5339 if test -n "$PERL"; then
5340 { echo "$as_me:$LINENO: result: $PERL" >&5
5341 echo "${ECHO_T}$PERL" >&6; }
5342 else
5343 { echo "$as_me:$LINENO: result: no" >&5
5344 echo "${ECHO_T}no" >&6; }
5348 if test "$PERL" != no &&
5349 (eval `$PERL -V:apiversion`; test `expr "$apiversion" \< 5` -ne 0); then
5350 PERL=no
5352 # Extract the first word of "install-info", so it can be a program name with args.
5353 set dummy install-info; ac_word=$2
5354 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5355 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5356 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5357 echo $ECHO_N "(cached) $ECHO_C" >&6
5358 else
5359 case $INSTALL_INFO in
5360 [\\/]* | ?:[\\/]*)
5361 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5365 as_dummy="$PATH:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin"
5366 for as_dir in $as_dummy
5368 IFS=$as_save_IFS
5369 test -z "$as_dir" && as_dir=.
5370 for ac_exec_ext in '' $ac_executable_extensions; do
5371 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5372 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5373 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5374 break 2
5376 done
5377 done
5378 IFS=$as_save_IFS
5380 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO="no"
5382 esac
5384 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5385 if test -n "$INSTALL_INFO"; then
5386 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5387 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5388 else
5389 { echo "$as_me:$LINENO: result: no" >&5
5390 echo "${ECHO_T}no" >&6; }
5394 # Extract the first word of "bison", so it can be a program name with args.
5395 set dummy bison; ac_word=$2
5396 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5397 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5398 if test "${ac_cv_path_BISON+set}" = set; then
5399 echo $ECHO_N "(cached) $ECHO_C" >&6
5400 else
5401 case $BISON in
5402 [\\/]* | ?:[\\/]*)
5403 ac_cv_path_BISON="$BISON" # Let the user override the test with a path.
5406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5407 as_dummy="$PATH:/usr/local/bin:/usr/bin:/bin"
5408 for as_dir in $as_dummy
5410 IFS=$as_save_IFS
5411 test -z "$as_dir" && as_dir=.
5412 for ac_exec_ext in '' $ac_executable_extensions; do
5413 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5414 ac_cv_path_BISON="$as_dir/$ac_word$ac_exec_ext"
5415 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5416 break 2
5418 done
5419 done
5420 IFS=$as_save_IFS
5422 test -z "$ac_cv_path_BISON" && ac_cv_path_BISON="no"
5424 esac
5426 BISON=$ac_cv_path_BISON
5427 if test -n "$BISON"; then
5428 { echo "$as_me:$LINENO: result: $BISON" >&5
5429 echo "${ECHO_T}$BISON" >&6; }
5430 else
5431 { echo "$as_me:$LINENO: result: no" >&5
5432 echo "${ECHO_T}no" >&6; }
5437 { echo "$as_me:$LINENO: checking for signed size_t type" >&5
5438 echo $ECHO_N "checking for signed size_t type... $ECHO_C" >&6; }
5439 if test "${libc_cv_signed_size_t+set}" = set; then
5440 echo $ECHO_N "(cached) $ECHO_C" >&6
5441 else
5442 echo '#include <stddef.h>
5443 FOOBAR __SIZE_TYPE__ FOOBAR' > conftest.c
5444 if eval "$ac_cpp conftest.c 2>/dev/null" \
5445 | grep '^FOOBAR.*unsigned.*FOOBAR$' >/dev/null; then
5446 libc_cv_signed_size_t=no
5447 else
5448 libc_cv_signed_size_t=yes
5450 rm -f conftest*
5452 { echo "$as_me:$LINENO: result: $libc_cv_signed_size_t" >&5
5453 echo "${ECHO_T}$libc_cv_signed_size_t" >&6; }
5454 if test $libc_cv_signed_size_t = yes; then
5455 cat >> confdefs.h <<\EOF
5456 #undef __SIZE_TYPE__
5457 #define __SIZE_TYPE__ unsigned
5462 { echo "$as_me:$LINENO: checking for libc-friendly stddef.h" >&5
5463 echo $ECHO_N "checking for libc-friendly stddef.h... $ECHO_C" >&6; }
5464 if test "${libc_cv_friendly_stddef+set}" = set; then
5465 echo $ECHO_N "(cached) $ECHO_C" >&6
5466 else
5467 cat >conftest.$ac_ext <<_ACEOF
5468 /* confdefs.h. */
5469 _ACEOF
5470 cat confdefs.h >>conftest.$ac_ext
5471 cat >>conftest.$ac_ext <<_ACEOF
5472 /* end confdefs.h. */
5473 #define __need_size_t
5474 #define __need_wchar_t
5475 #include <stddef.h>
5476 #define __need_NULL
5477 #include <stddef.h>
5479 main ()
5481 size_t size; wchar_t wchar;
5482 #ifdef offsetof
5483 #error stddef.h ignored __need_*
5484 #endif
5485 if (&size == NULL || &wchar == NULL) abort ();
5487 return 0;
5489 _ACEOF
5490 rm -f conftest.$ac_objext
5491 if { (ac_try="$ac_compile"
5492 case "(($ac_try" in
5493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5494 *) ac_try_echo=$ac_try;;
5495 esac
5496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5497 (eval "$ac_compile") 2>conftest.er1
5498 ac_status=$?
5499 grep -v '^ *+' conftest.er1 >conftest.err
5500 rm -f conftest.er1
5501 cat conftest.err >&5
5502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5503 (exit $ac_status); } && {
5504 test -z "$ac_c_werror_flag" ||
5505 test ! -s conftest.err
5506 } && test -s conftest.$ac_objext; then
5507 libc_cv_friendly_stddef=yes
5508 else
5509 echo "$as_me: failed program was:" >&5
5510 sed 's/^/| /' conftest.$ac_ext >&5
5512 libc_cv_friendly_stddef=no
5515 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5517 { echo "$as_me:$LINENO: result: $libc_cv_friendly_stddef" >&5
5518 echo "${ECHO_T}$libc_cv_friendly_stddef" >&6; }
5519 if test $libc_cv_friendly_stddef = yes; then
5520 config_vars="$config_vars
5521 override stddef.h = # The installed <stddef.h> seems to be libc-friendly."
5524 { echo "$as_me:$LINENO: checking whether we need to use -P to assemble .S files" >&5
5525 echo $ECHO_N "checking whether we need to use -P to assemble .S files... $ECHO_C" >&6; }
5526 if test "${libc_cv_need_minus_P+set}" = set; then
5527 echo $ECHO_N "(cached) $ECHO_C" >&6
5528 else
5529 cat > conftest.S <<EOF
5530 #include "confdefs.h"
5531 /* Nothing whatsoever. */
5533 if { ac_try='${CC-cc} $CPPFLAGS $ASFLAGS -c conftest.S 1>&5'
5534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5535 (eval $ac_try) 2>&5
5536 ac_status=$?
5537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5538 (exit $ac_status); }; }; then
5539 libc_cv_need_minus_P=no
5540 else
5541 libc_cv_need_minus_P=yes
5543 rm -f conftest*
5545 { echo "$as_me:$LINENO: result: $libc_cv_need_minus_P" >&5
5546 echo "${ECHO_T}$libc_cv_need_minus_P" >&6; }
5547 if test $libc_cv_need_minus_P = yes; then
5548 config_vars="$config_vars
5549 asm-CPPFLAGS = -P # The assembler can't grok cpp's # line directives."
5552 { echo "$as_me:$LINENO: checking whether .text pseudo-op must be used" >&5
5553 echo $ECHO_N "checking whether .text pseudo-op must be used... $ECHO_C" >&6; }
5554 if test "${libc_cv_dot_text+set}" = set; then
5555 echo $ECHO_N "(cached) $ECHO_C" >&6
5556 else
5557 cat > conftest.s <<EOF
5558 .text
5560 libc_cv_dot_text=
5561 if { ac_try='${CC-cc} $ASFLAGS -c conftest.s 1>&5'
5562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5563 (eval $ac_try) 2>&5
5564 ac_status=$?
5565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5566 (exit $ac_status); }; }; then
5567 libc_cv_dot_text=.text
5569 rm -f conftest*
5572 if test -z "$libc_cv_dot_text"; then
5573 { echo "$as_me:$LINENO: result: no" >&5
5574 echo "${ECHO_T}no" >&6; }
5575 else
5576 { echo "$as_me:$LINENO: result: yes" >&5
5577 echo "${ECHO_T}yes" >&6; }
5580 { echo "$as_me:$LINENO: checking for assembler global-symbol directive" >&5
5581 echo $ECHO_N "checking for assembler global-symbol directive... $ECHO_C" >&6; }
5582 if test "${libc_cv_asm_global_directive+set}" = set; then
5583 echo $ECHO_N "(cached) $ECHO_C" >&6
5584 else
5585 libc_cv_asm_global_directive=UNKNOWN
5586 for ac_globl in .globl .global .EXPORT; do
5587 cat > conftest.s <<EOF
5588 ${libc_cv_dot_text}
5589 ${ac_globl} foo
5590 foo:
5592 if { ac_try='${CC-cc} $ASFLAGS -c conftest.s 1>&5'
5593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5594 (eval $ac_try) 2>&5
5595 ac_status=$?
5596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5597 (exit $ac_status); }; }; then
5598 libc_cv_asm_global_directive=${ac_globl}
5600 rm -f conftest*
5601 test $libc_cv_asm_global_directive != UNKNOWN && break
5602 done
5604 { echo "$as_me:$LINENO: result: $libc_cv_asm_global_directive" >&5
5605 echo "${ECHO_T}$libc_cv_asm_global_directive" >&6; }
5606 if test $libc_cv_asm_global_directive = UNKNOWN; then
5607 { { echo "$as_me:$LINENO: error: cannot determine asm global directive" >&5
5608 echo "$as_me: error: cannot determine asm global directive" >&2;}
5609 { (exit 1); exit 1; }; }
5610 else
5611 cat >>confdefs.h <<_ACEOF
5612 #define ASM_GLOBAL_DIRECTIVE ${libc_cv_asm_global_directive}
5613 _ACEOF
5617 { echo "$as_me:$LINENO: checking for .set assembler directive" >&5
5618 echo $ECHO_N "checking for .set assembler directive... $ECHO_C" >&6; }
5619 if test "${libc_cv_asm_set_directive+set}" = set; then
5620 echo $ECHO_N "(cached) $ECHO_C" >&6
5621 else
5622 cat > conftest.s <<EOF
5623 ${libc_cv_dot_text}
5624 foo:
5625 .set glibc_conftest_frobozz,foo
5626 $libc_cv_asm_global_directive glibc_conftest_frobozz
5628 # The alpha-dec-osf1 assembler gives only a warning for `.set'
5629 # (but it doesn't work), so we must do a linking check to be sure.
5630 cat > conftest1.c <<\EOF
5631 extern int glibc_conftest_frobozz;
5632 void _start() { glibc_conftest_frobozz = 1; }
5634 if ${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \
5635 -nostartfiles -nostdlib \
5636 -o conftest conftest.s conftest1.c 1>&5 2>&5; then
5637 libc_cv_asm_set_directive=yes
5638 else
5639 libc_cv_asm_set_directive=no
5641 rm -f conftest*
5643 { echo "$as_me:$LINENO: result: $libc_cv_asm_set_directive" >&5
5644 echo "${ECHO_T}$libc_cv_asm_set_directive" >&6; }
5645 if test $libc_cv_asm_set_directive = yes; then
5646 cat >>confdefs.h <<\_ACEOF
5647 #define HAVE_ASM_SET_DIRECTIVE 1
5648 _ACEOF
5652 { echo "$as_me:$LINENO: checking for assembler .type directive prefix" >&5
5653 echo $ECHO_N "checking for assembler .type directive prefix... $ECHO_C" >&6; }
5654 if test "${libc_cv_asm_type_prefix+set}" = set; then
5655 echo $ECHO_N "(cached) $ECHO_C" >&6
5656 else
5657 libc_cv_asm_type_prefix=no
5658 for ac_try_prefix in '@' '%' '#'; do
5659 cat > conftest.s <<EOF
5660 ${libc_cv_dot_text}
5661 ${libc_cv_asm_global_directive} foo
5662 .type foo, ${ac_try_prefix}object
5663 .size foo, 1
5664 foo:
5665 .byte 1
5667 if { ac_try='${CC-cc} $ASFLAGS -c conftest.s 1>&5'
5668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5669 (eval $ac_try) 2>&5
5670 ac_status=$?
5671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5672 (exit $ac_status); }; }; then
5673 libc_cv_asm_type_prefix=${ac_try_prefix}
5675 rm -f conftest*
5676 test "x$libc_cv_asm_type_prefix" != xno && break
5677 done
5679 { echo "$as_me:$LINENO: result: $libc_cv_asm_type_prefix" >&5
5680 echo "${ECHO_T}$libc_cv_asm_type_prefix" >&6; }
5681 if test "x$libc_cv_asm_type_prefix" != xno; then
5682 cat >>confdefs.h <<_ACEOF
5683 #define ASM_TYPE_DIRECTIVE_PREFIX ${libc_cv_asm_type_prefix}
5684 _ACEOF
5688 { echo "$as_me:$LINENO: checking for .symver assembler directive" >&5
5689 echo $ECHO_N "checking for .symver assembler directive... $ECHO_C" >&6; }
5690 if test "${libc_cv_asm_symver_directive+set}" = set; then
5691 echo $ECHO_N "(cached) $ECHO_C" >&6
5692 else
5693 cat > conftest.s <<EOF
5694 ${libc_cv_dot_text}
5695 _sym:
5696 .symver _sym,sym@VERS
5698 if ${CC-cc} -c $ASFLAGS conftest.s 1>&5 2>&5; then
5699 libc_cv_asm_symver_directive=yes
5700 else
5701 libc_cv_asm_symver_directive=no
5703 rm -f conftest*
5705 { echo "$as_me:$LINENO: result: $libc_cv_asm_symver_directive" >&5
5706 echo "${ECHO_T}$libc_cv_asm_symver_directive" >&6; }
5707 { echo "$as_me:$LINENO: checking for ld --version-script" >&5
5708 echo $ECHO_N "checking for ld --version-script... $ECHO_C" >&6; }
5709 if test "${libc_cv_ld_version_script_option+set}" = set; then
5710 echo $ECHO_N "(cached) $ECHO_C" >&6
5711 else
5712 if test $libc_cv_asm_symver_directive = yes; then
5713 cat > conftest.s <<EOF
5714 ${libc_cv_dot_text}
5715 _sym:
5716 .symver _sym,sym@VERS
5718 cat > conftest.map <<EOF
5719 VERS_1 {
5720 global: sym;
5723 VERS_2 {
5724 global: sym;
5725 } VERS_1;
5727 if ${CC-cc} -c $ASFLAGS conftest.s 1>&5 2>&5; then
5728 if { ac_try='${CC-cc} $CFLAGS $LDFLAGS -shared
5729 -o conftest.so conftest.o
5730 -nostartfiles -nostdlib
5731 -Wl,--version-script,conftest.map
5732 1>&5'
5733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5734 (eval $ac_try) 2>&5
5735 ac_status=$?
5736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5737 (exit $ac_status); }; };
5738 then
5739 libc_cv_ld_version_script_option=yes
5740 else
5741 libc_cv_ld_version_script_option=no
5743 else
5744 libc_cv_ld_version_script_option=no
5746 else
5747 libc_cv_ld_version_script_option=no
5749 rm -f conftest*
5751 { echo "$as_me:$LINENO: result: $libc_cv_ld_version_script_option" >&5
5752 echo "${ECHO_T}$libc_cv_ld_version_script_option" >&6; }
5753 if test $shared != no &&
5754 test $libc_cv_asm_symver_directive = yes &&
5755 test $libc_cv_ld_version_script_option = yes &&
5756 test $enable_versioning = yes; then
5757 VERSIONING=yes
5758 cat >>confdefs.h <<\_ACEOF
5759 #define DO_VERSIONING 1
5760 _ACEOF
5762 else
5763 VERSIONING=no
5767 if test $elf = yes && test $shared != no && test $VERSIONING = no; then
5768 echo "\
5769 *** WARNING: You should not compile GNU libc without versioning. Not using
5770 *** versioning will introduce incompatibilities so that old binaries
5771 *** will not run anymore.
5772 *** For versioning you need recent binutils (binutils-2.8.1.0.23 or newer)."
5774 if test $elf = yes; then
5775 { echo "$as_me:$LINENO: checking for .previous assembler directive" >&5
5776 echo $ECHO_N "checking for .previous assembler directive... $ECHO_C" >&6; }
5777 if test "${libc_cv_asm_previous_directive+set}" = set; then
5778 echo $ECHO_N "(cached) $ECHO_C" >&6
5779 else
5780 cat > conftest.s <<EOF
5781 .section foo_section
5782 .previous
5784 if { ac_try='${CC-cc} -c $ASFLAGS conftest.s 1>&5'
5785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5786 (eval $ac_try) 2>&5
5787 ac_status=$?
5788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5789 (exit $ac_status); }; }; then
5790 libc_cv_asm_previous_directive=yes
5791 else
5792 libc_cv_asm_previous_directive=no
5794 rm -f conftest*
5796 { echo "$as_me:$LINENO: result: $libc_cv_asm_previous_directive" >&5
5797 echo "${ECHO_T}$libc_cv_asm_previous_directive" >&6; }
5798 if test $libc_cv_asm_previous_directive = yes; then
5799 cat >>confdefs.h <<\_ACEOF
5800 #define HAVE_ASM_PREVIOUS_DIRECTIVE 1
5801 _ACEOF
5803 else
5804 { echo "$as_me:$LINENO: checking for .popsection assembler directive" >&5
5805 echo $ECHO_N "checking for .popsection assembler directive... $ECHO_C" >&6; }
5806 if test "${libc_cv_asm_popsection_directive+set}" = set; then
5807 echo $ECHO_N "(cached) $ECHO_C" >&6
5808 else
5809 cat > conftest.s <<EOF
5810 .pushsection foo_section
5811 .popsection
5813 if { ac_try='${CC-cc} -c $ASFLAGS conftest.s 1>&5'
5814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5815 (eval $ac_try) 2>&5
5816 ac_status=$?
5817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5818 (exit $ac_status); }; }; then
5819 libc_cv_asm_popsection_directive=yes
5820 else
5821 libc_cv_asm_popsection_directive=no
5823 rm -f conftest*
5825 { echo "$as_me:$LINENO: result: $libc_cv_asm_popsection_directive" >&5
5826 echo "${ECHO_T}$libc_cv_asm_popsection_directive" >&6; }
5827 if test $libc_cv_asm_popsection_directive = yes; then
5828 cat >>confdefs.h <<\_ACEOF
5829 #define HAVE_ASM_POPSECTION_DIRECTIVE 1
5830 _ACEOF
5834 { echo "$as_me:$LINENO: checking for .protected and .hidden assembler directive" >&5
5835 echo $ECHO_N "checking for .protected and .hidden assembler directive... $ECHO_C" >&6; }
5836 if test "${libc_cv_asm_protected_directive+set}" = set; then
5837 echo $ECHO_N "(cached) $ECHO_C" >&6
5838 else
5839 cat > conftest.s <<EOF
5840 .protected foo
5841 foo:
5842 .hidden bar
5843 bar:
5845 if { ac_try='${CC-cc} -c $ASFLAGS conftest.s 1>&5'
5846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5847 (eval $ac_try) 2>&5
5848 ac_status=$?
5849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5850 (exit $ac_status); }; }; then
5851 libc_cv_asm_protected_directive=yes
5852 else
5853 { { echo "$as_me:$LINENO: error: assembler support for symbol visibility is required" >&5
5854 echo "$as_me: error: assembler support for symbol visibility is required" >&2;}
5855 { (exit 1); exit 1; }; }
5857 rm -f conftest*
5859 { echo "$as_me:$LINENO: result: $libc_cv_asm_protected_directive" >&5
5860 echo "${ECHO_T}$libc_cv_asm_protected_directive" >&6; }
5862 if test $libc_cv_asm_protected_directive = yes; then
5863 { echo "$as_me:$LINENO: checking whether __attribute__((visibility())) is supported" >&5
5864 echo $ECHO_N "checking whether __attribute__((visibility())) is supported... $ECHO_C" >&6; }
5865 if test "${libc_cv_visibility_attribute+set}" = set; then
5866 echo $ECHO_N "(cached) $ECHO_C" >&6
5867 else
5868 cat > conftest.c <<EOF
5869 int foo __attribute__ ((visibility ("hidden"))) = 1;
5870 int bar __attribute__ ((visibility ("protected"))) = 1;
5872 libc_cv_visibility_attribute=no
5873 if { ac_try='${CC-cc} -Werror -S conftest.c -o conftest.s 1>&5'
5874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5875 (eval $ac_try) 2>&5
5876 ac_status=$?
5877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5878 (exit $ac_status); }; }; then
5879 if grep '\.hidden.*foo' conftest.s >/dev/null; then
5880 if grep '\.protected.*bar' conftest.s >/dev/null; then
5881 libc_cv_visibility_attribute=yes
5885 rm -f conftest.cs
5888 { echo "$as_me:$LINENO: result: $libc_cv_visibility_attribute" >&5
5889 echo "${ECHO_T}$libc_cv_visibility_attribute" >&6; }
5890 if test $libc_cv_visibility_attribute != yes; then
5891 { { echo "$as_me:$LINENO: error: compiler support for visibility attribute is required" >&5
5892 echo "$as_me: error: compiler support for visibility attribute is required" >&2;}
5893 { (exit 1); exit 1; }; }
5897 if test $libc_cv_visibility_attribute = yes; then
5898 { echo "$as_me:$LINENO: checking for broken __attribute__((visibility()))" >&5
5899 echo $ECHO_N "checking for broken __attribute__((visibility()))... $ECHO_C" >&6; }
5900 if test "${libc_cv_broken_visibility_attribute+set}" = set; then
5901 echo $ECHO_N "(cached) $ECHO_C" >&6
5902 else
5903 cat > conftest.c <<EOF
5904 int foo (int x);
5905 int bar (int x) __asm__ ("foo") __attribute__ ((visibility ("hidden")));
5906 int bar (int x) { return x; }
5908 libc_cv_broken_visibility_attribute=yes
5909 if { ac_try='${CC-cc} -Werror -S conftest.c -o conftest.s1>&5'
5910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5911 (eval $ac_try) 2>&5
5912 ac_status=$?
5913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5914 (exit $ac_status); }; }; then
5915 if grep '\.hidden[ _]foo' conftest.s >/dev/null; then
5916 libc_cv_broken_visibility_attribute=no
5919 rm -f conftest.c conftest.s
5922 { echo "$as_me:$LINENO: result: $libc_cv_broken_visibility_attribute" >&5
5923 echo "${ECHO_T}$libc_cv_broken_visibility_attribute" >&6; }
5924 if test $libc_cv_broken_visibility_attribute = yes; then
5925 { { echo "$as_me:$LINENO: error: working compiler support for visibility attribute is required" >&5
5926 echo "$as_me: error: working compiler support for visibility attribute is required" >&2;}
5927 { (exit 1); exit 1; }; }
5931 { echo "$as_me:$LINENO: checking for broken __attribute__((alias()))" >&5
5932 echo $ECHO_N "checking for broken __attribute__((alias()))... $ECHO_C" >&6; }
5933 if test "${libc_cv_broken_alias_attribute+set}" = set; then
5934 echo $ECHO_N "(cached) $ECHO_C" >&6
5935 else
5936 cat > conftest.c <<EOF
5937 extern int foo (int x) __asm ("xyzzy");
5938 int bar (int x) { return x; }
5939 extern __typeof (bar) foo __attribute ((weak, alias ("bar")));
5940 extern int dfoo;
5941 extern __typeof (dfoo) dfoo __asm ("abccb");
5942 int dfoo = 1;
5944 libc_cv_broken_alias_attribute=yes
5945 if { ac_try='${CC-cc} -Werror -S conftest.c -o conftest.s 1>&5'
5946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5947 (eval $ac_try) 2>&5
5948 ac_status=$?
5949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5950 (exit $ac_status); }; }; then
5951 if grep 'xyzzy' conftest.s >/dev/null &&
5952 grep 'abccb' conftest.s >/dev/null; then
5953 libc_cv_broken_alias_attribute=no
5956 rm -f conftest.c conftest.s
5959 { echo "$as_me:$LINENO: result: $libc_cv_broken_alias_attribute" >&5
5960 echo "${ECHO_T}$libc_cv_broken_alias_attribute" >&6; }
5961 if test $libc_cv_broken_alias_attribute = yes; then
5962 { { echo "$as_me:$LINENO: error: working alias attribute support required" >&5
5963 echo "$as_me: error: working alias attribute support required" >&2;}
5964 { (exit 1); exit 1; }; }
5967 if test $libc_cv_visibility_attribute = yes; then
5968 { echo "$as_me:$LINENO: checking whether to put _rtld_local into .sdata section" >&5
5969 echo $ECHO_N "checking whether to put _rtld_local into .sdata section... $ECHO_C" >&6; }
5970 if test "${libc_cv_have_sdata_section+set}" = set; then
5971 echo $ECHO_N "(cached) $ECHO_C" >&6
5972 else
5973 echo "int i;" > conftest.c
5974 libc_cv_have_sdata_section=no
5975 if ${CC-cc} $LDFLAGS -fPIC -shared -Wl,--verbose conftest.c -o conftest.so 2>&1 \
5976 | grep '\.sdata' >/dev/null; then
5977 libc_cv_have_sdata_section=yes
5979 rm -f conftest.c conftest.so
5982 { echo "$as_me:$LINENO: result: $libc_cv_have_sdata_section" >&5
5983 echo "${ECHO_T}$libc_cv_have_sdata_section" >&6; }
5984 if test $libc_cv_have_sdata_section = yes; then
5985 cat >>confdefs.h <<\_ACEOF
5986 #define HAVE_SDATA_SECTION 1
5987 _ACEOF
5992 { echo "$as_me:$LINENO: checking for .preinit_array/.init_array/.fini_array support" >&5
5993 echo $ECHO_N "checking for .preinit_array/.init_array/.fini_array support... $ECHO_C" >&6; }
5994 if test "${libc_cv_initfini_array+set}" = set; then
5995 echo $ECHO_N "(cached) $ECHO_C" >&6
5996 else
5997 cat > conftest.c <<EOF
5998 int _start (void) { return 0; }
5999 int __start (void) { return 0; }
6000 int foo (void) { return 1; }
6001 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
6003 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS -o conftest conftest.c
6004 -static -nostartfiles -nostdlib 1>&5'
6005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6006 (eval $ac_try) 2>&5
6007 ac_status=$?
6008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6009 (exit $ac_status); }; }
6010 then
6011 if readelf -S conftest | fgrep INIT_ARRAY > /dev/null; then
6012 libc_cv_initfini_array=yes
6013 else
6014 libc_cv_initfini_array=no
6016 else
6017 libc_cv_initfini_array=no
6019 rm -f conftest*
6021 { echo "$as_me:$LINENO: result: $libc_cv_initfini_array" >&5
6022 echo "${ECHO_T}$libc_cv_initfini_array" >&6; }
6023 if test $libc_cv_initfini_array != yes; then
6024 { { echo "$as_me:$LINENO: error: Need linker with .init_array/.fini_array support." >&5
6025 echo "$as_me: error: Need linker with .init_array/.fini_array support." >&2;}
6026 { (exit 1); exit 1; }; }
6029 { echo "$as_me:$LINENO: checking for libunwind-support in compiler" >&5
6030 echo $ECHO_N "checking for libunwind-support in compiler... $ECHO_C" >&6; }
6031 if test "${libc_cv_cc_with_libunwind+set}" = set; then
6032 echo $ECHO_N "(cached) $ECHO_C" >&6
6033 else
6035 cat > conftest.c <<EOF
6036 int main (void) { return 0; }
6038 if ${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS -static -o conftest \
6039 conftest.c -v 2>&1 >/dev/null | grep -q " -lunwind "; then
6040 libc_cv_cc_with_libunwind=yes
6041 else
6042 libc_cv_cc_with_libunwind=no
6044 rm -f conftest*
6046 { echo "$as_me:$LINENO: result: $libc_cv_cc_with_libunwind" >&5
6047 echo "${ECHO_T}$libc_cv_cc_with_libunwind" >&6; }
6049 if test $libc_cv_cc_with_libunwind = yes; then
6050 cat >>confdefs.h <<\_ACEOF
6051 #define HAVE_CC_WITH_LIBUNWIND 1
6052 _ACEOF
6056 { echo "$as_me:$LINENO: checking for -z nodelete option" >&5
6057 echo $ECHO_N "checking for -z nodelete option... $ECHO_C" >&6; }
6058 if test "${libc_cv_z_nodelete+set}" = set; then
6059 echo $ECHO_N "(cached) $ECHO_C" >&6
6060 else
6061 cat > conftest.c <<EOF
6062 int _start (void) { return 42; }
6064 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
6065 -fPIC -shared -o conftest.so conftest.c
6066 -nostartfiles -nostdlib
6067 -Wl,--enable-new-dtags,-z,nodelete 1>&5'
6068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6069 (eval $ac_try) 2>&5
6070 ac_status=$?
6071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6072 (exit $ac_status); }; }
6073 then
6074 libc_cv_z_nodelete=yes
6075 else
6076 { { echo "$as_me:$LINENO: error: linker with -z nodelete support required" >&5
6077 echo "$as_me: error: linker with -z nodelete support required" >&2;}
6078 { (exit 1); exit 1; }; }
6080 rm -f conftest*
6082 { echo "$as_me:$LINENO: result: $libc_cv_z_nodelete" >&5
6083 echo "${ECHO_T}$libc_cv_z_nodelete" >&6; }
6085 { echo "$as_me:$LINENO: checking for -z nodlopen option" >&5
6086 echo $ECHO_N "checking for -z nodlopen option... $ECHO_C" >&6; }
6087 if test "${libc_cv_z_nodlopen+set}" = set; then
6088 echo $ECHO_N "(cached) $ECHO_C" >&6
6089 else
6090 cat > conftest.c <<EOF
6091 int _start (void) { return 42; }
6093 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
6094 -fPIC -shared -o conftest.so conftest.c
6095 -nostartfiles -nostdlib
6096 -Wl,--enable-new-dtags,-z,nodlopen 1>&5'
6097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6098 (eval $ac_try) 2>&5
6099 ac_status=$?
6100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6101 (exit $ac_status); }; }
6102 then
6103 libc_cv_z_nodlopen=yes
6104 else
6105 { { echo "$as_me:$LINENO: error: linker with -z nodlopen support required" >&5
6106 echo "$as_me: error: linker with -z nodlopen support required" >&2;}
6107 { (exit 1); exit 1; }; }
6109 rm -f conftest*
6111 { echo "$as_me:$LINENO: result: $libc_cv_z_nodlopen" >&5
6112 echo "${ECHO_T}$libc_cv_z_nodlopen" >&6; }
6114 { echo "$as_me:$LINENO: checking for -z initfirst option" >&5
6115 echo $ECHO_N "checking for -z initfirst option... $ECHO_C" >&6; }
6116 if test "${libc_cv_z_initfirst+set}" = set; then
6117 echo $ECHO_N "(cached) $ECHO_C" >&6
6118 else
6119 cat > conftest.c <<EOF
6120 int _start (void) { return 42; }
6122 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
6123 -fPIC -shared -o conftest.so conftest.c
6124 -nostartfiles -nostdlib
6125 -Wl,--enable-new-dtags,-z,initfirst 1>&5'
6126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6127 (eval $ac_try) 2>&5
6128 ac_status=$?
6129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6130 (exit $ac_status); }; }
6131 then
6132 libc_cv_z_initfirst=yes
6133 else
6134 { { echo "$as_me:$LINENO: error: linker with -z initfirst support required" >&5
6135 echo "$as_me: error: linker with -z initfirst support required" >&2;}
6136 { (exit 1); exit 1; }; }
6138 rm -f conftest*
6140 { echo "$as_me:$LINENO: result: $libc_cv_z_initfirst" >&5
6141 echo "${ECHO_T}$libc_cv_z_initfirst" >&6; }
6143 case "$base_machine" in
6144 i[34567]86 | x86_64 | powerpc* | s390* | sparc* | alpha*)
6145 { echo "$as_me:$LINENO: checking for -z relro option" >&5
6146 echo $ECHO_N "checking for -z relro option... $ECHO_C" >&6; }
6147 if test "${libc_cv_z_relro+set}" = set; then
6148 echo $ECHO_N "(cached) $ECHO_C" >&6
6149 else
6150 libc_cv_z_relro=no
6151 if { ac_try='${CC-cc} -v --help 2>&1|grep "z relro" 1>&5'
6152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6153 (eval $ac_try) 2>&5
6154 ac_status=$?
6155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6156 (exit $ac_status); }; }
6157 then
6158 if { ac_try='${CC-cc} -Wl,--verbose 2>&1|grep DATA_SEGMENT_RELRO_END 1>&5'
6159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6160 (eval $ac_try) 2>&5
6161 ac_status=$?
6162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6163 (exit $ac_status); }; }
6164 then
6165 libc_cv_z_relro=yes
6169 { echo "$as_me:$LINENO: result: $libc_cv_z_relro" >&5
6170 echo "${ECHO_T}$libc_cv_z_relro" >&6; }
6171 if test "$libc_cv_z_relro" = no; then
6172 { { echo "$as_me:$LINENO: error: linker with -z relro support required" >&5
6173 echo "$as_me: error: linker with -z relro support required" >&2;}
6174 { (exit 1); exit 1; }; }
6177 *) ;;
6178 esac
6180 { echo "$as_me:$LINENO: checking for -Bgroup option" >&5
6181 echo $ECHO_N "checking for -Bgroup option... $ECHO_C" >&6; }
6182 if test "${libc_cv_Bgroup+set}" = set; then
6183 echo $ECHO_N "(cached) $ECHO_C" >&6
6184 else
6185 cat > conftest.c <<EOF
6186 int _start (void) { return 42; }
6188 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
6189 -fPIC -shared -o conftest.so conftest.c
6190 -Wl,-Bgroup -nostdlib 1>&5'
6191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6192 (eval $ac_try) 2>&5
6193 ac_status=$?
6194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6195 (exit $ac_status); }; }
6196 then
6197 libc_cv_Bgroup=yes
6198 else
6199 libc_cv_Bgroup=no
6201 rm -f conftest*
6203 { echo "$as_me:$LINENO: result: $libc_cv_Bgroup" >&5
6204 echo "${ECHO_T}$libc_cv_Bgroup" >&6; }
6207 { echo "$as_me:$LINENO: checking for libgcc_s suffix" >&5
6208 echo $ECHO_N "checking for libgcc_s suffix... $ECHO_C" >&6; }
6209 if test "${libc_cv_libgcc_s_suffix+set}" = set; then
6210 echo $ECHO_N "(cached) $ECHO_C" >&6
6211 else
6212 cat > conftest.c <<EOF
6213 int main (void) { return 0; }
6215 libc_cv_libgcc_s_suffix=`${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \
6216 -fPIC -shared -shared-libgcc -o conftest.so \
6217 conftest.c -v 2>&1 >/dev/null \
6218 | sed -n 's/^.* -lgcc_s\([^ ]*\) .*$/\1/p'`
6219 rm -f conftest*
6221 { echo "$as_me:$LINENO: result: $libc_cv_libgcc_s_suffix" >&5
6222 echo "${ECHO_T}$libc_cv_libgcc_s_suffix" >&6; }
6225 { echo "$as_me:$LINENO: checking for --as-needed option" >&5
6226 echo $ECHO_N "checking for --as-needed option... $ECHO_C" >&6; }
6227 if test "${libc_cv_as_needed+set}" = set; then
6228 echo $ECHO_N "(cached) $ECHO_C" >&6
6229 else
6230 cat > conftest.c <<EOF
6231 int main (void) { return 0; }
6233 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
6234 -fPIC -shared -o conftest.so conftest.c
6235 -lgcc_s$libc_cv_libgcc_s_suffix -Wl,--as-needed
6236 -nostdlib 1>&5'
6237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6238 (eval $ac_try) 2>&5
6239 ac_status=$?
6240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6241 (exit $ac_status); }; }
6242 then
6243 libc_cv_as_needed=yes
6244 else
6245 libc_cv_as_needed=no
6247 rm -f conftest*
6249 { echo "$as_me:$LINENO: result: $libc_cv_as_needed" >&5
6250 echo "${ECHO_T}$libc_cv_as_needed" >&6; }
6253 ASFLAGS_config=
6254 { echo "$as_me:$LINENO: checking whether --noexecstack is desirable for .S files" >&5
6255 echo $ECHO_N "checking whether --noexecstack is desirable for .S files... $ECHO_C" >&6; }
6256 if test "${libc_cv_as_noexecstack+set}" = set; then
6257 echo $ECHO_N "(cached) $ECHO_C" >&6
6258 else
6259 cat > conftest.c <<EOF
6260 void foo (void) { }
6262 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS
6263 -S -o conftest.s conftest.c 1>&5'
6264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6265 (eval $ac_try) 2>&5
6266 ac_status=$?
6267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6268 (exit $ac_status); }; } \
6269 && grep -q .note.GNU-stack conftest.s \
6270 && { ac_try='${CC-cc} $ASFLAGS -Wa,--noexecstack
6271 -c -o conftest.o conftest.s 1>&5'
6272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6273 (eval $ac_try) 2>&5
6274 ac_status=$?
6275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6276 (exit $ac_status); }; }
6277 then
6278 libc_cv_as_noexecstack=yes
6279 else
6280 libc_cv_as_noexecstack=no
6282 rm -f conftest*
6284 { echo "$as_me:$LINENO: result: $libc_cv_as_noexecstack" >&5
6285 echo "${ECHO_T}$libc_cv_as_noexecstack" >&6; }
6286 if test $libc_cv_as_noexecstack = yes; then
6287 ASFLAGS_config="$ASFLAGS_config -Wa,--noexecstack"
6291 { echo "$as_me:$LINENO: checking for -z combreloc" >&5
6292 echo $ECHO_N "checking for -z combreloc... $ECHO_C" >&6; }
6293 if test "${libc_cv_z_combreloc+set}" = set; then
6294 echo $ECHO_N "(cached) $ECHO_C" >&6
6295 else
6296 cat > conftest.c <<EOF
6297 extern int bar (int);
6298 extern int mumble;
6299 int foo (void) { return bar (mumble); }
6301 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
6302 -fPIC -shared -o conftest.so conftest.c
6303 -nostdlib -nostartfiles
6304 -Wl,-z,combreloc 1>&5'
6305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6306 (eval $ac_try) 2>&5
6307 ac_status=$?
6308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6309 (exit $ac_status); }; }
6310 then
6311 if readelf -S conftest.so | grep '\.rel\(a\|\)\.dyn' > /dev/null; then
6312 libc_cv_z_combreloc=yes
6313 else
6314 libc_cv_z_combreloc=no
6316 else
6317 libc_cv_z_combreloc=no
6319 rm -f conftest*
6321 { echo "$as_me:$LINENO: result: $libc_cv_z_combreloc" >&5
6322 echo "${ECHO_T}$libc_cv_z_combreloc" >&6; }
6323 if test "$libc_cv_z_combreloc" = yes; then
6324 cat >>confdefs.h <<\_ACEOF
6325 #define HAVE_Z_COMBRELOC 1
6326 _ACEOF
6331 { echo "$as_me:$LINENO: checking for -z execstack" >&5
6332 echo $ECHO_N "checking for -z execstack... $ECHO_C" >&6; }
6333 if test "${libc_cv_z_execstack+set}" = set; then
6334 echo $ECHO_N "(cached) $ECHO_C" >&6
6335 else
6336 cat > conftest.c <<EOF
6337 int _start (void) { return 42; }
6339 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
6340 -fPIC -shared -o conftest.so conftest.c
6341 -Wl,-z,execstack -nostdlib
6342 1>&5'
6343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6344 (eval $ac_try) 2>&5
6345 ac_status=$?
6346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6347 (exit $ac_status); }; }
6348 then
6349 libc_cv_z_execstack=yes
6350 else
6351 libc_cv_z_execstack=no
6353 rm -f conftest*
6355 { echo "$as_me:$LINENO: result: $libc_cv_z_execstack" >&5
6356 echo "${ECHO_T}$libc_cv_z_execstack" >&6; }
6359 { echo "$as_me:$LINENO: checking for -fpie" >&5
6360 echo $ECHO_N "checking for -fpie... $ECHO_C" >&6; }
6361 if test "${libc_cv_fpie+set}" = set; then
6362 echo $ECHO_N "(cached) $ECHO_C" >&6
6363 else
6364 cat > conftest.c <<EOF
6365 int foo;
6366 main () { return 0;}
6368 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS -pie -fpie
6369 -o conftest conftest.c 1>&5'
6370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6371 (eval $ac_try) 2>&5
6372 ac_status=$?
6373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6374 (exit $ac_status); }; }
6375 then
6376 libc_cv_fpie=yes
6377 else
6378 libc_cv_fpie=no
6380 rm -f conftest*
6382 { echo "$as_me:$LINENO: result: $libc_cv_fpie" >&5
6383 echo "${ECHO_T}$libc_cv_fpie" >&6; }
6387 { echo "$as_me:$LINENO: checking for --hash-style option" >&5
6388 echo $ECHO_N "checking for --hash-style option... $ECHO_C" >&6; }
6389 if test "${libc_cv_hashstyle+set}" = set; then
6390 echo $ECHO_N "(cached) $ECHO_C" >&6
6391 else
6392 cat > conftest.c <<EOF
6393 int _start (void) { return 42; }
6395 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
6396 -fPIC -shared -o conftest.so conftest.c
6397 -Wl,--hash-style=both -nostdlib 1>&5'
6398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6399 (eval $ac_try) 2>&5
6400 ac_status=$?
6401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6402 (exit $ac_status); }; }
6403 then
6404 libc_cv_hashstyle=yes
6405 else
6406 libc_cv_hashstyle=no
6408 rm -f conftest*
6410 { echo "$as_me:$LINENO: result: $libc_cv_hashstyle" >&5
6411 echo "${ECHO_T}$libc_cv_hashstyle" >&6; }
6415 { echo "$as_me:$LINENO: checking for -fno-toplevel-reorder -fno-section-anchors" >&5
6416 echo $ECHO_N "checking for -fno-toplevel-reorder -fno-section-anchors... $ECHO_C" >&6; }
6417 if test "${libc_cv_fno_toplevel_reorder+set}" = set; then
6418 echo $ECHO_N "(cached) $ECHO_C" >&6
6419 else
6420 cat > conftest.c <<EOF
6421 int foo;
6423 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -S -fno-toplevel-reorder -fno-section-anchors
6424 conftest.c 1>&5'
6425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6426 (eval $ac_try) 2>&5
6427 ac_status=$?
6428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6429 (exit $ac_status); }; }
6430 then
6431 libc_cv_fno_toplevel_reorder=yes
6432 else
6433 libc_cv_fno_toplevel_reorder=no
6435 rm -f conftest*
6437 { echo "$as_me:$LINENO: result: $libc_cv_fno_toplevel_reorder" >&5
6438 echo "${ECHO_T}$libc_cv_fno_toplevel_reorder" >&6; }
6439 if test $libc_cv_fno_toplevel_reorder = yes; then
6440 fno_unit_at_a_time="-fno-toplevel-reorder -fno-section-anchors"
6441 else
6442 fno_unit_at_a_time=-fno-unit-at-a-time
6446 { echo "$as_me:$LINENO: checking for -fstack-protector" >&5
6447 echo $ECHO_N "checking for -fstack-protector... $ECHO_C" >&6; }
6448 if test "${libc_cv_ssp+set}" = set; then
6449 echo $ECHO_N "(cached) $ECHO_C" >&6
6450 else
6451 cat > conftest.c <<EOF
6452 int foo;
6453 main () { return 0;}
6455 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS -Werror -fstack-protector
6456 -o conftest conftest.c 1>&5'
6457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6458 (eval $ac_try) 2>&5
6459 ac_status=$?
6460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6461 (exit $ac_status); }; }
6462 then
6463 libc_cv_ssp=yes
6464 else
6465 libc_cv_ssp=no
6467 rm -f conftest*
6469 { echo "$as_me:$LINENO: result: $libc_cv_ssp" >&5
6470 echo "${ECHO_T}$libc_cv_ssp" >&6; }
6473 { echo "$as_me:$LINENO: checking for -fgnu89-inline" >&5
6474 echo $ECHO_N "checking for -fgnu89-inline... $ECHO_C" >&6; }
6475 if test "${libc_cv_gnu89_inline+set}" = set; then
6476 echo $ECHO_N "(cached) $ECHO_C" >&6
6477 else
6478 cat > conftest.c <<EOF
6479 int foo;
6480 #ifdef __GNUC_GNU_INLINE__
6481 main () { return 0;}
6482 #else
6483 #error
6484 #endif
6486 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -S -std=gnu99 -fgnu89-inline
6487 -o conftest.s conftest.c 1>&5'
6488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6489 (eval $ac_try) 2>&5
6490 ac_status=$?
6491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6492 (exit $ac_status); }; }
6493 then
6494 libc_cv_gnu89_inline=yes
6495 else
6496 libc_cv_gnu89_inline=no
6498 rm -f conftest*
6500 { echo "$as_me:$LINENO: result: $libc_cv_gnu89_inline" >&5
6501 echo "${ECHO_T}$libc_cv_gnu89_inline" >&6; }
6502 if test $libc_cv_gnu89_inline = yes; then
6503 libc_cv_gnu89_inline=-fgnu89-inline
6504 else
6505 libc_cv_gnu89_inline=
6509 if test $elf != yes; then
6510 { echo "$as_me:$LINENO: checking for .init and .fini sections" >&5
6511 echo $ECHO_N "checking for .init and .fini sections... $ECHO_C" >&6; }
6512 if test "${libc_cv_have_initfini+set}" = set; then
6513 echo $ECHO_N "(cached) $ECHO_C" >&6
6514 else
6515 cat >conftest.$ac_ext <<_ACEOF
6516 /* confdefs.h. */
6517 _ACEOF
6518 cat confdefs.h >>conftest.$ac_ext
6519 cat >>conftest.$ac_ext <<_ACEOF
6520 /* end confdefs.h. */
6523 main ()
6525 asm (".section .init");
6526 asm (".section .fini");
6527 asm ("${libc_cv_dot_text}");
6529 return 0;
6531 _ACEOF
6532 rm -f conftest.$ac_objext
6533 if { (ac_try="$ac_compile"
6534 case "(($ac_try" in
6535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6536 *) ac_try_echo=$ac_try;;
6537 esac
6538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6539 (eval "$ac_compile") 2>conftest.er1
6540 ac_status=$?
6541 grep -v '^ *+' conftest.er1 >conftest.err
6542 rm -f conftest.er1
6543 cat conftest.err >&5
6544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6545 (exit $ac_status); } && {
6546 test -z "$ac_c_werror_flag" ||
6547 test ! -s conftest.err
6548 } && test -s conftest.$ac_objext; then
6549 libc_cv_have_initfini=yes
6550 else
6551 echo "$as_me: failed program was:" >&5
6552 sed 's/^/| /' conftest.$ac_ext >&5
6554 libc_cv_have_initfini=no
6557 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6559 { echo "$as_me:$LINENO: result: $libc_cv_have_initfini" >&5
6560 echo "${ECHO_T}$libc_cv_have_initfini" >&6; }
6561 if test $libc_cv_have_initfini = yes; then
6562 cat >>confdefs.h <<\_ACEOF
6563 #define HAVE_INITFINI 1
6564 _ACEOF
6569 if test $elf = yes; then
6570 { echo "$as_me:$LINENO: checking whether cc puts quotes around section names" >&5
6571 echo $ECHO_N "checking whether cc puts quotes around section names... $ECHO_C" >&6; }
6572 if test "${libc_cv_have_section_quotes+set}" = set; then
6573 echo $ECHO_N "(cached) $ECHO_C" >&6
6574 else
6575 cat > conftest.c <<EOF
6576 static const int foo
6577 __attribute__ ((section ("bar"))) = 1;
6579 if ${CC-cc} -S conftest.c -o conftest.s; then
6580 if grep '\.section.*"bar"' conftest.s >/dev/null; then
6581 libc_cv_have_section_quotes=yes
6582 else
6583 libc_cv_have_section_quotes=no
6585 else
6586 libc_cv_have_section_quotes=unknown
6588 rm -f conftest.cs
6591 { echo "$as_me:$LINENO: result: $libc_cv_have_section_quotes" >&5
6592 echo "${ECHO_T}$libc_cv_have_section_quotes" >&6; }
6593 if test $libc_cv_have_section_quotes = yes; then
6594 cat >>confdefs.h <<\_ACEOF
6595 #define HAVE_SECTION_QUOTES 1
6596 _ACEOF
6603 if test $elf = yes; then
6604 libc_cv_asm_underscores=no
6605 else
6606 if test $ac_cv_prog_cc_works = yes; then
6607 { echo "$as_me:$LINENO: checking for _ prefix on C symbol names" >&5
6608 echo $ECHO_N "checking for _ prefix on C symbol names... $ECHO_C" >&6; }
6609 if test "${libc_cv_asm_underscores+set}" = set; then
6610 echo $ECHO_N "(cached) $ECHO_C" >&6
6611 else
6612 cat >conftest.$ac_ext <<_ACEOF
6613 /* confdefs.h. */
6614 _ACEOF
6615 cat confdefs.h >>conftest.$ac_ext
6616 cat >>conftest.$ac_ext <<_ACEOF
6617 /* end confdefs.h. */
6618 asm ("_glibc_foobar:");
6620 main ()
6622 glibc_foobar ();
6624 return 0;
6626 _ACEOF
6627 rm -f conftest.$ac_objext conftest$ac_exeext
6628 if { (ac_try="$ac_link"
6629 case "(($ac_try" in
6630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6631 *) ac_try_echo=$ac_try;;
6632 esac
6633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6634 (eval "$ac_link") 2>conftest.er1
6635 ac_status=$?
6636 grep -v '^ *+' conftest.er1 >conftest.err
6637 rm -f conftest.er1
6638 cat conftest.err >&5
6639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6640 (exit $ac_status); } && {
6641 test -z "$ac_c_werror_flag" ||
6642 test ! -s conftest.err
6643 } && test -s conftest$ac_exeext &&
6644 $as_test_x conftest$ac_exeext; then
6645 libc_cv_asm_underscores=yes
6646 else
6647 echo "$as_me: failed program was:" >&5
6648 sed 's/^/| /' conftest.$ac_ext >&5
6650 libc_cv_asm_underscores=no
6653 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6654 conftest$ac_exeext conftest.$ac_ext
6656 { echo "$as_me:$LINENO: result: $libc_cv_asm_underscores" >&5
6657 echo "${ECHO_T}$libc_cv_asm_underscores" >&6; }
6658 else
6659 { echo "$as_me:$LINENO: checking for _ prefix on C symbol names" >&5
6660 echo $ECHO_N "checking for _ prefix on C symbol names... $ECHO_C" >&6; }
6661 if test "${libc_cv_asm_underscores+set}" = set; then
6662 echo $ECHO_N "(cached) $ECHO_C" >&6
6663 else
6664 cat > conftest.$ac_ext <<EOF
6665 #line $LINENO "configure"
6666 #include "confdefs.h"
6667 void underscore_test(void) {
6668 return; }
6670 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6671 (eval $ac_compile) 2>&5
6672 ac_status=$?
6673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6674 (exit $ac_status); }; then
6675 if grep _underscore_test conftest* >/dev/null; then
6676 rm -f conftest*
6677 libc_cv_asm_underscores=yes
6678 else
6679 rm -f conftest*
6680 libc_cv_asm_underscores=no
6682 else
6683 echo "configure: failed program was:" >&5
6684 cat conftest.$ac_ext >&5
6685 rm -f conftest*
6686 libc_cv_asm_underscores=no
6688 rm -f conftest*
6690 { echo "$as_me:$LINENO: result: $libc_cv_asm_underscores" >&5
6691 echo "${ECHO_T}$libc_cv_asm_underscores" >&6; }
6694 if test $libc_cv_asm_underscores = no; then
6695 cat >>confdefs.h <<\_ACEOF
6696 #define NO_UNDERSCORES 1
6697 _ACEOF
6701 if test $elf = yes; then
6702 libc_cv_weak_symbols=yes
6705 { echo "$as_me:$LINENO: checking for assembler .weak directive" >&5
6706 echo $ECHO_N "checking for assembler .weak directive... $ECHO_C" >&6; }
6707 if test "${libc_cv_asm_weak_directive+set}" = set; then
6708 echo $ECHO_N "(cached) $ECHO_C" >&6
6709 else
6710 cat > conftest.s <<EOF
6711 ${libc_cv_dot_text}
6712 ${libc_cv_asm_global_directive} foo
6713 foo:
6714 .weak foo
6715 .weak bar; bar = foo
6717 if { ac_try='${CC-cc} $ASFLAGS -c conftest.s 1>&5'
6718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6719 (eval $ac_try) 2>&5
6720 ac_status=$?
6721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6722 (exit $ac_status); }; }; then
6723 libc_cv_asm_weak_directive=yes
6724 else
6725 libc_cv_asm_weak_directive=no
6727 rm -f conftest*
6729 { echo "$as_me:$LINENO: result: $libc_cv_asm_weak_directive" >&5
6730 echo "${ECHO_T}$libc_cv_asm_weak_directive" >&6; }
6732 if test $libc_cv_asm_weak_directive = no; then
6733 { echo "$as_me:$LINENO: checking for assembler .weakext directive" >&5
6734 echo $ECHO_N "checking for assembler .weakext directive... $ECHO_C" >&6; }
6735 if test "${libc_cv_asm_weakext_directive+set}" = set; then
6736 echo $ECHO_N "(cached) $ECHO_C" >&6
6737 else
6738 cat > conftest.s <<EOF
6739 ${libc_cv_dot_text}
6740 ${libc_cv_asm_global_directive} foo
6741 foo:
6742 .weakext bar foo
6743 .weakext baz
6744 ${libc_cv_asm_global_directive} baz
6745 baz:
6747 if { ac_try='${CC-cc} $ASFLAGS -c conftest.s 1>&5'
6748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6749 (eval $ac_try) 2>&5
6750 ac_status=$?
6751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6752 (exit $ac_status); }; }; then
6753 libc_cv_asm_weakext_directive=yes
6754 else
6755 libc_cv_asm_weakext_directive=no
6757 rm -f conftest*
6759 { echo "$as_me:$LINENO: result: $libc_cv_asm_weakext_directive" >&5
6760 echo "${ECHO_T}$libc_cv_asm_weakext_directive" >&6; }
6762 fi # no .weak
6764 if test $libc_cv_asm_weak_directive = yes; then
6765 cat >>confdefs.h <<\_ACEOF
6766 #define HAVE_ASM_WEAK_DIRECTIVE 1
6767 _ACEOF
6769 elif test $libc_cv_asm_weakext_directive = yes; then
6770 cat >>confdefs.h <<\_ACEOF
6771 #define HAVE_ASM_WEAKEXT_DIRECTIVE 1
6772 _ACEOF
6776 { echo "$as_me:$LINENO: checking whether CFI directives are supported" >&5
6777 echo $ECHO_N "checking whether CFI directives are supported... $ECHO_C" >&6; }
6778 if test "${libc_cv_asm_cfi_directives+set}" = set; then
6779 echo $ECHO_N "(cached) $ECHO_C" >&6
6780 else
6781 case $machine in
6782 sparc/sparc64*) cfi_offset=2047;;
6783 *) cfi_offset=0;;
6784 esac
6785 cat > conftest.s <<EOF
6786 .text
6787 .type func,%function
6788 func:
6789 .cfi_startproc
6790 .cfi_remember_state
6791 .cfi_rel_offset 1, $cfi_offset
6792 .cfi_endproc
6794 if { ac_try='${CC-cc} $ASFLAGS -c conftest.s 1>&5'
6795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6796 (eval $ac_try) 2>&5
6797 ac_status=$?
6798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6799 (exit $ac_status); }; }; then
6800 libc_cv_asm_cfi_directives=yes
6801 else
6802 libc_cv_asm_cfi_directives=no
6804 rm -f conftest*
6806 { echo "$as_me:$LINENO: result: $libc_cv_asm_cfi_directives" >&5
6807 echo "${ECHO_T}$libc_cv_asm_cfi_directives" >&6; }
6808 if test $libc_cv_asm_cfi_directives = yes; then
6809 cat >>confdefs.h <<\_ACEOF
6810 #define HAVE_ASM_CFI_DIRECTIVES 1
6811 _ACEOF
6815 { echo "$as_me:$LINENO: checking for ld --no-whole-archive" >&5
6816 echo $ECHO_N "checking for ld --no-whole-archive... $ECHO_C" >&6; }
6817 if test "${libc_cv_ld_no_whole_archive+set}" = set; then
6818 echo $ECHO_N "(cached) $ECHO_C" >&6
6819 else
6820 cat > conftest.c <<\EOF
6821 _start () {}
6822 int __eh_pc;
6823 __throw () {}
6825 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
6826 -nostdlib -nostartfiles -Wl,--no-whole-archive
6827 -o conftest conftest.c 1>&5'
6828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6829 (eval $ac_try) 2>&5
6830 ac_status=$?
6831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6832 (exit $ac_status); }; }; then
6833 libc_cv_ld_no_whole_archive=yes
6834 else
6835 libc_cv_ld_no_whole_archive=no
6837 rm -f conftest*
6839 { echo "$as_me:$LINENO: result: $libc_cv_ld_no_whole_archive" >&5
6840 echo "${ECHO_T}$libc_cv_ld_no_whole_archive" >&6; }
6841 if test $libc_cv_ld_no_whole_archive = yes; then
6842 no_whole_archive=-Wl,--no-whole-archive
6845 { echo "$as_me:$LINENO: checking for gcc -fexceptions" >&5
6846 echo $ECHO_N "checking for gcc -fexceptions... $ECHO_C" >&6; }
6847 if test "${libc_cv_gcc_exceptions+set}" = set; then
6848 echo $ECHO_N "(cached) $ECHO_C" >&6
6849 else
6850 cat > conftest.c <<\EOF
6851 _start () {}
6852 int __eh_pc;
6853 __throw () {}
6855 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
6856 -nostdlib -nostartfiles -fexceptions
6857 -o conftest conftest.c 1>&5'
6858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6859 (eval $ac_try) 2>&5
6860 ac_status=$?
6861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6862 (exit $ac_status); }; }; then
6863 libc_cv_gcc_exceptions=yes
6864 else
6865 libc_cv_gcc_exceptions=no
6867 rm -f conftest*
6869 { echo "$as_me:$LINENO: result: $libc_cv_gcc_exceptions" >&5
6870 echo "${ECHO_T}$libc_cv_gcc_exceptions" >&6; }
6871 if test $libc_cv_gcc_exceptions = yes; then
6872 exceptions=-fexceptions
6875 if test "$host_cpu" = powerpc ; then
6876 # Check for a bug present in at least versions 2.8.x of GCC
6877 # and versions 1.0.x of EGCS.
6878 { echo "$as_me:$LINENO: checking whether clobbering cr0 causes problems" >&5
6879 echo $ECHO_N "checking whether clobbering cr0 causes problems... $ECHO_C" >&6; }
6880 if test "${libc_cv_c_asmcr0_bug+set}" = set; then
6881 echo $ECHO_N "(cached) $ECHO_C" >&6
6882 else
6883 cat >conftest.$ac_ext <<_ACEOF
6884 /* confdefs.h. */
6885 _ACEOF
6886 cat confdefs.h >>conftest.$ac_ext
6887 cat >>conftest.$ac_ext <<_ACEOF
6888 /* end confdefs.h. */
6889 int tester(int x) { asm ("" : : : "cc"); return x & 123; }
6891 main ()
6895 return 0;
6897 _ACEOF
6898 rm -f conftest.$ac_objext
6899 if { (ac_try="$ac_compile"
6900 case "(($ac_try" in
6901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6902 *) ac_try_echo=$ac_try;;
6903 esac
6904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6905 (eval "$ac_compile") 2>conftest.er1
6906 ac_status=$?
6907 grep -v '^ *+' conftest.er1 >conftest.err
6908 rm -f conftest.er1
6909 cat conftest.err >&5
6910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6911 (exit $ac_status); } && {
6912 test -z "$ac_c_werror_flag" ||
6913 test ! -s conftest.err
6914 } && test -s conftest.$ac_objext; then
6915 libc_cv_c_asmcr0_bug='no'
6916 else
6917 echo "$as_me: failed program was:" >&5
6918 sed 's/^/| /' conftest.$ac_ext >&5
6920 libc_cv_c_asmcr0_bug='yes'
6923 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6925 { echo "$as_me:$LINENO: result: $libc_cv_c_asmcr0_bug" >&5
6926 echo "${ECHO_T}$libc_cv_c_asmcr0_bug" >&6; }
6927 if test "$libc_cv_c_asmcr0_bug" != 'no'; then
6928 cat >>confdefs.h <<\_ACEOF
6929 #define BROKEN_PPC_ASM_CR0 1
6930 _ACEOF
6935 { echo "$as_me:$LINENO: checking for __builtin_expect" >&5
6936 echo $ECHO_N "checking for __builtin_expect... $ECHO_C" >&6; }
6937 if test "${libc_cv_gcc_builtin_expect+set}" = set; then
6938 echo $ECHO_N "(cached) $ECHO_C" >&6
6939 else
6940 cat > conftest.c <<EOF
6941 #line $LINENO "configure"
6942 int foo (int a)
6944 a = __builtin_expect (a, 10);
6945 return a == 10 ? 0 : 1;
6948 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS -nostdlib -nostartfiles
6949 -o conftest conftest.c -lgcc >&5'
6950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6951 (eval $ac_try) 2>&5
6952 ac_status=$?
6953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6954 (exit $ac_status); }; }; then
6955 libc_cv_gcc_builtin_expect=yes
6956 else
6957 libc_cv_gcc_builtin_expect=no
6959 rm -f conftest*
6961 { echo "$as_me:$LINENO: result: $libc_cv_gcc_builtin_expect" >&5
6962 echo "${ECHO_T}$libc_cv_gcc_builtin_expect" >&6; }
6963 if test "$libc_cv_gcc_builtin_expect" = yes; then
6964 cat >>confdefs.h <<\_ACEOF
6965 #define HAVE_BUILTIN_EXPECT 1
6966 _ACEOF
6970 { echo "$as_me:$LINENO: checking for __builtin_memset" >&5
6971 echo $ECHO_N "checking for __builtin_memset... $ECHO_C" >&6; }
6972 if test "${libc_cv_gcc_builtin_memset+set}" = set; then
6973 echo $ECHO_N "(cached) $ECHO_C" >&6
6974 else
6975 cat > conftest.c <<\EOF
6976 void zero (void *x)
6978 __builtin_memset (x, 0, 1000);
6981 if { ac_try='${CC-cc} -O3 -S conftest.c -o - | fgrep "memset" > /dev/null'
6982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6983 (eval $ac_try) 2>&5
6984 ac_status=$?
6985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6986 (exit $ac_status); }; };
6987 then
6988 libc_cv_gcc_builtin_memset=no
6989 else
6990 libc_cv_gcc_builtin_memset=yes
6992 rm -f conftest*
6994 { echo "$as_me:$LINENO: result: $libc_cv_gcc_builtin_memset" >&5
6995 echo "${ECHO_T}$libc_cv_gcc_builtin_memset" >&6; }
6996 if test "$libc_cv_gcc_builtin_memset" = yes ; then
6997 cat >>confdefs.h <<\_ACEOF
6998 #define HAVE_BUILTIN_MEMSET 1
6999 _ACEOF
7003 { echo "$as_me:$LINENO: checking for redirection of built-in functions" >&5
7004 echo $ECHO_N "checking for redirection of built-in functions... $ECHO_C" >&6; }
7005 if test "${libc_cv_gcc_builtin_redirection+set}" = set; then
7006 echo $ECHO_N "(cached) $ECHO_C" >&6
7007 else
7008 cat > conftest.c <<\EOF
7009 extern char *strstr (const char *, const char *) __asm ("my_strstr");
7010 char *foo (const char *a, const char *b)
7012 return __builtin_strstr (a, b);
7015 if { ac_try='${CC-cc} -O3 -S conftest.c -o - | fgrep "my_strstr" > /dev/null'
7016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7017 (eval $ac_try) 2>&5
7018 ac_status=$?
7019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7020 (exit $ac_status); }; };
7021 then
7022 libc_cv_gcc_builtin_redirection=yes
7023 else
7024 libc_cv_gcc_builtin_redirection=no
7026 rm -f conftest*
7028 { echo "$as_me:$LINENO: result: $libc_cv_gcc_builtin_redirection" >&5
7029 echo "${ECHO_T}$libc_cv_gcc_builtin_redirection" >&6; }
7030 if test "$libc_cv_gcc_builtin_redirection" = yes ; then
7031 cat >>confdefs.h <<\_ACEOF
7032 #define HAVE_BUILTIN_REDIRECTION 1
7033 _ACEOF
7037 if test "x$use__thread" != xno; then
7038 { echo "$as_me:$LINENO: checking for __thread" >&5
7039 echo $ECHO_N "checking for __thread... $ECHO_C" >&6; }
7040 if test "${libc_cv_gcc___thread+set}" = set; then
7041 echo $ECHO_N "(cached) $ECHO_C" >&6
7042 else
7043 cat > conftest.c <<\EOF
7044 __thread int a = 42;
7046 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -c conftest.c >&5'
7047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7048 (eval $ac_try) 2>&5
7049 ac_status=$?
7050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7051 (exit $ac_status); }; }; then
7052 libc_cv_gcc___thread=yes
7053 else
7054 libc_cv_gcc___thread=no
7056 rm -f conftest*
7058 { echo "$as_me:$LINENO: result: $libc_cv_gcc___thread" >&5
7059 echo "${ECHO_T}$libc_cv_gcc___thread" >&6; }
7060 if test "$libc_cv_gcc___thread" = yes; then
7061 cat >>confdefs.h <<\_ACEOF
7062 #define HAVE___THREAD 1
7063 _ACEOF
7066 else
7067 libc_cv_gcc___thread=no
7070 if test "$libc_cv_gcc___thread" = yes; then
7071 { echo "$as_me:$LINENO: checking for tls_model attribute" >&5
7072 echo $ECHO_N "checking for tls_model attribute... $ECHO_C" >&6; }
7073 if test "${libc_cv_gcc_tls_model_attr+set}" = set; then
7074 echo $ECHO_N "(cached) $ECHO_C" >&6
7075 else
7076 cat > conftest.c <<\EOF
7077 extern __thread int a __attribute__((tls_model ("initial-exec")));
7079 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -S -Werror conftest.c >&5'
7080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7081 (eval $ac_try) 2>&5
7082 ac_status=$?
7083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7084 (exit $ac_status); }; }; then
7085 libc_cv_gcc_tls_model_attr=yes
7086 else
7087 libc_cv_gcc_tls_model_attr=no
7089 rm -f conftest*
7091 { echo "$as_me:$LINENO: result: $libc_cv_gcc_tls_model_attr" >&5
7092 echo "${ECHO_T}$libc_cv_gcc_tls_model_attr" >&6; }
7093 if test "$libc_cv_gcc_tls_model_attr" = yes; then
7094 cat >>confdefs.h <<\_ACEOF
7095 #define HAVE_TLS_MODEL_ATTRIBUTE 1
7096 _ACEOF
7101 if test -n "$submachine"; then
7102 { echo "$as_me:$LINENO: checking for compiler option for CPU variant" >&5
7103 echo $ECHO_N "checking for compiler option for CPU variant... $ECHO_C" >&6; }
7104 if test "${libc_cv_cc_submachine+set}" = set; then
7105 echo $ECHO_N "(cached) $ECHO_C" >&6
7106 else
7107 libc_cv_cc_submachine=no
7108 for opt in "-march=$submachine" "-mcpu=$submachine"; do
7109 if { ac_try='${CC-cc} $opt -xc /dev/null -S -o /dev/null'
7110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7111 (eval $ac_try) 2>&5
7112 ac_status=$?
7113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7114 (exit $ac_status); }; }; then
7115 libc_cv_cc_submachine="$opt"
7116 break
7118 done
7120 { echo "$as_me:$LINENO: result: $libc_cv_cc_submachine" >&5
7121 echo "${ECHO_T}$libc_cv_cc_submachine" >&6; }
7122 if test "x$libc_cv_cc_submachine" = xno; then
7123 { { echo "$as_me:$LINENO: error: ${CC-cc} does not support $submachine" >&5
7124 echo "$as_me: error: ${CC-cc} does not support $submachine" >&2;}
7125 { (exit 1); exit 1; }; }
7130 { echo "$as_me:$LINENO: checking for libgd" >&5
7131 echo $ECHO_N "checking for libgd... $ECHO_C" >&6; }
7132 if test "$with_gd" != "no"; then
7133 old_CFLAGS="$CFLAGS"
7134 CFLAGS="$CFLAGS $libgd_include"
7135 old_LDFLAGS="$LDFLAGS"
7136 LDFLAGS="$LDFLAGS $libgd_ldflags"
7137 old_LIBS="$LIBS"
7138 LIBS="$LIBS -lgd -lpng -lz -lm"
7139 cat >conftest.$ac_ext <<_ACEOF
7140 /* confdefs.h. */
7141 _ACEOF
7142 cat confdefs.h >>conftest.$ac_ext
7143 cat >>conftest.$ac_ext <<_ACEOF
7144 /* end confdefs.h. */
7145 #include <gd.h>
7147 main ()
7149 gdImagePng (0, 0)
7151 return 0;
7153 _ACEOF
7154 rm -f conftest.$ac_objext conftest$ac_exeext
7155 if { (ac_try="$ac_link"
7156 case "(($ac_try" in
7157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7158 *) ac_try_echo=$ac_try;;
7159 esac
7160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7161 (eval "$ac_link") 2>conftest.er1
7162 ac_status=$?
7163 grep -v '^ *+' conftest.er1 >conftest.err
7164 rm -f conftest.er1
7165 cat conftest.err >&5
7166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7167 (exit $ac_status); } && {
7168 test -z "$ac_c_werror_flag" ||
7169 test ! -s conftest.err
7170 } && test -s conftest$ac_exeext &&
7171 $as_test_x conftest$ac_exeext; then
7172 LIBGD=yes
7173 else
7174 echo "$as_me: failed program was:" >&5
7175 sed 's/^/| /' conftest.$ac_ext >&5
7177 LIBGD=no
7180 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7181 conftest$ac_exeext conftest.$ac_ext
7182 CFLAGS="$old_CFLAGS"
7183 LDFLAGS="$old_LDFLAGS"
7184 LIBS="$old_LIBS"
7185 else
7186 LIBGD=no
7188 { echo "$as_me:$LINENO: result: $LIBGD" >&5
7189 echo "${ECHO_T}$LIBGD" >&6; }
7192 # SELinux detection
7193 if test x$with_selinux = xno ; then
7194 have_selinux=no;
7195 else
7196 # See if we have the SELinux library
7197 { echo "$as_me:$LINENO: checking for is_selinux_enabled in -lselinux" >&5
7198 echo $ECHO_N "checking for is_selinux_enabled in -lselinux... $ECHO_C" >&6; }
7199 if test "${ac_cv_lib_selinux_is_selinux_enabled+set}" = set; then
7200 echo $ECHO_N "(cached) $ECHO_C" >&6
7201 else
7202 ac_check_lib_save_LIBS=$LIBS
7203 LIBS="-lselinux $LIBS"
7204 cat >conftest.$ac_ext <<_ACEOF
7205 /* confdefs.h. */
7206 _ACEOF
7207 cat confdefs.h >>conftest.$ac_ext
7208 cat >>conftest.$ac_ext <<_ACEOF
7209 /* end confdefs.h. */
7211 /* Override any GCC internal prototype to avoid an error.
7212 Use char because int might match the return type of a GCC
7213 builtin and then its argument prototype would still apply. */
7214 #ifdef __cplusplus
7215 extern "C"
7216 #endif
7217 char is_selinux_enabled ();
7219 main ()
7221 return is_selinux_enabled ();
7223 return 0;
7225 _ACEOF
7226 rm -f conftest.$ac_objext conftest$ac_exeext
7227 if { (ac_try="$ac_link"
7228 case "(($ac_try" in
7229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7230 *) ac_try_echo=$ac_try;;
7231 esac
7232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7233 (eval "$ac_link") 2>conftest.er1
7234 ac_status=$?
7235 grep -v '^ *+' conftest.er1 >conftest.err
7236 rm -f conftest.er1
7237 cat conftest.err >&5
7238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7239 (exit $ac_status); } && {
7240 test -z "$ac_c_werror_flag" ||
7241 test ! -s conftest.err
7242 } && test -s conftest$ac_exeext &&
7243 $as_test_x conftest$ac_exeext; then
7244 ac_cv_lib_selinux_is_selinux_enabled=yes
7245 else
7246 echo "$as_me: failed program was:" >&5
7247 sed 's/^/| /' conftest.$ac_ext >&5
7249 ac_cv_lib_selinux_is_selinux_enabled=no
7252 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7253 conftest$ac_exeext conftest.$ac_ext
7254 LIBS=$ac_check_lib_save_LIBS
7256 { echo "$as_me:$LINENO: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5
7257 echo "${ECHO_T}$ac_cv_lib_selinux_is_selinux_enabled" >&6; }
7258 if test $ac_cv_lib_selinux_is_selinux_enabled = yes; then
7259 have_selinux=yes
7260 else
7261 have_selinux=no
7264 # See if we have the SELinux header with the NSCD permissions in it.
7265 if test x$have_selinux = xyes ; then
7266 { echo "$as_me:$LINENO: checking for NSCD Flask permissions in selinux/av_permissions.h" >&5
7267 echo $ECHO_N "checking for NSCD Flask permissions in selinux/av_permissions.h... $ECHO_C" >&6; }
7268 cat >conftest.$ac_ext <<_ACEOF
7269 /* confdefs.h. */
7270 _ACEOF
7271 cat confdefs.h >>conftest.$ac_ext
7272 cat >>conftest.$ac_ext <<_ACEOF
7273 /* end confdefs.h. */
7274 #include <selinux/av_permissions.h>
7276 main ()
7278 #ifdef NSCD__SHMEMHOST
7279 return 0;
7280 #else
7281 #error NSCD__SHMEMHOST not defined
7282 #endif
7284 return 0;
7286 _ACEOF
7287 rm -f conftest.$ac_objext
7288 if { (ac_try="$ac_compile"
7289 case "(($ac_try" in
7290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7291 *) ac_try_echo=$ac_try;;
7292 esac
7293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7294 (eval "$ac_compile") 2>conftest.er1
7295 ac_status=$?
7296 grep -v '^ *+' conftest.er1 >conftest.err
7297 rm -f conftest.er1
7298 cat conftest.err >&5
7299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7300 (exit $ac_status); } && {
7301 test -z "$ac_c_werror_flag" ||
7302 test ! -s conftest.err
7303 } && test -s conftest.$ac_objext; then
7304 have_selinux=yes
7305 else
7306 echo "$as_me: failed program was:" >&5
7307 sed 's/^/| /' conftest.$ac_ext >&5
7309 have_selinux=no
7312 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7313 { echo "$as_me:$LINENO: result: $have_selinux" >&5
7314 echo "${ECHO_T}$have_selinux" >&6; }
7317 if test x$with_selinux = xyes ; then
7318 if test x$have_selinux = xno ; then
7319 { { echo "$as_me:$LINENO: error: SELinux explicitly required, but sufficiently recent SELinux library not found" >&5
7320 echo "$as_me: error: SELinux explicitly required, but sufficiently recent SELinux library not found" >&2;}
7321 { (exit 1); exit 1; }; }
7325 # Check if we're building with SELinux support.
7326 if test "x$have_selinux" = xyes; then
7328 cat >>confdefs.h <<\_ACEOF
7329 #define HAVE_SELINUX 1
7330 _ACEOF
7333 # See if we have the libaudit library
7334 { echo "$as_me:$LINENO: checking for audit_log_user_avc_message in -laudit" >&5
7335 echo $ECHO_N "checking for audit_log_user_avc_message in -laudit... $ECHO_C" >&6; }
7336 if test "${ac_cv_lib_audit_audit_log_user_avc_message+set}" = set; then
7337 echo $ECHO_N "(cached) $ECHO_C" >&6
7338 else
7339 ac_check_lib_save_LIBS=$LIBS
7340 LIBS="-laudit $LIBS"
7341 cat >conftest.$ac_ext <<_ACEOF
7342 /* confdefs.h. */
7343 _ACEOF
7344 cat confdefs.h >>conftest.$ac_ext
7345 cat >>conftest.$ac_ext <<_ACEOF
7346 /* end confdefs.h. */
7348 /* Override any GCC internal prototype to avoid an error.
7349 Use char because int might match the return type of a GCC
7350 builtin and then its argument prototype would still apply. */
7351 #ifdef __cplusplus
7352 extern "C"
7353 #endif
7354 char audit_log_user_avc_message ();
7356 main ()
7358 return audit_log_user_avc_message ();
7360 return 0;
7362 _ACEOF
7363 rm -f conftest.$ac_objext conftest$ac_exeext
7364 if { (ac_try="$ac_link"
7365 case "(($ac_try" in
7366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7367 *) ac_try_echo=$ac_try;;
7368 esac
7369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7370 (eval "$ac_link") 2>conftest.er1
7371 ac_status=$?
7372 grep -v '^ *+' conftest.er1 >conftest.err
7373 rm -f conftest.er1
7374 cat conftest.err >&5
7375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7376 (exit $ac_status); } && {
7377 test -z "$ac_c_werror_flag" ||
7378 test ! -s conftest.err
7379 } && test -s conftest$ac_exeext &&
7380 $as_test_x conftest$ac_exeext; then
7381 ac_cv_lib_audit_audit_log_user_avc_message=yes
7382 else
7383 echo "$as_me: failed program was:" >&5
7384 sed 's/^/| /' conftest.$ac_ext >&5
7386 ac_cv_lib_audit_audit_log_user_avc_message=no
7389 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7390 conftest$ac_exeext conftest.$ac_ext
7391 LIBS=$ac_check_lib_save_LIBS
7393 { echo "$as_me:$LINENO: result: $ac_cv_lib_audit_audit_log_user_avc_message" >&5
7394 echo "${ECHO_T}$ac_cv_lib_audit_audit_log_user_avc_message" >&6; }
7395 if test $ac_cv_lib_audit_audit_log_user_avc_message = yes; then
7396 have_libaudit=yes
7397 else
7398 have_libaudit=no
7401 if test "x$have_libaudit" = xyes; then
7403 cat >>confdefs.h <<\_ACEOF
7404 #define HAVE_LIBAUDIT 1
7405 _ACEOF
7410 # See if we have the libcap library
7411 { echo "$as_me:$LINENO: checking for cap_init in -lcap" >&5
7412 echo $ECHO_N "checking for cap_init in -lcap... $ECHO_C" >&6; }
7413 if test "${ac_cv_lib_cap_cap_init+set}" = set; then
7414 echo $ECHO_N "(cached) $ECHO_C" >&6
7415 else
7416 ac_check_lib_save_LIBS=$LIBS
7417 LIBS="-lcap $LIBS"
7418 cat >conftest.$ac_ext <<_ACEOF
7419 /* confdefs.h. */
7420 _ACEOF
7421 cat confdefs.h >>conftest.$ac_ext
7422 cat >>conftest.$ac_ext <<_ACEOF
7423 /* end confdefs.h. */
7425 /* Override any GCC internal prototype to avoid an error.
7426 Use char because int might match the return type of a GCC
7427 builtin and then its argument prototype would still apply. */
7428 #ifdef __cplusplus
7429 extern "C"
7430 #endif
7431 char cap_init ();
7433 main ()
7435 return cap_init ();
7437 return 0;
7439 _ACEOF
7440 rm -f conftest.$ac_objext conftest$ac_exeext
7441 if { (ac_try="$ac_link"
7442 case "(($ac_try" in
7443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7444 *) ac_try_echo=$ac_try;;
7445 esac
7446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7447 (eval "$ac_link") 2>conftest.er1
7448 ac_status=$?
7449 grep -v '^ *+' conftest.er1 >conftest.err
7450 rm -f conftest.er1
7451 cat conftest.err >&5
7452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7453 (exit $ac_status); } && {
7454 test -z "$ac_c_werror_flag" ||
7455 test ! -s conftest.err
7456 } && test -s conftest$ac_exeext &&
7457 $as_test_x conftest$ac_exeext; then
7458 ac_cv_lib_cap_cap_init=yes
7459 else
7460 echo "$as_me: failed program was:" >&5
7461 sed 's/^/| /' conftest.$ac_ext >&5
7463 ac_cv_lib_cap_cap_init=no
7466 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7467 conftest$ac_exeext conftest.$ac_ext
7468 LIBS=$ac_check_lib_save_LIBS
7470 { echo "$as_me:$LINENO: result: $ac_cv_lib_cap_cap_init" >&5
7471 echo "${ECHO_T}$ac_cv_lib_cap_cap_init" >&6; }
7472 if test $ac_cv_lib_cap_cap_init = yes; then
7473 have_libcap=yes
7474 else
7475 have_libcap=no
7478 if test "x$have_libcap" = xyes; then
7480 cat >>confdefs.h <<\_ACEOF
7481 #define HAVE_LIBCAP 1
7482 _ACEOF
7490 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
7491 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
7492 if test "${ac_cv_path_GREP+set}" = set; then
7493 echo $ECHO_N "(cached) $ECHO_C" >&6
7494 else
7495 # Extract the first word of "grep ggrep" to use in msg output
7496 if test -z "$GREP"; then
7497 set dummy grep ggrep; ac_prog_name=$2
7498 if test "${ac_cv_path_GREP+set}" = set; then
7499 echo $ECHO_N "(cached) $ECHO_C" >&6
7500 else
7501 ac_path_GREP_found=false
7502 # Loop through the user's path and test for each of PROGNAME-LIST
7503 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7504 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7506 IFS=$as_save_IFS
7507 test -z "$as_dir" && as_dir=.
7508 for ac_prog in grep ggrep; do
7509 for ac_exec_ext in '' $ac_executable_extensions; do
7510 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
7511 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
7512 # Check for GNU ac_path_GREP and select it if it is found.
7513 # Check for GNU $ac_path_GREP
7514 case `"$ac_path_GREP" --version 2>&1` in
7515 *GNU*)
7516 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
7518 ac_count=0
7519 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
7520 while :
7522 cat "conftest.in" "conftest.in" >"conftest.tmp"
7523 mv "conftest.tmp" "conftest.in"
7524 cp "conftest.in" "conftest.nl"
7525 echo 'GREP' >> "conftest.nl"
7526 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7527 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7528 ac_count=`expr $ac_count + 1`
7529 if test $ac_count -gt ${ac_path_GREP_max-0}; then
7530 # Best one so far, save it but keep looking for a better one
7531 ac_cv_path_GREP="$ac_path_GREP"
7532 ac_path_GREP_max=$ac_count
7534 # 10*(2^10) chars as input seems more than enough
7535 test $ac_count -gt 10 && break
7536 done
7537 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7538 esac
7541 $ac_path_GREP_found && break 3
7542 done
7543 done
7545 done
7546 IFS=$as_save_IFS
7551 GREP="$ac_cv_path_GREP"
7552 if test -z "$GREP"; then
7553 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
7554 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
7555 { (exit 1); exit 1; }; }
7558 else
7559 ac_cv_path_GREP=$GREP
7564 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
7565 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
7566 GREP="$ac_cv_path_GREP"
7569 { echo "$as_me:$LINENO: checking for egrep" >&5
7570 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
7571 if test "${ac_cv_path_EGREP+set}" = set; then
7572 echo $ECHO_N "(cached) $ECHO_C" >&6
7573 else
7574 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
7575 then ac_cv_path_EGREP="$GREP -E"
7576 else
7577 # Extract the first word of "egrep" to use in msg output
7578 if test -z "$EGREP"; then
7579 set dummy egrep; ac_prog_name=$2
7580 if test "${ac_cv_path_EGREP+set}" = set; then
7581 echo $ECHO_N "(cached) $ECHO_C" >&6
7582 else
7583 ac_path_EGREP_found=false
7584 # Loop through the user's path and test for each of PROGNAME-LIST
7585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7586 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7588 IFS=$as_save_IFS
7589 test -z "$as_dir" && as_dir=.
7590 for ac_prog in egrep; do
7591 for ac_exec_ext in '' $ac_executable_extensions; do
7592 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
7593 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
7594 # Check for GNU ac_path_EGREP and select it if it is found.
7595 # Check for GNU $ac_path_EGREP
7596 case `"$ac_path_EGREP" --version 2>&1` in
7597 *GNU*)
7598 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
7600 ac_count=0
7601 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
7602 while :
7604 cat "conftest.in" "conftest.in" >"conftest.tmp"
7605 mv "conftest.tmp" "conftest.in"
7606 cp "conftest.in" "conftest.nl"
7607 echo 'EGREP' >> "conftest.nl"
7608 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7609 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7610 ac_count=`expr $ac_count + 1`
7611 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
7612 # Best one so far, save it but keep looking for a better one
7613 ac_cv_path_EGREP="$ac_path_EGREP"
7614 ac_path_EGREP_max=$ac_count
7616 # 10*(2^10) chars as input seems more than enough
7617 test $ac_count -gt 10 && break
7618 done
7619 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7620 esac
7623 $ac_path_EGREP_found && break 3
7624 done
7625 done
7627 done
7628 IFS=$as_save_IFS
7633 EGREP="$ac_cv_path_EGREP"
7634 if test -z "$EGREP"; then
7635 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
7636 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
7637 { (exit 1); exit 1; }; }
7640 else
7641 ac_cv_path_EGREP=$EGREP
7647 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
7648 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
7649 EGREP="$ac_cv_path_EGREP"
7652 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7653 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
7654 if test "${ac_cv_header_stdc+set}" = set; then
7655 echo $ECHO_N "(cached) $ECHO_C" >&6
7656 else
7657 cat >conftest.$ac_ext <<_ACEOF
7658 /* confdefs.h. */
7659 _ACEOF
7660 cat confdefs.h >>conftest.$ac_ext
7661 cat >>conftest.$ac_ext <<_ACEOF
7662 /* end confdefs.h. */
7663 #include <stdlib.h>
7664 #include <stdarg.h>
7665 #include <string.h>
7666 #include <float.h>
7669 main ()
7673 return 0;
7675 _ACEOF
7676 rm -f conftest.$ac_objext
7677 if { (ac_try="$ac_compile"
7678 case "(($ac_try" in
7679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7680 *) ac_try_echo=$ac_try;;
7681 esac
7682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7683 (eval "$ac_compile") 2>conftest.er1
7684 ac_status=$?
7685 grep -v '^ *+' conftest.er1 >conftest.err
7686 rm -f conftest.er1
7687 cat conftest.err >&5
7688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7689 (exit $ac_status); } && {
7690 test -z "$ac_c_werror_flag" ||
7691 test ! -s conftest.err
7692 } && test -s conftest.$ac_objext; then
7693 ac_cv_header_stdc=yes
7694 else
7695 echo "$as_me: failed program was:" >&5
7696 sed 's/^/| /' conftest.$ac_ext >&5
7698 ac_cv_header_stdc=no
7701 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7703 if test $ac_cv_header_stdc = yes; then
7704 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7705 cat >conftest.$ac_ext <<_ACEOF
7706 /* confdefs.h. */
7707 _ACEOF
7708 cat confdefs.h >>conftest.$ac_ext
7709 cat >>conftest.$ac_ext <<_ACEOF
7710 /* end confdefs.h. */
7711 #include <string.h>
7713 _ACEOF
7714 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7715 $EGREP "memchr" >/dev/null 2>&1; then
7717 else
7718 ac_cv_header_stdc=no
7720 rm -f conftest*
7724 if test $ac_cv_header_stdc = yes; then
7725 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7726 cat >conftest.$ac_ext <<_ACEOF
7727 /* confdefs.h. */
7728 _ACEOF
7729 cat confdefs.h >>conftest.$ac_ext
7730 cat >>conftest.$ac_ext <<_ACEOF
7731 /* end confdefs.h. */
7732 #include <stdlib.h>
7734 _ACEOF
7735 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7736 $EGREP "free" >/dev/null 2>&1; then
7738 else
7739 ac_cv_header_stdc=no
7741 rm -f conftest*
7745 if test $ac_cv_header_stdc = yes; then
7746 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7747 if test "$cross_compiling" = yes; then
7749 else
7750 cat >conftest.$ac_ext <<_ACEOF
7751 /* confdefs.h. */
7752 _ACEOF
7753 cat confdefs.h >>conftest.$ac_ext
7754 cat >>conftest.$ac_ext <<_ACEOF
7755 /* end confdefs.h. */
7756 #include <ctype.h>
7757 #include <stdlib.h>
7758 #if ((' ' & 0x0FF) == 0x020)
7759 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7760 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7761 #else
7762 # define ISLOWER(c) \
7763 (('a' <= (c) && (c) <= 'i') \
7764 || ('j' <= (c) && (c) <= 'r') \
7765 || ('s' <= (c) && (c) <= 'z'))
7766 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7767 #endif
7769 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7771 main ()
7773 int i;
7774 for (i = 0; i < 256; i++)
7775 if (XOR (islower (i), ISLOWER (i))
7776 || toupper (i) != TOUPPER (i))
7777 return 2;
7778 return 0;
7780 _ACEOF
7781 rm -f conftest$ac_exeext
7782 if { (ac_try="$ac_link"
7783 case "(($ac_try" in
7784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7785 *) ac_try_echo=$ac_try;;
7786 esac
7787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7788 (eval "$ac_link") 2>&5
7789 ac_status=$?
7790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7791 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7792 { (case "(($ac_try" in
7793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7794 *) ac_try_echo=$ac_try;;
7795 esac
7796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7797 (eval "$ac_try") 2>&5
7798 ac_status=$?
7799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7800 (exit $ac_status); }; }; then
7802 else
7803 echo "$as_me: program exited with status $ac_status" >&5
7804 echo "$as_me: failed program was:" >&5
7805 sed 's/^/| /' conftest.$ac_ext >&5
7807 ( exit $ac_status )
7808 ac_cv_header_stdc=no
7810 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7816 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7817 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
7818 if test $ac_cv_header_stdc = yes; then
7820 cat >>confdefs.h <<\_ACEOF
7821 #define STDC_HEADERS 1
7822 _ACEOF
7826 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7836 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7837 inttypes.h stdint.h unistd.h
7839 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7840 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7841 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7842 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7843 echo $ECHO_N "(cached) $ECHO_C" >&6
7844 else
7845 cat >conftest.$ac_ext <<_ACEOF
7846 /* confdefs.h. */
7847 _ACEOF
7848 cat confdefs.h >>conftest.$ac_ext
7849 cat >>conftest.$ac_ext <<_ACEOF
7850 /* end confdefs.h. */
7851 $ac_includes_default
7853 #include <$ac_header>
7854 _ACEOF
7855 rm -f conftest.$ac_objext
7856 if { (ac_try="$ac_compile"
7857 case "(($ac_try" in
7858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7859 *) ac_try_echo=$ac_try;;
7860 esac
7861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7862 (eval "$ac_compile") 2>conftest.er1
7863 ac_status=$?
7864 grep -v '^ *+' conftest.er1 >conftest.err
7865 rm -f conftest.er1
7866 cat conftest.err >&5
7867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7868 (exit $ac_status); } && {
7869 test -z "$ac_c_werror_flag" ||
7870 test ! -s conftest.err
7871 } && test -s conftest.$ac_objext; then
7872 eval "$as_ac_Header=yes"
7873 else
7874 echo "$as_me: failed program was:" >&5
7875 sed 's/^/| /' conftest.$ac_ext >&5
7877 eval "$as_ac_Header=no"
7880 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7882 ac_res=`eval echo '${'$as_ac_Header'}'`
7883 { echo "$as_me:$LINENO: result: $ac_res" >&5
7884 echo "${ECHO_T}$ac_res" >&6; }
7885 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7886 cat >>confdefs.h <<_ACEOF
7887 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7888 _ACEOF
7892 done
7895 { echo "$as_me:$LINENO: checking for long double" >&5
7896 echo $ECHO_N "checking for long double... $ECHO_C" >&6; }
7897 if test "${ac_cv_type_long_double+set}" = set; then
7898 echo $ECHO_N "(cached) $ECHO_C" >&6
7899 else
7900 cat >conftest.$ac_ext <<_ACEOF
7901 /* confdefs.h. */
7902 _ACEOF
7903 cat confdefs.h >>conftest.$ac_ext
7904 cat >>conftest.$ac_ext <<_ACEOF
7905 /* end confdefs.h. */
7906 $ac_includes_default
7907 typedef long double ac__type_new_;
7909 main ()
7911 if ((ac__type_new_ *) 0)
7912 return 0;
7913 if (sizeof (ac__type_new_))
7914 return 0;
7916 return 0;
7918 _ACEOF
7919 rm -f conftest.$ac_objext
7920 if { (ac_try="$ac_compile"
7921 case "(($ac_try" in
7922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7923 *) ac_try_echo=$ac_try;;
7924 esac
7925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7926 (eval "$ac_compile") 2>conftest.er1
7927 ac_status=$?
7928 grep -v '^ *+' conftest.er1 >conftest.err
7929 rm -f conftest.er1
7930 cat conftest.err >&5
7931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7932 (exit $ac_status); } && {
7933 test -z "$ac_c_werror_flag" ||
7934 test ! -s conftest.err
7935 } && test -s conftest.$ac_objext; then
7936 ac_cv_type_long_double=yes
7937 else
7938 echo "$as_me: failed program was:" >&5
7939 sed 's/^/| /' conftest.$ac_ext >&5
7941 ac_cv_type_long_double=no
7944 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7946 { echo "$as_me:$LINENO: result: $ac_cv_type_long_double" >&5
7947 echo "${ECHO_T}$ac_cv_type_long_double" >&6; }
7949 # The cast to long int works around a bug in the HP C Compiler
7950 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7951 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7952 # This bug is HP SR number 8606223364.
7953 { echo "$as_me:$LINENO: checking size of long double" >&5
7954 echo $ECHO_N "checking size of long double... $ECHO_C" >&6; }
7955 if test "${ac_cv_sizeof_long_double+set}" = set; then
7956 echo $ECHO_N "(cached) $ECHO_C" >&6
7957 else
7958 if test "$cross_compiling" = yes; then
7959 # Depending upon the size, compute the lo and hi bounds.
7960 cat >conftest.$ac_ext <<_ACEOF
7961 /* confdefs.h. */
7962 _ACEOF
7963 cat confdefs.h >>conftest.$ac_ext
7964 cat >>conftest.$ac_ext <<_ACEOF
7965 /* end confdefs.h. */
7966 $ac_includes_default
7967 typedef long double ac__type_sizeof_;
7969 main ()
7971 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
7972 test_array [0] = 0
7975 return 0;
7977 _ACEOF
7978 rm -f conftest.$ac_objext
7979 if { (ac_try="$ac_compile"
7980 case "(($ac_try" in
7981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7982 *) ac_try_echo=$ac_try;;
7983 esac
7984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7985 (eval "$ac_compile") 2>conftest.er1
7986 ac_status=$?
7987 grep -v '^ *+' conftest.er1 >conftest.err
7988 rm -f conftest.er1
7989 cat conftest.err >&5
7990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7991 (exit $ac_status); } && {
7992 test -z "$ac_c_werror_flag" ||
7993 test ! -s conftest.err
7994 } && test -s conftest.$ac_objext; then
7995 ac_lo=0 ac_mid=0
7996 while :; do
7997 cat >conftest.$ac_ext <<_ACEOF
7998 /* confdefs.h. */
7999 _ACEOF
8000 cat confdefs.h >>conftest.$ac_ext
8001 cat >>conftest.$ac_ext <<_ACEOF
8002 /* end confdefs.h. */
8003 $ac_includes_default
8004 typedef long double ac__type_sizeof_;
8006 main ()
8008 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8009 test_array [0] = 0
8012 return 0;
8014 _ACEOF
8015 rm -f conftest.$ac_objext
8016 if { (ac_try="$ac_compile"
8017 case "(($ac_try" in
8018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8019 *) ac_try_echo=$ac_try;;
8020 esac
8021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8022 (eval "$ac_compile") 2>conftest.er1
8023 ac_status=$?
8024 grep -v '^ *+' conftest.er1 >conftest.err
8025 rm -f conftest.er1
8026 cat conftest.err >&5
8027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8028 (exit $ac_status); } && {
8029 test -z "$ac_c_werror_flag" ||
8030 test ! -s conftest.err
8031 } && test -s conftest.$ac_objext; then
8032 ac_hi=$ac_mid; break
8033 else
8034 echo "$as_me: failed program was:" >&5
8035 sed 's/^/| /' conftest.$ac_ext >&5
8037 ac_lo=`expr $ac_mid + 1`
8038 if test $ac_lo -le $ac_mid; then
8039 ac_lo= ac_hi=
8040 break
8042 ac_mid=`expr 2 '*' $ac_mid + 1`
8045 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8046 done
8047 else
8048 echo "$as_me: failed program was:" >&5
8049 sed 's/^/| /' conftest.$ac_ext >&5
8051 cat >conftest.$ac_ext <<_ACEOF
8052 /* confdefs.h. */
8053 _ACEOF
8054 cat confdefs.h >>conftest.$ac_ext
8055 cat >>conftest.$ac_ext <<_ACEOF
8056 /* end confdefs.h. */
8057 $ac_includes_default
8058 typedef long double ac__type_sizeof_;
8060 main ()
8062 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
8063 test_array [0] = 0
8066 return 0;
8068 _ACEOF
8069 rm -f conftest.$ac_objext
8070 if { (ac_try="$ac_compile"
8071 case "(($ac_try" in
8072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8073 *) ac_try_echo=$ac_try;;
8074 esac
8075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8076 (eval "$ac_compile") 2>conftest.er1
8077 ac_status=$?
8078 grep -v '^ *+' conftest.er1 >conftest.err
8079 rm -f conftest.er1
8080 cat conftest.err >&5
8081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8082 (exit $ac_status); } && {
8083 test -z "$ac_c_werror_flag" ||
8084 test ! -s conftest.err
8085 } && test -s conftest.$ac_objext; then
8086 ac_hi=-1 ac_mid=-1
8087 while :; do
8088 cat >conftest.$ac_ext <<_ACEOF
8089 /* confdefs.h. */
8090 _ACEOF
8091 cat confdefs.h >>conftest.$ac_ext
8092 cat >>conftest.$ac_ext <<_ACEOF
8093 /* end confdefs.h. */
8094 $ac_includes_default
8095 typedef long double ac__type_sizeof_;
8097 main ()
8099 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
8100 test_array [0] = 0
8103 return 0;
8105 _ACEOF
8106 rm -f conftest.$ac_objext
8107 if { (ac_try="$ac_compile"
8108 case "(($ac_try" in
8109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8110 *) ac_try_echo=$ac_try;;
8111 esac
8112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8113 (eval "$ac_compile") 2>conftest.er1
8114 ac_status=$?
8115 grep -v '^ *+' conftest.er1 >conftest.err
8116 rm -f conftest.er1
8117 cat conftest.err >&5
8118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8119 (exit $ac_status); } && {
8120 test -z "$ac_c_werror_flag" ||
8121 test ! -s conftest.err
8122 } && test -s conftest.$ac_objext; then
8123 ac_lo=$ac_mid; break
8124 else
8125 echo "$as_me: failed program was:" >&5
8126 sed 's/^/| /' conftest.$ac_ext >&5
8128 ac_hi=`expr '(' $ac_mid ')' - 1`
8129 if test $ac_mid -le $ac_hi; then
8130 ac_lo= ac_hi=
8131 break
8133 ac_mid=`expr 2 '*' $ac_mid`
8136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8137 done
8138 else
8139 echo "$as_me: failed program was:" >&5
8140 sed 's/^/| /' conftest.$ac_ext >&5
8142 ac_lo= ac_hi=
8145 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8148 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8149 # Binary search between lo and hi bounds.
8150 while test "x$ac_lo" != "x$ac_hi"; do
8151 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8152 cat >conftest.$ac_ext <<_ACEOF
8153 /* confdefs.h. */
8154 _ACEOF
8155 cat confdefs.h >>conftest.$ac_ext
8156 cat >>conftest.$ac_ext <<_ACEOF
8157 /* end confdefs.h. */
8158 $ac_includes_default
8159 typedef long double ac__type_sizeof_;
8161 main ()
8163 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8164 test_array [0] = 0
8167 return 0;
8169 _ACEOF
8170 rm -f conftest.$ac_objext
8171 if { (ac_try="$ac_compile"
8172 case "(($ac_try" in
8173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8174 *) ac_try_echo=$ac_try;;
8175 esac
8176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8177 (eval "$ac_compile") 2>conftest.er1
8178 ac_status=$?
8179 grep -v '^ *+' conftest.er1 >conftest.err
8180 rm -f conftest.er1
8181 cat conftest.err >&5
8182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8183 (exit $ac_status); } && {
8184 test -z "$ac_c_werror_flag" ||
8185 test ! -s conftest.err
8186 } && test -s conftest.$ac_objext; then
8187 ac_hi=$ac_mid
8188 else
8189 echo "$as_me: failed program was:" >&5
8190 sed 's/^/| /' conftest.$ac_ext >&5
8192 ac_lo=`expr '(' $ac_mid ')' + 1`
8195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8196 done
8197 case $ac_lo in
8198 ?*) ac_cv_sizeof_long_double=$ac_lo;;
8199 '') if test "$ac_cv_type_long_double" = yes; then
8200 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long double)
8201 See \`config.log' for more details." >&5
8202 echo "$as_me: error: cannot compute sizeof (long double)
8203 See \`config.log' for more details." >&2;}
8204 { (exit 77); exit 77; }; }
8205 else
8206 ac_cv_sizeof_long_double=0
8207 fi ;;
8208 esac
8209 else
8210 cat >conftest.$ac_ext <<_ACEOF
8211 /* confdefs.h. */
8212 _ACEOF
8213 cat confdefs.h >>conftest.$ac_ext
8214 cat >>conftest.$ac_ext <<_ACEOF
8215 /* end confdefs.h. */
8216 $ac_includes_default
8217 typedef long double ac__type_sizeof_;
8218 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
8219 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
8220 #include <stdio.h>
8221 #include <stdlib.h>
8223 main ()
8226 FILE *f = fopen ("conftest.val", "w");
8227 if (! f)
8228 return 1;
8229 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
8231 long int i = longval ();
8232 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8233 return 1;
8234 fprintf (f, "%ld\n", i);
8236 else
8238 unsigned long int i = ulongval ();
8239 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8240 return 1;
8241 fprintf (f, "%lu\n", i);
8243 return ferror (f) || fclose (f) != 0;
8246 return 0;
8248 _ACEOF
8249 rm -f conftest$ac_exeext
8250 if { (ac_try="$ac_link"
8251 case "(($ac_try" in
8252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8253 *) ac_try_echo=$ac_try;;
8254 esac
8255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8256 (eval "$ac_link") 2>&5
8257 ac_status=$?
8258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8259 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8260 { (case "(($ac_try" in
8261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8262 *) ac_try_echo=$ac_try;;
8263 esac
8264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8265 (eval "$ac_try") 2>&5
8266 ac_status=$?
8267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8268 (exit $ac_status); }; }; then
8269 ac_cv_sizeof_long_double=`cat conftest.val`
8270 else
8271 echo "$as_me: program exited with status $ac_status" >&5
8272 echo "$as_me: failed program was:" >&5
8273 sed 's/^/| /' conftest.$ac_ext >&5
8275 ( exit $ac_status )
8276 if test "$ac_cv_type_long_double" = yes; then
8277 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long double)
8278 See \`config.log' for more details." >&5
8279 echo "$as_me: error: cannot compute sizeof (long double)
8280 See \`config.log' for more details." >&2;}
8281 { (exit 77); exit 77; }; }
8282 else
8283 ac_cv_sizeof_long_double=0
8286 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8288 rm -f conftest.val
8290 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_double" >&5
8291 echo "${ECHO_T}$ac_cv_sizeof_long_double" >&6; }
8295 cat >>confdefs.h <<_ACEOF
8296 #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
8297 _ACEOF
8300 sizeof_long_double=$ac_cv_sizeof_long_double
8303 ### End of automated tests.
8304 ### Now run sysdeps configure fragments.
8306 # They also can set these variables.
8307 use_ldconfig=no
8308 ldd_rewrite_script=no
8309 libc_cv_sysconfdir=$sysconfdir
8310 libc_cv_gcc_unwind_find_fde=no
8311 libc_cv_idn=no
8313 # Iterate over all the sysdep directories we will use, running their
8314 # configure fragments, and looking for a uname implementation.
8315 uname=
8316 for dir in $sysnames; do
8317 case $dir in
8318 /*) dest=$dir ;;
8319 *) dest=$srcdir/$dir ;;
8320 esac
8321 if test -r $dest/configure; then
8322 { echo "$as_me:$LINENO: result: running configure fragment for $dir" >&5
8323 echo "${ECHO_T}running configure fragment for $dir" >&6; }
8324 . $dest/configure
8327 if test -z "$uname"; then
8328 if test -r $dest/uname.c ||
8329 test -r $dest/uname.S ||
8330 { test -r $dest/syscalls.list &&
8331 grep '^uname[ ]' $dest/syscalls.list >/dev/null; }; then
8332 uname=$dir
8335 done
8337 if test x$libc_cv_gcc_unwind_find_fde = xyes; then
8338 cat >>confdefs.h <<\_ACEOF
8339 #define EXPORT_UNWIND_FIND_FDE 1
8340 _ACEOF
8345 # If we will use the generic uname implementation, we must figure out what
8346 # it will say by examining the system, and write the results in config-name.h.
8347 if test "$uname" = "sysdeps/generic"; then
8349 uname_sysname=`echo $config_os | sed 's/[0-9.]*$//'`
8350 if test $uname_sysname != $config_os; then
8351 config_release=`echo $config_os | sed s/$uname_sysname//`
8354 { echo "$as_me:$LINENO: checking OS release for uname" >&5
8355 echo $ECHO_N "checking OS release for uname... $ECHO_C" >&6; }
8356 if test "${libc_cv_uname_release+set}" = set; then
8357 echo $ECHO_N "(cached) $ECHO_C" >&6
8358 else
8359 if test -r /vmunix; then
8360 kernel_id=`strings /vmunix | grep UNIX`
8361 elif test -r /dynix; then
8362 kernel_id=`strings /dynix | grep DYNIX`
8363 else
8364 kernel_id=
8367 kernel_release=`echo "$kernel_id" | sed 's/^[^0-9.]*\([0-9.]*\).*$/\1/'`
8368 if test x`echo "$config_release" | sed "s/^$kernel_release//"` \
8369 != x$config_release; then
8370 # The configuration release is a substring of the kernel release.
8371 libc_cv_uname_release=$kernel_release
8372 elif test x$config_release != x; then
8373 libc_cv_uname_release=$config_release
8374 elif test x$kernel_release != x; then
8375 libc_cv_uname_release=$kernel_release
8376 else
8377 libc_cv_uname_release=unknown
8380 { echo "$as_me:$LINENO: result: $libc_cv_uname_release" >&5
8381 echo "${ECHO_T}$libc_cv_uname_release" >&6; }
8382 uname_release="$libc_cv_uname_release"
8384 { echo "$as_me:$LINENO: checking OS version for uname" >&5
8385 echo $ECHO_N "checking OS version for uname... $ECHO_C" >&6; }
8386 if test "${libc_cv_uname_version+set}" = set; then
8387 echo $ECHO_N "(cached) $ECHO_C" >&6
8388 else
8389 if test -r /vmunix; then
8390 kernel_id=`strings /vmunix | grep UNIX`
8391 elif test -r /dynix; then
8392 kernel_id=`strings /dynix | grep DYNIX`
8393 else
8394 kernel_id=
8397 kernel_version=`echo "$kernel_id" | sed 's/^[^#]*#\([0-9]*\).*$/\1/'`
8398 if test -n "$kernel_version"; then
8399 libc_cv_uname_version="$kernel_version"
8400 else
8401 libc_cv_uname_version=unknown
8404 { echo "$as_me:$LINENO: result: $libc_cv_uname_version" >&5
8405 echo "${ECHO_T}$libc_cv_uname_version" >&6; }
8406 uname_version="$libc_cv_uname_version"
8408 config_uname=config-name.h:config-name.in
8409 else
8410 # For non-generic uname, we don't need to create config-name.h at all.
8411 config_uname=
8414 cat >>confdefs.h <<\_ACEOF
8415 #define USE_IN_LIBIO 1
8416 _ACEOF
8419 # Test for old glibc 2.0.x headers so that they can be removed properly
8420 # Search only in includedir.
8421 { echo "$as_me:$LINENO: checking for old glibc 2.0.x headers" >&5
8422 echo $ECHO_N "checking for old glibc 2.0.x headers... $ECHO_C" >&6; }
8423 if eval test -f "${includedir}/elfclass.h" -a -f "${includedir}/fcntlbits.h"
8424 then
8425 old_glibc_headers=yes
8426 else
8427 old_glibc_headers=no
8429 { echo "$as_me:$LINENO: result: $old_glibc_headers" >&5
8430 echo "${ECHO_T}$old_glibc_headers" >&6; }
8431 if test ${old_glibc_headers} = yes; then
8432 { echo "$as_me:$LINENO: WARNING: *** During \"make install\" old headers from glibc 2.0.x will" >&5
8433 echo "$as_me: WARNING: *** During \"make install\" old headers from glibc 2.0.x will" >&2;}
8434 { echo "$as_me:$LINENO: WARNING: *** be removed." >&5
8435 echo "$as_me: WARNING: *** be removed." >&2;}
8451 if test $elf = yes; then
8452 cat >>confdefs.h <<\_ACEOF
8453 #define HAVE_ELF 1
8454 _ACEOF
8457 if test $xcoff = yes; then
8458 cat >>confdefs.h <<\_ACEOF
8459 #define HAVE_XCOFF 1
8460 _ACEOF
8466 if test $shared = default; then
8467 shared=$elf
8470 { echo "$as_me:$LINENO: checking whether -fPIC is default" >&5
8471 echo $ECHO_N "checking whether -fPIC is default... $ECHO_C" >&6; }
8472 if test "${pic_default+set}" = set; then
8473 echo $ECHO_N "(cached) $ECHO_C" >&6
8474 else
8475 pic_default=yes
8476 cat > conftest.c <<EOF
8477 #if defined __PIC__ || defined __pic__ || defined PIC || defined pic
8478 # error PIC is default.
8479 #endif
8481 if eval "${CC-cc} -S conftest.c 2>&5 1>&5"; then
8482 pic_default=no
8484 rm -f conftest.*
8486 { echo "$as_me:$LINENO: result: $pic_default" >&5
8487 echo "${ECHO_T}$pic_default" >&6; }
8500 if test "`(cd $srcdir; pwd)`" = "`pwd`"; then
8501 config_makefile=
8502 else
8503 config_makefile=Makefile
8506 VERSION=`sed -n -e 's/^#define VERSION "\([^"]*\)"/\1/p' < $srcdir/version.h`
8507 RELEASE=`sed -n -e 's/^#define RELEASE "\([^"]*\)"/\1/p' < $srcdir/version.h`
8511 ac_config_files="$ac_config_files config.make ${config_makefile} ${config_uname}"
8513 ac_config_commands="$ac_config_commands default"
8515 cat >confcache <<\_ACEOF
8516 # This file is a shell script that caches the results of configure
8517 # tests run on this system so they can be shared between configure
8518 # scripts and configure runs, see configure's option --config-cache.
8519 # It is not useful on other systems. If it contains results you don't
8520 # want to keep, you may remove or edit it.
8522 # config.status only pays attention to the cache file if you give it
8523 # the --recheck option to rerun configure.
8525 # `ac_cv_env_foo' variables (set or unset) will be overridden when
8526 # loading this file, other *unset* `ac_cv_foo' will be assigned the
8527 # following values.
8529 _ACEOF
8531 # The following way of writing the cache mishandles newlines in values,
8532 # but we know of no workaround that is simple, portable, and efficient.
8533 # So, we kill variables containing newlines.
8534 # Ultrix sh set writes to stderr and can't be redirected directly,
8535 # and sets the high bit in the cache file unless we assign to the vars.
8537 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
8538 eval ac_val=\$$ac_var
8539 case $ac_val in #(
8540 *${as_nl}*)
8541 case $ac_var in #(
8542 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
8543 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
8544 esac
8545 case $ac_var in #(
8546 _ | IFS | as_nl) ;; #(
8547 *) $as_unset $ac_var ;;
8548 esac ;;
8549 esac
8550 done
8552 (set) 2>&1 |
8553 case $as_nl`(ac_space=' '; set) 2>&1` in #(
8554 *${as_nl}ac_space=\ *)
8555 # `set' does not quote correctly, so add quotes (double-quote
8556 # substitution turns \\\\ into \\, and sed turns \\ into \).
8557 sed -n \
8558 "s/'/'\\\\''/g;
8559 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
8560 ;; #(
8562 # `set' quotes correctly as required by POSIX, so do not add quotes.
8563 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
8565 esac |
8566 sort
8568 sed '
8569 /^ac_cv_env_/b end
8570 t clear
8571 :clear
8572 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
8573 t end
8574 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8575 :end' >>confcache
8576 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
8577 if test -w "$cache_file"; then
8578 test "x$cache_file" != "x/dev/null" &&
8579 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
8580 echo "$as_me: updating cache $cache_file" >&6;}
8581 cat confcache >$cache_file
8582 else
8583 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
8584 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
8587 rm -f confcache
8589 test "x$prefix" = xNONE && prefix=$ac_default_prefix
8590 # Let make expand exec_prefix.
8591 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8593 DEFS=-DHAVE_CONFIG_H
8595 ac_libobjs=
8596 ac_ltlibobjs=
8597 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
8598 # 1. Remove the extension, and $U if already installed.
8599 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
8600 ac_i=`echo "$ac_i" | sed "$ac_script"`
8601 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
8602 # will be set to the directory where LIBOBJS objects are built.
8603 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
8604 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
8605 done
8606 LIBOBJS=$ac_libobjs
8608 LTLIBOBJS=$ac_ltlibobjs
8612 : ${CONFIG_STATUS=./config.status}
8613 ac_clean_files_save=$ac_clean_files
8614 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
8615 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
8616 echo "$as_me: creating $CONFIG_STATUS" >&6;}
8617 cat >$CONFIG_STATUS <<_ACEOF
8618 #! $SHELL
8619 # Generated by $as_me.
8620 # Run this file to recreate the current configuration.
8621 # Compiler output produced by configure, useful for debugging
8622 # configure, is in config.log if it exists.
8624 debug=false
8625 ac_cs_recheck=false
8626 ac_cs_silent=false
8627 SHELL=\${CONFIG_SHELL-$SHELL}
8628 _ACEOF
8630 cat >>$CONFIG_STATUS <<\_ACEOF
8631 ## --------------------- ##
8632 ## M4sh Initialization. ##
8633 ## --------------------- ##
8635 # Be more Bourne compatible
8636 DUALCASE=1; export DUALCASE # for MKS sh
8637 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
8638 emulate sh
8639 NULLCMD=:
8640 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
8641 # is contrary to our usage. Disable this feature.
8642 alias -g '${1+"$@"}'='"$@"'
8643 setopt NO_GLOB_SUBST
8644 else
8645 case `(set -o) 2>/dev/null` in
8646 *posix*) set -o posix ;;
8647 esac
8654 # PATH needs CR
8655 # Avoid depending upon Character Ranges.
8656 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
8657 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
8658 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
8659 as_cr_digits='0123456789'
8660 as_cr_alnum=$as_cr_Letters$as_cr_digits
8662 # The user is always right.
8663 if test "${PATH_SEPARATOR+set}" != set; then
8664 echo "#! /bin/sh" >conf$$.sh
8665 echo "exit 0" >>conf$$.sh
8666 chmod +x conf$$.sh
8667 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
8668 PATH_SEPARATOR=';'
8669 else
8670 PATH_SEPARATOR=:
8672 rm -f conf$$.sh
8675 # Support unset when possible.
8676 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
8677 as_unset=unset
8678 else
8679 as_unset=false
8683 # IFS
8684 # We need space, tab and new line, in precisely that order. Quoting is
8685 # there to prevent editors from complaining about space-tab.
8686 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
8687 # splitting by setting IFS to empty value.)
8688 as_nl='
8690 IFS=" "" $as_nl"
8692 # Find who we are. Look in the path if we contain no directory separator.
8693 case $0 in
8694 *[\\/]* ) as_myself=$0 ;;
8695 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8696 for as_dir in $PATH
8698 IFS=$as_save_IFS
8699 test -z "$as_dir" && as_dir=.
8700 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
8701 done
8702 IFS=$as_save_IFS
8705 esac
8706 # We did not find ourselves, most probably we were run as `sh COMMAND'
8707 # in which case we are not to be found in the path.
8708 if test "x$as_myself" = x; then
8709 as_myself=$0
8711 if test ! -f "$as_myself"; then
8712 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
8713 { (exit 1); exit 1; }
8716 # Work around bugs in pre-3.0 UWIN ksh.
8717 for as_var in ENV MAIL MAILPATH
8718 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
8719 done
8720 PS1='$ '
8721 PS2='> '
8722 PS4='+ '
8724 # NLS nuisances.
8725 for as_var in \
8726 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
8727 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
8728 LC_TELEPHONE LC_TIME
8730 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
8731 eval $as_var=C; export $as_var
8732 else
8733 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
8735 done
8737 # Required to use basename.
8738 if expr a : '\(a\)' >/dev/null 2>&1 &&
8739 test "X`expr 00001 : '.*\(...\)'`" = X001; then
8740 as_expr=expr
8741 else
8742 as_expr=false
8745 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
8746 as_basename=basename
8747 else
8748 as_basename=false
8752 # Name of the executable.
8753 as_me=`$as_basename -- "$0" ||
8754 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
8755 X"$0" : 'X\(//\)$' \| \
8756 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
8757 echo X/"$0" |
8758 sed '/^.*\/\([^/][^/]*\)\/*$/{
8759 s//\1/
8762 /^X\/\(\/\/\)$/{
8763 s//\1/
8766 /^X\/\(\/\).*/{
8767 s//\1/
8770 s/.*/./; q'`
8772 # CDPATH.
8773 $as_unset CDPATH
8777 as_lineno_1=$LINENO
8778 as_lineno_2=$LINENO
8779 test "x$as_lineno_1" != "x$as_lineno_2" &&
8780 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
8782 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
8783 # uniformly replaced by the line number. The first 'sed' inserts a
8784 # line-number line after each line using $LINENO; the second 'sed'
8785 # does the real work. The second script uses 'N' to pair each
8786 # line-number line with the line containing $LINENO, and appends
8787 # trailing '-' during substitution so that $LINENO is not a special
8788 # case at line end.
8789 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
8790 # scripts with optimization help from Paolo Bonzini. Blame Lee
8791 # E. McMahon (1931-1989) for sed's syntax. :-)
8792 sed -n '
8794 /[$]LINENO/=
8795 ' <$as_myself |
8796 sed '
8797 s/[$]LINENO.*/&-/
8798 t lineno
8800 :lineno
8802 :loop
8803 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
8804 t loop
8805 s/-\n.*//
8806 ' >$as_me.lineno &&
8807 chmod +x "$as_me.lineno" ||
8808 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
8809 { (exit 1); exit 1; }; }
8811 # Don't try to exec as it changes $[0], causing all sort of problems
8812 # (the dirname of $[0] is not the place where we might find the
8813 # original and so on. Autoconf is especially sensitive to this).
8814 . "./$as_me.lineno"
8815 # Exit status is that of the last command.
8816 exit
8820 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
8821 as_dirname=dirname
8822 else
8823 as_dirname=false
8826 ECHO_C= ECHO_N= ECHO_T=
8827 case `echo -n x` in
8828 -n*)
8829 case `echo 'x\c'` in
8830 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
8831 *) ECHO_C='\c';;
8832 esac;;
8834 ECHO_N='-n';;
8835 esac
8837 if expr a : '\(a\)' >/dev/null 2>&1 &&
8838 test "X`expr 00001 : '.*\(...\)'`" = X001; then
8839 as_expr=expr
8840 else
8841 as_expr=false
8844 rm -f conf$$ conf$$.exe conf$$.file
8845 if test -d conf$$.dir; then
8846 rm -f conf$$.dir/conf$$.file
8847 else
8848 rm -f conf$$.dir
8849 mkdir conf$$.dir
8851 echo >conf$$.file
8852 if ln -s conf$$.file conf$$ 2>/dev/null; then
8853 as_ln_s='ln -s'
8854 # ... but there are two gotchas:
8855 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
8856 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
8857 # In both cases, we have to default to `cp -p'.
8858 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
8859 as_ln_s='cp -p'
8860 elif ln conf$$.file conf$$ 2>/dev/null; then
8861 as_ln_s=ln
8862 else
8863 as_ln_s='cp -p'
8865 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
8866 rmdir conf$$.dir 2>/dev/null
8868 if mkdir -p . 2>/dev/null; then
8869 as_mkdir_p=:
8870 else
8871 test -d ./-p && rmdir ./-p
8872 as_mkdir_p=false
8875 if test -x / >/dev/null 2>&1; then
8876 as_test_x='test -x'
8877 else
8878 if ls -dL / >/dev/null 2>&1; then
8879 as_ls_L_option=L
8880 else
8881 as_ls_L_option=
8883 as_test_x='
8884 eval sh -c '\''
8885 if test -d "$1"; then
8886 test -d "$1/.";
8887 else
8888 case $1 in
8889 -*)set "./$1";;
8890 esac;
8891 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
8892 ???[sx]*):;;*)false;;esac;fi
8893 '\'' sh
8896 as_executable_p=$as_test_x
8898 # Sed expression to map a string onto a valid CPP name.
8899 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
8901 # Sed expression to map a string onto a valid variable name.
8902 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
8905 exec 6>&1
8907 # Save the log message, to keep $[0] and so on meaningful, and to
8908 # report actual input values of CONFIG_FILES etc. instead of their
8909 # values after options handling.
8910 ac_log="
8911 This file was extended by GNU C Library $as_me (see version.h), which was
8912 generated by GNU Autoconf 2.61. Invocation command line was
8914 CONFIG_FILES = $CONFIG_FILES
8915 CONFIG_HEADERS = $CONFIG_HEADERS
8916 CONFIG_LINKS = $CONFIG_LINKS
8917 CONFIG_COMMANDS = $CONFIG_COMMANDS
8918 $ $0 $@
8920 on `(hostname || uname -n) 2>/dev/null | sed 1q`
8923 _ACEOF
8925 cat >>$CONFIG_STATUS <<_ACEOF
8926 # Files that config.status was made for.
8927 config_files="$ac_config_files"
8928 config_headers="$ac_config_headers"
8929 config_commands="$ac_config_commands"
8931 _ACEOF
8933 cat >>$CONFIG_STATUS <<\_ACEOF
8934 ac_cs_usage="\
8935 \`$as_me' instantiates files from templates according to the
8936 current configuration.
8938 Usage: $0 [OPTIONS] [FILE]...
8940 -h, --help print this help, then exit
8941 -V, --version print version number and configuration settings, then exit
8942 -q, --quiet do not print progress messages
8943 -d, --debug don't remove temporary files
8944 --recheck update $as_me by reconfiguring in the same conditions
8945 --file=FILE[:TEMPLATE]
8946 instantiate the configuration file FILE
8947 --header=FILE[:TEMPLATE]
8948 instantiate the configuration header FILE
8950 Configuration files:
8951 $config_files
8953 Configuration headers:
8954 $config_headers
8956 Configuration commands:
8957 $config_commands
8959 Report bugs to <bug-autoconf@gnu.org>."
8961 _ACEOF
8962 cat >>$CONFIG_STATUS <<_ACEOF
8963 ac_cs_version="\\
8964 GNU C Library config.status (see version.h)
8965 configured by $0, generated by GNU Autoconf 2.61,
8966 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
8968 Copyright (C) 2006 Free Software Foundation, Inc.
8969 This config.status script is free software; the Free Software Foundation
8970 gives unlimited permission to copy, distribute and modify it."
8972 ac_pwd='$ac_pwd'
8973 srcdir='$srcdir'
8974 INSTALL='$INSTALL'
8975 _ACEOF
8977 cat >>$CONFIG_STATUS <<\_ACEOF
8978 # If no file are specified by the user, then we need to provide default
8979 # value. By we need to know if files were specified by the user.
8980 ac_need_defaults=:
8981 while test $# != 0
8983 case $1 in
8984 --*=*)
8985 ac_option=`expr "X$1" : 'X\([^=]*\)='`
8986 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
8987 ac_shift=:
8990 ac_option=$1
8991 ac_optarg=$2
8992 ac_shift=shift
8994 esac
8996 case $ac_option in
8997 # Handling of the options.
8998 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8999 ac_cs_recheck=: ;;
9000 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
9001 echo "$ac_cs_version"; exit ;;
9002 --debug | --debu | --deb | --de | --d | -d )
9003 debug=: ;;
9004 --file | --fil | --fi | --f )
9005 $ac_shift
9006 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
9007 ac_need_defaults=false;;
9008 --header | --heade | --head | --hea )
9009 $ac_shift
9010 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
9011 ac_need_defaults=false;;
9012 --he | --h)
9013 # Conflict between --help and --header
9014 { echo "$as_me: error: ambiguous option: $1
9015 Try \`$0 --help' for more information." >&2
9016 { (exit 1); exit 1; }; };;
9017 --help | --hel | -h )
9018 echo "$ac_cs_usage"; exit ;;
9019 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
9020 | -silent | --silent | --silen | --sile | --sil | --si | --s)
9021 ac_cs_silent=: ;;
9023 # This is an error.
9024 -*) { echo "$as_me: error: unrecognized option: $1
9025 Try \`$0 --help' for more information." >&2
9026 { (exit 1); exit 1; }; } ;;
9028 *) ac_config_targets="$ac_config_targets $1"
9029 ac_need_defaults=false ;;
9031 esac
9032 shift
9033 done
9035 ac_configure_extra_args=
9037 if $ac_cs_silent; then
9038 exec 6>/dev/null
9039 ac_configure_extra_args="$ac_configure_extra_args --silent"
9042 _ACEOF
9043 cat >>$CONFIG_STATUS <<_ACEOF
9044 if \$ac_cs_recheck; then
9045 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
9046 CONFIG_SHELL=$SHELL
9047 export CONFIG_SHELL
9048 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
9051 _ACEOF
9052 cat >>$CONFIG_STATUS <<\_ACEOF
9053 exec 5>>config.log
9055 echo
9056 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
9057 ## Running $as_me. ##
9058 _ASBOX
9059 echo "$ac_log"
9060 } >&5
9062 _ACEOF
9063 cat >>$CONFIG_STATUS <<_ACEOF
9065 # INIT-COMMANDS
9067 config_vars='$config_vars'
9069 _ACEOF
9071 cat >>$CONFIG_STATUS <<\_ACEOF
9073 # Handling of arguments.
9074 for ac_config_target in $ac_config_targets
9076 case $ac_config_target in
9077 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
9078 "config.make") CONFIG_FILES="$CONFIG_FILES config.make" ;;
9079 "${config_makefile}") CONFIG_FILES="$CONFIG_FILES ${config_makefile}" ;;
9080 "${config_uname}") CONFIG_FILES="$CONFIG_FILES ${config_uname}" ;;
9081 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
9083 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
9084 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
9085 { (exit 1); exit 1; }; };;
9086 esac
9087 done
9090 # If the user did not use the arguments to specify the items to instantiate,
9091 # then the envvar interface is used. Set only those that are not.
9092 # We use the long form for the default assignment because of an extremely
9093 # bizarre bug on SunOS 4.1.3.
9094 if $ac_need_defaults; then
9095 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
9096 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
9097 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
9100 # Have a temporary directory for convenience. Make it in the build tree
9101 # simply because there is no reason against having it here, and in addition,
9102 # creating and moving files from /tmp can sometimes cause problems.
9103 # Hook for its removal unless debugging.
9104 # Note that there is a small window in which the directory will not be cleaned:
9105 # after its creation but before its name has been assigned to `$tmp'.
9106 $debug ||
9108 tmp=
9109 trap 'exit_status=$?
9110 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
9112 trap '{ (exit 1); exit 1; }' 1 2 13 15
9114 # Create a (secure) tmp directory for tmp files.
9117 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
9118 test -n "$tmp" && test -d "$tmp"
9119 } ||
9121 tmp=./conf$$-$RANDOM
9122 (umask 077 && mkdir "$tmp")
9123 } ||
9125 echo "$me: cannot create a temporary directory in ." >&2
9126 { (exit 1); exit 1; }
9130 # Set up the sed scripts for CONFIG_FILES section.
9133 # No need to generate the scripts if there are no CONFIG_FILES.
9134 # This happens for instance when ./config.status config.h
9135 if test -n "$CONFIG_FILES"; then
9137 _ACEOF
9141 ac_delim='%!_!# '
9142 for ac_last_try in false false false false false :; do
9143 cat >conf$$subs.sed <<_ACEOF
9144 SHELL!$SHELL$ac_delim
9145 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
9146 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
9147 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
9148 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
9149 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
9150 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
9151 exec_prefix!$exec_prefix$ac_delim
9152 prefix!$prefix$ac_delim
9153 program_transform_name!$program_transform_name$ac_delim
9154 bindir!$bindir$ac_delim
9155 sbindir!$sbindir$ac_delim
9156 libexecdir!$libexecdir$ac_delim
9157 datarootdir!$datarootdir$ac_delim
9158 datadir!$datadir$ac_delim
9159 sysconfdir!$sysconfdir$ac_delim
9160 sharedstatedir!$sharedstatedir$ac_delim
9161 localstatedir!$localstatedir$ac_delim
9162 includedir!$includedir$ac_delim
9163 oldincludedir!$oldincludedir$ac_delim
9164 docdir!$docdir$ac_delim
9165 infodir!$infodir$ac_delim
9166 htmldir!$htmldir$ac_delim
9167 dvidir!$dvidir$ac_delim
9168 pdfdir!$pdfdir$ac_delim
9169 psdir!$psdir$ac_delim
9170 libdir!$libdir$ac_delim
9171 localedir!$localedir$ac_delim
9172 mandir!$mandir$ac_delim
9173 DEFS!$DEFS$ac_delim
9174 ECHO_C!$ECHO_C$ac_delim
9175 ECHO_N!$ECHO_N$ac_delim
9176 ECHO_T!$ECHO_T$ac_delim
9177 LIBS!$LIBS$ac_delim
9178 build_alias!$build_alias$ac_delim
9179 host_alias!$host_alias$ac_delim
9180 target_alias!$target_alias$ac_delim
9181 with_fp!$with_fp$ac_delim
9182 with_cvs!$with_cvs$ac_delim
9183 enable_check_abi!$enable_check_abi$ac_delim
9184 oldest_abi!$oldest_abi$ac_delim
9185 bindnow!$bindnow$ac_delim
9186 force_install!$force_install$ac_delim
9187 all_warnings!$all_warnings$ac_delim
9188 build!$build$ac_delim
9189 build_cpu!$build_cpu$ac_delim
9190 build_vendor!$build_vendor$ac_delim
9191 build_os!$build_os$ac_delim
9192 host!$host$ac_delim
9193 host_cpu!$host_cpu$ac_delim
9194 host_vendor!$host_vendor$ac_delim
9195 host_os!$host_os$ac_delim
9196 subdirs!$subdirs$ac_delim
9197 add_ons!$add_ons$ac_delim
9198 add_on_subdirs!$add_on_subdirs$ac_delim
9199 base_machine!$base_machine$ac_delim
9200 submachine!$submachine$ac_delim
9201 sysnames!$sysnames$ac_delim
9202 sysdeps_add_ons!$sysdeps_add_ons$ac_delim
9203 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
9204 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
9205 INSTALL_DATA!$INSTALL_DATA$ac_delim
9206 LN_S!$LN_S$ac_delim
9207 CC!$CC$ac_delim
9208 CFLAGS!$CFLAGS$ac_delim
9209 LDFLAGS!$LDFLAGS$ac_delim
9210 CPPFLAGS!$CPPFLAGS$ac_delim
9211 ac_ct_CC!$ac_ct_CC$ac_delim
9212 OBJEXT!$OBJEXT$ac_delim
9213 BUILD_CC!$BUILD_CC$ac_delim
9214 cross_compiling!$cross_compiling$ac_delim
9215 CPP!$CPP$ac_delim
9216 CXX!$CXX$ac_delim
9217 CXXFLAGS!$CXXFLAGS$ac_delim
9218 ac_ct_CXX!$ac_ct_CXX$ac_delim
9219 AR!$AR$ac_delim
9220 OBJDUMP!$OBJDUMP$ac_delim
9221 RANLIB!$RANLIB$ac_delim
9222 MIG!$MIG$ac_delim
9223 AS!$AS$ac_delim
9224 LD!$LD$ac_delim
9225 PWD_P!$PWD_P$ac_delim
9226 MAKE!$MAKE$ac_delim
9227 MSGFMT!$MSGFMT$ac_delim
9228 MAKEINFO!$MAKEINFO$ac_delim
9229 SED!$SED$ac_delim
9230 AUTOCONF!$AUTOCONF$ac_delim
9231 SYSINCLUDES!$SYSINCLUDES$ac_delim
9232 CXX_SYSINCLUDES!$CXX_SYSINCLUDES$ac_delim
9233 libc_cv_gcc_static_libgcc!$libc_cv_gcc_static_libgcc$ac_delim
9234 BASH_SHELL!$BASH_SHELL$ac_delim
9235 libc_cv_have_bash2!$libc_cv_have_bash2$ac_delim
9236 KSH!$KSH$ac_delim
9237 libc_cv_have_ksh!$libc_cv_have_ksh$ac_delim
9238 AWK!$AWK$ac_delim
9239 PERL!$PERL$ac_delim
9240 INSTALL_INFO!$INSTALL_INFO$ac_delim
9241 _ACEOF
9243 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
9244 break
9245 elif $ac_last_try; then
9246 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
9247 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
9248 { (exit 1); exit 1; }; }
9249 else
9250 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
9252 done
9254 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
9255 if test -n "$ac_eof"; then
9256 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
9257 ac_eof=`expr $ac_eof + 1`
9260 cat >>$CONFIG_STATUS <<_ACEOF
9261 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
9262 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
9263 _ACEOF
9264 sed '
9265 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
9266 s/^/s,@/; s/!/@,|#_!!_#|/
9269 s/'"$ac_delim"'$/,g/; t
9270 s/$/\\/; p
9271 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
9272 ' >>$CONFIG_STATUS <conf$$subs.sed
9273 rm -f conf$$subs.sed
9274 cat >>$CONFIG_STATUS <<_ACEOF
9275 CEOF$ac_eof
9276 _ACEOF
9279 ac_delim='%!_!# '
9280 for ac_last_try in false false false false false :; do
9281 cat >conf$$subs.sed <<_ACEOF
9282 BISON!$BISON$ac_delim
9283 VERSIONING!$VERSIONING$ac_delim
9284 libc_cv_cc_with_libunwind!$libc_cv_cc_with_libunwind$ac_delim
9285 libc_cv_Bgroup!$libc_cv_Bgroup$ac_delim
9286 libc_cv_libgcc_s_suffix!$libc_cv_libgcc_s_suffix$ac_delim
9287 libc_cv_as_needed!$libc_cv_as_needed$ac_delim
9288 ASFLAGS_config!$ASFLAGS_config$ac_delim
9289 libc_cv_z_combreloc!$libc_cv_z_combreloc$ac_delim
9290 libc_cv_z_execstack!$libc_cv_z_execstack$ac_delim
9291 libc_cv_fpie!$libc_cv_fpie$ac_delim
9292 libc_cv_hashstyle!$libc_cv_hashstyle$ac_delim
9293 fno_unit_at_a_time!$fno_unit_at_a_time$ac_delim
9294 libc_cv_ssp!$libc_cv_ssp$ac_delim
9295 libc_cv_gnu89_inline!$libc_cv_gnu89_inline$ac_delim
9296 libc_cv_have_initfini!$libc_cv_have_initfini$ac_delim
9297 no_whole_archive!$no_whole_archive$ac_delim
9298 exceptions!$exceptions$ac_delim
9299 libc_cv_cc_submachine!$libc_cv_cc_submachine$ac_delim
9300 LIBGD!$LIBGD$ac_delim
9301 have_libaudit!$have_libaudit$ac_delim
9302 have_libcap!$have_libcap$ac_delim
9303 have_selinux!$have_selinux$ac_delim
9304 GREP!$GREP$ac_delim
9305 EGREP!$EGREP$ac_delim
9306 sizeof_long_double!$sizeof_long_double$ac_delim
9307 libc_cv_gcc_unwind_find_fde!$libc_cv_gcc_unwind_find_fde$ac_delim
9308 uname_sysname!$uname_sysname$ac_delim
9309 uname_release!$uname_release$ac_delim
9310 uname_version!$uname_version$ac_delim
9311 old_glibc_headers!$old_glibc_headers$ac_delim
9312 libc_cv_slibdir!$libc_cv_slibdir$ac_delim
9313 libc_cv_localedir!$libc_cv_localedir$ac_delim
9314 libc_cv_sysconfdir!$libc_cv_sysconfdir$ac_delim
9315 libc_cv_rootsbindir!$libc_cv_rootsbindir$ac_delim
9316 libc_cv_forced_unwind!$libc_cv_forced_unwind$ac_delim
9317 libc_cv_cpp_asm_debuginfo!$libc_cv_cpp_asm_debuginfo$ac_delim
9318 use_ldconfig!$use_ldconfig$ac_delim
9319 ldd_rewrite_script!$ldd_rewrite_script$ac_delim
9320 elf!$elf$ac_delim
9321 xcoff!$xcoff$ac_delim
9322 static!$static$ac_delim
9323 shared!$shared$ac_delim
9324 pic_default!$pic_default$ac_delim
9325 profile!$profile$ac_delim
9326 omitfp!$omitfp$ac_delim
9327 bounded!$bounded$ac_delim
9328 static_nss!$static_nss$ac_delim
9329 nopic_initfini!$nopic_initfini$ac_delim
9330 DEFINES!$DEFINES$ac_delim
9331 mach_interface_list!$mach_interface_list$ac_delim
9332 VERSION!$VERSION$ac_delim
9333 RELEASE!$RELEASE$ac_delim
9334 LIBOBJS!$LIBOBJS$ac_delim
9335 LTLIBOBJS!$LTLIBOBJS$ac_delim
9336 _ACEOF
9338 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 54; then
9339 break
9340 elif $ac_last_try; then
9341 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
9342 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
9343 { (exit 1); exit 1; }; }
9344 else
9345 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
9347 done
9349 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
9350 if test -n "$ac_eof"; then
9351 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
9352 ac_eof=`expr $ac_eof + 1`
9355 cat >>$CONFIG_STATUS <<_ACEOF
9356 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
9357 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
9358 _ACEOF
9359 sed '
9360 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
9361 s/^/s,@/; s/!/@,|#_!!_#|/
9364 s/'"$ac_delim"'$/,g/; t
9365 s/$/\\/; p
9366 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
9367 ' >>$CONFIG_STATUS <conf$$subs.sed
9368 rm -f conf$$subs.sed
9369 cat >>$CONFIG_STATUS <<_ACEOF
9370 :end
9371 s/|#_!!_#|//g
9372 CEOF$ac_eof
9373 _ACEOF
9376 # VPATH may cause trouble with some makes, so we remove $(srcdir),
9377 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
9378 # trailing colons and then remove the whole line if VPATH becomes empty
9379 # (actually we leave an empty line to preserve line numbers).
9380 if test "x$srcdir" = x.; then
9381 ac_vpsub='/^[ ]*VPATH[ ]*=/{
9382 s/:*\$(srcdir):*/:/
9383 s/:*\${srcdir}:*/:/
9384 s/:*@srcdir@:*/:/
9385 s/^\([^=]*=[ ]*\):*/\1/
9386 s/:*$//
9387 s/^[^=]*=[ ]*$//
9391 cat >>$CONFIG_STATUS <<\_ACEOF
9392 fi # test -n "$CONFIG_FILES"
9395 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
9397 case $ac_tag in
9398 :[FHLC]) ac_mode=$ac_tag; continue;;
9399 esac
9400 case $ac_mode$ac_tag in
9401 :[FHL]*:*);;
9402 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
9403 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
9404 { (exit 1); exit 1; }; };;
9405 :[FH]-) ac_tag=-:-;;
9406 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
9407 esac
9408 ac_save_IFS=$IFS
9409 IFS=:
9410 set x $ac_tag
9411 IFS=$ac_save_IFS
9412 shift
9413 ac_file=$1
9414 shift
9416 case $ac_mode in
9417 :L) ac_source=$1;;
9418 :[FH])
9419 ac_file_inputs=
9420 for ac_f
9422 case $ac_f in
9423 -) ac_f="$tmp/stdin";;
9424 *) # Look for the file first in the build tree, then in the source tree
9425 # (if the path is not absolute). The absolute path cannot be DOS-style,
9426 # because $ac_f cannot contain `:'.
9427 test -f "$ac_f" ||
9428 case $ac_f in
9429 [\\/$]*) false;;
9430 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
9431 esac ||
9432 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
9433 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
9434 { (exit 1); exit 1; }; };;
9435 esac
9436 ac_file_inputs="$ac_file_inputs $ac_f"
9437 done
9439 # Let's still pretend it is `configure' which instantiates (i.e., don't
9440 # use $as_me), people would be surprised to read:
9441 # /* config.h. Generated by config.status. */
9442 configure_input="Generated from "`IFS=:
9443 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
9444 if test x"$ac_file" != x-; then
9445 configure_input="$ac_file. $configure_input"
9446 { echo "$as_me:$LINENO: creating $ac_file" >&5
9447 echo "$as_me: creating $ac_file" >&6;}
9450 case $ac_tag in
9451 *:-:* | *:-) cat >"$tmp/stdin";;
9452 esac
9454 esac
9456 ac_dir=`$as_dirname -- "$ac_file" ||
9457 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9458 X"$ac_file" : 'X\(//\)[^/]' \| \
9459 X"$ac_file" : 'X\(//\)$' \| \
9460 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
9461 echo X"$ac_file" |
9462 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9463 s//\1/
9466 /^X\(\/\/\)[^/].*/{
9467 s//\1/
9470 /^X\(\/\/\)$/{
9471 s//\1/
9474 /^X\(\/\).*/{
9475 s//\1/
9478 s/.*/./; q'`
9479 { as_dir="$ac_dir"
9480 case $as_dir in #(
9481 -*) as_dir=./$as_dir;;
9482 esac
9483 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
9484 as_dirs=
9485 while :; do
9486 case $as_dir in #(
9487 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
9488 *) as_qdir=$as_dir;;
9489 esac
9490 as_dirs="'$as_qdir' $as_dirs"
9491 as_dir=`$as_dirname -- "$as_dir" ||
9492 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9493 X"$as_dir" : 'X\(//\)[^/]' \| \
9494 X"$as_dir" : 'X\(//\)$' \| \
9495 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
9496 echo X"$as_dir" |
9497 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9498 s//\1/
9501 /^X\(\/\/\)[^/].*/{
9502 s//\1/
9505 /^X\(\/\/\)$/{
9506 s//\1/
9509 /^X\(\/\).*/{
9510 s//\1/
9513 s/.*/./; q'`
9514 test -d "$as_dir" && break
9515 done
9516 test -z "$as_dirs" || eval "mkdir $as_dirs"
9517 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
9518 echo "$as_me: error: cannot create directory $as_dir" >&2;}
9519 { (exit 1); exit 1; }; }; }
9520 ac_builddir=.
9522 case "$ac_dir" in
9523 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
9525 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
9526 # A ".." for each directory in $ac_dir_suffix.
9527 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
9528 case $ac_top_builddir_sub in
9529 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
9530 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
9531 esac ;;
9532 esac
9533 ac_abs_top_builddir=$ac_pwd
9534 ac_abs_builddir=$ac_pwd$ac_dir_suffix
9535 # for backward compatibility:
9536 ac_top_builddir=$ac_top_build_prefix
9538 case $srcdir in
9539 .) # We are building in place.
9540 ac_srcdir=.
9541 ac_top_srcdir=$ac_top_builddir_sub
9542 ac_abs_top_srcdir=$ac_pwd ;;
9543 [\\/]* | ?:[\\/]* ) # Absolute name.
9544 ac_srcdir=$srcdir$ac_dir_suffix;
9545 ac_top_srcdir=$srcdir
9546 ac_abs_top_srcdir=$srcdir ;;
9547 *) # Relative name.
9548 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
9549 ac_top_srcdir=$ac_top_build_prefix$srcdir
9550 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
9551 esac
9552 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
9555 case $ac_mode in
9558 # CONFIG_FILE
9561 case $INSTALL in
9562 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
9563 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
9564 esac
9565 _ACEOF
9567 cat >>$CONFIG_STATUS <<\_ACEOF
9568 # If the template does not know about datarootdir, expand it.
9569 # FIXME: This hack should be removed a few years after 2.60.
9570 ac_datarootdir_hack=; ac_datarootdir_seen=
9572 case `sed -n '/datarootdir/ {
9576 /@datadir@/p
9577 /@docdir@/p
9578 /@infodir@/p
9579 /@localedir@/p
9580 /@mandir@/p
9581 ' $ac_file_inputs` in
9582 *datarootdir*) ac_datarootdir_seen=yes;;
9583 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
9584 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
9585 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
9586 _ACEOF
9587 cat >>$CONFIG_STATUS <<_ACEOF
9588 ac_datarootdir_hack='
9589 s&@datadir@&$datadir&g
9590 s&@docdir@&$docdir&g
9591 s&@infodir@&$infodir&g
9592 s&@localedir@&$localedir&g
9593 s&@mandir@&$mandir&g
9594 s&\\\${datarootdir}&$datarootdir&g' ;;
9595 esac
9596 _ACEOF
9598 # Neutralize VPATH when `$srcdir' = `.'.
9599 # Shell code in configure.ac might set extrasub.
9600 # FIXME: do we really want to maintain this feature?
9601 cat >>$CONFIG_STATUS <<_ACEOF
9602 sed "$ac_vpsub
9603 $extrasub
9604 _ACEOF
9605 cat >>$CONFIG_STATUS <<\_ACEOF
9607 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
9608 s&@configure_input@&$configure_input&;t t
9609 s&@top_builddir@&$ac_top_builddir_sub&;t t
9610 s&@srcdir@&$ac_srcdir&;t t
9611 s&@abs_srcdir@&$ac_abs_srcdir&;t t
9612 s&@top_srcdir@&$ac_top_srcdir&;t t
9613 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
9614 s&@builddir@&$ac_builddir&;t t
9615 s&@abs_builddir@&$ac_abs_builddir&;t t
9616 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
9617 s&@INSTALL@&$ac_INSTALL&;t t
9618 $ac_datarootdir_hack
9619 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
9621 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
9622 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
9623 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
9624 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
9625 which seems to be undefined. Please make sure it is defined." >&5
9626 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
9627 which seems to be undefined. Please make sure it is defined." >&2;}
9629 rm -f "$tmp/stdin"
9630 case $ac_file in
9631 -) cat "$tmp/out"; rm -f "$tmp/out";;
9632 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
9633 esac
9637 # CONFIG_HEADER
9639 _ACEOF
9641 # Transform confdefs.h into a sed script `conftest.defines', that
9642 # substitutes the proper values into config.h.in to produce config.h.
9643 rm -f conftest.defines conftest.tail
9644 # First, append a space to every undef/define line, to ease matching.
9645 echo 's/$/ /' >conftest.defines
9646 # Then, protect against being on the right side of a sed subst, or in
9647 # an unquoted here document, in config.status. If some macros were
9648 # called several times there might be several #defines for the same
9649 # symbol, which is useless. But do not sort them, since the last
9650 # AC_DEFINE must be honored.
9651 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
9652 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
9653 # NAME is the cpp macro being defined, VALUE is the value it is being given.
9654 # PARAMS is the parameter list in the macro definition--in most cases, it's
9655 # just an empty string.
9656 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
9657 ac_dB='\\)[ (].*,\\1define\\2'
9658 ac_dC=' '
9659 ac_dD=' ,'
9661 uniq confdefs.h |
9662 sed -n '
9663 t rset
9664 :rset
9665 s/^[ ]*#[ ]*define[ ][ ]*//
9666 t ok
9669 s/[\\&,]/\\&/g
9670 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
9671 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
9672 ' >>conftest.defines
9674 # Remove the space that was appended to ease matching.
9675 # Then replace #undef with comments. This is necessary, for
9676 # example, in the case of _POSIX_SOURCE, which is predefined and required
9677 # on some systems where configure will not decide to define it.
9678 # (The regexp can be short, since the line contains either #define or #undef.)
9679 echo 's/ $//
9680 s,^[ #]*u.*,/* & */,' >>conftest.defines
9682 # Break up conftest.defines:
9683 ac_max_sed_lines=50
9685 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
9686 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
9687 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
9688 # et cetera.
9689 ac_in='$ac_file_inputs'
9690 ac_out='"$tmp/out1"'
9691 ac_nxt='"$tmp/out2"'
9693 while :
9695 # Write a here document:
9696 cat >>$CONFIG_STATUS <<_ACEOF
9697 # First, check the format of the line:
9698 cat >"\$tmp/defines.sed" <<\\CEOF
9699 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
9700 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
9702 :def
9703 _ACEOF
9704 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
9705 echo 'CEOF
9706 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
9707 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
9708 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
9709 grep . conftest.tail >/dev/null || break
9710 rm -f conftest.defines
9711 mv conftest.tail conftest.defines
9712 done
9713 rm -f conftest.defines conftest.tail
9715 echo "ac_result=$ac_in" >>$CONFIG_STATUS
9716 cat >>$CONFIG_STATUS <<\_ACEOF
9717 if test x"$ac_file" != x-; then
9718 echo "/* $configure_input */" >"$tmp/config.h"
9719 cat "$ac_result" >>"$tmp/config.h"
9720 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
9721 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
9722 echo "$as_me: $ac_file is unchanged" >&6;}
9723 else
9724 rm -f $ac_file
9725 mv "$tmp/config.h" $ac_file
9727 else
9728 echo "/* $configure_input */"
9729 cat "$ac_result"
9731 rm -f "$tmp/out12"
9734 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
9735 echo "$as_me: executing $ac_file commands" >&6;}
9737 esac
9740 case $ac_file$ac_mode in
9741 "default":C)
9742 case $CONFIG_FILES in *config.make*)
9743 echo "$config_vars" >> config.make;;
9744 esac
9745 test -d bits || mkdir bits ;;
9747 esac
9748 done # for ac_tag
9751 { (exit 0); exit 0; }
9752 _ACEOF
9753 chmod +x $CONFIG_STATUS
9754 ac_clean_files=$ac_clean_files_save
9757 # configure is writing to config.log, and then calls config.status.
9758 # config.status does its own redirection, appending to config.log.
9759 # Unfortunately, on DOS this fails, as config.log is still kept open
9760 # by configure, so config.status won't be able to write to it; its
9761 # output is simply discarded. So we exec the FD to /dev/null,
9762 # effectively closing config.log, so it can be properly (re)opened and
9763 # appended to by config.status. When coming back to configure, we
9764 # need to make the FD available again.
9765 if test "$no_create" != yes; then
9766 ac_cs_success=:
9767 ac_config_status_args=
9768 test "$silent" = yes &&
9769 ac_config_status_args="$ac_config_status_args --quiet"
9770 exec 5>/dev/null
9771 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
9772 exec 5>>config.log
9773 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
9774 # would make configure fail if this is the last instruction.
9775 $ac_cs_success || { (exit 1); exit 1; }
9779 # CONFIG_SUBDIRS section.
9781 if test "$no_recursion" != yes; then
9783 # Remove --cache-file and --srcdir arguments so they do not pile up.
9784 ac_sub_configure_args=
9785 ac_prev=
9786 eval "set x $ac_configure_args"
9787 shift
9788 for ac_arg
9790 if test -n "$ac_prev"; then
9791 ac_prev=
9792 continue
9794 case $ac_arg in
9795 -cache-file | --cache-file | --cache-fil | --cache-fi \
9796 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
9797 ac_prev=cache_file ;;
9798 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
9799 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
9800 | --c=*)
9802 --config-cache | -C)
9804 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
9805 ac_prev=srcdir ;;
9806 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
9808 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
9809 ac_prev=prefix ;;
9810 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
9813 case $ac_arg in
9814 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
9815 esac
9816 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
9817 esac
9818 done
9820 # Always prepend --prefix to ensure using the same prefix
9821 # in subdir configurations.
9822 ac_arg="--prefix=$prefix"
9823 case $ac_arg in
9824 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
9825 esac
9826 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
9828 # Pass --silent
9829 if test "$silent" = yes; then
9830 ac_sub_configure_args="--silent $ac_sub_configure_args"
9833 ac_popdir=`pwd`
9834 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
9836 # Do not complain, so a configure script can configure whichever
9837 # parts of a large source tree are present.
9838 test -d "$srcdir/$ac_dir" || continue
9840 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
9841 echo "$as_me:$LINENO: $ac_msg" >&5
9842 echo "$ac_msg" >&6
9843 { as_dir="$ac_dir"
9844 case $as_dir in #(
9845 -*) as_dir=./$as_dir;;
9846 esac
9847 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
9848 as_dirs=
9849 while :; do
9850 case $as_dir in #(
9851 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
9852 *) as_qdir=$as_dir;;
9853 esac
9854 as_dirs="'$as_qdir' $as_dirs"
9855 as_dir=`$as_dirname -- "$as_dir" ||
9856 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9857 X"$as_dir" : 'X\(//\)[^/]' \| \
9858 X"$as_dir" : 'X\(//\)$' \| \
9859 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
9860 echo X"$as_dir" |
9861 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9862 s//\1/
9865 /^X\(\/\/\)[^/].*/{
9866 s//\1/
9869 /^X\(\/\/\)$/{
9870 s//\1/
9873 /^X\(\/\).*/{
9874 s//\1/
9877 s/.*/./; q'`
9878 test -d "$as_dir" && break
9879 done
9880 test -z "$as_dirs" || eval "mkdir $as_dirs"
9881 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
9882 echo "$as_me: error: cannot create directory $as_dir" >&2;}
9883 { (exit 1); exit 1; }; }; }
9884 ac_builddir=.
9886 case "$ac_dir" in
9887 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
9889 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
9890 # A ".." for each directory in $ac_dir_suffix.
9891 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
9892 case $ac_top_builddir_sub in
9893 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
9894 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
9895 esac ;;
9896 esac
9897 ac_abs_top_builddir=$ac_pwd
9898 ac_abs_builddir=$ac_pwd$ac_dir_suffix
9899 # for backward compatibility:
9900 ac_top_builddir=$ac_top_build_prefix
9902 case $srcdir in
9903 .) # We are building in place.
9904 ac_srcdir=.
9905 ac_top_srcdir=$ac_top_builddir_sub
9906 ac_abs_top_srcdir=$ac_pwd ;;
9907 [\\/]* | ?:[\\/]* ) # Absolute name.
9908 ac_srcdir=$srcdir$ac_dir_suffix;
9909 ac_top_srcdir=$srcdir
9910 ac_abs_top_srcdir=$srcdir ;;
9911 *) # Relative name.
9912 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
9913 ac_top_srcdir=$ac_top_build_prefix$srcdir
9914 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
9915 esac
9916 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
9919 cd "$ac_dir"
9921 # Check for guested configure; otherwise get Cygnus style configure.
9922 if test -f "$ac_srcdir/configure.gnu"; then
9923 ac_sub_configure=$ac_srcdir/configure.gnu
9924 elif test -f "$ac_srcdir/configure"; then
9925 ac_sub_configure=$ac_srcdir/configure
9926 elif test -f "$ac_srcdir/configure.in"; then
9927 # This should be Cygnus configure.
9928 ac_sub_configure=$ac_aux_dir/configure
9929 else
9930 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
9931 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
9932 ac_sub_configure=
9935 # The recursion is here.
9936 if test -n "$ac_sub_configure"; then
9937 # Make the cache file name correct relative to the subdirectory.
9938 case $cache_file in
9939 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
9940 *) # Relative name.
9941 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
9942 esac
9944 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
9945 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
9946 # The eval makes quoting arguments work.
9947 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
9948 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
9949 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
9950 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
9951 { (exit 1); exit 1; }; }
9954 cd "$ac_popdir"
9955 done