2 @%:@ From configure.in for Bash 4.2, version 4.033.
3 @%:@ Guess values for system-dependent variables and create Makefiles.
4 @%:@ Generated by GNU Autoconf 2.63 for bash 4.2-alpha.
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.2-alpha'
601 PACKAGE_STRING='bash 4.2-alpha'
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
782 program_transform_name
794 enable_option_checking
799 with_installed_readline
802 enable_minimal_config
804 enable_arith_for_command
805 enable_array_variables
807 enable_brace_expansion
808 enable_casemod_attributes
809 enable_casemod_expansions
810 enable_command_timing
815 enable_directory_stack
816 enable_disabled_builtins
817 enable_dparen_arithmetic
819 enable_extended_glob_default
824 enable_net_redirections
825 enable_process_substitution
827 enable_prompt_string_decoding
831 enable_separate_helpfiles
832 enable_single_help_strings
833 enable_strict_posix_default
834 enable_usg_echo_default
835 enable_xpg_echo_default
844 with_included_gettext
847 ac_precious_vars='build_alias
861 # Initialize some variables set by options.
863 ac_init_version=false
864 ac_unrecognized_opts=
866 # The variables have the same names as the options, with
867 # dashes changed to underlines.
875 program_transform_name=s,x,x,
883 # Installation directory options.
884 # These are left unexpanded so users can "make install exec_prefix=/foo"
885 # and all the variables that are supposed to be based on exec_prefix
886 # by default will actually change.
887 # Use braces instead of parens because sh, perl, etc. also accept them.
888 # (The list follows the same order as the GNU Coding Standards.)
889 bindir='${exec_prefix}/bin'
890 sbindir='${exec_prefix}/sbin'
891 libexecdir='${exec_prefix}/libexec'
892 datarootdir='${prefix}/share'
893 datadir='${datarootdir}'
894 sysconfdir='${prefix}/etc'
895 sharedstatedir='${prefix}/com'
896 localstatedir='${prefix}/var'
897 includedir='${prefix}/include'
898 oldincludedir='/usr/include'
899 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
900 infodir='${datarootdir}/info'
905 libdir='${exec_prefix}/lib'
906 localedir='${datarootdir}/locale'
907 mandir='${datarootdir}/man'
913 # If the previous option needs an argument, assign it.
914 if test -n "$ac_prev"; then
915 eval $ac_prev=\$ac_option
921 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
925 # Accept the important Cygnus configure options, so we can diagnose typos.
927 case $ac_dashdash$ac_option in
931 -bindir | --bindir | --bindi | --bind | --bin | --bi)
933 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
936 -build | --build | --buil | --bui | --bu)
937 ac_prev=build_alias ;;
938 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
939 build_alias=$ac_optarg ;;
941 -cache-file | --cache-file | --cache-fil | --cache-fi \
942 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
943 ac_prev=cache_file ;;
944 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
945 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
946 cache_file=$ac_optarg ;;
949 cache_file=config.cache ;;
951 -datadir | --datadir | --datadi | --datad)
953 -datadir=* | --datadir=* | --datadi=* | --datad=*)
954 datadir=$ac_optarg ;;
956 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
957 | --dataroo | --dataro | --datar)
958 ac_prev=datarootdir ;;
959 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
960 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
961 datarootdir=$ac_optarg ;;
963 -disable-* | --disable-*)
964 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
965 # Reject names that are not valid shell variable names.
966 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
967 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
968 { (exit 1); exit 1; }; }
969 ac_useropt_orig=$ac_useropt
970 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
971 case $ac_user_opts in
975 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
976 ac_unrecognized_sep=', ';;
978 eval enable_$ac_useropt=no ;;
980 -docdir | --docdir | --docdi | --doc | --do)
982 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
985 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
987 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
990 -enable-* | --enable-*)
991 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
992 # Reject names that are not valid shell variable names.
993 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
994 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
995 { (exit 1); exit 1; }; }
996 ac_useropt_orig=$ac_useropt
997 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
998 case $ac_user_opts in
1000 "enable_$ac_useropt"
1002 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1003 ac_unrecognized_sep=', ';;
1005 eval enable_$ac_useropt=\$ac_optarg ;;
1007 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1008 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1009 | --exec | --exe | --ex)
1010 ac_prev=exec_prefix ;;
1011 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1012 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1013 | --exec=* | --exe=* | --ex=*)
1014 exec_prefix=$ac_optarg ;;
1016 -gas | --gas | --ga | --g)
1017 # Obsolete; use --with-gas.
1020 -help | --help | --hel | --he | -h)
1021 ac_init_help=long ;;
1022 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1023 ac_init_help=recursive ;;
1024 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1025 ac_init_help=short ;;
1027 -host | --host | --hos | --ho)
1028 ac_prev=host_alias ;;
1029 -host=* | --host=* | --hos=* | --ho=*)
1030 host_alias=$ac_optarg ;;
1032 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1034 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1036 htmldir=$ac_optarg ;;
1038 -includedir | --includedir | --includedi | --included | --include \
1039 | --includ | --inclu | --incl | --inc)
1040 ac_prev=includedir ;;
1041 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1042 | --includ=* | --inclu=* | --incl=* | --inc=*)
1043 includedir=$ac_optarg ;;
1045 -infodir | --infodir | --infodi | --infod | --info | --inf)
1047 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1048 infodir=$ac_optarg ;;
1050 -libdir | --libdir | --libdi | --libd)
1052 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1053 libdir=$ac_optarg ;;
1055 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1056 | --libexe | --libex | --libe)
1057 ac_prev=libexecdir ;;
1058 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1059 | --libexe=* | --libex=* | --libe=*)
1060 libexecdir=$ac_optarg ;;
1062 -localedir | --localedir | --localedi | --localed | --locale)
1063 ac_prev=localedir ;;
1064 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1065 localedir=$ac_optarg ;;
1067 -localstatedir | --localstatedir | --localstatedi | --localstated \
1068 | --localstate | --localstat | --localsta | --localst | --locals)
1069 ac_prev=localstatedir ;;
1070 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1071 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1072 localstatedir=$ac_optarg ;;
1074 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1076 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1077 mandir=$ac_optarg ;;
1079 -nfp | --nfp | --nf)
1080 # Obsolete; use --without-fp.
1083 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1084 | --no-cr | --no-c | -n)
1087 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1088 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1091 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1092 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1093 | --oldin | --oldi | --old | --ol | --o)
1094 ac_prev=oldincludedir ;;
1095 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1096 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1097 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1098 oldincludedir=$ac_optarg ;;
1100 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1102 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1103 prefix=$ac_optarg ;;
1105 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1106 | --program-pre | --program-pr | --program-p)
1107 ac_prev=program_prefix ;;
1108 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1109 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1110 program_prefix=$ac_optarg ;;
1112 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1113 | --program-suf | --program-su | --program-s)
1114 ac_prev=program_suffix ;;
1115 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1116 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1117 program_suffix=$ac_optarg ;;
1119 -program-transform-name | --program-transform-name \
1120 | --program-transform-nam | --program-transform-na \
1121 | --program-transform-n | --program-transform- \
1122 | --program-transform | --program-transfor \
1123 | --program-transfo | --program-transf \
1124 | --program-trans | --program-tran \
1125 | --progr-tra | --program-tr | --program-t)
1126 ac_prev=program_transform_name ;;
1127 -program-transform-name=* | --program-transform-name=* \
1128 | --program-transform-nam=* | --program-transform-na=* \
1129 | --program-transform-n=* | --program-transform-=* \
1130 | --program-transform=* | --program-transfor=* \
1131 | --program-transfo=* | --program-transf=* \
1132 | --program-trans=* | --program-tran=* \
1133 | --progr-tra=* | --program-tr=* | --program-t=*)
1134 program_transform_name=$ac_optarg ;;
1136 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1138 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1139 pdfdir=$ac_optarg ;;
1141 -psdir | --psdir | --psdi | --psd | --ps)
1143 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1146 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1147 | -silent | --silent | --silen | --sile | --sil)
1150 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1152 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1154 sbindir=$ac_optarg ;;
1156 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1157 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1158 | --sharedst | --shareds | --shared | --share | --shar \
1160 ac_prev=sharedstatedir ;;
1161 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1162 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1163 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1165 sharedstatedir=$ac_optarg ;;
1167 -site | --site | --sit)
1169 -site=* | --site=* | --sit=*)
1172 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1174 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1175 srcdir=$ac_optarg ;;
1177 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1178 | --syscon | --sysco | --sysc | --sys | --sy)
1179 ac_prev=sysconfdir ;;
1180 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1181 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1182 sysconfdir=$ac_optarg ;;
1184 -target | --target | --targe | --targ | --tar | --ta | --t)
1185 ac_prev=target_alias ;;
1186 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1187 target_alias=$ac_optarg ;;
1189 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1192 -version | --version | --versio | --versi | --vers | -V)
1193 ac_init_version=: ;;
1196 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1197 # Reject names that are not valid shell variable names.
1198 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1199 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1200 { (exit 1); exit 1; }; }
1201 ac_useropt_orig=$ac_useropt
1202 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1203 case $ac_user_opts in
1207 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1208 ac_unrecognized_sep=', ';;
1210 eval with_$ac_useropt=\$ac_optarg ;;
1212 -without-* | --without-*)
1213 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1214 # Reject names that are not valid shell variable names.
1215 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1216 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1217 { (exit 1); exit 1; }; }
1218 ac_useropt_orig=$ac_useropt
1219 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1220 case $ac_user_opts in
1224 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1225 ac_unrecognized_sep=', ';;
1227 eval with_$ac_useropt=no ;;
1230 # Obsolete; use --with-x.
1233 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1234 | --x-incl | --x-inc | --x-in | --x-i)
1235 ac_prev=x_includes ;;
1236 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1237 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1238 x_includes=$ac_optarg ;;
1240 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1241 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1242 ac_prev=x_libraries ;;
1243 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1244 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1245 x_libraries=$ac_optarg ;;
1247 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1248 Try \`$0 --help' for more information." >&2
1249 { (exit 1); exit 1; }; }
1253 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1254 # Reject names that are not valid shell variable names.
1255 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1256 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1257 { (exit 1); exit 1; }; }
1258 eval $ac_envvar=\$ac_optarg
1259 export $ac_envvar ;;
1262 # FIXME: should be removed in autoconf 3.0.
1263 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1264 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1265 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1266 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1272 if test -n "$ac_prev"; then
1273 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1274 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1275 { (exit 1); exit 1; }; }
1278 if test -n "$ac_unrecognized_opts"; then
1279 case $enable_option_checking in
1281 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1282 { (exit 1); exit 1; }; } ;;
1283 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1287 # Check all directory arguments for consistency.
1288 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1289 datadir sysconfdir sharedstatedir localstatedir includedir \
1290 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1291 libdir localedir mandir
1293 eval ac_val=\$$ac_var
1294 # Remove trailing slashes.
1297 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1298 eval $ac_var=\$ac_val;;
1300 # Be sure to have absolute directory names.
1302 [\\/$]* | ?:[\\/]* ) continue;;
1303 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1305 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1306 { (exit 1); exit 1; }; }
1309 # There might be people who depend on the old broken behavior: `$host'
1310 # used to hold the argument of --host etc.
1311 # FIXME: To remove some day.
1314 target=$target_alias
1316 # FIXME: To remove some day.
1317 if test "x$host_alias" != x; then
1318 if test "x$build_alias" = x; then
1319 cross_compiling=maybe
1320 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1321 If a cross compiler is detected then cross compile mode will be used." >&2
1322 elif test "x$build_alias" != "x$host_alias"; then
1328 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1330 test "$silent" = yes && exec 6>/dev/null
1333 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1334 ac_ls_di=`ls -di .` &&
1335 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1336 { $as_echo "$as_me: error: working directory cannot be determined" >&2
1337 { (exit 1); exit 1; }; }
1338 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1339 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1340 { (exit 1); exit 1; }; }
1343 # Find the source files, if location was not specified.
1344 if test -z "$srcdir"; then
1345 ac_srcdir_defaulted=yes
1346 # Try the directory containing this script, then the parent directory.
1347 ac_confdir=`$as_dirname -- "$as_myself" ||
1348 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1349 X"$as_myself" : 'X\(//\)[^/]' \| \
1350 X"$as_myself" : 'X\(//\)$' \| \
1351 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1352 $as_echo X"$as_myself" |
1353 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1371 if test ! -r "$srcdir/$ac_unique_file"; then
1375 ac_srcdir_defaulted=no
1377 if test ! -r "$srcdir/$ac_unique_file"; then
1378 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1379 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1380 { (exit 1); exit 1; }; }
1382 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1384 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1385 { (exit 1); exit 1; }; }
1387 # When building in place, set srcdir=.
1388 if test "$ac_abs_confdir" = "$ac_pwd"; then
1391 # Remove unnecessary trailing slashes from srcdir.
1392 # Double slashes in file names in object file debugging info
1393 # mess up M-x gdb in Emacs.
1395 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1397 for ac_var in $ac_precious_vars; do
1398 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1399 eval ac_env_${ac_var}_value=\$${ac_var}
1400 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1401 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1405 # Report the --help message.
1407 if test "$ac_init_help" = "long"; then
1408 # Omit some internal or obsolete options to make the list less imposing.
1409 # This message is too long to be a string in the A/UX 3.1 sh.
1411 \`configure' configures bash 4.2-alpha to adapt to many kinds of systems.
1413 Usage: $0 [OPTION]... [VAR=VALUE]...
1415 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1416 VAR=VALUE. See below for descriptions of some of the useful variables.
1418 Defaults for the options are specified in brackets.
1421 -h, --help display this help and exit
1422 --help=short display options specific to this package
1423 --help=recursive display the short help of all the included packages
1424 -V, --version display version information and exit
1425 -q, --quiet, --silent do not print \`checking...' messages
1426 --cache-file=FILE cache test results in FILE [disabled]
1427 -C, --config-cache alias for \`--cache-file=config.cache'
1428 -n, --no-create do not create output files
1429 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1431 Installation directories:
1432 --prefix=PREFIX install architecture-independent files in PREFIX
1433 [$ac_default_prefix]
1434 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1437 By default, \`make install' will install all the files in
1438 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1439 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1440 for instance \`--prefix=\$HOME'.
1442 For better control, use the options below.
1444 Fine tuning of the installation directories:
1445 --bindir=DIR user executables [EPREFIX/bin]
1446 --sbindir=DIR system admin executables [EPREFIX/sbin]
1447 --libexecdir=DIR program executables [EPREFIX/libexec]
1448 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1449 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1450 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1451 --libdir=DIR object code libraries [EPREFIX/lib]
1452 --includedir=DIR C header files [PREFIX/include]
1453 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1454 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1455 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1456 --infodir=DIR info documentation [DATAROOTDIR/info]
1457 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1458 --mandir=DIR man documentation [DATAROOTDIR/man]
1459 --docdir=DIR documentation root @<:@DATAROOTDIR/doc/bash@:>@
1460 --htmldir=DIR html documentation [DOCDIR]
1461 --dvidir=DIR dvi documentation [DOCDIR]
1462 --pdfdir=DIR pdf documentation [DOCDIR]
1463 --psdir=DIR ps documentation [DOCDIR]
1469 --build=BUILD configure for building on BUILD [guessed]
1470 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1474 if test -n "$ac_init_help"; then
1475 case $ac_init_help in
1476 short | recursive ) echo "Configuration of bash 4.2-alpha:";;
1481 --disable-option-checking ignore unrecognized --enable/--with options
1482 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1483 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1484 --enable-minimal-config a minimal sh-like configuration
1485 --enable-alias enable shell aliases
1486 --enable-arith-for-command
1487 enable arithmetic for command
1488 --enable-array-variables
1489 include shell array variables
1490 --enable-bang-history turn on csh-style history substitution
1491 --enable-brace-expansion
1492 include brace expansion
1493 --enable-casemod-attributes
1494 include case-modifying variable attributes
1495 --enable-casemod-expansions
1496 include case-modifying word expansions
1497 --enable-command-timing enable the time reserved word and command timing
1498 --enable-cond-command enable the conditional command
1499 --enable-cond-regexp enable extended regular expression matching in
1500 conditional commands
1501 --enable-coprocesses enable coprocess support and the coproc reserved
1503 --enable-debugger enable support for bash debugger
1504 --enable-directory-stack
1505 enable builtins pushd/popd/dirs
1506 --enable-disabled-builtins
1507 allow disabled builtins to still be invoked
1508 --enable-dparen-arithmetic
1509 include ((...)) command
1510 --enable-extended-glob include ksh-style extended pattern matching
1511 --enable-extended-glob-default
1512 force extended pattern matching to be enabled by
1514 --enable-help-builtin include the help builtin
1515 --enable-history turn on command history
1516 --enable-job-control enable job control features
1517 --enable-multibyte enable multibyte characters if OS supports them
1518 --enable-net-redirections
1519 enable /dev/tcp/host/port redirection
1520 --enable-process-substitution
1521 enable process substitution
1522 --enable-progcomp enable programmable completion and the complete
1524 --enable-prompt-string-decoding
1525 turn on escape character decoding in prompts
1526 --enable-readline turn on command line editing
1527 --enable-restricted enable a restricted shell
1528 --enable-select include select command
1529 --enable-separate-helpfiles
1530 use external files for help builtin documentation
1531 --enable-single-help-strings
1532 store help documentation as a single string to ease
1534 --enable-strict-posix-default
1535 configure bash to be posix-conformant by default
1536 --enable-usg-echo-default
1537 a synonym for --enable-xpg-echo-default
1538 --enable-xpg-echo-default
1539 make the echo builtin expand escape sequences by
1541 --enable-mem-scramble scramble memory on calls to malloc and free
1542 --enable-profiling allow profiling with gprof
1543 --enable-static-link link bash statically, for use as a root shell
1544 --disable-largefile omit support for large files
1545 --disable-nls do not use Native Language Support
1546 --disable-rpath do not hardcode runtime library paths
1549 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1550 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
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.2-alpha
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.2-alpha, which was
1666 generated by GNU Autoconf 2.63. Invocation command line was
1674 @%:@@%:@ --------- @%:@@%:@
1675 @%:@@%:@ Platform. @%:@@%:@
1676 @%:@@%:@ --------- @%:@@%:@
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"
1711 @%:@@%:@ ----------- @%:@@%:@
1712 @%:@@%:@ Core tests. @%:@@%:@
1713 @%:@@%:@ ----------- @%:@@%:@
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
1850 @%:@@%:@ ----------- @%:@@%:@
1851 @%:@@%:@ confdefs.h. @%:@@%:@
1852 @%:@@%:@ ----------- @%:@@%:@
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 ac_func_list="$ac_func_list snprintf"
1948 ac_func_list="$ac_func_list vsnprintf"
1949 # Check that the precious variables saved in the cache have kept the same
1951 ac_cache_corrupted=false
1952 for ac_var in $ac_precious_vars; do
1953 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1954 eval ac_new_set=\$ac_env_${ac_var}_set
1955 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1956 eval ac_new_val=\$ac_env_${ac_var}_value
1957 case $ac_old_set,$ac_new_set in
1959 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1960 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1961 ac_cache_corrupted=: ;;
1963 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1964 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1965 ac_cache_corrupted=: ;;
1968 if test "x$ac_old_val" != "x$ac_new_val"; then
1969 # differences in whitespace do not lead to failure.
1970 ac_old_val_w=`echo x $ac_old_val`
1971 ac_new_val_w=`echo x $ac_new_val`
1972 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1973 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1974 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1975 ac_cache_corrupted=:
1977 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1978 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1979 eval $ac_var=\$ac_old_val
1981 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1982 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1983 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1984 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1987 # Pass precious variables to config.status.
1988 if test "$ac_new_set" = set; then
1990 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1991 *) ac_arg=$ac_var=$ac_new_val ;;
1993 case " $ac_configure_args " in
1994 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1995 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1999 if $ac_cache_corrupted; then
2000 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2001 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2002 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2003 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2004 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2005 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2006 { (exit 1); exit 1; }; }
2034 ac_cpp='$CPP $CPPFLAGS'
2035 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2036 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2037 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2045 for ac_dir in ./support "$srcdir"/./support; do
2046 if test -f "$ac_dir/install-sh"; then
2048 ac_install_sh="$ac_aux_dir/install-sh -c"
2050 elif test -f "$ac_dir/install.sh"; then
2052 ac_install_sh="$ac_aux_dir/install.sh -c"
2054 elif test -f "$ac_dir/shtool"; then
2056 ac_install_sh="$ac_aux_dir/shtool install -c"
2060 if test -z "$ac_aux_dir"; then
2061 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ./support \"$srcdir\"/./support" >&5
2062 $as_echo "$as_me: error: cannot find install-sh or install.sh in ./support \"$srcdir\"/./support" >&2;}
2063 { (exit 1); exit 1; }; }
2066 # These three variables are undocumented and unsupported,
2067 # and are intended to be withdrawn in a future Autoconf release.
2068 # They can cause serious problems if a builder's source tree is in a directory
2069 # whose full name contains unusual characters.
2070 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2071 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2072 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2075 ac_config_headers="$ac_config_headers config.h"
2081 case "$RELSTATUS" in
2082 alp*|bet*|dev*|rc*|maint*) DEBUG='-DDEBUG' MALLOC_DEBUG='-DMALLOC_DEBUG' ;;
2083 *) DEBUG= MALLOC_DEBUG= ;;
2086 # Make sure we can run config.sub.
2087 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2088 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2089 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2090 { (exit 1); exit 1; }; }
2092 { $as_echo "$as_me:$LINENO: checking build system type" >&5
2093 $as_echo_n "checking build system type... " >&6; }
2094 if test "${ac_cv_build+set}" = set; then
2095 $as_echo_n "(cached) " >&6
2097 ac_build_alias=$build_alias
2098 test "x$ac_build_alias" = x &&
2099 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2100 test "x$ac_build_alias" = x &&
2101 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2102 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2103 { (exit 1); exit 1; }; }
2104 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2105 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2106 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2107 { (exit 1); exit 1; }; }
2110 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2111 $as_echo "$ac_cv_build" >&6; }
2112 case $ac_cv_build in
2114 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2115 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
2116 { (exit 1); exit 1; }; };;
2119 ac_save_IFS=$IFS; IFS='-'
2125 # Remember, the first character of IFS is used to create $*,
2126 # except with old shells:
2129 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2132 { $as_echo "$as_me:$LINENO: checking host system type" >&5
2133 $as_echo_n "checking host system type... " >&6; }
2134 if test "${ac_cv_host+set}" = set; then
2135 $as_echo_n "(cached) " >&6
2137 if test "x$host_alias" = x; then
2138 ac_cv_host=$ac_cv_build
2140 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2141 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2142 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2143 { (exit 1); exit 1; }; }
2147 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2148 $as_echo "$ac_cv_host" >&6; }
2151 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2152 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
2153 { (exit 1); exit 1; }; };;
2156 ac_save_IFS=$IFS; IFS='-'
2162 # Remember, the first character of IFS is used to create $*,
2163 # except with old shells:
2166 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2175 opt_with_installed_readline=no
2179 case "${host_cpu}-${host_os}" in
2180 alpha*-*) opt_bash_malloc=no ;; # alpha running osf/1 or linux
2181 *[Cc]ray*-*) opt_bash_malloc=no ;; # Crays
2182 *-osf1*) opt_bash_malloc=no ;; # other osf/1 machines
2183 sparc-svr4*) opt_bash_malloc=no ;; # sparc SVR4, SVR4.2
2184 sparc-netbsd*) opt_bash_malloc=no ;; # needs 8-byte alignment
2185 mips-irix6*) opt_bash_malloc=no ;; # needs 8-byte alignment
2186 m68k-sysv) opt_bash_malloc=no ;; # fixes file descriptor leak in closedir
2187 sparc-linux*) opt_bash_malloc=no ;; # sparc running linux; requires ELF
2188 #*-freebsd*-gnu) opt_bash_malloc=no ;; # there's some undetermined problem here
2189 #*-freebsd*) opt_bash_malloc=no ;; # they claim it's better; I disagree
2190 *-openbsd*) opt_bash_malloc=no ;; # they claim it needs eight-bit alignment
2191 *-aix*) opt_bash_malloc=no ;; # AIX machines
2192 *-nextstep*) opt_bash_malloc=no ;; # NeXT machines running NeXTstep
2193 *-macos*) opt_bash_malloc=no ;; # Apple MacOS X
2194 *-rhapsody*) opt_bash_malloc=no ;; # Apple Rhapsody (MacOS X)
2195 *-darwin*) opt_bash_malloc=no ;; # Apple Darwin (MacOS X)
2196 *-dgux*) opt_bash_malloc=no ;; # DG/UX machines
2197 *-qnx*) opt_bash_malloc=no ;; # QNX 4.2, QNX 6.x
2198 *-machten4) opt_bash_malloc=no ;; # MachTen 4.x
2199 *-bsdi2.1|*-bsdi3.?) opt_bash_malloc=no ; : ${CC:=shlicc2} ;; # for loadable builtins
2200 *-beos*) opt_bash_malloc=no ;; # they say it's suitable
2201 *-cygwin*) opt_bash_malloc=no ;; # Cygnus's CYGWIN environment
2202 *-opennt*|*-interix*) opt_bash_malloc=no ;; # Interix, now owned by Microsoft
2205 # memory scrambling on free()
2206 case "${host_os}" in
2207 sco3.2v5*|sco3.2v4*) opt_memscramble=no ;;
2208 *) opt_memscramble=yes ;;
2214 @%:@ Check whether --with-afs was given.
2215 if test "${with_afs+set}" = set; then
2216 withval=$with_afs; opt_afs=$withval
2220 @%:@ Check whether --with-bash-malloc was given.
2221 if test "${with_bash_malloc+set}" = set; then
2222 withval=$with_bash_malloc; opt_bash_malloc=$withval
2226 @%:@ Check whether --with-curses was given.
2227 if test "${with_curses+set}" = set; then
2228 withval=$with_curses; opt_curses=$withval
2232 @%:@ Check whether --with-gnu-malloc was given.
2233 if test "${with_gnu_malloc+set}" = set; then
2234 withval=$with_gnu_malloc; opt_bash_malloc=$withval
2238 @%:@ Check whether --with-installed-readline was given.
2239 if test "${with_installed_readline+set}" = set; then
2240 withval=$with_installed_readline; opt_with_installed_readline=$withval
2244 @%:@ Check whether --with-purecov was given.
2245 if test "${with_purecov+set}" = set; then
2246 withval=$with_purecov; opt_purecov=$withval
2250 @%:@ Check whether --with-purify was given.
2251 if test "${with_purify+set}" = set; then
2252 withval=$with_purify; opt_purify=$withval
2256 if test "$opt_bash_malloc" = yes; then
2257 MALLOC_TARGET=malloc
2260 MALLOC_LIB='-lmalloc'
2261 MALLOC_LIBRARY='$(ALLOC_LIBDIR)/libmalloc.a'
2262 MALLOC_LDFLAGS='-L$(ALLOC_LIBDIR)'
2263 MALLOC_DEP='$(MALLOC_LIBRARY)'
2265 cat >>confdefs.h <<\_ACEOF
2266 @%:@define USING_BASH_MALLOC 1
2276 if test "$opt_purify" = yes; then
2278 cat >>confdefs.h <<\_ACEOF
2279 @%:@define DISABLE_MALLOC_WRAPPERS 1
2286 if test "$opt_purecov" = yes; then
2287 PURIFY="${PURIFY}purecov"
2290 if test "$opt_afs" = yes; then
2291 cat >>confdefs.h <<\_ACEOF
2297 if test "$opt_curses" = yes; then
2301 if test -z "${DEBUGGER_START_FILE}"; then
2302 DEBUGGER_START_FILE='${datadir}/bashdb/bashdb-main.inc'
2305 opt_minimal_config=no
2311 opt_bang_history=yes
2314 opt_process_subst=yes
2315 opt_prompt_decoding=yes
2318 opt_array_variables=yes
2319 opt_dparen_arith=yes
2320 opt_extended_glob=yes
2321 opt_brace_expansion=yes
2322 opt_disabled_builtins=no
2323 opt_command_timing=yes
2326 opt_cond_command=yes
2329 opt_arith_for_command=yes
2332 opt_separate_help=no
2335 opt_single_longdoc_strings=yes
2336 opt_casemod_attrs=yes
2337 opt_casemod_expansions=yes
2338 opt_extglob_default=no
2343 @%:@ Check whether --enable-minimal-config was given.
2344 if test "${enable_minimal_config+set}" = set; then
2345 enableval=$enable_minimal_config; opt_minimal_config=$enableval
2349 if test $opt_minimal_config = yes; then
2350 opt_job_control=no opt_alias=no opt_readline=no
2351 opt_history=no opt_bang_history=no opt_dirstack=no
2352 opt_restricted=no opt_process_subst=no opt_prompt_decoding=no
2353 opt_select=no opt_help=no opt_array_variables=no opt_dparen_arith=no
2354 opt_brace_expansion=no opt_disabled_builtins=no opt_command_timing=no
2355 opt_extended_glob=no opt_cond_command=no opt_arith_for_command=no
2356 opt_net_redirs=no opt_progcomp=no opt_separate_help=no
2357 opt_multibyte=yes opt_cond_regexp=no opt_coproc=no
2358 opt_casemod_attrs=no opt_casemod_expansions=no opt_extglob_default=no
2361 @%:@ Check whether --enable-alias was given.
2362 if test "${enable_alias+set}" = set; then
2363 enableval=$enable_alias; opt_alias=$enableval
2366 @%:@ Check whether --enable-arith-for-command was given.
2367 if test "${enable_arith_for_command+set}" = set; then
2368 enableval=$enable_arith_for_command; opt_arith_for_command=$enableval
2371 @%:@ Check whether --enable-array-variables was given.
2372 if test "${enable_array_variables+set}" = set; then
2373 enableval=$enable_array_variables; opt_array_variables=$enableval
2376 @%:@ Check whether --enable-bang-history was given.
2377 if test "${enable_bang_history+set}" = set; then
2378 enableval=$enable_bang_history; opt_bang_history=$enableval
2381 @%:@ Check whether --enable-brace-expansion was given.
2382 if test "${enable_brace_expansion+set}" = set; then
2383 enableval=$enable_brace_expansion; opt_brace_expansion=$enableval
2386 @%:@ Check whether --enable-casemod-attributes was given.
2387 if test "${enable_casemod_attributes+set}" = set; then
2388 enableval=$enable_casemod_attributes; opt_casemod_attrs=$enableval
2391 @%:@ Check whether --enable-casemod-expansions was given.
2392 if test "${enable_casemod_expansions+set}" = set; then
2393 enableval=$enable_casemod_expansions; opt_casemod_expansions=$enableval
2396 @%:@ Check whether --enable-command-timing was given.
2397 if test "${enable_command_timing+set}" = set; then
2398 enableval=$enable_command_timing; opt_command_timing=$enableval
2401 @%:@ Check whether --enable-cond-command was given.
2402 if test "${enable_cond_command+set}" = set; then
2403 enableval=$enable_cond_command; opt_cond_command=$enableval
2406 @%:@ Check whether --enable-cond-regexp was given.
2407 if test "${enable_cond_regexp+set}" = set; then
2408 enableval=$enable_cond_regexp; opt_cond_regexp=$enableval
2411 @%:@ Check whether --enable-coprocesses was given.
2412 if test "${enable_coprocesses+set}" = set; then
2413 enableval=$enable_coprocesses; opt_coproc=$enableval
2416 @%:@ Check whether --enable-debugger was given.
2417 if test "${enable_debugger+set}" = set; then
2418 enableval=$enable_debugger; opt_debugger=$enableval
2421 @%:@ Check whether --enable-directory-stack was given.
2422 if test "${enable_directory_stack+set}" = set; then
2423 enableval=$enable_directory_stack; opt_dirstack=$enableval
2426 @%:@ Check whether --enable-disabled-builtins was given.
2427 if test "${enable_disabled_builtins+set}" = set; then
2428 enableval=$enable_disabled_builtins; opt_disabled_builtins=$enableval
2431 @%:@ Check whether --enable-dparen-arithmetic was given.
2432 if test "${enable_dparen_arithmetic+set}" = set; then
2433 enableval=$enable_dparen_arithmetic; opt_dparen_arith=$enableval
2436 @%:@ Check whether --enable-extended-glob was given.
2437 if test "${enable_extended_glob+set}" = set; then
2438 enableval=$enable_extended_glob; opt_extended_glob=$enableval
2441 @%:@ Check whether --enable-extended-glob-default was given.
2442 if test "${enable_extended_glob_default+set}" = set; then
2443 enableval=$enable_extended_glob_default; opt_extglob_default=$enableval
2446 @%:@ Check whether --enable-help-builtin was given.
2447 if test "${enable_help_builtin+set}" = set; then
2448 enableval=$enable_help_builtin; opt_help=$enableval
2451 @%:@ Check whether --enable-history was given.
2452 if test "${enable_history+set}" = set; then
2453 enableval=$enable_history; opt_history=$enableval
2456 @%:@ Check whether --enable-job-control was given.
2457 if test "${enable_job_control+set}" = set; then
2458 enableval=$enable_job_control; opt_job_control=$enableval
2461 @%:@ Check whether --enable-multibyte was given.
2462 if test "${enable_multibyte+set}" = set; then
2463 enableval=$enable_multibyte; opt_multibyte=$enableval
2466 @%:@ Check whether --enable-net-redirections was given.
2467 if test "${enable_net_redirections+set}" = set; then
2468 enableval=$enable_net_redirections; opt_net_redirs=$enableval
2471 @%:@ Check whether --enable-process-substitution was given.
2472 if test "${enable_process_substitution+set}" = set; then
2473 enableval=$enable_process_substitution; opt_process_subst=$enableval
2476 @%:@ Check whether --enable-progcomp was given.
2477 if test "${enable_progcomp+set}" = set; then
2478 enableval=$enable_progcomp; opt_progcomp=$enableval
2481 @%:@ Check whether --enable-prompt-string-decoding was given.
2482 if test "${enable_prompt_string_decoding+set}" = set; then
2483 enableval=$enable_prompt_string_decoding; opt_prompt_decoding=$enableval
2486 @%:@ Check whether --enable-readline was given.
2487 if test "${enable_readline+set}" = set; then
2488 enableval=$enable_readline; opt_readline=$enableval
2491 @%:@ Check whether --enable-restricted was given.
2492 if test "${enable_restricted+set}" = set; then
2493 enableval=$enable_restricted; opt_restricted=$enableval
2496 @%:@ Check whether --enable-select was given.
2497 if test "${enable_select+set}" = set; then
2498 enableval=$enable_select; opt_select=$enableval
2501 @%:@ Check whether --enable-separate-helpfiles was given.
2502 if test "${enable_separate_helpfiles+set}" = set; then
2503 enableval=$enable_separate_helpfiles; opt_separate_help=$enableval
2506 @%:@ Check whether --enable-single-help-strings was given.
2507 if test "${enable_single_help_strings+set}" = set; then
2508 enableval=$enable_single_help_strings; opt_single_longdoc_strings=$enableval
2511 @%:@ Check whether --enable-strict-posix-default was given.
2512 if test "${enable_strict_posix_default+set}" = set; then
2513 enableval=$enable_strict_posix_default; opt_strict_posix=$enableval
2516 @%:@ Check whether --enable-usg-echo-default was given.
2517 if test "${enable_usg_echo_default+set}" = set; then
2518 enableval=$enable_usg_echo_default; opt_xpg_echo=$enableval
2521 @%:@ Check whether --enable-xpg-echo-default was given.
2522 if test "${enable_xpg_echo_default+set}" = set; then
2523 enableval=$enable_xpg_echo_default; opt_xpg_echo=$enableval
2527 @%:@ Check whether --enable-mem-scramble was given.
2528 if test "${enable_mem_scramble+set}" = set; then
2529 enableval=$enable_mem_scramble; opt_memscramble=$enableval
2532 @%:@ Check whether --enable-profiling was given.
2533 if test "${enable_profiling+set}" = set; then
2534 enableval=$enable_profiling; opt_profiling=$enableval
2537 @%:@ Check whether --enable-static-link was given.
2538 if test "${enable_static_link+set}" = set; then
2539 enableval=$enable_static_link; opt_static_link=$enableval
2545 if test $opt_alias = yes; then
2546 cat >>confdefs.h <<\_ACEOF
2551 if test $opt_dirstack = yes; then
2552 cat >>confdefs.h <<\_ACEOF
2553 @%:@define PUSHD_AND_POPD 1
2557 if test $opt_restricted = yes; then
2558 cat >>confdefs.h <<\_ACEOF
2559 @%:@define RESTRICTED_SHELL 1
2563 if test $opt_process_subst = yes; then
2564 cat >>confdefs.h <<\_ACEOF
2565 @%:@define PROCESS_SUBSTITUTION 1
2569 if test $opt_prompt_decoding = yes; then
2570 cat >>confdefs.h <<\_ACEOF
2571 @%:@define PROMPT_STRING_DECODE 1
2575 if test $opt_select = yes; then
2576 cat >>confdefs.h <<\_ACEOF
2577 @%:@define SELECT_COMMAND 1
2581 if test $opt_help = yes; then
2582 cat >>confdefs.h <<\_ACEOF
2583 @%:@define HELP_BUILTIN 1
2587 if test $opt_array_variables = yes; then
2588 cat >>confdefs.h <<\_ACEOF
2589 @%:@define ARRAY_VARS 1
2593 if test $opt_dparen_arith = yes; then
2594 cat >>confdefs.h <<\_ACEOF
2595 @%:@define DPAREN_ARITHMETIC 1
2599 if test $opt_brace_expansion = yes; then
2600 cat >>confdefs.h <<\_ACEOF
2601 @%:@define BRACE_EXPANSION 1
2605 if test $opt_disabled_builtins = yes; then
2606 cat >>confdefs.h <<\_ACEOF
2607 @%:@define DISABLED_BUILTINS 1
2611 if test $opt_command_timing = yes; then
2612 cat >>confdefs.h <<\_ACEOF
2613 @%:@define COMMAND_TIMING 1
2617 if test $opt_xpg_echo = yes ; then
2618 cat >>confdefs.h <<\_ACEOF
2619 @%:@define DEFAULT_ECHO_TO_XPG 1
2623 if test $opt_strict_posix = yes; then
2624 cat >>confdefs.h <<\_ACEOF
2625 @%:@define STRICT_POSIX 1
2629 if test $opt_extended_glob = yes ; then
2630 cat >>confdefs.h <<\_ACEOF
2631 @%:@define EXTENDED_GLOB 1
2635 if test $opt_extglob_default = yes; then
2636 cat >>confdefs.h <<\_ACEOF
2637 @%:@define EXTGLOB_DEFAULT 1
2641 cat >>confdefs.h <<\_ACEOF
2642 @%:@define EXTGLOB_DEFAULT 0
2646 if test $opt_cond_command = yes ; then
2647 cat >>confdefs.h <<\_ACEOF
2648 @%:@define COND_COMMAND 1
2652 if test $opt_cond_regexp = yes ; then
2653 cat >>confdefs.h <<\_ACEOF
2654 @%:@define COND_REGEXP 1
2658 if test $opt_coproc = yes; then
2659 cat >>confdefs.h <<\_ACEOF
2660 @%:@define COPROCESS_SUPPORT 1
2664 if test $opt_arith_for_command = yes; then
2665 cat >>confdefs.h <<\_ACEOF
2666 @%:@define ARITH_FOR_COMMAND 1
2670 if test $opt_net_redirs = yes; then
2671 cat >>confdefs.h <<\_ACEOF
2672 @%:@define NETWORK_REDIRECTIONS 1
2676 if test $opt_progcomp = yes; then
2677 cat >>confdefs.h <<\_ACEOF
2678 @%:@define PROGRAMMABLE_COMPLETION 1
2682 if test $opt_multibyte = no; then
2683 cat >>confdefs.h <<\_ACEOF
2684 @%:@define NO_MULTIBYTE_SUPPORT 1
2688 if test $opt_debugger = yes; then
2689 cat >>confdefs.h <<\_ACEOF
2690 @%:@define DEBUGGER 1
2694 if test $opt_casemod_attrs = yes; then
2695 cat >>confdefs.h <<\_ACEOF
2696 @%:@define CASEMOD_ATTRS 1
2700 if test $opt_casemod_expansions = yes; then
2701 cat >>confdefs.h <<\_ACEOF
2702 @%:@define CASEMOD_EXPANSIONS 1
2707 if test $opt_memscramble = yes; then
2708 cat >>confdefs.h <<\_ACEOF
2709 @%:@define MEMSCRAMBLE 1
2714 if test "$opt_minimal_config" = yes; then
2715 TESTSCRIPT=run-minimal
2720 HELPDIR= HELPDIRDEFINE= HELPINSTALL=
2721 if test "$opt_separate_help" != no; then
2722 if test "$opt_separate_help" = "yes" ; then
2723 HELPDIR='${datadir}/bash'
2725 HELPDIR=$opt_separate_help
2727 HELPDIRDEFINE='-H ${HELPDIR}'
2728 HELPINSTALL='install-help'
2731 if test "$opt_single_longdoc_strings" != "yes"; then
2753 echo "Beginning configuration for bash-$BASHVERS-$RELSTATUS for ${host_cpu}-${host_vendor}-${host_os}"
2757 ac_cpp='$CPP $CPPFLAGS'
2758 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2759 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2760 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2761 if test -n "$ac_tool_prefix"; then
2762 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2763 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2764 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2765 $as_echo_n "checking for $ac_word... " >&6; }
2766 if test "${ac_cv_prog_CC+set}" = set; then
2767 $as_echo_n "(cached) " >&6
2769 if test -n "$CC"; then
2770 ac_cv_prog_CC="$CC" # Let the user override the test.
2772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2776 test -z "$as_dir" && as_dir=.
2777 for ac_exec_ext in '' $ac_executable_extensions; do
2778 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2779 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2780 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2790 if test -n "$CC"; then
2791 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2792 $as_echo "$CC" >&6; }
2794 { $as_echo "$as_me:$LINENO: result: no" >&5
2795 $as_echo "no" >&6; }
2800 if test -z "$ac_cv_prog_CC"; then
2802 # Extract the first word of "gcc", so it can be a program name with args.
2803 set dummy gcc; ac_word=$2
2804 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2805 $as_echo_n "checking for $ac_word... " >&6; }
2806 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2807 $as_echo_n "(cached) " >&6
2809 if test -n "$ac_ct_CC"; then
2810 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2816 test -z "$as_dir" && as_dir=.
2817 for ac_exec_ext in '' $ac_executable_extensions; do
2818 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2819 ac_cv_prog_ac_ct_CC="gcc"
2820 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2829 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2830 if test -n "$ac_ct_CC"; then
2831 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2832 $as_echo "$ac_ct_CC" >&6; }
2834 { $as_echo "$as_me:$LINENO: result: no" >&5
2835 $as_echo "no" >&6; }
2838 if test "x$ac_ct_CC" = x; then
2841 case $cross_compiling:$ac_tool_warned in
2843 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2844 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2845 ac_tool_warned=yes ;;
2853 if test -z "$CC"; then
2854 if test -n "$ac_tool_prefix"; then
2855 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2856 set dummy ${ac_tool_prefix}cc; ac_word=$2
2857 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2858 $as_echo_n "checking for $ac_word... " >&6; }
2859 if test "${ac_cv_prog_CC+set}" = set; then
2860 $as_echo_n "(cached) " >&6
2862 if test -n "$CC"; then
2863 ac_cv_prog_CC="$CC" # Let the user override the test.
2865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2869 test -z "$as_dir" && as_dir=.
2870 for ac_exec_ext in '' $ac_executable_extensions; do
2871 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2872 ac_cv_prog_CC="${ac_tool_prefix}cc"
2873 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2883 if test -n "$CC"; then
2884 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2885 $as_echo "$CC" >&6; }
2887 { $as_echo "$as_me:$LINENO: result: no" >&5
2888 $as_echo "no" >&6; }
2894 if test -z "$CC"; then
2895 # Extract the first word of "cc", so it can be a program name with args.
2896 set dummy cc; ac_word=$2
2897 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2898 $as_echo_n "checking for $ac_word... " >&6; }
2899 if test "${ac_cv_prog_CC+set}" = set; then
2900 $as_echo_n "(cached) " >&6
2902 if test -n "$CC"; then
2903 ac_cv_prog_CC="$CC" # Let the user override the test.
2906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2910 test -z "$as_dir" && as_dir=.
2911 for ac_exec_ext in '' $ac_executable_extensions; do
2912 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2913 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2914 ac_prog_rejected=yes
2918 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2925 if test $ac_prog_rejected = yes; then
2926 # We found a bogon in the path, so make sure we never use it.
2927 set dummy $ac_cv_prog_CC
2929 if test $@%:@ != 0; then
2930 # We chose a different compiler from the bogus one.
2931 # However, it has the same basename, so the bogon will be chosen
2932 # first if we set CC to just the basename; use the full file name.
2934 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2940 if test -n "$CC"; then
2941 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2942 $as_echo "$CC" >&6; }
2944 { $as_echo "$as_me:$LINENO: result: no" >&5
2945 $as_echo "no" >&6; }
2950 if test -z "$CC"; then
2951 if test -n "$ac_tool_prefix"; then
2952 for ac_prog in cl.exe
2954 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2955 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2956 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2957 $as_echo_n "checking for $ac_word... " >&6; }
2958 if test "${ac_cv_prog_CC+set}" = set; then
2959 $as_echo_n "(cached) " >&6
2961 if test -n "$CC"; then
2962 ac_cv_prog_CC="$CC" # Let the user override the test.
2964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2968 test -z "$as_dir" && as_dir=.
2969 for ac_exec_ext in '' $ac_executable_extensions; do
2970 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2971 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2972 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2982 if test -n "$CC"; then
2983 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2984 $as_echo "$CC" >&6; }
2986 { $as_echo "$as_me:$LINENO: result: no" >&5
2987 $as_echo "no" >&6; }
2991 test -n "$CC" && break
2994 if test -z "$CC"; then
2996 for ac_prog in cl.exe
2998 # Extract the first word of "$ac_prog", so it can be a program name with args.
2999 set dummy $ac_prog; ac_word=$2
3000 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3001 $as_echo_n "checking for $ac_word... " >&6; }
3002 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3003 $as_echo_n "(cached) " >&6
3005 if test -n "$ac_ct_CC"; then
3006 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3012 test -z "$as_dir" && as_dir=.
3013 for ac_exec_ext in '' $ac_executable_extensions; do
3014 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3015 ac_cv_prog_ac_ct_CC="$ac_prog"
3016 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3025 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3026 if test -n "$ac_ct_CC"; then
3027 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3028 $as_echo "$ac_ct_CC" >&6; }
3030 { $as_echo "$as_me:$LINENO: result: no" >&5
3031 $as_echo "no" >&6; }
3035 test -n "$ac_ct_CC" && break
3038 if test "x$ac_ct_CC" = x; then
3041 case $cross_compiling:$ac_tool_warned in
3043 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3044 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3045 ac_tool_warned=yes ;;
3054 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3055 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3056 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3057 See \`config.log' for more details." >&5
3058 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3059 See \`config.log' for more details." >&2;}
3060 { (exit 1); exit 1; }; }; }
3062 # Provide some information about the compiler.
3063 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3066 { (ac_try="$ac_compiler --version >&5"
3068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3069 *) ac_try_echo=$ac_try;;
3071 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3072 $as_echo "$ac_try_echo") >&5
3073 (eval "$ac_compiler --version >&5") 2>&5
3075 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3076 (exit $ac_status); }
3077 { (ac_try="$ac_compiler -v >&5"
3079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3080 *) ac_try_echo=$ac_try;;
3082 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3083 $as_echo "$ac_try_echo") >&5
3084 (eval "$ac_compiler -v >&5") 2>&5
3086 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3087 (exit $ac_status); }
3088 { (ac_try="$ac_compiler -V >&5"
3090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3091 *) ac_try_echo=$ac_try;;
3093 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3094 $as_echo "$ac_try_echo") >&5
3095 (eval "$ac_compiler -V >&5") 2>&5
3097 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3098 (exit $ac_status); }
3100 cat >conftest.$ac_ext <<_ACEOF
3103 cat confdefs.h >>conftest.$ac_ext
3104 cat >>conftest.$ac_ext <<_ACEOF
3105 /* end confdefs.h. */
3115 ac_clean_files_save=$ac_clean_files
3116 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3117 # Try to create an executable without -o first, disregard a.out.
3118 # It will help us diagnose broken compilers, and finding out an intuition
3120 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3121 $as_echo_n "checking for C compiler default output file name... " >&6; }
3122 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3124 # The possible output files:
3125 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3128 for ac_file in $ac_files
3131 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3132 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3137 if { (ac_try="$ac_link_default"
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_link_default") 2>&5
3146 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3147 (exit $ac_status); }; then
3148 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3149 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3150 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3151 # so that the user can short-circuit this test for compilers unknown to
3153 for ac_file in $ac_files ''
3155 test -f "$ac_file" || continue
3157 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3160 # We found the default executable, but exeext='' is most
3164 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3166 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3168 # We set ac_cv_exeext here because the later test for it is not
3169 # safe: cross compilers may not add the suffix if given an `-o'
3170 # argument, so we may need to know it at that point already.
3171 # Even if this section looks crufty: it has the advantage of
3178 test "$ac_cv_exeext" = no && ac_cv_exeext=
3184 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3185 $as_echo "$ac_file" >&6; }
3186 if test -z "$ac_file"; then
3187 $as_echo "$as_me: failed program was:" >&5
3188 sed 's/^/| /' conftest.$ac_ext >&5
3190 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3191 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3192 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3193 See \`config.log' for more details." >&5
3194 $as_echo "$as_me: error: C compiler cannot create executables
3195 See \`config.log' for more details." >&2;}
3196 { (exit 77); exit 77; }; }; }
3199 ac_exeext=$ac_cv_exeext
3201 # Check that the compiler produces executables we can run. If not, either
3202 # the compiler is broken, or we cross compile.
3203 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3204 $as_echo_n "checking whether the C compiler works... " >&6; }
3205 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3206 # If not cross compiling, check that we can run a simple program.
3207 if test "$cross_compiling" != yes; then
3208 if { ac_try='./$ac_file'
3209 { (case "(($ac_try" in
3210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3211 *) ac_try_echo=$ac_try;;
3213 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3214 $as_echo "$ac_try_echo") >&5
3215 (eval "$ac_try") 2>&5
3217 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3218 (exit $ac_status); }; }; then
3221 if test "$cross_compiling" = maybe; then
3224 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3225 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3226 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3227 If you meant to cross compile, use \`--host'.
3228 See \`config.log' for more details." >&5
3229 $as_echo "$as_me: error: cannot run C compiled programs.
3230 If you meant to cross compile, use \`--host'.
3231 See \`config.log' for more details." >&2;}
3232 { (exit 1); exit 1; }; }; }
3236 { $as_echo "$as_me:$LINENO: result: yes" >&5
3237 $as_echo "yes" >&6; }
3239 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3240 ac_clean_files=$ac_clean_files_save
3241 # Check that the compiler produces executables we can run. If not, either
3242 # the compiler is broken, or we cross compile.
3243 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3244 $as_echo_n "checking whether we are cross compiling... " >&6; }
3245 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3246 $as_echo "$cross_compiling" >&6; }
3248 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3249 $as_echo_n "checking for suffix of executables... " >&6; }
3250 if { (ac_try="$ac_link"
3252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3253 *) ac_try_echo=$ac_try;;
3255 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3256 $as_echo "$ac_try_echo") >&5
3257 (eval "$ac_link") 2>&5
3259 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3260 (exit $ac_status); }; then
3261 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3262 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3263 # work properly (i.e., refer to `conftest.exe'), while it won't with
3265 for ac_file in conftest.exe conftest conftest.*; do
3266 test -f "$ac_file" || continue
3268 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3269 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3275 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3276 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3277 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3278 See \`config.log' for more details." >&5
3279 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3280 See \`config.log' for more details." >&2;}
3281 { (exit 1); exit 1; }; }; }
3284 rm -f conftest$ac_cv_exeext
3285 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3286 $as_echo "$ac_cv_exeext" >&6; }
3288 rm -f conftest.$ac_ext
3289 EXEEXT=$ac_cv_exeext
3291 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3292 $as_echo_n "checking for suffix of object files... " >&6; }
3293 if test "${ac_cv_objext+set}" = set; then
3294 $as_echo_n "(cached) " >&6
3296 cat >conftest.$ac_ext <<_ACEOF
3299 cat confdefs.h >>conftest.$ac_ext
3300 cat >>conftest.$ac_ext <<_ACEOF
3301 /* end confdefs.h. */
3311 rm -f conftest.o conftest.obj
3312 if { (ac_try="$ac_compile"
3314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3315 *) ac_try_echo=$ac_try;;
3317 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3318 $as_echo "$ac_try_echo") >&5
3319 (eval "$ac_compile") 2>&5
3321 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3322 (exit $ac_status); }; then
3323 for ac_file in conftest.o conftest.obj conftest.*; do
3324 test -f "$ac_file" || continue;
3326 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3327 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3332 $as_echo "$as_me: failed program was:" >&5
3333 sed 's/^/| /' conftest.$ac_ext >&5
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 object files: cannot compile
3338 See \`config.log' for more details." >&5
3339 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3340 See \`config.log' for more details." >&2;}
3341 { (exit 1); exit 1; }; }; }
3344 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3346 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3347 $as_echo "$ac_cv_objext" >&6; }
3348 OBJEXT=$ac_cv_objext
3350 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3351 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3352 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3353 $as_echo_n "(cached) " >&6
3355 cat >conftest.$ac_ext <<_ACEOF
3358 cat confdefs.h >>conftest.$ac_ext
3359 cat >>conftest.$ac_ext <<_ACEOF
3360 /* end confdefs.h. */
3373 rm -f conftest.$ac_objext
3374 if { (ac_try="$ac_compile"
3376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3377 *) ac_try_echo=$ac_try;;
3379 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3380 $as_echo "$ac_try_echo") >&5
3381 (eval "$ac_compile") 2>conftest.er1
3383 grep -v '^ *+' conftest.er1 >conftest.err
3385 cat conftest.err >&5
3386 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3387 (exit $ac_status); } && {
3388 test -z "$ac_c_werror_flag" ||
3389 test ! -s conftest.err
3390 } && test -s conftest.$ac_objext; then
3393 $as_echo "$as_me: failed program was:" >&5
3394 sed 's/^/| /' conftest.$ac_ext >&5
3399 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3400 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3403 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3404 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3405 if test $ac_compiler_gnu = yes; then
3410 ac_test_CFLAGS=${CFLAGS+set}
3411 ac_save_CFLAGS=$CFLAGS
3412 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3413 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3414 if test "${ac_cv_prog_cc_g+set}" = set; then
3415 $as_echo_n "(cached) " >&6
3417 ac_save_c_werror_flag=$ac_c_werror_flag
3418 ac_c_werror_flag=yes
3421 cat >conftest.$ac_ext <<_ACEOF
3424 cat confdefs.h >>conftest.$ac_ext
3425 cat >>conftest.$ac_ext <<_ACEOF
3426 /* end confdefs.h. */
3436 rm -f conftest.$ac_objext
3437 if { (ac_try="$ac_compile"
3439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3440 *) ac_try_echo=$ac_try;;
3442 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3443 $as_echo "$ac_try_echo") >&5
3444 (eval "$ac_compile") 2>conftest.er1
3446 grep -v '^ *+' conftest.er1 >conftest.err
3448 cat conftest.err >&5
3449 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3450 (exit $ac_status); } && {
3451 test -z "$ac_c_werror_flag" ||
3452 test ! -s conftest.err
3453 } && test -s conftest.$ac_objext; then
3456 $as_echo "$as_me: failed program was:" >&5
3457 sed 's/^/| /' conftest.$ac_ext >&5
3460 cat >conftest.$ac_ext <<_ACEOF
3463 cat confdefs.h >>conftest.$ac_ext
3464 cat >>conftest.$ac_ext <<_ACEOF
3465 /* end confdefs.h. */
3475 rm -f conftest.$ac_objext
3476 if { (ac_try="$ac_compile"
3478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3479 *) ac_try_echo=$ac_try;;
3481 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3482 $as_echo "$ac_try_echo") >&5
3483 (eval "$ac_compile") 2>conftest.er1
3485 grep -v '^ *+' conftest.er1 >conftest.err
3487 cat conftest.err >&5
3488 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3489 (exit $ac_status); } && {
3490 test -z "$ac_c_werror_flag" ||
3491 test ! -s conftest.err
3492 } && test -s conftest.$ac_objext; then
3495 $as_echo "$as_me: failed program was:" >&5
3496 sed 's/^/| /' conftest.$ac_ext >&5
3498 ac_c_werror_flag=$ac_save_c_werror_flag
3500 cat >conftest.$ac_ext <<_ACEOF
3503 cat confdefs.h >>conftest.$ac_ext
3504 cat >>conftest.$ac_ext <<_ACEOF
3505 /* end confdefs.h. */
3515 rm -f conftest.$ac_objext
3516 if { (ac_try="$ac_compile"
3518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3519 *) ac_try_echo=$ac_try;;
3521 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3522 $as_echo "$ac_try_echo") >&5
3523 (eval "$ac_compile") 2>conftest.er1
3525 grep -v '^ *+' conftest.er1 >conftest.err
3527 cat conftest.err >&5
3528 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3529 (exit $ac_status); } && {
3530 test -z "$ac_c_werror_flag" ||
3531 test ! -s conftest.err
3532 } && test -s conftest.$ac_objext; then
3535 $as_echo "$as_me: failed program was:" >&5
3536 sed 's/^/| /' conftest.$ac_ext >&5
3541 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3544 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3547 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3548 ac_c_werror_flag=$ac_save_c_werror_flag
3550 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3551 $as_echo "$ac_cv_prog_cc_g" >&6; }
3552 if test "$ac_test_CFLAGS" = set; then
3553 CFLAGS=$ac_save_CFLAGS
3554 elif test $ac_cv_prog_cc_g = yes; then
3555 if test "$GCC" = yes; then
3561 if test "$GCC" = yes; then
3567 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3568 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3569 if test "${ac_cv_prog_cc_c89+set}" = set; then
3570 $as_echo_n "(cached) " >&6
3572 ac_cv_prog_cc_c89=no
3574 cat >conftest.$ac_ext <<_ACEOF
3577 cat confdefs.h >>conftest.$ac_ext
3578 cat >>conftest.$ac_ext <<_ACEOF
3579 /* end confdefs.h. */
3582 #include <sys/types.h>
3583 #include <sys/stat.h>
3584 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3585 struct buf { int x; };
3586 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3587 static char *e (p, i)
3593 static char *f (char * (*g) (char **, int), char **p, ...)
3598 s = g (p, va_arg (v,int));
3603 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3604 function prototypes and stuff, but not '\xHH' hex character constants.
3605 These don't provoke an error unfortunately, instead are silently treated
3606 as 'x'. The following induces an error, until -std is added to get
3607 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3608 array size at least. It's necessary to write '\x00'==0 to get something
3609 that's true only with -std. */
3610 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3612 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3613 inside strings and character constants. */
3615 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3617 int test (int i, double x);
3618 struct s1 {int (*f) (int a);};
3619 struct s2 {int (*f) (double a);};
3620 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3626 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3631 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3632 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3634 CC="$ac_save_CC $ac_arg"
3635 rm -f conftest.$ac_objext
3636 if { (ac_try="$ac_compile"
3638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3639 *) ac_try_echo=$ac_try;;
3641 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3642 $as_echo "$ac_try_echo") >&5
3643 (eval "$ac_compile") 2>conftest.er1
3645 grep -v '^ *+' conftest.er1 >conftest.err
3647 cat conftest.err >&5
3648 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3649 (exit $ac_status); } && {
3650 test -z "$ac_c_werror_flag" ||
3651 test ! -s conftest.err
3652 } && test -s conftest.$ac_objext; then
3653 ac_cv_prog_cc_c89=$ac_arg
3655 $as_echo "$as_me: failed program was:" >&5
3656 sed 's/^/| /' conftest.$ac_ext >&5
3661 rm -f core conftest.err conftest.$ac_objext
3662 test "x$ac_cv_prog_cc_c89" != "xno" && break
3664 rm -f conftest.$ac_ext
3669 case "x$ac_cv_prog_cc_c89" in
3671 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3672 $as_echo "none needed" >&6; } ;;
3674 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3675 $as_echo "unsupported" >&6; } ;;
3677 CC="$CC $ac_cv_prog_cc_c89"
3678 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3679 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3684 ac_cpp='$CPP $CPPFLAGS'
3685 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3686 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3687 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3692 { $as_echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
3693 $as_echo_n "checking for strerror in -lcposix... " >&6; }
3694 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
3695 $as_echo_n "(cached) " >&6
3697 ac_check_lib_save_LIBS=$LIBS
3698 LIBS="-lcposix $LIBS"
3699 cat >conftest.$ac_ext <<_ACEOF
3702 cat confdefs.h >>conftest.$ac_ext
3703 cat >>conftest.$ac_ext <<_ACEOF
3704 /* end confdefs.h. */
3706 /* Override any GCC internal prototype to avoid an error.
3707 Use char because int might match the return type of a GCC
3708 builtin and then its argument prototype would still apply. */
3721 rm -f conftest.$ac_objext conftest$ac_exeext
3722 if { (ac_try="$ac_link"
3724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3725 *) ac_try_echo=$ac_try;;
3727 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3728 $as_echo "$ac_try_echo") >&5
3729 (eval "$ac_link") 2>conftest.er1
3731 grep -v '^ *+' conftest.er1 >conftest.err
3733 cat conftest.err >&5
3734 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3735 (exit $ac_status); } && {
3736 test -z "$ac_c_werror_flag" ||
3737 test ! -s conftest.err
3738 } && test -s conftest$ac_exeext && {
3739 test "$cross_compiling" = yes ||
3740 $as_test_x conftest$ac_exeext
3742 ac_cv_lib_cposix_strerror=yes
3744 $as_echo "$as_me: failed program was:" >&5
3745 sed 's/^/| /' conftest.$ac_ext >&5
3747 ac_cv_lib_cposix_strerror=no
3750 rm -rf conftest.dSYM
3751 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3752 conftest$ac_exeext conftest.$ac_ext
3753 LIBS=$ac_check_lib_save_LIBS
3755 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
3756 $as_echo "$ac_cv_lib_cposix_strerror" >&6; }
3757 if test "x$ac_cv_lib_cposix_strerror" = x""yes; then
3758 LIBS="$LIBS -lcposix"
3764 ac_cpp='$CPP $CPPFLAGS'
3765 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3766 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3767 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3768 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3769 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3770 # On Suns, sometimes $CPP names a directory.
3771 if test -n "$CPP" && test -d "$CPP"; then
3774 if test -z "$CPP"; then
3775 if test "${ac_cv_prog_CPP+set}" = set; then
3776 $as_echo_n "(cached) " >&6
3778 # Double quotes because CPP needs to be expanded
3779 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3782 for ac_c_preproc_warn_flag in '' yes
3784 # Use a header file that comes with gcc, so configuring glibc
3785 # with a fresh cross-compiler works.
3786 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3787 # <limits.h> exists even on freestanding compilers.
3788 # On the NeXT, cc -E runs the code through the compiler's parser,
3789 # not just through cpp. "Syntax error" is here to catch this case.
3790 cat >conftest.$ac_ext <<_ACEOF
3793 cat confdefs.h >>conftest.$ac_ext
3794 cat >>conftest.$ac_ext <<_ACEOF
3795 /* end confdefs.h. */
3797 @%:@ include <limits.h>
3799 @%:@ include <assert.h>
3803 if { (ac_try="$ac_cpp conftest.$ac_ext"
3805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3806 *) ac_try_echo=$ac_try;;
3808 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3809 $as_echo "$ac_try_echo") >&5
3810 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3812 grep -v '^ *+' conftest.er1 >conftest.err
3814 cat conftest.err >&5
3815 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3816 (exit $ac_status); } >/dev/null && {
3817 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3818 test ! -s conftest.err
3822 $as_echo "$as_me: failed program was:" >&5
3823 sed 's/^/| /' conftest.$ac_ext >&5
3825 # Broken: fails on valid input.
3829 rm -f conftest.err conftest.$ac_ext
3831 # OK, works on sane cases. Now check whether nonexistent headers
3832 # can be detected and how.
3833 cat >conftest.$ac_ext <<_ACEOF
3836 cat confdefs.h >>conftest.$ac_ext
3837 cat >>conftest.$ac_ext <<_ACEOF
3838 /* end confdefs.h. */
3839 @%:@include <ac_nonexistent.h>
3841 if { (ac_try="$ac_cpp conftest.$ac_ext"
3843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3844 *) ac_try_echo=$ac_try;;
3846 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3847 $as_echo "$ac_try_echo") >&5
3848 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3850 grep -v '^ *+' conftest.er1 >conftest.err
3852 cat conftest.err >&5
3853 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3854 (exit $ac_status); } >/dev/null && {
3855 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3856 test ! -s conftest.err
3858 # Broken: success on invalid input.
3861 $as_echo "$as_me: failed program was:" >&5
3862 sed 's/^/| /' conftest.$ac_ext >&5
3864 # Passes both tests.
3869 rm -f conftest.err conftest.$ac_ext
3872 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3873 rm -f conftest.err conftest.$ac_ext
3874 if $ac_preproc_ok; then
3886 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
3887 $as_echo "$CPP" >&6; }
3889 for ac_c_preproc_warn_flag in '' yes
3891 # Use a header file that comes with gcc, so configuring glibc
3892 # with a fresh cross-compiler works.
3893 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3894 # <limits.h> exists even on freestanding compilers.
3895 # On the NeXT, cc -E runs the code through the compiler's parser,
3896 # not just through cpp. "Syntax error" is here to catch this case.
3897 cat >conftest.$ac_ext <<_ACEOF
3900 cat confdefs.h >>conftest.$ac_ext
3901 cat >>conftest.$ac_ext <<_ACEOF
3902 /* end confdefs.h. */
3904 @%:@ include <limits.h>
3906 @%:@ include <assert.h>
3910 if { (ac_try="$ac_cpp conftest.$ac_ext"
3912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3913 *) ac_try_echo=$ac_try;;
3915 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3916 $as_echo "$ac_try_echo") >&5
3917 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3919 grep -v '^ *+' conftest.er1 >conftest.err
3921 cat conftest.err >&5
3922 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3923 (exit $ac_status); } >/dev/null && {
3924 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3925 test ! -s conftest.err
3929 $as_echo "$as_me: failed program was:" >&5
3930 sed 's/^/| /' conftest.$ac_ext >&5
3932 # Broken: fails on valid input.
3936 rm -f conftest.err conftest.$ac_ext
3938 # OK, works on sane cases. Now check whether nonexistent headers
3939 # can be detected and how.
3940 cat >conftest.$ac_ext <<_ACEOF
3943 cat confdefs.h >>conftest.$ac_ext
3944 cat >>conftest.$ac_ext <<_ACEOF
3945 /* end confdefs.h. */
3946 @%:@include <ac_nonexistent.h>
3948 if { (ac_try="$ac_cpp conftest.$ac_ext"
3950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3951 *) ac_try_echo=$ac_try;;
3953 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3954 $as_echo "$ac_try_echo") >&5
3955 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3957 grep -v '^ *+' conftest.er1 >conftest.err
3959 cat conftest.err >&5
3960 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3961 (exit $ac_status); } >/dev/null && {
3962 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3963 test ! -s conftest.err
3965 # Broken: success on invalid input.
3968 $as_echo "$as_me: failed program was:" >&5
3969 sed 's/^/| /' conftest.$ac_ext >&5
3971 # Passes both tests.
3976 rm -f conftest.err conftest.$ac_ext
3979 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3980 rm -f conftest.err conftest.$ac_ext
3981 if $ac_preproc_ok; then
3984 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3985 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3986 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3987 See \`config.log' for more details." >&5
3988 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3989 See \`config.log' for more details." >&2;}
3990 { (exit 1); exit 1; }; }; }
3994 ac_cpp='$CPP $CPPFLAGS'
3995 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3996 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3997 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4000 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4001 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4002 if test "${ac_cv_path_GREP+set}" = set; then
4003 $as_echo_n "(cached) " >&6
4005 if test -z "$GREP"; then
4006 ac_path_GREP_found=false
4007 # Loop through the user's path and test for each of PROGNAME-LIST
4008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4009 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4012 test -z "$as_dir" && as_dir=.
4013 for ac_prog in grep ggrep; do
4014 for ac_exec_ext in '' $ac_executable_extensions; do
4015 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4016 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4017 # Check for GNU ac_path_GREP and select it if it is found.
4018 # Check for GNU $ac_path_GREP
4019 case `"$ac_path_GREP" --version 2>&1` in
4021 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4024 $as_echo_n 0123456789 >"conftest.in"
4027 cat "conftest.in" "conftest.in" >"conftest.tmp"
4028 mv "conftest.tmp" "conftest.in"
4029 cp "conftest.in" "conftest.nl"
4030 $as_echo 'GREP' >> "conftest.nl"
4031 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4032 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4033 ac_count=`expr $ac_count + 1`
4034 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4035 # Best one so far, save it but keep looking for a better one
4036 ac_cv_path_GREP="$ac_path_GREP"
4037 ac_path_GREP_max=$ac_count
4039 # 10*(2^10) chars as input seems more than enough
4040 test $ac_count -gt 10 && break
4042 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4045 $ac_path_GREP_found && break 3
4050 if test -z "$ac_cv_path_GREP"; then
4051 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4052 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4053 { (exit 1); exit 1; }; }
4056 ac_cv_path_GREP=$GREP
4060 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4061 $as_echo "$ac_cv_path_GREP" >&6; }
4062 GREP="$ac_cv_path_GREP"
4065 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
4066 $as_echo_n "checking for egrep... " >&6; }
4067 if test "${ac_cv_path_EGREP+set}" = set; then
4068 $as_echo_n "(cached) " >&6
4070 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4071 then ac_cv_path_EGREP="$GREP -E"
4073 if test -z "$EGREP"; then
4074 ac_path_EGREP_found=false
4075 # Loop through the user's path and test for each of PROGNAME-LIST
4076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4077 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4080 test -z "$as_dir" && as_dir=.
4081 for ac_prog in egrep; do
4082 for ac_exec_ext in '' $ac_executable_extensions; do
4083 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4084 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4085 # Check for GNU ac_path_EGREP and select it if it is found.
4086 # Check for GNU $ac_path_EGREP
4087 case `"$ac_path_EGREP" --version 2>&1` in
4089 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4092 $as_echo_n 0123456789 >"conftest.in"
4095 cat "conftest.in" "conftest.in" >"conftest.tmp"
4096 mv "conftest.tmp" "conftest.in"
4097 cp "conftest.in" "conftest.nl"
4098 $as_echo 'EGREP' >> "conftest.nl"
4099 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4100 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4101 ac_count=`expr $ac_count + 1`
4102 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4103 # Best one so far, save it but keep looking for a better one
4104 ac_cv_path_EGREP="$ac_path_EGREP"
4105 ac_path_EGREP_max=$ac_count
4107 # 10*(2^10) chars as input seems more than enough
4108 test $ac_count -gt 10 && break
4110 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4113 $ac_path_EGREP_found && break 3
4118 if test -z "$ac_cv_path_EGREP"; then
4119 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4120 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4121 { (exit 1); exit 1; }; }
4124 ac_cv_path_EGREP=$EGREP
4129 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4130 $as_echo "$ac_cv_path_EGREP" >&6; }
4131 EGREP="$ac_cv_path_EGREP"
4134 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4135 $as_echo_n "checking for ANSI C header files... " >&6; }
4136 if test "${ac_cv_header_stdc+set}" = set; then
4137 $as_echo_n "(cached) " >&6
4139 cat >conftest.$ac_ext <<_ACEOF
4142 cat confdefs.h >>conftest.$ac_ext
4143 cat >>conftest.$ac_ext <<_ACEOF
4144 /* end confdefs.h. */
4158 rm -f conftest.$ac_objext
4159 if { (ac_try="$ac_compile"
4161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4162 *) ac_try_echo=$ac_try;;
4164 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4165 $as_echo "$ac_try_echo") >&5
4166 (eval "$ac_compile") 2>conftest.er1
4168 grep -v '^ *+' conftest.er1 >conftest.err
4170 cat conftest.err >&5
4171 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4172 (exit $ac_status); } && {
4173 test -z "$ac_c_werror_flag" ||
4174 test ! -s conftest.err
4175 } && test -s conftest.$ac_objext; then
4176 ac_cv_header_stdc=yes
4178 $as_echo "$as_me: failed program was:" >&5
4179 sed 's/^/| /' conftest.$ac_ext >&5
4181 ac_cv_header_stdc=no
4184 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4186 if test $ac_cv_header_stdc = yes; then
4187 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4188 cat >conftest.$ac_ext <<_ACEOF
4191 cat confdefs.h >>conftest.$ac_ext
4192 cat >>conftest.$ac_ext <<_ACEOF
4193 /* end confdefs.h. */
4197 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4198 $EGREP "memchr" >/dev/null 2>&1; then
4201 ac_cv_header_stdc=no
4207 if test $ac_cv_header_stdc = yes; then
4208 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4209 cat >conftest.$ac_ext <<_ACEOF
4212 cat confdefs.h >>conftest.$ac_ext
4213 cat >>conftest.$ac_ext <<_ACEOF
4214 /* end confdefs.h. */
4218 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4219 $EGREP "free" >/dev/null 2>&1; then
4222 ac_cv_header_stdc=no
4228 if test $ac_cv_header_stdc = yes; then
4229 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4230 if test "$cross_compiling" = yes; then
4233 cat >conftest.$ac_ext <<_ACEOF
4236 cat confdefs.h >>conftest.$ac_ext
4237 cat >>conftest.$ac_ext <<_ACEOF
4238 /* end confdefs.h. */
4241 #if ((' ' & 0x0FF) == 0x020)
4242 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4243 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4245 # define ISLOWER(c) \
4246 (('a' <= (c) && (c) <= 'i') \
4247 || ('j' <= (c) && (c) <= 'r') \
4248 || ('s' <= (c) && (c) <= 'z'))
4249 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4252 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4257 for (i = 0; i < 256; i++)
4258 if (XOR (islower (i), ISLOWER (i))
4259 || toupper (i) != TOUPPER (i))
4264 rm -f conftest$ac_exeext
4265 if { (ac_try="$ac_link"
4267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4268 *) ac_try_echo=$ac_try;;
4270 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4271 $as_echo "$ac_try_echo") >&5
4272 (eval "$ac_link") 2>&5
4274 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4275 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4276 { (case "(($ac_try" in
4277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4278 *) ac_try_echo=$ac_try;;
4280 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4281 $as_echo "$ac_try_echo") >&5
4282 (eval "$ac_try") 2>&5
4284 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4285 (exit $ac_status); }; }; then
4288 $as_echo "$as_me: program exited with status $ac_status" >&5
4289 $as_echo "$as_me: failed program was:" >&5
4290 sed 's/^/| /' conftest.$ac_ext >&5
4293 ac_cv_header_stdc=no
4295 rm -rf conftest.dSYM
4296 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4302 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4303 $as_echo "$ac_cv_header_stdc" >&6; }
4304 if test $ac_cv_header_stdc = yes; then
4306 cat >>confdefs.h <<\_ACEOF
4307 @%:@define STDC_HEADERS 1
4312 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4322 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4323 inttypes.h stdint.h unistd.h
4325 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4326 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4327 $as_echo_n "checking for $ac_header... " >&6; }
4328 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4329 $as_echo_n "(cached) " >&6
4331 cat >conftest.$ac_ext <<_ACEOF
4334 cat confdefs.h >>conftest.$ac_ext
4335 cat >>conftest.$ac_ext <<_ACEOF
4336 /* end confdefs.h. */
4337 $ac_includes_default
4339 @%:@include <$ac_header>
4341 rm -f conftest.$ac_objext
4342 if { (ac_try="$ac_compile"
4344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4345 *) ac_try_echo=$ac_try;;
4347 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4348 $as_echo "$ac_try_echo") >&5
4349 (eval "$ac_compile") 2>conftest.er1
4351 grep -v '^ *+' conftest.er1 >conftest.err
4353 cat conftest.err >&5
4354 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4355 (exit $ac_status); } && {
4356 test -z "$ac_c_werror_flag" ||
4357 test ! -s conftest.err
4358 } && test -s conftest.$ac_objext; then
4359 eval "$as_ac_Header=yes"
4361 $as_echo "$as_me: failed program was:" >&5
4362 sed 's/^/| /' conftest.$ac_ext >&5
4364 eval "$as_ac_Header=no"
4367 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4369 ac_res=`eval 'as_val=${'$as_ac_Header'}
4370 $as_echo "$as_val"'`
4371 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4372 $as_echo "$ac_res" >&6; }
4373 as_val=`eval 'as_val=${'$as_ac_Header'}
4374 $as_echo "$as_val"'`
4375 if test "x$as_val" = x""yes; then
4376 cat >>confdefs.h <<_ACEOF
4377 @%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4386 if test "${ac_cv_header_minix_config_h+set}" = set; then
4387 { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
4388 $as_echo_n "checking for minix/config.h... " >&6; }
4389 if test "${ac_cv_header_minix_config_h+set}" = set; then
4390 $as_echo_n "(cached) " >&6
4392 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4393 $as_echo "$ac_cv_header_minix_config_h" >&6; }
4395 # Is the header compilable?
4396 { $as_echo "$as_me:$LINENO: checking minix/config.h usability" >&5
4397 $as_echo_n "checking minix/config.h usability... " >&6; }
4398 cat >conftest.$ac_ext <<_ACEOF
4401 cat confdefs.h >>conftest.$ac_ext
4402 cat >>conftest.$ac_ext <<_ACEOF
4403 /* end confdefs.h. */
4404 $ac_includes_default
4405 @%:@include <minix/config.h>
4407 rm -f conftest.$ac_objext
4408 if { (ac_try="$ac_compile"
4410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4411 *) ac_try_echo=$ac_try;;
4413 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4414 $as_echo "$ac_try_echo") >&5
4415 (eval "$ac_compile") 2>conftest.er1
4417 grep -v '^ *+' conftest.er1 >conftest.err
4419 cat conftest.err >&5
4420 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4421 (exit $ac_status); } && {
4422 test -z "$ac_c_werror_flag" ||
4423 test ! -s conftest.err
4424 } && test -s conftest.$ac_objext; then
4425 ac_header_compiler=yes
4427 $as_echo "$as_me: failed program was:" >&5
4428 sed 's/^/| /' conftest.$ac_ext >&5
4430 ac_header_compiler=no
4433 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4434 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4435 $as_echo "$ac_header_compiler" >&6; }
4437 # Is the header present?
4438 { $as_echo "$as_me:$LINENO: checking minix/config.h presence" >&5
4439 $as_echo_n "checking minix/config.h presence... " >&6; }
4440 cat >conftest.$ac_ext <<_ACEOF
4443 cat confdefs.h >>conftest.$ac_ext
4444 cat >>conftest.$ac_ext <<_ACEOF
4445 /* end confdefs.h. */
4446 @%:@include <minix/config.h>
4448 if { (ac_try="$ac_cpp conftest.$ac_ext"
4450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4451 *) ac_try_echo=$ac_try;;
4453 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4454 $as_echo "$ac_try_echo") >&5
4455 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4457 grep -v '^ *+' conftest.er1 >conftest.err
4459 cat conftest.err >&5
4460 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4461 (exit $ac_status); } >/dev/null && {
4462 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4463 test ! -s conftest.err
4465 ac_header_preproc=yes
4467 $as_echo "$as_me: failed program was:" >&5
4468 sed 's/^/| /' conftest.$ac_ext >&5
4470 ac_header_preproc=no
4473 rm -f conftest.err conftest.$ac_ext
4474 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4475 $as_echo "$ac_header_preproc" >&6; }
4477 # So? What about this header?
4478 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4480 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
4481 $as_echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4482 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
4483 $as_echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
4484 ac_header_preproc=yes
4487 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
4488 $as_echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
4489 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
4490 $as_echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
4491 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
4492 $as_echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
4493 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
4494 $as_echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
4495 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
4496 $as_echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
4497 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
4498 $as_echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
4500 @%:@@%:@ ------------------------------- @%:@@%:@
4501 @%:@@%:@ Report this to bug-bash@gnu.org @%:@@%:@
4502 @%:@@%:@ ------------------------------- @%:@@%:@
4504 ) | sed "s/^/$as_me: WARNING: /" >&2
4507 { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
4508 $as_echo_n "checking for minix/config.h... " >&6; }
4509 if test "${ac_cv_header_minix_config_h+set}" = set; then
4510 $as_echo_n "(cached) " >&6
4512 ac_cv_header_minix_config_h=$ac_header_preproc
4514 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4515 $as_echo "$ac_cv_header_minix_config_h" >&6; }
4518 if test "x$ac_cv_header_minix_config_h" = x""yes; then
4525 if test "$MINIX" = yes; then
4527 cat >>confdefs.h <<\_ACEOF
4528 @%:@define _POSIX_SOURCE 1
4532 cat >>confdefs.h <<\_ACEOF
4533 @%:@define _POSIX_1_SOURCE 2
4537 cat >>confdefs.h <<\_ACEOF
4545 { $as_echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
4546 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4547 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
4548 $as_echo_n "(cached) " >&6
4550 cat >conftest.$ac_ext <<_ACEOF
4553 cat confdefs.h >>conftest.$ac_ext
4554 cat >>conftest.$ac_ext <<_ACEOF
4555 /* end confdefs.h. */
4557 # define __EXTENSIONS__ 1
4558 $ac_includes_default
4567 rm -f conftest.$ac_objext
4568 if { (ac_try="$ac_compile"
4570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4571 *) ac_try_echo=$ac_try;;
4573 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4574 $as_echo "$ac_try_echo") >&5
4575 (eval "$ac_compile") 2>conftest.er1
4577 grep -v '^ *+' conftest.er1 >conftest.err
4579 cat conftest.err >&5
4580 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4581 (exit $ac_status); } && {
4582 test -z "$ac_c_werror_flag" ||
4583 test ! -s conftest.err
4584 } && test -s conftest.$ac_objext; then
4585 ac_cv_safe_to_define___extensions__=yes
4587 $as_echo "$as_me: failed program was:" >&5
4588 sed 's/^/| /' conftest.$ac_ext >&5
4590 ac_cv_safe_to_define___extensions__=no
4593 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4595 { $as_echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
4596 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4597 test $ac_cv_safe_to_define___extensions__ = yes &&
4598 cat >>confdefs.h <<\_ACEOF
4599 @%:@define __EXTENSIONS__ 1
4602 cat >>confdefs.h <<\_ACEOF
4603 @%:@define _ALL_SOURCE 1
4606 cat >>confdefs.h <<\_ACEOF
4607 @%:@define _GNU_SOURCE 1
4610 cat >>confdefs.h <<\_ACEOF
4611 @%:@define _POSIX_PTHREAD_SEMANTICS 1
4614 cat >>confdefs.h <<\_ACEOF
4615 @%:@define _TANDEM_SOURCE 1
4620 @%:@ Check whether --enable-largefile was given.
4621 if test "${enable_largefile+set}" = set; then
4622 enableval=$enable_largefile;
4625 if test "$enable_largefile" != no; then
4627 { $as_echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
4628 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4629 if test "${ac_cv_sys_largefile_CC+set}" = set; then
4630 $as_echo_n "(cached) " >&6
4632 ac_cv_sys_largefile_CC=no
4633 if test "$GCC" != yes; then
4636 # IRIX 6.2 and later do not support large files by default,
4637 # so use the C compiler's -n32 option if that helps.
4638 cat >conftest.$ac_ext <<_ACEOF
4641 cat confdefs.h >>conftest.$ac_ext
4642 cat >>conftest.$ac_ext <<_ACEOF
4643 /* end confdefs.h. */
4644 @%:@include <sys/types.h>
4645 /* Check that off_t can represent 2**63 - 1 correctly.
4646 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4647 since some C++ compilers masquerading as C compilers
4648 incorrectly reject 9223372036854775807. */
4649 @%:@define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4650 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4651 && LARGE_OFF_T % 2147483647 == 1)
4661 rm -f conftest.$ac_objext
4662 if { (ac_try="$ac_compile"
4664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4665 *) ac_try_echo=$ac_try;;
4667 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4668 $as_echo "$ac_try_echo") >&5
4669 (eval "$ac_compile") 2>conftest.er1
4671 grep -v '^ *+' conftest.er1 >conftest.err
4673 cat conftest.err >&5
4674 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4675 (exit $ac_status); } && {
4676 test -z "$ac_c_werror_flag" ||
4677 test ! -s conftest.err
4678 } && test -s conftest.$ac_objext; then
4681 $as_echo "$as_me: failed program was:" >&5
4682 sed 's/^/| /' conftest.$ac_ext >&5
4687 rm -f core conftest.err conftest.$ac_objext
4689 rm -f conftest.$ac_objext
4690 if { (ac_try="$ac_compile"
4692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4693 *) ac_try_echo=$ac_try;;
4695 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4696 $as_echo "$ac_try_echo") >&5
4697 (eval "$ac_compile") 2>conftest.er1
4699 grep -v '^ *+' conftest.er1 >conftest.err
4701 cat conftest.err >&5
4702 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4703 (exit $ac_status); } && {
4704 test -z "$ac_c_werror_flag" ||
4705 test ! -s conftest.err
4706 } && test -s conftest.$ac_objext; then
4707 ac_cv_sys_largefile_CC=' -n32'; break
4709 $as_echo "$as_me: failed program was:" >&5
4710 sed 's/^/| /' conftest.$ac_ext >&5
4715 rm -f core conftest.err conftest.$ac_objext
4719 rm -f conftest.$ac_ext
4722 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
4723 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
4724 if test "$ac_cv_sys_largefile_CC" != no; then
4725 CC=$CC$ac_cv_sys_largefile_CC
4728 { $as_echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4729 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4730 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
4731 $as_echo_n "(cached) " >&6
4734 cat >conftest.$ac_ext <<_ACEOF
4737 cat confdefs.h >>conftest.$ac_ext
4738 cat >>conftest.$ac_ext <<_ACEOF
4739 /* end confdefs.h. */
4740 @%:@include <sys/types.h>
4741 /* Check that off_t can represent 2**63 - 1 correctly.
4742 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4743 since some C++ compilers masquerading as C compilers
4744 incorrectly reject 9223372036854775807. */
4745 @%:@define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4746 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4747 && LARGE_OFF_T % 2147483647 == 1)
4757 rm -f conftest.$ac_objext
4758 if { (ac_try="$ac_compile"
4760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4761 *) ac_try_echo=$ac_try;;
4763 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4764 $as_echo "$ac_try_echo") >&5
4765 (eval "$ac_compile") 2>conftest.er1
4767 grep -v '^ *+' conftest.er1 >conftest.err
4769 cat conftest.err >&5
4770 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4771 (exit $ac_status); } && {
4772 test -z "$ac_c_werror_flag" ||
4773 test ! -s conftest.err
4774 } && test -s conftest.$ac_objext; then
4775 ac_cv_sys_file_offset_bits=no; break
4777 $as_echo "$as_me: failed program was:" >&5
4778 sed 's/^/| /' conftest.$ac_ext >&5
4783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4784 cat >conftest.$ac_ext <<_ACEOF
4787 cat confdefs.h >>conftest.$ac_ext
4788 cat >>conftest.$ac_ext <<_ACEOF
4789 /* end confdefs.h. */
4790 @%:@define _FILE_OFFSET_BITS 64
4791 @%:@include <sys/types.h>
4792 /* Check that off_t can represent 2**63 - 1 correctly.
4793 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4794 since some C++ compilers masquerading as C compilers
4795 incorrectly reject 9223372036854775807. */
4796 @%:@define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4797 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4798 && LARGE_OFF_T % 2147483647 == 1)
4808 rm -f conftest.$ac_objext
4809 if { (ac_try="$ac_compile"
4811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4812 *) ac_try_echo=$ac_try;;
4814 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4815 $as_echo "$ac_try_echo") >&5
4816 (eval "$ac_compile") 2>conftest.er1
4818 grep -v '^ *+' conftest.er1 >conftest.err
4820 cat conftest.err >&5
4821 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4822 (exit $ac_status); } && {
4823 test -z "$ac_c_werror_flag" ||
4824 test ! -s conftest.err
4825 } && test -s conftest.$ac_objext; then
4826 ac_cv_sys_file_offset_bits=64; break
4828 $as_echo "$as_me: failed program was:" >&5
4829 sed 's/^/| /' conftest.$ac_ext >&5
4834 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4835 ac_cv_sys_file_offset_bits=unknown
4839 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
4840 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4841 case $ac_cv_sys_file_offset_bits in #(
4844 cat >>confdefs.h <<_ACEOF
4845 @%:@define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4850 if test $ac_cv_sys_file_offset_bits = unknown; then
4851 { $as_echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
4852 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
4853 if test "${ac_cv_sys_large_files+set}" = set; then
4854 $as_echo_n "(cached) " >&6
4857 cat >conftest.$ac_ext <<_ACEOF
4860 cat confdefs.h >>conftest.$ac_ext
4861 cat >>conftest.$ac_ext <<_ACEOF
4862 /* end confdefs.h. */
4863 @%:@include <sys/types.h>
4864 /* Check that off_t can represent 2**63 - 1 correctly.
4865 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4866 since some C++ compilers masquerading as C compilers
4867 incorrectly reject 9223372036854775807. */
4868 @%:@define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4869 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4870 && LARGE_OFF_T % 2147483647 == 1)
4880 rm -f conftest.$ac_objext
4881 if { (ac_try="$ac_compile"
4883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4884 *) ac_try_echo=$ac_try;;
4886 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4887 $as_echo "$ac_try_echo") >&5
4888 (eval "$ac_compile") 2>conftest.er1
4890 grep -v '^ *+' conftest.er1 >conftest.err
4892 cat conftest.err >&5
4893 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4894 (exit $ac_status); } && {
4895 test -z "$ac_c_werror_flag" ||
4896 test ! -s conftest.err
4897 } && test -s conftest.$ac_objext; then
4898 ac_cv_sys_large_files=no; break
4900 $as_echo "$as_me: failed program was:" >&5
4901 sed 's/^/| /' conftest.$ac_ext >&5
4906 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4907 cat >conftest.$ac_ext <<_ACEOF
4910 cat confdefs.h >>conftest.$ac_ext
4911 cat >>conftest.$ac_ext <<_ACEOF
4912 /* end confdefs.h. */
4913 @%:@define _LARGE_FILES 1
4914 @%:@include <sys/types.h>
4915 /* Check that off_t can represent 2**63 - 1 correctly.
4916 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4917 since some C++ compilers masquerading as C compilers
4918 incorrectly reject 9223372036854775807. */
4919 @%:@define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4920 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4921 && LARGE_OFF_T % 2147483647 == 1)
4931 rm -f conftest.$ac_objext
4932 if { (ac_try="$ac_compile"
4934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4935 *) ac_try_echo=$ac_try;;
4937 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4938 $as_echo "$ac_try_echo") >&5
4939 (eval "$ac_compile") 2>conftest.er1
4941 grep -v '^ *+' conftest.er1 >conftest.err
4943 cat conftest.err >&5
4944 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4945 (exit $ac_status); } && {
4946 test -z "$ac_c_werror_flag" ||
4947 test ! -s conftest.err
4948 } && test -s conftest.$ac_objext; then
4949 ac_cv_sys_large_files=1; break
4951 $as_echo "$as_me: failed program was:" >&5
4952 sed 's/^/| /' conftest.$ac_ext >&5
4957 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4958 ac_cv_sys_large_files=unknown
4962 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
4963 $as_echo "$ac_cv_sys_large_files" >&6; }
4964 case $ac_cv_sys_large_files in #(
4967 cat >>confdefs.h <<_ACEOF
4968 @%:@define _LARGE_FILES $ac_cv_sys_large_files
4979 SIGNAMES_H=lsignames.h
4984 if test "x$cross_compiling" = "xyes"; then
4987 cross_cache=${srcdir}/cross-build/cygwin32.cache
4990 cross_cache=${srcdir}/cross-build/cygwin32.cache
4993 cross_cache=${srcdir}/cross-build/x86-beos.cache
4995 *) echo "configure: cross-compiling for $host is not supported" >&2
4998 if test -n "${cross_cache}" && test -r "${cross_cache}"; then
4999 echo "loading cross-build cache file ${cross_cache}"
5003 SIGNAMES_O='signames.o'
5004 CROSS_COMPILE='-DCROSS_COMPILING'
5010 if test -z "$CC_FOR_BUILD"; then
5011 if test "x$cross_compiling" = "xno"; then
5012 CC_FOR_BUILD='$(CC)'
5020 test -z "$CFLAGS" && CFLAGS=-g auto_cflags=1
5022 test -n "$GCC" && test -n "$auto_cflags" && CFLAGS="$CFLAGS -O2"
5024 if test "$opt_profiling" = "yes"; then
5028 *) opt_static_link=yes ;;
5030 DEBUG= MALLOC_DEBUG=
5033 if test "$opt_static_link" = yes; then
5034 # if we're using gcc, add `-static' to LDFLAGS, except on Solaris >= 2
5035 if test -n "$GCC" || test "$ac_cv_c_compiler_gnu" = "yes"; then
5039 *) LDFLAGS="$LDFLAGS -static" ;; # XXX experimental
5044 if test "X$cross_compiling" = "Xno"; then
5045 CPPFLAGS_FOR_BUILD=${CPPFLAGS_FOR_BUILD-"$CPPFLAGS"}
5046 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-'$(LDFLAGS)'}
5048 CPPFLAGS_FOR_BUILD=${CPPFLAGS_FOR_BUILD-""}
5049 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-""}
5052 test -z "$CFLAGS_FOR_BUILD" && CFLAGS_FOR_BUILD="-g"
5063 if test $ac_cv_c_compiler_gnu = yes; then
5064 { $as_echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
5065 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
5066 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
5067 $as_echo_n "(cached) " >&6
5069 ac_pattern="Autoconf.*'x'"
5070 cat >conftest.$ac_ext <<_ACEOF
5073 cat confdefs.h >>conftest.$ac_ext
5074 cat >>conftest.$ac_ext <<_ACEOF
5075 /* end confdefs.h. */
5079 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5080 $EGREP "$ac_pattern" >/dev/null 2>&1; then
5081 ac_cv_prog_gcc_traditional=yes
5083 ac_cv_prog_gcc_traditional=no
5088 if test $ac_cv_prog_gcc_traditional = no; then
5089 cat >conftest.$ac_ext <<_ACEOF
5092 cat confdefs.h >>conftest.$ac_ext
5093 cat >>conftest.$ac_ext <<_ACEOF
5094 /* end confdefs.h. */
5098 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5099 $EGREP "$ac_pattern" >/dev/null 2>&1; then
5100 ac_cv_prog_gcc_traditional=yes
5106 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
5107 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
5108 if test $ac_cv_prog_gcc_traditional = yes; then
5109 CC="$CC -traditional"
5115 if test "$opt_readline" = yes && test "$opt_with_installed_readline" != "no"
5117 # If the user specified --with-installed-readline=PREFIX and PREFIX
5118 # is not `yes', set ac_cv_rl_prefix to PREFIX
5119 test $opt_with_installed_readline != "yes" && ac_cv_rl_prefix=$opt_with_installed_readline
5122 if test "X$bash_cv_termcap_lib" = "X"; then
5125 { $as_echo "$as_me:$LINENO: checking which library has the termcap functions" >&5
5126 $as_echo_n "checking which library has the termcap functions... " >&6; }
5129 if test "${bash_cv_termcap_lib+set}" = set; then
5130 $as_echo_n "(cached) " >&6
5132 { $as_echo "$as_me:$LINENO: checking for tgetent" >&5
5133 $as_echo_n "checking for tgetent... " >&6; }
5134 if test "${ac_cv_func_tgetent+set}" = set; then
5135 $as_echo_n "(cached) " >&6
5137 cat >conftest.$ac_ext <<_ACEOF
5140 cat confdefs.h >>conftest.$ac_ext
5141 cat >>conftest.$ac_ext <<_ACEOF
5142 /* end confdefs.h. */
5143 /* Define tgetent to an innocuous variant, in case <limits.h> declares tgetent.
5144 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5145 #define tgetent innocuous_tgetent
5147 /* System header to define __stub macros and hopefully few prototypes,
5148 which can conflict with char tgetent (); below.
5149 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5150 <limits.h> exists even on freestanding compilers. */
5153 # include <limits.h>
5155 # include <assert.h>
5160 /* Override any GCC internal prototype to avoid an error.
5161 Use char because int might match the return type of a GCC
5162 builtin and then its argument prototype would still apply. */
5167 /* The GNU C library defines this for functions which it implements
5168 to always fail with ENOSYS. Some functions are actually named
5169 something starting with __ and the normal name is an alias. */
5170 #if defined __stub_tgetent || defined __stub___tgetent
5182 rm -f conftest.$ac_objext conftest$ac_exeext
5183 if { (ac_try="$ac_link"
5185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5186 *) ac_try_echo=$ac_try;;
5188 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5189 $as_echo "$ac_try_echo") >&5
5190 (eval "$ac_link") 2>conftest.er1
5192 grep -v '^ *+' conftest.er1 >conftest.err
5194 cat conftest.err >&5
5195 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5196 (exit $ac_status); } && {
5197 test -z "$ac_c_werror_flag" ||
5198 test ! -s conftest.err
5199 } && test -s conftest$ac_exeext && {
5200 test "$cross_compiling" = yes ||
5201 $as_test_x conftest$ac_exeext
5203 ac_cv_func_tgetent=yes
5205 $as_echo "$as_me: failed program was:" >&5
5206 sed 's/^/| /' conftest.$ac_ext >&5
5208 ac_cv_func_tgetent=no
5211 rm -rf conftest.dSYM
5212 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5213 conftest$ac_exeext conftest.$ac_ext
5215 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_tgetent" >&5
5216 $as_echo "$ac_cv_func_tgetent" >&6; }
5217 if test "x$ac_cv_func_tgetent" = x""yes; then
5218 bash_cv_termcap_lib=libc
5220 { $as_echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
5221 $as_echo_n "checking for tgetent in -ltermcap... " >&6; }
5222 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
5223 $as_echo_n "(cached) " >&6
5225 ac_check_lib_save_LIBS=$LIBS
5226 LIBS="-ltermcap $LIBS"
5227 cat >conftest.$ac_ext <<_ACEOF
5230 cat confdefs.h >>conftest.$ac_ext
5231 cat >>conftest.$ac_ext <<_ACEOF
5232 /* end confdefs.h. */
5234 /* Override any GCC internal prototype to avoid an error.
5235 Use char because int might match the return type of a GCC
5236 builtin and then its argument prototype would still apply. */
5249 rm -f conftest.$ac_objext conftest$ac_exeext
5250 if { (ac_try="$ac_link"
5252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5253 *) ac_try_echo=$ac_try;;
5255 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5256 $as_echo "$ac_try_echo") >&5
5257 (eval "$ac_link") 2>conftest.er1
5259 grep -v '^ *+' conftest.er1 >conftest.err
5261 cat conftest.err >&5
5262 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5263 (exit $ac_status); } && {
5264 test -z "$ac_c_werror_flag" ||
5265 test ! -s conftest.err
5266 } && test -s conftest$ac_exeext && {
5267 test "$cross_compiling" = yes ||
5268 $as_test_x conftest$ac_exeext
5270 ac_cv_lib_termcap_tgetent=yes
5272 $as_echo "$as_me: failed program was:" >&5
5273 sed 's/^/| /' conftest.$ac_ext >&5
5275 ac_cv_lib_termcap_tgetent=no
5278 rm -rf conftest.dSYM
5279 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5280 conftest$ac_exeext conftest.$ac_ext
5281 LIBS=$ac_check_lib_save_LIBS
5283 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
5284 $as_echo "$ac_cv_lib_termcap_tgetent" >&6; }
5285 if test "x$ac_cv_lib_termcap_tgetent" = x""yes; then
5286 bash_cv_termcap_lib=libtermcap
5288 { $as_echo "$as_me:$LINENO: checking for tgetent in -ltinfo" >&5
5289 $as_echo_n "checking for tgetent in -ltinfo... " >&6; }
5290 if test "${ac_cv_lib_tinfo_tgetent+set}" = set; then
5291 $as_echo_n "(cached) " >&6
5293 ac_check_lib_save_LIBS=$LIBS
5294 LIBS="-ltinfo $LIBS"
5295 cat >conftest.$ac_ext <<_ACEOF
5298 cat confdefs.h >>conftest.$ac_ext
5299 cat >>conftest.$ac_ext <<_ACEOF
5300 /* end confdefs.h. */
5302 /* Override any GCC internal prototype to avoid an error.
5303 Use char because int might match the return type of a GCC
5304 builtin and then its argument prototype would still apply. */
5317 rm -f conftest.$ac_objext conftest$ac_exeext
5318 if { (ac_try="$ac_link"
5320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5321 *) ac_try_echo=$ac_try;;
5323 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5324 $as_echo "$ac_try_echo") >&5
5325 (eval "$ac_link") 2>conftest.er1
5327 grep -v '^ *+' conftest.er1 >conftest.err
5329 cat conftest.err >&5
5330 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5331 (exit $ac_status); } && {
5332 test -z "$ac_c_werror_flag" ||
5333 test ! -s conftest.err
5334 } && test -s conftest$ac_exeext && {
5335 test "$cross_compiling" = yes ||
5336 $as_test_x conftest$ac_exeext
5338 ac_cv_lib_tinfo_tgetent=yes
5340 $as_echo "$as_me: failed program was:" >&5
5341 sed 's/^/| /' conftest.$ac_ext >&5
5343 ac_cv_lib_tinfo_tgetent=no
5346 rm -rf conftest.dSYM
5347 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5348 conftest$ac_exeext conftest.$ac_ext
5349 LIBS=$ac_check_lib_save_LIBS
5351 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_tinfo_tgetent" >&5
5352 $as_echo "$ac_cv_lib_tinfo_tgetent" >&6; }
5353 if test "x$ac_cv_lib_tinfo_tgetent" = x""yes; then
5354 bash_cv_termcap_lib=libtinfo
5356 { $as_echo "$as_me:$LINENO: checking for tgetent in -lcurses" >&5
5357 $as_echo_n "checking for tgetent in -lcurses... " >&6; }
5358 if test "${ac_cv_lib_curses_tgetent+set}" = set; then
5359 $as_echo_n "(cached) " >&6
5361 ac_check_lib_save_LIBS=$LIBS
5362 LIBS="-lcurses $LIBS"
5363 cat >conftest.$ac_ext <<_ACEOF
5366 cat confdefs.h >>conftest.$ac_ext
5367 cat >>conftest.$ac_ext <<_ACEOF
5368 /* end confdefs.h. */
5370 /* Override any GCC internal prototype to avoid an error.
5371 Use char because int might match the return type of a GCC
5372 builtin and then its argument prototype would still apply. */
5385 rm -f conftest.$ac_objext conftest$ac_exeext
5386 if { (ac_try="$ac_link"
5388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5389 *) ac_try_echo=$ac_try;;
5391 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5392 $as_echo "$ac_try_echo") >&5
5393 (eval "$ac_link") 2>conftest.er1
5395 grep -v '^ *+' conftest.er1 >conftest.err
5397 cat conftest.err >&5
5398 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5399 (exit $ac_status); } && {
5400 test -z "$ac_c_werror_flag" ||
5401 test ! -s conftest.err
5402 } && test -s conftest$ac_exeext && {
5403 test "$cross_compiling" = yes ||
5404 $as_test_x conftest$ac_exeext
5406 ac_cv_lib_curses_tgetent=yes
5408 $as_echo "$as_me: failed program was:" >&5
5409 sed 's/^/| /' conftest.$ac_ext >&5
5411 ac_cv_lib_curses_tgetent=no
5414 rm -rf conftest.dSYM
5415 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5416 conftest$ac_exeext conftest.$ac_ext
5417 LIBS=$ac_check_lib_save_LIBS
5419 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_curses_tgetent" >&5
5420 $as_echo "$ac_cv_lib_curses_tgetent" >&6; }
5421 if test "x$ac_cv_lib_curses_tgetent" = x""yes; then
5422 bash_cv_termcap_lib=libcurses
5424 { $as_echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5
5425 $as_echo_n "checking for tgetent in -lncurses... " >&6; }
5426 if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then
5427 $as_echo_n "(cached) " >&6
5429 ac_check_lib_save_LIBS=$LIBS
5430 LIBS="-lncurses $LIBS"
5431 cat >conftest.$ac_ext <<_ACEOF
5434 cat confdefs.h >>conftest.$ac_ext
5435 cat >>conftest.$ac_ext <<_ACEOF
5436 /* end confdefs.h. */
5438 /* Override any GCC internal prototype to avoid an error.
5439 Use char because int might match the return type of a GCC
5440 builtin and then its argument prototype would still apply. */
5453 rm -f conftest.$ac_objext conftest$ac_exeext
5454 if { (ac_try="$ac_link"
5456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5457 *) ac_try_echo=$ac_try;;
5459 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5460 $as_echo "$ac_try_echo") >&5
5461 (eval "$ac_link") 2>conftest.er1
5463 grep -v '^ *+' conftest.er1 >conftest.err
5465 cat conftest.err >&5
5466 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5467 (exit $ac_status); } && {
5468 test -z "$ac_c_werror_flag" ||
5469 test ! -s conftest.err
5470 } && test -s conftest$ac_exeext && {
5471 test "$cross_compiling" = yes ||
5472 $as_test_x conftest$ac_exeext
5474 ac_cv_lib_ncurses_tgetent=yes
5476 $as_echo "$as_me: failed program was:" >&5
5477 sed 's/^/| /' conftest.$ac_ext >&5
5479 ac_cv_lib_ncurses_tgetent=no
5482 rm -rf conftest.dSYM
5483 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5484 conftest$ac_exeext conftest.$ac_ext
5485 LIBS=$ac_check_lib_save_LIBS
5487 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5
5488 $as_echo "$ac_cv_lib_ncurses_tgetent" >&6; }
5489 if test "x$ac_cv_lib_ncurses_tgetent" = x""yes; then
5490 bash_cv_termcap_lib=libncurses
5492 bash_cv_termcap_lib=gnutermcap
5505 if test "X$_bash_needmsg" = "Xyes"; then
5506 { $as_echo "$as_me:$LINENO: checking which library has the termcap functions" >&5
5507 $as_echo_n "checking which library has the termcap functions... " >&6; }
5509 { $as_echo "$as_me:$LINENO: result: using $bash_cv_termcap_lib" >&5
5510 $as_echo "using $bash_cv_termcap_lib" >&6; }
5511 if test $bash_cv_termcap_lib = gnutermcap && test -z "$prefer_curses"; then
5512 LDFLAGS="$LDFLAGS -L./lib/termcap"
5513 TERMCAP_LIB="./lib/termcap/libtermcap.a"
5514 TERMCAP_DEP="./lib/termcap/libtermcap.a"
5515 elif test $bash_cv_termcap_lib = libtermcap && test -z "$prefer_curses"; then
5516 TERMCAP_LIB=-ltermcap
5518 elif test $bash_cv_termcap_lib = libtinfo; then
5521 elif test $bash_cv_termcap_lib = libncurses; then
5522 TERMCAP_LIB=-lncurses
5524 elif test $bash_cv_termcap_lib = libc; then
5528 TERMCAP_LIB=-lcurses
5535 { $as_echo "$as_me:$LINENO: checking version of installed readline library" >&5
5536 $as_echo_n "checking version of installed readline library... " >&6; }
5538 # What a pain in the ass this is.
5540 # save cpp and ld options
5541 _save_CFLAGS="$CFLAGS"
5542 _save_LDFLAGS="$LDFLAGS"
5545 # Don't set ac_cv_rl_prefix if the caller has already assigned a value. This
5546 # allows the caller to do something like $_rl_prefix=$withval if the user
5547 # specifies --with-installed-readline=PREFIX as an argument to configure
5549 if test -z "$ac_cv_rl_prefix"; then
5550 test "x$prefix" = xNONE && ac_cv_rl_prefix=$ac_default_prefix || ac_cv_rl_prefix=${prefix}
5553 eval ac_cv_rl_includedir=${ac_cv_rl_prefix}/include
5554 eval ac_cv_rl_libdir=${ac_cv_rl_prefix}/lib
5556 LIBS="$LIBS -lreadline ${TERMCAP_LIB}"
5557 CFLAGS="$CFLAGS -I${ac_cv_rl_includedir}"
5558 LDFLAGS="$LDFLAGS -L${ac_cv_rl_libdir}"
5560 if test "${ac_cv_rl_version+set}" = set; then
5561 $as_echo_n "(cached) " >&6
5563 if test "$cross_compiling" = yes; then
5564 ac_cv_rl_version='4.2'
5566 cat >conftest.$ac_ext <<_ACEOF
5569 cat confdefs.h >>conftest.$ac_ext
5570 cat >>conftest.$ac_ext <<_ACEOF
5571 /* end confdefs.h. */
5574 #include <readline/readline.h>
5576 extern int rl_gnu_readline_p;
5581 fp = fopen("conftest.rlv", "w");
5584 if (rl_gnu_readline_p != 1)
5585 fprintf(fp, "0.0\n");
5587 fprintf(fp, "%s\n", rl_library_version ? rl_library_version : "0.0");
5593 rm -f conftest$ac_exeext
5594 if { (ac_try="$ac_link"
5596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5597 *) ac_try_echo=$ac_try;;
5599 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5600 $as_echo "$ac_try_echo") >&5
5601 (eval "$ac_link") 2>&5
5603 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5604 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5605 { (case "(($ac_try" in
5606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5607 *) ac_try_echo=$ac_try;;
5609 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5610 $as_echo "$ac_try_echo") >&5
5611 (eval "$ac_try") 2>&5
5613 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5614 (exit $ac_status); }; }; then
5615 ac_cv_rl_version=`cat conftest.rlv`
5617 $as_echo "$as_me: program exited with status $ac_status" >&5
5618 $as_echo "$as_me: failed program was:" >&5
5619 sed 's/^/| /' conftest.$ac_ext >&5
5622 ac_cv_rl_version='0.0'
5624 rm -rf conftest.dSYM
5625 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5632 CFLAGS="$_save_CFLAGS"
5633 LDFLAGS="$_save_LDFLAGS"
5640 case "$ac_cv_rl_version" in
5641 2*|3*|4*|5*|6*|7*|8*|9*)
5642 RL_MAJOR=`echo $ac_cv_rl_version | sed 's:\..*$::'`
5643 RL_MINOR=`echo $ac_cv_rl_version | sed -e 's:^.*\.::' -e 's:[a-zA-Z]*$::'`
5649 [0-9][0-9]) _RL_MAJOR=$RL_MAJOR ;;
5650 [0-9]) _RL_MAJOR=0$RL_MAJOR ;;
5656 [0-9][0-9]) _RL_MINOR=$RL_MINOR ;;
5657 [0-9]) _RL_MINOR=0$RL_MINOR ;;
5661 RL_VERSION="0x${_RL_MAJOR}${_RL_MINOR}"
5663 # Readline versions greater than 4.2 have these defines in readline.h
5665 if test $ac_cv_rl_version = '0.0' ; then
5666 { $as_echo "$as_me:$LINENO: WARNING: Could not test version of installed readline library." >&5
5667 $as_echo "$as_me: WARNING: Could not test version of installed readline library." >&2;}
5668 elif test $RL_MAJOR -gt 4 || { test $RL_MAJOR = 4 && test $RL_MINOR -gt 2 ; } ; then
5669 # set these for use by the caller
5670 RL_PREFIX=$ac_cv_rl_prefix
5671 RL_LIBDIR=$ac_cv_rl_libdir
5672 RL_INCLUDEDIR=$ac_cv_rl_includedir
5673 { $as_echo "$as_me:$LINENO: result: $ac_cv_rl_version" >&5
5674 $as_echo "$ac_cv_rl_version" >&6; }
5678 cat >>confdefs.h <<_ACEOF
5679 @%:@define RL_READLINE_VERSION $RL_VERSION
5683 cat >>confdefs.h <<_ACEOF
5684 @%:@define RL_VERSION_MAJOR $RL_MAJOR
5688 cat >>confdefs.h <<_ACEOF
5689 @%:@define RL_VERSION_MINOR $RL_MINOR
5697 # set these for use by the caller
5698 RL_PREFIX=$ac_cv_rl_prefix
5699 RL_LIBDIR=$ac_cv_rl_libdir
5700 RL_INCLUDEDIR=$ac_cv_rl_includedir
5702 { $as_echo "$as_me:$LINENO: result: $ac_cv_rl_version" >&5
5703 $as_echo "$ac_cv_rl_version" >&6; }
5708 case "$ac_cv_rl_version" in
5710 *) opt_with_installed_readline=no
5711 { $as_echo "$as_me:$LINENO: WARNING: installed readline library is too old to be linked with bash" >&5
5712 $as_echo "$as_me: WARNING: installed readline library is too old to be linked with bash" >&2;}
5713 { $as_echo "$as_me:$LINENO: WARNING: using private bash version" >&5
5714 $as_echo "$as_me: WARNING: using private bash version" >&2;}
5720 if test $opt_readline = yes; then
5721 cat >>confdefs.h <<\_ACEOF
5722 @%:@define READLINE 1
5725 if test "$opt_with_installed_readline" != "no" ; then
5726 case "$opt_with_installed_readline" in
5728 *) case "$RL_INCLUDEDIR" in
5730 *) RL_INCLUDE='-I${RL_INCLUDEDIR}' ;;
5735 READLINE_LIB=-lreadline
5736 # section for OS versions that don't allow unresolved symbols
5737 # to be compiled into dynamic libraries.
5739 cygwin*) TILDE_LIB= ;;
5742 RL_LIBDIR='$(dot)/$(LIBSUBDIR)/readline'
5743 READLINE_DEP='$(READLINE_LIBRARY)'
5744 # section for OS versions that ship an older/broken version of
5745 # readline as a standard dynamic library and don't allow a
5746 # static version specified as -llibname to override the
5748 case "${host_os}" in
5749 darwin[89]*|darwin10*) READLINE_LIB='${READLINE_LIBRARY}' ;;
5750 *) READLINE_LIB=-lreadline ;;
5754 RL_LIBDIR='$(dot)/$(LIBSUBDIR)/readline'
5755 READLINE_LIB= READLINE_DEP=
5757 if test $opt_history = yes || test $opt_bang_history = yes; then
5758 if test $opt_history = yes; then
5759 cat >>confdefs.h <<\_ACEOF
5760 @%:@define HISTORY 1
5764 if test $opt_bang_history = yes; then
5765 cat >>confdefs.h <<\_ACEOF
5766 @%:@define BANG_HISTORY 1
5770 if test "$opt_with_installed_readline" != "no"; then
5771 HIST_LIBDIR=$RL_LIBDIR
5773 HISTORY_LIB=-lhistory
5774 case "$opt_with_installed_readline" in
5776 *) case "$RL_INCLUDEDIR" in
5778 *) RL_INCLUDE='-I${RL_INCLUDEDIR}' ;;
5783 HIST_LIBDIR='$(dot)/$(LIBSUBDIR)/readline'
5784 HISTORY_DEP='$(HISTORY_LIBRARY)'
5785 # section for OS versions that ship an older version of
5786 # readline as a standard dynamic library and don't allow a
5787 # static version specified as -llibname to override the
5789 case "${host_os}" in
5790 darwin[89]*|darwin10*) HISTORY_LIB='${HISTORY_LIBRARY}' ;;
5791 *) HISTORY_LIB=-lhistory ;;
5795 HIST_LIBDIR='$(dot)/$(LIBSUBDIR)/readline'
5796 HISTORY_LIB= HISTORY_DEP=
5809 # Find a good install program. We prefer a C program (faster),
5810 # so one script is as good as another. But avoid the broken or
5811 # incompatible versions:
5812 # SysV /etc/install, /usr/sbin/install
5813 # SunOS /usr/etc/install
5814 # IRIX /sbin/install
5816 # AmigaOS /C/install, which installs bootblocks on floppy discs
5817 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5818 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5819 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5820 # OS/2's system install, which has a completely different semantic
5821 # ./install, which can be erroneously created by make from ./install.sh.
5822 # Reject install programs that cannot install multiple files.
5823 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5824 $as_echo_n "checking for a BSD-compatible install... " >&6; }
5825 if test -z "$INSTALL"; then
5826 if test "${ac_cv_path_install+set}" = set; then
5827 $as_echo_n "(cached) " >&6
5829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5833 test -z "$as_dir" && as_dir=.
5834 # Account for people who put trailing slashes in PATH elements.
5836 ./ | .// | /cC/* | \
5837 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5838 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5841 # OSF1 and SCO ODT 3.0 have their own names for install.
5842 # Don't use installbsd from OSF since it installs stuff as root
5844 for ac_prog in ginstall scoinst install; do
5845 for ac_exec_ext in '' $ac_executable_extensions; do
5846 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
5847 if test $ac_prog = install &&
5848 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5849 # AIX install. It has an incompatible calling convention.
5851 elif test $ac_prog = install &&
5852 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5853 # program-specific install script used by HP pwplus--don't use.
5856 rm -rf conftest.one conftest.two conftest.dir
5857 echo one > conftest.one
5858 echo two > conftest.two
5860 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
5861 test -s conftest.one && test -s conftest.two &&
5862 test -s conftest.dir/conftest.one &&
5863 test -s conftest.dir/conftest.two
5865 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5878 rm -rf conftest.one conftest.two conftest.dir
5881 if test "${ac_cv_path_install+set}" = set; then
5882 INSTALL=$ac_cv_path_install
5884 # As a last resort, use the slow shell script. Don't cache a
5885 # value for INSTALL within a source directory, because that will
5886 # break other packages using the cache if that directory is
5887 # removed, or if the value is a relative name.
5888 INSTALL=$ac_install_sh
5891 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
5892 $as_echo "$INSTALL" >&6; }
5894 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5895 # It thinks the first close brace ends the variable substitution.
5896 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5898 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5900 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5902 # Extract the first word of "ar", so it can be a program name with args.
5903 set dummy ar; ac_word=$2
5904 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5905 $as_echo_n "checking for $ac_word... " >&6; }
5906 if test "${ac_cv_prog_AR+set}" = set; then
5907 $as_echo_n "(cached) " >&6
5909 if test -n "$AR"; then
5910 ac_cv_prog_AR="$AR" # Let the user override the test.
5912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5916 test -z "$as_dir" && as_dir=.
5917 for ac_exec_ext in '' $ac_executable_extensions; do
5918 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5920 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5927 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
5931 if test -n "$AR"; then
5932 { $as_echo "$as_me:$LINENO: result: $AR" >&5
5933 $as_echo "$AR" >&6; }
5935 { $as_echo "$as_me:$LINENO: result: no" >&5
5936 $as_echo "no" >&6; }
5940 test -n "$ARFLAGS" || ARFLAGS="cr"
5941 if test -n "$ac_tool_prefix"; then
5942 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5943 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5944 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5945 $as_echo_n "checking for $ac_word... " >&6; }
5946 if test "${ac_cv_prog_RANLIB+set}" = set; then
5947 $as_echo_n "(cached) " >&6
5949 if test -n "$RANLIB"; then
5950 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5956 test -z "$as_dir" && as_dir=.
5957 for ac_exec_ext in '' $ac_executable_extensions; do
5958 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5959 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5960 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5969 RANLIB=$ac_cv_prog_RANLIB
5970 if test -n "$RANLIB"; then
5971 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
5972 $as_echo "$RANLIB" >&6; }
5974 { $as_echo "$as_me:$LINENO: result: no" >&5
5975 $as_echo "no" >&6; }
5980 if test -z "$ac_cv_prog_RANLIB"; then
5981 ac_ct_RANLIB=$RANLIB
5982 # Extract the first word of "ranlib", so it can be a program name with args.
5983 set dummy ranlib; ac_word=$2
5984 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5985 $as_echo_n "checking for $ac_word... " >&6; }
5986 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5987 $as_echo_n "(cached) " >&6
5989 if test -n "$ac_ct_RANLIB"; then
5990 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5996 test -z "$as_dir" && as_dir=.
5997 for ac_exec_ext in '' $ac_executable_extensions; do
5998 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5999 ac_cv_prog_ac_ct_RANLIB="ranlib"
6000 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6009 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6010 if test -n "$ac_ct_RANLIB"; then
6011 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6012 $as_echo "$ac_ct_RANLIB" >&6; }
6014 { $as_echo "$as_me:$LINENO: result: no" >&5
6015 $as_echo "no" >&6; }
6018 if test "x$ac_ct_RANLIB" = x; then
6021 case $cross_compiling:$ac_tool_warned in
6023 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6024 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6025 ac_tool_warned=yes ;;
6027 RANLIB=$ac_ct_RANLIB
6030 RANLIB="$ac_cv_prog_RANLIB"
6033 for ac_prog in 'bison -y' byacc
6035 # Extract the first word of "$ac_prog", so it can be a program name with args.
6036 set dummy $ac_prog; ac_word=$2
6037 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6038 $as_echo_n "checking for $ac_word... " >&6; }
6039 if test "${ac_cv_prog_YACC+set}" = set; then
6040 $as_echo_n "(cached) " >&6
6042 if test -n "$YACC"; then
6043 ac_cv_prog_YACC="$YACC" # Let the user override the test.
6045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6049 test -z "$as_dir" && as_dir=.
6050 for ac_exec_ext in '' $ac_executable_extensions; do
6051 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6052 ac_cv_prog_YACC="$ac_prog"
6053 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6062 YACC=$ac_cv_prog_YACC
6063 if test -n "$YACC"; then
6064 { $as_echo "$as_me:$LINENO: result: $YACC" >&5
6065 $as_echo "$YACC" >&6; }
6067 { $as_echo "$as_me:$LINENO: result: no" >&5
6068 $as_echo "no" >&6; }
6072 test -n "$YACC" && break
6074 test -n "$YACC" || YACC="yacc"
6076 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6077 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
6079 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
6080 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
6081 $as_echo_n "(cached) " >&6
6083 cat >conftest.make <<\_ACEOF
6086 @echo '@@@%%%=$(MAKE)=@@@%%%'
6088 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6089 case `${MAKE-make} -f conftest.make 2>/dev/null` in
6091 eval ac_cv_prog_make_${ac_make}_set=yes;;
6093 eval ac_cv_prog_make_${ac_make}_set=no;;
6097 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
6098 { $as_echo "$as_me:$LINENO: result: yes" >&5
6099 $as_echo "yes" >&6; }
6102 { $as_echo "$as_me:$LINENO: result: no" >&5
6103 $as_echo "no" >&6; }
6104 SET_MAKE="MAKE=${MAKE-make}"
6109 opennt*|interix*) MAKE_SHELL="$INTERIX_ROOT/bin/sh" ;;
6110 *) MAKE_SHELL=/bin/sh ;;
6114 if test x$SIZE = x; then
6115 if test x$ac_tool_prefix = x; then
6118 SIZE=${ac_tool_prefix}size
6119 save_IFS=$IFS ; IFS=:
6121 for dir in $PATH; do
6122 if test -x $dir/$SIZE ; then
6127 if test $size_found -eq 0; then
6135 cat >>confdefs.h <<\_ACEOF
6136 @%:@define _GNU_SOURCE 1
6140 { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
6141 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
6142 if test "${ac_cv_c_const+set}" = set; then
6143 $as_echo_n "(cached) " >&6
6145 cat >conftest.$ac_ext <<_ACEOF
6148 cat confdefs.h >>conftest.$ac_ext
6149 cat >>conftest.$ac_ext <<_ACEOF
6150 /* end confdefs.h. */
6155 /* FIXME: Include the comments suggested by Paul. */
6157 /* Ultrix mips cc rejects this. */
6158 typedef int charset[2];
6160 /* SunOS 4.1.1 cc rejects this. */
6161 char const *const *pcpcc;
6163 /* NEC SVR4.0.2 mips cc rejects this. */
6164 struct point {int x, y;};
6165 static struct point const zero = {0,0};
6166 /* AIX XL C 1.02.0.0 rejects this.
6167 It does not let you subtract one const X* pointer from another in
6168 an arm of an if-expression whose if-part is not a constant
6170 const char *g = "string";
6171 pcpcc = &g + (g ? g-g : 0);
6172 /* HPUX 7.0 cc rejects these. */
6174 ppc = (char**) pcpcc;
6175 pcpcc = (char const *const *) ppc;
6176 { /* SCO 3.2v4 cc rejects this. */
6178 char const *s = 0 ? (char *) 0 : (char const *) 0;
6183 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
6185 const int *foo = &x[0];
6188 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6189 typedef const int *iptr;
6193 { /* AIX XL C 1.02.0.0 rejects this saying
6194 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6195 struct s { int j; const int *ap[3]; };
6196 struct s *b; b->j = 5;
6198 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6202 return !cs[0] && !zero.x;
6209 rm -f conftest.$ac_objext
6210 if { (ac_try="$ac_compile"
6212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6213 *) ac_try_echo=$ac_try;;
6215 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6216 $as_echo "$ac_try_echo") >&5
6217 (eval "$ac_compile") 2>conftest.er1
6219 grep -v '^ *+' conftest.er1 >conftest.err
6221 cat conftest.err >&5
6222 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6223 (exit $ac_status); } && {
6224 test -z "$ac_c_werror_flag" ||
6225 test ! -s conftest.err
6226 } && test -s conftest.$ac_objext; then
6229 $as_echo "$as_me: failed program was:" >&5
6230 sed 's/^/| /' conftest.$ac_ext >&5
6235 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6237 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
6238 $as_echo "$ac_cv_c_const" >&6; }
6239 if test $ac_cv_c_const = no; then
6241 cat >>confdefs.h <<\_ACEOF
6242 @%:@define const /**/
6247 { $as_echo "$as_me:$LINENO: checking for inline" >&5
6248 $as_echo_n "checking for inline... " >&6; }
6249 if test "${ac_cv_c_inline+set}" = set; then
6250 $as_echo_n "(cached) " >&6
6253 for ac_kw in inline __inline__ __inline; do
6254 cat >conftest.$ac_ext <<_ACEOF
6257 cat confdefs.h >>conftest.$ac_ext
6258 cat >>conftest.$ac_ext <<_ACEOF
6259 /* end confdefs.h. */
6262 static $ac_kw foo_t static_foo () {return 0; }
6263 $ac_kw foo_t foo () {return 0; }
6267 rm -f conftest.$ac_objext
6268 if { (ac_try="$ac_compile"
6270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6271 *) ac_try_echo=$ac_try;;
6273 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6274 $as_echo "$ac_try_echo") >&5
6275 (eval "$ac_compile") 2>conftest.er1
6277 grep -v '^ *+' conftest.er1 >conftest.err
6279 cat conftest.err >&5
6280 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6281 (exit $ac_status); } && {
6282 test -z "$ac_c_werror_flag" ||
6283 test ! -s conftest.err
6284 } && test -s conftest.$ac_objext; then
6285 ac_cv_c_inline=$ac_kw
6287 $as_echo "$as_me: failed program was:" >&5
6288 sed 's/^/| /' conftest.$ac_ext >&5
6293 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6294 test "$ac_cv_c_inline" != no && break
6298 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
6299 $as_echo "$ac_cv_c_inline" >&6; }
6302 case $ac_cv_c_inline in
6305 case $ac_cv_c_inline in
6307 *) ac_val=$ac_cv_c_inline;;
6309 cat >>confdefs.h <<_ACEOF
6311 #define inline $ac_val
6318 { $as_echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
6319 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
6320 if test "${ac_cv_c_bigendian+set}" = set; then
6321 $as_echo_n "(cached) " >&6
6323 ac_cv_c_bigendian=unknown
6324 # See if we're dealing with a universal compiler.
6325 cat >conftest.$ac_ext <<_ACEOF
6328 cat confdefs.h >>conftest.$ac_ext
6329 cat >>conftest.$ac_ext <<_ACEOF
6330 /* end confdefs.h. */
6331 #ifndef __APPLE_CC__
6332 not a universal capable compiler
6337 rm -f conftest.$ac_objext
6338 if { (ac_try="$ac_compile"
6340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6341 *) ac_try_echo=$ac_try;;
6343 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6344 $as_echo "$ac_try_echo") >&5
6345 (eval "$ac_compile") 2>conftest.er1
6347 grep -v '^ *+' conftest.er1 >conftest.err
6349 cat conftest.err >&5
6350 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6351 (exit $ac_status); } && {
6352 test -z "$ac_c_werror_flag" ||
6353 test ! -s conftest.err
6354 } && test -s conftest.$ac_objext; then
6356 # Check for potential -arch flags. It is not universal unless
6357 # there are some -arch flags. Note that *ppc* also matches
6358 # ppc64. This check is also rather less than ideal.
6359 case "${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}" in #(
6360 *-arch*ppc*|*-arch*i386*|*-arch*x86_64*) ac_cv_c_bigendian=universal;;
6363 $as_echo "$as_me: failed program was:" >&5
6364 sed 's/^/| /' conftest.$ac_ext >&5
6369 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6370 if test $ac_cv_c_bigendian = unknown; then
6371 # See if sys/param.h defines the BYTE_ORDER macro.
6372 cat >conftest.$ac_ext <<_ACEOF
6375 cat confdefs.h >>conftest.$ac_ext
6376 cat >>conftest.$ac_ext <<_ACEOF
6377 /* end confdefs.h. */
6378 #include <sys/types.h>
6379 #include <sys/param.h>
6384 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
6385 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
6394 rm -f conftest.$ac_objext
6395 if { (ac_try="$ac_compile"
6397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6398 *) ac_try_echo=$ac_try;;
6400 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6401 $as_echo "$ac_try_echo") >&5
6402 (eval "$ac_compile") 2>conftest.er1
6404 grep -v '^ *+' conftest.er1 >conftest.err
6406 cat conftest.err >&5
6407 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6408 (exit $ac_status); } && {
6409 test -z "$ac_c_werror_flag" ||
6410 test ! -s conftest.err
6411 } && test -s conftest.$ac_objext; then
6412 # It does; now see whether it defined to BIG_ENDIAN or not.
6413 cat >conftest.$ac_ext <<_ACEOF
6416 cat confdefs.h >>conftest.$ac_ext
6417 cat >>conftest.$ac_ext <<_ACEOF
6418 /* end confdefs.h. */
6419 #include <sys/types.h>
6420 #include <sys/param.h>
6425 #if BYTE_ORDER != BIG_ENDIAN
6433 rm -f conftest.$ac_objext
6434 if { (ac_try="$ac_compile"
6436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6437 *) ac_try_echo=$ac_try;;
6439 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6440 $as_echo "$ac_try_echo") >&5
6441 (eval "$ac_compile") 2>conftest.er1
6443 grep -v '^ *+' conftest.er1 >conftest.err
6445 cat conftest.err >&5
6446 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6447 (exit $ac_status); } && {
6448 test -z "$ac_c_werror_flag" ||
6449 test ! -s conftest.err
6450 } && test -s conftest.$ac_objext; then
6451 ac_cv_c_bigendian=yes
6453 $as_echo "$as_me: failed program was:" >&5
6454 sed 's/^/| /' conftest.$ac_ext >&5
6456 ac_cv_c_bigendian=no
6459 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6461 $as_echo "$as_me: failed program was:" >&5
6462 sed 's/^/| /' conftest.$ac_ext >&5
6467 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6469 if test $ac_cv_c_bigendian = unknown; then
6470 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
6471 cat >conftest.$ac_ext <<_ACEOF
6474 cat confdefs.h >>conftest.$ac_ext
6475 cat >>conftest.$ac_ext <<_ACEOF
6476 /* end confdefs.h. */
6482 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
6490 rm -f conftest.$ac_objext
6491 if { (ac_try="$ac_compile"
6493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6494 *) ac_try_echo=$ac_try;;
6496 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6497 $as_echo "$ac_try_echo") >&5
6498 (eval "$ac_compile") 2>conftest.er1
6500 grep -v '^ *+' conftest.er1 >conftest.err
6502 cat conftest.err >&5
6503 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6504 (exit $ac_status); } && {
6505 test -z "$ac_c_werror_flag" ||
6506 test ! -s conftest.err
6507 } && test -s conftest.$ac_objext; then
6508 # It does; now see whether it defined to _BIG_ENDIAN or not.
6509 cat >conftest.$ac_ext <<_ACEOF
6512 cat confdefs.h >>conftest.$ac_ext
6513 cat >>conftest.$ac_ext <<_ACEOF
6514 /* end confdefs.h. */
6528 rm -f conftest.$ac_objext
6529 if { (ac_try="$ac_compile"
6531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6532 *) ac_try_echo=$ac_try;;
6534 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6535 $as_echo "$ac_try_echo") >&5
6536 (eval "$ac_compile") 2>conftest.er1
6538 grep -v '^ *+' conftest.er1 >conftest.err
6540 cat conftest.err >&5
6541 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6542 (exit $ac_status); } && {
6543 test -z "$ac_c_werror_flag" ||
6544 test ! -s conftest.err
6545 } && test -s conftest.$ac_objext; then
6546 ac_cv_c_bigendian=yes
6548 $as_echo "$as_me: failed program was:" >&5
6549 sed 's/^/| /' conftest.$ac_ext >&5
6551 ac_cv_c_bigendian=no
6554 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6556 $as_echo "$as_me: failed program was:" >&5
6557 sed 's/^/| /' conftest.$ac_ext >&5
6562 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6564 if test $ac_cv_c_bigendian = unknown; then
6565 # Compile a test program.
6566 if test "$cross_compiling" = yes; then
6567 # Try to guess by grepping values from an object file.
6568 cat >conftest.$ac_ext <<_ACEOF
6571 cat confdefs.h >>conftest.$ac_ext
6572 cat >>conftest.$ac_ext <<_ACEOF
6573 /* end confdefs.h. */
6574 short int ascii_mm[] =
6575 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
6576 short int ascii_ii[] =
6577 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
6578 int use_ascii (int i) {
6579 return ascii_mm[i] + ascii_ii[i];
6581 short int ebcdic_ii[] =
6582 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
6583 short int ebcdic_mm[] =
6584 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
6585 int use_ebcdic (int i) {
6586 return ebcdic_mm[i] + ebcdic_ii[i];
6593 return use_ascii (foo) == use_ebcdic (foo);
6598 rm -f conftest.$ac_objext
6599 if { (ac_try="$ac_compile"
6601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6602 *) ac_try_echo=$ac_try;;
6604 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6605 $as_echo "$ac_try_echo") >&5
6606 (eval "$ac_compile") 2>conftest.er1
6608 grep -v '^ *+' conftest.er1 >conftest.err
6610 cat conftest.err >&5
6611 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6612 (exit $ac_status); } && {
6613 test -z "$ac_c_werror_flag" ||
6614 test ! -s conftest.err
6615 } && test -s conftest.$ac_objext; then
6616 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
6617 ac_cv_c_bigendian=yes
6619 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
6620 if test "$ac_cv_c_bigendian" = unknown; then
6621 ac_cv_c_bigendian=no
6623 # finding both strings is unlikely to happen, but who knows?
6624 ac_cv_c_bigendian=unknown
6628 $as_echo "$as_me: failed program was:" >&5
6629 sed 's/^/| /' conftest.$ac_ext >&5
6634 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6636 cat >conftest.$ac_ext <<_ACEOF
6639 cat confdefs.h >>conftest.$ac_ext
6640 cat >>conftest.$ac_ext <<_ACEOF
6641 /* end confdefs.h. */
6642 $ac_includes_default
6647 /* Are we little or big endian? From Harbison&Steele. */
6651 char c[sizeof (long int)];
6654 return u.c[sizeof (long int) - 1] == 1;
6660 rm -f conftest$ac_exeext
6661 if { (ac_try="$ac_link"
6663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6664 *) ac_try_echo=$ac_try;;
6666 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6667 $as_echo "$ac_try_echo") >&5
6668 (eval "$ac_link") 2>&5
6670 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6671 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6672 { (case "(($ac_try" in
6673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6674 *) ac_try_echo=$ac_try;;
6676 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6677 $as_echo "$ac_try_echo") >&5
6678 (eval "$ac_try") 2>&5
6680 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6681 (exit $ac_status); }; }; then
6682 ac_cv_c_bigendian=no
6684 $as_echo "$as_me: program exited with status $ac_status" >&5
6685 $as_echo "$as_me: failed program was:" >&5
6686 sed 's/^/| /' conftest.$ac_ext >&5
6689 ac_cv_c_bigendian=yes
6691 rm -rf conftest.dSYM
6692 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6698 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
6699 $as_echo "$ac_cv_c_bigendian" >&6; }
6700 case $ac_cv_c_bigendian in #(
6702 cat >>confdefs.h <<\_ACEOF
6703 @%:@define WORDS_BIGENDIAN 1
6710 cat >>confdefs.h <<\_ACEOF
6711 @%:@define AC_APPLE_UNIVERSAL_BUILD 1
6716 { { $as_echo "$as_me:$LINENO: error: unknown endianness
6717 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
6718 $as_echo "$as_me: error: unknown endianness
6719 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
6720 { (exit 1); exit 1; }; } ;;
6723 { $as_echo "$as_me:$LINENO: checking for preprocessor stringizing operator" >&5
6724 $as_echo_n "checking for preprocessor stringizing operator... " >&6; }
6725 if test "${ac_cv_c_stringize+set}" = set; then
6726 $as_echo_n "(cached) " >&6
6728 cat >conftest.$ac_ext <<_ACEOF
6731 cat confdefs.h >>conftest.$ac_ext
6732 cat >>conftest.$ac_ext <<_ACEOF
6733 /* end confdefs.h. */
6736 char *s = x(teststring);
6738 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6739 $EGREP "@%:@teststring" >/dev/null 2>&1; then
6740 ac_cv_c_stringize=no
6742 ac_cv_c_stringize=yes
6747 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_stringize" >&5
6748 $as_echo "$ac_cv_c_stringize" >&6; }
6749 if test $ac_cv_c_stringize = yes; then
6751 cat >>confdefs.h <<\_ACEOF
6752 @%:@define HAVE_STRINGIZE 1
6759 { $as_echo "$as_me:$LINENO: checking for long double with more range or precision than double" >&5
6760 $as_echo_n "checking for long double with more range or precision than double... " >&6; }
6761 if test "${ac_cv_type_long_double_wider+set}" = set; then
6762 $as_echo_n "(cached) " >&6
6764 cat >conftest.$ac_ext <<_ACEOF
6767 cat confdefs.h >>conftest.$ac_ext
6768 cat >>conftest.$ac_ext <<_ACEOF
6769 /* end confdefs.h. */
6771 long double const a[] =
6773 0.0L, DBL_MIN, DBL_MAX, DBL_EPSILON,
6774 LDBL_MIN, LDBL_MAX, LDBL_EPSILON
6779 return ((x + (unsigned long int) 10) * (-1 / x) + a[0]
6780 + (x ? f (x) : 'c'));
6786 static int test_array @<:@1 - 2 * !((0 < ((DBL_MAX_EXP < LDBL_MAX_EXP)
6787 + (DBL_MANT_DIG < LDBL_MANT_DIG)
6788 - (LDBL_MAX_EXP < DBL_MAX_EXP)
6789 - (LDBL_MANT_DIG < DBL_MANT_DIG)))
6790 && (int) LDBL_EPSILON == 0
6792 test_array @<:@0@:>@ = 0
6798 rm -f conftest.$ac_objext
6799 if { (ac_try="$ac_compile"
6801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6802 *) ac_try_echo=$ac_try;;
6804 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6805 $as_echo "$ac_try_echo") >&5
6806 (eval "$ac_compile") 2>conftest.er1
6808 grep -v '^ *+' conftest.er1 >conftest.err
6810 cat conftest.err >&5
6811 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6812 (exit $ac_status); } && {
6813 test -z "$ac_c_werror_flag" ||
6814 test ! -s conftest.err
6815 } && test -s conftest.$ac_objext; then
6816 ac_cv_type_long_double_wider=yes
6818 $as_echo "$as_me: failed program was:" >&5
6819 sed 's/^/| /' conftest.$ac_ext >&5
6821 ac_cv_type_long_double_wider=no
6824 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6826 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_long_double_wider" >&5
6827 $as_echo "$ac_cv_type_long_double_wider" >&6; }
6828 if test $ac_cv_type_long_double_wider = yes; then
6830 cat >>confdefs.h <<\_ACEOF
6831 @%:@define HAVE_LONG_DOUBLE_WIDER 1
6836 ac_cv_c_long_double=$ac_cv_type_long_double_wider
6837 if test $ac_cv_c_long_double = yes; then
6839 cat >>confdefs.h <<\_ACEOF
6840 @%:@define HAVE_LONG_DOUBLE 1
6845 { $as_echo "$as_me:$LINENO: checking for function prototypes" >&5
6846 $as_echo_n "checking for function prototypes... " >&6; }
6847 if test "$ac_cv_prog_cc_c89" != no; then
6848 { $as_echo "$as_me:$LINENO: result: yes" >&5
6849 $as_echo "yes" >&6; }
6851 cat >>confdefs.h <<\_ACEOF
6852 @%:@define PROTOTYPES 1
6856 cat >>confdefs.h <<\_ACEOF
6857 @%:@define __PROTOTYPES 1
6861 { $as_echo "$as_me:$LINENO: result: no" >&5
6862 $as_echo "no" >&6; }
6866 { $as_echo "$as_me:$LINENO: checking whether char is unsigned" >&5
6867 $as_echo_n "checking whether char is unsigned... " >&6; }
6868 if test "${ac_cv_c_char_unsigned+set}" = set; then
6869 $as_echo_n "(cached) " >&6
6871 cat >conftest.$ac_ext <<_ACEOF
6874 cat confdefs.h >>conftest.$ac_ext
6875 cat >>conftest.$ac_ext <<_ACEOF
6876 /* end confdefs.h. */
6877 $ac_includes_default
6881 static int test_array @<:@1 - 2 * !(((char) -1) < 0)@:>@;
6882 test_array @<:@0@:>@ = 0
6888 rm -f conftest.$ac_objext
6889 if { (ac_try="$ac_compile"
6891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6892 *) ac_try_echo=$ac_try;;
6894 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6895 $as_echo "$ac_try_echo") >&5
6896 (eval "$ac_compile") 2>conftest.er1
6898 grep -v '^ *+' conftest.er1 >conftest.err
6900 cat conftest.err >&5
6901 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6902 (exit $ac_status); } && {
6903 test -z "$ac_c_werror_flag" ||
6904 test ! -s conftest.err
6905 } && test -s conftest.$ac_objext; then
6906 ac_cv_c_char_unsigned=no
6908 $as_echo "$as_me: failed program was:" >&5
6909 sed 's/^/| /' conftest.$ac_ext >&5
6911 ac_cv_c_char_unsigned=yes
6914 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6916 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_char_unsigned" >&5
6917 $as_echo "$ac_cv_c_char_unsigned" >&6; }
6918 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
6919 cat >>confdefs.h <<\_ACEOF
6920 @%:@define __CHAR_UNSIGNED__ 1
6925 { $as_echo "$as_me:$LINENO: checking for working volatile" >&5
6926 $as_echo_n "checking for working volatile... " >&6; }
6927 if test "${ac_cv_c_volatile+set}" = set; then
6928 $as_echo_n "(cached) " >&6
6930 cat >conftest.$ac_ext <<_ACEOF
6933 cat confdefs.h >>conftest.$ac_ext
6934 cat >>conftest.$ac_ext <<_ACEOF
6935 /* end confdefs.h. */
6942 int * volatile y = (int *) 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_volatile=yes
6968 $as_echo "$as_me: failed program was:" >&5
6969 sed 's/^/| /' conftest.$ac_ext >&5
6974 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6976 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
6977 $as_echo "$ac_cv_c_volatile" >&6; }
6978 if test $ac_cv_c_volatile = no; then
6980 cat >>confdefs.h <<\_ACEOF
6981 @%:@define volatile /**/
6986 { $as_echo "$as_me:$LINENO: checking for C/C++ restrict keyword" >&5
6987 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
6988 if test "${ac_cv_c_restrict+set}" = set; then
6989 $as_echo_n "(cached) " >&6
6992 # The order here caters to the fact that C++ does not require restrict.
6993 for ac_kw in __restrict __restrict__ _Restrict restrict; do
6994 cat >conftest.$ac_ext <<_ACEOF
6997 cat confdefs.h >>conftest.$ac_ext
6998 cat >>conftest.$ac_ext <<_ACEOF
6999 /* end confdefs.h. */
7000 typedef int * int_ptr;
7001 int foo (int_ptr $ac_kw ip) {
7015 rm -f conftest.$ac_objext
7016 if { (ac_try="$ac_compile"
7018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7019 *) ac_try_echo=$ac_try;;
7021 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7022 $as_echo "$ac_try_echo") >&5
7023 (eval "$ac_compile") 2>conftest.er1
7025 grep -v '^ *+' conftest.er1 >conftest.err
7027 cat conftest.err >&5
7028 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7029 (exit $ac_status); } && {
7030 test -z "$ac_c_werror_flag" ||
7031 test ! -s conftest.err
7032 } && test -s conftest.$ac_objext; then
7033 ac_cv_c_restrict=$ac_kw
7035 $as_echo "$as_me: failed program was:" >&5
7036 sed 's/^/| /' conftest.$ac_ext >&5
7041 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7042 test "$ac_cv_c_restrict" != no && break
7046 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_restrict" >&5
7047 $as_echo "$ac_cv_c_restrict" >&6; }
7050 case $ac_cv_c_restrict in
7052 no) cat >>confdefs.h <<\_ACEOF
7053 @%:@define restrict /**/
7056 *) cat >>confdefs.h <<_ACEOF
7057 @%:@define restrict $ac_cv_c_restrict
7065 if test -n "$ac_aux_dir"; then
7066 case "$ac_aux_dir" in
7067 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
7068 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
7071 if test -z "$MKINSTALLDIRS"; then
7072 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
7077 { $as_echo "$as_me:$LINENO: checking whether NLS is requested" >&5
7078 $as_echo_n "checking whether NLS is requested... " >&6; }
7079 @%:@ Check whether --enable-nls was given.
7080 if test "${enable_nls+set}" = set; then
7081 enableval=$enable_nls; USE_NLS=$enableval
7086 { $as_echo "$as_me:$LINENO: result: $USE_NLS" >&5
7087 $as_echo "$USE_NLS" >&6; }
7094 # Prepare PATH_SEPARATOR.
7095 # The user is always right.
7096 if test "${PATH_SEPARATOR+set}" != set; then
7097 echo "#! /bin/sh" >conf$$.sh
7098 echo "exit 0" >>conf$$.sh
7100 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7108 # Find out how to test for executable files. Don't use a zero-byte file,
7109 # as systems may use methods other than mode bits to determine executability.
7110 cat >conf$$.file <<_ASEOF
7114 chmod +x conf$$.file
7115 if test -x conf$$.file >/dev/null 2>&1; then
7116 ac_executable_p="test -x"
7118 ac_executable_p="test -f"
7122 # Extract the first word of "msgfmt", so it can be a program name with args.
7123 set dummy msgfmt; ac_word=$2
7124 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7125 $as_echo_n "checking for $ac_word... " >&6; }
7126 if test "${ac_cv_path_MSGFMT+set}" = set; then
7127 $as_echo_n "(cached) " >&6
7131 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
7134 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
7135 for ac_dir in $PATH; do
7137 test -z "$ac_dir" && ac_dir=.
7138 for ac_exec_ext in '' $ac_executable_extensions; do
7139 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7140 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
7141 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
7142 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
7149 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
7153 MSGFMT="$ac_cv_path_MSGFMT"
7154 if test "$MSGFMT" != ":"; then
7155 { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5
7156 $as_echo "$MSGFMT" >&6; }
7158 { $as_echo "$as_me:$LINENO: result: no" >&5
7159 $as_echo "no" >&6; }
7162 # Extract the first word of "gmsgfmt", so it can be a program name with args.
7163 set dummy gmsgfmt; ac_word=$2
7164 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7165 $as_echo_n "checking for $ac_word... " >&6; }
7166 if test "${ac_cv_path_GMSGFMT+set}" = set; then
7167 $as_echo_n "(cached) " >&6
7171 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
7174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7178 test -z "$as_dir" && as_dir=.
7179 for ac_exec_ext in '' $ac_executable_extensions; do
7180 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7181 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
7182 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7189 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
7193 GMSGFMT=$ac_cv_path_GMSGFMT
7194 if test -n "$GMSGFMT"; then
7195 { $as_echo "$as_me:$LINENO: result: $GMSGFMT" >&5
7196 $as_echo "$GMSGFMT" >&6; }
7198 { $as_echo "$as_me:$LINENO: result: no" >&5
7199 $as_echo "no" >&6; }
7205 # Prepare PATH_SEPARATOR.
7206 # The user is always right.
7207 if test "${PATH_SEPARATOR+set}" != set; then
7208 echo "#! /bin/sh" >conf$$.sh
7209 echo "exit 0" >>conf$$.sh
7211 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7219 # Find out how to test for executable files. Don't use a zero-byte file,
7220 # as systems may use methods other than mode bits to determine executability.
7221 cat >conf$$.file <<_ASEOF
7225 chmod +x conf$$.file
7226 if test -x conf$$.file >/dev/null 2>&1; then
7227 ac_executable_p="test -x"
7229 ac_executable_p="test -f"
7233 # Extract the first word of "xgettext", so it can be a program name with args.
7234 set dummy xgettext; ac_word=$2
7235 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7236 $as_echo_n "checking for $ac_word... " >&6; }
7237 if test "${ac_cv_path_XGETTEXT+set}" = set; then
7238 $as_echo_n "(cached) " >&6
7242 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
7245 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
7246 for ac_dir in $PATH; do
7248 test -z "$ac_dir" && ac_dir=.
7249 for ac_exec_ext in '' $ac_executable_extensions; do
7250 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7251 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
7252 (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
7253 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
7260 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
7264 XGETTEXT="$ac_cv_path_XGETTEXT"
7265 if test "$XGETTEXT" != ":"; then
7266 { $as_echo "$as_me:$LINENO: result: $XGETTEXT" >&5
7267 $as_echo "$XGETTEXT" >&6; }
7269 { $as_echo "$as_me:$LINENO: result: no" >&5
7270 $as_echo "no" >&6; }
7276 # Prepare PATH_SEPARATOR.
7277 # The user is always right.
7278 if test "${PATH_SEPARATOR+set}" != set; then
7279 echo "#! /bin/sh" >conf$$.sh
7280 echo "exit 0" >>conf$$.sh
7282 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7290 # Find out how to test for executable files. Don't use a zero-byte file,
7291 # as systems may use methods other than mode bits to determine executability.
7292 cat >conf$$.file <<_ASEOF
7296 chmod +x conf$$.file
7297 if test -x conf$$.file >/dev/null 2>&1; then
7298 ac_executable_p="test -x"
7300 ac_executable_p="test -f"
7304 # Extract the first word of "msgmerge", so it can be a program name with args.
7305 set dummy msgmerge; ac_word=$2
7306 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7307 $as_echo_n "checking for $ac_word... " >&6; }
7308 if test "${ac_cv_path_MSGMERGE+set}" = set; then
7309 $as_echo_n "(cached) " >&6
7313 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
7316 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
7317 for ac_dir in $PATH; do
7319 test -z "$ac_dir" && ac_dir=.
7320 for ac_exec_ext in '' $ac_executable_extensions; do
7321 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7322 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
7323 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
7330 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
7334 MSGMERGE="$ac_cv_path_MSGMERGE"
7335 if test "$MSGMERGE" != ":"; then
7336 { $as_echo "$as_me:$LINENO: result: $MSGMERGE" >&5
7337 $as_echo "$MSGMERGE" >&6; }
7339 { $as_echo "$as_me:$LINENO: result: no" >&5
7340 $as_echo "no" >&6; }
7344 if test "$GMSGFMT" != ":"; then
7345 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
7346 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
7349 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
7350 { $as_echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
7351 $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
7356 if test "$XGETTEXT" != ":"; then
7357 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
7358 (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
7361 { $as_echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
7362 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
7368 ac_config_commands="$ac_config_commands default-1"
7371 { $as_echo "$as_me:$LINENO: checking for off_t" >&5
7372 $as_echo_n "checking for off_t... " >&6; }
7373 if test "${ac_cv_type_off_t+set}" = set; then
7374 $as_echo_n "(cached) " >&6
7377 cat >conftest.$ac_ext <<_ACEOF
7380 cat confdefs.h >>conftest.$ac_ext
7381 cat >>conftest.$ac_ext <<_ACEOF
7382 /* end confdefs.h. */
7383 $ac_includes_default
7393 rm -f conftest.$ac_objext
7394 if { (ac_try="$ac_compile"
7396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7397 *) ac_try_echo=$ac_try;;
7399 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7400 $as_echo "$ac_try_echo") >&5
7401 (eval "$ac_compile") 2>conftest.er1
7403 grep -v '^ *+' conftest.er1 >conftest.err
7405 cat conftest.err >&5
7406 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7407 (exit $ac_status); } && {
7408 test -z "$ac_c_werror_flag" ||
7409 test ! -s conftest.err
7410 } && test -s conftest.$ac_objext; then
7411 cat >conftest.$ac_ext <<_ACEOF
7414 cat confdefs.h >>conftest.$ac_ext
7415 cat >>conftest.$ac_ext <<_ACEOF
7416 /* end confdefs.h. */
7417 $ac_includes_default
7421 if (sizeof ((off_t)))
7427 rm -f conftest.$ac_objext
7428 if { (ac_try="$ac_compile"
7430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7431 *) ac_try_echo=$ac_try;;
7433 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7434 $as_echo "$ac_try_echo") >&5
7435 (eval "$ac_compile") 2>conftest.er1
7437 grep -v '^ *+' conftest.er1 >conftest.err
7439 cat conftest.err >&5
7440 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7441 (exit $ac_status); } && {
7442 test -z "$ac_c_werror_flag" ||
7443 test ! -s conftest.err
7444 } && test -s conftest.$ac_objext; then
7447 $as_echo "$as_me: failed program was:" >&5
7448 sed 's/^/| /' conftest.$ac_ext >&5
7450 ac_cv_type_off_t=yes
7453 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7455 $as_echo "$as_me: failed program was:" >&5
7456 sed 's/^/| /' conftest.$ac_ext >&5
7461 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7463 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
7464 $as_echo "$ac_cv_type_off_t" >&6; }
7465 if test "x$ac_cv_type_off_t" = x""yes; then
7469 cat >>confdefs.h <<_ACEOF
7470 @%:@define off_t long int
7475 { $as_echo "$as_me:$LINENO: checking for size_t" >&5
7476 $as_echo_n "checking for size_t... " >&6; }
7477 if test "${ac_cv_type_size_t+set}" = set; then
7478 $as_echo_n "(cached) " >&6
7480 ac_cv_type_size_t=no
7481 cat >conftest.$ac_ext <<_ACEOF
7484 cat confdefs.h >>conftest.$ac_ext
7485 cat >>conftest.$ac_ext <<_ACEOF
7486 /* end confdefs.h. */
7487 $ac_includes_default
7491 if (sizeof (size_t))
7497 rm -f conftest.$ac_objext
7498 if { (ac_try="$ac_compile"
7500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7501 *) ac_try_echo=$ac_try;;
7503 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7504 $as_echo "$ac_try_echo") >&5
7505 (eval "$ac_compile") 2>conftest.er1
7507 grep -v '^ *+' conftest.er1 >conftest.err
7509 cat conftest.err >&5
7510 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7511 (exit $ac_status); } && {
7512 test -z "$ac_c_werror_flag" ||
7513 test ! -s conftest.err
7514 } && test -s conftest.$ac_objext; then
7515 cat >conftest.$ac_ext <<_ACEOF
7518 cat confdefs.h >>conftest.$ac_ext
7519 cat >>conftest.$ac_ext <<_ACEOF
7520 /* end confdefs.h. */
7521 $ac_includes_default
7525 if (sizeof ((size_t)))
7531 rm -f conftest.$ac_objext
7532 if { (ac_try="$ac_compile"
7534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7535 *) ac_try_echo=$ac_try;;
7537 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7538 $as_echo "$ac_try_echo") >&5
7539 (eval "$ac_compile") 2>conftest.er1
7541 grep -v '^ *+' conftest.er1 >conftest.err
7543 cat conftest.err >&5
7544 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7545 (exit $ac_status); } && {
7546 test -z "$ac_c_werror_flag" ||
7547 test ! -s conftest.err
7548 } && test -s conftest.$ac_objext; then
7551 $as_echo "$as_me: failed program was:" >&5
7552 sed 's/^/| /' conftest.$ac_ext >&5
7554 ac_cv_type_size_t=yes
7557 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7559 $as_echo "$as_me: failed program was:" >&5
7560 sed 's/^/| /' conftest.$ac_ext >&5
7565 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7567 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
7568 $as_echo "$ac_cv_type_size_t" >&6; }
7569 if test "x$ac_cv_type_size_t" = x""yes; then
7573 cat >>confdefs.h <<_ACEOF
7574 @%:@define size_t unsigned int
7579 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
7580 # for constant arguments. Useless!
7581 { $as_echo "$as_me:$LINENO: checking for working alloca.h" >&5
7582 $as_echo_n "checking for working alloca.h... " >&6; }
7583 if test "${ac_cv_working_alloca_h+set}" = set; then
7584 $as_echo_n "(cached) " >&6
7586 cat >conftest.$ac_ext <<_ACEOF
7589 cat confdefs.h >>conftest.$ac_ext
7590 cat >>conftest.$ac_ext <<_ACEOF
7591 /* end confdefs.h. */
7592 @%:@include <alloca.h>
7596 char *p = (char *) alloca (2 * sizeof (int));
7602 rm -f conftest.$ac_objext conftest$ac_exeext
7603 if { (ac_try="$ac_link"
7605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7606 *) ac_try_echo=$ac_try;;
7608 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7609 $as_echo "$ac_try_echo") >&5
7610 (eval "$ac_link") 2>conftest.er1
7612 grep -v '^ *+' conftest.er1 >conftest.err
7614 cat conftest.err >&5
7615 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7616 (exit $ac_status); } && {
7617 test -z "$ac_c_werror_flag" ||
7618 test ! -s conftest.err
7619 } && test -s conftest$ac_exeext && {
7620 test "$cross_compiling" = yes ||
7621 $as_test_x conftest$ac_exeext
7623 ac_cv_working_alloca_h=yes
7625 $as_echo "$as_me: failed program was:" >&5
7626 sed 's/^/| /' conftest.$ac_ext >&5
7628 ac_cv_working_alloca_h=no
7631 rm -rf conftest.dSYM
7632 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7633 conftest$ac_exeext conftest.$ac_ext
7635 { $as_echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
7636 $as_echo "$ac_cv_working_alloca_h" >&6; }
7637 if test $ac_cv_working_alloca_h = yes; then
7639 cat >>confdefs.h <<\_ACEOF
7640 @%:@define HAVE_ALLOCA_H 1
7645 { $as_echo "$as_me:$LINENO: checking for alloca" >&5
7646 $as_echo_n "checking for alloca... " >&6; }
7647 if test "${ac_cv_func_alloca_works+set}" = set; then
7648 $as_echo_n "(cached) " >&6
7650 cat >conftest.$ac_ext <<_ACEOF
7653 cat confdefs.h >>conftest.$ac_ext
7654 cat >>conftest.$ac_ext <<_ACEOF
7655 /* end confdefs.h. */
7657 # define alloca __builtin_alloca
7660 # include <malloc.h>
7661 # define alloca _alloca
7663 # ifdef HAVE_ALLOCA_H
7664 # include <alloca.h>
7669 # ifndef alloca /* predefined by HP cc +Olibcalls */
7680 char *p = (char *) alloca (1);
7686 rm -f conftest.$ac_objext conftest$ac_exeext
7687 if { (ac_try="$ac_link"
7689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7690 *) ac_try_echo=$ac_try;;
7692 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7693 $as_echo "$ac_try_echo") >&5
7694 (eval "$ac_link") 2>conftest.er1
7696 grep -v '^ *+' conftest.er1 >conftest.err
7698 cat conftest.err >&5
7699 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7700 (exit $ac_status); } && {
7701 test -z "$ac_c_werror_flag" ||
7702 test ! -s conftest.err
7703 } && test -s conftest$ac_exeext && {
7704 test "$cross_compiling" = yes ||
7705 $as_test_x conftest$ac_exeext
7707 ac_cv_func_alloca_works=yes
7709 $as_echo "$as_me: failed program was:" >&5
7710 sed 's/^/| /' conftest.$ac_ext >&5
7712 ac_cv_func_alloca_works=no
7715 rm -rf conftest.dSYM
7716 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7717 conftest$ac_exeext conftest.$ac_ext
7719 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
7720 $as_echo "$ac_cv_func_alloca_works" >&6; }
7722 if test $ac_cv_func_alloca_works = yes; then
7724 cat >>confdefs.h <<\_ACEOF
7725 @%:@define HAVE_ALLOCA 1
7729 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
7730 # that cause trouble. Some versions do not even contain alloca or
7731 # contain a buggy version. If you still want to use their alloca,
7732 # use ar to extract alloca.o from them instead of compiling alloca.c.
7734 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
7736 cat >>confdefs.h <<\_ACEOF
7737 @%:@define C_ALLOCA 1
7741 { $as_echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
7742 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
7743 if test "${ac_cv_os_cray+set}" = set; then
7744 $as_echo_n "(cached) " >&6
7746 cat >conftest.$ac_ext <<_ACEOF
7749 cat confdefs.h >>conftest.$ac_ext
7750 cat >>conftest.$ac_ext <<_ACEOF
7751 /* end confdefs.h. */
7752 #if defined CRAY && ! defined CRAY2
7759 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7760 $EGREP "webecray" >/dev/null 2>&1; then
7768 { $as_echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
7769 $as_echo "$ac_cv_os_cray" >&6; }
7770 if test $ac_cv_os_cray = yes; then
7771 for ac_func in _getb67 GETB67 getb67; do
7772 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7773 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
7774 $as_echo_n "checking for $ac_func... " >&6; }
7775 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
7776 $as_echo_n "(cached) " >&6
7778 cat >conftest.$ac_ext <<_ACEOF
7781 cat confdefs.h >>conftest.$ac_ext
7782 cat >>conftest.$ac_ext <<_ACEOF
7783 /* end confdefs.h. */
7784 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7785 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7786 #define $ac_func innocuous_$ac_func
7788 /* System header to define __stub macros and hopefully few prototypes,
7789 which can conflict with char $ac_func (); below.
7790 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7791 <limits.h> exists even on freestanding compilers. */
7794 # include <limits.h>
7796 # include <assert.h>
7801 /* Override any GCC internal prototype to avoid an error.
7802 Use char because int might match the return type of a GCC
7803 builtin and then its argument prototype would still apply. */
7808 /* The GNU C library defines this for functions which it implements
7809 to always fail with ENOSYS. Some functions are actually named
7810 something starting with __ and the normal name is an alias. */
7811 #if defined __stub_$ac_func || defined __stub___$ac_func
7823 rm -f conftest.$ac_objext conftest$ac_exeext
7824 if { (ac_try="$ac_link"
7826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7827 *) ac_try_echo=$ac_try;;
7829 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7830 $as_echo "$ac_try_echo") >&5
7831 (eval "$ac_link") 2>conftest.er1
7833 grep -v '^ *+' conftest.er1 >conftest.err
7835 cat conftest.err >&5
7836 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7837 (exit $ac_status); } && {
7838 test -z "$ac_c_werror_flag" ||
7839 test ! -s conftest.err
7840 } && test -s conftest$ac_exeext && {
7841 test "$cross_compiling" = yes ||
7842 $as_test_x conftest$ac_exeext
7844 eval "$as_ac_var=yes"
7846 $as_echo "$as_me: failed program was:" >&5
7847 sed 's/^/| /' conftest.$ac_ext >&5
7849 eval "$as_ac_var=no"
7852 rm -rf conftest.dSYM
7853 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7854 conftest$ac_exeext conftest.$ac_ext
7856 ac_res=`eval 'as_val=${'$as_ac_var'}
7857 $as_echo "$as_val"'`
7858 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7859 $as_echo "$ac_res" >&6; }
7860 as_val=`eval 'as_val=${'$as_ac_var'}
7861 $as_echo "$as_val"'`
7862 if test "x$as_val" = x""yes; then
7864 cat >>confdefs.h <<_ACEOF
7865 @%:@define CRAY_STACKSEG_END $ac_func
7874 { $as_echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
7875 $as_echo_n "checking stack direction for C alloca... " >&6; }
7876 if test "${ac_cv_c_stack_direction+set}" = set; then
7877 $as_echo_n "(cached) " >&6
7879 if test "$cross_compiling" = yes; then
7880 ac_cv_c_stack_direction=0
7882 cat >conftest.$ac_ext <<_ACEOF
7885 cat confdefs.h >>conftest.$ac_ext
7886 cat >>conftest.$ac_ext <<_ACEOF
7887 /* end confdefs.h. */
7888 $ac_includes_default
7890 find_stack_direction ()
7892 static char *addr = 0;
7897 return find_stack_direction ();
7900 return (&dummy > addr) ? 1 : -1;
7906 return find_stack_direction () < 0;
7909 rm -f conftest$ac_exeext
7910 if { (ac_try="$ac_link"
7912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7913 *) ac_try_echo=$ac_try;;
7915 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7916 $as_echo "$ac_try_echo") >&5
7917 (eval "$ac_link") 2>&5
7919 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7920 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7921 { (case "(($ac_try" in
7922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7923 *) ac_try_echo=$ac_try;;
7925 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7926 $as_echo "$ac_try_echo") >&5
7927 (eval "$ac_try") 2>&5
7929 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7930 (exit $ac_status); }; }; then
7931 ac_cv_c_stack_direction=1
7933 $as_echo "$as_me: program exited with status $ac_status" >&5
7934 $as_echo "$as_me: failed program was:" >&5
7935 sed 's/^/| /' conftest.$ac_ext >&5
7938 ac_cv_c_stack_direction=-1
7940 rm -rf conftest.dSYM
7941 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7946 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
7947 $as_echo "$ac_cv_c_stack_direction" >&6; }
7949 cat >>confdefs.h <<_ACEOF
7950 @%:@define STACK_DIRECTION $ac_cv_c_stack_direction
7958 for ac_header in stdlib.h unistd.h
7960 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7961 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7962 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7963 $as_echo_n "checking for $ac_header... " >&6; }
7964 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7965 $as_echo_n "(cached) " >&6
7967 ac_res=`eval 'as_val=${'$as_ac_Header'}
7968 $as_echo "$as_val"'`
7969 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7970 $as_echo "$ac_res" >&6; }
7972 # Is the header compilable?
7973 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
7974 $as_echo_n "checking $ac_header usability... " >&6; }
7975 cat >conftest.$ac_ext <<_ACEOF
7978 cat confdefs.h >>conftest.$ac_ext
7979 cat >>conftest.$ac_ext <<_ACEOF
7980 /* end confdefs.h. */
7981 $ac_includes_default
7982 @%:@include <$ac_header>
7984 rm -f conftest.$ac_objext
7985 if { (ac_try="$ac_compile"
7987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7988 *) ac_try_echo=$ac_try;;
7990 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7991 $as_echo "$ac_try_echo") >&5
7992 (eval "$ac_compile") 2>conftest.er1
7994 grep -v '^ *+' conftest.er1 >conftest.err
7996 cat conftest.err >&5
7997 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7998 (exit $ac_status); } && {
7999 test -z "$ac_c_werror_flag" ||
8000 test ! -s conftest.err
8001 } && test -s conftest.$ac_objext; then
8002 ac_header_compiler=yes
8004 $as_echo "$as_me: failed program was:" >&5
8005 sed 's/^/| /' conftest.$ac_ext >&5
8007 ac_header_compiler=no
8010 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8011 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8012 $as_echo "$ac_header_compiler" >&6; }
8014 # Is the header present?
8015 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
8016 $as_echo_n "checking $ac_header presence... " >&6; }
8017 cat >conftest.$ac_ext <<_ACEOF
8020 cat confdefs.h >>conftest.$ac_ext
8021 cat >>conftest.$ac_ext <<_ACEOF
8022 /* end confdefs.h. */
8023 @%:@include <$ac_header>
8025 if { (ac_try="$ac_cpp conftest.$ac_ext"
8027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8028 *) ac_try_echo=$ac_try;;
8030 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8031 $as_echo "$ac_try_echo") >&5
8032 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8034 grep -v '^ *+' conftest.er1 >conftest.err
8036 cat conftest.err >&5
8037 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8038 (exit $ac_status); } >/dev/null && {
8039 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8040 test ! -s conftest.err
8042 ac_header_preproc=yes
8044 $as_echo "$as_me: failed program was:" >&5
8045 sed 's/^/| /' conftest.$ac_ext >&5
8047 ac_header_preproc=no
8050 rm -f conftest.err conftest.$ac_ext
8051 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8052 $as_echo "$ac_header_preproc" >&6; }
8054 # So? What about this header?
8055 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8057 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8058 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8059 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8060 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8061 ac_header_preproc=yes
8064 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8065 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8066 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8067 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8068 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8069 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8070 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8071 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8072 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8073 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8074 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8075 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8077 @%:@@%:@ ------------------------------- @%:@@%:@
8078 @%:@@%:@ Report this to bug-bash@gnu.org @%:@@%:@
8079 @%:@@%:@ ------------------------------- @%:@@%:@
8081 ) | sed "s/^/$as_me: WARNING: /" >&2
8084 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8085 $as_echo_n "checking for $ac_header... " >&6; }
8086 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8087 $as_echo_n "(cached) " >&6
8089 eval "$as_ac_Header=\$ac_header_preproc"
8091 ac_res=`eval 'as_val=${'$as_ac_Header'}
8092 $as_echo "$as_val"'`
8093 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8094 $as_echo "$ac_res" >&6; }
8097 as_val=`eval 'as_val=${'$as_ac_Header'}
8098 $as_echo "$as_val"'`
8099 if test "x$as_val" = x""yes; then
8100 cat >>confdefs.h <<_ACEOF
8101 @%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8109 for ac_func in getpagesize
8111 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8112 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
8113 $as_echo_n "checking for $ac_func... " >&6; }
8114 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8115 $as_echo_n "(cached) " >&6
8117 cat >conftest.$ac_ext <<_ACEOF
8120 cat confdefs.h >>conftest.$ac_ext
8121 cat >>conftest.$ac_ext <<_ACEOF
8122 /* end confdefs.h. */
8123 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8124 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8125 #define $ac_func innocuous_$ac_func
8127 /* System header to define __stub macros and hopefully few prototypes,
8128 which can conflict with char $ac_func (); below.
8129 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8130 <limits.h> exists even on freestanding compilers. */
8133 # include <limits.h>
8135 # include <assert.h>
8140 /* Override any GCC internal prototype to avoid an error.
8141 Use char because int might match the return type of a GCC
8142 builtin and then its argument prototype would still apply. */
8147 /* The GNU C library defines this for functions which it implements
8148 to always fail with ENOSYS. Some functions are actually named
8149 something starting with __ and the normal name is an alias. */
8150 #if defined __stub_$ac_func || defined __stub___$ac_func
8162 rm -f conftest.$ac_objext conftest$ac_exeext
8163 if { (ac_try="$ac_link"
8165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8166 *) ac_try_echo=$ac_try;;
8168 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8169 $as_echo "$ac_try_echo") >&5
8170 (eval "$ac_link") 2>conftest.er1
8172 grep -v '^ *+' conftest.er1 >conftest.err
8174 cat conftest.err >&5
8175 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8176 (exit $ac_status); } && {
8177 test -z "$ac_c_werror_flag" ||
8178 test ! -s conftest.err
8179 } && test -s conftest$ac_exeext && {
8180 test "$cross_compiling" = yes ||
8181 $as_test_x conftest$ac_exeext
8183 eval "$as_ac_var=yes"
8185 $as_echo "$as_me: failed program was:" >&5
8186 sed 's/^/| /' conftest.$ac_ext >&5
8188 eval "$as_ac_var=no"
8191 rm -rf conftest.dSYM
8192 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8193 conftest$ac_exeext conftest.$ac_ext
8195 ac_res=`eval 'as_val=${'$as_ac_var'}
8196 $as_echo "$as_val"'`
8197 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8198 $as_echo "$ac_res" >&6; }
8199 as_val=`eval 'as_val=${'$as_ac_var'}
8200 $as_echo "$as_val"'`
8201 if test "x$as_val" = x""yes; then
8202 cat >>confdefs.h <<_ACEOF
8203 @%:@define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8209 { $as_echo "$as_me:$LINENO: checking for working mmap" >&5
8210 $as_echo_n "checking for working mmap... " >&6; }
8211 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
8212 $as_echo_n "(cached) " >&6
8214 if test "$cross_compiling" = yes; then
8215 ac_cv_func_mmap_fixed_mapped=no
8217 cat >conftest.$ac_ext <<_ACEOF
8220 cat confdefs.h >>conftest.$ac_ext
8221 cat >>conftest.$ac_ext <<_ACEOF
8222 /* end confdefs.h. */
8223 $ac_includes_default
8224 /* malloc might have been renamed as rpl_malloc. */
8227 /* Thanks to Mike Haertel and Jim Avera for this test.
8228 Here is a matrix of mmap possibilities:
8229 mmap private not fixed
8230 mmap private fixed at somewhere currently unmapped
8231 mmap private fixed at somewhere already mapped
8232 mmap shared not fixed
8233 mmap shared fixed at somewhere currently unmapped
8234 mmap shared fixed at somewhere already mapped
8235 For private mappings, we should verify that changes cannot be read()
8236 back from the file, nor mmap's back from the file at a different
8237 address. (There have been systems where private was not correctly
8238 implemented like the infamous i386 svr4.0, and systems where the
8239 VM page cache was not coherent with the file system buffer cache
8240 like early versions of FreeBSD and possibly contemporary NetBSD.)
8241 For shared mappings, we should conversely verify that changes get
8242 propagated back to all the places they're supposed to be.
8244 Grep wants private fixed already mapped.
8245 The main things grep needs to know about mmap are:
8246 * does it exist and is it safe to write into the mmap'd area
8247 * how to use it (BSD variants) */
8250 #include <sys/mman.h>
8252 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
8256 /* This mess was copied from the GNU getpagesize.h. */
8257 #ifndef HAVE_GETPAGESIZE
8258 /* Assume that all systems that can run configure have sys/param.h. */
8259 # ifndef HAVE_SYS_PARAM_H
8260 # define HAVE_SYS_PARAM_H 1
8263 # ifdef _SC_PAGESIZE
8264 # define getpagesize() sysconf(_SC_PAGESIZE)
8265 # else /* no _SC_PAGESIZE */
8266 # ifdef HAVE_SYS_PARAM_H
8267 # include <sys/param.h>
8268 # ifdef EXEC_PAGESIZE
8269 # define getpagesize() EXEC_PAGESIZE
8270 # else /* no EXEC_PAGESIZE */
8272 # define getpagesize() NBPG * CLSIZE
8275 # endif /* no CLSIZE */
8276 # else /* no NBPG */
8278 # define getpagesize() NBPC
8279 # else /* no NBPC */
8281 # define getpagesize() PAGESIZE
8282 # endif /* PAGESIZE */
8283 # endif /* no NBPC */
8284 # endif /* no NBPG */
8285 # endif /* no EXEC_PAGESIZE */
8286 # else /* no HAVE_SYS_PARAM_H */
8287 # define getpagesize() 8192 /* punt totally */
8288 # endif /* no HAVE_SYS_PARAM_H */
8289 # endif /* no _SC_PAGESIZE */
8291 #endif /* no HAVE_GETPAGESIZE */
8296 char *data, *data2, *data3;
8300 pagesize = getpagesize ();
8302 /* First, make a file with some known garbage in it. */
8303 data = (char *) malloc (pagesize);
8306 for (i = 0; i < pagesize; ++i)
8307 *(data + i) = rand ();
8309 fd = creat ("conftest.mmap", 0600);
8312 if (write (fd, data, pagesize) != pagesize)
8316 /* Next, try to mmap the file at a fixed address which already has
8317 something else allocated at it. If we can, also make sure that
8318 we see the same garbage. */
8319 fd = open ("conftest.mmap", O_RDWR);
8322 data2 = (char *) malloc (2 * pagesize);
8325 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
8326 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
8327 MAP_PRIVATE | MAP_FIXED, fd, 0L))
8329 for (i = 0; i < pagesize; ++i)
8330 if (*(data + i) != *(data2 + i))
8333 /* Finally, make sure that changes to the mapped area do not
8334 percolate back to the file as seen by read(). (This is a bug on
8335 some variants of i386 svr4.0.) */
8336 for (i = 0; i < pagesize; ++i)
8337 *(data2 + i) = *(data2 + i) + 1;
8338 data3 = (char *) malloc (pagesize);
8341 if (read (fd, data3, pagesize) != pagesize)
8343 for (i = 0; i < pagesize; ++i)
8344 if (*(data + i) != *(data3 + i))
8350 rm -f conftest$ac_exeext
8351 if { (ac_try="$ac_link"
8353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8354 *) ac_try_echo=$ac_try;;
8356 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8357 $as_echo "$ac_try_echo") >&5
8358 (eval "$ac_link") 2>&5
8360 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8361 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8362 { (case "(($ac_try" in
8363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8364 *) ac_try_echo=$ac_try;;
8366 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8367 $as_echo "$ac_try_echo") >&5
8368 (eval "$ac_try") 2>&5
8370 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8371 (exit $ac_status); }; }; then
8372 ac_cv_func_mmap_fixed_mapped=yes
8374 $as_echo "$as_me: program exited with status $ac_status" >&5
8375 $as_echo "$as_me: failed program was:" >&5
8376 sed 's/^/| /' conftest.$ac_ext >&5
8379 ac_cv_func_mmap_fixed_mapped=no
8381 rm -rf conftest.dSYM
8382 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8387 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
8388 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
8389 if test $ac_cv_func_mmap_fixed_mapped = yes; then
8391 cat >>confdefs.h <<\_ACEOF
8392 @%:@define HAVE_MMAP 1
8399 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
8400 $as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; }
8401 if test "${ac_cv_gnu_library_2_1+set}" = set; then
8402 $as_echo_n "(cached) " >&6
8404 cat >conftest.$ac_ext <<_ACEOF
8407 cat confdefs.h >>conftest.$ac_ext
8408 cat >>conftest.$ac_ext <<_ACEOF
8409 /* end confdefs.h. */
8411 #include <features.h>
8412 #ifdef __GNU_LIBRARY__
8413 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
8419 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8420 $EGREP "Lucky GNU user" >/dev/null 2>&1; then
8421 ac_cv_gnu_library_2_1=yes
8423 ac_cv_gnu_library_2_1=no
8430 { $as_echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
8431 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
8433 GLIBC21="$ac_cv_gnu_library_2_1"
8438 { $as_echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
8439 $as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; }
8440 if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
8441 $as_echo_n "(cached) " >&6
8444 if test "$cross_compiling" = yes; then
8446 # Guess based on the CPU.
8448 alpha* | i3456786 | m68k | s390*)
8449 gt_cv_int_divbyzero_sigfpe="guessing yes";;
8451 gt_cv_int_divbyzero_sigfpe="guessing no";;
8455 cat >conftest.$ac_ext <<_ACEOF
8458 cat confdefs.h >>conftest.$ac_ext
8459 cat >>conftest.$ac_ext <<_ACEOF
8460 /* end confdefs.h. */
8467 sigfpe_handler (int sig)
8469 sigfpe_handler (sig) int sig;
8472 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
8473 exit (sig != SIGFPE);
8483 signal (SIGFPE, sigfpe_handler);
8484 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
8485 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
8486 signal (SIGTRAP, sigfpe_handler);
8488 /* Linux/SPARC yields signal SIGILL. */
8489 #if defined (__sparc__) && defined (__linux__)
8490 signal (SIGILL, sigfpe_handler);
8499 rm -f conftest$ac_exeext
8500 if { (ac_try="$ac_link"
8502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8503 *) ac_try_echo=$ac_try;;
8505 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8506 $as_echo "$ac_try_echo") >&5
8507 (eval "$ac_link") 2>&5
8509 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8510 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8511 { (case "(($ac_try" in
8512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8513 *) ac_try_echo=$ac_try;;
8515 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8516 $as_echo "$ac_try_echo") >&5
8517 (eval "$ac_try") 2>&5
8519 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8520 (exit $ac_status); }; }; then
8521 gt_cv_int_divbyzero_sigfpe=yes
8523 $as_echo "$as_me: program exited with status $ac_status" >&5
8524 $as_echo "$as_me: failed program was:" >&5
8525 sed 's/^/| /' conftest.$ac_ext >&5
8528 gt_cv_int_divbyzero_sigfpe=no
8530 rm -rf conftest.dSYM
8531 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8537 { $as_echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
8538 $as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; }
8539 case "$gt_cv_int_divbyzero_sigfpe" in
8544 cat >>confdefs.h <<_ACEOF
8545 @%:@define INTDIV0_RAISES_SIGFPE $value
8550 { $as_echo "$as_me:$LINENO: checking for inttypes.h" >&5
8551 $as_echo_n "checking for inttypes.h... " >&6; }
8552 if test "${jm_ac_cv_header_inttypes_h+set}" = set; then
8553 $as_echo_n "(cached) " >&6
8555 cat >conftest.$ac_ext <<_ACEOF
8558 cat confdefs.h >>conftest.$ac_ext
8559 cat >>conftest.$ac_ext <<_ACEOF
8560 /* end confdefs.h. */
8561 #include <sys/types.h>
8562 #include <inttypes.h>
8566 uintmax_t i = (uintmax_t) -1;
8571 rm -f conftest.$ac_objext
8572 if { (ac_try="$ac_compile"
8574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8575 *) ac_try_echo=$ac_try;;
8577 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8578 $as_echo "$ac_try_echo") >&5
8579 (eval "$ac_compile") 2>conftest.er1
8581 grep -v '^ *+' conftest.er1 >conftest.err
8583 cat conftest.err >&5
8584 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8585 (exit $ac_status); } && {
8586 test -z "$ac_c_werror_flag" ||
8587 test ! -s conftest.err
8588 } && test -s conftest.$ac_objext; then
8589 jm_ac_cv_header_inttypes_h=yes
8591 $as_echo "$as_me: failed program was:" >&5
8592 sed 's/^/| /' conftest.$ac_ext >&5
8594 jm_ac_cv_header_inttypes_h=no
8597 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8599 { $as_echo "$as_me:$LINENO: result: $jm_ac_cv_header_inttypes_h" >&5
8600 $as_echo "$jm_ac_cv_header_inttypes_h" >&6; }
8601 if test $jm_ac_cv_header_inttypes_h = yes; then
8603 cat >>confdefs.h <<_ACEOF
8604 @%:@define HAVE_INTTYPES_H_WITH_UINTMAX 1
8610 { $as_echo "$as_me:$LINENO: checking for stdint.h" >&5
8611 $as_echo_n "checking for stdint.h... " >&6; }
8612 if test "${jm_ac_cv_header_stdint_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>
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_stdint_h=yes
8651 $as_echo "$as_me: failed program was:" >&5
8652 sed 's/^/| /' conftest.$ac_ext >&5
8654 jm_ac_cv_header_stdint_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_stdint_h" >&5
8660 $as_echo "$jm_ac_cv_header_stdint_h" >&6; }
8661 if test $jm_ac_cv_header_stdint_h = yes; then
8663 cat >>confdefs.h <<_ACEOF
8664 @%:@define HAVE_STDINT_H_WITH_UINTMAX 1
8670 { $as_echo "$as_me:$LINENO: checking for unsigned long long" >&5
8671 $as_echo_n "checking for unsigned long long... " >&6; }
8672 if test "${ac_cv_type_unsigned_long_long+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 unsigned long long ull = 1; int i = 63;
8685 unsigned long long ullmax = (unsigned long long) -1;
8686 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
8691 rm -f conftest.$ac_objext conftest$ac_exeext
8692 if { (ac_try="$ac_link"
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_link") 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_exeext && {
8709 test "$cross_compiling" = yes ||
8710 $as_test_x conftest$ac_exeext
8712 ac_cv_type_unsigned_long_long=yes
8714 $as_echo "$as_me: failed program was:" >&5
8715 sed 's/^/| /' conftest.$ac_ext >&5
8717 ac_cv_type_unsigned_long_long=no
8720 rm -rf conftest.dSYM
8721 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8722 conftest$ac_exeext conftest.$ac_ext
8724 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
8725 $as_echo "$ac_cv_type_unsigned_long_long" >&6; }
8726 if test $ac_cv_type_unsigned_long_long = yes; then
8728 cat >>confdefs.h <<\_ACEOF
8729 @%:@define HAVE_UNSIGNED_LONG_LONG 1
8737 if test $jm_ac_cv_header_inttypes_h = no && test $jm_ac_cv_header_stdint_h = no; then
8739 test $ac_cv_type_unsigned_long_long = yes \
8740 && ac_type='unsigned long long' \
8741 || ac_type='unsigned long'
8743 cat >>confdefs.h <<_ACEOF
8744 @%:@define uintmax_t $ac_type
8749 cat >>confdefs.h <<\_ACEOF
8750 @%:@define HAVE_UINTMAX_T 1
8756 { $as_echo "$as_me:$LINENO: checking for inttypes.h" >&5
8757 $as_echo_n "checking for inttypes.h... " >&6; }
8758 if test "${gt_cv_header_inttypes_h+set}" = set; then
8759 $as_echo_n "(cached) " >&6
8762 cat >conftest.$ac_ext <<_ACEOF
8765 cat confdefs.h >>conftest.$ac_ext
8766 cat >>conftest.$ac_ext <<_ACEOF
8767 /* end confdefs.h. */
8768 #include <sys/types.h>
8769 #include <inttypes.h>
8778 rm -f conftest.$ac_objext
8779 if { (ac_try="$ac_compile"
8781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8782 *) ac_try_echo=$ac_try;;
8784 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8785 $as_echo "$ac_try_echo") >&5
8786 (eval "$ac_compile") 2>conftest.er1
8788 grep -v '^ *+' conftest.er1 >conftest.err
8790 cat conftest.err >&5
8791 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8792 (exit $ac_status); } && {
8793 test -z "$ac_c_werror_flag" ||
8794 test ! -s conftest.err
8795 } && test -s conftest.$ac_objext; then
8796 gt_cv_header_inttypes_h=yes
8798 $as_echo "$as_me: failed program was:" >&5
8799 sed 's/^/| /' conftest.$ac_ext >&5
8801 gt_cv_header_inttypes_h=no
8804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8807 { $as_echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
8808 $as_echo "$gt_cv_header_inttypes_h" >&6; }
8809 if test $gt_cv_header_inttypes_h = yes; then
8811 cat >>confdefs.h <<_ACEOF
8812 @%:@define HAVE_INTTYPES_H 1
8819 if test $gt_cv_header_inttypes_h = yes; then
8820 { $as_echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
8821 $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
8822 if test "${gt_cv_inttypes_pri_broken+set}" = set; then
8823 $as_echo_n "(cached) " >&6
8826 cat >conftest.$ac_ext <<_ACEOF
8829 cat confdefs.h >>conftest.$ac_ext
8830 cat >>conftest.$ac_ext <<_ACEOF
8831 /* end confdefs.h. */
8832 #include <inttypes.h>
8845 rm -f conftest.$ac_objext
8846 if { (ac_try="$ac_compile"
8848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8849 *) ac_try_echo=$ac_try;;
8851 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8852 $as_echo "$ac_try_echo") >&5
8853 (eval "$ac_compile") 2>conftest.er1
8855 grep -v '^ *+' conftest.er1 >conftest.err
8857 cat conftest.err >&5
8858 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8859 (exit $ac_status); } && {
8860 test -z "$ac_c_werror_flag" ||
8861 test ! -s conftest.err
8862 } && test -s conftest.$ac_objext; then
8863 gt_cv_inttypes_pri_broken=no
8865 $as_echo "$as_me: failed program was:" >&5
8866 sed 's/^/| /' conftest.$ac_ext >&5
8868 gt_cv_inttypes_pri_broken=yes
8871 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8874 { $as_echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
8875 $as_echo "$gt_cv_inttypes_pri_broken" >&6; }
8877 if test "$gt_cv_inttypes_pri_broken" = yes; then
8879 cat >>confdefs.h <<_ACEOF
8880 @%:@define PRI_MACROS_BROKEN 1
8886 if test "X$prefix" = "XNONE"; then
8887 acl_final_prefix="$ac_default_prefix"
8889 acl_final_prefix="$prefix"
8891 if test "X$exec_prefix" = "XNONE"; then
8892 acl_final_exec_prefix='${prefix}'
8894 acl_final_exec_prefix="$exec_prefix"
8896 acl_save_prefix="$prefix"
8897 prefix="$acl_final_prefix"
8898 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
8899 prefix="$acl_save_prefix"
8902 @%:@ Check whether --with-gnu-ld was given.
8903 if test "${with_gnu_ld+set}" = set; then
8904 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
8909 # Prepare PATH_SEPARATOR.
8910 # The user is always right.
8911 if test "${PATH_SEPARATOR+set}" != set; then
8912 echo "#! /bin/sh" >conf$$.sh
8913 echo "exit 0" >>conf$$.sh
8915 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
8923 if test "$GCC" = yes; then
8924 # Check if gcc -print-prog-name=ld gives a path.
8925 { $as_echo "$as_me:$LINENO: checking for ld used by GCC" >&5
8926 $as_echo_n "checking for ld used by GCC... " >&6; }
8929 # gcc leaves a trailing carriage return which upsets mingw
8930 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
8932 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
8935 # Accept absolute paths.
8936 [\\/]* | [A-Za-z]:[\\/]*)
8937 re_direlt='/[^/][^/]*/\.\./'
8938 # Canonicalize the path of ld
8939 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
8940 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
8941 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
8943 test -z "$LD" && LD="$ac_prog"
8946 # If it fails, then pretend we aren't using GCC.
8950 # If it is relative, then search for the first ld in PATH.
8954 elif test "$with_gnu_ld" = yes; then
8955 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
8956 $as_echo_n "checking for GNU ld... " >&6; }
8958 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
8959 $as_echo_n "checking for non-GNU ld... " >&6; }
8961 if test "${acl_cv_path_LD+set}" = set; then
8962 $as_echo_n "(cached) " >&6
8964 if test -z "$LD"; then
8965 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
8966 for ac_dir in $PATH; do
8967 test -z "$ac_dir" && ac_dir=.
8968 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
8969 acl_cv_path_LD="$ac_dir/$ac_prog"
8970 # Check to see if the program is GNU ld. I'd rather use --version,
8971 # but apparently some GNU ld's only accept -v.
8972 # Break only if it was the GNU/non-GNU ld that we prefer.
8973 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
8974 test "$with_gnu_ld" != no && break
8976 test "$with_gnu_ld" != yes && break
8982 acl_cv_path_LD="$LD" # Let the user override the test with a path.
8986 LD="$acl_cv_path_LD"
8987 if test -n "$LD"; then
8988 { $as_echo "$as_me:$LINENO: result: $LD" >&5
8989 $as_echo "$LD" >&6; }
8991 { $as_echo "$as_me:$LINENO: result: no" >&5
8992 $as_echo "no" >&6; }
8994 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
8995 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
8996 { (exit 1); exit 1; }; }
8997 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
8998 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
8999 if test "${acl_cv_prog_gnu_ld+set}" = set; then
9000 $as_echo_n "(cached) " >&6
9002 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9003 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
9004 acl_cv_prog_gnu_ld=yes
9006 acl_cv_prog_gnu_ld=no
9009 { $as_echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
9010 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
9011 with_gnu_ld=$acl_cv_prog_gnu_ld
9015 { $as_echo "$as_me:$LINENO: checking for shared library run path origin" >&5
9016 $as_echo_n "checking for shared library run path origin... " >&6; }
9017 if test "${acl_cv_rpath+set}" = set; then
9018 $as_echo_n "(cached) " >&6
9021 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
9022 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
9028 { $as_echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
9029 $as_echo "$acl_cv_rpath" >&6; }
9031 libext="$acl_cv_libext"
9032 shlibext="$acl_cv_shlibext"
9033 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
9034 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
9035 hardcode_direct="$acl_cv_hardcode_direct"
9036 hardcode_minus_L="$acl_cv_hardcode_minus_L"
9037 @%:@ Check whether --enable-rpath was given.
9038 if test "${enable_rpath+set}" = set; then
9039 enableval=$enable_rpath; :
9053 acl_save_prefix="$prefix"
9054 prefix="$acl_final_prefix"
9055 acl_save_exec_prefix="$exec_prefix"
9056 exec_prefix="$acl_final_exec_prefix"
9058 eval additional_includedir=\"$includedir\"
9059 eval additional_libdir=\"$libdir\"
9061 exec_prefix="$acl_save_exec_prefix"
9062 prefix="$acl_save_prefix"
9065 @%:@ Check whether --with-libiconv-prefix was given.
9066 if test "${with_libiconv_prefix+set}" = set; then
9067 withval=$with_libiconv_prefix;
9068 if test "X$withval" = "Xno"; then
9071 if test "X$withval" = "X"; then
9073 acl_save_prefix="$prefix"
9074 prefix="$acl_final_prefix"
9075 acl_save_exec_prefix="$exec_prefix"
9076 exec_prefix="$acl_final_exec_prefix"
9078 eval additional_includedir=\"$includedir\"
9079 eval additional_libdir=\"$libdir\"
9081 exec_prefix="$acl_save_exec_prefix"
9082 prefix="$acl_save_prefix"
9085 additional_includedir="$withval/include"
9086 additional_libdir="$withval/lib"
9097 names_already_handled=
9098 names_next_round='iconv '
9099 while test -n "$names_next_round"; do
9100 names_this_round="$names_next_round"
9102 for name in $names_this_round; do
9104 for n in $names_already_handled; do
9105 if test "$n" = "$name"; then
9110 if test -z "$already_handled"; then
9111 names_already_handled="$names_already_handled $name"
9112 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9113 eval value=\"\$HAVE_LIB$uppername\"
9114 if test -n "$value"; then
9115 if test "$value" = yes; then
9116 eval value=\"\$LIB$uppername\"
9117 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
9118 eval value=\"\$LTLIB$uppername\"
9119 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
9128 if test $use_additional = yes; then
9129 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
9130 found_dir="$additional_libdir"
9131 found_so="$additional_libdir/lib$name.$shlibext"
9132 if test -f "$additional_libdir/lib$name.la"; then
9133 found_la="$additional_libdir/lib$name.la"
9136 if test -f "$additional_libdir/lib$name.$libext"; then
9137 found_dir="$additional_libdir"
9138 found_a="$additional_libdir/lib$name.$libext"
9139 if test -f "$additional_libdir/lib$name.la"; then
9140 found_la="$additional_libdir/lib$name.la"
9145 if test "X$found_dir" = "X"; then
9146 for x in $LDFLAGS $LTLIBICONV; do
9148 acl_save_prefix="$prefix"
9149 prefix="$acl_final_prefix"
9150 acl_save_exec_prefix="$exec_prefix"
9151 exec_prefix="$acl_final_exec_prefix"
9153 exec_prefix="$acl_save_exec_prefix"
9154 prefix="$acl_save_prefix"
9158 dir=`echo "X$x" | sed -e 's/^X-L//'`
9159 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
9161 found_so="$dir/lib$name.$shlibext"
9162 if test -f "$dir/lib$name.la"; then
9163 found_la="$dir/lib$name.la"
9166 if test -f "$dir/lib$name.$libext"; then
9168 found_a="$dir/lib$name.$libext"
9169 if test -f "$dir/lib$name.la"; then
9170 found_la="$dir/lib$name.la"
9176 if test "X$found_dir" != "X"; then
9181 if test "X$found_dir" != "X"; then
9182 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
9183 if test "X$found_so" != "X"; then
9184 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
9185 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9188 for x in $ltrpathdirs; do
9189 if test "X$x" = "X$found_dir"; then
9194 if test -z "$haveit"; then
9195 ltrpathdirs="$ltrpathdirs $found_dir"
9197 if test "$hardcode_direct" = yes; then
9198 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9200 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
9201 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9203 for x in $rpathdirs; do
9204 if test "X$x" = "X$found_dir"; then
9209 if test -z "$haveit"; then
9210 rpathdirs="$rpathdirs $found_dir"
9214 for x in $LDFLAGS $LIBICONV; do
9216 acl_save_prefix="$prefix"
9217 prefix="$acl_final_prefix"
9218 acl_save_exec_prefix="$exec_prefix"
9219 exec_prefix="$acl_final_exec_prefix"
9221 exec_prefix="$acl_save_exec_prefix"
9222 prefix="$acl_save_prefix"
9224 if test "X$x" = "X-L$found_dir"; then
9229 if test -z "$haveit"; then
9230 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
9232 if test "$hardcode_minus_L" != no; then
9233 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9235 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9241 if test "X$found_a" != "X"; then
9242 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
9244 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
9247 additional_includedir=
9248 case "$found_dir" in
9250 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
9251 additional_includedir="$basedir/include"
9254 if test "X$additional_includedir" != "X"; then
9255 if test "X$additional_includedir" != "X/usr/include"; then
9257 if test "X$additional_includedir" = "X/usr/local/include"; then
9258 if test -n "$GCC"; then
9260 linux*) haveit=yes;;
9264 if test -z "$haveit"; then
9265 for x in $CPPFLAGS $INCICONV; do
9267 acl_save_prefix="$prefix"
9268 prefix="$acl_final_prefix"
9269 acl_save_exec_prefix="$exec_prefix"
9270 exec_prefix="$acl_final_exec_prefix"
9272 exec_prefix="$acl_save_exec_prefix"
9273 prefix="$acl_save_prefix"
9275 if test "X$x" = "X-I$additional_includedir"; then
9280 if test -z "$haveit"; then
9281 if test -d "$additional_includedir"; then
9282 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
9288 if test -n "$found_la"; then
9289 save_libdir="$libdir"
9291 */* | *\\*) . "$found_la" ;;
9292 *) . "./$found_la" ;;
9294 libdir="$save_libdir"
9295 for dep in $dependency_libs; do
9298 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
9299 if test "X$additional_libdir" != "X/usr/lib"; then
9301 if test "X$additional_libdir" = "X/usr/local/lib"; then
9302 if test -n "$GCC"; then
9304 linux*) haveit=yes;;
9308 if test -z "$haveit"; then
9310 for x in $LDFLAGS $LIBICONV; do
9312 acl_save_prefix="$prefix"
9313 prefix="$acl_final_prefix"
9314 acl_save_exec_prefix="$exec_prefix"
9315 exec_prefix="$acl_final_exec_prefix"
9317 exec_prefix="$acl_save_exec_prefix"
9318 prefix="$acl_save_prefix"
9320 if test "X$x" = "X-L$additional_libdir"; then
9325 if test -z "$haveit"; then
9326 if test -d "$additional_libdir"; then
9327 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
9331 for x in $LDFLAGS $LTLIBICONV; do
9333 acl_save_prefix="$prefix"
9334 prefix="$acl_final_prefix"
9335 acl_save_exec_prefix="$exec_prefix"
9336 exec_prefix="$acl_final_exec_prefix"
9338 exec_prefix="$acl_save_exec_prefix"
9339 prefix="$acl_save_prefix"
9341 if test "X$x" = "X-L$additional_libdir"; then
9346 if test -z "$haveit"; then
9347 if test -d "$additional_libdir"; then
9348 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
9355 dir=`echo "X$dep" | sed -e 's/^X-R//'`
9356 if test "$enable_rpath" != no; then
9358 for x in $rpathdirs; do
9359 if test "X$x" = "X$dir"; then
9364 if test -z "$haveit"; then
9365 rpathdirs="$rpathdirs $dir"
9368 for x in $ltrpathdirs; do
9369 if test "X$x" = "X$dir"; then
9374 if test -z "$haveit"; then
9375 ltrpathdirs="$ltrpathdirs $dir"
9380 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9383 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9386 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
9387 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
9393 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9394 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
9400 if test "X$rpathdirs" != "X"; then
9401 if test -n "$hardcode_libdir_separator"; then
9403 for found_dir in $rpathdirs; do
9404 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
9406 acl_save_libdir="$libdir"
9408 eval flag=\"$hardcode_libdir_flag_spec\"
9409 libdir="$acl_save_libdir"
9410 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9412 for found_dir in $rpathdirs; do
9413 acl_save_libdir="$libdir"
9415 eval flag=\"$hardcode_libdir_flag_spec\"
9416 libdir="$acl_save_libdir"
9417 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9421 if test "X$ltrpathdirs" != "X"; then
9422 for found_dir in $ltrpathdirs; do
9423 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
9440 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
9441 stdlib.h string.h unistd.h sys/param.h
9443 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9444 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9445 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9446 $as_echo_n "checking for $ac_header... " >&6; }
9447 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9448 $as_echo_n "(cached) " >&6
9450 ac_res=`eval 'as_val=${'$as_ac_Header'}
9451 $as_echo "$as_val"'`
9452 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9453 $as_echo "$ac_res" >&6; }
9455 # Is the header compilable?
9456 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
9457 $as_echo_n "checking $ac_header usability... " >&6; }
9458 cat >conftest.$ac_ext <<_ACEOF
9461 cat confdefs.h >>conftest.$ac_ext
9462 cat >>conftest.$ac_ext <<_ACEOF
9463 /* end confdefs.h. */
9464 $ac_includes_default
9465 @%:@include <$ac_header>
9467 rm -f conftest.$ac_objext
9468 if { (ac_try="$ac_compile"
9470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9471 *) ac_try_echo=$ac_try;;
9473 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9474 $as_echo "$ac_try_echo") >&5
9475 (eval "$ac_compile") 2>conftest.er1
9477 grep -v '^ *+' conftest.er1 >conftest.err
9479 cat conftest.err >&5
9480 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9481 (exit $ac_status); } && {
9482 test -z "$ac_c_werror_flag" ||
9483 test ! -s conftest.err
9484 } && test -s conftest.$ac_objext; then
9485 ac_header_compiler=yes
9487 $as_echo "$as_me: failed program was:" >&5
9488 sed 's/^/| /' conftest.$ac_ext >&5
9490 ac_header_compiler=no
9493 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9494 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9495 $as_echo "$ac_header_compiler" >&6; }
9497 # Is the header present?
9498 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
9499 $as_echo_n "checking $ac_header presence... " >&6; }
9500 cat >conftest.$ac_ext <<_ACEOF
9503 cat confdefs.h >>conftest.$ac_ext
9504 cat >>conftest.$ac_ext <<_ACEOF
9505 /* end confdefs.h. */
9506 @%:@include <$ac_header>
9508 if { (ac_try="$ac_cpp conftest.$ac_ext"
9510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9511 *) ac_try_echo=$ac_try;;
9513 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9514 $as_echo "$ac_try_echo") >&5
9515 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9517 grep -v '^ *+' conftest.er1 >conftest.err
9519 cat conftest.err >&5
9520 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9521 (exit $ac_status); } >/dev/null && {
9522 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9523 test ! -s conftest.err
9525 ac_header_preproc=yes
9527 $as_echo "$as_me: failed program was:" >&5
9528 sed 's/^/| /' conftest.$ac_ext >&5
9530 ac_header_preproc=no
9533 rm -f conftest.err conftest.$ac_ext
9534 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9535 $as_echo "$ac_header_preproc" >&6; }
9537 # So? What about this header?
9538 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9540 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9541 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9542 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9543 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9544 ac_header_preproc=yes
9547 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9548 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9549 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9550 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9551 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9552 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9553 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9554 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9555 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9556 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9557 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9558 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9560 @%:@@%:@ ------------------------------- @%:@@%:@
9561 @%:@@%:@ Report this to bug-bash@gnu.org @%:@@%:@
9562 @%:@@%:@ ------------------------------- @%:@@%:@
9564 ) | sed "s/^/$as_me: WARNING: /" >&2
9567 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9568 $as_echo_n "checking for $ac_header... " >&6; }
9569 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9570 $as_echo_n "(cached) " >&6
9572 eval "$as_ac_Header=\$ac_header_preproc"
9574 ac_res=`eval 'as_val=${'$as_ac_Header'}
9575 $as_echo "$as_val"'`
9576 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9577 $as_echo "$ac_res" >&6; }
9580 as_val=`eval 'as_val=${'$as_ac_Header'}
9581 $as_echo "$as_val"'`
9582 if test "x$as_val" = x""yes; then
9583 cat >>confdefs.h <<_ACEOF
9584 @%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9614 for ac_func in feof_unlocked fgets_unlocked getc_unlocked getcwd getegid \
9615 geteuid getgid getuid mempcpy munmap putenv setenv setlocale localeconv stpcpy \
9616 strcasecmp strdup strtoul tsearch __argz_count __argz_stringify __argz_next \
9619 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9620 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
9621 $as_echo_n "checking for $ac_func... " >&6; }
9622 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9623 $as_echo_n "(cached) " >&6
9625 cat >conftest.$ac_ext <<_ACEOF
9628 cat confdefs.h >>conftest.$ac_ext
9629 cat >>conftest.$ac_ext <<_ACEOF
9630 /* end confdefs.h. */
9631 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9632 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9633 #define $ac_func innocuous_$ac_func
9635 /* System header to define __stub macros and hopefully few prototypes,
9636 which can conflict with char $ac_func (); below.
9637 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9638 <limits.h> exists even on freestanding compilers. */
9641 # include <limits.h>
9643 # include <assert.h>
9648 /* Override any GCC internal prototype to avoid an error.
9649 Use char because int might match the return type of a GCC
9650 builtin and then its argument prototype would still apply. */
9655 /* The GNU C library defines this for functions which it implements
9656 to always fail with ENOSYS. Some functions are actually named
9657 something starting with __ and the normal name is an alias. */
9658 #if defined __stub_$ac_func || defined __stub___$ac_func
9670 rm -f conftest.$ac_objext conftest$ac_exeext
9671 if { (ac_try="$ac_link"
9673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9674 *) ac_try_echo=$ac_try;;
9676 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9677 $as_echo "$ac_try_echo") >&5
9678 (eval "$ac_link") 2>conftest.er1
9680 grep -v '^ *+' conftest.er1 >conftest.err
9682 cat conftest.err >&5
9683 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9684 (exit $ac_status); } && {
9685 test -z "$ac_c_werror_flag" ||
9686 test ! -s conftest.err
9687 } && test -s conftest$ac_exeext && {
9688 test "$cross_compiling" = yes ||
9689 $as_test_x conftest$ac_exeext
9691 eval "$as_ac_var=yes"
9693 $as_echo "$as_me: failed program was:" >&5
9694 sed 's/^/| /' conftest.$ac_ext >&5
9696 eval "$as_ac_var=no"
9699 rm -rf conftest.dSYM
9700 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9701 conftest$ac_exeext conftest.$ac_ext
9703 ac_res=`eval 'as_val=${'$as_ac_var'}
9704 $as_echo "$as_val"'`
9705 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9706 $as_echo "$ac_res" >&6; }
9707 as_val=`eval 'as_val=${'$as_ac_var'}
9708 $as_echo "$as_val"'`
9709 if test "x$as_val" = x""yes; then
9710 cat >>confdefs.h <<_ACEOF
9711 @%:@define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9723 am_save_CPPFLAGS="$CPPFLAGS"
9725 for element in $INCICONV; do
9727 for x in $CPPFLAGS; do
9729 acl_save_prefix="$prefix"
9730 prefix="$acl_final_prefix"
9731 acl_save_exec_prefix="$exec_prefix"
9732 exec_prefix="$acl_final_exec_prefix"
9734 exec_prefix="$acl_save_exec_prefix"
9735 prefix="$acl_save_prefix"
9737 if test "X$x" = "X$element"; then
9742 if test -z "$haveit"; then
9743 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
9748 { $as_echo "$as_me:$LINENO: checking for iconv" >&5
9749 $as_echo_n "checking for iconv... " >&6; }
9750 if test "${am_cv_func_iconv+set}" = set; then
9751 $as_echo_n "(cached) " >&6
9754 am_cv_func_iconv="no, consider installing GNU libiconv"
9756 cat >conftest.$ac_ext <<_ACEOF
9759 cat confdefs.h >>conftest.$ac_ext
9760 cat >>conftest.$ac_ext <<_ACEOF
9761 /* end confdefs.h. */
9767 iconv_t cd = iconv_open("","");
9768 iconv(cd,NULL,NULL,NULL,NULL);
9774 rm -f conftest.$ac_objext conftest$ac_exeext
9775 if { (ac_try="$ac_link"
9777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9778 *) ac_try_echo=$ac_try;;
9780 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9781 $as_echo "$ac_try_echo") >&5
9782 (eval "$ac_link") 2>conftest.er1
9784 grep -v '^ *+' conftest.er1 >conftest.err
9786 cat conftest.err >&5
9787 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9788 (exit $ac_status); } && {
9789 test -z "$ac_c_werror_flag" ||
9790 test ! -s conftest.err
9791 } && test -s conftest$ac_exeext && {
9792 test "$cross_compiling" = yes ||
9793 $as_test_x conftest$ac_exeext
9795 am_cv_func_iconv=yes
9797 $as_echo "$as_me: failed program was:" >&5
9798 sed 's/^/| /' conftest.$ac_ext >&5
9803 rm -rf conftest.dSYM
9804 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9805 conftest$ac_exeext conftest.$ac_ext
9806 if test "$am_cv_func_iconv" != yes; then
9807 am_save_LIBS="$LIBS"
9808 LIBS="$LIBS $LIBICONV"
9809 cat >conftest.$ac_ext <<_ACEOF
9812 cat confdefs.h >>conftest.$ac_ext
9813 cat >>conftest.$ac_ext <<_ACEOF
9814 /* end confdefs.h. */
9820 iconv_t cd = iconv_open("","");
9821 iconv(cd,NULL,NULL,NULL,NULL);
9827 rm -f conftest.$ac_objext conftest$ac_exeext
9828 if { (ac_try="$ac_link"
9830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9831 *) ac_try_echo=$ac_try;;
9833 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9834 $as_echo "$ac_try_echo") >&5
9835 (eval "$ac_link") 2>conftest.er1
9837 grep -v '^ *+' conftest.er1 >conftest.err
9839 cat conftest.err >&5
9840 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9841 (exit $ac_status); } && {
9842 test -z "$ac_c_werror_flag" ||
9843 test ! -s conftest.err
9844 } && test -s conftest$ac_exeext && {
9845 test "$cross_compiling" = yes ||
9846 $as_test_x conftest$ac_exeext
9849 am_cv_func_iconv=yes
9851 $as_echo "$as_me: failed program was:" >&5
9852 sed 's/^/| /' conftest.$ac_ext >&5
9857 rm -rf conftest.dSYM
9858 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9859 conftest$ac_exeext conftest.$ac_ext
9860 LIBS="$am_save_LIBS"
9864 { $as_echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
9865 $as_echo "$am_cv_func_iconv" >&6; }
9866 if test "$am_cv_func_iconv" = yes; then
9868 cat >>confdefs.h <<\_ACEOF
9869 @%:@define HAVE_ICONV 1
9873 if test "$am_cv_lib_iconv" = yes; then
9874 { $as_echo "$as_me:$LINENO: checking how to link with libiconv" >&5
9875 $as_echo_n "checking how to link with libiconv... " >&6; }
9876 { $as_echo "$as_me:$LINENO: result: $LIBICONV" >&5
9877 $as_echo "$LIBICONV" >&6; }
9879 CPPFLAGS="$am_save_CPPFLAGS"
9886 if test "$am_cv_func_iconv" = yes; then
9887 { $as_echo "$as_me:$LINENO: checking for iconv declaration" >&5
9888 $as_echo_n "checking for iconv declaration... " >&6; }
9889 if test "${am_cv_proto_iconv+set}" = set; then
9890 $as_echo_n "(cached) " >&6
9893 cat >conftest.$ac_ext <<_ACEOF
9896 cat confdefs.h >>conftest.$ac_ext
9897 cat >>conftest.$ac_ext <<_ACEOF
9898 /* end confdefs.h. */
9906 #if defined(__STDC__) || defined(__cplusplus)
9907 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
9920 rm -f conftest.$ac_objext
9921 if { (ac_try="$ac_compile"
9923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9924 *) ac_try_echo=$ac_try;;
9926 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9927 $as_echo "$ac_try_echo") >&5
9928 (eval "$ac_compile") 2>conftest.er1
9930 grep -v '^ *+' conftest.er1 >conftest.err
9932 cat conftest.err >&5
9933 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9934 (exit $ac_status); } && {
9935 test -z "$ac_c_werror_flag" ||
9936 test ! -s conftest.err
9937 } && test -s conftest.$ac_objext; then
9938 am_cv_proto_iconv_arg1=""
9940 $as_echo "$as_me: failed program was:" >&5
9941 sed 's/^/| /' conftest.$ac_ext >&5
9943 am_cv_proto_iconv_arg1="const"
9946 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9947 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);"
9950 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
9951 { $as_echo "$as_me:$LINENO: result: ${ac_t:-
9952 }$am_cv_proto_iconv" >&5
9954 }$am_cv_proto_iconv" >&6; }
9956 cat >>confdefs.h <<_ACEOF
9957 @%:@define ICONV_CONST $am_cv_proto_iconv_arg1
9963 { $as_echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
9964 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
9965 if test "${am_cv_langinfo_codeset+set}" = set; then
9966 $as_echo_n "(cached) " >&6
9968 cat >conftest.$ac_ext <<_ACEOF
9971 cat confdefs.h >>conftest.$ac_ext
9972 cat >>conftest.$ac_ext <<_ACEOF
9973 /* end confdefs.h. */
9974 #include <langinfo.h>
9978 char* cs = nl_langinfo(CODESET);
9983 rm -f conftest.$ac_objext conftest$ac_exeext
9984 if { (ac_try="$ac_link"
9986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9987 *) ac_try_echo=$ac_try;;
9989 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9990 $as_echo "$ac_try_echo") >&5
9991 (eval "$ac_link") 2>conftest.er1
9993 grep -v '^ *+' conftest.er1 >conftest.err
9995 cat conftest.err >&5
9996 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9997 (exit $ac_status); } && {
9998 test -z "$ac_c_werror_flag" ||
9999 test ! -s conftest.err
10000 } && test -s conftest$ac_exeext && {
10001 test "$cross_compiling" = yes ||
10002 $as_test_x conftest$ac_exeext
10004 am_cv_langinfo_codeset=yes
10006 $as_echo "$as_me: failed program was:" >&5
10007 sed 's/^/| /' conftest.$ac_ext >&5
10009 am_cv_langinfo_codeset=no
10012 rm -rf conftest.dSYM
10013 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10014 conftest$ac_exeext conftest.$ac_ext
10017 { $as_echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
10018 $as_echo "$am_cv_langinfo_codeset" >&6; }
10019 if test $am_cv_langinfo_codeset = yes; then
10021 cat >>confdefs.h <<\_ACEOF
10022 @%:@define HAVE_LANGINFO_CODESET 1
10027 if test $ac_cv_header_locale_h = yes; then
10029 { $as_echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
10030 $as_echo_n "checking for LC_MESSAGES... " >&6; }
10031 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
10032 $as_echo_n "(cached) " >&6
10034 cat >conftest.$ac_ext <<_ACEOF
10037 cat confdefs.h >>conftest.$ac_ext
10038 cat >>conftest.$ac_ext <<_ACEOF
10039 /* end confdefs.h. */
10040 #include <locale.h>
10049 rm -f conftest.$ac_objext conftest$ac_exeext
10050 if { (ac_try="$ac_link"
10051 case "(($ac_try" in
10052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10053 *) ac_try_echo=$ac_try;;
10055 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10056 $as_echo "$ac_try_echo") >&5
10057 (eval "$ac_link") 2>conftest.er1
10059 grep -v '^ *+' conftest.er1 >conftest.err
10061 cat conftest.err >&5
10062 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10063 (exit $ac_status); } && {
10064 test -z "$ac_c_werror_flag" ||
10065 test ! -s conftest.err
10066 } && test -s conftest$ac_exeext && {
10067 test "$cross_compiling" = yes ||
10068 $as_test_x conftest$ac_exeext
10070 am_cv_val_LC_MESSAGES=yes
10072 $as_echo "$as_me: failed program was:" >&5
10073 sed 's/^/| /' conftest.$ac_ext >&5
10075 am_cv_val_LC_MESSAGES=no
10078 rm -rf conftest.dSYM
10079 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10080 conftest$ac_exeext conftest.$ac_ext
10082 { $as_echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
10083 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
10084 if test $am_cv_val_LC_MESSAGES = yes; then
10086 cat >>confdefs.h <<\_ACEOF
10087 @%:@define HAVE_LC_MESSAGES 1
10094 for ac_prog in bison
10096 # Extract the first word of "$ac_prog", so it can be a program name with args.
10097 set dummy $ac_prog; ac_word=$2
10098 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10099 $as_echo_n "checking for $ac_word... " >&6; }
10100 if test "${ac_cv_prog_INTLBISON+set}" = set; then
10101 $as_echo_n "(cached) " >&6
10103 if test -n "$INTLBISON"; then
10104 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
10106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10107 for as_dir in $PATH
10110 test -z "$as_dir" && as_dir=.
10111 for ac_exec_ext in '' $ac_executable_extensions; do
10112 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10113 ac_cv_prog_INTLBISON="$ac_prog"
10114 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10123 INTLBISON=$ac_cv_prog_INTLBISON
10124 if test -n "$INTLBISON"; then
10125 { $as_echo "$as_me:$LINENO: result: $INTLBISON" >&5
10126 $as_echo "$INTLBISON" >&6; }
10128 { $as_echo "$as_me:$LINENO: result: no" >&5
10129 $as_echo "no" >&6; }
10133 test -n "$INTLBISON" && break
10136 if test -z "$INTLBISON"; then
10139 { $as_echo "$as_me:$LINENO: checking version of bison" >&5
10140 $as_echo_n "checking version of bison... " >&6; }
10141 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
10142 case $ac_prog_version in
10143 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
10144 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
10145 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
10146 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
10148 { $as_echo "$as_me:$LINENO: result: $ac_prog_version" >&5
10149 $as_echo "$ac_prog_version" >&6; }
10151 if test $ac_verc_fail = yes; then
10170 { $as_echo "$as_me:$LINENO: checking whether NLS is requested" >&5
10171 $as_echo_n "checking whether NLS is requested... " >&6; }
10172 @%:@ Check whether --enable-nls was given.
10173 if test "${enable_nls+set}" = set; then
10174 enableval=$enable_nls; USE_NLS=$enableval
10179 { $as_echo "$as_me:$LINENO: result: $USE_NLS" >&5
10180 $as_echo "$USE_NLS" >&6; }
10185 BUILD_INCLUDED_LIBINTL=no
10186 USE_INCLUDED_LIBINTL=no
10192 if test "$USE_NLS" = "yes"; then
10193 gt_use_preinstalled_gnugettext=no
10195 { $as_echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
10196 $as_echo_n "checking whether included gettext is requested... " >&6; }
10198 @%:@ Check whether --with-included-gettext was given.
10199 if test "${with_included_gettext+set}" = set; then
10200 withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
10202 nls_cv_force_use_gnu_gettext=no
10205 { $as_echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
10206 $as_echo "$nls_cv_force_use_gnu_gettext" >&6; }
10208 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
10209 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
10216 { $as_echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
10217 $as_echo_n "checking for GNU gettext in libc... " >&6; }
10218 if test "${gt_cv_func_gnugettext2_libc+set}" = set; then
10219 $as_echo_n "(cached) " >&6
10221 cat >conftest.$ac_ext <<_ACEOF
10224 cat confdefs.h >>conftest.$ac_ext
10225 cat >>conftest.$ac_ext <<_ACEOF
10226 /* end confdefs.h. */
10227 #include <libintl.h>
10228 extern int _nl_msg_cat_cntr;
10229 extern int *_nl_domain_bindings;
10233 bindtextdomain ("", "");
10234 return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_domain_bindings
10239 rm -f conftest.$ac_objext conftest$ac_exeext
10240 if { (ac_try="$ac_link"
10241 case "(($ac_try" in
10242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10243 *) ac_try_echo=$ac_try;;
10245 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10246 $as_echo "$ac_try_echo") >&5
10247 (eval "$ac_link") 2>conftest.er1
10249 grep -v '^ *+' conftest.er1 >conftest.err
10251 cat conftest.err >&5
10252 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10253 (exit $ac_status); } && {
10254 test -z "$ac_c_werror_flag" ||
10255 test ! -s conftest.err
10256 } && test -s conftest$ac_exeext && {
10257 test "$cross_compiling" = yes ||
10258 $as_test_x conftest$ac_exeext
10260 gt_cv_func_gnugettext2_libc=yes
10262 $as_echo "$as_me: failed program was:" >&5
10263 sed 's/^/| /' conftest.$ac_ext >&5
10265 gt_cv_func_gnugettext2_libc=no
10268 rm -rf conftest.dSYM
10269 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10270 conftest$ac_exeext conftest.$ac_ext
10272 { $as_echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext2_libc" >&5
10273 $as_echo "$gt_cv_func_gnugettext2_libc" >&6; }
10275 if test "$gt_cv_func_gnugettext2_libc" != "yes"; then
10281 acl_save_prefix="$prefix"
10282 prefix="$acl_final_prefix"
10283 acl_save_exec_prefix="$exec_prefix"
10284 exec_prefix="$acl_final_exec_prefix"
10286 eval additional_includedir=\"$includedir\"
10287 eval additional_libdir=\"$libdir\"
10289 exec_prefix="$acl_save_exec_prefix"
10290 prefix="$acl_save_prefix"
10293 @%:@ Check whether --with-libintl-prefix was given.
10294 if test "${with_libintl_prefix+set}" = set; then
10295 withval=$with_libintl_prefix;
10296 if test "X$withval" = "Xno"; then
10299 if test "X$withval" = "X"; then
10301 acl_save_prefix="$prefix"
10302 prefix="$acl_final_prefix"
10303 acl_save_exec_prefix="$exec_prefix"
10304 exec_prefix="$acl_final_exec_prefix"
10306 eval additional_includedir=\"$includedir\"
10307 eval additional_libdir=\"$libdir\"
10309 exec_prefix="$acl_save_exec_prefix"
10310 prefix="$acl_save_prefix"
10313 additional_includedir="$withval/include"
10314 additional_libdir="$withval/lib"
10325 names_already_handled=
10326 names_next_round='intl '
10327 while test -n "$names_next_round"; do
10328 names_this_round="$names_next_round"
10330 for name in $names_this_round; do
10332 for n in $names_already_handled; do
10333 if test "$n" = "$name"; then
10334 already_handled=yes
10338 if test -z "$already_handled"; then
10339 names_already_handled="$names_already_handled $name"
10340 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10341 eval value=\"\$HAVE_LIB$uppername\"
10342 if test -n "$value"; then
10343 if test "$value" = yes; then
10344 eval value=\"\$LIB$uppername\"
10345 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
10346 eval value=\"\$LTLIB$uppername\"
10347 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
10356 if test $use_additional = yes; then
10357 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10358 found_dir="$additional_libdir"
10359 found_so="$additional_libdir/lib$name.$shlibext"
10360 if test -f "$additional_libdir/lib$name.la"; then
10361 found_la="$additional_libdir/lib$name.la"
10364 if test -f "$additional_libdir/lib$name.$libext"; then
10365 found_dir="$additional_libdir"
10366 found_a="$additional_libdir/lib$name.$libext"
10367 if test -f "$additional_libdir/lib$name.la"; then
10368 found_la="$additional_libdir/lib$name.la"
10373 if test "X$found_dir" = "X"; then
10374 for x in $LDFLAGS $LTLIBINTL; do
10376 acl_save_prefix="$prefix"
10377 prefix="$acl_final_prefix"
10378 acl_save_exec_prefix="$exec_prefix"
10379 exec_prefix="$acl_final_exec_prefix"
10381 exec_prefix="$acl_save_exec_prefix"
10382 prefix="$acl_save_prefix"
10386 dir=`echo "X$x" | sed -e 's/^X-L//'`
10387 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10389 found_so="$dir/lib$name.$shlibext"
10390 if test -f "$dir/lib$name.la"; then
10391 found_la="$dir/lib$name.la"
10394 if test -f "$dir/lib$name.$libext"; then
10396 found_a="$dir/lib$name.$libext"
10397 if test -f "$dir/lib$name.la"; then
10398 found_la="$dir/lib$name.la"
10404 if test "X$found_dir" != "X"; then
10409 if test "X$found_dir" != "X"; then
10410 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
10411 if test "X$found_so" != "X"; then
10412 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
10413 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10416 for x in $ltrpathdirs; do
10417 if test "X$x" = "X$found_dir"; then
10422 if test -z "$haveit"; then
10423 ltrpathdirs="$ltrpathdirs $found_dir"
10425 if test "$hardcode_direct" = yes; then
10426 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10428 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
10429 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10431 for x in $rpathdirs; do
10432 if test "X$x" = "X$found_dir"; then
10437 if test -z "$haveit"; then
10438 rpathdirs="$rpathdirs $found_dir"
10442 for x in $LDFLAGS $LIBINTL; do
10444 acl_save_prefix="$prefix"
10445 prefix="$acl_final_prefix"
10446 acl_save_exec_prefix="$exec_prefix"
10447 exec_prefix="$acl_final_exec_prefix"
10449 exec_prefix="$acl_save_exec_prefix"
10450 prefix="$acl_save_prefix"
10452 if test "X$x" = "X-L$found_dir"; then
10457 if test -z "$haveit"; then
10458 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
10460 if test "$hardcode_minus_L" != no; then
10461 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10463 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
10469 if test "X$found_a" != "X"; then
10470 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
10472 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
10475 additional_includedir=
10476 case "$found_dir" in
10478 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10479 additional_includedir="$basedir/include"
10482 if test "X$additional_includedir" != "X"; then
10483 if test "X$additional_includedir" != "X/usr/include"; then
10485 if test "X$additional_includedir" = "X/usr/local/include"; then
10486 if test -n "$GCC"; then
10488 linux*) haveit=yes;;
10492 if test -z "$haveit"; then
10493 for x in $CPPFLAGS $INCINTL; do
10495 acl_save_prefix="$prefix"
10496 prefix="$acl_final_prefix"
10497 acl_save_exec_prefix="$exec_prefix"
10498 exec_prefix="$acl_final_exec_prefix"
10500 exec_prefix="$acl_save_exec_prefix"
10501 prefix="$acl_save_prefix"
10503 if test "X$x" = "X-I$additional_includedir"; then
10508 if test -z "$haveit"; then
10509 if test -d "$additional_includedir"; then
10510 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
10516 if test -n "$found_la"; then
10517 save_libdir="$libdir"
10518 case "$found_la" in
10519 */* | *\\*) . "$found_la" ;;
10520 *) . "./$found_la" ;;
10522 libdir="$save_libdir"
10523 for dep in $dependency_libs; do
10526 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
10527 if test "X$additional_libdir" != "X/usr/lib"; then
10529 if test "X$additional_libdir" = "X/usr/local/lib"; then
10530 if test -n "$GCC"; then
10532 linux*) haveit=yes;;
10536 if test -z "$haveit"; then
10538 for x in $LDFLAGS $LIBINTL; do
10540 acl_save_prefix="$prefix"
10541 prefix="$acl_final_prefix"
10542 acl_save_exec_prefix="$exec_prefix"
10543 exec_prefix="$acl_final_exec_prefix"
10545 exec_prefix="$acl_save_exec_prefix"
10546 prefix="$acl_save_prefix"
10548 if test "X$x" = "X-L$additional_libdir"; then
10553 if test -z "$haveit"; then
10554 if test -d "$additional_libdir"; then
10555 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
10559 for x in $LDFLAGS $LTLIBINTL; do
10561 acl_save_prefix="$prefix"
10562 prefix="$acl_final_prefix"
10563 acl_save_exec_prefix="$exec_prefix"
10564 exec_prefix="$acl_final_exec_prefix"
10566 exec_prefix="$acl_save_exec_prefix"
10567 prefix="$acl_save_prefix"
10569 if test "X$x" = "X-L$additional_libdir"; then
10574 if test -z "$haveit"; then
10575 if test -d "$additional_libdir"; then
10576 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
10583 dir=`echo "X$dep" | sed -e 's/^X-R//'`
10584 if test "$enable_rpath" != no; then
10586 for x in $rpathdirs; do
10587 if test "X$x" = "X$dir"; then
10592 if test -z "$haveit"; then
10593 rpathdirs="$rpathdirs $dir"
10596 for x in $ltrpathdirs; do
10597 if test "X$x" = "X$dir"; then
10602 if test -z "$haveit"; then
10603 ltrpathdirs="$ltrpathdirs $dir"
10608 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10611 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10614 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
10615 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
10621 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
10622 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
10628 if test "X$rpathdirs" != "X"; then
10629 if test -n "$hardcode_libdir_separator"; then
10631 for found_dir in $rpathdirs; do
10632 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10634 acl_save_libdir="$libdir"
10636 eval flag=\"$hardcode_libdir_flag_spec\"
10637 libdir="$acl_save_libdir"
10638 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
10640 for found_dir in $rpathdirs; do
10641 acl_save_libdir="$libdir"
10642 libdir="$found_dir"
10643 eval flag=\"$hardcode_libdir_flag_spec\"
10644 libdir="$acl_save_libdir"
10645 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
10649 if test "X$ltrpathdirs" != "X"; then
10650 for found_dir in $ltrpathdirs; do
10651 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
10655 { $as_echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
10656 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
10657 if test "${gt_cv_func_gnugettext2_libintl+set}" = set; then
10658 $as_echo_n "(cached) " >&6
10660 gt_save_CPPFLAGS="$CPPFLAGS"
10661 CPPFLAGS="$CPPFLAGS $INCINTL"
10662 gt_save_LIBS="$LIBS"
10663 LIBS="$LIBS $LIBINTL"
10664 cat >conftest.$ac_ext <<_ACEOF
10667 cat confdefs.h >>conftest.$ac_ext
10668 cat >>conftest.$ac_ext <<_ACEOF
10669 /* end confdefs.h. */
10670 #include <libintl.h>
10671 extern int _nl_msg_cat_cntr;
10676 const char *_nl_expand_alias ();
10680 bindtextdomain ("", "");
10681 return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_expand_alias (0)
10686 rm -f conftest.$ac_objext conftest$ac_exeext
10687 if { (ac_try="$ac_link"
10688 case "(($ac_try" in
10689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10690 *) ac_try_echo=$ac_try;;
10692 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10693 $as_echo "$ac_try_echo") >&5
10694 (eval "$ac_link") 2>conftest.er1
10696 grep -v '^ *+' conftest.er1 >conftest.err
10698 cat conftest.err >&5
10699 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10700 (exit $ac_status); } && {
10701 test -z "$ac_c_werror_flag" ||
10702 test ! -s conftest.err
10703 } && test -s conftest$ac_exeext && {
10704 test "$cross_compiling" = yes ||
10705 $as_test_x conftest$ac_exeext
10707 gt_cv_func_gnugettext2_libintl=yes
10709 $as_echo "$as_me: failed program was:" >&5
10710 sed 's/^/| /' conftest.$ac_ext >&5
10712 gt_cv_func_gnugettext2_libintl=no
10715 rm -rf conftest.dSYM
10716 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10717 conftest$ac_exeext conftest.$ac_ext
10718 if test "$gt_cv_func_gnugettext2_libintl" != yes && test -n "$LIBICONV"; then
10719 LIBS="$LIBS $LIBICONV"
10720 cat >conftest.$ac_ext <<_ACEOF
10723 cat confdefs.h >>conftest.$ac_ext
10724 cat >>conftest.$ac_ext <<_ACEOF
10725 /* end confdefs.h. */
10726 #include <libintl.h>
10727 extern int _nl_msg_cat_cntr;
10732 const char *_nl_expand_alias ();
10736 bindtextdomain ("", "");
10737 return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_expand_alias (0)
10742 rm -f conftest.$ac_objext conftest$ac_exeext
10743 if { (ac_try="$ac_link"
10744 case "(($ac_try" in
10745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10746 *) ac_try_echo=$ac_try;;
10748 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10749 $as_echo "$ac_try_echo") >&5
10750 (eval "$ac_link") 2>conftest.er1
10752 grep -v '^ *+' conftest.er1 >conftest.err
10754 cat conftest.err >&5
10755 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10756 (exit $ac_status); } && {
10757 test -z "$ac_c_werror_flag" ||
10758 test ! -s conftest.err
10759 } && test -s conftest$ac_exeext && {
10760 test "$cross_compiling" = yes ||
10761 $as_test_x conftest$ac_exeext
10763 LIBINTL="$LIBINTL $LIBICONV"
10764 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
10765 gt_cv_func_gnugettext2_libintl=yes
10768 $as_echo "$as_me: failed program was:" >&5
10769 sed 's/^/| /' conftest.$ac_ext >&5
10774 rm -rf conftest.dSYM
10775 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10776 conftest$ac_exeext conftest.$ac_ext
10778 CPPFLAGS="$gt_save_CPPFLAGS"
10779 LIBS="$gt_save_LIBS"
10781 { $as_echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext2_libintl" >&5
10782 $as_echo "$gt_cv_func_gnugettext2_libintl" >&6; }
10785 if test "$gt_cv_func_gnugettext2_libc" = "yes" \
10786 || { test "$gt_cv_func_gnugettext2_libintl" = "yes" \
10787 && test "$PACKAGE" != gettext-runtime \
10788 && test "$PACKAGE" != gettext-tools; }; then
10789 gt_use_preinstalled_gnugettext=yes
10797 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
10798 nls_cv_use_gnu_gettext=yes
10802 if test "$nls_cv_use_gnu_gettext" = "yes"; then
10803 BUILD_INCLUDED_LIBINTL=yes
10804 USE_INCLUDED_LIBINTL=yes
10805 LIBINTL="lib/intl/libintl.a $LIBICONV"
10806 LTLIBINTL="lib/intl/libintl.a $LTLIBICONV"
10807 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
10810 if test "$gt_use_preinstalled_gnugettext" = "yes" \
10811 || test "$nls_cv_use_gnu_gettext" = "yes"; then
10816 if test "$gt_use_preinstalled_gnugettext" = "yes" \
10817 || test "$nls_cv_use_gnu_gettext" = "yes"; then
10819 cat >>confdefs.h <<\_ACEOF
10820 @%:@define ENABLE_NLS 1
10828 { $as_echo "$as_me:$LINENO: checking whether to use NLS" >&5
10829 $as_echo_n "checking whether to use NLS... " >&6; }
10830 { $as_echo "$as_me:$LINENO: result: $USE_NLS" >&5
10831 $as_echo "$USE_NLS" >&6; }
10832 if test "$USE_NLS" = "yes"; then
10833 { $as_echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
10834 $as_echo_n "checking where the gettext function comes from... " >&6; }
10835 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
10836 if test "$gt_cv_func_gnugettext2_libintl" = "yes"; then
10837 gt_source="external libintl"
10842 gt_source="included intl directory"
10844 { $as_echo "$as_me:$LINENO: result: $gt_source" >&5
10845 $as_echo "$gt_source" >&6; }
10848 if test "$USE_NLS" = "yes"; then
10850 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
10851 if test "$gt_cv_func_gnugettext2_libintl" = "yes"; then
10852 { $as_echo "$as_me:$LINENO: checking how to link with libintl" >&5
10853 $as_echo_n "checking how to link with libintl... " >&6; }
10854 { $as_echo "$as_me:$LINENO: result: $LIBINTL" >&5
10855 $as_echo "$LIBINTL" >&6; }
10857 for element in $INCINTL; do
10859 for x in $CPPFLAGS; do
10861 acl_save_prefix="$prefix"
10862 prefix="$acl_final_prefix"
10863 acl_save_exec_prefix="$exec_prefix"
10864 exec_prefix="$acl_final_exec_prefix"
10866 exec_prefix="$acl_save_exec_prefix"
10867 prefix="$acl_save_prefix"
10869 if test "X$x" = "X$element"; then
10874 if test -z "$haveit"; then
10875 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10882 cat >>confdefs.h <<\_ACEOF
10883 @%:@define HAVE_GETTEXT 1
10887 cat >>confdefs.h <<\_ACEOF
10888 @%:@define HAVE_DCGETTEXT 1
10897 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
10898 BUILD_INCLUDED_LIBINTL=yes
10905 nls_cv_header_intl=
10906 nls_cv_header_libgt=
10917 if test "$USE_INCLUDED_LIBINTL" = yes; then
10918 INTLOBJS="\$(GETTOBJS)"
10922 INTL_LIBTOOL_SUFFIX_PREFIX=
10926 INTLLIBS="$LIBINTL"
10939 ac_header_dirent=no
10940 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
10941 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
10942 { $as_echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
10943 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
10944 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10945 $as_echo_n "(cached) " >&6
10947 cat >conftest.$ac_ext <<_ACEOF
10950 cat confdefs.h >>conftest.$ac_ext
10951 cat >>conftest.$ac_ext <<_ACEOF
10952 /* end confdefs.h. */
10953 #include <sys/types.h>
10965 rm -f conftest.$ac_objext
10966 if { (ac_try="$ac_compile"
10967 case "(($ac_try" in
10968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10969 *) ac_try_echo=$ac_try;;
10971 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10972 $as_echo "$ac_try_echo") >&5
10973 (eval "$ac_compile") 2>conftest.er1
10975 grep -v '^ *+' conftest.er1 >conftest.err
10977 cat conftest.err >&5
10978 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10979 (exit $ac_status); } && {
10980 test -z "$ac_c_werror_flag" ||
10981 test ! -s conftest.err
10982 } && test -s conftest.$ac_objext; then
10983 eval "$as_ac_Header=yes"
10985 $as_echo "$as_me: failed program was:" >&5
10986 sed 's/^/| /' conftest.$ac_ext >&5
10988 eval "$as_ac_Header=no"
10991 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10993 ac_res=`eval 'as_val=${'$as_ac_Header'}
10994 $as_echo "$as_val"'`
10995 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10996 $as_echo "$ac_res" >&6; }
10997 as_val=`eval 'as_val=${'$as_ac_Header'}
10998 $as_echo "$as_val"'`
10999 if test "x$as_val" = x""yes; then
11000 cat >>confdefs.h <<_ACEOF
11001 @%:@define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
11004 ac_header_dirent=$ac_hdr; break
11008 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
11009 if test $ac_header_dirent = dirent.h; then
11010 { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
11011 $as_echo_n "checking for library containing opendir... " >&6; }
11012 if test "${ac_cv_search_opendir+set}" = set; then
11013 $as_echo_n "(cached) " >&6
11015 ac_func_search_save_LIBS=$LIBS
11016 cat >conftest.$ac_ext <<_ACEOF
11019 cat confdefs.h >>conftest.$ac_ext
11020 cat >>conftest.$ac_ext <<_ACEOF
11021 /* end confdefs.h. */
11023 /* Override any GCC internal prototype to avoid an error.
11024 Use char because int might match the return type of a GCC
11025 builtin and then its argument prototype would still apply. */
11038 for ac_lib in '' dir; do
11039 if test -z "$ac_lib"; then
11040 ac_res="none required"
11043 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11045 rm -f conftest.$ac_objext conftest$ac_exeext
11046 if { (ac_try="$ac_link"
11047 case "(($ac_try" in
11048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11049 *) ac_try_echo=$ac_try;;
11051 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11052 $as_echo "$ac_try_echo") >&5
11053 (eval "$ac_link") 2>conftest.er1
11055 grep -v '^ *+' conftest.er1 >conftest.err
11057 cat conftest.err >&5
11058 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11059 (exit $ac_status); } && {
11060 test -z "$ac_c_werror_flag" ||
11061 test ! -s conftest.err
11062 } && test -s conftest$ac_exeext && {
11063 test "$cross_compiling" = yes ||
11064 $as_test_x conftest$ac_exeext
11066 ac_cv_search_opendir=$ac_res
11068 $as_echo "$as_me: failed program was:" >&5
11069 sed 's/^/| /' conftest.$ac_ext >&5
11074 rm -rf conftest.dSYM
11075 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11077 if test "${ac_cv_search_opendir+set}" = set; then
11081 if test "${ac_cv_search_opendir+set}" = set; then
11084 ac_cv_search_opendir=no
11086 rm conftest.$ac_ext
11087 LIBS=$ac_func_search_save_LIBS
11089 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
11090 $as_echo "$ac_cv_search_opendir" >&6; }
11091 ac_res=$ac_cv_search_opendir
11092 if test "$ac_res" != no; then
11093 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11098 { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
11099 $as_echo_n "checking for library containing opendir... " >&6; }
11100 if test "${ac_cv_search_opendir+set}" = set; then
11101 $as_echo_n "(cached) " >&6
11103 ac_func_search_save_LIBS=$LIBS
11104 cat >conftest.$ac_ext <<_ACEOF
11107 cat confdefs.h >>conftest.$ac_ext
11108 cat >>conftest.$ac_ext <<_ACEOF
11109 /* end confdefs.h. */
11111 /* Override any GCC internal prototype to avoid an error.
11112 Use char because int might match the return type of a GCC
11113 builtin and then its argument prototype would still apply. */
11126 for ac_lib in '' x; do
11127 if test -z "$ac_lib"; then
11128 ac_res="none required"
11131 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11133 rm -f conftest.$ac_objext conftest$ac_exeext
11134 if { (ac_try="$ac_link"
11135 case "(($ac_try" in
11136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11137 *) ac_try_echo=$ac_try;;
11139 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11140 $as_echo "$ac_try_echo") >&5
11141 (eval "$ac_link") 2>conftest.er1
11143 grep -v '^ *+' conftest.er1 >conftest.err
11145 cat conftest.err >&5
11146 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11147 (exit $ac_status); } && {
11148 test -z "$ac_c_werror_flag" ||
11149 test ! -s conftest.err
11150 } && test -s conftest$ac_exeext && {
11151 test "$cross_compiling" = yes ||
11152 $as_test_x conftest$ac_exeext
11154 ac_cv_search_opendir=$ac_res
11156 $as_echo "$as_me: failed program was:" >&5
11157 sed 's/^/| /' conftest.$ac_ext >&5
11162 rm -rf conftest.dSYM
11163 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11165 if test "${ac_cv_search_opendir+set}" = set; then
11169 if test "${ac_cv_search_opendir+set}" = set; then
11172 ac_cv_search_opendir=no
11174 rm conftest.$ac_ext
11175 LIBS=$ac_func_search_save_LIBS
11177 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
11178 $as_echo "$ac_cv_search_opendir" >&6; }
11179 ac_res=$ac_cv_search_opendir
11180 if test "$ac_res" != no; then
11181 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11187 { $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
11188 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
11189 if test "${ac_cv_header_time+set}" = set; then
11190 $as_echo_n "(cached) " >&6
11192 cat >conftest.$ac_ext <<_ACEOF
11195 cat confdefs.h >>conftest.$ac_ext
11196 cat >>conftest.$ac_ext <<_ACEOF
11197 /* end confdefs.h. */
11198 #include <sys/types.h>
11199 #include <sys/time.h>
11205 if ((struct tm *) 0)
11211 rm -f conftest.$ac_objext
11212 if { (ac_try="$ac_compile"
11213 case "(($ac_try" in
11214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11215 *) ac_try_echo=$ac_try;;
11217 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11218 $as_echo "$ac_try_echo") >&5
11219 (eval "$ac_compile") 2>conftest.er1
11221 grep -v '^ *+' conftest.er1 >conftest.err
11223 cat conftest.err >&5
11224 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11225 (exit $ac_status); } && {
11226 test -z "$ac_c_werror_flag" ||
11227 test ! -s conftest.err
11228 } && test -s conftest.$ac_objext; then
11229 ac_cv_header_time=yes
11231 $as_echo "$as_me: failed program was:" >&5
11232 sed 's/^/| /' conftest.$ac_ext >&5
11234 ac_cv_header_time=no
11237 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11239 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
11240 $as_echo "$ac_cv_header_time" >&6; }
11241 if test $ac_cv_header_time = yes; then
11243 cat >>confdefs.h <<\_ACEOF
11244 @%:@define TIME_WITH_SYS_TIME 1
11252 for ac_header in inttypes.h
11254 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11255 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11256 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11257 $as_echo_n "checking for $ac_header... " >&6; }
11258 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11259 $as_echo_n "(cached) " >&6
11261 ac_res=`eval 'as_val=${'$as_ac_Header'}
11262 $as_echo "$as_val"'`
11263 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11264 $as_echo "$ac_res" >&6; }
11266 # Is the header compilable?
11267 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11268 $as_echo_n "checking $ac_header usability... " >&6; }
11269 cat >conftest.$ac_ext <<_ACEOF
11272 cat confdefs.h >>conftest.$ac_ext
11273 cat >>conftest.$ac_ext <<_ACEOF
11274 /* end confdefs.h. */
11275 $ac_includes_default
11276 @%:@include <$ac_header>
11278 rm -f conftest.$ac_objext
11279 if { (ac_try="$ac_compile"
11280 case "(($ac_try" in
11281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11282 *) ac_try_echo=$ac_try;;
11284 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11285 $as_echo "$ac_try_echo") >&5
11286 (eval "$ac_compile") 2>conftest.er1
11288 grep -v '^ *+' conftest.er1 >conftest.err
11290 cat conftest.err >&5
11291 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11292 (exit $ac_status); } && {
11293 test -z "$ac_c_werror_flag" ||
11294 test ! -s conftest.err
11295 } && test -s conftest.$ac_objext; then
11296 ac_header_compiler=yes
11298 $as_echo "$as_me: failed program was:" >&5
11299 sed 's/^/| /' conftest.$ac_ext >&5
11301 ac_header_compiler=no
11304 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11305 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11306 $as_echo "$ac_header_compiler" >&6; }
11308 # Is the header present?
11309 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11310 $as_echo_n "checking $ac_header presence... " >&6; }
11311 cat >conftest.$ac_ext <<_ACEOF
11314 cat confdefs.h >>conftest.$ac_ext
11315 cat >>conftest.$ac_ext <<_ACEOF
11316 /* end confdefs.h. */
11317 @%:@include <$ac_header>
11319 if { (ac_try="$ac_cpp conftest.$ac_ext"
11320 case "(($ac_try" in
11321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11322 *) ac_try_echo=$ac_try;;
11324 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11325 $as_echo "$ac_try_echo") >&5
11326 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11328 grep -v '^ *+' conftest.er1 >conftest.err
11330 cat conftest.err >&5
11331 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11332 (exit $ac_status); } >/dev/null && {
11333 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11334 test ! -s conftest.err
11336 ac_header_preproc=yes
11338 $as_echo "$as_me: failed program was:" >&5
11339 sed 's/^/| /' conftest.$ac_ext >&5
11341 ac_header_preproc=no
11344 rm -f conftest.err conftest.$ac_ext
11345 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11346 $as_echo "$ac_header_preproc" >&6; }
11348 # So? What about this header?
11349 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11351 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11352 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11353 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11354 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11355 ac_header_preproc=yes
11358 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11359 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11360 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11361 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11362 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11363 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11364 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11365 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11366 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11367 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11368 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11369 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11371 @%:@@%:@ ------------------------------- @%:@@%:@
11372 @%:@@%:@ Report this to bug-bash@gnu.org @%:@@%:@
11373 @%:@@%:@ ------------------------------- @%:@@%:@
11375 ) | sed "s/^/$as_me: WARNING: /" >&2
11378 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11379 $as_echo_n "checking for $ac_header... " >&6; }
11380 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11381 $as_echo_n "(cached) " >&6
11383 eval "$as_ac_Header=\$ac_header_preproc"
11385 ac_res=`eval 'as_val=${'$as_ac_Header'}
11386 $as_echo "$as_val"'`
11387 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11388 $as_echo "$ac_res" >&6; }
11391 as_val=`eval 'as_val=${'$as_ac_Header'}
11392 $as_echo "$as_val"'`
11393 if test "x$as_val" = x""yes; then
11394 cat >>confdefs.h <<_ACEOF
11395 @%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11425 for ac_header in unistd.h stdlib.h stdarg.h varargs.h limits.h string.h \
11426 memory.h locale.h termcap.h termio.h termios.h dlfcn.h \
11427 stddef.h stdint.h netdb.h pwd.h grp.h strings.h regex.h \
11430 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11431 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11432 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11433 $as_echo_n "checking for $ac_header... " >&6; }
11434 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11435 $as_echo_n "(cached) " >&6
11437 ac_res=`eval 'as_val=${'$as_ac_Header'}
11438 $as_echo "$as_val"'`
11439 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11440 $as_echo "$ac_res" >&6; }
11442 # Is the header compilable?
11443 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11444 $as_echo_n "checking $ac_header usability... " >&6; }
11445 cat >conftest.$ac_ext <<_ACEOF
11448 cat confdefs.h >>conftest.$ac_ext
11449 cat >>conftest.$ac_ext <<_ACEOF
11450 /* end confdefs.h. */
11451 $ac_includes_default
11452 @%:@include <$ac_header>
11454 rm -f conftest.$ac_objext
11455 if { (ac_try="$ac_compile"
11456 case "(($ac_try" in
11457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11458 *) ac_try_echo=$ac_try;;
11460 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11461 $as_echo "$ac_try_echo") >&5
11462 (eval "$ac_compile") 2>conftest.er1
11464 grep -v '^ *+' conftest.er1 >conftest.err
11466 cat conftest.err >&5
11467 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11468 (exit $ac_status); } && {
11469 test -z "$ac_c_werror_flag" ||
11470 test ! -s conftest.err
11471 } && test -s conftest.$ac_objext; then
11472 ac_header_compiler=yes
11474 $as_echo "$as_me: failed program was:" >&5
11475 sed 's/^/| /' conftest.$ac_ext >&5
11477 ac_header_compiler=no
11480 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11481 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11482 $as_echo "$ac_header_compiler" >&6; }
11484 # Is the header present?
11485 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11486 $as_echo_n "checking $ac_header presence... " >&6; }
11487 cat >conftest.$ac_ext <<_ACEOF
11490 cat confdefs.h >>conftest.$ac_ext
11491 cat >>conftest.$ac_ext <<_ACEOF
11492 /* end confdefs.h. */
11493 @%:@include <$ac_header>
11495 if { (ac_try="$ac_cpp conftest.$ac_ext"
11496 case "(($ac_try" in
11497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11498 *) ac_try_echo=$ac_try;;
11500 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11501 $as_echo "$ac_try_echo") >&5
11502 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11504 grep -v '^ *+' conftest.er1 >conftest.err
11506 cat conftest.err >&5
11507 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11508 (exit $ac_status); } >/dev/null && {
11509 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11510 test ! -s conftest.err
11512 ac_header_preproc=yes
11514 $as_echo "$as_me: failed program was:" >&5
11515 sed 's/^/| /' conftest.$ac_ext >&5
11517 ac_header_preproc=no
11520 rm -f conftest.err conftest.$ac_ext
11521 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11522 $as_echo "$ac_header_preproc" >&6; }
11524 # So? What about this header?
11525 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11527 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11528 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11529 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11530 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11531 ac_header_preproc=yes
11534 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11535 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11536 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11537 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11538 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11539 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11540 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11541 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11542 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11543 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11544 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11545 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11547 @%:@@%:@ ------------------------------- @%:@@%:@
11548 @%:@@%:@ Report this to bug-bash@gnu.org @%:@@%:@
11549 @%:@@%:@ ------------------------------- @%:@@%:@
11551 ) | sed "s/^/$as_me: WARNING: /" >&2
11554 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11555 $as_echo_n "checking for $ac_header... " >&6; }
11556 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11557 $as_echo_n "(cached) " >&6
11559 eval "$as_ac_Header=\$ac_header_preproc"
11561 ac_res=`eval 'as_val=${'$as_ac_Header'}
11562 $as_echo "$as_val"'`
11563 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11564 $as_echo "$ac_res" >&6; }
11567 as_val=`eval 'as_val=${'$as_ac_Header'}
11568 $as_echo "$as_val"'`
11569 if test "x$as_val" = x""yes; then
11570 cat >>confdefs.h <<_ACEOF
11571 @%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11590 for ac_header in sys/pte.h sys/stream.h sys/select.h sys/file.h \
11591 sys/resource.h sys/param.h sys/socket.h sys/stat.h \
11592 sys/time.h sys/times.h sys/types.h sys/wait.h
11594 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11595 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11596 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11597 $as_echo_n "checking for $ac_header... " >&6; }
11598 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11599 $as_echo_n "(cached) " >&6
11601 ac_res=`eval 'as_val=${'$as_ac_Header'}
11602 $as_echo "$as_val"'`
11603 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11604 $as_echo "$ac_res" >&6; }
11606 # Is the header compilable?
11607 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11608 $as_echo_n "checking $ac_header usability... " >&6; }
11609 cat >conftest.$ac_ext <<_ACEOF
11612 cat confdefs.h >>conftest.$ac_ext
11613 cat >>conftest.$ac_ext <<_ACEOF
11614 /* end confdefs.h. */
11615 $ac_includes_default
11616 @%:@include <$ac_header>
11618 rm -f conftest.$ac_objext
11619 if { (ac_try="$ac_compile"
11620 case "(($ac_try" in
11621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11622 *) ac_try_echo=$ac_try;;
11624 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11625 $as_echo "$ac_try_echo") >&5
11626 (eval "$ac_compile") 2>conftest.er1
11628 grep -v '^ *+' conftest.er1 >conftest.err
11630 cat conftest.err >&5
11631 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11632 (exit $ac_status); } && {
11633 test -z "$ac_c_werror_flag" ||
11634 test ! -s conftest.err
11635 } && test -s conftest.$ac_objext; then
11636 ac_header_compiler=yes
11638 $as_echo "$as_me: failed program was:" >&5
11639 sed 's/^/| /' conftest.$ac_ext >&5
11641 ac_header_compiler=no
11644 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11645 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11646 $as_echo "$ac_header_compiler" >&6; }
11648 # Is the header present?
11649 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11650 $as_echo_n "checking $ac_header presence... " >&6; }
11651 cat >conftest.$ac_ext <<_ACEOF
11654 cat confdefs.h >>conftest.$ac_ext
11655 cat >>conftest.$ac_ext <<_ACEOF
11656 /* end confdefs.h. */
11657 @%:@include <$ac_header>
11659 if { (ac_try="$ac_cpp conftest.$ac_ext"
11660 case "(($ac_try" in
11661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11662 *) ac_try_echo=$ac_try;;
11664 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11665 $as_echo "$ac_try_echo") >&5
11666 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11668 grep -v '^ *+' conftest.er1 >conftest.err
11670 cat conftest.err >&5
11671 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11672 (exit $ac_status); } >/dev/null && {
11673 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11674 test ! -s conftest.err
11676 ac_header_preproc=yes
11678 $as_echo "$as_me: failed program was:" >&5
11679 sed 's/^/| /' conftest.$ac_ext >&5
11681 ac_header_preproc=no
11684 rm -f conftest.err conftest.$ac_ext
11685 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11686 $as_echo "$ac_header_preproc" >&6; }
11688 # So? What about this header?
11689 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11691 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11692 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11693 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11694 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11695 ac_header_preproc=yes
11698 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11699 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11700 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11701 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11702 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11703 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11704 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11705 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11706 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11707 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11708 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11709 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11711 @%:@@%:@ ------------------------------- @%:@@%:@
11712 @%:@@%:@ Report this to bug-bash@gnu.org @%:@@%:@
11713 @%:@@%:@ ------------------------------- @%:@@%:@
11715 ) | sed "s/^/$as_me: WARNING: /" >&2
11718 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11719 $as_echo_n "checking for $ac_header... " >&6; }
11720 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11721 $as_echo_n "(cached) " >&6
11723 eval "$as_ac_Header=\$ac_header_preproc"
11725 ac_res=`eval 'as_val=${'$as_ac_Header'}
11726 $as_echo "$as_val"'`
11727 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11728 $as_echo "$ac_res" >&6; }
11731 as_val=`eval 'as_val=${'$as_ac_Header'}
11732 $as_echo "$as_val"'`
11733 if test "x$as_val" = x""yes; then
11734 cat >>confdefs.h <<_ACEOF
11735 @%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11744 for ac_header in netinet/in.h arpa/inet.h
11746 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11747 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11748 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11749 $as_echo_n "checking for $ac_header... " >&6; }
11750 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11751 $as_echo_n "(cached) " >&6
11753 ac_res=`eval 'as_val=${'$as_ac_Header'}
11754 $as_echo "$as_val"'`
11755 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11756 $as_echo "$ac_res" >&6; }
11758 # Is the header compilable?
11759 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11760 $as_echo_n "checking $ac_header usability... " >&6; }
11761 cat >conftest.$ac_ext <<_ACEOF
11764 cat confdefs.h >>conftest.$ac_ext
11765 cat >>conftest.$ac_ext <<_ACEOF
11766 /* end confdefs.h. */
11767 $ac_includes_default
11768 @%:@include <$ac_header>
11770 rm -f conftest.$ac_objext
11771 if { (ac_try="$ac_compile"
11772 case "(($ac_try" in
11773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11774 *) ac_try_echo=$ac_try;;
11776 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11777 $as_echo "$ac_try_echo") >&5
11778 (eval "$ac_compile") 2>conftest.er1
11780 grep -v '^ *+' conftest.er1 >conftest.err
11782 cat conftest.err >&5
11783 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11784 (exit $ac_status); } && {
11785 test -z "$ac_c_werror_flag" ||
11786 test ! -s conftest.err
11787 } && test -s conftest.$ac_objext; then
11788 ac_header_compiler=yes
11790 $as_echo "$as_me: failed program was:" >&5
11791 sed 's/^/| /' conftest.$ac_ext >&5
11793 ac_header_compiler=no
11796 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11797 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11798 $as_echo "$ac_header_compiler" >&6; }
11800 # Is the header present?
11801 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11802 $as_echo_n "checking $ac_header presence... " >&6; }
11803 cat >conftest.$ac_ext <<_ACEOF
11806 cat confdefs.h >>conftest.$ac_ext
11807 cat >>conftest.$ac_ext <<_ACEOF
11808 /* end confdefs.h. */
11809 @%:@include <$ac_header>
11811 if { (ac_try="$ac_cpp conftest.$ac_ext"
11812 case "(($ac_try" in
11813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11814 *) ac_try_echo=$ac_try;;
11816 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11817 $as_echo "$ac_try_echo") >&5
11818 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11820 grep -v '^ *+' conftest.er1 >conftest.err
11822 cat conftest.err >&5
11823 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11824 (exit $ac_status); } >/dev/null && {
11825 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11826 test ! -s conftest.err
11828 ac_header_preproc=yes
11830 $as_echo "$as_me: failed program was:" >&5
11831 sed 's/^/| /' conftest.$ac_ext >&5
11833 ac_header_preproc=no
11836 rm -f conftest.err conftest.$ac_ext
11837 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11838 $as_echo "$ac_header_preproc" >&6; }
11840 # So? What about this header?
11841 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11843 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11844 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11845 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11846 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11847 ac_header_preproc=yes
11850 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11851 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11852 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11853 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11854 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11855 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11856 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11857 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11858 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11859 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11860 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11861 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11863 @%:@@%:@ ------------------------------- @%:@@%:@
11864 @%:@@%:@ Report this to bug-bash@gnu.org @%:@@%:@
11865 @%:@@%:@ ------------------------------- @%:@@%:@
11867 ) | sed "s/^/$as_me: WARNING: /" >&2
11870 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11871 $as_echo_n "checking for $ac_header... " >&6; }
11872 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11873 $as_echo_n "(cached) " >&6
11875 eval "$as_ac_Header=\$ac_header_preproc"
11877 ac_res=`eval 'as_val=${'$as_ac_Header'}
11878 $as_echo "$as_val"'`
11879 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11880 $as_echo "$ac_res" >&6; }
11883 as_val=`eval 'as_val=${'$as_ac_Header'}
11884 $as_echo "$as_val"'`
11885 if test "x$as_val" = x""yes; then
11886 cat >>confdefs.h <<_ACEOF
11887 @%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11895 { $as_echo "$as_me:$LINENO: checking for sys/ptem.h" >&5
11896 $as_echo_n "checking for sys/ptem.h... " >&6; }
11897 if test "${ac_cv_header_sys_ptem_h+set}" = set; then
11898 $as_echo_n "(cached) " >&6
11900 cat >conftest.$ac_ext <<_ACEOF
11903 cat confdefs.h >>conftest.$ac_ext
11904 cat >>conftest.$ac_ext <<_ACEOF
11905 /* end confdefs.h. */
11907 #if HAVE_SYS_STREAM_H
11908 # include <sys/stream.h>
11912 @%:@include <sys/ptem.h>
11914 rm -f conftest.$ac_objext
11915 if { (ac_try="$ac_compile"
11916 case "(($ac_try" in
11917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11918 *) ac_try_echo=$ac_try;;
11920 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11921 $as_echo "$ac_try_echo") >&5
11922 (eval "$ac_compile") 2>conftest.er1
11924 grep -v '^ *+' conftest.er1 >conftest.err
11926 cat conftest.err >&5
11927 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11928 (exit $ac_status); } && {
11929 test -z "$ac_c_werror_flag" ||
11930 test ! -s conftest.err
11931 } && test -s conftest.$ac_objext; then
11932 ac_cv_header_sys_ptem_h=yes
11934 $as_echo "$as_me: failed program was:" >&5
11935 sed 's/^/| /' conftest.$ac_ext >&5
11937 ac_cv_header_sys_ptem_h=no
11940 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11942 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_ptem_h" >&5
11943 $as_echo "$ac_cv_header_sys_ptem_h" >&6; }
11947 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
11948 # for constant arguments. Useless!
11949 { $as_echo "$as_me:$LINENO: checking for working alloca.h" >&5
11950 $as_echo_n "checking for working alloca.h... " >&6; }
11951 if test "${ac_cv_working_alloca_h+set}" = set; then
11952 $as_echo_n "(cached) " >&6
11954 cat >conftest.$ac_ext <<_ACEOF
11957 cat confdefs.h >>conftest.$ac_ext
11958 cat >>conftest.$ac_ext <<_ACEOF
11959 /* end confdefs.h. */
11960 @%:@include <alloca.h>
11964 char *p = (char *) alloca (2 * sizeof (int));
11970 rm -f conftest.$ac_objext conftest$ac_exeext
11971 if { (ac_try="$ac_link"
11972 case "(($ac_try" in
11973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11974 *) ac_try_echo=$ac_try;;
11976 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11977 $as_echo "$ac_try_echo") >&5
11978 (eval "$ac_link") 2>conftest.er1
11980 grep -v '^ *+' conftest.er1 >conftest.err
11982 cat conftest.err >&5
11983 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11984 (exit $ac_status); } && {
11985 test -z "$ac_c_werror_flag" ||
11986 test ! -s conftest.err
11987 } && test -s conftest$ac_exeext && {
11988 test "$cross_compiling" = yes ||
11989 $as_test_x conftest$ac_exeext
11991 ac_cv_working_alloca_h=yes
11993 $as_echo "$as_me: failed program was:" >&5
11994 sed 's/^/| /' conftest.$ac_ext >&5
11996 ac_cv_working_alloca_h=no
11999 rm -rf conftest.dSYM
12000 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12001 conftest$ac_exeext conftest.$ac_ext
12003 { $as_echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
12004 $as_echo "$ac_cv_working_alloca_h" >&6; }
12005 if test $ac_cv_working_alloca_h = yes; then
12007 cat >>confdefs.h <<\_ACEOF
12008 @%:@define HAVE_ALLOCA_H 1
12013 { $as_echo "$as_me:$LINENO: checking for alloca" >&5
12014 $as_echo_n "checking for alloca... " >&6; }
12015 if test "${ac_cv_func_alloca_works+set}" = set; then
12016 $as_echo_n "(cached) " >&6
12018 cat >conftest.$ac_ext <<_ACEOF
12021 cat confdefs.h >>conftest.$ac_ext
12022 cat >>conftest.$ac_ext <<_ACEOF
12023 /* end confdefs.h. */
12025 # define alloca __builtin_alloca
12028 # include <malloc.h>
12029 # define alloca _alloca
12031 # ifdef HAVE_ALLOCA_H
12032 # include <alloca.h>
12037 # ifndef alloca /* predefined by HP cc +Olibcalls */
12048 char *p = (char *) alloca (1);
12054 rm -f conftest.$ac_objext conftest$ac_exeext
12055 if { (ac_try="$ac_link"
12056 case "(($ac_try" in
12057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12058 *) ac_try_echo=$ac_try;;
12060 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12061 $as_echo "$ac_try_echo") >&5
12062 (eval "$ac_link") 2>conftest.er1
12064 grep -v '^ *+' conftest.er1 >conftest.err
12066 cat conftest.err >&5
12067 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12068 (exit $ac_status); } && {
12069 test -z "$ac_c_werror_flag" ||
12070 test ! -s conftest.err
12071 } && test -s conftest$ac_exeext && {
12072 test "$cross_compiling" = yes ||
12073 $as_test_x conftest$ac_exeext
12075 ac_cv_func_alloca_works=yes
12077 $as_echo "$as_me: failed program was:" >&5
12078 sed 's/^/| /' conftest.$ac_ext >&5
12080 ac_cv_func_alloca_works=no
12083 rm -rf conftest.dSYM
12084 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12085 conftest$ac_exeext conftest.$ac_ext
12087 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
12088 $as_echo "$ac_cv_func_alloca_works" >&6; }
12090 if test $ac_cv_func_alloca_works = yes; then
12092 cat >>confdefs.h <<\_ACEOF
12093 @%:@define HAVE_ALLOCA 1
12097 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
12098 # that cause trouble. Some versions do not even contain alloca or
12099 # contain a buggy version. If you still want to use their alloca,
12100 # use ar to extract alloca.o from them instead of compiling alloca.c.
12102 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
12104 cat >>confdefs.h <<\_ACEOF
12105 @%:@define C_ALLOCA 1
12109 { $as_echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
12110 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
12111 if test "${ac_cv_os_cray+set}" = set; then
12112 $as_echo_n "(cached) " >&6
12114 cat >conftest.$ac_ext <<_ACEOF
12117 cat confdefs.h >>conftest.$ac_ext
12118 cat >>conftest.$ac_ext <<_ACEOF
12119 /* end confdefs.h. */
12120 #if defined CRAY && ! defined CRAY2
12127 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12128 $EGREP "webecray" >/dev/null 2>&1; then
12136 { $as_echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
12137 $as_echo "$ac_cv_os_cray" >&6; }
12138 if test $ac_cv_os_cray = yes; then
12139 for ac_func in _getb67 GETB67 getb67; do
12140 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12141 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12142 $as_echo_n "checking for $ac_func... " >&6; }
12143 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12144 $as_echo_n "(cached) " >&6
12146 cat >conftest.$ac_ext <<_ACEOF
12149 cat confdefs.h >>conftest.$ac_ext
12150 cat >>conftest.$ac_ext <<_ACEOF
12151 /* end confdefs.h. */
12152 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12153 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12154 #define $ac_func innocuous_$ac_func
12156 /* System header to define __stub macros and hopefully few prototypes,
12157 which can conflict with char $ac_func (); below.
12158 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12159 <limits.h> exists even on freestanding compilers. */
12162 # include <limits.h>
12164 # include <assert.h>
12169 /* Override any GCC internal prototype to avoid an error.
12170 Use char because int might match the return type of a GCC
12171 builtin and then its argument prototype would still apply. */
12176 /* The GNU C library defines this for functions which it implements
12177 to always fail with ENOSYS. Some functions are actually named
12178 something starting with __ and the normal name is an alias. */
12179 #if defined __stub_$ac_func || defined __stub___$ac_func
12186 return $ac_func ();
12191 rm -f conftest.$ac_objext conftest$ac_exeext
12192 if { (ac_try="$ac_link"
12193 case "(($ac_try" in
12194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12195 *) ac_try_echo=$ac_try;;
12197 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12198 $as_echo "$ac_try_echo") >&5
12199 (eval "$ac_link") 2>conftest.er1
12201 grep -v '^ *+' conftest.er1 >conftest.err
12203 cat conftest.err >&5
12204 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12205 (exit $ac_status); } && {
12206 test -z "$ac_c_werror_flag" ||
12207 test ! -s conftest.err
12208 } && test -s conftest$ac_exeext && {
12209 test "$cross_compiling" = yes ||
12210 $as_test_x conftest$ac_exeext
12212 eval "$as_ac_var=yes"
12214 $as_echo "$as_me: failed program was:" >&5
12215 sed 's/^/| /' conftest.$ac_ext >&5
12217 eval "$as_ac_var=no"
12220 rm -rf conftest.dSYM
12221 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12222 conftest$ac_exeext conftest.$ac_ext
12224 ac_res=`eval 'as_val=${'$as_ac_var'}
12225 $as_echo "$as_val"'`
12226 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12227 $as_echo "$ac_res" >&6; }
12228 as_val=`eval 'as_val=${'$as_ac_var'}
12229 $as_echo "$as_val"'`
12230 if test "x$as_val" = x""yes; then
12232 cat >>confdefs.h <<_ACEOF
12233 @%:@define CRAY_STACKSEG_END $ac_func
12242 { $as_echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
12243 $as_echo_n "checking stack direction for C alloca... " >&6; }
12244 if test "${ac_cv_c_stack_direction+set}" = set; then
12245 $as_echo_n "(cached) " >&6
12247 if test "$cross_compiling" = yes; then
12248 ac_cv_c_stack_direction=0
12250 cat >conftest.$ac_ext <<_ACEOF
12253 cat confdefs.h >>conftest.$ac_ext
12254 cat >>conftest.$ac_ext <<_ACEOF
12255 /* end confdefs.h. */
12256 $ac_includes_default
12258 find_stack_direction ()
12260 static char *addr = 0;
12265 return find_stack_direction ();
12268 return (&dummy > addr) ? 1 : -1;
12274 return find_stack_direction () < 0;
12277 rm -f conftest$ac_exeext
12278 if { (ac_try="$ac_link"
12279 case "(($ac_try" in
12280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12281 *) ac_try_echo=$ac_try;;
12283 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12284 $as_echo "$ac_try_echo") >&5
12285 (eval "$ac_link") 2>&5
12287 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12288 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12289 { (case "(($ac_try" in
12290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12291 *) ac_try_echo=$ac_try;;
12293 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12294 $as_echo "$ac_try_echo") >&5
12295 (eval "$ac_try") 2>&5
12297 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12298 (exit $ac_status); }; }; then
12299 ac_cv_c_stack_direction=1
12301 $as_echo "$as_me: program exited with status $ac_status" >&5
12302 $as_echo "$as_me: failed program was:" >&5
12303 sed 's/^/| /' conftest.$ac_ext >&5
12305 ( exit $ac_status )
12306 ac_cv_c_stack_direction=-1
12308 rm -rf conftest.dSYM
12309 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12314 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
12315 $as_echo "$ac_cv_c_stack_direction" >&6; }
12317 cat >>confdefs.h <<_ACEOF
12318 @%:@define STACK_DIRECTION $ac_cv_c_stack_direction
12324 { $as_echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
12325 $as_echo_n "checking whether getpgrp requires zero arguments... " >&6; }
12326 if test "${ac_cv_func_getpgrp_void+set}" = set; then
12327 $as_echo_n "(cached) " >&6
12329 # Use it with a single arg.
12330 cat >conftest.$ac_ext <<_ACEOF
12333 cat confdefs.h >>conftest.$ac_ext
12334 cat >>conftest.$ac_ext <<_ACEOF
12335 /* end confdefs.h. */
12336 $ac_includes_default
12345 rm -f conftest.$ac_objext
12346 if { (ac_try="$ac_compile"
12347 case "(($ac_try" in
12348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12349 *) ac_try_echo=$ac_try;;
12351 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12352 $as_echo "$ac_try_echo") >&5
12353 (eval "$ac_compile") 2>conftest.er1
12355 grep -v '^ *+' conftest.er1 >conftest.err
12357 cat conftest.err >&5
12358 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12359 (exit $ac_status); } && {
12360 test -z "$ac_c_werror_flag" ||
12361 test ! -s conftest.err
12362 } && test -s conftest.$ac_objext; then
12363 ac_cv_func_getpgrp_void=no
12365 $as_echo "$as_me: failed program was:" >&5
12366 sed 's/^/| /' conftest.$ac_ext >&5
12368 ac_cv_func_getpgrp_void=yes
12371 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12374 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
12375 $as_echo "$ac_cv_func_getpgrp_void" >&6; }
12376 if test $ac_cv_func_getpgrp_void = yes; then
12378 cat >>confdefs.h <<\_ACEOF
12379 @%:@define GETPGRP_VOID 1
12384 if test "${ac_cv_func_setvbuf_reversed+set}" = set; then
12385 $as_echo_n "(cached) " >&6
12387 ac_cv_func_setvbuf_reversed=no
12392 for ac_func in vprintf
12394 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12395 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12396 $as_echo_n "checking for $ac_func... " >&6; }
12397 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12398 $as_echo_n "(cached) " >&6
12400 cat >conftest.$ac_ext <<_ACEOF
12403 cat confdefs.h >>conftest.$ac_ext
12404 cat >>conftest.$ac_ext <<_ACEOF
12405 /* end confdefs.h. */
12406 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12407 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12408 #define $ac_func innocuous_$ac_func
12410 /* System header to define __stub macros and hopefully few prototypes,
12411 which can conflict with char $ac_func (); below.
12412 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12413 <limits.h> exists even on freestanding compilers. */
12416 # include <limits.h>
12418 # include <assert.h>
12423 /* Override any GCC internal prototype to avoid an error.
12424 Use char because int might match the return type of a GCC
12425 builtin and then its argument prototype would still apply. */
12430 /* The GNU C library defines this for functions which it implements
12431 to always fail with ENOSYS. Some functions are actually named
12432 something starting with __ and the normal name is an alias. */
12433 #if defined __stub_$ac_func || defined __stub___$ac_func
12440 return $ac_func ();
12445 rm -f conftest.$ac_objext conftest$ac_exeext
12446 if { (ac_try="$ac_link"
12447 case "(($ac_try" in
12448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12449 *) ac_try_echo=$ac_try;;
12451 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12452 $as_echo "$ac_try_echo") >&5
12453 (eval "$ac_link") 2>conftest.er1
12455 grep -v '^ *+' conftest.er1 >conftest.err
12457 cat conftest.err >&5
12458 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12459 (exit $ac_status); } && {
12460 test -z "$ac_c_werror_flag" ||
12461 test ! -s conftest.err
12462 } && test -s conftest$ac_exeext && {
12463 test "$cross_compiling" = yes ||
12464 $as_test_x conftest$ac_exeext
12466 eval "$as_ac_var=yes"
12468 $as_echo "$as_me: failed program was:" >&5
12469 sed 's/^/| /' conftest.$ac_ext >&5
12471 eval "$as_ac_var=no"
12474 rm -rf conftest.dSYM
12475 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12476 conftest$ac_exeext conftest.$ac_ext
12478 ac_res=`eval 'as_val=${'$as_ac_var'}
12479 $as_echo "$as_val"'`
12480 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12481 $as_echo "$ac_res" >&6; }
12482 as_val=`eval 'as_val=${'$as_ac_var'}
12483 $as_echo "$as_val"'`
12484 if test "x$as_val" = x""yes; then
12485 cat >>confdefs.h <<_ACEOF
12486 @%:@define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12489 { $as_echo "$as_me:$LINENO: checking for _doprnt" >&5
12490 $as_echo_n "checking for _doprnt... " >&6; }
12491 if test "${ac_cv_func__doprnt+set}" = set; then
12492 $as_echo_n "(cached) " >&6
12494 cat >conftest.$ac_ext <<_ACEOF
12497 cat confdefs.h >>conftest.$ac_ext
12498 cat >>conftest.$ac_ext <<_ACEOF
12499 /* end confdefs.h. */
12500 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
12501 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12502 #define _doprnt innocuous__doprnt
12504 /* System header to define __stub macros and hopefully few prototypes,
12505 which can conflict with char _doprnt (); below.
12506 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12507 <limits.h> exists even on freestanding compilers. */
12510 # include <limits.h>
12512 # include <assert.h>
12517 /* Override any GCC internal prototype to avoid an error.
12518 Use char because int might match the return type of a GCC
12519 builtin and then its argument prototype would still apply. */
12524 /* The GNU C library defines this for functions which it implements
12525 to always fail with ENOSYS. Some functions are actually named
12526 something starting with __ and the normal name is an alias. */
12527 #if defined __stub__doprnt || defined __stub____doprnt
12539 rm -f conftest.$ac_objext conftest$ac_exeext
12540 if { (ac_try="$ac_link"
12541 case "(($ac_try" in
12542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12543 *) ac_try_echo=$ac_try;;
12545 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12546 $as_echo "$ac_try_echo") >&5
12547 (eval "$ac_link") 2>conftest.er1
12549 grep -v '^ *+' conftest.er1 >conftest.err
12551 cat conftest.err >&5
12552 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12553 (exit $ac_status); } && {
12554 test -z "$ac_c_werror_flag" ||
12555 test ! -s conftest.err
12556 } && test -s conftest$ac_exeext && {
12557 test "$cross_compiling" = yes ||
12558 $as_test_x conftest$ac_exeext
12560 ac_cv_func__doprnt=yes
12562 $as_echo "$as_me: failed program was:" >&5
12563 sed 's/^/| /' conftest.$ac_ext >&5
12565 ac_cv_func__doprnt=no
12568 rm -rf conftest.dSYM
12569 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12570 conftest$ac_exeext conftest.$ac_ext
12572 { $as_echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
12573 $as_echo "$ac_cv_func__doprnt" >&6; }
12574 if test "x$ac_cv_func__doprnt" = x""yes; then
12576 cat >>confdefs.h <<\_ACEOF
12577 @%:@define HAVE_DOPRNT 1
12586 { $as_echo "$as_me:$LINENO: checking for working strcoll" >&5
12587 $as_echo_n "checking for working strcoll... " >&6; }
12588 if test "${ac_cv_func_strcoll_works+set}" = set; then
12589 $as_echo_n "(cached) " >&6
12591 if test "$cross_compiling" = yes; then
12592 ac_cv_func_strcoll_works=no
12594 cat >conftest.$ac_ext <<_ACEOF
12597 cat confdefs.h >>conftest.$ac_ext
12598 cat >>conftest.$ac_ext <<_ACEOF
12599 /* end confdefs.h. */
12600 $ac_includes_default
12604 return (strcoll ("abc", "def") >= 0 ||
12605 strcoll ("ABC", "DEF") >= 0 ||
12606 strcoll ("123", "456") >= 0)
12611 rm -f conftest$ac_exeext
12612 if { (ac_try="$ac_link"
12613 case "(($ac_try" in
12614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12615 *) ac_try_echo=$ac_try;;
12617 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12618 $as_echo "$ac_try_echo") >&5
12619 (eval "$ac_link") 2>&5
12621 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12622 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12623 { (case "(($ac_try" in
12624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12625 *) ac_try_echo=$ac_try;;
12627 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12628 $as_echo "$ac_try_echo") >&5
12629 (eval "$ac_try") 2>&5
12631 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12632 (exit $ac_status); }; }; then
12633 ac_cv_func_strcoll_works=yes
12635 $as_echo "$as_me: program exited with status $ac_status" >&5
12636 $as_echo "$as_me: failed program was:" >&5
12637 sed 's/^/| /' conftest.$ac_ext >&5
12639 ( exit $ac_status )
12640 ac_cv_func_strcoll_works=no
12642 rm -rf conftest.dSYM
12643 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12648 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_strcoll_works" >&5
12649 $as_echo "$ac_cv_func_strcoll_works" >&6; }
12650 if test $ac_cv_func_strcoll_works = yes; then
12652 cat >>confdefs.h <<\_ACEOF
12653 @%:@define HAVE_STRCOLL 1
12660 if test "$ac_cv_func_alloca_works" = "no" && test "$opt_bash_malloc" = "no"; then
12661 MALLOC_TARGET=alloca
12662 MALLOC_SRC=alloca.c
12664 MALLOC_LIB='-lmalloc'
12665 MALLOC_LIBRARY='$(ALLOC_LIBDIR)/libmalloc.a'
12666 MALLOC_LDFLAGS='-L$(ALLOC_LIBDIR)'
12667 MALLOC_DEP='$(MALLOC_LIBRARY)'
12670 if test "$ac_cv_func_vprintf" = no; then
12671 { $as_echo "$as_me:$LINENO: checking for declaration of vprintf in stdio.h" >&5
12672 $as_echo_n "checking for declaration of vprintf in stdio.h... " >&6; }
12673 cat >conftest.$ac_ext <<_ACEOF
12676 cat confdefs.h >>conftest.$ac_ext
12677 cat >>conftest.$ac_ext <<_ACEOF
12678 /* end confdefs.h. */
12682 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12683 $EGREP "[int[ ]*vprintf[^a-zA-Z0-9]]" >/dev/null 2>&1; then
12684 ac_cv_func_vprintf=yes
12688 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_vprintf" >&5
12689 $as_echo "$ac_cv_func_vprintf" >&6; }
12690 if test $ac_cv_func_vprintf = yes; then
12691 cat >>confdefs.h <<\_ACEOF
12692 @%:@define HAVE_VPRINTF 1
12698 if test "$ac_cv_func_vprintf" = no && test "$ac_cv_func__doprnt" = "yes"; then
12699 case " $LIB@&t@OBJS " in
12700 *" vprint.$ac_objext "* ) ;;
12701 *) LIB@&t@OBJS="$LIB@&t@OBJS vprint.$ac_objext"
12707 { $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5
12708 $as_echo_n "checking return type of signal handlers... " >&6; }
12709 if test "${ac_cv_type_signal+set}" = set; then
12710 $as_echo_n "(cached) " >&6
12712 cat >conftest.$ac_ext <<_ACEOF
12715 cat confdefs.h >>conftest.$ac_ext
12716 cat >>conftest.$ac_ext <<_ACEOF
12717 /* end confdefs.h. */
12718 #include <sys/types.h>
12719 #include <signal.h>
12724 return *(signal (0, 0)) (0) == 1;
12729 rm -f conftest.$ac_objext
12730 if { (ac_try="$ac_compile"
12731 case "(($ac_try" in
12732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12733 *) ac_try_echo=$ac_try;;
12735 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12736 $as_echo "$ac_try_echo") >&5
12737 (eval "$ac_compile") 2>conftest.er1
12739 grep -v '^ *+' conftest.er1 >conftest.err
12741 cat conftest.err >&5
12742 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12743 (exit $ac_status); } && {
12744 test -z "$ac_c_werror_flag" ||
12745 test ! -s conftest.err
12746 } && test -s conftest.$ac_objext; then
12747 ac_cv_type_signal=int
12749 $as_echo "$as_me: failed program was:" >&5
12750 sed 's/^/| /' conftest.$ac_ext >&5
12752 ac_cv_type_signal=void
12755 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12757 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
12758 $as_echo "$ac_cv_type_signal" >&6; }
12760 cat >>confdefs.h <<_ACEOF
12761 @%:@define RETSIGTYPE $ac_cv_type_signal
12766 { $as_echo "$as_me:$LINENO: checking for __setostype" >&5
12767 $as_echo_n "checking for __setostype... " >&6; }
12768 if test "${ac_cv_func___setostype+set}" = set; then
12769 $as_echo_n "(cached) " >&6
12771 cat >conftest.$ac_ext <<_ACEOF
12774 cat confdefs.h >>conftest.$ac_ext
12775 cat >>conftest.$ac_ext <<_ACEOF
12776 /* end confdefs.h. */
12777 /* Define __setostype to an innocuous variant, in case <limits.h> declares __setostype.
12778 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12779 #define __setostype innocuous___setostype
12781 /* System header to define __stub macros and hopefully few prototypes,
12782 which can conflict with char __setostype (); below.
12783 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12784 <limits.h> exists even on freestanding compilers. */
12787 # include <limits.h>
12789 # include <assert.h>
12794 /* Override any GCC internal prototype to avoid an error.
12795 Use char because int might match the return type of a GCC
12796 builtin and then its argument prototype would still apply. */
12800 char __setostype ();
12801 /* The GNU C library defines this for functions which it implements
12802 to always fail with ENOSYS. Some functions are actually named
12803 something starting with __ and the normal name is an alias. */
12804 #if defined __stub___setostype || defined __stub_____setostype
12811 return __setostype ();
12816 rm -f conftest.$ac_objext conftest$ac_exeext
12817 if { (ac_try="$ac_link"
12818 case "(($ac_try" in
12819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12820 *) ac_try_echo=$ac_try;;
12822 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12823 $as_echo "$ac_try_echo") >&5
12824 (eval "$ac_link") 2>conftest.er1
12826 grep -v '^ *+' conftest.er1 >conftest.err
12828 cat conftest.err >&5
12829 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12830 (exit $ac_status); } && {
12831 test -z "$ac_c_werror_flag" ||
12832 test ! -s conftest.err
12833 } && test -s conftest$ac_exeext && {
12834 test "$cross_compiling" = yes ||
12835 $as_test_x conftest$ac_exeext
12837 ac_cv_func___setostype=yes
12839 $as_echo "$as_me: failed program was:" >&5
12840 sed 's/^/| /' conftest.$ac_ext >&5
12842 ac_cv_func___setostype=no
12845 rm -rf conftest.dSYM
12846 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12847 conftest$ac_exeext conftest.$ac_ext
12849 { $as_echo "$as_me:$LINENO: result: $ac_cv_func___setostype" >&5
12850 $as_echo "$ac_cv_func___setostype" >&6; }
12851 if test "x$ac_cv_func___setostype" = x""yes; then
12852 cat >>confdefs.h <<\_ACEOF
12853 @%:@define HAVE_SETOSTYPE 1
12858 { $as_echo "$as_me:$LINENO: checking for wait3" >&5
12859 $as_echo_n "checking for wait3... " >&6; }
12860 if test "${ac_cv_func_wait3+set}" = set; then
12861 $as_echo_n "(cached) " >&6
12863 cat >conftest.$ac_ext <<_ACEOF
12866 cat confdefs.h >>conftest.$ac_ext
12867 cat >>conftest.$ac_ext <<_ACEOF
12868 /* end confdefs.h. */
12869 /* Define wait3 to an innocuous variant, in case <limits.h> declares wait3.
12870 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12871 #define wait3 innocuous_wait3
12873 /* System header to define __stub macros and hopefully few prototypes,
12874 which can conflict with char wait3 (); below.
12875 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12876 <limits.h> exists even on freestanding compilers. */
12879 # include <limits.h>
12881 # include <assert.h>
12886 /* Override any GCC internal prototype to avoid an error.
12887 Use char because int might match the return type of a GCC
12888 builtin and then its argument prototype would still apply. */
12893 /* The GNU C library defines this for functions which it implements
12894 to always fail with ENOSYS. Some functions are actually named
12895 something starting with __ and the normal name is an alias. */
12896 #if defined __stub_wait3 || defined __stub___wait3
12908 rm -f conftest.$ac_objext conftest$ac_exeext
12909 if { (ac_try="$ac_link"
12910 case "(($ac_try" in
12911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12912 *) ac_try_echo=$ac_try;;
12914 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12915 $as_echo "$ac_try_echo") >&5
12916 (eval "$ac_link") 2>conftest.er1
12918 grep -v '^ *+' conftest.er1 >conftest.err
12920 cat conftest.err >&5
12921 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12922 (exit $ac_status); } && {
12923 test -z "$ac_c_werror_flag" ||
12924 test ! -s conftest.err
12925 } && test -s conftest$ac_exeext && {
12926 test "$cross_compiling" = yes ||
12927 $as_test_x conftest$ac_exeext
12929 ac_cv_func_wait3=yes
12931 $as_echo "$as_me: failed program was:" >&5
12932 sed 's/^/| /' conftest.$ac_ext >&5
12934 ac_cv_func_wait3=no
12937 rm -rf conftest.dSYM
12938 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12939 conftest$ac_exeext conftest.$ac_ext
12941 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_wait3" >&5
12942 $as_echo "$ac_cv_func_wait3" >&6; }
12943 if test "x$ac_cv_func_wait3" = x""yes; then
12944 cat >>confdefs.h <<\_ACEOF
12945 @%:@define HAVE_WAIT3 1
12950 { $as_echo "$as_me:$LINENO: checking for isinf" >&5
12951 $as_echo_n "checking for isinf... " >&6; }
12952 if test "${ac_cv_func_isinf+set}" = set; then
12953 $as_echo_n "(cached) " >&6
12955 cat >conftest.$ac_ext <<_ACEOF
12958 cat confdefs.h >>conftest.$ac_ext
12959 cat >>conftest.$ac_ext <<_ACEOF
12960 /* end confdefs.h. */
12961 /* Define isinf to an innocuous variant, in case <limits.h> declares isinf.
12962 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12963 #define isinf innocuous_isinf
12965 /* System header to define __stub macros and hopefully few prototypes,
12966 which can conflict with char isinf (); below.
12967 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12968 <limits.h> exists even on freestanding compilers. */
12971 # include <limits.h>
12973 # include <assert.h>
12978 /* Override any GCC internal prototype to avoid an error.
12979 Use char because int might match the return type of a GCC
12980 builtin and then its argument prototype would still apply. */
12985 /* The GNU C library defines this for functions which it implements
12986 to always fail with ENOSYS. Some functions are actually named
12987 something starting with __ and the normal name is an alias. */
12988 #if defined __stub_isinf || defined __stub___isinf
13000 rm -f conftest.$ac_objext conftest$ac_exeext
13001 if { (ac_try="$ac_link"
13002 case "(($ac_try" in
13003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13004 *) ac_try_echo=$ac_try;;
13006 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13007 $as_echo "$ac_try_echo") >&5
13008 (eval "$ac_link") 2>conftest.er1
13010 grep -v '^ *+' conftest.er1 >conftest.err
13012 cat conftest.err >&5
13013 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13014 (exit $ac_status); } && {
13015 test -z "$ac_c_werror_flag" ||
13016 test ! -s conftest.err
13017 } && test -s conftest$ac_exeext && {
13018 test "$cross_compiling" = yes ||
13019 $as_test_x conftest$ac_exeext
13021 ac_cv_func_isinf=yes
13023 $as_echo "$as_me: failed program was:" >&5
13024 sed 's/^/| /' conftest.$ac_ext >&5
13026 ac_cv_func_isinf=no
13029 rm -rf conftest.dSYM
13030 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13031 conftest$ac_exeext conftest.$ac_ext
13033 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_isinf" >&5
13034 $as_echo "$ac_cv_func_isinf" >&6; }
13035 if test "x$ac_cv_func_isinf" = x""yes; then
13036 cat >>confdefs.h <<\_ACEOF
13037 @%:@define HAVE_ISINF_IN_LIBC 1
13042 { $as_echo "$as_me:$LINENO: checking for isnan" >&5
13043 $as_echo_n "checking for isnan... " >&6; }
13044 if test "${ac_cv_func_isnan+set}" = set; then
13045 $as_echo_n "(cached) " >&6
13047 cat >conftest.$ac_ext <<_ACEOF
13050 cat confdefs.h >>conftest.$ac_ext
13051 cat >>conftest.$ac_ext <<_ACEOF
13052 /* end confdefs.h. */
13053 /* Define isnan to an innocuous variant, in case <limits.h> declares isnan.
13054 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13055 #define isnan innocuous_isnan
13057 /* System header to define __stub macros and hopefully few prototypes,
13058 which can conflict with char isnan (); below.
13059 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13060 <limits.h> exists even on freestanding compilers. */
13063 # include <limits.h>
13065 # include <assert.h>
13070 /* Override any GCC internal prototype to avoid an error.
13071 Use char because int might match the return type of a GCC
13072 builtin and then its argument prototype would still apply. */
13077 /* The GNU C library defines this for functions which it implements
13078 to always fail with ENOSYS. Some functions are actually named
13079 something starting with __ and the normal name is an alias. */
13080 #if defined __stub_isnan || defined __stub___isnan
13092 rm -f conftest.$ac_objext conftest$ac_exeext
13093 if { (ac_try="$ac_link"
13094 case "(($ac_try" in
13095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13096 *) ac_try_echo=$ac_try;;
13098 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13099 $as_echo "$ac_try_echo") >&5
13100 (eval "$ac_link") 2>conftest.er1
13102 grep -v '^ *+' conftest.er1 >conftest.err
13104 cat conftest.err >&5
13105 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13106 (exit $ac_status); } && {
13107 test -z "$ac_c_werror_flag" ||
13108 test ! -s conftest.err
13109 } && test -s conftest$ac_exeext && {
13110 test "$cross_compiling" = yes ||
13111 $as_test_x conftest$ac_exeext
13113 ac_cv_func_isnan=yes
13115 $as_echo "$as_me: failed program was:" >&5
13116 sed 's/^/| /' conftest.$ac_ext >&5
13118 ac_cv_func_isnan=no
13121 rm -rf conftest.dSYM
13122 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13123 conftest$ac_exeext conftest.$ac_ext
13125 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_isnan" >&5
13126 $as_echo "$ac_cv_func_isnan" >&6; }
13127 if test "x$ac_cv_func_isnan" = x""yes; then
13128 cat >>confdefs.h <<\_ACEOF
13129 @%:@define HAVE_ISNAN_IN_LIBC 1
13135 { $as_echo "$as_me:$LINENO: checking for mkfifo" >&5
13136 $as_echo_n "checking for mkfifo... " >&6; }
13137 if test "${ac_cv_func_mkfifo+set}" = set; then
13138 $as_echo_n "(cached) " >&6
13140 cat >conftest.$ac_ext <<_ACEOF
13143 cat confdefs.h >>conftest.$ac_ext
13144 cat >>conftest.$ac_ext <<_ACEOF
13145 /* end confdefs.h. */
13146 /* Define mkfifo to an innocuous variant, in case <limits.h> declares mkfifo.
13147 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13148 #define mkfifo innocuous_mkfifo
13150 /* System header to define __stub macros and hopefully few prototypes,
13151 which can conflict with char mkfifo (); below.
13152 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13153 <limits.h> exists even on freestanding compilers. */
13156 # include <limits.h>
13158 # include <assert.h>
13163 /* Override any GCC internal prototype to avoid an error.
13164 Use char because int might match the return type of a GCC
13165 builtin and then its argument prototype would still apply. */
13170 /* The GNU C library defines this for functions which it implements
13171 to always fail with ENOSYS. Some functions are actually named
13172 something starting with __ and the normal name is an alias. */
13173 #if defined __stub_mkfifo || defined __stub___mkfifo
13185 rm -f conftest.$ac_objext conftest$ac_exeext
13186 if { (ac_try="$ac_link"
13187 case "(($ac_try" in
13188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13189 *) ac_try_echo=$ac_try;;
13191 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13192 $as_echo "$ac_try_echo") >&5
13193 (eval "$ac_link") 2>conftest.er1
13195 grep -v '^ *+' conftest.er1 >conftest.err
13197 cat conftest.err >&5
13198 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13199 (exit $ac_status); } && {
13200 test -z "$ac_c_werror_flag" ||
13201 test ! -s conftest.err
13202 } && test -s conftest$ac_exeext && {
13203 test "$cross_compiling" = yes ||
13204 $as_test_x conftest$ac_exeext
13206 ac_cv_func_mkfifo=yes
13208 $as_echo "$as_me: failed program was:" >&5
13209 sed 's/^/| /' conftest.$ac_ext >&5
13211 ac_cv_func_mkfifo=no
13214 rm -rf conftest.dSYM
13215 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13216 conftest$ac_exeext conftest.$ac_ext
13218 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_mkfifo" >&5
13219 $as_echo "$ac_cv_func_mkfifo" >&6; }
13220 if test "x$ac_cv_func_mkfifo" = x""yes; then
13221 cat >>confdefs.h <<\_ACEOF
13222 @%:@define HAVE_MKFIFO 1
13226 cat >>confdefs.h <<\_ACEOF
13227 @%:@define MKFIFO_MISSING 1
13256 for ac_func in dup2 eaccess fcntl getdtablesize getgroups gethostname \
13257 getpagesize getpeername getrlimit getrusage gettimeofday \
13258 kill killpg lstat readlink sbrk select setdtablesize \
13259 setitimer tcgetpgrp uname ulimit waitpid
13261 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13262 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
13263 $as_echo_n "checking for $ac_func... " >&6; }
13264 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13265 $as_echo_n "(cached) " >&6
13267 cat >conftest.$ac_ext <<_ACEOF
13270 cat confdefs.h >>conftest.$ac_ext
13271 cat >>conftest.$ac_ext <<_ACEOF
13272 /* end confdefs.h. */
13273 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13274 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13275 #define $ac_func innocuous_$ac_func
13277 /* System header to define __stub macros and hopefully few prototypes,
13278 which can conflict with char $ac_func (); below.
13279 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13280 <limits.h> exists even on freestanding compilers. */
13283 # include <limits.h>
13285 # include <assert.h>
13290 /* Override any GCC internal prototype to avoid an error.
13291 Use char because int might match the return type of a GCC
13292 builtin and then its argument prototype would still apply. */
13297 /* The GNU C library defines this for functions which it implements
13298 to always fail with ENOSYS. Some functions are actually named
13299 something starting with __ and the normal name is an alias. */
13300 #if defined __stub_$ac_func || defined __stub___$ac_func
13307 return $ac_func ();
13312 rm -f conftest.$ac_objext conftest$ac_exeext
13313 if { (ac_try="$ac_link"
13314 case "(($ac_try" in
13315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13316 *) ac_try_echo=$ac_try;;
13318 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13319 $as_echo "$ac_try_echo") >&5
13320 (eval "$ac_link") 2>conftest.er1
13322 grep -v '^ *+' conftest.er1 >conftest.err
13324 cat conftest.err >&5
13325 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13326 (exit $ac_status); } && {
13327 test -z "$ac_c_werror_flag" ||
13328 test ! -s conftest.err
13329 } && test -s conftest$ac_exeext && {
13330 test "$cross_compiling" = yes ||
13331 $as_test_x conftest$ac_exeext
13333 eval "$as_ac_var=yes"
13335 $as_echo "$as_me: failed program was:" >&5
13336 sed 's/^/| /' conftest.$ac_ext >&5
13338 eval "$as_ac_var=no"
13341 rm -rf conftest.dSYM
13342 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13343 conftest$ac_exeext conftest.$ac_ext
13345 ac_res=`eval 'as_val=${'$as_ac_var'}
13346 $as_echo "$as_val"'`
13347 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13348 $as_echo "$ac_res" >&6; }
13349 as_val=`eval 'as_val=${'$as_ac_var'}
13350 $as_echo "$as_val"'`
13351 if test "x$as_val" = x""yes; then
13352 cat >>confdefs.h <<_ACEOF
13353 @%:@define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13360 for ac_func in rename
13362 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13363 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
13364 $as_echo_n "checking for $ac_func... " >&6; }
13365 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13366 $as_echo_n "(cached) " >&6
13368 cat >conftest.$ac_ext <<_ACEOF
13371 cat confdefs.h >>conftest.$ac_ext
13372 cat >>conftest.$ac_ext <<_ACEOF
13373 /* end confdefs.h. */
13374 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13375 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13376 #define $ac_func innocuous_$ac_func
13378 /* System header to define __stub macros and hopefully few prototypes,
13379 which can conflict with char $ac_func (); below.
13380 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13381 <limits.h> exists even on freestanding compilers. */
13384 # include <limits.h>
13386 # include <assert.h>
13391 /* Override any GCC internal prototype to avoid an error.
13392 Use char because int might match the return type of a GCC
13393 builtin and then its argument prototype would still apply. */
13398 /* The GNU C library defines this for functions which it implements
13399 to always fail with ENOSYS. Some functions are actually named
13400 something starting with __ and the normal name is an alias. */
13401 #if defined __stub_$ac_func || defined __stub___$ac_func
13408 return $ac_func ();
13413 rm -f conftest.$ac_objext conftest$ac_exeext
13414 if { (ac_try="$ac_link"
13415 case "(($ac_try" in
13416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13417 *) ac_try_echo=$ac_try;;
13419 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13420 $as_echo "$ac_try_echo") >&5
13421 (eval "$ac_link") 2>conftest.er1
13423 grep -v '^ *+' conftest.er1 >conftest.err
13425 cat conftest.err >&5
13426 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13427 (exit $ac_status); } && {
13428 test -z "$ac_c_werror_flag" ||
13429 test ! -s conftest.err
13430 } && test -s conftest$ac_exeext && {
13431 test "$cross_compiling" = yes ||
13432 $as_test_x conftest$ac_exeext
13434 eval "$as_ac_var=yes"
13436 $as_echo "$as_me: failed program was:" >&5
13437 sed 's/^/| /' conftest.$ac_ext >&5
13439 eval "$as_ac_var=no"
13442 rm -rf conftest.dSYM
13443 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13444 conftest$ac_exeext conftest.$ac_ext
13446 ac_res=`eval 'as_val=${'$as_ac_var'}
13447 $as_echo "$as_val"'`
13448 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13449 $as_echo "$ac_res" >&6; }
13450 as_val=`eval 'as_val=${'$as_ac_var'}
13451 $as_echo "$as_val"'`
13452 if test "x$as_val" = x""yes; then
13453 cat >>confdefs.h <<_ACEOF
13454 @%:@define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13458 case " $LIB@&t@OBJS " in
13459 *" $ac_func.$ac_objext "* ) ;;
13460 *) LIB@&t@OBJS="$LIB@&t@OBJS $ac_func.$ac_objext"
13498 for ac_func in bcopy bzero confstr faccessat fnmatch \
13499 getaddrinfo gethostbyname getservbyname getservent inet_aton \
13500 memmove pathconf putenv raise regcomp regexec \
13501 setenv setlinebuf setlocale setvbuf siginterrupt strchr \
13502 sysconf syslog tcgetattr times ttyname tzset unsetenv
13504 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13505 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
13506 $as_echo_n "checking for $ac_func... " >&6; }
13507 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13508 $as_echo_n "(cached) " >&6
13510 cat >conftest.$ac_ext <<_ACEOF
13513 cat confdefs.h >>conftest.$ac_ext
13514 cat >>conftest.$ac_ext <<_ACEOF
13515 /* end confdefs.h. */
13516 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13517 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13518 #define $ac_func innocuous_$ac_func
13520 /* System header to define __stub macros and hopefully few prototypes,
13521 which can conflict with char $ac_func (); below.
13522 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13523 <limits.h> exists even on freestanding compilers. */
13526 # include <limits.h>
13528 # include <assert.h>
13533 /* Override any GCC internal prototype to avoid an error.
13534 Use char because int might match the return type of a GCC
13535 builtin and then its argument prototype would still apply. */
13540 /* The GNU C library defines this for functions which it implements
13541 to always fail with ENOSYS. Some functions are actually named
13542 something starting with __ and the normal name is an alias. */
13543 #if defined __stub_$ac_func || defined __stub___$ac_func
13550 return $ac_func ();
13555 rm -f conftest.$ac_objext conftest$ac_exeext
13556 if { (ac_try="$ac_link"
13557 case "(($ac_try" in
13558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13559 *) ac_try_echo=$ac_try;;
13561 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13562 $as_echo "$ac_try_echo") >&5
13563 (eval "$ac_link") 2>conftest.er1
13565 grep -v '^ *+' conftest.er1 >conftest.err
13567 cat conftest.err >&5
13568 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13569 (exit $ac_status); } && {
13570 test -z "$ac_c_werror_flag" ||
13571 test ! -s conftest.err
13572 } && test -s conftest$ac_exeext && {
13573 test "$cross_compiling" = yes ||
13574 $as_test_x conftest$ac_exeext
13576 eval "$as_ac_var=yes"
13578 $as_echo "$as_me: failed program was:" >&5
13579 sed 's/^/| /' conftest.$ac_ext >&5
13581 eval "$as_ac_var=no"
13584 rm -rf conftest.dSYM
13585 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13586 conftest$ac_exeext conftest.$ac_ext
13588 ac_res=`eval 'as_val=${'$as_ac_var'}
13589 $as_echo "$as_val"'`
13590 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13591 $as_echo "$ac_res" >&6; }
13592 as_val=`eval 'as_val=${'$as_ac_var'}
13593 $as_echo "$as_val"'`
13594 if test "x$as_val" = x""yes; then
13595 cat >>confdefs.h <<_ACEOF
13596 @%:@define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13605 for ac_func in vasprintf asprintf
13607 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13608 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
13609 $as_echo_n "checking for $ac_func... " >&6; }
13610 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13611 $as_echo_n "(cached) " >&6
13613 cat >conftest.$ac_ext <<_ACEOF
13616 cat confdefs.h >>conftest.$ac_ext
13617 cat >>conftest.$ac_ext <<_ACEOF
13618 /* end confdefs.h. */
13619 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13620 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13621 #define $ac_func innocuous_$ac_func
13623 /* System header to define __stub macros and hopefully few prototypes,
13624 which can conflict with char $ac_func (); below.
13625 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13626 <limits.h> exists even on freestanding compilers. */
13629 # include <limits.h>
13631 # include <assert.h>
13636 /* Override any GCC internal prototype to avoid an error.
13637 Use char because int might match the return type of a GCC
13638 builtin and then its argument prototype would still apply. */
13643 /* The GNU C library defines this for functions which it implements
13644 to always fail with ENOSYS. Some functions are actually named
13645 something starting with __ and the normal name is an alias. */
13646 #if defined __stub_$ac_func || defined __stub___$ac_func
13653 return $ac_func ();
13658 rm -f conftest.$ac_objext conftest$ac_exeext
13659 if { (ac_try="$ac_link"
13660 case "(($ac_try" in
13661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13662 *) ac_try_echo=$ac_try;;
13664 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13665 $as_echo "$ac_try_echo") >&5
13666 (eval "$ac_link") 2>conftest.er1
13668 grep -v '^ *+' conftest.er1 >conftest.err
13670 cat conftest.err >&5
13671 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13672 (exit $ac_status); } && {
13673 test -z "$ac_c_werror_flag" ||
13674 test ! -s conftest.err
13675 } && test -s conftest$ac_exeext && {
13676 test "$cross_compiling" = yes ||
13677 $as_test_x conftest$ac_exeext
13679 eval "$as_ac_var=yes"
13681 $as_echo "$as_me: failed program was:" >&5
13682 sed 's/^/| /' conftest.$ac_ext >&5
13684 eval "$as_ac_var=no"
13687 rm -rf conftest.dSYM
13688 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13689 conftest$ac_exeext conftest.$ac_ext
13691 ac_res=`eval 'as_val=${'$as_ac_var'}
13692 $as_echo "$as_val"'`
13693 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13694 $as_echo "$ac_res" >&6; }
13695 as_val=`eval 'as_val=${'$as_ac_var'}
13696 $as_echo "$as_val"'`
13697 if test "x$as_val" = x""yes; then
13698 cat >>confdefs.h <<_ACEOF
13699 @%:@define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13711 for ac_func in isascii isblank isgraph isprint isspace isxdigit
13713 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13714 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
13715 $as_echo_n "checking for $ac_func... " >&6; }
13716 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13717 $as_echo_n "(cached) " >&6
13719 cat >conftest.$ac_ext <<_ACEOF
13722 cat confdefs.h >>conftest.$ac_ext
13723 cat >>conftest.$ac_ext <<_ACEOF
13724 /* end confdefs.h. */
13725 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13726 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13727 #define $ac_func innocuous_$ac_func
13729 /* System header to define __stub macros and hopefully few prototypes,
13730 which can conflict with char $ac_func (); below.
13731 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13732 <limits.h> exists even on freestanding compilers. */
13735 # include <limits.h>
13737 # include <assert.h>
13742 /* Override any GCC internal prototype to avoid an error.
13743 Use char because int might match the return type of a GCC
13744 builtin and then its argument prototype would still apply. */
13749 /* The GNU C library defines this for functions which it implements
13750 to always fail with ENOSYS. Some functions are actually named
13751 something starting with __ and the normal name is an alias. */
13752 #if defined __stub_$ac_func || defined __stub___$ac_func
13759 return $ac_func ();
13764 rm -f conftest.$ac_objext conftest$ac_exeext
13765 if { (ac_try="$ac_link"
13766 case "(($ac_try" in
13767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13768 *) ac_try_echo=$ac_try;;
13770 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13771 $as_echo "$ac_try_echo") >&5
13772 (eval "$ac_link") 2>conftest.er1
13774 grep -v '^ *+' conftest.er1 >conftest.err
13776 cat conftest.err >&5
13777 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13778 (exit $ac_status); } && {
13779 test -z "$ac_c_werror_flag" ||
13780 test ! -s conftest.err
13781 } && test -s conftest$ac_exeext && {
13782 test "$cross_compiling" = yes ||
13783 $as_test_x conftest$ac_exeext
13785 eval "$as_ac_var=yes"
13787 $as_echo "$as_me: failed program was:" >&5
13788 sed 's/^/| /' conftest.$ac_ext >&5
13790 eval "$as_ac_var=no"
13793 rm -rf conftest.dSYM
13794 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13795 conftest$ac_exeext conftest.$ac_ext
13797 ac_res=`eval 'as_val=${'$as_ac_var'}
13798 $as_echo "$as_val"'`
13799 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13800 $as_echo "$ac_res" >&6; }
13801 as_val=`eval 'as_val=${'$as_ac_var'}
13802 $as_echo "$as_val"'`
13803 if test "x$as_val" = x""yes; then
13804 cat >>confdefs.h <<_ACEOF
13805 @%:@define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13814 for ac_func in getpwent getpwnam getpwuid
13816 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13817 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
13818 $as_echo_n "checking for $ac_func... " >&6; }
13819 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13820 $as_echo_n "(cached) " >&6
13822 cat >conftest.$ac_ext <<_ACEOF
13825 cat confdefs.h >>conftest.$ac_ext
13826 cat >>conftest.$ac_ext <<_ACEOF
13827 /* end confdefs.h. */
13828 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13829 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13830 #define $ac_func innocuous_$ac_func
13832 /* System header to define __stub macros and hopefully few prototypes,
13833 which can conflict with char $ac_func (); below.
13834 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13835 <limits.h> exists even on freestanding compilers. */
13838 # include <limits.h>
13840 # include <assert.h>
13845 /* Override any GCC internal prototype to avoid an error.
13846 Use char because int might match the return type of a GCC
13847 builtin and then its argument prototype would still apply. */
13852 /* The GNU C library defines this for functions which it implements
13853 to always fail with ENOSYS. Some functions are actually named
13854 something starting with __ and the normal name is an alias. */
13855 #if defined __stub_$ac_func || defined __stub___$ac_func
13862 return $ac_func ();
13867 rm -f conftest.$ac_objext conftest$ac_exeext
13868 if { (ac_try="$ac_link"
13869 case "(($ac_try" in
13870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13871 *) ac_try_echo=$ac_try;;
13873 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13874 $as_echo "$ac_try_echo") >&5
13875 (eval "$ac_link") 2>conftest.er1
13877 grep -v '^ *+' conftest.er1 >conftest.err
13879 cat conftest.err >&5
13880 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13881 (exit $ac_status); } && {
13882 test -z "$ac_c_werror_flag" ||
13883 test ! -s conftest.err
13884 } && test -s conftest$ac_exeext && {
13885 test "$cross_compiling" = yes ||
13886 $as_test_x conftest$ac_exeext
13888 eval "$as_ac_var=yes"
13890 $as_echo "$as_me: failed program was:" >&5
13891 sed 's/^/| /' conftest.$ac_ext >&5
13893 eval "$as_ac_var=no"
13896 rm -rf conftest.dSYM
13897 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13898 conftest$ac_exeext conftest.$ac_ext
13900 ac_res=`eval 'as_val=${'$as_ac_var'}
13901 $as_echo "$as_val"'`
13902 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13903 $as_echo "$ac_res" >&6; }
13904 as_val=`eval 'as_val=${'$as_ac_var'}
13905 $as_echo "$as_val"'`
13906 if test "x$as_val" = x""yes; then
13907 cat >>confdefs.h <<_ACEOF
13908 @%:@define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13916 for ac_func in getcwd memset
13918 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13919 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
13920 $as_echo_n "checking for $ac_func... " >&6; }
13921 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13922 $as_echo_n "(cached) " >&6
13924 cat >conftest.$ac_ext <<_ACEOF
13927 cat confdefs.h >>conftest.$ac_ext
13928 cat >>conftest.$ac_ext <<_ACEOF
13929 /* end confdefs.h. */
13930 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13931 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13932 #define $ac_func innocuous_$ac_func
13934 /* System header to define __stub macros and hopefully few prototypes,
13935 which can conflict with char $ac_func (); below.
13936 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13937 <limits.h> exists even on freestanding compilers. */
13940 # include <limits.h>
13942 # include <assert.h>
13947 /* Override any GCC internal prototype to avoid an error.
13948 Use char because int might match the return type of a GCC
13949 builtin and then its argument prototype would still apply. */
13954 /* The GNU C library defines this for functions which it implements
13955 to always fail with ENOSYS. Some functions are actually named
13956 something starting with __ and the normal name is an alias. */
13957 #if defined __stub_$ac_func || defined __stub___$ac_func
13964 return $ac_func ();
13969 rm -f conftest.$ac_objext conftest$ac_exeext
13970 if { (ac_try="$ac_link"
13971 case "(($ac_try" in
13972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13973 *) ac_try_echo=$ac_try;;
13975 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13976 $as_echo "$ac_try_echo") >&5
13977 (eval "$ac_link") 2>conftest.er1
13979 grep -v '^ *+' conftest.er1 >conftest.err
13981 cat conftest.err >&5
13982 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13983 (exit $ac_status); } && {
13984 test -z "$ac_c_werror_flag" ||
13985 test ! -s conftest.err
13986 } && test -s conftest$ac_exeext && {
13987 test "$cross_compiling" = yes ||
13988 $as_test_x conftest$ac_exeext
13990 eval "$as_ac_var=yes"
13992 $as_echo "$as_me: failed program was:" >&5
13993 sed 's/^/| /' conftest.$ac_ext >&5
13995 eval "$as_ac_var=no"
13998 rm -rf conftest.dSYM
13999 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14000 conftest$ac_exeext conftest.$ac_ext
14002 ac_res=`eval 'as_val=${'$as_ac_var'}
14003 $as_echo "$as_val"'`
14004 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14005 $as_echo "$ac_res" >&6; }
14006 as_val=`eval 'as_val=${'$as_ac_var'}
14007 $as_echo "$as_val"'`
14008 if test "x$as_val" = x""yes; then
14009 cat >>confdefs.h <<_ACEOF
14010 @%:@define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14014 case " $LIB@&t@OBJS " in
14015 *" $ac_func.$ac_objext "* ) ;;
14016 *) LIB@&t@OBJS="$LIB@&t@OBJS $ac_func.$ac_objext"
14031 for ac_func in strcasecmp strcasestr strerror strftime strnlen strpbrk strstr
14033 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14034 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
14035 $as_echo_n "checking for $ac_func... " >&6; }
14036 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14037 $as_echo_n "(cached) " >&6
14039 cat >conftest.$ac_ext <<_ACEOF
14042 cat confdefs.h >>conftest.$ac_ext
14043 cat >>conftest.$ac_ext <<_ACEOF
14044 /* end confdefs.h. */
14045 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14046 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14047 #define $ac_func innocuous_$ac_func
14049 /* System header to define __stub macros and hopefully few prototypes,
14050 which can conflict with char $ac_func (); below.
14051 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14052 <limits.h> exists even on freestanding compilers. */
14055 # include <limits.h>
14057 # include <assert.h>
14062 /* Override any GCC internal prototype to avoid an error.
14063 Use char because int might match the return type of a GCC
14064 builtin and then its argument prototype would still apply. */
14069 /* The GNU C library defines this for functions which it implements
14070 to always fail with ENOSYS. Some functions are actually named
14071 something starting with __ and the normal name is an alias. */
14072 #if defined __stub_$ac_func || defined __stub___$ac_func
14079 return $ac_func ();
14084 rm -f conftest.$ac_objext conftest$ac_exeext
14085 if { (ac_try="$ac_link"
14086 case "(($ac_try" in
14087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14088 *) ac_try_echo=$ac_try;;
14090 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14091 $as_echo "$ac_try_echo") >&5
14092 (eval "$ac_link") 2>conftest.er1
14094 grep -v '^ *+' conftest.er1 >conftest.err
14096 cat conftest.err >&5
14097 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14098 (exit $ac_status); } && {
14099 test -z "$ac_c_werror_flag" ||
14100 test ! -s conftest.err
14101 } && test -s conftest$ac_exeext && {
14102 test "$cross_compiling" = yes ||
14103 $as_test_x conftest$ac_exeext
14105 eval "$as_ac_var=yes"
14107 $as_echo "$as_me: failed program was:" >&5
14108 sed 's/^/| /' conftest.$ac_ext >&5
14110 eval "$as_ac_var=no"
14113 rm -rf conftest.dSYM
14114 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14115 conftest$ac_exeext conftest.$ac_ext
14117 ac_res=`eval 'as_val=${'$as_ac_var'}
14118 $as_echo "$as_val"'`
14119 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14120 $as_echo "$ac_res" >&6; }
14121 as_val=`eval 'as_val=${'$as_ac_var'}
14122 $as_echo "$as_val"'`
14123 if test "x$as_val" = x""yes; then
14124 cat >>confdefs.h <<_ACEOF
14125 @%:@define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14129 case " $LIB@&t@OBJS " in
14130 *" $ac_func.$ac_objext "* ) ;;
14131 *) LIB@&t@OBJS="$LIB@&t@OBJS $ac_func.$ac_objext"
14146 for ac_func in strtod strtol strtoul strtoll strtoull strtoimax strtoumax
14148 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14149 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
14150 $as_echo_n "checking for $ac_func... " >&6; }
14151 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14152 $as_echo_n "(cached) " >&6
14154 cat >conftest.$ac_ext <<_ACEOF
14157 cat confdefs.h >>conftest.$ac_ext
14158 cat >>conftest.$ac_ext <<_ACEOF
14159 /* end confdefs.h. */
14160 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14161 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14162 #define $ac_func innocuous_$ac_func
14164 /* System header to define __stub macros and hopefully few prototypes,
14165 which can conflict with char $ac_func (); below.
14166 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14167 <limits.h> exists even on freestanding compilers. */
14170 # include <limits.h>
14172 # include <assert.h>
14177 /* Override any GCC internal prototype to avoid an error.
14178 Use char because int might match the return type of a GCC
14179 builtin and then its argument prototype would still apply. */
14184 /* The GNU C library defines this for functions which it implements
14185 to always fail with ENOSYS. Some functions are actually named
14186 something starting with __ and the normal name is an alias. */
14187 #if defined __stub_$ac_func || defined __stub___$ac_func
14194 return $ac_func ();
14199 rm -f conftest.$ac_objext conftest$ac_exeext
14200 if { (ac_try="$ac_link"
14201 case "(($ac_try" in
14202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14203 *) ac_try_echo=$ac_try;;
14205 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14206 $as_echo "$ac_try_echo") >&5
14207 (eval "$ac_link") 2>conftest.er1
14209 grep -v '^ *+' conftest.er1 >conftest.err
14211 cat conftest.err >&5
14212 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14213 (exit $ac_status); } && {
14214 test -z "$ac_c_werror_flag" ||
14215 test ! -s conftest.err
14216 } && test -s conftest$ac_exeext && {
14217 test "$cross_compiling" = yes ||
14218 $as_test_x conftest$ac_exeext
14220 eval "$as_ac_var=yes"
14222 $as_echo "$as_me: failed program was:" >&5
14223 sed 's/^/| /' conftest.$ac_ext >&5
14225 eval "$as_ac_var=no"
14228 rm -rf conftest.dSYM
14229 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14230 conftest$ac_exeext conftest.$ac_ext
14232 ac_res=`eval 'as_val=${'$as_ac_var'}
14233 $as_echo "$as_val"'`
14234 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14235 $as_echo "$ac_res" >&6; }
14236 as_val=`eval 'as_val=${'$as_ac_var'}
14237 $as_echo "$as_val"'`
14238 if test "x$as_val" = x""yes; then
14239 cat >>confdefs.h <<_ACEOF
14240 @%:@define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14244 case " $LIB@&t@OBJS " in
14245 *" $ac_func.$ac_objext "* ) ;;
14246 *) LIB@&t@OBJS="$LIB@&t@OBJS $ac_func.$ac_objext"
14255 for ac_func in dprintf
14257 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14258 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
14259 $as_echo_n "checking for $ac_func... " >&6; }
14260 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14261 $as_echo_n "(cached) " >&6
14263 cat >conftest.$ac_ext <<_ACEOF
14266 cat confdefs.h >>conftest.$ac_ext
14267 cat >>conftest.$ac_ext <<_ACEOF
14268 /* end confdefs.h. */
14269 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14270 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14271 #define $ac_func innocuous_$ac_func
14273 /* System header to define __stub macros and hopefully few prototypes,
14274 which can conflict with char $ac_func (); below.
14275 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14276 <limits.h> exists even on freestanding compilers. */
14279 # include <limits.h>
14281 # include <assert.h>
14286 /* Override any GCC internal prototype to avoid an error.
14287 Use char because int might match the return type of a GCC
14288 builtin and then its argument prototype would still apply. */
14293 /* The GNU C library defines this for functions which it implements
14294 to always fail with ENOSYS. Some functions are actually named
14295 something starting with __ and the normal name is an alias. */
14296 #if defined __stub_$ac_func || defined __stub___$ac_func
14303 return $ac_func ();
14308 rm -f conftest.$ac_objext conftest$ac_exeext
14309 if { (ac_try="$ac_link"
14310 case "(($ac_try" in
14311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14312 *) ac_try_echo=$ac_try;;
14314 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14315 $as_echo "$ac_try_echo") >&5
14316 (eval "$ac_link") 2>conftest.er1
14318 grep -v '^ *+' conftest.er1 >conftest.err
14320 cat conftest.err >&5
14321 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14322 (exit $ac_status); } && {
14323 test -z "$ac_c_werror_flag" ||
14324 test ! -s conftest.err
14325 } && test -s conftest$ac_exeext && {
14326 test "$cross_compiling" = yes ||
14327 $as_test_x conftest$ac_exeext
14329 eval "$as_ac_var=yes"
14331 $as_echo "$as_me: failed program was:" >&5
14332 sed 's/^/| /' conftest.$ac_ext >&5
14334 eval "$as_ac_var=no"
14337 rm -rf conftest.dSYM
14338 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14339 conftest$ac_exeext conftest.$ac_ext
14341 ac_res=`eval 'as_val=${'$as_ac_var'}
14342 $as_echo "$as_val"'`
14343 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14344 $as_echo "$ac_res" >&6; }
14345 as_val=`eval 'as_val=${'$as_ac_var'}
14346 $as_echo "$as_val"'`
14347 if test "x$as_val" = x""yes; then
14348 cat >>confdefs.h <<_ACEOF
14349 @%:@define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14353 case " $LIB@&t@OBJS " in
14354 *" $ac_func.$ac_objext "* ) ;;
14355 *) LIB@&t@OBJS="$LIB@&t@OBJS $ac_func.$ac_objext"
14364 for ac_func in strchrnul
14366 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14367 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
14368 $as_echo_n "checking for $ac_func... " >&6; }
14369 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14370 $as_echo_n "(cached) " >&6
14372 cat >conftest.$ac_ext <<_ACEOF
14375 cat confdefs.h >>conftest.$ac_ext
14376 cat >>conftest.$ac_ext <<_ACEOF
14377 /* end confdefs.h. */
14378 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14379 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14380 #define $ac_func innocuous_$ac_func
14382 /* System header to define __stub macros and hopefully few prototypes,
14383 which can conflict with char $ac_func (); below.
14384 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14385 <limits.h> exists even on freestanding compilers. */
14388 # include <limits.h>
14390 # include <assert.h>
14395 /* Override any GCC internal prototype to avoid an error.
14396 Use char because int might match the return type of a GCC
14397 builtin and then its argument prototype would still apply. */
14402 /* The GNU C library defines this for functions which it implements
14403 to always fail with ENOSYS. Some functions are actually named
14404 something starting with __ and the normal name is an alias. */
14405 #if defined __stub_$ac_func || defined __stub___$ac_func
14412 return $ac_func ();
14417 rm -f conftest.$ac_objext conftest$ac_exeext
14418 if { (ac_try="$ac_link"
14419 case "(($ac_try" in
14420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14421 *) ac_try_echo=$ac_try;;
14423 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14424 $as_echo "$ac_try_echo") >&5
14425 (eval "$ac_link") 2>conftest.er1
14427 grep -v '^ *+' conftest.er1 >conftest.err
14429 cat conftest.err >&5
14430 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14431 (exit $ac_status); } && {
14432 test -z "$ac_c_werror_flag" ||
14433 test ! -s conftest.err
14434 } && test -s conftest$ac_exeext && {
14435 test "$cross_compiling" = yes ||
14436 $as_test_x conftest$ac_exeext
14438 eval "$as_ac_var=yes"
14440 $as_echo "$as_me: failed program was:" >&5
14441 sed 's/^/| /' conftest.$ac_ext >&5
14443 eval "$as_ac_var=no"
14446 rm -rf conftest.dSYM
14447 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14448 conftest$ac_exeext conftest.$ac_ext
14450 ac_res=`eval 'as_val=${'$as_ac_var'}
14451 $as_echo "$as_val"'`
14452 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14453 $as_echo "$ac_res" >&6; }
14454 as_val=`eval 'as_val=${'$as_ac_var'}
14455 $as_echo "$as_val"'`
14456 if test "x$as_val" = x""yes; then
14457 cat >>confdefs.h <<_ACEOF
14458 @%:@define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14462 case " $LIB@&t@OBJS " in
14463 *" $ac_func.$ac_objext "* ) ;;
14464 *) LIB@&t@OBJS="$LIB@&t@OBJS $ac_func.$ac_objext"
14473 { $as_echo "$as_me:$LINENO: checking whether confstr is declared" >&5
14474 $as_echo_n "checking whether confstr is declared... " >&6; }
14475 if test "${ac_cv_have_decl_confstr+set}" = set; then
14476 $as_echo_n "(cached) " >&6
14478 cat >conftest.$ac_ext <<_ACEOF
14481 cat confdefs.h >>conftest.$ac_ext
14482 cat >>conftest.$ac_ext <<_ACEOF
14483 /* end confdefs.h. */
14484 $ac_includes_default
14496 rm -f conftest.$ac_objext
14497 if { (ac_try="$ac_compile"
14498 case "(($ac_try" in
14499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14500 *) ac_try_echo=$ac_try;;
14502 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14503 $as_echo "$ac_try_echo") >&5
14504 (eval "$ac_compile") 2>conftest.er1
14506 grep -v '^ *+' conftest.er1 >conftest.err
14508 cat conftest.err >&5
14509 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14510 (exit $ac_status); } && {
14511 test -z "$ac_c_werror_flag" ||
14512 test ! -s conftest.err
14513 } && test -s conftest.$ac_objext; then
14514 ac_cv_have_decl_confstr=yes
14516 $as_echo "$as_me: failed program was:" >&5
14517 sed 's/^/| /' conftest.$ac_ext >&5
14519 ac_cv_have_decl_confstr=no
14522 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14524 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_confstr" >&5
14525 $as_echo "$ac_cv_have_decl_confstr" >&6; }
14526 if test "x$ac_cv_have_decl_confstr" = x""yes; then
14528 cat >>confdefs.h <<_ACEOF
14529 @%:@define HAVE_DECL_CONFSTR 1
14534 cat >>confdefs.h <<_ACEOF
14535 @%:@define HAVE_DECL_CONFSTR 0
14542 { $as_echo "$as_me:$LINENO: checking whether printf is declared" >&5
14543 $as_echo_n "checking whether printf is declared... " >&6; }
14544 if test "${ac_cv_have_decl_printf+set}" = set; then
14545 $as_echo_n "(cached) " >&6
14547 cat >conftest.$ac_ext <<_ACEOF
14550 cat confdefs.h >>conftest.$ac_ext
14551 cat >>conftest.$ac_ext <<_ACEOF
14552 /* end confdefs.h. */
14553 $ac_includes_default
14565 rm -f conftest.$ac_objext
14566 if { (ac_try="$ac_compile"
14567 case "(($ac_try" in
14568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14569 *) ac_try_echo=$ac_try;;
14571 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14572 $as_echo "$ac_try_echo") >&5
14573 (eval "$ac_compile") 2>conftest.er1
14575 grep -v '^ *+' conftest.er1 >conftest.err
14577 cat conftest.err >&5
14578 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14579 (exit $ac_status); } && {
14580 test -z "$ac_c_werror_flag" ||
14581 test ! -s conftest.err
14582 } && test -s conftest.$ac_objext; then
14583 ac_cv_have_decl_printf=yes
14585 $as_echo "$as_me: failed program was:" >&5
14586 sed 's/^/| /' conftest.$ac_ext >&5
14588 ac_cv_have_decl_printf=no
14591 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14593 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_printf" >&5
14594 $as_echo "$ac_cv_have_decl_printf" >&6; }
14595 if test "x$ac_cv_have_decl_printf" = x""yes; then
14597 cat >>confdefs.h <<_ACEOF
14598 @%:@define HAVE_DECL_PRINTF 1
14603 cat >>confdefs.h <<_ACEOF
14604 @%:@define HAVE_DECL_PRINTF 0
14611 { $as_echo "$as_me:$LINENO: checking whether sbrk is declared" >&5
14612 $as_echo_n "checking whether sbrk is declared... " >&6; }
14613 if test "${ac_cv_have_decl_sbrk+set}" = set; then
14614 $as_echo_n "(cached) " >&6
14616 cat >conftest.$ac_ext <<_ACEOF
14619 cat confdefs.h >>conftest.$ac_ext
14620 cat >>conftest.$ac_ext <<_ACEOF
14621 /* end confdefs.h. */
14622 $ac_includes_default
14634 rm -f conftest.$ac_objext
14635 if { (ac_try="$ac_compile"
14636 case "(($ac_try" in
14637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14638 *) ac_try_echo=$ac_try;;
14640 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14641 $as_echo "$ac_try_echo") >&5
14642 (eval "$ac_compile") 2>conftest.er1
14644 grep -v '^ *+' conftest.er1 >conftest.err
14646 cat conftest.err >&5
14647 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14648 (exit $ac_status); } && {
14649 test -z "$ac_c_werror_flag" ||
14650 test ! -s conftest.err
14651 } && test -s conftest.$ac_objext; then
14652 ac_cv_have_decl_sbrk=yes
14654 $as_echo "$as_me: failed program was:" >&5
14655 sed 's/^/| /' conftest.$ac_ext >&5
14657 ac_cv_have_decl_sbrk=no
14660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14662 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_sbrk" >&5
14663 $as_echo "$ac_cv_have_decl_sbrk" >&6; }
14664 if test "x$ac_cv_have_decl_sbrk" = x""yes; then
14666 cat >>confdefs.h <<_ACEOF
14667 @%:@define HAVE_DECL_SBRK 1
14672 cat >>confdefs.h <<_ACEOF
14673 @%:@define HAVE_DECL_SBRK 0
14680 { $as_echo "$as_me:$LINENO: checking whether setregid is declared" >&5
14681 $as_echo_n "checking whether setregid is declared... " >&6; }
14682 if test "${ac_cv_have_decl_setregid+set}" = set; then
14683 $as_echo_n "(cached) " >&6
14685 cat >conftest.$ac_ext <<_ACEOF
14688 cat confdefs.h >>conftest.$ac_ext
14689 cat >>conftest.$ac_ext <<_ACEOF
14690 /* end confdefs.h. */
14691 $ac_includes_default
14703 rm -f conftest.$ac_objext
14704 if { (ac_try="$ac_compile"
14705 case "(($ac_try" in
14706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14707 *) ac_try_echo=$ac_try;;
14709 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14710 $as_echo "$ac_try_echo") >&5
14711 (eval "$ac_compile") 2>conftest.er1
14713 grep -v '^ *+' conftest.er1 >conftest.err
14715 cat conftest.err >&5
14716 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14717 (exit $ac_status); } && {
14718 test -z "$ac_c_werror_flag" ||
14719 test ! -s conftest.err
14720 } && test -s conftest.$ac_objext; then
14721 ac_cv_have_decl_setregid=yes
14723 $as_echo "$as_me: failed program was:" >&5
14724 sed 's/^/| /' conftest.$ac_ext >&5
14726 ac_cv_have_decl_setregid=no
14729 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14731 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_setregid" >&5
14732 $as_echo "$ac_cv_have_decl_setregid" >&6; }
14733 if test "x$ac_cv_have_decl_setregid" = x""yes; then
14735 cat >>confdefs.h <<_ACEOF
14736 @%:@define HAVE_DECL_SETREGID 1
14741 cat >>confdefs.h <<_ACEOF
14742 @%:@define HAVE_DECL_SETREGID 0
14749 { $as_echo "$as_me:$LINENO: checking whether strcpy is declared" >&5
14750 $as_echo_n "checking whether strcpy is declared... " >&6; }
14751 if test "${ac_cv_have_decl_strcpy+set}" = set; then
14752 $as_echo_n "(cached) " >&6
14754 cat >conftest.$ac_ext <<_ACEOF
14757 cat confdefs.h >>conftest.$ac_ext
14758 cat >>conftest.$ac_ext <<_ACEOF
14759 /* end confdefs.h. */
14760 $ac_includes_default
14772 rm -f conftest.$ac_objext
14773 if { (ac_try="$ac_compile"
14774 case "(($ac_try" in
14775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14776 *) ac_try_echo=$ac_try;;
14778 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14779 $as_echo "$ac_try_echo") >&5
14780 (eval "$ac_compile") 2>conftest.er1
14782 grep -v '^ *+' conftest.er1 >conftest.err
14784 cat conftest.err >&5
14785 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14786 (exit $ac_status); } && {
14787 test -z "$ac_c_werror_flag" ||
14788 test ! -s conftest.err
14789 } && test -s conftest.$ac_objext; then
14790 ac_cv_have_decl_strcpy=yes
14792 $as_echo "$as_me: failed program was:" >&5
14793 sed 's/^/| /' conftest.$ac_ext >&5
14795 ac_cv_have_decl_strcpy=no
14798 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14800 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_strcpy" >&5
14801 $as_echo "$ac_cv_have_decl_strcpy" >&6; }
14802 if test "x$ac_cv_have_decl_strcpy" = x""yes; then
14804 cat >>confdefs.h <<_ACEOF
14805 @%:@define HAVE_DECL_STRCPY 1
14810 cat >>confdefs.h <<_ACEOF
14811 @%:@define HAVE_DECL_STRCPY 0
14818 { $as_echo "$as_me:$LINENO: checking whether strsignal is declared" >&5
14819 $as_echo_n "checking whether strsignal is declared... " >&6; }
14820 if test "${ac_cv_have_decl_strsignal+set}" = set; then
14821 $as_echo_n "(cached) " >&6
14823 cat >conftest.$ac_ext <<_ACEOF
14826 cat confdefs.h >>conftest.$ac_ext
14827 cat >>conftest.$ac_ext <<_ACEOF
14828 /* end confdefs.h. */
14829 $ac_includes_default
14841 rm -f conftest.$ac_objext
14842 if { (ac_try="$ac_compile"
14843 case "(($ac_try" in
14844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14845 *) ac_try_echo=$ac_try;;
14847 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14848 $as_echo "$ac_try_echo") >&5
14849 (eval "$ac_compile") 2>conftest.er1
14851 grep -v '^ *+' conftest.er1 >conftest.err
14853 cat conftest.err >&5
14854 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14855 (exit $ac_status); } && {
14856 test -z "$ac_c_werror_flag" ||
14857 test ! -s conftest.err
14858 } && test -s conftest.$ac_objext; then
14859 ac_cv_have_decl_strsignal=yes
14861 $as_echo "$as_me: failed program was:" >&5
14862 sed 's/^/| /' conftest.$ac_ext >&5
14864 ac_cv_have_decl_strsignal=no
14867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14869 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_strsignal" >&5
14870 $as_echo "$ac_cv_have_decl_strsignal" >&6; }
14871 if test "x$ac_cv_have_decl_strsignal" = x""yes; then
14873 cat >>confdefs.h <<_ACEOF
14874 @%:@define HAVE_DECL_STRSIGNAL 1
14879 cat >>confdefs.h <<_ACEOF
14880 @%:@define HAVE_DECL_STRSIGNAL 0
14888 { $as_echo "$as_me:$LINENO: checking whether strtold is declared" >&5
14889 $as_echo_n "checking whether strtold is declared... " >&6; }
14890 if test "${ac_cv_have_decl_strtold+set}" = set; then
14891 $as_echo_n "(cached) " >&6
14893 cat >conftest.$ac_ext <<_ACEOF
14896 cat confdefs.h >>conftest.$ac_ext
14897 cat >>conftest.$ac_ext <<_ACEOF
14898 /* end confdefs.h. */
14899 $ac_includes_default
14911 rm -f conftest.$ac_objext
14912 if { (ac_try="$ac_compile"
14913 case "(($ac_try" in
14914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14915 *) ac_try_echo=$ac_try;;
14917 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14918 $as_echo "$ac_try_echo") >&5
14919 (eval "$ac_compile") 2>conftest.er1
14921 grep -v '^ *+' conftest.er1 >conftest.err
14923 cat conftest.err >&5
14924 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14925 (exit $ac_status); } && {
14926 test -z "$ac_c_werror_flag" ||
14927 test ! -s conftest.err
14928 } && test -s conftest.$ac_objext; then
14929 ac_cv_have_decl_strtold=yes
14931 $as_echo "$as_me: failed program was:" >&5
14932 sed 's/^/| /' conftest.$ac_ext >&5
14934 ac_cv_have_decl_strtold=no
14937 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14939 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtold" >&5
14940 $as_echo "$ac_cv_have_decl_strtold" >&6; }
14941 if test "x$ac_cv_have_decl_strtold" = x""yes; then
14943 cat >>confdefs.h <<_ACEOF
14944 @%:@define HAVE_DECL_STRTOLD 1
14948 { $as_echo "$as_me:$LINENO: checking for broken strtold" >&5
14949 $as_echo_n "checking for broken strtold... " >&6; }
14950 if test "${bash_cv_strtold_broken+set}" = set; then
14951 $as_echo_n "(cached) " >&6
14953 cat >conftest.$ac_ext <<_ACEOF
14956 cat confdefs.h >>conftest.$ac_ext
14957 cat >>conftest.$ac_ext <<_ACEOF
14958 /* end confdefs.h. */
14959 #include <stdlib.h>
14963 int main() { long double r; char *foo, bar; r = strtold(foo, &bar);}
14968 rm -f conftest.$ac_objext
14969 if { (ac_try="$ac_compile"
14970 case "(($ac_try" in
14971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14972 *) ac_try_echo=$ac_try;;
14974 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14975 $as_echo "$ac_try_echo") >&5
14976 (eval "$ac_compile") 2>conftest.er1
14978 grep -v '^ *+' conftest.er1 >conftest.err
14980 cat conftest.err >&5
14981 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14982 (exit $ac_status); } && {
14983 test -z "$ac_c_werror_flag" ||
14984 test ! -s conftest.err
14985 } && test -s conftest.$ac_objext; then
14986 bash_cv_strtold_broken=no
14988 $as_echo "$as_me: failed program was:" >&5
14989 sed 's/^/| /' conftest.$ac_ext >&5
14991 bash_cv_strtold_broken=yes
14994 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14999 { $as_echo "$as_me:$LINENO: result: $bash_cv_strtold_broken" >&5
15000 $as_echo "$bash_cv_strtold_broken" >&6; }
15001 if test "$bash_cv_strtold_broken" = "yes" ; then
15002 cat >>confdefs.h <<\_ACEOF
15003 @%:@define STRTOLD_BROKEN 1
15009 cat >>confdefs.h <<_ACEOF
15010 @%:@define HAVE_DECL_STRTOLD 0
15022 { $as_echo "$as_me:$LINENO: checking for declaration of strtoimax" >&5
15023 $as_echo_n "checking for declaration of strtoimax... " >&6; }
15024 if test "${bash_cv_decl_strtoimax+set}" = set; then
15025 $as_echo_n "(cached) " >&6
15027 cat >conftest.$ac_ext <<_ACEOF
15030 cat confdefs.h >>conftest.$ac_ext
15031 cat >>conftest.$ac_ext <<_ACEOF
15032 /* end confdefs.h. */
15035 # include <stdlib.h>
15037 #if HAVE_INTTYPES_H
15038 # include <inttypes.h>
15049 rm -f conftest.$ac_objext conftest$ac_exeext
15050 if { (ac_try="$ac_link"
15051 case "(($ac_try" in
15052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15053 *) ac_try_echo=$ac_try;;
15055 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15056 $as_echo "$ac_try_echo") >&5
15057 (eval "$ac_link") 2>conftest.er1
15059 grep -v '^ *+' conftest.er1 >conftest.err
15061 cat conftest.err >&5
15062 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15063 (exit $ac_status); } && {
15064 test -z "$ac_c_werror_flag" ||
15065 test ! -s conftest.err
15066 } && test -s conftest$ac_exeext && {
15067 test "$cross_compiling" = yes ||
15068 $as_test_x conftest$ac_exeext
15070 bash_cv_decl_strtoimax=yes
15072 $as_echo "$as_me: failed program was:" >&5
15073 sed 's/^/| /' conftest.$ac_ext >&5
15075 bash_cv_decl_strtoimax=no
15078 rm -rf conftest.dSYM
15079 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15080 conftest$ac_exeext conftest.$ac_ext
15082 { $as_echo "$as_me:$LINENO: result: $bash_cv_decl_strtoimax" >&5
15083 $as_echo "$bash_cv_decl_strtoimax" >&6; }
15084 bash_tr_func=HAVE_DECL_`echo strtoimax | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15085 if test $bash_cv_decl_strtoimax = yes; then
15086 cat >>confdefs.h <<_ACEOF
15087 @%:@define $bash_tr_func 1
15091 cat >>confdefs.h <<_ACEOF
15092 @%:@define $bash_tr_func 0
15100 { $as_echo "$as_me:$LINENO: checking for declaration of strtol" >&5
15101 $as_echo_n "checking for declaration of strtol... " >&6; }
15102 if test "${bash_cv_decl_strtol+set}" = set; then
15103 $as_echo_n "(cached) " >&6
15105 cat >conftest.$ac_ext <<_ACEOF
15108 cat confdefs.h >>conftest.$ac_ext
15109 cat >>conftest.$ac_ext <<_ACEOF
15110 /* end confdefs.h. */
15113 # include <stdlib.h>
15115 #if HAVE_INTTYPES_H
15116 # include <inttypes.h>
15127 rm -f conftest.$ac_objext conftest$ac_exeext
15128 if { (ac_try="$ac_link"
15129 case "(($ac_try" in
15130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15131 *) ac_try_echo=$ac_try;;
15133 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15134 $as_echo "$ac_try_echo") >&5
15135 (eval "$ac_link") 2>conftest.er1
15137 grep -v '^ *+' conftest.er1 >conftest.err
15139 cat conftest.err >&5
15140 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15141 (exit $ac_status); } && {
15142 test -z "$ac_c_werror_flag" ||
15143 test ! -s conftest.err
15144 } && test -s conftest$ac_exeext && {
15145 test "$cross_compiling" = yes ||
15146 $as_test_x conftest$ac_exeext
15148 bash_cv_decl_strtol=yes
15150 $as_echo "$as_me: failed program was:" >&5
15151 sed 's/^/| /' conftest.$ac_ext >&5
15153 bash_cv_decl_strtol=no
15156 rm -rf conftest.dSYM
15157 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15158 conftest$ac_exeext conftest.$ac_ext
15160 { $as_echo "$as_me:$LINENO: result: $bash_cv_decl_strtol" >&5
15161 $as_echo "$bash_cv_decl_strtol" >&6; }
15162 bash_tr_func=HAVE_DECL_`echo strtol | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15163 if test $bash_cv_decl_strtol = yes; then
15164 cat >>confdefs.h <<_ACEOF
15165 @%:@define $bash_tr_func 1
15169 cat >>confdefs.h <<_ACEOF
15170 @%:@define $bash_tr_func 0
15178 { $as_echo "$as_me:$LINENO: checking for declaration of strtoll" >&5
15179 $as_echo_n "checking for declaration of strtoll... " >&6; }
15180 if test "${bash_cv_decl_strtoll+set}" = set; then
15181 $as_echo_n "(cached) " >&6
15183 cat >conftest.$ac_ext <<_ACEOF
15186 cat confdefs.h >>conftest.$ac_ext
15187 cat >>conftest.$ac_ext <<_ACEOF
15188 /* end confdefs.h. */
15191 # include <stdlib.h>
15193 #if HAVE_INTTYPES_H
15194 # include <inttypes.h>
15205 rm -f conftest.$ac_objext conftest$ac_exeext
15206 if { (ac_try="$ac_link"
15207 case "(($ac_try" in
15208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15209 *) ac_try_echo=$ac_try;;
15211 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15212 $as_echo "$ac_try_echo") >&5
15213 (eval "$ac_link") 2>conftest.er1
15215 grep -v '^ *+' conftest.er1 >conftest.err
15217 cat conftest.err >&5
15218 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15219 (exit $ac_status); } && {
15220 test -z "$ac_c_werror_flag" ||
15221 test ! -s conftest.err
15222 } && test -s conftest$ac_exeext && {
15223 test "$cross_compiling" = yes ||
15224 $as_test_x conftest$ac_exeext
15226 bash_cv_decl_strtoll=yes
15228 $as_echo "$as_me: failed program was:" >&5
15229 sed 's/^/| /' conftest.$ac_ext >&5
15231 bash_cv_decl_strtoll=no
15234 rm -rf conftest.dSYM
15235 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15236 conftest$ac_exeext conftest.$ac_ext
15238 { $as_echo "$as_me:$LINENO: result: $bash_cv_decl_strtoll" >&5
15239 $as_echo "$bash_cv_decl_strtoll" >&6; }
15240 bash_tr_func=HAVE_DECL_`echo strtoll | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15241 if test $bash_cv_decl_strtoll = yes; then
15242 cat >>confdefs.h <<_ACEOF
15243 @%:@define $bash_tr_func 1
15247 cat >>confdefs.h <<_ACEOF
15248 @%:@define $bash_tr_func 0
15256 { $as_echo "$as_me:$LINENO: checking for declaration of strtoul" >&5
15257 $as_echo_n "checking for declaration of strtoul... " >&6; }
15258 if test "${bash_cv_decl_strtoul+set}" = set; then
15259 $as_echo_n "(cached) " >&6
15261 cat >conftest.$ac_ext <<_ACEOF
15264 cat confdefs.h >>conftest.$ac_ext
15265 cat >>conftest.$ac_ext <<_ACEOF
15266 /* end confdefs.h. */
15269 # include <stdlib.h>
15271 #if HAVE_INTTYPES_H
15272 # include <inttypes.h>
15283 rm -f conftest.$ac_objext conftest$ac_exeext
15284 if { (ac_try="$ac_link"
15285 case "(($ac_try" in
15286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15287 *) ac_try_echo=$ac_try;;
15289 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15290 $as_echo "$ac_try_echo") >&5
15291 (eval "$ac_link") 2>conftest.er1
15293 grep -v '^ *+' conftest.er1 >conftest.err
15295 cat conftest.err >&5
15296 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15297 (exit $ac_status); } && {
15298 test -z "$ac_c_werror_flag" ||
15299 test ! -s conftest.err
15300 } && test -s conftest$ac_exeext && {
15301 test "$cross_compiling" = yes ||
15302 $as_test_x conftest$ac_exeext
15304 bash_cv_decl_strtoul=yes
15306 $as_echo "$as_me: failed program was:" >&5
15307 sed 's/^/| /' conftest.$ac_ext >&5
15309 bash_cv_decl_strtoul=no
15312 rm -rf conftest.dSYM
15313 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15314 conftest$ac_exeext conftest.$ac_ext
15316 { $as_echo "$as_me:$LINENO: result: $bash_cv_decl_strtoul" >&5
15317 $as_echo "$bash_cv_decl_strtoul" >&6; }
15318 bash_tr_func=HAVE_DECL_`echo strtoul | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15319 if test $bash_cv_decl_strtoul = yes; then
15320 cat >>confdefs.h <<_ACEOF
15321 @%:@define $bash_tr_func 1
15325 cat >>confdefs.h <<_ACEOF
15326 @%:@define $bash_tr_func 0
15334 { $as_echo "$as_me:$LINENO: checking for declaration of strtoull" >&5
15335 $as_echo_n "checking for declaration of strtoull... " >&6; }
15336 if test "${bash_cv_decl_strtoull+set}" = set; then
15337 $as_echo_n "(cached) " >&6
15339 cat >conftest.$ac_ext <<_ACEOF
15342 cat confdefs.h >>conftest.$ac_ext
15343 cat >>conftest.$ac_ext <<_ACEOF
15344 /* end confdefs.h. */
15347 # include <stdlib.h>
15349 #if HAVE_INTTYPES_H
15350 # include <inttypes.h>
15361 rm -f conftest.$ac_objext conftest$ac_exeext
15362 if { (ac_try="$ac_link"
15363 case "(($ac_try" in
15364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15365 *) ac_try_echo=$ac_try;;
15367 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15368 $as_echo "$ac_try_echo") >&5
15369 (eval "$ac_link") 2>conftest.er1
15371 grep -v '^ *+' conftest.er1 >conftest.err
15373 cat conftest.err >&5
15374 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15375 (exit $ac_status); } && {
15376 test -z "$ac_c_werror_flag" ||
15377 test ! -s conftest.err
15378 } && test -s conftest$ac_exeext && {
15379 test "$cross_compiling" = yes ||
15380 $as_test_x conftest$ac_exeext
15382 bash_cv_decl_strtoull=yes
15384 $as_echo "$as_me: failed program was:" >&5
15385 sed 's/^/| /' conftest.$ac_ext >&5
15387 bash_cv_decl_strtoull=no
15390 rm -rf conftest.dSYM
15391 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15392 conftest$ac_exeext conftest.$ac_ext
15394 { $as_echo "$as_me:$LINENO: result: $bash_cv_decl_strtoull" >&5
15395 $as_echo "$bash_cv_decl_strtoull" >&6; }
15396 bash_tr_func=HAVE_DECL_`echo strtoull | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15397 if test $bash_cv_decl_strtoull = yes; then
15398 cat >>confdefs.h <<_ACEOF
15399 @%:@define $bash_tr_func 1
15403 cat >>confdefs.h <<_ACEOF
15404 @%:@define $bash_tr_func 0
15412 { $as_echo "$as_me:$LINENO: checking for declaration of strtoumax" >&5
15413 $as_echo_n "checking for declaration of strtoumax... " >&6; }
15414 if test "${bash_cv_decl_strtoumax+set}" = set; then
15415 $as_echo_n "(cached) " >&6
15417 cat >conftest.$ac_ext <<_ACEOF
15420 cat confdefs.h >>conftest.$ac_ext
15421 cat >>conftest.$ac_ext <<_ACEOF
15422 /* end confdefs.h. */
15425 # include <stdlib.h>
15427 #if HAVE_INTTYPES_H
15428 # include <inttypes.h>
15439 rm -f conftest.$ac_objext conftest$ac_exeext
15440 if { (ac_try="$ac_link"
15441 case "(($ac_try" in
15442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15443 *) ac_try_echo=$ac_try;;
15445 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15446 $as_echo "$ac_try_echo") >&5
15447 (eval "$ac_link") 2>conftest.er1
15449 grep -v '^ *+' conftest.er1 >conftest.err
15451 cat conftest.err >&5
15452 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15453 (exit $ac_status); } && {
15454 test -z "$ac_c_werror_flag" ||
15455 test ! -s conftest.err
15456 } && test -s conftest$ac_exeext && {
15457 test "$cross_compiling" = yes ||
15458 $as_test_x conftest$ac_exeext
15460 bash_cv_decl_strtoumax=yes
15462 $as_echo "$as_me: failed program was:" >&5
15463 sed 's/^/| /' conftest.$ac_ext >&5
15465 bash_cv_decl_strtoumax=no
15468 rm -rf conftest.dSYM
15469 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15470 conftest$ac_exeext conftest.$ac_ext
15472 { $as_echo "$as_me:$LINENO: result: $bash_cv_decl_strtoumax" >&5
15473 $as_echo "$bash_cv_decl_strtoumax" >&6; }
15474 bash_tr_func=HAVE_DECL_`echo strtoumax | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15475 if test $bash_cv_decl_strtoumax = yes; then
15476 cat >>confdefs.h <<_ACEOF
15477 @%:@define $bash_tr_func 1
15481 cat >>confdefs.h <<_ACEOF
15482 @%:@define $bash_tr_func 0
15492 for ac_header in $ac_header_list
15494 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15495 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15496 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15497 $as_echo_n "checking for $ac_header... " >&6; }
15498 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15499 $as_echo_n "(cached) " >&6
15501 ac_res=`eval 'as_val=${'$as_ac_Header'}
15502 $as_echo "$as_val"'`
15503 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15504 $as_echo "$ac_res" >&6; }
15506 # Is the header compilable?
15507 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
15508 $as_echo_n "checking $ac_header usability... " >&6; }
15509 cat >conftest.$ac_ext <<_ACEOF
15512 cat confdefs.h >>conftest.$ac_ext
15513 cat >>conftest.$ac_ext <<_ACEOF
15514 /* end confdefs.h. */
15515 $ac_includes_default
15516 @%:@include <$ac_header>
15518 rm -f conftest.$ac_objext
15519 if { (ac_try="$ac_compile"
15520 case "(($ac_try" in
15521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15522 *) ac_try_echo=$ac_try;;
15524 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15525 $as_echo "$ac_try_echo") >&5
15526 (eval "$ac_compile") 2>conftest.er1
15528 grep -v '^ *+' conftest.er1 >conftest.err
15530 cat conftest.err >&5
15531 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15532 (exit $ac_status); } && {
15533 test -z "$ac_c_werror_flag" ||
15534 test ! -s conftest.err
15535 } && test -s conftest.$ac_objext; then
15536 ac_header_compiler=yes
15538 $as_echo "$as_me: failed program was:" >&5
15539 sed 's/^/| /' conftest.$ac_ext >&5
15541 ac_header_compiler=no
15544 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15545 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15546 $as_echo "$ac_header_compiler" >&6; }
15548 # Is the header present?
15549 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
15550 $as_echo_n "checking $ac_header presence... " >&6; }
15551 cat >conftest.$ac_ext <<_ACEOF
15554 cat confdefs.h >>conftest.$ac_ext
15555 cat >>conftest.$ac_ext <<_ACEOF
15556 /* end confdefs.h. */
15557 @%:@include <$ac_header>
15559 if { (ac_try="$ac_cpp conftest.$ac_ext"
15560 case "(($ac_try" in
15561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15562 *) ac_try_echo=$ac_try;;
15564 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15565 $as_echo "$ac_try_echo") >&5
15566 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15568 grep -v '^ *+' conftest.er1 >conftest.err
15570 cat conftest.err >&5
15571 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15572 (exit $ac_status); } >/dev/null && {
15573 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15574 test ! -s conftest.err
15576 ac_header_preproc=yes
15578 $as_echo "$as_me: failed program was:" >&5
15579 sed 's/^/| /' conftest.$ac_ext >&5
15581 ac_header_preproc=no
15584 rm -f conftest.err conftest.$ac_ext
15585 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15586 $as_echo "$ac_header_preproc" >&6; }
15588 # So? What about this header?
15589 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15591 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15592 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15593 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15594 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15595 ac_header_preproc=yes
15598 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15599 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15600 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15601 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15602 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15603 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15604 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15605 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15606 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15607 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15608 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15609 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15611 @%:@@%:@ ------------------------------- @%:@@%:@
15612 @%:@@%:@ Report this to bug-bash@gnu.org @%:@@%:@
15613 @%:@@%:@ ------------------------------- @%:@@%:@
15615 ) | sed "s/^/$as_me: WARNING: /" >&2
15618 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15619 $as_echo_n "checking for $ac_header... " >&6; }
15620 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15621 $as_echo_n "(cached) " >&6
15623 eval "$as_ac_Header=\$ac_header_preproc"
15625 ac_res=`eval 'as_val=${'$as_ac_Header'}
15626 $as_echo "$as_val"'`
15627 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15628 $as_echo "$ac_res" >&6; }
15631 as_val=`eval 'as_val=${'$as_ac_Header'}
15632 $as_echo "$as_val"'`
15633 if test "x$as_val" = x""yes; then
15634 cat >>confdefs.h <<_ACEOF
15635 @%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15650 for ac_func in $ac_func_list
15652 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15653 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
15654 $as_echo_n "checking for $ac_func... " >&6; }
15655 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15656 $as_echo_n "(cached) " >&6
15658 cat >conftest.$ac_ext <<_ACEOF
15661 cat confdefs.h >>conftest.$ac_ext
15662 cat >>conftest.$ac_ext <<_ACEOF
15663 /* end confdefs.h. */
15664 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15665 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15666 #define $ac_func innocuous_$ac_func
15668 /* System header to define __stub macros and hopefully few prototypes,
15669 which can conflict with char $ac_func (); below.
15670 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15671 <limits.h> exists even on freestanding compilers. */
15674 # include <limits.h>
15676 # include <assert.h>
15681 /* Override any GCC internal prototype to avoid an error.
15682 Use char because int might match the return type of a GCC
15683 builtin and then its argument prototype would still apply. */
15688 /* The GNU C library defines this for functions which it implements
15689 to always fail with ENOSYS. Some functions are actually named
15690 something starting with __ and the normal name is an alias. */
15691 #if defined __stub_$ac_func || defined __stub___$ac_func
15698 return $ac_func ();
15703 rm -f conftest.$ac_objext conftest$ac_exeext
15704 if { (ac_try="$ac_link"
15705 case "(($ac_try" in
15706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15707 *) ac_try_echo=$ac_try;;
15709 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15710 $as_echo "$ac_try_echo") >&5
15711 (eval "$ac_link") 2>conftest.er1
15713 grep -v '^ *+' conftest.er1 >conftest.err
15715 cat conftest.err >&5
15716 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15717 (exit $ac_status); } && {
15718 test -z "$ac_c_werror_flag" ||
15719 test ! -s conftest.err
15720 } && test -s conftest$ac_exeext && {
15721 test "$cross_compiling" = yes ||
15722 $as_test_x conftest$ac_exeext
15724 eval "$as_ac_var=yes"
15726 $as_echo "$as_me: failed program was:" >&5
15727 sed 's/^/| /' conftest.$ac_ext >&5
15729 eval "$as_ac_var=no"
15732 rm -rf conftest.dSYM
15733 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15734 conftest$ac_exeext conftest.$ac_ext
15736 ac_res=`eval 'as_val=${'$as_ac_var'}
15737 $as_echo "$as_val"'`
15738 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15739 $as_echo "$ac_res" >&6; }
15740 as_val=`eval 'as_val=${'$as_ac_var'}
15741 $as_echo "$as_val"'`
15742 if test "x$as_val" = x""yes; then
15743 cat >>confdefs.h <<_ACEOF
15744 @%:@define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15766 { $as_echo "$as_me:$LINENO: checking for working mktime" >&5
15767 $as_echo_n "checking for working mktime... " >&6; }
15768 if test "${ac_cv_func_working_mktime+set}" = set; then
15769 $as_echo_n "(cached) " >&6
15771 if test "$cross_compiling" = yes; then
15772 ac_cv_func_working_mktime=no
15774 cat >conftest.$ac_ext <<_ACEOF
15777 cat confdefs.h >>conftest.$ac_ext
15778 cat >>conftest.$ac_ext <<_ACEOF
15779 /* end confdefs.h. */
15780 /* Test program from Paul Eggert and Tony Leneis. */
15781 #ifdef TIME_WITH_SYS_TIME
15782 # include <sys/time.h>
15785 # ifdef HAVE_SYS_TIME_H
15786 # include <sys/time.h>
15792 #include <limits.h>
15793 #include <stdlib.h>
15795 #ifdef HAVE_UNISTD_H
15796 # include <unistd.h>
15800 # define alarm(X) /* empty */
15803 /* Work around redefinition to rpl_putenv by other config tests. */
15806 static time_t time_t_max;
15807 static time_t time_t_min;
15809 /* Values we'll use to set the TZ environment variable. */
15810 static char *tz_strings[] = {
15811 (char *) 0, "TZ=GMT0", "TZ=JST-9",
15812 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
15814 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
15816 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
15817 Based on a problem report from Andreas Jaeger. */
15819 spring_forward_gap ()
15821 /* glibc (up to about 1998-10-07) failed this test. */
15824 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
15825 instead of "TZ=America/Vancouver" in order to detect the bug even
15826 on systems that don't support the Olson extension, or don't have the
15827 full zoneinfo tables installed. */
15828 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
15837 return mktime (&tm) != (time_t) -1;
15845 return ! (lt = localtime (&now)) || mktime (lt) == now;
15852 return (mktime_test1 (now)
15853 && mktime_test1 ((time_t) (time_t_max - now))
15854 && mktime_test1 ((time_t) (time_t_min + now)));
15860 /* Based on code from Ariel Faigon. */
15870 return tm.tm_mon == 2 && tm.tm_mday == 31;
15879 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
15880 now = mktime (&tm);
15881 if (now != (time_t) -1)
15883 struct tm *lt = localtime (&now);
15885 && lt->tm_year == tm.tm_year
15886 && lt->tm_mon == tm.tm_mon
15887 && lt->tm_mday == tm.tm_mday
15888 && lt->tm_hour == tm.tm_hour
15889 && lt->tm_min == tm.tm_min
15890 && lt->tm_sec == tm.tm_sec
15891 && lt->tm_yday == tm.tm_yday
15892 && lt->tm_wday == tm.tm_wday
15893 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
15894 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
15903 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
15904 ignoring leap seconds. */
15905 unsigned long int answer = 2527315200UL;
15909 tm.tm_year = 2050 - 1900;
15912 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
15915 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
15916 instead of "TZ=America/Vancouver" in order to detect the bug even
15917 on systems that don't support the Olson extension, or don't have the
15918 full zoneinfo tables installed. */
15919 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
15923 /* Check that the result is either a failure, or close enough
15924 to the correct answer that we can assume the discrepancy is
15925 due to leap seconds. */
15926 return (t == (time_t) -1
15927 || (0 < t && answer - 120 <= t && t <= answer + 120));
15936 /* This test makes some buggy mktime implementations loop.
15937 Give up after 60 seconds; a mktime slower than that
15938 isn't worth using anyway. */
15943 t = (time_t_max << 1) + 1;
15944 if (t <= time_t_max)
15948 time_t_min = - ((time_t) ~ (time_t) 0 == (time_t) -1) - time_t_max;
15950 delta = time_t_max / 997; /* a suitable prime number */
15951 for (i = 0; i < N_STRINGS; i++)
15954 putenv (tz_strings[i]);
15956 for (t = 0; t <= time_t_max - delta; t += delta)
15957 if (! mktime_test (t))
15959 if (! (mktime_test ((time_t) 1)
15960 && mktime_test ((time_t) (60 * 60))
15961 && mktime_test ((time_t) (60 * 60 * 24))))
15964 for (j = 1; ; j <<= 1)
15965 if (! bigtime_test (j))
15967 else if (INT_MAX / 2 < j)
15969 if (! bigtime_test (INT_MAX))
15972 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
15975 rm -f conftest$ac_exeext
15976 if { (ac_try="$ac_link"
15977 case "(($ac_try" in
15978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15979 *) ac_try_echo=$ac_try;;
15981 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15982 $as_echo "$ac_try_echo") >&5
15983 (eval "$ac_link") 2>&5
15985 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15986 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15987 { (case "(($ac_try" in
15988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15989 *) ac_try_echo=$ac_try;;
15991 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15992 $as_echo "$ac_try_echo") >&5
15993 (eval "$ac_try") 2>&5
15995 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15996 (exit $ac_status); }; }; then
15997 ac_cv_func_working_mktime=yes
15999 $as_echo "$as_me: program exited with status $ac_status" >&5
16000 $as_echo "$as_me: failed program was:" >&5
16001 sed 's/^/| /' conftest.$ac_ext >&5
16003 ( exit $ac_status )
16004 ac_cv_func_working_mktime=no
16006 rm -rf conftest.dSYM
16007 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16012 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
16013 $as_echo "$ac_cv_func_working_mktime" >&6; }
16014 if test $ac_cv_func_working_mktime = no; then
16015 case " $LIB@&t@OBJS " in
16016 *" mktime.$ac_objext "* ) ;;
16017 *) LIB@&t@OBJS="$LIB@&t@OBJS mktime.$ac_objext"
16030 for ac_header in argz.h errno.h fcntl.h malloc.h stdio_ext.h
16032 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16033 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16034 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16035 $as_echo_n "checking for $ac_header... " >&6; }
16036 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16037 $as_echo_n "(cached) " >&6
16039 ac_res=`eval 'as_val=${'$as_ac_Header'}
16040 $as_echo "$as_val"'`
16041 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16042 $as_echo "$ac_res" >&6; }
16044 # Is the header compilable?
16045 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
16046 $as_echo_n "checking $ac_header usability... " >&6; }
16047 cat >conftest.$ac_ext <<_ACEOF
16050 cat confdefs.h >>conftest.$ac_ext
16051 cat >>conftest.$ac_ext <<_ACEOF
16052 /* end confdefs.h. */
16053 $ac_includes_default
16054 @%:@include <$ac_header>
16056 rm -f conftest.$ac_objext
16057 if { (ac_try="$ac_compile"
16058 case "(($ac_try" in
16059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16060 *) ac_try_echo=$ac_try;;
16062 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16063 $as_echo "$ac_try_echo") >&5
16064 (eval "$ac_compile") 2>conftest.er1
16066 grep -v '^ *+' conftest.er1 >conftest.err
16068 cat conftest.err >&5
16069 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16070 (exit $ac_status); } && {
16071 test -z "$ac_c_werror_flag" ||
16072 test ! -s conftest.err
16073 } && test -s conftest.$ac_objext; then
16074 ac_header_compiler=yes
16076 $as_echo "$as_me: failed program was:" >&5
16077 sed 's/^/| /' conftest.$ac_ext >&5
16079 ac_header_compiler=no
16082 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16083 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16084 $as_echo "$ac_header_compiler" >&6; }
16086 # Is the header present?
16087 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
16088 $as_echo_n "checking $ac_header presence... " >&6; }
16089 cat >conftest.$ac_ext <<_ACEOF
16092 cat confdefs.h >>conftest.$ac_ext
16093 cat >>conftest.$ac_ext <<_ACEOF
16094 /* end confdefs.h. */
16095 @%:@include <$ac_header>
16097 if { (ac_try="$ac_cpp conftest.$ac_ext"
16098 case "(($ac_try" in
16099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16100 *) ac_try_echo=$ac_try;;
16102 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16103 $as_echo "$ac_try_echo") >&5
16104 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16106 grep -v '^ *+' conftest.er1 >conftest.err
16108 cat conftest.err >&5
16109 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16110 (exit $ac_status); } >/dev/null && {
16111 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16112 test ! -s conftest.err
16114 ac_header_preproc=yes
16116 $as_echo "$as_me: failed program was:" >&5
16117 sed 's/^/| /' conftest.$ac_ext >&5
16119 ac_header_preproc=no
16122 rm -f conftest.err conftest.$ac_ext
16123 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16124 $as_echo "$ac_header_preproc" >&6; }
16126 # So? What about this header?
16127 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16129 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16130 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16131 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16132 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16133 ac_header_preproc=yes
16136 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16137 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16138 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16139 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16140 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16141 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16142 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16143 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16144 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16145 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16146 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16147 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16149 @%:@@%:@ ------------------------------- @%:@@%:@
16150 @%:@@%:@ Report this to bug-bash@gnu.org @%:@@%:@
16151 @%:@@%:@ ------------------------------- @%:@@%:@
16153 ) | sed "s/^/$as_me: WARNING: /" >&2
16156 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16157 $as_echo_n "checking for $ac_header... " >&6; }
16158 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16159 $as_echo_n "(cached) " >&6
16161 eval "$as_ac_Header=\$ac_header_preproc"
16163 ac_res=`eval 'as_val=${'$as_ac_Header'}
16164 $as_echo "$as_val"'`
16165 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16166 $as_echo "$ac_res" >&6; }
16169 as_val=`eval 'as_val=${'$as_ac_Header'}
16170 $as_echo "$as_val"'`
16171 if test "x$as_val" = x""yes; then
16172 cat >>confdefs.h <<_ACEOF
16173 @%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16183 for ac_header in stdlib.h unistd.h
16185 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16186 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16187 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16188 $as_echo_n "checking for $ac_header... " >&6; }
16189 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16190 $as_echo_n "(cached) " >&6
16192 ac_res=`eval 'as_val=${'$as_ac_Header'}
16193 $as_echo "$as_val"'`
16194 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16195 $as_echo "$ac_res" >&6; }
16197 # Is the header compilable?
16198 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
16199 $as_echo_n "checking $ac_header usability... " >&6; }
16200 cat >conftest.$ac_ext <<_ACEOF
16203 cat confdefs.h >>conftest.$ac_ext
16204 cat >>conftest.$ac_ext <<_ACEOF
16205 /* end confdefs.h. */
16206 $ac_includes_default
16207 @%:@include <$ac_header>
16209 rm -f conftest.$ac_objext
16210 if { (ac_try="$ac_compile"
16211 case "(($ac_try" in
16212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16213 *) ac_try_echo=$ac_try;;
16215 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16216 $as_echo "$ac_try_echo") >&5
16217 (eval "$ac_compile") 2>conftest.er1
16219 grep -v '^ *+' conftest.er1 >conftest.err
16221 cat conftest.err >&5
16222 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16223 (exit $ac_status); } && {
16224 test -z "$ac_c_werror_flag" ||
16225 test ! -s conftest.err
16226 } && test -s conftest.$ac_objext; then
16227 ac_header_compiler=yes
16229 $as_echo "$as_me: failed program was:" >&5
16230 sed 's/^/| /' conftest.$ac_ext >&5
16232 ac_header_compiler=no
16235 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16236 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16237 $as_echo "$ac_header_compiler" >&6; }
16239 # Is the header present?
16240 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
16241 $as_echo_n "checking $ac_header presence... " >&6; }
16242 cat >conftest.$ac_ext <<_ACEOF
16245 cat confdefs.h >>conftest.$ac_ext
16246 cat >>conftest.$ac_ext <<_ACEOF
16247 /* end confdefs.h. */
16248 @%:@include <$ac_header>
16250 if { (ac_try="$ac_cpp conftest.$ac_ext"
16251 case "(($ac_try" in
16252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16253 *) ac_try_echo=$ac_try;;
16255 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16256 $as_echo "$ac_try_echo") >&5
16257 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16259 grep -v '^ *+' conftest.er1 >conftest.err
16261 cat conftest.err >&5
16262 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16263 (exit $ac_status); } >/dev/null && {
16264 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16265 test ! -s conftest.err
16267 ac_header_preproc=yes
16269 $as_echo "$as_me: failed program was:" >&5
16270 sed 's/^/| /' conftest.$ac_ext >&5
16272 ac_header_preproc=no
16275 rm -f conftest.err conftest.$ac_ext
16276 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16277 $as_echo "$ac_header_preproc" >&6; }
16279 # So? What about this header?
16280 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16282 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16283 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16284 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16285 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16286 ac_header_preproc=yes
16289 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16290 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16291 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16292 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16293 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16294 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16295 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16296 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16297 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16298 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16299 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16300 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16302 @%:@@%:@ ------------------------------- @%:@@%:@
16303 @%:@@%:@ Report this to bug-bash@gnu.org @%:@@%:@
16304 @%:@@%:@ ------------------------------- @%:@@%:@
16306 ) | sed "s/^/$as_me: WARNING: /" >&2
16309 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16310 $as_echo_n "checking for $ac_header... " >&6; }
16311 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16312 $as_echo_n "(cached) " >&6
16314 eval "$as_ac_Header=\$ac_header_preproc"
16316 ac_res=`eval 'as_val=${'$as_ac_Header'}
16317 $as_echo "$as_val"'`
16318 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16319 $as_echo "$ac_res" >&6; }
16322 as_val=`eval 'as_val=${'$as_ac_Header'}
16323 $as_echo "$as_val"'`
16324 if test "x$as_val" = x""yes; then
16325 cat >>confdefs.h <<_ACEOF
16326 @%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16334 for ac_func in getpagesize
16336 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16337 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
16338 $as_echo_n "checking for $ac_func... " >&6; }
16339 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16340 $as_echo_n "(cached) " >&6
16342 cat >conftest.$ac_ext <<_ACEOF
16345 cat confdefs.h >>conftest.$ac_ext
16346 cat >>conftest.$ac_ext <<_ACEOF
16347 /* end confdefs.h. */
16348 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16349 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16350 #define $ac_func innocuous_$ac_func
16352 /* System header to define __stub macros and hopefully few prototypes,
16353 which can conflict with char $ac_func (); below.
16354 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16355 <limits.h> exists even on freestanding compilers. */
16358 # include <limits.h>
16360 # include <assert.h>
16365 /* Override any GCC internal prototype to avoid an error.
16366 Use char because int might match the return type of a GCC
16367 builtin and then its argument prototype would still apply. */
16372 /* The GNU C library defines this for functions which it implements
16373 to always fail with ENOSYS. Some functions are actually named
16374 something starting with __ and the normal name is an alias. */
16375 #if defined __stub_$ac_func || defined __stub___$ac_func
16382 return $ac_func ();
16387 rm -f conftest.$ac_objext conftest$ac_exeext
16388 if { (ac_try="$ac_link"
16389 case "(($ac_try" in
16390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16391 *) ac_try_echo=$ac_try;;
16393 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16394 $as_echo "$ac_try_echo") >&5
16395 (eval "$ac_link") 2>conftest.er1
16397 grep -v '^ *+' conftest.er1 >conftest.err
16399 cat conftest.err >&5
16400 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16401 (exit $ac_status); } && {
16402 test -z "$ac_c_werror_flag" ||
16403 test ! -s conftest.err
16404 } && test -s conftest$ac_exeext && {
16405 test "$cross_compiling" = yes ||
16406 $as_test_x conftest$ac_exeext
16408 eval "$as_ac_var=yes"
16410 $as_echo "$as_me: failed program was:" >&5
16411 sed 's/^/| /' conftest.$ac_ext >&5
16413 eval "$as_ac_var=no"
16416 rm -rf conftest.dSYM
16417 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16418 conftest$ac_exeext conftest.$ac_ext
16420 ac_res=`eval 'as_val=${'$as_ac_var'}
16421 $as_echo "$as_val"'`
16422 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16423 $as_echo "$ac_res" >&6; }
16424 as_val=`eval 'as_val=${'$as_ac_var'}
16425 $as_echo "$as_val"'`
16426 if test "x$as_val" = x""yes; then
16427 cat >>confdefs.h <<_ACEOF
16428 @%:@define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16434 { $as_echo "$as_me:$LINENO: checking for working mmap" >&5
16435 $as_echo_n "checking for working mmap... " >&6; }
16436 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
16437 $as_echo_n "(cached) " >&6
16439 if test "$cross_compiling" = yes; then
16440 ac_cv_func_mmap_fixed_mapped=no
16442 cat >conftest.$ac_ext <<_ACEOF
16445 cat confdefs.h >>conftest.$ac_ext
16446 cat >>conftest.$ac_ext <<_ACEOF
16447 /* end confdefs.h. */
16448 $ac_includes_default
16449 /* malloc might have been renamed as rpl_malloc. */
16452 /* Thanks to Mike Haertel and Jim Avera for this test.
16453 Here is a matrix of mmap possibilities:
16454 mmap private not fixed
16455 mmap private fixed at somewhere currently unmapped
16456 mmap private fixed at somewhere already mapped
16457 mmap shared not fixed
16458 mmap shared fixed at somewhere currently unmapped
16459 mmap shared fixed at somewhere already mapped
16460 For private mappings, we should verify that changes cannot be read()
16461 back from the file, nor mmap's back from the file at a different
16462 address. (There have been systems where private was not correctly
16463 implemented like the infamous i386 svr4.0, and systems where the
16464 VM page cache was not coherent with the file system buffer cache
16465 like early versions of FreeBSD and possibly contemporary NetBSD.)
16466 For shared mappings, we should conversely verify that changes get
16467 propagated back to all the places they're supposed to be.
16469 Grep wants private fixed already mapped.
16470 The main things grep needs to know about mmap are:
16471 * does it exist and is it safe to write into the mmap'd area
16472 * how to use it (BSD variants) */
16475 #include <sys/mman.h>
16477 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
16481 /* This mess was copied from the GNU getpagesize.h. */
16482 #ifndef HAVE_GETPAGESIZE
16483 /* Assume that all systems that can run configure have sys/param.h. */
16484 # ifndef HAVE_SYS_PARAM_H
16485 # define HAVE_SYS_PARAM_H 1
16488 # ifdef _SC_PAGESIZE
16489 # define getpagesize() sysconf(_SC_PAGESIZE)
16490 # else /* no _SC_PAGESIZE */
16491 # ifdef HAVE_SYS_PARAM_H
16492 # include <sys/param.h>
16493 # ifdef EXEC_PAGESIZE
16494 # define getpagesize() EXEC_PAGESIZE
16495 # else /* no EXEC_PAGESIZE */
16497 # define getpagesize() NBPG * CLSIZE
16500 # endif /* no CLSIZE */
16501 # else /* no NBPG */
16503 # define getpagesize() NBPC
16504 # else /* no NBPC */
16506 # define getpagesize() PAGESIZE
16507 # endif /* PAGESIZE */
16508 # endif /* no NBPC */
16509 # endif /* no NBPG */
16510 # endif /* no EXEC_PAGESIZE */
16511 # else /* no HAVE_SYS_PARAM_H */
16512 # define getpagesize() 8192 /* punt totally */
16513 # endif /* no HAVE_SYS_PARAM_H */
16514 # endif /* no _SC_PAGESIZE */
16516 #endif /* no HAVE_GETPAGESIZE */
16521 char *data, *data2, *data3;
16525 pagesize = getpagesize ();
16527 /* First, make a file with some known garbage in it. */
16528 data = (char *) malloc (pagesize);
16531 for (i = 0; i < pagesize; ++i)
16532 *(data + i) = rand ();
16534 fd = creat ("conftest.mmap", 0600);
16537 if (write (fd, data, pagesize) != pagesize)
16541 /* Next, try to mmap the file at a fixed address which already has
16542 something else allocated at it. If we can, also make sure that
16543 we see the same garbage. */
16544 fd = open ("conftest.mmap", O_RDWR);
16547 data2 = (char *) malloc (2 * pagesize);
16550 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
16551 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
16552 MAP_PRIVATE | MAP_FIXED, fd, 0L))
16554 for (i = 0; i < pagesize; ++i)
16555 if (*(data + i) != *(data2 + i))
16558 /* Finally, make sure that changes to the mapped area do not
16559 percolate back to the file as seen by read(). (This is a bug on
16560 some variants of i386 svr4.0.) */
16561 for (i = 0; i < pagesize; ++i)
16562 *(data2 + i) = *(data2 + i) + 1;
16563 data3 = (char *) malloc (pagesize);
16566 if (read (fd, data3, pagesize) != pagesize)
16568 for (i = 0; i < pagesize; ++i)
16569 if (*(data + i) != *(data3 + i))
16575 rm -f conftest$ac_exeext
16576 if { (ac_try="$ac_link"
16577 case "(($ac_try" in
16578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16579 *) ac_try_echo=$ac_try;;
16581 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16582 $as_echo "$ac_try_echo") >&5
16583 (eval "$ac_link") 2>&5
16585 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16586 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16587 { (case "(($ac_try" in
16588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16589 *) ac_try_echo=$ac_try;;
16591 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16592 $as_echo "$ac_try_echo") >&5
16593 (eval "$ac_try") 2>&5
16595 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16596 (exit $ac_status); }; }; then
16597 ac_cv_func_mmap_fixed_mapped=yes
16599 $as_echo "$as_me: program exited with status $ac_status" >&5
16600 $as_echo "$as_me: failed program was:" >&5
16601 sed 's/^/| /' conftest.$ac_ext >&5
16603 ( exit $ac_status )
16604 ac_cv_func_mmap_fixed_mapped=no
16606 rm -rf conftest.dSYM
16607 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16612 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
16613 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
16614 if test $ac_cv_func_mmap_fixed_mapped = yes; then
16616 cat >>confdefs.h <<\_ACEOF
16617 @%:@define HAVE_MMAP 1
16621 rm -f conftest.mmap
16632 for ac_func in __argz_count __argz_next __argz_stringify dcgettext mempcpy \
16633 munmap stpcpy strcspn strdup
16635 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16636 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
16637 $as_echo_n "checking for $ac_func... " >&6; }
16638 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16639 $as_echo_n "(cached) " >&6
16641 cat >conftest.$ac_ext <<_ACEOF
16644 cat confdefs.h >>conftest.$ac_ext
16645 cat >>conftest.$ac_ext <<_ACEOF
16646 /* end confdefs.h. */
16647 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16648 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16649 #define $ac_func innocuous_$ac_func
16651 /* System header to define __stub macros and hopefully few prototypes,
16652 which can conflict with char $ac_func (); below.
16653 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16654 <limits.h> exists even on freestanding compilers. */
16657 # include <limits.h>
16659 # include <assert.h>
16664 /* Override any GCC internal prototype to avoid an error.
16665 Use char because int might match the return type of a GCC
16666 builtin and then its argument prototype would still apply. */
16671 /* The GNU C library defines this for functions which it implements
16672 to always fail with ENOSYS. Some functions are actually named
16673 something starting with __ and the normal name is an alias. */
16674 #if defined __stub_$ac_func || defined __stub___$ac_func
16681 return $ac_func ();
16686 rm -f conftest.$ac_objext conftest$ac_exeext
16687 if { (ac_try="$ac_link"
16688 case "(($ac_try" in
16689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16690 *) ac_try_echo=$ac_try;;
16692 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16693 $as_echo "$ac_try_echo") >&5
16694 (eval "$ac_link") 2>conftest.er1
16696 grep -v '^ *+' conftest.er1 >conftest.err
16698 cat conftest.err >&5
16699 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16700 (exit $ac_status); } && {
16701 test -z "$ac_c_werror_flag" ||
16702 test ! -s conftest.err
16703 } && test -s conftest$ac_exeext && {
16704 test "$cross_compiling" = yes ||
16705 $as_test_x conftest$ac_exeext
16707 eval "$as_ac_var=yes"
16709 $as_echo "$as_me: failed program was:" >&5
16710 sed 's/^/| /' conftest.$ac_ext >&5
16712 eval "$as_ac_var=no"
16715 rm -rf conftest.dSYM
16716 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16717 conftest$ac_exeext conftest.$ac_ext
16719 ac_res=`eval 'as_val=${'$as_ac_var'}
16720 $as_echo "$as_val"'`
16721 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16722 $as_echo "$ac_res" >&6; }
16723 as_val=`eval 'as_val=${'$as_ac_var'}
16724 $as_echo "$as_val"'`
16725 if test "x$as_val" = x""yes; then
16726 cat >>confdefs.h <<_ACEOF
16727 @%:@define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16734 INTL_DEP= INTL_INC= LIBINTL_H=
16735 if test "x$USE_INCLUDED_LIBINTL" = "xyes"; then
16736 INTL_DEP='${INTL_LIBDIR}/libintl.a'
16737 INTL_INC='-I${INTL_LIBSRC} -I${INTL_BUILDDIR}'
16738 LIBINTL_H='${INTL_BUILDDIR}/libintl.h'
16747 for ac_header in wctype.h
16749 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16750 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16751 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16752 $as_echo_n "checking for $ac_header... " >&6; }
16753 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16754 $as_echo_n "(cached) " >&6
16756 ac_res=`eval 'as_val=${'$as_ac_Header'}
16757 $as_echo "$as_val"'`
16758 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16759 $as_echo "$ac_res" >&6; }
16761 # Is the header compilable?
16762 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
16763 $as_echo_n "checking $ac_header usability... " >&6; }
16764 cat >conftest.$ac_ext <<_ACEOF
16767 cat confdefs.h >>conftest.$ac_ext
16768 cat >>conftest.$ac_ext <<_ACEOF
16769 /* end confdefs.h. */
16770 $ac_includes_default
16771 @%:@include <$ac_header>
16773 rm -f conftest.$ac_objext
16774 if { (ac_try="$ac_compile"
16775 case "(($ac_try" in
16776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16777 *) ac_try_echo=$ac_try;;
16779 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16780 $as_echo "$ac_try_echo") >&5
16781 (eval "$ac_compile") 2>conftest.er1
16783 grep -v '^ *+' conftest.er1 >conftest.err
16785 cat conftest.err >&5
16786 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16787 (exit $ac_status); } && {
16788 test -z "$ac_c_werror_flag" ||
16789 test ! -s conftest.err
16790 } && test -s conftest.$ac_objext; then
16791 ac_header_compiler=yes
16793 $as_echo "$as_me: failed program was:" >&5
16794 sed 's/^/| /' conftest.$ac_ext >&5
16796 ac_header_compiler=no
16799 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16800 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16801 $as_echo "$ac_header_compiler" >&6; }
16803 # Is the header present?
16804 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
16805 $as_echo_n "checking $ac_header presence... " >&6; }
16806 cat >conftest.$ac_ext <<_ACEOF
16809 cat confdefs.h >>conftest.$ac_ext
16810 cat >>conftest.$ac_ext <<_ACEOF
16811 /* end confdefs.h. */
16812 @%:@include <$ac_header>
16814 if { (ac_try="$ac_cpp conftest.$ac_ext"
16815 case "(($ac_try" in
16816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16817 *) ac_try_echo=$ac_try;;
16819 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16820 $as_echo "$ac_try_echo") >&5
16821 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16823 grep -v '^ *+' conftest.er1 >conftest.err
16825 cat conftest.err >&5
16826 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16827 (exit $ac_status); } >/dev/null && {
16828 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16829 test ! -s conftest.err
16831 ac_header_preproc=yes
16833 $as_echo "$as_me: failed program was:" >&5
16834 sed 's/^/| /' conftest.$ac_ext >&5
16836 ac_header_preproc=no
16839 rm -f conftest.err conftest.$ac_ext
16840 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16841 $as_echo "$ac_header_preproc" >&6; }
16843 # So? What about this header?
16844 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16846 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16847 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16848 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16849 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16850 ac_header_preproc=yes
16853 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16854 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16855 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16856 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16857 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16858 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16859 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16860 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16861 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16862 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16863 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16864 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16866 @%:@@%:@ ------------------------------- @%:@@%:@
16867 @%:@@%:@ Report this to bug-bash@gnu.org @%:@@%:@
16868 @%:@@%:@ ------------------------------- @%:@@%:@
16870 ) | sed "s/^/$as_me: WARNING: /" >&2
16873 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16874 $as_echo_n "checking for $ac_header... " >&6; }
16875 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16876 $as_echo_n "(cached) " >&6
16878 eval "$as_ac_Header=\$ac_header_preproc"
16880 ac_res=`eval 'as_val=${'$as_ac_Header'}
16881 $as_echo "$as_val"'`
16882 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16883 $as_echo "$ac_res" >&6; }
16886 as_val=`eval 'as_val=${'$as_ac_Header'}
16887 $as_echo "$as_val"'`
16888 if test "x$as_val" = x""yes; then
16889 cat >>confdefs.h <<_ACEOF
16890 @%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16898 for ac_header in wchar.h
16900 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16901 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16902 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16903 $as_echo_n "checking for $ac_header... " >&6; }
16904 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16905 $as_echo_n "(cached) " >&6
16907 ac_res=`eval 'as_val=${'$as_ac_Header'}
16908 $as_echo "$as_val"'`
16909 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16910 $as_echo "$ac_res" >&6; }
16912 # Is the header compilable?
16913 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
16914 $as_echo_n "checking $ac_header usability... " >&6; }
16915 cat >conftest.$ac_ext <<_ACEOF
16918 cat confdefs.h >>conftest.$ac_ext
16919 cat >>conftest.$ac_ext <<_ACEOF
16920 /* end confdefs.h. */
16921 $ac_includes_default
16922 @%:@include <$ac_header>
16924 rm -f conftest.$ac_objext
16925 if { (ac_try="$ac_compile"
16926 case "(($ac_try" in
16927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16928 *) ac_try_echo=$ac_try;;
16930 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16931 $as_echo "$ac_try_echo") >&5
16932 (eval "$ac_compile") 2>conftest.er1
16934 grep -v '^ *+' conftest.er1 >conftest.err
16936 cat conftest.err >&5
16937 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16938 (exit $ac_status); } && {
16939 test -z "$ac_c_werror_flag" ||
16940 test ! -s conftest.err
16941 } && test -s conftest.$ac_objext; then
16942 ac_header_compiler=yes
16944 $as_echo "$as_me: failed program was:" >&5
16945 sed 's/^/| /' conftest.$ac_ext >&5
16947 ac_header_compiler=no
16950 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16951 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16952 $as_echo "$ac_header_compiler" >&6; }
16954 # Is the header present?
16955 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
16956 $as_echo_n "checking $ac_header presence... " >&6; }
16957 cat >conftest.$ac_ext <<_ACEOF
16960 cat confdefs.h >>conftest.$ac_ext
16961 cat >>conftest.$ac_ext <<_ACEOF
16962 /* end confdefs.h. */
16963 @%:@include <$ac_header>
16965 if { (ac_try="$ac_cpp conftest.$ac_ext"
16966 case "(($ac_try" in
16967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16968 *) ac_try_echo=$ac_try;;
16970 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16971 $as_echo "$ac_try_echo") >&5
16972 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16974 grep -v '^ *+' conftest.er1 >conftest.err
16976 cat conftest.err >&5
16977 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16978 (exit $ac_status); } >/dev/null && {
16979 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16980 test ! -s conftest.err
16982 ac_header_preproc=yes
16984 $as_echo "$as_me: failed program was:" >&5
16985 sed 's/^/| /' conftest.$ac_ext >&5
16987 ac_header_preproc=no
16990 rm -f conftest.err conftest.$ac_ext
16991 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16992 $as_echo "$ac_header_preproc" >&6; }
16994 # So? What about this header?
16995 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16997 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16998 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16999 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17000 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17001 ac_header_preproc=yes
17004 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17005 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17006 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17007 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17008 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17009 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17010 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17011 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17012 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17013 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17014 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17015 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17017 @%:@@%:@ ------------------------------- @%:@@%:@
17018 @%:@@%:@ Report this to bug-bash@gnu.org @%:@@%:@
17019 @%:@@%:@ ------------------------------- @%:@@%:@
17021 ) | sed "s/^/$as_me: WARNING: /" >&2
17024 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17025 $as_echo_n "checking for $ac_header... " >&6; }
17026 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17027 $as_echo_n "(cached) " >&6
17029 eval "$as_ac_Header=\$ac_header_preproc"
17031 ac_res=`eval 'as_val=${'$as_ac_Header'}
17032 $as_echo "$as_val"'`
17033 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17034 $as_echo "$ac_res" >&6; }
17037 as_val=`eval 'as_val=${'$as_ac_Header'}
17038 $as_echo "$as_val"'`
17039 if test "x$as_val" = x""yes; then
17040 cat >>confdefs.h <<_ACEOF
17041 @%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17049 for ac_header in langinfo.h
17051 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17052 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17053 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17054 $as_echo_n "checking for $ac_header... " >&6; }
17055 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17056 $as_echo_n "(cached) " >&6
17058 ac_res=`eval 'as_val=${'$as_ac_Header'}
17059 $as_echo "$as_val"'`
17060 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17061 $as_echo "$ac_res" >&6; }
17063 # Is the header compilable?
17064 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
17065 $as_echo_n "checking $ac_header usability... " >&6; }
17066 cat >conftest.$ac_ext <<_ACEOF
17069 cat confdefs.h >>conftest.$ac_ext
17070 cat >>conftest.$ac_ext <<_ACEOF
17071 /* end confdefs.h. */
17072 $ac_includes_default
17073 @%:@include <$ac_header>
17075 rm -f conftest.$ac_objext
17076 if { (ac_try="$ac_compile"
17077 case "(($ac_try" in
17078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17079 *) ac_try_echo=$ac_try;;
17081 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17082 $as_echo "$ac_try_echo") >&5
17083 (eval "$ac_compile") 2>conftest.er1
17085 grep -v '^ *+' conftest.er1 >conftest.err
17087 cat conftest.err >&5
17088 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17089 (exit $ac_status); } && {
17090 test -z "$ac_c_werror_flag" ||
17091 test ! -s conftest.err
17092 } && test -s conftest.$ac_objext; then
17093 ac_header_compiler=yes
17095 $as_echo "$as_me: failed program was:" >&5
17096 sed 's/^/| /' conftest.$ac_ext >&5
17098 ac_header_compiler=no
17101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17102 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17103 $as_echo "$ac_header_compiler" >&6; }
17105 # Is the header present?
17106 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
17107 $as_echo_n "checking $ac_header presence... " >&6; }
17108 cat >conftest.$ac_ext <<_ACEOF
17111 cat confdefs.h >>conftest.$ac_ext
17112 cat >>conftest.$ac_ext <<_ACEOF
17113 /* end confdefs.h. */
17114 @%:@include <$ac_header>
17116 if { (ac_try="$ac_cpp conftest.$ac_ext"
17117 case "(($ac_try" in
17118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17119 *) ac_try_echo=$ac_try;;
17121 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17122 $as_echo "$ac_try_echo") >&5
17123 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17125 grep -v '^ *+' conftest.er1 >conftest.err
17127 cat conftest.err >&5
17128 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17129 (exit $ac_status); } >/dev/null && {
17130 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17131 test ! -s conftest.err
17133 ac_header_preproc=yes
17135 $as_echo "$as_me: failed program was:" >&5
17136 sed 's/^/| /' conftest.$ac_ext >&5
17138 ac_header_preproc=no
17141 rm -f conftest.err conftest.$ac_ext
17142 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17143 $as_echo "$ac_header_preproc" >&6; }
17145 # So? What about this header?
17146 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17148 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17149 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17150 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17151 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17152 ac_header_preproc=yes
17155 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17156 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17157 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17158 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17159 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17160 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17161 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17162 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17163 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17164 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17165 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17166 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17168 @%:@@%:@ ------------------------------- @%:@@%:@
17169 @%:@@%:@ Report this to bug-bash@gnu.org @%:@@%:@
17170 @%:@@%:@ ------------------------------- @%:@@%:@
17172 ) | sed "s/^/$as_me: WARNING: /" >&2
17175 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17176 $as_echo_n "checking for $ac_header... " >&6; }
17177 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17178 $as_echo_n "(cached) " >&6
17180 eval "$as_ac_Header=\$ac_header_preproc"
17182 ac_res=`eval 'as_val=${'$as_ac_Header'}
17183 $as_echo "$as_val"'`
17184 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17185 $as_echo "$ac_res" >&6; }
17188 as_val=`eval 'as_val=${'$as_ac_Header'}
17189 $as_echo "$as_val"'`
17190 if test "x$as_val" = x""yes; then
17191 cat >>confdefs.h <<_ACEOF
17192 @%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17200 { $as_echo "$as_me:$LINENO: checking for mbrlen" >&5
17201 $as_echo_n "checking for mbrlen... " >&6; }
17202 if test "${ac_cv_func_mbrlen+set}" = set; then
17203 $as_echo_n "(cached) " >&6
17205 cat >conftest.$ac_ext <<_ACEOF
17208 cat confdefs.h >>conftest.$ac_ext
17209 cat >>conftest.$ac_ext <<_ACEOF
17210 /* end confdefs.h. */
17211 /* Define mbrlen to an innocuous variant, in case <limits.h> declares mbrlen.
17212 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17213 #define mbrlen innocuous_mbrlen
17215 /* System header to define __stub macros and hopefully few prototypes,
17216 which can conflict with char mbrlen (); below.
17217 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17218 <limits.h> exists even on freestanding compilers. */
17221 # include <limits.h>
17223 # include <assert.h>
17228 /* Override any GCC internal prototype to avoid an error.
17229 Use char because int might match the return type of a GCC
17230 builtin and then its argument prototype would still apply. */
17235 /* The GNU C library defines this for functions which it implements
17236 to always fail with ENOSYS. Some functions are actually named
17237 something starting with __ and the normal name is an alias. */
17238 #if defined __stub_mbrlen || defined __stub___mbrlen
17250 rm -f conftest.$ac_objext conftest$ac_exeext
17251 if { (ac_try="$ac_link"
17252 case "(($ac_try" in
17253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17254 *) ac_try_echo=$ac_try;;
17256 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17257 $as_echo "$ac_try_echo") >&5
17258 (eval "$ac_link") 2>conftest.er1
17260 grep -v '^ *+' conftest.er1 >conftest.err
17262 cat conftest.err >&5
17263 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17264 (exit $ac_status); } && {
17265 test -z "$ac_c_werror_flag" ||
17266 test ! -s conftest.err
17267 } && test -s conftest$ac_exeext && {
17268 test "$cross_compiling" = yes ||
17269 $as_test_x conftest$ac_exeext
17271 ac_cv_func_mbrlen=yes
17273 $as_echo "$as_me: failed program was:" >&5
17274 sed 's/^/| /' conftest.$ac_ext >&5
17276 ac_cv_func_mbrlen=no
17279 rm -rf conftest.dSYM
17280 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17281 conftest$ac_exeext conftest.$ac_ext
17283 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_mbrlen" >&5
17284 $as_echo "$ac_cv_func_mbrlen" >&6; }
17285 if test "x$ac_cv_func_mbrlen" = x""yes; then
17286 cat >>confdefs.h <<\_ACEOF
17287 @%:@define HAVE_MBRLEN 1
17292 { $as_echo "$as_me:$LINENO: checking for mbscasecmp" >&5
17293 $as_echo_n "checking for mbscasecmp... " >&6; }
17294 if test "${ac_cv_func_mbscasecmp+set}" = set; then
17295 $as_echo_n "(cached) " >&6
17297 cat >conftest.$ac_ext <<_ACEOF
17300 cat confdefs.h >>conftest.$ac_ext
17301 cat >>conftest.$ac_ext <<_ACEOF
17302 /* end confdefs.h. */
17303 /* Define mbscasecmp to an innocuous variant, in case <limits.h> declares mbscasecmp.
17304 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17305 #define mbscasecmp innocuous_mbscasecmp
17307 /* System header to define __stub macros and hopefully few prototypes,
17308 which can conflict with char mbscasecmp (); below.
17309 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17310 <limits.h> exists even on freestanding compilers. */
17313 # include <limits.h>
17315 # include <assert.h>
17320 /* Override any GCC internal prototype to avoid an error.
17321 Use char because int might match the return type of a GCC
17322 builtin and then its argument prototype would still apply. */
17326 char mbscasecmp ();
17327 /* The GNU C library defines this for functions which it implements
17328 to always fail with ENOSYS. Some functions are actually named
17329 something starting with __ and the normal name is an alias. */
17330 #if defined __stub_mbscasecmp || defined __stub___mbscasecmp
17337 return mbscasecmp ();
17342 rm -f conftest.$ac_objext conftest$ac_exeext
17343 if { (ac_try="$ac_link"
17344 case "(($ac_try" in
17345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17346 *) ac_try_echo=$ac_try;;
17348 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17349 $as_echo "$ac_try_echo") >&5
17350 (eval "$ac_link") 2>conftest.er1
17352 grep -v '^ *+' conftest.er1 >conftest.err
17354 cat conftest.err >&5
17355 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17356 (exit $ac_status); } && {
17357 test -z "$ac_c_werror_flag" ||
17358 test ! -s conftest.err
17359 } && test -s conftest$ac_exeext && {
17360 test "$cross_compiling" = yes ||
17361 $as_test_x conftest$ac_exeext
17363 ac_cv_func_mbscasecmp=yes
17365 $as_echo "$as_me: failed program was:" >&5
17366 sed 's/^/| /' conftest.$ac_ext >&5
17368 ac_cv_func_mbscasecmp=no
17371 rm -rf conftest.dSYM
17372 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17373 conftest$ac_exeext conftest.$ac_ext
17375 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_mbscasecmp" >&5
17376 $as_echo "$ac_cv_func_mbscasecmp" >&6; }
17377 if test "x$ac_cv_func_mbscasecmp" = x""yes; then
17378 cat >>confdefs.h <<\_ACEOF
17379 @%:@define HAVE_MBSCMP 1
17384 { $as_echo "$as_me:$LINENO: checking for mbscmp" >&5
17385 $as_echo_n "checking for mbscmp... " >&6; }
17386 if test "${ac_cv_func_mbscmp+set}" = set; then
17387 $as_echo_n "(cached) " >&6
17389 cat >conftest.$ac_ext <<_ACEOF
17392 cat confdefs.h >>conftest.$ac_ext
17393 cat >>conftest.$ac_ext <<_ACEOF
17394 /* end confdefs.h. */
17395 /* Define mbscmp to an innocuous variant, in case <limits.h> declares mbscmp.
17396 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17397 #define mbscmp innocuous_mbscmp
17399 /* System header to define __stub macros and hopefully few prototypes,
17400 which can conflict with char mbscmp (); below.
17401 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17402 <limits.h> exists even on freestanding compilers. */
17405 # include <limits.h>
17407 # include <assert.h>
17412 /* Override any GCC internal prototype to avoid an error.
17413 Use char because int might match the return type of a GCC
17414 builtin and then its argument prototype would still apply. */
17419 /* The GNU C library defines this for functions which it implements
17420 to always fail with ENOSYS. Some functions are actually named
17421 something starting with __ and the normal name is an alias. */
17422 #if defined __stub_mbscmp || defined __stub___mbscmp
17434 rm -f conftest.$ac_objext conftest$ac_exeext
17435 if { (ac_try="$ac_link"
17436 case "(($ac_try" in
17437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17438 *) ac_try_echo=$ac_try;;
17440 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17441 $as_echo "$ac_try_echo") >&5
17442 (eval "$ac_link") 2>conftest.er1
17444 grep -v '^ *+' conftest.er1 >conftest.err
17446 cat conftest.err >&5
17447 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17448 (exit $ac_status); } && {
17449 test -z "$ac_c_werror_flag" ||
17450 test ! -s conftest.err
17451 } && test -s conftest$ac_exeext && {
17452 test "$cross_compiling" = yes ||
17453 $as_test_x conftest$ac_exeext
17455 ac_cv_func_mbscmp=yes
17457 $as_echo "$as_me: failed program was:" >&5
17458 sed 's/^/| /' conftest.$ac_ext >&5
17460 ac_cv_func_mbscmp=no
17463 rm -rf conftest.dSYM
17464 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17465 conftest$ac_exeext conftest.$ac_ext
17467 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_mbscmp" >&5
17468 $as_echo "$ac_cv_func_mbscmp" >&6; }
17469 if test "x$ac_cv_func_mbscmp" = x""yes; then
17470 cat >>confdefs.h <<\_ACEOF
17471 @%:@define HAVE_MBSCMP 1
17476 { $as_echo "$as_me:$LINENO: checking for mbsnrtowcs" >&5
17477 $as_echo_n "checking for mbsnrtowcs... " >&6; }
17478 if test "${ac_cv_func_mbsnrtowcs+set}" = set; then
17479 $as_echo_n "(cached) " >&6
17481 cat >conftest.$ac_ext <<_ACEOF
17484 cat confdefs.h >>conftest.$ac_ext
17485 cat >>conftest.$ac_ext <<_ACEOF
17486 /* end confdefs.h. */
17487 /* Define mbsnrtowcs to an innocuous variant, in case <limits.h> declares mbsnrtowcs.
17488 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17489 #define mbsnrtowcs innocuous_mbsnrtowcs
17491 /* System header to define __stub macros and hopefully few prototypes,
17492 which can conflict with char mbsnrtowcs (); below.
17493 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17494 <limits.h> exists even on freestanding compilers. */
17497 # include <limits.h>
17499 # include <assert.h>
17504 /* Override any GCC internal prototype to avoid an error.
17505 Use char because int might match the return type of a GCC
17506 builtin and then its argument prototype would still apply. */
17510 char mbsnrtowcs ();
17511 /* The GNU C library defines this for functions which it implements
17512 to always fail with ENOSYS. Some functions are actually named
17513 something starting with __ and the normal name is an alias. */
17514 #if defined __stub_mbsnrtowcs || defined __stub___mbsnrtowcs
17521 return mbsnrtowcs ();
17526 rm -f conftest.$ac_objext conftest$ac_exeext
17527 if { (ac_try="$ac_link"
17528 case "(($ac_try" in
17529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17530 *) ac_try_echo=$ac_try;;
17532 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17533 $as_echo "$ac_try_echo") >&5
17534 (eval "$ac_link") 2>conftest.er1
17536 grep -v '^ *+' conftest.er1 >conftest.err
17538 cat conftest.err >&5
17539 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17540 (exit $ac_status); } && {
17541 test -z "$ac_c_werror_flag" ||
17542 test ! -s conftest.err
17543 } && test -s conftest$ac_exeext && {
17544 test "$cross_compiling" = yes ||
17545 $as_test_x conftest$ac_exeext
17547 ac_cv_func_mbsnrtowcs=yes
17549 $as_echo "$as_me: failed program was:" >&5
17550 sed 's/^/| /' conftest.$ac_ext >&5
17552 ac_cv_func_mbsnrtowcs=no
17555 rm -rf conftest.dSYM
17556 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17557 conftest$ac_exeext conftest.$ac_ext
17559 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_mbsnrtowcs" >&5
17560 $as_echo "$ac_cv_func_mbsnrtowcs" >&6; }
17561 if test "x$ac_cv_func_mbsnrtowcs" = x""yes; then
17562 cat >>confdefs.h <<\_ACEOF
17563 @%:@define HAVE_MBSNRTOWCS 1
17568 { $as_echo "$as_me:$LINENO: checking for mbsrtowcs" >&5
17569 $as_echo_n "checking for mbsrtowcs... " >&6; }
17570 if test "${ac_cv_func_mbsrtowcs+set}" = set; then
17571 $as_echo_n "(cached) " >&6
17573 cat >conftest.$ac_ext <<_ACEOF
17576 cat confdefs.h >>conftest.$ac_ext
17577 cat >>conftest.$ac_ext <<_ACEOF
17578 /* end confdefs.h. */
17579 /* Define mbsrtowcs to an innocuous variant, in case <limits.h> declares mbsrtowcs.
17580 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17581 #define mbsrtowcs innocuous_mbsrtowcs
17583 /* System header to define __stub macros and hopefully few prototypes,
17584 which can conflict with char mbsrtowcs (); below.
17585 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17586 <limits.h> exists even on freestanding compilers. */
17589 # include <limits.h>
17591 # include <assert.h>
17596 /* Override any GCC internal prototype to avoid an error.
17597 Use char because int might match the return type of a GCC
17598 builtin and then its argument prototype would still apply. */
17603 /* The GNU C library defines this for functions which it implements
17604 to always fail with ENOSYS. Some functions are actually named
17605 something starting with __ and the normal name is an alias. */
17606 #if defined __stub_mbsrtowcs || defined __stub___mbsrtowcs
17613 return mbsrtowcs ();
17618 rm -f conftest.$ac_objext conftest$ac_exeext
17619 if { (ac_try="$ac_link"
17620 case "(($ac_try" in
17621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17622 *) ac_try_echo=$ac_try;;
17624 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17625 $as_echo "$ac_try_echo") >&5
17626 (eval "$ac_link") 2>conftest.er1
17628 grep -v '^ *+' conftest.er1 >conftest.err
17630 cat conftest.err >&5
17631 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17632 (exit $ac_status); } && {
17633 test -z "$ac_c_werror_flag" ||
17634 test ! -s conftest.err
17635 } && test -s conftest$ac_exeext && {
17636 test "$cross_compiling" = yes ||
17637 $as_test_x conftest$ac_exeext
17639 ac_cv_func_mbsrtowcs=yes
17641 $as_echo "$as_me: failed program was:" >&5
17642 sed 's/^/| /' conftest.$ac_ext >&5
17644 ac_cv_func_mbsrtowcs=no
17647 rm -rf conftest.dSYM
17648 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17649 conftest$ac_exeext conftest.$ac_ext
17651 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_mbsrtowcs" >&5
17652 $as_echo "$ac_cv_func_mbsrtowcs" >&6; }
17653 if test "x$ac_cv_func_mbsrtowcs" = x""yes; then
17654 cat >>confdefs.h <<\_ACEOF
17655 @%:@define HAVE_MBSRTOWCS 1
17663 for ac_func in mbschr
17665 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17666 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
17667 $as_echo_n "checking for $ac_func... " >&6; }
17668 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17669 $as_echo_n "(cached) " >&6
17671 cat >conftest.$ac_ext <<_ACEOF
17674 cat confdefs.h >>conftest.$ac_ext
17675 cat >>conftest.$ac_ext <<_ACEOF
17676 /* end confdefs.h. */
17677 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17678 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17679 #define $ac_func innocuous_$ac_func
17681 /* System header to define __stub macros and hopefully few prototypes,
17682 which can conflict with char $ac_func (); below.
17683 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17684 <limits.h> exists even on freestanding compilers. */
17687 # include <limits.h>
17689 # include <assert.h>
17694 /* Override any GCC internal prototype to avoid an error.
17695 Use char because int might match the return type of a GCC
17696 builtin and then its argument prototype would still apply. */
17701 /* The GNU C library defines this for functions which it implements
17702 to always fail with ENOSYS. Some functions are actually named
17703 something starting with __ and the normal name is an alias. */
17704 #if defined __stub_$ac_func || defined __stub___$ac_func
17711 return $ac_func ();
17716 rm -f conftest.$ac_objext conftest$ac_exeext
17717 if { (ac_try="$ac_link"
17718 case "(($ac_try" in
17719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17720 *) ac_try_echo=$ac_try;;
17722 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17723 $as_echo "$ac_try_echo") >&5
17724 (eval "$ac_link") 2>conftest.er1
17726 grep -v '^ *+' conftest.er1 >conftest.err
17728 cat conftest.err >&5
17729 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17730 (exit $ac_status); } && {
17731 test -z "$ac_c_werror_flag" ||
17732 test ! -s conftest.err
17733 } && test -s conftest$ac_exeext && {
17734 test "$cross_compiling" = yes ||
17735 $as_test_x conftest$ac_exeext
17737 eval "$as_ac_var=yes"
17739 $as_echo "$as_me: failed program was:" >&5
17740 sed 's/^/| /' conftest.$ac_ext >&5
17742 eval "$as_ac_var=no"
17745 rm -rf conftest.dSYM
17746 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17747 conftest$ac_exeext conftest.$ac_ext
17749 ac_res=`eval 'as_val=${'$as_ac_var'}
17750 $as_echo "$as_val"'`
17751 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17752 $as_echo "$ac_res" >&6; }
17753 as_val=`eval 'as_val=${'$as_ac_var'}
17754 $as_echo "$as_val"'`
17755 if test "x$as_val" = x""yes; then
17756 cat >>confdefs.h <<_ACEOF
17757 @%:@define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17761 case " $LIB@&t@OBJS " in
17762 *" $ac_func.$ac_objext "* ) ;;
17763 *) LIB@&t@OBJS="$LIB@&t@OBJS $ac_func.$ac_objext"
17772 { $as_echo "$as_me:$LINENO: checking for wcrtomb" >&5
17773 $as_echo_n "checking for wcrtomb... " >&6; }
17774 if test "${ac_cv_func_wcrtomb+set}" = set; then
17775 $as_echo_n "(cached) " >&6
17777 cat >conftest.$ac_ext <<_ACEOF
17780 cat confdefs.h >>conftest.$ac_ext
17781 cat >>conftest.$ac_ext <<_ACEOF
17782 /* end confdefs.h. */
17783 /* Define wcrtomb to an innocuous variant, in case <limits.h> declares wcrtomb.
17784 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17785 #define wcrtomb innocuous_wcrtomb
17787 /* System header to define __stub macros and hopefully few prototypes,
17788 which can conflict with char wcrtomb (); below.
17789 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17790 <limits.h> exists even on freestanding compilers. */
17793 # include <limits.h>
17795 # include <assert.h>
17800 /* Override any GCC internal prototype to avoid an error.
17801 Use char because int might match the return type of a GCC
17802 builtin and then its argument prototype would still apply. */
17807 /* The GNU C library defines this for functions which it implements
17808 to always fail with ENOSYS. Some functions are actually named
17809 something starting with __ and the normal name is an alias. */
17810 #if defined __stub_wcrtomb || defined __stub___wcrtomb
17822 rm -f conftest.$ac_objext conftest$ac_exeext
17823 if { (ac_try="$ac_link"
17824 case "(($ac_try" in
17825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17826 *) ac_try_echo=$ac_try;;
17828 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17829 $as_echo "$ac_try_echo") >&5
17830 (eval "$ac_link") 2>conftest.er1
17832 grep -v '^ *+' conftest.er1 >conftest.err
17834 cat conftest.err >&5
17835 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17836 (exit $ac_status); } && {
17837 test -z "$ac_c_werror_flag" ||
17838 test ! -s conftest.err
17839 } && test -s conftest$ac_exeext && {
17840 test "$cross_compiling" = yes ||
17841 $as_test_x conftest$ac_exeext
17843 ac_cv_func_wcrtomb=yes
17845 $as_echo "$as_me: failed program was:" >&5
17846 sed 's/^/| /' conftest.$ac_ext >&5
17848 ac_cv_func_wcrtomb=no
17851 rm -rf conftest.dSYM
17852 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17853 conftest$ac_exeext conftest.$ac_ext
17855 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_wcrtomb" >&5
17856 $as_echo "$ac_cv_func_wcrtomb" >&6; }
17857 if test "x$ac_cv_func_wcrtomb" = x""yes; then
17858 cat >>confdefs.h <<\_ACEOF
17859 @%:@define HAVE_WCRTOMB 1
17864 { $as_echo "$as_me:$LINENO: checking for wcscoll" >&5
17865 $as_echo_n "checking for wcscoll... " >&6; }
17866 if test "${ac_cv_func_wcscoll+set}" = set; then
17867 $as_echo_n "(cached) " >&6
17869 cat >conftest.$ac_ext <<_ACEOF
17872 cat confdefs.h >>conftest.$ac_ext
17873 cat >>conftest.$ac_ext <<_ACEOF
17874 /* end confdefs.h. */
17875 /* Define wcscoll to an innocuous variant, in case <limits.h> declares wcscoll.
17876 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17877 #define wcscoll innocuous_wcscoll
17879 /* System header to define __stub macros and hopefully few prototypes,
17880 which can conflict with char wcscoll (); below.
17881 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17882 <limits.h> exists even on freestanding compilers. */
17885 # include <limits.h>
17887 # include <assert.h>
17892 /* Override any GCC internal prototype to avoid an error.
17893 Use char because int might match the return type of a GCC
17894 builtin and then its argument prototype would still apply. */
17899 /* The GNU C library defines this for functions which it implements
17900 to always fail with ENOSYS. Some functions are actually named
17901 something starting with __ and the normal name is an alias. */
17902 #if defined __stub_wcscoll || defined __stub___wcscoll
17914 rm -f conftest.$ac_objext conftest$ac_exeext
17915 if { (ac_try="$ac_link"
17916 case "(($ac_try" in
17917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17918 *) ac_try_echo=$ac_try;;
17920 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17921 $as_echo "$ac_try_echo") >&5
17922 (eval "$ac_link") 2>conftest.er1
17924 grep -v '^ *+' conftest.er1 >conftest.err
17926 cat conftest.err >&5
17927 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17928 (exit $ac_status); } && {
17929 test -z "$ac_c_werror_flag" ||
17930 test ! -s conftest.err
17931 } && test -s conftest$ac_exeext && {
17932 test "$cross_compiling" = yes ||
17933 $as_test_x conftest$ac_exeext
17935 ac_cv_func_wcscoll=yes
17937 $as_echo "$as_me: failed program was:" >&5
17938 sed 's/^/| /' conftest.$ac_ext >&5
17940 ac_cv_func_wcscoll=no
17943 rm -rf conftest.dSYM
17944 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17945 conftest$ac_exeext conftest.$ac_ext
17947 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_wcscoll" >&5
17948 $as_echo "$ac_cv_func_wcscoll" >&6; }
17949 if test "x$ac_cv_func_wcscoll" = x""yes; then
17950 cat >>confdefs.h <<\_ACEOF
17951 @%:@define HAVE_WCSCOLL 1
17956 { $as_echo "$as_me:$LINENO: checking for wcsdup" >&5
17957 $as_echo_n "checking for wcsdup... " >&6; }
17958 if test "${ac_cv_func_wcsdup+set}" = set; then
17959 $as_echo_n "(cached) " >&6
17961 cat >conftest.$ac_ext <<_ACEOF
17964 cat confdefs.h >>conftest.$ac_ext
17965 cat >>conftest.$ac_ext <<_ACEOF
17966 /* end confdefs.h. */
17967 /* Define wcsdup to an innocuous variant, in case <limits.h> declares wcsdup.
17968 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17969 #define wcsdup innocuous_wcsdup
17971 /* System header to define __stub macros and hopefully few prototypes,
17972 which can conflict with char wcsdup (); below.
17973 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17974 <limits.h> exists even on freestanding compilers. */
17977 # include <limits.h>
17979 # include <assert.h>
17984 /* Override any GCC internal prototype to avoid an error.
17985 Use char because int might match the return type of a GCC
17986 builtin and then its argument prototype would still apply. */
17991 /* The GNU C library defines this for functions which it implements
17992 to always fail with ENOSYS. Some functions are actually named
17993 something starting with __ and the normal name is an alias. */
17994 #if defined __stub_wcsdup || defined __stub___wcsdup
18006 rm -f conftest.$ac_objext conftest$ac_exeext
18007 if { (ac_try="$ac_link"
18008 case "(($ac_try" in
18009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18010 *) ac_try_echo=$ac_try;;
18012 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18013 $as_echo "$ac_try_echo") >&5
18014 (eval "$ac_link") 2>conftest.er1
18016 grep -v '^ *+' conftest.er1 >conftest.err
18018 cat conftest.err >&5
18019 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18020 (exit $ac_status); } && {
18021 test -z "$ac_c_werror_flag" ||
18022 test ! -s conftest.err
18023 } && test -s conftest$ac_exeext && {
18024 test "$cross_compiling" = yes ||
18025 $as_test_x conftest$ac_exeext
18027 ac_cv_func_wcsdup=yes
18029 $as_echo "$as_me: failed program was:" >&5
18030 sed 's/^/| /' conftest.$ac_ext >&5
18032 ac_cv_func_wcsdup=no
18035 rm -rf conftest.dSYM
18036 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18037 conftest$ac_exeext conftest.$ac_ext
18039 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_wcsdup" >&5
18040 $as_echo "$ac_cv_func_wcsdup" >&6; }
18041 if test "x$ac_cv_func_wcsdup" = x""yes; then
18042 cat >>confdefs.h <<\_ACEOF
18043 @%:@define HAVE_WCSDUP 1
18048 { $as_echo "$as_me:$LINENO: checking for wcwidth" >&5
18049 $as_echo_n "checking for wcwidth... " >&6; }
18050 if test "${ac_cv_func_wcwidth+set}" = set; then
18051 $as_echo_n "(cached) " >&6
18053 cat >conftest.$ac_ext <<_ACEOF
18056 cat confdefs.h >>conftest.$ac_ext
18057 cat >>conftest.$ac_ext <<_ACEOF
18058 /* end confdefs.h. */
18059 /* Define wcwidth to an innocuous variant, in case <limits.h> declares wcwidth.
18060 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18061 #define wcwidth innocuous_wcwidth
18063 /* System header to define __stub macros and hopefully few prototypes,
18064 which can conflict with char wcwidth (); below.
18065 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18066 <limits.h> exists even on freestanding compilers. */
18069 # include <limits.h>
18071 # include <assert.h>
18076 /* Override any GCC internal prototype to avoid an error.
18077 Use char because int might match the return type of a GCC
18078 builtin and then its argument prototype would still apply. */
18083 /* The GNU C library defines this for functions which it implements
18084 to always fail with ENOSYS. Some functions are actually named
18085 something starting with __ and the normal name is an alias. */
18086 #if defined __stub_wcwidth || defined __stub___wcwidth
18098 rm -f conftest.$ac_objext conftest$ac_exeext
18099 if { (ac_try="$ac_link"
18100 case "(($ac_try" in
18101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18102 *) ac_try_echo=$ac_try;;
18104 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18105 $as_echo "$ac_try_echo") >&5
18106 (eval "$ac_link") 2>conftest.er1
18108 grep -v '^ *+' conftest.er1 >conftest.err
18110 cat conftest.err >&5
18111 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18112 (exit $ac_status); } && {
18113 test -z "$ac_c_werror_flag" ||
18114 test ! -s conftest.err
18115 } && test -s conftest$ac_exeext && {
18116 test "$cross_compiling" = yes ||
18117 $as_test_x conftest$ac_exeext
18119 ac_cv_func_wcwidth=yes
18121 $as_echo "$as_me: failed program was:" >&5
18122 sed 's/^/| /' conftest.$ac_ext >&5
18124 ac_cv_func_wcwidth=no
18127 rm -rf conftest.dSYM
18128 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18129 conftest$ac_exeext conftest.$ac_ext
18131 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_wcwidth" >&5
18132 $as_echo "$ac_cv_func_wcwidth" >&6; }
18133 if test "x$ac_cv_func_wcwidth" = x""yes; then
18134 cat >>confdefs.h <<\_ACEOF
18135 @%:@define HAVE_WCWIDTH 1
18140 { $as_echo "$as_me:$LINENO: checking for wctype" >&5
18141 $as_echo_n "checking for wctype... " >&6; }
18142 if test "${ac_cv_func_wctype+set}" = set; then
18143 $as_echo_n "(cached) " >&6
18145 cat >conftest.$ac_ext <<_ACEOF
18148 cat confdefs.h >>conftest.$ac_ext
18149 cat >>conftest.$ac_ext <<_ACEOF
18150 /* end confdefs.h. */
18151 /* Define wctype to an innocuous variant, in case <limits.h> declares wctype.
18152 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18153 #define wctype innocuous_wctype
18155 /* System header to define __stub macros and hopefully few prototypes,
18156 which can conflict with char wctype (); below.
18157 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18158 <limits.h> exists even on freestanding compilers. */
18161 # include <limits.h>
18163 # include <assert.h>
18168 /* Override any GCC internal prototype to avoid an error.
18169 Use char because int might match the return type of a GCC
18170 builtin and then its argument prototype would still apply. */
18175 /* The GNU C library defines this for functions which it implements
18176 to always fail with ENOSYS. Some functions are actually named
18177 something starting with __ and the normal name is an alias. */
18178 #if defined __stub_wctype || defined __stub___wctype
18190 rm -f conftest.$ac_objext conftest$ac_exeext
18191 if { (ac_try="$ac_link"
18192 case "(($ac_try" in
18193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18194 *) ac_try_echo=$ac_try;;
18196 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18197 $as_echo "$ac_try_echo") >&5
18198 (eval "$ac_link") 2>conftest.er1
18200 grep -v '^ *+' conftest.er1 >conftest.err
18202 cat conftest.err >&5
18203 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18204 (exit $ac_status); } && {
18205 test -z "$ac_c_werror_flag" ||
18206 test ! -s conftest.err
18207 } && test -s conftest$ac_exeext && {
18208 test "$cross_compiling" = yes ||
18209 $as_test_x conftest$ac_exeext
18211 ac_cv_func_wctype=yes
18213 $as_echo "$as_me: failed program was:" >&5
18214 sed 's/^/| /' conftest.$ac_ext >&5
18216 ac_cv_func_wctype=no
18219 rm -rf conftest.dSYM
18220 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18221 conftest$ac_exeext conftest.$ac_ext
18223 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_wctype" >&5
18224 $as_echo "$ac_cv_func_wctype" >&6; }
18225 if test "x$ac_cv_func_wctype" = x""yes; then
18226 cat >>confdefs.h <<\_ACEOF
18227 @%:@define HAVE_WCTYPE 1
18234 for ac_func in wcswidth
18236 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18237 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
18238 $as_echo_n "checking for $ac_func... " >&6; }
18239 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18240 $as_echo_n "(cached) " >&6
18242 cat >conftest.$ac_ext <<_ACEOF
18245 cat confdefs.h >>conftest.$ac_ext
18246 cat >>conftest.$ac_ext <<_ACEOF
18247 /* end confdefs.h. */
18248 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18249 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18250 #define $ac_func innocuous_$ac_func
18252 /* System header to define __stub macros and hopefully few prototypes,
18253 which can conflict with char $ac_func (); below.
18254 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18255 <limits.h> exists even on freestanding compilers. */
18258 # include <limits.h>
18260 # include <assert.h>
18265 /* Override any GCC internal prototype to avoid an error.
18266 Use char because int might match the return type of a GCC
18267 builtin and then its argument prototype would still apply. */
18272 /* The GNU C library defines this for functions which it implements
18273 to always fail with ENOSYS. Some functions are actually named
18274 something starting with __ and the normal name is an alias. */
18275 #if defined __stub_$ac_func || defined __stub___$ac_func
18282 return $ac_func ();
18287 rm -f conftest.$ac_objext conftest$ac_exeext
18288 if { (ac_try="$ac_link"
18289 case "(($ac_try" in
18290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18291 *) ac_try_echo=$ac_try;;
18293 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18294 $as_echo "$ac_try_echo") >&5
18295 (eval "$ac_link") 2>conftest.er1
18297 grep -v '^ *+' conftest.er1 >conftest.err
18299 cat conftest.err >&5
18300 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18301 (exit $ac_status); } && {
18302 test -z "$ac_c_werror_flag" ||
18303 test ! -s conftest.err
18304 } && test -s conftest$ac_exeext && {
18305 test "$cross_compiling" = yes ||
18306 $as_test_x conftest$ac_exeext
18308 eval "$as_ac_var=yes"
18310 $as_echo "$as_me: failed program was:" >&5
18311 sed 's/^/| /' conftest.$ac_ext >&5
18313 eval "$as_ac_var=no"
18316 rm -rf conftest.dSYM
18317 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18318 conftest$ac_exeext conftest.$ac_ext
18320 ac_res=`eval 'as_val=${'$as_ac_var'}
18321 $as_echo "$as_val"'`
18322 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18323 $as_echo "$ac_res" >&6; }
18324 as_val=`eval 'as_val=${'$as_ac_var'}
18325 $as_echo "$as_val"'`
18326 if test "x$as_val" = x""yes; then
18327 cat >>confdefs.h <<_ACEOF
18328 @%:@define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18332 case " $LIB@&t@OBJS " in
18333 *" $ac_func.$ac_objext "* ) ;;
18334 *) LIB@&t@OBJS="$LIB@&t@OBJS $ac_func.$ac_objext"
18344 { $as_echo "$as_me:$LINENO: checking whether mbrtowc and mbstate_t are properly declared" >&5
18345 $as_echo_n "checking whether mbrtowc and mbstate_t are properly declared... " >&6; }
18346 if test "${ac_cv_func_mbrtowc+set}" = set; then
18347 $as_echo_n "(cached) " >&6
18349 cat >conftest.$ac_ext <<_ACEOF
18352 cat confdefs.h >>conftest.$ac_ext
18353 cat >>conftest.$ac_ext <<_ACEOF
18354 /* end confdefs.h. */
18355 @%:@include <wchar.h>
18360 char const s[] = "";
18363 return ! (sizeof state && (mbrtowc) (&wc, s, n, &state));
18368 rm -f conftest.$ac_objext conftest$ac_exeext
18369 if { (ac_try="$ac_link"
18370 case "(($ac_try" in
18371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18372 *) ac_try_echo=$ac_try;;
18374 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18375 $as_echo "$ac_try_echo") >&5
18376 (eval "$ac_link") 2>conftest.er1
18378 grep -v '^ *+' conftest.er1 >conftest.err
18380 cat conftest.err >&5
18381 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18382 (exit $ac_status); } && {
18383 test -z "$ac_c_werror_flag" ||
18384 test ! -s conftest.err
18385 } && test -s conftest$ac_exeext && {
18386 test "$cross_compiling" = yes ||
18387 $as_test_x conftest$ac_exeext
18389 ac_cv_func_mbrtowc=yes
18391 $as_echo "$as_me: failed program was:" >&5
18392 sed 's/^/| /' conftest.$ac_ext >&5
18394 ac_cv_func_mbrtowc=no
18397 rm -rf conftest.dSYM
18398 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18399 conftest$ac_exeext conftest.$ac_ext
18401 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_mbrtowc" >&5
18402 $as_echo "$ac_cv_func_mbrtowc" >&6; }
18403 if test $ac_cv_func_mbrtowc = yes; then
18405 cat >>confdefs.h <<\_ACEOF
18406 @%:@define HAVE_MBRTOWC 1
18411 if test $ac_cv_func_mbrtowc = yes; then
18412 cat >>confdefs.h <<\_ACEOF
18413 @%:@define HAVE_MBSTATE_T 1
18423 for ac_func in iswlower iswupper towlower towupper iswctype
18425 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18426 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
18427 $as_echo_n "checking for $ac_func... " >&6; }
18428 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18429 $as_echo_n "(cached) " >&6
18431 cat >conftest.$ac_ext <<_ACEOF
18434 cat confdefs.h >>conftest.$ac_ext
18435 cat >>conftest.$ac_ext <<_ACEOF
18436 /* end confdefs.h. */
18437 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18438 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18439 #define $ac_func innocuous_$ac_func
18441 /* System header to define __stub macros and hopefully few prototypes,
18442 which can conflict with char $ac_func (); below.
18443 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18444 <limits.h> exists even on freestanding compilers. */
18447 # include <limits.h>
18449 # include <assert.h>
18454 /* Override any GCC internal prototype to avoid an error.
18455 Use char because int might match the return type of a GCC
18456 builtin and then its argument prototype would still apply. */
18461 /* The GNU C library defines this for functions which it implements
18462 to always fail with ENOSYS. Some functions are actually named
18463 something starting with __ and the normal name is an alias. */
18464 #if defined __stub_$ac_func || defined __stub___$ac_func
18471 return $ac_func ();
18476 rm -f conftest.$ac_objext conftest$ac_exeext
18477 if { (ac_try="$ac_link"
18478 case "(($ac_try" in
18479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18480 *) ac_try_echo=$ac_try;;
18482 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18483 $as_echo "$ac_try_echo") >&5
18484 (eval "$ac_link") 2>conftest.er1
18486 grep -v '^ *+' conftest.er1 >conftest.err
18488 cat conftest.err >&5
18489 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18490 (exit $ac_status); } && {
18491 test -z "$ac_c_werror_flag" ||
18492 test ! -s conftest.err
18493 } && test -s conftest$ac_exeext && {
18494 test "$cross_compiling" = yes ||
18495 $as_test_x conftest$ac_exeext
18497 eval "$as_ac_var=yes"
18499 $as_echo "$as_me: failed program was:" >&5
18500 sed 's/^/| /' conftest.$ac_ext >&5
18502 eval "$as_ac_var=no"
18505 rm -rf conftest.dSYM
18506 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18507 conftest$ac_exeext conftest.$ac_ext
18509 ac_res=`eval 'as_val=${'$as_ac_var'}
18510 $as_echo "$as_val"'`
18511 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18512 $as_echo "$ac_res" >&6; }
18513 as_val=`eval 'as_val=${'$as_ac_var'}
18514 $as_echo "$as_val"'`
18515 if test "x$as_val" = x""yes; then
18516 cat >>confdefs.h <<_ACEOF
18517 @%:@define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18524 { $as_echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
18525 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
18526 if test "${bash_cv_langinfo_codeset+set}" = set; then
18527 $as_echo_n "(cached) " >&6
18529 cat >conftest.$ac_ext <<_ACEOF
18532 cat confdefs.h >>conftest.$ac_ext
18533 cat >>conftest.$ac_ext <<_ACEOF
18534 /* end confdefs.h. */
18535 #include <langinfo.h>
18539 char* cs = nl_langinfo(CODESET);
18544 rm -f conftest.$ac_objext conftest$ac_exeext
18545 if { (ac_try="$ac_link"
18546 case "(($ac_try" in
18547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18548 *) ac_try_echo=$ac_try;;
18550 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18551 $as_echo "$ac_try_echo") >&5
18552 (eval "$ac_link") 2>conftest.er1
18554 grep -v '^ *+' conftest.er1 >conftest.err
18556 cat conftest.err >&5
18557 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18558 (exit $ac_status); } && {
18559 test -z "$ac_c_werror_flag" ||
18560 test ! -s conftest.err
18561 } && test -s conftest$ac_exeext && {
18562 test "$cross_compiling" = yes ||
18563 $as_test_x conftest$ac_exeext
18565 bash_cv_langinfo_codeset=yes
18567 $as_echo "$as_me: failed program was:" >&5
18568 sed 's/^/| /' conftest.$ac_ext >&5
18570 bash_cv_langinfo_codeset=no
18573 rm -rf conftest.dSYM
18574 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18575 conftest$ac_exeext conftest.$ac_ext
18577 { $as_echo "$as_me:$LINENO: result: $bash_cv_langinfo_codeset" >&5
18578 $as_echo "$bash_cv_langinfo_codeset" >&6; }
18579 if test $bash_cv_langinfo_codeset = yes; then
18580 cat >>confdefs.h <<\_ACEOF
18581 @%:@define HAVE_LANGINFO_CODESET 1
18586 { $as_echo "$as_me:$LINENO: checking for wchar_t in wchar.h" >&5
18587 $as_echo_n "checking for wchar_t in wchar.h... " >&6; }
18588 if test "${bash_cv_type_wchar_t+set}" = set; then
18589 $as_echo_n "(cached) " >&6
18591 cat >conftest.$ac_ext <<_ACEOF
18594 cat confdefs.h >>conftest.$ac_ext
18595 cat >>conftest.$ac_ext <<_ACEOF
18596 /* end confdefs.h. */
18610 rm -f conftest.$ac_objext
18611 if { (ac_try="$ac_compile"
18612 case "(($ac_try" in
18613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18614 *) ac_try_echo=$ac_try;;
18616 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18617 $as_echo "$ac_try_echo") >&5
18618 (eval "$ac_compile") 2>conftest.er1
18620 grep -v '^ *+' conftest.er1 >conftest.err
18622 cat conftest.err >&5
18623 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18624 (exit $ac_status); } && {
18625 test -z "$ac_c_werror_flag" ||
18626 test ! -s conftest.err
18627 } && test -s conftest.$ac_objext; then
18628 bash_cv_type_wchar_t=yes
18630 $as_echo "$as_me: failed program was:" >&5
18631 sed 's/^/| /' conftest.$ac_ext >&5
18633 bash_cv_type_wchar_t=no
18636 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18638 { $as_echo "$as_me:$LINENO: result: $bash_cv_type_wchar_t" >&5
18639 $as_echo "$bash_cv_type_wchar_t" >&6; }
18640 if test $bash_cv_type_wchar_t = yes; then
18642 cat >>confdefs.h <<\_ACEOF
18643 @%:@define HAVE_WCHAR_T 1
18648 { $as_echo "$as_me:$LINENO: checking for wctype_t in wctype.h" >&5
18649 $as_echo_n "checking for wctype_t in wctype.h... " >&6; }
18650 if test "${bash_cv_type_wctype_t+set}" = set; then
18651 $as_echo_n "(cached) " >&6
18653 cat >conftest.$ac_ext <<_ACEOF
18656 cat confdefs.h >>conftest.$ac_ext
18657 cat >>conftest.$ac_ext <<_ACEOF
18658 /* end confdefs.h. */
18659 #include <wctype.h>
18671 rm -f conftest.$ac_objext
18672 if { (ac_try="$ac_compile"
18673 case "(($ac_try" in
18674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18675 *) ac_try_echo=$ac_try;;
18677 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18678 $as_echo "$ac_try_echo") >&5
18679 (eval "$ac_compile") 2>conftest.er1
18681 grep -v '^ *+' conftest.er1 >conftest.err
18683 cat conftest.err >&5
18684 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18685 (exit $ac_status); } && {
18686 test -z "$ac_c_werror_flag" ||
18687 test ! -s conftest.err
18688 } && test -s conftest.$ac_objext; then
18689 bash_cv_type_wctype_t=yes
18691 $as_echo "$as_me: failed program was:" >&5
18692 sed 's/^/| /' conftest.$ac_ext >&5
18694 bash_cv_type_wctype_t=no
18697 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18699 { $as_echo "$as_me:$LINENO: result: $bash_cv_type_wctype_t" >&5
18700 $as_echo "$bash_cv_type_wctype_t" >&6; }
18701 if test $bash_cv_type_wctype_t = yes; then
18703 cat >>confdefs.h <<\_ACEOF
18704 @%:@define HAVE_WCTYPE_T 1
18709 { $as_echo "$as_me:$LINENO: checking for wint_t in wctype.h" >&5
18710 $as_echo_n "checking for wint_t in wctype.h... " >&6; }
18711 if test "${bash_cv_type_wint_t+set}" = set; then
18712 $as_echo_n "(cached) " >&6
18714 cat >conftest.$ac_ext <<_ACEOF
18717 cat confdefs.h >>conftest.$ac_ext
18718 cat >>conftest.$ac_ext <<_ACEOF
18719 /* end confdefs.h. */
18720 #include <wctype.h>
18732 rm -f conftest.$ac_objext
18733 if { (ac_try="$ac_compile"
18734 case "(($ac_try" in
18735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18736 *) ac_try_echo=$ac_try;;
18738 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18739 $as_echo "$ac_try_echo") >&5
18740 (eval "$ac_compile") 2>conftest.er1
18742 grep -v '^ *+' conftest.er1 >conftest.err
18744 cat conftest.err >&5
18745 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18746 (exit $ac_status); } && {
18747 test -z "$ac_c_werror_flag" ||
18748 test ! -s conftest.err
18749 } && test -s conftest.$ac_objext; then
18750 bash_cv_type_wint_t=yes
18752 $as_echo "$as_me: failed program was:" >&5
18753 sed 's/^/| /' conftest.$ac_ext >&5
18755 bash_cv_type_wint_t=no
18758 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18760 { $as_echo "$as_me:$LINENO: result: $bash_cv_type_wint_t" >&5
18761 $as_echo "$bash_cv_type_wint_t" >&6; }
18762 if test $bash_cv_type_wint_t = yes; then
18764 cat >>confdefs.h <<\_ACEOF
18765 @%:@define HAVE_WINT_T 1
18770 if test "$am_cv_func_iconv" = yes; then
18772 LIBS="$LIBS $LIBICONV"
18774 for ac_func in locale_charset
18776 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18777 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
18778 $as_echo_n "checking for $ac_func... " >&6; }
18779 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18780 $as_echo_n "(cached) " >&6
18782 cat >conftest.$ac_ext <<_ACEOF
18785 cat confdefs.h >>conftest.$ac_ext
18786 cat >>conftest.$ac_ext <<_ACEOF
18787 /* end confdefs.h. */
18788 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18789 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18790 #define $ac_func innocuous_$ac_func
18792 /* System header to define __stub macros and hopefully few prototypes,
18793 which can conflict with char $ac_func (); below.
18794 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18795 <limits.h> exists even on freestanding compilers. */
18798 # include <limits.h>
18800 # include <assert.h>
18805 /* Override any GCC internal prototype to avoid an error.
18806 Use char because int might match the return type of a GCC
18807 builtin and then its argument prototype would still apply. */
18812 /* The GNU C library defines this for functions which it implements
18813 to always fail with ENOSYS. Some functions are actually named
18814 something starting with __ and the normal name is an alias. */
18815 #if defined __stub_$ac_func || defined __stub___$ac_func
18822 return $ac_func ();
18827 rm -f conftest.$ac_objext conftest$ac_exeext
18828 if { (ac_try="$ac_link"
18829 case "(($ac_try" in
18830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18831 *) ac_try_echo=$ac_try;;
18833 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18834 $as_echo "$ac_try_echo") >&5
18835 (eval "$ac_link") 2>conftest.er1
18837 grep -v '^ *+' conftest.er1 >conftest.err
18839 cat conftest.err >&5
18840 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18841 (exit $ac_status); } && {
18842 test -z "$ac_c_werror_flag" ||
18843 test ! -s conftest.err
18844 } && test -s conftest$ac_exeext && {
18845 test "$cross_compiling" = yes ||
18846 $as_test_x conftest$ac_exeext
18848 eval "$as_ac_var=yes"
18850 $as_echo "$as_me: failed program was:" >&5
18851 sed 's/^/| /' conftest.$ac_ext >&5
18853 eval "$as_ac_var=no"
18856 rm -rf conftest.dSYM
18857 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18858 conftest$ac_exeext conftest.$ac_ext
18860 ac_res=`eval 'as_val=${'$as_ac_var'}
18861 $as_echo "$as_val"'`
18862 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18863 $as_echo "$ac_res" >&6; }
18864 as_val=`eval 'as_val=${'$as_ac_var'}
18865 $as_echo "$as_val"'`
18866 if test "x$as_val" = x""yes; then
18867 cat >>confdefs.h <<_ACEOF
18868 @%:@define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18879 if test "$opt_static_link" != yes; then
18881 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
18882 $as_echo_n "checking for dlopen in -ldl... " >&6; }
18883 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
18884 $as_echo_n "(cached) " >&6
18886 ac_check_lib_save_LIBS=$LIBS
18888 cat >conftest.$ac_ext <<_ACEOF
18891 cat confdefs.h >>conftest.$ac_ext
18892 cat >>conftest.$ac_ext <<_ACEOF
18893 /* end confdefs.h. */
18895 /* Override any GCC internal prototype to avoid an error.
18896 Use char because int might match the return type of a GCC
18897 builtin and then its argument prototype would still apply. */
18910 rm -f conftest.$ac_objext conftest$ac_exeext
18911 if { (ac_try="$ac_link"
18912 case "(($ac_try" in
18913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18914 *) ac_try_echo=$ac_try;;
18916 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18917 $as_echo "$ac_try_echo") >&5
18918 (eval "$ac_link") 2>conftest.er1
18920 grep -v '^ *+' conftest.er1 >conftest.err
18922 cat conftest.err >&5
18923 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18924 (exit $ac_status); } && {
18925 test -z "$ac_c_werror_flag" ||
18926 test ! -s conftest.err
18927 } && test -s conftest$ac_exeext && {
18928 test "$cross_compiling" = yes ||
18929 $as_test_x conftest$ac_exeext
18931 ac_cv_lib_dl_dlopen=yes
18933 $as_echo "$as_me: failed program was:" >&5
18934 sed 's/^/| /' conftest.$ac_ext >&5
18936 ac_cv_lib_dl_dlopen=no
18939 rm -rf conftest.dSYM
18940 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18941 conftest$ac_exeext conftest.$ac_ext
18942 LIBS=$ac_check_lib_save_LIBS
18944 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
18945 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
18946 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
18947 cat >>confdefs.h <<_ACEOF
18948 @%:@define HAVE_LIBDL 1
18958 for ac_func in dlopen dlclose dlsym
18960 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18961 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
18962 $as_echo_n "checking for $ac_func... " >&6; }
18963 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18964 $as_echo_n "(cached) " >&6
18966 cat >conftest.$ac_ext <<_ACEOF
18969 cat confdefs.h >>conftest.$ac_ext
18970 cat >>conftest.$ac_ext <<_ACEOF
18971 /* end confdefs.h. */
18972 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18973 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18974 #define $ac_func innocuous_$ac_func
18976 /* System header to define __stub macros and hopefully few prototypes,
18977 which can conflict with char $ac_func (); below.
18978 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18979 <limits.h> exists even on freestanding compilers. */
18982 # include <limits.h>
18984 # include <assert.h>
18989 /* Override any GCC internal prototype to avoid an error.
18990 Use char because int might match the return type of a GCC
18991 builtin and then its argument prototype would still apply. */
18996 /* The GNU C library defines this for functions which it implements
18997 to always fail with ENOSYS. Some functions are actually named
18998 something starting with __ and the normal name is an alias. */
18999 #if defined __stub_$ac_func || defined __stub___$ac_func
19006 return $ac_func ();
19011 rm -f conftest.$ac_objext conftest$ac_exeext
19012 if { (ac_try="$ac_link"
19013 case "(($ac_try" in
19014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19015 *) ac_try_echo=$ac_try;;
19017 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19018 $as_echo "$ac_try_echo") >&5
19019 (eval "$ac_link") 2>conftest.er1
19021 grep -v '^ *+' conftest.er1 >conftest.err
19023 cat conftest.err >&5
19024 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19025 (exit $ac_status); } && {
19026 test -z "$ac_c_werror_flag" ||
19027 test ! -s conftest.err
19028 } && test -s conftest$ac_exeext && {
19029 test "$cross_compiling" = yes ||
19030 $as_test_x conftest$ac_exeext
19032 eval "$as_ac_var=yes"
19034 $as_echo "$as_me: failed program was:" >&5
19035 sed 's/^/| /' conftest.$ac_ext >&5
19037 eval "$as_ac_var=no"
19040 rm -rf conftest.dSYM
19041 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19042 conftest$ac_exeext conftest.$ac_ext
19044 ac_res=`eval 'as_val=${'$as_ac_var'}
19045 $as_echo "$as_val"'`
19046 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19047 $as_echo "$ac_res" >&6; }
19048 as_val=`eval 'as_val=${'$as_ac_var'}
19049 $as_echo "$as_val"'`
19050 if test "x$as_val" = x""yes; then
19051 cat >>confdefs.h <<_ACEOF
19052 @%:@define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19060 { $as_echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
19061 $as_echo_n "checking whether sys_siglist is declared... " >&6; }
19062 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
19063 $as_echo_n "(cached) " >&6
19065 cat >conftest.$ac_ext <<_ACEOF
19068 cat confdefs.h >>conftest.$ac_ext
19069 cat >>conftest.$ac_ext <<_ACEOF
19070 /* end confdefs.h. */
19071 #include <signal.h>
19072 /* NetBSD declares sys_siglist in unistd.h. */
19073 #ifdef HAVE_UNISTD_H
19074 # include <unistd.h>
19081 #ifndef sys_siglist
19082 (void) sys_siglist;
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
19107 ac_cv_have_decl_sys_siglist=yes
19109 $as_echo "$as_me: failed program was:" >&5
19110 sed 's/^/| /' conftest.$ac_ext >&5
19112 ac_cv_have_decl_sys_siglist=no
19115 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19117 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
19118 $as_echo "$ac_cv_have_decl_sys_siglist" >&6; }
19119 if test "x$ac_cv_have_decl_sys_siglist" = x""yes; then
19121 cat >>confdefs.h <<_ACEOF
19122 @%:@define HAVE_DECL_SYS_SIGLIST 1
19127 cat >>confdefs.h <<_ACEOF
19128 @%:@define HAVE_DECL_SYS_SIGLIST 0
19137 if test "$ac_cv_func_inet_aton" != 'yes'; then
19139 { $as_echo "$as_me:$LINENO: checking for inet_aton" >&5
19140 $as_echo_n "checking for inet_aton... " >&6; }
19141 if test "${bash_cv_func_inet_aton+set}" = set; then
19142 $as_echo_n "(cached) " >&6
19144 cat >conftest.$ac_ext <<_ACEOF
19147 cat confdefs.h >>conftest.$ac_ext
19148 cat >>conftest.$ac_ext <<_ACEOF
19149 /* end confdefs.h. */
19151 #include <sys/types.h>
19152 #include <netinet/in.h>
19153 #include <arpa/inet.h>
19158 inet_aton("127.0.0.1", &ap);
19163 rm -f conftest.$ac_objext conftest$ac_exeext
19164 if { (ac_try="$ac_link"
19165 case "(($ac_try" in
19166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19167 *) ac_try_echo=$ac_try;;
19169 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19170 $as_echo "$ac_try_echo") >&5
19171 (eval "$ac_link") 2>conftest.er1
19173 grep -v '^ *+' conftest.er1 >conftest.err
19175 cat conftest.err >&5
19176 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19177 (exit $ac_status); } && {
19178 test -z "$ac_c_werror_flag" ||
19179 test ! -s conftest.err
19180 } && test -s conftest$ac_exeext && {
19181 test "$cross_compiling" = yes ||
19182 $as_test_x conftest$ac_exeext
19184 bash_cv_func_inet_aton=yes
19186 $as_echo "$as_me: failed program was:" >&5
19187 sed 's/^/| /' conftest.$ac_ext >&5
19189 bash_cv_func_inet_aton=no
19192 rm -rf conftest.dSYM
19193 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19194 conftest$ac_exeext conftest.$ac_ext
19196 { $as_echo "$as_me:$LINENO: result: $bash_cv_func_inet_aton" >&5
19197 $as_echo "$bash_cv_func_inet_aton" >&6; }
19198 if test $bash_cv_func_inet_aton = yes; then
19199 cat >>confdefs.h <<\_ACEOF
19200 @%:@define HAVE_INET_ATON 1
19204 case " $LIB@&t@OBJS " in
19205 *" inet_aton.$ac_objext "* ) ;;
19206 *) LIB@&t@OBJS="$LIB@&t@OBJS inet_aton.$ac_objext"
19216 { $as_echo "$as_me:$LINENO: checking for getpwent in -lsun" >&5
19217 $as_echo_n "checking for getpwent in -lsun... " >&6; }
19218 if test "${ac_cv_lib_sun_getpwent+set}" = set; then
19219 $as_echo_n "(cached) " >&6
19221 ac_check_lib_save_LIBS=$LIBS
19223 cat >conftest.$ac_ext <<_ACEOF
19226 cat confdefs.h >>conftest.$ac_ext
19227 cat >>conftest.$ac_ext <<_ACEOF
19228 /* end confdefs.h. */
19230 /* Override any GCC internal prototype to avoid an error.
19231 Use char because int might match the return type of a GCC
19232 builtin and then its argument prototype would still apply. */
19240 return getpwent ();
19245 rm -f conftest.$ac_objext conftest$ac_exeext
19246 if { (ac_try="$ac_link"
19247 case "(($ac_try" in
19248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19249 *) ac_try_echo=$ac_try;;
19251 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19252 $as_echo "$ac_try_echo") >&5
19253 (eval "$ac_link") 2>conftest.er1
19255 grep -v '^ *+' conftest.er1 >conftest.err
19257 cat conftest.err >&5
19258 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19259 (exit $ac_status); } && {
19260 test -z "$ac_c_werror_flag" ||
19261 test ! -s conftest.err
19262 } && test -s conftest$ac_exeext && {
19263 test "$cross_compiling" = yes ||
19264 $as_test_x conftest$ac_exeext
19266 ac_cv_lib_sun_getpwent=yes
19268 $as_echo "$as_me: failed program was:" >&5
19269 sed 's/^/| /' conftest.$ac_ext >&5
19271 ac_cv_lib_sun_getpwent=no
19274 rm -rf conftest.dSYM
19275 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19276 conftest$ac_exeext conftest.$ac_ext
19277 LIBS=$ac_check_lib_save_LIBS
19279 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getpwent" >&5
19280 $as_echo "$ac_cv_lib_sun_getpwent" >&6; }
19281 if test "x$ac_cv_lib_sun_getpwent" = x""yes; then
19282 cat >>confdefs.h <<_ACEOF
19283 @%:@define HAVE_LIBSUN 1
19292 if test "$ac_cv_func_getpeername" = no; then
19294 if test "X$bash_cv_have_socklib" = "X"; then
19297 { $as_echo "$as_me:$LINENO: checking for socket library" >&5
19298 $as_echo_n "checking for socket library... " >&6; }
19301 if test "${bash_cv_have_socklib+set}" = set; then
19302 $as_echo_n "(cached) " >&6
19304 { $as_echo "$as_me:$LINENO: checking for getpeername in -lsocket" >&5
19305 $as_echo_n "checking for getpeername in -lsocket... " >&6; }
19306 if test "${ac_cv_lib_socket_getpeername+set}" = set; then
19307 $as_echo_n "(cached) " >&6
19309 ac_check_lib_save_LIBS=$LIBS
19310 LIBS="-lsocket -lnsl $LIBS"
19311 cat >conftest.$ac_ext <<_ACEOF
19314 cat confdefs.h >>conftest.$ac_ext
19315 cat >>conftest.$ac_ext <<_ACEOF
19316 /* end confdefs.h. */
19318 /* Override any GCC internal prototype to avoid an error.
19319 Use char because int might match the return type of a GCC
19320 builtin and then its argument prototype would still apply. */
19324 char getpeername ();
19328 return getpeername ();
19333 rm -f conftest.$ac_objext conftest$ac_exeext
19334 if { (ac_try="$ac_link"
19335 case "(($ac_try" in
19336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19337 *) ac_try_echo=$ac_try;;
19339 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19340 $as_echo "$ac_try_echo") >&5
19341 (eval "$ac_link") 2>conftest.er1
19343 grep -v '^ *+' conftest.er1 >conftest.err
19345 cat conftest.err >&5
19346 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19347 (exit $ac_status); } && {
19348 test -z "$ac_c_werror_flag" ||
19349 test ! -s conftest.err
19350 } && test -s conftest$ac_exeext && {
19351 test "$cross_compiling" = yes ||
19352 $as_test_x conftest$ac_exeext
19354 ac_cv_lib_socket_getpeername=yes
19356 $as_echo "$as_me: failed program was:" >&5
19357 sed 's/^/| /' conftest.$ac_ext >&5
19359 ac_cv_lib_socket_getpeername=no
19362 rm -rf conftest.dSYM
19363 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19364 conftest$ac_exeext conftest.$ac_ext
19365 LIBS=$ac_check_lib_save_LIBS
19367 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_socket_getpeername" >&5
19368 $as_echo "$ac_cv_lib_socket_getpeername" >&6; }
19369 if test "x$ac_cv_lib_socket_getpeername" = x""yes; then
19370 bash_cv_have_socklib=yes
19372 bash_cv_have_socklib=no
19377 if test "X$_bash_needmsg" = Xyes; then
19378 { $as_echo "$as_me:$LINENO: result: $bash_cv_have_socklib" >&5
19379 $as_echo "$bash_cv_have_socklib" >&6; }
19382 if test $bash_cv_have_socklib = yes; then
19383 # check for libnsl, add it to LIBS if present
19384 if test "X$bash_cv_have_libnsl" = "X"; then
19387 { $as_echo "$as_me:$LINENO: checking for libnsl" >&5
19388 $as_echo_n "checking for libnsl... " >&6; }
19391 if test "${bash_cv_have_libnsl+set}" = set; then
19392 $as_echo_n "(cached) " >&6
19394 { $as_echo "$as_me:$LINENO: checking for t_open in -lnsl" >&5
19395 $as_echo_n "checking for t_open in -lnsl... " >&6; }
19396 if test "${ac_cv_lib_nsl_t_open+set}" = set; then
19397 $as_echo_n "(cached) " >&6
19399 ac_check_lib_save_LIBS=$LIBS
19401 cat >conftest.$ac_ext <<_ACEOF
19404 cat confdefs.h >>conftest.$ac_ext
19405 cat >>conftest.$ac_ext <<_ACEOF
19406 /* end confdefs.h. */
19408 /* Override any GCC internal prototype to avoid an error.
19409 Use char because int might match the return type of a GCC
19410 builtin and then its argument prototype would still apply. */
19423 rm -f conftest.$ac_objext conftest$ac_exeext
19424 if { (ac_try="$ac_link"
19425 case "(($ac_try" in
19426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19427 *) ac_try_echo=$ac_try;;
19429 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19430 $as_echo "$ac_try_echo") >&5
19431 (eval "$ac_link") 2>conftest.er1
19433 grep -v '^ *+' conftest.er1 >conftest.err
19435 cat conftest.err >&5
19436 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19437 (exit $ac_status); } && {
19438 test -z "$ac_c_werror_flag" ||
19439 test ! -s conftest.err
19440 } && test -s conftest$ac_exeext && {
19441 test "$cross_compiling" = yes ||
19442 $as_test_x conftest$ac_exeext
19444 ac_cv_lib_nsl_t_open=yes
19446 $as_echo "$as_me: failed program was:" >&5
19447 sed 's/^/| /' conftest.$ac_ext >&5
19449 ac_cv_lib_nsl_t_open=no
19452 rm -rf conftest.dSYM
19453 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19454 conftest$ac_exeext conftest.$ac_ext
19455 LIBS=$ac_check_lib_save_LIBS
19457 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_t_open" >&5
19458 $as_echo "$ac_cv_lib_nsl_t_open" >&6; }
19459 if test "x$ac_cv_lib_nsl_t_open" = x""yes; then
19460 bash_cv_have_libnsl=yes
19462 bash_cv_have_libnsl=no
19467 if test "X$_bash_needmsg" = Xyes; then
19468 { $as_echo "$as_me:$LINENO: result: $bash_cv_have_libnsl" >&5
19469 $as_echo "$bash_cv_have_libnsl" >&6; }
19472 if test $bash_cv_have_libnsl = yes; then
19473 LIBS="-lsocket -lnsl $LIBS"
19475 LIBS="-lsocket $LIBS"
19477 cat >>confdefs.h <<\_ACEOF
19478 @%:@define HAVE_LIBSOCKET 1
19481 cat >>confdefs.h <<\_ACEOF
19482 @%:@define HAVE_GETPEERNAME 1
19488 if test "$ac_cv_func_gethostbyname" = no; then
19489 if test "X$bash_cv_have_gethostbyname" = "X"; then
19492 { $as_echo "$as_me:$LINENO: checking for gethostbyname in socket library" >&5
19493 $as_echo_n "checking for gethostbyname in socket library... " >&6; }
19496 if test "${bash_cv_have_gethostbyname+set}" = set; then
19497 $as_echo_n "(cached) " >&6
19499 cat >conftest.$ac_ext <<_ACEOF
19502 cat confdefs.h >>conftest.$ac_ext
19503 cat >>conftest.$ac_ext <<_ACEOF
19504 /* end confdefs.h. */
19509 struct hostent *hp;
19510 hp = gethostbyname("localhost");
19516 rm -f conftest.$ac_objext conftest$ac_exeext
19517 if { (ac_try="$ac_link"
19518 case "(($ac_try" in
19519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19520 *) ac_try_echo=$ac_try;;
19522 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19523 $as_echo "$ac_try_echo") >&5
19524 (eval "$ac_link") 2>conftest.er1
19526 grep -v '^ *+' conftest.er1 >conftest.err
19528 cat conftest.err >&5
19529 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19530 (exit $ac_status); } && {
19531 test -z "$ac_c_werror_flag" ||
19532 test ! -s conftest.err
19533 } && test -s conftest$ac_exeext && {
19534 test "$cross_compiling" = yes ||
19535 $as_test_x conftest$ac_exeext
19537 bash_cv_have_gethostbyname=yes
19539 $as_echo "$as_me: failed program was:" >&5
19540 sed 's/^/| /' conftest.$ac_ext >&5
19542 bash_cv_have_gethostbyname=no
19545 rm -rf conftest.dSYM
19546 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19547 conftest$ac_exeext conftest.$ac_ext
19551 if test "X$_bash_needmsg" = Xyes; then
19552 { $as_echo "$as_me:$LINENO: checking for gethostbyname in socket library" >&5
19553 $as_echo_n "checking for gethostbyname in socket library... " >&6; }
19555 { $as_echo "$as_me:$LINENO: result: $bash_cv_have_gethostbyname" >&5
19556 $as_echo "$bash_cv_have_gethostbyname" >&6; }
19557 if test "$bash_cv_have_gethostbyname" = yes; then
19558 cat >>confdefs.h <<\_ACEOF
19559 @%:@define HAVE_GETHOSTBYNAME 1
19566 { $as_echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
19567 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
19568 if test "${ac_cv_type_uid_t+set}" = set; then
19569 $as_echo_n "(cached) " >&6
19571 cat >conftest.$ac_ext <<_ACEOF
19574 cat confdefs.h >>conftest.$ac_ext
19575 cat >>conftest.$ac_ext <<_ACEOF
19576 /* end confdefs.h. */
19577 #include <sys/types.h>
19580 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19581 $EGREP "uid_t" >/dev/null 2>&1; then
19582 ac_cv_type_uid_t=yes
19584 ac_cv_type_uid_t=no
19589 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
19590 $as_echo "$ac_cv_type_uid_t" >&6; }
19591 if test $ac_cv_type_uid_t = no; then
19593 cat >>confdefs.h <<\_ACEOF
19594 @%:@define uid_t int
19598 cat >>confdefs.h <<\_ACEOF
19599 @%:@define gid_t int
19604 { $as_echo "$as_me:$LINENO: checking type of array argument to getgroups" >&5
19605 $as_echo_n "checking type of array argument to getgroups... " >&6; }
19606 if test "${ac_cv_type_getgroups+set}" = set; then
19607 $as_echo_n "(cached) " >&6
19609 if test "$cross_compiling" = yes; then
19610 ac_cv_type_getgroups=cross
19612 cat >conftest.$ac_ext <<_ACEOF
19615 cat confdefs.h >>conftest.$ac_ext
19616 cat >>conftest.$ac_ext <<_ACEOF
19617 /* end confdefs.h. */
19618 /* Thanks to Mike Rendell for this test. */
19619 $ac_includes_default
19622 #define MAX(x, y) ((x) > (y) ? (x) : (y))
19627 gid_t gidset[NGID];
19629 union { gid_t gval; long int lval; } val;
19632 for (i = 0; i < NGID; i++)
19633 gidset[i] = val.gval;
19634 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
19636 /* Exit non-zero if getgroups seems to require an array of ints. This
19637 happens when gid_t is short int but getgroups modifies an array
19639 return n > 0 && gidset[n] != val.gval;
19642 rm -f conftest$ac_exeext
19643 if { (ac_try="$ac_link"
19644 case "(($ac_try" in
19645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19646 *) ac_try_echo=$ac_try;;
19648 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19649 $as_echo "$ac_try_echo") >&5
19650 (eval "$ac_link") 2>&5
19652 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19653 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19654 { (case "(($ac_try" in
19655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19656 *) ac_try_echo=$ac_try;;
19658 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19659 $as_echo "$ac_try_echo") >&5
19660 (eval "$ac_try") 2>&5
19662 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19663 (exit $ac_status); }; }; then
19664 ac_cv_type_getgroups=gid_t
19666 $as_echo "$as_me: program exited with status $ac_status" >&5
19667 $as_echo "$as_me: failed program was:" >&5
19668 sed 's/^/| /' conftest.$ac_ext >&5
19670 ( exit $ac_status )
19671 ac_cv_type_getgroups=int
19673 rm -rf conftest.dSYM
19674 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19678 if test $ac_cv_type_getgroups = cross; then
19679 cat >conftest.$ac_ext <<_ACEOF
19682 cat confdefs.h >>conftest.$ac_ext
19683 cat >>conftest.$ac_ext <<_ACEOF
19684 /* end confdefs.h. */
19685 #include <unistd.h>
19688 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19689 $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then
19690 ac_cv_type_getgroups=gid_t
19692 ac_cv_type_getgroups=int
19698 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_getgroups" >&5
19699 $as_echo "$ac_cv_type_getgroups" >&6; }
19701 cat >>confdefs.h <<_ACEOF
19702 @%:@define GETGROUPS_T $ac_cv_type_getgroups
19706 { $as_echo "$as_me:$LINENO: checking for off_t" >&5
19707 $as_echo_n "checking for off_t... " >&6; }
19708 if test "${ac_cv_type_off_t+set}" = set; then
19709 $as_echo_n "(cached) " >&6
19711 ac_cv_type_off_t=no
19712 cat >conftest.$ac_ext <<_ACEOF
19715 cat confdefs.h >>conftest.$ac_ext
19716 cat >>conftest.$ac_ext <<_ACEOF
19717 /* end confdefs.h. */
19718 $ac_includes_default
19722 if (sizeof (off_t))
19728 rm -f conftest.$ac_objext
19729 if { (ac_try="$ac_compile"
19730 case "(($ac_try" in
19731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19732 *) ac_try_echo=$ac_try;;
19734 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19735 $as_echo "$ac_try_echo") >&5
19736 (eval "$ac_compile") 2>conftest.er1
19738 grep -v '^ *+' conftest.er1 >conftest.err
19740 cat conftest.err >&5
19741 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19742 (exit $ac_status); } && {
19743 test -z "$ac_c_werror_flag" ||
19744 test ! -s conftest.err
19745 } && test -s conftest.$ac_objext; then
19746 cat >conftest.$ac_ext <<_ACEOF
19749 cat confdefs.h >>conftest.$ac_ext
19750 cat >>conftest.$ac_ext <<_ACEOF
19751 /* end confdefs.h. */
19752 $ac_includes_default
19756 if (sizeof ((off_t)))
19762 rm -f conftest.$ac_objext
19763 if { (ac_try="$ac_compile"
19764 case "(($ac_try" in
19765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19766 *) ac_try_echo=$ac_try;;
19768 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19769 $as_echo "$ac_try_echo") >&5
19770 (eval "$ac_compile") 2>conftest.er1
19772 grep -v '^ *+' conftest.er1 >conftest.err
19774 cat conftest.err >&5
19775 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19776 (exit $ac_status); } && {
19777 test -z "$ac_c_werror_flag" ||
19778 test ! -s conftest.err
19779 } && test -s conftest.$ac_objext; then
19782 $as_echo "$as_me: failed program was:" >&5
19783 sed 's/^/| /' conftest.$ac_ext >&5
19785 ac_cv_type_off_t=yes
19788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19790 $as_echo "$as_me: failed program was:" >&5
19791 sed 's/^/| /' conftest.$ac_ext >&5
19796 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19798 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
19799 $as_echo "$ac_cv_type_off_t" >&6; }
19800 if test "x$ac_cv_type_off_t" = x""yes; then
19804 cat >>confdefs.h <<_ACEOF
19805 @%:@define off_t long int
19810 { $as_echo "$as_me:$LINENO: checking for mode_t" >&5
19811 $as_echo_n "checking for mode_t... " >&6; }
19812 if test "${ac_cv_type_mode_t+set}" = set; then
19813 $as_echo_n "(cached) " >&6
19815 ac_cv_type_mode_t=no
19816 cat >conftest.$ac_ext <<_ACEOF
19819 cat confdefs.h >>conftest.$ac_ext
19820 cat >>conftest.$ac_ext <<_ACEOF
19821 /* end confdefs.h. */
19822 $ac_includes_default
19826 if (sizeof (mode_t))
19832 rm -f conftest.$ac_objext
19833 if { (ac_try="$ac_compile"
19834 case "(($ac_try" in
19835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19836 *) ac_try_echo=$ac_try;;
19838 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19839 $as_echo "$ac_try_echo") >&5
19840 (eval "$ac_compile") 2>conftest.er1
19842 grep -v '^ *+' conftest.er1 >conftest.err
19844 cat conftest.err >&5
19845 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19846 (exit $ac_status); } && {
19847 test -z "$ac_c_werror_flag" ||
19848 test ! -s conftest.err
19849 } && test -s conftest.$ac_objext; then
19850 cat >conftest.$ac_ext <<_ACEOF
19853 cat confdefs.h >>conftest.$ac_ext
19854 cat >>conftest.$ac_ext <<_ACEOF
19855 /* end confdefs.h. */
19856 $ac_includes_default
19860 if (sizeof ((mode_t)))
19866 rm -f conftest.$ac_objext
19867 if { (ac_try="$ac_compile"
19868 case "(($ac_try" in
19869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19870 *) ac_try_echo=$ac_try;;
19872 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19873 $as_echo "$ac_try_echo") >&5
19874 (eval "$ac_compile") 2>conftest.er1
19876 grep -v '^ *+' conftest.er1 >conftest.err
19878 cat conftest.err >&5
19879 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19880 (exit $ac_status); } && {
19881 test -z "$ac_c_werror_flag" ||
19882 test ! -s conftest.err
19883 } && test -s conftest.$ac_objext; then
19886 $as_echo "$as_me: failed program was:" >&5
19887 sed 's/^/| /' conftest.$ac_ext >&5
19889 ac_cv_type_mode_t=yes
19892 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19894 $as_echo "$as_me: failed program was:" >&5
19895 sed 's/^/| /' conftest.$ac_ext >&5
19900 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19902 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
19903 $as_echo "$ac_cv_type_mode_t" >&6; }
19904 if test "x$ac_cv_type_mode_t" = x""yes; then
19908 cat >>confdefs.h <<_ACEOF
19909 @%:@define mode_t int
19914 { $as_echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
19915 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
19916 if test "${ac_cv_type_uid_t+set}" = set; then
19917 $as_echo_n "(cached) " >&6
19919 cat >conftest.$ac_ext <<_ACEOF
19922 cat confdefs.h >>conftest.$ac_ext
19923 cat >>conftest.$ac_ext <<_ACEOF
19924 /* end confdefs.h. */
19925 #include <sys/types.h>
19928 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19929 $EGREP "uid_t" >/dev/null 2>&1; then
19930 ac_cv_type_uid_t=yes
19932 ac_cv_type_uid_t=no
19937 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
19938 $as_echo "$ac_cv_type_uid_t" >&6; }
19939 if test $ac_cv_type_uid_t = no; then
19941 cat >>confdefs.h <<\_ACEOF
19942 @%:@define uid_t int
19946 cat >>confdefs.h <<\_ACEOF
19947 @%:@define gid_t int
19952 { $as_echo "$as_me:$LINENO: checking for pid_t" >&5
19953 $as_echo_n "checking for pid_t... " >&6; }
19954 if test "${ac_cv_type_pid_t+set}" = set; then
19955 $as_echo_n "(cached) " >&6
19957 ac_cv_type_pid_t=no
19958 cat >conftest.$ac_ext <<_ACEOF
19961 cat confdefs.h >>conftest.$ac_ext
19962 cat >>conftest.$ac_ext <<_ACEOF
19963 /* end confdefs.h. */
19964 $ac_includes_default
19968 if (sizeof (pid_t))
19974 rm -f conftest.$ac_objext
19975 if { (ac_try="$ac_compile"
19976 case "(($ac_try" in
19977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19978 *) ac_try_echo=$ac_try;;
19980 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19981 $as_echo "$ac_try_echo") >&5
19982 (eval "$ac_compile") 2>conftest.er1
19984 grep -v '^ *+' conftest.er1 >conftest.err
19986 cat conftest.err >&5
19987 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19988 (exit $ac_status); } && {
19989 test -z "$ac_c_werror_flag" ||
19990 test ! -s conftest.err
19991 } && test -s conftest.$ac_objext; then
19992 cat >conftest.$ac_ext <<_ACEOF
19995 cat confdefs.h >>conftest.$ac_ext
19996 cat >>conftest.$ac_ext <<_ACEOF
19997 /* end confdefs.h. */
19998 $ac_includes_default
20002 if (sizeof ((pid_t)))
20008 rm -f conftest.$ac_objext
20009 if { (ac_try="$ac_compile"
20010 case "(($ac_try" in
20011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20012 *) ac_try_echo=$ac_try;;
20014 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20015 $as_echo "$ac_try_echo") >&5
20016 (eval "$ac_compile") 2>conftest.er1
20018 grep -v '^ *+' conftest.er1 >conftest.err
20020 cat conftest.err >&5
20021 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20022 (exit $ac_status); } && {
20023 test -z "$ac_c_werror_flag" ||
20024 test ! -s conftest.err
20025 } && test -s conftest.$ac_objext; then
20028 $as_echo "$as_me: failed program was:" >&5
20029 sed 's/^/| /' conftest.$ac_ext >&5
20031 ac_cv_type_pid_t=yes
20034 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20036 $as_echo "$as_me: failed program was:" >&5
20037 sed 's/^/| /' conftest.$ac_ext >&5
20042 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20044 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
20045 $as_echo "$ac_cv_type_pid_t" >&6; }
20046 if test "x$ac_cv_type_pid_t" = x""yes; then
20050 cat >>confdefs.h <<_ACEOF
20051 @%:@define pid_t int
20056 { $as_echo "$as_me:$LINENO: checking for size_t" >&5
20057 $as_echo_n "checking for size_t... " >&6; }
20058 if test "${ac_cv_type_size_t+set}" = set; then
20059 $as_echo_n "(cached) " >&6
20061 ac_cv_type_size_t=no
20062 cat >conftest.$ac_ext <<_ACEOF
20065 cat confdefs.h >>conftest.$ac_ext
20066 cat >>conftest.$ac_ext <<_ACEOF
20067 /* end confdefs.h. */
20068 $ac_includes_default
20072 if (sizeof (size_t))
20078 rm -f conftest.$ac_objext
20079 if { (ac_try="$ac_compile"
20080 case "(($ac_try" in
20081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20082 *) ac_try_echo=$ac_try;;
20084 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20085 $as_echo "$ac_try_echo") >&5
20086 (eval "$ac_compile") 2>conftest.er1
20088 grep -v '^ *+' conftest.er1 >conftest.err
20090 cat conftest.err >&5
20091 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20092 (exit $ac_status); } && {
20093 test -z "$ac_c_werror_flag" ||
20094 test ! -s conftest.err
20095 } && test -s conftest.$ac_objext; then
20096 cat >conftest.$ac_ext <<_ACEOF
20099 cat confdefs.h >>conftest.$ac_ext
20100 cat >>conftest.$ac_ext <<_ACEOF
20101 /* end confdefs.h. */
20102 $ac_includes_default
20106 if (sizeof ((size_t)))
20112 rm -f conftest.$ac_objext
20113 if { (ac_try="$ac_compile"
20114 case "(($ac_try" in
20115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20116 *) ac_try_echo=$ac_try;;
20118 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20119 $as_echo "$ac_try_echo") >&5
20120 (eval "$ac_compile") 2>conftest.er1
20122 grep -v '^ *+' conftest.er1 >conftest.err
20124 cat conftest.err >&5
20125 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20126 (exit $ac_status); } && {
20127 test -z "$ac_c_werror_flag" ||
20128 test ! -s conftest.err
20129 } && test -s conftest.$ac_objext; then
20132 $as_echo "$as_me: failed program was:" >&5
20133 sed 's/^/| /' conftest.$ac_ext >&5
20135 ac_cv_type_size_t=yes
20138 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20140 $as_echo "$as_me: failed program was:" >&5
20141 sed 's/^/| /' conftest.$ac_ext >&5
20146 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20148 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
20149 $as_echo "$ac_cv_type_size_t" >&6; }
20150 if test "x$ac_cv_type_size_t" = x""yes; then
20154 cat >>confdefs.h <<_ACEOF
20155 @%:@define size_t unsigned int
20160 { $as_echo "$as_me:$LINENO: checking for ssize_t" >&5
20161 $as_echo_n "checking for ssize_t... " >&6; }
20162 if test "${ac_cv_type_ssize_t+set}" = set; then
20163 $as_echo_n "(cached) " >&6
20165 ac_cv_type_ssize_t=no
20166 cat >conftest.$ac_ext <<_ACEOF
20169 cat confdefs.h >>conftest.$ac_ext
20170 cat >>conftest.$ac_ext <<_ACEOF
20171 /* end confdefs.h. */
20172 $ac_includes_default
20176 if (sizeof (ssize_t))
20182 rm -f conftest.$ac_objext
20183 if { (ac_try="$ac_compile"
20184 case "(($ac_try" in
20185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20186 *) ac_try_echo=$ac_try;;
20188 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20189 $as_echo "$ac_try_echo") >&5
20190 (eval "$ac_compile") 2>conftest.er1
20192 grep -v '^ *+' conftest.er1 >conftest.err
20194 cat conftest.err >&5
20195 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20196 (exit $ac_status); } && {
20197 test -z "$ac_c_werror_flag" ||
20198 test ! -s conftest.err
20199 } && test -s conftest.$ac_objext; then
20200 cat >conftest.$ac_ext <<_ACEOF
20203 cat confdefs.h >>conftest.$ac_ext
20204 cat >>conftest.$ac_ext <<_ACEOF
20205 /* end confdefs.h. */
20206 $ac_includes_default
20210 if (sizeof ((ssize_t)))
20216 rm -f conftest.$ac_objext
20217 if { (ac_try="$ac_compile"
20218 case "(($ac_try" in
20219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20220 *) ac_try_echo=$ac_try;;
20222 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20223 $as_echo "$ac_try_echo") >&5
20224 (eval "$ac_compile") 2>conftest.er1
20226 grep -v '^ *+' conftest.er1 >conftest.err
20228 cat conftest.err >&5
20229 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20230 (exit $ac_status); } && {
20231 test -z "$ac_c_werror_flag" ||
20232 test ! -s conftest.err
20233 } && test -s conftest.$ac_objext; then
20236 $as_echo "$as_me: failed program was:" >&5
20237 sed 's/^/| /' conftest.$ac_ext >&5
20239 ac_cv_type_ssize_t=yes
20242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20244 $as_echo "$as_me: failed program was:" >&5
20245 sed 's/^/| /' conftest.$ac_ext >&5
20250 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20252 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
20253 $as_echo "$ac_cv_type_ssize_t" >&6; }
20254 if test "x$ac_cv_type_ssize_t" = x""yes; then
20258 cat >>confdefs.h <<_ACEOF
20259 @%:@define ssize_t int
20264 { $as_echo "$as_me:$LINENO: checking for time_t" >&5
20265 $as_echo_n "checking for time_t... " >&6; }
20266 if test "${ac_cv_type_time_t+set}" = set; then
20267 $as_echo_n "(cached) " >&6
20269 ac_cv_type_time_t=no
20270 cat >conftest.$ac_ext <<_ACEOF
20273 cat confdefs.h >>conftest.$ac_ext
20274 cat >>conftest.$ac_ext <<_ACEOF
20275 /* end confdefs.h. */
20276 $ac_includes_default
20280 if (sizeof (time_t))
20286 rm -f conftest.$ac_objext
20287 if { (ac_try="$ac_compile"
20288 case "(($ac_try" in
20289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20290 *) ac_try_echo=$ac_try;;
20292 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20293 $as_echo "$ac_try_echo") >&5
20294 (eval "$ac_compile") 2>conftest.er1
20296 grep -v '^ *+' conftest.er1 >conftest.err
20298 cat conftest.err >&5
20299 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20300 (exit $ac_status); } && {
20301 test -z "$ac_c_werror_flag" ||
20302 test ! -s conftest.err
20303 } && test -s conftest.$ac_objext; then
20304 cat >conftest.$ac_ext <<_ACEOF
20307 cat confdefs.h >>conftest.$ac_ext
20308 cat >>conftest.$ac_ext <<_ACEOF
20309 /* end confdefs.h. */
20310 $ac_includes_default
20314 if (sizeof ((time_t)))
20320 rm -f conftest.$ac_objext
20321 if { (ac_try="$ac_compile"
20322 case "(($ac_try" in
20323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20324 *) ac_try_echo=$ac_try;;
20326 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20327 $as_echo "$ac_try_echo") >&5
20328 (eval "$ac_compile") 2>conftest.er1
20330 grep -v '^ *+' conftest.er1 >conftest.err
20332 cat conftest.err >&5
20333 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20334 (exit $ac_status); } && {
20335 test -z "$ac_c_werror_flag" ||
20336 test ! -s conftest.err
20337 } && test -s conftest.$ac_objext; then
20340 $as_echo "$as_me: failed program was:" >&5
20341 sed 's/^/| /' conftest.$ac_ext >&5
20343 ac_cv_type_time_t=yes
20346 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20348 $as_echo "$as_me: failed program was:" >&5
20349 sed 's/^/| /' conftest.$ac_ext >&5
20354 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20356 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_time_t" >&5
20357 $as_echo "$ac_cv_type_time_t" >&6; }
20358 if test "x$ac_cv_type_time_t" = x""yes; then
20362 cat >>confdefs.h <<_ACEOF
20363 @%:@define time_t long
20370 { $as_echo "$as_me:$LINENO: checking for long long" >&5
20371 $as_echo_n "checking for long long... " >&6; }
20372 if test "${bash_cv_type_long_long+set}" = set; then
20373 $as_echo_n "(cached) " >&6
20375 cat >conftest.$ac_ext <<_ACEOF
20378 cat confdefs.h >>conftest.$ac_ext
20379 cat >>conftest.$ac_ext <<_ACEOF
20380 /* end confdefs.h. */
20382 long long ll = 1; int i = 63;
20387 long long llm = (long long) -1;
20388 return ll << i | ll >> i | llm / ll | llm % ll;
20394 rm -f conftest.$ac_objext conftest$ac_exeext
20395 if { (ac_try="$ac_link"
20396 case "(($ac_try" in
20397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20398 *) ac_try_echo=$ac_try;;
20400 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20401 $as_echo "$ac_try_echo") >&5
20402 (eval "$ac_link") 2>conftest.er1
20404 grep -v '^ *+' conftest.er1 >conftest.err
20406 cat conftest.err >&5
20407 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20408 (exit $ac_status); } && {
20409 test -z "$ac_c_werror_flag" ||
20410 test ! -s conftest.err
20411 } && test -s conftest$ac_exeext && {
20412 test "$cross_compiling" = yes ||
20413 $as_test_x conftest$ac_exeext
20415 bash_cv_type_long_long='long long'
20417 $as_echo "$as_me: failed program was:" >&5
20418 sed 's/^/| /' conftest.$ac_ext >&5
20420 bash_cv_type_long_long='long'
20423 rm -rf conftest.dSYM
20424 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20425 conftest$ac_exeext conftest.$ac_ext
20427 { $as_echo "$as_me:$LINENO: result: $bash_cv_type_long_long" >&5
20428 $as_echo "$bash_cv_type_long_long" >&6; }
20429 if test "$bash_cv_type_long_long" = 'long long'; then
20430 cat >>confdefs.h <<\_ACEOF
20431 @%:@define HAVE_LONG_LONG 1
20437 { $as_echo "$as_me:$LINENO: checking for unsigned long long" >&5
20438 $as_echo_n "checking for unsigned long long... " >&6; }
20439 if test "${bash_cv_type_unsigned_long_long+set}" = set; then
20440 $as_echo_n "(cached) " >&6
20442 cat >conftest.$ac_ext <<_ACEOF
20445 cat confdefs.h >>conftest.$ac_ext
20446 cat >>conftest.$ac_ext <<_ACEOF
20447 /* end confdefs.h. */
20449 unsigned long long ull = 1; int i = 63;
20454 unsigned long long ullmax = (unsigned long long) -1;
20455 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
20461 rm -f conftest.$ac_objext conftest$ac_exeext
20462 if { (ac_try="$ac_link"
20463 case "(($ac_try" in
20464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20465 *) ac_try_echo=$ac_try;;
20467 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20468 $as_echo "$ac_try_echo") >&5
20469 (eval "$ac_link") 2>conftest.er1
20471 grep -v '^ *+' conftest.er1 >conftest.err
20473 cat conftest.err >&5
20474 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20475 (exit $ac_status); } && {
20476 test -z "$ac_c_werror_flag" ||
20477 test ! -s conftest.err
20478 } && test -s conftest$ac_exeext && {
20479 test "$cross_compiling" = yes ||
20480 $as_test_x conftest$ac_exeext
20482 bash_cv_type_unsigned_long_long='unsigned long long'
20484 $as_echo "$as_me: failed program was:" >&5
20485 sed 's/^/| /' conftest.$ac_ext >&5
20487 bash_cv_type_unsigned_long_long='unsigned long'
20490 rm -rf conftest.dSYM
20491 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20492 conftest$ac_exeext conftest.$ac_ext
20494 { $as_echo "$as_me:$LINENO: result: $bash_cv_type_unsigned_long_long" >&5
20495 $as_echo "$bash_cv_type_unsigned_long_long" >&6; }
20496 if test "$bash_cv_type_unsigned_long_long" = 'unsigned long long'; then
20497 cat >>confdefs.h <<\_ACEOF
20498 @%:@define HAVE_UNSIGNED_LONG_LONG 1
20504 { $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5
20505 $as_echo_n "checking return type of signal handlers... " >&6; }
20506 if test "${ac_cv_type_signal+set}" = set; then
20507 $as_echo_n "(cached) " >&6
20509 cat >conftest.$ac_ext <<_ACEOF
20512 cat confdefs.h >>conftest.$ac_ext
20513 cat >>conftest.$ac_ext <<_ACEOF
20514 /* end confdefs.h. */
20515 #include <sys/types.h>
20516 #include <signal.h>
20521 return *(signal (0, 0)) (0) == 1;
20526 rm -f conftest.$ac_objext
20527 if { (ac_try="$ac_compile"
20528 case "(($ac_try" in
20529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20530 *) ac_try_echo=$ac_try;;
20532 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20533 $as_echo "$ac_try_echo") >&5
20534 (eval "$ac_compile") 2>conftest.er1
20536 grep -v '^ *+' conftest.er1 >conftest.err
20538 cat conftest.err >&5
20539 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20540 (exit $ac_status); } && {
20541 test -z "$ac_c_werror_flag" ||
20542 test ! -s conftest.err
20543 } && test -s conftest.$ac_objext; then
20544 ac_cv_type_signal=int
20546 $as_echo "$as_me: failed program was:" >&5
20547 sed 's/^/| /' conftest.$ac_ext >&5
20549 ac_cv_type_signal=void
20552 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20554 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
20555 $as_echo "$ac_cv_type_signal" >&6; }
20557 cat >>confdefs.h <<_ACEOF
20558 @%:@define RETSIGTYPE $ac_cv_type_signal
20562 { $as_echo "$as_me:$LINENO: checking for sig_atomic_t in signal.h" >&5
20563 $as_echo_n "checking for sig_atomic_t in signal.h... " >&6; }
20564 if test "${ac_cv_have_sig_atomic_t+set}" = set; then
20565 $as_echo_n "(cached) " >&6
20567 cat >conftest.$ac_ext <<_ACEOF
20570 cat confdefs.h >>conftest.$ac_ext
20571 cat >>conftest.$ac_ext <<_ACEOF
20572 /* end confdefs.h. */
20574 #include <signal.h>
20584 rm -f conftest.$ac_objext conftest$ac_exeext
20585 if { (ac_try="$ac_link"
20586 case "(($ac_try" in
20587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20588 *) ac_try_echo=$ac_try;;
20590 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20591 $as_echo "$ac_try_echo") >&5
20592 (eval "$ac_link") 2>conftest.er1
20594 grep -v '^ *+' conftest.er1 >conftest.err
20596 cat conftest.err >&5
20597 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20598 (exit $ac_status); } && {
20599 test -z "$ac_c_werror_flag" ||
20600 test ! -s conftest.err
20601 } && test -s conftest$ac_exeext && {
20602 test "$cross_compiling" = yes ||
20603 $as_test_x conftest$ac_exeext
20605 ac_cv_have_sig_atomic_t=yes
20607 $as_echo "$as_me: failed program was:" >&5
20608 sed 's/^/| /' conftest.$ac_ext >&5
20610 ac_cv_have_sig_atomic_t=no
20613 rm -rf conftest.dSYM
20614 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20615 conftest$ac_exeext conftest.$ac_ext
20617 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_sig_atomic_t" >&5
20618 $as_echo "$ac_cv_have_sig_atomic_t" >&6; }
20619 if test "$ac_cv_have_sig_atomic_t" = "no"
20621 { $as_echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
20622 $as_echo_n "checking for sig_atomic_t... " >&6; }
20623 if test "${ac_cv_type_sig_atomic_t+set}" = set; then
20624 $as_echo_n "(cached) " >&6
20626 ac_cv_type_sig_atomic_t=no
20627 cat >conftest.$ac_ext <<_ACEOF
20630 cat confdefs.h >>conftest.$ac_ext
20631 cat >>conftest.$ac_ext <<_ACEOF
20632 /* end confdefs.h. */
20633 $ac_includes_default
20637 if (sizeof (sig_atomic_t))
20643 rm -f conftest.$ac_objext
20644 if { (ac_try="$ac_compile"
20645 case "(($ac_try" in
20646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20647 *) ac_try_echo=$ac_try;;
20649 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20650 $as_echo "$ac_try_echo") >&5
20651 (eval "$ac_compile") 2>conftest.er1
20653 grep -v '^ *+' conftest.er1 >conftest.err
20655 cat conftest.err >&5
20656 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20657 (exit $ac_status); } && {
20658 test -z "$ac_c_werror_flag" ||
20659 test ! -s conftest.err
20660 } && test -s conftest.$ac_objext; then
20661 cat >conftest.$ac_ext <<_ACEOF
20664 cat confdefs.h >>conftest.$ac_ext
20665 cat >>conftest.$ac_ext <<_ACEOF
20666 /* end confdefs.h. */
20667 $ac_includes_default
20671 if (sizeof ((sig_atomic_t)))
20677 rm -f conftest.$ac_objext
20678 if { (ac_try="$ac_compile"
20679 case "(($ac_try" in
20680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20681 *) ac_try_echo=$ac_try;;
20683 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20684 $as_echo "$ac_try_echo") >&5
20685 (eval "$ac_compile") 2>conftest.er1
20687 grep -v '^ *+' conftest.er1 >conftest.err
20689 cat conftest.err >&5
20690 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20691 (exit $ac_status); } && {
20692 test -z "$ac_c_werror_flag" ||
20693 test ! -s conftest.err
20694 } && test -s conftest.$ac_objext; then
20697 $as_echo "$as_me: failed program was:" >&5
20698 sed 's/^/| /' conftest.$ac_ext >&5
20700 ac_cv_type_sig_atomic_t=yes
20703 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20705 $as_echo "$as_me: failed program was:" >&5
20706 sed 's/^/| /' conftest.$ac_ext >&5
20711 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20713 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
20714 $as_echo "$ac_cv_type_sig_atomic_t" >&6; }
20715 if test "x$ac_cv_type_sig_atomic_t" = x""yes; then
20719 cat >>confdefs.h <<_ACEOF
20720 @%:@define sig_atomic_t int
20728 # The cast to long int works around a bug in the HP C Compiler
20729 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20730 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20731 # This bug is HP SR number 8606223364.
20732 { $as_echo "$as_me:$LINENO: checking size of char" >&5
20733 $as_echo_n "checking size of char... " >&6; }
20734 if test "${ac_cv_sizeof_char+set}" = set; then
20735 $as_echo_n "(cached) " >&6
20737 if test "$cross_compiling" = yes; then
20738 # Depending upon the size, compute the lo and hi bounds.
20739 cat >conftest.$ac_ext <<_ACEOF
20742 cat confdefs.h >>conftest.$ac_ext
20743 cat >>conftest.$ac_ext <<_ACEOF
20744 /* end confdefs.h. */
20745 $ac_includes_default
20749 static int test_array @<:@1 - 2 * !(((long int) (sizeof (char))) >= 0)@:>@;
20750 test_array @<:@0@:>@ = 0
20756 rm -f conftest.$ac_objext
20757 if { (ac_try="$ac_compile"
20758 case "(($ac_try" in
20759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20760 *) ac_try_echo=$ac_try;;
20762 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20763 $as_echo "$ac_try_echo") >&5
20764 (eval "$ac_compile") 2>conftest.er1
20766 grep -v '^ *+' conftest.er1 >conftest.err
20768 cat conftest.err >&5
20769 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20770 (exit $ac_status); } && {
20771 test -z "$ac_c_werror_flag" ||
20772 test ! -s conftest.err
20773 } && test -s conftest.$ac_objext; then
20776 cat >conftest.$ac_ext <<_ACEOF
20779 cat confdefs.h >>conftest.$ac_ext
20780 cat >>conftest.$ac_ext <<_ACEOF
20781 /* end confdefs.h. */
20782 $ac_includes_default
20786 static int test_array @<:@1 - 2 * !(((long int) (sizeof (char))) <= $ac_mid)@:>@;
20787 test_array @<:@0@:>@ = 0
20793 rm -f conftest.$ac_objext
20794 if { (ac_try="$ac_compile"
20795 case "(($ac_try" in
20796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20797 *) ac_try_echo=$ac_try;;
20799 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20800 $as_echo "$ac_try_echo") >&5
20801 (eval "$ac_compile") 2>conftest.er1
20803 grep -v '^ *+' conftest.er1 >conftest.err
20805 cat conftest.err >&5
20806 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20807 (exit $ac_status); } && {
20808 test -z "$ac_c_werror_flag" ||
20809 test ! -s conftest.err
20810 } && test -s conftest.$ac_objext; then
20811 ac_hi=$ac_mid; break
20813 $as_echo "$as_me: failed program was:" >&5
20814 sed 's/^/| /' conftest.$ac_ext >&5
20816 ac_lo=`expr $ac_mid + 1`
20817 if test $ac_lo -le $ac_mid; then
20821 ac_mid=`expr 2 '*' $ac_mid + 1`
20824 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20827 $as_echo "$as_me: failed program was:" >&5
20828 sed 's/^/| /' conftest.$ac_ext >&5
20830 cat >conftest.$ac_ext <<_ACEOF
20833 cat confdefs.h >>conftest.$ac_ext
20834 cat >>conftest.$ac_ext <<_ACEOF
20835 /* end confdefs.h. */
20836 $ac_includes_default
20840 static int test_array @<:@1 - 2 * !(((long int) (sizeof (char))) < 0)@:>@;
20841 test_array @<:@0@:>@ = 0
20847 rm -f conftest.$ac_objext
20848 if { (ac_try="$ac_compile"
20849 case "(($ac_try" in
20850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20851 *) ac_try_echo=$ac_try;;
20853 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20854 $as_echo "$ac_try_echo") >&5
20855 (eval "$ac_compile") 2>conftest.er1
20857 grep -v '^ *+' conftest.er1 >conftest.err
20859 cat conftest.err >&5
20860 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20861 (exit $ac_status); } && {
20862 test -z "$ac_c_werror_flag" ||
20863 test ! -s conftest.err
20864 } && test -s conftest.$ac_objext; then
20867 cat >conftest.$ac_ext <<_ACEOF
20870 cat confdefs.h >>conftest.$ac_ext
20871 cat >>conftest.$ac_ext <<_ACEOF
20872 /* end confdefs.h. */
20873 $ac_includes_default
20877 static int test_array @<:@1 - 2 * !(((long int) (sizeof (char))) >= $ac_mid)@:>@;
20878 test_array @<:@0@:>@ = 0
20884 rm -f conftest.$ac_objext
20885 if { (ac_try="$ac_compile"
20886 case "(($ac_try" in
20887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20888 *) ac_try_echo=$ac_try;;
20890 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20891 $as_echo "$ac_try_echo") >&5
20892 (eval "$ac_compile") 2>conftest.er1
20894 grep -v '^ *+' conftest.er1 >conftest.err
20896 cat conftest.err >&5
20897 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20898 (exit $ac_status); } && {
20899 test -z "$ac_c_werror_flag" ||
20900 test ! -s conftest.err
20901 } && test -s conftest.$ac_objext; then
20902 ac_lo=$ac_mid; break
20904 $as_echo "$as_me: failed program was:" >&5
20905 sed 's/^/| /' conftest.$ac_ext >&5
20907 ac_hi=`expr '(' $ac_mid ')' - 1`
20908 if test $ac_mid -le $ac_hi; then
20912 ac_mid=`expr 2 '*' $ac_mid`
20915 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20918 $as_echo "$as_me: failed program was:" >&5
20919 sed 's/^/| /' conftest.$ac_ext >&5
20924 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20927 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20928 # Binary search between lo and hi bounds.
20929 while test "x$ac_lo" != "x$ac_hi"; do
20930 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20931 cat >conftest.$ac_ext <<_ACEOF
20934 cat confdefs.h >>conftest.$ac_ext
20935 cat >>conftest.$ac_ext <<_ACEOF
20936 /* end confdefs.h. */
20937 $ac_includes_default
20941 static int test_array @<:@1 - 2 * !(((long int) (sizeof (char))) <= $ac_mid)@:>@;
20942 test_array @<:@0@:>@ = 0
20948 rm -f conftest.$ac_objext
20949 if { (ac_try="$ac_compile"
20950 case "(($ac_try" in
20951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20952 *) ac_try_echo=$ac_try;;
20954 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20955 $as_echo "$ac_try_echo") >&5
20956 (eval "$ac_compile") 2>conftest.er1
20958 grep -v '^ *+' conftest.er1 >conftest.err
20960 cat conftest.err >&5
20961 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20962 (exit $ac_status); } && {
20963 test -z "$ac_c_werror_flag" ||
20964 test ! -s conftest.err
20965 } && test -s conftest.$ac_objext; then
20968 $as_echo "$as_me: failed program was:" >&5
20969 sed 's/^/| /' conftest.$ac_ext >&5
20971 ac_lo=`expr '(' $ac_mid ')' + 1`
20974 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20977 ?*) ac_cv_sizeof_char=$ac_lo;;
20978 '') if test "$ac_cv_type_char" = yes; then
20979 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
20980 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20981 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (char)
20982 See \`config.log' for more details." >&5
20983 $as_echo "$as_me: error: cannot compute sizeof (char)
20984 See \`config.log' for more details." >&2;}
20985 { (exit 77); exit 77; }; }; }
20987 ac_cv_sizeof_char=0
20991 cat >conftest.$ac_ext <<_ACEOF
20994 cat confdefs.h >>conftest.$ac_ext
20995 cat >>conftest.$ac_ext <<_ACEOF
20996 /* end confdefs.h. */
20997 $ac_includes_default
20998 static long int longval () { return (long int) (sizeof (char)); }
20999 static unsigned long int ulongval () { return (long int) (sizeof (char)); }
21000 @%:@include <stdio.h>
21001 @%:@include <stdlib.h>
21006 FILE *f = fopen ("conftest.val", "w");
21009 if (((long int) (sizeof (char))) < 0)
21011 long int i = longval ();
21012 if (i != ((long int) (sizeof (char))))
21014 fprintf (f, "%ld", i);
21018 unsigned long int i = ulongval ();
21019 if (i != ((long int) (sizeof (char))))
21021 fprintf (f, "%lu", i);
21023 /* Do not output a trailing newline, as this causes \r\n confusion
21024 on some platforms. */
21025 return ferror (f) || fclose (f) != 0;
21031 rm -f conftest$ac_exeext
21032 if { (ac_try="$ac_link"
21033 case "(($ac_try" in
21034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21035 *) ac_try_echo=$ac_try;;
21037 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21038 $as_echo "$ac_try_echo") >&5
21039 (eval "$ac_link") 2>&5
21041 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21042 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21043 { (case "(($ac_try" in
21044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21045 *) ac_try_echo=$ac_try;;
21047 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21048 $as_echo "$ac_try_echo") >&5
21049 (eval "$ac_try") 2>&5
21051 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21052 (exit $ac_status); }; }; then
21053 ac_cv_sizeof_char=`cat conftest.val`
21055 $as_echo "$as_me: program exited with status $ac_status" >&5
21056 $as_echo "$as_me: failed program was:" >&5
21057 sed 's/^/| /' conftest.$ac_ext >&5
21059 ( exit $ac_status )
21060 if test "$ac_cv_type_char" = yes; then
21061 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
21062 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21063 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (char)
21064 See \`config.log' for more details." >&5
21065 $as_echo "$as_me: error: cannot compute sizeof (char)
21066 See \`config.log' for more details." >&2;}
21067 { (exit 77); exit 77; }; }; }
21069 ac_cv_sizeof_char=0
21072 rm -rf conftest.dSYM
21073 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21077 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
21078 $as_echo "$ac_cv_sizeof_char" >&6; }
21082 cat >>confdefs.h <<_ACEOF
21083 @%:@define SIZEOF_CHAR $ac_cv_sizeof_char
21087 # The cast to long int works around a bug in the HP C Compiler
21088 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21089 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21090 # This bug is HP SR number 8606223364.
21091 { $as_echo "$as_me:$LINENO: checking size of short" >&5
21092 $as_echo_n "checking size of short... " >&6; }
21093 if test "${ac_cv_sizeof_short+set}" = set; then
21094 $as_echo_n "(cached) " >&6
21096 if test "$cross_compiling" = yes; then
21097 # Depending upon the size, compute the lo and hi bounds.
21098 cat >conftest.$ac_ext <<_ACEOF
21101 cat confdefs.h >>conftest.$ac_ext
21102 cat >>conftest.$ac_ext <<_ACEOF
21103 /* end confdefs.h. */
21104 $ac_includes_default
21108 static int test_array @<:@1 - 2 * !(((long int) (sizeof (short))) >= 0)@:>@;
21109 test_array @<:@0@:>@ = 0
21115 rm -f conftest.$ac_objext
21116 if { (ac_try="$ac_compile"
21117 case "(($ac_try" in
21118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21119 *) ac_try_echo=$ac_try;;
21121 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21122 $as_echo "$ac_try_echo") >&5
21123 (eval "$ac_compile") 2>conftest.er1
21125 grep -v '^ *+' conftest.er1 >conftest.err
21127 cat conftest.err >&5
21128 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21129 (exit $ac_status); } && {
21130 test -z "$ac_c_werror_flag" ||
21131 test ! -s conftest.err
21132 } && test -s conftest.$ac_objext; then
21135 cat >conftest.$ac_ext <<_ACEOF
21138 cat confdefs.h >>conftest.$ac_ext
21139 cat >>conftest.$ac_ext <<_ACEOF
21140 /* end confdefs.h. */
21141 $ac_includes_default
21145 static int test_array @<:@1 - 2 * !(((long int) (sizeof (short))) <= $ac_mid)@:>@;
21146 test_array @<:@0@:>@ = 0
21152 rm -f conftest.$ac_objext
21153 if { (ac_try="$ac_compile"
21154 case "(($ac_try" in
21155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21156 *) ac_try_echo=$ac_try;;
21158 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21159 $as_echo "$ac_try_echo") >&5
21160 (eval "$ac_compile") 2>conftest.er1
21162 grep -v '^ *+' conftest.er1 >conftest.err
21164 cat conftest.err >&5
21165 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21166 (exit $ac_status); } && {
21167 test -z "$ac_c_werror_flag" ||
21168 test ! -s conftest.err
21169 } && test -s conftest.$ac_objext; then
21170 ac_hi=$ac_mid; break
21172 $as_echo "$as_me: failed program was:" >&5
21173 sed 's/^/| /' conftest.$ac_ext >&5
21175 ac_lo=`expr $ac_mid + 1`
21176 if test $ac_lo -le $ac_mid; then
21180 ac_mid=`expr 2 '*' $ac_mid + 1`
21183 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21186 $as_echo "$as_me: failed program was:" >&5
21187 sed 's/^/| /' conftest.$ac_ext >&5
21189 cat >conftest.$ac_ext <<_ACEOF
21192 cat confdefs.h >>conftest.$ac_ext
21193 cat >>conftest.$ac_ext <<_ACEOF
21194 /* end confdefs.h. */
21195 $ac_includes_default
21199 static int test_array @<:@1 - 2 * !(((long int) (sizeof (short))) < 0)@:>@;
21200 test_array @<:@0@:>@ = 0
21206 rm -f conftest.$ac_objext
21207 if { (ac_try="$ac_compile"
21208 case "(($ac_try" in
21209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21210 *) ac_try_echo=$ac_try;;
21212 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21213 $as_echo "$ac_try_echo") >&5
21214 (eval "$ac_compile") 2>conftest.er1
21216 grep -v '^ *+' conftest.er1 >conftest.err
21218 cat conftest.err >&5
21219 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21220 (exit $ac_status); } && {
21221 test -z "$ac_c_werror_flag" ||
21222 test ! -s conftest.err
21223 } && test -s conftest.$ac_objext; then
21226 cat >conftest.$ac_ext <<_ACEOF
21229 cat confdefs.h >>conftest.$ac_ext
21230 cat >>conftest.$ac_ext <<_ACEOF
21231 /* end confdefs.h. */
21232 $ac_includes_default
21236 static int test_array @<:@1 - 2 * !(((long int) (sizeof (short))) >= $ac_mid)@:>@;
21237 test_array @<:@0@:>@ = 0
21243 rm -f conftest.$ac_objext
21244 if { (ac_try="$ac_compile"
21245 case "(($ac_try" in
21246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21247 *) ac_try_echo=$ac_try;;
21249 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21250 $as_echo "$ac_try_echo") >&5
21251 (eval "$ac_compile") 2>conftest.er1
21253 grep -v '^ *+' conftest.er1 >conftest.err
21255 cat conftest.err >&5
21256 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21257 (exit $ac_status); } && {
21258 test -z "$ac_c_werror_flag" ||
21259 test ! -s conftest.err
21260 } && test -s conftest.$ac_objext; then
21261 ac_lo=$ac_mid; break
21263 $as_echo "$as_me: failed program was:" >&5
21264 sed 's/^/| /' conftest.$ac_ext >&5
21266 ac_hi=`expr '(' $ac_mid ')' - 1`
21267 if test $ac_mid -le $ac_hi; then
21271 ac_mid=`expr 2 '*' $ac_mid`
21274 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21277 $as_echo "$as_me: failed program was:" >&5
21278 sed 's/^/| /' conftest.$ac_ext >&5
21283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21286 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21287 # Binary search between lo and hi bounds.
21288 while test "x$ac_lo" != "x$ac_hi"; do
21289 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21290 cat >conftest.$ac_ext <<_ACEOF
21293 cat confdefs.h >>conftest.$ac_ext
21294 cat >>conftest.$ac_ext <<_ACEOF
21295 /* end confdefs.h. */
21296 $ac_includes_default
21300 static int test_array @<:@1 - 2 * !(((long int) (sizeof (short))) <= $ac_mid)@:>@;
21301 test_array @<:@0@:>@ = 0
21307 rm -f conftest.$ac_objext
21308 if { (ac_try="$ac_compile"
21309 case "(($ac_try" in
21310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21311 *) ac_try_echo=$ac_try;;
21313 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21314 $as_echo "$ac_try_echo") >&5
21315 (eval "$ac_compile") 2>conftest.er1
21317 grep -v '^ *+' conftest.er1 >conftest.err
21319 cat conftest.err >&5
21320 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21321 (exit $ac_status); } && {
21322 test -z "$ac_c_werror_flag" ||
21323 test ! -s conftest.err
21324 } && test -s conftest.$ac_objext; then
21327 $as_echo "$as_me: failed program was:" >&5
21328 sed 's/^/| /' conftest.$ac_ext >&5
21330 ac_lo=`expr '(' $ac_mid ')' + 1`
21333 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21336 ?*) ac_cv_sizeof_short=$ac_lo;;
21337 '') if test "$ac_cv_type_short" = yes; then
21338 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
21339 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21340 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (short)
21341 See \`config.log' for more details." >&5
21342 $as_echo "$as_me: error: cannot compute sizeof (short)
21343 See \`config.log' for more details." >&2;}
21344 { (exit 77); exit 77; }; }; }
21346 ac_cv_sizeof_short=0
21350 cat >conftest.$ac_ext <<_ACEOF
21353 cat confdefs.h >>conftest.$ac_ext
21354 cat >>conftest.$ac_ext <<_ACEOF
21355 /* end confdefs.h. */
21356 $ac_includes_default
21357 static long int longval () { return (long int) (sizeof (short)); }
21358 static unsigned long int ulongval () { return (long int) (sizeof (short)); }
21359 @%:@include <stdio.h>
21360 @%:@include <stdlib.h>
21365 FILE *f = fopen ("conftest.val", "w");
21368 if (((long int) (sizeof (short))) < 0)
21370 long int i = longval ();
21371 if (i != ((long int) (sizeof (short))))
21373 fprintf (f, "%ld", i);
21377 unsigned long int i = ulongval ();
21378 if (i != ((long int) (sizeof (short))))
21380 fprintf (f, "%lu", i);
21382 /* Do not output a trailing newline, as this causes \r\n confusion
21383 on some platforms. */
21384 return ferror (f) || fclose (f) != 0;
21390 rm -f conftest$ac_exeext
21391 if { (ac_try="$ac_link"
21392 case "(($ac_try" in
21393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21394 *) ac_try_echo=$ac_try;;
21396 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21397 $as_echo "$ac_try_echo") >&5
21398 (eval "$ac_link") 2>&5
21400 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21401 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21402 { (case "(($ac_try" in
21403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21404 *) ac_try_echo=$ac_try;;
21406 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21407 $as_echo "$ac_try_echo") >&5
21408 (eval "$ac_try") 2>&5
21410 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21411 (exit $ac_status); }; }; then
21412 ac_cv_sizeof_short=`cat conftest.val`
21414 $as_echo "$as_me: program exited with status $ac_status" >&5
21415 $as_echo "$as_me: failed program was:" >&5
21416 sed 's/^/| /' conftest.$ac_ext >&5
21418 ( exit $ac_status )
21419 if test "$ac_cv_type_short" = yes; then
21420 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
21421 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21422 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (short)
21423 See \`config.log' for more details." >&5
21424 $as_echo "$as_me: error: cannot compute sizeof (short)
21425 See \`config.log' for more details." >&2;}
21426 { (exit 77); exit 77; }; }; }
21428 ac_cv_sizeof_short=0
21431 rm -rf conftest.dSYM
21432 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21436 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
21437 $as_echo "$ac_cv_sizeof_short" >&6; }
21441 cat >>confdefs.h <<_ACEOF
21442 @%:@define SIZEOF_SHORT $ac_cv_sizeof_short
21446 # The cast to long int works around a bug in the HP C Compiler
21447 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21448 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21449 # This bug is HP SR number 8606223364.
21450 { $as_echo "$as_me:$LINENO: checking size of int" >&5
21451 $as_echo_n "checking size of int... " >&6; }
21452 if test "${ac_cv_sizeof_int+set}" = set; then
21453 $as_echo_n "(cached) " >&6
21455 if test "$cross_compiling" = yes; then
21456 # Depending upon the size, compute the lo and hi bounds.
21457 cat >conftest.$ac_ext <<_ACEOF
21460 cat confdefs.h >>conftest.$ac_ext
21461 cat >>conftest.$ac_ext <<_ACEOF
21462 /* end confdefs.h. */
21463 $ac_includes_default
21467 static int test_array @<:@1 - 2 * !(((long int) (sizeof (int))) >= 0)@:>@;
21468 test_array @<:@0@:>@ = 0
21474 rm -f conftest.$ac_objext
21475 if { (ac_try="$ac_compile"
21476 case "(($ac_try" in
21477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21478 *) ac_try_echo=$ac_try;;
21480 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21481 $as_echo "$ac_try_echo") >&5
21482 (eval "$ac_compile") 2>conftest.er1
21484 grep -v '^ *+' conftest.er1 >conftest.err
21486 cat conftest.err >&5
21487 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21488 (exit $ac_status); } && {
21489 test -z "$ac_c_werror_flag" ||
21490 test ! -s conftest.err
21491 } && test -s conftest.$ac_objext; then
21494 cat >conftest.$ac_ext <<_ACEOF
21497 cat confdefs.h >>conftest.$ac_ext
21498 cat >>conftest.$ac_ext <<_ACEOF
21499 /* end confdefs.h. */
21500 $ac_includes_default
21504 static int test_array @<:@1 - 2 * !(((long int) (sizeof (int))) <= $ac_mid)@:>@;
21505 test_array @<:@0@:>@ = 0
21511 rm -f conftest.$ac_objext
21512 if { (ac_try="$ac_compile"
21513 case "(($ac_try" in
21514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21515 *) ac_try_echo=$ac_try;;
21517 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21518 $as_echo "$ac_try_echo") >&5
21519 (eval "$ac_compile") 2>conftest.er1
21521 grep -v '^ *+' conftest.er1 >conftest.err
21523 cat conftest.err >&5
21524 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21525 (exit $ac_status); } && {
21526 test -z "$ac_c_werror_flag" ||
21527 test ! -s conftest.err
21528 } && test -s conftest.$ac_objext; then
21529 ac_hi=$ac_mid; break
21531 $as_echo "$as_me: failed program was:" >&5
21532 sed 's/^/| /' conftest.$ac_ext >&5
21534 ac_lo=`expr $ac_mid + 1`
21535 if test $ac_lo -le $ac_mid; then
21539 ac_mid=`expr 2 '*' $ac_mid + 1`
21542 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21545 $as_echo "$as_me: failed program was:" >&5
21546 sed 's/^/| /' conftest.$ac_ext >&5
21548 cat >conftest.$ac_ext <<_ACEOF
21551 cat confdefs.h >>conftest.$ac_ext
21552 cat >>conftest.$ac_ext <<_ACEOF
21553 /* end confdefs.h. */
21554 $ac_includes_default
21558 static int test_array @<:@1 - 2 * !(((long int) (sizeof (int))) < 0)@:>@;
21559 test_array @<:@0@:>@ = 0
21565 rm -f conftest.$ac_objext
21566 if { (ac_try="$ac_compile"
21567 case "(($ac_try" in
21568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21569 *) ac_try_echo=$ac_try;;
21571 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21572 $as_echo "$ac_try_echo") >&5
21573 (eval "$ac_compile") 2>conftest.er1
21575 grep -v '^ *+' conftest.er1 >conftest.err
21577 cat conftest.err >&5
21578 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21579 (exit $ac_status); } && {
21580 test -z "$ac_c_werror_flag" ||
21581 test ! -s conftest.err
21582 } && test -s conftest.$ac_objext; then
21585 cat >conftest.$ac_ext <<_ACEOF
21588 cat confdefs.h >>conftest.$ac_ext
21589 cat >>conftest.$ac_ext <<_ACEOF
21590 /* end confdefs.h. */
21591 $ac_includes_default
21595 static int test_array @<:@1 - 2 * !(((long int) (sizeof (int))) >= $ac_mid)@:>@;
21596 test_array @<:@0@:>@ = 0
21602 rm -f conftest.$ac_objext
21603 if { (ac_try="$ac_compile"
21604 case "(($ac_try" in
21605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21606 *) ac_try_echo=$ac_try;;
21608 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21609 $as_echo "$ac_try_echo") >&5
21610 (eval "$ac_compile") 2>conftest.er1
21612 grep -v '^ *+' conftest.er1 >conftest.err
21614 cat conftest.err >&5
21615 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21616 (exit $ac_status); } && {
21617 test -z "$ac_c_werror_flag" ||
21618 test ! -s conftest.err
21619 } && test -s conftest.$ac_objext; then
21620 ac_lo=$ac_mid; break
21622 $as_echo "$as_me: failed program was:" >&5
21623 sed 's/^/| /' conftest.$ac_ext >&5
21625 ac_hi=`expr '(' $ac_mid ')' - 1`
21626 if test $ac_mid -le $ac_hi; then
21630 ac_mid=`expr 2 '*' $ac_mid`
21633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21636 $as_echo "$as_me: failed program was:" >&5
21637 sed 's/^/| /' conftest.$ac_ext >&5
21642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21645 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21646 # Binary search between lo and hi bounds.
21647 while test "x$ac_lo" != "x$ac_hi"; do
21648 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21649 cat >conftest.$ac_ext <<_ACEOF
21652 cat confdefs.h >>conftest.$ac_ext
21653 cat >>conftest.$ac_ext <<_ACEOF
21654 /* end confdefs.h. */
21655 $ac_includes_default
21659 static int test_array @<:@1 - 2 * !(((long int) (sizeof (int))) <= $ac_mid)@:>@;
21660 test_array @<:@0@:>@ = 0
21666 rm -f conftest.$ac_objext
21667 if { (ac_try="$ac_compile"
21668 case "(($ac_try" in
21669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21670 *) ac_try_echo=$ac_try;;
21672 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21673 $as_echo "$ac_try_echo") >&5
21674 (eval "$ac_compile") 2>conftest.er1
21676 grep -v '^ *+' conftest.er1 >conftest.err
21678 cat conftest.err >&5
21679 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21680 (exit $ac_status); } && {
21681 test -z "$ac_c_werror_flag" ||
21682 test ! -s conftest.err
21683 } && test -s conftest.$ac_objext; then
21686 $as_echo "$as_me: failed program was:" >&5
21687 sed 's/^/| /' conftest.$ac_ext >&5
21689 ac_lo=`expr '(' $ac_mid ')' + 1`
21692 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21695 ?*) ac_cv_sizeof_int=$ac_lo;;
21696 '') if test "$ac_cv_type_int" = yes; then
21697 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
21698 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21699 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (int)
21700 See \`config.log' for more details." >&5
21701 $as_echo "$as_me: error: cannot compute sizeof (int)
21702 See \`config.log' for more details." >&2;}
21703 { (exit 77); exit 77; }; }; }
21709 cat >conftest.$ac_ext <<_ACEOF
21712 cat confdefs.h >>conftest.$ac_ext
21713 cat >>conftest.$ac_ext <<_ACEOF
21714 /* end confdefs.h. */
21715 $ac_includes_default
21716 static long int longval () { return (long int) (sizeof (int)); }
21717 static unsigned long int ulongval () { return (long int) (sizeof (int)); }
21718 @%:@include <stdio.h>
21719 @%:@include <stdlib.h>
21724 FILE *f = fopen ("conftest.val", "w");
21727 if (((long int) (sizeof (int))) < 0)
21729 long int i = longval ();
21730 if (i != ((long int) (sizeof (int))))
21732 fprintf (f, "%ld", i);
21736 unsigned long int i = ulongval ();
21737 if (i != ((long int) (sizeof (int))))
21739 fprintf (f, "%lu", i);
21741 /* Do not output a trailing newline, as this causes \r\n confusion
21742 on some platforms. */
21743 return ferror (f) || fclose (f) != 0;
21749 rm -f conftest$ac_exeext
21750 if { (ac_try="$ac_link"
21751 case "(($ac_try" in
21752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21753 *) ac_try_echo=$ac_try;;
21755 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21756 $as_echo "$ac_try_echo") >&5
21757 (eval "$ac_link") 2>&5
21759 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21760 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21761 { (case "(($ac_try" in
21762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21763 *) ac_try_echo=$ac_try;;
21765 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21766 $as_echo "$ac_try_echo") >&5
21767 (eval "$ac_try") 2>&5
21769 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21770 (exit $ac_status); }; }; then
21771 ac_cv_sizeof_int=`cat conftest.val`
21773 $as_echo "$as_me: program exited with status $ac_status" >&5
21774 $as_echo "$as_me: failed program was:" >&5
21775 sed 's/^/| /' conftest.$ac_ext >&5
21777 ( exit $ac_status )
21778 if test "$ac_cv_type_int" = yes; then
21779 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
21780 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21781 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (int)
21782 See \`config.log' for more details." >&5
21783 $as_echo "$as_me: error: cannot compute sizeof (int)
21784 See \`config.log' for more details." >&2;}
21785 { (exit 77); exit 77; }; }; }
21790 rm -rf conftest.dSYM
21791 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21795 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
21796 $as_echo "$ac_cv_sizeof_int" >&6; }
21800 cat >>confdefs.h <<_ACEOF
21801 @%:@define SIZEOF_INT $ac_cv_sizeof_int
21805 # The cast to long int works around a bug in the HP C Compiler
21806 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21807 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21808 # This bug is HP SR number 8606223364.
21809 { $as_echo "$as_me:$LINENO: checking size of long" >&5
21810 $as_echo_n "checking size of long... " >&6; }
21811 if test "${ac_cv_sizeof_long+set}" = set; then
21812 $as_echo_n "(cached) " >&6
21814 if test "$cross_compiling" = yes; then
21815 # Depending upon the size, compute the lo and hi bounds.
21816 cat >conftest.$ac_ext <<_ACEOF
21819 cat confdefs.h >>conftest.$ac_ext
21820 cat >>conftest.$ac_ext <<_ACEOF
21821 /* end confdefs.h. */
21822 $ac_includes_default
21826 static int test_array @<:@1 - 2 * !(((long int) (sizeof (long))) >= 0)@:>@;
21827 test_array @<:@0@:>@ = 0
21833 rm -f conftest.$ac_objext
21834 if { (ac_try="$ac_compile"
21835 case "(($ac_try" in
21836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21837 *) ac_try_echo=$ac_try;;
21839 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21840 $as_echo "$ac_try_echo") >&5
21841 (eval "$ac_compile") 2>conftest.er1
21843 grep -v '^ *+' conftest.er1 >conftest.err
21845 cat conftest.err >&5
21846 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21847 (exit $ac_status); } && {
21848 test -z "$ac_c_werror_flag" ||
21849 test ! -s conftest.err
21850 } && test -s conftest.$ac_objext; then
21853 cat >conftest.$ac_ext <<_ACEOF
21856 cat confdefs.h >>conftest.$ac_ext
21857 cat >>conftest.$ac_ext <<_ACEOF
21858 /* end confdefs.h. */
21859 $ac_includes_default
21863 static int test_array @<:@1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)@:>@;
21864 test_array @<:@0@:>@ = 0
21870 rm -f conftest.$ac_objext
21871 if { (ac_try="$ac_compile"
21872 case "(($ac_try" in
21873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21874 *) ac_try_echo=$ac_try;;
21876 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21877 $as_echo "$ac_try_echo") >&5
21878 (eval "$ac_compile") 2>conftest.er1
21880 grep -v '^ *+' conftest.er1 >conftest.err
21882 cat conftest.err >&5
21883 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21884 (exit $ac_status); } && {
21885 test -z "$ac_c_werror_flag" ||
21886 test ! -s conftest.err
21887 } && test -s conftest.$ac_objext; then
21888 ac_hi=$ac_mid; break
21890 $as_echo "$as_me: failed program was:" >&5
21891 sed 's/^/| /' conftest.$ac_ext >&5
21893 ac_lo=`expr $ac_mid + 1`
21894 if test $ac_lo -le $ac_mid; then
21898 ac_mid=`expr 2 '*' $ac_mid + 1`
21901 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21904 $as_echo "$as_me: failed program was:" >&5
21905 sed 's/^/| /' conftest.$ac_ext >&5
21907 cat >conftest.$ac_ext <<_ACEOF
21910 cat confdefs.h >>conftest.$ac_ext
21911 cat >>conftest.$ac_ext <<_ACEOF
21912 /* end confdefs.h. */
21913 $ac_includes_default
21917 static int test_array @<:@1 - 2 * !(((long int) (sizeof (long))) < 0)@:>@;
21918 test_array @<:@0@:>@ = 0
21924 rm -f conftest.$ac_objext
21925 if { (ac_try="$ac_compile"
21926 case "(($ac_try" in
21927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21928 *) ac_try_echo=$ac_try;;
21930 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21931 $as_echo "$ac_try_echo") >&5
21932 (eval "$ac_compile") 2>conftest.er1
21934 grep -v '^ *+' conftest.er1 >conftest.err
21936 cat conftest.err >&5
21937 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21938 (exit $ac_status); } && {
21939 test -z "$ac_c_werror_flag" ||
21940 test ! -s conftest.err
21941 } && test -s conftest.$ac_objext; then
21944 cat >conftest.$ac_ext <<_ACEOF
21947 cat confdefs.h >>conftest.$ac_ext
21948 cat >>conftest.$ac_ext <<_ACEOF
21949 /* end confdefs.h. */
21950 $ac_includes_default
21954 static int test_array @<:@1 - 2 * !(((long int) (sizeof (long))) >= $ac_mid)@:>@;
21955 test_array @<:@0@:>@ = 0
21961 rm -f conftest.$ac_objext
21962 if { (ac_try="$ac_compile"
21963 case "(($ac_try" in
21964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21965 *) ac_try_echo=$ac_try;;
21967 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21968 $as_echo "$ac_try_echo") >&5
21969 (eval "$ac_compile") 2>conftest.er1
21971 grep -v '^ *+' conftest.er1 >conftest.err
21973 cat conftest.err >&5
21974 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21975 (exit $ac_status); } && {
21976 test -z "$ac_c_werror_flag" ||
21977 test ! -s conftest.err
21978 } && test -s conftest.$ac_objext; then
21979 ac_lo=$ac_mid; break
21981 $as_echo "$as_me: failed program was:" >&5
21982 sed 's/^/| /' conftest.$ac_ext >&5
21984 ac_hi=`expr '(' $ac_mid ')' - 1`
21985 if test $ac_mid -le $ac_hi; then
21989 ac_mid=`expr 2 '*' $ac_mid`
21992 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21995 $as_echo "$as_me: failed program was:" >&5
21996 sed 's/^/| /' conftest.$ac_ext >&5
22001 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22004 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22005 # Binary search between lo and hi bounds.
22006 while test "x$ac_lo" != "x$ac_hi"; do
22007 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22008 cat >conftest.$ac_ext <<_ACEOF
22011 cat confdefs.h >>conftest.$ac_ext
22012 cat >>conftest.$ac_ext <<_ACEOF
22013 /* end confdefs.h. */
22014 $ac_includes_default
22018 static int test_array @<:@1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)@:>@;
22019 test_array @<:@0@:>@ = 0
22025 rm -f conftest.$ac_objext
22026 if { (ac_try="$ac_compile"
22027 case "(($ac_try" in
22028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22029 *) ac_try_echo=$ac_try;;
22031 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22032 $as_echo "$ac_try_echo") >&5
22033 (eval "$ac_compile") 2>conftest.er1
22035 grep -v '^ *+' conftest.er1 >conftest.err
22037 cat conftest.err >&5
22038 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22039 (exit $ac_status); } && {
22040 test -z "$ac_c_werror_flag" ||
22041 test ! -s conftest.err
22042 } && test -s conftest.$ac_objext; then
22045 $as_echo "$as_me: failed program was:" >&5
22046 sed 's/^/| /' conftest.$ac_ext >&5
22048 ac_lo=`expr '(' $ac_mid ')' + 1`
22051 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22054 ?*) ac_cv_sizeof_long=$ac_lo;;
22055 '') if test "$ac_cv_type_long" = yes; then
22056 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
22057 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22058 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long)
22059 See \`config.log' for more details." >&5
22060 $as_echo "$as_me: error: cannot compute sizeof (long)
22061 See \`config.log' for more details." >&2;}
22062 { (exit 77); exit 77; }; }; }
22064 ac_cv_sizeof_long=0
22068 cat >conftest.$ac_ext <<_ACEOF
22071 cat confdefs.h >>conftest.$ac_ext
22072 cat >>conftest.$ac_ext <<_ACEOF
22073 /* end confdefs.h. */
22074 $ac_includes_default
22075 static long int longval () { return (long int) (sizeof (long)); }
22076 static unsigned long int ulongval () { return (long int) (sizeof (long)); }
22077 @%:@include <stdio.h>
22078 @%:@include <stdlib.h>
22083 FILE *f = fopen ("conftest.val", "w");
22086 if (((long int) (sizeof (long))) < 0)
22088 long int i = longval ();
22089 if (i != ((long int) (sizeof (long))))
22091 fprintf (f, "%ld", i);
22095 unsigned long int i = ulongval ();
22096 if (i != ((long int) (sizeof (long))))
22098 fprintf (f, "%lu", i);
22100 /* Do not output a trailing newline, as this causes \r\n confusion
22101 on some platforms. */
22102 return ferror (f) || fclose (f) != 0;
22108 rm -f conftest$ac_exeext
22109 if { (ac_try="$ac_link"
22110 case "(($ac_try" in
22111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22112 *) ac_try_echo=$ac_try;;
22114 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22115 $as_echo "$ac_try_echo") >&5
22116 (eval "$ac_link") 2>&5
22118 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22119 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22120 { (case "(($ac_try" in
22121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22122 *) ac_try_echo=$ac_try;;
22124 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22125 $as_echo "$ac_try_echo") >&5
22126 (eval "$ac_try") 2>&5
22128 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22129 (exit $ac_status); }; }; then
22130 ac_cv_sizeof_long=`cat conftest.val`
22132 $as_echo "$as_me: program exited with status $ac_status" >&5
22133 $as_echo "$as_me: failed program was:" >&5
22134 sed 's/^/| /' conftest.$ac_ext >&5
22136 ( exit $ac_status )
22137 if test "$ac_cv_type_long" = yes; then
22138 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
22139 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22140 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long)
22141 See \`config.log' for more details." >&5
22142 $as_echo "$as_me: error: cannot compute sizeof (long)
22143 See \`config.log' for more details." >&2;}
22144 { (exit 77); exit 77; }; }; }
22146 ac_cv_sizeof_long=0
22149 rm -rf conftest.dSYM
22150 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22154 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
22155 $as_echo "$ac_cv_sizeof_long" >&6; }
22159 cat >>confdefs.h <<_ACEOF
22160 @%:@define SIZEOF_LONG $ac_cv_sizeof_long
22164 # The cast to long int works around a bug in the HP C Compiler
22165 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22166 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22167 # This bug is HP SR number 8606223364.
22168 { $as_echo "$as_me:$LINENO: checking size of char *" >&5
22169 $as_echo_n "checking size of char *... " >&6; }
22170 if test "${ac_cv_sizeof_char_p+set}" = set; then
22171 $as_echo_n "(cached) " >&6
22173 if test "$cross_compiling" = yes; then
22174 # Depending upon the size, compute the lo and hi bounds.
22175 cat >conftest.$ac_ext <<_ACEOF
22178 cat confdefs.h >>conftest.$ac_ext
22179 cat >>conftest.$ac_ext <<_ACEOF
22180 /* end confdefs.h. */
22181 $ac_includes_default
22185 static int test_array @<:@1 - 2 * !(((long int) (sizeof (char *))) >= 0)@:>@;
22186 test_array @<:@0@:>@ = 0
22192 rm -f conftest.$ac_objext
22193 if { (ac_try="$ac_compile"
22194 case "(($ac_try" in
22195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22196 *) ac_try_echo=$ac_try;;
22198 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22199 $as_echo "$ac_try_echo") >&5
22200 (eval "$ac_compile") 2>conftest.er1
22202 grep -v '^ *+' conftest.er1 >conftest.err
22204 cat conftest.err >&5
22205 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22206 (exit $ac_status); } && {
22207 test -z "$ac_c_werror_flag" ||
22208 test ! -s conftest.err
22209 } && test -s conftest.$ac_objext; then
22212 cat >conftest.$ac_ext <<_ACEOF
22215 cat confdefs.h >>conftest.$ac_ext
22216 cat >>conftest.$ac_ext <<_ACEOF
22217 /* end confdefs.h. */
22218 $ac_includes_default
22222 static int test_array @<:@1 - 2 * !(((long int) (sizeof (char *))) <= $ac_mid)@:>@;
22223 test_array @<:@0@:>@ = 0
22229 rm -f conftest.$ac_objext
22230 if { (ac_try="$ac_compile"
22231 case "(($ac_try" in
22232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22233 *) ac_try_echo=$ac_try;;
22235 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22236 $as_echo "$ac_try_echo") >&5
22237 (eval "$ac_compile") 2>conftest.er1
22239 grep -v '^ *+' conftest.er1 >conftest.err
22241 cat conftest.err >&5
22242 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22243 (exit $ac_status); } && {
22244 test -z "$ac_c_werror_flag" ||
22245 test ! -s conftest.err
22246 } && test -s conftest.$ac_objext; then
22247 ac_hi=$ac_mid; break
22249 $as_echo "$as_me: failed program was:" >&5
22250 sed 's/^/| /' conftest.$ac_ext >&5
22252 ac_lo=`expr $ac_mid + 1`
22253 if test $ac_lo -le $ac_mid; then
22257 ac_mid=`expr 2 '*' $ac_mid + 1`
22260 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22263 $as_echo "$as_me: failed program was:" >&5
22264 sed 's/^/| /' conftest.$ac_ext >&5
22266 cat >conftest.$ac_ext <<_ACEOF
22269 cat confdefs.h >>conftest.$ac_ext
22270 cat >>conftest.$ac_ext <<_ACEOF
22271 /* end confdefs.h. */
22272 $ac_includes_default
22276 static int test_array @<:@1 - 2 * !(((long int) (sizeof (char *))) < 0)@:>@;
22277 test_array @<:@0@:>@ = 0
22283 rm -f conftest.$ac_objext
22284 if { (ac_try="$ac_compile"
22285 case "(($ac_try" in
22286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22287 *) ac_try_echo=$ac_try;;
22289 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22290 $as_echo "$ac_try_echo") >&5
22291 (eval "$ac_compile") 2>conftest.er1
22293 grep -v '^ *+' conftest.er1 >conftest.err
22295 cat conftest.err >&5
22296 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22297 (exit $ac_status); } && {
22298 test -z "$ac_c_werror_flag" ||
22299 test ! -s conftest.err
22300 } && test -s conftest.$ac_objext; then
22303 cat >conftest.$ac_ext <<_ACEOF
22306 cat confdefs.h >>conftest.$ac_ext
22307 cat >>conftest.$ac_ext <<_ACEOF
22308 /* end confdefs.h. */
22309 $ac_includes_default
22313 static int test_array @<:@1 - 2 * !(((long int) (sizeof (char *))) >= $ac_mid)@:>@;
22314 test_array @<:@0@:>@ = 0
22320 rm -f conftest.$ac_objext
22321 if { (ac_try="$ac_compile"
22322 case "(($ac_try" in
22323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22324 *) ac_try_echo=$ac_try;;
22326 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22327 $as_echo "$ac_try_echo") >&5
22328 (eval "$ac_compile") 2>conftest.er1
22330 grep -v '^ *+' conftest.er1 >conftest.err
22332 cat conftest.err >&5
22333 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22334 (exit $ac_status); } && {
22335 test -z "$ac_c_werror_flag" ||
22336 test ! -s conftest.err
22337 } && test -s conftest.$ac_objext; then
22338 ac_lo=$ac_mid; break
22340 $as_echo "$as_me: failed program was:" >&5
22341 sed 's/^/| /' conftest.$ac_ext >&5
22343 ac_hi=`expr '(' $ac_mid ')' - 1`
22344 if test $ac_mid -le $ac_hi; then
22348 ac_mid=`expr 2 '*' $ac_mid`
22351 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22354 $as_echo "$as_me: failed program was:" >&5
22355 sed 's/^/| /' conftest.$ac_ext >&5
22360 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22363 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22364 # Binary search between lo and hi bounds.
22365 while test "x$ac_lo" != "x$ac_hi"; do
22366 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22367 cat >conftest.$ac_ext <<_ACEOF
22370 cat confdefs.h >>conftest.$ac_ext
22371 cat >>conftest.$ac_ext <<_ACEOF
22372 /* end confdefs.h. */
22373 $ac_includes_default
22377 static int test_array @<:@1 - 2 * !(((long int) (sizeof (char *))) <= $ac_mid)@:>@;
22378 test_array @<:@0@:>@ = 0
22384 rm -f conftest.$ac_objext
22385 if { (ac_try="$ac_compile"
22386 case "(($ac_try" in
22387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22388 *) ac_try_echo=$ac_try;;
22390 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22391 $as_echo "$ac_try_echo") >&5
22392 (eval "$ac_compile") 2>conftest.er1
22394 grep -v '^ *+' conftest.er1 >conftest.err
22396 cat conftest.err >&5
22397 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22398 (exit $ac_status); } && {
22399 test -z "$ac_c_werror_flag" ||
22400 test ! -s conftest.err
22401 } && test -s conftest.$ac_objext; then
22404 $as_echo "$as_me: failed program was:" >&5
22405 sed 's/^/| /' conftest.$ac_ext >&5
22407 ac_lo=`expr '(' $ac_mid ')' + 1`
22410 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22413 ?*) ac_cv_sizeof_char_p=$ac_lo;;
22414 '') if test "$ac_cv_type_char_p" = yes; then
22415 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
22416 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22417 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (char *)
22418 See \`config.log' for more details." >&5
22419 $as_echo "$as_me: error: cannot compute sizeof (char *)
22420 See \`config.log' for more details." >&2;}
22421 { (exit 77); exit 77; }; }; }
22423 ac_cv_sizeof_char_p=0
22427 cat >conftest.$ac_ext <<_ACEOF
22430 cat confdefs.h >>conftest.$ac_ext
22431 cat >>conftest.$ac_ext <<_ACEOF
22432 /* end confdefs.h. */
22433 $ac_includes_default
22434 static long int longval () { return (long int) (sizeof (char *)); }
22435 static unsigned long int ulongval () { return (long int) (sizeof (char *)); }
22436 @%:@include <stdio.h>
22437 @%:@include <stdlib.h>
22442 FILE *f = fopen ("conftest.val", "w");
22445 if (((long int) (sizeof (char *))) < 0)
22447 long int i = longval ();
22448 if (i != ((long int) (sizeof (char *))))
22450 fprintf (f, "%ld", i);
22454 unsigned long int i = ulongval ();
22455 if (i != ((long int) (sizeof (char *))))
22457 fprintf (f, "%lu", i);
22459 /* Do not output a trailing newline, as this causes \r\n confusion
22460 on some platforms. */
22461 return ferror (f) || fclose (f) != 0;
22467 rm -f conftest$ac_exeext
22468 if { (ac_try="$ac_link"
22469 case "(($ac_try" in
22470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22471 *) ac_try_echo=$ac_try;;
22473 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22474 $as_echo "$ac_try_echo") >&5
22475 (eval "$ac_link") 2>&5
22477 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22478 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22479 { (case "(($ac_try" in
22480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22481 *) ac_try_echo=$ac_try;;
22483 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22484 $as_echo "$ac_try_echo") >&5
22485 (eval "$ac_try") 2>&5
22487 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22488 (exit $ac_status); }; }; then
22489 ac_cv_sizeof_char_p=`cat conftest.val`
22491 $as_echo "$as_me: program exited with status $ac_status" >&5
22492 $as_echo "$as_me: failed program was:" >&5
22493 sed 's/^/| /' conftest.$ac_ext >&5
22495 ( exit $ac_status )
22496 if test "$ac_cv_type_char_p" = yes; then
22497 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
22498 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22499 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (char *)
22500 See \`config.log' for more details." >&5
22501 $as_echo "$as_me: error: cannot compute sizeof (char *)
22502 See \`config.log' for more details." >&2;}
22503 { (exit 77); exit 77; }; }; }
22505 ac_cv_sizeof_char_p=0
22508 rm -rf conftest.dSYM
22509 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22513 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_char_p" >&5
22514 $as_echo "$ac_cv_sizeof_char_p" >&6; }
22518 cat >>confdefs.h <<_ACEOF
22519 @%:@define SIZEOF_CHAR_P $ac_cv_sizeof_char_p
22523 # The cast to long int works around a bug in the HP C Compiler
22524 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22525 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22526 # This bug is HP SR number 8606223364.
22527 { $as_echo "$as_me:$LINENO: checking size of double" >&5
22528 $as_echo_n "checking size of double... " >&6; }
22529 if test "${ac_cv_sizeof_double+set}" = set; then
22530 $as_echo_n "(cached) " >&6
22532 if test "$cross_compiling" = yes; then
22533 # Depending upon the size, compute the lo and hi bounds.
22534 cat >conftest.$ac_ext <<_ACEOF
22537 cat confdefs.h >>conftest.$ac_ext
22538 cat >>conftest.$ac_ext <<_ACEOF
22539 /* end confdefs.h. */
22540 $ac_includes_default
22544 static int test_array @<:@1 - 2 * !(((long int) (sizeof (double))) >= 0)@:>@;
22545 test_array @<:@0@:>@ = 0
22551 rm -f conftest.$ac_objext
22552 if { (ac_try="$ac_compile"
22553 case "(($ac_try" in
22554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22555 *) ac_try_echo=$ac_try;;
22557 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22558 $as_echo "$ac_try_echo") >&5
22559 (eval "$ac_compile") 2>conftest.er1
22561 grep -v '^ *+' conftest.er1 >conftest.err
22563 cat conftest.err >&5
22564 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22565 (exit $ac_status); } && {
22566 test -z "$ac_c_werror_flag" ||
22567 test ! -s conftest.err
22568 } && test -s conftest.$ac_objext; then
22571 cat >conftest.$ac_ext <<_ACEOF
22574 cat confdefs.h >>conftest.$ac_ext
22575 cat >>conftest.$ac_ext <<_ACEOF
22576 /* end confdefs.h. */
22577 $ac_includes_default
22581 static int test_array @<:@1 - 2 * !(((long int) (sizeof (double))) <= $ac_mid)@:>@;
22582 test_array @<:@0@:>@ = 0
22588 rm -f conftest.$ac_objext
22589 if { (ac_try="$ac_compile"
22590 case "(($ac_try" in
22591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22592 *) ac_try_echo=$ac_try;;
22594 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22595 $as_echo "$ac_try_echo") >&5
22596 (eval "$ac_compile") 2>conftest.er1
22598 grep -v '^ *+' conftest.er1 >conftest.err
22600 cat conftest.err >&5
22601 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22602 (exit $ac_status); } && {
22603 test -z "$ac_c_werror_flag" ||
22604 test ! -s conftest.err
22605 } && test -s conftest.$ac_objext; then
22606 ac_hi=$ac_mid; break
22608 $as_echo "$as_me: failed program was:" >&5
22609 sed 's/^/| /' conftest.$ac_ext >&5
22611 ac_lo=`expr $ac_mid + 1`
22612 if test $ac_lo -le $ac_mid; then
22616 ac_mid=`expr 2 '*' $ac_mid + 1`
22619 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22622 $as_echo "$as_me: failed program was:" >&5
22623 sed 's/^/| /' conftest.$ac_ext >&5
22625 cat >conftest.$ac_ext <<_ACEOF
22628 cat confdefs.h >>conftest.$ac_ext
22629 cat >>conftest.$ac_ext <<_ACEOF
22630 /* end confdefs.h. */
22631 $ac_includes_default
22635 static int test_array @<:@1 - 2 * !(((long int) (sizeof (double))) < 0)@:>@;
22636 test_array @<:@0@:>@ = 0
22642 rm -f conftest.$ac_objext
22643 if { (ac_try="$ac_compile"
22644 case "(($ac_try" in
22645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22646 *) ac_try_echo=$ac_try;;
22648 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22649 $as_echo "$ac_try_echo") >&5
22650 (eval "$ac_compile") 2>conftest.er1
22652 grep -v '^ *+' conftest.er1 >conftest.err
22654 cat conftest.err >&5
22655 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22656 (exit $ac_status); } && {
22657 test -z "$ac_c_werror_flag" ||
22658 test ! -s conftest.err
22659 } && test -s conftest.$ac_objext; then
22662 cat >conftest.$ac_ext <<_ACEOF
22665 cat confdefs.h >>conftest.$ac_ext
22666 cat >>conftest.$ac_ext <<_ACEOF
22667 /* end confdefs.h. */
22668 $ac_includes_default
22672 static int test_array @<:@1 - 2 * !(((long int) (sizeof (double))) >= $ac_mid)@:>@;
22673 test_array @<:@0@:>@ = 0
22679 rm -f conftest.$ac_objext
22680 if { (ac_try="$ac_compile"
22681 case "(($ac_try" in
22682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22683 *) ac_try_echo=$ac_try;;
22685 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22686 $as_echo "$ac_try_echo") >&5
22687 (eval "$ac_compile") 2>conftest.er1
22689 grep -v '^ *+' conftest.er1 >conftest.err
22691 cat conftest.err >&5
22692 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22693 (exit $ac_status); } && {
22694 test -z "$ac_c_werror_flag" ||
22695 test ! -s conftest.err
22696 } && test -s conftest.$ac_objext; then
22697 ac_lo=$ac_mid; break
22699 $as_echo "$as_me: failed program was:" >&5
22700 sed 's/^/| /' conftest.$ac_ext >&5
22702 ac_hi=`expr '(' $ac_mid ')' - 1`
22703 if test $ac_mid -le $ac_hi; then
22707 ac_mid=`expr 2 '*' $ac_mid`
22710 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22713 $as_echo "$as_me: failed program was:" >&5
22714 sed 's/^/| /' conftest.$ac_ext >&5
22719 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22723 # Binary search between lo and hi bounds.
22724 while test "x$ac_lo" != "x$ac_hi"; do
22725 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22726 cat >conftest.$ac_ext <<_ACEOF
22729 cat confdefs.h >>conftest.$ac_ext
22730 cat >>conftest.$ac_ext <<_ACEOF
22731 /* end confdefs.h. */
22732 $ac_includes_default
22736 static int test_array @<:@1 - 2 * !(((long int) (sizeof (double))) <= $ac_mid)@:>@;
22737 test_array @<:@0@:>@ = 0
22743 rm -f conftest.$ac_objext
22744 if { (ac_try="$ac_compile"
22745 case "(($ac_try" in
22746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22747 *) ac_try_echo=$ac_try;;
22749 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22750 $as_echo "$ac_try_echo") >&5
22751 (eval "$ac_compile") 2>conftest.er1
22753 grep -v '^ *+' conftest.er1 >conftest.err
22755 cat conftest.err >&5
22756 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22757 (exit $ac_status); } && {
22758 test -z "$ac_c_werror_flag" ||
22759 test ! -s conftest.err
22760 } && test -s conftest.$ac_objext; then
22763 $as_echo "$as_me: failed program was:" >&5
22764 sed 's/^/| /' conftest.$ac_ext >&5
22766 ac_lo=`expr '(' $ac_mid ')' + 1`
22769 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22772 ?*) ac_cv_sizeof_double=$ac_lo;;
22773 '') if test "$ac_cv_type_double" = yes; then
22774 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
22775 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22776 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (double)
22777 See \`config.log' for more details." >&5
22778 $as_echo "$as_me: error: cannot compute sizeof (double)
22779 See \`config.log' for more details." >&2;}
22780 { (exit 77); exit 77; }; }; }
22782 ac_cv_sizeof_double=0
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
22793 static long int longval () { return (long int) (sizeof (double)); }
22794 static unsigned long int ulongval () { return (long int) (sizeof (double)); }
22795 @%:@include <stdio.h>
22796 @%:@include <stdlib.h>
22801 FILE *f = fopen ("conftest.val", "w");
22804 if (((long int) (sizeof (double))) < 0)
22806 long int i = longval ();
22807 if (i != ((long int) (sizeof (double))))
22809 fprintf (f, "%ld", i);
22813 unsigned long int i = ulongval ();
22814 if (i != ((long int) (sizeof (double))))
22816 fprintf (f, "%lu", i);
22818 /* Do not output a trailing newline, as this causes \r\n confusion
22819 on some platforms. */
22820 return ferror (f) || fclose (f) != 0;
22826 rm -f conftest$ac_exeext
22827 if { (ac_try="$ac_link"
22828 case "(($ac_try" in
22829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22830 *) ac_try_echo=$ac_try;;
22832 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22833 $as_echo "$ac_try_echo") >&5
22834 (eval "$ac_link") 2>&5
22836 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22837 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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_try") 2>&5
22846 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22847 (exit $ac_status); }; }; then
22848 ac_cv_sizeof_double=`cat conftest.val`
22850 $as_echo "$as_me: program exited with status $ac_status" >&5
22851 $as_echo "$as_me: failed program was:" >&5
22852 sed 's/^/| /' conftest.$ac_ext >&5
22854 ( exit $ac_status )
22855 if test "$ac_cv_type_double" = yes; then
22856 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
22857 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22858 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (double)
22859 See \`config.log' for more details." >&5
22860 $as_echo "$as_me: error: cannot compute sizeof (double)
22861 See \`config.log' for more details." >&2;}
22862 { (exit 77); exit 77; }; }; }
22864 ac_cv_sizeof_double=0
22867 rm -rf conftest.dSYM
22868 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22872 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_double" >&5
22873 $as_echo "$ac_cv_sizeof_double" >&6; }
22877 cat >>confdefs.h <<_ACEOF
22878 @%:@define SIZEOF_DOUBLE $ac_cv_sizeof_double
22882 # The cast to long int works around a bug in the HP C Compiler
22883 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22884 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22885 # This bug is HP SR number 8606223364.
22886 { $as_echo "$as_me:$LINENO: checking size of long long" >&5
22887 $as_echo_n "checking size of long long... " >&6; }
22888 if test "${ac_cv_sizeof_long_long+set}" = set; then
22889 $as_echo_n "(cached) " >&6
22891 if test "$cross_compiling" = yes; then
22892 # Depending upon the size, compute the lo and hi bounds.
22893 cat >conftest.$ac_ext <<_ACEOF
22896 cat confdefs.h >>conftest.$ac_ext
22897 cat >>conftest.$ac_ext <<_ACEOF
22898 /* end confdefs.h. */
22899 $ac_includes_default
22903 static int test_array @<:@1 - 2 * !(((long int) (sizeof (long long))) >= 0)@:>@;
22904 test_array @<:@0@:>@ = 0
22910 rm -f conftest.$ac_objext
22911 if { (ac_try="$ac_compile"
22912 case "(($ac_try" in
22913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22914 *) ac_try_echo=$ac_try;;
22916 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22917 $as_echo "$ac_try_echo") >&5
22918 (eval "$ac_compile") 2>conftest.er1
22920 grep -v '^ *+' conftest.er1 >conftest.err
22922 cat conftest.err >&5
22923 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22924 (exit $ac_status); } && {
22925 test -z "$ac_c_werror_flag" ||
22926 test ! -s conftest.err
22927 } && test -s conftest.$ac_objext; then
22930 cat >conftest.$ac_ext <<_ACEOF
22933 cat confdefs.h >>conftest.$ac_ext
22934 cat >>conftest.$ac_ext <<_ACEOF
22935 /* end confdefs.h. */
22936 $ac_includes_default
22940 static int test_array @<:@1 - 2 * !(((long int) (sizeof (long long))) <= $ac_mid)@:>@;
22941 test_array @<:@0@:>@ = 0
22947 rm -f conftest.$ac_objext
22948 if { (ac_try="$ac_compile"
22949 case "(($ac_try" in
22950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22951 *) ac_try_echo=$ac_try;;
22953 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22954 $as_echo "$ac_try_echo") >&5
22955 (eval "$ac_compile") 2>conftest.er1
22957 grep -v '^ *+' conftest.er1 >conftest.err
22959 cat conftest.err >&5
22960 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22961 (exit $ac_status); } && {
22962 test -z "$ac_c_werror_flag" ||
22963 test ! -s conftest.err
22964 } && test -s conftest.$ac_objext; then
22965 ac_hi=$ac_mid; break
22967 $as_echo "$as_me: failed program was:" >&5
22968 sed 's/^/| /' conftest.$ac_ext >&5
22970 ac_lo=`expr $ac_mid + 1`
22971 if test $ac_lo -le $ac_mid; then
22975 ac_mid=`expr 2 '*' $ac_mid + 1`
22978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22981 $as_echo "$as_me: failed program was:" >&5
22982 sed 's/^/| /' conftest.$ac_ext >&5
22984 cat >conftest.$ac_ext <<_ACEOF
22987 cat confdefs.h >>conftest.$ac_ext
22988 cat >>conftest.$ac_ext <<_ACEOF
22989 /* end confdefs.h. */
22990 $ac_includes_default
22994 static int test_array @<:@1 - 2 * !(((long int) (sizeof (long long))) < 0)@:>@;
22995 test_array @<:@0@:>@ = 0
23001 rm -f conftest.$ac_objext
23002 if { (ac_try="$ac_compile"
23003 case "(($ac_try" in
23004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23005 *) ac_try_echo=$ac_try;;
23007 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23008 $as_echo "$ac_try_echo") >&5
23009 (eval "$ac_compile") 2>conftest.er1
23011 grep -v '^ *+' conftest.er1 >conftest.err
23013 cat conftest.err >&5
23014 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23015 (exit $ac_status); } && {
23016 test -z "$ac_c_werror_flag" ||
23017 test ! -s conftest.err
23018 } && test -s conftest.$ac_objext; then
23021 cat >conftest.$ac_ext <<_ACEOF
23024 cat confdefs.h >>conftest.$ac_ext
23025 cat >>conftest.$ac_ext <<_ACEOF
23026 /* end confdefs.h. */
23027 $ac_includes_default
23031 static int test_array @<:@1 - 2 * !(((long int) (sizeof (long long))) >= $ac_mid)@:>@;
23032 test_array @<:@0@:>@ = 0
23038 rm -f conftest.$ac_objext
23039 if { (ac_try="$ac_compile"
23040 case "(($ac_try" in
23041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23042 *) ac_try_echo=$ac_try;;
23044 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23045 $as_echo "$ac_try_echo") >&5
23046 (eval "$ac_compile") 2>conftest.er1
23048 grep -v '^ *+' conftest.er1 >conftest.err
23050 cat conftest.err >&5
23051 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23052 (exit $ac_status); } && {
23053 test -z "$ac_c_werror_flag" ||
23054 test ! -s conftest.err
23055 } && test -s conftest.$ac_objext; then
23056 ac_lo=$ac_mid; break
23058 $as_echo "$as_me: failed program was:" >&5
23059 sed 's/^/| /' conftest.$ac_ext >&5
23061 ac_hi=`expr '(' $ac_mid ')' - 1`
23062 if test $ac_mid -le $ac_hi; then
23066 ac_mid=`expr 2 '*' $ac_mid`
23069 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23072 $as_echo "$as_me: failed program was:" >&5
23073 sed 's/^/| /' conftest.$ac_ext >&5
23078 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23081 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23082 # Binary search between lo and hi bounds.
23083 while test "x$ac_lo" != "x$ac_hi"; do
23084 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23085 cat >conftest.$ac_ext <<_ACEOF
23088 cat confdefs.h >>conftest.$ac_ext
23089 cat >>conftest.$ac_ext <<_ACEOF
23090 /* end confdefs.h. */
23091 $ac_includes_default
23095 static int test_array @<:@1 - 2 * !(((long int) (sizeof (long long))) <= $ac_mid)@:>@;
23096 test_array @<:@0@:>@ = 0
23102 rm -f conftest.$ac_objext
23103 if { (ac_try="$ac_compile"
23104 case "(($ac_try" in
23105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23106 *) ac_try_echo=$ac_try;;
23108 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23109 $as_echo "$ac_try_echo") >&5
23110 (eval "$ac_compile") 2>conftest.er1
23112 grep -v '^ *+' conftest.er1 >conftest.err
23114 cat conftest.err >&5
23115 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23116 (exit $ac_status); } && {
23117 test -z "$ac_c_werror_flag" ||
23118 test ! -s conftest.err
23119 } && test -s conftest.$ac_objext; then
23122 $as_echo "$as_me: failed program was:" >&5
23123 sed 's/^/| /' conftest.$ac_ext >&5
23125 ac_lo=`expr '(' $ac_mid ')' + 1`
23128 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23131 ?*) ac_cv_sizeof_long_long=$ac_lo;;
23132 '') if test "$ac_cv_type_long_long" = yes; then
23133 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
23134 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23135 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
23136 See \`config.log' for more details." >&5
23137 $as_echo "$as_me: error: cannot compute sizeof (long long)
23138 See \`config.log' for more details." >&2;}
23139 { (exit 77); exit 77; }; }; }
23141 ac_cv_sizeof_long_long=0
23145 cat >conftest.$ac_ext <<_ACEOF
23148 cat confdefs.h >>conftest.$ac_ext
23149 cat >>conftest.$ac_ext <<_ACEOF
23150 /* end confdefs.h. */
23151 $ac_includes_default
23152 static long int longval () { return (long int) (sizeof (long long)); }
23153 static unsigned long int ulongval () { return (long int) (sizeof (long long)); }
23154 @%:@include <stdio.h>
23155 @%:@include <stdlib.h>
23160 FILE *f = fopen ("conftest.val", "w");
23163 if (((long int) (sizeof (long long))) < 0)
23165 long int i = longval ();
23166 if (i != ((long int) (sizeof (long long))))
23168 fprintf (f, "%ld", i);
23172 unsigned long int i = ulongval ();
23173 if (i != ((long int) (sizeof (long long))))
23175 fprintf (f, "%lu", i);
23177 /* Do not output a trailing newline, as this causes \r\n confusion
23178 on some platforms. */
23179 return ferror (f) || fclose (f) != 0;
23185 rm -f conftest$ac_exeext
23186 if { (ac_try="$ac_link"
23187 case "(($ac_try" in
23188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23189 *) ac_try_echo=$ac_try;;
23191 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23192 $as_echo "$ac_try_echo") >&5
23193 (eval "$ac_link") 2>&5
23195 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23196 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23197 { (case "(($ac_try" in
23198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23199 *) ac_try_echo=$ac_try;;
23201 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23202 $as_echo "$ac_try_echo") >&5
23203 (eval "$ac_try") 2>&5
23205 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23206 (exit $ac_status); }; }; then
23207 ac_cv_sizeof_long_long=`cat conftest.val`
23209 $as_echo "$as_me: program exited with status $ac_status" >&5
23210 $as_echo "$as_me: failed program was:" >&5
23211 sed 's/^/| /' conftest.$ac_ext >&5
23213 ( exit $ac_status )
23214 if test "$ac_cv_type_long_long" = yes; then
23215 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
23216 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23217 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
23218 See \`config.log' for more details." >&5
23219 $as_echo "$as_me: error: cannot compute sizeof (long long)
23220 See \`config.log' for more details." >&2;}
23221 { (exit 77); exit 77; }; }; }
23223 ac_cv_sizeof_long_long=0
23226 rm -rf conftest.dSYM
23227 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23231 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
23232 $as_echo "$ac_cv_sizeof_long_long" >&6; }
23236 cat >>confdefs.h <<_ACEOF
23237 @%:@define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
23242 { $as_echo "$as_me:$LINENO: checking for u_int" >&5
23243 $as_echo_n "checking for u_int... " >&6; }
23244 if test "${ac_cv_type_u_int+set}" = set; then
23245 $as_echo_n "(cached) " >&6
23247 ac_cv_type_u_int=no
23248 cat >conftest.$ac_ext <<_ACEOF
23251 cat confdefs.h >>conftest.$ac_ext
23252 cat >>conftest.$ac_ext <<_ACEOF
23253 /* end confdefs.h. */
23254 $ac_includes_default
23258 if (sizeof (u_int))
23264 rm -f conftest.$ac_objext
23265 if { (ac_try="$ac_compile"
23266 case "(($ac_try" in
23267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23268 *) ac_try_echo=$ac_try;;
23270 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23271 $as_echo "$ac_try_echo") >&5
23272 (eval "$ac_compile") 2>conftest.er1
23274 grep -v '^ *+' conftest.er1 >conftest.err
23276 cat conftest.err >&5
23277 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23278 (exit $ac_status); } && {
23279 test -z "$ac_c_werror_flag" ||
23280 test ! -s conftest.err
23281 } && test -s conftest.$ac_objext; then
23282 cat >conftest.$ac_ext <<_ACEOF
23285 cat confdefs.h >>conftest.$ac_ext
23286 cat >>conftest.$ac_ext <<_ACEOF
23287 /* end confdefs.h. */
23288 $ac_includes_default
23292 if (sizeof ((u_int)))
23298 rm -f conftest.$ac_objext
23299 if { (ac_try="$ac_compile"
23300 case "(($ac_try" in
23301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23302 *) ac_try_echo=$ac_try;;
23304 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23305 $as_echo "$ac_try_echo") >&5
23306 (eval "$ac_compile") 2>conftest.er1
23308 grep -v '^ *+' conftest.er1 >conftest.err
23310 cat conftest.err >&5
23311 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23312 (exit $ac_status); } && {
23313 test -z "$ac_c_werror_flag" ||
23314 test ! -s conftest.err
23315 } && test -s conftest.$ac_objext; then
23318 $as_echo "$as_me: failed program was:" >&5
23319 sed 's/^/| /' conftest.$ac_ext >&5
23321 ac_cv_type_u_int=yes
23324 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23326 $as_echo "$as_me: failed program was:" >&5
23327 sed 's/^/| /' conftest.$ac_ext >&5
23332 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23334 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_u_int" >&5
23335 $as_echo "$ac_cv_type_u_int" >&6; }
23336 if test "x$ac_cv_type_u_int" = x""yes; then
23340 cat >>confdefs.h <<_ACEOF
23341 @%:@define u_int unsigned int
23346 { $as_echo "$as_me:$LINENO: checking for u_long" >&5
23347 $as_echo_n "checking for u_long... " >&6; }
23348 if test "${ac_cv_type_u_long+set}" = set; then
23349 $as_echo_n "(cached) " >&6
23351 ac_cv_type_u_long=no
23352 cat >conftest.$ac_ext <<_ACEOF
23355 cat confdefs.h >>conftest.$ac_ext
23356 cat >>conftest.$ac_ext <<_ACEOF
23357 /* end confdefs.h. */
23358 $ac_includes_default
23362 if (sizeof (u_long))
23368 rm -f conftest.$ac_objext
23369 if { (ac_try="$ac_compile"
23370 case "(($ac_try" in
23371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23372 *) ac_try_echo=$ac_try;;
23374 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23375 $as_echo "$ac_try_echo") >&5
23376 (eval "$ac_compile") 2>conftest.er1
23378 grep -v '^ *+' conftest.er1 >conftest.err
23380 cat conftest.err >&5
23381 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23382 (exit $ac_status); } && {
23383 test -z "$ac_c_werror_flag" ||
23384 test ! -s conftest.err
23385 } && test -s conftest.$ac_objext; then
23386 cat >conftest.$ac_ext <<_ACEOF
23389 cat confdefs.h >>conftest.$ac_ext
23390 cat >>conftest.$ac_ext <<_ACEOF
23391 /* end confdefs.h. */
23392 $ac_includes_default
23396 if (sizeof ((u_long)))
23402 rm -f conftest.$ac_objext
23403 if { (ac_try="$ac_compile"
23404 case "(($ac_try" in
23405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23406 *) ac_try_echo=$ac_try;;
23408 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23409 $as_echo "$ac_try_echo") >&5
23410 (eval "$ac_compile") 2>conftest.er1
23412 grep -v '^ *+' conftest.er1 >conftest.err
23414 cat conftest.err >&5
23415 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23416 (exit $ac_status); } && {
23417 test -z "$ac_c_werror_flag" ||
23418 test ! -s conftest.err
23419 } && test -s conftest.$ac_objext; then
23422 $as_echo "$as_me: failed program was:" >&5
23423 sed 's/^/| /' conftest.$ac_ext >&5
23425 ac_cv_type_u_long=yes
23428 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23430 $as_echo "$as_me: failed program was:" >&5
23431 sed 's/^/| /' conftest.$ac_ext >&5
23436 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23438 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_u_long" >&5
23439 $as_echo "$ac_cv_type_u_long" >&6; }
23440 if test "x$ac_cv_type_u_long" = x""yes; then
23444 cat >>confdefs.h <<_ACEOF
23445 @%:@define u_long unsigned long
23452 if test "$ac_cv_sizeof_short" = 2; then
23453 { $as_echo "$as_me:$LINENO: checking for bits16_t" >&5
23454 $as_echo_n "checking for bits16_t... " >&6; }
23455 if test "${ac_cv_type_bits16_t+set}" = set; then
23456 $as_echo_n "(cached) " >&6
23458 ac_cv_type_bits16_t=no
23459 cat >conftest.$ac_ext <<_ACEOF
23462 cat confdefs.h >>conftest.$ac_ext
23463 cat >>conftest.$ac_ext <<_ACEOF
23464 /* end confdefs.h. */
23465 $ac_includes_default
23469 if (sizeof (bits16_t))
23475 rm -f conftest.$ac_objext
23476 if { (ac_try="$ac_compile"
23477 case "(($ac_try" in
23478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23479 *) ac_try_echo=$ac_try;;
23481 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23482 $as_echo "$ac_try_echo") >&5
23483 (eval "$ac_compile") 2>conftest.er1
23485 grep -v '^ *+' conftest.er1 >conftest.err
23487 cat conftest.err >&5
23488 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23489 (exit $ac_status); } && {
23490 test -z "$ac_c_werror_flag" ||
23491 test ! -s conftest.err
23492 } && test -s conftest.$ac_objext; then
23493 cat >conftest.$ac_ext <<_ACEOF
23496 cat confdefs.h >>conftest.$ac_ext
23497 cat >>conftest.$ac_ext <<_ACEOF
23498 /* end confdefs.h. */
23499 $ac_includes_default
23503 if (sizeof ((bits16_t)))
23509 rm -f conftest.$ac_objext
23510 if { (ac_try="$ac_compile"
23511 case "(($ac_try" in
23512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23513 *) ac_try_echo=$ac_try;;
23515 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23516 $as_echo "$ac_try_echo") >&5
23517 (eval "$ac_compile") 2>conftest.er1
23519 grep -v '^ *+' conftest.er1 >conftest.err
23521 cat conftest.err >&5
23522 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23523 (exit $ac_status); } && {
23524 test -z "$ac_c_werror_flag" ||
23525 test ! -s conftest.err
23526 } && test -s conftest.$ac_objext; then
23529 $as_echo "$as_me: failed program was:" >&5
23530 sed 's/^/| /' conftest.$ac_ext >&5
23532 ac_cv_type_bits16_t=yes
23535 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23537 $as_echo "$as_me: failed program was:" >&5
23538 sed 's/^/| /' conftest.$ac_ext >&5
23543 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23545 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_bits16_t" >&5
23546 $as_echo "$ac_cv_type_bits16_t" >&6; }
23547 if test "x$ac_cv_type_bits16_t" = x""yes; then
23551 cat >>confdefs.h <<_ACEOF
23552 @%:@define bits16_t short
23557 elif test "$ac_cv_sizeof_char" = 2; then
23558 { $as_echo "$as_me:$LINENO: checking for bits16_t" >&5
23559 $as_echo_n "checking for bits16_t... " >&6; }
23560 if test "${ac_cv_type_bits16_t+set}" = set; then
23561 $as_echo_n "(cached) " >&6
23563 ac_cv_type_bits16_t=no
23564 cat >conftest.$ac_ext <<_ACEOF
23567 cat confdefs.h >>conftest.$ac_ext
23568 cat >>conftest.$ac_ext <<_ACEOF
23569 /* end confdefs.h. */
23570 $ac_includes_default
23574 if (sizeof (bits16_t))
23580 rm -f conftest.$ac_objext
23581 if { (ac_try="$ac_compile"
23582 case "(($ac_try" in
23583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23584 *) ac_try_echo=$ac_try;;
23586 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23587 $as_echo "$ac_try_echo") >&5
23588 (eval "$ac_compile") 2>conftest.er1
23590 grep -v '^ *+' conftest.er1 >conftest.err
23592 cat conftest.err >&5
23593 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23594 (exit $ac_status); } && {
23595 test -z "$ac_c_werror_flag" ||
23596 test ! -s conftest.err
23597 } && test -s conftest.$ac_objext; then
23598 cat >conftest.$ac_ext <<_ACEOF
23601 cat confdefs.h >>conftest.$ac_ext
23602 cat >>conftest.$ac_ext <<_ACEOF
23603 /* end confdefs.h. */
23604 $ac_includes_default
23608 if (sizeof ((bits16_t)))
23614 rm -f conftest.$ac_objext
23615 if { (ac_try="$ac_compile"
23616 case "(($ac_try" in
23617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23618 *) ac_try_echo=$ac_try;;
23620 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23621 $as_echo "$ac_try_echo") >&5
23622 (eval "$ac_compile") 2>conftest.er1
23624 grep -v '^ *+' conftest.er1 >conftest.err
23626 cat conftest.err >&5
23627 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23628 (exit $ac_status); } && {
23629 test -z "$ac_c_werror_flag" ||
23630 test ! -s conftest.err
23631 } && test -s conftest.$ac_objext; then
23634 $as_echo "$as_me: failed program was:" >&5
23635 sed 's/^/| /' conftest.$ac_ext >&5
23637 ac_cv_type_bits16_t=yes
23640 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23642 $as_echo "$as_me: failed program was:" >&5
23643 sed 's/^/| /' conftest.$ac_ext >&5
23648 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23650 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_bits16_t" >&5
23651 $as_echo "$ac_cv_type_bits16_t" >&6; }
23652 if test "x$ac_cv_type_bits16_t" = x""yes; then
23656 cat >>confdefs.h <<_ACEOF
23657 @%:@define bits16_t char
23663 { $as_echo "$as_me:$LINENO: checking for bits16_t" >&5
23664 $as_echo_n "checking for bits16_t... " >&6; }
23665 if test "${ac_cv_type_bits16_t+set}" = set; then
23666 $as_echo_n "(cached) " >&6
23668 ac_cv_type_bits16_t=no
23669 cat >conftest.$ac_ext <<_ACEOF
23672 cat confdefs.h >>conftest.$ac_ext
23673 cat >>conftest.$ac_ext <<_ACEOF
23674 /* end confdefs.h. */
23675 $ac_includes_default
23679 if (sizeof (bits16_t))
23685 rm -f conftest.$ac_objext
23686 if { (ac_try="$ac_compile"
23687 case "(($ac_try" in
23688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23689 *) ac_try_echo=$ac_try;;
23691 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23692 $as_echo "$ac_try_echo") >&5
23693 (eval "$ac_compile") 2>conftest.er1
23695 grep -v '^ *+' conftest.er1 >conftest.err
23697 cat conftest.err >&5
23698 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23699 (exit $ac_status); } && {
23700 test -z "$ac_c_werror_flag" ||
23701 test ! -s conftest.err
23702 } && test -s conftest.$ac_objext; then
23703 cat >conftest.$ac_ext <<_ACEOF
23706 cat confdefs.h >>conftest.$ac_ext
23707 cat >>conftest.$ac_ext <<_ACEOF
23708 /* end confdefs.h. */
23709 $ac_includes_default
23713 if (sizeof ((bits16_t)))
23719 rm -f conftest.$ac_objext
23720 if { (ac_try="$ac_compile"
23721 case "(($ac_try" in
23722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23723 *) ac_try_echo=$ac_try;;
23725 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23726 $as_echo "$ac_try_echo") >&5
23727 (eval "$ac_compile") 2>conftest.er1
23729 grep -v '^ *+' conftest.er1 >conftest.err
23731 cat conftest.err >&5
23732 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23733 (exit $ac_status); } && {
23734 test -z "$ac_c_werror_flag" ||
23735 test ! -s conftest.err
23736 } && test -s conftest.$ac_objext; then
23739 $as_echo "$as_me: failed program was:" >&5
23740 sed 's/^/| /' conftest.$ac_ext >&5
23742 ac_cv_type_bits16_t=yes
23745 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23747 $as_echo "$as_me: failed program was:" >&5
23748 sed 's/^/| /' conftest.$ac_ext >&5
23753 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23755 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_bits16_t" >&5
23756 $as_echo "$ac_cv_type_bits16_t" >&6; }
23757 if test "x$ac_cv_type_bits16_t" = x""yes; then
23761 cat >>confdefs.h <<_ACEOF
23762 @%:@define bits16_t short
23770 if test "$ac_cv_sizeof_short" = 2; then
23771 { $as_echo "$as_me:$LINENO: checking for u_bits16_t" >&5
23772 $as_echo_n "checking for u_bits16_t... " >&6; }
23773 if test "${ac_cv_type_u_bits16_t+set}" = set; then
23774 $as_echo_n "(cached) " >&6
23776 ac_cv_type_u_bits16_t=no
23777 cat >conftest.$ac_ext <<_ACEOF
23780 cat confdefs.h >>conftest.$ac_ext
23781 cat >>conftest.$ac_ext <<_ACEOF
23782 /* end confdefs.h. */
23783 $ac_includes_default
23787 if (sizeof (u_bits16_t))
23793 rm -f conftest.$ac_objext
23794 if { (ac_try="$ac_compile"
23795 case "(($ac_try" in
23796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23797 *) ac_try_echo=$ac_try;;
23799 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23800 $as_echo "$ac_try_echo") >&5
23801 (eval "$ac_compile") 2>conftest.er1
23803 grep -v '^ *+' conftest.er1 >conftest.err
23805 cat conftest.err >&5
23806 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23807 (exit $ac_status); } && {
23808 test -z "$ac_c_werror_flag" ||
23809 test ! -s conftest.err
23810 } && test -s conftest.$ac_objext; then
23811 cat >conftest.$ac_ext <<_ACEOF
23814 cat confdefs.h >>conftest.$ac_ext
23815 cat >>conftest.$ac_ext <<_ACEOF
23816 /* end confdefs.h. */
23817 $ac_includes_default
23821 if (sizeof ((u_bits16_t)))
23827 rm -f conftest.$ac_objext
23828 if { (ac_try="$ac_compile"
23829 case "(($ac_try" in
23830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23831 *) ac_try_echo=$ac_try;;
23833 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23834 $as_echo "$ac_try_echo") >&5
23835 (eval "$ac_compile") 2>conftest.er1
23837 grep -v '^ *+' conftest.er1 >conftest.err
23839 cat conftest.err >&5
23840 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23841 (exit $ac_status); } && {
23842 test -z "$ac_c_werror_flag" ||
23843 test ! -s conftest.err
23844 } && test -s conftest.$ac_objext; then
23847 $as_echo "$as_me: failed program was:" >&5
23848 sed 's/^/| /' conftest.$ac_ext >&5
23850 ac_cv_type_u_bits16_t=yes
23853 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23855 $as_echo "$as_me: failed program was:" >&5
23856 sed 's/^/| /' conftest.$ac_ext >&5
23861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23863 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_u_bits16_t" >&5
23864 $as_echo "$ac_cv_type_u_bits16_t" >&6; }
23865 if test "x$ac_cv_type_u_bits16_t" = x""yes; then
23869 cat >>confdefs.h <<_ACEOF
23870 @%:@define u_bits16_t unsigned short
23875 elif test "$ac_cv_sizeof_char" = 2; then
23876 { $as_echo "$as_me:$LINENO: checking for u_bits16_t" >&5
23877 $as_echo_n "checking for u_bits16_t... " >&6; }
23878 if test "${ac_cv_type_u_bits16_t+set}" = set; then
23879 $as_echo_n "(cached) " >&6
23881 ac_cv_type_u_bits16_t=no
23882 cat >conftest.$ac_ext <<_ACEOF
23885 cat confdefs.h >>conftest.$ac_ext
23886 cat >>conftest.$ac_ext <<_ACEOF
23887 /* end confdefs.h. */
23888 $ac_includes_default
23892 if (sizeof (u_bits16_t))
23898 rm -f conftest.$ac_objext
23899 if { (ac_try="$ac_compile"
23900 case "(($ac_try" in
23901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23902 *) ac_try_echo=$ac_try;;
23904 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23905 $as_echo "$ac_try_echo") >&5
23906 (eval "$ac_compile") 2>conftest.er1
23908 grep -v '^ *+' conftest.er1 >conftest.err
23910 cat conftest.err >&5
23911 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23912 (exit $ac_status); } && {
23913 test -z "$ac_c_werror_flag" ||
23914 test ! -s conftest.err
23915 } && test -s conftest.$ac_objext; then
23916 cat >conftest.$ac_ext <<_ACEOF
23919 cat confdefs.h >>conftest.$ac_ext
23920 cat >>conftest.$ac_ext <<_ACEOF
23921 /* end confdefs.h. */
23922 $ac_includes_default
23926 if (sizeof ((u_bits16_t)))
23932 rm -f conftest.$ac_objext
23933 if { (ac_try="$ac_compile"
23934 case "(($ac_try" in
23935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23936 *) ac_try_echo=$ac_try;;
23938 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23939 $as_echo "$ac_try_echo") >&5
23940 (eval "$ac_compile") 2>conftest.er1
23942 grep -v '^ *+' conftest.er1 >conftest.err
23944 cat conftest.err >&5
23945 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23946 (exit $ac_status); } && {
23947 test -z "$ac_c_werror_flag" ||
23948 test ! -s conftest.err
23949 } && test -s conftest.$ac_objext; then
23952 $as_echo "$as_me: failed program was:" >&5
23953 sed 's/^/| /' conftest.$ac_ext >&5
23955 ac_cv_type_u_bits16_t=yes
23958 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23960 $as_echo "$as_me: failed program was:" >&5
23961 sed 's/^/| /' conftest.$ac_ext >&5
23966 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23968 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_u_bits16_t" >&5
23969 $as_echo "$ac_cv_type_u_bits16_t" >&6; }
23970 if test "x$ac_cv_type_u_bits16_t" = x""yes; then
23974 cat >>confdefs.h <<_ACEOF
23975 @%:@define u_bits16_t unsigned char
23981 { $as_echo "$as_me:$LINENO: checking for u_bits16_t" >&5
23982 $as_echo_n "checking for u_bits16_t... " >&6; }
23983 if test "${ac_cv_type_u_bits16_t+set}" = set; then
23984 $as_echo_n "(cached) " >&6
23986 ac_cv_type_u_bits16_t=no
23987 cat >conftest.$ac_ext <<_ACEOF
23990 cat confdefs.h >>conftest.$ac_ext
23991 cat >>conftest.$ac_ext <<_ACEOF
23992 /* end confdefs.h. */
23993 $ac_includes_default
23997 if (sizeof (u_bits16_t))
24003 rm -f conftest.$ac_objext
24004 if { (ac_try="$ac_compile"
24005 case "(($ac_try" in
24006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24007 *) ac_try_echo=$ac_try;;
24009 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24010 $as_echo "$ac_try_echo") >&5
24011 (eval "$ac_compile") 2>conftest.er1
24013 grep -v '^ *+' conftest.er1 >conftest.err
24015 cat conftest.err >&5
24016 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24017 (exit $ac_status); } && {
24018 test -z "$ac_c_werror_flag" ||
24019 test ! -s conftest.err
24020 } && test -s conftest.$ac_objext; then
24021 cat >conftest.$ac_ext <<_ACEOF
24024 cat confdefs.h >>conftest.$ac_ext
24025 cat >>conftest.$ac_ext <<_ACEOF
24026 /* end confdefs.h. */
24027 $ac_includes_default
24031 if (sizeof ((u_bits16_t)))
24037 rm -f conftest.$ac_objext
24038 if { (ac_try="$ac_compile"
24039 case "(($ac_try" in
24040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24041 *) ac_try_echo=$ac_try;;
24043 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24044 $as_echo "$ac_try_echo") >&5
24045 (eval "$ac_compile") 2>conftest.er1
24047 grep -v '^ *+' conftest.er1 >conftest.err
24049 cat conftest.err >&5
24050 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24051 (exit $ac_status); } && {
24052 test -z "$ac_c_werror_flag" ||
24053 test ! -s conftest.err
24054 } && test -s conftest.$ac_objext; then
24057 $as_echo "$as_me: failed program was:" >&5
24058 sed 's/^/| /' conftest.$ac_ext >&5
24060 ac_cv_type_u_bits16_t=yes
24063 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24065 $as_echo "$as_me: failed program was:" >&5
24066 sed 's/^/| /' conftest.$ac_ext >&5
24071 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24073 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_u_bits16_t" >&5
24074 $as_echo "$ac_cv_type_u_bits16_t" >&6; }
24075 if test "x$ac_cv_type_u_bits16_t" = x""yes; then
24079 cat >>confdefs.h <<_ACEOF
24080 @%:@define u_bits16_t unsigned short
24088 if test "$ac_cv_sizeof_int" = 4; then
24089 { $as_echo "$as_me:$LINENO: checking for bits32_t" >&5
24090 $as_echo_n "checking for bits32_t... " >&6; }
24091 if test "${ac_cv_type_bits32_t+set}" = set; then
24092 $as_echo_n "(cached) " >&6
24094 ac_cv_type_bits32_t=no
24095 cat >conftest.$ac_ext <<_ACEOF
24098 cat confdefs.h >>conftest.$ac_ext
24099 cat >>conftest.$ac_ext <<_ACEOF
24100 /* end confdefs.h. */
24101 $ac_includes_default
24105 if (sizeof (bits32_t))
24111 rm -f conftest.$ac_objext
24112 if { (ac_try="$ac_compile"
24113 case "(($ac_try" in
24114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24115 *) ac_try_echo=$ac_try;;
24117 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24118 $as_echo "$ac_try_echo") >&5
24119 (eval "$ac_compile") 2>conftest.er1
24121 grep -v '^ *+' conftest.er1 >conftest.err
24123 cat conftest.err >&5
24124 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24125 (exit $ac_status); } && {
24126 test -z "$ac_c_werror_flag" ||
24127 test ! -s conftest.err
24128 } && test -s conftest.$ac_objext; then
24129 cat >conftest.$ac_ext <<_ACEOF
24132 cat confdefs.h >>conftest.$ac_ext
24133 cat >>conftest.$ac_ext <<_ACEOF
24134 /* end confdefs.h. */
24135 $ac_includes_default
24139 if (sizeof ((bits32_t)))
24145 rm -f conftest.$ac_objext
24146 if { (ac_try="$ac_compile"
24147 case "(($ac_try" in
24148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24149 *) ac_try_echo=$ac_try;;
24151 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24152 $as_echo "$ac_try_echo") >&5
24153 (eval "$ac_compile") 2>conftest.er1
24155 grep -v '^ *+' conftest.er1 >conftest.err
24157 cat conftest.err >&5
24158 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24159 (exit $ac_status); } && {
24160 test -z "$ac_c_werror_flag" ||
24161 test ! -s conftest.err
24162 } && test -s conftest.$ac_objext; then
24165 $as_echo "$as_me: failed program was:" >&5
24166 sed 's/^/| /' conftest.$ac_ext >&5
24168 ac_cv_type_bits32_t=yes
24171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24173 $as_echo "$as_me: failed program was:" >&5
24174 sed 's/^/| /' conftest.$ac_ext >&5
24179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24181 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_bits32_t" >&5
24182 $as_echo "$ac_cv_type_bits32_t" >&6; }
24183 if test "x$ac_cv_type_bits32_t" = x""yes; then
24187 cat >>confdefs.h <<_ACEOF
24188 @%:@define bits32_t int
24193 elif test "$ac_cv_sizeof_long" = 4; then
24194 { $as_echo "$as_me:$LINENO: checking for bits32_t" >&5
24195 $as_echo_n "checking for bits32_t... " >&6; }
24196 if test "${ac_cv_type_bits32_t+set}" = set; then
24197 $as_echo_n "(cached) " >&6
24199 ac_cv_type_bits32_t=no
24200 cat >conftest.$ac_ext <<_ACEOF
24203 cat confdefs.h >>conftest.$ac_ext
24204 cat >>conftest.$ac_ext <<_ACEOF
24205 /* end confdefs.h. */
24206 $ac_includes_default
24210 if (sizeof (bits32_t))
24216 rm -f conftest.$ac_objext
24217 if { (ac_try="$ac_compile"
24218 case "(($ac_try" in
24219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24220 *) ac_try_echo=$ac_try;;
24222 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24223 $as_echo "$ac_try_echo") >&5
24224 (eval "$ac_compile") 2>conftest.er1
24226 grep -v '^ *+' conftest.er1 >conftest.err
24228 cat conftest.err >&5
24229 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24230 (exit $ac_status); } && {
24231 test -z "$ac_c_werror_flag" ||
24232 test ! -s conftest.err
24233 } && test -s conftest.$ac_objext; then
24234 cat >conftest.$ac_ext <<_ACEOF
24237 cat confdefs.h >>conftest.$ac_ext
24238 cat >>conftest.$ac_ext <<_ACEOF
24239 /* end confdefs.h. */
24240 $ac_includes_default
24244 if (sizeof ((bits32_t)))
24250 rm -f conftest.$ac_objext
24251 if { (ac_try="$ac_compile"
24252 case "(($ac_try" in
24253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24254 *) ac_try_echo=$ac_try;;
24256 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24257 $as_echo "$ac_try_echo") >&5
24258 (eval "$ac_compile") 2>conftest.er1
24260 grep -v '^ *+' conftest.er1 >conftest.err
24262 cat conftest.err >&5
24263 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24264 (exit $ac_status); } && {
24265 test -z "$ac_c_werror_flag" ||
24266 test ! -s conftest.err
24267 } && test -s conftest.$ac_objext; then
24270 $as_echo "$as_me: failed program was:" >&5
24271 sed 's/^/| /' conftest.$ac_ext >&5
24273 ac_cv_type_bits32_t=yes
24276 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24278 $as_echo "$as_me: failed program was:" >&5
24279 sed 's/^/| /' conftest.$ac_ext >&5
24284 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24286 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_bits32_t" >&5
24287 $as_echo "$ac_cv_type_bits32_t" >&6; }
24288 if test "x$ac_cv_type_bits32_t" = x""yes; then
24292 cat >>confdefs.h <<_ACEOF
24293 @%:@define bits32_t long
24299 { $as_echo "$as_me:$LINENO: checking for bits32_t" >&5
24300 $as_echo_n "checking for bits32_t... " >&6; }
24301 if test "${ac_cv_type_bits32_t+set}" = set; then
24302 $as_echo_n "(cached) " >&6
24304 ac_cv_type_bits32_t=no
24305 cat >conftest.$ac_ext <<_ACEOF
24308 cat confdefs.h >>conftest.$ac_ext
24309 cat >>conftest.$ac_ext <<_ACEOF
24310 /* end confdefs.h. */
24311 $ac_includes_default
24315 if (sizeof (bits32_t))
24321 rm -f conftest.$ac_objext
24322 if { (ac_try="$ac_compile"
24323 case "(($ac_try" in
24324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24325 *) ac_try_echo=$ac_try;;
24327 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24328 $as_echo "$ac_try_echo") >&5
24329 (eval "$ac_compile") 2>conftest.er1
24331 grep -v '^ *+' conftest.er1 >conftest.err
24333 cat conftest.err >&5
24334 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24335 (exit $ac_status); } && {
24336 test -z "$ac_c_werror_flag" ||
24337 test ! -s conftest.err
24338 } && test -s conftest.$ac_objext; then
24339 cat >conftest.$ac_ext <<_ACEOF
24342 cat confdefs.h >>conftest.$ac_ext
24343 cat >>conftest.$ac_ext <<_ACEOF
24344 /* end confdefs.h. */
24345 $ac_includes_default
24349 if (sizeof ((bits32_t)))
24355 rm -f conftest.$ac_objext
24356 if { (ac_try="$ac_compile"
24357 case "(($ac_try" in
24358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24359 *) ac_try_echo=$ac_try;;
24361 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24362 $as_echo "$ac_try_echo") >&5
24363 (eval "$ac_compile") 2>conftest.er1
24365 grep -v '^ *+' conftest.er1 >conftest.err
24367 cat conftest.err >&5
24368 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24369 (exit $ac_status); } && {
24370 test -z "$ac_c_werror_flag" ||
24371 test ! -s conftest.err
24372 } && test -s conftest.$ac_objext; then
24375 $as_echo "$as_me: failed program was:" >&5
24376 sed 's/^/| /' conftest.$ac_ext >&5
24378 ac_cv_type_bits32_t=yes
24381 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24383 $as_echo "$as_me: failed program was:" >&5
24384 sed 's/^/| /' conftest.$ac_ext >&5
24389 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24391 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_bits32_t" >&5
24392 $as_echo "$ac_cv_type_bits32_t" >&6; }
24393 if test "x$ac_cv_type_bits32_t" = x""yes; then
24397 cat >>confdefs.h <<_ACEOF
24398 @%:@define bits32_t int
24406 if test "$ac_cv_sizeof_int" = 4; then
24407 { $as_echo "$as_me:$LINENO: checking for u_bits32_t" >&5
24408 $as_echo_n "checking for u_bits32_t... " >&6; }
24409 if test "${ac_cv_type_u_bits32_t+set}" = set; then
24410 $as_echo_n "(cached) " >&6
24412 ac_cv_type_u_bits32_t=no
24413 cat >conftest.$ac_ext <<_ACEOF
24416 cat confdefs.h >>conftest.$ac_ext
24417 cat >>conftest.$ac_ext <<_ACEOF
24418 /* end confdefs.h. */
24419 $ac_includes_default
24423 if (sizeof (u_bits32_t))
24429 rm -f conftest.$ac_objext
24430 if { (ac_try="$ac_compile"
24431 case "(($ac_try" in
24432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24433 *) ac_try_echo=$ac_try;;
24435 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24436 $as_echo "$ac_try_echo") >&5
24437 (eval "$ac_compile") 2>conftest.er1
24439 grep -v '^ *+' conftest.er1 >conftest.err
24441 cat conftest.err >&5
24442 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24443 (exit $ac_status); } && {
24444 test -z "$ac_c_werror_flag" ||
24445 test ! -s conftest.err
24446 } && test -s conftest.$ac_objext; then
24447 cat >conftest.$ac_ext <<_ACEOF
24450 cat confdefs.h >>conftest.$ac_ext
24451 cat >>conftest.$ac_ext <<_ACEOF
24452 /* end confdefs.h. */
24453 $ac_includes_default
24457 if (sizeof ((u_bits32_t)))
24463 rm -f conftest.$ac_objext
24464 if { (ac_try="$ac_compile"
24465 case "(($ac_try" in
24466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24467 *) ac_try_echo=$ac_try;;
24469 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24470 $as_echo "$ac_try_echo") >&5
24471 (eval "$ac_compile") 2>conftest.er1
24473 grep -v '^ *+' conftest.er1 >conftest.err
24475 cat conftest.err >&5
24476 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24477 (exit $ac_status); } && {
24478 test -z "$ac_c_werror_flag" ||
24479 test ! -s conftest.err
24480 } && test -s conftest.$ac_objext; then
24483 $as_echo "$as_me: failed program was:" >&5
24484 sed 's/^/| /' conftest.$ac_ext >&5
24486 ac_cv_type_u_bits32_t=yes
24489 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24491 $as_echo "$as_me: failed program was:" >&5
24492 sed 's/^/| /' conftest.$ac_ext >&5
24497 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24499 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_u_bits32_t" >&5
24500 $as_echo "$ac_cv_type_u_bits32_t" >&6; }
24501 if test "x$ac_cv_type_u_bits32_t" = x""yes; then
24505 cat >>confdefs.h <<_ACEOF
24506 @%:@define u_bits32_t unsigned int
24511 elif test "$ac_cv_sizeof_long" = 4; then
24512 { $as_echo "$as_me:$LINENO: checking for u_bits32_t" >&5
24513 $as_echo_n "checking for u_bits32_t... " >&6; }
24514 if test "${ac_cv_type_u_bits32_t+set}" = set; then
24515 $as_echo_n "(cached) " >&6
24517 ac_cv_type_u_bits32_t=no
24518 cat >conftest.$ac_ext <<_ACEOF
24521 cat confdefs.h >>conftest.$ac_ext
24522 cat >>conftest.$ac_ext <<_ACEOF
24523 /* end confdefs.h. */
24524 $ac_includes_default
24528 if (sizeof (u_bits32_t))
24534 rm -f conftest.$ac_objext
24535 if { (ac_try="$ac_compile"
24536 case "(($ac_try" in
24537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24538 *) ac_try_echo=$ac_try;;
24540 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24541 $as_echo "$ac_try_echo") >&5
24542 (eval "$ac_compile") 2>conftest.er1
24544 grep -v '^ *+' conftest.er1 >conftest.err
24546 cat conftest.err >&5
24547 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24548 (exit $ac_status); } && {
24549 test -z "$ac_c_werror_flag" ||
24550 test ! -s conftest.err
24551 } && test -s conftest.$ac_objext; then
24552 cat >conftest.$ac_ext <<_ACEOF
24555 cat confdefs.h >>conftest.$ac_ext
24556 cat >>conftest.$ac_ext <<_ACEOF
24557 /* end confdefs.h. */
24558 $ac_includes_default
24562 if (sizeof ((u_bits32_t)))
24568 rm -f conftest.$ac_objext
24569 if { (ac_try="$ac_compile"
24570 case "(($ac_try" in
24571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24572 *) ac_try_echo=$ac_try;;
24574 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24575 $as_echo "$ac_try_echo") >&5
24576 (eval "$ac_compile") 2>conftest.er1
24578 grep -v '^ *+' conftest.er1 >conftest.err
24580 cat conftest.err >&5
24581 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24582 (exit $ac_status); } && {
24583 test -z "$ac_c_werror_flag" ||
24584 test ! -s conftest.err
24585 } && test -s conftest.$ac_objext; then
24588 $as_echo "$as_me: failed program was:" >&5
24589 sed 's/^/| /' conftest.$ac_ext >&5
24591 ac_cv_type_u_bits32_t=yes
24594 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24596 $as_echo "$as_me: failed program was:" >&5
24597 sed 's/^/| /' conftest.$ac_ext >&5
24602 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24604 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_u_bits32_t" >&5
24605 $as_echo "$ac_cv_type_u_bits32_t" >&6; }
24606 if test "x$ac_cv_type_u_bits32_t" = x""yes; then
24610 cat >>confdefs.h <<_ACEOF
24611 @%:@define u_bits32_t unsigned long
24617 { $as_echo "$as_me:$LINENO: checking for u_bits32_t" >&5
24618 $as_echo_n "checking for u_bits32_t... " >&6; }
24619 if test "${ac_cv_type_u_bits32_t+set}" = set; then
24620 $as_echo_n "(cached) " >&6
24622 ac_cv_type_u_bits32_t=no
24623 cat >conftest.$ac_ext <<_ACEOF
24626 cat confdefs.h >>conftest.$ac_ext
24627 cat >>conftest.$ac_ext <<_ACEOF
24628 /* end confdefs.h. */
24629 $ac_includes_default
24633 if (sizeof (u_bits32_t))
24639 rm -f conftest.$ac_objext
24640 if { (ac_try="$ac_compile"
24641 case "(($ac_try" in
24642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24643 *) ac_try_echo=$ac_try;;
24645 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24646 $as_echo "$ac_try_echo") >&5
24647 (eval "$ac_compile") 2>conftest.er1
24649 grep -v '^ *+' conftest.er1 >conftest.err
24651 cat conftest.err >&5
24652 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24653 (exit $ac_status); } && {
24654 test -z "$ac_c_werror_flag" ||
24655 test ! -s conftest.err
24656 } && test -s conftest.$ac_objext; then
24657 cat >conftest.$ac_ext <<_ACEOF
24660 cat confdefs.h >>conftest.$ac_ext
24661 cat >>conftest.$ac_ext <<_ACEOF
24662 /* end confdefs.h. */
24663 $ac_includes_default
24667 if (sizeof ((u_bits32_t)))
24673 rm -f conftest.$ac_objext
24674 if { (ac_try="$ac_compile"
24675 case "(($ac_try" in
24676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24677 *) ac_try_echo=$ac_try;;
24679 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24680 $as_echo "$ac_try_echo") >&5
24681 (eval "$ac_compile") 2>conftest.er1
24683 grep -v '^ *+' conftest.er1 >conftest.err
24685 cat conftest.err >&5
24686 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24687 (exit $ac_status); } && {
24688 test -z "$ac_c_werror_flag" ||
24689 test ! -s conftest.err
24690 } && test -s conftest.$ac_objext; then
24693 $as_echo "$as_me: failed program was:" >&5
24694 sed 's/^/| /' conftest.$ac_ext >&5
24696 ac_cv_type_u_bits32_t=yes
24699 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24701 $as_echo "$as_me: failed program was:" >&5
24702 sed 's/^/| /' conftest.$ac_ext >&5
24707 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24709 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_u_bits32_t" >&5
24710 $as_echo "$ac_cv_type_u_bits32_t" >&6; }
24711 if test "x$ac_cv_type_u_bits32_t" = x""yes; then
24715 cat >>confdefs.h <<_ACEOF
24716 @%:@define u_bits32_t unsigned int
24724 if test "$ac_cv_sizeof_char_p" = 8; then
24725 { $as_echo "$as_me:$LINENO: checking for bits64_t" >&5
24726 $as_echo_n "checking for bits64_t... " >&6; }
24727 if test "${ac_cv_type_bits64_t+set}" = set; then
24728 $as_echo_n "(cached) " >&6
24730 ac_cv_type_bits64_t=no
24731 cat >conftest.$ac_ext <<_ACEOF
24734 cat confdefs.h >>conftest.$ac_ext
24735 cat >>conftest.$ac_ext <<_ACEOF
24736 /* end confdefs.h. */
24737 $ac_includes_default
24741 if (sizeof (bits64_t))
24747 rm -f conftest.$ac_objext
24748 if { (ac_try="$ac_compile"
24749 case "(($ac_try" in
24750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24751 *) ac_try_echo=$ac_try;;
24753 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24754 $as_echo "$ac_try_echo") >&5
24755 (eval "$ac_compile") 2>conftest.er1
24757 grep -v '^ *+' conftest.er1 >conftest.err
24759 cat conftest.err >&5
24760 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24761 (exit $ac_status); } && {
24762 test -z "$ac_c_werror_flag" ||
24763 test ! -s conftest.err
24764 } && test -s conftest.$ac_objext; then
24765 cat >conftest.$ac_ext <<_ACEOF
24768 cat confdefs.h >>conftest.$ac_ext
24769 cat >>conftest.$ac_ext <<_ACEOF
24770 /* end confdefs.h. */
24771 $ac_includes_default
24775 if (sizeof ((bits64_t)))
24781 rm -f conftest.$ac_objext
24782 if { (ac_try="$ac_compile"
24783 case "(($ac_try" in
24784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24785 *) ac_try_echo=$ac_try;;
24787 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24788 $as_echo "$ac_try_echo") >&5
24789 (eval "$ac_compile") 2>conftest.er1
24791 grep -v '^ *+' conftest.er1 >conftest.err
24793 cat conftest.err >&5
24794 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24795 (exit $ac_status); } && {
24796 test -z "$ac_c_werror_flag" ||
24797 test ! -s conftest.err
24798 } && test -s conftest.$ac_objext; then
24801 $as_echo "$as_me: failed program was:" >&5
24802 sed 's/^/| /' conftest.$ac_ext >&5
24804 ac_cv_type_bits64_t=yes
24807 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24809 $as_echo "$as_me: failed program was:" >&5
24810 sed 's/^/| /' conftest.$ac_ext >&5
24815 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24817 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_bits64_t" >&5
24818 $as_echo "$ac_cv_type_bits64_t" >&6; }
24819 if test "x$ac_cv_type_bits64_t" = x""yes; then
24823 cat >>confdefs.h <<_ACEOF
24824 @%:@define bits64_t char *
24829 elif test "$ac_cv_sizeof_double" = 8; then
24830 { $as_echo "$as_me:$LINENO: checking for bits64_t" >&5
24831 $as_echo_n "checking for bits64_t... " >&6; }
24832 if test "${ac_cv_type_bits64_t+set}" = set; then
24833 $as_echo_n "(cached) " >&6
24835 ac_cv_type_bits64_t=no
24836 cat >conftest.$ac_ext <<_ACEOF
24839 cat confdefs.h >>conftest.$ac_ext
24840 cat >>conftest.$ac_ext <<_ACEOF
24841 /* end confdefs.h. */
24842 $ac_includes_default
24846 if (sizeof (bits64_t))
24852 rm -f conftest.$ac_objext
24853 if { (ac_try="$ac_compile"
24854 case "(($ac_try" in
24855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24856 *) ac_try_echo=$ac_try;;
24858 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24859 $as_echo "$ac_try_echo") >&5
24860 (eval "$ac_compile") 2>conftest.er1
24862 grep -v '^ *+' conftest.er1 >conftest.err
24864 cat conftest.err >&5
24865 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24866 (exit $ac_status); } && {
24867 test -z "$ac_c_werror_flag" ||
24868 test ! -s conftest.err
24869 } && test -s conftest.$ac_objext; then
24870 cat >conftest.$ac_ext <<_ACEOF
24873 cat confdefs.h >>conftest.$ac_ext
24874 cat >>conftest.$ac_ext <<_ACEOF
24875 /* end confdefs.h. */
24876 $ac_includes_default
24880 if (sizeof ((bits64_t)))
24886 rm -f conftest.$ac_objext
24887 if { (ac_try="$ac_compile"
24888 case "(($ac_try" in
24889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24890 *) ac_try_echo=$ac_try;;
24892 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24893 $as_echo "$ac_try_echo") >&5
24894 (eval "$ac_compile") 2>conftest.er1
24896 grep -v '^ *+' conftest.er1 >conftest.err
24898 cat conftest.err >&5
24899 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24900 (exit $ac_status); } && {
24901 test -z "$ac_c_werror_flag" ||
24902 test ! -s conftest.err
24903 } && test -s conftest.$ac_objext; then
24906 $as_echo "$as_me: failed program was:" >&5
24907 sed 's/^/| /' conftest.$ac_ext >&5
24909 ac_cv_type_bits64_t=yes
24912 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24914 $as_echo "$as_me: failed program was:" >&5
24915 sed 's/^/| /' conftest.$ac_ext >&5
24920 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24922 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_bits64_t" >&5
24923 $as_echo "$ac_cv_type_bits64_t" >&6; }
24924 if test "x$ac_cv_type_bits64_t" = x""yes; then
24928 cat >>confdefs.h <<_ACEOF
24929 @%:@define bits64_t double
24934 elif test -n "$ac_cv_type_long_long" && test "$ac_cv_sizeof_long_long" = 8; then
24935 { $as_echo "$as_me:$LINENO: checking for bits64_t" >&5
24936 $as_echo_n "checking for bits64_t... " >&6; }
24937 if test "${ac_cv_type_bits64_t+set}" = set; then
24938 $as_echo_n "(cached) " >&6
24940 ac_cv_type_bits64_t=no
24941 cat >conftest.$ac_ext <<_ACEOF
24944 cat confdefs.h >>conftest.$ac_ext
24945 cat >>conftest.$ac_ext <<_ACEOF
24946 /* end confdefs.h. */
24947 $ac_includes_default
24951 if (sizeof (bits64_t))
24957 rm -f conftest.$ac_objext
24958 if { (ac_try="$ac_compile"
24959 case "(($ac_try" in
24960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24961 *) ac_try_echo=$ac_try;;
24963 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24964 $as_echo "$ac_try_echo") >&5
24965 (eval "$ac_compile") 2>conftest.er1
24967 grep -v '^ *+' conftest.er1 >conftest.err
24969 cat conftest.err >&5
24970 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24971 (exit $ac_status); } && {
24972 test -z "$ac_c_werror_flag" ||
24973 test ! -s conftest.err
24974 } && test -s conftest.$ac_objext; then
24975 cat >conftest.$ac_ext <<_ACEOF
24978 cat confdefs.h >>conftest.$ac_ext
24979 cat >>conftest.$ac_ext <<_ACEOF
24980 /* end confdefs.h. */
24981 $ac_includes_default
24985 if (sizeof ((bits64_t)))
24991 rm -f conftest.$ac_objext
24992 if { (ac_try="$ac_compile"
24993 case "(($ac_try" in
24994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24995 *) ac_try_echo=$ac_try;;
24997 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24998 $as_echo "$ac_try_echo") >&5
24999 (eval "$ac_compile") 2>conftest.er1
25001 grep -v '^ *+' conftest.er1 >conftest.err
25003 cat conftest.err >&5
25004 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25005 (exit $ac_status); } && {
25006 test -z "$ac_c_werror_flag" ||
25007 test ! -s conftest.err
25008 } && test -s conftest.$ac_objext; then
25011 $as_echo "$as_me: failed program was:" >&5
25012 sed 's/^/| /' conftest.$ac_ext >&5
25014 ac_cv_type_bits64_t=yes
25017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25019 $as_echo "$as_me: failed program was:" >&5
25020 sed 's/^/| /' conftest.$ac_ext >&5
25025 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25027 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_bits64_t" >&5
25028 $as_echo "$ac_cv_type_bits64_t" >&6; }
25029 if test "x$ac_cv_type_bits64_t" = x""yes; then
25033 cat >>confdefs.h <<_ACEOF
25034 @%:@define bits64_t long long
25039 elif test "$ac_cv_sizeof_long" = 8; then
25040 { $as_echo "$as_me:$LINENO: checking for bits64_t" >&5
25041 $as_echo_n "checking for bits64_t... " >&6; }
25042 if test "${ac_cv_type_bits64_t+set}" = set; then
25043 $as_echo_n "(cached) " >&6
25045 ac_cv_type_bits64_t=no
25046 cat >conftest.$ac_ext <<_ACEOF
25049 cat confdefs.h >>conftest.$ac_ext
25050 cat >>conftest.$ac_ext <<_ACEOF
25051 /* end confdefs.h. */
25052 $ac_includes_default
25056 if (sizeof (bits64_t))
25062 rm -f conftest.$ac_objext
25063 if { (ac_try="$ac_compile"
25064 case "(($ac_try" in
25065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25066 *) ac_try_echo=$ac_try;;
25068 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25069 $as_echo "$ac_try_echo") >&5
25070 (eval "$ac_compile") 2>conftest.er1
25072 grep -v '^ *+' conftest.er1 >conftest.err
25074 cat conftest.err >&5
25075 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25076 (exit $ac_status); } && {
25077 test -z "$ac_c_werror_flag" ||
25078 test ! -s conftest.err
25079 } && test -s conftest.$ac_objext; then
25080 cat >conftest.$ac_ext <<_ACEOF
25083 cat confdefs.h >>conftest.$ac_ext
25084 cat >>conftest.$ac_ext <<_ACEOF
25085 /* end confdefs.h. */
25086 $ac_includes_default
25090 if (sizeof ((bits64_t)))
25096 rm -f conftest.$ac_objext
25097 if { (ac_try="$ac_compile"
25098 case "(($ac_try" in
25099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25100 *) ac_try_echo=$ac_try;;
25102 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25103 $as_echo "$ac_try_echo") >&5
25104 (eval "$ac_compile") 2>conftest.er1
25106 grep -v '^ *+' conftest.er1 >conftest.err
25108 cat conftest.err >&5
25109 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25110 (exit $ac_status); } && {
25111 test -z "$ac_c_werror_flag" ||
25112 test ! -s conftest.err
25113 } && test -s conftest.$ac_objext; then
25116 $as_echo "$as_me: failed program was:" >&5
25117 sed 's/^/| /' conftest.$ac_ext >&5
25119 ac_cv_type_bits64_t=yes
25122 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25124 $as_echo "$as_me: failed program was:" >&5
25125 sed 's/^/| /' conftest.$ac_ext >&5
25130 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25132 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_bits64_t" >&5
25133 $as_echo "$ac_cv_type_bits64_t" >&6; }
25134 if test "x$ac_cv_type_bits64_t" = x""yes; then
25138 cat >>confdefs.h <<_ACEOF
25139 @%:@define bits64_t long
25145 { $as_echo "$as_me:$LINENO: checking for bits64_t" >&5
25146 $as_echo_n "checking for bits64_t... " >&6; }
25147 if test "${ac_cv_type_bits64_t+set}" = set; then
25148 $as_echo_n "(cached) " >&6
25150 ac_cv_type_bits64_t=no
25151 cat >conftest.$ac_ext <<_ACEOF
25154 cat confdefs.h >>conftest.$ac_ext
25155 cat >>conftest.$ac_ext <<_ACEOF
25156 /* end confdefs.h. */
25157 $ac_includes_default
25161 if (sizeof (bits64_t))
25167 rm -f conftest.$ac_objext
25168 if { (ac_try="$ac_compile"
25169 case "(($ac_try" in
25170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25171 *) ac_try_echo=$ac_try;;
25173 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25174 $as_echo "$ac_try_echo") >&5
25175 (eval "$ac_compile") 2>conftest.er1
25177 grep -v '^ *+' conftest.er1 >conftest.err
25179 cat conftest.err >&5
25180 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25181 (exit $ac_status); } && {
25182 test -z "$ac_c_werror_flag" ||
25183 test ! -s conftest.err
25184 } && test -s conftest.$ac_objext; then
25185 cat >conftest.$ac_ext <<_ACEOF
25188 cat confdefs.h >>conftest.$ac_ext
25189 cat >>conftest.$ac_ext <<_ACEOF
25190 /* end confdefs.h. */
25191 $ac_includes_default
25195 if (sizeof ((bits64_t)))
25201 rm -f conftest.$ac_objext
25202 if { (ac_try="$ac_compile"
25203 case "(($ac_try" in
25204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25205 *) ac_try_echo=$ac_try;;
25207 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25208 $as_echo "$ac_try_echo") >&5
25209 (eval "$ac_compile") 2>conftest.er1
25211 grep -v '^ *+' conftest.er1 >conftest.err
25213 cat conftest.err >&5
25214 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25215 (exit $ac_status); } && {
25216 test -z "$ac_c_werror_flag" ||
25217 test ! -s conftest.err
25218 } && test -s conftest.$ac_objext; then
25221 $as_echo "$as_me: failed program was:" >&5
25222 sed 's/^/| /' conftest.$ac_ext >&5
25224 ac_cv_type_bits64_t=yes
25227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25229 $as_echo "$as_me: failed program was:" >&5
25230 sed 's/^/| /' conftest.$ac_ext >&5
25235 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25237 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_bits64_t" >&5
25238 $as_echo "$ac_cv_type_bits64_t" >&6; }
25239 if test "x$ac_cv_type_bits64_t" = x""yes; then
25243 cat >>confdefs.h <<_ACEOF
25244 @%:@define bits64_t double
25253 if test "$ac_cv_sizeof_int" = "$ac_cv_sizeof_char_p"; then
25254 { $as_echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
25255 $as_echo_n "checking for ptrdiff_t... " >&6; }
25256 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
25257 $as_echo_n "(cached) " >&6
25259 ac_cv_type_ptrdiff_t=no
25260 cat >conftest.$ac_ext <<_ACEOF
25263 cat confdefs.h >>conftest.$ac_ext
25264 cat >>conftest.$ac_ext <<_ACEOF
25265 /* end confdefs.h. */
25266 $ac_includes_default
25270 if (sizeof (ptrdiff_t))
25276 rm -f conftest.$ac_objext
25277 if { (ac_try="$ac_compile"
25278 case "(($ac_try" in
25279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25280 *) ac_try_echo=$ac_try;;
25282 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25283 $as_echo "$ac_try_echo") >&5
25284 (eval "$ac_compile") 2>conftest.er1
25286 grep -v '^ *+' conftest.er1 >conftest.err
25288 cat conftest.err >&5
25289 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25290 (exit $ac_status); } && {
25291 test -z "$ac_c_werror_flag" ||
25292 test ! -s conftest.err
25293 } && test -s conftest.$ac_objext; then
25294 cat >conftest.$ac_ext <<_ACEOF
25297 cat confdefs.h >>conftest.$ac_ext
25298 cat >>conftest.$ac_ext <<_ACEOF
25299 /* end confdefs.h. */
25300 $ac_includes_default
25304 if (sizeof ((ptrdiff_t)))
25310 rm -f conftest.$ac_objext
25311 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
25320 grep -v '^ *+' conftest.er1 >conftest.err
25322 cat conftest.err >&5
25323 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25324 (exit $ac_status); } && {
25325 test -z "$ac_c_werror_flag" ||
25326 test ! -s conftest.err
25327 } && test -s conftest.$ac_objext; then
25330 $as_echo "$as_me: failed program was:" >&5
25331 sed 's/^/| /' conftest.$ac_ext >&5
25333 ac_cv_type_ptrdiff_t=yes
25336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25338 $as_echo "$as_me: failed program was:" >&5
25339 sed 's/^/| /' conftest.$ac_ext >&5
25344 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25346 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
25347 $as_echo "$ac_cv_type_ptrdiff_t" >&6; }
25348 if test "x$ac_cv_type_ptrdiff_t" = x""yes; then
25352 cat >>confdefs.h <<_ACEOF
25353 @%:@define ptrdiff_t int
25358 elif test "$ac_cv_sizeof_long" = "$ac_cv_sizeof_char_p"; then
25359 { $as_echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
25360 $as_echo_n "checking for ptrdiff_t... " >&6; }
25361 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
25362 $as_echo_n "(cached) " >&6
25364 ac_cv_type_ptrdiff_t=no
25365 cat >conftest.$ac_ext <<_ACEOF
25368 cat confdefs.h >>conftest.$ac_ext
25369 cat >>conftest.$ac_ext <<_ACEOF
25370 /* end confdefs.h. */
25371 $ac_includes_default
25375 if (sizeof (ptrdiff_t))
25381 rm -f conftest.$ac_objext
25382 if { (ac_try="$ac_compile"
25383 case "(($ac_try" in
25384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25385 *) ac_try_echo=$ac_try;;
25387 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25388 $as_echo "$ac_try_echo") >&5
25389 (eval "$ac_compile") 2>conftest.er1
25391 grep -v '^ *+' conftest.er1 >conftest.err
25393 cat conftest.err >&5
25394 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25395 (exit $ac_status); } && {
25396 test -z "$ac_c_werror_flag" ||
25397 test ! -s conftest.err
25398 } && test -s conftest.$ac_objext; then
25399 cat >conftest.$ac_ext <<_ACEOF
25402 cat confdefs.h >>conftest.$ac_ext
25403 cat >>conftest.$ac_ext <<_ACEOF
25404 /* end confdefs.h. */
25405 $ac_includes_default
25409 if (sizeof ((ptrdiff_t)))
25415 rm -f conftest.$ac_objext
25416 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
25425 grep -v '^ *+' conftest.er1 >conftest.err
25427 cat conftest.err >&5
25428 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25429 (exit $ac_status); } && {
25430 test -z "$ac_c_werror_flag" ||
25431 test ! -s conftest.err
25432 } && test -s conftest.$ac_objext; then
25435 $as_echo "$as_me: failed program was:" >&5
25436 sed 's/^/| /' conftest.$ac_ext >&5
25438 ac_cv_type_ptrdiff_t=yes
25441 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25443 $as_echo "$as_me: failed program was:" >&5
25444 sed 's/^/| /' conftest.$ac_ext >&5
25449 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25451 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
25452 $as_echo "$ac_cv_type_ptrdiff_t" >&6; }
25453 if test "x$ac_cv_type_ptrdiff_t" = x""yes; then
25457 cat >>confdefs.h <<_ACEOF
25458 @%:@define ptrdiff_t long
25463 elif test "$ac_cv_type_long_long" = yes && test "$ac_cv_sizeof_long_long" = "$ac_cv_sizeof_char_p"; then
25464 { $as_echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
25465 $as_echo_n "checking for ptrdiff_t... " >&6; }
25466 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
25467 $as_echo_n "(cached) " >&6
25469 ac_cv_type_ptrdiff_t=no
25470 cat >conftest.$ac_ext <<_ACEOF
25473 cat confdefs.h >>conftest.$ac_ext
25474 cat >>conftest.$ac_ext <<_ACEOF
25475 /* end confdefs.h. */
25476 $ac_includes_default
25480 if (sizeof (ptrdiff_t))
25486 rm -f conftest.$ac_objext
25487 if { (ac_try="$ac_compile"
25488 case "(($ac_try" in
25489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25490 *) ac_try_echo=$ac_try;;
25492 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25493 $as_echo "$ac_try_echo") >&5
25494 (eval "$ac_compile") 2>conftest.er1
25496 grep -v '^ *+' conftest.er1 >conftest.err
25498 cat conftest.err >&5
25499 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25500 (exit $ac_status); } && {
25501 test -z "$ac_c_werror_flag" ||
25502 test ! -s conftest.err
25503 } && test -s conftest.$ac_objext; then
25504 cat >conftest.$ac_ext <<_ACEOF
25507 cat confdefs.h >>conftest.$ac_ext
25508 cat >>conftest.$ac_ext <<_ACEOF
25509 /* end confdefs.h. */
25510 $ac_includes_default
25514 if (sizeof ((ptrdiff_t)))
25520 rm -f conftest.$ac_objext
25521 if { (ac_try="$ac_compile"
25522 case "(($ac_try" in
25523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25524 *) ac_try_echo=$ac_try;;
25526 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25527 $as_echo "$ac_try_echo") >&5
25528 (eval "$ac_compile") 2>conftest.er1
25530 grep -v '^ *+' conftest.er1 >conftest.err
25532 cat conftest.err >&5
25533 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25534 (exit $ac_status); } && {
25535 test -z "$ac_c_werror_flag" ||
25536 test ! -s conftest.err
25537 } && test -s conftest.$ac_objext; then
25540 $as_echo "$as_me: failed program was:" >&5
25541 sed 's/^/| /' conftest.$ac_ext >&5
25543 ac_cv_type_ptrdiff_t=yes
25546 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25548 $as_echo "$as_me: failed program was:" >&5
25549 sed 's/^/| /' conftest.$ac_ext >&5
25554 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25556 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
25557 $as_echo "$ac_cv_type_ptrdiff_t" >&6; }
25558 if test "x$ac_cv_type_ptrdiff_t" = x""yes; then
25562 cat >>confdefs.h <<_ACEOF
25563 @%:@define ptrdiff_t long long
25569 { $as_echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
25570 $as_echo_n "checking for ptrdiff_t... " >&6; }
25571 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
25572 $as_echo_n "(cached) " >&6
25574 ac_cv_type_ptrdiff_t=no
25575 cat >conftest.$ac_ext <<_ACEOF
25578 cat confdefs.h >>conftest.$ac_ext
25579 cat >>conftest.$ac_ext <<_ACEOF
25580 /* end confdefs.h. */
25581 $ac_includes_default
25585 if (sizeof (ptrdiff_t))
25591 rm -f conftest.$ac_objext
25592 if { (ac_try="$ac_compile"
25593 case "(($ac_try" in
25594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25595 *) ac_try_echo=$ac_try;;
25597 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25598 $as_echo "$ac_try_echo") >&5
25599 (eval "$ac_compile") 2>conftest.er1
25601 grep -v '^ *+' conftest.er1 >conftest.err
25603 cat conftest.err >&5
25604 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25605 (exit $ac_status); } && {
25606 test -z "$ac_c_werror_flag" ||
25607 test ! -s conftest.err
25608 } && test -s conftest.$ac_objext; then
25609 cat >conftest.$ac_ext <<_ACEOF
25612 cat confdefs.h >>conftest.$ac_ext
25613 cat >>conftest.$ac_ext <<_ACEOF
25614 /* end confdefs.h. */
25615 $ac_includes_default
25619 if (sizeof ((ptrdiff_t)))
25625 rm -f conftest.$ac_objext
25626 if { (ac_try="$ac_compile"
25627 case "(($ac_try" in
25628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25629 *) ac_try_echo=$ac_try;;
25631 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25632 $as_echo "$ac_try_echo") >&5
25633 (eval "$ac_compile") 2>conftest.er1
25635 grep -v '^ *+' conftest.er1 >conftest.err
25637 cat conftest.err >&5
25638 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25639 (exit $ac_status); } && {
25640 test -z "$ac_c_werror_flag" ||
25641 test ! -s conftest.err
25642 } && test -s conftest.$ac_objext; then
25645 $as_echo "$as_me: failed program was:" >&5
25646 sed 's/^/| /' conftest.$ac_ext >&5
25648 ac_cv_type_ptrdiff_t=yes
25651 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25653 $as_echo "$as_me: failed program was:" >&5
25654 sed 's/^/| /' conftest.$ac_ext >&5
25659 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25661 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
25662 $as_echo "$ac_cv_type_ptrdiff_t" >&6; }
25663 if test "x$ac_cv_type_ptrdiff_t" = x""yes; then
25667 cat >>confdefs.h <<_ACEOF
25668 @%:@define ptrdiff_t int
25676 { $as_echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
25677 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
25678 if test "${ac_cv_header_stat_broken+set}" = set; then
25679 $as_echo_n "(cached) " >&6
25681 cat >conftest.$ac_ext <<_ACEOF
25684 cat confdefs.h >>conftest.$ac_ext
25685 cat >>conftest.$ac_ext <<_ACEOF
25686 /* end confdefs.h. */
25687 #include <sys/types.h>
25688 #include <sys/stat.h>
25690 #if defined S_ISBLK && defined S_IFDIR
25691 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
25694 #if defined S_ISBLK && defined S_IFCHR
25695 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
25698 #if defined S_ISLNK && defined S_IFREG
25699 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
25702 #if defined S_ISSOCK && defined S_IFREG
25703 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
25707 rm -f conftest.$ac_objext
25708 if { (ac_try="$ac_compile"
25709 case "(($ac_try" in
25710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25711 *) ac_try_echo=$ac_try;;
25713 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25714 $as_echo "$ac_try_echo") >&5
25715 (eval "$ac_compile") 2>conftest.er1
25717 grep -v '^ *+' conftest.er1 >conftest.err
25719 cat conftest.err >&5
25720 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25721 (exit $ac_status); } && {
25722 test -z "$ac_c_werror_flag" ||
25723 test ! -s conftest.err
25724 } && test -s conftest.$ac_objext; then
25725 ac_cv_header_stat_broken=no
25727 $as_echo "$as_me: failed program was:" >&5
25728 sed 's/^/| /' conftest.$ac_ext >&5
25730 ac_cv_header_stat_broken=yes
25733 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25735 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
25736 $as_echo "$ac_cv_header_stat_broken" >&6; }
25737 if test $ac_cv_header_stat_broken = yes; then
25739 cat >>confdefs.h <<\_ACEOF
25740 @%:@define STAT_MACROS_BROKEN 1
25746 { $as_echo "$as_me:$LINENO: checking whether @%:@! works in shell scripts" >&5
25747 $as_echo_n "checking whether @%:@! works in shell scripts... " >&6; }
25748 if test "${ac_cv_sys_interpreter+set}" = set; then
25749 $as_echo_n "(cached) " >&6
25755 (SHELL=/bin/sh; export SHELL; ./conftest >/dev/null 2>&1)
25756 if test $? -ne 69; then
25757 ac_cv_sys_interpreter=yes
25759 ac_cv_sys_interpreter=no
25763 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_interpreter" >&5
25764 $as_echo "$ac_cv_sys_interpreter" >&6; }
25765 interpval=$ac_cv_sys_interpreter
25767 if test $ac_cv_sys_interpreter = yes; then
25768 cat >>confdefs.h <<\_ACEOF
25769 @%:@define HAVE_HASH_BANG_EXEC 1
25774 if test "$ac_cv_func_lstat" = "no"; then
25775 { $as_echo "$as_me:$LINENO: checking for lstat" >&5
25776 $as_echo_n "checking for lstat... " >&6; }
25777 if test "${bash_cv_func_lstat+set}" = set; then
25778 $as_echo_n "(cached) " >&6
25780 cat >conftest.$ac_ext <<_ACEOF
25783 cat confdefs.h >>conftest.$ac_ext
25784 cat >>conftest.$ac_ext <<_ACEOF
25785 /* end confdefs.h. */
25787 #include <sys/types.h>
25788 #include <sys/stat.h>
25793 lstat(".",(struct stat *)0);
25798 rm -f conftest.$ac_objext conftest$ac_exeext
25799 if { (ac_try="$ac_link"
25800 case "(($ac_try" in
25801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25802 *) ac_try_echo=$ac_try;;
25804 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25805 $as_echo "$ac_try_echo") >&5
25806 (eval "$ac_link") 2>conftest.er1
25808 grep -v '^ *+' conftest.er1 >conftest.err
25810 cat conftest.err >&5
25811 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25812 (exit $ac_status); } && {
25813 test -z "$ac_c_werror_flag" ||
25814 test ! -s conftest.err
25815 } && test -s conftest$ac_exeext && {
25816 test "$cross_compiling" = yes ||
25817 $as_test_x conftest$ac_exeext
25819 bash_cv_func_lstat=yes
25821 $as_echo "$as_me: failed program was:" >&5
25822 sed 's/^/| /' conftest.$ac_ext >&5
25824 bash_cv_func_lstat=no
25827 rm -rf conftest.dSYM
25828 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25829 conftest$ac_exeext conftest.$ac_ext
25831 { $as_echo "$as_me:$LINENO: result: $bash_cv_func_lstat" >&5
25832 $as_echo "$bash_cv_func_lstat" >&6; }
25833 if test $bash_cv_func_lstat = yes; then
25834 cat >>confdefs.h <<\_ACEOF
25835 @%:@define HAVE_LSTAT 1
25843 { $as_echo "$as_me:$LINENO: checking whether the ctype macros accept non-ascii characters" >&5
25844 $as_echo_n "checking whether the ctype macros accept non-ascii characters... " >&6; }
25845 if test "${bash_cv_func_ctype_nonascii+set}" = set; then
25846 $as_echo_n "(cached) " >&6
25848 if test "$cross_compiling" = yes; then
25849 { $as_echo "$as_me:$LINENO: WARNING: cannot check ctype macros if cross compiling -- defaulting to no" >&5
25850 $as_echo "$as_me: WARNING: cannot check ctype macros if cross compiling -- defaulting to no" >&2;}
25851 bash_cv_func_ctype_nonascii=no
25854 cat >conftest.$ac_ext <<_ACEOF
25857 cat confdefs.h >>conftest.$ac_ext
25858 cat >>conftest.$ac_ext <<_ACEOF
25859 /* end confdefs.h. */
25861 #ifdef HAVE_LOCALE_H
25862 #include <locale.h>
25875 #ifdef HAVE_SETLOCALE
25876 /* We take a shot here. If that locale is not known, try the
25877 system default. We try this one because '\342' (226) is
25878 known to be a printable character in that locale. */
25879 deflocale = setlocale(LC_ALL, "en_US.ISO8859-1");
25880 if (deflocale == 0)
25881 deflocale = setlocale(LC_ALL, "");
25888 exit (r1 == 0 || r2 == 0);
25892 rm -f conftest$ac_exeext
25893 if { (ac_try="$ac_link"
25894 case "(($ac_try" in
25895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25896 *) ac_try_echo=$ac_try;;
25898 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25899 $as_echo "$ac_try_echo") >&5
25900 (eval "$ac_link") 2>&5
25902 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25903 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25904 { (case "(($ac_try" in
25905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25906 *) ac_try_echo=$ac_try;;
25908 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25909 $as_echo "$ac_try_echo") >&5
25910 (eval "$ac_try") 2>&5
25912 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25913 (exit $ac_status); }; }; then
25914 bash_cv_func_ctype_nonascii=yes
25916 $as_echo "$as_me: program exited with status $ac_status" >&5
25917 $as_echo "$as_me: failed program was:" >&5
25918 sed 's/^/| /' conftest.$ac_ext >&5
25920 ( exit $ac_status )
25921 bash_cv_func_ctype_nonascii=no
25923 rm -rf conftest.dSYM
25924 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25930 { $as_echo "$as_me:$LINENO: result: $bash_cv_func_ctype_nonascii" >&5
25931 $as_echo "$bash_cv_func_ctype_nonascii" >&6; }
25932 if test $bash_cv_func_ctype_nonascii = yes; then
25933 cat >>confdefs.h <<\_ACEOF
25934 @%:@define CTYPE_NON_ASCII 1
25939 { $as_echo "$as_me:$LINENO: checking if dup2 fails to clear the close-on-exec flag" >&5
25940 $as_echo_n "checking if dup2 fails to clear the close-on-exec flag... " >&6; }
25941 if test "${bash_cv_dup2_broken+set}" = set; then
25942 $as_echo_n "(cached) " >&6
25944 if test "$cross_compiling" = yes; then
25945 { $as_echo "$as_me:$LINENO: WARNING: cannot check dup2 if cross compiling -- defaulting to no" >&5
25946 $as_echo "$as_me: WARNING: cannot check dup2 if cross compiling -- defaulting to no" >&2;}
25947 bash_cv_dup2_broken=no
25949 cat >conftest.$ac_ext <<_ACEOF
25952 cat confdefs.h >>conftest.$ac_ext
25953 cat >>conftest.$ac_ext <<_ACEOF
25954 /* end confdefs.h. */
25956 #include <sys/types.h>
25961 fd1 = open("/dev/null", 2);
25962 if (fcntl(fd1, 2, 1) < 0)
25964 fd2 = dup2(fd1, 1);
25967 fl = fcntl(fd2, 1, 0);
25968 /* fl will be 1 if dup2 did not reset the close-on-exec flag. */
25973 rm -f conftest$ac_exeext
25974 if { (ac_try="$ac_link"
25975 case "(($ac_try" in
25976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25977 *) ac_try_echo=$ac_try;;
25979 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25980 $as_echo "$ac_try_echo") >&5
25981 (eval "$ac_link") 2>&5
25983 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25984 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25985 { (case "(($ac_try" in
25986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25987 *) ac_try_echo=$ac_try;;
25989 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25990 $as_echo "$ac_try_echo") >&5
25991 (eval "$ac_try") 2>&5
25993 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25994 (exit $ac_status); }; }; then
25995 bash_cv_dup2_broken=yes
25997 $as_echo "$as_me: program exited with status $ac_status" >&5
25998 $as_echo "$as_me: failed program was:" >&5
25999 sed 's/^/| /' conftest.$ac_ext >&5
26001 ( exit $ac_status )
26002 bash_cv_dup2_broken=no
26004 rm -rf conftest.dSYM
26005 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26012 { $as_echo "$as_me:$LINENO: result: $bash_cv_dup2_broken" >&5
26013 $as_echo "$bash_cv_dup2_broken" >&6; }
26014 if test $bash_cv_dup2_broken = yes; then
26015 cat >>confdefs.h <<\_ACEOF
26016 @%:@define DUP2_BROKEN 1
26022 { $as_echo "$as_me:$LINENO: checking whether pgrps need synchronization" >&5
26023 $as_echo_n "checking whether pgrps need synchronization... " >&6; }
26024 if test "${bash_cv_pgrp_pipe+set}" = set; then
26025 $as_echo_n "(cached) " >&6
26027 if test "$cross_compiling" = yes; then
26028 { $as_echo "$as_me:$LINENO: WARNING: cannot check pgrp synchronization if cross compiling -- defaulting to no" >&5
26029 $as_echo "$as_me: WARNING: cannot check pgrp synchronization if cross compiling -- defaulting to no" >&2;}
26030 bash_cv_pgrp_pipe=no
26032 cat >conftest.$ac_ext <<_ACEOF
26035 cat confdefs.h >>conftest.$ac_ext
26036 cat >>conftest.$ac_ext <<_ACEOF
26037 /* end confdefs.h. */
26039 #ifdef HAVE_UNISTD_H
26040 # include <unistd.h>
26044 # ifdef GETPGRP_VOID
26045 # define getpgID() getpgrp()
26047 # define getpgID() getpgrp(0)
26048 # define setpgid(x,y) setpgrp(x,y)
26050 int pid1, pid2, fds[2];
26054 switch (pid1 = fork()) {
26058 setpgid(0, getpid());
26061 setpgid(pid1, pid1);
26063 sleep(2); /* let first child die */
26068 switch (pid2 = fork()) {
26073 ok = getpgID() == pid1;
26074 write(fds[1], &ok, 1);
26077 setpgid(pid2, pid1);
26080 if (read(fds[0], &ok, 1) != 1)
26088 rm -f conftest$ac_exeext
26089 if { (ac_try="$ac_link"
26090 case "(($ac_try" in
26091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26092 *) ac_try_echo=$ac_try;;
26094 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26095 $as_echo "$ac_try_echo") >&5
26096 (eval "$ac_link") 2>&5
26098 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26099 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26100 { (case "(($ac_try" in
26101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26102 *) ac_try_echo=$ac_try;;
26104 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26105 $as_echo "$ac_try_echo") >&5
26106 (eval "$ac_try") 2>&5
26108 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26109 (exit $ac_status); }; }; then
26110 bash_cv_pgrp_pipe=no
26112 $as_echo "$as_me: program exited with status $ac_status" >&5
26113 $as_echo "$as_me: failed program was:" >&5
26114 sed 's/^/| /' conftest.$ac_ext >&5
26116 ( exit $ac_status )
26117 bash_cv_pgrp_pipe=yes
26119 rm -rf conftest.dSYM
26120 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26127 { $as_echo "$as_me:$LINENO: result: $bash_cv_pgrp_pipe" >&5
26128 $as_echo "$bash_cv_pgrp_pipe" >&6; }
26129 if test $bash_cv_pgrp_pipe = yes; then
26130 cat >>confdefs.h <<\_ACEOF
26131 @%:@define PGRP_PIPE 1
26137 { $as_echo "$as_me:$LINENO: checking for type of signal functions" >&5
26138 $as_echo_n "checking for type of signal functions... " >&6; }
26139 if test "${bash_cv_signal_vintage+set}" = set; then
26140 $as_echo_n "(cached) " >&6
26143 cat >conftest.$ac_ext <<_ACEOF
26146 cat confdefs.h >>conftest.$ac_ext
26147 cat >>conftest.$ac_ext <<_ACEOF
26148 /* end confdefs.h. */
26149 #include <signal.h>
26155 struct sigaction sa;
26156 sigemptyset(&ss); sigsuspend(&ss);
26157 sigaction(SIGINT, &sa, (struct sigaction *) 0);
26158 sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
26164 rm -f conftest.$ac_objext conftest$ac_exeext
26165 if { (ac_try="$ac_link"
26166 case "(($ac_try" in
26167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26168 *) ac_try_echo=$ac_try;;
26170 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26171 $as_echo "$ac_try_echo") >&5
26172 (eval "$ac_link") 2>conftest.er1
26174 grep -v '^ *+' conftest.er1 >conftest.err
26176 cat conftest.err >&5
26177 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26178 (exit $ac_status); } && {
26179 test -z "$ac_c_werror_flag" ||
26180 test ! -s conftest.err
26181 } && test -s conftest$ac_exeext && {
26182 test "$cross_compiling" = yes ||
26183 $as_test_x conftest$ac_exeext
26185 bash_cv_signal_vintage=posix
26187 $as_echo "$as_me: failed program was:" >&5
26188 sed 's/^/| /' conftest.$ac_ext >&5
26191 cat >conftest.$ac_ext <<_ACEOF
26194 cat confdefs.h >>conftest.$ac_ext
26195 cat >>conftest.$ac_ext <<_ACEOF
26196 /* end confdefs.h. */
26197 #include <signal.h>
26202 int mask = sigmask(SIGINT);
26203 sigsetmask(mask); sigblock(mask); sigpause(mask);
26209 rm -f conftest.$ac_objext conftest$ac_exeext
26210 if { (ac_try="$ac_link"
26211 case "(($ac_try" in
26212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26213 *) ac_try_echo=$ac_try;;
26215 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26216 $as_echo "$ac_try_echo") >&5
26217 (eval "$ac_link") 2>conftest.er1
26219 grep -v '^ *+' conftest.er1 >conftest.err
26221 cat conftest.err >&5
26222 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26223 (exit $ac_status); } && {
26224 test -z "$ac_c_werror_flag" ||
26225 test ! -s conftest.err
26226 } && test -s conftest$ac_exeext && {
26227 test "$cross_compiling" = yes ||
26228 $as_test_x conftest$ac_exeext
26230 bash_cv_signal_vintage=4.2bsd
26232 $as_echo "$as_me: failed program was:" >&5
26233 sed 's/^/| /' conftest.$ac_ext >&5
26236 cat >conftest.$ac_ext <<_ACEOF
26239 cat confdefs.h >>conftest.$ac_ext
26240 cat >>conftest.$ac_ext <<_ACEOF
26241 /* end confdefs.h. */
26243 #include <signal.h>
26244 RETSIGTYPE foo() { }
26249 int mask = sigmask(SIGINT);
26250 sigset(SIGINT, foo); sigrelse(SIGINT);
26251 sighold(SIGINT); sigpause(SIGINT);
26257 rm -f conftest.$ac_objext conftest$ac_exeext
26258 if { (ac_try="$ac_link"
26259 case "(($ac_try" in
26260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26261 *) ac_try_echo=$ac_try;;
26263 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26264 $as_echo "$ac_try_echo") >&5
26265 (eval "$ac_link") 2>conftest.er1
26267 grep -v '^ *+' conftest.er1 >conftest.err
26269 cat conftest.err >&5
26270 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26271 (exit $ac_status); } && {
26272 test -z "$ac_c_werror_flag" ||
26273 test ! -s conftest.err
26274 } && test -s conftest$ac_exeext && {
26275 test "$cross_compiling" = yes ||
26276 $as_test_x conftest$ac_exeext
26278 bash_cv_signal_vintage=svr3
26280 $as_echo "$as_me: failed program was:" >&5
26281 sed 's/^/| /' conftest.$ac_ext >&5
26283 bash_cv_signal_vintage=v7
26287 rm -rf conftest.dSYM
26288 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26289 conftest$ac_exeext conftest.$ac_ext
26293 rm -rf conftest.dSYM
26294 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26295 conftest$ac_exeext conftest.$ac_ext
26299 rm -rf conftest.dSYM
26300 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26301 conftest$ac_exeext conftest.$ac_ext
26305 { $as_echo "$as_me:$LINENO: result: $bash_cv_signal_vintage" >&5
26306 $as_echo "$bash_cv_signal_vintage" >&6; }
26307 if test "$bash_cv_signal_vintage" = posix; then
26308 cat >>confdefs.h <<\_ACEOF
26309 @%:@define HAVE_POSIX_SIGNALS 1
26312 elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
26313 cat >>confdefs.h <<\_ACEOF
26314 @%:@define HAVE_BSD_SIGNALS 1
26317 elif test "$bash_cv_signal_vintage" = svr3; then
26318 cat >>confdefs.h <<\_ACEOF
26319 @%:@define HAVE_USG_SIGHOLD 1
26325 { $as_echo "$as_me:$LINENO: checking for sys_errlist and sys_nerr" >&5
26326 $as_echo_n "checking for sys_errlist and sys_nerr... " >&6; }
26327 if test "${bash_cv_sys_errlist+set}" = set; then
26328 $as_echo_n "(cached) " >&6
26330 cat >conftest.$ac_ext <<_ACEOF
26333 cat confdefs.h >>conftest.$ac_ext
26334 cat >>conftest.$ac_ext <<_ACEOF
26335 /* end confdefs.h. */
26340 extern char *sys_errlist[];
26341 extern int sys_nerr;
26342 char *msg = sys_errlist[sys_nerr - 1];
26347 rm -f conftest.$ac_objext conftest$ac_exeext
26348 if { (ac_try="$ac_link"
26349 case "(($ac_try" in
26350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26351 *) ac_try_echo=$ac_try;;
26353 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26354 $as_echo "$ac_try_echo") >&5
26355 (eval "$ac_link") 2>conftest.er1
26357 grep -v '^ *+' conftest.er1 >conftest.err
26359 cat conftest.err >&5
26360 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26361 (exit $ac_status); } && {
26362 test -z "$ac_c_werror_flag" ||
26363 test ! -s conftest.err
26364 } && test -s conftest$ac_exeext && {
26365 test "$cross_compiling" = yes ||
26366 $as_test_x conftest$ac_exeext
26368 bash_cv_sys_errlist=yes
26370 $as_echo "$as_me: failed program was:" >&5
26371 sed 's/^/| /' conftest.$ac_ext >&5
26373 bash_cv_sys_errlist=no
26376 rm -rf conftest.dSYM
26377 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26378 conftest$ac_exeext conftest.$ac_ext
26380 { $as_echo "$as_me:$LINENO: result: $bash_cv_sys_errlist" >&5
26381 $as_echo "$bash_cv_sys_errlist" >&6; }
26382 if test $bash_cv_sys_errlist = yes; then
26383 cat >>confdefs.h <<\_ACEOF
26384 @%:@define HAVE_SYS_ERRLIST 1
26390 { $as_echo "$as_me:$LINENO: checking for sys_siglist in system C library" >&5
26391 $as_echo_n "checking for sys_siglist in system C library... " >&6; }
26392 if test "${bash_cv_sys_siglist+set}" = set; then
26393 $as_echo_n "(cached) " >&6
26395 if test "$cross_compiling" = yes; then
26396 { $as_echo "$as_me:$LINENO: WARNING: cannot check for sys_siglist if cross compiling -- defaulting to no" >&5
26397 $as_echo "$as_me: WARNING: cannot check for sys_siglist if cross compiling -- defaulting to no" >&2;}
26398 bash_cv_sys_siglist=no
26400 cat >conftest.$ac_ext <<_ACEOF
26403 cat confdefs.h >>conftest.$ac_ext
26404 cat >>conftest.$ac_ext <<_ACEOF
26405 /* end confdefs.h. */
26407 #include <sys/types.h>
26408 #include <signal.h>
26409 #ifdef HAVE_UNISTD_H
26410 #include <unistd.h>
26412 #if !HAVE_DECL_SYS_SIGLIST
26413 extern char *sys_siglist[];
26417 char *msg = sys_siglist[2];
26421 rm -f conftest$ac_exeext
26422 if { (ac_try="$ac_link"
26423 case "(($ac_try" in
26424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26425 *) ac_try_echo=$ac_try;;
26427 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26428 $as_echo "$ac_try_echo") >&5
26429 (eval "$ac_link") 2>&5
26431 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26432 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26433 { (case "(($ac_try" in
26434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26435 *) ac_try_echo=$ac_try;;
26437 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26438 $as_echo "$ac_try_echo") >&5
26439 (eval "$ac_try") 2>&5
26441 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26442 (exit $ac_status); }; }; then
26443 bash_cv_sys_siglist=yes
26445 $as_echo "$as_me: program exited with status $ac_status" >&5
26446 $as_echo "$as_me: failed program was:" >&5
26447 sed 's/^/| /' conftest.$ac_ext >&5
26449 ( exit $ac_status )
26450 bash_cv_sys_siglist=no
26452 rm -rf conftest.dSYM
26453 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26459 { $as_echo "$as_me:$LINENO: result: $bash_cv_sys_siglist" >&5
26460 $as_echo "$bash_cv_sys_siglist" >&6; }
26461 if test $bash_cv_sys_siglist = yes; then
26462 cat >>confdefs.h <<\_ACEOF
26463 @%:@define HAVE_SYS_SIGLIST 1
26468 { $as_echo "$as_me:$LINENO: checking for _sys_siglist in signal.h or unistd.h" >&5
26469 $as_echo_n "checking for _sys_siglist in signal.h or unistd.h... " >&6; }
26470 if test "${bash_cv_decl_under_sys_siglist+set}" = set; then
26471 $as_echo_n "(cached) " >&6
26473 cat >conftest.$ac_ext <<_ACEOF
26476 cat confdefs.h >>conftest.$ac_ext
26477 cat >>conftest.$ac_ext <<_ACEOF
26478 /* end confdefs.h. */
26480 #include <sys/types.h>
26481 #include <signal.h>
26482 #ifdef HAVE_UNISTD_H
26483 #include <unistd.h>
26488 char *msg = _sys_siglist[2];
26493 rm -f conftest.$ac_objext
26494 if { (ac_try="$ac_compile"
26495 case "(($ac_try" in
26496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26497 *) ac_try_echo=$ac_try;;
26499 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26500 $as_echo "$ac_try_echo") >&5
26501 (eval "$ac_compile") 2>conftest.er1
26503 grep -v '^ *+' conftest.er1 >conftest.err
26505 cat conftest.err >&5
26506 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26507 (exit $ac_status); } && {
26508 test -z "$ac_c_werror_flag" ||
26509 test ! -s conftest.err
26510 } && test -s conftest.$ac_objext; then
26511 bash_cv_decl_under_sys_siglist=yes
26513 $as_echo "$as_me: failed program was:" >&5
26514 sed 's/^/| /' conftest.$ac_ext >&5
26516 bash_cv_decl_under_sys_siglist=no
26519 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26521 { $as_echo "$as_me:$LINENO: result: $bash_cv_decl_under_sys_siglist" >&5
26522 $as_echo "$bash_cv_decl_under_sys_siglist" >&6; }
26523 if test $bash_cv_decl_under_sys_siglist = yes; then
26524 cat >>confdefs.h <<\_ACEOF
26525 @%:@define UNDER_SYS_SIGLIST_DECLARED 1
26531 { $as_echo "$as_me:$LINENO: checking for _sys_siglist in system C library" >&5
26532 $as_echo_n "checking for _sys_siglist in system C library... " >&6; }
26533 if test "${bash_cv_under_sys_siglist+set}" = set; then
26534 $as_echo_n "(cached) " >&6
26536 if test "$cross_compiling" = yes; then
26537 { $as_echo "$as_me:$LINENO: WARNING: cannot check for _sys_siglist if cross compiling -- defaulting to no" >&5
26538 $as_echo "$as_me: WARNING: cannot check for _sys_siglist if cross compiling -- defaulting to no" >&2;}
26539 bash_cv_under_sys_siglist=no
26541 cat >conftest.$ac_ext <<_ACEOF
26544 cat confdefs.h >>conftest.$ac_ext
26545 cat >>conftest.$ac_ext <<_ACEOF
26546 /* end confdefs.h. */
26548 #include <sys/types.h>
26549 #include <signal.h>
26550 #ifdef HAVE_UNISTD_H
26551 #include <unistd.h>
26553 #ifndef UNDER_SYS_SIGLIST_DECLARED
26554 extern char *_sys_siglist[];
26558 char *msg = (char *)_sys_siglist[2];
26562 rm -f conftest$ac_exeext
26563 if { (ac_try="$ac_link"
26564 case "(($ac_try" in
26565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26566 *) ac_try_echo=$ac_try;;
26568 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26569 $as_echo "$ac_try_echo") >&5
26570 (eval "$ac_link") 2>&5
26572 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26573 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26574 { (case "(($ac_try" in
26575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26576 *) ac_try_echo=$ac_try;;
26578 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26579 $as_echo "$ac_try_echo") >&5
26580 (eval "$ac_try") 2>&5
26582 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26583 (exit $ac_status); }; }; then
26584 bash_cv_under_sys_siglist=yes
26586 $as_echo "$as_me: program exited with status $ac_status" >&5
26587 $as_echo "$as_me: failed program was:" >&5
26588 sed 's/^/| /' conftest.$ac_ext >&5
26590 ( exit $ac_status )
26591 bash_cv_under_sys_siglist=no
26593 rm -rf conftest.dSYM
26594 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26600 { $as_echo "$as_me:$LINENO: result: $bash_cv_under_sys_siglist" >&5
26601 $as_echo "$bash_cv_under_sys_siglist" >&6; }
26602 if test $bash_cv_under_sys_siglist = yes; then
26603 cat >>confdefs.h <<\_ACEOF
26604 @%:@define HAVE_UNDER_SYS_SIGLIST 1
26610 { $as_echo "$as_me:$LINENO: checking whether signal handlers are of type void" >&5
26611 $as_echo_n "checking whether signal handlers are of type void... " >&6; }
26612 if test "${bash_cv_void_sighandler+set}" = set; then
26613 $as_echo_n "(cached) " >&6
26615 cat >conftest.$ac_ext <<_ACEOF
26618 cat confdefs.h >>conftest.$ac_ext
26619 cat >>conftest.$ac_ext <<_ACEOF
26620 /* end confdefs.h. */
26621 #include <sys/types.h>
26622 #include <signal.h>
26629 void (*signal ()) ();
26638 rm -f conftest.$ac_objext
26639 if { (ac_try="$ac_compile"
26640 case "(($ac_try" in
26641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26642 *) ac_try_echo=$ac_try;;
26644 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26645 $as_echo "$ac_try_echo") >&5
26646 (eval "$ac_compile") 2>conftest.er1
26648 grep -v '^ *+' conftest.er1 >conftest.err
26650 cat conftest.err >&5
26651 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26652 (exit $ac_status); } && {
26653 test -z "$ac_c_werror_flag" ||
26654 test ! -s conftest.err
26655 } && test -s conftest.$ac_objext; then
26656 bash_cv_void_sighandler=yes
26658 $as_echo "$as_me: failed program was:" >&5
26659 sed 's/^/| /' conftest.$ac_ext >&5
26661 bash_cv_void_sighandler=no
26664 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26666 { $as_echo "$as_me:$LINENO: result: $bash_cv_void_sighandler" >&5
26667 $as_echo "$bash_cv_void_sighandler" >&6; }
26668 if test $bash_cv_void_sighandler = yes; then
26669 cat >>confdefs.h <<\_ACEOF
26670 @%:@define VOID_SIGHANDLER 1
26677 { $as_echo "$as_me:$LINENO: checking for clock_t" >&5
26678 $as_echo_n "checking for clock_t... " >&6; }
26679 if test "${bash_cv_type_clock_t+set}" = set; then
26680 $as_echo_n "(cached) " >&6
26682 cat >conftest.$ac_ext <<_ACEOF
26685 cat confdefs.h >>conftest.$ac_ext
26686 cat >>conftest.$ac_ext <<_ACEOF
26687 /* end confdefs.h. */
26688 #include <sys/types.h>
26690 #include <stdlib.h>
26691 #include <stddef.h>
26693 #if HAVE_INTTYPES_H
26694 #include <inttypes.h>
26697 #include <stdint.h>
26699 #include <sys/times.h>
26702 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26703 $EGREP "clock_t" >/dev/null 2>&1; then
26704 bash_cv_type_clock_t=yes
26706 bash_cv_type_clock_t=no
26712 { $as_echo "$as_me:$LINENO: result: $bash_cv_type_clock_t" >&5
26713 $as_echo "$bash_cv_type_clock_t" >&6; }
26715 if test $bash_cv_type_clock_t = no; then
26716 cat >>confdefs.h <<_ACEOF
26717 @%:@define clock_t long
26724 { $as_echo "$as_me:$LINENO: checking for sigset_t" >&5
26725 $as_echo_n "checking for sigset_t... " >&6; }
26726 if test "${bash_cv_type_sigset_t+set}" = set; then
26727 $as_echo_n "(cached) " >&6
26729 cat >conftest.$ac_ext <<_ACEOF
26732 cat confdefs.h >>conftest.$ac_ext
26733 cat >>conftest.$ac_ext <<_ACEOF
26734 /* end confdefs.h. */
26735 #include <sys/types.h>
26737 #include <stdlib.h>
26738 #include <stddef.h>
26740 #if HAVE_INTTYPES_H
26741 #include <inttypes.h>
26744 #include <stdint.h>
26746 #include <signal.h>
26749 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26750 $EGREP "sigset_t" >/dev/null 2>&1; then
26751 bash_cv_type_sigset_t=yes
26753 bash_cv_type_sigset_t=no
26759 { $as_echo "$as_me:$LINENO: result: $bash_cv_type_sigset_t" >&5
26760 $as_echo "$bash_cv_type_sigset_t" >&6; }
26762 if test $bash_cv_type_sigset_t = no; then
26763 cat >>confdefs.h <<_ACEOF
26764 @%:@define sigset_t int
26771 { $as_echo "$as_me:$LINENO: checking for quad_t" >&5
26772 $as_echo_n "checking for quad_t... " >&6; }
26773 if test "${bash_cv_type_quad_t+set}" = set; then
26774 $as_echo_n "(cached) " >&6
26776 cat >conftest.$ac_ext <<_ACEOF
26779 cat confdefs.h >>conftest.$ac_ext
26780 cat >>conftest.$ac_ext <<_ACEOF
26781 /* end confdefs.h. */
26782 #include <sys/types.h>
26784 #include <stdlib.h>
26785 #include <stddef.h>
26787 #if HAVE_INTTYPES_H
26788 #include <inttypes.h>
26791 #include <stdint.h>
26796 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26797 $EGREP "quad_t" >/dev/null 2>&1; then
26798 bash_cv_type_quad_t=yes
26800 bash_cv_type_quad_t=no
26806 { $as_echo "$as_me:$LINENO: result: $bash_cv_type_quad_t" >&5
26807 $as_echo "$bash_cv_type_quad_t" >&6; }
26808 if test $bash_cv_type_quad_t = yes; then
26809 cat >>confdefs.h <<\_ACEOF
26810 @%:@define HAVE_QUAD_T 1
26814 if test $bash_cv_type_quad_t = no; then
26815 cat >>confdefs.h <<_ACEOF
26816 @%:@define quad_t long
26823 { $as_echo "$as_me:$LINENO: checking for intmax_t" >&5
26824 $as_echo_n "checking for intmax_t... " >&6; }
26825 if test "${bash_cv_type_intmax_t+set}" = set; then
26826 $as_echo_n "(cached) " >&6
26828 cat >conftest.$ac_ext <<_ACEOF
26831 cat confdefs.h >>conftest.$ac_ext
26832 cat >>conftest.$ac_ext <<_ACEOF
26833 /* end confdefs.h. */
26834 #include <sys/types.h>
26836 #include <stdlib.h>
26837 #include <stddef.h>
26839 #if HAVE_INTTYPES_H
26840 #include <inttypes.h>
26843 #include <stdint.h>
26848 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26849 $EGREP "intmax_t" >/dev/null 2>&1; then
26850 bash_cv_type_intmax_t=yes
26852 bash_cv_type_intmax_t=no
26858 { $as_echo "$as_me:$LINENO: result: $bash_cv_type_intmax_t" >&5
26859 $as_echo "$bash_cv_type_intmax_t" >&6; }
26861 if test $bash_cv_type_intmax_t = no; then
26862 cat >>confdefs.h <<_ACEOF
26863 @%:@define intmax_t $bash_cv_type_long_long
26870 { $as_echo "$as_me:$LINENO: checking for uintmax_t" >&5
26871 $as_echo_n "checking for uintmax_t... " >&6; }
26872 if test "${bash_cv_type_uintmax_t+set}" = set; then
26873 $as_echo_n "(cached) " >&6
26875 cat >conftest.$ac_ext <<_ACEOF
26878 cat confdefs.h >>conftest.$ac_ext
26879 cat >>conftest.$ac_ext <<_ACEOF
26880 /* end confdefs.h. */
26881 #include <sys/types.h>
26883 #include <stdlib.h>
26884 #include <stddef.h>
26886 #if HAVE_INTTYPES_H
26887 #include <inttypes.h>
26890 #include <stdint.h>
26895 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26896 $EGREP "uintmax_t" >/dev/null 2>&1; then
26897 bash_cv_type_uintmax_t=yes
26899 bash_cv_type_uintmax_t=no
26905 { $as_echo "$as_me:$LINENO: result: $bash_cv_type_uintmax_t" >&5
26906 $as_echo "$bash_cv_type_uintmax_t" >&6; }
26908 if test $bash_cv_type_uintmax_t = no; then
26909 cat >>confdefs.h <<_ACEOF
26910 @%:@define uintmax_t $bash_cv_type_unsigned_long_long
26915 if test "$ac_cv_header_sys_socket_h" = "yes"; then
26918 { $as_echo "$as_me:$LINENO: checking for socklen_t" >&5
26919 $as_echo_n "checking for socklen_t... " >&6; }
26920 if test "${bash_cv_type_socklen_t+set}" = set; then
26921 $as_echo_n "(cached) " >&6
26923 cat >conftest.$ac_ext <<_ACEOF
26926 cat confdefs.h >>conftest.$ac_ext
26927 cat >>conftest.$ac_ext <<_ACEOF
26928 /* end confdefs.h. */
26929 #include <sys/types.h>
26931 #include <stdlib.h>
26932 #include <stddef.h>
26934 #if HAVE_INTTYPES_H
26935 #include <inttypes.h>
26938 #include <stdint.h>
26940 #include <sys/socket.h>
26943 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26944 $EGREP "socklen_t" >/dev/null 2>&1; then
26945 bash_cv_type_socklen_t=yes
26947 bash_cv_type_socklen_t=no
26953 { $as_echo "$as_me:$LINENO: result: $bash_cv_type_socklen_t" >&5
26954 $as_echo "$bash_cv_type_socklen_t" >&6; }
26955 if test $bash_cv_type_socklen_t = yes; then
26956 cat >>confdefs.h <<\_ACEOF
26957 @%:@define HAVE_SOCKLEN_T 1
26961 if test $bash_cv_type_socklen_t = no; then
26962 cat >>confdefs.h <<_ACEOF
26963 @%:@define socklen_t int
26969 { $as_echo "$as_me:$LINENO: checking for size and type of struct rlimit fields" >&5
26970 $as_echo_n "checking for size and type of struct rlimit fields... " >&6; }
26971 if test "${bash_cv_type_rlimit+set}" = set; then
26972 $as_echo_n "(cached) " >&6
26974 cat >conftest.$ac_ext <<_ACEOF
26977 cat confdefs.h >>conftest.$ac_ext
26978 cat >>conftest.$ac_ext <<_ACEOF
26979 /* end confdefs.h. */
26980 #include <sys/types.h>
26981 #include <sys/resource.h>
26990 rm -f conftest.$ac_objext
26991 if { (ac_try="$ac_compile"
26992 case "(($ac_try" in
26993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26994 *) ac_try_echo=$ac_try;;
26996 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26997 $as_echo "$ac_try_echo") >&5
26998 (eval "$ac_compile") 2>conftest.er1
27000 grep -v '^ *+' conftest.er1 >conftest.err
27002 cat conftest.err >&5
27003 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27004 (exit $ac_status); } && {
27005 test -z "$ac_c_werror_flag" ||
27006 test ! -s conftest.err
27007 } && test -s conftest.$ac_objext; then
27008 bash_cv_type_rlimit=rlim_t
27010 $as_echo "$as_me: failed program was:" >&5
27011 sed 's/^/| /' conftest.$ac_ext >&5
27014 if test "$cross_compiling" = yes; then
27015 { $as_echo "$as_me:$LINENO: WARNING: cannot check quad_t if cross compiling -- defaulting to long" >&5
27016 $as_echo "$as_me: WARNING: cannot check quad_t if cross compiling -- defaulting to long" >&2;}
27017 bash_cv_type_rlimit=long
27019 cat >conftest.$ac_ext <<_ACEOF
27022 cat confdefs.h >>conftest.$ac_ext
27023 cat >>conftest.$ac_ext <<_ACEOF
27024 /* end confdefs.h. */
27026 #include <sys/types.h>
27027 #include <sys/time.h>
27028 #include <sys/resource.h>
27033 if (sizeof(rl.rlim_cur) == sizeof(quad_t))
27039 rm -f conftest$ac_exeext
27040 if { (ac_try="$ac_link"
27041 case "(($ac_try" in
27042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27043 *) ac_try_echo=$ac_try;;
27045 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27046 $as_echo "$ac_try_echo") >&5
27047 (eval "$ac_link") 2>&5
27049 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27050 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27051 { (case "(($ac_try" in
27052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27053 *) ac_try_echo=$ac_try;;
27055 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27056 $as_echo "$ac_try_echo") >&5
27057 (eval "$ac_try") 2>&5
27059 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27060 (exit $ac_status); }; }; then
27061 bash_cv_type_rlimit=quad_t
27063 $as_echo "$as_me: program exited with status $ac_status" >&5
27064 $as_echo "$as_me: failed program was:" >&5
27065 sed 's/^/| /' conftest.$ac_ext >&5
27067 ( exit $ac_status )
27068 bash_cv_type_rlimit=long
27070 rm -rf conftest.dSYM
27071 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27077 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27081 { $as_echo "$as_me:$LINENO: result: $bash_cv_type_rlimit" >&5
27082 $as_echo "$bash_cv_type_rlimit" >&6; }
27083 if test $bash_cv_type_rlimit = quad_t; then
27084 cat >>confdefs.h <<\_ACEOF
27085 @%:@define RLIMTYPE quad_t
27088 elif test $bash_cv_type_rlimit = rlim_t; then
27089 cat >>confdefs.h <<\_ACEOF
27090 @%:@define RLIMTYPE rlim_t
27096 # The cast to long int works around a bug in the HP C Compiler
27097 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27098 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27099 # This bug is HP SR number 8606223364.
27100 { $as_echo "$as_me:$LINENO: checking size of intmax_t" >&5
27101 $as_echo_n "checking size of intmax_t... " >&6; }
27102 if test "${ac_cv_sizeof_intmax_t+set}" = set; then
27103 $as_echo_n "(cached) " >&6
27105 if test "$cross_compiling" = yes; then
27106 # Depending upon the size, compute the lo and hi bounds.
27107 cat >conftest.$ac_ext <<_ACEOF
27110 cat confdefs.h >>conftest.$ac_ext
27111 cat >>conftest.$ac_ext <<_ACEOF
27112 /* end confdefs.h. */
27113 $ac_includes_default
27117 static int test_array @<:@1 - 2 * !(((long int) (sizeof (intmax_t))) >= 0)@:>@;
27118 test_array @<:@0@:>@ = 0
27124 rm -f conftest.$ac_objext
27125 if { (ac_try="$ac_compile"
27126 case "(($ac_try" in
27127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27128 *) ac_try_echo=$ac_try;;
27130 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27131 $as_echo "$ac_try_echo") >&5
27132 (eval "$ac_compile") 2>conftest.er1
27134 grep -v '^ *+' conftest.er1 >conftest.err
27136 cat conftest.err >&5
27137 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27138 (exit $ac_status); } && {
27139 test -z "$ac_c_werror_flag" ||
27140 test ! -s conftest.err
27141 } && test -s conftest.$ac_objext; then
27144 cat >conftest.$ac_ext <<_ACEOF
27147 cat confdefs.h >>conftest.$ac_ext
27148 cat >>conftest.$ac_ext <<_ACEOF
27149 /* end confdefs.h. */
27150 $ac_includes_default
27154 static int test_array @<:@1 - 2 * !(((long int) (sizeof (intmax_t))) <= $ac_mid)@:>@;
27155 test_array @<:@0@:>@ = 0
27161 rm -f conftest.$ac_objext
27162 if { (ac_try="$ac_compile"
27163 case "(($ac_try" in
27164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27165 *) ac_try_echo=$ac_try;;
27167 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27168 $as_echo "$ac_try_echo") >&5
27169 (eval "$ac_compile") 2>conftest.er1
27171 grep -v '^ *+' conftest.er1 >conftest.err
27173 cat conftest.err >&5
27174 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27175 (exit $ac_status); } && {
27176 test -z "$ac_c_werror_flag" ||
27177 test ! -s conftest.err
27178 } && test -s conftest.$ac_objext; then
27179 ac_hi=$ac_mid; break
27181 $as_echo "$as_me: failed program was:" >&5
27182 sed 's/^/| /' conftest.$ac_ext >&5
27184 ac_lo=`expr $ac_mid + 1`
27185 if test $ac_lo -le $ac_mid; then
27189 ac_mid=`expr 2 '*' $ac_mid + 1`
27192 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27195 $as_echo "$as_me: failed program was:" >&5
27196 sed 's/^/| /' conftest.$ac_ext >&5
27198 cat >conftest.$ac_ext <<_ACEOF
27201 cat confdefs.h >>conftest.$ac_ext
27202 cat >>conftest.$ac_ext <<_ACEOF
27203 /* end confdefs.h. */
27204 $ac_includes_default
27208 static int test_array @<:@1 - 2 * !(((long int) (sizeof (intmax_t))) < 0)@:>@;
27209 test_array @<:@0@:>@ = 0
27215 rm -f conftest.$ac_objext
27216 if { (ac_try="$ac_compile"
27217 case "(($ac_try" in
27218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27219 *) ac_try_echo=$ac_try;;
27221 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27222 $as_echo "$ac_try_echo") >&5
27223 (eval "$ac_compile") 2>conftest.er1
27225 grep -v '^ *+' conftest.er1 >conftest.err
27227 cat conftest.err >&5
27228 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27229 (exit $ac_status); } && {
27230 test -z "$ac_c_werror_flag" ||
27231 test ! -s conftest.err
27232 } && test -s conftest.$ac_objext; then
27235 cat >conftest.$ac_ext <<_ACEOF
27238 cat confdefs.h >>conftest.$ac_ext
27239 cat >>conftest.$ac_ext <<_ACEOF
27240 /* end confdefs.h. */
27241 $ac_includes_default
27245 static int test_array @<:@1 - 2 * !(((long int) (sizeof (intmax_t))) >= $ac_mid)@:>@;
27246 test_array @<:@0@:>@ = 0
27252 rm -f conftest.$ac_objext
27253 if { (ac_try="$ac_compile"
27254 case "(($ac_try" in
27255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27256 *) ac_try_echo=$ac_try;;
27258 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27259 $as_echo "$ac_try_echo") >&5
27260 (eval "$ac_compile") 2>conftest.er1
27262 grep -v '^ *+' conftest.er1 >conftest.err
27264 cat conftest.err >&5
27265 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27266 (exit $ac_status); } && {
27267 test -z "$ac_c_werror_flag" ||
27268 test ! -s conftest.err
27269 } && test -s conftest.$ac_objext; then
27270 ac_lo=$ac_mid; break
27272 $as_echo "$as_me: failed program was:" >&5
27273 sed 's/^/| /' conftest.$ac_ext >&5
27275 ac_hi=`expr '(' $ac_mid ')' - 1`
27276 if test $ac_mid -le $ac_hi; then
27280 ac_mid=`expr 2 '*' $ac_mid`
27283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27286 $as_echo "$as_me: failed program was:" >&5
27287 sed 's/^/| /' conftest.$ac_ext >&5
27292 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27295 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27296 # Binary search between lo and hi bounds.
27297 while test "x$ac_lo" != "x$ac_hi"; do
27298 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
27299 cat >conftest.$ac_ext <<_ACEOF
27302 cat confdefs.h >>conftest.$ac_ext
27303 cat >>conftest.$ac_ext <<_ACEOF
27304 /* end confdefs.h. */
27305 $ac_includes_default
27309 static int test_array @<:@1 - 2 * !(((long int) (sizeof (intmax_t))) <= $ac_mid)@:>@;
27310 test_array @<:@0@:>@ = 0
27316 rm -f conftest.$ac_objext
27317 if { (ac_try="$ac_compile"
27318 case "(($ac_try" in
27319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27320 *) ac_try_echo=$ac_try;;
27322 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27323 $as_echo "$ac_try_echo") >&5
27324 (eval "$ac_compile") 2>conftest.er1
27326 grep -v '^ *+' conftest.er1 >conftest.err
27328 cat conftest.err >&5
27329 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27330 (exit $ac_status); } && {
27331 test -z "$ac_c_werror_flag" ||
27332 test ! -s conftest.err
27333 } && test -s conftest.$ac_objext; then
27336 $as_echo "$as_me: failed program was:" >&5
27337 sed 's/^/| /' conftest.$ac_ext >&5
27339 ac_lo=`expr '(' $ac_mid ')' + 1`
27342 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27345 ?*) ac_cv_sizeof_intmax_t=$ac_lo;;
27346 '') if test "$ac_cv_type_intmax_t" = yes; then
27347 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
27348 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27349 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (intmax_t)
27350 See \`config.log' for more details." >&5
27351 $as_echo "$as_me: error: cannot compute sizeof (intmax_t)
27352 See \`config.log' for more details." >&2;}
27353 { (exit 77); exit 77; }; }; }
27355 ac_cv_sizeof_intmax_t=0
27359 cat >conftest.$ac_ext <<_ACEOF
27362 cat confdefs.h >>conftest.$ac_ext
27363 cat >>conftest.$ac_ext <<_ACEOF
27364 /* end confdefs.h. */
27365 $ac_includes_default
27366 static long int longval () { return (long int) (sizeof (intmax_t)); }
27367 static unsigned long int ulongval () { return (long int) (sizeof (intmax_t)); }
27368 @%:@include <stdio.h>
27369 @%:@include <stdlib.h>
27374 FILE *f = fopen ("conftest.val", "w");
27377 if (((long int) (sizeof (intmax_t))) < 0)
27379 long int i = longval ();
27380 if (i != ((long int) (sizeof (intmax_t))))
27382 fprintf (f, "%ld", i);
27386 unsigned long int i = ulongval ();
27387 if (i != ((long int) (sizeof (intmax_t))))
27389 fprintf (f, "%lu", i);
27391 /* Do not output a trailing newline, as this causes \r\n confusion
27392 on some platforms. */
27393 return ferror (f) || fclose (f) != 0;
27399 rm -f conftest$ac_exeext
27400 if { (ac_try="$ac_link"
27401 case "(($ac_try" in
27402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27403 *) ac_try_echo=$ac_try;;
27405 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27406 $as_echo "$ac_try_echo") >&5
27407 (eval "$ac_link") 2>&5
27409 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27410 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27411 { (case "(($ac_try" in
27412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27413 *) ac_try_echo=$ac_try;;
27415 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27416 $as_echo "$ac_try_echo") >&5
27417 (eval "$ac_try") 2>&5
27419 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27420 (exit $ac_status); }; }; then
27421 ac_cv_sizeof_intmax_t=`cat conftest.val`
27423 $as_echo "$as_me: program exited with status $ac_status" >&5
27424 $as_echo "$as_me: failed program was:" >&5
27425 sed 's/^/| /' conftest.$ac_ext >&5
27427 ( exit $ac_status )
27428 if test "$ac_cv_type_intmax_t" = yes; then
27429 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
27430 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27431 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (intmax_t)
27432 See \`config.log' for more details." >&5
27433 $as_echo "$as_me: error: cannot compute sizeof (intmax_t)
27434 See \`config.log' for more details." >&2;}
27435 { (exit 77); exit 77; }; }; }
27437 ac_cv_sizeof_intmax_t=0
27440 rm -rf conftest.dSYM
27441 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27445 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_intmax_t" >&5
27446 $as_echo "$ac_cv_sizeof_intmax_t" >&6; }
27450 cat >>confdefs.h <<_ACEOF
27451 @%:@define SIZEOF_INTMAX_T $ac_cv_sizeof_intmax_t
27457 { $as_echo "$as_me:$LINENO: checking for struct termios.c_line" >&5
27458 $as_echo_n "checking for struct termios.c_line... " >&6; }
27459 if test "${ac_cv_member_struct_termios_c_line+set}" = set; then
27460 $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. */
27469 #include <sys/types.h>
27470 #include <termios.h>
27476 static struct termios ac_aggr;
27477 if (ac_aggr.c_line)
27483 rm -f conftest.$ac_objext
27484 if { (ac_try="$ac_compile"
27485 case "(($ac_try" in
27486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27487 *) ac_try_echo=$ac_try;;
27489 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27490 $as_echo "$ac_try_echo") >&5
27491 (eval "$ac_compile") 2>conftest.er1
27493 grep -v '^ *+' conftest.er1 >conftest.err
27495 cat conftest.err >&5
27496 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27497 (exit $ac_status); } && {
27498 test -z "$ac_c_werror_flag" ||
27499 test ! -s conftest.err
27500 } && test -s conftest.$ac_objext; then
27501 ac_cv_member_struct_termios_c_line=yes
27503 $as_echo "$as_me: failed program was:" >&5
27504 sed 's/^/| /' conftest.$ac_ext >&5
27506 cat >conftest.$ac_ext <<_ACEOF
27509 cat confdefs.h >>conftest.$ac_ext
27510 cat >>conftest.$ac_ext <<_ACEOF
27511 /* end confdefs.h. */
27513 #include <sys/types.h>
27514 #include <termios.h>
27520 static struct termios ac_aggr;
27521 if (sizeof ac_aggr.c_line)
27527 rm -f conftest.$ac_objext
27528 if { (ac_try="$ac_compile"
27529 case "(($ac_try" in
27530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27531 *) ac_try_echo=$ac_try;;
27533 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27534 $as_echo "$ac_try_echo") >&5
27535 (eval "$ac_compile") 2>conftest.er1
27537 grep -v '^ *+' conftest.er1 >conftest.err
27539 cat conftest.err >&5
27540 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27541 (exit $ac_status); } && {
27542 test -z "$ac_c_werror_flag" ||
27543 test ! -s conftest.err
27544 } && test -s conftest.$ac_objext; then
27545 ac_cv_member_struct_termios_c_line=yes
27547 $as_echo "$as_me: failed program was:" >&5
27548 sed 's/^/| /' conftest.$ac_ext >&5
27550 ac_cv_member_struct_termios_c_line=no
27553 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27556 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27558 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_termios_c_line" >&5
27559 $as_echo "$ac_cv_member_struct_termios_c_line" >&6; }
27560 if test "x$ac_cv_member_struct_termios_c_line" = x""yes; then
27561 cat >>confdefs.h <<\_ACEOF
27562 @%:@define TERMIOS_LDISC 1
27569 { $as_echo "$as_me:$LINENO: checking for struct termio.c_line" >&5
27570 $as_echo_n "checking for struct termio.c_line... " >&6; }
27571 if test "${ac_cv_member_struct_termio_c_line+set}" = set; then
27572 $as_echo_n "(cached) " >&6
27574 cat >conftest.$ac_ext <<_ACEOF
27577 cat confdefs.h >>conftest.$ac_ext
27578 cat >>conftest.$ac_ext <<_ACEOF
27579 /* end confdefs.h. */
27581 #include <sys/types.h>
27582 #include <termio.h>
27588 static struct termio ac_aggr;
27589 if (ac_aggr.c_line)
27595 rm -f conftest.$ac_objext
27596 if { (ac_try="$ac_compile"
27597 case "(($ac_try" in
27598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27599 *) ac_try_echo=$ac_try;;
27601 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27602 $as_echo "$ac_try_echo") >&5
27603 (eval "$ac_compile") 2>conftest.er1
27605 grep -v '^ *+' conftest.er1 >conftest.err
27607 cat conftest.err >&5
27608 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27609 (exit $ac_status); } && {
27610 test -z "$ac_c_werror_flag" ||
27611 test ! -s conftest.err
27612 } && test -s conftest.$ac_objext; then
27613 ac_cv_member_struct_termio_c_line=yes
27615 $as_echo "$as_me: failed program was:" >&5
27616 sed 's/^/| /' conftest.$ac_ext >&5
27618 cat >conftest.$ac_ext <<_ACEOF
27621 cat confdefs.h >>conftest.$ac_ext
27622 cat >>conftest.$ac_ext <<_ACEOF
27623 /* end confdefs.h. */
27625 #include <sys/types.h>
27626 #include <termio.h>
27632 static struct termio ac_aggr;
27633 if (sizeof ac_aggr.c_line)
27639 rm -f conftest.$ac_objext
27640 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
27649 grep -v '^ *+' conftest.er1 >conftest.err
27651 cat conftest.err >&5
27652 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27653 (exit $ac_status); } && {
27654 test -z "$ac_c_werror_flag" ||
27655 test ! -s conftest.err
27656 } && test -s conftest.$ac_objext; then
27657 ac_cv_member_struct_termio_c_line=yes
27659 $as_echo "$as_me: failed program was:" >&5
27660 sed 's/^/| /' conftest.$ac_ext >&5
27662 ac_cv_member_struct_termio_c_line=no
27665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27668 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27670 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_termio_c_line" >&5
27671 $as_echo "$ac_cv_member_struct_termio_c_line" >&6; }
27672 if test "x$ac_cv_member_struct_termio_c_line" = x""yes; then
27673 cat >>confdefs.h <<\_ACEOF
27674 @%:@define TERMIO_LDISC 1
27681 { $as_echo "$as_me:$LINENO: checking for struct dirent.d_ino" >&5
27682 $as_echo_n "checking for struct dirent.d_ino... " >&6; }
27683 if test "${bash_cv_dirent_has_dino+set}" = set; then
27684 $as_echo_n "(cached) " >&6
27686 cat >conftest.$ac_ext <<_ACEOF
27689 cat confdefs.h >>conftest.$ac_ext
27690 cat >>conftest.$ac_ext <<_ACEOF
27691 /* end confdefs.h. */
27694 #include <sys/types.h>
27695 #ifdef HAVE_UNISTD_H
27696 # include <unistd.h>
27697 #endif /* HAVE_UNISTD_H */
27698 #if defined(HAVE_DIRENT_H)
27699 # include <dirent.h>
27701 # define dirent direct
27702 # ifdef HAVE_SYS_NDIR_H
27703 # include <sys/ndir.h>
27704 # endif /* SYSNDIR */
27705 # ifdef HAVE_SYS_DIR_H
27706 # include <sys/dir.h>
27707 # endif /* SYSDIR */
27708 # ifdef HAVE_NDIR_H
27711 #endif /* HAVE_DIRENT_H */
27717 struct dirent d; int z; z = d.d_ino;
27723 rm -f conftest.$ac_objext
27724 if { (ac_try="$ac_compile"
27725 case "(($ac_try" in
27726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27727 *) ac_try_echo=$ac_try;;
27729 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27730 $as_echo "$ac_try_echo") >&5
27731 (eval "$ac_compile") 2>conftest.er1
27733 grep -v '^ *+' conftest.er1 >conftest.err
27735 cat conftest.err >&5
27736 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27737 (exit $ac_status); } && {
27738 test -z "$ac_c_werror_flag" ||
27739 test ! -s conftest.err
27740 } && test -s conftest.$ac_objext; then
27741 bash_cv_dirent_has_dino=yes
27743 $as_echo "$as_me: failed program was:" >&5
27744 sed 's/^/| /' conftest.$ac_ext >&5
27746 bash_cv_dirent_has_dino=no
27749 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27752 { $as_echo "$as_me:$LINENO: result: $bash_cv_dirent_has_dino" >&5
27753 $as_echo "$bash_cv_dirent_has_dino" >&6; }
27754 if test $bash_cv_dirent_has_dino = yes; then
27755 cat >>confdefs.h <<\_ACEOF
27756 @%:@define HAVE_STRUCT_DIRENT_D_INO 1
27762 { $as_echo "$as_me:$LINENO: checking for struct dirent.d_fileno" >&5
27763 $as_echo_n "checking for struct dirent.d_fileno... " >&6; }
27764 if test "${bash_cv_dirent_has_d_fileno+set}" = set; then
27765 $as_echo_n "(cached) " >&6
27767 cat >conftest.$ac_ext <<_ACEOF
27770 cat confdefs.h >>conftest.$ac_ext
27771 cat >>conftest.$ac_ext <<_ACEOF
27772 /* end confdefs.h. */
27775 #include <sys/types.h>
27776 #ifdef HAVE_UNISTD_H
27777 # include <unistd.h>
27778 #endif /* HAVE_UNISTD_H */
27779 #if defined(HAVE_DIRENT_H)
27780 # include <dirent.h>
27782 # define dirent direct
27783 # ifdef HAVE_SYS_NDIR_H
27784 # include <sys/ndir.h>
27785 # endif /* SYSNDIR */
27786 # ifdef HAVE_SYS_DIR_H
27787 # include <sys/dir.h>
27788 # endif /* SYSDIR */
27789 # ifdef HAVE_NDIR_H
27792 #endif /* HAVE_DIRENT_H */
27798 struct dirent d; int z; z = d.d_fileno;
27804 rm -f conftest.$ac_objext
27805 if { (ac_try="$ac_compile"
27806 case "(($ac_try" in
27807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27808 *) ac_try_echo=$ac_try;;
27810 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27811 $as_echo "$ac_try_echo") >&5
27812 (eval "$ac_compile") 2>conftest.er1
27814 grep -v '^ *+' conftest.er1 >conftest.err
27816 cat conftest.err >&5
27817 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27818 (exit $ac_status); } && {
27819 test -z "$ac_c_werror_flag" ||
27820 test ! -s conftest.err
27821 } && test -s conftest.$ac_objext; then
27822 bash_cv_dirent_has_d_fileno=yes
27824 $as_echo "$as_me: failed program was:" >&5
27825 sed 's/^/| /' conftest.$ac_ext >&5
27827 bash_cv_dirent_has_d_fileno=no
27830 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27833 { $as_echo "$as_me:$LINENO: result: $bash_cv_dirent_has_d_fileno" >&5
27834 $as_echo "$bash_cv_dirent_has_d_fileno" >&6; }
27835 if test $bash_cv_dirent_has_d_fileno = yes; then
27836 cat >>confdefs.h <<\_ACEOF
27837 @%:@define HAVE_STRUCT_DIRENT_D_FILENO 1
27843 { $as_echo "$as_me:$LINENO: checking for struct dirent.d_namlen" >&5
27844 $as_echo_n "checking for struct dirent.d_namlen... " >&6; }
27845 if test "${bash_cv_dirent_has_d_namlen+set}" = set; then
27846 $as_echo_n "(cached) " >&6
27848 cat >conftest.$ac_ext <<_ACEOF
27851 cat confdefs.h >>conftest.$ac_ext
27852 cat >>conftest.$ac_ext <<_ACEOF
27853 /* end confdefs.h. */
27856 #include <sys/types.h>
27857 #ifdef HAVE_UNISTD_H
27858 # include <unistd.h>
27859 #endif /* HAVE_UNISTD_H */
27860 #if defined(HAVE_DIRENT_H)
27861 # include <dirent.h>
27863 # define dirent direct
27864 # ifdef HAVE_SYS_NDIR_H
27865 # include <sys/ndir.h>
27866 # endif /* SYSNDIR */
27867 # ifdef HAVE_SYS_DIR_H
27868 # include <sys/dir.h>
27869 # endif /* SYSDIR */
27870 # ifdef HAVE_NDIR_H
27873 #endif /* HAVE_DIRENT_H */
27879 struct dirent d; int z; z = d.d_namlen;
27885 rm -f conftest.$ac_objext
27886 if { (ac_try="$ac_compile"
27887 case "(($ac_try" in
27888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27889 *) ac_try_echo=$ac_try;;
27891 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27892 $as_echo "$ac_try_echo") >&5
27893 (eval "$ac_compile") 2>conftest.er1
27895 grep -v '^ *+' conftest.er1 >conftest.err
27897 cat conftest.err >&5
27898 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27899 (exit $ac_status); } && {
27900 test -z "$ac_c_werror_flag" ||
27901 test ! -s conftest.err
27902 } && test -s conftest.$ac_objext; then
27903 bash_cv_dirent_has_d_namlen=yes
27905 $as_echo "$as_me: failed program was:" >&5
27906 sed 's/^/| /' conftest.$ac_ext >&5
27908 bash_cv_dirent_has_d_namlen=no
27911 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27914 { $as_echo "$as_me:$LINENO: result: $bash_cv_dirent_has_d_namlen" >&5
27915 $as_echo "$bash_cv_dirent_has_d_namlen" >&6; }
27916 if test $bash_cv_dirent_has_d_namlen = yes; then
27917 cat >>confdefs.h <<\_ACEOF
27918 @%:@define HAVE_STRUCT_DIRENT_D_NAMLEN 1
27923 { $as_echo "$as_me:$LINENO: checking for struct winsize in sys/ioctl.h and termios.h" >&5
27924 $as_echo_n "checking for struct winsize in sys/ioctl.h and termios.h... " >&6; }
27925 if test "${bash_cv_struct_winsize_header+set}" = set; then
27926 $as_echo_n "(cached) " >&6
27928 cat >conftest.$ac_ext <<_ACEOF
27931 cat confdefs.h >>conftest.$ac_ext
27932 cat >>conftest.$ac_ext <<_ACEOF
27933 /* end confdefs.h. */
27934 #include <sys/types.h>
27935 #include <sys/ioctl.h>
27944 rm -f conftest.$ac_objext
27945 if { (ac_try="$ac_compile"
27946 case "(($ac_try" in
27947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27948 *) ac_try_echo=$ac_try;;
27950 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27951 $as_echo "$ac_try_echo") >&5
27952 (eval "$ac_compile") 2>conftest.er1
27954 grep -v '^ *+' conftest.er1 >conftest.err
27956 cat conftest.err >&5
27957 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27958 (exit $ac_status); } && {
27959 test -z "$ac_c_werror_flag" ||
27960 test ! -s conftest.err
27961 } && test -s conftest.$ac_objext; then
27962 bash_cv_struct_winsize_header=ioctl_h
27964 $as_echo "$as_me: failed program was:" >&5
27965 sed 's/^/| /' conftest.$ac_ext >&5
27967 cat >conftest.$ac_ext <<_ACEOF
27970 cat confdefs.h >>conftest.$ac_ext
27971 cat >>conftest.$ac_ext <<_ACEOF
27972 /* end confdefs.h. */
27973 #include <sys/types.h>
27974 #include <termios.h>
27983 rm -f conftest.$ac_objext
27984 if { (ac_try="$ac_compile"
27985 case "(($ac_try" in
27986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27987 *) ac_try_echo=$ac_try;;
27989 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27990 $as_echo "$ac_try_echo") >&5
27991 (eval "$ac_compile") 2>conftest.er1
27993 grep -v '^ *+' conftest.er1 >conftest.err
27995 cat conftest.err >&5
27996 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27997 (exit $ac_status); } && {
27998 test -z "$ac_c_werror_flag" ||
27999 test ! -s conftest.err
28000 } && test -s conftest.$ac_objext; then
28001 bash_cv_struct_winsize_header=termios_h
28003 $as_echo "$as_me: failed program was:" >&5
28004 sed 's/^/| /' conftest.$ac_ext >&5
28006 bash_cv_struct_winsize_header=other
28009 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28013 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28016 if test $bash_cv_struct_winsize_header = ioctl_h; then
28017 { $as_echo "$as_me:$LINENO: result: sys/ioctl.h" >&5
28018 $as_echo "sys/ioctl.h" >&6; }
28019 cat >>confdefs.h <<\_ACEOF
28020 @%:@define STRUCT_WINSIZE_IN_SYS_IOCTL 1
28023 elif test $bash_cv_struct_winsize_header = termios_h; then
28024 { $as_echo "$as_me:$LINENO: result: termios.h" >&5
28025 $as_echo "termios.h" >&6; }
28026 cat >>confdefs.h <<\_ACEOF
28027 @%:@define STRUCT_WINSIZE_IN_TERMIOS 1
28031 { $as_echo "$as_me:$LINENO: result: not found" >&5
28032 $as_echo "not found" >&6; }
28035 { $as_echo "$as_me:$LINENO: checking for struct timeval in sys/time.h and time.h" >&5
28036 $as_echo_n "checking for struct timeval in sys/time.h and time.h... " >&6; }
28037 if test "${bash_cv_struct_timeval+set}" = set; then
28038 $as_echo_n "(cached) " >&6
28041 cat >conftest.$ac_ext <<_ACEOF
28044 cat confdefs.h >>conftest.$ac_ext
28045 cat >>conftest.$ac_ext <<_ACEOF
28046 /* end confdefs.h. */
28047 #include <sys/time.h>
28050 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28051 $EGREP "struct timeval" >/dev/null 2>&1; then
28052 bash_cv_struct_timeval=yes
28054 cat >conftest.$ac_ext <<_ACEOF
28057 cat confdefs.h >>conftest.$ac_ext
28058 cat >>conftest.$ac_ext <<_ACEOF
28059 /* end confdefs.h. */
28063 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28064 $EGREP "struct timeval" >/dev/null 2>&1; then
28065 bash_cv_struct_timeval=yes
28067 bash_cv_struct_timeval=no
28077 { $as_echo "$as_me:$LINENO: result: $bash_cv_struct_timeval" >&5
28078 $as_echo "$bash_cv_struct_timeval" >&6; }
28079 if test $bash_cv_struct_timeval = yes; then
28080 cat >>confdefs.h <<\_ACEOF
28081 @%:@define HAVE_TIMEVAL 1
28086 { $as_echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
28087 $as_echo_n "checking for struct stat.st_blocks... " >&6; }
28088 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
28089 $as_echo_n "(cached) " >&6
28091 cat >conftest.$ac_ext <<_ACEOF
28094 cat confdefs.h >>conftest.$ac_ext
28095 cat >>conftest.$ac_ext <<_ACEOF
28096 /* end confdefs.h. */
28097 $ac_includes_default
28101 static struct stat ac_aggr;
28102 if (ac_aggr.st_blocks)
28108 rm -f conftest.$ac_objext
28109 if { (ac_try="$ac_compile"
28110 case "(($ac_try" in
28111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28112 *) ac_try_echo=$ac_try;;
28114 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28115 $as_echo "$ac_try_echo") >&5
28116 (eval "$ac_compile") 2>conftest.er1
28118 grep -v '^ *+' conftest.er1 >conftest.err
28120 cat conftest.err >&5
28121 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28122 (exit $ac_status); } && {
28123 test -z "$ac_c_werror_flag" ||
28124 test ! -s conftest.err
28125 } && test -s conftest.$ac_objext; then
28126 ac_cv_member_struct_stat_st_blocks=yes
28128 $as_echo "$as_me: failed program was:" >&5
28129 sed 's/^/| /' conftest.$ac_ext >&5
28131 cat >conftest.$ac_ext <<_ACEOF
28134 cat confdefs.h >>conftest.$ac_ext
28135 cat >>conftest.$ac_ext <<_ACEOF
28136 /* end confdefs.h. */
28137 $ac_includes_default
28141 static struct stat ac_aggr;
28142 if (sizeof ac_aggr.st_blocks)
28148 rm -f conftest.$ac_objext
28149 if { (ac_try="$ac_compile"
28150 case "(($ac_try" in
28151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28152 *) ac_try_echo=$ac_try;;
28154 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28155 $as_echo "$ac_try_echo") >&5
28156 (eval "$ac_compile") 2>conftest.er1
28158 grep -v '^ *+' conftest.er1 >conftest.err
28160 cat conftest.err >&5
28161 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28162 (exit $ac_status); } && {
28163 test -z "$ac_c_werror_flag" ||
28164 test ! -s conftest.err
28165 } && test -s conftest.$ac_objext; then
28166 ac_cv_member_struct_stat_st_blocks=yes
28168 $as_echo "$as_me: failed program was:" >&5
28169 sed 's/^/| /' conftest.$ac_ext >&5
28171 ac_cv_member_struct_stat_st_blocks=no
28174 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28177 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28179 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
28180 $as_echo "$ac_cv_member_struct_stat_st_blocks" >&6; }
28181 if test "x$ac_cv_member_struct_stat_st_blocks" = x""yes; then
28183 cat >>confdefs.h <<_ACEOF
28184 @%:@define HAVE_STRUCT_STAT_ST_BLOCKS 1
28190 { $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
28191 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
28192 if test "${ac_cv_struct_tm+set}" = set; then
28193 $as_echo_n "(cached) " >&6
28195 cat >conftest.$ac_ext <<_ACEOF
28198 cat confdefs.h >>conftest.$ac_ext
28199 cat >>conftest.$ac_ext <<_ACEOF
28200 /* end confdefs.h. */
28201 #include <sys/types.h>
28208 int *p = &tm.tm_sec;
28214 rm -f conftest.$ac_objext
28215 if { (ac_try="$ac_compile"
28216 case "(($ac_try" in
28217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28218 *) ac_try_echo=$ac_try;;
28220 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28221 $as_echo "$ac_try_echo") >&5
28222 (eval "$ac_compile") 2>conftest.er1
28224 grep -v '^ *+' conftest.er1 >conftest.err
28226 cat conftest.err >&5
28227 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28228 (exit $ac_status); } && {
28229 test -z "$ac_c_werror_flag" ||
28230 test ! -s conftest.err
28231 } && test -s conftest.$ac_objext; then
28232 ac_cv_struct_tm=time.h
28234 $as_echo "$as_me: failed program was:" >&5
28235 sed 's/^/| /' conftest.$ac_ext >&5
28237 ac_cv_struct_tm=sys/time.h
28240 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28242 { $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
28243 $as_echo "$ac_cv_struct_tm" >&6; }
28244 if test $ac_cv_struct_tm = sys/time.h; then
28246 cat >>confdefs.h <<\_ACEOF
28247 @%:@define TM_IN_SYS_TIME 1
28252 { $as_echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
28253 $as_echo_n "checking for struct tm.tm_zone... " >&6; }
28254 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
28255 $as_echo_n "(cached) " >&6
28257 cat >conftest.$ac_ext <<_ACEOF
28260 cat confdefs.h >>conftest.$ac_ext
28261 cat >>conftest.$ac_ext <<_ACEOF
28262 /* end confdefs.h. */
28263 #include <sys/types.h>
28264 #include <$ac_cv_struct_tm>
28270 static struct tm ac_aggr;
28271 if (ac_aggr.tm_zone)
28277 rm -f conftest.$ac_objext
28278 if { (ac_try="$ac_compile"
28279 case "(($ac_try" in
28280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28281 *) ac_try_echo=$ac_try;;
28283 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28284 $as_echo "$ac_try_echo") >&5
28285 (eval "$ac_compile") 2>conftest.er1
28287 grep -v '^ *+' conftest.er1 >conftest.err
28289 cat conftest.err >&5
28290 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28291 (exit $ac_status); } && {
28292 test -z "$ac_c_werror_flag" ||
28293 test ! -s conftest.err
28294 } && test -s conftest.$ac_objext; then
28295 ac_cv_member_struct_tm_tm_zone=yes
28297 $as_echo "$as_me: failed program was:" >&5
28298 sed 's/^/| /' conftest.$ac_ext >&5
28300 cat >conftest.$ac_ext <<_ACEOF
28303 cat confdefs.h >>conftest.$ac_ext
28304 cat >>conftest.$ac_ext <<_ACEOF
28305 /* end confdefs.h. */
28306 #include <sys/types.h>
28307 #include <$ac_cv_struct_tm>
28313 static struct tm ac_aggr;
28314 if (sizeof ac_aggr.tm_zone)
28320 rm -f conftest.$ac_objext
28321 if { (ac_try="$ac_compile"
28322 case "(($ac_try" in
28323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28324 *) ac_try_echo=$ac_try;;
28326 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28327 $as_echo "$ac_try_echo") >&5
28328 (eval "$ac_compile") 2>conftest.er1
28330 grep -v '^ *+' conftest.er1 >conftest.err
28332 cat conftest.err >&5
28333 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28334 (exit $ac_status); } && {
28335 test -z "$ac_c_werror_flag" ||
28336 test ! -s conftest.err
28337 } && test -s conftest.$ac_objext; then
28338 ac_cv_member_struct_tm_tm_zone=yes
28340 $as_echo "$as_me: failed program was:" >&5
28341 sed 's/^/| /' conftest.$ac_ext >&5
28343 ac_cv_member_struct_tm_tm_zone=no
28346 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28349 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28351 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
28352 $as_echo "$ac_cv_member_struct_tm_tm_zone" >&6; }
28353 if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then
28355 cat >>confdefs.h <<_ACEOF
28356 @%:@define HAVE_STRUCT_TM_TM_ZONE 1
28362 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
28364 cat >>confdefs.h <<\_ACEOF
28365 @%:@define HAVE_TM_ZONE 1
28369 { $as_echo "$as_me:$LINENO: checking whether tzname is declared" >&5
28370 $as_echo_n "checking whether tzname is declared... " >&6; }
28371 if test "${ac_cv_have_decl_tzname+set}" = set; then
28372 $as_echo_n "(cached) " >&6
28374 cat >conftest.$ac_ext <<_ACEOF
28377 cat confdefs.h >>conftest.$ac_ext
28378 cat >>conftest.$ac_ext <<_ACEOF
28379 /* end confdefs.h. */
28393 rm -f conftest.$ac_objext
28394 if { (ac_try="$ac_compile"
28395 case "(($ac_try" in
28396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28397 *) ac_try_echo=$ac_try;;
28399 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28400 $as_echo "$ac_try_echo") >&5
28401 (eval "$ac_compile") 2>conftest.er1
28403 grep -v '^ *+' conftest.er1 >conftest.err
28405 cat conftest.err >&5
28406 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28407 (exit $ac_status); } && {
28408 test -z "$ac_c_werror_flag" ||
28409 test ! -s conftest.err
28410 } && test -s conftest.$ac_objext; then
28411 ac_cv_have_decl_tzname=yes
28413 $as_echo "$as_me: failed program was:" >&5
28414 sed 's/^/| /' conftest.$ac_ext >&5
28416 ac_cv_have_decl_tzname=no
28419 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28421 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
28422 $as_echo "$ac_cv_have_decl_tzname" >&6; }
28423 if test "x$ac_cv_have_decl_tzname" = x""yes; then
28425 cat >>confdefs.h <<_ACEOF
28426 @%:@define HAVE_DECL_TZNAME 1
28431 cat >>confdefs.h <<_ACEOF
28432 @%:@define HAVE_DECL_TZNAME 0
28439 { $as_echo "$as_me:$LINENO: checking for tzname" >&5
28440 $as_echo_n "checking for tzname... " >&6; }
28441 if test "${ac_cv_var_tzname+set}" = set; then
28442 $as_echo_n "(cached) " >&6
28444 cat >conftest.$ac_ext <<_ACEOF
28447 cat confdefs.h >>conftest.$ac_ext
28448 cat >>conftest.$ac_ext <<_ACEOF
28449 /* end confdefs.h. */
28451 #if !HAVE_DECL_TZNAME
28452 extern char *tzname[];
28458 return tzname[0][0];
28463 rm -f conftest.$ac_objext conftest$ac_exeext
28464 if { (ac_try="$ac_link"
28465 case "(($ac_try" in
28466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28467 *) ac_try_echo=$ac_try;;
28469 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28470 $as_echo "$ac_try_echo") >&5
28471 (eval "$ac_link") 2>conftest.er1
28473 grep -v '^ *+' conftest.er1 >conftest.err
28475 cat conftest.err >&5
28476 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28477 (exit $ac_status); } && {
28478 test -z "$ac_c_werror_flag" ||
28479 test ! -s conftest.err
28480 } && test -s conftest$ac_exeext && {
28481 test "$cross_compiling" = yes ||
28482 $as_test_x conftest$ac_exeext
28484 ac_cv_var_tzname=yes
28486 $as_echo "$as_me: failed program was:" >&5
28487 sed 's/^/| /' conftest.$ac_ext >&5
28489 ac_cv_var_tzname=no
28492 rm -rf conftest.dSYM
28493 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28494 conftest$ac_exeext conftest.$ac_ext
28496 { $as_echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
28497 $as_echo "$ac_cv_var_tzname" >&6; }
28498 if test $ac_cv_var_tzname = yes; then
28500 cat >>confdefs.h <<\_ACEOF
28501 @%:@define HAVE_TZNAME 1
28507 { $as_echo "$as_me:$LINENO: checking for struct timezone in sys/time.h and time.h" >&5
28508 $as_echo_n "checking for struct timezone in sys/time.h and time.h... " >&6; }
28509 if test "${bash_cv_struct_timezone+set}" = set; then
28510 $as_echo_n "(cached) " >&6
28513 cat >conftest.$ac_ext <<_ACEOF
28516 cat confdefs.h >>conftest.$ac_ext
28517 cat >>conftest.$ac_ext <<_ACEOF
28518 /* end confdefs.h. */
28519 #include <sys/time.h>
28522 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28523 $EGREP "struct timezone" >/dev/null 2>&1; then
28524 bash_cv_struct_timezone=yes
28526 cat >conftest.$ac_ext <<_ACEOF
28529 cat confdefs.h >>conftest.$ac_ext
28530 cat >>conftest.$ac_ext <<_ACEOF
28531 /* end confdefs.h. */
28535 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28536 $EGREP "struct timezone" >/dev/null 2>&1; then
28537 bash_cv_struct_timezone=yes
28539 bash_cv_struct_timezone=no
28549 { $as_echo "$as_me:$LINENO: result: $bash_cv_struct_timezone" >&5
28550 $as_echo "$bash_cv_struct_timezone" >&6; }
28551 if test $bash_cv_struct_timezone = yes; then
28552 cat >>confdefs.h <<\_ACEOF
28553 @%:@define HAVE_STRUCT_TIMEZONE 1
28559 { $as_echo "$as_me:$LINENO: checking for offset of exit status in return status from wait" >&5
28560 $as_echo_n "checking for offset of exit status in return status from wait... " >&6; }
28561 if test "${bash_cv_wexitstatus_offset+set}" = set; then
28562 $as_echo_n "(cached) " >&6
28564 if test "$cross_compiling" = yes; then
28565 { $as_echo "$as_me:$LINENO: WARNING: cannot check WEXITSTATUS offset if cross compiling -- defaulting to 0" >&5
28566 $as_echo "$as_me: WARNING: cannot check WEXITSTATUS offset if cross compiling -- defaulting to 0" >&2;}
28567 bash_cv_wexitstatus_offset=0
28570 cat >conftest.$ac_ext <<_ACEOF
28572 #include <stdlib.h>
28573 #include <unistd.h>
28575 #include <sys/wait.h>
28589 /* wait for the process */
28595 for (i = 0; i < (sizeof(s) - 8); i++)
28597 n = (s >> i) & 0xff;
28606 rm -f conftest$ac_exeext
28607 if { (ac_try="$ac_link"
28608 case "(($ac_try" in
28609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28610 *) ac_try_echo=$ac_try;;
28612 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28613 $as_echo "$ac_try_echo") >&5
28614 (eval "$ac_link") 2>&5
28616 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28617 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28618 { (case "(($ac_try" in
28619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28620 *) ac_try_echo=$ac_try;;
28622 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28623 $as_echo "$ac_try_echo") >&5
28624 (eval "$ac_try") 2>&5
28626 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28627 (exit $ac_status); }; }; then
28628 bash_cv_wexitstatus_offset=0
28630 $as_echo "$as_me: program exited with status $ac_status" >&5
28631 $as_echo "$as_me: failed program was:" >&5
28632 sed 's/^/| /' conftest.$ac_ext >&5
28634 ( exit $ac_status )
28635 bash_cv_wexitstatus_offset=$?
28637 rm -rf conftest.dSYM
28638 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28644 if test "$bash_cv_wexitstatus_offset" -gt 32 ; then
28645 { $as_echo "$as_me:$LINENO: WARNING: bad exit status from test program -- defaulting to 0" >&5
28646 $as_echo "$as_me: WARNING: bad exit status from test program -- defaulting to 0" >&2;}
28647 bash_cv_wexitstatus_offset=0
28649 { $as_echo "$as_me:$LINENO: result: $bash_cv_wexitstatus_offset" >&5
28650 $as_echo "$bash_cv_wexitstatus_offset" >&6; }
28652 cat >>confdefs.h <<_ACEOF
28653 @%:@define WEXITSTATUS_OFFSET $bash_cv_wexitstatus_offset
28658 { $as_echo "$as_me:$LINENO: checking for the existence of strsignal" >&5
28659 $as_echo_n "checking for the existence of strsignal... " >&6; }
28660 if test "${bash_cv_have_strsignal+set}" = set; then
28661 $as_echo_n "(cached) " >&6
28663 cat >conftest.$ac_ext <<_ACEOF
28666 cat confdefs.h >>conftest.$ac_ext
28667 cat >>conftest.$ac_ext <<_ACEOF
28668 /* end confdefs.h. */
28669 #include <sys/types.h>
28670 #include <signal.h>
28674 char *s = (char *)strsignal(2);
28679 rm -f conftest.$ac_objext conftest$ac_exeext
28680 if { (ac_try="$ac_link"
28681 case "(($ac_try" in
28682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28683 *) ac_try_echo=$ac_try;;
28685 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28686 $as_echo "$ac_try_echo") >&5
28687 (eval "$ac_link") 2>conftest.er1
28689 grep -v '^ *+' conftest.er1 >conftest.err
28691 cat conftest.err >&5
28692 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28693 (exit $ac_status); } && {
28694 test -z "$ac_c_werror_flag" ||
28695 test ! -s conftest.err
28696 } && test -s conftest$ac_exeext && {
28697 test "$cross_compiling" = yes ||
28698 $as_test_x conftest$ac_exeext
28700 bash_cv_have_strsignal=yes
28702 $as_echo "$as_me: failed program was:" >&5
28703 sed 's/^/| /' conftest.$ac_ext >&5
28705 bash_cv_have_strsignal=no
28708 rm -rf conftest.dSYM
28709 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28710 conftest$ac_exeext conftest.$ac_ext
28713 { $as_echo "$as_me:$LINENO: result: $bash_cv_have_strsignal" >&5
28714 $as_echo "$bash_cv_have_strsignal" >&6; }
28715 if test $bash_cv_have_strsignal = yes; then
28716 cat >>confdefs.h <<\_ACEOF
28717 @%:@define HAVE_STRSIGNAL 1
28722 { $as_echo "$as_me:$LINENO: checking if opendir() opens non-directories" >&5
28723 $as_echo_n "checking if opendir() opens non-directories... " >&6; }
28724 if test "${bash_cv_opendir_not_robust+set}" = set; then
28725 $as_echo_n "(cached) " >&6
28727 if test "$cross_compiling" = yes; then
28728 { $as_echo "$as_me:$LINENO: WARNING: cannot check opendir if cross compiling -- defaulting to no" >&5
28729 $as_echo "$as_me: WARNING: cannot check opendir if cross compiling -- defaulting to no" >&2;}
28730 bash_cv_opendir_not_robust=no
28733 cat >conftest.$ac_ext <<_ACEOF
28736 cat confdefs.h >>conftest.$ac_ext
28737 cat >>conftest.$ac_ext <<_ACEOF
28738 /* end confdefs.h. */
28741 #include <sys/types.h>
28743 #ifdef HAVE_UNISTD_H
28744 # include <unistd.h>
28745 #endif /* HAVE_UNISTD_H */
28746 #if defined(HAVE_DIRENT_H)
28747 # include <dirent.h>
28749 # define dirent direct
28750 # ifdef HAVE_SYS_NDIR_H
28751 # include <sys/ndir.h>
28752 # endif /* SYSNDIR */
28753 # ifdef HAVE_SYS_DIR_H
28754 # include <sys/dir.h>
28755 # endif /* SYSDIR */
28756 # ifdef HAVE_NDIR_H
28759 #endif /* HAVE_DIRENT_H */
28764 err = mkdir("bash-aclocal", 0700);
28769 unlink("bash-aclocal/not_a_directory");
28770 fd = open("bash-aclocal/not_a_directory", O_WRONLY|O_CREAT|O_EXCL, 0666);
28771 write(fd, "\n", 1);
28773 dir = opendir("bash-aclocal/not_a_directory");
28774 unlink("bash-aclocal/not_a_directory");
28775 rmdir("bash-aclocal");
28779 rm -f conftest$ac_exeext
28780 if { (ac_try="$ac_link"
28781 case "(($ac_try" in
28782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28783 *) ac_try_echo=$ac_try;;
28785 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28786 $as_echo "$ac_try_echo") >&5
28787 (eval "$ac_link") 2>&5
28789 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28790 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28791 { (case "(($ac_try" in
28792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28793 *) ac_try_echo=$ac_try;;
28795 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28796 $as_echo "$ac_try_echo") >&5
28797 (eval "$ac_try") 2>&5
28799 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28800 (exit $ac_status); }; }; then
28801 bash_cv_opendir_not_robust=yes
28803 $as_echo "$as_me: program exited with status $ac_status" >&5
28804 $as_echo "$as_me: failed program was:" >&5
28805 sed 's/^/| /' conftest.$ac_ext >&5
28807 ( exit $ac_status )
28808 bash_cv_opendir_not_robust=no
28810 rm -rf conftest.dSYM
28811 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28817 { $as_echo "$as_me:$LINENO: result: $bash_cv_opendir_not_robust" >&5
28818 $as_echo "$bash_cv_opendir_not_robust" >&6; }
28819 if test $bash_cv_opendir_not_robust = yes; then
28820 cat >>confdefs.h <<\_ACEOF
28821 @%:@define OPENDIR_NOT_ROBUST 1
28826 { $as_echo "$as_me:$LINENO: checking whether ulimit can substitute for getdtablesize" >&5
28827 $as_echo_n "checking whether ulimit can substitute for getdtablesize... " >&6; }
28828 if test "${bash_cv_ulimit_maxfds+set}" = set; then
28829 $as_echo_n "(cached) " >&6
28831 if test "$cross_compiling" = yes; then
28832 { $as_echo "$as_me:$LINENO: WARNING: cannot check ulimit if cross compiling -- defaulting to no" >&5
28833 $as_echo "$as_me: WARNING: cannot check ulimit if cross compiling -- defaulting to no" >&2;}
28834 bash_cv_ulimit_maxfds=no
28837 cat >conftest.$ac_ext <<_ACEOF
28840 cat confdefs.h >>conftest.$ac_ext
28841 cat >>conftest.$ac_ext <<_ACEOF
28842 /* end confdefs.h. */
28846 long maxfds = ulimit(4, 0L);
28847 exit (maxfds == -1L);
28851 rm -f conftest$ac_exeext
28852 if { (ac_try="$ac_link"
28853 case "(($ac_try" in
28854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28855 *) ac_try_echo=$ac_try;;
28857 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28858 $as_echo "$ac_try_echo") >&5
28859 (eval "$ac_link") 2>&5
28861 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28862 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28863 { (case "(($ac_try" in
28864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28865 *) ac_try_echo=$ac_try;;
28867 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28868 $as_echo "$ac_try_echo") >&5
28869 (eval "$ac_try") 2>&5
28871 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28872 (exit $ac_status); }; }; then
28873 bash_cv_ulimit_maxfds=yes
28875 $as_echo "$as_me: program exited with status $ac_status" >&5
28876 $as_echo "$as_me: failed program was:" >&5
28877 sed 's/^/| /' conftest.$ac_ext >&5
28879 ( exit $ac_status )
28880 bash_cv_ulimit_maxfds=no
28882 rm -rf conftest.dSYM
28883 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28889 { $as_echo "$as_me:$LINENO: result: $bash_cv_ulimit_maxfds" >&5
28890 $as_echo "$bash_cv_ulimit_maxfds" >&6; }
28891 if test $bash_cv_ulimit_maxfds = yes; then
28892 cat >>confdefs.h <<\_ACEOF
28893 @%:@define ULIMIT_MAXFDS 1
28915 { $as_echo "$as_me:$LINENO: checking whether fpurge is declared" >&5
28916 $as_echo_n "checking whether fpurge is declared... " >&6; }
28917 if test "${ac_cv_have_decl_fpurge+set}" = set; then
28918 $as_echo_n "(cached) " >&6
28920 cat >conftest.$ac_ext <<_ACEOF
28923 cat confdefs.h >>conftest.$ac_ext
28924 cat >>conftest.$ac_ext <<_ACEOF
28925 /* end confdefs.h. */
28939 rm -f conftest.$ac_objext
28940 if { (ac_try="$ac_compile"
28941 case "(($ac_try" in
28942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28943 *) ac_try_echo=$ac_try;;
28945 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28946 $as_echo "$ac_try_echo") >&5
28947 (eval "$ac_compile") 2>conftest.er1
28949 grep -v '^ *+' conftest.er1 >conftest.err
28951 cat conftest.err >&5
28952 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28953 (exit $ac_status); } && {
28954 test -z "$ac_c_werror_flag" ||
28955 test ! -s conftest.err
28956 } && test -s conftest.$ac_objext; then
28957 ac_cv_have_decl_fpurge=yes
28959 $as_echo "$as_me: failed program was:" >&5
28960 sed 's/^/| /' conftest.$ac_ext >&5
28962 ac_cv_have_decl_fpurge=no
28965 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28967 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_fpurge" >&5
28968 $as_echo "$ac_cv_have_decl_fpurge" >&6; }
28969 if test "x$ac_cv_have_decl_fpurge" = x""yes; then
28971 cat >>confdefs.h <<_ACEOF
28972 @%:@define HAVE_DECL_FPURGE 1
28977 cat >>confdefs.h <<_ACEOF
28978 @%:@define HAVE_DECL_FPURGE 0
28986 { $as_echo "$as_me:$LINENO: checking to see if getenv can be redefined" >&5
28987 $as_echo_n "checking to see if getenv can be redefined... " >&6; }
28988 if test "${bash_cv_getenv_redef+set}" = set; then
28989 $as_echo_n "(cached) " >&6
28991 if test "$cross_compiling" = yes; then
28992 { $as_echo "$as_me:$LINENO: WARNING: cannot check getenv redefinition if cross compiling -- defaulting to yes" >&5
28993 $as_echo "$as_me: WARNING: cannot check getenv redefinition if cross compiling -- defaulting to yes" >&2;}
28994 bash_cv_getenv_redef=yes
28997 cat >conftest.$ac_ext <<_ACEOF
29000 cat confdefs.h >>conftest.$ac_ext
29001 cat >>conftest.$ac_ext <<_ACEOF
29002 /* end confdefs.h. */
29004 #ifdef HAVE_UNISTD_H
29005 # include <unistd.h>
29014 #if defined (__linux__) || defined (__bsdi__) || defined (convex)
29018 #endif /* !__linux__ && !__bsdi__ && !convex */
29025 /* The next allows this program to run, but does not allow bash to link
29026 when it redefines getenv. I'm not really interested in figuring out
29031 s = getenv("ABCDE");
29032 exit(s == 0); /* force optimizer to leave getenv in */
29036 rm -f conftest$ac_exeext
29037 if { (ac_try="$ac_link"
29038 case "(($ac_try" in
29039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29040 *) ac_try_echo=$ac_try;;
29042 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29043 $as_echo "$ac_try_echo") >&5
29044 (eval "$ac_link") 2>&5
29046 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29047 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29048 { (case "(($ac_try" in
29049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29050 *) ac_try_echo=$ac_try;;
29052 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29053 $as_echo "$ac_try_echo") >&5
29054 (eval "$ac_try") 2>&5
29056 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29057 (exit $ac_status); }; }; then
29058 bash_cv_getenv_redef=yes
29060 $as_echo "$as_me: program exited with status $ac_status" >&5
29061 $as_echo "$as_me: failed program was:" >&5
29062 sed 's/^/| /' conftest.$ac_ext >&5
29064 ( exit $ac_status )
29065 bash_cv_getenv_redef=no
29067 rm -rf conftest.dSYM
29068 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29074 { $as_echo "$as_me:$LINENO: result: $bash_cv_getenv_redef" >&5
29075 $as_echo "$bash_cv_getenv_redef" >&6; }
29076 if test $bash_cv_getenv_redef = yes; then
29077 cat >>confdefs.h <<\_ACEOF
29078 @%:@define CAN_REDEFINE_GETENV 1
29083 if test "$ac_cv_func_getcwd" = "yes"; then
29084 { $as_echo "$as_me:$LINENO: checking if getcwd() will dynamically allocate memory with 0 size" >&5
29085 $as_echo_n "checking if getcwd() will dynamically allocate memory with 0 size... " >&6; }
29086 if test "${bash_cv_getcwd_malloc+set}" = set; then
29087 $as_echo_n "(cached) " >&6
29089 if test "$cross_compiling" = yes; then
29090 { $as_echo "$as_me:$LINENO: WARNING: cannot check whether getcwd allocates memory when cross-compiling -- defaulting to no" >&5
29091 $as_echo "$as_me: WARNING: cannot check whether getcwd allocates memory when cross-compiling -- defaulting to no" >&2;}
29092 bash_cv_getcwd_malloc=no
29095 cat >conftest.$ac_ext <<_ACEOF
29098 cat confdefs.h >>conftest.$ac_ext
29099 cat >>conftest.$ac_ext <<_ACEOF
29100 /* end confdefs.h. */
29103 #ifdef HAVE_UNISTD_H
29104 #include <unistd.h>
29110 xpwd = getcwd(0, 0);
29115 rm -f conftest$ac_exeext
29116 if { (ac_try="$ac_link"
29117 case "(($ac_try" in
29118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29119 *) ac_try_echo=$ac_try;;
29121 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29122 $as_echo "$ac_try_echo") >&5
29123 (eval "$ac_link") 2>&5
29125 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29126 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29127 { (case "(($ac_try" in
29128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29129 *) ac_try_echo=$ac_try;;
29131 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29132 $as_echo "$ac_try_echo") >&5
29133 (eval "$ac_try") 2>&5
29135 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29136 (exit $ac_status); }; }; then
29137 bash_cv_getcwd_malloc=yes
29139 $as_echo "$as_me: program exited with status $ac_status" >&5
29140 $as_echo "$as_me: failed program was:" >&5
29141 sed 's/^/| /' conftest.$ac_ext >&5
29143 ( exit $ac_status )
29144 bash_cv_getcwd_malloc=no
29146 rm -rf conftest.dSYM
29147 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29153 { $as_echo "$as_me:$LINENO: result: $bash_cv_getcwd_malloc" >&5
29154 $as_echo "$bash_cv_getcwd_malloc" >&6; }
29155 if test $bash_cv_getcwd_malloc = no; then
29156 cat >>confdefs.h <<\_ACEOF
29157 @%:@define GETCWD_BROKEN 1
29160 case " $LIB@&t@OBJS " in
29161 *" getcwd.$ac_objext "* ) ;;
29162 *) LIB@&t@OBJS="$LIB@&t@OBJS getcwd.$ac_objext"
29170 { $as_echo "$as_me:$LINENO: checking for presence of POSIX-style sigsetjmp/siglongjmp" >&5
29171 $as_echo_n "checking for presence of POSIX-style sigsetjmp/siglongjmp... " >&6; }
29172 if test "${bash_cv_func_sigsetjmp+set}" = set; then
29173 $as_echo_n "(cached) " >&6
29175 if test "$cross_compiling" = yes; then
29176 { $as_echo "$as_me:$LINENO: WARNING: cannot check for sigsetjmp/siglongjmp if cross-compiling -- defaulting to missing" >&5
29177 $as_echo "$as_me: WARNING: cannot check for sigsetjmp/siglongjmp if cross-compiling -- defaulting to missing" >&2;}
29178 bash_cv_func_sigsetjmp=missing
29181 cat >conftest.$ac_ext <<_ACEOF
29184 cat confdefs.h >>conftest.$ac_ext
29185 cat >>conftest.$ac_ext <<_ACEOF
29186 /* end confdefs.h. */
29188 #ifdef HAVE_UNISTD_H
29189 #include <unistd.h>
29191 #include <sys/types.h>
29192 #include <signal.h>
29193 #include <setjmp.h>
29197 #if !defined (_POSIX_VERSION) || !defined (HAVE_POSIX_SIGNALS)
29202 sigset_t set, oset;
29207 sigemptyset(&oset);
29208 sigprocmask(SIG_BLOCK, (sigset_t *)NULL, &set);
29209 sigprocmask(SIG_BLOCK, (sigset_t *)NULL, &oset);
29212 code = sigsetjmp(xx, 1);
29214 exit(0); /* could get sigmask and compare to oset here. */
29217 sigaddset(&set, SIGINT);
29218 sigprocmask(SIG_BLOCK, &set, (sigset_t *)NULL);
29220 /* and siglongjmp */
29221 siglongjmp(xx, 10);
29226 rm -f conftest$ac_exeext
29227 if { (ac_try="$ac_link"
29228 case "(($ac_try" in
29229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29230 *) ac_try_echo=$ac_try;;
29232 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29233 $as_echo "$ac_try_echo") >&5
29234 (eval "$ac_link") 2>&5
29236 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29237 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29238 { (case "(($ac_try" in
29239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29240 *) ac_try_echo=$ac_try;;
29242 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29243 $as_echo "$ac_try_echo") >&5
29244 (eval "$ac_try") 2>&5
29246 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29247 (exit $ac_status); }; }; then
29248 bash_cv_func_sigsetjmp=present
29250 $as_echo "$as_me: program exited with status $ac_status" >&5
29251 $as_echo "$as_me: failed program was:" >&5
29252 sed 's/^/| /' conftest.$ac_ext >&5
29254 ( exit $ac_status )
29255 bash_cv_func_sigsetjmp=missing
29257 rm -rf conftest.dSYM
29258 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29264 { $as_echo "$as_me:$LINENO: result: $bash_cv_func_sigsetjmp" >&5
29265 $as_echo "$bash_cv_func_sigsetjmp" >&6; }
29266 if test $bash_cv_func_sigsetjmp = present; then
29267 cat >>confdefs.h <<\_ACEOF
29268 @%:@define HAVE_POSIX_SIGSETJMP 1
29274 { $as_echo "$as_me:$LINENO: checking whether or not strcoll and strcmp differ" >&5
29275 $as_echo_n "checking whether or not strcoll and strcmp differ... " >&6; }
29276 if test "${bash_cv_func_strcoll_broken+set}" = set; then
29277 $as_echo_n "(cached) " >&6
29279 if test "$cross_compiling" = yes; then
29280 { $as_echo "$as_me:$LINENO: WARNING: cannot check strcoll if cross compiling -- defaulting to no" >&5
29281 $as_echo "$as_me: WARNING: cannot check strcoll if cross compiling -- defaulting to no" >&2;}
29282 bash_cv_func_strcoll_broken=no
29285 cat >conftest.$ac_ext <<_ACEOF
29288 cat confdefs.h >>conftest.$ac_ext
29289 cat >>conftest.$ac_ext <<_ACEOF
29290 /* end confdefs.h. */
29293 #if defined (HAVE_LOCALE_H)
29294 #include <locale.h>
29302 char *deflocale, *defcoll;
29304 #ifdef HAVE_SETLOCALE
29305 deflocale = setlocale(LC_ALL, "");
29306 defcoll = setlocale(LC_COLLATE, "");
29309 #ifdef HAVE_STRCOLL
29310 /* These two values are taken from tests/glob-test. */
29311 r1 = strcoll("abd", "aXd");
29315 r2 = strcmp("abd", "aXd");
29317 /* These two should both be greater than 0. It is permissible for
29318 a system to return different values, as long as the sign is the
29321 /* Exit with 1 (failure) if these two values are both > 0, since
29322 this tests whether strcoll(3) is broken with respect to strcmp(3)
29323 in the default locale. */
29324 exit (r1 > 0 && r2 > 0);
29328 rm -f conftest$ac_exeext
29329 if { (ac_try="$ac_link"
29330 case "(($ac_try" in
29331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29332 *) ac_try_echo=$ac_try;;
29334 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29335 $as_echo "$ac_try_echo") >&5
29336 (eval "$ac_link") 2>&5
29338 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29339 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29340 { (case "(($ac_try" in
29341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29342 *) ac_try_echo=$ac_try;;
29344 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29345 $as_echo "$ac_try_echo") >&5
29346 (eval "$ac_try") 2>&5
29348 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29349 (exit $ac_status); }; }; then
29350 bash_cv_func_strcoll_broken=yes
29352 $as_echo "$as_me: program exited with status $ac_status" >&5
29353 $as_echo "$as_me: failed program was:" >&5
29354 sed 's/^/| /' conftest.$ac_ext >&5
29356 ( exit $ac_status )
29357 bash_cv_func_strcoll_broken=no
29359 rm -rf conftest.dSYM
29360 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29366 { $as_echo "$as_me:$LINENO: result: $bash_cv_func_strcoll_broken" >&5
29367 $as_echo "$bash_cv_func_strcoll_broken" >&6; }
29368 if test $bash_cv_func_strcoll_broken = yes; then
29369 cat >>confdefs.h <<\_ACEOF
29370 @%:@define STRCOLL_BROKEN 1
29384 if test X$ac_cv_func_snprintf = Xyes; then
29385 { $as_echo "$as_me:$LINENO: checking for standard-conformant snprintf" >&5
29386 $as_echo_n "checking for standard-conformant snprintf... " >&6; }
29387 if test "${bash_cv_func_snprintf+set}" = set; then
29388 $as_echo_n "(cached) " >&6
29390 if test "$cross_compiling" = yes; then
29391 { $as_echo "$as_me:$LINENO: WARNING: cannot check standard snprintf if cross-compiling" >&5
29392 $as_echo "$as_me: WARNING: cannot check standard snprintf if cross-compiling" >&2;}
29393 bash_cv_func_snprintf=yes
29396 cat >conftest.$ac_ext <<_ACEOF
29399 cat confdefs.h >>conftest.$ac_ext
29400 cat >>conftest.$ac_ext <<_ACEOF
29401 /* end confdefs.h. */
29408 n = snprintf (0, 0, "%s", "0123456");
29413 rm -f conftest$ac_exeext
29414 if { (ac_try="$ac_link"
29415 case "(($ac_try" in
29416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29417 *) ac_try_echo=$ac_try;;
29419 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29420 $as_echo "$ac_try_echo") >&5
29421 (eval "$ac_link") 2>&5
29423 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29424 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29425 { (case "(($ac_try" in
29426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29427 *) ac_try_echo=$ac_try;;
29429 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29430 $as_echo "$ac_try_echo") >&5
29431 (eval "$ac_try") 2>&5
29433 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29434 (exit $ac_status); }; }; then
29435 bash_cv_func_snprintf=yes
29437 $as_echo "$as_me: program exited with status $ac_status" >&5
29438 $as_echo "$as_me: failed program was:" >&5
29439 sed 's/^/| /' conftest.$ac_ext >&5
29441 ( exit $ac_status )
29442 bash_cv_func_snprintf=no
29444 rm -rf conftest.dSYM
29445 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29450 { $as_echo "$as_me:$LINENO: result: $bash_cv_func_snprintf" >&5
29451 $as_echo "$bash_cv_func_snprintf" >&6; }
29452 if test $bash_cv_func_snprintf = no; then
29453 ac_cv_func_snprintf=no
29456 if test $ac_cv_func_snprintf = no; then
29458 cat >>confdefs.h <<\_ACEOF
29459 @%:@define HAVE_SNPRINTF 0
29473 if test X$ac_cv_func_vsnprintf = Xyes; then
29474 { $as_echo "$as_me:$LINENO: checking for standard-conformant vsnprintf" >&5
29475 $as_echo_n "checking for standard-conformant vsnprintf... " >&6; }
29476 if test "${bash_cv_func_vsnprintf+set}" = set; then
29477 $as_echo_n "(cached) " >&6
29479 if test "$cross_compiling" = yes; then
29480 { $as_echo "$as_me:$LINENO: WARNING: cannot check standard vsnprintf if cross-compiling" >&5
29481 $as_echo "$as_me: WARNING: cannot check standard vsnprintf if cross-compiling" >&2;}
29482 bash_cv_func_vsnprintf=yes
29485 cat >conftest.$ac_ext <<_ACEOF
29488 cat confdefs.h >>conftest.$ac_ext
29489 cat >>conftest.$ac_ext <<_ACEOF
29490 /* end confdefs.h. */
29493 #include <stdarg.h>
29495 #include <varargs.h>
29498 #include <stdlib.h>
29502 foo(const char *fmt, ...)
29504 foo(format, va_alist)
29505 const char *format;
29513 va_start(args, fmt);
29517 n = vsnprintf(0, 0, fmt, args);
29525 n = foo("%s", "0123456");
29530 rm -f conftest$ac_exeext
29531 if { (ac_try="$ac_link"
29532 case "(($ac_try" in
29533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29534 *) ac_try_echo=$ac_try;;
29536 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29537 $as_echo "$ac_try_echo") >&5
29538 (eval "$ac_link") 2>&5
29540 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29541 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29542 { (case "(($ac_try" in
29543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29544 *) ac_try_echo=$ac_try;;
29546 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29547 $as_echo "$ac_try_echo") >&5
29548 (eval "$ac_try") 2>&5
29550 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29551 (exit $ac_status); }; }; then
29552 bash_cv_func_vsnprintf=yes
29554 $as_echo "$as_me: program exited with status $ac_status" >&5
29555 $as_echo "$as_me: failed program was:" >&5
29556 sed 's/^/| /' conftest.$ac_ext >&5
29558 ( exit $ac_status )
29559 bash_cv_func_vsnprintf=no
29561 rm -rf conftest.dSYM
29562 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29567 { $as_echo "$as_me:$LINENO: result: $bash_cv_func_vsnprintf" >&5
29568 $as_echo "$bash_cv_func_vsnprintf" >&6; }
29569 if test $bash_cv_func_vsnprintf = no; then
29570 ac_cv_func_vsnprintf=no
29573 if test $ac_cv_func_vsnprintf = no; then
29575 cat >>confdefs.h <<\_ACEOF
29576 @%:@define HAVE_VSNPRINTF 0
29583 if test "$ac_cv_func_putenv" = "yes"; then
29587 { $as_echo "$as_me:$LINENO: checking for standard-conformant putenv declaration" >&5
29588 $as_echo_n "checking for standard-conformant putenv declaration... " >&6; }
29589 if test "${bash_cv_std_putenv+set}" = set; then
29590 $as_echo_n "(cached) " >&6
29592 cat >conftest.$ac_ext <<_ACEOF
29595 cat confdefs.h >>conftest.$ac_ext
29596 cat >>conftest.$ac_ext <<_ACEOF
29597 /* end confdefs.h. */
29600 #include <stdlib.h>
29601 #include <stddef.h>
29609 extern int putenv (char *);
29611 extern int putenv ();
29617 return (putenv == 0);
29622 rm -f conftest.$ac_objext conftest$ac_exeext
29623 if { (ac_try="$ac_link"
29624 case "(($ac_try" in
29625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29626 *) ac_try_echo=$ac_try;;
29628 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29629 $as_echo "$ac_try_echo") >&5
29630 (eval "$ac_link") 2>conftest.er1
29632 grep -v '^ *+' conftest.er1 >conftest.err
29634 cat conftest.err >&5
29635 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29636 (exit $ac_status); } && {
29637 test -z "$ac_c_werror_flag" ||
29638 test ! -s conftest.err
29639 } && test -s conftest$ac_exeext && {
29640 test "$cross_compiling" = yes ||
29641 $as_test_x conftest$ac_exeext
29643 bash_cv_std_putenv=yes
29645 $as_echo "$as_me: failed program was:" >&5
29646 sed 's/^/| /' conftest.$ac_ext >&5
29648 bash_cv_std_putenv=no
29652 rm -rf conftest.dSYM
29653 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29654 conftest$ac_exeext conftest.$ac_ext
29656 { $as_echo "$as_me:$LINENO: result: $bash_cv_std_putenv" >&5
29657 $as_echo "$bash_cv_std_putenv" >&6; }
29658 if test $bash_cv_std_putenv = yes; then
29659 cat >>confdefs.h <<\_ACEOF
29660 @%:@define HAVE_STD_PUTENV 1
29666 cat >>confdefs.h <<\_ACEOF
29667 @%:@define HAVE_STD_PUTENV 1
29671 if test "$ac_cv_func_unsetenv" = "yes"; then
29675 { $as_echo "$as_me:$LINENO: checking for standard-conformant unsetenv declaration" >&5
29676 $as_echo_n "checking for standard-conformant unsetenv declaration... " >&6; }
29677 if test "${bash_cv_std_unsetenv+set}" = set; then
29678 $as_echo_n "(cached) " >&6
29680 cat >conftest.$ac_ext <<_ACEOF
29683 cat confdefs.h >>conftest.$ac_ext
29684 cat >>conftest.$ac_ext <<_ACEOF
29685 /* end confdefs.h. */
29688 #include <stdlib.h>
29689 #include <stddef.h>
29697 extern int unsetenv (const char *);
29699 extern int unsetenv ();
29705 return (unsetenv == 0);
29710 rm -f conftest.$ac_objext conftest$ac_exeext
29711 if { (ac_try="$ac_link"
29712 case "(($ac_try" in
29713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29714 *) ac_try_echo=$ac_try;;
29716 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29717 $as_echo "$ac_try_echo") >&5
29718 (eval "$ac_link") 2>conftest.er1
29720 grep -v '^ *+' conftest.er1 >conftest.err
29722 cat conftest.err >&5
29723 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29724 (exit $ac_status); } && {
29725 test -z "$ac_c_werror_flag" ||
29726 test ! -s conftest.err
29727 } && test -s conftest$ac_exeext && {
29728 test "$cross_compiling" = yes ||
29729 $as_test_x conftest$ac_exeext
29731 bash_cv_std_unsetenv=yes
29733 $as_echo "$as_me: failed program was:" >&5
29734 sed 's/^/| /' conftest.$ac_ext >&5
29736 bash_cv_std_unsetenv=no
29740 rm -rf conftest.dSYM
29741 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29742 conftest$ac_exeext conftest.$ac_ext
29744 { $as_echo "$as_me:$LINENO: result: $bash_cv_std_unsetenv" >&5
29745 $as_echo "$bash_cv_std_unsetenv" >&6; }
29746 if test $bash_cv_std_unsetenv = yes; then
29747 cat >>confdefs.h <<\_ACEOF
29748 @%:@define HAVE_STD_UNSETENV 1
29754 cat >>confdefs.h <<\_ACEOF
29755 @%:@define HAVE_STD_UNSETENV 1
29760 { $as_echo "$as_me:$LINENO: checking for printf floating point output in hex notation" >&5
29761 $as_echo_n "checking for printf floating point output in hex notation... " >&6; }
29762 if test "${bash_cv_printf_a_format+set}" = set; then
29763 $as_echo_n "(cached) " >&6
29765 if test "$cross_compiling" = yes; then
29766 { $as_echo "$as_me:$LINENO: WARNING: cannot check printf if cross compiling -- defaulting to no" >&5
29767 $as_echo "$as_me: WARNING: cannot check printf if cross compiling -- defaulting to no" >&2;}
29768 bash_cv_printf_a_format=no
29771 cat >conftest.$ac_ext <<_ACEOF
29774 cat confdefs.h >>conftest.$ac_ext
29775 cat >>conftest.$ac_ext <<_ACEOF
29776 /* end confdefs.h. */
29779 #include <string.h>
29787 sprintf(abuf, "%A", y);
29788 exit(strchr(abuf, 'P') == (char *)0);
29792 rm -f conftest$ac_exeext
29793 if { (ac_try="$ac_link"
29794 case "(($ac_try" in
29795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29796 *) ac_try_echo=$ac_try;;
29798 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29799 $as_echo "$ac_try_echo") >&5
29800 (eval "$ac_link") 2>&5
29802 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29803 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29804 { (case "(($ac_try" in
29805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29806 *) ac_try_echo=$ac_try;;
29808 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29809 $as_echo "$ac_try_echo") >&5
29810 (eval "$ac_try") 2>&5
29812 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29813 (exit $ac_status); }; }; then
29814 bash_cv_printf_a_format=yes
29816 $as_echo "$as_me: program exited with status $ac_status" >&5
29817 $as_echo "$as_me: failed program was:" >&5
29818 sed 's/^/| /' conftest.$ac_ext >&5
29820 ( exit $ac_status )
29821 bash_cv_printf_a_format=no
29823 rm -rf conftest.dSYM
29824 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29830 { $as_echo "$as_me:$LINENO: result: $bash_cv_printf_a_format" >&5
29831 $as_echo "$bash_cv_printf_a_format" >&6; }
29832 if test $bash_cv_printf_a_format = yes; then
29833 cat >>confdefs.h <<\_ACEOF
29834 @%:@define HAVE_PRINTF_A_FORMAT 1
29842 { $as_echo "$as_me:$LINENO: checking if signal handlers must be reinstalled when invoked" >&5
29843 $as_echo_n "checking if signal handlers must be reinstalled when invoked... " >&6; }
29844 if test "${bash_cv_must_reinstall_sighandlers+set}" = set; then
29845 $as_echo_n "(cached) " >&6
29847 if test "$cross_compiling" = yes; then
29848 { $as_echo "$as_me:$LINENO: WARNING: cannot check signal handling if cross compiling -- defaulting to no" >&5
29849 $as_echo "$as_me: WARNING: cannot check signal handling if cross compiling -- defaulting to no" >&2;}
29850 bash_cv_must_reinstall_sighandlers=no
29853 cat >conftest.$ac_ext <<_ACEOF
29856 cat confdefs.h >>conftest.$ac_ext
29857 cat >>conftest.$ac_ext <<_ACEOF
29858 /* end confdefs.h. */
29860 #include <signal.h>
29861 #ifdef HAVE_UNISTD_H
29862 #include <unistd.h>
29865 typedef RETSIGTYPE sigfunc();
29869 #ifdef HAVE_POSIX_SIGNALS
29871 set_signal_handler(sig, handler)
29875 struct sigaction act, oact;
29876 act.sa_handler = handler;
29878 sigemptyset (&act.sa_mask);
29879 sigemptyset (&oact.sa_mask);
29880 sigaction (sig, &act, &oact);
29881 return (oact.sa_handler);
29884 #define set_signal_handler(s, h) signal(s, h)
29897 set_signal_handler(SIGINT, sigint);
29898 kill((int)getpid(), SIGINT);
29899 kill((int)getpid(), SIGINT);
29900 exit(nsigint != 2);
29904 rm -f conftest$ac_exeext
29905 if { (ac_try="$ac_link"
29906 case "(($ac_try" in
29907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29908 *) ac_try_echo=$ac_try;;
29910 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29911 $as_echo "$ac_try_echo") >&5
29912 (eval "$ac_link") 2>&5
29914 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29915 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29916 { (case "(($ac_try" in
29917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29918 *) ac_try_echo=$ac_try;;
29920 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29921 $as_echo "$ac_try_echo") >&5
29922 (eval "$ac_try") 2>&5
29924 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29925 (exit $ac_status); }; }; then
29926 bash_cv_must_reinstall_sighandlers=no
29928 $as_echo "$as_me: program exited with status $ac_status" >&5
29929 $as_echo "$as_me: failed program was:" >&5
29930 sed 's/^/| /' conftest.$ac_ext >&5
29932 ( exit $ac_status )
29933 bash_cv_must_reinstall_sighandlers=yes
29935 rm -rf conftest.dSYM
29936 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29942 { $as_echo "$as_me:$LINENO: result: $bash_cv_must_reinstall_sighandlers" >&5
29943 $as_echo "$bash_cv_must_reinstall_sighandlers" >&6; }
29944 if test $bash_cv_must_reinstall_sighandlers = yes; then
29945 cat >>confdefs.h <<\_ACEOF
29946 @%:@define MUST_REINSTALL_SIGHANDLERS 1
29952 { $as_echo "$as_me:$LINENO: checking for presence of necessary job control definitions" >&5
29953 $as_echo_n "checking for presence of necessary job control definitions... " >&6; }
29954 if test "${bash_cv_job_control_missing+set}" = set; then
29955 $as_echo_n "(cached) " >&6
29957 if test "$cross_compiling" = yes; then
29958 { $as_echo "$as_me:$LINENO: WARNING: cannot check job control if cross-compiling -- defaulting to missing" >&5
29959 $as_echo "$as_me: WARNING: cannot check job control if cross-compiling -- defaulting to missing" >&2;}
29960 bash_cv_job_control_missing=missing
29963 cat >conftest.$ac_ext <<_ACEOF
29966 cat confdefs.h >>conftest.$ac_ext
29967 cat >>conftest.$ac_ext <<_ACEOF
29968 /* end confdefs.h. */
29970 #include <sys/types.h>
29971 #ifdef HAVE_SYS_WAIT_H
29972 #include <sys/wait.h>
29974 #ifdef HAVE_UNISTD_H
29975 #include <unistd.h>
29977 #include <signal.h>
29979 /* Add more tests in here as appropriate. */
29983 #if !defined (HAVE_POSIX_SIGNALS) && !defined (HAVE_BSD_SIGNALS)
29987 /* signals and tty control. */
29988 #if !defined (SIGTSTP) || !defined (SIGSTOP) || !defined (SIGCONT)
29992 /* process control */
29993 #if !defined (WNOHANG) || !defined (WUNTRACED)
29997 /* Posix systems have tcgetpgrp and waitpid. */
29998 #if defined (_POSIX_VERSION) && !defined (HAVE_TCGETPGRP)
30002 #if defined (_POSIX_VERSION) && !defined (HAVE_WAITPID)
30006 /* Other systems have TIOCSPGRP/TIOCGPRGP and wait3. */
30007 #if !defined (_POSIX_VERSION) && !defined (HAVE_WAIT3)
30014 rm -f conftest$ac_exeext
30015 if { (ac_try="$ac_link"
30016 case "(($ac_try" in
30017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30018 *) ac_try_echo=$ac_try;;
30020 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30021 $as_echo "$ac_try_echo") >&5
30022 (eval "$ac_link") 2>&5
30024 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30025 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30026 { (case "(($ac_try" in
30027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30028 *) ac_try_echo=$ac_try;;
30030 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30031 $as_echo "$ac_try_echo") >&5
30032 (eval "$ac_try") 2>&5
30034 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30035 (exit $ac_status); }; }; then
30036 bash_cv_job_control_missing=present
30038 $as_echo "$as_me: program exited with status $ac_status" >&5
30039 $as_echo "$as_me: failed program was:" >&5
30040 sed 's/^/| /' conftest.$ac_ext >&5
30042 ( exit $ac_status )
30043 bash_cv_job_control_missing=missing
30045 rm -rf conftest.dSYM
30046 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30052 { $as_echo "$as_me:$LINENO: result: $bash_cv_job_control_missing" >&5
30053 $as_echo "$bash_cv_job_control_missing" >&6; }
30054 if test $bash_cv_job_control_missing = missing; then
30055 cat >>confdefs.h <<\_ACEOF
30056 @%:@define JOB_CONTROL_MISSING 1
30061 { $as_echo "$as_me:$LINENO: checking for presence of named pipes" >&5
30062 $as_echo_n "checking for presence of named pipes... " >&6; }
30063 if test "${bash_cv_sys_named_pipes+set}" = set; then
30064 $as_echo_n "(cached) " >&6
30066 if test "$cross_compiling" = yes; then
30067 { $as_echo "$as_me:$LINENO: WARNING: cannot check for named pipes if cross-compiling -- defaulting to missing" >&5
30068 $as_echo "$as_me: WARNING: cannot check for named pipes if cross-compiling -- defaulting to missing" >&2;}
30069 bash_cv_sys_named_pipes=missing
30072 cat >conftest.$ac_ext <<_ACEOF
30075 cat confdefs.h >>conftest.$ac_ext
30076 cat >>conftest.$ac_ext <<_ACEOF
30077 /* end confdefs.h. */
30079 #include <sys/types.h>
30080 #include <sys/stat.h>
30081 #ifdef HAVE_UNISTD_H
30082 #include <unistd.h>
30085 /* Add more tests in here as appropriate. */
30090 #if defined (HAVE_MKFIFO)
30094 #if !defined (S_IFIFO) && (defined (_POSIX_VERSION) && !defined (S_ISFIFO))
30101 err = mkdir("bash-aclocal", 0700);
30106 fd = mknod ("bash-aclocal/sh-np-autoconf", 0666 | S_IFIFO, 0);
30108 rmdir ("bash-aclocal");
30112 unlink ("bash-aclocal/sh-np-autoconf");
30113 rmdir ("bash-aclocal");
30117 rm -f conftest$ac_exeext
30118 if { (ac_try="$ac_link"
30119 case "(($ac_try" in
30120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30121 *) ac_try_echo=$ac_try;;
30123 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30124 $as_echo "$ac_try_echo") >&5
30125 (eval "$ac_link") 2>&5
30127 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30128 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30129 { (case "(($ac_try" in
30130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30131 *) ac_try_echo=$ac_try;;
30133 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30134 $as_echo "$ac_try_echo") >&5
30135 (eval "$ac_try") 2>&5
30137 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30138 (exit $ac_status); }; }; then
30139 bash_cv_sys_named_pipes=present
30141 $as_echo "$as_me: program exited with status $ac_status" >&5
30142 $as_echo "$as_me: failed program was:" >&5
30143 sed 's/^/| /' conftest.$ac_ext >&5
30145 ( exit $ac_status )
30146 bash_cv_sys_named_pipes=missing
30148 rm -rf conftest.dSYM
30149 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30155 { $as_echo "$as_me:$LINENO: result: $bash_cv_sys_named_pipes" >&5
30156 $as_echo "$bash_cv_sys_named_pipes" >&6; }
30157 if test $bash_cv_sys_named_pipes = missing; then
30158 cat >>confdefs.h <<\_ACEOF
30159 @%:@define NAMED_PIPES_MISSING 1
30165 { $as_echo "$as_me:$LINENO: checking whether termios.h defines TIOCGWINSZ" >&5
30166 $as_echo_n "checking whether termios.h defines TIOCGWINSZ... " >&6; }
30167 if test "${ac_cv_sys_tiocgwinsz_in_termios_h+set}" = set; then
30168 $as_echo_n "(cached) " >&6
30170 cat >conftest.$ac_ext <<_ACEOF
30173 cat confdefs.h >>conftest.$ac_ext
30174 cat >>conftest.$ac_ext <<_ACEOF
30175 /* end confdefs.h. */
30176 #include <sys/types.h>
30177 #include <termios.h>
30183 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30184 $EGREP "yes" >/dev/null 2>&1; then
30185 ac_cv_sys_tiocgwinsz_in_termios_h=yes
30187 ac_cv_sys_tiocgwinsz_in_termios_h=no
30192 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
30193 $as_echo "$ac_cv_sys_tiocgwinsz_in_termios_h" >&6; }
30195 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
30196 { $as_echo "$as_me:$LINENO: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
30197 $as_echo_n "checking whether sys/ioctl.h defines TIOCGWINSZ... " >&6; }
30198 if test "${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+set}" = set; then
30199 $as_echo_n "(cached) " >&6
30201 cat >conftest.$ac_ext <<_ACEOF
30204 cat confdefs.h >>conftest.$ac_ext
30205 cat >>conftest.$ac_ext <<_ACEOF
30206 /* end confdefs.h. */
30207 #include <sys/types.h>
30208 #include <sys/ioctl.h>
30214 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30215 $EGREP "yes" >/dev/null 2>&1; then
30216 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
30218 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no
30223 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
30224 $as_echo "$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6; }
30226 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
30228 cat >>confdefs.h <<\_ACEOF
30229 @%:@define GWINSZ_IN_SYS_IOCTL 1
30235 { $as_echo "$as_me:$LINENO: checking for TIOCSTAT in sys/ioctl.h" >&5
30236 $as_echo_n "checking for TIOCSTAT in sys/ioctl.h... " >&6; }
30237 if test "${bash_cv_tiocstat_in_ioctl+set}" = set; then
30238 $as_echo_n "(cached) " >&6
30240 cat >conftest.$ac_ext <<_ACEOF
30243 cat confdefs.h >>conftest.$ac_ext
30244 cat >>conftest.$ac_ext <<_ACEOF
30245 /* end confdefs.h. */
30246 #include <sys/types.h>
30247 #include <sys/ioctl.h>
30256 rm -f conftest.$ac_objext
30257 if { (ac_try="$ac_compile"
30258 case "(($ac_try" in
30259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30260 *) ac_try_echo=$ac_try;;
30262 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30263 $as_echo "$ac_try_echo") >&5
30264 (eval "$ac_compile") 2>conftest.er1
30266 grep -v '^ *+' conftest.er1 >conftest.err
30268 cat conftest.err >&5
30269 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30270 (exit $ac_status); } && {
30271 test -z "$ac_c_werror_flag" ||
30272 test ! -s conftest.err
30273 } && test -s conftest.$ac_objext; then
30274 bash_cv_tiocstat_in_ioctl=yes
30276 $as_echo "$as_me: failed program was:" >&5
30277 sed 's/^/| /' conftest.$ac_ext >&5
30279 bash_cv_tiocstat_in_ioctl=no
30282 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30285 { $as_echo "$as_me:$LINENO: result: $bash_cv_tiocstat_in_ioctl" >&5
30286 $as_echo "$bash_cv_tiocstat_in_ioctl" >&6; }
30287 if test $bash_cv_tiocstat_in_ioctl = yes; then
30288 cat >>confdefs.h <<\_ACEOF
30289 @%:@define TIOCSTAT_IN_SYS_IOCTL 1
30294 { $as_echo "$as_me:$LINENO: checking for FIONREAD in sys/ioctl.h" >&5
30295 $as_echo_n "checking for FIONREAD in sys/ioctl.h... " >&6; }
30296 if test "${bash_cv_fionread_in_ioctl+set}" = set; then
30297 $as_echo_n "(cached) " >&6
30299 cat >conftest.$ac_ext <<_ACEOF
30302 cat confdefs.h >>conftest.$ac_ext
30303 cat >>conftest.$ac_ext <<_ACEOF
30304 /* end confdefs.h. */
30305 #include <sys/types.h>
30306 #include <sys/ioctl.h>
30315 rm -f conftest.$ac_objext
30316 if { (ac_try="$ac_compile"
30317 case "(($ac_try" in
30318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30319 *) ac_try_echo=$ac_try;;
30321 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30322 $as_echo "$ac_try_echo") >&5
30323 (eval "$ac_compile") 2>conftest.er1
30325 grep -v '^ *+' conftest.er1 >conftest.err
30327 cat conftest.err >&5
30328 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30329 (exit $ac_status); } && {
30330 test -z "$ac_c_werror_flag" ||
30331 test ! -s conftest.err
30332 } && test -s conftest.$ac_objext; then
30333 bash_cv_fionread_in_ioctl=yes
30335 $as_echo "$as_me: failed program was:" >&5
30336 sed 's/^/| /' conftest.$ac_ext >&5
30338 bash_cv_fionread_in_ioctl=no
30341 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30344 { $as_echo "$as_me:$LINENO: result: $bash_cv_fionread_in_ioctl" >&5
30345 $as_echo "$bash_cv_fionread_in_ioctl" >&6; }
30346 if test $bash_cv_fionread_in_ioctl = yes; then
30347 cat >>confdefs.h <<\_ACEOF
30348 @%:@define FIONREAD_IN_SYS_IOCTL 1
30355 { $as_echo "$as_me:$LINENO: checking whether WCONTINUED flag to waitpid is unavailable or available but broken" >&5
30356 $as_echo_n "checking whether WCONTINUED flag to waitpid is unavailable or available but broken... " >&6; }
30357 if test "${bash_cv_wcontinued_broken+set}" = set; then
30358 $as_echo_n "(cached) " >&6
30360 if test "$cross_compiling" = yes; then
30361 { $as_echo "$as_me:$LINENO: WARNING: cannot check WCONTINUED if cross compiling -- defaulting to no" >&5
30362 $as_echo "$as_me: WARNING: cannot check WCONTINUED if cross compiling -- defaulting to no" >&2;}
30363 bash_cv_wcontinued_broken=no
30366 cat >conftest.$ac_ext <<_ACEOF
30369 cat confdefs.h >>conftest.$ac_ext
30370 cat >>conftest.$ac_ext <<_ACEOF
30371 /* end confdefs.h. */
30373 #include <sys/types.h>
30374 #include <sys/wait.h>
30375 #include <unistd.h>
30385 x = waitpid(-1, (int *)0, WNOHANG|WCONTINUED);
30386 if (x == -1 && errno == EINVAL)
30393 rm -f conftest$ac_exeext
30394 if { (ac_try="$ac_link"
30395 case "(($ac_try" in
30396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30397 *) ac_try_echo=$ac_try;;
30399 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30400 $as_echo "$ac_try_echo") >&5
30401 (eval "$ac_link") 2>&5
30403 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30404 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30405 { (case "(($ac_try" in
30406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30407 *) ac_try_echo=$ac_try;;
30409 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30410 $as_echo "$ac_try_echo") >&5
30411 (eval "$ac_try") 2>&5
30413 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30414 (exit $ac_status); }; }; then
30415 bash_cv_wcontinued_broken=no
30417 $as_echo "$as_me: program exited with status $ac_status" >&5
30418 $as_echo "$as_me: failed program was:" >&5
30419 sed 's/^/| /' conftest.$ac_ext >&5
30421 ( exit $ac_status )
30422 bash_cv_wcontinued_broken=yes
30424 rm -rf conftest.dSYM
30425 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30431 { $as_echo "$as_me:$LINENO: result: $bash_cv_wcontinued_broken" >&5
30432 $as_echo "$bash_cv_wcontinued_broken" >&6; }
30433 if test $bash_cv_wcontinued_broken = yes; then
30434 cat >>confdefs.h <<\_ACEOF
30435 @%:@define WCONTINUED_BROKEN 1
30441 { $as_echo "$as_me:$LINENO: checking for speed_t in sys/types.h" >&5
30442 $as_echo_n "checking for speed_t in sys/types.h... " >&6; }
30443 if test "${bash_cv_speed_t_in_sys_types+set}" = set; then
30444 $as_echo_n "(cached) " >&6
30446 cat >conftest.$ac_ext <<_ACEOF
30449 cat confdefs.h >>conftest.$ac_ext
30450 cat >>conftest.$ac_ext <<_ACEOF
30451 /* end confdefs.h. */
30452 #include <sys/types.h>
30461 rm -f conftest.$ac_objext
30462 if { (ac_try="$ac_compile"
30463 case "(($ac_try" in
30464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30465 *) ac_try_echo=$ac_try;;
30467 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30468 $as_echo "$ac_try_echo") >&5
30469 (eval "$ac_compile") 2>conftest.er1
30471 grep -v '^ *+' conftest.er1 >conftest.err
30473 cat conftest.err >&5
30474 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30475 (exit $ac_status); } && {
30476 test -z "$ac_c_werror_flag" ||
30477 test ! -s conftest.err
30478 } && test -s conftest.$ac_objext; then
30479 bash_cv_speed_t_in_sys_types=yes
30481 $as_echo "$as_me: failed program was:" >&5
30482 sed 's/^/| /' conftest.$ac_ext >&5
30484 bash_cv_speed_t_in_sys_types=no
30487 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30490 { $as_echo "$as_me:$LINENO: result: $bash_cv_speed_t_in_sys_types" >&5
30491 $as_echo "$bash_cv_speed_t_in_sys_types" >&6; }
30492 if test $bash_cv_speed_t_in_sys_types = yes; then
30493 cat >>confdefs.h <<\_ACEOF
30494 @%:@define SPEED_T_IN_SYS_TYPES 1
30499 { $as_echo "$as_me:$LINENO: checking whether getpw functions are declared in pwd.h" >&5
30500 $as_echo_n "checking whether getpw functions are declared in pwd.h... " >&6; }
30501 if test "${bash_cv_getpw_declared+set}" = set; then
30502 $as_echo_n "(cached) " >&6
30504 cat >conftest.$ac_ext <<_ACEOF
30507 cat confdefs.h >>conftest.$ac_ext
30508 cat >>conftest.$ac_ext <<_ACEOF
30509 /* end confdefs.h. */
30511 #include <sys/types.h>
30512 #ifdef HAVE_UNISTD_H
30513 # include <unistd.h>
30518 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30519 $EGREP "getpwuid" >/dev/null 2>&1; then
30520 bash_cv_getpw_declared=yes
30522 bash_cv_getpw_declared=no
30528 { $as_echo "$as_me:$LINENO: result: $bash_cv_getpw_declared" >&5
30529 $as_echo "$bash_cv_getpw_declared" >&6; }
30530 if test $bash_cv_getpw_declared = yes; then
30531 cat >>confdefs.h <<\_ACEOF
30532 @%:@define HAVE_GETPW_DECLS 1
30537 { $as_echo "$as_me:$LINENO: checking for unusable real-time signals due to large values" >&5
30538 $as_echo_n "checking for unusable real-time signals due to large values... " >&6; }
30539 if test "${bash_cv_unusable_rtsigs+set}" = set; then
30540 $as_echo_n "(cached) " >&6
30542 if test "$cross_compiling" = yes; then
30543 { $as_echo "$as_me:$LINENO: WARNING: cannot check real-time signals if cross compiling -- defaulting to yes" >&5
30544 $as_echo "$as_me: WARNING: cannot check real-time signals if cross compiling -- defaulting to yes" >&2;}
30545 bash_cv_unusable_rtsigs=yes
30548 cat >conftest.$ac_ext <<_ACEOF
30551 cat confdefs.h >>conftest.$ac_ext
30552 cat >>conftest.$ac_ext <<_ACEOF
30553 /* end confdefs.h. */
30555 #include <sys/types.h>
30556 #include <signal.h>
30564 int n_sigs = 2 * NSIG;
30566 int rtmin = SIGRTMIN;
30571 exit(rtmin < n_sigs);
30574 rm -f conftest$ac_exeext
30575 if { (ac_try="$ac_link"
30576 case "(($ac_try" in
30577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30578 *) ac_try_echo=$ac_try;;
30580 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30581 $as_echo "$ac_try_echo") >&5
30582 (eval "$ac_link") 2>&5
30584 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30585 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30586 { (case "(($ac_try" in
30587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30588 *) ac_try_echo=$ac_try;;
30590 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30591 $as_echo "$ac_try_echo") >&5
30592 (eval "$ac_try") 2>&5
30594 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30595 (exit $ac_status); }; }; then
30596 bash_cv_unusable_rtsigs=yes
30598 $as_echo "$as_me: program exited with status $ac_status" >&5
30599 $as_echo "$as_me: failed program was:" >&5
30600 sed 's/^/| /' conftest.$ac_ext >&5
30602 ( exit $ac_status )
30603 bash_cv_unusable_rtsigs=no
30605 rm -rf conftest.dSYM
30606 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30612 { $as_echo "$as_me:$LINENO: result: $bash_cv_unusable_rtsigs" >&5
30613 $as_echo "$bash_cv_unusable_rtsigs" >&6; }
30614 if test $bash_cv_unusable_rtsigs = yes; then
30615 cat >>confdefs.h <<\_ACEOF
30616 @%:@define UNUSABLE_RT_SIGNALS 1
30625 if test "$bash_cv_sys_siglist" = no && test "$bash_cv_under_sys_siglist" = no && test "$bash_cv_have_strsignal" = no; then
30626 SIGLIST_O=siglist.o
30634 hpux*) { $as_echo "$as_me:$LINENO: checking whether $host_os needs _KERNEL for RLIMIT defines" >&5
30635 $as_echo_n "checking whether $host_os needs _KERNEL for RLIMIT defines... " >&6; }
30636 if test "${bash_cv_kernel_rlimit+set}" = set; then
30637 $as_echo_n "(cached) " >&6
30639 cat >conftest.$ac_ext <<_ACEOF
30642 cat confdefs.h >>conftest.$ac_ext
30643 cat >>conftest.$ac_ext <<_ACEOF
30644 /* end confdefs.h. */
30646 #include <sys/types.h>
30647 #include <sys/resource.h>
30660 rm -f conftest.$ac_objext
30661 if { (ac_try="$ac_compile"
30662 case "(($ac_try" in
30663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30664 *) ac_try_echo=$ac_try;;
30666 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30667 $as_echo "$ac_try_echo") >&5
30668 (eval "$ac_compile") 2>conftest.er1
30670 grep -v '^ *+' conftest.er1 >conftest.err
30672 cat conftest.err >&5
30673 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30674 (exit $ac_status); } && {
30675 test -z "$ac_c_werror_flag" ||
30676 test ! -s conftest.err
30677 } && test -s conftest.$ac_objext; then
30678 bash_cv_kernel_rlimit=no
30680 $as_echo "$as_me: failed program was:" >&5
30681 sed 's/^/| /' conftest.$ac_ext >&5
30683 cat >conftest.$ac_ext <<_ACEOF
30686 cat confdefs.h >>conftest.$ac_ext
30687 cat >>conftest.$ac_ext <<_ACEOF
30688 /* end confdefs.h. */
30690 #include <sys/types.h>
30692 #include <sys/resource.h>
30706 rm -f conftest.$ac_objext
30707 if { (ac_try="$ac_compile"
30708 case "(($ac_try" in
30709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30710 *) ac_try_echo=$ac_try;;
30712 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30713 $as_echo "$ac_try_echo") >&5
30714 (eval "$ac_compile") 2>conftest.er1
30716 grep -v '^ *+' conftest.er1 >conftest.err
30718 cat conftest.err >&5
30719 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30720 (exit $ac_status); } && {
30721 test -z "$ac_c_werror_flag" ||
30722 test ! -s conftest.err
30723 } && test -s conftest.$ac_objext; then
30724 bash_cv_kernel_rlimit=yes
30726 $as_echo "$as_me: failed program was:" >&5
30727 sed 's/^/| /' conftest.$ac_ext >&5
30729 bash_cv_kernel_rlimit=no
30732 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30736 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30739 { $as_echo "$as_me:$LINENO: result: $bash_cv_kernel_rlimit" >&5
30740 $as_echo "$bash_cv_kernel_rlimit" >&6; }
30741 if test $bash_cv_kernel_rlimit = yes; then
30742 cat >>confdefs.h <<\_ACEOF
30743 @%:@define RLIMIT_NEEDS_KERNEL 1
30750 if test "$opt_readline" = yes; then
30752 aix*) prefer_curses=yes ;;
30755 if test "X$bash_cv_termcap_lib" = "X"; then
30758 { $as_echo "$as_me:$LINENO: checking which library has the termcap functions" >&5
30759 $as_echo_n "checking which library has the termcap functions... " >&6; }
30762 if test "${bash_cv_termcap_lib+set}" = set; then
30763 $as_echo_n "(cached) " >&6
30765 { $as_echo "$as_me:$LINENO: checking for tgetent" >&5
30766 $as_echo_n "checking for tgetent... " >&6; }
30767 if test "${ac_cv_func_tgetent+set}" = set; then
30768 $as_echo_n "(cached) " >&6
30770 cat >conftest.$ac_ext <<_ACEOF
30773 cat confdefs.h >>conftest.$ac_ext
30774 cat >>conftest.$ac_ext <<_ACEOF
30775 /* end confdefs.h. */
30776 /* Define tgetent to an innocuous variant, in case <limits.h> declares tgetent.
30777 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30778 #define tgetent innocuous_tgetent
30780 /* System header to define __stub macros and hopefully few prototypes,
30781 which can conflict with char tgetent (); below.
30782 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30783 <limits.h> exists even on freestanding compilers. */
30786 # include <limits.h>
30788 # include <assert.h>
30793 /* Override any GCC internal prototype to avoid an error.
30794 Use char because int might match the return type of a GCC
30795 builtin and then its argument prototype would still apply. */
30800 /* The GNU C library defines this for functions which it implements
30801 to always fail with ENOSYS. Some functions are actually named
30802 something starting with __ and the normal name is an alias. */
30803 #if defined __stub_tgetent || defined __stub___tgetent
30815 rm -f conftest.$ac_objext conftest$ac_exeext
30816 if { (ac_try="$ac_link"
30817 case "(($ac_try" in
30818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30819 *) ac_try_echo=$ac_try;;
30821 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30822 $as_echo "$ac_try_echo") >&5
30823 (eval "$ac_link") 2>conftest.er1
30825 grep -v '^ *+' conftest.er1 >conftest.err
30827 cat conftest.err >&5
30828 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30829 (exit $ac_status); } && {
30830 test -z "$ac_c_werror_flag" ||
30831 test ! -s conftest.err
30832 } && test -s conftest$ac_exeext && {
30833 test "$cross_compiling" = yes ||
30834 $as_test_x conftest$ac_exeext
30836 ac_cv_func_tgetent=yes
30838 $as_echo "$as_me: failed program was:" >&5
30839 sed 's/^/| /' conftest.$ac_ext >&5
30841 ac_cv_func_tgetent=no
30844 rm -rf conftest.dSYM
30845 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30846 conftest$ac_exeext conftest.$ac_ext
30848 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_tgetent" >&5
30849 $as_echo "$ac_cv_func_tgetent" >&6; }
30850 if test "x$ac_cv_func_tgetent" = x""yes; then
30851 bash_cv_termcap_lib=libc
30853 { $as_echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
30854 $as_echo_n "checking for tgetent in -ltermcap... " >&6; }
30855 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
30856 $as_echo_n "(cached) " >&6
30858 ac_check_lib_save_LIBS=$LIBS
30859 LIBS="-ltermcap $LIBS"
30860 cat >conftest.$ac_ext <<_ACEOF
30863 cat confdefs.h >>conftest.$ac_ext
30864 cat >>conftest.$ac_ext <<_ACEOF
30865 /* end confdefs.h. */
30867 /* Override any GCC internal prototype to avoid an error.
30868 Use char because int might match the return type of a GCC
30869 builtin and then its argument prototype would still apply. */
30882 rm -f conftest.$ac_objext conftest$ac_exeext
30883 if { (ac_try="$ac_link"
30884 case "(($ac_try" in
30885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30886 *) ac_try_echo=$ac_try;;
30888 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30889 $as_echo "$ac_try_echo") >&5
30890 (eval "$ac_link") 2>conftest.er1
30892 grep -v '^ *+' conftest.er1 >conftest.err
30894 cat conftest.err >&5
30895 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30896 (exit $ac_status); } && {
30897 test -z "$ac_c_werror_flag" ||
30898 test ! -s conftest.err
30899 } && test -s conftest$ac_exeext && {
30900 test "$cross_compiling" = yes ||
30901 $as_test_x conftest$ac_exeext
30903 ac_cv_lib_termcap_tgetent=yes
30905 $as_echo "$as_me: failed program was:" >&5
30906 sed 's/^/| /' conftest.$ac_ext >&5
30908 ac_cv_lib_termcap_tgetent=no
30911 rm -rf conftest.dSYM
30912 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30913 conftest$ac_exeext conftest.$ac_ext
30914 LIBS=$ac_check_lib_save_LIBS
30916 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
30917 $as_echo "$ac_cv_lib_termcap_tgetent" >&6; }
30918 if test "x$ac_cv_lib_termcap_tgetent" = x""yes; then
30919 bash_cv_termcap_lib=libtermcap
30921 { $as_echo "$as_me:$LINENO: checking for tgetent in -ltinfo" >&5
30922 $as_echo_n "checking for tgetent in -ltinfo... " >&6; }
30923 if test "${ac_cv_lib_tinfo_tgetent+set}" = set; then
30924 $as_echo_n "(cached) " >&6
30926 ac_check_lib_save_LIBS=$LIBS
30927 LIBS="-ltinfo $LIBS"
30928 cat >conftest.$ac_ext <<_ACEOF
30931 cat confdefs.h >>conftest.$ac_ext
30932 cat >>conftest.$ac_ext <<_ACEOF
30933 /* end confdefs.h. */
30935 /* Override any GCC internal prototype to avoid an error.
30936 Use char because int might match the return type of a GCC
30937 builtin and then its argument prototype would still apply. */
30950 rm -f conftest.$ac_objext conftest$ac_exeext
30951 if { (ac_try="$ac_link"
30952 case "(($ac_try" in
30953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30954 *) ac_try_echo=$ac_try;;
30956 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30957 $as_echo "$ac_try_echo") >&5
30958 (eval "$ac_link") 2>conftest.er1
30960 grep -v '^ *+' conftest.er1 >conftest.err
30962 cat conftest.err >&5
30963 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30964 (exit $ac_status); } && {
30965 test -z "$ac_c_werror_flag" ||
30966 test ! -s conftest.err
30967 } && test -s conftest$ac_exeext && {
30968 test "$cross_compiling" = yes ||
30969 $as_test_x conftest$ac_exeext
30971 ac_cv_lib_tinfo_tgetent=yes
30973 $as_echo "$as_me: failed program was:" >&5
30974 sed 's/^/| /' conftest.$ac_ext >&5
30976 ac_cv_lib_tinfo_tgetent=no
30979 rm -rf conftest.dSYM
30980 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30981 conftest$ac_exeext conftest.$ac_ext
30982 LIBS=$ac_check_lib_save_LIBS
30984 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_tinfo_tgetent" >&5
30985 $as_echo "$ac_cv_lib_tinfo_tgetent" >&6; }
30986 if test "x$ac_cv_lib_tinfo_tgetent" = x""yes; then
30987 bash_cv_termcap_lib=libtinfo
30989 { $as_echo "$as_me:$LINENO: checking for tgetent in -lcurses" >&5
30990 $as_echo_n "checking for tgetent in -lcurses... " >&6; }
30991 if test "${ac_cv_lib_curses_tgetent+set}" = set; then
30992 $as_echo_n "(cached) " >&6
30994 ac_check_lib_save_LIBS=$LIBS
30995 LIBS="-lcurses $LIBS"
30996 cat >conftest.$ac_ext <<_ACEOF
30999 cat confdefs.h >>conftest.$ac_ext
31000 cat >>conftest.$ac_ext <<_ACEOF
31001 /* end confdefs.h. */
31003 /* Override any GCC internal prototype to avoid an error.
31004 Use char because int might match the return type of a GCC
31005 builtin and then its argument prototype would still apply. */
31018 rm -f conftest.$ac_objext conftest$ac_exeext
31019 if { (ac_try="$ac_link"
31020 case "(($ac_try" in
31021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31022 *) ac_try_echo=$ac_try;;
31024 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31025 $as_echo "$ac_try_echo") >&5
31026 (eval "$ac_link") 2>conftest.er1
31028 grep -v '^ *+' conftest.er1 >conftest.err
31030 cat conftest.err >&5
31031 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31032 (exit $ac_status); } && {
31033 test -z "$ac_c_werror_flag" ||
31034 test ! -s conftest.err
31035 } && test -s conftest$ac_exeext && {
31036 test "$cross_compiling" = yes ||
31037 $as_test_x conftest$ac_exeext
31039 ac_cv_lib_curses_tgetent=yes
31041 $as_echo "$as_me: failed program was:" >&5
31042 sed 's/^/| /' conftest.$ac_ext >&5
31044 ac_cv_lib_curses_tgetent=no
31047 rm -rf conftest.dSYM
31048 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31049 conftest$ac_exeext conftest.$ac_ext
31050 LIBS=$ac_check_lib_save_LIBS
31052 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_curses_tgetent" >&5
31053 $as_echo "$ac_cv_lib_curses_tgetent" >&6; }
31054 if test "x$ac_cv_lib_curses_tgetent" = x""yes; then
31055 bash_cv_termcap_lib=libcurses
31057 { $as_echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5
31058 $as_echo_n "checking for tgetent in -lncurses... " >&6; }
31059 if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then
31060 $as_echo_n "(cached) " >&6
31062 ac_check_lib_save_LIBS=$LIBS
31063 LIBS="-lncurses $LIBS"
31064 cat >conftest.$ac_ext <<_ACEOF
31067 cat confdefs.h >>conftest.$ac_ext
31068 cat >>conftest.$ac_ext <<_ACEOF
31069 /* end confdefs.h. */
31071 /* Override any GCC internal prototype to avoid an error.
31072 Use char because int might match the return type of a GCC
31073 builtin and then its argument prototype would still apply. */
31086 rm -f conftest.$ac_objext conftest$ac_exeext
31087 if { (ac_try="$ac_link"
31088 case "(($ac_try" in
31089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31090 *) ac_try_echo=$ac_try;;
31092 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31093 $as_echo "$ac_try_echo") >&5
31094 (eval "$ac_link") 2>conftest.er1
31096 grep -v '^ *+' conftest.er1 >conftest.err
31098 cat conftest.err >&5
31099 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31100 (exit $ac_status); } && {
31101 test -z "$ac_c_werror_flag" ||
31102 test ! -s conftest.err
31103 } && test -s conftest$ac_exeext && {
31104 test "$cross_compiling" = yes ||
31105 $as_test_x conftest$ac_exeext
31107 ac_cv_lib_ncurses_tgetent=yes
31109 $as_echo "$as_me: failed program was:" >&5
31110 sed 's/^/| /' conftest.$ac_ext >&5
31112 ac_cv_lib_ncurses_tgetent=no
31115 rm -rf conftest.dSYM
31116 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31117 conftest$ac_exeext conftest.$ac_ext
31118 LIBS=$ac_check_lib_save_LIBS
31120 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5
31121 $as_echo "$ac_cv_lib_ncurses_tgetent" >&6; }
31122 if test "x$ac_cv_lib_ncurses_tgetent" = x""yes; then
31123 bash_cv_termcap_lib=libncurses
31125 bash_cv_termcap_lib=gnutermcap
31138 if test "X$_bash_needmsg" = "Xyes"; then
31139 { $as_echo "$as_me:$LINENO: checking which library has the termcap functions" >&5
31140 $as_echo_n "checking which library has the termcap functions... " >&6; }
31142 { $as_echo "$as_me:$LINENO: result: using $bash_cv_termcap_lib" >&5
31143 $as_echo "using $bash_cv_termcap_lib" >&6; }
31144 if test $bash_cv_termcap_lib = gnutermcap && test -z "$prefer_curses"; then
31145 LDFLAGS="$LDFLAGS -L./lib/termcap"
31146 TERMCAP_LIB="./lib/termcap/libtermcap.a"
31147 TERMCAP_DEP="./lib/termcap/libtermcap.a"
31148 elif test $bash_cv_termcap_lib = libtermcap && test -z "$prefer_curses"; then
31149 TERMCAP_LIB=-ltermcap
31151 elif test $bash_cv_termcap_lib = libtinfo; then
31152 TERMCAP_LIB=-ltinfo
31154 elif test $bash_cv_termcap_lib = libncurses; then
31155 TERMCAP_LIB=-lncurses
31157 elif test $bash_cv_termcap_lib = libc; then
31161 TERMCAP_LIB=-lcurses
31169 { $as_echo "$as_me:$LINENO: checking whether /dev/fd is available" >&5
31170 $as_echo_n "checking whether /dev/fd is available... " >&6; }
31171 if test "${bash_cv_dev_fd+set}" = set; then
31172 $as_echo_n "(cached) " >&6
31175 if test -d /dev/fd && (exec test -r /dev/fd/0 < /dev/null) ; then
31176 # check for systems like FreeBSD 5 that only provide /dev/fd/[012]
31177 if (exec test -r /dev/fd/3 3</dev/null) ; then
31178 bash_cv_dev_fd=standard
31180 bash_cv_dev_fd=absent
31183 if test -z "$bash_cv_dev_fd" ; then
31184 if test -d /proc/self/fd && (exec test -r /proc/self/fd/0 < /dev/null) ; then
31185 bash_cv_dev_fd=whacky
31187 bash_cv_dev_fd=absent
31193 { $as_echo "$as_me:$LINENO: result: $bash_cv_dev_fd" >&5
31194 $as_echo "$bash_cv_dev_fd" >&6; }
31195 if test $bash_cv_dev_fd = "standard"; then
31196 cat >>confdefs.h <<\_ACEOF
31197 @%:@define HAVE_DEV_FD 1
31200 cat >>confdefs.h <<\_ACEOF
31201 @%:@define DEV_FD_PREFIX "/dev/fd/"
31204 elif test $bash_cv_dev_fd = "whacky"; then
31205 cat >>confdefs.h <<\_ACEOF
31206 @%:@define HAVE_DEV_FD 1
31209 cat >>confdefs.h <<\_ACEOF
31210 @%:@define DEV_FD_PREFIX "/proc/self/fd/"
31215 { $as_echo "$as_me:$LINENO: checking whether /dev/stdin stdout stderr are available" >&5
31216 $as_echo_n "checking whether /dev/stdin stdout stderr are available... " >&6; }
31217 if test "${bash_cv_dev_stdin+set}" = set; then
31218 $as_echo_n "(cached) " >&6
31220 if test -d /dev/fd && (exec test -r /dev/stdin < /dev/null) ; then
31221 bash_cv_dev_stdin=present
31222 elif test -d /proc/self/fd && (exec test -r /dev/stdin < /dev/null) ; then
31223 bash_cv_dev_stdin=present
31225 bash_cv_dev_stdin=absent
31230 { $as_echo "$as_me:$LINENO: result: $bash_cv_dev_stdin" >&5
31231 $as_echo "$bash_cv_dev_stdin" >&6; }
31232 if test $bash_cv_dev_stdin = "present"; then
31233 cat >>confdefs.h <<\_ACEOF
31234 @%:@define HAVE_DEV_STDIN 1
31239 { $as_echo "$as_me:$LINENO: checking for default mail directory" >&5
31240 $as_echo_n "checking for default mail directory... " >&6; }
31241 if test "${bash_cv_mail_dir+set}" = set; then
31242 $as_echo_n "(cached) " >&6
31244 if test -d /var/mail; then
31245 bash_cv_mail_dir=/var/mail
31246 elif test -d /var/spool/mail; then
31247 bash_cv_mail_dir=/var/spool/mail
31248 elif test -d /usr/mail; then
31249 bash_cv_mail_dir=/usr/mail
31250 elif test -d /usr/spool/mail; then
31251 bash_cv_mail_dir=/usr/spool/mail
31253 bash_cv_mail_dir=unknown
31258 { $as_echo "$as_me:$LINENO: result: $bash_cv_mail_dir" >&5
31259 $as_echo "$bash_cv_mail_dir" >&6; }
31260 cat >>confdefs.h <<_ACEOF
31261 @%:@define DEFAULT_MAIL_DIRECTORY "$bash_cv_mail_dir"
31266 if test "$bash_cv_job_control_missing" = missing; then
31270 if test "$opt_job_control" = yes; then
31271 cat >>confdefs.h <<\_ACEOF
31272 @%:@define JOB_CONTROL 1
31286 case "${host_os}" in
31287 sysv4.2*) cat >>confdefs.h <<\_ACEOF
31288 @%:@define SVR4_2 1
31291 cat >>confdefs.h <<\_ACEOF
31295 sysv4*) cat >>confdefs.h <<\_ACEOF
31299 sysv5*) cat >>confdefs.h <<\_ACEOF
31303 hpux9*) LOCAL_CFLAGS="-DHPUX9 -DHPUX" ;;
31304 hpux*) LOCAL_CFLAGS=-DHPUX ;;
31305 dgux*) LOCAL_CFLAGS=-D_DGUX_SOURCE; LOCAL_LIBS=-ldgc ;;
31306 isc*) LOCAL_CFLAGS=-Disc386 ;;
31307 rhapsody*) LOCAL_CFLAGS=-DRHAPSODY ;;
31308 darwin*) LOCAL_CFLAGS=-DMACOSX ;;
31309 sco3.2v5*) LOCAL_CFLAGS="-b elf -DWAITPID_BROKEN -DPATH_MAX=1024" ;;
31310 sco3.2v4*) LOCAL_CFLAGS="-DMUST_UNBLOCK_CHLD -DPATH_MAX=1024" ;;
31311 sco3.2*) LOCAL_CFLAGS=-DMUST_UNBLOCK_CHLD ;;
31312 sunos4*) LOCAL_CFLAGS=-DSunOS4 ;;
31313 solaris2.5*) LOCAL_CFLAGS="-DSunOS5 -DSOLARIS" ;;
31314 solaris2.8*) LOCAL_CFLAGS=-DSOLARIS ;;
31315 solaris2.9*) LOCAL_CFLAGS=-DSOLARIS ;;
31316 solaris2.10*) LOCAL_CFLAGS=-DSOLARIS ;;
31317 solaris2*) LOCAL_CFLAGS=-DSOLARIS ;;
31318 lynxos*) LOCAL_CFLAGS=-DRECYCLES_PIDS ;;
31319 linux*) LOCAL_LDFLAGS=-rdynamic # allow dynamic loading
31320 case "`uname -r`" in
31321 2.[456789]*|3*) cat >>confdefs.h <<\_ACEOF
31322 @%:@define PGRP_PIPE 1
31326 *qnx6*) LOCAL_CFLAGS="-Dqnx -Dqnx6" LOCAL_LIBS="-lncurses" ;;
31327 *qnx*) LOCAL_CFLAGS="-Dqnx -F -3s" LOCAL_LDFLAGS="-3s" LOCAL_LIBS="-lunix -lncurses" ;;
31328 powerux*) LOCAL_LIBS="-lgen" ;;
31329 cygwin*) LOCAL_CFLAGS=-DRECYCLES_PIDS ;;
31330 opennt*|interix*) LOCAL_CFLAGS="-DNO_MAIN_ENV_ARG -DBROKEN_DIRENT_D_INO -D_POSIX_SOURCE -D_ALL_SOURCE" ;;
31333 case "${host_os}-${CC}" in
31334 aix4.2*-*gcc*) LOCAL_LDFLAGS="-Xlinker -bexpall -Xlinker -brtl" ;;
31335 aix4.2*) LOCAL_LDFLAGS="-bexpall -brtl" ;;
31336 bsdi4*-*gcc*) LOCAL_LDFLAGS="-rdynamic" ;; # allow dynamic loading, like Linux
31339 case "${host_os}" in
31341 if test -x /usr/bin/objformat && test "`/usr/bin/objformat`" = "elf" ; then
31342 LOCAL_LDFLAGS=-rdynamic # allow dynamic loading
31344 freebsdelf*) LOCAL_LDFLAGS=-rdynamic ;; # allow dynamic loading
31345 dragonfly*) LOCAL_LDFLAGS=-rdynamic ;; # allow dynamic loading
31348 case "$host_cpu" in
31349 *cray*) LOCAL_CFLAGS="-DCRAY" ;; # shell var so config.h can use it
31352 case "$host_cpu-$host_os" in
31353 ibmrt-*bsd4*) LOCAL_CFLAGS="-ma -U__STDC__" ;;
31356 case "$host_cpu-$host_vendor-$host_os" in
31357 m88k-motorola-sysv3) LOCAL_CFLAGS=-DWAITPID_BROKEN ;;
31358 mips-pyramid-sysv4) LOCAL_CFLAGS=-Xa ;;
31362 # Shared object configuration section. These values are generated by
31363 # ${srcdir}/support/shobj-conf
31365 if test "$ac_cv_func_dlopen" = "yes" && test -f ${srcdir}/support/shobj-conf
31367 { $as_echo "$as_me:$LINENO: checking shared object configuration for loadable builtins" >&5
31368 $as_echo_n "checking shared object configuration for loadable builtins... " >&6; }
31369 eval `${CONFIG_SHELL-/bin/sh} ${srcdir}/support/shobj-conf -C "${CC}" -c "${host_cpu}" -o "${host_os}" -v "${host_vendor}"`
31377 { $as_echo "$as_me:$LINENO: result: $SHOBJ_STATUS" >&5
31378 $as_echo "$SHOBJ_STATUS" >&6; }
31381 # try to create a directory tree if the source is elsewhere
31382 # this should be packaged into a script accessible via ${srcdir}/support
31385 *) for d in doc tests support lib examples; do # dirs
31386 test -d $d || mkdir $d
31388 for ld in readline glob tilde malloc sh termcap; do # libdirs
31389 test -d lib/$ld || mkdir lib/$ld
31391 test -d examples/loadables || mkdir examples/loadables # loadable builtins
31392 test -d examples/loadables/perl || mkdir examples/loadables/perl
31397 case "$BUILD_DIR" in
31398 *\ *) BUILD_DIR=`echo "$BUILD_DIR" | sed 's: :\\\\ :g'` ;;
31402 if test -z "$localedir"; then
31403 localedir='${datarootdir}/locale'
31405 if test -z "$datarootdir"; then
31406 datarootdir='${prefix}/share'
31414 # Some versions of autoconf don't substitute these automatically
31436 #AC_SUBST(ALLOCA_SOURCE)
31437 #AC_SUBST(ALLOCA_OBJECT)
31439 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"
31441 ac_config_commands="$ac_config_commands default"
31443 cat >confcache <<\_ACEOF
31444 # This file is a shell script that caches the results of configure
31445 # tests run on this system so they can be shared between configure
31446 # scripts and configure runs, see configure's option --config-cache.
31447 # It is not useful on other systems. If it contains results you don't
31448 # want to keep, you may remove or edit it.
31450 # config.status only pays attention to the cache file if you give it
31451 # the --recheck option to rerun configure.
31453 # `ac_cv_env_foo' variables (set or unset) will be overridden when
31454 # loading this file, other *unset* `ac_cv_foo' will be assigned the
31455 # following values.
31459 # The following way of writing the cache mishandles newlines in values,
31460 # but we know of no workaround that is simple, portable, and efficient.
31461 # So, we kill variables containing newlines.
31462 # Ultrix sh set writes to stderr and can't be redirected directly,
31463 # and sets the high bit in the cache file unless we assign to the vars.
31465 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
31466 eval ac_val=\$$ac_var
31470 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
31471 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
31474 _ | IFS | as_nl) ;; #(
31475 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
31476 *) $as_unset $ac_var ;;
31482 case $as_nl`(ac_space=' '; set) 2>&1` in #(
31483 *${as_nl}ac_space=\ *)
31484 # `set' does not quote correctly, so add quotes (double-quote
31485 # substitution turns \\\\ into \\, and sed turns \\ into \).
31488 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
31491 # `set' quotes correctly as required by POSIX, so do not add quotes.
31492 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
31501 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
31503 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
31505 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
31506 if test -w "$cache_file"; then
31507 test "x$cache_file" != "x/dev/null" &&
31508 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
31509 $as_echo "$as_me: updating cache $cache_file" >&6;}
31510 cat confcache >$cache_file
31512 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
31513 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
31518 test "x$prefix" = xNONE && prefix=$ac_default_prefix
31519 # Let make expand exec_prefix.
31520 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
31522 DEFS=-DHAVE_CONFIG_H
31526 for ac_i in : $LIB@&t@OBJS; do test "x$ac_i" = x: && continue
31527 # 1. Remove the extension, and $U if already installed.
31528 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
31529 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
31530 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
31531 # will be set to the directory where LIBOBJS objects are built.
31532 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
31533 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
31535 LIB@&t@OBJS=$ac_libobjs
31537 LTLIBOBJS=$ac_ltlibobjs
31542 : ${CONFIG_STATUS=./config.status}
31544 ac_clean_files_save=$ac_clean_files
31545 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
31546 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
31547 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
31548 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31550 # Generated by $as_me.
31551 # Run this file to recreate the current configuration.
31552 # Compiler output produced by configure, useful for debugging
31553 # configure, is in config.log if it exists.
31556 ac_cs_recheck=false
31558 SHELL=\${CONFIG_SHELL-$SHELL}
31561 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31562 ## --------------------- ##
31563 ## M4sh Initialization. ##
31564 ## --------------------- ##
31566 # Be more Bourne compatible
31567 DUALCASE=1; export DUALCASE # for MKS sh
31568 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
31571 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
31572 # is contrary to our usage. Disable this feature.
31573 alias -g '${1+"$@"}'='"$@"'
31574 setopt NO_GLOB_SUBST
31576 case `(set -o) 2>/dev/null` in
31577 *posix*) set -o posix ;;
31586 # Avoid depending upon Character Ranges.
31587 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
31588 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
31589 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
31590 as_cr_digits='0123456789'
31591 as_cr_alnum=$as_cr_Letters$as_cr_digits
31596 # Printing a long string crashes Solaris 7 /usr/bin/printf.
31597 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
31598 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
31599 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
31600 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
31601 as_echo='printf %s\n'
31602 as_echo_n='printf %s'
31604 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
31605 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
31606 as_echo_n='/usr/ucb/echo -n'
31608 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
31609 as_echo_n_body='eval
31613 expr "X$arg" : "X\\(.*\\)$as_nl";
31614 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
31616 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
31618 export as_echo_n_body
31619 as_echo_n='sh -c $as_echo_n_body as_echo'
31621 export as_echo_body
31622 as_echo='sh -c $as_echo_body as_echo'
31625 # The user is always right.
31626 if test "${PATH_SEPARATOR+set}" != set; then
31628 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
31629 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
31634 # Support unset when possible.
31635 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
31643 # We need space, tab and new line, in precisely that order. Quoting is
31644 # there to prevent editors from complaining about space-tab.
31645 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
31646 # splitting by setting IFS to empty value.)
31649 # Find who we are. Look in the path if we contain no directory separator.
31651 *[\\/]* ) as_myself=$0 ;;
31652 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31653 for as_dir in $PATH
31656 test -z "$as_dir" && as_dir=.
31657 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
31663 # We did not find ourselves, most probably we were run as `sh COMMAND'
31664 # in which case we are not to be found in the path.
31665 if test "x$as_myself" = x; then
31668 if test ! -f "$as_myself"; then
31669 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
31670 { (exit 1); exit 1; }
31673 # Work around bugs in pre-3.0 UWIN ksh.
31674 for as_var in ENV MAIL MAILPATH
31675 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
31687 # Required to use basename.
31688 if expr a : '\(a\)' >/dev/null 2>&1 &&
31689 test "X`expr 00001 : '.*\(...\)'`" = X001; then
31695 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
31696 as_basename=basename
31702 # Name of the executable.
31703 as_me=`$as_basename -- "$0" ||
31704 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
31705 X"$0" : 'X\(//\)$' \| \
31706 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
31708 sed '/^.*\/\([^/][^/]*\)\/*$/{
31727 as_lineno_1=$LINENO
31728 as_lineno_2=$LINENO
31729 test "x$as_lineno_1" != "x$as_lineno_2" &&
31730 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
31732 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
31733 # uniformly replaced by the line number. The first 'sed' inserts a
31734 # line-number line after each line using $LINENO; the second 'sed'
31735 # does the real work. The second script uses 'N' to pair each
31736 # line-number line with the line containing $LINENO, and appends
31737 # trailing '-' during substitution so that $LINENO is not a special
31738 # case at line end.
31739 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
31740 # scripts with optimization help from Paolo Bonzini. Blame Lee
31741 # E. McMahon (1931-1989) for sed's syntax. :-)
31753 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
31756 ' >$as_me.lineno &&
31757 chmod +x "$as_me.lineno" ||
31758 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
31759 { (exit 1); exit 1; }; }
31761 # Don't try to exec as it changes $[0], causing all sort of problems
31762 # (the dirname of $[0] is not the place where we might find the
31763 # original and so on. Autoconf is especially sensitive to this).
31764 . "./$as_me.lineno"
31765 # Exit status is that of the last command.
31770 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
31776 ECHO_C= ECHO_N= ECHO_T=
31777 case `echo -n x` in
31779 case `echo 'x\c'` in
31780 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
31786 if expr a : '\(a\)' >/dev/null 2>&1 &&
31787 test "X`expr 00001 : '.*\(...\)'`" = X001; then
31793 rm -f conf$$ conf$$.exe conf$$.file
31794 if test -d conf$$.dir; then
31795 rm -f conf$$.dir/conf$$.file
31798 mkdir conf$$.dir 2>/dev/null
31800 if (echo >conf$$.file) 2>/dev/null; then
31801 if ln -s conf$$.file conf$$ 2>/dev/null; then
31803 # ... but there are two gotchas:
31804 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
31805 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
31806 # In both cases, we have to default to `cp -p'.
31807 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
31809 elif ln conf$$.file conf$$ 2>/dev/null; then
31817 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
31818 rmdir conf$$.dir 2>/dev/null
31820 if mkdir -p . 2>/dev/null; then
31823 test -d ./-p && rmdir ./-p
31827 if test -x / >/dev/null 2>&1; then
31828 as_test_x='test -x'
31830 if ls -dL / >/dev/null 2>&1; then
31837 if test -d "$1"; then
31843 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
31844 ???[sx]*):;;*)false;;esac;fi
31848 as_executable_p=$as_test_x
31850 # Sed expression to map a string onto a valid CPP name.
31851 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
31853 # Sed expression to map a string onto a valid variable name.
31854 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
31859 # Save the log message, to keep $[0] and so on meaningful, and to
31860 # report actual input values of CONFIG_FILES etc. instead of their
31861 # values after options handling.
31863 This file was extended by bash $as_me 4.2-alpha, which was
31864 generated by GNU Autoconf 2.63. Invocation command line was
31866 CONFIG_FILES = $CONFIG_FILES
31867 CONFIG_HEADERS = $CONFIG_HEADERS
31868 CONFIG_LINKS = $CONFIG_LINKS
31869 CONFIG_COMMANDS = $CONFIG_COMMANDS
31872 on `(hostname || uname -n) 2>/dev/null | sed 1q`
31877 case $ac_config_files in *"
31878 "*) set x $ac_config_files; shift; ac_config_files=$*;;
31881 case $ac_config_headers in *"
31882 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
31886 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31887 # Files that config.status was made for.
31888 config_files="$ac_config_files"
31889 config_headers="$ac_config_headers"
31890 config_commands="$ac_config_commands"
31894 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31896 \`$as_me' instantiates files from templates according to the
31897 current configuration.
31899 Usage: $0 [OPTION]... [FILE]...
31901 -h, --help print this help, then exit
31902 -V, --version print version number and configuration settings, then exit
31903 -q, --quiet, --silent
31904 do not print progress messages
31905 -d, --debug don't remove temporary files
31906 --recheck update $as_me by reconfiguring in the same conditions
31907 --file=FILE[:TEMPLATE]
31908 instantiate the configuration file FILE
31909 --header=FILE[:TEMPLATE]
31910 instantiate the configuration header FILE
31912 Configuration files:
31915 Configuration headers:
31918 Configuration commands:
31921 Report bugs to <bug-autoconf@gnu.org>."
31924 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31926 bash config.status 4.2-alpha
31927 configured by $0, generated by GNU Autoconf 2.63,
31928 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
31930 Copyright (C) 2008 Free Software Foundation, Inc.
31931 This config.status script is free software; the Free Software Foundation
31932 gives unlimited permission to copy, distribute and modify it."
31937 test -n "\$AWK" || AWK=awk
31940 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31941 # The default lists apply if the user does not specify any file.
31947 ac_option=`expr "X$1" : 'X\([^=]*\)='`
31948 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
31959 # Handling of the options.
31960 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
31962 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
31963 $as_echo "$ac_cs_version"; exit ;;
31964 --debug | --debu | --deb | --de | --d | -d )
31966 --file | --fil | --fi | --f )
31969 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
31971 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
31972 ac_need_defaults=false;;
31973 --header | --heade | --head | --hea )
31976 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
31978 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
31979 ac_need_defaults=false;;
31981 # Conflict between --help and --header
31982 { $as_echo "$as_me: error: ambiguous option: $1
31983 Try \`$0 --help' for more information." >&2
31984 { (exit 1); exit 1; }; };;
31985 --help | --hel | -h )
31986 $as_echo "$ac_cs_usage"; exit ;;
31987 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
31988 | -silent | --silent | --silen | --sile | --sil | --si | --s)
31991 # This is an error.
31992 -*) { $as_echo "$as_me: error: unrecognized option: $1
31993 Try \`$0 --help' for more information." >&2
31994 { (exit 1); exit 1; }; } ;;
31996 *) ac_config_targets="$ac_config_targets $1"
31997 ac_need_defaults=false ;;
32003 ac_configure_extra_args=
32005 if $ac_cs_silent; then
32007 ac_configure_extra_args="$ac_configure_extra_args --silent"
32011 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32012 if \$ac_cs_recheck; then
32013 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
32015 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
32016 CONFIG_SHELL='$SHELL'
32017 export CONFIG_SHELL
32022 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32026 sed 'h;s/./-/g;s/^.../@%:@@%:@ /;s/...$/ @%:@@%:@/;p;x;p;x' <<_ASBOX
32027 @%:@@%:@ Running $as_me. @%:@@%:@
32033 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32037 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
32038 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
32040 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
32041 # Capture the value of LINGUAS because we need it to compute CATALOGS.
32042 LINGUAS="${LINGUAS-%UNSET%}"
32047 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32049 # Handling of arguments.
32050 for ac_config_target in $ac_config_targets
32052 case $ac_config_target in
32053 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
32054 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
32055 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
32056 "builtins/Makefile") CONFIG_FILES="$CONFIG_FILES builtins/Makefile" ;;
32057 "lib/readline/Makefile") CONFIG_FILES="$CONFIG_FILES lib/readline/Makefile" ;;
32058 "lib/glob/Makefile") CONFIG_FILES="$CONFIG_FILES lib/glob/Makefile" ;;
32059 "lib/intl/Makefile") CONFIG_FILES="$CONFIG_FILES lib/intl/Makefile" ;;
32060 "lib/malloc/Makefile") CONFIG_FILES="$CONFIG_FILES lib/malloc/Makefile" ;;
32061 "lib/sh/Makefile") CONFIG_FILES="$CONFIG_FILES lib/sh/Makefile" ;;
32062 "lib/termcap/Makefile") CONFIG_FILES="$CONFIG_FILES lib/termcap/Makefile" ;;
32063 "lib/tilde/Makefile") CONFIG_FILES="$CONFIG_FILES lib/tilde/Makefile" ;;
32064 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
32065 "support/Makefile") CONFIG_FILES="$CONFIG_FILES support/Makefile" ;;
32066 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
32067 "examples/loadables/Makefile") CONFIG_FILES="$CONFIG_FILES examples/loadables/Makefile" ;;
32068 "examples/loadables/perl/Makefile") CONFIG_FILES="$CONFIG_FILES examples/loadables/perl/Makefile" ;;
32069 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
32071 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
32072 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
32073 { (exit 1); exit 1; }; };;
32078 # If the user did not use the arguments to specify the items to instantiate,
32079 # then the envvar interface is used. Set only those that are not.
32080 # We use the long form for the default assignment because of an extremely
32081 # bizarre bug on SunOS 4.1.3.
32082 if $ac_need_defaults; then
32083 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
32084 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
32085 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
32088 # Have a temporary directory for convenience. Make it in the build tree
32089 # simply because there is no reason against having it here, and in addition,
32090 # creating and moving files from /tmp can sometimes cause problems.
32091 # Hook for its removal unless debugging.
32092 # Note that there is a small window in which the directory will not be cleaned:
32093 # after its creation but before its name has been assigned to `$tmp'.
32097 trap 'exit_status=$?
32098 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
32100 trap '{ (exit 1); exit 1; }' 1 2 13 15
32102 # Create a (secure) tmp directory for tmp files.
32105 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
32106 test -n "$tmp" && test -d "$tmp"
32109 tmp=./conf$$-$RANDOM
32110 (umask 077 && mkdir "$tmp")
32113 $as_echo "$as_me: cannot create a temporary directory in ." >&2
32114 { (exit 1); exit 1; }
32117 # Set up the scripts for CONFIG_FILES section.
32118 # No need to generate them if there are no CONFIG_FILES.
32119 # This happens for instance with `./config.status config.h'.
32120 if test -n "$CONFIG_FILES"; then
32124 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
32125 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
32128 ac_cs_awk_cr=$ac_cr
32131 echo 'BEGIN {' >"$tmp/subs1.awk" &&
32136 echo "cat >conf$$subs.awk <<_ACEOF" &&
32137 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
32139 } >conf$$subs.sh ||
32140 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
32141 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
32142 { (exit 1); exit 1; }; }
32143 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
32145 for ac_last_try in false false false false false :; do
32146 . ./conf$$subs.sh ||
32147 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
32148 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
32149 { (exit 1); exit 1; }; }
32151 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
32152 if test $ac_delim_n = $ac_delim_num; then
32154 elif $ac_last_try; then
32155 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
32156 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
32157 { (exit 1); exit 1; }; }
32159 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
32162 rm -f conf$$subs.sh
32164 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32165 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
32169 s/^/S["/; s/!.*/"]=/
32179 s/\(.\{148\}\).*/\1/
32181 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
32186 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
32193 s/\(.\{148\}\).*/\1/
32195 s/["\\]/\\&/g; s/^/"/; s/$/"/
32199 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
32204 ' <conf$$subs.awk | sed '
32209 ' >>$CONFIG_STATUS || ac_write_fail=1
32210 rm -f conf$$subs.awk
32211 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32213 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
32214 for (key in S) S_is_set[key] = 1
32220 nfields = split(line, field, "@")
32222 len = length(field[1])
32223 for (i = 2; i < nfields; i++) {
32225 keylen = length(key)
32226 if (S_is_set[key]) {
32228 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
32229 len += length(value) + length(field[++i])
32240 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32241 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
32242 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
32245 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
32246 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
32247 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
32248 { (exit 1); exit 1; }; }
32251 # VPATH may cause trouble with some makes, so we remove $(srcdir),
32252 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
32253 # trailing colons and then remove the whole line if VPATH becomes empty
32254 # (actually we leave an empty line to preserve line numbers).
32255 if test "x$srcdir" = x.; then
32256 ac_vpsub='/^[ ]*VPATH[ ]*=/{
32257 s/:*\$(srcdir):*/:/
32258 s/:*\${srcdir}:*/:/
32260 s/^\([^=]*=[ ]*\):*/\1/
32266 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32267 fi # test -n "$CONFIG_FILES"
32269 # Set up the scripts for CONFIG_HEADERS section.
32270 # No need to generate them if there are no CONFIG_HEADERS.
32271 # This happens for instance with `./config.status Makefile'.
32272 if test -n "$CONFIG_HEADERS"; then
32273 cat >"$tmp/defines.awk" <<\_ACAWK ||
32277 # Transform confdefs.h into an awk script `defines.awk', embedded as
32278 # here-document in config.status, that substitutes the proper values into
32279 # config.h.in to produce config.h.
32281 # Create a delimiter string that does not exist in confdefs.h, to ease
32282 # handling of long lines.
32284 for ac_last_try in false false :; do
32285 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
32286 if test -z "$ac_t"; then
32288 elif $ac_last_try; then
32289 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
32290 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
32291 { (exit 1); exit 1; }; }
32293 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
32297 # For the awk script, D is an array of macro values keyed by name,
32298 # likewise P contains macro parameters if any. Preserve backslash
32299 # newline sequences.
32301 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
32303 s/.\{148\}/&'"$ac_delim"'/g
32306 s/^[ ]*#[ ]*define[ ][ ]*/ /
32313 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
32315 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
32319 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
32320 D["\1"]=" \3\\\\\\n"\\/p
32322 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
32327 s/.\{148\}/&'"$ac_delim"'/g
32332 s/["\\]/\\&/g; s/^/"/; s/$/"/p
32335 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
32337 ' <confdefs.h | sed '
32338 s/'"$ac_delim"'/"\\\
32339 "/g' >>$CONFIG_STATUS || ac_write_fail=1
32341 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32342 for (key in D) D_is_set[key] = 1
32345 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
32347 split(line, arg, " ")
32348 if (arg[1] == "#") {
32352 defundef = substr(arg[1], 2)
32355 split(mac1, mac2, "(") #)
32357 prefix = substr(line, 1, index(line, defundef) - 1)
32358 if (D_is_set[macro]) {
32359 # Preserve the white space surrounding the "#".
32360 print prefix "define", macro P[macro] D[macro]
32363 # Replace #undef with comments. This is necessary, for example,
32364 # in the case of _POSIX_SOURCE, which is predefined and required
32365 # on some systems where configure will not decide to define it.
32366 if (defundef == "undef") {
32367 print "/*", prefix defundef, macro, "*/"
32375 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32376 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
32377 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
32378 { (exit 1); exit 1; }; }
32379 fi # test -n "$CONFIG_HEADERS"
32382 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
32387 :[FHLC]) ac_mode=$ac_tag; continue;;
32389 case $ac_mode$ac_tag in
32391 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
32392 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
32393 { (exit 1); exit 1; }; };;
32394 :[FH]-) ac_tag=-:-;;
32395 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
32412 -) ac_f="$tmp/stdin";;
32413 *) # Look for the file first in the build tree, then in the source tree
32414 # (if the path is not absolute). The absolute path cannot be DOS-style,
32415 # because $ac_f cannot contain `:'.
32419 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
32421 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
32422 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
32423 { (exit 1); exit 1; }; };;
32425 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
32426 ac_file_inputs="$ac_file_inputs '$ac_f'"
32429 # Let's still pretend it is `configure' which instantiates (i.e., don't
32430 # use $as_me), people would be surprised to read:
32431 # /* config.h. Generated by config.status. */
32432 configure_input='Generated from '`
32433 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
32435 if test x"$ac_file" != x-; then
32436 configure_input="$ac_file. $configure_input"
32437 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
32438 $as_echo "$as_me: creating $ac_file" >&6;}
32440 # Neutralize special characters interpreted by sed in replacement strings.
32441 case $configure_input in #(
32442 *\&* | *\|* | *\\* )
32443 ac_sed_conf_input=`$as_echo "$configure_input" |
32444 sed 's/[\\\\&|]/\\\\&/g'`;; #(
32445 *) ac_sed_conf_input=$configure_input;;
32449 *:-:* | *:-) cat >"$tmp/stdin" \
32450 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
32451 $as_echo "$as_me: error: could not create $ac_file" >&2;}
32452 { (exit 1); exit 1; }; } ;;
32457 ac_dir=`$as_dirname -- "$ac_file" ||
32458 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32459 X"$ac_file" : 'X\(//\)[^/]' \| \
32460 X"$ac_file" : 'X\(//\)$' \| \
32461 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
32462 $as_echo X"$ac_file" |
32463 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
32467 /^X\(\/\/\)[^/].*/{
32482 -*) as_dir=./$as_dir;;
32484 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
32488 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
32489 *) as_qdir=$as_dir;;
32491 as_dirs="'$as_qdir' $as_dirs"
32492 as_dir=`$as_dirname -- "$as_dir" ||
32493 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32494 X"$as_dir" : 'X\(//\)[^/]' \| \
32495 X"$as_dir" : 'X\(//\)$' \| \
32496 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
32497 $as_echo X"$as_dir" |
32498 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
32502 /^X\(\/\/\)[^/].*/{
32515 test -d "$as_dir" && break
32517 test -z "$as_dirs" || eval "mkdir $as_dirs"
32518 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
32519 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
32520 { (exit 1); exit 1; }; }; }
32524 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
32526 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
32527 # A ".." for each directory in $ac_dir_suffix.
32528 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
32529 case $ac_top_builddir_sub in
32530 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
32531 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
32534 ac_abs_top_builddir=$ac_pwd
32535 ac_abs_builddir=$ac_pwd$ac_dir_suffix
32536 # for backward compatibility:
32537 ac_top_builddir=$ac_top_build_prefix
32540 .) # We are building in place.
32542 ac_top_srcdir=$ac_top_builddir_sub
32543 ac_abs_top_srcdir=$ac_pwd ;;
32544 [\\/]* | ?:[\\/]* ) # Absolute name.
32545 ac_srcdir=$srcdir$ac_dir_suffix;
32546 ac_top_srcdir=$srcdir
32547 ac_abs_top_srcdir=$srcdir ;;
32548 *) # Relative name.
32549 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
32550 ac_top_srcdir=$ac_top_build_prefix$srcdir
32551 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
32553 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
32563 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
32564 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
32568 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32569 # If the template does not know about datarootdir, expand it.
32570 # FIXME: This hack should be removed a few years after 2.60.
32571 ac_datarootdir_hack=; ac_datarootdir_seen=
32584 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
32585 *datarootdir*) ac_datarootdir_seen=yes;;
32586 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
32587 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
32588 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
32590 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32591 ac_datarootdir_hack='
32592 s&@datadir@&$datadir&g
32593 s&@docdir@&$docdir&g
32594 s&@infodir@&$infodir&g
32595 s&@localedir@&$localedir&g
32596 s&@mandir@&$mandir&g
32597 s&\\\${datarootdir}&$datarootdir&g' ;;
32601 # Neutralize VPATH when `$srcdir' = `.'.
32602 # Shell code in configure.ac might set extrasub.
32603 # FIXME: do we really want to maintain this feature?
32604 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32605 ac_sed_extra="$ac_vpsub
32608 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32610 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
32611 s|@configure_input@|$ac_sed_conf_input|;t t
32612 s&@top_builddir@&$ac_top_builddir_sub&;t t
32613 s&@top_build_prefix@&$ac_top_build_prefix&;t t
32614 s&@srcdir@&$ac_srcdir&;t t
32615 s&@abs_srcdir@&$ac_abs_srcdir&;t t
32616 s&@top_srcdir@&$ac_top_srcdir&;t t
32617 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
32618 s&@builddir@&$ac_builddir&;t t
32619 s&@abs_builddir@&$ac_abs_builddir&;t t
32620 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
32621 s&@INSTALL@&$ac_INSTALL&;t t
32622 $ac_datarootdir_hack
32624 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
32625 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
32626 $as_echo "$as_me: error: could not create $ac_file" >&2;}
32627 { (exit 1); exit 1; }; }
32629 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
32630 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
32631 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
32632 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
32633 which seems to be undefined. Please make sure it is defined." >&5
32634 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
32635 which seems to be undefined. Please make sure it is defined." >&2;}
32639 -) cat "$tmp/out" && rm -f "$tmp/out";;
32640 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
32642 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
32643 $as_echo "$as_me: error: could not create $ac_file" >&2;}
32644 { (exit 1); exit 1; }; }
32650 if test x"$ac_file" != x-; then
32652 $as_echo "/* $configure_input */" \
32653 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
32654 } >"$tmp/config.h" \
32655 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
32656 $as_echo "$as_me: error: could not create $ac_file" >&2;}
32657 { (exit 1); exit 1; }; }
32658 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
32659 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
32660 $as_echo "$as_me: $ac_file is unchanged" >&6;}
32663 mv "$tmp/config.h" "$ac_file" \
32664 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
32665 $as_echo "$as_me: error: could not create $ac_file" >&2;}
32666 { (exit 1); exit 1; }; }
32669 $as_echo "/* $configure_input */" \
32670 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
32671 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
32672 $as_echo "$as_me: error: could not create -" >&2;}
32673 { (exit 1); exit 1; }; }
32677 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
32678 $as_echo "$as_me: executing $ac_file commands" >&6;}
32683 case $ac_file$ac_mode in
32685 for ac_file in $CONFIG_FILES; do
32686 # Support "outfile[:infile[:infile...]]"
32688 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
32690 # PO directories have a Makefile.in generated from Makefile.in.in.
32691 case "$ac_file" in */Makefile.in)
32692 # Adjust a relative srcdir.
32693 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
32694 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
32695 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
32696 # In autoconf-2.13 it is called $ac_given_srcdir.
32697 # In autoconf-2.50 it is called $srcdir.
32698 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
32699 case "$ac_given_srcdir" in
32700 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
32701 /*) top_srcdir="$ac_given_srcdir" ;;
32702 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
32704 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
32705 rm -f "$ac_dir/POTFILES"
32706 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
32707 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
32708 POMAKEFILEDEPS="POTFILES.in"
32709 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
32710 # on $ac_dir but don't depend on user-specified configuration
32712 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
32713 # The LINGUAS file contains the set of available languages.
32714 if test -n "$OBSOLETE_ALL_LINGUAS"; then
32715 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
32717 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
32718 # Hide the ALL_LINGUAS assigment from automake.
32719 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
32720 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
32722 # The set of available languages was given in configure.in.
32723 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
32725 case "$ac_given_srcdir" in
32727 *) srcdirpre='$(srcdir)/' ;;
32733 for lang in $ALL_LINGUAS; do
32734 POFILES="$POFILES $srcdirpre$lang.po"
32735 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
32736 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
32737 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
32739 # CATALOGS depends on both $ac_dir and the user's LINGUAS
32740 # environment variable.
32742 if test -n "$ALL_LINGUAS"; then
32743 for presentlang in $ALL_LINGUAS; do
32745 if test "%UNSET%" != "$LINGUAS"; then
32746 desiredlanguages="$LINGUAS"
32748 desiredlanguages="$ALL_LINGUAS"
32750 for desiredlang in $desiredlanguages; do
32751 # Use the presentlang catalog if desiredlang is
32752 # a. equal to presentlang, or
32753 # b. a variant of presentlang (because in this case,
32754 # presentlang can be used as a fallback for messages
32755 # which are not translated in the desiredlang catalog).
32756 case "$desiredlang" in
32757 "$presentlang"*) useit=yes;;
32760 if test $useit = yes; then
32761 INST_LINGUAS="$INST_LINGUAS $presentlang"
32766 if test -n "$INST_LINGUAS"; then
32767 for lang in $INST_LINGUAS; do
32768 CATALOGS="$CATALOGS $lang.gmo"
32771 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
32772 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"
32773 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
32774 if test -f "$f"; then
32776 *.orig | *.bak | *~) ;;
32777 *) cat "$f" >> "$ac_dir/Makefile" ;;
32786 # Makefile uses this timestamp file to record whether config.h is up to date.
32787 echo timestamp > stamp-h
32794 { (exit 0); exit 0; }
32796 chmod +x $CONFIG_STATUS
32797 ac_clean_files=$ac_clean_files_save
32799 test $ac_write_fail = 0 ||
32800 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
32801 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
32802 { (exit 1); exit 1; }; }
32805 # configure is writing to config.log, and then calls config.status.
32806 # config.status does its own redirection, appending to config.log.
32807 # Unfortunately, on DOS this fails, as config.log is still kept open
32808 # by configure, so config.status won't be able to write to it; its
32809 # output is simply discarded. So we exec the FD to /dev/null,
32810 # effectively closing config.log, so it can be properly (re)opened and
32811 # appended to by config.status. When coming back to configure, we
32812 # need to make the FD available again.
32813 if test "$no_create" != yes; then
32815 ac_config_status_args=
32816 test "$silent" = yes &&
32817 ac_config_status_args="$ac_config_status_args --quiet"
32819 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
32821 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
32822 # would make configure fail if this is the last instruction.
32823 $ac_cs_success || { (exit 1); exit 1; }
32825 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
32826 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
32827 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}