Fix POWER7 Implies
[glibc.git] / configure
blob49ac30db46fb5da391fe7125ab173bce097394de
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_cc_avx
661 libc_cv_cc_sse4
662 libc_cv_cpp_asm_debuginfo
663 libc_cv_forced_unwind
664 libc_cv_rootsbindir
665 libc_cv_sysconfdir
666 libc_cv_localedir
667 libc_cv_slibdir
668 old_glibc_headers
669 uname_version
670 uname_release
671 uname_sysname
672 libc_cv_gcc_unwind_find_fde
673 sizeof_long_double
674 EGREP
675 GREP
676 have_selinux
677 have_libcap
678 have_libaudit
679 LIBGD
680 libc_cv_cc_submachine
681 exceptions
682 no_whole_archive
683 libc_cv_have_initfini
684 libc_cv_gnu89_inline
685 libc_cv_ssp
686 fno_unit_at_a_time
687 libc_cv_hashstyle
688 libc_cv_fpie
689 libc_cv_z_execstack
690 libc_cv_z_combreloc
691 ASFLAGS_config
692 libc_cv_as_needed
693 libc_cv_libgcc_s_suffix
694 libc_cv_Bgroup
695 libc_cv_cc_with_libunwind
696 VERSIONING
697 BISON
698 INSTALL_INFO
699 PERL
701 libc_cv_have_ksh
703 libc_cv_have_bash2
704 BASH_SHELL
705 libc_cv_gcc_static_libgcc
706 CXX_SYSINCLUDES
707 SYSINCLUDES
708 AUTOCONF
710 MAKEINFO
711 MSGFMT
712 MAKE
713 PWD_P
717 RANLIB
718 OBJDUMP
720 LN_S
721 INSTALL_DATA
722 INSTALL_SCRIPT
723 INSTALL_PROGRAM
724 sysdeps_add_ons
725 sysnames
726 submachine
727 multi_arch
728 base_machine
729 add_on_subdirs
730 add_ons
731 libc_cv_nss_crypt
732 experimental_malloc
733 all_warnings
734 force_install
735 bindnow
736 oldest_abi
737 enable_check_abi
738 with_cvs
739 with_fp
740 ac_ct_CXX
741 CXXFLAGS
744 cross_compiling
745 BUILD_CC
746 OBJEXT
747 ac_ct_CC
748 CPPFLAGS
749 LDFLAGS
750 CFLAGS
752 host_os
753 host_vendor
754 host_cpu
755 host
756 build_os
757 build_vendor
758 build_cpu
759 build
760 subdirs
761 target_alias
762 host_alias
763 build_alias
764 LIBS
765 ECHO_T
766 ECHO_N
767 ECHO_C
768 DEFS
769 mandir
770 localedir
771 libdir
772 psdir
773 pdfdir
774 dvidir
775 htmldir
776 infodir
777 docdir
778 oldincludedir
779 includedir
780 localstatedir
781 sharedstatedir
782 sysconfdir
783 datadir
784 datarootdir
785 libexecdir
786 sbindir
787 bindir
788 program_transform_name
789 prefix
790 exec_prefix
791 PACKAGE_BUGREPORT
792 PACKAGE_STRING
793 PACKAGE_VERSION
794 PACKAGE_TARNAME
795 PACKAGE_NAME
796 PATH_SEPARATOR
797 SHELL'
798 ac_subst_files=''
799 ac_user_opts='
800 enable_option_checking
801 with_gd
802 with_gd_include
803 with_gd_lib
804 with_fp
805 with_binutils
806 with_elf
807 with_selinux
808 with_xcoff
809 with_cvs
810 with_headers
811 enable_sanity_checks
812 enable_check_abi
813 enable_shared
814 enable_profile
815 enable_omitfp
816 enable_bounded
817 enable_versioning
818 enable_oldest_abi
819 enable_stackguard_randomization
820 enable_add_ons
821 with_tls
822 with___thread
823 enable_hidden_plt
824 enable_bind_now
825 enable_static_nss
826 enable_force_install
827 enable_kernel
828 enable_all_warnings
829 enable_multi_arch
830 enable_experimental_malloc
831 enable_nss_crypt
832 with_cpu
834 ac_precious_vars='build_alias
835 host_alias
836 target_alias
838 CFLAGS
839 LDFLAGS
840 LIBS
841 CPPFLAGS
844 CXXFLAGS
845 CCC'
846 ac_subdirs_all='
849 # Initialize some variables set by options.
850 ac_init_help=
851 ac_init_version=false
852 ac_unrecognized_opts=
853 ac_unrecognized_sep=
854 # The variables have the same names as the options, with
855 # dashes changed to underlines.
856 cache_file=/dev/null
857 exec_prefix=NONE
858 no_create=
859 no_recursion=
860 prefix=NONE
861 program_prefix=NONE
862 program_suffix=NONE
863 program_transform_name=s,x,x,
864 silent=
865 site=
866 srcdir=
867 verbose=
868 x_includes=NONE
869 x_libraries=NONE
871 # Installation directory options.
872 # These are left unexpanded so users can "make install exec_prefix=/foo"
873 # and all the variables that are supposed to be based on exec_prefix
874 # by default will actually change.
875 # Use braces instead of parens because sh, perl, etc. also accept them.
876 # (The list follows the same order as the GNU Coding Standards.)
877 bindir='${exec_prefix}/bin'
878 sbindir='${exec_prefix}/sbin'
879 libexecdir='${exec_prefix}/libexec'
880 datarootdir='${prefix}/share'
881 datadir='${datarootdir}'
882 sysconfdir='${prefix}/etc'
883 sharedstatedir='${prefix}/com'
884 localstatedir='${prefix}/var'
885 includedir='${prefix}/include'
886 oldincludedir='/usr/include'
887 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
888 infodir='${datarootdir}/info'
889 htmldir='${docdir}'
890 dvidir='${docdir}'
891 pdfdir='${docdir}'
892 psdir='${docdir}'
893 libdir='${exec_prefix}/lib'
894 localedir='${datarootdir}/locale'
895 mandir='${datarootdir}/man'
897 ac_prev=
898 ac_dashdash=
899 for ac_option
901 # If the previous option needs an argument, assign it.
902 if test -n "$ac_prev"; then
903 eval $ac_prev=\$ac_option
904 ac_prev=
905 continue
908 case $ac_option in
909 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
910 *) ac_optarg=yes ;;
911 esac
913 # Accept the important Cygnus configure options, so we can diagnose typos.
915 case $ac_dashdash$ac_option in
917 ac_dashdash=yes ;;
919 -bindir | --bindir | --bindi | --bind | --bin | --bi)
920 ac_prev=bindir ;;
921 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
922 bindir=$ac_optarg ;;
924 -build | --build | --buil | --bui | --bu)
925 ac_prev=build_alias ;;
926 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
927 build_alias=$ac_optarg ;;
929 -cache-file | --cache-file | --cache-fil | --cache-fi \
930 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
931 ac_prev=cache_file ;;
932 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
933 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
934 cache_file=$ac_optarg ;;
936 --config-cache | -C)
937 cache_file=config.cache ;;
939 -datadir | --datadir | --datadi | --datad)
940 ac_prev=datadir ;;
941 -datadir=* | --datadir=* | --datadi=* | --datad=*)
942 datadir=$ac_optarg ;;
944 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
945 | --dataroo | --dataro | --datar)
946 ac_prev=datarootdir ;;
947 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
948 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
949 datarootdir=$ac_optarg ;;
951 -disable-* | --disable-*)
952 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
953 # Reject names that are not valid shell variable names.
954 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
955 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
956 { (exit 1); exit 1; }; }
957 ac_useropt_orig=$ac_useropt
958 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
959 case $ac_user_opts in
961 "enable_$ac_useropt"
962 "*) ;;
963 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
964 ac_unrecognized_sep=', ';;
965 esac
966 eval enable_$ac_useropt=no ;;
968 -docdir | --docdir | --docdi | --doc | --do)
969 ac_prev=docdir ;;
970 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
971 docdir=$ac_optarg ;;
973 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
974 ac_prev=dvidir ;;
975 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
976 dvidir=$ac_optarg ;;
978 -enable-* | --enable-*)
979 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
980 # Reject names that are not valid shell variable names.
981 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
982 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
983 { (exit 1); exit 1; }; }
984 ac_useropt_orig=$ac_useropt
985 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
986 case $ac_user_opts in
988 "enable_$ac_useropt"
989 "*) ;;
990 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
991 ac_unrecognized_sep=', ';;
992 esac
993 eval enable_$ac_useropt=\$ac_optarg ;;
995 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
996 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
997 | --exec | --exe | --ex)
998 ac_prev=exec_prefix ;;
999 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1000 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1001 | --exec=* | --exe=* | --ex=*)
1002 exec_prefix=$ac_optarg ;;
1004 -gas | --gas | --ga | --g)
1005 # Obsolete; use --with-gas.
1006 with_gas=yes ;;
1008 -help | --help | --hel | --he | -h)
1009 ac_init_help=long ;;
1010 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1011 ac_init_help=recursive ;;
1012 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1013 ac_init_help=short ;;
1015 -host | --host | --hos | --ho)
1016 ac_prev=host_alias ;;
1017 -host=* | --host=* | --hos=* | --ho=*)
1018 host_alias=$ac_optarg ;;
1020 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1021 ac_prev=htmldir ;;
1022 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1023 | --ht=*)
1024 htmldir=$ac_optarg ;;
1026 -includedir | --includedir | --includedi | --included | --include \
1027 | --includ | --inclu | --incl | --inc)
1028 ac_prev=includedir ;;
1029 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1030 | --includ=* | --inclu=* | --incl=* | --inc=*)
1031 includedir=$ac_optarg ;;
1033 -infodir | --infodir | --infodi | --infod | --info | --inf)
1034 ac_prev=infodir ;;
1035 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1036 infodir=$ac_optarg ;;
1038 -libdir | --libdir | --libdi | --libd)
1039 ac_prev=libdir ;;
1040 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1041 libdir=$ac_optarg ;;
1043 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1044 | --libexe | --libex | --libe)
1045 ac_prev=libexecdir ;;
1046 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1047 | --libexe=* | --libex=* | --libe=*)
1048 libexecdir=$ac_optarg ;;
1050 -localedir | --localedir | --localedi | --localed | --locale)
1051 ac_prev=localedir ;;
1052 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1053 localedir=$ac_optarg ;;
1055 -localstatedir | --localstatedir | --localstatedi | --localstated \
1056 | --localstate | --localstat | --localsta | --localst | --locals)
1057 ac_prev=localstatedir ;;
1058 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1059 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1060 localstatedir=$ac_optarg ;;
1062 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1063 ac_prev=mandir ;;
1064 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1065 mandir=$ac_optarg ;;
1067 -nfp | --nfp | --nf)
1068 # Obsolete; use --without-fp.
1069 with_fp=no ;;
1071 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1072 | --no-cr | --no-c | -n)
1073 no_create=yes ;;
1075 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1076 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1077 no_recursion=yes ;;
1079 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1080 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1081 | --oldin | --oldi | --old | --ol | --o)
1082 ac_prev=oldincludedir ;;
1083 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1084 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1085 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1086 oldincludedir=$ac_optarg ;;
1088 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1089 ac_prev=prefix ;;
1090 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1091 prefix=$ac_optarg ;;
1093 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1094 | --program-pre | --program-pr | --program-p)
1095 ac_prev=program_prefix ;;
1096 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1097 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1098 program_prefix=$ac_optarg ;;
1100 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1101 | --program-suf | --program-su | --program-s)
1102 ac_prev=program_suffix ;;
1103 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1104 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1105 program_suffix=$ac_optarg ;;
1107 -program-transform-name | --program-transform-name \
1108 | --program-transform-nam | --program-transform-na \
1109 | --program-transform-n | --program-transform- \
1110 | --program-transform | --program-transfor \
1111 | --program-transfo | --program-transf \
1112 | --program-trans | --program-tran \
1113 | --progr-tra | --program-tr | --program-t)
1114 ac_prev=program_transform_name ;;
1115 -program-transform-name=* | --program-transform-name=* \
1116 | --program-transform-nam=* | --program-transform-na=* \
1117 | --program-transform-n=* | --program-transform-=* \
1118 | --program-transform=* | --program-transfor=* \
1119 | --program-transfo=* | --program-transf=* \
1120 | --program-trans=* | --program-tran=* \
1121 | --progr-tra=* | --program-tr=* | --program-t=*)
1122 program_transform_name=$ac_optarg ;;
1124 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1125 ac_prev=pdfdir ;;
1126 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1127 pdfdir=$ac_optarg ;;
1129 -psdir | --psdir | --psdi | --psd | --ps)
1130 ac_prev=psdir ;;
1131 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1132 psdir=$ac_optarg ;;
1134 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1135 | -silent | --silent | --silen | --sile | --sil)
1136 silent=yes ;;
1138 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1139 ac_prev=sbindir ;;
1140 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1141 | --sbi=* | --sb=*)
1142 sbindir=$ac_optarg ;;
1144 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1145 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1146 | --sharedst | --shareds | --shared | --share | --shar \
1147 | --sha | --sh)
1148 ac_prev=sharedstatedir ;;
1149 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1150 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1151 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1152 | --sha=* | --sh=*)
1153 sharedstatedir=$ac_optarg ;;
1155 -site | --site | --sit)
1156 ac_prev=site ;;
1157 -site=* | --site=* | --sit=*)
1158 site=$ac_optarg ;;
1160 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1161 ac_prev=srcdir ;;
1162 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1163 srcdir=$ac_optarg ;;
1165 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1166 | --syscon | --sysco | --sysc | --sys | --sy)
1167 ac_prev=sysconfdir ;;
1168 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1169 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1170 sysconfdir=$ac_optarg ;;
1172 -target | --target | --targe | --targ | --tar | --ta | --t)
1173 ac_prev=target_alias ;;
1174 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1175 target_alias=$ac_optarg ;;
1177 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1178 verbose=yes ;;
1180 -version | --version | --versio | --versi | --vers | -V)
1181 ac_init_version=: ;;
1183 -with-* | --with-*)
1184 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1185 # Reject names that are not valid shell variable names.
1186 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1187 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1188 { (exit 1); exit 1; }; }
1189 ac_useropt_orig=$ac_useropt
1190 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1191 case $ac_user_opts in
1193 "with_$ac_useropt"
1194 "*) ;;
1195 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1196 ac_unrecognized_sep=', ';;
1197 esac
1198 eval with_$ac_useropt=\$ac_optarg ;;
1200 -without-* | --without-*)
1201 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1202 # Reject names that are not valid shell variable names.
1203 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1204 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1205 { (exit 1); exit 1; }; }
1206 ac_useropt_orig=$ac_useropt
1207 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1208 case $ac_user_opts in
1210 "with_$ac_useropt"
1211 "*) ;;
1212 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1213 ac_unrecognized_sep=', ';;
1214 esac
1215 eval with_$ac_useropt=no ;;
1217 --x)
1218 # Obsolete; use --with-x.
1219 with_x=yes ;;
1221 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1222 | --x-incl | --x-inc | --x-in | --x-i)
1223 ac_prev=x_includes ;;
1224 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1225 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1226 x_includes=$ac_optarg ;;
1228 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1229 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1230 ac_prev=x_libraries ;;
1231 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1232 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1233 x_libraries=$ac_optarg ;;
1235 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1236 Try \`$0 --help' for more information." >&2
1237 { (exit 1); exit 1; }; }
1240 *=*)
1241 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1242 # Reject names that are not valid shell variable names.
1243 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1244 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1245 { (exit 1); exit 1; }; }
1246 eval $ac_envvar=\$ac_optarg
1247 export $ac_envvar ;;
1250 # FIXME: should be removed in autoconf 3.0.
1251 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1252 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1253 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1254 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1257 esac
1258 done
1260 if test -n "$ac_prev"; then
1261 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1262 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1263 { (exit 1); exit 1; }; }
1266 if test -n "$ac_unrecognized_opts"; then
1267 case $enable_option_checking in
1268 no) ;;
1269 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1270 { (exit 1); exit 1; }; } ;;
1271 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1272 esac
1275 # Check all directory arguments for consistency.
1276 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1277 datadir sysconfdir sharedstatedir localstatedir includedir \
1278 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1279 libdir localedir mandir
1281 eval ac_val=\$$ac_var
1282 # Remove trailing slashes.
1283 case $ac_val in
1284 */ )
1285 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1286 eval $ac_var=\$ac_val;;
1287 esac
1288 # Be sure to have absolute directory names.
1289 case $ac_val in
1290 [\\/$]* | ?:[\\/]* ) continue;;
1291 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1292 esac
1293 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1294 { (exit 1); exit 1; }; }
1295 done
1297 # There might be people who depend on the old broken behavior: `$host'
1298 # used to hold the argument of --host etc.
1299 # FIXME: To remove some day.
1300 build=$build_alias
1301 host=$host_alias
1302 target=$target_alias
1304 # FIXME: To remove some day.
1305 if test "x$host_alias" != x; then
1306 if test "x$build_alias" = x; then
1307 cross_compiling=maybe
1308 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1309 If a cross compiler is detected then cross compile mode will be used." >&2
1310 elif test "x$build_alias" != "x$host_alias"; then
1311 cross_compiling=yes
1315 ac_tool_prefix=
1316 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1318 test "$silent" = yes && exec 6>/dev/null
1321 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1322 ac_ls_di=`ls -di .` &&
1323 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1324 { $as_echo "$as_me: error: working directory cannot be determined" >&2
1325 { (exit 1); exit 1; }; }
1326 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1327 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1328 { (exit 1); exit 1; }; }
1331 # Find the source files, if location was not specified.
1332 if test -z "$srcdir"; then
1333 ac_srcdir_defaulted=yes
1334 # Try the directory containing this script, then the parent directory.
1335 ac_confdir=`$as_dirname -- "$as_myself" ||
1336 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1337 X"$as_myself" : 'X\(//\)[^/]' \| \
1338 X"$as_myself" : 'X\(//\)$' \| \
1339 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1340 $as_echo X"$as_myself" |
1341 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1342 s//\1/
1345 /^X\(\/\/\)[^/].*/{
1346 s//\1/
1349 /^X\(\/\/\)$/{
1350 s//\1/
1353 /^X\(\/\).*/{
1354 s//\1/
1357 s/.*/./; q'`
1358 srcdir=$ac_confdir
1359 if test ! -r "$srcdir/$ac_unique_file"; then
1360 srcdir=..
1362 else
1363 ac_srcdir_defaulted=no
1365 if test ! -r "$srcdir/$ac_unique_file"; then
1366 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1367 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1368 { (exit 1); exit 1; }; }
1370 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1371 ac_abs_confdir=`(
1372 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1373 { (exit 1); exit 1; }; }
1374 pwd)`
1375 # When building in place, set srcdir=.
1376 if test "$ac_abs_confdir" = "$ac_pwd"; then
1377 srcdir=.
1379 # Remove unnecessary trailing slashes from srcdir.
1380 # Double slashes in file names in object file debugging info
1381 # mess up M-x gdb in Emacs.
1382 case $srcdir in
1383 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1384 esac
1385 for ac_var in $ac_precious_vars; do
1386 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1387 eval ac_env_${ac_var}_value=\$${ac_var}
1388 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1389 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1390 done
1393 # Report the --help message.
1395 if test "$ac_init_help" = "long"; then
1396 # Omit some internal or obsolete options to make the list less imposing.
1397 # This message is too long to be a string in the A/UX 3.1 sh.
1398 cat <<_ACEOF
1399 \`configure' configures GNU C Library (see version.h) to adapt to many kinds of systems.
1401 Usage: $0 [OPTION]... [VAR=VALUE]...
1403 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1404 VAR=VALUE. See below for descriptions of some of the useful variables.
1406 Defaults for the options are specified in brackets.
1408 Configuration:
1409 -h, --help display this help and exit
1410 --help=short display options specific to this package
1411 --help=recursive display the short help of all the included packages
1412 -V, --version display version information and exit
1413 -q, --quiet, --silent do not print \`checking...' messages
1414 --cache-file=FILE cache test results in FILE [disabled]
1415 -C, --config-cache alias for \`--cache-file=config.cache'
1416 -n, --no-create do not create output files
1417 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1419 Installation directories:
1420 --prefix=PREFIX install architecture-independent files in PREFIX
1421 [$ac_default_prefix]
1422 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1423 [PREFIX]
1425 By default, \`make install' will install all the files in
1426 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1427 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1428 for instance \`--prefix=\$HOME'.
1430 For better control, use the options below.
1432 Fine tuning of the installation directories:
1433 --bindir=DIR user executables [EPREFIX/bin]
1434 --sbindir=DIR system admin executables [EPREFIX/sbin]
1435 --libexecdir=DIR program executables [EPREFIX/libexec]
1436 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1437 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1438 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1439 --libdir=DIR object code libraries [EPREFIX/lib]
1440 --includedir=DIR C header files [PREFIX/include]
1441 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1442 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1443 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1444 --infodir=DIR info documentation [DATAROOTDIR/info]
1445 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1446 --mandir=DIR man documentation [DATAROOTDIR/man]
1447 --docdir=DIR documentation root [DATAROOTDIR/doc/c-library]
1448 --htmldir=DIR html documentation [DOCDIR]
1449 --dvidir=DIR dvi documentation [DOCDIR]
1450 --pdfdir=DIR pdf documentation [DOCDIR]
1451 --psdir=DIR ps documentation [DOCDIR]
1452 _ACEOF
1454 cat <<\_ACEOF
1456 System types:
1457 --build=BUILD configure for building on BUILD [guessed]
1458 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1459 _ACEOF
1462 if test -n "$ac_init_help"; then
1463 case $ac_init_help in
1464 short | recursive ) echo "Configuration of GNU C Library (see version.h):";;
1465 esac
1466 cat <<\_ACEOF
1468 Optional Features:
1469 --disable-option-checking ignore unrecognized --enable/--with options
1470 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1471 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1472 --disable-sanity-checks really do not use threads (should not be used except
1473 in special situations) [default=yes]
1474 --enable-check-abi do "make check-abi" in "make check" (no/warn/yes)
1475 [default=no]
1476 --enable-shared build shared library [default=yes if GNU ld & ELF]
1477 --enable-profile build profiled library [default=no]
1478 --enable-omitfp build undebuggable optimized library [default=no]
1479 --enable-bounded build with runtime bounds checking [default=no]
1480 --disable-versioning do not include versioning information in the library
1481 objects [default=yes if supported]
1482 --enable-oldest-abi=ABI configure the oldest ABI supported [e.g. 2.2]
1483 [default=glibc default]
1484 --enable-stackguard-randomization
1485 initialize __stack_chk_guard canary with a random
1486 number at program start
1487 --enable-add-ons[=DIRS...]
1488 configure and build add-ons in DIR1,DIR2,... search
1489 for add-ons if no parameter given
1490 --disable-hidden-plt do not hide internal function calls to avoid PLT
1491 --enable-bind-now disable lazy relocations in DSOs
1492 --enable-static-nss build static NSS modules [default=no]
1493 --disable-force-install don't force installation of files from this package,
1494 even if they are older than the installed files
1495 --enable-kernel=VERSION compile for compatibility with kernel not older than
1496 VERSION
1497 --enable-all-warnings enable all useful warnings gcc can issue
1498 --enable-multi-arch enable single DSO with optimizations for multiple
1499 architectures
1500 --enable-experimental-malloc
1501 enable experimental malloc features
1502 --enable-nss-crypt enable libcrypt to use nss
1504 Optional Packages:
1505 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1506 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1507 --with-gd=DIR find libgd include dir and library with prefix DIR
1508 --with-gd-include=DIR find libgd include files in DIR
1509 --with-gd-lib=DIR find libgd library files in DIR
1510 --with-fp if using floating-point hardware [default=yes]
1511 --with-binutils=PATH specify location of binutils (as and ld)
1512 --with-elf if using the ELF object format
1513 --with-selinux if building with SELinux support
1514 --with-xcoff if using the XCOFF object format
1515 --without-cvs if CVS should not be used
1516 --with-headers=PATH location of system headers to use (for example
1517 /usr/src/linux/include) [default=compiler default]
1518 --with-tls enable support for TLS
1519 --without-__thread do not use TLS features even when supporting them
1520 --with-cpu=CPU select code for CPU variant
1522 Some influential environment variables:
1523 CC C compiler command
1524 CFLAGS C compiler flags
1525 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1526 nonstandard directory <lib dir>
1527 LIBS libraries to pass to the linker, e.g. -l<library>
1528 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1529 you have headers in a nonstandard directory <include dir>
1530 CPP C preprocessor
1531 CXX C++ compiler command
1532 CXXFLAGS C++ compiler flags
1534 Use these variables to override the choices made by `configure' or to help
1535 it to find libraries and programs with nonstandard names/locations.
1537 Report bugs to <glibc>.
1538 _ACEOF
1539 ac_status=$?
1542 if test "$ac_init_help" = "recursive"; then
1543 # If there are subdirs, report their specific --help.
1544 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1545 test -d "$ac_dir" ||
1546 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1547 continue
1548 ac_builddir=.
1550 case "$ac_dir" in
1551 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1553 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1554 # A ".." for each directory in $ac_dir_suffix.
1555 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1556 case $ac_top_builddir_sub in
1557 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1558 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1559 esac ;;
1560 esac
1561 ac_abs_top_builddir=$ac_pwd
1562 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1563 # for backward compatibility:
1564 ac_top_builddir=$ac_top_build_prefix
1566 case $srcdir in
1567 .) # We are building in place.
1568 ac_srcdir=.
1569 ac_top_srcdir=$ac_top_builddir_sub
1570 ac_abs_top_srcdir=$ac_pwd ;;
1571 [\\/]* | ?:[\\/]* ) # Absolute name.
1572 ac_srcdir=$srcdir$ac_dir_suffix;
1573 ac_top_srcdir=$srcdir
1574 ac_abs_top_srcdir=$srcdir ;;
1575 *) # Relative name.
1576 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1577 ac_top_srcdir=$ac_top_build_prefix$srcdir
1578 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1579 esac
1580 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1582 cd "$ac_dir" || { ac_status=$?; continue; }
1583 # Check for guested configure.
1584 if test -f "$ac_srcdir/configure.gnu"; then
1585 echo &&
1586 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1587 elif test -f "$ac_srcdir/configure"; then
1588 echo &&
1589 $SHELL "$ac_srcdir/configure" --help=recursive
1590 else
1591 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1592 fi || ac_status=$?
1593 cd "$ac_pwd" || { ac_status=$?; break; }
1594 done
1597 test -n "$ac_init_help" && exit $ac_status
1598 if $ac_init_version; then
1599 cat <<\_ACEOF
1600 GNU C Library configure (see version.h)
1601 generated by GNU Autoconf 2.63
1603 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1604 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1605 This configure script is free software; the Free Software Foundation
1606 gives unlimited permission to copy, distribute and modify it.
1607 _ACEOF
1608 exit
1610 cat >config.log <<_ACEOF
1611 This file contains any messages produced by compilers while
1612 running configure, to aid debugging if configure makes a mistake.
1614 It was created by GNU C Library $as_me (see version.h), which was
1615 generated by GNU Autoconf 2.63. Invocation command line was
1617 $ $0 $@
1619 _ACEOF
1620 exec 5>>config.log
1622 cat <<_ASUNAME
1623 ## --------- ##
1624 ## Platform. ##
1625 ## --------- ##
1627 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1628 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1629 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1630 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1631 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1633 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1634 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1636 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1637 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1638 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1639 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1640 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1641 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1642 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1644 _ASUNAME
1646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1647 for as_dir in $PATH
1649 IFS=$as_save_IFS
1650 test -z "$as_dir" && as_dir=.
1651 $as_echo "PATH: $as_dir"
1652 done
1653 IFS=$as_save_IFS
1655 } >&5
1657 cat >&5 <<_ACEOF
1660 ## ----------- ##
1661 ## Core tests. ##
1662 ## ----------- ##
1664 _ACEOF
1667 # Keep a trace of the command line.
1668 # Strip out --no-create and --no-recursion so they do not pile up.
1669 # Strip out --silent because we don't want to record it for future runs.
1670 # Also quote any args containing shell meta-characters.
1671 # Make two passes to allow for proper duplicate-argument suppression.
1672 ac_configure_args=
1673 ac_configure_args0=
1674 ac_configure_args1=
1675 ac_must_keep_next=false
1676 for ac_pass in 1 2
1678 for ac_arg
1680 case $ac_arg in
1681 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1682 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1683 | -silent | --silent | --silen | --sile | --sil)
1684 continue ;;
1685 *\'*)
1686 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1687 esac
1688 case $ac_pass in
1689 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1691 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1692 if test $ac_must_keep_next = true; then
1693 ac_must_keep_next=false # Got value, back to normal.
1694 else
1695 case $ac_arg in
1696 *=* | --config-cache | -C | -disable-* | --disable-* \
1697 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1698 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1699 | -with-* | --with-* | -without-* | --without-* | --x)
1700 case "$ac_configure_args0 " in
1701 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1702 esac
1704 -* ) ac_must_keep_next=true ;;
1705 esac
1707 ac_configure_args="$ac_configure_args '$ac_arg'"
1709 esac
1710 done
1711 done
1712 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1713 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1715 # When interrupted or exit'd, cleanup temporary files, and complete
1716 # config.log. We remove comments because anyway the quotes in there
1717 # would cause problems or look ugly.
1718 # WARNING: Use '\'' to represent an apostrophe within the trap.
1719 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1720 trap 'exit_status=$?
1721 # Save into config.log some information that might help in debugging.
1723 echo
1725 cat <<\_ASBOX
1726 ## ---------------- ##
1727 ## Cache variables. ##
1728 ## ---------------- ##
1729 _ASBOX
1730 echo
1731 # The following way of writing the cache mishandles newlines in values,
1733 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1734 eval ac_val=\$$ac_var
1735 case $ac_val in #(
1736 *${as_nl}*)
1737 case $ac_var in #(
1738 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1739 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1740 esac
1741 case $ac_var in #(
1742 _ | IFS | as_nl) ;; #(
1743 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1744 *) $as_unset $ac_var ;;
1745 esac ;;
1746 esac
1747 done
1748 (set) 2>&1 |
1749 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1750 *${as_nl}ac_space=\ *)
1751 sed -n \
1752 "s/'\''/'\''\\\\'\'''\''/g;
1753 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1754 ;; #(
1756 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1758 esac |
1759 sort
1761 echo
1763 cat <<\_ASBOX
1764 ## ----------------- ##
1765 ## Output variables. ##
1766 ## ----------------- ##
1767 _ASBOX
1768 echo
1769 for ac_var in $ac_subst_vars
1771 eval ac_val=\$$ac_var
1772 case $ac_val in
1773 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1774 esac
1775 $as_echo "$ac_var='\''$ac_val'\''"
1776 done | sort
1777 echo
1779 if test -n "$ac_subst_files"; then
1780 cat <<\_ASBOX
1781 ## ------------------- ##
1782 ## File substitutions. ##
1783 ## ------------------- ##
1784 _ASBOX
1785 echo
1786 for ac_var in $ac_subst_files
1788 eval ac_val=\$$ac_var
1789 case $ac_val in
1790 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1791 esac
1792 $as_echo "$ac_var='\''$ac_val'\''"
1793 done | sort
1794 echo
1797 if test -s confdefs.h; then
1798 cat <<\_ASBOX
1799 ## ----------- ##
1800 ## confdefs.h. ##
1801 ## ----------- ##
1802 _ASBOX
1803 echo
1804 cat confdefs.h
1805 echo
1807 test "$ac_signal" != 0 &&
1808 $as_echo "$as_me: caught signal $ac_signal"
1809 $as_echo "$as_me: exit $exit_status"
1810 } >&5
1811 rm -f core *.core core.conftest.* &&
1812 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1813 exit $exit_status
1815 for ac_signal in 1 2 13 15; do
1816 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1817 done
1818 ac_signal=0
1820 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1821 rm -f -r conftest* confdefs.h
1823 # Predefined preprocessor variables.
1825 cat >>confdefs.h <<_ACEOF
1826 #define PACKAGE_NAME "$PACKAGE_NAME"
1827 _ACEOF
1830 cat >>confdefs.h <<_ACEOF
1831 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1832 _ACEOF
1835 cat >>confdefs.h <<_ACEOF
1836 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1837 _ACEOF
1840 cat >>confdefs.h <<_ACEOF
1841 #define PACKAGE_STRING "$PACKAGE_STRING"
1842 _ACEOF
1845 cat >>confdefs.h <<_ACEOF
1846 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1847 _ACEOF
1850 # Let the site file select an alternate cache file if it wants to.
1851 # Prefer an explicitly selected file to automatically selected ones.
1852 ac_site_file1=NONE
1853 ac_site_file2=NONE
1854 if test -n "$CONFIG_SITE"; then
1855 ac_site_file1=$CONFIG_SITE
1856 elif test "x$prefix" != xNONE; then
1857 ac_site_file1=$prefix/share/config.site
1858 ac_site_file2=$prefix/etc/config.site
1859 else
1860 ac_site_file1=$ac_default_prefix/share/config.site
1861 ac_site_file2=$ac_default_prefix/etc/config.site
1863 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1865 test "x$ac_site_file" = xNONE && continue
1866 if test -r "$ac_site_file"; then
1867 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1868 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1869 sed 's/^/| /' "$ac_site_file" >&5
1870 . "$ac_site_file"
1872 done
1874 if test -r "$cache_file"; then
1875 # Some versions of bash will fail to source /dev/null (special
1876 # files actually), so we avoid doing that.
1877 if test -f "$cache_file"; then
1878 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1879 $as_echo "$as_me: loading cache $cache_file" >&6;}
1880 case $cache_file in
1881 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1882 *) . "./$cache_file";;
1883 esac
1885 else
1886 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1887 $as_echo "$as_me: creating cache $cache_file" >&6;}
1888 >$cache_file
1891 # Check that the precious variables saved in the cache have kept the same
1892 # value.
1893 ac_cache_corrupted=false
1894 for ac_var in $ac_precious_vars; do
1895 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1896 eval ac_new_set=\$ac_env_${ac_var}_set
1897 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1898 eval ac_new_val=\$ac_env_${ac_var}_value
1899 case $ac_old_set,$ac_new_set in
1900 set,)
1901 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1902 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1903 ac_cache_corrupted=: ;;
1904 ,set)
1905 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1906 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1907 ac_cache_corrupted=: ;;
1908 ,);;
1910 if test "x$ac_old_val" != "x$ac_new_val"; then
1911 # differences in whitespace do not lead to failure.
1912 ac_old_val_w=`echo x $ac_old_val`
1913 ac_new_val_w=`echo x $ac_new_val`
1914 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1915 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1916 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1917 ac_cache_corrupted=:
1918 else
1919 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1920 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1921 eval $ac_var=\$ac_old_val
1923 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1924 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1925 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1926 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1927 fi;;
1928 esac
1929 # Pass precious variables to config.status.
1930 if test "$ac_new_set" = set; then
1931 case $ac_new_val in
1932 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1933 *) ac_arg=$ac_var=$ac_new_val ;;
1934 esac
1935 case " $ac_configure_args " in
1936 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1937 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1938 esac
1940 done
1941 if $ac_cache_corrupted; then
1942 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1943 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1944 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1945 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1946 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1947 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1948 { (exit 1); exit 1; }; }
1975 ac_ext=c
1976 ac_cpp='$CPP $CPPFLAGS'
1977 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1978 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1979 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1983 ac_config_headers="$ac_config_headers config.h"
1985 ac_aux_dir=
1986 for ac_dir in scripts "$srcdir"/scripts; do
1987 if test -f "$ac_dir/install-sh"; then
1988 ac_aux_dir=$ac_dir
1989 ac_install_sh="$ac_aux_dir/install-sh -c"
1990 break
1991 elif test -f "$ac_dir/install.sh"; then
1992 ac_aux_dir=$ac_dir
1993 ac_install_sh="$ac_aux_dir/install.sh -c"
1994 break
1995 elif test -f "$ac_dir/shtool"; then
1996 ac_aux_dir=$ac_dir
1997 ac_install_sh="$ac_aux_dir/shtool install -c"
1998 break
2000 done
2001 if test -z "$ac_aux_dir"; then
2002 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in scripts \"$srcdir\"/scripts" >&5
2003 $as_echo "$as_me: error: cannot find install-sh or install.sh in scripts \"$srcdir\"/scripts" >&2;}
2004 { (exit 1); exit 1; }; }
2007 # These three variables are undocumented and unsupported,
2008 # and are intended to be withdrawn in a future Autoconf release.
2009 # They can cause serious problems if a builder's source tree is in a directory
2010 # whose full name contains unusual characters.
2011 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2012 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2013 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2019 subdirs="$subdirs "
2022 # Make sure we can run config.sub.
2023 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2024 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2025 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2026 { (exit 1); exit 1; }; }
2028 { $as_echo "$as_me:$LINENO: checking build system type" >&5
2029 $as_echo_n "checking build system type... " >&6; }
2030 if test "${ac_cv_build+set}" = set; then
2031 $as_echo_n "(cached) " >&6
2032 else
2033 ac_build_alias=$build_alias
2034 test "x$ac_build_alias" = x &&
2035 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2036 test "x$ac_build_alias" = x &&
2037 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2038 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2039 { (exit 1); exit 1; }; }
2040 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2041 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2042 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2043 { (exit 1); exit 1; }; }
2046 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2047 $as_echo "$ac_cv_build" >&6; }
2048 case $ac_cv_build in
2049 *-*-*) ;;
2050 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2051 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
2052 { (exit 1); exit 1; }; };;
2053 esac
2054 build=$ac_cv_build
2055 ac_save_IFS=$IFS; IFS='-'
2056 set x $ac_cv_build
2057 shift
2058 build_cpu=$1
2059 build_vendor=$2
2060 shift; shift
2061 # Remember, the first character of IFS is used to create $*,
2062 # except with old shells:
2063 build_os=$*
2064 IFS=$ac_save_IFS
2065 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2068 { $as_echo "$as_me:$LINENO: checking host system type" >&5
2069 $as_echo_n "checking host system type... " >&6; }
2070 if test "${ac_cv_host+set}" = set; then
2071 $as_echo_n "(cached) " >&6
2072 else
2073 if test "x$host_alias" = x; then
2074 ac_cv_host=$ac_cv_build
2075 else
2076 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2077 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2078 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2079 { (exit 1); exit 1; }; }
2083 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2084 $as_echo "$ac_cv_host" >&6; }
2085 case $ac_cv_host in
2086 *-*-*) ;;
2087 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2088 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
2089 { (exit 1); exit 1; }; };;
2090 esac
2091 host=$ac_cv_host
2092 ac_save_IFS=$IFS; IFS='-'
2093 set x $ac_cv_host
2094 shift
2095 host_cpu=$1
2096 host_vendor=$2
2097 shift; shift
2098 # Remember, the first character of IFS is used to create $*,
2099 # except with old shells:
2100 host_os=$*
2101 IFS=$ac_save_IFS
2102 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2106 ac_ext=c
2107 ac_cpp='$CPP $CPPFLAGS'
2108 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2109 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2110 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2111 if test -n "$ac_tool_prefix"; then
2112 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2113 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2114 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2115 $as_echo_n "checking for $ac_word... " >&6; }
2116 if test "${ac_cv_prog_CC+set}" = set; then
2117 $as_echo_n "(cached) " >&6
2118 else
2119 if test -n "$CC"; then
2120 ac_cv_prog_CC="$CC" # Let the user override the test.
2121 else
2122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2123 for as_dir in $PATH
2125 IFS=$as_save_IFS
2126 test -z "$as_dir" && as_dir=.
2127 for ac_exec_ext in '' $ac_executable_extensions; do
2128 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2129 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2130 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2131 break 2
2133 done
2134 done
2135 IFS=$as_save_IFS
2139 CC=$ac_cv_prog_CC
2140 if test -n "$CC"; then
2141 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2142 $as_echo "$CC" >&6; }
2143 else
2144 { $as_echo "$as_me:$LINENO: result: no" >&5
2145 $as_echo "no" >&6; }
2150 if test -z "$ac_cv_prog_CC"; then
2151 ac_ct_CC=$CC
2152 # Extract the first word of "gcc", so it can be a program name with args.
2153 set dummy gcc; ac_word=$2
2154 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2155 $as_echo_n "checking for $ac_word... " >&6; }
2156 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2157 $as_echo_n "(cached) " >&6
2158 else
2159 if test -n "$ac_ct_CC"; then
2160 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2161 else
2162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2163 for as_dir in $PATH
2165 IFS=$as_save_IFS
2166 test -z "$as_dir" && as_dir=.
2167 for ac_exec_ext in '' $ac_executable_extensions; do
2168 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2169 ac_cv_prog_ac_ct_CC="gcc"
2170 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2171 break 2
2173 done
2174 done
2175 IFS=$as_save_IFS
2179 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2180 if test -n "$ac_ct_CC"; then
2181 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2182 $as_echo "$ac_ct_CC" >&6; }
2183 else
2184 { $as_echo "$as_me:$LINENO: result: no" >&5
2185 $as_echo "no" >&6; }
2188 if test "x$ac_ct_CC" = x; then
2189 CC=""
2190 else
2191 case $cross_compiling:$ac_tool_warned in
2192 yes:)
2193 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2194 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2195 ac_tool_warned=yes ;;
2196 esac
2197 CC=$ac_ct_CC
2199 else
2200 CC="$ac_cv_prog_CC"
2203 if test -z "$CC"; then
2204 if test -n "$ac_tool_prefix"; then
2205 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2206 set dummy ${ac_tool_prefix}cc; ac_word=$2
2207 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2208 $as_echo_n "checking for $ac_word... " >&6; }
2209 if test "${ac_cv_prog_CC+set}" = set; then
2210 $as_echo_n "(cached) " >&6
2211 else
2212 if test -n "$CC"; then
2213 ac_cv_prog_CC="$CC" # Let the user override the test.
2214 else
2215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2216 for as_dir in $PATH
2218 IFS=$as_save_IFS
2219 test -z "$as_dir" && as_dir=.
2220 for ac_exec_ext in '' $ac_executable_extensions; do
2221 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2222 ac_cv_prog_CC="${ac_tool_prefix}cc"
2223 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2224 break 2
2226 done
2227 done
2228 IFS=$as_save_IFS
2232 CC=$ac_cv_prog_CC
2233 if test -n "$CC"; then
2234 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2235 $as_echo "$CC" >&6; }
2236 else
2237 { $as_echo "$as_me:$LINENO: result: no" >&5
2238 $as_echo "no" >&6; }
2244 if test -z "$CC"; then
2245 # Extract the first word of "cc", so it can be a program name with args.
2246 set dummy cc; ac_word=$2
2247 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2248 $as_echo_n "checking for $ac_word... " >&6; }
2249 if test "${ac_cv_prog_CC+set}" = set; then
2250 $as_echo_n "(cached) " >&6
2251 else
2252 if test -n "$CC"; then
2253 ac_cv_prog_CC="$CC" # Let the user override the test.
2254 else
2255 ac_prog_rejected=no
2256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2257 for as_dir in $PATH
2259 IFS=$as_save_IFS
2260 test -z "$as_dir" && as_dir=.
2261 for ac_exec_ext in '' $ac_executable_extensions; do
2262 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2263 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2264 ac_prog_rejected=yes
2265 continue
2267 ac_cv_prog_CC="cc"
2268 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2269 break 2
2271 done
2272 done
2273 IFS=$as_save_IFS
2275 if test $ac_prog_rejected = yes; then
2276 # We found a bogon in the path, so make sure we never use it.
2277 set dummy $ac_cv_prog_CC
2278 shift
2279 if test $# != 0; then
2280 # We chose a different compiler from the bogus one.
2281 # However, it has the same basename, so the bogon will be chosen
2282 # first if we set CC to just the basename; use the full file name.
2283 shift
2284 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2289 CC=$ac_cv_prog_CC
2290 if test -n "$CC"; then
2291 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2292 $as_echo "$CC" >&6; }
2293 else
2294 { $as_echo "$as_me:$LINENO: result: no" >&5
2295 $as_echo "no" >&6; }
2300 if test -z "$CC"; then
2301 if test -n "$ac_tool_prefix"; then
2302 for ac_prog in cl.exe
2304 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2305 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2306 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2307 $as_echo_n "checking for $ac_word... " >&6; }
2308 if test "${ac_cv_prog_CC+set}" = set; then
2309 $as_echo_n "(cached) " >&6
2310 else
2311 if test -n "$CC"; then
2312 ac_cv_prog_CC="$CC" # Let the user override the test.
2313 else
2314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2315 for as_dir in $PATH
2317 IFS=$as_save_IFS
2318 test -z "$as_dir" && as_dir=.
2319 for ac_exec_ext in '' $ac_executable_extensions; do
2320 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2321 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2322 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2323 break 2
2325 done
2326 done
2327 IFS=$as_save_IFS
2331 CC=$ac_cv_prog_CC
2332 if test -n "$CC"; then
2333 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2334 $as_echo "$CC" >&6; }
2335 else
2336 { $as_echo "$as_me:$LINENO: result: no" >&5
2337 $as_echo "no" >&6; }
2341 test -n "$CC" && break
2342 done
2344 if test -z "$CC"; then
2345 ac_ct_CC=$CC
2346 for ac_prog in cl.exe
2348 # Extract the first word of "$ac_prog", so it can be a program name with args.
2349 set dummy $ac_prog; ac_word=$2
2350 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2351 $as_echo_n "checking for $ac_word... " >&6; }
2352 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2353 $as_echo_n "(cached) " >&6
2354 else
2355 if test -n "$ac_ct_CC"; then
2356 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2357 else
2358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2359 for as_dir in $PATH
2361 IFS=$as_save_IFS
2362 test -z "$as_dir" && as_dir=.
2363 for ac_exec_ext in '' $ac_executable_extensions; do
2364 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2365 ac_cv_prog_ac_ct_CC="$ac_prog"
2366 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2367 break 2
2369 done
2370 done
2371 IFS=$as_save_IFS
2375 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2376 if test -n "$ac_ct_CC"; then
2377 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2378 $as_echo "$ac_ct_CC" >&6; }
2379 else
2380 { $as_echo "$as_me:$LINENO: result: no" >&5
2381 $as_echo "no" >&6; }
2385 test -n "$ac_ct_CC" && break
2386 done
2388 if test "x$ac_ct_CC" = x; then
2389 CC=""
2390 else
2391 case $cross_compiling:$ac_tool_warned in
2392 yes:)
2393 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2394 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2395 ac_tool_warned=yes ;;
2396 esac
2397 CC=$ac_ct_CC
2404 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2405 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2406 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2407 See \`config.log' for more details." >&5
2408 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
2409 See \`config.log' for more details." >&2;}
2410 { (exit 1); exit 1; }; }; }
2412 # Provide some information about the compiler.
2413 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2414 set X $ac_compile
2415 ac_compiler=$2
2416 { (ac_try="$ac_compiler --version >&5"
2417 case "(($ac_try" in
2418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2419 *) ac_try_echo=$ac_try;;
2420 esac
2421 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2422 $as_echo "$ac_try_echo") >&5
2423 (eval "$ac_compiler --version >&5") 2>&5
2424 ac_status=$?
2425 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2426 (exit $ac_status); }
2427 { (ac_try="$ac_compiler -v >&5"
2428 case "(($ac_try" in
2429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2430 *) ac_try_echo=$ac_try;;
2431 esac
2432 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2433 $as_echo "$ac_try_echo") >&5
2434 (eval "$ac_compiler -v >&5") 2>&5
2435 ac_status=$?
2436 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2437 (exit $ac_status); }
2438 { (ac_try="$ac_compiler -V >&5"
2439 case "(($ac_try" in
2440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2441 *) ac_try_echo=$ac_try;;
2442 esac
2443 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2444 $as_echo "$ac_try_echo") >&5
2445 (eval "$ac_compiler -V >&5") 2>&5
2446 ac_status=$?
2447 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2448 (exit $ac_status); }
2450 EXEEXT=
2451 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
2452 $as_echo_n "checking for suffix of object files... " >&6; }
2453 if test "${ac_cv_objext+set}" = set; then
2454 $as_echo_n "(cached) " >&6
2455 else
2456 cat >conftest.$ac_ext <<_ACEOF
2457 /* confdefs.h. */
2458 _ACEOF
2459 cat confdefs.h >>conftest.$ac_ext
2460 cat >>conftest.$ac_ext <<_ACEOF
2461 /* end confdefs.h. */
2464 main ()
2468 return 0;
2470 _ACEOF
2471 rm -f conftest.o conftest.obj
2472 if { (ac_try="$ac_compile"
2473 case "(($ac_try" in
2474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2475 *) ac_try_echo=$ac_try;;
2476 esac
2477 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2478 $as_echo "$ac_try_echo") >&5
2479 (eval "$ac_compile") 2>&5
2480 ac_status=$?
2481 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2482 (exit $ac_status); }; then
2483 for ac_file in conftest.o conftest.obj conftest.*; do
2484 test -f "$ac_file" || continue;
2485 case $ac_file in
2486 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2487 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2488 break;;
2489 esac
2490 done
2491 else
2492 $as_echo "$as_me: failed program was:" >&5
2493 sed 's/^/| /' conftest.$ac_ext >&5
2495 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2496 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2497 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2498 See \`config.log' for more details." >&5
2499 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
2500 See \`config.log' for more details." >&2;}
2501 { (exit 1); exit 1; }; }; }
2504 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2506 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2507 $as_echo "$ac_cv_objext" >&6; }
2508 OBJEXT=$ac_cv_objext
2509 ac_objext=$OBJEXT
2510 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2511 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2512 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2513 $as_echo_n "(cached) " >&6
2514 else
2515 cat >conftest.$ac_ext <<_ACEOF
2516 /* confdefs.h. */
2517 _ACEOF
2518 cat confdefs.h >>conftest.$ac_ext
2519 cat >>conftest.$ac_ext <<_ACEOF
2520 /* end confdefs.h. */
2523 main ()
2525 #ifndef __GNUC__
2526 choke me
2527 #endif
2530 return 0;
2532 _ACEOF
2533 rm -f conftest.$ac_objext
2534 if { (ac_try="$ac_compile"
2535 case "(($ac_try" in
2536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2537 *) ac_try_echo=$ac_try;;
2538 esac
2539 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2540 $as_echo "$ac_try_echo") >&5
2541 (eval "$ac_compile") 2>conftest.er1
2542 ac_status=$?
2543 grep -v '^ *+' conftest.er1 >conftest.err
2544 rm -f conftest.er1
2545 cat conftest.err >&5
2546 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2547 (exit $ac_status); } && {
2548 test -z "$ac_c_werror_flag" ||
2549 test ! -s conftest.err
2550 } && test -s conftest.$ac_objext; then
2551 ac_compiler_gnu=yes
2552 else
2553 $as_echo "$as_me: failed program was:" >&5
2554 sed 's/^/| /' conftest.$ac_ext >&5
2556 ac_compiler_gnu=no
2559 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2560 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2563 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2564 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
2565 if test $ac_compiler_gnu = yes; then
2566 GCC=yes
2567 else
2568 GCC=
2570 ac_test_CFLAGS=${CFLAGS+set}
2571 ac_save_CFLAGS=$CFLAGS
2572 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2573 $as_echo_n "checking whether $CC accepts -g... " >&6; }
2574 if test "${ac_cv_prog_cc_g+set}" = set; then
2575 $as_echo_n "(cached) " >&6
2576 else
2577 ac_save_c_werror_flag=$ac_c_werror_flag
2578 ac_c_werror_flag=yes
2579 ac_cv_prog_cc_g=no
2580 CFLAGS="-g"
2581 cat >conftest.$ac_ext <<_ACEOF
2582 /* confdefs.h. */
2583 _ACEOF
2584 cat confdefs.h >>conftest.$ac_ext
2585 cat >>conftest.$ac_ext <<_ACEOF
2586 /* end confdefs.h. */
2589 main ()
2593 return 0;
2595 _ACEOF
2596 rm -f conftest.$ac_objext
2597 if { (ac_try="$ac_compile"
2598 case "(($ac_try" in
2599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2600 *) ac_try_echo=$ac_try;;
2601 esac
2602 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2603 $as_echo "$ac_try_echo") >&5
2604 (eval "$ac_compile") 2>conftest.er1
2605 ac_status=$?
2606 grep -v '^ *+' conftest.er1 >conftest.err
2607 rm -f conftest.er1
2608 cat conftest.err >&5
2609 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2610 (exit $ac_status); } && {
2611 test -z "$ac_c_werror_flag" ||
2612 test ! -s conftest.err
2613 } && test -s conftest.$ac_objext; then
2614 ac_cv_prog_cc_g=yes
2615 else
2616 $as_echo "$as_me: failed program was:" >&5
2617 sed 's/^/| /' conftest.$ac_ext >&5
2619 CFLAGS=""
2620 cat >conftest.$ac_ext <<_ACEOF
2621 /* confdefs.h. */
2622 _ACEOF
2623 cat confdefs.h >>conftest.$ac_ext
2624 cat >>conftest.$ac_ext <<_ACEOF
2625 /* end confdefs.h. */
2628 main ()
2632 return 0;
2634 _ACEOF
2635 rm -f conftest.$ac_objext
2636 if { (ac_try="$ac_compile"
2637 case "(($ac_try" in
2638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2639 *) ac_try_echo=$ac_try;;
2640 esac
2641 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2642 $as_echo "$ac_try_echo") >&5
2643 (eval "$ac_compile") 2>conftest.er1
2644 ac_status=$?
2645 grep -v '^ *+' conftest.er1 >conftest.err
2646 rm -f conftest.er1
2647 cat conftest.err >&5
2648 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2649 (exit $ac_status); } && {
2650 test -z "$ac_c_werror_flag" ||
2651 test ! -s conftest.err
2652 } && test -s conftest.$ac_objext; then
2654 else
2655 $as_echo "$as_me: failed program was:" >&5
2656 sed 's/^/| /' conftest.$ac_ext >&5
2658 ac_c_werror_flag=$ac_save_c_werror_flag
2659 CFLAGS="-g"
2660 cat >conftest.$ac_ext <<_ACEOF
2661 /* confdefs.h. */
2662 _ACEOF
2663 cat confdefs.h >>conftest.$ac_ext
2664 cat >>conftest.$ac_ext <<_ACEOF
2665 /* end confdefs.h. */
2668 main ()
2672 return 0;
2674 _ACEOF
2675 rm -f conftest.$ac_objext
2676 if { (ac_try="$ac_compile"
2677 case "(($ac_try" in
2678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2679 *) ac_try_echo=$ac_try;;
2680 esac
2681 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2682 $as_echo "$ac_try_echo") >&5
2683 (eval "$ac_compile") 2>conftest.er1
2684 ac_status=$?
2685 grep -v '^ *+' conftest.er1 >conftest.err
2686 rm -f conftest.er1
2687 cat conftest.err >&5
2688 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2689 (exit $ac_status); } && {
2690 test -z "$ac_c_werror_flag" ||
2691 test ! -s conftest.err
2692 } && test -s conftest.$ac_objext; then
2693 ac_cv_prog_cc_g=yes
2694 else
2695 $as_echo "$as_me: failed program was:" >&5
2696 sed 's/^/| /' conftest.$ac_ext >&5
2701 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2704 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2707 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2708 ac_c_werror_flag=$ac_save_c_werror_flag
2710 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2711 $as_echo "$ac_cv_prog_cc_g" >&6; }
2712 if test "$ac_test_CFLAGS" = set; then
2713 CFLAGS=$ac_save_CFLAGS
2714 elif test $ac_cv_prog_cc_g = yes; then
2715 if test "$GCC" = yes; then
2716 CFLAGS="-g -O2"
2717 else
2718 CFLAGS="-g"
2720 else
2721 if test "$GCC" = yes; then
2722 CFLAGS="-O2"
2723 else
2724 CFLAGS=
2727 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2728 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
2729 if test "${ac_cv_prog_cc_c89+set}" = set; then
2730 $as_echo_n "(cached) " >&6
2731 else
2732 ac_cv_prog_cc_c89=no
2733 ac_save_CC=$CC
2734 cat >conftest.$ac_ext <<_ACEOF
2735 /* confdefs.h. */
2736 _ACEOF
2737 cat confdefs.h >>conftest.$ac_ext
2738 cat >>conftest.$ac_ext <<_ACEOF
2739 /* end confdefs.h. */
2740 #include <stdarg.h>
2741 #include <stdio.h>
2742 #include <sys/types.h>
2743 #include <sys/stat.h>
2744 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2745 struct buf { int x; };
2746 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2747 static char *e (p, i)
2748 char **p;
2749 int i;
2751 return p[i];
2753 static char *f (char * (*g) (char **, int), char **p, ...)
2755 char *s;
2756 va_list v;
2757 va_start (v,p);
2758 s = g (p, va_arg (v,int));
2759 va_end (v);
2760 return s;
2763 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2764 function prototypes and stuff, but not '\xHH' hex character constants.
2765 These don't provoke an error unfortunately, instead are silently treated
2766 as 'x'. The following induces an error, until -std is added to get
2767 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2768 array size at least. It's necessary to write '\x00'==0 to get something
2769 that's true only with -std. */
2770 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2772 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2773 inside strings and character constants. */
2774 #define FOO(x) 'x'
2775 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2777 int test (int i, double x);
2778 struct s1 {int (*f) (int a);};
2779 struct s2 {int (*f) (double a);};
2780 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2781 int argc;
2782 char **argv;
2784 main ()
2786 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2788 return 0;
2790 _ACEOF
2791 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2792 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2794 CC="$ac_save_CC $ac_arg"
2795 rm -f conftest.$ac_objext
2796 if { (ac_try="$ac_compile"
2797 case "(($ac_try" in
2798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2799 *) ac_try_echo=$ac_try;;
2800 esac
2801 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2802 $as_echo "$ac_try_echo") >&5
2803 (eval "$ac_compile") 2>conftest.er1
2804 ac_status=$?
2805 grep -v '^ *+' conftest.er1 >conftest.err
2806 rm -f conftest.er1
2807 cat conftest.err >&5
2808 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2809 (exit $ac_status); } && {
2810 test -z "$ac_c_werror_flag" ||
2811 test ! -s conftest.err
2812 } && test -s conftest.$ac_objext; then
2813 ac_cv_prog_cc_c89=$ac_arg
2814 else
2815 $as_echo "$as_me: failed program was:" >&5
2816 sed 's/^/| /' conftest.$ac_ext >&5
2821 rm -f core conftest.err conftest.$ac_objext
2822 test "x$ac_cv_prog_cc_c89" != "xno" && break
2823 done
2824 rm -f conftest.$ac_ext
2825 CC=$ac_save_CC
2828 # AC_CACHE_VAL
2829 case "x$ac_cv_prog_cc_c89" in
2831 { $as_echo "$as_me:$LINENO: result: none needed" >&5
2832 $as_echo "none needed" >&6; } ;;
2833 xno)
2834 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
2835 $as_echo "unsupported" >&6; } ;;
2837 CC="$CC $ac_cv_prog_cc_c89"
2838 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2839 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
2840 esac
2843 ac_ext=c
2844 ac_cpp='$CPP $CPPFLAGS'
2845 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2846 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2847 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2849 if test $host != $build; then
2850 for ac_prog in gcc cc
2852 # Extract the first word of "$ac_prog", so it can be a program name with args.
2853 set dummy $ac_prog; ac_word=$2
2854 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2855 $as_echo_n "checking for $ac_word... " >&6; }
2856 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
2857 $as_echo_n "(cached) " >&6
2858 else
2859 if test -n "$BUILD_CC"; then
2860 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
2861 else
2862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2863 for as_dir in $PATH
2865 IFS=$as_save_IFS
2866 test -z "$as_dir" && as_dir=.
2867 for ac_exec_ext in '' $ac_executable_extensions; do
2868 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2869 ac_cv_prog_BUILD_CC="$ac_prog"
2870 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2871 break 2
2873 done
2874 done
2875 IFS=$as_save_IFS
2879 BUILD_CC=$ac_cv_prog_BUILD_CC
2880 if test -n "$BUILD_CC"; then
2881 { $as_echo "$as_me:$LINENO: result: $BUILD_CC" >&5
2882 $as_echo "$BUILD_CC" >&6; }
2883 else
2884 { $as_echo "$as_me:$LINENO: result: no" >&5
2885 $as_echo "no" >&6; }
2889 test -n "$BUILD_CC" && break
2890 done
2894 ac_ext=c
2895 ac_cpp='$CPP $CPPFLAGS'
2896 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2897 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2898 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2899 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2900 $as_echo_n "checking how to run the C preprocessor... " >&6; }
2901 # On Suns, sometimes $CPP names a directory.
2902 if test -n "$CPP" && test -d "$CPP"; then
2903 CPP=
2905 if test -z "$CPP"; then
2906 if test "${ac_cv_prog_CPP+set}" = set; then
2907 $as_echo_n "(cached) " >&6
2908 else
2909 # Double quotes because CPP needs to be expanded
2910 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2912 ac_preproc_ok=false
2913 for ac_c_preproc_warn_flag in '' yes
2915 # Use a header file that comes with gcc, so configuring glibc
2916 # with a fresh cross-compiler works.
2917 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2918 # <limits.h> exists even on freestanding compilers.
2919 # On the NeXT, cc -E runs the code through the compiler's parser,
2920 # not just through cpp. "Syntax error" is here to catch this case.
2921 cat >conftest.$ac_ext <<_ACEOF
2922 /* confdefs.h. */
2923 _ACEOF
2924 cat confdefs.h >>conftest.$ac_ext
2925 cat >>conftest.$ac_ext <<_ACEOF
2926 /* end confdefs.h. */
2927 #ifdef __STDC__
2928 # include <limits.h>
2929 #else
2930 # include <assert.h>
2931 #endif
2932 Syntax error
2933 _ACEOF
2934 if { (ac_try="$ac_cpp conftest.$ac_ext"
2935 case "(($ac_try" in
2936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2937 *) ac_try_echo=$ac_try;;
2938 esac
2939 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2940 $as_echo "$ac_try_echo") >&5
2941 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2942 ac_status=$?
2943 grep -v '^ *+' conftest.er1 >conftest.err
2944 rm -f conftest.er1
2945 cat conftest.err >&5
2946 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2947 (exit $ac_status); } >/dev/null && {
2948 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2949 test ! -s conftest.err
2950 }; then
2952 else
2953 $as_echo "$as_me: failed program was:" >&5
2954 sed 's/^/| /' conftest.$ac_ext >&5
2956 # Broken: fails on valid input.
2957 continue
2960 rm -f conftest.err conftest.$ac_ext
2962 # OK, works on sane cases. Now check whether nonexistent headers
2963 # can be detected and how.
2964 cat >conftest.$ac_ext <<_ACEOF
2965 /* confdefs.h. */
2966 _ACEOF
2967 cat confdefs.h >>conftest.$ac_ext
2968 cat >>conftest.$ac_ext <<_ACEOF
2969 /* end confdefs.h. */
2970 #include <ac_nonexistent.h>
2971 _ACEOF
2972 if { (ac_try="$ac_cpp conftest.$ac_ext"
2973 case "(($ac_try" in
2974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2975 *) ac_try_echo=$ac_try;;
2976 esac
2977 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2978 $as_echo "$ac_try_echo") >&5
2979 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2980 ac_status=$?
2981 grep -v '^ *+' conftest.er1 >conftest.err
2982 rm -f conftest.er1
2983 cat conftest.err >&5
2984 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2985 (exit $ac_status); } >/dev/null && {
2986 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2987 test ! -s conftest.err
2988 }; then
2989 # Broken: success on invalid input.
2990 continue
2991 else
2992 $as_echo "$as_me: failed program was:" >&5
2993 sed 's/^/| /' conftest.$ac_ext >&5
2995 # Passes both tests.
2996 ac_preproc_ok=:
2997 break
3000 rm -f conftest.err conftest.$ac_ext
3002 done
3003 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3004 rm -f conftest.err conftest.$ac_ext
3005 if $ac_preproc_ok; then
3006 break
3009 done
3010 ac_cv_prog_CPP=$CPP
3013 CPP=$ac_cv_prog_CPP
3014 else
3015 ac_cv_prog_CPP=$CPP
3017 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
3018 $as_echo "$CPP" >&6; }
3019 ac_preproc_ok=false
3020 for ac_c_preproc_warn_flag in '' yes
3022 # Use a header file that comes with gcc, so configuring glibc
3023 # with a fresh cross-compiler works.
3024 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3025 # <limits.h> exists even on freestanding compilers.
3026 # On the NeXT, cc -E runs the code through the compiler's parser,
3027 # not just through cpp. "Syntax error" is here to catch this case.
3028 cat >conftest.$ac_ext <<_ACEOF
3029 /* confdefs.h. */
3030 _ACEOF
3031 cat confdefs.h >>conftest.$ac_ext
3032 cat >>conftest.$ac_ext <<_ACEOF
3033 /* end confdefs.h. */
3034 #ifdef __STDC__
3035 # include <limits.h>
3036 #else
3037 # include <assert.h>
3038 #endif
3039 Syntax error
3040 _ACEOF
3041 if { (ac_try="$ac_cpp conftest.$ac_ext"
3042 case "(($ac_try" in
3043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3044 *) ac_try_echo=$ac_try;;
3045 esac
3046 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3047 $as_echo "$ac_try_echo") >&5
3048 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3049 ac_status=$?
3050 grep -v '^ *+' conftest.er1 >conftest.err
3051 rm -f conftest.er1
3052 cat conftest.err >&5
3053 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3054 (exit $ac_status); } >/dev/null && {
3055 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3056 test ! -s conftest.err
3057 }; then
3059 else
3060 $as_echo "$as_me: failed program was:" >&5
3061 sed 's/^/| /' conftest.$ac_ext >&5
3063 # Broken: fails on valid input.
3064 continue
3067 rm -f conftest.err conftest.$ac_ext
3069 # OK, works on sane cases. Now check whether nonexistent headers
3070 # can be detected and how.
3071 cat >conftest.$ac_ext <<_ACEOF
3072 /* confdefs.h. */
3073 _ACEOF
3074 cat confdefs.h >>conftest.$ac_ext
3075 cat >>conftest.$ac_ext <<_ACEOF
3076 /* end confdefs.h. */
3077 #include <ac_nonexistent.h>
3078 _ACEOF
3079 if { (ac_try="$ac_cpp conftest.$ac_ext"
3080 case "(($ac_try" in
3081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3082 *) ac_try_echo=$ac_try;;
3083 esac
3084 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3085 $as_echo "$ac_try_echo") >&5
3086 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3087 ac_status=$?
3088 grep -v '^ *+' conftest.er1 >conftest.err
3089 rm -f conftest.er1
3090 cat conftest.err >&5
3091 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3092 (exit $ac_status); } >/dev/null && {
3093 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3094 test ! -s conftest.err
3095 }; then
3096 # Broken: success on invalid input.
3097 continue
3098 else
3099 $as_echo "$as_me: failed program was:" >&5
3100 sed 's/^/| /' conftest.$ac_ext >&5
3102 # Passes both tests.
3103 ac_preproc_ok=:
3104 break
3107 rm -f conftest.err conftest.$ac_ext
3109 done
3110 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3111 rm -f conftest.err conftest.$ac_ext
3112 if $ac_preproc_ok; then
3114 else
3115 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3116 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3117 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3118 See \`config.log' for more details." >&5
3119 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3120 See \`config.log' for more details." >&2;}
3121 { (exit 1); exit 1; }; }; }
3124 ac_ext=c
3125 ac_cpp='$CPP $CPPFLAGS'
3126 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3127 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3128 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3130 # We need the C++ compiler only for testing.
3131 ac_ext=cpp
3132 ac_cpp='$CXXCPP $CPPFLAGS'
3133 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3134 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3135 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3136 if test -z "$CXX"; then
3137 if test -n "$CCC"; then
3138 CXX=$CCC
3139 else
3140 if test -n "$ac_tool_prefix"; then
3141 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3143 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3144 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3145 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3146 $as_echo_n "checking for $ac_word... " >&6; }
3147 if test "${ac_cv_prog_CXX+set}" = set; then
3148 $as_echo_n "(cached) " >&6
3149 else
3150 if test -n "$CXX"; then
3151 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3152 else
3153 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3154 for as_dir in $PATH
3156 IFS=$as_save_IFS
3157 test -z "$as_dir" && as_dir=.
3158 for ac_exec_ext in '' $ac_executable_extensions; do
3159 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3160 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3161 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3162 break 2
3164 done
3165 done
3166 IFS=$as_save_IFS
3170 CXX=$ac_cv_prog_CXX
3171 if test -n "$CXX"; then
3172 { $as_echo "$as_me:$LINENO: result: $CXX" >&5
3173 $as_echo "$CXX" >&6; }
3174 else
3175 { $as_echo "$as_me:$LINENO: result: no" >&5
3176 $as_echo "no" >&6; }
3180 test -n "$CXX" && break
3181 done
3183 if test -z "$CXX"; then
3184 ac_ct_CXX=$CXX
3185 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3187 # Extract the first word of "$ac_prog", so it can be a program name with args.
3188 set dummy $ac_prog; ac_word=$2
3189 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3190 $as_echo_n "checking for $ac_word... " >&6; }
3191 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3192 $as_echo_n "(cached) " >&6
3193 else
3194 if test -n "$ac_ct_CXX"; then
3195 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3196 else
3197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3198 for as_dir in $PATH
3200 IFS=$as_save_IFS
3201 test -z "$as_dir" && as_dir=.
3202 for ac_exec_ext in '' $ac_executable_extensions; do
3203 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3204 ac_cv_prog_ac_ct_CXX="$ac_prog"
3205 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3206 break 2
3208 done
3209 done
3210 IFS=$as_save_IFS
3214 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3215 if test -n "$ac_ct_CXX"; then
3216 { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3217 $as_echo "$ac_ct_CXX" >&6; }
3218 else
3219 { $as_echo "$as_me:$LINENO: result: no" >&5
3220 $as_echo "no" >&6; }
3224 test -n "$ac_ct_CXX" && break
3225 done
3227 if test "x$ac_ct_CXX" = x; then
3228 CXX="g++"
3229 else
3230 case $cross_compiling:$ac_tool_warned in
3231 yes:)
3232 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3233 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3234 ac_tool_warned=yes ;;
3235 esac
3236 CXX=$ac_ct_CXX
3242 # Provide some information about the compiler.
3243 $as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
3244 set X $ac_compile
3245 ac_compiler=$2
3246 { (ac_try="$ac_compiler --version >&5"
3247 case "(($ac_try" in
3248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3249 *) ac_try_echo=$ac_try;;
3250 esac
3251 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3252 $as_echo "$ac_try_echo") >&5
3253 (eval "$ac_compiler --version >&5") 2>&5
3254 ac_status=$?
3255 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3256 (exit $ac_status); }
3257 { (ac_try="$ac_compiler -v >&5"
3258 case "(($ac_try" in
3259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3260 *) ac_try_echo=$ac_try;;
3261 esac
3262 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3263 $as_echo "$ac_try_echo") >&5
3264 (eval "$ac_compiler -v >&5") 2>&5
3265 ac_status=$?
3266 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3267 (exit $ac_status); }
3268 { (ac_try="$ac_compiler -V >&5"
3269 case "(($ac_try" in
3270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3271 *) ac_try_echo=$ac_try;;
3272 esac
3273 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3274 $as_echo "$ac_try_echo") >&5
3275 (eval "$ac_compiler -V >&5") 2>&5
3276 ac_status=$?
3277 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3278 (exit $ac_status); }
3280 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3281 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3282 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3283 $as_echo_n "(cached) " >&6
3284 else
3285 cat >conftest.$ac_ext <<_ACEOF
3286 /* confdefs.h. */
3287 _ACEOF
3288 cat confdefs.h >>conftest.$ac_ext
3289 cat >>conftest.$ac_ext <<_ACEOF
3290 /* end confdefs.h. */
3293 main ()
3295 #ifndef __GNUC__
3296 choke me
3297 #endif
3300 return 0;
3302 _ACEOF
3303 rm -f conftest.$ac_objext
3304 if { (ac_try="$ac_compile"
3305 case "(($ac_try" in
3306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3307 *) ac_try_echo=$ac_try;;
3308 esac
3309 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3310 $as_echo "$ac_try_echo") >&5
3311 (eval "$ac_compile") 2>conftest.er1
3312 ac_status=$?
3313 grep -v '^ *+' conftest.er1 >conftest.err
3314 rm -f conftest.er1
3315 cat conftest.err >&5
3316 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3317 (exit $ac_status); } && {
3318 test -z "$ac_cxx_werror_flag" ||
3319 test ! -s conftest.err
3320 } && test -s conftest.$ac_objext; then
3321 ac_compiler_gnu=yes
3322 else
3323 $as_echo "$as_me: failed program was:" >&5
3324 sed 's/^/| /' conftest.$ac_ext >&5
3326 ac_compiler_gnu=no
3329 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3330 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3333 { $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3334 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3335 if test $ac_compiler_gnu = yes; then
3336 GXX=yes
3337 else
3338 GXX=
3340 ac_test_CXXFLAGS=${CXXFLAGS+set}
3341 ac_save_CXXFLAGS=$CXXFLAGS
3342 { $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3343 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3344 if test "${ac_cv_prog_cxx_g+set}" = set; then
3345 $as_echo_n "(cached) " >&6
3346 else
3347 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3348 ac_cxx_werror_flag=yes
3349 ac_cv_prog_cxx_g=no
3350 CXXFLAGS="-g"
3351 cat >conftest.$ac_ext <<_ACEOF
3352 /* confdefs.h. */
3353 _ACEOF
3354 cat confdefs.h >>conftest.$ac_ext
3355 cat >>conftest.$ac_ext <<_ACEOF
3356 /* end confdefs.h. */
3359 main ()
3363 return 0;
3365 _ACEOF
3366 rm -f conftest.$ac_objext
3367 if { (ac_try="$ac_compile"
3368 case "(($ac_try" in
3369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3370 *) ac_try_echo=$ac_try;;
3371 esac
3372 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3373 $as_echo "$ac_try_echo") >&5
3374 (eval "$ac_compile") 2>conftest.er1
3375 ac_status=$?
3376 grep -v '^ *+' conftest.er1 >conftest.err
3377 rm -f conftest.er1
3378 cat conftest.err >&5
3379 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3380 (exit $ac_status); } && {
3381 test -z "$ac_cxx_werror_flag" ||
3382 test ! -s conftest.err
3383 } && test -s conftest.$ac_objext; then
3384 ac_cv_prog_cxx_g=yes
3385 else
3386 $as_echo "$as_me: failed program was:" >&5
3387 sed 's/^/| /' conftest.$ac_ext >&5
3389 CXXFLAGS=""
3390 cat >conftest.$ac_ext <<_ACEOF
3391 /* confdefs.h. */
3392 _ACEOF
3393 cat confdefs.h >>conftest.$ac_ext
3394 cat >>conftest.$ac_ext <<_ACEOF
3395 /* end confdefs.h. */
3398 main ()
3402 return 0;
3404 _ACEOF
3405 rm -f conftest.$ac_objext
3406 if { (ac_try="$ac_compile"
3407 case "(($ac_try" in
3408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3409 *) ac_try_echo=$ac_try;;
3410 esac
3411 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3412 $as_echo "$ac_try_echo") >&5
3413 (eval "$ac_compile") 2>conftest.er1
3414 ac_status=$?
3415 grep -v '^ *+' conftest.er1 >conftest.err
3416 rm -f conftest.er1
3417 cat conftest.err >&5
3418 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3419 (exit $ac_status); } && {
3420 test -z "$ac_cxx_werror_flag" ||
3421 test ! -s conftest.err
3422 } && test -s conftest.$ac_objext; then
3424 else
3425 $as_echo "$as_me: failed program was:" >&5
3426 sed 's/^/| /' conftest.$ac_ext >&5
3428 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3429 CXXFLAGS="-g"
3430 cat >conftest.$ac_ext <<_ACEOF
3431 /* confdefs.h. */
3432 _ACEOF
3433 cat confdefs.h >>conftest.$ac_ext
3434 cat >>conftest.$ac_ext <<_ACEOF
3435 /* end confdefs.h. */
3438 main ()
3442 return 0;
3444 _ACEOF
3445 rm -f conftest.$ac_objext
3446 if { (ac_try="$ac_compile"
3447 case "(($ac_try" in
3448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3449 *) ac_try_echo=$ac_try;;
3450 esac
3451 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3452 $as_echo "$ac_try_echo") >&5
3453 (eval "$ac_compile") 2>conftest.er1
3454 ac_status=$?
3455 grep -v '^ *+' conftest.er1 >conftest.err
3456 rm -f conftest.er1
3457 cat conftest.err >&5
3458 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3459 (exit $ac_status); } && {
3460 test -z "$ac_cxx_werror_flag" ||
3461 test ! -s conftest.err
3462 } && test -s conftest.$ac_objext; then
3463 ac_cv_prog_cxx_g=yes
3464 else
3465 $as_echo "$as_me: failed program was:" >&5
3466 sed 's/^/| /' conftest.$ac_ext >&5
3471 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3474 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3477 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3478 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3480 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3481 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3482 if test "$ac_test_CXXFLAGS" = set; then
3483 CXXFLAGS=$ac_save_CXXFLAGS
3484 elif test $ac_cv_prog_cxx_g = yes; then
3485 if test "$GXX" = yes; then
3486 CXXFLAGS="-g -O2"
3487 else
3488 CXXFLAGS="-g"
3490 else
3491 if test "$GXX" = yes; then
3492 CXXFLAGS="-O2"
3493 else
3494 CXXFLAGS=
3497 ac_ext=c
3498 ac_cpp='$CPP $CPPFLAGS'
3499 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3500 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3501 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3504 if test "`cd $srcdir; /bin/pwd`" = "`/bin/pwd`"; then
3505 { { $as_echo "$as_me:$LINENO: error: you must configure in a separate build directory" >&5
3506 $as_echo "$as_me: error: you must configure in a separate build directory" >&2;}
3507 { (exit 1); exit 1; }; }
3510 # This will get text that should go into config.make.
3511 config_vars=
3513 # Check for a --with-gd argument and set libgd-LDFLAGS in config.make.
3515 # Check whether --with-gd was given.
3516 if test "${with_gd+set}" = set; then
3517 withval=$with_gd; case "$with_gd" in
3518 yes|''|no) ;;
3519 *) libgd_include="-I$withval/include"
3520 libgd_ldflags="-L$withval/lib" ;;
3521 esac
3526 # Check whether --with-gd-include was given.
3527 if test "${with_gd_include+set}" = set; then
3528 withval=$with_gd_include; case "$with_gd_include" in
3529 ''|no) ;;
3530 *) libgd_include="-I$withval" ;;
3531 esac
3536 # Check whether --with-gd-lib was given.
3537 if test "${with_gd_lib+set}" = set; then
3538 withval=$with_gd_lib; case "$with_gd_lib" in
3539 ''|no) ;;
3540 *) libgd_ldflags="-L$withval" ;;
3541 esac
3546 if test -n "$libgd_include"; then
3547 config_vars="$config_vars
3548 CFLAGS-memusagestat.c = $libgd_include"
3550 if test -n "$libgd_ldflags"; then
3551 config_vars="$config_vars
3552 libgd-LDFLAGS = $libgd_ldflags"
3556 # Check whether --with-fp was given.
3557 if test "${with_fp+set}" = set; then
3558 withval=$with_fp; with_fp=$withval
3559 else
3560 with_fp=yes
3565 # Check whether --with-binutils was given.
3566 if test "${with_binutils+set}" = set; then
3567 withval=$with_binutils; path_binutils=$withval
3568 else
3569 path_binutils=''
3573 # Check whether --with-elf was given.
3574 if test "${with_elf+set}" = set; then
3575 withval=$with_elf; elf=$withval
3576 else
3577 elf=no
3581 # Check whether --with-selinux was given.
3582 if test "${with_selinux+set}" = set; then
3583 withval=$with_selinux; with_selinux=$withval
3584 else
3585 with_selinux=auto
3589 # Check whether --with-xcoff was given.
3590 if test "${with_xcoff+set}" = set; then
3591 withval=$with_xcoff; xcoff=$withval
3592 else
3593 xcoff=no
3597 # Check whether --with-cvs was given.
3598 if test "${with_cvs+set}" = set; then
3599 withval=$with_cvs; with_cvs=$withval
3600 else
3601 with_cvs=yes
3604 if test "$with_cvs" = yes; then
3605 if test -d $srcdir/CVS && grep :pserver: $srcdir/CVS/Root > /dev/null
3606 then
3607 with_cvs=no
3613 # Check whether --with-headers was given.
3614 if test "${with_headers+set}" = set; then
3615 withval=$with_headers; sysheaders=$withval
3616 else
3617 sysheaders=''
3621 # Check whether --enable-sanity-checks was given.
3622 if test "${enable_sanity_checks+set}" = set; then
3623 enableval=$enable_sanity_checks; enable_sanity=$enableval
3624 else
3625 enable_sanity=yes
3630 # Check whether --enable-check-abi was given.
3631 if test "${enable_check_abi+set}" = set; then
3632 enableval=$enable_check_abi; enable_check_abi=$enableval
3633 else
3634 enable_check_abi=no
3638 static=yes
3639 # Check whether --enable-shared was given.
3640 if test "${enable_shared+set}" = set; then
3641 enableval=$enable_shared; shared=$enableval
3642 else
3643 shared=default
3646 # Check whether --enable-profile was given.
3647 if test "${enable_profile+set}" = set; then
3648 enableval=$enable_profile; profile=$enableval
3649 else
3650 profile=no
3653 # Check whether --enable-omitfp was given.
3654 if test "${enable_omitfp+set}" = set; then
3655 enableval=$enable_omitfp; omitfp=$enableval
3656 else
3657 omitfp=no
3660 # Check whether --enable-bounded was given.
3661 if test "${enable_bounded+set}" = set; then
3662 enableval=$enable_bounded; bounded=$enableval
3663 else
3664 bounded=no
3667 # Check whether --enable-versioning was given.
3668 if test "${enable_versioning+set}" = set; then
3669 enableval=$enable_versioning; enable_versioning=$enableval
3670 else
3671 enable_versioning=yes
3675 # Check whether --enable-oldest-abi was given.
3676 if test "${enable_oldest_abi+set}" = set; then
3677 enableval=$enable_oldest_abi; oldest_abi=$enableval
3678 else
3679 oldest_abi=no
3682 if test "$oldest_abi" = yes || test "$oldest_abi" = no; then
3683 oldest_abi=default
3684 else
3685 cat >>confdefs.h <<_ACEOF
3686 #define GLIBC_OLDEST_ABI "$oldest_abi"
3687 _ACEOF
3692 # Check whether --enable-stackguard-randomization was given.
3693 if test "${enable_stackguard_randomization+set}" = set; then
3694 enableval=$enable_stackguard_randomization; enable_stackguard_randomize=$enableval
3695 else
3696 enable_stackguard_randomize=no
3699 if test "$enable_stackguard_randomize" = yes; then
3700 cat >>confdefs.h <<\_ACEOF
3701 #define ENABLE_STACKGUARD_RANDOMIZE 1
3702 _ACEOF
3706 # Check whether --enable-add-ons was given.
3707 if test "${enable_add_ons+set}" = set; then
3708 enableval=$enable_add_ons;
3709 else
3710 enable_add_ons=yes
3715 # Check whether --with-tls was given.
3716 if test "${with_tls+set}" = set; then
3717 withval=$with_tls; usetls=$withval
3718 else
3719 usetls=yes
3724 # Check whether --with-__thread was given.
3725 if test "${with___thread+set}" = set; then
3726 withval=$with___thread; use__thread=$withval
3727 else
3728 use__thread=yes
3732 # Check whether --enable-hidden-plt was given.
3733 if test "${enable_hidden_plt+set}" = set; then
3734 enableval=$enable_hidden_plt; hidden=$enableval
3735 else
3736 hidden=yes
3739 if test "x$hidden" = xno; then
3740 cat >>confdefs.h <<\_ACEOF
3741 #define NO_HIDDEN 1
3742 _ACEOF
3746 # Check whether --enable-bind-now was given.
3747 if test "${enable_bind_now+set}" = set; then
3748 enableval=$enable_bind_now; bindnow=$enableval
3749 else
3750 bindnow=no
3755 # Check whether --enable-static-nss was given.
3756 if test "${enable_static_nss+set}" = set; then
3757 enableval=$enable_static_nss; static_nss=$enableval
3758 else
3759 static_nss=no
3762 if test x"$static_nss" = xyes || test x"$shared" = xno; then
3763 static_nss=yes
3764 cat >>confdefs.h <<\_ACEOF
3765 #define DO_STATIC_NSS 1
3766 _ACEOF
3770 # Check whether --enable-force-install was given.
3771 if test "${enable_force_install+set}" = set; then
3772 enableval=$enable_force_install; force_install=$enableval
3773 else
3774 force_install=yes
3779 # Check whether --enable-kernel was given.
3780 if test "${enable_kernel+set}" = set; then
3781 enableval=$enable_kernel; minimum_kernel=$enableval
3784 if test "$minimum_kernel" = yes || test "$minimum_kernel" = no; then
3785 # Better nothing than this.
3786 minimum_kernel=""
3787 else
3788 if test "$minimum_kernel" = current; then
3789 minimum_kernel=`uname -r 2>/dev/null` || minimum_kernel=
3793 # Check whether --enable-all-warnings was given.
3794 if test "${enable_all_warnings+set}" = set; then
3795 enableval=$enable_all_warnings; all_warnings=$enableval
3800 # Check whether --enable-multi-arch was given.
3801 if test "${enable_multi_arch+set}" = set; then
3802 enableval=$enable_multi_arch; multi_arch=$enableval
3803 else
3804 multi_arch=default
3807 if test x"$multi_arch" != xno; then
3808 multi_arch_d=/multiarch
3811 # Check whether --enable-experimental-malloc was given.
3812 if test "${enable_experimental_malloc+set}" = set; then
3813 enableval=$enable_experimental_malloc; experimental_malloc=$enableval
3818 # Check whether --enable-nss-crypt was given.
3819 if test "${enable_nss_crypt+set}" = set; then
3820 enableval=$enable_nss_crypt; nss_crypt=$enableval
3821 else
3822 nss_crypt=no
3825 if test x$nss_crypt = xyes; then
3826 nss_includes=-I$(nss-config --includedir 2>/dev/null)
3827 if test $? -ne 0; then
3828 { { $as_echo "$as_me:$LINENO: error: cannot find include directory with nss-config" >&5
3829 $as_echo "$as_me: error: cannot find include directory with nss-config" >&2;}
3830 { (exit 1); exit 1; }; }
3832 old_CFLAGS="$CFLAGS"
3833 CFLAGS="$CFLAGS $nss_includes"
3835 cat >conftest.$ac_ext <<_ACEOF
3836 typedef int PRBool;
3837 #include <hasht.h>
3838 #include <nsslowhash.h>
3839 void f (void) { NSSLOW_Init (); }
3840 _ACEOF
3841 rm -f conftest.$ac_objext
3842 if { (ac_try="$ac_compile"
3843 case "(($ac_try" in
3844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3845 *) ac_try_echo=$ac_try;;
3846 esac
3847 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3848 $as_echo "$ac_try_echo") >&5
3849 (eval "$ac_compile") 2>conftest.er1
3850 ac_status=$?
3851 grep -v '^ *+' conftest.er1 >conftest.err
3852 rm -f conftest.er1
3853 cat conftest.err >&5
3854 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3855 (exit $ac_status); } && {
3856 test -z "$ac_c_werror_flag" ||
3857 test ! -s conftest.err
3858 } && test -s conftest.$ac_objext; then
3859 libc_cv_nss_crypt=yes
3860 else
3861 $as_echo "$as_me: failed program was:" >&5
3862 sed 's/^/| /' conftest.$ac_ext >&5
3864 { { $as_echo "$as_me:$LINENO: error:
3865 cannot find NSS headers with lowlevel hash function interfaces" >&5
3866 $as_echo "$as_me: error:
3867 cannot find NSS headers with lowlevel hash function interfaces" >&2;}
3868 { (exit 1); exit 1; }; }
3871 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3872 old_LIBS="$LIBS"
3873 LIBS="$LIBS -lfreebl3"
3874 cat >conftest.$ac_ext <<_ACEOF
3875 /* confdefs.h. */
3876 _ACEOF
3877 cat confdefs.h >>conftest.$ac_ext
3878 cat >>conftest.$ac_ext <<_ACEOF
3879 /* end confdefs.h. */
3880 typedef int PRBool;
3881 #include <hasht.h>
3882 #include <nsslowhash.h>
3884 main ()
3886 NSSLOW_Init();
3888 return 0;
3890 _ACEOF
3891 rm -f conftest.$ac_objext conftest$ac_exeext
3892 if { (ac_try="$ac_link"
3893 case "(($ac_try" in
3894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3895 *) ac_try_echo=$ac_try;;
3896 esac
3897 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3898 $as_echo "$ac_try_echo") >&5
3899 (eval "$ac_link") 2>conftest.er1
3900 ac_status=$?
3901 grep -v '^ *+' conftest.er1 >conftest.err
3902 rm -f conftest.er1
3903 cat conftest.err >&5
3904 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3905 (exit $ac_status); } && {
3906 test -z "$ac_c_werror_flag" ||
3907 test ! -s conftest.err
3908 } && test -s conftest$ac_exeext && {
3909 test "$cross_compiling" = yes ||
3910 $as_test_x conftest$ac_exeext
3911 }; then
3912 libc_cv_nss_crypt=yes
3913 else
3914 $as_echo "$as_me: failed program was:" >&5
3915 sed 's/^/| /' conftest.$ac_ext >&5
3917 { { $as_echo "$as_me:$LINENO: error:
3918 cannot link program using lowlevel NSS hash functions" >&5
3919 $as_echo "$as_me: error:
3920 cannot link program using lowlevel NSS hash functions" >&2;}
3921 { (exit 1); exit 1; }; }
3924 rm -rf conftest.dSYM
3925 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3926 conftest$ac_exeext conftest.$ac_ext
3927 CFLAGS="$old_CFLAGS"
3928 LIBS="$old_LIBS"
3929 else
3930 libc_cv_nss_crypt=no
3934 # The way shlib-versions is used to generate soversions.mk uses a
3935 # fairly simplistic model for name recognition that can't distinguish
3936 # i486-pc-linux-gnu fully from i486-pc-gnu. So we mutate a $host_os
3937 # of `gnu*' here to be `gnu-gnu*' just so that shlib-versions can
3938 # tell. This doesn't get used much beyond that, so it's fairly safe.
3939 case "$host_os" in
3940 linux*)
3942 gnu*)
3943 host_os=`echo $host_os | sed -e 's/gnu/gnu-gnu/'`
3945 esac
3947 # We keep the original values in `$config_*' and never modify them, so we
3948 # can write them unchanged into config.make. Everything else uses
3949 # $machine, $vendor, and $os, and changes them whenever convenient.
3950 config_machine=$host_cpu config_vendor=$host_vendor config_os=$host_os
3952 # Don't allow vendor == "unknown"
3953 test "$config_vendor" = unknown && config_vendor=
3954 config_os="`echo $config_os | sed 's/^unknown-//'`"
3956 # Some configurations imply other options.
3957 case "$host_os" in
3958 # i586-linuxaout is mangled into i586-pc-linux-gnuaout
3959 linux*ecoff* | linux*aout* | gnu*aout* | gnu*ecoff*)
3961 gnu* | linux* | freebsd* | netbsd* | sysv4* | solaris2* | irix6*)
3962 # These systems (almost) always use the ELF format.
3963 elf=yes
3965 aix*)
3966 # These systems are always xcoff
3967 xcoff=yes
3968 elf=no
3970 esac
3972 # The configure fragment of an add-on port can modify these to supplement
3973 # or override the table in the case statement below. No fragment should
3974 # ever change the config_* variables, however.
3975 machine=$config_machine
3976 vendor=$config_vendor
3977 os=$config_os
3978 base_os=''
3980 # config.guess on some IBM machines says `rs6000' instead of `powerpc'.
3981 # Unify this here.
3982 if test "$machine" = rs6000; then
3983 machine="powerpc"
3986 # Braindead PowerPC box with absolutely no FPU.
3987 case "$machine-$host_os" in
3988 powerpc*-*soft)
3989 with_fp=no
3991 esac
3993 submachine=
3995 # Check whether --with-cpu was given.
3996 if test "${with_cpu+set}" = set; then
3997 withval=$with_cpu; case "$withval" in
3998 yes|'') { { $as_echo "$as_me:$LINENO: error: --with-cpu requires an argument" >&5
3999 $as_echo "$as_me: error: --with-cpu requires an argument" >&2;}
4000 { (exit 1); exit 1; }; } ;;
4001 no) ;;
4002 *) submachine="$withval" ;;
4003 esac
4008 # An add-on can set this when it wants to disable the sanity check below.
4009 libc_config_ok=no
4011 subdirs="$subdirs "
4014 case "$enable_add_ons" in
4015 ''|no) add_ons= ;;
4016 yes|'*')
4017 add_ons=`cd $srcdir && ls -d 2> /dev/null */configure */sysdeps |
4018 sed 's@/[^/]*$@@' | sort | uniq`
4019 add_ons_automatic=yes
4021 *) add_ons=`echo "$enable_add_ons" | sed 's/,/ /g'`
4022 add_ons_automatic=no ;;
4023 esac
4025 configured_add_ons=
4026 add_ons_sfx=
4027 add_ons_pfx=
4028 if test x"$add_ons" != x; then
4029 for f in $add_ons; do
4030 # Some sanity checks
4031 case "$f" in
4032 crypt)
4033 { { $as_echo "$as_me:$LINENO: error:
4034 *** It seems that you're using an old \`crypt' add-on. crypt is now
4035 *** part of glibc and using the old add-on will not work with this
4036 *** release. Start again with fresh sources and without the old
4037 *** \`crypt' add-on." >&5
4038 $as_echo "$as_me: error:
4039 *** It seems that you're using an old \`crypt' add-on. crypt is now
4040 *** part of glibc and using the old add-on will not work with this
4041 *** release. Start again with fresh sources and without the old
4042 *** \`crypt' add-on." >&2;}
4043 { (exit 1); exit 1; }; }
4045 localedata)
4046 { { $as_echo "$as_me:$LINENO: error:
4047 *** It seems that you're using an old \`localedata' add-on. localedata
4048 *** is now part of glibc and using the old add-on will not work with
4049 *** this release. Start again with fresh sources and without the old
4050 *** \`localedata' add-on." >&5
4051 $as_echo "$as_me: error:
4052 *** It seems that you're using an old \`localedata' add-on. localedata
4053 *** is now part of glibc and using the old add-on will not work with
4054 *** this release. Start again with fresh sources and without the old
4055 *** \`localedata' add-on." >&2;}
4056 { (exit 1); exit 1; }; }
4058 esac
4059 done
4061 # Now source each add-on's configure fragment.
4062 # The fragments can use $srcdir/$libc_add_on to find themselves,
4063 # and test $add_ons_automatic to see if they were explicitly requested.
4064 # A fragment can clear (or even change) $libc_add_on to affect
4065 # whether it goes into the list to be actually used in the build.
4066 use_add_ons=
4067 for libc_add_on in $add_ons; do
4068 # Test whether such a directory really exists.
4069 # It can be absolute, or relative to $srcdir, or relative to the build dir.
4070 case "$libc_add_on" in
4072 libc_add_on_srcdir=$libc_add_on
4075 test -d "$srcdir/$libc_add_on" || {
4076 if test -d "$libc_add_on"; then
4077 libc_add_on="`pwd`/$libc_add_on"
4078 else
4079 { { $as_echo "$as_me:$LINENO: error: add-on directory \"$libc_add_on\" does not exist" >&5
4080 $as_echo "$as_me: error: add-on directory \"$libc_add_on\" does not exist" >&2;}
4081 { (exit 1); exit 1; }; }
4084 libc_add_on_srcdir=$srcdir/$libc_add_on
4086 esac
4088 libc_add_on_frag=$libc_add_on_srcdir/configure
4089 libc_add_on_canonical=
4090 libc_add_on_config_subdirs=
4091 if test -r "$libc_add_on_frag"; then
4092 { $as_echo "$as_me:$LINENO: running configure fragment for add-on $libc_add_on" >&5
4093 $as_echo "$as_me: running configure fragment for add-on $libc_add_on" >&6;}
4094 libc_add_on_canonical=unknown
4095 libc_add_on_subdirs=
4096 . "$libc_add_on_frag"
4097 test -z "$libc_add_on" || {
4098 configured_add_ons="$configured_add_ons $libc_add_on"
4099 if test "x$libc_add_on_canonical" = xunknown; then
4100 { { $as_echo "$as_me:$LINENO: error: fragment must set \$libc_add_on_canonical" >&5
4101 $as_echo "$as_me: error: fragment must set \$libc_add_on_canonical" >&2;}
4102 { (exit 1); exit 1; }; }
4104 for d in $libc_add_on_subdirs; do
4105 case "$libc_add_on" in
4106 /*) subdir_srcdir="$libc_add_on" ;;
4107 *) subdir_srcdir="\$(..)$libc_add_on" ;;
4108 esac
4109 case "$d" in
4111 d="${libc_add_on_canonical:-$libc_add_on}"
4114 subdir_srcdir="$d"
4117 subdir_srcdir="$subdir_srcdir/$d"
4119 esac
4120 d=`echo "$d" | sed 's@/*$@@;s@^.*/@@'`
4121 add_on_subdirs="$add_on_subdirs $d"
4122 test "$subdir_srcdir" = "\$(..)$d" || config_vars="$config_vars
4123 $d-srcdir = $subdir_srcdir"
4124 done
4125 for d in $libc_add_on_config_subdirs; do
4126 case "$d" in
4127 /*) { { $as_echo "$as_me:$LINENO: error: fragment uses absolute path in \$libc_add_on_config_subdirs" >&5
4128 $as_echo "$as_me: error: fragment uses absolute path in \$libc_add_on_config_subdirs" >&2;}
4129 { (exit 1); exit 1; }; } ;;
4130 esac
4131 if test ! -d "$libc_add_on_srcdir/$d"; then
4132 { { $as_echo "$as_me:$LINENO: error: fragment wants to configure missing directory $d" >&5
4133 $as_echo "$as_me: error: fragment wants to configure missing directory $d" >&2;}
4134 { (exit 1); exit 1; }; }
4136 case "$libc_add_on" in
4137 /*) { { $as_echo "$as_me:$LINENO: error: relative path required for add-on using \$libc_add_on_config_subdirs" >&5
4138 $as_echo "$as_me: error: relative path required for add-on using \$libc_add_on_config_subdirs" >&2;}
4139 { (exit 1); exit 1; }; } ;;
4140 esac
4141 subdirs="$subdirs $libc_add_on/$d"
4142 done
4145 if test -n "$libc_add_on"; then
4146 if frags=`ls -d $libc_add_on_srcdir/sysdeps/*/preconfigure 2> /dev/null`
4147 then
4148 { $as_echo "$as_me:$LINENO: checking add-on $libc_add_on for preconfigure fragments" >&5
4149 $as_echo_n "checking add-on $libc_add_on for preconfigure fragments... " >&6; }
4150 for frag in $frags; do
4151 name=`echo "$frag" | sed 's@/[^/]*$@@;s@^.*/@@'`
4152 echo $ECHO_N "$name $ECHO_C" >&6
4153 . "$frag"
4154 done
4155 { $as_echo "$as_me:$LINENO: result: " >&5
4156 $as_echo "" >&6; }
4158 use_add_ons="$use_add_ons $libc_add_on"
4159 add_ons_pfx="$add_ons_pfx $libc_add_on/"
4160 test -z "$libc_add_on_canonical" ||
4161 add_ons_sfx="$add_ons_sfx /$libc_add_on_canonical"
4163 done
4164 # Use echo to strip excess whitespace.
4165 add_ons="`echo $use_add_ons`"
4172 ### I put this here to prevent those annoying emails from people who cannot
4173 ### read and try to compile glibc on unsupported platforms. --drepper
4175 ### By using the undocumented --enable-hacker-mode option for configure
4176 ### one can skip this test to make the configuration not fail for unsupported
4177 ### platforms.
4179 if test -z "$enable_hacker_mode" && test x"$libc_config_ok" != xyes; then
4180 case "$machine-$host_os" in
4181 *-linux* | *-gnu* | arm*-none* | powerpc-aix4.3.*)
4184 echo "*** The GNU C library is currently not available for this platform."
4185 echo "*** So far nobody cared to port it and if there is no volunteer it"
4186 echo "*** might never happen. So, if you have interest to see glibc on"
4187 echo "*** this platform visit"
4188 echo "*** http://www.gnu.org/software/libc/porting.html"
4189 echo "*** and join the group of porters"
4190 exit 1
4192 esac
4195 # Expand the configuration machine name into a subdirectory by architecture
4196 # type and particular chip. If an add-on configure fragment already set
4197 # base_machine, we don't change it.
4198 test -n "$base_machine" || case "$machine" in
4199 a29k | am29000) base_machine=a29k machine=a29k ;;
4200 c3[012]) base_machine=cx0 machine=cx0/c30 ;;
4201 c4[04]) base_machine=cx0 machine=cx0/c40 ;;
4202 i[34567]86) base_machine=i386 machine=i386/$machine ;;
4203 ia64) base_machine=ia64 machine=ia64 ;;
4204 m88???) base_machine=m88k machine=m88k/$machine ;;
4205 m88k) base_machine=m88k machine=m88k/m88100 ;;
4206 powerpc) base_machine=powerpc machine=powerpc/powerpc32 ;;
4207 powerpc64) base_machine=powerpc machine=powerpc/powerpc64 ;;
4208 s390) base_machine=s390 machine=s390/s390-32 ;;
4209 s390x) base_machine=s390 machine=s390/s390-64 ;;
4210 sh3*) base_machine=sh machine=sh/sh3 ;;
4211 sh4*) base_machine=sh machine=sh/sh4 ;;
4212 sparc | sparcv[67])
4213 base_machine=sparc machine=sparc/sparc32 ;;
4214 sparcv8 | supersparc | hypersparc)
4215 base_machine=sparc machine=sparc/sparc32/sparcv8 ;;
4216 sparcv8plus | sparcv8plusa | sparcv9)
4217 base_machine=sparc machine=sparc/sparc32/sparcv9 ;;
4218 sparcv8plusb | sparcv9b)
4219 base_machine=sparc machine=sparc/sparc32/sparcv9/sparcv9b ;;
4220 sparcv9v)
4221 base_machine=sparc machine=sparc/sparc32/sparcv9/sparcv9v ;;
4222 sparcv9v2)
4223 base_machine=sparc machine=sparc/sparc32/sparcv9/sparcv9v2 ;;
4224 sparc64)
4225 base_machine=sparc machine=sparc/sparc64 ;;
4226 sparc64b)
4227 base_machine=sparc machine=sparc/sparc64/sparcv9b ;;
4228 sparc64v)
4229 base_machine=sparc machine=sparc/sparc64/sparcv9v ;;
4230 sparc64v2)
4231 base_machine=sparc machine=sparc/sparc64/sparcv9v2 ;;
4232 *) base_machine=$machine ;;
4233 esac
4236 if test "$base_machine" = "i386"; then
4237 cat >>confdefs.h <<\_ACEOF
4238 #define USE_REGPARMS 1
4239 _ACEOF
4243 # Compute the list of sysdep directories for this configuration.
4244 # This can take a while to compute.
4245 sysdep_dir=$srcdir/sysdeps
4246 { $as_echo "$as_me:$LINENO: checking sysdep dirs" >&5
4247 $as_echo_n "checking sysdep dirs... " >&6; }
4248 # Make sco3.2v4 become sco3.2.4 and sunos4.1.1_U1 become sunos4.1.1.U1.
4249 os="`echo $os | sed 's/\([0-9A-Z]\)[v_]\([0-9A-Z]\)/\1.\2/g'`"
4251 test "x$base_os" != x || case "$os" in
4252 gnu*)
4253 base_os=mach/hurd ;;
4254 netbsd* | 386bsd* | freebsd* | bsdi*)
4255 base_os=unix/bsd/bsd4.4 ;;
4256 osf* | sunos* | ultrix* | newsos* | dynix* | *bsd*)
4257 base_os=unix/bsd ;;
4258 sysv* | isc* | esix* | sco* | minix* | irix4* | linux*)
4259 base_os=unix/sysv ;;
4260 irix6*)
4261 base_os=unix/sysv/irix6/$os ;;
4262 solaris[2-9]*)
4263 base_os=unix/sysv/sysv4 ;;
4264 hpux*)
4265 base_os=unix/sysv/hpux/$os ;;
4266 aix4.3*)
4267 base_os=unix/sysv/aix/aix4.3 ;;
4268 none)
4269 base_os=standalone ;;
4270 esac
4272 # For sunos4.1.1, try sunos4.1.1, then sunos4.1, then sunos4, then sunos.
4273 tail=$os
4274 ostry=$os
4275 while o=`echo $tail | sed 's/\.[^.]*$//'`; test $o != $tail; do
4276 ostry="$ostry /$o"
4277 tail=$o
4278 done
4279 o=`echo $tail | sed 's/[0-9]*$//'`
4280 if test $o != $tail; then
4281 ostry="$ostry /$o"
4283 # For linux-gnu, try linux-gnu, then linux.
4284 o=`echo $tail | sed 's/-.*$//'`
4285 if test $o != $tail; then
4286 ostry="$ostry /$o"
4289 # For unix/sysv/sysv4, try unix/sysv/sysv4, then unix/sysv, then unix.
4290 base=
4291 tail=$base_os
4292 while b=`echo $tail | sed 's@^\(.*\)/\([^/]*\)$@& \1@'`; test -n "$b"; do
4293 set $b
4294 base="$base /$1"
4295 tail="$2"
4296 done
4298 # For sparc/sparc32, try sparc/sparc32 and then sparc.
4299 mach=
4300 tail=$machine${submachine:+/$submachine}
4301 while m=`echo $tail | sed 's@^\(.*\)/\([^/]*\)$@& \1@'`; test -n "$m"; do
4302 set $m
4303 # Prepend the machine's FPU directory unless --without-fp.
4304 if test "$with_fp" = yes; then
4305 mach="$mach /$1/fpu"
4306 else
4307 mach="$mach /$1/nofpu"
4309 mach="$mach /$1"
4310 tail="$2"
4311 done
4314 # Find what sysdep directories exist.
4315 sysnames_add_ons=
4316 sysnames=
4317 for b in $base ''; do
4318 for m0 in $mach ''; do
4319 for v in /$vendor ''; do
4320 test "$v" = / && continue
4321 for o in /$ostry ''; do
4322 test "$o" = / && continue
4323 for m in $multi_arch_d $mach ''; do
4324 for d in $add_ons_pfx ''; do
4325 for a in $add_ons_sfx ''; do
4326 if test -n "$m0$m0sub$b$v$o$m$msub"; then
4327 try_srcdir="${srcdir}/"
4328 case "$d" in
4329 /*) try_srcdir= ;;
4330 esac
4331 try="${d}sysdeps$m0$m0sub$b$v$o$m$msub$a"
4332 test -n "$enable_debug_configure" &&
4333 echo "$0 DEBUG: try $try" >&2
4334 if test -d "$try_srcdir$try"; then
4335 sysnames="$sysnames $try"
4336 { test -n "$o" || test -n "$b"; } && os_used=t
4337 { test -n "$m" || test -n "$m0"; } && machine_used=t
4338 case x${m0:-$m} in
4339 x*/$submachine) submachine_used=t ;;
4340 esac
4341 if test -n "$d"; then
4342 case "$sysnames_add_ons" in
4343 *" $d "*) ;;
4344 *|'') sysnames_add_ons="$sysnames_add_ons $d" ;;
4345 esac
4349 done
4350 done
4351 done
4352 done
4353 done
4354 done
4355 done
4357 # If the assembler supports gnu_indirect_function symbol type and the
4358 # architecture supports multi-arch, we enable multi-arch by default.
4359 if test "$multi_arch" = default; then
4360 { $as_echo "$as_me:$LINENO: checking for assembler gnu_indirect_function symbol type support" >&5
4361 $as_echo_n "checking for assembler gnu_indirect_function symbol type support... " >&6; }
4362 if test "${libc_cv_asm_gnu_indirect_function+set}" = set; then
4363 $as_echo_n "(cached) " >&6
4364 else
4365 cat > conftest.s <<EOF
4366 .type foo,%gnu_indirect_function
4368 if ${CC-cc} -c $ASFLAGS conftest.s 1>&5 2>&5;
4369 then
4370 libc_cv_asm_gnu_indirect_function=yes
4371 else
4372 libc_cv_asm_gnu_indirect_function=no
4374 rm -f conftest*
4376 { $as_echo "$as_me:$LINENO: result: $libc_cv_asm_gnu_indirect_function" >&5
4377 $as_echo "$libc_cv_asm_gnu_indirect_function" >&6; }
4378 multi_arch=no
4379 if test "$libc_cv_asm_gnu_indirect_function" = yes; then
4380 case $sysnames_add_ons$sysnames in
4381 *"$multi_arch_d"*)
4382 multi_arch=yes
4384 esac
4387 if test x"$multi_arch" = xyes; then
4388 cat >>confdefs.h <<\_ACEOF
4389 #define USE_MULTIARCH 1
4390 _ACEOF
4395 if test -z "$os_used" && test "$os" != none; then
4396 { { $as_echo "$as_me:$LINENO: error: Operating system $os is not supported." >&5
4397 $as_echo "$as_me: error: Operating system $os is not supported." >&2;}
4398 { (exit 1); exit 1; }; }
4400 if test -z "$machine_used" && test "$machine" != none; then
4401 { { $as_echo "$as_me:$LINENO: error: The $machine is not supported." >&5
4402 $as_echo "$as_me: error: The $machine is not supported." >&2;}
4403 { (exit 1); exit 1; }; }
4405 if test -z "$submachine_used" && test -n "$submachine"; then
4406 { { $as_echo "$as_me:$LINENO: error: The $submachine subspecies of $host_cpu is not supported." >&5
4407 $as_echo "$as_me: error: The $submachine subspecies of $host_cpu is not supported." >&2;}
4408 { (exit 1); exit 1; }; }
4412 # We have now validated the configuration.
4415 # If using ELF, look for an `elf' subdirectory of each machine directory.
4416 # We prepend these rather than inserting them whereever the machine appears
4417 # because things specified by the machine's ELF ABI should override
4418 # OS-specific things, and should always be the same for any OS on the
4419 # machine (otherwise what's the point of an ABI?).
4420 if test "$elf" = yes; then
4421 elf_dirs=
4422 for d in $add_ons_pfx ''; do
4423 for m in $mach; do
4424 if test -d $srcdir/${d}sysdeps$m/elf; then
4425 elf_dirs="$elf_dirs ${d}sysdeps$m/elf"
4427 done
4428 done
4429 sysnames="`echo $elf_dirs | sed -e 's,//,/,g'` $sysnames"
4433 # Expand the list of system names into a full list of directories
4434 # from each element's parent name and Implies file (if present).
4435 set $sysnames
4436 names=
4437 while test $# -gt 0; do
4438 name=$1
4439 shift
4441 case " $names " in *" $name "*)
4442 # Already in the list.
4443 continue
4444 esac
4446 # Report each name as we discover it, so there is no long pause in output.
4447 echo $ECHO_N "$name $ECHO_C" >&6
4449 name_base=`echo $name | sed -e 's@\(.*sysdeps\)/.*@\1@'`
4451 case $name in
4452 /*) xsrcdir= ;;
4453 *) xsrcdir=$srcdir/ ;;
4454 esac
4455 test -n "$enable_debug_configure" &&
4456 echo "DEBUG: name/Implies $xsrcdir$name/Implies" >&2
4458 if test -f $xsrcdir$name/Implies; then
4459 # Collect more names from the `Implies' file (removing comments).
4460 implied_candidate="`sed 's/#.*$//' < $xsrcdir$name/Implies`"
4461 implied=
4462 for x in $implied_candidate; do
4463 found=no
4464 if test -d $xsrcdir$name_base/$x; then
4465 implied="$implied $name_base/$x";
4466 found=yes
4468 for d in $add_ons_pfx ''; do
4469 try="${d}sysdeps/$x"
4470 case $d in
4471 /*) try_srcdir= ;;
4472 *) try_srcdir=$srcdir/ ;;
4473 esac
4474 test -n "$enable_debug_configure" &&
4475 echo "DEBUG: $name implied $x try($d) {$try_srcdir}$try" >&2
4476 if test $try != $xsrcdir$name_base/$x && test -d $try_srcdir$try;
4477 then
4478 implied="$implied $try"
4479 found=yes
4480 case "$sysnames_add_ons" in
4481 *" $d "*) ;;
4482 *|'') sysnames_add_ons="$sysnames_add_ons $d" ;;
4483 esac
4485 done
4486 if test $found = no; then
4487 { $as_echo "$as_me:$LINENO: WARNING: $name/Implies specifies nonexistent $x" >&5
4488 $as_echo "$as_me: WARNING: $name/Implies specifies nonexistent $x" >&2;}
4490 done
4491 else
4492 implied=
4495 # Add NAME to the list of names.
4496 names="$names $name"
4498 # Find the parent of NAME, using the empty string if it has none.
4499 parent="`echo $name | sed -n -e 's=/[^/]*$==' -e '/sysdeps$/q' -e p`"
4501 # Add the names implied by NAME, and NAME's parent (if it has one), to
4502 # the list of names to be processed (the argument list). We prepend the
4503 # implied names to the list and append the parent. We want implied
4504 # directories to come before further directories inferred from the
4505 # configuration components; this ensures that for sysv4, unix/common
4506 # (implied by unix/sysv/sysv4) comes before unix/sysv (in ostry (here $*)
4507 # after sysv4).
4508 sysnames="`echo $implied $* $parent`"
4509 test -n "$sysnames" && set $sysnames
4510 done
4512 # Add the default directories.
4513 default_sysnames=sysdeps/generic
4514 if test "$elf" = yes; then
4515 default_sysnames="sysdeps/generic/elf $default_sysnames"
4517 sysnames="$names $default_sysnames"
4519 # The other names were emitted during the scan.
4520 { $as_echo "$as_me:$LINENO: result: $default_sysnames" >&5
4521 $as_echo "$default_sysnames" >&6; }
4523 # Collect the list of add-ons that supply partial sysdeps trees.
4524 sysdeps_add_ons=
4525 for add_on in $add_ons; do
4526 case "$add_on" in
4527 /*) xsrcdir= ;;
4528 *) xsrcdir="$srcdir/" ;;
4529 esac
4531 test -d "$xsrcdir$add_on/sysdeps" || {
4532 case "$configured_add_ons " in
4533 *" $add_on "*) ;;
4534 *|'')
4535 { { $as_echo "$as_me:$LINENO: error: add-on $add_on has no configure fragment or sysdeps tree" >&5
4536 $as_echo "$as_me: error: add-on $add_on has no configure fragment or sysdeps tree" >&2;}
4537 { (exit 1); exit 1; }; }
4539 esac
4540 continue
4543 sysdeps_add_ons="$sysdeps_add_ons $add_on"
4544 case "$sysnames_add_ons" in
4545 *" $add_on/ "*) ;;
4546 *|'')
4547 { $as_echo "$as_me:$LINENO: WARNING: add-on $add_on contributed no sysdeps directories" >&5
4548 $as_echo "$as_me: WARNING: add-on $add_on contributed no sysdeps directories" >&2;}
4549 continue ;;
4550 esac
4552 found=no
4553 for d in $sysnames; do
4554 case "$d" in
4555 $add_on/sysdeps/*) ;;
4556 *) continue ;;
4557 esac
4558 (cd "$xsrcdir$d" && for f in *[!~]; do
4559 case "$f" in
4560 sys|bits)
4561 for ff in $f/*.h; do
4562 test -d "$ff" || { test -e "$ff" && exit 88; }
4563 done
4566 test -d "$f" || { test -e "$f" && exit 88; }
4568 esac
4569 done)
4570 if test $? -eq 88; then
4571 found=yes
4572 break
4574 done
4575 if test $found = no; then
4576 { $as_echo "$as_me:$LINENO: WARNING: add-on $add_on contributed no useful sysdeps directories" >&5
4577 $as_echo "$as_me: WARNING: add-on $add_on contributed no useful sysdeps directories" >&2;}
4579 done
4583 ### Locate tools.
4585 # Find a good install program. We prefer a C program (faster),
4586 # so one script is as good as another. But avoid the broken or
4587 # incompatible versions:
4588 # SysV /etc/install, /usr/sbin/install
4589 # SunOS /usr/etc/install
4590 # IRIX /sbin/install
4591 # AIX /bin/install
4592 # AmigaOS /C/install, which installs bootblocks on floppy discs
4593 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4594 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4595 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4596 # OS/2's system install, which has a completely different semantic
4597 # ./install, which can be erroneously created by make from ./install.sh.
4598 # Reject install programs that cannot install multiple files.
4599 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4600 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4601 if test -z "$INSTALL"; then
4602 if test "${ac_cv_path_install+set}" = set; then
4603 $as_echo_n "(cached) " >&6
4604 else
4605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4606 for as_dir in $PATH
4608 IFS=$as_save_IFS
4609 test -z "$as_dir" && as_dir=.
4610 # Account for people who put trailing slashes in PATH elements.
4611 case $as_dir/ in
4612 ./ | .// | /cC/* | \
4613 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4614 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4615 /usr/ucb/* ) ;;
4617 # OSF1 and SCO ODT 3.0 have their own names for install.
4618 # Don't use installbsd from OSF since it installs stuff as root
4619 # by default.
4620 for ac_prog in ginstall scoinst install; do
4621 for ac_exec_ext in '' $ac_executable_extensions; do
4622 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4623 if test $ac_prog = install &&
4624 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4625 # AIX install. It has an incompatible calling convention.
4627 elif test $ac_prog = install &&
4628 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4629 # program-specific install script used by HP pwplus--don't use.
4631 else
4632 rm -rf conftest.one conftest.two conftest.dir
4633 echo one > conftest.one
4634 echo two > conftest.two
4635 mkdir conftest.dir
4636 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4637 test -s conftest.one && test -s conftest.two &&
4638 test -s conftest.dir/conftest.one &&
4639 test -s conftest.dir/conftest.two
4640 then
4641 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4642 break 3
4646 done
4647 done
4649 esac
4651 done
4652 IFS=$as_save_IFS
4654 rm -rf conftest.one conftest.two conftest.dir
4657 if test "${ac_cv_path_install+set}" = set; then
4658 INSTALL=$ac_cv_path_install
4659 else
4660 # As a last resort, use the slow shell script. Don't cache a
4661 # value for INSTALL within a source directory, because that will
4662 # break other packages using the cache if that directory is
4663 # removed, or if the value is a relative name.
4664 INSTALL=$ac_install_sh
4667 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
4668 $as_echo "$INSTALL" >&6; }
4670 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4671 # It thinks the first close brace ends the variable substitution.
4672 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4674 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4676 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4678 if test "$INSTALL" = "${srcdir}/scripts/install-sh -c"; then
4679 # The makefiles need to use a different form to find it in $srcdir.
4680 INSTALL='\$(..)./scripts/install-sh -c'
4682 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
4683 $as_echo_n "checking whether ln -s works... " >&6; }
4684 LN_S=$as_ln_s
4685 if test "$LN_S" = "ln -s"; then
4686 { $as_echo "$as_me:$LINENO: result: yes" >&5
4687 $as_echo "yes" >&6; }
4688 else
4689 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4690 $as_echo "no, using $LN_S" >&6; }
4694 # Was a --with-binutils option given?
4695 if test -n "$path_binutils"; then
4696 # Make absolute; ensure a single trailing slash.
4697 path_binutils=`(cd $path_binutils; pwd) | sed 's%/*$%/%'`
4698 CC="$CC -B$path_binutils"
4700 AS=`$CC -print-prog-name=as`
4701 LD=`$CC -print-prog-name=ld`
4702 AR=`$CC -print-prog-name=ar`
4704 OBJDUMP=`$CC -print-prog-name=objdump`
4707 # ranlib has to be treated a bit differently since it might not exist at all.
4708 ac_ranlib=`$CC -print-prog-name=ranlib`
4709 if test "x$ac_ranlib" = xranlib; then
4710 # This extra check has to happen since gcc simply echos the parameter in
4711 # case it cannot find the value in its own directories.
4712 if test -n "$ac_tool_prefix"; then
4713 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4714 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4715 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4716 $as_echo_n "checking for $ac_word... " >&6; }
4717 if test "${ac_cv_prog_RANLIB+set}" = set; then
4718 $as_echo_n "(cached) " >&6
4719 else
4720 if test -n "$RANLIB"; then
4721 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4722 else
4723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4724 for as_dir in $PATH
4726 IFS=$as_save_IFS
4727 test -z "$as_dir" && as_dir=.
4728 for ac_exec_ext in '' $ac_executable_extensions; do
4729 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4730 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4731 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4732 break 2
4734 done
4735 done
4736 IFS=$as_save_IFS
4740 RANLIB=$ac_cv_prog_RANLIB
4741 if test -n "$RANLIB"; then
4742 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
4743 $as_echo "$RANLIB" >&6; }
4744 else
4745 { $as_echo "$as_me:$LINENO: result: no" >&5
4746 $as_echo "no" >&6; }
4751 if test -z "$ac_cv_prog_RANLIB"; then
4752 ac_ct_RANLIB=$RANLIB
4753 # Extract the first word of "ranlib", so it can be a program name with args.
4754 set dummy ranlib; ac_word=$2
4755 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4756 $as_echo_n "checking for $ac_word... " >&6; }
4757 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4758 $as_echo_n "(cached) " >&6
4759 else
4760 if test -n "$ac_ct_RANLIB"; then
4761 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4762 else
4763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4764 for as_dir in $PATH
4766 IFS=$as_save_IFS
4767 test -z "$as_dir" && as_dir=.
4768 for ac_exec_ext in '' $ac_executable_extensions; do
4769 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4770 ac_cv_prog_ac_ct_RANLIB="ranlib"
4771 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4772 break 2
4774 done
4775 done
4776 IFS=$as_save_IFS
4780 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4781 if test -n "$ac_ct_RANLIB"; then
4782 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4783 $as_echo "$ac_ct_RANLIB" >&6; }
4784 else
4785 { $as_echo "$as_me:$LINENO: result: no" >&5
4786 $as_echo "no" >&6; }
4789 if test "x$ac_ct_RANLIB" = x; then
4790 RANLIB=":"
4791 else
4792 case $cross_compiling:$ac_tool_warned in
4793 yes:)
4794 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4795 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4796 ac_tool_warned=yes ;;
4797 esac
4798 RANLIB=$ac_ct_RANLIB
4800 else
4801 RANLIB="$ac_cv_prog_RANLIB"
4804 else
4805 RANLIB=$ac_ranlib
4809 # Determine whether we are using GNU binutils.
4810 { $as_echo "$as_me:$LINENO: checking whether $AS is GNU as" >&5
4811 $as_echo_n "checking whether $AS is GNU as... " >&6; }
4812 if test "${libc_cv_prog_as_gnu+set}" = set; then
4813 $as_echo_n "(cached) " >&6
4814 else
4815 # Most GNU programs take a -v and spit out some text including
4816 # the word 'GNU'. Some try to read stdin, so give them /dev/null.
4817 if $AS -o conftest -v </dev/null 2>&1 | grep GNU > /dev/null 2>&1; then
4818 libc_cv_prog_as_gnu=yes
4819 else
4820 libc_cv_prog_as_gnu=no
4822 rm -fr contest*
4824 { $as_echo "$as_me:$LINENO: result: $libc_cv_prog_as_gnu" >&5
4825 $as_echo "$libc_cv_prog_as_gnu" >&6; }
4826 rm -f a.out
4827 gnu_as=$libc_cv_prog_as_gnu
4829 { $as_echo "$as_me:$LINENO: checking whether $LD is GNU ld" >&5
4830 $as_echo_n "checking whether $LD is GNU ld... " >&6; }
4831 if test "${libc_cv_prog_ld_gnu+set}" = set; then
4832 $as_echo_n "(cached) " >&6
4833 else
4834 # Most GNU programs take a -v and spit out some text including
4835 # the word 'GNU'. Some try to read stdin, so give them /dev/null.
4836 if $LD -o conftest -v </dev/null 2>&1 | grep GNU > /dev/null 2>&1; then
4837 libc_cv_prog_ld_gnu=yes
4838 else
4839 libc_cv_prog_ld_gnu=no
4841 rm -fr contest*
4843 { $as_echo "$as_me:$LINENO: result: $libc_cv_prog_ld_gnu" >&5
4844 $as_echo "$libc_cv_prog_ld_gnu" >&6; }
4845 gnu_ld=$libc_cv_prog_ld_gnu
4848 # Accept binutils 2.13 or newer.
4849 for ac_prog in $AS
4851 # Extract the first word of "$ac_prog", so it can be a program name with args.
4852 set dummy $ac_prog; ac_word=$2
4853 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4854 $as_echo_n "checking for $ac_word... " >&6; }
4855 if test "${ac_cv_prog_AS+set}" = set; then
4856 $as_echo_n "(cached) " >&6
4857 else
4858 if test -n "$AS"; then
4859 ac_cv_prog_AS="$AS" # Let the user override the test.
4860 else
4861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4862 for as_dir in $PATH
4864 IFS=$as_save_IFS
4865 test -z "$as_dir" && as_dir=.
4866 for ac_exec_ext in '' $ac_executable_extensions; do
4867 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4868 ac_cv_prog_AS="$ac_prog"
4869 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4870 break 2
4872 done
4873 done
4874 IFS=$as_save_IFS
4878 AS=$ac_cv_prog_AS
4879 if test -n "$AS"; then
4880 { $as_echo "$as_me:$LINENO: result: $AS" >&5
4881 $as_echo "$AS" >&6; }
4882 else
4883 { $as_echo "$as_me:$LINENO: result: no" >&5
4884 $as_echo "no" >&6; }
4888 test -n "$AS" && break
4889 done
4891 if test -z "$AS"; then
4892 ac_verc_fail=yes
4893 else
4894 # Found it, now check the version.
4895 { $as_echo "$as_me:$LINENO: checking version of $AS" >&5
4896 $as_echo_n "checking version of $AS... " >&6; }
4897 ac_prog_version=`$AS --version 2>&1 | sed -n 's/^.*GNU assembler.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
4898 case $ac_prog_version in
4899 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
4900 2.1[3-9]*|2.1[0-9][0-9]*|2.[2-9][0-9]*|[3-9].*|[1-9][0-9]*)
4901 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
4902 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
4904 esac
4905 { $as_echo "$as_me:$LINENO: result: $ac_prog_version" >&5
4906 $as_echo "$ac_prog_version" >&6; }
4908 if test $ac_verc_fail = yes; then
4909 AS=: critic_missing="$critic_missing as"
4912 for ac_prog in $LD
4914 # Extract the first word of "$ac_prog", so it can be a program name with args.
4915 set dummy $ac_prog; ac_word=$2
4916 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4917 $as_echo_n "checking for $ac_word... " >&6; }
4918 if test "${ac_cv_prog_LD+set}" = set; then
4919 $as_echo_n "(cached) " >&6
4920 else
4921 if test -n "$LD"; then
4922 ac_cv_prog_LD="$LD" # Let the user override the test.
4923 else
4924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4925 for as_dir in $PATH
4927 IFS=$as_save_IFS
4928 test -z "$as_dir" && as_dir=.
4929 for ac_exec_ext in '' $ac_executable_extensions; do
4930 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4931 ac_cv_prog_LD="$ac_prog"
4932 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4933 break 2
4935 done
4936 done
4937 IFS=$as_save_IFS
4941 LD=$ac_cv_prog_LD
4942 if test -n "$LD"; then
4943 { $as_echo "$as_me:$LINENO: result: $LD" >&5
4944 $as_echo "$LD" >&6; }
4945 else
4946 { $as_echo "$as_me:$LINENO: result: no" >&5
4947 $as_echo "no" >&6; }
4951 test -n "$LD" && break
4952 done
4954 if test -z "$LD"; then
4955 ac_verc_fail=yes
4956 else
4957 # Found it, now check the version.
4958 { $as_echo "$as_me:$LINENO: checking version of $LD" >&5
4959 $as_echo_n "checking version of $LD... " >&6; }
4960 ac_prog_version=`$LD --version 2>&1 | sed -n 's/^.*GNU ld.* \([0-9][0-9]*\.[0-9.]*\).*$/\1/p'`
4961 case $ac_prog_version in
4962 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
4963 2.1[3-9]*|2.1[0-9][0-9]*|2.[2-9][0-9]*|[3-9].*|[1-9][0-9]*)
4964 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
4965 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
4967 esac
4968 { $as_echo "$as_me:$LINENO: result: $ac_prog_version" >&5
4969 $as_echo "$ac_prog_version" >&6; }
4971 if test $ac_verc_fail = yes; then
4972 LD=: critic_missing="$critic_missing ld"
4976 # We need the physical current working directory. We cannot use the
4977 # "pwd -P" shell builtin since that's not portable. Instead we try to
4978 # find a pwd binary. Note that assigning to the PWD environment
4979 # variable might have some interesting side effects, so we don't do
4980 # that.
4981 # Extract the first word of "pwd", so it can be a program name with args.
4982 set dummy pwd; ac_word=$2
4983 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4984 $as_echo_n "checking for $ac_word... " >&6; }
4985 if test "${ac_cv_path_PWD_P+set}" = set; then
4986 $as_echo_n "(cached) " >&6
4987 else
4988 case $PWD_P in
4989 [\\/]* | ?:[\\/]*)
4990 ac_cv_path_PWD_P="$PWD_P" # Let the user override the test with a path.
4993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4994 for as_dir in $PATH
4996 IFS=$as_save_IFS
4997 test -z "$as_dir" && as_dir=.
4998 for ac_exec_ext in '' $ac_executable_extensions; do
4999 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5000 ac_cv_path_PWD_P="$as_dir/$ac_word$ac_exec_ext"
5001 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5002 break 2
5004 done
5005 done
5006 IFS=$as_save_IFS
5008 test -z "$ac_cv_path_PWD_P" && ac_cv_path_PWD_P="no"
5010 esac
5012 PWD_P=$ac_cv_path_PWD_P
5013 if test -n "$PWD_P"; then
5014 { $as_echo "$as_me:$LINENO: result: $PWD_P" >&5
5015 $as_echo "$PWD_P" >&6; }
5016 else
5017 { $as_echo "$as_me:$LINENO: result: no" >&5
5018 $as_echo "no" >&6; }
5022 if test "$PWD_P" = no; then
5023 { { $as_echo "$as_me:$LINENO: error: *** A pwd binary could not be found." >&5
5024 $as_echo "$as_me: error: *** A pwd binary could not be found." >&2;}
5025 { (exit 1); exit 1; }; }
5028 # These programs are version sensitive.
5030 for ac_prog in ${ac_tool_prefix}gcc ${ac_tool_prefix}cc
5032 # Extract the first word of "$ac_prog", so it can be a program name with args.
5033 set dummy $ac_prog; ac_word=$2
5034 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5035 $as_echo_n "checking for $ac_word... " >&6; }
5036 if test "${ac_cv_prog_CC+set}" = set; then
5037 $as_echo_n "(cached) " >&6
5038 else
5039 if test -n "$CC"; then
5040 ac_cv_prog_CC="$CC" # Let the user override the test.
5041 else
5042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5043 for as_dir in $PATH
5045 IFS=$as_save_IFS
5046 test -z "$as_dir" && as_dir=.
5047 for ac_exec_ext in '' $ac_executable_extensions; do
5048 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5049 ac_cv_prog_CC="$ac_prog"
5050 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5051 break 2
5053 done
5054 done
5055 IFS=$as_save_IFS
5059 CC=$ac_cv_prog_CC
5060 if test -n "$CC"; then
5061 { $as_echo "$as_me:$LINENO: result: $CC" >&5
5062 $as_echo "$CC" >&6; }
5063 else
5064 { $as_echo "$as_me:$LINENO: result: no" >&5
5065 $as_echo "no" >&6; }
5069 test -n "$CC" && break
5070 done
5072 if test -z "$CC"; then
5073 ac_verc_fail=yes
5074 else
5075 # Found it, now check the version.
5076 { $as_echo "$as_me:$LINENO: checking version of $CC" >&5
5077 $as_echo_n "checking version of $CC... " >&6; }
5078 ac_prog_version=`$CC -v 2>&1 | sed -n 's/^.*version \([egcygnustpi-]*[0-9.]*\).*$/\1/p'`
5079 case $ac_prog_version in
5080 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
5081 3.4* | 4.[0-9]* )
5082 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
5083 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
5085 esac
5086 { $as_echo "$as_me:$LINENO: result: $ac_prog_version" >&5
5087 $as_echo "$ac_prog_version" >&6; }
5089 if test $ac_verc_fail = yes; then
5090 critic_missing="$critic_missing gcc"
5093 for ac_prog in gnumake gmake make
5095 # Extract the first word of "$ac_prog", so it can be a program name with args.
5096 set dummy $ac_prog; ac_word=$2
5097 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5098 $as_echo_n "checking for $ac_word... " >&6; }
5099 if test "${ac_cv_prog_MAKE+set}" = set; then
5100 $as_echo_n "(cached) " >&6
5101 else
5102 if test -n "$MAKE"; then
5103 ac_cv_prog_MAKE="$MAKE" # Let the user override the test.
5104 else
5105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5106 for as_dir in $PATH
5108 IFS=$as_save_IFS
5109 test -z "$as_dir" && as_dir=.
5110 for ac_exec_ext in '' $ac_executable_extensions; do
5111 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5112 ac_cv_prog_MAKE="$ac_prog"
5113 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5114 break 2
5116 done
5117 done
5118 IFS=$as_save_IFS
5122 MAKE=$ac_cv_prog_MAKE
5123 if test -n "$MAKE"; then
5124 { $as_echo "$as_me:$LINENO: result: $MAKE" >&5
5125 $as_echo "$MAKE" >&6; }
5126 else
5127 { $as_echo "$as_me:$LINENO: result: no" >&5
5128 $as_echo "no" >&6; }
5132 test -n "$MAKE" && break
5133 done
5135 if test -z "$MAKE"; then
5136 ac_verc_fail=yes
5137 else
5138 # Found it, now check the version.
5139 { $as_echo "$as_me:$LINENO: checking version of $MAKE" >&5
5140 $as_echo_n "checking version of $MAKE... " >&6; }
5141 ac_prog_version=`$MAKE --version 2>&1 | sed -n 's/^.*GNU Make[^0-9]*\([0-9][0-9.]*\).*$/\1/p'`
5142 case $ac_prog_version in
5143 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
5144 3.79* | 3.[89]*)
5145 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
5146 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
5148 esac
5149 { $as_echo "$as_me:$LINENO: result: $ac_prog_version" >&5
5150 $as_echo "$ac_prog_version" >&6; }
5152 if test $ac_verc_fail = yes; then
5153 critic_missing="$critic_missing make"
5157 for ac_prog in gnumsgfmt gmsgfmt msgfmt
5159 # Extract the first word of "$ac_prog", so it can be a program name with args.
5160 set dummy $ac_prog; ac_word=$2
5161 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5162 $as_echo_n "checking for $ac_word... " >&6; }
5163 if test "${ac_cv_prog_MSGFMT+set}" = set; then
5164 $as_echo_n "(cached) " >&6
5165 else
5166 if test -n "$MSGFMT"; then
5167 ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
5168 else
5169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5170 for as_dir in $PATH
5172 IFS=$as_save_IFS
5173 test -z "$as_dir" && as_dir=.
5174 for ac_exec_ext in '' $ac_executable_extensions; do
5175 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5176 ac_cv_prog_MSGFMT="$ac_prog"
5177 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5178 break 2
5180 done
5181 done
5182 IFS=$as_save_IFS
5186 MSGFMT=$ac_cv_prog_MSGFMT
5187 if test -n "$MSGFMT"; then
5188 { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5
5189 $as_echo "$MSGFMT" >&6; }
5190 else
5191 { $as_echo "$as_me:$LINENO: result: no" >&5
5192 $as_echo "no" >&6; }
5196 test -n "$MSGFMT" && break
5197 done
5199 if test -z "$MSGFMT"; then
5200 ac_verc_fail=yes
5201 else
5202 # Found it, now check the version.
5203 { $as_echo "$as_me:$LINENO: checking version of $MSGFMT" >&5
5204 $as_echo_n "checking version of $MSGFMT... " >&6; }
5205 ac_prog_version=`$MSGFMT --version 2>&1 | sed -n 's/^.*GNU gettext.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
5206 case $ac_prog_version in
5207 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
5208 0.10.3[6-9]* | 0.10.[4-9][0-9]* | 0.1[1-9]* | 0.[2-9][0-9]* | [1-9].*)
5209 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
5210 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
5212 esac
5213 { $as_echo "$as_me:$LINENO: result: $ac_prog_version" >&5
5214 $as_echo "$ac_prog_version" >&6; }
5216 if test $ac_verc_fail = yes; then
5217 MSGFMT=: aux_missing="$aux_missing msgfmt"
5220 for ac_prog in makeinfo
5222 # Extract the first word of "$ac_prog", so it can be a program name with args.
5223 set dummy $ac_prog; ac_word=$2
5224 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5225 $as_echo_n "checking for $ac_word... " >&6; }
5226 if test "${ac_cv_prog_MAKEINFO+set}" = set; then
5227 $as_echo_n "(cached) " >&6
5228 else
5229 if test -n "$MAKEINFO"; then
5230 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
5231 else
5232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5233 for as_dir in $PATH
5235 IFS=$as_save_IFS
5236 test -z "$as_dir" && as_dir=.
5237 for ac_exec_ext in '' $ac_executable_extensions; do
5238 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5239 ac_cv_prog_MAKEINFO="$ac_prog"
5240 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5241 break 2
5243 done
5244 done
5245 IFS=$as_save_IFS
5249 MAKEINFO=$ac_cv_prog_MAKEINFO
5250 if test -n "$MAKEINFO"; then
5251 { $as_echo "$as_me:$LINENO: result: $MAKEINFO" >&5
5252 $as_echo "$MAKEINFO" >&6; }
5253 else
5254 { $as_echo "$as_me:$LINENO: result: no" >&5
5255 $as_echo "no" >&6; }
5259 test -n "$MAKEINFO" && break
5260 done
5262 if test -z "$MAKEINFO"; then
5263 ac_verc_fail=yes
5264 else
5265 # Found it, now check the version.
5266 { $as_echo "$as_me:$LINENO: checking version of $MAKEINFO" >&5
5267 $as_echo_n "checking version of $MAKEINFO... " >&6; }
5268 ac_prog_version=`$MAKEINFO --version 2>&1 | sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
5269 case $ac_prog_version in
5270 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
5271 4.*)
5272 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
5273 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
5275 esac
5276 { $as_echo "$as_me:$LINENO: result: $ac_prog_version" >&5
5277 $as_echo "$ac_prog_version" >&6; }
5279 if test $ac_verc_fail = yes; then
5280 MAKEINFO=: aux_missing="$aux_missing makeinfo"
5283 for ac_prog in sed
5285 # Extract the first word of "$ac_prog", so it can be a program name with args.
5286 set dummy $ac_prog; ac_word=$2
5287 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5288 $as_echo_n "checking for $ac_word... " >&6; }
5289 if test "${ac_cv_prog_SED+set}" = set; then
5290 $as_echo_n "(cached) " >&6
5291 else
5292 if test -n "$SED"; then
5293 ac_cv_prog_SED="$SED" # Let the user override the test.
5294 else
5295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5296 for as_dir in $PATH
5298 IFS=$as_save_IFS
5299 test -z "$as_dir" && as_dir=.
5300 for ac_exec_ext in '' $ac_executable_extensions; do
5301 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5302 ac_cv_prog_SED="$ac_prog"
5303 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5304 break 2
5306 done
5307 done
5308 IFS=$as_save_IFS
5312 SED=$ac_cv_prog_SED
5313 if test -n "$SED"; then
5314 { $as_echo "$as_me:$LINENO: result: $SED" >&5
5315 $as_echo "$SED" >&6; }
5316 else
5317 { $as_echo "$as_me:$LINENO: result: no" >&5
5318 $as_echo "no" >&6; }
5322 test -n "$SED" && break
5323 done
5325 if test -z "$SED"; then
5326 ac_verc_fail=yes
5327 else
5328 # Found it, now check the version.
5329 { $as_echo "$as_me:$LINENO: checking version of $SED" >&5
5330 $as_echo_n "checking version of $SED... " >&6; }
5331 ac_prog_version=`$SED --version 2>&1 | sed -n 's/^.*GNU sed version \([0-9]*\.[0-9.]*\).*$/\1/p'`
5332 case $ac_prog_version in
5333 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
5334 3.0[2-9]*|3.[1-9]*|[4-9]*)
5335 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
5336 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
5338 esac
5339 { $as_echo "$as_me:$LINENO: result: $ac_prog_version" >&5
5340 $as_echo "$ac_prog_version" >&6; }
5342 if test $ac_verc_fail = yes; then
5343 SED=: aux_missing="$aux_missing sed"
5347 for ac_prog in autoconf
5349 # Extract the first word of "$ac_prog", so it can be a program name with args.
5350 set dummy $ac_prog; ac_word=$2
5351 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5352 $as_echo_n "checking for $ac_word... " >&6; }
5353 if test "${ac_cv_prog_AUTOCONF+set}" = set; then
5354 $as_echo_n "(cached) " >&6
5355 else
5356 if test -n "$AUTOCONF"; then
5357 ac_cv_prog_AUTOCONF="$AUTOCONF" # Let the user override the test.
5358 else
5359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5360 for as_dir in $PATH
5362 IFS=$as_save_IFS
5363 test -z "$as_dir" && as_dir=.
5364 for ac_exec_ext in '' $ac_executable_extensions; do
5365 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5366 ac_cv_prog_AUTOCONF="$ac_prog"
5367 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5368 break 2
5370 done
5371 done
5372 IFS=$as_save_IFS
5376 AUTOCONF=$ac_cv_prog_AUTOCONF
5377 if test -n "$AUTOCONF"; then
5378 { $as_echo "$as_me:$LINENO: result: $AUTOCONF" >&5
5379 $as_echo "$AUTOCONF" >&6; }
5380 else
5381 { $as_echo "$as_me:$LINENO: result: no" >&5
5382 $as_echo "no" >&6; }
5386 test -n "$AUTOCONF" && break
5387 done
5388 test -n "$AUTOCONF" || AUTOCONF="no"
5390 case "x$AUTOCONF" in
5391 xno|x|x:) AUTOCONF=no ;;
5393 { $as_echo "$as_me:$LINENO: checking whether $AUTOCONF${ACFLAGS:+ }$ACFLAGS works" >&5
5394 $as_echo_n "checking whether $AUTOCONF${ACFLAGS:+ }$ACFLAGS works... " >&6; }
5395 if test "${libc_cv_autoconf_works+set}" = set; then
5396 $as_echo_n "(cached) " >&6
5397 else
5398 if (cd $srcdir; $AUTOCONF $ACFLAGS configure.in > /dev/null 2>&1); then
5399 libc_cv_autoconf_works=yes
5400 else
5401 libc_cv_autoconf_works=no
5404 { $as_echo "$as_me:$LINENO: result: $libc_cv_autoconf_works" >&5
5405 $as_echo "$libc_cv_autoconf_works" >&6; }
5406 test $libc_cv_autoconf_works = yes || AUTOCONF=no
5408 esac
5409 if test "x$with_cvs" = xyes && test "x$AUTOCONF" = xno; then
5410 # If --without-cvs they probably won't change configure.in, so no complaints.
5411 aux_missing="$aux_missing autoconf"
5414 test -n "$critic_missing" && { { $as_echo "$as_me:$LINENO: error:
5415 *** These critical programs are missing or too old:$critic_missing
5416 *** Check the INSTALL file for required versions." >&5
5417 $as_echo "$as_me: error:
5418 *** These critical programs are missing or too old:$critic_missing
5419 *** Check the INSTALL file for required versions." >&2;}
5420 { (exit 1); exit 1; }; }
5422 test -n "$aux_missing" && { $as_echo "$as_me:$LINENO: WARNING:
5423 *** These auxiliary programs are missing or incompatible versions:$aux_missing
5424 *** some features will be disabled.
5425 *** Check the INSTALL file for required versions." >&5
5426 $as_echo "$as_me: WARNING:
5427 *** These auxiliary programs are missing or incompatible versions:$aux_missing
5428 *** some features will be disabled.
5429 *** Check the INSTALL file for required versions." >&2;}
5431 # if using special system headers, find out the compiler's sekrit
5432 # header directory and add that to the list. NOTE: Only does the right
5433 # thing on a system that doesn't need fixincludes. (Not presently a problem.)
5434 if test -n "$sysheaders"; then
5435 SYSINCLUDES=-nostdinc
5436 for d in include include-fixed; do
5437 i=`$CC -print-file-name="$d"` && test "x$i" != x && test "x$i" != "x$d" &&
5438 SYSINCLUDES="$SYSINCLUDES -isystem $i"
5439 done
5440 SYSINCLUDES="$SYSINCLUDES \
5441 -isystem `echo $sysheaders | sed 's/:/ -isystem /g'`"
5442 if test -n "$CXX"; then
5443 cxxversion=`$CXX -dumpversion 2>&5` &&
5444 cxxmachine=`$CXX -dumpmachine 2>&5` &&
5445 cxxheaders=`$CXX -print-file-name=../../../../include/c++/`"$cxxversion" &&
5446 CXX_SYSINCLUDES="-isystem $cxxheaders \
5447 -isystem $cxxheaders/$cxxmachine -isystem $cxxheaders/backward"
5453 # check if ranlib is necessary
5454 { $as_echo "$as_me:$LINENO: checking whether ranlib is necessary" >&5
5455 $as_echo_n "checking whether ranlib is necessary... " >&6; }
5456 if test "${libc_cv_ranlib_necessary+set}" = set; then
5457 $as_echo_n "(cached) " >&6
5458 else
5459 cat > conftest.c <<EOF
5460 int a;
5461 char b;
5462 void c(void) {}
5464 $CC $CFLAGS $CPPFLAGS -c conftest.c
5465 $AR cr conftest.a conftest.o
5466 cp conftest.a conftest2.a
5467 $RANLIB conftest.a
5468 if cmp -s conftest.a conftest2.a; then
5469 libc_cv_ranlib_necessary=no
5470 else
5471 libc_cv_ranlib_necessary=yes
5473 rm -rf conftest*
5475 { $as_echo "$as_me:$LINENO: result: $libc_cv_ranlib_necessary" >&5
5476 $as_echo "$libc_cv_ranlib_necessary" >&6; }
5477 if test "$libc_cv_ranlib_necessary" = no; then
5478 RANLIB=:
5481 # Test if LD_LIBRARY_PATH contains the notation for the current directory
5482 # since this would lead to problems installing/building glibc.
5483 # LD_LIBRARY_PATH contains the current directory if one of the following
5484 # is true:
5485 # - one of the terminals (":" and ";") is the first or last sign
5486 # - two terminals occur directly after each other
5487 # - the path contains an element with a dot in it
5488 { $as_echo "$as_me:$LINENO: checking LD_LIBRARY_PATH variable" >&5
5489 $as_echo_n "checking LD_LIBRARY_PATH variable... " >&6; }
5490 case ${LD_LIBRARY_PATH} in
5491 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
5492 ld_library_path_setting="contains current directory"
5495 ld_library_path_setting="ok"
5497 esac
5498 { $as_echo "$as_me:$LINENO: result: $ld_library_path_setting" >&5
5499 $as_echo "$ld_library_path_setting" >&6; }
5500 if test "$ld_library_path_setting" != "ok"; then
5501 { { $as_echo "$as_me:$LINENO: error:
5502 *** LD_LIBRARY_PATH shouldn't contain the current directory when
5503 *** building glibc. Please change the environment variable
5504 *** and run configure again." >&5
5505 $as_echo "$as_me: error:
5506 *** LD_LIBRARY_PATH shouldn't contain the current directory when
5507 *** building glibc. Please change the environment variable
5508 *** and run configure again." >&2;}
5509 { (exit 1); exit 1; }; }
5512 { $as_echo "$as_me:$LINENO: checking whether GCC supports -static-libgcc" >&5
5513 $as_echo_n "checking whether GCC supports -static-libgcc... " >&6; }
5514 if test "${libc_cv_gcc_static_libgcc+set}" = set; then
5515 $as_echo_n "(cached) " >&6
5516 else
5517 if $CC -v -static-libgcc 2>&1 | grep -q 'unrecognized option.*static-libgcc'; then
5518 libc_cv_gcc_static_libgcc=
5519 else
5520 libc_cv_gcc_static_libgcc=-static-libgcc
5523 { $as_echo "$as_me:$LINENO: result: $libc_cv_gcc_static_libgcc" >&5
5524 $as_echo "$libc_cv_gcc_static_libgcc" >&6; }
5527 # Extract the first word of "bash", so it can be a program name with args.
5528 set dummy bash; ac_word=$2
5529 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5530 $as_echo_n "checking for $ac_word... " >&6; }
5531 if test "${ac_cv_path_BASH_SHELL+set}" = set; then
5532 $as_echo_n "(cached) " >&6
5533 else
5534 case $BASH_SHELL in
5535 [\\/]* | ?:[\\/]*)
5536 ac_cv_path_BASH_SHELL="$BASH_SHELL" # Let the user override the test with a path.
5539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5540 for as_dir in $PATH
5542 IFS=$as_save_IFS
5543 test -z "$as_dir" && as_dir=.
5544 for ac_exec_ext in '' $ac_executable_extensions; do
5545 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5546 ac_cv_path_BASH_SHELL="$as_dir/$ac_word$ac_exec_ext"
5547 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5548 break 2
5550 done
5551 done
5552 IFS=$as_save_IFS
5554 test -z "$ac_cv_path_BASH_SHELL" && ac_cv_path_BASH_SHELL="no"
5556 esac
5558 BASH_SHELL=$ac_cv_path_BASH_SHELL
5559 if test -n "$BASH_SHELL"; then
5560 { $as_echo "$as_me:$LINENO: result: $BASH_SHELL" >&5
5561 $as_echo "$BASH_SHELL" >&6; }
5562 else
5563 { $as_echo "$as_me:$LINENO: result: no" >&5
5564 $as_echo "no" >&6; }
5568 if test "$BASH_SHELL" != no &&
5569 $BASH_SHELL -c 'test "$BASH_VERSINFO" \
5570 && test "$BASH_VERSINFO" -ge 2 >&/dev/null'; then
5571 libc_cv_have_bash2=yes
5572 else
5573 libc_cv_have_bash2=no
5577 if test "$BASH_SHELL" = no; then
5578 # Extract the first word of "ksh", so it can be a program name with args.
5579 set dummy ksh; ac_word=$2
5580 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5581 $as_echo_n "checking for $ac_word... " >&6; }
5582 if test "${ac_cv_path_KSH+set}" = set; then
5583 $as_echo_n "(cached) " >&6
5584 else
5585 case $KSH in
5586 [\\/]* | ?:[\\/]*)
5587 ac_cv_path_KSH="$KSH" # Let the user override the test with a path.
5590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5591 for as_dir in $PATH
5593 IFS=$as_save_IFS
5594 test -z "$as_dir" && as_dir=.
5595 for ac_exec_ext in '' $ac_executable_extensions; do
5596 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5597 ac_cv_path_KSH="$as_dir/$ac_word$ac_exec_ext"
5598 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5599 break 2
5601 done
5602 done
5603 IFS=$as_save_IFS
5605 test -z "$ac_cv_path_KSH" && ac_cv_path_KSH="no"
5607 esac
5609 KSH=$ac_cv_path_KSH
5610 if test -n "$KSH"; then
5611 { $as_echo "$as_me:$LINENO: result: $KSH" >&5
5612 $as_echo "$KSH" >&6; }
5613 else
5614 { $as_echo "$as_me:$LINENO: result: no" >&5
5615 $as_echo "no" >&6; }
5619 if test "$KSH" = no; then
5620 libc_cv_have_ksh=no
5621 else
5622 libc_cv_have_ksh=yes
5624 else
5625 KSH="$BASH_SHELL"
5627 libc_cv_have_ksh=yes
5631 for ac_prog in gawk mawk nawk awk
5633 # Extract the first word of "$ac_prog", so it can be a program name with args.
5634 set dummy $ac_prog; ac_word=$2
5635 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5636 $as_echo_n "checking for $ac_word... " >&6; }
5637 if test "${ac_cv_prog_AWK+set}" = set; then
5638 $as_echo_n "(cached) " >&6
5639 else
5640 if test -n "$AWK"; then
5641 ac_cv_prog_AWK="$AWK" # Let the user override the test.
5642 else
5643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5644 for as_dir in $PATH
5646 IFS=$as_save_IFS
5647 test -z "$as_dir" && as_dir=.
5648 for ac_exec_ext in '' $ac_executable_extensions; do
5649 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5650 ac_cv_prog_AWK="$ac_prog"
5651 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5652 break 2
5654 done
5655 done
5656 IFS=$as_save_IFS
5660 AWK=$ac_cv_prog_AWK
5661 if test -n "$AWK"; then
5662 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
5663 $as_echo "$AWK" >&6; }
5664 else
5665 { $as_echo "$as_me:$LINENO: result: no" >&5
5666 $as_echo "no" >&6; }
5670 test -n "$AWK" && break
5671 done
5673 # Extract the first word of "perl", so it can be a program name with args.
5674 set dummy perl; ac_word=$2
5675 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5676 $as_echo_n "checking for $ac_word... " >&6; }
5677 if test "${ac_cv_path_PERL+set}" = set; then
5678 $as_echo_n "(cached) " >&6
5679 else
5680 case $PERL in
5681 [\\/]* | ?:[\\/]*)
5682 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
5685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5686 for as_dir in $PATH
5688 IFS=$as_save_IFS
5689 test -z "$as_dir" && as_dir=.
5690 for ac_exec_ext in '' $ac_executable_extensions; do
5691 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5692 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
5693 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5694 break 2
5696 done
5697 done
5698 IFS=$as_save_IFS
5700 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="no"
5702 esac
5704 PERL=$ac_cv_path_PERL
5705 if test -n "$PERL"; then
5706 { $as_echo "$as_me:$LINENO: result: $PERL" >&5
5707 $as_echo "$PERL" >&6; }
5708 else
5709 { $as_echo "$as_me:$LINENO: result: no" >&5
5710 $as_echo "no" >&6; }
5714 if test "$PERL" != no &&
5715 (eval `$PERL -V:apiversion`; test `expr "$apiversion" \< 5` -ne 0); then
5716 PERL=no
5718 # Extract the first word of "install-info", so it can be a program name with args.
5719 set dummy install-info; ac_word=$2
5720 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5721 $as_echo_n "checking for $ac_word... " >&6; }
5722 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5723 $as_echo_n "(cached) " >&6
5724 else
5725 case $INSTALL_INFO in
5726 [\\/]* | ?:[\\/]*)
5727 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5731 as_dummy="$PATH:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin"
5732 for as_dir in $as_dummy
5734 IFS=$as_save_IFS
5735 test -z "$as_dir" && as_dir=.
5736 for ac_exec_ext in '' $ac_executable_extensions; do
5737 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5738 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5739 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5740 break 2
5742 done
5743 done
5744 IFS=$as_save_IFS
5746 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO="no"
5748 esac
5750 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5751 if test -n "$INSTALL_INFO"; then
5752 { $as_echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5753 $as_echo "$INSTALL_INFO" >&6; }
5754 else
5755 { $as_echo "$as_me:$LINENO: result: no" >&5
5756 $as_echo "no" >&6; }
5760 # Extract the first word of "bison", so it can be a program name with args.
5761 set dummy bison; ac_word=$2
5762 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5763 $as_echo_n "checking for $ac_word... " >&6; }
5764 if test "${ac_cv_path_BISON+set}" = set; then
5765 $as_echo_n "(cached) " >&6
5766 else
5767 case $BISON in
5768 [\\/]* | ?:[\\/]*)
5769 ac_cv_path_BISON="$BISON" # Let the user override the test with a path.
5772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5773 as_dummy="$PATH:/usr/local/bin:/usr/bin:/bin"
5774 for as_dir in $as_dummy
5776 IFS=$as_save_IFS
5777 test -z "$as_dir" && as_dir=.
5778 for ac_exec_ext in '' $ac_executable_extensions; do
5779 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5780 ac_cv_path_BISON="$as_dir/$ac_word$ac_exec_ext"
5781 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5782 break 2
5784 done
5785 done
5786 IFS=$as_save_IFS
5788 test -z "$ac_cv_path_BISON" && ac_cv_path_BISON="no"
5790 esac
5792 BISON=$ac_cv_path_BISON
5793 if test -n "$BISON"; then
5794 { $as_echo "$as_me:$LINENO: result: $BISON" >&5
5795 $as_echo "$BISON" >&6; }
5796 else
5797 { $as_echo "$as_me:$LINENO: result: no" >&5
5798 $as_echo "no" >&6; }
5803 { $as_echo "$as_me:$LINENO: checking for signed size_t type" >&5
5804 $as_echo_n "checking for signed size_t type... " >&6; }
5805 if test "${libc_cv_signed_size_t+set}" = set; then
5806 $as_echo_n "(cached) " >&6
5807 else
5808 echo '#include <stddef.h>
5809 FOOBAR __SIZE_TYPE__ FOOBAR' > conftest.c
5810 if eval "$ac_cpp conftest.c 2>/dev/null" \
5811 | grep '^FOOBAR.*unsigned.*FOOBAR$' >/dev/null; then
5812 libc_cv_signed_size_t=no
5813 else
5814 libc_cv_signed_size_t=yes
5816 rm -f conftest*
5818 { $as_echo "$as_me:$LINENO: result: $libc_cv_signed_size_t" >&5
5819 $as_echo "$libc_cv_signed_size_t" >&6; }
5820 if test $libc_cv_signed_size_t = yes; then
5821 cat >> confdefs.h <<\EOF
5822 #undef __SIZE_TYPE__
5823 #define __SIZE_TYPE__ unsigned
5827 { $as_echo "$as_me:$LINENO: checking for libc-friendly stddef.h" >&5
5828 $as_echo_n "checking for libc-friendly stddef.h... " >&6; }
5829 if test "${libc_cv_friendly_stddef+set}" = set; then
5830 $as_echo_n "(cached) " >&6
5831 else
5832 cat >conftest.$ac_ext <<_ACEOF
5833 /* confdefs.h. */
5834 _ACEOF
5835 cat confdefs.h >>conftest.$ac_ext
5836 cat >>conftest.$ac_ext <<_ACEOF
5837 /* end confdefs.h. */
5838 #define __need_size_t
5839 #define __need_wchar_t
5840 #include <stddef.h>
5841 #define __need_NULL
5842 #include <stddef.h>
5844 main ()
5846 size_t size; wchar_t wchar;
5847 #ifdef offsetof
5848 #error stddef.h ignored __need_*
5849 #endif
5850 if (&size == NULL || &wchar == NULL) abort ();
5852 return 0;
5854 _ACEOF
5855 rm -f conftest.$ac_objext
5856 if { (ac_try="$ac_compile"
5857 case "(($ac_try" in
5858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5859 *) ac_try_echo=$ac_try;;
5860 esac
5861 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5862 $as_echo "$ac_try_echo") >&5
5863 (eval "$ac_compile") 2>conftest.er1
5864 ac_status=$?
5865 grep -v '^ *+' conftest.er1 >conftest.err
5866 rm -f conftest.er1
5867 cat conftest.err >&5
5868 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5869 (exit $ac_status); } && {
5870 test -z "$ac_c_werror_flag" ||
5871 test ! -s conftest.err
5872 } && test -s conftest.$ac_objext; then
5873 libc_cv_friendly_stddef=yes
5874 else
5875 $as_echo "$as_me: failed program was:" >&5
5876 sed 's/^/| /' conftest.$ac_ext >&5
5878 libc_cv_friendly_stddef=no
5881 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5883 { $as_echo "$as_me:$LINENO: result: $libc_cv_friendly_stddef" >&5
5884 $as_echo "$libc_cv_friendly_stddef" >&6; }
5885 if test $libc_cv_friendly_stddef = yes; then
5886 config_vars="$config_vars
5887 override stddef.h = # The installed <stddef.h> seems to be libc-friendly."
5890 { $as_echo "$as_me:$LINENO: checking whether we need to use -P to assemble .S files" >&5
5891 $as_echo_n "checking whether we need to use -P to assemble .S files... " >&6; }
5892 if test "${libc_cv_need_minus_P+set}" = set; then
5893 $as_echo_n "(cached) " >&6
5894 else
5895 cat > conftest.S <<EOF
5896 #include "confdefs.h"
5897 /* Nothing whatsoever. */
5899 if { ac_try='${CC-cc} $CPPFLAGS $ASFLAGS -c conftest.S 1>&5'
5900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5901 (eval $ac_try) 2>&5
5902 ac_status=$?
5903 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5904 (exit $ac_status); }; }; then
5905 libc_cv_need_minus_P=no
5906 else
5907 libc_cv_need_minus_P=yes
5909 rm -f conftest*
5911 { $as_echo "$as_me:$LINENO: result: $libc_cv_need_minus_P" >&5
5912 $as_echo "$libc_cv_need_minus_P" >&6; }
5913 if test $libc_cv_need_minus_P = yes; then
5914 config_vars="$config_vars
5915 asm-CPPFLAGS = -P # The assembler can't grok cpp's # line directives."
5918 { $as_echo "$as_me:$LINENO: checking whether .text pseudo-op must be used" >&5
5919 $as_echo_n "checking whether .text pseudo-op must be used... " >&6; }
5920 if test "${libc_cv_dot_text+set}" = set; then
5921 $as_echo_n "(cached) " >&6
5922 else
5923 cat > conftest.s <<EOF
5924 .text
5926 libc_cv_dot_text=
5927 if { ac_try='${CC-cc} $ASFLAGS -c conftest.s 1>&5'
5928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5929 (eval $ac_try) 2>&5
5930 ac_status=$?
5931 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5932 (exit $ac_status); }; }; then
5933 libc_cv_dot_text=.text
5935 rm -f conftest*
5938 if test -z "$libc_cv_dot_text"; then
5939 { $as_echo "$as_me:$LINENO: result: no" >&5
5940 $as_echo "no" >&6; }
5941 else
5942 { $as_echo "$as_me:$LINENO: result: yes" >&5
5943 $as_echo "yes" >&6; }
5946 { $as_echo "$as_me:$LINENO: checking for assembler global-symbol directive" >&5
5947 $as_echo_n "checking for assembler global-symbol directive... " >&6; }
5948 if test "${libc_cv_asm_global_directive+set}" = set; then
5949 $as_echo_n "(cached) " >&6
5950 else
5951 libc_cv_asm_global_directive=UNKNOWN
5952 for ac_globl in .globl .global .EXPORT; do
5953 cat > conftest.s <<EOF
5954 ${libc_cv_dot_text}
5955 ${ac_globl} foo
5956 foo:
5958 if { ac_try='${CC-cc} $ASFLAGS -c conftest.s 1>&5'
5959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5960 (eval $ac_try) 2>&5
5961 ac_status=$?
5962 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5963 (exit $ac_status); }; }; then
5964 libc_cv_asm_global_directive=${ac_globl}
5966 rm -f conftest*
5967 test $libc_cv_asm_global_directive != UNKNOWN && break
5968 done
5970 { $as_echo "$as_me:$LINENO: result: $libc_cv_asm_global_directive" >&5
5971 $as_echo "$libc_cv_asm_global_directive" >&6; }
5972 if test $libc_cv_asm_global_directive = UNKNOWN; then
5973 { { $as_echo "$as_me:$LINENO: error: cannot determine asm global directive" >&5
5974 $as_echo "$as_me: error: cannot determine asm global directive" >&2;}
5975 { (exit 1); exit 1; }; }
5976 else
5977 cat >>confdefs.h <<_ACEOF
5978 #define ASM_GLOBAL_DIRECTIVE ${libc_cv_asm_global_directive}
5979 _ACEOF
5983 { $as_echo "$as_me:$LINENO: checking for .set assembler directive" >&5
5984 $as_echo_n "checking for .set assembler directive... " >&6; }
5985 if test "${libc_cv_asm_set_directive+set}" = set; then
5986 $as_echo_n "(cached) " >&6
5987 else
5988 cat > conftest.s <<EOF
5989 ${libc_cv_dot_text}
5990 foo:
5991 .set glibc_conftest_frobozz,foo
5992 $libc_cv_asm_global_directive glibc_conftest_frobozz
5994 # The alpha-dec-osf1 assembler gives only a warning for `.set'
5995 # (but it doesn't work), so we must do a linking check to be sure.
5996 cat > conftest1.c <<\EOF
5997 extern int glibc_conftest_frobozz;
5998 void _start() { glibc_conftest_frobozz = 1; }
6000 if ${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \
6001 -nostartfiles -nostdlib \
6002 -o conftest conftest.s conftest1.c 1>&5 2>&5; then
6003 libc_cv_asm_set_directive=yes
6004 else
6005 libc_cv_asm_set_directive=no
6007 rm -f conftest*
6009 { $as_echo "$as_me:$LINENO: result: $libc_cv_asm_set_directive" >&5
6010 $as_echo "$libc_cv_asm_set_directive" >&6; }
6011 if test $libc_cv_asm_set_directive = yes; then
6012 cat >>confdefs.h <<\_ACEOF
6013 #define HAVE_ASM_SET_DIRECTIVE 1
6014 _ACEOF
6018 { $as_echo "$as_me:$LINENO: checking for assembler .type directive prefix" >&5
6019 $as_echo_n "checking for assembler .type directive prefix... " >&6; }
6020 if test "${libc_cv_asm_type_prefix+set}" = set; then
6021 $as_echo_n "(cached) " >&6
6022 else
6023 libc_cv_asm_type_prefix=no
6024 for ac_try_prefix in '@' '%' '#'; do
6025 cat > conftest.s <<EOF
6026 ${libc_cv_dot_text}
6027 ${libc_cv_asm_global_directive} foo
6028 .type foo, ${ac_try_prefix}object
6029 .size foo, 1
6030 foo:
6031 .byte 1
6033 if { ac_try='${CC-cc} $ASFLAGS -c conftest.s 1>&5'
6034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6035 (eval $ac_try) 2>&5
6036 ac_status=$?
6037 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6038 (exit $ac_status); }; }; then
6039 libc_cv_asm_type_prefix=${ac_try_prefix}
6041 rm -f conftest*
6042 test "x$libc_cv_asm_type_prefix" != xno && break
6043 done
6045 { $as_echo "$as_me:$LINENO: result: $libc_cv_asm_type_prefix" >&5
6046 $as_echo "$libc_cv_asm_type_prefix" >&6; }
6047 if test "x$libc_cv_asm_type_prefix" != xno; then
6048 cat >>confdefs.h <<_ACEOF
6049 #define ASM_TYPE_DIRECTIVE_PREFIX ${libc_cv_asm_type_prefix}
6050 _ACEOF
6054 { $as_echo "$as_me:$LINENO: checking for assembler gnu_unique_object symbol type" >&5
6055 $as_echo_n "checking for assembler gnu_unique_object symbol type... " >&6; }
6056 if test "${libc_cv_asm_unique_object+set}" = set; then
6057 $as_echo_n "(cached) " >&6
6058 else
6059 cat > conftest.s <<EOF
6060 ${libc_cv_dot_text}
6061 _sym:
6062 .type _sym, ${libc_cv_asm_type_prefix}gnu_unique_object
6064 if ${CC-cc} -c $ASFLAGS conftest.s 1>&5 2>&5; then
6065 libc_cv_asm_unique_object=yes
6066 else
6067 libc_cv_asm_unique_object=no
6069 rm -f conftest*
6071 { $as_echo "$as_me:$LINENO: result: $libc_cv_asm_unique_object" >&5
6072 $as_echo "$libc_cv_asm_unique_object" >&6; }
6073 if test $libc_cv_asm_unique_object = yes; then
6074 cat >>confdefs.h <<\_ACEOF
6075 #define HAVE_ASM_UNIQUE_OBJECT 1
6076 _ACEOF
6080 # For the multi-arch option we need support in the assembler.
6081 if test "$multi_arch" = yes; then
6082 if test "x$libc_cv_asm_type_prefix" != xno; then
6083 { $as_echo "$as_me:$LINENO: checking for assembler gnu_indirect_function symbol type support" >&5
6084 $as_echo_n "checking for assembler gnu_indirect_function symbol type support... " >&6; }
6085 if test "${libc_cv_asm_gnu_indirect_function+set}" = set; then
6086 $as_echo_n "(cached) " >&6
6087 else
6088 cat > conftest.s <<EOF
6089 .type foo,%gnu_indirect_function
6091 if ${CC-cc} -c $ASFLAGS conftest.s 1>&5 2>&5;
6092 then
6093 libc_cv_asm_gnu_indirect_function=yes
6094 else
6095 libc_cv_asm_gnu_indirect_function=no
6097 rm -f conftest*
6099 { $as_echo "$as_me:$LINENO: result: $libc_cv_asm_gnu_indirect_function" >&5
6100 $as_echo "$libc_cv_asm_gnu_indirect_function" >&6; }
6101 else
6102 libc_cv_asm_gnu_indirect_function=no
6104 if test x"$libc_cv_asm_gnu_indirect_function" != xyes; then
6105 { { $as_echo "$as_me:$LINENO: error: --enable-multi-arch support requires assembler and linker support" >&5
6106 $as_echo "$as_me: error: --enable-multi-arch support requires assembler and linker support" >&2;}
6107 { (exit 1); exit 1; }; }
6111 { $as_echo "$as_me:$LINENO: checking for .symver assembler directive" >&5
6112 $as_echo_n "checking for .symver assembler directive... " >&6; }
6113 if test "${libc_cv_asm_symver_directive+set}" = set; then
6114 $as_echo_n "(cached) " >&6
6115 else
6116 cat > conftest.s <<EOF
6117 ${libc_cv_dot_text}
6118 _sym:
6119 .symver _sym,sym@VERS
6121 if ${CC-cc} -c $ASFLAGS conftest.s 1>&5 2>&5; then
6122 libc_cv_asm_symver_directive=yes
6123 else
6124 libc_cv_asm_symver_directive=no
6126 rm -f conftest*
6128 { $as_echo "$as_me:$LINENO: result: $libc_cv_asm_symver_directive" >&5
6129 $as_echo "$libc_cv_asm_symver_directive" >&6; }
6130 { $as_echo "$as_me:$LINENO: checking for ld --version-script" >&5
6131 $as_echo_n "checking for ld --version-script... " >&6; }
6132 if test "${libc_cv_ld_version_script_option+set}" = set; then
6133 $as_echo_n "(cached) " >&6
6134 else
6135 if test $libc_cv_asm_symver_directive = yes; then
6136 cat > conftest.s <<EOF
6137 ${libc_cv_dot_text}
6138 _sym:
6139 .symver _sym,sym@VERS
6141 cat > conftest.map <<EOF
6142 VERS_1 {
6143 global: sym;
6146 VERS_2 {
6147 global: sym;
6148 } VERS_1;
6150 if ${CC-cc} -c $ASFLAGS conftest.s 1>&5 2>&5; then
6151 if { ac_try='${CC-cc} $CFLAGS $LDFLAGS -shared
6152 -o conftest.so conftest.o
6153 -nostartfiles -nostdlib
6154 -Wl,--version-script,conftest.map
6155 1>&5'
6156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6157 (eval $ac_try) 2>&5
6158 ac_status=$?
6159 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6160 (exit $ac_status); }; };
6161 then
6162 libc_cv_ld_version_script_option=yes
6163 else
6164 libc_cv_ld_version_script_option=no
6166 else
6167 libc_cv_ld_version_script_option=no
6169 else
6170 libc_cv_ld_version_script_option=no
6172 rm -f conftest*
6174 { $as_echo "$as_me:$LINENO: result: $libc_cv_ld_version_script_option" >&5
6175 $as_echo "$libc_cv_ld_version_script_option" >&6; }
6176 if test $shared != no &&
6177 test $libc_cv_asm_symver_directive = yes &&
6178 test $libc_cv_ld_version_script_option = yes &&
6179 test $enable_versioning = yes; then
6180 VERSIONING=yes
6181 cat >>confdefs.h <<\_ACEOF
6182 #define DO_VERSIONING 1
6183 _ACEOF
6185 else
6186 VERSIONING=no
6190 if test $elf = yes && test $shared != no && test $VERSIONING = no; then
6191 echo "\
6192 *** WARNING: You should not compile GNU libc without versioning. Not using
6193 *** versioning will introduce incompatibilities so that old binaries
6194 *** will not run anymore.
6195 *** For versioning you need recent binutils (binutils-2.8.1.0.23 or newer)."
6197 if test $elf = yes; then
6198 { $as_echo "$as_me:$LINENO: checking for .previous assembler directive" >&5
6199 $as_echo_n "checking for .previous assembler directive... " >&6; }
6200 if test "${libc_cv_asm_previous_directive+set}" = set; then
6201 $as_echo_n "(cached) " >&6
6202 else
6203 cat > conftest.s <<EOF
6204 .section foo_section
6205 .previous
6207 if { ac_try='${CC-cc} -c $ASFLAGS conftest.s 1>&5'
6208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6209 (eval $ac_try) 2>&5
6210 ac_status=$?
6211 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6212 (exit $ac_status); }; }; then
6213 libc_cv_asm_previous_directive=yes
6214 else
6215 libc_cv_asm_previous_directive=no
6217 rm -f conftest*
6219 { $as_echo "$as_me:$LINENO: result: $libc_cv_asm_previous_directive" >&5
6220 $as_echo "$libc_cv_asm_previous_directive" >&6; }
6221 if test $libc_cv_asm_previous_directive = yes; then
6222 cat >>confdefs.h <<\_ACEOF
6223 #define HAVE_ASM_PREVIOUS_DIRECTIVE 1
6224 _ACEOF
6226 else
6227 { $as_echo "$as_me:$LINENO: checking for .popsection assembler directive" >&5
6228 $as_echo_n "checking for .popsection assembler directive... " >&6; }
6229 if test "${libc_cv_asm_popsection_directive+set}" = set; then
6230 $as_echo_n "(cached) " >&6
6231 else
6232 cat > conftest.s <<EOF
6233 .pushsection foo_section
6234 .popsection
6236 if { ac_try='${CC-cc} -c $ASFLAGS conftest.s 1>&5'
6237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6238 (eval $ac_try) 2>&5
6239 ac_status=$?
6240 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6241 (exit $ac_status); }; }; then
6242 libc_cv_asm_popsection_directive=yes
6243 else
6244 libc_cv_asm_popsection_directive=no
6246 rm -f conftest*
6248 { $as_echo "$as_me:$LINENO: result: $libc_cv_asm_popsection_directive" >&5
6249 $as_echo "$libc_cv_asm_popsection_directive" >&6; }
6250 if test $libc_cv_asm_popsection_directive = yes; then
6251 cat >>confdefs.h <<\_ACEOF
6252 #define HAVE_ASM_POPSECTION_DIRECTIVE 1
6253 _ACEOF
6257 { $as_echo "$as_me:$LINENO: checking for .protected and .hidden assembler directive" >&5
6258 $as_echo_n "checking for .protected and .hidden assembler directive... " >&6; }
6259 if test "${libc_cv_asm_protected_directive+set}" = set; then
6260 $as_echo_n "(cached) " >&6
6261 else
6262 cat > conftest.s <<EOF
6263 .protected foo
6264 foo:
6265 .hidden bar
6266 bar:
6268 if { ac_try='${CC-cc} -c $ASFLAGS conftest.s 1>&5'
6269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6270 (eval $ac_try) 2>&5
6271 ac_status=$?
6272 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6273 (exit $ac_status); }; }; then
6274 libc_cv_asm_protected_directive=yes
6275 else
6276 { { $as_echo "$as_me:$LINENO: error: assembler support for symbol visibility is required" >&5
6277 $as_echo "$as_me: error: assembler support for symbol visibility is required" >&2;}
6278 { (exit 1); exit 1; }; }
6280 rm -f conftest*
6282 { $as_echo "$as_me:$LINENO: result: $libc_cv_asm_protected_directive" >&5
6283 $as_echo "$libc_cv_asm_protected_directive" >&6; }
6285 if test $libc_cv_asm_protected_directive = yes; then
6286 { $as_echo "$as_me:$LINENO: checking whether __attribute__((visibility())) is supported" >&5
6287 $as_echo_n "checking whether __attribute__((visibility())) is supported... " >&6; }
6288 if test "${libc_cv_visibility_attribute+set}" = set; then
6289 $as_echo_n "(cached) " >&6
6290 else
6291 cat > conftest.c <<EOF
6292 int foo __attribute__ ((visibility ("hidden"))) = 1;
6293 int bar __attribute__ ((visibility ("protected"))) = 1;
6295 libc_cv_visibility_attribute=no
6296 if { ac_try='${CC-cc} -Werror -S conftest.c -o conftest.s 1>&5'
6297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6298 (eval $ac_try) 2>&5
6299 ac_status=$?
6300 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6301 (exit $ac_status); }; }; then
6302 if grep '\.hidden.*foo' conftest.s >/dev/null; then
6303 if grep '\.protected.*bar' conftest.s >/dev/null; then
6304 libc_cv_visibility_attribute=yes
6308 rm -f conftest.cs
6311 { $as_echo "$as_me:$LINENO: result: $libc_cv_visibility_attribute" >&5
6312 $as_echo "$libc_cv_visibility_attribute" >&6; }
6313 if test $libc_cv_visibility_attribute != yes; then
6314 { { $as_echo "$as_me:$LINENO: error: compiler support for visibility attribute is required" >&5
6315 $as_echo "$as_me: error: compiler support for visibility attribute is required" >&2;}
6316 { (exit 1); exit 1; }; }
6320 if test $libc_cv_visibility_attribute = yes; then
6321 { $as_echo "$as_me:$LINENO: checking for broken __attribute__((visibility()))" >&5
6322 $as_echo_n "checking for broken __attribute__((visibility()))... " >&6; }
6323 if test "${libc_cv_broken_visibility_attribute+set}" = set; then
6324 $as_echo_n "(cached) " >&6
6325 else
6326 cat > conftest.c <<EOF
6327 int foo (int x);
6328 int bar (int x) __asm__ ("foo") __attribute__ ((visibility ("hidden")));
6329 int bar (int x) { return x; }
6331 libc_cv_broken_visibility_attribute=yes
6332 if { ac_try='${CC-cc} -Werror -S conftest.c -o conftest.s1>&5'
6333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6334 (eval $ac_try) 2>&5
6335 ac_status=$?
6336 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6337 (exit $ac_status); }; }; then
6338 if grep '\.hidden[ _]foo' conftest.s >/dev/null; then
6339 libc_cv_broken_visibility_attribute=no
6342 rm -f conftest.c conftest.s
6345 { $as_echo "$as_me:$LINENO: result: $libc_cv_broken_visibility_attribute" >&5
6346 $as_echo "$libc_cv_broken_visibility_attribute" >&6; }
6347 if test $libc_cv_broken_visibility_attribute = yes; then
6348 { { $as_echo "$as_me:$LINENO: error: working compiler support for visibility attribute is required" >&5
6349 $as_echo "$as_me: error: working compiler support for visibility attribute is required" >&2;}
6350 { (exit 1); exit 1; }; }
6354 { $as_echo "$as_me:$LINENO: checking for broken __attribute__((alias()))" >&5
6355 $as_echo_n "checking for broken __attribute__((alias()))... " >&6; }
6356 if test "${libc_cv_broken_alias_attribute+set}" = set; then
6357 $as_echo_n "(cached) " >&6
6358 else
6359 cat > conftest.c <<EOF
6360 extern int foo (int x) __asm ("xyzzy");
6361 int bar (int x) { return x; }
6362 extern __typeof (bar) foo __attribute ((weak, alias ("bar")));
6363 extern int dfoo;
6364 extern __typeof (dfoo) dfoo __asm ("abccb");
6365 int dfoo = 1;
6367 libc_cv_broken_alias_attribute=yes
6368 if { ac_try='${CC-cc} -Werror -S conftest.c -o conftest.s 1>&5'
6369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6370 (eval $ac_try) 2>&5
6371 ac_status=$?
6372 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6373 (exit $ac_status); }; }; then
6374 if grep 'xyzzy' conftest.s >/dev/null &&
6375 grep 'abccb' conftest.s >/dev/null; then
6376 libc_cv_broken_alias_attribute=no
6379 rm -f conftest.c conftest.s
6382 { $as_echo "$as_me:$LINENO: result: $libc_cv_broken_alias_attribute" >&5
6383 $as_echo "$libc_cv_broken_alias_attribute" >&6; }
6384 if test $libc_cv_broken_alias_attribute = yes; then
6385 { { $as_echo "$as_me:$LINENO: error: working alias attribute support required" >&5
6386 $as_echo "$as_me: error: working alias attribute support required" >&2;}
6387 { (exit 1); exit 1; }; }
6390 if test $libc_cv_visibility_attribute = yes; then
6391 { $as_echo "$as_me:$LINENO: checking whether to put _rtld_local into .sdata section" >&5
6392 $as_echo_n "checking whether to put _rtld_local into .sdata section... " >&6; }
6393 if test "${libc_cv_have_sdata_section+set}" = set; then
6394 $as_echo_n "(cached) " >&6
6395 else
6396 echo "int i;" > conftest.c
6397 libc_cv_have_sdata_section=no
6398 if ${CC-cc} $LDFLAGS -fPIC -shared -Wl,--verbose conftest.c -o conftest.so 2>&1 \
6399 | grep '\.sdata' >/dev/null; then
6400 libc_cv_have_sdata_section=yes
6402 rm -f conftest.c conftest.so
6405 { $as_echo "$as_me:$LINENO: result: $libc_cv_have_sdata_section" >&5
6406 $as_echo "$libc_cv_have_sdata_section" >&6; }
6407 if test $libc_cv_have_sdata_section = yes; then
6408 cat >>confdefs.h <<\_ACEOF
6409 #define HAVE_SDATA_SECTION 1
6410 _ACEOF
6415 { $as_echo "$as_me:$LINENO: checking for .preinit_array/.init_array/.fini_array support" >&5
6416 $as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
6417 if test "${libc_cv_initfini_array+set}" = set; then
6418 $as_echo_n "(cached) " >&6
6419 else
6420 cat > conftest.c <<EOF
6421 int _start (void) { return 0; }
6422 int __start (void) { return 0; }
6423 int foo (void) { return 1; }
6424 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
6426 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS -o conftest conftest.c
6427 -static -nostartfiles -nostdlib 1>&5'
6428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6429 (eval $ac_try) 2>&5
6430 ac_status=$?
6431 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6432 (exit $ac_status); }; }
6433 then
6434 if readelf -S conftest | fgrep INIT_ARRAY > /dev/null; then
6435 libc_cv_initfini_array=yes
6436 else
6437 libc_cv_initfini_array=no
6439 else
6440 libc_cv_initfini_array=no
6442 rm -f conftest*
6444 { $as_echo "$as_me:$LINENO: result: $libc_cv_initfini_array" >&5
6445 $as_echo "$libc_cv_initfini_array" >&6; }
6446 if test $libc_cv_initfini_array != yes; then
6447 { { $as_echo "$as_me:$LINENO: error: Need linker with .init_array/.fini_array support." >&5
6448 $as_echo "$as_me: error: Need linker with .init_array/.fini_array support." >&2;}
6449 { (exit 1); exit 1; }; }
6452 { $as_echo "$as_me:$LINENO: checking for libunwind-support in compiler" >&5
6453 $as_echo_n "checking for libunwind-support in compiler... " >&6; }
6454 if test "${libc_cv_cc_with_libunwind+set}" = set; then
6455 $as_echo_n "(cached) " >&6
6456 else
6458 cat > conftest.c <<EOF
6459 int main (void) { return 0; }
6461 if ${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS -static -o conftest \
6462 conftest.c -v 2>&1 >/dev/null | grep -q " -lunwind "; then
6463 libc_cv_cc_with_libunwind=yes
6464 else
6465 libc_cv_cc_with_libunwind=no
6467 rm -f conftest*
6469 { $as_echo "$as_me:$LINENO: result: $libc_cv_cc_with_libunwind" >&5
6470 $as_echo "$libc_cv_cc_with_libunwind" >&6; }
6472 if test $libc_cv_cc_with_libunwind = yes; then
6473 cat >>confdefs.h <<\_ACEOF
6474 #define HAVE_CC_WITH_LIBUNWIND 1
6475 _ACEOF
6479 { $as_echo "$as_me:$LINENO: checking for -z nodelete option" >&5
6480 $as_echo_n "checking for -z nodelete option... " >&6; }
6481 if test "${libc_cv_z_nodelete+set}" = set; then
6482 $as_echo_n "(cached) " >&6
6483 else
6484 cat > conftest.c <<EOF
6485 int _start (void) { return 42; }
6487 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
6488 -fPIC -shared -o conftest.so conftest.c
6489 -nostartfiles -nostdlib
6490 -Wl,--enable-new-dtags,-z,nodelete 1>&5'
6491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6492 (eval $ac_try) 2>&5
6493 ac_status=$?
6494 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6495 (exit $ac_status); }; }
6496 then
6497 libc_cv_z_nodelete=yes
6498 else
6499 { { $as_echo "$as_me:$LINENO: error: linker with -z nodelete support required" >&5
6500 $as_echo "$as_me: error: linker with -z nodelete support required" >&2;}
6501 { (exit 1); exit 1; }; }
6503 rm -f conftest*
6505 { $as_echo "$as_me:$LINENO: result: $libc_cv_z_nodelete" >&5
6506 $as_echo "$libc_cv_z_nodelete" >&6; }
6508 { $as_echo "$as_me:$LINENO: checking for -z nodlopen option" >&5
6509 $as_echo_n "checking for -z nodlopen option... " >&6; }
6510 if test "${libc_cv_z_nodlopen+set}" = set; then
6511 $as_echo_n "(cached) " >&6
6512 else
6513 cat > conftest.c <<EOF
6514 int _start (void) { return 42; }
6516 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
6517 -fPIC -shared -o conftest.so conftest.c
6518 -nostartfiles -nostdlib
6519 -Wl,--enable-new-dtags,-z,nodlopen 1>&5'
6520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6521 (eval $ac_try) 2>&5
6522 ac_status=$?
6523 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6524 (exit $ac_status); }; }
6525 then
6526 libc_cv_z_nodlopen=yes
6527 else
6528 { { $as_echo "$as_me:$LINENO: error: linker with -z nodlopen support required" >&5
6529 $as_echo "$as_me: error: linker with -z nodlopen support required" >&2;}
6530 { (exit 1); exit 1; }; }
6532 rm -f conftest*
6534 { $as_echo "$as_me:$LINENO: result: $libc_cv_z_nodlopen" >&5
6535 $as_echo "$libc_cv_z_nodlopen" >&6; }
6537 { $as_echo "$as_me:$LINENO: checking for -z initfirst option" >&5
6538 $as_echo_n "checking for -z initfirst option... " >&6; }
6539 if test "${libc_cv_z_initfirst+set}" = set; then
6540 $as_echo_n "(cached) " >&6
6541 else
6542 cat > conftest.c <<EOF
6543 int _start (void) { return 42; }
6545 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
6546 -fPIC -shared -o conftest.so conftest.c
6547 -nostartfiles -nostdlib
6548 -Wl,--enable-new-dtags,-z,initfirst 1>&5'
6549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6550 (eval $ac_try) 2>&5
6551 ac_status=$?
6552 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6553 (exit $ac_status); }; }
6554 then
6555 libc_cv_z_initfirst=yes
6556 else
6557 { { $as_echo "$as_me:$LINENO: error: linker with -z initfirst support required" >&5
6558 $as_echo "$as_me: error: linker with -z initfirst support required" >&2;}
6559 { (exit 1); exit 1; }; }
6561 rm -f conftest*
6563 { $as_echo "$as_me:$LINENO: result: $libc_cv_z_initfirst" >&5
6564 $as_echo "$libc_cv_z_initfirst" >&6; }
6566 case "$base_machine" in
6567 i[34567]86 | x86_64 | powerpc* | s390* | sparc* | alpha*)
6568 { $as_echo "$as_me:$LINENO: checking for -z relro option" >&5
6569 $as_echo_n "checking for -z relro option... " >&6; }
6570 if test "${libc_cv_z_relro+set}" = set; then
6571 $as_echo_n "(cached) " >&6
6572 else
6573 libc_cv_z_relro=no
6574 if { ac_try='${CC-cc} -v --help 2>&1|grep "z relro" 1>&5'
6575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6576 (eval $ac_try) 2>&5
6577 ac_status=$?
6578 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6579 (exit $ac_status); }; }
6580 then
6581 if { ac_try='${CC-cc} -Wl,--verbose 2>&1|grep DATA_SEGMENT_RELRO_END 1>&5'
6582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6583 (eval $ac_try) 2>&5
6584 ac_status=$?
6585 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6586 (exit $ac_status); }; }
6587 then
6588 libc_cv_z_relro=yes
6592 { $as_echo "$as_me:$LINENO: result: $libc_cv_z_relro" >&5
6593 $as_echo "$libc_cv_z_relro" >&6; }
6594 if test "$libc_cv_z_relro" = no; then
6595 { { $as_echo "$as_me:$LINENO: error: linker with -z relro support required" >&5
6596 $as_echo "$as_me: error: linker with -z relro support required" >&2;}
6597 { (exit 1); exit 1; }; }
6600 *) ;;
6601 esac
6603 { $as_echo "$as_me:$LINENO: checking for -Bgroup option" >&5
6604 $as_echo_n "checking for -Bgroup option... " >&6; }
6605 if test "${libc_cv_Bgroup+set}" = set; then
6606 $as_echo_n "(cached) " >&6
6607 else
6608 cat > conftest.c <<EOF
6609 int _start (void) { return 42; }
6611 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
6612 -fPIC -shared -o conftest.so conftest.c
6613 -Wl,-Bgroup -nostdlib 1>&5'
6614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6615 (eval $ac_try) 2>&5
6616 ac_status=$?
6617 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6618 (exit $ac_status); }; }
6619 then
6620 libc_cv_Bgroup=yes
6621 else
6622 libc_cv_Bgroup=no
6624 rm -f conftest*
6626 { $as_echo "$as_me:$LINENO: result: $libc_cv_Bgroup" >&5
6627 $as_echo "$libc_cv_Bgroup" >&6; }
6630 { $as_echo "$as_me:$LINENO: checking for libgcc_s suffix" >&5
6631 $as_echo_n "checking for libgcc_s suffix... " >&6; }
6632 if test "${libc_cv_libgcc_s_suffix+set}" = set; then
6633 $as_echo_n "(cached) " >&6
6634 else
6635 cat > conftest.c <<EOF
6636 int main (void) { return 0; }
6638 libc_cv_libgcc_s_suffix=`${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \
6639 -fPIC -shared -shared-libgcc -o conftest.so \
6640 conftest.c -v 2>&1 >/dev/null \
6641 | sed -n 's/^.* -lgcc_s\([^ ]*\) .*$/\1/p'`
6642 rm -f conftest*
6644 { $as_echo "$as_me:$LINENO: result: $libc_cv_libgcc_s_suffix" >&5
6645 $as_echo "$libc_cv_libgcc_s_suffix" >&6; }
6648 { $as_echo "$as_me:$LINENO: checking for --as-needed option" >&5
6649 $as_echo_n "checking for --as-needed option... " >&6; }
6650 if test "${libc_cv_as_needed+set}" = set; then
6651 $as_echo_n "(cached) " >&6
6652 else
6653 cat > conftest.c <<EOF
6654 int main (void) { return 0; }
6656 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
6657 -fPIC -shared -o conftest.so conftest.c
6658 -lgcc_s$libc_cv_libgcc_s_suffix -Wl,--as-needed
6659 -nostdlib 1>&5'
6660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6661 (eval $ac_try) 2>&5
6662 ac_status=$?
6663 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6664 (exit $ac_status); }; }
6665 then
6666 libc_cv_as_needed=yes
6667 else
6668 libc_cv_as_needed=no
6670 rm -f conftest*
6672 { $as_echo "$as_me:$LINENO: result: $libc_cv_as_needed" >&5
6673 $as_echo "$libc_cv_as_needed" >&6; }
6676 ASFLAGS_config=
6677 { $as_echo "$as_me:$LINENO: checking whether --noexecstack is desirable for .S files" >&5
6678 $as_echo_n "checking whether --noexecstack is desirable for .S files... " >&6; }
6679 if test "${libc_cv_as_noexecstack+set}" = set; then
6680 $as_echo_n "(cached) " >&6
6681 else
6682 cat > conftest.c <<EOF
6683 void foo (void) { }
6685 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS
6686 -S -o conftest.s conftest.c 1>&5'
6687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6688 (eval $ac_try) 2>&5
6689 ac_status=$?
6690 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6691 (exit $ac_status); }; } \
6692 && grep -q .note.GNU-stack conftest.s \
6693 && { ac_try='${CC-cc} $ASFLAGS -Wa,--noexecstack
6694 -c -o conftest.o conftest.s 1>&5'
6695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6696 (eval $ac_try) 2>&5
6697 ac_status=$?
6698 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6699 (exit $ac_status); }; }
6700 then
6701 libc_cv_as_noexecstack=yes
6702 else
6703 libc_cv_as_noexecstack=no
6705 rm -f conftest*
6707 { $as_echo "$as_me:$LINENO: result: $libc_cv_as_noexecstack" >&5
6708 $as_echo "$libc_cv_as_noexecstack" >&6; }
6709 if test $libc_cv_as_noexecstack = yes; then
6710 ASFLAGS_config="$ASFLAGS_config -Wa,--noexecstack"
6714 { $as_echo "$as_me:$LINENO: checking for -z combreloc" >&5
6715 $as_echo_n "checking for -z combreloc... " >&6; }
6716 if test "${libc_cv_z_combreloc+set}" = set; then
6717 $as_echo_n "(cached) " >&6
6718 else
6719 cat > conftest.c <<EOF
6720 extern int bar (int);
6721 extern int mumble;
6722 int foo (void) { return bar (mumble); }
6724 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
6725 -fPIC -shared -o conftest.so conftest.c
6726 -nostdlib -nostartfiles
6727 -Wl,-z,combreloc 1>&5'
6728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6729 (eval $ac_try) 2>&5
6730 ac_status=$?
6731 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6732 (exit $ac_status); }; }
6733 then
6734 if readelf -S conftest.so | grep '\.rel\(a\|\)\.dyn' > /dev/null; then
6735 libc_cv_z_combreloc=yes
6736 else
6737 libc_cv_z_combreloc=no
6739 else
6740 libc_cv_z_combreloc=no
6742 rm -f conftest*
6744 { $as_echo "$as_me:$LINENO: result: $libc_cv_z_combreloc" >&5
6745 $as_echo "$libc_cv_z_combreloc" >&6; }
6746 if test "$libc_cv_z_combreloc" = yes; then
6747 cat >>confdefs.h <<\_ACEOF
6748 #define HAVE_Z_COMBRELOC 1
6749 _ACEOF
6754 { $as_echo "$as_me:$LINENO: checking for -z execstack" >&5
6755 $as_echo_n "checking for -z execstack... " >&6; }
6756 if test "${libc_cv_z_execstack+set}" = set; then
6757 $as_echo_n "(cached) " >&6
6758 else
6759 cat > conftest.c <<EOF
6760 int _start (void) { return 42; }
6762 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
6763 -fPIC -shared -o conftest.so conftest.c
6764 -Wl,-z,execstack -nostdlib
6765 1>&5'
6766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6767 (eval $ac_try) 2>&5
6768 ac_status=$?
6769 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6770 (exit $ac_status); }; }
6771 then
6772 libc_cv_z_execstack=yes
6773 else
6774 libc_cv_z_execstack=no
6776 rm -f conftest*
6778 { $as_echo "$as_me:$LINENO: result: $libc_cv_z_execstack" >&5
6779 $as_echo "$libc_cv_z_execstack" >&6; }
6782 { $as_echo "$as_me:$LINENO: checking for -fpie" >&5
6783 $as_echo_n "checking for -fpie... " >&6; }
6784 if test "${libc_cv_fpie+set}" = set; then
6785 $as_echo_n "(cached) " >&6
6786 else
6787 cat > conftest.c <<EOF
6788 int foo;
6789 main () { return 0;}
6791 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS -pie -fpie
6792 -o conftest conftest.c 1>&5'
6793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6794 (eval $ac_try) 2>&5
6795 ac_status=$?
6796 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6797 (exit $ac_status); }; }
6798 then
6799 libc_cv_fpie=yes
6800 else
6801 libc_cv_fpie=no
6803 rm -f conftest*
6805 { $as_echo "$as_me:$LINENO: result: $libc_cv_fpie" >&5
6806 $as_echo "$libc_cv_fpie" >&6; }
6810 { $as_echo "$as_me:$LINENO: checking for --hash-style option" >&5
6811 $as_echo_n "checking for --hash-style option... " >&6; }
6812 if test "${libc_cv_hashstyle+set}" = set; then
6813 $as_echo_n "(cached) " >&6
6814 else
6815 cat > conftest.c <<EOF
6816 int _start (void) { return 42; }
6818 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
6819 -fPIC -shared -o conftest.so conftest.c
6820 -Wl,--hash-style=both -nostdlib 1>&5'
6821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6822 (eval $ac_try) 2>&5
6823 ac_status=$?
6824 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6825 (exit $ac_status); }; }
6826 then
6827 libc_cv_hashstyle=yes
6828 else
6829 libc_cv_hashstyle=no
6831 rm -f conftest*
6833 { $as_echo "$as_me:$LINENO: result: $libc_cv_hashstyle" >&5
6834 $as_echo "$libc_cv_hashstyle" >&6; }
6838 { $as_echo "$as_me:$LINENO: checking for -fno-toplevel-reorder -fno-section-anchors" >&5
6839 $as_echo_n "checking for -fno-toplevel-reorder -fno-section-anchors... " >&6; }
6840 if test "${libc_cv_fno_toplevel_reorder+set}" = set; then
6841 $as_echo_n "(cached) " >&6
6842 else
6843 cat > conftest.c <<EOF
6844 int foo;
6846 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -S -fno-toplevel-reorder -fno-section-anchors
6847 conftest.c 1>&5'
6848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6849 (eval $ac_try) 2>&5
6850 ac_status=$?
6851 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6852 (exit $ac_status); }; }
6853 then
6854 libc_cv_fno_toplevel_reorder=yes
6855 else
6856 libc_cv_fno_toplevel_reorder=no
6858 rm -f conftest*
6860 { $as_echo "$as_me:$LINENO: result: $libc_cv_fno_toplevel_reorder" >&5
6861 $as_echo "$libc_cv_fno_toplevel_reorder" >&6; }
6862 if test $libc_cv_fno_toplevel_reorder = yes; then
6863 fno_unit_at_a_time="-fno-toplevel-reorder -fno-section-anchors"
6864 else
6865 fno_unit_at_a_time=-fno-unit-at-a-time
6869 { $as_echo "$as_me:$LINENO: checking for -fstack-protector" >&5
6870 $as_echo_n "checking for -fstack-protector... " >&6; }
6871 if test "${libc_cv_ssp+set}" = set; then
6872 $as_echo_n "(cached) " >&6
6873 else
6874 cat > conftest.c <<EOF
6875 int foo;
6876 main () { return 0;}
6878 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS -Werror -fstack-protector
6879 -o conftest conftest.c 1>&5'
6880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6881 (eval $ac_try) 2>&5
6882 ac_status=$?
6883 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6884 (exit $ac_status); }; }
6885 then
6886 libc_cv_ssp=yes
6887 else
6888 libc_cv_ssp=no
6890 rm -f conftest*
6892 { $as_echo "$as_me:$LINENO: result: $libc_cv_ssp" >&5
6893 $as_echo "$libc_cv_ssp" >&6; }
6896 { $as_echo "$as_me:$LINENO: checking for -fgnu89-inline" >&5
6897 $as_echo_n "checking for -fgnu89-inline... " >&6; }
6898 if test "${libc_cv_gnu89_inline+set}" = set; then
6899 $as_echo_n "(cached) " >&6
6900 else
6901 cat > conftest.c <<EOF
6902 int foo;
6903 #ifdef __GNUC_GNU_INLINE__
6904 main () { return 0;}
6905 #else
6906 #error
6907 #endif
6909 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -S -std=gnu99 -fgnu89-inline
6910 -o conftest.s conftest.c 1>&5'
6911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6912 (eval $ac_try) 2>&5
6913 ac_status=$?
6914 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6915 (exit $ac_status); }; }
6916 then
6917 libc_cv_gnu89_inline=yes
6918 else
6919 libc_cv_gnu89_inline=no
6921 rm -f conftest*
6923 { $as_echo "$as_me:$LINENO: result: $libc_cv_gnu89_inline" >&5
6924 $as_echo "$libc_cv_gnu89_inline" >&6; }
6925 if test $libc_cv_gnu89_inline = yes; then
6926 libc_cv_gnu89_inline=-fgnu89-inline
6927 else
6928 libc_cv_gnu89_inline=
6932 if test $elf != yes; then
6933 { $as_echo "$as_me:$LINENO: checking for .init and .fini sections" >&5
6934 $as_echo_n "checking for .init and .fini sections... " >&6; }
6935 if test "${libc_cv_have_initfini+set}" = set; then
6936 $as_echo_n "(cached) " >&6
6937 else
6938 cat >conftest.$ac_ext <<_ACEOF
6939 /* confdefs.h. */
6940 _ACEOF
6941 cat confdefs.h >>conftest.$ac_ext
6942 cat >>conftest.$ac_ext <<_ACEOF
6943 /* end confdefs.h. */
6946 main ()
6948 asm (".section .init");
6949 asm (".section .fini");
6950 asm ("${libc_cv_dot_text}");
6952 return 0;
6954 _ACEOF
6955 rm -f conftest.$ac_objext
6956 if { (ac_try="$ac_compile"
6957 case "(($ac_try" in
6958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6959 *) ac_try_echo=$ac_try;;
6960 esac
6961 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6962 $as_echo "$ac_try_echo") >&5
6963 (eval "$ac_compile") 2>conftest.er1
6964 ac_status=$?
6965 grep -v '^ *+' conftest.er1 >conftest.err
6966 rm -f conftest.er1
6967 cat conftest.err >&5
6968 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6969 (exit $ac_status); } && {
6970 test -z "$ac_c_werror_flag" ||
6971 test ! -s conftest.err
6972 } && test -s conftest.$ac_objext; then
6973 libc_cv_have_initfini=yes
6974 else
6975 $as_echo "$as_me: failed program was:" >&5
6976 sed 's/^/| /' conftest.$ac_ext >&5
6978 libc_cv_have_initfini=no
6981 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6983 { $as_echo "$as_me:$LINENO: result: $libc_cv_have_initfini" >&5
6984 $as_echo "$libc_cv_have_initfini" >&6; }
6985 if test $libc_cv_have_initfini = yes; then
6986 cat >>confdefs.h <<\_ACEOF
6987 #define HAVE_INITFINI 1
6988 _ACEOF
6993 if test $elf = yes; then
6994 { $as_echo "$as_me:$LINENO: checking whether cc puts quotes around section names" >&5
6995 $as_echo_n "checking whether cc puts quotes around section names... " >&6; }
6996 if test "${libc_cv_have_section_quotes+set}" = set; then
6997 $as_echo_n "(cached) " >&6
6998 else
6999 cat > conftest.c <<EOF
7000 static const int foo
7001 __attribute__ ((section ("bar"))) = 1;
7003 if ${CC-cc} -S conftest.c -o conftest.s; then
7004 if grep '\.section.*"bar"' conftest.s >/dev/null; then
7005 libc_cv_have_section_quotes=yes
7006 else
7007 libc_cv_have_section_quotes=no
7009 else
7010 libc_cv_have_section_quotes=unknown
7012 rm -f conftest.cs
7015 { $as_echo "$as_me:$LINENO: result: $libc_cv_have_section_quotes" >&5
7016 $as_echo "$libc_cv_have_section_quotes" >&6; }
7017 if test $libc_cv_have_section_quotes = yes; then
7018 cat >>confdefs.h <<\_ACEOF
7019 #define HAVE_SECTION_QUOTES 1
7020 _ACEOF
7027 if test $elf = yes; then
7028 libc_cv_asm_underscores=no
7029 else
7030 if test $ac_cv_prog_cc_works = yes; then
7031 { $as_echo "$as_me:$LINENO: checking for _ prefix on C symbol names" >&5
7032 $as_echo_n "checking for _ prefix on C symbol names... " >&6; }
7033 if test "${libc_cv_asm_underscores+set}" = set; then
7034 $as_echo_n "(cached) " >&6
7035 else
7036 cat >conftest.$ac_ext <<_ACEOF
7037 /* confdefs.h. */
7038 _ACEOF
7039 cat confdefs.h >>conftest.$ac_ext
7040 cat >>conftest.$ac_ext <<_ACEOF
7041 /* end confdefs.h. */
7042 asm ("_glibc_foobar:");
7044 main ()
7046 glibc_foobar ();
7048 return 0;
7050 _ACEOF
7051 rm -f conftest.$ac_objext conftest$ac_exeext
7052 if { (ac_try="$ac_link"
7053 case "(($ac_try" in
7054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7055 *) ac_try_echo=$ac_try;;
7056 esac
7057 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7058 $as_echo "$ac_try_echo") >&5
7059 (eval "$ac_link") 2>conftest.er1
7060 ac_status=$?
7061 grep -v '^ *+' conftest.er1 >conftest.err
7062 rm -f conftest.er1
7063 cat conftest.err >&5
7064 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7065 (exit $ac_status); } && {
7066 test -z "$ac_c_werror_flag" ||
7067 test ! -s conftest.err
7068 } && test -s conftest$ac_exeext && {
7069 test "$cross_compiling" = yes ||
7070 $as_test_x conftest$ac_exeext
7071 }; then
7072 libc_cv_asm_underscores=yes
7073 else
7074 $as_echo "$as_me: failed program was:" >&5
7075 sed 's/^/| /' conftest.$ac_ext >&5
7077 libc_cv_asm_underscores=no
7080 rm -rf conftest.dSYM
7081 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7082 conftest$ac_exeext conftest.$ac_ext
7084 { $as_echo "$as_me:$LINENO: result: $libc_cv_asm_underscores" >&5
7085 $as_echo "$libc_cv_asm_underscores" >&6; }
7086 else
7087 { $as_echo "$as_me:$LINENO: checking for _ prefix on C symbol names" >&5
7088 $as_echo_n "checking for _ prefix on C symbol names... " >&6; }
7089 if test "${libc_cv_asm_underscores+set}" = set; then
7090 $as_echo_n "(cached) " >&6
7091 else
7092 cat > conftest.$ac_ext <<EOF
7093 #line $LINENO "configure"
7094 #include "confdefs.h"
7095 void underscore_test(void) {
7096 return; }
7098 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7099 (eval $ac_compile) 2>&5
7100 ac_status=$?
7101 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7102 (exit $ac_status); }; then
7103 if grep _underscore_test conftest* >/dev/null; then
7104 rm -f conftest*
7105 libc_cv_asm_underscores=yes
7106 else
7107 rm -f conftest*
7108 libc_cv_asm_underscores=no
7110 else
7111 echo "configure: failed program was:" >&5
7112 cat conftest.$ac_ext >&5
7113 rm -f conftest*
7114 libc_cv_asm_underscores=no
7116 rm -f conftest*
7118 { $as_echo "$as_me:$LINENO: result: $libc_cv_asm_underscores" >&5
7119 $as_echo "$libc_cv_asm_underscores" >&6; }
7122 if test $libc_cv_asm_underscores = no; then
7123 cat >>confdefs.h <<\_ACEOF
7124 #define NO_UNDERSCORES 1
7125 _ACEOF
7129 if test $elf = yes; then
7130 libc_cv_weak_symbols=yes
7133 { $as_echo "$as_me:$LINENO: checking for assembler .weak directive" >&5
7134 $as_echo_n "checking for assembler .weak directive... " >&6; }
7135 if test "${libc_cv_asm_weak_directive+set}" = set; then
7136 $as_echo_n "(cached) " >&6
7137 else
7138 cat > conftest.s <<EOF
7139 ${libc_cv_dot_text}
7140 ${libc_cv_asm_global_directive} foo
7141 foo:
7142 .weak foo
7143 .weak bar; bar = foo
7145 if { ac_try='${CC-cc} $ASFLAGS -c conftest.s 1>&5'
7146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7147 (eval $ac_try) 2>&5
7148 ac_status=$?
7149 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7150 (exit $ac_status); }; }; then
7151 libc_cv_asm_weak_directive=yes
7152 else
7153 libc_cv_asm_weak_directive=no
7155 rm -f conftest*
7157 { $as_echo "$as_me:$LINENO: result: $libc_cv_asm_weak_directive" >&5
7158 $as_echo "$libc_cv_asm_weak_directive" >&6; }
7160 if test $libc_cv_asm_weak_directive = no; then
7161 { $as_echo "$as_me:$LINENO: checking for assembler .weakext directive" >&5
7162 $as_echo_n "checking for assembler .weakext directive... " >&6; }
7163 if test "${libc_cv_asm_weakext_directive+set}" = set; then
7164 $as_echo_n "(cached) " >&6
7165 else
7166 cat > conftest.s <<EOF
7167 ${libc_cv_dot_text}
7168 ${libc_cv_asm_global_directive} foo
7169 foo:
7170 .weakext bar foo
7171 .weakext baz
7172 ${libc_cv_asm_global_directive} baz
7173 baz:
7175 if { ac_try='${CC-cc} $ASFLAGS -c conftest.s 1>&5'
7176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7177 (eval $ac_try) 2>&5
7178 ac_status=$?
7179 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7180 (exit $ac_status); }; }; then
7181 libc_cv_asm_weakext_directive=yes
7182 else
7183 libc_cv_asm_weakext_directive=no
7185 rm -f conftest*
7187 { $as_echo "$as_me:$LINENO: result: $libc_cv_asm_weakext_directive" >&5
7188 $as_echo "$libc_cv_asm_weakext_directive" >&6; }
7190 fi # no .weak
7192 if test $libc_cv_asm_weak_directive = yes; then
7193 cat >>confdefs.h <<\_ACEOF
7194 #define HAVE_ASM_WEAK_DIRECTIVE 1
7195 _ACEOF
7197 elif test $libc_cv_asm_weakext_directive = yes; then
7198 cat >>confdefs.h <<\_ACEOF
7199 #define HAVE_ASM_WEAKEXT_DIRECTIVE 1
7200 _ACEOF
7204 { $as_echo "$as_me:$LINENO: checking whether CFI directives are supported" >&5
7205 $as_echo_n "checking whether CFI directives are supported... " >&6; }
7206 if test "${libc_cv_asm_cfi_directives+set}" = set; then
7207 $as_echo_n "(cached) " >&6
7208 else
7209 case $machine in
7210 sparc/sparc64*) cfi_offset=2047;;
7211 *) cfi_offset=0;;
7212 esac
7213 cat > conftest.s <<EOF
7214 .text
7215 .type func,%function
7216 func:
7217 .cfi_startproc
7218 .cfi_remember_state
7219 .cfi_rel_offset 1, $cfi_offset
7220 .cfi_endproc
7222 if { ac_try='${CC-cc} $ASFLAGS -c conftest.s 1>&5'
7223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7224 (eval $ac_try) 2>&5
7225 ac_status=$?
7226 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7227 (exit $ac_status); }; }; then
7228 libc_cv_asm_cfi_directives=yes
7229 else
7230 libc_cv_asm_cfi_directives=no
7232 rm -f conftest*
7234 { $as_echo "$as_me:$LINENO: result: $libc_cv_asm_cfi_directives" >&5
7235 $as_echo "$libc_cv_asm_cfi_directives" >&6; }
7236 if test $libc_cv_asm_cfi_directives = yes; then
7237 cat >>confdefs.h <<\_ACEOF
7238 #define HAVE_ASM_CFI_DIRECTIVES 1
7239 _ACEOF
7243 { $as_echo "$as_me:$LINENO: checking for ld --no-whole-archive" >&5
7244 $as_echo_n "checking for ld --no-whole-archive... " >&6; }
7245 if test "${libc_cv_ld_no_whole_archive+set}" = set; then
7246 $as_echo_n "(cached) " >&6
7247 else
7248 cat > conftest.c <<\EOF
7249 _start () {}
7250 int __eh_pc;
7251 __throw () {}
7253 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
7254 -nostdlib -nostartfiles -Wl,--no-whole-archive
7255 -o conftest conftest.c 1>&5'
7256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7257 (eval $ac_try) 2>&5
7258 ac_status=$?
7259 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7260 (exit $ac_status); }; }; then
7261 libc_cv_ld_no_whole_archive=yes
7262 else
7263 libc_cv_ld_no_whole_archive=no
7265 rm -f conftest*
7267 { $as_echo "$as_me:$LINENO: result: $libc_cv_ld_no_whole_archive" >&5
7268 $as_echo "$libc_cv_ld_no_whole_archive" >&6; }
7269 if test $libc_cv_ld_no_whole_archive = yes; then
7270 no_whole_archive=-Wl,--no-whole-archive
7273 { $as_echo "$as_me:$LINENO: checking for gcc -fexceptions" >&5
7274 $as_echo_n "checking for gcc -fexceptions... " >&6; }
7275 if test "${libc_cv_gcc_exceptions+set}" = set; then
7276 $as_echo_n "(cached) " >&6
7277 else
7278 cat > conftest.c <<\EOF
7279 _start () {}
7280 int __eh_pc;
7281 __throw () {}
7283 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
7284 -nostdlib -nostartfiles -fexceptions
7285 -o conftest conftest.c 1>&5'
7286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7287 (eval $ac_try) 2>&5
7288 ac_status=$?
7289 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7290 (exit $ac_status); }; }; then
7291 libc_cv_gcc_exceptions=yes
7292 else
7293 libc_cv_gcc_exceptions=no
7295 rm -f conftest*
7297 { $as_echo "$as_me:$LINENO: result: $libc_cv_gcc_exceptions" >&5
7298 $as_echo "$libc_cv_gcc_exceptions" >&6; }
7299 if test $libc_cv_gcc_exceptions = yes; then
7300 exceptions=-fexceptions
7303 if test "$host_cpu" = powerpc ; then
7304 # Check for a bug present in at least versions 2.8.x of GCC
7305 # and versions 1.0.x of EGCS.
7306 { $as_echo "$as_me:$LINENO: checking whether clobbering cr0 causes problems" >&5
7307 $as_echo_n "checking whether clobbering cr0 causes problems... " >&6; }
7308 if test "${libc_cv_c_asmcr0_bug+set}" = set; then
7309 $as_echo_n "(cached) " >&6
7310 else
7311 cat >conftest.$ac_ext <<_ACEOF
7312 /* confdefs.h. */
7313 _ACEOF
7314 cat confdefs.h >>conftest.$ac_ext
7315 cat >>conftest.$ac_ext <<_ACEOF
7316 /* end confdefs.h. */
7317 int tester(int x) { asm ("" : : : "cc"); return x & 123; }
7319 main ()
7323 return 0;
7325 _ACEOF
7326 rm -f conftest.$ac_objext
7327 if { (ac_try="$ac_compile"
7328 case "(($ac_try" in
7329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7330 *) ac_try_echo=$ac_try;;
7331 esac
7332 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7333 $as_echo "$ac_try_echo") >&5
7334 (eval "$ac_compile") 2>conftest.er1
7335 ac_status=$?
7336 grep -v '^ *+' conftest.er1 >conftest.err
7337 rm -f conftest.er1
7338 cat conftest.err >&5
7339 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7340 (exit $ac_status); } && {
7341 test -z "$ac_c_werror_flag" ||
7342 test ! -s conftest.err
7343 } && test -s conftest.$ac_objext; then
7344 libc_cv_c_asmcr0_bug='no'
7345 else
7346 $as_echo "$as_me: failed program was:" >&5
7347 sed 's/^/| /' conftest.$ac_ext >&5
7349 libc_cv_c_asmcr0_bug='yes'
7352 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7354 { $as_echo "$as_me:$LINENO: result: $libc_cv_c_asmcr0_bug" >&5
7355 $as_echo "$libc_cv_c_asmcr0_bug" >&6; }
7356 if test "$libc_cv_c_asmcr0_bug" != 'no'; then
7357 cat >>confdefs.h <<\_ACEOF
7358 #define BROKEN_PPC_ASM_CR0 1
7359 _ACEOF
7364 { $as_echo "$as_me:$LINENO: checking for __builtin_expect" >&5
7365 $as_echo_n "checking for __builtin_expect... " >&6; }
7366 if test "${libc_cv_gcc_builtin_expect+set}" = set; then
7367 $as_echo_n "(cached) " >&6
7368 else
7369 cat > conftest.c <<EOF
7370 #line $LINENO "configure"
7371 int foo (int a)
7373 a = __builtin_expect (a, 10);
7374 return a == 10 ? 0 : 1;
7377 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS -nostdlib -nostartfiles
7378 -o conftest conftest.c -lgcc >&5'
7379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7380 (eval $ac_try) 2>&5
7381 ac_status=$?
7382 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7383 (exit $ac_status); }; }; then
7384 libc_cv_gcc_builtin_expect=yes
7385 else
7386 libc_cv_gcc_builtin_expect=no
7388 rm -f conftest*
7390 { $as_echo "$as_me:$LINENO: result: $libc_cv_gcc_builtin_expect" >&5
7391 $as_echo "$libc_cv_gcc_builtin_expect" >&6; }
7392 if test "$libc_cv_gcc_builtin_expect" = yes; then
7393 cat >>confdefs.h <<\_ACEOF
7394 #define HAVE_BUILTIN_EXPECT 1
7395 _ACEOF
7399 { $as_echo "$as_me:$LINENO: checking for __builtin_memset" >&5
7400 $as_echo_n "checking for __builtin_memset... " >&6; }
7401 if test "${libc_cv_gcc_builtin_memset+set}" = set; then
7402 $as_echo_n "(cached) " >&6
7403 else
7404 cat > conftest.c <<\EOF
7405 void zero (void *x)
7407 __builtin_memset (x, 0, 1000);
7410 if { ac_try='${CC-cc} -O3 -S conftest.c -o - | fgrep "memset" > /dev/null'
7411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7412 (eval $ac_try) 2>&5
7413 ac_status=$?
7414 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7415 (exit $ac_status); }; };
7416 then
7417 libc_cv_gcc_builtin_memset=no
7418 else
7419 libc_cv_gcc_builtin_memset=yes
7421 rm -f conftest*
7423 { $as_echo "$as_me:$LINENO: result: $libc_cv_gcc_builtin_memset" >&5
7424 $as_echo "$libc_cv_gcc_builtin_memset" >&6; }
7425 if test "$libc_cv_gcc_builtin_memset" = yes ; then
7426 cat >>confdefs.h <<\_ACEOF
7427 #define HAVE_BUILTIN_MEMSET 1
7428 _ACEOF
7432 { $as_echo "$as_me:$LINENO: checking for redirection of built-in functions" >&5
7433 $as_echo_n "checking for redirection of built-in functions... " >&6; }
7434 if test "${libc_cv_gcc_builtin_redirection+set}" = set; then
7435 $as_echo_n "(cached) " >&6
7436 else
7437 cat > conftest.c <<\EOF
7438 extern char *strstr (const char *, const char *) __asm ("my_strstr");
7439 char *foo (const char *a, const char *b)
7441 return __builtin_strstr (a, b);
7444 if { ac_try='${CC-cc} -O3 -S conftest.c -o - | fgrep "my_strstr" > /dev/null'
7445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7446 (eval $ac_try) 2>&5
7447 ac_status=$?
7448 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7449 (exit $ac_status); }; };
7450 then
7451 libc_cv_gcc_builtin_redirection=yes
7452 else
7453 libc_cv_gcc_builtin_redirection=no
7455 rm -f conftest*
7457 { $as_echo "$as_me:$LINENO: result: $libc_cv_gcc_builtin_redirection" >&5
7458 $as_echo "$libc_cv_gcc_builtin_redirection" >&6; }
7459 if test "$libc_cv_gcc_builtin_redirection" = yes ; then
7460 cat >>confdefs.h <<\_ACEOF
7461 #define HAVE_BUILTIN_REDIRECTION 1
7462 _ACEOF
7466 if test "x$use__thread" != xno; then
7467 { $as_echo "$as_me:$LINENO: checking for __thread" >&5
7468 $as_echo_n "checking for __thread... " >&6; }
7469 if test "${libc_cv_gcc___thread+set}" = set; then
7470 $as_echo_n "(cached) " >&6
7471 else
7472 cat > conftest.c <<\EOF
7473 __thread int a = 42;
7475 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -c conftest.c >&5'
7476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7477 (eval $ac_try) 2>&5
7478 ac_status=$?
7479 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7480 (exit $ac_status); }; }; then
7481 libc_cv_gcc___thread=yes
7482 else
7483 libc_cv_gcc___thread=no
7485 rm -f conftest*
7487 { $as_echo "$as_me:$LINENO: result: $libc_cv_gcc___thread" >&5
7488 $as_echo "$libc_cv_gcc___thread" >&6; }
7489 if test "$libc_cv_gcc___thread" = yes; then
7490 cat >>confdefs.h <<\_ACEOF
7491 #define HAVE___THREAD 1
7492 _ACEOF
7495 else
7496 libc_cv_gcc___thread=no
7499 if test "$libc_cv_gcc___thread" = yes; then
7500 { $as_echo "$as_me:$LINENO: checking for tls_model attribute" >&5
7501 $as_echo_n "checking for tls_model attribute... " >&6; }
7502 if test "${libc_cv_gcc_tls_model_attr+set}" = set; then
7503 $as_echo_n "(cached) " >&6
7504 else
7505 cat > conftest.c <<\EOF
7506 extern __thread int a __attribute__((tls_model ("initial-exec")));
7508 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -S -Werror conftest.c >&5'
7509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7510 (eval $ac_try) 2>&5
7511 ac_status=$?
7512 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7513 (exit $ac_status); }; }; then
7514 libc_cv_gcc_tls_model_attr=yes
7515 else
7516 libc_cv_gcc_tls_model_attr=no
7518 rm -f conftest*
7520 { $as_echo "$as_me:$LINENO: result: $libc_cv_gcc_tls_model_attr" >&5
7521 $as_echo "$libc_cv_gcc_tls_model_attr" >&6; }
7522 if test "$libc_cv_gcc_tls_model_attr" = yes; then
7523 cat >>confdefs.h <<\_ACEOF
7524 #define HAVE_TLS_MODEL_ATTRIBUTE 1
7525 _ACEOF
7530 if test -n "$submachine"; then
7531 { $as_echo "$as_me:$LINENO: checking for compiler option for CPU variant" >&5
7532 $as_echo_n "checking for compiler option for CPU variant... " >&6; }
7533 if test "${libc_cv_cc_submachine+set}" = set; then
7534 $as_echo_n "(cached) " >&6
7535 else
7536 libc_cv_cc_submachine=no
7537 for opt in "-march=$submachine" "-mcpu=$submachine"; do
7538 if { ac_try='${CC-cc} $opt -xc /dev/null -S -o /dev/null'
7539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7540 (eval $ac_try) 2>&5
7541 ac_status=$?
7542 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7543 (exit $ac_status); }; }; then
7544 libc_cv_cc_submachine="$opt"
7545 break
7547 done
7549 { $as_echo "$as_me:$LINENO: result: $libc_cv_cc_submachine" >&5
7550 $as_echo "$libc_cv_cc_submachine" >&6; }
7551 if test "x$libc_cv_cc_submachine" = xno; then
7552 { { $as_echo "$as_me:$LINENO: error: ${CC-cc} does not support $submachine" >&5
7553 $as_echo "$as_me: error: ${CC-cc} does not support $submachine" >&2;}
7554 { (exit 1); exit 1; }; }
7559 { $as_echo "$as_me:$LINENO: checking for libgd" >&5
7560 $as_echo_n "checking for libgd... " >&6; }
7561 if test "$with_gd" != "no"; then
7562 old_CFLAGS="$CFLAGS"
7563 CFLAGS="$CFLAGS $libgd_include"
7564 old_LDFLAGS="$LDFLAGS"
7565 LDFLAGS="$LDFLAGS $libgd_ldflags"
7566 old_LIBS="$LIBS"
7567 LIBS="$LIBS -lgd -lpng -lz -lm"
7568 cat >conftest.$ac_ext <<_ACEOF
7569 /* confdefs.h. */
7570 _ACEOF
7571 cat confdefs.h >>conftest.$ac_ext
7572 cat >>conftest.$ac_ext <<_ACEOF
7573 /* end confdefs.h. */
7574 #include <gd.h>
7576 main ()
7578 gdImagePng (0, 0)
7580 return 0;
7582 _ACEOF
7583 rm -f conftest.$ac_objext conftest$ac_exeext
7584 if { (ac_try="$ac_link"
7585 case "(($ac_try" in
7586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7587 *) ac_try_echo=$ac_try;;
7588 esac
7589 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7590 $as_echo "$ac_try_echo") >&5
7591 (eval "$ac_link") 2>conftest.er1
7592 ac_status=$?
7593 grep -v '^ *+' conftest.er1 >conftest.err
7594 rm -f conftest.er1
7595 cat conftest.err >&5
7596 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7597 (exit $ac_status); } && {
7598 test -z "$ac_c_werror_flag" ||
7599 test ! -s conftest.err
7600 } && test -s conftest$ac_exeext && {
7601 test "$cross_compiling" = yes ||
7602 $as_test_x conftest$ac_exeext
7603 }; then
7604 LIBGD=yes
7605 else
7606 $as_echo "$as_me: failed program was:" >&5
7607 sed 's/^/| /' conftest.$ac_ext >&5
7609 LIBGD=no
7612 rm -rf conftest.dSYM
7613 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7614 conftest$ac_exeext conftest.$ac_ext
7615 CFLAGS="$old_CFLAGS"
7616 LDFLAGS="$old_LDFLAGS"
7617 LIBS="$old_LIBS"
7618 else
7619 LIBGD=no
7621 { $as_echo "$as_me:$LINENO: result: $LIBGD" >&5
7622 $as_echo "$LIBGD" >&6; }
7625 # SELinux detection
7626 if test x$with_selinux = xno ; then
7627 have_selinux=no;
7628 else
7629 # See if we have the SELinux library
7630 { $as_echo "$as_me:$LINENO: checking for is_selinux_enabled in -lselinux" >&5
7631 $as_echo_n "checking for is_selinux_enabled in -lselinux... " >&6; }
7632 if test "${ac_cv_lib_selinux_is_selinux_enabled+set}" = set; then
7633 $as_echo_n "(cached) " >&6
7634 else
7635 ac_check_lib_save_LIBS=$LIBS
7636 LIBS="-lselinux $LIBS"
7637 cat >conftest.$ac_ext <<_ACEOF
7638 /* confdefs.h. */
7639 _ACEOF
7640 cat confdefs.h >>conftest.$ac_ext
7641 cat >>conftest.$ac_ext <<_ACEOF
7642 /* end confdefs.h. */
7644 /* Override any GCC internal prototype to avoid an error.
7645 Use char because int might match the return type of a GCC
7646 builtin and then its argument prototype would still apply. */
7647 #ifdef __cplusplus
7648 extern "C"
7649 #endif
7650 char is_selinux_enabled ();
7652 main ()
7654 return is_selinux_enabled ();
7656 return 0;
7658 _ACEOF
7659 rm -f conftest.$ac_objext conftest$ac_exeext
7660 if { (ac_try="$ac_link"
7661 case "(($ac_try" in
7662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7663 *) ac_try_echo=$ac_try;;
7664 esac
7665 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7666 $as_echo "$ac_try_echo") >&5
7667 (eval "$ac_link") 2>conftest.er1
7668 ac_status=$?
7669 grep -v '^ *+' conftest.er1 >conftest.err
7670 rm -f conftest.er1
7671 cat conftest.err >&5
7672 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7673 (exit $ac_status); } && {
7674 test -z "$ac_c_werror_flag" ||
7675 test ! -s conftest.err
7676 } && test -s conftest$ac_exeext && {
7677 test "$cross_compiling" = yes ||
7678 $as_test_x conftest$ac_exeext
7679 }; then
7680 ac_cv_lib_selinux_is_selinux_enabled=yes
7681 else
7682 $as_echo "$as_me: failed program was:" >&5
7683 sed 's/^/| /' conftest.$ac_ext >&5
7685 ac_cv_lib_selinux_is_selinux_enabled=no
7688 rm -rf conftest.dSYM
7689 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7690 conftest$ac_exeext conftest.$ac_ext
7691 LIBS=$ac_check_lib_save_LIBS
7693 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5
7694 $as_echo "$ac_cv_lib_selinux_is_selinux_enabled" >&6; }
7695 if test "x$ac_cv_lib_selinux_is_selinux_enabled" = x""yes; then
7696 have_selinux=yes
7697 else
7698 have_selinux=no
7701 # See if we have the SELinux header with the NSCD permissions in it.
7702 if test x$have_selinux = xyes ; then
7703 { $as_echo "$as_me:$LINENO: checking for NSCD Flask permissions in selinux/av_permissions.h" >&5
7704 $as_echo_n "checking for NSCD Flask permissions in selinux/av_permissions.h... " >&6; }
7705 cat >conftest.$ac_ext <<_ACEOF
7706 /* confdefs.h. */
7707 _ACEOF
7708 cat confdefs.h >>conftest.$ac_ext
7709 cat >>conftest.$ac_ext <<_ACEOF
7710 /* end confdefs.h. */
7711 #include <selinux/av_permissions.h>
7713 main ()
7715 #ifdef NSCD__SHMEMHOST
7716 return 0;
7717 #else
7718 #error NSCD__SHMEMHOST not defined
7719 #endif
7721 return 0;
7723 _ACEOF
7724 rm -f conftest.$ac_objext
7725 if { (ac_try="$ac_compile"
7726 case "(($ac_try" in
7727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7728 *) ac_try_echo=$ac_try;;
7729 esac
7730 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7731 $as_echo "$ac_try_echo") >&5
7732 (eval "$ac_compile") 2>conftest.er1
7733 ac_status=$?
7734 grep -v '^ *+' conftest.er1 >conftest.err
7735 rm -f conftest.er1
7736 cat conftest.err >&5
7737 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7738 (exit $ac_status); } && {
7739 test -z "$ac_c_werror_flag" ||
7740 test ! -s conftest.err
7741 } && test -s conftest.$ac_objext; then
7742 have_selinux=yes
7743 else
7744 $as_echo "$as_me: failed program was:" >&5
7745 sed 's/^/| /' conftest.$ac_ext >&5
7747 have_selinux=no
7750 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7751 { $as_echo "$as_me:$LINENO: result: $have_selinux" >&5
7752 $as_echo "$have_selinux" >&6; }
7755 if test x$with_selinux = xyes ; then
7756 if test x$have_selinux = xno ; then
7757 { { $as_echo "$as_me:$LINENO: error: SELinux explicitly required, but sufficiently recent SELinux library not found" >&5
7758 $as_echo "$as_me: error: SELinux explicitly required, but sufficiently recent SELinux library not found" >&2;}
7759 { (exit 1); exit 1; }; }
7763 # Check if we're building with SELinux support.
7764 if test "x$have_selinux" = xyes; then
7766 cat >>confdefs.h <<\_ACEOF
7767 #define HAVE_SELINUX 1
7768 _ACEOF
7771 # See if we have the libaudit library
7772 { $as_echo "$as_me:$LINENO: checking for audit_log_user_avc_message in -laudit" >&5
7773 $as_echo_n "checking for audit_log_user_avc_message in -laudit... " >&6; }
7774 if test "${ac_cv_lib_audit_audit_log_user_avc_message+set}" = set; then
7775 $as_echo_n "(cached) " >&6
7776 else
7777 ac_check_lib_save_LIBS=$LIBS
7778 LIBS="-laudit $LIBS"
7779 cat >conftest.$ac_ext <<_ACEOF
7780 /* confdefs.h. */
7781 _ACEOF
7782 cat confdefs.h >>conftest.$ac_ext
7783 cat >>conftest.$ac_ext <<_ACEOF
7784 /* end confdefs.h. */
7786 /* Override any GCC internal prototype to avoid an error.
7787 Use char because int might match the return type of a GCC
7788 builtin and then its argument prototype would still apply. */
7789 #ifdef __cplusplus
7790 extern "C"
7791 #endif
7792 char audit_log_user_avc_message ();
7794 main ()
7796 return audit_log_user_avc_message ();
7798 return 0;
7800 _ACEOF
7801 rm -f conftest.$ac_objext conftest$ac_exeext
7802 if { (ac_try="$ac_link"
7803 case "(($ac_try" in
7804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7805 *) ac_try_echo=$ac_try;;
7806 esac
7807 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7808 $as_echo "$ac_try_echo") >&5
7809 (eval "$ac_link") 2>conftest.er1
7810 ac_status=$?
7811 grep -v '^ *+' conftest.er1 >conftest.err
7812 rm -f conftest.er1
7813 cat conftest.err >&5
7814 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7815 (exit $ac_status); } && {
7816 test -z "$ac_c_werror_flag" ||
7817 test ! -s conftest.err
7818 } && test -s conftest$ac_exeext && {
7819 test "$cross_compiling" = yes ||
7820 $as_test_x conftest$ac_exeext
7821 }; then
7822 ac_cv_lib_audit_audit_log_user_avc_message=yes
7823 else
7824 $as_echo "$as_me: failed program was:" >&5
7825 sed 's/^/| /' conftest.$ac_ext >&5
7827 ac_cv_lib_audit_audit_log_user_avc_message=no
7830 rm -rf conftest.dSYM
7831 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7832 conftest$ac_exeext conftest.$ac_ext
7833 LIBS=$ac_check_lib_save_LIBS
7835 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_audit_audit_log_user_avc_message" >&5
7836 $as_echo "$ac_cv_lib_audit_audit_log_user_avc_message" >&6; }
7837 if test "x$ac_cv_lib_audit_audit_log_user_avc_message" = x""yes; then
7838 have_libaudit=yes
7839 else
7840 have_libaudit=no
7843 if test "x$have_libaudit" = xyes; then
7845 cat >>confdefs.h <<\_ACEOF
7846 #define HAVE_LIBAUDIT 1
7847 _ACEOF
7852 # See if we have the libcap library
7853 { $as_echo "$as_me:$LINENO: checking for cap_init in -lcap" >&5
7854 $as_echo_n "checking for cap_init in -lcap... " >&6; }
7855 if test "${ac_cv_lib_cap_cap_init+set}" = set; then
7856 $as_echo_n "(cached) " >&6
7857 else
7858 ac_check_lib_save_LIBS=$LIBS
7859 LIBS="-lcap $LIBS"
7860 cat >conftest.$ac_ext <<_ACEOF
7861 /* confdefs.h. */
7862 _ACEOF
7863 cat confdefs.h >>conftest.$ac_ext
7864 cat >>conftest.$ac_ext <<_ACEOF
7865 /* end confdefs.h. */
7867 /* Override any GCC internal prototype to avoid an error.
7868 Use char because int might match the return type of a GCC
7869 builtin and then its argument prototype would still apply. */
7870 #ifdef __cplusplus
7871 extern "C"
7872 #endif
7873 char cap_init ();
7875 main ()
7877 return cap_init ();
7879 return 0;
7881 _ACEOF
7882 rm -f conftest.$ac_objext conftest$ac_exeext
7883 if { (ac_try="$ac_link"
7884 case "(($ac_try" in
7885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7886 *) ac_try_echo=$ac_try;;
7887 esac
7888 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7889 $as_echo "$ac_try_echo") >&5
7890 (eval "$ac_link") 2>conftest.er1
7891 ac_status=$?
7892 grep -v '^ *+' conftest.er1 >conftest.err
7893 rm -f conftest.er1
7894 cat conftest.err >&5
7895 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7896 (exit $ac_status); } && {
7897 test -z "$ac_c_werror_flag" ||
7898 test ! -s conftest.err
7899 } && test -s conftest$ac_exeext && {
7900 test "$cross_compiling" = yes ||
7901 $as_test_x conftest$ac_exeext
7902 }; then
7903 ac_cv_lib_cap_cap_init=yes
7904 else
7905 $as_echo "$as_me: failed program was:" >&5
7906 sed 's/^/| /' conftest.$ac_ext >&5
7908 ac_cv_lib_cap_cap_init=no
7911 rm -rf conftest.dSYM
7912 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7913 conftest$ac_exeext conftest.$ac_ext
7914 LIBS=$ac_check_lib_save_LIBS
7916 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_cap_cap_init" >&5
7917 $as_echo "$ac_cv_lib_cap_cap_init" >&6; }
7918 if test "x$ac_cv_lib_cap_cap_init" = x""yes; then
7919 have_libcap=yes
7920 else
7921 have_libcap=no
7924 if test "x$have_libcap" = xyes; then
7926 cat >>confdefs.h <<\_ACEOF
7927 #define HAVE_LIBCAP 1
7928 _ACEOF
7936 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
7937 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
7938 if test "${ac_cv_path_GREP+set}" = set; then
7939 $as_echo_n "(cached) " >&6
7940 else
7941 if test -z "$GREP"; then
7942 ac_path_GREP_found=false
7943 # Loop through the user's path and test for each of PROGNAME-LIST
7944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7945 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7947 IFS=$as_save_IFS
7948 test -z "$as_dir" && as_dir=.
7949 for ac_prog in grep ggrep; do
7950 for ac_exec_ext in '' $ac_executable_extensions; do
7951 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
7952 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
7953 # Check for GNU ac_path_GREP and select it if it is found.
7954 # Check for GNU $ac_path_GREP
7955 case `"$ac_path_GREP" --version 2>&1` in
7956 *GNU*)
7957 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
7959 ac_count=0
7960 $as_echo_n 0123456789 >"conftest.in"
7961 while :
7963 cat "conftest.in" "conftest.in" >"conftest.tmp"
7964 mv "conftest.tmp" "conftest.in"
7965 cp "conftest.in" "conftest.nl"
7966 $as_echo 'GREP' >> "conftest.nl"
7967 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7968 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7969 ac_count=`expr $ac_count + 1`
7970 if test $ac_count -gt ${ac_path_GREP_max-0}; then
7971 # Best one so far, save it but keep looking for a better one
7972 ac_cv_path_GREP="$ac_path_GREP"
7973 ac_path_GREP_max=$ac_count
7975 # 10*(2^10) chars as input seems more than enough
7976 test $ac_count -gt 10 && break
7977 done
7978 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7979 esac
7981 $ac_path_GREP_found && break 3
7982 done
7983 done
7984 done
7985 IFS=$as_save_IFS
7986 if test -z "$ac_cv_path_GREP"; then
7987 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
7988 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
7989 { (exit 1); exit 1; }; }
7991 else
7992 ac_cv_path_GREP=$GREP
7996 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
7997 $as_echo "$ac_cv_path_GREP" >&6; }
7998 GREP="$ac_cv_path_GREP"
8001 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
8002 $as_echo_n "checking for egrep... " >&6; }
8003 if test "${ac_cv_path_EGREP+set}" = set; then
8004 $as_echo_n "(cached) " >&6
8005 else
8006 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
8007 then ac_cv_path_EGREP="$GREP -E"
8008 else
8009 if test -z "$EGREP"; then
8010 ac_path_EGREP_found=false
8011 # Loop through the user's path and test for each of PROGNAME-LIST
8012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8013 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
8015 IFS=$as_save_IFS
8016 test -z "$as_dir" && as_dir=.
8017 for ac_prog in egrep; do
8018 for ac_exec_ext in '' $ac_executable_extensions; do
8019 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
8020 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
8021 # Check for GNU ac_path_EGREP and select it if it is found.
8022 # Check for GNU $ac_path_EGREP
8023 case `"$ac_path_EGREP" --version 2>&1` in
8024 *GNU*)
8025 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
8027 ac_count=0
8028 $as_echo_n 0123456789 >"conftest.in"
8029 while :
8031 cat "conftest.in" "conftest.in" >"conftest.tmp"
8032 mv "conftest.tmp" "conftest.in"
8033 cp "conftest.in" "conftest.nl"
8034 $as_echo 'EGREP' >> "conftest.nl"
8035 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
8036 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
8037 ac_count=`expr $ac_count + 1`
8038 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
8039 # Best one so far, save it but keep looking for a better one
8040 ac_cv_path_EGREP="$ac_path_EGREP"
8041 ac_path_EGREP_max=$ac_count
8043 # 10*(2^10) chars as input seems more than enough
8044 test $ac_count -gt 10 && break
8045 done
8046 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
8047 esac
8049 $ac_path_EGREP_found && break 3
8050 done
8051 done
8052 done
8053 IFS=$as_save_IFS
8054 if test -z "$ac_cv_path_EGREP"; then
8055 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
8056 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
8057 { (exit 1); exit 1; }; }
8059 else
8060 ac_cv_path_EGREP=$EGREP
8065 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
8066 $as_echo "$ac_cv_path_EGREP" >&6; }
8067 EGREP="$ac_cv_path_EGREP"
8070 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
8071 $as_echo_n "checking for ANSI C header files... " >&6; }
8072 if test "${ac_cv_header_stdc+set}" = set; then
8073 $as_echo_n "(cached) " >&6
8074 else
8075 cat >conftest.$ac_ext <<_ACEOF
8076 /* confdefs.h. */
8077 _ACEOF
8078 cat confdefs.h >>conftest.$ac_ext
8079 cat >>conftest.$ac_ext <<_ACEOF
8080 /* end confdefs.h. */
8081 #include <stdlib.h>
8082 #include <stdarg.h>
8083 #include <string.h>
8084 #include <float.h>
8087 main ()
8091 return 0;
8093 _ACEOF
8094 rm -f conftest.$ac_objext
8095 if { (ac_try="$ac_compile"
8096 case "(($ac_try" in
8097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8098 *) ac_try_echo=$ac_try;;
8099 esac
8100 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8101 $as_echo "$ac_try_echo") >&5
8102 (eval "$ac_compile") 2>conftest.er1
8103 ac_status=$?
8104 grep -v '^ *+' conftest.er1 >conftest.err
8105 rm -f conftest.er1
8106 cat conftest.err >&5
8107 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8108 (exit $ac_status); } && {
8109 test -z "$ac_c_werror_flag" ||
8110 test ! -s conftest.err
8111 } && test -s conftest.$ac_objext; then
8112 ac_cv_header_stdc=yes
8113 else
8114 $as_echo "$as_me: failed program was:" >&5
8115 sed 's/^/| /' conftest.$ac_ext >&5
8117 ac_cv_header_stdc=no
8120 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8122 if test $ac_cv_header_stdc = yes; then
8123 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8124 cat >conftest.$ac_ext <<_ACEOF
8125 /* confdefs.h. */
8126 _ACEOF
8127 cat confdefs.h >>conftest.$ac_ext
8128 cat >>conftest.$ac_ext <<_ACEOF
8129 /* end confdefs.h. */
8130 #include <string.h>
8132 _ACEOF
8133 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8134 $EGREP "memchr" >/dev/null 2>&1; then
8136 else
8137 ac_cv_header_stdc=no
8139 rm -f conftest*
8143 if test $ac_cv_header_stdc = yes; then
8144 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8145 cat >conftest.$ac_ext <<_ACEOF
8146 /* confdefs.h. */
8147 _ACEOF
8148 cat confdefs.h >>conftest.$ac_ext
8149 cat >>conftest.$ac_ext <<_ACEOF
8150 /* end confdefs.h. */
8151 #include <stdlib.h>
8153 _ACEOF
8154 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8155 $EGREP "free" >/dev/null 2>&1; then
8157 else
8158 ac_cv_header_stdc=no
8160 rm -f conftest*
8164 if test $ac_cv_header_stdc = yes; then
8165 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8166 if test "$cross_compiling" = yes; then
8168 else
8169 cat >conftest.$ac_ext <<_ACEOF
8170 /* confdefs.h. */
8171 _ACEOF
8172 cat confdefs.h >>conftest.$ac_ext
8173 cat >>conftest.$ac_ext <<_ACEOF
8174 /* end confdefs.h. */
8175 #include <ctype.h>
8176 #include <stdlib.h>
8177 #if ((' ' & 0x0FF) == 0x020)
8178 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8179 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8180 #else
8181 # define ISLOWER(c) \
8182 (('a' <= (c) && (c) <= 'i') \
8183 || ('j' <= (c) && (c) <= 'r') \
8184 || ('s' <= (c) && (c) <= 'z'))
8185 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8186 #endif
8188 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8190 main ()
8192 int i;
8193 for (i = 0; i < 256; i++)
8194 if (XOR (islower (i), ISLOWER (i))
8195 || toupper (i) != TOUPPER (i))
8196 return 2;
8197 return 0;
8199 _ACEOF
8200 rm -f conftest$ac_exeext
8201 if { (ac_try="$ac_link"
8202 case "(($ac_try" in
8203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8204 *) ac_try_echo=$ac_try;;
8205 esac
8206 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8207 $as_echo "$ac_try_echo") >&5
8208 (eval "$ac_link") 2>&5
8209 ac_status=$?
8210 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8211 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8212 { (case "(($ac_try" in
8213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8214 *) ac_try_echo=$ac_try;;
8215 esac
8216 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8217 $as_echo "$ac_try_echo") >&5
8218 (eval "$ac_try") 2>&5
8219 ac_status=$?
8220 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8221 (exit $ac_status); }; }; then
8223 else
8224 $as_echo "$as_me: program exited with status $ac_status" >&5
8225 $as_echo "$as_me: failed program was:" >&5
8226 sed 's/^/| /' conftest.$ac_ext >&5
8228 ( exit $ac_status )
8229 ac_cv_header_stdc=no
8231 rm -rf conftest.dSYM
8232 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8238 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8239 $as_echo "$ac_cv_header_stdc" >&6; }
8240 if test $ac_cv_header_stdc = yes; then
8242 cat >>confdefs.h <<\_ACEOF
8243 #define STDC_HEADERS 1
8244 _ACEOF
8248 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8258 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8259 inttypes.h stdint.h unistd.h
8261 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8262 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8263 $as_echo_n "checking for $ac_header... " >&6; }
8264 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8265 $as_echo_n "(cached) " >&6
8266 else
8267 cat >conftest.$ac_ext <<_ACEOF
8268 /* confdefs.h. */
8269 _ACEOF
8270 cat confdefs.h >>conftest.$ac_ext
8271 cat >>conftest.$ac_ext <<_ACEOF
8272 /* end confdefs.h. */
8273 $ac_includes_default
8275 #include <$ac_header>
8276 _ACEOF
8277 rm -f conftest.$ac_objext
8278 if { (ac_try="$ac_compile"
8279 case "(($ac_try" in
8280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8281 *) ac_try_echo=$ac_try;;
8282 esac
8283 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8284 $as_echo "$ac_try_echo") >&5
8285 (eval "$ac_compile") 2>conftest.er1
8286 ac_status=$?
8287 grep -v '^ *+' conftest.er1 >conftest.err
8288 rm -f conftest.er1
8289 cat conftest.err >&5
8290 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8291 (exit $ac_status); } && {
8292 test -z "$ac_c_werror_flag" ||
8293 test ! -s conftest.err
8294 } && test -s conftest.$ac_objext; then
8295 eval "$as_ac_Header=yes"
8296 else
8297 $as_echo "$as_me: failed program was:" >&5
8298 sed 's/^/| /' conftest.$ac_ext >&5
8300 eval "$as_ac_Header=no"
8303 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8305 ac_res=`eval 'as_val=${'$as_ac_Header'}
8306 $as_echo "$as_val"'`
8307 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8308 $as_echo "$ac_res" >&6; }
8309 as_val=`eval 'as_val=${'$as_ac_Header'}
8310 $as_echo "$as_val"'`
8311 if test "x$as_val" = x""yes; then
8312 cat >>confdefs.h <<_ACEOF
8313 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8314 _ACEOF
8318 done
8321 # The cast to long int works around a bug in the HP C Compiler
8322 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8323 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8324 # This bug is HP SR number 8606223364.
8325 { $as_echo "$as_me:$LINENO: checking size of long double" >&5
8326 $as_echo_n "checking size of long double... " >&6; }
8327 if test "${ac_cv_sizeof_long_double+set}" = set; then
8328 $as_echo_n "(cached) " >&6
8329 else
8330 if test "$cross_compiling" = yes; then
8331 # Depending upon the size, compute the lo and hi bounds.
8332 cat >conftest.$ac_ext <<_ACEOF
8333 /* confdefs.h. */
8334 _ACEOF
8335 cat confdefs.h >>conftest.$ac_ext
8336 cat >>conftest.$ac_ext <<_ACEOF
8337 /* end confdefs.h. */
8338 $ac_includes_default
8340 main ()
8342 static int test_array [1 - 2 * !(((long int) (sizeof (long double))) >= 0)];
8343 test_array [0] = 0
8346 return 0;
8348 _ACEOF
8349 rm -f conftest.$ac_objext
8350 if { (ac_try="$ac_compile"
8351 case "(($ac_try" in
8352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8353 *) ac_try_echo=$ac_try;;
8354 esac
8355 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8356 $as_echo "$ac_try_echo") >&5
8357 (eval "$ac_compile") 2>conftest.er1
8358 ac_status=$?
8359 grep -v '^ *+' conftest.er1 >conftest.err
8360 rm -f conftest.er1
8361 cat conftest.err >&5
8362 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8363 (exit $ac_status); } && {
8364 test -z "$ac_c_werror_flag" ||
8365 test ! -s conftest.err
8366 } && test -s conftest.$ac_objext; then
8367 ac_lo=0 ac_mid=0
8368 while :; do
8369 cat >conftest.$ac_ext <<_ACEOF
8370 /* confdefs.h. */
8371 _ACEOF
8372 cat confdefs.h >>conftest.$ac_ext
8373 cat >>conftest.$ac_ext <<_ACEOF
8374 /* end confdefs.h. */
8375 $ac_includes_default
8377 main ()
8379 static int test_array [1 - 2 * !(((long int) (sizeof (long double))) <= $ac_mid)];
8380 test_array [0] = 0
8383 return 0;
8385 _ACEOF
8386 rm -f conftest.$ac_objext
8387 if { (ac_try="$ac_compile"
8388 case "(($ac_try" in
8389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8390 *) ac_try_echo=$ac_try;;
8391 esac
8392 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8393 $as_echo "$ac_try_echo") >&5
8394 (eval "$ac_compile") 2>conftest.er1
8395 ac_status=$?
8396 grep -v '^ *+' conftest.er1 >conftest.err
8397 rm -f conftest.er1
8398 cat conftest.err >&5
8399 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8400 (exit $ac_status); } && {
8401 test -z "$ac_c_werror_flag" ||
8402 test ! -s conftest.err
8403 } && test -s conftest.$ac_objext; then
8404 ac_hi=$ac_mid; break
8405 else
8406 $as_echo "$as_me: failed program was:" >&5
8407 sed 's/^/| /' conftest.$ac_ext >&5
8409 ac_lo=`expr $ac_mid + 1`
8410 if test $ac_lo -le $ac_mid; then
8411 ac_lo= ac_hi=
8412 break
8414 ac_mid=`expr 2 '*' $ac_mid + 1`
8417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8418 done
8419 else
8420 $as_echo "$as_me: failed program was:" >&5
8421 sed 's/^/| /' conftest.$ac_ext >&5
8423 cat >conftest.$ac_ext <<_ACEOF
8424 /* confdefs.h. */
8425 _ACEOF
8426 cat confdefs.h >>conftest.$ac_ext
8427 cat >>conftest.$ac_ext <<_ACEOF
8428 /* end confdefs.h. */
8429 $ac_includes_default
8431 main ()
8433 static int test_array [1 - 2 * !(((long int) (sizeof (long double))) < 0)];
8434 test_array [0] = 0
8437 return 0;
8439 _ACEOF
8440 rm -f conftest.$ac_objext
8441 if { (ac_try="$ac_compile"
8442 case "(($ac_try" in
8443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8444 *) ac_try_echo=$ac_try;;
8445 esac
8446 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8447 $as_echo "$ac_try_echo") >&5
8448 (eval "$ac_compile") 2>conftest.er1
8449 ac_status=$?
8450 grep -v '^ *+' conftest.er1 >conftest.err
8451 rm -f conftest.er1
8452 cat conftest.err >&5
8453 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8454 (exit $ac_status); } && {
8455 test -z "$ac_c_werror_flag" ||
8456 test ! -s conftest.err
8457 } && test -s conftest.$ac_objext; then
8458 ac_hi=-1 ac_mid=-1
8459 while :; do
8460 cat >conftest.$ac_ext <<_ACEOF
8461 /* confdefs.h. */
8462 _ACEOF
8463 cat confdefs.h >>conftest.$ac_ext
8464 cat >>conftest.$ac_ext <<_ACEOF
8465 /* end confdefs.h. */
8466 $ac_includes_default
8468 main ()
8470 static int test_array [1 - 2 * !(((long int) (sizeof (long double))) >= $ac_mid)];
8471 test_array [0] = 0
8474 return 0;
8476 _ACEOF
8477 rm -f conftest.$ac_objext
8478 if { (ac_try="$ac_compile"
8479 case "(($ac_try" in
8480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8481 *) ac_try_echo=$ac_try;;
8482 esac
8483 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8484 $as_echo "$ac_try_echo") >&5
8485 (eval "$ac_compile") 2>conftest.er1
8486 ac_status=$?
8487 grep -v '^ *+' conftest.er1 >conftest.err
8488 rm -f conftest.er1
8489 cat conftest.err >&5
8490 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8491 (exit $ac_status); } && {
8492 test -z "$ac_c_werror_flag" ||
8493 test ! -s conftest.err
8494 } && test -s conftest.$ac_objext; then
8495 ac_lo=$ac_mid; break
8496 else
8497 $as_echo "$as_me: failed program was:" >&5
8498 sed 's/^/| /' conftest.$ac_ext >&5
8500 ac_hi=`expr '(' $ac_mid ')' - 1`
8501 if test $ac_mid -le $ac_hi; then
8502 ac_lo= ac_hi=
8503 break
8505 ac_mid=`expr 2 '*' $ac_mid`
8508 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8509 done
8510 else
8511 $as_echo "$as_me: failed program was:" >&5
8512 sed 's/^/| /' conftest.$ac_ext >&5
8514 ac_lo= ac_hi=
8517 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8520 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8521 # Binary search between lo and hi bounds.
8522 while test "x$ac_lo" != "x$ac_hi"; do
8523 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8524 cat >conftest.$ac_ext <<_ACEOF
8525 /* confdefs.h. */
8526 _ACEOF
8527 cat confdefs.h >>conftest.$ac_ext
8528 cat >>conftest.$ac_ext <<_ACEOF
8529 /* end confdefs.h. */
8530 $ac_includes_default
8532 main ()
8534 static int test_array [1 - 2 * !(((long int) (sizeof (long double))) <= $ac_mid)];
8535 test_array [0] = 0
8538 return 0;
8540 _ACEOF
8541 rm -f conftest.$ac_objext
8542 if { (ac_try="$ac_compile"
8543 case "(($ac_try" in
8544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8545 *) ac_try_echo=$ac_try;;
8546 esac
8547 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8548 $as_echo "$ac_try_echo") >&5
8549 (eval "$ac_compile") 2>conftest.er1
8550 ac_status=$?
8551 grep -v '^ *+' conftest.er1 >conftest.err
8552 rm -f conftest.er1
8553 cat conftest.err >&5
8554 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8555 (exit $ac_status); } && {
8556 test -z "$ac_c_werror_flag" ||
8557 test ! -s conftest.err
8558 } && test -s conftest.$ac_objext; then
8559 ac_hi=$ac_mid
8560 else
8561 $as_echo "$as_me: failed program was:" >&5
8562 sed 's/^/| /' conftest.$ac_ext >&5
8564 ac_lo=`expr '(' $ac_mid ')' + 1`
8567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8568 done
8569 case $ac_lo in
8570 ?*) ac_cv_sizeof_long_double=$ac_lo;;
8571 '') if test "$ac_cv_type_long_double" = yes; then
8572 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
8573 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8574 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long double)
8575 See \`config.log' for more details." >&5
8576 $as_echo "$as_me: error: cannot compute sizeof (long double)
8577 See \`config.log' for more details." >&2;}
8578 { (exit 77); exit 77; }; }; }
8579 else
8580 ac_cv_sizeof_long_double=0
8581 fi ;;
8582 esac
8583 else
8584 cat >conftest.$ac_ext <<_ACEOF
8585 /* confdefs.h. */
8586 _ACEOF
8587 cat confdefs.h >>conftest.$ac_ext
8588 cat >>conftest.$ac_ext <<_ACEOF
8589 /* end confdefs.h. */
8590 $ac_includes_default
8591 static long int longval () { return (long int) (sizeof (long double)); }
8592 static unsigned long int ulongval () { return (long int) (sizeof (long double)); }
8593 #include <stdio.h>
8594 #include <stdlib.h>
8596 main ()
8599 FILE *f = fopen ("conftest.val", "w");
8600 if (! f)
8601 return 1;
8602 if (((long int) (sizeof (long double))) < 0)
8604 long int i = longval ();
8605 if (i != ((long int) (sizeof (long double))))
8606 return 1;
8607 fprintf (f, "%ld", i);
8609 else
8611 unsigned long int i = ulongval ();
8612 if (i != ((long int) (sizeof (long double))))
8613 return 1;
8614 fprintf (f, "%lu", i);
8616 /* Do not output a trailing newline, as this causes \r\n confusion
8617 on some platforms. */
8618 return ferror (f) || fclose (f) != 0;
8621 return 0;
8623 _ACEOF
8624 rm -f conftest$ac_exeext
8625 if { (ac_try="$ac_link"
8626 case "(($ac_try" in
8627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8628 *) ac_try_echo=$ac_try;;
8629 esac
8630 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8631 $as_echo "$ac_try_echo") >&5
8632 (eval "$ac_link") 2>&5
8633 ac_status=$?
8634 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8635 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8636 { (case "(($ac_try" in
8637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8638 *) ac_try_echo=$ac_try;;
8639 esac
8640 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8641 $as_echo "$ac_try_echo") >&5
8642 (eval "$ac_try") 2>&5
8643 ac_status=$?
8644 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8645 (exit $ac_status); }; }; then
8646 ac_cv_sizeof_long_double=`cat conftest.val`
8647 else
8648 $as_echo "$as_me: program exited with status $ac_status" >&5
8649 $as_echo "$as_me: failed program was:" >&5
8650 sed 's/^/| /' conftest.$ac_ext >&5
8652 ( exit $ac_status )
8653 if test "$ac_cv_type_long_double" = yes; then
8654 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
8655 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8656 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long double)
8657 See \`config.log' for more details." >&5
8658 $as_echo "$as_me: error: cannot compute sizeof (long double)
8659 See \`config.log' for more details." >&2;}
8660 { (exit 77); exit 77; }; }; }
8661 else
8662 ac_cv_sizeof_long_double=0
8665 rm -rf conftest.dSYM
8666 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8668 rm -f conftest.val
8670 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_double" >&5
8671 $as_echo "$ac_cv_sizeof_long_double" >&6; }
8675 cat >>confdefs.h <<_ACEOF
8676 #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
8677 _ACEOF
8680 sizeof_long_double=$ac_cv_sizeof_long_double
8683 ### End of automated tests.
8684 ### Now run sysdeps configure fragments.
8686 # They also can set these variables.
8687 use_ldconfig=no
8688 ldd_rewrite_script=no
8689 libc_cv_sysconfdir=$sysconfdir
8690 libc_cv_gcc_unwind_find_fde=no
8691 libc_cv_idn=no
8693 # Iterate over all the sysdep directories we will use, running their
8694 # configure fragments, and looking for a uname implementation.
8695 uname=
8696 for dir in $sysnames; do
8697 case $dir in
8698 /*) dest=$dir ;;
8699 *) dest=$srcdir/$dir ;;
8700 esac
8701 if test -r $dest/configure; then
8702 { $as_echo "$as_me:$LINENO: result: running configure fragment for $dir" >&5
8703 $as_echo "running configure fragment for $dir" >&6; }
8704 . $dest/configure
8707 if test -z "$uname"; then
8708 if test -r $dest/uname.c ||
8709 test -r $dest/uname.S ||
8710 { test -r $dest/syscalls.list &&
8711 grep '^uname[ ]' $dest/syscalls.list >/dev/null; }; then
8712 uname=$dir
8715 done
8717 if test x$libc_cv_gcc_unwind_find_fde = xyes; then
8718 cat >>confdefs.h <<\_ACEOF
8719 #define EXPORT_UNWIND_FIND_FDE 1
8720 _ACEOF
8725 # If we will use the generic uname implementation, we must figure out what
8726 # it will say by examining the system, and write the results in config-name.h.
8727 if test "$uname" = "sysdeps/generic"; then
8729 uname_sysname=`echo $config_os | sed 's/[0-9.]*$//'`
8730 if test $uname_sysname != $config_os; then
8731 config_release=`echo $config_os | sed s/$uname_sysname//`
8734 { $as_echo "$as_me:$LINENO: checking OS release for uname" >&5
8735 $as_echo_n "checking OS release for uname... " >&6; }
8736 if test "${libc_cv_uname_release+set}" = set; then
8737 $as_echo_n "(cached) " >&6
8738 else
8739 if test -r /vmunix; then
8740 kernel_id=`strings /vmunix | grep UNIX`
8741 elif test -r /dynix; then
8742 kernel_id=`strings /dynix | grep DYNIX`
8743 else
8744 kernel_id=
8747 kernel_release=`echo "$kernel_id" | sed 's/^[^0-9.]*\([0-9.]*\).*$/\1/'`
8748 if test x`echo "$config_release" | sed "s/^$kernel_release//"` \
8749 != x$config_release; then
8750 # The configuration release is a substring of the kernel release.
8751 libc_cv_uname_release=$kernel_release
8752 elif test x$config_release != x; then
8753 libc_cv_uname_release=$config_release
8754 elif test x$kernel_release != x; then
8755 libc_cv_uname_release=$kernel_release
8756 else
8757 libc_cv_uname_release=unknown
8760 { $as_echo "$as_me:$LINENO: result: $libc_cv_uname_release" >&5
8761 $as_echo "$libc_cv_uname_release" >&6; }
8762 uname_release="$libc_cv_uname_release"
8764 { $as_echo "$as_me:$LINENO: checking OS version for uname" >&5
8765 $as_echo_n "checking OS version for uname... " >&6; }
8766 if test "${libc_cv_uname_version+set}" = set; then
8767 $as_echo_n "(cached) " >&6
8768 else
8769 if test -r /vmunix; then
8770 kernel_id=`strings /vmunix | grep UNIX`
8771 elif test -r /dynix; then
8772 kernel_id=`strings /dynix | grep DYNIX`
8773 else
8774 kernel_id=
8777 kernel_version=`echo "$kernel_id" | sed 's/^[^#]*#\([0-9]*\).*$/\1/'`
8778 if test -n "$kernel_version"; then
8779 libc_cv_uname_version="$kernel_version"
8780 else
8781 libc_cv_uname_version=unknown
8784 { $as_echo "$as_me:$LINENO: result: $libc_cv_uname_version" >&5
8785 $as_echo "$libc_cv_uname_version" >&6; }
8786 uname_version="$libc_cv_uname_version"
8788 config_uname=config-name.h:config-name.in
8789 else
8790 # For non-generic uname, we don't need to create config-name.h at all.
8791 config_uname=
8794 cat >>confdefs.h <<\_ACEOF
8795 #define USE_IN_LIBIO 1
8796 _ACEOF
8799 # Test for old glibc 2.0.x headers so that they can be removed properly
8800 # Search only in includedir.
8801 { $as_echo "$as_me:$LINENO: checking for old glibc 2.0.x headers" >&5
8802 $as_echo_n "checking for old glibc 2.0.x headers... " >&6; }
8803 if eval test -f "${includedir}/elfclass.h" -a -f "${includedir}/fcntlbits.h"
8804 then
8805 old_glibc_headers=yes
8806 else
8807 old_glibc_headers=no
8809 { $as_echo "$as_me:$LINENO: result: $old_glibc_headers" >&5
8810 $as_echo "$old_glibc_headers" >&6; }
8811 if test ${old_glibc_headers} = yes; then
8812 { $as_echo "$as_me:$LINENO: WARNING: *** During \"make install\" old headers from glibc 2.0.x will" >&5
8813 $as_echo "$as_me: WARNING: *** During \"make install\" old headers from glibc 2.0.x will" >&2;}
8814 { $as_echo "$as_me:$LINENO: WARNING: *** be removed." >&5
8815 $as_echo "$as_me: WARNING: *** be removed." >&2;}
8833 if test $elf = yes; then
8834 cat >>confdefs.h <<\_ACEOF
8835 #define HAVE_ELF 1
8836 _ACEOF
8839 if test $xcoff = yes; then
8840 cat >>confdefs.h <<\_ACEOF
8841 #define HAVE_XCOFF 1
8842 _ACEOF
8848 if test $shared = default; then
8849 shared=$elf
8852 { $as_echo "$as_me:$LINENO: checking whether -fPIC is default" >&5
8853 $as_echo_n "checking whether -fPIC is default... " >&6; }
8854 if test "${libc_cv_pic_default+set}" = set; then
8855 $as_echo_n "(cached) " >&6
8856 else
8857 libc_cv_pic_default=yes
8858 cat > conftest.c <<EOF
8859 #if defined __PIC__ || defined __pic__ || defined PIC || defined pic
8860 # error PIC is default.
8861 #endif
8863 if eval "${CC-cc} -S conftest.c 2>&5 1>&5"; then
8864 libc_cv_pic_default=no
8866 rm -f conftest.*
8868 { $as_echo "$as_me:$LINENO: result: $libc_cv_pic_default" >&5
8869 $as_echo "$libc_cv_pic_default" >&6; }
8882 if test "`(cd $srcdir; pwd)`" = "`pwd`"; then
8883 config_makefile=
8884 else
8885 config_makefile=Makefile
8888 VERSION=`sed -n -e 's/^#define VERSION "\([^"]*\)"/\1/p' < $srcdir/version.h`
8889 RELEASE=`sed -n -e 's/^#define RELEASE "\([^"]*\)"/\1/p' < $srcdir/version.h`
8893 ac_config_files="$ac_config_files config.make ${config_makefile} ${config_uname}"
8895 ac_config_commands="$ac_config_commands default"
8897 cat >confcache <<\_ACEOF
8898 # This file is a shell script that caches the results of configure
8899 # tests run on this system so they can be shared between configure
8900 # scripts and configure runs, see configure's option --config-cache.
8901 # It is not useful on other systems. If it contains results you don't
8902 # want to keep, you may remove or edit it.
8904 # config.status only pays attention to the cache file if you give it
8905 # the --recheck option to rerun configure.
8907 # `ac_cv_env_foo' variables (set or unset) will be overridden when
8908 # loading this file, other *unset* `ac_cv_foo' will be assigned the
8909 # following values.
8911 _ACEOF
8913 # The following way of writing the cache mishandles newlines in values,
8914 # but we know of no workaround that is simple, portable, and efficient.
8915 # So, we kill variables containing newlines.
8916 # Ultrix sh set writes to stderr and can't be redirected directly,
8917 # and sets the high bit in the cache file unless we assign to the vars.
8919 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
8920 eval ac_val=\$$ac_var
8921 case $ac_val in #(
8922 *${as_nl}*)
8923 case $ac_var in #(
8924 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
8925 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
8926 esac
8927 case $ac_var in #(
8928 _ | IFS | as_nl) ;; #(
8929 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
8930 *) $as_unset $ac_var ;;
8931 esac ;;
8932 esac
8933 done
8935 (set) 2>&1 |
8936 case $as_nl`(ac_space=' '; set) 2>&1` in #(
8937 *${as_nl}ac_space=\ *)
8938 # `set' does not quote correctly, so add quotes (double-quote
8939 # substitution turns \\\\ into \\, and sed turns \\ into \).
8940 sed -n \
8941 "s/'/'\\\\''/g;
8942 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
8943 ;; #(
8945 # `set' quotes correctly as required by POSIX, so do not add quotes.
8946 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
8948 esac |
8949 sort
8951 sed '
8952 /^ac_cv_env_/b end
8953 t clear
8954 :clear
8955 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
8956 t end
8957 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8958 :end' >>confcache
8959 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
8960 if test -w "$cache_file"; then
8961 test "x$cache_file" != "x/dev/null" &&
8962 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
8963 $as_echo "$as_me: updating cache $cache_file" >&6;}
8964 cat confcache >$cache_file
8965 else
8966 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
8967 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
8970 rm -f confcache
8972 test "x$prefix" = xNONE && prefix=$ac_default_prefix
8973 # Let make expand exec_prefix.
8974 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8976 DEFS=-DHAVE_CONFIG_H
8978 ac_libobjs=
8979 ac_ltlibobjs=
8980 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
8981 # 1. Remove the extension, and $U if already installed.
8982 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
8983 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
8984 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
8985 # will be set to the directory where LIBOBJS objects are built.
8986 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
8987 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
8988 done
8989 LIBOBJS=$ac_libobjs
8991 LTLIBOBJS=$ac_ltlibobjs
8995 : ${CONFIG_STATUS=./config.status}
8996 ac_write_fail=0
8997 ac_clean_files_save=$ac_clean_files
8998 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
8999 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
9000 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
9001 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9002 #! $SHELL
9003 # Generated by $as_me.
9004 # Run this file to recreate the current configuration.
9005 # Compiler output produced by configure, useful for debugging
9006 # configure, is in config.log if it exists.
9008 debug=false
9009 ac_cs_recheck=false
9010 ac_cs_silent=false
9011 SHELL=\${CONFIG_SHELL-$SHELL}
9012 _ACEOF
9014 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9015 ## --------------------- ##
9016 ## M4sh Initialization. ##
9017 ## --------------------- ##
9019 # Be more Bourne compatible
9020 DUALCASE=1; export DUALCASE # for MKS sh
9021 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
9022 emulate sh
9023 NULLCMD=:
9024 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
9025 # is contrary to our usage. Disable this feature.
9026 alias -g '${1+"$@"}'='"$@"'
9027 setopt NO_GLOB_SUBST
9028 else
9029 case `(set -o) 2>/dev/null` in
9030 *posix*) set -o posix ;;
9031 esac
9038 # PATH needs CR
9039 # Avoid depending upon Character Ranges.
9040 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
9041 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
9042 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
9043 as_cr_digits='0123456789'
9044 as_cr_alnum=$as_cr_Letters$as_cr_digits
9046 as_nl='
9048 export as_nl
9049 # Printing a long string crashes Solaris 7 /usr/bin/printf.
9050 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
9051 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
9052 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
9053 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
9054 as_echo='printf %s\n'
9055 as_echo_n='printf %s'
9056 else
9057 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
9058 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
9059 as_echo_n='/usr/ucb/echo -n'
9060 else
9061 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
9062 as_echo_n_body='eval
9063 arg=$1;
9064 case $arg in
9065 *"$as_nl"*)
9066 expr "X$arg" : "X\\(.*\\)$as_nl";
9067 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
9068 esac;
9069 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
9071 export as_echo_n_body
9072 as_echo_n='sh -c $as_echo_n_body as_echo'
9074 export as_echo_body
9075 as_echo='sh -c $as_echo_body as_echo'
9078 # The user is always right.
9079 if test "${PATH_SEPARATOR+set}" != set; then
9080 PATH_SEPARATOR=:
9081 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
9082 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
9083 PATH_SEPARATOR=';'
9087 # Support unset when possible.
9088 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
9089 as_unset=unset
9090 else
9091 as_unset=false
9095 # IFS
9096 # We need space, tab and new line, in precisely that order. Quoting is
9097 # there to prevent editors from complaining about space-tab.
9098 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
9099 # splitting by setting IFS to empty value.)
9100 IFS=" "" $as_nl"
9102 # Find who we are. Look in the path if we contain no directory separator.
9103 case $0 in
9104 *[\\/]* ) as_myself=$0 ;;
9105 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9106 for as_dir in $PATH
9108 IFS=$as_save_IFS
9109 test -z "$as_dir" && as_dir=.
9110 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
9111 done
9112 IFS=$as_save_IFS
9115 esac
9116 # We did not find ourselves, most probably we were run as `sh COMMAND'
9117 # in which case we are not to be found in the path.
9118 if test "x$as_myself" = x; then
9119 as_myself=$0
9121 if test ! -f "$as_myself"; then
9122 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
9123 { (exit 1); exit 1; }
9126 # Work around bugs in pre-3.0 UWIN ksh.
9127 for as_var in ENV MAIL MAILPATH
9128 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
9129 done
9130 PS1='$ '
9131 PS2='> '
9132 PS4='+ '
9134 # NLS nuisances.
9135 LC_ALL=C
9136 export LC_ALL
9137 LANGUAGE=C
9138 export LANGUAGE
9140 # Required to use basename.
9141 if expr a : '\(a\)' >/dev/null 2>&1 &&
9142 test "X`expr 00001 : '.*\(...\)'`" = X001; then
9143 as_expr=expr
9144 else
9145 as_expr=false
9148 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
9149 as_basename=basename
9150 else
9151 as_basename=false
9155 # Name of the executable.
9156 as_me=`$as_basename -- "$0" ||
9157 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
9158 X"$0" : 'X\(//\)$' \| \
9159 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
9160 $as_echo X/"$0" |
9161 sed '/^.*\/\([^/][^/]*\)\/*$/{
9162 s//\1/
9165 /^X\/\(\/\/\)$/{
9166 s//\1/
9169 /^X\/\(\/\).*/{
9170 s//\1/
9173 s/.*/./; q'`
9175 # CDPATH.
9176 $as_unset CDPATH
9180 as_lineno_1=$LINENO
9181 as_lineno_2=$LINENO
9182 test "x$as_lineno_1" != "x$as_lineno_2" &&
9183 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
9185 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
9186 # uniformly replaced by the line number. The first 'sed' inserts a
9187 # line-number line after each line using $LINENO; the second 'sed'
9188 # does the real work. The second script uses 'N' to pair each
9189 # line-number line with the line containing $LINENO, and appends
9190 # trailing '-' during substitution so that $LINENO is not a special
9191 # case at line end.
9192 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
9193 # scripts with optimization help from Paolo Bonzini. Blame Lee
9194 # E. McMahon (1931-1989) for sed's syntax. :-)
9195 sed -n '
9197 /[$]LINENO/=
9198 ' <$as_myself |
9199 sed '
9200 s/[$]LINENO.*/&-/
9201 t lineno
9203 :lineno
9205 :loop
9206 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
9207 t loop
9208 s/-\n.*//
9209 ' >$as_me.lineno &&
9210 chmod +x "$as_me.lineno" ||
9211 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
9212 { (exit 1); exit 1; }; }
9214 # Don't try to exec as it changes $[0], causing all sort of problems
9215 # (the dirname of $[0] is not the place where we might find the
9216 # original and so on. Autoconf is especially sensitive to this).
9217 . "./$as_me.lineno"
9218 # Exit status is that of the last command.
9219 exit
9223 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
9224 as_dirname=dirname
9225 else
9226 as_dirname=false
9229 ECHO_C= ECHO_N= ECHO_T=
9230 case `echo -n x` in
9231 -n*)
9232 case `echo 'x\c'` in
9233 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
9234 *) ECHO_C='\c';;
9235 esac;;
9237 ECHO_N='-n';;
9238 esac
9239 if expr a : '\(a\)' >/dev/null 2>&1 &&
9240 test "X`expr 00001 : '.*\(...\)'`" = X001; then
9241 as_expr=expr
9242 else
9243 as_expr=false
9246 rm -f conf$$ conf$$.exe conf$$.file
9247 if test -d conf$$.dir; then
9248 rm -f conf$$.dir/conf$$.file
9249 else
9250 rm -f conf$$.dir
9251 mkdir conf$$.dir 2>/dev/null
9253 if (echo >conf$$.file) 2>/dev/null; then
9254 if ln -s conf$$.file conf$$ 2>/dev/null; then
9255 as_ln_s='ln -s'
9256 # ... but there are two gotchas:
9257 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
9258 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
9259 # In both cases, we have to default to `cp -p'.
9260 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
9261 as_ln_s='cp -p'
9262 elif ln conf$$.file conf$$ 2>/dev/null; then
9263 as_ln_s=ln
9264 else
9265 as_ln_s='cp -p'
9267 else
9268 as_ln_s='cp -p'
9270 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
9271 rmdir conf$$.dir 2>/dev/null
9273 if mkdir -p . 2>/dev/null; then
9274 as_mkdir_p=:
9275 else
9276 test -d ./-p && rmdir ./-p
9277 as_mkdir_p=false
9280 if test -x / >/dev/null 2>&1; then
9281 as_test_x='test -x'
9282 else
9283 if ls -dL / >/dev/null 2>&1; then
9284 as_ls_L_option=L
9285 else
9286 as_ls_L_option=
9288 as_test_x='
9289 eval sh -c '\''
9290 if test -d "$1"; then
9291 test -d "$1/.";
9292 else
9293 case $1 in
9294 -*)set "./$1";;
9295 esac;
9296 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
9297 ???[sx]*):;;*)false;;esac;fi
9298 '\'' sh
9301 as_executable_p=$as_test_x
9303 # Sed expression to map a string onto a valid CPP name.
9304 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
9306 # Sed expression to map a string onto a valid variable name.
9307 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
9310 exec 6>&1
9312 # Save the log message, to keep $[0] and so on meaningful, and to
9313 # report actual input values of CONFIG_FILES etc. instead of their
9314 # values after options handling.
9315 ac_log="
9316 This file was extended by GNU C Library $as_me (see version.h), which was
9317 generated by GNU Autoconf 2.63. Invocation command line was
9319 CONFIG_FILES = $CONFIG_FILES
9320 CONFIG_HEADERS = $CONFIG_HEADERS
9321 CONFIG_LINKS = $CONFIG_LINKS
9322 CONFIG_COMMANDS = $CONFIG_COMMANDS
9323 $ $0 $@
9325 on `(hostname || uname -n) 2>/dev/null | sed 1q`
9328 _ACEOF
9330 case $ac_config_files in *"
9331 "*) set x $ac_config_files; shift; ac_config_files=$*;;
9332 esac
9334 case $ac_config_headers in *"
9335 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
9336 esac
9339 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9340 # Files that config.status was made for.
9341 config_files="$ac_config_files"
9342 config_headers="$ac_config_headers"
9343 config_commands="$ac_config_commands"
9345 _ACEOF
9347 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9348 ac_cs_usage="\
9349 \`$as_me' instantiates files from templates according to the
9350 current configuration.
9352 Usage: $0 [OPTION]... [FILE]...
9354 -h, --help print this help, then exit
9355 -V, --version print version number and configuration settings, then exit
9356 -q, --quiet, --silent
9357 do not print progress messages
9358 -d, --debug don't remove temporary files
9359 --recheck update $as_me by reconfiguring in the same conditions
9360 --file=FILE[:TEMPLATE]
9361 instantiate the configuration file FILE
9362 --header=FILE[:TEMPLATE]
9363 instantiate the configuration header FILE
9365 Configuration files:
9366 $config_files
9368 Configuration headers:
9369 $config_headers
9371 Configuration commands:
9372 $config_commands
9374 Report bugs to <bug-autoconf@gnu.org>."
9376 _ACEOF
9377 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9378 ac_cs_version="\\
9379 GNU C Library config.status (see version.h)
9380 configured by $0, generated by GNU Autoconf 2.63,
9381 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
9383 Copyright (C) 2008 Free Software Foundation, Inc.
9384 This config.status script is free software; the Free Software Foundation
9385 gives unlimited permission to copy, distribute and modify it."
9387 ac_pwd='$ac_pwd'
9388 srcdir='$srcdir'
9389 INSTALL='$INSTALL'
9390 AWK='$AWK'
9391 test -n "\$AWK" || AWK=awk
9392 _ACEOF
9394 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9395 # The default lists apply if the user does not specify any file.
9396 ac_need_defaults=:
9397 while test $# != 0
9399 case $1 in
9400 --*=*)
9401 ac_option=`expr "X$1" : 'X\([^=]*\)='`
9402 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
9403 ac_shift=:
9406 ac_option=$1
9407 ac_optarg=$2
9408 ac_shift=shift
9410 esac
9412 case $ac_option in
9413 # Handling of the options.
9414 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9415 ac_cs_recheck=: ;;
9416 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
9417 $as_echo "$ac_cs_version"; exit ;;
9418 --debug | --debu | --deb | --de | --d | -d )
9419 debug=: ;;
9420 --file | --fil | --fi | --f )
9421 $ac_shift
9422 case $ac_optarg in
9423 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
9424 esac
9425 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
9426 ac_need_defaults=false;;
9427 --header | --heade | --head | --hea )
9428 $ac_shift
9429 case $ac_optarg in
9430 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
9431 esac
9432 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
9433 ac_need_defaults=false;;
9434 --he | --h)
9435 # Conflict between --help and --header
9436 { $as_echo "$as_me: error: ambiguous option: $1
9437 Try \`$0 --help' for more information." >&2
9438 { (exit 1); exit 1; }; };;
9439 --help | --hel | -h )
9440 $as_echo "$ac_cs_usage"; exit ;;
9441 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
9442 | -silent | --silent | --silen | --sile | --sil | --si | --s)
9443 ac_cs_silent=: ;;
9445 # This is an error.
9446 -*) { $as_echo "$as_me: error: unrecognized option: $1
9447 Try \`$0 --help' for more information." >&2
9448 { (exit 1); exit 1; }; } ;;
9450 *) ac_config_targets="$ac_config_targets $1"
9451 ac_need_defaults=false ;;
9453 esac
9454 shift
9455 done
9457 ac_configure_extra_args=
9459 if $ac_cs_silent; then
9460 exec 6>/dev/null
9461 ac_configure_extra_args="$ac_configure_extra_args --silent"
9464 _ACEOF
9465 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9466 if \$ac_cs_recheck; then
9467 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
9468 shift
9469 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
9470 CONFIG_SHELL='$SHELL'
9471 export CONFIG_SHELL
9472 exec "\$@"
9475 _ACEOF
9476 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9477 exec 5>>config.log
9479 echo
9480 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
9481 ## Running $as_me. ##
9482 _ASBOX
9483 $as_echo "$ac_log"
9484 } >&5
9486 _ACEOF
9487 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9489 # INIT-COMMANDS
9491 config_vars='$config_vars'
9493 _ACEOF
9495 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9497 # Handling of arguments.
9498 for ac_config_target in $ac_config_targets
9500 case $ac_config_target in
9501 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
9502 "config.make") CONFIG_FILES="$CONFIG_FILES config.make" ;;
9503 "${config_makefile}") CONFIG_FILES="$CONFIG_FILES ${config_makefile}" ;;
9504 "${config_uname}") CONFIG_FILES="$CONFIG_FILES ${config_uname}" ;;
9505 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
9507 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
9508 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
9509 { (exit 1); exit 1; }; };;
9510 esac
9511 done
9514 # If the user did not use the arguments to specify the items to instantiate,
9515 # then the envvar interface is used. Set only those that are not.
9516 # We use the long form for the default assignment because of an extremely
9517 # bizarre bug on SunOS 4.1.3.
9518 if $ac_need_defaults; then
9519 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
9520 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
9521 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
9524 # Have a temporary directory for convenience. Make it in the build tree
9525 # simply because there is no reason against having it here, and in addition,
9526 # creating and moving files from /tmp can sometimes cause problems.
9527 # Hook for its removal unless debugging.
9528 # Note that there is a small window in which the directory will not be cleaned:
9529 # after its creation but before its name has been assigned to `$tmp'.
9530 $debug ||
9532 tmp=
9533 trap 'exit_status=$?
9534 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
9536 trap '{ (exit 1); exit 1; }' 1 2 13 15
9538 # Create a (secure) tmp directory for tmp files.
9541 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
9542 test -n "$tmp" && test -d "$tmp"
9543 } ||
9545 tmp=./conf$$-$RANDOM
9546 (umask 077 && mkdir "$tmp")
9547 } ||
9549 $as_echo "$as_me: cannot create a temporary directory in ." >&2
9550 { (exit 1); exit 1; }
9553 # Set up the scripts for CONFIG_FILES section.
9554 # No need to generate them if there are no CONFIG_FILES.
9555 # This happens for instance with `./config.status config.h'.
9556 if test -n "$CONFIG_FILES"; then
9559 ac_cr=' '
9560 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
9561 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
9562 ac_cs_awk_cr='\\r'
9563 else
9564 ac_cs_awk_cr=$ac_cr
9567 echo 'BEGIN {' >"$tmp/subs1.awk" &&
9568 _ACEOF
9572 echo "cat >conf$$subs.awk <<_ACEOF" &&
9573 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
9574 echo "_ACEOF"
9575 } >conf$$subs.sh ||
9576 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
9577 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
9578 { (exit 1); exit 1; }; }
9579 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
9580 ac_delim='%!_!# '
9581 for ac_last_try in false false false false false :; do
9582 . ./conf$$subs.sh ||
9583 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
9584 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
9585 { (exit 1); exit 1; }; }
9587 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
9588 if test $ac_delim_n = $ac_delim_num; then
9589 break
9590 elif $ac_last_try; then
9591 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
9592 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
9593 { (exit 1); exit 1; }; }
9594 else
9595 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
9597 done
9598 rm -f conf$$subs.sh
9600 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9601 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
9602 _ACEOF
9603 sed -n '
9605 s/^/S["/; s/!.*/"]=/
9608 s/^[^!]*!//
9609 :repl
9610 t repl
9611 s/'"$ac_delim"'$//
9612 t delim
9615 s/\(.\{148\}\).*/\1/
9616 t more1
9617 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
9620 b repl
9621 :more1
9622 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
9625 s/.\{148\}//
9626 t nl
9627 :delim
9629 s/\(.\{148\}\).*/\1/
9630 t more2
9631 s/["\\]/\\&/g; s/^/"/; s/$/"/
9634 :more2
9635 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
9638 s/.\{148\}//
9639 t delim
9640 ' <conf$$subs.awk | sed '
9641 /^[^""]/{
9643 s/\n//
9645 ' >>$CONFIG_STATUS || ac_write_fail=1
9646 rm -f conf$$subs.awk
9647 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9648 _ACAWK
9649 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
9650 for (key in S) S_is_set[key] = 1
9651 FS = "\a"
9655 line = $ 0
9656 nfields = split(line, field, "@")
9657 substed = 0
9658 len = length(field[1])
9659 for (i = 2; i < nfields; i++) {
9660 key = field[i]
9661 keylen = length(key)
9662 if (S_is_set[key]) {
9663 value = S[key]
9664 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
9665 len += length(value) + length(field[++i])
9666 substed = 1
9667 } else
9668 len += 1 + keylen
9671 print line
9674 _ACAWK
9675 _ACEOF
9676 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9677 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
9678 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
9679 else
9681 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
9682 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
9683 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
9684 { (exit 1); exit 1; }; }
9685 _ACEOF
9687 # VPATH may cause trouble with some makes, so we remove $(srcdir),
9688 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
9689 # trailing colons and then remove the whole line if VPATH becomes empty
9690 # (actually we leave an empty line to preserve line numbers).
9691 if test "x$srcdir" = x.; then
9692 ac_vpsub='/^[ ]*VPATH[ ]*=/{
9693 s/:*\$(srcdir):*/:/
9694 s/:*\${srcdir}:*/:/
9695 s/:*@srcdir@:*/:/
9696 s/^\([^=]*=[ ]*\):*/\1/
9697 s/:*$//
9698 s/^[^=]*=[ ]*$//
9702 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9703 fi # test -n "$CONFIG_FILES"
9705 # Set up the scripts for CONFIG_HEADERS section.
9706 # No need to generate them if there are no CONFIG_HEADERS.
9707 # This happens for instance with `./config.status Makefile'.
9708 if test -n "$CONFIG_HEADERS"; then
9709 cat >"$tmp/defines.awk" <<\_ACAWK ||
9710 BEGIN {
9711 _ACEOF
9713 # Transform confdefs.h into an awk script `defines.awk', embedded as
9714 # here-document in config.status, that substitutes the proper values into
9715 # config.h.in to produce config.h.
9717 # Create a delimiter string that does not exist in confdefs.h, to ease
9718 # handling of long lines.
9719 ac_delim='%!_!# '
9720 for ac_last_try in false false :; do
9721 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
9722 if test -z "$ac_t"; then
9723 break
9724 elif $ac_last_try; then
9725 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
9726 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
9727 { (exit 1); exit 1; }; }
9728 else
9729 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
9731 done
9733 # For the awk script, D is an array of macro values keyed by name,
9734 # likewise P contains macro parameters if any. Preserve backslash
9735 # newline sequences.
9737 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
9738 sed -n '
9739 s/.\{148\}/&'"$ac_delim"'/g
9740 t rset
9741 :rset
9742 s/^[ ]*#[ ]*define[ ][ ]*/ /
9743 t def
9745 :def
9746 s/\\$//
9747 t bsnl
9748 s/["\\]/\\&/g
9749 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
9750 D["\1"]=" \3"/p
9751 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
9753 :bsnl
9754 s/["\\]/\\&/g
9755 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
9756 D["\1"]=" \3\\\\\\n"\\/p
9757 t cont
9758 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
9759 t cont
9761 :cont
9763 s/.\{148\}/&'"$ac_delim"'/g
9764 t clear
9765 :clear
9766 s/\\$//
9767 t bsnlc
9768 s/["\\]/\\&/g; s/^/"/; s/$/"/p
9770 :bsnlc
9771 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
9772 b cont
9773 ' <confdefs.h | sed '
9774 s/'"$ac_delim"'/"\\\
9775 "/g' >>$CONFIG_STATUS || ac_write_fail=1
9777 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9778 for (key in D) D_is_set[key] = 1
9779 FS = "\a"
9781 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
9782 line = \$ 0
9783 split(line, arg, " ")
9784 if (arg[1] == "#") {
9785 defundef = arg[2]
9786 mac1 = arg[3]
9787 } else {
9788 defundef = substr(arg[1], 2)
9789 mac1 = arg[2]
9791 split(mac1, mac2, "(") #)
9792 macro = mac2[1]
9793 prefix = substr(line, 1, index(line, defundef) - 1)
9794 if (D_is_set[macro]) {
9795 # Preserve the white space surrounding the "#".
9796 print prefix "define", macro P[macro] D[macro]
9797 next
9798 } else {
9799 # Replace #undef with comments. This is necessary, for example,
9800 # in the case of _POSIX_SOURCE, which is predefined and required
9801 # on some systems where configure will not decide to define it.
9802 if (defundef == "undef") {
9803 print "/*", prefix defundef, macro, "*/"
9804 next
9808 { print }
9809 _ACAWK
9810 _ACEOF
9811 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9812 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
9813 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
9814 { (exit 1); exit 1; }; }
9815 fi # test -n "$CONFIG_HEADERS"
9818 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
9819 shift
9820 for ac_tag
9822 case $ac_tag in
9823 :[FHLC]) ac_mode=$ac_tag; continue;;
9824 esac
9825 case $ac_mode$ac_tag in
9826 :[FHL]*:*);;
9827 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
9828 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
9829 { (exit 1); exit 1; }; };;
9830 :[FH]-) ac_tag=-:-;;
9831 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
9832 esac
9833 ac_save_IFS=$IFS
9834 IFS=:
9835 set x $ac_tag
9836 IFS=$ac_save_IFS
9837 shift
9838 ac_file=$1
9839 shift
9841 case $ac_mode in
9842 :L) ac_source=$1;;
9843 :[FH])
9844 ac_file_inputs=
9845 for ac_f
9847 case $ac_f in
9848 -) ac_f="$tmp/stdin";;
9849 *) # Look for the file first in the build tree, then in the source tree
9850 # (if the path is not absolute). The absolute path cannot be DOS-style,
9851 # because $ac_f cannot contain `:'.
9852 test -f "$ac_f" ||
9853 case $ac_f in
9854 [\\/$]*) false;;
9855 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
9856 esac ||
9857 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
9858 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
9859 { (exit 1); exit 1; }; };;
9860 esac
9861 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
9862 ac_file_inputs="$ac_file_inputs '$ac_f'"
9863 done
9865 # Let's still pretend it is `configure' which instantiates (i.e., don't
9866 # use $as_me), people would be surprised to read:
9867 # /* config.h. Generated by config.status. */
9868 configure_input='Generated from '`
9869 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
9870 `' by configure.'
9871 if test x"$ac_file" != x-; then
9872 configure_input="$ac_file. $configure_input"
9873 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
9874 $as_echo "$as_me: creating $ac_file" >&6;}
9876 # Neutralize special characters interpreted by sed in replacement strings.
9877 case $configure_input in #(
9878 *\&* | *\|* | *\\* )
9879 ac_sed_conf_input=`$as_echo "$configure_input" |
9880 sed 's/[\\\\&|]/\\\\&/g'`;; #(
9881 *) ac_sed_conf_input=$configure_input;;
9882 esac
9884 case $ac_tag in
9885 *:-:* | *:-) cat >"$tmp/stdin" \
9886 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
9887 $as_echo "$as_me: error: could not create $ac_file" >&2;}
9888 { (exit 1); exit 1; }; } ;;
9889 esac
9891 esac
9893 ac_dir=`$as_dirname -- "$ac_file" ||
9894 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9895 X"$ac_file" : 'X\(//\)[^/]' \| \
9896 X"$ac_file" : 'X\(//\)$' \| \
9897 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
9898 $as_echo X"$ac_file" |
9899 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9900 s//\1/
9903 /^X\(\/\/\)[^/].*/{
9904 s//\1/
9907 /^X\(\/\/\)$/{
9908 s//\1/
9911 /^X\(\/\).*/{
9912 s//\1/
9915 s/.*/./; q'`
9916 { as_dir="$ac_dir"
9917 case $as_dir in #(
9918 -*) as_dir=./$as_dir;;
9919 esac
9920 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
9921 as_dirs=
9922 while :; do
9923 case $as_dir in #(
9924 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
9925 *) as_qdir=$as_dir;;
9926 esac
9927 as_dirs="'$as_qdir' $as_dirs"
9928 as_dir=`$as_dirname -- "$as_dir" ||
9929 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9930 X"$as_dir" : 'X\(//\)[^/]' \| \
9931 X"$as_dir" : 'X\(//\)$' \| \
9932 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
9933 $as_echo X"$as_dir" |
9934 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9935 s//\1/
9938 /^X\(\/\/\)[^/].*/{
9939 s//\1/
9942 /^X\(\/\/\)$/{
9943 s//\1/
9946 /^X\(\/\).*/{
9947 s//\1/
9950 s/.*/./; q'`
9951 test -d "$as_dir" && break
9952 done
9953 test -z "$as_dirs" || eval "mkdir $as_dirs"
9954 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
9955 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
9956 { (exit 1); exit 1; }; }; }
9957 ac_builddir=.
9959 case "$ac_dir" in
9960 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
9962 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
9963 # A ".." for each directory in $ac_dir_suffix.
9964 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
9965 case $ac_top_builddir_sub in
9966 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
9967 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
9968 esac ;;
9969 esac
9970 ac_abs_top_builddir=$ac_pwd
9971 ac_abs_builddir=$ac_pwd$ac_dir_suffix
9972 # for backward compatibility:
9973 ac_top_builddir=$ac_top_build_prefix
9975 case $srcdir in
9976 .) # We are building in place.
9977 ac_srcdir=.
9978 ac_top_srcdir=$ac_top_builddir_sub
9979 ac_abs_top_srcdir=$ac_pwd ;;
9980 [\\/]* | ?:[\\/]* ) # Absolute name.
9981 ac_srcdir=$srcdir$ac_dir_suffix;
9982 ac_top_srcdir=$srcdir
9983 ac_abs_top_srcdir=$srcdir ;;
9984 *) # Relative name.
9985 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
9986 ac_top_srcdir=$ac_top_build_prefix$srcdir
9987 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
9988 esac
9989 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
9992 case $ac_mode in
9995 # CONFIG_FILE
9998 case $INSTALL in
9999 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
10000 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
10001 esac
10002 _ACEOF
10004 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10005 # If the template does not know about datarootdir, expand it.
10006 # FIXME: This hack should be removed a few years after 2.60.
10007 ac_datarootdir_hack=; ac_datarootdir_seen=
10009 ac_sed_dataroot='
10010 /datarootdir/ {
10014 /@datadir@/p
10015 /@docdir@/p
10016 /@infodir@/p
10017 /@localedir@/p
10018 /@mandir@/p
10020 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
10021 *datarootdir*) ac_datarootdir_seen=yes;;
10022 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
10023 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
10024 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
10025 _ACEOF
10026 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10027 ac_datarootdir_hack='
10028 s&@datadir@&$datadir&g
10029 s&@docdir@&$docdir&g
10030 s&@infodir@&$infodir&g
10031 s&@localedir@&$localedir&g
10032 s&@mandir@&$mandir&g
10033 s&\\\${datarootdir}&$datarootdir&g' ;;
10034 esac
10035 _ACEOF
10037 # Neutralize VPATH when `$srcdir' = `.'.
10038 # Shell code in configure.ac might set extrasub.
10039 # FIXME: do we really want to maintain this feature?
10040 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10041 ac_sed_extra="$ac_vpsub
10042 $extrasub
10043 _ACEOF
10044 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10046 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
10047 s|@configure_input@|$ac_sed_conf_input|;t t
10048 s&@top_builddir@&$ac_top_builddir_sub&;t t
10049 s&@top_build_prefix@&$ac_top_build_prefix&;t t
10050 s&@srcdir@&$ac_srcdir&;t t
10051 s&@abs_srcdir@&$ac_abs_srcdir&;t t
10052 s&@top_srcdir@&$ac_top_srcdir&;t t
10053 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
10054 s&@builddir@&$ac_builddir&;t t
10055 s&@abs_builddir@&$ac_abs_builddir&;t t
10056 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
10057 s&@INSTALL@&$ac_INSTALL&;t t
10058 $ac_datarootdir_hack
10060 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
10061 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
10062 $as_echo "$as_me: error: could not create $ac_file" >&2;}
10063 { (exit 1); exit 1; }; }
10065 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
10066 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
10067 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
10068 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
10069 which seems to be undefined. Please make sure it is defined." >&5
10070 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
10071 which seems to be undefined. Please make sure it is defined." >&2;}
10073 rm -f "$tmp/stdin"
10074 case $ac_file in
10075 -) cat "$tmp/out" && rm -f "$tmp/out";;
10076 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
10077 esac \
10078 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
10079 $as_echo "$as_me: error: could not create $ac_file" >&2;}
10080 { (exit 1); exit 1; }; }
10084 # CONFIG_HEADER
10086 if test x"$ac_file" != x-; then
10088 $as_echo "/* $configure_input */" \
10089 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
10090 } >"$tmp/config.h" \
10091 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
10092 $as_echo "$as_me: error: could not create $ac_file" >&2;}
10093 { (exit 1); exit 1; }; }
10094 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
10095 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
10096 $as_echo "$as_me: $ac_file is unchanged" >&6;}
10097 else
10098 rm -f "$ac_file"
10099 mv "$tmp/config.h" "$ac_file" \
10100 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
10101 $as_echo "$as_me: error: could not create $ac_file" >&2;}
10102 { (exit 1); exit 1; }; }
10104 else
10105 $as_echo "/* $configure_input */" \
10106 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
10107 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
10108 $as_echo "$as_me: error: could not create -" >&2;}
10109 { (exit 1); exit 1; }; }
10113 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
10114 $as_echo "$as_me: executing $ac_file commands" >&6;}
10116 esac
10119 case $ac_file$ac_mode in
10120 "default":C)
10121 case $CONFIG_FILES in *config.make*)
10122 echo "$config_vars" >> config.make;;
10123 esac
10124 test -d bits || mkdir bits ;;
10126 esac
10127 done # for ac_tag
10130 { (exit 0); exit 0; }
10131 _ACEOF
10132 chmod +x $CONFIG_STATUS
10133 ac_clean_files=$ac_clean_files_save
10135 test $ac_write_fail = 0 ||
10136 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
10137 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
10138 { (exit 1); exit 1; }; }
10141 # configure is writing to config.log, and then calls config.status.
10142 # config.status does its own redirection, appending to config.log.
10143 # Unfortunately, on DOS this fails, as config.log is still kept open
10144 # by configure, so config.status won't be able to write to it; its
10145 # output is simply discarded. So we exec the FD to /dev/null,
10146 # effectively closing config.log, so it can be properly (re)opened and
10147 # appended to by config.status. When coming back to configure, we
10148 # need to make the FD available again.
10149 if test "$no_create" != yes; then
10150 ac_cs_success=:
10151 ac_config_status_args=
10152 test "$silent" = yes &&
10153 ac_config_status_args="$ac_config_status_args --quiet"
10154 exec 5>/dev/null
10155 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
10156 exec 5>>config.log
10157 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
10158 # would make configure fail if this is the last instruction.
10159 $ac_cs_success || { (exit 1); exit 1; }
10163 # CONFIG_SUBDIRS section.
10165 if test "$no_recursion" != yes; then
10167 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
10168 # so they do not pile up.
10169 ac_sub_configure_args=
10170 ac_prev=
10171 eval "set x $ac_configure_args"
10172 shift
10173 for ac_arg
10175 if test -n "$ac_prev"; then
10176 ac_prev=
10177 continue
10179 case $ac_arg in
10180 -cache-file | --cache-file | --cache-fil | --cache-fi \
10181 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
10182 ac_prev=cache_file ;;
10183 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
10184 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
10185 | --c=*)
10187 --config-cache | -C)
10189 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
10190 ac_prev=srcdir ;;
10191 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
10193 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
10194 ac_prev=prefix ;;
10195 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
10197 --disable-option-checking)
10200 case $ac_arg in
10201 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
10202 esac
10203 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
10204 esac
10205 done
10207 # Always prepend --prefix to ensure using the same prefix
10208 # in subdir configurations.
10209 ac_arg="--prefix=$prefix"
10210 case $ac_arg in
10211 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
10212 esac
10213 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
10215 # Pass --silent
10216 if test "$silent" = yes; then
10217 ac_sub_configure_args="--silent $ac_sub_configure_args"
10220 # Always prepend --disable-option-checking to silence warnings, since
10221 # different subdirs can have different --enable and --with options.
10222 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
10224 ac_popdir=`pwd`
10225 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
10227 # Do not complain, so a configure script can configure whichever
10228 # parts of a large source tree are present.
10229 test -d "$srcdir/$ac_dir" || continue
10231 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
10232 $as_echo "$as_me:$LINENO: $ac_msg" >&5
10233 $as_echo "$ac_msg" >&6
10234 { as_dir="$ac_dir"
10235 case $as_dir in #(
10236 -*) as_dir=./$as_dir;;
10237 esac
10238 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
10239 as_dirs=
10240 while :; do
10241 case $as_dir in #(
10242 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
10243 *) as_qdir=$as_dir;;
10244 esac
10245 as_dirs="'$as_qdir' $as_dirs"
10246 as_dir=`$as_dirname -- "$as_dir" ||
10247 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10248 X"$as_dir" : 'X\(//\)[^/]' \| \
10249 X"$as_dir" : 'X\(//\)$' \| \
10250 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
10251 $as_echo X"$as_dir" |
10252 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10253 s//\1/
10256 /^X\(\/\/\)[^/].*/{
10257 s//\1/
10260 /^X\(\/\/\)$/{
10261 s//\1/
10264 /^X\(\/\).*/{
10265 s//\1/
10268 s/.*/./; q'`
10269 test -d "$as_dir" && break
10270 done
10271 test -z "$as_dirs" || eval "mkdir $as_dirs"
10272 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
10273 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
10274 { (exit 1); exit 1; }; }; }
10275 ac_builddir=.
10277 case "$ac_dir" in
10278 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
10280 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
10281 # A ".." for each directory in $ac_dir_suffix.
10282 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
10283 case $ac_top_builddir_sub in
10284 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
10285 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
10286 esac ;;
10287 esac
10288 ac_abs_top_builddir=$ac_pwd
10289 ac_abs_builddir=$ac_pwd$ac_dir_suffix
10290 # for backward compatibility:
10291 ac_top_builddir=$ac_top_build_prefix
10293 case $srcdir in
10294 .) # We are building in place.
10295 ac_srcdir=.
10296 ac_top_srcdir=$ac_top_builddir_sub
10297 ac_abs_top_srcdir=$ac_pwd ;;
10298 [\\/]* | ?:[\\/]* ) # Absolute name.
10299 ac_srcdir=$srcdir$ac_dir_suffix;
10300 ac_top_srcdir=$srcdir
10301 ac_abs_top_srcdir=$srcdir ;;
10302 *) # Relative name.
10303 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
10304 ac_top_srcdir=$ac_top_build_prefix$srcdir
10305 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
10306 esac
10307 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
10310 cd "$ac_dir"
10312 # Check for guested configure; otherwise get Cygnus style configure.
10313 if test -f "$ac_srcdir/configure.gnu"; then
10314 ac_sub_configure=$ac_srcdir/configure.gnu
10315 elif test -f "$ac_srcdir/configure"; then
10316 ac_sub_configure=$ac_srcdir/configure
10317 elif test -f "$ac_srcdir/configure.in"; then
10318 # This should be Cygnus configure.
10319 ac_sub_configure=$ac_aux_dir/configure
10320 else
10321 { $as_echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
10322 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
10323 ac_sub_configure=
10326 # The recursion is here.
10327 if test -n "$ac_sub_configure"; then
10328 # Make the cache file name correct relative to the subdirectory.
10329 case $cache_file in
10330 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
10331 *) # Relative name.
10332 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
10333 esac
10335 { $as_echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
10336 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
10337 # The eval makes quoting arguments work.
10338 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
10339 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
10340 { { $as_echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
10341 $as_echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
10342 { (exit 1); exit 1; }; }
10345 cd "$ac_popdir"
10346 done
10348 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
10349 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
10350 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}