2 # From configure.in for Bash 4.0, version 4.013.
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.63 for bash 4.0-release.
6 # Report bugs to <bug-bash@gnu.org>.
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
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+"$@"}'='"$@"'
26 case `(set -o) 2>/dev/null` in
27 *posix
*) set -o posix
;;
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
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
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'
58 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
63 expr "X$arg" : "X\\(.*\\)$as_nl";
64 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
69 as_echo_n='sh
-c $as_echo_n_body as_echo
'
72 as_echo='sh
-c $as_echo_body as_echo
'
75 # The user is always right.
76 if test "${PATH_SEPARATOR+set}" != set; then
78 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
79 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
84 # Support unset when possible.
85 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
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.)
99 # Find who we are. Look in the path if we contain no directory separator.
101 *[\\/]* ) as_myself=$0 ;;
102 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
106 test -z "$as_dir" && as_dir=.
107 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
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
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
137 # Required to use basename.
138 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
139 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
145 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
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 ||
158 sed '/^.*\/\([^/][^/]*\)\/*$/{
176 if test "x$CONFIG_SHELL" = x
; then
177 if (eval ":") 2>/dev
/null
; then
183 if test $as_have_required = yes && (eval ":
193 as_func_ret_success () {
196 as_func_ret_failure () {
201 if as_func_success; then
205 echo as_func_success failed.
208 if as_func_failure; then
210 echo as_func_failure succeeded.
213 if as_func_ret_success; then
217 echo as_func_ret_success failed.
220 if as_func_ret_failure; then
222 echo as_func_ret_failure succeeded.
225 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
229 echo positional parameters were not saved.
232 test \$exitcode = 0) || { (exit 1); exit 1; }
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
243 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
244 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
247 test -z "$as_dir" && as_dir
=.
250 for as_base
in sh bash ksh sh5
; do
251 as_candidate_shells
="$as_candidate_shells $as_dir/$as_base"
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
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+"$@"}'='"$@"'
270 case `(set -o) 2>/dev/null` in
271 *posix
*) set -o posix
;;
280 CONFIG_SHELL
=$as_shell
282 if { "$as_shell" 2> /dev
/null
<<\_ASEOF
283 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
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+"$@"}'='"$@"'
291 case `(set -o) 2>/dev/null` in
292 *posix
*) set -o posix
;;
308 as_func_ret_success
() {
311 as_func_ret_failure
() {
316 if as_func_success
; then
320 echo as_func_success failed.
323 if as_func_failure
; then
325 echo as_func_failure succeeded.
328 if as_func_ret_success
; then
332 echo as_func_ret_success failed.
335 if as_func_ret_failure
; then
337 echo as_func_ret_failure succeeded.
340 if ( set x
; as_func_ret_success y
&& test x
= "$1" ); then
344 echo positional parameters were not saved.
347 test $exitcode = 0) ||
{ (exit 1); exit 1; }
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; }
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
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 () {
397 as_func_ret_success () {
400 as_func_ret_failure () {
405 if as_func_success; then
409 echo as_func_success failed.
412 if as_func_failure; then
414 echo as_func_failure succeeded.
417 if as_func_ret_success; then
421 echo as_func_ret_success failed.
424 if as_func_ret_failure; then
426 echo as_func_ret_failure succeeded.
429 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
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.
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
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. :-)
472 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
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).
484 # Exit status is that of the last command.
489 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
495 ECHO_C
= ECHO_N
= ECHO_T
=
499 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
505 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
506 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
512 rm -f conf$$ conf$$.exe conf$$.
file
513 if test -d conf$$.dir
; then
514 rm -f conf$$.dir
/conf$$.
file
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
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 ||
528 elif ln conf$$.
file conf$$
2>/dev
/null
; then
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
542 test -d .
/-p && rmdir .
/-p
546 if test -x / >/dev
/null
2>&1; then
549 if ls -dL / >/dev
/null
2>&1; then
556 if test -d "$1"; then
562 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
563 ???[sx]*):;;*)false;;esac;fi
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
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`
587 ac_default_prefix
=/usr
/local
589 ac_config_libobj_dir
=.
595 SHELL
=${CONFIG_SHELL-/bin/sh}
597 # Identity of this package.
599 PACKAGE_TARNAME
='bash'
600 PACKAGE_VERSION
='4.0-release'
601 PACKAGE_STRING
='bash 4.0-release'
602 PACKAGE_BUGREPORT
='bug-bash@gnu.org'
604 ac_unique_file
="shell.h"
605 # Factoring default headers for most tests.
606 ac_includes_default
="\
608 #ifdef HAVE_SYS_TYPES_H
609 # include <sys/types.h>
611 #ifdef HAVE_SYS_STAT_H
612 # include <sys/stat.h>
618 # ifdef HAVE_STDLIB_H
623 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
628 #ifdef HAVE_STRINGS_H
629 # include <strings.h>
631 #ifdef HAVE_INTTYPES_H
632 # include <inttypes.h>
643 ac_subst_vars
='LTLIBOBJS
675 INTL_LIBTOOL_SUFFIX_PREFIX
682 BUILD_INCLUDED_LIBINTL
784 program_transform_name
796 enable_option_checking
802 with_installed_readline
805 enable_minimal_config
807 enable_arith_for_command
808 enable_array_variables
810 enable_brace_expansion
811 enable_casemod_attributes
812 enable_casemod_expansions
813 enable_command_timing
818 enable_directory_stack
819 enable_disabled_builtins
820 enable_dparen_arithmetic
826 enable_net_redirections
827 enable_process_substitution
829 enable_prompt_string_decoding
833 enable_separate_helpfiles
834 enable_single_help_strings
835 enable_strict_posix_default
836 enable_usg_echo_default
837 enable_xpg_echo_default
846 with_included_gettext
849 ac_precious_vars
='build_alias
863 # Initialize some variables set by options.
865 ac_init_version
=false
866 ac_unrecognized_opts
=
868 # The variables have the same names as the options, with
869 # dashes changed to underlines.
877 program_transform_name
=s
,x
,x
,
885 # Installation directory options.
886 # These are left unexpanded so users can "make install exec_prefix=/foo"
887 # and all the variables that are supposed to be based on exec_prefix
888 # by default will actually change.
889 # Use braces instead of parens because sh, perl, etc. also accept them.
890 # (The list follows the same order as the GNU Coding Standards.)
891 bindir
='${exec_prefix}/bin'
892 sbindir
='${exec_prefix}/sbin'
893 libexecdir
='${exec_prefix}/libexec'
894 datarootdir
='${prefix}/share'
895 datadir
='${datarootdir}'
896 sysconfdir
='${prefix}/etc'
897 sharedstatedir
='${prefix}/com'
898 localstatedir
='${prefix}/var'
899 includedir
='${prefix}/include'
900 oldincludedir
='/usr/include'
901 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
902 infodir
='${datarootdir}/info'
907 libdir
='${exec_prefix}/lib'
908 localedir
='${datarootdir}/locale'
909 mandir
='${datarootdir}/man'
915 # If the previous option needs an argument, assign it.
916 if test -n "$ac_prev"; then
917 eval $ac_prev=\
$ac_option
923 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
927 # Accept the important Cygnus configure options, so we can diagnose typos.
929 case $ac_dashdash$ac_option in
933 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
935 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
938 -build |
--build |
--buil |
--bui |
--bu)
939 ac_prev
=build_alias
;;
940 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
941 build_alias
=$ac_optarg ;;
943 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
944 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
945 ac_prev
=cache_file
;;
946 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
947 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
948 cache_file
=$ac_optarg ;;
951 cache_file
=config.cache
;;
953 -datadir |
--datadir |
--datadi |
--datad)
955 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
956 datadir
=$ac_optarg ;;
958 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
959 |
--dataroo |
--dataro |
--datar)
960 ac_prev
=datarootdir
;;
961 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
962 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
963 datarootdir
=$ac_optarg ;;
965 -disable-* |
--disable-*)
966 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
967 # Reject names that are not valid shell variable names.
968 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
969 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
970 { (exit 1); exit 1; }; }
971 ac_useropt_orig
=$ac_useropt
972 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
973 case $ac_user_opts in
977 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
978 ac_unrecognized_sep
=', ';;
980 eval enable_
$ac_useropt=no
;;
982 -docdir |
--docdir |
--docdi |
--doc |
--do)
984 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
987 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
989 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
992 -enable-* |
--enable-*)
993 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
994 # Reject names that are not valid shell variable names.
995 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
996 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
997 { (exit 1); exit 1; }; }
998 ac_useropt_orig
=$ac_useropt
999 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1000 case $ac_user_opts in
1002 "enable_
$ac_useropt"
1004 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1005 ac_unrecognized_sep
=', ';;
1007 eval enable_
$ac_useropt=\
$ac_optarg ;;
1009 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1010 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1011 |
--exec |
--exe |
--ex)
1012 ac_prev
=exec_prefix
;;
1013 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1014 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1015 |
--exec=* |
--exe=* |
--ex=*)
1016 exec_prefix
=$ac_optarg ;;
1018 -gas |
--gas |
--ga |
--g)
1019 # Obsolete; use --with-gas.
1022 -help |
--help |
--hel |
--he |
-h)
1023 ac_init_help
=long
;;
1024 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1025 ac_init_help
=recursive
;;
1026 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1027 ac_init_help
=short
;;
1029 -host |
--host |
--hos |
--ho)
1030 ac_prev
=host_alias
;;
1031 -host=* |
--host=* |
--hos=* |
--ho=*)
1032 host_alias
=$ac_optarg ;;
1034 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1036 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1038 htmldir
=$ac_optarg ;;
1040 -includedir |
--includedir |
--includedi |
--included |
--include \
1041 |
--includ |
--inclu |
--incl |
--inc)
1042 ac_prev
=includedir
;;
1043 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1044 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1045 includedir
=$ac_optarg ;;
1047 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1049 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1050 infodir
=$ac_optarg ;;
1052 -libdir |
--libdir |
--libdi |
--libd)
1054 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1055 libdir
=$ac_optarg ;;
1057 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1058 |
--libexe |
--libex |
--libe)
1059 ac_prev
=libexecdir
;;
1060 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1061 |
--libexe=* |
--libex=* |
--libe=*)
1062 libexecdir
=$ac_optarg ;;
1064 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1065 ac_prev
=localedir
;;
1066 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1067 localedir
=$ac_optarg ;;
1069 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1070 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1071 ac_prev
=localstatedir
;;
1072 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1073 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1074 localstatedir
=$ac_optarg ;;
1076 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1078 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1079 mandir
=$ac_optarg ;;
1081 -nfp |
--nfp |
--nf)
1082 # Obsolete; use --without-fp.
1085 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1086 |
--no-cr |
--no-c |
-n)
1089 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1090 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1093 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1094 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1095 |
--oldin |
--oldi |
--old |
--ol |
--o)
1096 ac_prev
=oldincludedir
;;
1097 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1098 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1099 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1100 oldincludedir
=$ac_optarg ;;
1102 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1104 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1105 prefix
=$ac_optarg ;;
1107 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1108 |
--program-pre |
--program-pr |
--program-p)
1109 ac_prev
=program_prefix
;;
1110 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1111 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1112 program_prefix
=$ac_optarg ;;
1114 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1115 |
--program-suf |
--program-su |
--program-s)
1116 ac_prev
=program_suffix
;;
1117 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1118 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1119 program_suffix
=$ac_optarg ;;
1121 -program-transform-name |
--program-transform-name \
1122 |
--program-transform-nam |
--program-transform-na \
1123 |
--program-transform-n |
--program-transform- \
1124 |
--program-transform |
--program-transfor \
1125 |
--program-transfo |
--program-transf \
1126 |
--program-trans |
--program-tran \
1127 |
--progr-tra |
--program-tr |
--program-t)
1128 ac_prev
=program_transform_name
;;
1129 -program-transform-name=* |
--program-transform-name=* \
1130 |
--program-transform-nam=* |
--program-transform-na=* \
1131 |
--program-transform-n=* |
--program-transform-=* \
1132 |
--program-transform=* |
--program-transfor=* \
1133 |
--program-transfo=* |
--program-transf=* \
1134 |
--program-trans=* |
--program-tran=* \
1135 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1136 program_transform_name
=$ac_optarg ;;
1138 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1140 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1141 pdfdir
=$ac_optarg ;;
1143 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1145 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1148 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1149 |
-silent |
--silent |
--silen |
--sile |
--sil)
1152 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1154 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1156 sbindir
=$ac_optarg ;;
1158 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1159 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1160 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1162 ac_prev
=sharedstatedir
;;
1163 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1164 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1165 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1167 sharedstatedir
=$ac_optarg ;;
1169 -site |
--site |
--sit)
1171 -site=* |
--site=* |
--sit=*)
1174 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1176 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1177 srcdir
=$ac_optarg ;;
1179 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1180 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1181 ac_prev
=sysconfdir
;;
1182 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1183 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1184 sysconfdir
=$ac_optarg ;;
1186 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1187 ac_prev
=target_alias
;;
1188 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1189 target_alias
=$ac_optarg ;;
1191 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1194 -version |
--version |
--versio |
--versi |
--vers |
-V)
1195 ac_init_version
=: ;;
1198 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1199 # Reject names that are not valid shell variable names.
1200 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1201 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1202 { (exit 1); exit 1; }; }
1203 ac_useropt_orig
=$ac_useropt
1204 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1205 case $ac_user_opts in
1209 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1210 ac_unrecognized_sep
=', ';;
1212 eval with_
$ac_useropt=\
$ac_optarg ;;
1214 -without-* |
--without-*)
1215 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1216 # Reject names that are not valid shell variable names.
1217 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1218 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1219 { (exit 1); exit 1; }; }
1220 ac_useropt_orig
=$ac_useropt
1221 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1222 case $ac_user_opts in
1226 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1227 ac_unrecognized_sep
=', ';;
1229 eval with_
$ac_useropt=no
;;
1232 # Obsolete; use --with-x.
1235 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1236 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1237 ac_prev
=x_includes
;;
1238 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1239 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1240 x_includes
=$ac_optarg ;;
1242 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1243 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1244 ac_prev
=x_libraries
;;
1245 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1246 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1247 x_libraries
=$ac_optarg ;;
1249 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1250 Try \`$0 --help' for more information." >&2
1251 { (exit 1); exit 1; }; }
1255 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1256 # Reject names that are not valid shell variable names.
1257 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
1258 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1259 { (exit 1); exit 1; }; }
1260 eval $ac_envvar=\
$ac_optarg
1261 export $ac_envvar ;;
1264 # FIXME: should be removed in autoconf 3.0.
1265 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1266 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1267 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1268 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1274 if test -n "$ac_prev"; then
1275 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1276 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1277 { (exit 1); exit 1; }; }
1280 if test -n "$ac_unrecognized_opts"; then
1281 case $enable_option_checking in
1283 fatal
) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1284 { (exit 1); exit 1; }; } ;;
1285 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1289 # Check all directory arguments for consistency.
1290 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1291 datadir sysconfdir sharedstatedir localstatedir includedir \
1292 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1293 libdir localedir mandir
1295 eval ac_val
=\$
$ac_var
1296 # Remove trailing slashes.
1299 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1300 eval $ac_var=\
$ac_val;;
1302 # Be sure to have absolute directory names.
1304 [\\/$
]* | ?
:[\\/]* ) continue;;
1305 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1307 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1308 { (exit 1); exit 1; }; }
1311 # There might be people who depend on the old broken behavior: `$host'
1312 # used to hold the argument of --host etc.
1313 # FIXME: To remove some day.
1316 target
=$target_alias
1318 # FIXME: To remove some day.
1319 if test "x$host_alias" != x
; then
1320 if test "x$build_alias" = x
; then
1321 cross_compiling
=maybe
1322 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1323 If a cross compiler is detected then cross compile mode will be used." >&2
1324 elif test "x$build_alias" != "x$host_alias"; then
1330 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1332 test "$silent" = yes && exec 6>/dev
/null
1335 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1336 ac_ls_di
=`ls -di .` &&
1337 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1338 { $as_echo "$as_me: error: working directory cannot be determined" >&2
1339 { (exit 1); exit 1; }; }
1340 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1341 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1342 { (exit 1); exit 1; }; }
1345 # Find the source files, if location was not specified.
1346 if test -z "$srcdir"; then
1347 ac_srcdir_defaulted
=yes
1348 # Try the directory containing this script, then the parent directory.
1349 ac_confdir
=`$as_dirname -- "$as_myself" ||
1350 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1351 X"$as_myself" : 'X\(//\)[^/]' \| \
1352 X"$as_myself" : 'X\(//\)$' \| \
1353 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1354 $as_echo X"$as_myself" |
1355 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1373 if test ! -r "$srcdir/$ac_unique_file"; then
1377 ac_srcdir_defaulted
=no
1379 if test ! -r "$srcdir/$ac_unique_file"; then
1380 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1381 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1382 { (exit 1); exit 1; }; }
1384 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1386 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1387 { (exit 1); exit 1; }; }
1389 # When building in place, set srcdir=.
1390 if test "$ac_abs_confdir" = "$ac_pwd"; then
1393 # Remove unnecessary trailing slashes from srcdir.
1394 # Double slashes in file names in object file debugging info
1395 # mess up M-x gdb in Emacs.
1397 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1399 for ac_var
in $ac_precious_vars; do
1400 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1401 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1402 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1403 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1407 # Report the --help message.
1409 if test "$ac_init_help" = "long"; then
1410 # Omit some internal or obsolete options to make the list less imposing.
1411 # This message is too long to be a string in the A/UX 3.1 sh.
1413 \`configure' configures bash 4.0-release to adapt to many kinds of systems.
1415 Usage: $0 [OPTION]... [VAR=VALUE]...
1417 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1418 VAR=VALUE. See below for descriptions of some of the useful variables.
1420 Defaults for the options are specified in brackets.
1423 -h, --help display this help and exit
1424 --help=short display options specific to this package
1425 --help=recursive display the short help of all the included packages
1426 -V, --version display version information and exit
1427 -q, --quiet, --silent do not print \`checking...' messages
1428 --cache-file=FILE cache test results in FILE [disabled]
1429 -C, --config-cache alias for \`--cache-file=config.cache'
1430 -n, --no-create do not create output files
1431 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1433 Installation directories:
1434 --prefix=PREFIX install architecture-independent files in PREFIX
1435 [$ac_default_prefix]
1436 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1439 By default, \`make install' will install all the files in
1440 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1441 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1442 for instance \`--prefix=\$HOME'.
1444 For better control, use the options below.
1446 Fine tuning of the installation directories:
1447 --bindir=DIR user executables [EPREFIX/bin]
1448 --sbindir=DIR system admin executables [EPREFIX/sbin]
1449 --libexecdir=DIR program executables [EPREFIX/libexec]
1450 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1451 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1452 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1453 --libdir=DIR object code libraries [EPREFIX/lib]
1454 --includedir=DIR C header files [PREFIX/include]
1455 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1456 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1457 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1458 --infodir=DIR info documentation [DATAROOTDIR/info]
1459 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1460 --mandir=DIR man documentation [DATAROOTDIR/man]
1461 --docdir=DIR documentation root [DATAROOTDIR/doc/bash]
1462 --htmldir=DIR html documentation [DOCDIR]
1463 --dvidir=DIR dvi documentation [DOCDIR]
1464 --pdfdir=DIR pdf documentation [DOCDIR]
1465 --psdir=DIR ps documentation [DOCDIR]
1471 --build=BUILD configure
for building on BUILD
[guessed
]
1472 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1476 if test -n "$ac_init_help"; then
1477 case $ac_init_help in
1478 short | recursive
) echo "Configuration of bash 4.0-release:";;
1483 --disable-option-checking ignore unrecognized
--enable/--with options
1484 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1485 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1486 --enable-minimal-config a minimal sh-like configuration
1487 --enable-alias enable shell aliases
1488 --enable-arith-for-command
1489 enable arithmetic
for command
1490 --enable-array-variables
1491 include shell array variables
1492 --enable-bang-history turn on csh-style
history substitution
1493 --enable-brace-expansion
1494 include brace expansion
1495 --enable-casemod-attributes
1496 include case-modifying variable attributes
1497 --enable-casemod-expansions
1498 include case-modifying word expansions
1499 --enable-command-timing enable the
time reserved word and
command timing
1500 --enable-cond-command enable the conditional
command
1501 --enable-cond-regexp enable extended regular expression matching
in
1502 conditional commands
1503 --enable-coprocesses enable coprocess support and the coproc reserved
1505 --enable-debugger enable support
for bash debugger
1506 --enable-directory-stack
1507 enable builtins pushd
/popd
/dirs
1508 --enable-disabled-builtins
1509 allow disabled builtins to still be invoked
1510 --enable-dparen-arithmetic
1511 include
((...
)) command
1512 --enable-extended-glob include ksh-style extended pattern matching
1513 --enable-help-builtin include the
help builtin
1514 --enable-history turn on
command history
1515 --enable-job-control enable job control features
1516 --enable-multibyte enable multibyte characters
if OS supports them
1517 --enable-net-redirections
1518 enable /dev
/tcp
/host
/port redirection
1519 --enable-process-substitution
1520 enable process substitution
1521 --enable-progcomp enable programmable completion and the complete
1523 --enable-prompt-string-decoding
1524 turn on escape character decoding
in prompts
1525 --enable-readline turn on
command line editing
1526 --enable-restricted enable a restricted shell
1527 --enable-select include
select command
1528 --enable-separate-helpfiles
1529 use external files
for help builtin documentation
1530 --enable-single-help-strings
1531 store
help documentation as a single string to ease
1533 --enable-strict-posix-default
1534 configure bash to be posix-conformant by default
1535 --enable-usg-echo-default
1536 a synonym
for --enable-xpg-echo-default
1537 --enable-xpg-echo-default
1538 make the
echo builtin expand escape sequences by
1540 --enable-mem-scramble scramble memory on calls to malloc and free
1541 --enable-profiling allow profiling with gprof
1542 --enable-static-link link bash statically
, for use as a root shell
1543 --disable-largefile omit support
for large files
1544 --disable-nls do not use Native Language Support
1545 --disable-rpath do not hardcode runtime library paths
1548 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1549 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1550 --with-lispdir override the default lisp directory
1551 --with-afs if you are running AFS
1552 --with-bash-malloc use the Bash version of malloc
1553 --with-curses use the curses library instead of the termcap
1555 --with-gnu-malloc synonym
for --with-bash-malloc
1556 --with-installed-readline
1557 use a version of the readline library that is
1559 --with-purecov configure to postprocess with pure coverage
1560 --with-purify configure to postprocess with purify
1561 --with-gnu-ld assume the C compiler uses GNU ld default
=no
1562 --with-libiconv-prefix[=DIR
] search
for libiconv
in DIR
/include and DIR
/lib
1563 --without-libiconv-prefix don
't search for libiconv in includedir and libdir
1564 --with-included-gettext use the GNU gettext library included here
1565 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1566 --without-libintl-prefix don't search
for libintl
in includedir and libdir
1568 Some influential environment variables
:
1570 location of bash debugger initialization
file
1571 CC C compiler
command
1572 CFLAGS C compiler flags
1573 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1574 nonstandard directory
<lib dir
>
1575 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1576 CPPFLAGS C
/C
++/Objective C preprocessor flags
, e.g.
-I<include dir
> if
1577 you have headers
in a nonstandard directory
<include dir
>
1579 YACC The
`Yet Another C Compiler' implementation to use. Defaults to
1580 the first program found out of: `bison
-y', `byacc', `yacc'.
1581 YFLAGS The list of arguments that will be passed by default to $YACC.
1582 This script will default YFLAGS to the empty string to avoid a
1583 default value of `-d' given by some make applications.
1585 Use these variables to override the choices made by `configure' or to
help
1586 it to
find libraries and programs with nonstandard names
/locations.
1588 Report bugs to
<bug-bash@gnu.org
>.
1593 if test "$ac_init_help" = "recursive"; then
1594 # If there are subdirs, report their specific --help.
1595 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
1596 test -d "$ac_dir" ||
1597 { cd "$srcdir" && ac_pwd
=`pwd` && srcdir
=.
&& test -d "$ac_dir"; } ||
1602 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1604 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1605 # A ".." for each directory in $ac_dir_suffix.
1606 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1607 case $ac_top_builddir_sub in
1608 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1609 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
1612 ac_abs_top_builddir
=$ac_pwd
1613 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
1614 # for backward compatibility:
1615 ac_top_builddir
=$ac_top_build_prefix
1618 .
) # We are building in place.
1620 ac_top_srcdir
=$ac_top_builddir_sub
1621 ac_abs_top_srcdir
=$ac_pwd ;;
1622 [\\/]* | ?
:[\\/]* ) # Absolute name.
1623 ac_srcdir
=$srcdir$ac_dir_suffix;
1624 ac_top_srcdir
=$srcdir
1625 ac_abs_top_srcdir
=$srcdir ;;
1627 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
1628 ac_top_srcdir
=$ac_top_build_prefix$srcdir
1629 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
1631 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
1633 cd "$ac_dir" ||
{ ac_status
=$?
; continue; }
1634 # Check for guested configure.
1635 if test -f "$ac_srcdir/configure.gnu"; then
1637 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1638 elif test -f "$ac_srcdir/configure"; then
1640 $SHELL "$ac_srcdir/configure" --help=recursive
1642 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1644 cd "$ac_pwd" ||
{ ac_status
=$?
; break; }
1648 test -n "$ac_init_help" && exit $ac_status
1649 if $ac_init_version; then
1651 bash configure
4.0-release
1652 generated by GNU Autoconf
2.63
1654 Copyright
(C
) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1655 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation
, Inc.
1656 This configure
script is free software
; the Free Software Foundation
1657 gives unlimited permission to copy
, distribute and modify it.
1661 cat >config.log
<<_ACEOF
1662 This file contains any messages produced by compilers while
1663 running configure, to aid debugging if configure makes a mistake.
1665 It was created by bash $as_me 4.0-release, which was
1666 generated by GNU Autoconf 2.63. Invocation command line was
1678 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1679 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1680 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1681 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1682 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1684 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1685 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1687 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1688 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1689 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1690 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1691 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1692 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1693 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1697 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1701 test -z "$as_dir" && as_dir
=.
1702 $as_echo "PATH: $as_dir"
1718 # Keep a trace of the command line.
1719 # Strip out --no-create and --no-recursion so they do not pile up.
1720 # Strip out --silent because we don't want to record it for future runs.
1721 # Also quote any args containing shell meta-characters.
1722 # Make two passes to allow for proper duplicate-argument suppression.
1726 ac_must_keep_next
=false
1732 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
1733 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1734 |
-silent |
--silent |
--silen |
--sile |
--sil)
1737 ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1740 1) ac_configure_args0
="$ac_configure_args0 '$ac_arg'" ;;
1742 ac_configure_args1
="$ac_configure_args1 '$ac_arg'"
1743 if test $ac_must_keep_next = true
; then
1744 ac_must_keep_next
=false
# Got value, back to normal.
1747 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
1748 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
1749 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
1750 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
1751 case "$ac_configure_args0 " in
1752 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1755 -* ) ac_must_keep_next
=true
;;
1758 ac_configure_args
="$ac_configure_args '$ac_arg'"
1763 $as_unset ac_configure_args0 ||
test "${ac_configure_args0+set}" != set ||
{ ac_configure_args0
=; export ac_configure_args0
; }
1764 $as_unset ac_configure_args1 ||
test "${ac_configure_args1+set}" != set ||
{ ac_configure_args1
=; export ac_configure_args1
; }
1766 # When interrupted or exit'd, cleanup temporary files, and complete
1767 # config.log. We remove comments because anyway the quotes in there
1768 # would cause problems or look ugly.
1769 # WARNING: Use '\'' to represent an apostrophe within the trap.
1770 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1771 trap 'exit_status=$?
1772 # Save into config.log some information that might help in debugging.
1777 ## ---------------- ##
1778 ## Cache variables. ##
1779 ## ---------------- ##
1782 # The following way of writing the cache mishandles newlines in values,
1784 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1785 eval ac_val=\$$ac_var
1789 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1790 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1793 _ | IFS | as_nl) ;; #(
1794 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1795 *) $as_unset $ac_var ;;
1800 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1801 *${as_nl}ac_space=\ *)
1803 "s/'\''/'\''\\\\'\'''\''/g;
1804 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1807 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1815 ## ----------------- ##
1816 ## Output variables. ##
1817 ## ----------------- ##
1820 for ac_var in $ac_subst_vars
1822 eval ac_val=\$$ac_var
1824 *\'\''*) ac_val
=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1826 $as_echo "$ac_var='\''$ac_val'\''"
1830 if test -n "$ac_subst_files"; then
1832 ## ------------------- ##
1833 ## File substitutions. ##
1834 ## ------------------- ##
1837 for ac_var
in $ac_subst_files
1839 eval ac_val
=\$
$ac_var
1841 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1843 $as_echo "$ac_var='\''$ac_val'\''"
1848 if test -s confdefs.h; then
1858 test "$ac_signal" != 0 &&
1859 $as_echo "$as_me: caught signal $ac_signal"
1860 $as_echo "$as_me: exit $exit_status"
1862 rm -f core *.core core.conftest.* &&
1863 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1866 for ac_signal
in 1 2 13 15; do
1867 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1871 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1872 rm -f -r conftest
* confdefs.h
1874 # Predefined preprocessor variables.
1876 cat >>confdefs.h
<<_ACEOF
1877 #define PACKAGE_NAME "$PACKAGE_NAME"
1881 cat >>confdefs.h
<<_ACEOF
1882 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1886 cat >>confdefs.h
<<_ACEOF
1887 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1891 cat >>confdefs.h
<<_ACEOF
1892 #define PACKAGE_STRING "$PACKAGE_STRING"
1896 cat >>confdefs.h
<<_ACEOF
1897 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1901 # Let the site file select an alternate cache file if it wants to.
1902 # Prefer an explicitly selected file to automatically selected ones.
1905 if test -n "$CONFIG_SITE"; then
1906 ac_site_file1
=$CONFIG_SITE
1907 elif test "x$prefix" != xNONE
; then
1908 ac_site_file1
=$prefix/share
/config.site
1909 ac_site_file2
=$prefix/etc
/config.site
1911 ac_site_file1
=$ac_default_prefix/share
/config.site
1912 ac_site_file2
=$ac_default_prefix/etc
/config.site
1914 for ac_site_file
in "$ac_site_file1" "$ac_site_file2"
1916 test "x$ac_site_file" = xNONE
&& continue
1917 if test -r "$ac_site_file"; then
1918 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1919 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1920 sed 's/^/| /' "$ac_site_file" >&5
1925 if test -r "$cache_file"; then
1926 # Some versions of bash will fail to source /dev/null (special
1927 # files actually), so we avoid doing that.
1928 if test -f "$cache_file"; then
1929 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1930 $as_echo "$as_me: loading cache $cache_file" >&6;}
1932 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
1933 *) .
"./$cache_file";;
1937 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1938 $as_echo "$as_me: creating cache $cache_file" >&6;}
1942 ac_header_list
="$ac_header_list sys/time.h"
1943 ac_header_list
="$ac_header_list unistd.h"
1944 ac_func_list
="$ac_func_list alarm"
1945 ac_func_list
="$ac_func_list fpurge"
1946 ac_func_list
="$ac_func_list __fpurge"
1947 # Check that the precious variables saved in the cache have kept the same
1949 ac_cache_corrupted
=false
1950 for ac_var
in $ac_precious_vars; do
1951 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
1952 eval ac_new_set
=\
$ac_env_${ac_var}_set
1953 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
1954 eval ac_new_val
=\
$ac_env_${ac_var}_value
1955 case $ac_old_set,$ac_new_set in
1957 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1958 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1959 ac_cache_corrupted
=: ;;
1961 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1962 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1963 ac_cache_corrupted
=: ;;
1966 if test "x$ac_old_val" != "x$ac_new_val"; then
1967 # differences in whitespace do not lead to failure.
1968 ac_old_val_w
=`echo x $ac_old_val`
1969 ac_new_val_w
=`echo x $ac_new_val`
1970 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1971 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1972 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1973 ac_cache_corrupted
=:
1975 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1976 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1977 eval $ac_var=\
$ac_old_val
1979 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1980 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1981 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1982 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1985 # Pass precious variables to config.status.
1986 if test "$ac_new_set" = set; then
1988 *\'*) ac_arg
=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1989 *) ac_arg
=$ac_var=$ac_new_val ;;
1991 case " $ac_configure_args " in
1992 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1993 *) ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
1997 if $ac_cache_corrupted; then
1998 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1999 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2000 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2001 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2002 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2003 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2004 { (exit 1); exit 1; }; }
2032 ac_cpp
='$CPP $CPPFLAGS'
2033 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2034 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2035 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2043 for ac_dir
in .
/support
"$srcdir"/.
/support
; do
2044 if test -f "$ac_dir/install-sh"; then
2046 ac_install_sh
="$ac_aux_dir/install-sh -c"
2048 elif test -f "$ac_dir/install.sh"; then
2050 ac_install_sh
="$ac_aux_dir/install.sh -c"
2052 elif test -f "$ac_dir/shtool"; then
2054 ac_install_sh
="$ac_aux_dir/shtool install -c"
2058 if test -z "$ac_aux_dir"; then
2059 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ./support \"$srcdir\"/./support" >&5
2060 $as_echo "$as_me: error: cannot find install-sh or install.sh in ./support \"$srcdir\"/./support" >&2;}
2061 { (exit 1); exit 1; }; }
2064 # These three variables are undocumented and unsupported,
2065 # and are intended to be withdrawn in a future Autoconf release.
2066 # They can cause serious problems if a builder's source tree is in a directory
2067 # whose full name contains unusual characters.
2068 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2069 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2070 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2073 ac_config_headers
="$ac_config_headers config.h"
2079 case "$RELSTATUS" in
2080 alp
*|bet
*|dev
*|rc
*|maint
*) DEBUG
='-DDEBUG' MALLOC_DEBUG
='-DMALLOC_DEBUG' ;;
2081 *) DEBUG
= MALLOC_DEBUG
= ;;
2084 # Make sure we can run config.sub.
2085 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
2086 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2087 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2088 { (exit 1); exit 1; }; }
2090 { $as_echo "$as_me:$LINENO: checking build system type" >&5
2091 $as_echo_n "checking build system type... " >&6; }
2092 if test "${ac_cv_build+set}" = set; then
2093 $as_echo_n "(cached) " >&6
2095 ac_build_alias
=$build_alias
2096 test "x$ac_build_alias" = x
&&
2097 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
2098 test "x$ac_build_alias" = x
&&
2099 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2100 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2101 { (exit 1); exit 1; }; }
2102 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2103 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2104 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2105 { (exit 1); exit 1; }; }
2108 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2109 $as_echo "$ac_cv_build" >&6; }
2110 case $ac_cv_build in
2112 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2113 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
2114 { (exit 1); exit 1; }; };;
2117 ac_save_IFS
=$IFS; IFS
='-'
2123 # Remember, the first character of IFS is used to create $*,
2124 # except with old shells:
2127 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
2130 { $as_echo "$as_me:$LINENO: checking host system type" >&5
2131 $as_echo_n "checking host system type... " >&6; }
2132 if test "${ac_cv_host+set}" = set; then
2133 $as_echo_n "(cached) " >&6
2135 if test "x$host_alias" = x
; then
2136 ac_cv_host
=$ac_cv_build
2138 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2139 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2140 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2141 { (exit 1); exit 1; }; }
2145 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2146 $as_echo "$ac_cv_host" >&6; }
2149 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2150 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
2151 { (exit 1); exit 1; }; };;
2154 ac_save_IFS
=$IFS; IFS
='-'
2160 # Remember, the first character of IFS is used to create $*,
2161 # except with old shells:
2164 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
2173 opt_with_installed_readline
=no
2177 case "${host_cpu}-${host_os}" in
2178 alpha
*-*) opt_bash_malloc
=no
;; # alpha running osf/1 or linux
2179 *[Cc
]ray
*-*) opt_bash_malloc
=no
;; # Crays
2180 *-osf1*) opt_bash_malloc
=no
;; # other osf/1 machines
2181 sparc-svr4
*) opt_bash_malloc
=no
;; # sparc SVR4, SVR4.2
2182 sparc-netbsd
*) opt_bash_malloc
=no
;; # needs 8-byte alignment
2183 mips-irix6
*) opt_bash_malloc
=no
;; # needs 8-byte alignment
2184 m68k-sysv
) opt_bash_malloc
=no
;; # fixes file descriptor leak in closedir
2185 sparc-linux
*) opt_bash_malloc
=no
;; # sparc running linux; requires ELF
2186 #*-freebsd*-gnu) opt_bash_malloc=no ;; # there's some undetermined problem here
2187 #*-freebsd*) opt_bash_malloc=no ;; # they claim it's better; I disagree
2188 *-openbsd*) opt_bash_malloc
=no
;; # they claim it needs eight-bit alignment
2189 *-aix*) opt_bash_malloc
=no
;; # AIX machines
2190 *-nextstep*) opt_bash_malloc
=no
;; # NeXT machines running NeXTstep
2191 *-macos*) opt_bash_malloc
=no
;; # Apple MacOS X
2192 *-rhapsody*) opt_bash_malloc
=no
;; # Apple Rhapsody (MacOS X)
2193 *-darwin*) opt_bash_malloc
=no
;; # Apple Darwin (MacOS X)
2194 *-dgux*) opt_bash_malloc
=no
;; # DG/UX machines
2195 *-qnx*) opt_bash_malloc
=no
;; # QNX 4.2, QNX 6.x
2196 *-machten4) opt_bash_malloc
=no
;; # MachTen 4.x
2197 *-bsdi2.1|
*-bsdi3.?
) opt_bash_malloc
=no
; : ${CC:=shlicc2} ;; # for loadable builtins
2198 *-beos*) opt_bash_malloc
=no
;; # they say it's suitable
2199 *-cygwin*) opt_bash_malloc
=no
;; # Cygnus's CYGWIN environment
2200 *-opennt*|
*-interix*) opt_bash_malloc
=no
;; # Interix, now owned by Microsoft
2203 # memory scrambling on free()
2204 case "${host_os}" in
2205 sco3.2v5
*|sco3.2v4
*) opt_memscramble
=no
;;
2206 *) opt_memscramble
=yes ;;
2210 # Check whether --with-lispdir was given.
2211 if test "${with_lispdir+set}" = set; then
2212 withval
=$with_lispdir; lispdir
="$withval"
2213 { $as_echo "$as_me:$LINENO: checking where .elc files should go" >&5
2214 $as_echo_n "checking where .elc files should go... " >&6; }
2215 { $as_echo "$as_me:$LINENO: result: $lispdir" >&5
2216 $as_echo "$lispdir" >&6; }
2219 # If set to t, that means we are running in a shell under Emacs.
2220 # If you have an Emacs named "t", then use the full path.
2221 test x
"$EMACS" = xt
&& EMACS
=
2222 for ac_prog
in emacs xemacs
2224 # Extract the first word of "$ac_prog", so it can be a program name with args.
2225 set dummy
$ac_prog; ac_word
=$2
2226 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2227 $as_echo_n "checking for $ac_word... " >&6; }
2228 if test "${ac_cv_prog_EMACS+set}" = set; then
2229 $as_echo_n "(cached) " >&6
2231 if test -n "$EMACS"; then
2232 ac_cv_prog_EMACS
="$EMACS" # Let the user override the test.
2234 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2238 test -z "$as_dir" && as_dir
=.
2239 for ac_exec_ext
in '' $ac_executable_extensions; do
2240 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2241 ac_cv_prog_EMACS
="$ac_prog"
2242 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2251 EMACS
=$ac_cv_prog_EMACS
2252 if test -n "$EMACS"; then
2253 { $as_echo "$as_me:$LINENO: result: $EMACS" >&5
2254 $as_echo "$EMACS" >&6; }
2256 { $as_echo "$as_me:$LINENO: result: no" >&5
2257 $as_echo "no" >&6; }
2261 test -n "$EMACS" && break
2263 test -n "$EMACS" || EMACS
="no"
2265 if test $EMACS != "no"; then
2266 if test x
${lispdir+set} != xset
; then
2267 { $as_echo "$as_me:$LINENO: checking where .elc files should go" >&5
2268 $as_echo_n "checking where .elc files should go... " >&6; }
2269 if test "${am_cv_lispdir+set}" = set; then
2270 $as_echo_n "(cached) " >&6
2272 am_cv_lispdir
=`$EMACS -batch -q -eval '(while load-path (princ (concat (car load-path) "\n")) (setq load-path (cdr load-path)))' | sed -n -e 's,/$,,' -e '/.*\/lib\/\(x\?emacs\/site-lisp\)$/{s,,${libdir}/\1,;p;q;}' -e '/.*\/share\/\(x\?emacs\/site-lisp\)$/{s,,${datadir}/\1,;p;q;}'`
2273 if test -z "$am_cv_lispdir"; then
2274 am_cv_lispdir
='${datadir}/emacs/site-lisp'
2278 { $as_echo "$as_me:$LINENO: result: $am_cv_lispdir" >&5
2279 $as_echo "$am_cv_lispdir" >&6; }
2280 lispdir
="$am_cv_lispdir"
2291 # Check whether --with-afs was given.
2292 if test "${with_afs+set}" = set; then
2293 withval
=$with_afs; opt_afs
=$withval
2297 # Check whether --with-bash-malloc was given.
2298 if test "${with_bash_malloc+set}" = set; then
2299 withval
=$with_bash_malloc; opt_bash_malloc
=$withval
2303 # Check whether --with-curses was given.
2304 if test "${with_curses+set}" = set; then
2305 withval
=$with_curses; opt_curses
=$withval
2309 # Check whether --with-gnu-malloc was given.
2310 if test "${with_gnu_malloc+set}" = set; then
2311 withval
=$with_gnu_malloc; opt_bash_malloc
=$withval
2315 # Check whether --with-installed-readline was given.
2316 if test "${with_installed_readline+set}" = set; then
2317 withval
=$with_installed_readline; opt_with_installed_readline
=$withval
2321 # Check whether --with-purecov was given.
2322 if test "${with_purecov+set}" = set; then
2323 withval
=$with_purecov; opt_purecov
=$withval
2327 # Check whether --with-purify was given.
2328 if test "${with_purify+set}" = set; then
2329 withval
=$with_purify; opt_purify
=$withval
2333 if test "$opt_bash_malloc" = yes; then
2334 MALLOC_TARGET
=malloc
2337 MALLOC_LIB
='-lmalloc'
2338 MALLOC_LIBRARY
='$(ALLOC_LIBDIR)/libmalloc.a'
2339 MALLOC_LDFLAGS
='-L$(ALLOC_LIBDIR)'
2340 MALLOC_DEP
='$(MALLOC_LIBRARY)'
2342 cat >>confdefs.h
<<\_ACEOF
2343 #define USING_BASH_MALLOC 1
2353 if test "$opt_purify" = yes; then
2355 cat >>confdefs.h
<<\_ACEOF
2356 #define DISABLE_MALLOC_WRAPPERS 1
2363 if test "$opt_purecov" = yes; then
2364 PURIFY
="${PURIFY}purecov"
2367 if test "$opt_afs" = yes; then
2368 cat >>confdefs.h
<<\_ACEOF
2374 if test "$opt_curses" = yes; then
2378 if test -z "${DEBUGGER_START_FILE}"; then
2379 DEBUGGER_START_FILE
='${datadir}/bashdb/bashdb-main.inc'
2382 opt_minimal_config
=no
2388 opt_bang_history
=yes
2391 opt_process_subst
=yes
2392 opt_prompt_decoding
=yes
2395 opt_array_variables
=yes
2396 opt_dparen_arith
=yes
2397 opt_extended_glob
=yes
2398 opt_brace_expansion
=yes
2399 opt_disabled_builtins
=no
2400 opt_command_timing
=yes
2403 opt_cond_command
=yes
2406 opt_arith_for_command
=yes
2409 opt_separate_help
=no
2412 opt_single_longdoc_strings
=yes
2413 opt_casemod_attrs
=yes
2414 opt_casemod_expansions
=yes
2419 # Check whether --enable-minimal-config was given.
2420 if test "${enable_minimal_config+set}" = set; then
2421 enableval
=$enable_minimal_config; opt_minimal_config
=$enableval
2425 if test $opt_minimal_config = yes; then
2426 opt_job_control
=no opt_alias
=no opt_readline
=no
2427 opt_history
=no opt_bang_history
=no opt_dirstack
=no
2428 opt_restricted
=no opt_process_subst
=no opt_prompt_decoding
=no
2429 opt_select
=no opt_help
=no opt_array_variables
=no opt_dparen_arith
=no
2430 opt_brace_expansion
=no opt_disabled_builtins
=no opt_command_timing
=no
2431 opt_extended_glob
=no opt_cond_command
=no opt_arith_for_command
=no
2432 opt_net_redirs
=no opt_progcomp
=no opt_separate_help
=no
2433 opt_multibyte
=yes opt_cond_regexp
=no opt_coproc
=no
2434 opt_casemod_attrs
=no opt_casemod_expansions
=no
2437 # Check whether --enable-alias was given.
2438 if test "${enable_alias+set}" = set; then
2439 enableval
=$enable_alias; opt_alias
=$enableval
2442 # Check whether --enable-arith-for-command was given.
2443 if test "${enable_arith_for_command+set}" = set; then
2444 enableval
=$enable_arith_for_command; opt_arith_for_command
=$enableval
2447 # Check whether --enable-array-variables was given.
2448 if test "${enable_array_variables+set}" = set; then
2449 enableval
=$enable_array_variables; opt_array_variables
=$enableval
2452 # Check whether --enable-bang-history was given.
2453 if test "${enable_bang_history+set}" = set; then
2454 enableval
=$enable_bang_history; opt_bang_history
=$enableval
2457 # Check whether --enable-brace-expansion was given.
2458 if test "${enable_brace_expansion+set}" = set; then
2459 enableval
=$enable_brace_expansion; opt_brace_expansion
=$enableval
2462 # Check whether --enable-casemod-attributes was given.
2463 if test "${enable_casemod_attributes+set}" = set; then
2464 enableval
=$enable_casemod_attributes; opt_casemod_attrs
=$enableval
2467 # Check whether --enable-casemod-expansions was given.
2468 if test "${enable_casemod_expansions+set}" = set; then
2469 enableval
=$enable_casemod_expansions; opt_casemod_expansions
=$enableval
2472 # Check whether --enable-command-timing was given.
2473 if test "${enable_command_timing+set}" = set; then
2474 enableval
=$enable_command_timing; opt_command_timing
=$enableval
2477 # Check whether --enable-cond-command was given.
2478 if test "${enable_cond_command+set}" = set; then
2479 enableval
=$enable_cond_command; opt_cond_command
=$enableval
2482 # Check whether --enable-cond-regexp was given.
2483 if test "${enable_cond_regexp+set}" = set; then
2484 enableval
=$enable_cond_regexp; opt_cond_regexp
=$enableval
2487 # Check whether --enable-coprocesses was given.
2488 if test "${enable_coprocesses+set}" = set; then
2489 enableval
=$enable_coprocesses; opt_coproc
=$enableval
2492 # Check whether --enable-debugger was given.
2493 if test "${enable_debugger+set}" = set; then
2494 enableval
=$enable_debugger; opt_debugger
=$enableval
2497 # Check whether --enable-directory-stack was given.
2498 if test "${enable_directory_stack+set}" = set; then
2499 enableval
=$enable_directory_stack; opt_dirstack
=$enableval
2502 # Check whether --enable-disabled-builtins was given.
2503 if test "${enable_disabled_builtins+set}" = set; then
2504 enableval
=$enable_disabled_builtins; opt_disabled_builtins
=$enableval
2507 # Check whether --enable-dparen-arithmetic was given.
2508 if test "${enable_dparen_arithmetic+set}" = set; then
2509 enableval
=$enable_dparen_arithmetic; opt_dparen_arith
=$enableval
2512 # Check whether --enable-extended-glob was given.
2513 if test "${enable_extended_glob+set}" = set; then
2514 enableval
=$enable_extended_glob; opt_extended_glob
=$enableval
2517 # Check whether --enable-help-builtin was given.
2518 if test "${enable_help_builtin+set}" = set; then
2519 enableval
=$enable_help_builtin; opt_help
=$enableval
2522 # Check whether --enable-history was given.
2523 if test "${enable_history+set}" = set; then
2524 enableval
=$enable_history; opt_history
=$enableval
2527 # Check whether --enable-job-control was given.
2528 if test "${enable_job_control+set}" = set; then
2529 enableval
=$enable_job_control; opt_job_control
=$enableval
2532 # Check whether --enable-multibyte was given.
2533 if test "${enable_multibyte+set}" = set; then
2534 enableval
=$enable_multibyte; opt_multibyte
=$enableval
2537 # Check whether --enable-net-redirections was given.
2538 if test "${enable_net_redirections+set}" = set; then
2539 enableval
=$enable_net_redirections; opt_net_redirs
=$enableval
2542 # Check whether --enable-process-substitution was given.
2543 if test "${enable_process_substitution+set}" = set; then
2544 enableval
=$enable_process_substitution; opt_process_subst
=$enableval
2547 # Check whether --enable-progcomp was given.
2548 if test "${enable_progcomp+set}" = set; then
2549 enableval
=$enable_progcomp; opt_progcomp
=$enableval
2552 # Check whether --enable-prompt-string-decoding was given.
2553 if test "${enable_prompt_string_decoding+set}" = set; then
2554 enableval
=$enable_prompt_string_decoding; opt_prompt_decoding
=$enableval
2557 # Check whether --enable-readline was given.
2558 if test "${enable_readline+set}" = set; then
2559 enableval
=$enable_readline; opt_readline
=$enableval
2562 # Check whether --enable-restricted was given.
2563 if test "${enable_restricted+set}" = set; then
2564 enableval
=$enable_restricted; opt_restricted
=$enableval
2567 # Check whether --enable-select was given.
2568 if test "${enable_select+set}" = set; then
2569 enableval
=$enable_select; opt_select
=$enableval
2572 # Check whether --enable-separate-helpfiles was given.
2573 if test "${enable_separate_helpfiles+set}" = set; then
2574 enableval
=$enable_separate_helpfiles; opt_separate_help
=$enableval
2577 # Check whether --enable-single-help-strings was given.
2578 if test "${enable_single_help_strings+set}" = set; then
2579 enableval
=$enable_single_help_strings; opt_single_longdoc_strings
=$enableval
2582 # Check whether --enable-strict-posix-default was given.
2583 if test "${enable_strict_posix_default+set}" = set; then
2584 enableval
=$enable_strict_posix_default; opt_strict_posix
=$enableval
2587 # Check whether --enable-usg-echo-default was given.
2588 if test "${enable_usg_echo_default+set}" = set; then
2589 enableval
=$enable_usg_echo_default; opt_xpg_echo
=$enableval
2592 # Check whether --enable-xpg-echo-default was given.
2593 if test "${enable_xpg_echo_default+set}" = set; then
2594 enableval
=$enable_xpg_echo_default; opt_xpg_echo
=$enableval
2598 # Check whether --enable-mem-scramble was given.
2599 if test "${enable_mem_scramble+set}" = set; then
2600 enableval
=$enable_mem_scramble; opt_memscramble
=$enableval
2603 # Check whether --enable-profiling was given.
2604 if test "${enable_profiling+set}" = set; then
2605 enableval
=$enable_profiling; opt_profiling
=$enableval
2608 # Check whether --enable-static-link was given.
2609 if test "${enable_static_link+set}" = set; then
2610 enableval
=$enable_static_link; opt_static_link
=$enableval
2616 if test $opt_alias = yes; then
2617 cat >>confdefs.h
<<\_ACEOF
2622 if test $opt_dirstack = yes; then
2623 cat >>confdefs.h
<<\_ACEOF
2624 #define PUSHD_AND_POPD 1
2628 if test $opt_restricted = yes; then
2629 cat >>confdefs.h
<<\_ACEOF
2630 #define RESTRICTED_SHELL 1
2634 if test $opt_process_subst = yes; then
2635 cat >>confdefs.h
<<\_ACEOF
2636 #define PROCESS_SUBSTITUTION 1
2640 if test $opt_prompt_decoding = yes; then
2641 cat >>confdefs.h
<<\_ACEOF
2642 #define PROMPT_STRING_DECODE 1
2646 if test $opt_select = yes; then
2647 cat >>confdefs.h
<<\_ACEOF
2648 #define SELECT_COMMAND 1
2652 if test $opt_help = yes; then
2653 cat >>confdefs.h
<<\_ACEOF
2654 #define HELP_BUILTIN 1
2658 if test $opt_array_variables = yes; then
2659 cat >>confdefs.h
<<\_ACEOF
2660 #define ARRAY_VARS 1
2664 if test $opt_dparen_arith = yes; then
2665 cat >>confdefs.h
<<\_ACEOF
2666 #define DPAREN_ARITHMETIC 1
2670 if test $opt_brace_expansion = yes; then
2671 cat >>confdefs.h
<<\_ACEOF
2672 #define BRACE_EXPANSION 1
2676 if test $opt_disabled_builtins = yes; then
2677 cat >>confdefs.h
<<\_ACEOF
2678 #define DISABLED_BUILTINS 1
2682 if test $opt_command_timing = yes; then
2683 cat >>confdefs.h
<<\_ACEOF
2684 #define COMMAND_TIMING 1
2688 if test $opt_xpg_echo = yes ; then
2689 cat >>confdefs.h
<<\_ACEOF
2690 #define DEFAULT_ECHO_TO_XPG 1
2694 if test $opt_strict_posix = yes; then
2695 cat >>confdefs.h
<<\_ACEOF
2696 #define STRICT_POSIX 1
2700 if test $opt_extended_glob = yes ; then
2701 cat >>confdefs.h
<<\_ACEOF
2702 #define EXTENDED_GLOB 1
2706 if test $opt_cond_command = yes ; then
2707 cat >>confdefs.h
<<\_ACEOF
2708 #define COND_COMMAND 1
2712 if test $opt_cond_regexp = yes ; then
2713 cat >>confdefs.h
<<\_ACEOF
2714 #define COND_REGEXP 1
2718 if test $opt_coproc = yes; then
2719 cat >>confdefs.h
<<\_ACEOF
2720 #define COPROCESS_SUPPORT 1
2724 if test $opt_arith_for_command = yes; then
2725 cat >>confdefs.h
<<\_ACEOF
2726 #define ARITH_FOR_COMMAND 1
2730 if test $opt_net_redirs = yes; then
2731 cat >>confdefs.h
<<\_ACEOF
2732 #define NETWORK_REDIRECTIONS 1
2736 if test $opt_progcomp = yes; then
2737 cat >>confdefs.h
<<\_ACEOF
2738 #define PROGRAMMABLE_COMPLETION 1
2742 if test $opt_multibyte = no
; then
2743 cat >>confdefs.h
<<\_ACEOF
2744 #define NO_MULTIBYTE_SUPPORT 1
2748 if test $opt_debugger = yes; then
2749 cat >>confdefs.h
<<\_ACEOF
2754 if test $opt_casemod_attrs = yes; then
2755 cat >>confdefs.h
<<\_ACEOF
2756 #define CASEMOD_ATTRS 1
2760 if test $opt_casemod_expansions = yes; then
2761 cat >>confdefs.h
<<\_ACEOF
2762 #define CASEMOD_EXPANSIONS 1
2767 if test $opt_memscramble = yes; then
2768 cat >>confdefs.h
<<\_ACEOF
2769 #define MEMSCRAMBLE 1
2774 if test "$opt_minimal_config" = yes; then
2775 TESTSCRIPT
=run-minimal
2780 HELPDIR
= HELPDIRDEFINE
= HELPINSTALL
=
2781 if test "$opt_separate_help" != no
; then
2782 if test "$opt_separate_help" = "yes" ; then
2783 HELPDIR
='${datadir}/bash'
2785 HELPDIR
=$opt_separate_help
2787 HELPDIRDEFINE
='-H ${HELPDIR}'
2788 HELPINSTALL
='install-help'
2791 if test "$opt_single_longdoc_strings" != "yes"; then
2813 echo "Beginning configuration for bash-$BASHVERS-$RELSTATUS for ${host_cpu}-${host_vendor}-${host_os}"
2817 ac_cpp
='$CPP $CPPFLAGS'
2818 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2819 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2820 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2821 if test -n "$ac_tool_prefix"; then
2822 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2823 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
2824 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2825 $as_echo_n "checking for $ac_word... " >&6; }
2826 if test "${ac_cv_prog_CC+set}" = set; then
2827 $as_echo_n "(cached) " >&6
2829 if test -n "$CC"; then
2830 ac_cv_prog_CC
="$CC" # Let the user override the test.
2832 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2836 test -z "$as_dir" && as_dir
=.
2837 for ac_exec_ext
in '' $ac_executable_extensions; do
2838 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2839 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
2840 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2850 if test -n "$CC"; then
2851 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2852 $as_echo "$CC" >&6; }
2854 { $as_echo "$as_me:$LINENO: result: no" >&5
2855 $as_echo "no" >&6; }
2860 if test -z "$ac_cv_prog_CC"; then
2862 # Extract the first word of "gcc", so it can be a program name with args.
2863 set dummy gcc
; ac_word
=$2
2864 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2865 $as_echo_n "checking for $ac_word... " >&6; }
2866 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2867 $as_echo_n "(cached) " >&6
2869 if test -n "$ac_ct_CC"; then
2870 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2872 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2876 test -z "$as_dir" && as_dir
=.
2877 for ac_exec_ext
in '' $ac_executable_extensions; do
2878 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2879 ac_cv_prog_ac_ct_CC
="gcc"
2880 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2889 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2890 if test -n "$ac_ct_CC"; then
2891 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2892 $as_echo "$ac_ct_CC" >&6; }
2894 { $as_echo "$as_me:$LINENO: result: no" >&5
2895 $as_echo "no" >&6; }
2898 if test "x$ac_ct_CC" = x
; then
2901 case $cross_compiling:$ac_tool_warned in
2903 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2904 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2905 ac_tool_warned
=yes ;;
2913 if test -z "$CC"; then
2914 if test -n "$ac_tool_prefix"; then
2915 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2916 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
2917 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2918 $as_echo_n "checking for $ac_word... " >&6; }
2919 if test "${ac_cv_prog_CC+set}" = set; then
2920 $as_echo_n "(cached) " >&6
2922 if test -n "$CC"; then
2923 ac_cv_prog_CC
="$CC" # Let the user override the test.
2925 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2929 test -z "$as_dir" && as_dir
=.
2930 for ac_exec_ext
in '' $ac_executable_extensions; do
2931 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2932 ac_cv_prog_CC
="${ac_tool_prefix}cc"
2933 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2943 if test -n "$CC"; then
2944 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2945 $as_echo "$CC" >&6; }
2947 { $as_echo "$as_me:$LINENO: result: no" >&5
2948 $as_echo "no" >&6; }
2954 if test -z "$CC"; then
2955 # Extract the first word of "cc", so it can be a program name with args.
2956 set dummy cc
; ac_word
=$2
2957 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2958 $as_echo_n "checking for $ac_word... " >&6; }
2959 if test "${ac_cv_prog_CC+set}" = set; then
2960 $as_echo_n "(cached) " >&6
2962 if test -n "$CC"; then
2963 ac_cv_prog_CC
="$CC" # Let the user override the test.
2966 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2970 test -z "$as_dir" && as_dir
=.
2971 for ac_exec_ext
in '' $ac_executable_extensions; do
2972 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2973 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2974 ac_prog_rejected
=yes
2978 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2985 if test $ac_prog_rejected = yes; then
2986 # We found a bogon in the path, so make sure we never use it.
2987 set dummy
$ac_cv_prog_CC
2989 if test $# != 0; then
2990 # We chose a different compiler from the bogus one.
2991 # However, it has the same basename, so the bogon will be chosen
2992 # first if we set CC to just the basename; use the full file name.
2994 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3000 if test -n "$CC"; then
3001 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3002 $as_echo "$CC" >&6; }
3004 { $as_echo "$as_me:$LINENO: result: no" >&5
3005 $as_echo "no" >&6; }
3010 if test -z "$CC"; then
3011 if test -n "$ac_tool_prefix"; then
3012 for ac_prog
in cl.exe
3014 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3015 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3016 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3017 $as_echo_n "checking for $ac_word... " >&6; }
3018 if test "${ac_cv_prog_CC+set}" = set; then
3019 $as_echo_n "(cached) " >&6
3021 if test -n "$CC"; then
3022 ac_cv_prog_CC
="$CC" # Let the user override the test.
3024 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3028 test -z "$as_dir" && as_dir
=.
3029 for ac_exec_ext
in '' $ac_executable_extensions; do
3030 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3031 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3032 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3042 if test -n "$CC"; then
3043 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3044 $as_echo "$CC" >&6; }
3046 { $as_echo "$as_me:$LINENO: result: no" >&5
3047 $as_echo "no" >&6; }
3051 test -n "$CC" && break
3054 if test -z "$CC"; then
3056 for ac_prog
in cl.exe
3058 # Extract the first word of "$ac_prog", so it can be a program name with args.
3059 set dummy
$ac_prog; ac_word
=$2
3060 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3061 $as_echo_n "checking for $ac_word... " >&6; }
3062 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3063 $as_echo_n "(cached) " >&6
3065 if test -n "$ac_ct_CC"; then
3066 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3068 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3072 test -z "$as_dir" && as_dir
=.
3073 for ac_exec_ext
in '' $ac_executable_extensions; do
3074 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3075 ac_cv_prog_ac_ct_CC
="$ac_prog"
3076 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3085 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3086 if test -n "$ac_ct_CC"; then
3087 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3088 $as_echo "$ac_ct_CC" >&6; }
3090 { $as_echo "$as_me:$LINENO: result: no" >&5
3091 $as_echo "no" >&6; }
3095 test -n "$ac_ct_CC" && break
3098 if test "x$ac_ct_CC" = x
; then
3101 case $cross_compiling:$ac_tool_warned in
3103 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3104 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3105 ac_tool_warned
=yes ;;
3114 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3115 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3116 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3117 See \`config.log' for more details." >&5
3118 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3119 See \`config.log' for more details." >&2;}
3120 { (exit 1); exit 1; }; }; }
3122 # Provide some information about the compiler.
3123 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3126 { (ac_try
="$ac_compiler --version >&5"
3128 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3129 *) ac_try_echo=$ac_try;;
3131 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3132 $as_echo "$ac_try_echo") >&5
3133 (eval "$ac_compiler --version >&5") 2>&5
3135 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3136 (exit $ac_status); }
3137 { (ac_try="$ac_compiler -v >&5"
3139 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3140 *) ac_try_echo
=$ac_try;;
3142 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
3143 $as_echo "$ac_try_echo") >&5
3144 (eval "$ac_compiler -v >&5") 2>&5
3146 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3147 (exit $ac_status); }
3148 { (ac_try
="$ac_compiler -V >&5"
3150 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3151 *) ac_try_echo=$ac_try;;
3153 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3154 $as_echo "$ac_try_echo") >&5
3155 (eval "$ac_compiler -V >&5") 2>&5
3157 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3158 (exit $ac_status); }
3160 cat >conftest.$ac_ext <<_ACEOF
3163 cat confdefs.h >>conftest.$ac_ext
3164 cat >>conftest.$ac_ext <<_ACEOF
3165 /* end confdefs.h. */
3175 ac_clean_files_save=$ac_clean_files
3176 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3177 # Try to create an executable without -o first, disregard a.out.
3178 # It will help us diagnose broken compilers, and finding out an intuition
3180 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3181 $as_echo_n "checking for C compiler default output file name... " >&6; }
3182 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3184 # The possible output files:
3185 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3188 for ac_file in $ac_files
3191 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3192 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3197 if { (ac_try="$ac_link_default"
3199 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3200 *) ac_try_echo
=$ac_try;;
3202 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
3203 $as_echo "$ac_try_echo") >&5
3204 (eval "$ac_link_default") 2>&5
3206 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3207 (exit $ac_status); }; then
3208 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3209 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3210 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3211 # so that the user can short-circuit this test for compilers unknown to
3213 for ac_file
in $ac_files ''
3215 test -f "$ac_file" ||
continue
3217 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
3220 # We found the default executable, but exeext='' is most
3224 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3226 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3228 # We set ac_cv_exeext here because the later test for it is not
3229 # safe: cross compilers may not add the suffix if given an `-o'
3230 # argument, so we may need to know it at that point already.
3231 # Even if this section looks crufty: it has the advantage of
3238 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3244 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3245 $as_echo "$ac_file" >&6; }
3246 if test -z "$ac_file"; then
3247 $as_echo "$as_me: failed program was:" >&5
3248 sed 's/^/| /' conftest.
$ac_ext >&5
3250 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3251 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3252 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3253 See \`config.log' for more details." >&5
3254 $as_echo "$as_me: error: C compiler cannot create executables
3255 See \`config.log' for more details." >&2;}
3256 { (exit 77); exit 77; }; }; }
3259 ac_exeext
=$ac_cv_exeext
3261 # Check that the compiler produces executables we can run. If not, either
3262 # the compiler is broken, or we cross compile.
3263 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3264 $as_echo_n "checking whether the C compiler works... " >&6; }
3265 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3266 # If not cross compiling, check that we can run a simple program.
3267 if test "$cross_compiling" != yes; then
3268 if { ac_try
='./$ac_file'
3269 { (case "(($ac_try" in
3270 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3271 *) ac_try_echo=$ac_try;;
3273 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3274 $as_echo "$ac_try_echo") >&5
3275 (eval "$ac_try") 2>&5
3277 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3278 (exit $ac_status); }; }; then
3281 if test "$cross_compiling" = maybe; then
3284 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3285 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3286 { { $as_echo "$as_me:$LINENO: error
: cannot run C compiled programs.
3287 If you meant to cross compile
, use \
`--host'.
3288 See \`config.log
' for more details." >&5
3289 $as_echo "$as_me: error: cannot run C compiled programs.
3290 If you meant to cross compile, use \`--host'.
3291 See \
`config.log' for more details." >&2;}
3292 { (exit 1); exit 1; }; }; }
3296 { $as_echo "$as_me:$LINENO: result: yes" >&5
3297 $as_echo "yes" >&6; }
3299 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3300 ac_clean_files=$ac_clean_files_save
3301 # Check that the compiler produces executables we can run. If not, either
3302 # the compiler is broken, or we cross compile.
3303 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3304 $as_echo_n "checking whether we are cross compiling... " >&6; }
3305 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3306 $as_echo "$cross_compiling" >&6; }
3308 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3309 $as_echo_n "checking for suffix of executables... " >&6; }
3310 if { (ac_try="$ac_link"
3312 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3313 *) ac_try_echo
=$ac_try;;
3315 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
3316 $as_echo "$ac_try_echo") >&5
3317 (eval "$ac_link") 2>&5
3319 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3320 (exit $ac_status); }; then
3321 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3322 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3323 # work properly (i.e., refer to `conftest.exe'), while it won't with
3325 for ac_file
in conftest.exe conftest conftest.
*; do
3326 test -f "$ac_file" ||
continue
3328 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3329 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3335 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3336 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3337 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3338 See \`config.log' for more details." >&5
3339 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3340 See \`config.log' for more details." >&2;}
3341 { (exit 1); exit 1; }; }; }
3344 rm -f conftest
$ac_cv_exeext
3345 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3346 $as_echo "$ac_cv_exeext" >&6; }
3348 rm -f conftest.
$ac_ext
3349 EXEEXT
=$ac_cv_exeext
3351 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3352 $as_echo_n "checking for suffix of object files... " >&6; }
3353 if test "${ac_cv_objext+set}" = set; then
3354 $as_echo_n "(cached) " >&6
3356 cat >conftest.
$ac_ext <<_ACEOF
3359 cat confdefs.h
>>conftest.
$ac_ext
3360 cat >>conftest.
$ac_ext <<_ACEOF
3361 /* end confdefs.h. */
3371 rm -f conftest.o conftest.obj
3372 if { (ac_try
="$ac_compile"
3374 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3375 *) ac_try_echo=$ac_try;;
3377 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3378 $as_echo "$ac_try_echo") >&5
3379 (eval "$ac_compile") 2>&5
3381 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3382 (exit $ac_status); }; then
3383 for ac_file in conftest.o conftest.obj conftest.*; do
3384 test -f "$ac_file" || continue;
3386 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3387 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3392 $as_echo "$as_me: failed program was:" >&5
3393 sed 's/^/| /' conftest.$ac_ext >&5
3395 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3396 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3397 { { $as_echo "$as_me:$LINENO: error
: cannot compute suffix of object files
: cannot compile
3398 See \
`config.log' for more details." >&5
3399 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3400 See \`config.log
' for more details." >&2;}
3401 { (exit 1); exit 1; }; }; }
3404 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3406 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3407 $as_echo "$ac_cv_objext" >&6; }
3408 OBJEXT=$ac_cv_objext
3410 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3411 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3412 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3413 $as_echo_n "(cached) " >&6
3415 cat >conftest.$ac_ext <<_ACEOF
3418 cat confdefs.h >>conftest.$ac_ext
3419 cat >>conftest.$ac_ext <<_ACEOF
3420 /* end confdefs.h. */
3433 rm -f conftest.$ac_objext
3434 if { (ac_try="$ac_compile"
3436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3437 *) ac_try_echo=$ac_try;;
3439 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3440 $as_echo "$ac_try_echo") >&5
3441 (eval "$ac_compile") 2>conftest.er1
3443 grep -v '^
*+' conftest.er1 >conftest.err
3445 cat conftest.err >&5
3446 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3447 (exit $ac_status); } && {
3448 test -z "$ac_c_werror_flag" ||
3449 test ! -s conftest.err
3450 } && test -s conftest.$ac_objext; then
3453 $as_echo "$as_me: failed program was:" >&5
3454 sed 's
/^
/|
/' conftest.$ac_ext >&5
3459 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3460 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3463 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3464 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3465 if test $ac_compiler_gnu = yes; then
3470 ac_test_CFLAGS=${CFLAGS+set}
3471 ac_save_CFLAGS=$CFLAGS
3472 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3473 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3474 if test "${ac_cv_prog_cc_g+set}" = set; then
3475 $as_echo_n "(cached) " >&6
3477 ac_save_c_werror_flag=$ac_c_werror_flag
3478 ac_c_werror_flag=yes
3481 cat >conftest.$ac_ext <<_ACEOF
3484 cat confdefs.h >>conftest.$ac_ext
3485 cat >>conftest.$ac_ext <<_ACEOF
3486 /* end confdefs.h. */
3496 rm -f conftest.$ac_objext
3497 if { (ac_try="$ac_compile"
3499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3500 *) ac_try_echo=$ac_try;;
3502 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3503 $as_echo "$ac_try_echo") >&5
3504 (eval "$ac_compile") 2>conftest.er1
3506 grep -v '^
*+' conftest.er1 >conftest.err
3508 cat conftest.err >&5
3509 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3510 (exit $ac_status); } && {
3511 test -z "$ac_c_werror_flag" ||
3512 test ! -s conftest.err
3513 } && test -s conftest.$ac_objext; then
3516 $as_echo "$as_me: failed program was:" >&5
3517 sed 's
/^
/|
/' conftest.$ac_ext >&5
3520 cat >conftest.$ac_ext <<_ACEOF
3523 cat confdefs.h >>conftest.$ac_ext
3524 cat >>conftest.$ac_ext <<_ACEOF
3525 /* end confdefs.h. */
3535 rm -f conftest.$ac_objext
3536 if { (ac_try="$ac_compile"
3538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3539 *) ac_try_echo=$ac_try;;
3541 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3542 $as_echo "$ac_try_echo") >&5
3543 (eval "$ac_compile") 2>conftest.er1
3545 grep -v '^
*+' conftest.er1 >conftest.err
3547 cat conftest.err >&5
3548 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3549 (exit $ac_status); } && {
3550 test -z "$ac_c_werror_flag" ||
3551 test ! -s conftest.err
3552 } && test -s conftest.$ac_objext; then
3555 $as_echo "$as_me: failed program was:" >&5
3556 sed 's
/^
/|
/' conftest.$ac_ext >&5
3558 ac_c_werror_flag=$ac_save_c_werror_flag
3560 cat >conftest.$ac_ext <<_ACEOF
3563 cat confdefs.h >>conftest.$ac_ext
3564 cat >>conftest.$ac_ext <<_ACEOF
3565 /* end confdefs.h. */
3575 rm -f conftest.$ac_objext
3576 if { (ac_try="$ac_compile"
3578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3579 *) ac_try_echo=$ac_try;;
3581 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3582 $as_echo "$ac_try_echo") >&5
3583 (eval "$ac_compile") 2>conftest.er1
3585 grep -v '^
*+' conftest.er1 >conftest.err
3587 cat conftest.err >&5
3588 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3589 (exit $ac_status); } && {
3590 test -z "$ac_c_werror_flag" ||
3591 test ! -s conftest.err
3592 } && test -s conftest.$ac_objext; then
3595 $as_echo "$as_me: failed program was:" >&5
3596 sed 's
/^
/|
/' conftest.$ac_ext >&5
3601 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3604 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3608 ac_c_werror_flag=$ac_save_c_werror_flag
3610 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3611 $as_echo "$ac_cv_prog_cc_g" >&6; }
3612 if test "$ac_test_CFLAGS" = set; then
3613 CFLAGS=$ac_save_CFLAGS
3614 elif test $ac_cv_prog_cc_g = yes; then
3615 if test "$GCC" = yes; then
3621 if test "$GCC" = yes; then
3627 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3628 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3629 if test "${ac_cv_prog_cc_c89+set}" = set; then
3630 $as_echo_n "(cached) " >&6
3632 ac_cv_prog_cc_c89=no
3634 cat >conftest.$ac_ext <<_ACEOF
3637 cat confdefs.h >>conftest.$ac_ext
3638 cat >>conftest.$ac_ext <<_ACEOF
3639 /* end confdefs.h. */
3642 #include <sys/types.h>
3643 #include <sys/stat.h>
3644 /* Most of the following tests are stolen from RCS 5.7's src
/conf.sh.
*/
3645 struct buf
{ int x
; };
3646 FILE
* (*rcsopen
) (struct buf
*, struct stat
*, int
);
3647 static char
*e
(p
, i
)
3653 static char
*f
(char
* (*g
) (char
**, int
), char
**p
, ...
)
3658 s
= g
(p
, va_arg
(v
,int
));
3663 /* OSF
4.0 Compaq cc is some
sort of almost-ANSI by default. It has
3664 function prototypes and stuff
, but not
'\xHH' hex character constants.
3665 These don
't provoke an error unfortunately, instead are silently treated
3666 as 'x
'. The following induces an error, until -std is added to get
3667 proper ANSI mode. Curiously '\x00'!='x
' always comes out true, for an
3668 array size at least. It's necessary to
write '\x00'==0 to get something
3669 that
's true only with -std. */
3670 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3672 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3673 inside strings and character constants. */
3675 int xlc6_cc_array[FOO(a) == 'x
' ? 1 : -1];
3677 int test (int i, double x);
3678 struct s1 {int (*f) (int a);};
3679 struct s2 {int (*f) (double a);};
3680 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3686 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3691 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3692 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3694 CC="$ac_save_CC $ac_arg"
3695 rm -f conftest.$ac_objext
3696 if { (ac_try="$ac_compile"
3698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3699 *) ac_try_echo=$ac_try;;
3701 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3702 $as_echo "$ac_try_echo") >&5
3703 (eval "$ac_compile") 2>conftest.er1
3705 grep -v '^
*+' conftest.er1 >conftest.err
3707 cat conftest.err >&5
3708 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3709 (exit $ac_status); } && {
3710 test -z "$ac_c_werror_flag" ||
3711 test ! -s conftest.err
3712 } && test -s conftest.$ac_objext; then
3713 ac_cv_prog_cc_c89=$ac_arg
3715 $as_echo "$as_me: failed program was:" >&5
3716 sed 's
/^
/|
/' conftest.$ac_ext >&5
3721 rm -f core conftest.err conftest.$ac_objext
3722 test "x$ac_cv_prog_cc_c89" != "xno" && break
3724 rm -f conftest.$ac_ext
3729 case "x$ac_cv_prog_cc_c89" in
3731 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3732 $as_echo "none needed" >&6; } ;;
3734 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3735 $as_echo "unsupported" >&6; } ;;
3737 CC="$CC $ac_cv_prog_cc_c89"
3738 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3739 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3744 ac_cpp='$CPP $CPPFLAGS'
3745 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
3746 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
3747 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3752 { $as_echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
3753 $as_echo_n "checking for strerror in -lcposix... " >&6; }
3754 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
3755 $as_echo_n "(cached) " >&6
3757 ac_check_lib_save_LIBS=$LIBS
3758 LIBS="-lcposix $LIBS"
3759 cat >conftest.$ac_ext <<_ACEOF
3762 cat confdefs.h >>conftest.$ac_ext
3763 cat >>conftest.$ac_ext <<_ACEOF
3764 /* end confdefs.h. */
3766 /* Override any GCC internal prototype to avoid an error.
3767 Use char because int might match the return type of a GCC
3768 builtin and then its argument prototype would still apply. */
3781 rm -f conftest.$ac_objext conftest$ac_exeext
3782 if { (ac_try="$ac_link"
3784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3785 *) ac_try_echo=$ac_try;;
3787 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3788 $as_echo "$ac_try_echo") >&5
3789 (eval "$ac_link") 2>conftest.er1
3791 grep -v '^
*+' conftest.er1 >conftest.err
3793 cat conftest.err >&5
3794 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3795 (exit $ac_status); } && {
3796 test -z "$ac_c_werror_flag" ||
3797 test ! -s conftest.err
3798 } && test -s conftest$ac_exeext && {
3799 test "$cross_compiling" = yes ||
3800 $as_test_x conftest$ac_exeext
3802 ac_cv_lib_cposix_strerror=yes
3804 $as_echo "$as_me: failed program was:" >&5
3805 sed 's
/^
/|
/' conftest.$ac_ext >&5
3807 ac_cv_lib_cposix_strerror=no
3810 rm -rf conftest.dSYM
3811 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3812 conftest$ac_exeext conftest.$ac_ext
3813 LIBS=$ac_check_lib_save_LIBS
3815 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
3816 $as_echo "$ac_cv_lib_cposix_strerror" >&6; }
3817 if test "x$ac_cv_lib_cposix_strerror" = x""yes; then
3818 LIBS="$LIBS -lcposix"
3824 ac_cpp='$CPP $CPPFLAGS'
3825 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
3826 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
3827 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3828 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3829 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3830 # On Suns, sometimes $CPP names a directory.
3831 if test -n "$CPP" && test -d "$CPP"; then
3834 if test -z "$CPP"; then
3835 if test "${ac_cv_prog_CPP+set}" = set; then
3836 $as_echo_n "(cached) " >&6
3838 # Double quotes because CPP needs to be expanded
3839 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3842 for ac_c_preproc_warn_flag in '' yes
3844 # Use a header file that comes with gcc, so configuring glibc
3845 # with a fresh cross-compiler works.
3846 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3847 # <limits.h> exists even on freestanding compilers.
3848 # On the NeXT, cc -E runs the code through the compiler's parser
,
3849 # not just through cpp. "Syntax error" is here to catch this case.
3850 cat >conftest.
$ac_ext <<_ACEOF
3853 cat confdefs.h
>>conftest.
$ac_ext
3854 cat >>conftest.
$ac_ext <<_ACEOF
3855 /* end confdefs.h. */
3857 # include <limits.h>
3859 # include <assert.h>
3863 if { (ac_try
="$ac_cpp conftest.$ac_ext"
3865 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3866 *) ac_try_echo=$ac_try;;
3868 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3869 $as_echo "$ac_try_echo") >&5
3870 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3872 grep -v '^ *+' conftest.er1 >conftest.err
3874 cat conftest.err >&5
3875 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3876 (exit $ac_status); } >/dev/null && {
3877 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3878 test ! -s conftest.err
3882 $as_echo "$as_me: failed program was:" >&5
3883 sed 's/^/| /' conftest.$ac_ext >&5
3885 # Broken: fails on valid input.
3889 rm -f conftest.err conftest.$ac_ext
3891 # OK, works on sane cases. Now check whether nonexistent headers
3892 # can be detected and how.
3893 cat >conftest.$ac_ext <<_ACEOF
3896 cat confdefs.h >>conftest.$ac_ext
3897 cat >>conftest.$ac_ext <<_ACEOF
3898 /* end confdefs.h. */
3899 #include <ac_nonexistent.h>
3901 if { (ac_try="$ac_cpp conftest.$ac_ext"
3903 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3904 *) ac_try_echo
=$ac_try;;
3906 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
3907 $as_echo "$ac_try_echo") >&5
3908 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3910 grep -v '^ *+' conftest.er1
>conftest.err
3912 cat conftest.err
>&5
3913 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3914 (exit $ac_status); } >/dev
/null
&& {
3915 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3916 test ! -s conftest.err
3918 # Broken: success on invalid input.
3921 $as_echo "$as_me: failed program was:" >&5
3922 sed 's/^/| /' conftest.
$ac_ext >&5
3924 # Passes both tests.
3929 rm -f conftest.err conftest.
$ac_ext
3932 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3933 rm -f conftest.err conftest.
$ac_ext
3934 if $ac_preproc_ok; then
3946 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
3947 $as_echo "$CPP" >&6; }
3949 for ac_c_preproc_warn_flag
in '' yes
3951 # Use a header file that comes with gcc, so configuring glibc
3952 # with a fresh cross-compiler works.
3953 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3954 # <limits.h> exists even on freestanding compilers.
3955 # On the NeXT, cc -E runs the code through the compiler's parser,
3956 # not just through cpp. "Syntax error" is here to catch this case.
3957 cat >conftest.
$ac_ext <<_ACEOF
3960 cat confdefs.h
>>conftest.
$ac_ext
3961 cat >>conftest.
$ac_ext <<_ACEOF
3962 /* end confdefs.h. */
3964 # include <limits.h>
3966 # include <assert.h>
3970 if { (ac_try
="$ac_cpp conftest.$ac_ext"
3972 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3973 *) ac_try_echo=$ac_try;;
3975 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3976 $as_echo "$ac_try_echo") >&5
3977 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3979 grep -v '^ *+' conftest.er1 >conftest.err
3981 cat conftest.err >&5
3982 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3983 (exit $ac_status); } >/dev/null && {
3984 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3985 test ! -s conftest.err
3989 $as_echo "$as_me: failed program was:" >&5
3990 sed 's/^/| /' conftest.$ac_ext >&5
3992 # Broken: fails on valid input.
3996 rm -f conftest.err conftest.$ac_ext
3998 # OK, works on sane cases. Now check whether nonexistent headers
3999 # can be detected and how.
4000 cat >conftest.$ac_ext <<_ACEOF
4003 cat confdefs.h >>conftest.$ac_ext
4004 cat >>conftest.$ac_ext <<_ACEOF
4005 /* end confdefs.h. */
4006 #include <ac_nonexistent.h>
4008 if { (ac_try="$ac_cpp conftest.$ac_ext"
4010 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4011 *) ac_try_echo
=$ac_try;;
4013 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
4014 $as_echo "$ac_try_echo") >&5
4015 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4017 grep -v '^ *+' conftest.er1
>conftest.err
4019 cat conftest.err
>&5
4020 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4021 (exit $ac_status); } >/dev
/null
&& {
4022 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4023 test ! -s conftest.err
4025 # Broken: success on invalid input.
4028 $as_echo "$as_me: failed program was:" >&5
4029 sed 's/^/| /' conftest.
$ac_ext >&5
4031 # Passes both tests.
4036 rm -f conftest.err conftest.
$ac_ext
4039 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4040 rm -f conftest.err conftest.
$ac_ext
4041 if $ac_preproc_ok; then
4044 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4045 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4046 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4047 See \`config.log' for more details." >&5
4048 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4049 See \`config.log' for more details." >&2;}
4050 { (exit 1); exit 1; }; }; }
4054 ac_cpp
='$CPP $CPPFLAGS'
4055 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4056 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4057 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4060 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4061 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4062 if test "${ac_cv_path_GREP+set}" = set; then
4063 $as_echo_n "(cached) " >&6
4065 if test -z "$GREP"; then
4066 ac_path_GREP_found
=false
4067 # Loop through the user's path and test for each of PROGNAME-LIST
4068 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4069 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4072 test -z "$as_dir" && as_dir
=.
4073 for ac_prog
in grep ggrep
; do
4074 for ac_exec_ext
in '' $ac_executable_extensions; do
4075 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
4076 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
4077 # Check for GNU ac_path_GREP and select it if it is found.
4078 # Check for GNU $ac_path_GREP
4079 case `"$ac_path_GREP" --version 2>&1` in
4081 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
4084 $as_echo_n 0123456789 >"conftest.in"
4087 cat "conftest.in" "conftest.in" >"conftest.tmp"
4088 mv "conftest.tmp" "conftest.in"
4089 cp "conftest.in" "conftest.nl"
4090 $as_echo 'GREP' >> "conftest.nl"
4091 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4092 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4093 ac_count
=`expr $ac_count + 1`
4094 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4095 # Best one so far, save it but keep looking for a better one
4096 ac_cv_path_GREP
="$ac_path_GREP"
4097 ac_path_GREP_max
=$ac_count
4099 # 10*(2^10) chars as input seems more than enough
4100 test $ac_count -gt 10 && break
4102 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4105 $ac_path_GREP_found && break 3
4110 if test -z "$ac_cv_path_GREP"; then
4111 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4112 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4113 { (exit 1); exit 1; }; }
4116 ac_cv_path_GREP
=$GREP
4120 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4121 $as_echo "$ac_cv_path_GREP" >&6; }
4122 GREP
="$ac_cv_path_GREP"
4125 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
4126 $as_echo_n "checking for egrep... " >&6; }
4127 if test "${ac_cv_path_EGREP+set}" = set; then
4128 $as_echo_n "(cached) " >&6
4130 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
4131 then ac_cv_path_EGREP
="$GREP -E"
4133 if test -z "$EGREP"; then
4134 ac_path_EGREP_found
=false
4135 # Loop through the user's path and test for each of PROGNAME-LIST
4136 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4137 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4140 test -z "$as_dir" && as_dir
=.
4141 for ac_prog
in egrep; do
4142 for ac_exec_ext
in '' $ac_executable_extensions; do
4143 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
4144 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
4145 # Check for GNU ac_path_EGREP and select it if it is found.
4146 # Check for GNU $ac_path_EGREP
4147 case `"$ac_path_EGREP" --version 2>&1` in
4149 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
4152 $as_echo_n 0123456789 >"conftest.in"
4155 cat "conftest.in" "conftest.in" >"conftest.tmp"
4156 mv "conftest.tmp" "conftest.in"
4157 cp "conftest.in" "conftest.nl"
4158 $as_echo 'EGREP' >> "conftest.nl"
4159 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4160 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4161 ac_count
=`expr $ac_count + 1`
4162 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4163 # Best one so far, save it but keep looking for a better one
4164 ac_cv_path_EGREP
="$ac_path_EGREP"
4165 ac_path_EGREP_max
=$ac_count
4167 # 10*(2^10) chars as input seems more than enough
4168 test $ac_count -gt 10 && break
4170 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4173 $ac_path_EGREP_found && break 3
4178 if test -z "$ac_cv_path_EGREP"; then
4179 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4180 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4181 { (exit 1); exit 1; }; }
4184 ac_cv_path_EGREP
=$EGREP
4189 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4190 $as_echo "$ac_cv_path_EGREP" >&6; }
4191 EGREP
="$ac_cv_path_EGREP"
4194 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4195 $as_echo_n "checking for ANSI C header files... " >&6; }
4196 if test "${ac_cv_header_stdc+set}" = set; then
4197 $as_echo_n "(cached) " >&6
4199 cat >conftest.
$ac_ext <<_ACEOF
4202 cat confdefs.h
>>conftest.
$ac_ext
4203 cat >>conftest.
$ac_ext <<_ACEOF
4204 /* end confdefs.h. */
4218 rm -f conftest.
$ac_objext
4219 if { (ac_try
="$ac_compile"
4221 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4222 *) ac_try_echo=$ac_try;;
4224 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4225 $as_echo "$ac_try_echo") >&5
4226 (eval "$ac_compile") 2>conftest.er1
4228 grep -v '^ *+' conftest.er1 >conftest.err
4230 cat conftest.err >&5
4231 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4232 (exit $ac_status); } && {
4233 test -z "$ac_c_werror_flag" ||
4234 test ! -s conftest.err
4235 } && test -s conftest.$ac_objext; then
4236 ac_cv_header_stdc=yes
4238 $as_echo "$as_me: failed program was:" >&5
4239 sed 's/^/| /' conftest.$ac_ext >&5
4241 ac_cv_header_stdc=no
4244 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4246 if test $ac_cv_header_stdc = yes; then
4247 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4248 cat >conftest.$ac_ext <<_ACEOF
4251 cat confdefs.h >>conftest.$ac_ext
4252 cat >>conftest.$ac_ext <<_ACEOF
4253 /* end confdefs.h. */
4257 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4258 $EGREP "memchr" >/dev/null 2>&1; then
4261 ac_cv_header_stdc=no
4267 if test $ac_cv_header_stdc = yes; then
4268 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4269 cat >conftest.$ac_ext <<_ACEOF
4272 cat confdefs.h >>conftest.$ac_ext
4273 cat >>conftest.$ac_ext <<_ACEOF
4274 /* end confdefs.h. */
4278 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4279 $EGREP "free" >/dev/null 2>&1; then
4282 ac_cv_header_stdc=no
4288 if test $ac_cv_header_stdc = yes; then
4289 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4290 if test "$cross_compiling" = yes; then
4293 cat >conftest.$ac_ext <<_ACEOF
4296 cat confdefs.h >>conftest.$ac_ext
4297 cat >>conftest.$ac_ext <<_ACEOF
4298 /* end confdefs.h. */
4301 #if ((' ' & 0x0FF) == 0x020)
4302 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4303 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4305 # define ISLOWER(c) \
4306 (('a' <= (c) && (c) <= 'i') \
4307 || ('j' <= (c) && (c) <= 'r') \
4308 || ('s' <= (c) && (c) <= 'z'))
4309 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4312 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4317 for (i = 0; i < 256; i++)
4318 if (XOR (islower (i), ISLOWER (i))
4319 || toupper (i) != TOUPPER (i))
4324 rm -f conftest$ac_exeext
4325 if { (ac_try="$ac_link"
4327 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4328 *) ac_try_echo
=$ac_try;;
4330 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
4331 $as_echo "$ac_try_echo") >&5
4332 (eval "$ac_link") 2>&5
4334 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4335 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4336 { (case "(($ac_try" in
4337 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4338 *) ac_try_echo=$ac_try;;
4340 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4341 $as_echo "$ac_try_echo") >&5
4342 (eval "$ac_try") 2>&5
4344 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4345 (exit $ac_status); }; }; then
4348 $as_echo "$as_me: program exited with status $ac_status" >&5
4349 $as_echo "$as_me: failed program was:" >&5
4350 sed 's/^/| /' conftest.$ac_ext >&5
4353 ac_cv_header_stdc=no
4355 rm -rf conftest.dSYM
4356 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4362 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4363 $as_echo "$ac_cv_header_stdc" >&6; }
4364 if test $ac_cv_header_stdc = yes; then
4366 cat >>confdefs.h <<\_ACEOF
4367 #define STDC_HEADERS 1
4372 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4382 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4383 inttypes.h stdint.h unistd.h
4385 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
4386 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4387 $as_echo_n "checking for $ac_header... " >&6; }
4388 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4389 $as_echo_n "(cached) " >&6
4391 cat >conftest.$ac_ext <<_ACEOF
4394 cat confdefs.h >>conftest.$ac_ext
4395 cat >>conftest.$ac_ext <<_ACEOF
4396 /* end confdefs.h. */
4397 $ac_includes_default
4399 #include <$ac_header>
4401 rm -f conftest.$ac_objext
4402 if { (ac_try="$ac_compile"
4404 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4405 *) ac_try_echo
=$ac_try;;
4407 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
4408 $as_echo "$ac_try_echo") >&5
4409 (eval "$ac_compile") 2>conftest.er1
4411 grep -v '^ *+' conftest.er1
>conftest.err
4413 cat conftest.err
>&5
4414 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4415 (exit $ac_status); } && {
4416 test -z "$ac_c_werror_flag" ||
4417 test ! -s conftest.err
4418 } && test -s conftest.
$ac_objext; then
4419 eval "$as_ac_Header=yes"
4421 $as_echo "$as_me: failed program was:" >&5
4422 sed 's/^/| /' conftest.
$ac_ext >&5
4424 eval "$as_ac_Header=no"
4427 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4429 ac_res
=`eval 'as_val=${'$as_ac_Header'}
4430 $as_echo "$as_val"'`
4431 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4432 $as_echo "$ac_res" >&6; }
4433 as_val
=`eval 'as_val=${'$as_ac_Header'}
4434 $as_echo "$as_val"'`
4435 if test "x$as_val" = x
""yes; then
4436 cat >>confdefs.h
<<_ACEOF
4437 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4446 if test "${ac_cv_header_minix_config_h+set}" = set; then
4447 { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
4448 $as_echo_n "checking for minix/config.h... " >&6; }
4449 if test "${ac_cv_header_minix_config_h+set}" = set; then
4450 $as_echo_n "(cached) " >&6
4452 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4453 $as_echo "$ac_cv_header_minix_config_h" >&6; }
4455 # Is the header compilable?
4456 { $as_echo "$as_me:$LINENO: checking minix/config.h usability" >&5
4457 $as_echo_n "checking minix/config.h usability... " >&6; }
4458 cat >conftest.
$ac_ext <<_ACEOF
4461 cat confdefs.h
>>conftest.
$ac_ext
4462 cat >>conftest.
$ac_ext <<_ACEOF
4463 /* end confdefs.h. */
4464 $ac_includes_default
4465 #include <minix/config.h>
4467 rm -f conftest.
$ac_objext
4468 if { (ac_try
="$ac_compile"
4470 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4471 *) ac_try_echo=$ac_try;;
4473 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4474 $as_echo "$ac_try_echo") >&5
4475 (eval "$ac_compile") 2>conftest.er1
4477 grep -v '^ *+' conftest.er1 >conftest.err
4479 cat conftest.err >&5
4480 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4481 (exit $ac_status); } && {
4482 test -z "$ac_c_werror_flag" ||
4483 test ! -s conftest.err
4484 } && test -s conftest.$ac_objext; then
4485 ac_header_compiler=yes
4487 $as_echo "$as_me: failed program was:" >&5
4488 sed 's/^/| /' conftest.$ac_ext >&5
4490 ac_header_compiler=no
4493 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4494 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4495 $as_echo "$ac_header_compiler" >&6; }
4497 # Is the header present?
4498 { $as_echo "$as_me:$LINENO: checking minix/config.h presence" >&5
4499 $as_echo_n "checking minix/config.h presence... " >&6; }
4500 cat >conftest.$ac_ext <<_ACEOF
4503 cat confdefs.h >>conftest.$ac_ext
4504 cat >>conftest.$ac_ext <<_ACEOF
4505 /* end confdefs.h. */
4506 #include <minix/config.h>
4508 if { (ac_try="$ac_cpp conftest.$ac_ext"
4510 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4511 *) ac_try_echo
=$ac_try;;
4513 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
4514 $as_echo "$ac_try_echo") >&5
4515 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4517 grep -v '^ *+' conftest.er1
>conftest.err
4519 cat conftest.err
>&5
4520 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4521 (exit $ac_status); } >/dev
/null
&& {
4522 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4523 test ! -s conftest.err
4525 ac_header_preproc
=yes
4527 $as_echo "$as_me: failed program was:" >&5
4528 sed 's/^/| /' conftest.
$ac_ext >&5
4530 ac_header_preproc
=no
4533 rm -f conftest.err conftest.
$ac_ext
4534 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4535 $as_echo "$ac_header_preproc" >&6; }
4537 # So? What about this header?
4538 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4540 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
4541 $as_echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4542 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
4543 $as_echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
4544 ac_header_preproc
=yes
4547 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
4548 $as_echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
4549 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
4550 $as_echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
4551 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
4552 $as_echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
4553 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
4554 $as_echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
4555 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
4556 $as_echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
4557 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
4558 $as_echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
4560 ## ------------------------------- ##
4561 ## Report this to bug-bash@gnu.org ##
4562 ## ------------------------------- ##
4564 ) |
sed "s/^/$as_me: WARNING: /" >&2
4567 { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
4568 $as_echo_n "checking for minix/config.h... " >&6; }
4569 if test "${ac_cv_header_minix_config_h+set}" = set; then
4570 $as_echo_n "(cached) " >&6
4572 ac_cv_header_minix_config_h
=$ac_header_preproc
4574 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4575 $as_echo "$ac_cv_header_minix_config_h" >&6; }
4578 if test "x$ac_cv_header_minix_config_h" = x
""yes; then
4585 if test "$MINIX" = yes; then
4587 cat >>confdefs.h
<<\_ACEOF
4588 #define _POSIX_SOURCE 1
4592 cat >>confdefs.h
<<\_ACEOF
4593 #define _POSIX_1_SOURCE 2
4597 cat >>confdefs.h
<<\_ACEOF
4605 { $as_echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
4606 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4607 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
4608 $as_echo_n "(cached) " >&6
4610 cat >conftest.
$ac_ext <<_ACEOF
4613 cat confdefs.h
>>conftest.
$ac_ext
4614 cat >>conftest.
$ac_ext <<_ACEOF
4615 /* end confdefs.h. */
4617 # define __EXTENSIONS__ 1
4618 $ac_includes_default
4627 rm -f conftest.
$ac_objext
4628 if { (ac_try
="$ac_compile"
4630 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4631 *) ac_try_echo=$ac_try;;
4633 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4634 $as_echo "$ac_try_echo") >&5
4635 (eval "$ac_compile") 2>conftest.er1
4637 grep -v '^ *+' conftest.er1 >conftest.err
4639 cat conftest.err >&5
4640 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4641 (exit $ac_status); } && {
4642 test -z "$ac_c_werror_flag" ||
4643 test ! -s conftest.err
4644 } && test -s conftest.$ac_objext; then
4645 ac_cv_safe_to_define___extensions__=yes
4647 $as_echo "$as_me: failed program was:" >&5
4648 sed 's/^/| /' conftest.$ac_ext >&5
4650 ac_cv_safe_to_define___extensions__=no
4653 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4655 { $as_echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
4656 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4657 test $ac_cv_safe_to_define___extensions__ = yes &&
4658 cat >>confdefs.h <<\_ACEOF
4659 #define __EXTENSIONS__ 1
4662 cat >>confdefs.h <<\_ACEOF
4663 #define _ALL_SOURCE 1
4666 cat >>confdefs.h <<\_ACEOF
4667 #define _GNU_SOURCE 1
4670 cat >>confdefs.h <<\_ACEOF
4671 #define _POSIX_PTHREAD_SEMANTICS 1
4674 cat >>confdefs.h <<\_ACEOF
4675 #define _TANDEM_SOURCE 1
4680 # Check whether --enable-largefile was given.
4681 if test "${enable_largefile+set}" = set; then
4682 enableval=$enable_largefile;
4685 if test "$enable_largefile" != no; then
4687 { $as_echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
4688 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4689 if test "${ac_cv_sys_largefile_CC+set}" = set; then
4690 $as_echo_n "(cached) " >&6
4692 ac_cv_sys_largefile_CC=no
4693 if test "$GCC" != yes; then
4696 # IRIX 6.2 and later do not support large files by default,
4697 # so use the C compiler's -n32 option if that helps.
4698 cat >conftest.$ac_ext <<_ACEOF
4701 cat confdefs.h >>conftest.$ac_ext
4702 cat >>conftest.$ac_ext <<_ACEOF
4703 /* end confdefs.h. */
4704 #include <sys/types.h>
4705 /* Check that off_t can represent 2**63 - 1 correctly.
4706 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4707 since some C++ compilers masquerading as C compilers
4708 incorrectly reject 9223372036854775807. */
4709 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4710 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4711 && LARGE_OFF_T % 2147483647 == 1)
4721 rm -f conftest.$ac_objext
4722 if { (ac_try="$ac_compile"
4724 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4725 *) ac_try_echo
=$ac_try;;
4727 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
4728 $as_echo "$ac_try_echo") >&5
4729 (eval "$ac_compile") 2>conftest.er1
4731 grep -v '^ *+' conftest.er1
>conftest.err
4733 cat conftest.err
>&5
4734 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4735 (exit $ac_status); } && {
4736 test -z "$ac_c_werror_flag" ||
4737 test ! -s conftest.err
4738 } && test -s conftest.
$ac_objext; then
4741 $as_echo "$as_me: failed program was:" >&5
4742 sed 's/^/| /' conftest.
$ac_ext >&5
4747 rm -f core conftest.err conftest.
$ac_objext
4749 rm -f conftest.
$ac_objext
4750 if { (ac_try
="$ac_compile"
4752 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4753 *) ac_try_echo=$ac_try;;
4755 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4756 $as_echo "$ac_try_echo") >&5
4757 (eval "$ac_compile") 2>conftest.er1
4759 grep -v '^ *+' conftest.er1 >conftest.err
4761 cat conftest.err >&5
4762 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4763 (exit $ac_status); } && {
4764 test -z "$ac_c_werror_flag" ||
4765 test ! -s conftest.err
4766 } && test -s conftest.$ac_objext; then
4767 ac_cv_sys_largefile_CC=' -n32'; break
4769 $as_echo "$as_me: failed program was:" >&5
4770 sed 's/^/| /' conftest.$ac_ext >&5
4775 rm -f core conftest.err conftest.$ac_objext
4779 rm -f conftest.$ac_ext
4782 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
4783 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
4784 if test "$ac_cv_sys_largefile_CC" != no; then
4785 CC=$CC$ac_cv_sys_largefile_CC
4788 { $as_echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4789 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4790 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
4791 $as_echo_n "(cached) " >&6
4794 cat >conftest.$ac_ext <<_ACEOF
4797 cat confdefs.h >>conftest.$ac_ext
4798 cat >>conftest.$ac_ext <<_ACEOF
4799 /* end confdefs.h. */
4800 #include <sys/types.h>
4801 /* Check that off_t can represent 2**63 - 1 correctly.
4802 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4803 since some C++ compilers masquerading as C compilers
4804 incorrectly reject 9223372036854775807. */
4805 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4806 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4807 && LARGE_OFF_T % 2147483647 == 1)
4817 rm -f conftest.$ac_objext
4818 if { (ac_try="$ac_compile"
4820 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4821 *) ac_try_echo
=$ac_try;;
4823 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
4824 $as_echo "$ac_try_echo") >&5
4825 (eval "$ac_compile") 2>conftest.er1
4827 grep -v '^ *+' conftest.er1
>conftest.err
4829 cat conftest.err
>&5
4830 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4831 (exit $ac_status); } && {
4832 test -z "$ac_c_werror_flag" ||
4833 test ! -s conftest.err
4834 } && test -s conftest.
$ac_objext; then
4835 ac_cv_sys_file_offset_bits
=no
; break
4837 $as_echo "$as_me: failed program was:" >&5
4838 sed 's/^/| /' conftest.
$ac_ext >&5
4843 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4844 cat >conftest.
$ac_ext <<_ACEOF
4847 cat confdefs.h
>>conftest.
$ac_ext
4848 cat >>conftest.
$ac_ext <<_ACEOF
4849 /* end confdefs.h. */
4850 #define _FILE_OFFSET_BITS 64
4851 #include <sys/types.h>
4852 /* Check that off_t can represent 2**63 - 1 correctly.
4853 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4854 since some C++ compilers masquerading as C compilers
4855 incorrectly reject 9223372036854775807. */
4856 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4857 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4858 && LARGE_OFF_T % 2147483647 == 1)
4868 rm -f conftest.
$ac_objext
4869 if { (ac_try
="$ac_compile"
4871 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4872 *) ac_try_echo=$ac_try;;
4874 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4875 $as_echo "$ac_try_echo") >&5
4876 (eval "$ac_compile") 2>conftest.er1
4878 grep -v '^ *+' conftest.er1 >conftest.err
4880 cat conftest.err >&5
4881 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4882 (exit $ac_status); } && {
4883 test -z "$ac_c_werror_flag" ||
4884 test ! -s conftest.err
4885 } && test -s conftest.$ac_objext; then
4886 ac_cv_sys_file_offset_bits=64; break
4888 $as_echo "$as_me: failed program was:" >&5
4889 sed 's/^/| /' conftest.$ac_ext >&5
4894 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4895 ac_cv_sys_file_offset_bits=unknown
4899 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
4900 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4901 case $ac_cv_sys_file_offset_bits in #(
4904 cat >>confdefs.h <<_ACEOF
4905 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4910 if test $ac_cv_sys_file_offset_bits = unknown; then
4911 { $as_echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
4912 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
4913 if test "${ac_cv_sys_large_files+set}" = set; then
4914 $as_echo_n "(cached) " >&6
4917 cat >conftest.$ac_ext <<_ACEOF
4920 cat confdefs.h >>conftest.$ac_ext
4921 cat >>conftest.$ac_ext <<_ACEOF
4922 /* end confdefs.h. */
4923 #include <sys/types.h>
4924 /* Check that off_t can represent 2**63 - 1 correctly.
4925 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4926 since some C++ compilers masquerading as C compilers
4927 incorrectly reject 9223372036854775807. */
4928 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4929 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4930 && LARGE_OFF_T % 2147483647 == 1)
4940 rm -f conftest.$ac_objext
4941 if { (ac_try="$ac_compile"
4943 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4944 *) ac_try_echo
=$ac_try;;
4946 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
4947 $as_echo "$ac_try_echo") >&5
4948 (eval "$ac_compile") 2>conftest.er1
4950 grep -v '^ *+' conftest.er1
>conftest.err
4952 cat conftest.err
>&5
4953 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4954 (exit $ac_status); } && {
4955 test -z "$ac_c_werror_flag" ||
4956 test ! -s conftest.err
4957 } && test -s conftest.
$ac_objext; then
4958 ac_cv_sys_large_files
=no
; break
4960 $as_echo "$as_me: failed program was:" >&5
4961 sed 's/^/| /' conftest.
$ac_ext >&5
4966 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4967 cat >conftest.
$ac_ext <<_ACEOF
4970 cat confdefs.h
>>conftest.
$ac_ext
4971 cat >>conftest.
$ac_ext <<_ACEOF
4972 /* end confdefs.h. */
4973 #define _LARGE_FILES 1
4974 #include <sys/types.h>
4975 /* Check that off_t can represent 2**63 - 1 correctly.
4976 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4977 since some C++ compilers masquerading as C compilers
4978 incorrectly reject 9223372036854775807. */
4979 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4980 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4981 && LARGE_OFF_T % 2147483647 == 1)
4991 rm -f conftest.
$ac_objext
4992 if { (ac_try
="$ac_compile"
4994 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4995 *) ac_try_echo=$ac_try;;
4997 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4998 $as_echo "$ac_try_echo") >&5
4999 (eval "$ac_compile") 2>conftest.er1
5001 grep -v '^ *+' conftest.er1 >conftest.err
5003 cat conftest.err >&5
5004 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5005 (exit $ac_status); } && {
5006 test -z "$ac_c_werror_flag" ||
5007 test ! -s conftest.err
5008 } && test -s conftest.$ac_objext; then
5009 ac_cv_sys_large_files=1; break
5011 $as_echo "$as_me: failed program was:" >&5
5012 sed 's/^/| /' conftest.$ac_ext >&5
5017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5018 ac_cv_sys_large_files=unknown
5022 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
5023 $as_echo "$ac_cv_sys_large_files" >&6; }
5024 case $ac_cv_sys_large_files in #(
5027 cat >>confdefs.h <<_ACEOF
5028 #define _LARGE_FILES $ac_cv_sys_large_files
5039 SIGNAMES_H=lsignames.h
5044 if test "x$cross_compiling" = "xyes"; then
5047 cross_cache=${srcdir}/cross-build/cygwin32.cache
5050 cross_cache=${srcdir}/cross-build/cygwin32.cache
5053 cross_cache=${srcdir}/cross-build/x86-beos.cache
5055 *) echo "configure: cross-compiling for $host is not supported" >&2
5058 if test -n "${cross_cache}" && test -r "${cross_cache}"; then
5059 echo "loading cross-build cache file ${cross_cache}"
5063 SIGNAMES_O='signames.o'
5064 CROSS_COMPILE='-DCROSS_COMPILING'
5070 if test -z "$CC_FOR_BUILD"; then
5071 if test "x$cross_compiling" = "xno"; then
5072 CC_FOR_BUILD='$(CC)'
5080 test -z "$CFLAGS" && CFLAGS=-g auto_cflags=1
5082 test -n "$GCC" && test -n "$auto_cflags" && CFLAGS="$CFLAGS -O2"
5084 if test "$opt_profiling" = "yes"; then
5088 *) opt_static_link=yes ;;
5090 DEBUG= MALLOC_DEBUG=
5093 if test "$opt_static_link" = yes; then
5094 # if we're using gcc, add `-static' to LDFLAGS, except on Solaris >= 2
5095 if test -n "$GCC" || test "$ac_cv_c_compiler_gnu" = "yes"; then
5099 *) LDFLAGS="$LDFLAGS -static" ;; # XXX experimental
5104 if test "X$cross_compiling" = "Xno"; then
5105 CPPFLAGS_FOR_BUILD=${CPPFLAGS_FOR_BUILD-"$CPPFLAGS"}
5106 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-'$(LDFLAGS)'}
5108 CPPFLAGS_FOR_BUILD=${CPPFLAGS_FOR_BUILD-""}
5109 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-""}
5112 test -z "$CFLAGS_FOR_BUILD" && CFLAGS_FOR_BUILD="-g"
5123 if test $ac_cv_c_compiler_gnu = yes; then
5124 { $as_echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
5125 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
5126 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
5127 $as_echo_n "(cached) " >&6
5129 ac_pattern="Autoconf.*'x
'"
5130 cat >conftest.$ac_ext <<_ACEOF
5133 cat confdefs.h >>conftest.$ac_ext
5134 cat >>conftest.$ac_ext <<_ACEOF
5135 /* end confdefs.h. */
5139 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5140 $EGREP "$ac_pattern" >/dev/null 2>&1; then
5141 ac_cv_prog_gcc_traditional=yes
5143 ac_cv_prog_gcc_traditional=no
5148 if test $ac_cv_prog_gcc_traditional = no; then
5149 cat >conftest.$ac_ext <<_ACEOF
5152 cat confdefs.h >>conftest.$ac_ext
5153 cat >>conftest.$ac_ext <<_ACEOF
5154 /* end confdefs.h. */
5158 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5159 $EGREP "$ac_pattern" >/dev/null 2>&1; then
5160 ac_cv_prog_gcc_traditional=yes
5166 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
5167 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
5168 if test $ac_cv_prog_gcc_traditional = yes; then
5169 CC="$CC -traditional"
5175 if test "$opt_readline" = yes && test "$opt_with_installed_readline" != "no"
5177 # If the user specified --with-installed-readline=PREFIX and PREFIX
5178 # is not `yes', set ac_cv_rl_prefix to PREFIX
5179 test $opt_with_installed_readline != "yes" && ac_cv_rl_prefix
=$opt_with_installed_readline
5182 if test "X$bash_cv_termcap_lib" = "X"; then
5185 { $as_echo "$as_me:$LINENO: checking which library has the termcap functions" >&5
5186 $as_echo_n "checking which library has the termcap functions... " >&6; }
5189 if test "${bash_cv_termcap_lib+set}" = set; then
5190 $as_echo_n "(cached) " >&6
5192 { $as_echo "$as_me:$LINENO: checking for tgetent" >&5
5193 $as_echo_n "checking for tgetent... " >&6; }
5194 if test "${ac_cv_func_tgetent+set}" = set; then
5195 $as_echo_n "(cached) " >&6
5197 cat >conftest.
$ac_ext <<_ACEOF
5200 cat confdefs.h
>>conftest.
$ac_ext
5201 cat >>conftest.
$ac_ext <<_ACEOF
5202 /* end confdefs.h. */
5203 /* Define tgetent to an innocuous variant, in case <limits.h> declares tgetent.
5204 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5205 #define tgetent innocuous_tgetent
5207 /* System header to define __stub macros and hopefully few prototypes,
5208 which can conflict with char tgetent (); below.
5209 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5210 <limits.h> exists even on freestanding compilers. */
5213 # include <limits.h>
5215 # include <assert.h>
5220 /* Override any GCC internal prototype to avoid an error.
5221 Use char because int might match the return type of a GCC
5222 builtin and then its argument prototype would still apply. */
5227 /* The GNU C library defines this for functions which it implements
5228 to always fail with ENOSYS. Some functions are actually named
5229 something starting with __ and the normal name is an alias. */
5230 #if defined __stub_tgetent || defined __stub___tgetent
5242 rm -f conftest.
$ac_objext conftest
$ac_exeext
5243 if { (ac_try
="$ac_link"
5245 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5246 *) ac_try_echo=$ac_try;;
5248 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5249 $as_echo "$ac_try_echo") >&5
5250 (eval "$ac_link") 2>conftest.er1
5252 grep -v '^ *+' conftest.er1 >conftest.err
5254 cat conftest.err >&5
5255 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5256 (exit $ac_status); } && {
5257 test -z "$ac_c_werror_flag" ||
5258 test ! -s conftest.err
5259 } && test -s conftest$ac_exeext && {
5260 test "$cross_compiling" = yes ||
5261 $as_test_x conftest$ac_exeext
5263 ac_cv_func_tgetent=yes
5265 $as_echo "$as_me: failed program was:" >&5
5266 sed 's/^/| /' conftest.$ac_ext >&5
5268 ac_cv_func_tgetent=no
5271 rm -rf conftest.dSYM
5272 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5273 conftest$ac_exeext conftest.$ac_ext
5275 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_tgetent" >&5
5276 $as_echo "$ac_cv_func_tgetent" >&6; }
5277 if test "x$ac_cv_func_tgetent" = x""yes; then
5278 bash_cv_termcap_lib=libc
5280 { $as_echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
5281 $as_echo_n "checking for tgetent in -ltermcap... " >&6; }
5282 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
5283 $as_echo_n "(cached) " >&6
5285 ac_check_lib_save_LIBS=$LIBS
5286 LIBS="-ltermcap $LIBS"
5287 cat >conftest.$ac_ext <<_ACEOF
5290 cat confdefs.h >>conftest.$ac_ext
5291 cat >>conftest.$ac_ext <<_ACEOF
5292 /* end confdefs.h. */
5294 /* Override any GCC internal prototype to avoid an error.
5295 Use char because int might match the return type of a GCC
5296 builtin and then its argument prototype would still apply. */
5309 rm -f conftest.$ac_objext conftest$ac_exeext
5310 if { (ac_try="$ac_link"
5312 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5313 *) ac_try_echo
=$ac_try;;
5315 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
5316 $as_echo "$ac_try_echo") >&5
5317 (eval "$ac_link") 2>conftest.er1
5319 grep -v '^ *+' conftest.er1
>conftest.err
5321 cat conftest.err
>&5
5322 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5323 (exit $ac_status); } && {
5324 test -z "$ac_c_werror_flag" ||
5325 test ! -s conftest.err
5326 } && test -s conftest
$ac_exeext && {
5327 test "$cross_compiling" = yes ||
5328 $as_test_x conftest
$ac_exeext
5330 ac_cv_lib_termcap_tgetent
=yes
5332 $as_echo "$as_me: failed program was:" >&5
5333 sed 's/^/| /' conftest.
$ac_ext >&5
5335 ac_cv_lib_termcap_tgetent
=no
5338 rm -rf conftest.dSYM
5339 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
5340 conftest
$ac_exeext conftest.
$ac_ext
5341 LIBS
=$ac_check_lib_save_LIBS
5343 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
5344 $as_echo "$ac_cv_lib_termcap_tgetent" >&6; }
5345 if test "x$ac_cv_lib_termcap_tgetent" = x
""yes; then
5346 bash_cv_termcap_lib
=libtermcap
5348 { $as_echo "$as_me:$LINENO: checking for tgetent in -ltinfo" >&5
5349 $as_echo_n "checking for tgetent in -ltinfo... " >&6; }
5350 if test "${ac_cv_lib_tinfo_tgetent+set}" = set; then
5351 $as_echo_n "(cached) " >&6
5353 ac_check_lib_save_LIBS
=$LIBS
5354 LIBS
="-ltinfo $LIBS"
5355 cat >conftest.
$ac_ext <<_ACEOF
5358 cat confdefs.h
>>conftest.
$ac_ext
5359 cat >>conftest.
$ac_ext <<_ACEOF
5360 /* end confdefs.h. */
5362 /* Override any GCC internal prototype to avoid an error.
5363 Use char because int might match the return type of a GCC
5364 builtin and then its argument prototype would still apply. */
5377 rm -f conftest.
$ac_objext conftest
$ac_exeext
5378 if { (ac_try
="$ac_link"
5380 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5381 *) ac_try_echo=$ac_try;;
5383 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5384 $as_echo "$ac_try_echo") >&5
5385 (eval "$ac_link") 2>conftest.er1
5387 grep -v '^ *+' conftest.er1 >conftest.err
5389 cat conftest.err >&5
5390 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5391 (exit $ac_status); } && {
5392 test -z "$ac_c_werror_flag" ||
5393 test ! -s conftest.err
5394 } && test -s conftest$ac_exeext && {
5395 test "$cross_compiling" = yes ||
5396 $as_test_x conftest$ac_exeext
5398 ac_cv_lib_tinfo_tgetent=yes
5400 $as_echo "$as_me: failed program was:" >&5
5401 sed 's/^/| /' conftest.$ac_ext >&5
5403 ac_cv_lib_tinfo_tgetent=no
5406 rm -rf conftest.dSYM
5407 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5408 conftest$ac_exeext conftest.$ac_ext
5409 LIBS=$ac_check_lib_save_LIBS
5411 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_tinfo_tgetent" >&5
5412 $as_echo "$ac_cv_lib_tinfo_tgetent" >&6; }
5413 if test "x$ac_cv_lib_tinfo_tgetent" = x""yes; then
5414 bash_cv_termcap_lib=libtinfo
5416 { $as_echo "$as_me:$LINENO: checking for tgetent in -lcurses" >&5
5417 $as_echo_n "checking for tgetent in -lcurses... " >&6; }
5418 if test "${ac_cv_lib_curses_tgetent+set}" = set; then
5419 $as_echo_n "(cached) " >&6
5421 ac_check_lib_save_LIBS=$LIBS
5422 LIBS="-lcurses $LIBS"
5423 cat >conftest.$ac_ext <<_ACEOF
5426 cat confdefs.h >>conftest.$ac_ext
5427 cat >>conftest.$ac_ext <<_ACEOF
5428 /* end confdefs.h. */
5430 /* Override any GCC internal prototype to avoid an error.
5431 Use char because int might match the return type of a GCC
5432 builtin and then its argument prototype would still apply. */
5445 rm -f conftest.$ac_objext conftest$ac_exeext
5446 if { (ac_try="$ac_link"
5448 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5449 *) ac_try_echo
=$ac_try;;
5451 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
5452 $as_echo "$ac_try_echo") >&5
5453 (eval "$ac_link") 2>conftest.er1
5455 grep -v '^ *+' conftest.er1
>conftest.err
5457 cat conftest.err
>&5
5458 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5459 (exit $ac_status); } && {
5460 test -z "$ac_c_werror_flag" ||
5461 test ! -s conftest.err
5462 } && test -s conftest
$ac_exeext && {
5463 test "$cross_compiling" = yes ||
5464 $as_test_x conftest
$ac_exeext
5466 ac_cv_lib_curses_tgetent
=yes
5468 $as_echo "$as_me: failed program was:" >&5
5469 sed 's/^/| /' conftest.
$ac_ext >&5
5471 ac_cv_lib_curses_tgetent
=no
5474 rm -rf conftest.dSYM
5475 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
5476 conftest
$ac_exeext conftest.
$ac_ext
5477 LIBS
=$ac_check_lib_save_LIBS
5479 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_curses_tgetent" >&5
5480 $as_echo "$ac_cv_lib_curses_tgetent" >&6; }
5481 if test "x$ac_cv_lib_curses_tgetent" = x
""yes; then
5482 bash_cv_termcap_lib
=libcurses
5484 { $as_echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5
5485 $as_echo_n "checking for tgetent in -lncurses... " >&6; }
5486 if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then
5487 $as_echo_n "(cached) " >&6
5489 ac_check_lib_save_LIBS
=$LIBS
5490 LIBS
="-lncurses $LIBS"
5491 cat >conftest.
$ac_ext <<_ACEOF
5494 cat confdefs.h
>>conftest.
$ac_ext
5495 cat >>conftest.
$ac_ext <<_ACEOF
5496 /* end confdefs.h. */
5498 /* Override any GCC internal prototype to avoid an error.
5499 Use char because int might match the return type of a GCC
5500 builtin and then its argument prototype would still apply. */
5513 rm -f conftest.
$ac_objext conftest
$ac_exeext
5514 if { (ac_try
="$ac_link"
5516 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5517 *) ac_try_echo=$ac_try;;
5519 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5520 $as_echo "$ac_try_echo") >&5
5521 (eval "$ac_link") 2>conftest.er1
5523 grep -v '^ *+' conftest.er1 >conftest.err
5525 cat conftest.err >&5
5526 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5527 (exit $ac_status); } && {
5528 test -z "$ac_c_werror_flag" ||
5529 test ! -s conftest.err
5530 } && test -s conftest$ac_exeext && {
5531 test "$cross_compiling" = yes ||
5532 $as_test_x conftest$ac_exeext
5534 ac_cv_lib_ncurses_tgetent=yes
5536 $as_echo "$as_me: failed program was:" >&5
5537 sed 's/^/| /' conftest.$ac_ext >&5
5539 ac_cv_lib_ncurses_tgetent=no
5542 rm -rf conftest.dSYM
5543 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5544 conftest$ac_exeext conftest.$ac_ext
5545 LIBS=$ac_check_lib_save_LIBS
5547 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5
5548 $as_echo "$ac_cv_lib_ncurses_tgetent" >&6; }
5549 if test "x$ac_cv_lib_ncurses_tgetent" = x""yes; then
5550 bash_cv_termcap_lib=libncurses
5552 bash_cv_termcap_lib=gnutermcap
5565 if test "X$_bash_needmsg" = "Xyes"; then
5566 { $as_echo "$as_me:$LINENO: checking which library has the termcap functions" >&5
5567 $as_echo_n "checking which library has the termcap functions... " >&6; }
5569 { $as_echo "$as_me:$LINENO: result: using $bash_cv_termcap_lib" >&5
5570 $as_echo "using $bash_cv_termcap_lib" >&6; }
5571 if test $bash_cv_termcap_lib = gnutermcap && test -z "$prefer_curses"; then
5572 LDFLAGS="$LDFLAGS -L./lib/termcap"
5573 TERMCAP_LIB="./lib/termcap/libtermcap.a"
5574 TERMCAP_DEP="./lib/termcap/libtermcap.a"
5575 elif test $bash_cv_termcap_lib = libtermcap && test -z "$prefer_curses"; then
5576 TERMCAP_LIB=-ltermcap
5578 elif test $bash_cv_termcap_lib = libtinfo; then
5581 elif test $bash_cv_termcap_lib = libncurses; then
5582 TERMCAP_LIB=-lncurses
5584 elif test $bash_cv_termcap_lib = libc; then
5588 TERMCAP_LIB=-lcurses
5595 { $as_echo "$as_me:$LINENO: checking version of installed readline library" >&5
5596 $as_echo_n "checking version of installed readline library... " >&6; }
5598 # What a pain in the ass this is.
5600 # save cpp and ld options
5601 _save_CFLAGS="$CFLAGS"
5602 _save_LDFLAGS="$LDFLAGS"
5605 # Don't set ac_cv_rl_prefix if the caller has already assigned a value. This
5606 # allows the caller to do something like $_rl_prefix=$withval if the user
5607 # specifies --with-installed-readline=PREFIX as an argument to configure
5609 if test -z "$ac_cv_rl_prefix"; then
5610 test "x$prefix" = xNONE && ac_cv_rl_prefix=$ac_default_prefix || ac_cv_rl_prefix=${prefix}
5613 eval ac_cv_rl_includedir=${ac_cv_rl_prefix}/include
5614 eval ac_cv_rl_libdir=${ac_cv_rl_prefix}/lib
5616 LIBS="$LIBS -lreadline ${TERMCAP_LIB}"
5617 CFLAGS="$CFLAGS -I${ac_cv_rl_includedir}"
5618 LDFLAGS="$LDFLAGS -L${ac_cv_rl_libdir}"
5620 if test "${ac_cv_rl_version+set}" = set; then
5621 $as_echo_n "(cached) " >&6
5623 if test "$cross_compiling" = yes; then
5624 ac_cv_rl_version='4.2'
5626 cat >conftest.$ac_ext <<_ACEOF
5629 cat confdefs.h >>conftest.$ac_ext
5630 cat >>conftest.$ac_ext <<_ACEOF
5631 /* end confdefs.h. */
5634 #include <readline/readline.h>
5636 extern int rl_gnu_readline_p;
5641 fp = fopen("conftest.rlv", "w");
5644 if (rl_gnu_readline_p != 1)
5645 fprintf(fp, "0.0\n");
5647 fprintf(fp, "%s\n", rl_library_version ? rl_library_version : "0.0");
5653 rm -f conftest$ac_exeext
5654 if { (ac_try="$ac_link"
5656 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5657 *) ac_try_echo
=$ac_try;;
5659 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
5660 $as_echo "$ac_try_echo") >&5
5661 (eval "$ac_link") 2>&5
5663 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5664 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5665 { (case "(($ac_try" in
5666 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5667 *) ac_try_echo=$ac_try;;
5669 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5670 $as_echo "$ac_try_echo") >&5
5671 (eval "$ac_try") 2>&5
5673 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5674 (exit $ac_status); }; }; then
5675 ac_cv_rl_version=`cat conftest.rlv
`
5677 $as_echo "$as_me: program exited with status $ac_status" >&5
5678 $as_echo "$as_me: failed program was:" >&5
5679 sed 's/^/| /' conftest.$ac_ext >&5
5682 ac_cv_rl_version='0.0'
5684 rm -rf conftest.dSYM
5685 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5692 CFLAGS="$_save_CFLAGS"
5693 LDFLAGS="$_save_LDFLAGS"
5700 case "$ac_cv_rl_version" in
5701 2*|3*|4*|5*|6*|7*|8*|9*)
5702 RL_MAJOR=`echo $ac_cv_rl_version |
sed 's:\..*$::'`
5703 RL_MINOR=`echo $ac_cv_rl_version |
sed -e 's:^.*\.::' -e 's:[a-zA-Z]*$::'`
5709 [0-9][0-9]) _RL_MAJOR=$RL_MAJOR ;;
5710 [0-9]) _RL_MAJOR=0$RL_MAJOR ;;
5716 [0-9][0-9]) _RL_MINOR=$RL_MINOR ;;
5717 [0-9]) _RL_MINOR=0$RL_MINOR ;;
5721 RL_VERSION="0x${_RL_MAJOR}${_RL_MINOR}"
5723 # Readline versions greater than 4.2 have these defines in readline.h
5725 if test $ac_cv_rl_version = '0.0' ; then
5726 { $as_echo "$as_me:$LINENO: WARNING: Could not test version of installed readline library." >&5
5727 $as_echo "$as_me: WARNING: Could not test version of installed readline library." >&2;}
5728 elif test $RL_MAJOR -gt 4 || { test $RL_MAJOR = 4 && test $RL_MINOR -gt 2 ; } ; then
5729 # set these for use by the caller
5730 RL_PREFIX=$ac_cv_rl_prefix
5731 RL_LIBDIR=$ac_cv_rl_libdir
5732 RL_INCLUDEDIR=$ac_cv_rl_includedir
5733 { $as_echo "$as_me:$LINENO: result: $ac_cv_rl_version" >&5
5734 $as_echo "$ac_cv_rl_version" >&6; }
5738 cat >>confdefs.h <<_ACEOF
5739 #define RL_READLINE_VERSION $RL_VERSION
5743 cat >>confdefs.h <<_ACEOF
5744 #define RL_VERSION_MAJOR $RL_MAJOR
5748 cat >>confdefs.h <<_ACEOF
5749 #define RL_VERSION_MINOR $RL_MINOR
5757 # set these for use by the caller
5758 RL_PREFIX=$ac_cv_rl_prefix
5759 RL_LIBDIR=$ac_cv_rl_libdir
5760 RL_INCLUDEDIR=$ac_cv_rl_includedir
5762 { $as_echo "$as_me:$LINENO: result: $ac_cv_rl_version" >&5
5763 $as_echo "$ac_cv_rl_version" >&6; }
5768 case "$ac_cv_rl_version" in
5770 *) opt_with_installed_readline=no
5771 { $as_echo "$as_me:$LINENO: WARNING: installed readline library is too old to be linked with bash" >&5
5772 $as_echo "$as_me: WARNING: installed readline library is too old to be linked with bash" >&2;}
5773 { $as_echo "$as_me:$LINENO: WARNING: using private bash version" >&5
5774 $as_echo "$as_me: WARNING: using private bash version" >&2;}
5780 if test $opt_readline = yes; then
5781 cat >>confdefs.h <<\_ACEOF
5785 if test "$opt_with_installed_readline" != "no" ; then
5786 case "$opt_with_installed_readline" in
5788 *) case "$RL_INCLUDEDIR" in
5790 *) RL_INCLUDE='-I${RL_INCLUDEDIR}' ;;
5795 READLINE_LIB=-lreadline
5796 # section for OS versions that don't allow unresolved symbols
5797 # to be compiled into dynamic libraries.
5799 cygwin*) TILDE_LIB= ;;
5802 RL_LIBDIR='$(dot)/$(LIBSUBDIR)/readline'
5803 READLINE_DEP='$(READLINE_LIBRARY)'
5804 # section for OS versions that ship an older/broken version of
5805 # readline as a standard dynamic library and don't allow a
5806 # static version specified as -llibname to override the
5808 case "${host_os}" in
5809 darwin[89]*) READLINE_LIB='${READLINE_LIBRARY}' ;;
5810 *) READLINE_LIB=-lreadline ;;
5814 RL_LIBDIR='$(dot)/$(LIBSUBDIR)/readline'
5815 READLINE_LIB= READLINE_DEP=
5817 if test $opt_history = yes || test $opt_bang_history = yes; then
5818 if test $opt_history = yes; then
5819 cat >>confdefs.h <<\_ACEOF
5824 if test $opt_bang_history = yes; then
5825 cat >>confdefs.h <<\_ACEOF
5826 #define BANG_HISTORY 1
5830 if test "$opt_with_installed_readline" != "no"; then
5831 HIST_LIBDIR=$RL_LIBDIR
5833 HISTORY_LIB=-lhistory
5834 case "$opt_with_installed_readline" in
5836 *) case "$RL_INCLUDEDIR" in
5838 *) RL_INCLUDE='-I${RL_INCLUDEDIR}' ;;
5843 HIST_LIBDIR='$(dot)/$(LIBSUBDIR)/readline'
5844 HISTORY_DEP='$(HISTORY_LIBRARY)'
5845 # section for OS versions that ship an older version of
5846 # readline as a standard dynamic library and don't allow a
5847 # static version specified as -llibname to override the
5849 case "${host_os}" in
5850 darwin[89]*) HISTORY_LIB='${HISTORY_LIBRARY}' ;;
5851 *) HISTORY_LIB=-lhistory ;;
5855 HIST_LIBDIR='$(dot)/$(LIBSUBDIR)/readline'
5856 HISTORY_LIB= HISTORY_DEP=
5869 # Find a good install program. We prefer a C program (faster),
5870 # so one script is as good as another. But avoid the broken or
5871 # incompatible versions:
5872 # SysV /etc/install, /usr/sbin/install
5873 # SunOS /usr/etc/install
5874 # IRIX /sbin/install
5876 # AmigaOS /C/install, which installs bootblocks on floppy discs
5877 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5878 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5879 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5880 # OS/2's system install, which has a completely different semantic
5881 # ./install, which can be erroneously created by make from ./install.sh.
5882 # Reject install programs that cannot install multiple files.
5883 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5884 $as_echo_n "checking for a BSD-compatible install... " >&6; }
5885 if test -z "$INSTALL"; then
5886 if test "${ac_cv_path_install+set}" = set; then
5887 $as_echo_n "(cached) " >&6
5889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5893 test -z "$as_dir" && as_dir=.
5894 # Account for people who put trailing slashes in PATH elements.
5896 ./ | .// | /cC/* | \
5897 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5898 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5901 # OSF1 and SCO ODT 3.0 have their own names for install.
5902 # Don't use installbsd from OSF since it installs stuff as root
5904 for ac_prog in ginstall scoinst install; do
5905 for ac_exec_ext in '' $ac_executable_extensions; do
5906 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
5907 if test $ac_prog = install &&
5908 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5909 # AIX install. It has an incompatible calling convention.
5911 elif test $ac_prog = install &&
5912 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5913 # program-specific install script used by HP pwplus--don't use.
5916 rm -rf conftest.one conftest.two conftest.dir
5917 echo one > conftest.one
5918 echo two > conftest.two
5920 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
5921 test -s conftest.one && test -s conftest.two &&
5922 test -s conftest.dir/conftest.one &&
5923 test -s conftest.dir/conftest.two
5925 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5938 rm -rf conftest.one conftest.two conftest.dir
5941 if test "${ac_cv_path_install+set}" = set; then
5942 INSTALL=$ac_cv_path_install
5944 # As a last resort, use the slow shell script. Don't cache a
5945 # value for INSTALL within a source directory, because that will
5946 # break other packages using the cache if that directory is
5947 # removed, or if the value is a relative name.
5948 INSTALL=$ac_install_sh
5951 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
5952 $as_echo "$INSTALL" >&6; }
5954 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5955 # It thinks the first close brace ends the variable substitution.
5956 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5958 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5960 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5962 # Extract the first word of "ar", so it can be a program name with args.
5963 set dummy ar; ac_word=$2
5964 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5965 $as_echo_n "checking for $ac_word... " >&6; }
5966 if test "${ac_cv_prog_AR+set}" = set; then
5967 $as_echo_n "(cached) " >&6
5969 if test -n "$AR"; then
5970 ac_cv_prog_AR="$AR" # Let the user override the test.
5972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5976 test -z "$as_dir" && as_dir=.
5977 for ac_exec_ext in '' $ac_executable_extensions; do
5978 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5980 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5987 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
5991 if test -n "$AR"; then
5992 { $as_echo "$as_me:$LINENO: result: $AR" >&5
5993 $as_echo "$AR" >&6; }
5995 { $as_echo "$as_me:$LINENO: result: no" >&5
5996 $as_echo "no" >&6; }
6000 test -n "$ARFLAGS" || ARFLAGS="cr"
6001 if test -n "$ac_tool_prefix"; then
6002 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6003 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6004 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6005 $as_echo_n "checking for $ac_word... " >&6; }
6006 if test "${ac_cv_prog_RANLIB+set}" = set; then
6007 $as_echo_n "(cached) " >&6
6009 if test -n "$RANLIB"; then
6010 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6016 test -z "$as_dir" && as_dir=.
6017 for ac_exec_ext in '' $ac_executable_extensions; do
6018 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6019 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6020 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6029 RANLIB=$ac_cv_prog_RANLIB
6030 if test -n "$RANLIB"; then
6031 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
6032 $as_echo "$RANLIB" >&6; }
6034 { $as_echo "$as_me:$LINENO: result: no" >&5
6035 $as_echo "no" >&6; }
6040 if test -z "$ac_cv_prog_RANLIB"; then
6041 ac_ct_RANLIB=$RANLIB
6042 # Extract the first word of "ranlib", so it can be a program name with args.
6043 set dummy ranlib; ac_word=$2
6044 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6045 $as_echo_n "checking for $ac_word... " >&6; }
6046 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6047 $as_echo_n "(cached) " >&6
6049 if test -n "$ac_ct_RANLIB"; then
6050 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6056 test -z "$as_dir" && as_dir=.
6057 for ac_exec_ext in '' $ac_executable_extensions; do
6058 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6059 ac_cv_prog_ac_ct_RANLIB="ranlib"
6060 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6069 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6070 if test -n "$ac_ct_RANLIB"; then
6071 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6072 $as_echo "$ac_ct_RANLIB" >&6; }
6074 { $as_echo "$as_me:$LINENO: result: no" >&5
6075 $as_echo "no" >&6; }
6078 if test "x$ac_ct_RANLIB" = x; then
6081 case $cross_compiling:$ac_tool_warned in
6083 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6084 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6085 ac_tool_warned=yes ;;
6087 RANLIB=$ac_ct_RANLIB
6090 RANLIB="$ac_cv_prog_RANLIB"
6093 for ac_prog in 'bison -y' byacc
6095 # Extract the first word of "$ac_prog", so it can be a program name with args.
6096 set dummy $ac_prog; ac_word=$2
6097 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6098 $as_echo_n "checking for $ac_word... " >&6; }
6099 if test "${ac_cv_prog_YACC+set}" = set; then
6100 $as_echo_n "(cached) " >&6
6102 if test -n "$YACC"; then
6103 ac_cv_prog_YACC="$YACC" # Let the user override the test.
6105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6109 test -z "$as_dir" && as_dir=.
6110 for ac_exec_ext in '' $ac_executable_extensions; do
6111 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6112 ac_cv_prog_YACC="$ac_prog"
6113 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6122 YACC=$ac_cv_prog_YACC
6123 if test -n "$YACC"; then
6124 { $as_echo "$as_me:$LINENO: result: $YACC" >&5
6125 $as_echo "$YACC" >&6; }
6127 { $as_echo "$as_me:$LINENO: result: no" >&5
6128 $as_echo "no" >&6; }
6132 test -n "$YACC" && break
6134 test -n "$YACC" || YACC="yacc"
6136 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6137 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
6139 ac_make=`$as_echo "$2" |
sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
6140 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
6141 $as_echo_n "(cached) " >&6
6143 cat >conftest.make <<\_ACEOF
6146 @echo '@@@%%%=$(MAKE)=@@@%%%'
6148 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6149 case `${MAKE-make} -f conftest.
make 2>/dev
/null
` in
6151 eval ac_cv_prog_make_${ac_make}_set=yes;;
6153 eval ac_cv_prog_make_${ac_make}_set=no;;
6157 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
6158 { $as_echo "$as_me:$LINENO: result: yes" >&5
6159 $as_echo "yes" >&6; }
6162 { $as_echo "$as_me:$LINENO: result: no" >&5
6163 $as_echo "no" >&6; }
6164 SET_MAKE="MAKE=${MAKE-make}"
6169 opennt*|interix*) MAKE_SHELL="$INTERIX_ROOT/bin/sh" ;;
6170 *) MAKE_SHELL=/bin/sh ;;
6174 if test x$SIZE = x; then
6175 if test x$ac_tool_prefix = x; then
6178 SIZE=${ac_tool_prefix}size
6179 save_IFS=$IFS ; IFS=:
6181 for dir in $PATH; do
6182 if test -x $dir/$SIZE ; then
6187 if test $size_found -eq 0; then
6195 cat >>confdefs.h <<\_ACEOF
6196 #define _GNU_SOURCE 1
6200 { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
6201 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
6202 if test "${ac_cv_c_const+set}" = set; then
6203 $as_echo_n "(cached) " >&6
6205 cat >conftest.$ac_ext <<_ACEOF
6208 cat confdefs.h >>conftest.$ac_ext
6209 cat >>conftest.$ac_ext <<_ACEOF
6210 /* end confdefs.h. */
6215 /* FIXME: Include the comments suggested by Paul. */
6217 /* Ultrix mips cc rejects this. */
6218 typedef int charset[2];
6220 /* SunOS 4.1.1 cc rejects this. */
6221 char const *const *pcpcc;
6223 /* NEC SVR4.0.2 mips cc rejects this. */
6224 struct point {int x, y;};
6225 static struct point const zero = {0,0};
6226 /* AIX XL C 1.02.0.0 rejects this.
6227 It does not let you subtract one const X* pointer from another in
6228 an arm of an if-expression whose if-part is not a constant
6230 const char *g = "string";
6231 pcpcc = &g + (g ? g-g : 0);
6232 /* HPUX 7.0 cc rejects these. */
6234 ppc = (char**) pcpcc;
6235 pcpcc = (char const *const *) ppc;
6236 { /* SCO 3.2v4 cc rejects this. */
6238 char const *s = 0 ? (char *) 0 : (char const *) 0;
6243 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
6245 const int *foo = &x[0];
6248 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6249 typedef const int *iptr;
6253 { /* AIX XL C 1.02.0.0 rejects this saying
6254 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6255 struct s { int j; const int *ap[3]; };
6256 struct s *b; b->j = 5;
6258 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6262 return !cs[0] && !zero.x;
6269 rm -f conftest.$ac_objext
6270 if { (ac_try="$ac_compile"
6272 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6273 *) ac_try_echo
=$ac_try;;
6275 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
6276 $as_echo "$ac_try_echo") >&5
6277 (eval "$ac_compile") 2>conftest.er1
6279 grep -v '^ *+' conftest.er1
>conftest.err
6281 cat conftest.err
>&5
6282 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6283 (exit $ac_status); } && {
6284 test -z "$ac_c_werror_flag" ||
6285 test ! -s conftest.err
6286 } && test -s conftest.
$ac_objext; then
6289 $as_echo "$as_me: failed program was:" >&5
6290 sed 's/^/| /' conftest.
$ac_ext >&5
6295 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6297 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
6298 $as_echo "$ac_cv_c_const" >&6; }
6299 if test $ac_cv_c_const = no
; then
6301 cat >>confdefs.h
<<\_ACEOF
6307 { $as_echo "$as_me:$LINENO: checking for inline" >&5
6308 $as_echo_n "checking for inline... " >&6; }
6309 if test "${ac_cv_c_inline+set}" = set; then
6310 $as_echo_n "(cached) " >&6
6313 for ac_kw
in inline __inline__ __inline
; do
6314 cat >conftest.
$ac_ext <<_ACEOF
6317 cat confdefs.h
>>conftest.
$ac_ext
6318 cat >>conftest.
$ac_ext <<_ACEOF
6319 /* end confdefs.h. */
6322 static $ac_kw foo_t static_foo () {return 0; }
6323 $ac_kw foo_t foo () {return 0; }
6327 rm -f conftest.
$ac_objext
6328 if { (ac_try
="$ac_compile"
6330 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6331 *) ac_try_echo=$ac_try;;
6333 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6334 $as_echo "$ac_try_echo") >&5
6335 (eval "$ac_compile") 2>conftest.er1
6337 grep -v '^ *+' conftest.er1 >conftest.err
6339 cat conftest.err >&5
6340 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6341 (exit $ac_status); } && {
6342 test -z "$ac_c_werror_flag" ||
6343 test ! -s conftest.err
6344 } && test -s conftest.$ac_objext; then
6345 ac_cv_c_inline=$ac_kw
6347 $as_echo "$as_me: failed program was:" >&5
6348 sed 's/^/| /' conftest.$ac_ext >&5
6353 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6354 test "$ac_cv_c_inline" != no && break
6358 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
6359 $as_echo "$ac_cv_c_inline" >&6; }
6362 case $ac_cv_c_inline in
6365 case $ac_cv_c_inline in
6367 *) ac_val=$ac_cv_c_inline;;
6369 cat >>confdefs.h <<_ACEOF
6371 #define inline $ac_val
6378 { $as_echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
6379 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
6380 if test "${ac_cv_c_bigendian+set}" = set; then
6381 $as_echo_n "(cached) " >&6
6383 ac_cv_c_bigendian=unknown
6384 # See if we're dealing with a universal compiler.
6385 cat >conftest.$ac_ext <<_ACEOF
6388 cat confdefs.h >>conftest.$ac_ext
6389 cat >>conftest.$ac_ext <<_ACEOF
6390 /* end confdefs.h. */
6391 #ifndef __APPLE_CC__
6392 not a universal capable compiler
6397 rm -f conftest.$ac_objext
6398 if { (ac_try="$ac_compile"
6400 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6401 *) ac_try_echo
=$ac_try;;
6403 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
6404 $as_echo "$ac_try_echo") >&5
6405 (eval "$ac_compile") 2>conftest.er1
6407 grep -v '^ *+' conftest.er1
>conftest.err
6409 cat conftest.err
>&5
6410 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6411 (exit $ac_status); } && {
6412 test -z "$ac_c_werror_flag" ||
6413 test ! -s conftest.err
6414 } && test -s conftest.
$ac_objext; then
6416 # Check for potential -arch flags. It is not universal unless
6417 # there are some -arch flags. Note that *ppc* also matches
6418 # ppc64. This check is also rather less than ideal.
6419 case "${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}" in #(
6420 *-arch*ppc
*|
*-arch*i386
*|
*-arch*x86_64
*) ac_cv_c_bigendian
=universal
;;
6423 $as_echo "$as_me: failed program was:" >&5
6424 sed 's/^/| /' conftest.
$ac_ext >&5
6429 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6430 if test $ac_cv_c_bigendian = unknown
; then
6431 # See if sys/param.h defines the BYTE_ORDER macro.
6432 cat >conftest.
$ac_ext <<_ACEOF
6435 cat confdefs.h
>>conftest.
$ac_ext
6436 cat >>conftest.
$ac_ext <<_ACEOF
6437 /* end confdefs.h. */
6438 #include <sys/types.h>
6439 #include <sys/param.h>
6444 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
6445 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
6454 rm -f conftest.
$ac_objext
6455 if { (ac_try
="$ac_compile"
6457 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6458 *) ac_try_echo=$ac_try;;
6460 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6461 $as_echo "$ac_try_echo") >&5
6462 (eval "$ac_compile") 2>conftest.er1
6464 grep -v '^ *+' conftest.er1 >conftest.err
6466 cat conftest.err >&5
6467 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6468 (exit $ac_status); } && {
6469 test -z "$ac_c_werror_flag" ||
6470 test ! -s conftest.err
6471 } && test -s conftest.$ac_objext; then
6472 # It does; now see whether it defined to BIG_ENDIAN or not.
6473 cat >conftest.$ac_ext <<_ACEOF
6476 cat confdefs.h >>conftest.$ac_ext
6477 cat >>conftest.$ac_ext <<_ACEOF
6478 /* end confdefs.h. */
6479 #include <sys/types.h>
6480 #include <sys/param.h>
6485 #if BYTE_ORDER != BIG_ENDIAN
6493 rm -f conftest.$ac_objext
6494 if { (ac_try="$ac_compile"
6496 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6497 *) ac_try_echo
=$ac_try;;
6499 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
6500 $as_echo "$ac_try_echo") >&5
6501 (eval "$ac_compile") 2>conftest.er1
6503 grep -v '^ *+' conftest.er1
>conftest.err
6505 cat conftest.err
>&5
6506 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6507 (exit $ac_status); } && {
6508 test -z "$ac_c_werror_flag" ||
6509 test ! -s conftest.err
6510 } && test -s conftest.
$ac_objext; then
6511 ac_cv_c_bigendian
=yes
6513 $as_echo "$as_me: failed program was:" >&5
6514 sed 's/^/| /' conftest.
$ac_ext >&5
6516 ac_cv_c_bigendian
=no
6519 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6521 $as_echo "$as_me: failed program was:" >&5
6522 sed 's/^/| /' conftest.
$ac_ext >&5
6527 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6529 if test $ac_cv_c_bigendian = unknown
; then
6530 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
6531 cat >conftest.
$ac_ext <<_ACEOF
6534 cat confdefs.h
>>conftest.
$ac_ext
6535 cat >>conftest.
$ac_ext <<_ACEOF
6536 /* end confdefs.h. */
6542 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
6550 rm -f conftest.
$ac_objext
6551 if { (ac_try
="$ac_compile"
6553 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6554 *) ac_try_echo=$ac_try;;
6556 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6557 $as_echo "$ac_try_echo") >&5
6558 (eval "$ac_compile") 2>conftest.er1
6560 grep -v '^ *+' conftest.er1 >conftest.err
6562 cat conftest.err >&5
6563 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6564 (exit $ac_status); } && {
6565 test -z "$ac_c_werror_flag" ||
6566 test ! -s conftest.err
6567 } && test -s conftest.$ac_objext; then
6568 # It does; now see whether it defined to _BIG_ENDIAN or not.
6569 cat >conftest.$ac_ext <<_ACEOF
6572 cat confdefs.h >>conftest.$ac_ext
6573 cat >>conftest.$ac_ext <<_ACEOF
6574 /* end confdefs.h. */
6588 rm -f conftest.$ac_objext
6589 if { (ac_try="$ac_compile"
6591 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6592 *) ac_try_echo
=$ac_try;;
6594 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
6595 $as_echo "$ac_try_echo") >&5
6596 (eval "$ac_compile") 2>conftest.er1
6598 grep -v '^ *+' conftest.er1
>conftest.err
6600 cat conftest.err
>&5
6601 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6602 (exit $ac_status); } && {
6603 test -z "$ac_c_werror_flag" ||
6604 test ! -s conftest.err
6605 } && test -s conftest.
$ac_objext; then
6606 ac_cv_c_bigendian
=yes
6608 $as_echo "$as_me: failed program was:" >&5
6609 sed 's/^/| /' conftest.
$ac_ext >&5
6611 ac_cv_c_bigendian
=no
6614 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6616 $as_echo "$as_me: failed program was:" >&5
6617 sed 's/^/| /' conftest.
$ac_ext >&5
6622 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6624 if test $ac_cv_c_bigendian = unknown
; then
6625 # Compile a test program.
6626 if test "$cross_compiling" = yes; then
6627 # Try to guess by grepping values from an object file.
6628 cat >conftest.
$ac_ext <<_ACEOF
6631 cat confdefs.h
>>conftest.
$ac_ext
6632 cat >>conftest.
$ac_ext <<_ACEOF
6633 /* end confdefs.h. */
6634 short int ascii_mm[] =
6635 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
6636 short int ascii_ii[] =
6637 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
6638 int use_ascii (int i) {
6639 return ascii_mm[i] + ascii_ii[i];
6641 short int ebcdic_ii[] =
6642 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
6643 short int ebcdic_mm[] =
6644 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
6645 int use_ebcdic (int i) {
6646 return ebcdic_mm[i] + ebcdic_ii[i];
6653 return use_ascii (foo) == use_ebcdic (foo);
6658 rm -f conftest.
$ac_objext
6659 if { (ac_try
="$ac_compile"
6661 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6662 *) ac_try_echo=$ac_try;;
6664 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6665 $as_echo "$ac_try_echo") >&5
6666 (eval "$ac_compile") 2>conftest.er1
6668 grep -v '^ *+' conftest.er1 >conftest.err
6670 cat conftest.err >&5
6671 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6672 (exit $ac_status); } && {
6673 test -z "$ac_c_werror_flag" ||
6674 test ! -s conftest.err
6675 } && test -s conftest.$ac_objext; then
6676 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
6677 ac_cv_c_bigendian=yes
6679 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
6680 if test "$ac_cv_c_bigendian" = unknown; then
6681 ac_cv_c_bigendian=no
6683 # finding both strings is unlikely to happen, but who knows?
6684 ac_cv_c_bigendian=unknown
6688 $as_echo "$as_me: failed program was:" >&5
6689 sed 's/^/| /' conftest.$ac_ext >&5
6694 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6696 cat >conftest.$ac_ext <<_ACEOF
6699 cat confdefs.h >>conftest.$ac_ext
6700 cat >>conftest.$ac_ext <<_ACEOF
6701 /* end confdefs.h. */
6702 $ac_includes_default
6707 /* Are we little or big endian? From Harbison&Steele. */
6711 char c[sizeof (long int)];
6714 return u.c[sizeof (long int) - 1] == 1;
6720 rm -f conftest$ac_exeext
6721 if { (ac_try="$ac_link"
6723 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6724 *) ac_try_echo
=$ac_try;;
6726 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
6727 $as_echo "$ac_try_echo") >&5
6728 (eval "$ac_link") 2>&5
6730 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6731 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
6732 { (case "(($ac_try" in
6733 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6734 *) ac_try_echo=$ac_try;;
6736 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6737 $as_echo "$ac_try_echo") >&5
6738 (eval "$ac_try") 2>&5
6740 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6741 (exit $ac_status); }; }; then
6742 ac_cv_c_bigendian=no
6744 $as_echo "$as_me: program exited with status $ac_status" >&5
6745 $as_echo "$as_me: failed program was:" >&5
6746 sed 's/^/| /' conftest.$ac_ext >&5
6749 ac_cv_c_bigendian=yes
6751 rm -rf conftest.dSYM
6752 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6758 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
6759 $as_echo "$ac_cv_c_bigendian" >&6; }
6760 case $ac_cv_c_bigendian in #(
6762 cat >>confdefs.h <<\_ACEOF
6763 #define WORDS_BIGENDIAN 1
6770 cat >>confdefs.h <<\_ACEOF
6771 #define AC_APPLE_UNIVERSAL_BUILD 1
6776 { { $as_echo "$as_me:$LINENO: error: unknown endianness
6777 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
6778 $as_echo "$as_me: error: unknown endianness
6779 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
6780 { (exit 1); exit 1; }; } ;;
6783 { $as_echo "$as_me:$LINENO: checking for preprocessor stringizing operator" >&5
6784 $as_echo_n "checking for preprocessor stringizing operator... " >&6; }
6785 if test "${ac_cv_c_stringize+set}" = set; then
6786 $as_echo_n "(cached) " >&6
6788 cat >conftest.$ac_ext <<_ACEOF
6791 cat confdefs.h >>conftest.$ac_ext
6792 cat >>conftest.$ac_ext <<_ACEOF
6793 /* end confdefs.h. */
6796 char *s = x(teststring);
6798 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6799 $EGREP "#teststring" >/dev/null 2>&1; then
6800 ac_cv_c_stringize=no
6802 ac_cv_c_stringize=yes
6807 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_stringize" >&5
6808 $as_echo "$ac_cv_c_stringize" >&6; }
6809 if test $ac_cv_c_stringize = yes; then
6811 cat >>confdefs.h <<\_ACEOF
6812 #define HAVE_STRINGIZE 1
6819 { $as_echo "$as_me:$LINENO: checking for long double with more range or precision than double" >&5
6820 $as_echo_n "checking for long double with more range or precision than double... " >&6; }
6821 if test "${ac_cv_type_long_double_wider+set}" = set; then
6822 $as_echo_n "(cached) " >&6
6824 cat >conftest.$ac_ext <<_ACEOF
6827 cat confdefs.h >>conftest.$ac_ext
6828 cat >>conftest.$ac_ext <<_ACEOF
6829 /* end confdefs.h. */
6831 long double const a[] =
6833 0.0L, DBL_MIN, DBL_MAX, DBL_EPSILON,
6834 LDBL_MIN, LDBL_MAX, LDBL_EPSILON
6839 return ((x + (unsigned long int) 10) * (-1 / x) + a[0]
6840 + (x ? f (x) : 'c'));
6846 static int test_array [1 - 2 * !((0 < ((DBL_MAX_EXP < LDBL_MAX_EXP)
6847 + (DBL_MANT_DIG < LDBL_MANT_DIG)
6848 - (LDBL_MAX_EXP < DBL_MAX_EXP)
6849 - (LDBL_MANT_DIG < DBL_MANT_DIG)))
6850 && (int) LDBL_EPSILON == 0
6858 rm -f conftest.$ac_objext
6859 if { (ac_try="$ac_compile"
6861 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6862 *) ac_try_echo
=$ac_try;;
6864 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
6865 $as_echo "$ac_try_echo") >&5
6866 (eval "$ac_compile") 2>conftest.er1
6868 grep -v '^ *+' conftest.er1
>conftest.err
6870 cat conftest.err
>&5
6871 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6872 (exit $ac_status); } && {
6873 test -z "$ac_c_werror_flag" ||
6874 test ! -s conftest.err
6875 } && test -s conftest.
$ac_objext; then
6876 ac_cv_type_long_double_wider
=yes
6878 $as_echo "$as_me: failed program was:" >&5
6879 sed 's/^/| /' conftest.
$ac_ext >&5
6881 ac_cv_type_long_double_wider
=no
6884 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6886 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_long_double_wider" >&5
6887 $as_echo "$ac_cv_type_long_double_wider" >&6; }
6888 if test $ac_cv_type_long_double_wider = yes; then
6890 cat >>confdefs.h
<<\_ACEOF
6891 #define HAVE_LONG_DOUBLE_WIDER 1
6896 ac_cv_c_long_double
=$ac_cv_type_long_double_wider
6897 if test $ac_cv_c_long_double = yes; then
6899 cat >>confdefs.h
<<\_ACEOF
6900 #define HAVE_LONG_DOUBLE 1
6905 { $as_echo "$as_me:$LINENO: checking for function prototypes" >&5
6906 $as_echo_n "checking for function prototypes... " >&6; }
6907 if test "$ac_cv_prog_cc_c89" != no
; then
6908 { $as_echo "$as_me:$LINENO: result: yes" >&5
6909 $as_echo "yes" >&6; }
6911 cat >>confdefs.h
<<\_ACEOF
6912 #define PROTOTYPES 1
6916 cat >>confdefs.h
<<\_ACEOF
6917 #define __PROTOTYPES 1
6921 { $as_echo "$as_me:$LINENO: result: no" >&5
6922 $as_echo "no" >&6; }
6926 { $as_echo "$as_me:$LINENO: checking whether char is unsigned" >&5
6927 $as_echo_n "checking whether char is unsigned... " >&6; }
6928 if test "${ac_cv_c_char_unsigned+set}" = set; then
6929 $as_echo_n "(cached) " >&6
6931 cat >conftest.
$ac_ext <<_ACEOF
6934 cat confdefs.h
>>conftest.
$ac_ext
6935 cat >>conftest.
$ac_ext <<_ACEOF
6936 /* end confdefs.h. */
6937 $ac_includes_default
6941 static int test_array [1 - 2 * !(((char) -1) < 0)];
6948 rm -f conftest.
$ac_objext
6949 if { (ac_try
="$ac_compile"
6951 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6952 *) ac_try_echo=$ac_try;;
6954 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6955 $as_echo "$ac_try_echo") >&5
6956 (eval "$ac_compile") 2>conftest.er1
6958 grep -v '^ *+' conftest.er1 >conftest.err
6960 cat conftest.err >&5
6961 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6962 (exit $ac_status); } && {
6963 test -z "$ac_c_werror_flag" ||
6964 test ! -s conftest.err
6965 } && test -s conftest.$ac_objext; then
6966 ac_cv_c_char_unsigned=no
6968 $as_echo "$as_me: failed program was:" >&5
6969 sed 's/^/| /' conftest.$ac_ext >&5
6971 ac_cv_c_char_unsigned=yes
6974 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6976 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_char_unsigned" >&5
6977 $as_echo "$ac_cv_c_char_unsigned" >&6; }
6978 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
6979 cat >>confdefs.h <<\_ACEOF
6980 #define __CHAR_UNSIGNED__ 1
6985 { $as_echo "$as_me:$LINENO: checking for working volatile" >&5
6986 $as_echo_n "checking for working volatile... " >&6; }
6987 if test "${ac_cv_c_volatile+set}" = set; then
6988 $as_echo_n "(cached) " >&6
6990 cat >conftest.$ac_ext <<_ACEOF
6993 cat confdefs.h >>conftest.$ac_ext
6994 cat >>conftest.$ac_ext <<_ACEOF
6995 /* end confdefs.h. */
7002 int * volatile y = (int *) 0;
7008 rm -f conftest.$ac_objext
7009 if { (ac_try="$ac_compile"
7011 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7012 *) ac_try_echo
=$ac_try;;
7014 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7015 $as_echo "$ac_try_echo") >&5
7016 (eval "$ac_compile") 2>conftest.er1
7018 grep -v '^ *+' conftest.er1
>conftest.err
7020 cat conftest.err
>&5
7021 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7022 (exit $ac_status); } && {
7023 test -z "$ac_c_werror_flag" ||
7024 test ! -s conftest.err
7025 } && test -s conftest.
$ac_objext; then
7026 ac_cv_c_volatile
=yes
7028 $as_echo "$as_me: failed program was:" >&5
7029 sed 's/^/| /' conftest.
$ac_ext >&5
7034 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7036 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
7037 $as_echo "$ac_cv_c_volatile" >&6; }
7038 if test $ac_cv_c_volatile = no
; then
7040 cat >>confdefs.h
<<\_ACEOF
7041 #define volatile /**/
7046 { $as_echo "$as_me:$LINENO: checking for C/C++ restrict keyword" >&5
7047 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
7048 if test "${ac_cv_c_restrict+set}" = set; then
7049 $as_echo_n "(cached) " >&6
7052 # The order here caters to the fact that C++ does not require restrict.
7053 for ac_kw
in __restrict __restrict__ _Restrict restrict
; do
7054 cat >conftest.
$ac_ext <<_ACEOF
7057 cat confdefs.h
>>conftest.
$ac_ext
7058 cat >>conftest.
$ac_ext <<_ACEOF
7059 /* end confdefs.h. */
7060 typedef int * int_ptr;
7061 int foo (int_ptr $ac_kw ip) {
7075 rm -f conftest.
$ac_objext
7076 if { (ac_try
="$ac_compile"
7078 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7079 *) ac_try_echo=$ac_try;;
7081 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7082 $as_echo "$ac_try_echo") >&5
7083 (eval "$ac_compile") 2>conftest.er1
7085 grep -v '^ *+' conftest.er1 >conftest.err
7087 cat conftest.err >&5
7088 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7089 (exit $ac_status); } && {
7090 test -z "$ac_c_werror_flag" ||
7091 test ! -s conftest.err
7092 } && test -s conftest.$ac_objext; then
7093 ac_cv_c_restrict=$ac_kw
7095 $as_echo "$as_me: failed program was:" >&5
7096 sed 's/^/| /' conftest.$ac_ext >&5
7101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7102 test "$ac_cv_c_restrict" != no && break
7106 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_restrict" >&5
7107 $as_echo "$ac_cv_c_restrict" >&6; }
7110 case $ac_cv_c_restrict in
7112 no) cat >>confdefs.h <<\_ACEOF
7113 #define restrict /**/
7116 *) cat >>confdefs.h <<_ACEOF
7117 #define restrict $ac_cv_c_restrict
7125 if test -n "$ac_aux_dir"; then
7126 case "$ac_aux_dir" in
7127 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
7128 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
7131 if test -z "$MKINSTALLDIRS"; then
7132 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
7137 { $as_echo "$as_me:$LINENO: checking whether NLS is requested" >&5
7138 $as_echo_n "checking whether NLS is requested... " >&6; }
7139 # Check whether --enable-nls was given.
7140 if test "${enable_nls+set}" = set; then
7141 enableval=$enable_nls; USE_NLS=$enableval
7146 { $as_echo "$as_me:$LINENO: result: $USE_NLS" >&5
7147 $as_echo "$USE_NLS" >&6; }
7154 # Prepare PATH_SEPARATOR.
7155 # The user is always right.
7156 if test "${PATH_SEPARATOR+set}" != set; then
7157 echo "#! /bin/sh" >conf$$.sh
7158 echo "exit 0" >>conf$$.sh
7160 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7168 # Find out how to test for executable files. Don't use a zero-byte file,
7169 # as systems may use methods other than mode bits to determine executability.
7170 cat >conf$$.file <<_ASEOF
7174 chmod +x conf$$.file
7175 if test -x conf$$.file >/dev/null 2>&1; then
7176 ac_executable_p="test -x"
7178 ac_executable_p="test -f"
7182 # Extract the first word of "msgfmt", so it can be a program name with args.
7183 set dummy msgfmt; ac_word=$2
7184 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7185 $as_echo_n "checking for $ac_word... " >&6; }
7186 if test "${ac_cv_path_MSGFMT+set}" = set; then
7187 $as_echo_n "(cached) " >&6
7191 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
7194 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
7195 for ac_dir in $PATH; do
7197 test -z "$ac_dir" && ac_dir=.
7198 for ac_exec_ext in '' $ac_executable_extensions; do
7199 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7200 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
7201 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
7202 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
7209 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
7213 MSGFMT="$ac_cv_path_MSGFMT"
7214 if test "$MSGFMT" != ":"; then
7215 { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5
7216 $as_echo "$MSGFMT" >&6; }
7218 { $as_echo "$as_me:$LINENO: result: no" >&5
7219 $as_echo "no" >&6; }
7222 # Extract the first word of "gmsgfmt", so it can be a program name with args.
7223 set dummy gmsgfmt; ac_word=$2
7224 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7225 $as_echo_n "checking for $ac_word... " >&6; }
7226 if test "${ac_cv_path_GMSGFMT+set}" = set; then
7227 $as_echo_n "(cached) " >&6
7231 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
7234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7238 test -z "$as_dir" && as_dir=.
7239 for ac_exec_ext in '' $ac_executable_extensions; do
7240 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7241 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
7242 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7249 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
7253 GMSGFMT=$ac_cv_path_GMSGFMT
7254 if test -n "$GMSGFMT"; then
7255 { $as_echo "$as_me:$LINENO: result: $GMSGFMT" >&5
7256 $as_echo "$GMSGFMT" >&6; }
7258 { $as_echo "$as_me:$LINENO: result: no" >&5
7259 $as_echo "no" >&6; }
7265 # Prepare PATH_SEPARATOR.
7266 # The user is always right.
7267 if test "${PATH_SEPARATOR+set}" != set; then
7268 echo "#! /bin/sh" >conf$$.sh
7269 echo "exit 0" >>conf$$.sh
7271 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7279 # Find out how to test for executable files. Don't use a zero-byte file,
7280 # as systems may use methods other than mode bits to determine executability.
7281 cat >conf$$.file <<_ASEOF
7285 chmod +x conf$$.file
7286 if test -x conf$$.file >/dev/null 2>&1; then
7287 ac_executable_p="test -x"
7289 ac_executable_p="test -f"
7293 # Extract the first word of "xgettext", so it can be a program name with args.
7294 set dummy xgettext; ac_word=$2
7295 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7296 $as_echo_n "checking for $ac_word... " >&6; }
7297 if test "${ac_cv_path_XGETTEXT+set}" = set; then
7298 $as_echo_n "(cached) " >&6
7302 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
7305 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
7306 for ac_dir in $PATH; do
7308 test -z "$ac_dir" && ac_dir=.
7309 for ac_exec_ext in '' $ac_executable_extensions; do
7310 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7311 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
7312 (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
7313 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
7320 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
7324 XGETTEXT="$ac_cv_path_XGETTEXT"
7325 if test "$XGETTEXT" != ":"; then
7326 { $as_echo "$as_me:$LINENO: result: $XGETTEXT" >&5
7327 $as_echo "$XGETTEXT" >&6; }
7329 { $as_echo "$as_me:$LINENO: result: no" >&5
7330 $as_echo "no" >&6; }
7336 # Prepare PATH_SEPARATOR.
7337 # The user is always right.
7338 if test "${PATH_SEPARATOR+set}" != set; then
7339 echo "#! /bin/sh" >conf$$.sh
7340 echo "exit 0" >>conf$$.sh
7342 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7350 # Find out how to test for executable files. Don't use a zero-byte file,
7351 # as systems may use methods other than mode bits to determine executability.
7352 cat >conf$$.file <<_ASEOF
7356 chmod +x conf$$.file
7357 if test -x conf$$.file >/dev/null 2>&1; then
7358 ac_executable_p="test -x"
7360 ac_executable_p="test -f"
7364 # Extract the first word of "msgmerge", so it can be a program name with args.
7365 set dummy msgmerge; ac_word=$2
7366 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7367 $as_echo_n "checking for $ac_word... " >&6; }
7368 if test "${ac_cv_path_MSGMERGE+set}" = set; then
7369 $as_echo_n "(cached) " >&6
7373 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
7376 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
7377 for ac_dir in $PATH; do
7379 test -z "$ac_dir" && ac_dir=.
7380 for ac_exec_ext in '' $ac_executable_extensions; do
7381 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7382 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
7383 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
7390 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
7394 MSGMERGE="$ac_cv_path_MSGMERGE"
7395 if test "$MSGMERGE" != ":"; then
7396 { $as_echo "$as_me:$LINENO: result: $MSGMERGE" >&5
7397 $as_echo "$MSGMERGE" >&6; }
7399 { $as_echo "$as_me:$LINENO: result: no" >&5
7400 $as_echo "no" >&6; }
7404 if test "$GMSGFMT" != ":"; then
7405 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
7406 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
7409 GMSGFMT=`echo "$GMSGFMT" |
sed -e 's,^.*/,,'`
7410 { $as_echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
7411 $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
7416 if test "$XGETTEXT" != ":"; then
7417 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
7418 (if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
7421 { $as_echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
7422 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
7428 ac_config_commands="$ac_config_commands default-1"
7431 { $as_echo "$as_me:$LINENO: checking for off_t" >&5
7432 $as_echo_n "checking for off_t... " >&6; }
7433 if test "${ac_cv_type_off_t+set}" = set; then
7434 $as_echo_n "(cached) " >&6
7437 cat >conftest.$ac_ext <<_ACEOF
7440 cat confdefs.h >>conftest.$ac_ext
7441 cat >>conftest.$ac_ext <<_ACEOF
7442 /* end confdefs.h. */
7443 $ac_includes_default
7453 rm -f conftest.$ac_objext
7454 if { (ac_try="$ac_compile"
7456 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7457 *) ac_try_echo
=$ac_try;;
7459 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7460 $as_echo "$ac_try_echo") >&5
7461 (eval "$ac_compile") 2>conftest.er1
7463 grep -v '^ *+' conftest.er1
>conftest.err
7465 cat conftest.err
>&5
7466 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7467 (exit $ac_status); } && {
7468 test -z "$ac_c_werror_flag" ||
7469 test ! -s conftest.err
7470 } && test -s conftest.
$ac_objext; then
7471 cat >conftest.
$ac_ext <<_ACEOF
7474 cat confdefs.h
>>conftest.
$ac_ext
7475 cat >>conftest.
$ac_ext <<_ACEOF
7476 /* end confdefs.h. */
7477 $ac_includes_default
7481 if (sizeof ((off_t)))
7487 rm -f conftest.
$ac_objext
7488 if { (ac_try
="$ac_compile"
7490 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7491 *) ac_try_echo=$ac_try;;
7493 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7494 $as_echo "$ac_try_echo") >&5
7495 (eval "$ac_compile") 2>conftest.er1
7497 grep -v '^ *+' conftest.er1 >conftest.err
7499 cat conftest.err >&5
7500 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7501 (exit $ac_status); } && {
7502 test -z "$ac_c_werror_flag" ||
7503 test ! -s conftest.err
7504 } && test -s conftest.$ac_objext; then
7507 $as_echo "$as_me: failed program was:" >&5
7508 sed 's/^/| /' conftest.$ac_ext >&5
7510 ac_cv_type_off_t=yes
7513 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7515 $as_echo "$as_me: failed program was:" >&5
7516 sed 's/^/| /' conftest.$ac_ext >&5
7521 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7523 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
7524 $as_echo "$ac_cv_type_off_t" >&6; }
7525 if test "x$ac_cv_type_off_t" = x""yes; then
7529 cat >>confdefs.h <<_ACEOF
7530 #define off_t long int
7535 { $as_echo "$as_me:$LINENO: checking for size_t" >&5
7536 $as_echo_n "checking for size_t... " >&6; }
7537 if test "${ac_cv_type_size_t+set}" = set; then
7538 $as_echo_n "(cached) " >&6
7540 ac_cv_type_size_t=no
7541 cat >conftest.$ac_ext <<_ACEOF
7544 cat confdefs.h >>conftest.$ac_ext
7545 cat >>conftest.$ac_ext <<_ACEOF
7546 /* end confdefs.h. */
7547 $ac_includes_default
7551 if (sizeof (size_t))
7557 rm -f conftest.$ac_objext
7558 if { (ac_try="$ac_compile"
7560 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7561 *) ac_try_echo
=$ac_try;;
7563 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7564 $as_echo "$ac_try_echo") >&5
7565 (eval "$ac_compile") 2>conftest.er1
7567 grep -v '^ *+' conftest.er1
>conftest.err
7569 cat conftest.err
>&5
7570 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7571 (exit $ac_status); } && {
7572 test -z "$ac_c_werror_flag" ||
7573 test ! -s conftest.err
7574 } && test -s conftest.
$ac_objext; then
7575 cat >conftest.
$ac_ext <<_ACEOF
7578 cat confdefs.h
>>conftest.
$ac_ext
7579 cat >>conftest.
$ac_ext <<_ACEOF
7580 /* end confdefs.h. */
7581 $ac_includes_default
7585 if (sizeof ((size_t)))
7591 rm -f conftest.
$ac_objext
7592 if { (ac_try
="$ac_compile"
7594 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7595 *) ac_try_echo=$ac_try;;
7597 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7598 $as_echo "$ac_try_echo") >&5
7599 (eval "$ac_compile") 2>conftest.er1
7601 grep -v '^ *+' conftest.er1 >conftest.err
7603 cat conftest.err >&5
7604 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7605 (exit $ac_status); } && {
7606 test -z "$ac_c_werror_flag" ||
7607 test ! -s conftest.err
7608 } && test -s conftest.$ac_objext; then
7611 $as_echo "$as_me: failed program was:" >&5
7612 sed 's/^/| /' conftest.$ac_ext >&5
7614 ac_cv_type_size_t=yes
7617 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7619 $as_echo "$as_me: failed program was:" >&5
7620 sed 's/^/| /' conftest.$ac_ext >&5
7625 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7627 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
7628 $as_echo "$ac_cv_type_size_t" >&6; }
7629 if test "x$ac_cv_type_size_t" = x""yes; then
7633 cat >>confdefs.h <<_ACEOF
7634 #define size_t unsigned int
7639 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
7640 # for constant arguments. Useless!
7641 { $as_echo "$as_me:$LINENO: checking for working alloca.h" >&5
7642 $as_echo_n "checking for working alloca.h... " >&6; }
7643 if test "${ac_cv_working_alloca_h+set}" = set; then
7644 $as_echo_n "(cached) " >&6
7646 cat >conftest.$ac_ext <<_ACEOF
7649 cat confdefs.h >>conftest.$ac_ext
7650 cat >>conftest.$ac_ext <<_ACEOF
7651 /* end confdefs.h. */
7656 char *p = (char *) alloca (2 * sizeof (int));
7662 rm -f conftest.$ac_objext conftest$ac_exeext
7663 if { (ac_try="$ac_link"
7665 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7666 *) ac_try_echo
=$ac_try;;
7668 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7669 $as_echo "$ac_try_echo") >&5
7670 (eval "$ac_link") 2>conftest.er1
7672 grep -v '^ *+' conftest.er1
>conftest.err
7674 cat conftest.err
>&5
7675 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7676 (exit $ac_status); } && {
7677 test -z "$ac_c_werror_flag" ||
7678 test ! -s conftest.err
7679 } && test -s conftest
$ac_exeext && {
7680 test "$cross_compiling" = yes ||
7681 $as_test_x conftest
$ac_exeext
7683 ac_cv_working_alloca_h
=yes
7685 $as_echo "$as_me: failed program was:" >&5
7686 sed 's/^/| /' conftest.
$ac_ext >&5
7688 ac_cv_working_alloca_h
=no
7691 rm -rf conftest.dSYM
7692 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
7693 conftest
$ac_exeext conftest.
$ac_ext
7695 { $as_echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
7696 $as_echo "$ac_cv_working_alloca_h" >&6; }
7697 if test $ac_cv_working_alloca_h = yes; then
7699 cat >>confdefs.h
<<\_ACEOF
7700 #define HAVE_ALLOCA_H 1
7705 { $as_echo "$as_me:$LINENO: checking for alloca" >&5
7706 $as_echo_n "checking for alloca... " >&6; }
7707 if test "${ac_cv_func_alloca_works+set}" = set; then
7708 $as_echo_n "(cached) " >&6
7710 cat >conftest.
$ac_ext <<_ACEOF
7713 cat confdefs.h
>>conftest.
$ac_ext
7714 cat >>conftest.
$ac_ext <<_ACEOF
7715 /* end confdefs.h. */
7717 # define alloca __builtin_alloca
7720 # include <malloc.h>
7721 # define alloca _alloca
7723 # ifdef HAVE_ALLOCA_H
7724 # include <alloca.h>
7729 # ifndef alloca /* predefined by HP cc +Olibcalls */
7740 char *p = (char *) alloca (1);
7746 rm -f conftest.
$ac_objext conftest
$ac_exeext
7747 if { (ac_try
="$ac_link"
7749 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7750 *) ac_try_echo=$ac_try;;
7752 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7753 $as_echo "$ac_try_echo") >&5
7754 (eval "$ac_link") 2>conftest.er1
7756 grep -v '^ *+' conftest.er1 >conftest.err
7758 cat conftest.err >&5
7759 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7760 (exit $ac_status); } && {
7761 test -z "$ac_c_werror_flag" ||
7762 test ! -s conftest.err
7763 } && test -s conftest$ac_exeext && {
7764 test "$cross_compiling" = yes ||
7765 $as_test_x conftest$ac_exeext
7767 ac_cv_func_alloca_works=yes
7769 $as_echo "$as_me: failed program was:" >&5
7770 sed 's/^/| /' conftest.$ac_ext >&5
7772 ac_cv_func_alloca_works=no
7775 rm -rf conftest.dSYM
7776 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7777 conftest$ac_exeext conftest.$ac_ext
7779 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
7780 $as_echo "$ac_cv_func_alloca_works" >&6; }
7782 if test $ac_cv_func_alloca_works = yes; then
7784 cat >>confdefs.h <<\_ACEOF
7785 #define HAVE_ALLOCA 1
7789 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
7790 # that cause trouble. Some versions do not even contain alloca or
7791 # contain a buggy version. If you still want to use their alloca,
7792 # use ar to extract alloca.o from them instead of compiling alloca.c.
7794 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
7796 cat >>confdefs.h <<\_ACEOF
7801 { $as_echo "$as_me:$LINENO: checking whether \`alloca.c
' needs Cray hooks" >&5
7802 $as_echo_n "checking whether \`alloca.c' needs Cray hooks...
" >&6; }
7803 if test "${ac_cv_os_cray+set}" = set; then
7804 $as_echo_n "(cached
) " >&6
7806 cat >conftest.$ac_ext <<_ACEOF
7809 cat confdefs.h >>conftest.$ac_ext
7810 cat >>conftest.$ac_ext <<_ACEOF
7811 /* end confdefs.h. */
7812 #if defined CRAY && ! defined CRAY2
7819 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
7820 $EGREP "webecray
" >/dev/null 2>&1; then
7828 { $as_echo "$as_me:$LINENO: result
: $ac_cv_os_cray" >&5
7829 $as_echo "$ac_cv_os_cray" >&6; }
7830 if test $ac_cv_os_cray = yes; then
7831 for ac_func in _getb67 GETB67 getb67; do
7832 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
7833 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
7834 $as_echo_n "checking
for $ac_func...
" >&6; }
7835 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
7836 $as_echo_n "(cached
) " >&6
7838 cat >conftest.$ac_ext <<_ACEOF
7841 cat confdefs.h >>conftest.$ac_ext
7842 cat >>conftest.$ac_ext <<_ACEOF
7843 /* end confdefs.h. */
7844 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7845 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7846 #define $ac_func innocuous_$ac_func
7848 /* System header to define __stub macros and hopefully few prototypes,
7849 which can conflict with char $ac_func (); below.
7850 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7851 <limits.h> exists even on freestanding compilers. */
7854 # include <limits.h>
7856 # include <assert.h>
7861 /* Override any GCC internal prototype to avoid an error.
7862 Use char because int might match the return type of a GCC
7863 builtin and then its argument prototype would still apply. */
7868 /* The GNU C library defines this for functions which it implements
7869 to always fail with ENOSYS. Some functions are actually named
7870 something starting with __ and the normal name is an alias. */
7871 #if defined __stub_$ac_func || defined __stub___$ac_func
7883 rm -f conftest.$ac_objext conftest$ac_exeext
7884 if { (ac_try="$ac_link"
7886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7887 *) ac_try_echo=$ac_try;;
7889 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
7890 $as_echo "$ac_try_echo") >&5
7891 (eval "$ac_link") 2>conftest.er1
7893 grep -v '^ *+' conftest.er1 >conftest.err
7895 cat conftest.err >&5
7896 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
7897 (exit $ac_status); } && {
7898 test -z "$ac_c_werror_flag" ||
7899 test ! -s conftest.err
7900 } && test -s conftest$ac_exeext && {
7901 test "$cross_compiling" = yes ||
7902 $as_test_x conftest$ac_exeext
7904 eval "$as_ac_var=yes"
7906 $as_echo "$as_me: failed program was
:" >&5
7907 sed 's/^/| /' conftest.$ac_ext >&5
7909 eval "$as_ac_var=no
"
7912 rm -rf conftest.dSYM
7913 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7914 conftest$ac_exeext conftest.$ac_ext
7916 ac_res=`eval 'as_val=${'$as_ac_var'}
7917 $as_echo "$as_val"'`
7918 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
7919 $as_echo "$ac_res" >&6; }
7920 as_val=`eval 'as_val=${'$as_ac_var'}
7921 $as_echo "$as_val"'`
7922 if test "x
$as_val" = x""yes; then
7924 cat >>confdefs.h <<_ACEOF
7925 #define CRAY_STACKSEG_END $ac_func
7934 { $as_echo "$as_me:$LINENO: checking stack direction
for C alloca
" >&5
7935 $as_echo_n "checking stack direction
for C alloca...
" >&6; }
7936 if test "${ac_cv_c_stack_direction+set}" = set; then
7937 $as_echo_n "(cached
) " >&6
7939 if test "$cross_compiling" = yes; then
7940 ac_cv_c_stack_direction=0
7942 cat >conftest.$ac_ext <<_ACEOF
7945 cat confdefs.h >>conftest.$ac_ext
7946 cat >>conftest.$ac_ext <<_ACEOF
7947 /* end confdefs.h. */
7948 $ac_includes_default
7950 find_stack_direction ()
7952 static char *addr = 0;
7957 return find_stack_direction ();
7960 return (&dummy > addr) ? 1 : -1;
7966 return find_stack_direction () < 0;
7969 rm -f conftest$ac_exeext
7970 if { (ac_try="$ac_link"
7972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7973 *) ac_try_echo=$ac_try;;
7975 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
7976 $as_echo "$ac_try_echo") >&5
7977 (eval "$ac_link") 2>&5
7979 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
7980 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7981 { (case "(($ac_try" in
7982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7983 *) ac_try_echo=$ac_try;;
7985 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
7986 $as_echo "$ac_try_echo") >&5
7987 (eval "$ac_try") 2>&5
7989 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
7990 (exit $ac_status); }; }; then
7991 ac_cv_c_stack_direction=1
7993 $as_echo "$as_me: program exited with status
$ac_status" >&5
7994 $as_echo "$as_me: failed program was
:" >&5
7995 sed 's/^/| /' conftest.$ac_ext >&5
7998 ac_cv_c_stack_direction=-1
8000 rm -rf conftest.dSYM
8001 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8006 { $as_echo "$as_me:$LINENO: result
: $ac_cv_c_stack_direction" >&5
8007 $as_echo "$ac_cv_c_stack_direction" >&6; }
8009 cat >>confdefs.h <<_ACEOF
8010 #define STACK_DIRECTION $ac_cv_c_stack_direction
8018 for ac_header in stdlib.h unistd.h
8020 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
8021 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
8022 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
8023 $as_echo_n "checking
for $ac_header...
" >&6; }
8024 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
8025 $as_echo_n "(cached
) " >&6
8027 ac_res=`eval 'as_val=${'$as_ac_Header'}
8028 $as_echo "$as_val"'`
8029 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
8030 $as_echo "$ac_res" >&6; }
8032 # Is the header compilable?
8033 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
8034 $as_echo_n "checking
$ac_header usability...
" >&6; }
8035 cat >conftest.$ac_ext <<_ACEOF
8038 cat confdefs.h >>conftest.$ac_ext
8039 cat >>conftest.$ac_ext <<_ACEOF
8040 /* end confdefs.h. */
8041 $ac_includes_default
8042 #include <$ac_header>
8044 rm -f conftest.$ac_objext
8045 if { (ac_try="$ac_compile"
8047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8048 *) ac_try_echo=$ac_try;;
8050 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
8051 $as_echo "$ac_try_echo") >&5
8052 (eval "$ac_compile") 2>conftest.er1
8054 grep -v '^ *+' conftest.er1 >conftest.err
8056 cat conftest.err >&5
8057 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8058 (exit $ac_status); } && {
8059 test -z "$ac_c_werror_flag" ||
8060 test ! -s conftest.err
8061 } && test -s conftest.$ac_objext; then
8062 ac_header_compiler=yes
8064 $as_echo "$as_me: failed program was
:" >&5
8065 sed 's/^/| /' conftest.$ac_ext >&5
8067 ac_header_compiler=no
8070 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8071 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
8072 $as_echo "$ac_header_compiler" >&6; }
8074 # Is the header present?
8075 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
8076 $as_echo_n "checking
$ac_header presence...
" >&6; }
8077 cat >conftest.$ac_ext <<_ACEOF
8080 cat confdefs.h >>conftest.$ac_ext
8081 cat >>conftest.$ac_ext <<_ACEOF
8082 /* end confdefs.h. */
8083 #include <$ac_header>
8085 if { (ac_try="$ac_cpp conftest.
$ac_ext"
8087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8088 *) ac_try_echo=$ac_try;;
8090 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
8091 $as_echo "$ac_try_echo") >&5
8092 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
8094 grep -v '^ *+' conftest.er1 >conftest.err
8096 cat conftest.err >&5
8097 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8098 (exit $ac_status); } >/dev/null && {
8099 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8100 test ! -s conftest.err
8102 ac_header_preproc=yes
8104 $as_echo "$as_me: failed program was
:" >&5
8105 sed 's/^/| /' conftest.$ac_ext >&5
8107 ac_header_preproc=no
8110 rm -f conftest.err conftest.$ac_ext
8111 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
8112 $as_echo "$ac_header_preproc" >&6; }
8114 # So? What about this header?
8115 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8117 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
8118 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
8119 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
8120 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
8121 ac_header_preproc=yes
8124 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
8125 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
8126 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
8127 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
8128 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
8129 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
8130 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
8131 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
8132 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
8133 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
8134 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
8135 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
8137 ## ------------------------------- ##
8138 ## Report this to bug-bash@gnu.org ##
8139 ## ------------------------------- ##
8141 ) | sed "s
/^
/$as_me: WARNING
: /" >&2
8144 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
8145 $as_echo_n "checking
for $ac_header...
" >&6; }
8146 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
8147 $as_echo_n "(cached
) " >&6
8149 eval "$as_ac_Header=\
$ac_header_preproc"
8151 ac_res=`eval 'as_val=${'$as_ac_Header'}
8152 $as_echo "$as_val"'`
8153 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
8154 $as_echo "$ac_res" >&6; }
8157 as_val=`eval 'as_val=${'$as_ac_Header'}
8158 $as_echo "$as_val"'`
8159 if test "x
$as_val" = x""yes; then
8160 cat >>confdefs.h <<_ACEOF
8161 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
8169 for ac_func in getpagesize
8171 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
8172 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
8173 $as_echo_n "checking
for $ac_func...
" >&6; }
8174 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
8175 $as_echo_n "(cached
) " >&6
8177 cat >conftest.$ac_ext <<_ACEOF
8180 cat confdefs.h >>conftest.$ac_ext
8181 cat >>conftest.$ac_ext <<_ACEOF
8182 /* end confdefs.h. */
8183 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8184 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8185 #define $ac_func innocuous_$ac_func
8187 /* System header to define __stub macros and hopefully few prototypes,
8188 which can conflict with char $ac_func (); below.
8189 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8190 <limits.h> exists even on freestanding compilers. */
8193 # include <limits.h>
8195 # include <assert.h>
8200 /* Override any GCC internal prototype to avoid an error.
8201 Use char because int might match the return type of a GCC
8202 builtin and then its argument prototype would still apply. */
8207 /* The GNU C library defines this for functions which it implements
8208 to always fail with ENOSYS. Some functions are actually named
8209 something starting with __ and the normal name is an alias. */
8210 #if defined __stub_$ac_func || defined __stub___$ac_func
8222 rm -f conftest.$ac_objext conftest$ac_exeext
8223 if { (ac_try="$ac_link"
8225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8226 *) ac_try_echo=$ac_try;;
8228 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
8229 $as_echo "$ac_try_echo") >&5
8230 (eval "$ac_link") 2>conftest.er1
8232 grep -v '^ *+' conftest.er1 >conftest.err
8234 cat conftest.err >&5
8235 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8236 (exit $ac_status); } && {
8237 test -z "$ac_c_werror_flag" ||
8238 test ! -s conftest.err
8239 } && test -s conftest$ac_exeext && {
8240 test "$cross_compiling" = yes ||
8241 $as_test_x conftest$ac_exeext
8243 eval "$as_ac_var=yes"
8245 $as_echo "$as_me: failed program was
:" >&5
8246 sed 's/^/| /' conftest.$ac_ext >&5
8248 eval "$as_ac_var=no
"
8251 rm -rf conftest.dSYM
8252 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8253 conftest$ac_exeext conftest.$ac_ext
8255 ac_res=`eval 'as_val=${'$as_ac_var'}
8256 $as_echo "$as_val"'`
8257 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
8258 $as_echo "$ac_res" >&6; }
8259 as_val=`eval 'as_val=${'$as_ac_var'}
8260 $as_echo "$as_val"'`
8261 if test "x
$as_val" = x""yes; then
8262 cat >>confdefs.h <<_ACEOF
8263 #define `$as_echo "HAVE_
$ac_func" | $as_tr_cpp` 1
8269 { $as_echo "$as_me:$LINENO: checking
for working mmap
" >&5
8270 $as_echo_n "checking
for working mmap...
" >&6; }
8271 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
8272 $as_echo_n "(cached
) " >&6
8274 if test "$cross_compiling" = yes; then
8275 ac_cv_func_mmap_fixed_mapped=no
8277 cat >conftest.$ac_ext <<_ACEOF
8280 cat confdefs.h >>conftest.$ac_ext
8281 cat >>conftest.$ac_ext <<_ACEOF
8282 /* end confdefs.h. */
8283 $ac_includes_default
8284 /* malloc might have been renamed as rpl_malloc. */
8287 /* Thanks to Mike Haertel and Jim Avera for this test.
8288 Here is a matrix of mmap possibilities:
8289 mmap private not fixed
8290 mmap private fixed at somewhere currently unmapped
8291 mmap private fixed at somewhere already mapped
8292 mmap shared not fixed
8293 mmap shared fixed at somewhere currently unmapped
8294 mmap shared fixed at somewhere already mapped
8295 For private mappings, we should verify that changes cannot be read()
8296 back from the file, nor mmap's back from the file at a different
8297 address. (There have been systems where private was not correctly
8298 implemented like the infamous i386 svr4.0, and systems where the
8299 VM page cache was not coherent with the file system buffer cache
8300 like early versions of FreeBSD and possibly contemporary NetBSD.)
8301 For shared mappings, we should conversely verify that changes get
8302 propagated back to all the places they're supposed to be.
8304 Grep wants private fixed already mapped.
8305 The main things grep needs to know about mmap are:
8306 * does it exist and is it safe to write into the mmap'd area
8307 * how to use it (BSD variants) */
8310 #include <sys/mman.h>
8312 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
8316 /* This mess was copied from the GNU getpagesize.h. */
8317 #ifndef HAVE_GETPAGESIZE
8318 /* Assume that all systems that can run configure have sys/param.h. */
8319 # ifndef HAVE_SYS_PARAM_H
8320 # define HAVE_SYS_PARAM_H 1
8323 # ifdef _SC_PAGESIZE
8324 # define getpagesize() sysconf(_SC_PAGESIZE)
8325 # else /* no _SC_PAGESIZE */
8326 # ifdef HAVE_SYS_PARAM_H
8327 # include <sys/param.h>
8328 # ifdef EXEC_PAGESIZE
8329 # define getpagesize() EXEC_PAGESIZE
8330 # else /* no EXEC_PAGESIZE */
8332 # define getpagesize() NBPG * CLSIZE
8335 # endif /* no CLSIZE */
8336 # else /* no NBPG */
8338 # define getpagesize() NBPC
8339 # else /* no NBPC */
8341 # define getpagesize() PAGESIZE
8342 # endif /* PAGESIZE */
8343 # endif /* no NBPC */
8344 # endif /* no NBPG */
8345 # endif /* no EXEC_PAGESIZE */
8346 # else /* no HAVE_SYS_PARAM_H */
8347 # define getpagesize() 8192 /* punt totally */
8348 # endif /* no HAVE_SYS_PARAM_H */
8349 # endif /* no _SC_PAGESIZE */
8351 #endif /* no HAVE_GETPAGESIZE */
8356 char *data, *data2, *data3;
8360 pagesize = getpagesize ();
8362 /* First, make a file with some known garbage in it. */
8363 data = (char *) malloc (pagesize);
8366 for (i = 0; i < pagesize; ++i)
8367 *(data + i) = rand ();
8369 fd = creat ("conftest.mmap
", 0600);
8372 if (write (fd, data, pagesize) != pagesize)
8376 /* Next, try to mmap the file at a fixed address which already has
8377 something else allocated at it. If we can, also make sure that
8378 we see the same garbage. */
8379 fd = open ("conftest.mmap
", O_RDWR);
8382 data2 = (char *) malloc (2 * pagesize);
8385 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
8386 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
8387 MAP_PRIVATE | MAP_FIXED, fd, 0L))
8389 for (i = 0; i < pagesize; ++i)
8390 if (*(data + i) != *(data2 + i))
8393 /* Finally, make sure that changes to the mapped area do not
8394 percolate back to the file as seen by read(). (This is a bug on
8395 some variants of i386 svr4.0.) */
8396 for (i = 0; i < pagesize; ++i)
8397 *(data2 + i) = *(data2 + i) + 1;
8398 data3 = (char *) malloc (pagesize);
8401 if (read (fd, data3, pagesize) != pagesize)
8403 for (i = 0; i < pagesize; ++i)
8404 if (*(data + i) != *(data3 + i))
8410 rm -f conftest$ac_exeext
8411 if { (ac_try="$ac_link"
8413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8414 *) ac_try_echo=$ac_try;;
8416 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
8417 $as_echo "$ac_try_echo") >&5
8418 (eval "$ac_link") 2>&5
8420 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8421 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8422 { (case "(($ac_try" in
8423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8424 *) ac_try_echo=$ac_try;;
8426 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
8427 $as_echo "$ac_try_echo") >&5
8428 (eval "$ac_try") 2>&5
8430 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8431 (exit $ac_status); }; }; then
8432 ac_cv_func_mmap_fixed_mapped=yes
8434 $as_echo "$as_me: program exited with status
$ac_status" >&5
8435 $as_echo "$as_me: failed program was
:" >&5
8436 sed 's/^/| /' conftest.$ac_ext >&5
8439 ac_cv_func_mmap_fixed_mapped=no
8441 rm -rf conftest.dSYM
8442 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8447 { $as_echo "$as_me:$LINENO: result
: $ac_cv_func_mmap_fixed_mapped" >&5
8448 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
8449 if test $ac_cv_func_mmap_fixed_mapped = yes; then
8451 cat >>confdefs.h <<\_ACEOF
8459 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C Library
2.1 or newer
" >&5
8460 $as_echo_n "checking whether we are using the GNU C Library
2.1 or newer...
" >&6; }
8461 if test "${ac_cv_gnu_library_2_1+set}" = set; then
8462 $as_echo_n "(cached
) " >&6
8464 cat >conftest.$ac_ext <<_ACEOF
8467 cat confdefs.h >>conftest.$ac_ext
8468 cat >>conftest.$ac_ext <<_ACEOF
8469 /* end confdefs.h. */
8471 #include <features.h>
8472 #ifdef __GNU_LIBRARY__
8473 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
8479 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
8480 $EGREP "Lucky GNU user
" >/dev/null 2>&1; then
8481 ac_cv_gnu_library_2_1=yes
8483 ac_cv_gnu_library_2_1=no
8490 { $as_echo "$as_me:$LINENO: result
: $ac_cv_gnu_library_2_1" >&5
8491 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
8493 GLIBC21="$ac_cv_gnu_library_2_1"
8498 { $as_echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE
" >&5
8499 $as_echo_n "checking whether integer division by zero raises SIGFPE...
" >&6; }
8500 if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
8501 $as_echo_n "(cached
) " >&6
8504 if test "$cross_compiling" = yes; then
8506 # Guess based on the CPU.
8508 alpha* | i3456786 | m68k | s390*)
8509 gt_cv_int_divbyzero_sigfpe="guessing
yes";;
8511 gt_cv_int_divbyzero_sigfpe="guessing no
";;
8515 cat >conftest.$ac_ext <<_ACEOF
8518 cat confdefs.h >>conftest.$ac_ext
8519 cat >>conftest.$ac_ext <<_ACEOF
8520 /* end confdefs.h. */
8527 sigfpe_handler (int sig)
8529 sigfpe_handler (sig) int sig;
8532 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
8533 exit (sig != SIGFPE);
8543 signal (SIGFPE, sigfpe_handler);
8544 /* IRIX and AIX (when "xlc
-qcheck" is used) yield signal SIGTRAP. */
8545 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
8546 signal (SIGTRAP, sigfpe_handler);
8548 /* Linux/SPARC yields signal SIGILL. */
8549 #if defined (__sparc__) && defined (__linux__)
8550 signal (SIGILL, sigfpe_handler);
8559 rm -f conftest$ac_exeext
8560 if { (ac_try="$ac_link"
8562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8563 *) ac_try_echo=$ac_try;;
8565 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
8566 $as_echo "$ac_try_echo") >&5
8567 (eval "$ac_link") 2>&5
8569 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8570 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8571 { (case "(($ac_try" in
8572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8573 *) ac_try_echo=$ac_try;;
8575 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
8576 $as_echo "$ac_try_echo") >&5
8577 (eval "$ac_try") 2>&5
8579 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8580 (exit $ac_status); }; }; then
8581 gt_cv_int_divbyzero_sigfpe=yes
8583 $as_echo "$as_me: program exited with status
$ac_status" >&5
8584 $as_echo "$as_me: failed program was
:" >&5
8585 sed 's/^/| /' conftest.$ac_ext >&5
8588 gt_cv_int_divbyzero_sigfpe=no
8590 rm -rf conftest.dSYM
8591 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8597 { $as_echo "$as_me:$LINENO: result
: $gt_cv_int_divbyzero_sigfpe" >&5
8598 $as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; }
8599 case "$gt_cv_int_divbyzero_sigfpe" in
8604 cat >>confdefs.h <<_ACEOF
8605 #define INTDIV0_RAISES_SIGFPE $value
8610 { $as_echo "$as_me:$LINENO: checking
for inttypes.h
" >&5
8611 $as_echo_n "checking
for inttypes.h...
" >&6; }
8612 if test "${jm_ac_cv_header_inttypes_h+set}" = set; then
8613 $as_echo_n "(cached
) " >&6
8615 cat >conftest.$ac_ext <<_ACEOF
8618 cat confdefs.h >>conftest.$ac_ext
8619 cat >>conftest.$ac_ext <<_ACEOF
8620 /* end confdefs.h. */
8621 #include <sys/types.h>
8622 #include <inttypes.h>
8626 uintmax_t i = (uintmax_t) -1;
8631 rm -f conftest.$ac_objext
8632 if { (ac_try="$ac_compile"
8634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8635 *) ac_try_echo=$ac_try;;
8637 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
8638 $as_echo "$ac_try_echo") >&5
8639 (eval "$ac_compile") 2>conftest.er1
8641 grep -v '^ *+' conftest.er1 >conftest.err
8643 cat conftest.err >&5
8644 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8645 (exit $ac_status); } && {
8646 test -z "$ac_c_werror_flag" ||
8647 test ! -s conftest.err
8648 } && test -s conftest.$ac_objext; then
8649 jm_ac_cv_header_inttypes_h=yes
8651 $as_echo "$as_me: failed program was
:" >&5
8652 sed 's/^/| /' conftest.$ac_ext >&5
8654 jm_ac_cv_header_inttypes_h=no
8657 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8659 { $as_echo "$as_me:$LINENO: result
: $jm_ac_cv_header_inttypes_h" >&5
8660 $as_echo "$jm_ac_cv_header_inttypes_h" >&6; }
8661 if test $jm_ac_cv_header_inttypes_h = yes; then
8663 cat >>confdefs.h <<_ACEOF
8664 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
8670 { $as_echo "$as_me:$LINENO: checking
for stdint.h
" >&5
8671 $as_echo_n "checking
for stdint.h...
" >&6; }
8672 if test "${jm_ac_cv_header_stdint_h+set}" = set; then
8673 $as_echo_n "(cached
) " >&6
8675 cat >conftest.$ac_ext <<_ACEOF
8678 cat confdefs.h >>conftest.$ac_ext
8679 cat >>conftest.$ac_ext <<_ACEOF
8680 /* end confdefs.h. */
8681 #include <sys/types.h>
8686 uintmax_t i = (uintmax_t) -1;
8691 rm -f conftest.$ac_objext
8692 if { (ac_try="$ac_compile"
8694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8695 *) ac_try_echo=$ac_try;;
8697 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
8698 $as_echo "$ac_try_echo") >&5
8699 (eval "$ac_compile") 2>conftest.er1
8701 grep -v '^ *+' conftest.er1 >conftest.err
8703 cat conftest.err >&5
8704 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8705 (exit $ac_status); } && {
8706 test -z "$ac_c_werror_flag" ||
8707 test ! -s conftest.err
8708 } && test -s conftest.$ac_objext; then
8709 jm_ac_cv_header_stdint_h=yes
8711 $as_echo "$as_me: failed program was
:" >&5
8712 sed 's/^/| /' conftest.$ac_ext >&5
8714 jm_ac_cv_header_stdint_h=no
8717 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8719 { $as_echo "$as_me:$LINENO: result
: $jm_ac_cv_header_stdint_h" >&5
8720 $as_echo "$jm_ac_cv_header_stdint_h" >&6; }
8721 if test $jm_ac_cv_header_stdint_h = yes; then
8723 cat >>confdefs.h <<_ACEOF
8724 #define HAVE_STDINT_H_WITH_UINTMAX 1
8730 { $as_echo "$as_me:$LINENO: checking
for unsigned long long
" >&5
8731 $as_echo_n "checking
for unsigned long long...
" >&6; }
8732 if test "${ac_cv_type_unsigned_long_long+set}" = set; then
8733 $as_echo_n "(cached
) " >&6
8735 cat >conftest.$ac_ext <<_ACEOF
8738 cat confdefs.h >>conftest.$ac_ext
8739 cat >>conftest.$ac_ext <<_ACEOF
8740 /* end confdefs.h. */
8741 unsigned long long ull = 1; int i = 63;
8745 unsigned long long ullmax = (unsigned long long) -1;
8746 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
8751 rm -f conftest.$ac_objext conftest$ac_exeext
8752 if { (ac_try="$ac_link"
8754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8755 *) ac_try_echo=$ac_try;;
8757 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
8758 $as_echo "$ac_try_echo") >&5
8759 (eval "$ac_link") 2>conftest.er1
8761 grep -v '^ *+' conftest.er1 >conftest.err
8763 cat conftest.err >&5
8764 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8765 (exit $ac_status); } && {
8766 test -z "$ac_c_werror_flag" ||
8767 test ! -s conftest.err
8768 } && test -s conftest$ac_exeext && {
8769 test "$cross_compiling" = yes ||
8770 $as_test_x conftest$ac_exeext
8772 ac_cv_type_unsigned_long_long=yes
8774 $as_echo "$as_me: failed program was
:" >&5
8775 sed 's/^/| /' conftest.$ac_ext >&5
8777 ac_cv_type_unsigned_long_long=no
8780 rm -rf conftest.dSYM
8781 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8782 conftest$ac_exeext conftest.$ac_ext
8784 { $as_echo "$as_me:$LINENO: result
: $ac_cv_type_unsigned_long_long" >&5
8785 $as_echo "$ac_cv_type_unsigned_long_long" >&6; }
8786 if test $ac_cv_type_unsigned_long_long = yes; then
8788 cat >>confdefs.h <<\_ACEOF
8789 #define HAVE_UNSIGNED_LONG_LONG 1
8797 if test $jm_ac_cv_header_inttypes_h = no && test $jm_ac_cv_header_stdint_h = no; then
8799 test $ac_cv_type_unsigned_long_long = yes \
8800 && ac_type='unsigned long long' \
8801 || ac_type='unsigned long'
8803 cat >>confdefs.h <<_ACEOF
8804 #define uintmax_t $ac_type
8809 cat >>confdefs.h <<\_ACEOF
8810 #define HAVE_UINTMAX_T 1
8816 { $as_echo "$as_me:$LINENO: checking
for inttypes.h
" >&5
8817 $as_echo_n "checking
for inttypes.h...
" >&6; }
8818 if test "${gt_cv_header_inttypes_h+set}" = set; then
8819 $as_echo_n "(cached
) " >&6
8822 cat >conftest.$ac_ext <<_ACEOF
8825 cat confdefs.h >>conftest.$ac_ext
8826 cat >>conftest.$ac_ext <<_ACEOF
8827 /* end confdefs.h. */
8828 #include <sys/types.h>
8829 #include <inttypes.h>
8838 rm -f conftest.$ac_objext
8839 if { (ac_try="$ac_compile"
8841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8842 *) ac_try_echo=$ac_try;;
8844 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
8845 $as_echo "$ac_try_echo") >&5
8846 (eval "$ac_compile") 2>conftest.er1
8848 grep -v '^ *+' conftest.er1 >conftest.err
8850 cat conftest.err >&5
8851 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8852 (exit $ac_status); } && {
8853 test -z "$ac_c_werror_flag" ||
8854 test ! -s conftest.err
8855 } && test -s conftest.$ac_objext; then
8856 gt_cv_header_inttypes_h=yes
8858 $as_echo "$as_me: failed program was
:" >&5
8859 sed 's/^/| /' conftest.$ac_ext >&5
8861 gt_cv_header_inttypes_h=no
8864 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8867 { $as_echo "$as_me:$LINENO: result
: $gt_cv_header_inttypes_h" >&5
8868 $as_echo "$gt_cv_header_inttypes_h" >&6; }
8869 if test $gt_cv_header_inttypes_h = yes; then
8871 cat >>confdefs.h <<_ACEOF
8872 #define HAVE_INTTYPES_H 1
8879 if test $gt_cv_header_inttypes_h = yes; then
8880 { $as_echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken
" >&5
8881 $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken...
" >&6; }
8882 if test "${gt_cv_inttypes_pri_broken+set}" = set; then
8883 $as_echo_n "(cached
) " >&6
8886 cat >conftest.$ac_ext <<_ACEOF
8889 cat confdefs.h >>conftest.$ac_ext
8890 cat >>conftest.$ac_ext <<_ACEOF
8891 /* end confdefs.h. */
8892 #include <inttypes.h>
8905 rm -f conftest.$ac_objext
8906 if { (ac_try="$ac_compile"
8908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8909 *) ac_try_echo=$ac_try;;
8911 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
8912 $as_echo "$ac_try_echo") >&5
8913 (eval "$ac_compile") 2>conftest.er1
8915 grep -v '^ *+' conftest.er1 >conftest.err
8917 cat conftest.err >&5
8918 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8919 (exit $ac_status); } && {
8920 test -z "$ac_c_werror_flag" ||
8921 test ! -s conftest.err
8922 } && test -s conftest.$ac_objext; then
8923 gt_cv_inttypes_pri_broken=no
8925 $as_echo "$as_me: failed program was
:" >&5
8926 sed 's/^/| /' conftest.$ac_ext >&5
8928 gt_cv_inttypes_pri_broken=yes
8931 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8934 { $as_echo "$as_me:$LINENO: result
: $gt_cv_inttypes_pri_broken" >&5
8935 $as_echo "$gt_cv_inttypes_pri_broken" >&6; }
8937 if test "$gt_cv_inttypes_pri_broken" = yes; then
8939 cat >>confdefs.h <<_ACEOF
8940 #define PRI_MACROS_BROKEN 1
8946 if test "X
$prefix" = "XNONE
"; then
8947 acl_final_prefix="$ac_default_prefix"
8949 acl_final_prefix="$prefix"
8951 if test "X
$exec_prefix" = "XNONE
"; then
8952 acl_final_exec_prefix='${prefix}'
8954 acl_final_exec_prefix="$exec_prefix"
8956 acl_save_prefix="$prefix"
8957 prefix="$acl_final_prefix"
8958 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
8959 prefix="$acl_save_prefix"
8962 # Check whether --with-gnu-ld was given.
8963 if test "${with_gnu_ld+set}" = set; then
8964 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
8969 # Prepare PATH_SEPARATOR.
8970 # The user is always right.
8971 if test "${PATH_SEPARATOR+set}" != set; then
8972 echo "#! /bin/sh" >conf$$.sh
8973 echo "exit 0" >>conf$$.sh
8975 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
8983 if test "$GCC" = yes; then
8984 # Check if gcc -print-prog-name=ld gives a path.
8985 { $as_echo "$as_me:$LINENO: checking for ld used by GCC" >&5
8986 $as_echo_n "checking for ld used by GCC... " >&6; }
8989 # gcc leaves a trailing carriage return which upsets mingw
8990 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
8992 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
8995 # Accept absolute paths.
8996 [\\/]* |
[A-Za-z
]:[\\/]*)
8997 re_direlt
='/[^/][^/]*/\.\./'
8998 # Canonicalize the path of ld
8999 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
9000 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
9001 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
9003 test -z "$LD" && LD
="$ac_prog"
9006 # If it fails, then pretend we aren't using GCC.
9010 # If it is relative, then search for the first ld in PATH.
9014 elif test "$with_gnu_ld" = yes; then
9015 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
9016 $as_echo_n "checking for GNU ld... " >&6; }
9018 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9019 $as_echo_n "checking for non-GNU ld... " >&6; }
9021 if test "${acl_cv_path_LD+set}" = set; then
9022 $as_echo_n "(cached) " >&6
9024 if test -z "$LD"; then
9025 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
9026 for ac_dir
in $PATH; do
9027 test -z "$ac_dir" && ac_dir
=.
9028 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
9029 acl_cv_path_LD
="$ac_dir/$ac_prog"
9030 # Check to see if the program is GNU ld. I'd rather use --version,
9031 # but apparently some GNU ld's only accept -v.
9032 # Break only if it was the GNU/non-GNU ld that we prefer.
9033 if "$acl_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
9034 test "$with_gnu_ld" != no
&& break
9036 test "$with_gnu_ld" != yes && break
9042 acl_cv_path_LD
="$LD" # Let the user override the test with a path.
9046 LD
="$acl_cv_path_LD"
9047 if test -n "$LD"; then
9048 { $as_echo "$as_me:$LINENO: result: $LD" >&5
9049 $as_echo "$LD" >&6; }
9051 { $as_echo "$as_me:$LINENO: result: no" >&5
9052 $as_echo "no" >&6; }
9054 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9055 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9056 { (exit 1); exit 1; }; }
9057 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9058 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
9059 if test "${acl_cv_prog_gnu_ld+set}" = set; then
9060 $as_echo_n "(cached) " >&6
9062 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9063 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
9064 acl_cv_prog_gnu_ld
=yes
9066 acl_cv_prog_gnu_ld
=no
9069 { $as_echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
9070 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
9071 with_gnu_ld
=$acl_cv_prog_gnu_ld
9075 { $as_echo "$as_me:$LINENO: checking for shared library run path origin" >&5
9076 $as_echo_n "checking for shared library run path origin... " >&6; }
9077 if test "${acl_cv_rpath+set}" = set; then
9078 $as_echo_n "(cached) " >&6
9081 CC
="$CC" GCC
="$GCC" LDFLAGS
="$LDFLAGS" LD
="$LD" with_gnu_ld
="$with_gnu_ld" \
9082 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
9088 { $as_echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
9089 $as_echo "$acl_cv_rpath" >&6; }
9091 libext
="$acl_cv_libext"
9092 shlibext
="$acl_cv_shlibext"
9093 hardcode_libdir_flag_spec
="$acl_cv_hardcode_libdir_flag_spec"
9094 hardcode_libdir_separator
="$acl_cv_hardcode_libdir_separator"
9095 hardcode_direct
="$acl_cv_hardcode_direct"
9096 hardcode_minus_L
="$acl_cv_hardcode_minus_L"
9097 # Check whether --enable-rpath was given.
9098 if test "${enable_rpath+set}" = set; then
9099 enableval
=$enable_rpath; :
9113 acl_save_prefix
="$prefix"
9114 prefix
="$acl_final_prefix"
9115 acl_save_exec_prefix
="$exec_prefix"
9116 exec_prefix
="$acl_final_exec_prefix"
9118 eval additional_includedir
=\"$includedir\"
9119 eval additional_libdir
=\"$libdir\"
9121 exec_prefix
="$acl_save_exec_prefix"
9122 prefix
="$acl_save_prefix"
9125 # Check whether --with-libiconv-prefix was given.
9126 if test "${with_libiconv_prefix+set}" = set; then
9127 withval
=$with_libiconv_prefix;
9128 if test "X$withval" = "Xno"; then
9131 if test "X$withval" = "X"; then
9133 acl_save_prefix
="$prefix"
9134 prefix
="$acl_final_prefix"
9135 acl_save_exec_prefix
="$exec_prefix"
9136 exec_prefix
="$acl_final_exec_prefix"
9138 eval additional_includedir
=\"$includedir\"
9139 eval additional_libdir
=\"$libdir\"
9141 exec_prefix
="$acl_save_exec_prefix"
9142 prefix
="$acl_save_prefix"
9145 additional_includedir
="$withval/include"
9146 additional_libdir
="$withval/lib"
9157 names_already_handled
=
9158 names_next_round
='iconv '
9159 while test -n "$names_next_round"; do
9160 names_this_round
="$names_next_round"
9162 for name
in $names_this_round; do
9164 for n
in $names_already_handled; do
9165 if test "$n" = "$name"; then
9170 if test -z "$already_handled"; then
9171 names_already_handled
="$names_already_handled $name"
9172 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9173 eval value
=\"\
$HAVE_LIB$uppername\"
9174 if test -n "$value"; then
9175 if test "$value" = yes; then
9176 eval value
=\"\
$LIB$uppername\"
9177 test -z "$value" || LIBICONV
="${LIBICONV}${LIBICONV:+ }$value"
9178 eval value
=\"\
$LTLIB$uppername\"
9179 test -z "$value" || LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$value"
9188 if test $use_additional = yes; then
9189 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
9190 found_dir
="$additional_libdir"
9191 found_so
="$additional_libdir/lib$name.$shlibext"
9192 if test -f "$additional_libdir/lib$name.la"; then
9193 found_la
="$additional_libdir/lib$name.la"
9196 if test -f "$additional_libdir/lib$name.$libext"; then
9197 found_dir
="$additional_libdir"
9198 found_a
="$additional_libdir/lib$name.$libext"
9199 if test -f "$additional_libdir/lib$name.la"; then
9200 found_la
="$additional_libdir/lib$name.la"
9205 if test "X$found_dir" = "X"; then
9206 for x
in $LDFLAGS $LTLIBICONV; do
9208 acl_save_prefix
="$prefix"
9209 prefix
="$acl_final_prefix"
9210 acl_save_exec_prefix
="$exec_prefix"
9211 exec_prefix
="$acl_final_exec_prefix"
9213 exec_prefix
="$acl_save_exec_prefix"
9214 prefix
="$acl_save_prefix"
9218 dir
=`echo "X$x" | sed -e 's/^X-L//'`
9219 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
9221 found_so
="$dir/lib$name.$shlibext"
9222 if test -f "$dir/lib$name.la"; then
9223 found_la
="$dir/lib$name.la"
9226 if test -f "$dir/lib$name.$libext"; then
9228 found_a
="$dir/lib$name.$libext"
9229 if test -f "$dir/lib$name.la"; then
9230 found_la
="$dir/lib$name.la"
9236 if test "X$found_dir" != "X"; then
9241 if test "X$found_dir" != "X"; then
9242 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
9243 if test "X$found_so" != "X"; then
9244 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
9245 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
9248 for x
in $ltrpathdirs; do
9249 if test "X$x" = "X$found_dir"; then
9254 if test -z "$haveit"; then
9255 ltrpathdirs
="$ltrpathdirs $found_dir"
9257 if test "$hardcode_direct" = yes; then
9258 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
9260 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
9261 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
9263 for x
in $rpathdirs; do
9264 if test "X$x" = "X$found_dir"; then
9269 if test -z "$haveit"; then
9270 rpathdirs
="$rpathdirs $found_dir"
9274 for x
in $LDFLAGS $LIBICONV; do
9276 acl_save_prefix
="$prefix"
9277 prefix
="$acl_final_prefix"
9278 acl_save_exec_prefix
="$exec_prefix"
9279 exec_prefix
="$acl_final_exec_prefix"
9281 exec_prefix
="$acl_save_exec_prefix"
9282 prefix
="$acl_save_prefix"
9284 if test "X$x" = "X-L$found_dir"; then
9289 if test -z "$haveit"; then
9290 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir"
9292 if test "$hardcode_minus_L" != no
; then
9293 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
9295 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
9301 if test "X$found_a" != "X"; then
9302 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_a"
9304 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
9307 additional_includedir
=
9308 case "$found_dir" in
9310 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
9311 additional_includedir
="$basedir/include"
9314 if test "X$additional_includedir" != "X"; then
9315 if test "X$additional_includedir" != "X/usr/include"; then
9317 if test "X$additional_includedir" = "X/usr/local/include"; then
9318 if test -n "$GCC"; then
9320 linux
*) haveit
=yes;;
9324 if test -z "$haveit"; then
9325 for x
in $CPPFLAGS $INCICONV; do
9327 acl_save_prefix
="$prefix"
9328 prefix
="$acl_final_prefix"
9329 acl_save_exec_prefix
="$exec_prefix"
9330 exec_prefix
="$acl_final_exec_prefix"
9332 exec_prefix
="$acl_save_exec_prefix"
9333 prefix
="$acl_save_prefix"
9335 if test "X$x" = "X-I$additional_includedir"; then
9340 if test -z "$haveit"; then
9341 if test -d "$additional_includedir"; then
9342 INCICONV
="${INCICONV}${INCICONV:+ }-I$additional_includedir"
9348 if test -n "$found_la"; then
9349 save_libdir
="$libdir"
9351 */* |
*\\*) .
"$found_la" ;;
9352 *) .
"./$found_la" ;;
9354 libdir
="$save_libdir"
9355 for dep
in $dependency_libs; do
9358 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
9359 if test "X$additional_libdir" != "X/usr/lib"; then
9361 if test "X$additional_libdir" = "X/usr/local/lib"; then
9362 if test -n "$GCC"; then
9364 linux
*) haveit
=yes;;
9368 if test -z "$haveit"; then
9370 for x
in $LDFLAGS $LIBICONV; do
9372 acl_save_prefix
="$prefix"
9373 prefix
="$acl_final_prefix"
9374 acl_save_exec_prefix
="$exec_prefix"
9375 exec_prefix
="$acl_final_exec_prefix"
9377 exec_prefix
="$acl_save_exec_prefix"
9378 prefix
="$acl_save_prefix"
9380 if test "X$x" = "X-L$additional_libdir"; then
9385 if test -z "$haveit"; then
9386 if test -d "$additional_libdir"; then
9387 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
9391 for x
in $LDFLAGS $LTLIBICONV; do
9393 acl_save_prefix
="$prefix"
9394 prefix
="$acl_final_prefix"
9395 acl_save_exec_prefix
="$exec_prefix"
9396 exec_prefix
="$acl_final_exec_prefix"
9398 exec_prefix
="$acl_save_exec_prefix"
9399 prefix
="$acl_save_prefix"
9401 if test "X$x" = "X-L$additional_libdir"; then
9406 if test -z "$haveit"; then
9407 if test -d "$additional_libdir"; then
9408 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
9415 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
9416 if test "$enable_rpath" != no
; then
9418 for x
in $rpathdirs; do
9419 if test "X$x" = "X$dir"; then
9424 if test -z "$haveit"; then
9425 rpathdirs
="$rpathdirs $dir"
9428 for x
in $ltrpathdirs; do
9429 if test "X$x" = "X$dir"; then
9434 if test -z "$haveit"; then
9435 ltrpathdirs
="$ltrpathdirs $dir"
9440 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9443 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9446 LIBICONV
="${LIBICONV}${LIBICONV:+ }$dep"
9447 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$dep"
9453 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
9454 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
9460 if test "X$rpathdirs" != "X"; then
9461 if test -n "$hardcode_libdir_separator"; then
9463 for found_dir
in $rpathdirs; do
9464 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
9466 acl_save_libdir
="$libdir"
9468 eval flag
=\"$hardcode_libdir_flag_spec\"
9469 libdir
="$acl_save_libdir"
9470 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
9472 for found_dir
in $rpathdirs; do
9473 acl_save_libdir
="$libdir"
9475 eval flag
=\"$hardcode_libdir_flag_spec\"
9476 libdir
="$acl_save_libdir"
9477 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
9481 if test "X$ltrpathdirs" != "X"; then
9482 for found_dir
in $ltrpathdirs; do
9483 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
9500 for ac_header
in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
9501 stdlib.h string.h unistd.h sys
/param.h
9503 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9504 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9505 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9506 $as_echo_n "checking for $ac_header... " >&6; }
9507 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9508 $as_echo_n "(cached) " >&6
9510 ac_res
=`eval 'as_val=${'$as_ac_Header'}
9511 $as_echo "$as_val"'`
9512 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9513 $as_echo "$ac_res" >&6; }
9515 # Is the header compilable?
9516 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
9517 $as_echo_n "checking $ac_header usability... " >&6; }
9518 cat >conftest.
$ac_ext <<_ACEOF
9521 cat confdefs.h
>>conftest.
$ac_ext
9522 cat >>conftest.
$ac_ext <<_ACEOF
9523 /* end confdefs.h. */
9524 $ac_includes_default
9525 #include <$ac_header>
9527 rm -f conftest.
$ac_objext
9528 if { (ac_try
="$ac_compile"
9530 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9531 *) ac_try_echo=$ac_try;;
9533 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9534 $as_echo "$ac_try_echo") >&5
9535 (eval "$ac_compile") 2>conftest.er1
9537 grep -v '^ *+' conftest.er1 >conftest.err
9539 cat conftest.err >&5
9540 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9541 (exit $ac_status); } && {
9542 test -z "$ac_c_werror_flag" ||
9543 test ! -s conftest.err
9544 } && test -s conftest.$ac_objext; then
9545 ac_header_compiler=yes
9547 $as_echo "$as_me: failed program was:" >&5
9548 sed 's/^/| /' conftest.$ac_ext >&5
9550 ac_header_compiler=no
9553 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9554 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9555 $as_echo "$ac_header_compiler" >&6; }
9557 # Is the header present?
9558 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
9559 $as_echo_n "checking $ac_header presence... " >&6; }
9560 cat >conftest.$ac_ext <<_ACEOF
9563 cat confdefs.h >>conftest.$ac_ext
9564 cat >>conftest.$ac_ext <<_ACEOF
9565 /* end confdefs.h. */
9566 #include <$ac_header>
9568 if { (ac_try="$ac_cpp conftest.$ac_ext"
9570 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9571 *) ac_try_echo
=$ac_try;;
9573 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
9574 $as_echo "$ac_try_echo") >&5
9575 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9577 grep -v '^ *+' conftest.er1
>conftest.err
9579 cat conftest.err
>&5
9580 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9581 (exit $ac_status); } >/dev
/null
&& {
9582 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9583 test ! -s conftest.err
9585 ac_header_preproc
=yes
9587 $as_echo "$as_me: failed program was:" >&5
9588 sed 's/^/| /' conftest.
$ac_ext >&5
9590 ac_header_preproc
=no
9593 rm -f conftest.err conftest.
$ac_ext
9594 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9595 $as_echo "$ac_header_preproc" >&6; }
9597 # So? What about this header?
9598 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9600 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9601 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9602 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9603 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9604 ac_header_preproc
=yes
9607 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9608 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9609 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9610 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9611 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9612 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9613 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9614 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9615 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9616 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9617 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9618 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9620 ## ------------------------------- ##
9621 ## Report this to bug-bash@gnu.org ##
9622 ## ------------------------------- ##
9624 ) |
sed "s/^/$as_me: WARNING: /" >&2
9627 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9628 $as_echo_n "checking for $ac_header... " >&6; }
9629 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9630 $as_echo_n "(cached) " >&6
9632 eval "$as_ac_Header=\$ac_header_preproc"
9634 ac_res
=`eval 'as_val=${'$as_ac_Header'}
9635 $as_echo "$as_val"'`
9636 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9637 $as_echo "$ac_res" >&6; }
9640 as_val
=`eval 'as_val=${'$as_ac_Header'}
9641 $as_echo "$as_val"'`
9642 if test "x$as_val" = x
""yes; then
9643 cat >>confdefs.h
<<_ACEOF
9644 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9674 for ac_func
in feof_unlocked fgets_unlocked getc_unlocked getcwd getegid \
9675 geteuid getgid getuid mempcpy munmap putenv setenv setlocale localeconv stpcpy \
9676 strcasecmp strdup strtoul tsearch __argz_count __argz_stringify __argz_next \
9679 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9680 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
9681 $as_echo_n "checking for $ac_func... " >&6; }
9682 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9683 $as_echo_n "(cached) " >&6
9685 cat >conftest.
$ac_ext <<_ACEOF
9688 cat confdefs.h
>>conftest.
$ac_ext
9689 cat >>conftest.
$ac_ext <<_ACEOF
9690 /* end confdefs.h. */
9691 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9692 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9693 #define $ac_func innocuous_$ac_func
9695 /* System header to define __stub macros and hopefully few prototypes,
9696 which can conflict with char $ac_func (); below.
9697 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9698 <limits.h> exists even on freestanding compilers. */
9701 # include <limits.h>
9703 # include <assert.h>
9708 /* Override any GCC internal prototype to avoid an error.
9709 Use char because int might match the return type of a GCC
9710 builtin and then its argument prototype would still apply. */
9715 /* The GNU C library defines this for functions which it implements
9716 to always fail with ENOSYS. Some functions are actually named
9717 something starting with __ and the normal name is an alias. */
9718 #if defined __stub_$ac_func || defined __stub___$ac_func
9730 rm -f conftest.
$ac_objext conftest
$ac_exeext
9731 if { (ac_try
="$ac_link"
9733 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9734 *) ac_try_echo=$ac_try;;
9736 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9737 $as_echo "$ac_try_echo") >&5
9738 (eval "$ac_link") 2>conftest.er1
9740 grep -v '^ *+' conftest.er1 >conftest.err
9742 cat conftest.err >&5
9743 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9744 (exit $ac_status); } && {
9745 test -z "$ac_c_werror_flag" ||
9746 test ! -s conftest.err
9747 } && test -s conftest$ac_exeext && {
9748 test "$cross_compiling" = yes ||
9749 $as_test_x conftest$ac_exeext
9751 eval "$as_ac_var=yes"
9753 $as_echo "$as_me: failed program was:" >&5
9754 sed 's/^/| /' conftest.$ac_ext >&5
9756 eval "$as_ac_var=no"
9759 rm -rf conftest.dSYM
9760 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9761 conftest$ac_exeext conftest.$ac_ext
9763 ac_res=`eval 'as_val=${'$as_ac_var'}
9764 $as_echo "$as_val"'`
9765 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9766 $as_echo "$ac_res" >&6; }
9767 as_val=`eval 'as_val=${'$as_ac_var'}
9768 $as_echo "$as_val"'`
9769 if test "x$as_val" = x""yes; then
9770 cat >>confdefs.h <<_ACEOF
9771 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
9783 am_save_CPPFLAGS="$CPPFLAGS"
9785 for element in $INCICONV; do
9787 for x in $CPPFLAGS; do
9789 acl_save_prefix="$prefix"
9790 prefix="$acl_final_prefix"
9791 acl_save_exec_prefix="$exec_prefix"
9792 exec_prefix="$acl_final_exec_prefix"
9794 exec_prefix="$acl_save_exec_prefix"
9795 prefix="$acl_save_prefix"
9797 if test "X$x" = "X$element"; then
9802 if test -z "$haveit"; then
9803 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
9808 { $as_echo "$as_me:$LINENO: checking for iconv" >&5
9809 $as_echo_n "checking for iconv... " >&6; }
9810 if test "${am_cv_func_iconv+set}" = set; then
9811 $as_echo_n "(cached) " >&6
9814 am_cv_func_iconv="no, consider installing GNU libiconv"
9816 cat >conftest.$ac_ext <<_ACEOF
9819 cat confdefs.h >>conftest.$ac_ext
9820 cat >>conftest.$ac_ext <<_ACEOF
9821 /* end confdefs.h. */
9827 iconv_t cd = iconv_open("","");
9828 iconv(cd,NULL,NULL,NULL,NULL);
9834 rm -f conftest.$ac_objext conftest$ac_exeext
9835 if { (ac_try="$ac_link"
9837 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9838 *) ac_try_echo
=$ac_try;;
9840 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
9841 $as_echo "$ac_try_echo") >&5
9842 (eval "$ac_link") 2>conftest.er1
9844 grep -v '^ *+' conftest.er1
>conftest.err
9846 cat conftest.err
>&5
9847 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9848 (exit $ac_status); } && {
9849 test -z "$ac_c_werror_flag" ||
9850 test ! -s conftest.err
9851 } && test -s conftest
$ac_exeext && {
9852 test "$cross_compiling" = yes ||
9853 $as_test_x conftest
$ac_exeext
9855 am_cv_func_iconv
=yes
9857 $as_echo "$as_me: failed program was:" >&5
9858 sed 's/^/| /' conftest.
$ac_ext >&5
9863 rm -rf conftest.dSYM
9864 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
9865 conftest
$ac_exeext conftest.
$ac_ext
9866 if test "$am_cv_func_iconv" != yes; then
9867 am_save_LIBS
="$LIBS"
9868 LIBS
="$LIBS $LIBICONV"
9869 cat >conftest.
$ac_ext <<_ACEOF
9872 cat confdefs.h
>>conftest.
$ac_ext
9873 cat >>conftest.
$ac_ext <<_ACEOF
9874 /* end confdefs.h. */
9880 iconv_t cd = iconv_open("","");
9881 iconv(cd,NULL,NULL,NULL,NULL);
9887 rm -f conftest.
$ac_objext conftest
$ac_exeext
9888 if { (ac_try
="$ac_link"
9890 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9891 *) ac_try_echo=$ac_try;;
9893 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9894 $as_echo "$ac_try_echo") >&5
9895 (eval "$ac_link") 2>conftest.er1
9897 grep -v '^ *+' conftest.er1 >conftest.err
9899 cat conftest.err >&5
9900 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9901 (exit $ac_status); } && {
9902 test -z "$ac_c_werror_flag" ||
9903 test ! -s conftest.err
9904 } && test -s conftest$ac_exeext && {
9905 test "$cross_compiling" = yes ||
9906 $as_test_x conftest$ac_exeext
9909 am_cv_func_iconv=yes
9911 $as_echo "$as_me: failed program was:" >&5
9912 sed 's/^/| /' conftest.$ac_ext >&5
9917 rm -rf conftest.dSYM
9918 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9919 conftest$ac_exeext conftest.$ac_ext
9920 LIBS="$am_save_LIBS"
9924 { $as_echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
9925 $as_echo "$am_cv_func_iconv" >&6; }
9926 if test "$am_cv_func_iconv" = yes; then
9928 cat >>confdefs.h <<\_ACEOF
9929 #define HAVE_ICONV 1
9933 if test "$am_cv_lib_iconv" = yes; then
9934 { $as_echo "$as_me:$LINENO: checking how to link with libiconv" >&5
9935 $as_echo_n "checking how to link with libiconv... " >&6; }
9936 { $as_echo "$as_me:$LINENO: result: $LIBICONV" >&5
9937 $as_echo "$LIBICONV" >&6; }
9939 CPPFLAGS="$am_save_CPPFLAGS"
9946 if test "$am_cv_func_iconv" = yes; then
9947 { $as_echo "$as_me:$LINENO: checking for iconv declaration" >&5
9948 $as_echo_n "checking for iconv declaration... " >&6; }
9949 if test "${am_cv_proto_iconv+set}" = set; then
9950 $as_echo_n "(cached) " >&6
9953 cat >conftest.$ac_ext <<_ACEOF
9956 cat confdefs.h >>conftest.$ac_ext
9957 cat >>conftest.$ac_ext <<_ACEOF
9958 /* end confdefs.h. */
9966 #if defined(__STDC__) || defined(__cplusplus)
9967 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
9980 rm -f conftest.$ac_objext
9981 if { (ac_try="$ac_compile"
9983 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9984 *) ac_try_echo
=$ac_try;;
9986 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
9987 $as_echo "$ac_try_echo") >&5
9988 (eval "$ac_compile") 2>conftest.er1
9990 grep -v '^ *+' conftest.er1
>conftest.err
9992 cat conftest.err
>&5
9993 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9994 (exit $ac_status); } && {
9995 test -z "$ac_c_werror_flag" ||
9996 test ! -s conftest.err
9997 } && test -s conftest.
$ac_objext; then
9998 am_cv_proto_iconv_arg1
=""
10000 $as_echo "$as_me: failed program was:" >&5
10001 sed 's/^/| /' conftest.
$ac_ext >&5
10003 am_cv_proto_iconv_arg1
="const"
10006 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10007 am_cv_proto_iconv
="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
10010 am_cv_proto_iconv
=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10011 { $as_echo "$as_me:$LINENO: result: ${ac_t:-
10012 }$am_cv_proto_iconv" >&5
10014 }$am_cv_proto_iconv" >&6; }
10016 cat >>confdefs.h
<<_ACEOF
10017 #define ICONV_CONST $am_cv_proto_iconv_arg1
10023 { $as_echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
10024 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
10025 if test "${am_cv_langinfo_codeset+set}" = set; then
10026 $as_echo_n "(cached) " >&6
10028 cat >conftest.
$ac_ext <<_ACEOF
10031 cat confdefs.h
>>conftest.
$ac_ext
10032 cat >>conftest.
$ac_ext <<_ACEOF
10033 /* end confdefs.h. */
10034 #include <langinfo.h>
10038 char* cs = nl_langinfo(CODESET);
10043 rm -f conftest.
$ac_objext conftest
$ac_exeext
10044 if { (ac_try
="$ac_link"
10045 case "(($ac_try" in
10046 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10047 *) ac_try_echo=$ac_try;;
10049 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10050 $as_echo "$ac_try_echo") >&5
10051 (eval "$ac_link") 2>conftest.er1
10053 grep -v '^ *+' conftest.er1 >conftest.err
10055 cat conftest.err >&5
10056 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10057 (exit $ac_status); } && {
10058 test -z "$ac_c_werror_flag" ||
10059 test ! -s conftest.err
10060 } && test -s conftest$ac_exeext && {
10061 test "$cross_compiling" = yes ||
10062 $as_test_x conftest$ac_exeext
10064 am_cv_langinfo_codeset=yes
10066 $as_echo "$as_me: failed program was:" >&5
10067 sed 's/^/| /' conftest.$ac_ext >&5
10069 am_cv_langinfo_codeset=no
10072 rm -rf conftest.dSYM
10073 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10074 conftest$ac_exeext conftest.$ac_ext
10077 { $as_echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
10078 $as_echo "$am_cv_langinfo_codeset" >&6; }
10079 if test $am_cv_langinfo_codeset = yes; then
10081 cat >>confdefs.h <<\_ACEOF
10082 #define HAVE_LANGINFO_CODESET 1
10087 if test $ac_cv_header_locale_h = yes; then
10089 { $as_echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
10090 $as_echo_n "checking for LC_MESSAGES... " >&6; }
10091 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
10092 $as_echo_n "(cached) " >&6
10094 cat >conftest.$ac_ext <<_ACEOF
10097 cat confdefs.h >>conftest.$ac_ext
10098 cat >>conftest.$ac_ext <<_ACEOF
10099 /* end confdefs.h. */
10100 #include <locale.h>
10109 rm -f conftest.$ac_objext conftest$ac_exeext
10110 if { (ac_try="$ac_link"
10111 case "(($ac_try" in
10112 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10113 *) ac_try_echo
=$ac_try;;
10115 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
10116 $as_echo "$ac_try_echo") >&5
10117 (eval "$ac_link") 2>conftest.er1
10119 grep -v '^ *+' conftest.er1
>conftest.err
10121 cat conftest.err
>&5
10122 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10123 (exit $ac_status); } && {
10124 test -z "$ac_c_werror_flag" ||
10125 test ! -s conftest.err
10126 } && test -s conftest
$ac_exeext && {
10127 test "$cross_compiling" = yes ||
10128 $as_test_x conftest
$ac_exeext
10130 am_cv_val_LC_MESSAGES
=yes
10132 $as_echo "$as_me: failed program was:" >&5
10133 sed 's/^/| /' conftest.
$ac_ext >&5
10135 am_cv_val_LC_MESSAGES
=no
10138 rm -rf conftest.dSYM
10139 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10140 conftest
$ac_exeext conftest.
$ac_ext
10142 { $as_echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
10143 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
10144 if test $am_cv_val_LC_MESSAGES = yes; then
10146 cat >>confdefs.h
<<\_ACEOF
10147 #define HAVE_LC_MESSAGES 1
10154 for ac_prog
in bison
10156 # Extract the first word of "$ac_prog", so it can be a program name with args.
10157 set dummy
$ac_prog; ac_word
=$2
10158 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10159 $as_echo_n "checking for $ac_word... " >&6; }
10160 if test "${ac_cv_prog_INTLBISON+set}" = set; then
10161 $as_echo_n "(cached) " >&6
10163 if test -n "$INTLBISON"; then
10164 ac_cv_prog_INTLBISON
="$INTLBISON" # Let the user override the test.
10166 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10167 for as_dir
in $PATH
10170 test -z "$as_dir" && as_dir
=.
10171 for ac_exec_ext
in '' $ac_executable_extensions; do
10172 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10173 ac_cv_prog_INTLBISON
="$ac_prog"
10174 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10183 INTLBISON
=$ac_cv_prog_INTLBISON
10184 if test -n "$INTLBISON"; then
10185 { $as_echo "$as_me:$LINENO: result: $INTLBISON" >&5
10186 $as_echo "$INTLBISON" >&6; }
10188 { $as_echo "$as_me:$LINENO: result: no" >&5
10189 $as_echo "no" >&6; }
10193 test -n "$INTLBISON" && break
10196 if test -z "$INTLBISON"; then
10199 { $as_echo "$as_me:$LINENO: checking version of bison" >&5
10200 $as_echo_n "checking version of bison... " >&6; }
10201 ac_prog_version
=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
10202 case $ac_prog_version in
10203 '') ac_prog_version
="v. ?.??, bad"; ac_verc_fail
=yes;;
10204 1.2[6-9]* |
1.
[3-9][0-9]* |
[2-9].
*)
10205 ac_prog_version
="$ac_prog_version, ok"; ac_verc_fail
=no
;;
10206 *) ac_prog_version
="$ac_prog_version, bad"; ac_verc_fail
=yes;;
10208 { $as_echo "$as_me:$LINENO: result: $ac_prog_version" >&5
10209 $as_echo "$ac_prog_version" >&6; }
10211 if test $ac_verc_fail = yes; then
10230 { $as_echo "$as_me:$LINENO: checking whether NLS is requested" >&5
10231 $as_echo_n "checking whether NLS is requested... " >&6; }
10232 # Check whether --enable-nls was given.
10233 if test "${enable_nls+set}" = set; then
10234 enableval
=$enable_nls; USE_NLS
=$enableval
10239 { $as_echo "$as_me:$LINENO: result: $USE_NLS" >&5
10240 $as_echo "$USE_NLS" >&6; }
10245 BUILD_INCLUDED_LIBINTL
=no
10246 USE_INCLUDED_LIBINTL
=no
10252 if test "$USE_NLS" = "yes"; then
10253 gt_use_preinstalled_gnugettext
=no
10255 { $as_echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
10256 $as_echo_n "checking whether included gettext is requested... " >&6; }
10258 # Check whether --with-included-gettext was given.
10259 if test "${with_included_gettext+set}" = set; then
10260 withval
=$with_included_gettext; nls_cv_force_use_gnu_gettext
=$withval
10262 nls_cv_force_use_gnu_gettext
=no
10265 { $as_echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
10266 $as_echo "$nls_cv_force_use_gnu_gettext" >&6; }
10268 nls_cv_use_gnu_gettext
="$nls_cv_force_use_gnu_gettext"
10269 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
10276 { $as_echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
10277 $as_echo_n "checking for GNU gettext in libc... " >&6; }
10278 if test "${gt_cv_func_gnugettext2_libc+set}" = set; then
10279 $as_echo_n "(cached) " >&6
10281 cat >conftest.
$ac_ext <<_ACEOF
10284 cat confdefs.h
>>conftest.
$ac_ext
10285 cat >>conftest.
$ac_ext <<_ACEOF
10286 /* end confdefs.h. */
10287 #include <libintl.h>
10288 extern int _nl_msg_cat_cntr;
10289 extern int *_nl_domain_bindings;
10293 bindtextdomain ("", "");
10294 return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_domain_bindings
10299 rm -f conftest.
$ac_objext conftest
$ac_exeext
10300 if { (ac_try
="$ac_link"
10301 case "(($ac_try" in
10302 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10303 *) ac_try_echo=$ac_try;;
10305 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10306 $as_echo "$ac_try_echo") >&5
10307 (eval "$ac_link") 2>conftest.er1
10309 grep -v '^ *+' conftest.er1 >conftest.err
10311 cat conftest.err >&5
10312 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10313 (exit $ac_status); } && {
10314 test -z "$ac_c_werror_flag" ||
10315 test ! -s conftest.err
10316 } && test -s conftest$ac_exeext && {
10317 test "$cross_compiling" = yes ||
10318 $as_test_x conftest$ac_exeext
10320 gt_cv_func_gnugettext2_libc=yes
10322 $as_echo "$as_me: failed program was:" >&5
10323 sed 's/^/| /' conftest.$ac_ext >&5
10325 gt_cv_func_gnugettext2_libc=no
10328 rm -rf conftest.dSYM
10329 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10330 conftest$ac_exeext conftest.$ac_ext
10332 { $as_echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext2_libc" >&5
10333 $as_echo "$gt_cv_func_gnugettext2_libc" >&6; }
10335 if test "$gt_cv_func_gnugettext2_libc" != "yes"; then
10341 acl_save_prefix="$prefix"
10342 prefix="$acl_final_prefix"
10343 acl_save_exec_prefix="$exec_prefix"
10344 exec_prefix="$acl_final_exec_prefix"
10346 eval additional_includedir=\"$includedir\"
10347 eval additional_libdir=\"$libdir\"
10349 exec_prefix="$acl_save_exec_prefix"
10350 prefix="$acl_save_prefix"
10353 # Check whether --with-libintl-prefix was given.
10354 if test "${with_libintl_prefix+set}" = set; then
10355 withval=$with_libintl_prefix;
10356 if test "X$withval" = "Xno"; then
10359 if test "X$withval" = "X"; then
10361 acl_save_prefix="$prefix"
10362 prefix="$acl_final_prefix"
10363 acl_save_exec_prefix="$exec_prefix"
10364 exec_prefix="$acl_final_exec_prefix"
10366 eval additional_includedir=\"$includedir\"
10367 eval additional_libdir=\"$libdir\"
10369 exec_prefix="$acl_save_exec_prefix"
10370 prefix="$acl_save_prefix"
10373 additional_includedir="$withval/include"
10374 additional_libdir="$withval/lib"
10385 names_already_handled=
10386 names_next_round='intl '
10387 while test -n "$names_next_round"; do
10388 names_this_round="$names_next_round"
10390 for name in $names_this_round; do
10392 for n in $names_already_handled; do
10393 if test "$n" = "$name"; then
10394 already_handled=yes
10398 if test -z "$already_handled"; then
10399 names_already_handled="$names_already_handled $name"
10400 uppername=`echo "$name" |
sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10401 eval value=\"\$HAVE_LIB$uppername\"
10402 if test -n "$value"; then
10403 if test "$value" = yes; then
10404 eval value=\"\$LIB$uppername\"
10405 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
10406 eval value=\"\$LTLIB$uppername\"
10407 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
10416 if test $use_additional = yes; then
10417 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10418 found_dir="$additional_libdir"
10419 found_so="$additional_libdir/lib$name.$shlibext"
10420 if test -f "$additional_libdir/lib$name.la"; then
10421 found_la="$additional_libdir/lib$name.la"
10424 if test -f "$additional_libdir/lib$name.$libext"; then
10425 found_dir="$additional_libdir"
10426 found_a="$additional_libdir/lib$name.$libext"
10427 if test -f "$additional_libdir/lib$name.la"; then
10428 found_la="$additional_libdir/lib$name.la"
10433 if test "X$found_dir" = "X"; then
10434 for x in $LDFLAGS $LTLIBINTL; do
10436 acl_save_prefix="$prefix"
10437 prefix="$acl_final_prefix"
10438 acl_save_exec_prefix="$exec_prefix"
10439 exec_prefix="$acl_final_exec_prefix"
10441 exec_prefix="$acl_save_exec_prefix"
10442 prefix="$acl_save_prefix"
10446 dir=`echo "X$x" |
sed -e 's/^X-L//'`
10447 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10449 found_so="$dir/lib$name.$shlibext"
10450 if test -f "$dir/lib$name.la"; then
10451 found_la="$dir/lib$name.la"
10454 if test -f "$dir/lib$name.$libext"; then
10456 found_a="$dir/lib$name.$libext"
10457 if test -f "$dir/lib$name.la"; then
10458 found_la="$dir/lib$name.la"
10464 if test "X$found_dir" != "X"; then
10469 if test "X$found_dir" != "X"; then
10470 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
10471 if test "X$found_so" != "X"; then
10472 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
10473 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10476 for x in $ltrpathdirs; do
10477 if test "X$x" = "X$found_dir"; then
10482 if test -z "$haveit"; then
10483 ltrpathdirs="$ltrpathdirs $found_dir"
10485 if test "$hardcode_direct" = yes; then
10486 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10488 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
10489 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10491 for x in $rpathdirs; do
10492 if test "X$x" = "X$found_dir"; then
10497 if test -z "$haveit"; then
10498 rpathdirs="$rpathdirs $found_dir"
10502 for x in $LDFLAGS $LIBINTL; do
10504 acl_save_prefix="$prefix"
10505 prefix="$acl_final_prefix"
10506 acl_save_exec_prefix="$exec_prefix"
10507 exec_prefix="$acl_final_exec_prefix"
10509 exec_prefix="$acl_save_exec_prefix"
10510 prefix="$acl_save_prefix"
10512 if test "X$x" = "X-L$found_dir"; then
10517 if test -z "$haveit"; then
10518 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
10520 if test "$hardcode_minus_L" != no; then
10521 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10523 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
10529 if test "X$found_a" != "X"; then
10530 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
10532 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
10535 additional_includedir=
10536 case "$found_dir" in
10538 basedir=`echo "X$found_dir" |
sed -e 's,^X,,' -e 's,/lib/*$,,'`
10539 additional_includedir="$basedir/include"
10542 if test "X$additional_includedir" != "X"; then
10543 if test "X$additional_includedir" != "X/usr/include"; then
10545 if test "X$additional_includedir" = "X/usr/local/include"; then
10546 if test -n "$GCC"; then
10548 linux*) haveit=yes;;
10552 if test -z "$haveit"; then
10553 for x in $CPPFLAGS $INCINTL; do
10555 acl_save_prefix="$prefix"
10556 prefix="$acl_final_prefix"
10557 acl_save_exec_prefix="$exec_prefix"
10558 exec_prefix="$acl_final_exec_prefix"
10560 exec_prefix="$acl_save_exec_prefix"
10561 prefix="$acl_save_prefix"
10563 if test "X$x" = "X-I$additional_includedir"; then
10568 if test -z "$haveit"; then
10569 if test -d "$additional_includedir"; then
10570 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
10576 if test -n "$found_la"; then
10577 save_libdir="$libdir"
10578 case "$found_la" in
10579 */* | *\\*) . "$found_la" ;;
10580 *) . "./$found_la" ;;
10582 libdir="$save_libdir"
10583 for dep in $dependency_libs; do
10586 additional_libdir=`echo "X$dep" |
sed -e 's/^X-L//'`
10587 if test "X$additional_libdir" != "X/usr/lib"; then
10589 if test "X$additional_libdir" = "X/usr/local/lib"; then
10590 if test -n "$GCC"; then
10592 linux*) haveit=yes;;
10596 if test -z "$haveit"; then
10598 for x in $LDFLAGS $LIBINTL; do
10600 acl_save_prefix="$prefix"
10601 prefix="$acl_final_prefix"
10602 acl_save_exec_prefix="$exec_prefix"
10603 exec_prefix="$acl_final_exec_prefix"
10605 exec_prefix="$acl_save_exec_prefix"
10606 prefix="$acl_save_prefix"
10608 if test "X$x" = "X-L$additional_libdir"; then
10613 if test -z "$haveit"; then
10614 if test -d "$additional_libdir"; then
10615 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
10619 for x in $LDFLAGS $LTLIBINTL; do
10621 acl_save_prefix="$prefix"
10622 prefix="$acl_final_prefix"
10623 acl_save_exec_prefix="$exec_prefix"
10624 exec_prefix="$acl_final_exec_prefix"
10626 exec_prefix="$acl_save_exec_prefix"
10627 prefix="$acl_save_prefix"
10629 if test "X$x" = "X-L$additional_libdir"; then
10634 if test -z "$haveit"; then
10635 if test -d "$additional_libdir"; then
10636 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
10643 dir=`echo "X$dep" |
sed -e 's/^X-R//'`
10644 if test "$enable_rpath" != no; then
10646 for x in $rpathdirs; do
10647 if test "X$x" = "X$dir"; then
10652 if test -z "$haveit"; then
10653 rpathdirs="$rpathdirs $dir"
10656 for x in $ltrpathdirs; do
10657 if test "X$x" = "X$dir"; then
10662 if test -z "$haveit"; then
10663 ltrpathdirs="$ltrpathdirs $dir"
10668 names_next_round="$names_next_round "`echo "X$dep" |
sed -e 's/^X-l//'`
10671 names_next_round="$names_next_round "`echo "X$dep" |
sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10674 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
10675 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
10681 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
10682 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
10688 if test "X$rpathdirs" != "X"; then
10689 if test -n "$hardcode_libdir_separator"; then
10691 for found_dir in $rpathdirs; do
10692 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10694 acl_save_libdir="$libdir"
10696 eval flag=\"$hardcode_libdir_flag_spec\"
10697 libdir="$acl_save_libdir"
10698 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
10700 for found_dir in $rpathdirs; do
10701 acl_save_libdir="$libdir"
10702 libdir="$found_dir"
10703 eval flag=\"$hardcode_libdir_flag_spec\"
10704 libdir="$acl_save_libdir"
10705 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
10709 if test "X$ltrpathdirs" != "X"; then
10710 for found_dir in $ltrpathdirs; do
10711 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
10715 { $as_echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
10716 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
10717 if test "${gt_cv_func_gnugettext2_libintl+set}" = set; then
10718 $as_echo_n "(cached) " >&6
10720 gt_save_CPPFLAGS="$CPPFLAGS"
10721 CPPFLAGS="$CPPFLAGS $INCINTL"
10722 gt_save_LIBS="$LIBS"
10723 LIBS="$LIBS $LIBINTL"
10724 cat >conftest.$ac_ext <<_ACEOF
10727 cat confdefs.h >>conftest.$ac_ext
10728 cat >>conftest.$ac_ext <<_ACEOF
10729 /* end confdefs.h. */
10730 #include <libintl.h>
10731 extern int _nl_msg_cat_cntr;
10736 const char *_nl_expand_alias ();
10740 bindtextdomain ("", "");
10741 return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_expand_alias (0)
10746 rm -f conftest.$ac_objext conftest$ac_exeext
10747 if { (ac_try="$ac_link"
10748 case "(($ac_try" in
10749 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10750 *) ac_try_echo
=$ac_try;;
10752 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
10753 $as_echo "$ac_try_echo") >&5
10754 (eval "$ac_link") 2>conftest.er1
10756 grep -v '^ *+' conftest.er1
>conftest.err
10758 cat conftest.err
>&5
10759 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10760 (exit $ac_status); } && {
10761 test -z "$ac_c_werror_flag" ||
10762 test ! -s conftest.err
10763 } && test -s conftest
$ac_exeext && {
10764 test "$cross_compiling" = yes ||
10765 $as_test_x conftest
$ac_exeext
10767 gt_cv_func_gnugettext2_libintl
=yes
10769 $as_echo "$as_me: failed program was:" >&5
10770 sed 's/^/| /' conftest.
$ac_ext >&5
10772 gt_cv_func_gnugettext2_libintl
=no
10775 rm -rf conftest.dSYM
10776 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10777 conftest
$ac_exeext conftest.
$ac_ext
10778 if test "$gt_cv_func_gnugettext2_libintl" != yes && test -n "$LIBICONV"; then
10779 LIBS
="$LIBS $LIBICONV"
10780 cat >conftest.
$ac_ext <<_ACEOF
10783 cat confdefs.h
>>conftest.
$ac_ext
10784 cat >>conftest.
$ac_ext <<_ACEOF
10785 /* end confdefs.h. */
10786 #include <libintl.h>
10787 extern int _nl_msg_cat_cntr;
10792 const char *_nl_expand_alias ();
10796 bindtextdomain ("", "");
10797 return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_expand_alias (0)
10802 rm -f conftest.
$ac_objext conftest
$ac_exeext
10803 if { (ac_try
="$ac_link"
10804 case "(($ac_try" in
10805 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10806 *) ac_try_echo=$ac_try;;
10808 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10809 $as_echo "$ac_try_echo") >&5
10810 (eval "$ac_link") 2>conftest.er1
10812 grep -v '^ *+' conftest.er1 >conftest.err
10814 cat conftest.err >&5
10815 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10816 (exit $ac_status); } && {
10817 test -z "$ac_c_werror_flag" ||
10818 test ! -s conftest.err
10819 } && test -s conftest$ac_exeext && {
10820 test "$cross_compiling" = yes ||
10821 $as_test_x conftest$ac_exeext
10823 LIBINTL="$LIBINTL $LIBICONV"
10824 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
10825 gt_cv_func_gnugettext2_libintl=yes
10828 $as_echo "$as_me: failed program was:" >&5
10829 sed 's/^/| /' conftest.$ac_ext >&5
10834 rm -rf conftest.dSYM
10835 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10836 conftest$ac_exeext conftest.$ac_ext
10838 CPPFLAGS="$gt_save_CPPFLAGS"
10839 LIBS="$gt_save_LIBS"
10841 { $as_echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext2_libintl" >&5
10842 $as_echo "$gt_cv_func_gnugettext2_libintl" >&6; }
10845 if test "$gt_cv_func_gnugettext2_libc" = "yes" \
10846 || { test "$gt_cv_func_gnugettext2_libintl" = "yes" \
10847 && test "$PACKAGE" != gettext-runtime \
10848 && test "$PACKAGE" != gettext-tools; }; then
10849 gt_use_preinstalled_gnugettext=yes
10857 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
10858 nls_cv_use_gnu_gettext=yes
10862 if test "$nls_cv_use_gnu_gettext" = "yes"; then
10863 BUILD_INCLUDED_LIBINTL=yes
10864 USE_INCLUDED_LIBINTL=yes
10865 LIBINTL="lib/intl/libintl.a $LIBICONV"
10866 LTLIBINTL="lib/intl/libintl.a $LTLIBICONV"
10867 LIBS=`echo " $LIBS " |
sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
10870 if test "$gt_use_preinstalled_gnugettext" = "yes" \
10871 || test "$nls_cv_use_gnu_gettext" = "yes"; then
10876 if test "$gt_use_preinstalled_gnugettext" = "yes" \
10877 || test "$nls_cv_use_gnu_gettext" = "yes"; then
10879 cat >>confdefs.h <<\_ACEOF
10880 #define ENABLE_NLS 1
10888 { $as_echo "$as_me:$LINENO: checking whether to use NLS" >&5
10889 $as_echo_n "checking whether to use NLS... " >&6; }
10890 { $as_echo "$as_me:$LINENO: result: $USE_NLS" >&5
10891 $as_echo "$USE_NLS" >&6; }
10892 if test "$USE_NLS" = "yes"; then
10893 { $as_echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
10894 $as_echo_n "checking where the gettext function comes from... " >&6; }
10895 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
10896 if test "$gt_cv_func_gnugettext2_libintl" = "yes"; then
10897 gt_source="external libintl"
10902 gt_source="included intl directory"
10904 { $as_echo "$as_me:$LINENO: result: $gt_source" >&5
10905 $as_echo "$gt_source" >&6; }
10908 if test "$USE_NLS" = "yes"; then
10910 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
10911 if test "$gt_cv_func_gnugettext2_libintl" = "yes"; then
10912 { $as_echo "$as_me:$LINENO: checking how to link with libintl" >&5
10913 $as_echo_n "checking how to link with libintl... " >&6; }
10914 { $as_echo "$as_me:$LINENO: result: $LIBINTL" >&5
10915 $as_echo "$LIBINTL" >&6; }
10917 for element in $INCINTL; do
10919 for x in $CPPFLAGS; do
10921 acl_save_prefix="$prefix"
10922 prefix="$acl_final_prefix"
10923 acl_save_exec_prefix="$exec_prefix"
10924 exec_prefix="$acl_final_exec_prefix"
10926 exec_prefix="$acl_save_exec_prefix"
10927 prefix="$acl_save_prefix"
10929 if test "X$x" = "X$element"; then
10934 if test -z "$haveit"; then
10935 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10942 cat >>confdefs.h <<\_ACEOF
10943 #define HAVE_GETTEXT 1
10947 cat >>confdefs.h <<\_ACEOF
10948 #define HAVE_DCGETTEXT 1
10957 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
10958 BUILD_INCLUDED_LIBINTL=yes
10965 nls_cv_header_intl=
10966 nls_cv_header_libgt=
10977 if test "$USE_INCLUDED_LIBINTL" = yes; then
10978 INTLOBJS="\$(GETTOBJS)"
10982 INTL_LIBTOOL_SUFFIX_PREFIX=
10986 INTLLIBS="$LIBINTL"
10999 ac_header_dirent=no
11000 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
11001 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" |
$as_tr_sh`
11002 { $as_echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
11003 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
11004 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11005 $as_echo_n "(cached) " >&6
11007 cat >conftest.$ac_ext <<_ACEOF
11010 cat confdefs.h >>conftest.$ac_ext
11011 cat >>conftest.$ac_ext <<_ACEOF
11012 /* end confdefs.h. */
11013 #include <sys/types.h>
11025 rm -f conftest.$ac_objext
11026 if { (ac_try="$ac_compile"
11027 case "(($ac_try" in
11028 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11029 *) ac_try_echo
=$ac_try;;
11031 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
11032 $as_echo "$ac_try_echo") >&5
11033 (eval "$ac_compile") 2>conftest.er1
11035 grep -v '^ *+' conftest.er1
>conftest.err
11037 cat conftest.err
>&5
11038 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11039 (exit $ac_status); } && {
11040 test -z "$ac_c_werror_flag" ||
11041 test ! -s conftest.err
11042 } && test -s conftest.
$ac_objext; then
11043 eval "$as_ac_Header=yes"
11045 $as_echo "$as_me: failed program was:" >&5
11046 sed 's/^/| /' conftest.
$ac_ext >&5
11048 eval "$as_ac_Header=no"
11051 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11053 ac_res
=`eval 'as_val=${'$as_ac_Header'}
11054 $as_echo "$as_val"'`
11055 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11056 $as_echo "$ac_res" >&6; }
11057 as_val
=`eval 'as_val=${'$as_ac_Header'}
11058 $as_echo "$as_val"'`
11059 if test "x$as_val" = x
""yes; then
11060 cat >>confdefs.h
<<_ACEOF
11061 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
11064 ac_header_dirent
=$ac_hdr; break
11068 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
11069 if test $ac_header_dirent = dirent.h
; then
11070 { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
11071 $as_echo_n "checking for library containing opendir... " >&6; }
11072 if test "${ac_cv_search_opendir+set}" = set; then
11073 $as_echo_n "(cached) " >&6
11075 ac_func_search_save_LIBS
=$LIBS
11076 cat >conftest.
$ac_ext <<_ACEOF
11079 cat confdefs.h
>>conftest.
$ac_ext
11080 cat >>conftest.
$ac_ext <<_ACEOF
11081 /* end confdefs.h. */
11083 /* Override any GCC internal prototype to avoid an error.
11084 Use char because int might match the return type of a GCC
11085 builtin and then its argument prototype would still apply. */
11098 for ac_lib
in '' dir
; do
11099 if test -z "$ac_lib"; then
11100 ac_res
="none required"
11103 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
11105 rm -f conftest.
$ac_objext conftest
$ac_exeext
11106 if { (ac_try
="$ac_link"
11107 case "(($ac_try" in
11108 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11109 *) ac_try_echo=$ac_try;;
11111 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11112 $as_echo "$ac_try_echo") >&5
11113 (eval "$ac_link") 2>conftest.er1
11115 grep -v '^ *+' conftest.er1 >conftest.err
11117 cat conftest.err >&5
11118 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11119 (exit $ac_status); } && {
11120 test -z "$ac_c_werror_flag" ||
11121 test ! -s conftest.err
11122 } && test -s conftest$ac_exeext && {
11123 test "$cross_compiling" = yes ||
11124 $as_test_x conftest$ac_exeext
11126 ac_cv_search_opendir=$ac_res
11128 $as_echo "$as_me: failed program was:" >&5
11129 sed 's/^/| /' conftest.$ac_ext >&5
11134 rm -rf conftest.dSYM
11135 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11137 if test "${ac_cv_search_opendir+set}" = set; then
11141 if test "${ac_cv_search_opendir+set}" = set; then
11144 ac_cv_search_opendir=no
11146 rm conftest.$ac_ext
11147 LIBS=$ac_func_search_save_LIBS
11149 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
11150 $as_echo "$ac_cv_search_opendir" >&6; }
11151 ac_res=$ac_cv_search_opendir
11152 if test "$ac_res" != no; then
11153 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11158 { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
11159 $as_echo_n "checking for library containing opendir... " >&6; }
11160 if test "${ac_cv_search_opendir+set}" = set; then
11161 $as_echo_n "(cached) " >&6
11163 ac_func_search_save_LIBS=$LIBS
11164 cat >conftest.$ac_ext <<_ACEOF
11167 cat confdefs.h >>conftest.$ac_ext
11168 cat >>conftest.$ac_ext <<_ACEOF
11169 /* end confdefs.h. */
11171 /* Override any GCC internal prototype to avoid an error.
11172 Use char because int might match the return type of a GCC
11173 builtin and then its argument prototype would still apply. */
11186 for ac_lib in '' x; do
11187 if test -z "$ac_lib"; then
11188 ac_res="none required"
11191 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11193 rm -f conftest.$ac_objext conftest$ac_exeext
11194 if { (ac_try="$ac_link"
11195 case "(($ac_try" in
11196 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11197 *) ac_try_echo
=$ac_try;;
11199 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
11200 $as_echo "$ac_try_echo") >&5
11201 (eval "$ac_link") 2>conftest.er1
11203 grep -v '^ *+' conftest.er1
>conftest.err
11205 cat conftest.err
>&5
11206 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11207 (exit $ac_status); } && {
11208 test -z "$ac_c_werror_flag" ||
11209 test ! -s conftest.err
11210 } && test -s conftest
$ac_exeext && {
11211 test "$cross_compiling" = yes ||
11212 $as_test_x conftest
$ac_exeext
11214 ac_cv_search_opendir
=$ac_res
11216 $as_echo "$as_me: failed program was:" >&5
11217 sed 's/^/| /' conftest.
$ac_ext >&5
11222 rm -rf conftest.dSYM
11223 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11225 if test "${ac_cv_search_opendir+set}" = set; then
11229 if test "${ac_cv_search_opendir+set}" = set; then
11232 ac_cv_search_opendir
=no
11234 rm conftest.
$ac_ext
11235 LIBS
=$ac_func_search_save_LIBS
11237 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
11238 $as_echo "$ac_cv_search_opendir" >&6; }
11239 ac_res
=$ac_cv_search_opendir
11240 if test "$ac_res" != no
; then
11241 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
11247 { $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
11248 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
11249 if test "${ac_cv_header_time+set}" = set; then
11250 $as_echo_n "(cached) " >&6
11252 cat >conftest.
$ac_ext <<_ACEOF
11255 cat confdefs.h
>>conftest.
$ac_ext
11256 cat >>conftest.
$ac_ext <<_ACEOF
11257 /* end confdefs.h. */
11258 #include <sys/types.h>
11259 #include <sys/time.h>
11265 if ((struct tm *) 0)
11271 rm -f conftest.
$ac_objext
11272 if { (ac_try
="$ac_compile"
11273 case "(($ac_try" in
11274 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11275 *) ac_try_echo=$ac_try;;
11277 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11278 $as_echo "$ac_try_echo") >&5
11279 (eval "$ac_compile") 2>conftest.er1
11281 grep -v '^ *+' conftest.er1 >conftest.err
11283 cat conftest.err >&5
11284 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11285 (exit $ac_status); } && {
11286 test -z "$ac_c_werror_flag" ||
11287 test ! -s conftest.err
11288 } && test -s conftest.$ac_objext; then
11289 ac_cv_header_time=yes
11291 $as_echo "$as_me: failed program was:" >&5
11292 sed 's/^/| /' conftest.$ac_ext >&5
11294 ac_cv_header_time=no
11297 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11299 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
11300 $as_echo "$ac_cv_header_time" >&6; }
11301 if test $ac_cv_header_time = yes; then
11303 cat >>confdefs.h <<\_ACEOF
11304 #define TIME_WITH_SYS_TIME 1
11312 for ac_header in inttypes.h
11314 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
11315 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11316 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11317 $as_echo_n "checking for $ac_header... " >&6; }
11318 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11319 $as_echo_n "(cached) " >&6
11321 ac_res=`eval 'as_val=${'$as_ac_Header'}
11322 $as_echo "$as_val"'`
11323 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11324 $as_echo "$ac_res" >&6; }
11326 # Is the header compilable?
11327 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11328 $as_echo_n "checking $ac_header usability... " >&6; }
11329 cat >conftest.$ac_ext <<_ACEOF
11332 cat confdefs.h >>conftest.$ac_ext
11333 cat >>conftest.$ac_ext <<_ACEOF
11334 /* end confdefs.h. */
11335 $ac_includes_default
11336 #include <$ac_header>
11338 rm -f conftest.$ac_objext
11339 if { (ac_try="$ac_compile"
11340 case "(($ac_try" in
11341 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11342 *) ac_try_echo
=$ac_try;;
11344 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
11345 $as_echo "$ac_try_echo") >&5
11346 (eval "$ac_compile") 2>conftest.er1
11348 grep -v '^ *+' conftest.er1
>conftest.err
11350 cat conftest.err
>&5
11351 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11352 (exit $ac_status); } && {
11353 test -z "$ac_c_werror_flag" ||
11354 test ! -s conftest.err
11355 } && test -s conftest.
$ac_objext; then
11356 ac_header_compiler
=yes
11358 $as_echo "$as_me: failed program was:" >&5
11359 sed 's/^/| /' conftest.
$ac_ext >&5
11361 ac_header_compiler
=no
11364 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11365 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11366 $as_echo "$ac_header_compiler" >&6; }
11368 # Is the header present?
11369 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11370 $as_echo_n "checking $ac_header presence... " >&6; }
11371 cat >conftest.
$ac_ext <<_ACEOF
11374 cat confdefs.h
>>conftest.
$ac_ext
11375 cat >>conftest.
$ac_ext <<_ACEOF
11376 /* end confdefs.h. */
11377 #include <$ac_header>
11379 if { (ac_try
="$ac_cpp conftest.$ac_ext"
11380 case "(($ac_try" in
11381 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11382 *) ac_try_echo=$ac_try;;
11384 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11385 $as_echo "$ac_try_echo") >&5
11386 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11388 grep -v '^ *+' conftest.er1 >conftest.err
11390 cat conftest.err >&5
11391 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11392 (exit $ac_status); } >/dev/null && {
11393 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11394 test ! -s conftest.err
11396 ac_header_preproc=yes
11398 $as_echo "$as_me: failed program was:" >&5
11399 sed 's/^/| /' conftest.$ac_ext >&5
11401 ac_header_preproc=no
11404 rm -f conftest.err conftest.$ac_ext
11405 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11406 $as_echo "$ac_header_preproc" >&6; }
11408 # So? What about this header?
11409 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11411 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11412 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11413 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11414 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11415 ac_header_preproc=yes
11418 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11419 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11420 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11421 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11422 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11423 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11424 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11425 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11426 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11427 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11428 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11429 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11431 ## ------------------------------- ##
11432 ## Report this to bug-bash@gnu.org ##
11433 ## ------------------------------- ##
11435 ) | sed "s/^/$as_me: WARNING: /" >&2
11438 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11439 $as_echo_n "checking for $ac_header... " >&6; }
11440 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11441 $as_echo_n "(cached) " >&6
11443 eval "$as_ac_Header=\$ac_header_preproc"
11445 ac_res=`eval 'as_val=${'$as_ac_Header'}
11446 $as_echo "$as_val"'`
11447 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11448 $as_echo "$ac_res" >&6; }
11451 as_val=`eval 'as_val=${'$as_ac_Header'}
11452 $as_echo "$as_val"'`
11453 if test "x$as_val" = x""yes; then
11454 cat >>confdefs.h <<_ACEOF
11455 #define `$as_echo "HAVE_$ac_header" |
$as_tr_cpp` 1
11483 for ac_header in unistd.h stdlib.h stdarg.h varargs.h limits.h string.h \
11484 memory.h locale.h termcap.h termio.h termios.h dlfcn.h \
11485 stddef.h stdint.h netdb.h pwd.h grp.h strings.h regex.h
11487 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
11488 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11489 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11490 $as_echo_n "checking for $ac_header... " >&6; }
11491 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11492 $as_echo_n "(cached) " >&6
11494 ac_res=`eval 'as_val=${'$as_ac_Header'}
11495 $as_echo "$as_val"'`
11496 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11497 $as_echo "$ac_res" >&6; }
11499 # Is the header compilable?
11500 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11501 $as_echo_n "checking $ac_header usability... " >&6; }
11502 cat >conftest.$ac_ext <<_ACEOF
11505 cat confdefs.h >>conftest.$ac_ext
11506 cat >>conftest.$ac_ext <<_ACEOF
11507 /* end confdefs.h. */
11508 $ac_includes_default
11509 #include <$ac_header>
11511 rm -f conftest.$ac_objext
11512 if { (ac_try="$ac_compile"
11513 case "(($ac_try" in
11514 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11515 *) ac_try_echo
=$ac_try;;
11517 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
11518 $as_echo "$ac_try_echo") >&5
11519 (eval "$ac_compile") 2>conftest.er1
11521 grep -v '^ *+' conftest.er1
>conftest.err
11523 cat conftest.err
>&5
11524 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11525 (exit $ac_status); } && {
11526 test -z "$ac_c_werror_flag" ||
11527 test ! -s conftest.err
11528 } && test -s conftest.
$ac_objext; then
11529 ac_header_compiler
=yes
11531 $as_echo "$as_me: failed program was:" >&5
11532 sed 's/^/| /' conftest.
$ac_ext >&5
11534 ac_header_compiler
=no
11537 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11538 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11539 $as_echo "$ac_header_compiler" >&6; }
11541 # Is the header present?
11542 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11543 $as_echo_n "checking $ac_header presence... " >&6; }
11544 cat >conftest.
$ac_ext <<_ACEOF
11547 cat confdefs.h
>>conftest.
$ac_ext
11548 cat >>conftest.
$ac_ext <<_ACEOF
11549 /* end confdefs.h. */
11550 #include <$ac_header>
11552 if { (ac_try
="$ac_cpp conftest.$ac_ext"
11553 case "(($ac_try" in
11554 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11555 *) ac_try_echo=$ac_try;;
11557 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11558 $as_echo "$ac_try_echo") >&5
11559 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11561 grep -v '^ *+' conftest.er1 >conftest.err
11563 cat conftest.err >&5
11564 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11565 (exit $ac_status); } >/dev/null && {
11566 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11567 test ! -s conftest.err
11569 ac_header_preproc=yes
11571 $as_echo "$as_me: failed program was:" >&5
11572 sed 's/^/| /' conftest.$ac_ext >&5
11574 ac_header_preproc=no
11577 rm -f conftest.err conftest.$ac_ext
11578 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11579 $as_echo "$ac_header_preproc" >&6; }
11581 # So? What about this header?
11582 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11584 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11585 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11586 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11587 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11588 ac_header_preproc=yes
11591 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11592 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11593 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11594 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11595 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11596 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11597 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11598 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11599 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11600 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11601 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11602 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11604 ## ------------------------------- ##
11605 ## Report this to bug-bash@gnu.org ##
11606 ## ------------------------------- ##
11608 ) | sed "s/^/$as_me: WARNING: /" >&2
11611 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11612 $as_echo_n "checking for $ac_header... " >&6; }
11613 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11614 $as_echo_n "(cached) " >&6
11616 eval "$as_ac_Header=\$ac_header_preproc"
11618 ac_res=`eval 'as_val=${'$as_ac_Header'}
11619 $as_echo "$as_val"'`
11620 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11621 $as_echo "$ac_res" >&6; }
11624 as_val=`eval 'as_val=${'$as_ac_Header'}
11625 $as_echo "$as_val"'`
11626 if test "x$as_val" = x""yes; then
11627 cat >>confdefs.h <<_ACEOF
11628 #define `$as_echo "HAVE_$ac_header" |
$as_tr_cpp` 1
11647 for ac_header in sys/pte.h sys/stream.h sys/select.h sys/file.h \
11648 sys/resource.h sys/param.h sys/socket.h sys/stat.h \
11649 sys/time.h sys/times.h sys/types.h sys/wait.h
11651 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
11652 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11653 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11654 $as_echo_n "checking for $ac_header... " >&6; }
11655 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11656 $as_echo_n "(cached) " >&6
11658 ac_res=`eval 'as_val=${'$as_ac_Header'}
11659 $as_echo "$as_val"'`
11660 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11661 $as_echo "$ac_res" >&6; }
11663 # Is the header compilable?
11664 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11665 $as_echo_n "checking $ac_header usability... " >&6; }
11666 cat >conftest.$ac_ext <<_ACEOF
11669 cat confdefs.h >>conftest.$ac_ext
11670 cat >>conftest.$ac_ext <<_ACEOF
11671 /* end confdefs.h. */
11672 $ac_includes_default
11673 #include <$ac_header>
11675 rm -f conftest.$ac_objext
11676 if { (ac_try="$ac_compile"
11677 case "(($ac_try" in
11678 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11679 *) ac_try_echo
=$ac_try;;
11681 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
11682 $as_echo "$ac_try_echo") >&5
11683 (eval "$ac_compile") 2>conftest.er1
11685 grep -v '^ *+' conftest.er1
>conftest.err
11687 cat conftest.err
>&5
11688 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11689 (exit $ac_status); } && {
11690 test -z "$ac_c_werror_flag" ||
11691 test ! -s conftest.err
11692 } && test -s conftest.
$ac_objext; then
11693 ac_header_compiler
=yes
11695 $as_echo "$as_me: failed program was:" >&5
11696 sed 's/^/| /' conftest.
$ac_ext >&5
11698 ac_header_compiler
=no
11701 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11702 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11703 $as_echo "$ac_header_compiler" >&6; }
11705 # Is the header present?
11706 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11707 $as_echo_n "checking $ac_header presence... " >&6; }
11708 cat >conftest.
$ac_ext <<_ACEOF
11711 cat confdefs.h
>>conftest.
$ac_ext
11712 cat >>conftest.
$ac_ext <<_ACEOF
11713 /* end confdefs.h. */
11714 #include <$ac_header>
11716 if { (ac_try
="$ac_cpp conftest.$ac_ext"
11717 case "(($ac_try" in
11718 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11719 *) ac_try_echo=$ac_try;;
11721 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11722 $as_echo "$ac_try_echo") >&5
11723 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11725 grep -v '^ *+' conftest.er1 >conftest.err
11727 cat conftest.err >&5
11728 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11729 (exit $ac_status); } >/dev/null && {
11730 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11731 test ! -s conftest.err
11733 ac_header_preproc=yes
11735 $as_echo "$as_me: failed program was:" >&5
11736 sed 's/^/| /' conftest.$ac_ext >&5
11738 ac_header_preproc=no
11741 rm -f conftest.err conftest.$ac_ext
11742 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11743 $as_echo "$ac_header_preproc" >&6; }
11745 # So? What about this header?
11746 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11748 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11749 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11750 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11751 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11752 ac_header_preproc=yes
11755 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11756 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11757 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11758 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11759 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11760 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11761 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11762 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11763 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11764 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11765 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11766 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11768 ## ------------------------------- ##
11769 ## Report this to bug-bash@gnu.org ##
11770 ## ------------------------------- ##
11772 ) | sed "s/^/$as_me: WARNING: /" >&2
11775 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11776 $as_echo_n "checking for $ac_header... " >&6; }
11777 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11778 $as_echo_n "(cached) " >&6
11780 eval "$as_ac_Header=\$ac_header_preproc"
11782 ac_res=`eval 'as_val=${'$as_ac_Header'}
11783 $as_echo "$as_val"'`
11784 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11785 $as_echo "$ac_res" >&6; }
11788 as_val=`eval 'as_val=${'$as_ac_Header'}
11789 $as_echo "$as_val"'`
11790 if test "x$as_val" = x""yes; then
11791 cat >>confdefs.h <<_ACEOF
11792 #define `$as_echo "HAVE_$ac_header" |
$as_tr_cpp` 1
11801 for ac_header in netinet/in.h arpa/inet.h
11803 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
11804 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11805 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11806 $as_echo_n "checking for $ac_header... " >&6; }
11807 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11808 $as_echo_n "(cached) " >&6
11810 ac_res=`eval 'as_val=${'$as_ac_Header'}
11811 $as_echo "$as_val"'`
11812 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11813 $as_echo "$ac_res" >&6; }
11815 # Is the header compilable?
11816 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11817 $as_echo_n "checking $ac_header usability... " >&6; }
11818 cat >conftest.$ac_ext <<_ACEOF
11821 cat confdefs.h >>conftest.$ac_ext
11822 cat >>conftest.$ac_ext <<_ACEOF
11823 /* end confdefs.h. */
11824 $ac_includes_default
11825 #include <$ac_header>
11827 rm -f conftest.$ac_objext
11828 if { (ac_try="$ac_compile"
11829 case "(($ac_try" in
11830 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11831 *) ac_try_echo
=$ac_try;;
11833 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
11834 $as_echo "$ac_try_echo") >&5
11835 (eval "$ac_compile") 2>conftest.er1
11837 grep -v '^ *+' conftest.er1
>conftest.err
11839 cat conftest.err
>&5
11840 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11841 (exit $ac_status); } && {
11842 test -z "$ac_c_werror_flag" ||
11843 test ! -s conftest.err
11844 } && test -s conftest.
$ac_objext; then
11845 ac_header_compiler
=yes
11847 $as_echo "$as_me: failed program was:" >&5
11848 sed 's/^/| /' conftest.
$ac_ext >&5
11850 ac_header_compiler
=no
11853 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11854 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11855 $as_echo "$ac_header_compiler" >&6; }
11857 # Is the header present?
11858 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11859 $as_echo_n "checking $ac_header presence... " >&6; }
11860 cat >conftest.
$ac_ext <<_ACEOF
11863 cat confdefs.h
>>conftest.
$ac_ext
11864 cat >>conftest.
$ac_ext <<_ACEOF
11865 /* end confdefs.h. */
11866 #include <$ac_header>
11868 if { (ac_try
="$ac_cpp conftest.$ac_ext"
11869 case "(($ac_try" in
11870 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11871 *) ac_try_echo=$ac_try;;
11873 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11874 $as_echo "$ac_try_echo") >&5
11875 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11877 grep -v '^ *+' conftest.er1 >conftest.err
11879 cat conftest.err >&5
11880 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11881 (exit $ac_status); } >/dev/null && {
11882 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11883 test ! -s conftest.err
11885 ac_header_preproc=yes
11887 $as_echo "$as_me: failed program was:" >&5
11888 sed 's/^/| /' conftest.$ac_ext >&5
11890 ac_header_preproc=no
11893 rm -f conftest.err conftest.$ac_ext
11894 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11895 $as_echo "$ac_header_preproc" >&6; }
11897 # So? What about this header?
11898 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11900 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11901 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11902 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11903 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11904 ac_header_preproc=yes
11907 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11908 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11909 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11910 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11911 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11912 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11913 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11914 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11915 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11916 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11917 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11918 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11920 ## ------------------------------- ##
11921 ## Report this to bug-bash@gnu.org ##
11922 ## ------------------------------- ##
11924 ) | sed "s/^/$as_me: WARNING: /" >&2
11927 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11928 $as_echo_n "checking for $ac_header... " >&6; }
11929 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11930 $as_echo_n "(cached) " >&6
11932 eval "$as_ac_Header=\$ac_header_preproc"
11934 ac_res=`eval 'as_val=${'$as_ac_Header'}
11935 $as_echo "$as_val"'`
11936 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11937 $as_echo "$ac_res" >&6; }
11940 as_val=`eval 'as_val=${'$as_ac_Header'}
11941 $as_echo "$as_val"'`
11942 if test "x$as_val" = x""yes; then
11943 cat >>confdefs.h <<_ACEOF
11944 #define `$as_echo "HAVE_$ac_header" |
$as_tr_cpp` 1
11952 { $as_echo "$as_me:$LINENO: checking for sys/ptem.h" >&5
11953 $as_echo_n "checking for sys/ptem.h... " >&6; }
11954 if test "${ac_cv_header_sys_ptem_h+set}" = set; then
11955 $as_echo_n "(cached) " >&6
11957 cat >conftest.$ac_ext <<_ACEOF
11960 cat confdefs.h >>conftest.$ac_ext
11961 cat >>conftest.$ac_ext <<_ACEOF
11962 /* end confdefs.h. */
11964 #if HAVE_SYS_STREAM_H
11965 # include <sys/stream.h>
11969 #include <sys/ptem.h>
11971 rm -f conftest.$ac_objext
11972 if { (ac_try="$ac_compile"
11973 case "(($ac_try" in
11974 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11975 *) ac_try_echo
=$ac_try;;
11977 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
11978 $as_echo "$ac_try_echo") >&5
11979 (eval "$ac_compile") 2>conftest.er1
11981 grep -v '^ *+' conftest.er1
>conftest.err
11983 cat conftest.err
>&5
11984 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11985 (exit $ac_status); } && {
11986 test -z "$ac_c_werror_flag" ||
11987 test ! -s conftest.err
11988 } && test -s conftest.
$ac_objext; then
11989 ac_cv_header_sys_ptem_h
=yes
11991 $as_echo "$as_me: failed program was:" >&5
11992 sed 's/^/| /' conftest.
$ac_ext >&5
11994 ac_cv_header_sys_ptem_h
=no
11997 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11999 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_ptem_h" >&5
12000 $as_echo "$ac_cv_header_sys_ptem_h" >&6; }
12004 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
12005 # for constant arguments. Useless!
12006 { $as_echo "$as_me:$LINENO: checking for working alloca.h" >&5
12007 $as_echo_n "checking for working alloca.h... " >&6; }
12008 if test "${ac_cv_working_alloca_h+set}" = set; then
12009 $as_echo_n "(cached) " >&6
12011 cat >conftest.
$ac_ext <<_ACEOF
12014 cat confdefs.h
>>conftest.
$ac_ext
12015 cat >>conftest.
$ac_ext <<_ACEOF
12016 /* end confdefs.h. */
12017 #include <alloca.h>
12021 char *p = (char *) alloca (2 * sizeof (int));
12027 rm -f conftest.
$ac_objext conftest
$ac_exeext
12028 if { (ac_try
="$ac_link"
12029 case "(($ac_try" in
12030 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12031 *) ac_try_echo=$ac_try;;
12033 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12034 $as_echo "$ac_try_echo") >&5
12035 (eval "$ac_link") 2>conftest.er1
12037 grep -v '^ *+' conftest.er1 >conftest.err
12039 cat conftest.err >&5
12040 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12041 (exit $ac_status); } && {
12042 test -z "$ac_c_werror_flag" ||
12043 test ! -s conftest.err
12044 } && test -s conftest$ac_exeext && {
12045 test "$cross_compiling" = yes ||
12046 $as_test_x conftest$ac_exeext
12048 ac_cv_working_alloca_h=yes
12050 $as_echo "$as_me: failed program was:" >&5
12051 sed 's/^/| /' conftest.$ac_ext >&5
12053 ac_cv_working_alloca_h=no
12056 rm -rf conftest.dSYM
12057 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12058 conftest$ac_exeext conftest.$ac_ext
12060 { $as_echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
12061 $as_echo "$ac_cv_working_alloca_h" >&6; }
12062 if test $ac_cv_working_alloca_h = yes; then
12064 cat >>confdefs.h <<\_ACEOF
12065 #define HAVE_ALLOCA_H 1
12070 { $as_echo "$as_me:$LINENO: checking for alloca" >&5
12071 $as_echo_n "checking for alloca... " >&6; }
12072 if test "${ac_cv_func_alloca_works+set}" = set; then
12073 $as_echo_n "(cached) " >&6
12075 cat >conftest.$ac_ext <<_ACEOF
12078 cat confdefs.h >>conftest.$ac_ext
12079 cat >>conftest.$ac_ext <<_ACEOF
12080 /* end confdefs.h. */
12082 # define alloca __builtin_alloca
12085 # include <malloc.h>
12086 # define alloca _alloca
12088 # ifdef HAVE_ALLOCA_H
12089 # include <alloca.h>
12094 # ifndef alloca /* predefined by HP cc +Olibcalls */
12105 char *p = (char *) alloca (1);
12111 rm -f conftest.$ac_objext conftest$ac_exeext
12112 if { (ac_try="$ac_link"
12113 case "(($ac_try" in
12114 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12115 *) ac_try_echo
=$ac_try;;
12117 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
12118 $as_echo "$ac_try_echo") >&5
12119 (eval "$ac_link") 2>conftest.er1
12121 grep -v '^ *+' conftest.er1
>conftest.err
12123 cat conftest.err
>&5
12124 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12125 (exit $ac_status); } && {
12126 test -z "$ac_c_werror_flag" ||
12127 test ! -s conftest.err
12128 } && test -s conftest
$ac_exeext && {
12129 test "$cross_compiling" = yes ||
12130 $as_test_x conftest
$ac_exeext
12132 ac_cv_func_alloca_works
=yes
12134 $as_echo "$as_me: failed program was:" >&5
12135 sed 's/^/| /' conftest.
$ac_ext >&5
12137 ac_cv_func_alloca_works
=no
12140 rm -rf conftest.dSYM
12141 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
12142 conftest
$ac_exeext conftest.
$ac_ext
12144 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
12145 $as_echo "$ac_cv_func_alloca_works" >&6; }
12147 if test $ac_cv_func_alloca_works = yes; then
12149 cat >>confdefs.h
<<\_ACEOF
12150 #define HAVE_ALLOCA 1
12154 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
12155 # that cause trouble. Some versions do not even contain alloca or
12156 # contain a buggy version. If you still want to use their alloca,
12157 # use ar to extract alloca.o from them instead of compiling alloca.c.
12159 ALLOCA
=\
${LIBOBJDIR}alloca.
$ac_objext
12161 cat >>confdefs.h
<<\_ACEOF
12166 { $as_echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
12167 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
12168 if test "${ac_cv_os_cray+set}" = set; then
12169 $as_echo_n "(cached) " >&6
12171 cat >conftest.
$ac_ext <<_ACEOF
12174 cat confdefs.h
>>conftest.
$ac_ext
12175 cat >>conftest.
$ac_ext <<_ACEOF
12176 /* end confdefs.h. */
12177 #if defined CRAY && ! defined CRAY2
12184 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12185 $EGREP "webecray" >/dev
/null
2>&1; then
12193 { $as_echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
12194 $as_echo "$ac_cv_os_cray" >&6; }
12195 if test $ac_cv_os_cray = yes; then
12196 for ac_func
in _getb67 GETB67 getb67
; do
12197 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12198 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12199 $as_echo_n "checking for $ac_func... " >&6; }
12200 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12201 $as_echo_n "(cached) " >&6
12203 cat >conftest.
$ac_ext <<_ACEOF
12206 cat confdefs.h
>>conftest.
$ac_ext
12207 cat >>conftest.
$ac_ext <<_ACEOF
12208 /* end confdefs.h. */
12209 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12210 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12211 #define $ac_func innocuous_$ac_func
12213 /* System header to define __stub macros and hopefully few prototypes,
12214 which can conflict with char $ac_func (); below.
12215 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12216 <limits.h> exists even on freestanding compilers. */
12219 # include <limits.h>
12221 # include <assert.h>
12226 /* Override any GCC internal prototype to avoid an error.
12227 Use char because int might match the return type of a GCC
12228 builtin and then its argument prototype would still apply. */
12233 /* The GNU C library defines this for functions which it implements
12234 to always fail with ENOSYS. Some functions are actually named
12235 something starting with __ and the normal name is an alias. */
12236 #if defined __stub_$ac_func || defined __stub___$ac_func
12243 return $ac_func ();
12248 rm -f conftest.
$ac_objext conftest
$ac_exeext
12249 if { (ac_try
="$ac_link"
12250 case "(($ac_try" in
12251 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12252 *) ac_try_echo=$ac_try;;
12254 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12255 $as_echo "$ac_try_echo") >&5
12256 (eval "$ac_link") 2>conftest.er1
12258 grep -v '^ *+' conftest.er1 >conftest.err
12260 cat conftest.err >&5
12261 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12262 (exit $ac_status); } && {
12263 test -z "$ac_c_werror_flag" ||
12264 test ! -s conftest.err
12265 } && test -s conftest$ac_exeext && {
12266 test "$cross_compiling" = yes ||
12267 $as_test_x conftest$ac_exeext
12269 eval "$as_ac_var=yes"
12271 $as_echo "$as_me: failed program was:" >&5
12272 sed 's/^/| /' conftest.$ac_ext >&5
12274 eval "$as_ac_var=no"
12277 rm -rf conftest.dSYM
12278 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12279 conftest$ac_exeext conftest.$ac_ext
12281 ac_res=`eval 'as_val=${'$as_ac_var'}
12282 $as_echo "$as_val"'`
12283 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12284 $as_echo "$ac_res" >&6; }
12285 as_val=`eval 'as_val=${'$as_ac_var'}
12286 $as_echo "$as_val"'`
12287 if test "x$as_val" = x""yes; then
12289 cat >>confdefs.h <<_ACEOF
12290 #define CRAY_STACKSEG_END $ac_func
12299 { $as_echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
12300 $as_echo_n "checking stack direction for C alloca... " >&6; }
12301 if test "${ac_cv_c_stack_direction+set}" = set; then
12302 $as_echo_n "(cached) " >&6
12304 if test "$cross_compiling" = yes; then
12305 ac_cv_c_stack_direction=0
12307 cat >conftest.$ac_ext <<_ACEOF
12310 cat confdefs.h >>conftest.$ac_ext
12311 cat >>conftest.$ac_ext <<_ACEOF
12312 /* end confdefs.h. */
12313 $ac_includes_default
12315 find_stack_direction ()
12317 static char *addr = 0;
12322 return find_stack_direction ();
12325 return (&dummy > addr) ? 1 : -1;
12331 return find_stack_direction () < 0;
12334 rm -f conftest$ac_exeext
12335 if { (ac_try="$ac_link"
12336 case "(($ac_try" in
12337 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12338 *) ac_try_echo
=$ac_try;;
12340 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
12341 $as_echo "$ac_try_echo") >&5
12342 (eval "$ac_link") 2>&5
12344 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12345 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
12346 { (case "(($ac_try" in
12347 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12348 *) ac_try_echo=$ac_try;;
12350 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12351 $as_echo "$ac_try_echo") >&5
12352 (eval "$ac_try") 2>&5
12354 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12355 (exit $ac_status); }; }; then
12356 ac_cv_c_stack_direction=1
12358 $as_echo "$as_me: program exited with status $ac_status" >&5
12359 $as_echo "$as_me: failed program was:" >&5
12360 sed 's/^/| /' conftest.$ac_ext >&5
12362 ( exit $ac_status )
12363 ac_cv_c_stack_direction=-1
12365 rm -rf conftest.dSYM
12366 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12371 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
12372 $as_echo "$ac_cv_c_stack_direction" >&6; }
12374 cat >>confdefs.h <<_ACEOF
12375 #define STACK_DIRECTION $ac_cv_c_stack_direction
12381 { $as_echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
12382 $as_echo_n "checking whether getpgrp requires zero arguments... " >&6; }
12383 if test "${ac_cv_func_getpgrp_void+set}" = set; then
12384 $as_echo_n "(cached) " >&6
12386 # Use it with a single arg.
12387 cat >conftest.$ac_ext <<_ACEOF
12390 cat confdefs.h >>conftest.$ac_ext
12391 cat >>conftest.$ac_ext <<_ACEOF
12392 /* end confdefs.h. */
12393 $ac_includes_default
12402 rm -f conftest.$ac_objext
12403 if { (ac_try="$ac_compile"
12404 case "(($ac_try" in
12405 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12406 *) ac_try_echo
=$ac_try;;
12408 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
12409 $as_echo "$ac_try_echo") >&5
12410 (eval "$ac_compile") 2>conftest.er1
12412 grep -v '^ *+' conftest.er1
>conftest.err
12414 cat conftest.err
>&5
12415 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12416 (exit $ac_status); } && {
12417 test -z "$ac_c_werror_flag" ||
12418 test ! -s conftest.err
12419 } && test -s conftest.
$ac_objext; then
12420 ac_cv_func_getpgrp_void
=no
12422 $as_echo "$as_me: failed program was:" >&5
12423 sed 's/^/| /' conftest.
$ac_ext >&5
12425 ac_cv_func_getpgrp_void
=yes
12428 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12431 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
12432 $as_echo "$ac_cv_func_getpgrp_void" >&6; }
12433 if test $ac_cv_func_getpgrp_void = yes; then
12435 cat >>confdefs.h
<<\_ACEOF
12436 #define GETPGRP_VOID 1
12441 if test "${ac_cv_func_setvbuf_reversed+set}" = set; then
12442 $as_echo_n "(cached) " >&6
12444 ac_cv_func_setvbuf_reversed
=no
12449 for ac_func
in vprintf
12451 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12452 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12453 $as_echo_n "checking for $ac_func... " >&6; }
12454 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12455 $as_echo_n "(cached) " >&6
12457 cat >conftest.
$ac_ext <<_ACEOF
12460 cat confdefs.h
>>conftest.
$ac_ext
12461 cat >>conftest.
$ac_ext <<_ACEOF
12462 /* end confdefs.h. */
12463 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12464 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12465 #define $ac_func innocuous_$ac_func
12467 /* System header to define __stub macros and hopefully few prototypes,
12468 which can conflict with char $ac_func (); below.
12469 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12470 <limits.h> exists even on freestanding compilers. */
12473 # include <limits.h>
12475 # include <assert.h>
12480 /* Override any GCC internal prototype to avoid an error.
12481 Use char because int might match the return type of a GCC
12482 builtin and then its argument prototype would still apply. */
12487 /* The GNU C library defines this for functions which it implements
12488 to always fail with ENOSYS. Some functions are actually named
12489 something starting with __ and the normal name is an alias. */
12490 #if defined __stub_$ac_func || defined __stub___$ac_func
12497 return $ac_func ();
12502 rm -f conftest.
$ac_objext conftest
$ac_exeext
12503 if { (ac_try
="$ac_link"
12504 case "(($ac_try" in
12505 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12506 *) ac_try_echo=$ac_try;;
12508 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12509 $as_echo "$ac_try_echo") >&5
12510 (eval "$ac_link") 2>conftest.er1
12512 grep -v '^ *+' conftest.er1 >conftest.err
12514 cat conftest.err >&5
12515 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12516 (exit $ac_status); } && {
12517 test -z "$ac_c_werror_flag" ||
12518 test ! -s conftest.err
12519 } && test -s conftest$ac_exeext && {
12520 test "$cross_compiling" = yes ||
12521 $as_test_x conftest$ac_exeext
12523 eval "$as_ac_var=yes"
12525 $as_echo "$as_me: failed program was:" >&5
12526 sed 's/^/| /' conftest.$ac_ext >&5
12528 eval "$as_ac_var=no"
12531 rm -rf conftest.dSYM
12532 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12533 conftest$ac_exeext conftest.$ac_ext
12535 ac_res=`eval 'as_val=${'$as_ac_var'}
12536 $as_echo "$as_val"'`
12537 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12538 $as_echo "$ac_res" >&6; }
12539 as_val=`eval 'as_val=${'$as_ac_var'}
12540 $as_echo "$as_val"'`
12541 if test "x$as_val" = x""yes; then
12542 cat >>confdefs.h <<_ACEOF
12543 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
12546 { $as_echo "$as_me:$LINENO: checking for _doprnt" >&5
12547 $as_echo_n "checking for _doprnt... " >&6; }
12548 if test "${ac_cv_func__doprnt+set}" = set; then
12549 $as_echo_n "(cached) " >&6
12551 cat >conftest.$ac_ext <<_ACEOF
12554 cat confdefs.h >>conftest.$ac_ext
12555 cat >>conftest.$ac_ext <<_ACEOF
12556 /* end confdefs.h. */
12557 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
12558 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12559 #define _doprnt innocuous__doprnt
12561 /* System header to define __stub macros and hopefully few prototypes,
12562 which can conflict with char _doprnt (); below.
12563 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12564 <limits.h> exists even on freestanding compilers. */
12567 # include <limits.h>
12569 # include <assert.h>
12574 /* Override any GCC internal prototype to avoid an error.
12575 Use char because int might match the return type of a GCC
12576 builtin and then its argument prototype would still apply. */
12581 /* The GNU C library defines this for functions which it implements
12582 to always fail with ENOSYS. Some functions are actually named
12583 something starting with __ and the normal name is an alias. */
12584 #if defined __stub__doprnt || defined __stub____doprnt
12596 rm -f conftest.$ac_objext conftest$ac_exeext
12597 if { (ac_try="$ac_link"
12598 case "(($ac_try" in
12599 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12600 *) ac_try_echo
=$ac_try;;
12602 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
12603 $as_echo "$ac_try_echo") >&5
12604 (eval "$ac_link") 2>conftest.er1
12606 grep -v '^ *+' conftest.er1
>conftest.err
12608 cat conftest.err
>&5
12609 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12610 (exit $ac_status); } && {
12611 test -z "$ac_c_werror_flag" ||
12612 test ! -s conftest.err
12613 } && test -s conftest
$ac_exeext && {
12614 test "$cross_compiling" = yes ||
12615 $as_test_x conftest
$ac_exeext
12617 ac_cv_func__doprnt
=yes
12619 $as_echo "$as_me: failed program was:" >&5
12620 sed 's/^/| /' conftest.
$ac_ext >&5
12622 ac_cv_func__doprnt
=no
12625 rm -rf conftest.dSYM
12626 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
12627 conftest
$ac_exeext conftest.
$ac_ext
12629 { $as_echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
12630 $as_echo "$ac_cv_func__doprnt" >&6; }
12631 if test "x$ac_cv_func__doprnt" = x
""yes; then
12633 cat >>confdefs.h
<<\_ACEOF
12634 #define HAVE_DOPRNT 1
12643 { $as_echo "$as_me:$LINENO: checking for working strcoll" >&5
12644 $as_echo_n "checking for working strcoll... " >&6; }
12645 if test "${ac_cv_func_strcoll_works+set}" = set; then
12646 $as_echo_n "(cached) " >&6
12648 if test "$cross_compiling" = yes; then
12649 ac_cv_func_strcoll_works
=no
12651 cat >conftest.
$ac_ext <<_ACEOF
12654 cat confdefs.h
>>conftest.
$ac_ext
12655 cat >>conftest.
$ac_ext <<_ACEOF
12656 /* end confdefs.h. */
12657 $ac_includes_default
12661 return (strcoll ("abc", "def") >= 0 ||
12662 strcoll ("ABC", "DEF") >= 0 ||
12663 strcoll ("123", "456") >= 0)
12668 rm -f conftest
$ac_exeext
12669 if { (ac_try
="$ac_link"
12670 case "(($ac_try" in
12671 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12672 *) ac_try_echo=$ac_try;;
12674 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12675 $as_echo "$ac_try_echo") >&5
12676 (eval "$ac_link") 2>&5
12678 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12679 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12680 { (case "(($ac_try" in
12681 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12682 *) ac_try_echo
=$ac_try;;
12684 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
12685 $as_echo "$ac_try_echo") >&5
12686 (eval "$ac_try") 2>&5
12688 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12689 (exit $ac_status); }; }; then
12690 ac_cv_func_strcoll_works
=yes
12692 $as_echo "$as_me: program exited with status $ac_status" >&5
12693 $as_echo "$as_me: failed program was:" >&5
12694 sed 's/^/| /' conftest.
$ac_ext >&5
12696 ( exit $ac_status )
12697 ac_cv_func_strcoll_works
=no
12699 rm -rf conftest.dSYM
12700 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
12705 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_strcoll_works" >&5
12706 $as_echo "$ac_cv_func_strcoll_works" >&6; }
12707 if test $ac_cv_func_strcoll_works = yes; then
12709 cat >>confdefs.h
<<\_ACEOF
12710 #define HAVE_STRCOLL 1
12717 if test "$ac_cv_func_alloca_works" = "no" && test "$opt_bash_malloc" = "no"; then
12718 MALLOC_TARGET
=alloca
12719 MALLOC_SRC
=alloca.c
12721 MALLOC_LIB
='-lmalloc'
12722 MALLOC_LIBRARY
='$(ALLOC_LIBDIR)/libmalloc.a'
12723 MALLOC_LDFLAGS
='-L$(ALLOC_LIBDIR)'
12724 MALLOC_DEP
='$(MALLOC_LIBRARY)'
12727 if test "$ac_cv_func_vprintf" = no
; then
12728 { $as_echo "$as_me:$LINENO: checking for declaration of vprintf in stdio.h" >&5
12729 $as_echo_n "checking for declaration of vprintf in stdio.h... " >&6; }
12730 cat >conftest.
$ac_ext <<_ACEOF
12733 cat confdefs.h
>>conftest.
$ac_ext
12734 cat >>conftest.
$ac_ext <<_ACEOF
12735 /* end confdefs.h. */
12739 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12740 $EGREP "[int[ ]*vprintf[^a-zA-Z0-9]]" >/dev
/null
2>&1; then
12741 ac_cv_func_vprintf
=yes
12745 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_vprintf" >&5
12746 $as_echo "$ac_cv_func_vprintf" >&6; }
12747 if test $ac_cv_func_vprintf = yes; then
12748 cat >>confdefs.h
<<\_ACEOF
12749 #define HAVE_VPRINTF 1
12755 if test "$ac_cv_func_vprintf" = no
&& test "$ac_cv_func__doprnt" = "yes"; then
12756 case " $LIBOBJS " in
12757 *" vprint.$ac_objext "* ) ;;
12758 *) LIBOBJS
="$LIBOBJS vprint.$ac_objext"
12764 { $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5
12765 $as_echo_n "checking return type of signal handlers... " >&6; }
12766 if test "${ac_cv_type_signal+set}" = set; then
12767 $as_echo_n "(cached) " >&6
12769 cat >conftest.
$ac_ext <<_ACEOF
12772 cat confdefs.h
>>conftest.
$ac_ext
12773 cat >>conftest.
$ac_ext <<_ACEOF
12774 /* end confdefs.h. */
12775 #include <sys/types.h>
12776 #include <signal.h>
12781 return *(signal (0, 0)) (0) == 1;
12786 rm -f conftest.
$ac_objext
12787 if { (ac_try
="$ac_compile"
12788 case "(($ac_try" in
12789 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12790 *) ac_try_echo=$ac_try;;
12792 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12793 $as_echo "$ac_try_echo") >&5
12794 (eval "$ac_compile") 2>conftest.er1
12796 grep -v '^ *+' conftest.er1 >conftest.err
12798 cat conftest.err >&5
12799 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12800 (exit $ac_status); } && {
12801 test -z "$ac_c_werror_flag" ||
12802 test ! -s conftest.err
12803 } && test -s conftest.$ac_objext; then
12804 ac_cv_type_signal=int
12806 $as_echo "$as_me: failed program was:" >&5
12807 sed 's/^/| /' conftest.$ac_ext >&5
12809 ac_cv_type_signal=void
12812 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12814 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
12815 $as_echo "$ac_cv_type_signal" >&6; }
12817 cat >>confdefs.h <<_ACEOF
12818 #define RETSIGTYPE $ac_cv_type_signal
12823 { $as_echo "$as_me:$LINENO: checking for __setostype" >&5
12824 $as_echo_n "checking for __setostype... " >&6; }
12825 if test "${ac_cv_func___setostype+set}" = set; then
12826 $as_echo_n "(cached) " >&6
12828 cat >conftest.$ac_ext <<_ACEOF
12831 cat confdefs.h >>conftest.$ac_ext
12832 cat >>conftest.$ac_ext <<_ACEOF
12833 /* end confdefs.h. */
12834 /* Define __setostype to an innocuous variant, in case <limits.h> declares __setostype.
12835 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12836 #define __setostype innocuous___setostype
12838 /* System header to define __stub macros and hopefully few prototypes,
12839 which can conflict with char __setostype (); below.
12840 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12841 <limits.h> exists even on freestanding compilers. */
12844 # include <limits.h>
12846 # include <assert.h>
12851 /* Override any GCC internal prototype to avoid an error.
12852 Use char because int might match the return type of a GCC
12853 builtin and then its argument prototype would still apply. */
12857 char __setostype ();
12858 /* The GNU C library defines this for functions which it implements
12859 to always fail with ENOSYS. Some functions are actually named
12860 something starting with __ and the normal name is an alias. */
12861 #if defined __stub___setostype || defined __stub_____setostype
12868 return __setostype ();
12873 rm -f conftest.$ac_objext conftest$ac_exeext
12874 if { (ac_try="$ac_link"
12875 case "(($ac_try" in
12876 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12877 *) ac_try_echo
=$ac_try;;
12879 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
12880 $as_echo "$ac_try_echo") >&5
12881 (eval "$ac_link") 2>conftest.er1
12883 grep -v '^ *+' conftest.er1
>conftest.err
12885 cat conftest.err
>&5
12886 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12887 (exit $ac_status); } && {
12888 test -z "$ac_c_werror_flag" ||
12889 test ! -s conftest.err
12890 } && test -s conftest
$ac_exeext && {
12891 test "$cross_compiling" = yes ||
12892 $as_test_x conftest
$ac_exeext
12894 ac_cv_func___setostype
=yes
12896 $as_echo "$as_me: failed program was:" >&5
12897 sed 's/^/| /' conftest.
$ac_ext >&5
12899 ac_cv_func___setostype
=no
12902 rm -rf conftest.dSYM
12903 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
12904 conftest
$ac_exeext conftest.
$ac_ext
12906 { $as_echo "$as_me:$LINENO: result: $ac_cv_func___setostype" >&5
12907 $as_echo "$ac_cv_func___setostype" >&6; }
12908 if test "x$ac_cv_func___setostype" = x
""yes; then
12909 cat >>confdefs.h
<<\_ACEOF
12910 #define HAVE_SETOSTYPE 1
12915 { $as_echo "$as_me:$LINENO: checking for wait3" >&5
12916 $as_echo_n "checking for wait3... " >&6; }
12917 if test "${ac_cv_func_wait3+set}" = set; then
12918 $as_echo_n "(cached) " >&6
12920 cat >conftest.
$ac_ext <<_ACEOF
12923 cat confdefs.h
>>conftest.
$ac_ext
12924 cat >>conftest.
$ac_ext <<_ACEOF
12925 /* end confdefs.h. */
12926 /* Define wait3 to an innocuous variant, in case <limits.h> declares wait3.
12927 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12928 #define wait3 innocuous_wait3
12930 /* System header to define __stub macros and hopefully few prototypes,
12931 which can conflict with char wait3 (); below.
12932 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12933 <limits.h> exists even on freestanding compilers. */
12936 # include <limits.h>
12938 # include <assert.h>
12943 /* Override any GCC internal prototype to avoid an error.
12944 Use char because int might match the return type of a GCC
12945 builtin and then its argument prototype would still apply. */
12950 /* The GNU C library defines this for functions which it implements
12951 to always fail with ENOSYS. Some functions are actually named
12952 something starting with __ and the normal name is an alias. */
12953 #if defined __stub_wait3 || defined __stub___wait3
12965 rm -f conftest.
$ac_objext conftest
$ac_exeext
12966 if { (ac_try
="$ac_link"
12967 case "(($ac_try" in
12968 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12969 *) ac_try_echo=$ac_try;;
12971 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12972 $as_echo "$ac_try_echo") >&5
12973 (eval "$ac_link") 2>conftest.er1
12975 grep -v '^ *+' conftest.er1 >conftest.err
12977 cat conftest.err >&5
12978 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12979 (exit $ac_status); } && {
12980 test -z "$ac_c_werror_flag" ||
12981 test ! -s conftest.err
12982 } && test -s conftest$ac_exeext && {
12983 test "$cross_compiling" = yes ||
12984 $as_test_x conftest$ac_exeext
12986 ac_cv_func_wait3=yes
12988 $as_echo "$as_me: failed program was:" >&5
12989 sed 's/^/| /' conftest.$ac_ext >&5
12991 ac_cv_func_wait3=no
12994 rm -rf conftest.dSYM
12995 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12996 conftest$ac_exeext conftest.$ac_ext
12998 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_wait3" >&5
12999 $as_echo "$ac_cv_func_wait3" >&6; }
13000 if test "x$ac_cv_func_wait3" = x""yes; then
13001 cat >>confdefs.h <<\_ACEOF
13002 #define HAVE_WAIT3 1
13007 { $as_echo "$as_me:$LINENO: checking for isinf" >&5
13008 $as_echo_n "checking for isinf... " >&6; }
13009 if test "${ac_cv_func_isinf+set}" = set; then
13010 $as_echo_n "(cached) " >&6
13012 cat >conftest.$ac_ext <<_ACEOF
13015 cat confdefs.h >>conftest.$ac_ext
13016 cat >>conftest.$ac_ext <<_ACEOF
13017 /* end confdefs.h. */
13018 /* Define isinf to an innocuous variant, in case <limits.h> declares isinf.
13019 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13020 #define isinf innocuous_isinf
13022 /* System header to define __stub macros and hopefully few prototypes,
13023 which can conflict with char isinf (); below.
13024 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13025 <limits.h> exists even on freestanding compilers. */
13028 # include <limits.h>
13030 # include <assert.h>
13035 /* Override any GCC internal prototype to avoid an error.
13036 Use char because int might match the return type of a GCC
13037 builtin and then its argument prototype would still apply. */
13042 /* The GNU C library defines this for functions which it implements
13043 to always fail with ENOSYS. Some functions are actually named
13044 something starting with __ and the normal name is an alias. */
13045 #if defined __stub_isinf || defined __stub___isinf
13057 rm -f conftest.$ac_objext conftest$ac_exeext
13058 if { (ac_try="$ac_link"
13059 case "(($ac_try" in
13060 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13061 *) ac_try_echo
=$ac_try;;
13063 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
13064 $as_echo "$ac_try_echo") >&5
13065 (eval "$ac_link") 2>conftest.er1
13067 grep -v '^ *+' conftest.er1
>conftest.err
13069 cat conftest.err
>&5
13070 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13071 (exit $ac_status); } && {
13072 test -z "$ac_c_werror_flag" ||
13073 test ! -s conftest.err
13074 } && test -s conftest
$ac_exeext && {
13075 test "$cross_compiling" = yes ||
13076 $as_test_x conftest
$ac_exeext
13078 ac_cv_func_isinf
=yes
13080 $as_echo "$as_me: failed program was:" >&5
13081 sed 's/^/| /' conftest.
$ac_ext >&5
13083 ac_cv_func_isinf
=no
13086 rm -rf conftest.dSYM
13087 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
13088 conftest
$ac_exeext conftest.
$ac_ext
13090 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_isinf" >&5
13091 $as_echo "$ac_cv_func_isinf" >&6; }
13092 if test "x$ac_cv_func_isinf" = x
""yes; then
13093 cat >>confdefs.h
<<\_ACEOF
13094 #define HAVE_ISINF_IN_LIBC 1
13099 { $as_echo "$as_me:$LINENO: checking for isnan" >&5
13100 $as_echo_n "checking for isnan... " >&6; }
13101 if test "${ac_cv_func_isnan+set}" = set; then
13102 $as_echo_n "(cached) " >&6
13104 cat >conftest.
$ac_ext <<_ACEOF
13107 cat confdefs.h
>>conftest.
$ac_ext
13108 cat >>conftest.
$ac_ext <<_ACEOF
13109 /* end confdefs.h. */
13110 /* Define isnan to an innocuous variant, in case <limits.h> declares isnan.
13111 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13112 #define isnan innocuous_isnan
13114 /* System header to define __stub macros and hopefully few prototypes,
13115 which can conflict with char isnan (); below.
13116 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13117 <limits.h> exists even on freestanding compilers. */
13120 # include <limits.h>
13122 # include <assert.h>
13127 /* Override any GCC internal prototype to avoid an error.
13128 Use char because int might match the return type of a GCC
13129 builtin and then its argument prototype would still apply. */
13134 /* The GNU C library defines this for functions which it implements
13135 to always fail with ENOSYS. Some functions are actually named
13136 something starting with __ and the normal name is an alias. */
13137 #if defined __stub_isnan || defined __stub___isnan
13149 rm -f conftest.
$ac_objext conftest
$ac_exeext
13150 if { (ac_try
="$ac_link"
13151 case "(($ac_try" in
13152 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13153 *) ac_try_echo=$ac_try;;
13155 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13156 $as_echo "$ac_try_echo") >&5
13157 (eval "$ac_link") 2>conftest.er1
13159 grep -v '^ *+' conftest.er1 >conftest.err
13161 cat conftest.err >&5
13162 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13163 (exit $ac_status); } && {
13164 test -z "$ac_c_werror_flag" ||
13165 test ! -s conftest.err
13166 } && test -s conftest$ac_exeext && {
13167 test "$cross_compiling" = yes ||
13168 $as_test_x conftest$ac_exeext
13170 ac_cv_func_isnan=yes
13172 $as_echo "$as_me: failed program was:" >&5
13173 sed 's/^/| /' conftest.$ac_ext >&5
13175 ac_cv_func_isnan=no
13178 rm -rf conftest.dSYM
13179 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13180 conftest$ac_exeext conftest.$ac_ext
13182 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_isnan" >&5
13183 $as_echo "$ac_cv_func_isnan" >&6; }
13184 if test "x$ac_cv_func_isnan" = x""yes; then
13185 cat >>confdefs.h <<\_ACEOF
13186 #define HAVE_ISNAN_IN_LIBC 1
13192 { $as_echo "$as_me:$LINENO: checking for mkfifo" >&5
13193 $as_echo_n "checking for mkfifo... " >&6; }
13194 if test "${ac_cv_func_mkfifo+set}" = set; then
13195 $as_echo_n "(cached) " >&6
13197 cat >conftest.$ac_ext <<_ACEOF
13200 cat confdefs.h >>conftest.$ac_ext
13201 cat >>conftest.$ac_ext <<_ACEOF
13202 /* end confdefs.h. */
13203 /* Define mkfifo to an innocuous variant, in case <limits.h> declares mkfifo.
13204 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13205 #define mkfifo innocuous_mkfifo
13207 /* System header to define __stub macros and hopefully few prototypes,
13208 which can conflict with char mkfifo (); below.
13209 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13210 <limits.h> exists even on freestanding compilers. */
13213 # include <limits.h>
13215 # include <assert.h>
13220 /* Override any GCC internal prototype to avoid an error.
13221 Use char because int might match the return type of a GCC
13222 builtin and then its argument prototype would still apply. */
13227 /* The GNU C library defines this for functions which it implements
13228 to always fail with ENOSYS. Some functions are actually named
13229 something starting with __ and the normal name is an alias. */
13230 #if defined __stub_mkfifo || defined __stub___mkfifo
13242 rm -f conftest.$ac_objext conftest$ac_exeext
13243 if { (ac_try="$ac_link"
13244 case "(($ac_try" in
13245 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13246 *) ac_try_echo
=$ac_try;;
13248 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
13249 $as_echo "$ac_try_echo") >&5
13250 (eval "$ac_link") 2>conftest.er1
13252 grep -v '^ *+' conftest.er1
>conftest.err
13254 cat conftest.err
>&5
13255 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13256 (exit $ac_status); } && {
13257 test -z "$ac_c_werror_flag" ||
13258 test ! -s conftest.err
13259 } && test -s conftest
$ac_exeext && {
13260 test "$cross_compiling" = yes ||
13261 $as_test_x conftest
$ac_exeext
13263 ac_cv_func_mkfifo
=yes
13265 $as_echo "$as_me: failed program was:" >&5
13266 sed 's/^/| /' conftest.
$ac_ext >&5
13268 ac_cv_func_mkfifo
=no
13271 rm -rf conftest.dSYM
13272 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
13273 conftest
$ac_exeext conftest.
$ac_ext
13275 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_mkfifo" >&5
13276 $as_echo "$ac_cv_func_mkfifo" >&6; }
13277 if test "x$ac_cv_func_mkfifo" = x
""yes; then
13278 cat >>confdefs.h
<<\_ACEOF
13279 #define HAVE_MKFIFO 1
13283 cat >>confdefs.h
<<\_ACEOF
13284 #define MKFIFO_MISSING 1
13313 for ac_func
in dup2 eaccess fcntl getdtablesize getgroups gethostname \
13314 getpagesize getpeername getrlimit getrusage gettimeofday \
13315 kill killpg lstat readlink sbrk
select setdtablesize \
13316 setitimer tcgetpgrp uname
ulimit waitpid
13318 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13319 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
13320 $as_echo_n "checking for $ac_func... " >&6; }
13321 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13322 $as_echo_n "(cached) " >&6
13324 cat >conftest.
$ac_ext <<_ACEOF
13327 cat confdefs.h
>>conftest.
$ac_ext
13328 cat >>conftest.
$ac_ext <<_ACEOF
13329 /* end confdefs.h. */
13330 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13331 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13332 #define $ac_func innocuous_$ac_func
13334 /* System header to define __stub macros and hopefully few prototypes,
13335 which can conflict with char $ac_func (); below.
13336 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13337 <limits.h> exists even on freestanding compilers. */
13340 # include <limits.h>
13342 # include <assert.h>
13347 /* Override any GCC internal prototype to avoid an error.
13348 Use char because int might match the return type of a GCC
13349 builtin and then its argument prototype would still apply. */
13354 /* The GNU C library defines this for functions which it implements
13355 to always fail with ENOSYS. Some functions are actually named
13356 something starting with __ and the normal name is an alias. */
13357 #if defined __stub_$ac_func || defined __stub___$ac_func
13364 return $ac_func ();
13369 rm -f conftest.
$ac_objext conftest
$ac_exeext
13370 if { (ac_try
="$ac_link"
13371 case "(($ac_try" in
13372 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13373 *) ac_try_echo=$ac_try;;
13375 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13376 $as_echo "$ac_try_echo") >&5
13377 (eval "$ac_link") 2>conftest.er1
13379 grep -v '^ *+' conftest.er1 >conftest.err
13381 cat conftest.err >&5
13382 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13383 (exit $ac_status); } && {
13384 test -z "$ac_c_werror_flag" ||
13385 test ! -s conftest.err
13386 } && test -s conftest$ac_exeext && {
13387 test "$cross_compiling" = yes ||
13388 $as_test_x conftest$ac_exeext
13390 eval "$as_ac_var=yes"
13392 $as_echo "$as_me: failed program was:" >&5
13393 sed 's/^/| /' conftest.$ac_ext >&5
13395 eval "$as_ac_var=no"
13398 rm -rf conftest.dSYM
13399 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13400 conftest$ac_exeext conftest.$ac_ext
13402 ac_res=`eval 'as_val=${'$as_ac_var'}
13403 $as_echo "$as_val"'`
13404 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13405 $as_echo "$ac_res" >&6; }
13406 as_val=`eval 'as_val=${'$as_ac_var'}
13407 $as_echo "$as_val"'`
13408 if test "x$as_val" = x""yes; then
13409 cat >>confdefs.h <<_ACEOF
13410 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
13417 for ac_func in rename
13419 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
13420 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
13421 $as_echo_n "checking for $ac_func... " >&6; }
13422 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13423 $as_echo_n "(cached) " >&6
13425 cat >conftest.$ac_ext <<_ACEOF
13428 cat confdefs.h >>conftest.$ac_ext
13429 cat >>conftest.$ac_ext <<_ACEOF
13430 /* end confdefs.h. */
13431 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13432 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13433 #define $ac_func innocuous_$ac_func
13435 /* System header to define __stub macros and hopefully few prototypes,
13436 which can conflict with char $ac_func (); below.
13437 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13438 <limits.h> exists even on freestanding compilers. */
13441 # include <limits.h>
13443 # include <assert.h>
13448 /* Override any GCC internal prototype to avoid an error.
13449 Use char because int might match the return type of a GCC
13450 builtin and then its argument prototype would still apply. */
13455 /* The GNU C library defines this for functions which it implements
13456 to always fail with ENOSYS. Some functions are actually named
13457 something starting with __ and the normal name is an alias. */
13458 #if defined __stub_$ac_func || defined __stub___$ac_func
13465 return $ac_func ();
13470 rm -f conftest.$ac_objext conftest$ac_exeext
13471 if { (ac_try="$ac_link"
13472 case "(($ac_try" in
13473 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13474 *) ac_try_echo
=$ac_try;;
13476 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
13477 $as_echo "$ac_try_echo") >&5
13478 (eval "$ac_link") 2>conftest.er1
13480 grep -v '^ *+' conftest.er1
>conftest.err
13482 cat conftest.err
>&5
13483 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13484 (exit $ac_status); } && {
13485 test -z "$ac_c_werror_flag" ||
13486 test ! -s conftest.err
13487 } && test -s conftest
$ac_exeext && {
13488 test "$cross_compiling" = yes ||
13489 $as_test_x conftest
$ac_exeext
13491 eval "$as_ac_var=yes"
13493 $as_echo "$as_me: failed program was:" >&5
13494 sed 's/^/| /' conftest.
$ac_ext >&5
13496 eval "$as_ac_var=no"
13499 rm -rf conftest.dSYM
13500 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
13501 conftest
$ac_exeext conftest.
$ac_ext
13503 ac_res
=`eval 'as_val=${'$as_ac_var'}
13504 $as_echo "$as_val"'`
13505 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13506 $as_echo "$ac_res" >&6; }
13507 as_val
=`eval 'as_val=${'$as_ac_var'}
13508 $as_echo "$as_val"'`
13509 if test "x$as_val" = x
""yes; then
13510 cat >>confdefs.h
<<_ACEOF
13511 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13515 case " $LIBOBJS " in
13516 *" $ac_func.$ac_objext "* ) ;;
13517 *) LIBOBJS
="$LIBOBJS $ac_func.$ac_objext"
13553 for ac_func
in bcopy bzero confstr fnmatch \
13554 getaddrinfo gethostbyname getservbyname getservent inet_aton \
13555 memmove pathconf putenv raise regcomp regexec \
13556 setenv setlinebuf setlocale setvbuf siginterrupt strchr \
13557 sysconf tcgetattr
times ttyname tzset unsetenv
13559 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13560 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
13561 $as_echo_n "checking for $ac_func... " >&6; }
13562 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13563 $as_echo_n "(cached) " >&6
13565 cat >conftest.
$ac_ext <<_ACEOF
13568 cat confdefs.h
>>conftest.
$ac_ext
13569 cat >>conftest.
$ac_ext <<_ACEOF
13570 /* end confdefs.h. */
13571 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13572 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13573 #define $ac_func innocuous_$ac_func
13575 /* System header to define __stub macros and hopefully few prototypes,
13576 which can conflict with char $ac_func (); below.
13577 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13578 <limits.h> exists even on freestanding compilers. */
13581 # include <limits.h>
13583 # include <assert.h>
13588 /* Override any GCC internal prototype to avoid an error.
13589 Use char because int might match the return type of a GCC
13590 builtin and then its argument prototype would still apply. */
13595 /* The GNU C library defines this for functions which it implements
13596 to always fail with ENOSYS. Some functions are actually named
13597 something starting with __ and the normal name is an alias. */
13598 #if defined __stub_$ac_func || defined __stub___$ac_func
13605 return $ac_func ();
13610 rm -f conftest.
$ac_objext conftest
$ac_exeext
13611 if { (ac_try
="$ac_link"
13612 case "(($ac_try" in
13613 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13614 *) ac_try_echo=$ac_try;;
13616 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13617 $as_echo "$ac_try_echo") >&5
13618 (eval "$ac_link") 2>conftest.er1
13620 grep -v '^ *+' conftest.er1 >conftest.err
13622 cat conftest.err >&5
13623 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13624 (exit $ac_status); } && {
13625 test -z "$ac_c_werror_flag" ||
13626 test ! -s conftest.err
13627 } && test -s conftest$ac_exeext && {
13628 test "$cross_compiling" = yes ||
13629 $as_test_x conftest$ac_exeext
13631 eval "$as_ac_var=yes"
13633 $as_echo "$as_me: failed program was:" >&5
13634 sed 's/^/| /' conftest.$ac_ext >&5
13636 eval "$as_ac_var=no"
13639 rm -rf conftest.dSYM
13640 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13641 conftest$ac_exeext conftest.$ac_ext
13643 ac_res=`eval 'as_val=${'$as_ac_var'}
13644 $as_echo "$as_val"'`
13645 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13646 $as_echo "$ac_res" >&6; }
13647 as_val=`eval 'as_val=${'$as_ac_var'}
13648 $as_echo "$as_val"'`
13649 if test "x$as_val" = x""yes; then
13650 cat >>confdefs.h <<_ACEOF
13651 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
13662 for ac_func in vsnprintf snprintf vasprintf asprintf
13664 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
13665 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
13666 $as_echo_n "checking for $ac_func... " >&6; }
13667 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13668 $as_echo_n "(cached) " >&6
13670 cat >conftest.$ac_ext <<_ACEOF
13673 cat confdefs.h >>conftest.$ac_ext
13674 cat >>conftest.$ac_ext <<_ACEOF
13675 /* end confdefs.h. */
13676 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13677 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13678 #define $ac_func innocuous_$ac_func
13680 /* System header to define __stub macros and hopefully few prototypes,
13681 which can conflict with char $ac_func (); below.
13682 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13683 <limits.h> exists even on freestanding compilers. */
13686 # include <limits.h>
13688 # include <assert.h>
13693 /* Override any GCC internal prototype to avoid an error.
13694 Use char because int might match the return type of a GCC
13695 builtin and then its argument prototype would still apply. */
13700 /* The GNU C library defines this for functions which it implements
13701 to always fail with ENOSYS. Some functions are actually named
13702 something starting with __ and the normal name is an alias. */
13703 #if defined __stub_$ac_func || defined __stub___$ac_func
13710 return $ac_func ();
13715 rm -f conftest.$ac_objext conftest$ac_exeext
13716 if { (ac_try="$ac_link"
13717 case "(($ac_try" in
13718 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13719 *) ac_try_echo
=$ac_try;;
13721 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
13722 $as_echo "$ac_try_echo") >&5
13723 (eval "$ac_link") 2>conftest.er1
13725 grep -v '^ *+' conftest.er1
>conftest.err
13727 cat conftest.err
>&5
13728 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13729 (exit $ac_status); } && {
13730 test -z "$ac_c_werror_flag" ||
13731 test ! -s conftest.err
13732 } && test -s conftest
$ac_exeext && {
13733 test "$cross_compiling" = yes ||
13734 $as_test_x conftest
$ac_exeext
13736 eval "$as_ac_var=yes"
13738 $as_echo "$as_me: failed program was:" >&5
13739 sed 's/^/| /' conftest.
$ac_ext >&5
13741 eval "$as_ac_var=no"
13744 rm -rf conftest.dSYM
13745 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
13746 conftest
$ac_exeext conftest.
$ac_ext
13748 ac_res
=`eval 'as_val=${'$as_ac_var'}
13749 $as_echo "$as_val"'`
13750 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13751 $as_echo "$ac_res" >&6; }
13752 as_val
=`eval 'as_val=${'$as_ac_var'}
13753 $as_echo "$as_val"'`
13754 if test "x$as_val" = x
""yes; then
13755 cat >>confdefs.h
<<_ACEOF
13756 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13768 for ac_func
in isascii isblank isgraph isprint isspace isxdigit
13770 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13771 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
13772 $as_echo_n "checking for $ac_func... " >&6; }
13773 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13774 $as_echo_n "(cached) " >&6
13776 cat >conftest.
$ac_ext <<_ACEOF
13779 cat confdefs.h
>>conftest.
$ac_ext
13780 cat >>conftest.
$ac_ext <<_ACEOF
13781 /* end confdefs.h. */
13782 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13783 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13784 #define $ac_func innocuous_$ac_func
13786 /* System header to define __stub macros and hopefully few prototypes,
13787 which can conflict with char $ac_func (); below.
13788 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13789 <limits.h> exists even on freestanding compilers. */
13792 # include <limits.h>
13794 # include <assert.h>
13799 /* Override any GCC internal prototype to avoid an error.
13800 Use char because int might match the return type of a GCC
13801 builtin and then its argument prototype would still apply. */
13806 /* The GNU C library defines this for functions which it implements
13807 to always fail with ENOSYS. Some functions are actually named
13808 something starting with __ and the normal name is an alias. */
13809 #if defined __stub_$ac_func || defined __stub___$ac_func
13816 return $ac_func ();
13821 rm -f conftest.
$ac_objext conftest
$ac_exeext
13822 if { (ac_try
="$ac_link"
13823 case "(($ac_try" in
13824 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13825 *) ac_try_echo=$ac_try;;
13827 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13828 $as_echo "$ac_try_echo") >&5
13829 (eval "$ac_link") 2>conftest.er1
13831 grep -v '^ *+' conftest.er1 >conftest.err
13833 cat conftest.err >&5
13834 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13835 (exit $ac_status); } && {
13836 test -z "$ac_c_werror_flag" ||
13837 test ! -s conftest.err
13838 } && test -s conftest$ac_exeext && {
13839 test "$cross_compiling" = yes ||
13840 $as_test_x conftest$ac_exeext
13842 eval "$as_ac_var=yes"
13844 $as_echo "$as_me: failed program was:" >&5
13845 sed 's/^/| /' conftest.$ac_ext >&5
13847 eval "$as_ac_var=no"
13850 rm -rf conftest.dSYM
13851 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13852 conftest$ac_exeext conftest.$ac_ext
13854 ac_res=`eval 'as_val=${'$as_ac_var'}
13855 $as_echo "$as_val"'`
13856 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13857 $as_echo "$ac_res" >&6; }
13858 as_val=`eval 'as_val=${'$as_ac_var'}
13859 $as_echo "$as_val"'`
13860 if test "x$as_val" = x""yes; then
13861 cat >>confdefs.h <<_ACEOF
13862 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
13871 for ac_func in getpwent getpwnam getpwuid
13873 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
13874 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
13875 $as_echo_n "checking for $ac_func... " >&6; }
13876 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13877 $as_echo_n "(cached) " >&6
13879 cat >conftest.$ac_ext <<_ACEOF
13882 cat confdefs.h >>conftest.$ac_ext
13883 cat >>conftest.$ac_ext <<_ACEOF
13884 /* end confdefs.h. */
13885 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13886 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13887 #define $ac_func innocuous_$ac_func
13889 /* System header to define __stub macros and hopefully few prototypes,
13890 which can conflict with char $ac_func (); below.
13891 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13892 <limits.h> exists even on freestanding compilers. */
13895 # include <limits.h>
13897 # include <assert.h>
13902 /* Override any GCC internal prototype to avoid an error.
13903 Use char because int might match the return type of a GCC
13904 builtin and then its argument prototype would still apply. */
13909 /* The GNU C library defines this for functions which it implements
13910 to always fail with ENOSYS. Some functions are actually named
13911 something starting with __ and the normal name is an alias. */
13912 #if defined __stub_$ac_func || defined __stub___$ac_func
13919 return $ac_func ();
13924 rm -f conftest.$ac_objext conftest$ac_exeext
13925 if { (ac_try="$ac_link"
13926 case "(($ac_try" in
13927 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13928 *) ac_try_echo
=$ac_try;;
13930 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
13931 $as_echo "$ac_try_echo") >&5
13932 (eval "$ac_link") 2>conftest.er1
13934 grep -v '^ *+' conftest.er1
>conftest.err
13936 cat conftest.err
>&5
13937 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13938 (exit $ac_status); } && {
13939 test -z "$ac_c_werror_flag" ||
13940 test ! -s conftest.err
13941 } && test -s conftest
$ac_exeext && {
13942 test "$cross_compiling" = yes ||
13943 $as_test_x conftest
$ac_exeext
13945 eval "$as_ac_var=yes"
13947 $as_echo "$as_me: failed program was:" >&5
13948 sed 's/^/| /' conftest.
$ac_ext >&5
13950 eval "$as_ac_var=no"
13953 rm -rf conftest.dSYM
13954 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
13955 conftest
$ac_exeext conftest.
$ac_ext
13957 ac_res
=`eval 'as_val=${'$as_ac_var'}
13958 $as_echo "$as_val"'`
13959 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13960 $as_echo "$ac_res" >&6; }
13961 as_val
=`eval 'as_val=${'$as_ac_var'}
13962 $as_echo "$as_val"'`
13963 if test "x$as_val" = x
""yes; then
13964 cat >>confdefs.h
<<_ACEOF
13965 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13979 for ac_func
in getcwd memset strcasecmp strerror strftime strnlen strpbrk strstr
13981 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13982 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
13983 $as_echo_n "checking for $ac_func... " >&6; }
13984 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13985 $as_echo_n "(cached) " >&6
13987 cat >conftest.
$ac_ext <<_ACEOF
13990 cat confdefs.h
>>conftest.
$ac_ext
13991 cat >>conftest.
$ac_ext <<_ACEOF
13992 /* end confdefs.h. */
13993 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13994 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13995 #define $ac_func innocuous_$ac_func
13997 /* System header to define __stub macros and hopefully few prototypes,
13998 which can conflict with char $ac_func (); below.
13999 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14000 <limits.h> exists even on freestanding compilers. */
14003 # include <limits.h>
14005 # include <assert.h>
14010 /* Override any GCC internal prototype to avoid an error.
14011 Use char because int might match the return type of a GCC
14012 builtin and then its argument prototype would still apply. */
14017 /* The GNU C library defines this for functions which it implements
14018 to always fail with ENOSYS. Some functions are actually named
14019 something starting with __ and the normal name is an alias. */
14020 #if defined __stub_$ac_func || defined __stub___$ac_func
14027 return $ac_func ();
14032 rm -f conftest.
$ac_objext conftest
$ac_exeext
14033 if { (ac_try
="$ac_link"
14034 case "(($ac_try" in
14035 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14036 *) ac_try_echo=$ac_try;;
14038 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14039 $as_echo "$ac_try_echo") >&5
14040 (eval "$ac_link") 2>conftest.er1
14042 grep -v '^ *+' conftest.er1 >conftest.err
14044 cat conftest.err >&5
14045 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14046 (exit $ac_status); } && {
14047 test -z "$ac_c_werror_flag" ||
14048 test ! -s conftest.err
14049 } && test -s conftest$ac_exeext && {
14050 test "$cross_compiling" = yes ||
14051 $as_test_x conftest$ac_exeext
14053 eval "$as_ac_var=yes"
14055 $as_echo "$as_me: failed program was:" >&5
14056 sed 's/^/| /' conftest.$ac_ext >&5
14058 eval "$as_ac_var=no"
14061 rm -rf conftest.dSYM
14062 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14063 conftest$ac_exeext conftest.$ac_ext
14065 ac_res=`eval 'as_val=${'$as_ac_var'}
14066 $as_echo "$as_val"'`
14067 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14068 $as_echo "$ac_res" >&6; }
14069 as_val=`eval 'as_val=${'$as_ac_var'}
14070 $as_echo "$as_val"'`
14071 if test "x$as_val" = x""yes; then
14072 cat >>confdefs.h <<_ACEOF
14073 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
14077 case " $LIBOBJS " in
14078 *" $ac_func.$ac_objext "* ) ;;
14079 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
14094 for ac_func in strtod strtol strtoul strtoll strtoull strtoimax strtoumax
14096 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
14097 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
14098 $as_echo_n "checking for $ac_func... " >&6; }
14099 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14100 $as_echo_n "(cached) " >&6
14102 cat >conftest.$ac_ext <<_ACEOF
14105 cat confdefs.h >>conftest.$ac_ext
14106 cat >>conftest.$ac_ext <<_ACEOF
14107 /* end confdefs.h. */
14108 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14109 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14110 #define $ac_func innocuous_$ac_func
14112 /* System header to define __stub macros and hopefully few prototypes,
14113 which can conflict with char $ac_func (); below.
14114 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14115 <limits.h> exists even on freestanding compilers. */
14118 # include <limits.h>
14120 # include <assert.h>
14125 /* Override any GCC internal prototype to avoid an error.
14126 Use char because int might match the return type of a GCC
14127 builtin and then its argument prototype would still apply. */
14132 /* The GNU C library defines this for functions which it implements
14133 to always fail with ENOSYS. Some functions are actually named
14134 something starting with __ and the normal name is an alias. */
14135 #if defined __stub_$ac_func || defined __stub___$ac_func
14142 return $ac_func ();
14147 rm -f conftest.$ac_objext conftest$ac_exeext
14148 if { (ac_try="$ac_link"
14149 case "(($ac_try" in
14150 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14151 *) ac_try_echo
=$ac_try;;
14153 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
14154 $as_echo "$ac_try_echo") >&5
14155 (eval "$ac_link") 2>conftest.er1
14157 grep -v '^ *+' conftest.er1
>conftest.err
14159 cat conftest.err
>&5
14160 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14161 (exit $ac_status); } && {
14162 test -z "$ac_c_werror_flag" ||
14163 test ! -s conftest.err
14164 } && test -s conftest
$ac_exeext && {
14165 test "$cross_compiling" = yes ||
14166 $as_test_x conftest
$ac_exeext
14168 eval "$as_ac_var=yes"
14170 $as_echo "$as_me: failed program was:" >&5
14171 sed 's/^/| /' conftest.
$ac_ext >&5
14173 eval "$as_ac_var=no"
14176 rm -rf conftest.dSYM
14177 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
14178 conftest
$ac_exeext conftest.
$ac_ext
14180 ac_res
=`eval 'as_val=${'$as_ac_var'}
14181 $as_echo "$as_val"'`
14182 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14183 $as_echo "$ac_res" >&6; }
14184 as_val
=`eval 'as_val=${'$as_ac_var'}
14185 $as_echo "$as_val"'`
14186 if test "x$as_val" = x
""yes; then
14187 cat >>confdefs.h
<<_ACEOF
14188 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14192 case " $LIBOBJS " in
14193 *" $ac_func.$ac_objext "* ) ;;
14194 *) LIBOBJS
="$LIBOBJS $ac_func.$ac_objext"
14203 for ac_func
in fdprintf
14205 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14206 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
14207 $as_echo_n "checking for $ac_func... " >&6; }
14208 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14209 $as_echo_n "(cached) " >&6
14211 cat >conftest.
$ac_ext <<_ACEOF
14214 cat confdefs.h
>>conftest.
$ac_ext
14215 cat >>conftest.
$ac_ext <<_ACEOF
14216 /* end confdefs.h. */
14217 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14218 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14219 #define $ac_func innocuous_$ac_func
14221 /* System header to define __stub macros and hopefully few prototypes,
14222 which can conflict with char $ac_func (); below.
14223 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14224 <limits.h> exists even on freestanding compilers. */
14227 # include <limits.h>
14229 # include <assert.h>
14234 /* Override any GCC internal prototype to avoid an error.
14235 Use char because int might match the return type of a GCC
14236 builtin and then its argument prototype would still apply. */
14241 /* The GNU C library defines this for functions which it implements
14242 to always fail with ENOSYS. Some functions are actually named
14243 something starting with __ and the normal name is an alias. */
14244 #if defined __stub_$ac_func || defined __stub___$ac_func
14251 return $ac_func ();
14256 rm -f conftest.
$ac_objext conftest
$ac_exeext
14257 if { (ac_try
="$ac_link"
14258 case "(($ac_try" in
14259 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14260 *) ac_try_echo=$ac_try;;
14262 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14263 $as_echo "$ac_try_echo") >&5
14264 (eval "$ac_link") 2>conftest.er1
14266 grep -v '^ *+' conftest.er1 >conftest.err
14268 cat conftest.err >&5
14269 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14270 (exit $ac_status); } && {
14271 test -z "$ac_c_werror_flag" ||
14272 test ! -s conftest.err
14273 } && test -s conftest$ac_exeext && {
14274 test "$cross_compiling" = yes ||
14275 $as_test_x conftest$ac_exeext
14277 eval "$as_ac_var=yes"
14279 $as_echo "$as_me: failed program was:" >&5
14280 sed 's/^/| /' conftest.$ac_ext >&5
14282 eval "$as_ac_var=no"
14285 rm -rf conftest.dSYM
14286 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14287 conftest$ac_exeext conftest.$ac_ext
14289 ac_res=`eval 'as_val=${'$as_ac_var'}
14290 $as_echo "$as_val"'`
14291 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14292 $as_echo "$ac_res" >&6; }
14293 as_val=`eval 'as_val=${'$as_ac_var'}
14294 $as_echo "$as_val"'`
14295 if test "x$as_val" = x""yes; then
14296 cat >>confdefs.h <<_ACEOF
14297 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
14301 case " $LIBOBJS " in
14302 *" $ac_func.$ac_objext "* ) ;;
14303 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
14312 { $as_echo "$as_me:$LINENO: checking whether confstr is declared" >&5
14313 $as_echo_n "checking whether confstr is declared... " >&6; }
14314 if test "${ac_cv_have_decl_confstr+set}" = set; then
14315 $as_echo_n "(cached) " >&6
14317 cat >conftest.$ac_ext <<_ACEOF
14320 cat confdefs.h >>conftest.$ac_ext
14321 cat >>conftest.$ac_ext <<_ACEOF
14322 /* end confdefs.h. */
14323 $ac_includes_default
14335 rm -f conftest.$ac_objext
14336 if { (ac_try="$ac_compile"
14337 case "(($ac_try" in
14338 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14339 *) ac_try_echo
=$ac_try;;
14341 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
14342 $as_echo "$ac_try_echo") >&5
14343 (eval "$ac_compile") 2>conftest.er1
14345 grep -v '^ *+' conftest.er1
>conftest.err
14347 cat conftest.err
>&5
14348 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14349 (exit $ac_status); } && {
14350 test -z "$ac_c_werror_flag" ||
14351 test ! -s conftest.err
14352 } && test -s conftest.
$ac_objext; then
14353 ac_cv_have_decl_confstr
=yes
14355 $as_echo "$as_me: failed program was:" >&5
14356 sed 's/^/| /' conftest.
$ac_ext >&5
14358 ac_cv_have_decl_confstr
=no
14361 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14363 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_confstr" >&5
14364 $as_echo "$ac_cv_have_decl_confstr" >&6; }
14365 if test "x$ac_cv_have_decl_confstr" = x
""yes; then
14367 cat >>confdefs.h
<<_ACEOF
14368 #define HAVE_DECL_CONFSTR 1
14373 cat >>confdefs.h
<<_ACEOF
14374 #define HAVE_DECL_CONFSTR 0
14381 { $as_echo "$as_me:$LINENO: checking whether printf is declared" >&5
14382 $as_echo_n "checking whether printf is declared... " >&6; }
14383 if test "${ac_cv_have_decl_printf+set}" = set; then
14384 $as_echo_n "(cached) " >&6
14386 cat >conftest.
$ac_ext <<_ACEOF
14389 cat confdefs.h
>>conftest.
$ac_ext
14390 cat >>conftest.
$ac_ext <<_ACEOF
14391 /* end confdefs.h. */
14392 $ac_includes_default
14404 rm -f conftest.
$ac_objext
14405 if { (ac_try
="$ac_compile"
14406 case "(($ac_try" in
14407 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14408 *) ac_try_echo=$ac_try;;
14410 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14411 $as_echo "$ac_try_echo") >&5
14412 (eval "$ac_compile") 2>conftest.er1
14414 grep -v '^ *+' conftest.er1 >conftest.err
14416 cat conftest.err >&5
14417 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14418 (exit $ac_status); } && {
14419 test -z "$ac_c_werror_flag" ||
14420 test ! -s conftest.err
14421 } && test -s conftest.$ac_objext; then
14422 ac_cv_have_decl_printf=yes
14424 $as_echo "$as_me: failed program was:" >&5
14425 sed 's/^/| /' conftest.$ac_ext >&5
14427 ac_cv_have_decl_printf=no
14430 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14432 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_printf" >&5
14433 $as_echo "$ac_cv_have_decl_printf" >&6; }
14434 if test "x$ac_cv_have_decl_printf" = x""yes; then
14436 cat >>confdefs.h <<_ACEOF
14437 #define HAVE_DECL_PRINTF 1
14442 cat >>confdefs.h <<_ACEOF
14443 #define HAVE_DECL_PRINTF 0
14450 { $as_echo "$as_me:$LINENO: checking whether sbrk is declared" >&5
14451 $as_echo_n "checking whether sbrk is declared... " >&6; }
14452 if test "${ac_cv_have_decl_sbrk+set}" = set; then
14453 $as_echo_n "(cached) " >&6
14455 cat >conftest.$ac_ext <<_ACEOF
14458 cat confdefs.h >>conftest.$ac_ext
14459 cat >>conftest.$ac_ext <<_ACEOF
14460 /* end confdefs.h. */
14461 $ac_includes_default
14473 rm -f conftest.$ac_objext
14474 if { (ac_try="$ac_compile"
14475 case "(($ac_try" in
14476 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14477 *) ac_try_echo
=$ac_try;;
14479 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
14480 $as_echo "$ac_try_echo") >&5
14481 (eval "$ac_compile") 2>conftest.er1
14483 grep -v '^ *+' conftest.er1
>conftest.err
14485 cat conftest.err
>&5
14486 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14487 (exit $ac_status); } && {
14488 test -z "$ac_c_werror_flag" ||
14489 test ! -s conftest.err
14490 } && test -s conftest.
$ac_objext; then
14491 ac_cv_have_decl_sbrk
=yes
14493 $as_echo "$as_me: failed program was:" >&5
14494 sed 's/^/| /' conftest.
$ac_ext >&5
14496 ac_cv_have_decl_sbrk
=no
14499 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14501 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_sbrk" >&5
14502 $as_echo "$ac_cv_have_decl_sbrk" >&6; }
14503 if test "x$ac_cv_have_decl_sbrk" = x
""yes; then
14505 cat >>confdefs.h
<<_ACEOF
14506 #define HAVE_DECL_SBRK 1
14511 cat >>confdefs.h
<<_ACEOF
14512 #define HAVE_DECL_SBRK 0
14519 { $as_echo "$as_me:$LINENO: checking whether setregid is declared" >&5
14520 $as_echo_n "checking whether setregid is declared... " >&6; }
14521 if test "${ac_cv_have_decl_setregid+set}" = set; then
14522 $as_echo_n "(cached) " >&6
14524 cat >conftest.
$ac_ext <<_ACEOF
14527 cat confdefs.h
>>conftest.
$ac_ext
14528 cat >>conftest.
$ac_ext <<_ACEOF
14529 /* end confdefs.h. */
14530 $ac_includes_default
14542 rm -f conftest.
$ac_objext
14543 if { (ac_try
="$ac_compile"
14544 case "(($ac_try" in
14545 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14546 *) ac_try_echo=$ac_try;;
14548 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14549 $as_echo "$ac_try_echo") >&5
14550 (eval "$ac_compile") 2>conftest.er1
14552 grep -v '^ *+' conftest.er1 >conftest.err
14554 cat conftest.err >&5
14555 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14556 (exit $ac_status); } && {
14557 test -z "$ac_c_werror_flag" ||
14558 test ! -s conftest.err
14559 } && test -s conftest.$ac_objext; then
14560 ac_cv_have_decl_setregid=yes
14562 $as_echo "$as_me: failed program was:" >&5
14563 sed 's/^/| /' conftest.$ac_ext >&5
14565 ac_cv_have_decl_setregid=no
14568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14570 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_setregid" >&5
14571 $as_echo "$ac_cv_have_decl_setregid" >&6; }
14572 if test "x$ac_cv_have_decl_setregid" = x""yes; then
14574 cat >>confdefs.h <<_ACEOF
14575 #define HAVE_DECL_SETREGID 1
14580 cat >>confdefs.h <<_ACEOF
14581 #define HAVE_DECL_SETREGID 0
14588 { $as_echo "$as_me:$LINENO: checking whether strcpy is declared" >&5
14589 $as_echo_n "checking whether strcpy is declared... " >&6; }
14590 if test "${ac_cv_have_decl_strcpy+set}" = set; then
14591 $as_echo_n "(cached) " >&6
14593 cat >conftest.$ac_ext <<_ACEOF
14596 cat confdefs.h >>conftest.$ac_ext
14597 cat >>conftest.$ac_ext <<_ACEOF
14598 /* end confdefs.h. */
14599 $ac_includes_default
14611 rm -f conftest.$ac_objext
14612 if { (ac_try="$ac_compile"
14613 case "(($ac_try" in
14614 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14615 *) ac_try_echo
=$ac_try;;
14617 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
14618 $as_echo "$ac_try_echo") >&5
14619 (eval "$ac_compile") 2>conftest.er1
14621 grep -v '^ *+' conftest.er1
>conftest.err
14623 cat conftest.err
>&5
14624 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14625 (exit $ac_status); } && {
14626 test -z "$ac_c_werror_flag" ||
14627 test ! -s conftest.err
14628 } && test -s conftest.
$ac_objext; then
14629 ac_cv_have_decl_strcpy
=yes
14631 $as_echo "$as_me: failed program was:" >&5
14632 sed 's/^/| /' conftest.
$ac_ext >&5
14634 ac_cv_have_decl_strcpy
=no
14637 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14639 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_strcpy" >&5
14640 $as_echo "$ac_cv_have_decl_strcpy" >&6; }
14641 if test "x$ac_cv_have_decl_strcpy" = x
""yes; then
14643 cat >>confdefs.h
<<_ACEOF
14644 #define HAVE_DECL_STRCPY 1
14649 cat >>confdefs.h
<<_ACEOF
14650 #define HAVE_DECL_STRCPY 0
14657 { $as_echo "$as_me:$LINENO: checking whether strsignal is declared" >&5
14658 $as_echo_n "checking whether strsignal is declared... " >&6; }
14659 if test "${ac_cv_have_decl_strsignal+set}" = set; then
14660 $as_echo_n "(cached) " >&6
14662 cat >conftest.
$ac_ext <<_ACEOF
14665 cat confdefs.h
>>conftest.
$ac_ext
14666 cat >>conftest.
$ac_ext <<_ACEOF
14667 /* end confdefs.h. */
14668 $ac_includes_default
14680 rm -f conftest.
$ac_objext
14681 if { (ac_try
="$ac_compile"
14682 case "(($ac_try" in
14683 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14684 *) ac_try_echo=$ac_try;;
14686 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14687 $as_echo "$ac_try_echo") >&5
14688 (eval "$ac_compile") 2>conftest.er1
14690 grep -v '^ *+' conftest.er1 >conftest.err
14692 cat conftest.err >&5
14693 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14694 (exit $ac_status); } && {
14695 test -z "$ac_c_werror_flag" ||
14696 test ! -s conftest.err
14697 } && test -s conftest.$ac_objext; then
14698 ac_cv_have_decl_strsignal=yes
14700 $as_echo "$as_me: failed program was:" >&5
14701 sed 's/^/| /' conftest.$ac_ext >&5
14703 ac_cv_have_decl_strsignal=no
14706 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14708 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_strsignal" >&5
14709 $as_echo "$ac_cv_have_decl_strsignal" >&6; }
14710 if test "x$ac_cv_have_decl_strsignal" = x""yes; then
14712 cat >>confdefs.h <<_ACEOF
14713 #define HAVE_DECL_STRSIGNAL 1
14718 cat >>confdefs.h <<_ACEOF
14719 #define HAVE_DECL_STRSIGNAL 0
14727 { $as_echo "$as_me:$LINENO: checking whether strtold is declared" >&5
14728 $as_echo_n "checking whether strtold is declared... " >&6; }
14729 if test "${ac_cv_have_decl_strtold+set}" = set; then
14730 $as_echo_n "(cached) " >&6
14732 cat >conftest.$ac_ext <<_ACEOF
14735 cat confdefs.h >>conftest.$ac_ext
14736 cat >>conftest.$ac_ext <<_ACEOF
14737 /* end confdefs.h. */
14738 $ac_includes_default
14750 rm -f conftest.$ac_objext
14751 if { (ac_try="$ac_compile"
14752 case "(($ac_try" in
14753 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14754 *) ac_try_echo
=$ac_try;;
14756 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
14757 $as_echo "$ac_try_echo") >&5
14758 (eval "$ac_compile") 2>conftest.er1
14760 grep -v '^ *+' conftest.er1
>conftest.err
14762 cat conftest.err
>&5
14763 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14764 (exit $ac_status); } && {
14765 test -z "$ac_c_werror_flag" ||
14766 test ! -s conftest.err
14767 } && test -s conftest.
$ac_objext; then
14768 ac_cv_have_decl_strtold
=yes
14770 $as_echo "$as_me: failed program was:" >&5
14771 sed 's/^/| /' conftest.
$ac_ext >&5
14773 ac_cv_have_decl_strtold
=no
14776 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14778 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtold" >&5
14779 $as_echo "$ac_cv_have_decl_strtold" >&6; }
14780 if test "x$ac_cv_have_decl_strtold" = x
""yes; then
14782 cat >>confdefs.h
<<_ACEOF
14783 #define HAVE_DECL_STRTOLD 1
14787 { $as_echo "$as_me:$LINENO: checking for broken strtold" >&5
14788 $as_echo_n "checking for broken strtold... " >&6; }
14789 if test "${bash_cv_strtold_broken+set}" = set; then
14790 $as_echo_n "(cached) " >&6
14792 cat >conftest.
$ac_ext <<_ACEOF
14795 cat confdefs.h
>>conftest.
$ac_ext
14796 cat >>conftest.
$ac_ext <<_ACEOF
14797 /* end confdefs.h. */
14798 #include <stdlib.h>
14802 int main() { long double r; char *foo, bar; r = strtold(foo, &bar);}
14807 rm -f conftest.
$ac_objext
14808 if { (ac_try
="$ac_compile"
14809 case "(($ac_try" in
14810 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14811 *) ac_try_echo=$ac_try;;
14813 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14814 $as_echo "$ac_try_echo") >&5
14815 (eval "$ac_compile") 2>conftest.er1
14817 grep -v '^ *+' conftest.er1 >conftest.err
14819 cat conftest.err >&5
14820 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14821 (exit $ac_status); } && {
14822 test -z "$ac_c_werror_flag" ||
14823 test ! -s conftest.err
14824 } && test -s conftest.$ac_objext; then
14825 bash_cv_strtold_broken=no
14827 $as_echo "$as_me: failed program was:" >&5
14828 sed 's/^/| /' conftest.$ac_ext >&5
14830 bash_cv_strtold_broken=yes
14833 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14838 { $as_echo "$as_me:$LINENO: result: $bash_cv_strtold_broken" >&5
14839 $as_echo "$bash_cv_strtold_broken" >&6; }
14840 if test "$bash_cv_strtold_broken" = "yes" ; then
14841 cat >>confdefs.h <<\_ACEOF
14842 #define STRTOLD_BROKEN 1
14848 cat >>confdefs.h <<_ACEOF
14849 #define HAVE_DECL_STRTOLD 0
14861 { $as_echo "$as_me:$LINENO: checking for declaration of strtoimax" >&5
14862 $as_echo_n "checking for declaration of strtoimax... " >&6; }
14863 if test "${bash_cv_decl_strtoimax+set}" = set; then
14864 $as_echo_n "(cached) " >&6
14866 cat >conftest.$ac_ext <<_ACEOF
14869 cat confdefs.h >>conftest.$ac_ext
14870 cat >>conftest.$ac_ext <<_ACEOF
14871 /* end confdefs.h. */
14874 # include <stdlib.h>
14876 #if HAVE_INTTYPES_H
14877 # include <inttypes.h>
14888 rm -f conftest.$ac_objext conftest$ac_exeext
14889 if { (ac_try="$ac_link"
14890 case "(($ac_try" in
14891 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14892 *) ac_try_echo
=$ac_try;;
14894 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
14895 $as_echo "$ac_try_echo") >&5
14896 (eval "$ac_link") 2>conftest.er1
14898 grep -v '^ *+' conftest.er1
>conftest.err
14900 cat conftest.err
>&5
14901 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14902 (exit $ac_status); } && {
14903 test -z "$ac_c_werror_flag" ||
14904 test ! -s conftest.err
14905 } && test -s conftest
$ac_exeext && {
14906 test "$cross_compiling" = yes ||
14907 $as_test_x conftest
$ac_exeext
14909 bash_cv_decl_strtoimax
=yes
14911 $as_echo "$as_me: failed program was:" >&5
14912 sed 's/^/| /' conftest.
$ac_ext >&5
14914 bash_cv_decl_strtoimax
=no
14917 rm -rf conftest.dSYM
14918 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
14919 conftest
$ac_exeext conftest.
$ac_ext
14921 { $as_echo "$as_me:$LINENO: result: $bash_cv_decl_strtoimax" >&5
14922 $as_echo "$bash_cv_decl_strtoimax" >&6; }
14923 bash_tr_func
=HAVE_DECL_
`echo strtoimax | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14924 if test $bash_cv_decl_strtoimax = yes; then
14925 cat >>confdefs.h
<<_ACEOF
14926 #define $bash_tr_func 1
14930 cat >>confdefs.h
<<_ACEOF
14931 #define $bash_tr_func 0
14939 { $as_echo "$as_me:$LINENO: checking for declaration of strtol" >&5
14940 $as_echo_n "checking for declaration of strtol... " >&6; }
14941 if test "${bash_cv_decl_strtol+set}" = set; then
14942 $as_echo_n "(cached) " >&6
14944 cat >conftest.
$ac_ext <<_ACEOF
14947 cat confdefs.h
>>conftest.
$ac_ext
14948 cat >>conftest.
$ac_ext <<_ACEOF
14949 /* end confdefs.h. */
14952 # include <stdlib.h>
14954 #if HAVE_INTTYPES_H
14955 # include <inttypes.h>
14966 rm -f conftest.
$ac_objext conftest
$ac_exeext
14967 if { (ac_try
="$ac_link"
14968 case "(($ac_try" in
14969 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14970 *) ac_try_echo=$ac_try;;
14972 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14973 $as_echo "$ac_try_echo") >&5
14974 (eval "$ac_link") 2>conftest.er1
14976 grep -v '^ *+' conftest.er1 >conftest.err
14978 cat conftest.err >&5
14979 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14980 (exit $ac_status); } && {
14981 test -z "$ac_c_werror_flag" ||
14982 test ! -s conftest.err
14983 } && test -s conftest$ac_exeext && {
14984 test "$cross_compiling" = yes ||
14985 $as_test_x conftest$ac_exeext
14987 bash_cv_decl_strtol=yes
14989 $as_echo "$as_me: failed program was:" >&5
14990 sed 's/^/| /' conftest.$ac_ext >&5
14992 bash_cv_decl_strtol=no
14995 rm -rf conftest.dSYM
14996 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14997 conftest$ac_exeext conftest.$ac_ext
14999 { $as_echo "$as_me:$LINENO: result: $bash_cv_decl_strtol" >&5
15000 $as_echo "$bash_cv_decl_strtol" >&6; }
15001 bash_tr_func=HAVE_DECL_`echo strtol |
tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15002 if test $bash_cv_decl_strtol = yes; then
15003 cat >>confdefs.h <<_ACEOF
15004 #define $bash_tr_func 1
15008 cat >>confdefs.h <<_ACEOF
15009 #define $bash_tr_func 0
15017 { $as_echo "$as_me:$LINENO: checking for declaration of strtoll" >&5
15018 $as_echo_n "checking for declaration of strtoll... " >&6; }
15019 if test "${bash_cv_decl_strtoll+set}" = set; then
15020 $as_echo_n "(cached) " >&6
15022 cat >conftest.$ac_ext <<_ACEOF
15025 cat confdefs.h >>conftest.$ac_ext
15026 cat >>conftest.$ac_ext <<_ACEOF
15027 /* end confdefs.h. */
15030 # include <stdlib.h>
15032 #if HAVE_INTTYPES_H
15033 # include <inttypes.h>
15044 rm -f conftest.$ac_objext conftest$ac_exeext
15045 if { (ac_try="$ac_link"
15046 case "(($ac_try" in
15047 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15048 *) ac_try_echo
=$ac_try;;
15050 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
15051 $as_echo "$ac_try_echo") >&5
15052 (eval "$ac_link") 2>conftest.er1
15054 grep -v '^ *+' conftest.er1
>conftest.err
15056 cat conftest.err
>&5
15057 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15058 (exit $ac_status); } && {
15059 test -z "$ac_c_werror_flag" ||
15060 test ! -s conftest.err
15061 } && test -s conftest
$ac_exeext && {
15062 test "$cross_compiling" = yes ||
15063 $as_test_x conftest
$ac_exeext
15065 bash_cv_decl_strtoll
=yes
15067 $as_echo "$as_me: failed program was:" >&5
15068 sed 's/^/| /' conftest.
$ac_ext >&5
15070 bash_cv_decl_strtoll
=no
15073 rm -rf conftest.dSYM
15074 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
15075 conftest
$ac_exeext conftest.
$ac_ext
15077 { $as_echo "$as_me:$LINENO: result: $bash_cv_decl_strtoll" >&5
15078 $as_echo "$bash_cv_decl_strtoll" >&6; }
15079 bash_tr_func
=HAVE_DECL_
`echo strtoll | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15080 if test $bash_cv_decl_strtoll = yes; then
15081 cat >>confdefs.h
<<_ACEOF
15082 #define $bash_tr_func 1
15086 cat >>confdefs.h
<<_ACEOF
15087 #define $bash_tr_func 0
15095 { $as_echo "$as_me:$LINENO: checking for declaration of strtoul" >&5
15096 $as_echo_n "checking for declaration of strtoul... " >&6; }
15097 if test "${bash_cv_decl_strtoul+set}" = set; then
15098 $as_echo_n "(cached) " >&6
15100 cat >conftest.
$ac_ext <<_ACEOF
15103 cat confdefs.h
>>conftest.
$ac_ext
15104 cat >>conftest.
$ac_ext <<_ACEOF
15105 /* end confdefs.h. */
15108 # include <stdlib.h>
15110 #if HAVE_INTTYPES_H
15111 # include <inttypes.h>
15122 rm -f conftest.
$ac_objext conftest
$ac_exeext
15123 if { (ac_try
="$ac_link"
15124 case "(($ac_try" in
15125 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15126 *) ac_try_echo=$ac_try;;
15128 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15129 $as_echo "$ac_try_echo") >&5
15130 (eval "$ac_link") 2>conftest.er1
15132 grep -v '^ *+' conftest.er1 >conftest.err
15134 cat conftest.err >&5
15135 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15136 (exit $ac_status); } && {
15137 test -z "$ac_c_werror_flag" ||
15138 test ! -s conftest.err
15139 } && test -s conftest$ac_exeext && {
15140 test "$cross_compiling" = yes ||
15141 $as_test_x conftest$ac_exeext
15143 bash_cv_decl_strtoul=yes
15145 $as_echo "$as_me: failed program was:" >&5
15146 sed 's/^/| /' conftest.$ac_ext >&5
15148 bash_cv_decl_strtoul=no
15151 rm -rf conftest.dSYM
15152 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15153 conftest$ac_exeext conftest.$ac_ext
15155 { $as_echo "$as_me:$LINENO: result: $bash_cv_decl_strtoul" >&5
15156 $as_echo "$bash_cv_decl_strtoul" >&6; }
15157 bash_tr_func=HAVE_DECL_`echo strtoul |
tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15158 if test $bash_cv_decl_strtoul = yes; then
15159 cat >>confdefs.h <<_ACEOF
15160 #define $bash_tr_func 1
15164 cat >>confdefs.h <<_ACEOF
15165 #define $bash_tr_func 0
15173 { $as_echo "$as_me:$LINENO: checking for declaration of strtoull" >&5
15174 $as_echo_n "checking for declaration of strtoull... " >&6; }
15175 if test "${bash_cv_decl_strtoull+set}" = set; then
15176 $as_echo_n "(cached) " >&6
15178 cat >conftest.$ac_ext <<_ACEOF
15181 cat confdefs.h >>conftest.$ac_ext
15182 cat >>conftest.$ac_ext <<_ACEOF
15183 /* end confdefs.h. */
15186 # include <stdlib.h>
15188 #if HAVE_INTTYPES_H
15189 # include <inttypes.h>
15200 rm -f conftest.$ac_objext conftest$ac_exeext
15201 if { (ac_try="$ac_link"
15202 case "(($ac_try" in
15203 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15204 *) ac_try_echo
=$ac_try;;
15206 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
15207 $as_echo "$ac_try_echo") >&5
15208 (eval "$ac_link") 2>conftest.er1
15210 grep -v '^ *+' conftest.er1
>conftest.err
15212 cat conftest.err
>&5
15213 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15214 (exit $ac_status); } && {
15215 test -z "$ac_c_werror_flag" ||
15216 test ! -s conftest.err
15217 } && test -s conftest
$ac_exeext && {
15218 test "$cross_compiling" = yes ||
15219 $as_test_x conftest
$ac_exeext
15221 bash_cv_decl_strtoull
=yes
15223 $as_echo "$as_me: failed program was:" >&5
15224 sed 's/^/| /' conftest.
$ac_ext >&5
15226 bash_cv_decl_strtoull
=no
15229 rm -rf conftest.dSYM
15230 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
15231 conftest
$ac_exeext conftest.
$ac_ext
15233 { $as_echo "$as_me:$LINENO: result: $bash_cv_decl_strtoull" >&5
15234 $as_echo "$bash_cv_decl_strtoull" >&6; }
15235 bash_tr_func
=HAVE_DECL_
`echo strtoull | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15236 if test $bash_cv_decl_strtoull = yes; then
15237 cat >>confdefs.h
<<_ACEOF
15238 #define $bash_tr_func 1
15242 cat >>confdefs.h
<<_ACEOF
15243 #define $bash_tr_func 0
15251 { $as_echo "$as_me:$LINENO: checking for declaration of strtoumax" >&5
15252 $as_echo_n "checking for declaration of strtoumax... " >&6; }
15253 if test "${bash_cv_decl_strtoumax+set}" = set; then
15254 $as_echo_n "(cached) " >&6
15256 cat >conftest.
$ac_ext <<_ACEOF
15259 cat confdefs.h
>>conftest.
$ac_ext
15260 cat >>conftest.
$ac_ext <<_ACEOF
15261 /* end confdefs.h. */
15264 # include <stdlib.h>
15266 #if HAVE_INTTYPES_H
15267 # include <inttypes.h>
15278 rm -f conftest.
$ac_objext conftest
$ac_exeext
15279 if { (ac_try
="$ac_link"
15280 case "(($ac_try" in
15281 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15282 *) ac_try_echo=$ac_try;;
15284 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15285 $as_echo "$ac_try_echo") >&5
15286 (eval "$ac_link") 2>conftest.er1
15288 grep -v '^ *+' conftest.er1 >conftest.err
15290 cat conftest.err >&5
15291 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15292 (exit $ac_status); } && {
15293 test -z "$ac_c_werror_flag" ||
15294 test ! -s conftest.err
15295 } && test -s conftest$ac_exeext && {
15296 test "$cross_compiling" = yes ||
15297 $as_test_x conftest$ac_exeext
15299 bash_cv_decl_strtoumax=yes
15301 $as_echo "$as_me: failed program was:" >&5
15302 sed 's/^/| /' conftest.$ac_ext >&5
15304 bash_cv_decl_strtoumax=no
15307 rm -rf conftest.dSYM
15308 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15309 conftest$ac_exeext conftest.$ac_ext
15311 { $as_echo "$as_me:$LINENO: result: $bash_cv_decl_strtoumax" >&5
15312 $as_echo "$bash_cv_decl_strtoumax" >&6; }
15313 bash_tr_func=HAVE_DECL_`echo strtoumax |
tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15314 if test $bash_cv_decl_strtoumax = yes; then
15315 cat >>confdefs.h <<_ACEOF
15316 #define $bash_tr_func 1
15320 cat >>confdefs.h <<_ACEOF
15321 #define $bash_tr_func 0
15331 for ac_header in $ac_header_list
15333 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
15334 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15335 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15336 $as_echo_n "checking for $ac_header... " >&6; }
15337 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15338 $as_echo_n "(cached) " >&6
15340 ac_res=`eval 'as_val=${'$as_ac_Header'}
15341 $as_echo "$as_val"'`
15342 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15343 $as_echo "$ac_res" >&6; }
15345 # Is the header compilable?
15346 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
15347 $as_echo_n "checking $ac_header usability... " >&6; }
15348 cat >conftest.$ac_ext <<_ACEOF
15351 cat confdefs.h >>conftest.$ac_ext
15352 cat >>conftest.$ac_ext <<_ACEOF
15353 /* end confdefs.h. */
15354 $ac_includes_default
15355 #include <$ac_header>
15357 rm -f conftest.$ac_objext
15358 if { (ac_try="$ac_compile"
15359 case "(($ac_try" in
15360 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15361 *) ac_try_echo
=$ac_try;;
15363 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
15364 $as_echo "$ac_try_echo") >&5
15365 (eval "$ac_compile") 2>conftest.er1
15367 grep -v '^ *+' conftest.er1
>conftest.err
15369 cat conftest.err
>&5
15370 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15371 (exit $ac_status); } && {
15372 test -z "$ac_c_werror_flag" ||
15373 test ! -s conftest.err
15374 } && test -s conftest.
$ac_objext; then
15375 ac_header_compiler
=yes
15377 $as_echo "$as_me: failed program was:" >&5
15378 sed 's/^/| /' conftest.
$ac_ext >&5
15380 ac_header_compiler
=no
15383 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15384 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15385 $as_echo "$ac_header_compiler" >&6; }
15387 # Is the header present?
15388 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
15389 $as_echo_n "checking $ac_header presence... " >&6; }
15390 cat >conftest.
$ac_ext <<_ACEOF
15393 cat confdefs.h
>>conftest.
$ac_ext
15394 cat >>conftest.
$ac_ext <<_ACEOF
15395 /* end confdefs.h. */
15396 #include <$ac_header>
15398 if { (ac_try
="$ac_cpp conftest.$ac_ext"
15399 case "(($ac_try" in
15400 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15401 *) ac_try_echo=$ac_try;;
15403 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15404 $as_echo "$ac_try_echo") >&5
15405 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15407 grep -v '^ *+' conftest.er1 >conftest.err
15409 cat conftest.err >&5
15410 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15411 (exit $ac_status); } >/dev/null && {
15412 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15413 test ! -s conftest.err
15415 ac_header_preproc=yes
15417 $as_echo "$as_me: failed program was:" >&5
15418 sed 's/^/| /' conftest.$ac_ext >&5
15420 ac_header_preproc=no
15423 rm -f conftest.err conftest.$ac_ext
15424 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15425 $as_echo "$ac_header_preproc" >&6; }
15427 # So? What about this header?
15428 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15430 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15431 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15432 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15433 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15434 ac_header_preproc=yes
15437 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15438 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15439 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15440 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15441 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15442 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15443 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15444 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15445 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15446 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15447 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15448 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15450 ## ------------------------------- ##
15451 ## Report this to bug-bash@gnu.org ##
15452 ## ------------------------------- ##
15454 ) | sed "s/^/$as_me: WARNING: /" >&2
15457 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15458 $as_echo_n "checking for $ac_header... " >&6; }
15459 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15460 $as_echo_n "(cached) " >&6
15462 eval "$as_ac_Header=\$ac_header_preproc"
15464 ac_res=`eval 'as_val=${'$as_ac_Header'}
15465 $as_echo "$as_val"'`
15466 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15467 $as_echo "$ac_res" >&6; }
15470 as_val=`eval 'as_val=${'$as_ac_Header'}
15471 $as_echo "$as_val"'`
15472 if test "x$as_val" = x""yes; then
15473 cat >>confdefs.h <<_ACEOF
15474 #define `$as_echo "HAVE_$ac_header" |
$as_tr_cpp` 1
15489 for ac_func in $ac_func_list
15491 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
15492 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
15493 $as_echo_n "checking for $ac_func... " >&6; }
15494 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15495 $as_echo_n "(cached) " >&6
15497 cat >conftest.$ac_ext <<_ACEOF
15500 cat confdefs.h >>conftest.$ac_ext
15501 cat >>conftest.$ac_ext <<_ACEOF
15502 /* end confdefs.h. */
15503 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15504 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15505 #define $ac_func innocuous_$ac_func
15507 /* System header to define __stub macros and hopefully few prototypes,
15508 which can conflict with char $ac_func (); below.
15509 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15510 <limits.h> exists even on freestanding compilers. */
15513 # include <limits.h>
15515 # include <assert.h>
15520 /* Override any GCC internal prototype to avoid an error.
15521 Use char because int might match the return type of a GCC
15522 builtin and then its argument prototype would still apply. */
15527 /* The GNU C library defines this for functions which it implements
15528 to always fail with ENOSYS. Some functions are actually named
15529 something starting with __ and the normal name is an alias. */
15530 #if defined __stub_$ac_func || defined __stub___$ac_func
15537 return $ac_func ();
15542 rm -f conftest.$ac_objext conftest$ac_exeext
15543 if { (ac_try="$ac_link"
15544 case "(($ac_try" in
15545 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15546 *) ac_try_echo
=$ac_try;;
15548 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
15549 $as_echo "$ac_try_echo") >&5
15550 (eval "$ac_link") 2>conftest.er1
15552 grep -v '^ *+' conftest.er1
>conftest.err
15554 cat conftest.err
>&5
15555 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15556 (exit $ac_status); } && {
15557 test -z "$ac_c_werror_flag" ||
15558 test ! -s conftest.err
15559 } && test -s conftest
$ac_exeext && {
15560 test "$cross_compiling" = yes ||
15561 $as_test_x conftest
$ac_exeext
15563 eval "$as_ac_var=yes"
15565 $as_echo "$as_me: failed program was:" >&5
15566 sed 's/^/| /' conftest.
$ac_ext >&5
15568 eval "$as_ac_var=no"
15571 rm -rf conftest.dSYM
15572 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
15573 conftest
$ac_exeext conftest.
$ac_ext
15575 ac_res
=`eval 'as_val=${'$as_ac_var'}
15576 $as_echo "$as_val"'`
15577 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15578 $as_echo "$ac_res" >&6; }
15579 as_val
=`eval 'as_val=${'$as_ac_var'}
15580 $as_echo "$as_val"'`
15581 if test "x$as_val" = x
""yes; then
15582 cat >>confdefs.h
<<_ACEOF
15583 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15605 { $as_echo "$as_me:$LINENO: checking for working mktime" >&5
15606 $as_echo_n "checking for working mktime... " >&6; }
15607 if test "${ac_cv_func_working_mktime+set}" = set; then
15608 $as_echo_n "(cached) " >&6
15610 if test "$cross_compiling" = yes; then
15611 ac_cv_func_working_mktime
=no
15613 cat >conftest.
$ac_ext <<_ACEOF
15616 cat confdefs.h
>>conftest.
$ac_ext
15617 cat >>conftest.
$ac_ext <<_ACEOF
15618 /* end confdefs.h. */
15619 /* Test program from Paul Eggert and Tony Leneis. */
15620 #ifdef TIME_WITH_SYS_TIME
15621 # include <sys/time.h>
15624 # ifdef HAVE_SYS_TIME_H
15625 # include <sys/time.h>
15631 #include <limits.h>
15632 #include <stdlib.h>
15634 #ifdef HAVE_UNISTD_H
15635 # include <unistd.h>
15639 # define alarm(X) /* empty */
15642 /* Work around redefinition to rpl_putenv by other config tests. */
15645 static time_t time_t_max;
15646 static time_t time_t_min;
15648 /* Values we'll use to set the TZ environment variable. */
15649 static char *tz_strings[] = {
15650 (char *) 0, "TZ=GMT0", "TZ=JST-9",
15651 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
15653 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
15655 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
15656 Based on a problem report from Andreas Jaeger. */
15658 spring_forward_gap ()
15660 /* glibc (up to about 1998-10-07) failed this test. */
15663 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
15664 instead of "TZ=America/Vancouver" in order to detect the bug even
15665 on systems that don't support the Olson extension, or don't have the
15666 full zoneinfo tables installed. */
15667 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
15676 return mktime (&tm) != (time_t) -1;
15684 return ! (lt = localtime (&now)) || mktime (lt) == now;
15691 return (mktime_test1 (now)
15692 && mktime_test1 ((time_t) (time_t_max - now))
15693 && mktime_test1 ((time_t) (time_t_min + now)));
15699 /* Based on code from Ariel Faigon. */
15709 return tm.tm_mon == 2 && tm.tm_mday == 31;
15718 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
15719 now = mktime (&tm);
15720 if (now != (time_t) -1)
15722 struct tm *lt = localtime (&now);
15724 && lt->tm_year == tm.tm_year
15725 && lt->tm_mon == tm.tm_mon
15726 && lt->tm_mday == tm.tm_mday
15727 && lt->tm_hour == tm.tm_hour
15728 && lt->tm_min == tm.tm_min
15729 && lt->tm_sec == tm.tm_sec
15730 && lt->tm_yday == tm.tm_yday
15731 && lt->tm_wday == tm.tm_wday
15732 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
15733 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
15742 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
15743 ignoring leap seconds. */
15744 unsigned long int answer = 2527315200UL;
15748 tm.tm_year = 2050 - 1900;
15751 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
15754 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
15755 instead of "TZ=America/Vancouver" in order to detect the bug even
15756 on systems that don't support the Olson extension, or don't have the
15757 full zoneinfo tables installed. */
15758 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
15762 /* Check that the result is either a failure, or close enough
15763 to the correct answer that we can assume the discrepancy is
15764 due to leap seconds. */
15765 return (t == (time_t) -1
15766 || (0 < t && answer - 120 <= t && t <= answer + 120));
15775 /* This test makes some buggy mktime implementations loop.
15776 Give up after 60 seconds; a mktime slower than that
15777 isn't worth using anyway. */
15782 t = (time_t_max << 1) + 1;
15783 if (t <= time_t_max)
15787 time_t_min = - ((time_t) ~ (time_t) 0 == (time_t) -1) - time_t_max;
15789 delta = time_t_max / 997; /* a suitable prime number */
15790 for (i = 0; i < N_STRINGS; i++)
15793 putenv (tz_strings[i]);
15795 for (t = 0; t <= time_t_max - delta; t += delta)
15796 if (! mktime_test (t))
15798 if (! (mktime_test ((time_t) 1)
15799 && mktime_test ((time_t) (60 * 60))
15800 && mktime_test ((time_t) (60 * 60 * 24))))
15803 for (j = 1; ; j <<= 1)
15804 if (! bigtime_test (j))
15806 else if (INT_MAX / 2 < j)
15808 if (! bigtime_test (INT_MAX))
15811 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
15814 rm -f conftest
$ac_exeext
15815 if { (ac_try
="$ac_link"
15816 case "(($ac_try" in
15817 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15818 *) ac_try_echo=$ac_try;;
15820 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15821 $as_echo "$ac_try_echo") >&5
15822 (eval "$ac_link") 2>&5
15824 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15825 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15826 { (case "(($ac_try" in
15827 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15828 *) ac_try_echo
=$ac_try;;
15830 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
15831 $as_echo "$ac_try_echo") >&5
15832 (eval "$ac_try") 2>&5
15834 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15835 (exit $ac_status); }; }; then
15836 ac_cv_func_working_mktime
=yes
15838 $as_echo "$as_me: program exited with status $ac_status" >&5
15839 $as_echo "$as_me: failed program was:" >&5
15840 sed 's/^/| /' conftest.
$ac_ext >&5
15842 ( exit $ac_status )
15843 ac_cv_func_working_mktime
=no
15845 rm -rf conftest.dSYM
15846 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
15851 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
15852 $as_echo "$ac_cv_func_working_mktime" >&6; }
15853 if test $ac_cv_func_working_mktime = no
; then
15854 case " $LIBOBJS " in
15855 *" mktime.$ac_objext "* ) ;;
15856 *) LIBOBJS
="$LIBOBJS mktime.$ac_objext"
15869 for ac_header
in argz.h errno.h fcntl.h malloc.h stdio_ext.h
15871 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15872 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15873 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15874 $as_echo_n "checking for $ac_header... " >&6; }
15875 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15876 $as_echo_n "(cached) " >&6
15878 ac_res
=`eval 'as_val=${'$as_ac_Header'}
15879 $as_echo "$as_val"'`
15880 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15881 $as_echo "$ac_res" >&6; }
15883 # Is the header compilable?
15884 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
15885 $as_echo_n "checking $ac_header usability... " >&6; }
15886 cat >conftest.
$ac_ext <<_ACEOF
15889 cat confdefs.h
>>conftest.
$ac_ext
15890 cat >>conftest.
$ac_ext <<_ACEOF
15891 /* end confdefs.h. */
15892 $ac_includes_default
15893 #include <$ac_header>
15895 rm -f conftest.
$ac_objext
15896 if { (ac_try
="$ac_compile"
15897 case "(($ac_try" in
15898 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15899 *) ac_try_echo=$ac_try;;
15901 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15902 $as_echo "$ac_try_echo") >&5
15903 (eval "$ac_compile") 2>conftest.er1
15905 grep -v '^ *+' conftest.er1 >conftest.err
15907 cat conftest.err >&5
15908 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15909 (exit $ac_status); } && {
15910 test -z "$ac_c_werror_flag" ||
15911 test ! -s conftest.err
15912 } && test -s conftest.$ac_objext; then
15913 ac_header_compiler=yes
15915 $as_echo "$as_me: failed program was:" >&5
15916 sed 's/^/| /' conftest.$ac_ext >&5
15918 ac_header_compiler=no
15921 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15922 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15923 $as_echo "$ac_header_compiler" >&6; }
15925 # Is the header present?
15926 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
15927 $as_echo_n "checking $ac_header presence... " >&6; }
15928 cat >conftest.$ac_ext <<_ACEOF
15931 cat confdefs.h >>conftest.$ac_ext
15932 cat >>conftest.$ac_ext <<_ACEOF
15933 /* end confdefs.h. */
15934 #include <$ac_header>
15936 if { (ac_try="$ac_cpp conftest.$ac_ext"
15937 case "(($ac_try" in
15938 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15939 *) ac_try_echo
=$ac_try;;
15941 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
15942 $as_echo "$ac_try_echo") >&5
15943 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15945 grep -v '^ *+' conftest.er1
>conftest.err
15947 cat conftest.err
>&5
15948 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15949 (exit $ac_status); } >/dev
/null
&& {
15950 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15951 test ! -s conftest.err
15953 ac_header_preproc
=yes
15955 $as_echo "$as_me: failed program was:" >&5
15956 sed 's/^/| /' conftest.
$ac_ext >&5
15958 ac_header_preproc
=no
15961 rm -f conftest.err conftest.
$ac_ext
15962 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15963 $as_echo "$ac_header_preproc" >&6; }
15965 # So? What about this header?
15966 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15968 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15969 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15970 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15971 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15972 ac_header_preproc
=yes
15975 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15976 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15977 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15978 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15979 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15980 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15981 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15982 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15983 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15984 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15985 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15986 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15988 ## ------------------------------- ##
15989 ## Report this to bug-bash@gnu.org ##
15990 ## ------------------------------- ##
15992 ) |
sed "s/^/$as_me: WARNING: /" >&2
15995 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15996 $as_echo_n "checking for $ac_header... " >&6; }
15997 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15998 $as_echo_n "(cached) " >&6
16000 eval "$as_ac_Header=\$ac_header_preproc"
16002 ac_res
=`eval 'as_val=${'$as_ac_Header'}
16003 $as_echo "$as_val"'`
16004 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16005 $as_echo "$ac_res" >&6; }
16008 as_val
=`eval 'as_val=${'$as_ac_Header'}
16009 $as_echo "$as_val"'`
16010 if test "x$as_val" = x
""yes; then
16011 cat >>confdefs.h
<<_ACEOF
16012 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16022 for ac_header
in stdlib.h unistd.h
16024 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16025 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16026 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16027 $as_echo_n "checking for $ac_header... " >&6; }
16028 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16029 $as_echo_n "(cached) " >&6
16031 ac_res
=`eval 'as_val=${'$as_ac_Header'}
16032 $as_echo "$as_val"'`
16033 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16034 $as_echo "$ac_res" >&6; }
16036 # Is the header compilable?
16037 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
16038 $as_echo_n "checking $ac_header usability... " >&6; }
16039 cat >conftest.
$ac_ext <<_ACEOF
16042 cat confdefs.h
>>conftest.
$ac_ext
16043 cat >>conftest.
$ac_ext <<_ACEOF
16044 /* end confdefs.h. */
16045 $ac_includes_default
16046 #include <$ac_header>
16048 rm -f conftest.
$ac_objext
16049 if { (ac_try
="$ac_compile"
16050 case "(($ac_try" in
16051 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16052 *) ac_try_echo=$ac_try;;
16054 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16055 $as_echo "$ac_try_echo") >&5
16056 (eval "$ac_compile") 2>conftest.er1
16058 grep -v '^ *+' conftest.er1 >conftest.err
16060 cat conftest.err >&5
16061 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16062 (exit $ac_status); } && {
16063 test -z "$ac_c_werror_flag" ||
16064 test ! -s conftest.err
16065 } && test -s conftest.$ac_objext; then
16066 ac_header_compiler=yes
16068 $as_echo "$as_me: failed program was:" >&5
16069 sed 's/^/| /' conftest.$ac_ext >&5
16071 ac_header_compiler=no
16074 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16075 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16076 $as_echo "$ac_header_compiler" >&6; }
16078 # Is the header present?
16079 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
16080 $as_echo_n "checking $ac_header presence... " >&6; }
16081 cat >conftest.$ac_ext <<_ACEOF
16084 cat confdefs.h >>conftest.$ac_ext
16085 cat >>conftest.$ac_ext <<_ACEOF
16086 /* end confdefs.h. */
16087 #include <$ac_header>
16089 if { (ac_try="$ac_cpp conftest.$ac_ext"
16090 case "(($ac_try" in
16091 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16092 *) ac_try_echo
=$ac_try;;
16094 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
16095 $as_echo "$ac_try_echo") >&5
16096 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16098 grep -v '^ *+' conftest.er1
>conftest.err
16100 cat conftest.err
>&5
16101 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16102 (exit $ac_status); } >/dev
/null
&& {
16103 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16104 test ! -s conftest.err
16106 ac_header_preproc
=yes
16108 $as_echo "$as_me: failed program was:" >&5
16109 sed 's/^/| /' conftest.
$ac_ext >&5
16111 ac_header_preproc
=no
16114 rm -f conftest.err conftest.
$ac_ext
16115 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16116 $as_echo "$ac_header_preproc" >&6; }
16118 # So? What about this header?
16119 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16121 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16122 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16123 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16124 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16125 ac_header_preproc
=yes
16128 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16129 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16130 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16131 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16132 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16133 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16134 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16135 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16136 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16137 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16138 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16139 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16141 ## ------------------------------- ##
16142 ## Report this to bug-bash@gnu.org ##
16143 ## ------------------------------- ##
16145 ) |
sed "s/^/$as_me: WARNING: /" >&2
16148 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16149 $as_echo_n "checking for $ac_header... " >&6; }
16150 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16151 $as_echo_n "(cached) " >&6
16153 eval "$as_ac_Header=\$ac_header_preproc"
16155 ac_res
=`eval 'as_val=${'$as_ac_Header'}
16156 $as_echo "$as_val"'`
16157 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16158 $as_echo "$ac_res" >&6; }
16161 as_val
=`eval 'as_val=${'$as_ac_Header'}
16162 $as_echo "$as_val"'`
16163 if test "x$as_val" = x
""yes; then
16164 cat >>confdefs.h
<<_ACEOF
16165 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16173 for ac_func
in getpagesize
16175 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16176 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
16177 $as_echo_n "checking for $ac_func... " >&6; }
16178 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16179 $as_echo_n "(cached) " >&6
16181 cat >conftest.
$ac_ext <<_ACEOF
16184 cat confdefs.h
>>conftest.
$ac_ext
16185 cat >>conftest.
$ac_ext <<_ACEOF
16186 /* end confdefs.h. */
16187 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16188 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16189 #define $ac_func innocuous_$ac_func
16191 /* System header to define __stub macros and hopefully few prototypes,
16192 which can conflict with char $ac_func (); below.
16193 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16194 <limits.h> exists even on freestanding compilers. */
16197 # include <limits.h>
16199 # include <assert.h>
16204 /* Override any GCC internal prototype to avoid an error.
16205 Use char because int might match the return type of a GCC
16206 builtin and then its argument prototype would still apply. */
16211 /* The GNU C library defines this for functions which it implements
16212 to always fail with ENOSYS. Some functions are actually named
16213 something starting with __ and the normal name is an alias. */
16214 #if defined __stub_$ac_func || defined __stub___$ac_func
16221 return $ac_func ();
16226 rm -f conftest.
$ac_objext conftest
$ac_exeext
16227 if { (ac_try
="$ac_link"
16228 case "(($ac_try" in
16229 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16230 *) ac_try_echo=$ac_try;;
16232 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16233 $as_echo "$ac_try_echo") >&5
16234 (eval "$ac_link") 2>conftest.er1
16236 grep -v '^ *+' conftest.er1 >conftest.err
16238 cat conftest.err >&5
16239 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16240 (exit $ac_status); } && {
16241 test -z "$ac_c_werror_flag" ||
16242 test ! -s conftest.err
16243 } && test -s conftest$ac_exeext && {
16244 test "$cross_compiling" = yes ||
16245 $as_test_x conftest$ac_exeext
16247 eval "$as_ac_var=yes"
16249 $as_echo "$as_me: failed program was:" >&5
16250 sed 's/^/| /' conftest.$ac_ext >&5
16252 eval "$as_ac_var=no"
16255 rm -rf conftest.dSYM
16256 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16257 conftest$ac_exeext conftest.$ac_ext
16259 ac_res=`eval 'as_val=${'$as_ac_var'}
16260 $as_echo "$as_val"'`
16261 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16262 $as_echo "$ac_res" >&6; }
16263 as_val=`eval 'as_val=${'$as_ac_var'}
16264 $as_echo "$as_val"'`
16265 if test "x$as_val" = x""yes; then
16266 cat >>confdefs.h <<_ACEOF
16267 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
16273 { $as_echo "$as_me:$LINENO: checking for working mmap" >&5
16274 $as_echo_n "checking for working mmap... " >&6; }
16275 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
16276 $as_echo_n "(cached) " >&6
16278 if test "$cross_compiling" = yes; then
16279 ac_cv_func_mmap_fixed_mapped=no
16281 cat >conftest.$ac_ext <<_ACEOF
16284 cat confdefs.h >>conftest.$ac_ext
16285 cat >>conftest.$ac_ext <<_ACEOF
16286 /* end confdefs.h. */
16287 $ac_includes_default
16288 /* malloc might have been renamed as rpl_malloc. */
16291 /* Thanks to Mike Haertel and Jim Avera for this test.
16292 Here is a matrix of mmap possibilities:
16293 mmap private not fixed
16294 mmap private fixed at somewhere currently unmapped
16295 mmap private fixed at somewhere already mapped
16296 mmap shared not fixed
16297 mmap shared fixed at somewhere currently unmapped
16298 mmap shared fixed at somewhere already mapped
16299 For private mappings, we should verify that changes cannot be read()
16300 back from the file, nor mmap's back from the file at a different
16301 address. (There have been systems where private was not correctly
16302 implemented like the infamous i386 svr4.0, and systems where the
16303 VM page cache was not coherent with the file system buffer cache
16304 like early versions of FreeBSD and possibly contemporary NetBSD.)
16305 For shared mappings, we should conversely verify that changes get
16306 propagated back to all the places they're supposed to be.
16308 Grep wants private fixed already mapped.
16309 The main things grep needs to know about mmap are:
16310 * does it exist and is it safe to write into the mmap'd area
16311 * how to use it (BSD variants) */
16314 #include <sys/mman.h>
16316 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
16320 /* This mess was copied from the GNU getpagesize.h. */
16321 #ifndef HAVE_GETPAGESIZE
16322 /* Assume that all systems that can run configure have sys/param.h. */
16323 # ifndef HAVE_SYS_PARAM_H
16324 # define HAVE_SYS_PARAM_H 1
16327 # ifdef _SC_PAGESIZE
16328 # define getpagesize() sysconf(_SC_PAGESIZE)
16329 # else /* no _SC_PAGESIZE */
16330 # ifdef HAVE_SYS_PARAM_H
16331 # include <sys/param.h>
16332 # ifdef EXEC_PAGESIZE
16333 # define getpagesize() EXEC_PAGESIZE
16334 # else /* no EXEC_PAGESIZE */
16336 # define getpagesize() NBPG * CLSIZE
16339 # endif /* no CLSIZE */
16340 # else /* no NBPG */
16342 # define getpagesize() NBPC
16343 # else /* no NBPC */
16345 # define getpagesize() PAGESIZE
16346 # endif /* PAGESIZE */
16347 # endif /* no NBPC */
16348 # endif /* no NBPG */
16349 # endif /* no EXEC_PAGESIZE */
16350 # else /* no HAVE_SYS_PARAM_H */
16351 # define getpagesize() 8192 /* punt totally */
16352 # endif /* no HAVE_SYS_PARAM_H */
16353 # endif /* no _SC_PAGESIZE */
16355 #endif /* no HAVE_GETPAGESIZE */
16360 char *data, *data2, *data3;
16364 pagesize = getpagesize ();
16366 /* First, make a file with some known garbage in it. */
16367 data = (char *) malloc (pagesize);
16370 for (i = 0; i < pagesize; ++i)
16371 *(data + i) = rand ();
16373 fd = creat ("conftest.mmap", 0600);
16376 if (write (fd, data, pagesize) != pagesize)
16380 /* Next, try to mmap the file at a fixed address which already has
16381 something else allocated at it. If we can, also make sure that
16382 we see the same garbage. */
16383 fd = open ("conftest.mmap", O_RDWR);
16386 data2 = (char *) malloc (2 * pagesize);
16389 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
16390 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
16391 MAP_PRIVATE | MAP_FIXED, fd, 0L))
16393 for (i = 0; i < pagesize; ++i)
16394 if (*(data + i) != *(data2 + i))
16397 /* Finally, make sure that changes to the mapped area do not
16398 percolate back to the file as seen by read(). (This is a bug on
16399 some variants of i386 svr4.0.) */
16400 for (i = 0; i < pagesize; ++i)
16401 *(data2 + i) = *(data2 + i) + 1;
16402 data3 = (char *) malloc (pagesize);
16405 if (read (fd, data3, pagesize) != pagesize)
16407 for (i = 0; i < pagesize; ++i)
16408 if (*(data + i) != *(data3 + i))
16414 rm -f conftest$ac_exeext
16415 if { (ac_try="$ac_link"
16416 case "(($ac_try" in
16417 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16418 *) ac_try_echo
=$ac_try;;
16420 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
16421 $as_echo "$ac_try_echo") >&5
16422 (eval "$ac_link") 2>&5
16424 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16425 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
16426 { (case "(($ac_try" in
16427 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16428 *) ac_try_echo=$ac_try;;
16430 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16431 $as_echo "$ac_try_echo") >&5
16432 (eval "$ac_try") 2>&5
16434 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16435 (exit $ac_status); }; }; then
16436 ac_cv_func_mmap_fixed_mapped=yes
16438 $as_echo "$as_me: program exited with status $ac_status" >&5
16439 $as_echo "$as_me: failed program was:" >&5
16440 sed 's/^/| /' conftest.$ac_ext >&5
16442 ( exit $ac_status )
16443 ac_cv_func_mmap_fixed_mapped=no
16445 rm -rf conftest.dSYM
16446 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16451 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
16452 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
16453 if test $ac_cv_func_mmap_fixed_mapped = yes; then
16455 cat >>confdefs.h <<\_ACEOF
16456 #define HAVE_MMAP 1
16460 rm -f conftest.mmap
16471 for ac_func in __argz_count __argz_next __argz_stringify dcgettext mempcpy \
16472 munmap stpcpy strcspn strdup
16474 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
16475 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
16476 $as_echo_n "checking for $ac_func... " >&6; }
16477 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16478 $as_echo_n "(cached) " >&6
16480 cat >conftest.$ac_ext <<_ACEOF
16483 cat confdefs.h >>conftest.$ac_ext
16484 cat >>conftest.$ac_ext <<_ACEOF
16485 /* end confdefs.h. */
16486 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16487 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16488 #define $ac_func innocuous_$ac_func
16490 /* System header to define __stub macros and hopefully few prototypes,
16491 which can conflict with char $ac_func (); below.
16492 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16493 <limits.h> exists even on freestanding compilers. */
16496 # include <limits.h>
16498 # include <assert.h>
16503 /* Override any GCC internal prototype to avoid an error.
16504 Use char because int might match the return type of a GCC
16505 builtin and then its argument prototype would still apply. */
16510 /* The GNU C library defines this for functions which it implements
16511 to always fail with ENOSYS. Some functions are actually named
16512 something starting with __ and the normal name is an alias. */
16513 #if defined __stub_$ac_func || defined __stub___$ac_func
16520 return $ac_func ();
16525 rm -f conftest.$ac_objext conftest$ac_exeext
16526 if { (ac_try="$ac_link"
16527 case "(($ac_try" in
16528 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16529 *) ac_try_echo
=$ac_try;;
16531 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
16532 $as_echo "$ac_try_echo") >&5
16533 (eval "$ac_link") 2>conftest.er1
16535 grep -v '^ *+' conftest.er1
>conftest.err
16537 cat conftest.err
>&5
16538 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16539 (exit $ac_status); } && {
16540 test -z "$ac_c_werror_flag" ||
16541 test ! -s conftest.err
16542 } && test -s conftest
$ac_exeext && {
16543 test "$cross_compiling" = yes ||
16544 $as_test_x conftest
$ac_exeext
16546 eval "$as_ac_var=yes"
16548 $as_echo "$as_me: failed program was:" >&5
16549 sed 's/^/| /' conftest.
$ac_ext >&5
16551 eval "$as_ac_var=no"
16554 rm -rf conftest.dSYM
16555 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
16556 conftest
$ac_exeext conftest.
$ac_ext
16558 ac_res
=`eval 'as_val=${'$as_ac_var'}
16559 $as_echo "$as_val"'`
16560 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16561 $as_echo "$ac_res" >&6; }
16562 as_val
=`eval 'as_val=${'$as_ac_var'}
16563 $as_echo "$as_val"'`
16564 if test "x$as_val" = x
""yes; then
16565 cat >>confdefs.h
<<_ACEOF
16566 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16573 INTL_DEP
= INTL_INC
= LIBINTL_H
=
16574 if test "x$USE_INCLUDED_LIBINTL" = "xyes"; then
16575 INTL_DEP
='${INTL_LIBDIR}/libintl.a'
16576 INTL_INC
='-I${INTL_LIBSRC} -I${INTL_BUILDDIR}'
16577 LIBINTL_H
='${INTL_BUILDDIR}/libintl.h'
16586 for ac_header
in wctype.h
16588 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16589 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16590 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16591 $as_echo_n "checking for $ac_header... " >&6; }
16592 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16593 $as_echo_n "(cached) " >&6
16595 ac_res
=`eval 'as_val=${'$as_ac_Header'}
16596 $as_echo "$as_val"'`
16597 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16598 $as_echo "$ac_res" >&6; }
16600 # Is the header compilable?
16601 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
16602 $as_echo_n "checking $ac_header usability... " >&6; }
16603 cat >conftest.
$ac_ext <<_ACEOF
16606 cat confdefs.h
>>conftest.
$ac_ext
16607 cat >>conftest.
$ac_ext <<_ACEOF
16608 /* end confdefs.h. */
16609 $ac_includes_default
16610 #include <$ac_header>
16612 rm -f conftest.
$ac_objext
16613 if { (ac_try
="$ac_compile"
16614 case "(($ac_try" in
16615 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16616 *) ac_try_echo=$ac_try;;
16618 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16619 $as_echo "$ac_try_echo") >&5
16620 (eval "$ac_compile") 2>conftest.er1
16622 grep -v '^ *+' conftest.er1 >conftest.err
16624 cat conftest.err >&5
16625 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16626 (exit $ac_status); } && {
16627 test -z "$ac_c_werror_flag" ||
16628 test ! -s conftest.err
16629 } && test -s conftest.$ac_objext; then
16630 ac_header_compiler=yes
16632 $as_echo "$as_me: failed program was:" >&5
16633 sed 's/^/| /' conftest.$ac_ext >&5
16635 ac_header_compiler=no
16638 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16639 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16640 $as_echo "$ac_header_compiler" >&6; }
16642 # Is the header present?
16643 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
16644 $as_echo_n "checking $ac_header presence... " >&6; }
16645 cat >conftest.$ac_ext <<_ACEOF
16648 cat confdefs.h >>conftest.$ac_ext
16649 cat >>conftest.$ac_ext <<_ACEOF
16650 /* end confdefs.h. */
16651 #include <$ac_header>
16653 if { (ac_try="$ac_cpp conftest.$ac_ext"
16654 case "(($ac_try" in
16655 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16656 *) ac_try_echo
=$ac_try;;
16658 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
16659 $as_echo "$ac_try_echo") >&5
16660 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16662 grep -v '^ *+' conftest.er1
>conftest.err
16664 cat conftest.err
>&5
16665 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16666 (exit $ac_status); } >/dev
/null
&& {
16667 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16668 test ! -s conftest.err
16670 ac_header_preproc
=yes
16672 $as_echo "$as_me: failed program was:" >&5
16673 sed 's/^/| /' conftest.
$ac_ext >&5
16675 ac_header_preproc
=no
16678 rm -f conftest.err conftest.
$ac_ext
16679 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16680 $as_echo "$ac_header_preproc" >&6; }
16682 # So? What about this header?
16683 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16685 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16686 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16687 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16688 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16689 ac_header_preproc
=yes
16692 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16693 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16694 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16695 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16696 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16697 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16698 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16699 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16700 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16701 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16702 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16703 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16705 ## ------------------------------- ##
16706 ## Report this to bug-bash@gnu.org ##
16707 ## ------------------------------- ##
16709 ) |
sed "s/^/$as_me: WARNING: /" >&2
16712 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16713 $as_echo_n "checking for $ac_header... " >&6; }
16714 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16715 $as_echo_n "(cached) " >&6
16717 eval "$as_ac_Header=\$ac_header_preproc"
16719 ac_res
=`eval 'as_val=${'$as_ac_Header'}
16720 $as_echo "$as_val"'`
16721 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16722 $as_echo "$ac_res" >&6; }
16725 as_val
=`eval 'as_val=${'$as_ac_Header'}
16726 $as_echo "$as_val"'`
16727 if test "x$as_val" = x
""yes; then
16728 cat >>confdefs.h
<<_ACEOF
16729 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16737 for ac_header
in wchar.h
16739 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16740 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16741 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16742 $as_echo_n "checking for $ac_header... " >&6; }
16743 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16744 $as_echo_n "(cached) " >&6
16746 ac_res
=`eval 'as_val=${'$as_ac_Header'}
16747 $as_echo "$as_val"'`
16748 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16749 $as_echo "$ac_res" >&6; }
16751 # Is the header compilable?
16752 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
16753 $as_echo_n "checking $ac_header usability... " >&6; }
16754 cat >conftest.
$ac_ext <<_ACEOF
16757 cat confdefs.h
>>conftest.
$ac_ext
16758 cat >>conftest.
$ac_ext <<_ACEOF
16759 /* end confdefs.h. */
16760 $ac_includes_default
16761 #include <$ac_header>
16763 rm -f conftest.
$ac_objext
16764 if { (ac_try
="$ac_compile"
16765 case "(($ac_try" in
16766 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16767 *) ac_try_echo=$ac_try;;
16769 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16770 $as_echo "$ac_try_echo") >&5
16771 (eval "$ac_compile") 2>conftest.er1
16773 grep -v '^ *+' conftest.er1 >conftest.err
16775 cat conftest.err >&5
16776 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16777 (exit $ac_status); } && {
16778 test -z "$ac_c_werror_flag" ||
16779 test ! -s conftest.err
16780 } && test -s conftest.$ac_objext; then
16781 ac_header_compiler=yes
16783 $as_echo "$as_me: failed program was:" >&5
16784 sed 's/^/| /' conftest.$ac_ext >&5
16786 ac_header_compiler=no
16789 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16790 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16791 $as_echo "$ac_header_compiler" >&6; }
16793 # Is the header present?
16794 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
16795 $as_echo_n "checking $ac_header presence... " >&6; }
16796 cat >conftest.$ac_ext <<_ACEOF
16799 cat confdefs.h >>conftest.$ac_ext
16800 cat >>conftest.$ac_ext <<_ACEOF
16801 /* end confdefs.h. */
16802 #include <$ac_header>
16804 if { (ac_try="$ac_cpp conftest.$ac_ext"
16805 case "(($ac_try" in
16806 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16807 *) ac_try_echo
=$ac_try;;
16809 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
16810 $as_echo "$ac_try_echo") >&5
16811 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16813 grep -v '^ *+' conftest.er1
>conftest.err
16815 cat conftest.err
>&5
16816 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16817 (exit $ac_status); } >/dev
/null
&& {
16818 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16819 test ! -s conftest.err
16821 ac_header_preproc
=yes
16823 $as_echo "$as_me: failed program was:" >&5
16824 sed 's/^/| /' conftest.
$ac_ext >&5
16826 ac_header_preproc
=no
16829 rm -f conftest.err conftest.
$ac_ext
16830 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16831 $as_echo "$ac_header_preproc" >&6; }
16833 # So? What about this header?
16834 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16836 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16837 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16838 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16839 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16840 ac_header_preproc
=yes
16843 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16844 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16845 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16846 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16847 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16848 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16849 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16850 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16851 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16852 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16853 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16854 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16856 ## ------------------------------- ##
16857 ## Report this to bug-bash@gnu.org ##
16858 ## ------------------------------- ##
16860 ) |
sed "s/^/$as_me: WARNING: /" >&2
16863 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16864 $as_echo_n "checking for $ac_header... " >&6; }
16865 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16866 $as_echo_n "(cached) " >&6
16868 eval "$as_ac_Header=\$ac_header_preproc"
16870 ac_res
=`eval 'as_val=${'$as_ac_Header'}
16871 $as_echo "$as_val"'`
16872 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16873 $as_echo "$ac_res" >&6; }
16876 as_val
=`eval 'as_val=${'$as_ac_Header'}
16877 $as_echo "$as_val"'`
16878 if test "x$as_val" = x
""yes; then
16879 cat >>confdefs.h
<<_ACEOF
16880 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16888 for ac_header
in langinfo.h
16890 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16891 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16892 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16893 $as_echo_n "checking for $ac_header... " >&6; }
16894 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16895 $as_echo_n "(cached) " >&6
16897 ac_res
=`eval 'as_val=${'$as_ac_Header'}
16898 $as_echo "$as_val"'`
16899 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16900 $as_echo "$ac_res" >&6; }
16902 # Is the header compilable?
16903 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
16904 $as_echo_n "checking $ac_header usability... " >&6; }
16905 cat >conftest.
$ac_ext <<_ACEOF
16908 cat confdefs.h
>>conftest.
$ac_ext
16909 cat >>conftest.
$ac_ext <<_ACEOF
16910 /* end confdefs.h. */
16911 $ac_includes_default
16912 #include <$ac_header>
16914 rm -f conftest.
$ac_objext
16915 if { (ac_try
="$ac_compile"
16916 case "(($ac_try" in
16917 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16918 *) ac_try_echo=$ac_try;;
16920 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16921 $as_echo "$ac_try_echo") >&5
16922 (eval "$ac_compile") 2>conftest.er1
16924 grep -v '^ *+' conftest.er1 >conftest.err
16926 cat conftest.err >&5
16927 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16928 (exit $ac_status); } && {
16929 test -z "$ac_c_werror_flag" ||
16930 test ! -s conftest.err
16931 } && test -s conftest.$ac_objext; then
16932 ac_header_compiler=yes
16934 $as_echo "$as_me: failed program was:" >&5
16935 sed 's/^/| /' conftest.$ac_ext >&5
16937 ac_header_compiler=no
16940 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16941 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16942 $as_echo "$ac_header_compiler" >&6; }
16944 # Is the header present?
16945 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
16946 $as_echo_n "checking $ac_header presence... " >&6; }
16947 cat >conftest.$ac_ext <<_ACEOF
16950 cat confdefs.h >>conftest.$ac_ext
16951 cat >>conftest.$ac_ext <<_ACEOF
16952 /* end confdefs.h. */
16953 #include <$ac_header>
16955 if { (ac_try="$ac_cpp conftest.$ac_ext"
16956 case "(($ac_try" in
16957 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16958 *) ac_try_echo
=$ac_try;;
16960 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
16961 $as_echo "$ac_try_echo") >&5
16962 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16964 grep -v '^ *+' conftest.er1
>conftest.err
16966 cat conftest.err
>&5
16967 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16968 (exit $ac_status); } >/dev
/null
&& {
16969 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16970 test ! -s conftest.err
16972 ac_header_preproc
=yes
16974 $as_echo "$as_me: failed program was:" >&5
16975 sed 's/^/| /' conftest.
$ac_ext >&5
16977 ac_header_preproc
=no
16980 rm -f conftest.err conftest.
$ac_ext
16981 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16982 $as_echo "$ac_header_preproc" >&6; }
16984 # So? What about this header?
16985 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16987 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16988 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16989 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16990 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16991 ac_header_preproc
=yes
16994 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16995 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16996 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16997 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16998 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16999 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17000 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17001 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17002 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17003 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17004 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17005 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17007 ## ------------------------------- ##
17008 ## Report this to bug-bash@gnu.org ##
17009 ## ------------------------------- ##
17011 ) |
sed "s/^/$as_me: WARNING: /" >&2
17014 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17015 $as_echo_n "checking for $ac_header... " >&6; }
17016 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17017 $as_echo_n "(cached) " >&6
17019 eval "$as_ac_Header=\$ac_header_preproc"
17021 ac_res
=`eval 'as_val=${'$as_ac_Header'}
17022 $as_echo "$as_val"'`
17023 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17024 $as_echo "$ac_res" >&6; }
17027 as_val
=`eval 'as_val=${'$as_ac_Header'}
17028 $as_echo "$as_val"'`
17029 if test "x$as_val" = x
""yes; then
17030 cat >>confdefs.h
<<_ACEOF
17031 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17039 { $as_echo "$as_me:$LINENO: checking for mbrlen" >&5
17040 $as_echo_n "checking for mbrlen... " >&6; }
17041 if test "${ac_cv_func_mbrlen+set}" = set; then
17042 $as_echo_n "(cached) " >&6
17044 cat >conftest.
$ac_ext <<_ACEOF
17047 cat confdefs.h
>>conftest.
$ac_ext
17048 cat >>conftest.
$ac_ext <<_ACEOF
17049 /* end confdefs.h. */
17050 /* Define mbrlen to an innocuous variant, in case <limits.h> declares mbrlen.
17051 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17052 #define mbrlen innocuous_mbrlen
17054 /* System header to define __stub macros and hopefully few prototypes,
17055 which can conflict with char mbrlen (); below.
17056 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17057 <limits.h> exists even on freestanding compilers. */
17060 # include <limits.h>
17062 # include <assert.h>
17067 /* Override any GCC internal prototype to avoid an error.
17068 Use char because int might match the return type of a GCC
17069 builtin and then its argument prototype would still apply. */
17074 /* The GNU C library defines this for functions which it implements
17075 to always fail with ENOSYS. Some functions are actually named
17076 something starting with __ and the normal name is an alias. */
17077 #if defined __stub_mbrlen || defined __stub___mbrlen
17089 rm -f conftest.
$ac_objext conftest
$ac_exeext
17090 if { (ac_try
="$ac_link"
17091 case "(($ac_try" in
17092 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17093 *) ac_try_echo=$ac_try;;
17095 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17096 $as_echo "$ac_try_echo") >&5
17097 (eval "$ac_link") 2>conftest.er1
17099 grep -v '^ *+' conftest.er1 >conftest.err
17101 cat conftest.err >&5
17102 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17103 (exit $ac_status); } && {
17104 test -z "$ac_c_werror_flag" ||
17105 test ! -s conftest.err
17106 } && test -s conftest$ac_exeext && {
17107 test "$cross_compiling" = yes ||
17108 $as_test_x conftest$ac_exeext
17110 ac_cv_func_mbrlen=yes
17112 $as_echo "$as_me: failed program was:" >&5
17113 sed 's/^/| /' conftest.$ac_ext >&5
17115 ac_cv_func_mbrlen=no
17118 rm -rf conftest.dSYM
17119 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17120 conftest$ac_exeext conftest.$ac_ext
17122 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_mbrlen" >&5
17123 $as_echo "$ac_cv_func_mbrlen" >&6; }
17124 if test "x$ac_cv_func_mbrlen" = x""yes; then
17125 cat >>confdefs.h <<\_ACEOF
17126 #define HAVE_MBRLEN 1
17131 { $as_echo "$as_me:$LINENO: checking for mbscmp" >&5
17132 $as_echo_n "checking for mbscmp... " >&6; }
17133 if test "${ac_cv_func_mbscmp+set}" = set; then
17134 $as_echo_n "(cached) " >&6
17136 cat >conftest.$ac_ext <<_ACEOF
17139 cat confdefs.h >>conftest.$ac_ext
17140 cat >>conftest.$ac_ext <<_ACEOF
17141 /* end confdefs.h. */
17142 /* Define mbscmp to an innocuous variant, in case <limits.h> declares mbscmp.
17143 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17144 #define mbscmp innocuous_mbscmp
17146 /* System header to define __stub macros and hopefully few prototypes,
17147 which can conflict with char mbscmp (); below.
17148 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17149 <limits.h> exists even on freestanding compilers. */
17152 # include <limits.h>
17154 # include <assert.h>
17159 /* Override any GCC internal prototype to avoid an error.
17160 Use char because int might match the return type of a GCC
17161 builtin and then its argument prototype would still apply. */
17166 /* The GNU C library defines this for functions which it implements
17167 to always fail with ENOSYS. Some functions are actually named
17168 something starting with __ and the normal name is an alias. */
17169 #if defined __stub_mbscmp || defined __stub___mbscmp
17181 rm -f conftest.$ac_objext conftest$ac_exeext
17182 if { (ac_try="$ac_link"
17183 case "(($ac_try" in
17184 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17185 *) ac_try_echo
=$ac_try;;
17187 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
17188 $as_echo "$ac_try_echo") >&5
17189 (eval "$ac_link") 2>conftest.er1
17191 grep -v '^ *+' conftest.er1
>conftest.err
17193 cat conftest.err
>&5
17194 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17195 (exit $ac_status); } && {
17196 test -z "$ac_c_werror_flag" ||
17197 test ! -s conftest.err
17198 } && test -s conftest
$ac_exeext && {
17199 test "$cross_compiling" = yes ||
17200 $as_test_x conftest
$ac_exeext
17202 ac_cv_func_mbscmp
=yes
17204 $as_echo "$as_me: failed program was:" >&5
17205 sed 's/^/| /' conftest.
$ac_ext >&5
17207 ac_cv_func_mbscmp
=no
17210 rm -rf conftest.dSYM
17211 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
17212 conftest
$ac_exeext conftest.
$ac_ext
17214 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_mbscmp" >&5
17215 $as_echo "$ac_cv_func_mbscmp" >&6; }
17216 if test "x$ac_cv_func_mbscmp" = x
""yes; then
17217 cat >>confdefs.h
<<\_ACEOF
17218 #define HAVE_MBSCMP 1
17223 { $as_echo "$as_me:$LINENO: checking for mbsrtowcs" >&5
17224 $as_echo_n "checking for mbsrtowcs... " >&6; }
17225 if test "${ac_cv_func_mbsrtowcs+set}" = set; then
17226 $as_echo_n "(cached) " >&6
17228 cat >conftest.
$ac_ext <<_ACEOF
17231 cat confdefs.h
>>conftest.
$ac_ext
17232 cat >>conftest.
$ac_ext <<_ACEOF
17233 /* end confdefs.h. */
17234 /* Define mbsrtowcs to an innocuous variant, in case <limits.h> declares mbsrtowcs.
17235 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17236 #define mbsrtowcs innocuous_mbsrtowcs
17238 /* System header to define __stub macros and hopefully few prototypes,
17239 which can conflict with char mbsrtowcs (); below.
17240 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17241 <limits.h> exists even on freestanding compilers. */
17244 # include <limits.h>
17246 # include <assert.h>
17251 /* Override any GCC internal prototype to avoid an error.
17252 Use char because int might match the return type of a GCC
17253 builtin and then its argument prototype would still apply. */
17258 /* The GNU C library defines this for functions which it implements
17259 to always fail with ENOSYS. Some functions are actually named
17260 something starting with __ and the normal name is an alias. */
17261 #if defined __stub_mbsrtowcs || defined __stub___mbsrtowcs
17268 return mbsrtowcs ();
17273 rm -f conftest.
$ac_objext conftest
$ac_exeext
17274 if { (ac_try
="$ac_link"
17275 case "(($ac_try" in
17276 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17277 *) ac_try_echo=$ac_try;;
17279 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17280 $as_echo "$ac_try_echo") >&5
17281 (eval "$ac_link") 2>conftest.er1
17283 grep -v '^ *+' conftest.er1 >conftest.err
17285 cat conftest.err >&5
17286 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17287 (exit $ac_status); } && {
17288 test -z "$ac_c_werror_flag" ||
17289 test ! -s conftest.err
17290 } && test -s conftest$ac_exeext && {
17291 test "$cross_compiling" = yes ||
17292 $as_test_x conftest$ac_exeext
17294 ac_cv_func_mbsrtowcs=yes
17296 $as_echo "$as_me: failed program was:" >&5
17297 sed 's/^/| /' conftest.$ac_ext >&5
17299 ac_cv_func_mbsrtowcs=no
17302 rm -rf conftest.dSYM
17303 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17304 conftest$ac_exeext conftest.$ac_ext
17306 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_mbsrtowcs" >&5
17307 $as_echo "$ac_cv_func_mbsrtowcs" >&6; }
17308 if test "x$ac_cv_func_mbsrtowcs" = x""yes; then
17309 cat >>confdefs.h <<\_ACEOF
17310 #define HAVE_MBSRTOWCS 1
17316 { $as_echo "$as_me:$LINENO: checking for wcrtomb" >&5
17317 $as_echo_n "checking for wcrtomb... " >&6; }
17318 if test "${ac_cv_func_wcrtomb+set}" = set; then
17319 $as_echo_n "(cached) " >&6
17321 cat >conftest.$ac_ext <<_ACEOF
17324 cat confdefs.h >>conftest.$ac_ext
17325 cat >>conftest.$ac_ext <<_ACEOF
17326 /* end confdefs.h. */
17327 /* Define wcrtomb to an innocuous variant, in case <limits.h> declares wcrtomb.
17328 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17329 #define wcrtomb innocuous_wcrtomb
17331 /* System header to define __stub macros and hopefully few prototypes,
17332 which can conflict with char wcrtomb (); below.
17333 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17334 <limits.h> exists even on freestanding compilers. */
17337 # include <limits.h>
17339 # include <assert.h>
17344 /* Override any GCC internal prototype to avoid an error.
17345 Use char because int might match the return type of a GCC
17346 builtin and then its argument prototype would still apply. */
17351 /* The GNU C library defines this for functions which it implements
17352 to always fail with ENOSYS. Some functions are actually named
17353 something starting with __ and the normal name is an alias. */
17354 #if defined __stub_wcrtomb || defined __stub___wcrtomb
17366 rm -f conftest.$ac_objext conftest$ac_exeext
17367 if { (ac_try="$ac_link"
17368 case "(($ac_try" in
17369 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17370 *) ac_try_echo
=$ac_try;;
17372 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
17373 $as_echo "$ac_try_echo") >&5
17374 (eval "$ac_link") 2>conftest.er1
17376 grep -v '^ *+' conftest.er1
>conftest.err
17378 cat conftest.err
>&5
17379 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17380 (exit $ac_status); } && {
17381 test -z "$ac_c_werror_flag" ||
17382 test ! -s conftest.err
17383 } && test -s conftest
$ac_exeext && {
17384 test "$cross_compiling" = yes ||
17385 $as_test_x conftest
$ac_exeext
17387 ac_cv_func_wcrtomb
=yes
17389 $as_echo "$as_me: failed program was:" >&5
17390 sed 's/^/| /' conftest.
$ac_ext >&5
17392 ac_cv_func_wcrtomb
=no
17395 rm -rf conftest.dSYM
17396 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
17397 conftest
$ac_exeext conftest.
$ac_ext
17399 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_wcrtomb" >&5
17400 $as_echo "$ac_cv_func_wcrtomb" >&6; }
17401 if test "x$ac_cv_func_wcrtomb" = x
""yes; then
17402 cat >>confdefs.h
<<\_ACEOF
17403 #define HAVE_WCRTOMB 1
17408 { $as_echo "$as_me:$LINENO: checking for wcscoll" >&5
17409 $as_echo_n "checking for wcscoll... " >&6; }
17410 if test "${ac_cv_func_wcscoll+set}" = set; then
17411 $as_echo_n "(cached) " >&6
17413 cat >conftest.
$ac_ext <<_ACEOF
17416 cat confdefs.h
>>conftest.
$ac_ext
17417 cat >>conftest.
$ac_ext <<_ACEOF
17418 /* end confdefs.h. */
17419 /* Define wcscoll to an innocuous variant, in case <limits.h> declares wcscoll.
17420 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17421 #define wcscoll innocuous_wcscoll
17423 /* System header to define __stub macros and hopefully few prototypes,
17424 which can conflict with char wcscoll (); below.
17425 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17426 <limits.h> exists even on freestanding compilers. */
17429 # include <limits.h>
17431 # include <assert.h>
17436 /* Override any GCC internal prototype to avoid an error.
17437 Use char because int might match the return type of a GCC
17438 builtin and then its argument prototype would still apply. */
17443 /* The GNU C library defines this for functions which it implements
17444 to always fail with ENOSYS. Some functions are actually named
17445 something starting with __ and the normal name is an alias. */
17446 #if defined __stub_wcscoll || defined __stub___wcscoll
17458 rm -f conftest.
$ac_objext conftest
$ac_exeext
17459 if { (ac_try
="$ac_link"
17460 case "(($ac_try" in
17461 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17462 *) ac_try_echo=$ac_try;;
17464 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17465 $as_echo "$ac_try_echo") >&5
17466 (eval "$ac_link") 2>conftest.er1
17468 grep -v '^ *+' conftest.er1 >conftest.err
17470 cat conftest.err >&5
17471 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17472 (exit $ac_status); } && {
17473 test -z "$ac_c_werror_flag" ||
17474 test ! -s conftest.err
17475 } && test -s conftest$ac_exeext && {
17476 test "$cross_compiling" = yes ||
17477 $as_test_x conftest$ac_exeext
17479 ac_cv_func_wcscoll=yes
17481 $as_echo "$as_me: failed program was:" >&5
17482 sed 's/^/| /' conftest.$ac_ext >&5
17484 ac_cv_func_wcscoll=no
17487 rm -rf conftest.dSYM
17488 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17489 conftest$ac_exeext conftest.$ac_ext
17491 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_wcscoll" >&5
17492 $as_echo "$ac_cv_func_wcscoll" >&6; }
17493 if test "x$ac_cv_func_wcscoll" = x""yes; then
17494 cat >>confdefs.h <<\_ACEOF
17495 #define HAVE_WCSCOLL 1
17500 { $as_echo "$as_me:$LINENO: checking for wcsdup" >&5
17501 $as_echo_n "checking for wcsdup... " >&6; }
17502 if test "${ac_cv_func_wcsdup+set}" = set; then
17503 $as_echo_n "(cached) " >&6
17505 cat >conftest.$ac_ext <<_ACEOF
17508 cat confdefs.h >>conftest.$ac_ext
17509 cat >>conftest.$ac_ext <<_ACEOF
17510 /* end confdefs.h. */
17511 /* Define wcsdup to an innocuous variant, in case <limits.h> declares wcsdup.
17512 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17513 #define wcsdup innocuous_wcsdup
17515 /* System header to define __stub macros and hopefully few prototypes,
17516 which can conflict with char wcsdup (); below.
17517 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17518 <limits.h> exists even on freestanding compilers. */
17521 # include <limits.h>
17523 # include <assert.h>
17528 /* Override any GCC internal prototype to avoid an error.
17529 Use char because int might match the return type of a GCC
17530 builtin and then its argument prototype would still apply. */
17535 /* The GNU C library defines this for functions which it implements
17536 to always fail with ENOSYS. Some functions are actually named
17537 something starting with __ and the normal name is an alias. */
17538 #if defined __stub_wcsdup || defined __stub___wcsdup
17550 rm -f conftest.$ac_objext conftest$ac_exeext
17551 if { (ac_try="$ac_link"
17552 case "(($ac_try" in
17553 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17554 *) ac_try_echo
=$ac_try;;
17556 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
17557 $as_echo "$ac_try_echo") >&5
17558 (eval "$ac_link") 2>conftest.er1
17560 grep -v '^ *+' conftest.er1
>conftest.err
17562 cat conftest.err
>&5
17563 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17564 (exit $ac_status); } && {
17565 test -z "$ac_c_werror_flag" ||
17566 test ! -s conftest.err
17567 } && test -s conftest
$ac_exeext && {
17568 test "$cross_compiling" = yes ||
17569 $as_test_x conftest
$ac_exeext
17571 ac_cv_func_wcsdup
=yes
17573 $as_echo "$as_me: failed program was:" >&5
17574 sed 's/^/| /' conftest.
$ac_ext >&5
17576 ac_cv_func_wcsdup
=no
17579 rm -rf conftest.dSYM
17580 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
17581 conftest
$ac_exeext conftest.
$ac_ext
17583 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_wcsdup" >&5
17584 $as_echo "$ac_cv_func_wcsdup" >&6; }
17585 if test "x$ac_cv_func_wcsdup" = x
""yes; then
17586 cat >>confdefs.h
<<\_ACEOF
17587 #define HAVE_WCSDUP 1
17592 { $as_echo "$as_me:$LINENO: checking for wcwidth" >&5
17593 $as_echo_n "checking for wcwidth... " >&6; }
17594 if test "${ac_cv_func_wcwidth+set}" = set; then
17595 $as_echo_n "(cached) " >&6
17597 cat >conftest.
$ac_ext <<_ACEOF
17600 cat confdefs.h
>>conftest.
$ac_ext
17601 cat >>conftest.
$ac_ext <<_ACEOF
17602 /* end confdefs.h. */
17603 /* Define wcwidth to an innocuous variant, in case <limits.h> declares wcwidth.
17604 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17605 #define wcwidth innocuous_wcwidth
17607 /* System header to define __stub macros and hopefully few prototypes,
17608 which can conflict with char wcwidth (); below.
17609 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17610 <limits.h> exists even on freestanding compilers. */
17613 # include <limits.h>
17615 # include <assert.h>
17620 /* Override any GCC internal prototype to avoid an error.
17621 Use char because int might match the return type of a GCC
17622 builtin and then its argument prototype would still apply. */
17627 /* The GNU C library defines this for functions which it implements
17628 to always fail with ENOSYS. Some functions are actually named
17629 something starting with __ and the normal name is an alias. */
17630 #if defined __stub_wcwidth || defined __stub___wcwidth
17642 rm -f conftest.
$ac_objext conftest
$ac_exeext
17643 if { (ac_try
="$ac_link"
17644 case "(($ac_try" in
17645 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17646 *) ac_try_echo=$ac_try;;
17648 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17649 $as_echo "$ac_try_echo") >&5
17650 (eval "$ac_link") 2>conftest.er1
17652 grep -v '^ *+' conftest.er1 >conftest.err
17654 cat conftest.err >&5
17655 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17656 (exit $ac_status); } && {
17657 test -z "$ac_c_werror_flag" ||
17658 test ! -s conftest.err
17659 } && test -s conftest$ac_exeext && {
17660 test "$cross_compiling" = yes ||
17661 $as_test_x conftest$ac_exeext
17663 ac_cv_func_wcwidth=yes
17665 $as_echo "$as_me: failed program was:" >&5
17666 sed 's/^/| /' conftest.$ac_ext >&5
17668 ac_cv_func_wcwidth=no
17671 rm -rf conftest.dSYM
17672 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17673 conftest$ac_exeext conftest.$ac_ext
17675 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_wcwidth" >&5
17676 $as_echo "$ac_cv_func_wcwidth" >&6; }
17677 if test "x$ac_cv_func_wcwidth" = x""yes; then
17678 cat >>confdefs.h <<\_ACEOF
17679 #define HAVE_WCWIDTH 1
17684 { $as_echo "$as_me:$LINENO: checking for wctype" >&5
17685 $as_echo_n "checking for wctype... " >&6; }
17686 if test "${ac_cv_func_wctype+set}" = set; then
17687 $as_echo_n "(cached) " >&6
17689 cat >conftest.$ac_ext <<_ACEOF
17692 cat confdefs.h >>conftest.$ac_ext
17693 cat >>conftest.$ac_ext <<_ACEOF
17694 /* end confdefs.h. */
17695 /* Define wctype to an innocuous variant, in case <limits.h> declares wctype.
17696 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17697 #define wctype innocuous_wctype
17699 /* System header to define __stub macros and hopefully few prototypes,
17700 which can conflict with char wctype (); below.
17701 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17702 <limits.h> exists even on freestanding compilers. */
17705 # include <limits.h>
17707 # include <assert.h>
17712 /* Override any GCC internal prototype to avoid an error.
17713 Use char because int might match the return type of a GCC
17714 builtin and then its argument prototype would still apply. */
17719 /* The GNU C library defines this for functions which it implements
17720 to always fail with ENOSYS. Some functions are actually named
17721 something starting with __ and the normal name is an alias. */
17722 #if defined __stub_wctype || defined __stub___wctype
17734 rm -f conftest.$ac_objext conftest$ac_exeext
17735 if { (ac_try="$ac_link"
17736 case "(($ac_try" in
17737 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17738 *) ac_try_echo
=$ac_try;;
17740 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
17741 $as_echo "$ac_try_echo") >&5
17742 (eval "$ac_link") 2>conftest.er1
17744 grep -v '^ *+' conftest.er1
>conftest.err
17746 cat conftest.err
>&5
17747 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17748 (exit $ac_status); } && {
17749 test -z "$ac_c_werror_flag" ||
17750 test ! -s conftest.err
17751 } && test -s conftest
$ac_exeext && {
17752 test "$cross_compiling" = yes ||
17753 $as_test_x conftest
$ac_exeext
17755 ac_cv_func_wctype
=yes
17757 $as_echo "$as_me: failed program was:" >&5
17758 sed 's/^/| /' conftest.
$ac_ext >&5
17760 ac_cv_func_wctype
=no
17763 rm -rf conftest.dSYM
17764 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
17765 conftest
$ac_exeext conftest.
$ac_ext
17767 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_wctype" >&5
17768 $as_echo "$ac_cv_func_wctype" >&6; }
17769 if test "x$ac_cv_func_wctype" = x
""yes; then
17770 cat >>confdefs.h
<<\_ACEOF
17771 #define HAVE_WCTYPE 1
17778 { $as_echo "$as_me:$LINENO: checking whether mbrtowc and mbstate_t are properly declared" >&5
17779 $as_echo_n "checking whether mbrtowc and mbstate_t are properly declared... " >&6; }
17780 if test "${ac_cv_func_mbrtowc+set}" = set; then
17781 $as_echo_n "(cached) " >&6
17783 cat >conftest.
$ac_ext <<_ACEOF
17786 cat confdefs.h
>>conftest.
$ac_ext
17787 cat >>conftest.
$ac_ext <<_ACEOF
17788 /* end confdefs.h. */
17794 char const s[] = "";
17797 return ! (sizeof state && (mbrtowc) (&wc, s, n, &state));
17802 rm -f conftest.
$ac_objext conftest
$ac_exeext
17803 if { (ac_try
="$ac_link"
17804 case "(($ac_try" in
17805 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17806 *) ac_try_echo=$ac_try;;
17808 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17809 $as_echo "$ac_try_echo") >&5
17810 (eval "$ac_link") 2>conftest.er1
17812 grep -v '^ *+' conftest.er1 >conftest.err
17814 cat conftest.err >&5
17815 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17816 (exit $ac_status); } && {
17817 test -z "$ac_c_werror_flag" ||
17818 test ! -s conftest.err
17819 } && test -s conftest$ac_exeext && {
17820 test "$cross_compiling" = yes ||
17821 $as_test_x conftest$ac_exeext
17823 ac_cv_func_mbrtowc=yes
17825 $as_echo "$as_me: failed program was:" >&5
17826 sed 's/^/| /' conftest.$ac_ext >&5
17828 ac_cv_func_mbrtowc=no
17831 rm -rf conftest.dSYM
17832 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17833 conftest$ac_exeext conftest.$ac_ext
17835 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_mbrtowc" >&5
17836 $as_echo "$ac_cv_func_mbrtowc" >&6; }
17837 if test $ac_cv_func_mbrtowc = yes; then
17839 cat >>confdefs.h <<\_ACEOF
17840 #define HAVE_MBRTOWC 1
17845 if test $ac_cv_func_mbrtowc = yes; then
17846 cat >>confdefs.h <<\_ACEOF
17847 #define HAVE_MBSTATE_T 1
17857 for ac_func in iswlower iswupper towlower towupper iswctype
17859 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
17860 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
17861 $as_echo_n "checking for $ac_func... " >&6; }
17862 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17863 $as_echo_n "(cached) " >&6
17865 cat >conftest.$ac_ext <<_ACEOF
17868 cat confdefs.h >>conftest.$ac_ext
17869 cat >>conftest.$ac_ext <<_ACEOF
17870 /* end confdefs.h. */
17871 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17872 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17873 #define $ac_func innocuous_$ac_func
17875 /* System header to define __stub macros and hopefully few prototypes,
17876 which can conflict with char $ac_func (); below.
17877 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17878 <limits.h> exists even on freestanding compilers. */
17881 # include <limits.h>
17883 # include <assert.h>
17888 /* Override any GCC internal prototype to avoid an error.
17889 Use char because int might match the return type of a GCC
17890 builtin and then its argument prototype would still apply. */
17895 /* The GNU C library defines this for functions which it implements
17896 to always fail with ENOSYS. Some functions are actually named
17897 something starting with __ and the normal name is an alias. */
17898 #if defined __stub_$ac_func || defined __stub___$ac_func
17905 return $ac_func ();
17910 rm -f conftest.$ac_objext conftest$ac_exeext
17911 if { (ac_try="$ac_link"
17912 case "(($ac_try" in
17913 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17914 *) ac_try_echo
=$ac_try;;
17916 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
17917 $as_echo "$ac_try_echo") >&5
17918 (eval "$ac_link") 2>conftest.er1
17920 grep -v '^ *+' conftest.er1
>conftest.err
17922 cat conftest.err
>&5
17923 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17924 (exit $ac_status); } && {
17925 test -z "$ac_c_werror_flag" ||
17926 test ! -s conftest.err
17927 } && test -s conftest
$ac_exeext && {
17928 test "$cross_compiling" = yes ||
17929 $as_test_x conftest
$ac_exeext
17931 eval "$as_ac_var=yes"
17933 $as_echo "$as_me: failed program was:" >&5
17934 sed 's/^/| /' conftest.
$ac_ext >&5
17936 eval "$as_ac_var=no"
17939 rm -rf conftest.dSYM
17940 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
17941 conftest
$ac_exeext conftest.
$ac_ext
17943 ac_res
=`eval 'as_val=${'$as_ac_var'}
17944 $as_echo "$as_val"'`
17945 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17946 $as_echo "$ac_res" >&6; }
17947 as_val
=`eval 'as_val=${'$as_ac_var'}
17948 $as_echo "$as_val"'`
17949 if test "x$as_val" = x
""yes; then
17950 cat >>confdefs.h
<<_ACEOF
17951 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17958 { $as_echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
17959 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
17960 if test "${bash_cv_langinfo_codeset+set}" = set; then
17961 $as_echo_n "(cached) " >&6
17963 cat >conftest.
$ac_ext <<_ACEOF
17966 cat confdefs.h
>>conftest.
$ac_ext
17967 cat >>conftest.
$ac_ext <<_ACEOF
17968 /* end confdefs.h. */
17969 #include <langinfo.h>
17973 char* cs = nl_langinfo(CODESET);
17978 rm -f conftest.
$ac_objext conftest
$ac_exeext
17979 if { (ac_try
="$ac_link"
17980 case "(($ac_try" in
17981 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17982 *) ac_try_echo=$ac_try;;
17984 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17985 $as_echo "$ac_try_echo") >&5
17986 (eval "$ac_link") 2>conftest.er1
17988 grep -v '^ *+' conftest.er1 >conftest.err
17990 cat conftest.err >&5
17991 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17992 (exit $ac_status); } && {
17993 test -z "$ac_c_werror_flag" ||
17994 test ! -s conftest.err
17995 } && test -s conftest$ac_exeext && {
17996 test "$cross_compiling" = yes ||
17997 $as_test_x conftest$ac_exeext
17999 bash_cv_langinfo_codeset=yes
18001 $as_echo "$as_me: failed program was:" >&5
18002 sed 's/^/| /' conftest.$ac_ext >&5
18004 bash_cv_langinfo_codeset=no
18007 rm -rf conftest.dSYM
18008 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18009 conftest$ac_exeext conftest.$ac_ext
18011 { $as_echo "$as_me:$LINENO: result: $bash_cv_langinfo_codeset" >&5
18012 $as_echo "$bash_cv_langinfo_codeset" >&6; }
18013 if test $bash_cv_langinfo_codeset = yes; then
18014 cat >>confdefs.h <<\_ACEOF
18015 #define HAVE_LANGINFO_CODESET 1
18020 { $as_echo "$as_me:$LINENO: checking for wchar_t in wchar.h" >&5
18021 $as_echo_n "checking for wchar_t in wchar.h... " >&6; }
18022 if test "${bash_cv_type_wchar_t+set}" = set; then
18023 $as_echo_n "(cached) " >&6
18025 cat >conftest.$ac_ext <<_ACEOF
18028 cat confdefs.h >>conftest.$ac_ext
18029 cat >>conftest.$ac_ext <<_ACEOF
18030 /* end confdefs.h. */
18044 rm -f conftest.$ac_objext
18045 if { (ac_try="$ac_compile"
18046 case "(($ac_try" in
18047 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18048 *) ac_try_echo
=$ac_try;;
18050 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
18051 $as_echo "$ac_try_echo") >&5
18052 (eval "$ac_compile") 2>conftest.er1
18054 grep -v '^ *+' conftest.er1
>conftest.err
18056 cat conftest.err
>&5
18057 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18058 (exit $ac_status); } && {
18059 test -z "$ac_c_werror_flag" ||
18060 test ! -s conftest.err
18061 } && test -s conftest.
$ac_objext; then
18062 bash_cv_type_wchar_t
=yes
18064 $as_echo "$as_me: failed program was:" >&5
18065 sed 's/^/| /' conftest.
$ac_ext >&5
18067 bash_cv_type_wchar_t
=no
18070 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18072 { $as_echo "$as_me:$LINENO: result: $bash_cv_type_wchar_t" >&5
18073 $as_echo "$bash_cv_type_wchar_t" >&6; }
18074 if test $bash_cv_type_wchar_t = yes; then
18076 cat >>confdefs.h
<<\_ACEOF
18077 #define HAVE_WCHAR_T 1
18082 { $as_echo "$as_me:$LINENO: checking for wctype_t in wctype.h" >&5
18083 $as_echo_n "checking for wctype_t in wctype.h... " >&6; }
18084 if test "${bash_cv_type_wctype_t+set}" = set; then
18085 $as_echo_n "(cached) " >&6
18087 cat >conftest.
$ac_ext <<_ACEOF
18090 cat confdefs.h
>>conftest.
$ac_ext
18091 cat >>conftest.
$ac_ext <<_ACEOF
18092 /* end confdefs.h. */
18093 #include <wctype.h>
18105 rm -f conftest.
$ac_objext
18106 if { (ac_try
="$ac_compile"
18107 case "(($ac_try" in
18108 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18109 *) ac_try_echo=$ac_try;;
18111 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18112 $as_echo "$ac_try_echo") >&5
18113 (eval "$ac_compile") 2>conftest.er1
18115 grep -v '^ *+' conftest.er1 >conftest.err
18117 cat conftest.err >&5
18118 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18119 (exit $ac_status); } && {
18120 test -z "$ac_c_werror_flag" ||
18121 test ! -s conftest.err
18122 } && test -s conftest.$ac_objext; then
18123 bash_cv_type_wctype_t=yes
18125 $as_echo "$as_me: failed program was:" >&5
18126 sed 's/^/| /' conftest.$ac_ext >&5
18128 bash_cv_type_wctype_t=no
18131 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18133 { $as_echo "$as_me:$LINENO: result: $bash_cv_type_wctype_t" >&5
18134 $as_echo "$bash_cv_type_wctype_t" >&6; }
18135 if test $bash_cv_type_wctype_t = yes; then
18137 cat >>confdefs.h <<\_ACEOF
18138 #define HAVE_WCTYPE_T 1
18143 { $as_echo "$as_me:$LINENO: checking for wint_t in wctype.h" >&5
18144 $as_echo_n "checking for wint_t in wctype.h... " >&6; }
18145 if test "${bash_cv_type_wint_t+set}" = set; then
18146 $as_echo_n "(cached) " >&6
18148 cat >conftest.$ac_ext <<_ACEOF
18151 cat confdefs.h >>conftest.$ac_ext
18152 cat >>conftest.$ac_ext <<_ACEOF
18153 /* end confdefs.h. */
18154 #include <wctype.h>
18166 rm -f conftest.$ac_objext
18167 if { (ac_try="$ac_compile"
18168 case "(($ac_try" in
18169 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18170 *) ac_try_echo
=$ac_try;;
18172 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
18173 $as_echo "$ac_try_echo") >&5
18174 (eval "$ac_compile") 2>conftest.er1
18176 grep -v '^ *+' conftest.er1
>conftest.err
18178 cat conftest.err
>&5
18179 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18180 (exit $ac_status); } && {
18181 test -z "$ac_c_werror_flag" ||
18182 test ! -s conftest.err
18183 } && test -s conftest.
$ac_objext; then
18184 bash_cv_type_wint_t
=yes
18186 $as_echo "$as_me: failed program was:" >&5
18187 sed 's/^/| /' conftest.
$ac_ext >&5
18189 bash_cv_type_wint_t
=no
18192 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18194 { $as_echo "$as_me:$LINENO: result: $bash_cv_type_wint_t" >&5
18195 $as_echo "$bash_cv_type_wint_t" >&6; }
18196 if test $bash_cv_type_wint_t = yes; then
18198 cat >>confdefs.h
<<\_ACEOF
18199 #define HAVE_WINT_T 1
18206 if test "$opt_static_link" != yes; then
18208 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
18209 $as_echo_n "checking for dlopen in -ldl... " >&6; }
18210 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
18211 $as_echo_n "(cached) " >&6
18213 ac_check_lib_save_LIBS
=$LIBS
18215 cat >conftest.
$ac_ext <<_ACEOF
18218 cat confdefs.h
>>conftest.
$ac_ext
18219 cat >>conftest.
$ac_ext <<_ACEOF
18220 /* end confdefs.h. */
18222 /* Override any GCC internal prototype to avoid an error.
18223 Use char because int might match the return type of a GCC
18224 builtin and then its argument prototype would still apply. */
18237 rm -f conftest.
$ac_objext conftest
$ac_exeext
18238 if { (ac_try
="$ac_link"
18239 case "(($ac_try" in
18240 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18241 *) ac_try_echo=$ac_try;;
18243 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18244 $as_echo "$ac_try_echo") >&5
18245 (eval "$ac_link") 2>conftest.er1
18247 grep -v '^ *+' conftest.er1 >conftest.err
18249 cat conftest.err >&5
18250 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18251 (exit $ac_status); } && {
18252 test -z "$ac_c_werror_flag" ||
18253 test ! -s conftest.err
18254 } && test -s conftest$ac_exeext && {
18255 test "$cross_compiling" = yes ||
18256 $as_test_x conftest$ac_exeext
18258 ac_cv_lib_dl_dlopen=yes
18260 $as_echo "$as_me: failed program was:" >&5
18261 sed 's/^/| /' conftest.$ac_ext >&5
18263 ac_cv_lib_dl_dlopen=no
18266 rm -rf conftest.dSYM
18267 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18268 conftest$ac_exeext conftest.$ac_ext
18269 LIBS=$ac_check_lib_save_LIBS
18271 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
18272 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
18273 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
18274 cat >>confdefs.h <<_ACEOF
18275 #define HAVE_LIBDL 1
18285 for ac_func in dlopen dlclose dlsym
18287 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
18288 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
18289 $as_echo_n "checking for $ac_func... " >&6; }
18290 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18291 $as_echo_n "(cached) " >&6
18293 cat >conftest.$ac_ext <<_ACEOF
18296 cat confdefs.h >>conftest.$ac_ext
18297 cat >>conftest.$ac_ext <<_ACEOF
18298 /* end confdefs.h. */
18299 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18300 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18301 #define $ac_func innocuous_$ac_func
18303 /* System header to define __stub macros and hopefully few prototypes,
18304 which can conflict with char $ac_func (); below.
18305 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18306 <limits.h> exists even on freestanding compilers. */
18309 # include <limits.h>
18311 # include <assert.h>
18316 /* Override any GCC internal prototype to avoid an error.
18317 Use char because int might match the return type of a GCC
18318 builtin and then its argument prototype would still apply. */
18323 /* The GNU C library defines this for functions which it implements
18324 to always fail with ENOSYS. Some functions are actually named
18325 something starting with __ and the normal name is an alias. */
18326 #if defined __stub_$ac_func || defined __stub___$ac_func
18333 return $ac_func ();
18338 rm -f conftest.$ac_objext conftest$ac_exeext
18339 if { (ac_try="$ac_link"
18340 case "(($ac_try" in
18341 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18342 *) ac_try_echo
=$ac_try;;
18344 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
18345 $as_echo "$ac_try_echo") >&5
18346 (eval "$ac_link") 2>conftest.er1
18348 grep -v '^ *+' conftest.er1
>conftest.err
18350 cat conftest.err
>&5
18351 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18352 (exit $ac_status); } && {
18353 test -z "$ac_c_werror_flag" ||
18354 test ! -s conftest.err
18355 } && test -s conftest
$ac_exeext && {
18356 test "$cross_compiling" = yes ||
18357 $as_test_x conftest
$ac_exeext
18359 eval "$as_ac_var=yes"
18361 $as_echo "$as_me: failed program was:" >&5
18362 sed 's/^/| /' conftest.
$ac_ext >&5
18364 eval "$as_ac_var=no"
18367 rm -rf conftest.dSYM
18368 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
18369 conftest
$ac_exeext conftest.
$ac_ext
18371 ac_res
=`eval 'as_val=${'$as_ac_var'}
18372 $as_echo "$as_val"'`
18373 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18374 $as_echo "$ac_res" >&6; }
18375 as_val
=`eval 'as_val=${'$as_ac_var'}
18376 $as_echo "$as_val"'`
18377 if test "x$as_val" = x
""yes; then
18378 cat >>confdefs.h
<<_ACEOF
18379 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18387 { $as_echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
18388 $as_echo_n "checking whether sys_siglist is declared... " >&6; }
18389 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
18390 $as_echo_n "(cached) " >&6
18392 cat >conftest.
$ac_ext <<_ACEOF
18395 cat confdefs.h
>>conftest.
$ac_ext
18396 cat >>conftest.
$ac_ext <<_ACEOF
18397 /* end confdefs.h. */
18398 #include <signal.h>
18399 /* NetBSD declares sys_siglist in unistd.h. */
18400 #ifdef HAVE_UNISTD_H
18401 # include <unistd.h>
18408 #ifndef sys_siglist
18409 (void) sys_siglist;
18416 rm -f conftest.
$ac_objext
18417 if { (ac_try
="$ac_compile"
18418 case "(($ac_try" in
18419 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18420 *) ac_try_echo=$ac_try;;
18422 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18423 $as_echo "$ac_try_echo") >&5
18424 (eval "$ac_compile") 2>conftest.er1
18426 grep -v '^ *+' conftest.er1 >conftest.err
18428 cat conftest.err >&5
18429 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18430 (exit $ac_status); } && {
18431 test -z "$ac_c_werror_flag" ||
18432 test ! -s conftest.err
18433 } && test -s conftest.$ac_objext; then
18434 ac_cv_have_decl_sys_siglist=yes
18436 $as_echo "$as_me: failed program was:" >&5
18437 sed 's/^/| /' conftest.$ac_ext >&5
18439 ac_cv_have_decl_sys_siglist=no
18442 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18444 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
18445 $as_echo "$ac_cv_have_decl_sys_siglist" >&6; }
18446 if test "x$ac_cv_have_decl_sys_siglist" = x""yes; then
18448 cat >>confdefs.h <<_ACEOF
18449 #define HAVE_DECL_SYS_SIGLIST 1
18454 cat >>confdefs.h <<_ACEOF
18455 #define HAVE_DECL_SYS_SIGLIST 0
18464 if test "$ac_cv_func_inet_aton" != 'yes'; then
18466 { $as_echo "$as_me:$LINENO: checking for inet_aton" >&5
18467 $as_echo_n "checking for inet_aton... " >&6; }
18468 if test "${bash_cv_func_inet_aton+set}" = set; then
18469 $as_echo_n "(cached) " >&6
18471 cat >conftest.$ac_ext <<_ACEOF
18474 cat confdefs.h >>conftest.$ac_ext
18475 cat >>conftest.$ac_ext <<_ACEOF
18476 /* end confdefs.h. */
18478 #include <sys/types.h>
18479 #include <netinet/in.h>
18480 #include <arpa/inet.h>
18485 inet_aton("127.0.0.1", &ap);
18490 rm -f conftest.$ac_objext conftest$ac_exeext
18491 if { (ac_try="$ac_link"
18492 case "(($ac_try" in
18493 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18494 *) ac_try_echo
=$ac_try;;
18496 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
18497 $as_echo "$ac_try_echo") >&5
18498 (eval "$ac_link") 2>conftest.er1
18500 grep -v '^ *+' conftest.er1
>conftest.err
18502 cat conftest.err
>&5
18503 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18504 (exit $ac_status); } && {
18505 test -z "$ac_c_werror_flag" ||
18506 test ! -s conftest.err
18507 } && test -s conftest
$ac_exeext && {
18508 test "$cross_compiling" = yes ||
18509 $as_test_x conftest
$ac_exeext
18511 bash_cv_func_inet_aton
=yes
18513 $as_echo "$as_me: failed program was:" >&5
18514 sed 's/^/| /' conftest.
$ac_ext >&5
18516 bash_cv_func_inet_aton
=no
18519 rm -rf conftest.dSYM
18520 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
18521 conftest
$ac_exeext conftest.
$ac_ext
18523 { $as_echo "$as_me:$LINENO: result: $bash_cv_func_inet_aton" >&5
18524 $as_echo "$bash_cv_func_inet_aton" >&6; }
18525 if test $bash_cv_func_inet_aton = yes; then
18526 cat >>confdefs.h
<<\_ACEOF
18527 #define HAVE_INET_ATON 1
18531 case " $LIBOBJS " in
18532 *" inet_aton.$ac_objext "* ) ;;
18533 *) LIBOBJS
="$LIBOBJS inet_aton.$ac_objext"
18543 { $as_echo "$as_me:$LINENO: checking for getpwent in -lsun" >&5
18544 $as_echo_n "checking for getpwent in -lsun... " >&6; }
18545 if test "${ac_cv_lib_sun_getpwent+set}" = set; then
18546 $as_echo_n "(cached) " >&6
18548 ac_check_lib_save_LIBS
=$LIBS
18550 cat >conftest.
$ac_ext <<_ACEOF
18553 cat confdefs.h
>>conftest.
$ac_ext
18554 cat >>conftest.
$ac_ext <<_ACEOF
18555 /* end confdefs.h. */
18557 /* Override any GCC internal prototype to avoid an error.
18558 Use char because int might match the return type of a GCC
18559 builtin and then its argument prototype would still apply. */
18567 return getpwent ();
18572 rm -f conftest.
$ac_objext conftest
$ac_exeext
18573 if { (ac_try
="$ac_link"
18574 case "(($ac_try" in
18575 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18576 *) ac_try_echo=$ac_try;;
18578 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18579 $as_echo "$ac_try_echo") >&5
18580 (eval "$ac_link") 2>conftest.er1
18582 grep -v '^ *+' conftest.er1 >conftest.err
18584 cat conftest.err >&5
18585 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18586 (exit $ac_status); } && {
18587 test -z "$ac_c_werror_flag" ||
18588 test ! -s conftest.err
18589 } && test -s conftest$ac_exeext && {
18590 test "$cross_compiling" = yes ||
18591 $as_test_x conftest$ac_exeext
18593 ac_cv_lib_sun_getpwent=yes
18595 $as_echo "$as_me: failed program was:" >&5
18596 sed 's/^/| /' conftest.$ac_ext >&5
18598 ac_cv_lib_sun_getpwent=no
18601 rm -rf conftest.dSYM
18602 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18603 conftest$ac_exeext conftest.$ac_ext
18604 LIBS=$ac_check_lib_save_LIBS
18606 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getpwent" >&5
18607 $as_echo "$ac_cv_lib_sun_getpwent" >&6; }
18608 if test "x$ac_cv_lib_sun_getpwent" = x""yes; then
18609 cat >>confdefs.h <<_ACEOF
18610 #define HAVE_LIBSUN 1
18619 if test "$ac_cv_func_getpeername" = no; then
18621 if test "X$bash_cv_have_socklib" = "X"; then
18624 { $as_echo "$as_me:$LINENO: checking for socket library" >&5
18625 $as_echo_n "checking for socket library... " >&6; }
18628 if test "${bash_cv_have_socklib+set}" = set; then
18629 $as_echo_n "(cached) " >&6
18631 { $as_echo "$as_me:$LINENO: checking for getpeername in -lsocket" >&5
18632 $as_echo_n "checking for getpeername in -lsocket... " >&6; }
18633 if test "${ac_cv_lib_socket_getpeername+set}" = set; then
18634 $as_echo_n "(cached) " >&6
18636 ac_check_lib_save_LIBS=$LIBS
18637 LIBS="-lsocket -lnsl $LIBS"
18638 cat >conftest.$ac_ext <<_ACEOF
18641 cat confdefs.h >>conftest.$ac_ext
18642 cat >>conftest.$ac_ext <<_ACEOF
18643 /* end confdefs.h. */
18645 /* Override any GCC internal prototype to avoid an error.
18646 Use char because int might match the return type of a GCC
18647 builtin and then its argument prototype would still apply. */
18651 char getpeername ();
18655 return getpeername ();
18660 rm -f conftest.$ac_objext conftest$ac_exeext
18661 if { (ac_try="$ac_link"
18662 case "(($ac_try" in
18663 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18664 *) ac_try_echo
=$ac_try;;
18666 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
18667 $as_echo "$ac_try_echo") >&5
18668 (eval "$ac_link") 2>conftest.er1
18670 grep -v '^ *+' conftest.er1
>conftest.err
18672 cat conftest.err
>&5
18673 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18674 (exit $ac_status); } && {
18675 test -z "$ac_c_werror_flag" ||
18676 test ! -s conftest.err
18677 } && test -s conftest
$ac_exeext && {
18678 test "$cross_compiling" = yes ||
18679 $as_test_x conftest
$ac_exeext
18681 ac_cv_lib_socket_getpeername
=yes
18683 $as_echo "$as_me: failed program was:" >&5
18684 sed 's/^/| /' conftest.
$ac_ext >&5
18686 ac_cv_lib_socket_getpeername
=no
18689 rm -rf conftest.dSYM
18690 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
18691 conftest
$ac_exeext conftest.
$ac_ext
18692 LIBS
=$ac_check_lib_save_LIBS
18694 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_socket_getpeername" >&5
18695 $as_echo "$ac_cv_lib_socket_getpeername" >&6; }
18696 if test "x$ac_cv_lib_socket_getpeername" = x
""yes; then
18697 bash_cv_have_socklib
=yes
18699 bash_cv_have_socklib
=no
18704 if test "X$_bash_needmsg" = Xyes
; then
18705 { $as_echo "$as_me:$LINENO: result: $bash_cv_have_socklib" >&5
18706 $as_echo "$bash_cv_have_socklib" >&6; }
18709 if test $bash_cv_have_socklib = yes; then
18710 # check for libnsl, add it to LIBS if present
18711 if test "X$bash_cv_have_libnsl" = "X"; then
18714 { $as_echo "$as_me:$LINENO: checking for libnsl" >&5
18715 $as_echo_n "checking for libnsl... " >&6; }
18718 if test "${bash_cv_have_libnsl+set}" = set; then
18719 $as_echo_n "(cached) " >&6
18721 { $as_echo "$as_me:$LINENO: checking for t_open in -lnsl" >&5
18722 $as_echo_n "checking for t_open in -lnsl... " >&6; }
18723 if test "${ac_cv_lib_nsl_t_open+set}" = set; then
18724 $as_echo_n "(cached) " >&6
18726 ac_check_lib_save_LIBS
=$LIBS
18728 cat >conftest.
$ac_ext <<_ACEOF
18731 cat confdefs.h
>>conftest.
$ac_ext
18732 cat >>conftest.
$ac_ext <<_ACEOF
18733 /* end confdefs.h. */
18735 /* Override any GCC internal prototype to avoid an error.
18736 Use char because int might match the return type of a GCC
18737 builtin and then its argument prototype would still apply. */
18750 rm -f conftest.
$ac_objext conftest
$ac_exeext
18751 if { (ac_try
="$ac_link"
18752 case "(($ac_try" in
18753 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18754 *) ac_try_echo=$ac_try;;
18756 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18757 $as_echo "$ac_try_echo") >&5
18758 (eval "$ac_link") 2>conftest.er1
18760 grep -v '^ *+' conftest.er1 >conftest.err
18762 cat conftest.err >&5
18763 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18764 (exit $ac_status); } && {
18765 test -z "$ac_c_werror_flag" ||
18766 test ! -s conftest.err
18767 } && test -s conftest$ac_exeext && {
18768 test "$cross_compiling" = yes ||
18769 $as_test_x conftest$ac_exeext
18771 ac_cv_lib_nsl_t_open=yes
18773 $as_echo "$as_me: failed program was:" >&5
18774 sed 's/^/| /' conftest.$ac_ext >&5
18776 ac_cv_lib_nsl_t_open=no
18779 rm -rf conftest.dSYM
18780 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18781 conftest$ac_exeext conftest.$ac_ext
18782 LIBS=$ac_check_lib_save_LIBS
18784 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_t_open" >&5
18785 $as_echo "$ac_cv_lib_nsl_t_open" >&6; }
18786 if test "x$ac_cv_lib_nsl_t_open" = x""yes; then
18787 bash_cv_have_libnsl=yes
18789 bash_cv_have_libnsl=no
18794 if test "X$_bash_needmsg" = Xyes; then
18795 { $as_echo "$as_me:$LINENO: result: $bash_cv_have_libnsl" >&5
18796 $as_echo "$bash_cv_have_libnsl" >&6; }
18799 if test $bash_cv_have_libnsl = yes; then
18800 LIBS="-lsocket -lnsl $LIBS"
18802 LIBS="-lsocket $LIBS"
18804 cat >>confdefs.h <<\_ACEOF
18805 #define HAVE_LIBSOCKET 1
18808 cat >>confdefs.h <<\_ACEOF
18809 #define HAVE_GETPEERNAME 1
18815 if test "$ac_cv_func_gethostbyname" = no; then
18816 if test "X$bash_cv_have_gethostbyname" = "X"; then
18819 { $as_echo "$as_me:$LINENO: checking for gethostbyname in socket library" >&5
18820 $as_echo_n "checking for gethostbyname in socket library... " >&6; }
18823 if test "${bash_cv_have_gethostbyname+set}" = set; then
18824 $as_echo_n "(cached) " >&6
18826 cat >conftest.$ac_ext <<_ACEOF
18829 cat confdefs.h >>conftest.$ac_ext
18830 cat >>conftest.$ac_ext <<_ACEOF
18831 /* end confdefs.h. */
18836 struct hostent *hp;
18837 hp = gethostbyname("localhost");
18843 rm -f conftest.$ac_objext conftest$ac_exeext
18844 if { (ac_try="$ac_link"
18845 case "(($ac_try" in
18846 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18847 *) ac_try_echo
=$ac_try;;
18849 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
18850 $as_echo "$ac_try_echo") >&5
18851 (eval "$ac_link") 2>conftest.er1
18853 grep -v '^ *+' conftest.er1
>conftest.err
18855 cat conftest.err
>&5
18856 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18857 (exit $ac_status); } && {
18858 test -z "$ac_c_werror_flag" ||
18859 test ! -s conftest.err
18860 } && test -s conftest
$ac_exeext && {
18861 test "$cross_compiling" = yes ||
18862 $as_test_x conftest
$ac_exeext
18864 bash_cv_have_gethostbyname
=yes
18866 $as_echo "$as_me: failed program was:" >&5
18867 sed 's/^/| /' conftest.
$ac_ext >&5
18869 bash_cv_have_gethostbyname
=no
18872 rm -rf conftest.dSYM
18873 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
18874 conftest
$ac_exeext conftest.
$ac_ext
18878 if test "X$_bash_needmsg" = Xyes
; then
18879 { $as_echo "$as_me:$LINENO: checking for gethostbyname in socket library" >&5
18880 $as_echo_n "checking for gethostbyname in socket library... " >&6; }
18882 { $as_echo "$as_me:$LINENO: result: $bash_cv_have_gethostbyname" >&5
18883 $as_echo "$bash_cv_have_gethostbyname" >&6; }
18884 if test "$bash_cv_have_gethostbyname" = yes; then
18885 cat >>confdefs.h
<<\_ACEOF
18886 #define HAVE_GETHOSTBYNAME 1
18893 { $as_echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
18894 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
18895 if test "${ac_cv_type_uid_t+set}" = set; then
18896 $as_echo_n "(cached) " >&6
18898 cat >conftest.
$ac_ext <<_ACEOF
18901 cat confdefs.h
>>conftest.
$ac_ext
18902 cat >>conftest.
$ac_ext <<_ACEOF
18903 /* end confdefs.h. */
18904 #include <sys/types.h>
18907 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18908 $EGREP "uid_t" >/dev
/null
2>&1; then
18909 ac_cv_type_uid_t
=yes
18911 ac_cv_type_uid_t
=no
18916 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
18917 $as_echo "$ac_cv_type_uid_t" >&6; }
18918 if test $ac_cv_type_uid_t = no
; then
18920 cat >>confdefs.h
<<\_ACEOF
18925 cat >>confdefs.h
<<\_ACEOF
18931 { $as_echo "$as_me:$LINENO: checking type of array argument to getgroups" >&5
18932 $as_echo_n "checking type of array argument to getgroups... " >&6; }
18933 if test "${ac_cv_type_getgroups+set}" = set; then
18934 $as_echo_n "(cached) " >&6
18936 if test "$cross_compiling" = yes; then
18937 ac_cv_type_getgroups
=cross
18939 cat >conftest.
$ac_ext <<_ACEOF
18942 cat confdefs.h
>>conftest.
$ac_ext
18943 cat >>conftest.
$ac_ext <<_ACEOF
18944 /* end confdefs.h. */
18945 /* Thanks to Mike Rendell for this test. */
18946 $ac_includes_default
18949 #define MAX(x, y) ((x) > (y) ? (x) : (y))
18954 gid_t gidset[NGID];
18956 union { gid_t gval; long int lval; } val;
18959 for (i = 0; i < NGID; i++)
18960 gidset[i] = val.gval;
18961 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
18963 /* Exit non-zero if getgroups seems to require an array of ints. This
18964 happens when gid_t is short int but getgroups modifies an array
18966 return n > 0 && gidset[n] != val.gval;
18969 rm -f conftest
$ac_exeext
18970 if { (ac_try
="$ac_link"
18971 case "(($ac_try" in
18972 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18973 *) ac_try_echo=$ac_try;;
18975 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18976 $as_echo "$ac_try_echo") >&5
18977 (eval "$ac_link") 2>&5
18979 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18980 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18981 { (case "(($ac_try" in
18982 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18983 *) ac_try_echo
=$ac_try;;
18985 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
18986 $as_echo "$ac_try_echo") >&5
18987 (eval "$ac_try") 2>&5
18989 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18990 (exit $ac_status); }; }; then
18991 ac_cv_type_getgroups
=gid_t
18993 $as_echo "$as_me: program exited with status $ac_status" >&5
18994 $as_echo "$as_me: failed program was:" >&5
18995 sed 's/^/| /' conftest.
$ac_ext >&5
18997 ( exit $ac_status )
18998 ac_cv_type_getgroups
=int
19000 rm -rf conftest.dSYM
19001 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
19005 if test $ac_cv_type_getgroups = cross
; then
19006 cat >conftest.
$ac_ext <<_ACEOF
19009 cat confdefs.h
>>conftest.
$ac_ext
19010 cat >>conftest.
$ac_ext <<_ACEOF
19011 /* end confdefs.h. */
19012 #include <unistd.h>
19015 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19016 $EGREP "getgroups.*int.*gid_t" >/dev
/null
2>&1; then
19017 ac_cv_type_getgroups
=gid_t
19019 ac_cv_type_getgroups
=int
19025 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_getgroups" >&5
19026 $as_echo "$ac_cv_type_getgroups" >&6; }
19028 cat >>confdefs.h
<<_ACEOF
19029 #define GETGROUPS_T $ac_cv_type_getgroups
19033 { $as_echo "$as_me:$LINENO: checking for off_t" >&5
19034 $as_echo_n "checking for off_t... " >&6; }
19035 if test "${ac_cv_type_off_t+set}" = set; then
19036 $as_echo_n "(cached) " >&6
19038 ac_cv_type_off_t
=no
19039 cat >conftest.
$ac_ext <<_ACEOF
19042 cat confdefs.h
>>conftest.
$ac_ext
19043 cat >>conftest.
$ac_ext <<_ACEOF
19044 /* end confdefs.h. */
19045 $ac_includes_default
19049 if (sizeof (off_t))
19055 rm -f conftest.
$ac_objext
19056 if { (ac_try
="$ac_compile"
19057 case "(($ac_try" in
19058 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19059 *) ac_try_echo=$ac_try;;
19061 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19062 $as_echo "$ac_try_echo") >&5
19063 (eval "$ac_compile") 2>conftest.er1
19065 grep -v '^ *+' conftest.er1 >conftest.err
19067 cat conftest.err >&5
19068 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19069 (exit $ac_status); } && {
19070 test -z "$ac_c_werror_flag" ||
19071 test ! -s conftest.err
19072 } && test -s conftest.$ac_objext; then
19073 cat >conftest.$ac_ext <<_ACEOF
19076 cat confdefs.h >>conftest.$ac_ext
19077 cat >>conftest.$ac_ext <<_ACEOF
19078 /* end confdefs.h. */
19079 $ac_includes_default
19083 if (sizeof ((off_t)))
19089 rm -f conftest.$ac_objext
19090 if { (ac_try="$ac_compile"
19091 case "(($ac_try" in
19092 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19093 *) ac_try_echo
=$ac_try;;
19095 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
19096 $as_echo "$ac_try_echo") >&5
19097 (eval "$ac_compile") 2>conftest.er1
19099 grep -v '^ *+' conftest.er1
>conftest.err
19101 cat conftest.err
>&5
19102 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19103 (exit $ac_status); } && {
19104 test -z "$ac_c_werror_flag" ||
19105 test ! -s conftest.err
19106 } && test -s conftest.
$ac_objext; then
19109 $as_echo "$as_me: failed program was:" >&5
19110 sed 's/^/| /' conftest.
$ac_ext >&5
19112 ac_cv_type_off_t
=yes
19115 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19117 $as_echo "$as_me: failed program was:" >&5
19118 sed 's/^/| /' conftest.
$ac_ext >&5
19123 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19125 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
19126 $as_echo "$ac_cv_type_off_t" >&6; }
19127 if test "x$ac_cv_type_off_t" = x
""yes; then
19131 cat >>confdefs.h
<<_ACEOF
19132 #define off_t long int
19137 { $as_echo "$as_me:$LINENO: checking for mode_t" >&5
19138 $as_echo_n "checking for mode_t... " >&6; }
19139 if test "${ac_cv_type_mode_t+set}" = set; then
19140 $as_echo_n "(cached) " >&6
19142 ac_cv_type_mode_t
=no
19143 cat >conftest.
$ac_ext <<_ACEOF
19146 cat confdefs.h
>>conftest.
$ac_ext
19147 cat >>conftest.
$ac_ext <<_ACEOF
19148 /* end confdefs.h. */
19149 $ac_includes_default
19153 if (sizeof (mode_t))
19159 rm -f conftest.
$ac_objext
19160 if { (ac_try
="$ac_compile"
19161 case "(($ac_try" in
19162 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19163 *) ac_try_echo=$ac_try;;
19165 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19166 $as_echo "$ac_try_echo") >&5
19167 (eval "$ac_compile") 2>conftest.er1
19169 grep -v '^ *+' conftest.er1 >conftest.err
19171 cat conftest.err >&5
19172 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19173 (exit $ac_status); } && {
19174 test -z "$ac_c_werror_flag" ||
19175 test ! -s conftest.err
19176 } && test -s conftest.$ac_objext; then
19177 cat >conftest.$ac_ext <<_ACEOF
19180 cat confdefs.h >>conftest.$ac_ext
19181 cat >>conftest.$ac_ext <<_ACEOF
19182 /* end confdefs.h. */
19183 $ac_includes_default
19187 if (sizeof ((mode_t)))
19193 rm -f conftest.$ac_objext
19194 if { (ac_try="$ac_compile"
19195 case "(($ac_try" in
19196 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19197 *) ac_try_echo
=$ac_try;;
19199 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
19200 $as_echo "$ac_try_echo") >&5
19201 (eval "$ac_compile") 2>conftest.er1
19203 grep -v '^ *+' conftest.er1
>conftest.err
19205 cat conftest.err
>&5
19206 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19207 (exit $ac_status); } && {
19208 test -z "$ac_c_werror_flag" ||
19209 test ! -s conftest.err
19210 } && test -s conftest.
$ac_objext; then
19213 $as_echo "$as_me: failed program was:" >&5
19214 sed 's/^/| /' conftest.
$ac_ext >&5
19216 ac_cv_type_mode_t
=yes
19219 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19221 $as_echo "$as_me: failed program was:" >&5
19222 sed 's/^/| /' conftest.
$ac_ext >&5
19227 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19229 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
19230 $as_echo "$ac_cv_type_mode_t" >&6; }
19231 if test "x$ac_cv_type_mode_t" = x
""yes; then
19235 cat >>confdefs.h
<<_ACEOF
19241 { $as_echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
19242 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
19243 if test "${ac_cv_type_uid_t+set}" = set; then
19244 $as_echo_n "(cached) " >&6
19246 cat >conftest.
$ac_ext <<_ACEOF
19249 cat confdefs.h
>>conftest.
$ac_ext
19250 cat >>conftest.
$ac_ext <<_ACEOF
19251 /* end confdefs.h. */
19252 #include <sys/types.h>
19255 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19256 $EGREP "uid_t" >/dev
/null
2>&1; then
19257 ac_cv_type_uid_t
=yes
19259 ac_cv_type_uid_t
=no
19264 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
19265 $as_echo "$ac_cv_type_uid_t" >&6; }
19266 if test $ac_cv_type_uid_t = no
; then
19268 cat >>confdefs.h
<<\_ACEOF
19273 cat >>confdefs.h
<<\_ACEOF
19279 { $as_echo "$as_me:$LINENO: checking for pid_t" >&5
19280 $as_echo_n "checking for pid_t... " >&6; }
19281 if test "${ac_cv_type_pid_t+set}" = set; then
19282 $as_echo_n "(cached) " >&6
19284 ac_cv_type_pid_t
=no
19285 cat >conftest.
$ac_ext <<_ACEOF
19288 cat confdefs.h
>>conftest.
$ac_ext
19289 cat >>conftest.
$ac_ext <<_ACEOF
19290 /* end confdefs.h. */
19291 $ac_includes_default
19295 if (sizeof (pid_t))
19301 rm -f conftest.
$ac_objext
19302 if { (ac_try
="$ac_compile"
19303 case "(($ac_try" in
19304 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19305 *) ac_try_echo=$ac_try;;
19307 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19308 $as_echo "$ac_try_echo") >&5
19309 (eval "$ac_compile") 2>conftest.er1
19311 grep -v '^ *+' conftest.er1 >conftest.err
19313 cat conftest.err >&5
19314 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19315 (exit $ac_status); } && {
19316 test -z "$ac_c_werror_flag" ||
19317 test ! -s conftest.err
19318 } && test -s conftest.$ac_objext; then
19319 cat >conftest.$ac_ext <<_ACEOF
19322 cat confdefs.h >>conftest.$ac_ext
19323 cat >>conftest.$ac_ext <<_ACEOF
19324 /* end confdefs.h. */
19325 $ac_includes_default
19329 if (sizeof ((pid_t)))
19335 rm -f conftest.$ac_objext
19336 if { (ac_try="$ac_compile"
19337 case "(($ac_try" in
19338 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19339 *) ac_try_echo
=$ac_try;;
19341 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
19342 $as_echo "$ac_try_echo") >&5
19343 (eval "$ac_compile") 2>conftest.er1
19345 grep -v '^ *+' conftest.er1
>conftest.err
19347 cat conftest.err
>&5
19348 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19349 (exit $ac_status); } && {
19350 test -z "$ac_c_werror_flag" ||
19351 test ! -s conftest.err
19352 } && test -s conftest.
$ac_objext; then
19355 $as_echo "$as_me: failed program was:" >&5
19356 sed 's/^/| /' conftest.
$ac_ext >&5
19358 ac_cv_type_pid_t
=yes
19361 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19363 $as_echo "$as_me: failed program was:" >&5
19364 sed 's/^/| /' conftest.
$ac_ext >&5
19369 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19371 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
19372 $as_echo "$ac_cv_type_pid_t" >&6; }
19373 if test "x$ac_cv_type_pid_t" = x
""yes; then
19377 cat >>confdefs.h
<<_ACEOF
19383 { $as_echo "$as_me:$LINENO: checking for size_t" >&5
19384 $as_echo_n "checking for size_t... " >&6; }
19385 if test "${ac_cv_type_size_t+set}" = set; then
19386 $as_echo_n "(cached) " >&6
19388 ac_cv_type_size_t
=no
19389 cat >conftest.
$ac_ext <<_ACEOF
19392 cat confdefs.h
>>conftest.
$ac_ext
19393 cat >>conftest.
$ac_ext <<_ACEOF
19394 /* end confdefs.h. */
19395 $ac_includes_default
19399 if (sizeof (size_t))
19405 rm -f conftest.
$ac_objext
19406 if { (ac_try
="$ac_compile"
19407 case "(($ac_try" in
19408 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19409 *) ac_try_echo=$ac_try;;
19411 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19412 $as_echo "$ac_try_echo") >&5
19413 (eval "$ac_compile") 2>conftest.er1
19415 grep -v '^ *+' conftest.er1 >conftest.err
19417 cat conftest.err >&5
19418 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19419 (exit $ac_status); } && {
19420 test -z "$ac_c_werror_flag" ||
19421 test ! -s conftest.err
19422 } && test -s conftest.$ac_objext; then
19423 cat >conftest.$ac_ext <<_ACEOF
19426 cat confdefs.h >>conftest.$ac_ext
19427 cat >>conftest.$ac_ext <<_ACEOF
19428 /* end confdefs.h. */
19429 $ac_includes_default
19433 if (sizeof ((size_t)))
19439 rm -f conftest.$ac_objext
19440 if { (ac_try="$ac_compile"
19441 case "(($ac_try" in
19442 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19443 *) ac_try_echo
=$ac_try;;
19445 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
19446 $as_echo "$ac_try_echo") >&5
19447 (eval "$ac_compile") 2>conftest.er1
19449 grep -v '^ *+' conftest.er1
>conftest.err
19451 cat conftest.err
>&5
19452 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19453 (exit $ac_status); } && {
19454 test -z "$ac_c_werror_flag" ||
19455 test ! -s conftest.err
19456 } && test -s conftest.
$ac_objext; then
19459 $as_echo "$as_me: failed program was:" >&5
19460 sed 's/^/| /' conftest.
$ac_ext >&5
19462 ac_cv_type_size_t
=yes
19465 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19467 $as_echo "$as_me: failed program was:" >&5
19468 sed 's/^/| /' conftest.
$ac_ext >&5
19473 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19475 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
19476 $as_echo "$ac_cv_type_size_t" >&6; }
19477 if test "x$ac_cv_type_size_t" = x
""yes; then
19481 cat >>confdefs.h
<<_ACEOF
19482 #define size_t unsigned int
19487 { $as_echo "$as_me:$LINENO: checking for ssize_t" >&5
19488 $as_echo_n "checking for ssize_t... " >&6; }
19489 if test "${ac_cv_type_ssize_t+set}" = set; then
19490 $as_echo_n "(cached) " >&6
19492 ac_cv_type_ssize_t
=no
19493 cat >conftest.
$ac_ext <<_ACEOF
19496 cat confdefs.h
>>conftest.
$ac_ext
19497 cat >>conftest.
$ac_ext <<_ACEOF
19498 /* end confdefs.h. */
19499 $ac_includes_default
19503 if (sizeof (ssize_t))
19509 rm -f conftest.
$ac_objext
19510 if { (ac_try
="$ac_compile"
19511 case "(($ac_try" in
19512 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19513 *) ac_try_echo=$ac_try;;
19515 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19516 $as_echo "$ac_try_echo") >&5
19517 (eval "$ac_compile") 2>conftest.er1
19519 grep -v '^ *+' conftest.er1 >conftest.err
19521 cat conftest.err >&5
19522 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19523 (exit $ac_status); } && {
19524 test -z "$ac_c_werror_flag" ||
19525 test ! -s conftest.err
19526 } && test -s conftest.$ac_objext; then
19527 cat >conftest.$ac_ext <<_ACEOF
19530 cat confdefs.h >>conftest.$ac_ext
19531 cat >>conftest.$ac_ext <<_ACEOF
19532 /* end confdefs.h. */
19533 $ac_includes_default
19537 if (sizeof ((ssize_t)))
19543 rm -f conftest.$ac_objext
19544 if { (ac_try="$ac_compile"
19545 case "(($ac_try" in
19546 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19547 *) ac_try_echo
=$ac_try;;
19549 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
19550 $as_echo "$ac_try_echo") >&5
19551 (eval "$ac_compile") 2>conftest.er1
19553 grep -v '^ *+' conftest.er1
>conftest.err
19555 cat conftest.err
>&5
19556 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19557 (exit $ac_status); } && {
19558 test -z "$ac_c_werror_flag" ||
19559 test ! -s conftest.err
19560 } && test -s conftest.
$ac_objext; then
19563 $as_echo "$as_me: failed program was:" >&5
19564 sed 's/^/| /' conftest.
$ac_ext >&5
19566 ac_cv_type_ssize_t
=yes
19569 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19571 $as_echo "$as_me: failed program was:" >&5
19572 sed 's/^/| /' conftest.
$ac_ext >&5
19577 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19579 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
19580 $as_echo "$ac_cv_type_ssize_t" >&6; }
19581 if test "x$ac_cv_type_ssize_t" = x
""yes; then
19585 cat >>confdefs.h
<<_ACEOF
19586 #define ssize_t int
19591 { $as_echo "$as_me:$LINENO: checking for time_t" >&5
19592 $as_echo_n "checking for time_t... " >&6; }
19593 if test "${ac_cv_type_time_t+set}" = set; then
19594 $as_echo_n "(cached) " >&6
19596 ac_cv_type_time_t
=no
19597 cat >conftest.
$ac_ext <<_ACEOF
19600 cat confdefs.h
>>conftest.
$ac_ext
19601 cat >>conftest.
$ac_ext <<_ACEOF
19602 /* end confdefs.h. */
19603 $ac_includes_default
19607 if (sizeof (time_t))
19613 rm -f conftest.
$ac_objext
19614 if { (ac_try
="$ac_compile"
19615 case "(($ac_try" in
19616 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19617 *) ac_try_echo=$ac_try;;
19619 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19620 $as_echo "$ac_try_echo") >&5
19621 (eval "$ac_compile") 2>conftest.er1
19623 grep -v '^ *+' conftest.er1 >conftest.err
19625 cat conftest.err >&5
19626 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19627 (exit $ac_status); } && {
19628 test -z "$ac_c_werror_flag" ||
19629 test ! -s conftest.err
19630 } && test -s conftest.$ac_objext; then
19631 cat >conftest.$ac_ext <<_ACEOF
19634 cat confdefs.h >>conftest.$ac_ext
19635 cat >>conftest.$ac_ext <<_ACEOF
19636 /* end confdefs.h. */
19637 $ac_includes_default
19641 if (sizeof ((time_t)))
19647 rm -f conftest.$ac_objext
19648 if { (ac_try="$ac_compile"
19649 case "(($ac_try" in
19650 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19651 *) ac_try_echo
=$ac_try;;
19653 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
19654 $as_echo "$ac_try_echo") >&5
19655 (eval "$ac_compile") 2>conftest.er1
19657 grep -v '^ *+' conftest.er1
>conftest.err
19659 cat conftest.err
>&5
19660 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19661 (exit $ac_status); } && {
19662 test -z "$ac_c_werror_flag" ||
19663 test ! -s conftest.err
19664 } && test -s conftest.
$ac_objext; then
19667 $as_echo "$as_me: failed program was:" >&5
19668 sed 's/^/| /' conftest.
$ac_ext >&5
19670 ac_cv_type_time_t
=yes
19673 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19675 $as_echo "$as_me: failed program was:" >&5
19676 sed 's/^/| /' conftest.
$ac_ext >&5
19681 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19683 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_time_t" >&5
19684 $as_echo "$ac_cv_type_time_t" >&6; }
19685 if test "x$ac_cv_type_time_t" = x
""yes; then
19689 cat >>confdefs.h
<<_ACEOF
19690 #define time_t long
19697 { $as_echo "$as_me:$LINENO: checking for long long" >&5
19698 $as_echo_n "checking for long long... " >&6; }
19699 if test "${bash_cv_type_long_long+set}" = set; then
19700 $as_echo_n "(cached) " >&6
19702 cat >conftest.
$ac_ext <<_ACEOF
19705 cat confdefs.h
>>conftest.
$ac_ext
19706 cat >>conftest.
$ac_ext <<_ACEOF
19707 /* end confdefs.h. */
19709 long long ll = 1; int i = 63;
19714 long long llm = (long long) -1;
19715 return ll << i | ll >> i | llm / ll | llm % ll;
19721 rm -f conftest.
$ac_objext conftest
$ac_exeext
19722 if { (ac_try
="$ac_link"
19723 case "(($ac_try" in
19724 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19725 *) ac_try_echo=$ac_try;;
19727 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19728 $as_echo "$ac_try_echo") >&5
19729 (eval "$ac_link") 2>conftest.er1
19731 grep -v '^ *+' conftest.er1 >conftest.err
19733 cat conftest.err >&5
19734 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19735 (exit $ac_status); } && {
19736 test -z "$ac_c_werror_flag" ||
19737 test ! -s conftest.err
19738 } && test -s conftest$ac_exeext && {
19739 test "$cross_compiling" = yes ||
19740 $as_test_x conftest$ac_exeext
19742 bash_cv_type_long_long='long long'
19744 $as_echo "$as_me: failed program was:" >&5
19745 sed 's/^/| /' conftest.$ac_ext >&5
19747 bash_cv_type_long_long='long'
19750 rm -rf conftest.dSYM
19751 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19752 conftest$ac_exeext conftest.$ac_ext
19754 { $as_echo "$as_me:$LINENO: result: $bash_cv_type_long_long" >&5
19755 $as_echo "$bash_cv_type_long_long" >&6; }
19756 if test "$bash_cv_type_long_long" = 'long long'; then
19757 cat >>confdefs.h <<\_ACEOF
19758 #define HAVE_LONG_LONG 1
19764 { $as_echo "$as_me:$LINENO: checking for unsigned long long" >&5
19765 $as_echo_n "checking for unsigned long long... " >&6; }
19766 if test "${bash_cv_type_unsigned_long_long+set}" = set; then
19767 $as_echo_n "(cached) " >&6
19769 cat >conftest.$ac_ext <<_ACEOF
19772 cat confdefs.h >>conftest.$ac_ext
19773 cat >>conftest.$ac_ext <<_ACEOF
19774 /* end confdefs.h. */
19776 unsigned long long ull = 1; int i = 63;
19781 unsigned long long ullmax = (unsigned long long) -1;
19782 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
19788 rm -f conftest.$ac_objext conftest$ac_exeext
19789 if { (ac_try="$ac_link"
19790 case "(($ac_try" in
19791 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19792 *) ac_try_echo
=$ac_try;;
19794 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
19795 $as_echo "$ac_try_echo") >&5
19796 (eval "$ac_link") 2>conftest.er1
19798 grep -v '^ *+' conftest.er1
>conftest.err
19800 cat conftest.err
>&5
19801 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19802 (exit $ac_status); } && {
19803 test -z "$ac_c_werror_flag" ||
19804 test ! -s conftest.err
19805 } && test -s conftest
$ac_exeext && {
19806 test "$cross_compiling" = yes ||
19807 $as_test_x conftest
$ac_exeext
19809 bash_cv_type_unsigned_long_long
='unsigned long long'
19811 $as_echo "$as_me: failed program was:" >&5
19812 sed 's/^/| /' conftest.
$ac_ext >&5
19814 bash_cv_type_unsigned_long_long
='unsigned long'
19817 rm -rf conftest.dSYM
19818 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
19819 conftest
$ac_exeext conftest.
$ac_ext
19821 { $as_echo "$as_me:$LINENO: result: $bash_cv_type_unsigned_long_long" >&5
19822 $as_echo "$bash_cv_type_unsigned_long_long" >&6; }
19823 if test "$bash_cv_type_unsigned_long_long" = 'unsigned long long'; then
19824 cat >>confdefs.h
<<\_ACEOF
19825 #define HAVE_UNSIGNED_LONG_LONG 1
19831 { $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5
19832 $as_echo_n "checking return type of signal handlers... " >&6; }
19833 if test "${ac_cv_type_signal+set}" = set; then
19834 $as_echo_n "(cached) " >&6
19836 cat >conftest.
$ac_ext <<_ACEOF
19839 cat confdefs.h
>>conftest.
$ac_ext
19840 cat >>conftest.
$ac_ext <<_ACEOF
19841 /* end confdefs.h. */
19842 #include <sys/types.h>
19843 #include <signal.h>
19848 return *(signal (0, 0)) (0) == 1;
19853 rm -f conftest.
$ac_objext
19854 if { (ac_try
="$ac_compile"
19855 case "(($ac_try" in
19856 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19857 *) ac_try_echo=$ac_try;;
19859 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19860 $as_echo "$ac_try_echo") >&5
19861 (eval "$ac_compile") 2>conftest.er1
19863 grep -v '^ *+' conftest.er1 >conftest.err
19865 cat conftest.err >&5
19866 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19867 (exit $ac_status); } && {
19868 test -z "$ac_c_werror_flag" ||
19869 test ! -s conftest.err
19870 } && test -s conftest.$ac_objext; then
19871 ac_cv_type_signal=int
19873 $as_echo "$as_me: failed program was:" >&5
19874 sed 's/^/| /' conftest.$ac_ext >&5
19876 ac_cv_type_signal=void
19879 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19881 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
19882 $as_echo "$ac_cv_type_signal" >&6; }
19884 cat >>confdefs.h <<_ACEOF
19885 #define RETSIGTYPE $ac_cv_type_signal
19889 { $as_echo "$as_me:$LINENO: checking for sig_atomic_t in signal.h" >&5
19890 $as_echo_n "checking for sig_atomic_t in signal.h... " >&6; }
19891 if test "${ac_cv_have_sig_atomic_t+set}" = set; then
19892 $as_echo_n "(cached) " >&6
19894 cat >conftest.$ac_ext <<_ACEOF
19897 cat confdefs.h >>conftest.$ac_ext
19898 cat >>conftest.$ac_ext <<_ACEOF
19899 /* end confdefs.h. */
19901 #include <signal.h>
19911 rm -f conftest.$ac_objext conftest$ac_exeext
19912 if { (ac_try="$ac_link"
19913 case "(($ac_try" in
19914 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19915 *) ac_try_echo
=$ac_try;;
19917 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
19918 $as_echo "$ac_try_echo") >&5
19919 (eval "$ac_link") 2>conftest.er1
19921 grep -v '^ *+' conftest.er1
>conftest.err
19923 cat conftest.err
>&5
19924 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19925 (exit $ac_status); } && {
19926 test -z "$ac_c_werror_flag" ||
19927 test ! -s conftest.err
19928 } && test -s conftest
$ac_exeext && {
19929 test "$cross_compiling" = yes ||
19930 $as_test_x conftest
$ac_exeext
19932 ac_cv_have_sig_atomic_t
=yes
19934 $as_echo "$as_me: failed program was:" >&5
19935 sed 's/^/| /' conftest.
$ac_ext >&5
19937 ac_cv_have_sig_atomic_t
=no
19940 rm -rf conftest.dSYM
19941 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
19942 conftest
$ac_exeext conftest.
$ac_ext
19944 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_sig_atomic_t" >&5
19945 $as_echo "$ac_cv_have_sig_atomic_t" >&6; }
19946 if test "$ac_cv_have_sig_atomic_t" = "no"
19948 { $as_echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
19949 $as_echo_n "checking for sig_atomic_t... " >&6; }
19950 if test "${ac_cv_type_sig_atomic_t+set}" = set; then
19951 $as_echo_n "(cached) " >&6
19953 ac_cv_type_sig_atomic_t
=no
19954 cat >conftest.
$ac_ext <<_ACEOF
19957 cat confdefs.h
>>conftest.
$ac_ext
19958 cat >>conftest.
$ac_ext <<_ACEOF
19959 /* end confdefs.h. */
19960 $ac_includes_default
19964 if (sizeof (sig_atomic_t))
19970 rm -f conftest.
$ac_objext
19971 if { (ac_try
="$ac_compile"
19972 case "(($ac_try" in
19973 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19974 *) ac_try_echo=$ac_try;;
19976 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19977 $as_echo "$ac_try_echo") >&5
19978 (eval "$ac_compile") 2>conftest.er1
19980 grep -v '^ *+' conftest.er1 >conftest.err
19982 cat conftest.err >&5
19983 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19984 (exit $ac_status); } && {
19985 test -z "$ac_c_werror_flag" ||
19986 test ! -s conftest.err
19987 } && test -s conftest.$ac_objext; then
19988 cat >conftest.$ac_ext <<_ACEOF
19991 cat confdefs.h >>conftest.$ac_ext
19992 cat >>conftest.$ac_ext <<_ACEOF
19993 /* end confdefs.h. */
19994 $ac_includes_default
19998 if (sizeof ((sig_atomic_t)))
20004 rm -f conftest.$ac_objext
20005 if { (ac_try="$ac_compile"
20006 case "(($ac_try" in
20007 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20008 *) ac_try_echo
=$ac_try;;
20010 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
20011 $as_echo "$ac_try_echo") >&5
20012 (eval "$ac_compile") 2>conftest.er1
20014 grep -v '^ *+' conftest.er1
>conftest.err
20016 cat conftest.err
>&5
20017 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20018 (exit $ac_status); } && {
20019 test -z "$ac_c_werror_flag" ||
20020 test ! -s conftest.err
20021 } && test -s conftest.
$ac_objext; then
20024 $as_echo "$as_me: failed program was:" >&5
20025 sed 's/^/| /' conftest.
$ac_ext >&5
20027 ac_cv_type_sig_atomic_t
=yes
20030 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20032 $as_echo "$as_me: failed program was:" >&5
20033 sed 's/^/| /' conftest.
$ac_ext >&5
20038 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20040 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
20041 $as_echo "$ac_cv_type_sig_atomic_t" >&6; }
20042 if test "x$ac_cv_type_sig_atomic_t" = x
""yes; then
20046 cat >>confdefs.h
<<_ACEOF
20047 #define sig_atomic_t int
20055 # The cast to long int works around a bug in the HP C Compiler
20056 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20057 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20058 # This bug is HP SR number 8606223364.
20059 { $as_echo "$as_me:$LINENO: checking size of char" >&5
20060 $as_echo_n "checking size of char... " >&6; }
20061 if test "${ac_cv_sizeof_char+set}" = set; then
20062 $as_echo_n "(cached) " >&6
20064 if test "$cross_compiling" = yes; then
20065 # Depending upon the size, compute the lo and hi bounds.
20066 cat >conftest.
$ac_ext <<_ACEOF
20069 cat confdefs.h
>>conftest.
$ac_ext
20070 cat >>conftest.
$ac_ext <<_ACEOF
20071 /* end confdefs.h. */
20072 $ac_includes_default
20076 static int test_array [1 - 2 * !(((long int) (sizeof (char))) >= 0)];
20083 rm -f conftest.
$ac_objext
20084 if { (ac_try
="$ac_compile"
20085 case "(($ac_try" in
20086 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20087 *) ac_try_echo=$ac_try;;
20089 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20090 $as_echo "$ac_try_echo") >&5
20091 (eval "$ac_compile") 2>conftest.er1
20093 grep -v '^ *+' conftest.er1 >conftest.err
20095 cat conftest.err >&5
20096 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20097 (exit $ac_status); } && {
20098 test -z "$ac_c_werror_flag" ||
20099 test ! -s conftest.err
20100 } && test -s conftest.$ac_objext; then
20103 cat >conftest.$ac_ext <<_ACEOF
20106 cat confdefs.h >>conftest.$ac_ext
20107 cat >>conftest.$ac_ext <<_ACEOF
20108 /* end confdefs.h. */
20109 $ac_includes_default
20113 static int test_array [1 - 2 * !(((long int) (sizeof (char))) <= $ac_mid)];
20120 rm -f conftest.$ac_objext
20121 if { (ac_try="$ac_compile"
20122 case "(($ac_try" in
20123 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20124 *) ac_try_echo
=$ac_try;;
20126 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
20127 $as_echo "$ac_try_echo") >&5
20128 (eval "$ac_compile") 2>conftest.er1
20130 grep -v '^ *+' conftest.er1
>conftest.err
20132 cat conftest.err
>&5
20133 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20134 (exit $ac_status); } && {
20135 test -z "$ac_c_werror_flag" ||
20136 test ! -s conftest.err
20137 } && test -s conftest.
$ac_objext; then
20138 ac_hi
=$ac_mid; break
20140 $as_echo "$as_me: failed program was:" >&5
20141 sed 's/^/| /' conftest.
$ac_ext >&5
20143 ac_lo
=`expr $ac_mid + 1`
20144 if test $ac_lo -le $ac_mid; then
20148 ac_mid
=`expr 2 '*' $ac_mid + 1`
20151 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20154 $as_echo "$as_me: failed program was:" >&5
20155 sed 's/^/| /' conftest.
$ac_ext >&5
20157 cat >conftest.
$ac_ext <<_ACEOF
20160 cat confdefs.h
>>conftest.
$ac_ext
20161 cat >>conftest.
$ac_ext <<_ACEOF
20162 /* end confdefs.h. */
20163 $ac_includes_default
20167 static int test_array [1 - 2 * !(((long int) (sizeof (char))) < 0)];
20174 rm -f conftest.
$ac_objext
20175 if { (ac_try
="$ac_compile"
20176 case "(($ac_try" in
20177 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20178 *) ac_try_echo=$ac_try;;
20180 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20181 $as_echo "$ac_try_echo") >&5
20182 (eval "$ac_compile") 2>conftest.er1
20184 grep -v '^ *+' conftest.er1 >conftest.err
20186 cat conftest.err >&5
20187 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20188 (exit $ac_status); } && {
20189 test -z "$ac_c_werror_flag" ||
20190 test ! -s conftest.err
20191 } && test -s conftest.$ac_objext; then
20194 cat >conftest.$ac_ext <<_ACEOF
20197 cat confdefs.h >>conftest.$ac_ext
20198 cat >>conftest.$ac_ext <<_ACEOF
20199 /* end confdefs.h. */
20200 $ac_includes_default
20204 static int test_array [1 - 2 * !(((long int) (sizeof (char))) >= $ac_mid)];
20211 rm -f conftest.$ac_objext
20212 if { (ac_try="$ac_compile"
20213 case "(($ac_try" in
20214 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20215 *) ac_try_echo
=$ac_try;;
20217 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
20218 $as_echo "$ac_try_echo") >&5
20219 (eval "$ac_compile") 2>conftest.er1
20221 grep -v '^ *+' conftest.er1
>conftest.err
20223 cat conftest.err
>&5
20224 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20225 (exit $ac_status); } && {
20226 test -z "$ac_c_werror_flag" ||
20227 test ! -s conftest.err
20228 } && test -s conftest.
$ac_objext; then
20229 ac_lo
=$ac_mid; break
20231 $as_echo "$as_me: failed program was:" >&5
20232 sed 's/^/| /' conftest.
$ac_ext >&5
20234 ac_hi
=`expr '(' $ac_mid ')' - 1`
20235 if test $ac_mid -le $ac_hi; then
20239 ac_mid
=`expr 2 '*' $ac_mid`
20242 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20245 $as_echo "$as_me: failed program was:" >&5
20246 sed 's/^/| /' conftest.
$ac_ext >&5
20251 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20254 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20255 # Binary search between lo and hi bounds.
20256 while test "x$ac_lo" != "x$ac_hi"; do
20257 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20258 cat >conftest.
$ac_ext <<_ACEOF
20261 cat confdefs.h
>>conftest.
$ac_ext
20262 cat >>conftest.
$ac_ext <<_ACEOF
20263 /* end confdefs.h. */
20264 $ac_includes_default
20268 static int test_array [1 - 2 * !(((long int) (sizeof (char))) <= $ac_mid)];
20275 rm -f conftest.
$ac_objext
20276 if { (ac_try
="$ac_compile"
20277 case "(($ac_try" in
20278 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20279 *) ac_try_echo=$ac_try;;
20281 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20282 $as_echo "$ac_try_echo") >&5
20283 (eval "$ac_compile") 2>conftest.er1
20285 grep -v '^ *+' conftest.er1 >conftest.err
20287 cat conftest.err >&5
20288 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20289 (exit $ac_status); } && {
20290 test -z "$ac_c_werror_flag" ||
20291 test ! -s conftest.err
20292 } && test -s conftest.$ac_objext; then
20295 $as_echo "$as_me: failed program was:" >&5
20296 sed 's/^/| /' conftest.$ac_ext >&5
20298 ac_lo=`expr '(' $ac_mid ')' + 1`
20301 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20304 ?*) ac_cv_sizeof_char=$ac_lo;;
20305 '') if test "$ac_cv_type_char" = yes; then
20306 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
20307 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20308 { { $as_echo "$as_me:$LINENO: error
: cannot compute sizeof
(char
)
20309 See \
`config.log' for more details." >&5
20310 $as_echo "$as_me: error: cannot compute sizeof (char)
20311 See \`config.log
' for more details." >&2;}
20312 { (exit 77); exit 77; }; }; }
20314 ac_cv_sizeof_char=0
20318 cat >conftest.$ac_ext <<_ACEOF
20321 cat confdefs.h >>conftest.$ac_ext
20322 cat >>conftest.$ac_ext <<_ACEOF
20323 /* end confdefs.h. */
20324 $ac_includes_default
20325 static long int longval () { return (long int) (sizeof (char)); }
20326 static unsigned long int ulongval () { return (long int) (sizeof (char)); }
20328 #include <stdlib.h>
20333 FILE *f = fopen ("conftest.val", "w");
20336 if (((long int) (sizeof (char))) < 0)
20338 long int i = longval ();
20339 if (i != ((long int) (sizeof (char))))
20341 fprintf (f, "%ld", i);
20345 unsigned long int i = ulongval ();
20346 if (i != ((long int) (sizeof (char))))
20348 fprintf (f, "%lu", i);
20350 /* Do not output a trailing newline, as this causes \r\n confusion
20351 on some platforms. */
20352 return ferror (f) || fclose (f) != 0;
20358 rm -f conftest$ac_exeext
20359 if { (ac_try="$ac_link"
20360 case "(($ac_try" in
20361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20362 *) ac_try_echo=$ac_try;;
20364 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20365 $as_echo "$ac_try_echo") >&5
20366 (eval "$ac_link") 2>&5
20368 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20369 (exit $ac_status); } && { ac_try='.
/conftest
$ac_exeext'
20370 { (case "(($ac_try" in
20371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20372 *) ac_try_echo=$ac_try;;
20374 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20375 $as_echo "$ac_try_echo") >&5
20376 (eval "$ac_try") 2>&5
20378 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20379 (exit $ac_status); }; }; then
20380 ac_cv_sizeof_char=`cat conftest.val`
20382 $as_echo "$as_me: program exited with status $ac_status" >&5
20383 $as_echo "$as_me: failed program was:" >&5
20384 sed 's
/^
/|
/' conftest.$ac_ext >&5
20386 ( exit $ac_status )
20387 if test "$ac_cv_type_char" = yes; then
20388 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
20389 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
20390 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (char)
20391 See \`config.log
' for more details." >&5
20392 $as_echo "$as_me: error: cannot compute sizeof (char)
20393 See \`config.log' for more details.
" >&2;}
20394 { (exit 77); exit 77; }; }; }
20396 ac_cv_sizeof_char=0
20399 rm -rf conftest.dSYM
20400 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20404 { $as_echo "$as_me:$LINENO: result
: $ac_cv_sizeof_char" >&5
20405 $as_echo "$ac_cv_sizeof_char" >&6; }
20409 cat >>confdefs.h <<_ACEOF
20410 #define SIZEOF_CHAR $ac_cv_sizeof_char
20414 # The cast to long int works around a bug in the HP C Compiler
20415 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20416 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20417 # This bug is HP SR number 8606223364.
20418 { $as_echo "$as_me:$LINENO: checking size of short
" >&5
20419 $as_echo_n "checking size of short...
" >&6; }
20420 if test "${ac_cv_sizeof_short+set}" = set; then
20421 $as_echo_n "(cached
) " >&6
20423 if test "$cross_compiling" = yes; then
20424 # Depending upon the size, compute the lo and hi bounds.
20425 cat >conftest.$ac_ext <<_ACEOF
20428 cat confdefs.h >>conftest.$ac_ext
20429 cat >>conftest.$ac_ext <<_ACEOF
20430 /* end confdefs.h. */
20431 $ac_includes_default
20435 static int test_array [1 - 2 * !(((long int) (sizeof (short))) >= 0)];
20442 rm -f conftest.$ac_objext
20443 if { (ac_try="$ac_compile"
20444 case "(($ac_try" in
20445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20446 *) ac_try_echo=$ac_try;;
20448 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
20449 $as_echo "$ac_try_echo") >&5
20450 (eval "$ac_compile") 2>conftest.er1
20452 grep -v '^ *+' conftest.er1 >conftest.err
20454 cat conftest.err >&5
20455 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20456 (exit $ac_status); } && {
20457 test -z "$ac_c_werror_flag" ||
20458 test ! -s conftest.err
20459 } && test -s conftest.$ac_objext; then
20462 cat >conftest.$ac_ext <<_ACEOF
20465 cat confdefs.h >>conftest.$ac_ext
20466 cat >>conftest.$ac_ext <<_ACEOF
20467 /* end confdefs.h. */
20468 $ac_includes_default
20472 static int test_array [1 - 2 * !(((long int) (sizeof (short))) <= $ac_mid)];
20479 rm -f conftest.$ac_objext
20480 if { (ac_try="$ac_compile"
20481 case "(($ac_try" in
20482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20483 *) ac_try_echo=$ac_try;;
20485 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
20486 $as_echo "$ac_try_echo") >&5
20487 (eval "$ac_compile") 2>conftest.er1
20489 grep -v '^ *+' conftest.er1 >conftest.err
20491 cat conftest.err >&5
20492 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20493 (exit $ac_status); } && {
20494 test -z "$ac_c_werror_flag" ||
20495 test ! -s conftest.err
20496 } && test -s conftest.$ac_objext; then
20497 ac_hi=$ac_mid; break
20499 $as_echo "$as_me: failed program was
:" >&5
20500 sed 's/^/| /' conftest.$ac_ext >&5
20502 ac_lo=`expr $ac_mid + 1`
20503 if test $ac_lo -le $ac_mid; then
20507 ac_mid=`expr 2 '*' $ac_mid + 1`
20510 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20513 $as_echo "$as_me: failed program was
:" >&5
20514 sed 's/^/| /' conftest.$ac_ext >&5
20516 cat >conftest.$ac_ext <<_ACEOF
20519 cat confdefs.h >>conftest.$ac_ext
20520 cat >>conftest.$ac_ext <<_ACEOF
20521 /* end confdefs.h. */
20522 $ac_includes_default
20526 static int test_array [1 - 2 * !(((long int) (sizeof (short))) < 0)];
20533 rm -f conftest.$ac_objext
20534 if { (ac_try="$ac_compile"
20535 case "(($ac_try" in
20536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20537 *) ac_try_echo=$ac_try;;
20539 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
20540 $as_echo "$ac_try_echo") >&5
20541 (eval "$ac_compile") 2>conftest.er1
20543 grep -v '^ *+' conftest.er1 >conftest.err
20545 cat conftest.err >&5
20546 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20547 (exit $ac_status); } && {
20548 test -z "$ac_c_werror_flag" ||
20549 test ! -s conftest.err
20550 } && test -s conftest.$ac_objext; then
20553 cat >conftest.$ac_ext <<_ACEOF
20556 cat confdefs.h >>conftest.$ac_ext
20557 cat >>conftest.$ac_ext <<_ACEOF
20558 /* end confdefs.h. */
20559 $ac_includes_default
20563 static int test_array [1 - 2 * !(((long int) (sizeof (short))) >= $ac_mid)];
20570 rm -f conftest.$ac_objext
20571 if { (ac_try="$ac_compile"
20572 case "(($ac_try" in
20573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20574 *) ac_try_echo=$ac_try;;
20576 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
20577 $as_echo "$ac_try_echo") >&5
20578 (eval "$ac_compile") 2>conftest.er1
20580 grep -v '^ *+' conftest.er1 >conftest.err
20582 cat conftest.err >&5
20583 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20584 (exit $ac_status); } && {
20585 test -z "$ac_c_werror_flag" ||
20586 test ! -s conftest.err
20587 } && test -s conftest.$ac_objext; then
20588 ac_lo=$ac_mid; break
20590 $as_echo "$as_me: failed program was
:" >&5
20591 sed 's/^/| /' conftest.$ac_ext >&5
20593 ac_hi=`expr '(' $ac_mid ')' - 1`
20594 if test $ac_mid -le $ac_hi; then
20598 ac_mid=`expr 2 '*' $ac_mid`
20601 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20604 $as_echo "$as_me: failed program was
:" >&5
20605 sed 's/^/| /' conftest.$ac_ext >&5
20610 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20614 # Binary search between lo and hi bounds.
20615 while test "x
$ac_lo" != "x
$ac_hi"; do
20616 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20617 cat >conftest.$ac_ext <<_ACEOF
20620 cat confdefs.h >>conftest.$ac_ext
20621 cat >>conftest.$ac_ext <<_ACEOF
20622 /* end confdefs.h. */
20623 $ac_includes_default
20627 static int test_array [1 - 2 * !(((long int) (sizeof (short))) <= $ac_mid)];
20634 rm -f conftest.$ac_objext
20635 if { (ac_try="$ac_compile"
20636 case "(($ac_try" in
20637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20638 *) ac_try_echo=$ac_try;;
20640 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
20641 $as_echo "$ac_try_echo") >&5
20642 (eval "$ac_compile") 2>conftest.er1
20644 grep -v '^ *+' conftest.er1 >conftest.err
20646 cat conftest.err >&5
20647 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20648 (exit $ac_status); } && {
20649 test -z "$ac_c_werror_flag" ||
20650 test ! -s conftest.err
20651 } && test -s conftest.$ac_objext; then
20654 $as_echo "$as_me: failed program was
:" >&5
20655 sed 's/^/| /' conftest.$ac_ext >&5
20657 ac_lo=`expr '(' $ac_mid ')' + 1`
20660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20663 ?*) ac_cv_sizeof_short=$ac_lo;;
20664 '') if test "$ac_cv_type_short" = yes; then
20665 { { $as_echo "$as_me:$LINENO: error
: in \
`$ac_pwd':" >&5
20666 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20667 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (short)
20668 See \`config.log' for more details.
" >&5
20669 $as_echo "$as_me: error
: cannot compute sizeof
(short
)
20670 See \
`config.log' for more details." >&2;}
20671 { (exit 77); exit 77; }; }; }
20673 ac_cv_sizeof_short=0
20677 cat >conftest.$ac_ext <<_ACEOF
20680 cat confdefs.h >>conftest.$ac_ext
20681 cat >>conftest.$ac_ext <<_ACEOF
20682 /* end confdefs.h. */
20683 $ac_includes_default
20684 static long int longval () { return (long int) (sizeof (short)); }
20685 static unsigned long int ulongval () { return (long int) (sizeof (short)); }
20687 #include <stdlib.h>
20692 FILE *f = fopen ("conftest.val", "w");
20695 if (((long int) (sizeof (short))) < 0)
20697 long int i = longval ();
20698 if (i != ((long int) (sizeof (short))))
20700 fprintf (f, "%ld", i);
20704 unsigned long int i = ulongval ();
20705 if (i != ((long int) (sizeof (short))))
20707 fprintf (f, "%lu", i);
20709 /* Do not output a trailing newline, as this causes \r\n confusion
20710 on some platforms. */
20711 return ferror (f) || fclose (f) != 0;
20717 rm -f conftest$ac_exeext
20718 if { (ac_try="$ac_link"
20719 case "(($ac_try" in
20720 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20721 *) ac_try_echo
=$ac_try;;
20723 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
20724 $as_echo "$ac_try_echo") >&5
20725 (eval "$ac_link") 2>&5
20727 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20728 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
20729 { (case "(($ac_try" in
20730 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20731 *) ac_try_echo=$ac_try;;
20733 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20734 $as_echo "$ac_try_echo") >&5
20735 (eval "$ac_try") 2>&5
20737 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20738 (exit $ac_status); }; }; then
20739 ac_cv_sizeof_short=`cat conftest.val
`
20741 $as_echo "$as_me: program exited with status $ac_status" >&5
20742 $as_echo "$as_me: failed program was:" >&5
20743 sed 's/^/| /' conftest.$ac_ext >&5
20745 ( exit $ac_status )
20746 if test "$ac_cv_type_short" = yes; then
20747 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
20748 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20749 { { $as_echo "$as_me:$LINENO: error
: cannot compute sizeof
(short
)
20750 See \
`config.log' for more details." >&5
20751 $as_echo "$as_me: error: cannot compute sizeof (short)
20752 See \`config.log
' for more details." >&2;}
20753 { (exit 77); exit 77; }; }; }
20755 ac_cv_sizeof_short=0
20758 rm -rf conftest.dSYM
20759 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20763 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
20764 $as_echo "$ac_cv_sizeof_short" >&6; }
20768 cat >>confdefs.h <<_ACEOF
20769 #define SIZEOF_SHORT $ac_cv_sizeof_short
20773 # The cast to long int works around a bug in the HP C Compiler
20774 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20775 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20776 # This bug is HP SR number 8606223364.
20777 { $as_echo "$as_me:$LINENO: checking size of int" >&5
20778 $as_echo_n "checking size of int... " >&6; }
20779 if test "${ac_cv_sizeof_int+set}" = set; then
20780 $as_echo_n "(cached) " >&6
20782 if test "$cross_compiling" = yes; then
20783 # Depending upon the size, compute the lo and hi bounds.
20784 cat >conftest.
$ac_ext <<_ACEOF
20787 cat confdefs.h
>>conftest.
$ac_ext
20788 cat >>conftest.
$ac_ext <<_ACEOF
20789 /* end confdefs.h. */
20790 $ac_includes_default
20794 static int test_array [1 - 2 * !(((long int) (sizeof (int))) >= 0)];
20801 rm -f conftest.
$ac_objext
20802 if { (ac_try
="$ac_compile"
20803 case "(($ac_try" in
20804 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20805 *) ac_try_echo=$ac_try;;
20807 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20808 $as_echo "$ac_try_echo") >&5
20809 (eval "$ac_compile") 2>conftest.er1
20811 grep -v '^ *+' conftest.er1 >conftest.err
20813 cat conftest.err >&5
20814 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20815 (exit $ac_status); } && {
20816 test -z "$ac_c_werror_flag" ||
20817 test ! -s conftest.err
20818 } && test -s conftest.$ac_objext; then
20821 cat >conftest.$ac_ext <<_ACEOF
20824 cat confdefs.h >>conftest.$ac_ext
20825 cat >>conftest.$ac_ext <<_ACEOF
20826 /* end confdefs.h. */
20827 $ac_includes_default
20831 static int test_array [1 - 2 * !(((long int) (sizeof (int))) <= $ac_mid)];
20838 rm -f conftest.$ac_objext
20839 if { (ac_try="$ac_compile"
20840 case "(($ac_try" in
20841 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20842 *) ac_try_echo
=$ac_try;;
20844 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
20845 $as_echo "$ac_try_echo") >&5
20846 (eval "$ac_compile") 2>conftest.er1
20848 grep -v '^ *+' conftest.er1
>conftest.err
20850 cat conftest.err
>&5
20851 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20852 (exit $ac_status); } && {
20853 test -z "$ac_c_werror_flag" ||
20854 test ! -s conftest.err
20855 } && test -s conftest.
$ac_objext; then
20856 ac_hi
=$ac_mid; break
20858 $as_echo "$as_me: failed program was:" >&5
20859 sed 's/^/| /' conftest.
$ac_ext >&5
20861 ac_lo
=`expr $ac_mid + 1`
20862 if test $ac_lo -le $ac_mid; then
20866 ac_mid
=`expr 2 '*' $ac_mid + 1`
20869 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20872 $as_echo "$as_me: failed program was:" >&5
20873 sed 's/^/| /' conftest.
$ac_ext >&5
20875 cat >conftest.
$ac_ext <<_ACEOF
20878 cat confdefs.h
>>conftest.
$ac_ext
20879 cat >>conftest.
$ac_ext <<_ACEOF
20880 /* end confdefs.h. */
20881 $ac_includes_default
20885 static int test_array [1 - 2 * !(((long int) (sizeof (int))) < 0)];
20892 rm -f conftest.
$ac_objext
20893 if { (ac_try
="$ac_compile"
20894 case "(($ac_try" in
20895 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20896 *) ac_try_echo=$ac_try;;
20898 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20899 $as_echo "$ac_try_echo") >&5
20900 (eval "$ac_compile") 2>conftest.er1
20902 grep -v '^ *+' conftest.er1 >conftest.err
20904 cat conftest.err >&5
20905 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20906 (exit $ac_status); } && {
20907 test -z "$ac_c_werror_flag" ||
20908 test ! -s conftest.err
20909 } && test -s conftest.$ac_objext; then
20912 cat >conftest.$ac_ext <<_ACEOF
20915 cat confdefs.h >>conftest.$ac_ext
20916 cat >>conftest.$ac_ext <<_ACEOF
20917 /* end confdefs.h. */
20918 $ac_includes_default
20922 static int test_array [1 - 2 * !(((long int) (sizeof (int))) >= $ac_mid)];
20929 rm -f conftest.$ac_objext
20930 if { (ac_try="$ac_compile"
20931 case "(($ac_try" in
20932 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20933 *) ac_try_echo
=$ac_try;;
20935 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
20936 $as_echo "$ac_try_echo") >&5
20937 (eval "$ac_compile") 2>conftest.er1
20939 grep -v '^ *+' conftest.er1
>conftest.err
20941 cat conftest.err
>&5
20942 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20943 (exit $ac_status); } && {
20944 test -z "$ac_c_werror_flag" ||
20945 test ! -s conftest.err
20946 } && test -s conftest.
$ac_objext; then
20947 ac_lo
=$ac_mid; break
20949 $as_echo "$as_me: failed program was:" >&5
20950 sed 's/^/| /' conftest.
$ac_ext >&5
20952 ac_hi
=`expr '(' $ac_mid ')' - 1`
20953 if test $ac_mid -le $ac_hi; then
20957 ac_mid
=`expr 2 '*' $ac_mid`
20960 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20963 $as_echo "$as_me: failed program was:" >&5
20964 sed 's/^/| /' conftest.
$ac_ext >&5
20969 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20972 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20973 # Binary search between lo and hi bounds.
20974 while test "x$ac_lo" != "x$ac_hi"; do
20975 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20976 cat >conftest.
$ac_ext <<_ACEOF
20979 cat confdefs.h
>>conftest.
$ac_ext
20980 cat >>conftest.
$ac_ext <<_ACEOF
20981 /* end confdefs.h. */
20982 $ac_includes_default
20986 static int test_array [1 - 2 * !(((long int) (sizeof (int))) <= $ac_mid)];
20993 rm -f conftest.
$ac_objext
20994 if { (ac_try
="$ac_compile"
20995 case "(($ac_try" in
20996 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20997 *) ac_try_echo=$ac_try;;
20999 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21000 $as_echo "$ac_try_echo") >&5
21001 (eval "$ac_compile") 2>conftest.er1
21003 grep -v '^ *+' conftest.er1 >conftest.err
21005 cat conftest.err >&5
21006 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21007 (exit $ac_status); } && {
21008 test -z "$ac_c_werror_flag" ||
21009 test ! -s conftest.err
21010 } && test -s conftest.$ac_objext; then
21013 $as_echo "$as_me: failed program was:" >&5
21014 sed 's/^/| /' conftest.$ac_ext >&5
21016 ac_lo=`expr '(' $ac_mid ')' + 1`
21019 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21022 ?*) ac_cv_sizeof_int=$ac_lo;;
21023 '') if test "$ac_cv_type_int" = yes; then
21024 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
21025 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21026 { { $as_echo "$as_me:$LINENO: error
: cannot compute sizeof
(int
)
21027 See \
`config.log' for more details." >&5
21028 $as_echo "$as_me: error: cannot compute sizeof (int)
21029 See \`config.log
' for more details." >&2;}
21030 { (exit 77); exit 77; }; }; }
21036 cat >conftest.$ac_ext <<_ACEOF
21039 cat confdefs.h >>conftest.$ac_ext
21040 cat >>conftest.$ac_ext <<_ACEOF
21041 /* end confdefs.h. */
21042 $ac_includes_default
21043 static long int longval () { return (long int) (sizeof (int)); }
21044 static unsigned long int ulongval () { return (long int) (sizeof (int)); }
21046 #include <stdlib.h>
21051 FILE *f = fopen ("conftest.val", "w");
21054 if (((long int) (sizeof (int))) < 0)
21056 long int i = longval ();
21057 if (i != ((long int) (sizeof (int))))
21059 fprintf (f, "%ld", i);
21063 unsigned long int i = ulongval ();
21064 if (i != ((long int) (sizeof (int))))
21066 fprintf (f, "%lu", i);
21068 /* Do not output a trailing newline, as this causes \r\n confusion
21069 on some platforms. */
21070 return ferror (f) || fclose (f) != 0;
21076 rm -f conftest$ac_exeext
21077 if { (ac_try="$ac_link"
21078 case "(($ac_try" in
21079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21080 *) ac_try_echo=$ac_try;;
21082 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21083 $as_echo "$ac_try_echo") >&5
21084 (eval "$ac_link") 2>&5
21086 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21087 (exit $ac_status); } && { ac_try='.
/conftest
$ac_exeext'
21088 { (case "(($ac_try" in
21089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21090 *) ac_try_echo=$ac_try;;
21092 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21093 $as_echo "$ac_try_echo") >&5
21094 (eval "$ac_try") 2>&5
21096 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21097 (exit $ac_status); }; }; then
21098 ac_cv_sizeof_int=`cat conftest.val`
21100 $as_echo "$as_me: program exited with status $ac_status" >&5
21101 $as_echo "$as_me: failed program was:" >&5
21102 sed 's
/^
/|
/' conftest.$ac_ext >&5
21104 ( exit $ac_status )
21105 if test "$ac_cv_type_int" = yes; then
21106 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
21107 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
21108 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (int)
21109 See \`config.log
' for more details." >&5
21110 $as_echo "$as_me: error: cannot compute sizeof (int)
21111 See \`config.log' for more details.
" >&2;}
21112 { (exit 77); exit 77; }; }; }
21117 rm -rf conftest.dSYM
21118 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21122 { $as_echo "$as_me:$LINENO: result
: $ac_cv_sizeof_int" >&5
21123 $as_echo "$ac_cv_sizeof_int" >&6; }
21127 cat >>confdefs.h <<_ACEOF
21128 #define SIZEOF_INT $ac_cv_sizeof_int
21132 # The cast to long int works around a bug in the HP C Compiler
21133 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21134 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21135 # This bug is HP SR number 8606223364.
21136 { $as_echo "$as_me:$LINENO: checking size of long
" >&5
21137 $as_echo_n "checking size of long...
" >&6; }
21138 if test "${ac_cv_sizeof_long+set}" = set; then
21139 $as_echo_n "(cached
) " >&6
21141 if test "$cross_compiling" = yes; then
21142 # Depending upon the size, compute the lo and hi bounds.
21143 cat >conftest.$ac_ext <<_ACEOF
21146 cat confdefs.h >>conftest.$ac_ext
21147 cat >>conftest.$ac_ext <<_ACEOF
21148 /* end confdefs.h. */
21149 $ac_includes_default
21153 static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= 0)];
21160 rm -f conftest.$ac_objext
21161 if { (ac_try="$ac_compile"
21162 case "(($ac_try" in
21163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21164 *) ac_try_echo=$ac_try;;
21166 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
21167 $as_echo "$ac_try_echo") >&5
21168 (eval "$ac_compile") 2>conftest.er1
21170 grep -v '^ *+' conftest.er1 >conftest.err
21172 cat conftest.err >&5
21173 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21174 (exit $ac_status); } && {
21175 test -z "$ac_c_werror_flag" ||
21176 test ! -s conftest.err
21177 } && test -s conftest.$ac_objext; then
21180 cat >conftest.$ac_ext <<_ACEOF
21183 cat confdefs.h >>conftest.$ac_ext
21184 cat >>conftest.$ac_ext <<_ACEOF
21185 /* end confdefs.h. */
21186 $ac_includes_default
21190 static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)];
21197 rm -f conftest.$ac_objext
21198 if { (ac_try="$ac_compile"
21199 case "(($ac_try" in
21200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21201 *) ac_try_echo=$ac_try;;
21203 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
21204 $as_echo "$ac_try_echo") >&5
21205 (eval "$ac_compile") 2>conftest.er1
21207 grep -v '^ *+' conftest.er1 >conftest.err
21209 cat conftest.err >&5
21210 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21211 (exit $ac_status); } && {
21212 test -z "$ac_c_werror_flag" ||
21213 test ! -s conftest.err
21214 } && test -s conftest.$ac_objext; then
21215 ac_hi=$ac_mid; break
21217 $as_echo "$as_me: failed program was
:" >&5
21218 sed 's/^/| /' conftest.$ac_ext >&5
21220 ac_lo=`expr $ac_mid + 1`
21221 if test $ac_lo -le $ac_mid; then
21225 ac_mid=`expr 2 '*' $ac_mid + 1`
21228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21231 $as_echo "$as_me: failed program was
:" >&5
21232 sed 's/^/| /' conftest.$ac_ext >&5
21234 cat >conftest.$ac_ext <<_ACEOF
21237 cat confdefs.h >>conftest.$ac_ext
21238 cat >>conftest.$ac_ext <<_ACEOF
21239 /* end confdefs.h. */
21240 $ac_includes_default
21244 static int test_array [1 - 2 * !(((long int) (sizeof (long))) < 0)];
21251 rm -f conftest.$ac_objext
21252 if { (ac_try="$ac_compile"
21253 case "(($ac_try" in
21254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21255 *) ac_try_echo=$ac_try;;
21257 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
21258 $as_echo "$ac_try_echo") >&5
21259 (eval "$ac_compile") 2>conftest.er1
21261 grep -v '^ *+' conftest.er1 >conftest.err
21263 cat conftest.err >&5
21264 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21265 (exit $ac_status); } && {
21266 test -z "$ac_c_werror_flag" ||
21267 test ! -s conftest.err
21268 } && test -s conftest.$ac_objext; then
21271 cat >conftest.$ac_ext <<_ACEOF
21274 cat confdefs.h >>conftest.$ac_ext
21275 cat >>conftest.$ac_ext <<_ACEOF
21276 /* end confdefs.h. */
21277 $ac_includes_default
21281 static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= $ac_mid)];
21288 rm -f conftest.$ac_objext
21289 if { (ac_try="$ac_compile"
21290 case "(($ac_try" in
21291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21292 *) ac_try_echo=$ac_try;;
21294 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
21295 $as_echo "$ac_try_echo") >&5
21296 (eval "$ac_compile") 2>conftest.er1
21298 grep -v '^ *+' conftest.er1 >conftest.err
21300 cat conftest.err >&5
21301 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21302 (exit $ac_status); } && {
21303 test -z "$ac_c_werror_flag" ||
21304 test ! -s conftest.err
21305 } && test -s conftest.$ac_objext; then
21306 ac_lo=$ac_mid; break
21308 $as_echo "$as_me: failed program was
:" >&5
21309 sed 's/^/| /' conftest.$ac_ext >&5
21311 ac_hi=`expr '(' $ac_mid ')' - 1`
21312 if test $ac_mid -le $ac_hi; then
21316 ac_mid=`expr 2 '*' $ac_mid`
21319 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21322 $as_echo "$as_me: failed program was
:" >&5
21323 sed 's/^/| /' conftest.$ac_ext >&5
21328 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21331 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21332 # Binary search between lo and hi bounds.
21333 while test "x
$ac_lo" != "x
$ac_hi"; do
21334 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21335 cat >conftest.$ac_ext <<_ACEOF
21338 cat confdefs.h >>conftest.$ac_ext
21339 cat >>conftest.$ac_ext <<_ACEOF
21340 /* end confdefs.h. */
21341 $ac_includes_default
21345 static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)];
21352 rm -f conftest.$ac_objext
21353 if { (ac_try="$ac_compile"
21354 case "(($ac_try" in
21355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21356 *) ac_try_echo=$ac_try;;
21358 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
21359 $as_echo "$ac_try_echo") >&5
21360 (eval "$ac_compile") 2>conftest.er1
21362 grep -v '^ *+' conftest.er1 >conftest.err
21364 cat conftest.err >&5
21365 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21366 (exit $ac_status); } && {
21367 test -z "$ac_c_werror_flag" ||
21368 test ! -s conftest.err
21369 } && test -s conftest.$ac_objext; then
21372 $as_echo "$as_me: failed program was
:" >&5
21373 sed 's/^/| /' conftest.$ac_ext >&5
21375 ac_lo=`expr '(' $ac_mid ')' + 1`
21378 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21381 ?*) ac_cv_sizeof_long=$ac_lo;;
21382 '') if test "$ac_cv_type_long" = yes; then
21383 { { $as_echo "$as_me:$LINENO: error
: in \
`$ac_pwd':" >&5
21384 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21385 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long)
21386 See \`config.log' for more details.
" >&5
21387 $as_echo "$as_me: error
: cannot compute sizeof
(long
)
21388 See \
`config.log' for more details." >&2;}
21389 { (exit 77); exit 77; }; }; }
21391 ac_cv_sizeof_long=0
21395 cat >conftest.$ac_ext <<_ACEOF
21398 cat confdefs.h >>conftest.$ac_ext
21399 cat >>conftest.$ac_ext <<_ACEOF
21400 /* end confdefs.h. */
21401 $ac_includes_default
21402 static long int longval () { return (long int) (sizeof (long)); }
21403 static unsigned long int ulongval () { return (long int) (sizeof (long)); }
21405 #include <stdlib.h>
21410 FILE *f = fopen ("conftest.val", "w");
21413 if (((long int) (sizeof (long))) < 0)
21415 long int i = longval ();
21416 if (i != ((long int) (sizeof (long))))
21418 fprintf (f, "%ld", i);
21422 unsigned long int i = ulongval ();
21423 if (i != ((long int) (sizeof (long))))
21425 fprintf (f, "%lu", i);
21427 /* Do not output a trailing newline, as this causes \r\n confusion
21428 on some platforms. */
21429 return ferror (f) || fclose (f) != 0;
21435 rm -f conftest$ac_exeext
21436 if { (ac_try="$ac_link"
21437 case "(($ac_try" in
21438 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21439 *) ac_try_echo
=$ac_try;;
21441 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
21442 $as_echo "$ac_try_echo") >&5
21443 (eval "$ac_link") 2>&5
21445 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21446 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
21447 { (case "(($ac_try" in
21448 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21449 *) ac_try_echo=$ac_try;;
21451 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21452 $as_echo "$ac_try_echo") >&5
21453 (eval "$ac_try") 2>&5
21455 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21456 (exit $ac_status); }; }; then
21457 ac_cv_sizeof_long=`cat conftest.val
`
21459 $as_echo "$as_me: program exited with status $ac_status" >&5
21460 $as_echo "$as_me: failed program was:" >&5
21461 sed 's/^/| /' conftest.$ac_ext >&5
21463 ( exit $ac_status )
21464 if test "$ac_cv_type_long" = yes; then
21465 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
21466 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21467 { { $as_echo "$as_me:$LINENO: error
: cannot compute sizeof
(long
)
21468 See \
`config.log' for more details." >&5
21469 $as_echo "$as_me: error: cannot compute sizeof (long)
21470 See \`config.log
' for more details." >&2;}
21471 { (exit 77); exit 77; }; }; }
21473 ac_cv_sizeof_long=0
21476 rm -rf conftest.dSYM
21477 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21481 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
21482 $as_echo "$ac_cv_sizeof_long" >&6; }
21486 cat >>confdefs.h <<_ACEOF
21487 #define SIZEOF_LONG $ac_cv_sizeof_long
21491 # The cast to long int works around a bug in the HP C Compiler
21492 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21493 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21494 # This bug is HP SR number 8606223364.
21495 { $as_echo "$as_me:$LINENO: checking size of char *" >&5
21496 $as_echo_n "checking size of char *... " >&6; }
21497 if test "${ac_cv_sizeof_char_p+set}" = set; then
21498 $as_echo_n "(cached) " >&6
21500 if test "$cross_compiling" = yes; then
21501 # Depending upon the size, compute the lo and hi bounds.
21502 cat >conftest.
$ac_ext <<_ACEOF
21505 cat confdefs.h
>>conftest.
$ac_ext
21506 cat >>conftest.
$ac_ext <<_ACEOF
21507 /* end confdefs.h. */
21508 $ac_includes_default
21512 static int test_array [1 - 2 * !(((long int) (sizeof (char *))) >= 0)];
21519 rm -f conftest.
$ac_objext
21520 if { (ac_try
="$ac_compile"
21521 case "(($ac_try" in
21522 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21523 *) ac_try_echo=$ac_try;;
21525 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21526 $as_echo "$ac_try_echo") >&5
21527 (eval "$ac_compile") 2>conftest.er1
21529 grep -v '^ *+' conftest.er1 >conftest.err
21531 cat conftest.err >&5
21532 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21533 (exit $ac_status); } && {
21534 test -z "$ac_c_werror_flag" ||
21535 test ! -s conftest.err
21536 } && test -s conftest.$ac_objext; then
21539 cat >conftest.$ac_ext <<_ACEOF
21542 cat confdefs.h >>conftest.$ac_ext
21543 cat >>conftest.$ac_ext <<_ACEOF
21544 /* end confdefs.h. */
21545 $ac_includes_default
21549 static int test_array [1 - 2 * !(((long int) (sizeof (char *))) <= $ac_mid)];
21556 rm -f conftest.$ac_objext
21557 if { (ac_try="$ac_compile"
21558 case "(($ac_try" in
21559 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21560 *) ac_try_echo
=$ac_try;;
21562 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
21563 $as_echo "$ac_try_echo") >&5
21564 (eval "$ac_compile") 2>conftest.er1
21566 grep -v '^ *+' conftest.er1
>conftest.err
21568 cat conftest.err
>&5
21569 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21570 (exit $ac_status); } && {
21571 test -z "$ac_c_werror_flag" ||
21572 test ! -s conftest.err
21573 } && test -s conftest.
$ac_objext; then
21574 ac_hi
=$ac_mid; break
21576 $as_echo "$as_me: failed program was:" >&5
21577 sed 's/^/| /' conftest.
$ac_ext >&5
21579 ac_lo
=`expr $ac_mid + 1`
21580 if test $ac_lo -le $ac_mid; then
21584 ac_mid
=`expr 2 '*' $ac_mid + 1`
21587 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21590 $as_echo "$as_me: failed program was:" >&5
21591 sed 's/^/| /' conftest.
$ac_ext >&5
21593 cat >conftest.
$ac_ext <<_ACEOF
21596 cat confdefs.h
>>conftest.
$ac_ext
21597 cat >>conftest.
$ac_ext <<_ACEOF
21598 /* end confdefs.h. */
21599 $ac_includes_default
21603 static int test_array [1 - 2 * !(((long int) (sizeof (char *))) < 0)];
21610 rm -f conftest.
$ac_objext
21611 if { (ac_try
="$ac_compile"
21612 case "(($ac_try" in
21613 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21614 *) ac_try_echo=$ac_try;;
21616 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21617 $as_echo "$ac_try_echo") >&5
21618 (eval "$ac_compile") 2>conftest.er1
21620 grep -v '^ *+' conftest.er1 >conftest.err
21622 cat conftest.err >&5
21623 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21624 (exit $ac_status); } && {
21625 test -z "$ac_c_werror_flag" ||
21626 test ! -s conftest.err
21627 } && test -s conftest.$ac_objext; then
21630 cat >conftest.$ac_ext <<_ACEOF
21633 cat confdefs.h >>conftest.$ac_ext
21634 cat >>conftest.$ac_ext <<_ACEOF
21635 /* end confdefs.h. */
21636 $ac_includes_default
21640 static int test_array [1 - 2 * !(((long int) (sizeof (char *))) >= $ac_mid)];
21647 rm -f conftest.$ac_objext
21648 if { (ac_try="$ac_compile"
21649 case "(($ac_try" in
21650 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21651 *) ac_try_echo
=$ac_try;;
21653 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
21654 $as_echo "$ac_try_echo") >&5
21655 (eval "$ac_compile") 2>conftest.er1
21657 grep -v '^ *+' conftest.er1
>conftest.err
21659 cat conftest.err
>&5
21660 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21661 (exit $ac_status); } && {
21662 test -z "$ac_c_werror_flag" ||
21663 test ! -s conftest.err
21664 } && test -s conftest.
$ac_objext; then
21665 ac_lo
=$ac_mid; break
21667 $as_echo "$as_me: failed program was:" >&5
21668 sed 's/^/| /' conftest.
$ac_ext >&5
21670 ac_hi
=`expr '(' $ac_mid ')' - 1`
21671 if test $ac_mid -le $ac_hi; then
21675 ac_mid
=`expr 2 '*' $ac_mid`
21678 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21681 $as_echo "$as_me: failed program was:" >&5
21682 sed 's/^/| /' conftest.
$ac_ext >&5
21687 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21690 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21691 # Binary search between lo and hi bounds.
21692 while test "x$ac_lo" != "x$ac_hi"; do
21693 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21694 cat >conftest.
$ac_ext <<_ACEOF
21697 cat confdefs.h
>>conftest.
$ac_ext
21698 cat >>conftest.
$ac_ext <<_ACEOF
21699 /* end confdefs.h. */
21700 $ac_includes_default
21704 static int test_array [1 - 2 * !(((long int) (sizeof (char *))) <= $ac_mid)];
21711 rm -f conftest.
$ac_objext
21712 if { (ac_try
="$ac_compile"
21713 case "(($ac_try" in
21714 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21715 *) ac_try_echo=$ac_try;;
21717 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21718 $as_echo "$ac_try_echo") >&5
21719 (eval "$ac_compile") 2>conftest.er1
21721 grep -v '^ *+' conftest.er1 >conftest.err
21723 cat conftest.err >&5
21724 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21725 (exit $ac_status); } && {
21726 test -z "$ac_c_werror_flag" ||
21727 test ! -s conftest.err
21728 } && test -s conftest.$ac_objext; then
21731 $as_echo "$as_me: failed program was:" >&5
21732 sed 's/^/| /' conftest.$ac_ext >&5
21734 ac_lo=`expr '(' $ac_mid ')' + 1`
21737 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21740 ?*) ac_cv_sizeof_char_p=$ac_lo;;
21741 '') if test "$ac_cv_type_char_p" = yes; then
21742 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
21743 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21744 { { $as_echo "$as_me:$LINENO: error
: cannot compute sizeof
(char
*)
21745 See \
`config.log' for more details." >&5
21746 $as_echo "$as_me: error: cannot compute sizeof (char *)
21747 See \`config.log
' for more details." >&2;}
21748 { (exit 77); exit 77; }; }; }
21750 ac_cv_sizeof_char_p=0
21754 cat >conftest.$ac_ext <<_ACEOF
21757 cat confdefs.h >>conftest.$ac_ext
21758 cat >>conftest.$ac_ext <<_ACEOF
21759 /* end confdefs.h. */
21760 $ac_includes_default
21761 static long int longval () { return (long int) (sizeof (char *)); }
21762 static unsigned long int ulongval () { return (long int) (sizeof (char *)); }
21764 #include <stdlib.h>
21769 FILE *f = fopen ("conftest.val", "w");
21772 if (((long int) (sizeof (char *))) < 0)
21774 long int i = longval ();
21775 if (i != ((long int) (sizeof (char *))))
21777 fprintf (f, "%ld", i);
21781 unsigned long int i = ulongval ();
21782 if (i != ((long int) (sizeof (char *))))
21784 fprintf (f, "%lu", i);
21786 /* Do not output a trailing newline, as this causes \r\n confusion
21787 on some platforms. */
21788 return ferror (f) || fclose (f) != 0;
21794 rm -f conftest$ac_exeext
21795 if { (ac_try="$ac_link"
21796 case "(($ac_try" in
21797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21798 *) ac_try_echo=$ac_try;;
21800 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21801 $as_echo "$ac_try_echo") >&5
21802 (eval "$ac_link") 2>&5
21804 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21805 (exit $ac_status); } && { ac_try='.
/conftest
$ac_exeext'
21806 { (case "(($ac_try" in
21807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21808 *) ac_try_echo=$ac_try;;
21810 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21811 $as_echo "$ac_try_echo") >&5
21812 (eval "$ac_try") 2>&5
21814 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21815 (exit $ac_status); }; }; then
21816 ac_cv_sizeof_char_p=`cat conftest.val`
21818 $as_echo "$as_me: program exited with status $ac_status" >&5
21819 $as_echo "$as_me: failed program was:" >&5
21820 sed 's
/^
/|
/' conftest.$ac_ext >&5
21822 ( exit $ac_status )
21823 if test "$ac_cv_type_char_p" = yes; then
21824 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
21825 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
21826 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (char *)
21827 See \`config.log
' for more details." >&5
21828 $as_echo "$as_me: error: cannot compute sizeof (char *)
21829 See \`config.log' for more details.
" >&2;}
21830 { (exit 77); exit 77; }; }; }
21832 ac_cv_sizeof_char_p=0
21835 rm -rf conftest.dSYM
21836 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21840 { $as_echo "$as_me:$LINENO: result
: $ac_cv_sizeof_char_p" >&5
21841 $as_echo "$ac_cv_sizeof_char_p" >&6; }
21845 cat >>confdefs.h <<_ACEOF
21846 #define SIZEOF_CHAR_P $ac_cv_sizeof_char_p
21850 # The cast to long int works around a bug in the HP C Compiler
21851 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21852 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21853 # This bug is HP SR number 8606223364.
21854 { $as_echo "$as_me:$LINENO: checking size of double
" >&5
21855 $as_echo_n "checking size of double...
" >&6; }
21856 if test "${ac_cv_sizeof_double+set}" = set; then
21857 $as_echo_n "(cached
) " >&6
21859 if test "$cross_compiling" = yes; then
21860 # Depending upon the size, compute the lo and hi bounds.
21861 cat >conftest.$ac_ext <<_ACEOF
21864 cat confdefs.h >>conftest.$ac_ext
21865 cat >>conftest.$ac_ext <<_ACEOF
21866 /* end confdefs.h. */
21867 $ac_includes_default
21871 static int test_array [1 - 2 * !(((long int) (sizeof (double))) >= 0)];
21878 rm -f conftest.$ac_objext
21879 if { (ac_try="$ac_compile"
21880 case "(($ac_try" in
21881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21882 *) ac_try_echo=$ac_try;;
21884 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
21885 $as_echo "$ac_try_echo") >&5
21886 (eval "$ac_compile") 2>conftest.er1
21888 grep -v '^ *+' conftest.er1 >conftest.err
21890 cat conftest.err >&5
21891 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21892 (exit $ac_status); } && {
21893 test -z "$ac_c_werror_flag" ||
21894 test ! -s conftest.err
21895 } && test -s conftest.$ac_objext; then
21898 cat >conftest.$ac_ext <<_ACEOF
21901 cat confdefs.h >>conftest.$ac_ext
21902 cat >>conftest.$ac_ext <<_ACEOF
21903 /* end confdefs.h. */
21904 $ac_includes_default
21908 static int test_array [1 - 2 * !(((long int) (sizeof (double))) <= $ac_mid)];
21915 rm -f conftest.$ac_objext
21916 if { (ac_try="$ac_compile"
21917 case "(($ac_try" in
21918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21919 *) ac_try_echo=$ac_try;;
21921 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
21922 $as_echo "$ac_try_echo") >&5
21923 (eval "$ac_compile") 2>conftest.er1
21925 grep -v '^ *+' conftest.er1 >conftest.err
21927 cat conftest.err >&5
21928 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21929 (exit $ac_status); } && {
21930 test -z "$ac_c_werror_flag" ||
21931 test ! -s conftest.err
21932 } && test -s conftest.$ac_objext; then
21933 ac_hi=$ac_mid; break
21935 $as_echo "$as_me: failed program was
:" >&5
21936 sed 's/^/| /' conftest.$ac_ext >&5
21938 ac_lo=`expr $ac_mid + 1`
21939 if test $ac_lo -le $ac_mid; then
21943 ac_mid=`expr 2 '*' $ac_mid + 1`
21946 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21949 $as_echo "$as_me: failed program was
:" >&5
21950 sed 's/^/| /' conftest.$ac_ext >&5
21952 cat >conftest.$ac_ext <<_ACEOF
21955 cat confdefs.h >>conftest.$ac_ext
21956 cat >>conftest.$ac_ext <<_ACEOF
21957 /* end confdefs.h. */
21958 $ac_includes_default
21962 static int test_array [1 - 2 * !(((long int) (sizeof (double))) < 0)];
21969 rm -f conftest.$ac_objext
21970 if { (ac_try="$ac_compile"
21971 case "(($ac_try" in
21972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21973 *) ac_try_echo=$ac_try;;
21975 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
21976 $as_echo "$ac_try_echo") >&5
21977 (eval "$ac_compile") 2>conftest.er1
21979 grep -v '^ *+' conftest.er1 >conftest.err
21981 cat conftest.err >&5
21982 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21983 (exit $ac_status); } && {
21984 test -z "$ac_c_werror_flag" ||
21985 test ! -s conftest.err
21986 } && test -s conftest.$ac_objext; then
21989 cat >conftest.$ac_ext <<_ACEOF
21992 cat confdefs.h >>conftest.$ac_ext
21993 cat >>conftest.$ac_ext <<_ACEOF
21994 /* end confdefs.h. */
21995 $ac_includes_default
21999 static int test_array [1 - 2 * !(((long int) (sizeof (double))) >= $ac_mid)];
22006 rm -f conftest.$ac_objext
22007 if { (ac_try="$ac_compile"
22008 case "(($ac_try" in
22009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22010 *) ac_try_echo=$ac_try;;
22012 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
22013 $as_echo "$ac_try_echo") >&5
22014 (eval "$ac_compile") 2>conftest.er1
22016 grep -v '^ *+' conftest.er1 >conftest.err
22018 cat conftest.err >&5
22019 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22020 (exit $ac_status); } && {
22021 test -z "$ac_c_werror_flag" ||
22022 test ! -s conftest.err
22023 } && test -s conftest.$ac_objext; then
22024 ac_lo=$ac_mid; break
22026 $as_echo "$as_me: failed program was
:" >&5
22027 sed 's/^/| /' conftest.$ac_ext >&5
22029 ac_hi=`expr '(' $ac_mid ')' - 1`
22030 if test $ac_mid -le $ac_hi; then
22034 ac_mid=`expr 2 '*' $ac_mid`
22037 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22040 $as_echo "$as_me: failed program was
:" >&5
22041 sed 's/^/| /' conftest.$ac_ext >&5
22046 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22049 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22050 # Binary search between lo and hi bounds.
22051 while test "x
$ac_lo" != "x
$ac_hi"; do
22052 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22053 cat >conftest.$ac_ext <<_ACEOF
22056 cat confdefs.h >>conftest.$ac_ext
22057 cat >>conftest.$ac_ext <<_ACEOF
22058 /* end confdefs.h. */
22059 $ac_includes_default
22063 static int test_array [1 - 2 * !(((long int) (sizeof (double))) <= $ac_mid)];
22070 rm -f conftest.$ac_objext
22071 if { (ac_try="$ac_compile"
22072 case "(($ac_try" in
22073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22074 *) ac_try_echo=$ac_try;;
22076 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
22077 $as_echo "$ac_try_echo") >&5
22078 (eval "$ac_compile") 2>conftest.er1
22080 grep -v '^ *+' conftest.er1 >conftest.err
22082 cat conftest.err >&5
22083 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22084 (exit $ac_status); } && {
22085 test -z "$ac_c_werror_flag" ||
22086 test ! -s conftest.err
22087 } && test -s conftest.$ac_objext; then
22090 $as_echo "$as_me: failed program was
:" >&5
22091 sed 's/^/| /' conftest.$ac_ext >&5
22093 ac_lo=`expr '(' $ac_mid ')' + 1`
22096 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22099 ?*) ac_cv_sizeof_double=$ac_lo;;
22100 '') if test "$ac_cv_type_double" = yes; then
22101 { { $as_echo "$as_me:$LINENO: error
: in \
`$ac_pwd':" >&5
22102 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22103 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (double)
22104 See \`config.log' for more details.
" >&5
22105 $as_echo "$as_me: error
: cannot compute sizeof
(double
)
22106 See \
`config.log' for more details." >&2;}
22107 { (exit 77); exit 77; }; }; }
22109 ac_cv_sizeof_double=0
22113 cat >conftest.$ac_ext <<_ACEOF
22116 cat confdefs.h >>conftest.$ac_ext
22117 cat >>conftest.$ac_ext <<_ACEOF
22118 /* end confdefs.h. */
22119 $ac_includes_default
22120 static long int longval () { return (long int) (sizeof (double)); }
22121 static unsigned long int ulongval () { return (long int) (sizeof (double)); }
22123 #include <stdlib.h>
22128 FILE *f = fopen ("conftest.val", "w");
22131 if (((long int) (sizeof (double))) < 0)
22133 long int i = longval ();
22134 if (i != ((long int) (sizeof (double))))
22136 fprintf (f, "%ld", i);
22140 unsigned long int i = ulongval ();
22141 if (i != ((long int) (sizeof (double))))
22143 fprintf (f, "%lu", i);
22145 /* Do not output a trailing newline, as this causes \r\n confusion
22146 on some platforms. */
22147 return ferror (f) || fclose (f) != 0;
22153 rm -f conftest$ac_exeext
22154 if { (ac_try="$ac_link"
22155 case "(($ac_try" in
22156 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22157 *) ac_try_echo
=$ac_try;;
22159 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
22160 $as_echo "$ac_try_echo") >&5
22161 (eval "$ac_link") 2>&5
22163 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22164 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
22165 { (case "(($ac_try" in
22166 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22167 *) ac_try_echo=$ac_try;;
22169 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22170 $as_echo "$ac_try_echo") >&5
22171 (eval "$ac_try") 2>&5
22173 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22174 (exit $ac_status); }; }; then
22175 ac_cv_sizeof_double=`cat conftest.val
`
22177 $as_echo "$as_me: program exited with status $ac_status" >&5
22178 $as_echo "$as_me: failed program was:" >&5
22179 sed 's/^/| /' conftest.$ac_ext >&5
22181 ( exit $ac_status )
22182 if test "$ac_cv_type_double" = yes; then
22183 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
22184 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22185 { { $as_echo "$as_me:$LINENO: error
: cannot compute sizeof
(double
)
22186 See \
`config.log' for more details." >&5
22187 $as_echo "$as_me: error: cannot compute sizeof (double)
22188 See \`config.log
' for more details." >&2;}
22189 { (exit 77); exit 77; }; }; }
22191 ac_cv_sizeof_double=0
22194 rm -rf conftest.dSYM
22195 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22199 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_double" >&5
22200 $as_echo "$ac_cv_sizeof_double" >&6; }
22204 cat >>confdefs.h <<_ACEOF
22205 #define SIZEOF_DOUBLE $ac_cv_sizeof_double
22209 # The cast to long int works around a bug in the HP C Compiler
22210 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22211 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22212 # This bug is HP SR number 8606223364.
22213 { $as_echo "$as_me:$LINENO: checking size of long long" >&5
22214 $as_echo_n "checking size of long long... " >&6; }
22215 if test "${ac_cv_sizeof_long_long+set}" = set; then
22216 $as_echo_n "(cached) " >&6
22218 if test "$cross_compiling" = yes; then
22219 # Depending upon the size, compute the lo and hi bounds.
22220 cat >conftest.
$ac_ext <<_ACEOF
22223 cat confdefs.h
>>conftest.
$ac_ext
22224 cat >>conftest.
$ac_ext <<_ACEOF
22225 /* end confdefs.h. */
22226 $ac_includes_default
22230 static int test_array [1 - 2 * !(((long int) (sizeof (long long))) >= 0)];
22237 rm -f conftest.
$ac_objext
22238 if { (ac_try
="$ac_compile"
22239 case "(($ac_try" in
22240 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22241 *) ac_try_echo=$ac_try;;
22243 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22244 $as_echo "$ac_try_echo") >&5
22245 (eval "$ac_compile") 2>conftest.er1
22247 grep -v '^ *+' conftest.er1 >conftest.err
22249 cat conftest.err >&5
22250 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22251 (exit $ac_status); } && {
22252 test -z "$ac_c_werror_flag" ||
22253 test ! -s conftest.err
22254 } && test -s conftest.$ac_objext; then
22257 cat >conftest.$ac_ext <<_ACEOF
22260 cat confdefs.h >>conftest.$ac_ext
22261 cat >>conftest.$ac_ext <<_ACEOF
22262 /* end confdefs.h. */
22263 $ac_includes_default
22267 static int test_array [1 - 2 * !(((long int) (sizeof (long long))) <= $ac_mid)];
22274 rm -f conftest.$ac_objext
22275 if { (ac_try="$ac_compile"
22276 case "(($ac_try" in
22277 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22278 *) ac_try_echo
=$ac_try;;
22280 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
22281 $as_echo "$ac_try_echo") >&5
22282 (eval "$ac_compile") 2>conftest.er1
22284 grep -v '^ *+' conftest.er1
>conftest.err
22286 cat conftest.err
>&5
22287 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22288 (exit $ac_status); } && {
22289 test -z "$ac_c_werror_flag" ||
22290 test ! -s conftest.err
22291 } && test -s conftest.
$ac_objext; then
22292 ac_hi
=$ac_mid; break
22294 $as_echo "$as_me: failed program was:" >&5
22295 sed 's/^/| /' conftest.
$ac_ext >&5
22297 ac_lo
=`expr $ac_mid + 1`
22298 if test $ac_lo -le $ac_mid; then
22302 ac_mid
=`expr 2 '*' $ac_mid + 1`
22305 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22308 $as_echo "$as_me: failed program was:" >&5
22309 sed 's/^/| /' conftest.
$ac_ext >&5
22311 cat >conftest.
$ac_ext <<_ACEOF
22314 cat confdefs.h
>>conftest.
$ac_ext
22315 cat >>conftest.
$ac_ext <<_ACEOF
22316 /* end confdefs.h. */
22317 $ac_includes_default
22321 static int test_array [1 - 2 * !(((long int) (sizeof (long long))) < 0)];
22328 rm -f conftest.
$ac_objext
22329 if { (ac_try
="$ac_compile"
22330 case "(($ac_try" in
22331 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22332 *) ac_try_echo=$ac_try;;
22334 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22335 $as_echo "$ac_try_echo") >&5
22336 (eval "$ac_compile") 2>conftest.er1
22338 grep -v '^ *+' conftest.er1 >conftest.err
22340 cat conftest.err >&5
22341 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22342 (exit $ac_status); } && {
22343 test -z "$ac_c_werror_flag" ||
22344 test ! -s conftest.err
22345 } && test -s conftest.$ac_objext; then
22348 cat >conftest.$ac_ext <<_ACEOF
22351 cat confdefs.h >>conftest.$ac_ext
22352 cat >>conftest.$ac_ext <<_ACEOF
22353 /* end confdefs.h. */
22354 $ac_includes_default
22358 static int test_array [1 - 2 * !(((long int) (sizeof (long long))) >= $ac_mid)];
22365 rm -f conftest.$ac_objext
22366 if { (ac_try="$ac_compile"
22367 case "(($ac_try" in
22368 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22369 *) ac_try_echo
=$ac_try;;
22371 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
22372 $as_echo "$ac_try_echo") >&5
22373 (eval "$ac_compile") 2>conftest.er1
22375 grep -v '^ *+' conftest.er1
>conftest.err
22377 cat conftest.err
>&5
22378 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22379 (exit $ac_status); } && {
22380 test -z "$ac_c_werror_flag" ||
22381 test ! -s conftest.err
22382 } && test -s conftest.
$ac_objext; then
22383 ac_lo
=$ac_mid; break
22385 $as_echo "$as_me: failed program was:" >&5
22386 sed 's/^/| /' conftest.
$ac_ext >&5
22388 ac_hi
=`expr '(' $ac_mid ')' - 1`
22389 if test $ac_mid -le $ac_hi; then
22393 ac_mid
=`expr 2 '*' $ac_mid`
22396 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22399 $as_echo "$as_me: failed program was:" >&5
22400 sed 's/^/| /' conftest.
$ac_ext >&5
22405 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22408 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22409 # Binary search between lo and hi bounds.
22410 while test "x$ac_lo" != "x$ac_hi"; do
22411 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22412 cat >conftest.
$ac_ext <<_ACEOF
22415 cat confdefs.h
>>conftest.
$ac_ext
22416 cat >>conftest.
$ac_ext <<_ACEOF
22417 /* end confdefs.h. */
22418 $ac_includes_default
22422 static int test_array [1 - 2 * !(((long int) (sizeof (long long))) <= $ac_mid)];
22429 rm -f conftest.
$ac_objext
22430 if { (ac_try
="$ac_compile"
22431 case "(($ac_try" in
22432 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22433 *) ac_try_echo=$ac_try;;
22435 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22436 $as_echo "$ac_try_echo") >&5
22437 (eval "$ac_compile") 2>conftest.er1
22439 grep -v '^ *+' conftest.er1 >conftest.err
22441 cat conftest.err >&5
22442 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22443 (exit $ac_status); } && {
22444 test -z "$ac_c_werror_flag" ||
22445 test ! -s conftest.err
22446 } && test -s conftest.$ac_objext; then
22449 $as_echo "$as_me: failed program was:" >&5
22450 sed 's/^/| /' conftest.$ac_ext >&5
22452 ac_lo=`expr '(' $ac_mid ')' + 1`
22455 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22458 ?*) ac_cv_sizeof_long_long=$ac_lo;;
22459 '') if test "$ac_cv_type_long_long" = yes; then
22460 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
22461 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22462 { { $as_echo "$as_me:$LINENO: error
: cannot compute sizeof
(long long
)
22463 See \
`config.log' for more details." >&5
22464 $as_echo "$as_me: error: cannot compute sizeof (long long)
22465 See \`config.log
' for more details." >&2;}
22466 { (exit 77); exit 77; }; }; }
22468 ac_cv_sizeof_long_long=0
22472 cat >conftest.$ac_ext <<_ACEOF
22475 cat confdefs.h >>conftest.$ac_ext
22476 cat >>conftest.$ac_ext <<_ACEOF
22477 /* end confdefs.h. */
22478 $ac_includes_default
22479 static long int longval () { return (long int) (sizeof (long long)); }
22480 static unsigned long int ulongval () { return (long int) (sizeof (long long)); }
22482 #include <stdlib.h>
22487 FILE *f = fopen ("conftest.val", "w");
22490 if (((long int) (sizeof (long long))) < 0)
22492 long int i = longval ();
22493 if (i != ((long int) (sizeof (long long))))
22495 fprintf (f, "%ld", i);
22499 unsigned long int i = ulongval ();
22500 if (i != ((long int) (sizeof (long long))))
22502 fprintf (f, "%lu", i);
22504 /* Do not output a trailing newline, as this causes \r\n confusion
22505 on some platforms. */
22506 return ferror (f) || fclose (f) != 0;
22512 rm -f conftest$ac_exeext
22513 if { (ac_try="$ac_link"
22514 case "(($ac_try" in
22515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22516 *) ac_try_echo=$ac_try;;
22518 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22519 $as_echo "$ac_try_echo") >&5
22520 (eval "$ac_link") 2>&5
22522 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22523 (exit $ac_status); } && { ac_try='.
/conftest
$ac_exeext'
22524 { (case "(($ac_try" in
22525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22526 *) ac_try_echo=$ac_try;;
22528 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22529 $as_echo "$ac_try_echo") >&5
22530 (eval "$ac_try") 2>&5
22532 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22533 (exit $ac_status); }; }; then
22534 ac_cv_sizeof_long_long=`cat conftest.val`
22536 $as_echo "$as_me: program exited with status $ac_status" >&5
22537 $as_echo "$as_me: failed program was:" >&5
22538 sed 's
/^
/|
/' conftest.$ac_ext >&5
22540 ( exit $ac_status )
22541 if test "$ac_cv_type_long_long" = yes; then
22542 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
22543 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
22544 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
22545 See \`config.log
' for more details." >&5
22546 $as_echo "$as_me: error: cannot compute sizeof (long long)
22547 See \`config.log' for more details.
" >&2;}
22548 { (exit 77); exit 77; }; }; }
22550 ac_cv_sizeof_long_long=0
22553 rm -rf conftest.dSYM
22554 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22558 { $as_echo "$as_me:$LINENO: result
: $ac_cv_sizeof_long_long" >&5
22559 $as_echo "$ac_cv_sizeof_long_long" >&6; }
22563 cat >>confdefs.h <<_ACEOF
22564 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
22569 { $as_echo "$as_me:$LINENO: checking
for u_int
" >&5
22570 $as_echo_n "checking
for u_int...
" >&6; }
22571 if test "${ac_cv_type_u_int+set}" = set; then
22572 $as_echo_n "(cached
) " >&6
22574 ac_cv_type_u_int=no
22575 cat >conftest.$ac_ext <<_ACEOF
22578 cat confdefs.h >>conftest.$ac_ext
22579 cat >>conftest.$ac_ext <<_ACEOF
22580 /* end confdefs.h. */
22581 $ac_includes_default
22585 if (sizeof (u_int))
22591 rm -f conftest.$ac_objext
22592 if { (ac_try="$ac_compile"
22593 case "(($ac_try" in
22594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22595 *) ac_try_echo=$ac_try;;
22597 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
22598 $as_echo "$ac_try_echo") >&5
22599 (eval "$ac_compile") 2>conftest.er1
22601 grep -v '^ *+' conftest.er1 >conftest.err
22603 cat conftest.err >&5
22604 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22605 (exit $ac_status); } && {
22606 test -z "$ac_c_werror_flag" ||
22607 test ! -s conftest.err
22608 } && test -s conftest.$ac_objext; then
22609 cat >conftest.$ac_ext <<_ACEOF
22612 cat confdefs.h >>conftest.$ac_ext
22613 cat >>conftest.$ac_ext <<_ACEOF
22614 /* end confdefs.h. */
22615 $ac_includes_default
22619 if (sizeof ((u_int)))
22625 rm -f conftest.$ac_objext
22626 if { (ac_try="$ac_compile"
22627 case "(($ac_try" in
22628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22629 *) ac_try_echo=$ac_try;;
22631 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
22632 $as_echo "$ac_try_echo") >&5
22633 (eval "$ac_compile") 2>conftest.er1
22635 grep -v '^ *+' conftest.er1 >conftest.err
22637 cat conftest.err >&5
22638 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22639 (exit $ac_status); } && {
22640 test -z "$ac_c_werror_flag" ||
22641 test ! -s conftest.err
22642 } && test -s conftest.$ac_objext; then
22645 $as_echo "$as_me: failed program was
:" >&5
22646 sed 's/^/| /' conftest.$ac_ext >&5
22648 ac_cv_type_u_int=yes
22651 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22653 $as_echo "$as_me: failed program was
:" >&5
22654 sed 's/^/| /' conftest.$ac_ext >&5
22659 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22661 { $as_echo "$as_me:$LINENO: result
: $ac_cv_type_u_int" >&5
22662 $as_echo "$ac_cv_type_u_int" >&6; }
22663 if test "x
$ac_cv_type_u_int" = x""yes; then
22667 cat >>confdefs.h <<_ACEOF
22668 #define u_int unsigned int
22673 { $as_echo "$as_me:$LINENO: checking
for u_long
" >&5
22674 $as_echo_n "checking
for u_long...
" >&6; }
22675 if test "${ac_cv_type_u_long+set}" = set; then
22676 $as_echo_n "(cached
) " >&6
22678 ac_cv_type_u_long=no
22679 cat >conftest.$ac_ext <<_ACEOF
22682 cat confdefs.h >>conftest.$ac_ext
22683 cat >>conftest.$ac_ext <<_ACEOF
22684 /* end confdefs.h. */
22685 $ac_includes_default
22689 if (sizeof (u_long))
22695 rm -f conftest.$ac_objext
22696 if { (ac_try="$ac_compile"
22697 case "(($ac_try" in
22698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22699 *) ac_try_echo=$ac_try;;
22701 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
22702 $as_echo "$ac_try_echo") >&5
22703 (eval "$ac_compile") 2>conftest.er1
22705 grep -v '^ *+' conftest.er1 >conftest.err
22707 cat conftest.err >&5
22708 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22709 (exit $ac_status); } && {
22710 test -z "$ac_c_werror_flag" ||
22711 test ! -s conftest.err
22712 } && test -s conftest.$ac_objext; then
22713 cat >conftest.$ac_ext <<_ACEOF
22716 cat confdefs.h >>conftest.$ac_ext
22717 cat >>conftest.$ac_ext <<_ACEOF
22718 /* end confdefs.h. */
22719 $ac_includes_default
22723 if (sizeof ((u_long)))
22729 rm -f conftest.$ac_objext
22730 if { (ac_try="$ac_compile"
22731 case "(($ac_try" in
22732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22733 *) ac_try_echo=$ac_try;;
22735 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
22736 $as_echo "$ac_try_echo") >&5
22737 (eval "$ac_compile") 2>conftest.er1
22739 grep -v '^ *+' conftest.er1 >conftest.err
22741 cat conftest.err >&5
22742 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22743 (exit $ac_status); } && {
22744 test -z "$ac_c_werror_flag" ||
22745 test ! -s conftest.err
22746 } && test -s conftest.$ac_objext; then
22749 $as_echo "$as_me: failed program was
:" >&5
22750 sed 's/^/| /' conftest.$ac_ext >&5
22752 ac_cv_type_u_long=yes
22755 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22757 $as_echo "$as_me: failed program was
:" >&5
22758 sed 's/^/| /' conftest.$ac_ext >&5
22763 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22765 { $as_echo "$as_me:$LINENO: result
: $ac_cv_type_u_long" >&5
22766 $as_echo "$ac_cv_type_u_long" >&6; }
22767 if test "x
$ac_cv_type_u_long" = x""yes; then
22771 cat >>confdefs.h <<_ACEOF
22772 #define u_long unsigned long
22779 if test "$ac_cv_sizeof_short" = 2; then
22780 { $as_echo "$as_me:$LINENO: checking
for bits16_t
" >&5
22781 $as_echo_n "checking
for bits16_t...
" >&6; }
22782 if test "${ac_cv_type_bits16_t+set}" = set; then
22783 $as_echo_n "(cached
) " >&6
22785 ac_cv_type_bits16_t=no
22786 cat >conftest.$ac_ext <<_ACEOF
22789 cat confdefs.h >>conftest.$ac_ext
22790 cat >>conftest.$ac_ext <<_ACEOF
22791 /* end confdefs.h. */
22792 $ac_includes_default
22796 if (sizeof (bits16_t))
22802 rm -f conftest.$ac_objext
22803 if { (ac_try="$ac_compile"
22804 case "(($ac_try" in
22805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22806 *) ac_try_echo=$ac_try;;
22808 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
22809 $as_echo "$ac_try_echo") >&5
22810 (eval "$ac_compile") 2>conftest.er1
22812 grep -v '^ *+' conftest.er1 >conftest.err
22814 cat conftest.err >&5
22815 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22816 (exit $ac_status); } && {
22817 test -z "$ac_c_werror_flag" ||
22818 test ! -s conftest.err
22819 } && test -s conftest.$ac_objext; then
22820 cat >conftest.$ac_ext <<_ACEOF
22823 cat confdefs.h >>conftest.$ac_ext
22824 cat >>conftest.$ac_ext <<_ACEOF
22825 /* end confdefs.h. */
22826 $ac_includes_default
22830 if (sizeof ((bits16_t)))
22836 rm -f conftest.$ac_objext
22837 if { (ac_try="$ac_compile"
22838 case "(($ac_try" in
22839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22840 *) ac_try_echo=$ac_try;;
22842 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
22843 $as_echo "$ac_try_echo") >&5
22844 (eval "$ac_compile") 2>conftest.er1
22846 grep -v '^ *+' conftest.er1 >conftest.err
22848 cat conftest.err >&5
22849 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22850 (exit $ac_status); } && {
22851 test -z "$ac_c_werror_flag" ||
22852 test ! -s conftest.err
22853 } && test -s conftest.$ac_objext; then
22856 $as_echo "$as_me: failed program was
:" >&5
22857 sed 's/^/| /' conftest.$ac_ext >&5
22859 ac_cv_type_bits16_t=yes
22862 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22864 $as_echo "$as_me: failed program was
:" >&5
22865 sed 's/^/| /' conftest.$ac_ext >&5
22870 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22872 { $as_echo "$as_me:$LINENO: result
: $ac_cv_type_bits16_t" >&5
22873 $as_echo "$ac_cv_type_bits16_t" >&6; }
22874 if test "x
$ac_cv_type_bits16_t" = x""yes; then
22878 cat >>confdefs.h <<_ACEOF
22879 #define bits16_t short
22884 elif test "$ac_cv_sizeof_char" = 2; then
22885 { $as_echo "$as_me:$LINENO: checking
for bits16_t
" >&5
22886 $as_echo_n "checking
for bits16_t...
" >&6; }
22887 if test "${ac_cv_type_bits16_t+set}" = set; then
22888 $as_echo_n "(cached
) " >&6
22890 ac_cv_type_bits16_t=no
22891 cat >conftest.$ac_ext <<_ACEOF
22894 cat confdefs.h >>conftest.$ac_ext
22895 cat >>conftest.$ac_ext <<_ACEOF
22896 /* end confdefs.h. */
22897 $ac_includes_default
22901 if (sizeof (bits16_t))
22907 rm -f conftest.$ac_objext
22908 if { (ac_try="$ac_compile"
22909 case "(($ac_try" in
22910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22911 *) ac_try_echo=$ac_try;;
22913 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
22914 $as_echo "$ac_try_echo") >&5
22915 (eval "$ac_compile") 2>conftest.er1
22917 grep -v '^ *+' conftest.er1 >conftest.err
22919 cat conftest.err >&5
22920 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22921 (exit $ac_status); } && {
22922 test -z "$ac_c_werror_flag" ||
22923 test ! -s conftest.err
22924 } && test -s conftest.$ac_objext; then
22925 cat >conftest.$ac_ext <<_ACEOF
22928 cat confdefs.h >>conftest.$ac_ext
22929 cat >>conftest.$ac_ext <<_ACEOF
22930 /* end confdefs.h. */
22931 $ac_includes_default
22935 if (sizeof ((bits16_t)))
22941 rm -f conftest.$ac_objext
22942 if { (ac_try="$ac_compile"
22943 case "(($ac_try" in
22944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22945 *) ac_try_echo=$ac_try;;
22947 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
22948 $as_echo "$ac_try_echo") >&5
22949 (eval "$ac_compile") 2>conftest.er1
22951 grep -v '^ *+' conftest.er1 >conftest.err
22953 cat conftest.err >&5
22954 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22955 (exit $ac_status); } && {
22956 test -z "$ac_c_werror_flag" ||
22957 test ! -s conftest.err
22958 } && test -s conftest.$ac_objext; then
22961 $as_echo "$as_me: failed program was
:" >&5
22962 sed 's/^/| /' conftest.$ac_ext >&5
22964 ac_cv_type_bits16_t=yes
22967 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22969 $as_echo "$as_me: failed program was
:" >&5
22970 sed 's/^/| /' conftest.$ac_ext >&5
22975 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22977 { $as_echo "$as_me:$LINENO: result
: $ac_cv_type_bits16_t" >&5
22978 $as_echo "$ac_cv_type_bits16_t" >&6; }
22979 if test "x
$ac_cv_type_bits16_t" = x""yes; then
22983 cat >>confdefs.h <<_ACEOF
22984 #define bits16_t char
22990 { $as_echo "$as_me:$LINENO: checking
for bits16_t
" >&5
22991 $as_echo_n "checking
for bits16_t...
" >&6; }
22992 if test "${ac_cv_type_bits16_t+set}" = set; then
22993 $as_echo_n "(cached
) " >&6
22995 ac_cv_type_bits16_t=no
22996 cat >conftest.$ac_ext <<_ACEOF
22999 cat confdefs.h >>conftest.$ac_ext
23000 cat >>conftest.$ac_ext <<_ACEOF
23001 /* end confdefs.h. */
23002 $ac_includes_default
23006 if (sizeof (bits16_t))
23012 rm -f conftest.$ac_objext
23013 if { (ac_try="$ac_compile"
23014 case "(($ac_try" in
23015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23016 *) ac_try_echo=$ac_try;;
23018 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
23019 $as_echo "$ac_try_echo") >&5
23020 (eval "$ac_compile") 2>conftest.er1
23022 grep -v '^ *+' conftest.er1 >conftest.err
23024 cat conftest.err >&5
23025 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23026 (exit $ac_status); } && {
23027 test -z "$ac_c_werror_flag" ||
23028 test ! -s conftest.err
23029 } && test -s conftest.$ac_objext; then
23030 cat >conftest.$ac_ext <<_ACEOF
23033 cat confdefs.h >>conftest.$ac_ext
23034 cat >>conftest.$ac_ext <<_ACEOF
23035 /* end confdefs.h. */
23036 $ac_includes_default
23040 if (sizeof ((bits16_t)))
23046 rm -f conftest.$ac_objext
23047 if { (ac_try="$ac_compile"
23048 case "(($ac_try" in
23049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23050 *) ac_try_echo=$ac_try;;
23052 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
23053 $as_echo "$ac_try_echo") >&5
23054 (eval "$ac_compile") 2>conftest.er1
23056 grep -v '^ *+' conftest.er1 >conftest.err
23058 cat conftest.err >&5
23059 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23060 (exit $ac_status); } && {
23061 test -z "$ac_c_werror_flag" ||
23062 test ! -s conftest.err
23063 } && test -s conftest.$ac_objext; then
23066 $as_echo "$as_me: failed program was
:" >&5
23067 sed 's/^/| /' conftest.$ac_ext >&5
23069 ac_cv_type_bits16_t=yes
23072 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23074 $as_echo "$as_me: failed program was
:" >&5
23075 sed 's/^/| /' conftest.$ac_ext >&5
23080 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23082 { $as_echo "$as_me:$LINENO: result
: $ac_cv_type_bits16_t" >&5
23083 $as_echo "$ac_cv_type_bits16_t" >&6; }
23084 if test "x
$ac_cv_type_bits16_t" = x""yes; then
23088 cat >>confdefs.h <<_ACEOF
23089 #define bits16_t short
23097 if test "$ac_cv_sizeof_short" = 2; then
23098 { $as_echo "$as_me:$LINENO: checking
for u_bits16_t
" >&5
23099 $as_echo_n "checking
for u_bits16_t...
" >&6; }
23100 if test "${ac_cv_type_u_bits16_t+set}" = set; then
23101 $as_echo_n "(cached
) " >&6
23103 ac_cv_type_u_bits16_t=no
23104 cat >conftest.$ac_ext <<_ACEOF
23107 cat confdefs.h >>conftest.$ac_ext
23108 cat >>conftest.$ac_ext <<_ACEOF
23109 /* end confdefs.h. */
23110 $ac_includes_default
23114 if (sizeof (u_bits16_t))
23120 rm -f conftest.$ac_objext
23121 if { (ac_try="$ac_compile"
23122 case "(($ac_try" in
23123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23124 *) ac_try_echo=$ac_try;;
23126 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
23127 $as_echo "$ac_try_echo") >&5
23128 (eval "$ac_compile") 2>conftest.er1
23130 grep -v '^ *+' conftest.er1 >conftest.err
23132 cat conftest.err >&5
23133 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23134 (exit $ac_status); } && {
23135 test -z "$ac_c_werror_flag" ||
23136 test ! -s conftest.err
23137 } && test -s conftest.$ac_objext; then
23138 cat >conftest.$ac_ext <<_ACEOF
23141 cat confdefs.h >>conftest.$ac_ext
23142 cat >>conftest.$ac_ext <<_ACEOF
23143 /* end confdefs.h. */
23144 $ac_includes_default
23148 if (sizeof ((u_bits16_t)))
23154 rm -f conftest.$ac_objext
23155 if { (ac_try="$ac_compile"
23156 case "(($ac_try" in
23157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23158 *) ac_try_echo=$ac_try;;
23160 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
23161 $as_echo "$ac_try_echo") >&5
23162 (eval "$ac_compile") 2>conftest.er1
23164 grep -v '^ *+' conftest.er1 >conftest.err
23166 cat conftest.err >&5
23167 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23168 (exit $ac_status); } && {
23169 test -z "$ac_c_werror_flag" ||
23170 test ! -s conftest.err
23171 } && test -s conftest.$ac_objext; then
23174 $as_echo "$as_me: failed program was
:" >&5
23175 sed 's/^/| /' conftest.$ac_ext >&5
23177 ac_cv_type_u_bits16_t=yes
23180 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23182 $as_echo "$as_me: failed program was
:" >&5
23183 sed 's/^/| /' conftest.$ac_ext >&5
23188 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23190 { $as_echo "$as_me:$LINENO: result
: $ac_cv_type_u_bits16_t" >&5
23191 $as_echo "$ac_cv_type_u_bits16_t" >&6; }
23192 if test "x
$ac_cv_type_u_bits16_t" = x""yes; then
23196 cat >>confdefs.h <<_ACEOF
23197 #define u_bits16_t unsigned short
23202 elif test "$ac_cv_sizeof_char" = 2; then
23203 { $as_echo "$as_me:$LINENO: checking
for u_bits16_t
" >&5
23204 $as_echo_n "checking
for u_bits16_t...
" >&6; }
23205 if test "${ac_cv_type_u_bits16_t+set}" = set; then
23206 $as_echo_n "(cached
) " >&6
23208 ac_cv_type_u_bits16_t=no
23209 cat >conftest.$ac_ext <<_ACEOF
23212 cat confdefs.h >>conftest.$ac_ext
23213 cat >>conftest.$ac_ext <<_ACEOF
23214 /* end confdefs.h. */
23215 $ac_includes_default
23219 if (sizeof (u_bits16_t))
23225 rm -f conftest.$ac_objext
23226 if { (ac_try="$ac_compile"
23227 case "(($ac_try" in
23228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23229 *) ac_try_echo=$ac_try;;
23231 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
23232 $as_echo "$ac_try_echo") >&5
23233 (eval "$ac_compile") 2>conftest.er1
23235 grep -v '^ *+' conftest.er1 >conftest.err
23237 cat conftest.err >&5
23238 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23239 (exit $ac_status); } && {
23240 test -z "$ac_c_werror_flag" ||
23241 test ! -s conftest.err
23242 } && test -s conftest.$ac_objext; then
23243 cat >conftest.$ac_ext <<_ACEOF
23246 cat confdefs.h >>conftest.$ac_ext
23247 cat >>conftest.$ac_ext <<_ACEOF
23248 /* end confdefs.h. */
23249 $ac_includes_default
23253 if (sizeof ((u_bits16_t)))
23259 rm -f conftest.$ac_objext
23260 if { (ac_try="$ac_compile"
23261 case "(($ac_try" in
23262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23263 *) ac_try_echo=$ac_try;;
23265 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
23266 $as_echo "$ac_try_echo") >&5
23267 (eval "$ac_compile") 2>conftest.er1
23269 grep -v '^ *+' conftest.er1 >conftest.err
23271 cat conftest.err >&5
23272 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23273 (exit $ac_status); } && {
23274 test -z "$ac_c_werror_flag" ||
23275 test ! -s conftest.err
23276 } && test -s conftest.$ac_objext; then
23279 $as_echo "$as_me: failed program was
:" >&5
23280 sed 's/^/| /' conftest.$ac_ext >&5
23282 ac_cv_type_u_bits16_t=yes
23285 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23287 $as_echo "$as_me: failed program was
:" >&5
23288 sed 's/^/| /' conftest.$ac_ext >&5
23293 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23295 { $as_echo "$as_me:$LINENO: result
: $ac_cv_type_u_bits16_t" >&5
23296 $as_echo "$ac_cv_type_u_bits16_t" >&6; }
23297 if test "x
$ac_cv_type_u_bits16_t" = x""yes; then
23301 cat >>confdefs.h <<_ACEOF
23302 #define u_bits16_t unsigned char
23308 { $as_echo "$as_me:$LINENO: checking
for u_bits16_t
" >&5
23309 $as_echo_n "checking
for u_bits16_t...
" >&6; }
23310 if test "${ac_cv_type_u_bits16_t+set}" = set; then
23311 $as_echo_n "(cached
) " >&6
23313 ac_cv_type_u_bits16_t=no
23314 cat >conftest.$ac_ext <<_ACEOF
23317 cat confdefs.h >>conftest.$ac_ext
23318 cat >>conftest.$ac_ext <<_ACEOF
23319 /* end confdefs.h. */
23320 $ac_includes_default
23324 if (sizeof (u_bits16_t))
23330 rm -f conftest.$ac_objext
23331 if { (ac_try="$ac_compile"
23332 case "(($ac_try" in
23333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23334 *) ac_try_echo=$ac_try;;
23336 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
23337 $as_echo "$ac_try_echo") >&5
23338 (eval "$ac_compile") 2>conftest.er1
23340 grep -v '^ *+' conftest.er1 >conftest.err
23342 cat conftest.err >&5
23343 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23344 (exit $ac_status); } && {
23345 test -z "$ac_c_werror_flag" ||
23346 test ! -s conftest.err
23347 } && test -s conftest.$ac_objext; then
23348 cat >conftest.$ac_ext <<_ACEOF
23351 cat confdefs.h >>conftest.$ac_ext
23352 cat >>conftest.$ac_ext <<_ACEOF
23353 /* end confdefs.h. */
23354 $ac_includes_default
23358 if (sizeof ((u_bits16_t)))
23364 rm -f conftest.$ac_objext
23365 if { (ac_try="$ac_compile"
23366 case "(($ac_try" in
23367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23368 *) ac_try_echo=$ac_try;;
23370 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
23371 $as_echo "$ac_try_echo") >&5
23372 (eval "$ac_compile") 2>conftest.er1
23374 grep -v '^ *+' conftest.er1 >conftest.err
23376 cat conftest.err >&5
23377 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23378 (exit $ac_status); } && {
23379 test -z "$ac_c_werror_flag" ||
23380 test ! -s conftest.err
23381 } && test -s conftest.$ac_objext; then
23384 $as_echo "$as_me: failed program was
:" >&5
23385 sed 's/^/| /' conftest.$ac_ext >&5
23387 ac_cv_type_u_bits16_t=yes
23390 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23392 $as_echo "$as_me: failed program was
:" >&5
23393 sed 's/^/| /' conftest.$ac_ext >&5
23398 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23400 { $as_echo "$as_me:$LINENO: result
: $ac_cv_type_u_bits16_t" >&5
23401 $as_echo "$ac_cv_type_u_bits16_t" >&6; }
23402 if test "x
$ac_cv_type_u_bits16_t" = x""yes; then
23406 cat >>confdefs.h <<_ACEOF
23407 #define u_bits16_t unsigned short
23415 if test "$ac_cv_sizeof_int" = 4; then
23416 { $as_echo "$as_me:$LINENO: checking
for bits32_t
" >&5
23417 $as_echo_n "checking
for bits32_t...
" >&6; }
23418 if test "${ac_cv_type_bits32_t+set}" = set; then
23419 $as_echo_n "(cached
) " >&6
23421 ac_cv_type_bits32_t=no
23422 cat >conftest.$ac_ext <<_ACEOF
23425 cat confdefs.h >>conftest.$ac_ext
23426 cat >>conftest.$ac_ext <<_ACEOF
23427 /* end confdefs.h. */
23428 $ac_includes_default
23432 if (sizeof (bits32_t))
23438 rm -f conftest.$ac_objext
23439 if { (ac_try="$ac_compile"
23440 case "(($ac_try" in
23441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23442 *) ac_try_echo=$ac_try;;
23444 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
23445 $as_echo "$ac_try_echo") >&5
23446 (eval "$ac_compile") 2>conftest.er1
23448 grep -v '^ *+' conftest.er1 >conftest.err
23450 cat conftest.err >&5
23451 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23452 (exit $ac_status); } && {
23453 test -z "$ac_c_werror_flag" ||
23454 test ! -s conftest.err
23455 } && test -s conftest.$ac_objext; then
23456 cat >conftest.$ac_ext <<_ACEOF
23459 cat confdefs.h >>conftest.$ac_ext
23460 cat >>conftest.$ac_ext <<_ACEOF
23461 /* end confdefs.h. */
23462 $ac_includes_default
23466 if (sizeof ((bits32_t)))
23472 rm -f conftest.$ac_objext
23473 if { (ac_try="$ac_compile"
23474 case "(($ac_try" in
23475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23476 *) ac_try_echo=$ac_try;;
23478 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
23479 $as_echo "$ac_try_echo") >&5
23480 (eval "$ac_compile") 2>conftest.er1
23482 grep -v '^ *+' conftest.er1 >conftest.err
23484 cat conftest.err >&5
23485 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23486 (exit $ac_status); } && {
23487 test -z "$ac_c_werror_flag" ||
23488 test ! -s conftest.err
23489 } && test -s conftest.$ac_objext; then
23492 $as_echo "$as_me: failed program was
:" >&5
23493 sed 's/^/| /' conftest.$ac_ext >&5
23495 ac_cv_type_bits32_t=yes
23498 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23500 $as_echo "$as_me: failed program was
:" >&5
23501 sed 's/^/| /' conftest.$ac_ext >&5
23506 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23508 { $as_echo "$as_me:$LINENO: result
: $ac_cv_type_bits32_t" >&5
23509 $as_echo "$ac_cv_type_bits32_t" >&6; }
23510 if test "x
$ac_cv_type_bits32_t" = x""yes; then
23514 cat >>confdefs.h <<_ACEOF
23515 #define bits32_t int
23520 elif test "$ac_cv_sizeof_long" = 4; then
23521 { $as_echo "$as_me:$LINENO: checking
for bits32_t
" >&5
23522 $as_echo_n "checking
for bits32_t...
" >&6; }
23523 if test "${ac_cv_type_bits32_t+set}" = set; then
23524 $as_echo_n "(cached
) " >&6
23526 ac_cv_type_bits32_t=no
23527 cat >conftest.$ac_ext <<_ACEOF
23530 cat confdefs.h >>conftest.$ac_ext
23531 cat >>conftest.$ac_ext <<_ACEOF
23532 /* end confdefs.h. */
23533 $ac_includes_default
23537 if (sizeof (bits32_t))
23543 rm -f conftest.$ac_objext
23544 if { (ac_try="$ac_compile"
23545 case "(($ac_try" in
23546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23547 *) ac_try_echo=$ac_try;;
23549 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
23550 $as_echo "$ac_try_echo") >&5
23551 (eval "$ac_compile") 2>conftest.er1
23553 grep -v '^ *+' conftest.er1 >conftest.err
23555 cat conftest.err >&5
23556 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23557 (exit $ac_status); } && {
23558 test -z "$ac_c_werror_flag" ||
23559 test ! -s conftest.err
23560 } && test -s conftest.$ac_objext; then
23561 cat >conftest.$ac_ext <<_ACEOF
23564 cat confdefs.h >>conftest.$ac_ext
23565 cat >>conftest.$ac_ext <<_ACEOF
23566 /* end confdefs.h. */
23567 $ac_includes_default
23571 if (sizeof ((bits32_t)))
23577 rm -f conftest.$ac_objext
23578 if { (ac_try="$ac_compile"
23579 case "(($ac_try" in
23580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23581 *) ac_try_echo=$ac_try;;
23583 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
23584 $as_echo "$ac_try_echo") >&5
23585 (eval "$ac_compile") 2>conftest.er1
23587 grep -v '^ *+' conftest.er1 >conftest.err
23589 cat conftest.err >&5
23590 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23591 (exit $ac_status); } && {
23592 test -z "$ac_c_werror_flag" ||
23593 test ! -s conftest.err
23594 } && test -s conftest.$ac_objext; then
23597 $as_echo "$as_me: failed program was
:" >&5
23598 sed 's/^/| /' conftest.$ac_ext >&5
23600 ac_cv_type_bits32_t=yes
23603 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23605 $as_echo "$as_me: failed program was
:" >&5
23606 sed 's/^/| /' conftest.$ac_ext >&5
23611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23613 { $as_echo "$as_me:$LINENO: result
: $ac_cv_type_bits32_t" >&5
23614 $as_echo "$ac_cv_type_bits32_t" >&6; }
23615 if test "x
$ac_cv_type_bits32_t" = x""yes; then
23619 cat >>confdefs.h <<_ACEOF
23620 #define bits32_t long
23626 { $as_echo "$as_me:$LINENO: checking
for bits32_t
" >&5
23627 $as_echo_n "checking
for bits32_t...
" >&6; }
23628 if test "${ac_cv_type_bits32_t+set}" = set; then
23629 $as_echo_n "(cached
) " >&6
23631 ac_cv_type_bits32_t=no
23632 cat >conftest.$ac_ext <<_ACEOF
23635 cat confdefs.h >>conftest.$ac_ext
23636 cat >>conftest.$ac_ext <<_ACEOF
23637 /* end confdefs.h. */
23638 $ac_includes_default
23642 if (sizeof (bits32_t))
23648 rm -f conftest.$ac_objext
23649 if { (ac_try="$ac_compile"
23650 case "(($ac_try" in
23651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23652 *) ac_try_echo=$ac_try;;
23654 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
23655 $as_echo "$ac_try_echo") >&5
23656 (eval "$ac_compile") 2>conftest.er1
23658 grep -v '^ *+' conftest.er1 >conftest.err
23660 cat conftest.err >&5
23661 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23662 (exit $ac_status); } && {
23663 test -z "$ac_c_werror_flag" ||
23664 test ! -s conftest.err
23665 } && test -s conftest.$ac_objext; then
23666 cat >conftest.$ac_ext <<_ACEOF
23669 cat confdefs.h >>conftest.$ac_ext
23670 cat >>conftest.$ac_ext <<_ACEOF
23671 /* end confdefs.h. */
23672 $ac_includes_default
23676 if (sizeof ((bits32_t)))
23682 rm -f conftest.$ac_objext
23683 if { (ac_try="$ac_compile"
23684 case "(($ac_try" in
23685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23686 *) ac_try_echo=$ac_try;;
23688 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
23689 $as_echo "$ac_try_echo") >&5
23690 (eval "$ac_compile") 2>conftest.er1
23692 grep -v '^ *+' conftest.er1 >conftest.err
23694 cat conftest.err >&5
23695 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23696 (exit $ac_status); } && {
23697 test -z "$ac_c_werror_flag" ||
23698 test ! -s conftest.err
23699 } && test -s conftest.$ac_objext; then
23702 $as_echo "$as_me: failed program was
:" >&5
23703 sed 's/^/| /' conftest.$ac_ext >&5
23705 ac_cv_type_bits32_t=yes
23708 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23710 $as_echo "$as_me: failed program was
:" >&5
23711 sed 's/^/| /' conftest.$ac_ext >&5
23716 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23718 { $as_echo "$as_me:$LINENO: result
: $ac_cv_type_bits32_t" >&5
23719 $as_echo "$ac_cv_type_bits32_t" >&6; }
23720 if test "x
$ac_cv_type_bits32_t" = x""yes; then
23724 cat >>confdefs.h <<_ACEOF
23725 #define bits32_t int
23733 if test "$ac_cv_sizeof_int" = 4; then
23734 { $as_echo "$as_me:$LINENO: checking
for u_bits32_t
" >&5
23735 $as_echo_n "checking
for u_bits32_t...
" >&6; }
23736 if test "${ac_cv_type_u_bits32_t+set}" = set; then
23737 $as_echo_n "(cached
) " >&6
23739 ac_cv_type_u_bits32_t=no
23740 cat >conftest.$ac_ext <<_ACEOF
23743 cat confdefs.h >>conftest.$ac_ext
23744 cat >>conftest.$ac_ext <<_ACEOF
23745 /* end confdefs.h. */
23746 $ac_includes_default
23750 if (sizeof (u_bits32_t))
23756 rm -f conftest.$ac_objext
23757 if { (ac_try="$ac_compile"
23758 case "(($ac_try" in
23759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23760 *) ac_try_echo=$ac_try;;
23762 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
23763 $as_echo "$ac_try_echo") >&5
23764 (eval "$ac_compile") 2>conftest.er1
23766 grep -v '^ *+' conftest.er1 >conftest.err
23768 cat conftest.err >&5
23769 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23770 (exit $ac_status); } && {
23771 test -z "$ac_c_werror_flag" ||
23772 test ! -s conftest.err
23773 } && test -s conftest.$ac_objext; then
23774 cat >conftest.$ac_ext <<_ACEOF
23777 cat confdefs.h >>conftest.$ac_ext
23778 cat >>conftest.$ac_ext <<_ACEOF
23779 /* end confdefs.h. */
23780 $ac_includes_default
23784 if (sizeof ((u_bits32_t)))
23790 rm -f conftest.$ac_objext
23791 if { (ac_try="$ac_compile"
23792 case "(($ac_try" in
23793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23794 *) ac_try_echo=$ac_try;;
23796 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
23797 $as_echo "$ac_try_echo") >&5
23798 (eval "$ac_compile") 2>conftest.er1
23800 grep -v '^ *+' conftest.er1 >conftest.err
23802 cat conftest.err >&5
23803 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23804 (exit $ac_status); } && {
23805 test -z "$ac_c_werror_flag" ||
23806 test ! -s conftest.err
23807 } && test -s conftest.$ac_objext; then
23810 $as_echo "$as_me: failed program was
:" >&5
23811 sed 's/^/| /' conftest.$ac_ext >&5
23813 ac_cv_type_u_bits32_t=yes
23816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23818 $as_echo "$as_me: failed program was
:" >&5
23819 sed 's/^/| /' conftest.$ac_ext >&5
23824 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23826 { $as_echo "$as_me:$LINENO: result
: $ac_cv_type_u_bits32_t" >&5
23827 $as_echo "$ac_cv_type_u_bits32_t" >&6; }
23828 if test "x
$ac_cv_type_u_bits32_t" = x""yes; then
23832 cat >>confdefs.h <<_ACEOF
23833 #define u_bits32_t unsigned int
23838 elif test "$ac_cv_sizeof_long" = 4; then
23839 { $as_echo "$as_me:$LINENO: checking
for u_bits32_t
" >&5
23840 $as_echo_n "checking
for u_bits32_t...
" >&6; }
23841 if test "${ac_cv_type_u_bits32_t+set}" = set; then
23842 $as_echo_n "(cached
) " >&6
23844 ac_cv_type_u_bits32_t=no
23845 cat >conftest.$ac_ext <<_ACEOF
23848 cat confdefs.h >>conftest.$ac_ext
23849 cat >>conftest.$ac_ext <<_ACEOF
23850 /* end confdefs.h. */
23851 $ac_includes_default
23855 if (sizeof (u_bits32_t))
23861 rm -f conftest.$ac_objext
23862 if { (ac_try="$ac_compile"
23863 case "(($ac_try" in
23864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23865 *) ac_try_echo=$ac_try;;
23867 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
23868 $as_echo "$ac_try_echo") >&5
23869 (eval "$ac_compile") 2>conftest.er1
23871 grep -v '^ *+' conftest.er1 >conftest.err
23873 cat conftest.err >&5
23874 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23875 (exit $ac_status); } && {
23876 test -z "$ac_c_werror_flag" ||
23877 test ! -s conftest.err
23878 } && test -s conftest.$ac_objext; then
23879 cat >conftest.$ac_ext <<_ACEOF
23882 cat confdefs.h >>conftest.$ac_ext
23883 cat >>conftest.$ac_ext <<_ACEOF
23884 /* end confdefs.h. */
23885 $ac_includes_default
23889 if (sizeof ((u_bits32_t)))
23895 rm -f conftest.$ac_objext
23896 if { (ac_try="$ac_compile"
23897 case "(($ac_try" in
23898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23899 *) ac_try_echo=$ac_try;;
23901 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
23902 $as_echo "$ac_try_echo") >&5
23903 (eval "$ac_compile") 2>conftest.er1
23905 grep -v '^ *+' conftest.er1 >conftest.err
23907 cat conftest.err >&5
23908 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23909 (exit $ac_status); } && {
23910 test -z "$ac_c_werror_flag" ||
23911 test ! -s conftest.err
23912 } && test -s conftest.$ac_objext; then
23915 $as_echo "$as_me: failed program was
:" >&5
23916 sed 's/^/| /' conftest.$ac_ext >&5
23918 ac_cv_type_u_bits32_t=yes
23921 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23923 $as_echo "$as_me: failed program was
:" >&5
23924 sed 's/^/| /' conftest.$ac_ext >&5
23929 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23931 { $as_echo "$as_me:$LINENO: result
: $ac_cv_type_u_bits32_t" >&5
23932 $as_echo "$ac_cv_type_u_bits32_t" >&6; }
23933 if test "x
$ac_cv_type_u_bits32_t" = x""yes; then
23937 cat >>confdefs.h <<_ACEOF
23938 #define u_bits32_t unsigned long
23944 { $as_echo "$as_me:$LINENO: checking
for u_bits32_t
" >&5
23945 $as_echo_n "checking
for u_bits32_t...
" >&6; }
23946 if test "${ac_cv_type_u_bits32_t+set}" = set; then
23947 $as_echo_n "(cached
) " >&6
23949 ac_cv_type_u_bits32_t=no
23950 cat >conftest.$ac_ext <<_ACEOF
23953 cat confdefs.h >>conftest.$ac_ext
23954 cat >>conftest.$ac_ext <<_ACEOF
23955 /* end confdefs.h. */
23956 $ac_includes_default
23960 if (sizeof (u_bits32_t))
23966 rm -f conftest.$ac_objext
23967 if { (ac_try="$ac_compile"
23968 case "(($ac_try" in
23969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23970 *) ac_try_echo=$ac_try;;
23972 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
23973 $as_echo "$ac_try_echo") >&5
23974 (eval "$ac_compile") 2>conftest.er1
23976 grep -v '^ *+' conftest.er1 >conftest.err
23978 cat conftest.err >&5
23979 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23980 (exit $ac_status); } && {
23981 test -z "$ac_c_werror_flag" ||
23982 test ! -s conftest.err
23983 } && test -s conftest.$ac_objext; then
23984 cat >conftest.$ac_ext <<_ACEOF
23987 cat confdefs.h >>conftest.$ac_ext
23988 cat >>conftest.$ac_ext <<_ACEOF
23989 /* end confdefs.h. */
23990 $ac_includes_default
23994 if (sizeof ((u_bits32_t)))
24000 rm -f conftest.$ac_objext
24001 if { (ac_try="$ac_compile"
24002 case "(($ac_try" in
24003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24004 *) ac_try_echo=$ac_try;;
24006 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24007 $as_echo "$ac_try_echo") >&5
24008 (eval "$ac_compile") 2>conftest.er1
24010 grep -v '^ *+' conftest.er1 >conftest.err
24012 cat conftest.err >&5
24013 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24014 (exit $ac_status); } && {
24015 test -z "$ac_c_werror_flag" ||
24016 test ! -s conftest.err
24017 } && test -s conftest.$ac_objext; then
24020 $as_echo "$as_me: failed program was
:" >&5
24021 sed 's/^/| /' conftest.$ac_ext >&5
24023 ac_cv_type_u_bits32_t=yes
24026 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24028 $as_echo "$as_me: failed program was
:" >&5
24029 sed 's/^/| /' conftest.$ac_ext >&5
24034 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24036 { $as_echo "$as_me:$LINENO: result
: $ac_cv_type_u_bits32_t" >&5
24037 $as_echo "$ac_cv_type_u_bits32_t" >&6; }
24038 if test "x
$ac_cv_type_u_bits32_t" = x""yes; then
24042 cat >>confdefs.h <<_ACEOF
24043 #define u_bits32_t unsigned int
24051 if test "$ac_cv_sizeof_char_p" = 8; then
24052 { $as_echo "$as_me:$LINENO: checking
for bits64_t
" >&5
24053 $as_echo_n "checking
for bits64_t...
" >&6; }
24054 if test "${ac_cv_type_bits64_t+set}" = set; then
24055 $as_echo_n "(cached
) " >&6
24057 ac_cv_type_bits64_t=no
24058 cat >conftest.$ac_ext <<_ACEOF
24061 cat confdefs.h >>conftest.$ac_ext
24062 cat >>conftest.$ac_ext <<_ACEOF
24063 /* end confdefs.h. */
24064 $ac_includes_default
24068 if (sizeof (bits64_t))
24074 rm -f conftest.$ac_objext
24075 if { (ac_try="$ac_compile"
24076 case "(($ac_try" in
24077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24078 *) ac_try_echo=$ac_try;;
24080 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24081 $as_echo "$ac_try_echo") >&5
24082 (eval "$ac_compile") 2>conftest.er1
24084 grep -v '^ *+' conftest.er1 >conftest.err
24086 cat conftest.err >&5
24087 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24088 (exit $ac_status); } && {
24089 test -z "$ac_c_werror_flag" ||
24090 test ! -s conftest.err
24091 } && test -s conftest.$ac_objext; then
24092 cat >conftest.$ac_ext <<_ACEOF
24095 cat confdefs.h >>conftest.$ac_ext
24096 cat >>conftest.$ac_ext <<_ACEOF
24097 /* end confdefs.h. */
24098 $ac_includes_default
24102 if (sizeof ((bits64_t)))
24108 rm -f conftest.$ac_objext
24109 if { (ac_try="$ac_compile"
24110 case "(($ac_try" in
24111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24112 *) ac_try_echo=$ac_try;;
24114 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24115 $as_echo "$ac_try_echo") >&5
24116 (eval "$ac_compile") 2>conftest.er1
24118 grep -v '^ *+' conftest.er1 >conftest.err
24120 cat conftest.err >&5
24121 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24122 (exit $ac_status); } && {
24123 test -z "$ac_c_werror_flag" ||
24124 test ! -s conftest.err
24125 } && test -s conftest.$ac_objext; then
24128 $as_echo "$as_me: failed program was
:" >&5
24129 sed 's/^/| /' conftest.$ac_ext >&5
24131 ac_cv_type_bits64_t=yes
24134 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24136 $as_echo "$as_me: failed program was
:" >&5
24137 sed 's/^/| /' conftest.$ac_ext >&5
24142 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24144 { $as_echo "$as_me:$LINENO: result
: $ac_cv_type_bits64_t" >&5
24145 $as_echo "$ac_cv_type_bits64_t" >&6; }
24146 if test "x
$ac_cv_type_bits64_t" = x""yes; then
24150 cat >>confdefs.h <<_ACEOF
24151 #define bits64_t char *
24156 elif test "$ac_cv_sizeof_double" = 8; then
24157 { $as_echo "$as_me:$LINENO: checking
for bits64_t
" >&5
24158 $as_echo_n "checking
for bits64_t...
" >&6; }
24159 if test "${ac_cv_type_bits64_t+set}" = set; then
24160 $as_echo_n "(cached
) " >&6
24162 ac_cv_type_bits64_t=no
24163 cat >conftest.$ac_ext <<_ACEOF
24166 cat confdefs.h >>conftest.$ac_ext
24167 cat >>conftest.$ac_ext <<_ACEOF
24168 /* end confdefs.h. */
24169 $ac_includes_default
24173 if (sizeof (bits64_t))
24179 rm -f conftest.$ac_objext
24180 if { (ac_try="$ac_compile"
24181 case "(($ac_try" in
24182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24183 *) ac_try_echo=$ac_try;;
24185 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24186 $as_echo "$ac_try_echo") >&5
24187 (eval "$ac_compile") 2>conftest.er1
24189 grep -v '^ *+' conftest.er1 >conftest.err
24191 cat conftest.err >&5
24192 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24193 (exit $ac_status); } && {
24194 test -z "$ac_c_werror_flag" ||
24195 test ! -s conftest.err
24196 } && test -s conftest.$ac_objext; then
24197 cat >conftest.$ac_ext <<_ACEOF
24200 cat confdefs.h >>conftest.$ac_ext
24201 cat >>conftest.$ac_ext <<_ACEOF
24202 /* end confdefs.h. */
24203 $ac_includes_default
24207 if (sizeof ((bits64_t)))
24213 rm -f conftest.$ac_objext
24214 if { (ac_try="$ac_compile"
24215 case "(($ac_try" in
24216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24217 *) ac_try_echo=$ac_try;;
24219 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24220 $as_echo "$ac_try_echo") >&5
24221 (eval "$ac_compile") 2>conftest.er1
24223 grep -v '^ *+' conftest.er1 >conftest.err
24225 cat conftest.err >&5
24226 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24227 (exit $ac_status); } && {
24228 test -z "$ac_c_werror_flag" ||
24229 test ! -s conftest.err
24230 } && test -s conftest.$ac_objext; then
24233 $as_echo "$as_me: failed program was
:" >&5
24234 sed 's/^/| /' conftest.$ac_ext >&5
24236 ac_cv_type_bits64_t=yes
24239 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24241 $as_echo "$as_me: failed program was
:" >&5
24242 sed 's/^/| /' conftest.$ac_ext >&5
24247 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24249 { $as_echo "$as_me:$LINENO: result
: $ac_cv_type_bits64_t" >&5
24250 $as_echo "$ac_cv_type_bits64_t" >&6; }
24251 if test "x
$ac_cv_type_bits64_t" = x""yes; then
24255 cat >>confdefs.h <<_ACEOF
24256 #define bits64_t double
24261 elif test -n "$ac_cv_type_long_long" && test "$ac_cv_sizeof_long_long" = 8; then
24262 { $as_echo "$as_me:$LINENO: checking
for bits64_t
" >&5
24263 $as_echo_n "checking
for bits64_t...
" >&6; }
24264 if test "${ac_cv_type_bits64_t+set}" = set; then
24265 $as_echo_n "(cached
) " >&6
24267 ac_cv_type_bits64_t=no
24268 cat >conftest.$ac_ext <<_ACEOF
24271 cat confdefs.h >>conftest.$ac_ext
24272 cat >>conftest.$ac_ext <<_ACEOF
24273 /* end confdefs.h. */
24274 $ac_includes_default
24278 if (sizeof (bits64_t))
24284 rm -f conftest.$ac_objext
24285 if { (ac_try="$ac_compile"
24286 case "(($ac_try" in
24287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24288 *) ac_try_echo=$ac_try;;
24290 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24291 $as_echo "$ac_try_echo") >&5
24292 (eval "$ac_compile") 2>conftest.er1
24294 grep -v '^ *+' conftest.er1 >conftest.err
24296 cat conftest.err >&5
24297 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24298 (exit $ac_status); } && {
24299 test -z "$ac_c_werror_flag" ||
24300 test ! -s conftest.err
24301 } && test -s conftest.$ac_objext; then
24302 cat >conftest.$ac_ext <<_ACEOF
24305 cat confdefs.h >>conftest.$ac_ext
24306 cat >>conftest.$ac_ext <<_ACEOF
24307 /* end confdefs.h. */
24308 $ac_includes_default
24312 if (sizeof ((bits64_t)))
24318 rm -f conftest.$ac_objext
24319 if { (ac_try="$ac_compile"
24320 case "(($ac_try" in
24321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24322 *) ac_try_echo=$ac_try;;
24324 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24325 $as_echo "$ac_try_echo") >&5
24326 (eval "$ac_compile") 2>conftest.er1
24328 grep -v '^ *+' conftest.er1 >conftest.err
24330 cat conftest.err >&5
24331 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24332 (exit $ac_status); } && {
24333 test -z "$ac_c_werror_flag" ||
24334 test ! -s conftest.err
24335 } && test -s conftest.$ac_objext; then
24338 $as_echo "$as_me: failed program was
:" >&5
24339 sed 's/^/| /' conftest.$ac_ext >&5
24341 ac_cv_type_bits64_t=yes
24344 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24346 $as_echo "$as_me: failed program was
:" >&5
24347 sed 's/^/| /' conftest.$ac_ext >&5
24352 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24354 { $as_echo "$as_me:$LINENO: result
: $ac_cv_type_bits64_t" >&5
24355 $as_echo "$ac_cv_type_bits64_t" >&6; }
24356 if test "x
$ac_cv_type_bits64_t" = x""yes; then
24360 cat >>confdefs.h <<_ACEOF
24361 #define bits64_t long long
24366 elif test "$ac_cv_sizeof_long" = 8; then
24367 { $as_echo "$as_me:$LINENO: checking
for bits64_t
" >&5
24368 $as_echo_n "checking
for bits64_t...
" >&6; }
24369 if test "${ac_cv_type_bits64_t+set}" = set; then
24370 $as_echo_n "(cached
) " >&6
24372 ac_cv_type_bits64_t=no
24373 cat >conftest.$ac_ext <<_ACEOF
24376 cat confdefs.h >>conftest.$ac_ext
24377 cat >>conftest.$ac_ext <<_ACEOF
24378 /* end confdefs.h. */
24379 $ac_includes_default
24383 if (sizeof (bits64_t))
24389 rm -f conftest.$ac_objext
24390 if { (ac_try="$ac_compile"
24391 case "(($ac_try" in
24392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24393 *) ac_try_echo=$ac_try;;
24395 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24396 $as_echo "$ac_try_echo") >&5
24397 (eval "$ac_compile") 2>conftest.er1
24399 grep -v '^ *+' conftest.er1 >conftest.err
24401 cat conftest.err >&5
24402 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24403 (exit $ac_status); } && {
24404 test -z "$ac_c_werror_flag" ||
24405 test ! -s conftest.err
24406 } && test -s conftest.$ac_objext; then
24407 cat >conftest.$ac_ext <<_ACEOF
24410 cat confdefs.h >>conftest.$ac_ext
24411 cat >>conftest.$ac_ext <<_ACEOF
24412 /* end confdefs.h. */
24413 $ac_includes_default
24417 if (sizeof ((bits64_t)))
24423 rm -f conftest.$ac_objext
24424 if { (ac_try="$ac_compile"
24425 case "(($ac_try" in
24426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24427 *) ac_try_echo=$ac_try;;
24429 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24430 $as_echo "$ac_try_echo") >&5
24431 (eval "$ac_compile") 2>conftest.er1
24433 grep -v '^ *+' conftest.er1 >conftest.err
24435 cat conftest.err >&5
24436 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24437 (exit $ac_status); } && {
24438 test -z "$ac_c_werror_flag" ||
24439 test ! -s conftest.err
24440 } && test -s conftest.$ac_objext; then
24443 $as_echo "$as_me: failed program was
:" >&5
24444 sed 's/^/| /' conftest.$ac_ext >&5
24446 ac_cv_type_bits64_t=yes
24449 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24451 $as_echo "$as_me: failed program was
:" >&5
24452 sed 's/^/| /' conftest.$ac_ext >&5
24457 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24459 { $as_echo "$as_me:$LINENO: result
: $ac_cv_type_bits64_t" >&5
24460 $as_echo "$ac_cv_type_bits64_t" >&6; }
24461 if test "x
$ac_cv_type_bits64_t" = x""yes; then
24465 cat >>confdefs.h <<_ACEOF
24466 #define bits64_t long
24472 { $as_echo "$as_me:$LINENO: checking
for bits64_t
" >&5
24473 $as_echo_n "checking
for bits64_t...
" >&6; }
24474 if test "${ac_cv_type_bits64_t+set}" = set; then
24475 $as_echo_n "(cached
) " >&6
24477 ac_cv_type_bits64_t=no
24478 cat >conftest.$ac_ext <<_ACEOF
24481 cat confdefs.h >>conftest.$ac_ext
24482 cat >>conftest.$ac_ext <<_ACEOF
24483 /* end confdefs.h. */
24484 $ac_includes_default
24488 if (sizeof (bits64_t))
24494 rm -f conftest.$ac_objext
24495 if { (ac_try="$ac_compile"
24496 case "(($ac_try" in
24497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24498 *) ac_try_echo=$ac_try;;
24500 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24501 $as_echo "$ac_try_echo") >&5
24502 (eval "$ac_compile") 2>conftest.er1
24504 grep -v '^ *+' conftest.er1 >conftest.err
24506 cat conftest.err >&5
24507 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24508 (exit $ac_status); } && {
24509 test -z "$ac_c_werror_flag" ||
24510 test ! -s conftest.err
24511 } && test -s conftest.$ac_objext; then
24512 cat >conftest.$ac_ext <<_ACEOF
24515 cat confdefs.h >>conftest.$ac_ext
24516 cat >>conftest.$ac_ext <<_ACEOF
24517 /* end confdefs.h. */
24518 $ac_includes_default
24522 if (sizeof ((bits64_t)))
24528 rm -f conftest.$ac_objext
24529 if { (ac_try="$ac_compile"
24530 case "(($ac_try" in
24531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24532 *) ac_try_echo=$ac_try;;
24534 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24535 $as_echo "$ac_try_echo") >&5
24536 (eval "$ac_compile") 2>conftest.er1
24538 grep -v '^ *+' conftest.er1 >conftest.err
24540 cat conftest.err >&5
24541 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24542 (exit $ac_status); } && {
24543 test -z "$ac_c_werror_flag" ||
24544 test ! -s conftest.err
24545 } && test -s conftest.$ac_objext; then
24548 $as_echo "$as_me: failed program was
:" >&5
24549 sed 's/^/| /' conftest.$ac_ext >&5
24551 ac_cv_type_bits64_t=yes
24554 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24556 $as_echo "$as_me: failed program was
:" >&5
24557 sed 's/^/| /' conftest.$ac_ext >&5
24562 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24564 { $as_echo "$as_me:$LINENO: result
: $ac_cv_type_bits64_t" >&5
24565 $as_echo "$ac_cv_type_bits64_t" >&6; }
24566 if test "x
$ac_cv_type_bits64_t" = x""yes; then
24570 cat >>confdefs.h <<_ACEOF
24571 #define bits64_t double
24580 if test "$ac_cv_sizeof_int" = "$ac_cv_sizeof_char_p"; then
24581 { $as_echo "$as_me:$LINENO: checking
for ptrdiff_t
" >&5
24582 $as_echo_n "checking
for ptrdiff_t...
" >&6; }
24583 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
24584 $as_echo_n "(cached
) " >&6
24586 ac_cv_type_ptrdiff_t=no
24587 cat >conftest.$ac_ext <<_ACEOF
24590 cat confdefs.h >>conftest.$ac_ext
24591 cat >>conftest.$ac_ext <<_ACEOF
24592 /* end confdefs.h. */
24593 $ac_includes_default
24597 if (sizeof (ptrdiff_t))
24603 rm -f conftest.$ac_objext
24604 if { (ac_try="$ac_compile"
24605 case "(($ac_try" in
24606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24607 *) ac_try_echo=$ac_try;;
24609 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24610 $as_echo "$ac_try_echo") >&5
24611 (eval "$ac_compile") 2>conftest.er1
24613 grep -v '^ *+' conftest.er1 >conftest.err
24615 cat conftest.err >&5
24616 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24617 (exit $ac_status); } && {
24618 test -z "$ac_c_werror_flag" ||
24619 test ! -s conftest.err
24620 } && test -s conftest.$ac_objext; then
24621 cat >conftest.$ac_ext <<_ACEOF
24624 cat confdefs.h >>conftest.$ac_ext
24625 cat >>conftest.$ac_ext <<_ACEOF
24626 /* end confdefs.h. */
24627 $ac_includes_default
24631 if (sizeof ((ptrdiff_t)))
24637 rm -f conftest.$ac_objext
24638 if { (ac_try="$ac_compile"
24639 case "(($ac_try" in
24640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24641 *) ac_try_echo=$ac_try;;
24643 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24644 $as_echo "$ac_try_echo") >&5
24645 (eval "$ac_compile") 2>conftest.er1
24647 grep -v '^ *+' conftest.er1 >conftest.err
24649 cat conftest.err >&5
24650 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24651 (exit $ac_status); } && {
24652 test -z "$ac_c_werror_flag" ||
24653 test ! -s conftest.err
24654 } && test -s conftest.$ac_objext; then
24657 $as_echo "$as_me: failed program was
:" >&5
24658 sed 's/^/| /' conftest.$ac_ext >&5
24660 ac_cv_type_ptrdiff_t=yes
24663 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24665 $as_echo "$as_me: failed program was
:" >&5
24666 sed 's/^/| /' conftest.$ac_ext >&5
24671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24673 { $as_echo "$as_me:$LINENO: result
: $ac_cv_type_ptrdiff_t" >&5
24674 $as_echo "$ac_cv_type_ptrdiff_t" >&6; }
24675 if test "x
$ac_cv_type_ptrdiff_t" = x""yes; then
24679 cat >>confdefs.h <<_ACEOF
24680 #define ptrdiff_t int
24685 elif test "$ac_cv_sizeof_long" = "$ac_cv_sizeof_char_p"; then
24686 { $as_echo "$as_me:$LINENO: checking
for ptrdiff_t
" >&5
24687 $as_echo_n "checking
for ptrdiff_t...
" >&6; }
24688 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
24689 $as_echo_n "(cached
) " >&6
24691 ac_cv_type_ptrdiff_t=no
24692 cat >conftest.$ac_ext <<_ACEOF
24695 cat confdefs.h >>conftest.$ac_ext
24696 cat >>conftest.$ac_ext <<_ACEOF
24697 /* end confdefs.h. */
24698 $ac_includes_default
24702 if (sizeof (ptrdiff_t))
24708 rm -f conftest.$ac_objext
24709 if { (ac_try="$ac_compile"
24710 case "(($ac_try" in
24711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24712 *) ac_try_echo=$ac_try;;
24714 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24715 $as_echo "$ac_try_echo") >&5
24716 (eval "$ac_compile") 2>conftest.er1
24718 grep -v '^ *+' conftest.er1 >conftest.err
24720 cat conftest.err >&5
24721 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24722 (exit $ac_status); } && {
24723 test -z "$ac_c_werror_flag" ||
24724 test ! -s conftest.err
24725 } && test -s conftest.$ac_objext; then
24726 cat >conftest.$ac_ext <<_ACEOF
24729 cat confdefs.h >>conftest.$ac_ext
24730 cat >>conftest.$ac_ext <<_ACEOF
24731 /* end confdefs.h. */
24732 $ac_includes_default
24736 if (sizeof ((ptrdiff_t)))
24742 rm -f conftest.$ac_objext
24743 if { (ac_try="$ac_compile"
24744 case "(($ac_try" in
24745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24746 *) ac_try_echo=$ac_try;;
24748 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24749 $as_echo "$ac_try_echo") >&5
24750 (eval "$ac_compile") 2>conftest.er1
24752 grep -v '^ *+' conftest.er1 >conftest.err
24754 cat conftest.err >&5
24755 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24756 (exit $ac_status); } && {
24757 test -z "$ac_c_werror_flag" ||
24758 test ! -s conftest.err
24759 } && test -s conftest.$ac_objext; then
24762 $as_echo "$as_me: failed program was
:" >&5
24763 sed 's/^/| /' conftest.$ac_ext >&5
24765 ac_cv_type_ptrdiff_t=yes
24768 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24770 $as_echo "$as_me: failed program was
:" >&5
24771 sed 's/^/| /' conftest.$ac_ext >&5
24776 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24778 { $as_echo "$as_me:$LINENO: result
: $ac_cv_type_ptrdiff_t" >&5
24779 $as_echo "$ac_cv_type_ptrdiff_t" >&6; }
24780 if test "x
$ac_cv_type_ptrdiff_t" = x""yes; then
24784 cat >>confdefs.h <<_ACEOF
24785 #define ptrdiff_t long
24790 elif test "$ac_cv_type_long_long" = yes && test "$ac_cv_sizeof_long_long" = "$ac_cv_sizeof_char_p"; then
24791 { $as_echo "$as_me:$LINENO: checking
for ptrdiff_t
" >&5
24792 $as_echo_n "checking
for ptrdiff_t...
" >&6; }
24793 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
24794 $as_echo_n "(cached
) " >&6
24796 ac_cv_type_ptrdiff_t=no
24797 cat >conftest.$ac_ext <<_ACEOF
24800 cat confdefs.h >>conftest.$ac_ext
24801 cat >>conftest.$ac_ext <<_ACEOF
24802 /* end confdefs.h. */
24803 $ac_includes_default
24807 if (sizeof (ptrdiff_t))
24813 rm -f conftest.$ac_objext
24814 if { (ac_try="$ac_compile"
24815 case "(($ac_try" in
24816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24817 *) ac_try_echo=$ac_try;;
24819 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24820 $as_echo "$ac_try_echo") >&5
24821 (eval "$ac_compile") 2>conftest.er1
24823 grep -v '^ *+' conftest.er1 >conftest.err
24825 cat conftest.err >&5
24826 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24827 (exit $ac_status); } && {
24828 test -z "$ac_c_werror_flag" ||
24829 test ! -s conftest.err
24830 } && test -s conftest.$ac_objext; then
24831 cat >conftest.$ac_ext <<_ACEOF
24834 cat confdefs.h >>conftest.$ac_ext
24835 cat >>conftest.$ac_ext <<_ACEOF
24836 /* end confdefs.h. */
24837 $ac_includes_default
24841 if (sizeof ((ptrdiff_t)))
24847 rm -f conftest.$ac_objext
24848 if { (ac_try="$ac_compile"
24849 case "(($ac_try" in
24850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24851 *) ac_try_echo=$ac_try;;
24853 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24854 $as_echo "$ac_try_echo") >&5
24855 (eval "$ac_compile") 2>conftest.er1
24857 grep -v '^ *+' conftest.er1 >conftest.err
24859 cat conftest.err >&5
24860 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24861 (exit $ac_status); } && {
24862 test -z "$ac_c_werror_flag" ||
24863 test ! -s conftest.err
24864 } && test -s conftest.$ac_objext; then
24867 $as_echo "$as_me: failed program was
:" >&5
24868 sed 's/^/| /' conftest.$ac_ext >&5
24870 ac_cv_type_ptrdiff_t=yes
24873 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24875 $as_echo "$as_me: failed program was
:" >&5
24876 sed 's/^/| /' conftest.$ac_ext >&5
24881 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24883 { $as_echo "$as_me:$LINENO: result
: $ac_cv_type_ptrdiff_t" >&5
24884 $as_echo "$ac_cv_type_ptrdiff_t" >&6; }
24885 if test "x
$ac_cv_type_ptrdiff_t" = x""yes; then
24889 cat >>confdefs.h <<_ACEOF
24890 #define ptrdiff_t long long
24896 { $as_echo "$as_me:$LINENO: checking
for ptrdiff_t
" >&5
24897 $as_echo_n "checking
for ptrdiff_t...
" >&6; }
24898 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
24899 $as_echo_n "(cached
) " >&6
24901 ac_cv_type_ptrdiff_t=no
24902 cat >conftest.$ac_ext <<_ACEOF
24905 cat confdefs.h >>conftest.$ac_ext
24906 cat >>conftest.$ac_ext <<_ACEOF
24907 /* end confdefs.h. */
24908 $ac_includes_default
24912 if (sizeof (ptrdiff_t))
24918 rm -f conftest.$ac_objext
24919 if { (ac_try="$ac_compile"
24920 case "(($ac_try" in
24921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24922 *) ac_try_echo=$ac_try;;
24924 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24925 $as_echo "$ac_try_echo") >&5
24926 (eval "$ac_compile") 2>conftest.er1
24928 grep -v '^ *+' conftest.er1 >conftest.err
24930 cat conftest.err >&5
24931 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24932 (exit $ac_status); } && {
24933 test -z "$ac_c_werror_flag" ||
24934 test ! -s conftest.err
24935 } && test -s conftest.$ac_objext; then
24936 cat >conftest.$ac_ext <<_ACEOF
24939 cat confdefs.h >>conftest.$ac_ext
24940 cat >>conftest.$ac_ext <<_ACEOF
24941 /* end confdefs.h. */
24942 $ac_includes_default
24946 if (sizeof ((ptrdiff_t)))
24952 rm -f conftest.$ac_objext
24953 if { (ac_try="$ac_compile"
24954 case "(($ac_try" in
24955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24956 *) ac_try_echo=$ac_try;;
24958 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24959 $as_echo "$ac_try_echo") >&5
24960 (eval "$ac_compile") 2>conftest.er1
24962 grep -v '^ *+' conftest.er1 >conftest.err
24964 cat conftest.err >&5
24965 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24966 (exit $ac_status); } && {
24967 test -z "$ac_c_werror_flag" ||
24968 test ! -s conftest.err
24969 } && test -s conftest.$ac_objext; then
24972 $as_echo "$as_me: failed program was
:" >&5
24973 sed 's/^/| /' conftest.$ac_ext >&5
24975 ac_cv_type_ptrdiff_t=yes
24978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24980 $as_echo "$as_me: failed program was
:" >&5
24981 sed 's/^/| /' conftest.$ac_ext >&5
24986 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24988 { $as_echo "$as_me:$LINENO: result
: $ac_cv_type_ptrdiff_t" >&5
24989 $as_echo "$ac_cv_type_ptrdiff_t" >&6; }
24990 if test "x
$ac_cv_type_ptrdiff_t" = x""yes; then
24994 cat >>confdefs.h <<_ACEOF
24995 #define ptrdiff_t int
25003 { $as_echo "$as_me:$LINENO: checking whether stat file-mode macros are broken
" >&5
25004 $as_echo_n "checking whether stat file-mode macros are broken...
" >&6; }
25005 if test "${ac_cv_header_stat_broken+set}" = set; then
25006 $as_echo_n "(cached
) " >&6
25008 cat >conftest.$ac_ext <<_ACEOF
25011 cat confdefs.h >>conftest.$ac_ext
25012 cat >>conftest.$ac_ext <<_ACEOF
25013 /* end confdefs.h. */
25014 #include <sys/types.h>
25015 #include <sys/stat.h>
25017 #if defined S_ISBLK && defined S_IFDIR
25018 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
25021 #if defined S_ISBLK && defined S_IFCHR
25022 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
25025 #if defined S_ISLNK && defined S_IFREG
25026 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
25029 #if defined S_ISSOCK && defined S_IFREG
25030 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
25034 rm -f conftest.$ac_objext
25035 if { (ac_try="$ac_compile"
25036 case "(($ac_try" in
25037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25038 *) ac_try_echo=$ac_try;;
25040 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
25041 $as_echo "$ac_try_echo") >&5
25042 (eval "$ac_compile") 2>conftest.er1
25044 grep -v '^ *+' conftest.er1 >conftest.err
25046 cat conftest.err >&5
25047 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25048 (exit $ac_status); } && {
25049 test -z "$ac_c_werror_flag" ||
25050 test ! -s conftest.err
25051 } && test -s conftest.$ac_objext; then
25052 ac_cv_header_stat_broken=no
25054 $as_echo "$as_me: failed program was
:" >&5
25055 sed 's/^/| /' conftest.$ac_ext >&5
25057 ac_cv_header_stat_broken=yes
25060 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25062 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_stat_broken" >&5
25063 $as_echo "$ac_cv_header_stat_broken" >&6; }
25064 if test $ac_cv_header_stat_broken = yes; then
25066 cat >>confdefs.h <<\_ACEOF
25067 #define STAT_MACROS_BROKEN 1
25073 { $as_echo "$as_me:$LINENO: checking whether
#! works in shell scripts" >&5
25074 $as_echo_n "checking whether #! works in shell scripts... " >&6; }
25075 if test "${ac_cv_sys_interpreter+set}" = set; then
25076 $as_echo_n "(cached) " >&6
25082 (SHELL
=/bin
/sh
; export SHELL
; .
/conftest
>/dev
/null
2>&1)
25083 if test $?
-ne 69; then
25084 ac_cv_sys_interpreter
=yes
25086 ac_cv_sys_interpreter
=no
25090 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_interpreter" >&5
25091 $as_echo "$ac_cv_sys_interpreter" >&6; }
25092 interpval
=$ac_cv_sys_interpreter
25094 if test $ac_cv_sys_interpreter = yes; then
25095 cat >>confdefs.h
<<\_ACEOF
25096 #define HAVE_HASH_BANG_EXEC 1
25101 if test "$ac_cv_func_lstat" = "no"; then
25102 { $as_echo "$as_me:$LINENO: checking for lstat" >&5
25103 $as_echo_n "checking for lstat... " >&6; }
25104 if test "${bash_cv_func_lstat+set}" = set; then
25105 $as_echo_n "(cached) " >&6
25107 cat >conftest.
$ac_ext <<_ACEOF
25110 cat confdefs.h
>>conftest.
$ac_ext
25111 cat >>conftest.
$ac_ext <<_ACEOF
25112 /* end confdefs.h. */
25114 #include <sys/types.h>
25115 #include <sys/stat.h>
25120 lstat(".",(struct stat *)0);
25125 rm -f conftest.
$ac_objext conftest
$ac_exeext
25126 if { (ac_try
="$ac_link"
25127 case "(($ac_try" in
25128 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25129 *) ac_try_echo=$ac_try;;
25131 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25132 $as_echo "$ac_try_echo") >&5
25133 (eval "$ac_link") 2>conftest.er1
25135 grep -v '^ *+' conftest.er1 >conftest.err
25137 cat conftest.err >&5
25138 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25139 (exit $ac_status); } && {
25140 test -z "$ac_c_werror_flag" ||
25141 test ! -s conftest.err
25142 } && test -s conftest$ac_exeext && {
25143 test "$cross_compiling" = yes ||
25144 $as_test_x conftest$ac_exeext
25146 bash_cv_func_lstat=yes
25148 $as_echo "$as_me: failed program was:" >&5
25149 sed 's/^/| /' conftest.$ac_ext >&5
25151 bash_cv_func_lstat=no
25154 rm -rf conftest.dSYM
25155 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25156 conftest$ac_exeext conftest.$ac_ext
25158 { $as_echo "$as_me:$LINENO: result: $bash_cv_func_lstat" >&5
25159 $as_echo "$bash_cv_func_lstat" >&6; }
25160 if test $bash_cv_func_lstat = yes; then
25161 cat >>confdefs.h <<\_ACEOF
25162 #define HAVE_LSTAT 1
25170 { $as_echo "$as_me:$LINENO: checking whether the ctype macros accept non-ascii characters" >&5
25171 $as_echo_n "checking whether the ctype macros accept non-ascii characters... " >&6; }
25172 if test "${bash_cv_func_ctype_nonascii+set}" = set; then
25173 $as_echo_n "(cached) " >&6
25175 if test "$cross_compiling" = yes; then
25176 { $as_echo "$as_me:$LINENO: WARNING: cannot check ctype macros if cross compiling -- defaulting to no" >&5
25177 $as_echo "$as_me: WARNING: cannot check ctype macros if cross compiling -- defaulting to no" >&2;}
25178 bash_cv_func_ctype_nonascii=no
25181 cat >conftest.$ac_ext <<_ACEOF
25184 cat confdefs.h >>conftest.$ac_ext
25185 cat >>conftest.$ac_ext <<_ACEOF
25186 /* end confdefs.h. */
25188 #ifdef HAVE_LOCALE_H
25189 #include <locale.h>
25202 #ifdef HAVE_SETLOCALE
25203 /* We take a shot here. If that locale is not known, try the
25204 system default. We try this one because '\342' (226) is
25205 known to be a printable character in that locale. */
25206 deflocale = setlocale(LC_ALL, "en_US.ISO8859-1");
25207 if (deflocale == 0)
25208 deflocale = setlocale(LC_ALL, "");
25215 exit (r1 == 0 || r2 == 0);
25219 rm -f conftest$ac_exeext
25220 if { (ac_try="$ac_link"
25221 case "(($ac_try" in
25222 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
25223 *) ac_try_echo
=$ac_try;;
25225 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
25226 $as_echo "$ac_try_echo") >&5
25227 (eval "$ac_link") 2>&5
25229 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25230 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
25231 { (case "(($ac_try" in
25232 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25233 *) ac_try_echo=$ac_try;;
25235 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25236 $as_echo "$ac_try_echo") >&5
25237 (eval "$ac_try") 2>&5
25239 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25240 (exit $ac_status); }; }; then
25241 bash_cv_func_ctype_nonascii=yes
25243 $as_echo "$as_me: program exited with status $ac_status" >&5
25244 $as_echo "$as_me: failed program was:" >&5
25245 sed 's/^/| /' conftest.$ac_ext >&5
25247 ( exit $ac_status )
25248 bash_cv_func_ctype_nonascii=no
25250 rm -rf conftest.dSYM
25251 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25257 { $as_echo "$as_me:$LINENO: result: $bash_cv_func_ctype_nonascii" >&5
25258 $as_echo "$bash_cv_func_ctype_nonascii" >&6; }
25259 if test $bash_cv_func_ctype_nonascii = yes; then
25260 cat >>confdefs.h <<\_ACEOF
25261 #define CTYPE_NON_ASCII 1
25266 { $as_echo "$as_me:$LINENO: checking if dup2 fails to clear the close-on-exec flag" >&5
25267 $as_echo_n "checking if dup2 fails to clear the close-on-exec flag... " >&6; }
25268 if test "${bash_cv_dup2_broken+set}" = set; then
25269 $as_echo_n "(cached) " >&6
25271 if test "$cross_compiling" = yes; then
25272 { $as_echo "$as_me:$LINENO: WARNING: cannot check dup2 if cross compiling -- defaulting to no" >&5
25273 $as_echo "$as_me: WARNING: cannot check dup2 if cross compiling -- defaulting to no" >&2;}
25274 bash_cv_dup2_broken=no
25276 cat >conftest.$ac_ext <<_ACEOF
25279 cat confdefs.h >>conftest.$ac_ext
25280 cat >>conftest.$ac_ext <<_ACEOF
25281 /* end confdefs.h. */
25283 #include <sys/types.h>
25288 fd1 = open("/dev/null", 2);
25289 if (fcntl(fd1, 2, 1) < 0)
25291 fd2 = dup2(fd1, 1);
25294 fl = fcntl(fd2, 1, 0);
25295 /* fl will be 1 if dup2 did not reset the close-on-exec flag. */
25300 rm -f conftest$ac_exeext
25301 if { (ac_try="$ac_link"
25302 case "(($ac_try" in
25303 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
25304 *) ac_try_echo
=$ac_try;;
25306 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
25307 $as_echo "$ac_try_echo") >&5
25308 (eval "$ac_link") 2>&5
25310 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25311 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
25312 { (case "(($ac_try" in
25313 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25314 *) ac_try_echo=$ac_try;;
25316 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25317 $as_echo "$ac_try_echo") >&5
25318 (eval "$ac_try") 2>&5
25320 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25321 (exit $ac_status); }; }; then
25322 bash_cv_dup2_broken=yes
25324 $as_echo "$as_me: program exited with status $ac_status" >&5
25325 $as_echo "$as_me: failed program was:" >&5
25326 sed 's/^/| /' conftest.$ac_ext >&5
25328 ( exit $ac_status )
25329 bash_cv_dup2_broken=no
25331 rm -rf conftest.dSYM
25332 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25339 { $as_echo "$as_me:$LINENO: result: $bash_cv_dup2_broken" >&5
25340 $as_echo "$bash_cv_dup2_broken" >&6; }
25341 if test $bash_cv_dup2_broken = yes; then
25342 cat >>confdefs.h <<\_ACEOF
25343 #define DUP2_BROKEN 1
25349 { $as_echo "$as_me:$LINENO: checking whether pgrps need synchronization" >&5
25350 $as_echo_n "checking whether pgrps need synchronization... " >&6; }
25351 if test "${bash_cv_pgrp_pipe+set}" = set; then
25352 $as_echo_n "(cached) " >&6
25354 if test "$cross_compiling" = yes; then
25355 { $as_echo "$as_me:$LINENO: WARNING: cannot check pgrp synchronization if cross compiling -- defaulting to no" >&5
25356 $as_echo "$as_me: WARNING: cannot check pgrp synchronization if cross compiling -- defaulting to no" >&2;}
25357 bash_cv_pgrp_pipe=no
25359 cat >conftest.$ac_ext <<_ACEOF
25362 cat confdefs.h >>conftest.$ac_ext
25363 cat >>conftest.$ac_ext <<_ACEOF
25364 /* end confdefs.h. */
25366 #ifdef HAVE_UNISTD_H
25367 # include <unistd.h>
25371 # ifdef GETPGRP_VOID
25372 # define getpgID() getpgrp()
25374 # define getpgID() getpgrp(0)
25375 # define setpgid(x,y) setpgrp(x,y)
25377 int pid1, pid2, fds[2];
25381 switch (pid1 = fork()) {
25385 setpgid(0, getpid());
25388 setpgid(pid1, pid1);
25390 sleep(2); /* let first child die */
25395 switch (pid2 = fork()) {
25400 ok = getpgID() == pid1;
25401 write(fds[1], &ok, 1);
25404 setpgid(pid2, pid1);
25407 if (read(fds[0], &ok, 1) != 1)
25415 rm -f conftest$ac_exeext
25416 if { (ac_try="$ac_link"
25417 case "(($ac_try" in
25418 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
25419 *) ac_try_echo
=$ac_try;;
25421 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
25422 $as_echo "$ac_try_echo") >&5
25423 (eval "$ac_link") 2>&5
25425 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25426 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
25427 { (case "(($ac_try" in
25428 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25429 *) ac_try_echo=$ac_try;;
25431 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25432 $as_echo "$ac_try_echo") >&5
25433 (eval "$ac_try") 2>&5
25435 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25436 (exit $ac_status); }; }; then
25437 bash_cv_pgrp_pipe=no
25439 $as_echo "$as_me: program exited with status $ac_status" >&5
25440 $as_echo "$as_me: failed program was:" >&5
25441 sed 's/^/| /' conftest.$ac_ext >&5
25443 ( exit $ac_status )
25444 bash_cv_pgrp_pipe=yes
25446 rm -rf conftest.dSYM
25447 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25454 { $as_echo "$as_me:$LINENO: result: $bash_cv_pgrp_pipe" >&5
25455 $as_echo "$bash_cv_pgrp_pipe" >&6; }
25456 if test $bash_cv_pgrp_pipe = yes; then
25457 cat >>confdefs.h <<\_ACEOF
25458 #define PGRP_PIPE 1
25464 { $as_echo "$as_me:$LINENO: checking for type of signal functions" >&5
25465 $as_echo_n "checking for type of signal functions... " >&6; }
25466 if test "${bash_cv_signal_vintage+set}" = set; then
25467 $as_echo_n "(cached) " >&6
25470 cat >conftest.$ac_ext <<_ACEOF
25473 cat confdefs.h >>conftest.$ac_ext
25474 cat >>conftest.$ac_ext <<_ACEOF
25475 /* end confdefs.h. */
25476 #include <signal.h>
25482 struct sigaction sa;
25483 sigemptyset(&ss); sigsuspend(&ss);
25484 sigaction(SIGINT, &sa, (struct sigaction *) 0);
25485 sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
25491 rm -f conftest.$ac_objext conftest$ac_exeext
25492 if { (ac_try="$ac_link"
25493 case "(($ac_try" in
25494 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
25495 *) ac_try_echo
=$ac_try;;
25497 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
25498 $as_echo "$ac_try_echo") >&5
25499 (eval "$ac_link") 2>conftest.er1
25501 grep -v '^ *+' conftest.er1
>conftest.err
25503 cat conftest.err
>&5
25504 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25505 (exit $ac_status); } && {
25506 test -z "$ac_c_werror_flag" ||
25507 test ! -s conftest.err
25508 } && test -s conftest
$ac_exeext && {
25509 test "$cross_compiling" = yes ||
25510 $as_test_x conftest
$ac_exeext
25512 bash_cv_signal_vintage
=posix
25514 $as_echo "$as_me: failed program was:" >&5
25515 sed 's/^/| /' conftest.
$ac_ext >&5
25518 cat >conftest.
$ac_ext <<_ACEOF
25521 cat confdefs.h
>>conftest.
$ac_ext
25522 cat >>conftest.
$ac_ext <<_ACEOF
25523 /* end confdefs.h. */
25524 #include <signal.h>
25529 int mask = sigmask(SIGINT);
25530 sigsetmask(mask); sigblock(mask); sigpause(mask);
25536 rm -f conftest.
$ac_objext conftest
$ac_exeext
25537 if { (ac_try
="$ac_link"
25538 case "(($ac_try" in
25539 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25540 *) ac_try_echo=$ac_try;;
25542 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25543 $as_echo "$ac_try_echo") >&5
25544 (eval "$ac_link") 2>conftest.er1
25546 grep -v '^ *+' conftest.er1 >conftest.err
25548 cat conftest.err >&5
25549 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25550 (exit $ac_status); } && {
25551 test -z "$ac_c_werror_flag" ||
25552 test ! -s conftest.err
25553 } && test -s conftest$ac_exeext && {
25554 test "$cross_compiling" = yes ||
25555 $as_test_x conftest$ac_exeext
25557 bash_cv_signal_vintage=4.2bsd
25559 $as_echo "$as_me: failed program was:" >&5
25560 sed 's/^/| /' conftest.$ac_ext >&5
25563 cat >conftest.$ac_ext <<_ACEOF
25566 cat confdefs.h >>conftest.$ac_ext
25567 cat >>conftest.$ac_ext <<_ACEOF
25568 /* end confdefs.h. */
25570 #include <signal.h>
25571 RETSIGTYPE foo() { }
25576 int mask = sigmask(SIGINT);
25577 sigset(SIGINT, foo); sigrelse(SIGINT);
25578 sighold(SIGINT); sigpause(SIGINT);
25584 rm -f conftest.$ac_objext conftest$ac_exeext
25585 if { (ac_try="$ac_link"
25586 case "(($ac_try" in
25587 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
25588 *) ac_try_echo
=$ac_try;;
25590 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
25591 $as_echo "$ac_try_echo") >&5
25592 (eval "$ac_link") 2>conftest.er1
25594 grep -v '^ *+' conftest.er1
>conftest.err
25596 cat conftest.err
>&5
25597 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25598 (exit $ac_status); } && {
25599 test -z "$ac_c_werror_flag" ||
25600 test ! -s conftest.err
25601 } && test -s conftest
$ac_exeext && {
25602 test "$cross_compiling" = yes ||
25603 $as_test_x conftest
$ac_exeext
25605 bash_cv_signal_vintage
=svr3
25607 $as_echo "$as_me: failed program was:" >&5
25608 sed 's/^/| /' conftest.
$ac_ext >&5
25610 bash_cv_signal_vintage
=v7
25614 rm -rf conftest.dSYM
25615 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
25616 conftest
$ac_exeext conftest.
$ac_ext
25620 rm -rf conftest.dSYM
25621 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
25622 conftest
$ac_exeext conftest.
$ac_ext
25626 rm -rf conftest.dSYM
25627 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
25628 conftest
$ac_exeext conftest.
$ac_ext
25632 { $as_echo "$as_me:$LINENO: result: $bash_cv_signal_vintage" >&5
25633 $as_echo "$bash_cv_signal_vintage" >&6; }
25634 if test "$bash_cv_signal_vintage" = posix
; then
25635 cat >>confdefs.h
<<\_ACEOF
25636 #define HAVE_POSIX_SIGNALS 1
25639 elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
25640 cat >>confdefs.h
<<\_ACEOF
25641 #define HAVE_BSD_SIGNALS 1
25644 elif test "$bash_cv_signal_vintage" = svr3
; then
25645 cat >>confdefs.h
<<\_ACEOF
25646 #define HAVE_USG_SIGHOLD 1
25652 { $as_echo "$as_me:$LINENO: checking for sys_errlist and sys_nerr" >&5
25653 $as_echo_n "checking for sys_errlist and sys_nerr... " >&6; }
25654 if test "${bash_cv_sys_errlist+set}" = set; then
25655 $as_echo_n "(cached) " >&6
25657 cat >conftest.
$ac_ext <<_ACEOF
25660 cat confdefs.h
>>conftest.
$ac_ext
25661 cat >>conftest.
$ac_ext <<_ACEOF
25662 /* end confdefs.h. */
25667 extern char *sys_errlist[];
25668 extern int sys_nerr;
25669 char *msg = sys_errlist[sys_nerr - 1];
25674 rm -f conftest.
$ac_objext conftest
$ac_exeext
25675 if { (ac_try
="$ac_link"
25676 case "(($ac_try" in
25677 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25678 *) ac_try_echo=$ac_try;;
25680 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25681 $as_echo "$ac_try_echo") >&5
25682 (eval "$ac_link") 2>conftest.er1
25684 grep -v '^ *+' conftest.er1 >conftest.err
25686 cat conftest.err >&5
25687 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25688 (exit $ac_status); } && {
25689 test -z "$ac_c_werror_flag" ||
25690 test ! -s conftest.err
25691 } && test -s conftest$ac_exeext && {
25692 test "$cross_compiling" = yes ||
25693 $as_test_x conftest$ac_exeext
25695 bash_cv_sys_errlist=yes
25697 $as_echo "$as_me: failed program was:" >&5
25698 sed 's/^/| /' conftest.$ac_ext >&5
25700 bash_cv_sys_errlist=no
25703 rm -rf conftest.dSYM
25704 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25705 conftest$ac_exeext conftest.$ac_ext
25707 { $as_echo "$as_me:$LINENO: result: $bash_cv_sys_errlist" >&5
25708 $as_echo "$bash_cv_sys_errlist" >&6; }
25709 if test $bash_cv_sys_errlist = yes; then
25710 cat >>confdefs.h <<\_ACEOF
25711 #define HAVE_SYS_ERRLIST 1
25717 { $as_echo "$as_me:$LINENO: checking for sys_siglist in system C library" >&5
25718 $as_echo_n "checking for sys_siglist in system C library... " >&6; }
25719 if test "${bash_cv_sys_siglist+set}" = set; then
25720 $as_echo_n "(cached) " >&6
25722 if test "$cross_compiling" = yes; then
25723 { $as_echo "$as_me:$LINENO: WARNING: cannot check for sys_siglist if cross compiling -- defaulting to no" >&5
25724 $as_echo "$as_me: WARNING: cannot check for sys_siglist if cross compiling -- defaulting to no" >&2;}
25725 bash_cv_sys_siglist=no
25727 cat >conftest.$ac_ext <<_ACEOF
25730 cat confdefs.h >>conftest.$ac_ext
25731 cat >>conftest.$ac_ext <<_ACEOF
25732 /* end confdefs.h. */
25734 #include <sys/types.h>
25735 #include <signal.h>
25736 #ifdef HAVE_UNISTD_H
25737 #include <unistd.h>
25739 #if !HAVE_DECL_SYS_SIGLIST
25740 extern char *sys_siglist[];
25744 char *msg = sys_siglist[2];
25748 rm -f conftest$ac_exeext
25749 if { (ac_try="$ac_link"
25750 case "(($ac_try" in
25751 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
25752 *) ac_try_echo
=$ac_try;;
25754 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
25755 $as_echo "$ac_try_echo") >&5
25756 (eval "$ac_link") 2>&5
25758 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25759 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
25760 { (case "(($ac_try" in
25761 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25762 *) ac_try_echo=$ac_try;;
25764 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25765 $as_echo "$ac_try_echo") >&5
25766 (eval "$ac_try") 2>&5
25768 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25769 (exit $ac_status); }; }; then
25770 bash_cv_sys_siglist=yes
25772 $as_echo "$as_me: program exited with status $ac_status" >&5
25773 $as_echo "$as_me: failed program was:" >&5
25774 sed 's/^/| /' conftest.$ac_ext >&5
25776 ( exit $ac_status )
25777 bash_cv_sys_siglist=no
25779 rm -rf conftest.dSYM
25780 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25786 { $as_echo "$as_me:$LINENO: result: $bash_cv_sys_siglist" >&5
25787 $as_echo "$bash_cv_sys_siglist" >&6; }
25788 if test $bash_cv_sys_siglist = yes; then
25789 cat >>confdefs.h <<\_ACEOF
25790 #define HAVE_SYS_SIGLIST 1
25795 { $as_echo "$as_me:$LINENO: checking for _sys_siglist in signal.h or unistd.h" >&5
25796 $as_echo_n "checking for _sys_siglist in signal.h or unistd.h... " >&6; }
25797 if test "${bash_cv_decl_under_sys_siglist+set}" = set; then
25798 $as_echo_n "(cached) " >&6
25800 cat >conftest.$ac_ext <<_ACEOF
25803 cat confdefs.h >>conftest.$ac_ext
25804 cat >>conftest.$ac_ext <<_ACEOF
25805 /* end confdefs.h. */
25807 #include <sys/types.h>
25808 #include <signal.h>
25809 #ifdef HAVE_UNISTD_H
25810 #include <unistd.h>
25815 char *msg = _sys_siglist[2];
25820 rm -f conftest.$ac_objext
25821 if { (ac_try="$ac_compile"
25822 case "(($ac_try" in
25823 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
25824 *) ac_try_echo
=$ac_try;;
25826 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
25827 $as_echo "$ac_try_echo") >&5
25828 (eval "$ac_compile") 2>conftest.er1
25830 grep -v '^ *+' conftest.er1
>conftest.err
25832 cat conftest.err
>&5
25833 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25834 (exit $ac_status); } && {
25835 test -z "$ac_c_werror_flag" ||
25836 test ! -s conftest.err
25837 } && test -s conftest.
$ac_objext; then
25838 bash_cv_decl_under_sys_siglist
=yes
25840 $as_echo "$as_me: failed program was:" >&5
25841 sed 's/^/| /' conftest.
$ac_ext >&5
25843 bash_cv_decl_under_sys_siglist
=no
25846 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
25848 { $as_echo "$as_me:$LINENO: result: $bash_cv_decl_under_sys_siglist" >&5
25849 $as_echo "$bash_cv_decl_under_sys_siglist" >&6; }
25850 if test $bash_cv_decl_under_sys_siglist = yes; then
25851 cat >>confdefs.h
<<\_ACEOF
25852 #define UNDER_SYS_SIGLIST_DECLARED 1
25858 { $as_echo "$as_me:$LINENO: checking for _sys_siglist in system C library" >&5
25859 $as_echo_n "checking for _sys_siglist in system C library... " >&6; }
25860 if test "${bash_cv_under_sys_siglist+set}" = set; then
25861 $as_echo_n "(cached) " >&6
25863 if test "$cross_compiling" = yes; then
25864 { $as_echo "$as_me:$LINENO: WARNING: cannot check for _sys_siglist if cross compiling -- defaulting to no" >&5
25865 $as_echo "$as_me: WARNING: cannot check for _sys_siglist if cross compiling -- defaulting to no" >&2;}
25866 bash_cv_under_sys_siglist
=no
25868 cat >conftest.
$ac_ext <<_ACEOF
25871 cat confdefs.h
>>conftest.
$ac_ext
25872 cat >>conftest.
$ac_ext <<_ACEOF
25873 /* end confdefs.h. */
25875 #include <sys/types.h>
25876 #include <signal.h>
25877 #ifdef HAVE_UNISTD_H
25878 #include <unistd.h>
25880 #ifndef UNDER_SYS_SIGLIST_DECLARED
25881 extern char *_sys_siglist[];
25885 char *msg = (char *)_sys_siglist[2];
25889 rm -f conftest
$ac_exeext
25890 if { (ac_try
="$ac_link"
25891 case "(($ac_try" in
25892 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25893 *) ac_try_echo=$ac_try;;
25895 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25896 $as_echo "$ac_try_echo") >&5
25897 (eval "$ac_link") 2>&5
25899 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25900 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25901 { (case "(($ac_try" in
25902 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
25903 *) ac_try_echo
=$ac_try;;
25905 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
25906 $as_echo "$ac_try_echo") >&5
25907 (eval "$ac_try") 2>&5
25909 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25910 (exit $ac_status); }; }; then
25911 bash_cv_under_sys_siglist
=yes
25913 $as_echo "$as_me: program exited with status $ac_status" >&5
25914 $as_echo "$as_me: failed program was:" >&5
25915 sed 's/^/| /' conftest.
$ac_ext >&5
25917 ( exit $ac_status )
25918 bash_cv_under_sys_siglist
=no
25920 rm -rf conftest.dSYM
25921 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
25927 { $as_echo "$as_me:$LINENO: result: $bash_cv_under_sys_siglist" >&5
25928 $as_echo "$bash_cv_under_sys_siglist" >&6; }
25929 if test $bash_cv_under_sys_siglist = yes; then
25930 cat >>confdefs.h
<<\_ACEOF
25931 #define HAVE_UNDER_SYS_SIGLIST 1
25937 { $as_echo "$as_me:$LINENO: checking whether signal handlers are of type void" >&5
25938 $as_echo_n "checking whether signal handlers are of type void... " >&6; }
25939 if test "${bash_cv_void_sighandler+set}" = set; then
25940 $as_echo_n "(cached) " >&6
25942 cat >conftest.
$ac_ext <<_ACEOF
25945 cat confdefs.h
>>conftest.
$ac_ext
25946 cat >>conftest.
$ac_ext <<_ACEOF
25947 /* end confdefs.h. */
25948 #include <sys/types.h>
25949 #include <signal.h>
25956 void (*signal ()) ();
25965 rm -f conftest.
$ac_objext
25966 if { (ac_try
="$ac_compile"
25967 case "(($ac_try" in
25968 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25969 *) ac_try_echo=$ac_try;;
25971 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25972 $as_echo "$ac_try_echo") >&5
25973 (eval "$ac_compile") 2>conftest.er1
25975 grep -v '^ *+' conftest.er1 >conftest.err
25977 cat conftest.err >&5
25978 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25979 (exit $ac_status); } && {
25980 test -z "$ac_c_werror_flag" ||
25981 test ! -s conftest.err
25982 } && test -s conftest.$ac_objext; then
25983 bash_cv_void_sighandler=yes
25985 $as_echo "$as_me: failed program was:" >&5
25986 sed 's/^/| /' conftest.$ac_ext >&5
25988 bash_cv_void_sighandler=no
25991 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25993 { $as_echo "$as_me:$LINENO: result: $bash_cv_void_sighandler" >&5
25994 $as_echo "$bash_cv_void_sighandler" >&6; }
25995 if test $bash_cv_void_sighandler = yes; then
25996 cat >>confdefs.h <<\_ACEOF
25997 #define VOID_SIGHANDLER 1
26004 { $as_echo "$as_me:$LINENO: checking for clock_t" >&5
26005 $as_echo_n "checking for clock_t... " >&6; }
26006 if test "${bash_cv_type_clock_t+set}" = set; then
26007 $as_echo_n "(cached) " >&6
26009 cat >conftest.$ac_ext <<_ACEOF
26012 cat confdefs.h >>conftest.$ac_ext
26013 cat >>conftest.$ac_ext <<_ACEOF
26014 /* end confdefs.h. */
26015 #include <sys/types.h>
26017 #include <stdlib.h>
26018 #include <stddef.h>
26020 #if HAVE_INTTYPES_H
26021 #include <inttypes.h>
26023 #include <sys/times.h>
26026 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26027 $EGREP "clock_t" >/dev/null 2>&1; then
26028 bash_cv_type_clock_t=yes
26030 bash_cv_type_clock_t=no
26036 { $as_echo "$as_me:$LINENO: result: $bash_cv_type_clock_t" >&5
26037 $as_echo "$bash_cv_type_clock_t" >&6; }
26039 if test $bash_cv_type_clock_t = no; then
26040 cat >>confdefs.h <<_ACEOF
26041 #define clock_t long
26048 { $as_echo "$as_me:$LINENO: checking for sigset_t" >&5
26049 $as_echo_n "checking for sigset_t... " >&6; }
26050 if test "${bash_cv_type_sigset_t+set}" = set; then
26051 $as_echo_n "(cached) " >&6
26053 cat >conftest.$ac_ext <<_ACEOF
26056 cat confdefs.h >>conftest.$ac_ext
26057 cat >>conftest.$ac_ext <<_ACEOF
26058 /* end confdefs.h. */
26059 #include <sys/types.h>
26061 #include <stdlib.h>
26062 #include <stddef.h>
26064 #if HAVE_INTTYPES_H
26065 #include <inttypes.h>
26067 #include <signal.h>
26070 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26071 $EGREP "sigset_t" >/dev/null 2>&1; then
26072 bash_cv_type_sigset_t=yes
26074 bash_cv_type_sigset_t=no
26080 { $as_echo "$as_me:$LINENO: result: $bash_cv_type_sigset_t" >&5
26081 $as_echo "$bash_cv_type_sigset_t" >&6; }
26083 if test $bash_cv_type_sigset_t = no; then
26084 cat >>confdefs.h <<_ACEOF
26085 #define sigset_t int
26092 { $as_echo "$as_me:$LINENO: checking for quad_t" >&5
26093 $as_echo_n "checking for quad_t... " >&6; }
26094 if test "${bash_cv_type_quad_t+set}" = set; then
26095 $as_echo_n "(cached) " >&6
26097 cat >conftest.$ac_ext <<_ACEOF
26100 cat confdefs.h >>conftest.$ac_ext
26101 cat >>conftest.$ac_ext <<_ACEOF
26102 /* end confdefs.h. */
26103 #include <sys/types.h>
26105 #include <stdlib.h>
26106 #include <stddef.h>
26108 #if HAVE_INTTYPES_H
26109 #include <inttypes.h>
26114 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26115 $EGREP "quad_t" >/dev/null 2>&1; then
26116 bash_cv_type_quad_t=yes
26118 bash_cv_type_quad_t=no
26124 { $as_echo "$as_me:$LINENO: result: $bash_cv_type_quad_t" >&5
26125 $as_echo "$bash_cv_type_quad_t" >&6; }
26126 if test $bash_cv_type_quad_t = yes; then
26127 cat >>confdefs.h <<\_ACEOF
26128 #define HAVE_QUAD_T 1
26132 if test $bash_cv_type_quad_t = no; then
26133 cat >>confdefs.h <<_ACEOF
26134 #define quad_t long
26141 { $as_echo "$as_me:$LINENO: checking for intmax_t" >&5
26142 $as_echo_n "checking for intmax_t... " >&6; }
26143 if test "${bash_cv_type_intmax_t+set}" = set; then
26144 $as_echo_n "(cached) " >&6
26146 cat >conftest.$ac_ext <<_ACEOF
26149 cat confdefs.h >>conftest.$ac_ext
26150 cat >>conftest.$ac_ext <<_ACEOF
26151 /* end confdefs.h. */
26152 #include <sys/types.h>
26154 #include <stdlib.h>
26155 #include <stddef.h>
26157 #if HAVE_INTTYPES_H
26158 #include <inttypes.h>
26163 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26164 $EGREP "intmax_t" >/dev/null 2>&1; then
26165 bash_cv_type_intmax_t=yes
26167 bash_cv_type_intmax_t=no
26173 { $as_echo "$as_me:$LINENO: result: $bash_cv_type_intmax_t" >&5
26174 $as_echo "$bash_cv_type_intmax_t" >&6; }
26176 if test $bash_cv_type_intmax_t = no; then
26177 cat >>confdefs.h <<_ACEOF
26178 #define intmax_t $bash_cv_type_long_long
26185 { $as_echo "$as_me:$LINENO: checking for uintmax_t" >&5
26186 $as_echo_n "checking for uintmax_t... " >&6; }
26187 if test "${bash_cv_type_uintmax_t+set}" = set; then
26188 $as_echo_n "(cached) " >&6
26190 cat >conftest.$ac_ext <<_ACEOF
26193 cat confdefs.h >>conftest.$ac_ext
26194 cat >>conftest.$ac_ext <<_ACEOF
26195 /* end confdefs.h. */
26196 #include <sys/types.h>
26198 #include <stdlib.h>
26199 #include <stddef.h>
26201 #if HAVE_INTTYPES_H
26202 #include <inttypes.h>
26207 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26208 $EGREP "uintmax_t" >/dev/null 2>&1; then
26209 bash_cv_type_uintmax_t=yes
26211 bash_cv_type_uintmax_t=no
26217 { $as_echo "$as_me:$LINENO: result: $bash_cv_type_uintmax_t" >&5
26218 $as_echo "$bash_cv_type_uintmax_t" >&6; }
26220 if test $bash_cv_type_uintmax_t = no; then
26221 cat >>confdefs.h <<_ACEOF
26222 #define uintmax_t $bash_cv_type_unsigned_long_long
26227 if test "$ac_cv_header_sys_socket_h" = "yes"; then
26230 { $as_echo "$as_me:$LINENO: checking for socklen_t" >&5
26231 $as_echo_n "checking for socklen_t... " >&6; }
26232 if test "${bash_cv_type_socklen_t+set}" = set; then
26233 $as_echo_n "(cached) " >&6
26235 cat >conftest.$ac_ext <<_ACEOF
26238 cat confdefs.h >>conftest.$ac_ext
26239 cat >>conftest.$ac_ext <<_ACEOF
26240 /* end confdefs.h. */
26241 #include <sys/types.h>
26243 #include <stdlib.h>
26244 #include <stddef.h>
26246 #if HAVE_INTTYPES_H
26247 #include <inttypes.h>
26249 #include <sys/socket.h>
26252 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26253 $EGREP "socklen_t" >/dev/null 2>&1; then
26254 bash_cv_type_socklen_t=yes
26256 bash_cv_type_socklen_t=no
26262 { $as_echo "$as_me:$LINENO: result: $bash_cv_type_socklen_t" >&5
26263 $as_echo "$bash_cv_type_socklen_t" >&6; }
26264 if test $bash_cv_type_socklen_t = yes; then
26265 cat >>confdefs.h <<\_ACEOF
26266 #define HAVE_SOCKLEN_T 1
26270 if test $bash_cv_type_socklen_t = no; then
26271 cat >>confdefs.h <<_ACEOF
26272 #define socklen_t int
26278 { $as_echo "$as_me:$LINENO: checking for size and type of struct rlimit fields" >&5
26279 $as_echo_n "checking for size and type of struct rlimit fields... " >&6; }
26280 if test "${bash_cv_type_rlimit+set}" = set; then
26281 $as_echo_n "(cached) " >&6
26283 cat >conftest.$ac_ext <<_ACEOF
26286 cat confdefs.h >>conftest.$ac_ext
26287 cat >>conftest.$ac_ext <<_ACEOF
26288 /* end confdefs.h. */
26289 #include <sys/types.h>
26290 #include <sys/resource.h>
26299 rm -f conftest.$ac_objext
26300 if { (ac_try="$ac_compile"
26301 case "(($ac_try" in
26302 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
26303 *) ac_try_echo
=$ac_try;;
26305 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
26306 $as_echo "$ac_try_echo") >&5
26307 (eval "$ac_compile") 2>conftest.er1
26309 grep -v '^ *+' conftest.er1
>conftest.err
26311 cat conftest.err
>&5
26312 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26313 (exit $ac_status); } && {
26314 test -z "$ac_c_werror_flag" ||
26315 test ! -s conftest.err
26316 } && test -s conftest.
$ac_objext; then
26317 bash_cv_type_rlimit
=rlim_t
26319 $as_echo "$as_me: failed program was:" >&5
26320 sed 's/^/| /' conftest.
$ac_ext >&5
26323 if test "$cross_compiling" = yes; then
26324 { $as_echo "$as_me:$LINENO: WARNING: cannot check quad_t if cross compiling -- defaulting to long" >&5
26325 $as_echo "$as_me: WARNING: cannot check quad_t if cross compiling -- defaulting to long" >&2;}
26326 bash_cv_type_rlimit
=long
26328 cat >conftest.
$ac_ext <<_ACEOF
26331 cat confdefs.h
>>conftest.
$ac_ext
26332 cat >>conftest.
$ac_ext <<_ACEOF
26333 /* end confdefs.h. */
26335 #include <sys/types.h>
26336 #include <sys/time.h>
26337 #include <sys/resource.h>
26342 if (sizeof(rl.rlim_cur) == sizeof(quad_t))
26348 rm -f conftest
$ac_exeext
26349 if { (ac_try
="$ac_link"
26350 case "(($ac_try" in
26351 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
26352 *) ac_try_echo=$ac_try;;
26354 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26355 $as_echo "$ac_try_echo") >&5
26356 (eval "$ac_link") 2>&5
26358 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26359 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26360 { (case "(($ac_try" in
26361 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
26362 *) ac_try_echo
=$ac_try;;
26364 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
26365 $as_echo "$ac_try_echo") >&5
26366 (eval "$ac_try") 2>&5
26368 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26369 (exit $ac_status); }; }; then
26370 bash_cv_type_rlimit
=quad_t
26372 $as_echo "$as_me: program exited with status $ac_status" >&5
26373 $as_echo "$as_me: failed program was:" >&5
26374 sed 's/^/| /' conftest.
$ac_ext >&5
26376 ( exit $ac_status )
26377 bash_cv_type_rlimit
=long
26379 rm -rf conftest.dSYM
26380 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
26386 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
26390 { $as_echo "$as_me:$LINENO: result: $bash_cv_type_rlimit" >&5
26391 $as_echo "$bash_cv_type_rlimit" >&6; }
26392 if test $bash_cv_type_rlimit = quad_t
; then
26393 cat >>confdefs.h
<<\_ACEOF
26394 #define RLIMTYPE quad_t
26397 elif test $bash_cv_type_rlimit = rlim_t
; then
26398 cat >>confdefs.h
<<\_ACEOF
26399 #define RLIMTYPE rlim_t
26406 { $as_echo "$as_me:$LINENO: checking for struct termios.c_line" >&5
26407 $as_echo_n "checking for struct termios.c_line... " >&6; }
26408 if test "${ac_cv_member_struct_termios_c_line+set}" = set; then
26409 $as_echo_n "(cached) " >&6
26411 cat >conftest.
$ac_ext <<_ACEOF
26414 cat confdefs.h
>>conftest.
$ac_ext
26415 cat >>conftest.
$ac_ext <<_ACEOF
26416 /* end confdefs.h. */
26418 #include <sys/types.h>
26419 #include <termios.h>
26425 static struct termios ac_aggr;
26426 if (ac_aggr.c_line)
26432 rm -f conftest.
$ac_objext
26433 if { (ac_try
="$ac_compile"
26434 case "(($ac_try" in
26435 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
26436 *) ac_try_echo=$ac_try;;
26438 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26439 $as_echo "$ac_try_echo") >&5
26440 (eval "$ac_compile") 2>conftest.er1
26442 grep -v '^ *+' conftest.er1 >conftest.err
26444 cat conftest.err >&5
26445 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26446 (exit $ac_status); } && {
26447 test -z "$ac_c_werror_flag" ||
26448 test ! -s conftest.err
26449 } && test -s conftest.$ac_objext; then
26450 ac_cv_member_struct_termios_c_line=yes
26452 $as_echo "$as_me: failed program was:" >&5
26453 sed 's/^/| /' conftest.$ac_ext >&5
26455 cat >conftest.$ac_ext <<_ACEOF
26458 cat confdefs.h >>conftest.$ac_ext
26459 cat >>conftest.$ac_ext <<_ACEOF
26460 /* end confdefs.h. */
26462 #include <sys/types.h>
26463 #include <termios.h>
26469 static struct termios ac_aggr;
26470 if (sizeof ac_aggr.c_line)
26476 rm -f conftest.$ac_objext
26477 if { (ac_try="$ac_compile"
26478 case "(($ac_try" in
26479 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
26480 *) ac_try_echo
=$ac_try;;
26482 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
26483 $as_echo "$ac_try_echo") >&5
26484 (eval "$ac_compile") 2>conftest.er1
26486 grep -v '^ *+' conftest.er1
>conftest.err
26488 cat conftest.err
>&5
26489 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26490 (exit $ac_status); } && {
26491 test -z "$ac_c_werror_flag" ||
26492 test ! -s conftest.err
26493 } && test -s conftest.
$ac_objext; then
26494 ac_cv_member_struct_termios_c_line
=yes
26496 $as_echo "$as_me: failed program was:" >&5
26497 sed 's/^/| /' conftest.
$ac_ext >&5
26499 ac_cv_member_struct_termios_c_line
=no
26502 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
26505 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
26507 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_termios_c_line" >&5
26508 $as_echo "$ac_cv_member_struct_termios_c_line" >&6; }
26509 if test "x$ac_cv_member_struct_termios_c_line" = x
""yes; then
26510 cat >>confdefs.h
<<\_ACEOF
26511 #define TERMIOS_LDISC 1
26518 { $as_echo "$as_me:$LINENO: checking for struct termio.c_line" >&5
26519 $as_echo_n "checking for struct termio.c_line... " >&6; }
26520 if test "${ac_cv_member_struct_termio_c_line+set}" = set; then
26521 $as_echo_n "(cached) " >&6
26523 cat >conftest.
$ac_ext <<_ACEOF
26526 cat confdefs.h
>>conftest.
$ac_ext
26527 cat >>conftest.
$ac_ext <<_ACEOF
26528 /* end confdefs.h. */
26530 #include <sys/types.h>
26531 #include <termio.h>
26537 static struct termio ac_aggr;
26538 if (ac_aggr.c_line)
26544 rm -f conftest.
$ac_objext
26545 if { (ac_try
="$ac_compile"
26546 case "(($ac_try" in
26547 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
26548 *) ac_try_echo=$ac_try;;
26550 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26551 $as_echo "$ac_try_echo") >&5
26552 (eval "$ac_compile") 2>conftest.er1
26554 grep -v '^ *+' conftest.er1 >conftest.err
26556 cat conftest.err >&5
26557 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26558 (exit $ac_status); } && {
26559 test -z "$ac_c_werror_flag" ||
26560 test ! -s conftest.err
26561 } && test -s conftest.$ac_objext; then
26562 ac_cv_member_struct_termio_c_line=yes
26564 $as_echo "$as_me: failed program was:" >&5
26565 sed 's/^/| /' conftest.$ac_ext >&5
26567 cat >conftest.$ac_ext <<_ACEOF
26570 cat confdefs.h >>conftest.$ac_ext
26571 cat >>conftest.$ac_ext <<_ACEOF
26572 /* end confdefs.h. */
26574 #include <sys/types.h>
26575 #include <termio.h>
26581 static struct termio ac_aggr;
26582 if (sizeof ac_aggr.c_line)
26588 rm -f conftest.$ac_objext
26589 if { (ac_try="$ac_compile"
26590 case "(($ac_try" in
26591 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
26592 *) ac_try_echo
=$ac_try;;
26594 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
26595 $as_echo "$ac_try_echo") >&5
26596 (eval "$ac_compile") 2>conftest.er1
26598 grep -v '^ *+' conftest.er1
>conftest.err
26600 cat conftest.err
>&5
26601 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26602 (exit $ac_status); } && {
26603 test -z "$ac_c_werror_flag" ||
26604 test ! -s conftest.err
26605 } && test -s conftest.
$ac_objext; then
26606 ac_cv_member_struct_termio_c_line
=yes
26608 $as_echo "$as_me: failed program was:" >&5
26609 sed 's/^/| /' conftest.
$ac_ext >&5
26611 ac_cv_member_struct_termio_c_line
=no
26614 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
26617 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
26619 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_termio_c_line" >&5
26620 $as_echo "$ac_cv_member_struct_termio_c_line" >&6; }
26621 if test "x$ac_cv_member_struct_termio_c_line" = x
""yes; then
26622 cat >>confdefs.h
<<\_ACEOF
26623 #define TERMIO_LDISC 1
26630 { $as_echo "$as_me:$LINENO: checking for struct dirent.d_ino" >&5
26631 $as_echo_n "checking for struct dirent.d_ino... " >&6; }
26632 if test "${bash_cv_dirent_has_dino+set}" = set; then
26633 $as_echo_n "(cached) " >&6
26635 cat >conftest.
$ac_ext <<_ACEOF
26638 cat confdefs.h
>>conftest.
$ac_ext
26639 cat >>conftest.
$ac_ext <<_ACEOF
26640 /* end confdefs.h. */
26643 #include <sys/types.h>
26644 #ifdef HAVE_UNISTD_H
26645 # include <unistd.h>
26646 #endif /* HAVE_UNISTD_H */
26647 #if defined(HAVE_DIRENT_H)
26648 # include <dirent.h>
26650 # define dirent direct
26651 # ifdef HAVE_SYS_NDIR_H
26652 # include <sys/ndir.h>
26653 # endif /* SYSNDIR */
26654 # ifdef HAVE_SYS_DIR_H
26655 # include <sys/dir.h>
26656 # endif /* SYSDIR */
26657 # ifdef HAVE_NDIR_H
26660 #endif /* HAVE_DIRENT_H */
26666 struct dirent d; int z; z = d.d_ino;
26672 rm -f conftest.
$ac_objext
26673 if { (ac_try
="$ac_compile"
26674 case "(($ac_try" in
26675 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
26676 *) ac_try_echo=$ac_try;;
26678 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26679 $as_echo "$ac_try_echo") >&5
26680 (eval "$ac_compile") 2>conftest.er1
26682 grep -v '^ *+' conftest.er1 >conftest.err
26684 cat conftest.err >&5
26685 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26686 (exit $ac_status); } && {
26687 test -z "$ac_c_werror_flag" ||
26688 test ! -s conftest.err
26689 } && test -s conftest.$ac_objext; then
26690 bash_cv_dirent_has_dino=yes
26692 $as_echo "$as_me: failed program was:" >&5
26693 sed 's/^/| /' conftest.$ac_ext >&5
26695 bash_cv_dirent_has_dino=no
26698 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26701 { $as_echo "$as_me:$LINENO: result: $bash_cv_dirent_has_dino" >&5
26702 $as_echo "$bash_cv_dirent_has_dino" >&6; }
26703 if test $bash_cv_dirent_has_dino = yes; then
26704 cat >>confdefs.h <<\_ACEOF
26705 #define HAVE_STRUCT_DIRENT_D_INO 1
26711 { $as_echo "$as_me:$LINENO: checking for struct dirent.d_fileno" >&5
26712 $as_echo_n "checking for struct dirent.d_fileno... " >&6; }
26713 if test "${bash_cv_dirent_has_d_fileno+set}" = set; then
26714 $as_echo_n "(cached) " >&6
26716 cat >conftest.$ac_ext <<_ACEOF
26719 cat confdefs.h >>conftest.$ac_ext
26720 cat >>conftest.$ac_ext <<_ACEOF
26721 /* end confdefs.h. */
26724 #include <sys/types.h>
26725 #ifdef HAVE_UNISTD_H
26726 # include <unistd.h>
26727 #endif /* HAVE_UNISTD_H */
26728 #if defined(HAVE_DIRENT_H)
26729 # include <dirent.h>
26731 # define dirent direct
26732 # ifdef HAVE_SYS_NDIR_H
26733 # include <sys/ndir.h>
26734 # endif /* SYSNDIR */
26735 # ifdef HAVE_SYS_DIR_H
26736 # include <sys/dir.h>
26737 # endif /* SYSDIR */
26738 # ifdef HAVE_NDIR_H
26741 #endif /* HAVE_DIRENT_H */
26747 struct dirent d; int z; z = d.d_fileno;
26753 rm -f conftest.$ac_objext
26754 if { (ac_try="$ac_compile"
26755 case "(($ac_try" in
26756 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
26757 *) ac_try_echo
=$ac_try;;
26759 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
26760 $as_echo "$ac_try_echo") >&5
26761 (eval "$ac_compile") 2>conftest.er1
26763 grep -v '^ *+' conftest.er1
>conftest.err
26765 cat conftest.err
>&5
26766 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26767 (exit $ac_status); } && {
26768 test -z "$ac_c_werror_flag" ||
26769 test ! -s conftest.err
26770 } && test -s conftest.
$ac_objext; then
26771 bash_cv_dirent_has_d_fileno
=yes
26773 $as_echo "$as_me: failed program was:" >&5
26774 sed 's/^/| /' conftest.
$ac_ext >&5
26776 bash_cv_dirent_has_d_fileno
=no
26779 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
26782 { $as_echo "$as_me:$LINENO: result: $bash_cv_dirent_has_d_fileno" >&5
26783 $as_echo "$bash_cv_dirent_has_d_fileno" >&6; }
26784 if test $bash_cv_dirent_has_d_fileno = yes; then
26785 cat >>confdefs.h
<<\_ACEOF
26786 #define HAVE_STRUCT_DIRENT_D_FILENO 1
26792 { $as_echo "$as_me:$LINENO: checking for struct dirent.d_namlen" >&5
26793 $as_echo_n "checking for struct dirent.d_namlen... " >&6; }
26794 if test "${bash_cv_dirent_has_d_namlen+set}" = set; then
26795 $as_echo_n "(cached) " >&6
26797 cat >conftest.
$ac_ext <<_ACEOF
26800 cat confdefs.h
>>conftest.
$ac_ext
26801 cat >>conftest.
$ac_ext <<_ACEOF
26802 /* end confdefs.h. */
26805 #include <sys/types.h>
26806 #ifdef HAVE_UNISTD_H
26807 # include <unistd.h>
26808 #endif /* HAVE_UNISTD_H */
26809 #if defined(HAVE_DIRENT_H)
26810 # include <dirent.h>
26812 # define dirent direct
26813 # ifdef HAVE_SYS_NDIR_H
26814 # include <sys/ndir.h>
26815 # endif /* SYSNDIR */
26816 # ifdef HAVE_SYS_DIR_H
26817 # include <sys/dir.h>
26818 # endif /* SYSDIR */
26819 # ifdef HAVE_NDIR_H
26822 #endif /* HAVE_DIRENT_H */
26828 struct dirent d; int z; z = d.d_namlen;
26834 rm -f conftest.
$ac_objext
26835 if { (ac_try
="$ac_compile"
26836 case "(($ac_try" in
26837 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
26838 *) ac_try_echo=$ac_try;;
26840 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26841 $as_echo "$ac_try_echo") >&5
26842 (eval "$ac_compile") 2>conftest.er1
26844 grep -v '^ *+' conftest.er1 >conftest.err
26846 cat conftest.err >&5
26847 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26848 (exit $ac_status); } && {
26849 test -z "$ac_c_werror_flag" ||
26850 test ! -s conftest.err
26851 } && test -s conftest.$ac_objext; then
26852 bash_cv_dirent_has_d_namlen=yes
26854 $as_echo "$as_me: failed program was:" >&5
26855 sed 's/^/| /' conftest.$ac_ext >&5
26857 bash_cv_dirent_has_d_namlen=no
26860 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26863 { $as_echo "$as_me:$LINENO: result: $bash_cv_dirent_has_d_namlen" >&5
26864 $as_echo "$bash_cv_dirent_has_d_namlen" >&6; }
26865 if test $bash_cv_dirent_has_d_namlen = yes; then
26866 cat >>confdefs.h <<\_ACEOF
26867 #define HAVE_STRUCT_DIRENT_D_NAMLEN 1
26872 { $as_echo "$as_me:$LINENO: checking for struct winsize in sys/ioctl.h and termios.h" >&5
26873 $as_echo_n "checking for struct winsize in sys/ioctl.h and termios.h... " >&6; }
26874 if test "${bash_cv_struct_winsize_header+set}" = set; then
26875 $as_echo_n "(cached) " >&6
26877 cat >conftest.$ac_ext <<_ACEOF
26880 cat confdefs.h >>conftest.$ac_ext
26881 cat >>conftest.$ac_ext <<_ACEOF
26882 /* end confdefs.h. */
26883 #include <sys/types.h>
26884 #include <sys/ioctl.h>
26893 rm -f conftest.$ac_objext
26894 if { (ac_try="$ac_compile"
26895 case "(($ac_try" in
26896 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
26897 *) ac_try_echo
=$ac_try;;
26899 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
26900 $as_echo "$ac_try_echo") >&5
26901 (eval "$ac_compile") 2>conftest.er1
26903 grep -v '^ *+' conftest.er1
>conftest.err
26905 cat conftest.err
>&5
26906 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26907 (exit $ac_status); } && {
26908 test -z "$ac_c_werror_flag" ||
26909 test ! -s conftest.err
26910 } && test -s conftest.
$ac_objext; then
26911 bash_cv_struct_winsize_header
=ioctl_h
26913 $as_echo "$as_me: failed program was:" >&5
26914 sed 's/^/| /' conftest.
$ac_ext >&5
26916 cat >conftest.
$ac_ext <<_ACEOF
26919 cat confdefs.h
>>conftest.
$ac_ext
26920 cat >>conftest.
$ac_ext <<_ACEOF
26921 /* end confdefs.h. */
26922 #include <sys/types.h>
26923 #include <termios.h>
26932 rm -f conftest.
$ac_objext
26933 if { (ac_try
="$ac_compile"
26934 case "(($ac_try" in
26935 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
26936 *) ac_try_echo=$ac_try;;
26938 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26939 $as_echo "$ac_try_echo") >&5
26940 (eval "$ac_compile") 2>conftest.er1
26942 grep -v '^ *+' conftest.er1 >conftest.err
26944 cat conftest.err >&5
26945 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26946 (exit $ac_status); } && {
26947 test -z "$ac_c_werror_flag" ||
26948 test ! -s conftest.err
26949 } && test -s conftest.$ac_objext; then
26950 bash_cv_struct_winsize_header=termios_h
26952 $as_echo "$as_me: failed program was:" >&5
26953 sed 's/^/| /' conftest.$ac_ext >&5
26955 bash_cv_struct_winsize_header=other
26958 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26962 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26965 if test $bash_cv_struct_winsize_header = ioctl_h; then
26966 { $as_echo "$as_me:$LINENO: result: sys/ioctl.h" >&5
26967 $as_echo "sys/ioctl.h" >&6; }
26968 cat >>confdefs.h <<\_ACEOF
26969 #define STRUCT_WINSIZE_IN_SYS_IOCTL 1
26972 elif test $bash_cv_struct_winsize_header = termios_h; then
26973 { $as_echo "$as_me:$LINENO: result: termios.h" >&5
26974 $as_echo "termios.h" >&6; }
26975 cat >>confdefs.h <<\_ACEOF
26976 #define STRUCT_WINSIZE_IN_TERMIOS 1
26980 { $as_echo "$as_me:$LINENO: result: not found" >&5
26981 $as_echo "not found" >&6; }
26984 { $as_echo "$as_me:$LINENO: checking for struct timeval in sys/time.h and time.h" >&5
26985 $as_echo_n "checking for struct timeval in sys/time.h and time.h... " >&6; }
26986 if test "${bash_cv_struct_timeval+set}" = set; then
26987 $as_echo_n "(cached) " >&6
26990 cat >conftest.$ac_ext <<_ACEOF
26993 cat confdefs.h >>conftest.$ac_ext
26994 cat >>conftest.$ac_ext <<_ACEOF
26995 /* end confdefs.h. */
26996 #include <sys/time.h>
26999 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27000 $EGREP "struct timeval" >/dev/null 2>&1; then
27001 bash_cv_struct_timeval=yes
27003 cat >conftest.$ac_ext <<_ACEOF
27006 cat confdefs.h >>conftest.$ac_ext
27007 cat >>conftest.$ac_ext <<_ACEOF
27008 /* end confdefs.h. */
27012 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27013 $EGREP "struct timeval" >/dev/null 2>&1; then
27014 bash_cv_struct_timeval=yes
27016 bash_cv_struct_timeval=no
27026 { $as_echo "$as_me:$LINENO: result: $bash_cv_struct_timeval" >&5
27027 $as_echo "$bash_cv_struct_timeval" >&6; }
27028 if test $bash_cv_struct_timeval = yes; then
27029 cat >>confdefs.h <<\_ACEOF
27030 #define HAVE_TIMEVAL 1
27035 { $as_echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
27036 $as_echo_n "checking for struct stat.st_blocks... " >&6; }
27037 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
27038 $as_echo_n "(cached) " >&6
27040 cat >conftest.$ac_ext <<_ACEOF
27043 cat confdefs.h >>conftest.$ac_ext
27044 cat >>conftest.$ac_ext <<_ACEOF
27045 /* end confdefs.h. */
27046 $ac_includes_default
27050 static struct stat ac_aggr;
27051 if (ac_aggr.st_blocks)
27057 rm -f conftest.$ac_objext
27058 if { (ac_try="$ac_compile"
27059 case "(($ac_try" in
27060 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
27061 *) ac_try_echo
=$ac_try;;
27063 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
27064 $as_echo "$ac_try_echo") >&5
27065 (eval "$ac_compile") 2>conftest.er1
27067 grep -v '^ *+' conftest.er1
>conftest.err
27069 cat conftest.err
>&5
27070 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27071 (exit $ac_status); } && {
27072 test -z "$ac_c_werror_flag" ||
27073 test ! -s conftest.err
27074 } && test -s conftest.
$ac_objext; then
27075 ac_cv_member_struct_stat_st_blocks
=yes
27077 $as_echo "$as_me: failed program was:" >&5
27078 sed 's/^/| /' conftest.
$ac_ext >&5
27080 cat >conftest.
$ac_ext <<_ACEOF
27083 cat confdefs.h
>>conftest.
$ac_ext
27084 cat >>conftest.
$ac_ext <<_ACEOF
27085 /* end confdefs.h. */
27086 $ac_includes_default
27090 static struct stat ac_aggr;
27091 if (sizeof ac_aggr.st_blocks)
27097 rm -f conftest.
$ac_objext
27098 if { (ac_try
="$ac_compile"
27099 case "(($ac_try" in
27100 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
27101 *) ac_try_echo=$ac_try;;
27103 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27104 $as_echo "$ac_try_echo") >&5
27105 (eval "$ac_compile") 2>conftest.er1
27107 grep -v '^ *+' conftest.er1 >conftest.err
27109 cat conftest.err >&5
27110 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27111 (exit $ac_status); } && {
27112 test -z "$ac_c_werror_flag" ||
27113 test ! -s conftest.err
27114 } && test -s conftest.$ac_objext; then
27115 ac_cv_member_struct_stat_st_blocks=yes
27117 $as_echo "$as_me: failed program was:" >&5
27118 sed 's/^/| /' conftest.$ac_ext >&5
27120 ac_cv_member_struct_stat_st_blocks=no
27123 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27126 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27128 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
27129 $as_echo "$ac_cv_member_struct_stat_st_blocks" >&6; }
27130 if test "x$ac_cv_member_struct_stat_st_blocks" = x""yes; then
27132 cat >>confdefs.h <<_ACEOF
27133 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
27139 { $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
27140 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
27141 if test "${ac_cv_struct_tm+set}" = set; then
27142 $as_echo_n "(cached) " >&6
27144 cat >conftest.$ac_ext <<_ACEOF
27147 cat confdefs.h >>conftest.$ac_ext
27148 cat >>conftest.$ac_ext <<_ACEOF
27149 /* end confdefs.h. */
27150 #include <sys/types.h>
27157 int *p = &tm.tm_sec;
27163 rm -f conftest.$ac_objext
27164 if { (ac_try="$ac_compile"
27165 case "(($ac_try" in
27166 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
27167 *) ac_try_echo
=$ac_try;;
27169 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
27170 $as_echo "$ac_try_echo") >&5
27171 (eval "$ac_compile") 2>conftest.er1
27173 grep -v '^ *+' conftest.er1
>conftest.err
27175 cat conftest.err
>&5
27176 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27177 (exit $ac_status); } && {
27178 test -z "$ac_c_werror_flag" ||
27179 test ! -s conftest.err
27180 } && test -s conftest.
$ac_objext; then
27181 ac_cv_struct_tm
=time.h
27183 $as_echo "$as_me: failed program was:" >&5
27184 sed 's/^/| /' conftest.
$ac_ext >&5
27186 ac_cv_struct_tm
=sys
/time.h
27189 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
27191 { $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
27192 $as_echo "$ac_cv_struct_tm" >&6; }
27193 if test $ac_cv_struct_tm = sys
/time.h
; then
27195 cat >>confdefs.h
<<\_ACEOF
27196 #define TM_IN_SYS_TIME 1
27201 { $as_echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
27202 $as_echo_n "checking for struct tm.tm_zone... " >&6; }
27203 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
27204 $as_echo_n "(cached) " >&6
27206 cat >conftest.
$ac_ext <<_ACEOF
27209 cat confdefs.h
>>conftest.
$ac_ext
27210 cat >>conftest.
$ac_ext <<_ACEOF
27211 /* end confdefs.h. */
27212 #include <sys/types.h>
27213 #include <$ac_cv_struct_tm>
27219 static struct tm ac_aggr;
27220 if (ac_aggr.tm_zone)
27226 rm -f conftest.
$ac_objext
27227 if { (ac_try
="$ac_compile"
27228 case "(($ac_try" in
27229 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
27230 *) ac_try_echo=$ac_try;;
27232 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27233 $as_echo "$ac_try_echo") >&5
27234 (eval "$ac_compile") 2>conftest.er1
27236 grep -v '^ *+' conftest.er1 >conftest.err
27238 cat conftest.err >&5
27239 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27240 (exit $ac_status); } && {
27241 test -z "$ac_c_werror_flag" ||
27242 test ! -s conftest.err
27243 } && test -s conftest.$ac_objext; then
27244 ac_cv_member_struct_tm_tm_zone=yes
27246 $as_echo "$as_me: failed program was:" >&5
27247 sed 's/^/| /' conftest.$ac_ext >&5
27249 cat >conftest.$ac_ext <<_ACEOF
27252 cat confdefs.h >>conftest.$ac_ext
27253 cat >>conftest.$ac_ext <<_ACEOF
27254 /* end confdefs.h. */
27255 #include <sys/types.h>
27256 #include <$ac_cv_struct_tm>
27262 static struct tm ac_aggr;
27263 if (sizeof ac_aggr.tm_zone)
27269 rm -f conftest.$ac_objext
27270 if { (ac_try="$ac_compile"
27271 case "(($ac_try" in
27272 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
27273 *) ac_try_echo
=$ac_try;;
27275 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
27276 $as_echo "$ac_try_echo") >&5
27277 (eval "$ac_compile") 2>conftest.er1
27279 grep -v '^ *+' conftest.er1
>conftest.err
27281 cat conftest.err
>&5
27282 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27283 (exit $ac_status); } && {
27284 test -z "$ac_c_werror_flag" ||
27285 test ! -s conftest.err
27286 } && test -s conftest.
$ac_objext; then
27287 ac_cv_member_struct_tm_tm_zone
=yes
27289 $as_echo "$as_me: failed program was:" >&5
27290 sed 's/^/| /' conftest.
$ac_ext >&5
27292 ac_cv_member_struct_tm_tm_zone
=no
27295 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
27298 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
27300 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
27301 $as_echo "$ac_cv_member_struct_tm_tm_zone" >&6; }
27302 if test "x$ac_cv_member_struct_tm_tm_zone" = x
""yes; then
27304 cat >>confdefs.h
<<_ACEOF
27305 #define HAVE_STRUCT_TM_TM_ZONE 1
27311 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
27313 cat >>confdefs.h
<<\_ACEOF
27314 #define HAVE_TM_ZONE 1
27318 { $as_echo "$as_me:$LINENO: checking whether tzname is declared" >&5
27319 $as_echo_n "checking whether tzname is declared... " >&6; }
27320 if test "${ac_cv_have_decl_tzname+set}" = set; then
27321 $as_echo_n "(cached) " >&6
27323 cat >conftest.
$ac_ext <<_ACEOF
27326 cat confdefs.h
>>conftest.
$ac_ext
27327 cat >>conftest.
$ac_ext <<_ACEOF
27328 /* end confdefs.h. */
27342 rm -f conftest.
$ac_objext
27343 if { (ac_try
="$ac_compile"
27344 case "(($ac_try" in
27345 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
27346 *) ac_try_echo=$ac_try;;
27348 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27349 $as_echo "$ac_try_echo") >&5
27350 (eval "$ac_compile") 2>conftest.er1
27352 grep -v '^ *+' conftest.er1 >conftest.err
27354 cat conftest.err >&5
27355 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27356 (exit $ac_status); } && {
27357 test -z "$ac_c_werror_flag" ||
27358 test ! -s conftest.err
27359 } && test -s conftest.$ac_objext; then
27360 ac_cv_have_decl_tzname=yes
27362 $as_echo "$as_me: failed program was:" >&5
27363 sed 's/^/| /' conftest.$ac_ext >&5
27365 ac_cv_have_decl_tzname=no
27368 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27370 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
27371 $as_echo "$ac_cv_have_decl_tzname" >&6; }
27372 if test "x$ac_cv_have_decl_tzname" = x""yes; then
27374 cat >>confdefs.h <<_ACEOF
27375 #define HAVE_DECL_TZNAME 1
27380 cat >>confdefs.h <<_ACEOF
27381 #define HAVE_DECL_TZNAME 0
27388 { $as_echo "$as_me:$LINENO: checking for tzname" >&5
27389 $as_echo_n "checking for tzname... " >&6; }
27390 if test "${ac_cv_var_tzname+set}" = set; then
27391 $as_echo_n "(cached) " >&6
27393 cat >conftest.$ac_ext <<_ACEOF
27396 cat confdefs.h >>conftest.$ac_ext
27397 cat >>conftest.$ac_ext <<_ACEOF
27398 /* end confdefs.h. */
27400 #if !HAVE_DECL_TZNAME
27401 extern char *tzname[];
27407 return tzname[0][0];
27412 rm -f conftest.$ac_objext conftest$ac_exeext
27413 if { (ac_try="$ac_link"
27414 case "(($ac_try" in
27415 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
27416 *) ac_try_echo
=$ac_try;;
27418 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
27419 $as_echo "$ac_try_echo") >&5
27420 (eval "$ac_link") 2>conftest.er1
27422 grep -v '^ *+' conftest.er1
>conftest.err
27424 cat conftest.err
>&5
27425 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27426 (exit $ac_status); } && {
27427 test -z "$ac_c_werror_flag" ||
27428 test ! -s conftest.err
27429 } && test -s conftest
$ac_exeext && {
27430 test "$cross_compiling" = yes ||
27431 $as_test_x conftest
$ac_exeext
27433 ac_cv_var_tzname
=yes
27435 $as_echo "$as_me: failed program was:" >&5
27436 sed 's/^/| /' conftest.
$ac_ext >&5
27438 ac_cv_var_tzname
=no
27441 rm -rf conftest.dSYM
27442 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
27443 conftest
$ac_exeext conftest.
$ac_ext
27445 { $as_echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
27446 $as_echo "$ac_cv_var_tzname" >&6; }
27447 if test $ac_cv_var_tzname = yes; then
27449 cat >>confdefs.h
<<\_ACEOF
27450 #define HAVE_TZNAME 1
27456 { $as_echo "$as_me:$LINENO: checking for struct timezone in sys/time.h and time.h" >&5
27457 $as_echo_n "checking for struct timezone in sys/time.h and time.h... " >&6; }
27458 if test "${bash_cv_struct_timezone+set}" = set; then
27459 $as_echo_n "(cached) " >&6
27462 cat >conftest.
$ac_ext <<_ACEOF
27465 cat confdefs.h
>>conftest.
$ac_ext
27466 cat >>conftest.
$ac_ext <<_ACEOF
27467 /* end confdefs.h. */
27468 #include <sys/time.h>
27471 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27472 $EGREP "struct timezone" >/dev
/null
2>&1; then
27473 bash_cv_struct_timezone
=yes
27475 cat >conftest.
$ac_ext <<_ACEOF
27478 cat confdefs.h
>>conftest.
$ac_ext
27479 cat >>conftest.
$ac_ext <<_ACEOF
27480 /* end confdefs.h. */
27484 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27485 $EGREP "struct timezone" >/dev
/null
2>&1; then
27486 bash_cv_struct_timezone
=yes
27488 bash_cv_struct_timezone
=no
27498 { $as_echo "$as_me:$LINENO: result: $bash_cv_struct_timezone" >&5
27499 $as_echo "$bash_cv_struct_timezone" >&6; }
27500 if test $bash_cv_struct_timezone = yes; then
27501 cat >>confdefs.h
<<\_ACEOF
27502 #define HAVE_STRUCT_TIMEZONE 1
27508 { $as_echo "$as_me:$LINENO: checking for the existence of strsignal" >&5
27509 $as_echo_n "checking for the existence of strsignal... " >&6; }
27510 if test "${bash_cv_have_strsignal+set}" = set; then
27511 $as_echo_n "(cached) " >&6
27513 cat >conftest.
$ac_ext <<_ACEOF
27516 cat confdefs.h
>>conftest.
$ac_ext
27517 cat >>conftest.
$ac_ext <<_ACEOF
27518 /* end confdefs.h. */
27519 #include <sys/types.h>
27520 #include <signal.h>
27524 char *s = (char *)strsignal(2);
27529 rm -f conftest.
$ac_objext conftest
$ac_exeext
27530 if { (ac_try
="$ac_link"
27531 case "(($ac_try" in
27532 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
27533 *) ac_try_echo=$ac_try;;
27535 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27536 $as_echo "$ac_try_echo") >&5
27537 (eval "$ac_link") 2>conftest.er1
27539 grep -v '^ *+' conftest.er1 >conftest.err
27541 cat conftest.err >&5
27542 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27543 (exit $ac_status); } && {
27544 test -z "$ac_c_werror_flag" ||
27545 test ! -s conftest.err
27546 } && test -s conftest$ac_exeext && {
27547 test "$cross_compiling" = yes ||
27548 $as_test_x conftest$ac_exeext
27550 bash_cv_have_strsignal=yes
27552 $as_echo "$as_me: failed program was:" >&5
27553 sed 's/^/| /' conftest.$ac_ext >&5
27555 bash_cv_have_strsignal=no
27558 rm -rf conftest.dSYM
27559 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27560 conftest$ac_exeext conftest.$ac_ext
27563 { $as_echo "$as_me:$LINENO: result: $bash_cv_have_strsignal" >&5
27564 $as_echo "$bash_cv_have_strsignal" >&6; }
27565 if test $bash_cv_have_strsignal = yes; then
27566 cat >>confdefs.h <<\_ACEOF
27567 #define HAVE_STRSIGNAL 1
27572 { $as_echo "$as_me:$LINENO: checking if opendir() opens non-directories" >&5
27573 $as_echo_n "checking if opendir() opens non-directories... " >&6; }
27574 if test "${bash_cv_opendir_not_robust+set}" = set; then
27575 $as_echo_n "(cached) " >&6
27577 if test "$cross_compiling" = yes; then
27578 { $as_echo "$as_me:$LINENO: WARNING: cannot check opendir if cross compiling -- defaulting to no" >&5
27579 $as_echo "$as_me: WARNING: cannot check opendir if cross compiling -- defaulting to no" >&2;}
27580 bash_cv_opendir_not_robust=no
27583 cat >conftest.$ac_ext <<_ACEOF
27586 cat confdefs.h >>conftest.$ac_ext
27587 cat >>conftest.$ac_ext <<_ACEOF
27588 /* end confdefs.h. */
27591 #include <sys/types.h>
27593 #ifdef HAVE_UNISTD_H
27594 # include <unistd.h>
27595 #endif /* HAVE_UNISTD_H */
27596 #if defined(HAVE_DIRENT_H)
27597 # include <dirent.h>
27599 # define dirent direct
27600 # ifdef HAVE_SYS_NDIR_H
27601 # include <sys/ndir.h>
27602 # endif /* SYSNDIR */
27603 # ifdef HAVE_SYS_DIR_H
27604 # include <sys/dir.h>
27605 # endif /* SYSDIR */
27606 # ifdef HAVE_NDIR_H
27609 #endif /* HAVE_DIRENT_H */
27614 err = mkdir("bash-aclocal", 0700);
27619 unlink("bash-aclocal/not_a_directory");
27620 fd = open("bash-aclocal/not_a_directory", O_WRONLY|O_CREAT|O_EXCL, 0666);
27621 write(fd, "\n", 1);
27623 dir = opendir("bash-aclocal/not_a_directory");
27624 unlink("bash-aclocal/not_a_directory");
27625 rmdir("bash-aclocal");
27629 rm -f conftest$ac_exeext
27630 if { (ac_try="$ac_link"
27631 case "(($ac_try" in
27632 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
27633 *) ac_try_echo
=$ac_try;;
27635 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
27636 $as_echo "$ac_try_echo") >&5
27637 (eval "$ac_link") 2>&5
27639 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27640 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
27641 { (case "(($ac_try" in
27642 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
27643 *) ac_try_echo=$ac_try;;
27645 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27646 $as_echo "$ac_try_echo") >&5
27647 (eval "$ac_try") 2>&5
27649 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27650 (exit $ac_status); }; }; then
27651 bash_cv_opendir_not_robust=yes
27653 $as_echo "$as_me: program exited with status $ac_status" >&5
27654 $as_echo "$as_me: failed program was:" >&5
27655 sed 's/^/| /' conftest.$ac_ext >&5
27657 ( exit $ac_status )
27658 bash_cv_opendir_not_robust=no
27660 rm -rf conftest.dSYM
27661 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27667 { $as_echo "$as_me:$LINENO: result: $bash_cv_opendir_not_robust" >&5
27668 $as_echo "$bash_cv_opendir_not_robust" >&6; }
27669 if test $bash_cv_opendir_not_robust = yes; then
27670 cat >>confdefs.h <<\_ACEOF
27671 #define OPENDIR_NOT_ROBUST 1
27676 { $as_echo "$as_me:$LINENO: checking whether ulimit can substitute for getdtablesize" >&5
27677 $as_echo_n "checking whether ulimit can substitute for getdtablesize... " >&6; }
27678 if test "${bash_cv_ulimit_maxfds+set}" = set; then
27679 $as_echo_n "(cached) " >&6
27681 if test "$cross_compiling" = yes; then
27682 { $as_echo "$as_me:$LINENO: WARNING: cannot check ulimit if cross compiling -- defaulting to no" >&5
27683 $as_echo "$as_me: WARNING: cannot check ulimit if cross compiling -- defaulting to no" >&2;}
27684 bash_cv_ulimit_maxfds=no
27687 cat >conftest.$ac_ext <<_ACEOF
27690 cat confdefs.h >>conftest.$ac_ext
27691 cat >>conftest.$ac_ext <<_ACEOF
27692 /* end confdefs.h. */
27696 long maxfds = ulimit(4, 0L);
27697 exit (maxfds == -1L);
27701 rm -f conftest$ac_exeext
27702 if { (ac_try="$ac_link"
27703 case "(($ac_try" in
27704 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
27705 *) ac_try_echo
=$ac_try;;
27707 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
27708 $as_echo "$ac_try_echo") >&5
27709 (eval "$ac_link") 2>&5
27711 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27712 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
27713 { (case "(($ac_try" in
27714 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
27715 *) ac_try_echo=$ac_try;;
27717 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27718 $as_echo "$ac_try_echo") >&5
27719 (eval "$ac_try") 2>&5
27721 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27722 (exit $ac_status); }; }; then
27723 bash_cv_ulimit_maxfds=yes
27725 $as_echo "$as_me: program exited with status $ac_status" >&5
27726 $as_echo "$as_me: failed program was:" >&5
27727 sed 's/^/| /' conftest.$ac_ext >&5
27729 ( exit $ac_status )
27730 bash_cv_ulimit_maxfds=no
27732 rm -rf conftest.dSYM
27733 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27739 { $as_echo "$as_me:$LINENO: result: $bash_cv_ulimit_maxfds" >&5
27740 $as_echo "$bash_cv_ulimit_maxfds" >&6; }
27741 if test $bash_cv_ulimit_maxfds = yes; then
27742 cat >>confdefs.h <<\_ACEOF
27743 #define ULIMIT_MAXFDS 1
27765 { $as_echo "$as_me:$LINENO: checking whether fpurge is declared" >&5
27766 $as_echo_n "checking whether fpurge is declared... " >&6; }
27767 if test "${ac_cv_have_decl_fpurge+set}" = set; then
27768 $as_echo_n "(cached) " >&6
27770 cat >conftest.$ac_ext <<_ACEOF
27773 cat confdefs.h >>conftest.$ac_ext
27774 cat >>conftest.$ac_ext <<_ACEOF
27775 /* end confdefs.h. */
27789 rm -f conftest.$ac_objext
27790 if { (ac_try="$ac_compile"
27791 case "(($ac_try" in
27792 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
27793 *) ac_try_echo
=$ac_try;;
27795 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
27796 $as_echo "$ac_try_echo") >&5
27797 (eval "$ac_compile") 2>conftest.er1
27799 grep -v '^ *+' conftest.er1
>conftest.err
27801 cat conftest.err
>&5
27802 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27803 (exit $ac_status); } && {
27804 test -z "$ac_c_werror_flag" ||
27805 test ! -s conftest.err
27806 } && test -s conftest.
$ac_objext; then
27807 ac_cv_have_decl_fpurge
=yes
27809 $as_echo "$as_me: failed program was:" >&5
27810 sed 's/^/| /' conftest.
$ac_ext >&5
27812 ac_cv_have_decl_fpurge
=no
27815 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
27817 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_fpurge" >&5
27818 $as_echo "$ac_cv_have_decl_fpurge" >&6; }
27819 if test "x$ac_cv_have_decl_fpurge" = x
""yes; then
27821 cat >>confdefs.h
<<_ACEOF
27822 #define HAVE_DECL_FPURGE 1
27827 cat >>confdefs.h
<<_ACEOF
27828 #define HAVE_DECL_FPURGE 0
27836 { $as_echo "$as_me:$LINENO: checking to see if getenv can be redefined" >&5
27837 $as_echo_n "checking to see if getenv can be redefined... " >&6; }
27838 if test "${bash_cv_getenv_redef+set}" = set; then
27839 $as_echo_n "(cached) " >&6
27841 if test "$cross_compiling" = yes; then
27842 { $as_echo "$as_me:$LINENO: WARNING: cannot check getenv redefinition if cross compiling -- defaulting to yes" >&5
27843 $as_echo "$as_me: WARNING: cannot check getenv redefinition if cross compiling -- defaulting to yes" >&2;}
27844 bash_cv_getenv_redef
=yes
27847 cat >conftest.
$ac_ext <<_ACEOF
27850 cat confdefs.h
>>conftest.
$ac_ext
27851 cat >>conftest.
$ac_ext <<_ACEOF
27852 /* end confdefs.h. */
27854 #ifdef HAVE_UNISTD_H
27855 # include <unistd.h>
27864 #if defined (__linux__) || defined (__bsdi__) || defined (convex)
27868 #endif /* !__linux__ && !__bsdi__ && !convex */
27875 /* The next allows this program to run, but does not allow bash to link
27876 when it redefines getenv. I'm not really interested in figuring out
27881 s = getenv("ABCDE");
27882 exit(s == 0); /* force optimizer to leave getenv in */
27886 rm -f conftest
$ac_exeext
27887 if { (ac_try
="$ac_link"
27888 case "(($ac_try" in
27889 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
27890 *) ac_try_echo=$ac_try;;
27892 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27893 $as_echo "$ac_try_echo") >&5
27894 (eval "$ac_link") 2>&5
27896 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27897 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27898 { (case "(($ac_try" in
27899 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
27900 *) ac_try_echo
=$ac_try;;
27902 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
27903 $as_echo "$ac_try_echo") >&5
27904 (eval "$ac_try") 2>&5
27906 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27907 (exit $ac_status); }; }; then
27908 bash_cv_getenv_redef
=yes
27910 $as_echo "$as_me: program exited with status $ac_status" >&5
27911 $as_echo "$as_me: failed program was:" >&5
27912 sed 's/^/| /' conftest.
$ac_ext >&5
27914 ( exit $ac_status )
27915 bash_cv_getenv_redef
=no
27917 rm -rf conftest.dSYM
27918 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
27924 { $as_echo "$as_me:$LINENO: result: $bash_cv_getenv_redef" >&5
27925 $as_echo "$bash_cv_getenv_redef" >&6; }
27926 if test $bash_cv_getenv_redef = yes; then
27927 cat >>confdefs.h
<<\_ACEOF
27928 #define CAN_REDEFINE_GETENV 1
27933 if test "$ac_cv_func_getcwd" = "yes"; then
27934 { $as_echo "$as_me:$LINENO: checking if getcwd() will dynamically allocate memory with 0 size" >&5
27935 $as_echo_n "checking if getcwd() will dynamically allocate memory with 0 size... " >&6; }
27936 if test "${bash_cv_getcwd_malloc+set}" = set; then
27937 $as_echo_n "(cached) " >&6
27939 if test "$cross_compiling" = yes; then
27940 { $as_echo "$as_me:$LINENO: WARNING: cannot check whether getcwd allocates memory when cross-compiling -- defaulting to no" >&5
27941 $as_echo "$as_me: WARNING: cannot check whether getcwd allocates memory when cross-compiling -- defaulting to no" >&2;}
27942 bash_cv_getcwd_malloc
=no
27945 cat >conftest.
$ac_ext <<_ACEOF
27948 cat confdefs.h
>>conftest.
$ac_ext
27949 cat >>conftest.
$ac_ext <<_ACEOF
27950 /* end confdefs.h. */
27953 #ifdef HAVE_UNISTD_H
27954 #include <unistd.h>
27960 xpwd = getcwd(0, 0);
27965 rm -f conftest
$ac_exeext
27966 if { (ac_try
="$ac_link"
27967 case "(($ac_try" in
27968 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
27969 *) ac_try_echo=$ac_try;;
27971 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27972 $as_echo "$ac_try_echo") >&5
27973 (eval "$ac_link") 2>&5
27975 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27976 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27977 { (case "(($ac_try" in
27978 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
27979 *) ac_try_echo
=$ac_try;;
27981 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
27982 $as_echo "$ac_try_echo") >&5
27983 (eval "$ac_try") 2>&5
27985 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27986 (exit $ac_status); }; }; then
27987 bash_cv_getcwd_malloc
=yes
27989 $as_echo "$as_me: program exited with status $ac_status" >&5
27990 $as_echo "$as_me: failed program was:" >&5
27991 sed 's/^/| /' conftest.
$ac_ext >&5
27993 ( exit $ac_status )
27994 bash_cv_getcwd_malloc
=no
27996 rm -rf conftest.dSYM
27997 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
28003 { $as_echo "$as_me:$LINENO: result: $bash_cv_getcwd_malloc" >&5
28004 $as_echo "$bash_cv_getcwd_malloc" >&6; }
28005 if test $bash_cv_getcwd_malloc = no
; then
28006 cat >>confdefs.h
<<\_ACEOF
28007 #define GETCWD_BROKEN 1
28010 case " $LIBOBJS " in
28011 *" getcwd.$ac_objext "* ) ;;
28012 *) LIBOBJS
="$LIBOBJS getcwd.$ac_objext"
28020 { $as_echo "$as_me:$LINENO: checking for presence of POSIX-style sigsetjmp/siglongjmp" >&5
28021 $as_echo_n "checking for presence of POSIX-style sigsetjmp/siglongjmp... " >&6; }
28022 if test "${bash_cv_func_sigsetjmp+set}" = set; then
28023 $as_echo_n "(cached) " >&6
28025 if test "$cross_compiling" = yes; then
28026 { $as_echo "$as_me:$LINENO: WARNING: cannot check for sigsetjmp/siglongjmp if cross-compiling -- defaulting to missing" >&5
28027 $as_echo "$as_me: WARNING: cannot check for sigsetjmp/siglongjmp if cross-compiling -- defaulting to missing" >&2;}
28028 bash_cv_func_sigsetjmp
=missing
28031 cat >conftest.
$ac_ext <<_ACEOF
28034 cat confdefs.h
>>conftest.
$ac_ext
28035 cat >>conftest.
$ac_ext <<_ACEOF
28036 /* end confdefs.h. */
28038 #ifdef HAVE_UNISTD_H
28039 #include <unistd.h>
28041 #include <sys/types.h>
28042 #include <signal.h>
28043 #include <setjmp.h>
28047 #if !defined (_POSIX_VERSION) || !defined (HAVE_POSIX_SIGNALS)
28052 sigset_t set, oset;
28057 sigemptyset(&oset);
28058 sigprocmask(SIG_BLOCK, (sigset_t *)NULL, &set);
28059 sigprocmask(SIG_BLOCK, (sigset_t *)NULL, &oset);
28062 code = sigsetjmp(xx, 1);
28064 exit(0); /* could get sigmask and compare to oset here. */
28067 sigaddset(&set, SIGINT);
28068 sigprocmask(SIG_BLOCK, &set, (sigset_t *)NULL);
28070 /* and siglongjmp */
28071 siglongjmp(xx, 10);
28076 rm -f conftest
$ac_exeext
28077 if { (ac_try
="$ac_link"
28078 case "(($ac_try" in
28079 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
28080 *) ac_try_echo=$ac_try;;
28082 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28083 $as_echo "$ac_try_echo") >&5
28084 (eval "$ac_link") 2>&5
28086 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28087 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28088 { (case "(($ac_try" in
28089 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
28090 *) ac_try_echo
=$ac_try;;
28092 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
28093 $as_echo "$ac_try_echo") >&5
28094 (eval "$ac_try") 2>&5
28096 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28097 (exit $ac_status); }; }; then
28098 bash_cv_func_sigsetjmp
=present
28100 $as_echo "$as_me: program exited with status $ac_status" >&5
28101 $as_echo "$as_me: failed program was:" >&5
28102 sed 's/^/| /' conftest.
$ac_ext >&5
28104 ( exit $ac_status )
28105 bash_cv_func_sigsetjmp
=missing
28107 rm -rf conftest.dSYM
28108 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
28114 { $as_echo "$as_me:$LINENO: result: $bash_cv_func_sigsetjmp" >&5
28115 $as_echo "$bash_cv_func_sigsetjmp" >&6; }
28116 if test $bash_cv_func_sigsetjmp = present
; then
28117 cat >>confdefs.h
<<\_ACEOF
28118 #define HAVE_POSIX_SIGSETJMP 1
28124 { $as_echo "$as_me:$LINENO: checking whether or not strcoll and strcmp differ" >&5
28125 $as_echo_n "checking whether or not strcoll and strcmp differ... " >&6; }
28126 if test "${bash_cv_func_strcoll_broken+set}" = set; then
28127 $as_echo_n "(cached) " >&6
28129 if test "$cross_compiling" = yes; then
28130 { $as_echo "$as_me:$LINENO: WARNING: cannot check strcoll if cross compiling -- defaulting to no" >&5
28131 $as_echo "$as_me: WARNING: cannot check strcoll if cross compiling -- defaulting to no" >&2;}
28132 bash_cv_func_strcoll_broken
=no
28135 cat >conftest.
$ac_ext <<_ACEOF
28138 cat confdefs.h
>>conftest.
$ac_ext
28139 cat >>conftest.
$ac_ext <<_ACEOF
28140 /* end confdefs.h. */
28143 #if defined (HAVE_LOCALE_H)
28144 #include <locale.h>
28152 char *deflocale, *defcoll;
28154 #ifdef HAVE_SETLOCALE
28155 deflocale = setlocale(LC_ALL, "");
28156 defcoll = setlocale(LC_COLLATE, "");
28159 #ifdef HAVE_STRCOLL
28160 /* These two values are taken from tests/glob-test. */
28161 r1 = strcoll("abd", "aXd");
28165 r2 = strcmp("abd", "aXd");
28167 /* These two should both be greater than 0. It is permissible for
28168 a system to return different values, as long as the sign is the
28171 /* Exit with 1 (failure) if these two values are both > 0, since
28172 this tests whether strcoll(3) is broken with respect to strcmp(3)
28173 in the default locale. */
28174 exit (r1 > 0 && r2 > 0);
28178 rm -f conftest
$ac_exeext
28179 if { (ac_try
="$ac_link"
28180 case "(($ac_try" in
28181 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
28182 *) ac_try_echo=$ac_try;;
28184 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28185 $as_echo "$ac_try_echo") >&5
28186 (eval "$ac_link") 2>&5
28188 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28189 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28190 { (case "(($ac_try" in
28191 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
28192 *) ac_try_echo
=$ac_try;;
28194 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
28195 $as_echo "$ac_try_echo") >&5
28196 (eval "$ac_try") 2>&5
28198 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28199 (exit $ac_status); }; }; then
28200 bash_cv_func_strcoll_broken
=yes
28202 $as_echo "$as_me: program exited with status $ac_status" >&5
28203 $as_echo "$as_me: failed program was:" >&5
28204 sed 's/^/| /' conftest.
$ac_ext >&5
28206 ( exit $ac_status )
28207 bash_cv_func_strcoll_broken
=no
28209 rm -rf conftest.dSYM
28210 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
28216 { $as_echo "$as_me:$LINENO: result: $bash_cv_func_strcoll_broken" >&5
28217 $as_echo "$bash_cv_func_strcoll_broken" >&6; }
28218 if test $bash_cv_func_strcoll_broken = yes; then
28219 cat >>confdefs.h
<<\_ACEOF
28220 #define STRCOLL_BROKEN 1
28227 if test "$ac_cv_func_putenv" = "yes"; then
28231 { $as_echo "$as_me:$LINENO: checking for standard-conformant putenv declaration" >&5
28232 $as_echo_n "checking for standard-conformant putenv declaration... " >&6; }
28233 if test "${bash_cv_std_putenv+set}" = set; then
28234 $as_echo_n "(cached) " >&6
28236 cat >conftest.
$ac_ext <<_ACEOF
28239 cat confdefs.h
>>conftest.
$ac_ext
28240 cat >>conftest.
$ac_ext <<_ACEOF
28241 /* end confdefs.h. */
28244 #include <stdlib.h>
28245 #include <stddef.h>
28253 extern int putenv (char *);
28255 extern int putenv ();
28261 return (putenv == 0);
28266 rm -f conftest.
$ac_objext conftest
$ac_exeext
28267 if { (ac_try
="$ac_link"
28268 case "(($ac_try" in
28269 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
28270 *) ac_try_echo=$ac_try;;
28272 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28273 $as_echo "$ac_try_echo") >&5
28274 (eval "$ac_link") 2>conftest.er1
28276 grep -v '^ *+' conftest.er1 >conftest.err
28278 cat conftest.err >&5
28279 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28280 (exit $ac_status); } && {
28281 test -z "$ac_c_werror_flag" ||
28282 test ! -s conftest.err
28283 } && test -s conftest$ac_exeext && {
28284 test "$cross_compiling" = yes ||
28285 $as_test_x conftest$ac_exeext
28287 bash_cv_std_putenv=yes
28289 $as_echo "$as_me: failed program was:" >&5
28290 sed 's/^/| /' conftest.$ac_ext >&5
28292 bash_cv_std_putenv=no
28296 rm -rf conftest.dSYM
28297 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28298 conftest$ac_exeext conftest.$ac_ext
28300 { $as_echo "$as_me:$LINENO: result: $bash_cv_std_putenv" >&5
28301 $as_echo "$bash_cv_std_putenv" >&6; }
28302 if test $bash_cv_std_putenv = yes; then
28303 cat >>confdefs.h <<\_ACEOF
28304 #define HAVE_STD_PUTENV 1
28310 cat >>confdefs.h <<\_ACEOF
28311 #define HAVE_STD_PUTENV 1
28315 if test "$ac_cv_func_unsetenv" = "yes"; then
28319 { $as_echo "$as_me:$LINENO: checking for standard-conformant unsetenv declaration" >&5
28320 $as_echo_n "checking for standard-conformant unsetenv declaration... " >&6; }
28321 if test "${bash_cv_std_unsetenv+set}" = set; then
28322 $as_echo_n "(cached) " >&6
28324 cat >conftest.$ac_ext <<_ACEOF
28327 cat confdefs.h >>conftest.$ac_ext
28328 cat >>conftest.$ac_ext <<_ACEOF
28329 /* end confdefs.h. */
28332 #include <stdlib.h>
28333 #include <stddef.h>
28341 extern int unsetenv (const char *);
28343 extern int unsetenv ();
28349 return (unsetenv == 0);
28354 rm -f conftest.$ac_objext conftest$ac_exeext
28355 if { (ac_try="$ac_link"
28356 case "(($ac_try" in
28357 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
28358 *) ac_try_echo
=$ac_try;;
28360 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
28361 $as_echo "$ac_try_echo") >&5
28362 (eval "$ac_link") 2>conftest.er1
28364 grep -v '^ *+' conftest.er1
>conftest.err
28366 cat conftest.err
>&5
28367 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28368 (exit $ac_status); } && {
28369 test -z "$ac_c_werror_flag" ||
28370 test ! -s conftest.err
28371 } && test -s conftest
$ac_exeext && {
28372 test "$cross_compiling" = yes ||
28373 $as_test_x conftest
$ac_exeext
28375 bash_cv_std_unsetenv
=yes
28377 $as_echo "$as_me: failed program was:" >&5
28378 sed 's/^/| /' conftest.
$ac_ext >&5
28380 bash_cv_std_unsetenv
=no
28384 rm -rf conftest.dSYM
28385 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
28386 conftest
$ac_exeext conftest.
$ac_ext
28388 { $as_echo "$as_me:$LINENO: result: $bash_cv_std_unsetenv" >&5
28389 $as_echo "$bash_cv_std_unsetenv" >&6; }
28390 if test $bash_cv_std_unsetenv = yes; then
28391 cat >>confdefs.h
<<\_ACEOF
28392 #define HAVE_STD_UNSETENV 1
28398 cat >>confdefs.h
<<\_ACEOF
28399 #define HAVE_STD_UNSETENV 1
28404 { $as_echo "$as_me:$LINENO: checking for printf floating point output in hex notation" >&5
28405 $as_echo_n "checking for printf floating point output in hex notation... " >&6; }
28406 if test "${bash_cv_printf_a_format+set}" = set; then
28407 $as_echo_n "(cached) " >&6
28409 if test "$cross_compiling" = yes; then
28410 { $as_echo "$as_me:$LINENO: WARNING: cannot check printf if cross compiling -- defaulting to no" >&5
28411 $as_echo "$as_me: WARNING: cannot check printf if cross compiling -- defaulting to no" >&2;}
28412 bash_cv_printf_a_format
=no
28415 cat >conftest.
$ac_ext <<_ACEOF
28418 cat confdefs.h
>>conftest.
$ac_ext
28419 cat >>conftest.
$ac_ext <<_ACEOF
28420 /* end confdefs.h. */
28423 #include <string.h>
28431 sprintf(abuf, "%A", y);
28432 exit(strchr(abuf, 'P') == (char *)0);
28436 rm -f conftest
$ac_exeext
28437 if { (ac_try
="$ac_link"
28438 case "(($ac_try" in
28439 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
28440 *) ac_try_echo=$ac_try;;
28442 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28443 $as_echo "$ac_try_echo") >&5
28444 (eval "$ac_link") 2>&5
28446 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28447 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28448 { (case "(($ac_try" in
28449 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
28450 *) ac_try_echo
=$ac_try;;
28452 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
28453 $as_echo "$ac_try_echo") >&5
28454 (eval "$ac_try") 2>&5
28456 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28457 (exit $ac_status); }; }; then
28458 bash_cv_printf_a_format
=yes
28460 $as_echo "$as_me: program exited with status $ac_status" >&5
28461 $as_echo "$as_me: failed program was:" >&5
28462 sed 's/^/| /' conftest.
$ac_ext >&5
28464 ( exit $ac_status )
28465 bash_cv_printf_a_format
=no
28467 rm -rf conftest.dSYM
28468 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
28474 { $as_echo "$as_me:$LINENO: result: $bash_cv_printf_a_format" >&5
28475 $as_echo "$bash_cv_printf_a_format" >&6; }
28476 if test $bash_cv_printf_a_format = yes; then
28477 cat >>confdefs.h
<<\_ACEOF
28478 #define HAVE_PRINTF_A_FORMAT 1
28486 { $as_echo "$as_me:$LINENO: checking if signal handlers must be reinstalled when invoked" >&5
28487 $as_echo_n "checking if signal handlers must be reinstalled when invoked... " >&6; }
28488 if test "${bash_cv_must_reinstall_sighandlers+set}" = set; then
28489 $as_echo_n "(cached) " >&6
28491 if test "$cross_compiling" = yes; then
28492 { $as_echo "$as_me:$LINENO: WARNING: cannot check signal handling if cross compiling -- defaulting to no" >&5
28493 $as_echo "$as_me: WARNING: cannot check signal handling if cross compiling -- defaulting to no" >&2;}
28494 bash_cv_must_reinstall_sighandlers
=no
28497 cat >conftest.
$ac_ext <<_ACEOF
28500 cat confdefs.h
>>conftest.
$ac_ext
28501 cat >>conftest.
$ac_ext <<_ACEOF
28502 /* end confdefs.h. */
28504 #include <signal.h>
28505 #ifdef HAVE_UNISTD_H
28506 #include <unistd.h>
28509 typedef RETSIGTYPE sigfunc();
28513 #ifdef HAVE_POSIX_SIGNALS
28515 set_signal_handler(sig, handler)
28519 struct sigaction act, oact;
28520 act.sa_handler = handler;
28522 sigemptyset (&act.sa_mask);
28523 sigemptyset (&oact.sa_mask);
28524 sigaction (sig, &act, &oact);
28525 return (oact.sa_handler);
28528 #define set_signal_handler(s, h) signal(s, h)
28541 set_signal_handler(SIGINT, sigint);
28542 kill((int)getpid(), SIGINT);
28543 kill((int)getpid(), SIGINT);
28544 exit(nsigint != 2);
28548 rm -f conftest
$ac_exeext
28549 if { (ac_try
="$ac_link"
28550 case "(($ac_try" in
28551 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
28552 *) ac_try_echo=$ac_try;;
28554 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28555 $as_echo "$ac_try_echo") >&5
28556 (eval "$ac_link") 2>&5
28558 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28559 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28560 { (case "(($ac_try" in
28561 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
28562 *) ac_try_echo
=$ac_try;;
28564 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
28565 $as_echo "$ac_try_echo") >&5
28566 (eval "$ac_try") 2>&5
28568 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28569 (exit $ac_status); }; }; then
28570 bash_cv_must_reinstall_sighandlers
=no
28572 $as_echo "$as_me: program exited with status $ac_status" >&5
28573 $as_echo "$as_me: failed program was:" >&5
28574 sed 's/^/| /' conftest.
$ac_ext >&5
28576 ( exit $ac_status )
28577 bash_cv_must_reinstall_sighandlers
=yes
28579 rm -rf conftest.dSYM
28580 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
28586 { $as_echo "$as_me:$LINENO: result: $bash_cv_must_reinstall_sighandlers" >&5
28587 $as_echo "$bash_cv_must_reinstall_sighandlers" >&6; }
28588 if test $bash_cv_must_reinstall_sighandlers = yes; then
28589 cat >>confdefs.h
<<\_ACEOF
28590 #define MUST_REINSTALL_SIGHANDLERS 1
28596 { $as_echo "$as_me:$LINENO: checking for presence of necessary job control definitions" >&5
28597 $as_echo_n "checking for presence of necessary job control definitions... " >&6; }
28598 if test "${bash_cv_job_control_missing+set}" = set; then
28599 $as_echo_n "(cached) " >&6
28601 if test "$cross_compiling" = yes; then
28602 { $as_echo "$as_me:$LINENO: WARNING: cannot check job control if cross-compiling -- defaulting to missing" >&5
28603 $as_echo "$as_me: WARNING: cannot check job control if cross-compiling -- defaulting to missing" >&2;}
28604 bash_cv_job_control_missing
=missing
28607 cat >conftest.
$ac_ext <<_ACEOF
28610 cat confdefs.h
>>conftest.
$ac_ext
28611 cat >>conftest.
$ac_ext <<_ACEOF
28612 /* end confdefs.h. */
28614 #include <sys/types.h>
28615 #ifdef HAVE_SYS_WAIT_H
28616 #include <sys/wait.h>
28618 #ifdef HAVE_UNISTD_H
28619 #include <unistd.h>
28621 #include <signal.h>
28623 /* Add more tests in here as appropriate. */
28627 #if !defined (HAVE_POSIX_SIGNALS) && !defined (HAVE_BSD_SIGNALS)
28631 /* signals and tty control. */
28632 #if !defined (SIGTSTP) || !defined (SIGSTOP) || !defined (SIGCONT)
28636 /* process control */
28637 #if !defined (WNOHANG) || !defined (WUNTRACED)
28641 /* Posix systems have tcgetpgrp and waitpid. */
28642 #if defined (_POSIX_VERSION) && !defined (HAVE_TCGETPGRP)
28646 #if defined (_POSIX_VERSION) && !defined (HAVE_WAITPID)
28650 /* Other systems have TIOCSPGRP/TIOCGPRGP and wait3. */
28651 #if !defined (_POSIX_VERSION) && !defined (HAVE_WAIT3)
28658 rm -f conftest
$ac_exeext
28659 if { (ac_try
="$ac_link"
28660 case "(($ac_try" in
28661 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
28662 *) ac_try_echo=$ac_try;;
28664 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28665 $as_echo "$ac_try_echo") >&5
28666 (eval "$ac_link") 2>&5
28668 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28669 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28670 { (case "(($ac_try" in
28671 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
28672 *) ac_try_echo
=$ac_try;;
28674 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
28675 $as_echo "$ac_try_echo") >&5
28676 (eval "$ac_try") 2>&5
28678 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28679 (exit $ac_status); }; }; then
28680 bash_cv_job_control_missing
=present
28682 $as_echo "$as_me: program exited with status $ac_status" >&5
28683 $as_echo "$as_me: failed program was:" >&5
28684 sed 's/^/| /' conftest.
$ac_ext >&5
28686 ( exit $ac_status )
28687 bash_cv_job_control_missing
=missing
28689 rm -rf conftest.dSYM
28690 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
28696 { $as_echo "$as_me:$LINENO: result: $bash_cv_job_control_missing" >&5
28697 $as_echo "$bash_cv_job_control_missing" >&6; }
28698 if test $bash_cv_job_control_missing = missing
; then
28699 cat >>confdefs.h
<<\_ACEOF
28700 #define JOB_CONTROL_MISSING 1
28705 { $as_echo "$as_me:$LINENO: checking for presence of named pipes" >&5
28706 $as_echo_n "checking for presence of named pipes... " >&6; }
28707 if test "${bash_cv_sys_named_pipes+set}" = set; then
28708 $as_echo_n "(cached) " >&6
28710 if test "$cross_compiling" = yes; then
28711 { $as_echo "$as_me:$LINENO: WARNING: cannot check for named pipes if cross-compiling -- defaulting to missing" >&5
28712 $as_echo "$as_me: WARNING: cannot check for named pipes if cross-compiling -- defaulting to missing" >&2;}
28713 bash_cv_sys_named_pipes
=missing
28716 cat >conftest.
$ac_ext <<_ACEOF
28719 cat confdefs.h
>>conftest.
$ac_ext
28720 cat >>conftest.
$ac_ext <<_ACEOF
28721 /* end confdefs.h. */
28723 #include <sys/types.h>
28724 #include <sys/stat.h>
28725 #ifdef HAVE_UNISTD_H
28726 #include <unistd.h>
28729 /* Add more tests in here as appropriate. */
28734 #if defined (HAVE_MKFIFO)
28738 #if !defined (S_IFIFO) && (defined (_POSIX_VERSION) && !defined (S_ISFIFO))
28745 err = mkdir("bash-aclocal", 0700);
28750 fd = mknod ("bash-aclocal/sh-np-autoconf", 0666 | S_IFIFO, 0);
28752 rmdir ("bash-aclocal");
28756 unlink ("bash-aclocal/sh-np-autoconf");
28757 rmdir ("bash-aclocal");
28761 rm -f conftest
$ac_exeext
28762 if { (ac_try
="$ac_link"
28763 case "(($ac_try" in
28764 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
28765 *) ac_try_echo=$ac_try;;
28767 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28768 $as_echo "$ac_try_echo") >&5
28769 (eval "$ac_link") 2>&5
28771 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28772 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28773 { (case "(($ac_try" in
28774 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
28775 *) ac_try_echo
=$ac_try;;
28777 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
28778 $as_echo "$ac_try_echo") >&5
28779 (eval "$ac_try") 2>&5
28781 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28782 (exit $ac_status); }; }; then
28783 bash_cv_sys_named_pipes
=present
28785 $as_echo "$as_me: program exited with status $ac_status" >&5
28786 $as_echo "$as_me: failed program was:" >&5
28787 sed 's/^/| /' conftest.
$ac_ext >&5
28789 ( exit $ac_status )
28790 bash_cv_sys_named_pipes
=missing
28792 rm -rf conftest.dSYM
28793 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
28799 { $as_echo "$as_me:$LINENO: result: $bash_cv_sys_named_pipes" >&5
28800 $as_echo "$bash_cv_sys_named_pipes" >&6; }
28801 if test $bash_cv_sys_named_pipes = missing
; then
28802 cat >>confdefs.h
<<\_ACEOF
28803 #define NAMED_PIPES_MISSING 1
28809 { $as_echo "$as_me:$LINENO: checking whether termios.h defines TIOCGWINSZ" >&5
28810 $as_echo_n "checking whether termios.h defines TIOCGWINSZ... " >&6; }
28811 if test "${ac_cv_sys_tiocgwinsz_in_termios_h+set}" = set; then
28812 $as_echo_n "(cached) " >&6
28814 cat >conftest.
$ac_ext <<_ACEOF
28817 cat confdefs.h
>>conftest.
$ac_ext
28818 cat >>conftest.
$ac_ext <<_ACEOF
28819 /* end confdefs.h. */
28820 #include <sys/types.h>
28821 #include <termios.h>
28827 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28828 $EGREP "yes" >/dev
/null
2>&1; then
28829 ac_cv_sys_tiocgwinsz_in_termios_h
=yes
28831 ac_cv_sys_tiocgwinsz_in_termios_h
=no
28836 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
28837 $as_echo "$ac_cv_sys_tiocgwinsz_in_termios_h" >&6; }
28839 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
28840 { $as_echo "$as_me:$LINENO: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
28841 $as_echo_n "checking whether sys/ioctl.h defines TIOCGWINSZ... " >&6; }
28842 if test "${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+set}" = set; then
28843 $as_echo_n "(cached) " >&6
28845 cat >conftest.
$ac_ext <<_ACEOF
28848 cat confdefs.h
>>conftest.
$ac_ext
28849 cat >>conftest.
$ac_ext <<_ACEOF
28850 /* end confdefs.h. */
28851 #include <sys/types.h>
28852 #include <sys/ioctl.h>
28858 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28859 $EGREP "yes" >/dev
/null
2>&1; then
28860 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h
=yes
28862 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h
=no
28867 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
28868 $as_echo "$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6; }
28870 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
28872 cat >>confdefs.h
<<\_ACEOF
28873 #define GWINSZ_IN_SYS_IOCTL 1
28879 { $as_echo "$as_me:$LINENO: checking for TIOCSTAT in sys/ioctl.h" >&5
28880 $as_echo_n "checking for TIOCSTAT in sys/ioctl.h... " >&6; }
28881 if test "${bash_cv_tiocstat_in_ioctl+set}" = set; then
28882 $as_echo_n "(cached) " >&6
28884 cat >conftest.
$ac_ext <<_ACEOF
28887 cat confdefs.h
>>conftest.
$ac_ext
28888 cat >>conftest.
$ac_ext <<_ACEOF
28889 /* end confdefs.h. */
28890 #include <sys/types.h>
28891 #include <sys/ioctl.h>
28900 rm -f conftest.
$ac_objext
28901 if { (ac_try
="$ac_compile"
28902 case "(($ac_try" in
28903 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
28904 *) ac_try_echo=$ac_try;;
28906 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28907 $as_echo "$ac_try_echo") >&5
28908 (eval "$ac_compile") 2>conftest.er1
28910 grep -v '^ *+' conftest.er1 >conftest.err
28912 cat conftest.err >&5
28913 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28914 (exit $ac_status); } && {
28915 test -z "$ac_c_werror_flag" ||
28916 test ! -s conftest.err
28917 } && test -s conftest.$ac_objext; then
28918 bash_cv_tiocstat_in_ioctl=yes
28920 $as_echo "$as_me: failed program was:" >&5
28921 sed 's/^/| /' conftest.$ac_ext >&5
28923 bash_cv_tiocstat_in_ioctl=no
28926 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28929 { $as_echo "$as_me:$LINENO: result: $bash_cv_tiocstat_in_ioctl" >&5
28930 $as_echo "$bash_cv_tiocstat_in_ioctl" >&6; }
28931 if test $bash_cv_tiocstat_in_ioctl = yes; then
28932 cat >>confdefs.h <<\_ACEOF
28933 #define TIOCSTAT_IN_SYS_IOCTL 1
28938 { $as_echo "$as_me:$LINENO: checking for FIONREAD in sys/ioctl.h" >&5
28939 $as_echo_n "checking for FIONREAD in sys/ioctl.h... " >&6; }
28940 if test "${bash_cv_fionread_in_ioctl+set}" = set; then
28941 $as_echo_n "(cached) " >&6
28943 cat >conftest.$ac_ext <<_ACEOF
28946 cat confdefs.h >>conftest.$ac_ext
28947 cat >>conftest.$ac_ext <<_ACEOF
28948 /* end confdefs.h. */
28949 #include <sys/types.h>
28950 #include <sys/ioctl.h>
28959 rm -f conftest.$ac_objext
28960 if { (ac_try="$ac_compile"
28961 case "(($ac_try" in
28962 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
28963 *) ac_try_echo
=$ac_try;;
28965 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
28966 $as_echo "$ac_try_echo") >&5
28967 (eval "$ac_compile") 2>conftest.er1
28969 grep -v '^ *+' conftest.er1
>conftest.err
28971 cat conftest.err
>&5
28972 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28973 (exit $ac_status); } && {
28974 test -z "$ac_c_werror_flag" ||
28975 test ! -s conftest.err
28976 } && test -s conftest.
$ac_objext; then
28977 bash_cv_fionread_in_ioctl
=yes
28979 $as_echo "$as_me: failed program was:" >&5
28980 sed 's/^/| /' conftest.
$ac_ext >&5
28982 bash_cv_fionread_in_ioctl
=no
28985 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
28988 { $as_echo "$as_me:$LINENO: result: $bash_cv_fionread_in_ioctl" >&5
28989 $as_echo "$bash_cv_fionread_in_ioctl" >&6; }
28990 if test $bash_cv_fionread_in_ioctl = yes; then
28991 cat >>confdefs.h
<<\_ACEOF
28992 #define FIONREAD_IN_SYS_IOCTL 1
28999 { $as_echo "$as_me:$LINENO: checking whether WCONTINUED flag to waitpid is unavailable or available but broken" >&5
29000 $as_echo_n "checking whether WCONTINUED flag to waitpid is unavailable or available but broken... " >&6; }
29001 if test "${bash_cv_wcontinued_broken+set}" = set; then
29002 $as_echo_n "(cached) " >&6
29004 if test "$cross_compiling" = yes; then
29005 { $as_echo "$as_me:$LINENO: WARNING: cannot check WCONTINUED if cross compiling -- defaulting to no" >&5
29006 $as_echo "$as_me: WARNING: cannot check WCONTINUED if cross compiling -- defaulting to no" >&2;}
29007 bash_cv_wcontinued_broken
=no
29010 cat >conftest.
$ac_ext <<_ACEOF
29013 cat confdefs.h
>>conftest.
$ac_ext
29014 cat >>conftest.
$ac_ext <<_ACEOF
29015 /* end confdefs.h. */
29017 #include <sys/types.h>
29018 #include <sys/wait.h>
29019 #include <unistd.h>
29029 x = waitpid(-1, (int *)0, WNOHANG|WCONTINUED);
29030 if (x == -1 && errno == EINVAL)
29037 rm -f conftest
$ac_exeext
29038 if { (ac_try
="$ac_link"
29039 case "(($ac_try" in
29040 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
29041 *) ac_try_echo=$ac_try;;
29043 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29044 $as_echo "$ac_try_echo") >&5
29045 (eval "$ac_link") 2>&5
29047 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29048 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29049 { (case "(($ac_try" in
29050 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
29051 *) ac_try_echo
=$ac_try;;
29053 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
29054 $as_echo "$ac_try_echo") >&5
29055 (eval "$ac_try") 2>&5
29057 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29058 (exit $ac_status); }; }; then
29059 bash_cv_wcontinued_broken
=no
29061 $as_echo "$as_me: program exited with status $ac_status" >&5
29062 $as_echo "$as_me: failed program was:" >&5
29063 sed 's/^/| /' conftest.
$ac_ext >&5
29065 ( exit $ac_status )
29066 bash_cv_wcontinued_broken
=yes
29068 rm -rf conftest.dSYM
29069 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
29075 { $as_echo "$as_me:$LINENO: result: $bash_cv_wcontinued_broken" >&5
29076 $as_echo "$bash_cv_wcontinued_broken" >&6; }
29077 if test $bash_cv_wcontinued_broken = yes; then
29078 cat >>confdefs.h
<<\_ACEOF
29079 #define WCONTINUED_BROKEN 1
29085 { $as_echo "$as_me:$LINENO: checking for speed_t in sys/types.h" >&5
29086 $as_echo_n "checking for speed_t in sys/types.h... " >&6; }
29087 if test "${bash_cv_speed_t_in_sys_types+set}" = set; then
29088 $as_echo_n "(cached) " >&6
29090 cat >conftest.
$ac_ext <<_ACEOF
29093 cat confdefs.h
>>conftest.
$ac_ext
29094 cat >>conftest.
$ac_ext <<_ACEOF
29095 /* end confdefs.h. */
29096 #include <sys/types.h>
29105 rm -f conftest.
$ac_objext
29106 if { (ac_try
="$ac_compile"
29107 case "(($ac_try" in
29108 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
29109 *) ac_try_echo=$ac_try;;
29111 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29112 $as_echo "$ac_try_echo") >&5
29113 (eval "$ac_compile") 2>conftest.er1
29115 grep -v '^ *+' conftest.er1 >conftest.err
29117 cat conftest.err >&5
29118 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29119 (exit $ac_status); } && {
29120 test -z "$ac_c_werror_flag" ||
29121 test ! -s conftest.err
29122 } && test -s conftest.$ac_objext; then
29123 bash_cv_speed_t_in_sys_types=yes
29125 $as_echo "$as_me: failed program was:" >&5
29126 sed 's/^/| /' conftest.$ac_ext >&5
29128 bash_cv_speed_t_in_sys_types=no
29131 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29134 { $as_echo "$as_me:$LINENO: result: $bash_cv_speed_t_in_sys_types" >&5
29135 $as_echo "$bash_cv_speed_t_in_sys_types" >&6; }
29136 if test $bash_cv_speed_t_in_sys_types = yes; then
29137 cat >>confdefs.h <<\_ACEOF
29138 #define SPEED_T_IN_SYS_TYPES 1
29143 { $as_echo "$as_me:$LINENO: checking whether getpw functions are declared in pwd.h" >&5
29144 $as_echo_n "checking whether getpw functions are declared in pwd.h... " >&6; }
29145 if test "${bash_cv_getpw_declared+set}" = set; then
29146 $as_echo_n "(cached) " >&6
29148 cat >conftest.$ac_ext <<_ACEOF
29151 cat confdefs.h >>conftest.$ac_ext
29152 cat >>conftest.$ac_ext <<_ACEOF
29153 /* end confdefs.h. */
29155 #include <sys/types.h>
29156 #ifdef HAVE_UNISTD_H
29157 # include <unistd.h>
29162 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29163 $EGREP "getpwuid" >/dev/null 2>&1; then
29164 bash_cv_getpw_declared=yes
29166 bash_cv_getpw_declared=no
29172 { $as_echo "$as_me:$LINENO: result: $bash_cv_getpw_declared" >&5
29173 $as_echo "$bash_cv_getpw_declared" >&6; }
29174 if test $bash_cv_getpw_declared = yes; then
29175 cat >>confdefs.h <<\_ACEOF
29176 #define HAVE_GETPW_DECLS 1
29181 { $as_echo "$as_me:$LINENO: checking for unusable real-time signals due to large values" >&5
29182 $as_echo_n "checking for unusable real-time signals due to large values... " >&6; }
29183 if test "${bash_cv_unusable_rtsigs+set}" = set; then
29184 $as_echo_n "(cached) " >&6
29186 if test "$cross_compiling" = yes; then
29187 { $as_echo "$as_me:$LINENO: WARNING: cannot check real-time signals if cross compiling -- defaulting to yes" >&5
29188 $as_echo "$as_me: WARNING: cannot check real-time signals if cross compiling -- defaulting to yes" >&2;}
29189 bash_cv_unusable_rtsigs=yes
29192 cat >conftest.$ac_ext <<_ACEOF
29195 cat confdefs.h >>conftest.$ac_ext
29196 cat >>conftest.$ac_ext <<_ACEOF
29197 /* end confdefs.h. */
29199 #include <sys/types.h>
29200 #include <signal.h>
29208 int n_sigs = 2 * NSIG;
29210 int rtmin = SIGRTMIN;
29215 exit(rtmin < n_sigs);
29218 rm -f conftest$ac_exeext
29219 if { (ac_try="$ac_link"
29220 case "(($ac_try" in
29221 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
29222 *) ac_try_echo
=$ac_try;;
29224 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
29225 $as_echo "$ac_try_echo") >&5
29226 (eval "$ac_link") 2>&5
29228 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29229 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
29230 { (case "(($ac_try" in
29231 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
29232 *) ac_try_echo=$ac_try;;
29234 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29235 $as_echo "$ac_try_echo") >&5
29236 (eval "$ac_try") 2>&5
29238 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29239 (exit $ac_status); }; }; then
29240 bash_cv_unusable_rtsigs=yes
29242 $as_echo "$as_me: program exited with status $ac_status" >&5
29243 $as_echo "$as_me: failed program was:" >&5
29244 sed 's/^/| /' conftest.$ac_ext >&5
29246 ( exit $ac_status )
29247 bash_cv_unusable_rtsigs=no
29249 rm -rf conftest.dSYM
29250 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29256 { $as_echo "$as_me:$LINENO: result: $bash_cv_unusable_rtsigs" >&5
29257 $as_echo "$bash_cv_unusable_rtsigs" >&6; }
29258 if test $bash_cv_unusable_rtsigs = yes; then
29259 cat >>confdefs.h <<\_ACEOF
29260 #define UNUSABLE_RT_SIGNALS 1
29269 if test "$bash_cv_sys_siglist" = no && test "$bash_cv_under_sys_siglist" = no && test "$bash_cv_have_strsignal" = no; then
29270 SIGLIST_O=siglist.o
29278 hpux*) { $as_echo "$as_me:$LINENO: checking whether $host_os needs _KERNEL for RLIMIT defines" >&5
29279 $as_echo_n "checking whether $host_os needs _KERNEL for RLIMIT defines... " >&6; }
29280 if test "${bash_cv_kernel_rlimit+set}" = set; then
29281 $as_echo_n "(cached) " >&6
29283 cat >conftest.$ac_ext <<_ACEOF
29286 cat confdefs.h >>conftest.$ac_ext
29287 cat >>conftest.$ac_ext <<_ACEOF
29288 /* end confdefs.h. */
29290 #include <sys/types.h>
29291 #include <sys/resource.h>
29304 rm -f conftest.$ac_objext
29305 if { (ac_try="$ac_compile"
29306 case "(($ac_try" in
29307 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
29308 *) ac_try_echo
=$ac_try;;
29310 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
29311 $as_echo "$ac_try_echo") >&5
29312 (eval "$ac_compile") 2>conftest.er1
29314 grep -v '^ *+' conftest.er1
>conftest.err
29316 cat conftest.err
>&5
29317 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29318 (exit $ac_status); } && {
29319 test -z "$ac_c_werror_flag" ||
29320 test ! -s conftest.err
29321 } && test -s conftest.
$ac_objext; then
29322 bash_cv_kernel_rlimit
=no
29324 $as_echo "$as_me: failed program was:" >&5
29325 sed 's/^/| /' conftest.
$ac_ext >&5
29327 cat >conftest.
$ac_ext <<_ACEOF
29330 cat confdefs.h
>>conftest.
$ac_ext
29331 cat >>conftest.
$ac_ext <<_ACEOF
29332 /* end confdefs.h. */
29334 #include <sys/types.h>
29336 #include <sys/resource.h>
29350 rm -f conftest.
$ac_objext
29351 if { (ac_try
="$ac_compile"
29352 case "(($ac_try" in
29353 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
29354 *) ac_try_echo=$ac_try;;
29356 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29357 $as_echo "$ac_try_echo") >&5
29358 (eval "$ac_compile") 2>conftest.er1
29360 grep -v '^ *+' conftest.er1 >conftest.err
29362 cat conftest.err >&5
29363 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29364 (exit $ac_status); } && {
29365 test -z "$ac_c_werror_flag" ||
29366 test ! -s conftest.err
29367 } && test -s conftest.$ac_objext; then
29368 bash_cv_kernel_rlimit=yes
29370 $as_echo "$as_me: failed program was:" >&5
29371 sed 's/^/| /' conftest.$ac_ext >&5
29373 bash_cv_kernel_rlimit=no
29376 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29380 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29383 { $as_echo "$as_me:$LINENO: result: $bash_cv_kernel_rlimit" >&5
29384 $as_echo "$bash_cv_kernel_rlimit" >&6; }
29385 if test $bash_cv_kernel_rlimit = yes; then
29386 cat >>confdefs.h <<\_ACEOF
29387 #define RLIMIT_NEEDS_KERNEL 1
29394 if test "$opt_readline" = yes; then
29396 aix*) prefer_curses=yes ;;
29399 if test "X$bash_cv_termcap_lib" = "X"; then
29402 { $as_echo "$as_me:$LINENO: checking which library has the termcap functions" >&5
29403 $as_echo_n "checking which library has the termcap functions... " >&6; }
29406 if test "${bash_cv_termcap_lib+set}" = set; then
29407 $as_echo_n "(cached) " >&6
29409 { $as_echo "$as_me:$LINENO: checking for tgetent" >&5
29410 $as_echo_n "checking for tgetent... " >&6; }
29411 if test "${ac_cv_func_tgetent+set}" = set; then
29412 $as_echo_n "(cached) " >&6
29414 cat >conftest.$ac_ext <<_ACEOF
29417 cat confdefs.h >>conftest.$ac_ext
29418 cat >>conftest.$ac_ext <<_ACEOF
29419 /* end confdefs.h. */
29420 /* Define tgetent to an innocuous variant, in case <limits.h> declares tgetent.
29421 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29422 #define tgetent innocuous_tgetent
29424 /* System header to define __stub macros and hopefully few prototypes,
29425 which can conflict with char tgetent (); below.
29426 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29427 <limits.h> exists even on freestanding compilers. */
29430 # include <limits.h>
29432 # include <assert.h>
29437 /* Override any GCC internal prototype to avoid an error.
29438 Use char because int might match the return type of a GCC
29439 builtin and then its argument prototype would still apply. */
29444 /* The GNU C library defines this for functions which it implements
29445 to always fail with ENOSYS. Some functions are actually named
29446 something starting with __ and the normal name is an alias. */
29447 #if defined __stub_tgetent || defined __stub___tgetent
29459 rm -f conftest.$ac_objext conftest$ac_exeext
29460 if { (ac_try="$ac_link"
29461 case "(($ac_try" in
29462 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
29463 *) ac_try_echo
=$ac_try;;
29465 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
29466 $as_echo "$ac_try_echo") >&5
29467 (eval "$ac_link") 2>conftest.er1
29469 grep -v '^ *+' conftest.er1
>conftest.err
29471 cat conftest.err
>&5
29472 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29473 (exit $ac_status); } && {
29474 test -z "$ac_c_werror_flag" ||
29475 test ! -s conftest.err
29476 } && test -s conftest
$ac_exeext && {
29477 test "$cross_compiling" = yes ||
29478 $as_test_x conftest
$ac_exeext
29480 ac_cv_func_tgetent
=yes
29482 $as_echo "$as_me: failed program was:" >&5
29483 sed 's/^/| /' conftest.
$ac_ext >&5
29485 ac_cv_func_tgetent
=no
29488 rm -rf conftest.dSYM
29489 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
29490 conftest
$ac_exeext conftest.
$ac_ext
29492 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_tgetent" >&5
29493 $as_echo "$ac_cv_func_tgetent" >&6; }
29494 if test "x$ac_cv_func_tgetent" = x
""yes; then
29495 bash_cv_termcap_lib
=libc
29497 { $as_echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
29498 $as_echo_n "checking for tgetent in -ltermcap... " >&6; }
29499 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
29500 $as_echo_n "(cached) " >&6
29502 ac_check_lib_save_LIBS
=$LIBS
29503 LIBS
="-ltermcap $LIBS"
29504 cat >conftest.
$ac_ext <<_ACEOF
29507 cat confdefs.h
>>conftest.
$ac_ext
29508 cat >>conftest.
$ac_ext <<_ACEOF
29509 /* end confdefs.h. */
29511 /* Override any GCC internal prototype to avoid an error.
29512 Use char because int might match the return type of a GCC
29513 builtin and then its argument prototype would still apply. */
29526 rm -f conftest.
$ac_objext conftest
$ac_exeext
29527 if { (ac_try
="$ac_link"
29528 case "(($ac_try" in
29529 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
29530 *) ac_try_echo=$ac_try;;
29532 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29533 $as_echo "$ac_try_echo") >&5
29534 (eval "$ac_link") 2>conftest.er1
29536 grep -v '^ *+' conftest.er1 >conftest.err
29538 cat conftest.err >&5
29539 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29540 (exit $ac_status); } && {
29541 test -z "$ac_c_werror_flag" ||
29542 test ! -s conftest.err
29543 } && test -s conftest$ac_exeext && {
29544 test "$cross_compiling" = yes ||
29545 $as_test_x conftest$ac_exeext
29547 ac_cv_lib_termcap_tgetent=yes
29549 $as_echo "$as_me: failed program was:" >&5
29550 sed 's/^/| /' conftest.$ac_ext >&5
29552 ac_cv_lib_termcap_tgetent=no
29555 rm -rf conftest.dSYM
29556 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29557 conftest$ac_exeext conftest.$ac_ext
29558 LIBS=$ac_check_lib_save_LIBS
29560 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
29561 $as_echo "$ac_cv_lib_termcap_tgetent" >&6; }
29562 if test "x$ac_cv_lib_termcap_tgetent" = x""yes; then
29563 bash_cv_termcap_lib=libtermcap
29565 { $as_echo "$as_me:$LINENO: checking for tgetent in -ltinfo" >&5
29566 $as_echo_n "checking for tgetent in -ltinfo... " >&6; }
29567 if test "${ac_cv_lib_tinfo_tgetent+set}" = set; then
29568 $as_echo_n "(cached) " >&6
29570 ac_check_lib_save_LIBS=$LIBS
29571 LIBS="-ltinfo $LIBS"
29572 cat >conftest.$ac_ext <<_ACEOF
29575 cat confdefs.h >>conftest.$ac_ext
29576 cat >>conftest.$ac_ext <<_ACEOF
29577 /* end confdefs.h. */
29579 /* Override any GCC internal prototype to avoid an error.
29580 Use char because int might match the return type of a GCC
29581 builtin and then its argument prototype would still apply. */
29594 rm -f conftest.$ac_objext conftest$ac_exeext
29595 if { (ac_try="$ac_link"
29596 case "(($ac_try" in
29597 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
29598 *) ac_try_echo
=$ac_try;;
29600 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
29601 $as_echo "$ac_try_echo") >&5
29602 (eval "$ac_link") 2>conftest.er1
29604 grep -v '^ *+' conftest.er1
>conftest.err
29606 cat conftest.err
>&5
29607 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29608 (exit $ac_status); } && {
29609 test -z "$ac_c_werror_flag" ||
29610 test ! -s conftest.err
29611 } && test -s conftest
$ac_exeext && {
29612 test "$cross_compiling" = yes ||
29613 $as_test_x conftest
$ac_exeext
29615 ac_cv_lib_tinfo_tgetent
=yes
29617 $as_echo "$as_me: failed program was:" >&5
29618 sed 's/^/| /' conftest.
$ac_ext >&5
29620 ac_cv_lib_tinfo_tgetent
=no
29623 rm -rf conftest.dSYM
29624 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
29625 conftest
$ac_exeext conftest.
$ac_ext
29626 LIBS
=$ac_check_lib_save_LIBS
29628 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_tinfo_tgetent" >&5
29629 $as_echo "$ac_cv_lib_tinfo_tgetent" >&6; }
29630 if test "x$ac_cv_lib_tinfo_tgetent" = x
""yes; then
29631 bash_cv_termcap_lib
=libtinfo
29633 { $as_echo "$as_me:$LINENO: checking for tgetent in -lcurses" >&5
29634 $as_echo_n "checking for tgetent in -lcurses... " >&6; }
29635 if test "${ac_cv_lib_curses_tgetent+set}" = set; then
29636 $as_echo_n "(cached) " >&6
29638 ac_check_lib_save_LIBS
=$LIBS
29639 LIBS
="-lcurses $LIBS"
29640 cat >conftest.
$ac_ext <<_ACEOF
29643 cat confdefs.h
>>conftest.
$ac_ext
29644 cat >>conftest.
$ac_ext <<_ACEOF
29645 /* end confdefs.h. */
29647 /* Override any GCC internal prototype to avoid an error.
29648 Use char because int might match the return type of a GCC
29649 builtin and then its argument prototype would still apply. */
29662 rm -f conftest.
$ac_objext conftest
$ac_exeext
29663 if { (ac_try
="$ac_link"
29664 case "(($ac_try" in
29665 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
29666 *) ac_try_echo=$ac_try;;
29668 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29669 $as_echo "$ac_try_echo") >&5
29670 (eval "$ac_link") 2>conftest.er1
29672 grep -v '^ *+' conftest.er1 >conftest.err
29674 cat conftest.err >&5
29675 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29676 (exit $ac_status); } && {
29677 test -z "$ac_c_werror_flag" ||
29678 test ! -s conftest.err
29679 } && test -s conftest$ac_exeext && {
29680 test "$cross_compiling" = yes ||
29681 $as_test_x conftest$ac_exeext
29683 ac_cv_lib_curses_tgetent=yes
29685 $as_echo "$as_me: failed program was:" >&5
29686 sed 's/^/| /' conftest.$ac_ext >&5
29688 ac_cv_lib_curses_tgetent=no
29691 rm -rf conftest.dSYM
29692 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29693 conftest$ac_exeext conftest.$ac_ext
29694 LIBS=$ac_check_lib_save_LIBS
29696 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_curses_tgetent" >&5
29697 $as_echo "$ac_cv_lib_curses_tgetent" >&6; }
29698 if test "x$ac_cv_lib_curses_tgetent" = x""yes; then
29699 bash_cv_termcap_lib=libcurses
29701 { $as_echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5
29702 $as_echo_n "checking for tgetent in -lncurses... " >&6; }
29703 if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then
29704 $as_echo_n "(cached) " >&6
29706 ac_check_lib_save_LIBS=$LIBS
29707 LIBS="-lncurses $LIBS"
29708 cat >conftest.$ac_ext <<_ACEOF
29711 cat confdefs.h >>conftest.$ac_ext
29712 cat >>conftest.$ac_ext <<_ACEOF
29713 /* end confdefs.h. */
29715 /* Override any GCC internal prototype to avoid an error.
29716 Use char because int might match the return type of a GCC
29717 builtin and then its argument prototype would still apply. */
29730 rm -f conftest.$ac_objext conftest$ac_exeext
29731 if { (ac_try="$ac_link"
29732 case "(($ac_try" in
29733 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
29734 *) ac_try_echo
=$ac_try;;
29736 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
29737 $as_echo "$ac_try_echo") >&5
29738 (eval "$ac_link") 2>conftest.er1
29740 grep -v '^ *+' conftest.er1
>conftest.err
29742 cat conftest.err
>&5
29743 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29744 (exit $ac_status); } && {
29745 test -z "$ac_c_werror_flag" ||
29746 test ! -s conftest.err
29747 } && test -s conftest
$ac_exeext && {
29748 test "$cross_compiling" = yes ||
29749 $as_test_x conftest
$ac_exeext
29751 ac_cv_lib_ncurses_tgetent
=yes
29753 $as_echo "$as_me: failed program was:" >&5
29754 sed 's/^/| /' conftest.
$ac_ext >&5
29756 ac_cv_lib_ncurses_tgetent
=no
29759 rm -rf conftest.dSYM
29760 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
29761 conftest
$ac_exeext conftest.
$ac_ext
29762 LIBS
=$ac_check_lib_save_LIBS
29764 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5
29765 $as_echo "$ac_cv_lib_ncurses_tgetent" >&6; }
29766 if test "x$ac_cv_lib_ncurses_tgetent" = x
""yes; then
29767 bash_cv_termcap_lib
=libncurses
29769 bash_cv_termcap_lib
=gnutermcap
29782 if test "X$_bash_needmsg" = "Xyes"; then
29783 { $as_echo "$as_me:$LINENO: checking which library has the termcap functions" >&5
29784 $as_echo_n "checking which library has the termcap functions... " >&6; }
29786 { $as_echo "$as_me:$LINENO: result: using $bash_cv_termcap_lib" >&5
29787 $as_echo "using $bash_cv_termcap_lib" >&6; }
29788 if test $bash_cv_termcap_lib = gnutermcap
&& test -z "$prefer_curses"; then
29789 LDFLAGS
="$LDFLAGS -L./lib/termcap"
29790 TERMCAP_LIB
="./lib/termcap/libtermcap.a"
29791 TERMCAP_DEP
="./lib/termcap/libtermcap.a"
29792 elif test $bash_cv_termcap_lib = libtermcap
&& test -z "$prefer_curses"; then
29793 TERMCAP_LIB
=-ltermcap
29795 elif test $bash_cv_termcap_lib = libtinfo
; then
29796 TERMCAP_LIB
=-ltinfo
29798 elif test $bash_cv_termcap_lib = libncurses
; then
29799 TERMCAP_LIB
=-lncurses
29801 elif test $bash_cv_termcap_lib = libc
; then
29805 TERMCAP_LIB
=-lcurses
29813 { $as_echo "$as_me:$LINENO: checking whether /dev/fd is available" >&5
29814 $as_echo_n "checking whether /dev/fd is available... " >&6; }
29815 if test "${bash_cv_dev_fd+set}" = set; then
29816 $as_echo_n "(cached) " >&6
29819 if test -d /dev
/fd
&& (exec test -r /dev
/fd
/0 < /dev
/null
) ; then
29820 # check for systems like FreeBSD 5 that only provide /dev/fd/[012]
29821 if (exec test -r /dev
/fd
/3 3</dev
/null
) ; then
29822 bash_cv_dev_fd
=standard
29824 bash_cv_dev_fd
=absent
29827 if test -z "$bash_cv_dev_fd" ; then
29828 if test -d /proc
/self
/fd
&& (exec test -r /proc
/self
/fd
/0 < /dev
/null
) ; then
29829 bash_cv_dev_fd
=whacky
29831 bash_cv_dev_fd
=absent
29837 { $as_echo "$as_me:$LINENO: result: $bash_cv_dev_fd" >&5
29838 $as_echo "$bash_cv_dev_fd" >&6; }
29839 if test $bash_cv_dev_fd = "standard"; then
29840 cat >>confdefs.h
<<\_ACEOF
29841 #define HAVE_DEV_FD 1
29844 cat >>confdefs.h
<<\_ACEOF
29845 #define DEV_FD_PREFIX "/dev/fd/"
29848 elif test $bash_cv_dev_fd = "whacky"; then
29849 cat >>confdefs.h
<<\_ACEOF
29850 #define HAVE_DEV_FD 1
29853 cat >>confdefs.h
<<\_ACEOF
29854 #define DEV_FD_PREFIX "/proc/self/fd/"
29859 { $as_echo "$as_me:$LINENO: checking whether /dev/stdin stdout stderr are available" >&5
29860 $as_echo_n "checking whether /dev/stdin stdout stderr are available... " >&6; }
29861 if test "${bash_cv_dev_stdin+set}" = set; then
29862 $as_echo_n "(cached) " >&6
29864 if test -d /dev
/fd
&& (exec test -r /dev
/stdin
< /dev
/null
) ; then
29865 bash_cv_dev_stdin
=present
29866 elif test -d /proc
/self
/fd
&& (exec test -r /dev
/stdin
< /dev
/null
) ; then
29867 bash_cv_dev_stdin
=present
29869 bash_cv_dev_stdin
=absent
29874 { $as_echo "$as_me:$LINENO: result: $bash_cv_dev_stdin" >&5
29875 $as_echo "$bash_cv_dev_stdin" >&6; }
29876 if test $bash_cv_dev_stdin = "present"; then
29877 cat >>confdefs.h
<<\_ACEOF
29878 #define HAVE_DEV_STDIN 1
29883 { $as_echo "$as_me:$LINENO: checking for default mail directory" >&5
29884 $as_echo_n "checking for default mail directory... " >&6; }
29885 if test "${bash_cv_mail_dir+set}" = set; then
29886 $as_echo_n "(cached) " >&6
29888 if test -d /var
/mail; then
29889 bash_cv_mail_dir
=/var
/mail
29890 elif test -d /var
/spool
/mail; then
29891 bash_cv_mail_dir
=/var
/spool
/mail
29892 elif test -d /usr
/mail; then
29893 bash_cv_mail_dir
=/usr
/mail
29894 elif test -d /usr
/spool
/mail; then
29895 bash_cv_mail_dir
=/usr
/spool
/mail
29897 bash_cv_mail_dir
=unknown
29902 { $as_echo "$as_me:$LINENO: result: $bash_cv_mail_dir" >&5
29903 $as_echo "$bash_cv_mail_dir" >&6; }
29904 cat >>confdefs.h
<<_ACEOF
29905 #define DEFAULT_MAIL_DIRECTORY "$bash_cv_mail_dir"
29910 if test "$bash_cv_job_control_missing" = missing
; then
29914 if test "$opt_job_control" = yes; then
29915 cat >>confdefs.h
<<\_ACEOF
29916 #define JOB_CONTROL 1
29930 case "${host_os}" in
29931 sysv4.2
*) cat >>confdefs.h
<<\_ACEOF
29935 cat >>confdefs.h
<<\_ACEOF
29939 sysv4
*) cat >>confdefs.h
<<\_ACEOF
29943 sysv5
*) cat >>confdefs.h
<<\_ACEOF
29947 hpux9
*) LOCAL_CFLAGS
="-DHPUX9 -DHPUX" ;;
29948 hpux
*) LOCAL_CFLAGS
=-DHPUX ;;
29949 dgux
*) LOCAL_CFLAGS
=-D_DGUX_SOURCE; LOCAL_LIBS
=-ldgc ;;
29950 isc
*) LOCAL_CFLAGS
=-Disc386 ;;
29951 rhapsody
*) LOCAL_CFLAGS
=-DRHAPSODY ;;
29952 darwin
*) LOCAL_CFLAGS
=-DMACOSX ;;
29953 sco3.2v5
*) LOCAL_CFLAGS
="-b elf -DWAITPID_BROKEN -DPATH_MAX=1024" ;;
29954 sco3.2v4
*) LOCAL_CFLAGS
="-DMUST_UNBLOCK_CHLD -DPATH_MAX=1024" ;;
29955 sco3.2
*) LOCAL_CFLAGS
=-DMUST_UNBLOCK_CHLD ;;
29956 sunos4
*) LOCAL_CFLAGS
=-DSunOS4 ;;
29957 solaris2.5
*) LOCAL_CFLAGS
="-DSunOS5 -DSOLARIS" ;;
29958 solaris2.8
*) LOCAL_CFLAGS
=-DSOLARIS ;;
29959 solaris2.9
*) LOCAL_CFLAGS
=-DSOLARIS ;;
29960 solaris2.10
*) LOCAL_CFLAGS
=-DSOLARIS ;;
29961 solaris2
*) LOCAL_CFLAGS
=-DSOLARIS ;;
29962 lynxos
*) LOCAL_CFLAGS
=-DRECYCLES_PIDS ;;
29963 linux
*) LOCAL_LDFLAGS
=-rdynamic # allow dynamic loading
29964 case "`uname -r`" in
29965 2.
[456789]*|
3*) cat >>confdefs.h
<<\_ACEOF
29966 #define PGRP_PIPE 1
29970 *qnx6
*) LOCAL_CFLAGS
="-Dqnx -Dqnx6" LOCAL_LIBS
="-lncurses" ;;
29971 *qnx
*) LOCAL_CFLAGS
="-Dqnx -F -3s" LOCAL_LDFLAGS
="-3s" LOCAL_LIBS
="-lunix -lncurses" ;;
29972 powerux
*) LOCAL_LIBS
="-lgen" ;;
29973 cygwin
*) LOCAL_CFLAGS
=-DRECYCLES_PIDS ;;
29974 opennt
*|interix
*) LOCAL_CFLAGS
="-DNO_MAIN_ENV_ARG -DBROKEN_DIRENT_D_INO -D_POSIX_SOURCE" ;;
29977 case "${host_os}-${CC}" in
29978 aix4.2
*-*gcc
*) LOCAL_LDFLAGS
="-Xlinker -bexpall -Xlinker -brtl" ;;
29979 aix4.2
*) LOCAL_LDFLAGS
="-bexpall -brtl" ;;
29980 bsdi4
*-*gcc
*) LOCAL_LDFLAGS
="-rdynamic" ;; # allow dynamic loading, like Linux
29983 case "${host_os}" in
29985 if test -x /usr
/bin
/objformat
&& test "`/usr/bin/objformat`" = "elf" ; then
29986 LOCAL_LDFLAGS
=-rdynamic # allow dynamic loading
29988 freebsdelf
*) LOCAL_LDFLAGS
=-rdynamic ;; # allow dynamic loading
29989 dragonfly
*) LOCAL_LDFLAGS
=-rdynamic ;; # allow dynamic loading
29992 case "$host_cpu" in
29993 *cray
*) LOCAL_CFLAGS
="-DCRAY" ;; # shell var so config.h can use it
29996 case "$host_cpu-$host_os" in
29997 ibmrt-
*bsd4
*) LOCAL_CFLAGS
="-ma -U__STDC__" ;;
30000 case "$host_cpu-$host_vendor-$host_os" in
30001 m88k-motorola-sysv3
) LOCAL_CFLAGS
=-DWAITPID_BROKEN ;;
30002 mips-pyramid-sysv4
) LOCAL_CFLAGS
=-Xa ;;
30006 # Shared object configuration section. These values are generated by
30007 # ${srcdir}/support/shobj-conf
30009 if test "$ac_cv_func_dlopen" = "yes" && test -f ${srcdir}/support
/shobj-conf
30011 { $as_echo "$as_me:$LINENO: checking shared object configuration for loadable builtins" >&5
30012 $as_echo_n "checking shared object configuration for loadable builtins... " >&6; }
30013 eval `${CONFIG_SHELL-/bin/sh} ${srcdir}/support/shobj-conf -C "${CC}" -c "${host_cpu}" -o "${host_os}" -v "${host_vendor}"`
30021 { $as_echo "$as_me:$LINENO: result: $SHOBJ_STATUS" >&5
30022 $as_echo "$SHOBJ_STATUS" >&6; }
30025 # try to create a directory tree if the source is elsewhere
30026 # this should be packaged into a script accessible via ${srcdir}/support
30029 *) for d
in doc tests support lib examples
; do # dirs
30030 test -d $d || mkdir
$d
30032 for ld
in readline glob tilde malloc sh termcap
; do # libdirs
30033 test -d lib
/$ld || mkdir lib
/$ld
30035 test -d examples
/loadables || mkdir examples
/loadables
# loadable builtins
30036 test -d examples
/loadables
/perl || mkdir examples
/loadables
/perl
30041 case "$BUILD_DIR" in
30042 *\
*) BUILD_DIR
=`echo "$BUILD_DIR" | sed 's: :\\\\ :g'` ;;
30046 if test -z "$localedir"; then
30047 localedir
='${datarootdir}/locale'
30049 if test -z "$datarootdir"; then
30050 datarootdir
='${prefix}/share'
30058 # Some versions of autoconf don't substitute these automatically
30080 #AC_SUBST(ALLOCA_SOURCE)
30081 #AC_SUBST(ALLOCA_OBJECT)
30083 ac_config_files
="$ac_config_files Makefile builtins/Makefile lib/readline/Makefile lib/glob/Makefile lib/intl/Makefile lib/malloc/Makefile lib/sh/Makefile lib/termcap/Makefile lib/tilde/Makefile doc/Makefile support/Makefile po/Makefile.in examples/loadables/Makefile examples/loadables/perl/Makefile"
30085 ac_config_commands
="$ac_config_commands default"
30087 cat >confcache
<<\_ACEOF
30088 # This file is a shell script that caches the results of configure
30089 # tests run on this system so they can be shared between configure
30090 # scripts and configure runs, see configure's option --config-cache.
30091 # It is not useful on other systems. If it contains results you don't
30092 # want to keep, you may remove or edit it.
30094 # config.status only pays attention to the cache file if you give it
30095 # the --recheck option to rerun configure.
30097 # `ac_cv_env_foo' variables (set or unset) will be overridden when
30098 # loading this file, other *unset* `ac_cv_foo' will be assigned the
30099 # following values.
30103 # The following way of writing the cache mishandles newlines in values,
30104 # but we know of no workaround that is simple, portable, and efficient.
30105 # So, we kill variables containing newlines.
30106 # Ultrix sh set writes to stderr and can't be redirected directly,
30107 # and sets the high bit in the cache file unless we assign to the vars.
30109 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
30110 eval ac_val
=\$
$ac_var
30114 *_cv_
*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
30115 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
30118 _ | IFS | as_nl
) ;; #(
30119 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
30120 *) $as_unset $ac_var ;;
30126 case $as_nl`(ac_space=' '; set) 2>&1` in #(
30127 *${as_nl}ac_space
=\
*)
30128 # `set' does not quote correctly, so add quotes (double-quote
30129 # substitution turns \\\\ into \\, and sed turns \\ into \).
30132 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
30135 # `set' quotes correctly as required by POSIX, so do not add quotes.
30136 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
30145 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
30147 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
30149 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
30150 if test -w "$cache_file"; then
30151 test "x$cache_file" != "x/dev/null" &&
30152 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
30153 $as_echo "$as_me: updating cache $cache_file" >&6;}
30154 cat confcache
>$cache_file
30156 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
30157 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
30162 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
30163 # Let make expand exec_prefix.
30164 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
30166 DEFS
=-DHAVE_CONFIG_H
30170 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
30171 # 1. Remove the extension, and $U if already installed.
30172 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
30173 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
30174 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
30175 # will be set to the directory where LIBOBJS objects are built.
30176 ac_libobjs
="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
30177 ac_ltlibobjs
="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
30179 LIBOBJS
=$ac_libobjs
30181 LTLIBOBJS
=$ac_ltlibobjs
30186 : ${CONFIG_STATUS=./config.status}
30188 ac_clean_files_save
=$ac_clean_files
30189 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
30190 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
30191 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
30192 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30194 # Generated by $as_me.
30195 # Run this file to recreate the current configuration.
30196 # Compiler output produced by configure, useful for debugging
30197 # configure, is in config.log if it exists.
30200 ac_cs_recheck=false
30202 SHELL=\${CONFIG_SHELL-$SHELL}
30205 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
30206 ## --------------------- ##
30207 ## M4sh Initialization. ##
30208 ## --------------------- ##
30210 # Be more Bourne compatible
30211 DUALCASE
=1; export DUALCASE
# for MKS sh
30212 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
30215 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
30216 # is contrary to our usage. Disable this feature.
30217 alias -g '${1+"$@"}'='"$@"'
30218 setopt NO_GLOB_SUBST
30220 case `(set -o) 2>/dev/null` in
30221 *posix
*) set -o posix
;;
30230 # Avoid depending upon Character Ranges.
30231 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
30232 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
30233 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
30234 as_cr_digits
='0123456789'
30235 as_cr_alnum
=$as_cr_Letters$as_cr_digits
30240 # Printing a long string crashes Solaris 7 /usr/bin/printf.
30241 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
30242 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
30243 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
30244 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
30245 as_echo='printf %s
\n'
30246 as_echo_n='printf %s
'
30248 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
30249 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
30250 as_echo_n='/usr
/ucb
/echo -n'
30252 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
30253 as_echo_n_body='eval
30257 expr "X$arg" : "X\\(.*\\)$as_nl";
30258 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
30260 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
30262 export as_echo_n_body
30263 as_echo_n='sh
-c $as_echo_n_body as_echo
'
30265 export as_echo_body
30266 as_echo='sh
-c $as_echo_body as_echo
'
30269 # The user is always right.
30270 if test "${PATH_SEPARATOR+set}" != set; then
30272 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
30273 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
30278 # Support unset when possible.
30279 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
30287 # We need space, tab and new line, in precisely that order. Quoting is
30288 # there to prevent editors from complaining about space-tab.
30289 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
30290 # splitting by setting IFS to empty value.)
30293 # Find who we are. Look in the path if we contain no directory separator.
30295 *[\\/]* ) as_myself=$0 ;;
30296 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30297 for as_dir in $PATH
30300 test -z "$as_dir" && as_dir=.
30301 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
30307 # We did not find ourselves, most probably we were run as `sh COMMAND'
30308 # in which case we are not to be found in the path.
30309 if test "x$as_myself" = x
; then
30312 if test ! -f "$as_myself"; then
30313 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
30314 { (exit 1); exit 1; }
30317 # Work around bugs in pre-3.0 UWIN ksh.
30318 for as_var
in ENV MAIL MAILPATH
30319 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
30331 # Required to use basename.
30332 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
30333 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
30339 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
30340 as_basename
=basename
30346 # Name of the executable.
30347 as_me
=`$as_basename -- "$0" ||
30348 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
30349 X"$0" : 'X\(//\)$' \| \
30350 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
30352 sed '/^.*\/\([^/][^/]*\)\/*$/{
30371 as_lineno_1
=$LINENO
30372 as_lineno_2
=$LINENO
30373 test "x$as_lineno_1" != "x$as_lineno_2" &&
30374 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
30376 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
30377 # uniformly replaced by the line number. The first 'sed' inserts a
30378 # line-number line after each line using $LINENO; the second 'sed'
30379 # does the real work. The second script uses 'N' to pair each
30380 # line-number line with the line containing $LINENO, and appends
30381 # trailing '-' during substitution so that $LINENO is not a special
30382 # case at line end.
30383 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
30384 # scripts with optimization help from Paolo Bonzini. Blame Lee
30385 # E. McMahon (1931-1989) for sed's syntax. :-)
30397 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
30400 ' >$as_me.lineno
&&
30401 chmod +x
"$as_me.lineno" ||
30402 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
30403 { (exit 1); exit 1; }; }
30405 # Don't try to exec as it changes $[0], causing all sort of problems
30406 # (the dirname of $[0] is not the place where we might find the
30407 # original and so on. Autoconf is especially sensitive to this).
30408 .
"./$as_me.lineno"
30409 # Exit status is that of the last command.
30414 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
30420 ECHO_C
= ECHO_N
= ECHO_T
=
30421 case `echo -n x` in
30423 case `echo 'x\c'` in
30424 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
30430 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
30431 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
30437 rm -f conf$$ conf$$.exe conf$$.
file
30438 if test -d conf$$.dir
; then
30439 rm -f conf$$.dir
/conf$$.
file
30442 mkdir conf$$.dir
2>/dev
/null
30444 if (echo >conf$$.
file) 2>/dev
/null
; then
30445 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
30447 # ... but there are two gotchas:
30448 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
30449 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
30450 # In both cases, we have to default to `cp -p'.
30451 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
30453 elif ln conf$$.
file conf$$
2>/dev
/null
; then
30461 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
30462 rmdir conf$$.dir
2>/dev
/null
30464 if mkdir
-p .
2>/dev
/null
; then
30467 test -d .
/-p && rmdir .
/-p
30471 if test -x / >/dev
/null
2>&1; then
30472 as_test_x
='test -x'
30474 if ls -dL / >/dev
/null
2>&1; then
30481 if test -d "$1"; then
30487 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
30488 ???[sx]*):;;*)false;;esac;fi
30492 as_executable_p
=$as_test_x
30494 # Sed expression to map a string onto a valid CPP name.
30495 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
30497 # Sed expression to map a string onto a valid variable name.
30498 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
30503 # Save the log message, to keep $[0] and so on meaningful, and to
30504 # report actual input values of CONFIG_FILES etc. instead of their
30505 # values after options handling.
30507 This file was extended by bash $as_me 4.0-release, which was
30508 generated by GNU Autoconf 2.63. Invocation command line was
30510 CONFIG_FILES = $CONFIG_FILES
30511 CONFIG_HEADERS = $CONFIG_HEADERS
30512 CONFIG_LINKS = $CONFIG_LINKS
30513 CONFIG_COMMANDS = $CONFIG_COMMANDS
30516 on `(hostname || uname -n) 2>/dev/null | sed 1q`
30521 case $ac_config_files in *"
30522 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
30525 case $ac_config_headers in *"
30526 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
30530 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30531 # Files that config.status was made for.
30532 config_files="$ac_config_files"
30533 config_headers="$ac_config_headers"
30534 config_commands="$ac_config_commands"
30538 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
30540 \`$as_me' instantiates files from templates according to the
30541 current configuration.
30543 Usage: $0 [OPTION]... [FILE]...
30545 -h, --help print this help, then exit
30546 -V, --version print version number and configuration settings, then exit
30547 -q, --quiet, --silent
30548 do not print progress messages
30549 -d, --debug don't remove temporary files
30550 --recheck update $as_me by reconfiguring in the same conditions
30551 --file=FILE[:TEMPLATE]
30552 instantiate the configuration file FILE
30553 --header=FILE[:TEMPLATE]
30554 instantiate the configuration header FILE
30556 Configuration files:
30559 Configuration headers:
30562 Configuration commands:
30565 Report bugs to <bug-autoconf@gnu.org>."
30568 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30570 bash config.status 4.0-release
30571 configured by $0, generated by GNU Autoconf 2.63,
30572 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
30574 Copyright (C) 2008 Free Software Foundation, Inc.
30575 This config.status script is free software; the Free Software Foundation
30576 gives unlimited permission to copy, distribute and modify it."
30581 test -n "\$AWK" || AWK=awk
30584 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
30585 # The default lists apply if the user does not specify any file.
30591 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
30592 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
30603 # Handling of the options.
30604 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
30606 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
30607 $as_echo "$ac_cs_version"; exit ;;
30608 --debug |
--debu |
--deb |
--de |
--d |
-d )
30610 --file |
--fil |
--fi |
--f )
30613 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
30615 CONFIG_FILES
="$CONFIG_FILES '$ac_optarg'"
30616 ac_need_defaults
=false
;;
30617 --header |
--heade |
--head |
--hea )
30620 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
30622 CONFIG_HEADERS
="$CONFIG_HEADERS '$ac_optarg'"
30623 ac_need_defaults
=false
;;
30625 # Conflict between --help and --header
30626 { $as_echo "$as_me: error: ambiguous option: $1
30627 Try \`$0 --help' for more information." >&2
30628 { (exit 1); exit 1; }; };;
30629 --help |
--hel |
-h )
30630 $as_echo "$ac_cs_usage"; exit ;;
30631 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
30632 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
30635 # This is an error.
30636 -*) { $as_echo "$as_me: error: unrecognized option: $1
30637 Try \`$0 --help' for more information." >&2
30638 { (exit 1); exit 1; }; } ;;
30640 *) ac_config_targets
="$ac_config_targets $1"
30641 ac_need_defaults
=false
;;
30647 ac_configure_extra_args
=
30649 if $ac_cs_silent; then
30651 ac_configure_extra_args
="$ac_configure_extra_args --silent"
30655 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30656 if \$ac_cs_recheck; then
30657 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
30659 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
30660 CONFIG_SHELL='$SHELL'
30661 export CONFIG_SHELL
30666 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
30670 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
30671 ## Running $as_me. ##
30677 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30681 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
30682 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
30684 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
30685 # Capture the value of LINGUAS because we need it to compute CATALOGS.
30686 LINGUAS="${LINGUAS-%UNSET%}"
30691 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
30693 # Handling of arguments.
30694 for ac_config_target
in $ac_config_targets
30696 case $ac_config_target in
30697 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h" ;;
30698 "default-1") CONFIG_COMMANDS
="$CONFIG_COMMANDS default-1" ;;
30699 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
30700 "builtins/Makefile") CONFIG_FILES
="$CONFIG_FILES builtins/Makefile" ;;
30701 "lib/readline/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/readline/Makefile" ;;
30702 "lib/glob/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/glob/Makefile" ;;
30703 "lib/intl/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/intl/Makefile" ;;
30704 "lib/malloc/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/malloc/Makefile" ;;
30705 "lib/sh/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/sh/Makefile" ;;
30706 "lib/termcap/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/termcap/Makefile" ;;
30707 "lib/tilde/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/tilde/Makefile" ;;
30708 "doc/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/Makefile" ;;
30709 "support/Makefile") CONFIG_FILES
="$CONFIG_FILES support/Makefile" ;;
30710 "po/Makefile.in") CONFIG_FILES
="$CONFIG_FILES po/Makefile.in" ;;
30711 "examples/loadables/Makefile") CONFIG_FILES
="$CONFIG_FILES examples/loadables/Makefile" ;;
30712 "examples/loadables/perl/Makefile") CONFIG_FILES
="$CONFIG_FILES examples/loadables/perl/Makefile" ;;
30713 "default") CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
30715 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
30716 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
30717 { (exit 1); exit 1; }; };;
30722 # If the user did not use the arguments to specify the items to instantiate,
30723 # then the envvar interface is used. Set only those that are not.
30724 # We use the long form for the default assignment because of an extremely
30725 # bizarre bug on SunOS 4.1.3.
30726 if $ac_need_defaults; then
30727 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
30728 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
30729 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
30732 # Have a temporary directory for convenience. Make it in the build tree
30733 # simply because there is no reason against having it here, and in addition,
30734 # creating and moving files from /tmp can sometimes cause problems.
30735 # Hook for its removal unless debugging.
30736 # Note that there is a small window in which the directory will not be cleaned:
30737 # after its creation but before its name has been assigned to `$tmp'.
30741 trap 'exit_status=$?
30742 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
30744 trap '{ (exit 1); exit 1; }' 1 2 13 15
30746 # Create a (secure) tmp directory for tmp files.
30749 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
30750 test -n "$tmp" && test -d "$tmp"
30753 tmp
=.
/conf$$
-$RANDOM
30754 (umask 077 && mkdir
"$tmp")
30757 $as_echo "$as_me: cannot create a temporary directory in ." >&2
30758 { (exit 1); exit 1; }
30761 # Set up the scripts for CONFIG_FILES section.
30762 # No need to generate them if there are no CONFIG_FILES.
30763 # This happens for instance with `./config.status config.h'.
30764 if test -n "$CONFIG_FILES"; then
30768 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
30769 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
30772 ac_cs_awk_cr
=$ac_cr
30775 echo 'BEGIN {' >"$tmp/subs1.awk" &&
30780 echo "cat >conf$$subs.awk <<_ACEOF" &&
30781 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
30783 } >conf$$subs.sh ||
30784 { { $as_echo "$as_me:$LINENO: error
: could not
make $CONFIG_STATUS" >&5
30785 $as_echo "$as_me: error
: could not
make $CONFIG_STATUS" >&2;}
30786 { (exit 1); exit 1; }; }
30787 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
30789 for ac_last_try in false false false false false :; do
30790 . ./conf$$subs.sh ||
30791 { { $as_echo "$as_me:$LINENO: error
: could not
make $CONFIG_STATUS" >&5
30792 $as_echo "$as_me: error
: could not
make $CONFIG_STATUS" >&2;}
30793 { (exit 1); exit 1; }; }
30795 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
30796 if test $ac_delim_n = $ac_delim_num; then
30798 elif $ac_last_try; then
30799 { { $as_echo "$as_me:$LINENO: error
: could not
make $CONFIG_STATUS" >&5
30800 $as_echo "$as_me: error
: could not
make $CONFIG_STATUS" >&2;}
30801 { (exit 1); exit 1; }; }
30803 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
30806 rm -f conf$$subs.sh
30808 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30809 cat >>"\
$tmp/subs1.
awk" <<\\_ACAWK &&
30813 s/^/S["/; s
/!.
*/"]=/
30823 s/\(.\{148\}\).*/\1/
30825 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
30830 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
30837 s/\(.\{148\}\).*/\1/
30839 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
30843 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
30848 ' <conf$$subs.awk | sed '
30853 ' >>$CONFIG_STATUS || ac_write_fail=1
30854 rm -f conf$$subs.awk
30855 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30857 cat >>"\
$tmp/subs1.
awk" <<_ACAWK &&
30858 for (key in S) S_is_set[key] = 1
30864 nfields = split(line, field, "@
")
30866 len = length(field[1])
30867 for (i = 2; i < nfields; i++) {
30869 keylen = length(key)
30870 if (S_is_set[key]) {
30872 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
30873 len += length(value) + length(field[++i])
30884 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30885 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
30886 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
30889 fi < "$tmp/subs1.
awk" > "$tmp/subs.
awk" \
30890 || { { $as_echo "$as_me:$LINENO: error
: could not setup config files machinery
" >&5
30891 $as_echo "$as_me: error
: could not setup config files machinery
" >&2;}
30892 { (exit 1); exit 1; }; }
30895 # VPATH may cause trouble with some makes, so we remove $(srcdir),
30896 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".
", strip leading and
30897 # trailing colons and then remove the whole line if VPATH becomes empty
30898 # (actually we leave an empty line to preserve line numbers).
30899 if test "x
$srcdir" = x.; then
30900 ac_vpsub='/^[ ]*VPATH[ ]*=/{
30901 s/:*\$(srcdir):*/:/
30902 s/:*\${srcdir}:*/:/
30904 s/^\([^=]*=[ ]*\):*/\1/
30910 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30911 fi # test -n "$CONFIG_FILES"
30913 # Set up the scripts for CONFIG_HEADERS section.
30914 # No need to generate them if there are no CONFIG_HEADERS.
30915 # This happens for instance with `./config.status Makefile'.
30916 if test -n "$CONFIG_HEADERS"; then
30917 cat >"$tmp/defines.
awk" <<\_ACAWK ||
30921 # Transform confdefs.h into an awk script `defines.awk', embedded as
30922 # here-document in config.status, that substitutes the proper values into
30923 # config.h.in to produce config.h.
30925 # Create a delimiter string that does not exist in confdefs.h, to ease
30926 # handling of long lines.
30928 for ac_last_try in false false :; do
30929 ac_t=`sed -n "/$ac_delim/p
" confdefs.h`
30930 if test -z "$ac_t"; then
30932 elif $ac_last_try; then
30933 { { $as_echo "$as_me:$LINENO: error
: could not
make $CONFIG_HEADERS" >&5
30934 $as_echo "$as_me: error
: could not
make $CONFIG_HEADERS" >&2;}
30935 { (exit 1); exit 1; }; }
30937 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
30941 # For the awk script, D is an array of macro values keyed by name,
30942 # likewise P contains macro parameters if any. Preserve backslash
30943 # newline sequences.
30945 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
30947 s/.\{148\}/&'"$ac_delim"'/g
30950 s/^[ ]*#[ ]*define[ ][ ]*/ /
30957 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
30959 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
30963 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
30964 D["\
1"]=" \
3\\\\\\n
"\\/p
30966 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
30971 s/.\{148\}/&'"$ac_delim"'/g
30976 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
30979 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
30981 ' <confdefs.h | sed '
30982 s/'"$ac_delim"'/"\\\
30983 "/g' >>$CONFIG_STATUS || ac_write_fail=1
30985 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30986 for (key in D) D_is_set[key] = 1
30989 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
30991 split(line, arg, " ")
30992 if (arg[1] == "#") {
30996 defundef
= substr
(arg
[1], 2)
30999 split(mac1
, mac2
, "(") #)
31001 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
31002 if (D_is_set
[macro
]) {
31003 # Preserve the white space surrounding the "#".
31004 print prefix
"define", macro P
[macro
] D
[macro
]
31007 # Replace #undef with comments. This is necessary, for example,
31008 # in the case of _POSIX_SOURCE, which is predefined and required
31009 # on some systems where configure will not decide to define it.
31010 if (defundef
== "undef") {
31011 print
"/*", prefix defundef
, macro
, "*/"
31019 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
31020 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
31021 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
31022 { (exit 1); exit 1; }; }
31023 fi # test -n "$CONFIG_HEADERS"
31026 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
31031 :[FHLC
]) ac_mode
=$ac_tag; continue;;
31033 case $ac_mode$ac_tag in
31035 :L
* |
:C
*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
31036 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
31037 { (exit 1); exit 1; }; };;
31038 :[FH
]-) ac_tag
=-:-;;
31039 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
31056 -) ac_f
="$tmp/stdin";;
31057 *) # Look for the file first in the build tree, then in the source tree
31058 # (if the path is not absolute). The absolute path cannot be DOS-style,
31059 # because $ac_f cannot contain `:'.
31063 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
31065 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
31066 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
31067 { (exit 1); exit 1; }; };;
31069 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
31070 ac_file_inputs
="$ac_file_inputs '$ac_f'"
31073 # Let's still pretend it is `configure' which instantiates (i.e., don't
31074 # use $as_me), people would be surprised to read:
31075 # /* config.h. Generated by config.status. */
31076 configure_input
='Generated from '`
31077 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
31079 if test x
"$ac_file" != x-
; then
31080 configure_input
="$ac_file. $configure_input"
31081 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
31082 $as_echo "$as_me: creating $ac_file" >&6;}
31084 # Neutralize special characters interpreted by sed in replacement strings.
31085 case $configure_input in #(
31086 *\
&* |
*\|
* |
*\\* )
31087 ac_sed_conf_input
=`$as_echo "$configure_input" |
31088 sed 's/[\\\\&|]/\\\\&/g'`;; #(
31089 *) ac_sed_conf_input
=$configure_input;;
31093 *:-:* |
*:-) cat >"$tmp/stdin" \
31094 ||
{ { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
31095 $as_echo "$as_me: error: could not create $ac_file" >&2;}
31096 { (exit 1); exit 1; }; } ;;
31101 ac_dir
=`$as_dirname -- "$ac_file" ||
31102 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31103 X"$ac_file" : 'X\(//\)[^/]' \| \
31104 X"$ac_file" : 'X\(//\)$' \| \
31105 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
31106 $as_echo X"$ac_file" |
31107 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31111 /^X\(\/\/\)[^/].*/{
31126 -*) as_dir
=.
/$as_dir;;
31128 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
31132 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
31133 *) as_qdir
=$as_dir;;
31135 as_dirs
="'$as_qdir' $as_dirs"
31136 as_dir
=`$as_dirname -- "$as_dir" ||
31137 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31138 X"$as_dir" : 'X\(//\)[^/]' \| \
31139 X"$as_dir" : 'X\(//\)$' \| \
31140 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
31141 $as_echo X"$as_dir" |
31142 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31146 /^X\(\/\/\)[^/].*/{
31159 test -d "$as_dir" && break
31161 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
31162 } ||
test -d "$as_dir" ||
{ { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
31163 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
31164 { (exit 1); exit 1; }; }; }
31168 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
31170 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
31171 # A ".." for each directory in $ac_dir_suffix.
31172 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
31173 case $ac_top_builddir_sub in
31174 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
31175 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
31178 ac_abs_top_builddir
=$ac_pwd
31179 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
31180 # for backward compatibility:
31181 ac_top_builddir
=$ac_top_build_prefix
31184 .
) # We are building in place.
31186 ac_top_srcdir
=$ac_top_builddir_sub
31187 ac_abs_top_srcdir
=$ac_pwd ;;
31188 [\\/]* | ?
:[\\/]* ) # Absolute name.
31189 ac_srcdir
=$srcdir$ac_dir_suffix;
31190 ac_top_srcdir
=$srcdir
31191 ac_abs_top_srcdir
=$srcdir ;;
31192 *) # Relative name.
31193 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
31194 ac_top_srcdir
=$ac_top_build_prefix$srcdir
31195 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
31197 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
31207 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
31208 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
31212 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
31213 # If the template does not know about datarootdir, expand it.
31214 # FIXME: This hack should be removed a few years after 2.60.
31215 ac_datarootdir_hack
=; ac_datarootdir_seen
=
31228 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
31229 *datarootdir
*) ac_datarootdir_seen
=yes;;
31230 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
31231 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
31232 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
31234 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31235 ac_datarootdir_hack='
31236 s&@datadir@&$datadir&g
31237 s&@docdir@&$docdir&g
31238 s&@infodir@&$infodir&g
31239 s&@localedir@&$localedir&g
31240 s&@mandir@&$mandir&g
31241 s&\\\${datarootdir}&$datarootdir&g' ;;
31245 # Neutralize VPATH when `$srcdir' = `.'.
31246 # Shell code in configure.ac might set extrasub.
31247 # FIXME: do we really want to maintain this feature?
31248 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31249 ac_sed_extra="$ac_vpsub
31252 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
31254 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
31255 s|@configure_input@|
$ac_sed_conf_input|
;t t
31256 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
31257 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
31258 s
&@srcdir@
&$ac_srcdir&;t t
31259 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
31260 s
&@top_srcdir@
&$ac_top_srcdir&;t t
31261 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
31262 s
&@builddir@
&$ac_builddir&;t t
31263 s
&@abs_builddir@
&$ac_abs_builddir&;t t
31264 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
31265 s
&@INSTALL@
&$ac_INSTALL&;t t
31266 $ac_datarootdir_hack
31268 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.
awk" >$tmp/out \
31269 || { { $as_echo "$as_me:$LINENO: error
: could not create
$ac_file" >&5
31270 $as_echo "$as_me: error
: could not create
$ac_file" >&2;}
31271 { (exit 1); exit 1; }; }
31273 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
31274 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
31275 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
31276 { $as_echo "$as_me:$LINENO: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
31277 which seems to be undefined. Please make sure it is defined." >&5
31278 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
31279 which seems to be undefined. Please make sure it is defined." >&2;}
31283 -) cat "$tmp/out" && rm -f "$tmp/out";;
31284 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
31286 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
31287 $as_echo "$as_me: error: could not create $ac_file" >&2;}
31288 { (exit 1); exit 1; }; }
31294 if test x"$ac_file" != x-; then
31296 $as_echo "/* $configure_input */" \
31297 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
31298 } >"$tmp/config.h" \
31299 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
31300 $as_echo "$as_me: error: could not create $ac_file" >&2;}
31301 { (exit 1); exit 1; }; }
31302 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
31303 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
31304 $as_echo "$as_me: $ac_file is unchanged" >&6;}
31307 mv "$tmp/config.h" "$ac_file" \
31308 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
31309 $as_echo "$as_me: error: could not create $ac_file" >&2;}
31310 { (exit 1); exit 1; }; }
31313 $as_echo "/* $configure_input */" \
31314 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
31315 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
31316 $as_echo "$as_me: error: could not create -" >&2;}
31317 { (exit 1); exit 1; }; }
31321 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
31322 $as_echo "$as_me: executing $ac_file commands" >&6;}
31327 case $ac_file$ac_mode in
31329 for ac_file in $CONFIG_FILES; do
31330 # Support "outfile[:infile[:infile...]]"
31332 *:*) ac_file=`echo "$ac_file"|sed 's
%:.
*%%'` ;;
31334 # PO directories have a Makefile.in generated from Makefile.in.in.
31335 case "$ac_file" in */Makefile.in)
31336 # Adjust a relative srcdir.
31337 ac_dir=`echo "$ac_file"|sed 's
%/[^
/][^
/]*$
%%'`
31338 ac_dir_suffix="/`echo "$ac_dir"|sed 's
%^\.
/%%'`"
31339 ac_dots=`echo "$ac_dir_suffix"|sed 's
%/[^
/]*%..
/%g
'`
31340 # In autoconf-2.13 it is called $ac_given_srcdir.
31341 # In autoconf-2.50 it is called $srcdir.
31342 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
31343 case "$ac_given_srcdir" in
31344 .) top_srcdir=`echo $ac_dots|sed 's
%/$
%%'` ;;
31345 /*) top_srcdir="$ac_given_srcdir" ;;
31346 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
31348 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
31349 rm -f "$ac_dir/POTFILES"
31350 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
31351 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
31352 POMAKEFILEDEPS="POTFILES.in"
31353 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
31354 # on $ac_dir but don't depend on user-specified configuration
31356 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
31357 # The LINGUAS file contains the set of available languages.
31358 if test -n "$OBSOLETE_ALL_LINGUAS"; then
31359 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" ||
echo "setting ALL_LINGUAS in configure.in is obsolete"
31361 ALL_LINGUAS_
=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
31362 # Hide the ALL_LINGUAS assigment from automake.
31363 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
31364 POMAKEFILEDEPS
="$POMAKEFILEDEPS LINGUAS"
31366 # The set of available languages was given in configure.in.
31367 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
31369 case "$ac_given_srcdir" in
31371 *) srcdirpre
='$(srcdir)/' ;;
31377 for lang
in $ALL_LINGUAS; do
31378 POFILES
="$POFILES $srcdirpre$lang.po"
31379 GMOFILES
="$GMOFILES $srcdirpre$lang.gmo"
31380 UPDATEPOFILES
="$UPDATEPOFILES $lang.po-update"
31381 DUMMYPOFILES
="$DUMMYPOFILES $lang.nop"
31383 # CATALOGS depends on both $ac_dir and the user's LINGUAS
31384 # environment variable.
31386 if test -n "$ALL_LINGUAS"; then
31387 for presentlang
in $ALL_LINGUAS; do
31389 if test "%UNSET%" != "$LINGUAS"; then
31390 desiredlanguages
="$LINGUAS"
31392 desiredlanguages
="$ALL_LINGUAS"
31394 for desiredlang
in $desiredlanguages; do
31395 # Use the presentlang catalog if desiredlang is
31396 # a. equal to presentlang, or
31397 # b. a variant of presentlang (because in this case,
31398 # presentlang can be used as a fallback for messages
31399 # which are not translated in the desiredlang catalog).
31400 case "$desiredlang" in
31401 "$presentlang"*) useit
=yes;;
31404 if test $useit = yes; then
31405 INST_LINGUAS
="$INST_LINGUAS $presentlang"
31410 if test -n "$INST_LINGUAS"; then
31411 for lang
in $INST_LINGUAS; do
31412 CATALOGS
="$CATALOGS $lang.gmo"
31415 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" ||
echo "creating $ac_dir/Makefile"
31416 sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
31417 for f
in "$ac_given_srcdir/$ac_dir"/Rules-
*; do
31418 if test -f "$f"; then
31420 *.orig |
*.bak |
*~
) ;;
31421 *) cat "$f" >> "$ac_dir/Makefile" ;;
31430 # Makefile uses this timestamp file to record whether config.h is up to date.
31431 echo timestamp
> stamp-h
31438 { (exit 0); exit 0; }
31440 chmod +x
$CONFIG_STATUS
31441 ac_clean_files
=$ac_clean_files_save
31443 test $ac_write_fail = 0 ||
31444 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
31445 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
31446 { (exit 1); exit 1; }; }
31449 # configure is writing to config.log, and then calls config.status.
31450 # config.status does its own redirection, appending to config.log.
31451 # Unfortunately, on DOS this fails, as config.log is still kept open
31452 # by configure, so config.status won't be able to write to it; its
31453 # output is simply discarded. So we exec the FD to /dev/null,
31454 # effectively closing config.log, so it can be properly (re)opened and
31455 # appended to by config.status. When coming back to configure, we
31456 # need to make the FD available again.
31457 if test "$no_create" != yes; then
31459 ac_config_status_args
=
31460 test "$silent" = yes &&
31461 ac_config_status_args
="$ac_config_status_args --quiet"
31463 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
31465 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
31466 # would make configure fail if this is the last instruction.
31467 $ac_cs_success ||
{ (exit 1); exit 1; }
31469 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
31470 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
31471 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}