Set errno for ±Inf.
[glibc/history.git] / configure
blob755589111e074e564b8238a44287840f6c9759cf
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_cpp_asm_debuginfo
661 libc_cv_forced_unwind
662 libc_cv_rootsbindir
663 libc_cv_sysconfdir
664 libc_cv_localedir
665 libc_cv_slibdir
666 old_glibc_headers
667 uname_version
668 uname_release
669 uname_sysname
670 libc_cv_gcc_unwind_find_fde
671 sizeof_long_double
672 EGREP
673 GREP
674 have_selinux
675 have_libcap
676 have_libaudit
677 LIBGD
678 libc_cv_cc_submachine
679 exceptions
680 no_whole_archive
681 libc_cv_have_initfini
682 libc_cv_gnu89_inline
683 libc_cv_ssp
684 fno_unit_at_a_time
685 libc_cv_hashstyle
686 libc_cv_fpie
687 libc_cv_z_execstack
688 libc_cv_z_combreloc
689 ASFLAGS_config
690 libc_cv_as_needed
691 libc_cv_libgcc_s_suffix
692 libc_cv_Bgroup
693 libc_cv_cc_with_libunwind
694 VERSIONING
695 BISON
696 INSTALL_INFO
697 PERL
699 libc_cv_have_ksh
701 libc_cv_have_bash2
702 BASH_SHELL
703 libc_cv_gcc_static_libgcc
704 CXX_SYSINCLUDES
705 SYSINCLUDES
706 AUTOCONF
708 MAKEINFO
709 MSGFMT
710 MAKE
711 PWD_P
715 RANLIB
716 OBJDUMP
718 LN_S
719 INSTALL_DATA
720 INSTALL_SCRIPT
721 INSTALL_PROGRAM
722 sysdeps_add_ons
723 sysnames
724 submachine
725 base_machine
726 add_on_subdirs
727 add_ons
728 subdirs
729 host_os
730 host_vendor
731 host_cpu
732 host
733 build_os
734 build_vendor
735 build_cpu
736 build
737 libc_cv_nss_crypt
738 experimental_malloc
739 multi_arch
740 all_warnings
741 force_install
742 bindnow
743 oldest_abi
744 enable_check_abi
745 with_cvs
746 with_fp
747 ac_ct_CXX
748 CXXFLAGS
751 cross_compiling
752 BUILD_CC
753 OBJEXT
754 ac_ct_CC
755 CPPFLAGS
756 LDFLAGS
757 CFLAGS
759 target_alias
760 host_alias
761 build_alias
762 LIBS
763 ECHO_T
764 ECHO_N
765 ECHO_C
766 DEFS
767 mandir
768 localedir
769 libdir
770 psdir
771 pdfdir
772 dvidir
773 htmldir
774 infodir
775 docdir
776 oldincludedir
777 includedir
778 localstatedir
779 sharedstatedir
780 sysconfdir
781 datadir
782 datarootdir
783 libexecdir
784 sbindir
785 bindir
786 program_transform_name
787 prefix
788 exec_prefix
789 PACKAGE_BUGREPORT
790 PACKAGE_STRING
791 PACKAGE_VERSION
792 PACKAGE_TARNAME
793 PACKAGE_NAME
794 PATH_SEPARATOR
795 SHELL'
796 ac_subst_files=''
797 ac_user_opts='
798 enable_option_checking
799 with_gd
800 with_gd_include
801 with_gd_lib
802 with_fp
803 with_binutils
804 with_elf
805 with_selinux
806 with_xcoff
807 with_cvs
808 with_headers
809 enable_sanity_checks
810 enable_check_abi
811 enable_shared
812 enable_profile
813 enable_omitfp
814 enable_bounded
815 enable_versioning
816 enable_oldest_abi
817 enable_stackguard_randomization
818 enable_add_ons
819 with_tls
820 with___thread
821 enable_hidden_plt
822 enable_bind_now
823 enable_static_nss
824 enable_force_install
825 enable_kernel
826 enable_all_warnings
827 enable_multi_arch
828 enable_experimental_malloc
829 enable_nss_crypt
830 with_cpu
832 ac_precious_vars='build_alias
833 host_alias
834 target_alias
836 CFLAGS
837 LDFLAGS
838 LIBS
839 CPPFLAGS
842 CXXFLAGS
843 CCC'
844 ac_subdirs_all=''
846 # Initialize some variables set by options.
847 ac_init_help=
848 ac_init_version=false
849 ac_unrecognized_opts=
850 ac_unrecognized_sep=
851 # The variables have the same names as the options, with
852 # dashes changed to underlines.
853 cache_file=/dev/null
854 exec_prefix=NONE
855 no_create=
856 no_recursion=
857 prefix=NONE
858 program_prefix=NONE
859 program_suffix=NONE
860 program_transform_name=s,x,x,
861 silent=
862 site=
863 srcdir=
864 verbose=
865 x_includes=NONE
866 x_libraries=NONE
868 # Installation directory options.
869 # These are left unexpanded so users can "make install exec_prefix=/foo"
870 # and all the variables that are supposed to be based on exec_prefix
871 # by default will actually change.
872 # Use braces instead of parens because sh, perl, etc. also accept them.
873 # (The list follows the same order as the GNU Coding Standards.)
874 bindir='${exec_prefix}/bin'
875 sbindir='${exec_prefix}/sbin'
876 libexecdir='${exec_prefix}/libexec'
877 datarootdir='${prefix}/share'
878 datadir='${datarootdir}'
879 sysconfdir='${prefix}/etc'
880 sharedstatedir='${prefix}/com'
881 localstatedir='${prefix}/var'
882 includedir='${prefix}/include'
883 oldincludedir='/usr/include'
884 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
885 infodir='${datarootdir}/info'
886 htmldir='${docdir}'
887 dvidir='${docdir}'
888 pdfdir='${docdir}'
889 psdir='${docdir}'
890 libdir='${exec_prefix}/lib'
891 localedir='${datarootdir}/locale'
892 mandir='${datarootdir}/man'
894 ac_prev=
895 ac_dashdash=
896 for ac_option
898 # If the previous option needs an argument, assign it.
899 if test -n "$ac_prev"; then
900 eval $ac_prev=\$ac_option
901 ac_prev=
902 continue
905 case $ac_option in
906 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
907 *) ac_optarg=yes ;;
908 esac
910 # Accept the important Cygnus configure options, so we can diagnose typos.
912 case $ac_dashdash$ac_option in
914 ac_dashdash=yes ;;
916 -bindir | --bindir | --bindi | --bind | --bin | --bi)
917 ac_prev=bindir ;;
918 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
919 bindir=$ac_optarg ;;
921 -build | --build | --buil | --bui | --bu)
922 ac_prev=build_alias ;;
923 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
924 build_alias=$ac_optarg ;;
926 -cache-file | --cache-file | --cache-fil | --cache-fi \
927 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
928 ac_prev=cache_file ;;
929 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
930 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
931 cache_file=$ac_optarg ;;
933 --config-cache | -C)
934 cache_file=config.cache ;;
936 -datadir | --datadir | --datadi | --datad)
937 ac_prev=datadir ;;
938 -datadir=* | --datadir=* | --datadi=* | --datad=*)
939 datadir=$ac_optarg ;;
941 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
942 | --dataroo | --dataro | --datar)
943 ac_prev=datarootdir ;;
944 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
945 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
946 datarootdir=$ac_optarg ;;
948 -disable-* | --disable-*)
949 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
950 # Reject names that are not valid shell variable names.
951 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
952 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
953 { (exit 1); exit 1; }; }
954 ac_useropt_orig=$ac_useropt
955 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
956 case $ac_user_opts in
958 "enable_$ac_useropt"
959 "*) ;;
960 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
961 ac_unrecognized_sep=', ';;
962 esac
963 eval enable_$ac_useropt=no ;;
965 -docdir | --docdir | --docdi | --doc | --do)
966 ac_prev=docdir ;;
967 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
968 docdir=$ac_optarg ;;
970 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
971 ac_prev=dvidir ;;
972 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
973 dvidir=$ac_optarg ;;
975 -enable-* | --enable-*)
976 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
977 # Reject names that are not valid shell variable names.
978 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
979 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
980 { (exit 1); exit 1; }; }
981 ac_useropt_orig=$ac_useropt
982 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
983 case $ac_user_opts in
985 "enable_$ac_useropt"
986 "*) ;;
987 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
988 ac_unrecognized_sep=', ';;
989 esac
990 eval enable_$ac_useropt=\$ac_optarg ;;
992 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
993 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
994 | --exec | --exe | --ex)
995 ac_prev=exec_prefix ;;
996 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
997 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
998 | --exec=* | --exe=* | --ex=*)
999 exec_prefix=$ac_optarg ;;
1001 -gas | --gas | --ga | --g)
1002 # Obsolete; use --with-gas.
1003 with_gas=yes ;;
1005 -help | --help | --hel | --he | -h)
1006 ac_init_help=long ;;
1007 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1008 ac_init_help=recursive ;;
1009 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1010 ac_init_help=short ;;
1012 -host | --host | --hos | --ho)
1013 ac_prev=host_alias ;;
1014 -host=* | --host=* | --hos=* | --ho=*)
1015 host_alias=$ac_optarg ;;
1017 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1018 ac_prev=htmldir ;;
1019 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1020 | --ht=*)
1021 htmldir=$ac_optarg ;;
1023 -includedir | --includedir | --includedi | --included | --include \
1024 | --includ | --inclu | --incl | --inc)
1025 ac_prev=includedir ;;
1026 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1027 | --includ=* | --inclu=* | --incl=* | --inc=*)
1028 includedir=$ac_optarg ;;
1030 -infodir | --infodir | --infodi | --infod | --info | --inf)
1031 ac_prev=infodir ;;
1032 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1033 infodir=$ac_optarg ;;
1035 -libdir | --libdir | --libdi | --libd)
1036 ac_prev=libdir ;;
1037 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1038 libdir=$ac_optarg ;;
1040 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1041 | --libexe | --libex | --libe)
1042 ac_prev=libexecdir ;;
1043 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1044 | --libexe=* | --libex=* | --libe=*)
1045 libexecdir=$ac_optarg ;;
1047 -localedir | --localedir | --localedi | --localed | --locale)
1048 ac_prev=localedir ;;
1049 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1050 localedir=$ac_optarg ;;
1052 -localstatedir | --localstatedir | --localstatedi | --localstated \
1053 | --localstate | --localstat | --localsta | --localst | --locals)
1054 ac_prev=localstatedir ;;
1055 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1056 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1057 localstatedir=$ac_optarg ;;
1059 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1060 ac_prev=mandir ;;
1061 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1062 mandir=$ac_optarg ;;
1064 -nfp | --nfp | --nf)
1065 # Obsolete; use --without-fp.
1066 with_fp=no ;;
1068 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1069 | --no-cr | --no-c | -n)
1070 no_create=yes ;;
1072 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1073 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1074 no_recursion=yes ;;
1076 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1077 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1078 | --oldin | --oldi | --old | --ol | --o)
1079 ac_prev=oldincludedir ;;
1080 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1081 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1082 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1083 oldincludedir=$ac_optarg ;;
1085 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1086 ac_prev=prefix ;;
1087 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1088 prefix=$ac_optarg ;;
1090 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1091 | --program-pre | --program-pr | --program-p)
1092 ac_prev=program_prefix ;;
1093 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1094 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1095 program_prefix=$ac_optarg ;;
1097 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1098 | --program-suf | --program-su | --program-s)
1099 ac_prev=program_suffix ;;
1100 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1101 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1102 program_suffix=$ac_optarg ;;
1104 -program-transform-name | --program-transform-name \
1105 | --program-transform-nam | --program-transform-na \
1106 | --program-transform-n | --program-transform- \
1107 | --program-transform | --program-transfor \
1108 | --program-transfo | --program-transf \
1109 | --program-trans | --program-tran \
1110 | --progr-tra | --program-tr | --program-t)
1111 ac_prev=program_transform_name ;;
1112 -program-transform-name=* | --program-transform-name=* \
1113 | --program-transform-nam=* | --program-transform-na=* \
1114 | --program-transform-n=* | --program-transform-=* \
1115 | --program-transform=* | --program-transfor=* \
1116 | --program-transfo=* | --program-transf=* \
1117 | --program-trans=* | --program-tran=* \
1118 | --progr-tra=* | --program-tr=* | --program-t=*)
1119 program_transform_name=$ac_optarg ;;
1121 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1122 ac_prev=pdfdir ;;
1123 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1124 pdfdir=$ac_optarg ;;
1126 -psdir | --psdir | --psdi | --psd | --ps)
1127 ac_prev=psdir ;;
1128 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1129 psdir=$ac_optarg ;;
1131 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1132 | -silent | --silent | --silen | --sile | --sil)
1133 silent=yes ;;
1135 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1136 ac_prev=sbindir ;;
1137 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1138 | --sbi=* | --sb=*)
1139 sbindir=$ac_optarg ;;
1141 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1142 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1143 | --sharedst | --shareds | --shared | --share | --shar \
1144 | --sha | --sh)
1145 ac_prev=sharedstatedir ;;
1146 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1147 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1148 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1149 | --sha=* | --sh=*)
1150 sharedstatedir=$ac_optarg ;;
1152 -site | --site | --sit)
1153 ac_prev=site ;;
1154 -site=* | --site=* | --sit=*)
1155 site=$ac_optarg ;;
1157 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1158 ac_prev=srcdir ;;
1159 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1160 srcdir=$ac_optarg ;;
1162 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1163 | --syscon | --sysco | --sysc | --sys | --sy)
1164 ac_prev=sysconfdir ;;
1165 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1166 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1167 sysconfdir=$ac_optarg ;;
1169 -target | --target | --targe | --targ | --tar | --ta | --t)
1170 ac_prev=target_alias ;;
1171 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1172 target_alias=$ac_optarg ;;
1174 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1175 verbose=yes ;;
1177 -version | --version | --versio | --versi | --vers | -V)
1178 ac_init_version=: ;;
1180 -with-* | --with-*)
1181 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1182 # Reject names that are not valid shell variable names.
1183 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1184 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1185 { (exit 1); exit 1; }; }
1186 ac_useropt_orig=$ac_useropt
1187 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1188 case $ac_user_opts in
1190 "with_$ac_useropt"
1191 "*) ;;
1192 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1193 ac_unrecognized_sep=', ';;
1194 esac
1195 eval with_$ac_useropt=\$ac_optarg ;;
1197 -without-* | --without-*)
1198 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1199 # Reject names that are not valid shell variable names.
1200 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1201 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1202 { (exit 1); exit 1; }; }
1203 ac_useropt_orig=$ac_useropt
1204 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1205 case $ac_user_opts in
1207 "with_$ac_useropt"
1208 "*) ;;
1209 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1210 ac_unrecognized_sep=', ';;
1211 esac
1212 eval with_$ac_useropt=no ;;
1214 --x)
1215 # Obsolete; use --with-x.
1216 with_x=yes ;;
1218 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1219 | --x-incl | --x-inc | --x-in | --x-i)
1220 ac_prev=x_includes ;;
1221 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1222 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1223 x_includes=$ac_optarg ;;
1225 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1226 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1227 ac_prev=x_libraries ;;
1228 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1229 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1230 x_libraries=$ac_optarg ;;
1232 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1233 Try \`$0 --help' for more information." >&2
1234 { (exit 1); exit 1; }; }
1237 *=*)
1238 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1239 # Reject names that are not valid shell variable names.
1240 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1241 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1242 { (exit 1); exit 1; }; }
1243 eval $ac_envvar=\$ac_optarg
1244 export $ac_envvar ;;
1247 # FIXME: should be removed in autoconf 3.0.
1248 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1249 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1250 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1251 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1254 esac
1255 done
1257 if test -n "$ac_prev"; then
1258 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1259 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1260 { (exit 1); exit 1; }; }
1263 if test -n "$ac_unrecognized_opts"; then
1264 case $enable_option_checking in
1265 no) ;;
1266 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1267 { (exit 1); exit 1; }; } ;;
1268 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1269 esac
1272 # Check all directory arguments for consistency.
1273 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1274 datadir sysconfdir sharedstatedir localstatedir includedir \
1275 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1276 libdir localedir mandir
1278 eval ac_val=\$$ac_var
1279 # Remove trailing slashes.
1280 case $ac_val in
1281 */ )
1282 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1283 eval $ac_var=\$ac_val;;
1284 esac
1285 # Be sure to have absolute directory names.
1286 case $ac_val in
1287 [\\/$]* | ?:[\\/]* ) continue;;
1288 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1289 esac
1290 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1291 { (exit 1); exit 1; }; }
1292 done
1294 # There might be people who depend on the old broken behavior: `$host'
1295 # used to hold the argument of --host etc.
1296 # FIXME: To remove some day.
1297 build=$build_alias
1298 host=$host_alias
1299 target=$target_alias
1301 # FIXME: To remove some day.
1302 if test "x$host_alias" != x; then
1303 if test "x$build_alias" = x; then
1304 cross_compiling=maybe
1305 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1306 If a cross compiler is detected then cross compile mode will be used." >&2
1307 elif test "x$build_alias" != "x$host_alias"; then
1308 cross_compiling=yes
1312 ac_tool_prefix=
1313 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1315 test "$silent" = yes && exec 6>/dev/null
1318 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1319 ac_ls_di=`ls -di .` &&
1320 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1321 { $as_echo "$as_me: error: working directory cannot be determined" >&2
1322 { (exit 1); exit 1; }; }
1323 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1324 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1325 { (exit 1); exit 1; }; }
1328 # Find the source files, if location was not specified.
1329 if test -z "$srcdir"; then
1330 ac_srcdir_defaulted=yes
1331 # Try the directory containing this script, then the parent directory.
1332 ac_confdir=`$as_dirname -- "$as_myself" ||
1333 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1334 X"$as_myself" : 'X\(//\)[^/]' \| \
1335 X"$as_myself" : 'X\(//\)$' \| \
1336 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1337 $as_echo X"$as_myself" |
1338 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1339 s//\1/
1342 /^X\(\/\/\)[^/].*/{
1343 s//\1/
1346 /^X\(\/\/\)$/{
1347 s//\1/
1350 /^X\(\/\).*/{
1351 s//\1/
1354 s/.*/./; q'`
1355 srcdir=$ac_confdir
1356 if test ! -r "$srcdir/$ac_unique_file"; then
1357 srcdir=..
1359 else
1360 ac_srcdir_defaulted=no
1362 if test ! -r "$srcdir/$ac_unique_file"; then
1363 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1364 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1365 { (exit 1); exit 1; }; }
1367 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1368 ac_abs_confdir=`(
1369 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1370 { (exit 1); exit 1; }; }
1371 pwd)`
1372 # When building in place, set srcdir=.
1373 if test "$ac_abs_confdir" = "$ac_pwd"; then
1374 srcdir=.
1376 # Remove unnecessary trailing slashes from srcdir.
1377 # Double slashes in file names in object file debugging info
1378 # mess up M-x gdb in Emacs.
1379 case $srcdir in
1380 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1381 esac
1382 for ac_var in $ac_precious_vars; do
1383 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1384 eval ac_env_${ac_var}_value=\$${ac_var}
1385 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1386 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1387 done
1390 # Report the --help message.
1392 if test "$ac_init_help" = "long"; then
1393 # Omit some internal or obsolete options to make the list less imposing.
1394 # This message is too long to be a string in the A/UX 3.1 sh.
1395 cat <<_ACEOF
1396 \`configure' configures GNU C Library (see version.h) to adapt to many kinds of systems.
1398 Usage: $0 [OPTION]... [VAR=VALUE]...
1400 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1401 VAR=VALUE. See below for descriptions of some of the useful variables.
1403 Defaults for the options are specified in brackets.
1405 Configuration:
1406 -h, --help display this help and exit
1407 --help=short display options specific to this package
1408 --help=recursive display the short help of all the included packages
1409 -V, --version display version information and exit
1410 -q, --quiet, --silent do not print \`checking...' messages
1411 --cache-file=FILE cache test results in FILE [disabled]
1412 -C, --config-cache alias for \`--cache-file=config.cache'
1413 -n, --no-create do not create output files
1414 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1416 Installation directories:
1417 --prefix=PREFIX install architecture-independent files in PREFIX
1418 [$ac_default_prefix]
1419 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1420 [PREFIX]
1422 By default, \`make install' will install all the files in
1423 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1424 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1425 for instance \`--prefix=\$HOME'.
1427 For better control, use the options below.
1429 Fine tuning of the installation directories:
1430 --bindir=DIR user executables [EPREFIX/bin]
1431 --sbindir=DIR system admin executables [EPREFIX/sbin]
1432 --libexecdir=DIR program executables [EPREFIX/libexec]
1433 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1434 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1435 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1436 --libdir=DIR object code libraries [EPREFIX/lib]
1437 --includedir=DIR C header files [PREFIX/include]
1438 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1439 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1440 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1441 --infodir=DIR info documentation [DATAROOTDIR/info]
1442 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1443 --mandir=DIR man documentation [DATAROOTDIR/man]
1444 --docdir=DIR documentation root [DATAROOTDIR/doc/c-library]
1445 --htmldir=DIR html documentation [DOCDIR]
1446 --dvidir=DIR dvi documentation [DOCDIR]
1447 --pdfdir=DIR pdf documentation [DOCDIR]
1448 --psdir=DIR ps documentation [DOCDIR]
1449 _ACEOF
1451 cat <<\_ACEOF
1453 System types:
1454 --build=BUILD configure for building on BUILD [guessed]
1455 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1456 _ACEOF
1459 if test -n "$ac_init_help"; then
1460 case $ac_init_help in
1461 short | recursive ) echo "Configuration of GNU C Library (see version.h):";;
1462 esac
1463 cat <<\_ACEOF
1465 Optional Features:
1466 --disable-option-checking ignore unrecognized --enable/--with options
1467 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1468 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1469 --disable-sanity-checks really do not use threads (should not be used except
1470 in special situations) [default=yes]
1471 --enable-check-abi do "make check-abi" in "make check" (no/warn/yes)
1472 [default=no]
1473 --enable-shared build shared library [default=yes if GNU ld & ELF]
1474 --enable-profile build profiled library [default=no]
1475 --enable-omitfp build undebuggable optimized library [default=no]
1476 --enable-bounded build with runtime bounds checking [default=no]
1477 --disable-versioning do not include versioning information in the library
1478 objects [default=yes if supported]
1479 --enable-oldest-abi=ABI configure the oldest ABI supported [e.g. 2.2]
1480 [default=glibc default]
1481 --enable-stackguard-randomization
1482 initialize __stack_chk_guard canary with a random
1483 number at program start
1484 --enable-add-ons[=DIRS...]
1485 configure and build add-ons in DIR1,DIR2,... search
1486 for add-ons if no parameter given
1487 --disable-hidden-plt do not hide internal function calls to avoid PLT
1488 --enable-bind-now disable lazy relocations in DSOs
1489 --enable-static-nss build static NSS modules [default=no]
1490 --disable-force-install don't force installation of files from this package,
1491 even if they are older than the installed files
1492 --enable-kernel=VERSION compile for compatibility with kernel not older than
1493 VERSION
1494 --enable-all-warnings enable all useful warnings gcc can issue
1495 --enable-multi-arch enable single DSO with optimizations for multiple
1496 architectures
1497 --enable-experimental-malloc
1498 enable experimental malloc features
1499 --enable-nss-crypt enable libcrypt to use nss
1501 Optional Packages:
1502 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1503 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1504 --with-gd=DIR find libgd include dir and library with prefix DIR
1505 --with-gd-include=DIR find libgd include files in DIR
1506 --with-gd-lib=DIR find libgd library files in DIR
1507 --with-fp if using floating-point hardware [default=yes]
1508 --with-binutils=PATH specify location of binutils (as and ld)
1509 --with-elf if using the ELF object format
1510 --with-selinux if building with SELinux support
1511 --with-xcoff if using the XCOFF object format
1512 --without-cvs if CVS should not be used
1513 --with-headers=PATH location of system headers to use (for example
1514 /usr/src/linux/include) [default=compiler default]
1515 --with-tls enable support for TLS
1516 --without-__thread do not use TLS features even when supporting them
1517 --with-cpu=CPU select code for CPU variant
1519 Some influential environment variables:
1520 CC C compiler command
1521 CFLAGS C compiler flags
1522 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1523 nonstandard directory <lib dir>
1524 LIBS libraries to pass to the linker, e.g. -l<library>
1525 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1526 you have headers in a nonstandard directory <include dir>
1527 CPP C preprocessor
1528 CXX C++ compiler command
1529 CXXFLAGS C++ compiler flags
1531 Use these variables to override the choices made by `configure' or to help
1532 it to find libraries and programs with nonstandard names/locations.
1534 Report bugs to <glibc>.
1535 _ACEOF
1536 ac_status=$?
1539 if test "$ac_init_help" = "recursive"; then
1540 # If there are subdirs, report their specific --help.
1541 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1542 test -d "$ac_dir" ||
1543 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1544 continue
1545 ac_builddir=.
1547 case "$ac_dir" in
1548 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1550 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1551 # A ".." for each directory in $ac_dir_suffix.
1552 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1553 case $ac_top_builddir_sub in
1554 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1555 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1556 esac ;;
1557 esac
1558 ac_abs_top_builddir=$ac_pwd
1559 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1560 # for backward compatibility:
1561 ac_top_builddir=$ac_top_build_prefix
1563 case $srcdir in
1564 .) # We are building in place.
1565 ac_srcdir=.
1566 ac_top_srcdir=$ac_top_builddir_sub
1567 ac_abs_top_srcdir=$ac_pwd ;;
1568 [\\/]* | ?:[\\/]* ) # Absolute name.
1569 ac_srcdir=$srcdir$ac_dir_suffix;
1570 ac_top_srcdir=$srcdir
1571 ac_abs_top_srcdir=$srcdir ;;
1572 *) # Relative name.
1573 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1574 ac_top_srcdir=$ac_top_build_prefix$srcdir
1575 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1576 esac
1577 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1579 cd "$ac_dir" || { ac_status=$?; continue; }
1580 # Check for guested configure.
1581 if test -f "$ac_srcdir/configure.gnu"; then
1582 echo &&
1583 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1584 elif test -f "$ac_srcdir/configure"; then
1585 echo &&
1586 $SHELL "$ac_srcdir/configure" --help=recursive
1587 else
1588 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1589 fi || ac_status=$?
1590 cd "$ac_pwd" || { ac_status=$?; break; }
1591 done
1594 test -n "$ac_init_help" && exit $ac_status
1595 if $ac_init_version; then
1596 cat <<\_ACEOF
1597 GNU C Library configure (see version.h)
1598 generated by GNU Autoconf 2.63
1600 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1601 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1602 This configure script is free software; the Free Software Foundation
1603 gives unlimited permission to copy, distribute and modify it.
1604 _ACEOF
1605 exit
1607 cat >config.log <<_ACEOF
1608 This file contains any messages produced by compilers while
1609 running configure, to aid debugging if configure makes a mistake.
1611 It was created by GNU C Library $as_me (see version.h), which was
1612 generated by GNU Autoconf 2.63. Invocation command line was
1614 $ $0 $@
1616 _ACEOF
1617 exec 5>>config.log
1619 cat <<_ASUNAME
1620 ## --------- ##
1621 ## Platform. ##
1622 ## --------- ##
1624 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1625 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1626 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1627 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1628 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1630 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1631 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1633 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1634 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1635 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1636 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1637 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1638 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1639 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1641 _ASUNAME
1643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1644 for as_dir in $PATH
1646 IFS=$as_save_IFS
1647 test -z "$as_dir" && as_dir=.
1648 $as_echo "PATH: $as_dir"
1649 done
1650 IFS=$as_save_IFS
1652 } >&5
1654 cat >&5 <<_ACEOF
1657 ## ----------- ##
1658 ## Core tests. ##
1659 ## ----------- ##
1661 _ACEOF
1664 # Keep a trace of the command line.
1665 # Strip out --no-create and --no-recursion so they do not pile up.
1666 # Strip out --silent because we don't want to record it for future runs.
1667 # Also quote any args containing shell meta-characters.
1668 # Make two passes to allow for proper duplicate-argument suppression.
1669 ac_configure_args=
1670 ac_configure_args0=
1671 ac_configure_args1=
1672 ac_must_keep_next=false
1673 for ac_pass in 1 2
1675 for ac_arg
1677 case $ac_arg in
1678 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1679 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1680 | -silent | --silent | --silen | --sile | --sil)
1681 continue ;;
1682 *\'*)
1683 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1684 esac
1685 case $ac_pass in
1686 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1688 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1689 if test $ac_must_keep_next = true; then
1690 ac_must_keep_next=false # Got value, back to normal.
1691 else
1692 case $ac_arg in
1693 *=* | --config-cache | -C | -disable-* | --disable-* \
1694 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1695 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1696 | -with-* | --with-* | -without-* | --without-* | --x)
1697 case "$ac_configure_args0 " in
1698 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1699 esac
1701 -* ) ac_must_keep_next=true ;;
1702 esac
1704 ac_configure_args="$ac_configure_args '$ac_arg'"
1706 esac
1707 done
1708 done
1709 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1710 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1712 # When interrupted or exit'd, cleanup temporary files, and complete
1713 # config.log. We remove comments because anyway the quotes in there
1714 # would cause problems or look ugly.
1715 # WARNING: Use '\'' to represent an apostrophe within the trap.
1716 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1717 trap 'exit_status=$?
1718 # Save into config.log some information that might help in debugging.
1720 echo
1722 cat <<\_ASBOX
1723 ## ---------------- ##
1724 ## Cache variables. ##
1725 ## ---------------- ##
1726 _ASBOX
1727 echo
1728 # The following way of writing the cache mishandles newlines in values,
1730 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1731 eval ac_val=\$$ac_var
1732 case $ac_val in #(
1733 *${as_nl}*)
1734 case $ac_var in #(
1735 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1736 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1737 esac
1738 case $ac_var in #(
1739 _ | IFS | as_nl) ;; #(
1740 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1741 *) $as_unset $ac_var ;;
1742 esac ;;
1743 esac
1744 done
1745 (set) 2>&1 |
1746 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1747 *${as_nl}ac_space=\ *)
1748 sed -n \
1749 "s/'\''/'\''\\\\'\'''\''/g;
1750 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1751 ;; #(
1753 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1755 esac |
1756 sort
1758 echo
1760 cat <<\_ASBOX
1761 ## ----------------- ##
1762 ## Output variables. ##
1763 ## ----------------- ##
1764 _ASBOX
1765 echo
1766 for ac_var in $ac_subst_vars
1768 eval ac_val=\$$ac_var
1769 case $ac_val in
1770 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1771 esac
1772 $as_echo "$ac_var='\''$ac_val'\''"
1773 done | sort
1774 echo
1776 if test -n "$ac_subst_files"; then
1777 cat <<\_ASBOX
1778 ## ------------------- ##
1779 ## File substitutions. ##
1780 ## ------------------- ##
1781 _ASBOX
1782 echo
1783 for ac_var in $ac_subst_files
1785 eval ac_val=\$$ac_var
1786 case $ac_val in
1787 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1788 esac
1789 $as_echo "$ac_var='\''$ac_val'\''"
1790 done | sort
1791 echo
1794 if test -s confdefs.h; then
1795 cat <<\_ASBOX
1796 ## ----------- ##
1797 ## confdefs.h. ##
1798 ## ----------- ##
1799 _ASBOX
1800 echo
1801 cat confdefs.h
1802 echo
1804 test "$ac_signal" != 0 &&
1805 $as_echo "$as_me: caught signal $ac_signal"
1806 $as_echo "$as_me: exit $exit_status"
1807 } >&5
1808 rm -f core *.core core.conftest.* &&
1809 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1810 exit $exit_status
1812 for ac_signal in 1 2 13 15; do
1813 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1814 done
1815 ac_signal=0
1817 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1818 rm -f -r conftest* confdefs.h
1820 # Predefined preprocessor variables.
1822 cat >>confdefs.h <<_ACEOF
1823 #define PACKAGE_NAME "$PACKAGE_NAME"
1824 _ACEOF
1827 cat >>confdefs.h <<_ACEOF
1828 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1829 _ACEOF
1832 cat >>confdefs.h <<_ACEOF
1833 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1834 _ACEOF
1837 cat >>confdefs.h <<_ACEOF
1838 #define PACKAGE_STRING "$PACKAGE_STRING"
1839 _ACEOF
1842 cat >>confdefs.h <<_ACEOF
1843 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1844 _ACEOF
1847 # Let the site file select an alternate cache file if it wants to.
1848 # Prefer an explicitly selected file to automatically selected ones.
1849 ac_site_file1=NONE
1850 ac_site_file2=NONE
1851 if test -n "$CONFIG_SITE"; then
1852 ac_site_file1=$CONFIG_SITE
1853 elif test "x$prefix" != xNONE; then
1854 ac_site_file1=$prefix/share/config.site
1855 ac_site_file2=$prefix/etc/config.site
1856 else
1857 ac_site_file1=$ac_default_prefix/share/config.site
1858 ac_site_file2=$ac_default_prefix/etc/config.site
1860 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1862 test "x$ac_site_file" = xNONE && continue
1863 if test -r "$ac_site_file"; then
1864 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1865 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1866 sed 's/^/| /' "$ac_site_file" >&5
1867 . "$ac_site_file"
1869 done
1871 if test -r "$cache_file"; then
1872 # Some versions of bash will fail to source /dev/null (special
1873 # files actually), so we avoid doing that.
1874 if test -f "$cache_file"; then
1875 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1876 $as_echo "$as_me: loading cache $cache_file" >&6;}
1877 case $cache_file in
1878 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1879 *) . "./$cache_file";;
1880 esac
1882 else
1883 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1884 $as_echo "$as_me: creating cache $cache_file" >&6;}
1885 >$cache_file
1888 # Check that the precious variables saved in the cache have kept the same
1889 # value.
1890 ac_cache_corrupted=false
1891 for ac_var in $ac_precious_vars; do
1892 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1893 eval ac_new_set=\$ac_env_${ac_var}_set
1894 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1895 eval ac_new_val=\$ac_env_${ac_var}_value
1896 case $ac_old_set,$ac_new_set in
1897 set,)
1898 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1899 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1900 ac_cache_corrupted=: ;;
1901 ,set)
1902 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1903 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1904 ac_cache_corrupted=: ;;
1905 ,);;
1907 if test "x$ac_old_val" != "x$ac_new_val"; then
1908 # differences in whitespace do not lead to failure.
1909 ac_old_val_w=`echo x $ac_old_val`
1910 ac_new_val_w=`echo x $ac_new_val`
1911 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1912 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1913 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1914 ac_cache_corrupted=:
1915 else
1916 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1917 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1918 eval $ac_var=\$ac_old_val
1920 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1921 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1922 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1923 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1924 fi;;
1925 esac
1926 # Pass precious variables to config.status.
1927 if test "$ac_new_set" = set; then
1928 case $ac_new_val in
1929 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1930 *) ac_arg=$ac_var=$ac_new_val ;;
1931 esac
1932 case " $ac_configure_args " in
1933 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1934 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1935 esac
1937 done
1938 if $ac_cache_corrupted; then
1939 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1940 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1941 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1942 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1943 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1944 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1945 { (exit 1); exit 1; }; }
1972 ac_ext=c
1973 ac_cpp='$CPP $CPPFLAGS'
1974 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1975 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1976 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1980 ac_config_headers="$ac_config_headers config.h"
1982 ac_aux_dir=
1983 for ac_dir in scripts "$srcdir"/scripts; do
1984 if test -f "$ac_dir/install-sh"; then
1985 ac_aux_dir=$ac_dir
1986 ac_install_sh="$ac_aux_dir/install-sh -c"
1987 break
1988 elif test -f "$ac_dir/install.sh"; then
1989 ac_aux_dir=$ac_dir
1990 ac_install_sh="$ac_aux_dir/install.sh -c"
1991 break
1992 elif test -f "$ac_dir/shtool"; then
1993 ac_aux_dir=$ac_dir
1994 ac_install_sh="$ac_aux_dir/shtool install -c"
1995 break
1997 done
1998 if test -z "$ac_aux_dir"; then
1999 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in scripts \"$srcdir\"/scripts" >&5
2000 $as_echo "$as_me: error: cannot find install-sh or install.sh in scripts \"$srcdir\"/scripts" >&2;}
2001 { (exit 1); exit 1; }; }
2004 # These three variables are undocumented and unsupported,
2005 # and are intended to be withdrawn in a future Autoconf release.
2006 # They can cause serious problems if a builder's source tree is in a directory
2007 # whose full name contains unusual characters.
2008 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2009 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2010 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2014 ac_ext=c
2015 ac_cpp='$CPP $CPPFLAGS'
2016 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2017 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2018 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2019 if test -n "$ac_tool_prefix"; then
2020 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2021 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2022 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2023 $as_echo_n "checking for $ac_word... " >&6; }
2024 if test "${ac_cv_prog_CC+set}" = set; then
2025 $as_echo_n "(cached) " >&6
2026 else
2027 if test -n "$CC"; then
2028 ac_cv_prog_CC="$CC" # Let the user override the test.
2029 else
2030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2031 for as_dir in $PATH
2033 IFS=$as_save_IFS
2034 test -z "$as_dir" && as_dir=.
2035 for ac_exec_ext in '' $ac_executable_extensions; do
2036 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2037 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2038 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2039 break 2
2041 done
2042 done
2043 IFS=$as_save_IFS
2047 CC=$ac_cv_prog_CC
2048 if test -n "$CC"; then
2049 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2050 $as_echo "$CC" >&6; }
2051 else
2052 { $as_echo "$as_me:$LINENO: result: no" >&5
2053 $as_echo "no" >&6; }
2058 if test -z "$ac_cv_prog_CC"; then
2059 ac_ct_CC=$CC
2060 # Extract the first word of "gcc", so it can be a program name with args.
2061 set dummy gcc; ac_word=$2
2062 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2063 $as_echo_n "checking for $ac_word... " >&6; }
2064 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2065 $as_echo_n "(cached) " >&6
2066 else
2067 if test -n "$ac_ct_CC"; then
2068 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2069 else
2070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2071 for as_dir in $PATH
2073 IFS=$as_save_IFS
2074 test -z "$as_dir" && as_dir=.
2075 for ac_exec_ext in '' $ac_executable_extensions; do
2076 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2077 ac_cv_prog_ac_ct_CC="gcc"
2078 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2079 break 2
2081 done
2082 done
2083 IFS=$as_save_IFS
2087 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2088 if test -n "$ac_ct_CC"; then
2089 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2090 $as_echo "$ac_ct_CC" >&6; }
2091 else
2092 { $as_echo "$as_me:$LINENO: result: no" >&5
2093 $as_echo "no" >&6; }
2096 if test "x$ac_ct_CC" = x; then
2097 CC=""
2098 else
2099 case $cross_compiling:$ac_tool_warned in
2100 yes:)
2101 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2102 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2103 ac_tool_warned=yes ;;
2104 esac
2105 CC=$ac_ct_CC
2107 else
2108 CC="$ac_cv_prog_CC"
2111 if test -z "$CC"; then
2112 if test -n "$ac_tool_prefix"; then
2113 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2114 set dummy ${ac_tool_prefix}cc; ac_word=$2
2115 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2116 $as_echo_n "checking for $ac_word... " >&6; }
2117 if test "${ac_cv_prog_CC+set}" = set; then
2118 $as_echo_n "(cached) " >&6
2119 else
2120 if test -n "$CC"; then
2121 ac_cv_prog_CC="$CC" # Let the user override the test.
2122 else
2123 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2124 for as_dir in $PATH
2126 IFS=$as_save_IFS
2127 test -z "$as_dir" && as_dir=.
2128 for ac_exec_ext in '' $ac_executable_extensions; do
2129 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2130 ac_cv_prog_CC="${ac_tool_prefix}cc"
2131 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2132 break 2
2134 done
2135 done
2136 IFS=$as_save_IFS
2140 CC=$ac_cv_prog_CC
2141 if test -n "$CC"; then
2142 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2143 $as_echo "$CC" >&6; }
2144 else
2145 { $as_echo "$as_me:$LINENO: result: no" >&5
2146 $as_echo "no" >&6; }
2152 if test -z "$CC"; then
2153 # Extract the first word of "cc", so it can be a program name with args.
2154 set dummy cc; ac_word=$2
2155 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2156 $as_echo_n "checking for $ac_word... " >&6; }
2157 if test "${ac_cv_prog_CC+set}" = set; then
2158 $as_echo_n "(cached) " >&6
2159 else
2160 if test -n "$CC"; then
2161 ac_cv_prog_CC="$CC" # Let the user override the test.
2162 else
2163 ac_prog_rejected=no
2164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2165 for as_dir in $PATH
2167 IFS=$as_save_IFS
2168 test -z "$as_dir" && as_dir=.
2169 for ac_exec_ext in '' $ac_executable_extensions; do
2170 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2171 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2172 ac_prog_rejected=yes
2173 continue
2175 ac_cv_prog_CC="cc"
2176 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2177 break 2
2179 done
2180 done
2181 IFS=$as_save_IFS
2183 if test $ac_prog_rejected = yes; then
2184 # We found a bogon in the path, so make sure we never use it.
2185 set dummy $ac_cv_prog_CC
2186 shift
2187 if test $# != 0; then
2188 # We chose a different compiler from the bogus one.
2189 # However, it has the same basename, so the bogon will be chosen
2190 # first if we set CC to just the basename; use the full file name.
2191 shift
2192 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2197 CC=$ac_cv_prog_CC
2198 if test -n "$CC"; then
2199 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2200 $as_echo "$CC" >&6; }
2201 else
2202 { $as_echo "$as_me:$LINENO: result: no" >&5
2203 $as_echo "no" >&6; }
2208 if test -z "$CC"; then
2209 if test -n "$ac_tool_prefix"; then
2210 for ac_prog in cl.exe
2212 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2213 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2214 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2215 $as_echo_n "checking for $ac_word... " >&6; }
2216 if test "${ac_cv_prog_CC+set}" = set; then
2217 $as_echo_n "(cached) " >&6
2218 else
2219 if test -n "$CC"; then
2220 ac_cv_prog_CC="$CC" # Let the user override the test.
2221 else
2222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2223 for as_dir in $PATH
2225 IFS=$as_save_IFS
2226 test -z "$as_dir" && as_dir=.
2227 for ac_exec_ext in '' $ac_executable_extensions; do
2228 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2229 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2230 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2231 break 2
2233 done
2234 done
2235 IFS=$as_save_IFS
2239 CC=$ac_cv_prog_CC
2240 if test -n "$CC"; then
2241 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2242 $as_echo "$CC" >&6; }
2243 else
2244 { $as_echo "$as_me:$LINENO: result: no" >&5
2245 $as_echo "no" >&6; }
2249 test -n "$CC" && break
2250 done
2252 if test -z "$CC"; then
2253 ac_ct_CC=$CC
2254 for ac_prog in cl.exe
2256 # Extract the first word of "$ac_prog", so it can be a program name with args.
2257 set dummy $ac_prog; ac_word=$2
2258 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2259 $as_echo_n "checking for $ac_word... " >&6; }
2260 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2261 $as_echo_n "(cached) " >&6
2262 else
2263 if test -n "$ac_ct_CC"; then
2264 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2265 else
2266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2267 for as_dir in $PATH
2269 IFS=$as_save_IFS
2270 test -z "$as_dir" && as_dir=.
2271 for ac_exec_ext in '' $ac_executable_extensions; do
2272 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2273 ac_cv_prog_ac_ct_CC="$ac_prog"
2274 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2275 break 2
2277 done
2278 done
2279 IFS=$as_save_IFS
2283 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2284 if test -n "$ac_ct_CC"; then
2285 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2286 $as_echo "$ac_ct_CC" >&6; }
2287 else
2288 { $as_echo "$as_me:$LINENO: result: no" >&5
2289 $as_echo "no" >&6; }
2293 test -n "$ac_ct_CC" && break
2294 done
2296 if test "x$ac_ct_CC" = x; then
2297 CC=""
2298 else
2299 case $cross_compiling:$ac_tool_warned in
2300 yes:)
2301 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2302 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2303 ac_tool_warned=yes ;;
2304 esac
2305 CC=$ac_ct_CC
2312 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2313 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2314 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2315 See \`config.log' for more details." >&5
2316 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
2317 See \`config.log' for more details." >&2;}
2318 { (exit 1); exit 1; }; }; }
2320 # Provide some information about the compiler.
2321 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2322 set X $ac_compile
2323 ac_compiler=$2
2324 { (ac_try="$ac_compiler --version >&5"
2325 case "(($ac_try" in
2326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2327 *) ac_try_echo=$ac_try;;
2328 esac
2329 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2330 $as_echo "$ac_try_echo") >&5
2331 (eval "$ac_compiler --version >&5") 2>&5
2332 ac_status=$?
2333 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2334 (exit $ac_status); }
2335 { (ac_try="$ac_compiler -v >&5"
2336 case "(($ac_try" in
2337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2338 *) ac_try_echo=$ac_try;;
2339 esac
2340 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2341 $as_echo "$ac_try_echo") >&5
2342 (eval "$ac_compiler -v >&5") 2>&5
2343 ac_status=$?
2344 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2345 (exit $ac_status); }
2346 { (ac_try="$ac_compiler -V >&5"
2347 case "(($ac_try" in
2348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2349 *) ac_try_echo=$ac_try;;
2350 esac
2351 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2352 $as_echo "$ac_try_echo") >&5
2353 (eval "$ac_compiler -V >&5") 2>&5
2354 ac_status=$?
2355 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2356 (exit $ac_status); }
2358 EXEEXT=
2359 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
2360 $as_echo_n "checking for suffix of object files... " >&6; }
2361 if test "${ac_cv_objext+set}" = set; then
2362 $as_echo_n "(cached) " >&6
2363 else
2364 cat >conftest.$ac_ext <<_ACEOF
2365 /* confdefs.h. */
2366 _ACEOF
2367 cat confdefs.h >>conftest.$ac_ext
2368 cat >>conftest.$ac_ext <<_ACEOF
2369 /* end confdefs.h. */
2372 main ()
2376 return 0;
2378 _ACEOF
2379 rm -f conftest.o conftest.obj
2380 if { (ac_try="$ac_compile"
2381 case "(($ac_try" in
2382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2383 *) ac_try_echo=$ac_try;;
2384 esac
2385 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2386 $as_echo "$ac_try_echo") >&5
2387 (eval "$ac_compile") 2>&5
2388 ac_status=$?
2389 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2390 (exit $ac_status); }; then
2391 for ac_file in conftest.o conftest.obj conftest.*; do
2392 test -f "$ac_file" || continue;
2393 case $ac_file in
2394 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2395 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2396 break;;
2397 esac
2398 done
2399 else
2400 $as_echo "$as_me: failed program was:" >&5
2401 sed 's/^/| /' conftest.$ac_ext >&5
2403 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2404 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2405 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2406 See \`config.log' for more details." >&5
2407 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
2408 See \`config.log' for more details." >&2;}
2409 { (exit 1); exit 1; }; }; }
2412 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2414 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2415 $as_echo "$ac_cv_objext" >&6; }
2416 OBJEXT=$ac_cv_objext
2417 ac_objext=$OBJEXT
2418 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2419 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2420 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2421 $as_echo_n "(cached) " >&6
2422 else
2423 cat >conftest.$ac_ext <<_ACEOF
2424 /* confdefs.h. */
2425 _ACEOF
2426 cat confdefs.h >>conftest.$ac_ext
2427 cat >>conftest.$ac_ext <<_ACEOF
2428 /* end confdefs.h. */
2431 main ()
2433 #ifndef __GNUC__
2434 choke me
2435 #endif
2438 return 0;
2440 _ACEOF
2441 rm -f conftest.$ac_objext
2442 if { (ac_try="$ac_compile"
2443 case "(($ac_try" in
2444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2445 *) ac_try_echo=$ac_try;;
2446 esac
2447 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2448 $as_echo "$ac_try_echo") >&5
2449 (eval "$ac_compile") 2>conftest.er1
2450 ac_status=$?
2451 grep -v '^ *+' conftest.er1 >conftest.err
2452 rm -f conftest.er1
2453 cat conftest.err >&5
2454 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2455 (exit $ac_status); } && {
2456 test -z "$ac_c_werror_flag" ||
2457 test ! -s conftest.err
2458 } && test -s conftest.$ac_objext; then
2459 ac_compiler_gnu=yes
2460 else
2461 $as_echo "$as_me: failed program was:" >&5
2462 sed 's/^/| /' conftest.$ac_ext >&5
2464 ac_compiler_gnu=no
2467 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2468 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2471 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2472 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
2473 if test $ac_compiler_gnu = yes; then
2474 GCC=yes
2475 else
2476 GCC=
2478 ac_test_CFLAGS=${CFLAGS+set}
2479 ac_save_CFLAGS=$CFLAGS
2480 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2481 $as_echo_n "checking whether $CC accepts -g... " >&6; }
2482 if test "${ac_cv_prog_cc_g+set}" = set; then
2483 $as_echo_n "(cached) " >&6
2484 else
2485 ac_save_c_werror_flag=$ac_c_werror_flag
2486 ac_c_werror_flag=yes
2487 ac_cv_prog_cc_g=no
2488 CFLAGS="-g"
2489 cat >conftest.$ac_ext <<_ACEOF
2490 /* confdefs.h. */
2491 _ACEOF
2492 cat confdefs.h >>conftest.$ac_ext
2493 cat >>conftest.$ac_ext <<_ACEOF
2494 /* end confdefs.h. */
2497 main ()
2501 return 0;
2503 _ACEOF
2504 rm -f conftest.$ac_objext
2505 if { (ac_try="$ac_compile"
2506 case "(($ac_try" in
2507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2508 *) ac_try_echo=$ac_try;;
2509 esac
2510 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2511 $as_echo "$ac_try_echo") >&5
2512 (eval "$ac_compile") 2>conftest.er1
2513 ac_status=$?
2514 grep -v '^ *+' conftest.er1 >conftest.err
2515 rm -f conftest.er1
2516 cat conftest.err >&5
2517 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2518 (exit $ac_status); } && {
2519 test -z "$ac_c_werror_flag" ||
2520 test ! -s conftest.err
2521 } && test -s conftest.$ac_objext; then
2522 ac_cv_prog_cc_g=yes
2523 else
2524 $as_echo "$as_me: failed program was:" >&5
2525 sed 's/^/| /' conftest.$ac_ext >&5
2527 CFLAGS=""
2528 cat >conftest.$ac_ext <<_ACEOF
2529 /* confdefs.h. */
2530 _ACEOF
2531 cat confdefs.h >>conftest.$ac_ext
2532 cat >>conftest.$ac_ext <<_ACEOF
2533 /* end confdefs.h. */
2536 main ()
2540 return 0;
2542 _ACEOF
2543 rm -f conftest.$ac_objext
2544 if { (ac_try="$ac_compile"
2545 case "(($ac_try" in
2546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2547 *) ac_try_echo=$ac_try;;
2548 esac
2549 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2550 $as_echo "$ac_try_echo") >&5
2551 (eval "$ac_compile") 2>conftest.er1
2552 ac_status=$?
2553 grep -v '^ *+' conftest.er1 >conftest.err
2554 rm -f conftest.er1
2555 cat conftest.err >&5
2556 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2557 (exit $ac_status); } && {
2558 test -z "$ac_c_werror_flag" ||
2559 test ! -s conftest.err
2560 } && test -s conftest.$ac_objext; then
2562 else
2563 $as_echo "$as_me: failed program was:" >&5
2564 sed 's/^/| /' conftest.$ac_ext >&5
2566 ac_c_werror_flag=$ac_save_c_werror_flag
2567 CFLAGS="-g"
2568 cat >conftest.$ac_ext <<_ACEOF
2569 /* confdefs.h. */
2570 _ACEOF
2571 cat confdefs.h >>conftest.$ac_ext
2572 cat >>conftest.$ac_ext <<_ACEOF
2573 /* end confdefs.h. */
2576 main ()
2580 return 0;
2582 _ACEOF
2583 rm -f conftest.$ac_objext
2584 if { (ac_try="$ac_compile"
2585 case "(($ac_try" in
2586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2587 *) ac_try_echo=$ac_try;;
2588 esac
2589 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2590 $as_echo "$ac_try_echo") >&5
2591 (eval "$ac_compile") 2>conftest.er1
2592 ac_status=$?
2593 grep -v '^ *+' conftest.er1 >conftest.err
2594 rm -f conftest.er1
2595 cat conftest.err >&5
2596 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2597 (exit $ac_status); } && {
2598 test -z "$ac_c_werror_flag" ||
2599 test ! -s conftest.err
2600 } && test -s conftest.$ac_objext; then
2601 ac_cv_prog_cc_g=yes
2602 else
2603 $as_echo "$as_me: failed program was:" >&5
2604 sed 's/^/| /' conftest.$ac_ext >&5
2609 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2612 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2616 ac_c_werror_flag=$ac_save_c_werror_flag
2618 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2619 $as_echo "$ac_cv_prog_cc_g" >&6; }
2620 if test "$ac_test_CFLAGS" = set; then
2621 CFLAGS=$ac_save_CFLAGS
2622 elif test $ac_cv_prog_cc_g = yes; then
2623 if test "$GCC" = yes; then
2624 CFLAGS="-g -O2"
2625 else
2626 CFLAGS="-g"
2628 else
2629 if test "$GCC" = yes; then
2630 CFLAGS="-O2"
2631 else
2632 CFLAGS=
2635 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2636 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
2637 if test "${ac_cv_prog_cc_c89+set}" = set; then
2638 $as_echo_n "(cached) " >&6
2639 else
2640 ac_cv_prog_cc_c89=no
2641 ac_save_CC=$CC
2642 cat >conftest.$ac_ext <<_ACEOF
2643 /* confdefs.h. */
2644 _ACEOF
2645 cat confdefs.h >>conftest.$ac_ext
2646 cat >>conftest.$ac_ext <<_ACEOF
2647 /* end confdefs.h. */
2648 #include <stdarg.h>
2649 #include <stdio.h>
2650 #include <sys/types.h>
2651 #include <sys/stat.h>
2652 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2653 struct buf { int x; };
2654 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2655 static char *e (p, i)
2656 char **p;
2657 int i;
2659 return p[i];
2661 static char *f (char * (*g) (char **, int), char **p, ...)
2663 char *s;
2664 va_list v;
2665 va_start (v,p);
2666 s = g (p, va_arg (v,int));
2667 va_end (v);
2668 return s;
2671 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2672 function prototypes and stuff, but not '\xHH' hex character constants.
2673 These don't provoke an error unfortunately, instead are silently treated
2674 as 'x'. The following induces an error, until -std is added to get
2675 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2676 array size at least. It's necessary to write '\x00'==0 to get something
2677 that's true only with -std. */
2678 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2680 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2681 inside strings and character constants. */
2682 #define FOO(x) 'x'
2683 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2685 int test (int i, double x);
2686 struct s1 {int (*f) (int a);};
2687 struct s2 {int (*f) (double a);};
2688 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2689 int argc;
2690 char **argv;
2692 main ()
2694 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2696 return 0;
2698 _ACEOF
2699 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2700 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2702 CC="$ac_save_CC $ac_arg"
2703 rm -f conftest.$ac_objext
2704 if { (ac_try="$ac_compile"
2705 case "(($ac_try" in
2706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2707 *) ac_try_echo=$ac_try;;
2708 esac
2709 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2710 $as_echo "$ac_try_echo") >&5
2711 (eval "$ac_compile") 2>conftest.er1
2712 ac_status=$?
2713 grep -v '^ *+' conftest.er1 >conftest.err
2714 rm -f conftest.er1
2715 cat conftest.err >&5
2716 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2717 (exit $ac_status); } && {
2718 test -z "$ac_c_werror_flag" ||
2719 test ! -s conftest.err
2720 } && test -s conftest.$ac_objext; then
2721 ac_cv_prog_cc_c89=$ac_arg
2722 else
2723 $as_echo "$as_me: failed program was:" >&5
2724 sed 's/^/| /' conftest.$ac_ext >&5
2729 rm -f core conftest.err conftest.$ac_objext
2730 test "x$ac_cv_prog_cc_c89" != "xno" && break
2731 done
2732 rm -f conftest.$ac_ext
2733 CC=$ac_save_CC
2736 # AC_CACHE_VAL
2737 case "x$ac_cv_prog_cc_c89" in
2739 { $as_echo "$as_me:$LINENO: result: none needed" >&5
2740 $as_echo "none needed" >&6; } ;;
2741 xno)
2742 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
2743 $as_echo "unsupported" >&6; } ;;
2745 CC="$CC $ac_cv_prog_cc_c89"
2746 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2747 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
2748 esac
2751 ac_ext=c
2752 ac_cpp='$CPP $CPPFLAGS'
2753 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2754 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2755 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2757 if test $host != $build; then
2758 for ac_prog in gcc cc
2760 # Extract the first word of "$ac_prog", so it can be a program name with args.
2761 set dummy $ac_prog; ac_word=$2
2762 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2763 $as_echo_n "checking for $ac_word... " >&6; }
2764 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
2765 $as_echo_n "(cached) " >&6
2766 else
2767 if test -n "$BUILD_CC"; then
2768 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
2769 else
2770 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2771 for as_dir in $PATH
2773 IFS=$as_save_IFS
2774 test -z "$as_dir" && as_dir=.
2775 for ac_exec_ext in '' $ac_executable_extensions; do
2776 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2777 ac_cv_prog_BUILD_CC="$ac_prog"
2778 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2779 break 2
2781 done
2782 done
2783 IFS=$as_save_IFS
2787 BUILD_CC=$ac_cv_prog_BUILD_CC
2788 if test -n "$BUILD_CC"; then
2789 { $as_echo "$as_me:$LINENO: result: $BUILD_CC" >&5
2790 $as_echo "$BUILD_CC" >&6; }
2791 else
2792 { $as_echo "$as_me:$LINENO: result: no" >&5
2793 $as_echo "no" >&6; }
2797 test -n "$BUILD_CC" && break
2798 done
2802 ac_ext=c
2803 ac_cpp='$CPP $CPPFLAGS'
2804 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2805 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2806 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2807 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2808 $as_echo_n "checking how to run the C preprocessor... " >&6; }
2809 # On Suns, sometimes $CPP names a directory.
2810 if test -n "$CPP" && test -d "$CPP"; then
2811 CPP=
2813 if test -z "$CPP"; then
2814 if test "${ac_cv_prog_CPP+set}" = set; then
2815 $as_echo_n "(cached) " >&6
2816 else
2817 # Double quotes because CPP needs to be expanded
2818 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2820 ac_preproc_ok=false
2821 for ac_c_preproc_warn_flag in '' yes
2823 # Use a header file that comes with gcc, so configuring glibc
2824 # with a fresh cross-compiler works.
2825 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2826 # <limits.h> exists even on freestanding compilers.
2827 # On the NeXT, cc -E runs the code through the compiler's parser,
2828 # not just through cpp. "Syntax error" is here to catch this case.
2829 cat >conftest.$ac_ext <<_ACEOF
2830 /* confdefs.h. */
2831 _ACEOF
2832 cat confdefs.h >>conftest.$ac_ext
2833 cat >>conftest.$ac_ext <<_ACEOF
2834 /* end confdefs.h. */
2835 #ifdef __STDC__
2836 # include <limits.h>
2837 #else
2838 # include <assert.h>
2839 #endif
2840 Syntax error
2841 _ACEOF
2842 if { (ac_try="$ac_cpp conftest.$ac_ext"
2843 case "(($ac_try" in
2844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2845 *) ac_try_echo=$ac_try;;
2846 esac
2847 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2848 $as_echo "$ac_try_echo") >&5
2849 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2850 ac_status=$?
2851 grep -v '^ *+' conftest.er1 >conftest.err
2852 rm -f conftest.er1
2853 cat conftest.err >&5
2854 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2855 (exit $ac_status); } >/dev/null && {
2856 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2857 test ! -s conftest.err
2858 }; then
2860 else
2861 $as_echo "$as_me: failed program was:" >&5
2862 sed 's/^/| /' conftest.$ac_ext >&5
2864 # Broken: fails on valid input.
2865 continue
2868 rm -f conftest.err conftest.$ac_ext
2870 # OK, works on sane cases. Now check whether nonexistent headers
2871 # can be detected and how.
2872 cat >conftest.$ac_ext <<_ACEOF
2873 /* confdefs.h. */
2874 _ACEOF
2875 cat confdefs.h >>conftest.$ac_ext
2876 cat >>conftest.$ac_ext <<_ACEOF
2877 /* end confdefs.h. */
2878 #include <ac_nonexistent.h>
2879 _ACEOF
2880 if { (ac_try="$ac_cpp conftest.$ac_ext"
2881 case "(($ac_try" in
2882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2883 *) ac_try_echo=$ac_try;;
2884 esac
2885 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2886 $as_echo "$ac_try_echo") >&5
2887 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2888 ac_status=$?
2889 grep -v '^ *+' conftest.er1 >conftest.err
2890 rm -f conftest.er1
2891 cat conftest.err >&5
2892 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2893 (exit $ac_status); } >/dev/null && {
2894 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2895 test ! -s conftest.err
2896 }; then
2897 # Broken: success on invalid input.
2898 continue
2899 else
2900 $as_echo "$as_me: failed program was:" >&5
2901 sed 's/^/| /' conftest.$ac_ext >&5
2903 # Passes both tests.
2904 ac_preproc_ok=:
2905 break
2908 rm -f conftest.err conftest.$ac_ext
2910 done
2911 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2912 rm -f conftest.err conftest.$ac_ext
2913 if $ac_preproc_ok; then
2914 break
2917 done
2918 ac_cv_prog_CPP=$CPP
2921 CPP=$ac_cv_prog_CPP
2922 else
2923 ac_cv_prog_CPP=$CPP
2925 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
2926 $as_echo "$CPP" >&6; }
2927 ac_preproc_ok=false
2928 for ac_c_preproc_warn_flag in '' yes
2930 # Use a header file that comes with gcc, so configuring glibc
2931 # with a fresh cross-compiler works.
2932 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2933 # <limits.h> exists even on freestanding compilers.
2934 # On the NeXT, cc -E runs the code through the compiler's parser,
2935 # not just through cpp. "Syntax error" is here to catch this case.
2936 cat >conftest.$ac_ext <<_ACEOF
2937 /* confdefs.h. */
2938 _ACEOF
2939 cat confdefs.h >>conftest.$ac_ext
2940 cat >>conftest.$ac_ext <<_ACEOF
2941 /* end confdefs.h. */
2942 #ifdef __STDC__
2943 # include <limits.h>
2944 #else
2945 # include <assert.h>
2946 #endif
2947 Syntax error
2948 _ACEOF
2949 if { (ac_try="$ac_cpp conftest.$ac_ext"
2950 case "(($ac_try" in
2951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2952 *) ac_try_echo=$ac_try;;
2953 esac
2954 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2955 $as_echo "$ac_try_echo") >&5
2956 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2957 ac_status=$?
2958 grep -v '^ *+' conftest.er1 >conftest.err
2959 rm -f conftest.er1
2960 cat conftest.err >&5
2961 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2962 (exit $ac_status); } >/dev/null && {
2963 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2964 test ! -s conftest.err
2965 }; then
2967 else
2968 $as_echo "$as_me: failed program was:" >&5
2969 sed 's/^/| /' conftest.$ac_ext >&5
2971 # Broken: fails on valid input.
2972 continue
2975 rm -f conftest.err conftest.$ac_ext
2977 # OK, works on sane cases. Now check whether nonexistent headers
2978 # can be detected and how.
2979 cat >conftest.$ac_ext <<_ACEOF
2980 /* confdefs.h. */
2981 _ACEOF
2982 cat confdefs.h >>conftest.$ac_ext
2983 cat >>conftest.$ac_ext <<_ACEOF
2984 /* end confdefs.h. */
2985 #include <ac_nonexistent.h>
2986 _ACEOF
2987 if { (ac_try="$ac_cpp conftest.$ac_ext"
2988 case "(($ac_try" in
2989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2990 *) ac_try_echo=$ac_try;;
2991 esac
2992 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2993 $as_echo "$ac_try_echo") >&5
2994 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2995 ac_status=$?
2996 grep -v '^ *+' conftest.er1 >conftest.err
2997 rm -f conftest.er1
2998 cat conftest.err >&5
2999 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3000 (exit $ac_status); } >/dev/null && {
3001 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3002 test ! -s conftest.err
3003 }; then
3004 # Broken: success on invalid input.
3005 continue
3006 else
3007 $as_echo "$as_me: failed program was:" >&5
3008 sed 's/^/| /' conftest.$ac_ext >&5
3010 # Passes both tests.
3011 ac_preproc_ok=:
3012 break
3015 rm -f conftest.err conftest.$ac_ext
3017 done
3018 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3019 rm -f conftest.err conftest.$ac_ext
3020 if $ac_preproc_ok; then
3022 else
3023 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3024 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3025 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3026 See \`config.log' for more details." >&5
3027 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3028 See \`config.log' for more details." >&2;}
3029 { (exit 1); exit 1; }; }; }
3032 ac_ext=c
3033 ac_cpp='$CPP $CPPFLAGS'
3034 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3035 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3036 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3038 # We need the C++ compiler only for testing.
3039 ac_ext=cpp
3040 ac_cpp='$CXXCPP $CPPFLAGS'
3041 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3042 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3043 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3044 if test -z "$CXX"; then
3045 if test -n "$CCC"; then
3046 CXX=$CCC
3047 else
3048 if test -n "$ac_tool_prefix"; then
3049 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3051 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3052 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3053 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3054 $as_echo_n "checking for $ac_word... " >&6; }
3055 if test "${ac_cv_prog_CXX+set}" = set; then
3056 $as_echo_n "(cached) " >&6
3057 else
3058 if test -n "$CXX"; then
3059 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3060 else
3061 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3062 for as_dir in $PATH
3064 IFS=$as_save_IFS
3065 test -z "$as_dir" && as_dir=.
3066 for ac_exec_ext in '' $ac_executable_extensions; do
3067 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3068 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3069 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3070 break 2
3072 done
3073 done
3074 IFS=$as_save_IFS
3078 CXX=$ac_cv_prog_CXX
3079 if test -n "$CXX"; then
3080 { $as_echo "$as_me:$LINENO: result: $CXX" >&5
3081 $as_echo "$CXX" >&6; }
3082 else
3083 { $as_echo "$as_me:$LINENO: result: no" >&5
3084 $as_echo "no" >&6; }
3088 test -n "$CXX" && break
3089 done
3091 if test -z "$CXX"; then
3092 ac_ct_CXX=$CXX
3093 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3095 # Extract the first word of "$ac_prog", so it can be a program name with args.
3096 set dummy $ac_prog; ac_word=$2
3097 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3098 $as_echo_n "checking for $ac_word... " >&6; }
3099 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3100 $as_echo_n "(cached) " >&6
3101 else
3102 if test -n "$ac_ct_CXX"; then
3103 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3104 else
3105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3106 for as_dir in $PATH
3108 IFS=$as_save_IFS
3109 test -z "$as_dir" && as_dir=.
3110 for ac_exec_ext in '' $ac_executable_extensions; do
3111 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3112 ac_cv_prog_ac_ct_CXX="$ac_prog"
3113 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3114 break 2
3116 done
3117 done
3118 IFS=$as_save_IFS
3122 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3123 if test -n "$ac_ct_CXX"; then
3124 { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3125 $as_echo "$ac_ct_CXX" >&6; }
3126 else
3127 { $as_echo "$as_me:$LINENO: result: no" >&5
3128 $as_echo "no" >&6; }
3132 test -n "$ac_ct_CXX" && break
3133 done
3135 if test "x$ac_ct_CXX" = x; then
3136 CXX="g++"
3137 else
3138 case $cross_compiling:$ac_tool_warned in
3139 yes:)
3140 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3141 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3142 ac_tool_warned=yes ;;
3143 esac
3144 CXX=$ac_ct_CXX
3150 # Provide some information about the compiler.
3151 $as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
3152 set X $ac_compile
3153 ac_compiler=$2
3154 { (ac_try="$ac_compiler --version >&5"
3155 case "(($ac_try" in
3156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3157 *) ac_try_echo=$ac_try;;
3158 esac
3159 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3160 $as_echo "$ac_try_echo") >&5
3161 (eval "$ac_compiler --version >&5") 2>&5
3162 ac_status=$?
3163 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3164 (exit $ac_status); }
3165 { (ac_try="$ac_compiler -v >&5"
3166 case "(($ac_try" in
3167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3168 *) ac_try_echo=$ac_try;;
3169 esac
3170 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3171 $as_echo "$ac_try_echo") >&5
3172 (eval "$ac_compiler -v >&5") 2>&5
3173 ac_status=$?
3174 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3175 (exit $ac_status); }
3176 { (ac_try="$ac_compiler -V >&5"
3177 case "(($ac_try" in
3178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3179 *) ac_try_echo=$ac_try;;
3180 esac
3181 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3182 $as_echo "$ac_try_echo") >&5
3183 (eval "$ac_compiler -V >&5") 2>&5
3184 ac_status=$?
3185 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3186 (exit $ac_status); }
3188 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3189 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3190 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3191 $as_echo_n "(cached) " >&6
3192 else
3193 cat >conftest.$ac_ext <<_ACEOF
3194 /* confdefs.h. */
3195 _ACEOF
3196 cat confdefs.h >>conftest.$ac_ext
3197 cat >>conftest.$ac_ext <<_ACEOF
3198 /* end confdefs.h. */
3201 main ()
3203 #ifndef __GNUC__
3204 choke me
3205 #endif
3208 return 0;
3210 _ACEOF
3211 rm -f conftest.$ac_objext
3212 if { (ac_try="$ac_compile"
3213 case "(($ac_try" in
3214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3215 *) ac_try_echo=$ac_try;;
3216 esac
3217 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3218 $as_echo "$ac_try_echo") >&5
3219 (eval "$ac_compile") 2>conftest.er1
3220 ac_status=$?
3221 grep -v '^ *+' conftest.er1 >conftest.err
3222 rm -f conftest.er1
3223 cat conftest.err >&5
3224 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3225 (exit $ac_status); } && {
3226 test -z "$ac_cxx_werror_flag" ||
3227 test ! -s conftest.err
3228 } && test -s conftest.$ac_objext; then
3229 ac_compiler_gnu=yes
3230 else
3231 $as_echo "$as_me: failed program was:" >&5
3232 sed 's/^/| /' conftest.$ac_ext >&5
3234 ac_compiler_gnu=no
3237 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3238 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3241 { $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3242 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3243 if test $ac_compiler_gnu = yes; then
3244 GXX=yes
3245 else
3246 GXX=
3248 ac_test_CXXFLAGS=${CXXFLAGS+set}
3249 ac_save_CXXFLAGS=$CXXFLAGS
3250 { $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3251 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3252 if test "${ac_cv_prog_cxx_g+set}" = set; then
3253 $as_echo_n "(cached) " >&6
3254 else
3255 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3256 ac_cxx_werror_flag=yes
3257 ac_cv_prog_cxx_g=no
3258 CXXFLAGS="-g"
3259 cat >conftest.$ac_ext <<_ACEOF
3260 /* confdefs.h. */
3261 _ACEOF
3262 cat confdefs.h >>conftest.$ac_ext
3263 cat >>conftest.$ac_ext <<_ACEOF
3264 /* end confdefs.h. */
3267 main ()
3271 return 0;
3273 _ACEOF
3274 rm -f conftest.$ac_objext
3275 if { (ac_try="$ac_compile"
3276 case "(($ac_try" in
3277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3278 *) ac_try_echo=$ac_try;;
3279 esac
3280 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3281 $as_echo "$ac_try_echo") >&5
3282 (eval "$ac_compile") 2>conftest.er1
3283 ac_status=$?
3284 grep -v '^ *+' conftest.er1 >conftest.err
3285 rm -f conftest.er1
3286 cat conftest.err >&5
3287 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3288 (exit $ac_status); } && {
3289 test -z "$ac_cxx_werror_flag" ||
3290 test ! -s conftest.err
3291 } && test -s conftest.$ac_objext; then
3292 ac_cv_prog_cxx_g=yes
3293 else
3294 $as_echo "$as_me: failed program was:" >&5
3295 sed 's/^/| /' conftest.$ac_ext >&5
3297 CXXFLAGS=""
3298 cat >conftest.$ac_ext <<_ACEOF
3299 /* confdefs.h. */
3300 _ACEOF
3301 cat confdefs.h >>conftest.$ac_ext
3302 cat >>conftest.$ac_ext <<_ACEOF
3303 /* end confdefs.h. */
3306 main ()
3310 return 0;
3312 _ACEOF
3313 rm -f conftest.$ac_objext
3314 if { (ac_try="$ac_compile"
3315 case "(($ac_try" in
3316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3317 *) ac_try_echo=$ac_try;;
3318 esac
3319 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3320 $as_echo "$ac_try_echo") >&5
3321 (eval "$ac_compile") 2>conftest.er1
3322 ac_status=$?
3323 grep -v '^ *+' conftest.er1 >conftest.err
3324 rm -f conftest.er1
3325 cat conftest.err >&5
3326 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3327 (exit $ac_status); } && {
3328 test -z "$ac_cxx_werror_flag" ||
3329 test ! -s conftest.err
3330 } && test -s conftest.$ac_objext; then
3332 else
3333 $as_echo "$as_me: failed program was:" >&5
3334 sed 's/^/| /' conftest.$ac_ext >&5
3336 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3337 CXXFLAGS="-g"
3338 cat >conftest.$ac_ext <<_ACEOF
3339 /* confdefs.h. */
3340 _ACEOF
3341 cat confdefs.h >>conftest.$ac_ext
3342 cat >>conftest.$ac_ext <<_ACEOF
3343 /* end confdefs.h. */
3346 main ()
3350 return 0;
3352 _ACEOF
3353 rm -f conftest.$ac_objext
3354 if { (ac_try="$ac_compile"
3355 case "(($ac_try" in
3356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3357 *) ac_try_echo=$ac_try;;
3358 esac
3359 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3360 $as_echo "$ac_try_echo") >&5
3361 (eval "$ac_compile") 2>conftest.er1
3362 ac_status=$?
3363 grep -v '^ *+' conftest.er1 >conftest.err
3364 rm -f conftest.er1
3365 cat conftest.err >&5
3366 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3367 (exit $ac_status); } && {
3368 test -z "$ac_cxx_werror_flag" ||
3369 test ! -s conftest.err
3370 } && test -s conftest.$ac_objext; then
3371 ac_cv_prog_cxx_g=yes
3372 else
3373 $as_echo "$as_me: failed program was:" >&5
3374 sed 's/^/| /' conftest.$ac_ext >&5
3379 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3382 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3386 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3388 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3389 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3390 if test "$ac_test_CXXFLAGS" = set; then
3391 CXXFLAGS=$ac_save_CXXFLAGS
3392 elif test $ac_cv_prog_cxx_g = yes; then
3393 if test "$GXX" = yes; then
3394 CXXFLAGS="-g -O2"
3395 else
3396 CXXFLAGS="-g"
3398 else
3399 if test "$GXX" = yes; then
3400 CXXFLAGS="-O2"
3401 else
3402 CXXFLAGS=
3405 ac_ext=c
3406 ac_cpp='$CPP $CPPFLAGS'
3407 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3408 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3409 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3412 if test "`cd $srcdir; /bin/pwd`" = "`/bin/pwd`"; then
3413 { { $as_echo "$as_me:$LINENO: error: you must configure in a separate build directory" >&5
3414 $as_echo "$as_me: error: you must configure in a separate build directory" >&2;}
3415 { (exit 1); exit 1; }; }
3418 # This will get text that should go into config.make.
3419 config_vars=
3421 # Check for a --with-gd argument and set libgd-LDFLAGS in config.make.
3423 # Check whether --with-gd was given.
3424 if test "${with_gd+set}" = set; then
3425 withval=$with_gd; case "$with_gd" in
3426 yes|''|no) ;;
3427 *) libgd_include="-I$withval/include"
3428 libgd_ldflags="-L$withval/lib" ;;
3429 esac
3434 # Check whether --with-gd-include was given.
3435 if test "${with_gd_include+set}" = set; then
3436 withval=$with_gd_include; case "$with_gd_include" in
3437 ''|no) ;;
3438 *) libgd_include="-I$withval" ;;
3439 esac
3444 # Check whether --with-gd-lib was given.
3445 if test "${with_gd_lib+set}" = set; then
3446 withval=$with_gd_lib; case "$with_gd_lib" in
3447 ''|no) ;;
3448 *) libgd_ldflags="-L$withval" ;;
3449 esac
3454 if test -n "$libgd_include"; then
3455 config_vars="$config_vars
3456 CFLAGS-memusagestat.c = $libgd_include"
3458 if test -n "$libgd_ldflags"; then
3459 config_vars="$config_vars
3460 libgd-LDFLAGS = $libgd_ldflags"
3464 # Check whether --with-fp was given.
3465 if test "${with_fp+set}" = set; then
3466 withval=$with_fp; with_fp=$withval
3467 else
3468 with_fp=yes
3473 # Check whether --with-binutils was given.
3474 if test "${with_binutils+set}" = set; then
3475 withval=$with_binutils; path_binutils=$withval
3476 else
3477 path_binutils=''
3481 # Check whether --with-elf was given.
3482 if test "${with_elf+set}" = set; then
3483 withval=$with_elf; elf=$withval
3484 else
3485 elf=no
3489 # Check whether --with-selinux was given.
3490 if test "${with_selinux+set}" = set; then
3491 withval=$with_selinux; with_selinux=$withval
3492 else
3493 with_selinux=auto
3497 # Check whether --with-xcoff was given.
3498 if test "${with_xcoff+set}" = set; then
3499 withval=$with_xcoff; xcoff=$withval
3500 else
3501 xcoff=no
3505 # Check whether --with-cvs was given.
3506 if test "${with_cvs+set}" = set; then
3507 withval=$with_cvs; with_cvs=$withval
3508 else
3509 with_cvs=yes
3512 if test "$with_cvs" = yes; then
3513 if test -d $srcdir/CVS && grep :pserver: $srcdir/CVS/Root > /dev/null
3514 then
3515 with_cvs=no
3521 # Check whether --with-headers was given.
3522 if test "${with_headers+set}" = set; then
3523 withval=$with_headers; sysheaders=$withval
3524 else
3525 sysheaders=''
3529 # Check whether --enable-sanity-checks was given.
3530 if test "${enable_sanity_checks+set}" = set; then
3531 enableval=$enable_sanity_checks; enable_sanity=$enableval
3532 else
3533 enable_sanity=yes
3538 # Check whether --enable-check-abi was given.
3539 if test "${enable_check_abi+set}" = set; then
3540 enableval=$enable_check_abi; enable_check_abi=$enableval
3541 else
3542 enable_check_abi=no
3546 static=yes
3547 # Check whether --enable-shared was given.
3548 if test "${enable_shared+set}" = set; then
3549 enableval=$enable_shared; shared=$enableval
3550 else
3551 shared=default
3554 # Check whether --enable-profile was given.
3555 if test "${enable_profile+set}" = set; then
3556 enableval=$enable_profile; profile=$enableval
3557 else
3558 profile=no
3561 # Check whether --enable-omitfp was given.
3562 if test "${enable_omitfp+set}" = set; then
3563 enableval=$enable_omitfp; omitfp=$enableval
3564 else
3565 omitfp=no
3568 # Check whether --enable-bounded was given.
3569 if test "${enable_bounded+set}" = set; then
3570 enableval=$enable_bounded; bounded=$enableval
3571 else
3572 bounded=no
3575 # Check whether --enable-versioning was given.
3576 if test "${enable_versioning+set}" = set; then
3577 enableval=$enable_versioning; enable_versioning=$enableval
3578 else
3579 enable_versioning=yes
3583 # Check whether --enable-oldest-abi was given.
3584 if test "${enable_oldest_abi+set}" = set; then
3585 enableval=$enable_oldest_abi; oldest_abi=$enableval
3586 else
3587 oldest_abi=no
3590 if test "$oldest_abi" = yes || test "$oldest_abi" = no; then
3591 oldest_abi=default
3592 else
3593 cat >>confdefs.h <<_ACEOF
3594 #define GLIBC_OLDEST_ABI "$oldest_abi"
3595 _ACEOF
3600 # Check whether --enable-stackguard-randomization was given.
3601 if test "${enable_stackguard_randomization+set}" = set; then
3602 enableval=$enable_stackguard_randomization; enable_stackguard_randomize=$enableval
3603 else
3604 enable_stackguard_randomize=no
3607 if test "$enable_stackguard_randomize" = yes; then
3608 cat >>confdefs.h <<\_ACEOF
3609 #define ENABLE_STACKGUARD_RANDOMIZE 1
3610 _ACEOF
3614 # Check whether --enable-add-ons was given.
3615 if test "${enable_add_ons+set}" = set; then
3616 enableval=$enable_add_ons;
3617 else
3618 enable_add_ons=yes
3623 # Check whether --with-tls was given.
3624 if test "${with_tls+set}" = set; then
3625 withval=$with_tls; usetls=$withval
3626 else
3627 usetls=yes
3632 # Check whether --with-__thread was given.
3633 if test "${with___thread+set}" = set; then
3634 withval=$with___thread; use__thread=$withval
3635 else
3636 use__thread=yes
3640 # Check whether --enable-hidden-plt was given.
3641 if test "${enable_hidden_plt+set}" = set; then
3642 enableval=$enable_hidden_plt; hidden=$enableval
3643 else
3644 hidden=yes
3647 if test "x$hidden" = xno; then
3648 cat >>confdefs.h <<\_ACEOF
3649 #define NO_HIDDEN 1
3650 _ACEOF
3654 # Check whether --enable-bind-now was given.
3655 if test "${enable_bind_now+set}" = set; then
3656 enableval=$enable_bind_now; bindnow=$enableval
3657 else
3658 bindnow=no
3663 # Check whether --enable-static-nss was given.
3664 if test "${enable_static_nss+set}" = set; then
3665 enableval=$enable_static_nss; static_nss=$enableval
3666 else
3667 static_nss=no
3670 if test x"$static_nss" = xyes || test x"$shared" = xno; then
3671 static_nss=yes
3672 cat >>confdefs.h <<\_ACEOF
3673 #define DO_STATIC_NSS 1
3674 _ACEOF
3678 # Check whether --enable-force-install was given.
3679 if test "${enable_force_install+set}" = set; then
3680 enableval=$enable_force_install; force_install=$enableval
3681 else
3682 force_install=yes
3687 # Check whether --enable-kernel was given.
3688 if test "${enable_kernel+set}" = set; then
3689 enableval=$enable_kernel; minimum_kernel=$enableval
3692 if test "$minimum_kernel" = yes || test "$minimum_kernel" = no; then
3693 # Better nothing than this.
3694 minimum_kernel=""
3695 else
3696 if test "$minimum_kernel" = current; then
3697 minimum_kernel=`uname -r 2>/dev/null` || minimum_kernel=
3701 # Check whether --enable-all-warnings was given.
3702 if test "${enable_all_warnings+set}" = set; then
3703 enableval=$enable_all_warnings; all_warnings=$enableval
3708 # Check whether --enable-multi-arch was given.
3709 if test "${enable_multi_arch+set}" = set; then
3710 enableval=$enable_multi_arch; multi_arch=$enableval
3711 else
3712 multi_arch=no
3715 if test x"$multi_arch" = xyes; then
3716 cat >>confdefs.h <<\_ACEOF
3717 #define USE_MULTIARCH 1
3718 _ACEOF
3720 multi_arch_d=/multiarch
3724 # Check whether --enable-experimental-malloc was given.
3725 if test "${enable_experimental_malloc+set}" = set; then
3726 enableval=$enable_experimental_malloc; experimental_malloc=$enableval
3731 # Check whether --enable-nss-crypt was given.
3732 if test "${enable_nss_crypt+set}" = set; then
3733 enableval=$enable_nss_crypt; nss_crypt=$enableval
3734 else
3735 nss_crypt=no
3738 if test x$nss_crypt = xyes; then
3739 nss_includes=-I$(nss-config --includedir 2>/dev/null)
3740 if test $? -ne 0; then
3741 { { $as_echo "$as_me:$LINENO: error: cannot find include directory with nss-config" >&5
3742 $as_echo "$as_me: error: cannot find include directory with nss-config" >&2;}
3743 { (exit 1); exit 1; }; }
3745 old_CFLAGS="$CFLAGS"
3746 CFLAGS="$CFLAGS $nss_includes"
3748 cat >conftest.$ac_ext <<_ACEOF
3749 typedef int PRBool;
3750 #include <hasht.h>
3751 #include <nsslowhash.h>
3752 void f (void) { NSSLOW_Init (); }
3753 _ACEOF
3754 rm -f conftest.$ac_objext
3755 if { (ac_try="$ac_compile"
3756 case "(($ac_try" in
3757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3758 *) ac_try_echo=$ac_try;;
3759 esac
3760 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3761 $as_echo "$ac_try_echo") >&5
3762 (eval "$ac_compile") 2>conftest.er1
3763 ac_status=$?
3764 grep -v '^ *+' conftest.er1 >conftest.err
3765 rm -f conftest.er1
3766 cat conftest.err >&5
3767 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3768 (exit $ac_status); } && {
3769 test -z "$ac_c_werror_flag" ||
3770 test ! -s conftest.err
3771 } && test -s conftest.$ac_objext; then
3772 libc_cv_nss_crypt=yes
3773 else
3774 $as_echo "$as_me: failed program was:" >&5
3775 sed 's/^/| /' conftest.$ac_ext >&5
3777 { { $as_echo "$as_me:$LINENO: error:
3778 cannot find NSS headers with lowlevel hash function interfaces" >&5
3779 $as_echo "$as_me: error:
3780 cannot find NSS headers with lowlevel hash function interfaces" >&2;}
3781 { (exit 1); exit 1; }; }
3784 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3785 old_LIBS="$LIBS"
3786 LIBS="$LIBS -lfreebl3"
3787 cat >conftest.$ac_ext <<_ACEOF
3788 /* confdefs.h. */
3789 _ACEOF
3790 cat confdefs.h >>conftest.$ac_ext
3791 cat >>conftest.$ac_ext <<_ACEOF
3792 /* end confdefs.h. */
3793 typedef int PRBool;
3794 #include <hasht.h>
3795 #include <nsslowhash.h>
3797 main ()
3799 NSSLOW_Init();
3801 return 0;
3803 _ACEOF
3804 rm -f conftest.$ac_objext conftest$ac_exeext
3805 if { (ac_try="$ac_link"
3806 case "(($ac_try" in
3807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3808 *) ac_try_echo=$ac_try;;
3809 esac
3810 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3811 $as_echo "$ac_try_echo") >&5
3812 (eval "$ac_link") 2>conftest.er1
3813 ac_status=$?
3814 grep -v '^ *+' conftest.er1 >conftest.err
3815 rm -f conftest.er1
3816 cat conftest.err >&5
3817 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3818 (exit $ac_status); } && {
3819 test -z "$ac_c_werror_flag" ||
3820 test ! -s conftest.err
3821 } && test -s conftest$ac_exeext && {
3822 test "$cross_compiling" = yes ||
3823 $as_test_x conftest$ac_exeext
3824 }; then
3825 libc_cv_nss_crypt=yes
3826 else
3827 $as_echo "$as_me: failed program was:" >&5
3828 sed 's/^/| /' conftest.$ac_ext >&5
3830 { { $as_echo "$as_me:$LINENO: error:
3831 cannot link program using lowlevel NSS hash functions" >&5
3832 $as_echo "$as_me: error:
3833 cannot link program using lowlevel NSS hash functions" >&2;}
3834 { (exit 1); exit 1; }; }
3837 rm -rf conftest.dSYM
3838 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3839 conftest$ac_exeext conftest.$ac_ext
3840 CFLAGS="$old_CFLAGS"
3841 LIBS="$old_LIBS"
3842 else
3843 libc_cv_nss_crypt=no
3847 # Make sure we can run config.sub.
3848 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3849 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3850 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3851 { (exit 1); exit 1; }; }
3853 { $as_echo "$as_me:$LINENO: checking build system type" >&5
3854 $as_echo_n "checking build system type... " >&6; }
3855 if test "${ac_cv_build+set}" = set; then
3856 $as_echo_n "(cached) " >&6
3857 else
3858 ac_build_alias=$build_alias
3859 test "x$ac_build_alias" = x &&
3860 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3861 test "x$ac_build_alias" = x &&
3862 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3863 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3864 { (exit 1); exit 1; }; }
3865 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3866 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3867 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3868 { (exit 1); exit 1; }; }
3871 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3872 $as_echo "$ac_cv_build" >&6; }
3873 case $ac_cv_build in
3874 *-*-*) ;;
3875 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3876 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
3877 { (exit 1); exit 1; }; };;
3878 esac
3879 build=$ac_cv_build
3880 ac_save_IFS=$IFS; IFS='-'
3881 set x $ac_cv_build
3882 shift
3883 build_cpu=$1
3884 build_vendor=$2
3885 shift; shift
3886 # Remember, the first character of IFS is used to create $*,
3887 # except with old shells:
3888 build_os=$*
3889 IFS=$ac_save_IFS
3890 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3893 { $as_echo "$as_me:$LINENO: checking host system type" >&5
3894 $as_echo_n "checking host system type... " >&6; }
3895 if test "${ac_cv_host+set}" = set; then
3896 $as_echo_n "(cached) " >&6
3897 else
3898 if test "x$host_alias" = x; then
3899 ac_cv_host=$ac_cv_build
3900 else
3901 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3902 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3903 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3904 { (exit 1); exit 1; }; }
3908 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3909 $as_echo "$ac_cv_host" >&6; }
3910 case $ac_cv_host in
3911 *-*-*) ;;
3912 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3913 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
3914 { (exit 1); exit 1; }; };;
3915 esac
3916 host=$ac_cv_host
3917 ac_save_IFS=$IFS; IFS='-'
3918 set x $ac_cv_host
3919 shift
3920 host_cpu=$1
3921 host_vendor=$2
3922 shift; shift
3923 # Remember, the first character of IFS is used to create $*,
3924 # except with old shells:
3925 host_os=$*
3926 IFS=$ac_save_IFS
3927 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3931 # The way shlib-versions is used to generate soversions.mk uses a
3932 # fairly simplistic model for name recognition that can't distinguish
3933 # i486-pc-linux-gnu fully from i486-pc-gnu. So we mutate a $host_os
3934 # of `gnu*' here to be `gnu-gnu*' just so that shlib-versions can
3935 # tell. This doesn't get used much beyond that, so it's fairly safe.
3936 case "$host_os" in
3937 linux*)
3939 gnu*)
3940 host_os=`echo $host_os | sed -e 's/gnu/gnu-gnu/'`
3942 esac
3944 # We keep the original values in `$config_*' and never modify them, so we
3945 # can write them unchanged into config.make. Everything else uses
3946 # $machine, $vendor, and $os, and changes them whenever convenient.
3947 config_machine=$host_cpu config_vendor=$host_vendor config_os=$host_os
3949 # Don't allow vendor == "unknown"
3950 test "$config_vendor" = unknown && config_vendor=
3951 config_os="`echo $config_os | sed 's/^unknown-//'`"
3953 # Some configurations imply other options.
3954 case "$host_os" in
3955 # i586-linuxaout is mangled into i586-pc-linux-gnuaout
3956 linux*ecoff* | linux*aout* | gnu*aout* | gnu*ecoff*)
3958 gnu* | linux* | freebsd* | netbsd* | sysv4* | solaris2* | irix6*)
3959 # These systems (almost) always use the ELF format.
3960 elf=yes
3962 aix*)
3963 # These systems are always xcoff
3964 xcoff=yes
3965 elf=no
3967 esac
3969 # The configure fragment of an add-on port can modify these to supplement
3970 # or override the table in the case statement below. No fragment should
3971 # ever change the config_* variables, however.
3972 machine=$config_machine
3973 vendor=$config_vendor
3974 os=$config_os
3975 base_os=''
3977 # config.guess on some IBM machines says `rs6000' instead of `powerpc'.
3978 # Unify this here.
3979 if test "$machine" = rs6000; then
3980 machine="powerpc"
3983 # Braindead PowerPC box with absolutely no FPU.
3984 case "$machine-$host_os" in
3985 powerpc*-*soft)
3986 with_fp=no
3988 esac
3990 submachine=
3992 # Check whether --with-cpu was given.
3993 if test "${with_cpu+set}" = set; then
3994 withval=$with_cpu; case "$withval" in
3995 yes|'') { { $as_echo "$as_me:$LINENO: error: --with-cpu requires an argument" >&5
3996 $as_echo "$as_me: error: --with-cpu requires an argument" >&2;}
3997 { (exit 1); exit 1; }; } ;;
3998 no) ;;
3999 *) submachine="$withval" ;;
4000 esac
4005 # An add-on can set this when it wants to disable the sanity check below.
4006 libc_config_ok=no
4010 subdirs="$subdirs "
4013 case "$enable_add_ons" in
4014 ''|no) add_ons= ;;
4015 yes|'*')
4016 add_ons=`cd $srcdir && ls -d 2> /dev/null */configure */sysdeps |
4017 sed 's@/[^/]*$@@' | sort | uniq`
4018 add_ons_automatic=yes
4020 *) add_ons=`echo "$enable_add_ons" | sed 's/,/ /g'`
4021 add_ons_automatic=no ;;
4022 esac
4024 configured_add_ons=
4025 add_ons_sfx=
4026 add_ons_pfx=
4027 if test x"$add_ons" != x; then
4028 for f in $add_ons; do
4029 # Some sanity checks
4030 case "$f" in
4031 crypt)
4032 { { $as_echo "$as_me:$LINENO: error:
4033 *** It seems that you're using an old \`crypt' add-on. crypt is now
4034 *** part of glibc and using the old add-on will not work with this
4035 *** release. Start again with fresh sources and without the old
4036 *** \`crypt' add-on." >&5
4037 $as_echo "$as_me: error:
4038 *** It seems that you're using an old \`crypt' add-on. crypt is now
4039 *** part of glibc and using the old add-on will not work with this
4040 *** release. Start again with fresh sources and without the old
4041 *** \`crypt' add-on." >&2;}
4042 { (exit 1); exit 1; }; }
4044 localedata)
4045 { { $as_echo "$as_me:$LINENO: error:
4046 *** It seems that you're using an old \`localedata' add-on. localedata
4047 *** is now part of glibc and using the old add-on will not work with
4048 *** this release. Start again with fresh sources and without the old
4049 *** \`localedata' add-on." >&5
4050 $as_echo "$as_me: error:
4051 *** It seems that you're using an old \`localedata' add-on. localedata
4052 *** is now part of glibc and using the old add-on will not work with
4053 *** this release. Start again with fresh sources and without the old
4054 *** \`localedata' add-on." >&2;}
4055 { (exit 1); exit 1; }; }
4057 esac
4058 done
4060 # Now source each add-on's configure fragment.
4061 # The fragments can use $srcdir/$libc_add_on to find themselves,
4062 # and test $add_ons_automatic to see if they were explicitly requested.
4063 # A fragment can clear (or even change) $libc_add_on to affect
4064 # whether it goes into the list to be actually used in the build.
4065 use_add_ons=
4066 for libc_add_on in $add_ons; do
4067 # Test whether such a directory really exists.
4068 # It can be absolute, or relative to $srcdir, or relative to the build dir.
4069 case "$libc_add_on" in
4071 libc_add_on_srcdir=$libc_add_on
4074 test -d "$srcdir/$libc_add_on" || {
4075 if test -d "$libc_add_on"; then
4076 libc_add_on="`pwd`/$libc_add_on"
4077 else
4078 { { $as_echo "$as_me:$LINENO: error: add-on directory \"$libc_add_on\" does not exist" >&5
4079 $as_echo "$as_me: error: add-on directory \"$libc_add_on\" does not exist" >&2;}
4080 { (exit 1); exit 1; }; }
4083 libc_add_on_srcdir=$srcdir/$libc_add_on
4085 esac
4087 libc_add_on_frag=$libc_add_on_srcdir/configure
4088 libc_add_on_canonical=
4089 if test -r "$libc_add_on_frag"; then
4090 { $as_echo "$as_me:$LINENO: running configure fragment for add-on $libc_add_on" >&5
4091 $as_echo "$as_me: running configure fragment for add-on $libc_add_on" >&6;}
4092 libc_add_on_canonical=unknown
4093 libc_add_on_subdirs=
4094 . "$libc_add_on_frag"
4095 test -z "$libc_add_on" || {
4096 configured_add_ons="$configured_add_ons $libc_add_on"
4097 if test "x$libc_add_on_canonical" = xunknown; then
4098 { { $as_echo "$as_me:$LINENO: error: fragment must set \$libc_add_on_canonical" >&5
4099 $as_echo "$as_me: error: fragment must set \$libc_add_on_canonical" >&2;}
4100 { (exit 1); exit 1; }; }
4102 for d in $libc_add_on_subdirs; do
4103 case "$libc_add_on" in
4104 /*) subdir_srcdir="$libc_add_on" ;;
4105 *) subdir_srcdir="\$(..)$libc_add_on" ;;
4106 esac
4107 case "$d" in
4109 d="${libc_add_on_canonical:-$libc_add_on}"
4112 subdir_srcdir="$d"
4115 subdir_srcdir="$subdir_srcdir/$d"
4117 esac
4118 d=`echo "$d" | sed 's@/*$@@;s@^.*/@@'`
4119 add_on_subdirs="$add_on_subdirs $d"
4120 test "$subdir_srcdir" = "\$(..)$d" || config_vars="$config_vars
4121 $d-srcdir = $subdir_srcdir"
4122 done
4125 if test -n "$libc_add_on"; then
4126 if frags=`ls -d $libc_add_on_srcdir/sysdeps/*/preconfigure 2> /dev/null`
4127 then
4128 { $as_echo "$as_me:$LINENO: checking add-on $libc_add_on for preconfigure fragments" >&5
4129 $as_echo_n "checking add-on $libc_add_on for preconfigure fragments... " >&6; }
4130 for frag in $frags; do
4131 name=`echo "$frag" | sed 's@/[^/]*$@@;s@^.*/@@'`
4132 echo $ECHO_N "$name $ECHO_C" >&6
4133 . "$frag"
4134 done
4135 { $as_echo "$as_me:$LINENO: result: " >&5
4136 $as_echo "" >&6; }
4138 use_add_ons="$use_add_ons $libc_add_on"
4139 add_ons_pfx="$add_ons_pfx $libc_add_on/"
4140 test -z "$libc_add_on_canonical" ||
4141 add_ons_sfx="$add_ons_sfx /$libc_add_on_canonical"
4143 done
4144 # Use echo to strip excess whitespace.
4145 add_ons="`echo $use_add_ons`"
4152 ### I put this here to prevent those annoying emails from people who cannot
4153 ### read and try to compile glibc on unsupported platforms. --drepper
4155 ### By using the undocumented --enable-hacker-mode option for configure
4156 ### one can skip this test to make the configuration not fail for unsupported
4157 ### platforms.
4159 if test -z "$enable_hacker_mode" && test x"$libc_config_ok" != xyes; then
4160 case "$machine-$host_os" in
4161 *-linux* | *-gnu* | arm*-none* | powerpc-aix4.3.*)
4164 echo "*** The GNU C library is currently not available for this platform."
4165 echo "*** So far nobody cared to port it and if there is no volunteer it"
4166 echo "*** might never happen. So, if you have interest to see glibc on"
4167 echo "*** this platform visit"
4168 echo "*** http://www.gnu.org/software/libc/porting.html"
4169 echo "*** and join the group of porters"
4170 exit 1
4172 esac
4175 # Expand the configuration machine name into a subdirectory by architecture
4176 # type and particular chip. If an add-on configure fragment already set
4177 # base_machine, we don't change it.
4178 test -n "$base_machine" || case "$machine" in
4179 a29k | am29000) base_machine=a29k machine=a29k ;;
4180 c3[012]) base_machine=cx0 machine=cx0/c30 ;;
4181 c4[04]) base_machine=cx0 machine=cx0/c40 ;;
4182 i[34567]86) base_machine=i386 machine=i386/$machine ;;
4183 ia64) base_machine=ia64 machine=ia64 ;;
4184 m88???) base_machine=m88k machine=m88k/$machine ;;
4185 m88k) base_machine=m88k machine=m88k/m88100 ;;
4186 powerpc) base_machine=powerpc machine=powerpc/powerpc32 ;;
4187 powerpc64) base_machine=powerpc machine=powerpc/powerpc64 ;;
4188 s390) base_machine=s390 machine=s390/s390-32 ;;
4189 s390x) base_machine=s390 machine=s390/s390-64 ;;
4190 sh3*) base_machine=sh machine=sh/sh3 ;;
4191 sh4*) base_machine=sh machine=sh/sh4 ;;
4192 sparc | sparcv[67])
4193 base_machine=sparc machine=sparc/sparc32 ;;
4194 sparcv8 | supersparc | hypersparc)
4195 base_machine=sparc machine=sparc/sparc32/sparcv8 ;;
4196 sparcv8plus | sparcv8plusa | sparcv9)
4197 base_machine=sparc machine=sparc/sparc32/sparcv9 ;;
4198 sparcv8plusb | sparcv9b)
4199 base_machine=sparc machine=sparc/sparc32/sparcv9/sparcv9b ;;
4200 sparcv9v)
4201 base_machine=sparc machine=sparc/sparc32/sparcv9/sparcv9v ;;
4202 sparcv9v2)
4203 base_machine=sparc machine=sparc/sparc32/sparcv9/sparcv9v2 ;;
4204 sparc64)
4205 base_machine=sparc machine=sparc/sparc64 ;;
4206 sparc64b)
4207 base_machine=sparc machine=sparc/sparc64/sparcv9b ;;
4208 sparc64v)
4209 base_machine=sparc machine=sparc/sparc64/sparcv9v ;;
4210 sparc64v2)
4211 base_machine=sparc machine=sparc/sparc64/sparcv9v2 ;;
4212 *) base_machine=$machine ;;
4213 esac
4216 if test "$base_machine" = "i386"; then
4217 cat >>confdefs.h <<\_ACEOF
4218 #define USE_REGPARMS 1
4219 _ACEOF
4223 # Compute the list of sysdep directories for this configuration.
4224 # This can take a while to compute.
4225 sysdep_dir=$srcdir/sysdeps
4226 { $as_echo "$as_me:$LINENO: checking sysdep dirs" >&5
4227 $as_echo_n "checking sysdep dirs... " >&6; }
4228 # Make sco3.2v4 become sco3.2.4 and sunos4.1.1_U1 become sunos4.1.1.U1.
4229 os="`echo $os | sed 's/\([0-9A-Z]\)[v_]\([0-9A-Z]\)/\1.\2/g'`"
4231 test "x$base_os" != x || case "$os" in
4232 gnu*)
4233 base_os=mach/hurd ;;
4234 netbsd* | 386bsd* | freebsd* | bsdi*)
4235 base_os=unix/bsd/bsd4.4 ;;
4236 osf* | sunos* | ultrix* | newsos* | dynix* | *bsd*)
4237 base_os=unix/bsd ;;
4238 sysv* | isc* | esix* | sco* | minix* | irix4* | linux*)
4239 base_os=unix/sysv ;;
4240 irix6*)
4241 base_os=unix/sysv/irix6/$os ;;
4242 solaris[2-9]*)
4243 base_os=unix/sysv/sysv4 ;;
4244 hpux*)
4245 base_os=unix/sysv/hpux/$os ;;
4246 aix4.3*)
4247 base_os=unix/sysv/aix/aix4.3 ;;
4248 none)
4249 base_os=standalone ;;
4250 esac
4252 # For sunos4.1.1, try sunos4.1.1, then sunos4.1, then sunos4, then sunos.
4253 tail=$os
4254 ostry=$os
4255 while o=`echo $tail | sed 's/\.[^.]*$//'`; test $o != $tail; do
4256 ostry="$ostry /$o"
4257 tail=$o
4258 done
4259 o=`echo $tail | sed 's/[0-9]*$//'`
4260 if test $o != $tail; then
4261 ostry="$ostry /$o"
4263 # For linux-gnu, try linux-gnu, then linux.
4264 o=`echo $tail | sed 's/-.*$//'`
4265 if test $o != $tail; then
4266 ostry="$ostry /$o"
4269 # For unix/sysv/sysv4, try unix/sysv/sysv4, then unix/sysv, then unix.
4270 base=
4271 tail=$base_os
4272 while b=`echo $tail | sed 's@^\(.*\)/\([^/]*\)$@& \1@'`; test -n "$b"; do
4273 set $b
4274 base="$base /$1"
4275 tail="$2"
4276 done
4278 # For sparc/sparc32, try sparc/sparc32 and then sparc.
4279 mach=
4280 tail=$machine${submachine:+/$submachine}
4281 while m=`echo $tail | sed 's@^\(.*\)/\([^/]*\)$@& \1@'`; test -n "$m"; do
4282 set $m
4283 # Prepend the machine's FPU directory unless --without-fp.
4284 if test "$with_fp" = yes; then
4285 mach="$mach /$1/fpu"
4286 else
4287 mach="$mach /$1/nofpu"
4289 mach="$mach /$1"
4290 tail="$2"
4291 done
4294 # Find what sysdep directories exist.
4295 sysnames_add_ons=
4296 sysnames=
4297 for b in $base ''; do
4298 for m0 in $mach ''; do
4299 for v in /$vendor ''; do
4300 test "$v" = / && continue
4301 for o in /$ostry ''; do
4302 test "$o" = / && continue
4303 for m in $multi_arch_d $mach ''; do
4304 for d in $add_ons_pfx ''; do
4305 for a in $add_ons_sfx ''; do
4306 if test -n "$m0$m0sub$b$v$o$m$msub"; then
4307 try_srcdir="${srcdir}/"
4308 case "$d" in
4309 /*) try_srcdir= ;;
4310 esac
4311 try="${d}sysdeps$m0$m0sub$b$v$o$m$msub$a"
4312 test -n "$enable_debug_configure" &&
4313 echo "$0 DEBUG: try $try" >&2
4314 if test -d "$try_srcdir$try"; then
4315 sysnames="$sysnames $try"
4316 { test -n "$o" || test -n "$b"; } && os_used=t
4317 { test -n "$m" || test -n "$m0"; } && machine_used=t
4318 case x${m0:-$m} in
4319 x*/$submachine) submachine_used=t ;;
4320 esac
4321 if test -n "$d"; then
4322 case "$sysnames_add_ons" in
4323 *" $d "*) ;;
4324 *|'') sysnames_add_ons="$sysnames_add_ons $d" ;;
4325 esac
4329 done
4330 done
4331 done
4332 done
4333 done
4334 done
4335 done
4337 if test -z "$os_used" && test "$os" != none; then
4338 { { $as_echo "$as_me:$LINENO: error: Operating system $os is not supported." >&5
4339 $as_echo "$as_me: error: Operating system $os is not supported." >&2;}
4340 { (exit 1); exit 1; }; }
4342 if test -z "$machine_used" && test "$machine" != none; then
4343 { { $as_echo "$as_me:$LINENO: error: The $machine is not supported." >&5
4344 $as_echo "$as_me: error: The $machine is not supported." >&2;}
4345 { (exit 1); exit 1; }; }
4347 if test -z "$submachine_used" && test -n "$submachine"; then
4348 { { $as_echo "$as_me:$LINENO: error: The $submachine subspecies of $host_cpu is not supported." >&5
4349 $as_echo "$as_me: error: The $submachine subspecies of $host_cpu is not supported." >&2;}
4350 { (exit 1); exit 1; }; }
4354 # We have now validated the configuration.
4357 # If using ELF, look for an `elf' subdirectory of each machine directory.
4358 # We prepend these rather than inserting them whereever the machine appears
4359 # because things specified by the machine's ELF ABI should override
4360 # OS-specific things, and should always be the same for any OS on the
4361 # machine (otherwise what's the point of an ABI?).
4362 if test "$elf" = yes; then
4363 elf_dirs=
4364 for d in $add_ons_pfx ''; do
4365 for m in $mach; do
4366 if test -d $srcdir/${d}sysdeps$m/elf; then
4367 elf_dirs="$elf_dirs ${d}sysdeps$m/elf"
4369 done
4370 done
4371 sysnames="`echo $elf_dirs | sed -e 's,//,/,g'` $sysnames"
4375 # Expand the list of system names into a full list of directories
4376 # from each element's parent name and Implies file (if present).
4377 set $sysnames
4378 names=
4379 while test $# -gt 0; do
4380 name=$1
4381 shift
4383 case " $names " in *" $name "*)
4384 # Already in the list.
4385 continue
4386 esac
4388 # Report each name as we discover it, so there is no long pause in output.
4389 echo $ECHO_N "$name $ECHO_C" >&6
4391 name_base=`echo $name | sed -e 's@\(.*sysdeps\)/.*@\1@'`
4393 case $name in
4394 /*) xsrcdir= ;;
4395 *) xsrcdir=$srcdir/ ;;
4396 esac
4397 test -n "$enable_debug_configure" &&
4398 echo "DEBUG: name/Implies $xsrcdir$name/Implies" >&2
4400 if test -f $xsrcdir$name/Implies; then
4401 # Collect more names from the `Implies' file (removing comments).
4402 implied_candidate="`sed 's/#.*$//' < $xsrcdir$name/Implies`"
4403 implied=
4404 for x in $implied_candidate; do
4405 found=no
4406 if test -d $xsrcdir$name_base/$x; then
4407 implied="$implied $name_base/$x";
4408 found=yes
4410 for d in $add_ons_pfx ''; do
4411 try="${d}sysdeps/$x"
4412 case $d in
4413 /*) try_srcdir= ;;
4414 *) try_srcdir=$srcdir/ ;;
4415 esac
4416 test -n "$enable_debug_configure" &&
4417 echo "DEBUG: $name implied $x try($d) {$try_srcdir}$try" >&2
4418 if test $try != $xsrcdir$name_base/$x && test -d $try_srcdir$try;
4419 then
4420 implied="$implied $try"
4421 found=yes
4422 case "$sysnames_add_ons" in
4423 *" $d "*) ;;
4424 *|'') sysnames_add_ons="$sysnames_add_ons $d" ;;
4425 esac
4427 done
4428 if test $found = no; then
4429 { $as_echo "$as_me:$LINENO: WARNING: $name/Implies specifies nonexistent $x" >&5
4430 $as_echo "$as_me: WARNING: $name/Implies specifies nonexistent $x" >&2;}
4432 done
4433 else
4434 implied=
4437 # Add NAME to the list of names.
4438 names="$names $name"
4440 # Find the parent of NAME, using the empty string if it has none.
4441 parent="`echo $name | sed -n -e 's=/[^/]*$==' -e '/sysdeps$/q' -e p`"
4443 # Add the names implied by NAME, and NAME's parent (if it has one), to
4444 # the list of names to be processed (the argument list). We prepend the
4445 # implied names to the list and append the parent. We want implied
4446 # directories to come before further directories inferred from the
4447 # configuration components; this ensures that for sysv4, unix/common
4448 # (implied by unix/sysv/sysv4) comes before unix/sysv (in ostry (here $*)
4449 # after sysv4).
4450 sysnames="`echo $implied $* $parent`"
4451 test -n "$sysnames" && set $sysnames
4452 done
4454 # Add the default directories.
4455 default_sysnames=sysdeps/generic
4456 if test "$elf" = yes; then
4457 default_sysnames="sysdeps/generic/elf $default_sysnames"
4459 sysnames="$names $default_sysnames"
4461 # The other names were emitted during the scan.
4462 { $as_echo "$as_me:$LINENO: result: $default_sysnames" >&5
4463 $as_echo "$default_sysnames" >&6; }
4465 # Collect the list of add-ons that supply partial sysdeps trees.
4466 sysdeps_add_ons=
4467 for add_on in $add_ons; do
4468 case "$add_on" in
4469 /*) xsrcdir= ;;
4470 *) xsrcdir="$srcdir/" ;;
4471 esac
4473 test -d "$xsrcdir$add_on/sysdeps" || {
4474 case "$configured_add_ons " in
4475 *" $add_on "*) ;;
4476 *|'')
4477 { { $as_echo "$as_me:$LINENO: error: add-on $add_on has no configure fragment or sysdeps tree" >&5
4478 $as_echo "$as_me: error: add-on $add_on has no configure fragment or sysdeps tree" >&2;}
4479 { (exit 1); exit 1; }; }
4481 esac
4482 continue
4485 sysdeps_add_ons="$sysdeps_add_ons $add_on"
4486 case "$sysnames_add_ons" in
4487 *" $add_on/ "*) ;;
4488 *|'')
4489 { $as_echo "$as_me:$LINENO: WARNING: add-on $add_on contributed no sysdeps directories" >&5
4490 $as_echo "$as_me: WARNING: add-on $add_on contributed no sysdeps directories" >&2;}
4491 continue ;;
4492 esac
4494 found=no
4495 for d in $sysnames; do
4496 case "$d" in
4497 $add_on/sysdeps/*) ;;
4498 *) continue ;;
4499 esac
4500 (cd "$xsrcdir$d" && for f in *[!~]; do
4501 case "$f" in
4502 sys|bits)
4503 for ff in $f/*.h; do
4504 test -d "$ff" || { test -e "$ff" && exit 88; }
4505 done
4508 test -d "$f" || { test -e "$f" && exit 88; }
4510 esac
4511 done)
4512 if test $? -eq 88; then
4513 found=yes
4514 break
4516 done
4517 if test $found = no; then
4518 { $as_echo "$as_me:$LINENO: WARNING: add-on $add_on contributed no useful sysdeps directories" >&5
4519 $as_echo "$as_me: WARNING: add-on $add_on contributed no useful sysdeps directories" >&2;}
4521 done
4525 ### Locate tools.
4527 # Find a good install program. We prefer a C program (faster),
4528 # so one script is as good as another. But avoid the broken or
4529 # incompatible versions:
4530 # SysV /etc/install, /usr/sbin/install
4531 # SunOS /usr/etc/install
4532 # IRIX /sbin/install
4533 # AIX /bin/install
4534 # AmigaOS /C/install, which installs bootblocks on floppy discs
4535 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4536 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4537 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4538 # OS/2's system install, which has a completely different semantic
4539 # ./install, which can be erroneously created by make from ./install.sh.
4540 # Reject install programs that cannot install multiple files.
4541 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4542 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4543 if test -z "$INSTALL"; then
4544 if test "${ac_cv_path_install+set}" = set; then
4545 $as_echo_n "(cached) " >&6
4546 else
4547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4548 for as_dir in $PATH
4550 IFS=$as_save_IFS
4551 test -z "$as_dir" && as_dir=.
4552 # Account for people who put trailing slashes in PATH elements.
4553 case $as_dir/ in
4554 ./ | .// | /cC/* | \
4555 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4556 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4557 /usr/ucb/* ) ;;
4559 # OSF1 and SCO ODT 3.0 have their own names for install.
4560 # Don't use installbsd from OSF since it installs stuff as root
4561 # by default.
4562 for ac_prog in ginstall scoinst install; do
4563 for ac_exec_ext in '' $ac_executable_extensions; do
4564 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4565 if test $ac_prog = install &&
4566 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4567 # AIX install. It has an incompatible calling convention.
4569 elif test $ac_prog = install &&
4570 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4571 # program-specific install script used by HP pwplus--don't use.
4573 else
4574 rm -rf conftest.one conftest.two conftest.dir
4575 echo one > conftest.one
4576 echo two > conftest.two
4577 mkdir conftest.dir
4578 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4579 test -s conftest.one && test -s conftest.two &&
4580 test -s conftest.dir/conftest.one &&
4581 test -s conftest.dir/conftest.two
4582 then
4583 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4584 break 3
4588 done
4589 done
4591 esac
4593 done
4594 IFS=$as_save_IFS
4596 rm -rf conftest.one conftest.two conftest.dir
4599 if test "${ac_cv_path_install+set}" = set; then
4600 INSTALL=$ac_cv_path_install
4601 else
4602 # As a last resort, use the slow shell script. Don't cache a
4603 # value for INSTALL within a source directory, because that will
4604 # break other packages using the cache if that directory is
4605 # removed, or if the value is a relative name.
4606 INSTALL=$ac_install_sh
4609 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
4610 $as_echo "$INSTALL" >&6; }
4612 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4613 # It thinks the first close brace ends the variable substitution.
4614 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4616 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4618 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4620 if test "$INSTALL" = "${srcdir}/scripts/install-sh -c"; then
4621 # The makefiles need to use a different form to find it in $srcdir.
4622 INSTALL='\$(..)./scripts/install-sh -c'
4624 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
4625 $as_echo_n "checking whether ln -s works... " >&6; }
4626 LN_S=$as_ln_s
4627 if test "$LN_S" = "ln -s"; then
4628 { $as_echo "$as_me:$LINENO: result: yes" >&5
4629 $as_echo "yes" >&6; }
4630 else
4631 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4632 $as_echo "no, using $LN_S" >&6; }
4636 # Was a --with-binutils option given?
4637 if test -n "$path_binutils"; then
4638 # Make absolute; ensure a single trailing slash.
4639 path_binutils=`(cd $path_binutils; pwd) | sed 's%/*$%/%'`
4640 CC="$CC -B$path_binutils"
4642 AS=`$CC -print-prog-name=as`
4643 LD=`$CC -print-prog-name=ld`
4644 AR=`$CC -print-prog-name=ar`
4646 OBJDUMP=`$CC -print-prog-name=objdump`
4649 # ranlib has to be treated a bit differently since it might not exist at all.
4650 ac_ranlib=`$CC -print-prog-name=ranlib`
4651 if test "x$ac_ranlib" = xranlib; then
4652 # This extra check has to happen since gcc simply echos the parameter in
4653 # case it cannot find the value in its own directories.
4654 if test -n "$ac_tool_prefix"; then
4655 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4656 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4657 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4658 $as_echo_n "checking for $ac_word... " >&6; }
4659 if test "${ac_cv_prog_RANLIB+set}" = set; then
4660 $as_echo_n "(cached) " >&6
4661 else
4662 if test -n "$RANLIB"; then
4663 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4664 else
4665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4666 for as_dir in $PATH
4668 IFS=$as_save_IFS
4669 test -z "$as_dir" && as_dir=.
4670 for ac_exec_ext in '' $ac_executable_extensions; do
4671 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4672 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4673 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4674 break 2
4676 done
4677 done
4678 IFS=$as_save_IFS
4682 RANLIB=$ac_cv_prog_RANLIB
4683 if test -n "$RANLIB"; then
4684 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
4685 $as_echo "$RANLIB" >&6; }
4686 else
4687 { $as_echo "$as_me:$LINENO: result: no" >&5
4688 $as_echo "no" >&6; }
4693 if test -z "$ac_cv_prog_RANLIB"; then
4694 ac_ct_RANLIB=$RANLIB
4695 # Extract the first word of "ranlib", so it can be a program name with args.
4696 set dummy ranlib; ac_word=$2
4697 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4698 $as_echo_n "checking for $ac_word... " >&6; }
4699 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4700 $as_echo_n "(cached) " >&6
4701 else
4702 if test -n "$ac_ct_RANLIB"; then
4703 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4704 else
4705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4706 for as_dir in $PATH
4708 IFS=$as_save_IFS
4709 test -z "$as_dir" && as_dir=.
4710 for ac_exec_ext in '' $ac_executable_extensions; do
4711 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4712 ac_cv_prog_ac_ct_RANLIB="ranlib"
4713 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4714 break 2
4716 done
4717 done
4718 IFS=$as_save_IFS
4722 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4723 if test -n "$ac_ct_RANLIB"; then
4724 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4725 $as_echo "$ac_ct_RANLIB" >&6; }
4726 else
4727 { $as_echo "$as_me:$LINENO: result: no" >&5
4728 $as_echo "no" >&6; }
4731 if test "x$ac_ct_RANLIB" = x; then
4732 RANLIB=":"
4733 else
4734 case $cross_compiling:$ac_tool_warned in
4735 yes:)
4736 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4737 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4738 ac_tool_warned=yes ;;
4739 esac
4740 RANLIB=$ac_ct_RANLIB
4742 else
4743 RANLIB="$ac_cv_prog_RANLIB"
4746 else
4747 RANLIB=$ac_ranlib
4751 # Determine whether we are using GNU binutils.
4752 { $as_echo "$as_me:$LINENO: checking whether $AS is GNU as" >&5
4753 $as_echo_n "checking whether $AS is GNU as... " >&6; }
4754 if test "${libc_cv_prog_as_gnu+set}" = set; then
4755 $as_echo_n "(cached) " >&6
4756 else
4757 # Most GNU programs take a -v and spit out some text including
4758 # the word 'GNU'. Some try to read stdin, so give them /dev/null.
4759 if $AS -o conftest -v </dev/null 2>&1 | grep GNU > /dev/null 2>&1; then
4760 libc_cv_prog_as_gnu=yes
4761 else
4762 libc_cv_prog_as_gnu=no
4764 rm -fr contest*
4766 { $as_echo "$as_me:$LINENO: result: $libc_cv_prog_as_gnu" >&5
4767 $as_echo "$libc_cv_prog_as_gnu" >&6; }
4768 rm -f a.out
4769 gnu_as=$libc_cv_prog_as_gnu
4771 { $as_echo "$as_me:$LINENO: checking whether $LD is GNU ld" >&5
4772 $as_echo_n "checking whether $LD is GNU ld... " >&6; }
4773 if test "${libc_cv_prog_ld_gnu+set}" = set; then
4774 $as_echo_n "(cached) " >&6
4775 else
4776 # Most GNU programs take a -v and spit out some text including
4777 # the word 'GNU'. Some try to read stdin, so give them /dev/null.
4778 if $LD -o conftest -v </dev/null 2>&1 | grep GNU > /dev/null 2>&1; then
4779 libc_cv_prog_ld_gnu=yes
4780 else
4781 libc_cv_prog_ld_gnu=no
4783 rm -fr contest*
4785 { $as_echo "$as_me:$LINENO: result: $libc_cv_prog_ld_gnu" >&5
4786 $as_echo "$libc_cv_prog_ld_gnu" >&6; }
4787 gnu_ld=$libc_cv_prog_ld_gnu
4790 # Accept binutils 2.13 or newer.
4791 for ac_prog in $AS
4793 # Extract the first word of "$ac_prog", so it can be a program name with args.
4794 set dummy $ac_prog; ac_word=$2
4795 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4796 $as_echo_n "checking for $ac_word... " >&6; }
4797 if test "${ac_cv_prog_AS+set}" = set; then
4798 $as_echo_n "(cached) " >&6
4799 else
4800 if test -n "$AS"; then
4801 ac_cv_prog_AS="$AS" # Let the user override the test.
4802 else
4803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4804 for as_dir in $PATH
4806 IFS=$as_save_IFS
4807 test -z "$as_dir" && as_dir=.
4808 for ac_exec_ext in '' $ac_executable_extensions; do
4809 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4810 ac_cv_prog_AS="$ac_prog"
4811 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4812 break 2
4814 done
4815 done
4816 IFS=$as_save_IFS
4820 AS=$ac_cv_prog_AS
4821 if test -n "$AS"; then
4822 { $as_echo "$as_me:$LINENO: result: $AS" >&5
4823 $as_echo "$AS" >&6; }
4824 else
4825 { $as_echo "$as_me:$LINENO: result: no" >&5
4826 $as_echo "no" >&6; }
4830 test -n "$AS" && break
4831 done
4833 if test -z "$AS"; then
4834 ac_verc_fail=yes
4835 else
4836 # Found it, now check the version.
4837 { $as_echo "$as_me:$LINENO: checking version of $AS" >&5
4838 $as_echo_n "checking version of $AS... " >&6; }
4839 ac_prog_version=`$AS --version 2>&1 | sed -n 's/^.*GNU assembler.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
4840 case $ac_prog_version in
4841 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
4842 2.1[3-9]*)
4843 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
4844 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
4846 esac
4847 { $as_echo "$as_me:$LINENO: result: $ac_prog_version" >&5
4848 $as_echo "$ac_prog_version" >&6; }
4850 if test $ac_verc_fail = yes; then
4851 AS=: critic_missing="$critic_missing as"
4854 for ac_prog in $LD
4856 # Extract the first word of "$ac_prog", so it can be a program name with args.
4857 set dummy $ac_prog; ac_word=$2
4858 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4859 $as_echo_n "checking for $ac_word... " >&6; }
4860 if test "${ac_cv_prog_LD+set}" = set; then
4861 $as_echo_n "(cached) " >&6
4862 else
4863 if test -n "$LD"; then
4864 ac_cv_prog_LD="$LD" # Let the user override the test.
4865 else
4866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4867 for as_dir in $PATH
4869 IFS=$as_save_IFS
4870 test -z "$as_dir" && as_dir=.
4871 for ac_exec_ext in '' $ac_executable_extensions; do
4872 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4873 ac_cv_prog_LD="$ac_prog"
4874 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4875 break 2
4877 done
4878 done
4879 IFS=$as_save_IFS
4883 LD=$ac_cv_prog_LD
4884 if test -n "$LD"; then
4885 { $as_echo "$as_me:$LINENO: result: $LD" >&5
4886 $as_echo "$LD" >&6; }
4887 else
4888 { $as_echo "$as_me:$LINENO: result: no" >&5
4889 $as_echo "no" >&6; }
4893 test -n "$LD" && break
4894 done
4896 if test -z "$LD"; then
4897 ac_verc_fail=yes
4898 else
4899 # Found it, now check the version.
4900 { $as_echo "$as_me:$LINENO: checking version of $LD" >&5
4901 $as_echo_n "checking version of $LD... " >&6; }
4902 ac_prog_version=`$LD --version 2>&1 | sed -n 's/^.*GNU ld.* \([0-9][0-9]*\.[0-9.]*\).*$/\1/p'`
4903 case $ac_prog_version in
4904 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
4905 2.1[3-9]*)
4906 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
4907 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
4909 esac
4910 { $as_echo "$as_me:$LINENO: result: $ac_prog_version" >&5
4911 $as_echo "$ac_prog_version" >&6; }
4913 if test $ac_verc_fail = yes; then
4914 LD=: critic_missing="$critic_missing ld"
4918 # We need the physical current working directory. We cannot use the
4919 # "pwd -P" shell builtin since that's not portable. Instead we try to
4920 # find a pwd binary. Note that assigning to the PWD environment
4921 # variable might have some interesting side effects, so we don't do
4922 # that.
4923 # Extract the first word of "pwd", so it can be a program name with args.
4924 set dummy pwd; ac_word=$2
4925 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4926 $as_echo_n "checking for $ac_word... " >&6; }
4927 if test "${ac_cv_path_PWD_P+set}" = set; then
4928 $as_echo_n "(cached) " >&6
4929 else
4930 case $PWD_P in
4931 [\\/]* | ?:[\\/]*)
4932 ac_cv_path_PWD_P="$PWD_P" # Let the user override the test with a path.
4935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4936 for as_dir in $PATH
4938 IFS=$as_save_IFS
4939 test -z "$as_dir" && as_dir=.
4940 for ac_exec_ext in '' $ac_executable_extensions; do
4941 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4942 ac_cv_path_PWD_P="$as_dir/$ac_word$ac_exec_ext"
4943 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4944 break 2
4946 done
4947 done
4948 IFS=$as_save_IFS
4950 test -z "$ac_cv_path_PWD_P" && ac_cv_path_PWD_P="no"
4952 esac
4954 PWD_P=$ac_cv_path_PWD_P
4955 if test -n "$PWD_P"; then
4956 { $as_echo "$as_me:$LINENO: result: $PWD_P" >&5
4957 $as_echo "$PWD_P" >&6; }
4958 else
4959 { $as_echo "$as_me:$LINENO: result: no" >&5
4960 $as_echo "no" >&6; }
4964 if test "$PWD_P" = no; then
4965 { { $as_echo "$as_me:$LINENO: error: *** A pwd binary could not be found." >&5
4966 $as_echo "$as_me: error: *** A pwd binary could not be found." >&2;}
4967 { (exit 1); exit 1; }; }
4970 # These programs are version sensitive.
4972 for ac_prog in ${ac_tool_prefix}gcc ${ac_tool_prefix}cc
4974 # Extract the first word of "$ac_prog", so it can be a program name with args.
4975 set dummy $ac_prog; ac_word=$2
4976 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4977 $as_echo_n "checking for $ac_word... " >&6; }
4978 if test "${ac_cv_prog_CC+set}" = set; then
4979 $as_echo_n "(cached) " >&6
4980 else
4981 if test -n "$CC"; then
4982 ac_cv_prog_CC="$CC" # Let the user override the test.
4983 else
4984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4985 for as_dir in $PATH
4987 IFS=$as_save_IFS
4988 test -z "$as_dir" && as_dir=.
4989 for ac_exec_ext in '' $ac_executable_extensions; do
4990 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4991 ac_cv_prog_CC="$ac_prog"
4992 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4993 break 2
4995 done
4996 done
4997 IFS=$as_save_IFS
5001 CC=$ac_cv_prog_CC
5002 if test -n "$CC"; then
5003 { $as_echo "$as_me:$LINENO: result: $CC" >&5
5004 $as_echo "$CC" >&6; }
5005 else
5006 { $as_echo "$as_me:$LINENO: result: no" >&5
5007 $as_echo "no" >&6; }
5011 test -n "$CC" && break
5012 done
5014 if test -z "$CC"; then
5015 ac_verc_fail=yes
5016 else
5017 # Found it, now check the version.
5018 { $as_echo "$as_me:$LINENO: checking version of $CC" >&5
5019 $as_echo_n "checking version of $CC... " >&6; }
5020 ac_prog_version=`$CC -v 2>&1 | sed -n 's/^.*version \([egcygnustpi-]*[0-9.]*\).*$/\1/p'`
5021 case $ac_prog_version in
5022 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
5023 3.4* | 4.[0-9]* )
5024 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
5025 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
5027 esac
5028 { $as_echo "$as_me:$LINENO: result: $ac_prog_version" >&5
5029 $as_echo "$ac_prog_version" >&6; }
5031 if test $ac_verc_fail = yes; then
5032 critic_missing="$critic_missing gcc"
5035 for ac_prog in gnumake gmake make
5037 # Extract the first word of "$ac_prog", so it can be a program name with args.
5038 set dummy $ac_prog; ac_word=$2
5039 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5040 $as_echo_n "checking for $ac_word... " >&6; }
5041 if test "${ac_cv_prog_MAKE+set}" = set; then
5042 $as_echo_n "(cached) " >&6
5043 else
5044 if test -n "$MAKE"; then
5045 ac_cv_prog_MAKE="$MAKE" # Let the user override the test.
5046 else
5047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5048 for as_dir in $PATH
5050 IFS=$as_save_IFS
5051 test -z "$as_dir" && as_dir=.
5052 for ac_exec_ext in '' $ac_executable_extensions; do
5053 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5054 ac_cv_prog_MAKE="$ac_prog"
5055 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5056 break 2
5058 done
5059 done
5060 IFS=$as_save_IFS
5064 MAKE=$ac_cv_prog_MAKE
5065 if test -n "$MAKE"; then
5066 { $as_echo "$as_me:$LINENO: result: $MAKE" >&5
5067 $as_echo "$MAKE" >&6; }
5068 else
5069 { $as_echo "$as_me:$LINENO: result: no" >&5
5070 $as_echo "no" >&6; }
5074 test -n "$MAKE" && break
5075 done
5077 if test -z "$MAKE"; then
5078 ac_verc_fail=yes
5079 else
5080 # Found it, now check the version.
5081 { $as_echo "$as_me:$LINENO: checking version of $MAKE" >&5
5082 $as_echo_n "checking version of $MAKE... " >&6; }
5083 ac_prog_version=`$MAKE --version 2>&1 | sed -n 's/^.*GNU Make[^0-9]*\([0-9][0-9.]*\).*$/\1/p'`
5084 case $ac_prog_version in
5085 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
5086 3.79* | 3.[89]*)
5087 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
5088 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
5090 esac
5091 { $as_echo "$as_me:$LINENO: result: $ac_prog_version" >&5
5092 $as_echo "$ac_prog_version" >&6; }
5094 if test $ac_verc_fail = yes; then
5095 critic_missing="$critic_missing make"
5099 for ac_prog in gnumsgfmt gmsgfmt msgfmt
5101 # Extract the first word of "$ac_prog", so it can be a program name with args.
5102 set dummy $ac_prog; ac_word=$2
5103 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5104 $as_echo_n "checking for $ac_word... " >&6; }
5105 if test "${ac_cv_prog_MSGFMT+set}" = set; then
5106 $as_echo_n "(cached) " >&6
5107 else
5108 if test -n "$MSGFMT"; then
5109 ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
5110 else
5111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5112 for as_dir in $PATH
5114 IFS=$as_save_IFS
5115 test -z "$as_dir" && as_dir=.
5116 for ac_exec_ext in '' $ac_executable_extensions; do
5117 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5118 ac_cv_prog_MSGFMT="$ac_prog"
5119 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5120 break 2
5122 done
5123 done
5124 IFS=$as_save_IFS
5128 MSGFMT=$ac_cv_prog_MSGFMT
5129 if test -n "$MSGFMT"; then
5130 { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5
5131 $as_echo "$MSGFMT" >&6; }
5132 else
5133 { $as_echo "$as_me:$LINENO: result: no" >&5
5134 $as_echo "no" >&6; }
5138 test -n "$MSGFMT" && break
5139 done
5141 if test -z "$MSGFMT"; then
5142 ac_verc_fail=yes
5143 else
5144 # Found it, now check the version.
5145 { $as_echo "$as_me:$LINENO: checking version of $MSGFMT" >&5
5146 $as_echo_n "checking version of $MSGFMT... " >&6; }
5147 ac_prog_version=`$MSGFMT --version 2>&1 | sed -n 's/^.*GNU gettext.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
5148 case $ac_prog_version in
5149 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
5150 0.10.3[6-9]* | 0.10.[4-9][0-9]* | 0.1[1-9]* | 0.[2-9][0-9]* | [1-9].*)
5151 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
5152 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
5154 esac
5155 { $as_echo "$as_me:$LINENO: result: $ac_prog_version" >&5
5156 $as_echo "$ac_prog_version" >&6; }
5158 if test $ac_verc_fail = yes; then
5159 MSGFMT=: aux_missing="$aux_missing msgfmt"
5162 for ac_prog in makeinfo
5164 # Extract the first word of "$ac_prog", so it can be a program name with args.
5165 set dummy $ac_prog; ac_word=$2
5166 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5167 $as_echo_n "checking for $ac_word... " >&6; }
5168 if test "${ac_cv_prog_MAKEINFO+set}" = set; then
5169 $as_echo_n "(cached) " >&6
5170 else
5171 if test -n "$MAKEINFO"; then
5172 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
5173 else
5174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5175 for as_dir in $PATH
5177 IFS=$as_save_IFS
5178 test -z "$as_dir" && as_dir=.
5179 for ac_exec_ext in '' $ac_executable_extensions; do
5180 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5181 ac_cv_prog_MAKEINFO="$ac_prog"
5182 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5183 break 2
5185 done
5186 done
5187 IFS=$as_save_IFS
5191 MAKEINFO=$ac_cv_prog_MAKEINFO
5192 if test -n "$MAKEINFO"; then
5193 { $as_echo "$as_me:$LINENO: result: $MAKEINFO" >&5
5194 $as_echo "$MAKEINFO" >&6; }
5195 else
5196 { $as_echo "$as_me:$LINENO: result: no" >&5
5197 $as_echo "no" >&6; }
5201 test -n "$MAKEINFO" && break
5202 done
5204 if test -z "$MAKEINFO"; then
5205 ac_verc_fail=yes
5206 else
5207 # Found it, now check the version.
5208 { $as_echo "$as_me:$LINENO: checking version of $MAKEINFO" >&5
5209 $as_echo_n "checking version of $MAKEINFO... " >&6; }
5210 ac_prog_version=`$MAKEINFO --version 2>&1 | sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
5211 case $ac_prog_version in
5212 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
5213 4.*)
5214 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
5215 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
5217 esac
5218 { $as_echo "$as_me:$LINENO: result: $ac_prog_version" >&5
5219 $as_echo "$ac_prog_version" >&6; }
5221 if test $ac_verc_fail = yes; then
5222 MAKEINFO=: aux_missing="$aux_missing makeinfo"
5225 for ac_prog in sed
5227 # Extract the first word of "$ac_prog", so it can be a program name with args.
5228 set dummy $ac_prog; ac_word=$2
5229 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5230 $as_echo_n "checking for $ac_word... " >&6; }
5231 if test "${ac_cv_prog_SED+set}" = set; then
5232 $as_echo_n "(cached) " >&6
5233 else
5234 if test -n "$SED"; then
5235 ac_cv_prog_SED="$SED" # Let the user override the test.
5236 else
5237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5238 for as_dir in $PATH
5240 IFS=$as_save_IFS
5241 test -z "$as_dir" && as_dir=.
5242 for ac_exec_ext in '' $ac_executable_extensions; do
5243 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5244 ac_cv_prog_SED="$ac_prog"
5245 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5246 break 2
5248 done
5249 done
5250 IFS=$as_save_IFS
5254 SED=$ac_cv_prog_SED
5255 if test -n "$SED"; then
5256 { $as_echo "$as_me:$LINENO: result: $SED" >&5
5257 $as_echo "$SED" >&6; }
5258 else
5259 { $as_echo "$as_me:$LINENO: result: no" >&5
5260 $as_echo "no" >&6; }
5264 test -n "$SED" && break
5265 done
5267 if test -z "$SED"; then
5268 ac_verc_fail=yes
5269 else
5270 # Found it, now check the version.
5271 { $as_echo "$as_me:$LINENO: checking version of $SED" >&5
5272 $as_echo_n "checking version of $SED... " >&6; }
5273 ac_prog_version=`$SED --version 2>&1 | sed -n 's/^.*GNU sed version \([0-9]*\.[0-9.]*\).*$/\1/p'`
5274 case $ac_prog_version in
5275 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
5276 3.0[2-9]*|3.[1-9]*|[4-9]*)
5277 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
5278 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
5280 esac
5281 { $as_echo "$as_me:$LINENO: result: $ac_prog_version" >&5
5282 $as_echo "$ac_prog_version" >&6; }
5284 if test $ac_verc_fail = yes; then
5285 SED=: aux_missing="$aux_missing sed"
5289 for ac_prog in autoconf
5291 # Extract the first word of "$ac_prog", so it can be a program name with args.
5292 set dummy $ac_prog; ac_word=$2
5293 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5294 $as_echo_n "checking for $ac_word... " >&6; }
5295 if test "${ac_cv_prog_AUTOCONF+set}" = set; then
5296 $as_echo_n "(cached) " >&6
5297 else
5298 if test -n "$AUTOCONF"; then
5299 ac_cv_prog_AUTOCONF="$AUTOCONF" # Let the user override the test.
5300 else
5301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5302 for as_dir in $PATH
5304 IFS=$as_save_IFS
5305 test -z "$as_dir" && as_dir=.
5306 for ac_exec_ext in '' $ac_executable_extensions; do
5307 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5308 ac_cv_prog_AUTOCONF="$ac_prog"
5309 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5310 break 2
5312 done
5313 done
5314 IFS=$as_save_IFS
5318 AUTOCONF=$ac_cv_prog_AUTOCONF
5319 if test -n "$AUTOCONF"; then
5320 { $as_echo "$as_me:$LINENO: result: $AUTOCONF" >&5
5321 $as_echo "$AUTOCONF" >&6; }
5322 else
5323 { $as_echo "$as_me:$LINENO: result: no" >&5
5324 $as_echo "no" >&6; }
5328 test -n "$AUTOCONF" && break
5329 done
5330 test -n "$AUTOCONF" || AUTOCONF="no"
5332 case "x$AUTOCONF" in
5333 xno|x|x:) AUTOCONF=no ;;
5335 { $as_echo "$as_me:$LINENO: checking whether $AUTOCONF${ACFLAGS:+ }$ACFLAGS works" >&5
5336 $as_echo_n "checking whether $AUTOCONF${ACFLAGS:+ }$ACFLAGS works... " >&6; }
5337 if test "${libc_cv_autoconf_works+set}" = set; then
5338 $as_echo_n "(cached) " >&6
5339 else
5340 if (cd $srcdir; $AUTOCONF $ACFLAGS configure.in > /dev/null 2>&1); then
5341 libc_cv_autoconf_works=yes
5342 else
5343 libc_cv_autoconf_works=no
5346 { $as_echo "$as_me:$LINENO: result: $libc_cv_autoconf_works" >&5
5347 $as_echo "$libc_cv_autoconf_works" >&6; }
5348 test $libc_cv_autoconf_works = yes || AUTOCONF=no
5350 esac
5351 if test "x$with_cvs" = xyes && test "x$AUTOCONF" = xno; then
5352 # If --without-cvs they probably won't change configure.in, so no complaints.
5353 aux_missing="$aux_missing autoconf"
5356 test -n "$critic_missing" && { { $as_echo "$as_me:$LINENO: error:
5357 *** These critical programs are missing or too old:$critic_missing
5358 *** Check the INSTALL file for required versions." >&5
5359 $as_echo "$as_me: error:
5360 *** These critical programs are missing or too old:$critic_missing
5361 *** Check the INSTALL file for required versions." >&2;}
5362 { (exit 1); exit 1; }; }
5364 test -n "$aux_missing" && { $as_echo "$as_me:$LINENO: WARNING:
5365 *** These auxiliary programs are missing or incompatible versions:$aux_missing
5366 *** some features will be disabled.
5367 *** Check the INSTALL file for required versions." >&5
5368 $as_echo "$as_me: WARNING:
5369 *** These auxiliary programs are missing or incompatible versions:$aux_missing
5370 *** some features will be disabled.
5371 *** Check the INSTALL file for required versions." >&2;}
5373 # if using special system headers, find out the compiler's sekrit
5374 # header directory and add that to the list. NOTE: Only does the right
5375 # thing on a system that doesn't need fixincludes. (Not presently a problem.)
5376 if test -n "$sysheaders"; then
5377 SYSINCLUDES=-nostdinc
5378 for d in include include-fixed; do
5379 i=`$CC -print-file-name="$d"` && test "x$i" != x && test "x$i" != "x$d" &&
5380 SYSINCLUDES="$SYSINCLUDES -isystem $i"
5381 done
5382 SYSINCLUDES="$SYSINCLUDES \
5383 -isystem `echo $sysheaders | sed 's/:/ -isystem /g'`"
5384 if test -n "$CXX"; then
5385 cxxversion=`$CXX -dumpversion 2>&5` &&
5386 cxxmachine=`$CXX -dumpmachine 2>&5` &&
5387 cxxheaders=`$CXX -print-file-name=../../../../include/c++/`"$cxxversion" &&
5388 CXX_SYSINCLUDES="-isystem $cxxheaders \
5389 -isystem $cxxheaders/$cxxmachine -isystem $cxxheaders/backward"
5395 # check if ranlib is necessary
5396 { $as_echo "$as_me:$LINENO: checking whether ranlib is necessary" >&5
5397 $as_echo_n "checking whether ranlib is necessary... " >&6; }
5398 if test "${libc_cv_ranlib_necessary+set}" = set; then
5399 $as_echo_n "(cached) " >&6
5400 else
5401 cat > conftest.c <<EOF
5402 int a;
5403 char b;
5404 void c(void) {}
5406 $CC $CFLAGS $CPPFLAGS -c conftest.c
5407 $AR cr conftest.a conftest.o
5408 cp conftest.a conftest2.a
5409 $RANLIB conftest.a
5410 if cmp -s conftest.a conftest2.a; then
5411 libc_cv_ranlib_necessary=no
5412 else
5413 libc_cv_ranlib_necessary=yes
5415 rm -rf conftest*
5417 { $as_echo "$as_me:$LINENO: result: $libc_cv_ranlib_necessary" >&5
5418 $as_echo "$libc_cv_ranlib_necessary" >&6; }
5419 if test "$libc_cv_ranlib_necessary" = no; then
5420 RANLIB=:
5423 # Test if LD_LIBRARY_PATH contains the notation for the current directory
5424 # since this would lead to problems installing/building glibc.
5425 # LD_LIBRARY_PATH contains the current directory if one of the following
5426 # is true:
5427 # - one of the terminals (":" and ";") is the first or last sign
5428 # - two terminals occur directly after each other
5429 # - the path contains an element with a dot in it
5430 { $as_echo "$as_me:$LINENO: checking LD_LIBRARY_PATH variable" >&5
5431 $as_echo_n "checking LD_LIBRARY_PATH variable... " >&6; }
5432 case ${LD_LIBRARY_PATH} in
5433 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
5434 ld_library_path_setting="contains current directory"
5437 ld_library_path_setting="ok"
5439 esac
5440 { $as_echo "$as_me:$LINENO: result: $ld_library_path_setting" >&5
5441 $as_echo "$ld_library_path_setting" >&6; }
5442 if test "$ld_library_path_setting" != "ok"; then
5443 { { $as_echo "$as_me:$LINENO: error:
5444 *** LD_LIBRARY_PATH shouldn't contain the current directory when
5445 *** building glibc. Please change the environment variable
5446 *** and run configure again." >&5
5447 $as_echo "$as_me: error:
5448 *** LD_LIBRARY_PATH shouldn't contain the current directory when
5449 *** building glibc. Please change the environment variable
5450 *** and run configure again." >&2;}
5451 { (exit 1); exit 1; }; }
5454 { $as_echo "$as_me:$LINENO: checking whether GCC supports -static-libgcc" >&5
5455 $as_echo_n "checking whether GCC supports -static-libgcc... " >&6; }
5456 if test "${libc_cv_gcc_static_libgcc+set}" = set; then
5457 $as_echo_n "(cached) " >&6
5458 else
5459 if $CC -v -static-libgcc 2>&1 | grep -q 'unrecognized option.*static-libgcc'; then
5460 libc_cv_gcc_static_libgcc=
5461 else
5462 libc_cv_gcc_static_libgcc=-static-libgcc
5465 { $as_echo "$as_me:$LINENO: result: $libc_cv_gcc_static_libgcc" >&5
5466 $as_echo "$libc_cv_gcc_static_libgcc" >&6; }
5469 # Extract the first word of "bash", so it can be a program name with args.
5470 set dummy bash; ac_word=$2
5471 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5472 $as_echo_n "checking for $ac_word... " >&6; }
5473 if test "${ac_cv_path_BASH_SHELL+set}" = set; then
5474 $as_echo_n "(cached) " >&6
5475 else
5476 case $BASH_SHELL in
5477 [\\/]* | ?:[\\/]*)
5478 ac_cv_path_BASH_SHELL="$BASH_SHELL" # Let the user override the test with a path.
5481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5482 for as_dir in $PATH
5484 IFS=$as_save_IFS
5485 test -z "$as_dir" && as_dir=.
5486 for ac_exec_ext in '' $ac_executable_extensions; do
5487 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5488 ac_cv_path_BASH_SHELL="$as_dir/$ac_word$ac_exec_ext"
5489 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5490 break 2
5492 done
5493 done
5494 IFS=$as_save_IFS
5496 test -z "$ac_cv_path_BASH_SHELL" && ac_cv_path_BASH_SHELL="no"
5498 esac
5500 BASH_SHELL=$ac_cv_path_BASH_SHELL
5501 if test -n "$BASH_SHELL"; then
5502 { $as_echo "$as_me:$LINENO: result: $BASH_SHELL" >&5
5503 $as_echo "$BASH_SHELL" >&6; }
5504 else
5505 { $as_echo "$as_me:$LINENO: result: no" >&5
5506 $as_echo "no" >&6; }
5510 if test "$BASH_SHELL" != no &&
5511 $BASH_SHELL -c 'test "$BASH_VERSINFO" \
5512 && test "$BASH_VERSINFO" -ge 2 >&/dev/null'; then
5513 libc_cv_have_bash2=yes
5514 else
5515 libc_cv_have_bash2=no
5519 if test "$BASH_SHELL" = no; then
5520 # Extract the first word of "ksh", so it can be a program name with args.
5521 set dummy ksh; ac_word=$2
5522 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5523 $as_echo_n "checking for $ac_word... " >&6; }
5524 if test "${ac_cv_path_KSH+set}" = set; then
5525 $as_echo_n "(cached) " >&6
5526 else
5527 case $KSH in
5528 [\\/]* | ?:[\\/]*)
5529 ac_cv_path_KSH="$KSH" # Let the user override the test with a path.
5532 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5533 for as_dir in $PATH
5535 IFS=$as_save_IFS
5536 test -z "$as_dir" && as_dir=.
5537 for ac_exec_ext in '' $ac_executable_extensions; do
5538 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5539 ac_cv_path_KSH="$as_dir/$ac_word$ac_exec_ext"
5540 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5541 break 2
5543 done
5544 done
5545 IFS=$as_save_IFS
5547 test -z "$ac_cv_path_KSH" && ac_cv_path_KSH="no"
5549 esac
5551 KSH=$ac_cv_path_KSH
5552 if test -n "$KSH"; then
5553 { $as_echo "$as_me:$LINENO: result: $KSH" >&5
5554 $as_echo "$KSH" >&6; }
5555 else
5556 { $as_echo "$as_me:$LINENO: result: no" >&5
5557 $as_echo "no" >&6; }
5561 if test "$KSH" = no; then
5562 libc_cv_have_ksh=no
5563 else
5564 libc_cv_have_ksh=yes
5566 else
5567 KSH="$BASH_SHELL"
5569 libc_cv_have_ksh=yes
5573 for ac_prog in gawk mawk nawk awk
5575 # Extract the first word of "$ac_prog", so it can be a program name with args.
5576 set dummy $ac_prog; ac_word=$2
5577 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5578 $as_echo_n "checking for $ac_word... " >&6; }
5579 if test "${ac_cv_prog_AWK+set}" = set; then
5580 $as_echo_n "(cached) " >&6
5581 else
5582 if test -n "$AWK"; then
5583 ac_cv_prog_AWK="$AWK" # Let the user override the test.
5584 else
5585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5586 for as_dir in $PATH
5588 IFS=$as_save_IFS
5589 test -z "$as_dir" && as_dir=.
5590 for ac_exec_ext in '' $ac_executable_extensions; do
5591 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5592 ac_cv_prog_AWK="$ac_prog"
5593 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5594 break 2
5596 done
5597 done
5598 IFS=$as_save_IFS
5602 AWK=$ac_cv_prog_AWK
5603 if test -n "$AWK"; then
5604 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
5605 $as_echo "$AWK" >&6; }
5606 else
5607 { $as_echo "$as_me:$LINENO: result: no" >&5
5608 $as_echo "no" >&6; }
5612 test -n "$AWK" && break
5613 done
5615 # Extract the first word of "perl", so it can be a program name with args.
5616 set dummy perl; ac_word=$2
5617 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5618 $as_echo_n "checking for $ac_word... " >&6; }
5619 if test "${ac_cv_path_PERL+set}" = set; then
5620 $as_echo_n "(cached) " >&6
5621 else
5622 case $PERL in
5623 [\\/]* | ?:[\\/]*)
5624 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
5627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5628 for as_dir in $PATH
5630 IFS=$as_save_IFS
5631 test -z "$as_dir" && as_dir=.
5632 for ac_exec_ext in '' $ac_executable_extensions; do
5633 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5634 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
5635 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5636 break 2
5638 done
5639 done
5640 IFS=$as_save_IFS
5642 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="no"
5644 esac
5646 PERL=$ac_cv_path_PERL
5647 if test -n "$PERL"; then
5648 { $as_echo "$as_me:$LINENO: result: $PERL" >&5
5649 $as_echo "$PERL" >&6; }
5650 else
5651 { $as_echo "$as_me:$LINENO: result: no" >&5
5652 $as_echo "no" >&6; }
5656 if test "$PERL" != no &&
5657 (eval `$PERL -V:apiversion`; test `expr "$apiversion" \< 5` -ne 0); then
5658 PERL=no
5660 # Extract the first word of "install-info", so it can be a program name with args.
5661 set dummy install-info; ac_word=$2
5662 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5663 $as_echo_n "checking for $ac_word... " >&6; }
5664 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5665 $as_echo_n "(cached) " >&6
5666 else
5667 case $INSTALL_INFO in
5668 [\\/]* | ?:[\\/]*)
5669 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5673 as_dummy="$PATH:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin"
5674 for as_dir in $as_dummy
5676 IFS=$as_save_IFS
5677 test -z "$as_dir" && as_dir=.
5678 for ac_exec_ext in '' $ac_executable_extensions; do
5679 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5680 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5681 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5682 break 2
5684 done
5685 done
5686 IFS=$as_save_IFS
5688 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO="no"
5690 esac
5692 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5693 if test -n "$INSTALL_INFO"; then
5694 { $as_echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5695 $as_echo "$INSTALL_INFO" >&6; }
5696 else
5697 { $as_echo "$as_me:$LINENO: result: no" >&5
5698 $as_echo "no" >&6; }
5702 # Extract the first word of "bison", so it can be a program name with args.
5703 set dummy bison; ac_word=$2
5704 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5705 $as_echo_n "checking for $ac_word... " >&6; }
5706 if test "${ac_cv_path_BISON+set}" = set; then
5707 $as_echo_n "(cached) " >&6
5708 else
5709 case $BISON in
5710 [\\/]* | ?:[\\/]*)
5711 ac_cv_path_BISON="$BISON" # Let the user override the test with a path.
5714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5715 as_dummy="$PATH:/usr/local/bin:/usr/bin:/bin"
5716 for as_dir in $as_dummy
5718 IFS=$as_save_IFS
5719 test -z "$as_dir" && as_dir=.
5720 for ac_exec_ext in '' $ac_executable_extensions; do
5721 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5722 ac_cv_path_BISON="$as_dir/$ac_word$ac_exec_ext"
5723 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5724 break 2
5726 done
5727 done
5728 IFS=$as_save_IFS
5730 test -z "$ac_cv_path_BISON" && ac_cv_path_BISON="no"
5732 esac
5734 BISON=$ac_cv_path_BISON
5735 if test -n "$BISON"; then
5736 { $as_echo "$as_me:$LINENO: result: $BISON" >&5
5737 $as_echo "$BISON" >&6; }
5738 else
5739 { $as_echo "$as_me:$LINENO: result: no" >&5
5740 $as_echo "no" >&6; }
5745 { $as_echo "$as_me:$LINENO: checking for signed size_t type" >&5
5746 $as_echo_n "checking for signed size_t type... " >&6; }
5747 if test "${libc_cv_signed_size_t+set}" = set; then
5748 $as_echo_n "(cached) " >&6
5749 else
5750 echo '#include <stddef.h>
5751 FOOBAR __SIZE_TYPE__ FOOBAR' > conftest.c
5752 if eval "$ac_cpp conftest.c 2>/dev/null" \
5753 | grep '^FOOBAR.*unsigned.*FOOBAR$' >/dev/null; then
5754 libc_cv_signed_size_t=no
5755 else
5756 libc_cv_signed_size_t=yes
5758 rm -f conftest*
5760 { $as_echo "$as_me:$LINENO: result: $libc_cv_signed_size_t" >&5
5761 $as_echo "$libc_cv_signed_size_t" >&6; }
5762 if test $libc_cv_signed_size_t = yes; then
5763 cat >> confdefs.h <<\EOF
5764 #undef __SIZE_TYPE__
5765 #define __SIZE_TYPE__ unsigned
5769 { $as_echo "$as_me:$LINENO: checking for libc-friendly stddef.h" >&5
5770 $as_echo_n "checking for libc-friendly stddef.h... " >&6; }
5771 if test "${libc_cv_friendly_stddef+set}" = set; then
5772 $as_echo_n "(cached) " >&6
5773 else
5774 cat >conftest.$ac_ext <<_ACEOF
5775 /* confdefs.h. */
5776 _ACEOF
5777 cat confdefs.h >>conftest.$ac_ext
5778 cat >>conftest.$ac_ext <<_ACEOF
5779 /* end confdefs.h. */
5780 #define __need_size_t
5781 #define __need_wchar_t
5782 #include <stddef.h>
5783 #define __need_NULL
5784 #include <stddef.h>
5786 main ()
5788 size_t size; wchar_t wchar;
5789 #ifdef offsetof
5790 #error stddef.h ignored __need_*
5791 #endif
5792 if (&size == NULL || &wchar == NULL) abort ();
5794 return 0;
5796 _ACEOF
5797 rm -f conftest.$ac_objext
5798 if { (ac_try="$ac_compile"
5799 case "(($ac_try" in
5800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5801 *) ac_try_echo=$ac_try;;
5802 esac
5803 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5804 $as_echo "$ac_try_echo") >&5
5805 (eval "$ac_compile") 2>conftest.er1
5806 ac_status=$?
5807 grep -v '^ *+' conftest.er1 >conftest.err
5808 rm -f conftest.er1
5809 cat conftest.err >&5
5810 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5811 (exit $ac_status); } && {
5812 test -z "$ac_c_werror_flag" ||
5813 test ! -s conftest.err
5814 } && test -s conftest.$ac_objext; then
5815 libc_cv_friendly_stddef=yes
5816 else
5817 $as_echo "$as_me: failed program was:" >&5
5818 sed 's/^/| /' conftest.$ac_ext >&5
5820 libc_cv_friendly_stddef=no
5823 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5825 { $as_echo "$as_me:$LINENO: result: $libc_cv_friendly_stddef" >&5
5826 $as_echo "$libc_cv_friendly_stddef" >&6; }
5827 if test $libc_cv_friendly_stddef = yes; then
5828 config_vars="$config_vars
5829 override stddef.h = # The installed <stddef.h> seems to be libc-friendly."
5832 { $as_echo "$as_me:$LINENO: checking whether we need to use -P to assemble .S files" >&5
5833 $as_echo_n "checking whether we need to use -P to assemble .S files... " >&6; }
5834 if test "${libc_cv_need_minus_P+set}" = set; then
5835 $as_echo_n "(cached) " >&6
5836 else
5837 cat > conftest.S <<EOF
5838 #include "confdefs.h"
5839 /* Nothing whatsoever. */
5841 if { ac_try='${CC-cc} $CPPFLAGS $ASFLAGS -c conftest.S 1>&5'
5842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5843 (eval $ac_try) 2>&5
5844 ac_status=$?
5845 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5846 (exit $ac_status); }; }; then
5847 libc_cv_need_minus_P=no
5848 else
5849 libc_cv_need_minus_P=yes
5851 rm -f conftest*
5853 { $as_echo "$as_me:$LINENO: result: $libc_cv_need_minus_P" >&5
5854 $as_echo "$libc_cv_need_minus_P" >&6; }
5855 if test $libc_cv_need_minus_P = yes; then
5856 config_vars="$config_vars
5857 asm-CPPFLAGS = -P # The assembler can't grok cpp's # line directives."
5860 { $as_echo "$as_me:$LINENO: checking whether .text pseudo-op must be used" >&5
5861 $as_echo_n "checking whether .text pseudo-op must be used... " >&6; }
5862 if test "${libc_cv_dot_text+set}" = set; then
5863 $as_echo_n "(cached) " >&6
5864 else
5865 cat > conftest.s <<EOF
5866 .text
5868 libc_cv_dot_text=
5869 if { ac_try='${CC-cc} $ASFLAGS -c conftest.s 1>&5'
5870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5871 (eval $ac_try) 2>&5
5872 ac_status=$?
5873 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5874 (exit $ac_status); }; }; then
5875 libc_cv_dot_text=.text
5877 rm -f conftest*
5880 if test -z "$libc_cv_dot_text"; then
5881 { $as_echo "$as_me:$LINENO: result: no" >&5
5882 $as_echo "no" >&6; }
5883 else
5884 { $as_echo "$as_me:$LINENO: result: yes" >&5
5885 $as_echo "yes" >&6; }
5888 { $as_echo "$as_me:$LINENO: checking for assembler global-symbol directive" >&5
5889 $as_echo_n "checking for assembler global-symbol directive... " >&6; }
5890 if test "${libc_cv_asm_global_directive+set}" = set; then
5891 $as_echo_n "(cached) " >&6
5892 else
5893 libc_cv_asm_global_directive=UNKNOWN
5894 for ac_globl in .globl .global .EXPORT; do
5895 cat > conftest.s <<EOF
5896 ${libc_cv_dot_text}
5897 ${ac_globl} foo
5898 foo:
5900 if { ac_try='${CC-cc} $ASFLAGS -c conftest.s 1>&5'
5901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5902 (eval $ac_try) 2>&5
5903 ac_status=$?
5904 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5905 (exit $ac_status); }; }; then
5906 libc_cv_asm_global_directive=${ac_globl}
5908 rm -f conftest*
5909 test $libc_cv_asm_global_directive != UNKNOWN && break
5910 done
5912 { $as_echo "$as_me:$LINENO: result: $libc_cv_asm_global_directive" >&5
5913 $as_echo "$libc_cv_asm_global_directive" >&6; }
5914 if test $libc_cv_asm_global_directive = UNKNOWN; then
5915 { { $as_echo "$as_me:$LINENO: error: cannot determine asm global directive" >&5
5916 $as_echo "$as_me: error: cannot determine asm global directive" >&2;}
5917 { (exit 1); exit 1; }; }
5918 else
5919 cat >>confdefs.h <<_ACEOF
5920 #define ASM_GLOBAL_DIRECTIVE ${libc_cv_asm_global_directive}
5921 _ACEOF
5925 { $as_echo "$as_me:$LINENO: checking for .set assembler directive" >&5
5926 $as_echo_n "checking for .set assembler directive... " >&6; }
5927 if test "${libc_cv_asm_set_directive+set}" = set; then
5928 $as_echo_n "(cached) " >&6
5929 else
5930 cat > conftest.s <<EOF
5931 ${libc_cv_dot_text}
5932 foo:
5933 .set glibc_conftest_frobozz,foo
5934 $libc_cv_asm_global_directive glibc_conftest_frobozz
5936 # The alpha-dec-osf1 assembler gives only a warning for `.set'
5937 # (but it doesn't work), so we must do a linking check to be sure.
5938 cat > conftest1.c <<\EOF
5939 extern int glibc_conftest_frobozz;
5940 void _start() { glibc_conftest_frobozz = 1; }
5942 if ${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \
5943 -nostartfiles -nostdlib \
5944 -o conftest conftest.s conftest1.c 1>&5 2>&5; then
5945 libc_cv_asm_set_directive=yes
5946 else
5947 libc_cv_asm_set_directive=no
5949 rm -f conftest*
5951 { $as_echo "$as_me:$LINENO: result: $libc_cv_asm_set_directive" >&5
5952 $as_echo "$libc_cv_asm_set_directive" >&6; }
5953 if test $libc_cv_asm_set_directive = yes; then
5954 cat >>confdefs.h <<\_ACEOF
5955 #define HAVE_ASM_SET_DIRECTIVE 1
5956 _ACEOF
5960 { $as_echo "$as_me:$LINENO: checking for assembler .type directive prefix" >&5
5961 $as_echo_n "checking for assembler .type directive prefix... " >&6; }
5962 if test "${libc_cv_asm_type_prefix+set}" = set; then
5963 $as_echo_n "(cached) " >&6
5964 else
5965 libc_cv_asm_type_prefix=no
5966 for ac_try_prefix in '@' '%' '#'; do
5967 cat > conftest.s <<EOF
5968 ${libc_cv_dot_text}
5969 ${libc_cv_asm_global_directive} foo
5970 .type foo, ${ac_try_prefix}object
5971 .size foo, 1
5972 foo:
5973 .byte 1
5975 if { ac_try='${CC-cc} $ASFLAGS -c conftest.s 1>&5'
5976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5977 (eval $ac_try) 2>&5
5978 ac_status=$?
5979 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5980 (exit $ac_status); }; }; then
5981 libc_cv_asm_type_prefix=${ac_try_prefix}
5983 rm -f conftest*
5984 test "x$libc_cv_asm_type_prefix" != xno && break
5985 done
5987 { $as_echo "$as_me:$LINENO: result: $libc_cv_asm_type_prefix" >&5
5988 $as_echo "$libc_cv_asm_type_prefix" >&6; }
5989 if test "x$libc_cv_asm_type_prefix" != xno; then
5990 cat >>confdefs.h <<_ACEOF
5991 #define ASM_TYPE_DIRECTIVE_PREFIX ${libc_cv_asm_type_prefix}
5992 _ACEOF
5996 # For the multi-arch option we need support in the assembler.
5997 if test "$multi_arch" = yes; then
5998 if test "x$libc_cv_asm_type_prefix" != xno; then
5999 { $as_echo "$as_me:$LINENO: checking for assembler gnu_indirect_function symbol type support" >&5
6000 $as_echo_n "checking for assembler gnu_indirect_function symbol type support... " >&6; }
6001 if test "${libc_cv_asm_gnu_indirect_function+set}" = set; then
6002 $as_echo_n "(cached) " >&6
6003 else
6004 cat > conftest.s <<EOF
6005 .type foo,%gnu_indirect_function
6007 if ${CC-cc} -c $ASFLAGS conftest.s 1>&5 2>&5;
6008 then
6009 libc_cv_asm_gnu_indirect_function=yes
6010 else
6011 libc_cv_asm_gnu_indirect_function=no
6013 rm -f conftest*
6015 { $as_echo "$as_me:$LINENO: result: $libc_cv_asm_gnu_indirect_function" >&5
6016 $as_echo "$libc_cv_asm_gnu_indirect_function" >&6; }
6017 else
6018 libc_cv_asm_gnu_indirect_function=no
6020 if test x"$libc_cv_asm_gnu_indirect_function" != xyes; then
6021 { { $as_echo "$as_me:$LINENO: error: --enable-multi-arch support requires assembler and linker support" >&5
6022 $as_echo "$as_me: error: --enable-multi-arch support requires assembler and linker support" >&2;}
6023 { (exit 1); exit 1; }; }
6027 { $as_echo "$as_me:$LINENO: checking for .symver assembler directive" >&5
6028 $as_echo_n "checking for .symver assembler directive... " >&6; }
6029 if test "${libc_cv_asm_symver_directive+set}" = set; then
6030 $as_echo_n "(cached) " >&6
6031 else
6032 cat > conftest.s <<EOF
6033 ${libc_cv_dot_text}
6034 _sym:
6035 .symver _sym,sym@VERS
6037 if ${CC-cc} -c $ASFLAGS conftest.s 1>&5 2>&5; then
6038 libc_cv_asm_symver_directive=yes
6039 else
6040 libc_cv_asm_symver_directive=no
6042 rm -f conftest*
6044 { $as_echo "$as_me:$LINENO: result: $libc_cv_asm_symver_directive" >&5
6045 $as_echo "$libc_cv_asm_symver_directive" >&6; }
6046 { $as_echo "$as_me:$LINENO: checking for ld --version-script" >&5
6047 $as_echo_n "checking for ld --version-script... " >&6; }
6048 if test "${libc_cv_ld_version_script_option+set}" = set; then
6049 $as_echo_n "(cached) " >&6
6050 else
6051 if test $libc_cv_asm_symver_directive = yes; then
6052 cat > conftest.s <<EOF
6053 ${libc_cv_dot_text}
6054 _sym:
6055 .symver _sym,sym@VERS
6057 cat > conftest.map <<EOF
6058 VERS_1 {
6059 global: sym;
6062 VERS_2 {
6063 global: sym;
6064 } VERS_1;
6066 if ${CC-cc} -c $ASFLAGS conftest.s 1>&5 2>&5; then
6067 if { ac_try='${CC-cc} $CFLAGS $LDFLAGS -shared
6068 -o conftest.so conftest.o
6069 -nostartfiles -nostdlib
6070 -Wl,--version-script,conftest.map
6071 1>&5'
6072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6073 (eval $ac_try) 2>&5
6074 ac_status=$?
6075 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6076 (exit $ac_status); }; };
6077 then
6078 libc_cv_ld_version_script_option=yes
6079 else
6080 libc_cv_ld_version_script_option=no
6082 else
6083 libc_cv_ld_version_script_option=no
6085 else
6086 libc_cv_ld_version_script_option=no
6088 rm -f conftest*
6090 { $as_echo "$as_me:$LINENO: result: $libc_cv_ld_version_script_option" >&5
6091 $as_echo "$libc_cv_ld_version_script_option" >&6; }
6092 if test $shared != no &&
6093 test $libc_cv_asm_symver_directive = yes &&
6094 test $libc_cv_ld_version_script_option = yes &&
6095 test $enable_versioning = yes; then
6096 VERSIONING=yes
6097 cat >>confdefs.h <<\_ACEOF
6098 #define DO_VERSIONING 1
6099 _ACEOF
6101 else
6102 VERSIONING=no
6106 if test $elf = yes && test $shared != no && test $VERSIONING = no; then
6107 echo "\
6108 *** WARNING: You should not compile GNU libc without versioning. Not using
6109 *** versioning will introduce incompatibilities so that old binaries
6110 *** will not run anymore.
6111 *** For versioning you need recent binutils (binutils-2.8.1.0.23 or newer)."
6113 if test $elf = yes; then
6114 { $as_echo "$as_me:$LINENO: checking for .previous assembler directive" >&5
6115 $as_echo_n "checking for .previous assembler directive... " >&6; }
6116 if test "${libc_cv_asm_previous_directive+set}" = set; then
6117 $as_echo_n "(cached) " >&6
6118 else
6119 cat > conftest.s <<EOF
6120 .section foo_section
6121 .previous
6123 if { ac_try='${CC-cc} -c $ASFLAGS conftest.s 1>&5'
6124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6125 (eval $ac_try) 2>&5
6126 ac_status=$?
6127 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6128 (exit $ac_status); }; }; then
6129 libc_cv_asm_previous_directive=yes
6130 else
6131 libc_cv_asm_previous_directive=no
6133 rm -f conftest*
6135 { $as_echo "$as_me:$LINENO: result: $libc_cv_asm_previous_directive" >&5
6136 $as_echo "$libc_cv_asm_previous_directive" >&6; }
6137 if test $libc_cv_asm_previous_directive = yes; then
6138 cat >>confdefs.h <<\_ACEOF
6139 #define HAVE_ASM_PREVIOUS_DIRECTIVE 1
6140 _ACEOF
6142 else
6143 { $as_echo "$as_me:$LINENO: checking for .popsection assembler directive" >&5
6144 $as_echo_n "checking for .popsection assembler directive... " >&6; }
6145 if test "${libc_cv_asm_popsection_directive+set}" = set; then
6146 $as_echo_n "(cached) " >&6
6147 else
6148 cat > conftest.s <<EOF
6149 .pushsection foo_section
6150 .popsection
6152 if { ac_try='${CC-cc} -c $ASFLAGS conftest.s 1>&5'
6153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6154 (eval $ac_try) 2>&5
6155 ac_status=$?
6156 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6157 (exit $ac_status); }; }; then
6158 libc_cv_asm_popsection_directive=yes
6159 else
6160 libc_cv_asm_popsection_directive=no
6162 rm -f conftest*
6164 { $as_echo "$as_me:$LINENO: result: $libc_cv_asm_popsection_directive" >&5
6165 $as_echo "$libc_cv_asm_popsection_directive" >&6; }
6166 if test $libc_cv_asm_popsection_directive = yes; then
6167 cat >>confdefs.h <<\_ACEOF
6168 #define HAVE_ASM_POPSECTION_DIRECTIVE 1
6169 _ACEOF
6173 { $as_echo "$as_me:$LINENO: checking for .protected and .hidden assembler directive" >&5
6174 $as_echo_n "checking for .protected and .hidden assembler directive... " >&6; }
6175 if test "${libc_cv_asm_protected_directive+set}" = set; then
6176 $as_echo_n "(cached) " >&6
6177 else
6178 cat > conftest.s <<EOF
6179 .protected foo
6180 foo:
6181 .hidden bar
6182 bar:
6184 if { ac_try='${CC-cc} -c $ASFLAGS conftest.s 1>&5'
6185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6186 (eval $ac_try) 2>&5
6187 ac_status=$?
6188 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6189 (exit $ac_status); }; }; then
6190 libc_cv_asm_protected_directive=yes
6191 else
6192 { { $as_echo "$as_me:$LINENO: error: assembler support for symbol visibility is required" >&5
6193 $as_echo "$as_me: error: assembler support for symbol visibility is required" >&2;}
6194 { (exit 1); exit 1; }; }
6196 rm -f conftest*
6198 { $as_echo "$as_me:$LINENO: result: $libc_cv_asm_protected_directive" >&5
6199 $as_echo "$libc_cv_asm_protected_directive" >&6; }
6201 if test $libc_cv_asm_protected_directive = yes; then
6202 { $as_echo "$as_me:$LINENO: checking whether __attribute__((visibility())) is supported" >&5
6203 $as_echo_n "checking whether __attribute__((visibility())) is supported... " >&6; }
6204 if test "${libc_cv_visibility_attribute+set}" = set; then
6205 $as_echo_n "(cached) " >&6
6206 else
6207 cat > conftest.c <<EOF
6208 int foo __attribute__ ((visibility ("hidden"))) = 1;
6209 int bar __attribute__ ((visibility ("protected"))) = 1;
6211 libc_cv_visibility_attribute=no
6212 if { ac_try='${CC-cc} -Werror -S conftest.c -o conftest.s 1>&5'
6213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6214 (eval $ac_try) 2>&5
6215 ac_status=$?
6216 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6217 (exit $ac_status); }; }; then
6218 if grep '\.hidden.*foo' conftest.s >/dev/null; then
6219 if grep '\.protected.*bar' conftest.s >/dev/null; then
6220 libc_cv_visibility_attribute=yes
6224 rm -f conftest.cs
6227 { $as_echo "$as_me:$LINENO: result: $libc_cv_visibility_attribute" >&5
6228 $as_echo "$libc_cv_visibility_attribute" >&6; }
6229 if test $libc_cv_visibility_attribute != yes; then
6230 { { $as_echo "$as_me:$LINENO: error: compiler support for visibility attribute is required" >&5
6231 $as_echo "$as_me: error: compiler support for visibility attribute is required" >&2;}
6232 { (exit 1); exit 1; }; }
6236 if test $libc_cv_visibility_attribute = yes; then
6237 { $as_echo "$as_me:$LINENO: checking for broken __attribute__((visibility()))" >&5
6238 $as_echo_n "checking for broken __attribute__((visibility()))... " >&6; }
6239 if test "${libc_cv_broken_visibility_attribute+set}" = set; then
6240 $as_echo_n "(cached) " >&6
6241 else
6242 cat > conftest.c <<EOF
6243 int foo (int x);
6244 int bar (int x) __asm__ ("foo") __attribute__ ((visibility ("hidden")));
6245 int bar (int x) { return x; }
6247 libc_cv_broken_visibility_attribute=yes
6248 if { ac_try='${CC-cc} -Werror -S conftest.c -o conftest.s1>&5'
6249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6250 (eval $ac_try) 2>&5
6251 ac_status=$?
6252 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6253 (exit $ac_status); }; }; then
6254 if grep '\.hidden[ _]foo' conftest.s >/dev/null; then
6255 libc_cv_broken_visibility_attribute=no
6258 rm -f conftest.c conftest.s
6261 { $as_echo "$as_me:$LINENO: result: $libc_cv_broken_visibility_attribute" >&5
6262 $as_echo "$libc_cv_broken_visibility_attribute" >&6; }
6263 if test $libc_cv_broken_visibility_attribute = yes; then
6264 { { $as_echo "$as_me:$LINENO: error: working compiler support for visibility attribute is required" >&5
6265 $as_echo "$as_me: error: working compiler support for visibility attribute is required" >&2;}
6266 { (exit 1); exit 1; }; }
6270 { $as_echo "$as_me:$LINENO: checking for broken __attribute__((alias()))" >&5
6271 $as_echo_n "checking for broken __attribute__((alias()))... " >&6; }
6272 if test "${libc_cv_broken_alias_attribute+set}" = set; then
6273 $as_echo_n "(cached) " >&6
6274 else
6275 cat > conftest.c <<EOF
6276 extern int foo (int x) __asm ("xyzzy");
6277 int bar (int x) { return x; }
6278 extern __typeof (bar) foo __attribute ((weak, alias ("bar")));
6279 extern int dfoo;
6280 extern __typeof (dfoo) dfoo __asm ("abccb");
6281 int dfoo = 1;
6283 libc_cv_broken_alias_attribute=yes
6284 if { ac_try='${CC-cc} -Werror -S conftest.c -o conftest.s 1>&5'
6285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6286 (eval $ac_try) 2>&5
6287 ac_status=$?
6288 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6289 (exit $ac_status); }; }; then
6290 if grep 'xyzzy' conftest.s >/dev/null &&
6291 grep 'abccb' conftest.s >/dev/null; then
6292 libc_cv_broken_alias_attribute=no
6295 rm -f conftest.c conftest.s
6298 { $as_echo "$as_me:$LINENO: result: $libc_cv_broken_alias_attribute" >&5
6299 $as_echo "$libc_cv_broken_alias_attribute" >&6; }
6300 if test $libc_cv_broken_alias_attribute = yes; then
6301 { { $as_echo "$as_me:$LINENO: error: working alias attribute support required" >&5
6302 $as_echo "$as_me: error: working alias attribute support required" >&2;}
6303 { (exit 1); exit 1; }; }
6306 if test $libc_cv_visibility_attribute = yes; then
6307 { $as_echo "$as_me:$LINENO: checking whether to put _rtld_local into .sdata section" >&5
6308 $as_echo_n "checking whether to put _rtld_local into .sdata section... " >&6; }
6309 if test "${libc_cv_have_sdata_section+set}" = set; then
6310 $as_echo_n "(cached) " >&6
6311 else
6312 echo "int i;" > conftest.c
6313 libc_cv_have_sdata_section=no
6314 if ${CC-cc} $LDFLAGS -fPIC -shared -Wl,--verbose conftest.c -o conftest.so 2>&1 \
6315 | grep '\.sdata' >/dev/null; then
6316 libc_cv_have_sdata_section=yes
6318 rm -f conftest.c conftest.so
6321 { $as_echo "$as_me:$LINENO: result: $libc_cv_have_sdata_section" >&5
6322 $as_echo "$libc_cv_have_sdata_section" >&6; }
6323 if test $libc_cv_have_sdata_section = yes; then
6324 cat >>confdefs.h <<\_ACEOF
6325 #define HAVE_SDATA_SECTION 1
6326 _ACEOF
6331 { $as_echo "$as_me:$LINENO: checking for .preinit_array/.init_array/.fini_array support" >&5
6332 $as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
6333 if test "${libc_cv_initfini_array+set}" = set; then
6334 $as_echo_n "(cached) " >&6
6335 else
6336 cat > conftest.c <<EOF
6337 int _start (void) { return 0; }
6338 int __start (void) { return 0; }
6339 int foo (void) { return 1; }
6340 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
6342 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS -o conftest conftest.c
6343 -static -nostartfiles -nostdlib 1>&5'
6344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6345 (eval $ac_try) 2>&5
6346 ac_status=$?
6347 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6348 (exit $ac_status); }; }
6349 then
6350 if readelf -S conftest | fgrep INIT_ARRAY > /dev/null; then
6351 libc_cv_initfini_array=yes
6352 else
6353 libc_cv_initfini_array=no
6355 else
6356 libc_cv_initfini_array=no
6358 rm -f conftest*
6360 { $as_echo "$as_me:$LINENO: result: $libc_cv_initfini_array" >&5
6361 $as_echo "$libc_cv_initfini_array" >&6; }
6362 if test $libc_cv_initfini_array != yes; then
6363 { { $as_echo "$as_me:$LINENO: error: Need linker with .init_array/.fini_array support." >&5
6364 $as_echo "$as_me: error: Need linker with .init_array/.fini_array support." >&2;}
6365 { (exit 1); exit 1; }; }
6368 { $as_echo "$as_me:$LINENO: checking for libunwind-support in compiler" >&5
6369 $as_echo_n "checking for libunwind-support in compiler... " >&6; }
6370 if test "${libc_cv_cc_with_libunwind+set}" = set; then
6371 $as_echo_n "(cached) " >&6
6372 else
6374 cat > conftest.c <<EOF
6375 int main (void) { return 0; }
6377 if ${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS -static -o conftest \
6378 conftest.c -v 2>&1 >/dev/null | grep -q " -lunwind "; then
6379 libc_cv_cc_with_libunwind=yes
6380 else
6381 libc_cv_cc_with_libunwind=no
6383 rm -f conftest*
6385 { $as_echo "$as_me:$LINENO: result: $libc_cv_cc_with_libunwind" >&5
6386 $as_echo "$libc_cv_cc_with_libunwind" >&6; }
6388 if test $libc_cv_cc_with_libunwind = yes; then
6389 cat >>confdefs.h <<\_ACEOF
6390 #define HAVE_CC_WITH_LIBUNWIND 1
6391 _ACEOF
6395 { $as_echo "$as_me:$LINENO: checking for -z nodelete option" >&5
6396 $as_echo_n "checking for -z nodelete option... " >&6; }
6397 if test "${libc_cv_z_nodelete+set}" = set; then
6398 $as_echo_n "(cached) " >&6
6399 else
6400 cat > conftest.c <<EOF
6401 int _start (void) { return 42; }
6403 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
6404 -fPIC -shared -o conftest.so conftest.c
6405 -nostartfiles -nostdlib
6406 -Wl,--enable-new-dtags,-z,nodelete 1>&5'
6407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6408 (eval $ac_try) 2>&5
6409 ac_status=$?
6410 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6411 (exit $ac_status); }; }
6412 then
6413 libc_cv_z_nodelete=yes
6414 else
6415 { { $as_echo "$as_me:$LINENO: error: linker with -z nodelete support required" >&5
6416 $as_echo "$as_me: error: linker with -z nodelete support required" >&2;}
6417 { (exit 1); exit 1; }; }
6419 rm -f conftest*
6421 { $as_echo "$as_me:$LINENO: result: $libc_cv_z_nodelete" >&5
6422 $as_echo "$libc_cv_z_nodelete" >&6; }
6424 { $as_echo "$as_me:$LINENO: checking for -z nodlopen option" >&5
6425 $as_echo_n "checking for -z nodlopen option... " >&6; }
6426 if test "${libc_cv_z_nodlopen+set}" = set; then
6427 $as_echo_n "(cached) " >&6
6428 else
6429 cat > conftest.c <<EOF
6430 int _start (void) { return 42; }
6432 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
6433 -fPIC -shared -o conftest.so conftest.c
6434 -nostartfiles -nostdlib
6435 -Wl,--enable-new-dtags,-z,nodlopen 1>&5'
6436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6437 (eval $ac_try) 2>&5
6438 ac_status=$?
6439 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6440 (exit $ac_status); }; }
6441 then
6442 libc_cv_z_nodlopen=yes
6443 else
6444 { { $as_echo "$as_me:$LINENO: error: linker with -z nodlopen support required" >&5
6445 $as_echo "$as_me: error: linker with -z nodlopen support required" >&2;}
6446 { (exit 1); exit 1; }; }
6448 rm -f conftest*
6450 { $as_echo "$as_me:$LINENO: result: $libc_cv_z_nodlopen" >&5
6451 $as_echo "$libc_cv_z_nodlopen" >&6; }
6453 { $as_echo "$as_me:$LINENO: checking for -z initfirst option" >&5
6454 $as_echo_n "checking for -z initfirst option... " >&6; }
6455 if test "${libc_cv_z_initfirst+set}" = set; then
6456 $as_echo_n "(cached) " >&6
6457 else
6458 cat > conftest.c <<EOF
6459 int _start (void) { return 42; }
6461 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
6462 -fPIC -shared -o conftest.so conftest.c
6463 -nostartfiles -nostdlib
6464 -Wl,--enable-new-dtags,-z,initfirst 1>&5'
6465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6466 (eval $ac_try) 2>&5
6467 ac_status=$?
6468 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6469 (exit $ac_status); }; }
6470 then
6471 libc_cv_z_initfirst=yes
6472 else
6473 { { $as_echo "$as_me:$LINENO: error: linker with -z initfirst support required" >&5
6474 $as_echo "$as_me: error: linker with -z initfirst support required" >&2;}
6475 { (exit 1); exit 1; }; }
6477 rm -f conftest*
6479 { $as_echo "$as_me:$LINENO: result: $libc_cv_z_initfirst" >&5
6480 $as_echo "$libc_cv_z_initfirst" >&6; }
6482 case "$base_machine" in
6483 i[34567]86 | x86_64 | powerpc* | s390* | sparc* | alpha*)
6484 { $as_echo "$as_me:$LINENO: checking for -z relro option" >&5
6485 $as_echo_n "checking for -z relro option... " >&6; }
6486 if test "${libc_cv_z_relro+set}" = set; then
6487 $as_echo_n "(cached) " >&6
6488 else
6489 libc_cv_z_relro=no
6490 if { ac_try='${CC-cc} -v --help 2>&1|grep "z relro" 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 if { ac_try='${CC-cc} -Wl,--verbose 2>&1|grep DATA_SEGMENT_RELRO_END 1>&5'
6498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6499 (eval $ac_try) 2>&5
6500 ac_status=$?
6501 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6502 (exit $ac_status); }; }
6503 then
6504 libc_cv_z_relro=yes
6508 { $as_echo "$as_me:$LINENO: result: $libc_cv_z_relro" >&5
6509 $as_echo "$libc_cv_z_relro" >&6; }
6510 if test "$libc_cv_z_relro" = no; then
6511 { { $as_echo "$as_me:$LINENO: error: linker with -z relro support required" >&5
6512 $as_echo "$as_me: error: linker with -z relro support required" >&2;}
6513 { (exit 1); exit 1; }; }
6516 *) ;;
6517 esac
6519 { $as_echo "$as_me:$LINENO: checking for -Bgroup option" >&5
6520 $as_echo_n "checking for -Bgroup option... " >&6; }
6521 if test "${libc_cv_Bgroup+set}" = set; then
6522 $as_echo_n "(cached) " >&6
6523 else
6524 cat > conftest.c <<EOF
6525 int _start (void) { return 42; }
6527 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
6528 -fPIC -shared -o conftest.so conftest.c
6529 -Wl,-Bgroup -nostdlib 1>&5'
6530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6531 (eval $ac_try) 2>&5
6532 ac_status=$?
6533 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6534 (exit $ac_status); }; }
6535 then
6536 libc_cv_Bgroup=yes
6537 else
6538 libc_cv_Bgroup=no
6540 rm -f conftest*
6542 { $as_echo "$as_me:$LINENO: result: $libc_cv_Bgroup" >&5
6543 $as_echo "$libc_cv_Bgroup" >&6; }
6546 { $as_echo "$as_me:$LINENO: checking for libgcc_s suffix" >&5
6547 $as_echo_n "checking for libgcc_s suffix... " >&6; }
6548 if test "${libc_cv_libgcc_s_suffix+set}" = set; then
6549 $as_echo_n "(cached) " >&6
6550 else
6551 cat > conftest.c <<EOF
6552 int main (void) { return 0; }
6554 libc_cv_libgcc_s_suffix=`${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \
6555 -fPIC -shared -shared-libgcc -o conftest.so \
6556 conftest.c -v 2>&1 >/dev/null \
6557 | sed -n 's/^.* -lgcc_s\([^ ]*\) .*$/\1/p'`
6558 rm -f conftest*
6560 { $as_echo "$as_me:$LINENO: result: $libc_cv_libgcc_s_suffix" >&5
6561 $as_echo "$libc_cv_libgcc_s_suffix" >&6; }
6564 { $as_echo "$as_me:$LINENO: checking for --as-needed option" >&5
6565 $as_echo_n "checking for --as-needed option... " >&6; }
6566 if test "${libc_cv_as_needed+set}" = set; then
6567 $as_echo_n "(cached) " >&6
6568 else
6569 cat > conftest.c <<EOF
6570 int main (void) { return 0; }
6572 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
6573 -fPIC -shared -o conftest.so conftest.c
6574 -lgcc_s$libc_cv_libgcc_s_suffix -Wl,--as-needed
6575 -nostdlib 1>&5'
6576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6577 (eval $ac_try) 2>&5
6578 ac_status=$?
6579 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6580 (exit $ac_status); }; }
6581 then
6582 libc_cv_as_needed=yes
6583 else
6584 libc_cv_as_needed=no
6586 rm -f conftest*
6588 { $as_echo "$as_me:$LINENO: result: $libc_cv_as_needed" >&5
6589 $as_echo "$libc_cv_as_needed" >&6; }
6592 ASFLAGS_config=
6593 { $as_echo "$as_me:$LINENO: checking whether --noexecstack is desirable for .S files" >&5
6594 $as_echo_n "checking whether --noexecstack is desirable for .S files... " >&6; }
6595 if test "${libc_cv_as_noexecstack+set}" = set; then
6596 $as_echo_n "(cached) " >&6
6597 else
6598 cat > conftest.c <<EOF
6599 void foo (void) { }
6601 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS
6602 -S -o conftest.s conftest.c 1>&5'
6603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6604 (eval $ac_try) 2>&5
6605 ac_status=$?
6606 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6607 (exit $ac_status); }; } \
6608 && grep -q .note.GNU-stack conftest.s \
6609 && { ac_try='${CC-cc} $ASFLAGS -Wa,--noexecstack
6610 -c -o conftest.o conftest.s 1>&5'
6611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6612 (eval $ac_try) 2>&5
6613 ac_status=$?
6614 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6615 (exit $ac_status); }; }
6616 then
6617 libc_cv_as_noexecstack=yes
6618 else
6619 libc_cv_as_noexecstack=no
6621 rm -f conftest*
6623 { $as_echo "$as_me:$LINENO: result: $libc_cv_as_noexecstack" >&5
6624 $as_echo "$libc_cv_as_noexecstack" >&6; }
6625 if test $libc_cv_as_noexecstack = yes; then
6626 ASFLAGS_config="$ASFLAGS_config -Wa,--noexecstack"
6630 { $as_echo "$as_me:$LINENO: checking for -z combreloc" >&5
6631 $as_echo_n "checking for -z combreloc... " >&6; }
6632 if test "${libc_cv_z_combreloc+set}" = set; then
6633 $as_echo_n "(cached) " >&6
6634 else
6635 cat > conftest.c <<EOF
6636 extern int bar (int);
6637 extern int mumble;
6638 int foo (void) { return bar (mumble); }
6640 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
6641 -fPIC -shared -o conftest.so conftest.c
6642 -nostdlib -nostartfiles
6643 -Wl,-z,combreloc 1>&5'
6644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6645 (eval $ac_try) 2>&5
6646 ac_status=$?
6647 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6648 (exit $ac_status); }; }
6649 then
6650 if readelf -S conftest.so | grep '\.rel\(a\|\)\.dyn' > /dev/null; then
6651 libc_cv_z_combreloc=yes
6652 else
6653 libc_cv_z_combreloc=no
6655 else
6656 libc_cv_z_combreloc=no
6658 rm -f conftest*
6660 { $as_echo "$as_me:$LINENO: result: $libc_cv_z_combreloc" >&5
6661 $as_echo "$libc_cv_z_combreloc" >&6; }
6662 if test "$libc_cv_z_combreloc" = yes; then
6663 cat >>confdefs.h <<\_ACEOF
6664 #define HAVE_Z_COMBRELOC 1
6665 _ACEOF
6670 { $as_echo "$as_me:$LINENO: checking for -z execstack" >&5
6671 $as_echo_n "checking for -z execstack... " >&6; }
6672 if test "${libc_cv_z_execstack+set}" = set; then
6673 $as_echo_n "(cached) " >&6
6674 else
6675 cat > conftest.c <<EOF
6676 int _start (void) { return 42; }
6678 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
6679 -fPIC -shared -o conftest.so conftest.c
6680 -Wl,-z,execstack -nostdlib
6681 1>&5'
6682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6683 (eval $ac_try) 2>&5
6684 ac_status=$?
6685 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6686 (exit $ac_status); }; }
6687 then
6688 libc_cv_z_execstack=yes
6689 else
6690 libc_cv_z_execstack=no
6692 rm -f conftest*
6694 { $as_echo "$as_me:$LINENO: result: $libc_cv_z_execstack" >&5
6695 $as_echo "$libc_cv_z_execstack" >&6; }
6698 { $as_echo "$as_me:$LINENO: checking for -fpie" >&5
6699 $as_echo_n "checking for -fpie... " >&6; }
6700 if test "${libc_cv_fpie+set}" = set; then
6701 $as_echo_n "(cached) " >&6
6702 else
6703 cat > conftest.c <<EOF
6704 int foo;
6705 main () { return 0;}
6707 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS -pie -fpie
6708 -o conftest conftest.c 1>&5'
6709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6710 (eval $ac_try) 2>&5
6711 ac_status=$?
6712 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6713 (exit $ac_status); }; }
6714 then
6715 libc_cv_fpie=yes
6716 else
6717 libc_cv_fpie=no
6719 rm -f conftest*
6721 { $as_echo "$as_me:$LINENO: result: $libc_cv_fpie" >&5
6722 $as_echo "$libc_cv_fpie" >&6; }
6726 { $as_echo "$as_me:$LINENO: checking for --hash-style option" >&5
6727 $as_echo_n "checking for --hash-style option... " >&6; }
6728 if test "${libc_cv_hashstyle+set}" = set; then
6729 $as_echo_n "(cached) " >&6
6730 else
6731 cat > conftest.c <<EOF
6732 int _start (void) { return 42; }
6734 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
6735 -fPIC -shared -o conftest.so conftest.c
6736 -Wl,--hash-style=both -nostdlib 1>&5'
6737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6738 (eval $ac_try) 2>&5
6739 ac_status=$?
6740 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6741 (exit $ac_status); }; }
6742 then
6743 libc_cv_hashstyle=yes
6744 else
6745 libc_cv_hashstyle=no
6747 rm -f conftest*
6749 { $as_echo "$as_me:$LINENO: result: $libc_cv_hashstyle" >&5
6750 $as_echo "$libc_cv_hashstyle" >&6; }
6754 { $as_echo "$as_me:$LINENO: checking for -fno-toplevel-reorder -fno-section-anchors" >&5
6755 $as_echo_n "checking for -fno-toplevel-reorder -fno-section-anchors... " >&6; }
6756 if test "${libc_cv_fno_toplevel_reorder+set}" = set; then
6757 $as_echo_n "(cached) " >&6
6758 else
6759 cat > conftest.c <<EOF
6760 int foo;
6762 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -S -fno-toplevel-reorder -fno-section-anchors
6763 conftest.c 1>&5'
6764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6765 (eval $ac_try) 2>&5
6766 ac_status=$?
6767 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6768 (exit $ac_status); }; }
6769 then
6770 libc_cv_fno_toplevel_reorder=yes
6771 else
6772 libc_cv_fno_toplevel_reorder=no
6774 rm -f conftest*
6776 { $as_echo "$as_me:$LINENO: result: $libc_cv_fno_toplevel_reorder" >&5
6777 $as_echo "$libc_cv_fno_toplevel_reorder" >&6; }
6778 if test $libc_cv_fno_toplevel_reorder = yes; then
6779 fno_unit_at_a_time="-fno-toplevel-reorder -fno-section-anchors"
6780 else
6781 fno_unit_at_a_time=-fno-unit-at-a-time
6785 { $as_echo "$as_me:$LINENO: checking for -fstack-protector" >&5
6786 $as_echo_n "checking for -fstack-protector... " >&6; }
6787 if test "${libc_cv_ssp+set}" = set; then
6788 $as_echo_n "(cached) " >&6
6789 else
6790 cat > conftest.c <<EOF
6791 int foo;
6792 main () { return 0;}
6794 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS -Werror -fstack-protector
6795 -o conftest conftest.c 1>&5'
6796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6797 (eval $ac_try) 2>&5
6798 ac_status=$?
6799 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6800 (exit $ac_status); }; }
6801 then
6802 libc_cv_ssp=yes
6803 else
6804 libc_cv_ssp=no
6806 rm -f conftest*
6808 { $as_echo "$as_me:$LINENO: result: $libc_cv_ssp" >&5
6809 $as_echo "$libc_cv_ssp" >&6; }
6812 { $as_echo "$as_me:$LINENO: checking for -fgnu89-inline" >&5
6813 $as_echo_n "checking for -fgnu89-inline... " >&6; }
6814 if test "${libc_cv_gnu89_inline+set}" = set; then
6815 $as_echo_n "(cached) " >&6
6816 else
6817 cat > conftest.c <<EOF
6818 int foo;
6819 #ifdef __GNUC_GNU_INLINE__
6820 main () { return 0;}
6821 #else
6822 #error
6823 #endif
6825 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -S -std=gnu99 -fgnu89-inline
6826 -o conftest.s conftest.c 1>&5'
6827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6828 (eval $ac_try) 2>&5
6829 ac_status=$?
6830 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6831 (exit $ac_status); }; }
6832 then
6833 libc_cv_gnu89_inline=yes
6834 else
6835 libc_cv_gnu89_inline=no
6837 rm -f conftest*
6839 { $as_echo "$as_me:$LINENO: result: $libc_cv_gnu89_inline" >&5
6840 $as_echo "$libc_cv_gnu89_inline" >&6; }
6841 if test $libc_cv_gnu89_inline = yes; then
6842 libc_cv_gnu89_inline=-fgnu89-inline
6843 else
6844 libc_cv_gnu89_inline=
6848 if test $elf != yes; then
6849 { $as_echo "$as_me:$LINENO: checking for .init and .fini sections" >&5
6850 $as_echo_n "checking for .init and .fini sections... " >&6; }
6851 if test "${libc_cv_have_initfini+set}" = set; then
6852 $as_echo_n "(cached) " >&6
6853 else
6854 cat >conftest.$ac_ext <<_ACEOF
6855 /* confdefs.h. */
6856 _ACEOF
6857 cat confdefs.h >>conftest.$ac_ext
6858 cat >>conftest.$ac_ext <<_ACEOF
6859 /* end confdefs.h. */
6862 main ()
6864 asm (".section .init");
6865 asm (".section .fini");
6866 asm ("${libc_cv_dot_text}");
6868 return 0;
6870 _ACEOF
6871 rm -f conftest.$ac_objext
6872 if { (ac_try="$ac_compile"
6873 case "(($ac_try" in
6874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6875 *) ac_try_echo=$ac_try;;
6876 esac
6877 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6878 $as_echo "$ac_try_echo") >&5
6879 (eval "$ac_compile") 2>conftest.er1
6880 ac_status=$?
6881 grep -v '^ *+' conftest.er1 >conftest.err
6882 rm -f conftest.er1
6883 cat conftest.err >&5
6884 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6885 (exit $ac_status); } && {
6886 test -z "$ac_c_werror_flag" ||
6887 test ! -s conftest.err
6888 } && test -s conftest.$ac_objext; then
6889 libc_cv_have_initfini=yes
6890 else
6891 $as_echo "$as_me: failed program was:" >&5
6892 sed 's/^/| /' conftest.$ac_ext >&5
6894 libc_cv_have_initfini=no
6897 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6899 { $as_echo "$as_me:$LINENO: result: $libc_cv_have_initfini" >&5
6900 $as_echo "$libc_cv_have_initfini" >&6; }
6901 if test $libc_cv_have_initfini = yes; then
6902 cat >>confdefs.h <<\_ACEOF
6903 #define HAVE_INITFINI 1
6904 _ACEOF
6909 if test $elf = yes; then
6910 { $as_echo "$as_me:$LINENO: checking whether cc puts quotes around section names" >&5
6911 $as_echo_n "checking whether cc puts quotes around section names... " >&6; }
6912 if test "${libc_cv_have_section_quotes+set}" = set; then
6913 $as_echo_n "(cached) " >&6
6914 else
6915 cat > conftest.c <<EOF
6916 static const int foo
6917 __attribute__ ((section ("bar"))) = 1;
6919 if ${CC-cc} -S conftest.c -o conftest.s; then
6920 if grep '\.section.*"bar"' conftest.s >/dev/null; then
6921 libc_cv_have_section_quotes=yes
6922 else
6923 libc_cv_have_section_quotes=no
6925 else
6926 libc_cv_have_section_quotes=unknown
6928 rm -f conftest.cs
6931 { $as_echo "$as_me:$LINENO: result: $libc_cv_have_section_quotes" >&5
6932 $as_echo "$libc_cv_have_section_quotes" >&6; }
6933 if test $libc_cv_have_section_quotes = yes; then
6934 cat >>confdefs.h <<\_ACEOF
6935 #define HAVE_SECTION_QUOTES 1
6936 _ACEOF
6943 if test $elf = yes; then
6944 libc_cv_asm_underscores=no
6945 else
6946 if test $ac_cv_prog_cc_works = yes; then
6947 { $as_echo "$as_me:$LINENO: checking for _ prefix on C symbol names" >&5
6948 $as_echo_n "checking for _ prefix on C symbol names... " >&6; }
6949 if test "${libc_cv_asm_underscores+set}" = set; then
6950 $as_echo_n "(cached) " >&6
6951 else
6952 cat >conftest.$ac_ext <<_ACEOF
6953 /* confdefs.h. */
6954 _ACEOF
6955 cat confdefs.h >>conftest.$ac_ext
6956 cat >>conftest.$ac_ext <<_ACEOF
6957 /* end confdefs.h. */
6958 asm ("_glibc_foobar:");
6960 main ()
6962 glibc_foobar ();
6964 return 0;
6966 _ACEOF
6967 rm -f conftest.$ac_objext conftest$ac_exeext
6968 if { (ac_try="$ac_link"
6969 case "(($ac_try" in
6970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6971 *) ac_try_echo=$ac_try;;
6972 esac
6973 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6974 $as_echo "$ac_try_echo") >&5
6975 (eval "$ac_link") 2>conftest.er1
6976 ac_status=$?
6977 grep -v '^ *+' conftest.er1 >conftest.err
6978 rm -f conftest.er1
6979 cat conftest.err >&5
6980 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6981 (exit $ac_status); } && {
6982 test -z "$ac_c_werror_flag" ||
6983 test ! -s conftest.err
6984 } && test -s conftest$ac_exeext && {
6985 test "$cross_compiling" = yes ||
6986 $as_test_x conftest$ac_exeext
6987 }; then
6988 libc_cv_asm_underscores=yes
6989 else
6990 $as_echo "$as_me: failed program was:" >&5
6991 sed 's/^/| /' conftest.$ac_ext >&5
6993 libc_cv_asm_underscores=no
6996 rm -rf conftest.dSYM
6997 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6998 conftest$ac_exeext conftest.$ac_ext
7000 { $as_echo "$as_me:$LINENO: result: $libc_cv_asm_underscores" >&5
7001 $as_echo "$libc_cv_asm_underscores" >&6; }
7002 else
7003 { $as_echo "$as_me:$LINENO: checking for _ prefix on C symbol names" >&5
7004 $as_echo_n "checking for _ prefix on C symbol names... " >&6; }
7005 if test "${libc_cv_asm_underscores+set}" = set; then
7006 $as_echo_n "(cached) " >&6
7007 else
7008 cat > conftest.$ac_ext <<EOF
7009 #line $LINENO "configure"
7010 #include "confdefs.h"
7011 void underscore_test(void) {
7012 return; }
7014 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7015 (eval $ac_compile) 2>&5
7016 ac_status=$?
7017 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7018 (exit $ac_status); }; then
7019 if grep _underscore_test conftest* >/dev/null; then
7020 rm -f conftest*
7021 libc_cv_asm_underscores=yes
7022 else
7023 rm -f conftest*
7024 libc_cv_asm_underscores=no
7026 else
7027 echo "configure: failed program was:" >&5
7028 cat conftest.$ac_ext >&5
7029 rm -f conftest*
7030 libc_cv_asm_underscores=no
7032 rm -f conftest*
7034 { $as_echo "$as_me:$LINENO: result: $libc_cv_asm_underscores" >&5
7035 $as_echo "$libc_cv_asm_underscores" >&6; }
7038 if test $libc_cv_asm_underscores = no; then
7039 cat >>confdefs.h <<\_ACEOF
7040 #define NO_UNDERSCORES 1
7041 _ACEOF
7045 if test $elf = yes; then
7046 libc_cv_weak_symbols=yes
7049 { $as_echo "$as_me:$LINENO: checking for assembler .weak directive" >&5
7050 $as_echo_n "checking for assembler .weak directive... " >&6; }
7051 if test "${libc_cv_asm_weak_directive+set}" = set; then
7052 $as_echo_n "(cached) " >&6
7053 else
7054 cat > conftest.s <<EOF
7055 ${libc_cv_dot_text}
7056 ${libc_cv_asm_global_directive} foo
7057 foo:
7058 .weak foo
7059 .weak bar; bar = foo
7061 if { ac_try='${CC-cc} $ASFLAGS -c conftest.s 1>&5'
7062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7063 (eval $ac_try) 2>&5
7064 ac_status=$?
7065 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7066 (exit $ac_status); }; }; then
7067 libc_cv_asm_weak_directive=yes
7068 else
7069 libc_cv_asm_weak_directive=no
7071 rm -f conftest*
7073 { $as_echo "$as_me:$LINENO: result: $libc_cv_asm_weak_directive" >&5
7074 $as_echo "$libc_cv_asm_weak_directive" >&6; }
7076 if test $libc_cv_asm_weak_directive = no; then
7077 { $as_echo "$as_me:$LINENO: checking for assembler .weakext directive" >&5
7078 $as_echo_n "checking for assembler .weakext directive... " >&6; }
7079 if test "${libc_cv_asm_weakext_directive+set}" = set; then
7080 $as_echo_n "(cached) " >&6
7081 else
7082 cat > conftest.s <<EOF
7083 ${libc_cv_dot_text}
7084 ${libc_cv_asm_global_directive} foo
7085 foo:
7086 .weakext bar foo
7087 .weakext baz
7088 ${libc_cv_asm_global_directive} baz
7089 baz:
7091 if { ac_try='${CC-cc} $ASFLAGS -c conftest.s 1>&5'
7092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7093 (eval $ac_try) 2>&5
7094 ac_status=$?
7095 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7096 (exit $ac_status); }; }; then
7097 libc_cv_asm_weakext_directive=yes
7098 else
7099 libc_cv_asm_weakext_directive=no
7101 rm -f conftest*
7103 { $as_echo "$as_me:$LINENO: result: $libc_cv_asm_weakext_directive" >&5
7104 $as_echo "$libc_cv_asm_weakext_directive" >&6; }
7106 fi # no .weak
7108 if test $libc_cv_asm_weak_directive = yes; then
7109 cat >>confdefs.h <<\_ACEOF
7110 #define HAVE_ASM_WEAK_DIRECTIVE 1
7111 _ACEOF
7113 elif test $libc_cv_asm_weakext_directive = yes; then
7114 cat >>confdefs.h <<\_ACEOF
7115 #define HAVE_ASM_WEAKEXT_DIRECTIVE 1
7116 _ACEOF
7120 { $as_echo "$as_me:$LINENO: checking whether CFI directives are supported" >&5
7121 $as_echo_n "checking whether CFI directives are supported... " >&6; }
7122 if test "${libc_cv_asm_cfi_directives+set}" = set; then
7123 $as_echo_n "(cached) " >&6
7124 else
7125 case $machine in
7126 sparc/sparc64*) cfi_offset=2047;;
7127 *) cfi_offset=0;;
7128 esac
7129 cat > conftest.s <<EOF
7130 .text
7131 .type func,%function
7132 func:
7133 .cfi_startproc
7134 .cfi_remember_state
7135 .cfi_rel_offset 1, $cfi_offset
7136 .cfi_endproc
7138 if { ac_try='${CC-cc} $ASFLAGS -c conftest.s 1>&5'
7139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7140 (eval $ac_try) 2>&5
7141 ac_status=$?
7142 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7143 (exit $ac_status); }; }; then
7144 libc_cv_asm_cfi_directives=yes
7145 else
7146 libc_cv_asm_cfi_directives=no
7148 rm -f conftest*
7150 { $as_echo "$as_me:$LINENO: result: $libc_cv_asm_cfi_directives" >&5
7151 $as_echo "$libc_cv_asm_cfi_directives" >&6; }
7152 if test $libc_cv_asm_cfi_directives = yes; then
7153 cat >>confdefs.h <<\_ACEOF
7154 #define HAVE_ASM_CFI_DIRECTIVES 1
7155 _ACEOF
7159 { $as_echo "$as_me:$LINENO: checking for ld --no-whole-archive" >&5
7160 $as_echo_n "checking for ld --no-whole-archive... " >&6; }
7161 if test "${libc_cv_ld_no_whole_archive+set}" = set; then
7162 $as_echo_n "(cached) " >&6
7163 else
7164 cat > conftest.c <<\EOF
7165 _start () {}
7166 int __eh_pc;
7167 __throw () {}
7169 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
7170 -nostdlib -nostartfiles -Wl,--no-whole-archive
7171 -o conftest conftest.c 1>&5'
7172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7173 (eval $ac_try) 2>&5
7174 ac_status=$?
7175 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7176 (exit $ac_status); }; }; then
7177 libc_cv_ld_no_whole_archive=yes
7178 else
7179 libc_cv_ld_no_whole_archive=no
7181 rm -f conftest*
7183 { $as_echo "$as_me:$LINENO: result: $libc_cv_ld_no_whole_archive" >&5
7184 $as_echo "$libc_cv_ld_no_whole_archive" >&6; }
7185 if test $libc_cv_ld_no_whole_archive = yes; then
7186 no_whole_archive=-Wl,--no-whole-archive
7189 { $as_echo "$as_me:$LINENO: checking for gcc -fexceptions" >&5
7190 $as_echo_n "checking for gcc -fexceptions... " >&6; }
7191 if test "${libc_cv_gcc_exceptions+set}" = set; then
7192 $as_echo_n "(cached) " >&6
7193 else
7194 cat > conftest.c <<\EOF
7195 _start () {}
7196 int __eh_pc;
7197 __throw () {}
7199 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
7200 -nostdlib -nostartfiles -fexceptions
7201 -o conftest conftest.c 1>&5'
7202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7203 (eval $ac_try) 2>&5
7204 ac_status=$?
7205 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7206 (exit $ac_status); }; }; then
7207 libc_cv_gcc_exceptions=yes
7208 else
7209 libc_cv_gcc_exceptions=no
7211 rm -f conftest*
7213 { $as_echo "$as_me:$LINENO: result: $libc_cv_gcc_exceptions" >&5
7214 $as_echo "$libc_cv_gcc_exceptions" >&6; }
7215 if test $libc_cv_gcc_exceptions = yes; then
7216 exceptions=-fexceptions
7219 if test "$host_cpu" = powerpc ; then
7220 # Check for a bug present in at least versions 2.8.x of GCC
7221 # and versions 1.0.x of EGCS.
7222 { $as_echo "$as_me:$LINENO: checking whether clobbering cr0 causes problems" >&5
7223 $as_echo_n "checking whether clobbering cr0 causes problems... " >&6; }
7224 if test "${libc_cv_c_asmcr0_bug+set}" = set; then
7225 $as_echo_n "(cached) " >&6
7226 else
7227 cat >conftest.$ac_ext <<_ACEOF
7228 /* confdefs.h. */
7229 _ACEOF
7230 cat confdefs.h >>conftest.$ac_ext
7231 cat >>conftest.$ac_ext <<_ACEOF
7232 /* end confdefs.h. */
7233 int tester(int x) { asm ("" : : : "cc"); return x & 123; }
7235 main ()
7239 return 0;
7241 _ACEOF
7242 rm -f conftest.$ac_objext
7243 if { (ac_try="$ac_compile"
7244 case "(($ac_try" in
7245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7246 *) ac_try_echo=$ac_try;;
7247 esac
7248 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7249 $as_echo "$ac_try_echo") >&5
7250 (eval "$ac_compile") 2>conftest.er1
7251 ac_status=$?
7252 grep -v '^ *+' conftest.er1 >conftest.err
7253 rm -f conftest.er1
7254 cat conftest.err >&5
7255 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7256 (exit $ac_status); } && {
7257 test -z "$ac_c_werror_flag" ||
7258 test ! -s conftest.err
7259 } && test -s conftest.$ac_objext; then
7260 libc_cv_c_asmcr0_bug='no'
7261 else
7262 $as_echo "$as_me: failed program was:" >&5
7263 sed 's/^/| /' conftest.$ac_ext >&5
7265 libc_cv_c_asmcr0_bug='yes'
7268 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7270 { $as_echo "$as_me:$LINENO: result: $libc_cv_c_asmcr0_bug" >&5
7271 $as_echo "$libc_cv_c_asmcr0_bug" >&6; }
7272 if test "$libc_cv_c_asmcr0_bug" != 'no'; then
7273 cat >>confdefs.h <<\_ACEOF
7274 #define BROKEN_PPC_ASM_CR0 1
7275 _ACEOF
7280 { $as_echo "$as_me:$LINENO: checking for __builtin_expect" >&5
7281 $as_echo_n "checking for __builtin_expect... " >&6; }
7282 if test "${libc_cv_gcc_builtin_expect+set}" = set; then
7283 $as_echo_n "(cached) " >&6
7284 else
7285 cat > conftest.c <<EOF
7286 #line $LINENO "configure"
7287 int foo (int a)
7289 a = __builtin_expect (a, 10);
7290 return a == 10 ? 0 : 1;
7293 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS -nostdlib -nostartfiles
7294 -o conftest conftest.c -lgcc >&5'
7295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7296 (eval $ac_try) 2>&5
7297 ac_status=$?
7298 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7299 (exit $ac_status); }; }; then
7300 libc_cv_gcc_builtin_expect=yes
7301 else
7302 libc_cv_gcc_builtin_expect=no
7304 rm -f conftest*
7306 { $as_echo "$as_me:$LINENO: result: $libc_cv_gcc_builtin_expect" >&5
7307 $as_echo "$libc_cv_gcc_builtin_expect" >&6; }
7308 if test "$libc_cv_gcc_builtin_expect" = yes; then
7309 cat >>confdefs.h <<\_ACEOF
7310 #define HAVE_BUILTIN_EXPECT 1
7311 _ACEOF
7315 { $as_echo "$as_me:$LINENO: checking for __builtin_memset" >&5
7316 $as_echo_n "checking for __builtin_memset... " >&6; }
7317 if test "${libc_cv_gcc_builtin_memset+set}" = set; then
7318 $as_echo_n "(cached) " >&6
7319 else
7320 cat > conftest.c <<\EOF
7321 void zero (void *x)
7323 __builtin_memset (x, 0, 1000);
7326 if { ac_try='${CC-cc} -O3 -S conftest.c -o - | fgrep "memset" > /dev/null'
7327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7328 (eval $ac_try) 2>&5
7329 ac_status=$?
7330 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7331 (exit $ac_status); }; };
7332 then
7333 libc_cv_gcc_builtin_memset=no
7334 else
7335 libc_cv_gcc_builtin_memset=yes
7337 rm -f conftest*
7339 { $as_echo "$as_me:$LINENO: result: $libc_cv_gcc_builtin_memset" >&5
7340 $as_echo "$libc_cv_gcc_builtin_memset" >&6; }
7341 if test "$libc_cv_gcc_builtin_memset" = yes ; then
7342 cat >>confdefs.h <<\_ACEOF
7343 #define HAVE_BUILTIN_MEMSET 1
7344 _ACEOF
7348 { $as_echo "$as_me:$LINENO: checking for redirection of built-in functions" >&5
7349 $as_echo_n "checking for redirection of built-in functions... " >&6; }
7350 if test "${libc_cv_gcc_builtin_redirection+set}" = set; then
7351 $as_echo_n "(cached) " >&6
7352 else
7353 cat > conftest.c <<\EOF
7354 extern char *strstr (const char *, const char *) __asm ("my_strstr");
7355 char *foo (const char *a, const char *b)
7357 return __builtin_strstr (a, b);
7360 if { ac_try='${CC-cc} -O3 -S conftest.c -o - | fgrep "my_strstr" > /dev/null'
7361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7362 (eval $ac_try) 2>&5
7363 ac_status=$?
7364 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7365 (exit $ac_status); }; };
7366 then
7367 libc_cv_gcc_builtin_redirection=yes
7368 else
7369 libc_cv_gcc_builtin_redirection=no
7371 rm -f conftest*
7373 { $as_echo "$as_me:$LINENO: result: $libc_cv_gcc_builtin_redirection" >&5
7374 $as_echo "$libc_cv_gcc_builtin_redirection" >&6; }
7375 if test "$libc_cv_gcc_builtin_redirection" = yes ; then
7376 cat >>confdefs.h <<\_ACEOF
7377 #define HAVE_BUILTIN_REDIRECTION 1
7378 _ACEOF
7382 if test "x$use__thread" != xno; then
7383 { $as_echo "$as_me:$LINENO: checking for __thread" >&5
7384 $as_echo_n "checking for __thread... " >&6; }
7385 if test "${libc_cv_gcc___thread+set}" = set; then
7386 $as_echo_n "(cached) " >&6
7387 else
7388 cat > conftest.c <<\EOF
7389 __thread int a = 42;
7391 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -c conftest.c >&5'
7392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7393 (eval $ac_try) 2>&5
7394 ac_status=$?
7395 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7396 (exit $ac_status); }; }; then
7397 libc_cv_gcc___thread=yes
7398 else
7399 libc_cv_gcc___thread=no
7401 rm -f conftest*
7403 { $as_echo "$as_me:$LINENO: result: $libc_cv_gcc___thread" >&5
7404 $as_echo "$libc_cv_gcc___thread" >&6; }
7405 if test "$libc_cv_gcc___thread" = yes; then
7406 cat >>confdefs.h <<\_ACEOF
7407 #define HAVE___THREAD 1
7408 _ACEOF
7411 else
7412 libc_cv_gcc___thread=no
7415 if test "$libc_cv_gcc___thread" = yes; then
7416 { $as_echo "$as_me:$LINENO: checking for tls_model attribute" >&5
7417 $as_echo_n "checking for tls_model attribute... " >&6; }
7418 if test "${libc_cv_gcc_tls_model_attr+set}" = set; then
7419 $as_echo_n "(cached) " >&6
7420 else
7421 cat > conftest.c <<\EOF
7422 extern __thread int a __attribute__((tls_model ("initial-exec")));
7424 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -S -Werror conftest.c >&5'
7425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7426 (eval $ac_try) 2>&5
7427 ac_status=$?
7428 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7429 (exit $ac_status); }; }; then
7430 libc_cv_gcc_tls_model_attr=yes
7431 else
7432 libc_cv_gcc_tls_model_attr=no
7434 rm -f conftest*
7436 { $as_echo "$as_me:$LINENO: result: $libc_cv_gcc_tls_model_attr" >&5
7437 $as_echo "$libc_cv_gcc_tls_model_attr" >&6; }
7438 if test "$libc_cv_gcc_tls_model_attr" = yes; then
7439 cat >>confdefs.h <<\_ACEOF
7440 #define HAVE_TLS_MODEL_ATTRIBUTE 1
7441 _ACEOF
7446 if test -n "$submachine"; then
7447 { $as_echo "$as_me:$LINENO: checking for compiler option for CPU variant" >&5
7448 $as_echo_n "checking for compiler option for CPU variant... " >&6; }
7449 if test "${libc_cv_cc_submachine+set}" = set; then
7450 $as_echo_n "(cached) " >&6
7451 else
7452 libc_cv_cc_submachine=no
7453 for opt in "-march=$submachine" "-mcpu=$submachine"; do
7454 if { ac_try='${CC-cc} $opt -xc /dev/null -S -o /dev/null'
7455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7456 (eval $ac_try) 2>&5
7457 ac_status=$?
7458 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7459 (exit $ac_status); }; }; then
7460 libc_cv_cc_submachine="$opt"
7461 break
7463 done
7465 { $as_echo "$as_me:$LINENO: result: $libc_cv_cc_submachine" >&5
7466 $as_echo "$libc_cv_cc_submachine" >&6; }
7467 if test "x$libc_cv_cc_submachine" = xno; then
7468 { { $as_echo "$as_me:$LINENO: error: ${CC-cc} does not support $submachine" >&5
7469 $as_echo "$as_me: error: ${CC-cc} does not support $submachine" >&2;}
7470 { (exit 1); exit 1; }; }
7475 { $as_echo "$as_me:$LINENO: checking for libgd" >&5
7476 $as_echo_n "checking for libgd... " >&6; }
7477 if test "$with_gd" != "no"; then
7478 old_CFLAGS="$CFLAGS"
7479 CFLAGS="$CFLAGS $libgd_include"
7480 old_LDFLAGS="$LDFLAGS"
7481 LDFLAGS="$LDFLAGS $libgd_ldflags"
7482 old_LIBS="$LIBS"
7483 LIBS="$LIBS -lgd -lpng -lz -lm"
7484 cat >conftest.$ac_ext <<_ACEOF
7485 /* confdefs.h. */
7486 _ACEOF
7487 cat confdefs.h >>conftest.$ac_ext
7488 cat >>conftest.$ac_ext <<_ACEOF
7489 /* end confdefs.h. */
7490 #include <gd.h>
7492 main ()
7494 gdImagePng (0, 0)
7496 return 0;
7498 _ACEOF
7499 rm -f conftest.$ac_objext conftest$ac_exeext
7500 if { (ac_try="$ac_link"
7501 case "(($ac_try" in
7502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7503 *) ac_try_echo=$ac_try;;
7504 esac
7505 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7506 $as_echo "$ac_try_echo") >&5
7507 (eval "$ac_link") 2>conftest.er1
7508 ac_status=$?
7509 grep -v '^ *+' conftest.er1 >conftest.err
7510 rm -f conftest.er1
7511 cat conftest.err >&5
7512 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7513 (exit $ac_status); } && {
7514 test -z "$ac_c_werror_flag" ||
7515 test ! -s conftest.err
7516 } && test -s conftest$ac_exeext && {
7517 test "$cross_compiling" = yes ||
7518 $as_test_x conftest$ac_exeext
7519 }; then
7520 LIBGD=yes
7521 else
7522 $as_echo "$as_me: failed program was:" >&5
7523 sed 's/^/| /' conftest.$ac_ext >&5
7525 LIBGD=no
7528 rm -rf conftest.dSYM
7529 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7530 conftest$ac_exeext conftest.$ac_ext
7531 CFLAGS="$old_CFLAGS"
7532 LDFLAGS="$old_LDFLAGS"
7533 LIBS="$old_LIBS"
7534 else
7535 LIBGD=no
7537 { $as_echo "$as_me:$LINENO: result: $LIBGD" >&5
7538 $as_echo "$LIBGD" >&6; }
7541 # SELinux detection
7542 if test x$with_selinux = xno ; then
7543 have_selinux=no;
7544 else
7545 # See if we have the SELinux library
7546 { $as_echo "$as_me:$LINENO: checking for is_selinux_enabled in -lselinux" >&5
7547 $as_echo_n "checking for is_selinux_enabled in -lselinux... " >&6; }
7548 if test "${ac_cv_lib_selinux_is_selinux_enabled+set}" = set; then
7549 $as_echo_n "(cached) " >&6
7550 else
7551 ac_check_lib_save_LIBS=$LIBS
7552 LIBS="-lselinux $LIBS"
7553 cat >conftest.$ac_ext <<_ACEOF
7554 /* confdefs.h. */
7555 _ACEOF
7556 cat confdefs.h >>conftest.$ac_ext
7557 cat >>conftest.$ac_ext <<_ACEOF
7558 /* end confdefs.h. */
7560 /* Override any GCC internal prototype to avoid an error.
7561 Use char because int might match the return type of a GCC
7562 builtin and then its argument prototype would still apply. */
7563 #ifdef __cplusplus
7564 extern "C"
7565 #endif
7566 char is_selinux_enabled ();
7568 main ()
7570 return is_selinux_enabled ();
7572 return 0;
7574 _ACEOF
7575 rm -f conftest.$ac_objext conftest$ac_exeext
7576 if { (ac_try="$ac_link"
7577 case "(($ac_try" in
7578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7579 *) ac_try_echo=$ac_try;;
7580 esac
7581 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7582 $as_echo "$ac_try_echo") >&5
7583 (eval "$ac_link") 2>conftest.er1
7584 ac_status=$?
7585 grep -v '^ *+' conftest.er1 >conftest.err
7586 rm -f conftest.er1
7587 cat conftest.err >&5
7588 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7589 (exit $ac_status); } && {
7590 test -z "$ac_c_werror_flag" ||
7591 test ! -s conftest.err
7592 } && test -s conftest$ac_exeext && {
7593 test "$cross_compiling" = yes ||
7594 $as_test_x conftest$ac_exeext
7595 }; then
7596 ac_cv_lib_selinux_is_selinux_enabled=yes
7597 else
7598 $as_echo "$as_me: failed program was:" >&5
7599 sed 's/^/| /' conftest.$ac_ext >&5
7601 ac_cv_lib_selinux_is_selinux_enabled=no
7604 rm -rf conftest.dSYM
7605 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7606 conftest$ac_exeext conftest.$ac_ext
7607 LIBS=$ac_check_lib_save_LIBS
7609 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5
7610 $as_echo "$ac_cv_lib_selinux_is_selinux_enabled" >&6; }
7611 if test "x$ac_cv_lib_selinux_is_selinux_enabled" = x""yes; then
7612 have_selinux=yes
7613 else
7614 have_selinux=no
7617 # See if we have the SELinux header with the NSCD permissions in it.
7618 if test x$have_selinux = xyes ; then
7619 { $as_echo "$as_me:$LINENO: checking for NSCD Flask permissions in selinux/av_permissions.h" >&5
7620 $as_echo_n "checking for NSCD Flask permissions in selinux/av_permissions.h... " >&6; }
7621 cat >conftest.$ac_ext <<_ACEOF
7622 /* confdefs.h. */
7623 _ACEOF
7624 cat confdefs.h >>conftest.$ac_ext
7625 cat >>conftest.$ac_ext <<_ACEOF
7626 /* end confdefs.h. */
7627 #include <selinux/av_permissions.h>
7629 main ()
7631 #ifdef NSCD__SHMEMHOST
7632 return 0;
7633 #else
7634 #error NSCD__SHMEMHOST not defined
7635 #endif
7637 return 0;
7639 _ACEOF
7640 rm -f conftest.$ac_objext
7641 if { (ac_try="$ac_compile"
7642 case "(($ac_try" in
7643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7644 *) ac_try_echo=$ac_try;;
7645 esac
7646 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7647 $as_echo "$ac_try_echo") >&5
7648 (eval "$ac_compile") 2>conftest.er1
7649 ac_status=$?
7650 grep -v '^ *+' conftest.er1 >conftest.err
7651 rm -f conftest.er1
7652 cat conftest.err >&5
7653 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7654 (exit $ac_status); } && {
7655 test -z "$ac_c_werror_flag" ||
7656 test ! -s conftest.err
7657 } && test -s conftest.$ac_objext; then
7658 have_selinux=yes
7659 else
7660 $as_echo "$as_me: failed program was:" >&5
7661 sed 's/^/| /' conftest.$ac_ext >&5
7663 have_selinux=no
7666 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7667 { $as_echo "$as_me:$LINENO: result: $have_selinux" >&5
7668 $as_echo "$have_selinux" >&6; }
7671 if test x$with_selinux = xyes ; then
7672 if test x$have_selinux = xno ; then
7673 { { $as_echo "$as_me:$LINENO: error: SELinux explicitly required, but sufficiently recent SELinux library not found" >&5
7674 $as_echo "$as_me: error: SELinux explicitly required, but sufficiently recent SELinux library not found" >&2;}
7675 { (exit 1); exit 1; }; }
7679 # Check if we're building with SELinux support.
7680 if test "x$have_selinux" = xyes; then
7682 cat >>confdefs.h <<\_ACEOF
7683 #define HAVE_SELINUX 1
7684 _ACEOF
7687 # See if we have the libaudit library
7688 { $as_echo "$as_me:$LINENO: checking for audit_log_user_avc_message in -laudit" >&5
7689 $as_echo_n "checking for audit_log_user_avc_message in -laudit... " >&6; }
7690 if test "${ac_cv_lib_audit_audit_log_user_avc_message+set}" = set; then
7691 $as_echo_n "(cached) " >&6
7692 else
7693 ac_check_lib_save_LIBS=$LIBS
7694 LIBS="-laudit $LIBS"
7695 cat >conftest.$ac_ext <<_ACEOF
7696 /* confdefs.h. */
7697 _ACEOF
7698 cat confdefs.h >>conftest.$ac_ext
7699 cat >>conftest.$ac_ext <<_ACEOF
7700 /* end confdefs.h. */
7702 /* Override any GCC internal prototype to avoid an error.
7703 Use char because int might match the return type of a GCC
7704 builtin and then its argument prototype would still apply. */
7705 #ifdef __cplusplus
7706 extern "C"
7707 #endif
7708 char audit_log_user_avc_message ();
7710 main ()
7712 return audit_log_user_avc_message ();
7714 return 0;
7716 _ACEOF
7717 rm -f conftest.$ac_objext conftest$ac_exeext
7718 if { (ac_try="$ac_link"
7719 case "(($ac_try" in
7720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7721 *) ac_try_echo=$ac_try;;
7722 esac
7723 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7724 $as_echo "$ac_try_echo") >&5
7725 (eval "$ac_link") 2>conftest.er1
7726 ac_status=$?
7727 grep -v '^ *+' conftest.er1 >conftest.err
7728 rm -f conftest.er1
7729 cat conftest.err >&5
7730 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7731 (exit $ac_status); } && {
7732 test -z "$ac_c_werror_flag" ||
7733 test ! -s conftest.err
7734 } && test -s conftest$ac_exeext && {
7735 test "$cross_compiling" = yes ||
7736 $as_test_x conftest$ac_exeext
7737 }; then
7738 ac_cv_lib_audit_audit_log_user_avc_message=yes
7739 else
7740 $as_echo "$as_me: failed program was:" >&5
7741 sed 's/^/| /' conftest.$ac_ext >&5
7743 ac_cv_lib_audit_audit_log_user_avc_message=no
7746 rm -rf conftest.dSYM
7747 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7748 conftest$ac_exeext conftest.$ac_ext
7749 LIBS=$ac_check_lib_save_LIBS
7751 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_audit_audit_log_user_avc_message" >&5
7752 $as_echo "$ac_cv_lib_audit_audit_log_user_avc_message" >&6; }
7753 if test "x$ac_cv_lib_audit_audit_log_user_avc_message" = x""yes; then
7754 have_libaudit=yes
7755 else
7756 have_libaudit=no
7759 if test "x$have_libaudit" = xyes; then
7761 cat >>confdefs.h <<\_ACEOF
7762 #define HAVE_LIBAUDIT 1
7763 _ACEOF
7768 # See if we have the libcap library
7769 { $as_echo "$as_me:$LINENO: checking for cap_init in -lcap" >&5
7770 $as_echo_n "checking for cap_init in -lcap... " >&6; }
7771 if test "${ac_cv_lib_cap_cap_init+set}" = set; then
7772 $as_echo_n "(cached) " >&6
7773 else
7774 ac_check_lib_save_LIBS=$LIBS
7775 LIBS="-lcap $LIBS"
7776 cat >conftest.$ac_ext <<_ACEOF
7777 /* confdefs.h. */
7778 _ACEOF
7779 cat confdefs.h >>conftest.$ac_ext
7780 cat >>conftest.$ac_ext <<_ACEOF
7781 /* end confdefs.h. */
7783 /* Override any GCC internal prototype to avoid an error.
7784 Use char because int might match the return type of a GCC
7785 builtin and then its argument prototype would still apply. */
7786 #ifdef __cplusplus
7787 extern "C"
7788 #endif
7789 char cap_init ();
7791 main ()
7793 return cap_init ();
7795 return 0;
7797 _ACEOF
7798 rm -f conftest.$ac_objext conftest$ac_exeext
7799 if { (ac_try="$ac_link"
7800 case "(($ac_try" in
7801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7802 *) ac_try_echo=$ac_try;;
7803 esac
7804 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7805 $as_echo "$ac_try_echo") >&5
7806 (eval "$ac_link") 2>conftest.er1
7807 ac_status=$?
7808 grep -v '^ *+' conftest.er1 >conftest.err
7809 rm -f conftest.er1
7810 cat conftest.err >&5
7811 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7812 (exit $ac_status); } && {
7813 test -z "$ac_c_werror_flag" ||
7814 test ! -s conftest.err
7815 } && test -s conftest$ac_exeext && {
7816 test "$cross_compiling" = yes ||
7817 $as_test_x conftest$ac_exeext
7818 }; then
7819 ac_cv_lib_cap_cap_init=yes
7820 else
7821 $as_echo "$as_me: failed program was:" >&5
7822 sed 's/^/| /' conftest.$ac_ext >&5
7824 ac_cv_lib_cap_cap_init=no
7827 rm -rf conftest.dSYM
7828 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7829 conftest$ac_exeext conftest.$ac_ext
7830 LIBS=$ac_check_lib_save_LIBS
7832 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_cap_cap_init" >&5
7833 $as_echo "$ac_cv_lib_cap_cap_init" >&6; }
7834 if test "x$ac_cv_lib_cap_cap_init" = x""yes; then
7835 have_libcap=yes
7836 else
7837 have_libcap=no
7840 if test "x$have_libcap" = xyes; then
7842 cat >>confdefs.h <<\_ACEOF
7843 #define HAVE_LIBCAP 1
7844 _ACEOF
7852 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
7853 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
7854 if test "${ac_cv_path_GREP+set}" = set; then
7855 $as_echo_n "(cached) " >&6
7856 else
7857 if test -z "$GREP"; then
7858 ac_path_GREP_found=false
7859 # Loop through the user's path and test for each of PROGNAME-LIST
7860 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7861 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7863 IFS=$as_save_IFS
7864 test -z "$as_dir" && as_dir=.
7865 for ac_prog in grep ggrep; do
7866 for ac_exec_ext in '' $ac_executable_extensions; do
7867 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
7868 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
7869 # Check for GNU ac_path_GREP and select it if it is found.
7870 # Check for GNU $ac_path_GREP
7871 case `"$ac_path_GREP" --version 2>&1` in
7872 *GNU*)
7873 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
7875 ac_count=0
7876 $as_echo_n 0123456789 >"conftest.in"
7877 while :
7879 cat "conftest.in" "conftest.in" >"conftest.tmp"
7880 mv "conftest.tmp" "conftest.in"
7881 cp "conftest.in" "conftest.nl"
7882 $as_echo 'GREP' >> "conftest.nl"
7883 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7884 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7885 ac_count=`expr $ac_count + 1`
7886 if test $ac_count -gt ${ac_path_GREP_max-0}; then
7887 # Best one so far, save it but keep looking for a better one
7888 ac_cv_path_GREP="$ac_path_GREP"
7889 ac_path_GREP_max=$ac_count
7891 # 10*(2^10) chars as input seems more than enough
7892 test $ac_count -gt 10 && break
7893 done
7894 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7895 esac
7897 $ac_path_GREP_found && break 3
7898 done
7899 done
7900 done
7901 IFS=$as_save_IFS
7902 if test -z "$ac_cv_path_GREP"; then
7903 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
7904 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
7905 { (exit 1); exit 1; }; }
7907 else
7908 ac_cv_path_GREP=$GREP
7912 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
7913 $as_echo "$ac_cv_path_GREP" >&6; }
7914 GREP="$ac_cv_path_GREP"
7917 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
7918 $as_echo_n "checking for egrep... " >&6; }
7919 if test "${ac_cv_path_EGREP+set}" = set; then
7920 $as_echo_n "(cached) " >&6
7921 else
7922 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
7923 then ac_cv_path_EGREP="$GREP -E"
7924 else
7925 if test -z "$EGREP"; then
7926 ac_path_EGREP_found=false
7927 # Loop through the user's path and test for each of PROGNAME-LIST
7928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7929 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7931 IFS=$as_save_IFS
7932 test -z "$as_dir" && as_dir=.
7933 for ac_prog in egrep; do
7934 for ac_exec_ext in '' $ac_executable_extensions; do
7935 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
7936 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
7937 # Check for GNU ac_path_EGREP and select it if it is found.
7938 # Check for GNU $ac_path_EGREP
7939 case `"$ac_path_EGREP" --version 2>&1` in
7940 *GNU*)
7941 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
7943 ac_count=0
7944 $as_echo_n 0123456789 >"conftest.in"
7945 while :
7947 cat "conftest.in" "conftest.in" >"conftest.tmp"
7948 mv "conftest.tmp" "conftest.in"
7949 cp "conftest.in" "conftest.nl"
7950 $as_echo 'EGREP' >> "conftest.nl"
7951 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7952 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7953 ac_count=`expr $ac_count + 1`
7954 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
7955 # Best one so far, save it but keep looking for a better one
7956 ac_cv_path_EGREP="$ac_path_EGREP"
7957 ac_path_EGREP_max=$ac_count
7959 # 10*(2^10) chars as input seems more than enough
7960 test $ac_count -gt 10 && break
7961 done
7962 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7963 esac
7965 $ac_path_EGREP_found && break 3
7966 done
7967 done
7968 done
7969 IFS=$as_save_IFS
7970 if test -z "$ac_cv_path_EGREP"; then
7971 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
7972 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
7973 { (exit 1); exit 1; }; }
7975 else
7976 ac_cv_path_EGREP=$EGREP
7981 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
7982 $as_echo "$ac_cv_path_EGREP" >&6; }
7983 EGREP="$ac_cv_path_EGREP"
7986 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7987 $as_echo_n "checking for ANSI C header files... " >&6; }
7988 if test "${ac_cv_header_stdc+set}" = set; then
7989 $as_echo_n "(cached) " >&6
7990 else
7991 cat >conftest.$ac_ext <<_ACEOF
7992 /* confdefs.h. */
7993 _ACEOF
7994 cat confdefs.h >>conftest.$ac_ext
7995 cat >>conftest.$ac_ext <<_ACEOF
7996 /* end confdefs.h. */
7997 #include <stdlib.h>
7998 #include <stdarg.h>
7999 #include <string.h>
8000 #include <float.h>
8003 main ()
8007 return 0;
8009 _ACEOF
8010 rm -f conftest.$ac_objext
8011 if { (ac_try="$ac_compile"
8012 case "(($ac_try" in
8013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8014 *) ac_try_echo=$ac_try;;
8015 esac
8016 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8017 $as_echo "$ac_try_echo") >&5
8018 (eval "$ac_compile") 2>conftest.er1
8019 ac_status=$?
8020 grep -v '^ *+' conftest.er1 >conftest.err
8021 rm -f conftest.er1
8022 cat conftest.err >&5
8023 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8024 (exit $ac_status); } && {
8025 test -z "$ac_c_werror_flag" ||
8026 test ! -s conftest.err
8027 } && test -s conftest.$ac_objext; then
8028 ac_cv_header_stdc=yes
8029 else
8030 $as_echo "$as_me: failed program was:" >&5
8031 sed 's/^/| /' conftest.$ac_ext >&5
8033 ac_cv_header_stdc=no
8036 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8038 if test $ac_cv_header_stdc = yes; then
8039 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8040 cat >conftest.$ac_ext <<_ACEOF
8041 /* confdefs.h. */
8042 _ACEOF
8043 cat confdefs.h >>conftest.$ac_ext
8044 cat >>conftest.$ac_ext <<_ACEOF
8045 /* end confdefs.h. */
8046 #include <string.h>
8048 _ACEOF
8049 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8050 $EGREP "memchr" >/dev/null 2>&1; then
8052 else
8053 ac_cv_header_stdc=no
8055 rm -f conftest*
8059 if test $ac_cv_header_stdc = yes; then
8060 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8061 cat >conftest.$ac_ext <<_ACEOF
8062 /* confdefs.h. */
8063 _ACEOF
8064 cat confdefs.h >>conftest.$ac_ext
8065 cat >>conftest.$ac_ext <<_ACEOF
8066 /* end confdefs.h. */
8067 #include <stdlib.h>
8069 _ACEOF
8070 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8071 $EGREP "free" >/dev/null 2>&1; then
8073 else
8074 ac_cv_header_stdc=no
8076 rm -f conftest*
8080 if test $ac_cv_header_stdc = yes; then
8081 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8082 if test "$cross_compiling" = yes; then
8084 else
8085 cat >conftest.$ac_ext <<_ACEOF
8086 /* confdefs.h. */
8087 _ACEOF
8088 cat confdefs.h >>conftest.$ac_ext
8089 cat >>conftest.$ac_ext <<_ACEOF
8090 /* end confdefs.h. */
8091 #include <ctype.h>
8092 #include <stdlib.h>
8093 #if ((' ' & 0x0FF) == 0x020)
8094 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8095 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8096 #else
8097 # define ISLOWER(c) \
8098 (('a' <= (c) && (c) <= 'i') \
8099 || ('j' <= (c) && (c) <= 'r') \
8100 || ('s' <= (c) && (c) <= 'z'))
8101 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8102 #endif
8104 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8106 main ()
8108 int i;
8109 for (i = 0; i < 256; i++)
8110 if (XOR (islower (i), ISLOWER (i))
8111 || toupper (i) != TOUPPER (i))
8112 return 2;
8113 return 0;
8115 _ACEOF
8116 rm -f conftest$ac_exeext
8117 if { (ac_try="$ac_link"
8118 case "(($ac_try" in
8119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8120 *) ac_try_echo=$ac_try;;
8121 esac
8122 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8123 $as_echo "$ac_try_echo") >&5
8124 (eval "$ac_link") 2>&5
8125 ac_status=$?
8126 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8127 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8128 { (case "(($ac_try" in
8129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8130 *) ac_try_echo=$ac_try;;
8131 esac
8132 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8133 $as_echo "$ac_try_echo") >&5
8134 (eval "$ac_try") 2>&5
8135 ac_status=$?
8136 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8137 (exit $ac_status); }; }; then
8139 else
8140 $as_echo "$as_me: program exited with status $ac_status" >&5
8141 $as_echo "$as_me: failed program was:" >&5
8142 sed 's/^/| /' conftest.$ac_ext >&5
8144 ( exit $ac_status )
8145 ac_cv_header_stdc=no
8147 rm -rf conftest.dSYM
8148 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8154 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8155 $as_echo "$ac_cv_header_stdc" >&6; }
8156 if test $ac_cv_header_stdc = yes; then
8158 cat >>confdefs.h <<\_ACEOF
8159 #define STDC_HEADERS 1
8160 _ACEOF
8164 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8174 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8175 inttypes.h stdint.h unistd.h
8177 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8178 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8179 $as_echo_n "checking for $ac_header... " >&6; }
8180 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8181 $as_echo_n "(cached) " >&6
8182 else
8183 cat >conftest.$ac_ext <<_ACEOF
8184 /* confdefs.h. */
8185 _ACEOF
8186 cat confdefs.h >>conftest.$ac_ext
8187 cat >>conftest.$ac_ext <<_ACEOF
8188 /* end confdefs.h. */
8189 $ac_includes_default
8191 #include <$ac_header>
8192 _ACEOF
8193 rm -f conftest.$ac_objext
8194 if { (ac_try="$ac_compile"
8195 case "(($ac_try" in
8196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8197 *) ac_try_echo=$ac_try;;
8198 esac
8199 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8200 $as_echo "$ac_try_echo") >&5
8201 (eval "$ac_compile") 2>conftest.er1
8202 ac_status=$?
8203 grep -v '^ *+' conftest.er1 >conftest.err
8204 rm -f conftest.er1
8205 cat conftest.err >&5
8206 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8207 (exit $ac_status); } && {
8208 test -z "$ac_c_werror_flag" ||
8209 test ! -s conftest.err
8210 } && test -s conftest.$ac_objext; then
8211 eval "$as_ac_Header=yes"
8212 else
8213 $as_echo "$as_me: failed program was:" >&5
8214 sed 's/^/| /' conftest.$ac_ext >&5
8216 eval "$as_ac_Header=no"
8219 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8221 ac_res=`eval 'as_val=${'$as_ac_Header'}
8222 $as_echo "$as_val"'`
8223 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8224 $as_echo "$ac_res" >&6; }
8225 as_val=`eval 'as_val=${'$as_ac_Header'}
8226 $as_echo "$as_val"'`
8227 if test "x$as_val" = x""yes; then
8228 cat >>confdefs.h <<_ACEOF
8229 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8230 _ACEOF
8234 done
8237 # The cast to long int works around a bug in the HP C Compiler
8238 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8239 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8240 # This bug is HP SR number 8606223364.
8241 { $as_echo "$as_me:$LINENO: checking size of long double" >&5
8242 $as_echo_n "checking size of long double... " >&6; }
8243 if test "${ac_cv_sizeof_long_double+set}" = set; then
8244 $as_echo_n "(cached) " >&6
8245 else
8246 if test "$cross_compiling" = yes; then
8247 # Depending upon the size, compute the lo and hi bounds.
8248 cat >conftest.$ac_ext <<_ACEOF
8249 /* confdefs.h. */
8250 _ACEOF
8251 cat confdefs.h >>conftest.$ac_ext
8252 cat >>conftest.$ac_ext <<_ACEOF
8253 /* end confdefs.h. */
8254 $ac_includes_default
8256 main ()
8258 static int test_array [1 - 2 * !(((long int) (sizeof (long double))) >= 0)];
8259 test_array [0] = 0
8262 return 0;
8264 _ACEOF
8265 rm -f conftest.$ac_objext
8266 if { (ac_try="$ac_compile"
8267 case "(($ac_try" in
8268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8269 *) ac_try_echo=$ac_try;;
8270 esac
8271 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8272 $as_echo "$ac_try_echo") >&5
8273 (eval "$ac_compile") 2>conftest.er1
8274 ac_status=$?
8275 grep -v '^ *+' conftest.er1 >conftest.err
8276 rm -f conftest.er1
8277 cat conftest.err >&5
8278 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8279 (exit $ac_status); } && {
8280 test -z "$ac_c_werror_flag" ||
8281 test ! -s conftest.err
8282 } && test -s conftest.$ac_objext; then
8283 ac_lo=0 ac_mid=0
8284 while :; do
8285 cat >conftest.$ac_ext <<_ACEOF
8286 /* confdefs.h. */
8287 _ACEOF
8288 cat confdefs.h >>conftest.$ac_ext
8289 cat >>conftest.$ac_ext <<_ACEOF
8290 /* end confdefs.h. */
8291 $ac_includes_default
8293 main ()
8295 static int test_array [1 - 2 * !(((long int) (sizeof (long double))) <= $ac_mid)];
8296 test_array [0] = 0
8299 return 0;
8301 _ACEOF
8302 rm -f conftest.$ac_objext
8303 if { (ac_try="$ac_compile"
8304 case "(($ac_try" in
8305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8306 *) ac_try_echo=$ac_try;;
8307 esac
8308 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8309 $as_echo "$ac_try_echo") >&5
8310 (eval "$ac_compile") 2>conftest.er1
8311 ac_status=$?
8312 grep -v '^ *+' conftest.er1 >conftest.err
8313 rm -f conftest.er1
8314 cat conftest.err >&5
8315 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8316 (exit $ac_status); } && {
8317 test -z "$ac_c_werror_flag" ||
8318 test ! -s conftest.err
8319 } && test -s conftest.$ac_objext; then
8320 ac_hi=$ac_mid; break
8321 else
8322 $as_echo "$as_me: failed program was:" >&5
8323 sed 's/^/| /' conftest.$ac_ext >&5
8325 ac_lo=`expr $ac_mid + 1`
8326 if test $ac_lo -le $ac_mid; then
8327 ac_lo= ac_hi=
8328 break
8330 ac_mid=`expr 2 '*' $ac_mid + 1`
8333 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8334 done
8335 else
8336 $as_echo "$as_me: failed program was:" >&5
8337 sed 's/^/| /' conftest.$ac_ext >&5
8339 cat >conftest.$ac_ext <<_ACEOF
8340 /* confdefs.h. */
8341 _ACEOF
8342 cat confdefs.h >>conftest.$ac_ext
8343 cat >>conftest.$ac_ext <<_ACEOF
8344 /* end confdefs.h. */
8345 $ac_includes_default
8347 main ()
8349 static int test_array [1 - 2 * !(((long int) (sizeof (long double))) < 0)];
8350 test_array [0] = 0
8353 return 0;
8355 _ACEOF
8356 rm -f conftest.$ac_objext
8357 if { (ac_try="$ac_compile"
8358 case "(($ac_try" in
8359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8360 *) ac_try_echo=$ac_try;;
8361 esac
8362 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8363 $as_echo "$ac_try_echo") >&5
8364 (eval "$ac_compile") 2>conftest.er1
8365 ac_status=$?
8366 grep -v '^ *+' conftest.er1 >conftest.err
8367 rm -f conftest.er1
8368 cat conftest.err >&5
8369 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8370 (exit $ac_status); } && {
8371 test -z "$ac_c_werror_flag" ||
8372 test ! -s conftest.err
8373 } && test -s conftest.$ac_objext; then
8374 ac_hi=-1 ac_mid=-1
8375 while :; do
8376 cat >conftest.$ac_ext <<_ACEOF
8377 /* confdefs.h. */
8378 _ACEOF
8379 cat confdefs.h >>conftest.$ac_ext
8380 cat >>conftest.$ac_ext <<_ACEOF
8381 /* end confdefs.h. */
8382 $ac_includes_default
8384 main ()
8386 static int test_array [1 - 2 * !(((long int) (sizeof (long double))) >= $ac_mid)];
8387 test_array [0] = 0
8390 return 0;
8392 _ACEOF
8393 rm -f conftest.$ac_objext
8394 if { (ac_try="$ac_compile"
8395 case "(($ac_try" in
8396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8397 *) ac_try_echo=$ac_try;;
8398 esac
8399 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8400 $as_echo "$ac_try_echo") >&5
8401 (eval "$ac_compile") 2>conftest.er1
8402 ac_status=$?
8403 grep -v '^ *+' conftest.er1 >conftest.err
8404 rm -f conftest.er1
8405 cat conftest.err >&5
8406 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8407 (exit $ac_status); } && {
8408 test -z "$ac_c_werror_flag" ||
8409 test ! -s conftest.err
8410 } && test -s conftest.$ac_objext; then
8411 ac_lo=$ac_mid; break
8412 else
8413 $as_echo "$as_me: failed program was:" >&5
8414 sed 's/^/| /' conftest.$ac_ext >&5
8416 ac_hi=`expr '(' $ac_mid ')' - 1`
8417 if test $ac_mid -le $ac_hi; then
8418 ac_lo= ac_hi=
8419 break
8421 ac_mid=`expr 2 '*' $ac_mid`
8424 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8425 done
8426 else
8427 $as_echo "$as_me: failed program was:" >&5
8428 sed 's/^/| /' conftest.$ac_ext >&5
8430 ac_lo= ac_hi=
8433 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8436 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8437 # Binary search between lo and hi bounds.
8438 while test "x$ac_lo" != "x$ac_hi"; do
8439 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8440 cat >conftest.$ac_ext <<_ACEOF
8441 /* confdefs.h. */
8442 _ACEOF
8443 cat confdefs.h >>conftest.$ac_ext
8444 cat >>conftest.$ac_ext <<_ACEOF
8445 /* end confdefs.h. */
8446 $ac_includes_default
8448 main ()
8450 static int test_array [1 - 2 * !(((long int) (sizeof (long double))) <= $ac_mid)];
8451 test_array [0] = 0
8454 return 0;
8456 _ACEOF
8457 rm -f conftest.$ac_objext
8458 if { (ac_try="$ac_compile"
8459 case "(($ac_try" in
8460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8461 *) ac_try_echo=$ac_try;;
8462 esac
8463 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8464 $as_echo "$ac_try_echo") >&5
8465 (eval "$ac_compile") 2>conftest.er1
8466 ac_status=$?
8467 grep -v '^ *+' conftest.er1 >conftest.err
8468 rm -f conftest.er1
8469 cat conftest.err >&5
8470 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8471 (exit $ac_status); } && {
8472 test -z "$ac_c_werror_flag" ||
8473 test ! -s conftest.err
8474 } && test -s conftest.$ac_objext; then
8475 ac_hi=$ac_mid
8476 else
8477 $as_echo "$as_me: failed program was:" >&5
8478 sed 's/^/| /' conftest.$ac_ext >&5
8480 ac_lo=`expr '(' $ac_mid ')' + 1`
8483 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8484 done
8485 case $ac_lo in
8486 ?*) ac_cv_sizeof_long_double=$ac_lo;;
8487 '') if test "$ac_cv_type_long_double" = yes; then
8488 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
8489 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8490 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long double)
8491 See \`config.log' for more details." >&5
8492 $as_echo "$as_me: error: cannot compute sizeof (long double)
8493 See \`config.log' for more details." >&2;}
8494 { (exit 77); exit 77; }; }; }
8495 else
8496 ac_cv_sizeof_long_double=0
8497 fi ;;
8498 esac
8499 else
8500 cat >conftest.$ac_ext <<_ACEOF
8501 /* confdefs.h. */
8502 _ACEOF
8503 cat confdefs.h >>conftest.$ac_ext
8504 cat >>conftest.$ac_ext <<_ACEOF
8505 /* end confdefs.h. */
8506 $ac_includes_default
8507 static long int longval () { return (long int) (sizeof (long double)); }
8508 static unsigned long int ulongval () { return (long int) (sizeof (long double)); }
8509 #include <stdio.h>
8510 #include <stdlib.h>
8512 main ()
8515 FILE *f = fopen ("conftest.val", "w");
8516 if (! f)
8517 return 1;
8518 if (((long int) (sizeof (long double))) < 0)
8520 long int i = longval ();
8521 if (i != ((long int) (sizeof (long double))))
8522 return 1;
8523 fprintf (f, "%ld", i);
8525 else
8527 unsigned long int i = ulongval ();
8528 if (i != ((long int) (sizeof (long double))))
8529 return 1;
8530 fprintf (f, "%lu", i);
8532 /* Do not output a trailing newline, as this causes \r\n confusion
8533 on some platforms. */
8534 return ferror (f) || fclose (f) != 0;
8537 return 0;
8539 _ACEOF
8540 rm -f conftest$ac_exeext
8541 if { (ac_try="$ac_link"
8542 case "(($ac_try" in
8543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8544 *) ac_try_echo=$ac_try;;
8545 esac
8546 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8547 $as_echo "$ac_try_echo") >&5
8548 (eval "$ac_link") 2>&5
8549 ac_status=$?
8550 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8551 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8552 { (case "(($ac_try" in
8553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8554 *) ac_try_echo=$ac_try;;
8555 esac
8556 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8557 $as_echo "$ac_try_echo") >&5
8558 (eval "$ac_try") 2>&5
8559 ac_status=$?
8560 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8561 (exit $ac_status); }; }; then
8562 ac_cv_sizeof_long_double=`cat conftest.val`
8563 else
8564 $as_echo "$as_me: program exited with status $ac_status" >&5
8565 $as_echo "$as_me: failed program was:" >&5
8566 sed 's/^/| /' conftest.$ac_ext >&5
8568 ( exit $ac_status )
8569 if test "$ac_cv_type_long_double" = yes; then
8570 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
8571 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8572 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long double)
8573 See \`config.log' for more details." >&5
8574 $as_echo "$as_me: error: cannot compute sizeof (long double)
8575 See \`config.log' for more details." >&2;}
8576 { (exit 77); exit 77; }; }; }
8577 else
8578 ac_cv_sizeof_long_double=0
8581 rm -rf conftest.dSYM
8582 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8584 rm -f conftest.val
8586 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_double" >&5
8587 $as_echo "$ac_cv_sizeof_long_double" >&6; }
8591 cat >>confdefs.h <<_ACEOF
8592 #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
8593 _ACEOF
8596 sizeof_long_double=$ac_cv_sizeof_long_double
8599 ### End of automated tests.
8600 ### Now run sysdeps configure fragments.
8602 # They also can set these variables.
8603 use_ldconfig=no
8604 ldd_rewrite_script=no
8605 libc_cv_sysconfdir=$sysconfdir
8606 libc_cv_gcc_unwind_find_fde=no
8607 libc_cv_idn=no
8609 # Iterate over all the sysdep directories we will use, running their
8610 # configure fragments, and looking for a uname implementation.
8611 uname=
8612 for dir in $sysnames; do
8613 case $dir in
8614 /*) dest=$dir ;;
8615 *) dest=$srcdir/$dir ;;
8616 esac
8617 if test -r $dest/configure; then
8618 { $as_echo "$as_me:$LINENO: result: running configure fragment for $dir" >&5
8619 $as_echo "running configure fragment for $dir" >&6; }
8620 . $dest/configure
8623 if test -z "$uname"; then
8624 if test -r $dest/uname.c ||
8625 test -r $dest/uname.S ||
8626 { test -r $dest/syscalls.list &&
8627 grep '^uname[ ]' $dest/syscalls.list >/dev/null; }; then
8628 uname=$dir
8631 done
8633 if test x$libc_cv_gcc_unwind_find_fde = xyes; then
8634 cat >>confdefs.h <<\_ACEOF
8635 #define EXPORT_UNWIND_FIND_FDE 1
8636 _ACEOF
8641 # If we will use the generic uname implementation, we must figure out what
8642 # it will say by examining the system, and write the results in config-name.h.
8643 if test "$uname" = "sysdeps/generic"; then
8645 uname_sysname=`echo $config_os | sed 's/[0-9.]*$//'`
8646 if test $uname_sysname != $config_os; then
8647 config_release=`echo $config_os | sed s/$uname_sysname//`
8650 { $as_echo "$as_me:$LINENO: checking OS release for uname" >&5
8651 $as_echo_n "checking OS release for uname... " >&6; }
8652 if test "${libc_cv_uname_release+set}" = set; then
8653 $as_echo_n "(cached) " >&6
8654 else
8655 if test -r /vmunix; then
8656 kernel_id=`strings /vmunix | grep UNIX`
8657 elif test -r /dynix; then
8658 kernel_id=`strings /dynix | grep DYNIX`
8659 else
8660 kernel_id=
8663 kernel_release=`echo "$kernel_id" | sed 's/^[^0-9.]*\([0-9.]*\).*$/\1/'`
8664 if test x`echo "$config_release" | sed "s/^$kernel_release//"` \
8665 != x$config_release; then
8666 # The configuration release is a substring of the kernel release.
8667 libc_cv_uname_release=$kernel_release
8668 elif test x$config_release != x; then
8669 libc_cv_uname_release=$config_release
8670 elif test x$kernel_release != x; then
8671 libc_cv_uname_release=$kernel_release
8672 else
8673 libc_cv_uname_release=unknown
8676 { $as_echo "$as_me:$LINENO: result: $libc_cv_uname_release" >&5
8677 $as_echo "$libc_cv_uname_release" >&6; }
8678 uname_release="$libc_cv_uname_release"
8680 { $as_echo "$as_me:$LINENO: checking OS version for uname" >&5
8681 $as_echo_n "checking OS version for uname... " >&6; }
8682 if test "${libc_cv_uname_version+set}" = set; then
8683 $as_echo_n "(cached) " >&6
8684 else
8685 if test -r /vmunix; then
8686 kernel_id=`strings /vmunix | grep UNIX`
8687 elif test -r /dynix; then
8688 kernel_id=`strings /dynix | grep DYNIX`
8689 else
8690 kernel_id=
8693 kernel_version=`echo "$kernel_id" | sed 's/^[^#]*#\([0-9]*\).*$/\1/'`
8694 if test -n "$kernel_version"; then
8695 libc_cv_uname_version="$kernel_version"
8696 else
8697 libc_cv_uname_version=unknown
8700 { $as_echo "$as_me:$LINENO: result: $libc_cv_uname_version" >&5
8701 $as_echo "$libc_cv_uname_version" >&6; }
8702 uname_version="$libc_cv_uname_version"
8704 config_uname=config-name.h:config-name.in
8705 else
8706 # For non-generic uname, we don't need to create config-name.h at all.
8707 config_uname=
8710 cat >>confdefs.h <<\_ACEOF
8711 #define USE_IN_LIBIO 1
8712 _ACEOF
8715 # Test for old glibc 2.0.x headers so that they can be removed properly
8716 # Search only in includedir.
8717 { $as_echo "$as_me:$LINENO: checking for old glibc 2.0.x headers" >&5
8718 $as_echo_n "checking for old glibc 2.0.x headers... " >&6; }
8719 if eval test -f "${includedir}/elfclass.h" -a -f "${includedir}/fcntlbits.h"
8720 then
8721 old_glibc_headers=yes
8722 else
8723 old_glibc_headers=no
8725 { $as_echo "$as_me:$LINENO: result: $old_glibc_headers" >&5
8726 $as_echo "$old_glibc_headers" >&6; }
8727 if test ${old_glibc_headers} = yes; then
8728 { $as_echo "$as_me:$LINENO: WARNING: *** During \"make install\" old headers from glibc 2.0.x will" >&5
8729 $as_echo "$as_me: WARNING: *** During \"make install\" old headers from glibc 2.0.x will" >&2;}
8730 { $as_echo "$as_me:$LINENO: WARNING: *** be removed." >&5
8731 $as_echo "$as_me: WARNING: *** be removed." >&2;}
8747 if test $elf = yes; then
8748 cat >>confdefs.h <<\_ACEOF
8749 #define HAVE_ELF 1
8750 _ACEOF
8753 if test $xcoff = yes; then
8754 cat >>confdefs.h <<\_ACEOF
8755 #define HAVE_XCOFF 1
8756 _ACEOF
8762 if test $shared = default; then
8763 shared=$elf
8766 { $as_echo "$as_me:$LINENO: checking whether -fPIC is default" >&5
8767 $as_echo_n "checking whether -fPIC is default... " >&6; }
8768 if test "${libc_cv_pic_default+set}" = set; then
8769 $as_echo_n "(cached) " >&6
8770 else
8771 libc_cv_pic_default=yes
8772 cat > conftest.c <<EOF
8773 #if defined __PIC__ || defined __pic__ || defined PIC || defined pic
8774 # error PIC is default.
8775 #endif
8777 if eval "${CC-cc} -S conftest.c 2>&5 1>&5"; then
8778 libc_cv_pic_default=no
8780 rm -f conftest.*
8782 { $as_echo "$as_me:$LINENO: result: $libc_cv_pic_default" >&5
8783 $as_echo "$libc_cv_pic_default" >&6; }
8796 if test "`(cd $srcdir; pwd)`" = "`pwd`"; then
8797 config_makefile=
8798 else
8799 config_makefile=Makefile
8802 VERSION=`sed -n -e 's/^#define VERSION "\([^"]*\)"/\1/p' < $srcdir/version.h`
8803 RELEASE=`sed -n -e 's/^#define RELEASE "\([^"]*\)"/\1/p' < $srcdir/version.h`
8807 ac_config_files="$ac_config_files config.make ${config_makefile} ${config_uname}"
8809 ac_config_commands="$ac_config_commands default"
8811 cat >confcache <<\_ACEOF
8812 # This file is a shell script that caches the results of configure
8813 # tests run on this system so they can be shared between configure
8814 # scripts and configure runs, see configure's option --config-cache.
8815 # It is not useful on other systems. If it contains results you don't
8816 # want to keep, you may remove or edit it.
8818 # config.status only pays attention to the cache file if you give it
8819 # the --recheck option to rerun configure.
8821 # `ac_cv_env_foo' variables (set or unset) will be overridden when
8822 # loading this file, other *unset* `ac_cv_foo' will be assigned the
8823 # following values.
8825 _ACEOF
8827 # The following way of writing the cache mishandles newlines in values,
8828 # but we know of no workaround that is simple, portable, and efficient.
8829 # So, we kill variables containing newlines.
8830 # Ultrix sh set writes to stderr and can't be redirected directly,
8831 # and sets the high bit in the cache file unless we assign to the vars.
8833 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
8834 eval ac_val=\$$ac_var
8835 case $ac_val in #(
8836 *${as_nl}*)
8837 case $ac_var in #(
8838 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
8839 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
8840 esac
8841 case $ac_var in #(
8842 _ | IFS | as_nl) ;; #(
8843 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
8844 *) $as_unset $ac_var ;;
8845 esac ;;
8846 esac
8847 done
8849 (set) 2>&1 |
8850 case $as_nl`(ac_space=' '; set) 2>&1` in #(
8851 *${as_nl}ac_space=\ *)
8852 # `set' does not quote correctly, so add quotes (double-quote
8853 # substitution turns \\\\ into \\, and sed turns \\ into \).
8854 sed -n \
8855 "s/'/'\\\\''/g;
8856 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
8857 ;; #(
8859 # `set' quotes correctly as required by POSIX, so do not add quotes.
8860 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
8862 esac |
8863 sort
8865 sed '
8866 /^ac_cv_env_/b end
8867 t clear
8868 :clear
8869 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
8870 t end
8871 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8872 :end' >>confcache
8873 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
8874 if test -w "$cache_file"; then
8875 test "x$cache_file" != "x/dev/null" &&
8876 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
8877 $as_echo "$as_me: updating cache $cache_file" >&6;}
8878 cat confcache >$cache_file
8879 else
8880 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
8881 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
8884 rm -f confcache
8886 test "x$prefix" = xNONE && prefix=$ac_default_prefix
8887 # Let make expand exec_prefix.
8888 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8890 DEFS=-DHAVE_CONFIG_H
8892 ac_libobjs=
8893 ac_ltlibobjs=
8894 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
8895 # 1. Remove the extension, and $U if already installed.
8896 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
8897 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
8898 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
8899 # will be set to the directory where LIBOBJS objects are built.
8900 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
8901 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
8902 done
8903 LIBOBJS=$ac_libobjs
8905 LTLIBOBJS=$ac_ltlibobjs
8909 : ${CONFIG_STATUS=./config.status}
8910 ac_write_fail=0
8911 ac_clean_files_save=$ac_clean_files
8912 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
8913 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
8914 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
8915 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8916 #! $SHELL
8917 # Generated by $as_me.
8918 # Run this file to recreate the current configuration.
8919 # Compiler output produced by configure, useful for debugging
8920 # configure, is in config.log if it exists.
8922 debug=false
8923 ac_cs_recheck=false
8924 ac_cs_silent=false
8925 SHELL=\${CONFIG_SHELL-$SHELL}
8926 _ACEOF
8928 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8929 ## --------------------- ##
8930 ## M4sh Initialization. ##
8931 ## --------------------- ##
8933 # Be more Bourne compatible
8934 DUALCASE=1; export DUALCASE # for MKS sh
8935 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
8936 emulate sh
8937 NULLCMD=:
8938 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
8939 # is contrary to our usage. Disable this feature.
8940 alias -g '${1+"$@"}'='"$@"'
8941 setopt NO_GLOB_SUBST
8942 else
8943 case `(set -o) 2>/dev/null` in
8944 *posix*) set -o posix ;;
8945 esac
8952 # PATH needs CR
8953 # Avoid depending upon Character Ranges.
8954 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
8955 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
8956 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
8957 as_cr_digits='0123456789'
8958 as_cr_alnum=$as_cr_Letters$as_cr_digits
8960 as_nl='
8962 export as_nl
8963 # Printing a long string crashes Solaris 7 /usr/bin/printf.
8964 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
8965 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
8966 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
8967 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
8968 as_echo='printf %s\n'
8969 as_echo_n='printf %s'
8970 else
8971 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
8972 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
8973 as_echo_n='/usr/ucb/echo -n'
8974 else
8975 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
8976 as_echo_n_body='eval
8977 arg=$1;
8978 case $arg in
8979 *"$as_nl"*)
8980 expr "X$arg" : "X\\(.*\\)$as_nl";
8981 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
8982 esac;
8983 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
8985 export as_echo_n_body
8986 as_echo_n='sh -c $as_echo_n_body as_echo'
8988 export as_echo_body
8989 as_echo='sh -c $as_echo_body as_echo'
8992 # The user is always right.
8993 if test "${PATH_SEPARATOR+set}" != set; then
8994 PATH_SEPARATOR=:
8995 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
8996 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
8997 PATH_SEPARATOR=';'
9001 # Support unset when possible.
9002 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
9003 as_unset=unset
9004 else
9005 as_unset=false
9009 # IFS
9010 # We need space, tab and new line, in precisely that order. Quoting is
9011 # there to prevent editors from complaining about space-tab.
9012 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
9013 # splitting by setting IFS to empty value.)
9014 IFS=" "" $as_nl"
9016 # Find who we are. Look in the path if we contain no directory separator.
9017 case $0 in
9018 *[\\/]* ) as_myself=$0 ;;
9019 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9020 for as_dir in $PATH
9022 IFS=$as_save_IFS
9023 test -z "$as_dir" && as_dir=.
9024 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
9025 done
9026 IFS=$as_save_IFS
9029 esac
9030 # We did not find ourselves, most probably we were run as `sh COMMAND'
9031 # in which case we are not to be found in the path.
9032 if test "x$as_myself" = x; then
9033 as_myself=$0
9035 if test ! -f "$as_myself"; then
9036 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
9037 { (exit 1); exit 1; }
9040 # Work around bugs in pre-3.0 UWIN ksh.
9041 for as_var in ENV MAIL MAILPATH
9042 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
9043 done
9044 PS1='$ '
9045 PS2='> '
9046 PS4='+ '
9048 # NLS nuisances.
9049 LC_ALL=C
9050 export LC_ALL
9051 LANGUAGE=C
9052 export LANGUAGE
9054 # Required to use basename.
9055 if expr a : '\(a\)' >/dev/null 2>&1 &&
9056 test "X`expr 00001 : '.*\(...\)'`" = X001; then
9057 as_expr=expr
9058 else
9059 as_expr=false
9062 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
9063 as_basename=basename
9064 else
9065 as_basename=false
9069 # Name of the executable.
9070 as_me=`$as_basename -- "$0" ||
9071 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
9072 X"$0" : 'X\(//\)$' \| \
9073 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
9074 $as_echo X/"$0" |
9075 sed '/^.*\/\([^/][^/]*\)\/*$/{
9076 s//\1/
9079 /^X\/\(\/\/\)$/{
9080 s//\1/
9083 /^X\/\(\/\).*/{
9084 s//\1/
9087 s/.*/./; q'`
9089 # CDPATH.
9090 $as_unset CDPATH
9094 as_lineno_1=$LINENO
9095 as_lineno_2=$LINENO
9096 test "x$as_lineno_1" != "x$as_lineno_2" &&
9097 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
9099 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
9100 # uniformly replaced by the line number. The first 'sed' inserts a
9101 # line-number line after each line using $LINENO; the second 'sed'
9102 # does the real work. The second script uses 'N' to pair each
9103 # line-number line with the line containing $LINENO, and appends
9104 # trailing '-' during substitution so that $LINENO is not a special
9105 # case at line end.
9106 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
9107 # scripts with optimization help from Paolo Bonzini. Blame Lee
9108 # E. McMahon (1931-1989) for sed's syntax. :-)
9109 sed -n '
9111 /[$]LINENO/=
9112 ' <$as_myself |
9113 sed '
9114 s/[$]LINENO.*/&-/
9115 t lineno
9117 :lineno
9119 :loop
9120 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
9121 t loop
9122 s/-\n.*//
9123 ' >$as_me.lineno &&
9124 chmod +x "$as_me.lineno" ||
9125 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
9126 { (exit 1); exit 1; }; }
9128 # Don't try to exec as it changes $[0], causing all sort of problems
9129 # (the dirname of $[0] is not the place where we might find the
9130 # original and so on. Autoconf is especially sensitive to this).
9131 . "./$as_me.lineno"
9132 # Exit status is that of the last command.
9133 exit
9137 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
9138 as_dirname=dirname
9139 else
9140 as_dirname=false
9143 ECHO_C= ECHO_N= ECHO_T=
9144 case `echo -n x` in
9145 -n*)
9146 case `echo 'x\c'` in
9147 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
9148 *) ECHO_C='\c';;
9149 esac;;
9151 ECHO_N='-n';;
9152 esac
9153 if expr a : '\(a\)' >/dev/null 2>&1 &&
9154 test "X`expr 00001 : '.*\(...\)'`" = X001; then
9155 as_expr=expr
9156 else
9157 as_expr=false
9160 rm -f conf$$ conf$$.exe conf$$.file
9161 if test -d conf$$.dir; then
9162 rm -f conf$$.dir/conf$$.file
9163 else
9164 rm -f conf$$.dir
9165 mkdir conf$$.dir 2>/dev/null
9167 if (echo >conf$$.file) 2>/dev/null; then
9168 if ln -s conf$$.file conf$$ 2>/dev/null; then
9169 as_ln_s='ln -s'
9170 # ... but there are two gotchas:
9171 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
9172 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
9173 # In both cases, we have to default to `cp -p'.
9174 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
9175 as_ln_s='cp -p'
9176 elif ln conf$$.file conf$$ 2>/dev/null; then
9177 as_ln_s=ln
9178 else
9179 as_ln_s='cp -p'
9181 else
9182 as_ln_s='cp -p'
9184 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
9185 rmdir conf$$.dir 2>/dev/null
9187 if mkdir -p . 2>/dev/null; then
9188 as_mkdir_p=:
9189 else
9190 test -d ./-p && rmdir ./-p
9191 as_mkdir_p=false
9194 if test -x / >/dev/null 2>&1; then
9195 as_test_x='test -x'
9196 else
9197 if ls -dL / >/dev/null 2>&1; then
9198 as_ls_L_option=L
9199 else
9200 as_ls_L_option=
9202 as_test_x='
9203 eval sh -c '\''
9204 if test -d "$1"; then
9205 test -d "$1/.";
9206 else
9207 case $1 in
9208 -*)set "./$1";;
9209 esac;
9210 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
9211 ???[sx]*):;;*)false;;esac;fi
9212 '\'' sh
9215 as_executable_p=$as_test_x
9217 # Sed expression to map a string onto a valid CPP name.
9218 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
9220 # Sed expression to map a string onto a valid variable name.
9221 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
9224 exec 6>&1
9226 # Save the log message, to keep $[0] and so on meaningful, and to
9227 # report actual input values of CONFIG_FILES etc. instead of their
9228 # values after options handling.
9229 ac_log="
9230 This file was extended by GNU C Library $as_me (see version.h), which was
9231 generated by GNU Autoconf 2.63. Invocation command line was
9233 CONFIG_FILES = $CONFIG_FILES
9234 CONFIG_HEADERS = $CONFIG_HEADERS
9235 CONFIG_LINKS = $CONFIG_LINKS
9236 CONFIG_COMMANDS = $CONFIG_COMMANDS
9237 $ $0 $@
9239 on `(hostname || uname -n) 2>/dev/null | sed 1q`
9242 _ACEOF
9244 case $ac_config_files in *"
9245 "*) set x $ac_config_files; shift; ac_config_files=$*;;
9246 esac
9248 case $ac_config_headers in *"
9249 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
9250 esac
9253 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9254 # Files that config.status was made for.
9255 config_files="$ac_config_files"
9256 config_headers="$ac_config_headers"
9257 config_commands="$ac_config_commands"
9259 _ACEOF
9261 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9262 ac_cs_usage="\
9263 \`$as_me' instantiates files from templates according to the
9264 current configuration.
9266 Usage: $0 [OPTION]... [FILE]...
9268 -h, --help print this help, then exit
9269 -V, --version print version number and configuration settings, then exit
9270 -q, --quiet, --silent
9271 do not print progress messages
9272 -d, --debug don't remove temporary files
9273 --recheck update $as_me by reconfiguring in the same conditions
9274 --file=FILE[:TEMPLATE]
9275 instantiate the configuration file FILE
9276 --header=FILE[:TEMPLATE]
9277 instantiate the configuration header FILE
9279 Configuration files:
9280 $config_files
9282 Configuration headers:
9283 $config_headers
9285 Configuration commands:
9286 $config_commands
9288 Report bugs to <bug-autoconf@gnu.org>."
9290 _ACEOF
9291 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9292 ac_cs_version="\\
9293 GNU C Library config.status (see version.h)
9294 configured by $0, generated by GNU Autoconf 2.63,
9295 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
9297 Copyright (C) 2008 Free Software Foundation, Inc.
9298 This config.status script is free software; the Free Software Foundation
9299 gives unlimited permission to copy, distribute and modify it."
9301 ac_pwd='$ac_pwd'
9302 srcdir='$srcdir'
9303 INSTALL='$INSTALL'
9304 AWK='$AWK'
9305 test -n "\$AWK" || AWK=awk
9306 _ACEOF
9308 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9309 # The default lists apply if the user does not specify any file.
9310 ac_need_defaults=:
9311 while test $# != 0
9313 case $1 in
9314 --*=*)
9315 ac_option=`expr "X$1" : 'X\([^=]*\)='`
9316 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
9317 ac_shift=:
9320 ac_option=$1
9321 ac_optarg=$2
9322 ac_shift=shift
9324 esac
9326 case $ac_option in
9327 # Handling of the options.
9328 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9329 ac_cs_recheck=: ;;
9330 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
9331 $as_echo "$ac_cs_version"; exit ;;
9332 --debug | --debu | --deb | --de | --d | -d )
9333 debug=: ;;
9334 --file | --fil | --fi | --f )
9335 $ac_shift
9336 case $ac_optarg in
9337 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
9338 esac
9339 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
9340 ac_need_defaults=false;;
9341 --header | --heade | --head | --hea )
9342 $ac_shift
9343 case $ac_optarg in
9344 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
9345 esac
9346 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
9347 ac_need_defaults=false;;
9348 --he | --h)
9349 # Conflict between --help and --header
9350 { $as_echo "$as_me: error: ambiguous option: $1
9351 Try \`$0 --help' for more information." >&2
9352 { (exit 1); exit 1; }; };;
9353 --help | --hel | -h )
9354 $as_echo "$ac_cs_usage"; exit ;;
9355 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
9356 | -silent | --silent | --silen | --sile | --sil | --si | --s)
9357 ac_cs_silent=: ;;
9359 # This is an error.
9360 -*) { $as_echo "$as_me: error: unrecognized option: $1
9361 Try \`$0 --help' for more information." >&2
9362 { (exit 1); exit 1; }; } ;;
9364 *) ac_config_targets="$ac_config_targets $1"
9365 ac_need_defaults=false ;;
9367 esac
9368 shift
9369 done
9371 ac_configure_extra_args=
9373 if $ac_cs_silent; then
9374 exec 6>/dev/null
9375 ac_configure_extra_args="$ac_configure_extra_args --silent"
9378 _ACEOF
9379 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9380 if \$ac_cs_recheck; then
9381 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
9382 shift
9383 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
9384 CONFIG_SHELL='$SHELL'
9385 export CONFIG_SHELL
9386 exec "\$@"
9389 _ACEOF
9390 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9391 exec 5>>config.log
9393 echo
9394 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
9395 ## Running $as_me. ##
9396 _ASBOX
9397 $as_echo "$ac_log"
9398 } >&5
9400 _ACEOF
9401 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9403 # INIT-COMMANDS
9405 config_vars='$config_vars'
9407 _ACEOF
9409 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9411 # Handling of arguments.
9412 for ac_config_target in $ac_config_targets
9414 case $ac_config_target in
9415 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
9416 "config.make") CONFIG_FILES="$CONFIG_FILES config.make" ;;
9417 "${config_makefile}") CONFIG_FILES="$CONFIG_FILES ${config_makefile}" ;;
9418 "${config_uname}") CONFIG_FILES="$CONFIG_FILES ${config_uname}" ;;
9419 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
9421 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
9422 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
9423 { (exit 1); exit 1; }; };;
9424 esac
9425 done
9428 # If the user did not use the arguments to specify the items to instantiate,
9429 # then the envvar interface is used. Set only those that are not.
9430 # We use the long form for the default assignment because of an extremely
9431 # bizarre bug on SunOS 4.1.3.
9432 if $ac_need_defaults; then
9433 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
9434 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
9435 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
9438 # Have a temporary directory for convenience. Make it in the build tree
9439 # simply because there is no reason against having it here, and in addition,
9440 # creating and moving files from /tmp can sometimes cause problems.
9441 # Hook for its removal unless debugging.
9442 # Note that there is a small window in which the directory will not be cleaned:
9443 # after its creation but before its name has been assigned to `$tmp'.
9444 $debug ||
9446 tmp=
9447 trap 'exit_status=$?
9448 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
9450 trap '{ (exit 1); exit 1; }' 1 2 13 15
9452 # Create a (secure) tmp directory for tmp files.
9455 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
9456 test -n "$tmp" && test -d "$tmp"
9457 } ||
9459 tmp=./conf$$-$RANDOM
9460 (umask 077 && mkdir "$tmp")
9461 } ||
9463 $as_echo "$as_me: cannot create a temporary directory in ." >&2
9464 { (exit 1); exit 1; }
9467 # Set up the scripts for CONFIG_FILES section.
9468 # No need to generate them if there are no CONFIG_FILES.
9469 # This happens for instance with `./config.status config.h'.
9470 if test -n "$CONFIG_FILES"; then
9473 ac_cr=' '
9474 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
9475 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
9476 ac_cs_awk_cr='\\r'
9477 else
9478 ac_cs_awk_cr=$ac_cr
9481 echo 'BEGIN {' >"$tmp/subs1.awk" &&
9482 _ACEOF
9486 echo "cat >conf$$subs.awk <<_ACEOF" &&
9487 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
9488 echo "_ACEOF"
9489 } >conf$$subs.sh ||
9490 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
9491 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
9492 { (exit 1); exit 1; }; }
9493 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
9494 ac_delim='%!_!# '
9495 for ac_last_try in false false false false false :; do
9496 . ./conf$$subs.sh ||
9497 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
9498 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
9499 { (exit 1); exit 1; }; }
9501 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
9502 if test $ac_delim_n = $ac_delim_num; then
9503 break
9504 elif $ac_last_try; then
9505 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
9506 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
9507 { (exit 1); exit 1; }; }
9508 else
9509 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
9511 done
9512 rm -f conf$$subs.sh
9514 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9515 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
9516 _ACEOF
9517 sed -n '
9519 s/^/S["/; s/!.*/"]=/
9522 s/^[^!]*!//
9523 :repl
9524 t repl
9525 s/'"$ac_delim"'$//
9526 t delim
9529 s/\(.\{148\}\).*/\1/
9530 t more1
9531 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
9534 b repl
9535 :more1
9536 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
9539 s/.\{148\}//
9540 t nl
9541 :delim
9543 s/\(.\{148\}\).*/\1/
9544 t more2
9545 s/["\\]/\\&/g; s/^/"/; s/$/"/
9548 :more2
9549 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
9552 s/.\{148\}//
9553 t delim
9554 ' <conf$$subs.awk | sed '
9555 /^[^""]/{
9557 s/\n//
9559 ' >>$CONFIG_STATUS || ac_write_fail=1
9560 rm -f conf$$subs.awk
9561 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9562 _ACAWK
9563 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
9564 for (key in S) S_is_set[key] = 1
9565 FS = "\a"
9569 line = $ 0
9570 nfields = split(line, field, "@")
9571 substed = 0
9572 len = length(field[1])
9573 for (i = 2; i < nfields; i++) {
9574 key = field[i]
9575 keylen = length(key)
9576 if (S_is_set[key]) {
9577 value = S[key]
9578 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
9579 len += length(value) + length(field[++i])
9580 substed = 1
9581 } else
9582 len += 1 + keylen
9585 print line
9588 _ACAWK
9589 _ACEOF
9590 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9591 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
9592 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
9593 else
9595 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
9596 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
9597 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
9598 { (exit 1); exit 1; }; }
9599 _ACEOF
9601 # VPATH may cause trouble with some makes, so we remove $(srcdir),
9602 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
9603 # trailing colons and then remove the whole line if VPATH becomes empty
9604 # (actually we leave an empty line to preserve line numbers).
9605 if test "x$srcdir" = x.; then
9606 ac_vpsub='/^[ ]*VPATH[ ]*=/{
9607 s/:*\$(srcdir):*/:/
9608 s/:*\${srcdir}:*/:/
9609 s/:*@srcdir@:*/:/
9610 s/^\([^=]*=[ ]*\):*/\1/
9611 s/:*$//
9612 s/^[^=]*=[ ]*$//
9616 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9617 fi # test -n "$CONFIG_FILES"
9619 # Set up the scripts for CONFIG_HEADERS section.
9620 # No need to generate them if there are no CONFIG_HEADERS.
9621 # This happens for instance with `./config.status Makefile'.
9622 if test -n "$CONFIG_HEADERS"; then
9623 cat >"$tmp/defines.awk" <<\_ACAWK ||
9624 BEGIN {
9625 _ACEOF
9627 # Transform confdefs.h into an awk script `defines.awk', embedded as
9628 # here-document in config.status, that substitutes the proper values into
9629 # config.h.in to produce config.h.
9631 # Create a delimiter string that does not exist in confdefs.h, to ease
9632 # handling of long lines.
9633 ac_delim='%!_!# '
9634 for ac_last_try in false false :; do
9635 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
9636 if test -z "$ac_t"; then
9637 break
9638 elif $ac_last_try; then
9639 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
9640 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
9641 { (exit 1); exit 1; }; }
9642 else
9643 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
9645 done
9647 # For the awk script, D is an array of macro values keyed by name,
9648 # likewise P contains macro parameters if any. Preserve backslash
9649 # newline sequences.
9651 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
9652 sed -n '
9653 s/.\{148\}/&'"$ac_delim"'/g
9654 t rset
9655 :rset
9656 s/^[ ]*#[ ]*define[ ][ ]*/ /
9657 t def
9659 :def
9660 s/\\$//
9661 t bsnl
9662 s/["\\]/\\&/g
9663 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
9664 D["\1"]=" \3"/p
9665 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
9667 :bsnl
9668 s/["\\]/\\&/g
9669 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
9670 D["\1"]=" \3\\\\\\n"\\/p
9671 t cont
9672 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
9673 t cont
9675 :cont
9677 s/.\{148\}/&'"$ac_delim"'/g
9678 t clear
9679 :clear
9680 s/\\$//
9681 t bsnlc
9682 s/["\\]/\\&/g; s/^/"/; s/$/"/p
9684 :bsnlc
9685 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
9686 b cont
9687 ' <confdefs.h | sed '
9688 s/'"$ac_delim"'/"\\\
9689 "/g' >>$CONFIG_STATUS || ac_write_fail=1
9691 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9692 for (key in D) D_is_set[key] = 1
9693 FS = "\a"
9695 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
9696 line = \$ 0
9697 split(line, arg, " ")
9698 if (arg[1] == "#") {
9699 defundef = arg[2]
9700 mac1 = arg[3]
9701 } else {
9702 defundef = substr(arg[1], 2)
9703 mac1 = arg[2]
9705 split(mac1, mac2, "(") #)
9706 macro = mac2[1]
9707 prefix = substr(line, 1, index(line, defundef) - 1)
9708 if (D_is_set[macro]) {
9709 # Preserve the white space surrounding the "#".
9710 print prefix "define", macro P[macro] D[macro]
9711 next
9712 } else {
9713 # Replace #undef with comments. This is necessary, for example,
9714 # in the case of _POSIX_SOURCE, which is predefined and required
9715 # on some systems where configure will not decide to define it.
9716 if (defundef == "undef") {
9717 print "/*", prefix defundef, macro, "*/"
9718 next
9722 { print }
9723 _ACAWK
9724 _ACEOF
9725 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9726 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
9727 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
9728 { (exit 1); exit 1; }; }
9729 fi # test -n "$CONFIG_HEADERS"
9732 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
9733 shift
9734 for ac_tag
9736 case $ac_tag in
9737 :[FHLC]) ac_mode=$ac_tag; continue;;
9738 esac
9739 case $ac_mode$ac_tag in
9740 :[FHL]*:*);;
9741 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
9742 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
9743 { (exit 1); exit 1; }; };;
9744 :[FH]-) ac_tag=-:-;;
9745 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
9746 esac
9747 ac_save_IFS=$IFS
9748 IFS=:
9749 set x $ac_tag
9750 IFS=$ac_save_IFS
9751 shift
9752 ac_file=$1
9753 shift
9755 case $ac_mode in
9756 :L) ac_source=$1;;
9757 :[FH])
9758 ac_file_inputs=
9759 for ac_f
9761 case $ac_f in
9762 -) ac_f="$tmp/stdin";;
9763 *) # Look for the file first in the build tree, then in the source tree
9764 # (if the path is not absolute). The absolute path cannot be DOS-style,
9765 # because $ac_f cannot contain `:'.
9766 test -f "$ac_f" ||
9767 case $ac_f in
9768 [\\/$]*) false;;
9769 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
9770 esac ||
9771 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
9772 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
9773 { (exit 1); exit 1; }; };;
9774 esac
9775 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
9776 ac_file_inputs="$ac_file_inputs '$ac_f'"
9777 done
9779 # Let's still pretend it is `configure' which instantiates (i.e., don't
9780 # use $as_me), people would be surprised to read:
9781 # /* config.h. Generated by config.status. */
9782 configure_input='Generated from '`
9783 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
9784 `' by configure.'
9785 if test x"$ac_file" != x-; then
9786 configure_input="$ac_file. $configure_input"
9787 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
9788 $as_echo "$as_me: creating $ac_file" >&6;}
9790 # Neutralize special characters interpreted by sed in replacement strings.
9791 case $configure_input in #(
9792 *\&* | *\|* | *\\* )
9793 ac_sed_conf_input=`$as_echo "$configure_input" |
9794 sed 's/[\\\\&|]/\\\\&/g'`;; #(
9795 *) ac_sed_conf_input=$configure_input;;
9796 esac
9798 case $ac_tag in
9799 *:-:* | *:-) cat >"$tmp/stdin" \
9800 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
9801 $as_echo "$as_me: error: could not create $ac_file" >&2;}
9802 { (exit 1); exit 1; }; } ;;
9803 esac
9805 esac
9807 ac_dir=`$as_dirname -- "$ac_file" ||
9808 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9809 X"$ac_file" : 'X\(//\)[^/]' \| \
9810 X"$ac_file" : 'X\(//\)$' \| \
9811 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
9812 $as_echo X"$ac_file" |
9813 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9814 s//\1/
9817 /^X\(\/\/\)[^/].*/{
9818 s//\1/
9821 /^X\(\/\/\)$/{
9822 s//\1/
9825 /^X\(\/\).*/{
9826 s//\1/
9829 s/.*/./; q'`
9830 { as_dir="$ac_dir"
9831 case $as_dir in #(
9832 -*) as_dir=./$as_dir;;
9833 esac
9834 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
9835 as_dirs=
9836 while :; do
9837 case $as_dir in #(
9838 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
9839 *) as_qdir=$as_dir;;
9840 esac
9841 as_dirs="'$as_qdir' $as_dirs"
9842 as_dir=`$as_dirname -- "$as_dir" ||
9843 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9844 X"$as_dir" : 'X\(//\)[^/]' \| \
9845 X"$as_dir" : 'X\(//\)$' \| \
9846 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
9847 $as_echo X"$as_dir" |
9848 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9849 s//\1/
9852 /^X\(\/\/\)[^/].*/{
9853 s//\1/
9856 /^X\(\/\/\)$/{
9857 s//\1/
9860 /^X\(\/\).*/{
9861 s//\1/
9864 s/.*/./; q'`
9865 test -d "$as_dir" && break
9866 done
9867 test -z "$as_dirs" || eval "mkdir $as_dirs"
9868 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
9869 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
9870 { (exit 1); exit 1; }; }; }
9871 ac_builddir=.
9873 case "$ac_dir" in
9874 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
9876 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
9877 # A ".." for each directory in $ac_dir_suffix.
9878 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
9879 case $ac_top_builddir_sub in
9880 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
9881 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
9882 esac ;;
9883 esac
9884 ac_abs_top_builddir=$ac_pwd
9885 ac_abs_builddir=$ac_pwd$ac_dir_suffix
9886 # for backward compatibility:
9887 ac_top_builddir=$ac_top_build_prefix
9889 case $srcdir in
9890 .) # We are building in place.
9891 ac_srcdir=.
9892 ac_top_srcdir=$ac_top_builddir_sub
9893 ac_abs_top_srcdir=$ac_pwd ;;
9894 [\\/]* | ?:[\\/]* ) # Absolute name.
9895 ac_srcdir=$srcdir$ac_dir_suffix;
9896 ac_top_srcdir=$srcdir
9897 ac_abs_top_srcdir=$srcdir ;;
9898 *) # Relative name.
9899 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
9900 ac_top_srcdir=$ac_top_build_prefix$srcdir
9901 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
9902 esac
9903 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
9906 case $ac_mode in
9909 # CONFIG_FILE
9912 case $INSTALL in
9913 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
9914 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
9915 esac
9916 _ACEOF
9918 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9919 # If the template does not know about datarootdir, expand it.
9920 # FIXME: This hack should be removed a few years after 2.60.
9921 ac_datarootdir_hack=; ac_datarootdir_seen=
9923 ac_sed_dataroot='
9924 /datarootdir/ {
9928 /@datadir@/p
9929 /@docdir@/p
9930 /@infodir@/p
9931 /@localedir@/p
9932 /@mandir@/p
9934 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
9935 *datarootdir*) ac_datarootdir_seen=yes;;
9936 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
9937 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
9938 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
9939 _ACEOF
9940 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9941 ac_datarootdir_hack='
9942 s&@datadir@&$datadir&g
9943 s&@docdir@&$docdir&g
9944 s&@infodir@&$infodir&g
9945 s&@localedir@&$localedir&g
9946 s&@mandir@&$mandir&g
9947 s&\\\${datarootdir}&$datarootdir&g' ;;
9948 esac
9949 _ACEOF
9951 # Neutralize VPATH when `$srcdir' = `.'.
9952 # Shell code in configure.ac might set extrasub.
9953 # FIXME: do we really want to maintain this feature?
9954 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9955 ac_sed_extra="$ac_vpsub
9956 $extrasub
9957 _ACEOF
9958 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9960 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
9961 s|@configure_input@|$ac_sed_conf_input|;t t
9962 s&@top_builddir@&$ac_top_builddir_sub&;t t
9963 s&@top_build_prefix@&$ac_top_build_prefix&;t t
9964 s&@srcdir@&$ac_srcdir&;t t
9965 s&@abs_srcdir@&$ac_abs_srcdir&;t t
9966 s&@top_srcdir@&$ac_top_srcdir&;t t
9967 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
9968 s&@builddir@&$ac_builddir&;t t
9969 s&@abs_builddir@&$ac_abs_builddir&;t t
9970 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
9971 s&@INSTALL@&$ac_INSTALL&;t t
9972 $ac_datarootdir_hack
9974 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
9975 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
9976 $as_echo "$as_me: error: could not create $ac_file" >&2;}
9977 { (exit 1); exit 1; }; }
9979 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
9980 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
9981 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
9982 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
9983 which seems to be undefined. Please make sure it is defined." >&5
9984 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
9985 which seems to be undefined. Please make sure it is defined." >&2;}
9987 rm -f "$tmp/stdin"
9988 case $ac_file in
9989 -) cat "$tmp/out" && rm -f "$tmp/out";;
9990 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
9991 esac \
9992 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
9993 $as_echo "$as_me: error: could not create $ac_file" >&2;}
9994 { (exit 1); exit 1; }; }
9998 # CONFIG_HEADER
10000 if test x"$ac_file" != x-; then
10002 $as_echo "/* $configure_input */" \
10003 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
10004 } >"$tmp/config.h" \
10005 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
10006 $as_echo "$as_me: error: could not create $ac_file" >&2;}
10007 { (exit 1); exit 1; }; }
10008 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
10009 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
10010 $as_echo "$as_me: $ac_file is unchanged" >&6;}
10011 else
10012 rm -f "$ac_file"
10013 mv "$tmp/config.h" "$ac_file" \
10014 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
10015 $as_echo "$as_me: error: could not create $ac_file" >&2;}
10016 { (exit 1); exit 1; }; }
10018 else
10019 $as_echo "/* $configure_input */" \
10020 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
10021 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
10022 $as_echo "$as_me: error: could not create -" >&2;}
10023 { (exit 1); exit 1; }; }
10027 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
10028 $as_echo "$as_me: executing $ac_file commands" >&6;}
10030 esac
10033 case $ac_file$ac_mode in
10034 "default":C)
10035 case $CONFIG_FILES in *config.make*)
10036 echo "$config_vars" >> config.make;;
10037 esac
10038 test -d bits || mkdir bits ;;
10040 esac
10041 done # for ac_tag
10044 { (exit 0); exit 0; }
10045 _ACEOF
10046 chmod +x $CONFIG_STATUS
10047 ac_clean_files=$ac_clean_files_save
10049 test $ac_write_fail = 0 ||
10050 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
10051 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
10052 { (exit 1); exit 1; }; }
10055 # configure is writing to config.log, and then calls config.status.
10056 # config.status does its own redirection, appending to config.log.
10057 # Unfortunately, on DOS this fails, as config.log is still kept open
10058 # by configure, so config.status won't be able to write to it; its
10059 # output is simply discarded. So we exec the FD to /dev/null,
10060 # effectively closing config.log, so it can be properly (re)opened and
10061 # appended to by config.status. When coming back to configure, we
10062 # need to make the FD available again.
10063 if test "$no_create" != yes; then
10064 ac_cs_success=:
10065 ac_config_status_args=
10066 test "$silent" = yes &&
10067 ac_config_status_args="$ac_config_status_args --quiet"
10068 exec 5>/dev/null
10069 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
10070 exec 5>>config.log
10071 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
10072 # would make configure fail if this is the last instruction.
10073 $ac_cs_success || { (exit 1); exit 1; }
10077 # CONFIG_SUBDIRS section.
10079 if test "$no_recursion" != yes; then
10081 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
10082 # so they do not pile up.
10083 ac_sub_configure_args=
10084 ac_prev=
10085 eval "set x $ac_configure_args"
10086 shift
10087 for ac_arg
10089 if test -n "$ac_prev"; then
10090 ac_prev=
10091 continue
10093 case $ac_arg in
10094 -cache-file | --cache-file | --cache-fil | --cache-fi \
10095 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
10096 ac_prev=cache_file ;;
10097 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
10098 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
10099 | --c=*)
10101 --config-cache | -C)
10103 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
10104 ac_prev=srcdir ;;
10105 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
10107 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
10108 ac_prev=prefix ;;
10109 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
10111 --disable-option-checking)
10114 case $ac_arg in
10115 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
10116 esac
10117 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
10118 esac
10119 done
10121 # Always prepend --prefix to ensure using the same prefix
10122 # in subdir configurations.
10123 ac_arg="--prefix=$prefix"
10124 case $ac_arg in
10125 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
10126 esac
10127 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
10129 # Pass --silent
10130 if test "$silent" = yes; then
10131 ac_sub_configure_args="--silent $ac_sub_configure_args"
10134 # Always prepend --disable-option-checking to silence warnings, since
10135 # different subdirs can have different --enable and --with options.
10136 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
10138 ac_popdir=`pwd`
10139 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
10141 # Do not complain, so a configure script can configure whichever
10142 # parts of a large source tree are present.
10143 test -d "$srcdir/$ac_dir" || continue
10145 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
10146 $as_echo "$as_me:$LINENO: $ac_msg" >&5
10147 $as_echo "$ac_msg" >&6
10148 { as_dir="$ac_dir"
10149 case $as_dir in #(
10150 -*) as_dir=./$as_dir;;
10151 esac
10152 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
10153 as_dirs=
10154 while :; do
10155 case $as_dir in #(
10156 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
10157 *) as_qdir=$as_dir;;
10158 esac
10159 as_dirs="'$as_qdir' $as_dirs"
10160 as_dir=`$as_dirname -- "$as_dir" ||
10161 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10162 X"$as_dir" : 'X\(//\)[^/]' \| \
10163 X"$as_dir" : 'X\(//\)$' \| \
10164 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
10165 $as_echo X"$as_dir" |
10166 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10167 s//\1/
10170 /^X\(\/\/\)[^/].*/{
10171 s//\1/
10174 /^X\(\/\/\)$/{
10175 s//\1/
10178 /^X\(\/\).*/{
10179 s//\1/
10182 s/.*/./; q'`
10183 test -d "$as_dir" && break
10184 done
10185 test -z "$as_dirs" || eval "mkdir $as_dirs"
10186 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
10187 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
10188 { (exit 1); exit 1; }; }; }
10189 ac_builddir=.
10191 case "$ac_dir" in
10192 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
10194 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
10195 # A ".." for each directory in $ac_dir_suffix.
10196 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
10197 case $ac_top_builddir_sub in
10198 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
10199 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
10200 esac ;;
10201 esac
10202 ac_abs_top_builddir=$ac_pwd
10203 ac_abs_builddir=$ac_pwd$ac_dir_suffix
10204 # for backward compatibility:
10205 ac_top_builddir=$ac_top_build_prefix
10207 case $srcdir in
10208 .) # We are building in place.
10209 ac_srcdir=.
10210 ac_top_srcdir=$ac_top_builddir_sub
10211 ac_abs_top_srcdir=$ac_pwd ;;
10212 [\\/]* | ?:[\\/]* ) # Absolute name.
10213 ac_srcdir=$srcdir$ac_dir_suffix;
10214 ac_top_srcdir=$srcdir
10215 ac_abs_top_srcdir=$srcdir ;;
10216 *) # Relative name.
10217 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
10218 ac_top_srcdir=$ac_top_build_prefix$srcdir
10219 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
10220 esac
10221 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
10224 cd "$ac_dir"
10226 # Check for guested configure; otherwise get Cygnus style configure.
10227 if test -f "$ac_srcdir/configure.gnu"; then
10228 ac_sub_configure=$ac_srcdir/configure.gnu
10229 elif test -f "$ac_srcdir/configure"; then
10230 ac_sub_configure=$ac_srcdir/configure
10231 elif test -f "$ac_srcdir/configure.in"; then
10232 # This should be Cygnus configure.
10233 ac_sub_configure=$ac_aux_dir/configure
10234 else
10235 { $as_echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
10236 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
10237 ac_sub_configure=
10240 # The recursion is here.
10241 if test -n "$ac_sub_configure"; then
10242 # Make the cache file name correct relative to the subdirectory.
10243 case $cache_file in
10244 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
10245 *) # Relative name.
10246 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
10247 esac
10249 { $as_echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
10250 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
10251 # The eval makes quoting arguments work.
10252 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
10253 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
10254 { { $as_echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
10255 $as_echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
10256 { (exit 1); exit 1; }; }
10259 cd "$ac_popdir"
10260 done
10262 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
10263 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
10264 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}