Re-install F_[GS]ETOWN_EX changes
[glibc.git] / configure
blobce76653821c8b7b173c7db2eb084a5e68ae770d3
1 #! /bin/sh
2 # From configure.in CVSid.
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.63 for GNU C Library (see version.h).
6 # Report bugs to <glibc>.
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
10 # This configure script is free software; the Free Software Foundation
11 # gives unlimited permission to copy, distribute and modify it.
12 ## --------------------- ##
13 ## M4sh Initialization. ##
14 ## --------------------- ##
16 # Be more Bourne compatible
17 DUALCASE=1; export DUALCASE # for MKS sh
18 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19 emulate sh
20 NULLCMD=:
21 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
22 # is contrary to our usage. Disable this feature.
23 alias -g '${1+"$@"}'='"$@"'
24 setopt NO_GLOB_SUBST
25 else
26 case `(set -o) 2>/dev/null` in
27 *posix*) set -o posix ;;
28 esac
35 # PATH needs CR
36 # Avoid depending upon Character Ranges.
37 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
38 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
39 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
40 as_cr_digits='0123456789'
41 as_cr_alnum=$as_cr_Letters$as_cr_digits
43 as_nl='
45 export as_nl
46 # Printing a long string crashes Solaris 7 /usr/bin/printf.
47 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
48 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
49 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
50 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
51 as_echo='printf %s\n'
52 as_echo_n='printf %s'
53 else
54 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
55 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
56 as_echo_n='/usr/ucb/echo -n'
57 else
58 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
59 as_echo_n_body='eval
60 arg=$1;
61 case $arg in
62 *"$as_nl"*)
63 expr "X$arg" : "X\\(.*\\)$as_nl";
64 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65 esac;
66 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68 export as_echo_n_body
69 as_echo_n='sh -c $as_echo_n_body as_echo'
71 export as_echo_body
72 as_echo='sh -c $as_echo_body as_echo'
75 # The user is always right.
76 if test "${PATH_SEPARATOR+set}" != set; then
77 PATH_SEPARATOR=:
78 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
79 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
80 PATH_SEPARATOR=';'
84 # Support unset when possible.
85 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
86 as_unset=unset
87 else
88 as_unset=false
92 # IFS
93 # We need space, tab and new line, in precisely that order. Quoting is
94 # there to prevent editors from complaining about space-tab.
95 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
96 # splitting by setting IFS to empty value.)
97 IFS=" "" $as_nl"
99 # Find who we are. Look in the path if we contain no directory separator.
100 case $0 in
101 *[\\/]* ) as_myself=$0 ;;
102 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
103 for as_dir in $PATH
105 IFS=$as_save_IFS
106 test -z "$as_dir" && as_dir=.
107 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
108 done
109 IFS=$as_save_IFS
112 esac
113 # We did not find ourselves, most probably we were run as `sh COMMAND'
114 # in which case we are not to be found in the path.
115 if test "x$as_myself" = x; then
116 as_myself=$0
118 if test ! -f "$as_myself"; then
119 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
120 { (exit 1); exit 1; }
123 # Work around bugs in pre-3.0 UWIN ksh.
124 for as_var in ENV MAIL MAILPATH
125 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
126 done
127 PS1='$ '
128 PS2='> '
129 PS4='+ '
131 # NLS nuisances.
132 LC_ALL=C
133 export LC_ALL
134 LANGUAGE=C
135 export LANGUAGE
137 # Required to use basename.
138 if expr a : '\(a\)' >/dev/null 2>&1 &&
139 test "X`expr 00001 : '.*\(...\)'`" = X001; then
140 as_expr=expr
141 else
142 as_expr=false
145 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
146 as_basename=basename
147 else
148 as_basename=false
152 # Name of the executable.
153 as_me=`$as_basename -- "$0" ||
154 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
155 X"$0" : 'X\(//\)$' \| \
156 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
157 $as_echo X/"$0" |
158 sed '/^.*\/\([^/][^/]*\)\/*$/{
159 s//\1/
162 /^X\/\(\/\/\)$/{
163 s//\1/
166 /^X\/\(\/\).*/{
167 s//\1/
170 s/.*/./; q'`
172 # CDPATH.
173 $as_unset CDPATH
176 if test "x$CONFIG_SHELL" = x; then
177 if (eval ":") 2>/dev/null; then
178 as_have_required=yes
179 else
180 as_have_required=no
183 if test $as_have_required = yes && (eval ":
184 (as_func_return () {
185 (exit \$1)
187 as_func_success () {
188 as_func_return 0
190 as_func_failure () {
191 as_func_return 1
193 as_func_ret_success () {
194 return 0
196 as_func_ret_failure () {
197 return 1
200 exitcode=0
201 if as_func_success; then
203 else
204 exitcode=1
205 echo as_func_success failed.
208 if as_func_failure; then
209 exitcode=1
210 echo as_func_failure succeeded.
213 if as_func_ret_success; then
215 else
216 exitcode=1
217 echo as_func_ret_success failed.
220 if as_func_ret_failure; then
221 exitcode=1
222 echo as_func_ret_failure succeeded.
225 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
227 else
228 exitcode=1
229 echo positional parameters were not saved.
232 test \$exitcode = 0) || { (exit 1); exit 1; }
235 as_lineno_1=\$LINENO
236 as_lineno_2=\$LINENO
237 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
238 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
239 ") 2> /dev/null; then
241 else
242 as_candidate_shells=
243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
244 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
246 IFS=$as_save_IFS
247 test -z "$as_dir" && as_dir=.
248 case $as_dir in
250 for as_base in sh bash ksh sh5; do
251 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
252 done;;
253 esac
254 done
255 IFS=$as_save_IFS
258 for as_shell in $as_candidate_shells $SHELL; do
259 # Try only shells that exist, to save several forks.
260 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
261 { ("$as_shell") 2> /dev/null <<\_ASEOF
262 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
263 emulate sh
264 NULLCMD=:
265 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
266 # is contrary to our usage. Disable this feature.
267 alias -g '${1+"$@"}'='"$@"'
268 setopt NO_GLOB_SUBST
269 else
270 case `(set -o) 2>/dev/null` in
271 *posix*) set -o posix ;;
272 esac
278 _ASEOF
279 }; then
280 CONFIG_SHELL=$as_shell
281 as_have_required=yes
282 if { "$as_shell" 2> /dev/null <<\_ASEOF
283 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
284 emulate sh
285 NULLCMD=:
286 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
287 # is contrary to our usage. Disable this feature.
288 alias -g '${1+"$@"}'='"$@"'
289 setopt NO_GLOB_SUBST
290 else
291 case `(set -o) 2>/dev/null` in
292 *posix*) set -o posix ;;
293 esac
299 (as_func_return () {
300 (exit $1)
302 as_func_success () {
303 as_func_return 0
305 as_func_failure () {
306 as_func_return 1
308 as_func_ret_success () {
309 return 0
311 as_func_ret_failure () {
312 return 1
315 exitcode=0
316 if as_func_success; then
318 else
319 exitcode=1
320 echo as_func_success failed.
323 if as_func_failure; then
324 exitcode=1
325 echo as_func_failure succeeded.
328 if as_func_ret_success; then
330 else
331 exitcode=1
332 echo as_func_ret_success failed.
335 if as_func_ret_failure; then
336 exitcode=1
337 echo as_func_ret_failure succeeded.
340 if ( set x; as_func_ret_success y && test x = "$1" ); then
342 else
343 exitcode=1
344 echo positional parameters were not saved.
347 test $exitcode = 0) || { (exit 1); exit 1; }
350 as_lineno_1=$LINENO
351 as_lineno_2=$LINENO
352 test "x$as_lineno_1" != "x$as_lineno_2" &&
353 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
355 _ASEOF
356 }; then
357 break
362 done
364 if test "x$CONFIG_SHELL" != x; then
365 for as_var in BASH_ENV ENV
366 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
367 done
368 export CONFIG_SHELL
369 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
373 if test $as_have_required = no; then
374 echo This script requires a shell more modern than all the
375 echo shells that I found on your system. Please install a
376 echo modern shell, or manually run the script under such a
377 echo shell if you do have one.
378 { (exit 1); exit 1; }
388 (eval "as_func_return () {
389 (exit \$1)
391 as_func_success () {
392 as_func_return 0
394 as_func_failure () {
395 as_func_return 1
397 as_func_ret_success () {
398 return 0
400 as_func_ret_failure () {
401 return 1
404 exitcode=0
405 if as_func_success; then
407 else
408 exitcode=1
409 echo as_func_success failed.
412 if as_func_failure; then
413 exitcode=1
414 echo as_func_failure succeeded.
417 if as_func_ret_success; then
419 else
420 exitcode=1
421 echo as_func_ret_success failed.
424 if as_func_ret_failure; then
425 exitcode=1
426 echo as_func_ret_failure succeeded.
429 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
431 else
432 exitcode=1
433 echo positional parameters were not saved.
436 test \$exitcode = 0") || {
437 echo No shell found that supports shell functions.
438 echo Please tell bug-autoconf@gnu.org about your system,
439 echo including any error possibly output before this message.
440 echo This can help us improve future autoconf versions.
441 echo Configuration will now proceed without shell functions.
446 as_lineno_1=$LINENO
447 as_lineno_2=$LINENO
448 test "x$as_lineno_1" != "x$as_lineno_2" &&
449 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
451 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
452 # uniformly replaced by the line number. The first 'sed' inserts a
453 # line-number line after each line using $LINENO; the second 'sed'
454 # does the real work. The second script uses 'N' to pair each
455 # line-number line with the line containing $LINENO, and appends
456 # trailing '-' during substitution so that $LINENO is not a special
457 # case at line end.
458 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
459 # scripts with optimization help from Paolo Bonzini. Blame Lee
460 # E. McMahon (1931-1989) for sed's syntax. :-)
461 sed -n '
463 /[$]LINENO/=
464 ' <$as_myself |
465 sed '
466 s/[$]LINENO.*/&-/
467 t lineno
469 :lineno
471 :loop
472 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
473 t loop
474 s/-\n.*//
475 ' >$as_me.lineno &&
476 chmod +x "$as_me.lineno" ||
477 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
478 { (exit 1); exit 1; }; }
480 # Don't try to exec as it changes $[0], causing all sort of problems
481 # (the dirname of $[0] is not the place where we might find the
482 # original and so on. Autoconf is especially sensitive to this).
483 . "./$as_me.lineno"
484 # Exit status is that of the last command.
485 exit
489 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
490 as_dirname=dirname
491 else
492 as_dirname=false
495 ECHO_C= ECHO_N= ECHO_T=
496 case `echo -n x` in
497 -n*)
498 case `echo 'x\c'` in
499 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
500 *) ECHO_C='\c';;
501 esac;;
503 ECHO_N='-n';;
504 esac
505 if expr a : '\(a\)' >/dev/null 2>&1 &&
506 test "X`expr 00001 : '.*\(...\)'`" = X001; then
507 as_expr=expr
508 else
509 as_expr=false
512 rm -f conf$$ conf$$.exe conf$$.file
513 if test -d conf$$.dir; then
514 rm -f conf$$.dir/conf$$.file
515 else
516 rm -f conf$$.dir
517 mkdir conf$$.dir 2>/dev/null
519 if (echo >conf$$.file) 2>/dev/null; then
520 if ln -s conf$$.file conf$$ 2>/dev/null; then
521 as_ln_s='ln -s'
522 # ... but there are two gotchas:
523 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
524 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
525 # In both cases, we have to default to `cp -p'.
526 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
527 as_ln_s='cp -p'
528 elif ln conf$$.file conf$$ 2>/dev/null; then
529 as_ln_s=ln
530 else
531 as_ln_s='cp -p'
533 else
534 as_ln_s='cp -p'
536 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
537 rmdir conf$$.dir 2>/dev/null
539 if mkdir -p . 2>/dev/null; then
540 as_mkdir_p=:
541 else
542 test -d ./-p && rmdir ./-p
543 as_mkdir_p=false
546 if test -x / >/dev/null 2>&1; then
547 as_test_x='test -x'
548 else
549 if ls -dL / >/dev/null 2>&1; then
550 as_ls_L_option=L
551 else
552 as_ls_L_option=
554 as_test_x='
555 eval sh -c '\''
556 if test -d "$1"; then
557 test -d "$1/.";
558 else
559 case $1 in
560 -*)set "./$1";;
561 esac;
562 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
563 ???[sx]*):;;*)false;;esac;fi
564 '\'' sh
567 as_executable_p=$as_test_x
569 # Sed expression to map a string onto a valid CPP name.
570 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
572 # Sed expression to map a string onto a valid variable name.
573 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
577 exec 7<&0 </dev/null 6>&1
579 # Name of the host.
580 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
581 # so uname gets run too.
582 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
585 # Initializations.
587 ac_default_prefix=/usr/local
588 ac_clean_files=
589 ac_config_libobj_dir=.
590 LIBOBJS=
591 cross_compiling=no
592 subdirs=
593 MFLAGS=
594 MAKEFLAGS=
595 SHELL=${CONFIG_SHELL-/bin/sh}
597 # Identity of this package.
598 PACKAGE_NAME='GNU C Library'
599 PACKAGE_TARNAME='c-library'
600 PACKAGE_VERSION='(see version.h)'
601 PACKAGE_STRING='GNU C Library (see version.h)'
602 PACKAGE_BUGREPORT='glibc'
604 ac_unique_file="include/features.h"
605 enable_option_checking=no
606 # Factoring default headers for most tests.
607 ac_includes_default="\
608 #include <stdio.h>
609 #ifdef HAVE_SYS_TYPES_H
610 # include <sys/types.h>
611 #endif
612 #ifdef HAVE_SYS_STAT_H
613 # include <sys/stat.h>
614 #endif
615 #ifdef STDC_HEADERS
616 # include <stdlib.h>
617 # include <stddef.h>
618 #else
619 # ifdef HAVE_STDLIB_H
620 # include <stdlib.h>
621 # endif
622 #endif
623 #ifdef HAVE_STRING_H
624 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
625 # include <memory.h>
626 # endif
627 # include <string.h>
628 #endif
629 #ifdef HAVE_STRINGS_H
630 # include <strings.h>
631 #endif
632 #ifdef HAVE_INTTYPES_H
633 # include <inttypes.h>
634 #endif
635 #ifdef HAVE_STDINT_H
636 # include <stdint.h>
637 #endif
638 #ifdef HAVE_UNISTD_H
639 # include <unistd.h>
640 #endif"
642 ac_subst_vars='LTLIBOBJS
643 LIBOBJS
644 RELEASE
645 VERSION
646 mach_interface_list
647 DEFINES
648 nopic_initfini
649 static_nss
650 bounded
651 omitfp
652 profile
653 libc_cv_pic_default
654 shared
655 static
656 xcoff
658 ldd_rewrite_script
659 use_ldconfig
660 libc_cv_cc_avx
661 libc_cv_cc_sse4
662 libc_cv_cpp_asm_debuginfo
663 libc_cv_forced_unwind
664 libc_cv_rootsbindir
665 libc_cv_sysconfdir
666 libc_cv_localedir
667 libc_cv_slibdir
668 old_glibc_headers
669 uname_version
670 uname_release
671 uname_sysname
672 libc_cv_gcc_unwind_find_fde
673 sizeof_long_double
674 EGREP
675 GREP
676 have_selinux
677 have_libcap
678 have_libaudit
679 LIBGD
680 libc_cv_cc_submachine
681 exceptions
682 no_whole_archive
683 libc_cv_have_initfini
684 libc_cv_gnu89_inline
685 libc_cv_ssp
686 fno_unit_at_a_time
687 libc_cv_hashstyle
688 libc_cv_fpie
689 libc_cv_z_execstack
690 libc_cv_z_combreloc
691 ASFLAGS_config
692 libc_cv_as_needed
693 libc_cv_libgcc_s_suffix
694 libc_cv_Bgroup
695 libc_cv_cc_with_libunwind
696 VERSIONING
697 BISON
698 INSTALL_INFO
699 PERL
701 libc_cv_have_ksh
703 libc_cv_have_bash2
704 BASH_SHELL
705 libc_cv_gcc_static_libgcc
706 CXX_SYSINCLUDES
707 SYSINCLUDES
708 AUTOCONF
710 MAKEINFO
711 MSGFMT
712 MAKE
713 PWD_P
717 RANLIB
718 OBJDUMP
720 LN_S
721 INSTALL_DATA
722 INSTALL_SCRIPT
723 INSTALL_PROGRAM
724 sysdeps_add_ons
725 sysnames
726 submachine
727 base_machine
728 add_on_subdirs
729 add_ons
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 subdirs
761 target_alias
762 host_alias
763 build_alias
764 LIBS
765 ECHO_T
766 ECHO_N
767 ECHO_C
768 DEFS
769 mandir
770 localedir
771 libdir
772 psdir
773 pdfdir
774 dvidir
775 htmldir
776 infodir
777 docdir
778 oldincludedir
779 includedir
780 localstatedir
781 sharedstatedir
782 sysconfdir
783 datadir
784 datarootdir
785 libexecdir
786 sbindir
787 bindir
788 program_transform_name
789 prefix
790 exec_prefix
791 PACKAGE_BUGREPORT
792 PACKAGE_STRING
793 PACKAGE_VERSION
794 PACKAGE_TARNAME
795 PACKAGE_NAME
796 PATH_SEPARATOR
797 SHELL'
798 ac_subst_files=''
799 ac_user_opts='
800 enable_option_checking
801 with_gd
802 with_gd_include
803 with_gd_lib
804 with_fp
805 with_binutils
806 with_elf
807 with_selinux
808 with_xcoff
809 with_cvs
810 with_headers
811 enable_sanity_checks
812 enable_check_abi
813 enable_shared
814 enable_profile
815 enable_omitfp
816 enable_bounded
817 enable_versioning
818 enable_oldest_abi
819 enable_stackguard_randomization
820 enable_add_ons
821 with_tls
822 with___thread
823 enable_hidden_plt
824 enable_bind_now
825 enable_static_nss
826 enable_force_install
827 enable_kernel
828 enable_all_warnings
829 enable_multi_arch
830 enable_experimental_malloc
831 enable_nss_crypt
832 with_cpu
834 ac_precious_vars='build_alias
835 host_alias
836 target_alias
838 CFLAGS
839 LDFLAGS
840 LIBS
841 CPPFLAGS
844 CXXFLAGS
845 CCC'
846 ac_subdirs_all='
849 # Initialize some variables set by options.
850 ac_init_help=
851 ac_init_version=false
852 ac_unrecognized_opts=
853 ac_unrecognized_sep=
854 # The variables have the same names as the options, with
855 # dashes changed to underlines.
856 cache_file=/dev/null
857 exec_prefix=NONE
858 no_create=
859 no_recursion=
860 prefix=NONE
861 program_prefix=NONE
862 program_suffix=NONE
863 program_transform_name=s,x,x,
864 silent=
865 site=
866 srcdir=
867 verbose=
868 x_includes=NONE
869 x_libraries=NONE
871 # Installation directory options.
872 # These are left unexpanded so users can "make install exec_prefix=/foo"
873 # and all the variables that are supposed to be based on exec_prefix
874 # by default will actually change.
875 # Use braces instead of parens because sh, perl, etc. also accept them.
876 # (The list follows the same order as the GNU Coding Standards.)
877 bindir='${exec_prefix}/bin'
878 sbindir='${exec_prefix}/sbin'
879 libexecdir='${exec_prefix}/libexec'
880 datarootdir='${prefix}/share'
881 datadir='${datarootdir}'
882 sysconfdir='${prefix}/etc'
883 sharedstatedir='${prefix}/com'
884 localstatedir='${prefix}/var'
885 includedir='${prefix}/include'
886 oldincludedir='/usr/include'
887 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
888 infodir='${datarootdir}/info'
889 htmldir='${docdir}'
890 dvidir='${docdir}'
891 pdfdir='${docdir}'
892 psdir='${docdir}'
893 libdir='${exec_prefix}/lib'
894 localedir='${datarootdir}/locale'
895 mandir='${datarootdir}/man'
897 ac_prev=
898 ac_dashdash=
899 for ac_option
901 # If the previous option needs an argument, assign it.
902 if test -n "$ac_prev"; then
903 eval $ac_prev=\$ac_option
904 ac_prev=
905 continue
908 case $ac_option in
909 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
910 *) ac_optarg=yes ;;
911 esac
913 # Accept the important Cygnus configure options, so we can diagnose typos.
915 case $ac_dashdash$ac_option in
917 ac_dashdash=yes ;;
919 -bindir | --bindir | --bindi | --bind | --bin | --bi)
920 ac_prev=bindir ;;
921 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
922 bindir=$ac_optarg ;;
924 -build | --build | --buil | --bui | --bu)
925 ac_prev=build_alias ;;
926 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
927 build_alias=$ac_optarg ;;
929 -cache-file | --cache-file | --cache-fil | --cache-fi \
930 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
931 ac_prev=cache_file ;;
932 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
933 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
934 cache_file=$ac_optarg ;;
936 --config-cache | -C)
937 cache_file=config.cache ;;
939 -datadir | --datadir | --datadi | --datad)
940 ac_prev=datadir ;;
941 -datadir=* | --datadir=* | --datadi=* | --datad=*)
942 datadir=$ac_optarg ;;
944 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
945 | --dataroo | --dataro | --datar)
946 ac_prev=datarootdir ;;
947 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
948 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
949 datarootdir=$ac_optarg ;;
951 -disable-* | --disable-*)
952 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
953 # Reject names that are not valid shell variable names.
954 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
955 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
956 { (exit 1); exit 1; }; }
957 ac_useropt_orig=$ac_useropt
958 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
959 case $ac_user_opts in
961 "enable_$ac_useropt"
962 "*) ;;
963 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
964 ac_unrecognized_sep=', ';;
965 esac
966 eval enable_$ac_useropt=no ;;
968 -docdir | --docdir | --docdi | --doc | --do)
969 ac_prev=docdir ;;
970 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
971 docdir=$ac_optarg ;;
973 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
974 ac_prev=dvidir ;;
975 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
976 dvidir=$ac_optarg ;;
978 -enable-* | --enable-*)
979 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
980 # Reject names that are not valid shell variable names.
981 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
982 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
983 { (exit 1); exit 1; }; }
984 ac_useropt_orig=$ac_useropt
985 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
986 case $ac_user_opts in
988 "enable_$ac_useropt"
989 "*) ;;
990 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
991 ac_unrecognized_sep=', ';;
992 esac
993 eval enable_$ac_useropt=\$ac_optarg ;;
995 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
996 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
997 | --exec | --exe | --ex)
998 ac_prev=exec_prefix ;;
999 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1000 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1001 | --exec=* | --exe=* | --ex=*)
1002 exec_prefix=$ac_optarg ;;
1004 -gas | --gas | --ga | --g)
1005 # Obsolete; use --with-gas.
1006 with_gas=yes ;;
1008 -help | --help | --hel | --he | -h)
1009 ac_init_help=long ;;
1010 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1011 ac_init_help=recursive ;;
1012 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1013 ac_init_help=short ;;
1015 -host | --host | --hos | --ho)
1016 ac_prev=host_alias ;;
1017 -host=* | --host=* | --hos=* | --ho=*)
1018 host_alias=$ac_optarg ;;
1020 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1021 ac_prev=htmldir ;;
1022 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1023 | --ht=*)
1024 htmldir=$ac_optarg ;;
1026 -includedir | --includedir | --includedi | --included | --include \
1027 | --includ | --inclu | --incl | --inc)
1028 ac_prev=includedir ;;
1029 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1030 | --includ=* | --inclu=* | --incl=* | --inc=*)
1031 includedir=$ac_optarg ;;
1033 -infodir | --infodir | --infodi | --infod | --info | --inf)
1034 ac_prev=infodir ;;
1035 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1036 infodir=$ac_optarg ;;
1038 -libdir | --libdir | --libdi | --libd)
1039 ac_prev=libdir ;;
1040 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1041 libdir=$ac_optarg ;;
1043 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1044 | --libexe | --libex | --libe)
1045 ac_prev=libexecdir ;;
1046 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1047 | --libexe=* | --libex=* | --libe=*)
1048 libexecdir=$ac_optarg ;;
1050 -localedir | --localedir | --localedi | --localed | --locale)
1051 ac_prev=localedir ;;
1052 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1053 localedir=$ac_optarg ;;
1055 -localstatedir | --localstatedir | --localstatedi | --localstated \
1056 | --localstate | --localstat | --localsta | --localst | --locals)
1057 ac_prev=localstatedir ;;
1058 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1059 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1060 localstatedir=$ac_optarg ;;
1062 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1063 ac_prev=mandir ;;
1064 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1065 mandir=$ac_optarg ;;
1067 -nfp | --nfp | --nf)
1068 # Obsolete; use --without-fp.
1069 with_fp=no ;;
1071 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1072 | --no-cr | --no-c | -n)
1073 no_create=yes ;;
1075 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1076 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1077 no_recursion=yes ;;
1079 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1080 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1081 | --oldin | --oldi | --old | --ol | --o)
1082 ac_prev=oldincludedir ;;
1083 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1084 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1085 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1086 oldincludedir=$ac_optarg ;;
1088 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1089 ac_prev=prefix ;;
1090 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1091 prefix=$ac_optarg ;;
1093 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1094 | --program-pre | --program-pr | --program-p)
1095 ac_prev=program_prefix ;;
1096 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1097 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1098 program_prefix=$ac_optarg ;;
1100 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1101 | --program-suf | --program-su | --program-s)
1102 ac_prev=program_suffix ;;
1103 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1104 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1105 program_suffix=$ac_optarg ;;
1107 -program-transform-name | --program-transform-name \
1108 | --program-transform-nam | --program-transform-na \
1109 | --program-transform-n | --program-transform- \
1110 | --program-transform | --program-transfor \
1111 | --program-transfo | --program-transf \
1112 | --program-trans | --program-tran \
1113 | --progr-tra | --program-tr | --program-t)
1114 ac_prev=program_transform_name ;;
1115 -program-transform-name=* | --program-transform-name=* \
1116 | --program-transform-nam=* | --program-transform-na=* \
1117 | --program-transform-n=* | --program-transform-=* \
1118 | --program-transform=* | --program-transfor=* \
1119 | --program-transfo=* | --program-transf=* \
1120 | --program-trans=* | --program-tran=* \
1121 | --progr-tra=* | --program-tr=* | --program-t=*)
1122 program_transform_name=$ac_optarg ;;
1124 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1125 ac_prev=pdfdir ;;
1126 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1127 pdfdir=$ac_optarg ;;
1129 -psdir | --psdir | --psdi | --psd | --ps)
1130 ac_prev=psdir ;;
1131 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1132 psdir=$ac_optarg ;;
1134 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1135 | -silent | --silent | --silen | --sile | --sil)
1136 silent=yes ;;
1138 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1139 ac_prev=sbindir ;;
1140 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1141 | --sbi=* | --sb=*)
1142 sbindir=$ac_optarg ;;
1144 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1145 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1146 | --sharedst | --shareds | --shared | --share | --shar \
1147 | --sha | --sh)
1148 ac_prev=sharedstatedir ;;
1149 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1150 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1151 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1152 | --sha=* | --sh=*)
1153 sharedstatedir=$ac_optarg ;;
1155 -site | --site | --sit)
1156 ac_prev=site ;;
1157 -site=* | --site=* | --sit=*)
1158 site=$ac_optarg ;;
1160 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1161 ac_prev=srcdir ;;
1162 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1163 srcdir=$ac_optarg ;;
1165 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1166 | --syscon | --sysco | --sysc | --sys | --sy)
1167 ac_prev=sysconfdir ;;
1168 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1169 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1170 sysconfdir=$ac_optarg ;;
1172 -target | --target | --targe | --targ | --tar | --ta | --t)
1173 ac_prev=target_alias ;;
1174 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1175 target_alias=$ac_optarg ;;
1177 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1178 verbose=yes ;;
1180 -version | --version | --versio | --versi | --vers | -V)
1181 ac_init_version=: ;;
1183 -with-* | --with-*)
1184 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1185 # Reject names that are not valid shell variable names.
1186 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1187 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1188 { (exit 1); exit 1; }; }
1189 ac_useropt_orig=$ac_useropt
1190 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1191 case $ac_user_opts in
1193 "with_$ac_useropt"
1194 "*) ;;
1195 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1196 ac_unrecognized_sep=', ';;
1197 esac
1198 eval with_$ac_useropt=\$ac_optarg ;;
1200 -without-* | --without-*)
1201 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1202 # Reject names that are not valid shell variable names.
1203 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1204 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1205 { (exit 1); exit 1; }; }
1206 ac_useropt_orig=$ac_useropt
1207 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1208 case $ac_user_opts in
1210 "with_$ac_useropt"
1211 "*) ;;
1212 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1213 ac_unrecognized_sep=', ';;
1214 esac
1215 eval with_$ac_useropt=no ;;
1217 --x)
1218 # Obsolete; use --with-x.
1219 with_x=yes ;;
1221 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1222 | --x-incl | --x-inc | --x-in | --x-i)
1223 ac_prev=x_includes ;;
1224 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1225 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1226 x_includes=$ac_optarg ;;
1228 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1229 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1230 ac_prev=x_libraries ;;
1231 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1232 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1233 x_libraries=$ac_optarg ;;
1235 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1236 Try \`$0 --help' for more information." >&2
1237 { (exit 1); exit 1; }; }
1240 *=*)
1241 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1242 # Reject names that are not valid shell variable names.
1243 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1244 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1245 { (exit 1); exit 1; }; }
1246 eval $ac_envvar=\$ac_optarg
1247 export $ac_envvar ;;
1250 # FIXME: should be removed in autoconf 3.0.
1251 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1252 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1253 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1254 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1257 esac
1258 done
1260 if test -n "$ac_prev"; then
1261 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1262 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1263 { (exit 1); exit 1; }; }
1266 if test -n "$ac_unrecognized_opts"; then
1267 case $enable_option_checking in
1268 no) ;;
1269 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1270 { (exit 1); exit 1; }; } ;;
1271 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1272 esac
1275 # Check all directory arguments for consistency.
1276 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1277 datadir sysconfdir sharedstatedir localstatedir includedir \
1278 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1279 libdir localedir mandir
1281 eval ac_val=\$$ac_var
1282 # Remove trailing slashes.
1283 case $ac_val in
1284 */ )
1285 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1286 eval $ac_var=\$ac_val;;
1287 esac
1288 # Be sure to have absolute directory names.
1289 case $ac_val in
1290 [\\/$]* | ?:[\\/]* ) continue;;
1291 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1292 esac
1293 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1294 { (exit 1); exit 1; }; }
1295 done
1297 # There might be people who depend on the old broken behavior: `$host'
1298 # used to hold the argument of --host etc.
1299 # FIXME: To remove some day.
1300 build=$build_alias
1301 host=$host_alias
1302 target=$target_alias
1304 # FIXME: To remove some day.
1305 if test "x$host_alias" != x; then
1306 if test "x$build_alias" = x; then
1307 cross_compiling=maybe
1308 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1309 If a cross compiler is detected then cross compile mode will be used." >&2
1310 elif test "x$build_alias" != "x$host_alias"; then
1311 cross_compiling=yes
1315 ac_tool_prefix=
1316 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1318 test "$silent" = yes && exec 6>/dev/null
1321 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1322 ac_ls_di=`ls -di .` &&
1323 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1324 { $as_echo "$as_me: error: working directory cannot be determined" >&2
1325 { (exit 1); exit 1; }; }
1326 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1327 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1328 { (exit 1); exit 1; }; }
1331 # Find the source files, if location was not specified.
1332 if test -z "$srcdir"; then
1333 ac_srcdir_defaulted=yes
1334 # Try the directory containing this script, then the parent directory.
1335 ac_confdir=`$as_dirname -- "$as_myself" ||
1336 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1337 X"$as_myself" : 'X\(//\)[^/]' \| \
1338 X"$as_myself" : 'X\(//\)$' \| \
1339 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1340 $as_echo X"$as_myself" |
1341 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1342 s//\1/
1345 /^X\(\/\/\)[^/].*/{
1346 s//\1/
1349 /^X\(\/\/\)$/{
1350 s//\1/
1353 /^X\(\/\).*/{
1354 s//\1/
1357 s/.*/./; q'`
1358 srcdir=$ac_confdir
1359 if test ! -r "$srcdir/$ac_unique_file"; then
1360 srcdir=..
1362 else
1363 ac_srcdir_defaulted=no
1365 if test ! -r "$srcdir/$ac_unique_file"; then
1366 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1367 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1368 { (exit 1); exit 1; }; }
1370 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1371 ac_abs_confdir=`(
1372 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1373 { (exit 1); exit 1; }; }
1374 pwd)`
1375 # When building in place, set srcdir=.
1376 if test "$ac_abs_confdir" = "$ac_pwd"; then
1377 srcdir=.
1379 # Remove unnecessary trailing slashes from srcdir.
1380 # Double slashes in file names in object file debugging info
1381 # mess up M-x gdb in Emacs.
1382 case $srcdir in
1383 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1384 esac
1385 for ac_var in $ac_precious_vars; do
1386 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1387 eval ac_env_${ac_var}_value=\$${ac_var}
1388 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1389 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1390 done
1393 # Report the --help message.
1395 if test "$ac_init_help" = "long"; then
1396 # Omit some internal or obsolete options to make the list less imposing.
1397 # This message is too long to be a string in the A/UX 3.1 sh.
1398 cat <<_ACEOF
1399 \`configure' configures GNU C Library (see version.h) to adapt to many kinds of systems.
1401 Usage: $0 [OPTION]... [VAR=VALUE]...
1403 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1404 VAR=VALUE. See below for descriptions of some of the useful variables.
1406 Defaults for the options are specified in brackets.
1408 Configuration:
1409 -h, --help display this help and exit
1410 --help=short display options specific to this package
1411 --help=recursive display the short help of all the included packages
1412 -V, --version display version information and exit
1413 -q, --quiet, --silent do not print \`checking...' messages
1414 --cache-file=FILE cache test results in FILE [disabled]
1415 -C, --config-cache alias for \`--cache-file=config.cache'
1416 -n, --no-create do not create output files
1417 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1419 Installation directories:
1420 --prefix=PREFIX install architecture-independent files in PREFIX
1421 [$ac_default_prefix]
1422 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1423 [PREFIX]
1425 By default, \`make install' will install all the files in
1426 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1427 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1428 for instance \`--prefix=\$HOME'.
1430 For better control, use the options below.
1432 Fine tuning of the installation directories:
1433 --bindir=DIR user executables [EPREFIX/bin]
1434 --sbindir=DIR system admin executables [EPREFIX/sbin]
1435 --libexecdir=DIR program executables [EPREFIX/libexec]
1436 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1437 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1438 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1439 --libdir=DIR object code libraries [EPREFIX/lib]
1440 --includedir=DIR C header files [PREFIX/include]
1441 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1442 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1443 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1444 --infodir=DIR info documentation [DATAROOTDIR/info]
1445 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1446 --mandir=DIR man documentation [DATAROOTDIR/man]
1447 --docdir=DIR documentation root [DATAROOTDIR/doc/c-library]
1448 --htmldir=DIR html documentation [DOCDIR]
1449 --dvidir=DIR dvi documentation [DOCDIR]
1450 --pdfdir=DIR pdf documentation [DOCDIR]
1451 --psdir=DIR ps documentation [DOCDIR]
1452 _ACEOF
1454 cat <<\_ACEOF
1456 System types:
1457 --build=BUILD configure for building on BUILD [guessed]
1458 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1459 _ACEOF
1462 if test -n "$ac_init_help"; then
1463 case $ac_init_help in
1464 short | recursive ) echo "Configuration of GNU C Library (see version.h):";;
1465 esac
1466 cat <<\_ACEOF
1468 Optional Features:
1469 --disable-option-checking ignore unrecognized --enable/--with options
1470 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1471 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1472 --disable-sanity-checks really do not use threads (should not be used except
1473 in special situations) [default=yes]
1474 --enable-check-abi do "make check-abi" in "make check" (no/warn/yes)
1475 [default=no]
1476 --enable-shared build shared library [default=yes if GNU ld & ELF]
1477 --enable-profile build profiled library [default=no]
1478 --enable-omitfp build undebuggable optimized library [default=no]
1479 --enable-bounded build with runtime bounds checking [default=no]
1480 --disable-versioning do not include versioning information in the library
1481 objects [default=yes if supported]
1482 --enable-oldest-abi=ABI configure the oldest ABI supported [e.g. 2.2]
1483 [default=glibc default]
1484 --enable-stackguard-randomization
1485 initialize __stack_chk_guard canary with a random
1486 number at program start
1487 --enable-add-ons[=DIRS...]
1488 configure and build add-ons in DIR1,DIR2,... search
1489 for add-ons if no parameter given
1490 --disable-hidden-plt do not hide internal function calls to avoid PLT
1491 --enable-bind-now disable lazy relocations in DSOs
1492 --enable-static-nss build static NSS modules [default=no]
1493 --disable-force-install don't force installation of files from this package,
1494 even if they are older than the installed files
1495 --enable-kernel=VERSION compile for compatibility with kernel not older than
1496 VERSION
1497 --enable-all-warnings enable all useful warnings gcc can issue
1498 --enable-multi-arch enable single DSO with optimizations for multiple
1499 architectures
1500 --enable-experimental-malloc
1501 enable experimental malloc features
1502 --enable-nss-crypt enable libcrypt to use nss
1504 Optional Packages:
1505 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1506 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1507 --with-gd=DIR find libgd include dir and library with prefix DIR
1508 --with-gd-include=DIR find libgd include files in DIR
1509 --with-gd-lib=DIR find libgd library files in DIR
1510 --with-fp if using floating-point hardware [default=yes]
1511 --with-binutils=PATH specify location of binutils (as and ld)
1512 --with-elf if using the ELF object format
1513 --with-selinux if building with SELinux support
1514 --with-xcoff if using the XCOFF object format
1515 --without-cvs if CVS should not be used
1516 --with-headers=PATH location of system headers to use (for example
1517 /usr/src/linux/include) [default=compiler default]
1518 --with-tls enable support for TLS
1519 --without-__thread do not use TLS features even when supporting them
1520 --with-cpu=CPU select code for CPU variant
1522 Some influential environment variables:
1523 CC C compiler command
1524 CFLAGS C compiler flags
1525 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1526 nonstandard directory <lib dir>
1527 LIBS libraries to pass to the linker, e.g. -l<library>
1528 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1529 you have headers in a nonstandard directory <include dir>
1530 CPP C preprocessor
1531 CXX C++ compiler command
1532 CXXFLAGS C++ compiler flags
1534 Use these variables to override the choices made by `configure' or to help
1535 it to find libraries and programs with nonstandard names/locations.
1537 Report bugs to <glibc>.
1538 _ACEOF
1539 ac_status=$?
1542 if test "$ac_init_help" = "recursive"; then
1543 # If there are subdirs, report their specific --help.
1544 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1545 test -d "$ac_dir" ||
1546 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1547 continue
1548 ac_builddir=.
1550 case "$ac_dir" in
1551 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1553 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1554 # A ".." for each directory in $ac_dir_suffix.
1555 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1556 case $ac_top_builddir_sub in
1557 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1558 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1559 esac ;;
1560 esac
1561 ac_abs_top_builddir=$ac_pwd
1562 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1563 # for backward compatibility:
1564 ac_top_builddir=$ac_top_build_prefix
1566 case $srcdir in
1567 .) # We are building in place.
1568 ac_srcdir=.
1569 ac_top_srcdir=$ac_top_builddir_sub
1570 ac_abs_top_srcdir=$ac_pwd ;;
1571 [\\/]* | ?:[\\/]* ) # Absolute name.
1572 ac_srcdir=$srcdir$ac_dir_suffix;
1573 ac_top_srcdir=$srcdir
1574 ac_abs_top_srcdir=$srcdir ;;
1575 *) # Relative name.
1576 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1577 ac_top_srcdir=$ac_top_build_prefix$srcdir
1578 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1579 esac
1580 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1582 cd "$ac_dir" || { ac_status=$?; continue; }
1583 # Check for guested configure.
1584 if test -f "$ac_srcdir/configure.gnu"; then
1585 echo &&
1586 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1587 elif test -f "$ac_srcdir/configure"; then
1588 echo &&
1589 $SHELL "$ac_srcdir/configure" --help=recursive
1590 else
1591 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1592 fi || ac_status=$?
1593 cd "$ac_pwd" || { ac_status=$?; break; }
1594 done
1597 test -n "$ac_init_help" && exit $ac_status
1598 if $ac_init_version; then
1599 cat <<\_ACEOF
1600 GNU C Library configure (see version.h)
1601 generated by GNU Autoconf 2.63
1603 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1604 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1605 This configure script is free software; the Free Software Foundation
1606 gives unlimited permission to copy, distribute and modify it.
1607 _ACEOF
1608 exit
1610 cat >config.log <<_ACEOF
1611 This file contains any messages produced by compilers while
1612 running configure, to aid debugging if configure makes a mistake.
1614 It was created by GNU C Library $as_me (see version.h), which was
1615 generated by GNU Autoconf 2.63. Invocation command line was
1617 $ $0 $@
1619 _ACEOF
1620 exec 5>>config.log
1622 cat <<_ASUNAME
1623 ## --------- ##
1624 ## Platform. ##
1625 ## --------- ##
1627 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1628 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1629 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1630 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1631 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1633 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1634 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1636 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1637 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1638 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1639 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1640 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1641 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1642 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1644 _ASUNAME
1646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1647 for as_dir in $PATH
1649 IFS=$as_save_IFS
1650 test -z "$as_dir" && as_dir=.
1651 $as_echo "PATH: $as_dir"
1652 done
1653 IFS=$as_save_IFS
1655 } >&5
1657 cat >&5 <<_ACEOF
1660 ## ----------- ##
1661 ## Core tests. ##
1662 ## ----------- ##
1664 _ACEOF
1667 # Keep a trace of the command line.
1668 # Strip out --no-create and --no-recursion so they do not pile up.
1669 # Strip out --silent because we don't want to record it for future runs.
1670 # Also quote any args containing shell meta-characters.
1671 # Make two passes to allow for proper duplicate-argument suppression.
1672 ac_configure_args=
1673 ac_configure_args0=
1674 ac_configure_args1=
1675 ac_must_keep_next=false
1676 for ac_pass in 1 2
1678 for ac_arg
1680 case $ac_arg in
1681 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1682 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1683 | -silent | --silent | --silen | --sile | --sil)
1684 continue ;;
1685 *\'*)
1686 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1687 esac
1688 case $ac_pass in
1689 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1691 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1692 if test $ac_must_keep_next = true; then
1693 ac_must_keep_next=false # Got value, back to normal.
1694 else
1695 case $ac_arg in
1696 *=* | --config-cache | -C | -disable-* | --disable-* \
1697 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1698 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1699 | -with-* | --with-* | -without-* | --without-* | --x)
1700 case "$ac_configure_args0 " in
1701 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1702 esac
1704 -* ) ac_must_keep_next=true ;;
1705 esac
1707 ac_configure_args="$ac_configure_args '$ac_arg'"
1709 esac
1710 done
1711 done
1712 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1713 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1715 # When interrupted or exit'd, cleanup temporary files, and complete
1716 # config.log. We remove comments because anyway the quotes in there
1717 # would cause problems or look ugly.
1718 # WARNING: Use '\'' to represent an apostrophe within the trap.
1719 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1720 trap 'exit_status=$?
1721 # Save into config.log some information that might help in debugging.
1723 echo
1725 cat <<\_ASBOX
1726 ## ---------------- ##
1727 ## Cache variables. ##
1728 ## ---------------- ##
1729 _ASBOX
1730 echo
1731 # The following way of writing the cache mishandles newlines in values,
1733 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1734 eval ac_val=\$$ac_var
1735 case $ac_val in #(
1736 *${as_nl}*)
1737 case $ac_var in #(
1738 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1739 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1740 esac
1741 case $ac_var in #(
1742 _ | IFS | as_nl) ;; #(
1743 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1744 *) $as_unset $ac_var ;;
1745 esac ;;
1746 esac
1747 done
1748 (set) 2>&1 |
1749 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1750 *${as_nl}ac_space=\ *)
1751 sed -n \
1752 "s/'\''/'\''\\\\'\'''\''/g;
1753 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1754 ;; #(
1756 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1758 esac |
1759 sort
1761 echo
1763 cat <<\_ASBOX
1764 ## ----------------- ##
1765 ## Output variables. ##
1766 ## ----------------- ##
1767 _ASBOX
1768 echo
1769 for ac_var in $ac_subst_vars
1771 eval ac_val=\$$ac_var
1772 case $ac_val in
1773 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1774 esac
1775 $as_echo "$ac_var='\''$ac_val'\''"
1776 done | sort
1777 echo
1779 if test -n "$ac_subst_files"; then
1780 cat <<\_ASBOX
1781 ## ------------------- ##
1782 ## File substitutions. ##
1783 ## ------------------- ##
1784 _ASBOX
1785 echo
1786 for ac_var in $ac_subst_files
1788 eval ac_val=\$$ac_var
1789 case $ac_val in
1790 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1791 esac
1792 $as_echo "$ac_var='\''$ac_val'\''"
1793 done | sort
1794 echo
1797 if test -s confdefs.h; then
1798 cat <<\_ASBOX
1799 ## ----------- ##
1800 ## confdefs.h. ##
1801 ## ----------- ##
1802 _ASBOX
1803 echo
1804 cat confdefs.h
1805 echo
1807 test "$ac_signal" != 0 &&
1808 $as_echo "$as_me: caught signal $ac_signal"
1809 $as_echo "$as_me: exit $exit_status"
1810 } >&5
1811 rm -f core *.core core.conftest.* &&
1812 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1813 exit $exit_status
1815 for ac_signal in 1 2 13 15; do
1816 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1817 done
1818 ac_signal=0
1820 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1821 rm -f -r conftest* confdefs.h
1823 # Predefined preprocessor variables.
1825 cat >>confdefs.h <<_ACEOF
1826 #define PACKAGE_NAME "$PACKAGE_NAME"
1827 _ACEOF
1830 cat >>confdefs.h <<_ACEOF
1831 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1832 _ACEOF
1835 cat >>confdefs.h <<_ACEOF
1836 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1837 _ACEOF
1840 cat >>confdefs.h <<_ACEOF
1841 #define PACKAGE_STRING "$PACKAGE_STRING"
1842 _ACEOF
1845 cat >>confdefs.h <<_ACEOF
1846 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1847 _ACEOF
1850 # Let the site file select an alternate cache file if it wants to.
1851 # Prefer an explicitly selected file to automatically selected ones.
1852 ac_site_file1=NONE
1853 ac_site_file2=NONE
1854 if test -n "$CONFIG_SITE"; then
1855 ac_site_file1=$CONFIG_SITE
1856 elif test "x$prefix" != xNONE; then
1857 ac_site_file1=$prefix/share/config.site
1858 ac_site_file2=$prefix/etc/config.site
1859 else
1860 ac_site_file1=$ac_default_prefix/share/config.site
1861 ac_site_file2=$ac_default_prefix/etc/config.site
1863 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1865 test "x$ac_site_file" = xNONE && continue
1866 if test -r "$ac_site_file"; then
1867 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1868 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1869 sed 's/^/| /' "$ac_site_file" >&5
1870 . "$ac_site_file"
1872 done
1874 if test -r "$cache_file"; then
1875 # Some versions of bash will fail to source /dev/null (special
1876 # files actually), so we avoid doing that.
1877 if test -f "$cache_file"; then
1878 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1879 $as_echo "$as_me: loading cache $cache_file" >&6;}
1880 case $cache_file in
1881 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1882 *) . "./$cache_file";;
1883 esac
1885 else
1886 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1887 $as_echo "$as_me: creating cache $cache_file" >&6;}
1888 >$cache_file
1891 # Check that the precious variables saved in the cache have kept the same
1892 # value.
1893 ac_cache_corrupted=false
1894 for ac_var in $ac_precious_vars; do
1895 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1896 eval ac_new_set=\$ac_env_${ac_var}_set
1897 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1898 eval ac_new_val=\$ac_env_${ac_var}_value
1899 case $ac_old_set,$ac_new_set in
1900 set,)
1901 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1902 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1903 ac_cache_corrupted=: ;;
1904 ,set)
1905 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1906 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1907 ac_cache_corrupted=: ;;
1908 ,);;
1910 if test "x$ac_old_val" != "x$ac_new_val"; then
1911 # differences in whitespace do not lead to failure.
1912 ac_old_val_w=`echo x $ac_old_val`
1913 ac_new_val_w=`echo x $ac_new_val`
1914 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1915 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1916 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1917 ac_cache_corrupted=:
1918 else
1919 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1920 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1921 eval $ac_var=\$ac_old_val
1923 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1924 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1925 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1926 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1927 fi;;
1928 esac
1929 # Pass precious variables to config.status.
1930 if test "$ac_new_set" = set; then
1931 case $ac_new_val in
1932 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1933 *) ac_arg=$ac_var=$ac_new_val ;;
1934 esac
1935 case " $ac_configure_args " in
1936 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1937 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1938 esac
1940 done
1941 if $ac_cache_corrupted; then
1942 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1943 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1944 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1945 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1946 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1947 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1948 { (exit 1); exit 1; }; }
1975 ac_ext=c
1976 ac_cpp='$CPP $CPPFLAGS'
1977 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1978 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1979 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1983 ac_config_headers="$ac_config_headers config.h"
1985 ac_aux_dir=
1986 for ac_dir in scripts "$srcdir"/scripts; do
1987 if test -f "$ac_dir/install-sh"; then
1988 ac_aux_dir=$ac_dir
1989 ac_install_sh="$ac_aux_dir/install-sh -c"
1990 break
1991 elif test -f "$ac_dir/install.sh"; then
1992 ac_aux_dir=$ac_dir
1993 ac_install_sh="$ac_aux_dir/install.sh -c"
1994 break
1995 elif test -f "$ac_dir/shtool"; then
1996 ac_aux_dir=$ac_dir
1997 ac_install_sh="$ac_aux_dir/shtool install -c"
1998 break
2000 done
2001 if test -z "$ac_aux_dir"; then
2002 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in scripts \"$srcdir\"/scripts" >&5
2003 $as_echo "$as_me: error: cannot find install-sh or install.sh in scripts \"$srcdir\"/scripts" >&2;}
2004 { (exit 1); exit 1; }; }
2007 # These three variables are undocumented and unsupported,
2008 # and are intended to be withdrawn in a future Autoconf release.
2009 # They can cause serious problems if a builder's source tree is in a directory
2010 # whose full name contains unusual characters.
2011 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2012 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2013 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2019 subdirs="$subdirs "
2022 # Make sure we can run config.sub.
2023 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2024 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2025 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2026 { (exit 1); exit 1; }; }
2028 { $as_echo "$as_me:$LINENO: checking build system type" >&5
2029 $as_echo_n "checking build system type... " >&6; }
2030 if test "${ac_cv_build+set}" = set; then
2031 $as_echo_n "(cached) " >&6
2032 else
2033 ac_build_alias=$build_alias
2034 test "x$ac_build_alias" = x &&
2035 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2036 test "x$ac_build_alias" = x &&
2037 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2038 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2039 { (exit 1); exit 1; }; }
2040 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2041 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2042 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2043 { (exit 1); exit 1; }; }
2046 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2047 $as_echo "$ac_cv_build" >&6; }
2048 case $ac_cv_build in
2049 *-*-*) ;;
2050 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2051 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
2052 { (exit 1); exit 1; }; };;
2053 esac
2054 build=$ac_cv_build
2055 ac_save_IFS=$IFS; IFS='-'
2056 set x $ac_cv_build
2057 shift
2058 build_cpu=$1
2059 build_vendor=$2
2060 shift; shift
2061 # Remember, the first character of IFS is used to create $*,
2062 # except with old shells:
2063 build_os=$*
2064 IFS=$ac_save_IFS
2065 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2068 { $as_echo "$as_me:$LINENO: checking host system type" >&5
2069 $as_echo_n "checking host system type... " >&6; }
2070 if test "${ac_cv_host+set}" = set; then
2071 $as_echo_n "(cached) " >&6
2072 else
2073 if test "x$host_alias" = x; then
2074 ac_cv_host=$ac_cv_build
2075 else
2076 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2077 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2078 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2079 { (exit 1); exit 1; }; }
2083 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2084 $as_echo "$ac_cv_host" >&6; }
2085 case $ac_cv_host in
2086 *-*-*) ;;
2087 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2088 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
2089 { (exit 1); exit 1; }; };;
2090 esac
2091 host=$ac_cv_host
2092 ac_save_IFS=$IFS; IFS='-'
2093 set x $ac_cv_host
2094 shift
2095 host_cpu=$1
2096 host_vendor=$2
2097 shift; shift
2098 # Remember, the first character of IFS is used to create $*,
2099 # except with old shells:
2100 host_os=$*
2101 IFS=$ac_save_IFS
2102 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2106 ac_ext=c
2107 ac_cpp='$CPP $CPPFLAGS'
2108 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2109 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2110 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2111 if test -n "$ac_tool_prefix"; then
2112 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2113 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2114 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2115 $as_echo_n "checking for $ac_word... " >&6; }
2116 if test "${ac_cv_prog_CC+set}" = set; then
2117 $as_echo_n "(cached) " >&6
2118 else
2119 if test -n "$CC"; then
2120 ac_cv_prog_CC="$CC" # Let the user override the test.
2121 else
2122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2123 for as_dir in $PATH
2125 IFS=$as_save_IFS
2126 test -z "$as_dir" && as_dir=.
2127 for ac_exec_ext in '' $ac_executable_extensions; do
2128 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2129 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2130 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2131 break 2
2133 done
2134 done
2135 IFS=$as_save_IFS
2139 CC=$ac_cv_prog_CC
2140 if test -n "$CC"; then
2141 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2142 $as_echo "$CC" >&6; }
2143 else
2144 { $as_echo "$as_me:$LINENO: result: no" >&5
2145 $as_echo "no" >&6; }
2150 if test -z "$ac_cv_prog_CC"; then
2151 ac_ct_CC=$CC
2152 # Extract the first word of "gcc", so it can be a program name with args.
2153 set dummy gcc; ac_word=$2
2154 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2155 $as_echo_n "checking for $ac_word... " >&6; }
2156 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2157 $as_echo_n "(cached) " >&6
2158 else
2159 if test -n "$ac_ct_CC"; then
2160 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2161 else
2162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2163 for as_dir in $PATH
2165 IFS=$as_save_IFS
2166 test -z "$as_dir" && as_dir=.
2167 for ac_exec_ext in '' $ac_executable_extensions; do
2168 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2169 ac_cv_prog_ac_ct_CC="gcc"
2170 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2171 break 2
2173 done
2174 done
2175 IFS=$as_save_IFS
2179 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2180 if test -n "$ac_ct_CC"; then
2181 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2182 $as_echo "$ac_ct_CC" >&6; }
2183 else
2184 { $as_echo "$as_me:$LINENO: result: no" >&5
2185 $as_echo "no" >&6; }
2188 if test "x$ac_ct_CC" = x; then
2189 CC=""
2190 else
2191 case $cross_compiling:$ac_tool_warned in
2192 yes:)
2193 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2194 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2195 ac_tool_warned=yes ;;
2196 esac
2197 CC=$ac_ct_CC
2199 else
2200 CC="$ac_cv_prog_CC"
2203 if test -z "$CC"; then
2204 if test -n "$ac_tool_prefix"; then
2205 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2206 set dummy ${ac_tool_prefix}cc; ac_word=$2
2207 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2208 $as_echo_n "checking for $ac_word... " >&6; }
2209 if test "${ac_cv_prog_CC+set}" = set; then
2210 $as_echo_n "(cached) " >&6
2211 else
2212 if test -n "$CC"; then
2213 ac_cv_prog_CC="$CC" # Let the user override the test.
2214 else
2215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2216 for as_dir in $PATH
2218 IFS=$as_save_IFS
2219 test -z "$as_dir" && as_dir=.
2220 for ac_exec_ext in '' $ac_executable_extensions; do
2221 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2222 ac_cv_prog_CC="${ac_tool_prefix}cc"
2223 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2224 break 2
2226 done
2227 done
2228 IFS=$as_save_IFS
2232 CC=$ac_cv_prog_CC
2233 if test -n "$CC"; then
2234 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2235 $as_echo "$CC" >&6; }
2236 else
2237 { $as_echo "$as_me:$LINENO: result: no" >&5
2238 $as_echo "no" >&6; }
2244 if test -z "$CC"; then
2245 # Extract the first word of "cc", so it can be a program name with args.
2246 set dummy cc; ac_word=$2
2247 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2248 $as_echo_n "checking for $ac_word... " >&6; }
2249 if test "${ac_cv_prog_CC+set}" = set; then
2250 $as_echo_n "(cached) " >&6
2251 else
2252 if test -n "$CC"; then
2253 ac_cv_prog_CC="$CC" # Let the user override the test.
2254 else
2255 ac_prog_rejected=no
2256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2257 for as_dir in $PATH
2259 IFS=$as_save_IFS
2260 test -z "$as_dir" && as_dir=.
2261 for ac_exec_ext in '' $ac_executable_extensions; do
2262 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2263 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2264 ac_prog_rejected=yes
2265 continue
2267 ac_cv_prog_CC="cc"
2268 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2269 break 2
2271 done
2272 done
2273 IFS=$as_save_IFS
2275 if test $ac_prog_rejected = yes; then
2276 # We found a bogon in the path, so make sure we never use it.
2277 set dummy $ac_cv_prog_CC
2278 shift
2279 if test $# != 0; then
2280 # We chose a different compiler from the bogus one.
2281 # However, it has the same basename, so the bogon will be chosen
2282 # first if we set CC to just the basename; use the full file name.
2283 shift
2284 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2289 CC=$ac_cv_prog_CC
2290 if test -n "$CC"; then
2291 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2292 $as_echo "$CC" >&6; }
2293 else
2294 { $as_echo "$as_me:$LINENO: result: no" >&5
2295 $as_echo "no" >&6; }
2300 if test -z "$CC"; then
2301 if test -n "$ac_tool_prefix"; then
2302 for ac_prog in cl.exe
2304 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2305 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2306 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2307 $as_echo_n "checking for $ac_word... " >&6; }
2308 if test "${ac_cv_prog_CC+set}" = set; then
2309 $as_echo_n "(cached) " >&6
2310 else
2311 if test -n "$CC"; then
2312 ac_cv_prog_CC="$CC" # Let the user override the test.
2313 else
2314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2315 for as_dir in $PATH
2317 IFS=$as_save_IFS
2318 test -z "$as_dir" && as_dir=.
2319 for ac_exec_ext in '' $ac_executable_extensions; do
2320 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2321 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2322 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2323 break 2
2325 done
2326 done
2327 IFS=$as_save_IFS
2331 CC=$ac_cv_prog_CC
2332 if test -n "$CC"; then
2333 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2334 $as_echo "$CC" >&6; }
2335 else
2336 { $as_echo "$as_me:$LINENO: result: no" >&5
2337 $as_echo "no" >&6; }
2341 test -n "$CC" && break
2342 done
2344 if test -z "$CC"; then
2345 ac_ct_CC=$CC
2346 for ac_prog in cl.exe
2348 # Extract the first word of "$ac_prog", so it can be a program name with args.
2349 set dummy $ac_prog; ac_word=$2
2350 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2351 $as_echo_n "checking for $ac_word... " >&6; }
2352 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2353 $as_echo_n "(cached) " >&6
2354 else
2355 if test -n "$ac_ct_CC"; then
2356 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2357 else
2358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2359 for as_dir in $PATH
2361 IFS=$as_save_IFS
2362 test -z "$as_dir" && as_dir=.
2363 for ac_exec_ext in '' $ac_executable_extensions; do
2364 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2365 ac_cv_prog_ac_ct_CC="$ac_prog"
2366 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2367 break 2
2369 done
2370 done
2371 IFS=$as_save_IFS
2375 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2376 if test -n "$ac_ct_CC"; then
2377 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2378 $as_echo "$ac_ct_CC" >&6; }
2379 else
2380 { $as_echo "$as_me:$LINENO: result: no" >&5
2381 $as_echo "no" >&6; }
2385 test -n "$ac_ct_CC" && break
2386 done
2388 if test "x$ac_ct_CC" = x; then
2389 CC=""
2390 else
2391 case $cross_compiling:$ac_tool_warned in
2392 yes:)
2393 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2394 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2395 ac_tool_warned=yes ;;
2396 esac
2397 CC=$ac_ct_CC
2404 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2405 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2406 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2407 See \`config.log' for more details." >&5
2408 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
2409 See \`config.log' for more details." >&2;}
2410 { (exit 1); exit 1; }; }; }
2412 # Provide some information about the compiler.
2413 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2414 set X $ac_compile
2415 ac_compiler=$2
2416 { (ac_try="$ac_compiler --version >&5"
2417 case "(($ac_try" in
2418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2419 *) ac_try_echo=$ac_try;;
2420 esac
2421 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2422 $as_echo "$ac_try_echo") >&5
2423 (eval "$ac_compiler --version >&5") 2>&5
2424 ac_status=$?
2425 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2426 (exit $ac_status); }
2427 { (ac_try="$ac_compiler -v >&5"
2428 case "(($ac_try" in
2429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2430 *) ac_try_echo=$ac_try;;
2431 esac
2432 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2433 $as_echo "$ac_try_echo") >&5
2434 (eval "$ac_compiler -v >&5") 2>&5
2435 ac_status=$?
2436 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2437 (exit $ac_status); }
2438 { (ac_try="$ac_compiler -V >&5"
2439 case "(($ac_try" in
2440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2441 *) ac_try_echo=$ac_try;;
2442 esac
2443 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2444 $as_echo "$ac_try_echo") >&5
2445 (eval "$ac_compiler -V >&5") 2>&5
2446 ac_status=$?
2447 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2448 (exit $ac_status); }
2450 EXEEXT=
2451 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
2452 $as_echo_n "checking for suffix of object files... " >&6; }
2453 if test "${ac_cv_objext+set}" = set; then
2454 $as_echo_n "(cached) " >&6
2455 else
2456 cat >conftest.$ac_ext <<_ACEOF
2457 /* confdefs.h. */
2458 _ACEOF
2459 cat confdefs.h >>conftest.$ac_ext
2460 cat >>conftest.$ac_ext <<_ACEOF
2461 /* end confdefs.h. */
2464 main ()
2468 return 0;
2470 _ACEOF
2471 rm -f conftest.o conftest.obj
2472 if { (ac_try="$ac_compile"
2473 case "(($ac_try" in
2474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2475 *) ac_try_echo=$ac_try;;
2476 esac
2477 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2478 $as_echo "$ac_try_echo") >&5
2479 (eval "$ac_compile") 2>&5
2480 ac_status=$?
2481 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2482 (exit $ac_status); }; then
2483 for ac_file in conftest.o conftest.obj conftest.*; do
2484 test -f "$ac_file" || continue;
2485 case $ac_file in
2486 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2487 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2488 break;;
2489 esac
2490 done
2491 else
2492 $as_echo "$as_me: failed program was:" >&5
2493 sed 's/^/| /' conftest.$ac_ext >&5
2495 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2496 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2497 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2498 See \`config.log' for more details." >&5
2499 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
2500 See \`config.log' for more details." >&2;}
2501 { (exit 1); exit 1; }; }; }
2504 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2506 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2507 $as_echo "$ac_cv_objext" >&6; }
2508 OBJEXT=$ac_cv_objext
2509 ac_objext=$OBJEXT
2510 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2511 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2512 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2513 $as_echo_n "(cached) " >&6
2514 else
2515 cat >conftest.$ac_ext <<_ACEOF
2516 /* confdefs.h. */
2517 _ACEOF
2518 cat confdefs.h >>conftest.$ac_ext
2519 cat >>conftest.$ac_ext <<_ACEOF
2520 /* end confdefs.h. */
2523 main ()
2525 #ifndef __GNUC__
2526 choke me
2527 #endif
2530 return 0;
2532 _ACEOF
2533 rm -f conftest.$ac_objext
2534 if { (ac_try="$ac_compile"
2535 case "(($ac_try" in
2536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2537 *) ac_try_echo=$ac_try;;
2538 esac
2539 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2540 $as_echo "$ac_try_echo") >&5
2541 (eval "$ac_compile") 2>conftest.er1
2542 ac_status=$?
2543 grep -v '^ *+' conftest.er1 >conftest.err
2544 rm -f conftest.er1
2545 cat conftest.err >&5
2546 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2547 (exit $ac_status); } && {
2548 test -z "$ac_c_werror_flag" ||
2549 test ! -s conftest.err
2550 } && test -s conftest.$ac_objext; then
2551 ac_compiler_gnu=yes
2552 else
2553 $as_echo "$as_me: failed program was:" >&5
2554 sed 's/^/| /' conftest.$ac_ext >&5
2556 ac_compiler_gnu=no
2559 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2560 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2563 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2564 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
2565 if test $ac_compiler_gnu = yes; then
2566 GCC=yes
2567 else
2568 GCC=
2570 ac_test_CFLAGS=${CFLAGS+set}
2571 ac_save_CFLAGS=$CFLAGS
2572 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2573 $as_echo_n "checking whether $CC accepts -g... " >&6; }
2574 if test "${ac_cv_prog_cc_g+set}" = set; then
2575 $as_echo_n "(cached) " >&6
2576 else
2577 ac_save_c_werror_flag=$ac_c_werror_flag
2578 ac_c_werror_flag=yes
2579 ac_cv_prog_cc_g=no
2580 CFLAGS="-g"
2581 cat >conftest.$ac_ext <<_ACEOF
2582 /* confdefs.h. */
2583 _ACEOF
2584 cat confdefs.h >>conftest.$ac_ext
2585 cat >>conftest.$ac_ext <<_ACEOF
2586 /* end confdefs.h. */
2589 main ()
2593 return 0;
2595 _ACEOF
2596 rm -f conftest.$ac_objext
2597 if { (ac_try="$ac_compile"
2598 case "(($ac_try" in
2599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2600 *) ac_try_echo=$ac_try;;
2601 esac
2602 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2603 $as_echo "$ac_try_echo") >&5
2604 (eval "$ac_compile") 2>conftest.er1
2605 ac_status=$?
2606 grep -v '^ *+' conftest.er1 >conftest.err
2607 rm -f conftest.er1
2608 cat conftest.err >&5
2609 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2610 (exit $ac_status); } && {
2611 test -z "$ac_c_werror_flag" ||
2612 test ! -s conftest.err
2613 } && test -s conftest.$ac_objext; then
2614 ac_cv_prog_cc_g=yes
2615 else
2616 $as_echo "$as_me: failed program was:" >&5
2617 sed 's/^/| /' conftest.$ac_ext >&5
2619 CFLAGS=""
2620 cat >conftest.$ac_ext <<_ACEOF
2621 /* confdefs.h. */
2622 _ACEOF
2623 cat confdefs.h >>conftest.$ac_ext
2624 cat >>conftest.$ac_ext <<_ACEOF
2625 /* end confdefs.h. */
2628 main ()
2632 return 0;
2634 _ACEOF
2635 rm -f conftest.$ac_objext
2636 if { (ac_try="$ac_compile"
2637 case "(($ac_try" in
2638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2639 *) ac_try_echo=$ac_try;;
2640 esac
2641 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2642 $as_echo "$ac_try_echo") >&5
2643 (eval "$ac_compile") 2>conftest.er1
2644 ac_status=$?
2645 grep -v '^ *+' conftest.er1 >conftest.err
2646 rm -f conftest.er1
2647 cat conftest.err >&5
2648 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2649 (exit $ac_status); } && {
2650 test -z "$ac_c_werror_flag" ||
2651 test ! -s conftest.err
2652 } && test -s conftest.$ac_objext; then
2654 else
2655 $as_echo "$as_me: failed program was:" >&5
2656 sed 's/^/| /' conftest.$ac_ext >&5
2658 ac_c_werror_flag=$ac_save_c_werror_flag
2659 CFLAGS="-g"
2660 cat >conftest.$ac_ext <<_ACEOF
2661 /* confdefs.h. */
2662 _ACEOF
2663 cat confdefs.h >>conftest.$ac_ext
2664 cat >>conftest.$ac_ext <<_ACEOF
2665 /* end confdefs.h. */
2668 main ()
2672 return 0;
2674 _ACEOF
2675 rm -f conftest.$ac_objext
2676 if { (ac_try="$ac_compile"
2677 case "(($ac_try" in
2678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2679 *) ac_try_echo=$ac_try;;
2680 esac
2681 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2682 $as_echo "$ac_try_echo") >&5
2683 (eval "$ac_compile") 2>conftest.er1
2684 ac_status=$?
2685 grep -v '^ *+' conftest.er1 >conftest.err
2686 rm -f conftest.er1
2687 cat conftest.err >&5
2688 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2689 (exit $ac_status); } && {
2690 test -z "$ac_c_werror_flag" ||
2691 test ! -s conftest.err
2692 } && test -s conftest.$ac_objext; then
2693 ac_cv_prog_cc_g=yes
2694 else
2695 $as_echo "$as_me: failed program was:" >&5
2696 sed 's/^/| /' conftest.$ac_ext >&5
2701 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2704 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2707 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2708 ac_c_werror_flag=$ac_save_c_werror_flag
2710 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2711 $as_echo "$ac_cv_prog_cc_g" >&6; }
2712 if test "$ac_test_CFLAGS" = set; then
2713 CFLAGS=$ac_save_CFLAGS
2714 elif test $ac_cv_prog_cc_g = yes; then
2715 if test "$GCC" = yes; then
2716 CFLAGS="-g -O2"
2717 else
2718 CFLAGS="-g"
2720 else
2721 if test "$GCC" = yes; then
2722 CFLAGS="-O2"
2723 else
2724 CFLAGS=
2727 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2728 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
2729 if test "${ac_cv_prog_cc_c89+set}" = set; then
2730 $as_echo_n "(cached) " >&6
2731 else
2732 ac_cv_prog_cc_c89=no
2733 ac_save_CC=$CC
2734 cat >conftest.$ac_ext <<_ACEOF
2735 /* confdefs.h. */
2736 _ACEOF
2737 cat confdefs.h >>conftest.$ac_ext
2738 cat >>conftest.$ac_ext <<_ACEOF
2739 /* end confdefs.h. */
2740 #include <stdarg.h>
2741 #include <stdio.h>
2742 #include <sys/types.h>
2743 #include <sys/stat.h>
2744 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2745 struct buf { int x; };
2746 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2747 static char *e (p, i)
2748 char **p;
2749 int i;
2751 return p[i];
2753 static char *f (char * (*g) (char **, int), char **p, ...)
2755 char *s;
2756 va_list v;
2757 va_start (v,p);
2758 s = g (p, va_arg (v,int));
2759 va_end (v);
2760 return s;
2763 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2764 function prototypes and stuff, but not '\xHH' hex character constants.
2765 These don't provoke an error unfortunately, instead are silently treated
2766 as 'x'. The following induces an error, until -std is added to get
2767 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2768 array size at least. It's necessary to write '\x00'==0 to get something
2769 that's true only with -std. */
2770 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2772 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2773 inside strings and character constants. */
2774 #define FOO(x) 'x'
2775 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2777 int test (int i, double x);
2778 struct s1 {int (*f) (int a);};
2779 struct s2 {int (*f) (double a);};
2780 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2781 int argc;
2782 char **argv;
2784 main ()
2786 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2788 return 0;
2790 _ACEOF
2791 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2792 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2794 CC="$ac_save_CC $ac_arg"
2795 rm -f conftest.$ac_objext
2796 if { (ac_try="$ac_compile"
2797 case "(($ac_try" in
2798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2799 *) ac_try_echo=$ac_try;;
2800 esac
2801 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2802 $as_echo "$ac_try_echo") >&5
2803 (eval "$ac_compile") 2>conftest.er1
2804 ac_status=$?
2805 grep -v '^ *+' conftest.er1 >conftest.err
2806 rm -f conftest.er1
2807 cat conftest.err >&5
2808 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2809 (exit $ac_status); } && {
2810 test -z "$ac_c_werror_flag" ||
2811 test ! -s conftest.err
2812 } && test -s conftest.$ac_objext; then
2813 ac_cv_prog_cc_c89=$ac_arg
2814 else
2815 $as_echo "$as_me: failed program was:" >&5
2816 sed 's/^/| /' conftest.$ac_ext >&5
2821 rm -f core conftest.err conftest.$ac_objext
2822 test "x$ac_cv_prog_cc_c89" != "xno" && break
2823 done
2824 rm -f conftest.$ac_ext
2825 CC=$ac_save_CC
2828 # AC_CACHE_VAL
2829 case "x$ac_cv_prog_cc_c89" in
2831 { $as_echo "$as_me:$LINENO: result: none needed" >&5
2832 $as_echo "none needed" >&6; } ;;
2833 xno)
2834 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
2835 $as_echo "unsupported" >&6; } ;;
2837 CC="$CC $ac_cv_prog_cc_c89"
2838 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2839 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
2840 esac
2843 ac_ext=c
2844 ac_cpp='$CPP $CPPFLAGS'
2845 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2846 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2847 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2849 if test $host != $build; then
2850 for ac_prog in gcc cc
2852 # Extract the first word of "$ac_prog", so it can be a program name with args.
2853 set dummy $ac_prog; ac_word=$2
2854 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2855 $as_echo_n "checking for $ac_word... " >&6; }
2856 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
2857 $as_echo_n "(cached) " >&6
2858 else
2859 if test -n "$BUILD_CC"; then
2860 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
2861 else
2862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2863 for as_dir in $PATH
2865 IFS=$as_save_IFS
2866 test -z "$as_dir" && as_dir=.
2867 for ac_exec_ext in '' $ac_executable_extensions; do
2868 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2869 ac_cv_prog_BUILD_CC="$ac_prog"
2870 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2871 break 2
2873 done
2874 done
2875 IFS=$as_save_IFS
2879 BUILD_CC=$ac_cv_prog_BUILD_CC
2880 if test -n "$BUILD_CC"; then
2881 { $as_echo "$as_me:$LINENO: result: $BUILD_CC" >&5
2882 $as_echo "$BUILD_CC" >&6; }
2883 else
2884 { $as_echo "$as_me:$LINENO: result: no" >&5
2885 $as_echo "no" >&6; }
2889 test -n "$BUILD_CC" && break
2890 done
2894 ac_ext=c
2895 ac_cpp='$CPP $CPPFLAGS'
2896 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2897 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2898 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2899 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2900 $as_echo_n "checking how to run the C preprocessor... " >&6; }
2901 # On Suns, sometimes $CPP names a directory.
2902 if test -n "$CPP" && test -d "$CPP"; then
2903 CPP=
2905 if test -z "$CPP"; then
2906 if test "${ac_cv_prog_CPP+set}" = set; then
2907 $as_echo_n "(cached) " >&6
2908 else
2909 # Double quotes because CPP needs to be expanded
2910 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2912 ac_preproc_ok=false
2913 for ac_c_preproc_warn_flag in '' yes
2915 # Use a header file that comes with gcc, so configuring glibc
2916 # with a fresh cross-compiler works.
2917 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2918 # <limits.h> exists even on freestanding compilers.
2919 # On the NeXT, cc -E runs the code through the compiler's parser,
2920 # not just through cpp. "Syntax error" is here to catch this case.
2921 cat >conftest.$ac_ext <<_ACEOF
2922 /* confdefs.h. */
2923 _ACEOF
2924 cat confdefs.h >>conftest.$ac_ext
2925 cat >>conftest.$ac_ext <<_ACEOF
2926 /* end confdefs.h. */
2927 #ifdef __STDC__
2928 # include <limits.h>
2929 #else
2930 # include <assert.h>
2931 #endif
2932 Syntax error
2933 _ACEOF
2934 if { (ac_try="$ac_cpp conftest.$ac_ext"
2935 case "(($ac_try" in
2936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2937 *) ac_try_echo=$ac_try;;
2938 esac
2939 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2940 $as_echo "$ac_try_echo") >&5
2941 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2942 ac_status=$?
2943 grep -v '^ *+' conftest.er1 >conftest.err
2944 rm -f conftest.er1
2945 cat conftest.err >&5
2946 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2947 (exit $ac_status); } >/dev/null && {
2948 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2949 test ! -s conftest.err
2950 }; then
2952 else
2953 $as_echo "$as_me: failed program was:" >&5
2954 sed 's/^/| /' conftest.$ac_ext >&5
2956 # Broken: fails on valid input.
2957 continue
2960 rm -f conftest.err conftest.$ac_ext
2962 # OK, works on sane cases. Now check whether nonexistent headers
2963 # can be detected and how.
2964 cat >conftest.$ac_ext <<_ACEOF
2965 /* confdefs.h. */
2966 _ACEOF
2967 cat confdefs.h >>conftest.$ac_ext
2968 cat >>conftest.$ac_ext <<_ACEOF
2969 /* end confdefs.h. */
2970 #include <ac_nonexistent.h>
2971 _ACEOF
2972 if { (ac_try="$ac_cpp conftest.$ac_ext"
2973 case "(($ac_try" in
2974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2975 *) ac_try_echo=$ac_try;;
2976 esac
2977 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2978 $as_echo "$ac_try_echo") >&5
2979 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2980 ac_status=$?
2981 grep -v '^ *+' conftest.er1 >conftest.err
2982 rm -f conftest.er1
2983 cat conftest.err >&5
2984 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2985 (exit $ac_status); } >/dev/null && {
2986 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2987 test ! -s conftest.err
2988 }; then
2989 # Broken: success on invalid input.
2990 continue
2991 else
2992 $as_echo "$as_me: failed program was:" >&5
2993 sed 's/^/| /' conftest.$ac_ext >&5
2995 # Passes both tests.
2996 ac_preproc_ok=:
2997 break
3000 rm -f conftest.err conftest.$ac_ext
3002 done
3003 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3004 rm -f conftest.err conftest.$ac_ext
3005 if $ac_preproc_ok; then
3006 break
3009 done
3010 ac_cv_prog_CPP=$CPP
3013 CPP=$ac_cv_prog_CPP
3014 else
3015 ac_cv_prog_CPP=$CPP
3017 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
3018 $as_echo "$CPP" >&6; }
3019 ac_preproc_ok=false
3020 for ac_c_preproc_warn_flag in '' yes
3022 # Use a header file that comes with gcc, so configuring glibc
3023 # with a fresh cross-compiler works.
3024 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3025 # <limits.h> exists even on freestanding compilers.
3026 # On the NeXT, cc -E runs the code through the compiler's parser,
3027 # not just through cpp. "Syntax error" is here to catch this case.
3028 cat >conftest.$ac_ext <<_ACEOF
3029 /* confdefs.h. */
3030 _ACEOF
3031 cat confdefs.h >>conftest.$ac_ext
3032 cat >>conftest.$ac_ext <<_ACEOF
3033 /* end confdefs.h. */
3034 #ifdef __STDC__
3035 # include <limits.h>
3036 #else
3037 # include <assert.h>
3038 #endif
3039 Syntax error
3040 _ACEOF
3041 if { (ac_try="$ac_cpp conftest.$ac_ext"
3042 case "(($ac_try" in
3043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3044 *) ac_try_echo=$ac_try;;
3045 esac
3046 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3047 $as_echo "$ac_try_echo") >&5
3048 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3049 ac_status=$?
3050 grep -v '^ *+' conftest.er1 >conftest.err
3051 rm -f conftest.er1
3052 cat conftest.err >&5
3053 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3054 (exit $ac_status); } >/dev/null && {
3055 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3056 test ! -s conftest.err
3057 }; then
3059 else
3060 $as_echo "$as_me: failed program was:" >&5
3061 sed 's/^/| /' conftest.$ac_ext >&5
3063 # Broken: fails on valid input.
3064 continue
3067 rm -f conftest.err conftest.$ac_ext
3069 # OK, works on sane cases. Now check whether nonexistent headers
3070 # can be detected and how.
3071 cat >conftest.$ac_ext <<_ACEOF
3072 /* confdefs.h. */
3073 _ACEOF
3074 cat confdefs.h >>conftest.$ac_ext
3075 cat >>conftest.$ac_ext <<_ACEOF
3076 /* end confdefs.h. */
3077 #include <ac_nonexistent.h>
3078 _ACEOF
3079 if { (ac_try="$ac_cpp conftest.$ac_ext"
3080 case "(($ac_try" in
3081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3082 *) ac_try_echo=$ac_try;;
3083 esac
3084 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3085 $as_echo "$ac_try_echo") >&5
3086 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3087 ac_status=$?
3088 grep -v '^ *+' conftest.er1 >conftest.err
3089 rm -f conftest.er1
3090 cat conftest.err >&5
3091 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3092 (exit $ac_status); } >/dev/null && {
3093 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3094 test ! -s conftest.err
3095 }; then
3096 # Broken: success on invalid input.
3097 continue
3098 else
3099 $as_echo "$as_me: failed program was:" >&5
3100 sed 's/^/| /' conftest.$ac_ext >&5
3102 # Passes both tests.
3103 ac_preproc_ok=:
3104 break
3107 rm -f conftest.err conftest.$ac_ext
3109 done
3110 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3111 rm -f conftest.err conftest.$ac_ext
3112 if $ac_preproc_ok; then
3114 else
3115 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3116 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3117 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3118 See \`config.log' for more details." >&5
3119 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3120 See \`config.log' for more details." >&2;}
3121 { (exit 1); exit 1; }; }; }
3124 ac_ext=c
3125 ac_cpp='$CPP $CPPFLAGS'
3126 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3127 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3128 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3130 # We need the C++ compiler only for testing.
3131 ac_ext=cpp
3132 ac_cpp='$CXXCPP $CPPFLAGS'
3133 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3134 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3135 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3136 if test -z "$CXX"; then
3137 if test -n "$CCC"; then
3138 CXX=$CCC
3139 else
3140 if test -n "$ac_tool_prefix"; then
3141 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3143 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3144 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3145 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3146 $as_echo_n "checking for $ac_word... " >&6; }
3147 if test "${ac_cv_prog_CXX+set}" = set; then
3148 $as_echo_n "(cached) " >&6
3149 else
3150 if test -n "$CXX"; then
3151 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3152 else
3153 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3154 for as_dir in $PATH
3156 IFS=$as_save_IFS
3157 test -z "$as_dir" && as_dir=.
3158 for ac_exec_ext in '' $ac_executable_extensions; do
3159 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3160 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3161 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3162 break 2
3164 done
3165 done
3166 IFS=$as_save_IFS
3170 CXX=$ac_cv_prog_CXX
3171 if test -n "$CXX"; then
3172 { $as_echo "$as_me:$LINENO: result: $CXX" >&5
3173 $as_echo "$CXX" >&6; }
3174 else
3175 { $as_echo "$as_me:$LINENO: result: no" >&5
3176 $as_echo "no" >&6; }
3180 test -n "$CXX" && break
3181 done
3183 if test -z "$CXX"; then
3184 ac_ct_CXX=$CXX
3185 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3187 # Extract the first word of "$ac_prog", so it can be a program name with args.
3188 set dummy $ac_prog; ac_word=$2
3189 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3190 $as_echo_n "checking for $ac_word... " >&6; }
3191 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3192 $as_echo_n "(cached) " >&6
3193 else
3194 if test -n "$ac_ct_CXX"; then
3195 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3196 else
3197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3198 for as_dir in $PATH
3200 IFS=$as_save_IFS
3201 test -z "$as_dir" && as_dir=.
3202 for ac_exec_ext in '' $ac_executable_extensions; do
3203 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3204 ac_cv_prog_ac_ct_CXX="$ac_prog"
3205 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3206 break 2
3208 done
3209 done
3210 IFS=$as_save_IFS
3214 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3215 if test -n "$ac_ct_CXX"; then
3216 { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3217 $as_echo "$ac_ct_CXX" >&6; }
3218 else
3219 { $as_echo "$as_me:$LINENO: result: no" >&5
3220 $as_echo "no" >&6; }
3224 test -n "$ac_ct_CXX" && break
3225 done
3227 if test "x$ac_ct_CXX" = x; then
3228 CXX="g++"
3229 else
3230 case $cross_compiling:$ac_tool_warned in
3231 yes:)
3232 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3233 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3234 ac_tool_warned=yes ;;
3235 esac
3236 CXX=$ac_ct_CXX
3242 # Provide some information about the compiler.
3243 $as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
3244 set X $ac_compile
3245 ac_compiler=$2
3246 { (ac_try="$ac_compiler --version >&5"
3247 case "(($ac_try" in
3248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3249 *) ac_try_echo=$ac_try;;
3250 esac
3251 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3252 $as_echo "$ac_try_echo") >&5
3253 (eval "$ac_compiler --version >&5") 2>&5
3254 ac_status=$?
3255 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3256 (exit $ac_status); }
3257 { (ac_try="$ac_compiler -v >&5"
3258 case "(($ac_try" in
3259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3260 *) ac_try_echo=$ac_try;;
3261 esac
3262 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3263 $as_echo "$ac_try_echo") >&5
3264 (eval "$ac_compiler -v >&5") 2>&5
3265 ac_status=$?
3266 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3267 (exit $ac_status); }
3268 { (ac_try="$ac_compiler -V >&5"
3269 case "(($ac_try" in
3270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3271 *) ac_try_echo=$ac_try;;
3272 esac
3273 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3274 $as_echo "$ac_try_echo") >&5
3275 (eval "$ac_compiler -V >&5") 2>&5
3276 ac_status=$?
3277 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3278 (exit $ac_status); }
3280 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3281 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3282 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3283 $as_echo_n "(cached) " >&6
3284 else
3285 cat >conftest.$ac_ext <<_ACEOF
3286 /* confdefs.h. */
3287 _ACEOF
3288 cat confdefs.h >>conftest.$ac_ext
3289 cat >>conftest.$ac_ext <<_ACEOF
3290 /* end confdefs.h. */
3293 main ()
3295 #ifndef __GNUC__
3296 choke me
3297 #endif
3300 return 0;
3302 _ACEOF
3303 rm -f conftest.$ac_objext
3304 if { (ac_try="$ac_compile"
3305 case "(($ac_try" in
3306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3307 *) ac_try_echo=$ac_try;;
3308 esac
3309 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3310 $as_echo "$ac_try_echo") >&5
3311 (eval "$ac_compile") 2>conftest.er1
3312 ac_status=$?
3313 grep -v '^ *+' conftest.er1 >conftest.err
3314 rm -f conftest.er1
3315 cat conftest.err >&5
3316 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3317 (exit $ac_status); } && {
3318 test -z "$ac_cxx_werror_flag" ||
3319 test ! -s conftest.err
3320 } && test -s conftest.$ac_objext; then
3321 ac_compiler_gnu=yes
3322 else
3323 $as_echo "$as_me: failed program was:" >&5
3324 sed 's/^/| /' conftest.$ac_ext >&5
3326 ac_compiler_gnu=no
3329 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3330 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3333 { $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3334 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3335 if test $ac_compiler_gnu = yes; then
3336 GXX=yes
3337 else
3338 GXX=
3340 ac_test_CXXFLAGS=${CXXFLAGS+set}
3341 ac_save_CXXFLAGS=$CXXFLAGS
3342 { $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3343 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3344 if test "${ac_cv_prog_cxx_g+set}" = set; then
3345 $as_echo_n "(cached) " >&6
3346 else
3347 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3348 ac_cxx_werror_flag=yes
3349 ac_cv_prog_cxx_g=no
3350 CXXFLAGS="-g"
3351 cat >conftest.$ac_ext <<_ACEOF
3352 /* confdefs.h. */
3353 _ACEOF
3354 cat confdefs.h >>conftest.$ac_ext
3355 cat >>conftest.$ac_ext <<_ACEOF
3356 /* end confdefs.h. */
3359 main ()
3363 return 0;
3365 _ACEOF
3366 rm -f conftest.$ac_objext
3367 if { (ac_try="$ac_compile"
3368 case "(($ac_try" in
3369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3370 *) ac_try_echo=$ac_try;;
3371 esac
3372 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3373 $as_echo "$ac_try_echo") >&5
3374 (eval "$ac_compile") 2>conftest.er1
3375 ac_status=$?
3376 grep -v '^ *+' conftest.er1 >conftest.err
3377 rm -f conftest.er1
3378 cat conftest.err >&5
3379 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3380 (exit $ac_status); } && {
3381 test -z "$ac_cxx_werror_flag" ||
3382 test ! -s conftest.err
3383 } && test -s conftest.$ac_objext; then
3384 ac_cv_prog_cxx_g=yes
3385 else
3386 $as_echo "$as_me: failed program was:" >&5
3387 sed 's/^/| /' conftest.$ac_ext >&5
3389 CXXFLAGS=""
3390 cat >conftest.$ac_ext <<_ACEOF
3391 /* confdefs.h. */
3392 _ACEOF
3393 cat confdefs.h >>conftest.$ac_ext
3394 cat >>conftest.$ac_ext <<_ACEOF
3395 /* end confdefs.h. */
3398 main ()
3402 return 0;
3404 _ACEOF
3405 rm -f conftest.$ac_objext
3406 if { (ac_try="$ac_compile"
3407 case "(($ac_try" in
3408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3409 *) ac_try_echo=$ac_try;;
3410 esac
3411 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3412 $as_echo "$ac_try_echo") >&5
3413 (eval "$ac_compile") 2>conftest.er1
3414 ac_status=$?
3415 grep -v '^ *+' conftest.er1 >conftest.err
3416 rm -f conftest.er1
3417 cat conftest.err >&5
3418 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3419 (exit $ac_status); } && {
3420 test -z "$ac_cxx_werror_flag" ||
3421 test ! -s conftest.err
3422 } && test -s conftest.$ac_objext; then
3424 else
3425 $as_echo "$as_me: failed program was:" >&5
3426 sed 's/^/| /' conftest.$ac_ext >&5
3428 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3429 CXXFLAGS="-g"
3430 cat >conftest.$ac_ext <<_ACEOF
3431 /* confdefs.h. */
3432 _ACEOF
3433 cat confdefs.h >>conftest.$ac_ext
3434 cat >>conftest.$ac_ext <<_ACEOF
3435 /* end confdefs.h. */
3438 main ()
3442 return 0;
3444 _ACEOF
3445 rm -f conftest.$ac_objext
3446 if { (ac_try="$ac_compile"
3447 case "(($ac_try" in
3448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3449 *) ac_try_echo=$ac_try;;
3450 esac
3451 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3452 $as_echo "$ac_try_echo") >&5
3453 (eval "$ac_compile") 2>conftest.er1
3454 ac_status=$?
3455 grep -v '^ *+' conftest.er1 >conftest.err
3456 rm -f conftest.er1
3457 cat conftest.err >&5
3458 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3459 (exit $ac_status); } && {
3460 test -z "$ac_cxx_werror_flag" ||
3461 test ! -s conftest.err
3462 } && test -s conftest.$ac_objext; then
3463 ac_cv_prog_cxx_g=yes
3464 else
3465 $as_echo "$as_me: failed program was:" >&5
3466 sed 's/^/| /' conftest.$ac_ext >&5
3471 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3474 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3477 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3478 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3480 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3481 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3482 if test "$ac_test_CXXFLAGS" = set; then
3483 CXXFLAGS=$ac_save_CXXFLAGS
3484 elif test $ac_cv_prog_cxx_g = yes; then
3485 if test "$GXX" = yes; then
3486 CXXFLAGS="-g -O2"
3487 else
3488 CXXFLAGS="-g"
3490 else
3491 if test "$GXX" = yes; then
3492 CXXFLAGS="-O2"
3493 else
3494 CXXFLAGS=
3497 ac_ext=c
3498 ac_cpp='$CPP $CPPFLAGS'
3499 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3500 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3501 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3504 if test "`cd $srcdir; /bin/pwd`" = "`/bin/pwd`"; then
3505 { { $as_echo "$as_me:$LINENO: error: you must configure in a separate build directory" >&5
3506 $as_echo "$as_me: error: you must configure in a separate build directory" >&2;}
3507 { (exit 1); exit 1; }; }
3510 # This will get text that should go into config.make.
3511 config_vars=
3513 # Check for a --with-gd argument and set libgd-LDFLAGS in config.make.
3515 # Check whether --with-gd was given.
3516 if test "${with_gd+set}" = set; then
3517 withval=$with_gd; case "$with_gd" in
3518 yes|''|no) ;;
3519 *) libgd_include="-I$withval/include"
3520 libgd_ldflags="-L$withval/lib" ;;
3521 esac
3526 # Check whether --with-gd-include was given.
3527 if test "${with_gd_include+set}" = set; then
3528 withval=$with_gd_include; case "$with_gd_include" in
3529 ''|no) ;;
3530 *) libgd_include="-I$withval" ;;
3531 esac
3536 # Check whether --with-gd-lib was given.
3537 if test "${with_gd_lib+set}" = set; then
3538 withval=$with_gd_lib; case "$with_gd_lib" in
3539 ''|no) ;;
3540 *) libgd_ldflags="-L$withval" ;;
3541 esac
3546 if test -n "$libgd_include"; then
3547 config_vars="$config_vars
3548 CFLAGS-memusagestat.c = $libgd_include"
3550 if test -n "$libgd_ldflags"; then
3551 config_vars="$config_vars
3552 libgd-LDFLAGS = $libgd_ldflags"
3556 # Check whether --with-fp was given.
3557 if test "${with_fp+set}" = set; then
3558 withval=$with_fp; with_fp=$withval
3559 else
3560 with_fp=yes
3565 # Check whether --with-binutils was given.
3566 if test "${with_binutils+set}" = set; then
3567 withval=$with_binutils; path_binutils=$withval
3568 else
3569 path_binutils=''
3573 # Check whether --with-elf was given.
3574 if test "${with_elf+set}" = set; then
3575 withval=$with_elf; elf=$withval
3576 else
3577 elf=no
3581 # Check whether --with-selinux was given.
3582 if test "${with_selinux+set}" = set; then
3583 withval=$with_selinux; with_selinux=$withval
3584 else
3585 with_selinux=auto
3589 # Check whether --with-xcoff was given.
3590 if test "${with_xcoff+set}" = set; then
3591 withval=$with_xcoff; xcoff=$withval
3592 else
3593 xcoff=no
3597 # Check whether --with-cvs was given.
3598 if test "${with_cvs+set}" = set; then
3599 withval=$with_cvs; with_cvs=$withval
3600 else
3601 with_cvs=yes
3604 if test "$with_cvs" = yes; then
3605 if test -d $srcdir/CVS && grep :pserver: $srcdir/CVS/Root > /dev/null
3606 then
3607 with_cvs=no
3613 # Check whether --with-headers was given.
3614 if test "${with_headers+set}" = set; then
3615 withval=$with_headers; sysheaders=$withval
3616 else
3617 sysheaders=''
3621 # Check whether --enable-sanity-checks was given.
3622 if test "${enable_sanity_checks+set}" = set; then
3623 enableval=$enable_sanity_checks; enable_sanity=$enableval
3624 else
3625 enable_sanity=yes
3630 # Check whether --enable-check-abi was given.
3631 if test "${enable_check_abi+set}" = set; then
3632 enableval=$enable_check_abi; enable_check_abi=$enableval
3633 else
3634 enable_check_abi=no
3638 static=yes
3639 # Check whether --enable-shared was given.
3640 if test "${enable_shared+set}" = set; then
3641 enableval=$enable_shared; shared=$enableval
3642 else
3643 shared=default
3646 # Check whether --enable-profile was given.
3647 if test "${enable_profile+set}" = set; then
3648 enableval=$enable_profile; profile=$enableval
3649 else
3650 profile=no
3653 # Check whether --enable-omitfp was given.
3654 if test "${enable_omitfp+set}" = set; then
3655 enableval=$enable_omitfp; omitfp=$enableval
3656 else
3657 omitfp=no
3660 # Check whether --enable-bounded was given.
3661 if test "${enable_bounded+set}" = set; then
3662 enableval=$enable_bounded; bounded=$enableval
3663 else
3664 bounded=no
3667 # Check whether --enable-versioning was given.
3668 if test "${enable_versioning+set}" = set; then
3669 enableval=$enable_versioning; enable_versioning=$enableval
3670 else
3671 enable_versioning=yes
3675 # Check whether --enable-oldest-abi was given.
3676 if test "${enable_oldest_abi+set}" = set; then
3677 enableval=$enable_oldest_abi; oldest_abi=$enableval
3678 else
3679 oldest_abi=no
3682 if test "$oldest_abi" = yes || test "$oldest_abi" = no; then
3683 oldest_abi=default
3684 else
3685 cat >>confdefs.h <<_ACEOF
3686 #define GLIBC_OLDEST_ABI "$oldest_abi"
3687 _ACEOF
3692 # Check whether --enable-stackguard-randomization was given.
3693 if test "${enable_stackguard_randomization+set}" = set; then
3694 enableval=$enable_stackguard_randomization; enable_stackguard_randomize=$enableval
3695 else
3696 enable_stackguard_randomize=no
3699 if test "$enable_stackguard_randomize" = yes; then
3700 cat >>confdefs.h <<\_ACEOF
3701 #define ENABLE_STACKGUARD_RANDOMIZE 1
3702 _ACEOF
3706 # Check whether --enable-add-ons was given.
3707 if test "${enable_add_ons+set}" = set; then
3708 enableval=$enable_add_ons;
3709 else
3710 enable_add_ons=yes
3715 # Check whether --with-tls was given.
3716 if test "${with_tls+set}" = set; then
3717 withval=$with_tls; usetls=$withval
3718 else
3719 usetls=yes
3724 # Check whether --with-__thread was given.
3725 if test "${with___thread+set}" = set; then
3726 withval=$with___thread; use__thread=$withval
3727 else
3728 use__thread=yes
3732 # Check whether --enable-hidden-plt was given.
3733 if test "${enable_hidden_plt+set}" = set; then
3734 enableval=$enable_hidden_plt; hidden=$enableval
3735 else
3736 hidden=yes
3739 if test "x$hidden" = xno; then
3740 cat >>confdefs.h <<\_ACEOF
3741 #define NO_HIDDEN 1
3742 _ACEOF
3746 # Check whether --enable-bind-now was given.
3747 if test "${enable_bind_now+set}" = set; then
3748 enableval=$enable_bind_now; bindnow=$enableval
3749 else
3750 bindnow=no
3755 # Check whether --enable-static-nss was given.
3756 if test "${enable_static_nss+set}" = set; then
3757 enableval=$enable_static_nss; static_nss=$enableval
3758 else
3759 static_nss=no
3762 if test x"$static_nss" = xyes || test x"$shared" = xno; then
3763 static_nss=yes
3764 cat >>confdefs.h <<\_ACEOF
3765 #define DO_STATIC_NSS 1
3766 _ACEOF
3770 # Check whether --enable-force-install was given.
3771 if test "${enable_force_install+set}" = set; then
3772 enableval=$enable_force_install; force_install=$enableval
3773 else
3774 force_install=yes
3779 # Check whether --enable-kernel was given.
3780 if test "${enable_kernel+set}" = set; then
3781 enableval=$enable_kernel; minimum_kernel=$enableval
3784 if test "$minimum_kernel" = yes || test "$minimum_kernel" = no; then
3785 # Better nothing than this.
3786 minimum_kernel=""
3787 else
3788 if test "$minimum_kernel" = current; then
3789 minimum_kernel=`uname -r 2>/dev/null` || minimum_kernel=
3793 # Check whether --enable-all-warnings was given.
3794 if test "${enable_all_warnings+set}" = set; then
3795 enableval=$enable_all_warnings; all_warnings=$enableval
3800 # Check whether --enable-multi-arch was given.
3801 if test "${enable_multi_arch+set}" = set; then
3802 enableval=$enable_multi_arch; multi_arch=$enableval
3803 else
3804 multi_arch=no
3807 if test x"$multi_arch" = xyes; then
3808 cat >>confdefs.h <<\_ACEOF
3809 #define USE_MULTIARCH 1
3810 _ACEOF
3812 multi_arch_d=/multiarch
3816 # Check whether --enable-experimental-malloc was given.
3817 if test "${enable_experimental_malloc+set}" = set; then
3818 enableval=$enable_experimental_malloc; experimental_malloc=$enableval
3823 # Check whether --enable-nss-crypt was given.
3824 if test "${enable_nss_crypt+set}" = set; then
3825 enableval=$enable_nss_crypt; nss_crypt=$enableval
3826 else
3827 nss_crypt=no
3830 if test x$nss_crypt = xyes; then
3831 nss_includes=-I$(nss-config --includedir 2>/dev/null)
3832 if test $? -ne 0; then
3833 { { $as_echo "$as_me:$LINENO: error: cannot find include directory with nss-config" >&5
3834 $as_echo "$as_me: error: cannot find include directory with nss-config" >&2;}
3835 { (exit 1); exit 1; }; }
3837 old_CFLAGS="$CFLAGS"
3838 CFLAGS="$CFLAGS $nss_includes"
3840 cat >conftest.$ac_ext <<_ACEOF
3841 typedef int PRBool;
3842 #include <hasht.h>
3843 #include <nsslowhash.h>
3844 void f (void) { NSSLOW_Init (); }
3845 _ACEOF
3846 rm -f conftest.$ac_objext
3847 if { (ac_try="$ac_compile"
3848 case "(($ac_try" in
3849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3850 *) ac_try_echo=$ac_try;;
3851 esac
3852 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3853 $as_echo "$ac_try_echo") >&5
3854 (eval "$ac_compile") 2>conftest.er1
3855 ac_status=$?
3856 grep -v '^ *+' conftest.er1 >conftest.err
3857 rm -f conftest.er1
3858 cat conftest.err >&5
3859 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3860 (exit $ac_status); } && {
3861 test -z "$ac_c_werror_flag" ||
3862 test ! -s conftest.err
3863 } && test -s conftest.$ac_objext; then
3864 libc_cv_nss_crypt=yes
3865 else
3866 $as_echo "$as_me: failed program was:" >&5
3867 sed 's/^/| /' conftest.$ac_ext >&5
3869 { { $as_echo "$as_me:$LINENO: error:
3870 cannot find NSS headers with lowlevel hash function interfaces" >&5
3871 $as_echo "$as_me: error:
3872 cannot find NSS headers with lowlevel hash function interfaces" >&2;}
3873 { (exit 1); exit 1; }; }
3876 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3877 old_LIBS="$LIBS"
3878 LIBS="$LIBS -lfreebl3"
3879 cat >conftest.$ac_ext <<_ACEOF
3880 /* confdefs.h. */
3881 _ACEOF
3882 cat confdefs.h >>conftest.$ac_ext
3883 cat >>conftest.$ac_ext <<_ACEOF
3884 /* end confdefs.h. */
3885 typedef int PRBool;
3886 #include <hasht.h>
3887 #include <nsslowhash.h>
3889 main ()
3891 NSSLOW_Init();
3893 return 0;
3895 _ACEOF
3896 rm -f conftest.$ac_objext conftest$ac_exeext
3897 if { (ac_try="$ac_link"
3898 case "(($ac_try" in
3899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3900 *) ac_try_echo=$ac_try;;
3901 esac
3902 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3903 $as_echo "$ac_try_echo") >&5
3904 (eval "$ac_link") 2>conftest.er1
3905 ac_status=$?
3906 grep -v '^ *+' conftest.er1 >conftest.err
3907 rm -f conftest.er1
3908 cat conftest.err >&5
3909 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3910 (exit $ac_status); } && {
3911 test -z "$ac_c_werror_flag" ||
3912 test ! -s conftest.err
3913 } && test -s conftest$ac_exeext && {
3914 test "$cross_compiling" = yes ||
3915 $as_test_x conftest$ac_exeext
3916 }; then
3917 libc_cv_nss_crypt=yes
3918 else
3919 $as_echo "$as_me: failed program was:" >&5
3920 sed 's/^/| /' conftest.$ac_ext >&5
3922 { { $as_echo "$as_me:$LINENO: error:
3923 cannot link program using lowlevel NSS hash functions" >&5
3924 $as_echo "$as_me: error:
3925 cannot link program using lowlevel NSS hash functions" >&2;}
3926 { (exit 1); exit 1; }; }
3929 rm -rf conftest.dSYM
3930 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3931 conftest$ac_exeext conftest.$ac_ext
3932 CFLAGS="$old_CFLAGS"
3933 LIBS="$old_LIBS"
3934 else
3935 libc_cv_nss_crypt=no
3939 # The way shlib-versions is used to generate soversions.mk uses a
3940 # fairly simplistic model for name recognition that can't distinguish
3941 # i486-pc-linux-gnu fully from i486-pc-gnu. So we mutate a $host_os
3942 # of `gnu*' here to be `gnu-gnu*' just so that shlib-versions can
3943 # tell. This doesn't get used much beyond that, so it's fairly safe.
3944 case "$host_os" in
3945 linux*)
3947 gnu*)
3948 host_os=`echo $host_os | sed -e 's/gnu/gnu-gnu/'`
3950 esac
3952 # We keep the original values in `$config_*' and never modify them, so we
3953 # can write them unchanged into config.make. Everything else uses
3954 # $machine, $vendor, and $os, and changes them whenever convenient.
3955 config_machine=$host_cpu config_vendor=$host_vendor config_os=$host_os
3957 # Don't allow vendor == "unknown"
3958 test "$config_vendor" = unknown && config_vendor=
3959 config_os="`echo $config_os | sed 's/^unknown-//'`"
3961 # Some configurations imply other options.
3962 case "$host_os" in
3963 # i586-linuxaout is mangled into i586-pc-linux-gnuaout
3964 linux*ecoff* | linux*aout* | gnu*aout* | gnu*ecoff*)
3966 gnu* | linux* | freebsd* | netbsd* | sysv4* | solaris2* | irix6*)
3967 # These systems (almost) always use the ELF format.
3968 elf=yes
3970 aix*)
3971 # These systems are always xcoff
3972 xcoff=yes
3973 elf=no
3975 esac
3977 # The configure fragment of an add-on port can modify these to supplement
3978 # or override the table in the case statement below. No fragment should
3979 # ever change the config_* variables, however.
3980 machine=$config_machine
3981 vendor=$config_vendor
3982 os=$config_os
3983 base_os=''
3985 # config.guess on some IBM machines says `rs6000' instead of `powerpc'.
3986 # Unify this here.
3987 if test "$machine" = rs6000; then
3988 machine="powerpc"
3991 # Braindead PowerPC box with absolutely no FPU.
3992 case "$machine-$host_os" in
3993 powerpc*-*soft)
3994 with_fp=no
3996 esac
3998 submachine=
4000 # Check whether --with-cpu was given.
4001 if test "${with_cpu+set}" = set; then
4002 withval=$with_cpu; case "$withval" in
4003 yes|'') { { $as_echo "$as_me:$LINENO: error: --with-cpu requires an argument" >&5
4004 $as_echo "$as_me: error: --with-cpu requires an argument" >&2;}
4005 { (exit 1); exit 1; }; } ;;
4006 no) ;;
4007 *) submachine="$withval" ;;
4008 esac
4013 # An add-on can set this when it wants to disable the sanity check below.
4014 libc_config_ok=no
4016 subdirs="$subdirs "
4019 case "$enable_add_ons" in
4020 ''|no) add_ons= ;;
4021 yes|'*')
4022 add_ons=`cd $srcdir && ls -d 2> /dev/null */configure */sysdeps |
4023 sed 's@/[^/]*$@@' | sort | uniq`
4024 add_ons_automatic=yes
4026 *) add_ons=`echo "$enable_add_ons" | sed 's/,/ /g'`
4027 add_ons_automatic=no ;;
4028 esac
4030 configured_add_ons=
4031 add_ons_sfx=
4032 add_ons_pfx=
4033 if test x"$add_ons" != x; then
4034 for f in $add_ons; do
4035 # Some sanity checks
4036 case "$f" in
4037 crypt)
4038 { { $as_echo "$as_me:$LINENO: 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." >&5
4043 $as_echo "$as_me: error:
4044 *** It seems that you're using an old \`crypt' add-on. crypt is now
4045 *** part of glibc and using the old add-on will not work with this
4046 *** release. Start again with fresh sources and without the old
4047 *** \`crypt' add-on." >&2;}
4048 { (exit 1); exit 1; }; }
4050 localedata)
4051 { { $as_echo "$as_me:$LINENO: 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." >&5
4056 $as_echo "$as_me: error:
4057 *** It seems that you're using an old \`localedata' add-on. localedata
4058 *** is now part of glibc and using the old add-on will not work with
4059 *** this release. Start again with fresh sources and without the old
4060 *** \`localedata' add-on." >&2;}
4061 { (exit 1); exit 1; }; }
4063 esac
4064 done
4066 # Now source each add-on's configure fragment.
4067 # The fragments can use $srcdir/$libc_add_on to find themselves,
4068 # and test $add_ons_automatic to see if they were explicitly requested.
4069 # A fragment can clear (or even change) $libc_add_on to affect
4070 # whether it goes into the list to be actually used in the build.
4071 use_add_ons=
4072 for libc_add_on in $add_ons; do
4073 # Test whether such a directory really exists.
4074 # It can be absolute, or relative to $srcdir, or relative to the build dir.
4075 case "$libc_add_on" in
4077 libc_add_on_srcdir=$libc_add_on
4080 test -d "$srcdir/$libc_add_on" || {
4081 if test -d "$libc_add_on"; then
4082 libc_add_on="`pwd`/$libc_add_on"
4083 else
4084 { { $as_echo "$as_me:$LINENO: error: add-on directory \"$libc_add_on\" does not exist" >&5
4085 $as_echo "$as_me: error: add-on directory \"$libc_add_on\" does not exist" >&2;}
4086 { (exit 1); exit 1; }; }
4089 libc_add_on_srcdir=$srcdir/$libc_add_on
4091 esac
4093 libc_add_on_frag=$libc_add_on_srcdir/configure
4094 libc_add_on_canonical=
4095 libc_add_on_config_subdirs=
4096 if test -r "$libc_add_on_frag"; then
4097 { $as_echo "$as_me:$LINENO: running configure fragment for add-on $libc_add_on" >&5
4098 $as_echo "$as_me: running configure fragment for add-on $libc_add_on" >&6;}
4099 libc_add_on_canonical=unknown
4100 libc_add_on_subdirs=
4101 . "$libc_add_on_frag"
4102 test -z "$libc_add_on" || {
4103 configured_add_ons="$configured_add_ons $libc_add_on"
4104 if test "x$libc_add_on_canonical" = xunknown; then
4105 { { $as_echo "$as_me:$LINENO: error: fragment must set \$libc_add_on_canonical" >&5
4106 $as_echo "$as_me: error: fragment must set \$libc_add_on_canonical" >&2;}
4107 { (exit 1); exit 1; }; }
4109 for d in $libc_add_on_subdirs; do
4110 case "$libc_add_on" in
4111 /*) subdir_srcdir="$libc_add_on" ;;
4112 *) subdir_srcdir="\$(..)$libc_add_on" ;;
4113 esac
4114 case "$d" in
4116 d="${libc_add_on_canonical:-$libc_add_on}"
4119 subdir_srcdir="$d"
4122 subdir_srcdir="$subdir_srcdir/$d"
4124 esac
4125 d=`echo "$d" | sed 's@/*$@@;s@^.*/@@'`
4126 add_on_subdirs="$add_on_subdirs $d"
4127 test "$subdir_srcdir" = "\$(..)$d" || config_vars="$config_vars
4128 $d-srcdir = $subdir_srcdir"
4129 done
4130 for d in $libc_add_on_config_subdirs; do
4131 case "$d" in
4132 /*) { { $as_echo "$as_me:$LINENO: error: fragment uses absolute path in \$libc_add_on_config_subdirs" >&5
4133 $as_echo "$as_me: error: fragment uses absolute path in \$libc_add_on_config_subdirs" >&2;}
4134 { (exit 1); exit 1; }; } ;;
4135 esac
4136 if test ! -d "$libc_add_on_srcdir/$d"; then
4137 { { $as_echo "$as_me:$LINENO: error: fragment wants to configure missing directory $d" >&5
4138 $as_echo "$as_me: error: fragment wants to configure missing directory $d" >&2;}
4139 { (exit 1); exit 1; }; }
4141 case "$libc_add_on" in
4142 /*) { { $as_echo "$as_me:$LINENO: error: relative path required for add-on using \$libc_add_on_config_subdirs" >&5
4143 $as_echo "$as_me: error: relative path required for add-on using \$libc_add_on_config_subdirs" >&2;}
4144 { (exit 1); exit 1; }; } ;;
4145 esac
4146 subdirs="$subdirs $libc_add_on/$d"
4147 done
4150 if test -n "$libc_add_on"; then
4151 if frags=`ls -d $libc_add_on_srcdir/sysdeps/*/preconfigure 2> /dev/null`
4152 then
4153 { $as_echo "$as_me:$LINENO: checking add-on $libc_add_on for preconfigure fragments" >&5
4154 $as_echo_n "checking add-on $libc_add_on for preconfigure fragments... " >&6; }
4155 for frag in $frags; do
4156 name=`echo "$frag" | sed 's@/[^/]*$@@;s@^.*/@@'`
4157 echo $ECHO_N "$name $ECHO_C" >&6
4158 . "$frag"
4159 done
4160 { $as_echo "$as_me:$LINENO: result: " >&5
4161 $as_echo "" >&6; }
4163 use_add_ons="$use_add_ons $libc_add_on"
4164 add_ons_pfx="$add_ons_pfx $libc_add_on/"
4165 test -z "$libc_add_on_canonical" ||
4166 add_ons_sfx="$add_ons_sfx /$libc_add_on_canonical"
4168 done
4169 # Use echo to strip excess whitespace.
4170 add_ons="`echo $use_add_ons`"
4177 ### I put this here to prevent those annoying emails from people who cannot
4178 ### read and try to compile glibc on unsupported platforms. --drepper
4180 ### By using the undocumented --enable-hacker-mode option for configure
4181 ### one can skip this test to make the configuration not fail for unsupported
4182 ### platforms.
4184 if test -z "$enable_hacker_mode" && test x"$libc_config_ok" != xyes; then
4185 case "$machine-$host_os" in
4186 *-linux* | *-gnu* | arm*-none* | powerpc-aix4.3.*)
4189 echo "*** The GNU C library is currently not available for this platform."
4190 echo "*** So far nobody cared to port it and if there is no volunteer it"
4191 echo "*** might never happen. So, if you have interest to see glibc on"
4192 echo "*** this platform visit"
4193 echo "*** http://www.gnu.org/software/libc/porting.html"
4194 echo "*** and join the group of porters"
4195 exit 1
4197 esac
4200 # Expand the configuration machine name into a subdirectory by architecture
4201 # type and particular chip. If an add-on configure fragment already set
4202 # base_machine, we don't change it.
4203 test -n "$base_machine" || case "$machine" in
4204 a29k | am29000) base_machine=a29k machine=a29k ;;
4205 c3[012]) base_machine=cx0 machine=cx0/c30 ;;
4206 c4[04]) base_machine=cx0 machine=cx0/c40 ;;
4207 i[34567]86) base_machine=i386 machine=i386/$machine ;;
4208 ia64) base_machine=ia64 machine=ia64 ;;
4209 m88???) base_machine=m88k machine=m88k/$machine ;;
4210 m88k) base_machine=m88k machine=m88k/m88100 ;;
4211 powerpc) base_machine=powerpc machine=powerpc/powerpc32 ;;
4212 powerpc64) base_machine=powerpc machine=powerpc/powerpc64 ;;
4213 s390) base_machine=s390 machine=s390/s390-32 ;;
4214 s390x) base_machine=s390 machine=s390/s390-64 ;;
4215 sh3*) base_machine=sh machine=sh/sh3 ;;
4216 sh4*) base_machine=sh machine=sh/sh4 ;;
4217 sparc | sparcv[67])
4218 base_machine=sparc machine=sparc/sparc32 ;;
4219 sparcv8 | supersparc | hypersparc)
4220 base_machine=sparc machine=sparc/sparc32/sparcv8 ;;
4221 sparcv8plus | sparcv8plusa | sparcv9)
4222 base_machine=sparc machine=sparc/sparc32/sparcv9 ;;
4223 sparcv8plusb | sparcv9b)
4224 base_machine=sparc machine=sparc/sparc32/sparcv9/sparcv9b ;;
4225 sparcv9v)
4226 base_machine=sparc machine=sparc/sparc32/sparcv9/sparcv9v ;;
4227 sparcv9v2)
4228 base_machine=sparc machine=sparc/sparc32/sparcv9/sparcv9v2 ;;
4229 sparc64)
4230 base_machine=sparc machine=sparc/sparc64 ;;
4231 sparc64b)
4232 base_machine=sparc machine=sparc/sparc64/sparcv9b ;;
4233 sparc64v)
4234 base_machine=sparc machine=sparc/sparc64/sparcv9v ;;
4235 sparc64v2)
4236 base_machine=sparc machine=sparc/sparc64/sparcv9v2 ;;
4237 *) base_machine=$machine ;;
4238 esac
4241 if test "$base_machine" = "i386"; then
4242 cat >>confdefs.h <<\_ACEOF
4243 #define USE_REGPARMS 1
4244 _ACEOF
4248 # Compute the list of sysdep directories for this configuration.
4249 # This can take a while to compute.
4250 sysdep_dir=$srcdir/sysdeps
4251 { $as_echo "$as_me:$LINENO: checking sysdep dirs" >&5
4252 $as_echo_n "checking sysdep dirs... " >&6; }
4253 # Make sco3.2v4 become sco3.2.4 and sunos4.1.1_U1 become sunos4.1.1.U1.
4254 os="`echo $os | sed 's/\([0-9A-Z]\)[v_]\([0-9A-Z]\)/\1.\2/g'`"
4256 test "x$base_os" != x || case "$os" in
4257 gnu*)
4258 base_os=mach/hurd ;;
4259 netbsd* | 386bsd* | freebsd* | bsdi*)
4260 base_os=unix/bsd/bsd4.4 ;;
4261 osf* | sunos* | ultrix* | newsos* | dynix* | *bsd*)
4262 base_os=unix/bsd ;;
4263 sysv* | isc* | esix* | sco* | minix* | irix4* | linux*)
4264 base_os=unix/sysv ;;
4265 irix6*)
4266 base_os=unix/sysv/irix6/$os ;;
4267 solaris[2-9]*)
4268 base_os=unix/sysv/sysv4 ;;
4269 hpux*)
4270 base_os=unix/sysv/hpux/$os ;;
4271 aix4.3*)
4272 base_os=unix/sysv/aix/aix4.3 ;;
4273 none)
4274 base_os=standalone ;;
4275 esac
4277 # For sunos4.1.1, try sunos4.1.1, then sunos4.1, then sunos4, then sunos.
4278 tail=$os
4279 ostry=$os
4280 while o=`echo $tail | sed 's/\.[^.]*$//'`; test $o != $tail; do
4281 ostry="$ostry /$o"
4282 tail=$o
4283 done
4284 o=`echo $tail | sed 's/[0-9]*$//'`
4285 if test $o != $tail; then
4286 ostry="$ostry /$o"
4288 # For linux-gnu, try linux-gnu, then linux.
4289 o=`echo $tail | sed 's/-.*$//'`
4290 if test $o != $tail; then
4291 ostry="$ostry /$o"
4294 # For unix/sysv/sysv4, try unix/sysv/sysv4, then unix/sysv, then unix.
4295 base=
4296 tail=$base_os
4297 while b=`echo $tail | sed 's@^\(.*\)/\([^/]*\)$@& \1@'`; test -n "$b"; do
4298 set $b
4299 base="$base /$1"
4300 tail="$2"
4301 done
4303 # For sparc/sparc32, try sparc/sparc32 and then sparc.
4304 mach=
4305 tail=$machine${submachine:+/$submachine}
4306 while m=`echo $tail | sed 's@^\(.*\)/\([^/]*\)$@& \1@'`; test -n "$m"; do
4307 set $m
4308 # Prepend the machine's FPU directory unless --without-fp.
4309 if test "$with_fp" = yes; then
4310 mach="$mach /$1/fpu"
4311 else
4312 mach="$mach /$1/nofpu"
4314 mach="$mach /$1"
4315 tail="$2"
4316 done
4319 # Find what sysdep directories exist.
4320 sysnames_add_ons=
4321 sysnames=
4322 for b in $base ''; do
4323 for m0 in $mach ''; do
4324 for v in /$vendor ''; do
4325 test "$v" = / && continue
4326 for o in /$ostry ''; do
4327 test "$o" = / && continue
4328 for m in $multi_arch_d $mach ''; do
4329 for d in $add_ons_pfx ''; do
4330 for a in $add_ons_sfx ''; do
4331 if test -n "$m0$m0sub$b$v$o$m$msub"; then
4332 try_srcdir="${srcdir}/"
4333 case "$d" in
4334 /*) try_srcdir= ;;
4335 esac
4336 try="${d}sysdeps$m0$m0sub$b$v$o$m$msub$a"
4337 test -n "$enable_debug_configure" &&
4338 echo "$0 DEBUG: try $try" >&2
4339 if test -d "$try_srcdir$try"; then
4340 sysnames="$sysnames $try"
4341 { test -n "$o" || test -n "$b"; } && os_used=t
4342 { test -n "$m" || test -n "$m0"; } && machine_used=t
4343 case x${m0:-$m} in
4344 x*/$submachine) submachine_used=t ;;
4345 esac
4346 if test -n "$d"; then
4347 case "$sysnames_add_ons" in
4348 *" $d "*) ;;
4349 *|'') sysnames_add_ons="$sysnames_add_ons $d" ;;
4350 esac
4354 done
4355 done
4356 done
4357 done
4358 done
4359 done
4360 done
4362 if test -z "$os_used" && test "$os" != none; then
4363 { { $as_echo "$as_me:$LINENO: error: Operating system $os is not supported." >&5
4364 $as_echo "$as_me: error: Operating system $os is not supported." >&2;}
4365 { (exit 1); exit 1; }; }
4367 if test -z "$machine_used" && test "$machine" != none; then
4368 { { $as_echo "$as_me:$LINENO: error: The $machine is not supported." >&5
4369 $as_echo "$as_me: error: The $machine is not supported." >&2;}
4370 { (exit 1); exit 1; }; }
4372 if test -z "$submachine_used" && test -n "$submachine"; then
4373 { { $as_echo "$as_me:$LINENO: error: The $submachine subspecies of $host_cpu is not supported." >&5
4374 $as_echo "$as_me: error: The $submachine subspecies of $host_cpu is not supported." >&2;}
4375 { (exit 1); exit 1; }; }
4379 # We have now validated the configuration.
4382 # If using ELF, look for an `elf' subdirectory of each machine directory.
4383 # We prepend these rather than inserting them whereever the machine appears
4384 # because things specified by the machine's ELF ABI should override
4385 # OS-specific things, and should always be the same for any OS on the
4386 # machine (otherwise what's the point of an ABI?).
4387 if test "$elf" = yes; then
4388 elf_dirs=
4389 for d in $add_ons_pfx ''; do
4390 for m in $mach; do
4391 if test -d $srcdir/${d}sysdeps$m/elf; then
4392 elf_dirs="$elf_dirs ${d}sysdeps$m/elf"
4394 done
4395 done
4396 sysnames="`echo $elf_dirs | sed -e 's,//,/,g'` $sysnames"
4400 # Expand the list of system names into a full list of directories
4401 # from each element's parent name and Implies file (if present).
4402 set $sysnames
4403 names=
4404 while test $# -gt 0; do
4405 name=$1
4406 shift
4408 case " $names " in *" $name "*)
4409 # Already in the list.
4410 continue
4411 esac
4413 # Report each name as we discover it, so there is no long pause in output.
4414 echo $ECHO_N "$name $ECHO_C" >&6
4416 name_base=`echo $name | sed -e 's@\(.*sysdeps\)/.*@\1@'`
4418 case $name in
4419 /*) xsrcdir= ;;
4420 *) xsrcdir=$srcdir/ ;;
4421 esac
4422 test -n "$enable_debug_configure" &&
4423 echo "DEBUG: name/Implies $xsrcdir$name/Implies" >&2
4425 if test -f $xsrcdir$name/Implies; then
4426 # Collect more names from the `Implies' file (removing comments).
4427 implied_candidate="`sed 's/#.*$//' < $xsrcdir$name/Implies`"
4428 implied=
4429 for x in $implied_candidate; do
4430 found=no
4431 if test -d $xsrcdir$name_base/$x; then
4432 implied="$implied $name_base/$x";
4433 found=yes
4435 for d in $add_ons_pfx ''; do
4436 try="${d}sysdeps/$x"
4437 case $d in
4438 /*) try_srcdir= ;;
4439 *) try_srcdir=$srcdir/ ;;
4440 esac
4441 test -n "$enable_debug_configure" &&
4442 echo "DEBUG: $name implied $x try($d) {$try_srcdir}$try" >&2
4443 if test $try != $xsrcdir$name_base/$x && test -d $try_srcdir$try;
4444 then
4445 implied="$implied $try"
4446 found=yes
4447 case "$sysnames_add_ons" in
4448 *" $d "*) ;;
4449 *|'') sysnames_add_ons="$sysnames_add_ons $d" ;;
4450 esac
4452 done
4453 if test $found = no; then
4454 { $as_echo "$as_me:$LINENO: WARNING: $name/Implies specifies nonexistent $x" >&5
4455 $as_echo "$as_me: WARNING: $name/Implies specifies nonexistent $x" >&2;}
4457 done
4458 else
4459 implied=
4462 # Add NAME to the list of names.
4463 names="$names $name"
4465 # Find the parent of NAME, using the empty string if it has none.
4466 parent="`echo $name | sed -n -e 's=/[^/]*$==' -e '/sysdeps$/q' -e p`"
4468 # Add the names implied by NAME, and NAME's parent (if it has one), to
4469 # the list of names to be processed (the argument list). We prepend the
4470 # implied names to the list and append the parent. We want implied
4471 # directories to come before further directories inferred from the
4472 # configuration components; this ensures that for sysv4, unix/common
4473 # (implied by unix/sysv/sysv4) comes before unix/sysv (in ostry (here $*)
4474 # after sysv4).
4475 sysnames="`echo $implied $* $parent`"
4476 test -n "$sysnames" && set $sysnames
4477 done
4479 # Add the default directories.
4480 default_sysnames=sysdeps/generic
4481 if test "$elf" = yes; then
4482 default_sysnames="sysdeps/generic/elf $default_sysnames"
4484 sysnames="$names $default_sysnames"
4486 # The other names were emitted during the scan.
4487 { $as_echo "$as_me:$LINENO: result: $default_sysnames" >&5
4488 $as_echo "$default_sysnames" >&6; }
4490 # Collect the list of add-ons that supply partial sysdeps trees.
4491 sysdeps_add_ons=
4492 for add_on in $add_ons; do
4493 case "$add_on" in
4494 /*) xsrcdir= ;;
4495 *) xsrcdir="$srcdir/" ;;
4496 esac
4498 test -d "$xsrcdir$add_on/sysdeps" || {
4499 case "$configured_add_ons " in
4500 *" $add_on "*) ;;
4501 *|'')
4502 { { $as_echo "$as_me:$LINENO: error: add-on $add_on has no configure fragment or sysdeps tree" >&5
4503 $as_echo "$as_me: error: add-on $add_on has no configure fragment or sysdeps tree" >&2;}
4504 { (exit 1); exit 1; }; }
4506 esac
4507 continue
4510 sysdeps_add_ons="$sysdeps_add_ons $add_on"
4511 case "$sysnames_add_ons" in
4512 *" $add_on/ "*) ;;
4513 *|'')
4514 { $as_echo "$as_me:$LINENO: WARNING: add-on $add_on contributed no sysdeps directories" >&5
4515 $as_echo "$as_me: WARNING: add-on $add_on contributed no sysdeps directories" >&2;}
4516 continue ;;
4517 esac
4519 found=no
4520 for d in $sysnames; do
4521 case "$d" in
4522 $add_on/sysdeps/*) ;;
4523 *) continue ;;
4524 esac
4525 (cd "$xsrcdir$d" && for f in *[!~]; do
4526 case "$f" in
4527 sys|bits)
4528 for ff in $f/*.h; do
4529 test -d "$ff" || { test -e "$ff" && exit 88; }
4530 done
4533 test -d "$f" || { test -e "$f" && exit 88; }
4535 esac
4536 done)
4537 if test $? -eq 88; then
4538 found=yes
4539 break
4541 done
4542 if test $found = no; then
4543 { $as_echo "$as_me:$LINENO: WARNING: add-on $add_on contributed no useful sysdeps directories" >&5
4544 $as_echo "$as_me: WARNING: add-on $add_on contributed no useful sysdeps directories" >&2;}
4546 done
4550 ### Locate tools.
4552 # Find a good install program. We prefer a C program (faster),
4553 # so one script is as good as another. But avoid the broken or
4554 # incompatible versions:
4555 # SysV /etc/install, /usr/sbin/install
4556 # SunOS /usr/etc/install
4557 # IRIX /sbin/install
4558 # AIX /bin/install
4559 # AmigaOS /C/install, which installs bootblocks on floppy discs
4560 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4561 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4562 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4563 # OS/2's system install, which has a completely different semantic
4564 # ./install, which can be erroneously created by make from ./install.sh.
4565 # Reject install programs that cannot install multiple files.
4566 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4567 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4568 if test -z "$INSTALL"; then
4569 if test "${ac_cv_path_install+set}" = set; then
4570 $as_echo_n "(cached) " >&6
4571 else
4572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4573 for as_dir in $PATH
4575 IFS=$as_save_IFS
4576 test -z "$as_dir" && as_dir=.
4577 # Account for people who put trailing slashes in PATH elements.
4578 case $as_dir/ in
4579 ./ | .// | /cC/* | \
4580 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4581 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4582 /usr/ucb/* ) ;;
4584 # OSF1 and SCO ODT 3.0 have their own names for install.
4585 # Don't use installbsd from OSF since it installs stuff as root
4586 # by default.
4587 for ac_prog in ginstall scoinst install; do
4588 for ac_exec_ext in '' $ac_executable_extensions; do
4589 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4590 if test $ac_prog = install &&
4591 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4592 # AIX install. It has an incompatible calling convention.
4594 elif test $ac_prog = install &&
4595 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4596 # program-specific install script used by HP pwplus--don't use.
4598 else
4599 rm -rf conftest.one conftest.two conftest.dir
4600 echo one > conftest.one
4601 echo two > conftest.two
4602 mkdir conftest.dir
4603 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4604 test -s conftest.one && test -s conftest.two &&
4605 test -s conftest.dir/conftest.one &&
4606 test -s conftest.dir/conftest.two
4607 then
4608 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4609 break 3
4613 done
4614 done
4616 esac
4618 done
4619 IFS=$as_save_IFS
4621 rm -rf conftest.one conftest.two conftest.dir
4624 if test "${ac_cv_path_install+set}" = set; then
4625 INSTALL=$ac_cv_path_install
4626 else
4627 # As a last resort, use the slow shell script. Don't cache a
4628 # value for INSTALL within a source directory, because that will
4629 # break other packages using the cache if that directory is
4630 # removed, or if the value is a relative name.
4631 INSTALL=$ac_install_sh
4634 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
4635 $as_echo "$INSTALL" >&6; }
4637 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4638 # It thinks the first close brace ends the variable substitution.
4639 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4641 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4643 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4645 if test "$INSTALL" = "${srcdir}/scripts/install-sh -c"; then
4646 # The makefiles need to use a different form to find it in $srcdir.
4647 INSTALL='\$(..)./scripts/install-sh -c'
4649 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
4650 $as_echo_n "checking whether ln -s works... " >&6; }
4651 LN_S=$as_ln_s
4652 if test "$LN_S" = "ln -s"; then
4653 { $as_echo "$as_me:$LINENO: result: yes" >&5
4654 $as_echo "yes" >&6; }
4655 else
4656 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4657 $as_echo "no, using $LN_S" >&6; }
4661 # Was a --with-binutils option given?
4662 if test -n "$path_binutils"; then
4663 # Make absolute; ensure a single trailing slash.
4664 path_binutils=`(cd $path_binutils; pwd) | sed 's%/*$%/%'`
4665 CC="$CC -B$path_binutils"
4667 AS=`$CC -print-prog-name=as`
4668 LD=`$CC -print-prog-name=ld`
4669 AR=`$CC -print-prog-name=ar`
4671 OBJDUMP=`$CC -print-prog-name=objdump`
4674 # ranlib has to be treated a bit differently since it might not exist at all.
4675 ac_ranlib=`$CC -print-prog-name=ranlib`
4676 if test "x$ac_ranlib" = xranlib; then
4677 # This extra check has to happen since gcc simply echos the parameter in
4678 # case it cannot find the value in its own directories.
4679 if test -n "$ac_tool_prefix"; then
4680 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4681 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4682 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4683 $as_echo_n "checking for $ac_word... " >&6; }
4684 if test "${ac_cv_prog_RANLIB+set}" = set; then
4685 $as_echo_n "(cached) " >&6
4686 else
4687 if test -n "$RANLIB"; then
4688 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4689 else
4690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4691 for as_dir in $PATH
4693 IFS=$as_save_IFS
4694 test -z "$as_dir" && as_dir=.
4695 for ac_exec_ext in '' $ac_executable_extensions; do
4696 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4697 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4698 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4699 break 2
4701 done
4702 done
4703 IFS=$as_save_IFS
4707 RANLIB=$ac_cv_prog_RANLIB
4708 if test -n "$RANLIB"; then
4709 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
4710 $as_echo "$RANLIB" >&6; }
4711 else
4712 { $as_echo "$as_me:$LINENO: result: no" >&5
4713 $as_echo "no" >&6; }
4718 if test -z "$ac_cv_prog_RANLIB"; then
4719 ac_ct_RANLIB=$RANLIB
4720 # Extract the first word of "ranlib", so it can be a program name with args.
4721 set dummy ranlib; ac_word=$2
4722 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4723 $as_echo_n "checking for $ac_word... " >&6; }
4724 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4725 $as_echo_n "(cached) " >&6
4726 else
4727 if test -n "$ac_ct_RANLIB"; then
4728 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4729 else
4730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4731 for as_dir in $PATH
4733 IFS=$as_save_IFS
4734 test -z "$as_dir" && as_dir=.
4735 for ac_exec_ext in '' $ac_executable_extensions; do
4736 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4737 ac_cv_prog_ac_ct_RANLIB="ranlib"
4738 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4739 break 2
4741 done
4742 done
4743 IFS=$as_save_IFS
4747 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4748 if test -n "$ac_ct_RANLIB"; then
4749 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4750 $as_echo "$ac_ct_RANLIB" >&6; }
4751 else
4752 { $as_echo "$as_me:$LINENO: result: no" >&5
4753 $as_echo "no" >&6; }
4756 if test "x$ac_ct_RANLIB" = x; then
4757 RANLIB=":"
4758 else
4759 case $cross_compiling:$ac_tool_warned in
4760 yes:)
4761 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4762 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4763 ac_tool_warned=yes ;;
4764 esac
4765 RANLIB=$ac_ct_RANLIB
4767 else
4768 RANLIB="$ac_cv_prog_RANLIB"
4771 else
4772 RANLIB=$ac_ranlib
4776 # Determine whether we are using GNU binutils.
4777 { $as_echo "$as_me:$LINENO: checking whether $AS is GNU as" >&5
4778 $as_echo_n "checking whether $AS is GNU as... " >&6; }
4779 if test "${libc_cv_prog_as_gnu+set}" = set; then
4780 $as_echo_n "(cached) " >&6
4781 else
4782 # Most GNU programs take a -v and spit out some text including
4783 # the word 'GNU'. Some try to read stdin, so give them /dev/null.
4784 if $AS -o conftest -v </dev/null 2>&1 | grep GNU > /dev/null 2>&1; then
4785 libc_cv_prog_as_gnu=yes
4786 else
4787 libc_cv_prog_as_gnu=no
4789 rm -fr contest*
4791 { $as_echo "$as_me:$LINENO: result: $libc_cv_prog_as_gnu" >&5
4792 $as_echo "$libc_cv_prog_as_gnu" >&6; }
4793 rm -f a.out
4794 gnu_as=$libc_cv_prog_as_gnu
4796 { $as_echo "$as_me:$LINENO: checking whether $LD is GNU ld" >&5
4797 $as_echo_n "checking whether $LD is GNU ld... " >&6; }
4798 if test "${libc_cv_prog_ld_gnu+set}" = set; then
4799 $as_echo_n "(cached) " >&6
4800 else
4801 # Most GNU programs take a -v and spit out some text including
4802 # the word 'GNU'. Some try to read stdin, so give them /dev/null.
4803 if $LD -o conftest -v </dev/null 2>&1 | grep GNU > /dev/null 2>&1; then
4804 libc_cv_prog_ld_gnu=yes
4805 else
4806 libc_cv_prog_ld_gnu=no
4808 rm -fr contest*
4810 { $as_echo "$as_me:$LINENO: result: $libc_cv_prog_ld_gnu" >&5
4811 $as_echo "$libc_cv_prog_ld_gnu" >&6; }
4812 gnu_ld=$libc_cv_prog_ld_gnu
4815 # Accept binutils 2.13 or newer.
4816 for ac_prog in $AS
4818 # Extract the first word of "$ac_prog", so it can be a program name with args.
4819 set dummy $ac_prog; ac_word=$2
4820 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4821 $as_echo_n "checking for $ac_word... " >&6; }
4822 if test "${ac_cv_prog_AS+set}" = set; then
4823 $as_echo_n "(cached) " >&6
4824 else
4825 if test -n "$AS"; then
4826 ac_cv_prog_AS="$AS" # Let the user override the test.
4827 else
4828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4829 for as_dir in $PATH
4831 IFS=$as_save_IFS
4832 test -z "$as_dir" && as_dir=.
4833 for ac_exec_ext in '' $ac_executable_extensions; do
4834 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4835 ac_cv_prog_AS="$ac_prog"
4836 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4837 break 2
4839 done
4840 done
4841 IFS=$as_save_IFS
4845 AS=$ac_cv_prog_AS
4846 if test -n "$AS"; then
4847 { $as_echo "$as_me:$LINENO: result: $AS" >&5
4848 $as_echo "$AS" >&6; }
4849 else
4850 { $as_echo "$as_me:$LINENO: result: no" >&5
4851 $as_echo "no" >&6; }
4855 test -n "$AS" && break
4856 done
4858 if test -z "$AS"; then
4859 ac_verc_fail=yes
4860 else
4861 # Found it, now check the version.
4862 { $as_echo "$as_me:$LINENO: checking version of $AS" >&5
4863 $as_echo_n "checking version of $AS... " >&6; }
4864 ac_prog_version=`$AS --version 2>&1 | sed -n 's/^.*GNU assembler.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
4865 case $ac_prog_version in
4866 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
4867 2.1[3-9]*|2.1[0-9][0-9]*|2.[2-9][0-9]*|[3-9].*|[1-9][0-9]*)
4868 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
4869 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
4871 esac
4872 { $as_echo "$as_me:$LINENO: result: $ac_prog_version" >&5
4873 $as_echo "$ac_prog_version" >&6; }
4875 if test $ac_verc_fail = yes; then
4876 AS=: critic_missing="$critic_missing as"
4879 for ac_prog in $LD
4881 # Extract the first word of "$ac_prog", so it can be a program name with args.
4882 set dummy $ac_prog; ac_word=$2
4883 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4884 $as_echo_n "checking for $ac_word... " >&6; }
4885 if test "${ac_cv_prog_LD+set}" = set; then
4886 $as_echo_n "(cached) " >&6
4887 else
4888 if test -n "$LD"; then
4889 ac_cv_prog_LD="$LD" # Let the user override the test.
4890 else
4891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4892 for as_dir in $PATH
4894 IFS=$as_save_IFS
4895 test -z "$as_dir" && as_dir=.
4896 for ac_exec_ext in '' $ac_executable_extensions; do
4897 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4898 ac_cv_prog_LD="$ac_prog"
4899 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4900 break 2
4902 done
4903 done
4904 IFS=$as_save_IFS
4908 LD=$ac_cv_prog_LD
4909 if test -n "$LD"; then
4910 { $as_echo "$as_me:$LINENO: result: $LD" >&5
4911 $as_echo "$LD" >&6; }
4912 else
4913 { $as_echo "$as_me:$LINENO: result: no" >&5
4914 $as_echo "no" >&6; }
4918 test -n "$LD" && break
4919 done
4921 if test -z "$LD"; then
4922 ac_verc_fail=yes
4923 else
4924 # Found it, now check the version.
4925 { $as_echo "$as_me:$LINENO: checking version of $LD" >&5
4926 $as_echo_n "checking version of $LD... " >&6; }
4927 ac_prog_version=`$LD --version 2>&1 | sed -n 's/^.*GNU ld.* \([0-9][0-9]*\.[0-9.]*\).*$/\1/p'`
4928 case $ac_prog_version in
4929 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
4930 2.1[3-9]*|2.1[0-9][0-9]*|2.[2-9][0-9]*|[3-9].*|[1-9][0-9]*)
4931 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
4932 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
4934 esac
4935 { $as_echo "$as_me:$LINENO: result: $ac_prog_version" >&5
4936 $as_echo "$ac_prog_version" >&6; }
4938 if test $ac_verc_fail = yes; then
4939 LD=: critic_missing="$critic_missing ld"
4943 # We need the physical current working directory. We cannot use the
4944 # "pwd -P" shell builtin since that's not portable. Instead we try to
4945 # find a pwd binary. Note that assigning to the PWD environment
4946 # variable might have some interesting side effects, so we don't do
4947 # that.
4948 # Extract the first word of "pwd", so it can be a program name with args.
4949 set dummy pwd; ac_word=$2
4950 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4951 $as_echo_n "checking for $ac_word... " >&6; }
4952 if test "${ac_cv_path_PWD_P+set}" = set; then
4953 $as_echo_n "(cached) " >&6
4954 else
4955 case $PWD_P in
4956 [\\/]* | ?:[\\/]*)
4957 ac_cv_path_PWD_P="$PWD_P" # Let the user override the test with a path.
4960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4961 for as_dir in $PATH
4963 IFS=$as_save_IFS
4964 test -z "$as_dir" && as_dir=.
4965 for ac_exec_ext in '' $ac_executable_extensions; do
4966 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4967 ac_cv_path_PWD_P="$as_dir/$ac_word$ac_exec_ext"
4968 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4969 break 2
4971 done
4972 done
4973 IFS=$as_save_IFS
4975 test -z "$ac_cv_path_PWD_P" && ac_cv_path_PWD_P="no"
4977 esac
4979 PWD_P=$ac_cv_path_PWD_P
4980 if test -n "$PWD_P"; then
4981 { $as_echo "$as_me:$LINENO: result: $PWD_P" >&5
4982 $as_echo "$PWD_P" >&6; }
4983 else
4984 { $as_echo "$as_me:$LINENO: result: no" >&5
4985 $as_echo "no" >&6; }
4989 if test "$PWD_P" = no; then
4990 { { $as_echo "$as_me:$LINENO: error: *** A pwd binary could not be found." >&5
4991 $as_echo "$as_me: error: *** A pwd binary could not be found." >&2;}
4992 { (exit 1); exit 1; }; }
4995 # These programs are version sensitive.
4997 for ac_prog in ${ac_tool_prefix}gcc ${ac_tool_prefix}cc
4999 # Extract the first word of "$ac_prog", so it can be a program name with args.
5000 set dummy $ac_prog; ac_word=$2
5001 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5002 $as_echo_n "checking for $ac_word... " >&6; }
5003 if test "${ac_cv_prog_CC+set}" = set; then
5004 $as_echo_n "(cached) " >&6
5005 else
5006 if test -n "$CC"; then
5007 ac_cv_prog_CC="$CC" # Let the user override the test.
5008 else
5009 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5010 for as_dir in $PATH
5012 IFS=$as_save_IFS
5013 test -z "$as_dir" && as_dir=.
5014 for ac_exec_ext in '' $ac_executable_extensions; do
5015 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5016 ac_cv_prog_CC="$ac_prog"
5017 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5018 break 2
5020 done
5021 done
5022 IFS=$as_save_IFS
5026 CC=$ac_cv_prog_CC
5027 if test -n "$CC"; then
5028 { $as_echo "$as_me:$LINENO: result: $CC" >&5
5029 $as_echo "$CC" >&6; }
5030 else
5031 { $as_echo "$as_me:$LINENO: result: no" >&5
5032 $as_echo "no" >&6; }
5036 test -n "$CC" && break
5037 done
5039 if test -z "$CC"; then
5040 ac_verc_fail=yes
5041 else
5042 # Found it, now check the version.
5043 { $as_echo "$as_me:$LINENO: checking version of $CC" >&5
5044 $as_echo_n "checking version of $CC... " >&6; }
5045 ac_prog_version=`$CC -v 2>&1 | sed -n 's/^.*version \([egcygnustpi-]*[0-9.]*\).*$/\1/p'`
5046 case $ac_prog_version in
5047 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
5048 3.4* | 4.[0-9]* )
5049 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
5050 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
5052 esac
5053 { $as_echo "$as_me:$LINENO: result: $ac_prog_version" >&5
5054 $as_echo "$ac_prog_version" >&6; }
5056 if test $ac_verc_fail = yes; then
5057 critic_missing="$critic_missing gcc"
5060 for ac_prog in gnumake gmake make
5062 # Extract the first word of "$ac_prog", so it can be a program name with args.
5063 set dummy $ac_prog; ac_word=$2
5064 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5065 $as_echo_n "checking for $ac_word... " >&6; }
5066 if test "${ac_cv_prog_MAKE+set}" = set; then
5067 $as_echo_n "(cached) " >&6
5068 else
5069 if test -n "$MAKE"; then
5070 ac_cv_prog_MAKE="$MAKE" # Let the user override the test.
5071 else
5072 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5073 for as_dir in $PATH
5075 IFS=$as_save_IFS
5076 test -z "$as_dir" && as_dir=.
5077 for ac_exec_ext in '' $ac_executable_extensions; do
5078 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5079 ac_cv_prog_MAKE="$ac_prog"
5080 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5081 break 2
5083 done
5084 done
5085 IFS=$as_save_IFS
5089 MAKE=$ac_cv_prog_MAKE
5090 if test -n "$MAKE"; then
5091 { $as_echo "$as_me:$LINENO: result: $MAKE" >&5
5092 $as_echo "$MAKE" >&6; }
5093 else
5094 { $as_echo "$as_me:$LINENO: result: no" >&5
5095 $as_echo "no" >&6; }
5099 test -n "$MAKE" && break
5100 done
5102 if test -z "$MAKE"; then
5103 ac_verc_fail=yes
5104 else
5105 # Found it, now check the version.
5106 { $as_echo "$as_me:$LINENO: checking version of $MAKE" >&5
5107 $as_echo_n "checking version of $MAKE... " >&6; }
5108 ac_prog_version=`$MAKE --version 2>&1 | sed -n 's/^.*GNU Make[^0-9]*\([0-9][0-9.]*\).*$/\1/p'`
5109 case $ac_prog_version in
5110 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
5111 3.79* | 3.[89]*)
5112 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
5113 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
5115 esac
5116 { $as_echo "$as_me:$LINENO: result: $ac_prog_version" >&5
5117 $as_echo "$ac_prog_version" >&6; }
5119 if test $ac_verc_fail = yes; then
5120 critic_missing="$critic_missing make"
5124 for ac_prog in gnumsgfmt gmsgfmt msgfmt
5126 # Extract the first word of "$ac_prog", so it can be a program name with args.
5127 set dummy $ac_prog; ac_word=$2
5128 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5129 $as_echo_n "checking for $ac_word... " >&6; }
5130 if test "${ac_cv_prog_MSGFMT+set}" = set; then
5131 $as_echo_n "(cached) " >&6
5132 else
5133 if test -n "$MSGFMT"; then
5134 ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
5135 else
5136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5137 for as_dir in $PATH
5139 IFS=$as_save_IFS
5140 test -z "$as_dir" && as_dir=.
5141 for ac_exec_ext in '' $ac_executable_extensions; do
5142 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5143 ac_cv_prog_MSGFMT="$ac_prog"
5144 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5145 break 2
5147 done
5148 done
5149 IFS=$as_save_IFS
5153 MSGFMT=$ac_cv_prog_MSGFMT
5154 if test -n "$MSGFMT"; then
5155 { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5
5156 $as_echo "$MSGFMT" >&6; }
5157 else
5158 { $as_echo "$as_me:$LINENO: result: no" >&5
5159 $as_echo "no" >&6; }
5163 test -n "$MSGFMT" && break
5164 done
5166 if test -z "$MSGFMT"; then
5167 ac_verc_fail=yes
5168 else
5169 # Found it, now check the version.
5170 { $as_echo "$as_me:$LINENO: checking version of $MSGFMT" >&5
5171 $as_echo_n "checking version of $MSGFMT... " >&6; }
5172 ac_prog_version=`$MSGFMT --version 2>&1 | sed -n 's/^.*GNU gettext.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
5173 case $ac_prog_version in
5174 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
5175 0.10.3[6-9]* | 0.10.[4-9][0-9]* | 0.1[1-9]* | 0.[2-9][0-9]* | [1-9].*)
5176 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
5177 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
5179 esac
5180 { $as_echo "$as_me:$LINENO: result: $ac_prog_version" >&5
5181 $as_echo "$ac_prog_version" >&6; }
5183 if test $ac_verc_fail = yes; then
5184 MSGFMT=: aux_missing="$aux_missing msgfmt"
5187 for ac_prog in makeinfo
5189 # Extract the first word of "$ac_prog", so it can be a program name with args.
5190 set dummy $ac_prog; ac_word=$2
5191 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5192 $as_echo_n "checking for $ac_word... " >&6; }
5193 if test "${ac_cv_prog_MAKEINFO+set}" = set; then
5194 $as_echo_n "(cached) " >&6
5195 else
5196 if test -n "$MAKEINFO"; then
5197 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
5198 else
5199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5200 for as_dir in $PATH
5202 IFS=$as_save_IFS
5203 test -z "$as_dir" && as_dir=.
5204 for ac_exec_ext in '' $ac_executable_extensions; do
5205 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5206 ac_cv_prog_MAKEINFO="$ac_prog"
5207 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5208 break 2
5210 done
5211 done
5212 IFS=$as_save_IFS
5216 MAKEINFO=$ac_cv_prog_MAKEINFO
5217 if test -n "$MAKEINFO"; then
5218 { $as_echo "$as_me:$LINENO: result: $MAKEINFO" >&5
5219 $as_echo "$MAKEINFO" >&6; }
5220 else
5221 { $as_echo "$as_me:$LINENO: result: no" >&5
5222 $as_echo "no" >&6; }
5226 test -n "$MAKEINFO" && break
5227 done
5229 if test -z "$MAKEINFO"; then
5230 ac_verc_fail=yes
5231 else
5232 # Found it, now check the version.
5233 { $as_echo "$as_me:$LINENO: checking version of $MAKEINFO" >&5
5234 $as_echo_n "checking version of $MAKEINFO... " >&6; }
5235 ac_prog_version=`$MAKEINFO --version 2>&1 | sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
5236 case $ac_prog_version in
5237 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
5238 4.*)
5239 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
5240 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
5242 esac
5243 { $as_echo "$as_me:$LINENO: result: $ac_prog_version" >&5
5244 $as_echo "$ac_prog_version" >&6; }
5246 if test $ac_verc_fail = yes; then
5247 MAKEINFO=: aux_missing="$aux_missing makeinfo"
5250 for ac_prog in sed
5252 # Extract the first word of "$ac_prog", so it can be a program name with args.
5253 set dummy $ac_prog; ac_word=$2
5254 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5255 $as_echo_n "checking for $ac_word... " >&6; }
5256 if test "${ac_cv_prog_SED+set}" = set; then
5257 $as_echo_n "(cached) " >&6
5258 else
5259 if test -n "$SED"; then
5260 ac_cv_prog_SED="$SED" # Let the user override the test.
5261 else
5262 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5263 for as_dir in $PATH
5265 IFS=$as_save_IFS
5266 test -z "$as_dir" && as_dir=.
5267 for ac_exec_ext in '' $ac_executable_extensions; do
5268 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5269 ac_cv_prog_SED="$ac_prog"
5270 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5271 break 2
5273 done
5274 done
5275 IFS=$as_save_IFS
5279 SED=$ac_cv_prog_SED
5280 if test -n "$SED"; then
5281 { $as_echo "$as_me:$LINENO: result: $SED" >&5
5282 $as_echo "$SED" >&6; }
5283 else
5284 { $as_echo "$as_me:$LINENO: result: no" >&5
5285 $as_echo "no" >&6; }
5289 test -n "$SED" && break
5290 done
5292 if test -z "$SED"; then
5293 ac_verc_fail=yes
5294 else
5295 # Found it, now check the version.
5296 { $as_echo "$as_me:$LINENO: checking version of $SED" >&5
5297 $as_echo_n "checking version of $SED... " >&6; }
5298 ac_prog_version=`$SED --version 2>&1 | sed -n 's/^.*GNU sed version \([0-9]*\.[0-9.]*\).*$/\1/p'`
5299 case $ac_prog_version in
5300 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
5301 3.0[2-9]*|3.[1-9]*|[4-9]*)
5302 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
5303 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
5305 esac
5306 { $as_echo "$as_me:$LINENO: result: $ac_prog_version" >&5
5307 $as_echo "$ac_prog_version" >&6; }
5309 if test $ac_verc_fail = yes; then
5310 SED=: aux_missing="$aux_missing sed"
5314 for ac_prog in autoconf
5316 # Extract the first word of "$ac_prog", so it can be a program name with args.
5317 set dummy $ac_prog; ac_word=$2
5318 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5319 $as_echo_n "checking for $ac_word... " >&6; }
5320 if test "${ac_cv_prog_AUTOCONF+set}" = set; then
5321 $as_echo_n "(cached) " >&6
5322 else
5323 if test -n "$AUTOCONF"; then
5324 ac_cv_prog_AUTOCONF="$AUTOCONF" # Let the user override the test.
5325 else
5326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5327 for as_dir in $PATH
5329 IFS=$as_save_IFS
5330 test -z "$as_dir" && as_dir=.
5331 for ac_exec_ext in '' $ac_executable_extensions; do
5332 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5333 ac_cv_prog_AUTOCONF="$ac_prog"
5334 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5335 break 2
5337 done
5338 done
5339 IFS=$as_save_IFS
5343 AUTOCONF=$ac_cv_prog_AUTOCONF
5344 if test -n "$AUTOCONF"; then
5345 { $as_echo "$as_me:$LINENO: result: $AUTOCONF" >&5
5346 $as_echo "$AUTOCONF" >&6; }
5347 else
5348 { $as_echo "$as_me:$LINENO: result: no" >&5
5349 $as_echo "no" >&6; }
5353 test -n "$AUTOCONF" && break
5354 done
5355 test -n "$AUTOCONF" || AUTOCONF="no"
5357 case "x$AUTOCONF" in
5358 xno|x|x:) AUTOCONF=no ;;
5360 { $as_echo "$as_me:$LINENO: checking whether $AUTOCONF${ACFLAGS:+ }$ACFLAGS works" >&5
5361 $as_echo_n "checking whether $AUTOCONF${ACFLAGS:+ }$ACFLAGS works... " >&6; }
5362 if test "${libc_cv_autoconf_works+set}" = set; then
5363 $as_echo_n "(cached) " >&6
5364 else
5365 if (cd $srcdir; $AUTOCONF $ACFLAGS configure.in > /dev/null 2>&1); then
5366 libc_cv_autoconf_works=yes
5367 else
5368 libc_cv_autoconf_works=no
5371 { $as_echo "$as_me:$LINENO: result: $libc_cv_autoconf_works" >&5
5372 $as_echo "$libc_cv_autoconf_works" >&6; }
5373 test $libc_cv_autoconf_works = yes || AUTOCONF=no
5375 esac
5376 if test "x$with_cvs" = xyes && test "x$AUTOCONF" = xno; then
5377 # If --without-cvs they probably won't change configure.in, so no complaints.
5378 aux_missing="$aux_missing autoconf"
5381 test -n "$critic_missing" && { { $as_echo "$as_me:$LINENO: error:
5382 *** These critical programs are missing or too old:$critic_missing
5383 *** Check the INSTALL file for required versions." >&5
5384 $as_echo "$as_me: error:
5385 *** These critical programs are missing or too old:$critic_missing
5386 *** Check the INSTALL file for required versions." >&2;}
5387 { (exit 1); exit 1; }; }
5389 test -n "$aux_missing" && { $as_echo "$as_me:$LINENO: WARNING:
5390 *** These auxiliary programs are missing or incompatible versions:$aux_missing
5391 *** some features will be disabled.
5392 *** Check the INSTALL file for required versions." >&5
5393 $as_echo "$as_me: WARNING:
5394 *** These auxiliary programs are missing or incompatible versions:$aux_missing
5395 *** some features will be disabled.
5396 *** Check the INSTALL file for required versions." >&2;}
5398 # if using special system headers, find out the compiler's sekrit
5399 # header directory and add that to the list. NOTE: Only does the right
5400 # thing on a system that doesn't need fixincludes. (Not presently a problem.)
5401 if test -n "$sysheaders"; then
5402 SYSINCLUDES=-nostdinc
5403 for d in include include-fixed; do
5404 i=`$CC -print-file-name="$d"` && test "x$i" != x && test "x$i" != "x$d" &&
5405 SYSINCLUDES="$SYSINCLUDES -isystem $i"
5406 done
5407 SYSINCLUDES="$SYSINCLUDES \
5408 -isystem `echo $sysheaders | sed 's/:/ -isystem /g'`"
5409 if test -n "$CXX"; then
5410 cxxversion=`$CXX -dumpversion 2>&5` &&
5411 cxxmachine=`$CXX -dumpmachine 2>&5` &&
5412 cxxheaders=`$CXX -print-file-name=../../../../include/c++/`"$cxxversion" &&
5413 CXX_SYSINCLUDES="-isystem $cxxheaders \
5414 -isystem $cxxheaders/$cxxmachine -isystem $cxxheaders/backward"
5420 # check if ranlib is necessary
5421 { $as_echo "$as_me:$LINENO: checking whether ranlib is necessary" >&5
5422 $as_echo_n "checking whether ranlib is necessary... " >&6; }
5423 if test "${libc_cv_ranlib_necessary+set}" = set; then
5424 $as_echo_n "(cached) " >&6
5425 else
5426 cat > conftest.c <<EOF
5427 int a;
5428 char b;
5429 void c(void) {}
5431 $CC $CFLAGS $CPPFLAGS -c conftest.c
5432 $AR cr conftest.a conftest.o
5433 cp conftest.a conftest2.a
5434 $RANLIB conftest.a
5435 if cmp -s conftest.a conftest2.a; then
5436 libc_cv_ranlib_necessary=no
5437 else
5438 libc_cv_ranlib_necessary=yes
5440 rm -rf conftest*
5442 { $as_echo "$as_me:$LINENO: result: $libc_cv_ranlib_necessary" >&5
5443 $as_echo "$libc_cv_ranlib_necessary" >&6; }
5444 if test "$libc_cv_ranlib_necessary" = no; then
5445 RANLIB=:
5448 # Test if LD_LIBRARY_PATH contains the notation for the current directory
5449 # since this would lead to problems installing/building glibc.
5450 # LD_LIBRARY_PATH contains the current directory if one of the following
5451 # is true:
5452 # - one of the terminals (":" and ";") is the first or last sign
5453 # - two terminals occur directly after each other
5454 # - the path contains an element with a dot in it
5455 { $as_echo "$as_me:$LINENO: checking LD_LIBRARY_PATH variable" >&5
5456 $as_echo_n "checking LD_LIBRARY_PATH variable... " >&6; }
5457 case ${LD_LIBRARY_PATH} in
5458 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
5459 ld_library_path_setting="contains current directory"
5462 ld_library_path_setting="ok"
5464 esac
5465 { $as_echo "$as_me:$LINENO: result: $ld_library_path_setting" >&5
5466 $as_echo "$ld_library_path_setting" >&6; }
5467 if test "$ld_library_path_setting" != "ok"; then
5468 { { $as_echo "$as_me:$LINENO: error:
5469 *** LD_LIBRARY_PATH shouldn't contain the current directory when
5470 *** building glibc. Please change the environment variable
5471 *** and run configure again." >&5
5472 $as_echo "$as_me: error:
5473 *** LD_LIBRARY_PATH shouldn't contain the current directory when
5474 *** building glibc. Please change the environment variable
5475 *** and run configure again." >&2;}
5476 { (exit 1); exit 1; }; }
5479 { $as_echo "$as_me:$LINENO: checking whether GCC supports -static-libgcc" >&5
5480 $as_echo_n "checking whether GCC supports -static-libgcc... " >&6; }
5481 if test "${libc_cv_gcc_static_libgcc+set}" = set; then
5482 $as_echo_n "(cached) " >&6
5483 else
5484 if $CC -v -static-libgcc 2>&1 | grep -q 'unrecognized option.*static-libgcc'; then
5485 libc_cv_gcc_static_libgcc=
5486 else
5487 libc_cv_gcc_static_libgcc=-static-libgcc
5490 { $as_echo "$as_me:$LINENO: result: $libc_cv_gcc_static_libgcc" >&5
5491 $as_echo "$libc_cv_gcc_static_libgcc" >&6; }
5494 # Extract the first word of "bash", so it can be a program name with args.
5495 set dummy bash; ac_word=$2
5496 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5497 $as_echo_n "checking for $ac_word... " >&6; }
5498 if test "${ac_cv_path_BASH_SHELL+set}" = set; then
5499 $as_echo_n "(cached) " >&6
5500 else
5501 case $BASH_SHELL in
5502 [\\/]* | ?:[\\/]*)
5503 ac_cv_path_BASH_SHELL="$BASH_SHELL" # Let the user override the test with a path.
5506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5507 for as_dir in $PATH
5509 IFS=$as_save_IFS
5510 test -z "$as_dir" && as_dir=.
5511 for ac_exec_ext in '' $ac_executable_extensions; do
5512 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5513 ac_cv_path_BASH_SHELL="$as_dir/$ac_word$ac_exec_ext"
5514 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5515 break 2
5517 done
5518 done
5519 IFS=$as_save_IFS
5521 test -z "$ac_cv_path_BASH_SHELL" && ac_cv_path_BASH_SHELL="no"
5523 esac
5525 BASH_SHELL=$ac_cv_path_BASH_SHELL
5526 if test -n "$BASH_SHELL"; then
5527 { $as_echo "$as_me:$LINENO: result: $BASH_SHELL" >&5
5528 $as_echo "$BASH_SHELL" >&6; }
5529 else
5530 { $as_echo "$as_me:$LINENO: result: no" >&5
5531 $as_echo "no" >&6; }
5535 if test "$BASH_SHELL" != no &&
5536 $BASH_SHELL -c 'test "$BASH_VERSINFO" \
5537 && test "$BASH_VERSINFO" -ge 2 >&/dev/null'; then
5538 libc_cv_have_bash2=yes
5539 else
5540 libc_cv_have_bash2=no
5544 if test "$BASH_SHELL" = no; then
5545 # Extract the first word of "ksh", so it can be a program name with args.
5546 set dummy ksh; ac_word=$2
5547 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5548 $as_echo_n "checking for $ac_word... " >&6; }
5549 if test "${ac_cv_path_KSH+set}" = set; then
5550 $as_echo_n "(cached) " >&6
5551 else
5552 case $KSH in
5553 [\\/]* | ?:[\\/]*)
5554 ac_cv_path_KSH="$KSH" # Let the user override the test with a path.
5557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5558 for as_dir in $PATH
5560 IFS=$as_save_IFS
5561 test -z "$as_dir" && as_dir=.
5562 for ac_exec_ext in '' $ac_executable_extensions; do
5563 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5564 ac_cv_path_KSH="$as_dir/$ac_word$ac_exec_ext"
5565 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5566 break 2
5568 done
5569 done
5570 IFS=$as_save_IFS
5572 test -z "$ac_cv_path_KSH" && ac_cv_path_KSH="no"
5574 esac
5576 KSH=$ac_cv_path_KSH
5577 if test -n "$KSH"; then
5578 { $as_echo "$as_me:$LINENO: result: $KSH" >&5
5579 $as_echo "$KSH" >&6; }
5580 else
5581 { $as_echo "$as_me:$LINENO: result: no" >&5
5582 $as_echo "no" >&6; }
5586 if test "$KSH" = no; then
5587 libc_cv_have_ksh=no
5588 else
5589 libc_cv_have_ksh=yes
5591 else
5592 KSH="$BASH_SHELL"
5594 libc_cv_have_ksh=yes
5598 for ac_prog in gawk mawk nawk awk
5600 # Extract the first word of "$ac_prog", so it can be a program name with args.
5601 set dummy $ac_prog; ac_word=$2
5602 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5603 $as_echo_n "checking for $ac_word... " >&6; }
5604 if test "${ac_cv_prog_AWK+set}" = set; then
5605 $as_echo_n "(cached) " >&6
5606 else
5607 if test -n "$AWK"; then
5608 ac_cv_prog_AWK="$AWK" # Let the user override the test.
5609 else
5610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5611 for as_dir in $PATH
5613 IFS=$as_save_IFS
5614 test -z "$as_dir" && as_dir=.
5615 for ac_exec_ext in '' $ac_executable_extensions; do
5616 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5617 ac_cv_prog_AWK="$ac_prog"
5618 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5619 break 2
5621 done
5622 done
5623 IFS=$as_save_IFS
5627 AWK=$ac_cv_prog_AWK
5628 if test -n "$AWK"; then
5629 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
5630 $as_echo "$AWK" >&6; }
5631 else
5632 { $as_echo "$as_me:$LINENO: result: no" >&5
5633 $as_echo "no" >&6; }
5637 test -n "$AWK" && break
5638 done
5640 # Extract the first word of "perl", so it can be a program name with args.
5641 set dummy perl; ac_word=$2
5642 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5643 $as_echo_n "checking for $ac_word... " >&6; }
5644 if test "${ac_cv_path_PERL+set}" = set; then
5645 $as_echo_n "(cached) " >&6
5646 else
5647 case $PERL in
5648 [\\/]* | ?:[\\/]*)
5649 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
5652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5653 for as_dir in $PATH
5655 IFS=$as_save_IFS
5656 test -z "$as_dir" && as_dir=.
5657 for ac_exec_ext in '' $ac_executable_extensions; do
5658 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5659 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
5660 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5661 break 2
5663 done
5664 done
5665 IFS=$as_save_IFS
5667 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="no"
5669 esac
5671 PERL=$ac_cv_path_PERL
5672 if test -n "$PERL"; then
5673 { $as_echo "$as_me:$LINENO: result: $PERL" >&5
5674 $as_echo "$PERL" >&6; }
5675 else
5676 { $as_echo "$as_me:$LINENO: result: no" >&5
5677 $as_echo "no" >&6; }
5681 if test "$PERL" != no &&
5682 (eval `$PERL -V:apiversion`; test `expr "$apiversion" \< 5` -ne 0); then
5683 PERL=no
5685 # Extract the first word of "install-info", so it can be a program name with args.
5686 set dummy install-info; ac_word=$2
5687 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5688 $as_echo_n "checking for $ac_word... " >&6; }
5689 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5690 $as_echo_n "(cached) " >&6
5691 else
5692 case $INSTALL_INFO in
5693 [\\/]* | ?:[\\/]*)
5694 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5698 as_dummy="$PATH:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin"
5699 for as_dir in $as_dummy
5701 IFS=$as_save_IFS
5702 test -z "$as_dir" && as_dir=.
5703 for ac_exec_ext in '' $ac_executable_extensions; do
5704 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5705 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5706 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5707 break 2
5709 done
5710 done
5711 IFS=$as_save_IFS
5713 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO="no"
5715 esac
5717 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5718 if test -n "$INSTALL_INFO"; then
5719 { $as_echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5720 $as_echo "$INSTALL_INFO" >&6; }
5721 else
5722 { $as_echo "$as_me:$LINENO: result: no" >&5
5723 $as_echo "no" >&6; }
5727 # Extract the first word of "bison", so it can be a program name with args.
5728 set dummy bison; ac_word=$2
5729 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5730 $as_echo_n "checking for $ac_word... " >&6; }
5731 if test "${ac_cv_path_BISON+set}" = set; then
5732 $as_echo_n "(cached) " >&6
5733 else
5734 case $BISON in
5735 [\\/]* | ?:[\\/]*)
5736 ac_cv_path_BISON="$BISON" # Let the user override the test with a path.
5739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5740 as_dummy="$PATH:/usr/local/bin:/usr/bin:/bin"
5741 for as_dir in $as_dummy
5743 IFS=$as_save_IFS
5744 test -z "$as_dir" && as_dir=.
5745 for ac_exec_ext in '' $ac_executable_extensions; do
5746 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5747 ac_cv_path_BISON="$as_dir/$ac_word$ac_exec_ext"
5748 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5749 break 2
5751 done
5752 done
5753 IFS=$as_save_IFS
5755 test -z "$ac_cv_path_BISON" && ac_cv_path_BISON="no"
5757 esac
5759 BISON=$ac_cv_path_BISON
5760 if test -n "$BISON"; then
5761 { $as_echo "$as_me:$LINENO: result: $BISON" >&5
5762 $as_echo "$BISON" >&6; }
5763 else
5764 { $as_echo "$as_me:$LINENO: result: no" >&5
5765 $as_echo "no" >&6; }
5770 { $as_echo "$as_me:$LINENO: checking for signed size_t type" >&5
5771 $as_echo_n "checking for signed size_t type... " >&6; }
5772 if test "${libc_cv_signed_size_t+set}" = set; then
5773 $as_echo_n "(cached) " >&6
5774 else
5775 echo '#include <stddef.h>
5776 FOOBAR __SIZE_TYPE__ FOOBAR' > conftest.c
5777 if eval "$ac_cpp conftest.c 2>/dev/null" \
5778 | grep '^FOOBAR.*unsigned.*FOOBAR$' >/dev/null; then
5779 libc_cv_signed_size_t=no
5780 else
5781 libc_cv_signed_size_t=yes
5783 rm -f conftest*
5785 { $as_echo "$as_me:$LINENO: result: $libc_cv_signed_size_t" >&5
5786 $as_echo "$libc_cv_signed_size_t" >&6; }
5787 if test $libc_cv_signed_size_t = yes; then
5788 cat >> confdefs.h <<\EOF
5789 #undef __SIZE_TYPE__
5790 #define __SIZE_TYPE__ unsigned
5794 { $as_echo "$as_me:$LINENO: checking for libc-friendly stddef.h" >&5
5795 $as_echo_n "checking for libc-friendly stddef.h... " >&6; }
5796 if test "${libc_cv_friendly_stddef+set}" = set; then
5797 $as_echo_n "(cached) " >&6
5798 else
5799 cat >conftest.$ac_ext <<_ACEOF
5800 /* confdefs.h. */
5801 _ACEOF
5802 cat confdefs.h >>conftest.$ac_ext
5803 cat >>conftest.$ac_ext <<_ACEOF
5804 /* end confdefs.h. */
5805 #define __need_size_t
5806 #define __need_wchar_t
5807 #include <stddef.h>
5808 #define __need_NULL
5809 #include <stddef.h>
5811 main ()
5813 size_t size; wchar_t wchar;
5814 #ifdef offsetof
5815 #error stddef.h ignored __need_*
5816 #endif
5817 if (&size == NULL || &wchar == NULL) abort ();
5819 return 0;
5821 _ACEOF
5822 rm -f conftest.$ac_objext
5823 if { (ac_try="$ac_compile"
5824 case "(($ac_try" in
5825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5826 *) ac_try_echo=$ac_try;;
5827 esac
5828 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5829 $as_echo "$ac_try_echo") >&5
5830 (eval "$ac_compile") 2>conftest.er1
5831 ac_status=$?
5832 grep -v '^ *+' conftest.er1 >conftest.err
5833 rm -f conftest.er1
5834 cat conftest.err >&5
5835 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5836 (exit $ac_status); } && {
5837 test -z "$ac_c_werror_flag" ||
5838 test ! -s conftest.err
5839 } && test -s conftest.$ac_objext; then
5840 libc_cv_friendly_stddef=yes
5841 else
5842 $as_echo "$as_me: failed program was:" >&5
5843 sed 's/^/| /' conftest.$ac_ext >&5
5845 libc_cv_friendly_stddef=no
5848 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5850 { $as_echo "$as_me:$LINENO: result: $libc_cv_friendly_stddef" >&5
5851 $as_echo "$libc_cv_friendly_stddef" >&6; }
5852 if test $libc_cv_friendly_stddef = yes; then
5853 config_vars="$config_vars
5854 override stddef.h = # The installed <stddef.h> seems to be libc-friendly."
5857 { $as_echo "$as_me:$LINENO: checking whether we need to use -P to assemble .S files" >&5
5858 $as_echo_n "checking whether we need to use -P to assemble .S files... " >&6; }
5859 if test "${libc_cv_need_minus_P+set}" = set; then
5860 $as_echo_n "(cached) " >&6
5861 else
5862 cat > conftest.S <<EOF
5863 #include "confdefs.h"
5864 /* Nothing whatsoever. */
5866 if { ac_try='${CC-cc} $CPPFLAGS $ASFLAGS -c conftest.S 1>&5'
5867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5868 (eval $ac_try) 2>&5
5869 ac_status=$?
5870 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5871 (exit $ac_status); }; }; then
5872 libc_cv_need_minus_P=no
5873 else
5874 libc_cv_need_minus_P=yes
5876 rm -f conftest*
5878 { $as_echo "$as_me:$LINENO: result: $libc_cv_need_minus_P" >&5
5879 $as_echo "$libc_cv_need_minus_P" >&6; }
5880 if test $libc_cv_need_minus_P = yes; then
5881 config_vars="$config_vars
5882 asm-CPPFLAGS = -P # The assembler can't grok cpp's # line directives."
5885 { $as_echo "$as_me:$LINENO: checking whether .text pseudo-op must be used" >&5
5886 $as_echo_n "checking whether .text pseudo-op must be used... " >&6; }
5887 if test "${libc_cv_dot_text+set}" = set; then
5888 $as_echo_n "(cached) " >&6
5889 else
5890 cat > conftest.s <<EOF
5891 .text
5893 libc_cv_dot_text=
5894 if { ac_try='${CC-cc} $ASFLAGS -c conftest.s 1>&5'
5895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5896 (eval $ac_try) 2>&5
5897 ac_status=$?
5898 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5899 (exit $ac_status); }; }; then
5900 libc_cv_dot_text=.text
5902 rm -f conftest*
5905 if test -z "$libc_cv_dot_text"; then
5906 { $as_echo "$as_me:$LINENO: result: no" >&5
5907 $as_echo "no" >&6; }
5908 else
5909 { $as_echo "$as_me:$LINENO: result: yes" >&5
5910 $as_echo "yes" >&6; }
5913 { $as_echo "$as_me:$LINENO: checking for assembler global-symbol directive" >&5
5914 $as_echo_n "checking for assembler global-symbol directive... " >&6; }
5915 if test "${libc_cv_asm_global_directive+set}" = set; then
5916 $as_echo_n "(cached) " >&6
5917 else
5918 libc_cv_asm_global_directive=UNKNOWN
5919 for ac_globl in .globl .global .EXPORT; do
5920 cat > conftest.s <<EOF
5921 ${libc_cv_dot_text}
5922 ${ac_globl} foo
5923 foo:
5925 if { ac_try='${CC-cc} $ASFLAGS -c conftest.s 1>&5'
5926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5927 (eval $ac_try) 2>&5
5928 ac_status=$?
5929 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5930 (exit $ac_status); }; }; then
5931 libc_cv_asm_global_directive=${ac_globl}
5933 rm -f conftest*
5934 test $libc_cv_asm_global_directive != UNKNOWN && break
5935 done
5937 { $as_echo "$as_me:$LINENO: result: $libc_cv_asm_global_directive" >&5
5938 $as_echo "$libc_cv_asm_global_directive" >&6; }
5939 if test $libc_cv_asm_global_directive = UNKNOWN; then
5940 { { $as_echo "$as_me:$LINENO: error: cannot determine asm global directive" >&5
5941 $as_echo "$as_me: error: cannot determine asm global directive" >&2;}
5942 { (exit 1); exit 1; }; }
5943 else
5944 cat >>confdefs.h <<_ACEOF
5945 #define ASM_GLOBAL_DIRECTIVE ${libc_cv_asm_global_directive}
5946 _ACEOF
5950 { $as_echo "$as_me:$LINENO: checking for .set assembler directive" >&5
5951 $as_echo_n "checking for .set assembler directive... " >&6; }
5952 if test "${libc_cv_asm_set_directive+set}" = set; then
5953 $as_echo_n "(cached) " >&6
5954 else
5955 cat > conftest.s <<EOF
5956 ${libc_cv_dot_text}
5957 foo:
5958 .set glibc_conftest_frobozz,foo
5959 $libc_cv_asm_global_directive glibc_conftest_frobozz
5961 # The alpha-dec-osf1 assembler gives only a warning for `.set'
5962 # (but it doesn't work), so we must do a linking check to be sure.
5963 cat > conftest1.c <<\EOF
5964 extern int glibc_conftest_frobozz;
5965 void _start() { glibc_conftest_frobozz = 1; }
5967 if ${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \
5968 -nostartfiles -nostdlib \
5969 -o conftest conftest.s conftest1.c 1>&5 2>&5; then
5970 libc_cv_asm_set_directive=yes
5971 else
5972 libc_cv_asm_set_directive=no
5974 rm -f conftest*
5976 { $as_echo "$as_me:$LINENO: result: $libc_cv_asm_set_directive" >&5
5977 $as_echo "$libc_cv_asm_set_directive" >&6; }
5978 if test $libc_cv_asm_set_directive = yes; then
5979 cat >>confdefs.h <<\_ACEOF
5980 #define HAVE_ASM_SET_DIRECTIVE 1
5981 _ACEOF
5985 { $as_echo "$as_me:$LINENO: checking for assembler .type directive prefix" >&5
5986 $as_echo_n "checking for assembler .type directive prefix... " >&6; }
5987 if test "${libc_cv_asm_type_prefix+set}" = set; then
5988 $as_echo_n "(cached) " >&6
5989 else
5990 libc_cv_asm_type_prefix=no
5991 for ac_try_prefix in '@' '%' '#'; do
5992 cat > conftest.s <<EOF
5993 ${libc_cv_dot_text}
5994 ${libc_cv_asm_global_directive} foo
5995 .type foo, ${ac_try_prefix}object
5996 .size foo, 1
5997 foo:
5998 .byte 1
6000 if { ac_try='${CC-cc} $ASFLAGS -c conftest.s 1>&5'
6001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6002 (eval $ac_try) 2>&5
6003 ac_status=$?
6004 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6005 (exit $ac_status); }; }; then
6006 libc_cv_asm_type_prefix=${ac_try_prefix}
6008 rm -f conftest*
6009 test "x$libc_cv_asm_type_prefix" != xno && break
6010 done
6012 { $as_echo "$as_me:$LINENO: result: $libc_cv_asm_type_prefix" >&5
6013 $as_echo "$libc_cv_asm_type_prefix" >&6; }
6014 if test "x$libc_cv_asm_type_prefix" != xno; then
6015 cat >>confdefs.h <<_ACEOF
6016 #define ASM_TYPE_DIRECTIVE_PREFIX ${libc_cv_asm_type_prefix}
6017 _ACEOF
6021 { $as_echo "$as_me:$LINENO: checking for assembler gnu_unique_object symbol type" >&5
6022 $as_echo_n "checking for assembler gnu_unique_object symbol type... " >&6; }
6023 if test "${libc_cv_asm_unique_object+set}" = set; then
6024 $as_echo_n "(cached) " >&6
6025 else
6026 cat > conftest.s <<EOF
6027 ${libc_cv_dot_text}
6028 _sym:
6029 .type _sym, ${libc_cv_asm_type_prefix}gnu_unique_object
6031 if ${CC-cc} -c $ASFLAGS conftest.s 1>&5 2>&5; then
6032 libc_cv_asm_unique_object=yes
6033 else
6034 libc_cv_asm_unique_object=no
6036 rm -f conftest*
6038 { $as_echo "$as_me:$LINENO: result: $libc_cv_asm_unique_object" >&5
6039 $as_echo "$libc_cv_asm_unique_object" >&6; }
6040 if test $libc_cv_asm_unique_object = yes; then
6041 cat >>confdefs.h <<\_ACEOF
6042 #define HAVE_ASM_UNIQUE_OBJECT 1
6043 _ACEOF
6047 # For the multi-arch option we need support in the assembler.
6048 if test "$multi_arch" = yes; then
6049 if test "x$libc_cv_asm_type_prefix" != xno; then
6050 { $as_echo "$as_me:$LINENO: checking for assembler gnu_indirect_function symbol type support" >&5
6051 $as_echo_n "checking for assembler gnu_indirect_function symbol type support... " >&6; }
6052 if test "${libc_cv_asm_gnu_indirect_function+set}" = set; then
6053 $as_echo_n "(cached) " >&6
6054 else
6055 cat > conftest.s <<EOF
6056 .type foo,%gnu_indirect_function
6058 if ${CC-cc} -c $ASFLAGS conftest.s 1>&5 2>&5;
6059 then
6060 libc_cv_asm_gnu_indirect_function=yes
6061 else
6062 libc_cv_asm_gnu_indirect_function=no
6064 rm -f conftest*
6066 { $as_echo "$as_me:$LINENO: result: $libc_cv_asm_gnu_indirect_function" >&5
6067 $as_echo "$libc_cv_asm_gnu_indirect_function" >&6; }
6068 else
6069 libc_cv_asm_gnu_indirect_function=no
6071 if test x"$libc_cv_asm_gnu_indirect_function" != xyes; then
6072 { { $as_echo "$as_me:$LINENO: error: --enable-multi-arch support requires assembler and linker support" >&5
6073 $as_echo "$as_me: error: --enable-multi-arch support requires assembler and linker support" >&2;}
6074 { (exit 1); exit 1; }; }
6078 { $as_echo "$as_me:$LINENO: checking for .symver assembler directive" >&5
6079 $as_echo_n "checking for .symver assembler directive... " >&6; }
6080 if test "${libc_cv_asm_symver_directive+set}" = set; then
6081 $as_echo_n "(cached) " >&6
6082 else
6083 cat > conftest.s <<EOF
6084 ${libc_cv_dot_text}
6085 _sym:
6086 .symver _sym,sym@VERS
6088 if ${CC-cc} -c $ASFLAGS conftest.s 1>&5 2>&5; then
6089 libc_cv_asm_symver_directive=yes
6090 else
6091 libc_cv_asm_symver_directive=no
6093 rm -f conftest*
6095 { $as_echo "$as_me:$LINENO: result: $libc_cv_asm_symver_directive" >&5
6096 $as_echo "$libc_cv_asm_symver_directive" >&6; }
6097 { $as_echo "$as_me:$LINENO: checking for ld --version-script" >&5
6098 $as_echo_n "checking for ld --version-script... " >&6; }
6099 if test "${libc_cv_ld_version_script_option+set}" = set; then
6100 $as_echo_n "(cached) " >&6
6101 else
6102 if test $libc_cv_asm_symver_directive = yes; then
6103 cat > conftest.s <<EOF
6104 ${libc_cv_dot_text}
6105 _sym:
6106 .symver _sym,sym@VERS
6108 cat > conftest.map <<EOF
6109 VERS_1 {
6110 global: sym;
6113 VERS_2 {
6114 global: sym;
6115 } VERS_1;
6117 if ${CC-cc} -c $ASFLAGS conftest.s 1>&5 2>&5; then
6118 if { ac_try='${CC-cc} $CFLAGS $LDFLAGS -shared
6119 -o conftest.so conftest.o
6120 -nostartfiles -nostdlib
6121 -Wl,--version-script,conftest.map
6122 1>&5'
6123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6124 (eval $ac_try) 2>&5
6125 ac_status=$?
6126 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6127 (exit $ac_status); }; };
6128 then
6129 libc_cv_ld_version_script_option=yes
6130 else
6131 libc_cv_ld_version_script_option=no
6133 else
6134 libc_cv_ld_version_script_option=no
6136 else
6137 libc_cv_ld_version_script_option=no
6139 rm -f conftest*
6141 { $as_echo "$as_me:$LINENO: result: $libc_cv_ld_version_script_option" >&5
6142 $as_echo "$libc_cv_ld_version_script_option" >&6; }
6143 if test $shared != no &&
6144 test $libc_cv_asm_symver_directive = yes &&
6145 test $libc_cv_ld_version_script_option = yes &&
6146 test $enable_versioning = yes; then
6147 VERSIONING=yes
6148 cat >>confdefs.h <<\_ACEOF
6149 #define DO_VERSIONING 1
6150 _ACEOF
6152 else
6153 VERSIONING=no
6157 if test $elf = yes && test $shared != no && test $VERSIONING = no; then
6158 echo "\
6159 *** WARNING: You should not compile GNU libc without versioning. Not using
6160 *** versioning will introduce incompatibilities so that old binaries
6161 *** will not run anymore.
6162 *** For versioning you need recent binutils (binutils-2.8.1.0.23 or newer)."
6164 if test $elf = yes; then
6165 { $as_echo "$as_me:$LINENO: checking for .previous assembler directive" >&5
6166 $as_echo_n "checking for .previous assembler directive... " >&6; }
6167 if test "${libc_cv_asm_previous_directive+set}" = set; then
6168 $as_echo_n "(cached) " >&6
6169 else
6170 cat > conftest.s <<EOF
6171 .section foo_section
6172 .previous
6174 if { ac_try='${CC-cc} -c $ASFLAGS conftest.s 1>&5'
6175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6176 (eval $ac_try) 2>&5
6177 ac_status=$?
6178 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6179 (exit $ac_status); }; }; then
6180 libc_cv_asm_previous_directive=yes
6181 else
6182 libc_cv_asm_previous_directive=no
6184 rm -f conftest*
6186 { $as_echo "$as_me:$LINENO: result: $libc_cv_asm_previous_directive" >&5
6187 $as_echo "$libc_cv_asm_previous_directive" >&6; }
6188 if test $libc_cv_asm_previous_directive = yes; then
6189 cat >>confdefs.h <<\_ACEOF
6190 #define HAVE_ASM_PREVIOUS_DIRECTIVE 1
6191 _ACEOF
6193 else
6194 { $as_echo "$as_me:$LINENO: checking for .popsection assembler directive" >&5
6195 $as_echo_n "checking for .popsection assembler directive... " >&6; }
6196 if test "${libc_cv_asm_popsection_directive+set}" = set; then
6197 $as_echo_n "(cached) " >&6
6198 else
6199 cat > conftest.s <<EOF
6200 .pushsection foo_section
6201 .popsection
6203 if { ac_try='${CC-cc} -c $ASFLAGS conftest.s 1>&5'
6204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6205 (eval $ac_try) 2>&5
6206 ac_status=$?
6207 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6208 (exit $ac_status); }; }; then
6209 libc_cv_asm_popsection_directive=yes
6210 else
6211 libc_cv_asm_popsection_directive=no
6213 rm -f conftest*
6215 { $as_echo "$as_me:$LINENO: result: $libc_cv_asm_popsection_directive" >&5
6216 $as_echo "$libc_cv_asm_popsection_directive" >&6; }
6217 if test $libc_cv_asm_popsection_directive = yes; then
6218 cat >>confdefs.h <<\_ACEOF
6219 #define HAVE_ASM_POPSECTION_DIRECTIVE 1
6220 _ACEOF
6224 { $as_echo "$as_me:$LINENO: checking for .protected and .hidden assembler directive" >&5
6225 $as_echo_n "checking for .protected and .hidden assembler directive... " >&6; }
6226 if test "${libc_cv_asm_protected_directive+set}" = set; then
6227 $as_echo_n "(cached) " >&6
6228 else
6229 cat > conftest.s <<EOF
6230 .protected foo
6231 foo:
6232 .hidden bar
6233 bar:
6235 if { ac_try='${CC-cc} -c $ASFLAGS conftest.s 1>&5'
6236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6237 (eval $ac_try) 2>&5
6238 ac_status=$?
6239 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6240 (exit $ac_status); }; }; then
6241 libc_cv_asm_protected_directive=yes
6242 else
6243 { { $as_echo "$as_me:$LINENO: error: assembler support for symbol visibility is required" >&5
6244 $as_echo "$as_me: error: assembler support for symbol visibility is required" >&2;}
6245 { (exit 1); exit 1; }; }
6247 rm -f conftest*
6249 { $as_echo "$as_me:$LINENO: result: $libc_cv_asm_protected_directive" >&5
6250 $as_echo "$libc_cv_asm_protected_directive" >&6; }
6252 if test $libc_cv_asm_protected_directive = yes; then
6253 { $as_echo "$as_me:$LINENO: checking whether __attribute__((visibility())) is supported" >&5
6254 $as_echo_n "checking whether __attribute__((visibility())) is supported... " >&6; }
6255 if test "${libc_cv_visibility_attribute+set}" = set; then
6256 $as_echo_n "(cached) " >&6
6257 else
6258 cat > conftest.c <<EOF
6259 int foo __attribute__ ((visibility ("hidden"))) = 1;
6260 int bar __attribute__ ((visibility ("protected"))) = 1;
6262 libc_cv_visibility_attribute=no
6263 if { ac_try='${CC-cc} -Werror -S conftest.c -o conftest.s 1>&5'
6264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6265 (eval $ac_try) 2>&5
6266 ac_status=$?
6267 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6268 (exit $ac_status); }; }; then
6269 if grep '\.hidden.*foo' conftest.s >/dev/null; then
6270 if grep '\.protected.*bar' conftest.s >/dev/null; then
6271 libc_cv_visibility_attribute=yes
6275 rm -f conftest.cs
6278 { $as_echo "$as_me:$LINENO: result: $libc_cv_visibility_attribute" >&5
6279 $as_echo "$libc_cv_visibility_attribute" >&6; }
6280 if test $libc_cv_visibility_attribute != yes; then
6281 { { $as_echo "$as_me:$LINENO: error: compiler support for visibility attribute is required" >&5
6282 $as_echo "$as_me: error: compiler support for visibility attribute is required" >&2;}
6283 { (exit 1); exit 1; }; }
6287 if test $libc_cv_visibility_attribute = yes; then
6288 { $as_echo "$as_me:$LINENO: checking for broken __attribute__((visibility()))" >&5
6289 $as_echo_n "checking for broken __attribute__((visibility()))... " >&6; }
6290 if test "${libc_cv_broken_visibility_attribute+set}" = set; then
6291 $as_echo_n "(cached) " >&6
6292 else
6293 cat > conftest.c <<EOF
6294 int foo (int x);
6295 int bar (int x) __asm__ ("foo") __attribute__ ((visibility ("hidden")));
6296 int bar (int x) { return x; }
6298 libc_cv_broken_visibility_attribute=yes
6299 if { ac_try='${CC-cc} -Werror -S conftest.c -o conftest.s1>&5'
6300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6301 (eval $ac_try) 2>&5
6302 ac_status=$?
6303 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6304 (exit $ac_status); }; }; then
6305 if grep '\.hidden[ _]foo' conftest.s >/dev/null; then
6306 libc_cv_broken_visibility_attribute=no
6309 rm -f conftest.c conftest.s
6312 { $as_echo "$as_me:$LINENO: result: $libc_cv_broken_visibility_attribute" >&5
6313 $as_echo "$libc_cv_broken_visibility_attribute" >&6; }
6314 if test $libc_cv_broken_visibility_attribute = yes; then
6315 { { $as_echo "$as_me:$LINENO: error: working compiler support for visibility attribute is required" >&5
6316 $as_echo "$as_me: error: working compiler support for visibility attribute is required" >&2;}
6317 { (exit 1); exit 1; }; }
6321 { $as_echo "$as_me:$LINENO: checking for broken __attribute__((alias()))" >&5
6322 $as_echo_n "checking for broken __attribute__((alias()))... " >&6; }
6323 if test "${libc_cv_broken_alias_attribute+set}" = set; then
6324 $as_echo_n "(cached) " >&6
6325 else
6326 cat > conftest.c <<EOF
6327 extern int foo (int x) __asm ("xyzzy");
6328 int bar (int x) { return x; }
6329 extern __typeof (bar) foo __attribute ((weak, alias ("bar")));
6330 extern int dfoo;
6331 extern __typeof (dfoo) dfoo __asm ("abccb");
6332 int dfoo = 1;
6334 libc_cv_broken_alias_attribute=yes
6335 if { ac_try='${CC-cc} -Werror -S conftest.c -o conftest.s 1>&5'
6336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6337 (eval $ac_try) 2>&5
6338 ac_status=$?
6339 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6340 (exit $ac_status); }; }; then
6341 if grep 'xyzzy' conftest.s >/dev/null &&
6342 grep 'abccb' conftest.s >/dev/null; then
6343 libc_cv_broken_alias_attribute=no
6346 rm -f conftest.c conftest.s
6349 { $as_echo "$as_me:$LINENO: result: $libc_cv_broken_alias_attribute" >&5
6350 $as_echo "$libc_cv_broken_alias_attribute" >&6; }
6351 if test $libc_cv_broken_alias_attribute = yes; then
6352 { { $as_echo "$as_me:$LINENO: error: working alias attribute support required" >&5
6353 $as_echo "$as_me: error: working alias attribute support required" >&2;}
6354 { (exit 1); exit 1; }; }
6357 if test $libc_cv_visibility_attribute = yes; then
6358 { $as_echo "$as_me:$LINENO: checking whether to put _rtld_local into .sdata section" >&5
6359 $as_echo_n "checking whether to put _rtld_local into .sdata section... " >&6; }
6360 if test "${libc_cv_have_sdata_section+set}" = set; then
6361 $as_echo_n "(cached) " >&6
6362 else
6363 echo "int i;" > conftest.c
6364 libc_cv_have_sdata_section=no
6365 if ${CC-cc} $LDFLAGS -fPIC -shared -Wl,--verbose conftest.c -o conftest.so 2>&1 \
6366 | grep '\.sdata' >/dev/null; then
6367 libc_cv_have_sdata_section=yes
6369 rm -f conftest.c conftest.so
6372 { $as_echo "$as_me:$LINENO: result: $libc_cv_have_sdata_section" >&5
6373 $as_echo "$libc_cv_have_sdata_section" >&6; }
6374 if test $libc_cv_have_sdata_section = yes; then
6375 cat >>confdefs.h <<\_ACEOF
6376 #define HAVE_SDATA_SECTION 1
6377 _ACEOF
6382 { $as_echo "$as_me:$LINENO: checking for .preinit_array/.init_array/.fini_array support" >&5
6383 $as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
6384 if test "${libc_cv_initfini_array+set}" = set; then
6385 $as_echo_n "(cached) " >&6
6386 else
6387 cat > conftest.c <<EOF
6388 int _start (void) { return 0; }
6389 int __start (void) { return 0; }
6390 int foo (void) { return 1; }
6391 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
6393 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS -o conftest conftest.c
6394 -static -nostartfiles -nostdlib 1>&5'
6395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6396 (eval $ac_try) 2>&5
6397 ac_status=$?
6398 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6399 (exit $ac_status); }; }
6400 then
6401 if readelf -S conftest | fgrep INIT_ARRAY > /dev/null; then
6402 libc_cv_initfini_array=yes
6403 else
6404 libc_cv_initfini_array=no
6406 else
6407 libc_cv_initfini_array=no
6409 rm -f conftest*
6411 { $as_echo "$as_me:$LINENO: result: $libc_cv_initfini_array" >&5
6412 $as_echo "$libc_cv_initfini_array" >&6; }
6413 if test $libc_cv_initfini_array != yes; then
6414 { { $as_echo "$as_me:$LINENO: error: Need linker with .init_array/.fini_array support." >&5
6415 $as_echo "$as_me: error: Need linker with .init_array/.fini_array support." >&2;}
6416 { (exit 1); exit 1; }; }
6419 { $as_echo "$as_me:$LINENO: checking for libunwind-support in compiler" >&5
6420 $as_echo_n "checking for libunwind-support in compiler... " >&6; }
6421 if test "${libc_cv_cc_with_libunwind+set}" = set; then
6422 $as_echo_n "(cached) " >&6
6423 else
6425 cat > conftest.c <<EOF
6426 int main (void) { return 0; }
6428 if ${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS -static -o conftest \
6429 conftest.c -v 2>&1 >/dev/null | grep -q " -lunwind "; then
6430 libc_cv_cc_with_libunwind=yes
6431 else
6432 libc_cv_cc_with_libunwind=no
6434 rm -f conftest*
6436 { $as_echo "$as_me:$LINENO: result: $libc_cv_cc_with_libunwind" >&5
6437 $as_echo "$libc_cv_cc_with_libunwind" >&6; }
6439 if test $libc_cv_cc_with_libunwind = yes; then
6440 cat >>confdefs.h <<\_ACEOF
6441 #define HAVE_CC_WITH_LIBUNWIND 1
6442 _ACEOF
6446 { $as_echo "$as_me:$LINENO: checking for -z nodelete option" >&5
6447 $as_echo_n "checking for -z nodelete option... " >&6; }
6448 if test "${libc_cv_z_nodelete+set}" = set; then
6449 $as_echo_n "(cached) " >&6
6450 else
6451 cat > conftest.c <<EOF
6452 int _start (void) { return 42; }
6454 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
6455 -fPIC -shared -o conftest.so conftest.c
6456 -nostartfiles -nostdlib
6457 -Wl,--enable-new-dtags,-z,nodelete 1>&5'
6458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6459 (eval $ac_try) 2>&5
6460 ac_status=$?
6461 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6462 (exit $ac_status); }; }
6463 then
6464 libc_cv_z_nodelete=yes
6465 else
6466 { { $as_echo "$as_me:$LINENO: error: linker with -z nodelete support required" >&5
6467 $as_echo "$as_me: error: linker with -z nodelete support required" >&2;}
6468 { (exit 1); exit 1; }; }
6470 rm -f conftest*
6472 { $as_echo "$as_me:$LINENO: result: $libc_cv_z_nodelete" >&5
6473 $as_echo "$libc_cv_z_nodelete" >&6; }
6475 { $as_echo "$as_me:$LINENO: checking for -z nodlopen option" >&5
6476 $as_echo_n "checking for -z nodlopen option... " >&6; }
6477 if test "${libc_cv_z_nodlopen+set}" = set; then
6478 $as_echo_n "(cached) " >&6
6479 else
6480 cat > conftest.c <<EOF
6481 int _start (void) { return 42; }
6483 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
6484 -fPIC -shared -o conftest.so conftest.c
6485 -nostartfiles -nostdlib
6486 -Wl,--enable-new-dtags,-z,nodlopen 1>&5'
6487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6488 (eval $ac_try) 2>&5
6489 ac_status=$?
6490 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6491 (exit $ac_status); }; }
6492 then
6493 libc_cv_z_nodlopen=yes
6494 else
6495 { { $as_echo "$as_me:$LINENO: error: linker with -z nodlopen support required" >&5
6496 $as_echo "$as_me: error: linker with -z nodlopen support required" >&2;}
6497 { (exit 1); exit 1; }; }
6499 rm -f conftest*
6501 { $as_echo "$as_me:$LINENO: result: $libc_cv_z_nodlopen" >&5
6502 $as_echo "$libc_cv_z_nodlopen" >&6; }
6504 { $as_echo "$as_me:$LINENO: checking for -z initfirst option" >&5
6505 $as_echo_n "checking for -z initfirst option... " >&6; }
6506 if test "${libc_cv_z_initfirst+set}" = set; then
6507 $as_echo_n "(cached) " >&6
6508 else
6509 cat > conftest.c <<EOF
6510 int _start (void) { return 42; }
6512 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
6513 -fPIC -shared -o conftest.so conftest.c
6514 -nostartfiles -nostdlib
6515 -Wl,--enable-new-dtags,-z,initfirst 1>&5'
6516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6517 (eval $ac_try) 2>&5
6518 ac_status=$?
6519 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6520 (exit $ac_status); }; }
6521 then
6522 libc_cv_z_initfirst=yes
6523 else
6524 { { $as_echo "$as_me:$LINENO: error: linker with -z initfirst support required" >&5
6525 $as_echo "$as_me: error: linker with -z initfirst support required" >&2;}
6526 { (exit 1); exit 1; }; }
6528 rm -f conftest*
6530 { $as_echo "$as_me:$LINENO: result: $libc_cv_z_initfirst" >&5
6531 $as_echo "$libc_cv_z_initfirst" >&6; }
6533 case "$base_machine" in
6534 i[34567]86 | x86_64 | powerpc* | s390* | sparc* | alpha*)
6535 { $as_echo "$as_me:$LINENO: checking for -z relro option" >&5
6536 $as_echo_n "checking for -z relro option... " >&6; }
6537 if test "${libc_cv_z_relro+set}" = set; then
6538 $as_echo_n "(cached) " >&6
6539 else
6540 libc_cv_z_relro=no
6541 if { ac_try='${CC-cc} -v --help 2>&1|grep "z relro" 1>&5'
6542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6543 (eval $ac_try) 2>&5
6544 ac_status=$?
6545 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6546 (exit $ac_status); }; }
6547 then
6548 if { ac_try='${CC-cc} -Wl,--verbose 2>&1|grep DATA_SEGMENT_RELRO_END 1>&5'
6549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6550 (eval $ac_try) 2>&5
6551 ac_status=$?
6552 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6553 (exit $ac_status); }; }
6554 then
6555 libc_cv_z_relro=yes
6559 { $as_echo "$as_me:$LINENO: result: $libc_cv_z_relro" >&5
6560 $as_echo "$libc_cv_z_relro" >&6; }
6561 if test "$libc_cv_z_relro" = no; then
6562 { { $as_echo "$as_me:$LINENO: error: linker with -z relro support required" >&5
6563 $as_echo "$as_me: error: linker with -z relro support required" >&2;}
6564 { (exit 1); exit 1; }; }
6567 *) ;;
6568 esac
6570 { $as_echo "$as_me:$LINENO: checking for -Bgroup option" >&5
6571 $as_echo_n "checking for -Bgroup option... " >&6; }
6572 if test "${libc_cv_Bgroup+set}" = set; then
6573 $as_echo_n "(cached) " >&6
6574 else
6575 cat > conftest.c <<EOF
6576 int _start (void) { return 42; }
6578 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
6579 -fPIC -shared -o conftest.so conftest.c
6580 -Wl,-Bgroup -nostdlib 1>&5'
6581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6582 (eval $ac_try) 2>&5
6583 ac_status=$?
6584 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6585 (exit $ac_status); }; }
6586 then
6587 libc_cv_Bgroup=yes
6588 else
6589 libc_cv_Bgroup=no
6591 rm -f conftest*
6593 { $as_echo "$as_me:$LINENO: result: $libc_cv_Bgroup" >&5
6594 $as_echo "$libc_cv_Bgroup" >&6; }
6597 { $as_echo "$as_me:$LINENO: checking for libgcc_s suffix" >&5
6598 $as_echo_n "checking for libgcc_s suffix... " >&6; }
6599 if test "${libc_cv_libgcc_s_suffix+set}" = set; then
6600 $as_echo_n "(cached) " >&6
6601 else
6602 cat > conftest.c <<EOF
6603 int main (void) { return 0; }
6605 libc_cv_libgcc_s_suffix=`${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \
6606 -fPIC -shared -shared-libgcc -o conftest.so \
6607 conftest.c -v 2>&1 >/dev/null \
6608 | sed -n 's/^.* -lgcc_s\([^ ]*\) .*$/\1/p'`
6609 rm -f conftest*
6611 { $as_echo "$as_me:$LINENO: result: $libc_cv_libgcc_s_suffix" >&5
6612 $as_echo "$libc_cv_libgcc_s_suffix" >&6; }
6615 { $as_echo "$as_me:$LINENO: checking for --as-needed option" >&5
6616 $as_echo_n "checking for --as-needed option... " >&6; }
6617 if test "${libc_cv_as_needed+set}" = set; then
6618 $as_echo_n "(cached) " >&6
6619 else
6620 cat > conftest.c <<EOF
6621 int main (void) { return 0; }
6623 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
6624 -fPIC -shared -o conftest.so conftest.c
6625 -lgcc_s$libc_cv_libgcc_s_suffix -Wl,--as-needed
6626 -nostdlib 1>&5'
6627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6628 (eval $ac_try) 2>&5
6629 ac_status=$?
6630 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6631 (exit $ac_status); }; }
6632 then
6633 libc_cv_as_needed=yes
6634 else
6635 libc_cv_as_needed=no
6637 rm -f conftest*
6639 { $as_echo "$as_me:$LINENO: result: $libc_cv_as_needed" >&5
6640 $as_echo "$libc_cv_as_needed" >&6; }
6643 ASFLAGS_config=
6644 { $as_echo "$as_me:$LINENO: checking whether --noexecstack is desirable for .S files" >&5
6645 $as_echo_n "checking whether --noexecstack is desirable for .S files... " >&6; }
6646 if test "${libc_cv_as_noexecstack+set}" = set; then
6647 $as_echo_n "(cached) " >&6
6648 else
6649 cat > conftest.c <<EOF
6650 void foo (void) { }
6652 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS
6653 -S -o conftest.s conftest.c 1>&5'
6654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6655 (eval $ac_try) 2>&5
6656 ac_status=$?
6657 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6658 (exit $ac_status); }; } \
6659 && grep -q .note.GNU-stack conftest.s \
6660 && { ac_try='${CC-cc} $ASFLAGS -Wa,--noexecstack
6661 -c -o conftest.o conftest.s 1>&5'
6662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6663 (eval $ac_try) 2>&5
6664 ac_status=$?
6665 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6666 (exit $ac_status); }; }
6667 then
6668 libc_cv_as_noexecstack=yes
6669 else
6670 libc_cv_as_noexecstack=no
6672 rm -f conftest*
6674 { $as_echo "$as_me:$LINENO: result: $libc_cv_as_noexecstack" >&5
6675 $as_echo "$libc_cv_as_noexecstack" >&6; }
6676 if test $libc_cv_as_noexecstack = yes; then
6677 ASFLAGS_config="$ASFLAGS_config -Wa,--noexecstack"
6681 { $as_echo "$as_me:$LINENO: checking for -z combreloc" >&5
6682 $as_echo_n "checking for -z combreloc... " >&6; }
6683 if test "${libc_cv_z_combreloc+set}" = set; then
6684 $as_echo_n "(cached) " >&6
6685 else
6686 cat > conftest.c <<EOF
6687 extern int bar (int);
6688 extern int mumble;
6689 int foo (void) { return bar (mumble); }
6691 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
6692 -fPIC -shared -o conftest.so conftest.c
6693 -nostdlib -nostartfiles
6694 -Wl,-z,combreloc 1>&5'
6695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6696 (eval $ac_try) 2>&5
6697 ac_status=$?
6698 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6699 (exit $ac_status); }; }
6700 then
6701 if readelf -S conftest.so | grep '\.rel\(a\|\)\.dyn' > /dev/null; then
6702 libc_cv_z_combreloc=yes
6703 else
6704 libc_cv_z_combreloc=no
6706 else
6707 libc_cv_z_combreloc=no
6709 rm -f conftest*
6711 { $as_echo "$as_me:$LINENO: result: $libc_cv_z_combreloc" >&5
6712 $as_echo "$libc_cv_z_combreloc" >&6; }
6713 if test "$libc_cv_z_combreloc" = yes; then
6714 cat >>confdefs.h <<\_ACEOF
6715 #define HAVE_Z_COMBRELOC 1
6716 _ACEOF
6721 { $as_echo "$as_me:$LINENO: checking for -z execstack" >&5
6722 $as_echo_n "checking for -z execstack... " >&6; }
6723 if test "${libc_cv_z_execstack+set}" = set; then
6724 $as_echo_n "(cached) " >&6
6725 else
6726 cat > conftest.c <<EOF
6727 int _start (void) { return 42; }
6729 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
6730 -fPIC -shared -o conftest.so conftest.c
6731 -Wl,-z,execstack -nostdlib
6732 1>&5'
6733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6734 (eval $ac_try) 2>&5
6735 ac_status=$?
6736 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6737 (exit $ac_status); }; }
6738 then
6739 libc_cv_z_execstack=yes
6740 else
6741 libc_cv_z_execstack=no
6743 rm -f conftest*
6745 { $as_echo "$as_me:$LINENO: result: $libc_cv_z_execstack" >&5
6746 $as_echo "$libc_cv_z_execstack" >&6; }
6749 { $as_echo "$as_me:$LINENO: checking for -fpie" >&5
6750 $as_echo_n "checking for -fpie... " >&6; }
6751 if test "${libc_cv_fpie+set}" = set; then
6752 $as_echo_n "(cached) " >&6
6753 else
6754 cat > conftest.c <<EOF
6755 int foo;
6756 main () { return 0;}
6758 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS -pie -fpie
6759 -o conftest conftest.c 1>&5'
6760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6761 (eval $ac_try) 2>&5
6762 ac_status=$?
6763 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6764 (exit $ac_status); }; }
6765 then
6766 libc_cv_fpie=yes
6767 else
6768 libc_cv_fpie=no
6770 rm -f conftest*
6772 { $as_echo "$as_me:$LINENO: result: $libc_cv_fpie" >&5
6773 $as_echo "$libc_cv_fpie" >&6; }
6777 { $as_echo "$as_me:$LINENO: checking for --hash-style option" >&5
6778 $as_echo_n "checking for --hash-style option... " >&6; }
6779 if test "${libc_cv_hashstyle+set}" = set; then
6780 $as_echo_n "(cached) " >&6
6781 else
6782 cat > conftest.c <<EOF
6783 int _start (void) { return 42; }
6785 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
6786 -fPIC -shared -o conftest.so conftest.c
6787 -Wl,--hash-style=both -nostdlib 1>&5'
6788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6789 (eval $ac_try) 2>&5
6790 ac_status=$?
6791 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6792 (exit $ac_status); }; }
6793 then
6794 libc_cv_hashstyle=yes
6795 else
6796 libc_cv_hashstyle=no
6798 rm -f conftest*
6800 { $as_echo "$as_me:$LINENO: result: $libc_cv_hashstyle" >&5
6801 $as_echo "$libc_cv_hashstyle" >&6; }
6805 { $as_echo "$as_me:$LINENO: checking for -fno-toplevel-reorder -fno-section-anchors" >&5
6806 $as_echo_n "checking for -fno-toplevel-reorder -fno-section-anchors... " >&6; }
6807 if test "${libc_cv_fno_toplevel_reorder+set}" = set; then
6808 $as_echo_n "(cached) " >&6
6809 else
6810 cat > conftest.c <<EOF
6811 int foo;
6813 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -S -fno-toplevel-reorder -fno-section-anchors
6814 conftest.c 1>&5'
6815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6816 (eval $ac_try) 2>&5
6817 ac_status=$?
6818 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6819 (exit $ac_status); }; }
6820 then
6821 libc_cv_fno_toplevel_reorder=yes
6822 else
6823 libc_cv_fno_toplevel_reorder=no
6825 rm -f conftest*
6827 { $as_echo "$as_me:$LINENO: result: $libc_cv_fno_toplevel_reorder" >&5
6828 $as_echo "$libc_cv_fno_toplevel_reorder" >&6; }
6829 if test $libc_cv_fno_toplevel_reorder = yes; then
6830 fno_unit_at_a_time="-fno-toplevel-reorder -fno-section-anchors"
6831 else
6832 fno_unit_at_a_time=-fno-unit-at-a-time
6836 { $as_echo "$as_me:$LINENO: checking for -fstack-protector" >&5
6837 $as_echo_n "checking for -fstack-protector... " >&6; }
6838 if test "${libc_cv_ssp+set}" = set; then
6839 $as_echo_n "(cached) " >&6
6840 else
6841 cat > conftest.c <<EOF
6842 int foo;
6843 main () { return 0;}
6845 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS -Werror -fstack-protector
6846 -o conftest conftest.c 1>&5'
6847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6848 (eval $ac_try) 2>&5
6849 ac_status=$?
6850 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6851 (exit $ac_status); }; }
6852 then
6853 libc_cv_ssp=yes
6854 else
6855 libc_cv_ssp=no
6857 rm -f conftest*
6859 { $as_echo "$as_me:$LINENO: result: $libc_cv_ssp" >&5
6860 $as_echo "$libc_cv_ssp" >&6; }
6863 { $as_echo "$as_me:$LINENO: checking for -fgnu89-inline" >&5
6864 $as_echo_n "checking for -fgnu89-inline... " >&6; }
6865 if test "${libc_cv_gnu89_inline+set}" = set; then
6866 $as_echo_n "(cached) " >&6
6867 else
6868 cat > conftest.c <<EOF
6869 int foo;
6870 #ifdef __GNUC_GNU_INLINE__
6871 main () { return 0;}
6872 #else
6873 #error
6874 #endif
6876 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -S -std=gnu99 -fgnu89-inline
6877 -o conftest.s conftest.c 1>&5'
6878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6879 (eval $ac_try) 2>&5
6880 ac_status=$?
6881 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6882 (exit $ac_status); }; }
6883 then
6884 libc_cv_gnu89_inline=yes
6885 else
6886 libc_cv_gnu89_inline=no
6888 rm -f conftest*
6890 { $as_echo "$as_me:$LINENO: result: $libc_cv_gnu89_inline" >&5
6891 $as_echo "$libc_cv_gnu89_inline" >&6; }
6892 if test $libc_cv_gnu89_inline = yes; then
6893 libc_cv_gnu89_inline=-fgnu89-inline
6894 else
6895 libc_cv_gnu89_inline=
6899 if test $elf != yes; then
6900 { $as_echo "$as_me:$LINENO: checking for .init and .fini sections" >&5
6901 $as_echo_n "checking for .init and .fini sections... " >&6; }
6902 if test "${libc_cv_have_initfini+set}" = set; then
6903 $as_echo_n "(cached) " >&6
6904 else
6905 cat >conftest.$ac_ext <<_ACEOF
6906 /* confdefs.h. */
6907 _ACEOF
6908 cat confdefs.h >>conftest.$ac_ext
6909 cat >>conftest.$ac_ext <<_ACEOF
6910 /* end confdefs.h. */
6913 main ()
6915 asm (".section .init");
6916 asm (".section .fini");
6917 asm ("${libc_cv_dot_text}");
6919 return 0;
6921 _ACEOF
6922 rm -f conftest.$ac_objext
6923 if { (ac_try="$ac_compile"
6924 case "(($ac_try" in
6925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6926 *) ac_try_echo=$ac_try;;
6927 esac
6928 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6929 $as_echo "$ac_try_echo") >&5
6930 (eval "$ac_compile") 2>conftest.er1
6931 ac_status=$?
6932 grep -v '^ *+' conftest.er1 >conftest.err
6933 rm -f conftest.er1
6934 cat conftest.err >&5
6935 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6936 (exit $ac_status); } && {
6937 test -z "$ac_c_werror_flag" ||
6938 test ! -s conftest.err
6939 } && test -s conftest.$ac_objext; then
6940 libc_cv_have_initfini=yes
6941 else
6942 $as_echo "$as_me: failed program was:" >&5
6943 sed 's/^/| /' conftest.$ac_ext >&5
6945 libc_cv_have_initfini=no
6948 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6950 { $as_echo "$as_me:$LINENO: result: $libc_cv_have_initfini" >&5
6951 $as_echo "$libc_cv_have_initfini" >&6; }
6952 if test $libc_cv_have_initfini = yes; then
6953 cat >>confdefs.h <<\_ACEOF
6954 #define HAVE_INITFINI 1
6955 _ACEOF
6960 if test $elf = yes; then
6961 { $as_echo "$as_me:$LINENO: checking whether cc puts quotes around section names" >&5
6962 $as_echo_n "checking whether cc puts quotes around section names... " >&6; }
6963 if test "${libc_cv_have_section_quotes+set}" = set; then
6964 $as_echo_n "(cached) " >&6
6965 else
6966 cat > conftest.c <<EOF
6967 static const int foo
6968 __attribute__ ((section ("bar"))) = 1;
6970 if ${CC-cc} -S conftest.c -o conftest.s; then
6971 if grep '\.section.*"bar"' conftest.s >/dev/null; then
6972 libc_cv_have_section_quotes=yes
6973 else
6974 libc_cv_have_section_quotes=no
6976 else
6977 libc_cv_have_section_quotes=unknown
6979 rm -f conftest.cs
6982 { $as_echo "$as_me:$LINENO: result: $libc_cv_have_section_quotes" >&5
6983 $as_echo "$libc_cv_have_section_quotes" >&6; }
6984 if test $libc_cv_have_section_quotes = yes; then
6985 cat >>confdefs.h <<\_ACEOF
6986 #define HAVE_SECTION_QUOTES 1
6987 _ACEOF
6994 if test $elf = yes; then
6995 libc_cv_asm_underscores=no
6996 else
6997 if test $ac_cv_prog_cc_works = yes; then
6998 { $as_echo "$as_me:$LINENO: checking for _ prefix on C symbol names" >&5
6999 $as_echo_n "checking for _ prefix on C symbol names... " >&6; }
7000 if test "${libc_cv_asm_underscores+set}" = set; then
7001 $as_echo_n "(cached) " >&6
7002 else
7003 cat >conftest.$ac_ext <<_ACEOF
7004 /* confdefs.h. */
7005 _ACEOF
7006 cat confdefs.h >>conftest.$ac_ext
7007 cat >>conftest.$ac_ext <<_ACEOF
7008 /* end confdefs.h. */
7009 asm ("_glibc_foobar:");
7011 main ()
7013 glibc_foobar ();
7015 return 0;
7017 _ACEOF
7018 rm -f conftest.$ac_objext conftest$ac_exeext
7019 if { (ac_try="$ac_link"
7020 case "(($ac_try" in
7021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7022 *) ac_try_echo=$ac_try;;
7023 esac
7024 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7025 $as_echo "$ac_try_echo") >&5
7026 (eval "$ac_link") 2>conftest.er1
7027 ac_status=$?
7028 grep -v '^ *+' conftest.er1 >conftest.err
7029 rm -f conftest.er1
7030 cat conftest.err >&5
7031 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7032 (exit $ac_status); } && {
7033 test -z "$ac_c_werror_flag" ||
7034 test ! -s conftest.err
7035 } && test -s conftest$ac_exeext && {
7036 test "$cross_compiling" = yes ||
7037 $as_test_x conftest$ac_exeext
7038 }; then
7039 libc_cv_asm_underscores=yes
7040 else
7041 $as_echo "$as_me: failed program was:" >&5
7042 sed 's/^/| /' conftest.$ac_ext >&5
7044 libc_cv_asm_underscores=no
7047 rm -rf conftest.dSYM
7048 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7049 conftest$ac_exeext conftest.$ac_ext
7051 { $as_echo "$as_me:$LINENO: result: $libc_cv_asm_underscores" >&5
7052 $as_echo "$libc_cv_asm_underscores" >&6; }
7053 else
7054 { $as_echo "$as_me:$LINENO: checking for _ prefix on C symbol names" >&5
7055 $as_echo_n "checking for _ prefix on C symbol names... " >&6; }
7056 if test "${libc_cv_asm_underscores+set}" = set; then
7057 $as_echo_n "(cached) " >&6
7058 else
7059 cat > conftest.$ac_ext <<EOF
7060 #line $LINENO "configure"
7061 #include "confdefs.h"
7062 void underscore_test(void) {
7063 return; }
7065 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7066 (eval $ac_compile) 2>&5
7067 ac_status=$?
7068 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7069 (exit $ac_status); }; then
7070 if grep _underscore_test conftest* >/dev/null; then
7071 rm -f conftest*
7072 libc_cv_asm_underscores=yes
7073 else
7074 rm -f conftest*
7075 libc_cv_asm_underscores=no
7077 else
7078 echo "configure: failed program was:" >&5
7079 cat conftest.$ac_ext >&5
7080 rm -f conftest*
7081 libc_cv_asm_underscores=no
7083 rm -f conftest*
7085 { $as_echo "$as_me:$LINENO: result: $libc_cv_asm_underscores" >&5
7086 $as_echo "$libc_cv_asm_underscores" >&6; }
7089 if test $libc_cv_asm_underscores = no; then
7090 cat >>confdefs.h <<\_ACEOF
7091 #define NO_UNDERSCORES 1
7092 _ACEOF
7096 if test $elf = yes; then
7097 libc_cv_weak_symbols=yes
7100 { $as_echo "$as_me:$LINENO: checking for assembler .weak directive" >&5
7101 $as_echo_n "checking for assembler .weak directive... " >&6; }
7102 if test "${libc_cv_asm_weak_directive+set}" = set; then
7103 $as_echo_n "(cached) " >&6
7104 else
7105 cat > conftest.s <<EOF
7106 ${libc_cv_dot_text}
7107 ${libc_cv_asm_global_directive} foo
7108 foo:
7109 .weak foo
7110 .weak bar; bar = foo
7112 if { ac_try='${CC-cc} $ASFLAGS -c conftest.s 1>&5'
7113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7114 (eval $ac_try) 2>&5
7115 ac_status=$?
7116 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7117 (exit $ac_status); }; }; then
7118 libc_cv_asm_weak_directive=yes
7119 else
7120 libc_cv_asm_weak_directive=no
7122 rm -f conftest*
7124 { $as_echo "$as_me:$LINENO: result: $libc_cv_asm_weak_directive" >&5
7125 $as_echo "$libc_cv_asm_weak_directive" >&6; }
7127 if test $libc_cv_asm_weak_directive = no; then
7128 { $as_echo "$as_me:$LINENO: checking for assembler .weakext directive" >&5
7129 $as_echo_n "checking for assembler .weakext directive... " >&6; }
7130 if test "${libc_cv_asm_weakext_directive+set}" = set; then
7131 $as_echo_n "(cached) " >&6
7132 else
7133 cat > conftest.s <<EOF
7134 ${libc_cv_dot_text}
7135 ${libc_cv_asm_global_directive} foo
7136 foo:
7137 .weakext bar foo
7138 .weakext baz
7139 ${libc_cv_asm_global_directive} baz
7140 baz:
7142 if { ac_try='${CC-cc} $ASFLAGS -c conftest.s 1>&5'
7143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7144 (eval $ac_try) 2>&5
7145 ac_status=$?
7146 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7147 (exit $ac_status); }; }; then
7148 libc_cv_asm_weakext_directive=yes
7149 else
7150 libc_cv_asm_weakext_directive=no
7152 rm -f conftest*
7154 { $as_echo "$as_me:$LINENO: result: $libc_cv_asm_weakext_directive" >&5
7155 $as_echo "$libc_cv_asm_weakext_directive" >&6; }
7157 fi # no .weak
7159 if test $libc_cv_asm_weak_directive = yes; then
7160 cat >>confdefs.h <<\_ACEOF
7161 #define HAVE_ASM_WEAK_DIRECTIVE 1
7162 _ACEOF
7164 elif test $libc_cv_asm_weakext_directive = yes; then
7165 cat >>confdefs.h <<\_ACEOF
7166 #define HAVE_ASM_WEAKEXT_DIRECTIVE 1
7167 _ACEOF
7171 { $as_echo "$as_me:$LINENO: checking whether CFI directives are supported" >&5
7172 $as_echo_n "checking whether CFI directives are supported... " >&6; }
7173 if test "${libc_cv_asm_cfi_directives+set}" = set; then
7174 $as_echo_n "(cached) " >&6
7175 else
7176 case $machine in
7177 sparc/sparc64*) cfi_offset=2047;;
7178 *) cfi_offset=0;;
7179 esac
7180 cat > conftest.s <<EOF
7181 .text
7182 .type func,%function
7183 func:
7184 .cfi_startproc
7185 .cfi_remember_state
7186 .cfi_rel_offset 1, $cfi_offset
7187 .cfi_endproc
7189 if { ac_try='${CC-cc} $ASFLAGS -c conftest.s 1>&5'
7190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7191 (eval $ac_try) 2>&5
7192 ac_status=$?
7193 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7194 (exit $ac_status); }; }; then
7195 libc_cv_asm_cfi_directives=yes
7196 else
7197 libc_cv_asm_cfi_directives=no
7199 rm -f conftest*
7201 { $as_echo "$as_me:$LINENO: result: $libc_cv_asm_cfi_directives" >&5
7202 $as_echo "$libc_cv_asm_cfi_directives" >&6; }
7203 if test $libc_cv_asm_cfi_directives = yes; then
7204 cat >>confdefs.h <<\_ACEOF
7205 #define HAVE_ASM_CFI_DIRECTIVES 1
7206 _ACEOF
7210 { $as_echo "$as_me:$LINENO: checking for ld --no-whole-archive" >&5
7211 $as_echo_n "checking for ld --no-whole-archive... " >&6; }
7212 if test "${libc_cv_ld_no_whole_archive+set}" = set; then
7213 $as_echo_n "(cached) " >&6
7214 else
7215 cat > conftest.c <<\EOF
7216 _start () {}
7217 int __eh_pc;
7218 __throw () {}
7220 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
7221 -nostdlib -nostartfiles -Wl,--no-whole-archive
7222 -o conftest conftest.c 1>&5'
7223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7224 (eval $ac_try) 2>&5
7225 ac_status=$?
7226 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7227 (exit $ac_status); }; }; then
7228 libc_cv_ld_no_whole_archive=yes
7229 else
7230 libc_cv_ld_no_whole_archive=no
7232 rm -f conftest*
7234 { $as_echo "$as_me:$LINENO: result: $libc_cv_ld_no_whole_archive" >&5
7235 $as_echo "$libc_cv_ld_no_whole_archive" >&6; }
7236 if test $libc_cv_ld_no_whole_archive = yes; then
7237 no_whole_archive=-Wl,--no-whole-archive
7240 { $as_echo "$as_me:$LINENO: checking for gcc -fexceptions" >&5
7241 $as_echo_n "checking for gcc -fexceptions... " >&6; }
7242 if test "${libc_cv_gcc_exceptions+set}" = set; then
7243 $as_echo_n "(cached) " >&6
7244 else
7245 cat > conftest.c <<\EOF
7246 _start () {}
7247 int __eh_pc;
7248 __throw () {}
7250 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
7251 -nostdlib -nostartfiles -fexceptions
7252 -o conftest conftest.c 1>&5'
7253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7254 (eval $ac_try) 2>&5
7255 ac_status=$?
7256 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7257 (exit $ac_status); }; }; then
7258 libc_cv_gcc_exceptions=yes
7259 else
7260 libc_cv_gcc_exceptions=no
7262 rm -f conftest*
7264 { $as_echo "$as_me:$LINENO: result: $libc_cv_gcc_exceptions" >&5
7265 $as_echo "$libc_cv_gcc_exceptions" >&6; }
7266 if test $libc_cv_gcc_exceptions = yes; then
7267 exceptions=-fexceptions
7270 if test "$host_cpu" = powerpc ; then
7271 # Check for a bug present in at least versions 2.8.x of GCC
7272 # and versions 1.0.x of EGCS.
7273 { $as_echo "$as_me:$LINENO: checking whether clobbering cr0 causes problems" >&5
7274 $as_echo_n "checking whether clobbering cr0 causes problems... " >&6; }
7275 if test "${libc_cv_c_asmcr0_bug+set}" = set; then
7276 $as_echo_n "(cached) " >&6
7277 else
7278 cat >conftest.$ac_ext <<_ACEOF
7279 /* confdefs.h. */
7280 _ACEOF
7281 cat confdefs.h >>conftest.$ac_ext
7282 cat >>conftest.$ac_ext <<_ACEOF
7283 /* end confdefs.h. */
7284 int tester(int x) { asm ("" : : : "cc"); return x & 123; }
7286 main ()
7290 return 0;
7292 _ACEOF
7293 rm -f conftest.$ac_objext
7294 if { (ac_try="$ac_compile"
7295 case "(($ac_try" in
7296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7297 *) ac_try_echo=$ac_try;;
7298 esac
7299 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7300 $as_echo "$ac_try_echo") >&5
7301 (eval "$ac_compile") 2>conftest.er1
7302 ac_status=$?
7303 grep -v '^ *+' conftest.er1 >conftest.err
7304 rm -f conftest.er1
7305 cat conftest.err >&5
7306 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7307 (exit $ac_status); } && {
7308 test -z "$ac_c_werror_flag" ||
7309 test ! -s conftest.err
7310 } && test -s conftest.$ac_objext; then
7311 libc_cv_c_asmcr0_bug='no'
7312 else
7313 $as_echo "$as_me: failed program was:" >&5
7314 sed 's/^/| /' conftest.$ac_ext >&5
7316 libc_cv_c_asmcr0_bug='yes'
7319 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7321 { $as_echo "$as_me:$LINENO: result: $libc_cv_c_asmcr0_bug" >&5
7322 $as_echo "$libc_cv_c_asmcr0_bug" >&6; }
7323 if test "$libc_cv_c_asmcr0_bug" != 'no'; then
7324 cat >>confdefs.h <<\_ACEOF
7325 #define BROKEN_PPC_ASM_CR0 1
7326 _ACEOF
7331 { $as_echo "$as_me:$LINENO: checking for __builtin_expect" >&5
7332 $as_echo_n "checking for __builtin_expect... " >&6; }
7333 if test "${libc_cv_gcc_builtin_expect+set}" = set; then
7334 $as_echo_n "(cached) " >&6
7335 else
7336 cat > conftest.c <<EOF
7337 #line $LINENO "configure"
7338 int foo (int a)
7340 a = __builtin_expect (a, 10);
7341 return a == 10 ? 0 : 1;
7344 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS -nostdlib -nostartfiles
7345 -o conftest conftest.c -lgcc >&5'
7346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7347 (eval $ac_try) 2>&5
7348 ac_status=$?
7349 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7350 (exit $ac_status); }; }; then
7351 libc_cv_gcc_builtin_expect=yes
7352 else
7353 libc_cv_gcc_builtin_expect=no
7355 rm -f conftest*
7357 { $as_echo "$as_me:$LINENO: result: $libc_cv_gcc_builtin_expect" >&5
7358 $as_echo "$libc_cv_gcc_builtin_expect" >&6; }
7359 if test "$libc_cv_gcc_builtin_expect" = yes; then
7360 cat >>confdefs.h <<\_ACEOF
7361 #define HAVE_BUILTIN_EXPECT 1
7362 _ACEOF
7366 { $as_echo "$as_me:$LINENO: checking for __builtin_memset" >&5
7367 $as_echo_n "checking for __builtin_memset... " >&6; }
7368 if test "${libc_cv_gcc_builtin_memset+set}" = set; then
7369 $as_echo_n "(cached) " >&6
7370 else
7371 cat > conftest.c <<\EOF
7372 void zero (void *x)
7374 __builtin_memset (x, 0, 1000);
7377 if { ac_try='${CC-cc} -O3 -S conftest.c -o - | fgrep "memset" > /dev/null'
7378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7379 (eval $ac_try) 2>&5
7380 ac_status=$?
7381 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7382 (exit $ac_status); }; };
7383 then
7384 libc_cv_gcc_builtin_memset=no
7385 else
7386 libc_cv_gcc_builtin_memset=yes
7388 rm -f conftest*
7390 { $as_echo "$as_me:$LINENO: result: $libc_cv_gcc_builtin_memset" >&5
7391 $as_echo "$libc_cv_gcc_builtin_memset" >&6; }
7392 if test "$libc_cv_gcc_builtin_memset" = yes ; then
7393 cat >>confdefs.h <<\_ACEOF
7394 #define HAVE_BUILTIN_MEMSET 1
7395 _ACEOF
7399 { $as_echo "$as_me:$LINENO: checking for redirection of built-in functions" >&5
7400 $as_echo_n "checking for redirection of built-in functions... " >&6; }
7401 if test "${libc_cv_gcc_builtin_redirection+set}" = set; then
7402 $as_echo_n "(cached) " >&6
7403 else
7404 cat > conftest.c <<\EOF
7405 extern char *strstr (const char *, const char *) __asm ("my_strstr");
7406 char *foo (const char *a, const char *b)
7408 return __builtin_strstr (a, b);
7411 if { ac_try='${CC-cc} -O3 -S conftest.c -o - | fgrep "my_strstr" > /dev/null'
7412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7413 (eval $ac_try) 2>&5
7414 ac_status=$?
7415 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7416 (exit $ac_status); }; };
7417 then
7418 libc_cv_gcc_builtin_redirection=yes
7419 else
7420 libc_cv_gcc_builtin_redirection=no
7422 rm -f conftest*
7424 { $as_echo "$as_me:$LINENO: result: $libc_cv_gcc_builtin_redirection" >&5
7425 $as_echo "$libc_cv_gcc_builtin_redirection" >&6; }
7426 if test "$libc_cv_gcc_builtin_redirection" = yes ; then
7427 cat >>confdefs.h <<\_ACEOF
7428 #define HAVE_BUILTIN_REDIRECTION 1
7429 _ACEOF
7433 if test "x$use__thread" != xno; then
7434 { $as_echo "$as_me:$LINENO: checking for __thread" >&5
7435 $as_echo_n "checking for __thread... " >&6; }
7436 if test "${libc_cv_gcc___thread+set}" = set; then
7437 $as_echo_n "(cached) " >&6
7438 else
7439 cat > conftest.c <<\EOF
7440 __thread int a = 42;
7442 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -c conftest.c >&5'
7443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7444 (eval $ac_try) 2>&5
7445 ac_status=$?
7446 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7447 (exit $ac_status); }; }; then
7448 libc_cv_gcc___thread=yes
7449 else
7450 libc_cv_gcc___thread=no
7452 rm -f conftest*
7454 { $as_echo "$as_me:$LINENO: result: $libc_cv_gcc___thread" >&5
7455 $as_echo "$libc_cv_gcc___thread" >&6; }
7456 if test "$libc_cv_gcc___thread" = yes; then
7457 cat >>confdefs.h <<\_ACEOF
7458 #define HAVE___THREAD 1
7459 _ACEOF
7462 else
7463 libc_cv_gcc___thread=no
7466 if test "$libc_cv_gcc___thread" = yes; then
7467 { $as_echo "$as_me:$LINENO: checking for tls_model attribute" >&5
7468 $as_echo_n "checking for tls_model attribute... " >&6; }
7469 if test "${libc_cv_gcc_tls_model_attr+set}" = set; then
7470 $as_echo_n "(cached) " >&6
7471 else
7472 cat > conftest.c <<\EOF
7473 extern __thread int a __attribute__((tls_model ("initial-exec")));
7475 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -S -Werror conftest.c >&5'
7476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7477 (eval $ac_try) 2>&5
7478 ac_status=$?
7479 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7480 (exit $ac_status); }; }; then
7481 libc_cv_gcc_tls_model_attr=yes
7482 else
7483 libc_cv_gcc_tls_model_attr=no
7485 rm -f conftest*
7487 { $as_echo "$as_me:$LINENO: result: $libc_cv_gcc_tls_model_attr" >&5
7488 $as_echo "$libc_cv_gcc_tls_model_attr" >&6; }
7489 if test "$libc_cv_gcc_tls_model_attr" = yes; then
7490 cat >>confdefs.h <<\_ACEOF
7491 #define HAVE_TLS_MODEL_ATTRIBUTE 1
7492 _ACEOF
7497 if test -n "$submachine"; then
7498 { $as_echo "$as_me:$LINENO: checking for compiler option for CPU variant" >&5
7499 $as_echo_n "checking for compiler option for CPU variant... " >&6; }
7500 if test "${libc_cv_cc_submachine+set}" = set; then
7501 $as_echo_n "(cached) " >&6
7502 else
7503 libc_cv_cc_submachine=no
7504 for opt in "-march=$submachine" "-mcpu=$submachine"; do
7505 if { ac_try='${CC-cc} $opt -xc /dev/null -S -o /dev/null'
7506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7507 (eval $ac_try) 2>&5
7508 ac_status=$?
7509 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7510 (exit $ac_status); }; }; then
7511 libc_cv_cc_submachine="$opt"
7512 break
7514 done
7516 { $as_echo "$as_me:$LINENO: result: $libc_cv_cc_submachine" >&5
7517 $as_echo "$libc_cv_cc_submachine" >&6; }
7518 if test "x$libc_cv_cc_submachine" = xno; then
7519 { { $as_echo "$as_me:$LINENO: error: ${CC-cc} does not support $submachine" >&5
7520 $as_echo "$as_me: error: ${CC-cc} does not support $submachine" >&2;}
7521 { (exit 1); exit 1; }; }
7526 { $as_echo "$as_me:$LINENO: checking for libgd" >&5
7527 $as_echo_n "checking for libgd... " >&6; }
7528 if test "$with_gd" != "no"; then
7529 old_CFLAGS="$CFLAGS"
7530 CFLAGS="$CFLAGS $libgd_include"
7531 old_LDFLAGS="$LDFLAGS"
7532 LDFLAGS="$LDFLAGS $libgd_ldflags"
7533 old_LIBS="$LIBS"
7534 LIBS="$LIBS -lgd -lpng -lz -lm"
7535 cat >conftest.$ac_ext <<_ACEOF
7536 /* confdefs.h. */
7537 _ACEOF
7538 cat confdefs.h >>conftest.$ac_ext
7539 cat >>conftest.$ac_ext <<_ACEOF
7540 /* end confdefs.h. */
7541 #include <gd.h>
7543 main ()
7545 gdImagePng (0, 0)
7547 return 0;
7549 _ACEOF
7550 rm -f conftest.$ac_objext conftest$ac_exeext
7551 if { (ac_try="$ac_link"
7552 case "(($ac_try" in
7553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7554 *) ac_try_echo=$ac_try;;
7555 esac
7556 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7557 $as_echo "$ac_try_echo") >&5
7558 (eval "$ac_link") 2>conftest.er1
7559 ac_status=$?
7560 grep -v '^ *+' conftest.er1 >conftest.err
7561 rm -f conftest.er1
7562 cat conftest.err >&5
7563 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7564 (exit $ac_status); } && {
7565 test -z "$ac_c_werror_flag" ||
7566 test ! -s conftest.err
7567 } && test -s conftest$ac_exeext && {
7568 test "$cross_compiling" = yes ||
7569 $as_test_x conftest$ac_exeext
7570 }; then
7571 LIBGD=yes
7572 else
7573 $as_echo "$as_me: failed program was:" >&5
7574 sed 's/^/| /' conftest.$ac_ext >&5
7576 LIBGD=no
7579 rm -rf conftest.dSYM
7580 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7581 conftest$ac_exeext conftest.$ac_ext
7582 CFLAGS="$old_CFLAGS"
7583 LDFLAGS="$old_LDFLAGS"
7584 LIBS="$old_LIBS"
7585 else
7586 LIBGD=no
7588 { $as_echo "$as_me:$LINENO: result: $LIBGD" >&5
7589 $as_echo "$LIBGD" >&6; }
7592 # SELinux detection
7593 if test x$with_selinux = xno ; then
7594 have_selinux=no;
7595 else
7596 # See if we have the SELinux library
7597 { $as_echo "$as_me:$LINENO: checking for is_selinux_enabled in -lselinux" >&5
7598 $as_echo_n "checking for is_selinux_enabled in -lselinux... " >&6; }
7599 if test "${ac_cv_lib_selinux_is_selinux_enabled+set}" = set; then
7600 $as_echo_n "(cached) " >&6
7601 else
7602 ac_check_lib_save_LIBS=$LIBS
7603 LIBS="-lselinux $LIBS"
7604 cat >conftest.$ac_ext <<_ACEOF
7605 /* confdefs.h. */
7606 _ACEOF
7607 cat confdefs.h >>conftest.$ac_ext
7608 cat >>conftest.$ac_ext <<_ACEOF
7609 /* end confdefs.h. */
7611 /* Override any GCC internal prototype to avoid an error.
7612 Use char because int might match the return type of a GCC
7613 builtin and then its argument prototype would still apply. */
7614 #ifdef __cplusplus
7615 extern "C"
7616 #endif
7617 char is_selinux_enabled ();
7619 main ()
7621 return is_selinux_enabled ();
7623 return 0;
7625 _ACEOF
7626 rm -f conftest.$ac_objext conftest$ac_exeext
7627 if { (ac_try="$ac_link"
7628 case "(($ac_try" in
7629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7630 *) ac_try_echo=$ac_try;;
7631 esac
7632 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7633 $as_echo "$ac_try_echo") >&5
7634 (eval "$ac_link") 2>conftest.er1
7635 ac_status=$?
7636 grep -v '^ *+' conftest.er1 >conftest.err
7637 rm -f conftest.er1
7638 cat conftest.err >&5
7639 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7640 (exit $ac_status); } && {
7641 test -z "$ac_c_werror_flag" ||
7642 test ! -s conftest.err
7643 } && test -s conftest$ac_exeext && {
7644 test "$cross_compiling" = yes ||
7645 $as_test_x conftest$ac_exeext
7646 }; then
7647 ac_cv_lib_selinux_is_selinux_enabled=yes
7648 else
7649 $as_echo "$as_me: failed program was:" >&5
7650 sed 's/^/| /' conftest.$ac_ext >&5
7652 ac_cv_lib_selinux_is_selinux_enabled=no
7655 rm -rf conftest.dSYM
7656 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7657 conftest$ac_exeext conftest.$ac_ext
7658 LIBS=$ac_check_lib_save_LIBS
7660 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5
7661 $as_echo "$ac_cv_lib_selinux_is_selinux_enabled" >&6; }
7662 if test "x$ac_cv_lib_selinux_is_selinux_enabled" = x""yes; then
7663 have_selinux=yes
7664 else
7665 have_selinux=no
7668 # See if we have the SELinux header with the NSCD permissions in it.
7669 if test x$have_selinux = xyes ; then
7670 { $as_echo "$as_me:$LINENO: checking for NSCD Flask permissions in selinux/av_permissions.h" >&5
7671 $as_echo_n "checking for NSCD Flask permissions in selinux/av_permissions.h... " >&6; }
7672 cat >conftest.$ac_ext <<_ACEOF
7673 /* confdefs.h. */
7674 _ACEOF
7675 cat confdefs.h >>conftest.$ac_ext
7676 cat >>conftest.$ac_ext <<_ACEOF
7677 /* end confdefs.h. */
7678 #include <selinux/av_permissions.h>
7680 main ()
7682 #ifdef NSCD__SHMEMHOST
7683 return 0;
7684 #else
7685 #error NSCD__SHMEMHOST not defined
7686 #endif
7688 return 0;
7690 _ACEOF
7691 rm -f conftest.$ac_objext
7692 if { (ac_try="$ac_compile"
7693 case "(($ac_try" in
7694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7695 *) ac_try_echo=$ac_try;;
7696 esac
7697 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7698 $as_echo "$ac_try_echo") >&5
7699 (eval "$ac_compile") 2>conftest.er1
7700 ac_status=$?
7701 grep -v '^ *+' conftest.er1 >conftest.err
7702 rm -f conftest.er1
7703 cat conftest.err >&5
7704 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7705 (exit $ac_status); } && {
7706 test -z "$ac_c_werror_flag" ||
7707 test ! -s conftest.err
7708 } && test -s conftest.$ac_objext; then
7709 have_selinux=yes
7710 else
7711 $as_echo "$as_me: failed program was:" >&5
7712 sed 's/^/| /' conftest.$ac_ext >&5
7714 have_selinux=no
7717 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7718 { $as_echo "$as_me:$LINENO: result: $have_selinux" >&5
7719 $as_echo "$have_selinux" >&6; }
7722 if test x$with_selinux = xyes ; then
7723 if test x$have_selinux = xno ; then
7724 { { $as_echo "$as_me:$LINENO: error: SELinux explicitly required, but sufficiently recent SELinux library not found" >&5
7725 $as_echo "$as_me: error: SELinux explicitly required, but sufficiently recent SELinux library not found" >&2;}
7726 { (exit 1); exit 1; }; }
7730 # Check if we're building with SELinux support.
7731 if test "x$have_selinux" = xyes; then
7733 cat >>confdefs.h <<\_ACEOF
7734 #define HAVE_SELINUX 1
7735 _ACEOF
7738 # See if we have the libaudit library
7739 { $as_echo "$as_me:$LINENO: checking for audit_log_user_avc_message in -laudit" >&5
7740 $as_echo_n "checking for audit_log_user_avc_message in -laudit... " >&6; }
7741 if test "${ac_cv_lib_audit_audit_log_user_avc_message+set}" = set; then
7742 $as_echo_n "(cached) " >&6
7743 else
7744 ac_check_lib_save_LIBS=$LIBS
7745 LIBS="-laudit $LIBS"
7746 cat >conftest.$ac_ext <<_ACEOF
7747 /* confdefs.h. */
7748 _ACEOF
7749 cat confdefs.h >>conftest.$ac_ext
7750 cat >>conftest.$ac_ext <<_ACEOF
7751 /* end confdefs.h. */
7753 /* Override any GCC internal prototype to avoid an error.
7754 Use char because int might match the return type of a GCC
7755 builtin and then its argument prototype would still apply. */
7756 #ifdef __cplusplus
7757 extern "C"
7758 #endif
7759 char audit_log_user_avc_message ();
7761 main ()
7763 return audit_log_user_avc_message ();
7765 return 0;
7767 _ACEOF
7768 rm -f conftest.$ac_objext conftest$ac_exeext
7769 if { (ac_try="$ac_link"
7770 case "(($ac_try" in
7771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7772 *) ac_try_echo=$ac_try;;
7773 esac
7774 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7775 $as_echo "$ac_try_echo") >&5
7776 (eval "$ac_link") 2>conftest.er1
7777 ac_status=$?
7778 grep -v '^ *+' conftest.er1 >conftest.err
7779 rm -f conftest.er1
7780 cat conftest.err >&5
7781 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7782 (exit $ac_status); } && {
7783 test -z "$ac_c_werror_flag" ||
7784 test ! -s conftest.err
7785 } && test -s conftest$ac_exeext && {
7786 test "$cross_compiling" = yes ||
7787 $as_test_x conftest$ac_exeext
7788 }; then
7789 ac_cv_lib_audit_audit_log_user_avc_message=yes
7790 else
7791 $as_echo "$as_me: failed program was:" >&5
7792 sed 's/^/| /' conftest.$ac_ext >&5
7794 ac_cv_lib_audit_audit_log_user_avc_message=no
7797 rm -rf conftest.dSYM
7798 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7799 conftest$ac_exeext conftest.$ac_ext
7800 LIBS=$ac_check_lib_save_LIBS
7802 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_audit_audit_log_user_avc_message" >&5
7803 $as_echo "$ac_cv_lib_audit_audit_log_user_avc_message" >&6; }
7804 if test "x$ac_cv_lib_audit_audit_log_user_avc_message" = x""yes; then
7805 have_libaudit=yes
7806 else
7807 have_libaudit=no
7810 if test "x$have_libaudit" = xyes; then
7812 cat >>confdefs.h <<\_ACEOF
7813 #define HAVE_LIBAUDIT 1
7814 _ACEOF
7819 # See if we have the libcap library
7820 { $as_echo "$as_me:$LINENO: checking for cap_init in -lcap" >&5
7821 $as_echo_n "checking for cap_init in -lcap... " >&6; }
7822 if test "${ac_cv_lib_cap_cap_init+set}" = set; then
7823 $as_echo_n "(cached) " >&6
7824 else
7825 ac_check_lib_save_LIBS=$LIBS
7826 LIBS="-lcap $LIBS"
7827 cat >conftest.$ac_ext <<_ACEOF
7828 /* confdefs.h. */
7829 _ACEOF
7830 cat confdefs.h >>conftest.$ac_ext
7831 cat >>conftest.$ac_ext <<_ACEOF
7832 /* end confdefs.h. */
7834 /* Override any GCC internal prototype to avoid an error.
7835 Use char because int might match the return type of a GCC
7836 builtin and then its argument prototype would still apply. */
7837 #ifdef __cplusplus
7838 extern "C"
7839 #endif
7840 char cap_init ();
7842 main ()
7844 return cap_init ();
7846 return 0;
7848 _ACEOF
7849 rm -f conftest.$ac_objext conftest$ac_exeext
7850 if { (ac_try="$ac_link"
7851 case "(($ac_try" in
7852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7853 *) ac_try_echo=$ac_try;;
7854 esac
7855 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7856 $as_echo "$ac_try_echo") >&5
7857 (eval "$ac_link") 2>conftest.er1
7858 ac_status=$?
7859 grep -v '^ *+' conftest.er1 >conftest.err
7860 rm -f conftest.er1
7861 cat conftest.err >&5
7862 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7863 (exit $ac_status); } && {
7864 test -z "$ac_c_werror_flag" ||
7865 test ! -s conftest.err
7866 } && test -s conftest$ac_exeext && {
7867 test "$cross_compiling" = yes ||
7868 $as_test_x conftest$ac_exeext
7869 }; then
7870 ac_cv_lib_cap_cap_init=yes
7871 else
7872 $as_echo "$as_me: failed program was:" >&5
7873 sed 's/^/| /' conftest.$ac_ext >&5
7875 ac_cv_lib_cap_cap_init=no
7878 rm -rf conftest.dSYM
7879 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7880 conftest$ac_exeext conftest.$ac_ext
7881 LIBS=$ac_check_lib_save_LIBS
7883 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_cap_cap_init" >&5
7884 $as_echo "$ac_cv_lib_cap_cap_init" >&6; }
7885 if test "x$ac_cv_lib_cap_cap_init" = x""yes; then
7886 have_libcap=yes
7887 else
7888 have_libcap=no
7891 if test "x$have_libcap" = xyes; then
7893 cat >>confdefs.h <<\_ACEOF
7894 #define HAVE_LIBCAP 1
7895 _ACEOF
7903 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
7904 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
7905 if test "${ac_cv_path_GREP+set}" = set; then
7906 $as_echo_n "(cached) " >&6
7907 else
7908 if test -z "$GREP"; then
7909 ac_path_GREP_found=false
7910 # Loop through the user's path and test for each of PROGNAME-LIST
7911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7912 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7914 IFS=$as_save_IFS
7915 test -z "$as_dir" && as_dir=.
7916 for ac_prog in grep ggrep; do
7917 for ac_exec_ext in '' $ac_executable_extensions; do
7918 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
7919 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
7920 # Check for GNU ac_path_GREP and select it if it is found.
7921 # Check for GNU $ac_path_GREP
7922 case `"$ac_path_GREP" --version 2>&1` in
7923 *GNU*)
7924 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
7926 ac_count=0
7927 $as_echo_n 0123456789 >"conftest.in"
7928 while :
7930 cat "conftest.in" "conftest.in" >"conftest.tmp"
7931 mv "conftest.tmp" "conftest.in"
7932 cp "conftest.in" "conftest.nl"
7933 $as_echo 'GREP' >> "conftest.nl"
7934 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7935 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7936 ac_count=`expr $ac_count + 1`
7937 if test $ac_count -gt ${ac_path_GREP_max-0}; then
7938 # Best one so far, save it but keep looking for a better one
7939 ac_cv_path_GREP="$ac_path_GREP"
7940 ac_path_GREP_max=$ac_count
7942 # 10*(2^10) chars as input seems more than enough
7943 test $ac_count -gt 10 && break
7944 done
7945 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7946 esac
7948 $ac_path_GREP_found && break 3
7949 done
7950 done
7951 done
7952 IFS=$as_save_IFS
7953 if test -z "$ac_cv_path_GREP"; then
7954 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
7955 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
7956 { (exit 1); exit 1; }; }
7958 else
7959 ac_cv_path_GREP=$GREP
7963 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
7964 $as_echo "$ac_cv_path_GREP" >&6; }
7965 GREP="$ac_cv_path_GREP"
7968 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
7969 $as_echo_n "checking for egrep... " >&6; }
7970 if test "${ac_cv_path_EGREP+set}" = set; then
7971 $as_echo_n "(cached) " >&6
7972 else
7973 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
7974 then ac_cv_path_EGREP="$GREP -E"
7975 else
7976 if test -z "$EGREP"; then
7977 ac_path_EGREP_found=false
7978 # Loop through the user's path and test for each of PROGNAME-LIST
7979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7980 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7982 IFS=$as_save_IFS
7983 test -z "$as_dir" && as_dir=.
7984 for ac_prog in egrep; do
7985 for ac_exec_ext in '' $ac_executable_extensions; do
7986 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
7987 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
7988 # Check for GNU ac_path_EGREP and select it if it is found.
7989 # Check for GNU $ac_path_EGREP
7990 case `"$ac_path_EGREP" --version 2>&1` in
7991 *GNU*)
7992 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
7994 ac_count=0
7995 $as_echo_n 0123456789 >"conftest.in"
7996 while :
7998 cat "conftest.in" "conftest.in" >"conftest.tmp"
7999 mv "conftest.tmp" "conftest.in"
8000 cp "conftest.in" "conftest.nl"
8001 $as_echo 'EGREP' >> "conftest.nl"
8002 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
8003 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
8004 ac_count=`expr $ac_count + 1`
8005 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
8006 # Best one so far, save it but keep looking for a better one
8007 ac_cv_path_EGREP="$ac_path_EGREP"
8008 ac_path_EGREP_max=$ac_count
8010 # 10*(2^10) chars as input seems more than enough
8011 test $ac_count -gt 10 && break
8012 done
8013 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
8014 esac
8016 $ac_path_EGREP_found && break 3
8017 done
8018 done
8019 done
8020 IFS=$as_save_IFS
8021 if test -z "$ac_cv_path_EGREP"; then
8022 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
8023 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
8024 { (exit 1); exit 1; }; }
8026 else
8027 ac_cv_path_EGREP=$EGREP
8032 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
8033 $as_echo "$ac_cv_path_EGREP" >&6; }
8034 EGREP="$ac_cv_path_EGREP"
8037 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
8038 $as_echo_n "checking for ANSI C header files... " >&6; }
8039 if test "${ac_cv_header_stdc+set}" = set; then
8040 $as_echo_n "(cached) " >&6
8041 else
8042 cat >conftest.$ac_ext <<_ACEOF
8043 /* confdefs.h. */
8044 _ACEOF
8045 cat confdefs.h >>conftest.$ac_ext
8046 cat >>conftest.$ac_ext <<_ACEOF
8047 /* end confdefs.h. */
8048 #include <stdlib.h>
8049 #include <stdarg.h>
8050 #include <string.h>
8051 #include <float.h>
8054 main ()
8058 return 0;
8060 _ACEOF
8061 rm -f conftest.$ac_objext
8062 if { (ac_try="$ac_compile"
8063 case "(($ac_try" in
8064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8065 *) ac_try_echo=$ac_try;;
8066 esac
8067 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8068 $as_echo "$ac_try_echo") >&5
8069 (eval "$ac_compile") 2>conftest.er1
8070 ac_status=$?
8071 grep -v '^ *+' conftest.er1 >conftest.err
8072 rm -f conftest.er1
8073 cat conftest.err >&5
8074 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8075 (exit $ac_status); } && {
8076 test -z "$ac_c_werror_flag" ||
8077 test ! -s conftest.err
8078 } && test -s conftest.$ac_objext; then
8079 ac_cv_header_stdc=yes
8080 else
8081 $as_echo "$as_me: failed program was:" >&5
8082 sed 's/^/| /' conftest.$ac_ext >&5
8084 ac_cv_header_stdc=no
8087 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8089 if test $ac_cv_header_stdc = yes; then
8090 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8091 cat >conftest.$ac_ext <<_ACEOF
8092 /* confdefs.h. */
8093 _ACEOF
8094 cat confdefs.h >>conftest.$ac_ext
8095 cat >>conftest.$ac_ext <<_ACEOF
8096 /* end confdefs.h. */
8097 #include <string.h>
8099 _ACEOF
8100 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8101 $EGREP "memchr" >/dev/null 2>&1; then
8103 else
8104 ac_cv_header_stdc=no
8106 rm -f conftest*
8110 if test $ac_cv_header_stdc = yes; then
8111 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
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 <stdlib.h>
8120 _ACEOF
8121 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8122 $EGREP "free" >/dev/null 2>&1; then
8124 else
8125 ac_cv_header_stdc=no
8127 rm -f conftest*
8131 if test $ac_cv_header_stdc = yes; then
8132 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8133 if test "$cross_compiling" = yes; then
8135 else
8136 cat >conftest.$ac_ext <<_ACEOF
8137 /* confdefs.h. */
8138 _ACEOF
8139 cat confdefs.h >>conftest.$ac_ext
8140 cat >>conftest.$ac_ext <<_ACEOF
8141 /* end confdefs.h. */
8142 #include <ctype.h>
8143 #include <stdlib.h>
8144 #if ((' ' & 0x0FF) == 0x020)
8145 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8146 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8147 #else
8148 # define ISLOWER(c) \
8149 (('a' <= (c) && (c) <= 'i') \
8150 || ('j' <= (c) && (c) <= 'r') \
8151 || ('s' <= (c) && (c) <= 'z'))
8152 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8153 #endif
8155 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8157 main ()
8159 int i;
8160 for (i = 0; i < 256; i++)
8161 if (XOR (islower (i), ISLOWER (i))
8162 || toupper (i) != TOUPPER (i))
8163 return 2;
8164 return 0;
8166 _ACEOF
8167 rm -f conftest$ac_exeext
8168 if { (ac_try="$ac_link"
8169 case "(($ac_try" in
8170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8171 *) ac_try_echo=$ac_try;;
8172 esac
8173 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8174 $as_echo "$ac_try_echo") >&5
8175 (eval "$ac_link") 2>&5
8176 ac_status=$?
8177 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8178 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8179 { (case "(($ac_try" in
8180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8181 *) ac_try_echo=$ac_try;;
8182 esac
8183 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8184 $as_echo "$ac_try_echo") >&5
8185 (eval "$ac_try") 2>&5
8186 ac_status=$?
8187 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8188 (exit $ac_status); }; }; then
8190 else
8191 $as_echo "$as_me: program exited with status $ac_status" >&5
8192 $as_echo "$as_me: failed program was:" >&5
8193 sed 's/^/| /' conftest.$ac_ext >&5
8195 ( exit $ac_status )
8196 ac_cv_header_stdc=no
8198 rm -rf conftest.dSYM
8199 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8205 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8206 $as_echo "$ac_cv_header_stdc" >&6; }
8207 if test $ac_cv_header_stdc = yes; then
8209 cat >>confdefs.h <<\_ACEOF
8210 #define STDC_HEADERS 1
8211 _ACEOF
8215 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8225 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8226 inttypes.h stdint.h unistd.h
8228 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8229 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8230 $as_echo_n "checking for $ac_header... " >&6; }
8231 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8232 $as_echo_n "(cached) " >&6
8233 else
8234 cat >conftest.$ac_ext <<_ACEOF
8235 /* confdefs.h. */
8236 _ACEOF
8237 cat confdefs.h >>conftest.$ac_ext
8238 cat >>conftest.$ac_ext <<_ACEOF
8239 /* end confdefs.h. */
8240 $ac_includes_default
8242 #include <$ac_header>
8243 _ACEOF
8244 rm -f conftest.$ac_objext
8245 if { (ac_try="$ac_compile"
8246 case "(($ac_try" in
8247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8248 *) ac_try_echo=$ac_try;;
8249 esac
8250 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8251 $as_echo "$ac_try_echo") >&5
8252 (eval "$ac_compile") 2>conftest.er1
8253 ac_status=$?
8254 grep -v '^ *+' conftest.er1 >conftest.err
8255 rm -f conftest.er1
8256 cat conftest.err >&5
8257 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8258 (exit $ac_status); } && {
8259 test -z "$ac_c_werror_flag" ||
8260 test ! -s conftest.err
8261 } && test -s conftest.$ac_objext; then
8262 eval "$as_ac_Header=yes"
8263 else
8264 $as_echo "$as_me: failed program was:" >&5
8265 sed 's/^/| /' conftest.$ac_ext >&5
8267 eval "$as_ac_Header=no"
8270 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8272 ac_res=`eval 'as_val=${'$as_ac_Header'}
8273 $as_echo "$as_val"'`
8274 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8275 $as_echo "$ac_res" >&6; }
8276 as_val=`eval 'as_val=${'$as_ac_Header'}
8277 $as_echo "$as_val"'`
8278 if test "x$as_val" = x""yes; then
8279 cat >>confdefs.h <<_ACEOF
8280 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8281 _ACEOF
8285 done
8288 # The cast to long int works around a bug in the HP C Compiler
8289 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8290 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8291 # This bug is HP SR number 8606223364.
8292 { $as_echo "$as_me:$LINENO: checking size of long double" >&5
8293 $as_echo_n "checking size of long double... " >&6; }
8294 if test "${ac_cv_sizeof_long_double+set}" = set; then
8295 $as_echo_n "(cached) " >&6
8296 else
8297 if test "$cross_compiling" = yes; then
8298 # Depending upon the size, compute the lo and hi bounds.
8299 cat >conftest.$ac_ext <<_ACEOF
8300 /* confdefs.h. */
8301 _ACEOF
8302 cat confdefs.h >>conftest.$ac_ext
8303 cat >>conftest.$ac_ext <<_ACEOF
8304 /* end confdefs.h. */
8305 $ac_includes_default
8307 main ()
8309 static int test_array [1 - 2 * !(((long int) (sizeof (long double))) >= 0)];
8310 test_array [0] = 0
8313 return 0;
8315 _ACEOF
8316 rm -f conftest.$ac_objext
8317 if { (ac_try="$ac_compile"
8318 case "(($ac_try" in
8319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8320 *) ac_try_echo=$ac_try;;
8321 esac
8322 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8323 $as_echo "$ac_try_echo") >&5
8324 (eval "$ac_compile") 2>conftest.er1
8325 ac_status=$?
8326 grep -v '^ *+' conftest.er1 >conftest.err
8327 rm -f conftest.er1
8328 cat conftest.err >&5
8329 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8330 (exit $ac_status); } && {
8331 test -z "$ac_c_werror_flag" ||
8332 test ! -s conftest.err
8333 } && test -s conftest.$ac_objext; then
8334 ac_lo=0 ac_mid=0
8335 while :; do
8336 cat >conftest.$ac_ext <<_ACEOF
8337 /* confdefs.h. */
8338 _ACEOF
8339 cat confdefs.h >>conftest.$ac_ext
8340 cat >>conftest.$ac_ext <<_ACEOF
8341 /* end confdefs.h. */
8342 $ac_includes_default
8344 main ()
8346 static int test_array [1 - 2 * !(((long int) (sizeof (long double))) <= $ac_mid)];
8347 test_array [0] = 0
8350 return 0;
8352 _ACEOF
8353 rm -f conftest.$ac_objext
8354 if { (ac_try="$ac_compile"
8355 case "(($ac_try" in
8356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8357 *) ac_try_echo=$ac_try;;
8358 esac
8359 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8360 $as_echo "$ac_try_echo") >&5
8361 (eval "$ac_compile") 2>conftest.er1
8362 ac_status=$?
8363 grep -v '^ *+' conftest.er1 >conftest.err
8364 rm -f conftest.er1
8365 cat conftest.err >&5
8366 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8367 (exit $ac_status); } && {
8368 test -z "$ac_c_werror_flag" ||
8369 test ! -s conftest.err
8370 } && test -s conftest.$ac_objext; then
8371 ac_hi=$ac_mid; break
8372 else
8373 $as_echo "$as_me: failed program was:" >&5
8374 sed 's/^/| /' conftest.$ac_ext >&5
8376 ac_lo=`expr $ac_mid + 1`
8377 if test $ac_lo -le $ac_mid; then
8378 ac_lo= ac_hi=
8379 break
8381 ac_mid=`expr 2 '*' $ac_mid + 1`
8384 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8385 done
8386 else
8387 $as_echo "$as_me: failed program was:" >&5
8388 sed 's/^/| /' conftest.$ac_ext >&5
8390 cat >conftest.$ac_ext <<_ACEOF
8391 /* confdefs.h. */
8392 _ACEOF
8393 cat confdefs.h >>conftest.$ac_ext
8394 cat >>conftest.$ac_ext <<_ACEOF
8395 /* end confdefs.h. */
8396 $ac_includes_default
8398 main ()
8400 static int test_array [1 - 2 * !(((long int) (sizeof (long double))) < 0)];
8401 test_array [0] = 0
8404 return 0;
8406 _ACEOF
8407 rm -f conftest.$ac_objext
8408 if { (ac_try="$ac_compile"
8409 case "(($ac_try" in
8410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8411 *) ac_try_echo=$ac_try;;
8412 esac
8413 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8414 $as_echo "$ac_try_echo") >&5
8415 (eval "$ac_compile") 2>conftest.er1
8416 ac_status=$?
8417 grep -v '^ *+' conftest.er1 >conftest.err
8418 rm -f conftest.er1
8419 cat conftest.err >&5
8420 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8421 (exit $ac_status); } && {
8422 test -z "$ac_c_werror_flag" ||
8423 test ! -s conftest.err
8424 } && test -s conftest.$ac_objext; then
8425 ac_hi=-1 ac_mid=-1
8426 while :; do
8427 cat >conftest.$ac_ext <<_ACEOF
8428 /* confdefs.h. */
8429 _ACEOF
8430 cat confdefs.h >>conftest.$ac_ext
8431 cat >>conftest.$ac_ext <<_ACEOF
8432 /* end confdefs.h. */
8433 $ac_includes_default
8435 main ()
8437 static int test_array [1 - 2 * !(((long int) (sizeof (long double))) >= $ac_mid)];
8438 test_array [0] = 0
8441 return 0;
8443 _ACEOF
8444 rm -f conftest.$ac_objext
8445 if { (ac_try="$ac_compile"
8446 case "(($ac_try" in
8447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8448 *) ac_try_echo=$ac_try;;
8449 esac
8450 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8451 $as_echo "$ac_try_echo") >&5
8452 (eval "$ac_compile") 2>conftest.er1
8453 ac_status=$?
8454 grep -v '^ *+' conftest.er1 >conftest.err
8455 rm -f conftest.er1
8456 cat conftest.err >&5
8457 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8458 (exit $ac_status); } && {
8459 test -z "$ac_c_werror_flag" ||
8460 test ! -s conftest.err
8461 } && test -s conftest.$ac_objext; then
8462 ac_lo=$ac_mid; break
8463 else
8464 $as_echo "$as_me: failed program was:" >&5
8465 sed 's/^/| /' conftest.$ac_ext >&5
8467 ac_hi=`expr '(' $ac_mid ')' - 1`
8468 if test $ac_mid -le $ac_hi; then
8469 ac_lo= ac_hi=
8470 break
8472 ac_mid=`expr 2 '*' $ac_mid`
8475 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8476 done
8477 else
8478 $as_echo "$as_me: failed program was:" >&5
8479 sed 's/^/| /' conftest.$ac_ext >&5
8481 ac_lo= ac_hi=
8484 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8487 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8488 # Binary search between lo and hi bounds.
8489 while test "x$ac_lo" != "x$ac_hi"; do
8490 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8491 cat >conftest.$ac_ext <<_ACEOF
8492 /* confdefs.h. */
8493 _ACEOF
8494 cat confdefs.h >>conftest.$ac_ext
8495 cat >>conftest.$ac_ext <<_ACEOF
8496 /* end confdefs.h. */
8497 $ac_includes_default
8499 main ()
8501 static int test_array [1 - 2 * !(((long int) (sizeof (long double))) <= $ac_mid)];
8502 test_array [0] = 0
8505 return 0;
8507 _ACEOF
8508 rm -f conftest.$ac_objext
8509 if { (ac_try="$ac_compile"
8510 case "(($ac_try" in
8511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8512 *) ac_try_echo=$ac_try;;
8513 esac
8514 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8515 $as_echo "$ac_try_echo") >&5
8516 (eval "$ac_compile") 2>conftest.er1
8517 ac_status=$?
8518 grep -v '^ *+' conftest.er1 >conftest.err
8519 rm -f conftest.er1
8520 cat conftest.err >&5
8521 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8522 (exit $ac_status); } && {
8523 test -z "$ac_c_werror_flag" ||
8524 test ! -s conftest.err
8525 } && test -s conftest.$ac_objext; then
8526 ac_hi=$ac_mid
8527 else
8528 $as_echo "$as_me: failed program was:" >&5
8529 sed 's/^/| /' conftest.$ac_ext >&5
8531 ac_lo=`expr '(' $ac_mid ')' + 1`
8534 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8535 done
8536 case $ac_lo in
8537 ?*) ac_cv_sizeof_long_double=$ac_lo;;
8538 '') if test "$ac_cv_type_long_double" = yes; then
8539 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
8540 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8541 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long double)
8542 See \`config.log' for more details." >&5
8543 $as_echo "$as_me: error: cannot compute sizeof (long double)
8544 See \`config.log' for more details." >&2;}
8545 { (exit 77); exit 77; }; }; }
8546 else
8547 ac_cv_sizeof_long_double=0
8548 fi ;;
8549 esac
8550 else
8551 cat >conftest.$ac_ext <<_ACEOF
8552 /* confdefs.h. */
8553 _ACEOF
8554 cat confdefs.h >>conftest.$ac_ext
8555 cat >>conftest.$ac_ext <<_ACEOF
8556 /* end confdefs.h. */
8557 $ac_includes_default
8558 static long int longval () { return (long int) (sizeof (long double)); }
8559 static unsigned long int ulongval () { return (long int) (sizeof (long double)); }
8560 #include <stdio.h>
8561 #include <stdlib.h>
8563 main ()
8566 FILE *f = fopen ("conftest.val", "w");
8567 if (! f)
8568 return 1;
8569 if (((long int) (sizeof (long double))) < 0)
8571 long int i = longval ();
8572 if (i != ((long int) (sizeof (long double))))
8573 return 1;
8574 fprintf (f, "%ld", i);
8576 else
8578 unsigned long int i = ulongval ();
8579 if (i != ((long int) (sizeof (long double))))
8580 return 1;
8581 fprintf (f, "%lu", i);
8583 /* Do not output a trailing newline, as this causes \r\n confusion
8584 on some platforms. */
8585 return ferror (f) || fclose (f) != 0;
8588 return 0;
8590 _ACEOF
8591 rm -f conftest$ac_exeext
8592 if { (ac_try="$ac_link"
8593 case "(($ac_try" in
8594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8595 *) ac_try_echo=$ac_try;;
8596 esac
8597 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8598 $as_echo "$ac_try_echo") >&5
8599 (eval "$ac_link") 2>&5
8600 ac_status=$?
8601 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8602 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8603 { (case "(($ac_try" in
8604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8605 *) ac_try_echo=$ac_try;;
8606 esac
8607 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8608 $as_echo "$ac_try_echo") >&5
8609 (eval "$ac_try") 2>&5
8610 ac_status=$?
8611 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8612 (exit $ac_status); }; }; then
8613 ac_cv_sizeof_long_double=`cat conftest.val`
8614 else
8615 $as_echo "$as_me: program exited with status $ac_status" >&5
8616 $as_echo "$as_me: failed program was:" >&5
8617 sed 's/^/| /' conftest.$ac_ext >&5
8619 ( exit $ac_status )
8620 if test "$ac_cv_type_long_double" = yes; then
8621 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
8622 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8623 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long double)
8624 See \`config.log' for more details." >&5
8625 $as_echo "$as_me: error: cannot compute sizeof (long double)
8626 See \`config.log' for more details." >&2;}
8627 { (exit 77); exit 77; }; }; }
8628 else
8629 ac_cv_sizeof_long_double=0
8632 rm -rf conftest.dSYM
8633 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8635 rm -f conftest.val
8637 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_double" >&5
8638 $as_echo "$ac_cv_sizeof_long_double" >&6; }
8642 cat >>confdefs.h <<_ACEOF
8643 #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
8644 _ACEOF
8647 sizeof_long_double=$ac_cv_sizeof_long_double
8650 ### End of automated tests.
8651 ### Now run sysdeps configure fragments.
8653 # They also can set these variables.
8654 use_ldconfig=no
8655 ldd_rewrite_script=no
8656 libc_cv_sysconfdir=$sysconfdir
8657 libc_cv_gcc_unwind_find_fde=no
8658 libc_cv_idn=no
8660 # Iterate over all the sysdep directories we will use, running their
8661 # configure fragments, and looking for a uname implementation.
8662 uname=
8663 for dir in $sysnames; do
8664 case $dir in
8665 /*) dest=$dir ;;
8666 *) dest=$srcdir/$dir ;;
8667 esac
8668 if test -r $dest/configure; then
8669 { $as_echo "$as_me:$LINENO: result: running configure fragment for $dir" >&5
8670 $as_echo "running configure fragment for $dir" >&6; }
8671 . $dest/configure
8674 if test -z "$uname"; then
8675 if test -r $dest/uname.c ||
8676 test -r $dest/uname.S ||
8677 { test -r $dest/syscalls.list &&
8678 grep '^uname[ ]' $dest/syscalls.list >/dev/null; }; then
8679 uname=$dir
8682 done
8684 if test x$libc_cv_gcc_unwind_find_fde = xyes; then
8685 cat >>confdefs.h <<\_ACEOF
8686 #define EXPORT_UNWIND_FIND_FDE 1
8687 _ACEOF
8692 # If we will use the generic uname implementation, we must figure out what
8693 # it will say by examining the system, and write the results in config-name.h.
8694 if test "$uname" = "sysdeps/generic"; then
8696 uname_sysname=`echo $config_os | sed 's/[0-9.]*$//'`
8697 if test $uname_sysname != $config_os; then
8698 config_release=`echo $config_os | sed s/$uname_sysname//`
8701 { $as_echo "$as_me:$LINENO: checking OS release for uname" >&5
8702 $as_echo_n "checking OS release for uname... " >&6; }
8703 if test "${libc_cv_uname_release+set}" = set; then
8704 $as_echo_n "(cached) " >&6
8705 else
8706 if test -r /vmunix; then
8707 kernel_id=`strings /vmunix | grep UNIX`
8708 elif test -r /dynix; then
8709 kernel_id=`strings /dynix | grep DYNIX`
8710 else
8711 kernel_id=
8714 kernel_release=`echo "$kernel_id" | sed 's/^[^0-9.]*\([0-9.]*\).*$/\1/'`
8715 if test x`echo "$config_release" | sed "s/^$kernel_release//"` \
8716 != x$config_release; then
8717 # The configuration release is a substring of the kernel release.
8718 libc_cv_uname_release=$kernel_release
8719 elif test x$config_release != x; then
8720 libc_cv_uname_release=$config_release
8721 elif test x$kernel_release != x; then
8722 libc_cv_uname_release=$kernel_release
8723 else
8724 libc_cv_uname_release=unknown
8727 { $as_echo "$as_me:$LINENO: result: $libc_cv_uname_release" >&5
8728 $as_echo "$libc_cv_uname_release" >&6; }
8729 uname_release="$libc_cv_uname_release"
8731 { $as_echo "$as_me:$LINENO: checking OS version for uname" >&5
8732 $as_echo_n "checking OS version for uname... " >&6; }
8733 if test "${libc_cv_uname_version+set}" = set; then
8734 $as_echo_n "(cached) " >&6
8735 else
8736 if test -r /vmunix; then
8737 kernel_id=`strings /vmunix | grep UNIX`
8738 elif test -r /dynix; then
8739 kernel_id=`strings /dynix | grep DYNIX`
8740 else
8741 kernel_id=
8744 kernel_version=`echo "$kernel_id" | sed 's/^[^#]*#\([0-9]*\).*$/\1/'`
8745 if test -n "$kernel_version"; then
8746 libc_cv_uname_version="$kernel_version"
8747 else
8748 libc_cv_uname_version=unknown
8751 { $as_echo "$as_me:$LINENO: result: $libc_cv_uname_version" >&5
8752 $as_echo "$libc_cv_uname_version" >&6; }
8753 uname_version="$libc_cv_uname_version"
8755 config_uname=config-name.h:config-name.in
8756 else
8757 # For non-generic uname, we don't need to create config-name.h at all.
8758 config_uname=
8761 cat >>confdefs.h <<\_ACEOF
8762 #define USE_IN_LIBIO 1
8763 _ACEOF
8766 # Test for old glibc 2.0.x headers so that they can be removed properly
8767 # Search only in includedir.
8768 { $as_echo "$as_me:$LINENO: checking for old glibc 2.0.x headers" >&5
8769 $as_echo_n "checking for old glibc 2.0.x headers... " >&6; }
8770 if eval test -f "${includedir}/elfclass.h" -a -f "${includedir}/fcntlbits.h"
8771 then
8772 old_glibc_headers=yes
8773 else
8774 old_glibc_headers=no
8776 { $as_echo "$as_me:$LINENO: result: $old_glibc_headers" >&5
8777 $as_echo "$old_glibc_headers" >&6; }
8778 if test ${old_glibc_headers} = yes; then
8779 { $as_echo "$as_me:$LINENO: WARNING: *** During \"make install\" old headers from glibc 2.0.x will" >&5
8780 $as_echo "$as_me: WARNING: *** During \"make install\" old headers from glibc 2.0.x will" >&2;}
8781 { $as_echo "$as_me:$LINENO: WARNING: *** be removed." >&5
8782 $as_echo "$as_me: WARNING: *** be removed." >&2;}
8800 if test $elf = yes; then
8801 cat >>confdefs.h <<\_ACEOF
8802 #define HAVE_ELF 1
8803 _ACEOF
8806 if test $xcoff = yes; then
8807 cat >>confdefs.h <<\_ACEOF
8808 #define HAVE_XCOFF 1
8809 _ACEOF
8815 if test $shared = default; then
8816 shared=$elf
8819 { $as_echo "$as_me:$LINENO: checking whether -fPIC is default" >&5
8820 $as_echo_n "checking whether -fPIC is default... " >&6; }
8821 if test "${libc_cv_pic_default+set}" = set; then
8822 $as_echo_n "(cached) " >&6
8823 else
8824 libc_cv_pic_default=yes
8825 cat > conftest.c <<EOF
8826 #if defined __PIC__ || defined __pic__ || defined PIC || defined pic
8827 # error PIC is default.
8828 #endif
8830 if eval "${CC-cc} -S conftest.c 2>&5 1>&5"; then
8831 libc_cv_pic_default=no
8833 rm -f conftest.*
8835 { $as_echo "$as_me:$LINENO: result: $libc_cv_pic_default" >&5
8836 $as_echo "$libc_cv_pic_default" >&6; }
8849 if test "`(cd $srcdir; pwd)`" = "`pwd`"; then
8850 config_makefile=
8851 else
8852 config_makefile=Makefile
8855 VERSION=`sed -n -e 's/^#define VERSION "\([^"]*\)"/\1/p' < $srcdir/version.h`
8856 RELEASE=`sed -n -e 's/^#define RELEASE "\([^"]*\)"/\1/p' < $srcdir/version.h`
8860 ac_config_files="$ac_config_files config.make ${config_makefile} ${config_uname}"
8862 ac_config_commands="$ac_config_commands default"
8864 cat >confcache <<\_ACEOF
8865 # This file is a shell script that caches the results of configure
8866 # tests run on this system so they can be shared between configure
8867 # scripts and configure runs, see configure's option --config-cache.
8868 # It is not useful on other systems. If it contains results you don't
8869 # want to keep, you may remove or edit it.
8871 # config.status only pays attention to the cache file if you give it
8872 # the --recheck option to rerun configure.
8874 # `ac_cv_env_foo' variables (set or unset) will be overridden when
8875 # loading this file, other *unset* `ac_cv_foo' will be assigned the
8876 # following values.
8878 _ACEOF
8880 # The following way of writing the cache mishandles newlines in values,
8881 # but we know of no workaround that is simple, portable, and efficient.
8882 # So, we kill variables containing newlines.
8883 # Ultrix sh set writes to stderr and can't be redirected directly,
8884 # and sets the high bit in the cache file unless we assign to the vars.
8886 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
8887 eval ac_val=\$$ac_var
8888 case $ac_val in #(
8889 *${as_nl}*)
8890 case $ac_var in #(
8891 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
8892 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
8893 esac
8894 case $ac_var in #(
8895 _ | IFS | as_nl) ;; #(
8896 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
8897 *) $as_unset $ac_var ;;
8898 esac ;;
8899 esac
8900 done
8902 (set) 2>&1 |
8903 case $as_nl`(ac_space=' '; set) 2>&1` in #(
8904 *${as_nl}ac_space=\ *)
8905 # `set' does not quote correctly, so add quotes (double-quote
8906 # substitution turns \\\\ into \\, and sed turns \\ into \).
8907 sed -n \
8908 "s/'/'\\\\''/g;
8909 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
8910 ;; #(
8912 # `set' quotes correctly as required by POSIX, so do not add quotes.
8913 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
8915 esac |
8916 sort
8918 sed '
8919 /^ac_cv_env_/b end
8920 t clear
8921 :clear
8922 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
8923 t end
8924 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8925 :end' >>confcache
8926 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
8927 if test -w "$cache_file"; then
8928 test "x$cache_file" != "x/dev/null" &&
8929 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
8930 $as_echo "$as_me: updating cache $cache_file" >&6;}
8931 cat confcache >$cache_file
8932 else
8933 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
8934 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
8937 rm -f confcache
8939 test "x$prefix" = xNONE && prefix=$ac_default_prefix
8940 # Let make expand exec_prefix.
8941 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8943 DEFS=-DHAVE_CONFIG_H
8945 ac_libobjs=
8946 ac_ltlibobjs=
8947 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
8948 # 1. Remove the extension, and $U if already installed.
8949 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
8950 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
8951 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
8952 # will be set to the directory where LIBOBJS objects are built.
8953 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
8954 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
8955 done
8956 LIBOBJS=$ac_libobjs
8958 LTLIBOBJS=$ac_ltlibobjs
8962 : ${CONFIG_STATUS=./config.status}
8963 ac_write_fail=0
8964 ac_clean_files_save=$ac_clean_files
8965 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
8966 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
8967 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
8968 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8969 #! $SHELL
8970 # Generated by $as_me.
8971 # Run this file to recreate the current configuration.
8972 # Compiler output produced by configure, useful for debugging
8973 # configure, is in config.log if it exists.
8975 debug=false
8976 ac_cs_recheck=false
8977 ac_cs_silent=false
8978 SHELL=\${CONFIG_SHELL-$SHELL}
8979 _ACEOF
8981 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8982 ## --------------------- ##
8983 ## M4sh Initialization. ##
8984 ## --------------------- ##
8986 # Be more Bourne compatible
8987 DUALCASE=1; export DUALCASE # for MKS sh
8988 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
8989 emulate sh
8990 NULLCMD=:
8991 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
8992 # is contrary to our usage. Disable this feature.
8993 alias -g '${1+"$@"}'='"$@"'
8994 setopt NO_GLOB_SUBST
8995 else
8996 case `(set -o) 2>/dev/null` in
8997 *posix*) set -o posix ;;
8998 esac
9005 # PATH needs CR
9006 # Avoid depending upon Character Ranges.
9007 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
9008 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
9009 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
9010 as_cr_digits='0123456789'
9011 as_cr_alnum=$as_cr_Letters$as_cr_digits
9013 as_nl='
9015 export as_nl
9016 # Printing a long string crashes Solaris 7 /usr/bin/printf.
9017 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
9018 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
9019 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
9020 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
9021 as_echo='printf %s\n'
9022 as_echo_n='printf %s'
9023 else
9024 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
9025 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
9026 as_echo_n='/usr/ucb/echo -n'
9027 else
9028 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
9029 as_echo_n_body='eval
9030 arg=$1;
9031 case $arg in
9032 *"$as_nl"*)
9033 expr "X$arg" : "X\\(.*\\)$as_nl";
9034 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
9035 esac;
9036 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
9038 export as_echo_n_body
9039 as_echo_n='sh -c $as_echo_n_body as_echo'
9041 export as_echo_body
9042 as_echo='sh -c $as_echo_body as_echo'
9045 # The user is always right.
9046 if test "${PATH_SEPARATOR+set}" != set; then
9047 PATH_SEPARATOR=:
9048 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
9049 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
9050 PATH_SEPARATOR=';'
9054 # Support unset when possible.
9055 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
9056 as_unset=unset
9057 else
9058 as_unset=false
9062 # IFS
9063 # We need space, tab and new line, in precisely that order. Quoting is
9064 # there to prevent editors from complaining about space-tab.
9065 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
9066 # splitting by setting IFS to empty value.)
9067 IFS=" "" $as_nl"
9069 # Find who we are. Look in the path if we contain no directory separator.
9070 case $0 in
9071 *[\\/]* ) as_myself=$0 ;;
9072 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9073 for as_dir in $PATH
9075 IFS=$as_save_IFS
9076 test -z "$as_dir" && as_dir=.
9077 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
9078 done
9079 IFS=$as_save_IFS
9082 esac
9083 # We did not find ourselves, most probably we were run as `sh COMMAND'
9084 # in which case we are not to be found in the path.
9085 if test "x$as_myself" = x; then
9086 as_myself=$0
9088 if test ! -f "$as_myself"; then
9089 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
9090 { (exit 1); exit 1; }
9093 # Work around bugs in pre-3.0 UWIN ksh.
9094 for as_var in ENV MAIL MAILPATH
9095 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
9096 done
9097 PS1='$ '
9098 PS2='> '
9099 PS4='+ '
9101 # NLS nuisances.
9102 LC_ALL=C
9103 export LC_ALL
9104 LANGUAGE=C
9105 export LANGUAGE
9107 # Required to use basename.
9108 if expr a : '\(a\)' >/dev/null 2>&1 &&
9109 test "X`expr 00001 : '.*\(...\)'`" = X001; then
9110 as_expr=expr
9111 else
9112 as_expr=false
9115 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
9116 as_basename=basename
9117 else
9118 as_basename=false
9122 # Name of the executable.
9123 as_me=`$as_basename -- "$0" ||
9124 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
9125 X"$0" : 'X\(//\)$' \| \
9126 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
9127 $as_echo X/"$0" |
9128 sed '/^.*\/\([^/][^/]*\)\/*$/{
9129 s//\1/
9132 /^X\/\(\/\/\)$/{
9133 s//\1/
9136 /^X\/\(\/\).*/{
9137 s//\1/
9140 s/.*/./; q'`
9142 # CDPATH.
9143 $as_unset CDPATH
9147 as_lineno_1=$LINENO
9148 as_lineno_2=$LINENO
9149 test "x$as_lineno_1" != "x$as_lineno_2" &&
9150 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
9152 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
9153 # uniformly replaced by the line number. The first 'sed' inserts a
9154 # line-number line after each line using $LINENO; the second 'sed'
9155 # does the real work. The second script uses 'N' to pair each
9156 # line-number line with the line containing $LINENO, and appends
9157 # trailing '-' during substitution so that $LINENO is not a special
9158 # case at line end.
9159 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
9160 # scripts with optimization help from Paolo Bonzini. Blame Lee
9161 # E. McMahon (1931-1989) for sed's syntax. :-)
9162 sed -n '
9164 /[$]LINENO/=
9165 ' <$as_myself |
9166 sed '
9167 s/[$]LINENO.*/&-/
9168 t lineno
9170 :lineno
9172 :loop
9173 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
9174 t loop
9175 s/-\n.*//
9176 ' >$as_me.lineno &&
9177 chmod +x "$as_me.lineno" ||
9178 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
9179 { (exit 1); exit 1; }; }
9181 # Don't try to exec as it changes $[0], causing all sort of problems
9182 # (the dirname of $[0] is not the place where we might find the
9183 # original and so on. Autoconf is especially sensitive to this).
9184 . "./$as_me.lineno"
9185 # Exit status is that of the last command.
9186 exit
9190 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
9191 as_dirname=dirname
9192 else
9193 as_dirname=false
9196 ECHO_C= ECHO_N= ECHO_T=
9197 case `echo -n x` in
9198 -n*)
9199 case `echo 'x\c'` in
9200 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
9201 *) ECHO_C='\c';;
9202 esac;;
9204 ECHO_N='-n';;
9205 esac
9206 if expr a : '\(a\)' >/dev/null 2>&1 &&
9207 test "X`expr 00001 : '.*\(...\)'`" = X001; then
9208 as_expr=expr
9209 else
9210 as_expr=false
9213 rm -f conf$$ conf$$.exe conf$$.file
9214 if test -d conf$$.dir; then
9215 rm -f conf$$.dir/conf$$.file
9216 else
9217 rm -f conf$$.dir
9218 mkdir conf$$.dir 2>/dev/null
9220 if (echo >conf$$.file) 2>/dev/null; then
9221 if ln -s conf$$.file conf$$ 2>/dev/null; then
9222 as_ln_s='ln -s'
9223 # ... but there are two gotchas:
9224 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
9225 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
9226 # In both cases, we have to default to `cp -p'.
9227 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
9228 as_ln_s='cp -p'
9229 elif ln conf$$.file conf$$ 2>/dev/null; then
9230 as_ln_s=ln
9231 else
9232 as_ln_s='cp -p'
9234 else
9235 as_ln_s='cp -p'
9237 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
9238 rmdir conf$$.dir 2>/dev/null
9240 if mkdir -p . 2>/dev/null; then
9241 as_mkdir_p=:
9242 else
9243 test -d ./-p && rmdir ./-p
9244 as_mkdir_p=false
9247 if test -x / >/dev/null 2>&1; then
9248 as_test_x='test -x'
9249 else
9250 if ls -dL / >/dev/null 2>&1; then
9251 as_ls_L_option=L
9252 else
9253 as_ls_L_option=
9255 as_test_x='
9256 eval sh -c '\''
9257 if test -d "$1"; then
9258 test -d "$1/.";
9259 else
9260 case $1 in
9261 -*)set "./$1";;
9262 esac;
9263 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
9264 ???[sx]*):;;*)false;;esac;fi
9265 '\'' sh
9268 as_executable_p=$as_test_x
9270 # Sed expression to map a string onto a valid CPP name.
9271 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
9273 # Sed expression to map a string onto a valid variable name.
9274 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
9277 exec 6>&1
9279 # Save the log message, to keep $[0] and so on meaningful, and to
9280 # report actual input values of CONFIG_FILES etc. instead of their
9281 # values after options handling.
9282 ac_log="
9283 This file was extended by GNU C Library $as_me (see version.h), which was
9284 generated by GNU Autoconf 2.63. Invocation command line was
9286 CONFIG_FILES = $CONFIG_FILES
9287 CONFIG_HEADERS = $CONFIG_HEADERS
9288 CONFIG_LINKS = $CONFIG_LINKS
9289 CONFIG_COMMANDS = $CONFIG_COMMANDS
9290 $ $0 $@
9292 on `(hostname || uname -n) 2>/dev/null | sed 1q`
9295 _ACEOF
9297 case $ac_config_files in *"
9298 "*) set x $ac_config_files; shift; ac_config_files=$*;;
9299 esac
9301 case $ac_config_headers in *"
9302 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
9303 esac
9306 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9307 # Files that config.status was made for.
9308 config_files="$ac_config_files"
9309 config_headers="$ac_config_headers"
9310 config_commands="$ac_config_commands"
9312 _ACEOF
9314 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9315 ac_cs_usage="\
9316 \`$as_me' instantiates files from templates according to the
9317 current configuration.
9319 Usage: $0 [OPTION]... [FILE]...
9321 -h, --help print this help, then exit
9322 -V, --version print version number and configuration settings, then exit
9323 -q, --quiet, --silent
9324 do not print progress messages
9325 -d, --debug don't remove temporary files
9326 --recheck update $as_me by reconfiguring in the same conditions
9327 --file=FILE[:TEMPLATE]
9328 instantiate the configuration file FILE
9329 --header=FILE[:TEMPLATE]
9330 instantiate the configuration header FILE
9332 Configuration files:
9333 $config_files
9335 Configuration headers:
9336 $config_headers
9338 Configuration commands:
9339 $config_commands
9341 Report bugs to <bug-autoconf@gnu.org>."
9343 _ACEOF
9344 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9345 ac_cs_version="\\
9346 GNU C Library config.status (see version.h)
9347 configured by $0, generated by GNU Autoconf 2.63,
9348 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
9350 Copyright (C) 2008 Free Software Foundation, Inc.
9351 This config.status script is free software; the Free Software Foundation
9352 gives unlimited permission to copy, distribute and modify it."
9354 ac_pwd='$ac_pwd'
9355 srcdir='$srcdir'
9356 INSTALL='$INSTALL'
9357 AWK='$AWK'
9358 test -n "\$AWK" || AWK=awk
9359 _ACEOF
9361 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9362 # The default lists apply if the user does not specify any file.
9363 ac_need_defaults=:
9364 while test $# != 0
9366 case $1 in
9367 --*=*)
9368 ac_option=`expr "X$1" : 'X\([^=]*\)='`
9369 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
9370 ac_shift=:
9373 ac_option=$1
9374 ac_optarg=$2
9375 ac_shift=shift
9377 esac
9379 case $ac_option in
9380 # Handling of the options.
9381 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9382 ac_cs_recheck=: ;;
9383 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
9384 $as_echo "$ac_cs_version"; exit ;;
9385 --debug | --debu | --deb | --de | --d | -d )
9386 debug=: ;;
9387 --file | --fil | --fi | --f )
9388 $ac_shift
9389 case $ac_optarg in
9390 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
9391 esac
9392 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
9393 ac_need_defaults=false;;
9394 --header | --heade | --head | --hea )
9395 $ac_shift
9396 case $ac_optarg in
9397 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
9398 esac
9399 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
9400 ac_need_defaults=false;;
9401 --he | --h)
9402 # Conflict between --help and --header
9403 { $as_echo "$as_me: error: ambiguous option: $1
9404 Try \`$0 --help' for more information." >&2
9405 { (exit 1); exit 1; }; };;
9406 --help | --hel | -h )
9407 $as_echo "$ac_cs_usage"; exit ;;
9408 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
9409 | -silent | --silent | --silen | --sile | --sil | --si | --s)
9410 ac_cs_silent=: ;;
9412 # This is an error.
9413 -*) { $as_echo "$as_me: error: unrecognized option: $1
9414 Try \`$0 --help' for more information." >&2
9415 { (exit 1); exit 1; }; } ;;
9417 *) ac_config_targets="$ac_config_targets $1"
9418 ac_need_defaults=false ;;
9420 esac
9421 shift
9422 done
9424 ac_configure_extra_args=
9426 if $ac_cs_silent; then
9427 exec 6>/dev/null
9428 ac_configure_extra_args="$ac_configure_extra_args --silent"
9431 _ACEOF
9432 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9433 if \$ac_cs_recheck; then
9434 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
9435 shift
9436 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
9437 CONFIG_SHELL='$SHELL'
9438 export CONFIG_SHELL
9439 exec "\$@"
9442 _ACEOF
9443 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9444 exec 5>>config.log
9446 echo
9447 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
9448 ## Running $as_me. ##
9449 _ASBOX
9450 $as_echo "$ac_log"
9451 } >&5
9453 _ACEOF
9454 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9456 # INIT-COMMANDS
9458 config_vars='$config_vars'
9460 _ACEOF
9462 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9464 # Handling of arguments.
9465 for ac_config_target in $ac_config_targets
9467 case $ac_config_target in
9468 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
9469 "config.make") CONFIG_FILES="$CONFIG_FILES config.make" ;;
9470 "${config_makefile}") CONFIG_FILES="$CONFIG_FILES ${config_makefile}" ;;
9471 "${config_uname}") CONFIG_FILES="$CONFIG_FILES ${config_uname}" ;;
9472 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
9474 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
9475 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
9476 { (exit 1); exit 1; }; };;
9477 esac
9478 done
9481 # If the user did not use the arguments to specify the items to instantiate,
9482 # then the envvar interface is used. Set only those that are not.
9483 # We use the long form for the default assignment because of an extremely
9484 # bizarre bug on SunOS 4.1.3.
9485 if $ac_need_defaults; then
9486 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
9487 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
9488 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
9491 # Have a temporary directory for convenience. Make it in the build tree
9492 # simply because there is no reason against having it here, and in addition,
9493 # creating and moving files from /tmp can sometimes cause problems.
9494 # Hook for its removal unless debugging.
9495 # Note that there is a small window in which the directory will not be cleaned:
9496 # after its creation but before its name has been assigned to `$tmp'.
9497 $debug ||
9499 tmp=
9500 trap 'exit_status=$?
9501 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
9503 trap '{ (exit 1); exit 1; }' 1 2 13 15
9505 # Create a (secure) tmp directory for tmp files.
9508 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
9509 test -n "$tmp" && test -d "$tmp"
9510 } ||
9512 tmp=./conf$$-$RANDOM
9513 (umask 077 && mkdir "$tmp")
9514 } ||
9516 $as_echo "$as_me: cannot create a temporary directory in ." >&2
9517 { (exit 1); exit 1; }
9520 # Set up the scripts for CONFIG_FILES section.
9521 # No need to generate them if there are no CONFIG_FILES.
9522 # This happens for instance with `./config.status config.h'.
9523 if test -n "$CONFIG_FILES"; then
9526 ac_cr=' '
9527 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
9528 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
9529 ac_cs_awk_cr='\\r'
9530 else
9531 ac_cs_awk_cr=$ac_cr
9534 echo 'BEGIN {' >"$tmp/subs1.awk" &&
9535 _ACEOF
9539 echo "cat >conf$$subs.awk <<_ACEOF" &&
9540 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
9541 echo "_ACEOF"
9542 } >conf$$subs.sh ||
9543 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
9544 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
9545 { (exit 1); exit 1; }; }
9546 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
9547 ac_delim='%!_!# '
9548 for ac_last_try in false false false false false :; do
9549 . ./conf$$subs.sh ||
9550 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
9551 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
9552 { (exit 1); exit 1; }; }
9554 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
9555 if test $ac_delim_n = $ac_delim_num; then
9556 break
9557 elif $ac_last_try; then
9558 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
9559 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
9560 { (exit 1); exit 1; }; }
9561 else
9562 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
9564 done
9565 rm -f conf$$subs.sh
9567 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9568 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
9569 _ACEOF
9570 sed -n '
9572 s/^/S["/; s/!.*/"]=/
9575 s/^[^!]*!//
9576 :repl
9577 t repl
9578 s/'"$ac_delim"'$//
9579 t delim
9582 s/\(.\{148\}\).*/\1/
9583 t more1
9584 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
9587 b repl
9588 :more1
9589 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
9592 s/.\{148\}//
9593 t nl
9594 :delim
9596 s/\(.\{148\}\).*/\1/
9597 t more2
9598 s/["\\]/\\&/g; s/^/"/; s/$/"/
9601 :more2
9602 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
9605 s/.\{148\}//
9606 t delim
9607 ' <conf$$subs.awk | sed '
9608 /^[^""]/{
9610 s/\n//
9612 ' >>$CONFIG_STATUS || ac_write_fail=1
9613 rm -f conf$$subs.awk
9614 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9615 _ACAWK
9616 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
9617 for (key in S) S_is_set[key] = 1
9618 FS = "\a"
9622 line = $ 0
9623 nfields = split(line, field, "@")
9624 substed = 0
9625 len = length(field[1])
9626 for (i = 2; i < nfields; i++) {
9627 key = field[i]
9628 keylen = length(key)
9629 if (S_is_set[key]) {
9630 value = S[key]
9631 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
9632 len += length(value) + length(field[++i])
9633 substed = 1
9634 } else
9635 len += 1 + keylen
9638 print line
9641 _ACAWK
9642 _ACEOF
9643 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9644 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
9645 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
9646 else
9648 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
9649 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
9650 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
9651 { (exit 1); exit 1; }; }
9652 _ACEOF
9654 # VPATH may cause trouble with some makes, so we remove $(srcdir),
9655 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
9656 # trailing colons and then remove the whole line if VPATH becomes empty
9657 # (actually we leave an empty line to preserve line numbers).
9658 if test "x$srcdir" = x.; then
9659 ac_vpsub='/^[ ]*VPATH[ ]*=/{
9660 s/:*\$(srcdir):*/:/
9661 s/:*\${srcdir}:*/:/
9662 s/:*@srcdir@:*/:/
9663 s/^\([^=]*=[ ]*\):*/\1/
9664 s/:*$//
9665 s/^[^=]*=[ ]*$//
9669 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9670 fi # test -n "$CONFIG_FILES"
9672 # Set up the scripts for CONFIG_HEADERS section.
9673 # No need to generate them if there are no CONFIG_HEADERS.
9674 # This happens for instance with `./config.status Makefile'.
9675 if test -n "$CONFIG_HEADERS"; then
9676 cat >"$tmp/defines.awk" <<\_ACAWK ||
9677 BEGIN {
9678 _ACEOF
9680 # Transform confdefs.h into an awk script `defines.awk', embedded as
9681 # here-document in config.status, that substitutes the proper values into
9682 # config.h.in to produce config.h.
9684 # Create a delimiter string that does not exist in confdefs.h, to ease
9685 # handling of long lines.
9686 ac_delim='%!_!# '
9687 for ac_last_try in false false :; do
9688 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
9689 if test -z "$ac_t"; then
9690 break
9691 elif $ac_last_try; then
9692 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
9693 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
9694 { (exit 1); exit 1; }; }
9695 else
9696 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
9698 done
9700 # For the awk script, D is an array of macro values keyed by name,
9701 # likewise P contains macro parameters if any. Preserve backslash
9702 # newline sequences.
9704 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
9705 sed -n '
9706 s/.\{148\}/&'"$ac_delim"'/g
9707 t rset
9708 :rset
9709 s/^[ ]*#[ ]*define[ ][ ]*/ /
9710 t def
9712 :def
9713 s/\\$//
9714 t bsnl
9715 s/["\\]/\\&/g
9716 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
9717 D["\1"]=" \3"/p
9718 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
9720 :bsnl
9721 s/["\\]/\\&/g
9722 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
9723 D["\1"]=" \3\\\\\\n"\\/p
9724 t cont
9725 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
9726 t cont
9728 :cont
9730 s/.\{148\}/&'"$ac_delim"'/g
9731 t clear
9732 :clear
9733 s/\\$//
9734 t bsnlc
9735 s/["\\]/\\&/g; s/^/"/; s/$/"/p
9737 :bsnlc
9738 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
9739 b cont
9740 ' <confdefs.h | sed '
9741 s/'"$ac_delim"'/"\\\
9742 "/g' >>$CONFIG_STATUS || ac_write_fail=1
9744 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9745 for (key in D) D_is_set[key] = 1
9746 FS = "\a"
9748 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
9749 line = \$ 0
9750 split(line, arg, " ")
9751 if (arg[1] == "#") {
9752 defundef = arg[2]
9753 mac1 = arg[3]
9754 } else {
9755 defundef = substr(arg[1], 2)
9756 mac1 = arg[2]
9758 split(mac1, mac2, "(") #)
9759 macro = mac2[1]
9760 prefix = substr(line, 1, index(line, defundef) - 1)
9761 if (D_is_set[macro]) {
9762 # Preserve the white space surrounding the "#".
9763 print prefix "define", macro P[macro] D[macro]
9764 next
9765 } else {
9766 # Replace #undef with comments. This is necessary, for example,
9767 # in the case of _POSIX_SOURCE, which is predefined and required
9768 # on some systems where configure will not decide to define it.
9769 if (defundef == "undef") {
9770 print "/*", prefix defundef, macro, "*/"
9771 next
9775 { print }
9776 _ACAWK
9777 _ACEOF
9778 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9779 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
9780 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
9781 { (exit 1); exit 1; }; }
9782 fi # test -n "$CONFIG_HEADERS"
9785 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
9786 shift
9787 for ac_tag
9789 case $ac_tag in
9790 :[FHLC]) ac_mode=$ac_tag; continue;;
9791 esac
9792 case $ac_mode$ac_tag in
9793 :[FHL]*:*);;
9794 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
9795 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
9796 { (exit 1); exit 1; }; };;
9797 :[FH]-) ac_tag=-:-;;
9798 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
9799 esac
9800 ac_save_IFS=$IFS
9801 IFS=:
9802 set x $ac_tag
9803 IFS=$ac_save_IFS
9804 shift
9805 ac_file=$1
9806 shift
9808 case $ac_mode in
9809 :L) ac_source=$1;;
9810 :[FH])
9811 ac_file_inputs=
9812 for ac_f
9814 case $ac_f in
9815 -) ac_f="$tmp/stdin";;
9816 *) # Look for the file first in the build tree, then in the source tree
9817 # (if the path is not absolute). The absolute path cannot be DOS-style,
9818 # because $ac_f cannot contain `:'.
9819 test -f "$ac_f" ||
9820 case $ac_f in
9821 [\\/$]*) false;;
9822 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
9823 esac ||
9824 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
9825 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
9826 { (exit 1); exit 1; }; };;
9827 esac
9828 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
9829 ac_file_inputs="$ac_file_inputs '$ac_f'"
9830 done
9832 # Let's still pretend it is `configure' which instantiates (i.e., don't
9833 # use $as_me), people would be surprised to read:
9834 # /* config.h. Generated by config.status. */
9835 configure_input='Generated from '`
9836 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
9837 `' by configure.'
9838 if test x"$ac_file" != x-; then
9839 configure_input="$ac_file. $configure_input"
9840 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
9841 $as_echo "$as_me: creating $ac_file" >&6;}
9843 # Neutralize special characters interpreted by sed in replacement strings.
9844 case $configure_input in #(
9845 *\&* | *\|* | *\\* )
9846 ac_sed_conf_input=`$as_echo "$configure_input" |
9847 sed 's/[\\\\&|]/\\\\&/g'`;; #(
9848 *) ac_sed_conf_input=$configure_input;;
9849 esac
9851 case $ac_tag in
9852 *:-:* | *:-) cat >"$tmp/stdin" \
9853 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
9854 $as_echo "$as_me: error: could not create $ac_file" >&2;}
9855 { (exit 1); exit 1; }; } ;;
9856 esac
9858 esac
9860 ac_dir=`$as_dirname -- "$ac_file" ||
9861 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9862 X"$ac_file" : 'X\(//\)[^/]' \| \
9863 X"$ac_file" : 'X\(//\)$' \| \
9864 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
9865 $as_echo X"$ac_file" |
9866 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9867 s//\1/
9870 /^X\(\/\/\)[^/].*/{
9871 s//\1/
9874 /^X\(\/\/\)$/{
9875 s//\1/
9878 /^X\(\/\).*/{
9879 s//\1/
9882 s/.*/./; q'`
9883 { as_dir="$ac_dir"
9884 case $as_dir in #(
9885 -*) as_dir=./$as_dir;;
9886 esac
9887 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
9888 as_dirs=
9889 while :; do
9890 case $as_dir in #(
9891 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
9892 *) as_qdir=$as_dir;;
9893 esac
9894 as_dirs="'$as_qdir' $as_dirs"
9895 as_dir=`$as_dirname -- "$as_dir" ||
9896 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9897 X"$as_dir" : 'X\(//\)[^/]' \| \
9898 X"$as_dir" : 'X\(//\)$' \| \
9899 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
9900 $as_echo X"$as_dir" |
9901 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9902 s//\1/
9905 /^X\(\/\/\)[^/].*/{
9906 s//\1/
9909 /^X\(\/\/\)$/{
9910 s//\1/
9913 /^X\(\/\).*/{
9914 s//\1/
9917 s/.*/./; q'`
9918 test -d "$as_dir" && break
9919 done
9920 test -z "$as_dirs" || eval "mkdir $as_dirs"
9921 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
9922 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
9923 { (exit 1); exit 1; }; }; }
9924 ac_builddir=.
9926 case "$ac_dir" in
9927 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
9929 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
9930 # A ".." for each directory in $ac_dir_suffix.
9931 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
9932 case $ac_top_builddir_sub in
9933 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
9934 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
9935 esac ;;
9936 esac
9937 ac_abs_top_builddir=$ac_pwd
9938 ac_abs_builddir=$ac_pwd$ac_dir_suffix
9939 # for backward compatibility:
9940 ac_top_builddir=$ac_top_build_prefix
9942 case $srcdir in
9943 .) # We are building in place.
9944 ac_srcdir=.
9945 ac_top_srcdir=$ac_top_builddir_sub
9946 ac_abs_top_srcdir=$ac_pwd ;;
9947 [\\/]* | ?:[\\/]* ) # Absolute name.
9948 ac_srcdir=$srcdir$ac_dir_suffix;
9949 ac_top_srcdir=$srcdir
9950 ac_abs_top_srcdir=$srcdir ;;
9951 *) # Relative name.
9952 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
9953 ac_top_srcdir=$ac_top_build_prefix$srcdir
9954 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
9955 esac
9956 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
9959 case $ac_mode in
9962 # CONFIG_FILE
9965 case $INSTALL in
9966 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
9967 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
9968 esac
9969 _ACEOF
9971 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9972 # If the template does not know about datarootdir, expand it.
9973 # FIXME: This hack should be removed a few years after 2.60.
9974 ac_datarootdir_hack=; ac_datarootdir_seen=
9976 ac_sed_dataroot='
9977 /datarootdir/ {
9981 /@datadir@/p
9982 /@docdir@/p
9983 /@infodir@/p
9984 /@localedir@/p
9985 /@mandir@/p
9987 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
9988 *datarootdir*) ac_datarootdir_seen=yes;;
9989 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
9990 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
9991 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
9992 _ACEOF
9993 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9994 ac_datarootdir_hack='
9995 s&@datadir@&$datadir&g
9996 s&@docdir@&$docdir&g
9997 s&@infodir@&$infodir&g
9998 s&@localedir@&$localedir&g
9999 s&@mandir@&$mandir&g
10000 s&\\\${datarootdir}&$datarootdir&g' ;;
10001 esac
10002 _ACEOF
10004 # Neutralize VPATH when `$srcdir' = `.'.
10005 # Shell code in configure.ac might set extrasub.
10006 # FIXME: do we really want to maintain this feature?
10007 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10008 ac_sed_extra="$ac_vpsub
10009 $extrasub
10010 _ACEOF
10011 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10013 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
10014 s|@configure_input@|$ac_sed_conf_input|;t t
10015 s&@top_builddir@&$ac_top_builddir_sub&;t t
10016 s&@top_build_prefix@&$ac_top_build_prefix&;t t
10017 s&@srcdir@&$ac_srcdir&;t t
10018 s&@abs_srcdir@&$ac_abs_srcdir&;t t
10019 s&@top_srcdir@&$ac_top_srcdir&;t t
10020 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
10021 s&@builddir@&$ac_builddir&;t t
10022 s&@abs_builddir@&$ac_abs_builddir&;t t
10023 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
10024 s&@INSTALL@&$ac_INSTALL&;t t
10025 $ac_datarootdir_hack
10027 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
10028 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
10029 $as_echo "$as_me: error: could not create $ac_file" >&2;}
10030 { (exit 1); exit 1; }; }
10032 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
10033 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
10034 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
10035 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
10036 which seems to be undefined. Please make sure it is defined." >&5
10037 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
10038 which seems to be undefined. Please make sure it is defined." >&2;}
10040 rm -f "$tmp/stdin"
10041 case $ac_file in
10042 -) cat "$tmp/out" && rm -f "$tmp/out";;
10043 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
10044 esac \
10045 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
10046 $as_echo "$as_me: error: could not create $ac_file" >&2;}
10047 { (exit 1); exit 1; }; }
10051 # CONFIG_HEADER
10053 if test x"$ac_file" != x-; then
10055 $as_echo "/* $configure_input */" \
10056 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
10057 } >"$tmp/config.h" \
10058 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
10059 $as_echo "$as_me: error: could not create $ac_file" >&2;}
10060 { (exit 1); exit 1; }; }
10061 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
10062 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
10063 $as_echo "$as_me: $ac_file is unchanged" >&6;}
10064 else
10065 rm -f "$ac_file"
10066 mv "$tmp/config.h" "$ac_file" \
10067 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
10068 $as_echo "$as_me: error: could not create $ac_file" >&2;}
10069 { (exit 1); exit 1; }; }
10071 else
10072 $as_echo "/* $configure_input */" \
10073 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
10074 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
10075 $as_echo "$as_me: error: could not create -" >&2;}
10076 { (exit 1); exit 1; }; }
10080 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
10081 $as_echo "$as_me: executing $ac_file commands" >&6;}
10083 esac
10086 case $ac_file$ac_mode in
10087 "default":C)
10088 case $CONFIG_FILES in *config.make*)
10089 echo "$config_vars" >> config.make;;
10090 esac
10091 test -d bits || mkdir bits ;;
10093 esac
10094 done # for ac_tag
10097 { (exit 0); exit 0; }
10098 _ACEOF
10099 chmod +x $CONFIG_STATUS
10100 ac_clean_files=$ac_clean_files_save
10102 test $ac_write_fail = 0 ||
10103 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
10104 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
10105 { (exit 1); exit 1; }; }
10108 # configure is writing to config.log, and then calls config.status.
10109 # config.status does its own redirection, appending to config.log.
10110 # Unfortunately, on DOS this fails, as config.log is still kept open
10111 # by configure, so config.status won't be able to write to it; its
10112 # output is simply discarded. So we exec the FD to /dev/null,
10113 # effectively closing config.log, so it can be properly (re)opened and
10114 # appended to by config.status. When coming back to configure, we
10115 # need to make the FD available again.
10116 if test "$no_create" != yes; then
10117 ac_cs_success=:
10118 ac_config_status_args=
10119 test "$silent" = yes &&
10120 ac_config_status_args="$ac_config_status_args --quiet"
10121 exec 5>/dev/null
10122 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
10123 exec 5>>config.log
10124 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
10125 # would make configure fail if this is the last instruction.
10126 $ac_cs_success || { (exit 1); exit 1; }
10130 # CONFIG_SUBDIRS section.
10132 if test "$no_recursion" != yes; then
10134 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
10135 # so they do not pile up.
10136 ac_sub_configure_args=
10137 ac_prev=
10138 eval "set x $ac_configure_args"
10139 shift
10140 for ac_arg
10142 if test -n "$ac_prev"; then
10143 ac_prev=
10144 continue
10146 case $ac_arg in
10147 -cache-file | --cache-file | --cache-fil | --cache-fi \
10148 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
10149 ac_prev=cache_file ;;
10150 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
10151 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
10152 | --c=*)
10154 --config-cache | -C)
10156 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
10157 ac_prev=srcdir ;;
10158 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
10160 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
10161 ac_prev=prefix ;;
10162 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
10164 --disable-option-checking)
10167 case $ac_arg in
10168 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
10169 esac
10170 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
10171 esac
10172 done
10174 # Always prepend --prefix to ensure using the same prefix
10175 # in subdir configurations.
10176 ac_arg="--prefix=$prefix"
10177 case $ac_arg in
10178 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
10179 esac
10180 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
10182 # Pass --silent
10183 if test "$silent" = yes; then
10184 ac_sub_configure_args="--silent $ac_sub_configure_args"
10187 # Always prepend --disable-option-checking to silence warnings, since
10188 # different subdirs can have different --enable and --with options.
10189 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
10191 ac_popdir=`pwd`
10192 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
10194 # Do not complain, so a configure script can configure whichever
10195 # parts of a large source tree are present.
10196 test -d "$srcdir/$ac_dir" || continue
10198 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
10199 $as_echo "$as_me:$LINENO: $ac_msg" >&5
10200 $as_echo "$ac_msg" >&6
10201 { as_dir="$ac_dir"
10202 case $as_dir in #(
10203 -*) as_dir=./$as_dir;;
10204 esac
10205 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
10206 as_dirs=
10207 while :; do
10208 case $as_dir in #(
10209 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
10210 *) as_qdir=$as_dir;;
10211 esac
10212 as_dirs="'$as_qdir' $as_dirs"
10213 as_dir=`$as_dirname -- "$as_dir" ||
10214 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10215 X"$as_dir" : 'X\(//\)[^/]' \| \
10216 X"$as_dir" : 'X\(//\)$' \| \
10217 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
10218 $as_echo X"$as_dir" |
10219 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10220 s//\1/
10223 /^X\(\/\/\)[^/].*/{
10224 s//\1/
10227 /^X\(\/\/\)$/{
10228 s//\1/
10231 /^X\(\/\).*/{
10232 s//\1/
10235 s/.*/./; q'`
10236 test -d "$as_dir" && break
10237 done
10238 test -z "$as_dirs" || eval "mkdir $as_dirs"
10239 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
10240 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
10241 { (exit 1); exit 1; }; }; }
10242 ac_builddir=.
10244 case "$ac_dir" in
10245 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
10247 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
10248 # A ".." for each directory in $ac_dir_suffix.
10249 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
10250 case $ac_top_builddir_sub in
10251 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
10252 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
10253 esac ;;
10254 esac
10255 ac_abs_top_builddir=$ac_pwd
10256 ac_abs_builddir=$ac_pwd$ac_dir_suffix
10257 # for backward compatibility:
10258 ac_top_builddir=$ac_top_build_prefix
10260 case $srcdir in
10261 .) # We are building in place.
10262 ac_srcdir=.
10263 ac_top_srcdir=$ac_top_builddir_sub
10264 ac_abs_top_srcdir=$ac_pwd ;;
10265 [\\/]* | ?:[\\/]* ) # Absolute name.
10266 ac_srcdir=$srcdir$ac_dir_suffix;
10267 ac_top_srcdir=$srcdir
10268 ac_abs_top_srcdir=$srcdir ;;
10269 *) # Relative name.
10270 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
10271 ac_top_srcdir=$ac_top_build_prefix$srcdir
10272 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
10273 esac
10274 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
10277 cd "$ac_dir"
10279 # Check for guested configure; otherwise get Cygnus style configure.
10280 if test -f "$ac_srcdir/configure.gnu"; then
10281 ac_sub_configure=$ac_srcdir/configure.gnu
10282 elif test -f "$ac_srcdir/configure"; then
10283 ac_sub_configure=$ac_srcdir/configure
10284 elif test -f "$ac_srcdir/configure.in"; then
10285 # This should be Cygnus configure.
10286 ac_sub_configure=$ac_aux_dir/configure
10287 else
10288 { $as_echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
10289 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
10290 ac_sub_configure=
10293 # The recursion is here.
10294 if test -n "$ac_sub_configure"; then
10295 # Make the cache file name correct relative to the subdirectory.
10296 case $cache_file in
10297 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
10298 *) # Relative name.
10299 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
10300 esac
10302 { $as_echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
10303 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
10304 # The eval makes quoting arguments work.
10305 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
10306 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
10307 { { $as_echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
10308 $as_echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
10309 { (exit 1); exit 1; }; }
10312 cd "$ac_popdir"
10313 done
10315 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
10316 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
10317 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}