Check DATA_CACHE_SIZE_HALF
[glibc.git] / configure
blobb6752d147c6b41645d30e63e6f9f2ee2d09d47ee
1 #! /bin/sh
2 # From configure.in CVSid.
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.63 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, 2007, 2008 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 # Pre-4.2 versions of Zsh do 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 as_nl='
45 export as_nl
46 # Printing a long string crashes Solaris 7 /usr/bin/printf.
47 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
48 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
49 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
50 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
51 as_echo='printf %s\n'
52 as_echo_n='printf %s'
53 else
54 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
55 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
56 as_echo_n='/usr/ucb/echo -n'
57 else
58 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
59 as_echo_n_body='eval
60 arg=$1;
61 case $arg in
62 *"$as_nl"*)
63 expr "X$arg" : "X\\(.*\\)$as_nl";
64 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65 esac;
66 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68 export as_echo_n_body
69 as_echo_n='sh -c $as_echo_n_body as_echo'
71 export as_echo_body
72 as_echo='sh -c $as_echo_body as_echo'
75 # The user is always right.
76 if test "${PATH_SEPARATOR+set}" != set; then
77 PATH_SEPARATOR=:
78 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
79 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
80 PATH_SEPARATOR=';'
84 # Support unset when possible.
85 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
86 as_unset=unset
87 else
88 as_unset=false
92 # IFS
93 # We need space, tab and new line, in precisely that order. Quoting is
94 # there to prevent editors from complaining about space-tab.
95 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
96 # splitting by setting IFS to empty value.)
97 IFS=" "" $as_nl"
99 # Find who we are. Look in the path if we contain no directory separator.
100 case $0 in
101 *[\\/]* ) as_myself=$0 ;;
102 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
103 for as_dir in $PATH
105 IFS=$as_save_IFS
106 test -z "$as_dir" && as_dir=.
107 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
108 done
109 IFS=$as_save_IFS
112 esac
113 # We did not find ourselves, most probably we were run as `sh COMMAND'
114 # in which case we are not to be found in the path.
115 if test "x$as_myself" = x; then
116 as_myself=$0
118 if test ! -f "$as_myself"; then
119 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
120 { (exit 1); exit 1; }
123 # Work around bugs in pre-3.0 UWIN ksh.
124 for as_var in ENV MAIL MAILPATH
125 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
126 done
127 PS1='$ '
128 PS2='> '
129 PS4='+ '
131 # NLS nuisances.
132 LC_ALL=C
133 export LC_ALL
134 LANGUAGE=C
135 export LANGUAGE
137 # Required to use basename.
138 if expr a : '\(a\)' >/dev/null 2>&1 &&
139 test "X`expr 00001 : '.*\(...\)'`" = X001; then
140 as_expr=expr
141 else
142 as_expr=false
145 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
146 as_basename=basename
147 else
148 as_basename=false
152 # Name of the executable.
153 as_me=`$as_basename -- "$0" ||
154 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
155 X"$0" : 'X\(//\)$' \| \
156 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
157 $as_echo X/"$0" |
158 sed '/^.*\/\([^/][^/]*\)\/*$/{
159 s//\1/
162 /^X\/\(\/\/\)$/{
163 s//\1/
166 /^X\/\(\/\).*/{
167 s//\1/
170 s/.*/./; q'`
172 # CDPATH.
173 $as_unset CDPATH
176 if test "x$CONFIG_SHELL" = x; then
177 if (eval ":") 2>/dev/null; then
178 as_have_required=yes
179 else
180 as_have_required=no
183 if test $as_have_required = yes && (eval ":
184 (as_func_return () {
185 (exit \$1)
187 as_func_success () {
188 as_func_return 0
190 as_func_failure () {
191 as_func_return 1
193 as_func_ret_success () {
194 return 0
196 as_func_ret_failure () {
197 return 1
200 exitcode=0
201 if as_func_success; then
203 else
204 exitcode=1
205 echo as_func_success failed.
208 if as_func_failure; then
209 exitcode=1
210 echo as_func_failure succeeded.
213 if as_func_ret_success; then
215 else
216 exitcode=1
217 echo as_func_ret_success failed.
220 if as_func_ret_failure; then
221 exitcode=1
222 echo as_func_ret_failure succeeded.
225 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
227 else
228 exitcode=1
229 echo positional parameters were not saved.
232 test \$exitcode = 0) || { (exit 1); exit 1; }
235 as_lineno_1=\$LINENO
236 as_lineno_2=\$LINENO
237 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
238 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
239 ") 2> /dev/null; then
241 else
242 as_candidate_shells=
243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
244 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
246 IFS=$as_save_IFS
247 test -z "$as_dir" && as_dir=.
248 case $as_dir in
250 for as_base in sh bash ksh sh5; do
251 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
252 done;;
253 esac
254 done
255 IFS=$as_save_IFS
258 for as_shell in $as_candidate_shells $SHELL; do
259 # Try only shells that exist, to save several forks.
260 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
261 { ("$as_shell") 2> /dev/null <<\_ASEOF
262 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
263 emulate sh
264 NULLCMD=:
265 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
266 # is contrary to our usage. Disable this feature.
267 alias -g '${1+"$@"}'='"$@"'
268 setopt NO_GLOB_SUBST
269 else
270 case `(set -o) 2>/dev/null` in
271 *posix*) set -o posix ;;
272 esac
278 _ASEOF
279 }; then
280 CONFIG_SHELL=$as_shell
281 as_have_required=yes
282 if { "$as_shell" 2> /dev/null <<\_ASEOF
283 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
284 emulate sh
285 NULLCMD=:
286 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
287 # is contrary to our usage. Disable this feature.
288 alias -g '${1+"$@"}'='"$@"'
289 setopt NO_GLOB_SUBST
290 else
291 case `(set -o) 2>/dev/null` in
292 *posix*) set -o posix ;;
293 esac
299 (as_func_return () {
300 (exit $1)
302 as_func_success () {
303 as_func_return 0
305 as_func_failure () {
306 as_func_return 1
308 as_func_ret_success () {
309 return 0
311 as_func_ret_failure () {
312 return 1
315 exitcode=0
316 if as_func_success; then
318 else
319 exitcode=1
320 echo as_func_success failed.
323 if as_func_failure; then
324 exitcode=1
325 echo as_func_failure succeeded.
328 if as_func_ret_success; then
330 else
331 exitcode=1
332 echo as_func_ret_success failed.
335 if as_func_ret_failure; then
336 exitcode=1
337 echo as_func_ret_failure succeeded.
340 if ( set x; as_func_ret_success y && test x = "$1" ); then
342 else
343 exitcode=1
344 echo positional parameters were not saved.
347 test $exitcode = 0) || { (exit 1); exit 1; }
350 as_lineno_1=$LINENO
351 as_lineno_2=$LINENO
352 test "x$as_lineno_1" != "x$as_lineno_2" &&
353 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
355 _ASEOF
356 }; then
357 break
362 done
364 if test "x$CONFIG_SHELL" != x; then
365 for as_var in BASH_ENV ENV
366 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
367 done
368 export CONFIG_SHELL
369 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
373 if test $as_have_required = no; then
374 echo This script requires a shell more modern than all the
375 echo shells that I found on your system. Please install a
376 echo modern shell, or manually run the script under such a
377 echo shell if you do have one.
378 { (exit 1); exit 1; }
388 (eval "as_func_return () {
389 (exit \$1)
391 as_func_success () {
392 as_func_return 0
394 as_func_failure () {
395 as_func_return 1
397 as_func_ret_success () {
398 return 0
400 as_func_ret_failure () {
401 return 1
404 exitcode=0
405 if as_func_success; then
407 else
408 exitcode=1
409 echo as_func_success failed.
412 if as_func_failure; then
413 exitcode=1
414 echo as_func_failure succeeded.
417 if as_func_ret_success; then
419 else
420 exitcode=1
421 echo as_func_ret_success failed.
424 if as_func_ret_failure; then
425 exitcode=1
426 echo as_func_ret_failure succeeded.
429 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
431 else
432 exitcode=1
433 echo positional parameters were not saved.
436 test \$exitcode = 0") || {
437 echo No shell found that supports shell functions.
438 echo Please tell bug-autoconf@gnu.org about your system,
439 echo including any error possibly output before this message.
440 echo This can help us improve future autoconf versions.
441 echo Configuration will now proceed without shell functions.
446 as_lineno_1=$LINENO
447 as_lineno_2=$LINENO
448 test "x$as_lineno_1" != "x$as_lineno_2" &&
449 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
451 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
452 # uniformly replaced by the line number. The first 'sed' inserts a
453 # line-number line after each line using $LINENO; the second 'sed'
454 # does the real work. The second script uses 'N' to pair each
455 # line-number line with the line containing $LINENO, and appends
456 # trailing '-' during substitution so that $LINENO is not a special
457 # case at line end.
458 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
459 # scripts with optimization help from Paolo Bonzini. Blame Lee
460 # E. McMahon (1931-1989) for sed's syntax. :-)
461 sed -n '
463 /[$]LINENO/=
464 ' <$as_myself |
465 sed '
466 s/[$]LINENO.*/&-/
467 t lineno
469 :lineno
471 :loop
472 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
473 t loop
474 s/-\n.*//
475 ' >$as_me.lineno &&
476 chmod +x "$as_me.lineno" ||
477 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
478 { (exit 1); exit 1; }; }
480 # Don't try to exec as it changes $[0], causing all sort of problems
481 # (the dirname of $[0] is not the place where we might find the
482 # original and so on. Autoconf is especially sensitive to this).
483 . "./$as_me.lineno"
484 # Exit status is that of the last command.
485 exit
489 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
490 as_dirname=dirname
491 else
492 as_dirname=false
495 ECHO_C= ECHO_N= ECHO_T=
496 case `echo -n x` in
497 -n*)
498 case `echo 'x\c'` in
499 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
500 *) ECHO_C='\c';;
501 esac;;
503 ECHO_N='-n';;
504 esac
505 if expr a : '\(a\)' >/dev/null 2>&1 &&
506 test "X`expr 00001 : '.*\(...\)'`" = X001; then
507 as_expr=expr
508 else
509 as_expr=false
512 rm -f conf$$ conf$$.exe conf$$.file
513 if test -d conf$$.dir; then
514 rm -f conf$$.dir/conf$$.file
515 else
516 rm -f conf$$.dir
517 mkdir conf$$.dir 2>/dev/null
519 if (echo >conf$$.file) 2>/dev/null; then
520 if ln -s conf$$.file conf$$ 2>/dev/null; then
521 as_ln_s='ln -s'
522 # ... but there are two gotchas:
523 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
524 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
525 # In both cases, we have to default to `cp -p'.
526 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
527 as_ln_s='cp -p'
528 elif ln conf$$.file conf$$ 2>/dev/null; then
529 as_ln_s=ln
530 else
531 as_ln_s='cp -p'
533 else
534 as_ln_s='cp -p'
536 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
537 rmdir conf$$.dir 2>/dev/null
539 if mkdir -p . 2>/dev/null; then
540 as_mkdir_p=:
541 else
542 test -d ./-p && rmdir ./-p
543 as_mkdir_p=false
546 if test -x / >/dev/null 2>&1; then
547 as_test_x='test -x'
548 else
549 if ls -dL / >/dev/null 2>&1; then
550 as_ls_L_option=L
551 else
552 as_ls_L_option=
554 as_test_x='
555 eval sh -c '\''
556 if test -d "$1"; then
557 test -d "$1/.";
558 else
559 case $1 in
560 -*)set "./$1";;
561 esac;
562 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
563 ???[sx]*):;;*)false;;esac;fi
564 '\'' sh
567 as_executable_p=$as_test_x
569 # Sed expression to map a string onto a valid CPP name.
570 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
572 # Sed expression to map a string onto a valid variable name.
573 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
577 exec 7<&0 </dev/null 6>&1
579 # Name of the host.
580 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
581 # so uname gets run too.
582 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
585 # Initializations.
587 ac_default_prefix=/usr/local
588 ac_clean_files=
589 ac_config_libobj_dir=.
590 LIBOBJS=
591 cross_compiling=no
592 subdirs=
593 MFLAGS=
594 MAKEFLAGS=
595 SHELL=${CONFIG_SHELL-/bin/sh}
597 # Identity of this package.
598 PACKAGE_NAME='GNU C Library'
599 PACKAGE_TARNAME='c-library'
600 PACKAGE_VERSION='(see version.h)'
601 PACKAGE_STRING='GNU C Library (see version.h)'
602 PACKAGE_BUGREPORT='glibc'
604 ac_unique_file="include/features.h"
605 enable_option_checking=no
606 # Factoring default headers for most tests.
607 ac_includes_default="\
608 #include <stdio.h>
609 #ifdef HAVE_SYS_TYPES_H
610 # include <sys/types.h>
611 #endif
612 #ifdef HAVE_SYS_STAT_H
613 # include <sys/stat.h>
614 #endif
615 #ifdef STDC_HEADERS
616 # include <stdlib.h>
617 # include <stddef.h>
618 #else
619 # ifdef HAVE_STDLIB_H
620 # include <stdlib.h>
621 # endif
622 #endif
623 #ifdef HAVE_STRING_H
624 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
625 # include <memory.h>
626 # endif
627 # include <string.h>
628 #endif
629 #ifdef HAVE_STRINGS_H
630 # include <strings.h>
631 #endif
632 #ifdef HAVE_INTTYPES_H
633 # include <inttypes.h>
634 #endif
635 #ifdef HAVE_STDINT_H
636 # include <stdint.h>
637 #endif
638 #ifdef HAVE_UNISTD_H
639 # include <unistd.h>
640 #endif"
642 ac_subst_vars='LTLIBOBJS
643 LIBOBJS
644 RELEASE
645 VERSION
646 mach_interface_list
647 DEFINES
648 nopic_initfini
649 static_nss
650 bounded
651 omitfp
652 profile
653 libc_cv_pic_default
654 shared
655 static
656 xcoff
658 ldd_rewrite_script
659 use_ldconfig
660 libc_cv_as_i686
661 libc_cv_cc_avx
662 libc_cv_cc_sse4
663 libc_cv_cpp_asm_debuginfo
664 libc_cv_forced_unwind
665 libc_cv_rootsbindir
666 libc_cv_sysconfdir
667 libc_cv_localedir
668 libc_cv_slibdir
669 old_glibc_headers
670 uname_version
671 uname_release
672 uname_sysname
673 libc_cv_gcc_unwind_find_fde
674 sizeof_long_double
675 EGREP
676 GREP
677 have_selinux
678 have_libcap
679 have_libaudit
680 LIBGD
681 libc_cv_cc_submachine
682 exceptions
683 no_whole_archive
684 libc_cv_have_initfini
685 libc_cv_gnu89_inline
686 libc_cv_ssp
687 fno_unit_at_a_time
688 libc_cv_hashstyle
689 libc_cv_fpie
690 libc_cv_z_execstack
691 libc_cv_z_combreloc
692 ASFLAGS_config
693 libc_cv_as_needed
694 libc_cv_libgcc_s_suffix
695 libc_cv_Bgroup
696 libc_cv_cc_with_libunwind
697 VERSIONING
698 BISON
699 INSTALL_INFO
700 PERL
702 libc_cv_have_ksh
704 libc_cv_have_bash2
705 BASH_SHELL
706 libc_cv_gcc_static_libgcc
707 CXX_SYSINCLUDES
708 SYSINCLUDES
709 AUTOCONF
711 MAKEINFO
712 MSGFMT
713 MAKE
714 PWD_P
718 RANLIB
719 OBJDUMP
721 LN_S
722 INSTALL_DATA
723 INSTALL_SCRIPT
724 INSTALL_PROGRAM
725 sysdeps_add_ons
726 sysnames
727 submachine
728 multi_arch
729 base_machine
730 add_on_subdirs
731 add_ons
732 libc_cv_nss_crypt
733 experimental_malloc
734 all_warnings
735 force_install
736 bindnow
737 oldest_abi
738 enable_check_abi
739 with_cvs
740 with_fp
741 ac_ct_CXX
742 CXXFLAGS
745 cross_compiling
746 BUILD_CC
747 OBJEXT
748 ac_ct_CC
749 CPPFLAGS
750 LDFLAGS
751 CFLAGS
753 host_os
754 host_vendor
755 host_cpu
756 host
757 build_os
758 build_vendor
759 build_cpu
760 build
761 subdirs
762 target_alias
763 host_alias
764 build_alias
765 LIBS
766 ECHO_T
767 ECHO_N
768 ECHO_C
769 DEFS
770 mandir
771 localedir
772 libdir
773 psdir
774 pdfdir
775 dvidir
776 htmldir
777 infodir
778 docdir
779 oldincludedir
780 includedir
781 localstatedir
782 sharedstatedir
783 sysconfdir
784 datadir
785 datarootdir
786 libexecdir
787 sbindir
788 bindir
789 program_transform_name
790 prefix
791 exec_prefix
792 PACKAGE_BUGREPORT
793 PACKAGE_STRING
794 PACKAGE_VERSION
795 PACKAGE_TARNAME
796 PACKAGE_NAME
797 PATH_SEPARATOR
798 SHELL'
799 ac_subst_files=''
800 ac_user_opts='
801 enable_option_checking
802 with_gd
803 with_gd_include
804 with_gd_lib
805 with_fp
806 with_binutils
807 with_elf
808 with_selinux
809 with_xcoff
810 with_cvs
811 with_headers
812 enable_sanity_checks
813 enable_check_abi
814 enable_shared
815 enable_profile
816 enable_omitfp
817 enable_bounded
818 enable_versioning
819 enable_oldest_abi
820 enable_stackguard_randomization
821 enable_add_ons
822 with_tls
823 with___thread
824 enable_hidden_plt
825 enable_bind_now
826 enable_static_nss
827 enable_force_install
828 enable_kernel
829 enable_all_warnings
830 enable_multi_arch
831 enable_experimental_malloc
832 enable_nss_crypt
833 with_cpu
835 ac_precious_vars='build_alias
836 host_alias
837 target_alias
839 CFLAGS
840 LDFLAGS
841 LIBS
842 CPPFLAGS
845 CXXFLAGS
846 CCC'
847 ac_subdirs_all='
850 # Initialize some variables set by options.
851 ac_init_help=
852 ac_init_version=false
853 ac_unrecognized_opts=
854 ac_unrecognized_sep=
855 # The variables have the same names as the options, with
856 # dashes changed to underlines.
857 cache_file=/dev/null
858 exec_prefix=NONE
859 no_create=
860 no_recursion=
861 prefix=NONE
862 program_prefix=NONE
863 program_suffix=NONE
864 program_transform_name=s,x,x,
865 silent=
866 site=
867 srcdir=
868 verbose=
869 x_includes=NONE
870 x_libraries=NONE
872 # Installation directory options.
873 # These are left unexpanded so users can "make install exec_prefix=/foo"
874 # and all the variables that are supposed to be based on exec_prefix
875 # by default will actually change.
876 # Use braces instead of parens because sh, perl, etc. also accept them.
877 # (The list follows the same order as the GNU Coding Standards.)
878 bindir='${exec_prefix}/bin'
879 sbindir='${exec_prefix}/sbin'
880 libexecdir='${exec_prefix}/libexec'
881 datarootdir='${prefix}/share'
882 datadir='${datarootdir}'
883 sysconfdir='${prefix}/etc'
884 sharedstatedir='${prefix}/com'
885 localstatedir='${prefix}/var'
886 includedir='${prefix}/include'
887 oldincludedir='/usr/include'
888 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
889 infodir='${datarootdir}/info'
890 htmldir='${docdir}'
891 dvidir='${docdir}'
892 pdfdir='${docdir}'
893 psdir='${docdir}'
894 libdir='${exec_prefix}/lib'
895 localedir='${datarootdir}/locale'
896 mandir='${datarootdir}/man'
898 ac_prev=
899 ac_dashdash=
900 for ac_option
902 # If the previous option needs an argument, assign it.
903 if test -n "$ac_prev"; then
904 eval $ac_prev=\$ac_option
905 ac_prev=
906 continue
909 case $ac_option in
910 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
911 *) ac_optarg=yes ;;
912 esac
914 # Accept the important Cygnus configure options, so we can diagnose typos.
916 case $ac_dashdash$ac_option in
918 ac_dashdash=yes ;;
920 -bindir | --bindir | --bindi | --bind | --bin | --bi)
921 ac_prev=bindir ;;
922 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
923 bindir=$ac_optarg ;;
925 -build | --build | --buil | --bui | --bu)
926 ac_prev=build_alias ;;
927 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
928 build_alias=$ac_optarg ;;
930 -cache-file | --cache-file | --cache-fil | --cache-fi \
931 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
932 ac_prev=cache_file ;;
933 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
934 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
935 cache_file=$ac_optarg ;;
937 --config-cache | -C)
938 cache_file=config.cache ;;
940 -datadir | --datadir | --datadi | --datad)
941 ac_prev=datadir ;;
942 -datadir=* | --datadir=* | --datadi=* | --datad=*)
943 datadir=$ac_optarg ;;
945 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
946 | --dataroo | --dataro | --datar)
947 ac_prev=datarootdir ;;
948 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
949 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
950 datarootdir=$ac_optarg ;;
952 -disable-* | --disable-*)
953 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
954 # Reject names that are not valid shell variable names.
955 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
956 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
957 { (exit 1); exit 1; }; }
958 ac_useropt_orig=$ac_useropt
959 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
960 case $ac_user_opts in
962 "enable_$ac_useropt"
963 "*) ;;
964 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
965 ac_unrecognized_sep=', ';;
966 esac
967 eval enable_$ac_useropt=no ;;
969 -docdir | --docdir | --docdi | --doc | --do)
970 ac_prev=docdir ;;
971 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
972 docdir=$ac_optarg ;;
974 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
975 ac_prev=dvidir ;;
976 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
977 dvidir=$ac_optarg ;;
979 -enable-* | --enable-*)
980 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
981 # Reject names that are not valid shell variable names.
982 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
983 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
984 { (exit 1); exit 1; }; }
985 ac_useropt_orig=$ac_useropt
986 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
987 case $ac_user_opts in
989 "enable_$ac_useropt"
990 "*) ;;
991 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
992 ac_unrecognized_sep=', ';;
993 esac
994 eval enable_$ac_useropt=\$ac_optarg ;;
996 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
997 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
998 | --exec | --exe | --ex)
999 ac_prev=exec_prefix ;;
1000 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1001 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1002 | --exec=* | --exe=* | --ex=*)
1003 exec_prefix=$ac_optarg ;;
1005 -gas | --gas | --ga | --g)
1006 # Obsolete; use --with-gas.
1007 with_gas=yes ;;
1009 -help | --help | --hel | --he | -h)
1010 ac_init_help=long ;;
1011 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1012 ac_init_help=recursive ;;
1013 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1014 ac_init_help=short ;;
1016 -host | --host | --hos | --ho)
1017 ac_prev=host_alias ;;
1018 -host=* | --host=* | --hos=* | --ho=*)
1019 host_alias=$ac_optarg ;;
1021 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1022 ac_prev=htmldir ;;
1023 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1024 | --ht=*)
1025 htmldir=$ac_optarg ;;
1027 -includedir | --includedir | --includedi | --included | --include \
1028 | --includ | --inclu | --incl | --inc)
1029 ac_prev=includedir ;;
1030 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1031 | --includ=* | --inclu=* | --incl=* | --inc=*)
1032 includedir=$ac_optarg ;;
1034 -infodir | --infodir | --infodi | --infod | --info | --inf)
1035 ac_prev=infodir ;;
1036 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1037 infodir=$ac_optarg ;;
1039 -libdir | --libdir | --libdi | --libd)
1040 ac_prev=libdir ;;
1041 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1042 libdir=$ac_optarg ;;
1044 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1045 | --libexe | --libex | --libe)
1046 ac_prev=libexecdir ;;
1047 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1048 | --libexe=* | --libex=* | --libe=*)
1049 libexecdir=$ac_optarg ;;
1051 -localedir | --localedir | --localedi | --localed | --locale)
1052 ac_prev=localedir ;;
1053 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1054 localedir=$ac_optarg ;;
1056 -localstatedir | --localstatedir | --localstatedi | --localstated \
1057 | --localstate | --localstat | --localsta | --localst | --locals)
1058 ac_prev=localstatedir ;;
1059 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1060 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1061 localstatedir=$ac_optarg ;;
1063 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1064 ac_prev=mandir ;;
1065 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1066 mandir=$ac_optarg ;;
1068 -nfp | --nfp | --nf)
1069 # Obsolete; use --without-fp.
1070 with_fp=no ;;
1072 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1073 | --no-cr | --no-c | -n)
1074 no_create=yes ;;
1076 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1077 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1078 no_recursion=yes ;;
1080 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1081 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1082 | --oldin | --oldi | --old | --ol | --o)
1083 ac_prev=oldincludedir ;;
1084 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1085 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1086 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1087 oldincludedir=$ac_optarg ;;
1089 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1090 ac_prev=prefix ;;
1091 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1092 prefix=$ac_optarg ;;
1094 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1095 | --program-pre | --program-pr | --program-p)
1096 ac_prev=program_prefix ;;
1097 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1098 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1099 program_prefix=$ac_optarg ;;
1101 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1102 | --program-suf | --program-su | --program-s)
1103 ac_prev=program_suffix ;;
1104 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1105 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1106 program_suffix=$ac_optarg ;;
1108 -program-transform-name | --program-transform-name \
1109 | --program-transform-nam | --program-transform-na \
1110 | --program-transform-n | --program-transform- \
1111 | --program-transform | --program-transfor \
1112 | --program-transfo | --program-transf \
1113 | --program-trans | --program-tran \
1114 | --progr-tra | --program-tr | --program-t)
1115 ac_prev=program_transform_name ;;
1116 -program-transform-name=* | --program-transform-name=* \
1117 | --program-transform-nam=* | --program-transform-na=* \
1118 | --program-transform-n=* | --program-transform-=* \
1119 | --program-transform=* | --program-transfor=* \
1120 | --program-transfo=* | --program-transf=* \
1121 | --program-trans=* | --program-tran=* \
1122 | --progr-tra=* | --program-tr=* | --program-t=*)
1123 program_transform_name=$ac_optarg ;;
1125 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1126 ac_prev=pdfdir ;;
1127 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1128 pdfdir=$ac_optarg ;;
1130 -psdir | --psdir | --psdi | --psd | --ps)
1131 ac_prev=psdir ;;
1132 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1133 psdir=$ac_optarg ;;
1135 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1136 | -silent | --silent | --silen | --sile | --sil)
1137 silent=yes ;;
1139 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1140 ac_prev=sbindir ;;
1141 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1142 | --sbi=* | --sb=*)
1143 sbindir=$ac_optarg ;;
1145 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1146 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1147 | --sharedst | --shareds | --shared | --share | --shar \
1148 | --sha | --sh)
1149 ac_prev=sharedstatedir ;;
1150 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1151 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1152 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1153 | --sha=* | --sh=*)
1154 sharedstatedir=$ac_optarg ;;
1156 -site | --site | --sit)
1157 ac_prev=site ;;
1158 -site=* | --site=* | --sit=*)
1159 site=$ac_optarg ;;
1161 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1162 ac_prev=srcdir ;;
1163 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1164 srcdir=$ac_optarg ;;
1166 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1167 | --syscon | --sysco | --sysc | --sys | --sy)
1168 ac_prev=sysconfdir ;;
1169 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1170 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1171 sysconfdir=$ac_optarg ;;
1173 -target | --target | --targe | --targ | --tar | --ta | --t)
1174 ac_prev=target_alias ;;
1175 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1176 target_alias=$ac_optarg ;;
1178 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1179 verbose=yes ;;
1181 -version | --version | --versio | --versi | --vers | -V)
1182 ac_init_version=: ;;
1184 -with-* | --with-*)
1185 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1186 # Reject names that are not valid shell variable names.
1187 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1188 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1189 { (exit 1); exit 1; }; }
1190 ac_useropt_orig=$ac_useropt
1191 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1192 case $ac_user_opts in
1194 "with_$ac_useropt"
1195 "*) ;;
1196 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1197 ac_unrecognized_sep=', ';;
1198 esac
1199 eval with_$ac_useropt=\$ac_optarg ;;
1201 -without-* | --without-*)
1202 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1203 # Reject names that are not valid shell variable names.
1204 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1205 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1206 { (exit 1); exit 1; }; }
1207 ac_useropt_orig=$ac_useropt
1208 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1209 case $ac_user_opts in
1211 "with_$ac_useropt"
1212 "*) ;;
1213 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1214 ac_unrecognized_sep=', ';;
1215 esac
1216 eval with_$ac_useropt=no ;;
1218 --x)
1219 # Obsolete; use --with-x.
1220 with_x=yes ;;
1222 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1223 | --x-incl | --x-inc | --x-in | --x-i)
1224 ac_prev=x_includes ;;
1225 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1226 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1227 x_includes=$ac_optarg ;;
1229 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1230 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1231 ac_prev=x_libraries ;;
1232 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1233 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1234 x_libraries=$ac_optarg ;;
1236 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1237 Try \`$0 --help' for more information." >&2
1238 { (exit 1); exit 1; }; }
1241 *=*)
1242 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1243 # Reject names that are not valid shell variable names.
1244 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1245 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1246 { (exit 1); exit 1; }; }
1247 eval $ac_envvar=\$ac_optarg
1248 export $ac_envvar ;;
1251 # FIXME: should be removed in autoconf 3.0.
1252 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1253 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1254 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1255 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1258 esac
1259 done
1261 if test -n "$ac_prev"; then
1262 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1263 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1264 { (exit 1); exit 1; }; }
1267 if test -n "$ac_unrecognized_opts"; then
1268 case $enable_option_checking in
1269 no) ;;
1270 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1271 { (exit 1); exit 1; }; } ;;
1272 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1273 esac
1276 # Check all directory arguments for consistency.
1277 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1278 datadir sysconfdir sharedstatedir localstatedir includedir \
1279 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1280 libdir localedir mandir
1282 eval ac_val=\$$ac_var
1283 # Remove trailing slashes.
1284 case $ac_val in
1285 */ )
1286 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1287 eval $ac_var=\$ac_val;;
1288 esac
1289 # Be sure to have absolute directory names.
1290 case $ac_val in
1291 [\\/$]* | ?:[\\/]* ) continue;;
1292 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1293 esac
1294 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1295 { (exit 1); exit 1; }; }
1296 done
1298 # There might be people who depend on the old broken behavior: `$host'
1299 # used to hold the argument of --host etc.
1300 # FIXME: To remove some day.
1301 build=$build_alias
1302 host=$host_alias
1303 target=$target_alias
1305 # FIXME: To remove some day.
1306 if test "x$host_alias" != x; then
1307 if test "x$build_alias" = x; then
1308 cross_compiling=maybe
1309 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1310 If a cross compiler is detected then cross compile mode will be used." >&2
1311 elif test "x$build_alias" != "x$host_alias"; then
1312 cross_compiling=yes
1316 ac_tool_prefix=
1317 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1319 test "$silent" = yes && exec 6>/dev/null
1322 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1323 ac_ls_di=`ls -di .` &&
1324 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1325 { $as_echo "$as_me: error: working directory cannot be determined" >&2
1326 { (exit 1); exit 1; }; }
1327 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1328 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1329 { (exit 1); exit 1; }; }
1332 # Find the source files, if location was not specified.
1333 if test -z "$srcdir"; then
1334 ac_srcdir_defaulted=yes
1335 # Try the directory containing this script, then the parent directory.
1336 ac_confdir=`$as_dirname -- "$as_myself" ||
1337 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1338 X"$as_myself" : 'X\(//\)[^/]' \| \
1339 X"$as_myself" : 'X\(//\)$' \| \
1340 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1341 $as_echo X"$as_myself" |
1342 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1343 s//\1/
1346 /^X\(\/\/\)[^/].*/{
1347 s//\1/
1350 /^X\(\/\/\)$/{
1351 s//\1/
1354 /^X\(\/\).*/{
1355 s//\1/
1358 s/.*/./; q'`
1359 srcdir=$ac_confdir
1360 if test ! -r "$srcdir/$ac_unique_file"; then
1361 srcdir=..
1363 else
1364 ac_srcdir_defaulted=no
1366 if test ! -r "$srcdir/$ac_unique_file"; then
1367 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1368 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1369 { (exit 1); exit 1; }; }
1371 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1372 ac_abs_confdir=`(
1373 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1374 { (exit 1); exit 1; }; }
1375 pwd)`
1376 # When building in place, set srcdir=.
1377 if test "$ac_abs_confdir" = "$ac_pwd"; then
1378 srcdir=.
1380 # Remove unnecessary trailing slashes from srcdir.
1381 # Double slashes in file names in object file debugging info
1382 # mess up M-x gdb in Emacs.
1383 case $srcdir in
1384 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1385 esac
1386 for ac_var in $ac_precious_vars; do
1387 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1388 eval ac_env_${ac_var}_value=\$${ac_var}
1389 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1390 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1391 done
1394 # Report the --help message.
1396 if test "$ac_init_help" = "long"; then
1397 # Omit some internal or obsolete options to make the list less imposing.
1398 # This message is too long to be a string in the A/UX 3.1 sh.
1399 cat <<_ACEOF
1400 \`configure' configures GNU C Library (see version.h) to adapt to many kinds of systems.
1402 Usage: $0 [OPTION]... [VAR=VALUE]...
1404 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1405 VAR=VALUE. See below for descriptions of some of the useful variables.
1407 Defaults for the options are specified in brackets.
1409 Configuration:
1410 -h, --help display this help and exit
1411 --help=short display options specific to this package
1412 --help=recursive display the short help of all the included packages
1413 -V, --version display version information and exit
1414 -q, --quiet, --silent do not print \`checking...' messages
1415 --cache-file=FILE cache test results in FILE [disabled]
1416 -C, --config-cache alias for \`--cache-file=config.cache'
1417 -n, --no-create do not create output files
1418 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1420 Installation directories:
1421 --prefix=PREFIX install architecture-independent files in PREFIX
1422 [$ac_default_prefix]
1423 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1424 [PREFIX]
1426 By default, \`make install' will install all the files in
1427 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1428 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1429 for instance \`--prefix=\$HOME'.
1431 For better control, use the options below.
1433 Fine tuning of the installation directories:
1434 --bindir=DIR user executables [EPREFIX/bin]
1435 --sbindir=DIR system admin executables [EPREFIX/sbin]
1436 --libexecdir=DIR program executables [EPREFIX/libexec]
1437 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1438 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1439 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1440 --libdir=DIR object code libraries [EPREFIX/lib]
1441 --includedir=DIR C header files [PREFIX/include]
1442 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1443 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1444 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1445 --infodir=DIR info documentation [DATAROOTDIR/info]
1446 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1447 --mandir=DIR man documentation [DATAROOTDIR/man]
1448 --docdir=DIR documentation root [DATAROOTDIR/doc/c-library]
1449 --htmldir=DIR html documentation [DOCDIR]
1450 --dvidir=DIR dvi documentation [DOCDIR]
1451 --pdfdir=DIR pdf documentation [DOCDIR]
1452 --psdir=DIR ps documentation [DOCDIR]
1453 _ACEOF
1455 cat <<\_ACEOF
1457 System types:
1458 --build=BUILD configure for building on BUILD [guessed]
1459 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1460 _ACEOF
1463 if test -n "$ac_init_help"; then
1464 case $ac_init_help in
1465 short | recursive ) echo "Configuration of GNU C Library (see version.h):";;
1466 esac
1467 cat <<\_ACEOF
1469 Optional Features:
1470 --disable-option-checking ignore unrecognized --enable/--with options
1471 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1472 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1473 --disable-sanity-checks really do not use threads (should not be used except
1474 in special situations) [default=yes]
1475 --enable-check-abi do "make check-abi" in "make check" (no/warn/yes)
1476 [default=no]
1477 --enable-shared build shared library [default=yes if GNU ld & ELF]
1478 --enable-profile build profiled library [default=no]
1479 --enable-omitfp build undebuggable optimized library [default=no]
1480 --enable-bounded build with runtime bounds checking [default=no]
1481 --disable-versioning do not include versioning information in the library
1482 objects [default=yes if supported]
1483 --enable-oldest-abi=ABI configure the oldest ABI supported [e.g. 2.2]
1484 [default=glibc default]
1485 --enable-stackguard-randomization
1486 initialize __stack_chk_guard canary with a random
1487 number at program start
1488 --enable-add-ons[=DIRS...]
1489 configure and build add-ons in DIR1,DIR2,... search
1490 for add-ons if no parameter given
1491 --disable-hidden-plt do not hide internal function calls to avoid PLT
1492 --enable-bind-now disable lazy relocations in DSOs
1493 --enable-static-nss build static NSS modules [default=no]
1494 --disable-force-install don't force installation of files from this package,
1495 even if they are older than the installed files
1496 --enable-kernel=VERSION compile for compatibility with kernel not older than
1497 VERSION
1498 --enable-all-warnings enable all useful warnings gcc can issue
1499 --enable-multi-arch enable single DSO with optimizations for multiple
1500 architectures
1501 --enable-experimental-malloc
1502 enable experimental malloc features
1503 --enable-nss-crypt enable libcrypt to use nss
1505 Optional Packages:
1506 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1507 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1508 --with-gd=DIR find libgd include dir and library with prefix DIR
1509 --with-gd-include=DIR find libgd include files in DIR
1510 --with-gd-lib=DIR find libgd library files in DIR
1511 --with-fp if using floating-point hardware [default=yes]
1512 --with-binutils=PATH specify location of binutils (as and ld)
1513 --with-elf if using the ELF object format
1514 --with-selinux if building with SELinux support
1515 --with-xcoff if using the XCOFF object format
1516 --without-cvs if CVS should not be used
1517 --with-headers=PATH location of system headers to use (for example
1518 /usr/src/linux/include) [default=compiler default]
1519 --with-tls enable support for TLS
1520 --without-__thread do not use TLS features even when supporting them
1521 --with-cpu=CPU select code for CPU variant
1523 Some influential environment variables:
1524 CC C compiler command
1525 CFLAGS C compiler flags
1526 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1527 nonstandard directory <lib dir>
1528 LIBS libraries to pass to the linker, e.g. -l<library>
1529 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1530 you have headers in a nonstandard directory <include dir>
1531 CPP C preprocessor
1532 CXX C++ compiler command
1533 CXXFLAGS C++ compiler flags
1535 Use these variables to override the choices made by `configure' or to help
1536 it to find libraries and programs with nonstandard names/locations.
1538 Report bugs to <glibc>.
1539 _ACEOF
1540 ac_status=$?
1543 if test "$ac_init_help" = "recursive"; then
1544 # If there are subdirs, report their specific --help.
1545 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1546 test -d "$ac_dir" ||
1547 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1548 continue
1549 ac_builddir=.
1551 case "$ac_dir" in
1552 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1554 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1555 # A ".." for each directory in $ac_dir_suffix.
1556 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1557 case $ac_top_builddir_sub in
1558 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1559 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1560 esac ;;
1561 esac
1562 ac_abs_top_builddir=$ac_pwd
1563 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1564 # for backward compatibility:
1565 ac_top_builddir=$ac_top_build_prefix
1567 case $srcdir in
1568 .) # We are building in place.
1569 ac_srcdir=.
1570 ac_top_srcdir=$ac_top_builddir_sub
1571 ac_abs_top_srcdir=$ac_pwd ;;
1572 [\\/]* | ?:[\\/]* ) # Absolute name.
1573 ac_srcdir=$srcdir$ac_dir_suffix;
1574 ac_top_srcdir=$srcdir
1575 ac_abs_top_srcdir=$srcdir ;;
1576 *) # Relative name.
1577 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1578 ac_top_srcdir=$ac_top_build_prefix$srcdir
1579 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1580 esac
1581 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1583 cd "$ac_dir" || { ac_status=$?; continue; }
1584 # Check for guested configure.
1585 if test -f "$ac_srcdir/configure.gnu"; then
1586 echo &&
1587 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1588 elif test -f "$ac_srcdir/configure"; then
1589 echo &&
1590 $SHELL "$ac_srcdir/configure" --help=recursive
1591 else
1592 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1593 fi || ac_status=$?
1594 cd "$ac_pwd" || { ac_status=$?; break; }
1595 done
1598 test -n "$ac_init_help" && exit $ac_status
1599 if $ac_init_version; then
1600 cat <<\_ACEOF
1601 GNU C Library configure (see version.h)
1602 generated by GNU Autoconf 2.63
1604 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1605 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1606 This configure script is free software; the Free Software Foundation
1607 gives unlimited permission to copy, distribute and modify it.
1608 _ACEOF
1609 exit
1611 cat >config.log <<_ACEOF
1612 This file contains any messages produced by compilers while
1613 running configure, to aid debugging if configure makes a mistake.
1615 It was created by GNU C Library $as_me (see version.h), which was
1616 generated by GNU Autoconf 2.63. Invocation command line was
1618 $ $0 $@
1620 _ACEOF
1621 exec 5>>config.log
1623 cat <<_ASUNAME
1624 ## --------- ##
1625 ## Platform. ##
1626 ## --------- ##
1628 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1629 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1630 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1631 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1632 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1634 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1635 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1637 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1638 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1639 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1640 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1641 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1642 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1643 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1645 _ASUNAME
1647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1648 for as_dir in $PATH
1650 IFS=$as_save_IFS
1651 test -z "$as_dir" && as_dir=.
1652 $as_echo "PATH: $as_dir"
1653 done
1654 IFS=$as_save_IFS
1656 } >&5
1658 cat >&5 <<_ACEOF
1661 ## ----------- ##
1662 ## Core tests. ##
1663 ## ----------- ##
1665 _ACEOF
1668 # Keep a trace of the command line.
1669 # Strip out --no-create and --no-recursion so they do not pile up.
1670 # Strip out --silent because we don't want to record it for future runs.
1671 # Also quote any args containing shell meta-characters.
1672 # Make two passes to allow for proper duplicate-argument suppression.
1673 ac_configure_args=
1674 ac_configure_args0=
1675 ac_configure_args1=
1676 ac_must_keep_next=false
1677 for ac_pass in 1 2
1679 for ac_arg
1681 case $ac_arg in
1682 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1683 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1684 | -silent | --silent | --silen | --sile | --sil)
1685 continue ;;
1686 *\'*)
1687 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1688 esac
1689 case $ac_pass in
1690 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1692 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1693 if test $ac_must_keep_next = true; then
1694 ac_must_keep_next=false # Got value, back to normal.
1695 else
1696 case $ac_arg in
1697 *=* | --config-cache | -C | -disable-* | --disable-* \
1698 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1699 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1700 | -with-* | --with-* | -without-* | --without-* | --x)
1701 case "$ac_configure_args0 " in
1702 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1703 esac
1705 -* ) ac_must_keep_next=true ;;
1706 esac
1708 ac_configure_args="$ac_configure_args '$ac_arg'"
1710 esac
1711 done
1712 done
1713 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1714 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1716 # When interrupted or exit'd, cleanup temporary files, and complete
1717 # config.log. We remove comments because anyway the quotes in there
1718 # would cause problems or look ugly.
1719 # WARNING: Use '\'' to represent an apostrophe within the trap.
1720 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1721 trap 'exit_status=$?
1722 # Save into config.log some information that might help in debugging.
1724 echo
1726 cat <<\_ASBOX
1727 ## ---------------- ##
1728 ## Cache variables. ##
1729 ## ---------------- ##
1730 _ASBOX
1731 echo
1732 # The following way of writing the cache mishandles newlines in values,
1734 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1735 eval ac_val=\$$ac_var
1736 case $ac_val in #(
1737 *${as_nl}*)
1738 case $ac_var in #(
1739 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1740 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1741 esac
1742 case $ac_var in #(
1743 _ | IFS | as_nl) ;; #(
1744 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1745 *) $as_unset $ac_var ;;
1746 esac ;;
1747 esac
1748 done
1749 (set) 2>&1 |
1750 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1751 *${as_nl}ac_space=\ *)
1752 sed -n \
1753 "s/'\''/'\''\\\\'\'''\''/g;
1754 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1755 ;; #(
1757 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1759 esac |
1760 sort
1762 echo
1764 cat <<\_ASBOX
1765 ## ----------------- ##
1766 ## Output variables. ##
1767 ## ----------------- ##
1768 _ASBOX
1769 echo
1770 for ac_var in $ac_subst_vars
1772 eval ac_val=\$$ac_var
1773 case $ac_val in
1774 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1775 esac
1776 $as_echo "$ac_var='\''$ac_val'\''"
1777 done | sort
1778 echo
1780 if test -n "$ac_subst_files"; then
1781 cat <<\_ASBOX
1782 ## ------------------- ##
1783 ## File substitutions. ##
1784 ## ------------------- ##
1785 _ASBOX
1786 echo
1787 for ac_var in $ac_subst_files
1789 eval ac_val=\$$ac_var
1790 case $ac_val in
1791 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1792 esac
1793 $as_echo "$ac_var='\''$ac_val'\''"
1794 done | sort
1795 echo
1798 if test -s confdefs.h; then
1799 cat <<\_ASBOX
1800 ## ----------- ##
1801 ## confdefs.h. ##
1802 ## ----------- ##
1803 _ASBOX
1804 echo
1805 cat confdefs.h
1806 echo
1808 test "$ac_signal" != 0 &&
1809 $as_echo "$as_me: caught signal $ac_signal"
1810 $as_echo "$as_me: exit $exit_status"
1811 } >&5
1812 rm -f core *.core core.conftest.* &&
1813 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1814 exit $exit_status
1816 for ac_signal in 1 2 13 15; do
1817 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1818 done
1819 ac_signal=0
1821 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1822 rm -f -r conftest* confdefs.h
1824 # Predefined preprocessor variables.
1826 cat >>confdefs.h <<_ACEOF
1827 #define PACKAGE_NAME "$PACKAGE_NAME"
1828 _ACEOF
1831 cat >>confdefs.h <<_ACEOF
1832 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1833 _ACEOF
1836 cat >>confdefs.h <<_ACEOF
1837 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1838 _ACEOF
1841 cat >>confdefs.h <<_ACEOF
1842 #define PACKAGE_STRING "$PACKAGE_STRING"
1843 _ACEOF
1846 cat >>confdefs.h <<_ACEOF
1847 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1848 _ACEOF
1851 # Let the site file select an alternate cache file if it wants to.
1852 # Prefer an explicitly selected file to automatically selected ones.
1853 ac_site_file1=NONE
1854 ac_site_file2=NONE
1855 if test -n "$CONFIG_SITE"; then
1856 ac_site_file1=$CONFIG_SITE
1857 elif test "x$prefix" != xNONE; then
1858 ac_site_file1=$prefix/share/config.site
1859 ac_site_file2=$prefix/etc/config.site
1860 else
1861 ac_site_file1=$ac_default_prefix/share/config.site
1862 ac_site_file2=$ac_default_prefix/etc/config.site
1864 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1866 test "x$ac_site_file" = xNONE && continue
1867 if test -r "$ac_site_file"; then
1868 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1869 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1870 sed 's/^/| /' "$ac_site_file" >&5
1871 . "$ac_site_file"
1873 done
1875 if test -r "$cache_file"; then
1876 # Some versions of bash will fail to source /dev/null (special
1877 # files actually), so we avoid doing that.
1878 if test -f "$cache_file"; then
1879 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1880 $as_echo "$as_me: loading cache $cache_file" >&6;}
1881 case $cache_file in
1882 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1883 *) . "./$cache_file";;
1884 esac
1886 else
1887 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1888 $as_echo "$as_me: creating cache $cache_file" >&6;}
1889 >$cache_file
1892 # Check that the precious variables saved in the cache have kept the same
1893 # value.
1894 ac_cache_corrupted=false
1895 for ac_var in $ac_precious_vars; do
1896 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1897 eval ac_new_set=\$ac_env_${ac_var}_set
1898 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1899 eval ac_new_val=\$ac_env_${ac_var}_value
1900 case $ac_old_set,$ac_new_set in
1901 set,)
1902 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1903 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1904 ac_cache_corrupted=: ;;
1905 ,set)
1906 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1907 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1908 ac_cache_corrupted=: ;;
1909 ,);;
1911 if test "x$ac_old_val" != "x$ac_new_val"; then
1912 # differences in whitespace do not lead to failure.
1913 ac_old_val_w=`echo x $ac_old_val`
1914 ac_new_val_w=`echo x $ac_new_val`
1915 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1916 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1917 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1918 ac_cache_corrupted=:
1919 else
1920 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1921 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1922 eval $ac_var=\$ac_old_val
1924 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1925 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1926 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1927 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1928 fi;;
1929 esac
1930 # Pass precious variables to config.status.
1931 if test "$ac_new_set" = set; then
1932 case $ac_new_val in
1933 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1934 *) ac_arg=$ac_var=$ac_new_val ;;
1935 esac
1936 case " $ac_configure_args " in
1937 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1938 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1939 esac
1941 done
1942 if $ac_cache_corrupted; then
1943 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1944 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1945 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1946 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1947 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1948 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1949 { (exit 1); exit 1; }; }
1976 ac_ext=c
1977 ac_cpp='$CPP $CPPFLAGS'
1978 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1979 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1980 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1984 ac_config_headers="$ac_config_headers config.h"
1986 ac_aux_dir=
1987 for ac_dir in scripts "$srcdir"/scripts; do
1988 if test -f "$ac_dir/install-sh"; then
1989 ac_aux_dir=$ac_dir
1990 ac_install_sh="$ac_aux_dir/install-sh -c"
1991 break
1992 elif test -f "$ac_dir/install.sh"; then
1993 ac_aux_dir=$ac_dir
1994 ac_install_sh="$ac_aux_dir/install.sh -c"
1995 break
1996 elif test -f "$ac_dir/shtool"; then
1997 ac_aux_dir=$ac_dir
1998 ac_install_sh="$ac_aux_dir/shtool install -c"
1999 break
2001 done
2002 if test -z "$ac_aux_dir"; then
2003 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in scripts \"$srcdir\"/scripts" >&5
2004 $as_echo "$as_me: error: cannot find install-sh or install.sh in scripts \"$srcdir\"/scripts" >&2;}
2005 { (exit 1); exit 1; }; }
2008 # These three variables are undocumented and unsupported,
2009 # and are intended to be withdrawn in a future Autoconf release.
2010 # They can cause serious problems if a builder's source tree is in a directory
2011 # whose full name contains unusual characters.
2012 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2013 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2014 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2020 subdirs="$subdirs "
2023 # Make sure we can run config.sub.
2024 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2025 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2026 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2027 { (exit 1); exit 1; }; }
2029 { $as_echo "$as_me:$LINENO: checking build system type" >&5
2030 $as_echo_n "checking build system type... " >&6; }
2031 if test "${ac_cv_build+set}" = set; then
2032 $as_echo_n "(cached) " >&6
2033 else
2034 ac_build_alias=$build_alias
2035 test "x$ac_build_alias" = x &&
2036 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2037 test "x$ac_build_alias" = x &&
2038 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2039 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2040 { (exit 1); exit 1; }; }
2041 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2042 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2043 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2044 { (exit 1); exit 1; }; }
2047 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2048 $as_echo "$ac_cv_build" >&6; }
2049 case $ac_cv_build in
2050 *-*-*) ;;
2051 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2052 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
2053 { (exit 1); exit 1; }; };;
2054 esac
2055 build=$ac_cv_build
2056 ac_save_IFS=$IFS; IFS='-'
2057 set x $ac_cv_build
2058 shift
2059 build_cpu=$1
2060 build_vendor=$2
2061 shift; shift
2062 # Remember, the first character of IFS is used to create $*,
2063 # except with old shells:
2064 build_os=$*
2065 IFS=$ac_save_IFS
2066 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2069 { $as_echo "$as_me:$LINENO: checking host system type" >&5
2070 $as_echo_n "checking host system type... " >&6; }
2071 if test "${ac_cv_host+set}" = set; then
2072 $as_echo_n "(cached) " >&6
2073 else
2074 if test "x$host_alias" = x; then
2075 ac_cv_host=$ac_cv_build
2076 else
2077 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2078 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2079 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2080 { (exit 1); exit 1; }; }
2084 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2085 $as_echo "$ac_cv_host" >&6; }
2086 case $ac_cv_host in
2087 *-*-*) ;;
2088 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2089 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
2090 { (exit 1); exit 1; }; };;
2091 esac
2092 host=$ac_cv_host
2093 ac_save_IFS=$IFS; IFS='-'
2094 set x $ac_cv_host
2095 shift
2096 host_cpu=$1
2097 host_vendor=$2
2098 shift; shift
2099 # Remember, the first character of IFS is used to create $*,
2100 # except with old shells:
2101 host_os=$*
2102 IFS=$ac_save_IFS
2103 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2107 ac_ext=c
2108 ac_cpp='$CPP $CPPFLAGS'
2109 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2110 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2111 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2112 if test -n "$ac_tool_prefix"; then
2113 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2114 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2115 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2116 $as_echo_n "checking for $ac_word... " >&6; }
2117 if test "${ac_cv_prog_CC+set}" = set; then
2118 $as_echo_n "(cached) " >&6
2119 else
2120 if test -n "$CC"; then
2121 ac_cv_prog_CC="$CC" # Let the user override the test.
2122 else
2123 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2124 for as_dir in $PATH
2126 IFS=$as_save_IFS
2127 test -z "$as_dir" && as_dir=.
2128 for ac_exec_ext in '' $ac_executable_extensions; do
2129 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2130 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2131 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2132 break 2
2134 done
2135 done
2136 IFS=$as_save_IFS
2140 CC=$ac_cv_prog_CC
2141 if test -n "$CC"; then
2142 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2143 $as_echo "$CC" >&6; }
2144 else
2145 { $as_echo "$as_me:$LINENO: result: no" >&5
2146 $as_echo "no" >&6; }
2151 if test -z "$ac_cv_prog_CC"; then
2152 ac_ct_CC=$CC
2153 # Extract the first word of "gcc", so it can be a program name with args.
2154 set dummy gcc; ac_word=$2
2155 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2156 $as_echo_n "checking for $ac_word... " >&6; }
2157 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2158 $as_echo_n "(cached) " >&6
2159 else
2160 if test -n "$ac_ct_CC"; then
2161 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2162 else
2163 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2164 for as_dir in $PATH
2166 IFS=$as_save_IFS
2167 test -z "$as_dir" && as_dir=.
2168 for ac_exec_ext in '' $ac_executable_extensions; do
2169 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2170 ac_cv_prog_ac_ct_CC="gcc"
2171 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2172 break 2
2174 done
2175 done
2176 IFS=$as_save_IFS
2180 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2181 if test -n "$ac_ct_CC"; then
2182 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2183 $as_echo "$ac_ct_CC" >&6; }
2184 else
2185 { $as_echo "$as_me:$LINENO: result: no" >&5
2186 $as_echo "no" >&6; }
2189 if test "x$ac_ct_CC" = x; then
2190 CC=""
2191 else
2192 case $cross_compiling:$ac_tool_warned in
2193 yes:)
2194 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2195 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2196 ac_tool_warned=yes ;;
2197 esac
2198 CC=$ac_ct_CC
2200 else
2201 CC="$ac_cv_prog_CC"
2204 if test -z "$CC"; then
2205 if test -n "$ac_tool_prefix"; then
2206 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2207 set dummy ${ac_tool_prefix}cc; ac_word=$2
2208 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2209 $as_echo_n "checking for $ac_word... " >&6; }
2210 if test "${ac_cv_prog_CC+set}" = set; then
2211 $as_echo_n "(cached) " >&6
2212 else
2213 if test -n "$CC"; then
2214 ac_cv_prog_CC="$CC" # Let the user override the test.
2215 else
2216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2217 for as_dir in $PATH
2219 IFS=$as_save_IFS
2220 test -z "$as_dir" && as_dir=.
2221 for ac_exec_ext in '' $ac_executable_extensions; do
2222 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2223 ac_cv_prog_CC="${ac_tool_prefix}cc"
2224 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2225 break 2
2227 done
2228 done
2229 IFS=$as_save_IFS
2233 CC=$ac_cv_prog_CC
2234 if test -n "$CC"; then
2235 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2236 $as_echo "$CC" >&6; }
2237 else
2238 { $as_echo "$as_me:$LINENO: result: no" >&5
2239 $as_echo "no" >&6; }
2245 if test -z "$CC"; then
2246 # Extract the first word of "cc", so it can be a program name with args.
2247 set dummy cc; ac_word=$2
2248 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2249 $as_echo_n "checking for $ac_word... " >&6; }
2250 if test "${ac_cv_prog_CC+set}" = set; then
2251 $as_echo_n "(cached) " >&6
2252 else
2253 if test -n "$CC"; then
2254 ac_cv_prog_CC="$CC" # Let the user override the test.
2255 else
2256 ac_prog_rejected=no
2257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2258 for as_dir in $PATH
2260 IFS=$as_save_IFS
2261 test -z "$as_dir" && as_dir=.
2262 for ac_exec_ext in '' $ac_executable_extensions; do
2263 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2264 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2265 ac_prog_rejected=yes
2266 continue
2268 ac_cv_prog_CC="cc"
2269 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2270 break 2
2272 done
2273 done
2274 IFS=$as_save_IFS
2276 if test $ac_prog_rejected = yes; then
2277 # We found a bogon in the path, so make sure we never use it.
2278 set dummy $ac_cv_prog_CC
2279 shift
2280 if test $# != 0; then
2281 # We chose a different compiler from the bogus one.
2282 # However, it has the same basename, so the bogon will be chosen
2283 # first if we set CC to just the basename; use the full file name.
2284 shift
2285 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2290 CC=$ac_cv_prog_CC
2291 if test -n "$CC"; then
2292 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2293 $as_echo "$CC" >&6; }
2294 else
2295 { $as_echo "$as_me:$LINENO: result: no" >&5
2296 $as_echo "no" >&6; }
2301 if test -z "$CC"; then
2302 if test -n "$ac_tool_prefix"; then
2303 for ac_prog in cl.exe
2305 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2306 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2307 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2308 $as_echo_n "checking for $ac_word... " >&6; }
2309 if test "${ac_cv_prog_CC+set}" = set; then
2310 $as_echo_n "(cached) " >&6
2311 else
2312 if test -n "$CC"; then
2313 ac_cv_prog_CC="$CC" # Let the user override the test.
2314 else
2315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2316 for as_dir in $PATH
2318 IFS=$as_save_IFS
2319 test -z "$as_dir" && as_dir=.
2320 for ac_exec_ext in '' $ac_executable_extensions; do
2321 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2322 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2323 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2324 break 2
2326 done
2327 done
2328 IFS=$as_save_IFS
2332 CC=$ac_cv_prog_CC
2333 if test -n "$CC"; then
2334 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2335 $as_echo "$CC" >&6; }
2336 else
2337 { $as_echo "$as_me:$LINENO: result: no" >&5
2338 $as_echo "no" >&6; }
2342 test -n "$CC" && break
2343 done
2345 if test -z "$CC"; then
2346 ac_ct_CC=$CC
2347 for ac_prog in cl.exe
2349 # Extract the first word of "$ac_prog", so it can be a program name with args.
2350 set dummy $ac_prog; ac_word=$2
2351 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2352 $as_echo_n "checking for $ac_word... " >&6; }
2353 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2354 $as_echo_n "(cached) " >&6
2355 else
2356 if test -n "$ac_ct_CC"; then
2357 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2358 else
2359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2360 for as_dir in $PATH
2362 IFS=$as_save_IFS
2363 test -z "$as_dir" && as_dir=.
2364 for ac_exec_ext in '' $ac_executable_extensions; do
2365 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2366 ac_cv_prog_ac_ct_CC="$ac_prog"
2367 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2368 break 2
2370 done
2371 done
2372 IFS=$as_save_IFS
2376 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2377 if test -n "$ac_ct_CC"; then
2378 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2379 $as_echo "$ac_ct_CC" >&6; }
2380 else
2381 { $as_echo "$as_me:$LINENO: result: no" >&5
2382 $as_echo "no" >&6; }
2386 test -n "$ac_ct_CC" && break
2387 done
2389 if test "x$ac_ct_CC" = x; then
2390 CC=""
2391 else
2392 case $cross_compiling:$ac_tool_warned in
2393 yes:)
2394 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2395 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2396 ac_tool_warned=yes ;;
2397 esac
2398 CC=$ac_ct_CC
2405 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2406 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2407 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2408 See \`config.log' for more details." >&5
2409 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
2410 See \`config.log' for more details." >&2;}
2411 { (exit 1); exit 1; }; }; }
2413 # Provide some information about the compiler.
2414 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2415 set X $ac_compile
2416 ac_compiler=$2
2417 { (ac_try="$ac_compiler --version >&5"
2418 case "(($ac_try" in
2419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2420 *) ac_try_echo=$ac_try;;
2421 esac
2422 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2423 $as_echo "$ac_try_echo") >&5
2424 (eval "$ac_compiler --version >&5") 2>&5
2425 ac_status=$?
2426 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2427 (exit $ac_status); }
2428 { (ac_try="$ac_compiler -v >&5"
2429 case "(($ac_try" in
2430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2431 *) ac_try_echo=$ac_try;;
2432 esac
2433 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2434 $as_echo "$ac_try_echo") >&5
2435 (eval "$ac_compiler -v >&5") 2>&5
2436 ac_status=$?
2437 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2438 (exit $ac_status); }
2439 { (ac_try="$ac_compiler -V >&5"
2440 case "(($ac_try" in
2441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2442 *) ac_try_echo=$ac_try;;
2443 esac
2444 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2445 $as_echo "$ac_try_echo") >&5
2446 (eval "$ac_compiler -V >&5") 2>&5
2447 ac_status=$?
2448 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2449 (exit $ac_status); }
2451 EXEEXT=
2452 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
2453 $as_echo_n "checking for suffix of object files... " >&6; }
2454 if test "${ac_cv_objext+set}" = set; then
2455 $as_echo_n "(cached) " >&6
2456 else
2457 cat >conftest.$ac_ext <<_ACEOF
2458 /* confdefs.h. */
2459 _ACEOF
2460 cat confdefs.h >>conftest.$ac_ext
2461 cat >>conftest.$ac_ext <<_ACEOF
2462 /* end confdefs.h. */
2465 main ()
2469 return 0;
2471 _ACEOF
2472 rm -f conftest.o conftest.obj
2473 if { (ac_try="$ac_compile"
2474 case "(($ac_try" in
2475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2476 *) ac_try_echo=$ac_try;;
2477 esac
2478 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2479 $as_echo "$ac_try_echo") >&5
2480 (eval "$ac_compile") 2>&5
2481 ac_status=$?
2482 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2483 (exit $ac_status); }; then
2484 for ac_file in conftest.o conftest.obj conftest.*; do
2485 test -f "$ac_file" || continue;
2486 case $ac_file in
2487 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2488 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2489 break;;
2490 esac
2491 done
2492 else
2493 $as_echo "$as_me: failed program was:" >&5
2494 sed 's/^/| /' conftest.$ac_ext >&5
2496 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2497 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2498 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2499 See \`config.log' for more details." >&5
2500 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
2501 See \`config.log' for more details." >&2;}
2502 { (exit 1); exit 1; }; }; }
2505 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2507 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2508 $as_echo "$ac_cv_objext" >&6; }
2509 OBJEXT=$ac_cv_objext
2510 ac_objext=$OBJEXT
2511 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2512 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2513 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2514 $as_echo_n "(cached) " >&6
2515 else
2516 cat >conftest.$ac_ext <<_ACEOF
2517 /* confdefs.h. */
2518 _ACEOF
2519 cat confdefs.h >>conftest.$ac_ext
2520 cat >>conftest.$ac_ext <<_ACEOF
2521 /* end confdefs.h. */
2524 main ()
2526 #ifndef __GNUC__
2527 choke me
2528 #endif
2531 return 0;
2533 _ACEOF
2534 rm -f conftest.$ac_objext
2535 if { (ac_try="$ac_compile"
2536 case "(($ac_try" in
2537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2538 *) ac_try_echo=$ac_try;;
2539 esac
2540 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2541 $as_echo "$ac_try_echo") >&5
2542 (eval "$ac_compile") 2>conftest.er1
2543 ac_status=$?
2544 grep -v '^ *+' conftest.er1 >conftest.err
2545 rm -f conftest.er1
2546 cat conftest.err >&5
2547 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2548 (exit $ac_status); } && {
2549 test -z "$ac_c_werror_flag" ||
2550 test ! -s conftest.err
2551 } && test -s conftest.$ac_objext; then
2552 ac_compiler_gnu=yes
2553 else
2554 $as_echo "$as_me: failed program was:" >&5
2555 sed 's/^/| /' conftest.$ac_ext >&5
2557 ac_compiler_gnu=no
2560 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2561 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2564 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2565 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
2566 if test $ac_compiler_gnu = yes; then
2567 GCC=yes
2568 else
2569 GCC=
2571 ac_test_CFLAGS=${CFLAGS+set}
2572 ac_save_CFLAGS=$CFLAGS
2573 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2574 $as_echo_n "checking whether $CC accepts -g... " >&6; }
2575 if test "${ac_cv_prog_cc_g+set}" = set; then
2576 $as_echo_n "(cached) " >&6
2577 else
2578 ac_save_c_werror_flag=$ac_c_werror_flag
2579 ac_c_werror_flag=yes
2580 ac_cv_prog_cc_g=no
2581 CFLAGS="-g"
2582 cat >conftest.$ac_ext <<_ACEOF
2583 /* confdefs.h. */
2584 _ACEOF
2585 cat confdefs.h >>conftest.$ac_ext
2586 cat >>conftest.$ac_ext <<_ACEOF
2587 /* end confdefs.h. */
2590 main ()
2594 return 0;
2596 _ACEOF
2597 rm -f conftest.$ac_objext
2598 if { (ac_try="$ac_compile"
2599 case "(($ac_try" in
2600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2601 *) ac_try_echo=$ac_try;;
2602 esac
2603 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2604 $as_echo "$ac_try_echo") >&5
2605 (eval "$ac_compile") 2>conftest.er1
2606 ac_status=$?
2607 grep -v '^ *+' conftest.er1 >conftest.err
2608 rm -f conftest.er1
2609 cat conftest.err >&5
2610 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2611 (exit $ac_status); } && {
2612 test -z "$ac_c_werror_flag" ||
2613 test ! -s conftest.err
2614 } && test -s conftest.$ac_objext; then
2615 ac_cv_prog_cc_g=yes
2616 else
2617 $as_echo "$as_me: failed program was:" >&5
2618 sed 's/^/| /' conftest.$ac_ext >&5
2620 CFLAGS=""
2621 cat >conftest.$ac_ext <<_ACEOF
2622 /* confdefs.h. */
2623 _ACEOF
2624 cat confdefs.h >>conftest.$ac_ext
2625 cat >>conftest.$ac_ext <<_ACEOF
2626 /* end confdefs.h. */
2629 main ()
2633 return 0;
2635 _ACEOF
2636 rm -f conftest.$ac_objext
2637 if { (ac_try="$ac_compile"
2638 case "(($ac_try" in
2639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2640 *) ac_try_echo=$ac_try;;
2641 esac
2642 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2643 $as_echo "$ac_try_echo") >&5
2644 (eval "$ac_compile") 2>conftest.er1
2645 ac_status=$?
2646 grep -v '^ *+' conftest.er1 >conftest.err
2647 rm -f conftest.er1
2648 cat conftest.err >&5
2649 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2650 (exit $ac_status); } && {
2651 test -z "$ac_c_werror_flag" ||
2652 test ! -s conftest.err
2653 } && test -s conftest.$ac_objext; then
2655 else
2656 $as_echo "$as_me: failed program was:" >&5
2657 sed 's/^/| /' conftest.$ac_ext >&5
2659 ac_c_werror_flag=$ac_save_c_werror_flag
2660 CFLAGS="-g"
2661 cat >conftest.$ac_ext <<_ACEOF
2662 /* confdefs.h. */
2663 _ACEOF
2664 cat confdefs.h >>conftest.$ac_ext
2665 cat >>conftest.$ac_ext <<_ACEOF
2666 /* end confdefs.h. */
2669 main ()
2673 return 0;
2675 _ACEOF
2676 rm -f conftest.$ac_objext
2677 if { (ac_try="$ac_compile"
2678 case "(($ac_try" in
2679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2680 *) ac_try_echo=$ac_try;;
2681 esac
2682 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2683 $as_echo "$ac_try_echo") >&5
2684 (eval "$ac_compile") 2>conftest.er1
2685 ac_status=$?
2686 grep -v '^ *+' conftest.er1 >conftest.err
2687 rm -f conftest.er1
2688 cat conftest.err >&5
2689 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2690 (exit $ac_status); } && {
2691 test -z "$ac_c_werror_flag" ||
2692 test ! -s conftest.err
2693 } && test -s conftest.$ac_objext; then
2694 ac_cv_prog_cc_g=yes
2695 else
2696 $as_echo "$as_me: failed program was:" >&5
2697 sed 's/^/| /' conftest.$ac_ext >&5
2702 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2705 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2708 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2709 ac_c_werror_flag=$ac_save_c_werror_flag
2711 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2712 $as_echo "$ac_cv_prog_cc_g" >&6; }
2713 if test "$ac_test_CFLAGS" = set; then
2714 CFLAGS=$ac_save_CFLAGS
2715 elif test $ac_cv_prog_cc_g = yes; then
2716 if test "$GCC" = yes; then
2717 CFLAGS="-g -O2"
2718 else
2719 CFLAGS="-g"
2721 else
2722 if test "$GCC" = yes; then
2723 CFLAGS="-O2"
2724 else
2725 CFLAGS=
2728 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2729 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
2730 if test "${ac_cv_prog_cc_c89+set}" = set; then
2731 $as_echo_n "(cached) " >&6
2732 else
2733 ac_cv_prog_cc_c89=no
2734 ac_save_CC=$CC
2735 cat >conftest.$ac_ext <<_ACEOF
2736 /* confdefs.h. */
2737 _ACEOF
2738 cat confdefs.h >>conftest.$ac_ext
2739 cat >>conftest.$ac_ext <<_ACEOF
2740 /* end confdefs.h. */
2741 #include <stdarg.h>
2742 #include <stdio.h>
2743 #include <sys/types.h>
2744 #include <sys/stat.h>
2745 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2746 struct buf { int x; };
2747 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2748 static char *e (p, i)
2749 char **p;
2750 int i;
2752 return p[i];
2754 static char *f (char * (*g) (char **, int), char **p, ...)
2756 char *s;
2757 va_list v;
2758 va_start (v,p);
2759 s = g (p, va_arg (v,int));
2760 va_end (v);
2761 return s;
2764 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2765 function prototypes and stuff, but not '\xHH' hex character constants.
2766 These don't provoke an error unfortunately, instead are silently treated
2767 as 'x'. The following induces an error, until -std is added to get
2768 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2769 array size at least. It's necessary to write '\x00'==0 to get something
2770 that's true only with -std. */
2771 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2773 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2774 inside strings and character constants. */
2775 #define FOO(x) 'x'
2776 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2778 int test (int i, double x);
2779 struct s1 {int (*f) (int a);};
2780 struct s2 {int (*f) (double a);};
2781 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2782 int argc;
2783 char **argv;
2785 main ()
2787 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2789 return 0;
2791 _ACEOF
2792 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2793 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2795 CC="$ac_save_CC $ac_arg"
2796 rm -f conftest.$ac_objext
2797 if { (ac_try="$ac_compile"
2798 case "(($ac_try" in
2799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2800 *) ac_try_echo=$ac_try;;
2801 esac
2802 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2803 $as_echo "$ac_try_echo") >&5
2804 (eval "$ac_compile") 2>conftest.er1
2805 ac_status=$?
2806 grep -v '^ *+' conftest.er1 >conftest.err
2807 rm -f conftest.er1
2808 cat conftest.err >&5
2809 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2810 (exit $ac_status); } && {
2811 test -z "$ac_c_werror_flag" ||
2812 test ! -s conftest.err
2813 } && test -s conftest.$ac_objext; then
2814 ac_cv_prog_cc_c89=$ac_arg
2815 else
2816 $as_echo "$as_me: failed program was:" >&5
2817 sed 's/^/| /' conftest.$ac_ext >&5
2822 rm -f core conftest.err conftest.$ac_objext
2823 test "x$ac_cv_prog_cc_c89" != "xno" && break
2824 done
2825 rm -f conftest.$ac_ext
2826 CC=$ac_save_CC
2829 # AC_CACHE_VAL
2830 case "x$ac_cv_prog_cc_c89" in
2832 { $as_echo "$as_me:$LINENO: result: none needed" >&5
2833 $as_echo "none needed" >&6; } ;;
2834 xno)
2835 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
2836 $as_echo "unsupported" >&6; } ;;
2838 CC="$CC $ac_cv_prog_cc_c89"
2839 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2840 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
2841 esac
2844 ac_ext=c
2845 ac_cpp='$CPP $CPPFLAGS'
2846 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2847 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2848 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2850 if test $host != $build; then
2851 for ac_prog in gcc cc
2853 # Extract the first word of "$ac_prog", so it can be a program name with args.
2854 set dummy $ac_prog; ac_word=$2
2855 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2856 $as_echo_n "checking for $ac_word... " >&6; }
2857 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
2858 $as_echo_n "(cached) " >&6
2859 else
2860 if test -n "$BUILD_CC"; then
2861 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
2862 else
2863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2864 for as_dir in $PATH
2866 IFS=$as_save_IFS
2867 test -z "$as_dir" && as_dir=.
2868 for ac_exec_ext in '' $ac_executable_extensions; do
2869 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2870 ac_cv_prog_BUILD_CC="$ac_prog"
2871 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2872 break 2
2874 done
2875 done
2876 IFS=$as_save_IFS
2880 BUILD_CC=$ac_cv_prog_BUILD_CC
2881 if test -n "$BUILD_CC"; then
2882 { $as_echo "$as_me:$LINENO: result: $BUILD_CC" >&5
2883 $as_echo "$BUILD_CC" >&6; }
2884 else
2885 { $as_echo "$as_me:$LINENO: result: no" >&5
2886 $as_echo "no" >&6; }
2890 test -n "$BUILD_CC" && break
2891 done
2895 ac_ext=c
2896 ac_cpp='$CPP $CPPFLAGS'
2897 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2898 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2899 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2900 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2901 $as_echo_n "checking how to run the C preprocessor... " >&6; }
2902 # On Suns, sometimes $CPP names a directory.
2903 if test -n "$CPP" && test -d "$CPP"; then
2904 CPP=
2906 if test -z "$CPP"; then
2907 if test "${ac_cv_prog_CPP+set}" = set; then
2908 $as_echo_n "(cached) " >&6
2909 else
2910 # Double quotes because CPP needs to be expanded
2911 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2913 ac_preproc_ok=false
2914 for ac_c_preproc_warn_flag in '' yes
2916 # Use a header file that comes with gcc, so configuring glibc
2917 # with a fresh cross-compiler works.
2918 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2919 # <limits.h> exists even on freestanding compilers.
2920 # On the NeXT, cc -E runs the code through the compiler's parser,
2921 # not just through cpp. "Syntax error" is here to catch this case.
2922 cat >conftest.$ac_ext <<_ACEOF
2923 /* confdefs.h. */
2924 _ACEOF
2925 cat confdefs.h >>conftest.$ac_ext
2926 cat >>conftest.$ac_ext <<_ACEOF
2927 /* end confdefs.h. */
2928 #ifdef __STDC__
2929 # include <limits.h>
2930 #else
2931 # include <assert.h>
2932 #endif
2933 Syntax error
2934 _ACEOF
2935 if { (ac_try="$ac_cpp conftest.$ac_ext"
2936 case "(($ac_try" in
2937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2938 *) ac_try_echo=$ac_try;;
2939 esac
2940 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2941 $as_echo "$ac_try_echo") >&5
2942 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2943 ac_status=$?
2944 grep -v '^ *+' conftest.er1 >conftest.err
2945 rm -f conftest.er1
2946 cat conftest.err >&5
2947 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2948 (exit $ac_status); } >/dev/null && {
2949 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2950 test ! -s conftest.err
2951 }; then
2953 else
2954 $as_echo "$as_me: failed program was:" >&5
2955 sed 's/^/| /' conftest.$ac_ext >&5
2957 # Broken: fails on valid input.
2958 continue
2961 rm -f conftest.err conftest.$ac_ext
2963 # OK, works on sane cases. Now check whether nonexistent headers
2964 # can be detected and how.
2965 cat >conftest.$ac_ext <<_ACEOF
2966 /* confdefs.h. */
2967 _ACEOF
2968 cat confdefs.h >>conftest.$ac_ext
2969 cat >>conftest.$ac_ext <<_ACEOF
2970 /* end confdefs.h. */
2971 #include <ac_nonexistent.h>
2972 _ACEOF
2973 if { (ac_try="$ac_cpp conftest.$ac_ext"
2974 case "(($ac_try" in
2975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2976 *) ac_try_echo=$ac_try;;
2977 esac
2978 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2979 $as_echo "$ac_try_echo") >&5
2980 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2981 ac_status=$?
2982 grep -v '^ *+' conftest.er1 >conftest.err
2983 rm -f conftest.er1
2984 cat conftest.err >&5
2985 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2986 (exit $ac_status); } >/dev/null && {
2987 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2988 test ! -s conftest.err
2989 }; then
2990 # Broken: success on invalid input.
2991 continue
2992 else
2993 $as_echo "$as_me: failed program was:" >&5
2994 sed 's/^/| /' conftest.$ac_ext >&5
2996 # Passes both tests.
2997 ac_preproc_ok=:
2998 break
3001 rm -f conftest.err conftest.$ac_ext
3003 done
3004 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3005 rm -f conftest.err conftest.$ac_ext
3006 if $ac_preproc_ok; then
3007 break
3010 done
3011 ac_cv_prog_CPP=$CPP
3014 CPP=$ac_cv_prog_CPP
3015 else
3016 ac_cv_prog_CPP=$CPP
3018 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
3019 $as_echo "$CPP" >&6; }
3020 ac_preproc_ok=false
3021 for ac_c_preproc_warn_flag in '' yes
3023 # Use a header file that comes with gcc, so configuring glibc
3024 # with a fresh cross-compiler works.
3025 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3026 # <limits.h> exists even on freestanding compilers.
3027 # On the NeXT, cc -E runs the code through the compiler's parser,
3028 # not just through cpp. "Syntax error" is here to catch this case.
3029 cat >conftest.$ac_ext <<_ACEOF
3030 /* confdefs.h. */
3031 _ACEOF
3032 cat confdefs.h >>conftest.$ac_ext
3033 cat >>conftest.$ac_ext <<_ACEOF
3034 /* end confdefs.h. */
3035 #ifdef __STDC__
3036 # include <limits.h>
3037 #else
3038 # include <assert.h>
3039 #endif
3040 Syntax error
3041 _ACEOF
3042 if { (ac_try="$ac_cpp conftest.$ac_ext"
3043 case "(($ac_try" in
3044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3045 *) ac_try_echo=$ac_try;;
3046 esac
3047 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3048 $as_echo "$ac_try_echo") >&5
3049 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3050 ac_status=$?
3051 grep -v '^ *+' conftest.er1 >conftest.err
3052 rm -f conftest.er1
3053 cat conftest.err >&5
3054 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3055 (exit $ac_status); } >/dev/null && {
3056 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3057 test ! -s conftest.err
3058 }; then
3060 else
3061 $as_echo "$as_me: failed program was:" >&5
3062 sed 's/^/| /' conftest.$ac_ext >&5
3064 # Broken: fails on valid input.
3065 continue
3068 rm -f conftest.err conftest.$ac_ext
3070 # OK, works on sane cases. Now check whether nonexistent headers
3071 # can be detected and how.
3072 cat >conftest.$ac_ext <<_ACEOF
3073 /* confdefs.h. */
3074 _ACEOF
3075 cat confdefs.h >>conftest.$ac_ext
3076 cat >>conftest.$ac_ext <<_ACEOF
3077 /* end confdefs.h. */
3078 #include <ac_nonexistent.h>
3079 _ACEOF
3080 if { (ac_try="$ac_cpp conftest.$ac_ext"
3081 case "(($ac_try" in
3082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3083 *) ac_try_echo=$ac_try;;
3084 esac
3085 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3086 $as_echo "$ac_try_echo") >&5
3087 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3088 ac_status=$?
3089 grep -v '^ *+' conftest.er1 >conftest.err
3090 rm -f conftest.er1
3091 cat conftest.err >&5
3092 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3093 (exit $ac_status); } >/dev/null && {
3094 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3095 test ! -s conftest.err
3096 }; then
3097 # Broken: success on invalid input.
3098 continue
3099 else
3100 $as_echo "$as_me: failed program was:" >&5
3101 sed 's/^/| /' conftest.$ac_ext >&5
3103 # Passes both tests.
3104 ac_preproc_ok=:
3105 break
3108 rm -f conftest.err conftest.$ac_ext
3110 done
3111 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3112 rm -f conftest.err conftest.$ac_ext
3113 if $ac_preproc_ok; then
3115 else
3116 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3117 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3118 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3119 See \`config.log' for more details." >&5
3120 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3121 See \`config.log' for more details." >&2;}
3122 { (exit 1); exit 1; }; }; }
3125 ac_ext=c
3126 ac_cpp='$CPP $CPPFLAGS'
3127 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3128 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3129 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3131 # We need the C++ compiler only for testing.
3132 ac_ext=cpp
3133 ac_cpp='$CXXCPP $CPPFLAGS'
3134 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3135 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3136 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3137 if test -z "$CXX"; then
3138 if test -n "$CCC"; then
3139 CXX=$CCC
3140 else
3141 if test -n "$ac_tool_prefix"; then
3142 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3144 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3145 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3146 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3147 $as_echo_n "checking for $ac_word... " >&6; }
3148 if test "${ac_cv_prog_CXX+set}" = set; then
3149 $as_echo_n "(cached) " >&6
3150 else
3151 if test -n "$CXX"; then
3152 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3153 else
3154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3155 for as_dir in $PATH
3157 IFS=$as_save_IFS
3158 test -z "$as_dir" && as_dir=.
3159 for ac_exec_ext in '' $ac_executable_extensions; do
3160 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3161 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3162 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3163 break 2
3165 done
3166 done
3167 IFS=$as_save_IFS
3171 CXX=$ac_cv_prog_CXX
3172 if test -n "$CXX"; then
3173 { $as_echo "$as_me:$LINENO: result: $CXX" >&5
3174 $as_echo "$CXX" >&6; }
3175 else
3176 { $as_echo "$as_me:$LINENO: result: no" >&5
3177 $as_echo "no" >&6; }
3181 test -n "$CXX" && break
3182 done
3184 if test -z "$CXX"; then
3185 ac_ct_CXX=$CXX
3186 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3188 # Extract the first word of "$ac_prog", so it can be a program name with args.
3189 set dummy $ac_prog; ac_word=$2
3190 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3191 $as_echo_n "checking for $ac_word... " >&6; }
3192 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3193 $as_echo_n "(cached) " >&6
3194 else
3195 if test -n "$ac_ct_CXX"; then
3196 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3197 else
3198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3199 for as_dir in $PATH
3201 IFS=$as_save_IFS
3202 test -z "$as_dir" && as_dir=.
3203 for ac_exec_ext in '' $ac_executable_extensions; do
3204 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3205 ac_cv_prog_ac_ct_CXX="$ac_prog"
3206 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3207 break 2
3209 done
3210 done
3211 IFS=$as_save_IFS
3215 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3216 if test -n "$ac_ct_CXX"; then
3217 { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3218 $as_echo "$ac_ct_CXX" >&6; }
3219 else
3220 { $as_echo "$as_me:$LINENO: result: no" >&5
3221 $as_echo "no" >&6; }
3225 test -n "$ac_ct_CXX" && break
3226 done
3228 if test "x$ac_ct_CXX" = x; then
3229 CXX="g++"
3230 else
3231 case $cross_compiling:$ac_tool_warned in
3232 yes:)
3233 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3234 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3235 ac_tool_warned=yes ;;
3236 esac
3237 CXX=$ac_ct_CXX
3243 # Provide some information about the compiler.
3244 $as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
3245 set X $ac_compile
3246 ac_compiler=$2
3247 { (ac_try="$ac_compiler --version >&5"
3248 case "(($ac_try" in
3249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3250 *) ac_try_echo=$ac_try;;
3251 esac
3252 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3253 $as_echo "$ac_try_echo") >&5
3254 (eval "$ac_compiler --version >&5") 2>&5
3255 ac_status=$?
3256 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3257 (exit $ac_status); }
3258 { (ac_try="$ac_compiler -v >&5"
3259 case "(($ac_try" in
3260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3261 *) ac_try_echo=$ac_try;;
3262 esac
3263 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3264 $as_echo "$ac_try_echo") >&5
3265 (eval "$ac_compiler -v >&5") 2>&5
3266 ac_status=$?
3267 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3268 (exit $ac_status); }
3269 { (ac_try="$ac_compiler -V >&5"
3270 case "(($ac_try" in
3271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3272 *) ac_try_echo=$ac_try;;
3273 esac
3274 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3275 $as_echo "$ac_try_echo") >&5
3276 (eval "$ac_compiler -V >&5") 2>&5
3277 ac_status=$?
3278 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3279 (exit $ac_status); }
3281 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3282 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3283 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3284 $as_echo_n "(cached) " >&6
3285 else
3286 cat >conftest.$ac_ext <<_ACEOF
3287 /* confdefs.h. */
3288 _ACEOF
3289 cat confdefs.h >>conftest.$ac_ext
3290 cat >>conftest.$ac_ext <<_ACEOF
3291 /* end confdefs.h. */
3294 main ()
3296 #ifndef __GNUC__
3297 choke me
3298 #endif
3301 return 0;
3303 _ACEOF
3304 rm -f conftest.$ac_objext
3305 if { (ac_try="$ac_compile"
3306 case "(($ac_try" in
3307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3308 *) ac_try_echo=$ac_try;;
3309 esac
3310 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3311 $as_echo "$ac_try_echo") >&5
3312 (eval "$ac_compile") 2>conftest.er1
3313 ac_status=$?
3314 grep -v '^ *+' conftest.er1 >conftest.err
3315 rm -f conftest.er1
3316 cat conftest.err >&5
3317 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3318 (exit $ac_status); } && {
3319 test -z "$ac_cxx_werror_flag" ||
3320 test ! -s conftest.err
3321 } && test -s conftest.$ac_objext; then
3322 ac_compiler_gnu=yes
3323 else
3324 $as_echo "$as_me: failed program was:" >&5
3325 sed 's/^/| /' conftest.$ac_ext >&5
3327 ac_compiler_gnu=no
3330 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3331 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3334 { $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3335 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3336 if test $ac_compiler_gnu = yes; then
3337 GXX=yes
3338 else
3339 GXX=
3341 ac_test_CXXFLAGS=${CXXFLAGS+set}
3342 ac_save_CXXFLAGS=$CXXFLAGS
3343 { $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3344 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3345 if test "${ac_cv_prog_cxx_g+set}" = set; then
3346 $as_echo_n "(cached) " >&6
3347 else
3348 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3349 ac_cxx_werror_flag=yes
3350 ac_cv_prog_cxx_g=no
3351 CXXFLAGS="-g"
3352 cat >conftest.$ac_ext <<_ACEOF
3353 /* confdefs.h. */
3354 _ACEOF
3355 cat confdefs.h >>conftest.$ac_ext
3356 cat >>conftest.$ac_ext <<_ACEOF
3357 /* end confdefs.h. */
3360 main ()
3364 return 0;
3366 _ACEOF
3367 rm -f conftest.$ac_objext
3368 if { (ac_try="$ac_compile"
3369 case "(($ac_try" in
3370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3371 *) ac_try_echo=$ac_try;;
3372 esac
3373 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3374 $as_echo "$ac_try_echo") >&5
3375 (eval "$ac_compile") 2>conftest.er1
3376 ac_status=$?
3377 grep -v '^ *+' conftest.er1 >conftest.err
3378 rm -f conftest.er1
3379 cat conftest.err >&5
3380 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3381 (exit $ac_status); } && {
3382 test -z "$ac_cxx_werror_flag" ||
3383 test ! -s conftest.err
3384 } && test -s conftest.$ac_objext; then
3385 ac_cv_prog_cxx_g=yes
3386 else
3387 $as_echo "$as_me: failed program was:" >&5
3388 sed 's/^/| /' conftest.$ac_ext >&5
3390 CXXFLAGS=""
3391 cat >conftest.$ac_ext <<_ACEOF
3392 /* confdefs.h. */
3393 _ACEOF
3394 cat confdefs.h >>conftest.$ac_ext
3395 cat >>conftest.$ac_ext <<_ACEOF
3396 /* end confdefs.h. */
3399 main ()
3403 return 0;
3405 _ACEOF
3406 rm -f conftest.$ac_objext
3407 if { (ac_try="$ac_compile"
3408 case "(($ac_try" in
3409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3410 *) ac_try_echo=$ac_try;;
3411 esac
3412 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3413 $as_echo "$ac_try_echo") >&5
3414 (eval "$ac_compile") 2>conftest.er1
3415 ac_status=$?
3416 grep -v '^ *+' conftest.er1 >conftest.err
3417 rm -f conftest.er1
3418 cat conftest.err >&5
3419 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3420 (exit $ac_status); } && {
3421 test -z "$ac_cxx_werror_flag" ||
3422 test ! -s conftest.err
3423 } && test -s conftest.$ac_objext; then
3425 else
3426 $as_echo "$as_me: failed program was:" >&5
3427 sed 's/^/| /' conftest.$ac_ext >&5
3429 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3430 CXXFLAGS="-g"
3431 cat >conftest.$ac_ext <<_ACEOF
3432 /* confdefs.h. */
3433 _ACEOF
3434 cat confdefs.h >>conftest.$ac_ext
3435 cat >>conftest.$ac_ext <<_ACEOF
3436 /* end confdefs.h. */
3439 main ()
3443 return 0;
3445 _ACEOF
3446 rm -f conftest.$ac_objext
3447 if { (ac_try="$ac_compile"
3448 case "(($ac_try" in
3449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3450 *) ac_try_echo=$ac_try;;
3451 esac
3452 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3453 $as_echo "$ac_try_echo") >&5
3454 (eval "$ac_compile") 2>conftest.er1
3455 ac_status=$?
3456 grep -v '^ *+' conftest.er1 >conftest.err
3457 rm -f conftest.er1
3458 cat conftest.err >&5
3459 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3460 (exit $ac_status); } && {
3461 test -z "$ac_cxx_werror_flag" ||
3462 test ! -s conftest.err
3463 } && test -s conftest.$ac_objext; then
3464 ac_cv_prog_cxx_g=yes
3465 else
3466 $as_echo "$as_me: failed program was:" >&5
3467 sed 's/^/| /' conftest.$ac_ext >&5
3472 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3475 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3479 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3481 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3482 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3483 if test "$ac_test_CXXFLAGS" = set; then
3484 CXXFLAGS=$ac_save_CXXFLAGS
3485 elif test $ac_cv_prog_cxx_g = yes; then
3486 if test "$GXX" = yes; then
3487 CXXFLAGS="-g -O2"
3488 else
3489 CXXFLAGS="-g"
3491 else
3492 if test "$GXX" = yes; then
3493 CXXFLAGS="-O2"
3494 else
3495 CXXFLAGS=
3498 ac_ext=c
3499 ac_cpp='$CPP $CPPFLAGS'
3500 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3501 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3502 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3505 if test "`cd $srcdir; /bin/pwd`" = "`/bin/pwd`"; then
3506 { { $as_echo "$as_me:$LINENO: error: you must configure in a separate build directory" >&5
3507 $as_echo "$as_me: error: you must configure in a separate build directory" >&2;}
3508 { (exit 1); exit 1; }; }
3511 # This will get text that should go into config.make.
3512 config_vars=
3514 # Check for a --with-gd argument and set libgd-LDFLAGS in config.make.
3516 # Check whether --with-gd was given.
3517 if test "${with_gd+set}" = set; then
3518 withval=$with_gd; case "$with_gd" in
3519 yes|''|no) ;;
3520 *) libgd_include="-I$withval/include"
3521 libgd_ldflags="-L$withval/lib" ;;
3522 esac
3527 # Check whether --with-gd-include was given.
3528 if test "${with_gd_include+set}" = set; then
3529 withval=$with_gd_include; case "$with_gd_include" in
3530 ''|no) ;;
3531 *) libgd_include="-I$withval" ;;
3532 esac
3537 # Check whether --with-gd-lib was given.
3538 if test "${with_gd_lib+set}" = set; then
3539 withval=$with_gd_lib; case "$with_gd_lib" in
3540 ''|no) ;;
3541 *) libgd_ldflags="-L$withval" ;;
3542 esac
3547 if test -n "$libgd_include"; then
3548 config_vars="$config_vars
3549 CFLAGS-memusagestat.c = $libgd_include"
3551 if test -n "$libgd_ldflags"; then
3552 config_vars="$config_vars
3553 libgd-LDFLAGS = $libgd_ldflags"
3557 # Check whether --with-fp was given.
3558 if test "${with_fp+set}" = set; then
3559 withval=$with_fp; with_fp=$withval
3560 else
3561 with_fp=yes
3566 # Check whether --with-binutils was given.
3567 if test "${with_binutils+set}" = set; then
3568 withval=$with_binutils; path_binutils=$withval
3569 else
3570 path_binutils=''
3574 # Check whether --with-elf was given.
3575 if test "${with_elf+set}" = set; then
3576 withval=$with_elf; elf=$withval
3577 else
3578 elf=no
3582 # Check whether --with-selinux was given.
3583 if test "${with_selinux+set}" = set; then
3584 withval=$with_selinux; with_selinux=$withval
3585 else
3586 with_selinux=auto
3590 # Check whether --with-xcoff was given.
3591 if test "${with_xcoff+set}" = set; then
3592 withval=$with_xcoff; xcoff=$withval
3593 else
3594 xcoff=no
3598 # Check whether --with-cvs was given.
3599 if test "${with_cvs+set}" = set; then
3600 withval=$with_cvs; with_cvs=$withval
3601 else
3602 with_cvs=yes
3605 if test "$with_cvs" = yes; then
3606 if test -d $srcdir/CVS && grep :pserver: $srcdir/CVS/Root > /dev/null
3607 then
3608 with_cvs=no
3614 # Check whether --with-headers was given.
3615 if test "${with_headers+set}" = set; then
3616 withval=$with_headers; sysheaders=$withval
3617 else
3618 sysheaders=''
3622 # Check whether --enable-sanity-checks was given.
3623 if test "${enable_sanity_checks+set}" = set; then
3624 enableval=$enable_sanity_checks; enable_sanity=$enableval
3625 else
3626 enable_sanity=yes
3631 # Check whether --enable-check-abi was given.
3632 if test "${enable_check_abi+set}" = set; then
3633 enableval=$enable_check_abi; enable_check_abi=$enableval
3634 else
3635 enable_check_abi=no
3639 static=yes
3640 # Check whether --enable-shared was given.
3641 if test "${enable_shared+set}" = set; then
3642 enableval=$enable_shared; shared=$enableval
3643 else
3644 shared=default
3647 # Check whether --enable-profile was given.
3648 if test "${enable_profile+set}" = set; then
3649 enableval=$enable_profile; profile=$enableval
3650 else
3651 profile=no
3654 # Check whether --enable-omitfp was given.
3655 if test "${enable_omitfp+set}" = set; then
3656 enableval=$enable_omitfp; omitfp=$enableval
3657 else
3658 omitfp=no
3661 # Check whether --enable-bounded was given.
3662 if test "${enable_bounded+set}" = set; then
3663 enableval=$enable_bounded; bounded=$enableval
3664 else
3665 bounded=no
3668 # Check whether --enable-versioning was given.
3669 if test "${enable_versioning+set}" = set; then
3670 enableval=$enable_versioning; enable_versioning=$enableval
3671 else
3672 enable_versioning=yes
3676 # Check whether --enable-oldest-abi was given.
3677 if test "${enable_oldest_abi+set}" = set; then
3678 enableval=$enable_oldest_abi; oldest_abi=$enableval
3679 else
3680 oldest_abi=no
3683 if test "$oldest_abi" = yes || test "$oldest_abi" = no; then
3684 oldest_abi=default
3685 else
3686 cat >>confdefs.h <<_ACEOF
3687 #define GLIBC_OLDEST_ABI "$oldest_abi"
3688 _ACEOF
3693 # Check whether --enable-stackguard-randomization was given.
3694 if test "${enable_stackguard_randomization+set}" = set; then
3695 enableval=$enable_stackguard_randomization; enable_stackguard_randomize=$enableval
3696 else
3697 enable_stackguard_randomize=no
3700 if test "$enable_stackguard_randomize" = yes; then
3701 cat >>confdefs.h <<\_ACEOF
3702 #define ENABLE_STACKGUARD_RANDOMIZE 1
3703 _ACEOF
3707 # Check whether --enable-add-ons was given.
3708 if test "${enable_add_ons+set}" = set; then
3709 enableval=$enable_add_ons;
3710 else
3711 enable_add_ons=yes
3716 # Check whether --with-tls was given.
3717 if test "${with_tls+set}" = set; then
3718 withval=$with_tls; usetls=$withval
3719 else
3720 usetls=yes
3725 # Check whether --with-__thread was given.
3726 if test "${with___thread+set}" = set; then
3727 withval=$with___thread; use__thread=$withval
3728 else
3729 use__thread=yes
3733 # Check whether --enable-hidden-plt was given.
3734 if test "${enable_hidden_plt+set}" = set; then
3735 enableval=$enable_hidden_plt; hidden=$enableval
3736 else
3737 hidden=yes
3740 if test "x$hidden" = xno; then
3741 cat >>confdefs.h <<\_ACEOF
3742 #define NO_HIDDEN 1
3743 _ACEOF
3747 # Check whether --enable-bind-now was given.
3748 if test "${enable_bind_now+set}" = set; then
3749 enableval=$enable_bind_now; bindnow=$enableval
3750 else
3751 bindnow=no
3756 # Check whether --enable-static-nss was given.
3757 if test "${enable_static_nss+set}" = set; then
3758 enableval=$enable_static_nss; static_nss=$enableval
3759 else
3760 static_nss=no
3763 if test x"$static_nss" = xyes || test x"$shared" = xno; then
3764 static_nss=yes
3765 cat >>confdefs.h <<\_ACEOF
3766 #define DO_STATIC_NSS 1
3767 _ACEOF
3771 # Check whether --enable-force-install was given.
3772 if test "${enable_force_install+set}" = set; then
3773 enableval=$enable_force_install; force_install=$enableval
3774 else
3775 force_install=yes
3780 # Check whether --enable-kernel was given.
3781 if test "${enable_kernel+set}" = set; then
3782 enableval=$enable_kernel; minimum_kernel=$enableval
3785 if test "$minimum_kernel" = yes || test "$minimum_kernel" = no; then
3786 # Better nothing than this.
3787 minimum_kernel=""
3788 else
3789 if test "$minimum_kernel" = current; then
3790 minimum_kernel=`uname -r 2>/dev/null` || minimum_kernel=
3794 # Check whether --enable-all-warnings was given.
3795 if test "${enable_all_warnings+set}" = set; then
3796 enableval=$enable_all_warnings; all_warnings=$enableval
3801 # Check whether --enable-multi-arch was given.
3802 if test "${enable_multi_arch+set}" = set; then
3803 enableval=$enable_multi_arch; multi_arch=$enableval
3804 else
3805 multi_arch=default
3808 if test x"$multi_arch" != xno; then
3809 multi_arch_d=/multiarch
3812 # Check whether --enable-experimental-malloc was given.
3813 if test "${enable_experimental_malloc+set}" = set; then
3814 enableval=$enable_experimental_malloc; experimental_malloc=$enableval
3819 # Check whether --enable-nss-crypt was given.
3820 if test "${enable_nss_crypt+set}" = set; then
3821 enableval=$enable_nss_crypt; nss_crypt=$enableval
3822 else
3823 nss_crypt=no
3826 if test x$nss_crypt = xyes; then
3827 nss_includes=-I$(nss-config --includedir 2>/dev/null)
3828 if test $? -ne 0; then
3829 { { $as_echo "$as_me:$LINENO: error: cannot find include directory with nss-config" >&5
3830 $as_echo "$as_me: error: cannot find include directory with nss-config" >&2;}
3831 { (exit 1); exit 1; }; }
3833 old_CFLAGS="$CFLAGS"
3834 CFLAGS="$CFLAGS $nss_includes"
3836 cat >conftest.$ac_ext <<_ACEOF
3837 typedef int PRBool;
3838 #include <hasht.h>
3839 #include <nsslowhash.h>
3840 void f (void) { NSSLOW_Init (); }
3841 _ACEOF
3842 rm -f conftest.$ac_objext
3843 if { (ac_try="$ac_compile"
3844 case "(($ac_try" in
3845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3846 *) ac_try_echo=$ac_try;;
3847 esac
3848 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3849 $as_echo "$ac_try_echo") >&5
3850 (eval "$ac_compile") 2>conftest.er1
3851 ac_status=$?
3852 grep -v '^ *+' conftest.er1 >conftest.err
3853 rm -f conftest.er1
3854 cat conftest.err >&5
3855 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3856 (exit $ac_status); } && {
3857 test -z "$ac_c_werror_flag" ||
3858 test ! -s conftest.err
3859 } && test -s conftest.$ac_objext; then
3860 libc_cv_nss_crypt=yes
3861 else
3862 $as_echo "$as_me: failed program was:" >&5
3863 sed 's/^/| /' conftest.$ac_ext >&5
3865 { { $as_echo "$as_me:$LINENO: error:
3866 cannot find NSS headers with lowlevel hash function interfaces" >&5
3867 $as_echo "$as_me: error:
3868 cannot find NSS headers with lowlevel hash function interfaces" >&2;}
3869 { (exit 1); exit 1; }; }
3872 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3873 old_LIBS="$LIBS"
3874 LIBS="$LIBS -lfreebl3"
3875 cat >conftest.$ac_ext <<_ACEOF
3876 /* confdefs.h. */
3877 _ACEOF
3878 cat confdefs.h >>conftest.$ac_ext
3879 cat >>conftest.$ac_ext <<_ACEOF
3880 /* end confdefs.h. */
3881 typedef int PRBool;
3882 #include <hasht.h>
3883 #include <nsslowhash.h>
3885 main ()
3887 NSSLOW_Init();
3889 return 0;
3891 _ACEOF
3892 rm -f conftest.$ac_objext conftest$ac_exeext
3893 if { (ac_try="$ac_link"
3894 case "(($ac_try" in
3895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3896 *) ac_try_echo=$ac_try;;
3897 esac
3898 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3899 $as_echo "$ac_try_echo") >&5
3900 (eval "$ac_link") 2>conftest.er1
3901 ac_status=$?
3902 grep -v '^ *+' conftest.er1 >conftest.err
3903 rm -f conftest.er1
3904 cat conftest.err >&5
3905 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3906 (exit $ac_status); } && {
3907 test -z "$ac_c_werror_flag" ||
3908 test ! -s conftest.err
3909 } && test -s conftest$ac_exeext && {
3910 test "$cross_compiling" = yes ||
3911 $as_test_x conftest$ac_exeext
3912 }; then
3913 libc_cv_nss_crypt=yes
3914 else
3915 $as_echo "$as_me: failed program was:" >&5
3916 sed 's/^/| /' conftest.$ac_ext >&5
3918 { { $as_echo "$as_me:$LINENO: error:
3919 cannot link program using lowlevel NSS hash functions" >&5
3920 $as_echo "$as_me: error:
3921 cannot link program using lowlevel NSS hash functions" >&2;}
3922 { (exit 1); exit 1; }; }
3925 rm -rf conftest.dSYM
3926 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3927 conftest$ac_exeext conftest.$ac_ext
3928 CFLAGS="$old_CFLAGS"
3929 LIBS="$old_LIBS"
3930 else
3931 libc_cv_nss_crypt=no
3935 # The way shlib-versions is used to generate soversions.mk uses a
3936 # fairly simplistic model for name recognition that can't distinguish
3937 # i486-pc-linux-gnu fully from i486-pc-gnu. So we mutate a $host_os
3938 # of `gnu*' here to be `gnu-gnu*' just so that shlib-versions can
3939 # tell. This doesn't get used much beyond that, so it's fairly safe.
3940 case "$host_os" in
3941 linux*)
3943 gnu*)
3944 host_os=`echo $host_os | sed -e 's/gnu/gnu-gnu/'`
3946 esac
3948 # We keep the original values in `$config_*' and never modify them, so we
3949 # can write them unchanged into config.make. Everything else uses
3950 # $machine, $vendor, and $os, and changes them whenever convenient.
3951 config_machine=$host_cpu config_vendor=$host_vendor config_os=$host_os
3953 # Don't allow vendor == "unknown"
3954 test "$config_vendor" = unknown && config_vendor=
3955 config_os="`echo $config_os | sed 's/^unknown-//'`"
3957 # Some configurations imply other options.
3958 case "$host_os" in
3959 # i586-linuxaout is mangled into i586-pc-linux-gnuaout
3960 linux*ecoff* | linux*aout* | gnu*aout* | gnu*ecoff*)
3962 gnu* | linux* | freebsd* | netbsd* | sysv4* | solaris2* | irix6*)
3963 # These systems (almost) always use the ELF format.
3964 elf=yes
3966 aix*)
3967 # These systems are always xcoff
3968 xcoff=yes
3969 elf=no
3971 esac
3973 # The configure fragment of an add-on port can modify these to supplement
3974 # or override the table in the case statement below. No fragment should
3975 # ever change the config_* variables, however.
3976 machine=$config_machine
3977 vendor=$config_vendor
3978 os=$config_os
3979 base_os=''
3981 # config.guess on some IBM machines says `rs6000' instead of `powerpc'.
3982 # Unify this here.
3983 if test "$machine" = rs6000; then
3984 machine="powerpc"
3987 # Braindead PowerPC box with absolutely no FPU.
3988 case "$machine-$host_os" in
3989 powerpc*-*soft)
3990 with_fp=no
3992 esac
3994 submachine=
3996 # Check whether --with-cpu was given.
3997 if test "${with_cpu+set}" = set; then
3998 withval=$with_cpu; case "$withval" in
3999 yes|'') { { $as_echo "$as_me:$LINENO: error: --with-cpu requires an argument" >&5
4000 $as_echo "$as_me: error: --with-cpu requires an argument" >&2;}
4001 { (exit 1); exit 1; }; } ;;
4002 no) ;;
4003 *) submachine="$withval" ;;
4004 esac
4009 # An add-on can set this when it wants to disable the sanity check below.
4010 libc_config_ok=no
4012 subdirs="$subdirs "
4015 case "$enable_add_ons" in
4016 ''|no) add_ons= ;;
4017 yes|'*')
4018 add_ons=`cd $srcdir && ls -d 2> /dev/null */configure */sysdeps |
4019 sed 's@/[^/]*$@@' | sort | uniq`
4020 add_ons_automatic=yes
4022 *) add_ons=`echo "$enable_add_ons" | sed 's/,/ /g'`
4023 add_ons_automatic=no ;;
4024 esac
4026 configured_add_ons=
4027 add_ons_sfx=
4028 add_ons_pfx=
4029 if test x"$add_ons" != x; then
4030 for f in $add_ons; do
4031 # Some sanity checks
4032 case "$f" in
4033 crypt)
4034 { { $as_echo "$as_me:$LINENO: error:
4035 *** It seems that you're using an old \`crypt' add-on. crypt is now
4036 *** part of glibc and using the old add-on will not work with this
4037 *** release. Start again with fresh sources and without the old
4038 *** \`crypt' add-on." >&5
4039 $as_echo "$as_me: error:
4040 *** It seems that you're using an old \`crypt' add-on. crypt is now
4041 *** part of glibc and using the old add-on will not work with this
4042 *** release. Start again with fresh sources and without the old
4043 *** \`crypt' add-on." >&2;}
4044 { (exit 1); exit 1; }; }
4046 localedata)
4047 { { $as_echo "$as_me:$LINENO: error:
4048 *** It seems that you're using an old \`localedata' add-on. localedata
4049 *** is now part of glibc and using the old add-on will not work with
4050 *** this release. Start again with fresh sources and without the old
4051 *** \`localedata' add-on." >&5
4052 $as_echo "$as_me: error:
4053 *** It seems that you're using an old \`localedata' add-on. localedata
4054 *** is now part of glibc and using the old add-on will not work with
4055 *** this release. Start again with fresh sources and without the old
4056 *** \`localedata' add-on." >&2;}
4057 { (exit 1); exit 1; }; }
4059 esac
4060 done
4062 # Now source each add-on's configure fragment.
4063 # The fragments can use $srcdir/$libc_add_on to find themselves,
4064 # and test $add_ons_automatic to see if they were explicitly requested.
4065 # A fragment can clear (or even change) $libc_add_on to affect
4066 # whether it goes into the list to be actually used in the build.
4067 use_add_ons=
4068 for libc_add_on in $add_ons; do
4069 # Test whether such a directory really exists.
4070 # It can be absolute, or relative to $srcdir, or relative to the build dir.
4071 case "$libc_add_on" in
4073 libc_add_on_srcdir=$libc_add_on
4076 test -d "$srcdir/$libc_add_on" || {
4077 if test -d "$libc_add_on"; then
4078 libc_add_on="`pwd`/$libc_add_on"
4079 else
4080 { { $as_echo "$as_me:$LINENO: error: add-on directory \"$libc_add_on\" does not exist" >&5
4081 $as_echo "$as_me: error: add-on directory \"$libc_add_on\" does not exist" >&2;}
4082 { (exit 1); exit 1; }; }
4085 libc_add_on_srcdir=$srcdir/$libc_add_on
4087 esac
4089 libc_add_on_frag=$libc_add_on_srcdir/configure
4090 libc_add_on_canonical=
4091 libc_add_on_config_subdirs=
4092 if test -r "$libc_add_on_frag"; then
4093 { $as_echo "$as_me:$LINENO: running configure fragment for add-on $libc_add_on" >&5
4094 $as_echo "$as_me: running configure fragment for add-on $libc_add_on" >&6;}
4095 libc_add_on_canonical=unknown
4096 libc_add_on_subdirs=
4097 . "$libc_add_on_frag"
4098 test -z "$libc_add_on" || {
4099 configured_add_ons="$configured_add_ons $libc_add_on"
4100 if test "x$libc_add_on_canonical" = xunknown; then
4101 { { $as_echo "$as_me:$LINENO: error: fragment must set \$libc_add_on_canonical" >&5
4102 $as_echo "$as_me: error: fragment must set \$libc_add_on_canonical" >&2;}
4103 { (exit 1); exit 1; }; }
4105 for d in $libc_add_on_subdirs; do
4106 case "$libc_add_on" in
4107 /*) subdir_srcdir="$libc_add_on" ;;
4108 *) subdir_srcdir="\$(..)$libc_add_on" ;;
4109 esac
4110 case "$d" in
4112 d="${libc_add_on_canonical:-$libc_add_on}"
4115 subdir_srcdir="$d"
4118 subdir_srcdir="$subdir_srcdir/$d"
4120 esac
4121 d=`echo "$d" | sed 's@/*$@@;s@^.*/@@'`
4122 add_on_subdirs="$add_on_subdirs $d"
4123 test "$subdir_srcdir" = "\$(..)$d" || config_vars="$config_vars
4124 $d-srcdir = $subdir_srcdir"
4125 done
4126 for d in $libc_add_on_config_subdirs; do
4127 case "$d" in
4128 /*) { { $as_echo "$as_me:$LINENO: error: fragment uses absolute path in \$libc_add_on_config_subdirs" >&5
4129 $as_echo "$as_me: error: fragment uses absolute path in \$libc_add_on_config_subdirs" >&2;}
4130 { (exit 1); exit 1; }; } ;;
4131 esac
4132 if test ! -d "$libc_add_on_srcdir/$d"; then
4133 { { $as_echo "$as_me:$LINENO: error: fragment wants to configure missing directory $d" >&5
4134 $as_echo "$as_me: error: fragment wants to configure missing directory $d" >&2;}
4135 { (exit 1); exit 1; }; }
4137 case "$libc_add_on" in
4138 /*) { { $as_echo "$as_me:$LINENO: error: relative path required for add-on using \$libc_add_on_config_subdirs" >&5
4139 $as_echo "$as_me: error: relative path required for add-on using \$libc_add_on_config_subdirs" >&2;}
4140 { (exit 1); exit 1; }; } ;;
4141 esac
4142 subdirs="$subdirs $libc_add_on/$d"
4143 done
4146 if test -n "$libc_add_on"; then
4147 if frags=`ls -d $libc_add_on_srcdir/sysdeps/*/preconfigure 2> /dev/null`
4148 then
4149 { $as_echo "$as_me:$LINENO: checking add-on $libc_add_on for preconfigure fragments" >&5
4150 $as_echo_n "checking add-on $libc_add_on for preconfigure fragments... " >&6; }
4151 for frag in $frags; do
4152 name=`echo "$frag" | sed 's@/[^/]*$@@;s@^.*/@@'`
4153 echo $ECHO_N "$name $ECHO_C" >&6
4154 . "$frag"
4155 done
4156 { $as_echo "$as_me:$LINENO: result: " >&5
4157 $as_echo "" >&6; }
4159 use_add_ons="$use_add_ons $libc_add_on"
4160 add_ons_pfx="$add_ons_pfx $libc_add_on/"
4161 test -z "$libc_add_on_canonical" ||
4162 add_ons_sfx="$add_ons_sfx /$libc_add_on_canonical"
4164 done
4165 # Use echo to strip excess whitespace.
4166 add_ons="`echo $use_add_ons`"
4173 ### I put this here to prevent those annoying emails from people who cannot
4174 ### read and try to compile glibc on unsupported platforms. --drepper
4176 ### By using the undocumented --enable-hacker-mode option for configure
4177 ### one can skip this test to make the configuration not fail for unsupported
4178 ### platforms.
4180 if test -z "$enable_hacker_mode" && test x"$libc_config_ok" != xyes; then
4181 case "$machine-$host_os" in
4182 *-linux* | *-gnu* | arm*-none* | powerpc-aix4.3.*)
4185 echo "*** The GNU C library is currently not available for this platform."
4186 echo "*** So far nobody cared to port it and if there is no volunteer it"
4187 echo "*** might never happen. So, if you have interest to see glibc on"
4188 echo "*** this platform visit"
4189 echo "*** http://www.gnu.org/software/libc/porting.html"
4190 echo "*** and join the group of porters"
4191 exit 1
4193 esac
4196 # Expand the configuration machine name into a subdirectory by architecture
4197 # type and particular chip. If an add-on configure fragment already set
4198 # base_machine, we don't change it.
4199 test -n "$base_machine" || case "$machine" in
4200 a29k | am29000) base_machine=a29k machine=a29k ;;
4201 c3[012]) base_machine=cx0 machine=cx0/c30 ;;
4202 c4[04]) base_machine=cx0 machine=cx0/c40 ;;
4203 i[34567]86) base_machine=i386 machine=i386/$machine ;;
4204 ia64) base_machine=ia64 machine=ia64 ;;
4205 m88???) base_machine=m88k machine=m88k/$machine ;;
4206 m88k) base_machine=m88k machine=m88k/m88100 ;;
4207 powerpc) base_machine=powerpc machine=powerpc/powerpc32 ;;
4208 powerpc64) base_machine=powerpc machine=powerpc/powerpc64 ;;
4209 s390) base_machine=s390 machine=s390/s390-32 ;;
4210 s390x) base_machine=s390 machine=s390/s390-64 ;;
4211 sh3*) base_machine=sh machine=sh/sh3 ;;
4212 sh4*) base_machine=sh machine=sh/sh4 ;;
4213 sparc | sparcv[67])
4214 base_machine=sparc machine=sparc/sparc32 ;;
4215 sparcv8 | supersparc | hypersparc)
4216 base_machine=sparc machine=sparc/sparc32/sparcv8 ;;
4217 sparcv8plus | sparcv8plusa | sparcv9)
4218 base_machine=sparc machine=sparc/sparc32/sparcv9 ;;
4219 sparcv8plusb | sparcv9b)
4220 base_machine=sparc machine=sparc/sparc32/sparcv9/sparcv9b ;;
4221 sparcv9v)
4222 base_machine=sparc machine=sparc/sparc32/sparcv9/sparcv9v ;;
4223 sparcv9v2)
4224 base_machine=sparc machine=sparc/sparc32/sparcv9/sparcv9v2 ;;
4225 sparc64)
4226 base_machine=sparc machine=sparc/sparc64 ;;
4227 sparc64b)
4228 base_machine=sparc machine=sparc/sparc64/sparcv9b ;;
4229 sparc64v)
4230 base_machine=sparc machine=sparc/sparc64/sparcv9v ;;
4231 sparc64v2)
4232 base_machine=sparc machine=sparc/sparc64/sparcv9v2 ;;
4233 *) base_machine=$machine ;;
4234 esac
4237 if test "$base_machine" = "i386"; then
4238 cat >>confdefs.h <<\_ACEOF
4239 #define USE_REGPARMS 1
4240 _ACEOF
4244 # Compute the list of sysdep directories for this configuration.
4245 # This can take a while to compute.
4246 sysdep_dir=$srcdir/sysdeps
4247 { $as_echo "$as_me:$LINENO: checking sysdep dirs" >&5
4248 $as_echo_n "checking sysdep dirs... " >&6; }
4249 # Make sco3.2v4 become sco3.2.4 and sunos4.1.1_U1 become sunos4.1.1.U1.
4250 os="`echo $os | sed 's/\([0-9A-Z]\)[v_]\([0-9A-Z]\)/\1.\2/g'`"
4252 test "x$base_os" != x || case "$os" in
4253 gnu*)
4254 base_os=mach/hurd ;;
4255 netbsd* | 386bsd* | freebsd* | bsdi*)
4256 base_os=unix/bsd/bsd4.4 ;;
4257 osf* | sunos* | ultrix* | newsos* | dynix* | *bsd*)
4258 base_os=unix/bsd ;;
4259 sysv* | isc* | esix* | sco* | minix* | irix4* | linux*)
4260 base_os=unix/sysv ;;
4261 irix6*)
4262 base_os=unix/sysv/irix6/$os ;;
4263 solaris[2-9]*)
4264 base_os=unix/sysv/sysv4 ;;
4265 hpux*)
4266 base_os=unix/sysv/hpux/$os ;;
4267 aix4.3*)
4268 base_os=unix/sysv/aix/aix4.3 ;;
4269 none)
4270 base_os=standalone ;;
4271 esac
4273 # For sunos4.1.1, try sunos4.1.1, then sunos4.1, then sunos4, then sunos.
4274 tail=$os
4275 ostry=$os
4276 while o=`echo $tail | sed 's/\.[^.]*$//'`; test $o != $tail; do
4277 ostry="$ostry /$o"
4278 tail=$o
4279 done
4280 o=`echo $tail | sed 's/[0-9]*$//'`
4281 if test $o != $tail; then
4282 ostry="$ostry /$o"
4284 # For linux-gnu, try linux-gnu, then linux.
4285 o=`echo $tail | sed 's/-.*$//'`
4286 if test $o != $tail; then
4287 ostry="$ostry /$o"
4290 # For unix/sysv/sysv4, try unix/sysv/sysv4, then unix/sysv, then unix.
4291 base=
4292 tail=$base_os
4293 while b=`echo $tail | sed 's@^\(.*\)/\([^/]*\)$@& \1@'`; test -n "$b"; do
4294 set $b
4295 base="$base /$1"
4296 tail="$2"
4297 done
4299 # For sparc/sparc32, try sparc/sparc32 and then sparc.
4300 mach=
4301 tail=$machine${submachine:+/$submachine}
4302 while m=`echo $tail | sed 's@^\(.*\)/\([^/]*\)$@& \1@'`; test -n "$m"; do
4303 set $m
4304 # Prepend the machine's FPU directory unless --without-fp.
4305 if test "$with_fp" = yes; then
4306 mach="$mach /$1/fpu"
4307 else
4308 mach="$mach /$1/nofpu"
4310 mach="$mach /$1"
4311 tail="$2"
4312 done
4315 # Find what sysdep directories exist.
4316 sysnames_add_ons=
4317 sysnames=
4318 for b in $base ''; do
4319 for m0 in $mach ''; do
4320 for v in /$vendor ''; do
4321 test "$v" = / && continue
4322 for o in /$ostry ''; do
4323 test "$o" = / && continue
4324 for m in $multi_arch_d $mach ''; do
4325 for d in $add_ons_pfx ''; do
4326 for a in $add_ons_sfx ''; do
4327 if test -n "$m0$m0sub$b$v$o$m$msub"; then
4328 try_srcdir="${srcdir}/"
4329 case "$d" in
4330 /*) try_srcdir= ;;
4331 esac
4332 try="${d}sysdeps$m0$m0sub$b$v$o$m$msub$a"
4333 test -n "$enable_debug_configure" &&
4334 echo "$0 DEBUG: try $try" >&2
4335 if test -d "$try_srcdir$try"; then
4336 sysnames="$sysnames $try"
4337 { test -n "$o" || test -n "$b"; } && os_used=t
4338 { test -n "$m" || test -n "$m0"; } && machine_used=t
4339 case x${m0:-$m} in
4340 x*/$submachine) submachine_used=t ;;
4341 esac
4342 if test -n "$d"; then
4343 case "$sysnames_add_ons" in
4344 *" $d "*) ;;
4345 *|'') sysnames_add_ons="$sysnames_add_ons $d" ;;
4346 esac
4350 done
4351 done
4352 done
4353 done
4354 done
4355 done
4356 done
4358 # If the assembler supports gnu_indirect_function symbol type and the
4359 # architecture supports multi-arch, we enable multi-arch by default.
4360 if test "$multi_arch" = default; then
4361 { $as_echo "$as_me:$LINENO: checking for assembler gnu_indirect_function symbol type support" >&5
4362 $as_echo_n "checking for assembler gnu_indirect_function symbol type support... " >&6; }
4363 if test "${libc_cv_asm_gnu_indirect_function+set}" = set; then
4364 $as_echo_n "(cached) " >&6
4365 else
4366 cat > conftest.s <<EOF
4367 .type foo,%gnu_indirect_function
4369 if ${CC-cc} -c $ASFLAGS conftest.s 1>&5 2>&5;
4370 then
4371 libc_cv_asm_gnu_indirect_function=yes
4372 else
4373 libc_cv_asm_gnu_indirect_function=no
4375 rm -f conftest*
4377 { $as_echo "$as_me:$LINENO: result: $libc_cv_asm_gnu_indirect_function" >&5
4378 $as_echo "$libc_cv_asm_gnu_indirect_function" >&6; }
4379 multi_arch=no
4380 if test "$libc_cv_asm_gnu_indirect_function" = yes; then
4381 case $sysnames_add_ons$sysnames in
4382 *"$multi_arch_d"*)
4383 multi_arch=yes
4385 esac
4388 if test x"$multi_arch" = xyes; then
4389 cat >>confdefs.h <<\_ACEOF
4390 #define USE_MULTIARCH 1
4391 _ACEOF
4396 if test -z "$os_used" && test "$os" != none; then
4397 { { $as_echo "$as_me:$LINENO: error: Operating system $os is not supported." >&5
4398 $as_echo "$as_me: error: Operating system $os is not supported." >&2;}
4399 { (exit 1); exit 1; }; }
4401 if test -z "$machine_used" && test "$machine" != none; then
4402 { { $as_echo "$as_me:$LINENO: error: The $machine is not supported." >&5
4403 $as_echo "$as_me: error: The $machine is not supported." >&2;}
4404 { (exit 1); exit 1; }; }
4406 if test -z "$submachine_used" && test -n "$submachine"; then
4407 { { $as_echo "$as_me:$LINENO: error: The $submachine subspecies of $host_cpu is not supported." >&5
4408 $as_echo "$as_me: error: The $submachine subspecies of $host_cpu is not supported." >&2;}
4409 { (exit 1); exit 1; }; }
4413 # We have now validated the configuration.
4416 # If using ELF, look for an `elf' subdirectory of each machine directory.
4417 # We prepend these rather than inserting them whereever the machine appears
4418 # because things specified by the machine's ELF ABI should override
4419 # OS-specific things, and should always be the same for any OS on the
4420 # machine (otherwise what's the point of an ABI?).
4421 if test "$elf" = yes; then
4422 elf_dirs=
4423 for d in $add_ons_pfx ''; do
4424 for m in $mach; do
4425 if test -d $srcdir/${d}sysdeps$m/elf; then
4426 elf_dirs="$elf_dirs ${d}sysdeps$m/elf"
4428 done
4429 done
4430 sysnames="`echo $elf_dirs | sed -e 's,//,/,g'` $sysnames"
4434 # Expand the list of system names into a full list of directories
4435 # from each element's parent name and Implies file (if present).
4436 set $sysnames
4437 names=
4438 while test $# -gt 0; do
4439 name=$1
4440 shift
4442 case " $names " in *" $name "*)
4443 # Already in the list.
4444 continue
4445 esac
4447 # Report each name as we discover it, so there is no long pause in output.
4448 echo $ECHO_N "$name $ECHO_C" >&6
4450 name_base=`echo $name | sed -e 's@\(.*sysdeps\)/.*@\1@'`
4452 case $name in
4453 /*) xsrcdir= ;;
4454 *) xsrcdir=$srcdir/ ;;
4455 esac
4456 test -n "$enable_debug_configure" &&
4457 echo "DEBUG: name/Implies $xsrcdir$name/Implies" >&2
4459 if test -f $xsrcdir$name/Implies; then
4460 # Collect more names from the `Implies' file (removing comments).
4461 implied_candidate="`sed 's/#.*$//' < $xsrcdir$name/Implies`"
4462 implied=
4463 for x in $implied_candidate; do
4464 found=no
4465 if test -d $xsrcdir$name_base/$x; then
4466 implied="$implied $name_base/$x";
4467 found=yes
4469 for d in $add_ons_pfx ''; do
4470 try="${d}sysdeps/$x"
4471 case $d in
4472 /*) try_srcdir= ;;
4473 *) try_srcdir=$srcdir/ ;;
4474 esac
4475 test -n "$enable_debug_configure" &&
4476 echo "DEBUG: $name implied $x try($d) {$try_srcdir}$try" >&2
4477 if test $try != $xsrcdir$name_base/$x && test -d $try_srcdir$try;
4478 then
4479 implied="$implied $try"
4480 found=yes
4481 case "$sysnames_add_ons" in
4482 *" $d "*) ;;
4483 *|'') sysnames_add_ons="$sysnames_add_ons $d" ;;
4484 esac
4486 done
4487 if test $found = no; then
4488 { $as_echo "$as_me:$LINENO: WARNING: $name/Implies specifies nonexistent $x" >&5
4489 $as_echo "$as_me: WARNING: $name/Implies specifies nonexistent $x" >&2;}
4491 done
4492 else
4493 implied=
4496 # Add NAME to the list of names.
4497 names="$names $name"
4499 # Find the parent of NAME, using the empty string if it has none.
4500 parent="`echo $name | sed -n -e 's=/[^/]*$==' -e '/sysdeps$/q' -e p`"
4502 # Add the names implied by NAME, and NAME's parent (if it has one), to
4503 # the list of names to be processed (the argument list). We prepend the
4504 # implied names to the list and append the parent. We want implied
4505 # directories to come before further directories inferred from the
4506 # configuration components; this ensures that for sysv4, unix/common
4507 # (implied by unix/sysv/sysv4) comes before unix/sysv (in ostry (here $*)
4508 # after sysv4).
4509 sysnames="`echo $implied $* $parent`"
4510 test -n "$sysnames" && set $sysnames
4511 done
4513 # Add the default directories.
4514 default_sysnames=sysdeps/generic
4515 if test "$elf" = yes; then
4516 default_sysnames="sysdeps/generic/elf $default_sysnames"
4518 sysnames="$names $default_sysnames"
4520 # The other names were emitted during the scan.
4521 { $as_echo "$as_me:$LINENO: result: $default_sysnames" >&5
4522 $as_echo "$default_sysnames" >&6; }
4524 # Collect the list of add-ons that supply partial sysdeps trees.
4525 sysdeps_add_ons=
4526 for add_on in $add_ons; do
4527 case "$add_on" in
4528 /*) xsrcdir= ;;
4529 *) xsrcdir="$srcdir/" ;;
4530 esac
4532 test -d "$xsrcdir$add_on/sysdeps" || {
4533 case "$configured_add_ons " in
4534 *" $add_on "*) ;;
4535 *|'')
4536 { { $as_echo "$as_me:$LINENO: error: add-on $add_on has no configure fragment or sysdeps tree" >&5
4537 $as_echo "$as_me: error: add-on $add_on has no configure fragment or sysdeps tree" >&2;}
4538 { (exit 1); exit 1; }; }
4540 esac
4541 continue
4544 sysdeps_add_ons="$sysdeps_add_ons $add_on"
4545 case "$sysnames_add_ons" in
4546 *" $add_on/ "*) ;;
4547 *|'')
4548 { $as_echo "$as_me:$LINENO: WARNING: add-on $add_on contributed no sysdeps directories" >&5
4549 $as_echo "$as_me: WARNING: add-on $add_on contributed no sysdeps directories" >&2;}
4550 continue ;;
4551 esac
4553 found=no
4554 for d in $sysnames; do
4555 case "$d" in
4556 $add_on/sysdeps/*) ;;
4557 *) continue ;;
4558 esac
4559 (cd "$xsrcdir$d" && for f in *[!~]; do
4560 case "$f" in
4561 sys|bits)
4562 for ff in $f/*.h; do
4563 test -d "$ff" || { test -e "$ff" && exit 88; }
4564 done
4567 test -d "$f" || { test -e "$f" && exit 88; }
4569 esac
4570 done)
4571 if test $? -eq 88; then
4572 found=yes
4573 break
4575 done
4576 if test $found = no; then
4577 { $as_echo "$as_me:$LINENO: WARNING: add-on $add_on contributed no useful sysdeps directories" >&5
4578 $as_echo "$as_me: WARNING: add-on $add_on contributed no useful sysdeps directories" >&2;}
4580 done
4584 ### Locate tools.
4586 # Find a good install program. We prefer a C program (faster),
4587 # so one script is as good as another. But avoid the broken or
4588 # incompatible versions:
4589 # SysV /etc/install, /usr/sbin/install
4590 # SunOS /usr/etc/install
4591 # IRIX /sbin/install
4592 # AIX /bin/install
4593 # AmigaOS /C/install, which installs bootblocks on floppy discs
4594 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4595 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4596 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4597 # OS/2's system install, which has a completely different semantic
4598 # ./install, which can be erroneously created by make from ./install.sh.
4599 # Reject install programs that cannot install multiple files.
4600 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4601 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4602 if test -z "$INSTALL"; then
4603 if test "${ac_cv_path_install+set}" = set; then
4604 $as_echo_n "(cached) " >&6
4605 else
4606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4607 for as_dir in $PATH
4609 IFS=$as_save_IFS
4610 test -z "$as_dir" && as_dir=.
4611 # Account for people who put trailing slashes in PATH elements.
4612 case $as_dir/ in
4613 ./ | .// | /cC/* | \
4614 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4615 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4616 /usr/ucb/* ) ;;
4618 # OSF1 and SCO ODT 3.0 have their own names for install.
4619 # Don't use installbsd from OSF since it installs stuff as root
4620 # by default.
4621 for ac_prog in ginstall scoinst install; do
4622 for ac_exec_ext in '' $ac_executable_extensions; do
4623 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4624 if test $ac_prog = install &&
4625 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4626 # AIX install. It has an incompatible calling convention.
4628 elif test $ac_prog = install &&
4629 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4630 # program-specific install script used by HP pwplus--don't use.
4632 else
4633 rm -rf conftest.one conftest.two conftest.dir
4634 echo one > conftest.one
4635 echo two > conftest.two
4636 mkdir conftest.dir
4637 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4638 test -s conftest.one && test -s conftest.two &&
4639 test -s conftest.dir/conftest.one &&
4640 test -s conftest.dir/conftest.two
4641 then
4642 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4643 break 3
4647 done
4648 done
4650 esac
4652 done
4653 IFS=$as_save_IFS
4655 rm -rf conftest.one conftest.two conftest.dir
4658 if test "${ac_cv_path_install+set}" = set; then
4659 INSTALL=$ac_cv_path_install
4660 else
4661 # As a last resort, use the slow shell script. Don't cache a
4662 # value for INSTALL within a source directory, because that will
4663 # break other packages using the cache if that directory is
4664 # removed, or if the value is a relative name.
4665 INSTALL=$ac_install_sh
4668 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
4669 $as_echo "$INSTALL" >&6; }
4671 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4672 # It thinks the first close brace ends the variable substitution.
4673 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4675 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4677 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4679 if test "$INSTALL" = "${srcdir}/scripts/install-sh -c"; then
4680 # The makefiles need to use a different form to find it in $srcdir.
4681 INSTALL='\$(..)./scripts/install-sh -c'
4683 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
4684 $as_echo_n "checking whether ln -s works... " >&6; }
4685 LN_S=$as_ln_s
4686 if test "$LN_S" = "ln -s"; then
4687 { $as_echo "$as_me:$LINENO: result: yes" >&5
4688 $as_echo "yes" >&6; }
4689 else
4690 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4691 $as_echo "no, using $LN_S" >&6; }
4695 # Was a --with-binutils option given?
4696 if test -n "$path_binutils"; then
4697 # Make absolute; ensure a single trailing slash.
4698 path_binutils=`(cd $path_binutils; pwd) | sed 's%/*$%/%'`
4699 CC="$CC -B$path_binutils"
4701 AS=`$CC -print-prog-name=as`
4702 LD=`$CC -print-prog-name=ld`
4703 AR=`$CC -print-prog-name=ar`
4705 OBJDUMP=`$CC -print-prog-name=objdump`
4708 # ranlib has to be treated a bit differently since it might not exist at all.
4709 ac_ranlib=`$CC -print-prog-name=ranlib`
4710 if test "x$ac_ranlib" = xranlib; then
4711 # This extra check has to happen since gcc simply echos the parameter in
4712 # case it cannot find the value in its own directories.
4713 if test -n "$ac_tool_prefix"; then
4714 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4715 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4716 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4717 $as_echo_n "checking for $ac_word... " >&6; }
4718 if test "${ac_cv_prog_RANLIB+set}" = set; then
4719 $as_echo_n "(cached) " >&6
4720 else
4721 if test -n "$RANLIB"; then
4722 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4723 else
4724 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4725 for as_dir in $PATH
4727 IFS=$as_save_IFS
4728 test -z "$as_dir" && as_dir=.
4729 for ac_exec_ext in '' $ac_executable_extensions; do
4730 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4731 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4732 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4733 break 2
4735 done
4736 done
4737 IFS=$as_save_IFS
4741 RANLIB=$ac_cv_prog_RANLIB
4742 if test -n "$RANLIB"; then
4743 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
4744 $as_echo "$RANLIB" >&6; }
4745 else
4746 { $as_echo "$as_me:$LINENO: result: no" >&5
4747 $as_echo "no" >&6; }
4752 if test -z "$ac_cv_prog_RANLIB"; then
4753 ac_ct_RANLIB=$RANLIB
4754 # Extract the first word of "ranlib", so it can be a program name with args.
4755 set dummy ranlib; ac_word=$2
4756 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4757 $as_echo_n "checking for $ac_word... " >&6; }
4758 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4759 $as_echo_n "(cached) " >&6
4760 else
4761 if test -n "$ac_ct_RANLIB"; then
4762 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4763 else
4764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4765 for as_dir in $PATH
4767 IFS=$as_save_IFS
4768 test -z "$as_dir" && as_dir=.
4769 for ac_exec_ext in '' $ac_executable_extensions; do
4770 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4771 ac_cv_prog_ac_ct_RANLIB="ranlib"
4772 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4773 break 2
4775 done
4776 done
4777 IFS=$as_save_IFS
4781 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4782 if test -n "$ac_ct_RANLIB"; then
4783 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4784 $as_echo "$ac_ct_RANLIB" >&6; }
4785 else
4786 { $as_echo "$as_me:$LINENO: result: no" >&5
4787 $as_echo "no" >&6; }
4790 if test "x$ac_ct_RANLIB" = x; then
4791 RANLIB=":"
4792 else
4793 case $cross_compiling:$ac_tool_warned in
4794 yes:)
4795 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4796 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4797 ac_tool_warned=yes ;;
4798 esac
4799 RANLIB=$ac_ct_RANLIB
4801 else
4802 RANLIB="$ac_cv_prog_RANLIB"
4805 else
4806 RANLIB=$ac_ranlib
4810 # Determine whether we are using GNU binutils.
4811 { $as_echo "$as_me:$LINENO: checking whether $AS is GNU as" >&5
4812 $as_echo_n "checking whether $AS is GNU as... " >&6; }
4813 if test "${libc_cv_prog_as_gnu+set}" = set; then
4814 $as_echo_n "(cached) " >&6
4815 else
4816 # Most GNU programs take a -v and spit out some text including
4817 # the word 'GNU'. Some try to read stdin, so give them /dev/null.
4818 if $AS -o conftest -v </dev/null 2>&1 | grep GNU > /dev/null 2>&1; then
4819 libc_cv_prog_as_gnu=yes
4820 else
4821 libc_cv_prog_as_gnu=no
4823 rm -fr contest*
4825 { $as_echo "$as_me:$LINENO: result: $libc_cv_prog_as_gnu" >&5
4826 $as_echo "$libc_cv_prog_as_gnu" >&6; }
4827 rm -f a.out
4828 gnu_as=$libc_cv_prog_as_gnu
4830 { $as_echo "$as_me:$LINENO: checking whether $LD is GNU ld" >&5
4831 $as_echo_n "checking whether $LD is GNU ld... " >&6; }
4832 if test "${libc_cv_prog_ld_gnu+set}" = set; then
4833 $as_echo_n "(cached) " >&6
4834 else
4835 # Most GNU programs take a -v and spit out some text including
4836 # the word 'GNU'. Some try to read stdin, so give them /dev/null.
4837 if $LD -o conftest -v </dev/null 2>&1 | grep GNU > /dev/null 2>&1; then
4838 libc_cv_prog_ld_gnu=yes
4839 else
4840 libc_cv_prog_ld_gnu=no
4842 rm -fr contest*
4844 { $as_echo "$as_me:$LINENO: result: $libc_cv_prog_ld_gnu" >&5
4845 $as_echo "$libc_cv_prog_ld_gnu" >&6; }
4846 gnu_ld=$libc_cv_prog_ld_gnu
4849 # Accept binutils 2.13 or newer.
4850 for ac_prog in $AS
4852 # Extract the first word of "$ac_prog", so it can be a program name with args.
4853 set dummy $ac_prog; ac_word=$2
4854 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4855 $as_echo_n "checking for $ac_word... " >&6; }
4856 if test "${ac_cv_prog_AS+set}" = set; then
4857 $as_echo_n "(cached) " >&6
4858 else
4859 if test -n "$AS"; then
4860 ac_cv_prog_AS="$AS" # Let the user override the test.
4861 else
4862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4863 for as_dir in $PATH
4865 IFS=$as_save_IFS
4866 test -z "$as_dir" && as_dir=.
4867 for ac_exec_ext in '' $ac_executable_extensions; do
4868 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4869 ac_cv_prog_AS="$ac_prog"
4870 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4871 break 2
4873 done
4874 done
4875 IFS=$as_save_IFS
4879 AS=$ac_cv_prog_AS
4880 if test -n "$AS"; then
4881 { $as_echo "$as_me:$LINENO: result: $AS" >&5
4882 $as_echo "$AS" >&6; }
4883 else
4884 { $as_echo "$as_me:$LINENO: result: no" >&5
4885 $as_echo "no" >&6; }
4889 test -n "$AS" && break
4890 done
4892 if test -z "$AS"; then
4893 ac_verc_fail=yes
4894 else
4895 # Found it, now check the version.
4896 { $as_echo "$as_me:$LINENO: checking version of $AS" >&5
4897 $as_echo_n "checking version of $AS... " >&6; }
4898 ac_prog_version=`$AS --version 2>&1 | sed -n 's/^.*GNU assembler.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
4899 case $ac_prog_version in
4900 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
4901 2.1[3-9]*|2.1[0-9][0-9]*|2.[2-9][0-9]*|[3-9].*|[1-9][0-9]*)
4902 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
4903 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
4905 esac
4906 { $as_echo "$as_me:$LINENO: result: $ac_prog_version" >&5
4907 $as_echo "$ac_prog_version" >&6; }
4909 if test $ac_verc_fail = yes; then
4910 AS=: critic_missing="$critic_missing as"
4913 for ac_prog in $LD
4915 # Extract the first word of "$ac_prog", so it can be a program name with args.
4916 set dummy $ac_prog; ac_word=$2
4917 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4918 $as_echo_n "checking for $ac_word... " >&6; }
4919 if test "${ac_cv_prog_LD+set}" = set; then
4920 $as_echo_n "(cached) " >&6
4921 else
4922 if test -n "$LD"; then
4923 ac_cv_prog_LD="$LD" # Let the user override the test.
4924 else
4925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4926 for as_dir in $PATH
4928 IFS=$as_save_IFS
4929 test -z "$as_dir" && as_dir=.
4930 for ac_exec_ext in '' $ac_executable_extensions; do
4931 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4932 ac_cv_prog_LD="$ac_prog"
4933 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4934 break 2
4936 done
4937 done
4938 IFS=$as_save_IFS
4942 LD=$ac_cv_prog_LD
4943 if test -n "$LD"; then
4944 { $as_echo "$as_me:$LINENO: result: $LD" >&5
4945 $as_echo "$LD" >&6; }
4946 else
4947 { $as_echo "$as_me:$LINENO: result: no" >&5
4948 $as_echo "no" >&6; }
4952 test -n "$LD" && break
4953 done
4955 if test -z "$LD"; then
4956 ac_verc_fail=yes
4957 else
4958 # Found it, now check the version.
4959 { $as_echo "$as_me:$LINENO: checking version of $LD" >&5
4960 $as_echo_n "checking version of $LD... " >&6; }
4961 ac_prog_version=`$LD --version 2>&1 | sed -n 's/^.*GNU ld.* \([0-9][0-9]*\.[0-9.]*\).*$/\1/p'`
4962 case $ac_prog_version in
4963 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
4964 2.1[3-9]*|2.1[0-9][0-9]*|2.[2-9][0-9]*|[3-9].*|[1-9][0-9]*)
4965 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
4966 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
4968 esac
4969 { $as_echo "$as_me:$LINENO: result: $ac_prog_version" >&5
4970 $as_echo "$ac_prog_version" >&6; }
4972 if test $ac_verc_fail = yes; then
4973 LD=: critic_missing="$critic_missing ld"
4977 # We need the physical current working directory. We cannot use the
4978 # "pwd -P" shell builtin since that's not portable. Instead we try to
4979 # find a pwd binary. Note that assigning to the PWD environment
4980 # variable might have some interesting side effects, so we don't do
4981 # that.
4982 # Extract the first word of "pwd", so it can be a program name with args.
4983 set dummy pwd; ac_word=$2
4984 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4985 $as_echo_n "checking for $ac_word... " >&6; }
4986 if test "${ac_cv_path_PWD_P+set}" = set; then
4987 $as_echo_n "(cached) " >&6
4988 else
4989 case $PWD_P in
4990 [\\/]* | ?:[\\/]*)
4991 ac_cv_path_PWD_P="$PWD_P" # Let the user override the test with a path.
4994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4995 for as_dir in $PATH
4997 IFS=$as_save_IFS
4998 test -z "$as_dir" && as_dir=.
4999 for ac_exec_ext in '' $ac_executable_extensions; do
5000 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5001 ac_cv_path_PWD_P="$as_dir/$ac_word$ac_exec_ext"
5002 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5003 break 2
5005 done
5006 done
5007 IFS=$as_save_IFS
5009 test -z "$ac_cv_path_PWD_P" && ac_cv_path_PWD_P="no"
5011 esac
5013 PWD_P=$ac_cv_path_PWD_P
5014 if test -n "$PWD_P"; then
5015 { $as_echo "$as_me:$LINENO: result: $PWD_P" >&5
5016 $as_echo "$PWD_P" >&6; }
5017 else
5018 { $as_echo "$as_me:$LINENO: result: no" >&5
5019 $as_echo "no" >&6; }
5023 if test "$PWD_P" = no; then
5024 { { $as_echo "$as_me:$LINENO: error: *** A pwd binary could not be found." >&5
5025 $as_echo "$as_me: error: *** A pwd binary could not be found." >&2;}
5026 { (exit 1); exit 1; }; }
5029 # These programs are version sensitive.
5031 for ac_prog in ${ac_tool_prefix}gcc ${ac_tool_prefix}cc
5033 # Extract the first word of "$ac_prog", so it can be a program name with args.
5034 set dummy $ac_prog; ac_word=$2
5035 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5036 $as_echo_n "checking for $ac_word... " >&6; }
5037 if test "${ac_cv_prog_CC+set}" = set; then
5038 $as_echo_n "(cached) " >&6
5039 else
5040 if test -n "$CC"; then
5041 ac_cv_prog_CC="$CC" # Let the user override the test.
5042 else
5043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5044 for as_dir in $PATH
5046 IFS=$as_save_IFS
5047 test -z "$as_dir" && as_dir=.
5048 for ac_exec_ext in '' $ac_executable_extensions; do
5049 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5050 ac_cv_prog_CC="$ac_prog"
5051 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5052 break 2
5054 done
5055 done
5056 IFS=$as_save_IFS
5060 CC=$ac_cv_prog_CC
5061 if test -n "$CC"; then
5062 { $as_echo "$as_me:$LINENO: result: $CC" >&5
5063 $as_echo "$CC" >&6; }
5064 else
5065 { $as_echo "$as_me:$LINENO: result: no" >&5
5066 $as_echo "no" >&6; }
5070 test -n "$CC" && break
5071 done
5073 if test -z "$CC"; then
5074 ac_verc_fail=yes
5075 else
5076 # Found it, now check the version.
5077 { $as_echo "$as_me:$LINENO: checking version of $CC" >&5
5078 $as_echo_n "checking version of $CC... " >&6; }
5079 ac_prog_version=`$CC -v 2>&1 | sed -n 's/^.*version \([egcygnustpi-]*[0-9.]*\).*$/\1/p'`
5080 case $ac_prog_version in
5081 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
5082 3.4* | 4.[0-9]* )
5083 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
5084 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
5086 esac
5087 { $as_echo "$as_me:$LINENO: result: $ac_prog_version" >&5
5088 $as_echo "$ac_prog_version" >&6; }
5090 if test $ac_verc_fail = yes; then
5091 critic_missing="$critic_missing gcc"
5094 for ac_prog in gnumake gmake make
5096 # Extract the first word of "$ac_prog", so it can be a program name with args.
5097 set dummy $ac_prog; ac_word=$2
5098 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5099 $as_echo_n "checking for $ac_word... " >&6; }
5100 if test "${ac_cv_prog_MAKE+set}" = set; then
5101 $as_echo_n "(cached) " >&6
5102 else
5103 if test -n "$MAKE"; then
5104 ac_cv_prog_MAKE="$MAKE" # Let the user override the test.
5105 else
5106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5107 for as_dir in $PATH
5109 IFS=$as_save_IFS
5110 test -z "$as_dir" && as_dir=.
5111 for ac_exec_ext in '' $ac_executable_extensions; do
5112 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5113 ac_cv_prog_MAKE="$ac_prog"
5114 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5115 break 2
5117 done
5118 done
5119 IFS=$as_save_IFS
5123 MAKE=$ac_cv_prog_MAKE
5124 if test -n "$MAKE"; then
5125 { $as_echo "$as_me:$LINENO: result: $MAKE" >&5
5126 $as_echo "$MAKE" >&6; }
5127 else
5128 { $as_echo "$as_me:$LINENO: result: no" >&5
5129 $as_echo "no" >&6; }
5133 test -n "$MAKE" && break
5134 done
5136 if test -z "$MAKE"; then
5137 ac_verc_fail=yes
5138 else
5139 # Found it, now check the version.
5140 { $as_echo "$as_me:$LINENO: checking version of $MAKE" >&5
5141 $as_echo_n "checking version of $MAKE... " >&6; }
5142 ac_prog_version=`$MAKE --version 2>&1 | sed -n 's/^.*GNU Make[^0-9]*\([0-9][0-9.]*\).*$/\1/p'`
5143 case $ac_prog_version in
5144 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
5145 3.79* | 3.[89]*)
5146 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
5147 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
5149 esac
5150 { $as_echo "$as_me:$LINENO: result: $ac_prog_version" >&5
5151 $as_echo "$ac_prog_version" >&6; }
5153 if test $ac_verc_fail = yes; then
5154 critic_missing="$critic_missing make"
5158 for ac_prog in gnumsgfmt gmsgfmt msgfmt
5160 # Extract the first word of "$ac_prog", so it can be a program name with args.
5161 set dummy $ac_prog; ac_word=$2
5162 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5163 $as_echo_n "checking for $ac_word... " >&6; }
5164 if test "${ac_cv_prog_MSGFMT+set}" = set; then
5165 $as_echo_n "(cached) " >&6
5166 else
5167 if test -n "$MSGFMT"; then
5168 ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
5169 else
5170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5171 for as_dir in $PATH
5173 IFS=$as_save_IFS
5174 test -z "$as_dir" && as_dir=.
5175 for ac_exec_ext in '' $ac_executable_extensions; do
5176 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5177 ac_cv_prog_MSGFMT="$ac_prog"
5178 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5179 break 2
5181 done
5182 done
5183 IFS=$as_save_IFS
5187 MSGFMT=$ac_cv_prog_MSGFMT
5188 if test -n "$MSGFMT"; then
5189 { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5
5190 $as_echo "$MSGFMT" >&6; }
5191 else
5192 { $as_echo "$as_me:$LINENO: result: no" >&5
5193 $as_echo "no" >&6; }
5197 test -n "$MSGFMT" && break
5198 done
5200 if test -z "$MSGFMT"; then
5201 ac_verc_fail=yes
5202 else
5203 # Found it, now check the version.
5204 { $as_echo "$as_me:$LINENO: checking version of $MSGFMT" >&5
5205 $as_echo_n "checking version of $MSGFMT... " >&6; }
5206 ac_prog_version=`$MSGFMT --version 2>&1 | sed -n 's/^.*GNU gettext.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
5207 case $ac_prog_version in
5208 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
5209 0.10.3[6-9]* | 0.10.[4-9][0-9]* | 0.1[1-9]* | 0.[2-9][0-9]* | [1-9].*)
5210 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
5211 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
5213 esac
5214 { $as_echo "$as_me:$LINENO: result: $ac_prog_version" >&5
5215 $as_echo "$ac_prog_version" >&6; }
5217 if test $ac_verc_fail = yes; then
5218 MSGFMT=: aux_missing="$aux_missing msgfmt"
5221 for ac_prog in makeinfo
5223 # Extract the first word of "$ac_prog", so it can be a program name with args.
5224 set dummy $ac_prog; ac_word=$2
5225 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5226 $as_echo_n "checking for $ac_word... " >&6; }
5227 if test "${ac_cv_prog_MAKEINFO+set}" = set; then
5228 $as_echo_n "(cached) " >&6
5229 else
5230 if test -n "$MAKEINFO"; then
5231 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
5232 else
5233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5234 for as_dir in $PATH
5236 IFS=$as_save_IFS
5237 test -z "$as_dir" && as_dir=.
5238 for ac_exec_ext in '' $ac_executable_extensions; do
5239 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5240 ac_cv_prog_MAKEINFO="$ac_prog"
5241 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5242 break 2
5244 done
5245 done
5246 IFS=$as_save_IFS
5250 MAKEINFO=$ac_cv_prog_MAKEINFO
5251 if test -n "$MAKEINFO"; then
5252 { $as_echo "$as_me:$LINENO: result: $MAKEINFO" >&5
5253 $as_echo "$MAKEINFO" >&6; }
5254 else
5255 { $as_echo "$as_me:$LINENO: result: no" >&5
5256 $as_echo "no" >&6; }
5260 test -n "$MAKEINFO" && break
5261 done
5263 if test -z "$MAKEINFO"; then
5264 ac_verc_fail=yes
5265 else
5266 # Found it, now check the version.
5267 { $as_echo "$as_me:$LINENO: checking version of $MAKEINFO" >&5
5268 $as_echo_n "checking version of $MAKEINFO... " >&6; }
5269 ac_prog_version=`$MAKEINFO --version 2>&1 | sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
5270 case $ac_prog_version in
5271 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
5272 4.*)
5273 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
5274 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
5276 esac
5277 { $as_echo "$as_me:$LINENO: result: $ac_prog_version" >&5
5278 $as_echo "$ac_prog_version" >&6; }
5280 if test $ac_verc_fail = yes; then
5281 MAKEINFO=: aux_missing="$aux_missing makeinfo"
5284 for ac_prog in sed
5286 # Extract the first word of "$ac_prog", so it can be a program name with args.
5287 set dummy $ac_prog; ac_word=$2
5288 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5289 $as_echo_n "checking for $ac_word... " >&6; }
5290 if test "${ac_cv_prog_SED+set}" = set; then
5291 $as_echo_n "(cached) " >&6
5292 else
5293 if test -n "$SED"; then
5294 ac_cv_prog_SED="$SED" # Let the user override the test.
5295 else
5296 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5297 for as_dir in $PATH
5299 IFS=$as_save_IFS
5300 test -z "$as_dir" && as_dir=.
5301 for ac_exec_ext in '' $ac_executable_extensions; do
5302 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5303 ac_cv_prog_SED="$ac_prog"
5304 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5305 break 2
5307 done
5308 done
5309 IFS=$as_save_IFS
5313 SED=$ac_cv_prog_SED
5314 if test -n "$SED"; then
5315 { $as_echo "$as_me:$LINENO: result: $SED" >&5
5316 $as_echo "$SED" >&6; }
5317 else
5318 { $as_echo "$as_me:$LINENO: result: no" >&5
5319 $as_echo "no" >&6; }
5323 test -n "$SED" && break
5324 done
5326 if test -z "$SED"; then
5327 ac_verc_fail=yes
5328 else
5329 # Found it, now check the version.
5330 { $as_echo "$as_me:$LINENO: checking version of $SED" >&5
5331 $as_echo_n "checking version of $SED... " >&6; }
5332 ac_prog_version=`$SED --version 2>&1 | sed -n 's/^.*GNU sed version \([0-9]*\.[0-9.]*\).*$/\1/p'`
5333 case $ac_prog_version in
5334 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
5335 3.0[2-9]*|3.[1-9]*|[4-9]*)
5336 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
5337 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
5339 esac
5340 { $as_echo "$as_me:$LINENO: result: $ac_prog_version" >&5
5341 $as_echo "$ac_prog_version" >&6; }
5343 if test $ac_verc_fail = yes; then
5344 SED=: aux_missing="$aux_missing sed"
5348 for ac_prog in autoconf
5350 # Extract the first word of "$ac_prog", so it can be a program name with args.
5351 set dummy $ac_prog; ac_word=$2
5352 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5353 $as_echo_n "checking for $ac_word... " >&6; }
5354 if test "${ac_cv_prog_AUTOCONF+set}" = set; then
5355 $as_echo_n "(cached) " >&6
5356 else
5357 if test -n "$AUTOCONF"; then
5358 ac_cv_prog_AUTOCONF="$AUTOCONF" # Let the user override the test.
5359 else
5360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5361 for as_dir in $PATH
5363 IFS=$as_save_IFS
5364 test -z "$as_dir" && as_dir=.
5365 for ac_exec_ext in '' $ac_executable_extensions; do
5366 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5367 ac_cv_prog_AUTOCONF="$ac_prog"
5368 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5369 break 2
5371 done
5372 done
5373 IFS=$as_save_IFS
5377 AUTOCONF=$ac_cv_prog_AUTOCONF
5378 if test -n "$AUTOCONF"; then
5379 { $as_echo "$as_me:$LINENO: result: $AUTOCONF" >&5
5380 $as_echo "$AUTOCONF" >&6; }
5381 else
5382 { $as_echo "$as_me:$LINENO: result: no" >&5
5383 $as_echo "no" >&6; }
5387 test -n "$AUTOCONF" && break
5388 done
5389 test -n "$AUTOCONF" || AUTOCONF="no"
5391 case "x$AUTOCONF" in
5392 xno|x|x:) AUTOCONF=no ;;
5394 { $as_echo "$as_me:$LINENO: checking whether $AUTOCONF${ACFLAGS:+ }$ACFLAGS works" >&5
5395 $as_echo_n "checking whether $AUTOCONF${ACFLAGS:+ }$ACFLAGS works... " >&6; }
5396 if test "${libc_cv_autoconf_works+set}" = set; then
5397 $as_echo_n "(cached) " >&6
5398 else
5399 if (cd $srcdir; $AUTOCONF $ACFLAGS configure.in > /dev/null 2>&1); then
5400 libc_cv_autoconf_works=yes
5401 else
5402 libc_cv_autoconf_works=no
5405 { $as_echo "$as_me:$LINENO: result: $libc_cv_autoconf_works" >&5
5406 $as_echo "$libc_cv_autoconf_works" >&6; }
5407 test $libc_cv_autoconf_works = yes || AUTOCONF=no
5409 esac
5410 if test "x$with_cvs" = xyes && test "x$AUTOCONF" = xno; then
5411 # If --without-cvs they probably won't change configure.in, so no complaints.
5412 aux_missing="$aux_missing autoconf"
5415 test -n "$critic_missing" && { { $as_echo "$as_me:$LINENO: error:
5416 *** These critical programs are missing or too old:$critic_missing
5417 *** Check the INSTALL file for required versions." >&5
5418 $as_echo "$as_me: error:
5419 *** These critical programs are missing or too old:$critic_missing
5420 *** Check the INSTALL file for required versions." >&2;}
5421 { (exit 1); exit 1; }; }
5423 test -n "$aux_missing" && { $as_echo "$as_me:$LINENO: WARNING:
5424 *** These auxiliary programs are missing or incompatible versions:$aux_missing
5425 *** some features will be disabled.
5426 *** Check the INSTALL file for required versions." >&5
5427 $as_echo "$as_me: WARNING:
5428 *** These auxiliary programs are missing or incompatible versions:$aux_missing
5429 *** some features will be disabled.
5430 *** Check the INSTALL file for required versions." >&2;}
5432 # if using special system headers, find out the compiler's sekrit
5433 # header directory and add that to the list. NOTE: Only does the right
5434 # thing on a system that doesn't need fixincludes. (Not presently a problem.)
5435 if test -n "$sysheaders"; then
5436 SYSINCLUDES=-nostdinc
5437 for d in include include-fixed; do
5438 i=`$CC -print-file-name="$d"` && test "x$i" != x && test "x$i" != "x$d" &&
5439 SYSINCLUDES="$SYSINCLUDES -isystem $i"
5440 done
5441 SYSINCLUDES="$SYSINCLUDES \
5442 -isystem `echo $sysheaders | sed 's/:/ -isystem /g'`"
5443 if test -n "$CXX"; then
5444 cxxversion=`$CXX -dumpversion 2>&5` &&
5445 cxxmachine=`$CXX -dumpmachine 2>&5` &&
5446 cxxheaders=`$CXX -print-file-name=../../../../include/c++/`"$cxxversion" &&
5447 CXX_SYSINCLUDES="-isystem $cxxheaders \
5448 -isystem $cxxheaders/$cxxmachine -isystem $cxxheaders/backward"
5454 # check if ranlib is necessary
5455 { $as_echo "$as_me:$LINENO: checking whether ranlib is necessary" >&5
5456 $as_echo_n "checking whether ranlib is necessary... " >&6; }
5457 if test "${libc_cv_ranlib_necessary+set}" = set; then
5458 $as_echo_n "(cached) " >&6
5459 else
5460 cat > conftest.c <<EOF
5461 int a;
5462 char b;
5463 void c(void) {}
5465 $CC $CFLAGS $CPPFLAGS -c conftest.c
5466 $AR cr conftest.a conftest.o
5467 cp conftest.a conftest2.a
5468 $RANLIB conftest.a
5469 if cmp -s conftest.a conftest2.a; then
5470 libc_cv_ranlib_necessary=no
5471 else
5472 libc_cv_ranlib_necessary=yes
5474 rm -rf conftest*
5476 { $as_echo "$as_me:$LINENO: result: $libc_cv_ranlib_necessary" >&5
5477 $as_echo "$libc_cv_ranlib_necessary" >&6; }
5478 if test "$libc_cv_ranlib_necessary" = no; then
5479 RANLIB=:
5482 # Test if LD_LIBRARY_PATH contains the notation for the current directory
5483 # since this would lead to problems installing/building glibc.
5484 # LD_LIBRARY_PATH contains the current directory if one of the following
5485 # is true:
5486 # - one of the terminals (":" and ";") is the first or last sign
5487 # - two terminals occur directly after each other
5488 # - the path contains an element with a dot in it
5489 { $as_echo "$as_me:$LINENO: checking LD_LIBRARY_PATH variable" >&5
5490 $as_echo_n "checking LD_LIBRARY_PATH variable... " >&6; }
5491 case ${LD_LIBRARY_PATH} in
5492 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
5493 ld_library_path_setting="contains current directory"
5496 ld_library_path_setting="ok"
5498 esac
5499 { $as_echo "$as_me:$LINENO: result: $ld_library_path_setting" >&5
5500 $as_echo "$ld_library_path_setting" >&6; }
5501 if test "$ld_library_path_setting" != "ok"; then
5502 { { $as_echo "$as_me:$LINENO: error:
5503 *** LD_LIBRARY_PATH shouldn't contain the current directory when
5504 *** building glibc. Please change the environment variable
5505 *** and run configure again." >&5
5506 $as_echo "$as_me: error:
5507 *** LD_LIBRARY_PATH shouldn't contain the current directory when
5508 *** building glibc. Please change the environment variable
5509 *** and run configure again." >&2;}
5510 { (exit 1); exit 1; }; }
5513 { $as_echo "$as_me:$LINENO: checking whether GCC supports -static-libgcc" >&5
5514 $as_echo_n "checking whether GCC supports -static-libgcc... " >&6; }
5515 if test "${libc_cv_gcc_static_libgcc+set}" = set; then
5516 $as_echo_n "(cached) " >&6
5517 else
5518 if $CC -v -static-libgcc 2>&1 | grep -q 'unrecognized option.*static-libgcc'; then
5519 libc_cv_gcc_static_libgcc=
5520 else
5521 libc_cv_gcc_static_libgcc=-static-libgcc
5524 { $as_echo "$as_me:$LINENO: result: $libc_cv_gcc_static_libgcc" >&5
5525 $as_echo "$libc_cv_gcc_static_libgcc" >&6; }
5528 # Extract the first word of "bash", so it can be a program name with args.
5529 set dummy bash; ac_word=$2
5530 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5531 $as_echo_n "checking for $ac_word... " >&6; }
5532 if test "${ac_cv_path_BASH_SHELL+set}" = set; then
5533 $as_echo_n "(cached) " >&6
5534 else
5535 case $BASH_SHELL in
5536 [\\/]* | ?:[\\/]*)
5537 ac_cv_path_BASH_SHELL="$BASH_SHELL" # Let the user override the test with a path.
5540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5541 for as_dir in $PATH
5543 IFS=$as_save_IFS
5544 test -z "$as_dir" && as_dir=.
5545 for ac_exec_ext in '' $ac_executable_extensions; do
5546 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5547 ac_cv_path_BASH_SHELL="$as_dir/$ac_word$ac_exec_ext"
5548 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5549 break 2
5551 done
5552 done
5553 IFS=$as_save_IFS
5555 test -z "$ac_cv_path_BASH_SHELL" && ac_cv_path_BASH_SHELL="no"
5557 esac
5559 BASH_SHELL=$ac_cv_path_BASH_SHELL
5560 if test -n "$BASH_SHELL"; then
5561 { $as_echo "$as_me:$LINENO: result: $BASH_SHELL" >&5
5562 $as_echo "$BASH_SHELL" >&6; }
5563 else
5564 { $as_echo "$as_me:$LINENO: result: no" >&5
5565 $as_echo "no" >&6; }
5569 if test "$BASH_SHELL" != no &&
5570 $BASH_SHELL -c 'test "$BASH_VERSINFO" \
5571 && test "$BASH_VERSINFO" -ge 2 >&/dev/null'; then
5572 libc_cv_have_bash2=yes
5573 else
5574 libc_cv_have_bash2=no
5578 if test "$BASH_SHELL" = no; then
5579 # Extract the first word of "ksh", so it can be a program name with args.
5580 set dummy ksh; ac_word=$2
5581 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5582 $as_echo_n "checking for $ac_word... " >&6; }
5583 if test "${ac_cv_path_KSH+set}" = set; then
5584 $as_echo_n "(cached) " >&6
5585 else
5586 case $KSH in
5587 [\\/]* | ?:[\\/]*)
5588 ac_cv_path_KSH="$KSH" # Let the user override the test with a path.
5591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5592 for as_dir in $PATH
5594 IFS=$as_save_IFS
5595 test -z "$as_dir" && as_dir=.
5596 for ac_exec_ext in '' $ac_executable_extensions; do
5597 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5598 ac_cv_path_KSH="$as_dir/$ac_word$ac_exec_ext"
5599 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5600 break 2
5602 done
5603 done
5604 IFS=$as_save_IFS
5606 test -z "$ac_cv_path_KSH" && ac_cv_path_KSH="no"
5608 esac
5610 KSH=$ac_cv_path_KSH
5611 if test -n "$KSH"; then
5612 { $as_echo "$as_me:$LINENO: result: $KSH" >&5
5613 $as_echo "$KSH" >&6; }
5614 else
5615 { $as_echo "$as_me:$LINENO: result: no" >&5
5616 $as_echo "no" >&6; }
5620 if test "$KSH" = no; then
5621 libc_cv_have_ksh=no
5622 else
5623 libc_cv_have_ksh=yes
5625 else
5626 KSH="$BASH_SHELL"
5628 libc_cv_have_ksh=yes
5632 for ac_prog in gawk mawk nawk awk
5634 # Extract the first word of "$ac_prog", so it can be a program name with args.
5635 set dummy $ac_prog; ac_word=$2
5636 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5637 $as_echo_n "checking for $ac_word... " >&6; }
5638 if test "${ac_cv_prog_AWK+set}" = set; then
5639 $as_echo_n "(cached) " >&6
5640 else
5641 if test -n "$AWK"; then
5642 ac_cv_prog_AWK="$AWK" # Let the user override the test.
5643 else
5644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5645 for as_dir in $PATH
5647 IFS=$as_save_IFS
5648 test -z "$as_dir" && as_dir=.
5649 for ac_exec_ext in '' $ac_executable_extensions; do
5650 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5651 ac_cv_prog_AWK="$ac_prog"
5652 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5653 break 2
5655 done
5656 done
5657 IFS=$as_save_IFS
5661 AWK=$ac_cv_prog_AWK
5662 if test -n "$AWK"; then
5663 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
5664 $as_echo "$AWK" >&6; }
5665 else
5666 { $as_echo "$as_me:$LINENO: result: no" >&5
5667 $as_echo "no" >&6; }
5671 test -n "$AWK" && break
5672 done
5674 # Extract the first word of "perl", so it can be a program name with args.
5675 set dummy perl; ac_word=$2
5676 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5677 $as_echo_n "checking for $ac_word... " >&6; }
5678 if test "${ac_cv_path_PERL+set}" = set; then
5679 $as_echo_n "(cached) " >&6
5680 else
5681 case $PERL in
5682 [\\/]* | ?:[\\/]*)
5683 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
5686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5687 for as_dir in $PATH
5689 IFS=$as_save_IFS
5690 test -z "$as_dir" && as_dir=.
5691 for ac_exec_ext in '' $ac_executable_extensions; do
5692 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5693 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
5694 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5695 break 2
5697 done
5698 done
5699 IFS=$as_save_IFS
5701 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="no"
5703 esac
5705 PERL=$ac_cv_path_PERL
5706 if test -n "$PERL"; then
5707 { $as_echo "$as_me:$LINENO: result: $PERL" >&5
5708 $as_echo "$PERL" >&6; }
5709 else
5710 { $as_echo "$as_me:$LINENO: result: no" >&5
5711 $as_echo "no" >&6; }
5715 if test "$PERL" != no &&
5716 (eval `$PERL -V:apiversion`; test `expr "$apiversion" \< 5` -ne 0); then
5717 PERL=no
5719 # Extract the first word of "install-info", so it can be a program name with args.
5720 set dummy install-info; ac_word=$2
5721 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5722 $as_echo_n "checking for $ac_word... " >&6; }
5723 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5724 $as_echo_n "(cached) " >&6
5725 else
5726 case $INSTALL_INFO in
5727 [\\/]* | ?:[\\/]*)
5728 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5732 as_dummy="$PATH:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin"
5733 for as_dir in $as_dummy
5735 IFS=$as_save_IFS
5736 test -z "$as_dir" && as_dir=.
5737 for ac_exec_ext in '' $ac_executable_extensions; do
5738 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5739 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5740 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5741 break 2
5743 done
5744 done
5745 IFS=$as_save_IFS
5747 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO="no"
5749 esac
5751 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5752 if test -n "$INSTALL_INFO"; then
5753 { $as_echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5754 $as_echo "$INSTALL_INFO" >&6; }
5755 else
5756 { $as_echo "$as_me:$LINENO: result: no" >&5
5757 $as_echo "no" >&6; }
5761 # Extract the first word of "bison", so it can be a program name with args.
5762 set dummy bison; ac_word=$2
5763 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5764 $as_echo_n "checking for $ac_word... " >&6; }
5765 if test "${ac_cv_path_BISON+set}" = set; then
5766 $as_echo_n "(cached) " >&6
5767 else
5768 case $BISON in
5769 [\\/]* | ?:[\\/]*)
5770 ac_cv_path_BISON="$BISON" # Let the user override the test with a path.
5773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5774 as_dummy="$PATH:/usr/local/bin:/usr/bin:/bin"
5775 for as_dir in $as_dummy
5777 IFS=$as_save_IFS
5778 test -z "$as_dir" && as_dir=.
5779 for ac_exec_ext in '' $ac_executable_extensions; do
5780 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5781 ac_cv_path_BISON="$as_dir/$ac_word$ac_exec_ext"
5782 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5783 break 2
5785 done
5786 done
5787 IFS=$as_save_IFS
5789 test -z "$ac_cv_path_BISON" && ac_cv_path_BISON="no"
5791 esac
5793 BISON=$ac_cv_path_BISON
5794 if test -n "$BISON"; then
5795 { $as_echo "$as_me:$LINENO: result: $BISON" >&5
5796 $as_echo "$BISON" >&6; }
5797 else
5798 { $as_echo "$as_me:$LINENO: result: no" >&5
5799 $as_echo "no" >&6; }
5804 { $as_echo "$as_me:$LINENO: checking for signed size_t type" >&5
5805 $as_echo_n "checking for signed size_t type... " >&6; }
5806 if test "${libc_cv_signed_size_t+set}" = set; then
5807 $as_echo_n "(cached) " >&6
5808 else
5809 echo '#include <stddef.h>
5810 FOOBAR __SIZE_TYPE__ FOOBAR' > conftest.c
5811 if eval "$ac_cpp conftest.c 2>/dev/null" \
5812 | grep '^FOOBAR.*unsigned.*FOOBAR$' >/dev/null; then
5813 libc_cv_signed_size_t=no
5814 else
5815 libc_cv_signed_size_t=yes
5817 rm -f conftest*
5819 { $as_echo "$as_me:$LINENO: result: $libc_cv_signed_size_t" >&5
5820 $as_echo "$libc_cv_signed_size_t" >&6; }
5821 if test $libc_cv_signed_size_t = yes; then
5822 cat >> confdefs.h <<\EOF
5823 #undef __SIZE_TYPE__
5824 #define __SIZE_TYPE__ unsigned
5828 { $as_echo "$as_me:$LINENO: checking for libc-friendly stddef.h" >&5
5829 $as_echo_n "checking for libc-friendly stddef.h... " >&6; }
5830 if test "${libc_cv_friendly_stddef+set}" = set; then
5831 $as_echo_n "(cached) " >&6
5832 else
5833 cat >conftest.$ac_ext <<_ACEOF
5834 /* confdefs.h. */
5835 _ACEOF
5836 cat confdefs.h >>conftest.$ac_ext
5837 cat >>conftest.$ac_ext <<_ACEOF
5838 /* end confdefs.h. */
5839 #define __need_size_t
5840 #define __need_wchar_t
5841 #include <stddef.h>
5842 #define __need_NULL
5843 #include <stddef.h>
5845 main ()
5847 size_t size; wchar_t wchar;
5848 #ifdef offsetof
5849 #error stddef.h ignored __need_*
5850 #endif
5851 if (&size == NULL || &wchar == NULL) abort ();
5853 return 0;
5855 _ACEOF
5856 rm -f conftest.$ac_objext
5857 if { (ac_try="$ac_compile"
5858 case "(($ac_try" in
5859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5860 *) ac_try_echo=$ac_try;;
5861 esac
5862 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5863 $as_echo "$ac_try_echo") >&5
5864 (eval "$ac_compile") 2>conftest.er1
5865 ac_status=$?
5866 grep -v '^ *+' conftest.er1 >conftest.err
5867 rm -f conftest.er1
5868 cat conftest.err >&5
5869 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5870 (exit $ac_status); } && {
5871 test -z "$ac_c_werror_flag" ||
5872 test ! -s conftest.err
5873 } && test -s conftest.$ac_objext; then
5874 libc_cv_friendly_stddef=yes
5875 else
5876 $as_echo "$as_me: failed program was:" >&5
5877 sed 's/^/| /' conftest.$ac_ext >&5
5879 libc_cv_friendly_stddef=no
5882 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5884 { $as_echo "$as_me:$LINENO: result: $libc_cv_friendly_stddef" >&5
5885 $as_echo "$libc_cv_friendly_stddef" >&6; }
5886 if test $libc_cv_friendly_stddef = yes; then
5887 config_vars="$config_vars
5888 override stddef.h = # The installed <stddef.h> seems to be libc-friendly."
5891 { $as_echo "$as_me:$LINENO: checking whether we need to use -P to assemble .S files" >&5
5892 $as_echo_n "checking whether we need to use -P to assemble .S files... " >&6; }
5893 if test "${libc_cv_need_minus_P+set}" = set; then
5894 $as_echo_n "(cached) " >&6
5895 else
5896 cat > conftest.S <<EOF
5897 #include "confdefs.h"
5898 /* Nothing whatsoever. */
5900 if { ac_try='${CC-cc} $CPPFLAGS $ASFLAGS -c conftest.S 1>&5'
5901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5902 (eval $ac_try) 2>&5
5903 ac_status=$?
5904 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5905 (exit $ac_status); }; }; then
5906 libc_cv_need_minus_P=no
5907 else
5908 libc_cv_need_minus_P=yes
5910 rm -f conftest*
5912 { $as_echo "$as_me:$LINENO: result: $libc_cv_need_minus_P" >&5
5913 $as_echo "$libc_cv_need_minus_P" >&6; }
5914 if test $libc_cv_need_minus_P = yes; then
5915 config_vars="$config_vars
5916 asm-CPPFLAGS = -P # The assembler can't grok cpp's # line directives."
5919 { $as_echo "$as_me:$LINENO: checking whether .text pseudo-op must be used" >&5
5920 $as_echo_n "checking whether .text pseudo-op must be used... " >&6; }
5921 if test "${libc_cv_dot_text+set}" = set; then
5922 $as_echo_n "(cached) " >&6
5923 else
5924 cat > conftest.s <<EOF
5925 .text
5927 libc_cv_dot_text=
5928 if { ac_try='${CC-cc} $ASFLAGS -c conftest.s 1>&5'
5929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5930 (eval $ac_try) 2>&5
5931 ac_status=$?
5932 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5933 (exit $ac_status); }; }; then
5934 libc_cv_dot_text=.text
5936 rm -f conftest*
5939 if test -z "$libc_cv_dot_text"; then
5940 { $as_echo "$as_me:$LINENO: result: no" >&5
5941 $as_echo "no" >&6; }
5942 else
5943 { $as_echo "$as_me:$LINENO: result: yes" >&5
5944 $as_echo "yes" >&6; }
5947 { $as_echo "$as_me:$LINENO: checking for assembler global-symbol directive" >&5
5948 $as_echo_n "checking for assembler global-symbol directive... " >&6; }
5949 if test "${libc_cv_asm_global_directive+set}" = set; then
5950 $as_echo_n "(cached) " >&6
5951 else
5952 libc_cv_asm_global_directive=UNKNOWN
5953 for ac_globl in .globl .global .EXPORT; do
5954 cat > conftest.s <<EOF
5955 ${libc_cv_dot_text}
5956 ${ac_globl} foo
5957 foo:
5959 if { ac_try='${CC-cc} $ASFLAGS -c conftest.s 1>&5'
5960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5961 (eval $ac_try) 2>&5
5962 ac_status=$?
5963 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5964 (exit $ac_status); }; }; then
5965 libc_cv_asm_global_directive=${ac_globl}
5967 rm -f conftest*
5968 test $libc_cv_asm_global_directive != UNKNOWN && break
5969 done
5971 { $as_echo "$as_me:$LINENO: result: $libc_cv_asm_global_directive" >&5
5972 $as_echo "$libc_cv_asm_global_directive" >&6; }
5973 if test $libc_cv_asm_global_directive = UNKNOWN; then
5974 { { $as_echo "$as_me:$LINENO: error: cannot determine asm global directive" >&5
5975 $as_echo "$as_me: error: cannot determine asm global directive" >&2;}
5976 { (exit 1); exit 1; }; }
5977 else
5978 cat >>confdefs.h <<_ACEOF
5979 #define ASM_GLOBAL_DIRECTIVE ${libc_cv_asm_global_directive}
5980 _ACEOF
5984 { $as_echo "$as_me:$LINENO: checking for .set assembler directive" >&5
5985 $as_echo_n "checking for .set assembler directive... " >&6; }
5986 if test "${libc_cv_asm_set_directive+set}" = set; then
5987 $as_echo_n "(cached) " >&6
5988 else
5989 cat > conftest.s <<EOF
5990 ${libc_cv_dot_text}
5991 foo:
5992 .set glibc_conftest_frobozz,foo
5993 $libc_cv_asm_global_directive glibc_conftest_frobozz
5995 # The alpha-dec-osf1 assembler gives only a warning for `.set'
5996 # (but it doesn't work), so we must do a linking check to be sure.
5997 cat > conftest1.c <<\EOF
5998 extern int glibc_conftest_frobozz;
5999 void _start() { glibc_conftest_frobozz = 1; }
6001 if ${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \
6002 -nostartfiles -nostdlib \
6003 -o conftest conftest.s conftest1.c 1>&5 2>&5; then
6004 libc_cv_asm_set_directive=yes
6005 else
6006 libc_cv_asm_set_directive=no
6008 rm -f conftest*
6010 { $as_echo "$as_me:$LINENO: result: $libc_cv_asm_set_directive" >&5
6011 $as_echo "$libc_cv_asm_set_directive" >&6; }
6012 if test $libc_cv_asm_set_directive = yes; then
6013 cat >>confdefs.h <<\_ACEOF
6014 #define HAVE_ASM_SET_DIRECTIVE 1
6015 _ACEOF
6019 { $as_echo "$as_me:$LINENO: checking for assembler .type directive prefix" >&5
6020 $as_echo_n "checking for assembler .type directive prefix... " >&6; }
6021 if test "${libc_cv_asm_type_prefix+set}" = set; then
6022 $as_echo_n "(cached) " >&6
6023 else
6024 libc_cv_asm_type_prefix=no
6025 for ac_try_prefix in '@' '%' '#'; do
6026 cat > conftest.s <<EOF
6027 ${libc_cv_dot_text}
6028 ${libc_cv_asm_global_directive} foo
6029 .type foo, ${ac_try_prefix}object
6030 .size foo, 1
6031 foo:
6032 .byte 1
6034 if { ac_try='${CC-cc} $ASFLAGS -c conftest.s 1>&5'
6035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6036 (eval $ac_try) 2>&5
6037 ac_status=$?
6038 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6039 (exit $ac_status); }; }; then
6040 libc_cv_asm_type_prefix=${ac_try_prefix}
6042 rm -f conftest*
6043 test "x$libc_cv_asm_type_prefix" != xno && break
6044 done
6046 { $as_echo "$as_me:$LINENO: result: $libc_cv_asm_type_prefix" >&5
6047 $as_echo "$libc_cv_asm_type_prefix" >&6; }
6048 if test "x$libc_cv_asm_type_prefix" != xno; then
6049 cat >>confdefs.h <<_ACEOF
6050 #define ASM_TYPE_DIRECTIVE_PREFIX ${libc_cv_asm_type_prefix}
6051 _ACEOF
6055 { $as_echo "$as_me:$LINENO: checking for assembler gnu_unique_object symbol type" >&5
6056 $as_echo_n "checking for assembler gnu_unique_object symbol type... " >&6; }
6057 if test "${libc_cv_asm_unique_object+set}" = set; then
6058 $as_echo_n "(cached) " >&6
6059 else
6060 cat > conftest.s <<EOF
6061 ${libc_cv_dot_text}
6062 _sym:
6063 .type _sym, ${libc_cv_asm_type_prefix}gnu_unique_object
6065 if ${CC-cc} -c $ASFLAGS conftest.s 1>&5 2>&5; then
6066 libc_cv_asm_unique_object=yes
6067 else
6068 libc_cv_asm_unique_object=no
6070 rm -f conftest*
6072 { $as_echo "$as_me:$LINENO: result: $libc_cv_asm_unique_object" >&5
6073 $as_echo "$libc_cv_asm_unique_object" >&6; }
6074 if test $libc_cv_asm_unique_object = yes; then
6075 cat >>confdefs.h <<\_ACEOF
6076 #define HAVE_ASM_UNIQUE_OBJECT 1
6077 _ACEOF
6081 # For the multi-arch option we need support in the assembler.
6082 if test "$multi_arch" = yes; then
6083 if test "x$libc_cv_asm_type_prefix" != xno; then
6084 { $as_echo "$as_me:$LINENO: checking for assembler gnu_indirect_function symbol type support" >&5
6085 $as_echo_n "checking for assembler gnu_indirect_function symbol type support... " >&6; }
6086 if test "${libc_cv_asm_gnu_indirect_function+set}" = set; then
6087 $as_echo_n "(cached) " >&6
6088 else
6089 cat > conftest.s <<EOF
6090 .type foo,%gnu_indirect_function
6092 if ${CC-cc} -c $ASFLAGS conftest.s 1>&5 2>&5;
6093 then
6094 libc_cv_asm_gnu_indirect_function=yes
6095 else
6096 libc_cv_asm_gnu_indirect_function=no
6098 rm -f conftest*
6100 { $as_echo "$as_me:$LINENO: result: $libc_cv_asm_gnu_indirect_function" >&5
6101 $as_echo "$libc_cv_asm_gnu_indirect_function" >&6; }
6102 else
6103 libc_cv_asm_gnu_indirect_function=no
6105 if test x"$libc_cv_asm_gnu_indirect_function" != xyes; then
6106 { { $as_echo "$as_me:$LINENO: error: --enable-multi-arch support requires assembler and linker support" >&5
6107 $as_echo "$as_me: error: --enable-multi-arch support requires assembler and linker support" >&2;}
6108 { (exit 1); exit 1; }; }
6112 { $as_echo "$as_me:$LINENO: checking for .symver assembler directive" >&5
6113 $as_echo_n "checking for .symver assembler directive... " >&6; }
6114 if test "${libc_cv_asm_symver_directive+set}" = set; then
6115 $as_echo_n "(cached) " >&6
6116 else
6117 cat > conftest.s <<EOF
6118 ${libc_cv_dot_text}
6119 _sym:
6120 .symver _sym,sym@VERS
6122 if ${CC-cc} -c $ASFLAGS conftest.s 1>&5 2>&5; then
6123 libc_cv_asm_symver_directive=yes
6124 else
6125 libc_cv_asm_symver_directive=no
6127 rm -f conftest*
6129 { $as_echo "$as_me:$LINENO: result: $libc_cv_asm_symver_directive" >&5
6130 $as_echo "$libc_cv_asm_symver_directive" >&6; }
6131 { $as_echo "$as_me:$LINENO: checking for ld --version-script" >&5
6132 $as_echo_n "checking for ld --version-script... " >&6; }
6133 if test "${libc_cv_ld_version_script_option+set}" = set; then
6134 $as_echo_n "(cached) " >&6
6135 else
6136 if test $libc_cv_asm_symver_directive = yes; then
6137 cat > conftest.s <<EOF
6138 ${libc_cv_dot_text}
6139 _sym:
6140 .symver _sym,sym@VERS
6142 cat > conftest.map <<EOF
6143 VERS_1 {
6144 global: sym;
6147 VERS_2 {
6148 global: sym;
6149 } VERS_1;
6151 if ${CC-cc} -c $ASFLAGS conftest.s 1>&5 2>&5; then
6152 if { ac_try='${CC-cc} $CFLAGS $LDFLAGS -shared
6153 -o conftest.so conftest.o
6154 -nostartfiles -nostdlib
6155 -Wl,--version-script,conftest.map
6156 1>&5'
6157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6158 (eval $ac_try) 2>&5
6159 ac_status=$?
6160 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6161 (exit $ac_status); }; };
6162 then
6163 libc_cv_ld_version_script_option=yes
6164 else
6165 libc_cv_ld_version_script_option=no
6167 else
6168 libc_cv_ld_version_script_option=no
6170 else
6171 libc_cv_ld_version_script_option=no
6173 rm -f conftest*
6175 { $as_echo "$as_me:$LINENO: result: $libc_cv_ld_version_script_option" >&5
6176 $as_echo "$libc_cv_ld_version_script_option" >&6; }
6177 if test $shared != no &&
6178 test $libc_cv_asm_symver_directive = yes &&
6179 test $libc_cv_ld_version_script_option = yes &&
6180 test $enable_versioning = yes; then
6181 VERSIONING=yes
6182 cat >>confdefs.h <<\_ACEOF
6183 #define DO_VERSIONING 1
6184 _ACEOF
6186 else
6187 VERSIONING=no
6191 if test $elf = yes && test $shared != no && test $VERSIONING = no; then
6192 echo "\
6193 *** WARNING: You should not compile GNU libc without versioning. Not using
6194 *** versioning will introduce incompatibilities so that old binaries
6195 *** will not run anymore.
6196 *** For versioning you need recent binutils (binutils-2.8.1.0.23 or newer)."
6198 if test $elf = yes; then
6199 { $as_echo "$as_me:$LINENO: checking for .previous assembler directive" >&5
6200 $as_echo_n "checking for .previous assembler directive... " >&6; }
6201 if test "${libc_cv_asm_previous_directive+set}" = set; then
6202 $as_echo_n "(cached) " >&6
6203 else
6204 cat > conftest.s <<EOF
6205 .section foo_section
6206 .previous
6208 if { ac_try='${CC-cc} -c $ASFLAGS conftest.s 1>&5'
6209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6210 (eval $ac_try) 2>&5
6211 ac_status=$?
6212 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6213 (exit $ac_status); }; }; then
6214 libc_cv_asm_previous_directive=yes
6215 else
6216 libc_cv_asm_previous_directive=no
6218 rm -f conftest*
6220 { $as_echo "$as_me:$LINENO: result: $libc_cv_asm_previous_directive" >&5
6221 $as_echo "$libc_cv_asm_previous_directive" >&6; }
6222 if test $libc_cv_asm_previous_directive = yes; then
6223 cat >>confdefs.h <<\_ACEOF
6224 #define HAVE_ASM_PREVIOUS_DIRECTIVE 1
6225 _ACEOF
6227 else
6228 { $as_echo "$as_me:$LINENO: checking for .popsection assembler directive" >&5
6229 $as_echo_n "checking for .popsection assembler directive... " >&6; }
6230 if test "${libc_cv_asm_popsection_directive+set}" = set; then
6231 $as_echo_n "(cached) " >&6
6232 else
6233 cat > conftest.s <<EOF
6234 .pushsection foo_section
6235 .popsection
6237 if { ac_try='${CC-cc} -c $ASFLAGS conftest.s 1>&5'
6238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6239 (eval $ac_try) 2>&5
6240 ac_status=$?
6241 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6242 (exit $ac_status); }; }; then
6243 libc_cv_asm_popsection_directive=yes
6244 else
6245 libc_cv_asm_popsection_directive=no
6247 rm -f conftest*
6249 { $as_echo "$as_me:$LINENO: result: $libc_cv_asm_popsection_directive" >&5
6250 $as_echo "$libc_cv_asm_popsection_directive" >&6; }
6251 if test $libc_cv_asm_popsection_directive = yes; then
6252 cat >>confdefs.h <<\_ACEOF
6253 #define HAVE_ASM_POPSECTION_DIRECTIVE 1
6254 _ACEOF
6258 { $as_echo "$as_me:$LINENO: checking for .protected and .hidden assembler directive" >&5
6259 $as_echo_n "checking for .protected and .hidden assembler directive... " >&6; }
6260 if test "${libc_cv_asm_protected_directive+set}" = set; then
6261 $as_echo_n "(cached) " >&6
6262 else
6263 cat > conftest.s <<EOF
6264 .protected foo
6265 foo:
6266 .hidden bar
6267 bar:
6269 if { ac_try='${CC-cc} -c $ASFLAGS conftest.s 1>&5'
6270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6271 (eval $ac_try) 2>&5
6272 ac_status=$?
6273 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6274 (exit $ac_status); }; }; then
6275 libc_cv_asm_protected_directive=yes
6276 else
6277 { { $as_echo "$as_me:$LINENO: error: assembler support for symbol visibility is required" >&5
6278 $as_echo "$as_me: error: assembler support for symbol visibility is required" >&2;}
6279 { (exit 1); exit 1; }; }
6281 rm -f conftest*
6283 { $as_echo "$as_me:$LINENO: result: $libc_cv_asm_protected_directive" >&5
6284 $as_echo "$libc_cv_asm_protected_directive" >&6; }
6286 if test $libc_cv_asm_protected_directive = yes; then
6287 { $as_echo "$as_me:$LINENO: checking whether __attribute__((visibility())) is supported" >&5
6288 $as_echo_n "checking whether __attribute__((visibility())) is supported... " >&6; }
6289 if test "${libc_cv_visibility_attribute+set}" = set; then
6290 $as_echo_n "(cached) " >&6
6291 else
6292 cat > conftest.c <<EOF
6293 int foo __attribute__ ((visibility ("hidden"))) = 1;
6294 int bar __attribute__ ((visibility ("protected"))) = 1;
6296 libc_cv_visibility_attribute=no
6297 if { ac_try='${CC-cc} -Werror -S conftest.c -o conftest.s 1>&5'
6298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6299 (eval $ac_try) 2>&5
6300 ac_status=$?
6301 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6302 (exit $ac_status); }; }; then
6303 if grep '\.hidden.*foo' conftest.s >/dev/null; then
6304 if grep '\.protected.*bar' conftest.s >/dev/null; then
6305 libc_cv_visibility_attribute=yes
6309 rm -f conftest.cs
6312 { $as_echo "$as_me:$LINENO: result: $libc_cv_visibility_attribute" >&5
6313 $as_echo "$libc_cv_visibility_attribute" >&6; }
6314 if test $libc_cv_visibility_attribute != yes; then
6315 { { $as_echo "$as_me:$LINENO: error: compiler support for visibility attribute is required" >&5
6316 $as_echo "$as_me: error: compiler support for visibility attribute is required" >&2;}
6317 { (exit 1); exit 1; }; }
6321 if test $libc_cv_visibility_attribute = yes; then
6322 { $as_echo "$as_me:$LINENO: checking for broken __attribute__((visibility()))" >&5
6323 $as_echo_n "checking for broken __attribute__((visibility()))... " >&6; }
6324 if test "${libc_cv_broken_visibility_attribute+set}" = set; then
6325 $as_echo_n "(cached) " >&6
6326 else
6327 cat > conftest.c <<EOF
6328 int foo (int x);
6329 int bar (int x) __asm__ ("foo") __attribute__ ((visibility ("hidden")));
6330 int bar (int x) { return x; }
6332 libc_cv_broken_visibility_attribute=yes
6333 if { ac_try='${CC-cc} -Werror -S conftest.c -o conftest.s1>&5'
6334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6335 (eval $ac_try) 2>&5
6336 ac_status=$?
6337 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6338 (exit $ac_status); }; }; then
6339 if grep '\.hidden[ _]foo' conftest.s >/dev/null; then
6340 libc_cv_broken_visibility_attribute=no
6343 rm -f conftest.c conftest.s
6346 { $as_echo "$as_me:$LINENO: result: $libc_cv_broken_visibility_attribute" >&5
6347 $as_echo "$libc_cv_broken_visibility_attribute" >&6; }
6348 if test $libc_cv_broken_visibility_attribute = yes; then
6349 { { $as_echo "$as_me:$LINENO: error: working compiler support for visibility attribute is required" >&5
6350 $as_echo "$as_me: error: working compiler support for visibility attribute is required" >&2;}
6351 { (exit 1); exit 1; }; }
6355 { $as_echo "$as_me:$LINENO: checking for broken __attribute__((alias()))" >&5
6356 $as_echo_n "checking for broken __attribute__((alias()))... " >&6; }
6357 if test "${libc_cv_broken_alias_attribute+set}" = set; then
6358 $as_echo_n "(cached) " >&6
6359 else
6360 cat > conftest.c <<EOF
6361 extern int foo (int x) __asm ("xyzzy");
6362 int bar (int x) { return x; }
6363 extern __typeof (bar) foo __attribute ((weak, alias ("bar")));
6364 extern int dfoo;
6365 extern __typeof (dfoo) dfoo __asm ("abccb");
6366 int dfoo = 1;
6368 libc_cv_broken_alias_attribute=yes
6369 if { ac_try='${CC-cc} -Werror -S conftest.c -o conftest.s 1>&5'
6370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6371 (eval $ac_try) 2>&5
6372 ac_status=$?
6373 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6374 (exit $ac_status); }; }; then
6375 if grep 'xyzzy' conftest.s >/dev/null &&
6376 grep 'abccb' conftest.s >/dev/null; then
6377 libc_cv_broken_alias_attribute=no
6380 rm -f conftest.c conftest.s
6383 { $as_echo "$as_me:$LINENO: result: $libc_cv_broken_alias_attribute" >&5
6384 $as_echo "$libc_cv_broken_alias_attribute" >&6; }
6385 if test $libc_cv_broken_alias_attribute = yes; then
6386 { { $as_echo "$as_me:$LINENO: error: working alias attribute support required" >&5
6387 $as_echo "$as_me: error: working alias attribute support required" >&2;}
6388 { (exit 1); exit 1; }; }
6391 if test $libc_cv_visibility_attribute = yes; then
6392 { $as_echo "$as_me:$LINENO: checking whether to put _rtld_local into .sdata section" >&5
6393 $as_echo_n "checking whether to put _rtld_local into .sdata section... " >&6; }
6394 if test "${libc_cv_have_sdata_section+set}" = set; then
6395 $as_echo_n "(cached) " >&6
6396 else
6397 echo "int i;" > conftest.c
6398 libc_cv_have_sdata_section=no
6399 if ${CC-cc} $LDFLAGS -fPIC -shared -Wl,--verbose conftest.c -o conftest.so 2>&1 \
6400 | grep '\.sdata' >/dev/null; then
6401 libc_cv_have_sdata_section=yes
6403 rm -f conftest.c conftest.so
6406 { $as_echo "$as_me:$LINENO: result: $libc_cv_have_sdata_section" >&5
6407 $as_echo "$libc_cv_have_sdata_section" >&6; }
6408 if test $libc_cv_have_sdata_section = yes; then
6409 cat >>confdefs.h <<\_ACEOF
6410 #define HAVE_SDATA_SECTION 1
6411 _ACEOF
6416 { $as_echo "$as_me:$LINENO: checking for .preinit_array/.init_array/.fini_array support" >&5
6417 $as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
6418 if test "${libc_cv_initfini_array+set}" = set; then
6419 $as_echo_n "(cached) " >&6
6420 else
6421 cat > conftest.c <<EOF
6422 int _start (void) { return 0; }
6423 int __start (void) { return 0; }
6424 int foo (void) { return 1; }
6425 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
6427 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS -o conftest conftest.c
6428 -static -nostartfiles -nostdlib 1>&5'
6429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6430 (eval $ac_try) 2>&5
6431 ac_status=$?
6432 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6433 (exit $ac_status); }; }
6434 then
6435 if readelf -S conftest | fgrep INIT_ARRAY > /dev/null; then
6436 libc_cv_initfini_array=yes
6437 else
6438 libc_cv_initfini_array=no
6440 else
6441 libc_cv_initfini_array=no
6443 rm -f conftest*
6445 { $as_echo "$as_me:$LINENO: result: $libc_cv_initfini_array" >&5
6446 $as_echo "$libc_cv_initfini_array" >&6; }
6447 if test $libc_cv_initfini_array != yes; then
6448 { { $as_echo "$as_me:$LINENO: error: Need linker with .init_array/.fini_array support." >&5
6449 $as_echo "$as_me: error: Need linker with .init_array/.fini_array support." >&2;}
6450 { (exit 1); exit 1; }; }
6453 { $as_echo "$as_me:$LINENO: checking for libunwind-support in compiler" >&5
6454 $as_echo_n "checking for libunwind-support in compiler... " >&6; }
6455 if test "${libc_cv_cc_with_libunwind+set}" = set; then
6456 $as_echo_n "(cached) " >&6
6457 else
6459 cat > conftest.c <<EOF
6460 int main (void) { return 0; }
6462 if ${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS -static -o conftest \
6463 conftest.c -v 2>&1 >/dev/null | grep -q " -lunwind "; then
6464 libc_cv_cc_with_libunwind=yes
6465 else
6466 libc_cv_cc_with_libunwind=no
6468 rm -f conftest*
6470 { $as_echo "$as_me:$LINENO: result: $libc_cv_cc_with_libunwind" >&5
6471 $as_echo "$libc_cv_cc_with_libunwind" >&6; }
6473 if test $libc_cv_cc_with_libunwind = yes; then
6474 cat >>confdefs.h <<\_ACEOF
6475 #define HAVE_CC_WITH_LIBUNWIND 1
6476 _ACEOF
6480 { $as_echo "$as_me:$LINENO: checking for -z nodelete option" >&5
6481 $as_echo_n "checking for -z nodelete option... " >&6; }
6482 if test "${libc_cv_z_nodelete+set}" = set; then
6483 $as_echo_n "(cached) " >&6
6484 else
6485 cat > conftest.c <<EOF
6486 int _start (void) { return 42; }
6488 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
6489 -fPIC -shared -o conftest.so conftest.c
6490 -nostartfiles -nostdlib
6491 -Wl,--enable-new-dtags,-z,nodelete 1>&5'
6492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6493 (eval $ac_try) 2>&5
6494 ac_status=$?
6495 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6496 (exit $ac_status); }; }
6497 then
6498 libc_cv_z_nodelete=yes
6499 else
6500 { { $as_echo "$as_me:$LINENO: error: linker with -z nodelete support required" >&5
6501 $as_echo "$as_me: error: linker with -z nodelete support required" >&2;}
6502 { (exit 1); exit 1; }; }
6504 rm -f conftest*
6506 { $as_echo "$as_me:$LINENO: result: $libc_cv_z_nodelete" >&5
6507 $as_echo "$libc_cv_z_nodelete" >&6; }
6509 { $as_echo "$as_me:$LINENO: checking for -z nodlopen option" >&5
6510 $as_echo_n "checking for -z nodlopen option... " >&6; }
6511 if test "${libc_cv_z_nodlopen+set}" = set; then
6512 $as_echo_n "(cached) " >&6
6513 else
6514 cat > conftest.c <<EOF
6515 int _start (void) { return 42; }
6517 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
6518 -fPIC -shared -o conftest.so conftest.c
6519 -nostartfiles -nostdlib
6520 -Wl,--enable-new-dtags,-z,nodlopen 1>&5'
6521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6522 (eval $ac_try) 2>&5
6523 ac_status=$?
6524 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6525 (exit $ac_status); }; }
6526 then
6527 libc_cv_z_nodlopen=yes
6528 else
6529 { { $as_echo "$as_me:$LINENO: error: linker with -z nodlopen support required" >&5
6530 $as_echo "$as_me: error: linker with -z nodlopen support required" >&2;}
6531 { (exit 1); exit 1; }; }
6533 rm -f conftest*
6535 { $as_echo "$as_me:$LINENO: result: $libc_cv_z_nodlopen" >&5
6536 $as_echo "$libc_cv_z_nodlopen" >&6; }
6538 { $as_echo "$as_me:$LINENO: checking for -z initfirst option" >&5
6539 $as_echo_n "checking for -z initfirst option... " >&6; }
6540 if test "${libc_cv_z_initfirst+set}" = set; then
6541 $as_echo_n "(cached) " >&6
6542 else
6543 cat > conftest.c <<EOF
6544 int _start (void) { return 42; }
6546 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
6547 -fPIC -shared -o conftest.so conftest.c
6548 -nostartfiles -nostdlib
6549 -Wl,--enable-new-dtags,-z,initfirst 1>&5'
6550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6551 (eval $ac_try) 2>&5
6552 ac_status=$?
6553 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6554 (exit $ac_status); }; }
6555 then
6556 libc_cv_z_initfirst=yes
6557 else
6558 { { $as_echo "$as_me:$LINENO: error: linker with -z initfirst support required" >&5
6559 $as_echo "$as_me: error: linker with -z initfirst support required" >&2;}
6560 { (exit 1); exit 1; }; }
6562 rm -f conftest*
6564 { $as_echo "$as_me:$LINENO: result: $libc_cv_z_initfirst" >&5
6565 $as_echo "$libc_cv_z_initfirst" >&6; }
6567 case "$base_machine" in
6568 i[34567]86 | x86_64 | powerpc* | s390* | sparc* | alpha*)
6569 { $as_echo "$as_me:$LINENO: checking for -z relro option" >&5
6570 $as_echo_n "checking for -z relro option... " >&6; }
6571 if test "${libc_cv_z_relro+set}" = set; then
6572 $as_echo_n "(cached) " >&6
6573 else
6574 libc_cv_z_relro=no
6575 if { ac_try='${CC-cc} -v --help 2>&1|grep "z relro" 1>&5'
6576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6577 (eval $ac_try) 2>&5
6578 ac_status=$?
6579 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6580 (exit $ac_status); }; }
6581 then
6582 if { ac_try='${CC-cc} -Wl,--verbose 2>&1|grep DATA_SEGMENT_RELRO_END 1>&5'
6583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6584 (eval $ac_try) 2>&5
6585 ac_status=$?
6586 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6587 (exit $ac_status); }; }
6588 then
6589 libc_cv_z_relro=yes
6593 { $as_echo "$as_me:$LINENO: result: $libc_cv_z_relro" >&5
6594 $as_echo "$libc_cv_z_relro" >&6; }
6595 if test "$libc_cv_z_relro" = no; then
6596 { { $as_echo "$as_me:$LINENO: error: linker with -z relro support required" >&5
6597 $as_echo "$as_me: error: linker with -z relro support required" >&2;}
6598 { (exit 1); exit 1; }; }
6601 *) ;;
6602 esac
6604 { $as_echo "$as_me:$LINENO: checking for -Bgroup option" >&5
6605 $as_echo_n "checking for -Bgroup option... " >&6; }
6606 if test "${libc_cv_Bgroup+set}" = set; then
6607 $as_echo_n "(cached) " >&6
6608 else
6609 cat > conftest.c <<EOF
6610 int _start (void) { return 42; }
6612 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
6613 -fPIC -shared -o conftest.so conftest.c
6614 -Wl,-Bgroup -nostdlib 1>&5'
6615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6616 (eval $ac_try) 2>&5
6617 ac_status=$?
6618 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6619 (exit $ac_status); }; }
6620 then
6621 libc_cv_Bgroup=yes
6622 else
6623 libc_cv_Bgroup=no
6625 rm -f conftest*
6627 { $as_echo "$as_me:$LINENO: result: $libc_cv_Bgroup" >&5
6628 $as_echo "$libc_cv_Bgroup" >&6; }
6631 { $as_echo "$as_me:$LINENO: checking for libgcc_s suffix" >&5
6632 $as_echo_n "checking for libgcc_s suffix... " >&6; }
6633 if test "${libc_cv_libgcc_s_suffix+set}" = set; then
6634 $as_echo_n "(cached) " >&6
6635 else
6636 cat > conftest.c <<EOF
6637 int main (void) { return 0; }
6639 libc_cv_libgcc_s_suffix=`${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \
6640 -fPIC -shared -shared-libgcc -o conftest.so \
6641 conftest.c -v 2>&1 >/dev/null \
6642 | sed -n 's/^.* -lgcc_s\([^ ]*\) .*$/\1/p'`
6643 rm -f conftest*
6645 { $as_echo "$as_me:$LINENO: result: $libc_cv_libgcc_s_suffix" >&5
6646 $as_echo "$libc_cv_libgcc_s_suffix" >&6; }
6649 { $as_echo "$as_me:$LINENO: checking for --as-needed option" >&5
6650 $as_echo_n "checking for --as-needed option... " >&6; }
6651 if test "${libc_cv_as_needed+set}" = set; then
6652 $as_echo_n "(cached) " >&6
6653 else
6654 cat > conftest.c <<EOF
6655 int main (void) { return 0; }
6657 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
6658 -fPIC -shared -o conftest.so conftest.c
6659 -lgcc_s$libc_cv_libgcc_s_suffix -Wl,--as-needed
6660 -nostdlib 1>&5'
6661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6662 (eval $ac_try) 2>&5
6663 ac_status=$?
6664 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6665 (exit $ac_status); }; }
6666 then
6667 libc_cv_as_needed=yes
6668 else
6669 libc_cv_as_needed=no
6671 rm -f conftest*
6673 { $as_echo "$as_me:$LINENO: result: $libc_cv_as_needed" >&5
6674 $as_echo "$libc_cv_as_needed" >&6; }
6677 ASFLAGS_config=
6678 { $as_echo "$as_me:$LINENO: checking whether --noexecstack is desirable for .S files" >&5
6679 $as_echo_n "checking whether --noexecstack is desirable for .S files... " >&6; }
6680 if test "${libc_cv_as_noexecstack+set}" = set; then
6681 $as_echo_n "(cached) " >&6
6682 else
6683 cat > conftest.c <<EOF
6684 void foo (void) { }
6686 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS
6687 -S -o conftest.s conftest.c 1>&5'
6688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6689 (eval $ac_try) 2>&5
6690 ac_status=$?
6691 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6692 (exit $ac_status); }; } \
6693 && grep -q .note.GNU-stack conftest.s \
6694 && { ac_try='${CC-cc} $ASFLAGS -Wa,--noexecstack
6695 -c -o conftest.o conftest.s 1>&5'
6696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6697 (eval $ac_try) 2>&5
6698 ac_status=$?
6699 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6700 (exit $ac_status); }; }
6701 then
6702 libc_cv_as_noexecstack=yes
6703 else
6704 libc_cv_as_noexecstack=no
6706 rm -f conftest*
6708 { $as_echo "$as_me:$LINENO: result: $libc_cv_as_noexecstack" >&5
6709 $as_echo "$libc_cv_as_noexecstack" >&6; }
6710 if test $libc_cv_as_noexecstack = yes; then
6711 ASFLAGS_config="$ASFLAGS_config -Wa,--noexecstack"
6715 { $as_echo "$as_me:$LINENO: checking for -z combreloc" >&5
6716 $as_echo_n "checking for -z combreloc... " >&6; }
6717 if test "${libc_cv_z_combreloc+set}" = set; then
6718 $as_echo_n "(cached) " >&6
6719 else
6720 cat > conftest.c <<EOF
6721 extern int bar (int);
6722 extern int mumble;
6723 int foo (void) { return bar (mumble); }
6725 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
6726 -fPIC -shared -o conftest.so conftest.c
6727 -nostdlib -nostartfiles
6728 -Wl,-z,combreloc 1>&5'
6729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6730 (eval $ac_try) 2>&5
6731 ac_status=$?
6732 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6733 (exit $ac_status); }; }
6734 then
6735 if readelf -S conftest.so | grep '\.rel\(a\|\)\.dyn' > /dev/null; then
6736 libc_cv_z_combreloc=yes
6737 else
6738 libc_cv_z_combreloc=no
6740 else
6741 libc_cv_z_combreloc=no
6743 rm -f conftest*
6745 { $as_echo "$as_me:$LINENO: result: $libc_cv_z_combreloc" >&5
6746 $as_echo "$libc_cv_z_combreloc" >&6; }
6747 if test "$libc_cv_z_combreloc" = yes; then
6748 cat >>confdefs.h <<\_ACEOF
6749 #define HAVE_Z_COMBRELOC 1
6750 _ACEOF
6755 { $as_echo "$as_me:$LINENO: checking for -z execstack" >&5
6756 $as_echo_n "checking for -z execstack... " >&6; }
6757 if test "${libc_cv_z_execstack+set}" = set; then
6758 $as_echo_n "(cached) " >&6
6759 else
6760 cat > conftest.c <<EOF
6761 int _start (void) { return 42; }
6763 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
6764 -fPIC -shared -o conftest.so conftest.c
6765 -Wl,-z,execstack -nostdlib
6766 1>&5'
6767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6768 (eval $ac_try) 2>&5
6769 ac_status=$?
6770 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6771 (exit $ac_status); }; }
6772 then
6773 libc_cv_z_execstack=yes
6774 else
6775 libc_cv_z_execstack=no
6777 rm -f conftest*
6779 { $as_echo "$as_me:$LINENO: result: $libc_cv_z_execstack" >&5
6780 $as_echo "$libc_cv_z_execstack" >&6; }
6783 { $as_echo "$as_me:$LINENO: checking for -fpie" >&5
6784 $as_echo_n "checking for -fpie... " >&6; }
6785 if test "${libc_cv_fpie+set}" = set; then
6786 $as_echo_n "(cached) " >&6
6787 else
6788 cat > conftest.c <<EOF
6789 int foo;
6790 main () { return 0;}
6792 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS -pie -fpie
6793 -o conftest conftest.c 1>&5'
6794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6795 (eval $ac_try) 2>&5
6796 ac_status=$?
6797 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6798 (exit $ac_status); }; }
6799 then
6800 libc_cv_fpie=yes
6801 else
6802 libc_cv_fpie=no
6804 rm -f conftest*
6806 { $as_echo "$as_me:$LINENO: result: $libc_cv_fpie" >&5
6807 $as_echo "$libc_cv_fpie" >&6; }
6811 { $as_echo "$as_me:$LINENO: checking for --hash-style option" >&5
6812 $as_echo_n "checking for --hash-style option... " >&6; }
6813 if test "${libc_cv_hashstyle+set}" = set; then
6814 $as_echo_n "(cached) " >&6
6815 else
6816 cat > conftest.c <<EOF
6817 int _start (void) { return 42; }
6819 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
6820 -fPIC -shared -o conftest.so conftest.c
6821 -Wl,--hash-style=both -nostdlib 1>&5'
6822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6823 (eval $ac_try) 2>&5
6824 ac_status=$?
6825 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6826 (exit $ac_status); }; }
6827 then
6828 libc_cv_hashstyle=yes
6829 else
6830 libc_cv_hashstyle=no
6832 rm -f conftest*
6834 { $as_echo "$as_me:$LINENO: result: $libc_cv_hashstyle" >&5
6835 $as_echo "$libc_cv_hashstyle" >&6; }
6839 { $as_echo "$as_me:$LINENO: checking for -fno-toplevel-reorder -fno-section-anchors" >&5
6840 $as_echo_n "checking for -fno-toplevel-reorder -fno-section-anchors... " >&6; }
6841 if test "${libc_cv_fno_toplevel_reorder+set}" = set; then
6842 $as_echo_n "(cached) " >&6
6843 else
6844 cat > conftest.c <<EOF
6845 int foo;
6847 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -S -fno-toplevel-reorder -fno-section-anchors
6848 conftest.c 1>&5'
6849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6850 (eval $ac_try) 2>&5
6851 ac_status=$?
6852 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6853 (exit $ac_status); }; }
6854 then
6855 libc_cv_fno_toplevel_reorder=yes
6856 else
6857 libc_cv_fno_toplevel_reorder=no
6859 rm -f conftest*
6861 { $as_echo "$as_me:$LINENO: result: $libc_cv_fno_toplevel_reorder" >&5
6862 $as_echo "$libc_cv_fno_toplevel_reorder" >&6; }
6863 if test $libc_cv_fno_toplevel_reorder = yes; then
6864 fno_unit_at_a_time="-fno-toplevel-reorder -fno-section-anchors"
6865 else
6866 fno_unit_at_a_time=-fno-unit-at-a-time
6870 { $as_echo "$as_me:$LINENO: checking for -fstack-protector" >&5
6871 $as_echo_n "checking for -fstack-protector... " >&6; }
6872 if test "${libc_cv_ssp+set}" = set; then
6873 $as_echo_n "(cached) " >&6
6874 else
6875 cat > conftest.c <<EOF
6876 int foo;
6877 main () { return 0;}
6879 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS -Werror -fstack-protector
6880 -o conftest conftest.c 1>&5'
6881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6882 (eval $ac_try) 2>&5
6883 ac_status=$?
6884 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6885 (exit $ac_status); }; }
6886 then
6887 libc_cv_ssp=yes
6888 else
6889 libc_cv_ssp=no
6891 rm -f conftest*
6893 { $as_echo "$as_me:$LINENO: result: $libc_cv_ssp" >&5
6894 $as_echo "$libc_cv_ssp" >&6; }
6897 { $as_echo "$as_me:$LINENO: checking for -fgnu89-inline" >&5
6898 $as_echo_n "checking for -fgnu89-inline... " >&6; }
6899 if test "${libc_cv_gnu89_inline+set}" = set; then
6900 $as_echo_n "(cached) " >&6
6901 else
6902 cat > conftest.c <<EOF
6903 int foo;
6904 #ifdef __GNUC_GNU_INLINE__
6905 main () { return 0;}
6906 #else
6907 #error
6908 #endif
6910 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -S -std=gnu99 -fgnu89-inline
6911 -o conftest.s conftest.c 1>&5'
6912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6913 (eval $ac_try) 2>&5
6914 ac_status=$?
6915 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6916 (exit $ac_status); }; }
6917 then
6918 libc_cv_gnu89_inline=yes
6919 else
6920 libc_cv_gnu89_inline=no
6922 rm -f conftest*
6924 { $as_echo "$as_me:$LINENO: result: $libc_cv_gnu89_inline" >&5
6925 $as_echo "$libc_cv_gnu89_inline" >&6; }
6926 if test $libc_cv_gnu89_inline = yes; then
6927 libc_cv_gnu89_inline=-fgnu89-inline
6928 else
6929 libc_cv_gnu89_inline=
6933 if test $elf != yes; then
6934 { $as_echo "$as_me:$LINENO: checking for .init and .fini sections" >&5
6935 $as_echo_n "checking for .init and .fini sections... " >&6; }
6936 if test "${libc_cv_have_initfini+set}" = set; then
6937 $as_echo_n "(cached) " >&6
6938 else
6939 cat >conftest.$ac_ext <<_ACEOF
6940 /* confdefs.h. */
6941 _ACEOF
6942 cat confdefs.h >>conftest.$ac_ext
6943 cat >>conftest.$ac_ext <<_ACEOF
6944 /* end confdefs.h. */
6947 main ()
6949 asm (".section .init");
6950 asm (".section .fini");
6951 asm ("${libc_cv_dot_text}");
6953 return 0;
6955 _ACEOF
6956 rm -f conftest.$ac_objext
6957 if { (ac_try="$ac_compile"
6958 case "(($ac_try" in
6959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6960 *) ac_try_echo=$ac_try;;
6961 esac
6962 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6963 $as_echo "$ac_try_echo") >&5
6964 (eval "$ac_compile") 2>conftest.er1
6965 ac_status=$?
6966 grep -v '^ *+' conftest.er1 >conftest.err
6967 rm -f conftest.er1
6968 cat conftest.err >&5
6969 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6970 (exit $ac_status); } && {
6971 test -z "$ac_c_werror_flag" ||
6972 test ! -s conftest.err
6973 } && test -s conftest.$ac_objext; then
6974 libc_cv_have_initfini=yes
6975 else
6976 $as_echo "$as_me: failed program was:" >&5
6977 sed 's/^/| /' conftest.$ac_ext >&5
6979 libc_cv_have_initfini=no
6982 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6984 { $as_echo "$as_me:$LINENO: result: $libc_cv_have_initfini" >&5
6985 $as_echo "$libc_cv_have_initfini" >&6; }
6986 if test $libc_cv_have_initfini = yes; then
6987 cat >>confdefs.h <<\_ACEOF
6988 #define HAVE_INITFINI 1
6989 _ACEOF
6994 if test $elf = yes; then
6995 { $as_echo "$as_me:$LINENO: checking whether cc puts quotes around section names" >&5
6996 $as_echo_n "checking whether cc puts quotes around section names... " >&6; }
6997 if test "${libc_cv_have_section_quotes+set}" = set; then
6998 $as_echo_n "(cached) " >&6
6999 else
7000 cat > conftest.c <<EOF
7001 static const int foo
7002 __attribute__ ((section ("bar"))) = 1;
7004 if ${CC-cc} -S conftest.c -o conftest.s; then
7005 if grep '\.section.*"bar"' conftest.s >/dev/null; then
7006 libc_cv_have_section_quotes=yes
7007 else
7008 libc_cv_have_section_quotes=no
7010 else
7011 libc_cv_have_section_quotes=unknown
7013 rm -f conftest.cs
7016 { $as_echo "$as_me:$LINENO: result: $libc_cv_have_section_quotes" >&5
7017 $as_echo "$libc_cv_have_section_quotes" >&6; }
7018 if test $libc_cv_have_section_quotes = yes; then
7019 cat >>confdefs.h <<\_ACEOF
7020 #define HAVE_SECTION_QUOTES 1
7021 _ACEOF
7028 if test $elf = yes; then
7029 libc_cv_asm_underscores=no
7030 else
7031 if test $ac_cv_prog_cc_works = yes; then
7032 { $as_echo "$as_me:$LINENO: checking for _ prefix on C symbol names" >&5
7033 $as_echo_n "checking for _ prefix on C symbol names... " >&6; }
7034 if test "${libc_cv_asm_underscores+set}" = set; then
7035 $as_echo_n "(cached) " >&6
7036 else
7037 cat >conftest.$ac_ext <<_ACEOF
7038 /* confdefs.h. */
7039 _ACEOF
7040 cat confdefs.h >>conftest.$ac_ext
7041 cat >>conftest.$ac_ext <<_ACEOF
7042 /* end confdefs.h. */
7043 asm ("_glibc_foobar:");
7045 main ()
7047 glibc_foobar ();
7049 return 0;
7051 _ACEOF
7052 rm -f conftest.$ac_objext conftest$ac_exeext
7053 if { (ac_try="$ac_link"
7054 case "(($ac_try" in
7055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7056 *) ac_try_echo=$ac_try;;
7057 esac
7058 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7059 $as_echo "$ac_try_echo") >&5
7060 (eval "$ac_link") 2>conftest.er1
7061 ac_status=$?
7062 grep -v '^ *+' conftest.er1 >conftest.err
7063 rm -f conftest.er1
7064 cat conftest.err >&5
7065 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7066 (exit $ac_status); } && {
7067 test -z "$ac_c_werror_flag" ||
7068 test ! -s conftest.err
7069 } && test -s conftest$ac_exeext && {
7070 test "$cross_compiling" = yes ||
7071 $as_test_x conftest$ac_exeext
7072 }; then
7073 libc_cv_asm_underscores=yes
7074 else
7075 $as_echo "$as_me: failed program was:" >&5
7076 sed 's/^/| /' conftest.$ac_ext >&5
7078 libc_cv_asm_underscores=no
7081 rm -rf conftest.dSYM
7082 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7083 conftest$ac_exeext conftest.$ac_ext
7085 { $as_echo "$as_me:$LINENO: result: $libc_cv_asm_underscores" >&5
7086 $as_echo "$libc_cv_asm_underscores" >&6; }
7087 else
7088 { $as_echo "$as_me:$LINENO: checking for _ prefix on C symbol names" >&5
7089 $as_echo_n "checking for _ prefix on C symbol names... " >&6; }
7090 if test "${libc_cv_asm_underscores+set}" = set; then
7091 $as_echo_n "(cached) " >&6
7092 else
7093 cat > conftest.$ac_ext <<EOF
7094 #line $LINENO "configure"
7095 #include "confdefs.h"
7096 void underscore_test(void) {
7097 return; }
7099 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7100 (eval $ac_compile) 2>&5
7101 ac_status=$?
7102 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7103 (exit $ac_status); }; then
7104 if grep _underscore_test conftest* >/dev/null; then
7105 rm -f conftest*
7106 libc_cv_asm_underscores=yes
7107 else
7108 rm -f conftest*
7109 libc_cv_asm_underscores=no
7111 else
7112 echo "configure: failed program was:" >&5
7113 cat conftest.$ac_ext >&5
7114 rm -f conftest*
7115 libc_cv_asm_underscores=no
7117 rm -f conftest*
7119 { $as_echo "$as_me:$LINENO: result: $libc_cv_asm_underscores" >&5
7120 $as_echo "$libc_cv_asm_underscores" >&6; }
7123 if test $libc_cv_asm_underscores = no; then
7124 cat >>confdefs.h <<\_ACEOF
7125 #define NO_UNDERSCORES 1
7126 _ACEOF
7130 if test $elf = yes; then
7131 libc_cv_weak_symbols=yes
7134 { $as_echo "$as_me:$LINENO: checking for assembler .weak directive" >&5
7135 $as_echo_n "checking for assembler .weak directive... " >&6; }
7136 if test "${libc_cv_asm_weak_directive+set}" = set; then
7137 $as_echo_n "(cached) " >&6
7138 else
7139 cat > conftest.s <<EOF
7140 ${libc_cv_dot_text}
7141 ${libc_cv_asm_global_directive} foo
7142 foo:
7143 .weak foo
7144 .weak bar; bar = foo
7146 if { ac_try='${CC-cc} $ASFLAGS -c conftest.s 1>&5'
7147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7148 (eval $ac_try) 2>&5
7149 ac_status=$?
7150 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7151 (exit $ac_status); }; }; then
7152 libc_cv_asm_weak_directive=yes
7153 else
7154 libc_cv_asm_weak_directive=no
7156 rm -f conftest*
7158 { $as_echo "$as_me:$LINENO: result: $libc_cv_asm_weak_directive" >&5
7159 $as_echo "$libc_cv_asm_weak_directive" >&6; }
7161 if test $libc_cv_asm_weak_directive = no; then
7162 { $as_echo "$as_me:$LINENO: checking for assembler .weakext directive" >&5
7163 $as_echo_n "checking for assembler .weakext directive... " >&6; }
7164 if test "${libc_cv_asm_weakext_directive+set}" = set; then
7165 $as_echo_n "(cached) " >&6
7166 else
7167 cat > conftest.s <<EOF
7168 ${libc_cv_dot_text}
7169 ${libc_cv_asm_global_directive} foo
7170 foo:
7171 .weakext bar foo
7172 .weakext baz
7173 ${libc_cv_asm_global_directive} baz
7174 baz:
7176 if { ac_try='${CC-cc} $ASFLAGS -c conftest.s 1>&5'
7177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7178 (eval $ac_try) 2>&5
7179 ac_status=$?
7180 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7181 (exit $ac_status); }; }; then
7182 libc_cv_asm_weakext_directive=yes
7183 else
7184 libc_cv_asm_weakext_directive=no
7186 rm -f conftest*
7188 { $as_echo "$as_me:$LINENO: result: $libc_cv_asm_weakext_directive" >&5
7189 $as_echo "$libc_cv_asm_weakext_directive" >&6; }
7191 fi # no .weak
7193 if test $libc_cv_asm_weak_directive = yes; then
7194 cat >>confdefs.h <<\_ACEOF
7195 #define HAVE_ASM_WEAK_DIRECTIVE 1
7196 _ACEOF
7198 elif test $libc_cv_asm_weakext_directive = yes; then
7199 cat >>confdefs.h <<\_ACEOF
7200 #define HAVE_ASM_WEAKEXT_DIRECTIVE 1
7201 _ACEOF
7205 { $as_echo "$as_me:$LINENO: checking whether CFI directives are supported" >&5
7206 $as_echo_n "checking whether CFI directives are supported... " >&6; }
7207 if test "${libc_cv_asm_cfi_directives+set}" = set; then
7208 $as_echo_n "(cached) " >&6
7209 else
7210 case $machine in
7211 sparc/sparc64*) cfi_offset=2047;;
7212 *) cfi_offset=0;;
7213 esac
7214 cat > conftest.s <<EOF
7215 .text
7216 .type func,%function
7217 func:
7218 .cfi_startproc
7219 .cfi_remember_state
7220 .cfi_rel_offset 1, $cfi_offset
7221 .cfi_endproc
7223 if { ac_try='${CC-cc} $ASFLAGS -c conftest.s 1>&5'
7224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7225 (eval $ac_try) 2>&5
7226 ac_status=$?
7227 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7228 (exit $ac_status); }; }; then
7229 libc_cv_asm_cfi_directives=yes
7230 else
7231 libc_cv_asm_cfi_directives=no
7233 rm -f conftest*
7235 { $as_echo "$as_me:$LINENO: result: $libc_cv_asm_cfi_directives" >&5
7236 $as_echo "$libc_cv_asm_cfi_directives" >&6; }
7237 if test $libc_cv_asm_cfi_directives = yes; then
7238 cat >>confdefs.h <<\_ACEOF
7239 #define HAVE_ASM_CFI_DIRECTIVES 1
7240 _ACEOF
7244 { $as_echo "$as_me:$LINENO: checking for ld --no-whole-archive" >&5
7245 $as_echo_n "checking for ld --no-whole-archive... " >&6; }
7246 if test "${libc_cv_ld_no_whole_archive+set}" = set; then
7247 $as_echo_n "(cached) " >&6
7248 else
7249 cat > conftest.c <<\EOF
7250 _start () {}
7251 int __eh_pc;
7252 __throw () {}
7254 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
7255 -nostdlib -nostartfiles -Wl,--no-whole-archive
7256 -o conftest conftest.c 1>&5'
7257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7258 (eval $ac_try) 2>&5
7259 ac_status=$?
7260 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7261 (exit $ac_status); }; }; then
7262 libc_cv_ld_no_whole_archive=yes
7263 else
7264 libc_cv_ld_no_whole_archive=no
7266 rm -f conftest*
7268 { $as_echo "$as_me:$LINENO: result: $libc_cv_ld_no_whole_archive" >&5
7269 $as_echo "$libc_cv_ld_no_whole_archive" >&6; }
7270 if test $libc_cv_ld_no_whole_archive = yes; then
7271 no_whole_archive=-Wl,--no-whole-archive
7274 { $as_echo "$as_me:$LINENO: checking for gcc -fexceptions" >&5
7275 $as_echo_n "checking for gcc -fexceptions... " >&6; }
7276 if test "${libc_cv_gcc_exceptions+set}" = set; then
7277 $as_echo_n "(cached) " >&6
7278 else
7279 cat > conftest.c <<\EOF
7280 _start () {}
7281 int __eh_pc;
7282 __throw () {}
7284 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
7285 -nostdlib -nostartfiles -fexceptions
7286 -o conftest conftest.c 1>&5'
7287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7288 (eval $ac_try) 2>&5
7289 ac_status=$?
7290 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7291 (exit $ac_status); }; }; then
7292 libc_cv_gcc_exceptions=yes
7293 else
7294 libc_cv_gcc_exceptions=no
7296 rm -f conftest*
7298 { $as_echo "$as_me:$LINENO: result: $libc_cv_gcc_exceptions" >&5
7299 $as_echo "$libc_cv_gcc_exceptions" >&6; }
7300 if test $libc_cv_gcc_exceptions = yes; then
7301 exceptions=-fexceptions
7304 if test "$host_cpu" = powerpc ; then
7305 # Check for a bug present in at least versions 2.8.x of GCC
7306 # and versions 1.0.x of EGCS.
7307 { $as_echo "$as_me:$LINENO: checking whether clobbering cr0 causes problems" >&5
7308 $as_echo_n "checking whether clobbering cr0 causes problems... " >&6; }
7309 if test "${libc_cv_c_asmcr0_bug+set}" = set; then
7310 $as_echo_n "(cached) " >&6
7311 else
7312 cat >conftest.$ac_ext <<_ACEOF
7313 /* confdefs.h. */
7314 _ACEOF
7315 cat confdefs.h >>conftest.$ac_ext
7316 cat >>conftest.$ac_ext <<_ACEOF
7317 /* end confdefs.h. */
7318 int tester(int x) { asm ("" : : : "cc"); return x & 123; }
7320 main ()
7324 return 0;
7326 _ACEOF
7327 rm -f conftest.$ac_objext
7328 if { (ac_try="$ac_compile"
7329 case "(($ac_try" in
7330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7331 *) ac_try_echo=$ac_try;;
7332 esac
7333 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7334 $as_echo "$ac_try_echo") >&5
7335 (eval "$ac_compile") 2>conftest.er1
7336 ac_status=$?
7337 grep -v '^ *+' conftest.er1 >conftest.err
7338 rm -f conftest.er1
7339 cat conftest.err >&5
7340 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7341 (exit $ac_status); } && {
7342 test -z "$ac_c_werror_flag" ||
7343 test ! -s conftest.err
7344 } && test -s conftest.$ac_objext; then
7345 libc_cv_c_asmcr0_bug='no'
7346 else
7347 $as_echo "$as_me: failed program was:" >&5
7348 sed 's/^/| /' conftest.$ac_ext >&5
7350 libc_cv_c_asmcr0_bug='yes'
7353 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7355 { $as_echo "$as_me:$LINENO: result: $libc_cv_c_asmcr0_bug" >&5
7356 $as_echo "$libc_cv_c_asmcr0_bug" >&6; }
7357 if test "$libc_cv_c_asmcr0_bug" != 'no'; then
7358 cat >>confdefs.h <<\_ACEOF
7359 #define BROKEN_PPC_ASM_CR0 1
7360 _ACEOF
7365 { $as_echo "$as_me:$LINENO: checking for __builtin_expect" >&5
7366 $as_echo_n "checking for __builtin_expect... " >&6; }
7367 if test "${libc_cv_gcc_builtin_expect+set}" = set; then
7368 $as_echo_n "(cached) " >&6
7369 else
7370 cat > conftest.c <<EOF
7371 #line $LINENO "configure"
7372 int foo (int a)
7374 a = __builtin_expect (a, 10);
7375 return a == 10 ? 0 : 1;
7378 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS -nostdlib -nostartfiles
7379 -o conftest conftest.c -lgcc >&5'
7380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7381 (eval $ac_try) 2>&5
7382 ac_status=$?
7383 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7384 (exit $ac_status); }; }; then
7385 libc_cv_gcc_builtin_expect=yes
7386 else
7387 libc_cv_gcc_builtin_expect=no
7389 rm -f conftest*
7391 { $as_echo "$as_me:$LINENO: result: $libc_cv_gcc_builtin_expect" >&5
7392 $as_echo "$libc_cv_gcc_builtin_expect" >&6; }
7393 if test "$libc_cv_gcc_builtin_expect" = yes; then
7394 cat >>confdefs.h <<\_ACEOF
7395 #define HAVE_BUILTIN_EXPECT 1
7396 _ACEOF
7400 { $as_echo "$as_me:$LINENO: checking for __builtin_memset" >&5
7401 $as_echo_n "checking for __builtin_memset... " >&6; }
7402 if test "${libc_cv_gcc_builtin_memset+set}" = set; then
7403 $as_echo_n "(cached) " >&6
7404 else
7405 cat > conftest.c <<\EOF
7406 void zero (void *x)
7408 __builtin_memset (x, 0, 1000);
7411 if { ac_try='${CC-cc} -O3 -S conftest.c -o - | fgrep "memset" > /dev/null'
7412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7413 (eval $ac_try) 2>&5
7414 ac_status=$?
7415 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7416 (exit $ac_status); }; };
7417 then
7418 libc_cv_gcc_builtin_memset=no
7419 else
7420 libc_cv_gcc_builtin_memset=yes
7422 rm -f conftest*
7424 { $as_echo "$as_me:$LINENO: result: $libc_cv_gcc_builtin_memset" >&5
7425 $as_echo "$libc_cv_gcc_builtin_memset" >&6; }
7426 if test "$libc_cv_gcc_builtin_memset" = yes ; then
7427 cat >>confdefs.h <<\_ACEOF
7428 #define HAVE_BUILTIN_MEMSET 1
7429 _ACEOF
7433 { $as_echo "$as_me:$LINENO: checking for redirection of built-in functions" >&5
7434 $as_echo_n "checking for redirection of built-in functions... " >&6; }
7435 if test "${libc_cv_gcc_builtin_redirection+set}" = set; then
7436 $as_echo_n "(cached) " >&6
7437 else
7438 cat > conftest.c <<\EOF
7439 extern char *strstr (const char *, const char *) __asm ("my_strstr");
7440 char *foo (const char *a, const char *b)
7442 return __builtin_strstr (a, b);
7445 if { ac_try='${CC-cc} -O3 -S conftest.c -o - | fgrep "my_strstr" > /dev/null'
7446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7447 (eval $ac_try) 2>&5
7448 ac_status=$?
7449 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7450 (exit $ac_status); }; };
7451 then
7452 libc_cv_gcc_builtin_redirection=yes
7453 else
7454 libc_cv_gcc_builtin_redirection=no
7456 rm -f conftest*
7458 { $as_echo "$as_me:$LINENO: result: $libc_cv_gcc_builtin_redirection" >&5
7459 $as_echo "$libc_cv_gcc_builtin_redirection" >&6; }
7460 if test "$libc_cv_gcc_builtin_redirection" = yes ; then
7461 cat >>confdefs.h <<\_ACEOF
7462 #define HAVE_BUILTIN_REDIRECTION 1
7463 _ACEOF
7467 if test "x$use__thread" != xno; then
7468 { $as_echo "$as_me:$LINENO: checking for __thread" >&5
7469 $as_echo_n "checking for __thread... " >&6; }
7470 if test "${libc_cv_gcc___thread+set}" = set; then
7471 $as_echo_n "(cached) " >&6
7472 else
7473 cat > conftest.c <<\EOF
7474 __thread int a = 42;
7476 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -c conftest.c >&5'
7477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7478 (eval $ac_try) 2>&5
7479 ac_status=$?
7480 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7481 (exit $ac_status); }; }; then
7482 libc_cv_gcc___thread=yes
7483 else
7484 libc_cv_gcc___thread=no
7486 rm -f conftest*
7488 { $as_echo "$as_me:$LINENO: result: $libc_cv_gcc___thread" >&5
7489 $as_echo "$libc_cv_gcc___thread" >&6; }
7490 if test "$libc_cv_gcc___thread" = yes; then
7491 cat >>confdefs.h <<\_ACEOF
7492 #define HAVE___THREAD 1
7493 _ACEOF
7496 else
7497 libc_cv_gcc___thread=no
7500 if test "$libc_cv_gcc___thread" = yes; then
7501 { $as_echo "$as_me:$LINENO: checking for tls_model attribute" >&5
7502 $as_echo_n "checking for tls_model attribute... " >&6; }
7503 if test "${libc_cv_gcc_tls_model_attr+set}" = set; then
7504 $as_echo_n "(cached) " >&6
7505 else
7506 cat > conftest.c <<\EOF
7507 extern __thread int a __attribute__((tls_model ("initial-exec")));
7509 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -S -Werror conftest.c >&5'
7510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7511 (eval $ac_try) 2>&5
7512 ac_status=$?
7513 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7514 (exit $ac_status); }; }; then
7515 libc_cv_gcc_tls_model_attr=yes
7516 else
7517 libc_cv_gcc_tls_model_attr=no
7519 rm -f conftest*
7521 { $as_echo "$as_me:$LINENO: result: $libc_cv_gcc_tls_model_attr" >&5
7522 $as_echo "$libc_cv_gcc_tls_model_attr" >&6; }
7523 if test "$libc_cv_gcc_tls_model_attr" = yes; then
7524 cat >>confdefs.h <<\_ACEOF
7525 #define HAVE_TLS_MODEL_ATTRIBUTE 1
7526 _ACEOF
7531 if test -n "$submachine"; then
7532 { $as_echo "$as_me:$LINENO: checking for compiler option for CPU variant" >&5
7533 $as_echo_n "checking for compiler option for CPU variant... " >&6; }
7534 if test "${libc_cv_cc_submachine+set}" = set; then
7535 $as_echo_n "(cached) " >&6
7536 else
7537 libc_cv_cc_submachine=no
7538 for opt in "-march=$submachine" "-mcpu=$submachine"; do
7539 if { ac_try='${CC-cc} $opt -xc /dev/null -S -o /dev/null'
7540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7541 (eval $ac_try) 2>&5
7542 ac_status=$?
7543 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7544 (exit $ac_status); }; }; then
7545 libc_cv_cc_submachine="$opt"
7546 break
7548 done
7550 { $as_echo "$as_me:$LINENO: result: $libc_cv_cc_submachine" >&5
7551 $as_echo "$libc_cv_cc_submachine" >&6; }
7552 if test "x$libc_cv_cc_submachine" = xno; then
7553 { { $as_echo "$as_me:$LINENO: error: ${CC-cc} does not support $submachine" >&5
7554 $as_echo "$as_me: error: ${CC-cc} does not support $submachine" >&2;}
7555 { (exit 1); exit 1; }; }
7560 { $as_echo "$as_me:$LINENO: checking for libgd" >&5
7561 $as_echo_n "checking for libgd... " >&6; }
7562 if test "$with_gd" != "no"; then
7563 old_CFLAGS="$CFLAGS"
7564 CFLAGS="$CFLAGS $libgd_include"
7565 old_LDFLAGS="$LDFLAGS"
7566 LDFLAGS="$LDFLAGS $libgd_ldflags"
7567 old_LIBS="$LIBS"
7568 LIBS="$LIBS -lgd -lpng -lz -lm"
7569 cat >conftest.$ac_ext <<_ACEOF
7570 /* confdefs.h. */
7571 _ACEOF
7572 cat confdefs.h >>conftest.$ac_ext
7573 cat >>conftest.$ac_ext <<_ACEOF
7574 /* end confdefs.h. */
7575 #include <gd.h>
7577 main ()
7579 gdImagePng (0, 0)
7581 return 0;
7583 _ACEOF
7584 rm -f conftest.$ac_objext conftest$ac_exeext
7585 if { (ac_try="$ac_link"
7586 case "(($ac_try" in
7587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7588 *) ac_try_echo=$ac_try;;
7589 esac
7590 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7591 $as_echo "$ac_try_echo") >&5
7592 (eval "$ac_link") 2>conftest.er1
7593 ac_status=$?
7594 grep -v '^ *+' conftest.er1 >conftest.err
7595 rm -f conftest.er1
7596 cat conftest.err >&5
7597 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7598 (exit $ac_status); } && {
7599 test -z "$ac_c_werror_flag" ||
7600 test ! -s conftest.err
7601 } && test -s conftest$ac_exeext && {
7602 test "$cross_compiling" = yes ||
7603 $as_test_x conftest$ac_exeext
7604 }; then
7605 LIBGD=yes
7606 else
7607 $as_echo "$as_me: failed program was:" >&5
7608 sed 's/^/| /' conftest.$ac_ext >&5
7610 LIBGD=no
7613 rm -rf conftest.dSYM
7614 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7615 conftest$ac_exeext conftest.$ac_ext
7616 CFLAGS="$old_CFLAGS"
7617 LDFLAGS="$old_LDFLAGS"
7618 LIBS="$old_LIBS"
7619 else
7620 LIBGD=no
7622 { $as_echo "$as_me:$LINENO: result: $LIBGD" >&5
7623 $as_echo "$LIBGD" >&6; }
7626 # SELinux detection
7627 if test x$with_selinux = xno ; then
7628 have_selinux=no;
7629 else
7630 # See if we have the SELinux library
7631 { $as_echo "$as_me:$LINENO: checking for is_selinux_enabled in -lselinux" >&5
7632 $as_echo_n "checking for is_selinux_enabled in -lselinux... " >&6; }
7633 if test "${ac_cv_lib_selinux_is_selinux_enabled+set}" = set; then
7634 $as_echo_n "(cached) " >&6
7635 else
7636 ac_check_lib_save_LIBS=$LIBS
7637 LIBS="-lselinux $LIBS"
7638 cat >conftest.$ac_ext <<_ACEOF
7639 /* confdefs.h. */
7640 _ACEOF
7641 cat confdefs.h >>conftest.$ac_ext
7642 cat >>conftest.$ac_ext <<_ACEOF
7643 /* end confdefs.h. */
7645 /* Override any GCC internal prototype to avoid an error.
7646 Use char because int might match the return type of a GCC
7647 builtin and then its argument prototype would still apply. */
7648 #ifdef __cplusplus
7649 extern "C"
7650 #endif
7651 char is_selinux_enabled ();
7653 main ()
7655 return is_selinux_enabled ();
7657 return 0;
7659 _ACEOF
7660 rm -f conftest.$ac_objext conftest$ac_exeext
7661 if { (ac_try="$ac_link"
7662 case "(($ac_try" in
7663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7664 *) ac_try_echo=$ac_try;;
7665 esac
7666 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7667 $as_echo "$ac_try_echo") >&5
7668 (eval "$ac_link") 2>conftest.er1
7669 ac_status=$?
7670 grep -v '^ *+' conftest.er1 >conftest.err
7671 rm -f conftest.er1
7672 cat conftest.err >&5
7673 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7674 (exit $ac_status); } && {
7675 test -z "$ac_c_werror_flag" ||
7676 test ! -s conftest.err
7677 } && test -s conftest$ac_exeext && {
7678 test "$cross_compiling" = yes ||
7679 $as_test_x conftest$ac_exeext
7680 }; then
7681 ac_cv_lib_selinux_is_selinux_enabled=yes
7682 else
7683 $as_echo "$as_me: failed program was:" >&5
7684 sed 's/^/| /' conftest.$ac_ext >&5
7686 ac_cv_lib_selinux_is_selinux_enabled=no
7689 rm -rf conftest.dSYM
7690 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7691 conftest$ac_exeext conftest.$ac_ext
7692 LIBS=$ac_check_lib_save_LIBS
7694 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5
7695 $as_echo "$ac_cv_lib_selinux_is_selinux_enabled" >&6; }
7696 if test "x$ac_cv_lib_selinux_is_selinux_enabled" = x""yes; then
7697 have_selinux=yes
7698 else
7699 have_selinux=no
7702 # See if we have the SELinux header with the NSCD permissions in it.
7703 if test x$have_selinux = xyes ; then
7704 { $as_echo "$as_me:$LINENO: checking for NSCD Flask permissions in selinux/av_permissions.h" >&5
7705 $as_echo_n "checking for NSCD Flask permissions in selinux/av_permissions.h... " >&6; }
7706 cat >conftest.$ac_ext <<_ACEOF
7707 /* confdefs.h. */
7708 _ACEOF
7709 cat confdefs.h >>conftest.$ac_ext
7710 cat >>conftest.$ac_ext <<_ACEOF
7711 /* end confdefs.h. */
7712 #include <selinux/av_permissions.h>
7714 main ()
7716 #ifdef NSCD__SHMEMHOST
7717 return 0;
7718 #else
7719 #error NSCD__SHMEMHOST not defined
7720 #endif
7722 return 0;
7724 _ACEOF
7725 rm -f conftest.$ac_objext
7726 if { (ac_try="$ac_compile"
7727 case "(($ac_try" in
7728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7729 *) ac_try_echo=$ac_try;;
7730 esac
7731 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7732 $as_echo "$ac_try_echo") >&5
7733 (eval "$ac_compile") 2>conftest.er1
7734 ac_status=$?
7735 grep -v '^ *+' conftest.er1 >conftest.err
7736 rm -f conftest.er1
7737 cat conftest.err >&5
7738 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7739 (exit $ac_status); } && {
7740 test -z "$ac_c_werror_flag" ||
7741 test ! -s conftest.err
7742 } && test -s conftest.$ac_objext; then
7743 have_selinux=yes
7744 else
7745 $as_echo "$as_me: failed program was:" >&5
7746 sed 's/^/| /' conftest.$ac_ext >&5
7748 have_selinux=no
7751 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7752 { $as_echo "$as_me:$LINENO: result: $have_selinux" >&5
7753 $as_echo "$have_selinux" >&6; }
7756 if test x$with_selinux = xyes ; then
7757 if test x$have_selinux = xno ; then
7758 { { $as_echo "$as_me:$LINENO: error: SELinux explicitly required, but sufficiently recent SELinux library not found" >&5
7759 $as_echo "$as_me: error: SELinux explicitly required, but sufficiently recent SELinux library not found" >&2;}
7760 { (exit 1); exit 1; }; }
7764 # Check if we're building with SELinux support.
7765 if test "x$have_selinux" = xyes; then
7767 cat >>confdefs.h <<\_ACEOF
7768 #define HAVE_SELINUX 1
7769 _ACEOF
7772 # See if we have the libaudit library
7773 { $as_echo "$as_me:$LINENO: checking for audit_log_user_avc_message in -laudit" >&5
7774 $as_echo_n "checking for audit_log_user_avc_message in -laudit... " >&6; }
7775 if test "${ac_cv_lib_audit_audit_log_user_avc_message+set}" = set; then
7776 $as_echo_n "(cached) " >&6
7777 else
7778 ac_check_lib_save_LIBS=$LIBS
7779 LIBS="-laudit $LIBS"
7780 cat >conftest.$ac_ext <<_ACEOF
7781 /* confdefs.h. */
7782 _ACEOF
7783 cat confdefs.h >>conftest.$ac_ext
7784 cat >>conftest.$ac_ext <<_ACEOF
7785 /* end confdefs.h. */
7787 /* Override any GCC internal prototype to avoid an error.
7788 Use char because int might match the return type of a GCC
7789 builtin and then its argument prototype would still apply. */
7790 #ifdef __cplusplus
7791 extern "C"
7792 #endif
7793 char audit_log_user_avc_message ();
7795 main ()
7797 return audit_log_user_avc_message ();
7799 return 0;
7801 _ACEOF
7802 rm -f conftest.$ac_objext conftest$ac_exeext
7803 if { (ac_try="$ac_link"
7804 case "(($ac_try" in
7805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7806 *) ac_try_echo=$ac_try;;
7807 esac
7808 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7809 $as_echo "$ac_try_echo") >&5
7810 (eval "$ac_link") 2>conftest.er1
7811 ac_status=$?
7812 grep -v '^ *+' conftest.er1 >conftest.err
7813 rm -f conftest.er1
7814 cat conftest.err >&5
7815 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7816 (exit $ac_status); } && {
7817 test -z "$ac_c_werror_flag" ||
7818 test ! -s conftest.err
7819 } && test -s conftest$ac_exeext && {
7820 test "$cross_compiling" = yes ||
7821 $as_test_x conftest$ac_exeext
7822 }; then
7823 ac_cv_lib_audit_audit_log_user_avc_message=yes
7824 else
7825 $as_echo "$as_me: failed program was:" >&5
7826 sed 's/^/| /' conftest.$ac_ext >&5
7828 ac_cv_lib_audit_audit_log_user_avc_message=no
7831 rm -rf conftest.dSYM
7832 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7833 conftest$ac_exeext conftest.$ac_ext
7834 LIBS=$ac_check_lib_save_LIBS
7836 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_audit_audit_log_user_avc_message" >&5
7837 $as_echo "$ac_cv_lib_audit_audit_log_user_avc_message" >&6; }
7838 if test "x$ac_cv_lib_audit_audit_log_user_avc_message" = x""yes; then
7839 have_libaudit=yes
7840 else
7841 have_libaudit=no
7844 if test "x$have_libaudit" = xyes; then
7846 cat >>confdefs.h <<\_ACEOF
7847 #define HAVE_LIBAUDIT 1
7848 _ACEOF
7853 # See if we have the libcap library
7854 { $as_echo "$as_me:$LINENO: checking for cap_init in -lcap" >&5
7855 $as_echo_n "checking for cap_init in -lcap... " >&6; }
7856 if test "${ac_cv_lib_cap_cap_init+set}" = set; then
7857 $as_echo_n "(cached) " >&6
7858 else
7859 ac_check_lib_save_LIBS=$LIBS
7860 LIBS="-lcap $LIBS"
7861 cat >conftest.$ac_ext <<_ACEOF
7862 /* confdefs.h. */
7863 _ACEOF
7864 cat confdefs.h >>conftest.$ac_ext
7865 cat >>conftest.$ac_ext <<_ACEOF
7866 /* end confdefs.h. */
7868 /* Override any GCC internal prototype to avoid an error.
7869 Use char because int might match the return type of a GCC
7870 builtin and then its argument prototype would still apply. */
7871 #ifdef __cplusplus
7872 extern "C"
7873 #endif
7874 char cap_init ();
7876 main ()
7878 return cap_init ();
7880 return 0;
7882 _ACEOF
7883 rm -f conftest.$ac_objext conftest$ac_exeext
7884 if { (ac_try="$ac_link"
7885 case "(($ac_try" in
7886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7887 *) ac_try_echo=$ac_try;;
7888 esac
7889 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7890 $as_echo "$ac_try_echo") >&5
7891 (eval "$ac_link") 2>conftest.er1
7892 ac_status=$?
7893 grep -v '^ *+' conftest.er1 >conftest.err
7894 rm -f conftest.er1
7895 cat conftest.err >&5
7896 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7897 (exit $ac_status); } && {
7898 test -z "$ac_c_werror_flag" ||
7899 test ! -s conftest.err
7900 } && test -s conftest$ac_exeext && {
7901 test "$cross_compiling" = yes ||
7902 $as_test_x conftest$ac_exeext
7903 }; then
7904 ac_cv_lib_cap_cap_init=yes
7905 else
7906 $as_echo "$as_me: failed program was:" >&5
7907 sed 's/^/| /' conftest.$ac_ext >&5
7909 ac_cv_lib_cap_cap_init=no
7912 rm -rf conftest.dSYM
7913 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7914 conftest$ac_exeext conftest.$ac_ext
7915 LIBS=$ac_check_lib_save_LIBS
7917 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_cap_cap_init" >&5
7918 $as_echo "$ac_cv_lib_cap_cap_init" >&6; }
7919 if test "x$ac_cv_lib_cap_cap_init" = x""yes; then
7920 have_libcap=yes
7921 else
7922 have_libcap=no
7925 if test "x$have_libcap" = xyes; then
7927 cat >>confdefs.h <<\_ACEOF
7928 #define HAVE_LIBCAP 1
7929 _ACEOF
7937 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
7938 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
7939 if test "${ac_cv_path_GREP+set}" = set; then
7940 $as_echo_n "(cached) " >&6
7941 else
7942 if test -z "$GREP"; then
7943 ac_path_GREP_found=false
7944 # Loop through the user's path and test for each of PROGNAME-LIST
7945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7946 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7948 IFS=$as_save_IFS
7949 test -z "$as_dir" && as_dir=.
7950 for ac_prog in grep ggrep; do
7951 for ac_exec_ext in '' $ac_executable_extensions; do
7952 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
7953 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
7954 # Check for GNU ac_path_GREP and select it if it is found.
7955 # Check for GNU $ac_path_GREP
7956 case `"$ac_path_GREP" --version 2>&1` in
7957 *GNU*)
7958 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
7960 ac_count=0
7961 $as_echo_n 0123456789 >"conftest.in"
7962 while :
7964 cat "conftest.in" "conftest.in" >"conftest.tmp"
7965 mv "conftest.tmp" "conftest.in"
7966 cp "conftest.in" "conftest.nl"
7967 $as_echo 'GREP' >> "conftest.nl"
7968 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7969 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7970 ac_count=`expr $ac_count + 1`
7971 if test $ac_count -gt ${ac_path_GREP_max-0}; then
7972 # Best one so far, save it but keep looking for a better one
7973 ac_cv_path_GREP="$ac_path_GREP"
7974 ac_path_GREP_max=$ac_count
7976 # 10*(2^10) chars as input seems more than enough
7977 test $ac_count -gt 10 && break
7978 done
7979 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7980 esac
7982 $ac_path_GREP_found && break 3
7983 done
7984 done
7985 done
7986 IFS=$as_save_IFS
7987 if test -z "$ac_cv_path_GREP"; then
7988 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
7989 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
7990 { (exit 1); exit 1; }; }
7992 else
7993 ac_cv_path_GREP=$GREP
7997 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
7998 $as_echo "$ac_cv_path_GREP" >&6; }
7999 GREP="$ac_cv_path_GREP"
8002 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
8003 $as_echo_n "checking for egrep... " >&6; }
8004 if test "${ac_cv_path_EGREP+set}" = set; then
8005 $as_echo_n "(cached) " >&6
8006 else
8007 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
8008 then ac_cv_path_EGREP="$GREP -E"
8009 else
8010 if test -z "$EGREP"; then
8011 ac_path_EGREP_found=false
8012 # Loop through the user's path and test for each of PROGNAME-LIST
8013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8014 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
8016 IFS=$as_save_IFS
8017 test -z "$as_dir" && as_dir=.
8018 for ac_prog in egrep; do
8019 for ac_exec_ext in '' $ac_executable_extensions; do
8020 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
8021 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
8022 # Check for GNU ac_path_EGREP and select it if it is found.
8023 # Check for GNU $ac_path_EGREP
8024 case `"$ac_path_EGREP" --version 2>&1` in
8025 *GNU*)
8026 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
8028 ac_count=0
8029 $as_echo_n 0123456789 >"conftest.in"
8030 while :
8032 cat "conftest.in" "conftest.in" >"conftest.tmp"
8033 mv "conftest.tmp" "conftest.in"
8034 cp "conftest.in" "conftest.nl"
8035 $as_echo 'EGREP' >> "conftest.nl"
8036 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
8037 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
8038 ac_count=`expr $ac_count + 1`
8039 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
8040 # Best one so far, save it but keep looking for a better one
8041 ac_cv_path_EGREP="$ac_path_EGREP"
8042 ac_path_EGREP_max=$ac_count
8044 # 10*(2^10) chars as input seems more than enough
8045 test $ac_count -gt 10 && break
8046 done
8047 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
8048 esac
8050 $ac_path_EGREP_found && break 3
8051 done
8052 done
8053 done
8054 IFS=$as_save_IFS
8055 if test -z "$ac_cv_path_EGREP"; then
8056 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
8057 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
8058 { (exit 1); exit 1; }; }
8060 else
8061 ac_cv_path_EGREP=$EGREP
8066 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
8067 $as_echo "$ac_cv_path_EGREP" >&6; }
8068 EGREP="$ac_cv_path_EGREP"
8071 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
8072 $as_echo_n "checking for ANSI C header files... " >&6; }
8073 if test "${ac_cv_header_stdc+set}" = set; then
8074 $as_echo_n "(cached) " >&6
8075 else
8076 cat >conftest.$ac_ext <<_ACEOF
8077 /* confdefs.h. */
8078 _ACEOF
8079 cat confdefs.h >>conftest.$ac_ext
8080 cat >>conftest.$ac_ext <<_ACEOF
8081 /* end confdefs.h. */
8082 #include <stdlib.h>
8083 #include <stdarg.h>
8084 #include <string.h>
8085 #include <float.h>
8088 main ()
8092 return 0;
8094 _ACEOF
8095 rm -f conftest.$ac_objext
8096 if { (ac_try="$ac_compile"
8097 case "(($ac_try" in
8098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8099 *) ac_try_echo=$ac_try;;
8100 esac
8101 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8102 $as_echo "$ac_try_echo") >&5
8103 (eval "$ac_compile") 2>conftest.er1
8104 ac_status=$?
8105 grep -v '^ *+' conftest.er1 >conftest.err
8106 rm -f conftest.er1
8107 cat conftest.err >&5
8108 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8109 (exit $ac_status); } && {
8110 test -z "$ac_c_werror_flag" ||
8111 test ! -s conftest.err
8112 } && test -s conftest.$ac_objext; then
8113 ac_cv_header_stdc=yes
8114 else
8115 $as_echo "$as_me: failed program was:" >&5
8116 sed 's/^/| /' conftest.$ac_ext >&5
8118 ac_cv_header_stdc=no
8121 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8123 if test $ac_cv_header_stdc = yes; then
8124 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8125 cat >conftest.$ac_ext <<_ACEOF
8126 /* confdefs.h. */
8127 _ACEOF
8128 cat confdefs.h >>conftest.$ac_ext
8129 cat >>conftest.$ac_ext <<_ACEOF
8130 /* end confdefs.h. */
8131 #include <string.h>
8133 _ACEOF
8134 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8135 $EGREP "memchr" >/dev/null 2>&1; then
8137 else
8138 ac_cv_header_stdc=no
8140 rm -f conftest*
8144 if test $ac_cv_header_stdc = yes; then
8145 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8146 cat >conftest.$ac_ext <<_ACEOF
8147 /* confdefs.h. */
8148 _ACEOF
8149 cat confdefs.h >>conftest.$ac_ext
8150 cat >>conftest.$ac_ext <<_ACEOF
8151 /* end confdefs.h. */
8152 #include <stdlib.h>
8154 _ACEOF
8155 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8156 $EGREP "free" >/dev/null 2>&1; then
8158 else
8159 ac_cv_header_stdc=no
8161 rm -f conftest*
8165 if test $ac_cv_header_stdc = yes; then
8166 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8167 if test "$cross_compiling" = yes; then
8169 else
8170 cat >conftest.$ac_ext <<_ACEOF
8171 /* confdefs.h. */
8172 _ACEOF
8173 cat confdefs.h >>conftest.$ac_ext
8174 cat >>conftest.$ac_ext <<_ACEOF
8175 /* end confdefs.h. */
8176 #include <ctype.h>
8177 #include <stdlib.h>
8178 #if ((' ' & 0x0FF) == 0x020)
8179 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8180 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8181 #else
8182 # define ISLOWER(c) \
8183 (('a' <= (c) && (c) <= 'i') \
8184 || ('j' <= (c) && (c) <= 'r') \
8185 || ('s' <= (c) && (c) <= 'z'))
8186 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8187 #endif
8189 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8191 main ()
8193 int i;
8194 for (i = 0; i < 256; i++)
8195 if (XOR (islower (i), ISLOWER (i))
8196 || toupper (i) != TOUPPER (i))
8197 return 2;
8198 return 0;
8200 _ACEOF
8201 rm -f conftest$ac_exeext
8202 if { (ac_try="$ac_link"
8203 case "(($ac_try" in
8204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8205 *) ac_try_echo=$ac_try;;
8206 esac
8207 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8208 $as_echo "$ac_try_echo") >&5
8209 (eval "$ac_link") 2>&5
8210 ac_status=$?
8211 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8212 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8213 { (case "(($ac_try" in
8214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8215 *) ac_try_echo=$ac_try;;
8216 esac
8217 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8218 $as_echo "$ac_try_echo") >&5
8219 (eval "$ac_try") 2>&5
8220 ac_status=$?
8221 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8222 (exit $ac_status); }; }; then
8224 else
8225 $as_echo "$as_me: program exited with status $ac_status" >&5
8226 $as_echo "$as_me: failed program was:" >&5
8227 sed 's/^/| /' conftest.$ac_ext >&5
8229 ( exit $ac_status )
8230 ac_cv_header_stdc=no
8232 rm -rf conftest.dSYM
8233 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8239 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8240 $as_echo "$ac_cv_header_stdc" >&6; }
8241 if test $ac_cv_header_stdc = yes; then
8243 cat >>confdefs.h <<\_ACEOF
8244 #define STDC_HEADERS 1
8245 _ACEOF
8249 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8259 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8260 inttypes.h stdint.h unistd.h
8262 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8263 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8264 $as_echo_n "checking for $ac_header... " >&6; }
8265 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8266 $as_echo_n "(cached) " >&6
8267 else
8268 cat >conftest.$ac_ext <<_ACEOF
8269 /* confdefs.h. */
8270 _ACEOF
8271 cat confdefs.h >>conftest.$ac_ext
8272 cat >>conftest.$ac_ext <<_ACEOF
8273 /* end confdefs.h. */
8274 $ac_includes_default
8276 #include <$ac_header>
8277 _ACEOF
8278 rm -f conftest.$ac_objext
8279 if { (ac_try="$ac_compile"
8280 case "(($ac_try" in
8281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8282 *) ac_try_echo=$ac_try;;
8283 esac
8284 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8285 $as_echo "$ac_try_echo") >&5
8286 (eval "$ac_compile") 2>conftest.er1
8287 ac_status=$?
8288 grep -v '^ *+' conftest.er1 >conftest.err
8289 rm -f conftest.er1
8290 cat conftest.err >&5
8291 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8292 (exit $ac_status); } && {
8293 test -z "$ac_c_werror_flag" ||
8294 test ! -s conftest.err
8295 } && test -s conftest.$ac_objext; then
8296 eval "$as_ac_Header=yes"
8297 else
8298 $as_echo "$as_me: failed program was:" >&5
8299 sed 's/^/| /' conftest.$ac_ext >&5
8301 eval "$as_ac_Header=no"
8304 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8306 ac_res=`eval 'as_val=${'$as_ac_Header'}
8307 $as_echo "$as_val"'`
8308 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8309 $as_echo "$ac_res" >&6; }
8310 as_val=`eval 'as_val=${'$as_ac_Header'}
8311 $as_echo "$as_val"'`
8312 if test "x$as_val" = x""yes; then
8313 cat >>confdefs.h <<_ACEOF
8314 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8315 _ACEOF
8319 done
8322 # The cast to long int works around a bug in the HP C Compiler
8323 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8324 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8325 # This bug is HP SR number 8606223364.
8326 { $as_echo "$as_me:$LINENO: checking size of long double" >&5
8327 $as_echo_n "checking size of long double... " >&6; }
8328 if test "${ac_cv_sizeof_long_double+set}" = set; then
8329 $as_echo_n "(cached) " >&6
8330 else
8331 if test "$cross_compiling" = yes; then
8332 # Depending upon the size, compute the lo and hi bounds.
8333 cat >conftest.$ac_ext <<_ACEOF
8334 /* confdefs.h. */
8335 _ACEOF
8336 cat confdefs.h >>conftest.$ac_ext
8337 cat >>conftest.$ac_ext <<_ACEOF
8338 /* end confdefs.h. */
8339 $ac_includes_default
8341 main ()
8343 static int test_array [1 - 2 * !(((long int) (sizeof (long double))) >= 0)];
8344 test_array [0] = 0
8347 return 0;
8349 _ACEOF
8350 rm -f conftest.$ac_objext
8351 if { (ac_try="$ac_compile"
8352 case "(($ac_try" in
8353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8354 *) ac_try_echo=$ac_try;;
8355 esac
8356 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8357 $as_echo "$ac_try_echo") >&5
8358 (eval "$ac_compile") 2>conftest.er1
8359 ac_status=$?
8360 grep -v '^ *+' conftest.er1 >conftest.err
8361 rm -f conftest.er1
8362 cat conftest.err >&5
8363 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8364 (exit $ac_status); } && {
8365 test -z "$ac_c_werror_flag" ||
8366 test ! -s conftest.err
8367 } && test -s conftest.$ac_objext; then
8368 ac_lo=0 ac_mid=0
8369 while :; do
8370 cat >conftest.$ac_ext <<_ACEOF
8371 /* confdefs.h. */
8372 _ACEOF
8373 cat confdefs.h >>conftest.$ac_ext
8374 cat >>conftest.$ac_ext <<_ACEOF
8375 /* end confdefs.h. */
8376 $ac_includes_default
8378 main ()
8380 static int test_array [1 - 2 * !(((long int) (sizeof (long double))) <= $ac_mid)];
8381 test_array [0] = 0
8384 return 0;
8386 _ACEOF
8387 rm -f conftest.$ac_objext
8388 if { (ac_try="$ac_compile"
8389 case "(($ac_try" in
8390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8391 *) ac_try_echo=$ac_try;;
8392 esac
8393 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8394 $as_echo "$ac_try_echo") >&5
8395 (eval "$ac_compile") 2>conftest.er1
8396 ac_status=$?
8397 grep -v '^ *+' conftest.er1 >conftest.err
8398 rm -f conftest.er1
8399 cat conftest.err >&5
8400 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8401 (exit $ac_status); } && {
8402 test -z "$ac_c_werror_flag" ||
8403 test ! -s conftest.err
8404 } && test -s conftest.$ac_objext; then
8405 ac_hi=$ac_mid; break
8406 else
8407 $as_echo "$as_me: failed program was:" >&5
8408 sed 's/^/| /' conftest.$ac_ext >&5
8410 ac_lo=`expr $ac_mid + 1`
8411 if test $ac_lo -le $ac_mid; then
8412 ac_lo= ac_hi=
8413 break
8415 ac_mid=`expr 2 '*' $ac_mid + 1`
8418 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8419 done
8420 else
8421 $as_echo "$as_me: failed program was:" >&5
8422 sed 's/^/| /' conftest.$ac_ext >&5
8424 cat >conftest.$ac_ext <<_ACEOF
8425 /* confdefs.h. */
8426 _ACEOF
8427 cat confdefs.h >>conftest.$ac_ext
8428 cat >>conftest.$ac_ext <<_ACEOF
8429 /* end confdefs.h. */
8430 $ac_includes_default
8432 main ()
8434 static int test_array [1 - 2 * !(((long int) (sizeof (long double))) < 0)];
8435 test_array [0] = 0
8438 return 0;
8440 _ACEOF
8441 rm -f conftest.$ac_objext
8442 if { (ac_try="$ac_compile"
8443 case "(($ac_try" in
8444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8445 *) ac_try_echo=$ac_try;;
8446 esac
8447 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8448 $as_echo "$ac_try_echo") >&5
8449 (eval "$ac_compile") 2>conftest.er1
8450 ac_status=$?
8451 grep -v '^ *+' conftest.er1 >conftest.err
8452 rm -f conftest.er1
8453 cat conftest.err >&5
8454 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8455 (exit $ac_status); } && {
8456 test -z "$ac_c_werror_flag" ||
8457 test ! -s conftest.err
8458 } && test -s conftest.$ac_objext; then
8459 ac_hi=-1 ac_mid=-1
8460 while :; do
8461 cat >conftest.$ac_ext <<_ACEOF
8462 /* confdefs.h. */
8463 _ACEOF
8464 cat confdefs.h >>conftest.$ac_ext
8465 cat >>conftest.$ac_ext <<_ACEOF
8466 /* end confdefs.h. */
8467 $ac_includes_default
8469 main ()
8471 static int test_array [1 - 2 * !(((long int) (sizeof (long double))) >= $ac_mid)];
8472 test_array [0] = 0
8475 return 0;
8477 _ACEOF
8478 rm -f conftest.$ac_objext
8479 if { (ac_try="$ac_compile"
8480 case "(($ac_try" in
8481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8482 *) ac_try_echo=$ac_try;;
8483 esac
8484 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8485 $as_echo "$ac_try_echo") >&5
8486 (eval "$ac_compile") 2>conftest.er1
8487 ac_status=$?
8488 grep -v '^ *+' conftest.er1 >conftest.err
8489 rm -f conftest.er1
8490 cat conftest.err >&5
8491 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8492 (exit $ac_status); } && {
8493 test -z "$ac_c_werror_flag" ||
8494 test ! -s conftest.err
8495 } && test -s conftest.$ac_objext; then
8496 ac_lo=$ac_mid; break
8497 else
8498 $as_echo "$as_me: failed program was:" >&5
8499 sed 's/^/| /' conftest.$ac_ext >&5
8501 ac_hi=`expr '(' $ac_mid ')' - 1`
8502 if test $ac_mid -le $ac_hi; then
8503 ac_lo= ac_hi=
8504 break
8506 ac_mid=`expr 2 '*' $ac_mid`
8509 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8510 done
8511 else
8512 $as_echo "$as_me: failed program was:" >&5
8513 sed 's/^/| /' conftest.$ac_ext >&5
8515 ac_lo= ac_hi=
8518 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8521 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8522 # Binary search between lo and hi bounds.
8523 while test "x$ac_lo" != "x$ac_hi"; do
8524 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8525 cat >conftest.$ac_ext <<_ACEOF
8526 /* confdefs.h. */
8527 _ACEOF
8528 cat confdefs.h >>conftest.$ac_ext
8529 cat >>conftest.$ac_ext <<_ACEOF
8530 /* end confdefs.h. */
8531 $ac_includes_default
8533 main ()
8535 static int test_array [1 - 2 * !(((long int) (sizeof (long double))) <= $ac_mid)];
8536 test_array [0] = 0
8539 return 0;
8541 _ACEOF
8542 rm -f conftest.$ac_objext
8543 if { (ac_try="$ac_compile"
8544 case "(($ac_try" in
8545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8546 *) ac_try_echo=$ac_try;;
8547 esac
8548 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8549 $as_echo "$ac_try_echo") >&5
8550 (eval "$ac_compile") 2>conftest.er1
8551 ac_status=$?
8552 grep -v '^ *+' conftest.er1 >conftest.err
8553 rm -f conftest.er1
8554 cat conftest.err >&5
8555 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8556 (exit $ac_status); } && {
8557 test -z "$ac_c_werror_flag" ||
8558 test ! -s conftest.err
8559 } && test -s conftest.$ac_objext; then
8560 ac_hi=$ac_mid
8561 else
8562 $as_echo "$as_me: failed program was:" >&5
8563 sed 's/^/| /' conftest.$ac_ext >&5
8565 ac_lo=`expr '(' $ac_mid ')' + 1`
8568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8569 done
8570 case $ac_lo in
8571 ?*) ac_cv_sizeof_long_double=$ac_lo;;
8572 '') if test "$ac_cv_type_long_double" = yes; then
8573 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
8574 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8575 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long double)
8576 See \`config.log' for more details." >&5
8577 $as_echo "$as_me: error: cannot compute sizeof (long double)
8578 See \`config.log' for more details." >&2;}
8579 { (exit 77); exit 77; }; }; }
8580 else
8581 ac_cv_sizeof_long_double=0
8582 fi ;;
8583 esac
8584 else
8585 cat >conftest.$ac_ext <<_ACEOF
8586 /* confdefs.h. */
8587 _ACEOF
8588 cat confdefs.h >>conftest.$ac_ext
8589 cat >>conftest.$ac_ext <<_ACEOF
8590 /* end confdefs.h. */
8591 $ac_includes_default
8592 static long int longval () { return (long int) (sizeof (long double)); }
8593 static unsigned long int ulongval () { return (long int) (sizeof (long double)); }
8594 #include <stdio.h>
8595 #include <stdlib.h>
8597 main ()
8600 FILE *f = fopen ("conftest.val", "w");
8601 if (! f)
8602 return 1;
8603 if (((long int) (sizeof (long double))) < 0)
8605 long int i = longval ();
8606 if (i != ((long int) (sizeof (long double))))
8607 return 1;
8608 fprintf (f, "%ld", i);
8610 else
8612 unsigned long int i = ulongval ();
8613 if (i != ((long int) (sizeof (long double))))
8614 return 1;
8615 fprintf (f, "%lu", i);
8617 /* Do not output a trailing newline, as this causes \r\n confusion
8618 on some platforms. */
8619 return ferror (f) || fclose (f) != 0;
8622 return 0;
8624 _ACEOF
8625 rm -f conftest$ac_exeext
8626 if { (ac_try="$ac_link"
8627 case "(($ac_try" in
8628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8629 *) ac_try_echo=$ac_try;;
8630 esac
8631 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8632 $as_echo "$ac_try_echo") >&5
8633 (eval "$ac_link") 2>&5
8634 ac_status=$?
8635 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8636 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8637 { (case "(($ac_try" in
8638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8639 *) ac_try_echo=$ac_try;;
8640 esac
8641 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8642 $as_echo "$ac_try_echo") >&5
8643 (eval "$ac_try") 2>&5
8644 ac_status=$?
8645 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8646 (exit $ac_status); }; }; then
8647 ac_cv_sizeof_long_double=`cat conftest.val`
8648 else
8649 $as_echo "$as_me: program exited with status $ac_status" >&5
8650 $as_echo "$as_me: failed program was:" >&5
8651 sed 's/^/| /' conftest.$ac_ext >&5
8653 ( exit $ac_status )
8654 if test "$ac_cv_type_long_double" = yes; then
8655 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
8656 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8657 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long double)
8658 See \`config.log' for more details." >&5
8659 $as_echo "$as_me: error: cannot compute sizeof (long double)
8660 See \`config.log' for more details." >&2;}
8661 { (exit 77); exit 77; }; }; }
8662 else
8663 ac_cv_sizeof_long_double=0
8666 rm -rf conftest.dSYM
8667 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8669 rm -f conftest.val
8671 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_double" >&5
8672 $as_echo "$ac_cv_sizeof_long_double" >&6; }
8676 cat >>confdefs.h <<_ACEOF
8677 #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
8678 _ACEOF
8681 sizeof_long_double=$ac_cv_sizeof_long_double
8684 ### End of automated tests.
8685 ### Now run sysdeps configure fragments.
8687 # They also can set these variables.
8688 use_ldconfig=no
8689 ldd_rewrite_script=no
8690 libc_cv_sysconfdir=$sysconfdir
8691 libc_cv_gcc_unwind_find_fde=no
8692 libc_cv_idn=no
8694 # Iterate over all the sysdep directories we will use, running their
8695 # configure fragments, and looking for a uname implementation.
8696 uname=
8697 for dir in $sysnames; do
8698 case $dir in
8699 /*) dest=$dir ;;
8700 *) dest=$srcdir/$dir ;;
8701 esac
8702 if test -r $dest/configure; then
8703 { $as_echo "$as_me:$LINENO: result: running configure fragment for $dir" >&5
8704 $as_echo "running configure fragment for $dir" >&6; }
8705 . $dest/configure
8708 if test -z "$uname"; then
8709 if test -r $dest/uname.c ||
8710 test -r $dest/uname.S ||
8711 { test -r $dest/syscalls.list &&
8712 grep '^uname[ ]' $dest/syscalls.list >/dev/null; }; then
8713 uname=$dir
8716 done
8718 if test x$libc_cv_gcc_unwind_find_fde = xyes; then
8719 cat >>confdefs.h <<\_ACEOF
8720 #define EXPORT_UNWIND_FIND_FDE 1
8721 _ACEOF
8726 # If we will use the generic uname implementation, we must figure out what
8727 # it will say by examining the system, and write the results in config-name.h.
8728 if test "$uname" = "sysdeps/generic"; then
8730 uname_sysname=`echo $config_os | sed 's/[0-9.]*$//'`
8731 if test $uname_sysname != $config_os; then
8732 config_release=`echo $config_os | sed s/$uname_sysname//`
8735 { $as_echo "$as_me:$LINENO: checking OS release for uname" >&5
8736 $as_echo_n "checking OS release for uname... " >&6; }
8737 if test "${libc_cv_uname_release+set}" = set; then
8738 $as_echo_n "(cached) " >&6
8739 else
8740 if test -r /vmunix; then
8741 kernel_id=`strings /vmunix | grep UNIX`
8742 elif test -r /dynix; then
8743 kernel_id=`strings /dynix | grep DYNIX`
8744 else
8745 kernel_id=
8748 kernel_release=`echo "$kernel_id" | sed 's/^[^0-9.]*\([0-9.]*\).*$/\1/'`
8749 if test x`echo "$config_release" | sed "s/^$kernel_release//"` \
8750 != x$config_release; then
8751 # The configuration release is a substring of the kernel release.
8752 libc_cv_uname_release=$kernel_release
8753 elif test x$config_release != x; then
8754 libc_cv_uname_release=$config_release
8755 elif test x$kernel_release != x; then
8756 libc_cv_uname_release=$kernel_release
8757 else
8758 libc_cv_uname_release=unknown
8761 { $as_echo "$as_me:$LINENO: result: $libc_cv_uname_release" >&5
8762 $as_echo "$libc_cv_uname_release" >&6; }
8763 uname_release="$libc_cv_uname_release"
8765 { $as_echo "$as_me:$LINENO: checking OS version for uname" >&5
8766 $as_echo_n "checking OS version for uname... " >&6; }
8767 if test "${libc_cv_uname_version+set}" = set; then
8768 $as_echo_n "(cached) " >&6
8769 else
8770 if test -r /vmunix; then
8771 kernel_id=`strings /vmunix | grep UNIX`
8772 elif test -r /dynix; then
8773 kernel_id=`strings /dynix | grep DYNIX`
8774 else
8775 kernel_id=
8778 kernel_version=`echo "$kernel_id" | sed 's/^[^#]*#\([0-9]*\).*$/\1/'`
8779 if test -n "$kernel_version"; then
8780 libc_cv_uname_version="$kernel_version"
8781 else
8782 libc_cv_uname_version=unknown
8785 { $as_echo "$as_me:$LINENO: result: $libc_cv_uname_version" >&5
8786 $as_echo "$libc_cv_uname_version" >&6; }
8787 uname_version="$libc_cv_uname_version"
8789 config_uname=config-name.h:config-name.in
8790 else
8791 # For non-generic uname, we don't need to create config-name.h at all.
8792 config_uname=
8795 cat >>confdefs.h <<\_ACEOF
8796 #define USE_IN_LIBIO 1
8797 _ACEOF
8800 # Test for old glibc 2.0.x headers so that they can be removed properly
8801 # Search only in includedir.
8802 { $as_echo "$as_me:$LINENO: checking for old glibc 2.0.x headers" >&5
8803 $as_echo_n "checking for old glibc 2.0.x headers... " >&6; }
8804 if eval test -f "${includedir}/elfclass.h" -a -f "${includedir}/fcntlbits.h"
8805 then
8806 old_glibc_headers=yes
8807 else
8808 old_glibc_headers=no
8810 { $as_echo "$as_me:$LINENO: result: $old_glibc_headers" >&5
8811 $as_echo "$old_glibc_headers" >&6; }
8812 if test ${old_glibc_headers} = yes; then
8813 { $as_echo "$as_me:$LINENO: WARNING: *** During \"make install\" old headers from glibc 2.0.x will" >&5
8814 $as_echo "$as_me: WARNING: *** During \"make install\" old headers from glibc 2.0.x will" >&2;}
8815 { $as_echo "$as_me:$LINENO: WARNING: *** be removed." >&5
8816 $as_echo "$as_me: WARNING: *** be removed." >&2;}
8835 if test $elf = yes; then
8836 cat >>confdefs.h <<\_ACEOF
8837 #define HAVE_ELF 1
8838 _ACEOF
8841 if test $xcoff = yes; then
8842 cat >>confdefs.h <<\_ACEOF
8843 #define HAVE_XCOFF 1
8844 _ACEOF
8850 if test $shared = default; then
8851 shared=$elf
8854 { $as_echo "$as_me:$LINENO: checking whether -fPIC is default" >&5
8855 $as_echo_n "checking whether -fPIC is default... " >&6; }
8856 if test "${libc_cv_pic_default+set}" = set; then
8857 $as_echo_n "(cached) " >&6
8858 else
8859 libc_cv_pic_default=yes
8860 cat > conftest.c <<EOF
8861 #if defined __PIC__ || defined __pic__ || defined PIC || defined pic
8862 # error PIC is default.
8863 #endif
8865 if eval "${CC-cc} -S conftest.c 2>&5 1>&5"; then
8866 libc_cv_pic_default=no
8868 rm -f conftest.*
8870 { $as_echo "$as_me:$LINENO: result: $libc_cv_pic_default" >&5
8871 $as_echo "$libc_cv_pic_default" >&6; }
8884 if test "`(cd $srcdir; pwd)`" = "`pwd`"; then
8885 config_makefile=
8886 else
8887 config_makefile=Makefile
8890 VERSION=`sed -n -e 's/^#define VERSION "\([^"]*\)"/\1/p' < $srcdir/version.h`
8891 RELEASE=`sed -n -e 's/^#define RELEASE "\([^"]*\)"/\1/p' < $srcdir/version.h`
8895 ac_config_files="$ac_config_files config.make ${config_makefile} ${config_uname}"
8897 ac_config_commands="$ac_config_commands default"
8899 cat >confcache <<\_ACEOF
8900 # This file is a shell script that caches the results of configure
8901 # tests run on this system so they can be shared between configure
8902 # scripts and configure runs, see configure's option --config-cache.
8903 # It is not useful on other systems. If it contains results you don't
8904 # want to keep, you may remove or edit it.
8906 # config.status only pays attention to the cache file if you give it
8907 # the --recheck option to rerun configure.
8909 # `ac_cv_env_foo' variables (set or unset) will be overridden when
8910 # loading this file, other *unset* `ac_cv_foo' will be assigned the
8911 # following values.
8913 _ACEOF
8915 # The following way of writing the cache mishandles newlines in values,
8916 # but we know of no workaround that is simple, portable, and efficient.
8917 # So, we kill variables containing newlines.
8918 # Ultrix sh set writes to stderr and can't be redirected directly,
8919 # and sets the high bit in the cache file unless we assign to the vars.
8921 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
8922 eval ac_val=\$$ac_var
8923 case $ac_val in #(
8924 *${as_nl}*)
8925 case $ac_var in #(
8926 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
8927 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
8928 esac
8929 case $ac_var in #(
8930 _ | IFS | as_nl) ;; #(
8931 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
8932 *) $as_unset $ac_var ;;
8933 esac ;;
8934 esac
8935 done
8937 (set) 2>&1 |
8938 case $as_nl`(ac_space=' '; set) 2>&1` in #(
8939 *${as_nl}ac_space=\ *)
8940 # `set' does not quote correctly, so add quotes (double-quote
8941 # substitution turns \\\\ into \\, and sed turns \\ into \).
8942 sed -n \
8943 "s/'/'\\\\''/g;
8944 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
8945 ;; #(
8947 # `set' quotes correctly as required by POSIX, so do not add quotes.
8948 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
8950 esac |
8951 sort
8953 sed '
8954 /^ac_cv_env_/b end
8955 t clear
8956 :clear
8957 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
8958 t end
8959 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8960 :end' >>confcache
8961 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
8962 if test -w "$cache_file"; then
8963 test "x$cache_file" != "x/dev/null" &&
8964 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
8965 $as_echo "$as_me: updating cache $cache_file" >&6;}
8966 cat confcache >$cache_file
8967 else
8968 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
8969 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
8972 rm -f confcache
8974 test "x$prefix" = xNONE && prefix=$ac_default_prefix
8975 # Let make expand exec_prefix.
8976 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8978 DEFS=-DHAVE_CONFIG_H
8980 ac_libobjs=
8981 ac_ltlibobjs=
8982 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
8983 # 1. Remove the extension, and $U if already installed.
8984 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
8985 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
8986 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
8987 # will be set to the directory where LIBOBJS objects are built.
8988 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
8989 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
8990 done
8991 LIBOBJS=$ac_libobjs
8993 LTLIBOBJS=$ac_ltlibobjs
8997 : ${CONFIG_STATUS=./config.status}
8998 ac_write_fail=0
8999 ac_clean_files_save=$ac_clean_files
9000 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
9001 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
9002 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
9003 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9004 #! $SHELL
9005 # Generated by $as_me.
9006 # Run this file to recreate the current configuration.
9007 # Compiler output produced by configure, useful for debugging
9008 # configure, is in config.log if it exists.
9010 debug=false
9011 ac_cs_recheck=false
9012 ac_cs_silent=false
9013 SHELL=\${CONFIG_SHELL-$SHELL}
9014 _ACEOF
9016 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9017 ## --------------------- ##
9018 ## M4sh Initialization. ##
9019 ## --------------------- ##
9021 # Be more Bourne compatible
9022 DUALCASE=1; export DUALCASE # for MKS sh
9023 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
9024 emulate sh
9025 NULLCMD=:
9026 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
9027 # is contrary to our usage. Disable this feature.
9028 alias -g '${1+"$@"}'='"$@"'
9029 setopt NO_GLOB_SUBST
9030 else
9031 case `(set -o) 2>/dev/null` in
9032 *posix*) set -o posix ;;
9033 esac
9040 # PATH needs CR
9041 # Avoid depending upon Character Ranges.
9042 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
9043 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
9044 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
9045 as_cr_digits='0123456789'
9046 as_cr_alnum=$as_cr_Letters$as_cr_digits
9048 as_nl='
9050 export as_nl
9051 # Printing a long string crashes Solaris 7 /usr/bin/printf.
9052 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
9053 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
9054 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
9055 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
9056 as_echo='printf %s\n'
9057 as_echo_n='printf %s'
9058 else
9059 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
9060 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
9061 as_echo_n='/usr/ucb/echo -n'
9062 else
9063 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
9064 as_echo_n_body='eval
9065 arg=$1;
9066 case $arg in
9067 *"$as_nl"*)
9068 expr "X$arg" : "X\\(.*\\)$as_nl";
9069 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
9070 esac;
9071 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
9073 export as_echo_n_body
9074 as_echo_n='sh -c $as_echo_n_body as_echo'
9076 export as_echo_body
9077 as_echo='sh -c $as_echo_body as_echo'
9080 # The user is always right.
9081 if test "${PATH_SEPARATOR+set}" != set; then
9082 PATH_SEPARATOR=:
9083 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
9084 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
9085 PATH_SEPARATOR=';'
9089 # Support unset when possible.
9090 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
9091 as_unset=unset
9092 else
9093 as_unset=false
9097 # IFS
9098 # We need space, tab and new line, in precisely that order. Quoting is
9099 # there to prevent editors from complaining about space-tab.
9100 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
9101 # splitting by setting IFS to empty value.)
9102 IFS=" "" $as_nl"
9104 # Find who we are. Look in the path if we contain no directory separator.
9105 case $0 in
9106 *[\\/]* ) as_myself=$0 ;;
9107 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9108 for as_dir in $PATH
9110 IFS=$as_save_IFS
9111 test -z "$as_dir" && as_dir=.
9112 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
9113 done
9114 IFS=$as_save_IFS
9117 esac
9118 # We did not find ourselves, most probably we were run as `sh COMMAND'
9119 # in which case we are not to be found in the path.
9120 if test "x$as_myself" = x; then
9121 as_myself=$0
9123 if test ! -f "$as_myself"; then
9124 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
9125 { (exit 1); exit 1; }
9128 # Work around bugs in pre-3.0 UWIN ksh.
9129 for as_var in ENV MAIL MAILPATH
9130 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
9131 done
9132 PS1='$ '
9133 PS2='> '
9134 PS4='+ '
9136 # NLS nuisances.
9137 LC_ALL=C
9138 export LC_ALL
9139 LANGUAGE=C
9140 export LANGUAGE
9142 # Required to use basename.
9143 if expr a : '\(a\)' >/dev/null 2>&1 &&
9144 test "X`expr 00001 : '.*\(...\)'`" = X001; then
9145 as_expr=expr
9146 else
9147 as_expr=false
9150 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
9151 as_basename=basename
9152 else
9153 as_basename=false
9157 # Name of the executable.
9158 as_me=`$as_basename -- "$0" ||
9159 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
9160 X"$0" : 'X\(//\)$' \| \
9161 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
9162 $as_echo X/"$0" |
9163 sed '/^.*\/\([^/][^/]*\)\/*$/{
9164 s//\1/
9167 /^X\/\(\/\/\)$/{
9168 s//\1/
9171 /^X\/\(\/\).*/{
9172 s//\1/
9175 s/.*/./; q'`
9177 # CDPATH.
9178 $as_unset CDPATH
9182 as_lineno_1=$LINENO
9183 as_lineno_2=$LINENO
9184 test "x$as_lineno_1" != "x$as_lineno_2" &&
9185 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
9187 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
9188 # uniformly replaced by the line number. The first 'sed' inserts a
9189 # line-number line after each line using $LINENO; the second 'sed'
9190 # does the real work. The second script uses 'N' to pair each
9191 # line-number line with the line containing $LINENO, and appends
9192 # trailing '-' during substitution so that $LINENO is not a special
9193 # case at line end.
9194 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
9195 # scripts with optimization help from Paolo Bonzini. Blame Lee
9196 # E. McMahon (1931-1989) for sed's syntax. :-)
9197 sed -n '
9199 /[$]LINENO/=
9200 ' <$as_myself |
9201 sed '
9202 s/[$]LINENO.*/&-/
9203 t lineno
9205 :lineno
9207 :loop
9208 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
9209 t loop
9210 s/-\n.*//
9211 ' >$as_me.lineno &&
9212 chmod +x "$as_me.lineno" ||
9213 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
9214 { (exit 1); exit 1; }; }
9216 # Don't try to exec as it changes $[0], causing all sort of problems
9217 # (the dirname of $[0] is not the place where we might find the
9218 # original and so on. Autoconf is especially sensitive to this).
9219 . "./$as_me.lineno"
9220 # Exit status is that of the last command.
9221 exit
9225 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
9226 as_dirname=dirname
9227 else
9228 as_dirname=false
9231 ECHO_C= ECHO_N= ECHO_T=
9232 case `echo -n x` in
9233 -n*)
9234 case `echo 'x\c'` in
9235 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
9236 *) ECHO_C='\c';;
9237 esac;;
9239 ECHO_N='-n';;
9240 esac
9241 if expr a : '\(a\)' >/dev/null 2>&1 &&
9242 test "X`expr 00001 : '.*\(...\)'`" = X001; then
9243 as_expr=expr
9244 else
9245 as_expr=false
9248 rm -f conf$$ conf$$.exe conf$$.file
9249 if test -d conf$$.dir; then
9250 rm -f conf$$.dir/conf$$.file
9251 else
9252 rm -f conf$$.dir
9253 mkdir conf$$.dir 2>/dev/null
9255 if (echo >conf$$.file) 2>/dev/null; then
9256 if ln -s conf$$.file conf$$ 2>/dev/null; then
9257 as_ln_s='ln -s'
9258 # ... but there are two gotchas:
9259 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
9260 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
9261 # In both cases, we have to default to `cp -p'.
9262 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
9263 as_ln_s='cp -p'
9264 elif ln conf$$.file conf$$ 2>/dev/null; then
9265 as_ln_s=ln
9266 else
9267 as_ln_s='cp -p'
9269 else
9270 as_ln_s='cp -p'
9272 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
9273 rmdir conf$$.dir 2>/dev/null
9275 if mkdir -p . 2>/dev/null; then
9276 as_mkdir_p=:
9277 else
9278 test -d ./-p && rmdir ./-p
9279 as_mkdir_p=false
9282 if test -x / >/dev/null 2>&1; then
9283 as_test_x='test -x'
9284 else
9285 if ls -dL / >/dev/null 2>&1; then
9286 as_ls_L_option=L
9287 else
9288 as_ls_L_option=
9290 as_test_x='
9291 eval sh -c '\''
9292 if test -d "$1"; then
9293 test -d "$1/.";
9294 else
9295 case $1 in
9296 -*)set "./$1";;
9297 esac;
9298 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
9299 ???[sx]*):;;*)false;;esac;fi
9300 '\'' sh
9303 as_executable_p=$as_test_x
9305 # Sed expression to map a string onto a valid CPP name.
9306 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
9308 # Sed expression to map a string onto a valid variable name.
9309 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
9312 exec 6>&1
9314 # Save the log message, to keep $[0] and so on meaningful, and to
9315 # report actual input values of CONFIG_FILES etc. instead of their
9316 # values after options handling.
9317 ac_log="
9318 This file was extended by GNU C Library $as_me (see version.h), which was
9319 generated by GNU Autoconf 2.63. Invocation command line was
9321 CONFIG_FILES = $CONFIG_FILES
9322 CONFIG_HEADERS = $CONFIG_HEADERS
9323 CONFIG_LINKS = $CONFIG_LINKS
9324 CONFIG_COMMANDS = $CONFIG_COMMANDS
9325 $ $0 $@
9327 on `(hostname || uname -n) 2>/dev/null | sed 1q`
9330 _ACEOF
9332 case $ac_config_files in *"
9333 "*) set x $ac_config_files; shift; ac_config_files=$*;;
9334 esac
9336 case $ac_config_headers in *"
9337 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
9338 esac
9341 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9342 # Files that config.status was made for.
9343 config_files="$ac_config_files"
9344 config_headers="$ac_config_headers"
9345 config_commands="$ac_config_commands"
9347 _ACEOF
9349 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9350 ac_cs_usage="\
9351 \`$as_me' instantiates files from templates according to the
9352 current configuration.
9354 Usage: $0 [OPTION]... [FILE]...
9356 -h, --help print this help, then exit
9357 -V, --version print version number and configuration settings, then exit
9358 -q, --quiet, --silent
9359 do not print progress messages
9360 -d, --debug don't remove temporary files
9361 --recheck update $as_me by reconfiguring in the same conditions
9362 --file=FILE[:TEMPLATE]
9363 instantiate the configuration file FILE
9364 --header=FILE[:TEMPLATE]
9365 instantiate the configuration header FILE
9367 Configuration files:
9368 $config_files
9370 Configuration headers:
9371 $config_headers
9373 Configuration commands:
9374 $config_commands
9376 Report bugs to <bug-autoconf@gnu.org>."
9378 _ACEOF
9379 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9380 ac_cs_version="\\
9381 GNU C Library config.status (see version.h)
9382 configured by $0, generated by GNU Autoconf 2.63,
9383 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
9385 Copyright (C) 2008 Free Software Foundation, Inc.
9386 This config.status script is free software; the Free Software Foundation
9387 gives unlimited permission to copy, distribute and modify it."
9389 ac_pwd='$ac_pwd'
9390 srcdir='$srcdir'
9391 INSTALL='$INSTALL'
9392 AWK='$AWK'
9393 test -n "\$AWK" || AWK=awk
9394 _ACEOF
9396 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9397 # The default lists apply if the user does not specify any file.
9398 ac_need_defaults=:
9399 while test $# != 0
9401 case $1 in
9402 --*=*)
9403 ac_option=`expr "X$1" : 'X\([^=]*\)='`
9404 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
9405 ac_shift=:
9408 ac_option=$1
9409 ac_optarg=$2
9410 ac_shift=shift
9412 esac
9414 case $ac_option in
9415 # Handling of the options.
9416 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9417 ac_cs_recheck=: ;;
9418 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
9419 $as_echo "$ac_cs_version"; exit ;;
9420 --debug | --debu | --deb | --de | --d | -d )
9421 debug=: ;;
9422 --file | --fil | --fi | --f )
9423 $ac_shift
9424 case $ac_optarg in
9425 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
9426 esac
9427 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
9428 ac_need_defaults=false;;
9429 --header | --heade | --head | --hea )
9430 $ac_shift
9431 case $ac_optarg in
9432 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
9433 esac
9434 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
9435 ac_need_defaults=false;;
9436 --he | --h)
9437 # Conflict between --help and --header
9438 { $as_echo "$as_me: error: ambiguous option: $1
9439 Try \`$0 --help' for more information." >&2
9440 { (exit 1); exit 1; }; };;
9441 --help | --hel | -h )
9442 $as_echo "$ac_cs_usage"; exit ;;
9443 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
9444 | -silent | --silent | --silen | --sile | --sil | --si | --s)
9445 ac_cs_silent=: ;;
9447 # This is an error.
9448 -*) { $as_echo "$as_me: error: unrecognized option: $1
9449 Try \`$0 --help' for more information." >&2
9450 { (exit 1); exit 1; }; } ;;
9452 *) ac_config_targets="$ac_config_targets $1"
9453 ac_need_defaults=false ;;
9455 esac
9456 shift
9457 done
9459 ac_configure_extra_args=
9461 if $ac_cs_silent; then
9462 exec 6>/dev/null
9463 ac_configure_extra_args="$ac_configure_extra_args --silent"
9466 _ACEOF
9467 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9468 if \$ac_cs_recheck; then
9469 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
9470 shift
9471 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
9472 CONFIG_SHELL='$SHELL'
9473 export CONFIG_SHELL
9474 exec "\$@"
9477 _ACEOF
9478 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9479 exec 5>>config.log
9481 echo
9482 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
9483 ## Running $as_me. ##
9484 _ASBOX
9485 $as_echo "$ac_log"
9486 } >&5
9488 _ACEOF
9489 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9491 # INIT-COMMANDS
9493 config_vars='$config_vars'
9495 _ACEOF
9497 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9499 # Handling of arguments.
9500 for ac_config_target in $ac_config_targets
9502 case $ac_config_target in
9503 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
9504 "config.make") CONFIG_FILES="$CONFIG_FILES config.make" ;;
9505 "${config_makefile}") CONFIG_FILES="$CONFIG_FILES ${config_makefile}" ;;
9506 "${config_uname}") CONFIG_FILES="$CONFIG_FILES ${config_uname}" ;;
9507 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
9509 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
9510 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
9511 { (exit 1); exit 1; }; };;
9512 esac
9513 done
9516 # If the user did not use the arguments to specify the items to instantiate,
9517 # then the envvar interface is used. Set only those that are not.
9518 # We use the long form for the default assignment because of an extremely
9519 # bizarre bug on SunOS 4.1.3.
9520 if $ac_need_defaults; then
9521 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
9522 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
9523 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
9526 # Have a temporary directory for convenience. Make it in the build tree
9527 # simply because there is no reason against having it here, and in addition,
9528 # creating and moving files from /tmp can sometimes cause problems.
9529 # Hook for its removal unless debugging.
9530 # Note that there is a small window in which the directory will not be cleaned:
9531 # after its creation but before its name has been assigned to `$tmp'.
9532 $debug ||
9534 tmp=
9535 trap 'exit_status=$?
9536 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
9538 trap '{ (exit 1); exit 1; }' 1 2 13 15
9540 # Create a (secure) tmp directory for tmp files.
9543 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
9544 test -n "$tmp" && test -d "$tmp"
9545 } ||
9547 tmp=./conf$$-$RANDOM
9548 (umask 077 && mkdir "$tmp")
9549 } ||
9551 $as_echo "$as_me: cannot create a temporary directory in ." >&2
9552 { (exit 1); exit 1; }
9555 # Set up the scripts for CONFIG_FILES section.
9556 # No need to generate them if there are no CONFIG_FILES.
9557 # This happens for instance with `./config.status config.h'.
9558 if test -n "$CONFIG_FILES"; then
9561 ac_cr=' '
9562 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
9563 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
9564 ac_cs_awk_cr='\\r'
9565 else
9566 ac_cs_awk_cr=$ac_cr
9569 echo 'BEGIN {' >"$tmp/subs1.awk" &&
9570 _ACEOF
9574 echo "cat >conf$$subs.awk <<_ACEOF" &&
9575 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
9576 echo "_ACEOF"
9577 } >conf$$subs.sh ||
9578 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
9579 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
9580 { (exit 1); exit 1; }; }
9581 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
9582 ac_delim='%!_!# '
9583 for ac_last_try in false false false false false :; do
9584 . ./conf$$subs.sh ||
9585 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
9586 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
9587 { (exit 1); exit 1; }; }
9589 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
9590 if test $ac_delim_n = $ac_delim_num; then
9591 break
9592 elif $ac_last_try; then
9593 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
9594 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
9595 { (exit 1); exit 1; }; }
9596 else
9597 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
9599 done
9600 rm -f conf$$subs.sh
9602 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9603 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
9604 _ACEOF
9605 sed -n '
9607 s/^/S["/; s/!.*/"]=/
9610 s/^[^!]*!//
9611 :repl
9612 t repl
9613 s/'"$ac_delim"'$//
9614 t delim
9617 s/\(.\{148\}\).*/\1/
9618 t more1
9619 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
9622 b repl
9623 :more1
9624 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
9627 s/.\{148\}//
9628 t nl
9629 :delim
9631 s/\(.\{148\}\).*/\1/
9632 t more2
9633 s/["\\]/\\&/g; s/^/"/; s/$/"/
9636 :more2
9637 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
9640 s/.\{148\}//
9641 t delim
9642 ' <conf$$subs.awk | sed '
9643 /^[^""]/{
9645 s/\n//
9647 ' >>$CONFIG_STATUS || ac_write_fail=1
9648 rm -f conf$$subs.awk
9649 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9650 _ACAWK
9651 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
9652 for (key in S) S_is_set[key] = 1
9653 FS = "\a"
9657 line = $ 0
9658 nfields = split(line, field, "@")
9659 substed = 0
9660 len = length(field[1])
9661 for (i = 2; i < nfields; i++) {
9662 key = field[i]
9663 keylen = length(key)
9664 if (S_is_set[key]) {
9665 value = S[key]
9666 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
9667 len += length(value) + length(field[++i])
9668 substed = 1
9669 } else
9670 len += 1 + keylen
9673 print line
9676 _ACAWK
9677 _ACEOF
9678 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9679 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
9680 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
9681 else
9683 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
9684 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
9685 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
9686 { (exit 1); exit 1; }; }
9687 _ACEOF
9689 # VPATH may cause trouble with some makes, so we remove $(srcdir),
9690 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
9691 # trailing colons and then remove the whole line if VPATH becomes empty
9692 # (actually we leave an empty line to preserve line numbers).
9693 if test "x$srcdir" = x.; then
9694 ac_vpsub='/^[ ]*VPATH[ ]*=/{
9695 s/:*\$(srcdir):*/:/
9696 s/:*\${srcdir}:*/:/
9697 s/:*@srcdir@:*/:/
9698 s/^\([^=]*=[ ]*\):*/\1/
9699 s/:*$//
9700 s/^[^=]*=[ ]*$//
9704 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9705 fi # test -n "$CONFIG_FILES"
9707 # Set up the scripts for CONFIG_HEADERS section.
9708 # No need to generate them if there are no CONFIG_HEADERS.
9709 # This happens for instance with `./config.status Makefile'.
9710 if test -n "$CONFIG_HEADERS"; then
9711 cat >"$tmp/defines.awk" <<\_ACAWK ||
9712 BEGIN {
9713 _ACEOF
9715 # Transform confdefs.h into an awk script `defines.awk', embedded as
9716 # here-document in config.status, that substitutes the proper values into
9717 # config.h.in to produce config.h.
9719 # Create a delimiter string that does not exist in confdefs.h, to ease
9720 # handling of long lines.
9721 ac_delim='%!_!# '
9722 for ac_last_try in false false :; do
9723 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
9724 if test -z "$ac_t"; then
9725 break
9726 elif $ac_last_try; then
9727 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
9728 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
9729 { (exit 1); exit 1; }; }
9730 else
9731 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
9733 done
9735 # For the awk script, D is an array of macro values keyed by name,
9736 # likewise P contains macro parameters if any. Preserve backslash
9737 # newline sequences.
9739 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
9740 sed -n '
9741 s/.\{148\}/&'"$ac_delim"'/g
9742 t rset
9743 :rset
9744 s/^[ ]*#[ ]*define[ ][ ]*/ /
9745 t def
9747 :def
9748 s/\\$//
9749 t bsnl
9750 s/["\\]/\\&/g
9751 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
9752 D["\1"]=" \3"/p
9753 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
9755 :bsnl
9756 s/["\\]/\\&/g
9757 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
9758 D["\1"]=" \3\\\\\\n"\\/p
9759 t cont
9760 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
9761 t cont
9763 :cont
9765 s/.\{148\}/&'"$ac_delim"'/g
9766 t clear
9767 :clear
9768 s/\\$//
9769 t bsnlc
9770 s/["\\]/\\&/g; s/^/"/; s/$/"/p
9772 :bsnlc
9773 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
9774 b cont
9775 ' <confdefs.h | sed '
9776 s/'"$ac_delim"'/"\\\
9777 "/g' >>$CONFIG_STATUS || ac_write_fail=1
9779 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9780 for (key in D) D_is_set[key] = 1
9781 FS = "\a"
9783 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
9784 line = \$ 0
9785 split(line, arg, " ")
9786 if (arg[1] == "#") {
9787 defundef = arg[2]
9788 mac1 = arg[3]
9789 } else {
9790 defundef = substr(arg[1], 2)
9791 mac1 = arg[2]
9793 split(mac1, mac2, "(") #)
9794 macro = mac2[1]
9795 prefix = substr(line, 1, index(line, defundef) - 1)
9796 if (D_is_set[macro]) {
9797 # Preserve the white space surrounding the "#".
9798 print prefix "define", macro P[macro] D[macro]
9799 next
9800 } else {
9801 # Replace #undef with comments. This is necessary, for example,
9802 # in the case of _POSIX_SOURCE, which is predefined and required
9803 # on some systems where configure will not decide to define it.
9804 if (defundef == "undef") {
9805 print "/*", prefix defundef, macro, "*/"
9806 next
9810 { print }
9811 _ACAWK
9812 _ACEOF
9813 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9814 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
9815 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
9816 { (exit 1); exit 1; }; }
9817 fi # test -n "$CONFIG_HEADERS"
9820 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
9821 shift
9822 for ac_tag
9824 case $ac_tag in
9825 :[FHLC]) ac_mode=$ac_tag; continue;;
9826 esac
9827 case $ac_mode$ac_tag in
9828 :[FHL]*:*);;
9829 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
9830 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
9831 { (exit 1); exit 1; }; };;
9832 :[FH]-) ac_tag=-:-;;
9833 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
9834 esac
9835 ac_save_IFS=$IFS
9836 IFS=:
9837 set x $ac_tag
9838 IFS=$ac_save_IFS
9839 shift
9840 ac_file=$1
9841 shift
9843 case $ac_mode in
9844 :L) ac_source=$1;;
9845 :[FH])
9846 ac_file_inputs=
9847 for ac_f
9849 case $ac_f in
9850 -) ac_f="$tmp/stdin";;
9851 *) # Look for the file first in the build tree, then in the source tree
9852 # (if the path is not absolute). The absolute path cannot be DOS-style,
9853 # because $ac_f cannot contain `:'.
9854 test -f "$ac_f" ||
9855 case $ac_f in
9856 [\\/$]*) false;;
9857 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
9858 esac ||
9859 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
9860 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
9861 { (exit 1); exit 1; }; };;
9862 esac
9863 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
9864 ac_file_inputs="$ac_file_inputs '$ac_f'"
9865 done
9867 # Let's still pretend it is `configure' which instantiates (i.e., don't
9868 # use $as_me), people would be surprised to read:
9869 # /* config.h. Generated by config.status. */
9870 configure_input='Generated from '`
9871 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
9872 `' by configure.'
9873 if test x"$ac_file" != x-; then
9874 configure_input="$ac_file. $configure_input"
9875 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
9876 $as_echo "$as_me: creating $ac_file" >&6;}
9878 # Neutralize special characters interpreted by sed in replacement strings.
9879 case $configure_input in #(
9880 *\&* | *\|* | *\\* )
9881 ac_sed_conf_input=`$as_echo "$configure_input" |
9882 sed 's/[\\\\&|]/\\\\&/g'`;; #(
9883 *) ac_sed_conf_input=$configure_input;;
9884 esac
9886 case $ac_tag in
9887 *:-:* | *:-) cat >"$tmp/stdin" \
9888 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
9889 $as_echo "$as_me: error: could not create $ac_file" >&2;}
9890 { (exit 1); exit 1; }; } ;;
9891 esac
9893 esac
9895 ac_dir=`$as_dirname -- "$ac_file" ||
9896 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9897 X"$ac_file" : 'X\(//\)[^/]' \| \
9898 X"$ac_file" : 'X\(//\)$' \| \
9899 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
9900 $as_echo X"$ac_file" |
9901 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9902 s//\1/
9905 /^X\(\/\/\)[^/].*/{
9906 s//\1/
9909 /^X\(\/\/\)$/{
9910 s//\1/
9913 /^X\(\/\).*/{
9914 s//\1/
9917 s/.*/./; q'`
9918 { as_dir="$ac_dir"
9919 case $as_dir in #(
9920 -*) as_dir=./$as_dir;;
9921 esac
9922 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
9923 as_dirs=
9924 while :; do
9925 case $as_dir in #(
9926 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
9927 *) as_qdir=$as_dir;;
9928 esac
9929 as_dirs="'$as_qdir' $as_dirs"
9930 as_dir=`$as_dirname -- "$as_dir" ||
9931 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9932 X"$as_dir" : 'X\(//\)[^/]' \| \
9933 X"$as_dir" : 'X\(//\)$' \| \
9934 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
9935 $as_echo X"$as_dir" |
9936 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9937 s//\1/
9940 /^X\(\/\/\)[^/].*/{
9941 s//\1/
9944 /^X\(\/\/\)$/{
9945 s//\1/
9948 /^X\(\/\).*/{
9949 s//\1/
9952 s/.*/./; q'`
9953 test -d "$as_dir" && break
9954 done
9955 test -z "$as_dirs" || eval "mkdir $as_dirs"
9956 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
9957 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
9958 { (exit 1); exit 1; }; }; }
9959 ac_builddir=.
9961 case "$ac_dir" in
9962 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
9964 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
9965 # A ".." for each directory in $ac_dir_suffix.
9966 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
9967 case $ac_top_builddir_sub in
9968 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
9969 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
9970 esac ;;
9971 esac
9972 ac_abs_top_builddir=$ac_pwd
9973 ac_abs_builddir=$ac_pwd$ac_dir_suffix
9974 # for backward compatibility:
9975 ac_top_builddir=$ac_top_build_prefix
9977 case $srcdir in
9978 .) # We are building in place.
9979 ac_srcdir=.
9980 ac_top_srcdir=$ac_top_builddir_sub
9981 ac_abs_top_srcdir=$ac_pwd ;;
9982 [\\/]* | ?:[\\/]* ) # Absolute name.
9983 ac_srcdir=$srcdir$ac_dir_suffix;
9984 ac_top_srcdir=$srcdir
9985 ac_abs_top_srcdir=$srcdir ;;
9986 *) # Relative name.
9987 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
9988 ac_top_srcdir=$ac_top_build_prefix$srcdir
9989 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
9990 esac
9991 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
9994 case $ac_mode in
9997 # CONFIG_FILE
10000 case $INSTALL in
10001 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
10002 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
10003 esac
10004 _ACEOF
10006 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10007 # If the template does not know about datarootdir, expand it.
10008 # FIXME: This hack should be removed a few years after 2.60.
10009 ac_datarootdir_hack=; ac_datarootdir_seen=
10011 ac_sed_dataroot='
10012 /datarootdir/ {
10016 /@datadir@/p
10017 /@docdir@/p
10018 /@infodir@/p
10019 /@localedir@/p
10020 /@mandir@/p
10022 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
10023 *datarootdir*) ac_datarootdir_seen=yes;;
10024 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
10025 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
10026 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
10027 _ACEOF
10028 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10029 ac_datarootdir_hack='
10030 s&@datadir@&$datadir&g
10031 s&@docdir@&$docdir&g
10032 s&@infodir@&$infodir&g
10033 s&@localedir@&$localedir&g
10034 s&@mandir@&$mandir&g
10035 s&\\\${datarootdir}&$datarootdir&g' ;;
10036 esac
10037 _ACEOF
10039 # Neutralize VPATH when `$srcdir' = `.'.
10040 # Shell code in configure.ac might set extrasub.
10041 # FIXME: do we really want to maintain this feature?
10042 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10043 ac_sed_extra="$ac_vpsub
10044 $extrasub
10045 _ACEOF
10046 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10048 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
10049 s|@configure_input@|$ac_sed_conf_input|;t t
10050 s&@top_builddir@&$ac_top_builddir_sub&;t t
10051 s&@top_build_prefix@&$ac_top_build_prefix&;t t
10052 s&@srcdir@&$ac_srcdir&;t t
10053 s&@abs_srcdir@&$ac_abs_srcdir&;t t
10054 s&@top_srcdir@&$ac_top_srcdir&;t t
10055 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
10056 s&@builddir@&$ac_builddir&;t t
10057 s&@abs_builddir@&$ac_abs_builddir&;t t
10058 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
10059 s&@INSTALL@&$ac_INSTALL&;t t
10060 $ac_datarootdir_hack
10062 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
10063 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
10064 $as_echo "$as_me: error: could not create $ac_file" >&2;}
10065 { (exit 1); exit 1; }; }
10067 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
10068 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
10069 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
10070 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
10071 which seems to be undefined. Please make sure it is defined." >&5
10072 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
10073 which seems to be undefined. Please make sure it is defined." >&2;}
10075 rm -f "$tmp/stdin"
10076 case $ac_file in
10077 -) cat "$tmp/out" && rm -f "$tmp/out";;
10078 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
10079 esac \
10080 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
10081 $as_echo "$as_me: error: could not create $ac_file" >&2;}
10082 { (exit 1); exit 1; }; }
10086 # CONFIG_HEADER
10088 if test x"$ac_file" != x-; then
10090 $as_echo "/* $configure_input */" \
10091 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
10092 } >"$tmp/config.h" \
10093 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
10094 $as_echo "$as_me: error: could not create $ac_file" >&2;}
10095 { (exit 1); exit 1; }; }
10096 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
10097 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
10098 $as_echo "$as_me: $ac_file is unchanged" >&6;}
10099 else
10100 rm -f "$ac_file"
10101 mv "$tmp/config.h" "$ac_file" \
10102 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
10103 $as_echo "$as_me: error: could not create $ac_file" >&2;}
10104 { (exit 1); exit 1; }; }
10106 else
10107 $as_echo "/* $configure_input */" \
10108 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
10109 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
10110 $as_echo "$as_me: error: could not create -" >&2;}
10111 { (exit 1); exit 1; }; }
10115 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
10116 $as_echo "$as_me: executing $ac_file commands" >&6;}
10118 esac
10121 case $ac_file$ac_mode in
10122 "default":C)
10123 case $CONFIG_FILES in *config.make*)
10124 echo "$config_vars" >> config.make;;
10125 esac
10126 test -d bits || mkdir bits ;;
10128 esac
10129 done # for ac_tag
10132 { (exit 0); exit 0; }
10133 _ACEOF
10134 chmod +x $CONFIG_STATUS
10135 ac_clean_files=$ac_clean_files_save
10137 test $ac_write_fail = 0 ||
10138 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
10139 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
10140 { (exit 1); exit 1; }; }
10143 # configure is writing to config.log, and then calls config.status.
10144 # config.status does its own redirection, appending to config.log.
10145 # Unfortunately, on DOS this fails, as config.log is still kept open
10146 # by configure, so config.status won't be able to write to it; its
10147 # output is simply discarded. So we exec the FD to /dev/null,
10148 # effectively closing config.log, so it can be properly (re)opened and
10149 # appended to by config.status. When coming back to configure, we
10150 # need to make the FD available again.
10151 if test "$no_create" != yes; then
10152 ac_cs_success=:
10153 ac_config_status_args=
10154 test "$silent" = yes &&
10155 ac_config_status_args="$ac_config_status_args --quiet"
10156 exec 5>/dev/null
10157 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
10158 exec 5>>config.log
10159 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
10160 # would make configure fail if this is the last instruction.
10161 $ac_cs_success || { (exit 1); exit 1; }
10165 # CONFIG_SUBDIRS section.
10167 if test "$no_recursion" != yes; then
10169 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
10170 # so they do not pile up.
10171 ac_sub_configure_args=
10172 ac_prev=
10173 eval "set x $ac_configure_args"
10174 shift
10175 for ac_arg
10177 if test -n "$ac_prev"; then
10178 ac_prev=
10179 continue
10181 case $ac_arg in
10182 -cache-file | --cache-file | --cache-fil | --cache-fi \
10183 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
10184 ac_prev=cache_file ;;
10185 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
10186 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
10187 | --c=*)
10189 --config-cache | -C)
10191 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
10192 ac_prev=srcdir ;;
10193 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
10195 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
10196 ac_prev=prefix ;;
10197 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
10199 --disable-option-checking)
10202 case $ac_arg in
10203 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
10204 esac
10205 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
10206 esac
10207 done
10209 # Always prepend --prefix to ensure using the same prefix
10210 # in subdir configurations.
10211 ac_arg="--prefix=$prefix"
10212 case $ac_arg in
10213 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
10214 esac
10215 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
10217 # Pass --silent
10218 if test "$silent" = yes; then
10219 ac_sub_configure_args="--silent $ac_sub_configure_args"
10222 # Always prepend --disable-option-checking to silence warnings, since
10223 # different subdirs can have different --enable and --with options.
10224 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
10226 ac_popdir=`pwd`
10227 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
10229 # Do not complain, so a configure script can configure whichever
10230 # parts of a large source tree are present.
10231 test -d "$srcdir/$ac_dir" || continue
10233 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
10234 $as_echo "$as_me:$LINENO: $ac_msg" >&5
10235 $as_echo "$ac_msg" >&6
10236 { as_dir="$ac_dir"
10237 case $as_dir in #(
10238 -*) as_dir=./$as_dir;;
10239 esac
10240 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
10241 as_dirs=
10242 while :; do
10243 case $as_dir in #(
10244 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
10245 *) as_qdir=$as_dir;;
10246 esac
10247 as_dirs="'$as_qdir' $as_dirs"
10248 as_dir=`$as_dirname -- "$as_dir" ||
10249 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10250 X"$as_dir" : 'X\(//\)[^/]' \| \
10251 X"$as_dir" : 'X\(//\)$' \| \
10252 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
10253 $as_echo X"$as_dir" |
10254 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10255 s//\1/
10258 /^X\(\/\/\)[^/].*/{
10259 s//\1/
10262 /^X\(\/\/\)$/{
10263 s//\1/
10266 /^X\(\/\).*/{
10267 s//\1/
10270 s/.*/./; q'`
10271 test -d "$as_dir" && break
10272 done
10273 test -z "$as_dirs" || eval "mkdir $as_dirs"
10274 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
10275 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
10276 { (exit 1); exit 1; }; }; }
10277 ac_builddir=.
10279 case "$ac_dir" in
10280 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
10282 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
10283 # A ".." for each directory in $ac_dir_suffix.
10284 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
10285 case $ac_top_builddir_sub in
10286 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
10287 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
10288 esac ;;
10289 esac
10290 ac_abs_top_builddir=$ac_pwd
10291 ac_abs_builddir=$ac_pwd$ac_dir_suffix
10292 # for backward compatibility:
10293 ac_top_builddir=$ac_top_build_prefix
10295 case $srcdir in
10296 .) # We are building in place.
10297 ac_srcdir=.
10298 ac_top_srcdir=$ac_top_builddir_sub
10299 ac_abs_top_srcdir=$ac_pwd ;;
10300 [\\/]* | ?:[\\/]* ) # Absolute name.
10301 ac_srcdir=$srcdir$ac_dir_suffix;
10302 ac_top_srcdir=$srcdir
10303 ac_abs_top_srcdir=$srcdir ;;
10304 *) # Relative name.
10305 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
10306 ac_top_srcdir=$ac_top_build_prefix$srcdir
10307 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
10308 esac
10309 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
10312 cd "$ac_dir"
10314 # Check for guested configure; otherwise get Cygnus style configure.
10315 if test -f "$ac_srcdir/configure.gnu"; then
10316 ac_sub_configure=$ac_srcdir/configure.gnu
10317 elif test -f "$ac_srcdir/configure"; then
10318 ac_sub_configure=$ac_srcdir/configure
10319 elif test -f "$ac_srcdir/configure.in"; then
10320 # This should be Cygnus configure.
10321 ac_sub_configure=$ac_aux_dir/configure
10322 else
10323 { $as_echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
10324 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
10325 ac_sub_configure=
10328 # The recursion is here.
10329 if test -n "$ac_sub_configure"; then
10330 # Make the cache file name correct relative to the subdirectory.
10331 case $cache_file in
10332 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
10333 *) # Relative name.
10334 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
10335 esac
10337 { $as_echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
10338 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
10339 # The eval makes quoting arguments work.
10340 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
10341 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
10342 { { $as_echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
10343 $as_echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
10344 { (exit 1); exit 1; }; }
10347 cd "$ac_popdir"
10348 done
10350 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
10351 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
10352 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}