Implement STB_GNU_UNIQUE handling.
[glibc.git] / configure
blob4e49f7068b238cc8b980a3d75f75879b705674b9
1 #! /bin/sh
2 # From configure.in CVSid.
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.63 for GNU C Library (see version.h).
6 # Report bugs to <glibc>.
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
10 # This configure script is free software; the Free Software Foundation
11 # gives unlimited permission to copy, distribute and modify it.
12 ## --------------------- ##
13 ## M4sh Initialization. ##
14 ## --------------------- ##
16 # Be more Bourne compatible
17 DUALCASE=1; export DUALCASE # for MKS sh
18 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19 emulate sh
20 NULLCMD=:
21 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
22 # is contrary to our usage. Disable this feature.
23 alias -g '${1+"$@"}'='"$@"'
24 setopt NO_GLOB_SUBST
25 else
26 case `(set -o) 2>/dev/null` in
27 *posix*) set -o posix ;;
28 esac
35 # PATH needs CR
36 # Avoid depending upon Character Ranges.
37 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
38 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
39 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
40 as_cr_digits='0123456789'
41 as_cr_alnum=$as_cr_Letters$as_cr_digits
43 as_nl='
45 export as_nl
46 # Printing a long string crashes Solaris 7 /usr/bin/printf.
47 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
48 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
49 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
50 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
51 as_echo='printf %s\n'
52 as_echo_n='printf %s'
53 else
54 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
55 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
56 as_echo_n='/usr/ucb/echo -n'
57 else
58 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
59 as_echo_n_body='eval
60 arg=$1;
61 case $arg in
62 *"$as_nl"*)
63 expr "X$arg" : "X\\(.*\\)$as_nl";
64 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65 esac;
66 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68 export as_echo_n_body
69 as_echo_n='sh -c $as_echo_n_body as_echo'
71 export as_echo_body
72 as_echo='sh -c $as_echo_body as_echo'
75 # The user is always right.
76 if test "${PATH_SEPARATOR+set}" != set; then
77 PATH_SEPARATOR=:
78 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
79 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
80 PATH_SEPARATOR=';'
84 # Support unset when possible.
85 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
86 as_unset=unset
87 else
88 as_unset=false
92 # IFS
93 # We need space, tab and new line, in precisely that order. Quoting is
94 # there to prevent editors from complaining about space-tab.
95 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
96 # splitting by setting IFS to empty value.)
97 IFS=" "" $as_nl"
99 # Find who we are. Look in the path if we contain no directory separator.
100 case $0 in
101 *[\\/]* ) as_myself=$0 ;;
102 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
103 for as_dir in $PATH
105 IFS=$as_save_IFS
106 test -z "$as_dir" && as_dir=.
107 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
108 done
109 IFS=$as_save_IFS
112 esac
113 # We did not find ourselves, most probably we were run as `sh COMMAND'
114 # in which case we are not to be found in the path.
115 if test "x$as_myself" = x; then
116 as_myself=$0
118 if test ! -f "$as_myself"; then
119 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
120 { (exit 1); exit 1; }
123 # Work around bugs in pre-3.0 UWIN ksh.
124 for as_var in ENV MAIL MAILPATH
125 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
126 done
127 PS1='$ '
128 PS2='> '
129 PS4='+ '
131 # NLS nuisances.
132 LC_ALL=C
133 export LC_ALL
134 LANGUAGE=C
135 export LANGUAGE
137 # Required to use basename.
138 if expr a : '\(a\)' >/dev/null 2>&1 &&
139 test "X`expr 00001 : '.*\(...\)'`" = X001; then
140 as_expr=expr
141 else
142 as_expr=false
145 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
146 as_basename=basename
147 else
148 as_basename=false
152 # Name of the executable.
153 as_me=`$as_basename -- "$0" ||
154 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
155 X"$0" : 'X\(//\)$' \| \
156 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
157 $as_echo X/"$0" |
158 sed '/^.*\/\([^/][^/]*\)\/*$/{
159 s//\1/
162 /^X\/\(\/\/\)$/{
163 s//\1/
166 /^X\/\(\/\).*/{
167 s//\1/
170 s/.*/./; q'`
172 # CDPATH.
173 $as_unset CDPATH
176 if test "x$CONFIG_SHELL" = x; then
177 if (eval ":") 2>/dev/null; then
178 as_have_required=yes
179 else
180 as_have_required=no
183 if test $as_have_required = yes && (eval ":
184 (as_func_return () {
185 (exit \$1)
187 as_func_success () {
188 as_func_return 0
190 as_func_failure () {
191 as_func_return 1
193 as_func_ret_success () {
194 return 0
196 as_func_ret_failure () {
197 return 1
200 exitcode=0
201 if as_func_success; then
203 else
204 exitcode=1
205 echo as_func_success failed.
208 if as_func_failure; then
209 exitcode=1
210 echo as_func_failure succeeded.
213 if as_func_ret_success; then
215 else
216 exitcode=1
217 echo as_func_ret_success failed.
220 if as_func_ret_failure; then
221 exitcode=1
222 echo as_func_ret_failure succeeded.
225 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
227 else
228 exitcode=1
229 echo positional parameters were not saved.
232 test \$exitcode = 0) || { (exit 1); exit 1; }
235 as_lineno_1=\$LINENO
236 as_lineno_2=\$LINENO
237 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
238 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
239 ") 2> /dev/null; then
241 else
242 as_candidate_shells=
243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
244 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
246 IFS=$as_save_IFS
247 test -z "$as_dir" && as_dir=.
248 case $as_dir in
250 for as_base in sh bash ksh sh5; do
251 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
252 done;;
253 esac
254 done
255 IFS=$as_save_IFS
258 for as_shell in $as_candidate_shells $SHELL; do
259 # Try only shells that exist, to save several forks.
260 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
261 { ("$as_shell") 2> /dev/null <<\_ASEOF
262 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
263 emulate sh
264 NULLCMD=:
265 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
266 # is contrary to our usage. Disable this feature.
267 alias -g '${1+"$@"}'='"$@"'
268 setopt NO_GLOB_SUBST
269 else
270 case `(set -o) 2>/dev/null` in
271 *posix*) set -o posix ;;
272 esac
278 _ASEOF
279 }; then
280 CONFIG_SHELL=$as_shell
281 as_have_required=yes
282 if { "$as_shell" 2> /dev/null <<\_ASEOF
283 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
284 emulate sh
285 NULLCMD=:
286 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
287 # is contrary to our usage. Disable this feature.
288 alias -g '${1+"$@"}'='"$@"'
289 setopt NO_GLOB_SUBST
290 else
291 case `(set -o) 2>/dev/null` in
292 *posix*) set -o posix ;;
293 esac
299 (as_func_return () {
300 (exit $1)
302 as_func_success () {
303 as_func_return 0
305 as_func_failure () {
306 as_func_return 1
308 as_func_ret_success () {
309 return 0
311 as_func_ret_failure () {
312 return 1
315 exitcode=0
316 if as_func_success; then
318 else
319 exitcode=1
320 echo as_func_success failed.
323 if as_func_failure; then
324 exitcode=1
325 echo as_func_failure succeeded.
328 if as_func_ret_success; then
330 else
331 exitcode=1
332 echo as_func_ret_success failed.
335 if as_func_ret_failure; then
336 exitcode=1
337 echo as_func_ret_failure succeeded.
340 if ( set x; as_func_ret_success y && test x = "$1" ); then
342 else
343 exitcode=1
344 echo positional parameters were not saved.
347 test $exitcode = 0) || { (exit 1); exit 1; }
350 as_lineno_1=$LINENO
351 as_lineno_2=$LINENO
352 test "x$as_lineno_1" != "x$as_lineno_2" &&
353 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
355 _ASEOF
356 }; then
357 break
362 done
364 if test "x$CONFIG_SHELL" != x; then
365 for as_var in BASH_ENV ENV
366 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
367 done
368 export CONFIG_SHELL
369 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
373 if test $as_have_required = no; then
374 echo This script requires a shell more modern than all the
375 echo shells that I found on your system. Please install a
376 echo modern shell, or manually run the script under such a
377 echo shell if you do have one.
378 { (exit 1); exit 1; }
388 (eval "as_func_return () {
389 (exit \$1)
391 as_func_success () {
392 as_func_return 0
394 as_func_failure () {
395 as_func_return 1
397 as_func_ret_success () {
398 return 0
400 as_func_ret_failure () {
401 return 1
404 exitcode=0
405 if as_func_success; then
407 else
408 exitcode=1
409 echo as_func_success failed.
412 if as_func_failure; then
413 exitcode=1
414 echo as_func_failure succeeded.
417 if as_func_ret_success; then
419 else
420 exitcode=1
421 echo as_func_ret_success failed.
424 if as_func_ret_failure; then
425 exitcode=1
426 echo as_func_ret_failure succeeded.
429 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
431 else
432 exitcode=1
433 echo positional parameters were not saved.
436 test \$exitcode = 0") || {
437 echo No shell found that supports shell functions.
438 echo Please tell bug-autoconf@gnu.org about your system,
439 echo including any error possibly output before this message.
440 echo This can help us improve future autoconf versions.
441 echo Configuration will now proceed without shell functions.
446 as_lineno_1=$LINENO
447 as_lineno_2=$LINENO
448 test "x$as_lineno_1" != "x$as_lineno_2" &&
449 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
451 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
452 # uniformly replaced by the line number. The first 'sed' inserts a
453 # line-number line after each line using $LINENO; the second 'sed'
454 # does the real work. The second script uses 'N' to pair each
455 # line-number line with the line containing $LINENO, and appends
456 # trailing '-' during substitution so that $LINENO is not a special
457 # case at line end.
458 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
459 # scripts with optimization help from Paolo Bonzini. Blame Lee
460 # E. McMahon (1931-1989) for sed's syntax. :-)
461 sed -n '
463 /[$]LINENO/=
464 ' <$as_myself |
465 sed '
466 s/[$]LINENO.*/&-/
467 t lineno
469 :lineno
471 :loop
472 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
473 t loop
474 s/-\n.*//
475 ' >$as_me.lineno &&
476 chmod +x "$as_me.lineno" ||
477 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
478 { (exit 1); exit 1; }; }
480 # Don't try to exec as it changes $[0], causing all sort of problems
481 # (the dirname of $[0] is not the place where we might find the
482 # original and so on. Autoconf is especially sensitive to this).
483 . "./$as_me.lineno"
484 # Exit status is that of the last command.
485 exit
489 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
490 as_dirname=dirname
491 else
492 as_dirname=false
495 ECHO_C= ECHO_N= ECHO_T=
496 case `echo -n x` in
497 -n*)
498 case `echo 'x\c'` in
499 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
500 *) ECHO_C='\c';;
501 esac;;
503 ECHO_N='-n';;
504 esac
505 if expr a : '\(a\)' >/dev/null 2>&1 &&
506 test "X`expr 00001 : '.*\(...\)'`" = X001; then
507 as_expr=expr
508 else
509 as_expr=false
512 rm -f conf$$ conf$$.exe conf$$.file
513 if test -d conf$$.dir; then
514 rm -f conf$$.dir/conf$$.file
515 else
516 rm -f conf$$.dir
517 mkdir conf$$.dir 2>/dev/null
519 if (echo >conf$$.file) 2>/dev/null; then
520 if ln -s conf$$.file conf$$ 2>/dev/null; then
521 as_ln_s='ln -s'
522 # ... but there are two gotchas:
523 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
524 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
525 # In both cases, we have to default to `cp -p'.
526 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
527 as_ln_s='cp -p'
528 elif ln conf$$.file conf$$ 2>/dev/null; then
529 as_ln_s=ln
530 else
531 as_ln_s='cp -p'
533 else
534 as_ln_s='cp -p'
536 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
537 rmdir conf$$.dir 2>/dev/null
539 if mkdir -p . 2>/dev/null; then
540 as_mkdir_p=:
541 else
542 test -d ./-p && rmdir ./-p
543 as_mkdir_p=false
546 if test -x / >/dev/null 2>&1; then
547 as_test_x='test -x'
548 else
549 if ls -dL / >/dev/null 2>&1; then
550 as_ls_L_option=L
551 else
552 as_ls_L_option=
554 as_test_x='
555 eval sh -c '\''
556 if test -d "$1"; then
557 test -d "$1/.";
558 else
559 case $1 in
560 -*)set "./$1";;
561 esac;
562 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
563 ???[sx]*):;;*)false;;esac;fi
564 '\'' sh
567 as_executable_p=$as_test_x
569 # Sed expression to map a string onto a valid CPP name.
570 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
572 # Sed expression to map a string onto a valid variable name.
573 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
577 exec 7<&0 </dev/null 6>&1
579 # Name of the host.
580 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
581 # so uname gets run too.
582 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
585 # Initializations.
587 ac_default_prefix=/usr/local
588 ac_clean_files=
589 ac_config_libobj_dir=.
590 LIBOBJS=
591 cross_compiling=no
592 subdirs=
593 MFLAGS=
594 MAKEFLAGS=
595 SHELL=${CONFIG_SHELL-/bin/sh}
597 # Identity of this package.
598 PACKAGE_NAME='GNU C Library'
599 PACKAGE_TARNAME='c-library'
600 PACKAGE_VERSION='(see version.h)'
601 PACKAGE_STRING='GNU C Library (see version.h)'
602 PACKAGE_BUGREPORT='glibc'
604 ac_unique_file="include/features.h"
605 enable_option_checking=no
606 # Factoring default headers for most tests.
607 ac_includes_default="\
608 #include <stdio.h>
609 #ifdef HAVE_SYS_TYPES_H
610 # include <sys/types.h>
611 #endif
612 #ifdef HAVE_SYS_STAT_H
613 # include <sys/stat.h>
614 #endif
615 #ifdef STDC_HEADERS
616 # include <stdlib.h>
617 # include <stddef.h>
618 #else
619 # ifdef HAVE_STDLIB_H
620 # include <stdlib.h>
621 # endif
622 #endif
623 #ifdef HAVE_STRING_H
624 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
625 # include <memory.h>
626 # endif
627 # include <string.h>
628 #endif
629 #ifdef HAVE_STRINGS_H
630 # include <strings.h>
631 #endif
632 #ifdef HAVE_INTTYPES_H
633 # include <inttypes.h>
634 #endif
635 #ifdef HAVE_STDINT_H
636 # include <stdint.h>
637 #endif
638 #ifdef HAVE_UNISTD_H
639 # include <unistd.h>
640 #endif"
642 ac_subst_vars='LTLIBOBJS
643 LIBOBJS
644 RELEASE
645 VERSION
646 mach_interface_list
647 DEFINES
648 nopic_initfini
649 static_nss
650 bounded
651 omitfp
652 profile
653 libc_cv_pic_default
654 shared
655 static
656 xcoff
658 ldd_rewrite_script
659 use_ldconfig
660 libc_cv_cc_sse4
661 libc_cv_cpp_asm_debuginfo
662 libc_cv_forced_unwind
663 libc_cv_rootsbindir
664 libc_cv_sysconfdir
665 libc_cv_localedir
666 libc_cv_slibdir
667 old_glibc_headers
668 uname_version
669 uname_release
670 uname_sysname
671 libc_cv_gcc_unwind_find_fde
672 sizeof_long_double
673 EGREP
674 GREP
675 have_selinux
676 have_libcap
677 have_libaudit
678 LIBGD
679 libc_cv_cc_submachine
680 exceptions
681 no_whole_archive
682 libc_cv_have_initfini
683 libc_cv_gnu89_inline
684 libc_cv_ssp
685 fno_unit_at_a_time
686 libc_cv_hashstyle
687 libc_cv_fpie
688 libc_cv_z_execstack
689 libc_cv_z_combreloc
690 ASFLAGS_config
691 libc_cv_as_needed
692 libc_cv_libgcc_s_suffix
693 libc_cv_Bgroup
694 libc_cv_cc_with_libunwind
695 VERSIONING
696 BISON
697 INSTALL_INFO
698 PERL
700 libc_cv_have_ksh
702 libc_cv_have_bash2
703 BASH_SHELL
704 libc_cv_gcc_static_libgcc
705 CXX_SYSINCLUDES
706 SYSINCLUDES
707 AUTOCONF
709 MAKEINFO
710 MSGFMT
711 MAKE
712 PWD_P
716 RANLIB
717 OBJDUMP
719 LN_S
720 INSTALL_DATA
721 INSTALL_SCRIPT
722 INSTALL_PROGRAM
723 sysdeps_add_ons
724 sysnames
725 submachine
726 base_machine
727 add_on_subdirs
728 add_ons
729 subdirs
730 libc_cv_nss_crypt
731 experimental_malloc
732 multi_arch
733 all_warnings
734 force_install
735 bindnow
736 oldest_abi
737 enable_check_abi
738 with_cvs
739 with_fp
740 ac_ct_CXX
741 CXXFLAGS
744 cross_compiling
745 BUILD_CC
746 OBJEXT
747 ac_ct_CC
748 CPPFLAGS
749 LDFLAGS
750 CFLAGS
752 host_os
753 host_vendor
754 host_cpu
755 host
756 build_os
757 build_vendor
758 build_cpu
759 build
760 target_alias
761 host_alias
762 build_alias
763 LIBS
764 ECHO_T
765 ECHO_N
766 ECHO_C
767 DEFS
768 mandir
769 localedir
770 libdir
771 psdir
772 pdfdir
773 dvidir
774 htmldir
775 infodir
776 docdir
777 oldincludedir
778 includedir
779 localstatedir
780 sharedstatedir
781 sysconfdir
782 datadir
783 datarootdir
784 libexecdir
785 sbindir
786 bindir
787 program_transform_name
788 prefix
789 exec_prefix
790 PACKAGE_BUGREPORT
791 PACKAGE_STRING
792 PACKAGE_VERSION
793 PACKAGE_TARNAME
794 PACKAGE_NAME
795 PATH_SEPARATOR
796 SHELL'
797 ac_subst_files=''
798 ac_user_opts='
799 enable_option_checking
800 with_gd
801 with_gd_include
802 with_gd_lib
803 with_fp
804 with_binutils
805 with_elf
806 with_selinux
807 with_xcoff
808 with_cvs
809 with_headers
810 enable_sanity_checks
811 enable_check_abi
812 enable_shared
813 enable_profile
814 enable_omitfp
815 enable_bounded
816 enable_versioning
817 enable_oldest_abi
818 enable_stackguard_randomization
819 enable_add_ons
820 with_tls
821 with___thread
822 enable_hidden_plt
823 enable_bind_now
824 enable_static_nss
825 enable_force_install
826 enable_kernel
827 enable_all_warnings
828 enable_multi_arch
829 enable_experimental_malloc
830 enable_nss_crypt
831 with_cpu
833 ac_precious_vars='build_alias
834 host_alias
835 target_alias
837 CFLAGS
838 LDFLAGS
839 LIBS
840 CPPFLAGS
843 CXXFLAGS
844 CCC'
845 ac_subdirs_all=''
847 # Initialize some variables set by options.
848 ac_init_help=
849 ac_init_version=false
850 ac_unrecognized_opts=
851 ac_unrecognized_sep=
852 # The variables have the same names as the options, with
853 # dashes changed to underlines.
854 cache_file=/dev/null
855 exec_prefix=NONE
856 no_create=
857 no_recursion=
858 prefix=NONE
859 program_prefix=NONE
860 program_suffix=NONE
861 program_transform_name=s,x,x,
862 silent=
863 site=
864 srcdir=
865 verbose=
866 x_includes=NONE
867 x_libraries=NONE
869 # Installation directory options.
870 # These are left unexpanded so users can "make install exec_prefix=/foo"
871 # and all the variables that are supposed to be based on exec_prefix
872 # by default will actually change.
873 # Use braces instead of parens because sh, perl, etc. also accept them.
874 # (The list follows the same order as the GNU Coding Standards.)
875 bindir='${exec_prefix}/bin'
876 sbindir='${exec_prefix}/sbin'
877 libexecdir='${exec_prefix}/libexec'
878 datarootdir='${prefix}/share'
879 datadir='${datarootdir}'
880 sysconfdir='${prefix}/etc'
881 sharedstatedir='${prefix}/com'
882 localstatedir='${prefix}/var'
883 includedir='${prefix}/include'
884 oldincludedir='/usr/include'
885 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
886 infodir='${datarootdir}/info'
887 htmldir='${docdir}'
888 dvidir='${docdir}'
889 pdfdir='${docdir}'
890 psdir='${docdir}'
891 libdir='${exec_prefix}/lib'
892 localedir='${datarootdir}/locale'
893 mandir='${datarootdir}/man'
895 ac_prev=
896 ac_dashdash=
897 for ac_option
899 # If the previous option needs an argument, assign it.
900 if test -n "$ac_prev"; then
901 eval $ac_prev=\$ac_option
902 ac_prev=
903 continue
906 case $ac_option in
907 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
908 *) ac_optarg=yes ;;
909 esac
911 # Accept the important Cygnus configure options, so we can diagnose typos.
913 case $ac_dashdash$ac_option in
915 ac_dashdash=yes ;;
917 -bindir | --bindir | --bindi | --bind | --bin | --bi)
918 ac_prev=bindir ;;
919 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
920 bindir=$ac_optarg ;;
922 -build | --build | --buil | --bui | --bu)
923 ac_prev=build_alias ;;
924 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
925 build_alias=$ac_optarg ;;
927 -cache-file | --cache-file | --cache-fil | --cache-fi \
928 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
929 ac_prev=cache_file ;;
930 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
931 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
932 cache_file=$ac_optarg ;;
934 --config-cache | -C)
935 cache_file=config.cache ;;
937 -datadir | --datadir | --datadi | --datad)
938 ac_prev=datadir ;;
939 -datadir=* | --datadir=* | --datadi=* | --datad=*)
940 datadir=$ac_optarg ;;
942 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
943 | --dataroo | --dataro | --datar)
944 ac_prev=datarootdir ;;
945 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
946 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
947 datarootdir=$ac_optarg ;;
949 -disable-* | --disable-*)
950 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
951 # Reject names that are not valid shell variable names.
952 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
953 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
954 { (exit 1); exit 1; }; }
955 ac_useropt_orig=$ac_useropt
956 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
957 case $ac_user_opts in
959 "enable_$ac_useropt"
960 "*) ;;
961 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
962 ac_unrecognized_sep=', ';;
963 esac
964 eval enable_$ac_useropt=no ;;
966 -docdir | --docdir | --docdi | --doc | --do)
967 ac_prev=docdir ;;
968 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
969 docdir=$ac_optarg ;;
971 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
972 ac_prev=dvidir ;;
973 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
974 dvidir=$ac_optarg ;;
976 -enable-* | --enable-*)
977 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
978 # Reject names that are not valid shell variable names.
979 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
980 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
981 { (exit 1); exit 1; }; }
982 ac_useropt_orig=$ac_useropt
983 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
984 case $ac_user_opts in
986 "enable_$ac_useropt"
987 "*) ;;
988 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
989 ac_unrecognized_sep=', ';;
990 esac
991 eval enable_$ac_useropt=\$ac_optarg ;;
993 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
994 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
995 | --exec | --exe | --ex)
996 ac_prev=exec_prefix ;;
997 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
998 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
999 | --exec=* | --exe=* | --ex=*)
1000 exec_prefix=$ac_optarg ;;
1002 -gas | --gas | --ga | --g)
1003 # Obsolete; use --with-gas.
1004 with_gas=yes ;;
1006 -help | --help | --hel | --he | -h)
1007 ac_init_help=long ;;
1008 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1009 ac_init_help=recursive ;;
1010 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1011 ac_init_help=short ;;
1013 -host | --host | --hos | --ho)
1014 ac_prev=host_alias ;;
1015 -host=* | --host=* | --hos=* | --ho=*)
1016 host_alias=$ac_optarg ;;
1018 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1019 ac_prev=htmldir ;;
1020 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1021 | --ht=*)
1022 htmldir=$ac_optarg ;;
1024 -includedir | --includedir | --includedi | --included | --include \
1025 | --includ | --inclu | --incl | --inc)
1026 ac_prev=includedir ;;
1027 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1028 | --includ=* | --inclu=* | --incl=* | --inc=*)
1029 includedir=$ac_optarg ;;
1031 -infodir | --infodir | --infodi | --infod | --info | --inf)
1032 ac_prev=infodir ;;
1033 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1034 infodir=$ac_optarg ;;
1036 -libdir | --libdir | --libdi | --libd)
1037 ac_prev=libdir ;;
1038 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1039 libdir=$ac_optarg ;;
1041 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1042 | --libexe | --libex | --libe)
1043 ac_prev=libexecdir ;;
1044 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1045 | --libexe=* | --libex=* | --libe=*)
1046 libexecdir=$ac_optarg ;;
1048 -localedir | --localedir | --localedi | --localed | --locale)
1049 ac_prev=localedir ;;
1050 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1051 localedir=$ac_optarg ;;
1053 -localstatedir | --localstatedir | --localstatedi | --localstated \
1054 | --localstate | --localstat | --localsta | --localst | --locals)
1055 ac_prev=localstatedir ;;
1056 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1057 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1058 localstatedir=$ac_optarg ;;
1060 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1061 ac_prev=mandir ;;
1062 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1063 mandir=$ac_optarg ;;
1065 -nfp | --nfp | --nf)
1066 # Obsolete; use --without-fp.
1067 with_fp=no ;;
1069 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1070 | --no-cr | --no-c | -n)
1071 no_create=yes ;;
1073 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1074 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1075 no_recursion=yes ;;
1077 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1078 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1079 | --oldin | --oldi | --old | --ol | --o)
1080 ac_prev=oldincludedir ;;
1081 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1082 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1083 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1084 oldincludedir=$ac_optarg ;;
1086 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1087 ac_prev=prefix ;;
1088 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1089 prefix=$ac_optarg ;;
1091 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1092 | --program-pre | --program-pr | --program-p)
1093 ac_prev=program_prefix ;;
1094 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1095 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1096 program_prefix=$ac_optarg ;;
1098 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1099 | --program-suf | --program-su | --program-s)
1100 ac_prev=program_suffix ;;
1101 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1102 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1103 program_suffix=$ac_optarg ;;
1105 -program-transform-name | --program-transform-name \
1106 | --program-transform-nam | --program-transform-na \
1107 | --program-transform-n | --program-transform- \
1108 | --program-transform | --program-transfor \
1109 | --program-transfo | --program-transf \
1110 | --program-trans | --program-tran \
1111 | --progr-tra | --program-tr | --program-t)
1112 ac_prev=program_transform_name ;;
1113 -program-transform-name=* | --program-transform-name=* \
1114 | --program-transform-nam=* | --program-transform-na=* \
1115 | --program-transform-n=* | --program-transform-=* \
1116 | --program-transform=* | --program-transfor=* \
1117 | --program-transfo=* | --program-transf=* \
1118 | --program-trans=* | --program-tran=* \
1119 | --progr-tra=* | --program-tr=* | --program-t=*)
1120 program_transform_name=$ac_optarg ;;
1122 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1123 ac_prev=pdfdir ;;
1124 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1125 pdfdir=$ac_optarg ;;
1127 -psdir | --psdir | --psdi | --psd | --ps)
1128 ac_prev=psdir ;;
1129 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1130 psdir=$ac_optarg ;;
1132 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1133 | -silent | --silent | --silen | --sile | --sil)
1134 silent=yes ;;
1136 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1137 ac_prev=sbindir ;;
1138 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1139 | --sbi=* | --sb=*)
1140 sbindir=$ac_optarg ;;
1142 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1143 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1144 | --sharedst | --shareds | --shared | --share | --shar \
1145 | --sha | --sh)
1146 ac_prev=sharedstatedir ;;
1147 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1148 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1149 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1150 | --sha=* | --sh=*)
1151 sharedstatedir=$ac_optarg ;;
1153 -site | --site | --sit)
1154 ac_prev=site ;;
1155 -site=* | --site=* | --sit=*)
1156 site=$ac_optarg ;;
1158 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1159 ac_prev=srcdir ;;
1160 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1161 srcdir=$ac_optarg ;;
1163 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1164 | --syscon | --sysco | --sysc | --sys | --sy)
1165 ac_prev=sysconfdir ;;
1166 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1167 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1168 sysconfdir=$ac_optarg ;;
1170 -target | --target | --targe | --targ | --tar | --ta | --t)
1171 ac_prev=target_alias ;;
1172 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1173 target_alias=$ac_optarg ;;
1175 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1176 verbose=yes ;;
1178 -version | --version | --versio | --versi | --vers | -V)
1179 ac_init_version=: ;;
1181 -with-* | --with-*)
1182 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1183 # Reject names that are not valid shell variable names.
1184 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1185 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1186 { (exit 1); exit 1; }; }
1187 ac_useropt_orig=$ac_useropt
1188 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1189 case $ac_user_opts in
1191 "with_$ac_useropt"
1192 "*) ;;
1193 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1194 ac_unrecognized_sep=', ';;
1195 esac
1196 eval with_$ac_useropt=\$ac_optarg ;;
1198 -without-* | --without-*)
1199 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1200 # Reject names that are not valid shell variable names.
1201 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1202 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1203 { (exit 1); exit 1; }; }
1204 ac_useropt_orig=$ac_useropt
1205 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1206 case $ac_user_opts in
1208 "with_$ac_useropt"
1209 "*) ;;
1210 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1211 ac_unrecognized_sep=', ';;
1212 esac
1213 eval with_$ac_useropt=no ;;
1215 --x)
1216 # Obsolete; use --with-x.
1217 with_x=yes ;;
1219 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1220 | --x-incl | --x-inc | --x-in | --x-i)
1221 ac_prev=x_includes ;;
1222 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1223 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1224 x_includes=$ac_optarg ;;
1226 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1227 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1228 ac_prev=x_libraries ;;
1229 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1230 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1231 x_libraries=$ac_optarg ;;
1233 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1234 Try \`$0 --help' for more information." >&2
1235 { (exit 1); exit 1; }; }
1238 *=*)
1239 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1240 # Reject names that are not valid shell variable names.
1241 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1242 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1243 { (exit 1); exit 1; }; }
1244 eval $ac_envvar=\$ac_optarg
1245 export $ac_envvar ;;
1248 # FIXME: should be removed in autoconf 3.0.
1249 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1250 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1251 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1252 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1255 esac
1256 done
1258 if test -n "$ac_prev"; then
1259 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1260 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1261 { (exit 1); exit 1; }; }
1264 if test -n "$ac_unrecognized_opts"; then
1265 case $enable_option_checking in
1266 no) ;;
1267 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1268 { (exit 1); exit 1; }; } ;;
1269 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1270 esac
1273 # Check all directory arguments for consistency.
1274 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1275 datadir sysconfdir sharedstatedir localstatedir includedir \
1276 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1277 libdir localedir mandir
1279 eval ac_val=\$$ac_var
1280 # Remove trailing slashes.
1281 case $ac_val in
1282 */ )
1283 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1284 eval $ac_var=\$ac_val;;
1285 esac
1286 # Be sure to have absolute directory names.
1287 case $ac_val in
1288 [\\/$]* | ?:[\\/]* ) continue;;
1289 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1290 esac
1291 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1292 { (exit 1); exit 1; }; }
1293 done
1295 # There might be people who depend on the old broken behavior: `$host'
1296 # used to hold the argument of --host etc.
1297 # FIXME: To remove some day.
1298 build=$build_alias
1299 host=$host_alias
1300 target=$target_alias
1302 # FIXME: To remove some day.
1303 if test "x$host_alias" != x; then
1304 if test "x$build_alias" = x; then
1305 cross_compiling=maybe
1306 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1307 If a cross compiler is detected then cross compile mode will be used." >&2
1308 elif test "x$build_alias" != "x$host_alias"; then
1309 cross_compiling=yes
1313 ac_tool_prefix=
1314 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1316 test "$silent" = yes && exec 6>/dev/null
1319 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1320 ac_ls_di=`ls -di .` &&
1321 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1322 { $as_echo "$as_me: error: working directory cannot be determined" >&2
1323 { (exit 1); exit 1; }; }
1324 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1325 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1326 { (exit 1); exit 1; }; }
1329 # Find the source files, if location was not specified.
1330 if test -z "$srcdir"; then
1331 ac_srcdir_defaulted=yes
1332 # Try the directory containing this script, then the parent directory.
1333 ac_confdir=`$as_dirname -- "$as_myself" ||
1334 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1335 X"$as_myself" : 'X\(//\)[^/]' \| \
1336 X"$as_myself" : 'X\(//\)$' \| \
1337 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1338 $as_echo X"$as_myself" |
1339 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1340 s//\1/
1343 /^X\(\/\/\)[^/].*/{
1344 s//\1/
1347 /^X\(\/\/\)$/{
1348 s//\1/
1351 /^X\(\/\).*/{
1352 s//\1/
1355 s/.*/./; q'`
1356 srcdir=$ac_confdir
1357 if test ! -r "$srcdir/$ac_unique_file"; then
1358 srcdir=..
1360 else
1361 ac_srcdir_defaulted=no
1363 if test ! -r "$srcdir/$ac_unique_file"; then
1364 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1365 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1366 { (exit 1); exit 1; }; }
1368 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1369 ac_abs_confdir=`(
1370 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1371 { (exit 1); exit 1; }; }
1372 pwd)`
1373 # When building in place, set srcdir=.
1374 if test "$ac_abs_confdir" = "$ac_pwd"; then
1375 srcdir=.
1377 # Remove unnecessary trailing slashes from srcdir.
1378 # Double slashes in file names in object file debugging info
1379 # mess up M-x gdb in Emacs.
1380 case $srcdir in
1381 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1382 esac
1383 for ac_var in $ac_precious_vars; do
1384 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1385 eval ac_env_${ac_var}_value=\$${ac_var}
1386 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1387 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1388 done
1391 # Report the --help message.
1393 if test "$ac_init_help" = "long"; then
1394 # Omit some internal or obsolete options to make the list less imposing.
1395 # This message is too long to be a string in the A/UX 3.1 sh.
1396 cat <<_ACEOF
1397 \`configure' configures GNU C Library (see version.h) to adapt to many kinds of systems.
1399 Usage: $0 [OPTION]... [VAR=VALUE]...
1401 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1402 VAR=VALUE. See below for descriptions of some of the useful variables.
1404 Defaults for the options are specified in brackets.
1406 Configuration:
1407 -h, --help display this help and exit
1408 --help=short display options specific to this package
1409 --help=recursive display the short help of all the included packages
1410 -V, --version display version information and exit
1411 -q, --quiet, --silent do not print \`checking...' messages
1412 --cache-file=FILE cache test results in FILE [disabled]
1413 -C, --config-cache alias for \`--cache-file=config.cache'
1414 -n, --no-create do not create output files
1415 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1417 Installation directories:
1418 --prefix=PREFIX install architecture-independent files in PREFIX
1419 [$ac_default_prefix]
1420 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1421 [PREFIX]
1423 By default, \`make install' will install all the files in
1424 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1425 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1426 for instance \`--prefix=\$HOME'.
1428 For better control, use the options below.
1430 Fine tuning of the installation directories:
1431 --bindir=DIR user executables [EPREFIX/bin]
1432 --sbindir=DIR system admin executables [EPREFIX/sbin]
1433 --libexecdir=DIR program executables [EPREFIX/libexec]
1434 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1435 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1436 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1437 --libdir=DIR object code libraries [EPREFIX/lib]
1438 --includedir=DIR C header files [PREFIX/include]
1439 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1440 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1441 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1442 --infodir=DIR info documentation [DATAROOTDIR/info]
1443 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1444 --mandir=DIR man documentation [DATAROOTDIR/man]
1445 --docdir=DIR documentation root [DATAROOTDIR/doc/c-library]
1446 --htmldir=DIR html documentation [DOCDIR]
1447 --dvidir=DIR dvi documentation [DOCDIR]
1448 --pdfdir=DIR pdf documentation [DOCDIR]
1449 --psdir=DIR ps documentation [DOCDIR]
1450 _ACEOF
1452 cat <<\_ACEOF
1454 System types:
1455 --build=BUILD configure for building on BUILD [guessed]
1456 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1457 _ACEOF
1460 if test -n "$ac_init_help"; then
1461 case $ac_init_help in
1462 short | recursive ) echo "Configuration of GNU C Library (see version.h):";;
1463 esac
1464 cat <<\_ACEOF
1466 Optional Features:
1467 --disable-option-checking ignore unrecognized --enable/--with options
1468 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1469 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1470 --disable-sanity-checks really do not use threads (should not be used except
1471 in special situations) [default=yes]
1472 --enable-check-abi do "make check-abi" in "make check" (no/warn/yes)
1473 [default=no]
1474 --enable-shared build shared library [default=yes if GNU ld & ELF]
1475 --enable-profile build profiled library [default=no]
1476 --enable-omitfp build undebuggable optimized library [default=no]
1477 --enable-bounded build with runtime bounds checking [default=no]
1478 --disable-versioning do not include versioning information in the library
1479 objects [default=yes if supported]
1480 --enable-oldest-abi=ABI configure the oldest ABI supported [e.g. 2.2]
1481 [default=glibc default]
1482 --enable-stackguard-randomization
1483 initialize __stack_chk_guard canary with a random
1484 number at program start
1485 --enable-add-ons[=DIRS...]
1486 configure and build add-ons in DIR1,DIR2,... search
1487 for add-ons if no parameter given
1488 --disable-hidden-plt do not hide internal function calls to avoid PLT
1489 --enable-bind-now disable lazy relocations in DSOs
1490 --enable-static-nss build static NSS modules [default=no]
1491 --disable-force-install don't force installation of files from this package,
1492 even if they are older than the installed files
1493 --enable-kernel=VERSION compile for compatibility with kernel not older than
1494 VERSION
1495 --enable-all-warnings enable all useful warnings gcc can issue
1496 --enable-multi-arch enable single DSO with optimizations for multiple
1497 architectures
1498 --enable-experimental-malloc
1499 enable experimental malloc features
1500 --enable-nss-crypt enable libcrypt to use nss
1502 Optional Packages:
1503 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1504 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1505 --with-gd=DIR find libgd include dir and library with prefix DIR
1506 --with-gd-include=DIR find libgd include files in DIR
1507 --with-gd-lib=DIR find libgd library files in DIR
1508 --with-fp if using floating-point hardware [default=yes]
1509 --with-binutils=PATH specify location of binutils (as and ld)
1510 --with-elf if using the ELF object format
1511 --with-selinux if building with SELinux support
1512 --with-xcoff if using the XCOFF object format
1513 --without-cvs if CVS should not be used
1514 --with-headers=PATH location of system headers to use (for example
1515 /usr/src/linux/include) [default=compiler default]
1516 --with-tls enable support for TLS
1517 --without-__thread do not use TLS features even when supporting them
1518 --with-cpu=CPU select code for CPU variant
1520 Some influential environment variables:
1521 CC C compiler command
1522 CFLAGS C compiler flags
1523 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1524 nonstandard directory <lib dir>
1525 LIBS libraries to pass to the linker, e.g. -l<library>
1526 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1527 you have headers in a nonstandard directory <include dir>
1528 CPP C preprocessor
1529 CXX C++ compiler command
1530 CXXFLAGS C++ compiler flags
1532 Use these variables to override the choices made by `configure' or to help
1533 it to find libraries and programs with nonstandard names/locations.
1535 Report bugs to <glibc>.
1536 _ACEOF
1537 ac_status=$?
1540 if test "$ac_init_help" = "recursive"; then
1541 # If there are subdirs, report their specific --help.
1542 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1543 test -d "$ac_dir" ||
1544 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1545 continue
1546 ac_builddir=.
1548 case "$ac_dir" in
1549 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1551 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1552 # A ".." for each directory in $ac_dir_suffix.
1553 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1554 case $ac_top_builddir_sub in
1555 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1556 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1557 esac ;;
1558 esac
1559 ac_abs_top_builddir=$ac_pwd
1560 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1561 # for backward compatibility:
1562 ac_top_builddir=$ac_top_build_prefix
1564 case $srcdir in
1565 .) # We are building in place.
1566 ac_srcdir=.
1567 ac_top_srcdir=$ac_top_builddir_sub
1568 ac_abs_top_srcdir=$ac_pwd ;;
1569 [\\/]* | ?:[\\/]* ) # Absolute name.
1570 ac_srcdir=$srcdir$ac_dir_suffix;
1571 ac_top_srcdir=$srcdir
1572 ac_abs_top_srcdir=$srcdir ;;
1573 *) # Relative name.
1574 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1575 ac_top_srcdir=$ac_top_build_prefix$srcdir
1576 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1577 esac
1578 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1580 cd "$ac_dir" || { ac_status=$?; continue; }
1581 # Check for guested configure.
1582 if test -f "$ac_srcdir/configure.gnu"; then
1583 echo &&
1584 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1585 elif test -f "$ac_srcdir/configure"; then
1586 echo &&
1587 $SHELL "$ac_srcdir/configure" --help=recursive
1588 else
1589 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1590 fi || ac_status=$?
1591 cd "$ac_pwd" || { ac_status=$?; break; }
1592 done
1595 test -n "$ac_init_help" && exit $ac_status
1596 if $ac_init_version; then
1597 cat <<\_ACEOF
1598 GNU C Library configure (see version.h)
1599 generated by GNU Autoconf 2.63
1601 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1602 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1603 This configure script is free software; the Free Software Foundation
1604 gives unlimited permission to copy, distribute and modify it.
1605 _ACEOF
1606 exit
1608 cat >config.log <<_ACEOF
1609 This file contains any messages produced by compilers while
1610 running configure, to aid debugging if configure makes a mistake.
1612 It was created by GNU C Library $as_me (see version.h), which was
1613 generated by GNU Autoconf 2.63. Invocation command line was
1615 $ $0 $@
1617 _ACEOF
1618 exec 5>>config.log
1620 cat <<_ASUNAME
1621 ## --------- ##
1622 ## Platform. ##
1623 ## --------- ##
1625 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1626 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1627 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1628 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1629 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1631 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1632 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1634 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1635 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1636 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1637 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1638 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1639 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1640 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1642 _ASUNAME
1644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1645 for as_dir in $PATH
1647 IFS=$as_save_IFS
1648 test -z "$as_dir" && as_dir=.
1649 $as_echo "PATH: $as_dir"
1650 done
1651 IFS=$as_save_IFS
1653 } >&5
1655 cat >&5 <<_ACEOF
1658 ## ----------- ##
1659 ## Core tests. ##
1660 ## ----------- ##
1662 _ACEOF
1665 # Keep a trace of the command line.
1666 # Strip out --no-create and --no-recursion so they do not pile up.
1667 # Strip out --silent because we don't want to record it for future runs.
1668 # Also quote any args containing shell meta-characters.
1669 # Make two passes to allow for proper duplicate-argument suppression.
1670 ac_configure_args=
1671 ac_configure_args0=
1672 ac_configure_args1=
1673 ac_must_keep_next=false
1674 for ac_pass in 1 2
1676 for ac_arg
1678 case $ac_arg in
1679 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1680 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1681 | -silent | --silent | --silen | --sile | --sil)
1682 continue ;;
1683 *\'*)
1684 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1685 esac
1686 case $ac_pass in
1687 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1689 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1690 if test $ac_must_keep_next = true; then
1691 ac_must_keep_next=false # Got value, back to normal.
1692 else
1693 case $ac_arg in
1694 *=* | --config-cache | -C | -disable-* | --disable-* \
1695 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1696 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1697 | -with-* | --with-* | -without-* | --without-* | --x)
1698 case "$ac_configure_args0 " in
1699 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1700 esac
1702 -* ) ac_must_keep_next=true ;;
1703 esac
1705 ac_configure_args="$ac_configure_args '$ac_arg'"
1707 esac
1708 done
1709 done
1710 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1711 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1713 # When interrupted or exit'd, cleanup temporary files, and complete
1714 # config.log. We remove comments because anyway the quotes in there
1715 # would cause problems or look ugly.
1716 # WARNING: Use '\'' to represent an apostrophe within the trap.
1717 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1718 trap 'exit_status=$?
1719 # Save into config.log some information that might help in debugging.
1721 echo
1723 cat <<\_ASBOX
1724 ## ---------------- ##
1725 ## Cache variables. ##
1726 ## ---------------- ##
1727 _ASBOX
1728 echo
1729 # The following way of writing the cache mishandles newlines in values,
1731 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1732 eval ac_val=\$$ac_var
1733 case $ac_val in #(
1734 *${as_nl}*)
1735 case $ac_var in #(
1736 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1737 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1738 esac
1739 case $ac_var in #(
1740 _ | IFS | as_nl) ;; #(
1741 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1742 *) $as_unset $ac_var ;;
1743 esac ;;
1744 esac
1745 done
1746 (set) 2>&1 |
1747 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1748 *${as_nl}ac_space=\ *)
1749 sed -n \
1750 "s/'\''/'\''\\\\'\'''\''/g;
1751 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1752 ;; #(
1754 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1756 esac |
1757 sort
1759 echo
1761 cat <<\_ASBOX
1762 ## ----------------- ##
1763 ## Output variables. ##
1764 ## ----------------- ##
1765 _ASBOX
1766 echo
1767 for ac_var in $ac_subst_vars
1769 eval ac_val=\$$ac_var
1770 case $ac_val in
1771 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1772 esac
1773 $as_echo "$ac_var='\''$ac_val'\''"
1774 done | sort
1775 echo
1777 if test -n "$ac_subst_files"; then
1778 cat <<\_ASBOX
1779 ## ------------------- ##
1780 ## File substitutions. ##
1781 ## ------------------- ##
1782 _ASBOX
1783 echo
1784 for ac_var in $ac_subst_files
1786 eval ac_val=\$$ac_var
1787 case $ac_val in
1788 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1789 esac
1790 $as_echo "$ac_var='\''$ac_val'\''"
1791 done | sort
1792 echo
1795 if test -s confdefs.h; then
1796 cat <<\_ASBOX
1797 ## ----------- ##
1798 ## confdefs.h. ##
1799 ## ----------- ##
1800 _ASBOX
1801 echo
1802 cat confdefs.h
1803 echo
1805 test "$ac_signal" != 0 &&
1806 $as_echo "$as_me: caught signal $ac_signal"
1807 $as_echo "$as_me: exit $exit_status"
1808 } >&5
1809 rm -f core *.core core.conftest.* &&
1810 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1811 exit $exit_status
1813 for ac_signal in 1 2 13 15; do
1814 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1815 done
1816 ac_signal=0
1818 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1819 rm -f -r conftest* confdefs.h
1821 # Predefined preprocessor variables.
1823 cat >>confdefs.h <<_ACEOF
1824 #define PACKAGE_NAME "$PACKAGE_NAME"
1825 _ACEOF
1828 cat >>confdefs.h <<_ACEOF
1829 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1830 _ACEOF
1833 cat >>confdefs.h <<_ACEOF
1834 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1835 _ACEOF
1838 cat >>confdefs.h <<_ACEOF
1839 #define PACKAGE_STRING "$PACKAGE_STRING"
1840 _ACEOF
1843 cat >>confdefs.h <<_ACEOF
1844 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1845 _ACEOF
1848 # Let the site file select an alternate cache file if it wants to.
1849 # Prefer an explicitly selected file to automatically selected ones.
1850 ac_site_file1=NONE
1851 ac_site_file2=NONE
1852 if test -n "$CONFIG_SITE"; then
1853 ac_site_file1=$CONFIG_SITE
1854 elif test "x$prefix" != xNONE; then
1855 ac_site_file1=$prefix/share/config.site
1856 ac_site_file2=$prefix/etc/config.site
1857 else
1858 ac_site_file1=$ac_default_prefix/share/config.site
1859 ac_site_file2=$ac_default_prefix/etc/config.site
1861 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1863 test "x$ac_site_file" = xNONE && continue
1864 if test -r "$ac_site_file"; then
1865 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1866 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1867 sed 's/^/| /' "$ac_site_file" >&5
1868 . "$ac_site_file"
1870 done
1872 if test -r "$cache_file"; then
1873 # Some versions of bash will fail to source /dev/null (special
1874 # files actually), so we avoid doing that.
1875 if test -f "$cache_file"; then
1876 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1877 $as_echo "$as_me: loading cache $cache_file" >&6;}
1878 case $cache_file in
1879 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1880 *) . "./$cache_file";;
1881 esac
1883 else
1884 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1885 $as_echo "$as_me: creating cache $cache_file" >&6;}
1886 >$cache_file
1889 # Check that the precious variables saved in the cache have kept the same
1890 # value.
1891 ac_cache_corrupted=false
1892 for ac_var in $ac_precious_vars; do
1893 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1894 eval ac_new_set=\$ac_env_${ac_var}_set
1895 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1896 eval ac_new_val=\$ac_env_${ac_var}_value
1897 case $ac_old_set,$ac_new_set in
1898 set,)
1899 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1900 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1901 ac_cache_corrupted=: ;;
1902 ,set)
1903 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1904 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1905 ac_cache_corrupted=: ;;
1906 ,);;
1908 if test "x$ac_old_val" != "x$ac_new_val"; then
1909 # differences in whitespace do not lead to failure.
1910 ac_old_val_w=`echo x $ac_old_val`
1911 ac_new_val_w=`echo x $ac_new_val`
1912 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1913 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1914 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1915 ac_cache_corrupted=:
1916 else
1917 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1918 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1919 eval $ac_var=\$ac_old_val
1921 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1922 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1923 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1924 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1925 fi;;
1926 esac
1927 # Pass precious variables to config.status.
1928 if test "$ac_new_set" = set; then
1929 case $ac_new_val in
1930 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1931 *) ac_arg=$ac_var=$ac_new_val ;;
1932 esac
1933 case " $ac_configure_args " in
1934 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1935 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1936 esac
1938 done
1939 if $ac_cache_corrupted; then
1940 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1941 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1942 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1943 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1944 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1945 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1946 { (exit 1); exit 1; }; }
1973 ac_ext=c
1974 ac_cpp='$CPP $CPPFLAGS'
1975 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1976 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1977 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1981 ac_config_headers="$ac_config_headers config.h"
1983 ac_aux_dir=
1984 for ac_dir in scripts "$srcdir"/scripts; do
1985 if test -f "$ac_dir/install-sh"; then
1986 ac_aux_dir=$ac_dir
1987 ac_install_sh="$ac_aux_dir/install-sh -c"
1988 break
1989 elif test -f "$ac_dir/install.sh"; then
1990 ac_aux_dir=$ac_dir
1991 ac_install_sh="$ac_aux_dir/install.sh -c"
1992 break
1993 elif test -f "$ac_dir/shtool"; then
1994 ac_aux_dir=$ac_dir
1995 ac_install_sh="$ac_aux_dir/shtool install -c"
1996 break
1998 done
1999 if test -z "$ac_aux_dir"; then
2000 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in scripts \"$srcdir\"/scripts" >&5
2001 $as_echo "$as_me: error: cannot find install-sh or install.sh in scripts \"$srcdir\"/scripts" >&2;}
2002 { (exit 1); exit 1; }; }
2005 # These three variables are undocumented and unsupported,
2006 # and are intended to be withdrawn in a future Autoconf release.
2007 # They can cause serious problems if a builder's source tree is in a directory
2008 # whose full name contains unusual characters.
2009 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2010 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2011 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2015 # Make sure we can run config.sub.
2016 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2017 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2018 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2019 { (exit 1); exit 1; }; }
2021 { $as_echo "$as_me:$LINENO: checking build system type" >&5
2022 $as_echo_n "checking build system type... " >&6; }
2023 if test "${ac_cv_build+set}" = set; then
2024 $as_echo_n "(cached) " >&6
2025 else
2026 ac_build_alias=$build_alias
2027 test "x$ac_build_alias" = x &&
2028 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2029 test "x$ac_build_alias" = x &&
2030 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2031 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2032 { (exit 1); exit 1; }; }
2033 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2034 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2035 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2036 { (exit 1); exit 1; }; }
2039 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2040 $as_echo "$ac_cv_build" >&6; }
2041 case $ac_cv_build in
2042 *-*-*) ;;
2043 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2044 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
2045 { (exit 1); exit 1; }; };;
2046 esac
2047 build=$ac_cv_build
2048 ac_save_IFS=$IFS; IFS='-'
2049 set x $ac_cv_build
2050 shift
2051 build_cpu=$1
2052 build_vendor=$2
2053 shift; shift
2054 # Remember, the first character of IFS is used to create $*,
2055 # except with old shells:
2056 build_os=$*
2057 IFS=$ac_save_IFS
2058 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2061 { $as_echo "$as_me:$LINENO: checking host system type" >&5
2062 $as_echo_n "checking host system type... " >&6; }
2063 if test "${ac_cv_host+set}" = set; then
2064 $as_echo_n "(cached) " >&6
2065 else
2066 if test "x$host_alias" = x; then
2067 ac_cv_host=$ac_cv_build
2068 else
2069 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2070 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2071 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2072 { (exit 1); exit 1; }; }
2076 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2077 $as_echo "$ac_cv_host" >&6; }
2078 case $ac_cv_host in
2079 *-*-*) ;;
2080 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2081 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
2082 { (exit 1); exit 1; }; };;
2083 esac
2084 host=$ac_cv_host
2085 ac_save_IFS=$IFS; IFS='-'
2086 set x $ac_cv_host
2087 shift
2088 host_cpu=$1
2089 host_vendor=$2
2090 shift; shift
2091 # Remember, the first character of IFS is used to create $*,
2092 # except with old shells:
2093 host_os=$*
2094 IFS=$ac_save_IFS
2095 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2099 ac_ext=c
2100 ac_cpp='$CPP $CPPFLAGS'
2101 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2102 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2103 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2104 if test -n "$ac_tool_prefix"; then
2105 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2106 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2107 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2108 $as_echo_n "checking for $ac_word... " >&6; }
2109 if test "${ac_cv_prog_CC+set}" = set; then
2110 $as_echo_n "(cached) " >&6
2111 else
2112 if test -n "$CC"; then
2113 ac_cv_prog_CC="$CC" # Let the user override the test.
2114 else
2115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2116 for as_dir in $PATH
2118 IFS=$as_save_IFS
2119 test -z "$as_dir" && as_dir=.
2120 for ac_exec_ext in '' $ac_executable_extensions; do
2121 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2122 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2123 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2124 break 2
2126 done
2127 done
2128 IFS=$as_save_IFS
2132 CC=$ac_cv_prog_CC
2133 if test -n "$CC"; then
2134 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2135 $as_echo "$CC" >&6; }
2136 else
2137 { $as_echo "$as_me:$LINENO: result: no" >&5
2138 $as_echo "no" >&6; }
2143 if test -z "$ac_cv_prog_CC"; then
2144 ac_ct_CC=$CC
2145 # Extract the first word of "gcc", so it can be a program name with args.
2146 set dummy gcc; ac_word=$2
2147 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2148 $as_echo_n "checking for $ac_word... " >&6; }
2149 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2150 $as_echo_n "(cached) " >&6
2151 else
2152 if test -n "$ac_ct_CC"; then
2153 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2154 else
2155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2156 for as_dir in $PATH
2158 IFS=$as_save_IFS
2159 test -z "$as_dir" && as_dir=.
2160 for ac_exec_ext in '' $ac_executable_extensions; do
2161 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2162 ac_cv_prog_ac_ct_CC="gcc"
2163 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2164 break 2
2166 done
2167 done
2168 IFS=$as_save_IFS
2172 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2173 if test -n "$ac_ct_CC"; then
2174 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2175 $as_echo "$ac_ct_CC" >&6; }
2176 else
2177 { $as_echo "$as_me:$LINENO: result: no" >&5
2178 $as_echo "no" >&6; }
2181 if test "x$ac_ct_CC" = x; then
2182 CC=""
2183 else
2184 case $cross_compiling:$ac_tool_warned in
2185 yes:)
2186 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2187 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2188 ac_tool_warned=yes ;;
2189 esac
2190 CC=$ac_ct_CC
2192 else
2193 CC="$ac_cv_prog_CC"
2196 if test -z "$CC"; then
2197 if test -n "$ac_tool_prefix"; then
2198 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2199 set dummy ${ac_tool_prefix}cc; ac_word=$2
2200 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2201 $as_echo_n "checking for $ac_word... " >&6; }
2202 if test "${ac_cv_prog_CC+set}" = set; then
2203 $as_echo_n "(cached) " >&6
2204 else
2205 if test -n "$CC"; then
2206 ac_cv_prog_CC="$CC" # Let the user override the test.
2207 else
2208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2209 for as_dir in $PATH
2211 IFS=$as_save_IFS
2212 test -z "$as_dir" && as_dir=.
2213 for ac_exec_ext in '' $ac_executable_extensions; do
2214 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2215 ac_cv_prog_CC="${ac_tool_prefix}cc"
2216 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2217 break 2
2219 done
2220 done
2221 IFS=$as_save_IFS
2225 CC=$ac_cv_prog_CC
2226 if test -n "$CC"; then
2227 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2228 $as_echo "$CC" >&6; }
2229 else
2230 { $as_echo "$as_me:$LINENO: result: no" >&5
2231 $as_echo "no" >&6; }
2237 if test -z "$CC"; then
2238 # Extract the first word of "cc", so it can be a program name with args.
2239 set dummy cc; ac_word=$2
2240 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2241 $as_echo_n "checking for $ac_word... " >&6; }
2242 if test "${ac_cv_prog_CC+set}" = set; then
2243 $as_echo_n "(cached) " >&6
2244 else
2245 if test -n "$CC"; then
2246 ac_cv_prog_CC="$CC" # Let the user override the test.
2247 else
2248 ac_prog_rejected=no
2249 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2250 for as_dir in $PATH
2252 IFS=$as_save_IFS
2253 test -z "$as_dir" && as_dir=.
2254 for ac_exec_ext in '' $ac_executable_extensions; do
2255 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2256 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2257 ac_prog_rejected=yes
2258 continue
2260 ac_cv_prog_CC="cc"
2261 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2262 break 2
2264 done
2265 done
2266 IFS=$as_save_IFS
2268 if test $ac_prog_rejected = yes; then
2269 # We found a bogon in the path, so make sure we never use it.
2270 set dummy $ac_cv_prog_CC
2271 shift
2272 if test $# != 0; then
2273 # We chose a different compiler from the bogus one.
2274 # However, it has the same basename, so the bogon will be chosen
2275 # first if we set CC to just the basename; use the full file name.
2276 shift
2277 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2282 CC=$ac_cv_prog_CC
2283 if test -n "$CC"; then
2284 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2285 $as_echo "$CC" >&6; }
2286 else
2287 { $as_echo "$as_me:$LINENO: result: no" >&5
2288 $as_echo "no" >&6; }
2293 if test -z "$CC"; then
2294 if test -n "$ac_tool_prefix"; then
2295 for ac_prog in cl.exe
2297 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2298 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2299 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2300 $as_echo_n "checking for $ac_word... " >&6; }
2301 if test "${ac_cv_prog_CC+set}" = set; then
2302 $as_echo_n "(cached) " >&6
2303 else
2304 if test -n "$CC"; then
2305 ac_cv_prog_CC="$CC" # Let the user override the test.
2306 else
2307 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2308 for as_dir in $PATH
2310 IFS=$as_save_IFS
2311 test -z "$as_dir" && as_dir=.
2312 for ac_exec_ext in '' $ac_executable_extensions; do
2313 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2314 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2315 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2316 break 2
2318 done
2319 done
2320 IFS=$as_save_IFS
2324 CC=$ac_cv_prog_CC
2325 if test -n "$CC"; then
2326 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2327 $as_echo "$CC" >&6; }
2328 else
2329 { $as_echo "$as_me:$LINENO: result: no" >&5
2330 $as_echo "no" >&6; }
2334 test -n "$CC" && break
2335 done
2337 if test -z "$CC"; then
2338 ac_ct_CC=$CC
2339 for ac_prog in cl.exe
2341 # Extract the first word of "$ac_prog", so it can be a program name with args.
2342 set dummy $ac_prog; ac_word=$2
2343 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2344 $as_echo_n "checking for $ac_word... " >&6; }
2345 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2346 $as_echo_n "(cached) " >&6
2347 else
2348 if test -n "$ac_ct_CC"; then
2349 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2350 else
2351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2352 for as_dir in $PATH
2354 IFS=$as_save_IFS
2355 test -z "$as_dir" && as_dir=.
2356 for ac_exec_ext in '' $ac_executable_extensions; do
2357 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2358 ac_cv_prog_ac_ct_CC="$ac_prog"
2359 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2360 break 2
2362 done
2363 done
2364 IFS=$as_save_IFS
2368 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2369 if test -n "$ac_ct_CC"; then
2370 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2371 $as_echo "$ac_ct_CC" >&6; }
2372 else
2373 { $as_echo "$as_me:$LINENO: result: no" >&5
2374 $as_echo "no" >&6; }
2378 test -n "$ac_ct_CC" && break
2379 done
2381 if test "x$ac_ct_CC" = x; then
2382 CC=""
2383 else
2384 case $cross_compiling:$ac_tool_warned in
2385 yes:)
2386 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2387 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2388 ac_tool_warned=yes ;;
2389 esac
2390 CC=$ac_ct_CC
2397 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2398 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2399 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2400 See \`config.log' for more details." >&5
2401 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
2402 See \`config.log' for more details." >&2;}
2403 { (exit 1); exit 1; }; }; }
2405 # Provide some information about the compiler.
2406 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2407 set X $ac_compile
2408 ac_compiler=$2
2409 { (ac_try="$ac_compiler --version >&5"
2410 case "(($ac_try" in
2411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2412 *) ac_try_echo=$ac_try;;
2413 esac
2414 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2415 $as_echo "$ac_try_echo") >&5
2416 (eval "$ac_compiler --version >&5") 2>&5
2417 ac_status=$?
2418 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2419 (exit $ac_status); }
2420 { (ac_try="$ac_compiler -v >&5"
2421 case "(($ac_try" in
2422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2423 *) ac_try_echo=$ac_try;;
2424 esac
2425 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2426 $as_echo "$ac_try_echo") >&5
2427 (eval "$ac_compiler -v >&5") 2>&5
2428 ac_status=$?
2429 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2430 (exit $ac_status); }
2431 { (ac_try="$ac_compiler -V >&5"
2432 case "(($ac_try" in
2433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2434 *) ac_try_echo=$ac_try;;
2435 esac
2436 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2437 $as_echo "$ac_try_echo") >&5
2438 (eval "$ac_compiler -V >&5") 2>&5
2439 ac_status=$?
2440 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2441 (exit $ac_status); }
2443 EXEEXT=
2444 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
2445 $as_echo_n "checking for suffix of object files... " >&6; }
2446 if test "${ac_cv_objext+set}" = set; then
2447 $as_echo_n "(cached) " >&6
2448 else
2449 cat >conftest.$ac_ext <<_ACEOF
2450 /* confdefs.h. */
2451 _ACEOF
2452 cat confdefs.h >>conftest.$ac_ext
2453 cat >>conftest.$ac_ext <<_ACEOF
2454 /* end confdefs.h. */
2457 main ()
2461 return 0;
2463 _ACEOF
2464 rm -f conftest.o conftest.obj
2465 if { (ac_try="$ac_compile"
2466 case "(($ac_try" in
2467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2468 *) ac_try_echo=$ac_try;;
2469 esac
2470 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2471 $as_echo "$ac_try_echo") >&5
2472 (eval "$ac_compile") 2>&5
2473 ac_status=$?
2474 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2475 (exit $ac_status); }; then
2476 for ac_file in conftest.o conftest.obj conftest.*; do
2477 test -f "$ac_file" || continue;
2478 case $ac_file in
2479 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2480 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2481 break;;
2482 esac
2483 done
2484 else
2485 $as_echo "$as_me: failed program was:" >&5
2486 sed 's/^/| /' conftest.$ac_ext >&5
2488 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2489 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2490 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2491 See \`config.log' for more details." >&5
2492 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
2493 See \`config.log' for more details." >&2;}
2494 { (exit 1); exit 1; }; }; }
2497 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2499 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2500 $as_echo "$ac_cv_objext" >&6; }
2501 OBJEXT=$ac_cv_objext
2502 ac_objext=$OBJEXT
2503 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2504 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2505 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2506 $as_echo_n "(cached) " >&6
2507 else
2508 cat >conftest.$ac_ext <<_ACEOF
2509 /* confdefs.h. */
2510 _ACEOF
2511 cat confdefs.h >>conftest.$ac_ext
2512 cat >>conftest.$ac_ext <<_ACEOF
2513 /* end confdefs.h. */
2516 main ()
2518 #ifndef __GNUC__
2519 choke me
2520 #endif
2523 return 0;
2525 _ACEOF
2526 rm -f conftest.$ac_objext
2527 if { (ac_try="$ac_compile"
2528 case "(($ac_try" in
2529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2530 *) ac_try_echo=$ac_try;;
2531 esac
2532 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2533 $as_echo "$ac_try_echo") >&5
2534 (eval "$ac_compile") 2>conftest.er1
2535 ac_status=$?
2536 grep -v '^ *+' conftest.er1 >conftest.err
2537 rm -f conftest.er1
2538 cat conftest.err >&5
2539 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2540 (exit $ac_status); } && {
2541 test -z "$ac_c_werror_flag" ||
2542 test ! -s conftest.err
2543 } && test -s conftest.$ac_objext; then
2544 ac_compiler_gnu=yes
2545 else
2546 $as_echo "$as_me: failed program was:" >&5
2547 sed 's/^/| /' conftest.$ac_ext >&5
2549 ac_compiler_gnu=no
2552 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2553 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2556 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2557 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
2558 if test $ac_compiler_gnu = yes; then
2559 GCC=yes
2560 else
2561 GCC=
2563 ac_test_CFLAGS=${CFLAGS+set}
2564 ac_save_CFLAGS=$CFLAGS
2565 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2566 $as_echo_n "checking whether $CC accepts -g... " >&6; }
2567 if test "${ac_cv_prog_cc_g+set}" = set; then
2568 $as_echo_n "(cached) " >&6
2569 else
2570 ac_save_c_werror_flag=$ac_c_werror_flag
2571 ac_c_werror_flag=yes
2572 ac_cv_prog_cc_g=no
2573 CFLAGS="-g"
2574 cat >conftest.$ac_ext <<_ACEOF
2575 /* confdefs.h. */
2576 _ACEOF
2577 cat confdefs.h >>conftest.$ac_ext
2578 cat >>conftest.$ac_ext <<_ACEOF
2579 /* end confdefs.h. */
2582 main ()
2586 return 0;
2588 _ACEOF
2589 rm -f conftest.$ac_objext
2590 if { (ac_try="$ac_compile"
2591 case "(($ac_try" in
2592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2593 *) ac_try_echo=$ac_try;;
2594 esac
2595 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2596 $as_echo "$ac_try_echo") >&5
2597 (eval "$ac_compile") 2>conftest.er1
2598 ac_status=$?
2599 grep -v '^ *+' conftest.er1 >conftest.err
2600 rm -f conftest.er1
2601 cat conftest.err >&5
2602 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2603 (exit $ac_status); } && {
2604 test -z "$ac_c_werror_flag" ||
2605 test ! -s conftest.err
2606 } && test -s conftest.$ac_objext; then
2607 ac_cv_prog_cc_g=yes
2608 else
2609 $as_echo "$as_me: failed program was:" >&5
2610 sed 's/^/| /' conftest.$ac_ext >&5
2612 CFLAGS=""
2613 cat >conftest.$ac_ext <<_ACEOF
2614 /* confdefs.h. */
2615 _ACEOF
2616 cat confdefs.h >>conftest.$ac_ext
2617 cat >>conftest.$ac_ext <<_ACEOF
2618 /* end confdefs.h. */
2621 main ()
2625 return 0;
2627 _ACEOF
2628 rm -f conftest.$ac_objext
2629 if { (ac_try="$ac_compile"
2630 case "(($ac_try" in
2631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2632 *) ac_try_echo=$ac_try;;
2633 esac
2634 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2635 $as_echo "$ac_try_echo") >&5
2636 (eval "$ac_compile") 2>conftest.er1
2637 ac_status=$?
2638 grep -v '^ *+' conftest.er1 >conftest.err
2639 rm -f conftest.er1
2640 cat conftest.err >&5
2641 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2642 (exit $ac_status); } && {
2643 test -z "$ac_c_werror_flag" ||
2644 test ! -s conftest.err
2645 } && test -s conftest.$ac_objext; then
2647 else
2648 $as_echo "$as_me: failed program was:" >&5
2649 sed 's/^/| /' conftest.$ac_ext >&5
2651 ac_c_werror_flag=$ac_save_c_werror_flag
2652 CFLAGS="-g"
2653 cat >conftest.$ac_ext <<_ACEOF
2654 /* confdefs.h. */
2655 _ACEOF
2656 cat confdefs.h >>conftest.$ac_ext
2657 cat >>conftest.$ac_ext <<_ACEOF
2658 /* end confdefs.h. */
2661 main ()
2665 return 0;
2667 _ACEOF
2668 rm -f conftest.$ac_objext
2669 if { (ac_try="$ac_compile"
2670 case "(($ac_try" in
2671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2672 *) ac_try_echo=$ac_try;;
2673 esac
2674 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2675 $as_echo "$ac_try_echo") >&5
2676 (eval "$ac_compile") 2>conftest.er1
2677 ac_status=$?
2678 grep -v '^ *+' conftest.er1 >conftest.err
2679 rm -f conftest.er1
2680 cat conftest.err >&5
2681 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2682 (exit $ac_status); } && {
2683 test -z "$ac_c_werror_flag" ||
2684 test ! -s conftest.err
2685 } && test -s conftest.$ac_objext; then
2686 ac_cv_prog_cc_g=yes
2687 else
2688 $as_echo "$as_me: failed program was:" >&5
2689 sed 's/^/| /' conftest.$ac_ext >&5
2694 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2697 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2700 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2701 ac_c_werror_flag=$ac_save_c_werror_flag
2703 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2704 $as_echo "$ac_cv_prog_cc_g" >&6; }
2705 if test "$ac_test_CFLAGS" = set; then
2706 CFLAGS=$ac_save_CFLAGS
2707 elif test $ac_cv_prog_cc_g = yes; then
2708 if test "$GCC" = yes; then
2709 CFLAGS="-g -O2"
2710 else
2711 CFLAGS="-g"
2713 else
2714 if test "$GCC" = yes; then
2715 CFLAGS="-O2"
2716 else
2717 CFLAGS=
2720 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2721 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
2722 if test "${ac_cv_prog_cc_c89+set}" = set; then
2723 $as_echo_n "(cached) " >&6
2724 else
2725 ac_cv_prog_cc_c89=no
2726 ac_save_CC=$CC
2727 cat >conftest.$ac_ext <<_ACEOF
2728 /* confdefs.h. */
2729 _ACEOF
2730 cat confdefs.h >>conftest.$ac_ext
2731 cat >>conftest.$ac_ext <<_ACEOF
2732 /* end confdefs.h. */
2733 #include <stdarg.h>
2734 #include <stdio.h>
2735 #include <sys/types.h>
2736 #include <sys/stat.h>
2737 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2738 struct buf { int x; };
2739 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2740 static char *e (p, i)
2741 char **p;
2742 int i;
2744 return p[i];
2746 static char *f (char * (*g) (char **, int), char **p, ...)
2748 char *s;
2749 va_list v;
2750 va_start (v,p);
2751 s = g (p, va_arg (v,int));
2752 va_end (v);
2753 return s;
2756 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2757 function prototypes and stuff, but not '\xHH' hex character constants.
2758 These don't provoke an error unfortunately, instead are silently treated
2759 as 'x'. The following induces an error, until -std is added to get
2760 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2761 array size at least. It's necessary to write '\x00'==0 to get something
2762 that's true only with -std. */
2763 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2765 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2766 inside strings and character constants. */
2767 #define FOO(x) 'x'
2768 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2770 int test (int i, double x);
2771 struct s1 {int (*f) (int a);};
2772 struct s2 {int (*f) (double a);};
2773 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2774 int argc;
2775 char **argv;
2777 main ()
2779 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2781 return 0;
2783 _ACEOF
2784 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2785 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2787 CC="$ac_save_CC $ac_arg"
2788 rm -f conftest.$ac_objext
2789 if { (ac_try="$ac_compile"
2790 case "(($ac_try" in
2791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2792 *) ac_try_echo=$ac_try;;
2793 esac
2794 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2795 $as_echo "$ac_try_echo") >&5
2796 (eval "$ac_compile") 2>conftest.er1
2797 ac_status=$?
2798 grep -v '^ *+' conftest.er1 >conftest.err
2799 rm -f conftest.er1
2800 cat conftest.err >&5
2801 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2802 (exit $ac_status); } && {
2803 test -z "$ac_c_werror_flag" ||
2804 test ! -s conftest.err
2805 } && test -s conftest.$ac_objext; then
2806 ac_cv_prog_cc_c89=$ac_arg
2807 else
2808 $as_echo "$as_me: failed program was:" >&5
2809 sed 's/^/| /' conftest.$ac_ext >&5
2814 rm -f core conftest.err conftest.$ac_objext
2815 test "x$ac_cv_prog_cc_c89" != "xno" && break
2816 done
2817 rm -f conftest.$ac_ext
2818 CC=$ac_save_CC
2821 # AC_CACHE_VAL
2822 case "x$ac_cv_prog_cc_c89" in
2824 { $as_echo "$as_me:$LINENO: result: none needed" >&5
2825 $as_echo "none needed" >&6; } ;;
2826 xno)
2827 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
2828 $as_echo "unsupported" >&6; } ;;
2830 CC="$CC $ac_cv_prog_cc_c89"
2831 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2832 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
2833 esac
2836 ac_ext=c
2837 ac_cpp='$CPP $CPPFLAGS'
2838 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2839 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2840 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2842 if test $host != $build; then
2843 for ac_prog in gcc cc
2845 # Extract the first word of "$ac_prog", so it can be a program name with args.
2846 set dummy $ac_prog; ac_word=$2
2847 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2848 $as_echo_n "checking for $ac_word... " >&6; }
2849 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
2850 $as_echo_n "(cached) " >&6
2851 else
2852 if test -n "$BUILD_CC"; then
2853 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
2854 else
2855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2856 for as_dir in $PATH
2858 IFS=$as_save_IFS
2859 test -z "$as_dir" && as_dir=.
2860 for ac_exec_ext in '' $ac_executable_extensions; do
2861 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2862 ac_cv_prog_BUILD_CC="$ac_prog"
2863 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2864 break 2
2866 done
2867 done
2868 IFS=$as_save_IFS
2872 BUILD_CC=$ac_cv_prog_BUILD_CC
2873 if test -n "$BUILD_CC"; then
2874 { $as_echo "$as_me:$LINENO: result: $BUILD_CC" >&5
2875 $as_echo "$BUILD_CC" >&6; }
2876 else
2877 { $as_echo "$as_me:$LINENO: result: no" >&5
2878 $as_echo "no" >&6; }
2882 test -n "$BUILD_CC" && break
2883 done
2887 ac_ext=c
2888 ac_cpp='$CPP $CPPFLAGS'
2889 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2890 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2891 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2892 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2893 $as_echo_n "checking how to run the C preprocessor... " >&6; }
2894 # On Suns, sometimes $CPP names a directory.
2895 if test -n "$CPP" && test -d "$CPP"; then
2896 CPP=
2898 if test -z "$CPP"; then
2899 if test "${ac_cv_prog_CPP+set}" = set; then
2900 $as_echo_n "(cached) " >&6
2901 else
2902 # Double quotes because CPP needs to be expanded
2903 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2905 ac_preproc_ok=false
2906 for ac_c_preproc_warn_flag in '' yes
2908 # Use a header file that comes with gcc, so configuring glibc
2909 # with a fresh cross-compiler works.
2910 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2911 # <limits.h> exists even on freestanding compilers.
2912 # On the NeXT, cc -E runs the code through the compiler's parser,
2913 # not just through cpp. "Syntax error" is here to catch this case.
2914 cat >conftest.$ac_ext <<_ACEOF
2915 /* confdefs.h. */
2916 _ACEOF
2917 cat confdefs.h >>conftest.$ac_ext
2918 cat >>conftest.$ac_ext <<_ACEOF
2919 /* end confdefs.h. */
2920 #ifdef __STDC__
2921 # include <limits.h>
2922 #else
2923 # include <assert.h>
2924 #endif
2925 Syntax error
2926 _ACEOF
2927 if { (ac_try="$ac_cpp conftest.$ac_ext"
2928 case "(($ac_try" in
2929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2930 *) ac_try_echo=$ac_try;;
2931 esac
2932 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2933 $as_echo "$ac_try_echo") >&5
2934 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2935 ac_status=$?
2936 grep -v '^ *+' conftest.er1 >conftest.err
2937 rm -f conftest.er1
2938 cat conftest.err >&5
2939 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2940 (exit $ac_status); } >/dev/null && {
2941 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2942 test ! -s conftest.err
2943 }; then
2945 else
2946 $as_echo "$as_me: failed program was:" >&5
2947 sed 's/^/| /' conftest.$ac_ext >&5
2949 # Broken: fails on valid input.
2950 continue
2953 rm -f conftest.err conftest.$ac_ext
2955 # OK, works on sane cases. Now check whether nonexistent headers
2956 # can be detected and how.
2957 cat >conftest.$ac_ext <<_ACEOF
2958 /* confdefs.h. */
2959 _ACEOF
2960 cat confdefs.h >>conftest.$ac_ext
2961 cat >>conftest.$ac_ext <<_ACEOF
2962 /* end confdefs.h. */
2963 #include <ac_nonexistent.h>
2964 _ACEOF
2965 if { (ac_try="$ac_cpp conftest.$ac_ext"
2966 case "(($ac_try" in
2967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2968 *) ac_try_echo=$ac_try;;
2969 esac
2970 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2971 $as_echo "$ac_try_echo") >&5
2972 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2973 ac_status=$?
2974 grep -v '^ *+' conftest.er1 >conftest.err
2975 rm -f conftest.er1
2976 cat conftest.err >&5
2977 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2978 (exit $ac_status); } >/dev/null && {
2979 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2980 test ! -s conftest.err
2981 }; then
2982 # Broken: success on invalid input.
2983 continue
2984 else
2985 $as_echo "$as_me: failed program was:" >&5
2986 sed 's/^/| /' conftest.$ac_ext >&5
2988 # Passes both tests.
2989 ac_preproc_ok=:
2990 break
2993 rm -f conftest.err conftest.$ac_ext
2995 done
2996 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2997 rm -f conftest.err conftest.$ac_ext
2998 if $ac_preproc_ok; then
2999 break
3002 done
3003 ac_cv_prog_CPP=$CPP
3006 CPP=$ac_cv_prog_CPP
3007 else
3008 ac_cv_prog_CPP=$CPP
3010 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
3011 $as_echo "$CPP" >&6; }
3012 ac_preproc_ok=false
3013 for ac_c_preproc_warn_flag in '' yes
3015 # Use a header file that comes with gcc, so configuring glibc
3016 # with a fresh cross-compiler works.
3017 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3018 # <limits.h> exists even on freestanding compilers.
3019 # On the NeXT, cc -E runs the code through the compiler's parser,
3020 # not just through cpp. "Syntax error" is here to catch this case.
3021 cat >conftest.$ac_ext <<_ACEOF
3022 /* confdefs.h. */
3023 _ACEOF
3024 cat confdefs.h >>conftest.$ac_ext
3025 cat >>conftest.$ac_ext <<_ACEOF
3026 /* end confdefs.h. */
3027 #ifdef __STDC__
3028 # include <limits.h>
3029 #else
3030 # include <assert.h>
3031 #endif
3032 Syntax error
3033 _ACEOF
3034 if { (ac_try="$ac_cpp conftest.$ac_ext"
3035 case "(($ac_try" in
3036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3037 *) ac_try_echo=$ac_try;;
3038 esac
3039 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3040 $as_echo "$ac_try_echo") >&5
3041 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3042 ac_status=$?
3043 grep -v '^ *+' conftest.er1 >conftest.err
3044 rm -f conftest.er1
3045 cat conftest.err >&5
3046 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3047 (exit $ac_status); } >/dev/null && {
3048 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3049 test ! -s conftest.err
3050 }; then
3052 else
3053 $as_echo "$as_me: failed program was:" >&5
3054 sed 's/^/| /' conftest.$ac_ext >&5
3056 # Broken: fails on valid input.
3057 continue
3060 rm -f conftest.err conftest.$ac_ext
3062 # OK, works on sane cases. Now check whether nonexistent headers
3063 # can be detected and how.
3064 cat >conftest.$ac_ext <<_ACEOF
3065 /* confdefs.h. */
3066 _ACEOF
3067 cat confdefs.h >>conftest.$ac_ext
3068 cat >>conftest.$ac_ext <<_ACEOF
3069 /* end confdefs.h. */
3070 #include <ac_nonexistent.h>
3071 _ACEOF
3072 if { (ac_try="$ac_cpp conftest.$ac_ext"
3073 case "(($ac_try" in
3074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3075 *) ac_try_echo=$ac_try;;
3076 esac
3077 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3078 $as_echo "$ac_try_echo") >&5
3079 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3080 ac_status=$?
3081 grep -v '^ *+' conftest.er1 >conftest.err
3082 rm -f conftest.er1
3083 cat conftest.err >&5
3084 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3085 (exit $ac_status); } >/dev/null && {
3086 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3087 test ! -s conftest.err
3088 }; then
3089 # Broken: success on invalid input.
3090 continue
3091 else
3092 $as_echo "$as_me: failed program was:" >&5
3093 sed 's/^/| /' conftest.$ac_ext >&5
3095 # Passes both tests.
3096 ac_preproc_ok=:
3097 break
3100 rm -f conftest.err conftest.$ac_ext
3102 done
3103 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3104 rm -f conftest.err conftest.$ac_ext
3105 if $ac_preproc_ok; then
3107 else
3108 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3109 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3110 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3111 See \`config.log' for more details." >&5
3112 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3113 See \`config.log' for more details." >&2;}
3114 { (exit 1); exit 1; }; }; }
3117 ac_ext=c
3118 ac_cpp='$CPP $CPPFLAGS'
3119 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3120 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3121 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3123 # We need the C++ compiler only for testing.
3124 ac_ext=cpp
3125 ac_cpp='$CXXCPP $CPPFLAGS'
3126 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3127 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3128 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3129 if test -z "$CXX"; then
3130 if test -n "$CCC"; then
3131 CXX=$CCC
3132 else
3133 if test -n "$ac_tool_prefix"; then
3134 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3136 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3137 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3138 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3139 $as_echo_n "checking for $ac_word... " >&6; }
3140 if test "${ac_cv_prog_CXX+set}" = set; then
3141 $as_echo_n "(cached) " >&6
3142 else
3143 if test -n "$CXX"; then
3144 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3145 else
3146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3147 for as_dir in $PATH
3149 IFS=$as_save_IFS
3150 test -z "$as_dir" && as_dir=.
3151 for ac_exec_ext in '' $ac_executable_extensions; do
3152 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3153 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3154 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3155 break 2
3157 done
3158 done
3159 IFS=$as_save_IFS
3163 CXX=$ac_cv_prog_CXX
3164 if test -n "$CXX"; then
3165 { $as_echo "$as_me:$LINENO: result: $CXX" >&5
3166 $as_echo "$CXX" >&6; }
3167 else
3168 { $as_echo "$as_me:$LINENO: result: no" >&5
3169 $as_echo "no" >&6; }
3173 test -n "$CXX" && break
3174 done
3176 if test -z "$CXX"; then
3177 ac_ct_CXX=$CXX
3178 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3180 # Extract the first word of "$ac_prog", so it can be a program name with args.
3181 set dummy $ac_prog; ac_word=$2
3182 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3183 $as_echo_n "checking for $ac_word... " >&6; }
3184 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3185 $as_echo_n "(cached) " >&6
3186 else
3187 if test -n "$ac_ct_CXX"; then
3188 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3189 else
3190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3191 for as_dir in $PATH
3193 IFS=$as_save_IFS
3194 test -z "$as_dir" && as_dir=.
3195 for ac_exec_ext in '' $ac_executable_extensions; do
3196 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3197 ac_cv_prog_ac_ct_CXX="$ac_prog"
3198 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3199 break 2
3201 done
3202 done
3203 IFS=$as_save_IFS
3207 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3208 if test -n "$ac_ct_CXX"; then
3209 { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3210 $as_echo "$ac_ct_CXX" >&6; }
3211 else
3212 { $as_echo "$as_me:$LINENO: result: no" >&5
3213 $as_echo "no" >&6; }
3217 test -n "$ac_ct_CXX" && break
3218 done
3220 if test "x$ac_ct_CXX" = x; then
3221 CXX="g++"
3222 else
3223 case $cross_compiling:$ac_tool_warned in
3224 yes:)
3225 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3226 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3227 ac_tool_warned=yes ;;
3228 esac
3229 CXX=$ac_ct_CXX
3235 # Provide some information about the compiler.
3236 $as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
3237 set X $ac_compile
3238 ac_compiler=$2
3239 { (ac_try="$ac_compiler --version >&5"
3240 case "(($ac_try" in
3241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3242 *) ac_try_echo=$ac_try;;
3243 esac
3244 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3245 $as_echo "$ac_try_echo") >&5
3246 (eval "$ac_compiler --version >&5") 2>&5
3247 ac_status=$?
3248 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3249 (exit $ac_status); }
3250 { (ac_try="$ac_compiler -v >&5"
3251 case "(($ac_try" in
3252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3253 *) ac_try_echo=$ac_try;;
3254 esac
3255 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3256 $as_echo "$ac_try_echo") >&5
3257 (eval "$ac_compiler -v >&5") 2>&5
3258 ac_status=$?
3259 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3260 (exit $ac_status); }
3261 { (ac_try="$ac_compiler -V >&5"
3262 case "(($ac_try" in
3263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3264 *) ac_try_echo=$ac_try;;
3265 esac
3266 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3267 $as_echo "$ac_try_echo") >&5
3268 (eval "$ac_compiler -V >&5") 2>&5
3269 ac_status=$?
3270 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3271 (exit $ac_status); }
3273 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3274 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3275 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3276 $as_echo_n "(cached) " >&6
3277 else
3278 cat >conftest.$ac_ext <<_ACEOF
3279 /* confdefs.h. */
3280 _ACEOF
3281 cat confdefs.h >>conftest.$ac_ext
3282 cat >>conftest.$ac_ext <<_ACEOF
3283 /* end confdefs.h. */
3286 main ()
3288 #ifndef __GNUC__
3289 choke me
3290 #endif
3293 return 0;
3295 _ACEOF
3296 rm -f conftest.$ac_objext
3297 if { (ac_try="$ac_compile"
3298 case "(($ac_try" in
3299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3300 *) ac_try_echo=$ac_try;;
3301 esac
3302 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3303 $as_echo "$ac_try_echo") >&5
3304 (eval "$ac_compile") 2>conftest.er1
3305 ac_status=$?
3306 grep -v '^ *+' conftest.er1 >conftest.err
3307 rm -f conftest.er1
3308 cat conftest.err >&5
3309 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3310 (exit $ac_status); } && {
3311 test -z "$ac_cxx_werror_flag" ||
3312 test ! -s conftest.err
3313 } && test -s conftest.$ac_objext; then
3314 ac_compiler_gnu=yes
3315 else
3316 $as_echo "$as_me: failed program was:" >&5
3317 sed 's/^/| /' conftest.$ac_ext >&5
3319 ac_compiler_gnu=no
3322 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3323 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3326 { $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3327 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3328 if test $ac_compiler_gnu = yes; then
3329 GXX=yes
3330 else
3331 GXX=
3333 ac_test_CXXFLAGS=${CXXFLAGS+set}
3334 ac_save_CXXFLAGS=$CXXFLAGS
3335 { $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3336 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3337 if test "${ac_cv_prog_cxx_g+set}" = set; then
3338 $as_echo_n "(cached) " >&6
3339 else
3340 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3341 ac_cxx_werror_flag=yes
3342 ac_cv_prog_cxx_g=no
3343 CXXFLAGS="-g"
3344 cat >conftest.$ac_ext <<_ACEOF
3345 /* confdefs.h. */
3346 _ACEOF
3347 cat confdefs.h >>conftest.$ac_ext
3348 cat >>conftest.$ac_ext <<_ACEOF
3349 /* end confdefs.h. */
3352 main ()
3356 return 0;
3358 _ACEOF
3359 rm -f conftest.$ac_objext
3360 if { (ac_try="$ac_compile"
3361 case "(($ac_try" in
3362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3363 *) ac_try_echo=$ac_try;;
3364 esac
3365 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3366 $as_echo "$ac_try_echo") >&5
3367 (eval "$ac_compile") 2>conftest.er1
3368 ac_status=$?
3369 grep -v '^ *+' conftest.er1 >conftest.err
3370 rm -f conftest.er1
3371 cat conftest.err >&5
3372 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3373 (exit $ac_status); } && {
3374 test -z "$ac_cxx_werror_flag" ||
3375 test ! -s conftest.err
3376 } && test -s conftest.$ac_objext; then
3377 ac_cv_prog_cxx_g=yes
3378 else
3379 $as_echo "$as_me: failed program was:" >&5
3380 sed 's/^/| /' conftest.$ac_ext >&5
3382 CXXFLAGS=""
3383 cat >conftest.$ac_ext <<_ACEOF
3384 /* confdefs.h. */
3385 _ACEOF
3386 cat confdefs.h >>conftest.$ac_ext
3387 cat >>conftest.$ac_ext <<_ACEOF
3388 /* end confdefs.h. */
3391 main ()
3395 return 0;
3397 _ACEOF
3398 rm -f conftest.$ac_objext
3399 if { (ac_try="$ac_compile"
3400 case "(($ac_try" in
3401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3402 *) ac_try_echo=$ac_try;;
3403 esac
3404 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3405 $as_echo "$ac_try_echo") >&5
3406 (eval "$ac_compile") 2>conftest.er1
3407 ac_status=$?
3408 grep -v '^ *+' conftest.er1 >conftest.err
3409 rm -f conftest.er1
3410 cat conftest.err >&5
3411 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3412 (exit $ac_status); } && {
3413 test -z "$ac_cxx_werror_flag" ||
3414 test ! -s conftest.err
3415 } && test -s conftest.$ac_objext; then
3417 else
3418 $as_echo "$as_me: failed program was:" >&5
3419 sed 's/^/| /' conftest.$ac_ext >&5
3421 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3422 CXXFLAGS="-g"
3423 cat >conftest.$ac_ext <<_ACEOF
3424 /* confdefs.h. */
3425 _ACEOF
3426 cat confdefs.h >>conftest.$ac_ext
3427 cat >>conftest.$ac_ext <<_ACEOF
3428 /* end confdefs.h. */
3431 main ()
3435 return 0;
3437 _ACEOF
3438 rm -f conftest.$ac_objext
3439 if { (ac_try="$ac_compile"
3440 case "(($ac_try" in
3441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3442 *) ac_try_echo=$ac_try;;
3443 esac
3444 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3445 $as_echo "$ac_try_echo") >&5
3446 (eval "$ac_compile") 2>conftest.er1
3447 ac_status=$?
3448 grep -v '^ *+' conftest.er1 >conftest.err
3449 rm -f conftest.er1
3450 cat conftest.err >&5
3451 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3452 (exit $ac_status); } && {
3453 test -z "$ac_cxx_werror_flag" ||
3454 test ! -s conftest.err
3455 } && test -s conftest.$ac_objext; then
3456 ac_cv_prog_cxx_g=yes
3457 else
3458 $as_echo "$as_me: failed program was:" >&5
3459 sed 's/^/| /' conftest.$ac_ext >&5
3464 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3467 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3470 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3471 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3473 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3474 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3475 if test "$ac_test_CXXFLAGS" = set; then
3476 CXXFLAGS=$ac_save_CXXFLAGS
3477 elif test $ac_cv_prog_cxx_g = yes; then
3478 if test "$GXX" = yes; then
3479 CXXFLAGS="-g -O2"
3480 else
3481 CXXFLAGS="-g"
3483 else
3484 if test "$GXX" = yes; then
3485 CXXFLAGS="-O2"
3486 else
3487 CXXFLAGS=
3490 ac_ext=c
3491 ac_cpp='$CPP $CPPFLAGS'
3492 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3493 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3494 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3497 if test "`cd $srcdir; /bin/pwd`" = "`/bin/pwd`"; then
3498 { { $as_echo "$as_me:$LINENO: error: you must configure in a separate build directory" >&5
3499 $as_echo "$as_me: error: you must configure in a separate build directory" >&2;}
3500 { (exit 1); exit 1; }; }
3503 # This will get text that should go into config.make.
3504 config_vars=
3506 # Check for a --with-gd argument and set libgd-LDFLAGS in config.make.
3508 # Check whether --with-gd was given.
3509 if test "${with_gd+set}" = set; then
3510 withval=$with_gd; case "$with_gd" in
3511 yes|''|no) ;;
3512 *) libgd_include="-I$withval/include"
3513 libgd_ldflags="-L$withval/lib" ;;
3514 esac
3519 # Check whether --with-gd-include was given.
3520 if test "${with_gd_include+set}" = set; then
3521 withval=$with_gd_include; case "$with_gd_include" in
3522 ''|no) ;;
3523 *) libgd_include="-I$withval" ;;
3524 esac
3529 # Check whether --with-gd-lib was given.
3530 if test "${with_gd_lib+set}" = set; then
3531 withval=$with_gd_lib; case "$with_gd_lib" in
3532 ''|no) ;;
3533 *) libgd_ldflags="-L$withval" ;;
3534 esac
3539 if test -n "$libgd_include"; then
3540 config_vars="$config_vars
3541 CFLAGS-memusagestat.c = $libgd_include"
3543 if test -n "$libgd_ldflags"; then
3544 config_vars="$config_vars
3545 libgd-LDFLAGS = $libgd_ldflags"
3549 # Check whether --with-fp was given.
3550 if test "${with_fp+set}" = set; then
3551 withval=$with_fp; with_fp=$withval
3552 else
3553 with_fp=yes
3558 # Check whether --with-binutils was given.
3559 if test "${with_binutils+set}" = set; then
3560 withval=$with_binutils; path_binutils=$withval
3561 else
3562 path_binutils=''
3566 # Check whether --with-elf was given.
3567 if test "${with_elf+set}" = set; then
3568 withval=$with_elf; elf=$withval
3569 else
3570 elf=no
3574 # Check whether --with-selinux was given.
3575 if test "${with_selinux+set}" = set; then
3576 withval=$with_selinux; with_selinux=$withval
3577 else
3578 with_selinux=auto
3582 # Check whether --with-xcoff was given.
3583 if test "${with_xcoff+set}" = set; then
3584 withval=$with_xcoff; xcoff=$withval
3585 else
3586 xcoff=no
3590 # Check whether --with-cvs was given.
3591 if test "${with_cvs+set}" = set; then
3592 withval=$with_cvs; with_cvs=$withval
3593 else
3594 with_cvs=yes
3597 if test "$with_cvs" = yes; then
3598 if test -d $srcdir/CVS && grep :pserver: $srcdir/CVS/Root > /dev/null
3599 then
3600 with_cvs=no
3606 # Check whether --with-headers was given.
3607 if test "${with_headers+set}" = set; then
3608 withval=$with_headers; sysheaders=$withval
3609 else
3610 sysheaders=''
3614 # Check whether --enable-sanity-checks was given.
3615 if test "${enable_sanity_checks+set}" = set; then
3616 enableval=$enable_sanity_checks; enable_sanity=$enableval
3617 else
3618 enable_sanity=yes
3623 # Check whether --enable-check-abi was given.
3624 if test "${enable_check_abi+set}" = set; then
3625 enableval=$enable_check_abi; enable_check_abi=$enableval
3626 else
3627 enable_check_abi=no
3631 static=yes
3632 # Check whether --enable-shared was given.
3633 if test "${enable_shared+set}" = set; then
3634 enableval=$enable_shared; shared=$enableval
3635 else
3636 shared=default
3639 # Check whether --enable-profile was given.
3640 if test "${enable_profile+set}" = set; then
3641 enableval=$enable_profile; profile=$enableval
3642 else
3643 profile=no
3646 # Check whether --enable-omitfp was given.
3647 if test "${enable_omitfp+set}" = set; then
3648 enableval=$enable_omitfp; omitfp=$enableval
3649 else
3650 omitfp=no
3653 # Check whether --enable-bounded was given.
3654 if test "${enable_bounded+set}" = set; then
3655 enableval=$enable_bounded; bounded=$enableval
3656 else
3657 bounded=no
3660 # Check whether --enable-versioning was given.
3661 if test "${enable_versioning+set}" = set; then
3662 enableval=$enable_versioning; enable_versioning=$enableval
3663 else
3664 enable_versioning=yes
3668 # Check whether --enable-oldest-abi was given.
3669 if test "${enable_oldest_abi+set}" = set; then
3670 enableval=$enable_oldest_abi; oldest_abi=$enableval
3671 else
3672 oldest_abi=no
3675 if test "$oldest_abi" = yes || test "$oldest_abi" = no; then
3676 oldest_abi=default
3677 else
3678 cat >>confdefs.h <<_ACEOF
3679 #define GLIBC_OLDEST_ABI "$oldest_abi"
3680 _ACEOF
3685 # Check whether --enable-stackguard-randomization was given.
3686 if test "${enable_stackguard_randomization+set}" = set; then
3687 enableval=$enable_stackguard_randomization; enable_stackguard_randomize=$enableval
3688 else
3689 enable_stackguard_randomize=no
3692 if test "$enable_stackguard_randomize" = yes; then
3693 cat >>confdefs.h <<\_ACEOF
3694 #define ENABLE_STACKGUARD_RANDOMIZE 1
3695 _ACEOF
3699 # Check whether --enable-add-ons was given.
3700 if test "${enable_add_ons+set}" = set; then
3701 enableval=$enable_add_ons;
3702 else
3703 enable_add_ons=yes
3708 # Check whether --with-tls was given.
3709 if test "${with_tls+set}" = set; then
3710 withval=$with_tls; usetls=$withval
3711 else
3712 usetls=yes
3717 # Check whether --with-__thread was given.
3718 if test "${with___thread+set}" = set; then
3719 withval=$with___thread; use__thread=$withval
3720 else
3721 use__thread=yes
3725 # Check whether --enable-hidden-plt was given.
3726 if test "${enable_hidden_plt+set}" = set; then
3727 enableval=$enable_hidden_plt; hidden=$enableval
3728 else
3729 hidden=yes
3732 if test "x$hidden" = xno; then
3733 cat >>confdefs.h <<\_ACEOF
3734 #define NO_HIDDEN 1
3735 _ACEOF
3739 # Check whether --enable-bind-now was given.
3740 if test "${enable_bind_now+set}" = set; then
3741 enableval=$enable_bind_now; bindnow=$enableval
3742 else
3743 bindnow=no
3748 # Check whether --enable-static-nss was given.
3749 if test "${enable_static_nss+set}" = set; then
3750 enableval=$enable_static_nss; static_nss=$enableval
3751 else
3752 static_nss=no
3755 if test x"$static_nss" = xyes || test x"$shared" = xno; then
3756 static_nss=yes
3757 cat >>confdefs.h <<\_ACEOF
3758 #define DO_STATIC_NSS 1
3759 _ACEOF
3763 # Check whether --enable-force-install was given.
3764 if test "${enable_force_install+set}" = set; then
3765 enableval=$enable_force_install; force_install=$enableval
3766 else
3767 force_install=yes
3772 # Check whether --enable-kernel was given.
3773 if test "${enable_kernel+set}" = set; then
3774 enableval=$enable_kernel; minimum_kernel=$enableval
3777 if test "$minimum_kernel" = yes || test "$minimum_kernel" = no; then
3778 # Better nothing than this.
3779 minimum_kernel=""
3780 else
3781 if test "$minimum_kernel" = current; then
3782 minimum_kernel=`uname -r 2>/dev/null` || minimum_kernel=
3786 # Check whether --enable-all-warnings was given.
3787 if test "${enable_all_warnings+set}" = set; then
3788 enableval=$enable_all_warnings; all_warnings=$enableval
3793 # Check whether --enable-multi-arch was given.
3794 if test "${enable_multi_arch+set}" = set; then
3795 enableval=$enable_multi_arch; multi_arch=$enableval
3796 else
3797 multi_arch=no
3800 if test x"$multi_arch" = xyes; then
3801 cat >>confdefs.h <<\_ACEOF
3802 #define USE_MULTIARCH 1
3803 _ACEOF
3805 multi_arch_d=/multiarch
3809 # Check whether --enable-experimental-malloc was given.
3810 if test "${enable_experimental_malloc+set}" = set; then
3811 enableval=$enable_experimental_malloc; experimental_malloc=$enableval
3816 # Check whether --enable-nss-crypt was given.
3817 if test "${enable_nss_crypt+set}" = set; then
3818 enableval=$enable_nss_crypt; nss_crypt=$enableval
3819 else
3820 nss_crypt=no
3823 if test x$nss_crypt = xyes; then
3824 nss_includes=-I$(nss-config --includedir 2>/dev/null)
3825 if test $? -ne 0; then
3826 { { $as_echo "$as_me:$LINENO: error: cannot find include directory with nss-config" >&5
3827 $as_echo "$as_me: error: cannot find include directory with nss-config" >&2;}
3828 { (exit 1); exit 1; }; }
3830 old_CFLAGS="$CFLAGS"
3831 CFLAGS="$CFLAGS $nss_includes"
3833 cat >conftest.$ac_ext <<_ACEOF
3834 typedef int PRBool;
3835 #include <hasht.h>
3836 #include <nsslowhash.h>
3837 void f (void) { NSSLOW_Init (); }
3838 _ACEOF
3839 rm -f conftest.$ac_objext
3840 if { (ac_try="$ac_compile"
3841 case "(($ac_try" in
3842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3843 *) ac_try_echo=$ac_try;;
3844 esac
3845 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3846 $as_echo "$ac_try_echo") >&5
3847 (eval "$ac_compile") 2>conftest.er1
3848 ac_status=$?
3849 grep -v '^ *+' conftest.er1 >conftest.err
3850 rm -f conftest.er1
3851 cat conftest.err >&5
3852 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3853 (exit $ac_status); } && {
3854 test -z "$ac_c_werror_flag" ||
3855 test ! -s conftest.err
3856 } && test -s conftest.$ac_objext; then
3857 libc_cv_nss_crypt=yes
3858 else
3859 $as_echo "$as_me: failed program was:" >&5
3860 sed 's/^/| /' conftest.$ac_ext >&5
3862 { { $as_echo "$as_me:$LINENO: error:
3863 cannot find NSS headers with lowlevel hash function interfaces" >&5
3864 $as_echo "$as_me: error:
3865 cannot find NSS headers with lowlevel hash function interfaces" >&2;}
3866 { (exit 1); exit 1; }; }
3869 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3870 old_LIBS="$LIBS"
3871 LIBS="$LIBS -lfreebl3"
3872 cat >conftest.$ac_ext <<_ACEOF
3873 /* confdefs.h. */
3874 _ACEOF
3875 cat confdefs.h >>conftest.$ac_ext
3876 cat >>conftest.$ac_ext <<_ACEOF
3877 /* end confdefs.h. */
3878 typedef int PRBool;
3879 #include <hasht.h>
3880 #include <nsslowhash.h>
3882 main ()
3884 NSSLOW_Init();
3886 return 0;
3888 _ACEOF
3889 rm -f conftest.$ac_objext conftest$ac_exeext
3890 if { (ac_try="$ac_link"
3891 case "(($ac_try" in
3892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3893 *) ac_try_echo=$ac_try;;
3894 esac
3895 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3896 $as_echo "$ac_try_echo") >&5
3897 (eval "$ac_link") 2>conftest.er1
3898 ac_status=$?
3899 grep -v '^ *+' conftest.er1 >conftest.err
3900 rm -f conftest.er1
3901 cat conftest.err >&5
3902 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3903 (exit $ac_status); } && {
3904 test -z "$ac_c_werror_flag" ||
3905 test ! -s conftest.err
3906 } && test -s conftest$ac_exeext && {
3907 test "$cross_compiling" = yes ||
3908 $as_test_x conftest$ac_exeext
3909 }; then
3910 libc_cv_nss_crypt=yes
3911 else
3912 $as_echo "$as_me: failed program was:" >&5
3913 sed 's/^/| /' conftest.$ac_ext >&5
3915 { { $as_echo "$as_me:$LINENO: error:
3916 cannot link program using lowlevel NSS hash functions" >&5
3917 $as_echo "$as_me: error:
3918 cannot link program using lowlevel NSS hash functions" >&2;}
3919 { (exit 1); exit 1; }; }
3922 rm -rf conftest.dSYM
3923 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3924 conftest$ac_exeext conftest.$ac_ext
3925 CFLAGS="$old_CFLAGS"
3926 LIBS="$old_LIBS"
3927 else
3928 libc_cv_nss_crypt=no
3932 # The way shlib-versions is used to generate soversions.mk uses a
3933 # fairly simplistic model for name recognition that can't distinguish
3934 # i486-pc-linux-gnu fully from i486-pc-gnu. So we mutate a $host_os
3935 # of `gnu*' here to be `gnu-gnu*' just so that shlib-versions can
3936 # tell. This doesn't get used much beyond that, so it's fairly safe.
3937 case "$host_os" in
3938 linux*)
3940 gnu*)
3941 host_os=`echo $host_os | sed -e 's/gnu/gnu-gnu/'`
3943 esac
3945 # We keep the original values in `$config_*' and never modify them, so we
3946 # can write them unchanged into config.make. Everything else uses
3947 # $machine, $vendor, and $os, and changes them whenever convenient.
3948 config_machine=$host_cpu config_vendor=$host_vendor config_os=$host_os
3950 # Don't allow vendor == "unknown"
3951 test "$config_vendor" = unknown && config_vendor=
3952 config_os="`echo $config_os | sed 's/^unknown-//'`"
3954 # Some configurations imply other options.
3955 case "$host_os" in
3956 # i586-linuxaout is mangled into i586-pc-linux-gnuaout
3957 linux*ecoff* | linux*aout* | gnu*aout* | gnu*ecoff*)
3959 gnu* | linux* | freebsd* | netbsd* | sysv4* | solaris2* | irix6*)
3960 # These systems (almost) always use the ELF format.
3961 elf=yes
3963 aix*)
3964 # These systems are always xcoff
3965 xcoff=yes
3966 elf=no
3968 esac
3970 # The configure fragment of an add-on port can modify these to supplement
3971 # or override the table in the case statement below. No fragment should
3972 # ever change the config_* variables, however.
3973 machine=$config_machine
3974 vendor=$config_vendor
3975 os=$config_os
3976 base_os=''
3978 # config.guess on some IBM machines says `rs6000' instead of `powerpc'.
3979 # Unify this here.
3980 if test "$machine" = rs6000; then
3981 machine="powerpc"
3984 # Braindead PowerPC box with absolutely no FPU.
3985 case "$machine-$host_os" in
3986 powerpc*-*soft)
3987 with_fp=no
3989 esac
3991 submachine=
3993 # Check whether --with-cpu was given.
3994 if test "${with_cpu+set}" = set; then
3995 withval=$with_cpu; case "$withval" in
3996 yes|'') { { $as_echo "$as_me:$LINENO: error: --with-cpu requires an argument" >&5
3997 $as_echo "$as_me: error: --with-cpu requires an argument" >&2;}
3998 { (exit 1); exit 1; }; } ;;
3999 no) ;;
4000 *) submachine="$withval" ;;
4001 esac
4006 # An add-on can set this when it wants to disable the sanity check below.
4007 libc_config_ok=no
4011 subdirs="$subdirs "
4014 case "$enable_add_ons" in
4015 ''|no) add_ons= ;;
4016 yes|'*')
4017 add_ons=`cd $srcdir && ls -d 2> /dev/null */configure */sysdeps |
4018 sed 's@/[^/]*$@@' | sort | uniq`
4019 add_ons_automatic=yes
4021 *) add_ons=`echo "$enable_add_ons" | sed 's/,/ /g'`
4022 add_ons_automatic=no ;;
4023 esac
4025 configured_add_ons=
4026 add_ons_sfx=
4027 add_ons_pfx=
4028 if test x"$add_ons" != x; then
4029 for f in $add_ons; do
4030 # Some sanity checks
4031 case "$f" in
4032 crypt)
4033 { { $as_echo "$as_me:$LINENO: error:
4034 *** It seems that you're using an old \`crypt' add-on. crypt is now
4035 *** part of glibc and using the old add-on will not work with this
4036 *** release. Start again with fresh sources and without the old
4037 *** \`crypt' add-on." >&5
4038 $as_echo "$as_me: error:
4039 *** It seems that you're using an old \`crypt' add-on. crypt is now
4040 *** part of glibc and using the old add-on will not work with this
4041 *** release. Start again with fresh sources and without the old
4042 *** \`crypt' add-on." >&2;}
4043 { (exit 1); exit 1; }; }
4045 localedata)
4046 { { $as_echo "$as_me:$LINENO: error:
4047 *** It seems that you're using an old \`localedata' add-on. localedata
4048 *** is now part of glibc and using the old add-on will not work with
4049 *** this release. Start again with fresh sources and without the old
4050 *** \`localedata' add-on." >&5
4051 $as_echo "$as_me: error:
4052 *** It seems that you're using an old \`localedata' add-on. localedata
4053 *** is now part of glibc and using the old add-on will not work with
4054 *** this release. Start again with fresh sources and without the old
4055 *** \`localedata' add-on." >&2;}
4056 { (exit 1); exit 1; }; }
4058 esac
4059 done
4061 # Now source each add-on's configure fragment.
4062 # The fragments can use $srcdir/$libc_add_on to find themselves,
4063 # and test $add_ons_automatic to see if they were explicitly requested.
4064 # A fragment can clear (or even change) $libc_add_on to affect
4065 # whether it goes into the list to be actually used in the build.
4066 use_add_ons=
4067 for libc_add_on in $add_ons; do
4068 # Test whether such a directory really exists.
4069 # It can be absolute, or relative to $srcdir, or relative to the build dir.
4070 case "$libc_add_on" in
4072 libc_add_on_srcdir=$libc_add_on
4075 test -d "$srcdir/$libc_add_on" || {
4076 if test -d "$libc_add_on"; then
4077 libc_add_on="`pwd`/$libc_add_on"
4078 else
4079 { { $as_echo "$as_me:$LINENO: error: add-on directory \"$libc_add_on\" does not exist" >&5
4080 $as_echo "$as_me: error: add-on directory \"$libc_add_on\" does not exist" >&2;}
4081 { (exit 1); exit 1; }; }
4084 libc_add_on_srcdir=$srcdir/$libc_add_on
4086 esac
4088 libc_add_on_frag=$libc_add_on_srcdir/configure
4089 libc_add_on_canonical=
4090 if test -r "$libc_add_on_frag"; then
4091 { $as_echo "$as_me:$LINENO: running configure fragment for add-on $libc_add_on" >&5
4092 $as_echo "$as_me: running configure fragment for add-on $libc_add_on" >&6;}
4093 libc_add_on_canonical=unknown
4094 libc_add_on_subdirs=
4095 . "$libc_add_on_frag"
4096 test -z "$libc_add_on" || {
4097 configured_add_ons="$configured_add_ons $libc_add_on"
4098 if test "x$libc_add_on_canonical" = xunknown; then
4099 { { $as_echo "$as_me:$LINENO: error: fragment must set \$libc_add_on_canonical" >&5
4100 $as_echo "$as_me: error: fragment must set \$libc_add_on_canonical" >&2;}
4101 { (exit 1); exit 1; }; }
4103 for d in $libc_add_on_subdirs; do
4104 case "$libc_add_on" in
4105 /*) subdir_srcdir="$libc_add_on" ;;
4106 *) subdir_srcdir="\$(..)$libc_add_on" ;;
4107 esac
4108 case "$d" in
4110 d="${libc_add_on_canonical:-$libc_add_on}"
4113 subdir_srcdir="$d"
4116 subdir_srcdir="$subdir_srcdir/$d"
4118 esac
4119 d=`echo "$d" | sed 's@/*$@@;s@^.*/@@'`
4120 add_on_subdirs="$add_on_subdirs $d"
4121 test "$subdir_srcdir" = "\$(..)$d" || config_vars="$config_vars
4122 $d-srcdir = $subdir_srcdir"
4123 done
4126 if test -n "$libc_add_on"; then
4127 if frags=`ls -d $libc_add_on_srcdir/sysdeps/*/preconfigure 2> /dev/null`
4128 then
4129 { $as_echo "$as_me:$LINENO: checking add-on $libc_add_on for preconfigure fragments" >&5
4130 $as_echo_n "checking add-on $libc_add_on for preconfigure fragments... " >&6; }
4131 for frag in $frags; do
4132 name=`echo "$frag" | sed 's@/[^/]*$@@;s@^.*/@@'`
4133 echo $ECHO_N "$name $ECHO_C" >&6
4134 . "$frag"
4135 done
4136 { $as_echo "$as_me:$LINENO: result: " >&5
4137 $as_echo "" >&6; }
4139 use_add_ons="$use_add_ons $libc_add_on"
4140 add_ons_pfx="$add_ons_pfx $libc_add_on/"
4141 test -z "$libc_add_on_canonical" ||
4142 add_ons_sfx="$add_ons_sfx /$libc_add_on_canonical"
4144 done
4145 # Use echo to strip excess whitespace.
4146 add_ons="`echo $use_add_ons`"
4153 ### I put this here to prevent those annoying emails from people who cannot
4154 ### read and try to compile glibc on unsupported platforms. --drepper
4156 ### By using the undocumented --enable-hacker-mode option for configure
4157 ### one can skip this test to make the configuration not fail for unsupported
4158 ### platforms.
4160 if test -z "$enable_hacker_mode" && test x"$libc_config_ok" != xyes; then
4161 case "$machine-$host_os" in
4162 *-linux* | *-gnu* | arm*-none* | powerpc-aix4.3.*)
4165 echo "*** The GNU C library is currently not available for this platform."
4166 echo "*** So far nobody cared to port it and if there is no volunteer it"
4167 echo "*** might never happen. So, if you have interest to see glibc on"
4168 echo "*** this platform visit"
4169 echo "*** http://www.gnu.org/software/libc/porting.html"
4170 echo "*** and join the group of porters"
4171 exit 1
4173 esac
4176 # Expand the configuration machine name into a subdirectory by architecture
4177 # type and particular chip. If an add-on configure fragment already set
4178 # base_machine, we don't change it.
4179 test -n "$base_machine" || case "$machine" in
4180 a29k | am29000) base_machine=a29k machine=a29k ;;
4181 c3[012]) base_machine=cx0 machine=cx0/c30 ;;
4182 c4[04]) base_machine=cx0 machine=cx0/c40 ;;
4183 i[34567]86) base_machine=i386 machine=i386/$machine ;;
4184 ia64) base_machine=ia64 machine=ia64 ;;
4185 m88???) base_machine=m88k machine=m88k/$machine ;;
4186 m88k) base_machine=m88k machine=m88k/m88100 ;;
4187 powerpc) base_machine=powerpc machine=powerpc/powerpc32 ;;
4188 powerpc64) base_machine=powerpc machine=powerpc/powerpc64 ;;
4189 s390) base_machine=s390 machine=s390/s390-32 ;;
4190 s390x) base_machine=s390 machine=s390/s390-64 ;;
4191 sh3*) base_machine=sh machine=sh/sh3 ;;
4192 sh4*) base_machine=sh machine=sh/sh4 ;;
4193 sparc | sparcv[67])
4194 base_machine=sparc machine=sparc/sparc32 ;;
4195 sparcv8 | supersparc | hypersparc)
4196 base_machine=sparc machine=sparc/sparc32/sparcv8 ;;
4197 sparcv8plus | sparcv8plusa | sparcv9)
4198 base_machine=sparc machine=sparc/sparc32/sparcv9 ;;
4199 sparcv8plusb | sparcv9b)
4200 base_machine=sparc machine=sparc/sparc32/sparcv9/sparcv9b ;;
4201 sparcv9v)
4202 base_machine=sparc machine=sparc/sparc32/sparcv9/sparcv9v ;;
4203 sparcv9v2)
4204 base_machine=sparc machine=sparc/sparc32/sparcv9/sparcv9v2 ;;
4205 sparc64)
4206 base_machine=sparc machine=sparc/sparc64 ;;
4207 sparc64b)
4208 base_machine=sparc machine=sparc/sparc64/sparcv9b ;;
4209 sparc64v)
4210 base_machine=sparc machine=sparc/sparc64/sparcv9v ;;
4211 sparc64v2)
4212 base_machine=sparc machine=sparc/sparc64/sparcv9v2 ;;
4213 *) base_machine=$machine ;;
4214 esac
4217 if test "$base_machine" = "i386"; then
4218 cat >>confdefs.h <<\_ACEOF
4219 #define USE_REGPARMS 1
4220 _ACEOF
4224 # Compute the list of sysdep directories for this configuration.
4225 # This can take a while to compute.
4226 sysdep_dir=$srcdir/sysdeps
4227 { $as_echo "$as_me:$LINENO: checking sysdep dirs" >&5
4228 $as_echo_n "checking sysdep dirs... " >&6; }
4229 # Make sco3.2v4 become sco3.2.4 and sunos4.1.1_U1 become sunos4.1.1.U1.
4230 os="`echo $os | sed 's/\([0-9A-Z]\)[v_]\([0-9A-Z]\)/\1.\2/g'`"
4232 test "x$base_os" != x || case "$os" in
4233 gnu*)
4234 base_os=mach/hurd ;;
4235 netbsd* | 386bsd* | freebsd* | bsdi*)
4236 base_os=unix/bsd/bsd4.4 ;;
4237 osf* | sunos* | ultrix* | newsos* | dynix* | *bsd*)
4238 base_os=unix/bsd ;;
4239 sysv* | isc* | esix* | sco* | minix* | irix4* | linux*)
4240 base_os=unix/sysv ;;
4241 irix6*)
4242 base_os=unix/sysv/irix6/$os ;;
4243 solaris[2-9]*)
4244 base_os=unix/sysv/sysv4 ;;
4245 hpux*)
4246 base_os=unix/sysv/hpux/$os ;;
4247 aix4.3*)
4248 base_os=unix/sysv/aix/aix4.3 ;;
4249 none)
4250 base_os=standalone ;;
4251 esac
4253 # For sunos4.1.1, try sunos4.1.1, then sunos4.1, then sunos4, then sunos.
4254 tail=$os
4255 ostry=$os
4256 while o=`echo $tail | sed 's/\.[^.]*$//'`; test $o != $tail; do
4257 ostry="$ostry /$o"
4258 tail=$o
4259 done
4260 o=`echo $tail | sed 's/[0-9]*$//'`
4261 if test $o != $tail; then
4262 ostry="$ostry /$o"
4264 # For linux-gnu, try linux-gnu, then linux.
4265 o=`echo $tail | sed 's/-.*$//'`
4266 if test $o != $tail; then
4267 ostry="$ostry /$o"
4270 # For unix/sysv/sysv4, try unix/sysv/sysv4, then unix/sysv, then unix.
4271 base=
4272 tail=$base_os
4273 while b=`echo $tail | sed 's@^\(.*\)/\([^/]*\)$@& \1@'`; test -n "$b"; do
4274 set $b
4275 base="$base /$1"
4276 tail="$2"
4277 done
4279 # For sparc/sparc32, try sparc/sparc32 and then sparc.
4280 mach=
4281 tail=$machine${submachine:+/$submachine}
4282 while m=`echo $tail | sed 's@^\(.*\)/\([^/]*\)$@& \1@'`; test -n "$m"; do
4283 set $m
4284 # Prepend the machine's FPU directory unless --without-fp.
4285 if test "$with_fp" = yes; then
4286 mach="$mach /$1/fpu"
4287 else
4288 mach="$mach /$1/nofpu"
4290 mach="$mach /$1"
4291 tail="$2"
4292 done
4295 # Find what sysdep directories exist.
4296 sysnames_add_ons=
4297 sysnames=
4298 for b in $base ''; do
4299 for m0 in $mach ''; do
4300 for v in /$vendor ''; do
4301 test "$v" = / && continue
4302 for o in /$ostry ''; do
4303 test "$o" = / && continue
4304 for m in $multi_arch_d $mach ''; do
4305 for d in $add_ons_pfx ''; do
4306 for a in $add_ons_sfx ''; do
4307 if test -n "$m0$m0sub$b$v$o$m$msub"; then
4308 try_srcdir="${srcdir}/"
4309 case "$d" in
4310 /*) try_srcdir= ;;
4311 esac
4312 try="${d}sysdeps$m0$m0sub$b$v$o$m$msub$a"
4313 test -n "$enable_debug_configure" &&
4314 echo "$0 DEBUG: try $try" >&2
4315 if test -d "$try_srcdir$try"; then
4316 sysnames="$sysnames $try"
4317 { test -n "$o" || test -n "$b"; } && os_used=t
4318 { test -n "$m" || test -n "$m0"; } && machine_used=t
4319 case x${m0:-$m} in
4320 x*/$submachine) submachine_used=t ;;
4321 esac
4322 if test -n "$d"; then
4323 case "$sysnames_add_ons" in
4324 *" $d "*) ;;
4325 *|'') sysnames_add_ons="$sysnames_add_ons $d" ;;
4326 esac
4330 done
4331 done
4332 done
4333 done
4334 done
4335 done
4336 done
4338 if test -z "$os_used" && test "$os" != none; then
4339 { { $as_echo "$as_me:$LINENO: error: Operating system $os is not supported." >&5
4340 $as_echo "$as_me: error: Operating system $os is not supported." >&2;}
4341 { (exit 1); exit 1; }; }
4343 if test -z "$machine_used" && test "$machine" != none; then
4344 { { $as_echo "$as_me:$LINENO: error: The $machine is not supported." >&5
4345 $as_echo "$as_me: error: The $machine is not supported." >&2;}
4346 { (exit 1); exit 1; }; }
4348 if test -z "$submachine_used" && test -n "$submachine"; then
4349 { { $as_echo "$as_me:$LINENO: error: The $submachine subspecies of $host_cpu is not supported." >&5
4350 $as_echo "$as_me: error: The $submachine subspecies of $host_cpu is not supported." >&2;}
4351 { (exit 1); exit 1; }; }
4355 # We have now validated the configuration.
4358 # If using ELF, look for an `elf' subdirectory of each machine directory.
4359 # We prepend these rather than inserting them whereever the machine appears
4360 # because things specified by the machine's ELF ABI should override
4361 # OS-specific things, and should always be the same for any OS on the
4362 # machine (otherwise what's the point of an ABI?).
4363 if test "$elf" = yes; then
4364 elf_dirs=
4365 for d in $add_ons_pfx ''; do
4366 for m in $mach; do
4367 if test -d $srcdir/${d}sysdeps$m/elf; then
4368 elf_dirs="$elf_dirs ${d}sysdeps$m/elf"
4370 done
4371 done
4372 sysnames="`echo $elf_dirs | sed -e 's,//,/,g'` $sysnames"
4376 # Expand the list of system names into a full list of directories
4377 # from each element's parent name and Implies file (if present).
4378 set $sysnames
4379 names=
4380 while test $# -gt 0; do
4381 name=$1
4382 shift
4384 case " $names " in *" $name "*)
4385 # Already in the list.
4386 continue
4387 esac
4389 # Report each name as we discover it, so there is no long pause in output.
4390 echo $ECHO_N "$name $ECHO_C" >&6
4392 name_base=`echo $name | sed -e 's@\(.*sysdeps\)/.*@\1@'`
4394 case $name in
4395 /*) xsrcdir= ;;
4396 *) xsrcdir=$srcdir/ ;;
4397 esac
4398 test -n "$enable_debug_configure" &&
4399 echo "DEBUG: name/Implies $xsrcdir$name/Implies" >&2
4401 if test -f $xsrcdir$name/Implies; then
4402 # Collect more names from the `Implies' file (removing comments).
4403 implied_candidate="`sed 's/#.*$//' < $xsrcdir$name/Implies`"
4404 implied=
4405 for x in $implied_candidate; do
4406 found=no
4407 if test -d $xsrcdir$name_base/$x; then
4408 implied="$implied $name_base/$x";
4409 found=yes
4411 for d in $add_ons_pfx ''; do
4412 try="${d}sysdeps/$x"
4413 case $d in
4414 /*) try_srcdir= ;;
4415 *) try_srcdir=$srcdir/ ;;
4416 esac
4417 test -n "$enable_debug_configure" &&
4418 echo "DEBUG: $name implied $x try($d) {$try_srcdir}$try" >&2
4419 if test $try != $xsrcdir$name_base/$x && test -d $try_srcdir$try;
4420 then
4421 implied="$implied $try"
4422 found=yes
4423 case "$sysnames_add_ons" in
4424 *" $d "*) ;;
4425 *|'') sysnames_add_ons="$sysnames_add_ons $d" ;;
4426 esac
4428 done
4429 if test $found = no; then
4430 { $as_echo "$as_me:$LINENO: WARNING: $name/Implies specifies nonexistent $x" >&5
4431 $as_echo "$as_me: WARNING: $name/Implies specifies nonexistent $x" >&2;}
4433 done
4434 else
4435 implied=
4438 # Add NAME to the list of names.
4439 names="$names $name"
4441 # Find the parent of NAME, using the empty string if it has none.
4442 parent="`echo $name | sed -n -e 's=/[^/]*$==' -e '/sysdeps$/q' -e p`"
4444 # Add the names implied by NAME, and NAME's parent (if it has one), to
4445 # the list of names to be processed (the argument list). We prepend the
4446 # implied names to the list and append the parent. We want implied
4447 # directories to come before further directories inferred from the
4448 # configuration components; this ensures that for sysv4, unix/common
4449 # (implied by unix/sysv/sysv4) comes before unix/sysv (in ostry (here $*)
4450 # after sysv4).
4451 sysnames="`echo $implied $* $parent`"
4452 test -n "$sysnames" && set $sysnames
4453 done
4455 # Add the default directories.
4456 default_sysnames=sysdeps/generic
4457 if test "$elf" = yes; then
4458 default_sysnames="sysdeps/generic/elf $default_sysnames"
4460 sysnames="$names $default_sysnames"
4462 # The other names were emitted during the scan.
4463 { $as_echo "$as_me:$LINENO: result: $default_sysnames" >&5
4464 $as_echo "$default_sysnames" >&6; }
4466 # Collect the list of add-ons that supply partial sysdeps trees.
4467 sysdeps_add_ons=
4468 for add_on in $add_ons; do
4469 case "$add_on" in
4470 /*) xsrcdir= ;;
4471 *) xsrcdir="$srcdir/" ;;
4472 esac
4474 test -d "$xsrcdir$add_on/sysdeps" || {
4475 case "$configured_add_ons " in
4476 *" $add_on "*) ;;
4477 *|'')
4478 { { $as_echo "$as_me:$LINENO: error: add-on $add_on has no configure fragment or sysdeps tree" >&5
4479 $as_echo "$as_me: error: add-on $add_on has no configure fragment or sysdeps tree" >&2;}
4480 { (exit 1); exit 1; }; }
4482 esac
4483 continue
4486 sysdeps_add_ons="$sysdeps_add_ons $add_on"
4487 case "$sysnames_add_ons" in
4488 *" $add_on/ "*) ;;
4489 *|'')
4490 { $as_echo "$as_me:$LINENO: WARNING: add-on $add_on contributed no sysdeps directories" >&5
4491 $as_echo "$as_me: WARNING: add-on $add_on contributed no sysdeps directories" >&2;}
4492 continue ;;
4493 esac
4495 found=no
4496 for d in $sysnames; do
4497 case "$d" in
4498 $add_on/sysdeps/*) ;;
4499 *) continue ;;
4500 esac
4501 (cd "$xsrcdir$d" && for f in *[!~]; do
4502 case "$f" in
4503 sys|bits)
4504 for ff in $f/*.h; do
4505 test -d "$ff" || { test -e "$ff" && exit 88; }
4506 done
4509 test -d "$f" || { test -e "$f" && exit 88; }
4511 esac
4512 done)
4513 if test $? -eq 88; then
4514 found=yes
4515 break
4517 done
4518 if test $found = no; then
4519 { $as_echo "$as_me:$LINENO: WARNING: add-on $add_on contributed no useful sysdeps directories" >&5
4520 $as_echo "$as_me: WARNING: add-on $add_on contributed no useful sysdeps directories" >&2;}
4522 done
4526 ### Locate tools.
4528 # Find a good install program. We prefer a C program (faster),
4529 # so one script is as good as another. But avoid the broken or
4530 # incompatible versions:
4531 # SysV /etc/install, /usr/sbin/install
4532 # SunOS /usr/etc/install
4533 # IRIX /sbin/install
4534 # AIX /bin/install
4535 # AmigaOS /C/install, which installs bootblocks on floppy discs
4536 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4537 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4538 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4539 # OS/2's system install, which has a completely different semantic
4540 # ./install, which can be erroneously created by make from ./install.sh.
4541 # Reject install programs that cannot install multiple files.
4542 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4543 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4544 if test -z "$INSTALL"; then
4545 if test "${ac_cv_path_install+set}" = set; then
4546 $as_echo_n "(cached) " >&6
4547 else
4548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4549 for as_dir in $PATH
4551 IFS=$as_save_IFS
4552 test -z "$as_dir" && as_dir=.
4553 # Account for people who put trailing slashes in PATH elements.
4554 case $as_dir/ in
4555 ./ | .// | /cC/* | \
4556 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4557 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4558 /usr/ucb/* ) ;;
4560 # OSF1 and SCO ODT 3.0 have their own names for install.
4561 # Don't use installbsd from OSF since it installs stuff as root
4562 # by default.
4563 for ac_prog in ginstall scoinst install; do
4564 for ac_exec_ext in '' $ac_executable_extensions; do
4565 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4566 if test $ac_prog = install &&
4567 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4568 # AIX install. It has an incompatible calling convention.
4570 elif test $ac_prog = install &&
4571 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4572 # program-specific install script used by HP pwplus--don't use.
4574 else
4575 rm -rf conftest.one conftest.two conftest.dir
4576 echo one > conftest.one
4577 echo two > conftest.two
4578 mkdir conftest.dir
4579 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4580 test -s conftest.one && test -s conftest.two &&
4581 test -s conftest.dir/conftest.one &&
4582 test -s conftest.dir/conftest.two
4583 then
4584 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4585 break 3
4589 done
4590 done
4592 esac
4594 done
4595 IFS=$as_save_IFS
4597 rm -rf conftest.one conftest.two conftest.dir
4600 if test "${ac_cv_path_install+set}" = set; then
4601 INSTALL=$ac_cv_path_install
4602 else
4603 # As a last resort, use the slow shell script. Don't cache a
4604 # value for INSTALL within a source directory, because that will
4605 # break other packages using the cache if that directory is
4606 # removed, or if the value is a relative name.
4607 INSTALL=$ac_install_sh
4610 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
4611 $as_echo "$INSTALL" >&6; }
4613 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4614 # It thinks the first close brace ends the variable substitution.
4615 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4617 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4619 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4621 if test "$INSTALL" = "${srcdir}/scripts/install-sh -c"; then
4622 # The makefiles need to use a different form to find it in $srcdir.
4623 INSTALL='\$(..)./scripts/install-sh -c'
4625 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
4626 $as_echo_n "checking whether ln -s works... " >&6; }
4627 LN_S=$as_ln_s
4628 if test "$LN_S" = "ln -s"; then
4629 { $as_echo "$as_me:$LINENO: result: yes" >&5
4630 $as_echo "yes" >&6; }
4631 else
4632 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4633 $as_echo "no, using $LN_S" >&6; }
4637 # Was a --with-binutils option given?
4638 if test -n "$path_binutils"; then
4639 # Make absolute; ensure a single trailing slash.
4640 path_binutils=`(cd $path_binutils; pwd) | sed 's%/*$%/%'`
4641 CC="$CC -B$path_binutils"
4643 AS=`$CC -print-prog-name=as`
4644 LD=`$CC -print-prog-name=ld`
4645 AR=`$CC -print-prog-name=ar`
4647 OBJDUMP=`$CC -print-prog-name=objdump`
4650 # ranlib has to be treated a bit differently since it might not exist at all.
4651 ac_ranlib=`$CC -print-prog-name=ranlib`
4652 if test "x$ac_ranlib" = xranlib; then
4653 # This extra check has to happen since gcc simply echos the parameter in
4654 # case it cannot find the value in its own directories.
4655 if test -n "$ac_tool_prefix"; then
4656 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4657 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4658 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4659 $as_echo_n "checking for $ac_word... " >&6; }
4660 if test "${ac_cv_prog_RANLIB+set}" = set; then
4661 $as_echo_n "(cached) " >&6
4662 else
4663 if test -n "$RANLIB"; then
4664 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4665 else
4666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4667 for as_dir in $PATH
4669 IFS=$as_save_IFS
4670 test -z "$as_dir" && as_dir=.
4671 for ac_exec_ext in '' $ac_executable_extensions; do
4672 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4673 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4674 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4675 break 2
4677 done
4678 done
4679 IFS=$as_save_IFS
4683 RANLIB=$ac_cv_prog_RANLIB
4684 if test -n "$RANLIB"; then
4685 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
4686 $as_echo "$RANLIB" >&6; }
4687 else
4688 { $as_echo "$as_me:$LINENO: result: no" >&5
4689 $as_echo "no" >&6; }
4694 if test -z "$ac_cv_prog_RANLIB"; then
4695 ac_ct_RANLIB=$RANLIB
4696 # Extract the first word of "ranlib", so it can be a program name with args.
4697 set dummy ranlib; ac_word=$2
4698 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4699 $as_echo_n "checking for $ac_word... " >&6; }
4700 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4701 $as_echo_n "(cached) " >&6
4702 else
4703 if test -n "$ac_ct_RANLIB"; then
4704 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4705 else
4706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4707 for as_dir in $PATH
4709 IFS=$as_save_IFS
4710 test -z "$as_dir" && as_dir=.
4711 for ac_exec_ext in '' $ac_executable_extensions; do
4712 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4713 ac_cv_prog_ac_ct_RANLIB="ranlib"
4714 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4715 break 2
4717 done
4718 done
4719 IFS=$as_save_IFS
4723 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4724 if test -n "$ac_ct_RANLIB"; then
4725 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4726 $as_echo "$ac_ct_RANLIB" >&6; }
4727 else
4728 { $as_echo "$as_me:$LINENO: result: no" >&5
4729 $as_echo "no" >&6; }
4732 if test "x$ac_ct_RANLIB" = x; then
4733 RANLIB=":"
4734 else
4735 case $cross_compiling:$ac_tool_warned in
4736 yes:)
4737 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4738 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4739 ac_tool_warned=yes ;;
4740 esac
4741 RANLIB=$ac_ct_RANLIB
4743 else
4744 RANLIB="$ac_cv_prog_RANLIB"
4747 else
4748 RANLIB=$ac_ranlib
4752 # Determine whether we are using GNU binutils.
4753 { $as_echo "$as_me:$LINENO: checking whether $AS is GNU as" >&5
4754 $as_echo_n "checking whether $AS is GNU as... " >&6; }
4755 if test "${libc_cv_prog_as_gnu+set}" = set; then
4756 $as_echo_n "(cached) " >&6
4757 else
4758 # Most GNU programs take a -v and spit out some text including
4759 # the word 'GNU'. Some try to read stdin, so give them /dev/null.
4760 if $AS -o conftest -v </dev/null 2>&1 | grep GNU > /dev/null 2>&1; then
4761 libc_cv_prog_as_gnu=yes
4762 else
4763 libc_cv_prog_as_gnu=no
4765 rm -fr contest*
4767 { $as_echo "$as_me:$LINENO: result: $libc_cv_prog_as_gnu" >&5
4768 $as_echo "$libc_cv_prog_as_gnu" >&6; }
4769 rm -f a.out
4770 gnu_as=$libc_cv_prog_as_gnu
4772 { $as_echo "$as_me:$LINENO: checking whether $LD is GNU ld" >&5
4773 $as_echo_n "checking whether $LD is GNU ld... " >&6; }
4774 if test "${libc_cv_prog_ld_gnu+set}" = set; then
4775 $as_echo_n "(cached) " >&6
4776 else
4777 # Most GNU programs take a -v and spit out some text including
4778 # the word 'GNU'. Some try to read stdin, so give them /dev/null.
4779 if $LD -o conftest -v </dev/null 2>&1 | grep GNU > /dev/null 2>&1; then
4780 libc_cv_prog_ld_gnu=yes
4781 else
4782 libc_cv_prog_ld_gnu=no
4784 rm -fr contest*
4786 { $as_echo "$as_me:$LINENO: result: $libc_cv_prog_ld_gnu" >&5
4787 $as_echo "$libc_cv_prog_ld_gnu" >&6; }
4788 gnu_ld=$libc_cv_prog_ld_gnu
4791 # Accept binutils 2.13 or newer.
4792 for ac_prog in $AS
4794 # Extract the first word of "$ac_prog", so it can be a program name with args.
4795 set dummy $ac_prog; ac_word=$2
4796 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4797 $as_echo_n "checking for $ac_word... " >&6; }
4798 if test "${ac_cv_prog_AS+set}" = set; then
4799 $as_echo_n "(cached) " >&6
4800 else
4801 if test -n "$AS"; then
4802 ac_cv_prog_AS="$AS" # Let the user override the test.
4803 else
4804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4805 for as_dir in $PATH
4807 IFS=$as_save_IFS
4808 test -z "$as_dir" && as_dir=.
4809 for ac_exec_ext in '' $ac_executable_extensions; do
4810 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4811 ac_cv_prog_AS="$ac_prog"
4812 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4813 break 2
4815 done
4816 done
4817 IFS=$as_save_IFS
4821 AS=$ac_cv_prog_AS
4822 if test -n "$AS"; then
4823 { $as_echo "$as_me:$LINENO: result: $AS" >&5
4824 $as_echo "$AS" >&6; }
4825 else
4826 { $as_echo "$as_me:$LINENO: result: no" >&5
4827 $as_echo "no" >&6; }
4831 test -n "$AS" && break
4832 done
4834 if test -z "$AS"; then
4835 ac_verc_fail=yes
4836 else
4837 # Found it, now check the version.
4838 { $as_echo "$as_me:$LINENO: checking version of $AS" >&5
4839 $as_echo_n "checking version of $AS... " >&6; }
4840 ac_prog_version=`$AS --version 2>&1 | sed -n 's/^.*GNU assembler.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
4841 case $ac_prog_version in
4842 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
4843 2.1[3-9]*)
4844 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
4845 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
4847 esac
4848 { $as_echo "$as_me:$LINENO: result: $ac_prog_version" >&5
4849 $as_echo "$ac_prog_version" >&6; }
4851 if test $ac_verc_fail = yes; then
4852 AS=: critic_missing="$critic_missing as"
4855 for ac_prog in $LD
4857 # Extract the first word of "$ac_prog", so it can be a program name with args.
4858 set dummy $ac_prog; ac_word=$2
4859 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4860 $as_echo_n "checking for $ac_word... " >&6; }
4861 if test "${ac_cv_prog_LD+set}" = set; then
4862 $as_echo_n "(cached) " >&6
4863 else
4864 if test -n "$LD"; then
4865 ac_cv_prog_LD="$LD" # Let the user override the test.
4866 else
4867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4868 for as_dir in $PATH
4870 IFS=$as_save_IFS
4871 test -z "$as_dir" && as_dir=.
4872 for ac_exec_ext in '' $ac_executable_extensions; do
4873 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4874 ac_cv_prog_LD="$ac_prog"
4875 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4876 break 2
4878 done
4879 done
4880 IFS=$as_save_IFS
4884 LD=$ac_cv_prog_LD
4885 if test -n "$LD"; then
4886 { $as_echo "$as_me:$LINENO: result: $LD" >&5
4887 $as_echo "$LD" >&6; }
4888 else
4889 { $as_echo "$as_me:$LINENO: result: no" >&5
4890 $as_echo "no" >&6; }
4894 test -n "$LD" && break
4895 done
4897 if test -z "$LD"; then
4898 ac_verc_fail=yes
4899 else
4900 # Found it, now check the version.
4901 { $as_echo "$as_me:$LINENO: checking version of $LD" >&5
4902 $as_echo_n "checking version of $LD... " >&6; }
4903 ac_prog_version=`$LD --version 2>&1 | sed -n 's/^.*GNU ld.* \([0-9][0-9]*\.[0-9.]*\).*$/\1/p'`
4904 case $ac_prog_version in
4905 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
4906 2.1[3-9]*)
4907 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
4908 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
4910 esac
4911 { $as_echo "$as_me:$LINENO: result: $ac_prog_version" >&5
4912 $as_echo "$ac_prog_version" >&6; }
4914 if test $ac_verc_fail = yes; then
4915 LD=: critic_missing="$critic_missing ld"
4919 # We need the physical current working directory. We cannot use the
4920 # "pwd -P" shell builtin since that's not portable. Instead we try to
4921 # find a pwd binary. Note that assigning to the PWD environment
4922 # variable might have some interesting side effects, so we don't do
4923 # that.
4924 # Extract the first word of "pwd", so it can be a program name with args.
4925 set dummy pwd; ac_word=$2
4926 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4927 $as_echo_n "checking for $ac_word... " >&6; }
4928 if test "${ac_cv_path_PWD_P+set}" = set; then
4929 $as_echo_n "(cached) " >&6
4930 else
4931 case $PWD_P in
4932 [\\/]* | ?:[\\/]*)
4933 ac_cv_path_PWD_P="$PWD_P" # Let the user override the test with a path.
4936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4937 for as_dir in $PATH
4939 IFS=$as_save_IFS
4940 test -z "$as_dir" && as_dir=.
4941 for ac_exec_ext in '' $ac_executable_extensions; do
4942 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4943 ac_cv_path_PWD_P="$as_dir/$ac_word$ac_exec_ext"
4944 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4945 break 2
4947 done
4948 done
4949 IFS=$as_save_IFS
4951 test -z "$ac_cv_path_PWD_P" && ac_cv_path_PWD_P="no"
4953 esac
4955 PWD_P=$ac_cv_path_PWD_P
4956 if test -n "$PWD_P"; then
4957 { $as_echo "$as_me:$LINENO: result: $PWD_P" >&5
4958 $as_echo "$PWD_P" >&6; }
4959 else
4960 { $as_echo "$as_me:$LINENO: result: no" >&5
4961 $as_echo "no" >&6; }
4965 if test "$PWD_P" = no; then
4966 { { $as_echo "$as_me:$LINENO: error: *** A pwd binary could not be found." >&5
4967 $as_echo "$as_me: error: *** A pwd binary could not be found." >&2;}
4968 { (exit 1); exit 1; }; }
4971 # These programs are version sensitive.
4973 for ac_prog in ${ac_tool_prefix}gcc ${ac_tool_prefix}cc
4975 # Extract the first word of "$ac_prog", so it can be a program name with args.
4976 set dummy $ac_prog; ac_word=$2
4977 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4978 $as_echo_n "checking for $ac_word... " >&6; }
4979 if test "${ac_cv_prog_CC+set}" = set; then
4980 $as_echo_n "(cached) " >&6
4981 else
4982 if test -n "$CC"; then
4983 ac_cv_prog_CC="$CC" # Let the user override the test.
4984 else
4985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4986 for as_dir in $PATH
4988 IFS=$as_save_IFS
4989 test -z "$as_dir" && as_dir=.
4990 for ac_exec_ext in '' $ac_executable_extensions; do
4991 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4992 ac_cv_prog_CC="$ac_prog"
4993 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4994 break 2
4996 done
4997 done
4998 IFS=$as_save_IFS
5002 CC=$ac_cv_prog_CC
5003 if test -n "$CC"; then
5004 { $as_echo "$as_me:$LINENO: result: $CC" >&5
5005 $as_echo "$CC" >&6; }
5006 else
5007 { $as_echo "$as_me:$LINENO: result: no" >&5
5008 $as_echo "no" >&6; }
5012 test -n "$CC" && break
5013 done
5015 if test -z "$CC"; then
5016 ac_verc_fail=yes
5017 else
5018 # Found it, now check the version.
5019 { $as_echo "$as_me:$LINENO: checking version of $CC" >&5
5020 $as_echo_n "checking version of $CC... " >&6; }
5021 ac_prog_version=`$CC -v 2>&1 | sed -n 's/^.*version \([egcygnustpi-]*[0-9.]*\).*$/\1/p'`
5022 case $ac_prog_version in
5023 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
5024 3.4* | 4.[0-9]* )
5025 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
5026 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
5028 esac
5029 { $as_echo "$as_me:$LINENO: result: $ac_prog_version" >&5
5030 $as_echo "$ac_prog_version" >&6; }
5032 if test $ac_verc_fail = yes; then
5033 critic_missing="$critic_missing gcc"
5036 for ac_prog in gnumake gmake make
5038 # Extract the first word of "$ac_prog", so it can be a program name with args.
5039 set dummy $ac_prog; ac_word=$2
5040 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5041 $as_echo_n "checking for $ac_word... " >&6; }
5042 if test "${ac_cv_prog_MAKE+set}" = set; then
5043 $as_echo_n "(cached) " >&6
5044 else
5045 if test -n "$MAKE"; then
5046 ac_cv_prog_MAKE="$MAKE" # Let the user override the test.
5047 else
5048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5049 for as_dir in $PATH
5051 IFS=$as_save_IFS
5052 test -z "$as_dir" && as_dir=.
5053 for ac_exec_ext in '' $ac_executable_extensions; do
5054 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5055 ac_cv_prog_MAKE="$ac_prog"
5056 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5057 break 2
5059 done
5060 done
5061 IFS=$as_save_IFS
5065 MAKE=$ac_cv_prog_MAKE
5066 if test -n "$MAKE"; then
5067 { $as_echo "$as_me:$LINENO: result: $MAKE" >&5
5068 $as_echo "$MAKE" >&6; }
5069 else
5070 { $as_echo "$as_me:$LINENO: result: no" >&5
5071 $as_echo "no" >&6; }
5075 test -n "$MAKE" && break
5076 done
5078 if test -z "$MAKE"; then
5079 ac_verc_fail=yes
5080 else
5081 # Found it, now check the version.
5082 { $as_echo "$as_me:$LINENO: checking version of $MAKE" >&5
5083 $as_echo_n "checking version of $MAKE... " >&6; }
5084 ac_prog_version=`$MAKE --version 2>&1 | sed -n 's/^.*GNU Make[^0-9]*\([0-9][0-9.]*\).*$/\1/p'`
5085 case $ac_prog_version in
5086 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
5087 3.79* | 3.[89]*)
5088 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
5089 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
5091 esac
5092 { $as_echo "$as_me:$LINENO: result: $ac_prog_version" >&5
5093 $as_echo "$ac_prog_version" >&6; }
5095 if test $ac_verc_fail = yes; then
5096 critic_missing="$critic_missing make"
5100 for ac_prog in gnumsgfmt gmsgfmt msgfmt
5102 # Extract the first word of "$ac_prog", so it can be a program name with args.
5103 set dummy $ac_prog; ac_word=$2
5104 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5105 $as_echo_n "checking for $ac_word... " >&6; }
5106 if test "${ac_cv_prog_MSGFMT+set}" = set; then
5107 $as_echo_n "(cached) " >&6
5108 else
5109 if test -n "$MSGFMT"; then
5110 ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
5111 else
5112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5113 for as_dir in $PATH
5115 IFS=$as_save_IFS
5116 test -z "$as_dir" && as_dir=.
5117 for ac_exec_ext in '' $ac_executable_extensions; do
5118 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5119 ac_cv_prog_MSGFMT="$ac_prog"
5120 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5121 break 2
5123 done
5124 done
5125 IFS=$as_save_IFS
5129 MSGFMT=$ac_cv_prog_MSGFMT
5130 if test -n "$MSGFMT"; then
5131 { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5
5132 $as_echo "$MSGFMT" >&6; }
5133 else
5134 { $as_echo "$as_me:$LINENO: result: no" >&5
5135 $as_echo "no" >&6; }
5139 test -n "$MSGFMT" && break
5140 done
5142 if test -z "$MSGFMT"; then
5143 ac_verc_fail=yes
5144 else
5145 # Found it, now check the version.
5146 { $as_echo "$as_me:$LINENO: checking version of $MSGFMT" >&5
5147 $as_echo_n "checking version of $MSGFMT... " >&6; }
5148 ac_prog_version=`$MSGFMT --version 2>&1 | sed -n 's/^.*GNU gettext.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
5149 case $ac_prog_version in
5150 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
5151 0.10.3[6-9]* | 0.10.[4-9][0-9]* | 0.1[1-9]* | 0.[2-9][0-9]* | [1-9].*)
5152 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
5153 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
5155 esac
5156 { $as_echo "$as_me:$LINENO: result: $ac_prog_version" >&5
5157 $as_echo "$ac_prog_version" >&6; }
5159 if test $ac_verc_fail = yes; then
5160 MSGFMT=: aux_missing="$aux_missing msgfmt"
5163 for ac_prog in makeinfo
5165 # Extract the first word of "$ac_prog", so it can be a program name with args.
5166 set dummy $ac_prog; ac_word=$2
5167 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5168 $as_echo_n "checking for $ac_word... " >&6; }
5169 if test "${ac_cv_prog_MAKEINFO+set}" = set; then
5170 $as_echo_n "(cached) " >&6
5171 else
5172 if test -n "$MAKEINFO"; then
5173 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
5174 else
5175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5176 for as_dir in $PATH
5178 IFS=$as_save_IFS
5179 test -z "$as_dir" && as_dir=.
5180 for ac_exec_ext in '' $ac_executable_extensions; do
5181 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5182 ac_cv_prog_MAKEINFO="$ac_prog"
5183 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5184 break 2
5186 done
5187 done
5188 IFS=$as_save_IFS
5192 MAKEINFO=$ac_cv_prog_MAKEINFO
5193 if test -n "$MAKEINFO"; then
5194 { $as_echo "$as_me:$LINENO: result: $MAKEINFO" >&5
5195 $as_echo "$MAKEINFO" >&6; }
5196 else
5197 { $as_echo "$as_me:$LINENO: result: no" >&5
5198 $as_echo "no" >&6; }
5202 test -n "$MAKEINFO" && break
5203 done
5205 if test -z "$MAKEINFO"; then
5206 ac_verc_fail=yes
5207 else
5208 # Found it, now check the version.
5209 { $as_echo "$as_me:$LINENO: checking version of $MAKEINFO" >&5
5210 $as_echo_n "checking version of $MAKEINFO... " >&6; }
5211 ac_prog_version=`$MAKEINFO --version 2>&1 | sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
5212 case $ac_prog_version in
5213 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
5214 4.*)
5215 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
5216 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
5218 esac
5219 { $as_echo "$as_me:$LINENO: result: $ac_prog_version" >&5
5220 $as_echo "$ac_prog_version" >&6; }
5222 if test $ac_verc_fail = yes; then
5223 MAKEINFO=: aux_missing="$aux_missing makeinfo"
5226 for ac_prog in sed
5228 # Extract the first word of "$ac_prog", so it can be a program name with args.
5229 set dummy $ac_prog; ac_word=$2
5230 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5231 $as_echo_n "checking for $ac_word... " >&6; }
5232 if test "${ac_cv_prog_SED+set}" = set; then
5233 $as_echo_n "(cached) " >&6
5234 else
5235 if test -n "$SED"; then
5236 ac_cv_prog_SED="$SED" # Let the user override the test.
5237 else
5238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5239 for as_dir in $PATH
5241 IFS=$as_save_IFS
5242 test -z "$as_dir" && as_dir=.
5243 for ac_exec_ext in '' $ac_executable_extensions; do
5244 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5245 ac_cv_prog_SED="$ac_prog"
5246 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5247 break 2
5249 done
5250 done
5251 IFS=$as_save_IFS
5255 SED=$ac_cv_prog_SED
5256 if test -n "$SED"; then
5257 { $as_echo "$as_me:$LINENO: result: $SED" >&5
5258 $as_echo "$SED" >&6; }
5259 else
5260 { $as_echo "$as_me:$LINENO: result: no" >&5
5261 $as_echo "no" >&6; }
5265 test -n "$SED" && break
5266 done
5268 if test -z "$SED"; then
5269 ac_verc_fail=yes
5270 else
5271 # Found it, now check the version.
5272 { $as_echo "$as_me:$LINENO: checking version of $SED" >&5
5273 $as_echo_n "checking version of $SED... " >&6; }
5274 ac_prog_version=`$SED --version 2>&1 | sed -n 's/^.*GNU sed version \([0-9]*\.[0-9.]*\).*$/\1/p'`
5275 case $ac_prog_version in
5276 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
5277 3.0[2-9]*|3.[1-9]*|[4-9]*)
5278 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
5279 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
5281 esac
5282 { $as_echo "$as_me:$LINENO: result: $ac_prog_version" >&5
5283 $as_echo "$ac_prog_version" >&6; }
5285 if test $ac_verc_fail = yes; then
5286 SED=: aux_missing="$aux_missing sed"
5290 for ac_prog in autoconf
5292 # Extract the first word of "$ac_prog", so it can be a program name with args.
5293 set dummy $ac_prog; ac_word=$2
5294 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5295 $as_echo_n "checking for $ac_word... " >&6; }
5296 if test "${ac_cv_prog_AUTOCONF+set}" = set; then
5297 $as_echo_n "(cached) " >&6
5298 else
5299 if test -n "$AUTOCONF"; then
5300 ac_cv_prog_AUTOCONF="$AUTOCONF" # Let the user override the test.
5301 else
5302 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5303 for as_dir in $PATH
5305 IFS=$as_save_IFS
5306 test -z "$as_dir" && as_dir=.
5307 for ac_exec_ext in '' $ac_executable_extensions; do
5308 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5309 ac_cv_prog_AUTOCONF="$ac_prog"
5310 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5311 break 2
5313 done
5314 done
5315 IFS=$as_save_IFS
5319 AUTOCONF=$ac_cv_prog_AUTOCONF
5320 if test -n "$AUTOCONF"; then
5321 { $as_echo "$as_me:$LINENO: result: $AUTOCONF" >&5
5322 $as_echo "$AUTOCONF" >&6; }
5323 else
5324 { $as_echo "$as_me:$LINENO: result: no" >&5
5325 $as_echo "no" >&6; }
5329 test -n "$AUTOCONF" && break
5330 done
5331 test -n "$AUTOCONF" || AUTOCONF="no"
5333 case "x$AUTOCONF" in
5334 xno|x|x:) AUTOCONF=no ;;
5336 { $as_echo "$as_me:$LINENO: checking whether $AUTOCONF${ACFLAGS:+ }$ACFLAGS works" >&5
5337 $as_echo_n "checking whether $AUTOCONF${ACFLAGS:+ }$ACFLAGS works... " >&6; }
5338 if test "${libc_cv_autoconf_works+set}" = set; then
5339 $as_echo_n "(cached) " >&6
5340 else
5341 if (cd $srcdir; $AUTOCONF $ACFLAGS configure.in > /dev/null 2>&1); then
5342 libc_cv_autoconf_works=yes
5343 else
5344 libc_cv_autoconf_works=no
5347 { $as_echo "$as_me:$LINENO: result: $libc_cv_autoconf_works" >&5
5348 $as_echo "$libc_cv_autoconf_works" >&6; }
5349 test $libc_cv_autoconf_works = yes || AUTOCONF=no
5351 esac
5352 if test "x$with_cvs" = xyes && test "x$AUTOCONF" = xno; then
5353 # If --without-cvs they probably won't change configure.in, so no complaints.
5354 aux_missing="$aux_missing autoconf"
5357 test -n "$critic_missing" && { { $as_echo "$as_me:$LINENO: error:
5358 *** These critical programs are missing or too old:$critic_missing
5359 *** Check the INSTALL file for required versions." >&5
5360 $as_echo "$as_me: error:
5361 *** These critical programs are missing or too old:$critic_missing
5362 *** Check the INSTALL file for required versions." >&2;}
5363 { (exit 1); exit 1; }; }
5365 test -n "$aux_missing" && { $as_echo "$as_me:$LINENO: WARNING:
5366 *** These auxiliary programs are missing or incompatible versions:$aux_missing
5367 *** some features will be disabled.
5368 *** Check the INSTALL file for required versions." >&5
5369 $as_echo "$as_me: WARNING:
5370 *** These auxiliary programs are missing or incompatible versions:$aux_missing
5371 *** some features will be disabled.
5372 *** Check the INSTALL file for required versions." >&2;}
5374 # if using special system headers, find out the compiler's sekrit
5375 # header directory and add that to the list. NOTE: Only does the right
5376 # thing on a system that doesn't need fixincludes. (Not presently a problem.)
5377 if test -n "$sysheaders"; then
5378 SYSINCLUDES=-nostdinc
5379 for d in include include-fixed; do
5380 i=`$CC -print-file-name="$d"` && test "x$i" != x && test "x$i" != "x$d" &&
5381 SYSINCLUDES="$SYSINCLUDES -isystem $i"
5382 done
5383 SYSINCLUDES="$SYSINCLUDES \
5384 -isystem `echo $sysheaders | sed 's/:/ -isystem /g'`"
5385 if test -n "$CXX"; then
5386 cxxversion=`$CXX -dumpversion 2>&5` &&
5387 cxxmachine=`$CXX -dumpmachine 2>&5` &&
5388 cxxheaders=`$CXX -print-file-name=../../../../include/c++/`"$cxxversion" &&
5389 CXX_SYSINCLUDES="-isystem $cxxheaders \
5390 -isystem $cxxheaders/$cxxmachine -isystem $cxxheaders/backward"
5396 # check if ranlib is necessary
5397 { $as_echo "$as_me:$LINENO: checking whether ranlib is necessary" >&5
5398 $as_echo_n "checking whether ranlib is necessary... " >&6; }
5399 if test "${libc_cv_ranlib_necessary+set}" = set; then
5400 $as_echo_n "(cached) " >&6
5401 else
5402 cat > conftest.c <<EOF
5403 int a;
5404 char b;
5405 void c(void) {}
5407 $CC $CFLAGS $CPPFLAGS -c conftest.c
5408 $AR cr conftest.a conftest.o
5409 cp conftest.a conftest2.a
5410 $RANLIB conftest.a
5411 if cmp -s conftest.a conftest2.a; then
5412 libc_cv_ranlib_necessary=no
5413 else
5414 libc_cv_ranlib_necessary=yes
5416 rm -rf conftest*
5418 { $as_echo "$as_me:$LINENO: result: $libc_cv_ranlib_necessary" >&5
5419 $as_echo "$libc_cv_ranlib_necessary" >&6; }
5420 if test "$libc_cv_ranlib_necessary" = no; then
5421 RANLIB=:
5424 # Test if LD_LIBRARY_PATH contains the notation for the current directory
5425 # since this would lead to problems installing/building glibc.
5426 # LD_LIBRARY_PATH contains the current directory if one of the following
5427 # is true:
5428 # - one of the terminals (":" and ";") is the first or last sign
5429 # - two terminals occur directly after each other
5430 # - the path contains an element with a dot in it
5431 { $as_echo "$as_me:$LINENO: checking LD_LIBRARY_PATH variable" >&5
5432 $as_echo_n "checking LD_LIBRARY_PATH variable... " >&6; }
5433 case ${LD_LIBRARY_PATH} in
5434 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
5435 ld_library_path_setting="contains current directory"
5438 ld_library_path_setting="ok"
5440 esac
5441 { $as_echo "$as_me:$LINENO: result: $ld_library_path_setting" >&5
5442 $as_echo "$ld_library_path_setting" >&6; }
5443 if test "$ld_library_path_setting" != "ok"; then
5444 { { $as_echo "$as_me:$LINENO: error:
5445 *** LD_LIBRARY_PATH shouldn't contain the current directory when
5446 *** building glibc. Please change the environment variable
5447 *** and run configure again." >&5
5448 $as_echo "$as_me: error:
5449 *** LD_LIBRARY_PATH shouldn't contain the current directory when
5450 *** building glibc. Please change the environment variable
5451 *** and run configure again." >&2;}
5452 { (exit 1); exit 1; }; }
5455 { $as_echo "$as_me:$LINENO: checking whether GCC supports -static-libgcc" >&5
5456 $as_echo_n "checking whether GCC supports -static-libgcc... " >&6; }
5457 if test "${libc_cv_gcc_static_libgcc+set}" = set; then
5458 $as_echo_n "(cached) " >&6
5459 else
5460 if $CC -v -static-libgcc 2>&1 | grep -q 'unrecognized option.*static-libgcc'; then
5461 libc_cv_gcc_static_libgcc=
5462 else
5463 libc_cv_gcc_static_libgcc=-static-libgcc
5466 { $as_echo "$as_me:$LINENO: result: $libc_cv_gcc_static_libgcc" >&5
5467 $as_echo "$libc_cv_gcc_static_libgcc" >&6; }
5470 # Extract the first word of "bash", so it can be a program name with args.
5471 set dummy bash; ac_word=$2
5472 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5473 $as_echo_n "checking for $ac_word... " >&6; }
5474 if test "${ac_cv_path_BASH_SHELL+set}" = set; then
5475 $as_echo_n "(cached) " >&6
5476 else
5477 case $BASH_SHELL in
5478 [\\/]* | ?:[\\/]*)
5479 ac_cv_path_BASH_SHELL="$BASH_SHELL" # Let the user override the test with a path.
5482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5483 for as_dir in $PATH
5485 IFS=$as_save_IFS
5486 test -z "$as_dir" && as_dir=.
5487 for ac_exec_ext in '' $ac_executable_extensions; do
5488 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5489 ac_cv_path_BASH_SHELL="$as_dir/$ac_word$ac_exec_ext"
5490 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5491 break 2
5493 done
5494 done
5495 IFS=$as_save_IFS
5497 test -z "$ac_cv_path_BASH_SHELL" && ac_cv_path_BASH_SHELL="no"
5499 esac
5501 BASH_SHELL=$ac_cv_path_BASH_SHELL
5502 if test -n "$BASH_SHELL"; then
5503 { $as_echo "$as_me:$LINENO: result: $BASH_SHELL" >&5
5504 $as_echo "$BASH_SHELL" >&6; }
5505 else
5506 { $as_echo "$as_me:$LINENO: result: no" >&5
5507 $as_echo "no" >&6; }
5511 if test "$BASH_SHELL" != no &&
5512 $BASH_SHELL -c 'test "$BASH_VERSINFO" \
5513 && test "$BASH_VERSINFO" -ge 2 >&/dev/null'; then
5514 libc_cv_have_bash2=yes
5515 else
5516 libc_cv_have_bash2=no
5520 if test "$BASH_SHELL" = no; then
5521 # Extract the first word of "ksh", so it can be a program name with args.
5522 set dummy ksh; ac_word=$2
5523 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5524 $as_echo_n "checking for $ac_word... " >&6; }
5525 if test "${ac_cv_path_KSH+set}" = set; then
5526 $as_echo_n "(cached) " >&6
5527 else
5528 case $KSH in
5529 [\\/]* | ?:[\\/]*)
5530 ac_cv_path_KSH="$KSH" # Let the user override the test with a path.
5533 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5534 for as_dir in $PATH
5536 IFS=$as_save_IFS
5537 test -z "$as_dir" && as_dir=.
5538 for ac_exec_ext in '' $ac_executable_extensions; do
5539 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5540 ac_cv_path_KSH="$as_dir/$ac_word$ac_exec_ext"
5541 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5542 break 2
5544 done
5545 done
5546 IFS=$as_save_IFS
5548 test -z "$ac_cv_path_KSH" && ac_cv_path_KSH="no"
5550 esac
5552 KSH=$ac_cv_path_KSH
5553 if test -n "$KSH"; then
5554 { $as_echo "$as_me:$LINENO: result: $KSH" >&5
5555 $as_echo "$KSH" >&6; }
5556 else
5557 { $as_echo "$as_me:$LINENO: result: no" >&5
5558 $as_echo "no" >&6; }
5562 if test "$KSH" = no; then
5563 libc_cv_have_ksh=no
5564 else
5565 libc_cv_have_ksh=yes
5567 else
5568 KSH="$BASH_SHELL"
5570 libc_cv_have_ksh=yes
5574 for ac_prog in gawk mawk nawk awk
5576 # Extract the first word of "$ac_prog", so it can be a program name with args.
5577 set dummy $ac_prog; ac_word=$2
5578 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5579 $as_echo_n "checking for $ac_word... " >&6; }
5580 if test "${ac_cv_prog_AWK+set}" = set; then
5581 $as_echo_n "(cached) " >&6
5582 else
5583 if test -n "$AWK"; then
5584 ac_cv_prog_AWK="$AWK" # Let the user override the test.
5585 else
5586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5587 for as_dir in $PATH
5589 IFS=$as_save_IFS
5590 test -z "$as_dir" && as_dir=.
5591 for ac_exec_ext in '' $ac_executable_extensions; do
5592 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5593 ac_cv_prog_AWK="$ac_prog"
5594 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5595 break 2
5597 done
5598 done
5599 IFS=$as_save_IFS
5603 AWK=$ac_cv_prog_AWK
5604 if test -n "$AWK"; then
5605 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
5606 $as_echo "$AWK" >&6; }
5607 else
5608 { $as_echo "$as_me:$LINENO: result: no" >&5
5609 $as_echo "no" >&6; }
5613 test -n "$AWK" && break
5614 done
5616 # Extract the first word of "perl", so it can be a program name with args.
5617 set dummy perl; ac_word=$2
5618 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5619 $as_echo_n "checking for $ac_word... " >&6; }
5620 if test "${ac_cv_path_PERL+set}" = set; then
5621 $as_echo_n "(cached) " >&6
5622 else
5623 case $PERL in
5624 [\\/]* | ?:[\\/]*)
5625 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
5628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5629 for as_dir in $PATH
5631 IFS=$as_save_IFS
5632 test -z "$as_dir" && as_dir=.
5633 for ac_exec_ext in '' $ac_executable_extensions; do
5634 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5635 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
5636 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5637 break 2
5639 done
5640 done
5641 IFS=$as_save_IFS
5643 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="no"
5645 esac
5647 PERL=$ac_cv_path_PERL
5648 if test -n "$PERL"; then
5649 { $as_echo "$as_me:$LINENO: result: $PERL" >&5
5650 $as_echo "$PERL" >&6; }
5651 else
5652 { $as_echo "$as_me:$LINENO: result: no" >&5
5653 $as_echo "no" >&6; }
5657 if test "$PERL" != no &&
5658 (eval `$PERL -V:apiversion`; test `expr "$apiversion" \< 5` -ne 0); then
5659 PERL=no
5661 # Extract the first word of "install-info", so it can be a program name with args.
5662 set dummy install-info; ac_word=$2
5663 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5664 $as_echo_n "checking for $ac_word... " >&6; }
5665 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5666 $as_echo_n "(cached) " >&6
5667 else
5668 case $INSTALL_INFO in
5669 [\\/]* | ?:[\\/]*)
5670 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5674 as_dummy="$PATH:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin"
5675 for as_dir in $as_dummy
5677 IFS=$as_save_IFS
5678 test -z "$as_dir" && as_dir=.
5679 for ac_exec_ext in '' $ac_executable_extensions; do
5680 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5681 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5682 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5683 break 2
5685 done
5686 done
5687 IFS=$as_save_IFS
5689 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO="no"
5691 esac
5693 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5694 if test -n "$INSTALL_INFO"; then
5695 { $as_echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5696 $as_echo "$INSTALL_INFO" >&6; }
5697 else
5698 { $as_echo "$as_me:$LINENO: result: no" >&5
5699 $as_echo "no" >&6; }
5703 # Extract the first word of "bison", so it can be a program name with args.
5704 set dummy bison; ac_word=$2
5705 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5706 $as_echo_n "checking for $ac_word... " >&6; }
5707 if test "${ac_cv_path_BISON+set}" = set; then
5708 $as_echo_n "(cached) " >&6
5709 else
5710 case $BISON in
5711 [\\/]* | ?:[\\/]*)
5712 ac_cv_path_BISON="$BISON" # Let the user override the test with a path.
5715 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5716 as_dummy="$PATH:/usr/local/bin:/usr/bin:/bin"
5717 for as_dir in $as_dummy
5719 IFS=$as_save_IFS
5720 test -z "$as_dir" && as_dir=.
5721 for ac_exec_ext in '' $ac_executable_extensions; do
5722 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5723 ac_cv_path_BISON="$as_dir/$ac_word$ac_exec_ext"
5724 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5725 break 2
5727 done
5728 done
5729 IFS=$as_save_IFS
5731 test -z "$ac_cv_path_BISON" && ac_cv_path_BISON="no"
5733 esac
5735 BISON=$ac_cv_path_BISON
5736 if test -n "$BISON"; then
5737 { $as_echo "$as_me:$LINENO: result: $BISON" >&5
5738 $as_echo "$BISON" >&6; }
5739 else
5740 { $as_echo "$as_me:$LINENO: result: no" >&5
5741 $as_echo "no" >&6; }
5746 { $as_echo "$as_me:$LINENO: checking for signed size_t type" >&5
5747 $as_echo_n "checking for signed size_t type... " >&6; }
5748 if test "${libc_cv_signed_size_t+set}" = set; then
5749 $as_echo_n "(cached) " >&6
5750 else
5751 echo '#include <stddef.h>
5752 FOOBAR __SIZE_TYPE__ FOOBAR' > conftest.c
5753 if eval "$ac_cpp conftest.c 2>/dev/null" \
5754 | grep '^FOOBAR.*unsigned.*FOOBAR$' >/dev/null; then
5755 libc_cv_signed_size_t=no
5756 else
5757 libc_cv_signed_size_t=yes
5759 rm -f conftest*
5761 { $as_echo "$as_me:$LINENO: result: $libc_cv_signed_size_t" >&5
5762 $as_echo "$libc_cv_signed_size_t" >&6; }
5763 if test $libc_cv_signed_size_t = yes; then
5764 cat >> confdefs.h <<\EOF
5765 #undef __SIZE_TYPE__
5766 #define __SIZE_TYPE__ unsigned
5770 { $as_echo "$as_me:$LINENO: checking for libc-friendly stddef.h" >&5
5771 $as_echo_n "checking for libc-friendly stddef.h... " >&6; }
5772 if test "${libc_cv_friendly_stddef+set}" = set; then
5773 $as_echo_n "(cached) " >&6
5774 else
5775 cat >conftest.$ac_ext <<_ACEOF
5776 /* confdefs.h. */
5777 _ACEOF
5778 cat confdefs.h >>conftest.$ac_ext
5779 cat >>conftest.$ac_ext <<_ACEOF
5780 /* end confdefs.h. */
5781 #define __need_size_t
5782 #define __need_wchar_t
5783 #include <stddef.h>
5784 #define __need_NULL
5785 #include <stddef.h>
5787 main ()
5789 size_t size; wchar_t wchar;
5790 #ifdef offsetof
5791 #error stddef.h ignored __need_*
5792 #endif
5793 if (&size == NULL || &wchar == NULL) abort ();
5795 return 0;
5797 _ACEOF
5798 rm -f conftest.$ac_objext
5799 if { (ac_try="$ac_compile"
5800 case "(($ac_try" in
5801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5802 *) ac_try_echo=$ac_try;;
5803 esac
5804 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5805 $as_echo "$ac_try_echo") >&5
5806 (eval "$ac_compile") 2>conftest.er1
5807 ac_status=$?
5808 grep -v '^ *+' conftest.er1 >conftest.err
5809 rm -f conftest.er1
5810 cat conftest.err >&5
5811 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5812 (exit $ac_status); } && {
5813 test -z "$ac_c_werror_flag" ||
5814 test ! -s conftest.err
5815 } && test -s conftest.$ac_objext; then
5816 libc_cv_friendly_stddef=yes
5817 else
5818 $as_echo "$as_me: failed program was:" >&5
5819 sed 's/^/| /' conftest.$ac_ext >&5
5821 libc_cv_friendly_stddef=no
5824 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5826 { $as_echo "$as_me:$LINENO: result: $libc_cv_friendly_stddef" >&5
5827 $as_echo "$libc_cv_friendly_stddef" >&6; }
5828 if test $libc_cv_friendly_stddef = yes; then
5829 config_vars="$config_vars
5830 override stddef.h = # The installed <stddef.h> seems to be libc-friendly."
5833 { $as_echo "$as_me:$LINENO: checking whether we need to use -P to assemble .S files" >&5
5834 $as_echo_n "checking whether we need to use -P to assemble .S files... " >&6; }
5835 if test "${libc_cv_need_minus_P+set}" = set; then
5836 $as_echo_n "(cached) " >&6
5837 else
5838 cat > conftest.S <<EOF
5839 #include "confdefs.h"
5840 /* Nothing whatsoever. */
5842 if { ac_try='${CC-cc} $CPPFLAGS $ASFLAGS -c conftest.S 1>&5'
5843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5844 (eval $ac_try) 2>&5
5845 ac_status=$?
5846 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5847 (exit $ac_status); }; }; then
5848 libc_cv_need_minus_P=no
5849 else
5850 libc_cv_need_minus_P=yes
5852 rm -f conftest*
5854 { $as_echo "$as_me:$LINENO: result: $libc_cv_need_minus_P" >&5
5855 $as_echo "$libc_cv_need_minus_P" >&6; }
5856 if test $libc_cv_need_minus_P = yes; then
5857 config_vars="$config_vars
5858 asm-CPPFLAGS = -P # The assembler can't grok cpp's # line directives."
5861 { $as_echo "$as_me:$LINENO: checking whether .text pseudo-op must be used" >&5
5862 $as_echo_n "checking whether .text pseudo-op must be used... " >&6; }
5863 if test "${libc_cv_dot_text+set}" = set; then
5864 $as_echo_n "(cached) " >&6
5865 else
5866 cat > conftest.s <<EOF
5867 .text
5869 libc_cv_dot_text=
5870 if { ac_try='${CC-cc} $ASFLAGS -c conftest.s 1>&5'
5871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5872 (eval $ac_try) 2>&5
5873 ac_status=$?
5874 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5875 (exit $ac_status); }; }; then
5876 libc_cv_dot_text=.text
5878 rm -f conftest*
5881 if test -z "$libc_cv_dot_text"; then
5882 { $as_echo "$as_me:$LINENO: result: no" >&5
5883 $as_echo "no" >&6; }
5884 else
5885 { $as_echo "$as_me:$LINENO: result: yes" >&5
5886 $as_echo "yes" >&6; }
5889 { $as_echo "$as_me:$LINENO: checking for assembler global-symbol directive" >&5
5890 $as_echo_n "checking for assembler global-symbol directive... " >&6; }
5891 if test "${libc_cv_asm_global_directive+set}" = set; then
5892 $as_echo_n "(cached) " >&6
5893 else
5894 libc_cv_asm_global_directive=UNKNOWN
5895 for ac_globl in .globl .global .EXPORT; do
5896 cat > conftest.s <<EOF
5897 ${libc_cv_dot_text}
5898 ${ac_globl} foo
5899 foo:
5901 if { ac_try='${CC-cc} $ASFLAGS -c conftest.s 1>&5'
5902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5903 (eval $ac_try) 2>&5
5904 ac_status=$?
5905 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5906 (exit $ac_status); }; }; then
5907 libc_cv_asm_global_directive=${ac_globl}
5909 rm -f conftest*
5910 test $libc_cv_asm_global_directive != UNKNOWN && break
5911 done
5913 { $as_echo "$as_me:$LINENO: result: $libc_cv_asm_global_directive" >&5
5914 $as_echo "$libc_cv_asm_global_directive" >&6; }
5915 if test $libc_cv_asm_global_directive = UNKNOWN; then
5916 { { $as_echo "$as_me:$LINENO: error: cannot determine asm global directive" >&5
5917 $as_echo "$as_me: error: cannot determine asm global directive" >&2;}
5918 { (exit 1); exit 1; }; }
5919 else
5920 cat >>confdefs.h <<_ACEOF
5921 #define ASM_GLOBAL_DIRECTIVE ${libc_cv_asm_global_directive}
5922 _ACEOF
5926 { $as_echo "$as_me:$LINENO: checking for .set assembler directive" >&5
5927 $as_echo_n "checking for .set assembler directive... " >&6; }
5928 if test "${libc_cv_asm_set_directive+set}" = set; then
5929 $as_echo_n "(cached) " >&6
5930 else
5931 cat > conftest.s <<EOF
5932 ${libc_cv_dot_text}
5933 foo:
5934 .set glibc_conftest_frobozz,foo
5935 $libc_cv_asm_global_directive glibc_conftest_frobozz
5937 # The alpha-dec-osf1 assembler gives only a warning for `.set'
5938 # (but it doesn't work), so we must do a linking check to be sure.
5939 cat > conftest1.c <<\EOF
5940 extern int glibc_conftest_frobozz;
5941 void _start() { glibc_conftest_frobozz = 1; }
5943 if ${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \
5944 -nostartfiles -nostdlib \
5945 -o conftest conftest.s conftest1.c 1>&5 2>&5; then
5946 libc_cv_asm_set_directive=yes
5947 else
5948 libc_cv_asm_set_directive=no
5950 rm -f conftest*
5952 { $as_echo "$as_me:$LINENO: result: $libc_cv_asm_set_directive" >&5
5953 $as_echo "$libc_cv_asm_set_directive" >&6; }
5954 if test $libc_cv_asm_set_directive = yes; then
5955 cat >>confdefs.h <<\_ACEOF
5956 #define HAVE_ASM_SET_DIRECTIVE 1
5957 _ACEOF
5961 { $as_echo "$as_me:$LINENO: checking for assembler .type directive prefix" >&5
5962 $as_echo_n "checking for assembler .type directive prefix... " >&6; }
5963 if test "${libc_cv_asm_type_prefix+set}" = set; then
5964 $as_echo_n "(cached) " >&6
5965 else
5966 libc_cv_asm_type_prefix=no
5967 for ac_try_prefix in '@' '%' '#'; do
5968 cat > conftest.s <<EOF
5969 ${libc_cv_dot_text}
5970 ${libc_cv_asm_global_directive} foo
5971 .type foo, ${ac_try_prefix}object
5972 .size foo, 1
5973 foo:
5974 .byte 1
5976 if { ac_try='${CC-cc} $ASFLAGS -c conftest.s 1>&5'
5977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5978 (eval $ac_try) 2>&5
5979 ac_status=$?
5980 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5981 (exit $ac_status); }; }; then
5982 libc_cv_asm_type_prefix=${ac_try_prefix}
5984 rm -f conftest*
5985 test "x$libc_cv_asm_type_prefix" != xno && break
5986 done
5988 { $as_echo "$as_me:$LINENO: result: $libc_cv_asm_type_prefix" >&5
5989 $as_echo "$libc_cv_asm_type_prefix" >&6; }
5990 if test "x$libc_cv_asm_type_prefix" != xno; then
5991 cat >>confdefs.h <<_ACEOF
5992 #define ASM_TYPE_DIRECTIVE_PREFIX ${libc_cv_asm_type_prefix}
5993 _ACEOF
5997 { $as_echo "$as_me:$LINENO: checking for assembler gnu_unique_object symbol type" >&5
5998 $as_echo_n "checking for assembler gnu_unique_object symbol type... " >&6; }
5999 if test "${libc_cv_asm_unique_object+set}" = set; then
6000 $as_echo_n "(cached) " >&6
6001 else
6002 cat > conftest.s <<EOF
6003 ${libc_cv_dot_text}
6004 _sym:
6005 .type _sym, ${libc_cv_asm_type_prefix}gnu_unique_object
6007 if ${CC-cc} -c $ASFLAGS conftest.s 1>&5 2>&5; then
6008 libc_cv_asm_unique_object=yes
6009 else
6010 libc_cv_asm_unique_object=no
6012 rm -f conftest*
6014 { $as_echo "$as_me:$LINENO: result: $libc_cv_asm_unique_object" >&5
6015 $as_echo "$libc_cv_asm_unique_object" >&6; }
6016 if test $libc_cv_asm_unique_object = yes; then
6017 cat >>confdefs.h <<\_ACEOF
6018 #define HAVE_ASM_UNIQUE_OBJECT 1
6019 _ACEOF
6023 # For the multi-arch option we need support in the assembler.
6024 if test "$multi_arch" = yes; then
6025 if test "x$libc_cv_asm_type_prefix" != xno; then
6026 { $as_echo "$as_me:$LINENO: checking for assembler gnu_indirect_function symbol type support" >&5
6027 $as_echo_n "checking for assembler gnu_indirect_function symbol type support... " >&6; }
6028 if test "${libc_cv_asm_gnu_indirect_function+set}" = set; then
6029 $as_echo_n "(cached) " >&6
6030 else
6031 cat > conftest.s <<EOF
6032 .type foo,%gnu_indirect_function
6034 if ${CC-cc} -c $ASFLAGS conftest.s 1>&5 2>&5;
6035 then
6036 libc_cv_asm_gnu_indirect_function=yes
6037 else
6038 libc_cv_asm_gnu_indirect_function=no
6040 rm -f conftest*
6042 { $as_echo "$as_me:$LINENO: result: $libc_cv_asm_gnu_indirect_function" >&5
6043 $as_echo "$libc_cv_asm_gnu_indirect_function" >&6; }
6044 else
6045 libc_cv_asm_gnu_indirect_function=no
6047 if test x"$libc_cv_asm_gnu_indirect_function" != xyes; then
6048 { { $as_echo "$as_me:$LINENO: error: --enable-multi-arch support requires assembler and linker support" >&5
6049 $as_echo "$as_me: error: --enable-multi-arch support requires assembler and linker support" >&2;}
6050 { (exit 1); exit 1; }; }
6054 { $as_echo "$as_me:$LINENO: checking for .symver assembler directive" >&5
6055 $as_echo_n "checking for .symver assembler directive... " >&6; }
6056 if test "${libc_cv_asm_symver_directive+set}" = set; then
6057 $as_echo_n "(cached) " >&6
6058 else
6059 cat > conftest.s <<EOF
6060 ${libc_cv_dot_text}
6061 _sym:
6062 .symver _sym,sym@VERS
6064 if ${CC-cc} -c $ASFLAGS conftest.s 1>&5 2>&5; then
6065 libc_cv_asm_symver_directive=yes
6066 else
6067 libc_cv_asm_symver_directive=no
6069 rm -f conftest*
6071 { $as_echo "$as_me:$LINENO: result: $libc_cv_asm_symver_directive" >&5
6072 $as_echo "$libc_cv_asm_symver_directive" >&6; }
6073 { $as_echo "$as_me:$LINENO: checking for ld --version-script" >&5
6074 $as_echo_n "checking for ld --version-script... " >&6; }
6075 if test "${libc_cv_ld_version_script_option+set}" = set; then
6076 $as_echo_n "(cached) " >&6
6077 else
6078 if test $libc_cv_asm_symver_directive = yes; then
6079 cat > conftest.s <<EOF
6080 ${libc_cv_dot_text}
6081 _sym:
6082 .symver _sym,sym@VERS
6084 cat > conftest.map <<EOF
6085 VERS_1 {
6086 global: sym;
6089 VERS_2 {
6090 global: sym;
6091 } VERS_1;
6093 if ${CC-cc} -c $ASFLAGS conftest.s 1>&5 2>&5; then
6094 if { ac_try='${CC-cc} $CFLAGS $LDFLAGS -shared
6095 -o conftest.so conftest.o
6096 -nostartfiles -nostdlib
6097 -Wl,--version-script,conftest.map
6098 1>&5'
6099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6100 (eval $ac_try) 2>&5
6101 ac_status=$?
6102 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6103 (exit $ac_status); }; };
6104 then
6105 libc_cv_ld_version_script_option=yes
6106 else
6107 libc_cv_ld_version_script_option=no
6109 else
6110 libc_cv_ld_version_script_option=no
6112 else
6113 libc_cv_ld_version_script_option=no
6115 rm -f conftest*
6117 { $as_echo "$as_me:$LINENO: result: $libc_cv_ld_version_script_option" >&5
6118 $as_echo "$libc_cv_ld_version_script_option" >&6; }
6119 if test $shared != no &&
6120 test $libc_cv_asm_symver_directive = yes &&
6121 test $libc_cv_ld_version_script_option = yes &&
6122 test $enable_versioning = yes; then
6123 VERSIONING=yes
6124 cat >>confdefs.h <<\_ACEOF
6125 #define DO_VERSIONING 1
6126 _ACEOF
6128 else
6129 VERSIONING=no
6133 if test $elf = yes && test $shared != no && test $VERSIONING = no; then
6134 echo "\
6135 *** WARNING: You should not compile GNU libc without versioning. Not using
6136 *** versioning will introduce incompatibilities so that old binaries
6137 *** will not run anymore.
6138 *** For versioning you need recent binutils (binutils-2.8.1.0.23 or newer)."
6140 if test $elf = yes; then
6141 { $as_echo "$as_me:$LINENO: checking for .previous assembler directive" >&5
6142 $as_echo_n "checking for .previous assembler directive... " >&6; }
6143 if test "${libc_cv_asm_previous_directive+set}" = set; then
6144 $as_echo_n "(cached) " >&6
6145 else
6146 cat > conftest.s <<EOF
6147 .section foo_section
6148 .previous
6150 if { ac_try='${CC-cc} -c $ASFLAGS conftest.s 1>&5'
6151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6152 (eval $ac_try) 2>&5
6153 ac_status=$?
6154 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6155 (exit $ac_status); }; }; then
6156 libc_cv_asm_previous_directive=yes
6157 else
6158 libc_cv_asm_previous_directive=no
6160 rm -f conftest*
6162 { $as_echo "$as_me:$LINENO: result: $libc_cv_asm_previous_directive" >&5
6163 $as_echo "$libc_cv_asm_previous_directive" >&6; }
6164 if test $libc_cv_asm_previous_directive = yes; then
6165 cat >>confdefs.h <<\_ACEOF
6166 #define HAVE_ASM_PREVIOUS_DIRECTIVE 1
6167 _ACEOF
6169 else
6170 { $as_echo "$as_me:$LINENO: checking for .popsection assembler directive" >&5
6171 $as_echo_n "checking for .popsection assembler directive... " >&6; }
6172 if test "${libc_cv_asm_popsection_directive+set}" = set; then
6173 $as_echo_n "(cached) " >&6
6174 else
6175 cat > conftest.s <<EOF
6176 .pushsection foo_section
6177 .popsection
6179 if { ac_try='${CC-cc} -c $ASFLAGS conftest.s 1>&5'
6180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6181 (eval $ac_try) 2>&5
6182 ac_status=$?
6183 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6184 (exit $ac_status); }; }; then
6185 libc_cv_asm_popsection_directive=yes
6186 else
6187 libc_cv_asm_popsection_directive=no
6189 rm -f conftest*
6191 { $as_echo "$as_me:$LINENO: result: $libc_cv_asm_popsection_directive" >&5
6192 $as_echo "$libc_cv_asm_popsection_directive" >&6; }
6193 if test $libc_cv_asm_popsection_directive = yes; then
6194 cat >>confdefs.h <<\_ACEOF
6195 #define HAVE_ASM_POPSECTION_DIRECTIVE 1
6196 _ACEOF
6200 { $as_echo "$as_me:$LINENO: checking for .protected and .hidden assembler directive" >&5
6201 $as_echo_n "checking for .protected and .hidden assembler directive... " >&6; }
6202 if test "${libc_cv_asm_protected_directive+set}" = set; then
6203 $as_echo_n "(cached) " >&6
6204 else
6205 cat > conftest.s <<EOF
6206 .protected foo
6207 foo:
6208 .hidden bar
6209 bar:
6211 if { ac_try='${CC-cc} -c $ASFLAGS conftest.s 1>&5'
6212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6213 (eval $ac_try) 2>&5
6214 ac_status=$?
6215 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6216 (exit $ac_status); }; }; then
6217 libc_cv_asm_protected_directive=yes
6218 else
6219 { { $as_echo "$as_me:$LINENO: error: assembler support for symbol visibility is required" >&5
6220 $as_echo "$as_me: error: assembler support for symbol visibility is required" >&2;}
6221 { (exit 1); exit 1; }; }
6223 rm -f conftest*
6225 { $as_echo "$as_me:$LINENO: result: $libc_cv_asm_protected_directive" >&5
6226 $as_echo "$libc_cv_asm_protected_directive" >&6; }
6228 if test $libc_cv_asm_protected_directive = yes; then
6229 { $as_echo "$as_me:$LINENO: checking whether __attribute__((visibility())) is supported" >&5
6230 $as_echo_n "checking whether __attribute__((visibility())) is supported... " >&6; }
6231 if test "${libc_cv_visibility_attribute+set}" = set; then
6232 $as_echo_n "(cached) " >&6
6233 else
6234 cat > conftest.c <<EOF
6235 int foo __attribute__ ((visibility ("hidden"))) = 1;
6236 int bar __attribute__ ((visibility ("protected"))) = 1;
6238 libc_cv_visibility_attribute=no
6239 if { ac_try='${CC-cc} -Werror -S conftest.c -o conftest.s 1>&5'
6240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6241 (eval $ac_try) 2>&5
6242 ac_status=$?
6243 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6244 (exit $ac_status); }; }; then
6245 if grep '\.hidden.*foo' conftest.s >/dev/null; then
6246 if grep '\.protected.*bar' conftest.s >/dev/null; then
6247 libc_cv_visibility_attribute=yes
6251 rm -f conftest.cs
6254 { $as_echo "$as_me:$LINENO: result: $libc_cv_visibility_attribute" >&5
6255 $as_echo "$libc_cv_visibility_attribute" >&6; }
6256 if test $libc_cv_visibility_attribute != yes; then
6257 { { $as_echo "$as_me:$LINENO: error: compiler support for visibility attribute is required" >&5
6258 $as_echo "$as_me: error: compiler support for visibility attribute is required" >&2;}
6259 { (exit 1); exit 1; }; }
6263 if test $libc_cv_visibility_attribute = yes; then
6264 { $as_echo "$as_me:$LINENO: checking for broken __attribute__((visibility()))" >&5
6265 $as_echo_n "checking for broken __attribute__((visibility()))... " >&6; }
6266 if test "${libc_cv_broken_visibility_attribute+set}" = set; then
6267 $as_echo_n "(cached) " >&6
6268 else
6269 cat > conftest.c <<EOF
6270 int foo (int x);
6271 int bar (int x) __asm__ ("foo") __attribute__ ((visibility ("hidden")));
6272 int bar (int x) { return x; }
6274 libc_cv_broken_visibility_attribute=yes
6275 if { ac_try='${CC-cc} -Werror -S conftest.c -o conftest.s1>&5'
6276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6277 (eval $ac_try) 2>&5
6278 ac_status=$?
6279 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6280 (exit $ac_status); }; }; then
6281 if grep '\.hidden[ _]foo' conftest.s >/dev/null; then
6282 libc_cv_broken_visibility_attribute=no
6285 rm -f conftest.c conftest.s
6288 { $as_echo "$as_me:$LINENO: result: $libc_cv_broken_visibility_attribute" >&5
6289 $as_echo "$libc_cv_broken_visibility_attribute" >&6; }
6290 if test $libc_cv_broken_visibility_attribute = yes; then
6291 { { $as_echo "$as_me:$LINENO: error: working compiler support for visibility attribute is required" >&5
6292 $as_echo "$as_me: error: working compiler support for visibility attribute is required" >&2;}
6293 { (exit 1); exit 1; }; }
6297 { $as_echo "$as_me:$LINENO: checking for broken __attribute__((alias()))" >&5
6298 $as_echo_n "checking for broken __attribute__((alias()))... " >&6; }
6299 if test "${libc_cv_broken_alias_attribute+set}" = set; then
6300 $as_echo_n "(cached) " >&6
6301 else
6302 cat > conftest.c <<EOF
6303 extern int foo (int x) __asm ("xyzzy");
6304 int bar (int x) { return x; }
6305 extern __typeof (bar) foo __attribute ((weak, alias ("bar")));
6306 extern int dfoo;
6307 extern __typeof (dfoo) dfoo __asm ("abccb");
6308 int dfoo = 1;
6310 libc_cv_broken_alias_attribute=yes
6311 if { ac_try='${CC-cc} -Werror -S conftest.c -o conftest.s 1>&5'
6312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6313 (eval $ac_try) 2>&5
6314 ac_status=$?
6315 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6316 (exit $ac_status); }; }; then
6317 if grep 'xyzzy' conftest.s >/dev/null &&
6318 grep 'abccb' conftest.s >/dev/null; then
6319 libc_cv_broken_alias_attribute=no
6322 rm -f conftest.c conftest.s
6325 { $as_echo "$as_me:$LINENO: result: $libc_cv_broken_alias_attribute" >&5
6326 $as_echo "$libc_cv_broken_alias_attribute" >&6; }
6327 if test $libc_cv_broken_alias_attribute = yes; then
6328 { { $as_echo "$as_me:$LINENO: error: working alias attribute support required" >&5
6329 $as_echo "$as_me: error: working alias attribute support required" >&2;}
6330 { (exit 1); exit 1; }; }
6333 if test $libc_cv_visibility_attribute = yes; then
6334 { $as_echo "$as_me:$LINENO: checking whether to put _rtld_local into .sdata section" >&5
6335 $as_echo_n "checking whether to put _rtld_local into .sdata section... " >&6; }
6336 if test "${libc_cv_have_sdata_section+set}" = set; then
6337 $as_echo_n "(cached) " >&6
6338 else
6339 echo "int i;" > conftest.c
6340 libc_cv_have_sdata_section=no
6341 if ${CC-cc} $LDFLAGS -fPIC -shared -Wl,--verbose conftest.c -o conftest.so 2>&1 \
6342 | grep '\.sdata' >/dev/null; then
6343 libc_cv_have_sdata_section=yes
6345 rm -f conftest.c conftest.so
6348 { $as_echo "$as_me:$LINENO: result: $libc_cv_have_sdata_section" >&5
6349 $as_echo "$libc_cv_have_sdata_section" >&6; }
6350 if test $libc_cv_have_sdata_section = yes; then
6351 cat >>confdefs.h <<\_ACEOF
6352 #define HAVE_SDATA_SECTION 1
6353 _ACEOF
6358 { $as_echo "$as_me:$LINENO: checking for .preinit_array/.init_array/.fini_array support" >&5
6359 $as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
6360 if test "${libc_cv_initfini_array+set}" = set; then
6361 $as_echo_n "(cached) " >&6
6362 else
6363 cat > conftest.c <<EOF
6364 int _start (void) { return 0; }
6365 int __start (void) { return 0; }
6366 int foo (void) { return 1; }
6367 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
6369 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS -o conftest conftest.c
6370 -static -nostartfiles -nostdlib 1>&5'
6371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6372 (eval $ac_try) 2>&5
6373 ac_status=$?
6374 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6375 (exit $ac_status); }; }
6376 then
6377 if readelf -S conftest | fgrep INIT_ARRAY > /dev/null; then
6378 libc_cv_initfini_array=yes
6379 else
6380 libc_cv_initfini_array=no
6382 else
6383 libc_cv_initfini_array=no
6385 rm -f conftest*
6387 { $as_echo "$as_me:$LINENO: result: $libc_cv_initfini_array" >&5
6388 $as_echo "$libc_cv_initfini_array" >&6; }
6389 if test $libc_cv_initfini_array != yes; then
6390 { { $as_echo "$as_me:$LINENO: error: Need linker with .init_array/.fini_array support." >&5
6391 $as_echo "$as_me: error: Need linker with .init_array/.fini_array support." >&2;}
6392 { (exit 1); exit 1; }; }
6395 { $as_echo "$as_me:$LINENO: checking for libunwind-support in compiler" >&5
6396 $as_echo_n "checking for libunwind-support in compiler... " >&6; }
6397 if test "${libc_cv_cc_with_libunwind+set}" = set; then
6398 $as_echo_n "(cached) " >&6
6399 else
6401 cat > conftest.c <<EOF
6402 int main (void) { return 0; }
6404 if ${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS -static -o conftest \
6405 conftest.c -v 2>&1 >/dev/null | grep -q " -lunwind "; then
6406 libc_cv_cc_with_libunwind=yes
6407 else
6408 libc_cv_cc_with_libunwind=no
6410 rm -f conftest*
6412 { $as_echo "$as_me:$LINENO: result: $libc_cv_cc_with_libunwind" >&5
6413 $as_echo "$libc_cv_cc_with_libunwind" >&6; }
6415 if test $libc_cv_cc_with_libunwind = yes; then
6416 cat >>confdefs.h <<\_ACEOF
6417 #define HAVE_CC_WITH_LIBUNWIND 1
6418 _ACEOF
6422 { $as_echo "$as_me:$LINENO: checking for -z nodelete option" >&5
6423 $as_echo_n "checking for -z nodelete option... " >&6; }
6424 if test "${libc_cv_z_nodelete+set}" = set; then
6425 $as_echo_n "(cached) " >&6
6426 else
6427 cat > conftest.c <<EOF
6428 int _start (void) { return 42; }
6430 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
6431 -fPIC -shared -o conftest.so conftest.c
6432 -nostartfiles -nostdlib
6433 -Wl,--enable-new-dtags,-z,nodelete 1>&5'
6434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6435 (eval $ac_try) 2>&5
6436 ac_status=$?
6437 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6438 (exit $ac_status); }; }
6439 then
6440 libc_cv_z_nodelete=yes
6441 else
6442 { { $as_echo "$as_me:$LINENO: error: linker with -z nodelete support required" >&5
6443 $as_echo "$as_me: error: linker with -z nodelete support required" >&2;}
6444 { (exit 1); exit 1; }; }
6446 rm -f conftest*
6448 { $as_echo "$as_me:$LINENO: result: $libc_cv_z_nodelete" >&5
6449 $as_echo "$libc_cv_z_nodelete" >&6; }
6451 { $as_echo "$as_me:$LINENO: checking for -z nodlopen option" >&5
6452 $as_echo_n "checking for -z nodlopen option... " >&6; }
6453 if test "${libc_cv_z_nodlopen+set}" = set; then
6454 $as_echo_n "(cached) " >&6
6455 else
6456 cat > conftest.c <<EOF
6457 int _start (void) { return 42; }
6459 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
6460 -fPIC -shared -o conftest.so conftest.c
6461 -nostartfiles -nostdlib
6462 -Wl,--enable-new-dtags,-z,nodlopen 1>&5'
6463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6464 (eval $ac_try) 2>&5
6465 ac_status=$?
6466 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6467 (exit $ac_status); }; }
6468 then
6469 libc_cv_z_nodlopen=yes
6470 else
6471 { { $as_echo "$as_me:$LINENO: error: linker with -z nodlopen support required" >&5
6472 $as_echo "$as_me: error: linker with -z nodlopen support required" >&2;}
6473 { (exit 1); exit 1; }; }
6475 rm -f conftest*
6477 { $as_echo "$as_me:$LINENO: result: $libc_cv_z_nodlopen" >&5
6478 $as_echo "$libc_cv_z_nodlopen" >&6; }
6480 { $as_echo "$as_me:$LINENO: checking for -z initfirst option" >&5
6481 $as_echo_n "checking for -z initfirst option... " >&6; }
6482 if test "${libc_cv_z_initfirst+set}" = set; then
6483 $as_echo_n "(cached) " >&6
6484 else
6485 cat > conftest.c <<EOF
6486 int _start (void) { return 42; }
6488 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
6489 -fPIC -shared -o conftest.so conftest.c
6490 -nostartfiles -nostdlib
6491 -Wl,--enable-new-dtags,-z,initfirst 1>&5'
6492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6493 (eval $ac_try) 2>&5
6494 ac_status=$?
6495 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6496 (exit $ac_status); }; }
6497 then
6498 libc_cv_z_initfirst=yes
6499 else
6500 { { $as_echo "$as_me:$LINENO: error: linker with -z initfirst support required" >&5
6501 $as_echo "$as_me: error: linker with -z initfirst support required" >&2;}
6502 { (exit 1); exit 1; }; }
6504 rm -f conftest*
6506 { $as_echo "$as_me:$LINENO: result: $libc_cv_z_initfirst" >&5
6507 $as_echo "$libc_cv_z_initfirst" >&6; }
6509 case "$base_machine" in
6510 i[34567]86 | x86_64 | powerpc* | s390* | sparc* | alpha*)
6511 { $as_echo "$as_me:$LINENO: checking for -z relro option" >&5
6512 $as_echo_n "checking for -z relro option... " >&6; }
6513 if test "${libc_cv_z_relro+set}" = set; then
6514 $as_echo_n "(cached) " >&6
6515 else
6516 libc_cv_z_relro=no
6517 if { ac_try='${CC-cc} -v --help 2>&1|grep "z relro" 1>&5'
6518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6519 (eval $ac_try) 2>&5
6520 ac_status=$?
6521 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6522 (exit $ac_status); }; }
6523 then
6524 if { ac_try='${CC-cc} -Wl,--verbose 2>&1|grep DATA_SEGMENT_RELRO_END 1>&5'
6525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6526 (eval $ac_try) 2>&5
6527 ac_status=$?
6528 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6529 (exit $ac_status); }; }
6530 then
6531 libc_cv_z_relro=yes
6535 { $as_echo "$as_me:$LINENO: result: $libc_cv_z_relro" >&5
6536 $as_echo "$libc_cv_z_relro" >&6; }
6537 if test "$libc_cv_z_relro" = no; then
6538 { { $as_echo "$as_me:$LINENO: error: linker with -z relro support required" >&5
6539 $as_echo "$as_me: error: linker with -z relro support required" >&2;}
6540 { (exit 1); exit 1; }; }
6543 *) ;;
6544 esac
6546 { $as_echo "$as_me:$LINENO: checking for -Bgroup option" >&5
6547 $as_echo_n "checking for -Bgroup option... " >&6; }
6548 if test "${libc_cv_Bgroup+set}" = set; then
6549 $as_echo_n "(cached) " >&6
6550 else
6551 cat > conftest.c <<EOF
6552 int _start (void) { return 42; }
6554 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
6555 -fPIC -shared -o conftest.so conftest.c
6556 -Wl,-Bgroup -nostdlib 1>&5'
6557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6558 (eval $ac_try) 2>&5
6559 ac_status=$?
6560 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6561 (exit $ac_status); }; }
6562 then
6563 libc_cv_Bgroup=yes
6564 else
6565 libc_cv_Bgroup=no
6567 rm -f conftest*
6569 { $as_echo "$as_me:$LINENO: result: $libc_cv_Bgroup" >&5
6570 $as_echo "$libc_cv_Bgroup" >&6; }
6573 { $as_echo "$as_me:$LINENO: checking for libgcc_s suffix" >&5
6574 $as_echo_n "checking for libgcc_s suffix... " >&6; }
6575 if test "${libc_cv_libgcc_s_suffix+set}" = set; then
6576 $as_echo_n "(cached) " >&6
6577 else
6578 cat > conftest.c <<EOF
6579 int main (void) { return 0; }
6581 libc_cv_libgcc_s_suffix=`${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \
6582 -fPIC -shared -shared-libgcc -o conftest.so \
6583 conftest.c -v 2>&1 >/dev/null \
6584 | sed -n 's/^.* -lgcc_s\([^ ]*\) .*$/\1/p'`
6585 rm -f conftest*
6587 { $as_echo "$as_me:$LINENO: result: $libc_cv_libgcc_s_suffix" >&5
6588 $as_echo "$libc_cv_libgcc_s_suffix" >&6; }
6591 { $as_echo "$as_me:$LINENO: checking for --as-needed option" >&5
6592 $as_echo_n "checking for --as-needed option... " >&6; }
6593 if test "${libc_cv_as_needed+set}" = set; then
6594 $as_echo_n "(cached) " >&6
6595 else
6596 cat > conftest.c <<EOF
6597 int main (void) { return 0; }
6599 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
6600 -fPIC -shared -o conftest.so conftest.c
6601 -lgcc_s$libc_cv_libgcc_s_suffix -Wl,--as-needed
6602 -nostdlib 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 then
6609 libc_cv_as_needed=yes
6610 else
6611 libc_cv_as_needed=no
6613 rm -f conftest*
6615 { $as_echo "$as_me:$LINENO: result: $libc_cv_as_needed" >&5
6616 $as_echo "$libc_cv_as_needed" >&6; }
6619 ASFLAGS_config=
6620 { $as_echo "$as_me:$LINENO: checking whether --noexecstack is desirable for .S files" >&5
6621 $as_echo_n "checking whether --noexecstack is desirable for .S files... " >&6; }
6622 if test "${libc_cv_as_noexecstack+set}" = set; then
6623 $as_echo_n "(cached) " >&6
6624 else
6625 cat > conftest.c <<EOF
6626 void foo (void) { }
6628 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS
6629 -S -o conftest.s conftest.c 1>&5'
6630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6631 (eval $ac_try) 2>&5
6632 ac_status=$?
6633 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6634 (exit $ac_status); }; } \
6635 && grep -q .note.GNU-stack conftest.s \
6636 && { ac_try='${CC-cc} $ASFLAGS -Wa,--noexecstack
6637 -c -o conftest.o conftest.s 1>&5'
6638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6639 (eval $ac_try) 2>&5
6640 ac_status=$?
6641 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6642 (exit $ac_status); }; }
6643 then
6644 libc_cv_as_noexecstack=yes
6645 else
6646 libc_cv_as_noexecstack=no
6648 rm -f conftest*
6650 { $as_echo "$as_me:$LINENO: result: $libc_cv_as_noexecstack" >&5
6651 $as_echo "$libc_cv_as_noexecstack" >&6; }
6652 if test $libc_cv_as_noexecstack = yes; then
6653 ASFLAGS_config="$ASFLAGS_config -Wa,--noexecstack"
6657 { $as_echo "$as_me:$LINENO: checking for -z combreloc" >&5
6658 $as_echo_n "checking for -z combreloc... " >&6; }
6659 if test "${libc_cv_z_combreloc+set}" = set; then
6660 $as_echo_n "(cached) " >&6
6661 else
6662 cat > conftest.c <<EOF
6663 extern int bar (int);
6664 extern int mumble;
6665 int foo (void) { return bar (mumble); }
6667 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
6668 -fPIC -shared -o conftest.so conftest.c
6669 -nostdlib -nostartfiles
6670 -Wl,-z,combreloc 1>&5'
6671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6672 (eval $ac_try) 2>&5
6673 ac_status=$?
6674 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6675 (exit $ac_status); }; }
6676 then
6677 if readelf -S conftest.so | grep '\.rel\(a\|\)\.dyn' > /dev/null; then
6678 libc_cv_z_combreloc=yes
6679 else
6680 libc_cv_z_combreloc=no
6682 else
6683 libc_cv_z_combreloc=no
6685 rm -f conftest*
6687 { $as_echo "$as_me:$LINENO: result: $libc_cv_z_combreloc" >&5
6688 $as_echo "$libc_cv_z_combreloc" >&6; }
6689 if test "$libc_cv_z_combreloc" = yes; then
6690 cat >>confdefs.h <<\_ACEOF
6691 #define HAVE_Z_COMBRELOC 1
6692 _ACEOF
6697 { $as_echo "$as_me:$LINENO: checking for -z execstack" >&5
6698 $as_echo_n "checking for -z execstack... " >&6; }
6699 if test "${libc_cv_z_execstack+set}" = set; then
6700 $as_echo_n "(cached) " >&6
6701 else
6702 cat > conftest.c <<EOF
6703 int _start (void) { return 42; }
6705 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
6706 -fPIC -shared -o conftest.so conftest.c
6707 -Wl,-z,execstack -nostdlib
6708 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_z_execstack=yes
6716 else
6717 libc_cv_z_execstack=no
6719 rm -f conftest*
6721 { $as_echo "$as_me:$LINENO: result: $libc_cv_z_execstack" >&5
6722 $as_echo "$libc_cv_z_execstack" >&6; }
6725 { $as_echo "$as_me:$LINENO: checking for -fpie" >&5
6726 $as_echo_n "checking for -fpie... " >&6; }
6727 if test "${libc_cv_fpie+set}" = set; then
6728 $as_echo_n "(cached) " >&6
6729 else
6730 cat > conftest.c <<EOF
6731 int foo;
6732 main () { return 0;}
6734 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS -pie -fpie
6735 -o conftest conftest.c 1>&5'
6736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6737 (eval $ac_try) 2>&5
6738 ac_status=$?
6739 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6740 (exit $ac_status); }; }
6741 then
6742 libc_cv_fpie=yes
6743 else
6744 libc_cv_fpie=no
6746 rm -f conftest*
6748 { $as_echo "$as_me:$LINENO: result: $libc_cv_fpie" >&5
6749 $as_echo "$libc_cv_fpie" >&6; }
6753 { $as_echo "$as_me:$LINENO: checking for --hash-style option" >&5
6754 $as_echo_n "checking for --hash-style option... " >&6; }
6755 if test "${libc_cv_hashstyle+set}" = set; then
6756 $as_echo_n "(cached) " >&6
6757 else
6758 cat > conftest.c <<EOF
6759 int _start (void) { return 42; }
6761 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
6762 -fPIC -shared -o conftest.so conftest.c
6763 -Wl,--hash-style=both -nostdlib 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_hashstyle=yes
6771 else
6772 libc_cv_hashstyle=no
6774 rm -f conftest*
6776 { $as_echo "$as_me:$LINENO: result: $libc_cv_hashstyle" >&5
6777 $as_echo "$libc_cv_hashstyle" >&6; }
6781 { $as_echo "$as_me:$LINENO: checking for -fno-toplevel-reorder -fno-section-anchors" >&5
6782 $as_echo_n "checking for -fno-toplevel-reorder -fno-section-anchors... " >&6; }
6783 if test "${libc_cv_fno_toplevel_reorder+set}" = set; then
6784 $as_echo_n "(cached) " >&6
6785 else
6786 cat > conftest.c <<EOF
6787 int foo;
6789 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -S -fno-toplevel-reorder -fno-section-anchors
6790 conftest.c 1>&5'
6791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6792 (eval $ac_try) 2>&5
6793 ac_status=$?
6794 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6795 (exit $ac_status); }; }
6796 then
6797 libc_cv_fno_toplevel_reorder=yes
6798 else
6799 libc_cv_fno_toplevel_reorder=no
6801 rm -f conftest*
6803 { $as_echo "$as_me:$LINENO: result: $libc_cv_fno_toplevel_reorder" >&5
6804 $as_echo "$libc_cv_fno_toplevel_reorder" >&6; }
6805 if test $libc_cv_fno_toplevel_reorder = yes; then
6806 fno_unit_at_a_time="-fno-toplevel-reorder -fno-section-anchors"
6807 else
6808 fno_unit_at_a_time=-fno-unit-at-a-time
6812 { $as_echo "$as_me:$LINENO: checking for -fstack-protector" >&5
6813 $as_echo_n "checking for -fstack-protector... " >&6; }
6814 if test "${libc_cv_ssp+set}" = set; then
6815 $as_echo_n "(cached) " >&6
6816 else
6817 cat > conftest.c <<EOF
6818 int foo;
6819 main () { return 0;}
6821 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS -Werror -fstack-protector
6822 -o conftest conftest.c 1>&5'
6823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6824 (eval $ac_try) 2>&5
6825 ac_status=$?
6826 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6827 (exit $ac_status); }; }
6828 then
6829 libc_cv_ssp=yes
6830 else
6831 libc_cv_ssp=no
6833 rm -f conftest*
6835 { $as_echo "$as_me:$LINENO: result: $libc_cv_ssp" >&5
6836 $as_echo "$libc_cv_ssp" >&6; }
6839 { $as_echo "$as_me:$LINENO: checking for -fgnu89-inline" >&5
6840 $as_echo_n "checking for -fgnu89-inline... " >&6; }
6841 if test "${libc_cv_gnu89_inline+set}" = set; then
6842 $as_echo_n "(cached) " >&6
6843 else
6844 cat > conftest.c <<EOF
6845 int foo;
6846 #ifdef __GNUC_GNU_INLINE__
6847 main () { return 0;}
6848 #else
6849 #error
6850 #endif
6852 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -S -std=gnu99 -fgnu89-inline
6853 -o conftest.s conftest.c 1>&5'
6854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6855 (eval $ac_try) 2>&5
6856 ac_status=$?
6857 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6858 (exit $ac_status); }; }
6859 then
6860 libc_cv_gnu89_inline=yes
6861 else
6862 libc_cv_gnu89_inline=no
6864 rm -f conftest*
6866 { $as_echo "$as_me:$LINENO: result: $libc_cv_gnu89_inline" >&5
6867 $as_echo "$libc_cv_gnu89_inline" >&6; }
6868 if test $libc_cv_gnu89_inline = yes; then
6869 libc_cv_gnu89_inline=-fgnu89-inline
6870 else
6871 libc_cv_gnu89_inline=
6875 if test $elf != yes; then
6876 { $as_echo "$as_me:$LINENO: checking for .init and .fini sections" >&5
6877 $as_echo_n "checking for .init and .fini sections... " >&6; }
6878 if test "${libc_cv_have_initfini+set}" = set; then
6879 $as_echo_n "(cached) " >&6
6880 else
6881 cat >conftest.$ac_ext <<_ACEOF
6882 /* confdefs.h. */
6883 _ACEOF
6884 cat confdefs.h >>conftest.$ac_ext
6885 cat >>conftest.$ac_ext <<_ACEOF
6886 /* end confdefs.h. */
6889 main ()
6891 asm (".section .init");
6892 asm (".section .fini");
6893 asm ("${libc_cv_dot_text}");
6895 return 0;
6897 _ACEOF
6898 rm -f conftest.$ac_objext
6899 if { (ac_try="$ac_compile"
6900 case "(($ac_try" in
6901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6902 *) ac_try_echo=$ac_try;;
6903 esac
6904 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6905 $as_echo "$ac_try_echo") >&5
6906 (eval "$ac_compile") 2>conftest.er1
6907 ac_status=$?
6908 grep -v '^ *+' conftest.er1 >conftest.err
6909 rm -f conftest.er1
6910 cat conftest.err >&5
6911 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6912 (exit $ac_status); } && {
6913 test -z "$ac_c_werror_flag" ||
6914 test ! -s conftest.err
6915 } && test -s conftest.$ac_objext; then
6916 libc_cv_have_initfini=yes
6917 else
6918 $as_echo "$as_me: failed program was:" >&5
6919 sed 's/^/| /' conftest.$ac_ext >&5
6921 libc_cv_have_initfini=no
6924 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6926 { $as_echo "$as_me:$LINENO: result: $libc_cv_have_initfini" >&5
6927 $as_echo "$libc_cv_have_initfini" >&6; }
6928 if test $libc_cv_have_initfini = yes; then
6929 cat >>confdefs.h <<\_ACEOF
6930 #define HAVE_INITFINI 1
6931 _ACEOF
6936 if test $elf = yes; then
6937 { $as_echo "$as_me:$LINENO: checking whether cc puts quotes around section names" >&5
6938 $as_echo_n "checking whether cc puts quotes around section names... " >&6; }
6939 if test "${libc_cv_have_section_quotes+set}" = set; then
6940 $as_echo_n "(cached) " >&6
6941 else
6942 cat > conftest.c <<EOF
6943 static const int foo
6944 __attribute__ ((section ("bar"))) = 1;
6946 if ${CC-cc} -S conftest.c -o conftest.s; then
6947 if grep '\.section.*"bar"' conftest.s >/dev/null; then
6948 libc_cv_have_section_quotes=yes
6949 else
6950 libc_cv_have_section_quotes=no
6952 else
6953 libc_cv_have_section_quotes=unknown
6955 rm -f conftest.cs
6958 { $as_echo "$as_me:$LINENO: result: $libc_cv_have_section_quotes" >&5
6959 $as_echo "$libc_cv_have_section_quotes" >&6; }
6960 if test $libc_cv_have_section_quotes = yes; then
6961 cat >>confdefs.h <<\_ACEOF
6962 #define HAVE_SECTION_QUOTES 1
6963 _ACEOF
6970 if test $elf = yes; then
6971 libc_cv_asm_underscores=no
6972 else
6973 if test $ac_cv_prog_cc_works = yes; then
6974 { $as_echo "$as_me:$LINENO: checking for _ prefix on C symbol names" >&5
6975 $as_echo_n "checking for _ prefix on C symbol names... " >&6; }
6976 if test "${libc_cv_asm_underscores+set}" = set; then
6977 $as_echo_n "(cached) " >&6
6978 else
6979 cat >conftest.$ac_ext <<_ACEOF
6980 /* confdefs.h. */
6981 _ACEOF
6982 cat confdefs.h >>conftest.$ac_ext
6983 cat >>conftest.$ac_ext <<_ACEOF
6984 /* end confdefs.h. */
6985 asm ("_glibc_foobar:");
6987 main ()
6989 glibc_foobar ();
6991 return 0;
6993 _ACEOF
6994 rm -f conftest.$ac_objext conftest$ac_exeext
6995 if { (ac_try="$ac_link"
6996 case "(($ac_try" in
6997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6998 *) ac_try_echo=$ac_try;;
6999 esac
7000 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7001 $as_echo "$ac_try_echo") >&5
7002 (eval "$ac_link") 2>conftest.er1
7003 ac_status=$?
7004 grep -v '^ *+' conftest.er1 >conftest.err
7005 rm -f conftest.er1
7006 cat conftest.err >&5
7007 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7008 (exit $ac_status); } && {
7009 test -z "$ac_c_werror_flag" ||
7010 test ! -s conftest.err
7011 } && test -s conftest$ac_exeext && {
7012 test "$cross_compiling" = yes ||
7013 $as_test_x conftest$ac_exeext
7014 }; then
7015 libc_cv_asm_underscores=yes
7016 else
7017 $as_echo "$as_me: failed program was:" >&5
7018 sed 's/^/| /' conftest.$ac_ext >&5
7020 libc_cv_asm_underscores=no
7023 rm -rf conftest.dSYM
7024 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7025 conftest$ac_exeext conftest.$ac_ext
7027 { $as_echo "$as_me:$LINENO: result: $libc_cv_asm_underscores" >&5
7028 $as_echo "$libc_cv_asm_underscores" >&6; }
7029 else
7030 { $as_echo "$as_me:$LINENO: checking for _ prefix on C symbol names" >&5
7031 $as_echo_n "checking for _ prefix on C symbol names... " >&6; }
7032 if test "${libc_cv_asm_underscores+set}" = set; then
7033 $as_echo_n "(cached) " >&6
7034 else
7035 cat > conftest.$ac_ext <<EOF
7036 #line $LINENO "configure"
7037 #include "confdefs.h"
7038 void underscore_test(void) {
7039 return; }
7041 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7042 (eval $ac_compile) 2>&5
7043 ac_status=$?
7044 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7045 (exit $ac_status); }; then
7046 if grep _underscore_test conftest* >/dev/null; then
7047 rm -f conftest*
7048 libc_cv_asm_underscores=yes
7049 else
7050 rm -f conftest*
7051 libc_cv_asm_underscores=no
7053 else
7054 echo "configure: failed program was:" >&5
7055 cat conftest.$ac_ext >&5
7056 rm -f conftest*
7057 libc_cv_asm_underscores=no
7059 rm -f conftest*
7061 { $as_echo "$as_me:$LINENO: result: $libc_cv_asm_underscores" >&5
7062 $as_echo "$libc_cv_asm_underscores" >&6; }
7065 if test $libc_cv_asm_underscores = no; then
7066 cat >>confdefs.h <<\_ACEOF
7067 #define NO_UNDERSCORES 1
7068 _ACEOF
7072 if test $elf = yes; then
7073 libc_cv_weak_symbols=yes
7076 { $as_echo "$as_me:$LINENO: checking for assembler .weak directive" >&5
7077 $as_echo_n "checking for assembler .weak directive... " >&6; }
7078 if test "${libc_cv_asm_weak_directive+set}" = set; then
7079 $as_echo_n "(cached) " >&6
7080 else
7081 cat > conftest.s <<EOF
7082 ${libc_cv_dot_text}
7083 ${libc_cv_asm_global_directive} foo
7084 foo:
7085 .weak foo
7086 .weak bar; bar = foo
7088 if { ac_try='${CC-cc} $ASFLAGS -c conftest.s 1>&5'
7089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7090 (eval $ac_try) 2>&5
7091 ac_status=$?
7092 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7093 (exit $ac_status); }; }; then
7094 libc_cv_asm_weak_directive=yes
7095 else
7096 libc_cv_asm_weak_directive=no
7098 rm -f conftest*
7100 { $as_echo "$as_me:$LINENO: result: $libc_cv_asm_weak_directive" >&5
7101 $as_echo "$libc_cv_asm_weak_directive" >&6; }
7103 if test $libc_cv_asm_weak_directive = no; then
7104 { $as_echo "$as_me:$LINENO: checking for assembler .weakext directive" >&5
7105 $as_echo_n "checking for assembler .weakext directive... " >&6; }
7106 if test "${libc_cv_asm_weakext_directive+set}" = set; then
7107 $as_echo_n "(cached) " >&6
7108 else
7109 cat > conftest.s <<EOF
7110 ${libc_cv_dot_text}
7111 ${libc_cv_asm_global_directive} foo
7112 foo:
7113 .weakext bar foo
7114 .weakext baz
7115 ${libc_cv_asm_global_directive} baz
7116 baz:
7118 if { ac_try='${CC-cc} $ASFLAGS -c conftest.s 1>&5'
7119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7120 (eval $ac_try) 2>&5
7121 ac_status=$?
7122 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7123 (exit $ac_status); }; }; then
7124 libc_cv_asm_weakext_directive=yes
7125 else
7126 libc_cv_asm_weakext_directive=no
7128 rm -f conftest*
7130 { $as_echo "$as_me:$LINENO: result: $libc_cv_asm_weakext_directive" >&5
7131 $as_echo "$libc_cv_asm_weakext_directive" >&6; }
7133 fi # no .weak
7135 if test $libc_cv_asm_weak_directive = yes; then
7136 cat >>confdefs.h <<\_ACEOF
7137 #define HAVE_ASM_WEAK_DIRECTIVE 1
7138 _ACEOF
7140 elif test $libc_cv_asm_weakext_directive = yes; then
7141 cat >>confdefs.h <<\_ACEOF
7142 #define HAVE_ASM_WEAKEXT_DIRECTIVE 1
7143 _ACEOF
7147 { $as_echo "$as_me:$LINENO: checking whether CFI directives are supported" >&5
7148 $as_echo_n "checking whether CFI directives are supported... " >&6; }
7149 if test "${libc_cv_asm_cfi_directives+set}" = set; then
7150 $as_echo_n "(cached) " >&6
7151 else
7152 case $machine in
7153 sparc/sparc64*) cfi_offset=2047;;
7154 *) cfi_offset=0;;
7155 esac
7156 cat > conftest.s <<EOF
7157 .text
7158 .type func,%function
7159 func:
7160 .cfi_startproc
7161 .cfi_remember_state
7162 .cfi_rel_offset 1, $cfi_offset
7163 .cfi_endproc
7165 if { ac_try='${CC-cc} $ASFLAGS -c conftest.s 1>&5'
7166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7167 (eval $ac_try) 2>&5
7168 ac_status=$?
7169 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7170 (exit $ac_status); }; }; then
7171 libc_cv_asm_cfi_directives=yes
7172 else
7173 libc_cv_asm_cfi_directives=no
7175 rm -f conftest*
7177 { $as_echo "$as_me:$LINENO: result: $libc_cv_asm_cfi_directives" >&5
7178 $as_echo "$libc_cv_asm_cfi_directives" >&6; }
7179 if test $libc_cv_asm_cfi_directives = yes; then
7180 cat >>confdefs.h <<\_ACEOF
7181 #define HAVE_ASM_CFI_DIRECTIVES 1
7182 _ACEOF
7186 { $as_echo "$as_me:$LINENO: checking for ld --no-whole-archive" >&5
7187 $as_echo_n "checking for ld --no-whole-archive... " >&6; }
7188 if test "${libc_cv_ld_no_whole_archive+set}" = set; then
7189 $as_echo_n "(cached) " >&6
7190 else
7191 cat > conftest.c <<\EOF
7192 _start () {}
7193 int __eh_pc;
7194 __throw () {}
7196 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
7197 -nostdlib -nostartfiles -Wl,--no-whole-archive
7198 -o conftest conftest.c 1>&5'
7199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7200 (eval $ac_try) 2>&5
7201 ac_status=$?
7202 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7203 (exit $ac_status); }; }; then
7204 libc_cv_ld_no_whole_archive=yes
7205 else
7206 libc_cv_ld_no_whole_archive=no
7208 rm -f conftest*
7210 { $as_echo "$as_me:$LINENO: result: $libc_cv_ld_no_whole_archive" >&5
7211 $as_echo "$libc_cv_ld_no_whole_archive" >&6; }
7212 if test $libc_cv_ld_no_whole_archive = yes; then
7213 no_whole_archive=-Wl,--no-whole-archive
7216 { $as_echo "$as_me:$LINENO: checking for gcc -fexceptions" >&5
7217 $as_echo_n "checking for gcc -fexceptions... " >&6; }
7218 if test "${libc_cv_gcc_exceptions+set}" = set; then
7219 $as_echo_n "(cached) " >&6
7220 else
7221 cat > conftest.c <<\EOF
7222 _start () {}
7223 int __eh_pc;
7224 __throw () {}
7226 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
7227 -nostdlib -nostartfiles -fexceptions
7228 -o conftest conftest.c 1>&5'
7229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7230 (eval $ac_try) 2>&5
7231 ac_status=$?
7232 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7233 (exit $ac_status); }; }; then
7234 libc_cv_gcc_exceptions=yes
7235 else
7236 libc_cv_gcc_exceptions=no
7238 rm -f conftest*
7240 { $as_echo "$as_me:$LINENO: result: $libc_cv_gcc_exceptions" >&5
7241 $as_echo "$libc_cv_gcc_exceptions" >&6; }
7242 if test $libc_cv_gcc_exceptions = yes; then
7243 exceptions=-fexceptions
7246 if test "$host_cpu" = powerpc ; then
7247 # Check for a bug present in at least versions 2.8.x of GCC
7248 # and versions 1.0.x of EGCS.
7249 { $as_echo "$as_me:$LINENO: checking whether clobbering cr0 causes problems" >&5
7250 $as_echo_n "checking whether clobbering cr0 causes problems... " >&6; }
7251 if test "${libc_cv_c_asmcr0_bug+set}" = set; then
7252 $as_echo_n "(cached) " >&6
7253 else
7254 cat >conftest.$ac_ext <<_ACEOF
7255 /* confdefs.h. */
7256 _ACEOF
7257 cat confdefs.h >>conftest.$ac_ext
7258 cat >>conftest.$ac_ext <<_ACEOF
7259 /* end confdefs.h. */
7260 int tester(int x) { asm ("" : : : "cc"); return x & 123; }
7262 main ()
7266 return 0;
7268 _ACEOF
7269 rm -f conftest.$ac_objext
7270 if { (ac_try="$ac_compile"
7271 case "(($ac_try" in
7272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7273 *) ac_try_echo=$ac_try;;
7274 esac
7275 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7276 $as_echo "$ac_try_echo") >&5
7277 (eval "$ac_compile") 2>conftest.er1
7278 ac_status=$?
7279 grep -v '^ *+' conftest.er1 >conftest.err
7280 rm -f conftest.er1
7281 cat conftest.err >&5
7282 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7283 (exit $ac_status); } && {
7284 test -z "$ac_c_werror_flag" ||
7285 test ! -s conftest.err
7286 } && test -s conftest.$ac_objext; then
7287 libc_cv_c_asmcr0_bug='no'
7288 else
7289 $as_echo "$as_me: failed program was:" >&5
7290 sed 's/^/| /' conftest.$ac_ext >&5
7292 libc_cv_c_asmcr0_bug='yes'
7295 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7297 { $as_echo "$as_me:$LINENO: result: $libc_cv_c_asmcr0_bug" >&5
7298 $as_echo "$libc_cv_c_asmcr0_bug" >&6; }
7299 if test "$libc_cv_c_asmcr0_bug" != 'no'; then
7300 cat >>confdefs.h <<\_ACEOF
7301 #define BROKEN_PPC_ASM_CR0 1
7302 _ACEOF
7307 { $as_echo "$as_me:$LINENO: checking for __builtin_expect" >&5
7308 $as_echo_n "checking for __builtin_expect... " >&6; }
7309 if test "${libc_cv_gcc_builtin_expect+set}" = set; then
7310 $as_echo_n "(cached) " >&6
7311 else
7312 cat > conftest.c <<EOF
7313 #line $LINENO "configure"
7314 int foo (int a)
7316 a = __builtin_expect (a, 10);
7317 return a == 10 ? 0 : 1;
7320 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS -nostdlib -nostartfiles
7321 -o conftest conftest.c -lgcc >&5'
7322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7323 (eval $ac_try) 2>&5
7324 ac_status=$?
7325 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7326 (exit $ac_status); }; }; then
7327 libc_cv_gcc_builtin_expect=yes
7328 else
7329 libc_cv_gcc_builtin_expect=no
7331 rm -f conftest*
7333 { $as_echo "$as_me:$LINENO: result: $libc_cv_gcc_builtin_expect" >&5
7334 $as_echo "$libc_cv_gcc_builtin_expect" >&6; }
7335 if test "$libc_cv_gcc_builtin_expect" = yes; then
7336 cat >>confdefs.h <<\_ACEOF
7337 #define HAVE_BUILTIN_EXPECT 1
7338 _ACEOF
7342 { $as_echo "$as_me:$LINENO: checking for __builtin_memset" >&5
7343 $as_echo_n "checking for __builtin_memset... " >&6; }
7344 if test "${libc_cv_gcc_builtin_memset+set}" = set; then
7345 $as_echo_n "(cached) " >&6
7346 else
7347 cat > conftest.c <<\EOF
7348 void zero (void *x)
7350 __builtin_memset (x, 0, 1000);
7353 if { ac_try='${CC-cc} -O3 -S conftest.c -o - | fgrep "memset" > /dev/null'
7354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7355 (eval $ac_try) 2>&5
7356 ac_status=$?
7357 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7358 (exit $ac_status); }; };
7359 then
7360 libc_cv_gcc_builtin_memset=no
7361 else
7362 libc_cv_gcc_builtin_memset=yes
7364 rm -f conftest*
7366 { $as_echo "$as_me:$LINENO: result: $libc_cv_gcc_builtin_memset" >&5
7367 $as_echo "$libc_cv_gcc_builtin_memset" >&6; }
7368 if test "$libc_cv_gcc_builtin_memset" = yes ; then
7369 cat >>confdefs.h <<\_ACEOF
7370 #define HAVE_BUILTIN_MEMSET 1
7371 _ACEOF
7375 { $as_echo "$as_me:$LINENO: checking for redirection of built-in functions" >&5
7376 $as_echo_n "checking for redirection of built-in functions... " >&6; }
7377 if test "${libc_cv_gcc_builtin_redirection+set}" = set; then
7378 $as_echo_n "(cached) " >&6
7379 else
7380 cat > conftest.c <<\EOF
7381 extern char *strstr (const char *, const char *) __asm ("my_strstr");
7382 char *foo (const char *a, const char *b)
7384 return __builtin_strstr (a, b);
7387 if { ac_try='${CC-cc} -O3 -S conftest.c -o - | fgrep "my_strstr" > /dev/null'
7388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7389 (eval $ac_try) 2>&5
7390 ac_status=$?
7391 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7392 (exit $ac_status); }; };
7393 then
7394 libc_cv_gcc_builtin_redirection=yes
7395 else
7396 libc_cv_gcc_builtin_redirection=no
7398 rm -f conftest*
7400 { $as_echo "$as_me:$LINENO: result: $libc_cv_gcc_builtin_redirection" >&5
7401 $as_echo "$libc_cv_gcc_builtin_redirection" >&6; }
7402 if test "$libc_cv_gcc_builtin_redirection" = yes ; then
7403 cat >>confdefs.h <<\_ACEOF
7404 #define HAVE_BUILTIN_REDIRECTION 1
7405 _ACEOF
7409 if test "x$use__thread" != xno; then
7410 { $as_echo "$as_me:$LINENO: checking for __thread" >&5
7411 $as_echo_n "checking for __thread... " >&6; }
7412 if test "${libc_cv_gcc___thread+set}" = set; then
7413 $as_echo_n "(cached) " >&6
7414 else
7415 cat > conftest.c <<\EOF
7416 __thread int a = 42;
7418 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -c conftest.c >&5'
7419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7420 (eval $ac_try) 2>&5
7421 ac_status=$?
7422 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7423 (exit $ac_status); }; }; then
7424 libc_cv_gcc___thread=yes
7425 else
7426 libc_cv_gcc___thread=no
7428 rm -f conftest*
7430 { $as_echo "$as_me:$LINENO: result: $libc_cv_gcc___thread" >&5
7431 $as_echo "$libc_cv_gcc___thread" >&6; }
7432 if test "$libc_cv_gcc___thread" = yes; then
7433 cat >>confdefs.h <<\_ACEOF
7434 #define HAVE___THREAD 1
7435 _ACEOF
7438 else
7439 libc_cv_gcc___thread=no
7442 if test "$libc_cv_gcc___thread" = yes; then
7443 { $as_echo "$as_me:$LINENO: checking for tls_model attribute" >&5
7444 $as_echo_n "checking for tls_model attribute... " >&6; }
7445 if test "${libc_cv_gcc_tls_model_attr+set}" = set; then
7446 $as_echo_n "(cached) " >&6
7447 else
7448 cat > conftest.c <<\EOF
7449 extern __thread int a __attribute__((tls_model ("initial-exec")));
7451 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -S -Werror conftest.c >&5'
7452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7453 (eval $ac_try) 2>&5
7454 ac_status=$?
7455 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7456 (exit $ac_status); }; }; then
7457 libc_cv_gcc_tls_model_attr=yes
7458 else
7459 libc_cv_gcc_tls_model_attr=no
7461 rm -f conftest*
7463 { $as_echo "$as_me:$LINENO: result: $libc_cv_gcc_tls_model_attr" >&5
7464 $as_echo "$libc_cv_gcc_tls_model_attr" >&6; }
7465 if test "$libc_cv_gcc_tls_model_attr" = yes; then
7466 cat >>confdefs.h <<\_ACEOF
7467 #define HAVE_TLS_MODEL_ATTRIBUTE 1
7468 _ACEOF
7473 if test -n "$submachine"; then
7474 { $as_echo "$as_me:$LINENO: checking for compiler option for CPU variant" >&5
7475 $as_echo_n "checking for compiler option for CPU variant... " >&6; }
7476 if test "${libc_cv_cc_submachine+set}" = set; then
7477 $as_echo_n "(cached) " >&6
7478 else
7479 libc_cv_cc_submachine=no
7480 for opt in "-march=$submachine" "-mcpu=$submachine"; do
7481 if { ac_try='${CC-cc} $opt -xc /dev/null -S -o /dev/null'
7482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7483 (eval $ac_try) 2>&5
7484 ac_status=$?
7485 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7486 (exit $ac_status); }; }; then
7487 libc_cv_cc_submachine="$opt"
7488 break
7490 done
7492 { $as_echo "$as_me:$LINENO: result: $libc_cv_cc_submachine" >&5
7493 $as_echo "$libc_cv_cc_submachine" >&6; }
7494 if test "x$libc_cv_cc_submachine" = xno; then
7495 { { $as_echo "$as_me:$LINENO: error: ${CC-cc} does not support $submachine" >&5
7496 $as_echo "$as_me: error: ${CC-cc} does not support $submachine" >&2;}
7497 { (exit 1); exit 1; }; }
7502 { $as_echo "$as_me:$LINENO: checking for libgd" >&5
7503 $as_echo_n "checking for libgd... " >&6; }
7504 if test "$with_gd" != "no"; then
7505 old_CFLAGS="$CFLAGS"
7506 CFLAGS="$CFLAGS $libgd_include"
7507 old_LDFLAGS="$LDFLAGS"
7508 LDFLAGS="$LDFLAGS $libgd_ldflags"
7509 old_LIBS="$LIBS"
7510 LIBS="$LIBS -lgd -lpng -lz -lm"
7511 cat >conftest.$ac_ext <<_ACEOF
7512 /* confdefs.h. */
7513 _ACEOF
7514 cat confdefs.h >>conftest.$ac_ext
7515 cat >>conftest.$ac_ext <<_ACEOF
7516 /* end confdefs.h. */
7517 #include <gd.h>
7519 main ()
7521 gdImagePng (0, 0)
7523 return 0;
7525 _ACEOF
7526 rm -f conftest.$ac_objext conftest$ac_exeext
7527 if { (ac_try="$ac_link"
7528 case "(($ac_try" in
7529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7530 *) ac_try_echo=$ac_try;;
7531 esac
7532 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7533 $as_echo "$ac_try_echo") >&5
7534 (eval "$ac_link") 2>conftest.er1
7535 ac_status=$?
7536 grep -v '^ *+' conftest.er1 >conftest.err
7537 rm -f conftest.er1
7538 cat conftest.err >&5
7539 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7540 (exit $ac_status); } && {
7541 test -z "$ac_c_werror_flag" ||
7542 test ! -s conftest.err
7543 } && test -s conftest$ac_exeext && {
7544 test "$cross_compiling" = yes ||
7545 $as_test_x conftest$ac_exeext
7546 }; then
7547 LIBGD=yes
7548 else
7549 $as_echo "$as_me: failed program was:" >&5
7550 sed 's/^/| /' conftest.$ac_ext >&5
7552 LIBGD=no
7555 rm -rf conftest.dSYM
7556 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7557 conftest$ac_exeext conftest.$ac_ext
7558 CFLAGS="$old_CFLAGS"
7559 LDFLAGS="$old_LDFLAGS"
7560 LIBS="$old_LIBS"
7561 else
7562 LIBGD=no
7564 { $as_echo "$as_me:$LINENO: result: $LIBGD" >&5
7565 $as_echo "$LIBGD" >&6; }
7568 # SELinux detection
7569 if test x$with_selinux = xno ; then
7570 have_selinux=no;
7571 else
7572 # See if we have the SELinux library
7573 { $as_echo "$as_me:$LINENO: checking for is_selinux_enabled in -lselinux" >&5
7574 $as_echo_n "checking for is_selinux_enabled in -lselinux... " >&6; }
7575 if test "${ac_cv_lib_selinux_is_selinux_enabled+set}" = set; then
7576 $as_echo_n "(cached) " >&6
7577 else
7578 ac_check_lib_save_LIBS=$LIBS
7579 LIBS="-lselinux $LIBS"
7580 cat >conftest.$ac_ext <<_ACEOF
7581 /* confdefs.h. */
7582 _ACEOF
7583 cat confdefs.h >>conftest.$ac_ext
7584 cat >>conftest.$ac_ext <<_ACEOF
7585 /* end confdefs.h. */
7587 /* Override any GCC internal prototype to avoid an error.
7588 Use char because int might match the return type of a GCC
7589 builtin and then its argument prototype would still apply. */
7590 #ifdef __cplusplus
7591 extern "C"
7592 #endif
7593 char is_selinux_enabled ();
7595 main ()
7597 return is_selinux_enabled ();
7599 return 0;
7601 _ACEOF
7602 rm -f conftest.$ac_objext conftest$ac_exeext
7603 if { (ac_try="$ac_link"
7604 case "(($ac_try" in
7605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7606 *) ac_try_echo=$ac_try;;
7607 esac
7608 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7609 $as_echo "$ac_try_echo") >&5
7610 (eval "$ac_link") 2>conftest.er1
7611 ac_status=$?
7612 grep -v '^ *+' conftest.er1 >conftest.err
7613 rm -f conftest.er1
7614 cat conftest.err >&5
7615 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7616 (exit $ac_status); } && {
7617 test -z "$ac_c_werror_flag" ||
7618 test ! -s conftest.err
7619 } && test -s conftest$ac_exeext && {
7620 test "$cross_compiling" = yes ||
7621 $as_test_x conftest$ac_exeext
7622 }; then
7623 ac_cv_lib_selinux_is_selinux_enabled=yes
7624 else
7625 $as_echo "$as_me: failed program was:" >&5
7626 sed 's/^/| /' conftest.$ac_ext >&5
7628 ac_cv_lib_selinux_is_selinux_enabled=no
7631 rm -rf conftest.dSYM
7632 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7633 conftest$ac_exeext conftest.$ac_ext
7634 LIBS=$ac_check_lib_save_LIBS
7636 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5
7637 $as_echo "$ac_cv_lib_selinux_is_selinux_enabled" >&6; }
7638 if test "x$ac_cv_lib_selinux_is_selinux_enabled" = x""yes; then
7639 have_selinux=yes
7640 else
7641 have_selinux=no
7644 # See if we have the SELinux header with the NSCD permissions in it.
7645 if test x$have_selinux = xyes ; then
7646 { $as_echo "$as_me:$LINENO: checking for NSCD Flask permissions in selinux/av_permissions.h" >&5
7647 $as_echo_n "checking for NSCD Flask permissions in selinux/av_permissions.h... " >&6; }
7648 cat >conftest.$ac_ext <<_ACEOF
7649 /* confdefs.h. */
7650 _ACEOF
7651 cat confdefs.h >>conftest.$ac_ext
7652 cat >>conftest.$ac_ext <<_ACEOF
7653 /* end confdefs.h. */
7654 #include <selinux/av_permissions.h>
7656 main ()
7658 #ifdef NSCD__SHMEMHOST
7659 return 0;
7660 #else
7661 #error NSCD__SHMEMHOST not defined
7662 #endif
7664 return 0;
7666 _ACEOF
7667 rm -f conftest.$ac_objext
7668 if { (ac_try="$ac_compile"
7669 case "(($ac_try" in
7670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7671 *) ac_try_echo=$ac_try;;
7672 esac
7673 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7674 $as_echo "$ac_try_echo") >&5
7675 (eval "$ac_compile") 2>conftest.er1
7676 ac_status=$?
7677 grep -v '^ *+' conftest.er1 >conftest.err
7678 rm -f conftest.er1
7679 cat conftest.err >&5
7680 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7681 (exit $ac_status); } && {
7682 test -z "$ac_c_werror_flag" ||
7683 test ! -s conftest.err
7684 } && test -s conftest.$ac_objext; then
7685 have_selinux=yes
7686 else
7687 $as_echo "$as_me: failed program was:" >&5
7688 sed 's/^/| /' conftest.$ac_ext >&5
7690 have_selinux=no
7693 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7694 { $as_echo "$as_me:$LINENO: result: $have_selinux" >&5
7695 $as_echo "$have_selinux" >&6; }
7698 if test x$with_selinux = xyes ; then
7699 if test x$have_selinux = xno ; then
7700 { { $as_echo "$as_me:$LINENO: error: SELinux explicitly required, but sufficiently recent SELinux library not found" >&5
7701 $as_echo "$as_me: error: SELinux explicitly required, but sufficiently recent SELinux library not found" >&2;}
7702 { (exit 1); exit 1; }; }
7706 # Check if we're building with SELinux support.
7707 if test "x$have_selinux" = xyes; then
7709 cat >>confdefs.h <<\_ACEOF
7710 #define HAVE_SELINUX 1
7711 _ACEOF
7714 # See if we have the libaudit library
7715 { $as_echo "$as_me:$LINENO: checking for audit_log_user_avc_message in -laudit" >&5
7716 $as_echo_n "checking for audit_log_user_avc_message in -laudit... " >&6; }
7717 if test "${ac_cv_lib_audit_audit_log_user_avc_message+set}" = set; then
7718 $as_echo_n "(cached) " >&6
7719 else
7720 ac_check_lib_save_LIBS=$LIBS
7721 LIBS="-laudit $LIBS"
7722 cat >conftest.$ac_ext <<_ACEOF
7723 /* confdefs.h. */
7724 _ACEOF
7725 cat confdefs.h >>conftest.$ac_ext
7726 cat >>conftest.$ac_ext <<_ACEOF
7727 /* end confdefs.h. */
7729 /* Override any GCC internal prototype to avoid an error.
7730 Use char because int might match the return type of a GCC
7731 builtin and then its argument prototype would still apply. */
7732 #ifdef __cplusplus
7733 extern "C"
7734 #endif
7735 char audit_log_user_avc_message ();
7737 main ()
7739 return audit_log_user_avc_message ();
7741 return 0;
7743 _ACEOF
7744 rm -f conftest.$ac_objext conftest$ac_exeext
7745 if { (ac_try="$ac_link"
7746 case "(($ac_try" in
7747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7748 *) ac_try_echo=$ac_try;;
7749 esac
7750 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7751 $as_echo "$ac_try_echo") >&5
7752 (eval "$ac_link") 2>conftest.er1
7753 ac_status=$?
7754 grep -v '^ *+' conftest.er1 >conftest.err
7755 rm -f conftest.er1
7756 cat conftest.err >&5
7757 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7758 (exit $ac_status); } && {
7759 test -z "$ac_c_werror_flag" ||
7760 test ! -s conftest.err
7761 } && test -s conftest$ac_exeext && {
7762 test "$cross_compiling" = yes ||
7763 $as_test_x conftest$ac_exeext
7764 }; then
7765 ac_cv_lib_audit_audit_log_user_avc_message=yes
7766 else
7767 $as_echo "$as_me: failed program was:" >&5
7768 sed 's/^/| /' conftest.$ac_ext >&5
7770 ac_cv_lib_audit_audit_log_user_avc_message=no
7773 rm -rf conftest.dSYM
7774 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7775 conftest$ac_exeext conftest.$ac_ext
7776 LIBS=$ac_check_lib_save_LIBS
7778 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_audit_audit_log_user_avc_message" >&5
7779 $as_echo "$ac_cv_lib_audit_audit_log_user_avc_message" >&6; }
7780 if test "x$ac_cv_lib_audit_audit_log_user_avc_message" = x""yes; then
7781 have_libaudit=yes
7782 else
7783 have_libaudit=no
7786 if test "x$have_libaudit" = xyes; then
7788 cat >>confdefs.h <<\_ACEOF
7789 #define HAVE_LIBAUDIT 1
7790 _ACEOF
7795 # See if we have the libcap library
7796 { $as_echo "$as_me:$LINENO: checking for cap_init in -lcap" >&5
7797 $as_echo_n "checking for cap_init in -lcap... " >&6; }
7798 if test "${ac_cv_lib_cap_cap_init+set}" = set; then
7799 $as_echo_n "(cached) " >&6
7800 else
7801 ac_check_lib_save_LIBS=$LIBS
7802 LIBS="-lcap $LIBS"
7803 cat >conftest.$ac_ext <<_ACEOF
7804 /* confdefs.h. */
7805 _ACEOF
7806 cat confdefs.h >>conftest.$ac_ext
7807 cat >>conftest.$ac_ext <<_ACEOF
7808 /* end confdefs.h. */
7810 /* Override any GCC internal prototype to avoid an error.
7811 Use char because int might match the return type of a GCC
7812 builtin and then its argument prototype would still apply. */
7813 #ifdef __cplusplus
7814 extern "C"
7815 #endif
7816 char cap_init ();
7818 main ()
7820 return cap_init ();
7822 return 0;
7824 _ACEOF
7825 rm -f conftest.$ac_objext conftest$ac_exeext
7826 if { (ac_try="$ac_link"
7827 case "(($ac_try" in
7828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7829 *) ac_try_echo=$ac_try;;
7830 esac
7831 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7832 $as_echo "$ac_try_echo") >&5
7833 (eval "$ac_link") 2>conftest.er1
7834 ac_status=$?
7835 grep -v '^ *+' conftest.er1 >conftest.err
7836 rm -f conftest.er1
7837 cat conftest.err >&5
7838 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7839 (exit $ac_status); } && {
7840 test -z "$ac_c_werror_flag" ||
7841 test ! -s conftest.err
7842 } && test -s conftest$ac_exeext && {
7843 test "$cross_compiling" = yes ||
7844 $as_test_x conftest$ac_exeext
7845 }; then
7846 ac_cv_lib_cap_cap_init=yes
7847 else
7848 $as_echo "$as_me: failed program was:" >&5
7849 sed 's/^/| /' conftest.$ac_ext >&5
7851 ac_cv_lib_cap_cap_init=no
7854 rm -rf conftest.dSYM
7855 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7856 conftest$ac_exeext conftest.$ac_ext
7857 LIBS=$ac_check_lib_save_LIBS
7859 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_cap_cap_init" >&5
7860 $as_echo "$ac_cv_lib_cap_cap_init" >&6; }
7861 if test "x$ac_cv_lib_cap_cap_init" = x""yes; then
7862 have_libcap=yes
7863 else
7864 have_libcap=no
7867 if test "x$have_libcap" = xyes; then
7869 cat >>confdefs.h <<\_ACEOF
7870 #define HAVE_LIBCAP 1
7871 _ACEOF
7879 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
7880 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
7881 if test "${ac_cv_path_GREP+set}" = set; then
7882 $as_echo_n "(cached) " >&6
7883 else
7884 if test -z "$GREP"; then
7885 ac_path_GREP_found=false
7886 # Loop through the user's path and test for each of PROGNAME-LIST
7887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7888 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7890 IFS=$as_save_IFS
7891 test -z "$as_dir" && as_dir=.
7892 for ac_prog in grep ggrep; do
7893 for ac_exec_ext in '' $ac_executable_extensions; do
7894 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
7895 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
7896 # Check for GNU ac_path_GREP and select it if it is found.
7897 # Check for GNU $ac_path_GREP
7898 case `"$ac_path_GREP" --version 2>&1` in
7899 *GNU*)
7900 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
7902 ac_count=0
7903 $as_echo_n 0123456789 >"conftest.in"
7904 while :
7906 cat "conftest.in" "conftest.in" >"conftest.tmp"
7907 mv "conftest.tmp" "conftest.in"
7908 cp "conftest.in" "conftest.nl"
7909 $as_echo 'GREP' >> "conftest.nl"
7910 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7911 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7912 ac_count=`expr $ac_count + 1`
7913 if test $ac_count -gt ${ac_path_GREP_max-0}; then
7914 # Best one so far, save it but keep looking for a better one
7915 ac_cv_path_GREP="$ac_path_GREP"
7916 ac_path_GREP_max=$ac_count
7918 # 10*(2^10) chars as input seems more than enough
7919 test $ac_count -gt 10 && break
7920 done
7921 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7922 esac
7924 $ac_path_GREP_found && break 3
7925 done
7926 done
7927 done
7928 IFS=$as_save_IFS
7929 if test -z "$ac_cv_path_GREP"; then
7930 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
7931 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
7932 { (exit 1); exit 1; }; }
7934 else
7935 ac_cv_path_GREP=$GREP
7939 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
7940 $as_echo "$ac_cv_path_GREP" >&6; }
7941 GREP="$ac_cv_path_GREP"
7944 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
7945 $as_echo_n "checking for egrep... " >&6; }
7946 if test "${ac_cv_path_EGREP+set}" = set; then
7947 $as_echo_n "(cached) " >&6
7948 else
7949 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
7950 then ac_cv_path_EGREP="$GREP -E"
7951 else
7952 if test -z "$EGREP"; then
7953 ac_path_EGREP_found=false
7954 # Loop through the user's path and test for each of PROGNAME-LIST
7955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7956 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7958 IFS=$as_save_IFS
7959 test -z "$as_dir" && as_dir=.
7960 for ac_prog in egrep; do
7961 for ac_exec_ext in '' $ac_executable_extensions; do
7962 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
7963 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
7964 # Check for GNU ac_path_EGREP and select it if it is found.
7965 # Check for GNU $ac_path_EGREP
7966 case `"$ac_path_EGREP" --version 2>&1` in
7967 *GNU*)
7968 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
7970 ac_count=0
7971 $as_echo_n 0123456789 >"conftest.in"
7972 while :
7974 cat "conftest.in" "conftest.in" >"conftest.tmp"
7975 mv "conftest.tmp" "conftest.in"
7976 cp "conftest.in" "conftest.nl"
7977 $as_echo 'EGREP' >> "conftest.nl"
7978 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7979 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7980 ac_count=`expr $ac_count + 1`
7981 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
7982 # Best one so far, save it but keep looking for a better one
7983 ac_cv_path_EGREP="$ac_path_EGREP"
7984 ac_path_EGREP_max=$ac_count
7986 # 10*(2^10) chars as input seems more than enough
7987 test $ac_count -gt 10 && break
7988 done
7989 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7990 esac
7992 $ac_path_EGREP_found && break 3
7993 done
7994 done
7995 done
7996 IFS=$as_save_IFS
7997 if test -z "$ac_cv_path_EGREP"; then
7998 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
7999 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
8000 { (exit 1); exit 1; }; }
8002 else
8003 ac_cv_path_EGREP=$EGREP
8008 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
8009 $as_echo "$ac_cv_path_EGREP" >&6; }
8010 EGREP="$ac_cv_path_EGREP"
8013 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
8014 $as_echo_n "checking for ANSI C header files... " >&6; }
8015 if test "${ac_cv_header_stdc+set}" = set; then
8016 $as_echo_n "(cached) " >&6
8017 else
8018 cat >conftest.$ac_ext <<_ACEOF
8019 /* confdefs.h. */
8020 _ACEOF
8021 cat confdefs.h >>conftest.$ac_ext
8022 cat >>conftest.$ac_ext <<_ACEOF
8023 /* end confdefs.h. */
8024 #include <stdlib.h>
8025 #include <stdarg.h>
8026 #include <string.h>
8027 #include <float.h>
8030 main ()
8034 return 0;
8036 _ACEOF
8037 rm -f conftest.$ac_objext
8038 if { (ac_try="$ac_compile"
8039 case "(($ac_try" in
8040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8041 *) ac_try_echo=$ac_try;;
8042 esac
8043 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8044 $as_echo "$ac_try_echo") >&5
8045 (eval "$ac_compile") 2>conftest.er1
8046 ac_status=$?
8047 grep -v '^ *+' conftest.er1 >conftest.err
8048 rm -f conftest.er1
8049 cat conftest.err >&5
8050 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8051 (exit $ac_status); } && {
8052 test -z "$ac_c_werror_flag" ||
8053 test ! -s conftest.err
8054 } && test -s conftest.$ac_objext; then
8055 ac_cv_header_stdc=yes
8056 else
8057 $as_echo "$as_me: failed program was:" >&5
8058 sed 's/^/| /' conftest.$ac_ext >&5
8060 ac_cv_header_stdc=no
8063 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8065 if test $ac_cv_header_stdc = yes; then
8066 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8067 cat >conftest.$ac_ext <<_ACEOF
8068 /* confdefs.h. */
8069 _ACEOF
8070 cat confdefs.h >>conftest.$ac_ext
8071 cat >>conftest.$ac_ext <<_ACEOF
8072 /* end confdefs.h. */
8073 #include <string.h>
8075 _ACEOF
8076 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8077 $EGREP "memchr" >/dev/null 2>&1; then
8079 else
8080 ac_cv_header_stdc=no
8082 rm -f conftest*
8086 if test $ac_cv_header_stdc = yes; then
8087 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8088 cat >conftest.$ac_ext <<_ACEOF
8089 /* confdefs.h. */
8090 _ACEOF
8091 cat confdefs.h >>conftest.$ac_ext
8092 cat >>conftest.$ac_ext <<_ACEOF
8093 /* end confdefs.h. */
8094 #include <stdlib.h>
8096 _ACEOF
8097 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8098 $EGREP "free" >/dev/null 2>&1; then
8100 else
8101 ac_cv_header_stdc=no
8103 rm -f conftest*
8107 if test $ac_cv_header_stdc = yes; then
8108 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8109 if test "$cross_compiling" = yes; then
8111 else
8112 cat >conftest.$ac_ext <<_ACEOF
8113 /* confdefs.h. */
8114 _ACEOF
8115 cat confdefs.h >>conftest.$ac_ext
8116 cat >>conftest.$ac_ext <<_ACEOF
8117 /* end confdefs.h. */
8118 #include <ctype.h>
8119 #include <stdlib.h>
8120 #if ((' ' & 0x0FF) == 0x020)
8121 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8122 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8123 #else
8124 # define ISLOWER(c) \
8125 (('a' <= (c) && (c) <= 'i') \
8126 || ('j' <= (c) && (c) <= 'r') \
8127 || ('s' <= (c) && (c) <= 'z'))
8128 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8129 #endif
8131 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8133 main ()
8135 int i;
8136 for (i = 0; i < 256; i++)
8137 if (XOR (islower (i), ISLOWER (i))
8138 || toupper (i) != TOUPPER (i))
8139 return 2;
8140 return 0;
8142 _ACEOF
8143 rm -f conftest$ac_exeext
8144 if { (ac_try="$ac_link"
8145 case "(($ac_try" in
8146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8147 *) ac_try_echo=$ac_try;;
8148 esac
8149 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8150 $as_echo "$ac_try_echo") >&5
8151 (eval "$ac_link") 2>&5
8152 ac_status=$?
8153 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8154 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8155 { (case "(($ac_try" in
8156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8157 *) ac_try_echo=$ac_try;;
8158 esac
8159 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8160 $as_echo "$ac_try_echo") >&5
8161 (eval "$ac_try") 2>&5
8162 ac_status=$?
8163 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8164 (exit $ac_status); }; }; then
8166 else
8167 $as_echo "$as_me: program exited with status $ac_status" >&5
8168 $as_echo "$as_me: failed program was:" >&5
8169 sed 's/^/| /' conftest.$ac_ext >&5
8171 ( exit $ac_status )
8172 ac_cv_header_stdc=no
8174 rm -rf conftest.dSYM
8175 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8181 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8182 $as_echo "$ac_cv_header_stdc" >&6; }
8183 if test $ac_cv_header_stdc = yes; then
8185 cat >>confdefs.h <<\_ACEOF
8186 #define STDC_HEADERS 1
8187 _ACEOF
8191 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8201 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8202 inttypes.h stdint.h unistd.h
8204 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8205 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8206 $as_echo_n "checking for $ac_header... " >&6; }
8207 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8208 $as_echo_n "(cached) " >&6
8209 else
8210 cat >conftest.$ac_ext <<_ACEOF
8211 /* confdefs.h. */
8212 _ACEOF
8213 cat confdefs.h >>conftest.$ac_ext
8214 cat >>conftest.$ac_ext <<_ACEOF
8215 /* end confdefs.h. */
8216 $ac_includes_default
8218 #include <$ac_header>
8219 _ACEOF
8220 rm -f conftest.$ac_objext
8221 if { (ac_try="$ac_compile"
8222 case "(($ac_try" in
8223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8224 *) ac_try_echo=$ac_try;;
8225 esac
8226 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8227 $as_echo "$ac_try_echo") >&5
8228 (eval "$ac_compile") 2>conftest.er1
8229 ac_status=$?
8230 grep -v '^ *+' conftest.er1 >conftest.err
8231 rm -f conftest.er1
8232 cat conftest.err >&5
8233 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8234 (exit $ac_status); } && {
8235 test -z "$ac_c_werror_flag" ||
8236 test ! -s conftest.err
8237 } && test -s conftest.$ac_objext; then
8238 eval "$as_ac_Header=yes"
8239 else
8240 $as_echo "$as_me: failed program was:" >&5
8241 sed 's/^/| /' conftest.$ac_ext >&5
8243 eval "$as_ac_Header=no"
8246 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8248 ac_res=`eval 'as_val=${'$as_ac_Header'}
8249 $as_echo "$as_val"'`
8250 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8251 $as_echo "$ac_res" >&6; }
8252 as_val=`eval 'as_val=${'$as_ac_Header'}
8253 $as_echo "$as_val"'`
8254 if test "x$as_val" = x""yes; then
8255 cat >>confdefs.h <<_ACEOF
8256 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8257 _ACEOF
8261 done
8264 # The cast to long int works around a bug in the HP C Compiler
8265 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8266 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8267 # This bug is HP SR number 8606223364.
8268 { $as_echo "$as_me:$LINENO: checking size of long double" >&5
8269 $as_echo_n "checking size of long double... " >&6; }
8270 if test "${ac_cv_sizeof_long_double+set}" = set; then
8271 $as_echo_n "(cached) " >&6
8272 else
8273 if test "$cross_compiling" = yes; then
8274 # Depending upon the size, compute the lo and hi bounds.
8275 cat >conftest.$ac_ext <<_ACEOF
8276 /* confdefs.h. */
8277 _ACEOF
8278 cat confdefs.h >>conftest.$ac_ext
8279 cat >>conftest.$ac_ext <<_ACEOF
8280 /* end confdefs.h. */
8281 $ac_includes_default
8283 main ()
8285 static int test_array [1 - 2 * !(((long int) (sizeof (long double))) >= 0)];
8286 test_array [0] = 0
8289 return 0;
8291 _ACEOF
8292 rm -f conftest.$ac_objext
8293 if { (ac_try="$ac_compile"
8294 case "(($ac_try" in
8295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8296 *) ac_try_echo=$ac_try;;
8297 esac
8298 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8299 $as_echo "$ac_try_echo") >&5
8300 (eval "$ac_compile") 2>conftest.er1
8301 ac_status=$?
8302 grep -v '^ *+' conftest.er1 >conftest.err
8303 rm -f conftest.er1
8304 cat conftest.err >&5
8305 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8306 (exit $ac_status); } && {
8307 test -z "$ac_c_werror_flag" ||
8308 test ! -s conftest.err
8309 } && test -s conftest.$ac_objext; then
8310 ac_lo=0 ac_mid=0
8311 while :; do
8312 cat >conftest.$ac_ext <<_ACEOF
8313 /* confdefs.h. */
8314 _ACEOF
8315 cat confdefs.h >>conftest.$ac_ext
8316 cat >>conftest.$ac_ext <<_ACEOF
8317 /* end confdefs.h. */
8318 $ac_includes_default
8320 main ()
8322 static int test_array [1 - 2 * !(((long int) (sizeof (long double))) <= $ac_mid)];
8323 test_array [0] = 0
8326 return 0;
8328 _ACEOF
8329 rm -f conftest.$ac_objext
8330 if { (ac_try="$ac_compile"
8331 case "(($ac_try" in
8332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8333 *) ac_try_echo=$ac_try;;
8334 esac
8335 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8336 $as_echo "$ac_try_echo") >&5
8337 (eval "$ac_compile") 2>conftest.er1
8338 ac_status=$?
8339 grep -v '^ *+' conftest.er1 >conftest.err
8340 rm -f conftest.er1
8341 cat conftest.err >&5
8342 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8343 (exit $ac_status); } && {
8344 test -z "$ac_c_werror_flag" ||
8345 test ! -s conftest.err
8346 } && test -s conftest.$ac_objext; then
8347 ac_hi=$ac_mid; break
8348 else
8349 $as_echo "$as_me: failed program was:" >&5
8350 sed 's/^/| /' conftest.$ac_ext >&5
8352 ac_lo=`expr $ac_mid + 1`
8353 if test $ac_lo -le $ac_mid; then
8354 ac_lo= ac_hi=
8355 break
8357 ac_mid=`expr 2 '*' $ac_mid + 1`
8360 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8361 done
8362 else
8363 $as_echo "$as_me: failed program was:" >&5
8364 sed 's/^/| /' conftest.$ac_ext >&5
8366 cat >conftest.$ac_ext <<_ACEOF
8367 /* confdefs.h. */
8368 _ACEOF
8369 cat confdefs.h >>conftest.$ac_ext
8370 cat >>conftest.$ac_ext <<_ACEOF
8371 /* end confdefs.h. */
8372 $ac_includes_default
8374 main ()
8376 static int test_array [1 - 2 * !(((long int) (sizeof (long double))) < 0)];
8377 test_array [0] = 0
8380 return 0;
8382 _ACEOF
8383 rm -f conftest.$ac_objext
8384 if { (ac_try="$ac_compile"
8385 case "(($ac_try" in
8386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8387 *) ac_try_echo=$ac_try;;
8388 esac
8389 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8390 $as_echo "$ac_try_echo") >&5
8391 (eval "$ac_compile") 2>conftest.er1
8392 ac_status=$?
8393 grep -v '^ *+' conftest.er1 >conftest.err
8394 rm -f conftest.er1
8395 cat conftest.err >&5
8396 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8397 (exit $ac_status); } && {
8398 test -z "$ac_c_werror_flag" ||
8399 test ! -s conftest.err
8400 } && test -s conftest.$ac_objext; then
8401 ac_hi=-1 ac_mid=-1
8402 while :; do
8403 cat >conftest.$ac_ext <<_ACEOF
8404 /* confdefs.h. */
8405 _ACEOF
8406 cat confdefs.h >>conftest.$ac_ext
8407 cat >>conftest.$ac_ext <<_ACEOF
8408 /* end confdefs.h. */
8409 $ac_includes_default
8411 main ()
8413 static int test_array [1 - 2 * !(((long int) (sizeof (long double))) >= $ac_mid)];
8414 test_array [0] = 0
8417 return 0;
8419 _ACEOF
8420 rm -f conftest.$ac_objext
8421 if { (ac_try="$ac_compile"
8422 case "(($ac_try" in
8423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8424 *) ac_try_echo=$ac_try;;
8425 esac
8426 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8427 $as_echo "$ac_try_echo") >&5
8428 (eval "$ac_compile") 2>conftest.er1
8429 ac_status=$?
8430 grep -v '^ *+' conftest.er1 >conftest.err
8431 rm -f conftest.er1
8432 cat conftest.err >&5
8433 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8434 (exit $ac_status); } && {
8435 test -z "$ac_c_werror_flag" ||
8436 test ! -s conftest.err
8437 } && test -s conftest.$ac_objext; then
8438 ac_lo=$ac_mid; break
8439 else
8440 $as_echo "$as_me: failed program was:" >&5
8441 sed 's/^/| /' conftest.$ac_ext >&5
8443 ac_hi=`expr '(' $ac_mid ')' - 1`
8444 if test $ac_mid -le $ac_hi; then
8445 ac_lo= ac_hi=
8446 break
8448 ac_mid=`expr 2 '*' $ac_mid`
8451 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8452 done
8453 else
8454 $as_echo "$as_me: failed program was:" >&5
8455 sed 's/^/| /' conftest.$ac_ext >&5
8457 ac_lo= ac_hi=
8460 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8463 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8464 # Binary search between lo and hi bounds.
8465 while test "x$ac_lo" != "x$ac_hi"; do
8466 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8467 cat >conftest.$ac_ext <<_ACEOF
8468 /* confdefs.h. */
8469 _ACEOF
8470 cat confdefs.h >>conftest.$ac_ext
8471 cat >>conftest.$ac_ext <<_ACEOF
8472 /* end confdefs.h. */
8473 $ac_includes_default
8475 main ()
8477 static int test_array [1 - 2 * !(((long int) (sizeof (long double))) <= $ac_mid)];
8478 test_array [0] = 0
8481 return 0;
8483 _ACEOF
8484 rm -f conftest.$ac_objext
8485 if { (ac_try="$ac_compile"
8486 case "(($ac_try" in
8487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8488 *) ac_try_echo=$ac_try;;
8489 esac
8490 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8491 $as_echo "$ac_try_echo") >&5
8492 (eval "$ac_compile") 2>conftest.er1
8493 ac_status=$?
8494 grep -v '^ *+' conftest.er1 >conftest.err
8495 rm -f conftest.er1
8496 cat conftest.err >&5
8497 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8498 (exit $ac_status); } && {
8499 test -z "$ac_c_werror_flag" ||
8500 test ! -s conftest.err
8501 } && test -s conftest.$ac_objext; then
8502 ac_hi=$ac_mid
8503 else
8504 $as_echo "$as_me: failed program was:" >&5
8505 sed 's/^/| /' conftest.$ac_ext >&5
8507 ac_lo=`expr '(' $ac_mid ')' + 1`
8510 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8511 done
8512 case $ac_lo in
8513 ?*) ac_cv_sizeof_long_double=$ac_lo;;
8514 '') if test "$ac_cv_type_long_double" = yes; then
8515 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
8516 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8517 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long double)
8518 See \`config.log' for more details." >&5
8519 $as_echo "$as_me: error: cannot compute sizeof (long double)
8520 See \`config.log' for more details." >&2;}
8521 { (exit 77); exit 77; }; }; }
8522 else
8523 ac_cv_sizeof_long_double=0
8524 fi ;;
8525 esac
8526 else
8527 cat >conftest.$ac_ext <<_ACEOF
8528 /* confdefs.h. */
8529 _ACEOF
8530 cat confdefs.h >>conftest.$ac_ext
8531 cat >>conftest.$ac_ext <<_ACEOF
8532 /* end confdefs.h. */
8533 $ac_includes_default
8534 static long int longval () { return (long int) (sizeof (long double)); }
8535 static unsigned long int ulongval () { return (long int) (sizeof (long double)); }
8536 #include <stdio.h>
8537 #include <stdlib.h>
8539 main ()
8542 FILE *f = fopen ("conftest.val", "w");
8543 if (! f)
8544 return 1;
8545 if (((long int) (sizeof (long double))) < 0)
8547 long int i = longval ();
8548 if (i != ((long int) (sizeof (long double))))
8549 return 1;
8550 fprintf (f, "%ld", i);
8552 else
8554 unsigned long int i = ulongval ();
8555 if (i != ((long int) (sizeof (long double))))
8556 return 1;
8557 fprintf (f, "%lu", i);
8559 /* Do not output a trailing newline, as this causes \r\n confusion
8560 on some platforms. */
8561 return ferror (f) || fclose (f) != 0;
8564 return 0;
8566 _ACEOF
8567 rm -f conftest$ac_exeext
8568 if { (ac_try="$ac_link"
8569 case "(($ac_try" in
8570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8571 *) ac_try_echo=$ac_try;;
8572 esac
8573 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8574 $as_echo "$ac_try_echo") >&5
8575 (eval "$ac_link") 2>&5
8576 ac_status=$?
8577 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8578 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8579 { (case "(($ac_try" in
8580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8581 *) ac_try_echo=$ac_try;;
8582 esac
8583 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8584 $as_echo "$ac_try_echo") >&5
8585 (eval "$ac_try") 2>&5
8586 ac_status=$?
8587 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8588 (exit $ac_status); }; }; then
8589 ac_cv_sizeof_long_double=`cat conftest.val`
8590 else
8591 $as_echo "$as_me: program exited with status $ac_status" >&5
8592 $as_echo "$as_me: failed program was:" >&5
8593 sed 's/^/| /' conftest.$ac_ext >&5
8595 ( exit $ac_status )
8596 if test "$ac_cv_type_long_double" = yes; then
8597 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
8598 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8599 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long double)
8600 See \`config.log' for more details." >&5
8601 $as_echo "$as_me: error: cannot compute sizeof (long double)
8602 See \`config.log' for more details." >&2;}
8603 { (exit 77); exit 77; }; }; }
8604 else
8605 ac_cv_sizeof_long_double=0
8608 rm -rf conftest.dSYM
8609 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8611 rm -f conftest.val
8613 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_double" >&5
8614 $as_echo "$ac_cv_sizeof_long_double" >&6; }
8618 cat >>confdefs.h <<_ACEOF
8619 #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
8620 _ACEOF
8623 sizeof_long_double=$ac_cv_sizeof_long_double
8626 ### End of automated tests.
8627 ### Now run sysdeps configure fragments.
8629 # They also can set these variables.
8630 use_ldconfig=no
8631 ldd_rewrite_script=no
8632 libc_cv_sysconfdir=$sysconfdir
8633 libc_cv_gcc_unwind_find_fde=no
8634 libc_cv_idn=no
8636 # Iterate over all the sysdep directories we will use, running their
8637 # configure fragments, and looking for a uname implementation.
8638 uname=
8639 for dir in $sysnames; do
8640 case $dir in
8641 /*) dest=$dir ;;
8642 *) dest=$srcdir/$dir ;;
8643 esac
8644 if test -r $dest/configure; then
8645 { $as_echo "$as_me:$LINENO: result: running configure fragment for $dir" >&5
8646 $as_echo "running configure fragment for $dir" >&6; }
8647 . $dest/configure
8650 if test -z "$uname"; then
8651 if test -r $dest/uname.c ||
8652 test -r $dest/uname.S ||
8653 { test -r $dest/syscalls.list &&
8654 grep '^uname[ ]' $dest/syscalls.list >/dev/null; }; then
8655 uname=$dir
8658 done
8660 if test x$libc_cv_gcc_unwind_find_fde = xyes; then
8661 cat >>confdefs.h <<\_ACEOF
8662 #define EXPORT_UNWIND_FIND_FDE 1
8663 _ACEOF
8668 # If we will use the generic uname implementation, we must figure out what
8669 # it will say by examining the system, and write the results in config-name.h.
8670 if test "$uname" = "sysdeps/generic"; then
8672 uname_sysname=`echo $config_os | sed 's/[0-9.]*$//'`
8673 if test $uname_sysname != $config_os; then
8674 config_release=`echo $config_os | sed s/$uname_sysname//`
8677 { $as_echo "$as_me:$LINENO: checking OS release for uname" >&5
8678 $as_echo_n "checking OS release for uname... " >&6; }
8679 if test "${libc_cv_uname_release+set}" = set; then
8680 $as_echo_n "(cached) " >&6
8681 else
8682 if test -r /vmunix; then
8683 kernel_id=`strings /vmunix | grep UNIX`
8684 elif test -r /dynix; then
8685 kernel_id=`strings /dynix | grep DYNIX`
8686 else
8687 kernel_id=
8690 kernel_release=`echo "$kernel_id" | sed 's/^[^0-9.]*\([0-9.]*\).*$/\1/'`
8691 if test x`echo "$config_release" | sed "s/^$kernel_release//"` \
8692 != x$config_release; then
8693 # The configuration release is a substring of the kernel release.
8694 libc_cv_uname_release=$kernel_release
8695 elif test x$config_release != x; then
8696 libc_cv_uname_release=$config_release
8697 elif test x$kernel_release != x; then
8698 libc_cv_uname_release=$kernel_release
8699 else
8700 libc_cv_uname_release=unknown
8703 { $as_echo "$as_me:$LINENO: result: $libc_cv_uname_release" >&5
8704 $as_echo "$libc_cv_uname_release" >&6; }
8705 uname_release="$libc_cv_uname_release"
8707 { $as_echo "$as_me:$LINENO: checking OS version for uname" >&5
8708 $as_echo_n "checking OS version for uname... " >&6; }
8709 if test "${libc_cv_uname_version+set}" = set; then
8710 $as_echo_n "(cached) " >&6
8711 else
8712 if test -r /vmunix; then
8713 kernel_id=`strings /vmunix | grep UNIX`
8714 elif test -r /dynix; then
8715 kernel_id=`strings /dynix | grep DYNIX`
8716 else
8717 kernel_id=
8720 kernel_version=`echo "$kernel_id" | sed 's/^[^#]*#\([0-9]*\).*$/\1/'`
8721 if test -n "$kernel_version"; then
8722 libc_cv_uname_version="$kernel_version"
8723 else
8724 libc_cv_uname_version=unknown
8727 { $as_echo "$as_me:$LINENO: result: $libc_cv_uname_version" >&5
8728 $as_echo "$libc_cv_uname_version" >&6; }
8729 uname_version="$libc_cv_uname_version"
8731 config_uname=config-name.h:config-name.in
8732 else
8733 # For non-generic uname, we don't need to create config-name.h at all.
8734 config_uname=
8737 cat >>confdefs.h <<\_ACEOF
8738 #define USE_IN_LIBIO 1
8739 _ACEOF
8742 # Test for old glibc 2.0.x headers so that they can be removed properly
8743 # Search only in includedir.
8744 { $as_echo "$as_me:$LINENO: checking for old glibc 2.0.x headers" >&5
8745 $as_echo_n "checking for old glibc 2.0.x headers... " >&6; }
8746 if eval test -f "${includedir}/elfclass.h" -a -f "${includedir}/fcntlbits.h"
8747 then
8748 old_glibc_headers=yes
8749 else
8750 old_glibc_headers=no
8752 { $as_echo "$as_me:$LINENO: result: $old_glibc_headers" >&5
8753 $as_echo "$old_glibc_headers" >&6; }
8754 if test ${old_glibc_headers} = yes; then
8755 { $as_echo "$as_me:$LINENO: WARNING: *** During \"make install\" old headers from glibc 2.0.x will" >&5
8756 $as_echo "$as_me: WARNING: *** During \"make install\" old headers from glibc 2.0.x will" >&2;}
8757 { $as_echo "$as_me:$LINENO: WARNING: *** be removed." >&5
8758 $as_echo "$as_me: WARNING: *** be removed." >&2;}
8775 if test $elf = yes; then
8776 cat >>confdefs.h <<\_ACEOF
8777 #define HAVE_ELF 1
8778 _ACEOF
8781 if test $xcoff = yes; then
8782 cat >>confdefs.h <<\_ACEOF
8783 #define HAVE_XCOFF 1
8784 _ACEOF
8790 if test $shared = default; then
8791 shared=$elf
8794 { $as_echo "$as_me:$LINENO: checking whether -fPIC is default" >&5
8795 $as_echo_n "checking whether -fPIC is default... " >&6; }
8796 if test "${libc_cv_pic_default+set}" = set; then
8797 $as_echo_n "(cached) " >&6
8798 else
8799 libc_cv_pic_default=yes
8800 cat > conftest.c <<EOF
8801 #if defined __PIC__ || defined __pic__ || defined PIC || defined pic
8802 # error PIC is default.
8803 #endif
8805 if eval "${CC-cc} -S conftest.c 2>&5 1>&5"; then
8806 libc_cv_pic_default=no
8808 rm -f conftest.*
8810 { $as_echo "$as_me:$LINENO: result: $libc_cv_pic_default" >&5
8811 $as_echo "$libc_cv_pic_default" >&6; }
8824 if test "`(cd $srcdir; pwd)`" = "`pwd`"; then
8825 config_makefile=
8826 else
8827 config_makefile=Makefile
8830 VERSION=`sed -n -e 's/^#define VERSION "\([^"]*\)"/\1/p' < $srcdir/version.h`
8831 RELEASE=`sed -n -e 's/^#define RELEASE "\([^"]*\)"/\1/p' < $srcdir/version.h`
8835 ac_config_files="$ac_config_files config.make ${config_makefile} ${config_uname}"
8837 ac_config_commands="$ac_config_commands default"
8839 cat >confcache <<\_ACEOF
8840 # This file is a shell script that caches the results of configure
8841 # tests run on this system so they can be shared between configure
8842 # scripts and configure runs, see configure's option --config-cache.
8843 # It is not useful on other systems. If it contains results you don't
8844 # want to keep, you may remove or edit it.
8846 # config.status only pays attention to the cache file if you give it
8847 # the --recheck option to rerun configure.
8849 # `ac_cv_env_foo' variables (set or unset) will be overridden when
8850 # loading this file, other *unset* `ac_cv_foo' will be assigned the
8851 # following values.
8853 _ACEOF
8855 # The following way of writing the cache mishandles newlines in values,
8856 # but we know of no workaround that is simple, portable, and efficient.
8857 # So, we kill variables containing newlines.
8858 # Ultrix sh set writes to stderr and can't be redirected directly,
8859 # and sets the high bit in the cache file unless we assign to the vars.
8861 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
8862 eval ac_val=\$$ac_var
8863 case $ac_val in #(
8864 *${as_nl}*)
8865 case $ac_var in #(
8866 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
8867 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
8868 esac
8869 case $ac_var in #(
8870 _ | IFS | as_nl) ;; #(
8871 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
8872 *) $as_unset $ac_var ;;
8873 esac ;;
8874 esac
8875 done
8877 (set) 2>&1 |
8878 case $as_nl`(ac_space=' '; set) 2>&1` in #(
8879 *${as_nl}ac_space=\ *)
8880 # `set' does not quote correctly, so add quotes (double-quote
8881 # substitution turns \\\\ into \\, and sed turns \\ into \).
8882 sed -n \
8883 "s/'/'\\\\''/g;
8884 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
8885 ;; #(
8887 # `set' quotes correctly as required by POSIX, so do not add quotes.
8888 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
8890 esac |
8891 sort
8893 sed '
8894 /^ac_cv_env_/b end
8895 t clear
8896 :clear
8897 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
8898 t end
8899 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8900 :end' >>confcache
8901 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
8902 if test -w "$cache_file"; then
8903 test "x$cache_file" != "x/dev/null" &&
8904 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
8905 $as_echo "$as_me: updating cache $cache_file" >&6;}
8906 cat confcache >$cache_file
8907 else
8908 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
8909 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
8912 rm -f confcache
8914 test "x$prefix" = xNONE && prefix=$ac_default_prefix
8915 # Let make expand exec_prefix.
8916 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8918 DEFS=-DHAVE_CONFIG_H
8920 ac_libobjs=
8921 ac_ltlibobjs=
8922 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
8923 # 1. Remove the extension, and $U if already installed.
8924 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
8925 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
8926 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
8927 # will be set to the directory where LIBOBJS objects are built.
8928 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
8929 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
8930 done
8931 LIBOBJS=$ac_libobjs
8933 LTLIBOBJS=$ac_ltlibobjs
8937 : ${CONFIG_STATUS=./config.status}
8938 ac_write_fail=0
8939 ac_clean_files_save=$ac_clean_files
8940 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
8941 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
8942 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
8943 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8944 #! $SHELL
8945 # Generated by $as_me.
8946 # Run this file to recreate the current configuration.
8947 # Compiler output produced by configure, useful for debugging
8948 # configure, is in config.log if it exists.
8950 debug=false
8951 ac_cs_recheck=false
8952 ac_cs_silent=false
8953 SHELL=\${CONFIG_SHELL-$SHELL}
8954 _ACEOF
8956 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8957 ## --------------------- ##
8958 ## M4sh Initialization. ##
8959 ## --------------------- ##
8961 # Be more Bourne compatible
8962 DUALCASE=1; export DUALCASE # for MKS sh
8963 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
8964 emulate sh
8965 NULLCMD=:
8966 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
8967 # is contrary to our usage. Disable this feature.
8968 alias -g '${1+"$@"}'='"$@"'
8969 setopt NO_GLOB_SUBST
8970 else
8971 case `(set -o) 2>/dev/null` in
8972 *posix*) set -o posix ;;
8973 esac
8980 # PATH needs CR
8981 # Avoid depending upon Character Ranges.
8982 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
8983 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
8984 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
8985 as_cr_digits='0123456789'
8986 as_cr_alnum=$as_cr_Letters$as_cr_digits
8988 as_nl='
8990 export as_nl
8991 # Printing a long string crashes Solaris 7 /usr/bin/printf.
8992 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
8993 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
8994 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
8995 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
8996 as_echo='printf %s\n'
8997 as_echo_n='printf %s'
8998 else
8999 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
9000 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
9001 as_echo_n='/usr/ucb/echo -n'
9002 else
9003 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
9004 as_echo_n_body='eval
9005 arg=$1;
9006 case $arg in
9007 *"$as_nl"*)
9008 expr "X$arg" : "X\\(.*\\)$as_nl";
9009 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
9010 esac;
9011 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
9013 export as_echo_n_body
9014 as_echo_n='sh -c $as_echo_n_body as_echo'
9016 export as_echo_body
9017 as_echo='sh -c $as_echo_body as_echo'
9020 # The user is always right.
9021 if test "${PATH_SEPARATOR+set}" != set; then
9022 PATH_SEPARATOR=:
9023 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
9024 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
9025 PATH_SEPARATOR=';'
9029 # Support unset when possible.
9030 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
9031 as_unset=unset
9032 else
9033 as_unset=false
9037 # IFS
9038 # We need space, tab and new line, in precisely that order. Quoting is
9039 # there to prevent editors from complaining about space-tab.
9040 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
9041 # splitting by setting IFS to empty value.)
9042 IFS=" "" $as_nl"
9044 # Find who we are. Look in the path if we contain no directory separator.
9045 case $0 in
9046 *[\\/]* ) as_myself=$0 ;;
9047 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9048 for as_dir in $PATH
9050 IFS=$as_save_IFS
9051 test -z "$as_dir" && as_dir=.
9052 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
9053 done
9054 IFS=$as_save_IFS
9057 esac
9058 # We did not find ourselves, most probably we were run as `sh COMMAND'
9059 # in which case we are not to be found in the path.
9060 if test "x$as_myself" = x; then
9061 as_myself=$0
9063 if test ! -f "$as_myself"; then
9064 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
9065 { (exit 1); exit 1; }
9068 # Work around bugs in pre-3.0 UWIN ksh.
9069 for as_var in ENV MAIL MAILPATH
9070 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
9071 done
9072 PS1='$ '
9073 PS2='> '
9074 PS4='+ '
9076 # NLS nuisances.
9077 LC_ALL=C
9078 export LC_ALL
9079 LANGUAGE=C
9080 export LANGUAGE
9082 # Required to use basename.
9083 if expr a : '\(a\)' >/dev/null 2>&1 &&
9084 test "X`expr 00001 : '.*\(...\)'`" = X001; then
9085 as_expr=expr
9086 else
9087 as_expr=false
9090 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
9091 as_basename=basename
9092 else
9093 as_basename=false
9097 # Name of the executable.
9098 as_me=`$as_basename -- "$0" ||
9099 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
9100 X"$0" : 'X\(//\)$' \| \
9101 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
9102 $as_echo X/"$0" |
9103 sed '/^.*\/\([^/][^/]*\)\/*$/{
9104 s//\1/
9107 /^X\/\(\/\/\)$/{
9108 s//\1/
9111 /^X\/\(\/\).*/{
9112 s//\1/
9115 s/.*/./; q'`
9117 # CDPATH.
9118 $as_unset CDPATH
9122 as_lineno_1=$LINENO
9123 as_lineno_2=$LINENO
9124 test "x$as_lineno_1" != "x$as_lineno_2" &&
9125 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
9127 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
9128 # uniformly replaced by the line number. The first 'sed' inserts a
9129 # line-number line after each line using $LINENO; the second 'sed'
9130 # does the real work. The second script uses 'N' to pair each
9131 # line-number line with the line containing $LINENO, and appends
9132 # trailing '-' during substitution so that $LINENO is not a special
9133 # case at line end.
9134 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
9135 # scripts with optimization help from Paolo Bonzini. Blame Lee
9136 # E. McMahon (1931-1989) for sed's syntax. :-)
9137 sed -n '
9139 /[$]LINENO/=
9140 ' <$as_myself |
9141 sed '
9142 s/[$]LINENO.*/&-/
9143 t lineno
9145 :lineno
9147 :loop
9148 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
9149 t loop
9150 s/-\n.*//
9151 ' >$as_me.lineno &&
9152 chmod +x "$as_me.lineno" ||
9153 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
9154 { (exit 1); exit 1; }; }
9156 # Don't try to exec as it changes $[0], causing all sort of problems
9157 # (the dirname of $[0] is not the place where we might find the
9158 # original and so on. Autoconf is especially sensitive to this).
9159 . "./$as_me.lineno"
9160 # Exit status is that of the last command.
9161 exit
9165 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
9166 as_dirname=dirname
9167 else
9168 as_dirname=false
9171 ECHO_C= ECHO_N= ECHO_T=
9172 case `echo -n x` in
9173 -n*)
9174 case `echo 'x\c'` in
9175 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
9176 *) ECHO_C='\c';;
9177 esac;;
9179 ECHO_N='-n';;
9180 esac
9181 if expr a : '\(a\)' >/dev/null 2>&1 &&
9182 test "X`expr 00001 : '.*\(...\)'`" = X001; then
9183 as_expr=expr
9184 else
9185 as_expr=false
9188 rm -f conf$$ conf$$.exe conf$$.file
9189 if test -d conf$$.dir; then
9190 rm -f conf$$.dir/conf$$.file
9191 else
9192 rm -f conf$$.dir
9193 mkdir conf$$.dir 2>/dev/null
9195 if (echo >conf$$.file) 2>/dev/null; then
9196 if ln -s conf$$.file conf$$ 2>/dev/null; then
9197 as_ln_s='ln -s'
9198 # ... but there are two gotchas:
9199 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
9200 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
9201 # In both cases, we have to default to `cp -p'.
9202 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
9203 as_ln_s='cp -p'
9204 elif ln conf$$.file conf$$ 2>/dev/null; then
9205 as_ln_s=ln
9206 else
9207 as_ln_s='cp -p'
9209 else
9210 as_ln_s='cp -p'
9212 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
9213 rmdir conf$$.dir 2>/dev/null
9215 if mkdir -p . 2>/dev/null; then
9216 as_mkdir_p=:
9217 else
9218 test -d ./-p && rmdir ./-p
9219 as_mkdir_p=false
9222 if test -x / >/dev/null 2>&1; then
9223 as_test_x='test -x'
9224 else
9225 if ls -dL / >/dev/null 2>&1; then
9226 as_ls_L_option=L
9227 else
9228 as_ls_L_option=
9230 as_test_x='
9231 eval sh -c '\''
9232 if test -d "$1"; then
9233 test -d "$1/.";
9234 else
9235 case $1 in
9236 -*)set "./$1";;
9237 esac;
9238 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
9239 ???[sx]*):;;*)false;;esac;fi
9240 '\'' sh
9243 as_executable_p=$as_test_x
9245 # Sed expression to map a string onto a valid CPP name.
9246 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
9248 # Sed expression to map a string onto a valid variable name.
9249 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
9252 exec 6>&1
9254 # Save the log message, to keep $[0] and so on meaningful, and to
9255 # report actual input values of CONFIG_FILES etc. instead of their
9256 # values after options handling.
9257 ac_log="
9258 This file was extended by GNU C Library $as_me (see version.h), which was
9259 generated by GNU Autoconf 2.63. Invocation command line was
9261 CONFIG_FILES = $CONFIG_FILES
9262 CONFIG_HEADERS = $CONFIG_HEADERS
9263 CONFIG_LINKS = $CONFIG_LINKS
9264 CONFIG_COMMANDS = $CONFIG_COMMANDS
9265 $ $0 $@
9267 on `(hostname || uname -n) 2>/dev/null | sed 1q`
9270 _ACEOF
9272 case $ac_config_files in *"
9273 "*) set x $ac_config_files; shift; ac_config_files=$*;;
9274 esac
9276 case $ac_config_headers in *"
9277 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
9278 esac
9281 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9282 # Files that config.status was made for.
9283 config_files="$ac_config_files"
9284 config_headers="$ac_config_headers"
9285 config_commands="$ac_config_commands"
9287 _ACEOF
9289 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9290 ac_cs_usage="\
9291 \`$as_me' instantiates files from templates according to the
9292 current configuration.
9294 Usage: $0 [OPTION]... [FILE]...
9296 -h, --help print this help, then exit
9297 -V, --version print version number and configuration settings, then exit
9298 -q, --quiet, --silent
9299 do not print progress messages
9300 -d, --debug don't remove temporary files
9301 --recheck update $as_me by reconfiguring in the same conditions
9302 --file=FILE[:TEMPLATE]
9303 instantiate the configuration file FILE
9304 --header=FILE[:TEMPLATE]
9305 instantiate the configuration header FILE
9307 Configuration files:
9308 $config_files
9310 Configuration headers:
9311 $config_headers
9313 Configuration commands:
9314 $config_commands
9316 Report bugs to <bug-autoconf@gnu.org>."
9318 _ACEOF
9319 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9320 ac_cs_version="\\
9321 GNU C Library config.status (see version.h)
9322 configured by $0, generated by GNU Autoconf 2.63,
9323 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
9325 Copyright (C) 2008 Free Software Foundation, Inc.
9326 This config.status script is free software; the Free Software Foundation
9327 gives unlimited permission to copy, distribute and modify it."
9329 ac_pwd='$ac_pwd'
9330 srcdir='$srcdir'
9331 INSTALL='$INSTALL'
9332 AWK='$AWK'
9333 test -n "\$AWK" || AWK=awk
9334 _ACEOF
9336 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9337 # The default lists apply if the user does not specify any file.
9338 ac_need_defaults=:
9339 while test $# != 0
9341 case $1 in
9342 --*=*)
9343 ac_option=`expr "X$1" : 'X\([^=]*\)='`
9344 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
9345 ac_shift=:
9348 ac_option=$1
9349 ac_optarg=$2
9350 ac_shift=shift
9352 esac
9354 case $ac_option in
9355 # Handling of the options.
9356 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9357 ac_cs_recheck=: ;;
9358 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
9359 $as_echo "$ac_cs_version"; exit ;;
9360 --debug | --debu | --deb | --de | --d | -d )
9361 debug=: ;;
9362 --file | --fil | --fi | --f )
9363 $ac_shift
9364 case $ac_optarg in
9365 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
9366 esac
9367 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
9368 ac_need_defaults=false;;
9369 --header | --heade | --head | --hea )
9370 $ac_shift
9371 case $ac_optarg in
9372 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
9373 esac
9374 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
9375 ac_need_defaults=false;;
9376 --he | --h)
9377 # Conflict between --help and --header
9378 { $as_echo "$as_me: error: ambiguous option: $1
9379 Try \`$0 --help' for more information." >&2
9380 { (exit 1); exit 1; }; };;
9381 --help | --hel | -h )
9382 $as_echo "$ac_cs_usage"; exit ;;
9383 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
9384 | -silent | --silent | --silen | --sile | --sil | --si | --s)
9385 ac_cs_silent=: ;;
9387 # This is an error.
9388 -*) { $as_echo "$as_me: error: unrecognized option: $1
9389 Try \`$0 --help' for more information." >&2
9390 { (exit 1); exit 1; }; } ;;
9392 *) ac_config_targets="$ac_config_targets $1"
9393 ac_need_defaults=false ;;
9395 esac
9396 shift
9397 done
9399 ac_configure_extra_args=
9401 if $ac_cs_silent; then
9402 exec 6>/dev/null
9403 ac_configure_extra_args="$ac_configure_extra_args --silent"
9406 _ACEOF
9407 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9408 if \$ac_cs_recheck; then
9409 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
9410 shift
9411 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
9412 CONFIG_SHELL='$SHELL'
9413 export CONFIG_SHELL
9414 exec "\$@"
9417 _ACEOF
9418 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9419 exec 5>>config.log
9421 echo
9422 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
9423 ## Running $as_me. ##
9424 _ASBOX
9425 $as_echo "$ac_log"
9426 } >&5
9428 _ACEOF
9429 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9431 # INIT-COMMANDS
9433 config_vars='$config_vars'
9435 _ACEOF
9437 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9439 # Handling of arguments.
9440 for ac_config_target in $ac_config_targets
9442 case $ac_config_target in
9443 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
9444 "config.make") CONFIG_FILES="$CONFIG_FILES config.make" ;;
9445 "${config_makefile}") CONFIG_FILES="$CONFIG_FILES ${config_makefile}" ;;
9446 "${config_uname}") CONFIG_FILES="$CONFIG_FILES ${config_uname}" ;;
9447 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
9449 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
9450 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
9451 { (exit 1); exit 1; }; };;
9452 esac
9453 done
9456 # If the user did not use the arguments to specify the items to instantiate,
9457 # then the envvar interface is used. Set only those that are not.
9458 # We use the long form for the default assignment because of an extremely
9459 # bizarre bug on SunOS 4.1.3.
9460 if $ac_need_defaults; then
9461 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
9462 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
9463 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
9466 # Have a temporary directory for convenience. Make it in the build tree
9467 # simply because there is no reason against having it here, and in addition,
9468 # creating and moving files from /tmp can sometimes cause problems.
9469 # Hook for its removal unless debugging.
9470 # Note that there is a small window in which the directory will not be cleaned:
9471 # after its creation but before its name has been assigned to `$tmp'.
9472 $debug ||
9474 tmp=
9475 trap 'exit_status=$?
9476 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
9478 trap '{ (exit 1); exit 1; }' 1 2 13 15
9480 # Create a (secure) tmp directory for tmp files.
9483 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
9484 test -n "$tmp" && test -d "$tmp"
9485 } ||
9487 tmp=./conf$$-$RANDOM
9488 (umask 077 && mkdir "$tmp")
9489 } ||
9491 $as_echo "$as_me: cannot create a temporary directory in ." >&2
9492 { (exit 1); exit 1; }
9495 # Set up the scripts for CONFIG_FILES section.
9496 # No need to generate them if there are no CONFIG_FILES.
9497 # This happens for instance with `./config.status config.h'.
9498 if test -n "$CONFIG_FILES"; then
9501 ac_cr=' '
9502 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
9503 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
9504 ac_cs_awk_cr='\\r'
9505 else
9506 ac_cs_awk_cr=$ac_cr
9509 echo 'BEGIN {' >"$tmp/subs1.awk" &&
9510 _ACEOF
9514 echo "cat >conf$$subs.awk <<_ACEOF" &&
9515 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
9516 echo "_ACEOF"
9517 } >conf$$subs.sh ||
9518 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
9519 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
9520 { (exit 1); exit 1; }; }
9521 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
9522 ac_delim='%!_!# '
9523 for ac_last_try in false false false false false :; do
9524 . ./conf$$subs.sh ||
9525 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
9526 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
9527 { (exit 1); exit 1; }; }
9529 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
9530 if test $ac_delim_n = $ac_delim_num; then
9531 break
9532 elif $ac_last_try; then
9533 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
9534 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
9535 { (exit 1); exit 1; }; }
9536 else
9537 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
9539 done
9540 rm -f conf$$subs.sh
9542 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9543 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
9544 _ACEOF
9545 sed -n '
9547 s/^/S["/; s/!.*/"]=/
9550 s/^[^!]*!//
9551 :repl
9552 t repl
9553 s/'"$ac_delim"'$//
9554 t delim
9557 s/\(.\{148\}\).*/\1/
9558 t more1
9559 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
9562 b repl
9563 :more1
9564 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
9567 s/.\{148\}//
9568 t nl
9569 :delim
9571 s/\(.\{148\}\).*/\1/
9572 t more2
9573 s/["\\]/\\&/g; s/^/"/; s/$/"/
9576 :more2
9577 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
9580 s/.\{148\}//
9581 t delim
9582 ' <conf$$subs.awk | sed '
9583 /^[^""]/{
9585 s/\n//
9587 ' >>$CONFIG_STATUS || ac_write_fail=1
9588 rm -f conf$$subs.awk
9589 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9590 _ACAWK
9591 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
9592 for (key in S) S_is_set[key] = 1
9593 FS = "\a"
9597 line = $ 0
9598 nfields = split(line, field, "@")
9599 substed = 0
9600 len = length(field[1])
9601 for (i = 2; i < nfields; i++) {
9602 key = field[i]
9603 keylen = length(key)
9604 if (S_is_set[key]) {
9605 value = S[key]
9606 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
9607 len += length(value) + length(field[++i])
9608 substed = 1
9609 } else
9610 len += 1 + keylen
9613 print line
9616 _ACAWK
9617 _ACEOF
9618 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9619 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
9620 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
9621 else
9623 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
9624 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
9625 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
9626 { (exit 1); exit 1; }; }
9627 _ACEOF
9629 # VPATH may cause trouble with some makes, so we remove $(srcdir),
9630 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
9631 # trailing colons and then remove the whole line if VPATH becomes empty
9632 # (actually we leave an empty line to preserve line numbers).
9633 if test "x$srcdir" = x.; then
9634 ac_vpsub='/^[ ]*VPATH[ ]*=/{
9635 s/:*\$(srcdir):*/:/
9636 s/:*\${srcdir}:*/:/
9637 s/:*@srcdir@:*/:/
9638 s/^\([^=]*=[ ]*\):*/\1/
9639 s/:*$//
9640 s/^[^=]*=[ ]*$//
9644 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9645 fi # test -n "$CONFIG_FILES"
9647 # Set up the scripts for CONFIG_HEADERS section.
9648 # No need to generate them if there are no CONFIG_HEADERS.
9649 # This happens for instance with `./config.status Makefile'.
9650 if test -n "$CONFIG_HEADERS"; then
9651 cat >"$tmp/defines.awk" <<\_ACAWK ||
9652 BEGIN {
9653 _ACEOF
9655 # Transform confdefs.h into an awk script `defines.awk', embedded as
9656 # here-document in config.status, that substitutes the proper values into
9657 # config.h.in to produce config.h.
9659 # Create a delimiter string that does not exist in confdefs.h, to ease
9660 # handling of long lines.
9661 ac_delim='%!_!# '
9662 for ac_last_try in false false :; do
9663 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
9664 if test -z "$ac_t"; then
9665 break
9666 elif $ac_last_try; then
9667 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
9668 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
9669 { (exit 1); exit 1; }; }
9670 else
9671 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
9673 done
9675 # For the awk script, D is an array of macro values keyed by name,
9676 # likewise P contains macro parameters if any. Preserve backslash
9677 # newline sequences.
9679 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
9680 sed -n '
9681 s/.\{148\}/&'"$ac_delim"'/g
9682 t rset
9683 :rset
9684 s/^[ ]*#[ ]*define[ ][ ]*/ /
9685 t def
9687 :def
9688 s/\\$//
9689 t bsnl
9690 s/["\\]/\\&/g
9691 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
9692 D["\1"]=" \3"/p
9693 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
9695 :bsnl
9696 s/["\\]/\\&/g
9697 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
9698 D["\1"]=" \3\\\\\\n"\\/p
9699 t cont
9700 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
9701 t cont
9703 :cont
9705 s/.\{148\}/&'"$ac_delim"'/g
9706 t clear
9707 :clear
9708 s/\\$//
9709 t bsnlc
9710 s/["\\]/\\&/g; s/^/"/; s/$/"/p
9712 :bsnlc
9713 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
9714 b cont
9715 ' <confdefs.h | sed '
9716 s/'"$ac_delim"'/"\\\
9717 "/g' >>$CONFIG_STATUS || ac_write_fail=1
9719 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9720 for (key in D) D_is_set[key] = 1
9721 FS = "\a"
9723 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
9724 line = \$ 0
9725 split(line, arg, " ")
9726 if (arg[1] == "#") {
9727 defundef = arg[2]
9728 mac1 = arg[3]
9729 } else {
9730 defundef = substr(arg[1], 2)
9731 mac1 = arg[2]
9733 split(mac1, mac2, "(") #)
9734 macro = mac2[1]
9735 prefix = substr(line, 1, index(line, defundef) - 1)
9736 if (D_is_set[macro]) {
9737 # Preserve the white space surrounding the "#".
9738 print prefix "define", macro P[macro] D[macro]
9739 next
9740 } else {
9741 # Replace #undef with comments. This is necessary, for example,
9742 # in the case of _POSIX_SOURCE, which is predefined and required
9743 # on some systems where configure will not decide to define it.
9744 if (defundef == "undef") {
9745 print "/*", prefix defundef, macro, "*/"
9746 next
9750 { print }
9751 _ACAWK
9752 _ACEOF
9753 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9754 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
9755 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
9756 { (exit 1); exit 1; }; }
9757 fi # test -n "$CONFIG_HEADERS"
9760 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
9761 shift
9762 for ac_tag
9764 case $ac_tag in
9765 :[FHLC]) ac_mode=$ac_tag; continue;;
9766 esac
9767 case $ac_mode$ac_tag in
9768 :[FHL]*:*);;
9769 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
9770 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
9771 { (exit 1); exit 1; }; };;
9772 :[FH]-) ac_tag=-:-;;
9773 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
9774 esac
9775 ac_save_IFS=$IFS
9776 IFS=:
9777 set x $ac_tag
9778 IFS=$ac_save_IFS
9779 shift
9780 ac_file=$1
9781 shift
9783 case $ac_mode in
9784 :L) ac_source=$1;;
9785 :[FH])
9786 ac_file_inputs=
9787 for ac_f
9789 case $ac_f in
9790 -) ac_f="$tmp/stdin";;
9791 *) # Look for the file first in the build tree, then in the source tree
9792 # (if the path is not absolute). The absolute path cannot be DOS-style,
9793 # because $ac_f cannot contain `:'.
9794 test -f "$ac_f" ||
9795 case $ac_f in
9796 [\\/$]*) false;;
9797 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
9798 esac ||
9799 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
9800 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
9801 { (exit 1); exit 1; }; };;
9802 esac
9803 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
9804 ac_file_inputs="$ac_file_inputs '$ac_f'"
9805 done
9807 # Let's still pretend it is `configure' which instantiates (i.e., don't
9808 # use $as_me), people would be surprised to read:
9809 # /* config.h. Generated by config.status. */
9810 configure_input='Generated from '`
9811 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
9812 `' by configure.'
9813 if test x"$ac_file" != x-; then
9814 configure_input="$ac_file. $configure_input"
9815 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
9816 $as_echo "$as_me: creating $ac_file" >&6;}
9818 # Neutralize special characters interpreted by sed in replacement strings.
9819 case $configure_input in #(
9820 *\&* | *\|* | *\\* )
9821 ac_sed_conf_input=`$as_echo "$configure_input" |
9822 sed 's/[\\\\&|]/\\\\&/g'`;; #(
9823 *) ac_sed_conf_input=$configure_input;;
9824 esac
9826 case $ac_tag in
9827 *:-:* | *:-) cat >"$tmp/stdin" \
9828 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
9829 $as_echo "$as_me: error: could not create $ac_file" >&2;}
9830 { (exit 1); exit 1; }; } ;;
9831 esac
9833 esac
9835 ac_dir=`$as_dirname -- "$ac_file" ||
9836 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9837 X"$ac_file" : 'X\(//\)[^/]' \| \
9838 X"$ac_file" : 'X\(//\)$' \| \
9839 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
9840 $as_echo X"$ac_file" |
9841 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9842 s//\1/
9845 /^X\(\/\/\)[^/].*/{
9846 s//\1/
9849 /^X\(\/\/\)$/{
9850 s//\1/
9853 /^X\(\/\).*/{
9854 s//\1/
9857 s/.*/./; q'`
9858 { as_dir="$ac_dir"
9859 case $as_dir in #(
9860 -*) as_dir=./$as_dir;;
9861 esac
9862 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
9863 as_dirs=
9864 while :; do
9865 case $as_dir in #(
9866 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
9867 *) as_qdir=$as_dir;;
9868 esac
9869 as_dirs="'$as_qdir' $as_dirs"
9870 as_dir=`$as_dirname -- "$as_dir" ||
9871 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9872 X"$as_dir" : 'X\(//\)[^/]' \| \
9873 X"$as_dir" : 'X\(//\)$' \| \
9874 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
9875 $as_echo X"$as_dir" |
9876 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9877 s//\1/
9880 /^X\(\/\/\)[^/].*/{
9881 s//\1/
9884 /^X\(\/\/\)$/{
9885 s//\1/
9888 /^X\(\/\).*/{
9889 s//\1/
9892 s/.*/./; q'`
9893 test -d "$as_dir" && break
9894 done
9895 test -z "$as_dirs" || eval "mkdir $as_dirs"
9896 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
9897 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
9898 { (exit 1); exit 1; }; }; }
9899 ac_builddir=.
9901 case "$ac_dir" in
9902 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
9904 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
9905 # A ".." for each directory in $ac_dir_suffix.
9906 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
9907 case $ac_top_builddir_sub in
9908 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
9909 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
9910 esac ;;
9911 esac
9912 ac_abs_top_builddir=$ac_pwd
9913 ac_abs_builddir=$ac_pwd$ac_dir_suffix
9914 # for backward compatibility:
9915 ac_top_builddir=$ac_top_build_prefix
9917 case $srcdir in
9918 .) # We are building in place.
9919 ac_srcdir=.
9920 ac_top_srcdir=$ac_top_builddir_sub
9921 ac_abs_top_srcdir=$ac_pwd ;;
9922 [\\/]* | ?:[\\/]* ) # Absolute name.
9923 ac_srcdir=$srcdir$ac_dir_suffix;
9924 ac_top_srcdir=$srcdir
9925 ac_abs_top_srcdir=$srcdir ;;
9926 *) # Relative name.
9927 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
9928 ac_top_srcdir=$ac_top_build_prefix$srcdir
9929 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
9930 esac
9931 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
9934 case $ac_mode in
9937 # CONFIG_FILE
9940 case $INSTALL in
9941 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
9942 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
9943 esac
9944 _ACEOF
9946 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9947 # If the template does not know about datarootdir, expand it.
9948 # FIXME: This hack should be removed a few years after 2.60.
9949 ac_datarootdir_hack=; ac_datarootdir_seen=
9951 ac_sed_dataroot='
9952 /datarootdir/ {
9956 /@datadir@/p
9957 /@docdir@/p
9958 /@infodir@/p
9959 /@localedir@/p
9960 /@mandir@/p
9962 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
9963 *datarootdir*) ac_datarootdir_seen=yes;;
9964 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
9965 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
9966 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
9967 _ACEOF
9968 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9969 ac_datarootdir_hack='
9970 s&@datadir@&$datadir&g
9971 s&@docdir@&$docdir&g
9972 s&@infodir@&$infodir&g
9973 s&@localedir@&$localedir&g
9974 s&@mandir@&$mandir&g
9975 s&\\\${datarootdir}&$datarootdir&g' ;;
9976 esac
9977 _ACEOF
9979 # Neutralize VPATH when `$srcdir' = `.'.
9980 # Shell code in configure.ac might set extrasub.
9981 # FIXME: do we really want to maintain this feature?
9982 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9983 ac_sed_extra="$ac_vpsub
9984 $extrasub
9985 _ACEOF
9986 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9988 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
9989 s|@configure_input@|$ac_sed_conf_input|;t t
9990 s&@top_builddir@&$ac_top_builddir_sub&;t t
9991 s&@top_build_prefix@&$ac_top_build_prefix&;t t
9992 s&@srcdir@&$ac_srcdir&;t t
9993 s&@abs_srcdir@&$ac_abs_srcdir&;t t
9994 s&@top_srcdir@&$ac_top_srcdir&;t t
9995 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
9996 s&@builddir@&$ac_builddir&;t t
9997 s&@abs_builddir@&$ac_abs_builddir&;t t
9998 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
9999 s&@INSTALL@&$ac_INSTALL&;t t
10000 $ac_datarootdir_hack
10002 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
10003 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
10004 $as_echo "$as_me: error: could not create $ac_file" >&2;}
10005 { (exit 1); exit 1; }; }
10007 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
10008 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
10009 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
10010 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
10011 which seems to be undefined. Please make sure it is defined." >&5
10012 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
10013 which seems to be undefined. Please make sure it is defined." >&2;}
10015 rm -f "$tmp/stdin"
10016 case $ac_file in
10017 -) cat "$tmp/out" && rm -f "$tmp/out";;
10018 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
10019 esac \
10020 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
10021 $as_echo "$as_me: error: could not create $ac_file" >&2;}
10022 { (exit 1); exit 1; }; }
10026 # CONFIG_HEADER
10028 if test x"$ac_file" != x-; then
10030 $as_echo "/* $configure_input */" \
10031 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
10032 } >"$tmp/config.h" \
10033 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
10034 $as_echo "$as_me: error: could not create $ac_file" >&2;}
10035 { (exit 1); exit 1; }; }
10036 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
10037 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
10038 $as_echo "$as_me: $ac_file is unchanged" >&6;}
10039 else
10040 rm -f "$ac_file"
10041 mv "$tmp/config.h" "$ac_file" \
10042 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
10043 $as_echo "$as_me: error: could not create $ac_file" >&2;}
10044 { (exit 1); exit 1; }; }
10046 else
10047 $as_echo "/* $configure_input */" \
10048 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
10049 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
10050 $as_echo "$as_me: error: could not create -" >&2;}
10051 { (exit 1); exit 1; }; }
10055 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
10056 $as_echo "$as_me: executing $ac_file commands" >&6;}
10058 esac
10061 case $ac_file$ac_mode in
10062 "default":C)
10063 case $CONFIG_FILES in *config.make*)
10064 echo "$config_vars" >> config.make;;
10065 esac
10066 test -d bits || mkdir bits ;;
10068 esac
10069 done # for ac_tag
10072 { (exit 0); exit 0; }
10073 _ACEOF
10074 chmod +x $CONFIG_STATUS
10075 ac_clean_files=$ac_clean_files_save
10077 test $ac_write_fail = 0 ||
10078 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
10079 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
10080 { (exit 1); exit 1; }; }
10083 # configure is writing to config.log, and then calls config.status.
10084 # config.status does its own redirection, appending to config.log.
10085 # Unfortunately, on DOS this fails, as config.log is still kept open
10086 # by configure, so config.status won't be able to write to it; its
10087 # output is simply discarded. So we exec the FD to /dev/null,
10088 # effectively closing config.log, so it can be properly (re)opened and
10089 # appended to by config.status. When coming back to configure, we
10090 # need to make the FD available again.
10091 if test "$no_create" != yes; then
10092 ac_cs_success=:
10093 ac_config_status_args=
10094 test "$silent" = yes &&
10095 ac_config_status_args="$ac_config_status_args --quiet"
10096 exec 5>/dev/null
10097 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
10098 exec 5>>config.log
10099 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
10100 # would make configure fail if this is the last instruction.
10101 $ac_cs_success || { (exit 1); exit 1; }
10105 # CONFIG_SUBDIRS section.
10107 if test "$no_recursion" != yes; then
10109 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
10110 # so they do not pile up.
10111 ac_sub_configure_args=
10112 ac_prev=
10113 eval "set x $ac_configure_args"
10114 shift
10115 for ac_arg
10117 if test -n "$ac_prev"; then
10118 ac_prev=
10119 continue
10121 case $ac_arg in
10122 -cache-file | --cache-file | --cache-fil | --cache-fi \
10123 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
10124 ac_prev=cache_file ;;
10125 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
10126 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
10127 | --c=*)
10129 --config-cache | -C)
10131 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
10132 ac_prev=srcdir ;;
10133 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
10135 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
10136 ac_prev=prefix ;;
10137 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
10139 --disable-option-checking)
10142 case $ac_arg in
10143 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
10144 esac
10145 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
10146 esac
10147 done
10149 # Always prepend --prefix to ensure using the same prefix
10150 # in subdir configurations.
10151 ac_arg="--prefix=$prefix"
10152 case $ac_arg in
10153 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
10154 esac
10155 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
10157 # Pass --silent
10158 if test "$silent" = yes; then
10159 ac_sub_configure_args="--silent $ac_sub_configure_args"
10162 # Always prepend --disable-option-checking to silence warnings, since
10163 # different subdirs can have different --enable and --with options.
10164 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
10166 ac_popdir=`pwd`
10167 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
10169 # Do not complain, so a configure script can configure whichever
10170 # parts of a large source tree are present.
10171 test -d "$srcdir/$ac_dir" || continue
10173 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
10174 $as_echo "$as_me:$LINENO: $ac_msg" >&5
10175 $as_echo "$ac_msg" >&6
10176 { as_dir="$ac_dir"
10177 case $as_dir in #(
10178 -*) as_dir=./$as_dir;;
10179 esac
10180 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
10181 as_dirs=
10182 while :; do
10183 case $as_dir in #(
10184 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
10185 *) as_qdir=$as_dir;;
10186 esac
10187 as_dirs="'$as_qdir' $as_dirs"
10188 as_dir=`$as_dirname -- "$as_dir" ||
10189 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10190 X"$as_dir" : 'X\(//\)[^/]' \| \
10191 X"$as_dir" : 'X\(//\)$' \| \
10192 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
10193 $as_echo X"$as_dir" |
10194 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10195 s//\1/
10198 /^X\(\/\/\)[^/].*/{
10199 s//\1/
10202 /^X\(\/\/\)$/{
10203 s//\1/
10206 /^X\(\/\).*/{
10207 s//\1/
10210 s/.*/./; q'`
10211 test -d "$as_dir" && break
10212 done
10213 test -z "$as_dirs" || eval "mkdir $as_dirs"
10214 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
10215 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
10216 { (exit 1); exit 1; }; }; }
10217 ac_builddir=.
10219 case "$ac_dir" in
10220 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
10222 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
10223 # A ".." for each directory in $ac_dir_suffix.
10224 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
10225 case $ac_top_builddir_sub in
10226 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
10227 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
10228 esac ;;
10229 esac
10230 ac_abs_top_builddir=$ac_pwd
10231 ac_abs_builddir=$ac_pwd$ac_dir_suffix
10232 # for backward compatibility:
10233 ac_top_builddir=$ac_top_build_prefix
10235 case $srcdir in
10236 .) # We are building in place.
10237 ac_srcdir=.
10238 ac_top_srcdir=$ac_top_builddir_sub
10239 ac_abs_top_srcdir=$ac_pwd ;;
10240 [\\/]* | ?:[\\/]* ) # Absolute name.
10241 ac_srcdir=$srcdir$ac_dir_suffix;
10242 ac_top_srcdir=$srcdir
10243 ac_abs_top_srcdir=$srcdir ;;
10244 *) # Relative name.
10245 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
10246 ac_top_srcdir=$ac_top_build_prefix$srcdir
10247 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
10248 esac
10249 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
10252 cd "$ac_dir"
10254 # Check for guested configure; otherwise get Cygnus style configure.
10255 if test -f "$ac_srcdir/configure.gnu"; then
10256 ac_sub_configure=$ac_srcdir/configure.gnu
10257 elif test -f "$ac_srcdir/configure"; then
10258 ac_sub_configure=$ac_srcdir/configure
10259 elif test -f "$ac_srcdir/configure.in"; then
10260 # This should be Cygnus configure.
10261 ac_sub_configure=$ac_aux_dir/configure
10262 else
10263 { $as_echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
10264 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
10265 ac_sub_configure=
10268 # The recursion is here.
10269 if test -n "$ac_sub_configure"; then
10270 # Make the cache file name correct relative to the subdirectory.
10271 case $cache_file in
10272 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
10273 *) # Relative name.
10274 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
10275 esac
10277 { $as_echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
10278 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
10279 # The eval makes quoting arguments work.
10280 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
10281 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
10282 { { $as_echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
10283 $as_echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
10284 { (exit 1); exit 1; }; }
10287 cd "$ac_popdir"
10288 done
10290 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
10291 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
10292 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}