2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.60.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
13 # Be Bourne compatible
14 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18 # is contrary to our usage. Disable this feature.
19 alias -g '${1+"$@"}'='"$@"'
22 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
24 BIN_SH=xpg4; export BIN_SH # for Tru64
25 DUALCASE=1; export DUALCASE # for MKS sh
29 # Avoid depending upon Character Ranges.
30 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
31 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
32 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
33 as_cr_digits='0123456789'
34 as_cr_alnum=$as_cr_Letters$as_cr_digits
36 # The user is always right.
37 if test "${PATH_SEPARATOR+set}" != set; then
38 echo "#! /bin/sh" >conf$$.sh
39 echo "exit 0" >>conf$$.sh
41 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
49 # Support unset when possible.
50 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
58 # We need space, tab and new line, in precisely that order. Quoting is
59 # there to prevent editors from complaining about space-tab.
60 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
61 # splitting by setting IFS to empty value.)
66 # Find who we are. Look in the path if we contain no directory separator.
68 *[\\/]* ) as_myself=$0 ;;
69 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
73 test -z "$as_dir" && as_dir=.
74 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
80 # We did not find ourselves, most probably we were run as `sh COMMAND'
81 # in which case we are not to be found in the path.
82 if test "x$as_myself" = x; then
85 if test ! -f "$as_myself"; then
86 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
90 # Work around bugs in pre-3.0 UWIN ksh.
91 for as_var in ENV MAIL MAILPATH
92 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
100 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
101 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
104 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
105 eval $as_var=C; export $as_var
107 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
111 # Required to use basename.
112 if expr a : '\(a\)' >/dev/null 2>&1 &&
113 test "X`expr 00001 : '.*\(...\)'`" = X001; then
119 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
126 # Name of the executable.
127 as_me=`$as_basename -- "$0" ||
128 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
129 X"$0" : 'X\(//\)$' \| \
130 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
132 sed '/^.*\/\([^/][^/]*\)\/*$/{
150 if test "x$CONFIG_SHELL" = x; then
151 if (eval ":") 2>/dev/null; then
157 if test $as_have_required = yes && (eval ":
167 as_func_ret_success () {
170 as_func_ret_failure () {
175 if as_func_success; then
179 echo as_func_success failed.
182 if as_func_failure; then
184 echo as_func_failure succeeded.
187 if as_func_ret_success; then
191 echo as_func_ret_success failed.
194 if as_func_ret_failure; then
196 echo as_func_ret_failure succeeded.
199 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
203 echo positional parameters were not saved.
206 test \$exitcode = 0) || { (exit 1); exit 1; }
211 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
212 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
213 ") 2> /dev/null; then
217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
218 for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221 test -z "$as_dir" && as_dir=.
224 for as_base in sh bash ksh sh5; do
225 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
232 for as_shell in $as_candidate_shells $SHELL; do
233 # Try only shells that exist, to save several forks.
234 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
235 { ("$as_shell") 2> /dev/null <<\_ASEOF
236 # Be Bourne compatible
237 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
240 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
241 # is contrary to our usage. Disable this feature.
242 alias -g '${1+"$@"}'='"$@"'
245 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
247 BIN_SH=xpg4; export BIN_SH # for Tru64
248 DUALCASE=1; export DUALCASE # for MKS sh
253 CONFIG_SHELL=$as_shell
255 if { "$as_shell" 2> /dev/null <<\_ASEOF
256 # Be Bourne compatible
257 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
260 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
261 # is contrary to our usage. Disable this feature.
262 alias -g '${1+"$@"}'='"$@"'
265 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
267 BIN_SH=xpg4; export BIN_SH # for Tru64
268 DUALCASE=1; export DUALCASE # for MKS sh
280 as_func_ret_success () {
283 as_func_ret_failure () {
288 if as_func_success; then
292 echo as_func_success failed.
295 if as_func_failure; then
297 echo as_func_failure succeeded.
300 if as_func_ret_success; then
304 echo as_func_ret_success failed.
307 if as_func_ret_failure; then
309 echo as_func_ret_failure succeeded.
312 if ( set x; as_func_ret_success y && test x = "$1" ); then
316 echo positional parameters were not saved.
319 test $exitcode = 0) || { (exit 1); exit 1; }
324 test "x$as_lineno_1" != "x$as_lineno_2" &&
325 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
336 if test "x$CONFIG_SHELL" != x; then
337 for as_var in BASH_ENV ENV
338 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
341 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
345 if test $as_have_required = no; then
346 echo This script requires a shell more modern than all the
347 echo shells that I found on your system. Please install a
348 echo modern shell, or manually run the script under such a
349 echo shell if you do have one.
350 { (exit 1); exit 1; }
360 (eval "as_func_return () {
369 as_func_ret_success () {
372 as_func_ret_failure () {
377 if as_func_success; then
381 echo as_func_success failed.
384 if as_func_failure; then
386 echo as_func_failure succeeded.
389 if as_func_ret_success; then
393 echo as_func_ret_success failed.
396 if as_func_ret_failure; then
398 echo as_func_ret_failure succeeded.
401 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
405 echo positional parameters were not saved.
408 test \$exitcode = 0") || {
409 echo No shell found that supports shell functions.
410 echo Please tell autoconf@gnu.org about your system,
411 echo including any error possibly output before this
419 test "x$as_lineno_1" != "x$as_lineno_2" &&
420 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
422 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
423 # uniformly replaced by the line number. The first 'sed' inserts a
424 # line-number line after each line using $LINENO; the second 'sed'
425 # does the real work. The second script uses 'N' to pair each
426 # line-number line with the line containing $LINENO, and appends
427 # trailing '-' during substitution so that $LINENO is not a special
429 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
430 # scripts with optimization help from Paolo Bonzini. Blame Lee
431 # E. McMahon (1931-1989) for sed's syntax. :-)
443 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
447 chmod +x "$as_me.lineno" ||
448 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
449 { (exit 1); exit 1; }; }
451 # Don't try to exec as it changes $[0], causing all sort of problems
452 # (the dirname of $[0] is not the place where we might find the
453 # original and so on. Autoconf is especially sensitive to this).
455 # Exit status is that of the last command.
460 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
466 ECHO_C= ECHO_N= ECHO_T=
470 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
477 if expr a : '\(a\)' >/dev/null 2>&1 &&
478 test "X`expr 00001 : '.*\(...\)'`" = X001; then
484 rm -f conf$$ conf$$.exe conf$$.file
485 if test -d conf$$.dir; then
486 rm -f conf$$.dir/conf$$.file
492 if ln -s conf$$.file conf$$ 2>/dev/null; then
494 # ... but there are two gotchas:
495 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
496 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
497 # In both cases, we have to default to `cp -p'.
498 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
500 elif ln conf$$.file conf$$ 2>/dev/null; then
505 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
506 rmdir conf$$.dir 2>/dev/null
508 if mkdir -p . 2>/dev/null; then
511 test -d ./-p && rmdir ./-p
515 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
516 # systems may use methods other than mode bits to determine executability.
517 cat >conf$$.file <<_ASEOF
522 if test -x conf$$.file >/dev/null 2>&1; then
523 as_executable_p="test -x"
529 # Sed expression to map a string onto a valid CPP name.
530 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
532 # Sed expression to map a string onto a valid variable name.
533 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
537 exec 7<&0 </dev/null 6>&1
540 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
541 # so uname gets run too.
542 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
547 ac_default_prefix=/usr/local
549 ac_config_libobj_dir=.
555 SHELL=${CONFIG_SHELL-/bin/sh}
557 # Identity of this package.
564 ac_unique_file="src/version.h"
565 # Factoring default headers for most tests.
566 ac_includes_default="\
569 # include <sys/types.h>
572 # include <sys/stat.h>
583 # if !STDC_HEADERS && HAVE_MEMORY_H
589 # include <strings.h>
592 # include <inttypes.h>
610 program_transform_name
709 HAVE_FREEBSD_OS_FALSE
713 HAVE_OPENBSD_OS_FALSE
744 BUILD_INCLUDED_LIBINTL
751 INTL_LIBTOOL_SUFFIX_PREFIX
761 TRAY_MONITOR_CPPFLAGS
840 ac_subst_files='MCOMMON'
841 ac_precious_vars='build_alias
857 # Initialize some variables set by options.
859 ac_init_version=false
860 # The variables have the same names as the options, with
861 # dashes changed to underlines.
869 program_transform_name=s,x,x,
877 # Installation directory options.
878 # These are left unexpanded so users can "make install exec_prefix=/foo"
879 # and all the variables that are supposed to be based on exec_prefix
880 # by default will actually change.
881 # Use braces instead of parens because sh, perl, etc. also accept them.
882 # (The list follows the same order as the GNU Coding Standards.)
883 bindir='${exec_prefix}/bin'
884 sbindir='${exec_prefix}/sbin'
885 libexecdir='${exec_prefix}/libexec'
886 datarootdir='${prefix}/share'
887 datadir='${datarootdir}'
888 sysconfdir='${prefix}/etc'
889 sharedstatedir='${prefix}/com'
890 localstatedir='${prefix}/var'
891 includedir='${prefix}/include'
892 oldincludedir='/usr/include'
893 docdir='${datarootdir}/doc/${PACKAGE}'
894 infodir='${datarootdir}/info'
899 libdir='${exec_prefix}/lib'
900 localedir='${datarootdir}/locale'
901 mandir='${datarootdir}/man'
907 # If the previous option needs an argument, assign it.
908 if test -n "$ac_prev"; then
909 eval $ac_prev=\$ac_option
915 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
919 # Accept the important Cygnus configure options, so we can diagnose typos.
921 case $ac_dashdash$ac_option in
925 -bindir | --bindir | --bindi | --bind | --bin | --bi)
927 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
930 -build | --build | --buil | --bui | --bu)
931 ac_prev=build_alias ;;
932 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
933 build_alias=$ac_optarg ;;
935 -cache-file | --cache-file | --cache-fil | --cache-fi \
936 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
937 ac_prev=cache_file ;;
938 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
939 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
940 cache_file=$ac_optarg ;;
943 cache_file=config.cache ;;
945 -datadir | --datadir | --datadi | --datad)
947 -datadir=* | --datadir=* | --datadi=* | --datad=*)
948 datadir=$ac_optarg ;;
950 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
951 | --dataroo | --dataro | --datar)
952 ac_prev=datarootdir ;;
953 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
954 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
955 datarootdir=$ac_optarg ;;
957 -disable-* | --disable-*)
958 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
959 # Reject names that are not valid shell variable names.
960 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
961 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
962 { (exit 1); exit 1; }; }
963 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
964 eval enable_$ac_feature=no ;;
966 -docdir | --docdir | --docdi | --doc | --do)
968 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
971 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
973 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
976 -enable-* | --enable-*)
977 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
978 # Reject names that are not valid shell variable names.
979 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
980 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
981 { (exit 1); exit 1; }; }
982 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
983 eval enable_$ac_feature=\$ac_optarg ;;
985 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
986 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
987 | --exec | --exe | --ex)
988 ac_prev=exec_prefix ;;
989 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
990 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
991 | --exec=* | --exe=* | --ex=*)
992 exec_prefix=$ac_optarg ;;
994 -gas | --gas | --ga | --g)
995 # Obsolete; use --with-gas.
998 -help | --help | --hel | --he | -h)
1000 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1001 ac_init_help=recursive ;;
1002 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1003 ac_init_help=short ;;
1005 -host | --host | --hos | --ho)
1006 ac_prev=host_alias ;;
1007 -host=* | --host=* | --hos=* | --ho=*)
1008 host_alias=$ac_optarg ;;
1010 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1012 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1014 htmldir=$ac_optarg ;;
1016 -includedir | --includedir | --includedi | --included | --include \
1017 | --includ | --inclu | --incl | --inc)
1018 ac_prev=includedir ;;
1019 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1020 | --includ=* | --inclu=* | --incl=* | --inc=*)
1021 includedir=$ac_optarg ;;
1023 -infodir | --infodir | --infodi | --infod | --info | --inf)
1025 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1026 infodir=$ac_optarg ;;
1028 -libdir | --libdir | --libdi | --libd)
1030 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1031 libdir=$ac_optarg ;;
1033 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1034 | --libexe | --libex | --libe)
1035 ac_prev=libexecdir ;;
1036 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1037 | --libexe=* | --libex=* | --libe=*)
1038 libexecdir=$ac_optarg ;;
1040 -localedir | --localedir | --localedi | --localed | --locale)
1041 ac_prev=localedir ;;
1042 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1043 localedir=$ac_optarg ;;
1045 -localstatedir | --localstatedir | --localstatedi | --localstated \
1046 | --localstate | --localstat | --localsta | --localst | --locals)
1047 ac_prev=localstatedir ;;
1048 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1049 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1050 localstatedir=$ac_optarg ;;
1052 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1054 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1055 mandir=$ac_optarg ;;
1057 -nfp | --nfp | --nf)
1058 # Obsolete; use --without-fp.
1061 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1062 | --no-cr | --no-c | -n)
1065 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1066 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1069 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1070 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1071 | --oldin | --oldi | --old | --ol | --o)
1072 ac_prev=oldincludedir ;;
1073 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1074 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1075 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1076 oldincludedir=$ac_optarg ;;
1078 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1080 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1081 prefix=$ac_optarg ;;
1083 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1084 | --program-pre | --program-pr | --program-p)
1085 ac_prev=program_prefix ;;
1086 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1087 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1088 program_prefix=$ac_optarg ;;
1090 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1091 | --program-suf | --program-su | --program-s)
1092 ac_prev=program_suffix ;;
1093 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1094 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1095 program_suffix=$ac_optarg ;;
1097 -program-transform-name | --program-transform-name \
1098 | --program-transform-nam | --program-transform-na \
1099 | --program-transform-n | --program-transform- \
1100 | --program-transform | --program-transfor \
1101 | --program-transfo | --program-transf \
1102 | --program-trans | --program-tran \
1103 | --progr-tra | --program-tr | --program-t)
1104 ac_prev=program_transform_name ;;
1105 -program-transform-name=* | --program-transform-name=* \
1106 | --program-transform-nam=* | --program-transform-na=* \
1107 | --program-transform-n=* | --program-transform-=* \
1108 | --program-transform=* | --program-transfor=* \
1109 | --program-transfo=* | --program-transf=* \
1110 | --program-trans=* | --program-tran=* \
1111 | --progr-tra=* | --program-tr=* | --program-t=*)
1112 program_transform_name=$ac_optarg ;;
1114 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1116 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1117 pdfdir=$ac_optarg ;;
1119 -psdir | --psdir | --psdi | --psd | --ps)
1121 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1124 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1125 | -silent | --silent | --silen | --sile | --sil)
1128 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1130 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1132 sbindir=$ac_optarg ;;
1134 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1135 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1136 | --sharedst | --shareds | --shared | --share | --shar \
1138 ac_prev=sharedstatedir ;;
1139 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1140 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1141 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1143 sharedstatedir=$ac_optarg ;;
1145 -site | --site | --sit)
1147 -site=* | --site=* | --sit=*)
1150 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1152 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1153 srcdir=$ac_optarg ;;
1155 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1156 | --syscon | --sysco | --sysc | --sys | --sy)
1157 ac_prev=sysconfdir ;;
1158 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1159 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1160 sysconfdir=$ac_optarg ;;
1162 -target | --target | --targe | --targ | --tar | --ta | --t)
1163 ac_prev=target_alias ;;
1164 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1165 target_alias=$ac_optarg ;;
1167 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1170 -version | --version | --versio | --versi | --vers | -V)
1171 ac_init_version=: ;;
1174 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1175 # Reject names that are not valid shell variable names.
1176 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1177 { echo "$as_me: error: invalid package name: $ac_package" >&2
1178 { (exit 1); exit 1; }; }
1179 ac_package=`echo $ac_package| sed 's/-/_/g'`
1180 eval with_$ac_package=\$ac_optarg ;;
1182 -without-* | --without-*)
1183 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1184 # Reject names that are not valid shell variable names.
1185 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1186 { echo "$as_me: error: invalid package name: $ac_package" >&2
1187 { (exit 1); exit 1; }; }
1188 ac_package=`echo $ac_package | sed 's/-/_/g'`
1189 eval with_$ac_package=no ;;
1192 # Obsolete; use --with-x.
1195 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1196 | --x-incl | --x-inc | --x-in | --x-i)
1197 ac_prev=x_includes ;;
1198 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1199 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1200 x_includes=$ac_optarg ;;
1202 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1203 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1204 ac_prev=x_libraries ;;
1205 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1206 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1207 x_libraries=$ac_optarg ;;
1209 -*) { echo "$as_me: error: unrecognized option: $ac_option
1210 Try \`$0 --help' for more information." >&2
1211 { (exit 1); exit 1; }; }
1215 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1216 # Reject names that are not valid shell variable names.
1217 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1218 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1219 { (exit 1); exit 1; }; }
1220 eval $ac_envvar=\$ac_optarg
1221 export $ac_envvar ;;
1224 # FIXME: should be removed in autoconf 3.0.
1225 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1226 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1227 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1228 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1234 if test -n "$ac_prev"; then
1235 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1236 { echo "$as_me: error: missing argument to $ac_option" >&2
1237 { (exit 1); exit 1; }; }
1240 # Be sure to have absolute directory names.
1241 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1242 datadir sysconfdir sharedstatedir localstatedir includedir \
1243 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1244 libdir localedir mandir
1246 eval ac_val=\$$ac_var
1248 [\\/$]* | ?:[\\/]* ) continue;;
1249 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1251 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1252 { (exit 1); exit 1; }; }
1255 # There might be people who depend on the old broken behavior: `$host'
1256 # used to hold the argument of --host etc.
1257 # FIXME: To remove some day.
1260 target=$target_alias
1262 # FIXME: To remove some day.
1263 if test "x$host_alias" != x; then
1264 if test "x$build_alias" = x; then
1265 cross_compiling=maybe
1266 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1267 If a cross compiler is detected then cross compile mode will be used." >&2
1268 elif test "x$build_alias" != "x$host_alias"; then
1274 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1276 test "$silent" = yes && exec 6>/dev/null
1279 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1280 ac_ls_di=`ls -di .` &&
1281 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1282 { echo "$as_me: error: Working directory cannot be determined" >&2
1283 { (exit 1); exit 1; }; }
1284 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1285 { echo "$as_me: error: pwd does not report name of working directory" >&2
1286 { (exit 1); exit 1; }; }
1289 # Find the source files, if location was not specified.
1290 if test -z "$srcdir"; then
1291 ac_srcdir_defaulted=yes
1292 # Try the directory containing this script, then the parent directory.
1293 ac_confdir=`$as_dirname -- "$0" ||
1294 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1295 X"$0" : 'X\(//\)[^/]' \| \
1296 X"$0" : 'X\(//\)$' \| \
1297 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1299 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1317 if test ! -r "$srcdir/$ac_unique_file"; then
1321 ac_srcdir_defaulted=no
1323 if test ! -r "$srcdir/$ac_unique_file"; then
1324 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1325 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1326 { (exit 1); exit 1; }; }
1328 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1330 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1331 { (exit 1); exit 1; }; }
1333 # When building in place, set srcdir=.
1334 if test "$ac_abs_confdir" = "$ac_pwd"; then
1337 # Remove unnecessary trailing slashes from srcdir.
1338 # Double slashes in file names in object file debugging info
1339 # mess up M-x gdb in Emacs.
1341 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1343 for ac_var in $ac_precious_vars; do
1344 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1345 eval ac_env_${ac_var}_value=\$${ac_var}
1346 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1347 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1351 # Report the --help message.
1353 if test "$ac_init_help" = "long"; then
1354 # Omit some internal or obsolete options to make the list less imposing.
1355 # This message is too long to be a string in the A/UX 3.1 sh.
1357 \`configure' configures this package to adapt to many kinds of systems.
1359 Usage: $0 [OPTION]... [VAR=VALUE]...
1361 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1362 VAR=VALUE. See below for descriptions of some of the useful variables.
1364 Defaults for the options are specified in brackets.
1367 -h, --help display this help and exit
1368 --help=short display options specific to this package
1369 --help=recursive display the short help of all the included packages
1370 -V, --version display version information and exit
1371 -q, --quiet, --silent do not print \`checking...' messages
1372 --cache-file=FILE cache test results in FILE [disabled]
1373 -C, --config-cache alias for \`--cache-file=config.cache'
1374 -n, --no-create do not create output files
1375 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1377 Installation directories:
1378 --prefix=PREFIX install architecture-independent files in PREFIX
1379 [$ac_default_prefix]
1380 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1383 By default, \`make install' will install all the files in
1384 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1385 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1386 for instance \`--prefix=\$HOME'.
1388 For better control, use the options below.
1390 Fine tuning of the installation directories:
1391 --bindir=DIR user executables [EPREFIX/bin]
1392 --sbindir=DIR system admin executables [EPREFIX/sbin]
1393 --libexecdir=DIR program executables [EPREFIX/libexec]
1394 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1395 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1396 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1397 --libdir=DIR object code libraries [EPREFIX/lib]
1398 --includedir=DIR C header files [PREFIX/include]
1399 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1400 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1401 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1402 --infodir=DIR info documentation [DATAROOTDIR/info]
1403 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1404 --mandir=DIR man documentation [DATAROOTDIR/man]
1405 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1406 --htmldir=DIR html documentation [DOCDIR]
1407 --dvidir=DIR dvi documentation [DOCDIR]
1408 --pdfdir=DIR pdf documentation [DOCDIR]
1409 --psdir=DIR ps documentation [DOCDIR]
1415 --x-includes=DIR X include files are in DIR
1416 --x-libraries=DIR X library files are in DIR
1419 --build=BUILD configure for building on BUILD [guessed]
1420 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1424 if test -n "$ac_init_help"; then
1429 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1430 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1431 --disable-nls do not use Native Language Support
1432 --disable-rpath do not hardcode runtime library paths
1433 --enable-gnome enable build of bgnome-console GUI disabled
1434 --enable-bat enable build of bat Qt4 GUI disabled
1435 --enable-bwx-console enable build of wxWidgets console disabled
1436 --enable-tray-monitor enable build of Gnome tray monitor (compatible with KDE) disabled
1437 --enable-smartalloc enable smartalloc debugging support disabled
1438 --enable-static-tools enable static tape tools disabled
1439 --enable-static-fd enable static File daemon disabled
1440 --enable-static-sd enable static Storage daemon disabled
1441 --enable-static-dir enable static Director disabled
1442 --enable-static-cons enable static Console disabled
1443 --enable-client-only build client (File daemon) only disabled
1444 --enable-build-dird enable building of dird (Director) enabled
1445 --enable-build-stored enable building of stored (Storage daemon) enabled
1446 --disable-conio disable conio support enabled
1448 --enable-ipv6 enable ipv6 support enabled
1450 --disable-readline disable readline support disable
1452 --enable-batch-insert enable the DB batch insert code disabled
1453 --disable-largefile omit support for large files
1456 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1457 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1458 --with-gnu-ld assume the C compiler uses GNU ld default=no
1459 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1460 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1461 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1462 --without-libintl-prefix don't search for libintl in includedir and libdir
1463 --with-included-gettext use the GNU gettext library included here
1464 --with-readline[=DIR] specify readline library directory
1466 --with-python[=DIR] Include Python support. DIR is the Python base
1467 install directory, default is to search through
1468 a number of common places for the Python files.
1469 --with-tcp-wrappers[=DIR] enable tcpwrappers support
1470 --with-openssl[=DIR] Include OpenSSL support. DIR is the OpenSSL base
1471 --with-working-dir=PATH specify path of Bacula working directory
1472 --with-scriptdir=PATH specify path of Bacula scripts directory
1473 --with-dump-email=EMAIL dump email address
1474 --with-job-email=EMAIL job output email address
1475 --with-smtp-host=HOST SMTP mail host address
1476 --with-pid-dir=PATH specify location of Bacula pid files
1477 --with-subsys-dir=PATH specify location of Bacula subsys file
1478 --with-baseport=PORT specify base port address for daemons
1479 --with-dir-password=PASSWORD specify Director's password
1480 --with-fd-password=PASSWORD specify Client's password
1481 --with-sd-password=PASSWORD specify Storage daemon's password
1482 --with-mon-dir-password=PASSWORD specify Director's password used by the monitor
1483 --with-mon-fd-password=PASSWORD specify Client's password used by the monitor
1484 --with-mon-sd-password=PASSWORD specify Storage daemon's password used by the monitor
1485 --with-db-name=DBNAME specify database name (default bacula)
1486 --with-db-user=UNAME specify database user (default bacula)
1487 --with-dir-user=USER specify user for Director daemon
1488 --with-dir-group=GROUP specify group for Director daemon
1489 --with-sd-user=USER specify user for Storage daemon
1490 --with-sd-group=GROUP specify group for Storage daemon
1491 --with-fd-user=USER specify user for File daemon
1492 --with-fd-group=GROUP specify group for File daemon
1493 --with-sbin-perm=MODE specify permissions for sbin binaries (0754)
1494 --with-postgresql[=DIR] Include PostgreSQL support. DIR is the PostgreSQL
1495 base install directory, defaults to /usr/local/pgsql
1497 --with-mysql[=DIR] Include MySQL support. DIR is the MySQL base
1498 install directory, default is to search through
1499 a number of common places for the MySQL files.
1501 --with-embedded-mysql[=DIR] Include MySQL support. DIR is the MySQL base
1502 install directory, default is to search through
1503 a number of common places for the MySQL files.
1505 --with-sqlite3[=DIR] Include SQLite3 support. DIR is the SQLite3 base
1506 install directory, default is to search through
1507 a number of common places for the SQLite3 files.
1509 --with-sqlite[=DIR] Include SQLite support. DIR is the SQLite base
1510 install directory, default is to search through
1511 a number of common places for the SQLite files.
1512 --with-x use the X Window System
1514 Some influential environment variables:
1515 CC C compiler command
1516 CFLAGS C compiler flags
1517 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1518 nonstandard directory <lib dir>
1519 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1520 you have headers in a nonstandard directory <include dir>
1521 CXX C++ compiler command
1522 CXXFLAGS C++ compiler flags
1524 WXCONFIG wx-config command. On some systems, you must set it to
1525 wx-config-2.6 to use wxWidgets 2.6.
1526 WXFLAGS Parameters to pass to wx-config (e.g. --unicode=no).
1527 XMKMF Path to xmkmf, Makefile generator for X Window System
1529 Use these variables to override the choices made by `configure' or to help
1530 it to find libraries and programs with nonstandard names/locations.
1536 if test "$ac_init_help" = "recursive"; then
1537 # If there are subdirs, report their specific --help.
1538 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1539 test -d "$ac_dir" || continue
1543 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1545 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1546 # A ".." for each directory in $ac_dir_suffix.
1547 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1548 case $ac_top_builddir_sub in
1549 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1550 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1553 ac_abs_top_builddir=$ac_pwd
1554 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1555 # for backward compatibility:
1556 ac_top_builddir=$ac_top_build_prefix
1559 .) # We are building in place.
1561 ac_top_srcdir=$ac_top_builddir_sub
1562 ac_abs_top_srcdir=$ac_pwd ;;
1563 [\\/]* | ?:[\\/]* ) # Absolute name.
1564 ac_srcdir=$srcdir$ac_dir_suffix;
1565 ac_top_srcdir=$srcdir
1566 ac_abs_top_srcdir=$srcdir ;;
1568 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1569 ac_top_srcdir=$ac_top_build_prefix$srcdir
1570 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1572 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1574 cd "$ac_dir" || { ac_status=$?; continue; }
1575 # Check for guested configure.
1576 if test -f "$ac_srcdir/configure.gnu"; then
1578 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1579 elif test -f "$ac_srcdir/configure"; then
1581 $SHELL "$ac_srcdir/configure" --help=recursive
1583 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1585 cd "$ac_pwd" || { ac_status=$?; break; }
1589 test -n "$ac_init_help" && exit $ac_status
1590 if $ac_init_version; then
1593 generated by GNU Autoconf 2.60
1595 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1596 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1597 This configure script is free software; the Free Software Foundation
1598 gives unlimited permission to copy, distribute and modify it.
1602 cat >config.log <<_ACEOF
1603 This file contains any messages produced by compilers while
1604 running configure, to aid debugging if configure makes a mistake.
1606 It was created by $as_me, which was
1607 generated by GNU Autoconf 2.60. Invocation command line was
1619 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1620 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1621 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1622 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1623 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1625 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1626 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1628 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1629 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1630 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1631 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1632 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1633 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1634 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1642 test -z "$as_dir" && as_dir=.
1643 echo "PATH: $as_dir"
1659 # Keep a trace of the command line.
1660 # Strip out --no-create and --no-recursion so they do not pile up.
1661 # Strip out --silent because we don't want to record it for future runs.
1662 # Also quote any args containing shell meta-characters.
1663 # Make two passes to allow for proper duplicate-argument suppression.
1667 ac_must_keep_next=false
1673 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1674 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1675 | -silent | --silent | --silen | --sile | --sil)
1678 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1681 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1683 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1684 if test $ac_must_keep_next = true; then
1685 ac_must_keep_next=false # Got value, back to normal.
1688 *=* | --config-cache | -C | -disable-* | --disable-* \
1689 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1690 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1691 | -with-* | --with-* | -without-* | --without-* | --x)
1692 case "$ac_configure_args0 " in
1693 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1696 -* ) ac_must_keep_next=true ;;
1699 ac_configure_args="$ac_configure_args '$ac_arg'"
1704 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1705 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1707 # When interrupted or exit'd, cleanup temporary files, and complete
1708 # config.log. We remove comments because anyway the quotes in there
1709 # would cause problems or look ugly.
1710 # WARNING: Use '\'' to represent an apostrophe within the trap.
1711 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1712 trap 'exit_status=$?
1713 # Save into config.log some information that might help in debugging.
1718 ## ---------------- ##
1719 ## Cache variables. ##
1720 ## ---------------- ##
1723 # The following way of writing the cache mishandles newlines in values,
1725 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1726 eval ac_val=\$$ac_var
1730 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1731 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1734 _ | IFS | as_nl) ;; #(
1735 *) $as_unset $ac_var ;;
1740 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1741 *${as_nl}ac_space=\ *)
1743 "s/'\''/'\''\\\\'\'''\''/g;
1744 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1747 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1755 ## ----------------- ##
1756 ## Output variables. ##
1757 ## ----------------- ##
1760 for ac_var in $ac_subst_vars
1762 eval ac_val=\$$ac_var
1764 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1766 echo "$ac_var='\''$ac_val'\''"
1770 if test -n "$ac_subst_files"; then
1772 ## ------------------- ##
1773 ## File substitutions. ##
1774 ## ------------------- ##
1777 for ac_var in $ac_subst_files
1779 eval ac_val=\$$ac_var
1781 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1783 echo "$ac_var='\''$ac_val'\''"
1788 if test -s confdefs.h; then
1798 test "$ac_signal" != 0 &&
1799 echo "$as_me: caught signal $ac_signal"
1800 echo "$as_me: exit $exit_status"
1802 rm -f core *.core core.conftest.* &&
1803 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1806 for ac_signal in 1 2 13 15; do
1807 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1811 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1812 rm -f -r conftest* confdefs.h
1814 # Predefined preprocessor variables.
1816 cat >>confdefs.h <<_ACEOF
1817 #define PACKAGE_NAME "$PACKAGE_NAME"
1821 cat >>confdefs.h <<_ACEOF
1822 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1826 cat >>confdefs.h <<_ACEOF
1827 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1831 cat >>confdefs.h <<_ACEOF
1832 #define PACKAGE_STRING "$PACKAGE_STRING"
1836 cat >>confdefs.h <<_ACEOF
1837 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1841 # Let the site file select an alternate cache file if it wants to.
1842 # Prefer explicitly selected file to automatically selected ones.
1843 if test -n "$CONFIG_SITE"; then
1844 set x "$CONFIG_SITE"
1845 elif test "x$prefix" != xNONE; then
1846 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1848 set x "$ac_default_prefix/share/config.site" \
1849 "$ac_default_prefix/etc/config.site"
1854 if test -r "$ac_site_file"; then
1855 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1856 echo "$as_me: loading site script $ac_site_file" >&6;}
1857 sed 's/^/| /' "$ac_site_file" >&5
1862 if test -r "$cache_file"; then
1863 # Some versions of bash will fail to source /dev/null (special
1864 # files actually), so we avoid doing that.
1865 if test -f "$cache_file"; then
1866 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1867 echo "$as_me: loading cache $cache_file" >&6;}
1869 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1870 *) . "./$cache_file";;
1874 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1875 echo "$as_me: creating cache $cache_file" >&6;}
1879 # Check that the precious variables saved in the cache have kept the same
1881 ac_cache_corrupted=false
1882 for ac_var in $ac_precious_vars; do
1883 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1884 eval ac_new_set=\$ac_env_${ac_var}_set
1885 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1886 eval ac_new_val=\$ac_env_${ac_var}_value
1887 case $ac_old_set,$ac_new_set in
1889 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1890 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1891 ac_cache_corrupted=: ;;
1893 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1894 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1895 ac_cache_corrupted=: ;;
1898 if test "x$ac_old_val" != "x$ac_new_val"; then
1899 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1900 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1901 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1902 echo "$as_me: former value: $ac_old_val" >&2;}
1903 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1904 echo "$as_me: current value: $ac_new_val" >&2;}
1905 ac_cache_corrupted=:
1908 # Pass precious variables to config.status.
1909 if test "$ac_new_set" = set; then
1911 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1912 *) ac_arg=$ac_var=$ac_new_val ;;
1914 case " $ac_configure_args " in
1915 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1916 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1920 if $ac_cache_corrupted; then
1921 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1922 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1923 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1924 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1925 { (exit 1); exit 1; }; }
1945 ac_cpp='$CPP $CPPFLAGS'
1946 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1947 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1948 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1958 for ac_dir in ${BUILD_DIR}/autoconf "$srcdir"/${BUILD_DIR}/autoconf; do
1959 if test -f "$ac_dir/install-sh"; then
1961 ac_install_sh="$ac_aux_dir/install-sh -c"
1963 elif test -f "$ac_dir/install.sh"; then
1965 ac_install_sh="$ac_aux_dir/install.sh -c"
1967 elif test -f "$ac_dir/shtool"; then
1969 ac_install_sh="$ac_aux_dir/shtool install -c"
1973 if test -z "$ac_aux_dir"; then
1974 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf \"$srcdir\"/${BUILD_DIR}/autoconf" >&5
1975 echo "$as_me: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf \"$srcdir\"/${BUILD_DIR}/autoconf" >&2;}
1976 { (exit 1); exit 1; }; }
1979 # These three variables are undocumented and unsupported,
1980 # and are intended to be withdrawn in a future Autoconf release.
1981 # They can cause serious problems if a builder's source tree is in a directory
1982 # whose full name contains unusual characters.
1983 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1984 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1985 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1988 ac_config_headers="$ac_config_headers src/config.h:autoconf/config.h.in"
1996 # Extract the first word of "$ac_prog", so it can be a program name with args.
1997 set dummy $ac_prog; ac_word=$2
1998 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1999 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2000 if test "${ac_cv_path_TRUEPRG+set}" = set; then
2001 echo $ECHO_N "(cached) $ECHO_C" >&6
2005 ac_cv_path_TRUEPRG="$TRUEPRG" # Let the user override the test with a path.
2008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2012 test -z "$as_dir" && as_dir=.
2013 for ac_exec_ext in '' $ac_executable_extensions; do
2014 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2015 ac_cv_path_TRUEPRG="$as_dir/$ac_word$ac_exec_ext"
2016 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2026 TRUEPRG=$ac_cv_path_TRUEPRG
2027 if test -n "$TRUEPRG"; then
2028 { echo "$as_me:$LINENO: result: $TRUEPRG" >&5
2029 echo "${ECHO_T}$TRUEPRG" >&6; }
2031 { echo "$as_me:$LINENO: result: no" >&5
2032 echo "${ECHO_T}no" >&6; }
2036 test -n "$TRUEPRG" && break
2038 test -n "$TRUEPRG" || TRUEPRG=":"
2040 for ac_prog in false
2042 # Extract the first word of "$ac_prog", so it can be a program name with args.
2043 set dummy $ac_prog; ac_word=$2
2044 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2045 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2046 if test "${ac_cv_path_FALSEPRG+set}" = set; then
2047 echo $ECHO_N "(cached) $ECHO_C" >&6
2051 ac_cv_path_FALSEPRG="$FALSEPRG" # Let the user override the test with a path.
2054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2058 test -z "$as_dir" && as_dir=.
2059 for ac_exec_ext in '' $ac_executable_extensions; do
2060 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2061 ac_cv_path_FALSEPRG="$as_dir/$ac_word$ac_exec_ext"
2062 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2072 FALSEPRG=$ac_cv_path_FALSEPRG
2073 if test -n "$FALSEPRG"; then
2074 { echo "$as_me:$LINENO: result: $FALSEPRG" >&5
2075 echo "${ECHO_T}$FALSEPRG" >&6; }
2077 { echo "$as_me:$LINENO: result: no" >&5
2078 echo "${ECHO_T}no" >&6; }
2082 test -n "$FALSEPRG" && break
2084 test -n "$FALSEPRG" || FALSEPRG=":"
2089 VERSION=`sed -n -e 's/^.*VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2090 DATE=`sed -n -e 's/^.* \t*BDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2091 LSMDATE=`sed -n -e 's/^.*LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2092 echo "configuring for bacula $VERSION ($DATE)"
2097 ac_cpp='$CPP $CPPFLAGS'
2098 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2099 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2100 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2101 if test -n "$ac_tool_prefix"; then
2102 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2103 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2104 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2105 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2106 if test "${ac_cv_prog_CC+set}" = set; then
2107 echo $ECHO_N "(cached) $ECHO_C" >&6
2109 if test -n "$CC"; then
2110 ac_cv_prog_CC="$CC" # Let the user override the test.
2112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2116 test -z "$as_dir" && as_dir=.
2117 for ac_exec_ext in '' $ac_executable_extensions; do
2118 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2119 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2120 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2130 if test -n "$CC"; then
2131 { echo "$as_me:$LINENO: result: $CC" >&5
2132 echo "${ECHO_T}$CC" >&6; }
2134 { echo "$as_me:$LINENO: result: no" >&5
2135 echo "${ECHO_T}no" >&6; }
2140 if test -z "$ac_cv_prog_CC"; then
2142 # Extract the first word of "gcc", so it can be a program name with args.
2143 set dummy gcc; ac_word=$2
2144 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2145 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2146 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2147 echo $ECHO_N "(cached) $ECHO_C" >&6
2149 if test -n "$ac_ct_CC"; then
2150 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2156 test -z "$as_dir" && as_dir=.
2157 for ac_exec_ext in '' $ac_executable_extensions; do
2158 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2159 ac_cv_prog_ac_ct_CC="gcc"
2160 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2169 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2170 if test -n "$ac_ct_CC"; then
2171 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2172 echo "${ECHO_T}$ac_ct_CC" >&6; }
2174 { echo "$as_me:$LINENO: result: no" >&5
2175 echo "${ECHO_T}no" >&6; }
2178 if test "x$ac_ct_CC" = x; then
2181 case $cross_compiling:$ac_tool_warned in
2183 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2184 whose name does not start with the host triplet. If you think this
2185 configuration is useful to you, please write to autoconf@gnu.org." >&5
2186 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2187 whose name does not start with the host triplet. If you think this
2188 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2189 ac_tool_warned=yes ;;
2197 if test -z "$CC"; then
2198 if test -n "$ac_tool_prefix"; then
2199 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2200 set dummy ${ac_tool_prefix}cc; ac_word=$2
2201 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2202 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2203 if test "${ac_cv_prog_CC+set}" = set; then
2204 echo $ECHO_N "(cached) $ECHO_C" >&6
2206 if test -n "$CC"; then
2207 ac_cv_prog_CC="$CC" # Let the user override the test.
2209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2213 test -z "$as_dir" && as_dir=.
2214 for ac_exec_ext in '' $ac_executable_extensions; do
2215 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2216 ac_cv_prog_CC="${ac_tool_prefix}cc"
2217 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2227 if test -n "$CC"; then
2228 { echo "$as_me:$LINENO: result: $CC" >&5
2229 echo "${ECHO_T}$CC" >&6; }
2231 { echo "$as_me:$LINENO: result: no" >&5
2232 echo "${ECHO_T}no" >&6; }
2238 if test -z "$CC"; then
2239 # Extract the first word of "cc", so it can be a program name with args.
2240 set dummy cc; ac_word=$2
2241 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2242 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2243 if test "${ac_cv_prog_CC+set}" = set; then
2244 echo $ECHO_N "(cached) $ECHO_C" >&6
2246 if test -n "$CC"; then
2247 ac_cv_prog_CC="$CC" # Let the user override the test.
2250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2254 test -z "$as_dir" && as_dir=.
2255 for ac_exec_ext in '' $ac_executable_extensions; do
2256 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2257 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2258 ac_prog_rejected=yes
2262 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2269 if test $ac_prog_rejected = yes; then
2270 # We found a bogon in the path, so make sure we never use it.
2271 set dummy $ac_cv_prog_CC
2273 if test $# != 0; then
2274 # We chose a different compiler from the bogus one.
2275 # However, it has the same basename, so the bogon will be chosen
2276 # first if we set CC to just the basename; use the full file name.
2278 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2284 if test -n "$CC"; then
2285 { echo "$as_me:$LINENO: result: $CC" >&5
2286 echo "${ECHO_T}$CC" >&6; }
2288 { echo "$as_me:$LINENO: result: no" >&5
2289 echo "${ECHO_T}no" >&6; }
2294 if test -z "$CC"; then
2295 if test -n "$ac_tool_prefix"; then
2296 for ac_prog in cl.exe
2298 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2299 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2300 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2301 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2302 if test "${ac_cv_prog_CC+set}" = set; then
2303 echo $ECHO_N "(cached) $ECHO_C" >&6
2305 if test -n "$CC"; then
2306 ac_cv_prog_CC="$CC" # Let the user override the test.
2308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2312 test -z "$as_dir" && as_dir=.
2313 for ac_exec_ext in '' $ac_executable_extensions; do
2314 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2315 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2316 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2326 if test -n "$CC"; then
2327 { echo "$as_me:$LINENO: result: $CC" >&5
2328 echo "${ECHO_T}$CC" >&6; }
2330 { echo "$as_me:$LINENO: result: no" >&5
2331 echo "${ECHO_T}no" >&6; }
2335 test -n "$CC" && break
2338 if test -z "$CC"; then
2340 for ac_prog in cl.exe
2342 # Extract the first word of "$ac_prog", so it can be a program name with args.
2343 set dummy $ac_prog; ac_word=$2
2344 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2345 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2346 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2347 echo $ECHO_N "(cached) $ECHO_C" >&6
2349 if test -n "$ac_ct_CC"; then
2350 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2356 test -z "$as_dir" && as_dir=.
2357 for ac_exec_ext in '' $ac_executable_extensions; do
2358 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2359 ac_cv_prog_ac_ct_CC="$ac_prog"
2360 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2369 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2370 if test -n "$ac_ct_CC"; then
2371 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2372 echo "${ECHO_T}$ac_ct_CC" >&6; }
2374 { echo "$as_me:$LINENO: result: no" >&5
2375 echo "${ECHO_T}no" >&6; }
2379 test -n "$ac_ct_CC" && break
2382 if test "x$ac_ct_CC" = x; then
2385 case $cross_compiling:$ac_tool_warned in
2387 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2388 whose name does not start with the host triplet. If you think this
2389 configuration is useful to you, please write to autoconf@gnu.org." >&5
2390 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2391 whose name does not start with the host triplet. If you think this
2392 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2393 ac_tool_warned=yes ;;
2402 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2403 See \`config.log' for more details." >&5
2404 echo "$as_me: error: no acceptable C compiler found in \$PATH
2405 See \`config.log' for more details." >&2;}
2406 { (exit 1); exit 1; }; }
2408 # Provide some information about the compiler.
2409 echo "$as_me:$LINENO: checking for C compiler version" >&5
2410 ac_compiler=`set X $ac_compile; echo $2`
2411 { (ac_try="$ac_compiler --version >&5"
2413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2414 *) ac_try_echo=$ac_try;;
2416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2417 (eval "$ac_compiler --version >&5") 2>&5
2419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2420 (exit $ac_status); }
2421 { (ac_try="$ac_compiler -v >&5"
2423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2424 *) ac_try_echo=$ac_try;;
2426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2427 (eval "$ac_compiler -v >&5") 2>&5
2429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2430 (exit $ac_status); }
2431 { (ac_try="$ac_compiler -V >&5"
2433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2434 *) ac_try_echo=$ac_try;;
2436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2437 (eval "$ac_compiler -V >&5") 2>&5
2439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2440 (exit $ac_status); }
2442 cat >conftest.$ac_ext <<_ACEOF
2445 cat confdefs.h >>conftest.$ac_ext
2446 cat >>conftest.$ac_ext <<_ACEOF
2447 /* end confdefs.h. */
2457 ac_clean_files_save=$ac_clean_files
2458 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2459 # Try to create an executable without -o first, disregard a.out.
2460 # It will help us diagnose broken compilers, and finding out an intuition
2462 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2463 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2464 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2466 # List of possible output files, starting from the most likely.
2467 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2468 # only as a last resort. b.out is created by i960 compilers.
2469 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2471 # The IRIX 6 linker writes into existing files which may not be
2472 # executable, retaining their permissions. Remove them first so a
2473 # subsequent execution test works.
2475 for ac_file in $ac_files
2478 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2479 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2484 if { (ac_try="$ac_link_default"
2486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2487 *) ac_try_echo=$ac_try;;
2489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2490 (eval "$ac_link_default") 2>&5
2492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2493 (exit $ac_status); }; then
2494 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2495 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2496 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2497 # so that the user can short-circuit this test for compilers unknown to
2499 for ac_file in $ac_files
2501 test -f "$ac_file" || continue
2503 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2506 # We found the default executable, but exeext='' is most
2510 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2512 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2514 # We set ac_cv_exeext here because the later test for it is not
2515 # safe: cross compilers may not add the suffix if given an `-o'
2516 # argument, so we may need to know it at that point already.
2517 # Even if this section looks crufty: it has the advantage of
2524 test "$ac_cv_exeext" = no && ac_cv_exeext=
2527 echo "$as_me: failed program was:" >&5
2528 sed 's/^/| /' conftest.$ac_ext >&5
2530 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2531 See \`config.log' for more details." >&5
2532 echo "$as_me: error: C compiler cannot create executables
2533 See \`config.log' for more details." >&2;}
2534 { (exit 77); exit 77; }; }
2537 ac_exeext=$ac_cv_exeext
2538 { echo "$as_me:$LINENO: result: $ac_file" >&5
2539 echo "${ECHO_T}$ac_file" >&6; }
2541 # Check that the compiler produces executables we can run. If not, either
2542 # the compiler is broken, or we cross compile.
2543 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2544 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2545 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2546 # If not cross compiling, check that we can run a simple program.
2547 if test "$cross_compiling" != yes; then
2548 if { ac_try='./$ac_file'
2549 { (case "(($ac_try" in
2550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2551 *) ac_try_echo=$ac_try;;
2553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2554 (eval "$ac_try") 2>&5
2556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2557 (exit $ac_status); }; }; then
2560 if test "$cross_compiling" = maybe; then
2563 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2564 If you meant to cross compile, use \`--host'.
2565 See \`config.log' for more details." >&5
2566 echo "$as_me: error: cannot run C compiled programs.
2567 If you meant to cross compile, use \`--host'.
2568 See \`config.log' for more details." >&2;}
2569 { (exit 1); exit 1; }; }
2573 { echo "$as_me:$LINENO: result: yes" >&5
2574 echo "${ECHO_T}yes" >&6; }
2576 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2577 ac_clean_files=$ac_clean_files_save
2578 # Check that the compiler produces executables we can run. If not, either
2579 # the compiler is broken, or we cross compile.
2580 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2581 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2582 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2583 echo "${ECHO_T}$cross_compiling" >&6; }
2585 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2586 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2587 if { (ac_try="$ac_link"
2589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2590 *) ac_try_echo=$ac_try;;
2592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2593 (eval "$ac_link") 2>&5
2595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2596 (exit $ac_status); }; then
2597 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2598 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2599 # work properly (i.e., refer to `conftest.exe'), while it won't with
2601 for ac_file in conftest.exe conftest conftest.*; do
2602 test -f "$ac_file" || continue
2604 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2605 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2611 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2612 See \`config.log' for more details." >&5
2613 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2614 See \`config.log' for more details." >&2;}
2615 { (exit 1); exit 1; }; }
2618 rm -f conftest$ac_cv_exeext
2619 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2620 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2622 rm -f conftest.$ac_ext
2623 EXEEXT=$ac_cv_exeext
2625 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2626 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2627 if test "${ac_cv_objext+set}" = set; then
2628 echo $ECHO_N "(cached) $ECHO_C" >&6
2630 cat >conftest.$ac_ext <<_ACEOF
2633 cat confdefs.h >>conftest.$ac_ext
2634 cat >>conftest.$ac_ext <<_ACEOF
2635 /* end confdefs.h. */
2645 rm -f conftest.o conftest.obj
2646 if { (ac_try="$ac_compile"
2648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2649 *) ac_try_echo=$ac_try;;
2651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2652 (eval "$ac_compile") 2>&5
2654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2655 (exit $ac_status); }; then
2656 for ac_file in conftest.o conftest.obj conftest.*; do
2657 test -f "$ac_file" || continue;
2659 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2660 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2665 echo "$as_me: failed program was:" >&5
2666 sed 's/^/| /' conftest.$ac_ext >&5
2668 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2669 See \`config.log' for more details." >&5
2670 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2671 See \`config.log' for more details." >&2;}
2672 { (exit 1); exit 1; }; }
2675 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2677 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2678 echo "${ECHO_T}$ac_cv_objext" >&6; }
2679 OBJEXT=$ac_cv_objext
2681 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2682 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2683 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2684 echo $ECHO_N "(cached) $ECHO_C" >&6
2686 cat >conftest.$ac_ext <<_ACEOF
2689 cat confdefs.h >>conftest.$ac_ext
2690 cat >>conftest.$ac_ext <<_ACEOF
2691 /* end confdefs.h. */
2704 rm -f conftest.$ac_objext
2705 if { (ac_try="$ac_compile"
2707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2708 *) ac_try_echo=$ac_try;;
2710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2711 (eval "$ac_compile") 2>conftest.er1
2713 grep -v '^ *+' conftest.er1 >conftest.err
2715 cat conftest.err >&5
2716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2717 (exit $ac_status); } &&
2718 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2719 { (case "(($ac_try" in
2720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2721 *) ac_try_echo=$ac_try;;
2723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2724 (eval "$ac_try") 2>&5
2726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2727 (exit $ac_status); }; } &&
2728 { ac_try='test -s conftest.$ac_objext'
2729 { (case "(($ac_try" in
2730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2731 *) ac_try_echo=$ac_try;;
2733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2734 (eval "$ac_try") 2>&5
2736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2737 (exit $ac_status); }; }; then
2740 echo "$as_me: failed program was:" >&5
2741 sed 's/^/| /' conftest.$ac_ext >&5
2746 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2747 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2750 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2751 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2752 GCC=`test $ac_compiler_gnu = yes && echo yes`
2753 ac_test_CFLAGS=${CFLAGS+set}
2754 ac_save_CFLAGS=$CFLAGS
2755 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2756 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2757 if test "${ac_cv_prog_cc_g+set}" = set; then
2758 echo $ECHO_N "(cached) $ECHO_C" >&6
2760 ac_save_c_werror_flag=$ac_c_werror_flag
2761 ac_c_werror_flag=yes
2764 cat >conftest.$ac_ext <<_ACEOF
2767 cat confdefs.h >>conftest.$ac_ext
2768 cat >>conftest.$ac_ext <<_ACEOF
2769 /* end confdefs.h. */
2779 rm -f conftest.$ac_objext
2780 if { (ac_try="$ac_compile"
2782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2783 *) ac_try_echo=$ac_try;;
2785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2786 (eval "$ac_compile") 2>conftest.er1
2788 grep -v '^ *+' conftest.er1 >conftest.err
2790 cat conftest.err >&5
2791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2792 (exit $ac_status); } &&
2793 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2794 { (case "(($ac_try" in
2795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2796 *) ac_try_echo=$ac_try;;
2798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2799 (eval "$ac_try") 2>&5
2801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2802 (exit $ac_status); }; } &&
2803 { ac_try='test -s conftest.$ac_objext'
2804 { (case "(($ac_try" in
2805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2806 *) ac_try_echo=$ac_try;;
2808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2809 (eval "$ac_try") 2>&5
2811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2812 (exit $ac_status); }; }; then
2815 echo "$as_me: failed program was:" >&5
2816 sed 's/^/| /' conftest.$ac_ext >&5
2819 cat >conftest.$ac_ext <<_ACEOF
2822 cat confdefs.h >>conftest.$ac_ext
2823 cat >>conftest.$ac_ext <<_ACEOF
2824 /* end confdefs.h. */
2834 rm -f conftest.$ac_objext
2835 if { (ac_try="$ac_compile"
2837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2838 *) ac_try_echo=$ac_try;;
2840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2841 (eval "$ac_compile") 2>conftest.er1
2843 grep -v '^ *+' conftest.er1 >conftest.err
2845 cat conftest.err >&5
2846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2847 (exit $ac_status); } &&
2848 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2849 { (case "(($ac_try" in
2850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2851 *) ac_try_echo=$ac_try;;
2853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2854 (eval "$ac_try") 2>&5
2856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2857 (exit $ac_status); }; } &&
2858 { ac_try='test -s conftest.$ac_objext'
2859 { (case "(($ac_try" in
2860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2861 *) ac_try_echo=$ac_try;;
2863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2864 (eval "$ac_try") 2>&5
2866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2867 (exit $ac_status); }; }; then
2870 echo "$as_me: failed program was:" >&5
2871 sed 's/^/| /' conftest.$ac_ext >&5
2873 ac_c_werror_flag=$ac_save_c_werror_flag
2875 cat >conftest.$ac_ext <<_ACEOF
2878 cat confdefs.h >>conftest.$ac_ext
2879 cat >>conftest.$ac_ext <<_ACEOF
2880 /* end confdefs.h. */
2890 rm -f conftest.$ac_objext
2891 if { (ac_try="$ac_compile"
2893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2894 *) ac_try_echo=$ac_try;;
2896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2897 (eval "$ac_compile") 2>conftest.er1
2899 grep -v '^ *+' conftest.er1 >conftest.err
2901 cat conftest.err >&5
2902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2903 (exit $ac_status); } &&
2904 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2905 { (case "(($ac_try" in
2906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2907 *) ac_try_echo=$ac_try;;
2909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2910 (eval "$ac_try") 2>&5
2912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2913 (exit $ac_status); }; } &&
2914 { ac_try='test -s conftest.$ac_objext'
2915 { (case "(($ac_try" in
2916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2917 *) ac_try_echo=$ac_try;;
2919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2920 (eval "$ac_try") 2>&5
2922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2923 (exit $ac_status); }; }; then
2926 echo "$as_me: failed program was:" >&5
2927 sed 's/^/| /' conftest.$ac_ext >&5
2932 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2935 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2938 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2939 ac_c_werror_flag=$ac_save_c_werror_flag
2941 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2942 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2943 if test "$ac_test_CFLAGS" = set; then
2944 CFLAGS=$ac_save_CFLAGS
2945 elif test $ac_cv_prog_cc_g = yes; then
2946 if test "$GCC" = yes; then
2952 if test "$GCC" = yes; then
2958 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2959 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2960 if test "${ac_cv_prog_cc_c89+set}" = set; then
2961 echo $ECHO_N "(cached) $ECHO_C" >&6
2963 ac_cv_prog_cc_c89=no
2965 cat >conftest.$ac_ext <<_ACEOF
2968 cat confdefs.h >>conftest.$ac_ext
2969 cat >>conftest.$ac_ext <<_ACEOF
2970 /* end confdefs.h. */
2973 #include <sys/types.h>
2974 #include <sys/stat.h>
2975 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2976 struct buf { int x; };
2977 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2978 static char *e (p, i)
2984 static char *f (char * (*g) (char **, int), char **p, ...)
2989 s = g (p, va_arg (v,int));
2994 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2995 function prototypes and stuff, but not '\xHH' hex character constants.
2996 These don't provoke an error unfortunately, instead are silently treated
2997 as 'x'. The following induces an error, until -std is added to get
2998 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2999 array size at least. It's necessary to write '\x00'==0 to get something
3000 that's true only with -std. */
3001 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3003 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3004 inside strings and character constants. */
3006 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3008 int test (int i, double x);
3009 struct s1 {int (*f) (int a);};
3010 struct s2 {int (*f) (double a);};
3011 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3017 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3022 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3023 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3025 CC="$ac_save_CC $ac_arg"
3026 rm -f conftest.$ac_objext
3027 if { (ac_try="$ac_compile"
3029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3030 *) ac_try_echo=$ac_try;;
3032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3033 (eval "$ac_compile") 2>conftest.er1
3035 grep -v '^ *+' conftest.er1 >conftest.err
3037 cat conftest.err >&5
3038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3039 (exit $ac_status); } &&
3040 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3041 { (case "(($ac_try" in
3042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3043 *) ac_try_echo=$ac_try;;
3045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3046 (eval "$ac_try") 2>&5
3048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3049 (exit $ac_status); }; } &&
3050 { ac_try='test -s conftest.$ac_objext'
3051 { (case "(($ac_try" in
3052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3053 *) ac_try_echo=$ac_try;;
3055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3056 (eval "$ac_try") 2>&5
3058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3059 (exit $ac_status); }; }; then
3060 ac_cv_prog_cc_c89=$ac_arg
3062 echo "$as_me: failed program was:" >&5
3063 sed 's/^/| /' conftest.$ac_ext >&5
3068 rm -f core conftest.err conftest.$ac_objext
3069 test "x$ac_cv_prog_cc_c89" != "xno" && break
3071 rm -f conftest.$ac_ext
3076 case "x$ac_cv_prog_cc_c89" in
3078 { echo "$as_me:$LINENO: result: none needed" >&5
3079 echo "${ECHO_T}none needed" >&6; } ;;
3081 { echo "$as_me:$LINENO: result: unsupported" >&5
3082 echo "${ECHO_T}unsupported" >&6; } ;;
3084 CC="$CC $ac_cv_prog_cc_c89"
3085 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3086 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3091 ac_cpp='$CPP $CPPFLAGS'
3092 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3093 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3094 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3097 ac_cpp='$CXXCPP $CPPFLAGS'
3098 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3099 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3100 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3101 if test -z "$CXX"; then
3102 if test -n "$CCC"; then
3105 if test -n "$ac_tool_prefix"; then
3106 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3108 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3109 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3110 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3111 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3112 if test "${ac_cv_prog_CXX+set}" = set; then
3113 echo $ECHO_N "(cached) $ECHO_C" >&6
3115 if test -n "$CXX"; then
3116 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3118 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3122 test -z "$as_dir" && as_dir=.
3123 for ac_exec_ext in '' $ac_executable_extensions; do
3124 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
3125 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3126 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3136 if test -n "$CXX"; then
3137 { echo "$as_me:$LINENO: result: $CXX" >&5
3138 echo "${ECHO_T}$CXX" >&6; }
3140 { echo "$as_me:$LINENO: result: no" >&5
3141 echo "${ECHO_T}no" >&6; }
3145 test -n "$CXX" && break
3148 if test -z "$CXX"; then
3150 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3152 # Extract the first word of "$ac_prog", so it can be a program name with args.
3153 set dummy $ac_prog; ac_word=$2
3154 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3155 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3156 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3157 echo $ECHO_N "(cached) $ECHO_C" >&6
3159 if test -n "$ac_ct_CXX"; then
3160 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3166 test -z "$as_dir" && as_dir=.
3167 for ac_exec_ext in '' $ac_executable_extensions; do
3168 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
3169 ac_cv_prog_ac_ct_CXX="$ac_prog"
3170 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3179 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3180 if test -n "$ac_ct_CXX"; then
3181 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3182 echo "${ECHO_T}$ac_ct_CXX" >&6; }
3184 { echo "$as_me:$LINENO: result: no" >&5
3185 echo "${ECHO_T}no" >&6; }
3189 test -n "$ac_ct_CXX" && break
3192 if test "x$ac_ct_CXX" = x; then
3195 case $cross_compiling:$ac_tool_warned in
3197 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3198 whose name does not start with the host triplet. If you think this
3199 configuration is useful to you, please write to autoconf@gnu.org." >&5
3200 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3201 whose name does not start with the host triplet. If you think this
3202 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3203 ac_tool_warned=yes ;;
3211 # Provide some information about the compiler.
3212 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
3213 ac_compiler=`set X $ac_compile; echo $2`
3214 { (ac_try="$ac_compiler --version >&5"
3216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3217 *) ac_try_echo=$ac_try;;
3219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3220 (eval "$ac_compiler --version >&5") 2>&5
3222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3223 (exit $ac_status); }
3224 { (ac_try="$ac_compiler -v >&5"
3226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3227 *) ac_try_echo=$ac_try;;
3229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3230 (eval "$ac_compiler -v >&5") 2>&5
3232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3233 (exit $ac_status); }
3234 { (ac_try="$ac_compiler -V >&5"
3236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3237 *) ac_try_echo=$ac_try;;
3239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3240 (eval "$ac_compiler -V >&5") 2>&5
3242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3243 (exit $ac_status); }
3245 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3246 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
3247 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3248 echo $ECHO_N "(cached) $ECHO_C" >&6
3250 cat >conftest.$ac_ext <<_ACEOF
3253 cat confdefs.h >>conftest.$ac_ext
3254 cat >>conftest.$ac_ext <<_ACEOF
3255 /* end confdefs.h. */
3268 rm -f conftest.$ac_objext
3269 if { (ac_try="$ac_compile"
3271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3272 *) ac_try_echo=$ac_try;;
3274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3275 (eval "$ac_compile") 2>conftest.er1
3277 grep -v '^ *+' conftest.er1 >conftest.err
3279 cat conftest.err >&5
3280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3281 (exit $ac_status); } &&
3282 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3283 { (case "(($ac_try" in
3284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3285 *) ac_try_echo=$ac_try;;
3287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3288 (eval "$ac_try") 2>&5
3290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3291 (exit $ac_status); }; } &&
3292 { ac_try='test -s conftest.$ac_objext'
3293 { (case "(($ac_try" in
3294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3295 *) ac_try_echo=$ac_try;;
3297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3298 (eval "$ac_try") 2>&5
3300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3301 (exit $ac_status); }; }; then
3304 echo "$as_me: failed program was:" >&5
3305 sed 's/^/| /' conftest.$ac_ext >&5
3310 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3311 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3314 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3315 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3316 GXX=`test $ac_compiler_gnu = yes && echo yes`
3317 ac_test_CXXFLAGS=${CXXFLAGS+set}
3318 ac_save_CXXFLAGS=$CXXFLAGS
3319 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3320 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3321 if test "${ac_cv_prog_cxx_g+set}" = set; then
3322 echo $ECHO_N "(cached) $ECHO_C" >&6
3324 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3325 ac_cxx_werror_flag=yes
3328 cat >conftest.$ac_ext <<_ACEOF
3331 cat confdefs.h >>conftest.$ac_ext
3332 cat >>conftest.$ac_ext <<_ACEOF
3333 /* end confdefs.h. */
3343 rm -f conftest.$ac_objext
3344 if { (ac_try="$ac_compile"
3346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3347 *) ac_try_echo=$ac_try;;
3349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3350 (eval "$ac_compile") 2>conftest.er1
3352 grep -v '^ *+' conftest.er1 >conftest.err
3354 cat conftest.err >&5
3355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3356 (exit $ac_status); } &&
3357 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3358 { (case "(($ac_try" in
3359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3360 *) ac_try_echo=$ac_try;;
3362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3363 (eval "$ac_try") 2>&5
3365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3366 (exit $ac_status); }; } &&
3367 { ac_try='test -s conftest.$ac_objext'
3368 { (case "(($ac_try" in
3369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3370 *) ac_try_echo=$ac_try;;
3372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3373 (eval "$ac_try") 2>&5
3375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3376 (exit $ac_status); }; }; then
3377 ac_cv_prog_cxx_g=yes
3379 echo "$as_me: failed program was:" >&5
3380 sed 's/^/| /' conftest.$ac_ext >&5
3383 cat >conftest.$ac_ext <<_ACEOF
3386 cat confdefs.h >>conftest.$ac_ext
3387 cat >>conftest.$ac_ext <<_ACEOF
3388 /* end confdefs.h. */
3398 rm -f conftest.$ac_objext
3399 if { (ac_try="$ac_compile"
3401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3402 *) ac_try_echo=$ac_try;;
3404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3405 (eval "$ac_compile") 2>conftest.er1
3407 grep -v '^ *+' conftest.er1 >conftest.err
3409 cat conftest.err >&5
3410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3411 (exit $ac_status); } &&
3412 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3413 { (case "(($ac_try" in
3414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3415 *) ac_try_echo=$ac_try;;
3417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3418 (eval "$ac_try") 2>&5
3420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3421 (exit $ac_status); }; } &&
3422 { ac_try='test -s conftest.$ac_objext'
3423 { (case "(($ac_try" in
3424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3425 *) ac_try_echo=$ac_try;;
3427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3428 (eval "$ac_try") 2>&5
3430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3431 (exit $ac_status); }; }; then
3434 echo "$as_me: failed program was:" >&5
3435 sed 's/^/| /' conftest.$ac_ext >&5
3437 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3439 cat >conftest.$ac_ext <<_ACEOF
3442 cat confdefs.h >>conftest.$ac_ext
3443 cat >>conftest.$ac_ext <<_ACEOF
3444 /* end confdefs.h. */
3454 rm -f conftest.$ac_objext
3455 if { (ac_try="$ac_compile"
3457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3458 *) ac_try_echo=$ac_try;;
3460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3461 (eval "$ac_compile") 2>conftest.er1
3463 grep -v '^ *+' conftest.er1 >conftest.err
3465 cat conftest.err >&5
3466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3467 (exit $ac_status); } &&
3468 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3469 { (case "(($ac_try" in
3470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3471 *) ac_try_echo=$ac_try;;
3473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3474 (eval "$ac_try") 2>&5
3476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3477 (exit $ac_status); }; } &&
3478 { ac_try='test -s conftest.$ac_objext'
3479 { (case "(($ac_try" in
3480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3481 *) ac_try_echo=$ac_try;;
3483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3484 (eval "$ac_try") 2>&5
3486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3487 (exit $ac_status); }; }; then
3488 ac_cv_prog_cxx_g=yes
3490 echo "$as_me: failed program was:" >&5
3491 sed 's/^/| /' conftest.$ac_ext >&5
3496 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3499 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3502 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3503 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3505 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3506 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3507 if test "$ac_test_CXXFLAGS" = set; then
3508 CXXFLAGS=$ac_save_CXXFLAGS
3509 elif test $ac_cv_prog_cxx_g = yes; then
3510 if test "$GXX" = yes; then
3516 if test "$GXX" = yes; then
3523 ac_cpp='$CPP $CPPFLAGS'
3524 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3525 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3526 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3528 if test "x$CC" != xcc; then
3529 { echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
3530 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6; }
3532 { echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
3533 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6; }
3535 set dummy $CC; ac_cc=`echo $2 |
3536 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3537 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
3538 echo $ECHO_N "(cached) $ECHO_C" >&6
3540 cat >conftest.$ac_ext <<_ACEOF
3543 cat confdefs.h >>conftest.$ac_ext
3544 cat >>conftest.$ac_ext <<_ACEOF
3545 /* end confdefs.h. */
3555 # Make sure it works both with $CC and with simple cc.
3556 # We do the test twice because some compilers refuse to overwrite an
3557 # existing .o file with -o, though they will create one.
3558 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3560 if { (case "(($ac_try" in
3561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3562 *) ac_try_echo=$ac_try;;
3564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3565 (eval "$ac_try") 2>&5
3567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3568 (exit $ac_status); } &&
3569 test -f conftest2.$ac_objext && { (case "(($ac_try" in
3570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3571 *) ac_try_echo=$ac_try;;
3573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3574 (eval "$ac_try") 2>&5
3576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3577 (exit $ac_status); };
3579 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
3580 if test "x$CC" != xcc; then
3581 # Test first that cc exists at all.
3582 if { ac_try='cc -c conftest.$ac_ext >&5'
3583 { (case "(($ac_try" in
3584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3585 *) ac_try_echo=$ac_try;;
3587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3588 (eval "$ac_try") 2>&5
3590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3591 (exit $ac_status); }; }; then
3592 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3594 if { (case "(($ac_try" in
3595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3596 *) ac_try_echo=$ac_try;;
3598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3599 (eval "$ac_try") 2>&5
3601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3602 (exit $ac_status); } &&
3603 test -f conftest2.$ac_objext && { (case "(($ac_try" in
3604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3605 *) ac_try_echo=$ac_try;;
3607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3608 (eval "$ac_try") 2>&5
3610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3611 (exit $ac_status); };
3616 # cc exists but doesn't like -o.
3617 eval ac_cv_prog_cc_${ac_cc}_c_o=no
3622 eval ac_cv_prog_cc_${ac_cc}_c_o=no
3624 rm -f core conftest*
3627 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
3628 { echo "$as_me:$LINENO: result: yes" >&5
3629 echo "${ECHO_T}yes" >&6; }
3631 { echo "$as_me:$LINENO: result: no" >&5
3632 echo "${ECHO_T}no" >&6; }
3634 cat >>confdefs.h <<\_ACEOF
3635 #define NO_MINUS_C_MINUS_O 1
3641 ac_cpp='$CPP $CPPFLAGS'
3642 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3643 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3644 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3645 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3646 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3647 # On Suns, sometimes $CPP names a directory.
3648 if test -n "$CPP" && test -d "$CPP"; then
3651 if test -z "$CPP"; then
3652 if test "${ac_cv_prog_CPP+set}" = set; then
3653 echo $ECHO_N "(cached) $ECHO_C" >&6
3655 # Double quotes because CPP needs to be expanded
3656 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3659 for ac_c_preproc_warn_flag in '' yes
3661 # Use a header file that comes with gcc, so configuring glibc
3662 # with a fresh cross-compiler works.
3663 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3664 # <limits.h> exists even on freestanding compilers.
3665 # On the NeXT, cc -E runs the code through the compiler's parser,
3666 # not just through cpp. "Syntax error" is here to catch this case.
3667 cat >conftest.$ac_ext <<_ACEOF
3670 cat confdefs.h >>conftest.$ac_ext
3671 cat >>conftest.$ac_ext <<_ACEOF
3672 /* end confdefs.h. */
3674 # include <limits.h>
3676 # include <assert.h>
3680 if { (ac_try="$ac_cpp conftest.$ac_ext"
3682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3683 *) ac_try_echo=$ac_try;;
3685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3686 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3688 grep -v '^ *+' conftest.er1 >conftest.err
3690 cat conftest.err >&5
3691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3692 (exit $ac_status); } >/dev/null; then
3693 if test -s conftest.err; then
3694 ac_cpp_err=$ac_c_preproc_warn_flag
3695 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3702 if test -z "$ac_cpp_err"; then
3705 echo "$as_me: failed program was:" >&5
3706 sed 's/^/| /' conftest.$ac_ext >&5
3708 # Broken: fails on valid input.
3712 rm -f conftest.err conftest.$ac_ext
3714 # OK, works on sane cases. Now check whether nonexistent headers
3715 # can be detected and how.
3716 cat >conftest.$ac_ext <<_ACEOF
3719 cat confdefs.h >>conftest.$ac_ext
3720 cat >>conftest.$ac_ext <<_ACEOF
3721 /* end confdefs.h. */
3722 #include <ac_nonexistent.h>
3724 if { (ac_try="$ac_cpp conftest.$ac_ext"
3726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3727 *) ac_try_echo=$ac_try;;
3729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3730 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3732 grep -v '^ *+' conftest.er1 >conftest.err
3734 cat conftest.err >&5
3735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3736 (exit $ac_status); } >/dev/null; then
3737 if test -s conftest.err; then
3738 ac_cpp_err=$ac_c_preproc_warn_flag
3739 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3746 if test -z "$ac_cpp_err"; then
3747 # Broken: success on invalid input.
3750 echo "$as_me: failed program was:" >&5
3751 sed 's/^/| /' conftest.$ac_ext >&5
3753 # Passes both tests.
3758 rm -f conftest.err conftest.$ac_ext
3761 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3762 rm -f conftest.err conftest.$ac_ext
3763 if $ac_preproc_ok; then
3775 { echo "$as_me:$LINENO: result: $CPP" >&5
3776 echo "${ECHO_T}$CPP" >&6; }
3778 for ac_c_preproc_warn_flag in '' yes
3780 # Use a header file that comes with gcc, so configuring glibc
3781 # with a fresh cross-compiler works.
3782 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3783 # <limits.h> exists even on freestanding compilers.
3784 # On the NeXT, cc -E runs the code through the compiler's parser,
3785 # not just through cpp. "Syntax error" is here to catch this case.
3786 cat >conftest.$ac_ext <<_ACEOF
3789 cat confdefs.h >>conftest.$ac_ext
3790 cat >>conftest.$ac_ext <<_ACEOF
3791 /* end confdefs.h. */
3793 # include <limits.h>
3795 # include <assert.h>
3799 if { (ac_try="$ac_cpp conftest.$ac_ext"
3801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3802 *) ac_try_echo=$ac_try;;
3804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3805 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3807 grep -v '^ *+' conftest.er1 >conftest.err
3809 cat conftest.err >&5
3810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3811 (exit $ac_status); } >/dev/null; then
3812 if test -s conftest.err; then
3813 ac_cpp_err=$ac_c_preproc_warn_flag
3814 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3821 if test -z "$ac_cpp_err"; then
3824 echo "$as_me: failed program was:" >&5
3825 sed 's/^/| /' conftest.$ac_ext >&5
3827 # Broken: fails on valid input.
3831 rm -f conftest.err conftest.$ac_ext
3833 # OK, works on sane cases. Now check whether nonexistent headers
3834 # can be detected and how.
3835 cat >conftest.$ac_ext <<_ACEOF
3838 cat confdefs.h >>conftest.$ac_ext
3839 cat >>conftest.$ac_ext <<_ACEOF
3840 /* end confdefs.h. */
3841 #include <ac_nonexistent.h>
3843 if { (ac_try="$ac_cpp conftest.$ac_ext"
3845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3846 *) ac_try_echo=$ac_try;;
3848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3849 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3851 grep -v '^ *+' conftest.er1 >conftest.err
3853 cat conftest.err >&5
3854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3855 (exit $ac_status); } >/dev/null; then
3856 if test -s conftest.err; then
3857 ac_cpp_err=$ac_c_preproc_warn_flag
3858 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3865 if test -z "$ac_cpp_err"; then
3866 # Broken: success on invalid input.
3869 echo "$as_me: failed program was:" >&5
3870 sed 's/^/| /' conftest.$ac_ext >&5
3872 # Passes both tests.
3877 rm -f conftest.err conftest.$ac_ext
3880 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3881 rm -f conftest.err conftest.$ac_ext
3882 if $ac_preproc_ok; then
3885 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3886 See \`config.log' for more details." >&5
3887 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3888 See \`config.log' for more details." >&2;}
3889 { (exit 1); exit 1; }; }
3893 ac_cpp='$CPP $CPPFLAGS'
3894 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3895 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3896 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3899 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3900 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3901 if test "${ac_cv_path_GREP+set}" = set; then
3902 echo $ECHO_N "(cached) $ECHO_C" >&6
3904 # Extract the first word of "grep ggrep" to use in msg output
3905 if test -z "$GREP"; then
3906 set dummy grep ggrep; ac_prog_name=$2
3907 if test "${ac_cv_path_GREP+set}" = set; then
3908 echo $ECHO_N "(cached) $ECHO_C" >&6
3910 ac_path_GREP_found=false
3911 # Loop through the user's path and test for each of PROGNAME-LIST
3912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3913 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3916 test -z "$as_dir" && as_dir=.
3917 for ac_prog in grep ggrep; do
3918 for ac_exec_ext in '' $ac_executable_extensions; do
3919 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3920 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3921 # Check for GNU ac_path_GREP and select it if it is found.
3922 # Check for GNU $ac_path_GREP
3923 case `"$ac_path_GREP" --version 2>&1` in
3925 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3928 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3931 cat "conftest.in" "conftest.in" >"conftest.tmp"
3932 mv "conftest.tmp" "conftest.in"
3933 cp "conftest.in" "conftest.nl"
3934 echo 'GREP' >> "conftest.nl"
3935 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3936 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3937 ac_count=`expr $ac_count + 1`
3938 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3939 # Best one so far, save it but keep looking for a better one
3940 ac_cv_path_GREP="$ac_path_GREP"
3941 ac_path_GREP_max=$ac_count
3943 # 10*(2^10) chars as input seems more than enough
3944 test $ac_count -gt 10 && break
3946 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3950 $ac_path_GREP_found && break 3
3960 GREP="$ac_cv_path_GREP"
3961 if test -z "$GREP"; then
3962 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3963 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3964 { (exit 1); exit 1; }; }
3968 ac_cv_path_GREP=$GREP
3973 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3974 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3975 GREP="$ac_cv_path_GREP"
3978 { echo "$as_me:$LINENO: checking for egrep" >&5
3979 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3980 if test "${ac_cv_path_EGREP+set}" = set; then
3981 echo $ECHO_N "(cached) $ECHO_C" >&6
3983 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3984 then ac_cv_path_EGREP="$GREP -E"
3986 # Extract the first word of "egrep" to use in msg output
3987 if test -z "$EGREP"; then
3988 set dummy egrep; ac_prog_name=$2
3989 if test "${ac_cv_path_EGREP+set}" = set; then
3990 echo $ECHO_N "(cached) $ECHO_C" >&6
3992 ac_path_EGREP_found=false
3993 # Loop through the user's path and test for each of PROGNAME-LIST
3994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3995 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3998 test -z "$as_dir" && as_dir=.
3999 for ac_prog in egrep; do
4000 for ac_exec_ext in '' $ac_executable_extensions; do
4001 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4002 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
4003 # Check for GNU ac_path_EGREP and select it if it is found.
4004 # Check for GNU $ac_path_EGREP
4005 case `"$ac_path_EGREP" --version 2>&1` in
4007 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4010 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4013 cat "conftest.in" "conftest.in" >"conftest.tmp"
4014 mv "conftest.tmp" "conftest.in"
4015 cp "conftest.in" "conftest.nl"
4016 echo 'EGREP' >> "conftest.nl"
4017 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4018 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4019 ac_count=`expr $ac_count + 1`
4020 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4021 # Best one so far, save it but keep looking for a better one
4022 ac_cv_path_EGREP="$ac_path_EGREP"
4023 ac_path_EGREP_max=$ac_count
4025 # 10*(2^10) chars as input seems more than enough
4026 test $ac_count -gt 10 && break
4028 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4032 $ac_path_EGREP_found && break 3
4042 EGREP="$ac_cv_path_EGREP"
4043 if test -z "$EGREP"; then
4044 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4045 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4046 { (exit 1); exit 1; }; }
4050 ac_cv_path_EGREP=$EGREP
4056 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4057 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4058 EGREP="$ac_cv_path_EGREP"
4061 if test $ac_cv_c_compiler_gnu = yes; then
4062 { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
4063 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
4064 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
4065 echo $ECHO_N "(cached) $ECHO_C" >&6
4067 ac_pattern="Autoconf.*'x'"
4068 cat >conftest.$ac_ext <<_ACEOF
4071 cat confdefs.h >>conftest.$ac_ext
4072 cat >>conftest.$ac_ext <<_ACEOF
4073 /* end confdefs.h. */
4077 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4078 $EGREP "$ac_pattern" >/dev/null 2>&1; then
4079 ac_cv_prog_gcc_traditional=yes
4081 ac_cv_prog_gcc_traditional=no
4086 if test $ac_cv_prog_gcc_traditional = no; then
4087 cat >conftest.$ac_ext <<_ACEOF
4090 cat confdefs.h >>conftest.$ac_ext
4091 cat >>conftest.$ac_ext <<_ACEOF
4092 /* end confdefs.h. */
4096 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4097 $EGREP "$ac_pattern" >/dev/null 2>&1; then
4098 ac_cv_prog_gcc_traditional=yes
4104 { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
4105 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
4106 if test $ac_cv_prog_gcc_traditional = yes; then
4107 CC="$CC -traditional"
4111 BASECC=`basename $CC`
4113 if test "x$BASECC" = xgcc; then
4114 cat >>confdefs.h <<\_ACEOF
4120 # Extract the first word of "$CXX", so it can be a program name with args.
4121 set dummy $CXX; ac_word=$2
4122 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4123 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4124 if test "${ac_cv_path_CXX+set}" = set; then
4125 echo $ECHO_N "(cached) $ECHO_C" >&6
4129 ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
4132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4136 test -z "$as_dir" && as_dir=.
4137 for ac_exec_ext in '' $ac_executable_extensions; do
4138 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4139 ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
4140 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4147 test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="$CXX"
4152 if test -n "$CXX"; then
4153 { echo "$as_me:$LINENO: result: $CXX" >&5
4154 echo "${ECHO_T}$CXX" >&6; }
4156 { echo "$as_me:$LINENO: result: no" >&5
4157 echo "${ECHO_T}no" >&6; }
4161 if test ! -e $CXX; then
4162 { { echo "$as_me:$LINENO: error: Unable to find C++ compiler" >&5
4163 echo "$as_me: error: Unable to find C++ compiler" >&2;}
4164 { (exit 1); exit 1; }; }
4167 # Find a good install program. We prefer a C program (faster),
4168 # so one script is as good as another. But avoid the broken or
4169 # incompatible versions:
4170 # SysV /etc/install, /usr/sbin/install
4171 # SunOS /usr/etc/install
4172 # IRIX /sbin/install
4174 # AmigaOS /C/install, which installs bootblocks on floppy discs
4175 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4176 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4177 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4178 # OS/2's system install, which has a completely different semantic
4179 # ./install, which can be erroneously created by make from ./install.sh.
4180 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4181 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4182 if test -z "$INSTALL"; then
4183 if test "${ac_cv_path_install+set}" = set; then
4184 echo $ECHO_N "(cached) $ECHO_C" >&6
4186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4190 test -z "$as_dir" && as_dir=.
4191 # Account for people who put trailing slashes in PATH elements.
4193 ./ | .// | /cC/* | \
4194 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4195 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4198 # OSF1 and SCO ODT 3.0 have their own names for install.
4199 # Don't use installbsd from OSF since it installs stuff as root
4201 for ac_prog in ginstall scoinst install; do
4202 for ac_exec_ext in '' $ac_executable_extensions; do
4203 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
4204 if test $ac_prog = install &&
4205 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4206 # AIX install. It has an incompatible calling convention.
4208 elif test $ac_prog = install &&
4209 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4210 # program-specific install script used by HP pwplus--don't use.
4213 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4226 if test "${ac_cv_path_install+set}" = set; then
4227 INSTALL=$ac_cv_path_install
4229 # As a last resort, use the slow shell script. Don't cache a
4230 # value for INSTALL within a source directory, because that will
4231 # break other packages using the cache if that directory is
4232 # removed, or if the value is a relative name.
4233 INSTALL=$ac_install_sh
4236 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4237 echo "${ECHO_T}$INSTALL" >&6; }
4239 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4240 # It thinks the first close brace ends the variable substitution.
4241 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4243 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4245 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4247 if test -n "$ac_tool_prefix"; then
4248 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4249 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4250 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4251 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4252 if test "${ac_cv_prog_RANLIB+set}" = set; then
4253 echo $ECHO_N "(cached) $ECHO_C" >&6
4255 if test -n "$RANLIB"; then
4256 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4258 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4262 test -z "$as_dir" && as_dir=.
4263 for ac_exec_ext in '' $ac_executable_extensions; do
4264 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4265 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4266 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4275 RANLIB=$ac_cv_prog_RANLIB
4276 if test -n "$RANLIB"; then
4277 { echo "$as_me:$LINENO: result: $RANLIB" >&5
4278 echo "${ECHO_T}$RANLIB" >&6; }
4280 { echo "$as_me:$LINENO: result: no" >&5
4281 echo "${ECHO_T}no" >&6; }
4286 if test -z "$ac_cv_prog_RANLIB"; then
4287 ac_ct_RANLIB=$RANLIB
4288 # Extract the first word of "ranlib", so it can be a program name with args.
4289 set dummy ranlib; ac_word=$2
4290 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4291 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4292 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4293 echo $ECHO_N "(cached) $ECHO_C" >&6
4295 if test -n "$ac_ct_RANLIB"; then
4296 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4302 test -z "$as_dir" && as_dir=.
4303 for ac_exec_ext in '' $ac_executable_extensions; do
4304 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4305 ac_cv_prog_ac_ct_RANLIB="ranlib"
4306 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4315 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4316 if test -n "$ac_ct_RANLIB"; then
4317 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4318 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
4320 { echo "$as_me:$LINENO: result: no" >&5
4321 echo "${ECHO_T}no" >&6; }
4324 if test "x$ac_ct_RANLIB" = x; then
4327 case $cross_compiling:$ac_tool_warned in
4329 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4330 whose name does not start with the host triplet. If you think this
4331 configuration is useful to you, please write to autoconf@gnu.org." >&5
4332 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4333 whose name does not start with the host triplet. If you think this
4334 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4335 ac_tool_warned=yes ;;
4337 RANLIB=$ac_ct_RANLIB
4340 RANLIB="$ac_cv_prog_RANLIB"
4343 # Extract the first word of "mv", so it can be a program name with args.
4344 set dummy mv; ac_word=$2
4345 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4346 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4347 if test "${ac_cv_path_MV+set}" = set; then
4348 echo $ECHO_N "(cached) $ECHO_C" >&6
4352 ac_cv_path_MV="$MV" # Let the user override the test with a path.
4355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4359 test -z "$as_dir" && as_dir=.
4360 for ac_exec_ext in '' $ac_executable_extensions; do
4361 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4362 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
4363 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4370 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
4375 if test -n "$MV"; then
4376 { echo "$as_me:$LINENO: result: $MV" >&5
4377 echo "${ECHO_T}$MV" >&6; }
4379 { echo "$as_me:$LINENO: result: no" >&5
4380 echo "${ECHO_T}no" >&6; }
4384 # Extract the first word of "rm", so it can be a program name with args.
4385 set dummy rm; ac_word=$2
4386 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4387 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4388 if test "${ac_cv_path_RM+set}" = set; then
4389 echo $ECHO_N "(cached) $ECHO_C" >&6
4393 ac_cv_path_RM="$RM" # Let the user override the test with a path.
4396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4400 test -z "$as_dir" && as_dir=.
4401 for ac_exec_ext in '' $ac_executable_extensions; do
4402 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4403 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
4404 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4411 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
4416 if test -n "$RM"; then
4417 { echo "$as_me:$LINENO: result: $RM" >&5
4418 echo "${ECHO_T}$RM" >&6; }
4420 { echo "$as_me:$LINENO: result: no" >&5
4421 echo "${ECHO_T}no" >&6; }
4425 # Extract the first word of "cp", so it can be a program name with args.
4426 set dummy cp; ac_word=$2
4427 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4428 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4429 if test "${ac_cv_path_CP+set}" = set; then
4430 echo $ECHO_N "(cached) $ECHO_C" >&6
4434 ac_cv_path_CP="$CP" # Let the user override the test with a path.
4437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4441 test -z "$as_dir" && as_dir=.
4442 for ac_exec_ext in '' $ac_executable_extensions; do
4443 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4444 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
4445 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4452 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
4457 if test -n "$CP"; then
4458 { echo "$as_me:$LINENO: result: $CP" >&5
4459 echo "${ECHO_T}$CP" >&6; }
4461 { echo "$as_me:$LINENO: result: no" >&5
4462 echo "${ECHO_T}no" >&6; }
4466 # Extract the first word of "sed", so it can be a program name with args.
4467 set dummy sed; ac_word=$2
4468 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4469 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4470 if test "${ac_cv_path_SED+set}" = set; then
4471 echo $ECHO_N "(cached) $ECHO_C" >&6
4475 ac_cv_path_SED="$SED" # Let the user override the test with a path.
4478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4482 test -z "$as_dir" && as_dir=.
4483 for ac_exec_ext in '' $ac_executable_extensions; do
4484 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4485 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
4486 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4493 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
4498 if test -n "$SED"; then
4499 { echo "$as_me:$LINENO: result: $SED" >&5
4500 echo "${ECHO_T}$SED" >&6; }
4502 { echo "$as_me:$LINENO: result: no" >&5
4503 echo "${ECHO_T}no" >&6; }
4507 # Extract the first word of "echo", so it can be a program name with args.
4508 set dummy echo; ac_word=$2
4509 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4510 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4511 if test "${ac_cv_path_ECHO+set}" = set; then
4512 echo $ECHO_N "(cached) $ECHO_C" >&6
4516 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
4519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4523 test -z "$as_dir" && as_dir=.
4524 for ac_exec_ext in '' $ac_executable_extensions; do
4525 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4526 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
4527 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4534 test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
4538 ECHO=$ac_cv_path_ECHO
4539 if test -n "$ECHO"; then
4540 { echo "$as_me:$LINENO: result: $ECHO" >&5
4541 echo "${ECHO_T}$ECHO" >&6; }
4543 { echo "$as_me:$LINENO: result: no" >&5
4544 echo "${ECHO_T}no" >&6; }
4548 # Extract the first word of "cmp", so it can be a program name with args.
4549 set dummy cmp; ac_word=$2
4550 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4551 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4552 if test "${ac_cv_path_CMP+set}" = set; then
4553 echo $ECHO_N "(cached) $ECHO_C" >&6
4557 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
4560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4564 test -z "$as_dir" && as_dir=.
4565 for ac_exec_ext in '' $ac_executable_extensions; do
4566 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4567 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
4568 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4575 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
4580 if test -n "$CMP"; then
4581 { echo "$as_me:$LINENO: result: $CMP" >&5
4582 echo "${ECHO_T}$CMP" >&6; }
4584 { echo "$as_me:$LINENO: result: no" >&5
4585 echo "${ECHO_T}no" >&6; }
4589 # Extract the first word of "tbl", so it can be a program name with args.
4590 set dummy tbl; ac_word=$2
4591 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4592 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4593 if test "${ac_cv_path_TBL+set}" = set; then
4594 echo $ECHO_N "(cached) $ECHO_C" >&6
4598 ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
4601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4605 test -z "$as_dir" && as_dir=.
4606 for ac_exec_ext in '' $ac_executable_extensions; do
4607 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4608 ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext"
4609 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4616 test -z "$ac_cv_path_TBL" && ac_cv_path_TBL="tbl"
4621 if test -n "$TBL"; then
4622 { echo "$as_me:$LINENO: result: $TBL" >&5
4623 echo "${ECHO_T}$TBL" >&6; }
4625 { echo "$as_me:$LINENO: result: no" >&5
4626 echo "${ECHO_T}no" >&6; }
4630 # Extract the first word of "ar", so it can be a program name with args.
4631 set dummy ar; ac_word=$2
4632 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4633 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4634 if test "${ac_cv_path_AR+set}" = set; then
4635 echo $ECHO_N "(cached) $ECHO_C" >&6
4639 ac_cv_path_AR="$AR" # Let the user override the test with a path.
4642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4646 test -z "$as_dir" && as_dir=.
4647 for ac_exec_ext in '' $ac_executable_extensions; do
4648 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4649 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
4650 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4657 test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
4662 if test -n "$AR"; then
4663 { echo "$as_me:$LINENO: result: $AR" >&5
4664 echo "${ECHO_T}$AR" >&6; }
4666 { echo "$as_me:$LINENO: result: no" >&5
4667 echo "${ECHO_T}no" >&6; }
4671 # Extract the first word of "openssl", so it can be a program name with args.
4672 set dummy openssl; ac_word=$2
4673 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4674 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4675 if test "${ac_cv_path_OPENSSL+set}" = set; then
4676 echo $ECHO_N "(cached) $ECHO_C" >&6
4680 ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a path.
4683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4687 test -z "$as_dir" && as_dir=.
4688 for ac_exec_ext in '' $ac_executable_extensions; do
4689 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4690 ac_cv_path_OPENSSL="$as_dir/$ac_word$ac_exec_ext"
4691 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4698 test -z "$ac_cv_path_OPENSSL" && ac_cv_path_OPENSSL="none"
4702 OPENSSL=$ac_cv_path_OPENSSL
4703 if test -n "$OPENSSL"; then
4704 { echo "$as_me:$LINENO: result: $OPENSSL" >&5
4705 echo "${ECHO_T}$OPENSSL" >&6; }
4707 { echo "$as_me:$LINENO: result: no" >&5
4708 echo "${ECHO_T}no" >&6; }
4712 # Extract the first word of "mtx", so it can be a program name with args.
4713 set dummy mtx; ac_word=$2
4714 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4715 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4716 if test "${ac_cv_path_MTX+set}" = set; then
4717 echo $ECHO_N "(cached) $ECHO_C" >&6
4721 ac_cv_path_MTX="$MTX" # Let the user override the test with a path.
4724 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4728 test -z "$as_dir" && as_dir=.
4729 for ac_exec_ext in '' $ac_executable_extensions; do
4730 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4731 ac_cv_path_MTX="$as_dir/$ac_word$ac_exec_ext"
4732 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4739 test -z "$ac_cv_path_MTX" && ac_cv_path_MTX="mtx"
4744 if test -n "$MTX"; then
4745 { echo "$as_me:$LINENO: result: $MTX" >&5
4746 echo "${ECHO_T}$MTX" >&6; }
4748 { echo "$as_me:$LINENO: result: no" >&5
4749 echo "${ECHO_T}no" >&6; }
4753 # Extract the first word of "dd", so it can be a program name with args.
4754 set dummy dd; ac_word=$2
4755 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4756 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4757 if test "${ac_cv_path_DD+set}" = set; then
4758 echo $ECHO_N "(cached) $ECHO_C" >&6
4762 ac_cv_path_DD="$DD" # Let the user override the test with a path.
4765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4769 test -z "$as_dir" && as_dir=.
4770 for ac_exec_ext in '' $ac_executable_extensions; do
4771 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4772 ac_cv_path_DD="$as_dir/$ac_word$ac_exec_ext"
4773 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4780 test -z "$ac_cv_path_DD" && ac_cv_path_DD="dd"
4785 if test -n "$DD"; then
4786 { echo "$as_me:$LINENO: result: $DD" >&5
4787 echo "${ECHO_T}$DD" >&6; }
4789 { echo "$as_me:$LINENO: result: no" >&5
4790 echo "${ECHO_T}no" >&6; }
4794 # Extract the first word of "mkisofs", so it can be a program name with args.
4795 set dummy mkisofs; ac_word=$2
4796 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4797 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4798 if test "${ac_cv_path_MKISOFS+set}" = set; then
4799 echo $ECHO_N "(cached) $ECHO_C" >&6
4803 ac_cv_path_MKISOFS="$MKISOFS" # Let the user override the test with a path.
4806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4810 test -z "$as_dir" && as_dir=.
4811 for ac_exec_ext in '' $ac_executable_extensions; do
4812 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4813 ac_cv_path_MKISOFS="$as_dir/$ac_word$ac_exec_ext"
4814 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4821 test -z "$ac_cv_path_MKISOFS" && ac_cv_path_MKISOFS="mkisofs"
4825 MKISOFS=$ac_cv_path_MKISOFS
4826 if test -n "$MKISOFS"; then
4827 { echo "$as_me:$LINENO: result: $MKISOFS" >&5
4828 echo "${ECHO_T}$MKISOFS" >&6; }
4830 { echo "$as_me:$LINENO: result: no" >&5
4831 echo "${ECHO_T}no" >&6; }
4835 # Extract the first word of "python", so it can be a program name with args.
4836 set dummy python; ac_word=$2
4837 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4838 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4839 if test "${ac_cv_path_PYTHON+set}" = set; then
4840 echo $ECHO_N "(cached) $ECHO_C" >&6
4844 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
4847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4851 test -z "$as_dir" && as_dir=.
4852 for ac_exec_ext in '' $ac_executable_extensions; do
4853 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4854 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
4855 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4862 test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="python"
4866 PYTHON=$ac_cv_path_PYTHON
4867 if test -n "$PYTHON"; then
4868 { echo "$as_me:$LINENO: result: $PYTHON" >&5
4869 echo "${ECHO_T}$PYTHON" >&6; }
4871 { echo "$as_me:$LINENO: result: no" >&5
4872 echo "${ECHO_T}no" >&6; }
4876 # Extract the first word of "growisofs", so it can be a program name with args.
4877 set dummy growisofs; ac_word=$2
4878 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4879 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4880 if test "${ac_cv_path_GROWISOFS+set}" = set; then
4881 echo $ECHO_N "(cached) $ECHO_C" >&6
4885 ac_cv_path_GROWISOFS="$GROWISOFS" # Let the user override the test with a path.
4888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4892 test -z "$as_dir" && as_dir=.
4893 for ac_exec_ext in '' $ac_executable_extensions; do
4894 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4895 ac_cv_path_GROWISOFS="$as_dir/$ac_word$ac_exec_ext"
4896 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4903 test -z "$ac_cv_path_GROWISOFS" && ac_cv_path_GROWISOFS="growisofs"
4907 GROWISOFS=$ac_cv_path_GROWISOFS
4908 if test -n "$GROWISOFS"; then
4909 { echo "$as_me:$LINENO: result: $GROWISOFS" >&5
4910 echo "${ECHO_T}$GROWISOFS" >&6; }
4912 { echo "$as_me:$LINENO: result: no" >&5
4913 echo "${ECHO_T}no" >&6; }
4917 # Extract the first word of "dvd+rw-mediainfo", so it can be a program name with args.
4918 set dummy dvd+rw-mediainfo; ac_word=$2
4919 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4920 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4921 if test "${ac_cv_path_DVDRWMEDIAINFO+set}" = set; then
4922 echo $ECHO_N "(cached) $ECHO_C" >&6
4924 case $DVDRWMEDIAINFO in
4926 ac_cv_path_DVDRWMEDIAINFO="$DVDRWMEDIAINFO" # Let the user override the test with a path.
4929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4933 test -z "$as_dir" && as_dir=.
4934 for ac_exec_ext in '' $ac_executable_extensions; do
4935 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4936 ac_cv_path_DVDRWMEDIAINFO="$as_dir/$ac_word$ac_exec_ext"
4937 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4944 test -z "$ac_cv_path_DVDRWMEDIAINFO" && ac_cv_path_DVDRWMEDIAINFO="dvd+rw-mediainfo"
4948 DVDRWMEDIAINFO=$ac_cv_path_DVDRWMEDIAINFO
4949 if test -n "$DVDRWMEDIAINFO"; then
4950 { echo "$as_me:$LINENO: result: $DVDRWMEDIAINFO" >&5
4951 echo "${ECHO_T}$DVDRWMEDIAINFO" >&6; }
4953 { echo "$as_me:$LINENO: result: no" >&5
4954 echo "${ECHO_T}no" >&6; }
4958 # Extract the first word of "dvd+rw-format", so it can be a program name with args.
4959 set dummy dvd+rw-format; ac_word=$2
4960 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4961 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4962 if test "${ac_cv_path_DVDRWFORMAT+set}" = set; then
4963 echo $ECHO_N "(cached) $ECHO_C" >&6
4965 case $DVDRWFORMAT in
4967 ac_cv_path_DVDRWFORMAT="$DVDRWFORMAT" # Let the user override the test with a path.
4970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4974 test -z "$as_dir" && as_dir=.
4975 for ac_exec_ext in '' $ac_executable_extensions; do
4976 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4977 ac_cv_path_DVDRWFORMAT="$as_dir/$ac_word$ac_exec_ext"
4978 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4985 test -z "$ac_cv_path_DVDRWFORMAT" && ac_cv_path_DVDRWFORMAT="dvd+rw-format"
4989 DVDRWFORMAT=$ac_cv_path_DVDRWFORMAT
4990 if test -n "$DVDRWFORMAT"; then
4991 { echo "$as_me:$LINENO: result: $DVDRWFORMAT" >&5
4992 echo "${ECHO_T}$DVDRWFORMAT" >&6; }
4994 { echo "$as_me:$LINENO: result: no" >&5
4995 echo "${ECHO_T}no" >&6; }
4999 # Extract the first word of "pkg-config", so it can be a program name with args.
5000 set dummy pkg-config; ac_word=$2
5001 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5002 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5003 if test "${ac_cv_path_PKGCONFIG+set}" = set; then
5004 echo $ECHO_N "(cached) $ECHO_C" >&6
5008 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
5011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5015 test -z "$as_dir" && as_dir=.
5016 for ac_exec_ext in '' $ac_executable_extensions; do
5017 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5018 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
5019 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5026 test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="pkg-config"
5030 PKGCONFIG=$ac_cv_path_PKGCONFIG
5031 if test -n "$PKGCONFIG"; then
5032 { echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
5033 echo "${ECHO_T}$PKGCONFIG" >&6; }
5035 { echo "$as_me:$LINENO: result: no" >&5
5036 echo "${ECHO_T}no" >&6; }
5041 if test "x$WXCONFIG" = x; then
5044 # Extract the first word of "${WXCONFIG}", so it can be a program name with args.
5045 set dummy ${WXCONFIG}; ac_word=$2
5046 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5047 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5048 if test "${ac_cv_path_WXCONFIG+set}" = set; then
5049 echo $ECHO_N "(cached) $ECHO_C" >&6
5053 ac_cv_path_WXCONFIG="$WXCONFIG" # Let the user override the test with a path.
5056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5060 test -z "$as_dir" && as_dir=.
5061 for ac_exec_ext in '' $ac_executable_extensions; do
5062 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5063 ac_cv_path_WXCONFIG="$as_dir/$ac_word$ac_exec_ext"
5064 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5071 test -z "$ac_cv_path_WXCONFIG" && ac_cv_path_WXCONFIG="${WXCONFIG}"
5075 WXCONFIG=$ac_cv_path_WXCONFIG
5076 if test -n "$WXCONFIG"; then
5077 { echo "$as_me:$LINENO: result: $WXCONFIG" >&5
5078 echo "${ECHO_T}$WXCONFIG" >&6; }
5080 { echo "$as_me:$LINENO: result: no" >&5
5081 echo "${ECHO_T}no" >&6; }
5086 # Extract the first word of "cdrecord", so it can be a program name with args.
5087 set dummy cdrecord; ac_word=$2
5088 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5089 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5090 if test "${ac_cv_path_CDRECORD+set}" = set; then
5091 echo $ECHO_N "(cached) $ECHO_C" >&6
5095 ac_cv_path_CDRECORD="$CDRECORD" # Let the user override the test with a path.
5098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5102 test -z "$as_dir" && as_dir=.
5103 for ac_exec_ext in '' $ac_executable_extensions; do
5104 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5105 ac_cv_path_CDRECORD="$as_dir/$ac_word$ac_exec_ext"
5106 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5113 test -z "$ac_cv_path_CDRECORD" && ac_cv_path_CDRECORD="cdrecord"
5117 CDRECORD=$ac_cv_path_CDRECORD
5118 if test -n "$CDRECORD"; then
5119 { echo "$as_me:$LINENO: result: $CDRECORD" >&5
5120 echo "${ECHO_T}$CDRECORD" >&6; }
5122 { echo "$as_me:$LINENO: result: no" >&5
5123 echo "${ECHO_T}no" >&6; }
5127 # Extract the first word of "pidof", so it can be a program name with args.
5128 set dummy pidof; ac_word=$2
5129 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5130 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5131 if test "${ac_cv_path_PIDOF+set}" = set; then
5132 echo $ECHO_N "(cached) $ECHO_C" >&6
5136 ac_cv_path_PIDOF="$PIDOF" # Let the user override the test with a path.
5139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5143 test -z "$as_dir" && as_dir=.
5144 for ac_exec_ext in '' $ac_executable_extensions; do
5145 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5146 ac_cv_path_PIDOF="$as_dir/$ac_word$ac_exec_ext"
5147 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5154 test -z "$ac_cv_path_PIDOF" && ac_cv_path_PIDOF="pidof"
5158 PIDOF=$ac_cv_path_PIDOF
5159 if test -n "$PIDOF"; then
5160 { echo "$as_me:$LINENO: result: $PIDOF" >&5
5161 echo "${ECHO_T}$PIDOF" >&6; }
5163 { echo "$as_me:$LINENO: result: no" >&5
5164 echo "${ECHO_T}no" >&6; }
5168 for ac_prog in gawk mawk nawk awk
5170 # Extract the first word of "$ac_prog", so it can be a program name with args.
5171 set dummy $ac_prog; ac_word=$2
5172 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5173 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5174 if test "${ac_cv_prog_AWK+set}" = set; then
5175 echo $ECHO_N "(cached) $ECHO_C" >&6
5177 if test -n "$AWK"; then
5178 ac_cv_prog_AWK="$AWK" # Let the user override the test.
5180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5184 test -z "$as_dir" && as_dir=.
5185 for ac_exec_ext in '' $ac_executable_extensions; do
5186 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5187 ac_cv_prog_AWK="$ac_prog"
5188 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5198 if test -n "$AWK"; then
5199 { echo "$as_me:$LINENO: result: $AWK" >&5
5200 echo "${ECHO_T}$AWK" >&6; }
5202 { echo "$as_me:$LINENO: result: no" >&5
5203 echo "${ECHO_T}no" >&6; }
5207 test -n "$AWK" && break
5210 # Some AWK programs fail, so test it and warn the user
5211 if echo xfoo | $AWK 'BEGIN { prog=ARGV1; ARGC=1 }
5212 { if ((prog == $2) || (("(" prog ")") == $2) ||
5213 (("" prog "") == $2) ||
5214 ((prog ":") == $2)) { print $1 ; exit 0 } }' xfoo>/dev/null; then :;
5216 { { echo "$as_me:$LINENO: error: !!!!!!!!! WARNING !!!!!!!!!!!!!!
5217 The regex engine of $AWK is too broken to be used you
5218 might want to install GNU AWK.
5219 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&5
5220 echo "$as_me: error: !!!!!!!!! WARNING !!!!!!!!!!!!!!
5221 The regex engine of $AWK is too broken to be used you
5222 might want to install GNU AWK.
5223 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&2;}
5224 { (exit 1); exit 1; }; }
5227 # Extract the first word of "$THE_AWK", so it can be a program name with args.
5228 set dummy $THE_AWK; ac_word=$2
5229 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5230 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5231 if test "${ac_cv_path_AWK+set}" = set; then
5232 echo $ECHO_N "(cached) $ECHO_C" >&6
5236 ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
5239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5243 test -z "$as_dir" && as_dir=.
5244 for ac_exec_ext in '' $ac_executable_extensions; do
5245 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5246 ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
5247 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5254 test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="$THE_AWK"
5259 if test -n "$AWK"; then
5260 { echo "$as_me:$LINENO: result: $AWK" >&5
5261 echo "${ECHO_T}$AWK" >&6; }
5263 { echo "$as_me:$LINENO: result: no" >&5
5264 echo "${ECHO_T}no" >&6; }
5269 test -n "$ARFLAG" || ARFLAGS="cr"
5280 # Make sure we can run config.sub.
5281 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5282 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
5283 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
5284 { (exit 1); exit 1; }; }
5286 { echo "$as_me:$LINENO: checking build system type" >&5
5287 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
5288 if test "${ac_cv_build+set}" = set; then
5289 echo $ECHO_N "(cached) $ECHO_C" >&6
5291 ac_build_alias=$build_alias
5292 test "x$ac_build_alias" = x &&
5293 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5294 test "x$ac_build_alias" = x &&
5295 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
5296 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
5297 { (exit 1); exit 1; }; }
5298 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5299 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
5300 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
5301 { (exit 1); exit 1; }; }
5304 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
5305 echo "${ECHO_T}$ac_cv_build" >&6; }
5306 case $ac_cv_build in
5308 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
5309 echo "$as_me: error: invalid value of canonical build" >&2;}
5310 { (exit 1); exit 1; }; };;
5313 ac_save_IFS=$IFS; IFS='-'
5319 # Remember, the first character of IFS is used to create $*,
5320 # except with old shells:
5323 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5327 { echo "$as_me:$LINENO: checking host system type" >&5
5328 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
5329 if test "${ac_cv_host+set}" = set; then
5330 echo $ECHO_N "(cached) $ECHO_C" >&6
5332 if test "x$host_alias" = x; then
5333 ac_cv_host=$ac_cv_build
5335 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5336 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
5337 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
5338 { (exit 1); exit 1; }; }
5342 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
5343 echo "${ECHO_T}$ac_cv_host" >&6; }
5346 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
5347 echo "$as_me: error: invalid value of canonical host" >&2;}
5348 { (exit 1); exit 1; }; };;
5351 ac_save_IFS=$IFS; IFS='-'
5357 # Remember, the first character of IFS is used to create $*,
5358 # except with old shells:
5361 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5365 *cygwin* ) CYGWIN=yes;;
5369 if test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
5375 HAVE_SUN_OS_FALSE='#'
5377 HAVE_SUN_OS_TRUE='#'
5380 cat >>confdefs.h <<\_ACEOF
5381 #define HAVE_SUN_OS 1
5389 HAVE_SUN_OS_FALSE='#'
5391 HAVE_SUN_OS_TRUE='#'
5396 if test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
5402 HAVE_OSF1_OS_FALSE='#'
5404 HAVE_OSF1_OS_TRUE='#'
5407 cat >>confdefs.h <<\_ACEOF
5408 #define HAVE_OSF1_OS 1
5416 HAVE_OSF1_OS_FALSE='#'
5418 HAVE_OSF1_OS_TRUE='#'
5423 if test $HAVE_UNAME=yes -a x`uname -s` = xAIX
5429 HAVE_AIX_OS_FALSE='#'
5431 HAVE_AIX_OS_TRUE='#'
5434 cat >>confdefs.h <<\_ACEOF
5435 #define HAVE_AIX_OS 1
5443 HAVE_AIX_OS_FALSE='#'
5445 HAVE_AIX_OS_TRUE='#'
5450 if test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
5456 HAVE_HPUX_OS_FALSE='#'
5458 HAVE_HPUX_OS_TRUE='#'
5461 cat >>confdefs.h <<\_ACEOF
5462 #define HAVE_HPUX_OS 1
5470 HAVE_HPUX_OS_FALSE='#'
5472 HAVE_HPUX_OS_TRUE='#'
5477 if test $HAVE_UNAME=yes -a x`uname -s` = xLinux
5483 HAVE_LINUX_OS_FALSE='#'
5485 HAVE_LINUX_OS_TRUE='#'
5486 HAVE_LINUX_OS_FALSE=
5488 cat >>confdefs.h <<\_ACEOF
5489 #define HAVE_LINUX_OS 1
5497 HAVE_LINUX_OS_FALSE='#'
5499 HAVE_LINUX_OS_TRUE='#'
5500 HAVE_LINUX_OS_FALSE=
5504 if test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
5509 HAVE_FREEBSD_OS_TRUE=
5510 HAVE_FREEBSD_OS_FALSE='#'
5512 HAVE_FREEBSD_OS_TRUE='#'
5513 HAVE_FREEBSD_OS_FALSE=
5515 cat >>confdefs.h <<\_ACEOF
5516 #define HAVE_FREEBSD_OS 1
5523 HAVE_FREEBSD_OS_TRUE=
5524 HAVE_FREEBSD_OS_FALSE='#'
5526 HAVE_FREEBSD_OS_TRUE='#'
5527 HAVE_FREEBSD_OS_FALSE=
5531 if test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
5536 HAVE_NETBSD_OS_TRUE=
5537 HAVE_NETBSD_OS_FALSE='#'
5539 HAVE_NETBSD_OS_TRUE='#'
5540 HAVE_NETBSD_OS_FALSE=
5542 cat >>confdefs.h <<\_ACEOF
5543 #define HAVE_NETBSD_OS 1
5550 HAVE_NETBSD_OS_TRUE=
5551 HAVE_NETBSD_OS_FALSE='#'
5553 HAVE_NETBSD_OS_TRUE='#'
5554 HAVE_NETBSD_OS_FALSE=
5558 if test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
5563 HAVE_OPENBSD_OS_TRUE=
5564 HAVE_OPENBSD_OS_FALSE='#'
5566 HAVE_OPENBSD_OS_TRUE='#'
5567 HAVE_OPENBSD_OS_FALSE=
5569 cat >>confdefs.h <<\_ACEOF
5570 #define HAVE_OPENBSD_OS 1
5577 HAVE_OPENBSD_OS_TRUE=
5578 HAVE_OPENBSD_OS_FALSE='#'
5580 HAVE_OPENBSD_OS_TRUE='#'
5581 HAVE_OPENBSD_OS_FALSE=
5585 if test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
5591 HAVE_BSDI_OS_FALSE='#'
5593 HAVE_BSDI_OS_TRUE='#'
5596 cat >>confdefs.h <<\_ACEOF
5597 #define HAVE_BSDI_OS 1
5605 HAVE_BSDI_OS_FALSE='#'
5607 HAVE_BSDI_OS_TRUE='#'
5612 if test $HAVE_UNAME=yes -a x`uname -s` = xSGI
5618 HAVE_SGI_OS_FALSE='#'
5620 HAVE_SGI_OS_TRUE='#'
5623 cat >>confdefs.h <<\_ACEOF
5624 #define HAVE_SGI_OS 1
5632 HAVE_SGI_OS_FALSE='#'
5634 HAVE_SGI_OS_TRUE='#'
5639 if test $HAVE_UNAME=yes -a x`uname -s` = xIRIX -o x`uname -s` = xIRIX64
5645 HAVE_IRIX_OS_FALSE='#'
5647 HAVE_IRIX_OS_TRUE='#'
5650 cat >>confdefs.h <<\_ACEOF
5651 #define HAVE_IRIX_OS 1
5659 HAVE_IRIX_OS_FALSE='#'
5661 HAVE_IRIX_OS_TRUE='#'
5666 if test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
5671 HAVE_DARWIN_OS_TRUE=
5672 HAVE_DARWIN_OS_FALSE='#'
5674 HAVE_DARWIN_OS_TRUE='#'
5675 HAVE_DARWIN_OS_FALSE=
5677 cat >>confdefs.h <<\_ACEOF
5678 #define HAVE_DARWIN_OS 1
5685 HAVE_DARWIN_OS_TRUE=
5686 HAVE_DARWIN_OS_FALSE='#'
5688 HAVE_DARWIN_OS_TRUE='#'
5689 HAVE_DARWIN_OS_FALSE=
5694 # -----------------------------------------------------------
5695 # ----------------------------------------------------------
5696 { echo "$as_me:$LINENO: checking for Operating System Distribution" >&5
5697 echo $ECHO_N "checking for Operating System Distribution... $ECHO_C" >&6; }
5698 if test "x$DISTNAME" != "x"
5700 echo "distname set to $DISTNAME"
5701 elif test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
5704 elif test $HAVE_UNAME=yes -a x`uname -s` = xAIX
5707 elif test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
5710 elif test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
5713 elif test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
5716 elif test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
5719 elif test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
5722 elif test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
5725 elif test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
5728 elif test -f /etc/SuSE-release
5731 elif test -d /etc/SuSEconfig
5734 elif test -f /etc/mandrake-release
5737 elif test -f /etc/whitebox-release
5740 elif test -f /etc/redhat-release
5743 elif test -f /etc/gentoo-release
5746 elif test -f /etc/debian_version
5749 elif test -f /etc/slackware-version
5752 elif test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
5755 elif test -f /etc/engarde-version
5758 elif test "$CYGWIN" = yes
5761 cat >>confdefs.h <<\_ACEOF
5762 #define HAVE_CYGWIN 1
5768 { echo "$as_me:$LINENO: result: done" >&5
5769 echo "${ECHO_T}done" >&6; }
5772 # --------------------------------------------------
5773 # Suppport for gettext (translations)
5774 # By default, $datadir is ${prefix}/share
5775 # --------------------------------------------------
5776 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5777 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
5778 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5779 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
5780 echo $ECHO_N "(cached) $ECHO_C" >&6
5782 cat >conftest.make <<\_ACEOF
5785 @echo '@@@%%%=$(MAKE)=@@@%%%'
5787 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5788 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5790 eval ac_cv_prog_make_${ac_make}_set=yes;;
5792 eval ac_cv_prog_make_${ac_make}_set=no;;
5796 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5797 { echo "$as_me:$LINENO: result: yes" >&5
5798 echo "${ECHO_T}yes" >&6; }
5801 { echo "$as_me:$LINENO: result: no" >&5
5802 echo "${ECHO_T}no" >&6; }
5803 SET_MAKE="MAKE=${MAKE-make}"
5809 if test -n "$ac_aux_dir"; then
5810 case "$ac_aux_dir" in
5811 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
5812 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
5815 if test -z "$MKINSTALLDIRS"; then
5816 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
5821 { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
5822 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
5823 # Check whether --enable-nls was given.
5824 if test "${enable_nls+set}" = set; then
5825 enableval=$enable_nls; USE_NLS=$enableval
5830 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
5831 echo "${ECHO_T}$USE_NLS" >&6; }
5838 # Prepare PATH_SEPARATOR.
5839 # The user is always right.
5840 if test "${PATH_SEPARATOR+set}" != set; then
5841 echo "#! /bin/sh" >conf$$.sh
5842 echo "exit 0" >>conf$$.sh
5844 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5852 # Find out how to test for executable files. Don't use a zero-byte file,
5853 # as systems may use methods other than mode bits to determine executability.
5854 cat >conf$$.file <<_ASEOF
5858 chmod +x conf$$.file
5859 if test -x conf$$.file >/dev/null 2>&1; then
5860 ac_executable_p="test -x"
5862 ac_executable_p="test -f"
5866 # Extract the first word of "msgfmt", so it can be a program name with args.
5867 set dummy msgfmt; ac_word=$2
5868 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5869 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5870 if test "${ac_cv_path_MSGFMT+set}" = set; then
5871 echo $ECHO_N "(cached) $ECHO_C" >&6
5875 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
5878 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5879 for ac_dir in $PATH; do
5881 test -z "$ac_dir" && ac_dir=.
5882 for ac_exec_ext in '' $ac_executable_extensions; do
5883 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5884 echo "$as_me: trying $ac_dir/$ac_word..." >&5
5885 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
5886 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5887 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
5894 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
5898 MSGFMT="$ac_cv_path_MSGFMT"
5899 if test "$MSGFMT" != ":"; then
5900 { echo "$as_me:$LINENO: result: $MSGFMT" >&5
5901 echo "${ECHO_T}$MSGFMT" >&6; }
5903 { echo "$as_me:$LINENO: result: no" >&5
5904 echo "${ECHO_T}no" >&6; }
5907 # Extract the first word of "gmsgfmt", so it can be a program name with args.
5908 set dummy gmsgfmt; ac_word=$2
5909 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5910 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5911 if test "${ac_cv_path_GMSGFMT+set}" = set; then
5912 echo $ECHO_N "(cached) $ECHO_C" >&6
5916 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
5919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5923 test -z "$as_dir" && as_dir=.
5924 for ac_exec_ext in '' $ac_executable_extensions; do
5925 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5926 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
5927 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5934 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
5938 GMSGFMT=$ac_cv_path_GMSGFMT
5939 if test -n "$GMSGFMT"; then
5940 { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
5941 echo "${ECHO_T}$GMSGFMT" >&6; }
5943 { echo "$as_me:$LINENO: result: no" >&5
5944 echo "${ECHO_T}no" >&6; }
5950 # Prepare PATH_SEPARATOR.
5951 # The user is always right.
5952 if test "${PATH_SEPARATOR+set}" != set; then
5953 echo "#! /bin/sh" >conf$$.sh
5954 echo "exit 0" >>conf$$.sh
5956 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5964 # Find out how to test for executable files. Don't use a zero-byte file,
5965 # as systems may use methods other than mode bits to determine executability.
5966 cat >conf$$.file <<_ASEOF
5970 chmod +x conf$$.file
5971 if test -x conf$$.file >/dev/null 2>&1; then
5972 ac_executable_p="test -x"
5974 ac_executable_p="test -f"
5978 # Extract the first word of "xgettext", so it can be a program name with args.
5979 set dummy xgettext; ac_word=$2
5980 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5981 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5982 if test "${ac_cv_path_XGETTEXT+set}" = set; then
5983 echo $ECHO_N "(cached) $ECHO_C" >&6
5987 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5990 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5991 for ac_dir in $PATH; do
5993 test -z "$ac_dir" && ac_dir=.
5994 for ac_exec_ext in '' $ac_executable_extensions; do
5995 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5996 echo "$as_me: trying $ac_dir/$ac_word..." >&5
5997 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
5998 (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
5999 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
6006 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
6010 XGETTEXT="$ac_cv_path_XGETTEXT"
6011 if test "$XGETTEXT" != ":"; then
6012 { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
6013 echo "${ECHO_T}$XGETTEXT" >&6; }
6015 { echo "$as_me:$LINENO: result: no" >&5
6016 echo "${ECHO_T}no" >&6; }
6022 # Prepare PATH_SEPARATOR.
6023 # The user is always right.
6024 if test "${PATH_SEPARATOR+set}" != set; then
6025 echo "#! /bin/sh" >conf$$.sh
6026 echo "exit 0" >>conf$$.sh
6028 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6036 # Find out how to test for executable files. Don't use a zero-byte file,
6037 # as systems may use methods other than mode bits to determine executability.
6038 cat >conf$$.file <<_ASEOF
6042 chmod +x conf$$.file
6043 if test -x conf$$.file >/dev/null 2>&1; then
6044 ac_executable_p="test -x"
6046 ac_executable_p="test -f"
6050 # Extract the first word of "msgmerge", so it can be a program name with args.
6051 set dummy msgmerge; ac_word=$2
6052 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6053 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6054 if test "${ac_cv_path_MSGMERGE+set}" = set; then
6055 echo $ECHO_N "(cached) $ECHO_C" >&6
6059 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
6062 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6063 for ac_dir in $PATH; do
6065 test -z "$ac_dir" && ac_dir=.
6066 for ac_exec_ext in '' $ac_executable_extensions; do
6067 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6068 echo "$as_me: trying $ac_dir/$ac_word..." >&5
6069 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
6070 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
6077 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
6081 MSGMERGE="$ac_cv_path_MSGMERGE"
6082 if test "$MSGMERGE" != ":"; then
6083 { echo "$as_me:$LINENO: result: $MSGMERGE" >&5
6084 echo "${ECHO_T}$MSGMERGE" >&6; }
6086 { echo "$as_me:$LINENO: result: no" >&5
6087 echo "${ECHO_T}no" >&6; }
6091 if test "$GMSGFMT" != ":"; then
6092 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
6093 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
6096 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
6097 { echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
6098 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
6103 if test "$XGETTEXT" != ":"; then
6104 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
6105 (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
6108 { echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
6109 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6; }
6115 ac_config_commands="$ac_config_commands default-1"
6119 if test "X$prefix" = "XNONE"; then
6120 acl_final_prefix="$ac_default_prefix"
6122 acl_final_prefix="$prefix"
6124 if test "X$exec_prefix" = "XNONE"; then
6125 acl_final_exec_prefix='${prefix}'
6127 acl_final_exec_prefix="$exec_prefix"
6129 acl_save_prefix="$prefix"
6130 prefix="$acl_final_prefix"
6131 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
6132 prefix="$acl_save_prefix"
6135 # Check whether --with-gnu-ld was given.
6136 if test "${with_gnu_ld+set}" = set; then
6137 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6142 # Prepare PATH_SEPARATOR.
6143 # The user is always right.
6144 if test "${PATH_SEPARATOR+set}" != set; then
6145 echo "#! /bin/sh" >conf$$.sh
6146 echo "exit 0" >>conf$$.sh
6148 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6156 if test "$GCC" = yes; then
6157 # Check if gcc -print-prog-name=ld gives a path.
6158 { echo "$as_me:$LINENO: checking for ld used by GCC" >&5
6159 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6; }
6162 # gcc leaves a trailing carriage return which upsets mingw
6163 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6165 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6168 # Accept absolute paths.
6169 [\\/]* | [A-Za-z]:[\\/]*)
6170 re_direlt='/[^/][^/]*/\.\./'
6171 # Canonicalize the path of ld
6172 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
6173 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
6174 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
6176 test -z "$LD" && LD="$ac_prog"
6179 # If it fails, then pretend we aren't using GCC.
6183 # If it is relative, then search for the first ld in PATH.
6187 elif test "$with_gnu_ld" = yes; then
6188 { echo "$as_me:$LINENO: checking for GNU ld" >&5
6189 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
6191 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
6192 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
6194 if test "${acl_cv_path_LD+set}" = set; then
6195 echo $ECHO_N "(cached) $ECHO_C" >&6
6197 if test -z "$LD"; then
6198 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
6199 for ac_dir in $PATH; do
6200 test -z "$ac_dir" && ac_dir=.
6201 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6202 acl_cv_path_LD="$ac_dir/$ac_prog"
6203 # Check to see if the program is GNU ld. I'd rather use --version,
6204 # but apparently some GNU ld's only accept -v.
6205 # Break only if it was the GNU/non-GNU ld that we prefer.
6206 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
6207 *GNU* | *'with BFD'*)
6208 test "$with_gnu_ld" != no && break ;;
6210 test "$with_gnu_ld" != yes && break ;;
6216 acl_cv_path_LD="$LD" # Let the user override the test with a path.
6220 LD="$acl_cv_path_LD"
6221 if test -n "$LD"; then
6222 { echo "$as_me:$LINENO: result: $LD" >&5
6223 echo "${ECHO_T}$LD" >&6; }
6225 { echo "$as_me:$LINENO: result: no" >&5
6226 echo "${ECHO_T}no" >&6; }
6228 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
6229 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
6230 { (exit 1); exit 1; }; }
6231 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
6232 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
6233 if test "${acl_cv_prog_gnu_ld+set}" = set; then
6234 echo $ECHO_N "(cached) $ECHO_C" >&6
6236 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
6237 case `$LD -v 2>&1 </dev/null` in
6238 *GNU* | *'with BFD'*)
6239 acl_cv_prog_gnu_ld=yes ;;
6241 acl_cv_prog_gnu_ld=no ;;
6244 { echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
6245 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6; }
6246 with_gnu_ld=$acl_cv_prog_gnu_ld
6251 { echo "$as_me:$LINENO: checking for shared library run path origin" >&5
6252 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6; }
6253 if test "${acl_cv_rpath+set}" = set; then
6254 echo $ECHO_N "(cached) $ECHO_C" >&6
6257 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
6258 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
6264 { echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
6265 echo "${ECHO_T}$acl_cv_rpath" >&6; }
6267 libext="$acl_cv_libext"
6268 shlibext="$acl_cv_shlibext"
6269 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
6270 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
6271 hardcode_direct="$acl_cv_hardcode_direct"
6272 hardcode_minus_L="$acl_cv_hardcode_minus_L"
6273 # Check whether --enable-rpath was given.
6274 if test "${enable_rpath+set}" = set; then
6275 enableval=$enable_rpath; :
6289 acl_save_prefix="$prefix"
6290 prefix="$acl_final_prefix"
6291 acl_save_exec_prefix="$exec_prefix"
6292 exec_prefix="$acl_final_exec_prefix"
6294 eval additional_includedir=\"$includedir\"
6295 eval additional_libdir=\"$libdir\"
6297 exec_prefix="$acl_save_exec_prefix"
6298 prefix="$acl_save_prefix"
6301 # Check whether --with-libiconv-prefix was given.
6302 if test "${with_libiconv_prefix+set}" = set; then
6303 withval=$with_libiconv_prefix;
6304 if test "X$withval" = "Xno"; then
6307 if test "X$withval" = "X"; then
6309 acl_save_prefix="$prefix"
6310 prefix="$acl_final_prefix"
6311 acl_save_exec_prefix="$exec_prefix"
6312 exec_prefix="$acl_final_exec_prefix"
6314 eval additional_includedir=\"$includedir\"
6315 eval additional_libdir=\"$libdir\"
6317 exec_prefix="$acl_save_exec_prefix"
6318 prefix="$acl_save_prefix"
6321 additional_includedir="$withval/include"
6322 additional_libdir="$withval/lib"
6333 names_already_handled=
6334 names_next_round='iconv '
6335 while test -n "$names_next_round"; do
6336 names_this_round="$names_next_round"
6338 for name in $names_this_round; do
6340 for n in $names_already_handled; do
6341 if test "$n" = "$name"; then
6346 if test -z "$already_handled"; then
6347 names_already_handled="$names_already_handled $name"
6348 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
6349 eval value=\"\$HAVE_LIB$uppername\"
6350 if test -n "$value"; then
6351 if test "$value" = yes; then
6352 eval value=\"\$LIB$uppername\"
6353 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
6354 eval value=\"\$LTLIB$uppername\"
6355 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
6364 if test $use_additional = yes; then
6365 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
6366 found_dir="$additional_libdir"
6367 found_so="$additional_libdir/lib$name.$shlibext"
6368 if test -f "$additional_libdir/lib$name.la"; then
6369 found_la="$additional_libdir/lib$name.la"
6372 if test -f "$additional_libdir/lib$name.$libext"; then
6373 found_dir="$additional_libdir"
6374 found_a="$additional_libdir/lib$name.$libext"
6375 if test -f "$additional_libdir/lib$name.la"; then
6376 found_la="$additional_libdir/lib$name.la"
6381 if test "X$found_dir" = "X"; then
6382 for x in $LDFLAGS $LTLIBICONV; do
6384 acl_save_prefix="$prefix"
6385 prefix="$acl_final_prefix"
6386 acl_save_exec_prefix="$exec_prefix"
6387 exec_prefix="$acl_final_exec_prefix"
6389 exec_prefix="$acl_save_exec_prefix"
6390 prefix="$acl_save_prefix"
6394 dir=`echo "X$x" | sed -e 's/^X-L//'`
6395 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
6397 found_so="$dir/lib$name.$shlibext"
6398 if test -f "$dir/lib$name.la"; then
6399 found_la="$dir/lib$name.la"
6402 if test -f "$dir/lib$name.$libext"; then
6404 found_a="$dir/lib$name.$libext"
6405 if test -f "$dir/lib$name.la"; then
6406 found_la="$dir/lib$name.la"
6412 if test "X$found_dir" != "X"; then
6417 if test "X$found_dir" != "X"; then
6418 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
6419 if test "X$found_so" != "X"; then
6420 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
6421 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6424 for x in $ltrpathdirs; do
6425 if test "X$x" = "X$found_dir"; then
6430 if test -z "$haveit"; then
6431 ltrpathdirs="$ltrpathdirs $found_dir"
6433 if test "$hardcode_direct" = yes; then
6434 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6436 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
6437 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6439 for x in $rpathdirs; do
6440 if test "X$x" = "X$found_dir"; then
6445 if test -z "$haveit"; then
6446 rpathdirs="$rpathdirs $found_dir"
6450 for x in $LDFLAGS $LIBICONV; do
6452 acl_save_prefix="$prefix"
6453 prefix="$acl_final_prefix"
6454 acl_save_exec_prefix="$exec_prefix"
6455 exec_prefix="$acl_final_exec_prefix"
6457 exec_prefix="$acl_save_exec_prefix"
6458 prefix="$acl_save_prefix"
6460 if test "X$x" = "X-L$found_dir"; then
6465 if test -z "$haveit"; then
6466 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
6468 if test "$hardcode_minus_L" != no; then
6469 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6471 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
6477 if test "X$found_a" != "X"; then
6478 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
6480 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
6483 additional_includedir=
6484 case "$found_dir" in
6486 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
6487 additional_includedir="$basedir/include"
6490 if test "X$additional_includedir" != "X"; then
6491 if test "X$additional_includedir" != "X/usr/include"; then
6493 if test "X$additional_includedir" = "X/usr/local/include"; then
6494 if test -n "$GCC"; then
6496 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
6500 if test -z "$haveit"; then
6501 for x in $CPPFLAGS $INCICONV; do
6503 acl_save_prefix="$prefix"
6504 prefix="$acl_final_prefix"
6505 acl_save_exec_prefix="$exec_prefix"
6506 exec_prefix="$acl_final_exec_prefix"
6508 exec_prefix="$acl_save_exec_prefix"
6509 prefix="$acl_save_prefix"
6511 if test "X$x" = "X-I$additional_includedir"; then
6516 if test -z "$haveit"; then
6517 if test -d "$additional_includedir"; then
6518 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
6524 if test -n "$found_la"; then
6525 save_libdir="$libdir"
6527 */* | *\\*) . "$found_la" ;;
6528 *) . "./$found_la" ;;
6530 libdir="$save_libdir"
6531 for dep in $dependency_libs; do
6534 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
6535 if test "X$additional_libdir" != "X/usr/lib"; then
6537 if test "X$additional_libdir" = "X/usr/local/lib"; then
6538 if test -n "$GCC"; then
6540 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
6544 if test -z "$haveit"; then
6546 for x in $LDFLAGS $LIBICONV; do
6548 acl_save_prefix="$prefix"
6549 prefix="$acl_final_prefix"
6550 acl_save_exec_prefix="$exec_prefix"
6551 exec_prefix="$acl_final_exec_prefix"
6553 exec_prefix="$acl_save_exec_prefix"
6554 prefix="$acl_save_prefix"
6556 if test "X$x" = "X-L$additional_libdir"; then
6561 if test -z "$haveit"; then
6562 if test -d "$additional_libdir"; then
6563 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
6567 for x in $LDFLAGS $LTLIBICONV; do
6569 acl_save_prefix="$prefix"
6570 prefix="$acl_final_prefix"
6571 acl_save_exec_prefix="$exec_prefix"
6572 exec_prefix="$acl_final_exec_prefix"
6574 exec_prefix="$acl_save_exec_prefix"
6575 prefix="$acl_save_prefix"
6577 if test "X$x" = "X-L$additional_libdir"; then
6582 if test -z "$haveit"; then
6583 if test -d "$additional_libdir"; then
6584 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
6591 dir=`echo "X$dep" | sed -e 's/^X-R//'`
6592 if test "$enable_rpath" != no; then
6594 for x in $rpathdirs; do
6595 if test "X$x" = "X$dir"; then
6600 if test -z "$haveit"; then
6601 rpathdirs="$rpathdirs $dir"
6604 for x in $ltrpathdirs; do
6605 if test "X$x" = "X$dir"; then
6610 if test -z "$haveit"; then
6611 ltrpathdirs="$ltrpathdirs $dir"
6616 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
6619 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
6622 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
6623 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
6629 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
6630 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
6636 if test "X$rpathdirs" != "X"; then
6637 if test -n "$hardcode_libdir_separator"; then
6639 for found_dir in $rpathdirs; do
6640 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
6642 acl_save_libdir="$libdir"
6644 eval flag=\"$hardcode_libdir_flag_spec\"
6645 libdir="$acl_save_libdir"
6646 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
6648 for found_dir in $rpathdirs; do
6649 acl_save_libdir="$libdir"
6651 eval flag=\"$hardcode_libdir_flag_spec\"
6652 libdir="$acl_save_libdir"
6653 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
6657 if test "X$ltrpathdirs" != "X"; then
6658 for found_dir in $ltrpathdirs; do
6659 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
6680 { echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
6681 echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6; }
6682 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
6683 echo $ECHO_N "(cached) $ECHO_C" >&6
6685 gt_save_CPPFLAGS="$CPPFLAGS"
6686 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
6687 gt_save_LIBS="$LIBS"
6688 LIBS="$LIBS -framework CoreFoundation"
6689 cat >conftest.$ac_ext <<_ACEOF
6692 cat confdefs.h >>conftest.$ac_ext
6693 cat >>conftest.$ac_ext <<_ACEOF
6694 /* end confdefs.h. */
6695 #include <CFPreferences.h>
6699 CFPreferencesCopyAppValue(NULL, NULL)
6704 rm -f conftest.$ac_objext conftest$ac_exeext
6705 if { (ac_try="$ac_link"
6707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6708 *) ac_try_echo=$ac_try;;
6710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6711 (eval "$ac_link") 2>conftest.er1
6713 grep -v '^ *+' conftest.er1 >conftest.err
6715 cat conftest.err >&5
6716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6717 (exit $ac_status); } &&
6718 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6719 { (case "(($ac_try" in
6720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6721 *) ac_try_echo=$ac_try;;
6723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6724 (eval "$ac_try") 2>&5
6726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6727 (exit $ac_status); }; } &&
6728 { ac_try='test -s conftest$ac_exeext'
6729 { (case "(($ac_try" in
6730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6731 *) ac_try_echo=$ac_try;;
6733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6734 (eval "$ac_try") 2>&5
6736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6737 (exit $ac_status); }; }; then
6738 gt_cv_func_CFPreferencesCopyAppValue=yes
6740 echo "$as_me: failed program was:" >&5
6741 sed 's/^/| /' conftest.$ac_ext >&5
6743 gt_cv_func_CFPreferencesCopyAppValue=no
6746 rm -f core conftest.err conftest.$ac_objext \
6747 conftest$ac_exeext conftest.$ac_ext
6748 CPPFLAGS="$gt_save_CPPFLAGS"
6749 LIBS="$gt_save_LIBS"
6751 { echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
6752 echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
6753 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
6755 cat >>confdefs.h <<\_ACEOF
6756 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
6760 { echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
6761 echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6; }
6762 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
6763 echo $ECHO_N "(cached) $ECHO_C" >&6
6765 gt_save_CPPFLAGS="$CPPFLAGS"
6766 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
6767 gt_save_LIBS="$LIBS"
6768 LIBS="$LIBS -framework CoreFoundation"
6769 cat >conftest.$ac_ext <<_ACEOF
6772 cat confdefs.h >>conftest.$ac_ext
6773 cat >>conftest.$ac_ext <<_ACEOF
6774 /* end confdefs.h. */
6775 #include <CFLocale.h>
6779 CFLocaleCopyCurrent();
6784 rm -f conftest.$ac_objext conftest$ac_exeext
6785 if { (ac_try="$ac_link"
6787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6788 *) ac_try_echo=$ac_try;;
6790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6791 (eval "$ac_link") 2>conftest.er1
6793 grep -v '^ *+' conftest.er1 >conftest.err
6795 cat conftest.err >&5
6796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6797 (exit $ac_status); } &&
6798 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6799 { (case "(($ac_try" in
6800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6801 *) ac_try_echo=$ac_try;;
6803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6804 (eval "$ac_try") 2>&5
6806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6807 (exit $ac_status); }; } &&
6808 { ac_try='test -s conftest$ac_exeext'
6809 { (case "(($ac_try" in
6810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6811 *) ac_try_echo=$ac_try;;
6813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6814 (eval "$ac_try") 2>&5
6816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6817 (exit $ac_status); }; }; then
6818 gt_cv_func_CFLocaleCopyCurrent=yes
6820 echo "$as_me: failed program was:" >&5
6821 sed 's/^/| /' conftest.$ac_ext >&5
6823 gt_cv_func_CFLocaleCopyCurrent=no
6826 rm -f core conftest.err conftest.$ac_objext \
6827 conftest$ac_exeext conftest.$ac_ext
6828 CPPFLAGS="$gt_save_CPPFLAGS"
6829 LIBS="$gt_save_LIBS"
6831 { echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
6832 echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6; }
6833 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
6835 cat >>confdefs.h <<\_ACEOF
6836 #define HAVE_CFLOCALECOPYCURRENT 1
6841 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
6842 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
6848 { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
6849 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
6850 # Check whether --enable-nls was given.
6851 if test "${enable_nls+set}" = set; then
6852 enableval=$enable_nls; USE_NLS=$enableval
6857 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
6858 echo "${ECHO_T}$USE_NLS" >&6; }
6867 if test "$USE_NLS" = "yes"; then
6868 gt_use_preinstalled_gnugettext=no
6875 { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
6876 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
6877 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
6878 echo $ECHO_N "(cached) $ECHO_C" >&6
6880 cat >conftest.$ac_ext <<_ACEOF
6883 cat confdefs.h >>conftest.$ac_ext
6884 cat >>conftest.$ac_ext <<_ACEOF
6885 /* end confdefs.h. */
6886 #include <libintl.h>
6887 extern int _nl_msg_cat_cntr;
6888 extern int *_nl_domain_bindings;
6892 bindtextdomain ("", "");
6893 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
6898 rm -f conftest.$ac_objext conftest$ac_exeext
6899 if { (ac_try="$ac_link"
6901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6902 *) ac_try_echo=$ac_try;;
6904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6905 (eval "$ac_link") 2>conftest.er1
6907 grep -v '^ *+' conftest.er1 >conftest.err
6909 cat conftest.err >&5
6910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6911 (exit $ac_status); } &&
6912 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6913 { (case "(($ac_try" in
6914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6915 *) ac_try_echo=$ac_try;;
6917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6918 (eval "$ac_try") 2>&5
6920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6921 (exit $ac_status); }; } &&
6922 { ac_try='test -s conftest$ac_exeext'
6923 { (case "(($ac_try" in
6924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6925 *) ac_try_echo=$ac_try;;
6927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6928 (eval "$ac_try") 2>&5
6930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6931 (exit $ac_status); }; }; then
6932 gt_cv_func_gnugettext1_libc=yes
6934 echo "$as_me: failed program was:" >&5
6935 sed 's/^/| /' conftest.$ac_ext >&5
6937 gt_cv_func_gnugettext1_libc=no
6940 rm -f core conftest.err conftest.$ac_objext \
6941 conftest$ac_exeext conftest.$ac_ext
6943 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
6944 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6; }
6946 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
6952 am_save_CPPFLAGS="$CPPFLAGS"
6954 for element in $INCICONV; do
6956 for x in $CPPFLAGS; do
6958 acl_save_prefix="$prefix"
6959 prefix="$acl_final_prefix"
6960 acl_save_exec_prefix="$exec_prefix"
6961 exec_prefix="$acl_final_exec_prefix"
6963 exec_prefix="$acl_save_exec_prefix"
6964 prefix="$acl_save_prefix"
6966 if test "X$x" = "X$element"; then
6971 if test -z "$haveit"; then
6972 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
6977 { echo "$as_me:$LINENO: checking for iconv" >&5
6978 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
6979 if test "${am_cv_func_iconv+set}" = set; then
6980 echo $ECHO_N "(cached) $ECHO_C" >&6
6983 am_cv_func_iconv="no, consider installing GNU libiconv"
6985 cat >conftest.$ac_ext <<_ACEOF
6988 cat confdefs.h >>conftest.$ac_ext
6989 cat >>conftest.$ac_ext <<_ACEOF
6990 /* end confdefs.h. */
6996 iconv_t cd = iconv_open("","");
6997 iconv(cd,NULL,NULL,NULL,NULL);
7003 rm -f conftest.$ac_objext conftest$ac_exeext
7004 if { (ac_try="$ac_link"
7006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7007 *) ac_try_echo=$ac_try;;
7009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7010 (eval "$ac_link") 2>conftest.er1
7012 grep -v '^ *+' conftest.er1 >conftest.err
7014 cat conftest.err >&5
7015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7016 (exit $ac_status); } &&
7017 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7018 { (case "(($ac_try" in
7019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7020 *) ac_try_echo=$ac_try;;
7022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7023 (eval "$ac_try") 2>&5
7025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7026 (exit $ac_status); }; } &&
7027 { ac_try='test -s conftest$ac_exeext'
7028 { (case "(($ac_try" in
7029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7030 *) ac_try_echo=$ac_try;;
7032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7033 (eval "$ac_try") 2>&5
7035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7036 (exit $ac_status); }; }; then
7037 am_cv_func_iconv=yes
7039 echo "$as_me: failed program was:" >&5
7040 sed 's/^/| /' conftest.$ac_ext >&5
7045 rm -f core conftest.err conftest.$ac_objext \
7046 conftest$ac_exeext conftest.$ac_ext
7047 if test "$am_cv_func_iconv" != yes; then
7048 am_save_LIBS="$LIBS"
7049 LIBS="$LIBS $LIBICONV"
7050 cat >conftest.$ac_ext <<_ACEOF
7053 cat confdefs.h >>conftest.$ac_ext
7054 cat >>conftest.$ac_ext <<_ACEOF
7055 /* end confdefs.h. */
7061 iconv_t cd = iconv_open("","");
7062 iconv(cd,NULL,NULL,NULL,NULL);
7068 rm -f conftest.$ac_objext conftest$ac_exeext
7069 if { (ac_try="$ac_link"
7071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7072 *) ac_try_echo=$ac_try;;
7074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7075 (eval "$ac_link") 2>conftest.er1
7077 grep -v '^ *+' conftest.er1 >conftest.err
7079 cat conftest.err >&5
7080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7081 (exit $ac_status); } &&
7082 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7083 { (case "(($ac_try" in
7084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7085 *) ac_try_echo=$ac_try;;
7087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7088 (eval "$ac_try") 2>&5
7090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7091 (exit $ac_status); }; } &&
7092 { ac_try='test -s conftest$ac_exeext'
7093 { (case "(($ac_try" in
7094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7095 *) ac_try_echo=$ac_try;;
7097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7098 (eval "$ac_try") 2>&5
7100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7101 (exit $ac_status); }; }; then
7103 am_cv_func_iconv=yes
7105 echo "$as_me: failed program was:" >&5
7106 sed 's/^/| /' conftest.$ac_ext >&5
7111 rm -f core conftest.err conftest.$ac_objext \
7112 conftest$ac_exeext conftest.$ac_ext
7113 LIBS="$am_save_LIBS"
7117 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
7118 echo "${ECHO_T}$am_cv_func_iconv" >&6; }
7119 if test "$am_cv_func_iconv" = yes; then
7121 cat >>confdefs.h <<\_ACEOF
7122 #define HAVE_ICONV 1
7126 if test "$am_cv_lib_iconv" = yes; then
7127 { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
7128 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
7129 { echo "$as_me:$LINENO: result: $LIBICONV" >&5
7130 echo "${ECHO_T}$LIBICONV" >&6; }
7132 CPPFLAGS="$am_save_CPPFLAGS"
7144 acl_save_prefix="$prefix"
7145 prefix="$acl_final_prefix"
7146 acl_save_exec_prefix="$exec_prefix"
7147 exec_prefix="$acl_final_exec_prefix"
7149 eval additional_includedir=\"$includedir\"
7150 eval additional_libdir=\"$libdir\"
7152 exec_prefix="$acl_save_exec_prefix"
7153 prefix="$acl_save_prefix"
7156 # Check whether --with-libintl-prefix was given.
7157 if test "${with_libintl_prefix+set}" = set; then
7158 withval=$with_libintl_prefix;
7159 if test "X$withval" = "Xno"; then
7162 if test "X$withval" = "X"; then
7164 acl_save_prefix="$prefix"
7165 prefix="$acl_final_prefix"
7166 acl_save_exec_prefix="$exec_prefix"
7167 exec_prefix="$acl_final_exec_prefix"
7169 eval additional_includedir=\"$includedir\"
7170 eval additional_libdir=\"$libdir\"
7172 exec_prefix="$acl_save_exec_prefix"
7173 prefix="$acl_save_prefix"
7176 additional_includedir="$withval/include"
7177 additional_libdir="$withval/lib"
7188 names_already_handled=
7189 names_next_round='intl '
7190 while test -n "$names_next_round"; do
7191 names_this_round="$names_next_round"
7193 for name in $names_this_round; do
7195 for n in $names_already_handled; do
7196 if test "$n" = "$name"; then
7201 if test -z "$already_handled"; then
7202 names_already_handled="$names_already_handled $name"
7203 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
7204 eval value=\"\$HAVE_LIB$uppername\"
7205 if test -n "$value"; then
7206 if test "$value" = yes; then
7207 eval value=\"\$LIB$uppername\"
7208 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
7209 eval value=\"\$LTLIB$uppername\"
7210 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
7219 if test $use_additional = yes; then
7220 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
7221 found_dir="$additional_libdir"
7222 found_so="$additional_libdir/lib$name.$shlibext"
7223 if test -f "$additional_libdir/lib$name.la"; then
7224 found_la="$additional_libdir/lib$name.la"
7227 if test -f "$additional_libdir/lib$name.$libext"; then
7228 found_dir="$additional_libdir"
7229 found_a="$additional_libdir/lib$name.$libext"
7230 if test -f "$additional_libdir/lib$name.la"; then
7231 found_la="$additional_libdir/lib$name.la"
7236 if test "X$found_dir" = "X"; then
7237 for x in $LDFLAGS $LTLIBINTL; do
7239 acl_save_prefix="$prefix"
7240 prefix="$acl_final_prefix"
7241 acl_save_exec_prefix="$exec_prefix"
7242 exec_prefix="$acl_final_exec_prefix"
7244 exec_prefix="$acl_save_exec_prefix"
7245 prefix="$acl_save_prefix"
7249 dir=`echo "X$x" | sed -e 's/^X-L//'`
7250 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
7252 found_so="$dir/lib$name.$shlibext"
7253 if test -f "$dir/lib$name.la"; then
7254 found_la="$dir/lib$name.la"
7257 if test -f "$dir/lib$name.$libext"; then
7259 found_a="$dir/lib$name.$libext"
7260 if test -f "$dir/lib$name.la"; then
7261 found_la="$dir/lib$name.la"
7267 if test "X$found_dir" != "X"; then
7272 if test "X$found_dir" != "X"; then
7273 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
7274 if test "X$found_so" != "X"; then
7275 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
7276 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
7279 for x in $ltrpathdirs; do
7280 if test "X$x" = "X$found_dir"; then
7285 if test -z "$haveit"; then
7286 ltrpathdirs="$ltrpathdirs $found_dir"
7288 if test "$hardcode_direct" = yes; then
7289 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
7291 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
7292 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
7294 for x in $rpathdirs; do
7295 if test "X$x" = "X$found_dir"; then
7300 if test -z "$haveit"; then
7301 rpathdirs="$rpathdirs $found_dir"
7305 for x in $LDFLAGS $LIBINTL; do
7307 acl_save_prefix="$prefix"
7308 prefix="$acl_final_prefix"
7309 acl_save_exec_prefix="$exec_prefix"
7310 exec_prefix="$acl_final_exec_prefix"
7312 exec_prefix="$acl_save_exec_prefix"
7313 prefix="$acl_save_prefix"
7315 if test "X$x" = "X-L$found_dir"; then
7320 if test -z "$haveit"; then
7321 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
7323 if test "$hardcode_minus_L" != no; then
7324 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
7326 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
7332 if test "X$found_a" != "X"; then
7333 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
7335 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
7338 additional_includedir=
7339 case "$found_dir" in
7341 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
7342 additional_includedir="$basedir/include"
7345 if test "X$additional_includedir" != "X"; then
7346 if test "X$additional_includedir" != "X/usr/include"; then
7348 if test "X$additional_includedir" = "X/usr/local/include"; then
7349 if test -n "$GCC"; then
7351 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
7355 if test -z "$haveit"; then
7356 for x in $CPPFLAGS $INCINTL; do
7358 acl_save_prefix="$prefix"
7359 prefix="$acl_final_prefix"
7360 acl_save_exec_prefix="$exec_prefix"
7361 exec_prefix="$acl_final_exec_prefix"
7363 exec_prefix="$acl_save_exec_prefix"
7364 prefix="$acl_save_prefix"
7366 if test "X$x" = "X-I$additional_includedir"; then
7371 if test -z "$haveit"; then
7372 if test -d "$additional_includedir"; then
7373 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
7379 if test -n "$found_la"; then
7380 save_libdir="$libdir"
7382 */* | *\\*) . "$found_la" ;;
7383 *) . "./$found_la" ;;
7385 libdir="$save_libdir"
7386 for dep in $dependency_libs; do
7389 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
7390 if test "X$additional_libdir" != "X/usr/lib"; then
7392 if test "X$additional_libdir" = "X/usr/local/lib"; then
7393 if test -n "$GCC"; then
7395 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
7399 if test -z "$haveit"; then
7401 for x in $LDFLAGS $LIBINTL; do
7403 acl_save_prefix="$prefix"
7404 prefix="$acl_final_prefix"
7405 acl_save_exec_prefix="$exec_prefix"
7406 exec_prefix="$acl_final_exec_prefix"
7408 exec_prefix="$acl_save_exec_prefix"
7409 prefix="$acl_save_prefix"
7411 if test "X$x" = "X-L$additional_libdir"; then
7416 if test -z "$haveit"; then
7417 if test -d "$additional_libdir"; then
7418 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
7422 for x in $LDFLAGS $LTLIBINTL; do
7424 acl_save_prefix="$prefix"
7425 prefix="$acl_final_prefix"
7426 acl_save_exec_prefix="$exec_prefix"
7427 exec_prefix="$acl_final_exec_prefix"
7429 exec_prefix="$acl_save_exec_prefix"
7430 prefix="$acl_save_prefix"
7432 if test "X$x" = "X-L$additional_libdir"; then
7437 if test -z "$haveit"; then
7438 if test -d "$additional_libdir"; then
7439 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
7446 dir=`echo "X$dep" | sed -e 's/^X-R//'`
7447 if test "$enable_rpath" != no; then
7449 for x in $rpathdirs; do
7450 if test "X$x" = "X$dir"; then
7455 if test -z "$haveit"; then
7456 rpathdirs="$rpathdirs $dir"
7459 for x in $ltrpathdirs; do
7460 if test "X$x" = "X$dir"; then
7465 if test -z "$haveit"; then
7466 ltrpathdirs="$ltrpathdirs $dir"
7471 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
7474 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
7477 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
7478 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
7484 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
7485 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
7491 if test "X$rpathdirs" != "X"; then
7492 if test -n "$hardcode_libdir_separator"; then
7494 for found_dir in $rpathdirs; do
7495 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
7497 acl_save_libdir="$libdir"
7499 eval flag=\"$hardcode_libdir_flag_spec\"
7500 libdir="$acl_save_libdir"
7501 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
7503 for found_dir in $rpathdirs; do
7504 acl_save_libdir="$libdir"
7506 eval flag=\"$hardcode_libdir_flag_spec\"
7507 libdir="$acl_save_libdir"
7508 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
7512 if test "X$ltrpathdirs" != "X"; then
7513 for found_dir in $ltrpathdirs; do
7514 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
7518 { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
7519 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
7520 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
7521 echo $ECHO_N "(cached) $ECHO_C" >&6
7523 gt_save_CPPFLAGS="$CPPFLAGS"
7524 CPPFLAGS="$CPPFLAGS $INCINTL"
7525 gt_save_LIBS="$LIBS"
7526 LIBS="$LIBS $LIBINTL"
7527 cat >conftest.$ac_ext <<_ACEOF
7530 cat confdefs.h >>conftest.$ac_ext
7531 cat >>conftest.$ac_ext <<_ACEOF
7532 /* end confdefs.h. */
7533 #include <libintl.h>
7534 extern int _nl_msg_cat_cntr;
7539 const char *_nl_expand_alias (const char *);
7543 bindtextdomain ("", "");
7544 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
7549 rm -f conftest.$ac_objext conftest$ac_exeext
7550 if { (ac_try="$ac_link"
7552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7553 *) ac_try_echo=$ac_try;;
7555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7556 (eval "$ac_link") 2>conftest.er1
7558 grep -v '^ *+' conftest.er1 >conftest.err
7560 cat conftest.err >&5
7561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7562 (exit $ac_status); } &&
7563 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7564 { (case "(($ac_try" in
7565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7566 *) ac_try_echo=$ac_try;;
7568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7569 (eval "$ac_try") 2>&5
7571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7572 (exit $ac_status); }; } &&
7573 { ac_try='test -s conftest$ac_exeext'
7574 { (case "(($ac_try" in
7575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7576 *) ac_try_echo=$ac_try;;
7578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7579 (eval "$ac_try") 2>&5
7581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7582 (exit $ac_status); }; }; then
7583 gt_cv_func_gnugettext1_libintl=yes
7585 echo "$as_me: failed program was:" >&5
7586 sed 's/^/| /' conftest.$ac_ext >&5
7588 gt_cv_func_gnugettext1_libintl=no
7591 rm -f core conftest.err conftest.$ac_objext \
7592 conftest$ac_exeext conftest.$ac_ext
7593 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
7594 LIBS="$LIBS $LIBICONV"
7595 cat >conftest.$ac_ext <<_ACEOF
7598 cat confdefs.h >>conftest.$ac_ext
7599 cat >>conftest.$ac_ext <<_ACEOF
7600 /* end confdefs.h. */
7601 #include <libintl.h>
7602 extern int _nl_msg_cat_cntr;
7607 const char *_nl_expand_alias (const char *);
7611 bindtextdomain ("", "");
7612 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
7617 rm -f conftest.$ac_objext conftest$ac_exeext
7618 if { (ac_try="$ac_link"
7620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7621 *) ac_try_echo=$ac_try;;
7623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7624 (eval "$ac_link") 2>conftest.er1
7626 grep -v '^ *+' conftest.er1 >conftest.err
7628 cat conftest.err >&5
7629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7630 (exit $ac_status); } &&
7631 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7632 { (case "(($ac_try" in
7633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7634 *) ac_try_echo=$ac_try;;
7636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7637 (eval "$ac_try") 2>&5
7639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7640 (exit $ac_status); }; } &&
7641 { ac_try='test -s conftest$ac_exeext'
7642 { (case "(($ac_try" in
7643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7644 *) ac_try_echo=$ac_try;;
7646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7647 (eval "$ac_try") 2>&5
7649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7650 (exit $ac_status); }; }; then
7651 LIBINTL="$LIBINTL $LIBICONV"
7652 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
7653 gt_cv_func_gnugettext1_libintl=yes
7656 echo "$as_me: failed program was:" >&5
7657 sed 's/^/| /' conftest.$ac_ext >&5
7662 rm -f core conftest.err conftest.$ac_objext \
7663 conftest$ac_exeext conftest.$ac_ext
7665 CPPFLAGS="$gt_save_CPPFLAGS"
7666 LIBS="$gt_save_LIBS"
7668 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
7669 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6; }
7672 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
7673 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
7674 && test "$PACKAGE" != gettext-runtime \
7675 && test "$PACKAGE" != gettext-tools; }; then
7676 gt_use_preinstalled_gnugettext=yes
7685 if test -n "$INTL_MACOSX_LIBS"; then
7686 if test "$gt_use_preinstalled_gnugettext" = "yes" \
7687 || test "$nls_cv_use_gnu_gettext" = "yes"; then
7688 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
7689 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
7693 if test "$gt_use_preinstalled_gnugettext" = "yes" \
7694 || test "$nls_cv_use_gnu_gettext" = "yes"; then
7696 cat >>confdefs.h <<\_ACEOF
7697 #define ENABLE_NLS 1
7705 { echo "$as_me:$LINENO: checking whether to use NLS" >&5
7706 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; }
7707 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
7708 echo "${ECHO_T}$USE_NLS" >&6; }
7709 if test "$USE_NLS" = "yes"; then
7710 { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
7711 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; }
7712 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
7713 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
7714 gt_source="external libintl"
7719 gt_source="included intl directory"
7721 { echo "$as_me:$LINENO: result: $gt_source" >&5
7722 echo "${ECHO_T}$gt_source" >&6; }
7725 if test "$USE_NLS" = "yes"; then
7727 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
7728 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
7729 { echo "$as_me:$LINENO: checking how to link with libintl" >&5
7730 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; }
7731 { echo "$as_me:$LINENO: result: $LIBINTL" >&5
7732 echo "${ECHO_T}$LIBINTL" >&6; }
7734 for element in $INCINTL; do
7736 for x in $CPPFLAGS; do
7738 acl_save_prefix="$prefix"
7739 prefix="$acl_final_prefix"
7740 acl_save_exec_prefix="$exec_prefix"
7741 exec_prefix="$acl_final_exec_prefix"
7743 exec_prefix="$acl_save_exec_prefix"
7744 prefix="$acl_save_prefix"
7746 if test "X$x" = "X$element"; then
7751 if test -z "$haveit"; then
7752 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
7759 cat >>confdefs.h <<\_ACEOF
7760 #define HAVE_GETTEXT 1
7764 cat >>confdefs.h <<\_ACEOF
7765 #define HAVE_DCGETTEXT 1
7782 if test x${prefix} = xNONE ; then
7783 if test `eval echo ${datadir}` = NONE/share ; then
7788 # ------------------------------------------------------------------
7789 # If the user has not set --prefix, we set our default to nothing.
7790 # In this case, if the user has not set --sysconfdir, we set it
7791 # to the package default of /etc/bacula. If either --prefix or
7792 # --sysconfdir is set, we leave sysconfdir alone except to eval it.
7793 # ------------------------------------------------------------------
7794 if test x${prefix} = xNONE ; then
7795 if test `eval echo ${sysconfdir}` = NONE/etc ; then
7796 sysconfdir=/etc/bacula
7800 sysconfdir=`eval echo ${sysconfdir}`
7801 datadir=`eval echo ${datadir}`
7802 localedir=`eval echo ${datadir}/locale`
7803 cat >>confdefs.h <<_ACEOF
7804 #define LOCALEDIR "$localedir"
7807 cat >>confdefs.h <<_ACEOF
7808 #define SYSCONFDIR "$sysconfdir"
7812 # -------------------------------------------------------------------------
7813 # If the user has not set --exec-prefix, we default to ${prefix}
7814 # -------------------------------------------------------------------------
7815 if test x${exec_prefix} = xNONE ; then
7816 exec_prefix=${prefix}
7819 # ------------------------------------------------------------------
7820 # If the user has not set --sbindir, we set our default as /sbin
7821 # ------------------------------------------------------------------
7822 if test x$sbindir = x'${exec_prefix}/sbin' ; then
7823 sbindir=${exec_prefix}/sbin
7825 sbindir=`eval echo ${sbindir}`
7827 # -------------------------------------------------------------------------
7828 # If the user has not set --mandir, we default to /usr/share/man
7829 # -------------------------------------------------------------------------
7830 if test x$mandir = x'${prefix}/man' ; then
7831 mandir=/usr/share/man
7835 # ------------------------------------------------------------------
7836 # All list of languages for which a translation exist. Each
7837 # language is separated by a space.
7838 # ------------------------------------------------------------------
7841 for ac_prog in msgfmt
7843 # Extract the first word of "$ac_prog", so it can be a program name with args.
7844 set dummy $ac_prog; ac_word=$2
7845 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7846 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7847 if test "${ac_cv_path_MSGFMT+set}" = set; then
7848 echo $ECHO_N "(cached) $ECHO_C" >&6
7852 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
7855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7859 test -z "$as_dir" && as_dir=.
7860 for ac_exec_ext in '' $ac_executable_extensions; do
7861 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7862 ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
7863 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7873 MSGFMT=$ac_cv_path_MSGFMT
7874 if test -n "$MSGFMT"; then
7875 { echo "$as_me:$LINENO: result: $MSGFMT" >&5
7876 echo "${ECHO_T}$MSGFMT" >&6; }
7878 { echo "$as_me:$LINENO: result: no" >&5
7879 echo "${ECHO_T}no" >&6; }
7883 test -n "$MSGFMT" && break
7885 test -n "$MSGFMT" || MSGFMT="no"
7887 if test "$MSGFMT" = "no"
7889 echo 'msgfmt program not found, disabling NLS !'
7891 USE_INCLUDED_LIBINTL=no
7894 { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2 or newer" >&5
7895 echo $ECHO_N "checking whether we are using the GNU C Library 2 or newer... $ECHO_C" >&6; }
7896 if test "${ac_cv_gnu_library_2+set}" = set; then
7897 echo $ECHO_N "(cached) $ECHO_C" >&6
7899 cat >conftest.$ac_ext <<_ACEOF
7902 cat confdefs.h >>conftest.$ac_ext
7903 cat >>conftest.$ac_ext <<_ACEOF
7904 /* end confdefs.h. */
7906 #include <features.h>
7907 #ifdef __GNU_LIBRARY__
7908 #if (__GLIBC__ >= 2)
7914 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7915 $EGREP "Lucky GNU user" >/dev/null 2>&1; then
7916 ac_cv_gnu_library_2=yes
7918 ac_cv_gnu_library_2=no
7925 { echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2" >&5
7926 echo "${ECHO_T}$ac_cv_gnu_library_2" >&6; }
7928 GLIBC2="$ac_cv_gnu_library_2"
7932 { echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
7933 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6; }
7934 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
7935 echo $ECHO_N "(cached) $ECHO_C" >&6
7937 ac_check_lib_save_LIBS=$LIBS
7938 LIBS="-lcposix $LIBS"
7939 cat >conftest.$ac_ext <<_ACEOF
7942 cat confdefs.h >>conftest.$ac_ext
7943 cat >>conftest.$ac_ext <<_ACEOF
7944 /* end confdefs.h. */
7946 /* Override any GCC internal prototype to avoid an error.
7947 Use char because int might match the return type of a GCC
7948 builtin and then its argument prototype would still apply. */
7961 rm -f conftest.$ac_objext conftest$ac_exeext
7962 if { (ac_try="$ac_link"
7964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7965 *) ac_try_echo=$ac_try;;
7967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7968 (eval "$ac_link") 2>conftest.er1
7970 grep -v '^ *+' conftest.er1 >conftest.err
7972 cat conftest.err >&5
7973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7974 (exit $ac_status); } &&
7975 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7976 { (case "(($ac_try" in
7977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7978 *) ac_try_echo=$ac_try;;
7980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7981 (eval "$ac_try") 2>&5
7983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7984 (exit $ac_status); }; } &&
7985 { ac_try='test -s conftest$ac_exeext'
7986 { (case "(($ac_try" in
7987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7988 *) ac_try_echo=$ac_try;;
7990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7991 (eval "$ac_try") 2>&5
7993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7994 (exit $ac_status); }; }; then
7995 ac_cv_lib_cposix_strerror=yes
7997 echo "$as_me: failed program was:" >&5
7998 sed 's/^/| /' conftest.$ac_ext >&5
8000 ac_cv_lib_cposix_strerror=no
8003 rm -f core conftest.err conftest.$ac_objext \
8004 conftest$ac_exeext conftest.$ac_ext
8005 LIBS=$ac_check_lib_save_LIBS
8007 { echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
8008 echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6; }
8009 if test $ac_cv_lib_cposix_strerror = yes; then
8010 LIBS="$LIBS -lcposix"
8015 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
8016 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
8017 if test "${ac_cv_header_stdc+set}" = set; then
8018 echo $ECHO_N "(cached) $ECHO_C" >&6
8020 cat >conftest.$ac_ext <<_ACEOF
8023 cat confdefs.h >>conftest.$ac_ext
8024 cat >>conftest.$ac_ext <<_ACEOF
8025 /* end confdefs.h. */
8039 rm -f conftest.$ac_objext
8040 if { (ac_try="$ac_compile"
8042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8043 *) ac_try_echo=$ac_try;;
8045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8046 (eval "$ac_compile") 2>conftest.er1
8048 grep -v '^ *+' conftest.er1 >conftest.err
8050 cat conftest.err >&5
8051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8052 (exit $ac_status); } &&
8053 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8054 { (case "(($ac_try" in
8055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8056 *) ac_try_echo=$ac_try;;
8058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8059 (eval "$ac_try") 2>&5
8061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8062 (exit $ac_status); }; } &&
8063 { ac_try='test -s conftest.$ac_objext'
8064 { (case "(($ac_try" in
8065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8066 *) ac_try_echo=$ac_try;;
8068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8069 (eval "$ac_try") 2>&5
8071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8072 (exit $ac_status); }; }; then
8073 ac_cv_header_stdc=yes
8075 echo "$as_me: failed program was:" >&5
8076 sed 's/^/| /' conftest.$ac_ext >&5
8078 ac_cv_header_stdc=no
8081 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8083 if test $ac_cv_header_stdc = yes; then
8084 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8085 cat >conftest.$ac_ext <<_ACEOF
8088 cat confdefs.h >>conftest.$ac_ext
8089 cat >>conftest.$ac_ext <<_ACEOF
8090 /* end confdefs.h. */
8094 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8095 $EGREP "memchr" >/dev/null 2>&1; then
8098 ac_cv_header_stdc=no
8104 if test $ac_cv_header_stdc = yes; then
8105 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8106 cat >conftest.$ac_ext <<_ACEOF
8109 cat confdefs.h >>conftest.$ac_ext
8110 cat >>conftest.$ac_ext <<_ACEOF
8111 /* end confdefs.h. */
8115 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8116 $EGREP "free" >/dev/null 2>&1; then
8119 ac_cv_header_stdc=no
8125 if test $ac_cv_header_stdc = yes; then
8126 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8127 if test "$cross_compiling" = yes; then
8130 cat >conftest.$ac_ext <<_ACEOF
8133 cat confdefs.h >>conftest.$ac_ext
8134 cat >>conftest.$ac_ext <<_ACEOF
8135 /* end confdefs.h. */
8138 #if ((' ' & 0x0FF) == 0x020)
8139 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8140 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8142 # define ISLOWER(c) \
8143 (('a' <= (c) && (c) <= 'i') \
8144 || ('j' <= (c) && (c) <= 'r') \
8145 || ('s' <= (c) && (c) <= 'z'))
8146 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8149 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8154 for (i = 0; i < 256; i++)
8155 if (XOR (islower (i), ISLOWER (i))
8156 || toupper (i) != TOUPPER (i))
8161 rm -f conftest$ac_exeext
8162 if { (ac_try="$ac_link"
8164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8165 *) ac_try_echo=$ac_try;;
8167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8168 (eval "$ac_link") 2>&5
8170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8171 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8172 { (case "(($ac_try" in
8173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8174 *) ac_try_echo=$ac_try;;
8176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8177 (eval "$ac_try") 2>&5
8179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8180 (exit $ac_status); }; }; then
8183 echo "$as_me: program exited with status $ac_status" >&5
8184 echo "$as_me: failed program was:" >&5
8185 sed 's/^/| /' conftest.$ac_ext >&5
8188 ac_cv_header_stdc=no
8190 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8196 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8197 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
8198 if test $ac_cv_header_stdc = yes; then
8200 cat >>confdefs.h <<\_ACEOF
8201 #define STDC_HEADERS 1
8206 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8207 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8208 if test "${ac_cv_c_const+set}" = set; then
8209 echo $ECHO_N "(cached) $ECHO_C" >&6
8211 cat >conftest.$ac_ext <<_ACEOF
8214 cat confdefs.h >>conftest.$ac_ext
8215 cat >>conftest.$ac_ext <<_ACEOF
8216 /* end confdefs.h. */
8221 /* FIXME: Include the comments suggested by Paul. */
8223 /* Ultrix mips cc rejects this. */
8224 typedef int charset[2];
8226 /* SunOS 4.1.1 cc rejects this. */
8227 char const *const *ccp;
8229 /* NEC SVR4.0.2 mips cc rejects this. */
8230 struct point {int x, y;};
8231 static struct point const zero = {0,0};
8232 /* AIX XL C 1.02.0.0 rejects this.
8233 It does not let you subtract one const X* pointer from another in
8234 an arm of an if-expression whose if-part is not a constant
8236 const char *g = "string";
8237 ccp = &g + (g ? g-g : 0);
8238 /* HPUX 7.0 cc rejects these. */
8241 ccp = (char const *const *) p;
8242 { /* SCO 3.2v4 cc rejects this. */
8244 char const *s = 0 ? (char *) 0 : (char const *) 0;
8249 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8251 const int *foo = &x[0];
8254 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8255 typedef const int *iptr;
8259 { /* AIX XL C 1.02.0.0 rejects this saying
8260 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8261 struct s { int j; const int *ap[3]; };
8262 struct s *b; b->j = 5;
8264 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8268 return !x[0] && !zero.x;
8275 rm -f conftest.$ac_objext
8276 if { (ac_try="$ac_compile"
8278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8279 *) ac_try_echo=$ac_try;;
8281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8282 (eval "$ac_compile") 2>conftest.er1
8284 grep -v '^ *+' conftest.er1 >conftest.err
8286 cat conftest.err >&5
8287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8288 (exit $ac_status); } &&
8289 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8290 { (case "(($ac_try" in
8291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8292 *) ac_try_echo=$ac_try;;
8294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8295 (eval "$ac_try") 2>&5
8297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8298 (exit $ac_status); }; } &&
8299 { ac_try='test -s conftest.$ac_objext'
8300 { (case "(($ac_try" in
8301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8302 *) ac_try_echo=$ac_try;;
8304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8305 (eval "$ac_try") 2>&5
8307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8308 (exit $ac_status); }; }; then
8311 echo "$as_me: failed program was:" >&5
8312 sed 's/^/| /' conftest.$ac_ext >&5
8317 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8319 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8320 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8321 if test $ac_cv_c_const = no; then
8323 cat >>confdefs.h <<\_ACEOF
8330 { echo "$as_me:$LINENO: checking for signed" >&5
8331 echo $ECHO_N "checking for signed... $ECHO_C" >&6; }
8332 if test "${bh_cv_c_signed+set}" = set; then
8333 echo $ECHO_N "(cached) $ECHO_C" >&6
8335 cat >conftest.$ac_ext <<_ACEOF
8338 cat confdefs.h >>conftest.$ac_ext
8339 cat >>conftest.$ac_ext <<_ACEOF
8340 /* end confdefs.h. */
8350 rm -f conftest.$ac_objext
8351 if { (ac_try="$ac_compile"
8353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8354 *) ac_try_echo=$ac_try;;
8356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8357 (eval "$ac_compile") 2>conftest.er1
8359 grep -v '^ *+' conftest.er1 >conftest.err
8361 cat conftest.err >&5
8362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8363 (exit $ac_status); } &&
8364 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8365 { (case "(($ac_try" in
8366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8367 *) ac_try_echo=$ac_try;;
8369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8370 (eval "$ac_try") 2>&5
8372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8373 (exit $ac_status); }; } &&
8374 { ac_try='test -s conftest.$ac_objext'
8375 { (case "(($ac_try" in
8376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8377 *) ac_try_echo=$ac_try;;
8379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8380 (eval "$ac_try") 2>&5
8382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8383 (exit $ac_status); }; }; then
8386 echo "$as_me: failed program was:" >&5
8387 sed 's/^/| /' conftest.$ac_ext >&5
8392 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8394 { echo "$as_me:$LINENO: result: $bh_cv_c_signed" >&5
8395 echo "${ECHO_T}$bh_cv_c_signed" >&6; }
8396 if test $bh_cv_c_signed = no; then
8398 cat >>confdefs.h <<\_ACEOF
8404 { echo "$as_me:$LINENO: checking for inline" >&5
8405 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
8406 if test "${ac_cv_c_inline+set}" = set; then
8407 echo $ECHO_N "(cached) $ECHO_C" >&6
8410 for ac_kw in inline __inline__ __inline; do
8411 cat >conftest.$ac_ext <<_ACEOF
8414 cat confdefs.h >>conftest.$ac_ext
8415 cat >>conftest.$ac_ext <<_ACEOF
8416 /* end confdefs.h. */
8419 static $ac_kw foo_t static_foo () {return 0; }
8420 $ac_kw foo_t foo () {return 0; }
8424 rm -f conftest.$ac_objext
8425 if { (ac_try="$ac_compile"
8427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8428 *) ac_try_echo=$ac_try;;
8430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8431 (eval "$ac_compile") 2>conftest.er1
8433 grep -v '^ *+' conftest.er1 >conftest.err
8435 cat conftest.err >&5
8436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8437 (exit $ac_status); } &&
8438 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8439 { (case "(($ac_try" in
8440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8441 *) ac_try_echo=$ac_try;;
8443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8444 (eval "$ac_try") 2>&5
8446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8447 (exit $ac_status); }; } &&
8448 { ac_try='test -s conftest.$ac_objext'
8449 { (case "(($ac_try" in
8450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8451 *) ac_try_echo=$ac_try;;
8453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8454 (eval "$ac_try") 2>&5
8456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8457 (exit $ac_status); }; }; then
8458 ac_cv_c_inline=$ac_kw
8460 echo "$as_me: failed program was:" >&5
8461 sed 's/^/| /' conftest.$ac_ext >&5
8466 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8467 test "$ac_cv_c_inline" != no && break
8471 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
8472 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
8475 case $ac_cv_c_inline in
8478 case $ac_cv_c_inline in
8480 *) ac_val=$ac_cv_c_inline;;
8482 cat >>confdefs.h <<_ACEOF
8484 #define inline $ac_val
8490 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8500 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8501 inttypes.h stdint.h unistd.h
8503 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8504 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8505 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8506 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8507 echo $ECHO_N "(cached) $ECHO_C" >&6
8509 cat >conftest.$ac_ext <<_ACEOF
8512 cat confdefs.h >>conftest.$ac_ext
8513 cat >>conftest.$ac_ext <<_ACEOF
8514 /* end confdefs.h. */
8515 $ac_includes_default
8517 #include <$ac_header>
8519 rm -f conftest.$ac_objext
8520 if { (ac_try="$ac_compile"
8522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8523 *) ac_try_echo=$ac_try;;
8525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8526 (eval "$ac_compile") 2>conftest.er1
8528 grep -v '^ *+' conftest.er1 >conftest.err
8530 cat conftest.err >&5
8531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8532 (exit $ac_status); } &&
8533 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8534 { (case "(($ac_try" in
8535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8536 *) ac_try_echo=$ac_try;;
8538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8539 (eval "$ac_try") 2>&5
8541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8542 (exit $ac_status); }; } &&
8543 { ac_try='test -s conftest.$ac_objext'
8544 { (case "(($ac_try" in
8545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8546 *) ac_try_echo=$ac_try;;
8548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8549 (eval "$ac_try") 2>&5
8551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8552 (exit $ac_status); }; }; then
8553 eval "$as_ac_Header=yes"
8555 echo "$as_me: failed program was:" >&5
8556 sed 's/^/| /' conftest.$ac_ext >&5
8558 eval "$as_ac_Header=no"
8561 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8563 ac_res=`eval echo '${'$as_ac_Header'}'`
8564 { echo "$as_me:$LINENO: result: $ac_res" >&5
8565 echo "${ECHO_T}$ac_res" >&6; }
8566 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8567 cat >>confdefs.h <<_ACEOF
8568 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8576 { echo "$as_me:$LINENO: checking for off_t" >&5
8577 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
8578 if test "${ac_cv_type_off_t+set}" = set; then
8579 echo $ECHO_N "(cached) $ECHO_C" >&6
8581 cat >conftest.$ac_ext <<_ACEOF
8584 cat confdefs.h >>conftest.$ac_ext
8585 cat >>conftest.$ac_ext <<_ACEOF
8586 /* end confdefs.h. */
8587 $ac_includes_default
8588 typedef off_t ac__type_new_;
8592 if ((ac__type_new_ *) 0)
8594 if (sizeof (ac__type_new_))
8600 rm -f conftest.$ac_objext
8601 if { (ac_try="$ac_compile"
8603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8604 *) ac_try_echo=$ac_try;;
8606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8607 (eval "$ac_compile") 2>conftest.er1
8609 grep -v '^ *+' conftest.er1 >conftest.err
8611 cat conftest.err >&5
8612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8613 (exit $ac_status); } &&
8614 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8615 { (case "(($ac_try" in
8616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8617 *) ac_try_echo=$ac_try;;
8619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8620 (eval "$ac_try") 2>&5
8622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8623 (exit $ac_status); }; } &&
8624 { ac_try='test -s conftest.$ac_objext'
8625 { (case "(($ac_try" in
8626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8627 *) ac_try_echo=$ac_try;;
8629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8630 (eval "$ac_try") 2>&5
8632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8633 (exit $ac_status); }; }; then
8634 ac_cv_type_off_t=yes
8636 echo "$as_me: failed program was:" >&5
8637 sed 's/^/| /' conftest.$ac_ext >&5
8642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8644 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
8645 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
8646 if test $ac_cv_type_off_t = yes; then
8650 cat >>confdefs.h <<_ACEOF
8651 #define off_t long int
8656 { echo "$as_me:$LINENO: checking for size_t" >&5
8657 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
8658 if test "${ac_cv_type_size_t+set}" = set; then
8659 echo $ECHO_N "(cached) $ECHO_C" >&6
8661 cat >conftest.$ac_ext <<_ACEOF
8664 cat confdefs.h >>conftest.$ac_ext
8665 cat >>conftest.$ac_ext <<_ACEOF
8666 /* end confdefs.h. */
8667 $ac_includes_default
8668 typedef size_t ac__type_new_;
8672 if ((ac__type_new_ *) 0)
8674 if (sizeof (ac__type_new_))
8680 rm -f conftest.$ac_objext
8681 if { (ac_try="$ac_compile"
8683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8684 *) ac_try_echo=$ac_try;;
8686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8687 (eval "$ac_compile") 2>conftest.er1
8689 grep -v '^ *+' conftest.er1 >conftest.err
8691 cat conftest.err >&5
8692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8693 (exit $ac_status); } &&
8694 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8695 { (case "(($ac_try" in
8696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8697 *) ac_try_echo=$ac_try;;
8699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8700 (eval "$ac_try") 2>&5
8702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8703 (exit $ac_status); }; } &&
8704 { ac_try='test -s conftest.$ac_objext'
8705 { (case "(($ac_try" in
8706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8707 *) ac_try_echo=$ac_try;;
8709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8710 (eval "$ac_try") 2>&5
8712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8713 (exit $ac_status); }; }; then
8714 ac_cv_type_size_t=yes
8716 echo "$as_me: failed program was:" >&5
8717 sed 's/^/| /' conftest.$ac_ext >&5
8719 ac_cv_type_size_t=no
8722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8724 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
8725 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
8726 if test $ac_cv_type_size_t = yes; then
8730 cat >>confdefs.h <<_ACEOF
8731 #define size_t unsigned int
8737 { echo "$as_me:$LINENO: checking for long long" >&5
8738 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
8739 if test "${ac_cv_type_long_long+set}" = set; then
8740 echo $ECHO_N "(cached) $ECHO_C" >&6
8742 cat >conftest.$ac_ext <<_ACEOF
8745 cat confdefs.h >>conftest.$ac_ext
8746 cat >>conftest.$ac_ext <<_ACEOF
8747 /* end confdefs.h. */
8748 long long ll = 1LL; int i = 63;
8752 long long llmax = (long long) -1;
8753 return ll << i | ll >> i | llmax / ll | llmax % ll;
8758 rm -f conftest.$ac_objext conftest$ac_exeext
8759 if { (ac_try="$ac_link"
8761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8762 *) ac_try_echo=$ac_try;;
8764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8765 (eval "$ac_link") 2>conftest.er1
8767 grep -v '^ *+' conftest.er1 >conftest.err
8769 cat conftest.err >&5
8770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8771 (exit $ac_status); } &&
8772 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8773 { (case "(($ac_try" in
8774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8775 *) ac_try_echo=$ac_try;;
8777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8778 (eval "$ac_try") 2>&5
8780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8781 (exit $ac_status); }; } &&
8782 { ac_try='test -s conftest$ac_exeext'
8783 { (case "(($ac_try" in
8784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8785 *) ac_try_echo=$ac_try;;
8787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8788 (eval "$ac_try") 2>&5
8790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8791 (exit $ac_status); }; }; then
8792 ac_cv_type_long_long=yes
8794 echo "$as_me: failed program was:" >&5
8795 sed 's/^/| /' conftest.$ac_ext >&5
8797 ac_cv_type_long_long=no
8800 rm -f core conftest.err conftest.$ac_objext \
8801 conftest$ac_exeext conftest.$ac_ext
8803 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
8804 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
8805 if test $ac_cv_type_long_long = yes; then
8807 cat >>confdefs.h <<\_ACEOF
8808 #define HAVE_LONG_LONG 1
8814 { echo "$as_me:$LINENO: checking for long double" >&5
8815 echo $ECHO_N "checking for long double... $ECHO_C" >&6; }
8816 if test "${gt_cv_c_long_double+set}" = set; then
8817 echo $ECHO_N "(cached) $ECHO_C" >&6
8819 if test "$GCC" = yes; then
8820 gt_cv_c_long_double=yes
8822 cat >conftest.$ac_ext <<_ACEOF
8825 cat confdefs.h >>conftest.$ac_ext
8826 cat >>conftest.$ac_ext <<_ACEOF
8827 /* end confdefs.h. */
8829 /* The Stardent Vistra knows sizeof(long double), but does not support it. */
8830 long double foo = 0.0;
8831 /* On Ultrix 4.3 cc, long double is 4 and double is 8. */
8832 int array [2*(sizeof(long double) >= sizeof(double)) - 1];
8842 rm -f conftest.$ac_objext
8843 if { (ac_try="$ac_compile"
8845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8846 *) ac_try_echo=$ac_try;;
8848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8849 (eval "$ac_compile") 2>conftest.er1
8851 grep -v '^ *+' conftest.er1 >conftest.err
8853 cat conftest.err >&5
8854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8855 (exit $ac_status); } &&
8856 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8857 { (case "(($ac_try" in
8858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8859 *) ac_try_echo=$ac_try;;
8861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8862 (eval "$ac_try") 2>&5
8864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8865 (exit $ac_status); }; } &&
8866 { ac_try='test -s conftest.$ac_objext'
8867 { (case "(($ac_try" in
8868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8869 *) ac_try_echo=$ac_try;;
8871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8872 (eval "$ac_try") 2>&5
8874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8875 (exit $ac_status); }; }; then
8876 gt_cv_c_long_double=yes
8878 echo "$as_me: failed program was:" >&5
8879 sed 's/^/| /' conftest.$ac_ext >&5
8881 gt_cv_c_long_double=no
8884 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8887 { echo "$as_me:$LINENO: result: $gt_cv_c_long_double" >&5
8888 echo "${ECHO_T}$gt_cv_c_long_double" >&6; }
8889 if test $gt_cv_c_long_double = yes; then
8891 cat >>confdefs.h <<\_ACEOF
8892 #define HAVE_LONG_DOUBLE 1
8898 { echo "$as_me:$LINENO: checking for wchar_t" >&5
8899 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
8900 if test "${gt_cv_c_wchar_t+set}" = set; then
8901 echo $ECHO_N "(cached) $ECHO_C" >&6
8903 cat >conftest.$ac_ext <<_ACEOF
8906 cat confdefs.h >>conftest.$ac_ext
8907 cat >>conftest.$ac_ext <<_ACEOF
8908 /* end confdefs.h. */
8910 wchar_t foo = (wchar_t)'\0';
8919 rm -f conftest.$ac_objext
8920 if { (ac_try="$ac_compile"
8922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8923 *) ac_try_echo=$ac_try;;
8925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8926 (eval "$ac_compile") 2>conftest.er1
8928 grep -v '^ *+' conftest.er1 >conftest.err
8930 cat conftest.err >&5
8931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8932 (exit $ac_status); } &&
8933 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8934 { (case "(($ac_try" in
8935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8936 *) ac_try_echo=$ac_try;;
8938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8939 (eval "$ac_try") 2>&5
8941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8942 (exit $ac_status); }; } &&
8943 { ac_try='test -s conftest.$ac_objext'
8944 { (case "(($ac_try" in
8945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8946 *) ac_try_echo=$ac_try;;
8948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8949 (eval "$ac_try") 2>&5
8951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8952 (exit $ac_status); }; }; then
8955 echo "$as_me: failed program was:" >&5
8956 sed 's/^/| /' conftest.$ac_ext >&5
8961 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8963 { echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
8964 echo "${ECHO_T}$gt_cv_c_wchar_t" >&6; }
8965 if test $gt_cv_c_wchar_t = yes; then
8967 cat >>confdefs.h <<\_ACEOF
8968 #define HAVE_WCHAR_T 1
8974 { echo "$as_me:$LINENO: checking for wint_t" >&5
8975 echo $ECHO_N "checking for wint_t... $ECHO_C" >&6; }
8976 if test "${gt_cv_c_wint_t+set}" = set; then
8977 echo $ECHO_N "(cached) $ECHO_C" >&6
8979 cat >conftest.$ac_ext <<_ACEOF
8982 cat confdefs.h >>conftest.$ac_ext
8983 cat >>conftest.$ac_ext <<_ACEOF
8984 /* end confdefs.h. */
8986 wint_t foo = (wchar_t)'\0';
8995 rm -f conftest.$ac_objext
8996 if { (ac_try="$ac_compile"
8998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8999 *) ac_try_echo=$ac_try;;
9001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9002 (eval "$ac_compile") 2>conftest.er1
9004 grep -v '^ *+' conftest.er1 >conftest.err
9006 cat conftest.err >&5
9007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9008 (exit $ac_status); } &&
9009 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9010 { (case "(($ac_try" in
9011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9012 *) ac_try_echo=$ac_try;;
9014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9015 (eval "$ac_try") 2>&5
9017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9018 (exit $ac_status); }; } &&
9019 { ac_try='test -s conftest.$ac_objext'
9020 { (case "(($ac_try" in
9021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9022 *) ac_try_echo=$ac_try;;
9024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9025 (eval "$ac_try") 2>&5
9027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9028 (exit $ac_status); }; }; then
9031 echo "$as_me: failed program was:" >&5
9032 sed 's/^/| /' conftest.$ac_ext >&5
9037 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9039 { echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
9040 echo "${ECHO_T}$gt_cv_c_wint_t" >&6; }
9041 if test $gt_cv_c_wint_t = yes; then
9043 cat >>confdefs.h <<\_ACEOF
9044 #define HAVE_WINT_T 1
9050 { echo "$as_me:$LINENO: checking for inttypes.h" >&5
9051 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
9052 if test "${gl_cv_header_inttypes_h+set}" = set; then
9053 echo $ECHO_N "(cached) $ECHO_C" >&6
9055 cat >conftest.$ac_ext <<_ACEOF
9058 cat confdefs.h >>conftest.$ac_ext
9059 cat >>conftest.$ac_ext <<_ACEOF
9060 /* end confdefs.h. */
9061 #include <sys/types.h>
9062 #include <inttypes.h>
9066 uintmax_t i = (uintmax_t) -1;
9071 rm -f conftest.$ac_objext
9072 if { (ac_try="$ac_compile"
9074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9075 *) ac_try_echo=$ac_try;;
9077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9078 (eval "$ac_compile") 2>conftest.er1
9080 grep -v '^ *+' conftest.er1 >conftest.err
9082 cat conftest.err >&5
9083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9084 (exit $ac_status); } &&
9085 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9086 { (case "(($ac_try" in
9087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9088 *) ac_try_echo=$ac_try;;
9090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9091 (eval "$ac_try") 2>&5
9093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9094 (exit $ac_status); }; } &&
9095 { ac_try='test -s conftest.$ac_objext'
9096 { (case "(($ac_try" in
9097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9098 *) ac_try_echo=$ac_try;;
9100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9101 (eval "$ac_try") 2>&5
9103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9104 (exit $ac_status); }; }; then
9105 gl_cv_header_inttypes_h=yes
9107 echo "$as_me: failed program was:" >&5
9108 sed 's/^/| /' conftest.$ac_ext >&5
9110 gl_cv_header_inttypes_h=no
9113 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9115 { echo "$as_me:$LINENO: result: $gl_cv_header_inttypes_h" >&5
9116 echo "${ECHO_T}$gl_cv_header_inttypes_h" >&6; }
9117 if test $gl_cv_header_inttypes_h = yes; then
9119 cat >>confdefs.h <<_ACEOF
9120 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
9126 { echo "$as_me:$LINENO: checking for stdint.h" >&5
9127 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6; }
9128 if test "${gl_cv_header_stdint_h+set}" = set; then
9129 echo $ECHO_N "(cached) $ECHO_C" >&6
9131 cat >conftest.$ac_ext <<_ACEOF
9134 cat confdefs.h >>conftest.$ac_ext
9135 cat >>conftest.$ac_ext <<_ACEOF
9136 /* end confdefs.h. */
9137 #include <sys/types.h>
9142 uintmax_t i = (uintmax_t) -1;
9147 rm -f conftest.$ac_objext
9148 if { (ac_try="$ac_compile"
9150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9151 *) ac_try_echo=$ac_try;;
9153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9154 (eval "$ac_compile") 2>conftest.er1
9156 grep -v '^ *+' conftest.er1 >conftest.err
9158 cat conftest.err >&5
9159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9160 (exit $ac_status); } &&
9161 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9162 { (case "(($ac_try" in
9163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9164 *) ac_try_echo=$ac_try;;
9166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9167 (eval "$ac_try") 2>&5
9169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9170 (exit $ac_status); }; } &&
9171 { ac_try='test -s conftest.$ac_objext'
9172 { (case "(($ac_try" in
9173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9174 *) ac_try_echo=$ac_try;;
9176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9177 (eval "$ac_try") 2>&5
9179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9180 (exit $ac_status); }; }; then
9181 gl_cv_header_stdint_h=yes
9183 echo "$as_me: failed program was:" >&5
9184 sed 's/^/| /' conftest.$ac_ext >&5
9186 gl_cv_header_stdint_h=no
9189 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9191 { echo "$as_me:$LINENO: result: $gl_cv_header_stdint_h" >&5
9192 echo "${ECHO_T}$gl_cv_header_stdint_h" >&6; }
9193 if test $gl_cv_header_stdint_h = yes; then
9195 cat >>confdefs.h <<_ACEOF
9196 #define HAVE_STDINT_H_WITH_UINTMAX 1
9204 { echo "$as_me:$LINENO: checking for intmax_t" >&5
9205 echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6; }
9206 if test "${gt_cv_c_intmax_t+set}" = set; then
9207 echo $ECHO_N "(cached) $ECHO_C" >&6
9209 cat >conftest.$ac_ext <<_ACEOF
9212 cat confdefs.h >>conftest.$ac_ext
9213 cat >>conftest.$ac_ext <<_ACEOF
9214 /* end confdefs.h. */
9218 #if HAVE_STDINT_H_WITH_UINTMAX
9221 #if HAVE_INTTYPES_H_WITH_UINTMAX
9222 #include <inttypes.h>
9233 rm -f conftest.$ac_objext
9234 if { (ac_try="$ac_compile"
9236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9237 *) ac_try_echo=$ac_try;;
9239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9240 (eval "$ac_compile") 2>conftest.er1
9242 grep -v '^ *+' conftest.er1 >conftest.err
9244 cat conftest.err >&5
9245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9246 (exit $ac_status); } &&
9247 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9248 { (case "(($ac_try" in
9249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9250 *) ac_try_echo=$ac_try;;
9252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9253 (eval "$ac_try") 2>&5
9255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9256 (exit $ac_status); }; } &&
9257 { ac_try='test -s conftest.$ac_objext'
9258 { (case "(($ac_try" in
9259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9260 *) ac_try_echo=$ac_try;;
9262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9263 (eval "$ac_try") 2>&5
9265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9266 (exit $ac_status); }; }; then
9267 gt_cv_c_intmax_t=yes
9269 echo "$as_me: failed program was:" >&5
9270 sed 's/^/| /' conftest.$ac_ext >&5
9275 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9277 { echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
9278 echo "${ECHO_T}$gt_cv_c_intmax_t" >&6; }
9279 if test $gt_cv_c_intmax_t = yes; then
9281 cat >>confdefs.h <<\_ACEOF
9282 #define HAVE_INTMAX_T 1
9289 { echo "$as_me:$LINENO: checking whether printf() supports POSIX/XSI format strings" >&5
9290 echo $ECHO_N "checking whether printf() supports POSIX/XSI format strings... $ECHO_C" >&6; }
9291 if test "${gt_cv_func_printf_posix+set}" = set; then
9292 echo $ECHO_N "(cached) $ECHO_C" >&6
9295 if test "$cross_compiling" = yes; then
9297 cat >conftest.$ac_ext <<_ACEOF
9300 cat confdefs.h >>conftest.$ac_ext
9301 cat >>conftest.$ac_ext <<_ACEOF
9302 /* end confdefs.h. */
9304 #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
9309 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9310 $EGREP "notposix" >/dev/null 2>&1; then
9311 gt_cv_func_printf_posix="guessing no"
9313 gt_cv_func_printf_posix="guessing yes"
9319 cat >conftest.$ac_ext <<_ACEOF
9322 cat confdefs.h >>conftest.$ac_ext
9323 cat >>conftest.$ac_ext <<_ACEOF
9324 /* end confdefs.h. */
9328 /* The string "%2$d %1$d", with dollar characters protected from the shell's
9329 dollar expansion (possibly an autoconf bug). */
9330 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
9331 static char buf[100];
9334 sprintf (buf, format, 33, 55);
9335 return (strcmp (buf, "55 33") != 0);
9338 rm -f conftest$ac_exeext
9339 if { (ac_try="$ac_link"
9341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9342 *) ac_try_echo=$ac_try;;
9344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9345 (eval "$ac_link") 2>&5
9347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9348 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9349 { (case "(($ac_try" in
9350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9351 *) ac_try_echo=$ac_try;;
9353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9354 (eval "$ac_try") 2>&5
9356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9357 (exit $ac_status); }; }; then
9358 gt_cv_func_printf_posix=yes
9360 echo "$as_me: program exited with status $ac_status" >&5
9361 echo "$as_me: failed program was:" >&5
9362 sed 's/^/| /' conftest.$ac_ext >&5
9365 gt_cv_func_printf_posix=no
9367 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9373 { echo "$as_me:$LINENO: result: $gt_cv_func_printf_posix" >&5
9374 echo "${ECHO_T}$gt_cv_func_printf_posix" >&6; }
9375 case $gt_cv_func_printf_posix in
9378 cat >>confdefs.h <<\_ACEOF
9379 #define HAVE_POSIX_PRINTF 1
9385 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
9386 # for constant arguments. Useless!
9387 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
9388 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
9389 if test "${ac_cv_working_alloca_h+set}" = set; then
9390 echo $ECHO_N "(cached) $ECHO_C" >&6
9392 cat >conftest.$ac_ext <<_ACEOF
9395 cat confdefs.h >>conftest.$ac_ext
9396 cat >>conftest.$ac_ext <<_ACEOF
9397 /* end confdefs.h. */
9402 char *p = (char *) alloca (2 * sizeof (int));
9408 rm -f conftest.$ac_objext conftest$ac_exeext
9409 if { (ac_try="$ac_link"
9411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9412 *) ac_try_echo=$ac_try;;
9414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9415 (eval "$ac_link") 2>conftest.er1
9417 grep -v '^ *+' conftest.er1 >conftest.err
9419 cat conftest.err >&5
9420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9421 (exit $ac_status); } &&
9422 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9423 { (case "(($ac_try" in
9424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9425 *) ac_try_echo=$ac_try;;
9427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9428 (eval "$ac_try") 2>&5
9430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9431 (exit $ac_status); }; } &&
9432 { ac_try='test -s conftest$ac_exeext'
9433 { (case "(($ac_try" in
9434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9435 *) ac_try_echo=$ac_try;;
9437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9438 (eval "$ac_try") 2>&5
9440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9441 (exit $ac_status); }; }; then
9442 ac_cv_working_alloca_h=yes
9444 echo "$as_me: failed program was:" >&5
9445 sed 's/^/| /' conftest.$ac_ext >&5
9447 ac_cv_working_alloca_h=no
9450 rm -f core conftest.err conftest.$ac_objext \
9451 conftest$ac_exeext conftest.$ac_ext
9453 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
9454 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
9455 if test $ac_cv_working_alloca_h = yes; then
9457 cat >>confdefs.h <<\_ACEOF
9458 #define HAVE_ALLOCA_H 1
9463 { echo "$as_me:$LINENO: checking for alloca" >&5
9464 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
9465 if test "${ac_cv_func_alloca_works+set}" = set; then
9466 echo $ECHO_N "(cached) $ECHO_C" >&6
9468 cat >conftest.$ac_ext <<_ACEOF
9471 cat confdefs.h >>conftest.$ac_ext
9472 cat >>conftest.$ac_ext <<_ACEOF
9473 /* end confdefs.h. */
9475 # define alloca __builtin_alloca
9478 # include <malloc.h>
9479 # define alloca _alloca
9482 # include <alloca.h>
9487 # ifndef alloca /* predefined by HP cc +Olibcalls */
9498 char *p = (char *) alloca (1);
9504 rm -f conftest.$ac_objext conftest$ac_exeext
9505 if { (ac_try="$ac_link"
9507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9508 *) ac_try_echo=$ac_try;;
9510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9511 (eval "$ac_link") 2>conftest.er1
9513 grep -v '^ *+' conftest.er1 >conftest.err
9515 cat conftest.err >&5
9516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9517 (exit $ac_status); } &&
9518 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9519 { (case "(($ac_try" in
9520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9521 *) ac_try_echo=$ac_try;;
9523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9524 (eval "$ac_try") 2>&5
9526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9527 (exit $ac_status); }; } &&
9528 { ac_try='test -s conftest$ac_exeext'
9529 { (case "(($ac_try" in
9530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9531 *) ac_try_echo=$ac_try;;
9533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9534 (eval "$ac_try") 2>&5
9536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9537 (exit $ac_status); }; }; then
9538 ac_cv_func_alloca_works=yes
9540 echo "$as_me: failed program was:" >&5
9541 sed 's/^/| /' conftest.$ac_ext >&5
9543 ac_cv_func_alloca_works=no
9546 rm -f core conftest.err conftest.$ac_objext \
9547 conftest$ac_exeext conftest.$ac_ext
9549 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
9550 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
9552 if test $ac_cv_func_alloca_works = yes; then
9554 cat >>confdefs.h <<\_ACEOF
9555 #define HAVE_ALLOCA 1
9559 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
9560 # that cause trouble. Some versions do not even contain alloca or
9561 # contain a buggy version. If you still want to use their alloca,
9562 # use ar to extract alloca.o from them instead of compiling alloca.c.
9564 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
9566 cat >>confdefs.h <<\_ACEOF
9571 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
9572 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
9573 if test "${ac_cv_os_cray+set}" = set; then
9574 echo $ECHO_N "(cached) $ECHO_C" >&6
9576 cat >conftest.$ac_ext <<_ACEOF
9579 cat confdefs.h >>conftest.$ac_ext
9580 cat >>conftest.$ac_ext <<_ACEOF
9581 /* end confdefs.h. */
9582 #if defined CRAY && ! defined CRAY2
9589 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9590 $EGREP "webecray" >/dev/null 2>&1; then
9598 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
9599 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
9600 if test $ac_cv_os_cray = yes; then
9601 for ac_func in _getb67 GETB67 getb67; do
9602 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9603 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9604 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9605 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9606 echo $ECHO_N "(cached) $ECHO_C" >&6
9608 cat >conftest.$ac_ext <<_ACEOF
9611 cat confdefs.h >>conftest.$ac_ext
9612 cat >>conftest.$ac_ext <<_ACEOF
9613 /* end confdefs.h. */
9614 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9615 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9616 #define $ac_func innocuous_$ac_func
9618 /* System header to define __stub macros and hopefully few prototypes,
9619 which can conflict with char $ac_func (); below.
9620 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9621 <limits.h> exists even on freestanding compilers. */
9624 # include <limits.h>
9626 # include <assert.h>
9631 /* Override any GCC internal prototype to avoid an error.
9632 Use char because int might match the return type of a GCC
9633 builtin and then its argument prototype would still apply. */
9638 /* The GNU C library defines this for functions which it implements
9639 to always fail with ENOSYS. Some functions are actually named
9640 something starting with __ and the normal name is an alias. */
9641 #if defined __stub_$ac_func || defined __stub___$ac_func
9653 rm -f conftest.$ac_objext conftest$ac_exeext
9654 if { (ac_try="$ac_link"
9656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9657 *) ac_try_echo=$ac_try;;
9659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9660 (eval "$ac_link") 2>conftest.er1
9662 grep -v '^ *+' conftest.er1 >conftest.err
9664 cat conftest.err >&5
9665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9666 (exit $ac_status); } &&
9667 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9668 { (case "(($ac_try" in
9669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9670 *) ac_try_echo=$ac_try;;
9672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9673 (eval "$ac_try") 2>&5
9675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9676 (exit $ac_status); }; } &&
9677 { ac_try='test -s conftest$ac_exeext'
9678 { (case "(($ac_try" in
9679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9680 *) ac_try_echo=$ac_try;;
9682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9683 (eval "$ac_try") 2>&5
9685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9686 (exit $ac_status); }; }; then
9687 eval "$as_ac_var=yes"
9689 echo "$as_me: failed program was:" >&5
9690 sed 's/^/| /' conftest.$ac_ext >&5
9692 eval "$as_ac_var=no"
9695 rm -f core conftest.err conftest.$ac_objext \
9696 conftest$ac_exeext conftest.$ac_ext
9698 ac_res=`eval echo '${'$as_ac_var'}'`
9699 { echo "$as_me:$LINENO: result: $ac_res" >&5
9700 echo "${ECHO_T}$ac_res" >&6; }
9701 if test `eval echo '${'$as_ac_var'}'` = yes; then
9703 cat >>confdefs.h <<_ACEOF
9704 #define CRAY_STACKSEG_END $ac_func
9713 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
9714 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
9715 if test "${ac_cv_c_stack_direction+set}" = set; then
9716 echo $ECHO_N "(cached) $ECHO_C" >&6
9718 if test "$cross_compiling" = yes; then
9719 ac_cv_c_stack_direction=0
9721 cat >conftest.$ac_ext <<_ACEOF
9724 cat confdefs.h >>conftest.$ac_ext
9725 cat >>conftest.$ac_ext <<_ACEOF
9726 /* end confdefs.h. */
9727 $ac_includes_default
9729 find_stack_direction ()
9731 static char *addr = 0;
9736 return find_stack_direction ();
9739 return (&dummy > addr) ? 1 : -1;
9745 return find_stack_direction () < 0;
9748 rm -f conftest$ac_exeext
9749 if { (ac_try="$ac_link"
9751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9752 *) ac_try_echo=$ac_try;;
9754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9755 (eval "$ac_link") 2>&5
9757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9758 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9759 { (case "(($ac_try" in
9760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9761 *) ac_try_echo=$ac_try;;
9763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9764 (eval "$ac_try") 2>&5
9766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9767 (exit $ac_status); }; }; then
9768 ac_cv_c_stack_direction=1
9770 echo "$as_me: program exited with status $ac_status" >&5
9771 echo "$as_me: failed program was:" >&5
9772 sed 's/^/| /' conftest.$ac_ext >&5
9775 ac_cv_c_stack_direction=-1
9777 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9782 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
9783 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
9785 cat >>confdefs.h <<_ACEOF
9786 #define STACK_DIRECTION $ac_cv_c_stack_direction
9794 for ac_header in stdlib.h unistd.h
9796 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9797 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9798 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9799 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9800 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9801 echo $ECHO_N "(cached) $ECHO_C" >&6
9803 ac_res=`eval echo '${'$as_ac_Header'}'`
9804 { echo "$as_me:$LINENO: result: $ac_res" >&5
9805 echo "${ECHO_T}$ac_res" >&6; }
9807 # Is the header compilable?
9808 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9809 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9810 cat >conftest.$ac_ext <<_ACEOF
9813 cat confdefs.h >>conftest.$ac_ext
9814 cat >>conftest.$ac_ext <<_ACEOF
9815 /* end confdefs.h. */
9816 $ac_includes_default
9817 #include <$ac_header>
9819 rm -f conftest.$ac_objext
9820 if { (ac_try="$ac_compile"
9822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9823 *) ac_try_echo=$ac_try;;
9825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9826 (eval "$ac_compile") 2>conftest.er1
9828 grep -v '^ *+' conftest.er1 >conftest.err
9830 cat conftest.err >&5
9831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9832 (exit $ac_status); } &&
9833 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9834 { (case "(($ac_try" in
9835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9836 *) ac_try_echo=$ac_try;;
9838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9839 (eval "$ac_try") 2>&5
9841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9842 (exit $ac_status); }; } &&
9843 { ac_try='test -s conftest.$ac_objext'
9844 { (case "(($ac_try" in
9845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9846 *) ac_try_echo=$ac_try;;
9848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9849 (eval "$ac_try") 2>&5
9851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9852 (exit $ac_status); }; }; then
9853 ac_header_compiler=yes
9855 echo "$as_me: failed program was:" >&5
9856 sed 's/^/| /' conftest.$ac_ext >&5
9858 ac_header_compiler=no
9861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9862 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9863 echo "${ECHO_T}$ac_header_compiler" >&6; }
9865 # Is the header present?
9866 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9867 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9868 cat >conftest.$ac_ext <<_ACEOF
9871 cat confdefs.h >>conftest.$ac_ext
9872 cat >>conftest.$ac_ext <<_ACEOF
9873 /* end confdefs.h. */
9874 #include <$ac_header>
9876 if { (ac_try="$ac_cpp conftest.$ac_ext"
9878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9879 *) ac_try_echo=$ac_try;;
9881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9882 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9884 grep -v '^ *+' conftest.er1 >conftest.err
9886 cat conftest.err >&5
9887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9888 (exit $ac_status); } >/dev/null; then
9889 if test -s conftest.err; then
9890 ac_cpp_err=$ac_c_preproc_warn_flag
9891 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9898 if test -z "$ac_cpp_err"; then
9899 ac_header_preproc=yes
9901 echo "$as_me: failed program was:" >&5
9902 sed 's/^/| /' conftest.$ac_ext >&5
9904 ac_header_preproc=no
9907 rm -f conftest.err conftest.$ac_ext
9908 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9909 echo "${ECHO_T}$ac_header_preproc" >&6; }
9911 # So? What about this header?
9912 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9914 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9915 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9916 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9917 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9918 ac_header_preproc=yes
9921 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9922 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9923 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9924 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9925 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9926 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9927 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9928 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9929 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9930 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9931 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9932 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9936 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9937 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9938 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9939 echo $ECHO_N "(cached) $ECHO_C" >&6
9941 eval "$as_ac_Header=\$ac_header_preproc"
9943 ac_res=`eval echo '${'$as_ac_Header'}'`
9944 { echo "$as_me:$LINENO: result: $ac_res" >&5
9945 echo "${ECHO_T}$ac_res" >&6; }
9948 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9949 cat >>confdefs.h <<_ACEOF
9950 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9958 for ac_func in getpagesize
9960 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9961 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9962 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9963 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9964 echo $ECHO_N "(cached) $ECHO_C" >&6
9966 cat >conftest.$ac_ext <<_ACEOF
9969 cat confdefs.h >>conftest.$ac_ext
9970 cat >>conftest.$ac_ext <<_ACEOF
9971 /* end confdefs.h. */
9972 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9973 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9974 #define $ac_func innocuous_$ac_func
9976 /* System header to define __stub macros and hopefully few prototypes,
9977 which can conflict with char $ac_func (); below.
9978 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9979 <limits.h> exists even on freestanding compilers. */
9982 # include <limits.h>
9984 # include <assert.h>
9989 /* Override any GCC internal prototype to avoid an error.
9990 Use char because int might match the return type of a GCC
9991 builtin and then its argument prototype would still apply. */
9996 /* The GNU C library defines this for functions which it implements
9997 to always fail with ENOSYS. Some functions are actually named
9998 something starting with __ and the normal name is an alias. */
9999 #if defined __stub_$ac_func || defined __stub___$ac_func
10006 return $ac_func ();
10011 rm -f conftest.$ac_objext conftest$ac_exeext
10012 if { (ac_try="$ac_link"
10013 case "(($ac_try" in
10014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10015 *) ac_try_echo=$ac_try;;
10017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10018 (eval "$ac_link") 2>conftest.er1
10020 grep -v '^ *+' conftest.er1 >conftest.err
10022 cat conftest.err >&5
10023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10024 (exit $ac_status); } &&
10025 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10026 { (case "(($ac_try" in
10027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10028 *) ac_try_echo=$ac_try;;
10030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10031 (eval "$ac_try") 2>&5
10033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10034 (exit $ac_status); }; } &&
10035 { ac_try='test -s conftest$ac_exeext'
10036 { (case "(($ac_try" in
10037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10038 *) ac_try_echo=$ac_try;;
10040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10041 (eval "$ac_try") 2>&5
10043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10044 (exit $ac_status); }; }; then
10045 eval "$as_ac_var=yes"
10047 echo "$as_me: failed program was:" >&5
10048 sed 's/^/| /' conftest.$ac_ext >&5
10050 eval "$as_ac_var=no"
10053 rm -f core conftest.err conftest.$ac_objext \
10054 conftest$ac_exeext conftest.$ac_ext
10056 ac_res=`eval echo '${'$as_ac_var'}'`
10057 { echo "$as_me:$LINENO: result: $ac_res" >&5
10058 echo "${ECHO_T}$ac_res" >&6; }
10059 if test `eval echo '${'$as_ac_var'}'` = yes; then
10060 cat >>confdefs.h <<_ACEOF
10061 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10067 { echo "$as_me:$LINENO: checking for working mmap" >&5
10068 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
10069 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
10070 echo $ECHO_N "(cached) $ECHO_C" >&6
10072 if test "$cross_compiling" = yes; then
10073 ac_cv_func_mmap_fixed_mapped=no
10075 cat >conftest.$ac_ext <<_ACEOF
10078 cat confdefs.h >>conftest.$ac_ext
10079 cat >>conftest.$ac_ext <<_ACEOF
10080 /* end confdefs.h. */
10081 $ac_includes_default
10082 /* malloc might have been renamed as rpl_malloc. */
10085 /* Thanks to Mike Haertel and Jim Avera for this test.
10086 Here is a matrix of mmap possibilities:
10087 mmap private not fixed
10088 mmap private fixed at somewhere currently unmapped
10089 mmap private fixed at somewhere already mapped
10090 mmap shared not fixed
10091 mmap shared fixed at somewhere currently unmapped
10092 mmap shared fixed at somewhere already mapped
10093 For private mappings, we should verify that changes cannot be read()
10094 back from the file, nor mmap's back from the file at a different
10095 address. (There have been systems where private was not correctly
10096 implemented like the infamous i386 svr4.0, and systems where the
10097 VM page cache was not coherent with the file system buffer cache
10098 like early versions of FreeBSD and possibly contemporary NetBSD.)
10099 For shared mappings, we should conversely verify that changes get
10100 propagated back to all the places they're supposed to be.
10102 Grep wants private fixed already mapped.
10103 The main things grep needs to know about mmap are:
10104 * does it exist and is it safe to write into the mmap'd area
10105 * how to use it (BSD variants) */
10108 #include <sys/mman.h>
10110 #if !STDC_HEADERS && !HAVE_STDLIB_H
10114 /* This mess was copied from the GNU getpagesize.h. */
10115 #if !HAVE_GETPAGESIZE
10116 /* Assume that all systems that can run configure have sys/param.h. */
10117 # if !HAVE_SYS_PARAM_H
10118 # define HAVE_SYS_PARAM_H 1
10121 # ifdef _SC_PAGESIZE
10122 # define getpagesize() sysconf(_SC_PAGESIZE)
10123 # else /* no _SC_PAGESIZE */
10124 # if HAVE_SYS_PARAM_H
10125 # include <sys/param.h>
10126 # ifdef EXEC_PAGESIZE
10127 # define getpagesize() EXEC_PAGESIZE
10128 # else /* no EXEC_PAGESIZE */
10130 # define getpagesize() NBPG * CLSIZE
10133 # endif /* no CLSIZE */
10134 # else /* no NBPG */
10136 # define getpagesize() NBPC
10137 # else /* no NBPC */
10139 # define getpagesize() PAGESIZE
10140 # endif /* PAGESIZE */
10141 # endif /* no NBPC */
10142 # endif /* no NBPG */
10143 # endif /* no EXEC_PAGESIZE */
10144 # else /* no HAVE_SYS_PARAM_H */
10145 # define getpagesize() 8192 /* punt totally */
10146 # endif /* no HAVE_SYS_PARAM_H */
10147 # endif /* no _SC_PAGESIZE */
10149 #endif /* no HAVE_GETPAGESIZE */
10154 char *data, *data2, *data3;
10158 pagesize = getpagesize ();
10160 /* First, make a file with some known garbage in it. */
10161 data = (char *) malloc (pagesize);
10164 for (i = 0; i < pagesize; ++i)
10165 *(data + i) = rand ();
10167 fd = creat ("conftest.mmap", 0600);
10170 if (write (fd, data, pagesize) != pagesize)
10174 /* Next, try to mmap the file at a fixed address which already has
10175 something else allocated at it. If we can, also make sure that
10176 we see the same garbage. */
10177 fd = open ("conftest.mmap", O_RDWR);
10180 data2 = (char *) malloc (2 * pagesize);
10183 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
10184 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10185 MAP_PRIVATE | MAP_FIXED, fd, 0L))
10187 for (i = 0; i < pagesize; ++i)
10188 if (*(data + i) != *(data2 + i))
10191 /* Finally, make sure that changes to the mapped area do not
10192 percolate back to the file as seen by read(). (This is a bug on
10193 some variants of i386 svr4.0.) */
10194 for (i = 0; i < pagesize; ++i)
10195 *(data2 + i) = *(data2 + i) + 1;
10196 data3 = (char *) malloc (pagesize);
10199 if (read (fd, data3, pagesize) != pagesize)
10201 for (i = 0; i < pagesize; ++i)
10202 if (*(data + i) != *(data3 + i))
10208 rm -f conftest$ac_exeext
10209 if { (ac_try="$ac_link"
10210 case "(($ac_try" in
10211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10212 *) ac_try_echo=$ac_try;;
10214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10215 (eval "$ac_link") 2>&5
10217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10218 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10219 { (case "(($ac_try" in
10220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10221 *) ac_try_echo=$ac_try;;
10223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10224 (eval "$ac_try") 2>&5
10226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10227 (exit $ac_status); }; }; then
10228 ac_cv_func_mmap_fixed_mapped=yes
10230 echo "$as_me: program exited with status $ac_status" >&5
10231 echo "$as_me: failed program was:" >&5
10232 sed 's/^/| /' conftest.$ac_ext >&5
10234 ( exit $ac_status )
10235 ac_cv_func_mmap_fixed_mapped=no
10237 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10242 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
10243 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
10244 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10246 cat >>confdefs.h <<\_ACEOF
10247 #define HAVE_MMAP 1
10251 rm -f conftest.mmap
10254 { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
10255 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6; }
10256 if test "${ac_cv_gnu_library_2_1+set}" = set; then
10257 echo $ECHO_N "(cached) $ECHO_C" >&6
10259 cat >conftest.$ac_ext <<_ACEOF
10262 cat confdefs.h >>conftest.$ac_ext
10263 cat >>conftest.$ac_ext <<_ACEOF
10264 /* end confdefs.h. */
10266 #include <features.h>
10267 #ifdef __GNU_LIBRARY__
10268 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
10274 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10275 $EGREP "Lucky GNU user" >/dev/null 2>&1; then
10276 ac_cv_gnu_library_2_1=yes
10278 ac_cv_gnu_library_2_1=no
10285 { echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
10286 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6; }
10288 GLIBC21="$ac_cv_gnu_library_2_1"
10293 { echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
10294 echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6; }
10295 if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
10296 echo $ECHO_N "(cached) $ECHO_C" >&6
10299 if test "$cross_compiling" = yes; then
10301 # Guess based on the CPU.
10302 case "$host_cpu" in
10303 alpha* | i3456786 | m68k | s390*)
10304 gt_cv_int_divbyzero_sigfpe="guessing yes";;
10306 gt_cv_int_divbyzero_sigfpe="guessing no";;
10310 cat >conftest.$ac_ext <<_ACEOF
10313 cat confdefs.h >>conftest.$ac_ext
10314 cat >>conftest.$ac_ext <<_ACEOF
10315 /* end confdefs.h. */
10317 #include <stdlib.h>
10318 #include <signal.h>
10322 sigfpe_handler (int sig)
10324 sigfpe_handler (sig) int sig;
10327 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
10328 exit (sig != SIGFPE);
10338 signal (SIGFPE, sigfpe_handler);
10339 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
10340 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
10341 signal (SIGTRAP, sigfpe_handler);
10343 /* Linux/SPARC yields signal SIGILL. */
10344 #if defined (__sparc__) && defined (__linux__)
10345 signal (SIGILL, sigfpe_handler);
10354 rm -f conftest$ac_exeext
10355 if { (ac_try="$ac_link"
10356 case "(($ac_try" in
10357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10358 *) ac_try_echo=$ac_try;;
10360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10361 (eval "$ac_link") 2>&5
10363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10364 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10365 { (case "(($ac_try" in
10366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10367 *) ac_try_echo=$ac_try;;
10369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10370 (eval "$ac_try") 2>&5
10372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10373 (exit $ac_status); }; }; then
10374 gt_cv_int_divbyzero_sigfpe=yes
10376 echo "$as_me: program exited with status $ac_status" >&5
10377 echo "$as_me: failed program was:" >&5
10378 sed 's/^/| /' conftest.$ac_ext >&5
10380 ( exit $ac_status )
10381 gt_cv_int_divbyzero_sigfpe=no
10383 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10389 { echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
10390 echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6; }
10391 case "$gt_cv_int_divbyzero_sigfpe" in
10396 cat >>confdefs.h <<_ACEOF
10397 #define INTDIV0_RAISES_SIGFPE $value
10402 { echo "$as_me:$LINENO: checking for unsigned long long" >&5
10403 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6; }
10404 if test "${ac_cv_type_unsigned_long_long+set}" = set; then
10405 echo $ECHO_N "(cached) $ECHO_C" >&6
10407 cat >conftest.$ac_ext <<_ACEOF
10410 cat confdefs.h >>conftest.$ac_ext
10411 cat >>conftest.$ac_ext <<_ACEOF
10412 /* end confdefs.h. */
10413 unsigned long long ull = 1ULL; int i = 63;
10417 unsigned long long ullmax = (unsigned long long) -1;
10418 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
10423 rm -f conftest.$ac_objext conftest$ac_exeext
10424 if { (ac_try="$ac_link"
10425 case "(($ac_try" in
10426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10427 *) ac_try_echo=$ac_try;;
10429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10430 (eval "$ac_link") 2>conftest.er1
10432 grep -v '^ *+' conftest.er1 >conftest.err
10434 cat conftest.err >&5
10435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10436 (exit $ac_status); } &&
10437 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10438 { (case "(($ac_try" in
10439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10440 *) ac_try_echo=$ac_try;;
10442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10443 (eval "$ac_try") 2>&5
10445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10446 (exit $ac_status); }; } &&
10447 { ac_try='test -s conftest$ac_exeext'
10448 { (case "(($ac_try" in
10449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10450 *) ac_try_echo=$ac_try;;
10452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10453 (eval "$ac_try") 2>&5
10455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10456 (exit $ac_status); }; }; then
10457 ac_cv_type_unsigned_long_long=yes
10459 echo "$as_me: failed program was:" >&5
10460 sed 's/^/| /' conftest.$ac_ext >&5
10462 ac_cv_type_unsigned_long_long=no
10465 rm -f core conftest.err conftest.$ac_objext \
10466 conftest$ac_exeext conftest.$ac_ext
10468 { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
10469 echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6; }
10470 if test $ac_cv_type_unsigned_long_long = yes; then
10472 cat >>confdefs.h <<\_ACEOF
10473 #define HAVE_UNSIGNED_LONG_LONG 1
10481 if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
10483 test $ac_cv_type_unsigned_long_long = yes \
10484 && ac_type='unsigned long long' \
10485 || ac_type='unsigned long'
10487 cat >>confdefs.h <<_ACEOF
10488 #define uintmax_t $ac_type
10493 cat >>confdefs.h <<\_ACEOF
10494 #define HAVE_UINTMAX_T 1
10500 { echo "$as_me:$LINENO: checking for inttypes.h" >&5
10501 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
10502 if test "${gt_cv_header_inttypes_h+set}" = set; then
10503 echo $ECHO_N "(cached) $ECHO_C" >&6
10506 cat >conftest.$ac_ext <<_ACEOF
10509 cat confdefs.h >>conftest.$ac_ext
10510 cat >>conftest.$ac_ext <<_ACEOF
10511 /* end confdefs.h. */
10512 #include <sys/types.h>
10513 #include <inttypes.h>
10522 rm -f conftest.$ac_objext
10523 if { (ac_try="$ac_compile"
10524 case "(($ac_try" in
10525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10526 *) ac_try_echo=$ac_try;;
10528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10529 (eval "$ac_compile") 2>conftest.er1
10531 grep -v '^ *+' conftest.er1 >conftest.err
10533 cat conftest.err >&5
10534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10535 (exit $ac_status); } &&
10536 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10537 { (case "(($ac_try" in
10538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10539 *) ac_try_echo=$ac_try;;
10541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10542 (eval "$ac_try") 2>&5
10544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10545 (exit $ac_status); }; } &&
10546 { ac_try='test -s conftest.$ac_objext'
10547 { (case "(($ac_try" in
10548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10549 *) ac_try_echo=$ac_try;;
10551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10552 (eval "$ac_try") 2>&5
10554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10555 (exit $ac_status); }; }; then
10556 gt_cv_header_inttypes_h=yes
10558 echo "$as_me: failed program was:" >&5
10559 sed 's/^/| /' conftest.$ac_ext >&5
10561 gt_cv_header_inttypes_h=no
10564 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10567 { echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
10568 echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6; }
10569 if test $gt_cv_header_inttypes_h = yes; then
10571 cat >>confdefs.h <<_ACEOF
10572 #define HAVE_INTTYPES_H 1
10579 if test $gt_cv_header_inttypes_h = yes; then
10580 { echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
10581 echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6; }
10582 if test "${gt_cv_inttypes_pri_broken+set}" = set; then
10583 echo $ECHO_N "(cached) $ECHO_C" >&6
10586 cat >conftest.$ac_ext <<_ACEOF
10589 cat confdefs.h >>conftest.$ac_ext
10590 cat >>conftest.$ac_ext <<_ACEOF
10591 /* end confdefs.h. */
10592 #include <inttypes.h>
10605 rm -f conftest.$ac_objext
10606 if { (ac_try="$ac_compile"
10607 case "(($ac_try" in
10608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10609 *) ac_try_echo=$ac_try;;
10611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10612 (eval "$ac_compile") 2>conftest.er1
10614 grep -v '^ *+' conftest.er1 >conftest.err
10616 cat conftest.err >&5
10617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10618 (exit $ac_status); } &&
10619 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10620 { (case "(($ac_try" in
10621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10622 *) ac_try_echo=$ac_try;;
10624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10625 (eval "$ac_try") 2>&5
10627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10628 (exit $ac_status); }; } &&
10629 { ac_try='test -s conftest.$ac_objext'
10630 { (case "(($ac_try" in
10631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10632 *) ac_try_echo=$ac_try;;
10634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10635 (eval "$ac_try") 2>&5
10637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10638 (exit $ac_status); }; }; then
10639 gt_cv_inttypes_pri_broken=no
10641 echo "$as_me: failed program was:" >&5
10642 sed 's/^/| /' conftest.$ac_ext >&5
10644 gt_cv_inttypes_pri_broken=yes
10647 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10650 { echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
10651 echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6; }
10653 if test "$gt_cv_inttypes_pri_broken" = yes; then
10655 cat >>confdefs.h <<_ACEOF
10656 #define PRI_MACROS_BROKEN 1
10663 for ac_header in stdint.h
10665 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10666 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10667 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10668 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10669 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10670 echo $ECHO_N "(cached) $ECHO_C" >&6
10672 ac_res=`eval echo '${'$as_ac_Header'}'`
10673 { echo "$as_me:$LINENO: result: $ac_res" >&5
10674 echo "${ECHO_T}$ac_res" >&6; }
10676 # Is the header compilable?
10677 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10678 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10679 cat >conftest.$ac_ext <<_ACEOF
10682 cat confdefs.h >>conftest.$ac_ext
10683 cat >>conftest.$ac_ext <<_ACEOF
10684 /* end confdefs.h. */
10685 $ac_includes_default
10686 #include <$ac_header>
10688 rm -f conftest.$ac_objext
10689 if { (ac_try="$ac_compile"
10690 case "(($ac_try" in
10691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10692 *) ac_try_echo=$ac_try;;
10694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10695 (eval "$ac_compile") 2>conftest.er1
10697 grep -v '^ *+' conftest.er1 >conftest.err
10699 cat conftest.err >&5
10700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10701 (exit $ac_status); } &&
10702 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10703 { (case "(($ac_try" in
10704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10705 *) ac_try_echo=$ac_try;;
10707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10708 (eval "$ac_try") 2>&5
10710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10711 (exit $ac_status); }; } &&
10712 { ac_try='test -s conftest.$ac_objext'
10713 { (case "(($ac_try" in
10714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10715 *) ac_try_echo=$ac_try;;
10717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10718 (eval "$ac_try") 2>&5
10720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10721 (exit $ac_status); }; }; then
10722 ac_header_compiler=yes
10724 echo "$as_me: failed program was:" >&5
10725 sed 's/^/| /' conftest.$ac_ext >&5
10727 ac_header_compiler=no
10730 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10731 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10732 echo "${ECHO_T}$ac_header_compiler" >&6; }
10734 # Is the header present?
10735 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10736 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10737 cat >conftest.$ac_ext <<_ACEOF
10740 cat confdefs.h >>conftest.$ac_ext
10741 cat >>conftest.$ac_ext <<_ACEOF
10742 /* end confdefs.h. */
10743 #include <$ac_header>
10745 if { (ac_try="$ac_cpp conftest.$ac_ext"
10746 case "(($ac_try" in
10747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10748 *) ac_try_echo=$ac_try;;
10750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10751 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10753 grep -v '^ *+' conftest.er1 >conftest.err
10755 cat conftest.err >&5
10756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10757 (exit $ac_status); } >/dev/null; then
10758 if test -s conftest.err; then
10759 ac_cpp_err=$ac_c_preproc_warn_flag
10760 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10767 if test -z "$ac_cpp_err"; then
10768 ac_header_preproc=yes
10770 echo "$as_me: failed program was:" >&5
10771 sed 's/^/| /' conftest.$ac_ext >&5
10773 ac_header_preproc=no
10776 rm -f conftest.err conftest.$ac_ext
10777 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10778 echo "${ECHO_T}$ac_header_preproc" >&6; }
10780 # So? What about this header?
10781 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10783 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10784 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10785 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10786 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10787 ac_header_preproc=yes
10790 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10791 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10792 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10793 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10794 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10795 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10796 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10797 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10798 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10799 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10800 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10801 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10805 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10806 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10807 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10808 echo $ECHO_N "(cached) $ECHO_C" >&6
10810 eval "$as_ac_Header=\$ac_header_preproc"
10812 ac_res=`eval echo '${'$as_ac_Header'}'`
10813 { echo "$as_me:$LINENO: result: $ac_res" >&5
10814 echo "${ECHO_T}$ac_res" >&6; }
10817 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10818 cat >>confdefs.h <<_ACEOF
10819 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10826 { echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
10827 echo $ECHO_N "checking for SIZE_MAX... $ECHO_C" >&6; }
10829 cat >conftest.$ac_ext <<_ACEOF
10832 cat confdefs.h >>conftest.$ac_ext
10833 cat >>conftest.$ac_ext <<_ACEOF
10834 /* end confdefs.h. */
10836 #include <limits.h>
10838 #include <stdint.h>
10845 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10846 $EGREP "Found it" >/dev/null 2>&1; then
10851 if test -z "$result"; then
10852 if test "$cross_compiling" = yes; then
10853 # Depending upon the size, compute the lo and hi bounds.
10854 cat >conftest.$ac_ext <<_ACEOF
10857 cat confdefs.h >>conftest.$ac_ext
10858 cat >>conftest.$ac_ext <<_ACEOF
10859 /* end confdefs.h. */
10860 #include <stddef.h>
10864 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= 0)];
10871 rm -f conftest.$ac_objext
10872 if { (ac_try="$ac_compile"
10873 case "(($ac_try" in
10874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10875 *) ac_try_echo=$ac_try;;
10877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10878 (eval "$ac_compile") 2>conftest.er1
10880 grep -v '^ *+' conftest.er1 >conftest.err
10882 cat conftest.err >&5
10883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10884 (exit $ac_status); } &&
10885 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10886 { (case "(($ac_try" in
10887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10888 *) ac_try_echo=$ac_try;;
10890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10891 (eval "$ac_try") 2>&5
10893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10894 (exit $ac_status); }; } &&
10895 { ac_try='test -s conftest.$ac_objext'
10896 { (case "(($ac_try" in
10897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10898 *) ac_try_echo=$ac_try;;
10900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10901 (eval "$ac_try") 2>&5
10903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10904 (exit $ac_status); }; }; then
10907 cat >conftest.$ac_ext <<_ACEOF
10910 cat confdefs.h >>conftest.$ac_ext
10911 cat >>conftest.$ac_ext <<_ACEOF
10912 /* end confdefs.h. */
10913 #include <stddef.h>
10917 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
10924 rm -f conftest.$ac_objext
10925 if { (ac_try="$ac_compile"
10926 case "(($ac_try" in
10927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10928 *) ac_try_echo=$ac_try;;
10930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10931 (eval "$ac_compile") 2>conftest.er1
10933 grep -v '^ *+' conftest.er1 >conftest.err
10935 cat conftest.err >&5
10936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10937 (exit $ac_status); } &&
10938 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10939 { (case "(($ac_try" in
10940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10941 *) ac_try_echo=$ac_try;;
10943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10944 (eval "$ac_try") 2>&5
10946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10947 (exit $ac_status); }; } &&
10948 { ac_try='test -s conftest.$ac_objext'
10949 { (case "(($ac_try" in
10950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10951 *) ac_try_echo=$ac_try;;
10953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10954 (eval "$ac_try") 2>&5
10956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10957 (exit $ac_status); }; }; then
10958 ac_hi=$ac_mid; break
10960 echo "$as_me: failed program was:" >&5
10961 sed 's/^/| /' conftest.$ac_ext >&5
10963 ac_lo=`expr $ac_mid + 1`
10964 if test $ac_lo -le $ac_mid; then
10968 ac_mid=`expr 2 '*' $ac_mid + 1`
10971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10974 echo "$as_me: failed program was:" >&5
10975 sed 's/^/| /' conftest.$ac_ext >&5
10977 cat >conftest.$ac_ext <<_ACEOF
10980 cat confdefs.h >>conftest.$ac_ext
10981 cat >>conftest.$ac_ext <<_ACEOF
10982 /* end confdefs.h. */
10983 #include <stddef.h>
10987 static int test_array [1 - 2 * !((~(size_t)0 / 10) < 0)];
10994 rm -f conftest.$ac_objext
10995 if { (ac_try="$ac_compile"
10996 case "(($ac_try" in
10997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10998 *) ac_try_echo=$ac_try;;
11000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11001 (eval "$ac_compile") 2>conftest.er1
11003 grep -v '^ *+' conftest.er1 >conftest.err
11005 cat conftest.err >&5
11006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11007 (exit $ac_status); } &&
11008 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11009 { (case "(($ac_try" in
11010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11011 *) ac_try_echo=$ac_try;;
11013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11014 (eval "$ac_try") 2>&5
11016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11017 (exit $ac_status); }; } &&
11018 { ac_try='test -s conftest.$ac_objext'
11019 { (case "(($ac_try" in
11020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11021 *) ac_try_echo=$ac_try;;
11023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11024 (eval "$ac_try") 2>&5
11026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11027 (exit $ac_status); }; }; then
11030 cat >conftest.$ac_ext <<_ACEOF
11033 cat confdefs.h >>conftest.$ac_ext
11034 cat >>conftest.$ac_ext <<_ACEOF
11035 /* end confdefs.h. */
11036 #include <stddef.h>
11040 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= $ac_mid)];
11047 rm -f conftest.$ac_objext
11048 if { (ac_try="$ac_compile"
11049 case "(($ac_try" in
11050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11051 *) ac_try_echo=$ac_try;;
11053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11054 (eval "$ac_compile") 2>conftest.er1
11056 grep -v '^ *+' conftest.er1 >conftest.err
11058 cat conftest.err >&5
11059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11060 (exit $ac_status); } &&
11061 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11062 { (case "(($ac_try" in
11063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11064 *) ac_try_echo=$ac_try;;
11066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11067 (eval "$ac_try") 2>&5
11069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11070 (exit $ac_status); }; } &&
11071 { ac_try='test -s conftest.$ac_objext'
11072 { (case "(($ac_try" in
11073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11074 *) ac_try_echo=$ac_try;;
11076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11077 (eval "$ac_try") 2>&5
11079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11080 (exit $ac_status); }; }; then
11081 ac_lo=$ac_mid; break
11083 echo "$as_me: failed program was:" >&5
11084 sed 's/^/| /' conftest.$ac_ext >&5
11086 ac_hi=`expr '(' $ac_mid ')' - 1`
11087 if test $ac_mid -le $ac_hi; then
11091 ac_mid=`expr 2 '*' $ac_mid`
11094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11097 echo "$as_me: failed program was:" >&5
11098 sed 's/^/| /' conftest.$ac_ext >&5
11103 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11106 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11107 # Binary search between lo and hi bounds.
11108 while test "x$ac_lo" != "x$ac_hi"; do
11109 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11110 cat >conftest.$ac_ext <<_ACEOF
11113 cat confdefs.h >>conftest.$ac_ext
11114 cat >>conftest.$ac_ext <<_ACEOF
11115 /* end confdefs.h. */
11116 #include <stddef.h>
11120 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
11127 rm -f conftest.$ac_objext
11128 if { (ac_try="$ac_compile"
11129 case "(($ac_try" in
11130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11131 *) ac_try_echo=$ac_try;;
11133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11134 (eval "$ac_compile") 2>conftest.er1
11136 grep -v '^ *+' conftest.er1 >conftest.err
11138 cat conftest.err >&5
11139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11140 (exit $ac_status); } &&
11141 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11142 { (case "(($ac_try" in
11143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11144 *) ac_try_echo=$ac_try;;
11146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11147 (eval "$ac_try") 2>&5
11149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11150 (exit $ac_status); }; } &&
11151 { ac_try='test -s conftest.$ac_objext'
11152 { (case "(($ac_try" in
11153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11154 *) ac_try_echo=$ac_try;;
11156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11157 (eval "$ac_try") 2>&5
11159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11160 (exit $ac_status); }; }; then
11163 echo "$as_me: failed program was:" >&5
11164 sed 's/^/| /' conftest.$ac_ext >&5
11166 ac_lo=`expr '(' $ac_mid ')' + 1`
11169 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11172 ?*) res_hi=$ac_lo;;
11176 cat >conftest.$ac_ext <<_ACEOF
11179 cat confdefs.h >>conftest.$ac_ext
11180 cat >>conftest.$ac_ext <<_ACEOF
11181 /* end confdefs.h. */
11182 #include <stddef.h>
11183 static long int longval () { return ~(size_t)0 / 10; }
11184 static unsigned long int ulongval () { return ~(size_t)0 / 10; }
11186 #include <stdlib.h>
11191 FILE *f = fopen ("conftest.val", "w");
11194 if ((~(size_t)0 / 10) < 0)
11196 long int i = longval ();
11197 if (i != (~(size_t)0 / 10))
11199 fprintf (f, "%ld\n", i);
11203 unsigned long int i = ulongval ();
11204 if (i != (~(size_t)0 / 10))
11206 fprintf (f, "%lu\n", i);
11208 return ferror (f) || fclose (f) != 0;
11214 rm -f conftest$ac_exeext
11215 if { (ac_try="$ac_link"
11216 case "(($ac_try" in
11217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11218 *) ac_try_echo=$ac_try;;
11220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11221 (eval "$ac_link") 2>&5
11223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11224 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11225 { (case "(($ac_try" in
11226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11227 *) ac_try_echo=$ac_try;;
11229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11230 (eval "$ac_try") 2>&5
11232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11233 (exit $ac_status); }; }; then
11234 res_hi=`cat conftest.val`
11236 echo "$as_me: program exited with status $ac_status" >&5
11237 echo "$as_me: failed program was:" >&5
11238 sed 's/^/| /' conftest.$ac_ext >&5
11240 ( exit $ac_status )
11243 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11246 if test "$cross_compiling" = yes; then
11247 # Depending upon the size, compute the lo and hi bounds.
11248 cat >conftest.$ac_ext <<_ACEOF
11251 cat confdefs.h >>conftest.$ac_ext
11252 cat >>conftest.$ac_ext <<_ACEOF
11253 /* end confdefs.h. */
11254 #include <stddef.h>
11258 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= 0)];
11265 rm -f conftest.$ac_objext
11266 if { (ac_try="$ac_compile"
11267 case "(($ac_try" in
11268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11269 *) ac_try_echo=$ac_try;;
11271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11272 (eval "$ac_compile") 2>conftest.er1
11274 grep -v '^ *+' conftest.er1 >conftest.err
11276 cat conftest.err >&5
11277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11278 (exit $ac_status); } &&
11279 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11280 { (case "(($ac_try" in
11281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11282 *) ac_try_echo=$ac_try;;
11284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11285 (eval "$ac_try") 2>&5
11287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11288 (exit $ac_status); }; } &&
11289 { ac_try='test -s conftest.$ac_objext'
11290 { (case "(($ac_try" in
11291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11292 *) ac_try_echo=$ac_try;;
11294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11295 (eval "$ac_try") 2>&5
11297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11298 (exit $ac_status); }; }; then
11301 cat >conftest.$ac_ext <<_ACEOF
11304 cat confdefs.h >>conftest.$ac_ext
11305 cat >>conftest.$ac_ext <<_ACEOF
11306 /* end confdefs.h. */
11307 #include <stddef.h>
11311 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
11318 rm -f conftest.$ac_objext
11319 if { (ac_try="$ac_compile"
11320 case "(($ac_try" in
11321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11322 *) ac_try_echo=$ac_try;;
11324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11325 (eval "$ac_compile") 2>conftest.er1
11327 grep -v '^ *+' conftest.er1 >conftest.err
11329 cat conftest.err >&5
11330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11331 (exit $ac_status); } &&
11332 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11333 { (case "(($ac_try" in
11334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11335 *) ac_try_echo=$ac_try;;
11337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11338 (eval "$ac_try") 2>&5
11340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11341 (exit $ac_status); }; } &&
11342 { ac_try='test -s conftest.$ac_objext'
11343 { (case "(($ac_try" in
11344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11345 *) ac_try_echo=$ac_try;;
11347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11348 (eval "$ac_try") 2>&5
11350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11351 (exit $ac_status); }; }; then
11352 ac_hi=$ac_mid; break
11354 echo "$as_me: failed program was:" >&5
11355 sed 's/^/| /' conftest.$ac_ext >&5
11357 ac_lo=`expr $ac_mid + 1`
11358 if test $ac_lo -le $ac_mid; then
11362 ac_mid=`expr 2 '*' $ac_mid + 1`
11365 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11368 echo "$as_me: failed program was:" >&5
11369 sed 's/^/| /' conftest.$ac_ext >&5
11371 cat >conftest.$ac_ext <<_ACEOF
11374 cat confdefs.h >>conftest.$ac_ext
11375 cat >>conftest.$ac_ext <<_ACEOF
11376 /* end confdefs.h. */
11377 #include <stddef.h>
11381 static int test_array [1 - 2 * !((~(size_t)0 % 10) < 0)];
11388 rm -f conftest.$ac_objext
11389 if { (ac_try="$ac_compile"
11390 case "(($ac_try" in
11391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11392 *) ac_try_echo=$ac_try;;
11394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11395 (eval "$ac_compile") 2>conftest.er1
11397 grep -v '^ *+' conftest.er1 >conftest.err
11399 cat conftest.err >&5
11400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11401 (exit $ac_status); } &&
11402 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11403 { (case "(($ac_try" in
11404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11405 *) ac_try_echo=$ac_try;;
11407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11408 (eval "$ac_try") 2>&5
11410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11411 (exit $ac_status); }; } &&
11412 { ac_try='test -s conftest.$ac_objext'
11413 { (case "(($ac_try" in
11414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11415 *) ac_try_echo=$ac_try;;
11417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11418 (eval "$ac_try") 2>&5
11420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11421 (exit $ac_status); }; }; then
11424 cat >conftest.$ac_ext <<_ACEOF
11427 cat confdefs.h >>conftest.$ac_ext
11428 cat >>conftest.$ac_ext <<_ACEOF
11429 /* end confdefs.h. */
11430 #include <stddef.h>
11434 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= $ac_mid)];
11441 rm -f conftest.$ac_objext
11442 if { (ac_try="$ac_compile"
11443 case "(($ac_try" in
11444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11445 *) ac_try_echo=$ac_try;;
11447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11448 (eval "$ac_compile") 2>conftest.er1
11450 grep -v '^ *+' conftest.er1 >conftest.err
11452 cat conftest.err >&5
11453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11454 (exit $ac_status); } &&
11455 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11456 { (case "(($ac_try" in
11457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11458 *) ac_try_echo=$ac_try;;
11460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11461 (eval "$ac_try") 2>&5
11463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11464 (exit $ac_status); }; } &&
11465 { ac_try='test -s conftest.$ac_objext'
11466 { (case "(($ac_try" in
11467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11468 *) ac_try_echo=$ac_try;;
11470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11471 (eval "$ac_try") 2>&5
11473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11474 (exit $ac_status); }; }; then
11475 ac_lo=$ac_mid; break
11477 echo "$as_me: failed program was:" >&5
11478 sed 's/^/| /' conftest.$ac_ext >&5
11480 ac_hi=`expr '(' $ac_mid ')' - 1`
11481 if test $ac_mid -le $ac_hi; then
11485 ac_mid=`expr 2 '*' $ac_mid`
11488 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11491 echo "$as_me: failed program was:" >&5
11492 sed 's/^/| /' conftest.$ac_ext >&5
11497 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11500 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11501 # Binary search between lo and hi bounds.
11502 while test "x$ac_lo" != "x$ac_hi"; do
11503 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11504 cat >conftest.$ac_ext <<_ACEOF
11507 cat confdefs.h >>conftest.$ac_ext
11508 cat >>conftest.$ac_ext <<_ACEOF
11509 /* end confdefs.h. */
11510 #include <stddef.h>
11514 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
11521 rm -f conftest.$ac_objext
11522 if { (ac_try="$ac_compile"
11523 case "(($ac_try" in
11524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11525 *) ac_try_echo=$ac_try;;
11527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11528 (eval "$ac_compile") 2>conftest.er1
11530 grep -v '^ *+' conftest.er1 >conftest.err
11532 cat conftest.err >&5
11533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11534 (exit $ac_status); } &&
11535 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11536 { (case "(($ac_try" in
11537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11538 *) ac_try_echo=$ac_try;;
11540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11541 (eval "$ac_try") 2>&5
11543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11544 (exit $ac_status); }; } &&
11545 { ac_try='test -s conftest.$ac_objext'
11546 { (case "(($ac_try" in
11547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11548 *) ac_try_echo=$ac_try;;
11550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11551 (eval "$ac_try") 2>&5
11553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11554 (exit $ac_status); }; }; then
11557 echo "$as_me: failed program was:" >&5
11558 sed 's/^/| /' conftest.$ac_ext >&5
11560 ac_lo=`expr '(' $ac_mid ')' + 1`
11563 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11566 ?*) res_lo=$ac_lo;;
11570 cat >conftest.$ac_ext <<_ACEOF
11573 cat confdefs.h >>conftest.$ac_ext
11574 cat >>conftest.$ac_ext <<_ACEOF
11575 /* end confdefs.h. */
11576 #include <stddef.h>
11577 static long int longval () { return ~(size_t)0 % 10; }
11578 static unsigned long int ulongval () { return ~(size_t)0 % 10; }
11580 #include <stdlib.h>
11585 FILE *f = fopen ("conftest.val", "w");
11588 if ((~(size_t)0 % 10) < 0)
11590 long int i = longval ();
11591 if (i != (~(size_t)0 % 10))
11593 fprintf (f, "%ld\n", i);
11597 unsigned long int i = ulongval ();
11598 if (i != (~(size_t)0 % 10))
11600 fprintf (f, "%lu\n", i);
11602 return ferror (f) || fclose (f) != 0;
11608 rm -f conftest$ac_exeext
11609 if { (ac_try="$ac_link"
11610 case "(($ac_try" in
11611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11612 *) ac_try_echo=$ac_try;;
11614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11615 (eval "$ac_link") 2>&5
11617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11618 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11619 { (case "(($ac_try" in
11620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11621 *) ac_try_echo=$ac_try;;
11623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11624 (eval "$ac_try") 2>&5
11626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11627 (exit $ac_status); }; }; then
11628 res_lo=`cat conftest.val`
11630 echo "$as_me: program exited with status $ac_status" >&5
11631 echo "$as_me: failed program was:" >&5
11632 sed 's/^/| /' conftest.$ac_ext >&5
11634 ( exit $ac_status )
11637 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11640 if test "$cross_compiling" = yes; then
11641 # Depending upon the size, compute the lo and hi bounds.
11642 cat >conftest.$ac_ext <<_ACEOF
11645 cat confdefs.h >>conftest.$ac_ext
11646 cat >>conftest.$ac_ext <<_ACEOF
11647 /* end confdefs.h. */
11648 #include <stddef.h>
11652 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
11659 rm -f conftest.$ac_objext
11660 if { (ac_try="$ac_compile"
11661 case "(($ac_try" in
11662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11663 *) ac_try_echo=$ac_try;;
11665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11666 (eval "$ac_compile") 2>conftest.er1
11668 grep -v '^ *+' conftest.er1 >conftest.err
11670 cat conftest.err >&5
11671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11672 (exit $ac_status); } &&
11673 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11674 { (case "(($ac_try" in
11675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11676 *) ac_try_echo=$ac_try;;
11678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11679 (eval "$ac_try") 2>&5
11681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11682 (exit $ac_status); }; } &&
11683 { ac_try='test -s conftest.$ac_objext'
11684 { (case "(($ac_try" in
11685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11686 *) ac_try_echo=$ac_try;;
11688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11689 (eval "$ac_try") 2>&5
11691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11692 (exit $ac_status); }; }; then
11695 cat >conftest.$ac_ext <<_ACEOF
11698 cat confdefs.h >>conftest.$ac_ext
11699 cat >>conftest.$ac_ext <<_ACEOF
11700 /* end confdefs.h. */
11701 #include <stddef.h>
11705 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
11712 rm -f conftest.$ac_objext
11713 if { (ac_try="$ac_compile"
11714 case "(($ac_try" in
11715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11716 *) ac_try_echo=$ac_try;;
11718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11719 (eval "$ac_compile") 2>conftest.er1
11721 grep -v '^ *+' conftest.er1 >conftest.err
11723 cat conftest.err >&5
11724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11725 (exit $ac_status); } &&
11726 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11727 { (case "(($ac_try" in
11728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11729 *) ac_try_echo=$ac_try;;
11731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11732 (eval "$ac_try") 2>&5
11734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11735 (exit $ac_status); }; } &&
11736 { ac_try='test -s conftest.$ac_objext'
11737 { (case "(($ac_try" in
11738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11739 *) ac_try_echo=$ac_try;;
11741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11742 (eval "$ac_try") 2>&5
11744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11745 (exit $ac_status); }; }; then
11746 ac_hi=$ac_mid; break
11748 echo "$as_me: failed program was:" >&5
11749 sed 's/^/| /' conftest.$ac_ext >&5
11751 ac_lo=`expr $ac_mid + 1`
11752 if test $ac_lo -le $ac_mid; then
11756 ac_mid=`expr 2 '*' $ac_mid + 1`
11759 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11762 echo "$as_me: failed program was:" >&5
11763 sed 's/^/| /' conftest.$ac_ext >&5
11765 cat >conftest.$ac_ext <<_ACEOF
11768 cat confdefs.h >>conftest.$ac_ext
11769 cat >>conftest.$ac_ext <<_ACEOF
11770 /* end confdefs.h. */
11771 #include <stddef.h>
11775 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
11782 rm -f conftest.$ac_objext
11783 if { (ac_try="$ac_compile"
11784 case "(($ac_try" in
11785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11786 *) ac_try_echo=$ac_try;;
11788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11789 (eval "$ac_compile") 2>conftest.er1
11791 grep -v '^ *+' conftest.er1 >conftest.err
11793 cat conftest.err >&5
11794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11795 (exit $ac_status); } &&
11796 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11797 { (case "(($ac_try" in
11798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11799 *) ac_try_echo=$ac_try;;
11801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11802 (eval "$ac_try") 2>&5
11804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11805 (exit $ac_status); }; } &&
11806 { ac_try='test -s conftest.$ac_objext'
11807 { (case "(($ac_try" in
11808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11809 *) ac_try_echo=$ac_try;;
11811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11812 (eval "$ac_try") 2>&5
11814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11815 (exit $ac_status); }; }; then
11818 cat >conftest.$ac_ext <<_ACEOF
11821 cat confdefs.h >>conftest.$ac_ext
11822 cat >>conftest.$ac_ext <<_ACEOF
11823 /* end confdefs.h. */
11824 #include <stddef.h>
11828 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
11835 rm -f conftest.$ac_objext
11836 if { (ac_try="$ac_compile"
11837 case "(($ac_try" in
11838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11839 *) ac_try_echo=$ac_try;;
11841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11842 (eval "$ac_compile") 2>conftest.er1
11844 grep -v '^ *+' conftest.er1 >conftest.err
11846 cat conftest.err >&5
11847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11848 (exit $ac_status); } &&
11849 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11850 { (case "(($ac_try" in
11851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11852 *) ac_try_echo=$ac_try;;
11854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11855 (eval "$ac_try") 2>&5
11857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11858 (exit $ac_status); }; } &&
11859 { ac_try='test -s conftest.$ac_objext'
11860 { (case "(($ac_try" in
11861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11862 *) ac_try_echo=$ac_try;;
11864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11865 (eval "$ac_try") 2>&5
11867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11868 (exit $ac_status); }; }; then
11869 ac_lo=$ac_mid; break
11871 echo "$as_me: failed program was:" >&5
11872 sed 's/^/| /' conftest.$ac_ext >&5
11874 ac_hi=`expr '(' $ac_mid ')' - 1`
11875 if test $ac_mid -le $ac_hi; then
11879 ac_mid=`expr 2 '*' $ac_mid`
11882 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11885 echo "$as_me: failed program was:" >&5
11886 sed 's/^/| /' conftest.$ac_ext >&5
11891 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11894 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11895 # Binary search between lo and hi bounds.
11896 while test "x$ac_lo" != "x$ac_hi"; do
11897 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11898 cat >conftest.$ac_ext <<_ACEOF
11901 cat confdefs.h >>conftest.$ac_ext
11902 cat >>conftest.$ac_ext <<_ACEOF
11903 /* end confdefs.h. */
11904 #include <stddef.h>
11908 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
11915 rm -f conftest.$ac_objext
11916 if { (ac_try="$ac_compile"
11917 case "(($ac_try" in
11918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11919 *) ac_try_echo=$ac_try;;
11921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11922 (eval "$ac_compile") 2>conftest.er1
11924 grep -v '^ *+' conftest.er1 >conftest.err
11926 cat conftest.err >&5
11927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11928 (exit $ac_status); } &&
11929 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11930 { (case "(($ac_try" in
11931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11932 *) ac_try_echo=$ac_try;;
11934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11935 (eval "$ac_try") 2>&5
11937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11938 (exit $ac_status); }; } &&
11939 { ac_try='test -s conftest.$ac_objext'
11940 { (case "(($ac_try" in
11941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11942 *) ac_try_echo=$ac_try;;
11944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11945 (eval "$ac_try") 2>&5
11947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11948 (exit $ac_status); }; }; then
11951 echo "$as_me: failed program was:" >&5
11952 sed 's/^/| /' conftest.$ac_ext >&5
11954 ac_lo=`expr '(' $ac_mid ')' + 1`
11957 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11960 ?*) fits_in_uint=$ac_lo;;
11964 cat >conftest.$ac_ext <<_ACEOF
11967 cat confdefs.h >>conftest.$ac_ext
11968 cat >>conftest.$ac_ext <<_ACEOF
11969 /* end confdefs.h. */
11970 #include <stddef.h>
11971 static long int longval () { return sizeof (size_t) <= sizeof (unsigned int); }
11972 static unsigned long int ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
11974 #include <stdlib.h>
11979 FILE *f = fopen ("conftest.val", "w");
11982 if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
11984 long int i = longval ();
11985 if (i != (sizeof (size_t) <= sizeof (unsigned int)))
11987 fprintf (f, "%ld\n", i);
11991 unsigned long int i = ulongval ();
11992 if (i != (sizeof (size_t) <= sizeof (unsigned int)))
11994 fprintf (f, "%lu\n", i);
11996 return ferror (f) || fclose (f) != 0;
12002 rm -f conftest$ac_exeext
12003 if { (ac_try="$ac_link"
12004 case "(($ac_try" in
12005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12006 *) ac_try_echo=$ac_try;;
12008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12009 (eval "$ac_link") 2>&5
12011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12012 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12013 { (case "(($ac_try" in
12014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12015 *) ac_try_echo=$ac_try;;
12017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12018 (eval "$ac_try") 2>&5
12020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12021 (exit $ac_status); }; }; then
12022 fits_in_uint=`cat conftest.val`
12024 echo "$as_me: program exited with status $ac_status" >&5
12025 echo "$as_me: failed program was:" >&5
12026 sed 's/^/| /' conftest.$ac_ext >&5
12028 ( exit $ac_status )
12031 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12034 if test "$fits_in_uint" = 1; then
12035 cat >conftest.$ac_ext <<_ACEOF
12038 cat confdefs.h >>conftest.$ac_ext
12039 cat >>conftest.$ac_ext <<_ACEOF
12040 /* end confdefs.h. */
12041 #include <stddef.h>
12043 extern unsigned long foo;
12053 rm -f conftest.$ac_objext
12054 if { (ac_try="$ac_compile"
12055 case "(($ac_try" in
12056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12057 *) ac_try_echo=$ac_try;;
12059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12060 (eval "$ac_compile") 2>conftest.er1
12062 grep -v '^ *+' conftest.er1 >conftest.err
12064 cat conftest.err >&5
12065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12066 (exit $ac_status); } &&
12067 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12068 { (case "(($ac_try" in
12069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12070 *) ac_try_echo=$ac_try;;
12072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12073 (eval "$ac_try") 2>&5
12075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12076 (exit $ac_status); }; } &&
12077 { ac_try='test -s conftest.$ac_objext'
12078 { (case "(($ac_try" in
12079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12080 *) ac_try_echo=$ac_try;;
12082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12083 (eval "$ac_try") 2>&5
12085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12086 (exit $ac_status); }; }; then
12089 echo "$as_me: failed program was:" >&5
12090 sed 's/^/| /' conftest.$ac_ext >&5
12095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12097 if test -z "$result"; then
12098 if test "$fits_in_uint" = 1; then
12099 result="$res_hi$res_lo"U
12101 result="$res_hi$res_lo"UL
12104 result='~(size_t)0'
12107 { echo "$as_me:$LINENO: result: $result" >&5
12108 echo "${ECHO_T}$result" >&6; }
12109 if test "$result" != yes; then
12111 cat >>confdefs.h <<_ACEOF
12112 #define SIZE_MAX $result
12121 for ac_header in stdint.h
12123 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12124 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12125 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12126 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12127 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12128 echo $ECHO_N "(cached) $ECHO_C" >&6
12130 ac_res=`eval echo '${'$as_ac_Header'}'`
12131 { echo "$as_me:$LINENO: result: $ac_res" >&5
12132 echo "${ECHO_T}$ac_res" >&6; }
12134 # Is the header compilable?
12135 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12136 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12137 cat >conftest.$ac_ext <<_ACEOF
12140 cat confdefs.h >>conftest.$ac_ext
12141 cat >>conftest.$ac_ext <<_ACEOF
12142 /* end confdefs.h. */
12143 $ac_includes_default
12144 #include <$ac_header>
12146 rm -f conftest.$ac_objext
12147 if { (ac_try="$ac_compile"
12148 case "(($ac_try" in
12149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12150 *) ac_try_echo=$ac_try;;
12152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12153 (eval "$ac_compile") 2>conftest.er1
12155 grep -v '^ *+' conftest.er1 >conftest.err
12157 cat conftest.err >&5
12158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12159 (exit $ac_status); } &&
12160 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12161 { (case "(($ac_try" in
12162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12163 *) ac_try_echo=$ac_try;;
12165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12166 (eval "$ac_try") 2>&5
12168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12169 (exit $ac_status); }; } &&
12170 { ac_try='test -s conftest.$ac_objext'
12171 { (case "(($ac_try" in
12172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12173 *) ac_try_echo=$ac_try;;
12175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12176 (eval "$ac_try") 2>&5
12178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12179 (exit $ac_status); }; }; then
12180 ac_header_compiler=yes
12182 echo "$as_me: failed program was:" >&5
12183 sed 's/^/| /' conftest.$ac_ext >&5
12185 ac_header_compiler=no
12188 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12189 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12190 echo "${ECHO_T}$ac_header_compiler" >&6; }
12192 # Is the header present?
12193 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12194 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12195 cat >conftest.$ac_ext <<_ACEOF
12198 cat confdefs.h >>conftest.$ac_ext
12199 cat >>conftest.$ac_ext <<_ACEOF
12200 /* end confdefs.h. */
12201 #include <$ac_header>
12203 if { (ac_try="$ac_cpp conftest.$ac_ext"
12204 case "(($ac_try" in
12205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12206 *) ac_try_echo=$ac_try;;
12208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12209 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12211 grep -v '^ *+' conftest.er1 >conftest.err
12213 cat conftest.err >&5
12214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12215 (exit $ac_status); } >/dev/null; then
12216 if test -s conftest.err; then
12217 ac_cpp_err=$ac_c_preproc_warn_flag
12218 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12225 if test -z "$ac_cpp_err"; then
12226 ac_header_preproc=yes
12228 echo "$as_me: failed program was:" >&5
12229 sed 's/^/| /' conftest.$ac_ext >&5
12231 ac_header_preproc=no
12234 rm -f conftest.err conftest.$ac_ext
12235 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12236 echo "${ECHO_T}$ac_header_preproc" >&6; }
12238 # So? What about this header?
12239 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12241 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12242 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12243 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12244 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12245 ac_header_preproc=yes
12248 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12249 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12250 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12251 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12252 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12253 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12254 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12255 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12256 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12257 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12258 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12259 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12263 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12264 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12265 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12266 echo $ECHO_N "(cached) $ECHO_C" >&6
12268 eval "$as_ac_Header=\$ac_header_preproc"
12270 ac_res=`eval echo '${'$as_ac_Header'}'`
12271 { echo "$as_me:$LINENO: result: $ac_res" >&5
12272 echo "${ECHO_T}$ac_res" >&6; }
12275 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12276 cat >>confdefs.h <<_ACEOF
12277 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12291 { echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
12292 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6; }
12293 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
12294 echo $ECHO_N "(cached) $ECHO_C" >&6
12296 cat >conftest.$ac_ext <<_ACEOF
12299 cat confdefs.h >>conftest.$ac_ext
12300 cat >>conftest.$ac_ext <<_ACEOF
12301 /* end confdefs.h. */
12302 $ac_includes_default
12303 typedef ptrdiff_t ac__type_new_;
12307 if ((ac__type_new_ *) 0)
12309 if (sizeof (ac__type_new_))
12315 rm -f conftest.$ac_objext
12316 if { (ac_try="$ac_compile"
12317 case "(($ac_try" in
12318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12319 *) ac_try_echo=$ac_try;;
12321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12322 (eval "$ac_compile") 2>conftest.er1
12324 grep -v '^ *+' conftest.er1 >conftest.err
12326 cat conftest.err >&5
12327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12328 (exit $ac_status); } &&
12329 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12330 { (case "(($ac_try" in
12331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12332 *) ac_try_echo=$ac_try;;
12334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12335 (eval "$ac_try") 2>&5
12337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12338 (exit $ac_status); }; } &&
12339 { ac_try='test -s conftest.$ac_objext'
12340 { (case "(($ac_try" in
12341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12342 *) ac_try_echo=$ac_try;;
12344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12345 (eval "$ac_try") 2>&5
12347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12348 (exit $ac_status); }; }; then
12349 ac_cv_type_ptrdiff_t=yes
12351 echo "$as_me: failed program was:" >&5
12352 sed 's/^/| /' conftest.$ac_ext >&5
12354 ac_cv_type_ptrdiff_t=no
12357 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12359 { echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
12360 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; }
12361 if test $ac_cv_type_ptrdiff_t = yes; then
12365 cat >>confdefs.h <<\_ACEOF
12366 #define ptrdiff_t long
12382 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
12383 stdlib.h string.h unistd.h sys/param.h
12385 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12386 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12387 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12388 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12389 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12390 echo $ECHO_N "(cached) $ECHO_C" >&6
12392 ac_res=`eval echo '${'$as_ac_Header'}'`
12393 { echo "$as_me:$LINENO: result: $ac_res" >&5
12394 echo "${ECHO_T}$ac_res" >&6; }
12396 # Is the header compilable?
12397 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12398 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12399 cat >conftest.$ac_ext <<_ACEOF
12402 cat confdefs.h >>conftest.$ac_ext
12403 cat >>conftest.$ac_ext <<_ACEOF
12404 /* end confdefs.h. */
12405 $ac_includes_default
12406 #include <$ac_header>
12408 rm -f conftest.$ac_objext
12409 if { (ac_try="$ac_compile"
12410 case "(($ac_try" in
12411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12412 *) ac_try_echo=$ac_try;;
12414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12415 (eval "$ac_compile") 2>conftest.er1
12417 grep -v '^ *+' conftest.er1 >conftest.err
12419 cat conftest.err >&5
12420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12421 (exit $ac_status); } &&
12422 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12423 { (case "(($ac_try" in
12424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12425 *) ac_try_echo=$ac_try;;
12427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12428 (eval "$ac_try") 2>&5
12430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12431 (exit $ac_status); }; } &&
12432 { ac_try='test -s conftest.$ac_objext'
12433 { (case "(($ac_try" in
12434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12435 *) ac_try_echo=$ac_try;;
12437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12438 (eval "$ac_try") 2>&5
12440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12441 (exit $ac_status); }; }; then
12442 ac_header_compiler=yes
12444 echo "$as_me: failed program was:" >&5
12445 sed 's/^/| /' conftest.$ac_ext >&5
12447 ac_header_compiler=no
12450 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12451 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12452 echo "${ECHO_T}$ac_header_compiler" >&6; }
12454 # Is the header present?
12455 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12456 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12457 cat >conftest.$ac_ext <<_ACEOF
12460 cat confdefs.h >>conftest.$ac_ext
12461 cat >>conftest.$ac_ext <<_ACEOF
12462 /* end confdefs.h. */
12463 #include <$ac_header>
12465 if { (ac_try="$ac_cpp conftest.$ac_ext"
12466 case "(($ac_try" in
12467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12468 *) ac_try_echo=$ac_try;;
12470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12471 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12473 grep -v '^ *+' conftest.er1 >conftest.err
12475 cat conftest.err >&5
12476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12477 (exit $ac_status); } >/dev/null; then
12478 if test -s conftest.err; then
12479 ac_cpp_err=$ac_c_preproc_warn_flag
12480 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12487 if test -z "$ac_cpp_err"; then
12488 ac_header_preproc=yes
12490 echo "$as_me: failed program was:" >&5
12491 sed 's/^/| /' conftest.$ac_ext >&5
12493 ac_header_preproc=no
12496 rm -f conftest.err conftest.$ac_ext
12497 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12498 echo "${ECHO_T}$ac_header_preproc" >&6; }
12500 # So? What about this header?
12501 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12503 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12504 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12505 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12506 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12507 ac_header_preproc=yes
12510 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12511 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12512 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12513 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12514 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12515 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12516 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12517 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12518 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12519 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12520 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12521 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12525 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12526 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12527 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12528 echo $ECHO_N "(cached) $ECHO_C" >&6
12530 eval "$as_ac_Header=\$ac_header_preproc"
12532 ac_res=`eval echo '${'$as_ac_Header'}'`
12533 { echo "$as_me:$LINENO: result: $ac_res" >&5
12534 echo "${ECHO_T}$ac_res" >&6; }
12537 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12538 cat >>confdefs.h <<_ACEOF
12539 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12569 for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
12570 mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
12571 strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
12574 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12575 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12576 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12577 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12578 echo $ECHO_N "(cached) $ECHO_C" >&6
12580 cat >conftest.$ac_ext <<_ACEOF
12583 cat confdefs.h >>conftest.$ac_ext
12584 cat >>conftest.$ac_ext <<_ACEOF
12585 /* end confdefs.h. */
12586 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12587 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12588 #define $ac_func innocuous_$ac_func
12590 /* System header to define __stub macros and hopefully few prototypes,
12591 which can conflict with char $ac_func (); below.
12592 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12593 <limits.h> exists even on freestanding compilers. */
12596 # include <limits.h>
12598 # include <assert.h>
12603 /* Override any GCC internal prototype to avoid an error.
12604 Use char because int might match the return type of a GCC
12605 builtin and then its argument prototype would still apply. */
12610 /* The GNU C library defines this for functions which it implements
12611 to always fail with ENOSYS. Some functions are actually named
12612 something starting with __ and the normal name is an alias. */
12613 #if defined __stub_$ac_func || defined __stub___$ac_func
12620 return $ac_func ();
12625 rm -f conftest.$ac_objext conftest$ac_exeext
12626 if { (ac_try="$ac_link"
12627 case "(($ac_try" in
12628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12629 *) ac_try_echo=$ac_try;;
12631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12632 (eval "$ac_link") 2>conftest.er1
12634 grep -v '^ *+' conftest.er1 >conftest.err
12636 cat conftest.err >&5
12637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12638 (exit $ac_status); } &&
12639 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12640 { (case "(($ac_try" in
12641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12642 *) ac_try_echo=$ac_try;;
12644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12645 (eval "$ac_try") 2>&5
12647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12648 (exit $ac_status); }; } &&
12649 { ac_try='test -s conftest$ac_exeext'
12650 { (case "(($ac_try" in
12651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12652 *) ac_try_echo=$ac_try;;
12654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12655 (eval "$ac_try") 2>&5
12657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12658 (exit $ac_status); }; }; then
12659 eval "$as_ac_var=yes"
12661 echo "$as_me: failed program was:" >&5
12662 sed 's/^/| /' conftest.$ac_ext >&5
12664 eval "$as_ac_var=no"
12667 rm -f core conftest.err conftest.$ac_objext \
12668 conftest$ac_exeext conftest.$ac_ext
12670 ac_res=`eval echo '${'$as_ac_var'}'`
12671 { echo "$as_me:$LINENO: result: $ac_res" >&5
12672 echo "${ECHO_T}$ac_res" >&6; }
12673 if test `eval echo '${'$as_ac_var'}'` = yes; then
12674 cat >>confdefs.h <<_ACEOF
12675 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12683 { echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5
12684 echo $ECHO_N "checking whether _snprintf is declared... $ECHO_C" >&6; }
12685 if test "${ac_cv_have_decl__snprintf+set}" = set; then
12686 echo $ECHO_N "(cached) $ECHO_C" >&6
12688 cat >conftest.$ac_ext <<_ACEOF
12691 cat confdefs.h >>conftest.$ac_ext
12692 cat >>conftest.$ac_ext <<_ACEOF
12693 /* end confdefs.h. */
12700 char *p = (char *) _snprintf;
12707 rm -f conftest.$ac_objext
12708 if { (ac_try="$ac_compile"
12709 case "(($ac_try" in
12710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12711 *) ac_try_echo=$ac_try;;
12713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12714 (eval "$ac_compile") 2>conftest.er1
12716 grep -v '^ *+' conftest.er1 >conftest.err
12718 cat conftest.err >&5
12719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12720 (exit $ac_status); } &&
12721 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12722 { (case "(($ac_try" in
12723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12724 *) ac_try_echo=$ac_try;;
12726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12727 (eval "$ac_try") 2>&5
12729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12730 (exit $ac_status); }; } &&
12731 { ac_try='test -s conftest.$ac_objext'
12732 { (case "(($ac_try" in
12733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12734 *) ac_try_echo=$ac_try;;
12736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12737 (eval "$ac_try") 2>&5
12739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12740 (exit $ac_status); }; }; then
12741 ac_cv_have_decl__snprintf=yes
12743 echo "$as_me: failed program was:" >&5
12744 sed 's/^/| /' conftest.$ac_ext >&5
12746 ac_cv_have_decl__snprintf=no
12749 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12751 { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5
12752 echo "${ECHO_T}$ac_cv_have_decl__snprintf" >&6; }
12753 if test $ac_cv_have_decl__snprintf = yes; then
12759 cat >>confdefs.h <<_ACEOF
12760 #define HAVE_DECL__SNPRINTF $gt_value
12765 { echo "$as_me:$LINENO: checking whether _snwprintf is declared" >&5
12766 echo $ECHO_N "checking whether _snwprintf is declared... $ECHO_C" >&6; }
12767 if test "${ac_cv_have_decl__snwprintf+set}" = set; then
12768 echo $ECHO_N "(cached) $ECHO_C" >&6
12770 cat >conftest.$ac_ext <<_ACEOF
12773 cat confdefs.h >>conftest.$ac_ext
12774 cat >>conftest.$ac_ext <<_ACEOF
12775 /* end confdefs.h. */
12782 char *p = (char *) _snwprintf;
12789 rm -f conftest.$ac_objext
12790 if { (ac_try="$ac_compile"
12791 case "(($ac_try" in
12792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12793 *) ac_try_echo=$ac_try;;
12795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12796 (eval "$ac_compile") 2>conftest.er1
12798 grep -v '^ *+' conftest.er1 >conftest.err
12800 cat conftest.err >&5
12801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12802 (exit $ac_status); } &&
12803 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12804 { (case "(($ac_try" in
12805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12806 *) ac_try_echo=$ac_try;;
12808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12809 (eval "$ac_try") 2>&5
12811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12812 (exit $ac_status); }; } &&
12813 { ac_try='test -s conftest.$ac_objext'
12814 { (case "(($ac_try" in
12815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12816 *) ac_try_echo=$ac_try;;
12818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12819 (eval "$ac_try") 2>&5
12821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12822 (exit $ac_status); }; }; then
12823 ac_cv_have_decl__snwprintf=yes
12825 echo "$as_me: failed program was:" >&5
12826 sed 's/^/| /' conftest.$ac_ext >&5
12828 ac_cv_have_decl__snwprintf=no
12831 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12833 { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snwprintf" >&5
12834 echo "${ECHO_T}$ac_cv_have_decl__snwprintf" >&6; }
12835 if test $ac_cv_have_decl__snwprintf = yes; then
12841 cat >>confdefs.h <<_ACEOF
12842 #define HAVE_DECL__SNWPRINTF $gt_value
12848 { echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
12849 echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6; }
12850 if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
12851 echo $ECHO_N "(cached) $ECHO_C" >&6
12853 cat >conftest.$ac_ext <<_ACEOF
12856 cat confdefs.h >>conftest.$ac_ext
12857 cat >>conftest.$ac_ext <<_ACEOF
12858 /* end confdefs.h. */
12864 #ifndef feof_unlocked
12865 char *p = (char *) feof_unlocked;
12872 rm -f conftest.$ac_objext
12873 if { (ac_try="$ac_compile"
12874 case "(($ac_try" in
12875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12876 *) ac_try_echo=$ac_try;;
12878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12879 (eval "$ac_compile") 2>conftest.er1
12881 grep -v '^ *+' conftest.er1 >conftest.err
12883 cat conftest.err >&5
12884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12885 (exit $ac_status); } &&
12886 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12887 { (case "(($ac_try" in
12888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12889 *) ac_try_echo=$ac_try;;
12891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12892 (eval "$ac_try") 2>&5
12894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12895 (exit $ac_status); }; } &&
12896 { ac_try='test -s conftest.$ac_objext'
12897 { (case "(($ac_try" in
12898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12899 *) ac_try_echo=$ac_try;;
12901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12902 (eval "$ac_try") 2>&5
12904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12905 (exit $ac_status); }; }; then
12906 ac_cv_have_decl_feof_unlocked=yes
12908 echo "$as_me: failed program was:" >&5
12909 sed 's/^/| /' conftest.$ac_ext >&5
12911 ac_cv_have_decl_feof_unlocked=no
12914 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12916 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
12917 echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6; }
12918 if test $ac_cv_have_decl_feof_unlocked = yes; then
12924 cat >>confdefs.h <<_ACEOF
12925 #define HAVE_DECL_FEOF_UNLOCKED $gt_value
12930 { echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
12931 echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6; }
12932 if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
12933 echo $ECHO_N "(cached) $ECHO_C" >&6
12935 cat >conftest.$ac_ext <<_ACEOF
12938 cat confdefs.h >>conftest.$ac_ext
12939 cat >>conftest.$ac_ext <<_ACEOF
12940 /* end confdefs.h. */
12946 #ifndef fgets_unlocked
12947 char *p = (char *) fgets_unlocked;
12954 rm -f conftest.$ac_objext
12955 if { (ac_try="$ac_compile"
12956 case "(($ac_try" in
12957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12958 *) ac_try_echo=$ac_try;;
12960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12961 (eval "$ac_compile") 2>conftest.er1
12963 grep -v '^ *+' conftest.er1 >conftest.err
12965 cat conftest.err >&5
12966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12967 (exit $ac_status); } &&
12968 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12969 { (case "(($ac_try" in
12970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12971 *) ac_try_echo=$ac_try;;
12973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12974 (eval "$ac_try") 2>&5
12976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12977 (exit $ac_status); }; } &&
12978 { ac_try='test -s conftest.$ac_objext'
12979 { (case "(($ac_try" in
12980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12981 *) ac_try_echo=$ac_try;;
12983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12984 (eval "$ac_try") 2>&5
12986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12987 (exit $ac_status); }; }; then
12988 ac_cv_have_decl_fgets_unlocked=yes
12990 echo "$as_me: failed program was:" >&5
12991 sed 's/^/| /' conftest.$ac_ext >&5
12993 ac_cv_have_decl_fgets_unlocked=no
12996 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12998 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
12999 echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6; }
13000 if test $ac_cv_have_decl_fgets_unlocked = yes; then
13006 cat >>confdefs.h <<_ACEOF
13007 #define HAVE_DECL_FGETS_UNLOCKED $gt_value
13012 { echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
13013 echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6; }
13014 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
13015 echo $ECHO_N "(cached) $ECHO_C" >&6
13017 cat >conftest.$ac_ext <<_ACEOF
13020 cat confdefs.h >>conftest.$ac_ext
13021 cat >>conftest.$ac_ext <<_ACEOF
13022 /* end confdefs.h. */
13028 #ifndef getc_unlocked
13029 char *p = (char *) getc_unlocked;
13036 rm -f conftest.$ac_objext
13037 if { (ac_try="$ac_compile"
13038 case "(($ac_try" in
13039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13040 *) ac_try_echo=$ac_try;;
13042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13043 (eval "$ac_compile") 2>conftest.er1
13045 grep -v '^ *+' conftest.er1 >conftest.err
13047 cat conftest.err >&5
13048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13049 (exit $ac_status); } &&
13050 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13051 { (case "(($ac_try" in
13052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13053 *) ac_try_echo=$ac_try;;
13055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13056 (eval "$ac_try") 2>&5
13058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13059 (exit $ac_status); }; } &&
13060 { ac_try='test -s conftest.$ac_objext'
13061 { (case "(($ac_try" in
13062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13063 *) ac_try_echo=$ac_try;;
13065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13066 (eval "$ac_try") 2>&5
13068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13069 (exit $ac_status); }; }; then
13070 ac_cv_have_decl_getc_unlocked=yes
13072 echo "$as_me: failed program was:" >&5
13073 sed 's/^/| /' conftest.$ac_ext >&5
13075 ac_cv_have_decl_getc_unlocked=no
13078 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13080 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
13081 echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6; }
13082 if test $ac_cv_have_decl_getc_unlocked = yes; then
13088 cat >>confdefs.h <<_ACEOF
13089 #define HAVE_DECL_GETC_UNLOCKED $gt_value
13094 case $gt_cv_func_printf_posix in
13095 *yes) HAVE_POSIX_PRINTF=1 ;;
13096 *) HAVE_POSIX_PRINTF=0 ;;
13099 if test "$ac_cv_func_asprintf" = yes; then
13105 if test "$ac_cv_func_snprintf" = yes; then
13111 if test "$ac_cv_func_wprintf" = yes; then
13123 am_save_CPPFLAGS="$CPPFLAGS"
13125 for element in $INCICONV; do
13127 for x in $CPPFLAGS; do
13129 acl_save_prefix="$prefix"
13130 prefix="$acl_final_prefix"
13131 acl_save_exec_prefix="$exec_prefix"
13132 exec_prefix="$acl_final_exec_prefix"
13134 exec_prefix="$acl_save_exec_prefix"
13135 prefix="$acl_save_prefix"
13137 if test "X$x" = "X$element"; then
13142 if test -z "$haveit"; then
13143 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
13148 { echo "$as_me:$LINENO: checking for iconv" >&5
13149 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
13150 if test "${am_cv_func_iconv+set}" = set; then
13151 echo $ECHO_N "(cached) $ECHO_C" >&6
13154 am_cv_func_iconv="no, consider installing GNU libiconv"
13156 cat >conftest.$ac_ext <<_ACEOF
13159 cat confdefs.h >>conftest.$ac_ext
13160 cat >>conftest.$ac_ext <<_ACEOF
13161 /* end confdefs.h. */
13162 #include <stdlib.h>
13167 iconv_t cd = iconv_open("","");
13168 iconv(cd,NULL,NULL,NULL,NULL);
13174 rm -f conftest.$ac_objext conftest$ac_exeext
13175 if { (ac_try="$ac_link"
13176 case "(($ac_try" in
13177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13178 *) ac_try_echo=$ac_try;;
13180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13181 (eval "$ac_link") 2>conftest.er1
13183 grep -v '^ *+' conftest.er1 >conftest.err
13185 cat conftest.err >&5
13186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13187 (exit $ac_status); } &&
13188 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13189 { (case "(($ac_try" in
13190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13191 *) ac_try_echo=$ac_try;;
13193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13194 (eval "$ac_try") 2>&5
13196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13197 (exit $ac_status); }; } &&
13198 { ac_try='test -s conftest$ac_exeext'
13199 { (case "(($ac_try" in
13200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13201 *) ac_try_echo=$ac_try;;
13203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13204 (eval "$ac_try") 2>&5
13206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13207 (exit $ac_status); }; }; then
13208 am_cv_func_iconv=yes
13210 echo "$as_me: failed program was:" >&5
13211 sed 's/^/| /' conftest.$ac_ext >&5
13216 rm -f core conftest.err conftest.$ac_objext \
13217 conftest$ac_exeext conftest.$ac_ext
13218 if test "$am_cv_func_iconv" != yes; then
13219 am_save_LIBS="$LIBS"
13220 LIBS="$LIBS $LIBICONV"
13221 cat >conftest.$ac_ext <<_ACEOF
13224 cat confdefs.h >>conftest.$ac_ext
13225 cat >>conftest.$ac_ext <<_ACEOF
13226 /* end confdefs.h. */
13227 #include <stdlib.h>
13232 iconv_t cd = iconv_open("","");
13233 iconv(cd,NULL,NULL,NULL,NULL);
13239 rm -f conftest.$ac_objext conftest$ac_exeext
13240 if { (ac_try="$ac_link"
13241 case "(($ac_try" in
13242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13243 *) ac_try_echo=$ac_try;;
13245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13246 (eval "$ac_link") 2>conftest.er1
13248 grep -v '^ *+' conftest.er1 >conftest.err
13250 cat conftest.err >&5
13251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13252 (exit $ac_status); } &&
13253 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13254 { (case "(($ac_try" in
13255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13256 *) ac_try_echo=$ac_try;;
13258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13259 (eval "$ac_try") 2>&5
13261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13262 (exit $ac_status); }; } &&
13263 { ac_try='test -s conftest$ac_exeext'
13264 { (case "(($ac_try" in
13265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13266 *) ac_try_echo=$ac_try;;
13268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13269 (eval "$ac_try") 2>&5
13271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13272 (exit $ac_status); }; }; then
13273 am_cv_lib_iconv=yes
13274 am_cv_func_iconv=yes
13276 echo "$as_me: failed program was:" >&5
13277 sed 's/^/| /' conftest.$ac_ext >&5
13282 rm -f core conftest.err conftest.$ac_objext \
13283 conftest$ac_exeext conftest.$ac_ext
13284 LIBS="$am_save_LIBS"
13288 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
13289 echo "${ECHO_T}$am_cv_func_iconv" >&6; }
13290 if test "$am_cv_func_iconv" = yes; then
13292 cat >>confdefs.h <<\_ACEOF
13293 #define HAVE_ICONV 1
13297 if test "$am_cv_lib_iconv" = yes; then
13298 { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
13299 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
13300 { echo "$as_me:$LINENO: result: $LIBICONV" >&5
13301 echo "${ECHO_T}$LIBICONV" >&6; }
13303 CPPFLAGS="$am_save_CPPFLAGS"
13310 if test "$am_cv_func_iconv" = yes; then
13311 { echo "$as_me:$LINENO: checking for iconv declaration" >&5
13312 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6; }
13313 if test "${am_cv_proto_iconv+set}" = set; then
13314 echo $ECHO_N "(cached) $ECHO_C" >&6
13317 cat >conftest.$ac_ext <<_ACEOF
13320 cat confdefs.h >>conftest.$ac_ext
13321 cat >>conftest.$ac_ext <<_ACEOF
13322 /* end confdefs.h. */
13324 #include <stdlib.h>
13330 #if defined(__STDC__) || defined(__cplusplus)
13331 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
13344 rm -f conftest.$ac_objext
13345 if { (ac_try="$ac_compile"
13346 case "(($ac_try" in
13347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13348 *) ac_try_echo=$ac_try;;
13350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13351 (eval "$ac_compile") 2>conftest.er1
13353 grep -v '^ *+' conftest.er1 >conftest.err
13355 cat conftest.err >&5
13356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13357 (exit $ac_status); } &&
13358 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13359 { (case "(($ac_try" in
13360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13361 *) ac_try_echo=$ac_try;;
13363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13364 (eval "$ac_try") 2>&5
13366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13367 (exit $ac_status); }; } &&
13368 { ac_try='test -s conftest.$ac_objext'
13369 { (case "(($ac_try" in
13370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13371 *) ac_try_echo=$ac_try;;
13373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13374 (eval "$ac_try") 2>&5
13376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13377 (exit $ac_status); }; }; then
13378 am_cv_proto_iconv_arg1=""
13380 echo "$as_me: failed program was:" >&5
13381 sed 's/^/| /' conftest.$ac_ext >&5
13383 am_cv_proto_iconv_arg1="const"
13386 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13387 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);"
13390 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
13391 { echo "$as_me:$LINENO: result: ${ac_t:-
13392 }$am_cv_proto_iconv" >&5
13393 echo "${ECHO_T}${ac_t:-
13394 }$am_cv_proto_iconv" >&6; }
13396 cat >>confdefs.h <<_ACEOF
13397 #define ICONV_CONST $am_cv_proto_iconv_arg1
13403 { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
13404 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; }
13405 if test "${am_cv_langinfo_codeset+set}" = set; then
13406 echo $ECHO_N "(cached) $ECHO_C" >&6
13408 cat >conftest.$ac_ext <<_ACEOF
13411 cat confdefs.h >>conftest.$ac_ext
13412 cat >>conftest.$ac_ext <<_ACEOF
13413 /* end confdefs.h. */
13414 #include <langinfo.h>
13418 char* cs = nl_langinfo(CODESET);
13423 rm -f conftest.$ac_objext conftest$ac_exeext
13424 if { (ac_try="$ac_link"
13425 case "(($ac_try" in
13426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13427 *) ac_try_echo=$ac_try;;
13429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13430 (eval "$ac_link") 2>conftest.er1
13432 grep -v '^ *+' conftest.er1 >conftest.err
13434 cat conftest.err >&5
13435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13436 (exit $ac_status); } &&
13437 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13438 { (case "(($ac_try" in
13439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13440 *) ac_try_echo=$ac_try;;
13442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13443 (eval "$ac_try") 2>&5
13445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13446 (exit $ac_status); }; } &&
13447 { ac_try='test -s conftest$ac_exeext'
13448 { (case "(($ac_try" in
13449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13450 *) ac_try_echo=$ac_try;;
13452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13453 (eval "$ac_try") 2>&5
13455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13456 (exit $ac_status); }; }; then
13457 am_cv_langinfo_codeset=yes
13459 echo "$as_me: failed program was:" >&5
13460 sed 's/^/| /' conftest.$ac_ext >&5
13462 am_cv_langinfo_codeset=no
13465 rm -f core conftest.err conftest.$ac_objext \
13466 conftest$ac_exeext conftest.$ac_ext
13469 { echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
13470 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6; }
13471 if test $am_cv_langinfo_codeset = yes; then
13473 cat >>confdefs.h <<\_ACEOF
13474 #define HAVE_LANGINFO_CODESET 1
13479 if test $ac_cv_header_locale_h = yes; then
13481 { echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
13482 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6; }
13483 if test "${gt_cv_val_LC_MESSAGES+set}" = set; then
13484 echo $ECHO_N "(cached) $ECHO_C" >&6
13486 cat >conftest.$ac_ext <<_ACEOF
13489 cat confdefs.h >>conftest.$ac_ext
13490 cat >>conftest.$ac_ext <<_ACEOF
13491 /* end confdefs.h. */
13492 #include <locale.h>
13501 rm -f conftest.$ac_objext conftest$ac_exeext
13502 if { (ac_try="$ac_link"
13503 case "(($ac_try" in
13504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13505 *) ac_try_echo=$ac_try;;
13507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13508 (eval "$ac_link") 2>conftest.er1
13510 grep -v '^ *+' conftest.er1 >conftest.err
13512 cat conftest.err >&5
13513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13514 (exit $ac_status); } &&
13515 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13516 { (case "(($ac_try" in
13517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13518 *) ac_try_echo=$ac_try;;
13520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13521 (eval "$ac_try") 2>&5
13523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13524 (exit $ac_status); }; } &&
13525 { ac_try='test -s conftest$ac_exeext'
13526 { (case "(($ac_try" in
13527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13528 *) ac_try_echo=$ac_try;;
13530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13531 (eval "$ac_try") 2>&5
13533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13534 (exit $ac_status); }; }; then
13535 gt_cv_val_LC_MESSAGES=yes
13537 echo "$as_me: failed program was:" >&5
13538 sed 's/^/| /' conftest.$ac_ext >&5
13540 gt_cv_val_LC_MESSAGES=no
13543 rm -f core conftest.err conftest.$ac_objext \
13544 conftest$ac_exeext conftest.$ac_ext
13546 { echo "$as_me:$LINENO: result: $gt_cv_val_LC_MESSAGES" >&5
13547 echo "${ECHO_T}$gt_cv_val_LC_MESSAGES" >&6; }
13548 if test $gt_cv_val_LC_MESSAGES = yes; then
13550 cat >>confdefs.h <<\_ACEOF
13551 #define HAVE_LC_MESSAGES 1
13558 if test -n "$INTL_MACOSX_LIBS"; then
13559 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
13562 for ac_prog in bison
13564 # Extract the first word of "$ac_prog", so it can be a program name with args.
13565 set dummy $ac_prog; ac_word=$2
13566 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13567 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13568 if test "${ac_cv_prog_INTLBISON+set}" = set; then
13569 echo $ECHO_N "(cached) $ECHO_C" >&6
13571 if test -n "$INTLBISON"; then
13572 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
13574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13575 for as_dir in $PATH
13578 test -z "$as_dir" && as_dir=.
13579 for ac_exec_ext in '' $ac_executable_extensions; do
13580 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13581 ac_cv_prog_INTLBISON="$ac_prog"
13582 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13591 INTLBISON=$ac_cv_prog_INTLBISON
13592 if test -n "$INTLBISON"; then
13593 { echo "$as_me:$LINENO: result: $INTLBISON" >&5
13594 echo "${ECHO_T}$INTLBISON" >&6; }
13596 { echo "$as_me:$LINENO: result: no" >&5
13597 echo "${ECHO_T}no" >&6; }
13601 test -n "$INTLBISON" && break
13604 if test -z "$INTLBISON"; then
13607 { echo "$as_me:$LINENO: checking version of bison" >&5
13608 echo $ECHO_N "checking version of bison... $ECHO_C" >&6; }
13609 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
13610 case $ac_prog_version in
13611 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
13612 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
13613 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
13614 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
13616 { echo "$as_me:$LINENO: result: $ac_prog_version" >&5
13617 echo "${ECHO_T}$ac_prog_version" >&6; }
13619 if test $ac_verc_fail = yes; then
13638 { echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
13639 echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6; }
13640 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
13641 echo $ECHO_N "(cached) $ECHO_C" >&6
13643 gt_save_CPPFLAGS="$CPPFLAGS"
13644 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
13645 gt_save_LIBS="$LIBS"
13646 LIBS="$LIBS -framework CoreFoundation"
13647 cat >conftest.$ac_ext <<_ACEOF
13650 cat confdefs.h >>conftest.$ac_ext
13651 cat >>conftest.$ac_ext <<_ACEOF
13652 /* end confdefs.h. */
13653 #include <CFPreferences.h>
13657 CFPreferencesCopyAppValue(NULL, NULL)
13662 rm -f conftest.$ac_objext conftest$ac_exeext
13663 if { (ac_try="$ac_link"
13664 case "(($ac_try" in
13665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13666 *) ac_try_echo=$ac_try;;
13668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13669 (eval "$ac_link") 2>conftest.er1
13671 grep -v '^ *+' conftest.er1 >conftest.err
13673 cat conftest.err >&5
13674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13675 (exit $ac_status); } &&
13676 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13677 { (case "(($ac_try" in
13678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13679 *) ac_try_echo=$ac_try;;
13681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13682 (eval "$ac_try") 2>&5
13684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13685 (exit $ac_status); }; } &&
13686 { ac_try='test -s conftest$ac_exeext'
13687 { (case "(($ac_try" in
13688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13689 *) ac_try_echo=$ac_try;;
13691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13692 (eval "$ac_try") 2>&5
13694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13695 (exit $ac_status); }; }; then
13696 gt_cv_func_CFPreferencesCopyAppValue=yes
13698 echo "$as_me: failed program was:" >&5
13699 sed 's/^/| /' conftest.$ac_ext >&5
13701 gt_cv_func_CFPreferencesCopyAppValue=no
13704 rm -f core conftest.err conftest.$ac_objext \
13705 conftest$ac_exeext conftest.$ac_ext
13706 CPPFLAGS="$gt_save_CPPFLAGS"
13707 LIBS="$gt_save_LIBS"
13709 { echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
13710 echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
13711 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
13713 cat >>confdefs.h <<\_ACEOF
13714 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
13718 { echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
13719 echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6; }
13720 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
13721 echo $ECHO_N "(cached) $ECHO_C" >&6
13723 gt_save_CPPFLAGS="$CPPFLAGS"
13724 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
13725 gt_save_LIBS="$LIBS"
13726 LIBS="$LIBS -framework CoreFoundation"
13727 cat >conftest.$ac_ext <<_ACEOF
13730 cat confdefs.h >>conftest.$ac_ext
13731 cat >>conftest.$ac_ext <<_ACEOF
13732 /* end confdefs.h. */
13733 #include <CFLocale.h>
13737 CFLocaleCopyCurrent();
13742 rm -f conftest.$ac_objext conftest$ac_exeext
13743 if { (ac_try="$ac_link"
13744 case "(($ac_try" in
13745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13746 *) ac_try_echo=$ac_try;;
13748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13749 (eval "$ac_link") 2>conftest.er1
13751 grep -v '^ *+' conftest.er1 >conftest.err
13753 cat conftest.err >&5
13754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13755 (exit $ac_status); } &&
13756 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13757 { (case "(($ac_try" in
13758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13759 *) ac_try_echo=$ac_try;;
13761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13762 (eval "$ac_try") 2>&5
13764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13765 (exit $ac_status); }; } &&
13766 { ac_try='test -s conftest$ac_exeext'
13767 { (case "(($ac_try" in
13768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13769 *) ac_try_echo=$ac_try;;
13771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13772 (eval "$ac_try") 2>&5
13774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13775 (exit $ac_status); }; }; then
13776 gt_cv_func_CFLocaleCopyCurrent=yes
13778 echo "$as_me: failed program was:" >&5
13779 sed 's/^/| /' conftest.$ac_ext >&5
13781 gt_cv_func_CFLocaleCopyCurrent=no
13784 rm -f core conftest.err conftest.$ac_objext \
13785 conftest$ac_exeext conftest.$ac_ext
13786 CPPFLAGS="$gt_save_CPPFLAGS"
13787 LIBS="$gt_save_LIBS"
13789 { echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
13790 echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6; }
13791 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
13793 cat >>confdefs.h <<\_ACEOF
13794 #define HAVE_CFLOCALECOPYCURRENT 1
13799 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
13800 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
13806 { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
13807 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
13808 # Check whether --enable-nls was given.
13809 if test "${enable_nls+set}" = set; then
13810 enableval=$enable_nls; USE_NLS=$enableval
13815 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
13816 echo "${ECHO_T}$USE_NLS" >&6; }
13821 BUILD_INCLUDED_LIBINTL=no
13822 USE_INCLUDED_LIBINTL=no
13828 if test "$USE_NLS" = "yes"; then
13829 gt_use_preinstalled_gnugettext=no
13831 { echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
13832 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6; }
13834 # Check whether --with-included-gettext was given.
13835 if test "${with_included_gettext+set}" = set; then
13836 withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
13838 nls_cv_force_use_gnu_gettext=no
13841 { echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
13842 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6; }
13844 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
13845 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
13852 { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
13853 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
13854 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
13855 echo $ECHO_N "(cached) $ECHO_C" >&6
13857 cat >conftest.$ac_ext <<_ACEOF
13860 cat confdefs.h >>conftest.$ac_ext
13861 cat >>conftest.$ac_ext <<_ACEOF
13862 /* end confdefs.h. */
13863 #include <libintl.h>
13864 extern int _nl_msg_cat_cntr;
13865 extern int *_nl_domain_bindings;
13869 bindtextdomain ("", "");
13870 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
13875 rm -f conftest.$ac_objext conftest$ac_exeext
13876 if { (ac_try="$ac_link"
13877 case "(($ac_try" in
13878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13879 *) ac_try_echo=$ac_try;;
13881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13882 (eval "$ac_link") 2>conftest.er1
13884 grep -v '^ *+' conftest.er1 >conftest.err
13886 cat conftest.err >&5
13887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13888 (exit $ac_status); } &&
13889 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13890 { (case "(($ac_try" in
13891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13892 *) ac_try_echo=$ac_try;;
13894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13895 (eval "$ac_try") 2>&5
13897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13898 (exit $ac_status); }; } &&
13899 { ac_try='test -s conftest$ac_exeext'
13900 { (case "(($ac_try" in
13901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13902 *) ac_try_echo=$ac_try;;
13904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13905 (eval "$ac_try") 2>&5
13907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13908 (exit $ac_status); }; }; then
13909 gt_cv_func_gnugettext1_libc=yes
13911 echo "$as_me: failed program was:" >&5
13912 sed 's/^/| /' conftest.$ac_ext >&5
13914 gt_cv_func_gnugettext1_libc=no
13917 rm -f core conftest.err conftest.$ac_objext \
13918 conftest$ac_exeext conftest.$ac_ext
13920 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
13921 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6; }
13923 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
13929 acl_save_prefix="$prefix"
13930 prefix="$acl_final_prefix"
13931 acl_save_exec_prefix="$exec_prefix"
13932 exec_prefix="$acl_final_exec_prefix"
13934 eval additional_includedir=\"$includedir\"
13935 eval additional_libdir=\"$libdir\"
13937 exec_prefix="$acl_save_exec_prefix"
13938 prefix="$acl_save_prefix"
13941 # Check whether --with-libintl-prefix was given.
13942 if test "${with_libintl_prefix+set}" = set; then
13943 withval=$with_libintl_prefix;
13944 if test "X$withval" = "Xno"; then
13947 if test "X$withval" = "X"; then
13949 acl_save_prefix="$prefix"
13950 prefix="$acl_final_prefix"
13951 acl_save_exec_prefix="$exec_prefix"
13952 exec_prefix="$acl_final_exec_prefix"
13954 eval additional_includedir=\"$includedir\"
13955 eval additional_libdir=\"$libdir\"
13957 exec_prefix="$acl_save_exec_prefix"
13958 prefix="$acl_save_prefix"
13961 additional_includedir="$withval/include"
13962 additional_libdir="$withval/lib"
13973 names_already_handled=
13974 names_next_round='intl '
13975 while test -n "$names_next_round"; do
13976 names_this_round="$names_next_round"
13978 for name in $names_this_round; do
13980 for n in $names_already_handled; do
13981 if test "$n" = "$name"; then
13982 already_handled=yes
13986 if test -z "$already_handled"; then
13987 names_already_handled="$names_already_handled $name"
13988 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
13989 eval value=\"\$HAVE_LIB$uppername\"
13990 if test -n "$value"; then
13991 if test "$value" = yes; then
13992 eval value=\"\$LIB$uppername\"
13993 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
13994 eval value=\"\$LTLIB$uppername\"
13995 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
14004 if test $use_additional = yes; then
14005 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
14006 found_dir="$additional_libdir"
14007 found_so="$additional_libdir/lib$name.$shlibext"
14008 if test -f "$additional_libdir/lib$name.la"; then
14009 found_la="$additional_libdir/lib$name.la"
14012 if test -f "$additional_libdir/lib$name.$libext"; then
14013 found_dir="$additional_libdir"
14014 found_a="$additional_libdir/lib$name.$libext"
14015 if test -f "$additional_libdir/lib$name.la"; then
14016 found_la="$additional_libdir/lib$name.la"
14021 if test "X$found_dir" = "X"; then
14022 for x in $LDFLAGS $LTLIBINTL; do
14024 acl_save_prefix="$prefix"
14025 prefix="$acl_final_prefix"
14026 acl_save_exec_prefix="$exec_prefix"
14027 exec_prefix="$acl_final_exec_prefix"
14029 exec_prefix="$acl_save_exec_prefix"
14030 prefix="$acl_save_prefix"
14034 dir=`echo "X$x" | sed -e 's/^X-L//'`
14035 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
14037 found_so="$dir/lib$name.$shlibext"
14038 if test -f "$dir/lib$name.la"; then
14039 found_la="$dir/lib$name.la"
14042 if test -f "$dir/lib$name.$libext"; then
14044 found_a="$dir/lib$name.$libext"
14045 if test -f "$dir/lib$name.la"; then
14046 found_la="$dir/lib$name.la"
14052 if test "X$found_dir" != "X"; then
14057 if test "X$found_dir" != "X"; then
14058 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
14059 if test "X$found_so" != "X"; then
14060 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
14061 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
14064 for x in $ltrpathdirs; do
14065 if test "X$x" = "X$found_dir"; then
14070 if test -z "$haveit"; then
14071 ltrpathdirs="$ltrpathdirs $found_dir"
14073 if test "$hardcode_direct" = yes; then
14074 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
14076 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
14077 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
14079 for x in $rpathdirs; do
14080 if test "X$x" = "X$found_dir"; then
14085 if test -z "$haveit"; then
14086 rpathdirs="$rpathdirs $found_dir"
14090 for x in $LDFLAGS $LIBINTL; do
14092 acl_save_prefix="$prefix"
14093 prefix="$acl_final_prefix"
14094 acl_save_exec_prefix="$exec_prefix"
14095 exec_prefix="$acl_final_exec_prefix"
14097 exec_prefix="$acl_save_exec_prefix"
14098 prefix="$acl_save_prefix"
14100 if test "X$x" = "X-L$found_dir"; then
14105 if test -z "$haveit"; then
14106 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
14108 if test "$hardcode_minus_L" != no; then
14109 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
14111 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
14117 if test "X$found_a" != "X"; then
14118 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
14120 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
14123 additional_includedir=
14124 case "$found_dir" in
14126 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
14127 additional_includedir="$basedir/include"
14130 if test "X$additional_includedir" != "X"; then
14131 if test "X$additional_includedir" != "X/usr/include"; then
14133 if test "X$additional_includedir" = "X/usr/local/include"; then
14134 if test -n "$GCC"; then
14136 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
14140 if test -z "$haveit"; then
14141 for x in $CPPFLAGS $INCINTL; do
14143 acl_save_prefix="$prefix"
14144 prefix="$acl_final_prefix"
14145 acl_save_exec_prefix="$exec_prefix"
14146 exec_prefix="$acl_final_exec_prefix"
14148 exec_prefix="$acl_save_exec_prefix"
14149 prefix="$acl_save_prefix"
14151 if test "X$x" = "X-I$additional_includedir"; then
14156 if test -z "$haveit"; then
14157 if test -d "$additional_includedir"; then
14158 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
14164 if test -n "$found_la"; then
14165 save_libdir="$libdir"
14166 case "$found_la" in
14167 */* | *\\*) . "$found_la" ;;
14168 *) . "./$found_la" ;;
14170 libdir="$save_libdir"
14171 for dep in $dependency_libs; do
14174 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
14175 if test "X$additional_libdir" != "X/usr/lib"; then
14177 if test "X$additional_libdir" = "X/usr/local/lib"; then
14178 if test -n "$GCC"; then
14180 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
14184 if test -z "$haveit"; then
14186 for x in $LDFLAGS $LIBINTL; do
14188 acl_save_prefix="$prefix"
14189 prefix="$acl_final_prefix"
14190 acl_save_exec_prefix="$exec_prefix"
14191 exec_prefix="$acl_final_exec_prefix"
14193 exec_prefix="$acl_save_exec_prefix"
14194 prefix="$acl_save_prefix"
14196 if test "X$x" = "X-L$additional_libdir"; then
14201 if test -z "$haveit"; then
14202 if test -d "$additional_libdir"; then
14203 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
14207 for x in $LDFLAGS $LTLIBINTL; do
14209 acl_save_prefix="$prefix"
14210 prefix="$acl_final_prefix"
14211 acl_save_exec_prefix="$exec_prefix"
14212 exec_prefix="$acl_final_exec_prefix"
14214 exec_prefix="$acl_save_exec_prefix"
14215 prefix="$acl_save_prefix"
14217 if test "X$x" = "X-L$additional_libdir"; then
14222 if test -z "$haveit"; then
14223 if test -d "$additional_libdir"; then
14224 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
14231 dir=`echo "X$dep" | sed -e 's/^X-R//'`
14232 if test "$enable_rpath" != no; then
14234 for x in $rpathdirs; do
14235 if test "X$x" = "X$dir"; then
14240 if test -z "$haveit"; then
14241 rpathdirs="$rpathdirs $dir"
14244 for x in $ltrpathdirs; do
14245 if test "X$x" = "X$dir"; then
14250 if test -z "$haveit"; then
14251 ltrpathdirs="$ltrpathdirs $dir"
14256 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
14259 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
14262 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
14263 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
14269 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
14270 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
14276 if test "X$rpathdirs" != "X"; then
14277 if test -n "$hardcode_libdir_separator"; then
14279 for found_dir in $rpathdirs; do
14280 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
14282 acl_save_libdir="$libdir"
14284 eval flag=\"$hardcode_libdir_flag_spec\"
14285 libdir="$acl_save_libdir"
14286 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
14288 for found_dir in $rpathdirs; do
14289 acl_save_libdir="$libdir"
14290 libdir="$found_dir"
14291 eval flag=\"$hardcode_libdir_flag_spec\"
14292 libdir="$acl_save_libdir"
14293 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
14297 if test "X$ltrpathdirs" != "X"; then
14298 for found_dir in $ltrpathdirs; do
14299 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
14303 { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
14304 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
14305 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
14306 echo $ECHO_N "(cached) $ECHO_C" >&6
14308 gt_save_CPPFLAGS="$CPPFLAGS"
14309 CPPFLAGS="$CPPFLAGS $INCINTL"
14310 gt_save_LIBS="$LIBS"
14311 LIBS="$LIBS $LIBINTL"
14312 cat >conftest.$ac_ext <<_ACEOF
14315 cat confdefs.h >>conftest.$ac_ext
14316 cat >>conftest.$ac_ext <<_ACEOF
14317 /* end confdefs.h. */
14318 #include <libintl.h>
14319 extern int _nl_msg_cat_cntr;
14324 const char *_nl_expand_alias (const char *);
14328 bindtextdomain ("", "");
14329 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
14334 rm -f conftest.$ac_objext conftest$ac_exeext
14335 if { (ac_try="$ac_link"
14336 case "(($ac_try" in
14337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14338 *) ac_try_echo=$ac_try;;
14340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14341 (eval "$ac_link") 2>conftest.er1
14343 grep -v '^ *+' conftest.er1 >conftest.err
14345 cat conftest.err >&5
14346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14347 (exit $ac_status); } &&
14348 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14349 { (case "(($ac_try" in
14350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14351 *) ac_try_echo=$ac_try;;
14353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14354 (eval "$ac_try") 2>&5
14356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14357 (exit $ac_status); }; } &&
14358 { ac_try='test -s conftest$ac_exeext'
14359 { (case "(($ac_try" in
14360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14361 *) ac_try_echo=$ac_try;;
14363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14364 (eval "$ac_try") 2>&5
14366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14367 (exit $ac_status); }; }; then
14368 gt_cv_func_gnugettext1_libintl=yes
14370 echo "$as_me: failed program was:" >&5
14371 sed 's/^/| /' conftest.$ac_ext >&5
14373 gt_cv_func_gnugettext1_libintl=no
14376 rm -f core conftest.err conftest.$ac_objext \
14377 conftest$ac_exeext conftest.$ac_ext
14378 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
14379 LIBS="$LIBS $LIBICONV"
14380 cat >conftest.$ac_ext <<_ACEOF
14383 cat confdefs.h >>conftest.$ac_ext
14384 cat >>conftest.$ac_ext <<_ACEOF
14385 /* end confdefs.h. */
14386 #include <libintl.h>
14387 extern int _nl_msg_cat_cntr;
14392 const char *_nl_expand_alias (const char *);
14396 bindtextdomain ("", "");
14397 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
14402 rm -f conftest.$ac_objext conftest$ac_exeext
14403 if { (ac_try="$ac_link"
14404 case "(($ac_try" in
14405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14406 *) ac_try_echo=$ac_try;;
14408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14409 (eval "$ac_link") 2>conftest.er1
14411 grep -v '^ *+' conftest.er1 >conftest.err
14413 cat conftest.err >&5
14414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14415 (exit $ac_status); } &&
14416 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14417 { (case "(($ac_try" in
14418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14419 *) ac_try_echo=$ac_try;;
14421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14422 (eval "$ac_try") 2>&5
14424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14425 (exit $ac_status); }; } &&
14426 { ac_try='test -s conftest$ac_exeext'
14427 { (case "(($ac_try" in
14428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14429 *) ac_try_echo=$ac_try;;
14431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14432 (eval "$ac_try") 2>&5
14434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14435 (exit $ac_status); }; }; then
14436 LIBINTL="$LIBINTL $LIBICONV"
14437 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
14438 gt_cv_func_gnugettext1_libintl=yes
14441 echo "$as_me: failed program was:" >&5
14442 sed 's/^/| /' conftest.$ac_ext >&5
14447 rm -f core conftest.err conftest.$ac_objext \
14448 conftest$ac_exeext conftest.$ac_ext
14450 CPPFLAGS="$gt_save_CPPFLAGS"
14451 LIBS="$gt_save_LIBS"
14453 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
14454 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6; }
14457 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
14458 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
14459 && test "$PACKAGE" != gettext-runtime \
14460 && test "$PACKAGE" != gettext-tools; }; then
14461 gt_use_preinstalled_gnugettext=yes
14469 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
14470 nls_cv_use_gnu_gettext=yes
14474 if test "$nls_cv_use_gnu_gettext" = "yes"; then
14475 BUILD_INCLUDED_LIBINTL=yes
14476 USE_INCLUDED_LIBINTL=yes
14477 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
14478 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
14479 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
14483 if test "$gt_use_preinstalled_gnugettext" = "yes" \
14484 || test "$nls_cv_use_gnu_gettext" = "yes"; then
14489 if test -n "$INTL_MACOSX_LIBS"; then
14490 if test "$gt_use_preinstalled_gnugettext" = "yes" \
14491 || test "$nls_cv_use_gnu_gettext" = "yes"; then
14492 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
14493 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
14497 if test "$gt_use_preinstalled_gnugettext" = "yes" \
14498 || test "$nls_cv_use_gnu_gettext" = "yes"; then
14500 cat >>confdefs.h <<\_ACEOF
14501 #define ENABLE_NLS 1
14509 { echo "$as_me:$LINENO: checking whether to use NLS" >&5
14510 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; }
14511 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
14512 echo "${ECHO_T}$USE_NLS" >&6; }
14513 if test "$USE_NLS" = "yes"; then
14514 { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
14515 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; }
14516 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
14517 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
14518 gt_source="external libintl"
14523 gt_source="included intl directory"
14525 { echo "$as_me:$LINENO: result: $gt_source" >&5
14526 echo "${ECHO_T}$gt_source" >&6; }
14529 if test "$USE_NLS" = "yes"; then
14531 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
14532 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
14533 { echo "$as_me:$LINENO: checking how to link with libintl" >&5
14534 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; }
14535 { echo "$as_me:$LINENO: result: $LIBINTL" >&5
14536 echo "${ECHO_T}$LIBINTL" >&6; }
14538 for element in $INCINTL; do
14540 for x in $CPPFLAGS; do
14542 acl_save_prefix="$prefix"
14543 prefix="$acl_final_prefix"
14544 acl_save_exec_prefix="$exec_prefix"
14545 exec_prefix="$acl_final_exec_prefix"
14547 exec_prefix="$acl_save_exec_prefix"
14548 prefix="$acl_save_prefix"
14550 if test "X$x" = "X$element"; then
14555 if test -z "$haveit"; then
14556 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
14563 cat >>confdefs.h <<\_ACEOF
14564 #define HAVE_GETTEXT 1
14568 cat >>confdefs.h <<\_ACEOF
14569 #define HAVE_DCGETTEXT 1
14578 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
14579 BUILD_INCLUDED_LIBINTL=yes
14586 nls_cv_header_intl=
14587 nls_cv_header_libgt=
14599 if test "$USE_INCLUDED_LIBINTL" = yes; then
14600 INTLOBJS="\$(GETTOBJS)"
14604 INTL_LIBTOOL_SUFFIX_PREFIX=
14608 INTLLIBS="$LIBINTL"
14621 support_postgresql=no
14622 support_smartalloc=yes
14623 support_readline=yes
14627 support_wx_console=no
14632 support_static_tools=no
14633 support_static_fd=no
14634 support_static_sd=no
14635 support_static_dir=no
14636 support_static_cons=no
14638 build_client_only=no
14646 # -------------------------------------------
14647 # gnome (default off)
14648 # -------------------------------------------
14649 # Check whether --enable-gnome was given.
14650 if test "${enable_gnome+set}" = set; then
14651 enableval=$enable_gnome; if test x$enableval = xyes; then
14658 if test x$support_gnome = xyes; then
14659 abc=`$PKGCONFIG --exists libgnomeui-2.0`
14661 if test $pkg = 0; then
14662 GNOME_INCLUDEDIR=`$PKGCONFIG --cflags-only-I libgnomeui-2.0`
14663 GNOMEUI_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
14664 GNOME_LIBDIR=`$PKGCONFIG --libs libgnomeui-2.0`
14665 GNOME_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
14670 GNOME_DIR=src/gnome2-console
14671 gnome_version="Version 2.x"
14673 { { echo "$as_me:$LINENO: error: Unable to find Gnome 2 installation" >&5
14674 echo "$as_me: error: Unable to find Gnome 2 installation" >&2;}
14675 { (exit 1); exit 1; }; }
14680 # -------------------------------------------
14681 # bat (default off)
14682 # -------------------------------------------
14683 # Check whether --enable-bat was given.
14684 if test "${enable_bat+set}" = set; then
14685 enableval=$enable_bat; if test x$enableval = xyes; then
14687 cat >>confdefs.h <<\_ACEOF
14697 if test x$support_bat = xyes; then
14698 abc=`$PKGCONFIG --atleast-version=4.2 QtGui`
14700 if test $pkg = 0; then
14701 BAT_DIR=src/qt-console
14703 { { echo "$as_me:$LINENO: error: Unable to find Qt4 installation needed by bat" >&5
14704 echo "$as_me: error: Unable to find Qt4 installation needed by bat" >&2;}
14705 { (exit 1); exit 1; }; }
14711 # -------------------------------------------
14712 # bwx-console (default off)
14713 # -------------------------------------------
14714 # Check whether --enable-bwx-console was given.
14715 if test "${enable_bwx_console+set}" = set; then
14716 enableval=$enable_bwx_console; if test x$enableval = xyes; then
14717 support_wx_console=yes
14723 if test x$support_wx_console = xyes; then
14724 abc=`$WXCONFIG $WXFLAGS --cppflags`
14726 if test $pkg = 0; then
14727 wx_version="wxWidgets `$WXCONFIG $WXFLAGS --release`"
14728 WXCONS_CPPFLAGS=`$WXCONFIG $WXFLAGS --cppflags`
14729 WXCONS_LDFLAGS=`$WXCONFIG $WXFLAGS --libs`
14733 WX_DIR=src/wx-console
14736 echo "wx-config program not found. bwx-console disabled."
14738 support_wx_console=no
14744 # -------------------------------------------
14745 # tray-monitor (default off)
14746 # -------------------------------------------
14747 # Check whether --enable-tray-monitor was given.
14748 if test "${enable_tray_monitor+set}" = set; then
14749 enableval=$enable_tray_monitor; if test x$enableval = xyes; then
14750 support_tray_monitor=yes
14756 if test x$support_tray_monitor = xyes; then
14757 abc=`$PKGCONFIG --exists gtk+-2.0`
14759 if test $pkg = 0; then
14760 TRAY_MONITOR_CPPFLAGS=`$PKGCONFIG --cflags gtk+-2.0`
14761 TRAY_MONITOR_LDFLAGS=`$PKGCONFIG --libs gtk+-2.0`
14764 TRAY_MONITOR_DIR=src/tray-monitor
14765 abc=`$PKGCONFIG --atleast-version=2.4 gtk+-2.0`
14767 if test $pkg = 0; then
14768 cat >>confdefs.h <<\_ACEOF
14769 #define HAVE_GTK_2_4 1
14777 # -------------------------------------------
14778 # smartalloc (default off)
14779 # -------------------------------------------
14780 # Check whether --enable-smartalloc was given.
14781 if test "${enable_smartalloc+set}" = set; then
14782 enableval=$enable_smartalloc; if test x$enableval = xno; then
14783 support_smartalloc=no
14788 if test x$support_smartalloc = xyes; then
14789 cat >>confdefs.h <<\_ACEOF
14790 #define SMARTALLOC 1
14795 # -------------------------------------------
14796 # static-tools (default off)
14797 # -------------------------------------------
14798 # Check whether --enable-static-tools was given.
14799 if test "${enable_static_tools+set}" = set; then
14800 enableval=$enable_static_tools; if test x$enableval = xyes; then
14801 support_static_tools=yes
14807 if test x$support_static_tools = xyes; then
14808 TTOOL_LDFLAGS="-static"
14812 # -------------------------------------------
14813 # static-fd (default off)
14814 # -------------------------------------------
14815 # Check whether --enable-static-fd was given.
14816 if test "${enable_static_fd+set}" = set; then
14817 enableval=$enable_static_fd; if test x$enableval = xyes; then
14818 support_static_fd=yes
14824 if test x$support_static_fd = xyes; then
14825 STATIC_FD="static-bacula-fd"
14829 # -------------------------------------------
14830 # static-sd (default off)
14831 # -------------------------------------------
14832 # Check whether --enable-static-sd was given.
14833 if test "${enable_static_sd+set}" = set; then
14834 enableval=$enable_static_sd; if test x$enableval = xyes; then
14835 support_static_sd=yes
14841 if test x$support_static_sd = xyes; then
14842 STATIC_SD="static-bacula-sd"
14846 # -------------------------------------------
14847 # static-dir (default off)
14848 # -------------------------------------------
14849 # Check whether --enable-static-dir was given.
14850 if test "${enable_static_dir+set}" = set; then
14851 enableval=$enable_static_dir; if test x$enableval = xyes; then
14852 support_static_dir=yes
14858 if test x$support_static_dir = xyes; then
14859 STATIC_DIR="static-bacula-dir"
14863 # -------------------------------------------
14864 # static-cons (default off)
14865 # -------------------------------------------
14866 # Check whether --enable-static-cons was given.
14867 if test "${enable_static_cons+set}" = set; then
14868 enableval=$enable_static_cons; if test x$enableval = xyes; then
14869 support_static_cons=yes
14877 if test x$support_static_cons = xyes; then
14878 STATIC_CONS="static-bconsole"
14879 STATIC_GNOME_CONS="static-bgnome-console"
14880 STATIC_WX_CONS="static-bwx-console"
14886 # -------------------------------------------
14887 # client_only (default off)
14888 # -------------------------------------------
14889 # Check whether --enable-client-only was given.
14890 if test "${enable_client_only+set}" = set; then
14891 enableval=$enable_client_only; if test x$enableval = xyes; then
14892 build_client_only=yes
14898 if test x$build_client_only = xno; then
14905 # -------------------------------------------
14906 # director (default on)
14907 # -------------------------------------------
14908 # Check whether --enable-build-dird was given.
14909 if test "${enable_build_dird+set}" = set; then
14910 enableval=$enable_build_dird; if test x$enableval = xno; then
14915 if test x$build_dird = xyes; then
14916 DIRD_DIR="src/dird"
14917 DIR_TOOLS="DIRTOOLS"
14920 DIR_TOOLS="NODIRTOOLS"
14925 # -------------------------------------------
14926 # stored (default on)
14927 # -------------------------------------------
14928 # Check whether --enable-build-stored was given.
14929 if test "${enable_build_stored+set}" = set; then
14930 enableval=$enable_build_stored; if test x$enableval = xno; then
14935 if test x$build_stored = xyes; then
14936 STORED_DIR="src/stored"
14942 # ---------------------------------------------------
14943 # Check for conio (Bacula readline substitute)(
14944 # ---------------------------------------------------
14945 # this allows you to turn it completely off
14946 # Check whether --enable-conio was given.
14947 if test "${enable_conio+set}" = set; then
14948 enableval=$enable_conio; if test x$enableval = xno; then
14956 # ---------------------------------------------------
14957 # Check for IPv6 support
14958 # ---------------------------------------------------
14959 # this allows you to turn it completely off
14961 # Check whether --enable-ipv6 was given.
14962 if test "${enable_ipv6+set}" = set; then
14963 enableval=$enable_ipv6; if test x$enableval = xno; then
14970 if test x$support_ipv6 = xyes; then
14971 cat >conftest.$ac_ext <<_ACEOF
14974 cat confdefs.h >>conftest.$ac_ext
14975 cat >>conftest.$ac_ext <<_ACEOF
14976 /* end confdefs.h. */
14977 #include <sys/types.h>
14978 #include <sys/socket.h>
14979 #include <netinet/in.h>
14983 struct sockaddr_in6 s; struct in6_addr t=in6addr_any; int i=AF_INET6; s; t.s6_addr[0] = 0;
14988 rm -f conftest.$ac_objext conftest$ac_exeext
14989 if { (ac_try="$ac_link"
14990 case "(($ac_try" in
14991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14992 *) ac_try_echo=$ac_try;;
14994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14995 (eval "$ac_link") 2>conftest.er1
14997 grep -v '^ *+' conftest.er1 >conftest.err
14999 cat conftest.err >&5
15000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15001 (exit $ac_status); } &&
15002 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15003 { (case "(($ac_try" in
15004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15005 *) ac_try_echo=$ac_try;;
15007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15008 (eval "$ac_try") 2>&5
15010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15011 (exit $ac_status); }; } &&
15012 { ac_try='test -s conftest$ac_exeext'
15013 { (case "(($ac_try" in
15014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15015 *) ac_try_echo=$ac_try;;
15017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15018 (eval "$ac_try") 2>&5
15020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15021 (exit $ac_status); }; }; then
15024 echo "$as_me: failed program was:" >&5
15025 sed 's/^/| /' conftest.$ac_ext >&5
15030 rm -f core conftest.err conftest.$ac_objext \
15031 conftest$ac_exeext conftest.$ac_ext
15034 if test x$support_ipv6 = xyes; then
15036 cat >>confdefs.h <<\_ACEOF
15037 #define HAVE_IPV6 1
15045 if test x$support_conio = xyes; then
15046 if test "${ac_cv_header_termcap_h+set}" = set; then
15047 { echo "$as_me:$LINENO: checking for termcap.h" >&5
15048 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6; }
15049 if test "${ac_cv_header_termcap_h+set}" = set; then
15050 echo $ECHO_N "(cached) $ECHO_C" >&6
15052 { echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
15053 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6; }
15055 # Is the header compilable?
15056 { echo "$as_me:$LINENO: checking termcap.h usability" >&5
15057 echo $ECHO_N "checking termcap.h usability... $ECHO_C" >&6; }
15058 cat >conftest.$ac_ext <<_ACEOF
15061 cat confdefs.h >>conftest.$ac_ext
15062 cat >>conftest.$ac_ext <<_ACEOF
15063 /* end confdefs.h. */
15064 $ac_includes_default
15065 #include <termcap.h>
15067 rm -f conftest.$ac_objext
15068 if { (ac_try="$ac_compile"
15069 case "(($ac_try" in
15070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15071 *) ac_try_echo=$ac_try;;
15073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15074 (eval "$ac_compile") 2>conftest.er1
15076 grep -v '^ *+' conftest.er1 >conftest.err
15078 cat conftest.err >&5
15079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15080 (exit $ac_status); } &&
15081 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15082 { (case "(($ac_try" in
15083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15084 *) ac_try_echo=$ac_try;;
15086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15087 (eval "$ac_try") 2>&5
15089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15090 (exit $ac_status); }; } &&
15091 { ac_try='test -s conftest.$ac_objext'
15092 { (case "(($ac_try" in
15093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15094 *) ac_try_echo=$ac_try;;
15096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15097 (eval "$ac_try") 2>&5
15099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15100 (exit $ac_status); }; }; then
15101 ac_header_compiler=yes
15103 echo "$as_me: failed program was:" >&5
15104 sed 's/^/| /' conftest.$ac_ext >&5
15106 ac_header_compiler=no
15109 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15110 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15111 echo "${ECHO_T}$ac_header_compiler" >&6; }
15113 # Is the header present?
15114 { echo "$as_me:$LINENO: checking termcap.h presence" >&5
15115 echo $ECHO_N "checking termcap.h presence... $ECHO_C" >&6; }
15116 cat >conftest.$ac_ext <<_ACEOF
15119 cat confdefs.h >>conftest.$ac_ext
15120 cat >>conftest.$ac_ext <<_ACEOF
15121 /* end confdefs.h. */
15122 #include <termcap.h>
15124 if { (ac_try="$ac_cpp conftest.$ac_ext"
15125 case "(($ac_try" in
15126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15127 *) ac_try_echo=$ac_try;;
15129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15130 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15132 grep -v '^ *+' conftest.er1 >conftest.err
15134 cat conftest.err >&5
15135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15136 (exit $ac_status); } >/dev/null; then
15137 if test -s conftest.err; then
15138 ac_cpp_err=$ac_c_preproc_warn_flag
15139 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15146 if test -z "$ac_cpp_err"; then
15147 ac_header_preproc=yes
15149 echo "$as_me: failed program was:" >&5
15150 sed 's/^/| /' conftest.$ac_ext >&5
15152 ac_header_preproc=no
15155 rm -f conftest.err conftest.$ac_ext
15156 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15157 echo "${ECHO_T}$ac_header_preproc" >&6; }
15159 # So? What about this header?
15160 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15162 { echo "$as_me:$LINENO: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&5
15163 echo "$as_me: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15164 { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the compiler's result" >&5
15165 echo "$as_me: WARNING: termcap.h: proceeding with the compiler's result" >&2;}
15166 ac_header_preproc=yes
15169 { echo "$as_me:$LINENO: WARNING: termcap.h: present but cannot be compiled" >&5
15170 echo "$as_me: WARNING: termcap.h: present but cannot be compiled" >&2;}
15171 { echo "$as_me:$LINENO: WARNING: termcap.h: check for missing prerequisite headers?" >&5
15172 echo "$as_me: WARNING: termcap.h: check for missing prerequisite headers?" >&2;}
15173 { echo "$as_me:$LINENO: WARNING: termcap.h: see the Autoconf documentation" >&5
15174 echo "$as_me: WARNING: termcap.h: see the Autoconf documentation" >&2;}
15175 { echo "$as_me:$LINENO: WARNING: termcap.h: section \"Present But Cannot Be Compiled\"" >&5
15176 echo "$as_me: WARNING: termcap.h: section \"Present But Cannot Be Compiled\"" >&2;}
15177 { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the preprocessor's result" >&5
15178 echo "$as_me: WARNING: termcap.h: proceeding with the preprocessor's result" >&2;}
15179 { echo "$as_me:$LINENO: WARNING: termcap.h: in the future, the compiler will take precedence" >&5
15180 echo "$as_me: WARNING: termcap.h: in the future, the compiler will take precedence" >&2;}
15184 { echo "$as_me:$LINENO: checking for termcap.h" >&5
15185 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6; }
15186 if test "${ac_cv_header_termcap_h+set}" = set; then
15187 echo $ECHO_N "(cached) $ECHO_C" >&6
15189 ac_cv_header_termcap_h=$ac_header_preproc
15191 { echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
15192 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6; }
15195 if test $ac_cv_header_termcap_h = yes; then
15196 { echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
15197 echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6; }
15198 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
15199 echo $ECHO_N "(cached) $ECHO_C" >&6
15201 ac_check_lib_save_LIBS=$LIBS
15202 LIBS="-ltermcap $LIBS"
15203 cat >conftest.$ac_ext <<_ACEOF
15206 cat confdefs.h >>conftest.$ac_ext
15207 cat >>conftest.$ac_ext <<_ACEOF
15208 /* end confdefs.h. */
15210 /* Override any GCC internal prototype to avoid an error.
15211 Use char because int might match the return type of a GCC
15212 builtin and then its argument prototype would still apply. */
15225 rm -f conftest.$ac_objext conftest$ac_exeext
15226 if { (ac_try="$ac_link"
15227 case "(($ac_try" in
15228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15229 *) ac_try_echo=$ac_try;;
15231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15232 (eval "$ac_link") 2>conftest.er1
15234 grep -v '^ *+' conftest.er1 >conftest.err
15236 cat conftest.err >&5
15237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15238 (exit $ac_status); } &&
15239 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15240 { (case "(($ac_try" in
15241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15242 *) ac_try_echo=$ac_try;;
15244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15245 (eval "$ac_try") 2>&5
15247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15248 (exit $ac_status); }; } &&
15249 { ac_try='test -s conftest$ac_exeext'
15250 { (case "(($ac_try" in
15251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15252 *) ac_try_echo=$ac_try;;
15254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15255 (eval "$ac_try") 2>&5
15257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15258 (exit $ac_status); }; }; then
15259 ac_cv_lib_termcap_tgetent=yes
15261 echo "$as_me: failed program was:" >&5
15262 sed 's/^/| /' conftest.$ac_ext >&5
15264 ac_cv_lib_termcap_tgetent=no
15267 rm -f core conftest.err conftest.$ac_objext \
15268 conftest$ac_exeext conftest.$ac_ext
15269 LIBS=$ac_check_lib_save_LIBS
15271 { echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
15272 echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6; }
15273 if test $ac_cv_lib_termcap_tgetent = yes; then
15274 CONS_LIBS="-ltermcap"
15278 support_readline=no
15280 cat >>confdefs.h <<\_ACEOF
15281 #define HAVE_CONIO 1
15286 { echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5
15287 echo $ECHO_N "checking for tgetent in -lncurses... $ECHO_C" >&6; }
15288 if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then
15289 echo $ECHO_N "(cached) $ECHO_C" >&6
15291 ac_check_lib_save_LIBS=$LIBS
15292 LIBS="-lncurses $LIBS"
15293 cat >conftest.$ac_ext <<_ACEOF
15296 cat confdefs.h >>conftest.$ac_ext
15297 cat >>conftest.$ac_ext <<_ACEOF
15298 /* end confdefs.h. */
15300 /* Override any GCC internal prototype to avoid an error.
15301 Use char because int might match the return type of a GCC
15302 builtin and then its argument prototype would still apply. */
15315 rm -f conftest.$ac_objext conftest$ac_exeext
15316 if { (ac_try="$ac_link"
15317 case "(($ac_try" in
15318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15319 *) ac_try_echo=$ac_try;;
15321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15322 (eval "$ac_link") 2>conftest.er1
15324 grep -v '^ *+' conftest.er1 >conftest.err
15326 cat conftest.err >&5
15327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15328 (exit $ac_status); } &&
15329 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15330 { (case "(($ac_try" in
15331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15332 *) ac_try_echo=$ac_try;;
15334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15335 (eval "$ac_try") 2>&5
15337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15338 (exit $ac_status); }; } &&
15339 { ac_try='test -s conftest$ac_exeext'
15340 { (case "(($ac_try" in
15341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15342 *) ac_try_echo=$ac_try;;
15344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15345 (eval "$ac_try") 2>&5
15347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15348 (exit $ac_status); }; }; then
15349 ac_cv_lib_ncurses_tgetent=yes
15351 echo "$as_me: failed program was:" >&5
15352 sed 's/^/| /' conftest.$ac_ext >&5
15354 ac_cv_lib_ncurses_tgetent=no
15357 rm -f core conftest.err conftest.$ac_objext \
15358 conftest$ac_exeext conftest.$ac_ext
15359 LIBS=$ac_check_lib_save_LIBS
15361 { echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5
15362 echo "${ECHO_T}$ac_cv_lib_ncurses_tgetent" >&6; }
15363 if test $ac_cv_lib_ncurses_tgetent = yes; then
15364 CONS_LIBS="-lncurses"
15368 support_readline=no
15370 cat >>confdefs.h <<\_ACEOF
15371 #define HAVE_CONIO 1
15384 for ac_header in curses.h
15386 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15387 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15388 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15389 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15390 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15391 echo $ECHO_N "(cached) $ECHO_C" >&6
15393 ac_res=`eval echo '${'$as_ac_Header'}'`
15394 { echo "$as_me:$LINENO: result: $ac_res" >&5
15395 echo "${ECHO_T}$ac_res" >&6; }
15397 # Is the header compilable?
15398 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15399 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15400 cat >conftest.$ac_ext <<_ACEOF
15403 cat confdefs.h >>conftest.$ac_ext
15404 cat >>conftest.$ac_ext <<_ACEOF
15405 /* end confdefs.h. */
15406 $ac_includes_default
15407 #include <$ac_header>
15409 rm -f conftest.$ac_objext
15410 if { (ac_try="$ac_compile"
15411 case "(($ac_try" in
15412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15413 *) ac_try_echo=$ac_try;;
15415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15416 (eval "$ac_compile") 2>conftest.er1
15418 grep -v '^ *+' conftest.er1 >conftest.err
15420 cat conftest.err >&5
15421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15422 (exit $ac_status); } &&
15423 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15424 { (case "(($ac_try" in
15425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15426 *) ac_try_echo=$ac_try;;
15428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15429 (eval "$ac_try") 2>&5
15431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15432 (exit $ac_status); }; } &&
15433 { ac_try='test -s conftest.$ac_objext'
15434 { (case "(($ac_try" in
15435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15436 *) ac_try_echo=$ac_try;;
15438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15439 (eval "$ac_try") 2>&5
15441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15442 (exit $ac_status); }; }; then
15443 ac_header_compiler=yes
15445 echo "$as_me: failed program was:" >&5
15446 sed 's/^/| /' conftest.$ac_ext >&5
15448 ac_header_compiler=no
15451 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15452 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15453 echo "${ECHO_T}$ac_header_compiler" >&6; }
15455 # Is the header present?
15456 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15457 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15458 cat >conftest.$ac_ext <<_ACEOF
15461 cat confdefs.h >>conftest.$ac_ext
15462 cat >>conftest.$ac_ext <<_ACEOF
15463 /* end confdefs.h. */
15464 #include <$ac_header>
15466 if { (ac_try="$ac_cpp conftest.$ac_ext"
15467 case "(($ac_try" in
15468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15469 *) ac_try_echo=$ac_try;;
15471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15472 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15474 grep -v '^ *+' conftest.er1 >conftest.err
15476 cat conftest.err >&5
15477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15478 (exit $ac_status); } >/dev/null; then
15479 if test -s conftest.err; then
15480 ac_cpp_err=$ac_c_preproc_warn_flag
15481 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15488 if test -z "$ac_cpp_err"; then
15489 ac_header_preproc=yes
15491 echo "$as_me: failed program was:" >&5
15492 sed 's/^/| /' conftest.$ac_ext >&5
15494 ac_header_preproc=no
15497 rm -f conftest.err conftest.$ac_ext
15498 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15499 echo "${ECHO_T}$ac_header_preproc" >&6; }
15501 # So? What about this header?
15502 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15504 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15505 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15506 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15507 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15508 ac_header_preproc=yes
15511 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15512 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15513 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15514 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15515 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15516 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15517 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15518 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15519 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15520 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15521 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15522 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15526 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15527 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15528 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15529 echo $ECHO_N "(cached) $ECHO_C" >&6
15531 eval "$as_ac_Header=\$ac_header_preproc"
15533 ac_res=`eval echo '${'$as_ac_Header'}'`
15534 { echo "$as_me:$LINENO: result: $ac_res" >&5
15535 echo "${ECHO_T}$ac_res" >&6; }
15538 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15539 cat >>confdefs.h <<_ACEOF
15540 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15547 { echo "$as_me:$LINENO: checking for term.h" >&5
15548 echo $ECHO_N "checking for term.h... $ECHO_C" >&6; }
15549 if test "${ac_cv_header_term_h+set}" = set; then
15550 echo $ECHO_N "(cached) $ECHO_C" >&6
15552 cat >conftest.$ac_ext <<_ACEOF
15555 cat confdefs.h >>conftest.$ac_ext
15556 cat >>conftest.$ac_ext <<_ACEOF
15557 /* end confdefs.h. */
15559 #include <curses.h>
15565 rm -f conftest.$ac_objext
15566 if { (ac_try="$ac_compile"
15567 case "(($ac_try" in
15568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15569 *) ac_try_echo=$ac_try;;
15571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15572 (eval "$ac_compile") 2>conftest.er1
15574 grep -v '^ *+' conftest.er1 >conftest.err
15576 cat conftest.err >&5
15577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15578 (exit $ac_status); } &&
15579 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15580 { (case "(($ac_try" in
15581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15582 *) ac_try_echo=$ac_try;;
15584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15585 (eval "$ac_try") 2>&5
15587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15588 (exit $ac_status); }; } &&
15589 { ac_try='test -s conftest.$ac_objext'
15590 { (case "(($ac_try" in
15591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15592 *) ac_try_echo=$ac_try;;
15594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15595 (eval "$ac_try") 2>&5
15597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15598 (exit $ac_status); }; }; then
15599 ac_cv_header_term_h=yes
15601 echo "$as_me: failed program was:" >&5
15602 sed 's/^/| /' conftest.$ac_ext >&5
15604 ac_cv_header_term_h=no
15607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15609 { echo "$as_me:$LINENO: result: $ac_cv_header_term_h" >&5
15610 echo "${ECHO_T}$ac_cv_header_term_h" >&6; }
15611 if test $ac_cv_header_term_h = yes; then
15612 { echo "$as_me:$LINENO: checking for tgetent in -lcurses" >&5
15613 echo $ECHO_N "checking for tgetent in -lcurses... $ECHO_C" >&6; }
15614 if test "${ac_cv_lib_curses_tgetent+set}" = set; then
15615 echo $ECHO_N "(cached) $ECHO_C" >&6
15617 ac_check_lib_save_LIBS=$LIBS
15618 LIBS="-lcurses $LIBS"
15619 cat >conftest.$ac_ext <<_ACEOF
15622 cat confdefs.h >>conftest.$ac_ext
15623 cat >>conftest.$ac_ext <<_ACEOF
15624 /* end confdefs.h. */
15626 /* Override any GCC internal prototype to avoid an error.
15627 Use char because int might match the return type of a GCC
15628 builtin and then its argument prototype would still apply. */
15641 rm -f conftest.$ac_objext conftest$ac_exeext
15642 if { (ac_try="$ac_link"
15643 case "(($ac_try" in
15644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15645 *) ac_try_echo=$ac_try;;
15647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15648 (eval "$ac_link") 2>conftest.er1
15650 grep -v '^ *+' conftest.er1 >conftest.err
15652 cat conftest.err >&5
15653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15654 (exit $ac_status); } &&
15655 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15656 { (case "(($ac_try" in
15657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15658 *) ac_try_echo=$ac_try;;
15660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15661 (eval "$ac_try") 2>&5
15663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15664 (exit $ac_status); }; } &&
15665 { ac_try='test -s conftest$ac_exeext'
15666 { (case "(($ac_try" in
15667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15668 *) ac_try_echo=$ac_try;;
15670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15671 (eval "$ac_try") 2>&5
15673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15674 (exit $ac_status); }; }; then
15675 ac_cv_lib_curses_tgetent=yes
15677 echo "$as_me: failed program was:" >&5
15678 sed 's/^/| /' conftest.$ac_ext >&5
15680 ac_cv_lib_curses_tgetent=no
15683 rm -f core conftest.err conftest.$ac_objext \
15684 conftest$ac_exeext conftest.$ac_ext
15685 LIBS=$ac_check_lib_save_LIBS
15687 { echo "$as_me:$LINENO: result: $ac_cv_lib_curses_tgetent" >&5
15688 echo "${ECHO_T}$ac_cv_lib_curses_tgetent" >&6; }
15689 if test $ac_cv_lib_curses_tgetent = yes; then
15690 CONS_LIBS="-lcurses"
15694 support_readline=no
15696 cat >>confdefs.h <<\_ACEOF
15697 #define HAVE_CONIO 1
15705 echo " "; echo "Required libraries not found. CONIO turned off ..."; echo " "
15716 # ---------------------------------------------------
15717 # Check for readline support/directory (default off)
15718 # ---------------------------------------------------
15719 # this allows you to turn it completely off
15720 # Check whether --enable-readline was given.
15721 if test "${enable_readline+set}" = set; then
15722 enableval=$enable_readline; if test x$enableval = xno; then
15723 support_readline=no
15730 if test x$support_readline = xyes; then
15732 # Check whether --with-readline was given.
15733 if test "${with_readline+set}" = set; then
15734 withval=$with_readline;
15735 case "$with_readline" in
15738 if test -f ${with_readline}/readline.h; then
15739 CONS_INC="-I${with_readline}"
15740 CONS_LDFLAGS="-L$with_readline"
15741 elif test -f ${with_readline}/include/readline/readline.h; then
15742 CONS_INC="-I${with_readline}/include/readline"
15743 CONS_LDFLAGS="-L${with_readline}/lib"
15744 with_readline="${with_readline}/include/readline"
15746 with_readline="/usr/include/readline"
15748 as_ac_Header=`echo "ac_cv_header_${with_readline}/readline.h" | $as_tr_sh`
15749 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15750 { echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
15751 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6; }
15752 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15753 echo $ECHO_N "(cached) $ECHO_C" >&6
15755 ac_res=`eval echo '${'$as_ac_Header'}'`
15756 { echo "$as_me:$LINENO: result: $ac_res" >&5
15757 echo "${ECHO_T}$ac_res" >&6; }
15759 # Is the header compilable?
15760 { echo "$as_me:$LINENO: checking ${with_readline}/readline.h usability" >&5
15761 echo $ECHO_N "checking ${with_readline}/readline.h usability... $ECHO_C" >&6; }
15762 cat >conftest.$ac_ext <<_ACEOF
15765 cat confdefs.h >>conftest.$ac_ext
15766 cat >>conftest.$ac_ext <<_ACEOF
15767 /* end confdefs.h. */
15768 $ac_includes_default
15769 #include <${with_readline}/readline.h>
15771 rm -f conftest.$ac_objext
15772 if { (ac_try="$ac_compile"
15773 case "(($ac_try" in
15774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15775 *) ac_try_echo=$ac_try;;
15777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15778 (eval "$ac_compile") 2>conftest.er1
15780 grep -v '^ *+' conftest.er1 >conftest.err
15782 cat conftest.err >&5
15783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15784 (exit $ac_status); } &&
15785 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15786 { (case "(($ac_try" in
15787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15788 *) ac_try_echo=$ac_try;;
15790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15791 (eval "$ac_try") 2>&5
15793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15794 (exit $ac_status); }; } &&
15795 { ac_try='test -s conftest.$ac_objext'
15796 { (case "(($ac_try" in
15797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15798 *) ac_try_echo=$ac_try;;
15800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15801 (eval "$ac_try") 2>&5
15803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15804 (exit $ac_status); }; }; then
15805 ac_header_compiler=yes
15807 echo "$as_me: failed program was:" >&5
15808 sed 's/^/| /' conftest.$ac_ext >&5
15810 ac_header_compiler=no
15813 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15814 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15815 echo "${ECHO_T}$ac_header_compiler" >&6; }
15817 # Is the header present?
15818 { echo "$as_me:$LINENO: checking ${with_readline}/readline.h presence" >&5
15819 echo $ECHO_N "checking ${with_readline}/readline.h presence... $ECHO_C" >&6; }
15820 cat >conftest.$ac_ext <<_ACEOF
15823 cat confdefs.h >>conftest.$ac_ext
15824 cat >>conftest.$ac_ext <<_ACEOF
15825 /* end confdefs.h. */
15826 #include <${with_readline}/readline.h>
15828 if { (ac_try="$ac_cpp conftest.$ac_ext"
15829 case "(($ac_try" in
15830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15831 *) ac_try_echo=$ac_try;;
15833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15834 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15836 grep -v '^ *+' conftest.er1 >conftest.err
15838 cat conftest.err >&5
15839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15840 (exit $ac_status); } >/dev/null; then
15841 if test -s conftest.err; then
15842 ac_cpp_err=$ac_c_preproc_warn_flag
15843 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15850 if test -z "$ac_cpp_err"; then
15851 ac_header_preproc=yes
15853 echo "$as_me: failed program was:" >&5
15854 sed 's/^/| /' conftest.$ac_ext >&5
15856 ac_header_preproc=no
15859 rm -f conftest.err conftest.$ac_ext
15860 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15861 echo "${ECHO_T}$ac_header_preproc" >&6; }
15863 # So? What about this header?
15864 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15866 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
15867 echo "$as_me: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15868 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&5
15869 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&2;}
15870 ac_header_preproc=yes
15873 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&5
15874 echo "$as_me: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&2;}
15875 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: check for missing prerequisite headers?" >&5
15876 echo "$as_me: WARNING: ${with_readline}/readline.h: check for missing prerequisite headers?" >&2;}
15877 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&5
15878 echo "$as_me: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&2;}
15879 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: section \"Present But Cannot Be Compiled\"" >&5
15880 echo "$as_me: WARNING: ${with_readline}/readline.h: section \"Present But Cannot Be Compiled\"" >&2;}
15881 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&5
15882 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&2;}
15883 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&5
15884 echo "$as_me: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&2;}
15888 { echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
15889 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6; }
15890 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15891 echo $ECHO_N "(cached) $ECHO_C" >&6
15893 eval "$as_ac_Header=\$ac_header_preproc"
15895 ac_res=`eval echo '${'$as_ac_Header'}'`
15896 { echo "$as_me:$LINENO: result: $ac_res" >&5
15897 echo "${ECHO_T}$ac_res" >&6; }
15900 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15901 cat >>confdefs.h <<\_ACEOF
15902 #define HAVE_READLINE 1
15905 CONS_LIBS="-lreadline -lhistory -ltermcap"
15910 echo "readline.h not found. readline turned off ..."
15922 # check for standard readline library
15923 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
15924 { echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
15925 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6; }
15926 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
15927 echo $ECHO_N "(cached) $ECHO_C" >&6
15929 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
15930 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6; }
15932 # Is the header compilable?
15933 { echo "$as_me:$LINENO: checking /usr/include/readline/readline.h usability" >&5
15934 echo $ECHO_N "checking /usr/include/readline/readline.h usability... $ECHO_C" >&6; }
15935 cat >conftest.$ac_ext <<_ACEOF
15938 cat confdefs.h >>conftest.$ac_ext
15939 cat >>conftest.$ac_ext <<_ACEOF
15940 /* end confdefs.h. */
15941 $ac_includes_default
15942 #include </usr/include/readline/readline.h>
15944 rm -f conftest.$ac_objext
15945 if { (ac_try="$ac_compile"
15946 case "(($ac_try" in
15947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15948 *) ac_try_echo=$ac_try;;
15950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15951 (eval "$ac_compile") 2>conftest.er1
15953 grep -v '^ *+' conftest.er1 >conftest.err
15955 cat conftest.err >&5
15956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15957 (exit $ac_status); } &&
15958 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15959 { (case "(($ac_try" in
15960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15961 *) ac_try_echo=$ac_try;;
15963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15964 (eval "$ac_try") 2>&5
15966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15967 (exit $ac_status); }; } &&
15968 { ac_try='test -s conftest.$ac_objext'
15969 { (case "(($ac_try" in
15970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15971 *) ac_try_echo=$ac_try;;
15973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15974 (eval "$ac_try") 2>&5
15976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15977 (exit $ac_status); }; }; then
15978 ac_header_compiler=yes
15980 echo "$as_me: failed program was:" >&5
15981 sed 's/^/| /' conftest.$ac_ext >&5
15983 ac_header_compiler=no
15986 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15987 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15988 echo "${ECHO_T}$ac_header_compiler" >&6; }
15990 # Is the header present?
15991 { echo "$as_me:$LINENO: checking /usr/include/readline/readline.h presence" >&5
15992 echo $ECHO_N "checking /usr/include/readline/readline.h presence... $ECHO_C" >&6; }
15993 cat >conftest.$ac_ext <<_ACEOF
15996 cat confdefs.h >>conftest.$ac_ext
15997 cat >>conftest.$ac_ext <<_ACEOF
15998 /* end confdefs.h. */
15999 #include </usr/include/readline/readline.h>
16001 if { (ac_try="$ac_cpp conftest.$ac_ext"
16002 case "(($ac_try" in
16003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16004 *) ac_try_echo=$ac_try;;
16006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16007 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16009 grep -v '^ *+' conftest.er1 >conftest.err
16011 cat conftest.err >&5
16012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16013 (exit $ac_status); } >/dev/null; then
16014 if test -s conftest.err; then
16015 ac_cpp_err=$ac_c_preproc_warn_flag
16016 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16023 if test -z "$ac_cpp_err"; then
16024 ac_header_preproc=yes
16026 echo "$as_me: failed program was:" >&5
16027 sed 's/^/| /' conftest.$ac_ext >&5
16029 ac_header_preproc=no
16032 rm -f conftest.err conftest.$ac_ext
16033 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16034 echo "${ECHO_T}$ac_header_preproc" >&6; }
16036 # So? What about this header?
16037 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16039 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
16040 echo "$as_me: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16041 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&5
16042 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&2;}
16043 ac_header_preproc=yes
16046 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&5
16047 echo "$as_me: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&2;}
16048 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: check for missing prerequisite headers?" >&5
16049 echo "$as_me: WARNING: /usr/include/readline/readline.h: check for missing prerequisite headers?" >&2;}
16050 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&5
16051 echo "$as_me: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&2;}
16052 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&5
16053 echo "$as_me: WARNING: /usr/include/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&2;}
16054 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&5
16055 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&2;}
16056 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&5
16057 echo "$as_me: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&2;}
16061 { echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
16062 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6; }
16063 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
16064 echo $ECHO_N "(cached) $ECHO_C" >&6
16066 ac_cv_header__usr_include_readline_readline_h=$ac_header_preproc
16068 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
16069 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6; }
16072 if test $ac_cv_header__usr_include_readline_readline_h = yes; then
16073 cat >>confdefs.h <<\_ACEOF
16074 #define HAVE_READLINE 1
16078 CONS_INC="-I/usr/include/readline"
16079 CONS_LIBS="-lreadline -ltermcap"
16083 # Did not find standard library, so try Bacula's default
16084 as_ac_Header=`echo "ac_cv_header_${TOP_DIR}/depkgs/readline/readline.h" | $as_tr_sh`
16085 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16086 { echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
16087 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6; }
16088 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16089 echo $ECHO_N "(cached) $ECHO_C" >&6
16091 ac_res=`eval echo '${'$as_ac_Header'}'`
16092 { echo "$as_me:$LINENO: result: $ac_res" >&5
16093 echo "${ECHO_T}$ac_res" >&6; }
16095 # Is the header compilable?
16096 { echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h usability" >&5
16097 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h usability... $ECHO_C" >&6; }
16098 cat >conftest.$ac_ext <<_ACEOF
16101 cat confdefs.h >>conftest.$ac_ext
16102 cat >>conftest.$ac_ext <<_ACEOF
16103 /* end confdefs.h. */
16104 $ac_includes_default
16105 #include <${TOP_DIR}/depkgs/readline/readline.h>
16107 rm -f conftest.$ac_objext
16108 if { (ac_try="$ac_compile"
16109 case "(($ac_try" in
16110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16111 *) ac_try_echo=$ac_try;;
16113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16114 (eval "$ac_compile") 2>conftest.er1
16116 grep -v '^ *+' conftest.er1 >conftest.err
16118 cat conftest.err >&5
16119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16120 (exit $ac_status); } &&
16121 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16122 { (case "(($ac_try" in
16123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16124 *) ac_try_echo=$ac_try;;
16126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16127 (eval "$ac_try") 2>&5
16129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16130 (exit $ac_status); }; } &&
16131 { ac_try='test -s conftest.$ac_objext'
16132 { (case "(($ac_try" in
16133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16134 *) ac_try_echo=$ac_try;;
16136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16137 (eval "$ac_try") 2>&5
16139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16140 (exit $ac_status); }; }; then
16141 ac_header_compiler=yes
16143 echo "$as_me: failed program was:" >&5
16144 sed 's/^/| /' conftest.$ac_ext >&5
16146 ac_header_compiler=no
16149 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16150 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16151 echo "${ECHO_T}$ac_header_compiler" >&6; }
16153 # Is the header present?
16154 { echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h presence" >&5
16155 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h presence... $ECHO_C" >&6; }
16156 cat >conftest.$ac_ext <<_ACEOF
16159 cat confdefs.h >>conftest.$ac_ext
16160 cat >>conftest.$ac_ext <<_ACEOF
16161 /* end confdefs.h. */
16162 #include <${TOP_DIR}/depkgs/readline/readline.h>
16164 if { (ac_try="$ac_cpp conftest.$ac_ext"
16165 case "(($ac_try" in
16166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16167 *) ac_try_echo=$ac_try;;
16169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16170 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16172 grep -v '^ *+' conftest.er1 >conftest.err
16174 cat conftest.err >&5
16175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16176 (exit $ac_status); } >/dev/null; then
16177 if test -s conftest.err; then
16178 ac_cpp_err=$ac_c_preproc_warn_flag
16179 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16186 if test -z "$ac_cpp_err"; then
16187 ac_header_preproc=yes
16189 echo "$as_me: failed program was:" >&5
16190 sed 's/^/| /' conftest.$ac_ext >&5
16192 ac_header_preproc=no
16195 rm -f conftest.err conftest.$ac_ext
16196 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16197 echo "${ECHO_T}$ac_header_preproc" >&6; }
16199 # So? What about this header?
16200 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16202 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
16203 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16204 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&5
16205 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&2;}
16206 ac_header_preproc=yes
16209 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&5
16210 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&2;}
16211 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: check for missing prerequisite headers?" >&5
16212 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: check for missing prerequisite headers?" >&2;}
16213 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&5
16214 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&2;}
16215 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&5
16216 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&2;}
16217 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&5
16218 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&2;}
16219 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&5
16220 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&2;}
16224 { echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
16225 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6; }
16226 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16227 echo $ECHO_N "(cached) $ECHO_C" >&6
16229 eval "$as_ac_Header=\$ac_header_preproc"
16231 ac_res=`eval echo '${'$as_ac_Header'}'`
16232 { echo "$as_me:$LINENO: result: $ac_res" >&5
16233 echo "${ECHO_T}$ac_res" >&6; }
16236 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16237 cat >>confdefs.h <<\_ACEOF
16238 #define HAVE_READLINE 1
16242 CONS_INC="-I${TOP_DIR}/depkgs/readline"
16243 CONS_LIBS="-lreadline -lhistory -ltermcap"
16244 CONS_LDFLAGS="-L${TOP_DIR}/depkgs/readline"
16245 PRTREADLINE_SRC="${TOP_DIR}/depkgs/readline"
16249 echo "readline.h not found. readline turned off ..."
16276 # Minimal stuff for readline Makefile configuration
16279 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
16280 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
16281 if test "${ac_cv_header_stat_broken+set}" = set; then
16282 echo $ECHO_N "(cached) $ECHO_C" >&6
16284 cat >conftest.$ac_ext <<_ACEOF
16287 cat confdefs.h >>conftest.$ac_ext
16288 cat >>conftest.$ac_ext <<_ACEOF
16289 /* end confdefs.h. */
16290 #include <sys/types.h>
16291 #include <sys/stat.h>
16293 #if defined S_ISBLK && defined S_IFDIR
16294 # if S_ISBLK (S_IFDIR)
16299 #if defined S_ISBLK && defined S_IFCHR
16300 # if S_ISBLK (S_IFCHR)
16305 #if defined S_ISLNK && defined S_IFREG
16306 # if S_ISLNK (S_IFREG)
16311 #if defined S_ISSOCK && defined S_IFREG
16312 # if S_ISSOCK (S_IFREG)
16318 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16319 $EGREP "You lose" >/dev/null 2>&1; then
16320 ac_cv_header_stat_broken=yes
16322 ac_cv_header_stat_broken=no
16327 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
16328 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
16329 if test $ac_cv_header_stat_broken = yes; then
16331 cat >>confdefs.h <<\_ACEOF
16332 #define STAT_MACROS_BROKEN 1
16342 ac_header_dirent=no
16343 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
16344 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
16345 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
16346 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
16347 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16348 echo $ECHO_N "(cached) $ECHO_C" >&6
16350 cat >conftest.$ac_ext <<_ACEOF
16353 cat confdefs.h >>conftest.$ac_ext
16354 cat >>conftest.$ac_ext <<_ACEOF
16355 /* end confdefs.h. */
16356 #include <sys/types.h>
16368 rm -f conftest.$ac_objext
16369 if { (ac_try="$ac_compile"
16370 case "(($ac_try" in
16371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16372 *) ac_try_echo=$ac_try;;
16374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16375 (eval "$ac_compile") 2>conftest.er1
16377 grep -v '^ *+' conftest.er1 >conftest.err
16379 cat conftest.err >&5
16380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16381 (exit $ac_status); } &&
16382 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16383 { (case "(($ac_try" in
16384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16385 *) ac_try_echo=$ac_try;;
16387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16388 (eval "$ac_try") 2>&5
16390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16391 (exit $ac_status); }; } &&
16392 { ac_try='test -s conftest.$ac_objext'
16393 { (case "(($ac_try" in
16394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16395 *) ac_try_echo=$ac_try;;
16397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16398 (eval "$ac_try") 2>&5
16400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16401 (exit $ac_status); }; }; then
16402 eval "$as_ac_Header=yes"
16404 echo "$as_me: failed program was:" >&5
16405 sed 's/^/| /' conftest.$ac_ext >&5
16407 eval "$as_ac_Header=no"
16410 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16412 ac_res=`eval echo '${'$as_ac_Header'}'`
16413 { echo "$as_me:$LINENO: result: $ac_res" >&5
16414 echo "${ECHO_T}$ac_res" >&6; }
16415 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16416 cat >>confdefs.h <<_ACEOF
16417 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
16420 ac_header_dirent=$ac_hdr; break
16424 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
16425 if test $ac_header_dirent = dirent.h; then
16426 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
16427 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
16428 if test "${ac_cv_search_opendir+set}" = set; then
16429 echo $ECHO_N "(cached) $ECHO_C" >&6
16431 ac_func_search_save_LIBS=$LIBS
16432 cat >conftest.$ac_ext <<_ACEOF
16435 cat confdefs.h >>conftest.$ac_ext
16436 cat >>conftest.$ac_ext <<_ACEOF
16437 /* end confdefs.h. */
16439 /* Override any GCC internal prototype to avoid an error.
16440 Use char because int might match the return type of a GCC
16441 builtin and then its argument prototype would still apply. */
16454 for ac_lib in '' dir; do
16455 if test -z "$ac_lib"; then
16456 ac_res="none required"
16459 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16461 rm -f conftest.$ac_objext conftest$ac_exeext
16462 if { (ac_try="$ac_link"
16463 case "(($ac_try" in
16464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16465 *) ac_try_echo=$ac_try;;
16467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16468 (eval "$ac_link") 2>conftest.er1
16470 grep -v '^ *+' conftest.er1 >conftest.err
16472 cat conftest.err >&5
16473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16474 (exit $ac_status); } &&
16475 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16476 { (case "(($ac_try" in
16477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16478 *) ac_try_echo=$ac_try;;
16480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16481 (eval "$ac_try") 2>&5
16483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16484 (exit $ac_status); }; } &&
16485 { ac_try='test -s conftest$ac_exeext'
16486 { (case "(($ac_try" in
16487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16488 *) ac_try_echo=$ac_try;;
16490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16491 (eval "$ac_try") 2>&5
16493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16494 (exit $ac_status); }; }; then
16495 ac_cv_search_opendir=$ac_res
16497 echo "$as_me: failed program was:" >&5
16498 sed 's/^/| /' conftest.$ac_ext >&5
16503 rm -f core conftest.err conftest.$ac_objext \
16505 if test "${ac_cv_search_opendir+set}" = set; then
16509 if test "${ac_cv_search_opendir+set}" = set; then
16512 ac_cv_search_opendir=no
16514 rm conftest.$ac_ext
16515 LIBS=$ac_func_search_save_LIBS
16517 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
16518 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
16519 ac_res=$ac_cv_search_opendir
16520 if test "$ac_res" != no; then
16521 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16526 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
16527 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
16528 if test "${ac_cv_search_opendir+set}" = set; then
16529 echo $ECHO_N "(cached) $ECHO_C" >&6
16531 ac_func_search_save_LIBS=$LIBS
16532 cat >conftest.$ac_ext <<_ACEOF
16535 cat confdefs.h >>conftest.$ac_ext
16536 cat >>conftest.$ac_ext <<_ACEOF
16537 /* end confdefs.h. */
16539 /* Override any GCC internal prototype to avoid an error.
16540 Use char because int might match the return type of a GCC
16541 builtin and then its argument prototype would still apply. */
16554 for ac_lib in '' x; do
16555 if test -z "$ac_lib"; then
16556 ac_res="none required"
16559 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16561 rm -f conftest.$ac_objext conftest$ac_exeext
16562 if { (ac_try="$ac_link"
16563 case "(($ac_try" in
16564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16565 *) ac_try_echo=$ac_try;;
16567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16568 (eval "$ac_link") 2>conftest.er1
16570 grep -v '^ *+' conftest.er1 >conftest.err
16572 cat conftest.err >&5
16573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16574 (exit $ac_status); } &&
16575 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16576 { (case "(($ac_try" in
16577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16578 *) ac_try_echo=$ac_try;;
16580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16581 (eval "$ac_try") 2>&5
16583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16584 (exit $ac_status); }; } &&
16585 { ac_try='test -s conftest$ac_exeext'
16586 { (case "(($ac_try" in
16587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16588 *) ac_try_echo=$ac_try;;
16590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16591 (eval "$ac_try") 2>&5
16593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16594 (exit $ac_status); }; }; then
16595 ac_cv_search_opendir=$ac_res
16597 echo "$as_me: failed program was:" >&5
16598 sed 's/^/| /' conftest.$ac_ext >&5
16603 rm -f core conftest.err conftest.$ac_objext \
16605 if test "${ac_cv_search_opendir+set}" = set; then
16609 if test "${ac_cv_search_opendir+set}" = set; then
16612 ac_cv_search_opendir=no
16614 rm conftest.$ac_ext
16615 LIBS=$ac_func_search_save_LIBS
16617 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
16618 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
16619 ac_res=$ac_cv_search_opendir
16620 if test "$ac_res" != no; then
16621 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16634 for ac_func in strcasecmp select setenv putenv tcgetattr lstat lchown
16636 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16637 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16638 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16639 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16640 echo $ECHO_N "(cached) $ECHO_C" >&6
16642 cat >conftest.$ac_ext <<_ACEOF
16645 cat confdefs.h >>conftest.$ac_ext
16646 cat >>conftest.$ac_ext <<_ACEOF
16647 /* end confdefs.h. */
16648 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16649 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16650 #define $ac_func innocuous_$ac_func
16652 /* System header to define __stub macros and hopefully few prototypes,
16653 which can conflict with char $ac_func (); below.
16654 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16655 <limits.h> exists even on freestanding compilers. */
16658 # include <limits.h>
16660 # include <assert.h>
16665 /* Override any GCC internal prototype to avoid an error.
16666 Use char because int might match the return type of a GCC
16667 builtin and then its argument prototype would still apply. */
16672 /* The GNU C library defines this for functions which it implements
16673 to always fail with ENOSYS. Some functions are actually named
16674 something starting with __ and the normal name is an alias. */
16675 #if defined __stub_$ac_func || defined __stub___$ac_func
16682 return $ac_func ();
16687 rm -f conftest.$ac_objext conftest$ac_exeext
16688 if { (ac_try="$ac_link"
16689 case "(($ac_try" in
16690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16691 *) ac_try_echo=$ac_try;;
16693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16694 (eval "$ac_link") 2>conftest.er1
16696 grep -v '^ *+' conftest.er1 >conftest.err
16698 cat conftest.err >&5
16699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16700 (exit $ac_status); } &&
16701 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16702 { (case "(($ac_try" in
16703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16704 *) ac_try_echo=$ac_try;;
16706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16707 (eval "$ac_try") 2>&5
16709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16710 (exit $ac_status); }; } &&
16711 { ac_try='test -s conftest$ac_exeext'
16712 { (case "(($ac_try" in
16713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16714 *) ac_try_echo=$ac_try;;
16716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16717 (eval "$ac_try") 2>&5
16719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16720 (exit $ac_status); }; }; then
16721 eval "$as_ac_var=yes"
16723 echo "$as_me: failed program was:" >&5
16724 sed 's/^/| /' conftest.$ac_ext >&5
16726 eval "$as_ac_var=no"
16729 rm -f core conftest.err conftest.$ac_objext \
16730 conftest$ac_exeext conftest.$ac_ext
16732 ac_res=`eval echo '${'$as_ac_var'}'`
16733 { echo "$as_me:$LINENO: result: $ac_res" >&5
16734 echo "${ECHO_T}$ac_res" >&6; }
16735 if test `eval echo '${'$as_ac_var'}'` = yes; then
16736 cat >>confdefs.h <<_ACEOF
16737 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16745 for ac_func in nanosleep nl_langinfo
16747 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16748 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16749 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16750 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16751 echo $ECHO_N "(cached) $ECHO_C" >&6
16753 cat >conftest.$ac_ext <<_ACEOF
16756 cat confdefs.h >>conftest.$ac_ext
16757 cat >>conftest.$ac_ext <<_ACEOF
16758 /* end confdefs.h. */
16759 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16760 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16761 #define $ac_func innocuous_$ac_func
16763 /* System header to define __stub macros and hopefully few prototypes,
16764 which can conflict with char $ac_func (); below.
16765 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16766 <limits.h> exists even on freestanding compilers. */
16769 # include <limits.h>
16771 # include <assert.h>
16776 /* Override any GCC internal prototype to avoid an error.
16777 Use char because int might match the return type of a GCC
16778 builtin and then its argument prototype would still apply. */
16783 /* The GNU C library defines this for functions which it implements
16784 to always fail with ENOSYS. Some functions are actually named
16785 something starting with __ and the normal name is an alias. */
16786 #if defined __stub_$ac_func || defined __stub___$ac_func
16793 return $ac_func ();
16798 rm -f conftest.$ac_objext conftest$ac_exeext
16799 if { (ac_try="$ac_link"
16800 case "(($ac_try" in
16801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16802 *) ac_try_echo=$ac_try;;
16804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16805 (eval "$ac_link") 2>conftest.er1
16807 grep -v '^ *+' conftest.er1 >conftest.err
16809 cat conftest.err >&5
16810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16811 (exit $ac_status); } &&
16812 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16813 { (case "(($ac_try" in
16814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16815 *) ac_try_echo=$ac_try;;
16817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16818 (eval "$ac_try") 2>&5
16820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16821 (exit $ac_status); }; } &&
16822 { ac_try='test -s conftest$ac_exeext'
16823 { (case "(($ac_try" in
16824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16825 *) ac_try_echo=$ac_try;;
16827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16828 (eval "$ac_try") 2>&5
16830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16831 (exit $ac_status); }; }; then
16832 eval "$as_ac_var=yes"
16834 echo "$as_me: failed program was:" >&5
16835 sed 's/^/| /' conftest.$ac_ext >&5
16837 eval "$as_ac_var=no"
16840 rm -f core conftest.err conftest.$ac_objext \
16841 conftest$ac_exeext conftest.$ac_ext
16843 ac_res=`eval echo '${'$as_ac_var'}'`
16844 { echo "$as_me:$LINENO: result: $ac_res" >&5
16845 echo "${ECHO_T}$ac_res" >&6; }
16846 if test `eval echo '${'$as_ac_var'}'` = yes; then
16847 cat >>confdefs.h <<_ACEOF
16848 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16855 for ac_header in varargs.h
16857 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16858 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16859 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16860 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16861 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16862 echo $ECHO_N "(cached) $ECHO_C" >&6
16864 ac_res=`eval echo '${'$as_ac_Header'}'`
16865 { echo "$as_me:$LINENO: result: $ac_res" >&5
16866 echo "${ECHO_T}$ac_res" >&6; }
16868 # Is the header compilable?
16869 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16870 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16871 cat >conftest.$ac_ext <<_ACEOF
16874 cat confdefs.h >>conftest.$ac_ext
16875 cat >>conftest.$ac_ext <<_ACEOF
16876 /* end confdefs.h. */
16877 $ac_includes_default
16878 #include <$ac_header>
16880 rm -f conftest.$ac_objext
16881 if { (ac_try="$ac_compile"
16882 case "(($ac_try" in
16883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16884 *) ac_try_echo=$ac_try;;
16886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16887 (eval "$ac_compile") 2>conftest.er1
16889 grep -v '^ *+' conftest.er1 >conftest.err
16891 cat conftest.err >&5
16892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16893 (exit $ac_status); } &&
16894 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16895 { (case "(($ac_try" in
16896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16897 *) ac_try_echo=$ac_try;;
16899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16900 (eval "$ac_try") 2>&5
16902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16903 (exit $ac_status); }; } &&
16904 { ac_try='test -s conftest.$ac_objext'
16905 { (case "(($ac_try" in
16906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16907 *) ac_try_echo=$ac_try;;
16909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16910 (eval "$ac_try") 2>&5
16912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16913 (exit $ac_status); }; }; then
16914 ac_header_compiler=yes
16916 echo "$as_me: failed program was:" >&5
16917 sed 's/^/| /' conftest.$ac_ext >&5
16919 ac_header_compiler=no
16922 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16923 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16924 echo "${ECHO_T}$ac_header_compiler" >&6; }
16926 # Is the header present?
16927 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16928 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16929 cat >conftest.$ac_ext <<_ACEOF
16932 cat confdefs.h >>conftest.$ac_ext
16933 cat >>conftest.$ac_ext <<_ACEOF
16934 /* end confdefs.h. */
16935 #include <$ac_header>
16937 if { (ac_try="$ac_cpp conftest.$ac_ext"
16938 case "(($ac_try" in
16939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16940 *) ac_try_echo=$ac_try;;
16942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16943 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16945 grep -v '^ *+' conftest.er1 >conftest.err
16947 cat conftest.err >&5
16948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16949 (exit $ac_status); } >/dev/null; then
16950 if test -s conftest.err; then
16951 ac_cpp_err=$ac_c_preproc_warn_flag
16952 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16959 if test -z "$ac_cpp_err"; then
16960 ac_header_preproc=yes
16962 echo "$as_me: failed program was:" >&5
16963 sed 's/^/| /' conftest.$ac_ext >&5
16965 ac_header_preproc=no
16968 rm -f conftest.err conftest.$ac_ext
16969 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16970 echo "${ECHO_T}$ac_header_preproc" >&6; }
16972 # So? What about this header?
16973 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16975 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16976 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16977 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16978 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16979 ac_header_preproc=yes
16982 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16983 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16984 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16985 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16986 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16987 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16988 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16989 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16990 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16991 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16992 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16993 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16997 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16998 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16999 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17000 echo $ECHO_N "(cached) $ECHO_C" >&6
17002 eval "$as_ac_Header=\$ac_header_preproc"
17004 ac_res=`eval echo '${'$as_ac_Header'}'`
17005 { echo "$as_me:$LINENO: result: $ac_res" >&5
17006 echo "${ECHO_T}$ac_res" >&6; }
17009 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17010 cat >>confdefs.h <<_ACEOF
17011 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17019 # End of readline/conio stuff
17020 # -----------------------------------------------------------------------
17022 # -----------------------------------------------------------------------
17023 # Check for Python support
17025 { echo "$as_me:$LINENO: checking for Python support" >&5
17026 echo $ECHO_N "checking for Python support... $ECHO_C" >&6; }
17028 # Check whether --with-python was given.
17029 if test "${with_python+set}" = set; then
17030 withval=$with_python;
17033 if test "$withval" != "no"; then
17034 if test "$withval" = "yes"; then
17035 for python_root in /usr /usr/local /usr/sfw; do
17036 for ver in python2.2 python2.3 python2.4 python2.5; do
17037 if test -f $python_root/include/${ver}/Python.h; then
17038 PYTHON_INCDIR=-I$python_root/include/${ver}
17039 if test -d $python_root/lib64/${ver}/config; then
17040 PYTHON_LIBS="-L$python_root/lib64/${ver}/config -l${ver}"
17042 PYTHON_LIBS="-L$python_root/lib/${ver}/config -l${ver}"
17048 if test x$PYTHON_INCDIR = x; then
17049 if test -f $prefix/include/Python.h; then
17050 PYTHON_INCDIR=-I$prefix/include
17051 if test -d $prefix/lib64/config; then
17052 PYTHON_LIBS="-L$prefix/lib64/config -lpython"
17054 PYTHON_LIBS="-L$prefix/lib/config -lpython"
17057 { echo "$as_me:$LINENO: result: no" >&5
17058 echo "${ECHO_T}no" >&6; }
17059 { { echo "$as_me:$LINENO: error: Unable to find Python.h in standard locations" >&5
17060 echo "$as_me: error: Unable to find Python.h in standard locations" >&2;}
17061 { (exit 1); exit 1; }; }
17065 if test -f $withval/Python.h; then
17066 PYTHON_INCDIR=-I$withval
17067 PYTHON_LIBS="-L$withval/config -lpython"
17068 elif test -f $withval/include/Python.h; then
17069 PYTHON_INCDIR=-I$withval/include
17070 if test -d $withval/lib64/config; then
17071 PYTHON_LIBS="-L$withval/lib64/config -lpython"
17073 PYTHON_LIBS="-L$withval/lib/config -lpython"
17075 elif test -f $withval/include/python/Python.h; then
17076 PYTHON_INCDIR=-I$withval/include/python
17077 if test -d $withval/lib64/python/config; then
17078 PYTHON_LIBS="-L$withval/lib64/python/config -lpython"
17080 PYTHON_LIBS="-L$withval/lib/python/config -lpython"
17083 { echo "$as_me:$LINENO: result: no" >&5
17084 echo "${ECHO_T}no" >&6; }
17085 { { echo "$as_me:$LINENO: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&5
17086 echo "$as_me: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&2;}
17087 { (exit 1); exit 1; }; }
17090 cat >>confdefs.h <<\_ACEOF
17091 #define HAVE_PYTHON 1
17094 { echo "$as_me:$LINENO: result: yes" >&5
17095 echo "${ECHO_T}yes" >&6; }
17097 { echo "$as_me:$LINENO: checking for more Python libs" >&5
17098 echo "$as_me: checking for more Python libs" >&6;}
17099 saved_LIBS="$LIBS"; LIBS=
17100 { echo "$as_me:$LINENO: checking for library containing shm_open" >&5
17101 echo $ECHO_N "checking for library containing shm_open... $ECHO_C" >&6; }
17102 if test "${ac_cv_search_shm_open+set}" = set; then
17103 echo $ECHO_N "(cached) $ECHO_C" >&6
17105 ac_func_search_save_LIBS=$LIBS
17106 cat >conftest.$ac_ext <<_ACEOF
17109 cat confdefs.h >>conftest.$ac_ext
17110 cat >>conftest.$ac_ext <<_ACEOF
17111 /* end confdefs.h. */
17113 /* Override any GCC internal prototype to avoid an error.
17114 Use char because int might match the return type of a GCC
17115 builtin and then its argument prototype would still apply. */
17123 return shm_open ();
17128 for ac_lib in '' rt; do
17129 if test -z "$ac_lib"; then
17130 ac_res="none required"
17133 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17135 rm -f conftest.$ac_objext conftest$ac_exeext
17136 if { (ac_try="$ac_link"
17137 case "(($ac_try" in
17138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17139 *) ac_try_echo=$ac_try;;
17141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17142 (eval "$ac_link") 2>conftest.er1
17144 grep -v '^ *+' conftest.er1 >conftest.err
17146 cat conftest.err >&5
17147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17148 (exit $ac_status); } &&
17149 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17150 { (case "(($ac_try" in
17151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17152 *) ac_try_echo=$ac_try;;
17154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17155 (eval "$ac_try") 2>&5
17157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17158 (exit $ac_status); }; } &&
17159 { ac_try='test -s conftest$ac_exeext'
17160 { (case "(($ac_try" in
17161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17162 *) ac_try_echo=$ac_try;;
17164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17165 (eval "$ac_try") 2>&5
17167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17168 (exit $ac_status); }; }; then
17169 ac_cv_search_shm_open=$ac_res
17171 echo "$as_me: failed program was:" >&5
17172 sed 's/^/| /' conftest.$ac_ext >&5
17177 rm -f core conftest.err conftest.$ac_objext \
17179 if test "${ac_cv_search_shm_open+set}" = set; then
17183 if test "${ac_cv_search_shm_open+set}" = set; then
17186 ac_cv_search_shm_open=no
17188 rm conftest.$ac_ext
17189 LIBS=$ac_func_search_save_LIBS
17191 { echo "$as_me:$LINENO: result: $ac_cv_search_shm_open" >&5
17192 echo "${ECHO_T}$ac_cv_search_shm_open" >&6; }
17193 ac_res=$ac_cv_search_shm_open
17194 if test "$ac_res" != no; then
17195 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17200 { echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
17201 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6; }
17202 if test "${ac_cv_lib_util_openpty+set}" = set; then
17203 echo $ECHO_N "(cached) $ECHO_C" >&6
17205 ac_check_lib_save_LIBS=$LIBS
17206 LIBS="-lutil $LIBS"
17207 cat >conftest.$ac_ext <<_ACEOF
17210 cat confdefs.h >>conftest.$ac_ext
17211 cat >>conftest.$ac_ext <<_ACEOF
17212 /* end confdefs.h. */
17214 /* Override any GCC internal prototype to avoid an error.
17215 Use char because int might match the return type of a GCC
17216 builtin and then its argument prototype would still apply. */
17229 rm -f conftest.$ac_objext conftest$ac_exeext
17230 if { (ac_try="$ac_link"
17231 case "(($ac_try" in
17232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17233 *) ac_try_echo=$ac_try;;
17235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17236 (eval "$ac_link") 2>conftest.er1
17238 grep -v '^ *+' conftest.er1 >conftest.err
17240 cat conftest.err >&5
17241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17242 (exit $ac_status); } &&
17243 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17244 { (case "(($ac_try" in
17245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17246 *) ac_try_echo=$ac_try;;
17248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17249 (eval "$ac_try") 2>&5
17251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17252 (exit $ac_status); }; } &&
17253 { ac_try='test -s conftest$ac_exeext'
17254 { (case "(($ac_try" in
17255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17256 *) ac_try_echo=$ac_try;;
17258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17259 (eval "$ac_try") 2>&5
17261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17262 (exit $ac_status); }; }; then
17263 ac_cv_lib_util_openpty=yes
17265 echo "$as_me: failed program was:" >&5
17266 sed 's/^/| /' conftest.$ac_ext >&5
17268 ac_cv_lib_util_openpty=no
17271 rm -f core conftest.err conftest.$ac_objext \
17272 conftest$ac_exeext conftest.$ac_ext
17273 LIBS=$ac_check_lib_save_LIBS
17275 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
17276 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6; }
17277 if test $ac_cv_lib_util_openpty = yes; then
17278 cat >>confdefs.h <<_ACEOF
17279 #define HAVE_LIBUTIL 1
17282 LIBS="-lutil $LIBS"
17286 PYTHON_LIBS="$PYTHON_LIBS $LIBS"
17289 { echo "$as_me:$LINENO: result: no" >&5
17290 echo "${ECHO_T}no" >&6; }
17295 { echo "$as_me:$LINENO: result: no" >&5
17296 echo "${ECHO_T}no" >&6; }
17304 # Find where sockets are (especially for Solaris)
17305 # Do this before the TCP Wrappers test since tcp wrappers
17306 # uses the socket library and some linkers are stupid.
17308 { echo "$as_me:$LINENO: checking for socket" >&5
17309 echo $ECHO_N "checking for socket... $ECHO_C" >&6; }
17310 if test "${ac_cv_func_socket+set}" = set; then
17311 echo $ECHO_N "(cached) $ECHO_C" >&6
17313 cat >conftest.$ac_ext <<_ACEOF
17316 cat confdefs.h >>conftest.$ac_ext
17317 cat >>conftest.$ac_ext <<_ACEOF
17318 /* end confdefs.h. */
17319 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
17320 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17321 #define socket innocuous_socket
17323 /* System header to define __stub macros and hopefully few prototypes,
17324 which can conflict with char socket (); below.
17325 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17326 <limits.h> exists even on freestanding compilers. */
17329 # include <limits.h>
17331 # include <assert.h>
17336 /* Override any GCC internal prototype to avoid an error.
17337 Use char because int might match the return type of a GCC
17338 builtin and then its argument prototype would still apply. */
17343 /* The GNU C library defines this for functions which it implements
17344 to always fail with ENOSYS. Some functions are actually named
17345 something starting with __ and the normal name is an alias. */
17346 #if defined __stub_socket || defined __stub___socket
17358 rm -f conftest.$ac_objext conftest$ac_exeext
17359 if { (ac_try="$ac_link"
17360 case "(($ac_try" in
17361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17362 *) ac_try_echo=$ac_try;;
17364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17365 (eval "$ac_link") 2>conftest.er1
17367 grep -v '^ *+' conftest.er1 >conftest.err
17369 cat conftest.err >&5
17370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17371 (exit $ac_status); } &&
17372 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17373 { (case "(($ac_try" in
17374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17375 *) ac_try_echo=$ac_try;;
17377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17378 (eval "$ac_try") 2>&5
17380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17381 (exit $ac_status); }; } &&
17382 { ac_try='test -s conftest$ac_exeext'
17383 { (case "(($ac_try" in
17384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17385 *) ac_try_echo=$ac_try;;
17387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17388 (eval "$ac_try") 2>&5
17390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17391 (exit $ac_status); }; }; then
17392 ac_cv_func_socket=yes
17394 echo "$as_me: failed program was:" >&5
17395 sed 's/^/| /' conftest.$ac_ext >&5
17397 ac_cv_func_socket=no
17400 rm -f core conftest.err conftest.$ac_objext \
17401 conftest$ac_exeext conftest.$ac_ext
17403 { echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
17404 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
17405 if test $ac_cv_func_socket = yes; then
17406 { echo "$as_me:$LINENO: result: using libc's socket" >&5
17407 echo "${ECHO_T}using libc's socket" >&6; }
17410 { echo "$as_me:$LINENO: checking for socket in -lxnet" >&5
17411 echo $ECHO_N "checking for socket in -lxnet... $ECHO_C" >&6; }
17412 if test "${ac_cv_lib_xnet_socket+set}" = set; then
17413 echo $ECHO_N "(cached) $ECHO_C" >&6
17415 ac_check_lib_save_LIBS=$LIBS
17416 LIBS="-lxnet $LIBS"
17417 cat >conftest.$ac_ext <<_ACEOF
17420 cat confdefs.h >>conftest.$ac_ext
17421 cat >>conftest.$ac_ext <<_ACEOF
17422 /* end confdefs.h. */
17424 /* Override any GCC internal prototype to avoid an error.
17425 Use char because int might match the return type of a GCC
17426 builtin and then its argument prototype would still apply. */
17439 rm -f conftest.$ac_objext conftest$ac_exeext
17440 if { (ac_try="$ac_link"
17441 case "(($ac_try" in
17442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17443 *) ac_try_echo=$ac_try;;
17445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17446 (eval "$ac_link") 2>conftest.er1
17448 grep -v '^ *+' conftest.er1 >conftest.err
17450 cat conftest.err >&5
17451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17452 (exit $ac_status); } &&
17453 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17454 { (case "(($ac_try" in
17455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17456 *) ac_try_echo=$ac_try;;
17458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17459 (eval "$ac_try") 2>&5
17461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17462 (exit $ac_status); }; } &&
17463 { ac_try='test -s conftest$ac_exeext'
17464 { (case "(($ac_try" in
17465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17466 *) ac_try_echo=$ac_try;;
17468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17469 (eval "$ac_try") 2>&5
17471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17472 (exit $ac_status); }; }; then
17473 ac_cv_lib_xnet_socket=yes
17475 echo "$as_me: failed program was:" >&5
17476 sed 's/^/| /' conftest.$ac_ext >&5
17478 ac_cv_lib_xnet_socket=no
17481 rm -f core conftest.err conftest.$ac_objext \
17482 conftest$ac_exeext conftest.$ac_ext
17483 LIBS=$ac_check_lib_save_LIBS
17485 { echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_socket" >&5
17486 echo "${ECHO_T}$ac_cv_lib_xnet_socket" >&6; }
17487 if test $ac_cv_lib_xnet_socket = yes; then
17488 cat >>confdefs.h <<_ACEOF
17489 #define HAVE_LIBXNET 1
17492 LIBS="-lxnet $LIBS"
17497 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
17498 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
17499 if test "${ac_cv_lib_socket_socket+set}" = set; then
17500 echo $ECHO_N "(cached) $ECHO_C" >&6
17502 ac_check_lib_save_LIBS=$LIBS
17503 LIBS="-lsocket $LIBS"
17504 cat >conftest.$ac_ext <<_ACEOF
17507 cat confdefs.h >>conftest.$ac_ext
17508 cat >>conftest.$ac_ext <<_ACEOF
17509 /* end confdefs.h. */
17511 /* Override any GCC internal prototype to avoid an error.
17512 Use char because int might match the return type of a GCC
17513 builtin and then its argument prototype would still apply. */
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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17533 (eval "$ac_link") 2>conftest.er1
17535 grep -v '^ *+' conftest.er1 >conftest.err
17537 cat conftest.err >&5
17538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17539 (exit $ac_status); } &&
17540 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17541 { (case "(($ac_try" in
17542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17543 *) ac_try_echo=$ac_try;;
17545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17546 (eval "$ac_try") 2>&5
17548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17549 (exit $ac_status); }; } &&
17550 { ac_try='test -s conftest$ac_exeext'
17551 { (case "(($ac_try" in
17552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17553 *) ac_try_echo=$ac_try;;
17555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17556 (eval "$ac_try") 2>&5
17558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17559 (exit $ac_status); }; }; then
17560 ac_cv_lib_socket_socket=yes
17562 echo "$as_me: failed program was:" >&5
17563 sed 's/^/| /' conftest.$ac_ext >&5
17565 ac_cv_lib_socket_socket=no
17568 rm -f core conftest.err conftest.$ac_objext \
17569 conftest$ac_exeext conftest.$ac_ext
17570 LIBS=$ac_check_lib_save_LIBS
17572 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
17573 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
17574 if test $ac_cv_lib_socket_socket = yes; then
17575 cat >>confdefs.h <<_ACEOF
17576 #define HAVE_LIBSOCKET 1
17579 LIBS="-lsocket $LIBS"
17584 { echo "$as_me:$LINENO: checking for socket in -linet" >&5
17585 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6; }
17586 if test "${ac_cv_lib_inet_socket+set}" = set; then
17587 echo $ECHO_N "(cached) $ECHO_C" >&6
17589 ac_check_lib_save_LIBS=$LIBS
17590 LIBS="-linet $LIBS"
17591 cat >conftest.$ac_ext <<_ACEOF
17594 cat confdefs.h >>conftest.$ac_ext
17595 cat >>conftest.$ac_ext <<_ACEOF
17596 /* end confdefs.h. */
17598 /* Override any GCC internal prototype to avoid an error.
17599 Use char because int might match the return type of a GCC
17600 builtin and then its argument prototype would still apply. */
17613 rm -f conftest.$ac_objext conftest$ac_exeext
17614 if { (ac_try="$ac_link"
17615 case "(($ac_try" in
17616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17617 *) ac_try_echo=$ac_try;;
17619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17620 (eval "$ac_link") 2>conftest.er1
17622 grep -v '^ *+' conftest.er1 >conftest.err
17624 cat conftest.err >&5
17625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17626 (exit $ac_status); } &&
17627 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17628 { (case "(($ac_try" in
17629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17630 *) ac_try_echo=$ac_try;;
17632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17633 (eval "$ac_try") 2>&5
17635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17636 (exit $ac_status); }; } &&
17637 { ac_try='test -s conftest$ac_exeext'
17638 { (case "(($ac_try" in
17639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17640 *) ac_try_echo=$ac_try;;
17642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17643 (eval "$ac_try") 2>&5
17645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17646 (exit $ac_status); }; }; then
17647 ac_cv_lib_inet_socket=yes
17649 echo "$as_me: failed program was:" >&5
17650 sed 's/^/| /' conftest.$ac_ext >&5
17652 ac_cv_lib_inet_socket=no
17655 rm -f core conftest.err conftest.$ac_objext \
17656 conftest$ac_exeext conftest.$ac_ext
17657 LIBS=$ac_check_lib_save_LIBS
17659 { echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
17660 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6; }
17661 if test $ac_cv_lib_inet_socket = yes; then
17662 cat >>confdefs.h <<_ACEOF
17663 #define HAVE_LIBINET 1
17666 LIBS="-linet $LIBS"
17674 # -----------------------------------------------------------
17675 # Check whether user wants TCP wrappers support (default off)
17676 # -----------------------------------------------------------
17680 # Check whether --with-tcp-wrappers was given.
17681 if test "${with_tcp_wrappers+set}" = set; then
17682 withval=$with_tcp_wrappers;
17683 if test "x$withval" != "xno" ; then
17685 LIBS="$saved_LIBS -lwrap"
17686 { echo "$as_me:$LINENO: checking for libwrap" >&5
17687 echo $ECHO_N "checking for libwrap... $ECHO_C" >&6; }
17688 { echo "$as_me:$LINENO: checking for library containing nanosleep" >&5
17689 echo $ECHO_N "checking for library containing nanosleep... $ECHO_C" >&6; }
17690 if test "${ac_cv_search_nanosleep+set}" = set; then
17691 echo $ECHO_N "(cached) $ECHO_C" >&6
17693 ac_func_search_save_LIBS=$LIBS
17694 cat >conftest.$ac_ext <<_ACEOF
17697 cat confdefs.h >>conftest.$ac_ext
17698 cat >>conftest.$ac_ext <<_ACEOF
17699 /* end confdefs.h. */
17701 /* Override any GCC internal prototype to avoid an error.
17702 Use char because int might match the return type of a GCC
17703 builtin and then its argument prototype would still apply. */
17711 return nanosleep ();
17716 for ac_lib in '' rt; do
17717 if test -z "$ac_lib"; then
17718 ac_res="none required"
17721 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17723 rm -f conftest.$ac_objext conftest$ac_exeext
17724 if { (ac_try="$ac_link"
17725 case "(($ac_try" in
17726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17727 *) ac_try_echo=$ac_try;;
17729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17730 (eval "$ac_link") 2>conftest.er1
17732 grep -v '^ *+' conftest.er1 >conftest.err
17734 cat conftest.err >&5
17735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17736 (exit $ac_status); } &&
17737 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17738 { (case "(($ac_try" in
17739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17740 *) ac_try_echo=$ac_try;;
17742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17743 (eval "$ac_try") 2>&5
17745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17746 (exit $ac_status); }; } &&
17747 { ac_try='test -s conftest$ac_exeext'
17748 { (case "(($ac_try" in
17749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17750 *) ac_try_echo=$ac_try;;
17752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17753 (eval "$ac_try") 2>&5
17755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17756 (exit $ac_status); }; }; then
17757 ac_cv_search_nanosleep=$ac_res
17759 echo "$as_me: failed program was:" >&5
17760 sed 's/^/| /' conftest.$ac_ext >&5
17765 rm -f core conftest.err conftest.$ac_objext \
17767 if test "${ac_cv_search_nanosleep+set}" = set; then
17771 if test "${ac_cv_search_nanosleep+set}" = set; then
17774 ac_cv_search_nanosleep=no
17776 rm conftest.$ac_ext
17777 LIBS=$ac_func_search_save_LIBS
17779 { echo "$as_me:$LINENO: result: $ac_cv_search_nanosleep" >&5
17780 echo "${ECHO_T}$ac_cv_search_nanosleep" >&6; }
17781 ac_res=$ac_cv_search_nanosleep
17782 if test "$ac_res" != no; then
17783 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17787 cat >conftest.$ac_ext <<_ACEOF
17790 cat confdefs.h >>conftest.$ac_ext
17791 cat >>conftest.$ac_ext <<_ACEOF
17792 /* end confdefs.h. */
17793 #include <sys/types.h>
17795 int deny_severity = 0;
17796 int allow_severity = 0;
17797 struct request_info *req;
17806 rm -f conftest.$ac_objext conftest$ac_exeext
17807 if { (ac_try="$ac_link"
17808 case "(($ac_try" in
17809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17810 *) ac_try_echo=$ac_try;;
17812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17813 (eval "$ac_link") 2>conftest.er1
17815 grep -v '^ *+' conftest.er1 >conftest.err
17817 cat conftest.err >&5
17818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17819 (exit $ac_status); } &&
17820 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17821 { (case "(($ac_try" in
17822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17823 *) ac_try_echo=$ac_try;;
17825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17826 (eval "$ac_try") 2>&5
17828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17829 (exit $ac_status); }; } &&
17830 { ac_try='test -s conftest$ac_exeext'
17831 { (case "(($ac_try" in
17832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17833 *) ac_try_echo=$ac_try;;
17835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17836 (eval "$ac_try") 2>&5
17838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17839 (exit $ac_status); }; }; then
17841 { echo "$as_me:$LINENO: result: yes" >&5
17842 echo "${ECHO_T}yes" >&6; }
17843 cat >>confdefs.h <<\_ACEOF
17844 #define HAVE_LIBWRAP 1
17852 echo "$as_me: failed program was:" >&5
17853 sed 's/^/| /' conftest.$ac_ext >&5
17856 LIBS="$saved_LIBS -lwrap -lnsl"
17857 WRAPLIBS="$saved_LIBS -lwrap -lnsl"
17858 cat >conftest.$ac_ext <<_ACEOF
17861 cat confdefs.h >>conftest.$ac_ext
17862 cat >>conftest.$ac_ext <<_ACEOF
17863 /* end confdefs.h. */
17864 #include <sys/types.h>
17866 int deny_severity = 0;
17867 int allow_severity = 0;
17868 struct request_info *req;
17877 rm -f conftest.$ac_objext conftest$ac_exeext
17878 if { (ac_try="$ac_link"
17879 case "(($ac_try" in
17880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17881 *) ac_try_echo=$ac_try;;
17883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17884 (eval "$ac_link") 2>conftest.er1
17886 grep -v '^ *+' conftest.er1 >conftest.err
17888 cat conftest.err >&5
17889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17890 (exit $ac_status); } &&
17891 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17892 { (case "(($ac_try" in
17893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17894 *) ac_try_echo=$ac_try;;
17896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17897 (eval "$ac_try") 2>&5
17899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17900 (exit $ac_status); }; } &&
17901 { ac_try='test -s conftest$ac_exeext'
17902 { (case "(($ac_try" in
17903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17904 *) ac_try_echo=$ac_try;;
17906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17907 (eval "$ac_try") 2>&5
17909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17910 (exit $ac_status); }; }; then
17912 { echo "$as_me:$LINENO: result: yes" >&5
17913 echo "${ECHO_T}yes" >&6; }
17914 cat >>confdefs.h <<\_ACEOF
17915 #define HAVE_LIBWRAP 1
17923 echo "$as_me: failed program was:" >&5
17924 sed 's/^/| /' conftest.$ac_ext >&5
17926 { { echo "$as_me:$LINENO: error: *** libwrap missing" >&5
17927 echo "$as_me: error: *** libwrap missing" >&2;}
17928 { (exit 1); exit 1; }; }
17932 rm -f core conftest.err conftest.$ac_objext \
17933 conftest$ac_exeext conftest.$ac_ext
17937 rm -f core conftest.err conftest.$ac_objext \
17938 conftest$ac_exeext conftest.$ac_ext
17945 # -----------------------------------------------------------
17946 # Check whether OpenSSL is available
17947 # -----------------------------------------------------------
17948 { echo "$as_me:$LINENO: checking for OpenSSL" >&5
17949 echo $ECHO_N "checking for OpenSSL... $ECHO_C" >&6; }
17951 # Check whether --with-openssl was given.
17952 if test "${with_openssl+set}" = set; then
17953 withval=$with_openssl; with_openssl_directory=${withval}
17957 if test "x$with_openssl_directory" != "x"; then
17958 OPENSSL_LIBS="-lssl -lcrypto"
17961 if test "x$with_openssl_directory" != "xyes" && test x"${with_openssl_directory}" != "x"; then
17962 OPENSSL_LIBS="-L$with_openssl_directory/lib $OPENSSL_LIBS"
17963 OPENSSL_INC="-I$with_openssl_directory/include $OPENSSL_INC"
17966 saved_LIBS="${LIBS}"
17967 saved_CFLAGS="${CFLAGS}"
17968 LIBS="${saved_LIBS} ${OPENSSL_LIBS}"
17969 CFLAGS="${saved_CFLAGS} ${OPENSSL_INC}"
17971 cat >conftest.$ac_ext <<_ACEOF
17974 cat confdefs.h >>conftest.$ac_ext
17975 cat >>conftest.$ac_ext <<_ACEOF
17976 /* end confdefs.h. */
17977 #include <openssl/ssl.h>
17981 CRYPTO_set_id_callback(NULL);
17986 rm -f conftest.$ac_objext conftest$ac_exeext
17987 if { (ac_try="$ac_link"
17988 case "(($ac_try" in
17989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17990 *) ac_try_echo=$ac_try;;
17992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17993 (eval "$ac_link") 2>conftest.er1
17995 grep -v '^ *+' conftest.er1 >conftest.err
17997 cat conftest.err >&5
17998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17999 (exit $ac_status); } &&
18000 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18001 { (case "(($ac_try" in
18002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18003 *) ac_try_echo=$ac_try;;
18005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18006 (eval "$ac_try") 2>&5
18008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18009 (exit $ac_status); }; } &&
18010 { ac_try='test -s conftest$ac_exeext'
18011 { (case "(($ac_try" in
18012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18013 *) ac_try_echo=$ac_try;;
18015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18016 (eval "$ac_try") 2>&5
18018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18019 (exit $ac_status); }; }; then
18022 support_crypto="yes"
18025 echo "$as_me: failed program was:" >&5
18026 sed 's/^/| /' conftest.$ac_ext >&5
18032 rm -f core conftest.err conftest.$ac_objext \
18033 conftest$ac_exeext conftest.$ac_ext
18035 cat >conftest.$ac_ext <<_ACEOF
18038 cat confdefs.h >>conftest.$ac_ext
18039 cat >>conftest.$ac_ext <<_ACEOF
18040 /* end confdefs.h. */
18041 #include <openssl/evp.h>
18050 rm -f conftest.$ac_objext conftest$ac_exeext
18051 if { (ac_try="$ac_link"
18052 case "(($ac_try" in
18053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18054 *) ac_try_echo=$ac_try;;
18056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18057 (eval "$ac_link") 2>conftest.er1
18059 grep -v '^ *+' conftest.er1 >conftest.err
18061 cat conftest.err >&5
18062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18063 (exit $ac_status); } &&
18064 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18065 { (case "(($ac_try" in
18066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18067 *) ac_try_echo=$ac_try;;
18069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18070 (eval "$ac_try") 2>&5
18072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18073 (exit $ac_status); }; } &&
18074 { ac_try='test -s conftest$ac_exeext'
18075 { (case "(($ac_try" in
18076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18077 *) ac_try_echo=$ac_try;;
18079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18080 (eval "$ac_try") 2>&5
18082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18083 (exit $ac_status); }; }; then
18084 ac_cv_openssl_sha2="yes"
18086 echo "$as_me: failed program was:" >&5
18087 sed 's/^/| /' conftest.$ac_ext >&5
18089 ac_cv_openssl_sha2="no"
18093 rm -f core conftest.err conftest.$ac_objext \
18094 conftest$ac_exeext conftest.$ac_ext
18096 # Solaris disables greater than 128+ bit encryption in their OpenSSL
18097 # implementation, presumably for export reasons. If 192bit AES
18098 # is available, we assume that we're running with a 'non-export'
18100 cat >conftest.$ac_ext <<_ACEOF
18103 cat confdefs.h >>conftest.$ac_ext
18104 cat >>conftest.$ac_ext <<_ACEOF
18105 /* end confdefs.h. */
18106 #include <openssl/evp.h>
18115 rm -f conftest.$ac_objext conftest$ac_exeext
18116 if { (ac_try="$ac_link"
18117 case "(($ac_try" in
18118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18119 *) ac_try_echo=$ac_try;;
18121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18122 (eval "$ac_link") 2>conftest.er1
18124 grep -v '^ *+' conftest.er1 >conftest.err
18126 cat conftest.err >&5
18127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18128 (exit $ac_status); } &&
18129 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18130 { (case "(($ac_try" in
18131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18132 *) ac_try_echo=$ac_try;;
18134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18135 (eval "$ac_try") 2>&5
18137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18138 (exit $ac_status); }; } &&
18139 { ac_try='test -s conftest$ac_exeext'
18140 { (case "(($ac_try" in
18141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18142 *) ac_try_echo=$ac_try;;
18144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18145 (eval "$ac_try") 2>&5
18147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18148 (exit $ac_status); }; }; then
18149 ac_cv_openssl_export="no"
18151 echo "$as_me: failed program was:" >&5
18152 sed 's/^/| /' conftest.$ac_ext >&5
18154 ac_cv_openssl_export="yes"
18158 rm -f core conftest.err conftest.$ac_objext \
18159 conftest$ac_exeext conftest.$ac_ext
18161 LIBS="${saved_LIBS}"
18162 CFLAGS="${saved_CFLAGS}"
18164 if test "$support_tls" = "yes"; then
18166 cat >>confdefs.h <<\_ACEOF
18167 #define HAVE_OPENSSL 1
18171 cat >>confdefs.h <<\_ACEOF
18176 cat >>confdefs.h <<\_ACEOF
18177 #define HAVE_CRYPTO 1
18182 if test "$ac_cv_openssl_sha2" = "yes"; then
18184 cat >>confdefs.h <<\_ACEOF
18185 #define HAVE_SHA2 1
18190 if test "$ac_cv_openssl_export" = "yes"; then
18192 cat >>confdefs.h <<\_ACEOF
18193 #define HAVE_OPENSSL_EXPORT_LIBRARY 1
18199 support_crypto="no"
18204 { echo "$as_me:$LINENO: result: $support_tls" >&5
18205 echo "${ECHO_T}$support_tls" >&6; }
18210 # -----------------------------------------------------------
18211 # Python and OpenSSL are using dlopen
18212 # -----------------------------------------------------------
18214 if test "$support_python" = "yes" -o "$support_tls" = "yes"; then
18215 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
18216 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
18217 if test "${ac_cv_search_dlopen+set}" = set; then
18218 echo $ECHO_N "(cached) $ECHO_C" >&6
18220 ac_func_search_save_LIBS=$LIBS
18221 cat >conftest.$ac_ext <<_ACEOF
18224 cat confdefs.h >>conftest.$ac_ext
18225 cat >>conftest.$ac_ext <<_ACEOF
18226 /* end confdefs.h. */
18228 /* Override any GCC internal prototype to avoid an error.
18229 Use char because int might match the return type of a GCC
18230 builtin and then its argument prototype would still apply. */
18243 for ac_lib in '' dl; do
18244 if test -z "$ac_lib"; then
18245 ac_res="none required"
18248 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18250 rm -f conftest.$ac_objext conftest$ac_exeext
18251 if { (ac_try="$ac_link"
18252 case "(($ac_try" in
18253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18254 *) ac_try_echo=$ac_try;;
18256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18257 (eval "$ac_link") 2>conftest.er1
18259 grep -v '^ *+' conftest.er1 >conftest.err
18261 cat conftest.err >&5
18262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18263 (exit $ac_status); } &&
18264 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18265 { (case "(($ac_try" in
18266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18267 *) ac_try_echo=$ac_try;;
18269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18270 (eval "$ac_try") 2>&5
18272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18273 (exit $ac_status); }; } &&
18274 { ac_try='test -s conftest$ac_exeext'
18275 { (case "(($ac_try" in
18276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18277 *) ac_try_echo=$ac_try;;
18279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18280 (eval "$ac_try") 2>&5
18282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18283 (exit $ac_status); }; }; then
18284 ac_cv_search_dlopen=$ac_res
18286 echo "$as_me: failed program was:" >&5
18287 sed 's/^/| /' conftest.$ac_ext >&5
18292 rm -f core conftest.err conftest.$ac_objext \
18294 if test "${ac_cv_search_dlopen+set}" = set; then
18298 if test "${ac_cv_search_dlopen+set}" = set; then
18301 ac_cv_search_dlopen=no
18303 rm conftest.$ac_ext
18304 LIBS=$ac_func_search_save_LIBS
18306 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
18307 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
18308 ac_res=$ac_cv_search_dlopen
18309 if test "$ac_res" != no; then
18310 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18316 # ------------------------------------------
18317 # Where to place working dir
18318 # ------------------------------------------
18319 working_dir=`eval echo ${prefix}/var/bacula/working`
18321 # Check whether --with-working-dir was given.
18322 if test "${with_working_dir+set}" = set; then
18323 withval=$with_working_dir;
18324 if test "x$withval" != "xno" ; then
18325 working_dir=$withval
18335 # ------------------------------------------
18336 # Where to place scriptdir (script files)
18337 # ------------------------------------------
18338 scriptdir=`eval echo ${sysconfdir}`
18340 # Check whether --with-scriptdir was given.
18341 if test "${with_scriptdir+set}" = set; then
18342 withval=$with_scriptdir;
18343 if test "x$withval" != "xno" ; then
18354 # ------------------------------------------
18355 # Where to send dump email
18356 # ------------------------------------------
18357 dump_email=root@localhost
18359 # Check whether --with-dump-email was given.
18360 if test "${with_dump_email+set}" = set; then
18361 withval=$with_dump_email;
18362 if test "x$withval" != "xno" ; then
18363 dump_email=$withval
18372 # ------------------------------------------
18373 # Where to send job email
18374 # ------------------------------------------
18375 job_email=root@localhost
18377 # Check whether --with-job-email was given.
18378 if test "${with_job_email+set}" = set; then
18379 withval=$with_job_email;
18380 if test "x$withval" != "xno" ; then
18390 # ------------------------------------------
18391 # Where to find smtp host
18392 # ------------------------------------------
18393 smtp_host=localhost
18395 # Check whether --with-smtp_host was given.
18396 if test "${with_smtp_host+set}" = set; then
18397 withval=$with_smtp_host;
18398 if test "x$withval" != "xno" ; then
18409 # ------------------------------------
18410 # Where to place pid files
18411 # ------------------------------------
18414 # Check whether --with-pid-dir was given.
18415 if test "${with_pid_dir+set}" = set; then
18416 withval=$with_pid_dir;
18417 if test "x$withval" != "xno" ; then
18425 cat >>confdefs.h <<_ACEOF
18426 #define _PATH_BACULA_PIDDIR "$piddir"
18432 # ------------------------------------
18433 # Where to place subsys "lock file"
18434 # ------------------------------------
18435 ubsysdir=/var/run/subsys
18436 if test -d /var/run/subsys; then
18437 subsysdir=/var/run/subsys
18438 elif test -d /var/lock/subsys; then
18439 subsysdir=/var/lock/subsys
18441 subsysdir=/var/run/subsys
18444 # Check whether --with-subsys-dir was given.
18445 if test "${with_subsys_dir+set}" = set; then
18446 withval=$with_subsys_dir;
18447 if test "x$withval" != "xno" ; then
18459 # ------------------------------------
18460 # Where to start assigning ports
18461 # ------------------------------------
18464 # Check whether --with-baseport was given.
18465 if test "${with_baseport+set}" = set; then
18466 withval=$with_baseport;
18467 if test "x$withval" != "xno" ; then
18476 dir_port=`expr $baseport`
18477 fd_port=`expr $baseport + 1`
18478 sd_port=`expr $fd_port + 1`
18485 # ------------------------------------------
18486 # Generate passwords
18487 # ------------------------------------------
18490 # Check whether --with-dir-password was given.
18491 if test "${with_dir_password+set}" = set; then
18492 withval=$with_dir_password;
18493 if test "x$withval" != "xno" ; then
18494 dir_password=$withval
18501 if test "x$dir_password" = "x" ; then
18502 if test "x$OPENSSL" = "xnone" ; then
18503 key=`autoconf/randpass 33`
18505 key=`openssl rand -base64 33`
18512 # Check whether --with-fd-password was given.
18513 if test "${with_fd_password+set}" = set; then
18514 withval=$with_fd_password;
18515 if test "x$withval" != "xno" ; then
18516 fd_password=$withval
18523 if test "x$fd_password" = "x" ; then
18524 if test "x$OPENSSL" = "xnone" ; then
18525 key=`autoconf/randpass 37`
18527 key=`openssl rand -base64 33`
18534 # Check whether --with-sd-password was given.
18535 if test "${with_sd_password+set}" = set; then
18536 withval=$with_sd_password;
18537 if test "x$withval" != "xno" ; then
18538 sd_password=$withval
18545 if test "x$sd_password" = "x" ; then
18546 if test "x$OPENSSL" = "xnone" ; then
18547 key=`autoconf/randpass 41`
18549 key=`openssl rand -base64 33`
18556 # Check whether --with-mon-dir-password was given.
18557 if test "${with_mon_dir_password+set}" = set; then
18558 withval=$with_mon_dir_password;
18559 if test "x$withval" != "xno" ; then
18560 mon_dir_password=$withval
18567 if test "x$mon_dir_password" = "x" ; then
18568 if test "x$OPENSSL" = "xnone" ; then
18569 key=`autoconf/randpass 33`
18571 key=`openssl rand -base64 33`
18573 mon_dir_password=$key
18578 # Check whether --with-mon-fd-password was given.
18579 if test "${with_mon_fd_password+set}" = set; then
18580 withval=$with_mon_fd_password;
18581 if test "x$withval" != "xno" ; then
18582 mon_fd_password=$withval
18589 if test "x$mon_fd_password" = "x" ; then
18590 if test "x$OPENSSL" = "xnone" ; then
18591 key=`autoconf/randpass 37`
18593 key=`openssl rand -base64 33`
18595 mon_fd_password=$key
18600 # Check whether --with-mon-sd-password was given.
18601 if test "${with_mon_sd_password+set}" = set; then
18602 withval=$with_mon_sd_password;
18603 if test "x$withval" != "xno" ; then
18604 mon_sd_password=$withval
18611 if test "x$mon_sd_password" = "x" ; then
18612 if test "x$OPENSSL" = "xnone" ; then
18613 key=`autoconf/randpass 41`
18615 key=`openssl rand -base64 33`
18617 mon_sd_password=$key
18628 # Pickup any database name
18632 # Check whether --with-db_name was given.
18633 if test "${with_db_name+set}" = set; then
18634 withval=$with_db_name;
18635 if test "x$withval" != "x" ; then
18646 # Check whether --with-db_user was given.
18647 if test "${with_db_user+set}" = set; then
18648 withval=$with_db_user;
18649 if test "x$withval" != "x" ; then
18660 # Handle users and groups for each daemon
18664 # Check whether --with-dir_user was given.
18665 if test "${with_dir_user+set}" = set; then
18666 withval=$with_dir_user;
18667 if test "x$withval" != "x" ; then
18677 # Check whether --with-dir_group was given.
18678 if test "${with_dir_group+set}" = set; then
18679 withval=$with_dir_group;
18680 if test "x$withval" != "x" ; then
18690 # Check whether --with-sd_user was given.
18691 if test "${with_sd_user+set}" = set; then
18692 withval=$with_sd_user;
18693 if test "x$withval" != "x" ; then
18703 # Check whether --with-sd_group was given.
18704 if test "${with_sd_group+set}" = set; then
18705 withval=$with_sd_group;
18706 if test "x$withval" != "x" ; then
18716 # Check whether --with-fd_user was given.
18717 if test "${with_fd_user+set}" = set; then
18718 withval=$with_fd_user;
18719 if test "x$withval" != "x" ; then
18729 # Check whether --with-fd_group was given.
18730 if test "${with_fd_group+set}" = set; then
18731 withval=$with_fd_group;
18732 if test "x$withval" != "x" ; then
18748 # allow setting default executable permissions
18752 # Check whether --with-sbin-perm was given.
18753 if test "${with_sbin_perm+set}" = set; then
18754 withval=$with_sbin_perm;
18755 if test "x$withval" != "x" ; then
18765 # ------------------------------------------------
18766 # Bacula check for various SQL database engines
18767 # ------------------------------------------------
18771 { echo "$as_me:$LINENO: checking for PostgreSQL support" >&5
18772 echo $ECHO_N "checking for PostgreSQL support... $ECHO_C" >&6; }
18774 # Check whether --with-postgresql was given.
18775 if test "${with_postgresql+set}" = set; then
18776 withval=$with_postgresql;
18777 if test "$withval" != "no"; then
18778 if test "$db_found" = "yes"; then
18779 { echo "$as_me:$LINENO: result: error" >&5
18780 echo "${ECHO_T}error" >&6; }
18781 { { echo "$as_me:$LINENO: error: \"You can configure for only one database.\"" >&5
18782 echo "$as_me: error: \"You can configure for only one database.\"" >&2;}
18783 { (exit 1); exit 1; }; };
18785 if test "$withval" = "yes"; then
18786 PG_CONFIG=`which pg_config`
18787 if test -n "$PG_CONFIG";then
18788 POSTGRESQL_INCDIR=`"$PG_CONFIG" --includedir`
18789 POSTGRESQL_LIBDIR=`"$PG_CONFIG" --libdir`
18790 POSTGRESQL_BINDIR=`"$PG_CONFIG" --bindir`
18791 elif test -f /usr/local/include/libpq-fe.h; then
18792 POSTGRESQL_INCDIR=/usr/local/include
18793 if test -d /usr/local/lib64; then
18794 POSTGRESQL_LIBDIR=/usr/local/lib64
18796 POSTGRESQL_LIBDIR=/usr/local/lib
18798 POSTGRESQL_BINDIR=/usr/local/bin
18799 elif test -f /usr/include/libpq-fe.h; then
18800 POSTGRESQL_INCDIR=/usr/include
18801 if test -d /usr/lib64; then
18802 POSTGRESQL_LIBDIR=/usr/lib64
18804 POSTGRESQL_LIBDIR=/usr/lib
18806 POSTGRESQL_BINDIR=/usr/bin
18807 elif test -f /usr/include/pgsql/libpq-fe.h; then
18808 POSTGRESQL_INCDIR=/usr/include/pgsql
18809 if test -d /usr/lib64/pgsql; then
18810 POSTGRESQL_LIBDIR=/usr/lib64/pgsql
18812 POSTGRESQL_LIBDIR=/usr/lib/pgsql
18814 POSTGRESQL_BINDIR=/usr/bin
18815 elif test -f /usr/include/postgresql/libpq-fe.h; then
18816 POSTGRESQL_INCDIR=/usr/include/postgresql
18817 if test -d /usr/lib64/postgresql; then
18818 POSTGRESQL_LIBDIR=/usr/lib64/postgresql
18820 POSTGRESQL_LIBDIR=/usr/lib/postgresql
18822 POSTGRESQL_BINDIR=/usr/bin
18824 { echo "$as_me:$LINENO: result: no" >&5
18825 echo "${ECHO_T}no" >&6; }
18826 { { echo "$as_me:$LINENO: error: Unable to find libpq-fe.h in standard locations" >&5
18827 echo "$as_me: error: Unable to find libpq-fe.h in standard locations" >&2;}
18828 { (exit 1); exit 1; }; }
18830 elif test -f $withval/include/libpq-fe.h; then
18831 POSTGRESQL_INCDIR=$withval/include
18832 POSTGRESQL_LIBDIR=$withval/lib
18833 POSTGRESQL_BINDIR=$withval/bin
18834 elif test -f $withval/include/postgresql/libpq-fe.h; then
18835 POSTGRESQL_INCDIR=$withval/include/postgresql
18836 if test -d $withval/lib64; then
18837 POSTGRESQL_LIBDIR=$withval/lib64
18839 POSTGRESQL_LIBDIR=$withval/lib
18841 POSTGRESQL_BINDIR=$withval/bin
18843 { echo "$as_me:$LINENO: result: no" >&5
18844 echo "${ECHO_T}no" >&6; }
18845 { { echo "$as_me:$LINENO: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&5
18846 echo "$as_me: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&2;}
18847 { (exit 1); exit 1; }; }
18849 POSTGRESQL_LFLAGS="-L$POSTGRESQL_LIBDIR -lpq"
18850 { echo "$as_me:$LINENO: checking for crypt" >&5
18851 echo $ECHO_N "checking for crypt... $ECHO_C" >&6; }
18852 if test "${ac_cv_func_crypt+set}" = set; then
18853 echo $ECHO_N "(cached) $ECHO_C" >&6
18855 cat >conftest.$ac_ext <<_ACEOF
18858 cat confdefs.h >>conftest.$ac_ext
18859 cat >>conftest.$ac_ext <<_ACEOF
18860 /* end confdefs.h. */
18861 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
18862 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18863 #define crypt innocuous_crypt
18865 /* System header to define __stub macros and hopefully few prototypes,
18866 which can conflict with char crypt (); below.
18867 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18868 <limits.h> exists even on freestanding compilers. */
18871 # include <limits.h>
18873 # include <assert.h>
18878 /* Override any GCC internal prototype to avoid an error.
18879 Use char because int might match the return type of a GCC
18880 builtin and then its argument prototype would still apply. */
18885 /* The GNU C library defines this for functions which it implements
18886 to always fail with ENOSYS. Some functions are actually named
18887 something starting with __ and the normal name is an alias. */
18888 #if defined __stub_crypt || defined __stub___crypt
18900 rm -f conftest.$ac_objext conftest$ac_exeext
18901 if { (ac_try="$ac_link"
18902 case "(($ac_try" in
18903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18904 *) ac_try_echo=$ac_try;;
18906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18907 (eval "$ac_link") 2>conftest.er1
18909 grep -v '^ *+' conftest.er1 >conftest.err
18911 cat conftest.err >&5
18912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18913 (exit $ac_status); } &&
18914 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18915 { (case "(($ac_try" in
18916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18917 *) ac_try_echo=$ac_try;;
18919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18920 (eval "$ac_try") 2>&5
18922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18923 (exit $ac_status); }; } &&
18924 { ac_try='test -s conftest$ac_exeext'
18925 { (case "(($ac_try" in
18926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18927 *) ac_try_echo=$ac_try;;
18929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18930 (eval "$ac_try") 2>&5
18932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18933 (exit $ac_status); }; }; then
18934 ac_cv_func_crypt=yes
18936 echo "$as_me: failed program was:" >&5
18937 sed 's/^/| /' conftest.$ac_ext >&5
18939 ac_cv_func_crypt=no
18942 rm -f core conftest.err conftest.$ac_objext \
18943 conftest$ac_exeext conftest.$ac_ext
18945 { echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
18946 echo "${ECHO_T}$ac_cv_func_crypt" >&6; }
18947 if test $ac_cv_func_crypt = yes; then
18950 { echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
18951 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6; }
18952 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
18953 echo $ECHO_N "(cached) $ECHO_C" >&6
18955 ac_check_lib_save_LIBS=$LIBS
18956 LIBS="-lcrypt $LIBS"
18957 cat >conftest.$ac_ext <<_ACEOF
18960 cat confdefs.h >>conftest.$ac_ext
18961 cat >>conftest.$ac_ext <<_ACEOF
18962 /* end confdefs.h. */
18964 /* Override any GCC internal prototype to avoid an error.
18965 Use char because int might match the return type of a GCC
18966 builtin and then its argument prototype would still apply. */
18979 rm -f conftest.$ac_objext conftest$ac_exeext
18980 if { (ac_try="$ac_link"
18981 case "(($ac_try" in
18982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18983 *) ac_try_echo=$ac_try;;
18985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18986 (eval "$ac_link") 2>conftest.er1
18988 grep -v '^ *+' conftest.er1 >conftest.err
18990 cat conftest.err >&5
18991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18992 (exit $ac_status); } &&
18993 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18994 { (case "(($ac_try" in
18995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18996 *) ac_try_echo=$ac_try;;
18998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18999 (eval "$ac_try") 2>&5
19001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19002 (exit $ac_status); }; } &&
19003 { ac_try='test -s conftest$ac_exeext'
19004 { (case "(($ac_try" in
19005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19006 *) ac_try_echo=$ac_try;;
19008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19009 (eval "$ac_try") 2>&5
19011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19012 (exit $ac_status); }; }; then
19013 ac_cv_lib_crypt_crypt=yes
19015 echo "$as_me: failed program was:" >&5
19016 sed 's/^/| /' conftest.$ac_ext >&5
19018 ac_cv_lib_crypt_crypt=no
19021 rm -f core conftest.err conftest.$ac_objext \
19022 conftest$ac_exeext conftest.$ac_ext
19023 LIBS=$ac_check_lib_save_LIBS
19025 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
19026 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6; }
19027 if test $ac_cv_lib_crypt_crypt = yes; then
19028 POSTGRESQL_LFLAGS="$POSTGRESQL_LFLAGS -lcrypt"
19033 SQL_INCLUDE=-I$POSTGRESQL_INCDIR
19034 SQL_LFLAGS=$POSTGRESQL_LFLAGS
19035 SQL_BINDIR=$POSTGRESQL_BINDIR
19036 SQL_LIB=$POSTGRESQL_LIBDIR/libpq.a
19038 cat >>confdefs.h <<\_ACEOF
19039 #define HAVE_POSTGRESQL 1
19042 { echo "$as_me:$LINENO: result: yes" >&5
19043 echo "${ECHO_T}yes" >&6; }
19045 support_postgresql=yes
19049 { echo "$as_me:$LINENO: result: no" >&5
19050 echo "${ECHO_T}no" >&6; }
19055 { echo "$as_me:$LINENO: result: no" >&5
19056 echo "${ECHO_T}no" >&6; }
19068 { echo "$as_me:$LINENO: checking for MySQL support" >&5
19069 echo $ECHO_N "checking for MySQL support... $ECHO_C" >&6; }
19071 # Check whether --with-mysql was given.
19072 if test "${with_mysql+set}" = set; then
19073 withval=$with_mysql;
19074 if test "$withval" != "no"; then
19075 if test "$withval" = "yes"; then
19076 if test -f /usr/local/mysql/include/mysql/mysql.h; then
19077 MYSQL_INCDIR=/usr/local/mysql/include/mysql
19078 if test -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.a \
19079 -o -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.so; then
19080 MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
19082 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
19084 MYSQL_BINDIR=/usr/local/mysql/bin
19085 elif test -f /usr/include/mysql/mysql.h; then
19086 MYSQL_INCDIR=/usr/include/mysql
19087 if test -f /usr/lib64/mysql/libmysqlclient_r.a \
19088 -o -f /usr/lib64/mysql/libmysqlclient_r.so; then
19089 MYSQL_LIBDIR=/usr/lib64/mysql
19090 elif test -f /usr/lib/mysql/libmysqlclient_r.a \
19091 -o -f /usr/lib/mysql/libmysqlclient_r.so; then
19092 MYSQL_LIBDIR=/usr/lib/mysql
19094 MYSQL_LIBDIR=/usr/lib
19096 MYSQL_BINDIR=/usr/bin
19097 elif test -f /usr/include/mysql.h; then
19098 MYSQL_INCDIR=/usr/include
19099 if test -f /usr/lib64/libmysqlclient_r.a \
19100 -o -f /usr/lib64/libmysqlclient_r.so; then
19101 MYSQL_LIBDIR=/usr/lib64
19103 MYSQL_LIBDIR=/usr/lib
19105 MYSQL_BINDIR=/usr/bin
19106 elif test -f /usr/local/include/mysql/mysql.h; then
19107 MYSQL_INCDIR=/usr/local/include/mysql
19108 if test -f /usr/local/lib64/mysql/libmysqlclient_r.a \
19109 -o -f /usr/local/lib64/mysql/libmysqlclient_r.so; then
19110 MYSQL_LIBDIR=/usr/local/lib64/mysql
19112 MYSQL_LIBDIR=/usr/local/lib/mysql
19114 MYSQL_BINDIR=/usr/local/bin
19115 elif test -f /usr/local/include/mysql.h; then
19116 MYSQL_INCDIR=/usr/local/include
19117 if test -f /usr/local/lib64/libmysqlclient_r.a \
19118 -o -f /usr/local/lib64/libmysqlclient_r.so; then
19119 MYSQL_LIBDIR=/usr/local/lib64
19121 MYSQL_LIBDIR=/usr/local/lib
19123 MYSQL_BINDIR=/usr/local/bin
19125 { echo "$as_me:$LINENO: result: no" >&5
19126 echo "${ECHO_T}no" >&6; }
19127 { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
19128 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
19129 { (exit 1); exit 1; }; }
19132 if test -f $withval/include/mysql/mysql.h; then
19133 MYSQL_INCDIR=$withval/include/mysql
19134 if test -f $withval/lib64/mysql/libmysqlclient_r.a \
19135 -o -f $withval/lib64/mysql/libmysqlclient_r.so; then
19136 MYSQL_LIBDIR=$withval/lib64/mysql
19138 MYSQL_LIBDIR=$withval/lib/mysql
19140 if test -f $withval/lib/libmysqlclient_r.so; then
19141 MYSQL_LIBDIR=$withval/lib
19144 MYSQL_BINDIR=$withval/bin
19145 elif test -f $withval/include/mysql.h; then
19146 MYSQL_INCDIR=$withval/include
19147 if test -f $withval/lib64/libmysqlclient_r.a \
19148 -o -f $withval/lib64/libmysqlclient_r.so; then
19149 MYSQL_LIBDIR=$withval/lib64
19151 MYSQL_LIBDIR=$withval/lib
19153 MYSQL_BINDIR=$withval/bin
19155 { echo "$as_me:$LINENO: result: no" >&5
19156 echo "${ECHO_T}no" >&6; }
19157 { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
19158 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
19159 { (exit 1); exit 1; }; }
19162 SQL_INCLUDE=-I$MYSQL_INCDIR
19163 if test -f $MYSQL_LIBDIR/libmysqlclient_r.a \
19164 -o -f $MYSQL_LIBDIR/libmysqlclient_r.so; then
19165 SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient_r -lz"
19166 cat >>confdefs.h <<\_ACEOF
19167 #define HAVE_THREAD_SAFE_MYSQL 1
19171 SQL_BINDIR=$MYSQL_BINDIR
19172 SQL_LIB=$MYSQL_LIBDIR/libmysqlclient_r.a
19174 cat >>confdefs.h <<\_ACEOF
19175 #define HAVE_MYSQL 1
19178 { echo "$as_me:$LINENO: result: yes" >&5
19179 echo "${ECHO_T}yes" >&6; }
19186 { echo "$as_me:$LINENO: result: no" >&5
19187 echo "${ECHO_T}no" >&6; }
19195 # Check whether --with-embedded-mysql was given.
19196 if test "${with_embedded_mysql+set}" = set; then
19197 withval=$with_embedded_mysql;
19198 if test "$withval" != "no"; then
19199 if test "$withval" = "yes"; then
19200 if test -f /usr/local/mysql/include/mysql/mysql.h; then
19201 MYSQL_INCDIR=/usr/local/mysql/include/mysql
19202 if test -d /usr/local/mysql/lib64/mysql; then
19203 MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
19205 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
19207 MYSQL_BINDIR=/usr/local/mysql/bin
19208 elif test -f /usr/include/mysql/mysql.h; then
19209 MYSQL_INCDIR=/usr/include/mysql
19210 if test -d /usr/lib64/mysql; then
19211 MYSQL_LIBDIR=/usr/lib64/mysql
19213 MYSQL_LIBDIR=/usr/lib/mysql
19215 MYSQL_BINDIR=/usr/bin
19216 elif test -f /usr/include/mysql.h; then
19217 MYSQL_INCDIR=/usr/include
19218 if test -d /usr/lib64; then
19219 MYSQL_LIBDIR=/usr/lib64
19221 MYSQL_LIBDIR=/usr/lib
19223 MYSQL_BINDIR=/usr/bin
19224 elif test -f /usr/local/include/mysql/mysql.h; then
19225 MYSQL_INCDIR=/usr/local/include/mysql
19226 if test -d /usr/local/lib64/mysql; then
19227 MYSQL_LIBDIR=/usr/local/lib64/mysql
19229 MYSQL_LIBDIR=/usr/local/lib/mysql
19231 MYSQL_BINDIR=/usr/local/bin
19232 elif test -f /usr/local/include/mysql.h; then
19233 MYSQL_INCDIR=/usr/local/include
19234 if test -d /usr/local/lib64; then
19235 MYSQL_LIBDIR=/usr/local/lib64
19237 MYSQL_LIBDIR=/usr/local/lib
19239 MYSQL_BINDIR=/usr/local/bin
19241 { echo "$as_me:$LINENO: result: no" >&5
19242 echo "${ECHO_T}no" >&6; }
19243 { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
19244 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
19245 { (exit 1); exit 1; }; }
19248 if test -f $withval/include/mysql/mysql.h; then
19249 MYSQL_INCDIR=$withval/include/mysql
19250 if test -d $withval/lib64/mysql; then
19251 MYSQL_LIBDIR=$withval/lib64/mysql
19253 MYSQL_LIBDIR=$withval/lib/mysql
19255 MYSQL_BINDIR=$withval/bin
19256 elif test -f $withval/include/mysql.h; then
19257 MYSQL_INCDIR=$withval/include
19258 if test -d $withval/lib64; then
19259 MYSQL_LIBDIR=$withval/lib64
19261 MYSQL_LIBDIR=$withval/lib
19263 MYSQL_BINDIR=$withval/bin
19265 { echo "$as_me:$LINENO: result: no" >&5
19266 echo "${ECHO_T}no" >&6; }
19267 { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
19268 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
19269 { (exit 1); exit 1; }; }
19272 SQL_INCLUDE=-I$MYSQL_INCDIR
19273 SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
19274 SQL_BINDIR=$MYSQL_BINDIR
19275 SQL_LIB=$MYSQL_LIBDIR/libmysqld.a
19277 cat >>confdefs.h <<\_ACEOF
19278 #define HAVE_MYSQL 1
19281 cat >>confdefs.h <<\_ACEOF
19282 #define HAVE_EMBEDDED_MYSQL 1
19285 { echo "$as_me:$LINENO: result: yes" >&5
19286 echo "${ECHO_T}yes" >&6; }
19293 { echo "$as_me:$LINENO: result: no" >&5
19294 echo "${ECHO_T}no" >&6; }
19310 { echo "$as_me:$LINENO: checking for SQLite3 support" >&5
19311 echo $ECHO_N "checking for SQLite3 support... $ECHO_C" >&6; }
19313 # Check whether --with-sqlite3 was given.
19314 if test "${with_sqlite3+set}" = set; then
19315 withval=$with_sqlite3;
19316 if test "$withval" != "no"; then
19317 if test "$withval" = "yes"; then
19318 if test -f /usr/local/include/sqlite3.h; then
19319 SQLITE_INCDIR=/usr/local/include
19320 if test -d /usr/local/lib64; then
19321 SQLITE_LIBDIR=/usr/local/lib64
19323 SQLITE_LIBDIR=/usr/local/lib
19325 SQLITE_BINDIR=/usr/local/bin
19326 elif test -f /usr/include/sqlite3.h; then
19327 SQLITE_INCDIR=/usr/include
19328 if test -d /usr/lib64; then
19329 SQLITE_LIBDIR=/usr/lib64
19331 SQLITE_LIBDIR=/usr/lib
19333 SQLITE_BINDIR=/usr/bin
19334 elif test -f $prefix/include/sqlite3.h; then
19335 SQLITE_INCDIR=$prefix/include
19336 if test -d $prefix/lib64; then
19337 SQLITE_LIBDIR=$prefix/lib64
19339 SQLITE_LIBDIR=$prefix/lib
19341 SQLITE_BINDIR=$prefix/bin
19343 { echo "$as_me:$LINENO: result: no" >&5
19344 echo "${ECHO_T}no" >&6; }
19345 { { echo "$as_me:$LINENO: error: Unable to find sqlite3.h in standard locations" >&5
19346 echo "$as_me: error: Unable to find sqlite3.h in standard locations" >&2;}
19347 { (exit 1); exit 1; }; }
19350 if test -f $withval/sqlite3.h; then
19351 SQLITE_INCDIR=$withval
19352 SQLITE_LIBDIR=$withval
19353 SQLITE_BINDIR=$withval
19354 elif test -f $withval/include/sqlite3.h; then
19355 SQLITE_INCDIR=$withval/include
19356 if test -d $withval/lib64; then
19357 SQLITE_LIBDIR=$withval/lib64
19359 SQLITE_LIBDIR=$withval/lib
19361 SQLITE_BINDIR=$withval/bin
19363 { echo "$as_me:$LINENO: result: no" >&5
19364 echo "${ECHO_T}no" >&6; }
19365 { { echo "$as_me:$LINENO: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&5
19366 echo "$as_me: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&2;}
19367 { (exit 1); exit 1; }; }
19370 SQL_INCLUDE=-I$SQLITE_INCDIR
19371 SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite3"
19372 SQL_BINDIR=$SQLITE_BINDIR
19373 SQL_LIB=$SQLITE_LIBDIR/libsqlite3.a
19375 cat >>confdefs.h <<\_ACEOF
19376 #define HAVE_SQLITE3 1
19379 { echo "$as_me:$LINENO: result: yes" >&5
19380 echo "${ECHO_T}yes" >&6; }
19382 support_sqlite3=yes
19387 { echo "$as_me:$LINENO: result: no" >&5
19388 echo "${ECHO_T}no" >&6; }
19393 { echo "$as_me:$LINENO: result: no" >&5
19394 echo "${ECHO_T}no" >&6; }
19406 { echo "$as_me:$LINENO: checking for SQLite support" >&5
19407 echo $ECHO_N "checking for SQLite support... $ECHO_C" >&6; }
19409 # Check whether --with-sqlite was given.
19410 if test "${with_sqlite+set}" = set; then
19411 withval=$with_sqlite;
19412 if test "$withval" != "no"; then
19413 if test "$withval" = "yes"; then
19414 if test -f /usr/local/include/sqlite.h; then
19415 SQLITE_INCDIR=/usr/local/include
19416 if test -d /usr/local/lib64; then
19417 SQLITE_LIBDIR=/usr/local/lib64
19419 SQLITE_LIBDIR=/usr/local/lib
19421 SQLITE_BINDIR=/usr/local/bin
19422 elif test -f /usr/include/sqlite.h; then
19423 SQLITE_INCDIR=/usr/include
19424 if test -d /usr/lib64; then
19425 SQLITE_LIBDIR=/usr/lib64
19427 SQLITE_LIBDIR=/usr/lib
19429 SQLITE_BINDIR=/usr/bin
19430 elif test -f $prefix/include/sqlite.h; then
19431 SQLITE_INCDIR=$prefix/include
19432 if test -d $prefix/lib64; then
19433 SQLITE_LIBDIR=$prefix/lib64
19435 SQLITE_LIBDIR=$prefix/lib
19437 SQLITE_BINDIR=$prefix/bin
19439 { echo "$as_me:$LINENO: result: no" >&5
19440 echo "${ECHO_T}no" >&6; }
19441 { { echo "$as_me:$LINENO: error: Unable to find sqlite.h in standard locations" >&5
19442 echo "$as_me: error: Unable to find sqlite.h in standard locations" >&2;}
19443 { (exit 1); exit 1; }; }
19446 if test -f $withval/sqlite.h; then
19447 SQLITE_INCDIR=$withval
19448 SQLITE_LIBDIR=$withval
19449 SQLITE_BINDIR=$withval
19450 elif test -f $withval/include/sqlite.h; then
19451 SQLITE_INCDIR=$withval/include
19452 if test -d $withval/lib64; then
19453 SQLITE_LIBDIR=$withval/lib64
19455 SQLITE_LIBDIR=$withval/lib
19457 SQLITE_BINDIR=$withval/bin
19459 { echo "$as_me:$LINENO: result: no" >&5
19460 echo "${ECHO_T}no" >&6; }
19461 { { echo "$as_me:$LINENO: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&5
19462 echo "$as_me: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&2;}
19463 { (exit 1); exit 1; }; }
19466 SQL_INCLUDE=-I$SQLITE_INCDIR
19467 SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite"
19468 SQL_BINDIR=$SQLITE_BINDIR
19469 SQL_LIB=$SQLITE_LIBDIR/libsqlite.a
19471 cat >>confdefs.h <<\_ACEOF
19472 #define HAVE_SQLITE 1
19475 { echo "$as_me:$LINENO: result: yes" >&5
19476 echo "${ECHO_T}yes" >&6; }
19483 { echo "$as_me:$LINENO: result: no" >&5
19484 echo "${ECHO_T}no" >&6; }
19489 { echo "$as_me:$LINENO: result: no" >&5
19490 echo "${ECHO_T}no" >&6; }
19503 # -------------------------------------------
19504 # enable batch attribute DB insert (default on)
19505 # -------------------------------------------
19506 support_batch_insert=no
19507 A=`nm $SQL_LIB | grep pthread_mutex_lock`
19509 if test $pkg = 0; then
19510 support_batch_insert=yes
19511 # Check whether --enable-batch-insert was given.
19512 if test "${enable_batch_insert+set}" = set; then
19513 enableval=$enable_batch_insert; if test x$enableval = xno; then
19514 support_batch_insert=no
19516 support_batch_insert=yes
19522 if test $support_batch_insert = yes ; then
19524 cat >>confdefs.h <<\_ACEOF
19525 #define HAVE_BATCH_FILE_INSERT 1
19531 cat >>confdefs.h <<\_ACEOF
19532 #define PROTOTYPES 1
19536 if test -z "$CFLAGS" -o "$CFLAGS" = "-g -O2"; then
19537 if test -z "$CCOPTS"; then
19538 CCOPTS='-g -O2 -Wall'
19546 largefile_support="no"
19548 # Check whether --enable-largefile was given.
19549 if test "${enable_largefile+set}" = set; then
19550 enableval=$enable_largefile;
19553 if test "$enable_largefile" != no; then
19554 if test -n "$ac_tool_prefix"; then
19555 # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
19556 set dummy ${ac_tool_prefix}getconf; ac_word=$2
19557 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19558 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19559 if test "${ac_cv_prog_GETCONF+set}" = set; then
19560 echo $ECHO_N "(cached) $ECHO_C" >&6
19562 if test -n "$GETCONF"; then
19563 ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
19565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19566 for as_dir in $PATH
19569 test -z "$as_dir" && as_dir=.
19570 for ac_exec_ext in '' $ac_executable_extensions; do
19571 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
19572 ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
19573 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19582 GETCONF=$ac_cv_prog_GETCONF
19583 if test -n "$GETCONF"; then
19584 { echo "$as_me:$LINENO: result: $GETCONF" >&5
19585 echo "${ECHO_T}$GETCONF" >&6; }
19587 { echo "$as_me:$LINENO: result: no" >&5
19588 echo "${ECHO_T}no" >&6; }
19593 if test -z "$ac_cv_prog_GETCONF"; then
19594 ac_ct_GETCONF=$GETCONF
19595 # Extract the first word of "getconf", so it can be a program name with args.
19596 set dummy getconf; ac_word=$2
19597 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19598 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19599 if test "${ac_cv_prog_ac_ct_GETCONF+set}" = set; then
19600 echo $ECHO_N "(cached) $ECHO_C" >&6
19602 if test -n "$ac_ct_GETCONF"; then
19603 ac_cv_prog_ac_ct_GETCONF="$ac_ct_GETCONF" # Let the user override the test.
19605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19606 for as_dir in $PATH
19609 test -z "$as_dir" && as_dir=.
19610 for ac_exec_ext in '' $ac_executable_extensions; do
19611 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
19612 ac_cv_prog_ac_ct_GETCONF="getconf"
19613 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19622 ac_ct_GETCONF=$ac_cv_prog_ac_ct_GETCONF
19623 if test -n "$ac_ct_GETCONF"; then
19624 { echo "$as_me:$LINENO: result: $ac_ct_GETCONF" >&5
19625 echo "${ECHO_T}$ac_ct_GETCONF" >&6; }
19627 { echo "$as_me:$LINENO: result: no" >&5
19628 echo "${ECHO_T}no" >&6; }
19631 if test "x$ac_ct_GETCONF" = x; then
19634 case $cross_compiling:$ac_tool_warned in
19636 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
19637 whose name does not start with the host triplet. If you think this
19638 configuration is useful to you, please write to autoconf@gnu.org." >&5
19639 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
19640 whose name does not start with the host triplet. If you think this
19641 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
19642 ac_tool_warned=yes ;;
19644 GETCONF=$ac_ct_GETCONF
19647 GETCONF="$ac_cv_prog_GETCONF"
19650 { echo "$as_me:$LINENO: checking for CFLAGS value to request large file support" >&5
19651 echo $ECHO_N "checking for CFLAGS value to request large file support... $ECHO_C" >&6; }
19652 if test "${ac_cv_sys_largefile_CFLAGS+set}" = set; then
19653 echo $ECHO_N "(cached) $ECHO_C" >&6
19655 ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
19656 ac_cv_sys_largefile_CFLAGS=no
19658 # IRIX 6.2 and later require cc -n32.
19659 irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
19660 if test "$GCC" != yes; then
19661 ac_cv_sys_largefile_CFLAGS=-n32
19664 CC="$CC $ac_cv_sys_largefile_CFLAGS"
19665 cat >conftest.$ac_ext <<_ACEOF
19668 cat confdefs.h >>conftest.$ac_ext
19669 cat >>conftest.$ac_ext <<_ACEOF
19670 /* end confdefs.h. */
19680 rm -f conftest.$ac_objext conftest$ac_exeext
19681 if { (ac_try="$ac_link"
19682 case "(($ac_try" in
19683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19684 *) ac_try_echo=$ac_try;;
19686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19687 (eval "$ac_link") 2>conftest.er1
19689 grep -v '^ *+' conftest.er1 >conftest.err
19691 cat conftest.err >&5
19692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19693 (exit $ac_status); } &&
19694 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19695 { (case "(($ac_try" in
19696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19697 *) ac_try_echo=$ac_try;;
19699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19700 (eval "$ac_try") 2>&5
19702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19703 (exit $ac_status); }; } &&
19704 { ac_try='test -s conftest$ac_exeext'
19705 { (case "(($ac_try" in
19706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19707 *) ac_try_echo=$ac_try;;
19709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19710 (eval "$ac_try") 2>&5
19712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19713 (exit $ac_status); }; }; then
19716 echo "$as_me: failed program was:" >&5
19717 sed 's/^/| /' conftest.$ac_ext >&5
19719 ac_cv_sys_largefile_CFLAGS=no
19722 rm -f core conftest.err conftest.$ac_objext \
19723 conftest$ac_exeext conftest.$ac_ext
19728 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CFLAGS" >&5
19729 echo "${ECHO_T}$ac_cv_sys_largefile_CFLAGS" >&6; }
19730 { echo "$as_me:$LINENO: checking for LDFLAGS value to request large file support" >&5
19731 echo $ECHO_N "checking for LDFLAGS value to request large file support... $ECHO_C" >&6; }
19732 if test "${ac_cv_sys_largefile_LDFLAGS+set}" = set; then
19733 echo $ECHO_N "(cached) $ECHO_C" >&6
19735 ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
19736 ac_cv_sys_largefile_LDFLAGS=no
19740 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LDFLAGS" >&5
19741 echo "${ECHO_T}$ac_cv_sys_largefile_LDFLAGS" >&6; }
19742 { echo "$as_me:$LINENO: checking for LIBS value to request large file support" >&5
19743 echo $ECHO_N "checking for LIBS value to request large file support... $ECHO_C" >&6; }
19744 if test "${ac_cv_sys_largefile_LIBS+set}" = set; then
19745 echo $ECHO_N "(cached) $ECHO_C" >&6
19747 ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
19748 ac_cv_sys_largefile_LIBS=no
19752 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LIBS" >&5
19753 echo "${ECHO_T}$ac_cv_sys_largefile_LIBS" >&6; }
19755 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
19758 -D_FILE_OFFSET_BITS=*) ;;
19759 -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
19760 -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
19765 case "$CPPFLAGS" in
19766 '') CPPFLAGS="$ac_flag" ;;
19767 *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
19775 '') CFLAGS="$ac_flag" ;;
19776 *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
19781 case "$ac_cv_sys_largefile_LDFLAGS" in
19785 '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
19786 *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
19789 case "$ac_cv_sys_largefile_LIBS" in
19793 '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
19794 *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
19797 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS" >&5
19798 echo $ECHO_N "checking for _FILE_OFFSET_BITS... $ECHO_C" >&6; }
19799 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
19800 echo $ECHO_N "(cached) $ECHO_C" >&6
19802 ac_cv_sys_file_offset_bits=no
19803 ac_cv_sys_file_offset_bits=64
19804 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
19806 -D_FILE_OFFSET_BITS)
19807 ac_cv_sys_file_offset_bits=1 ;;
19808 -D_FILE_OFFSET_BITS=*)
19809 ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
19814 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
19815 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
19816 if test "$ac_cv_sys_file_offset_bits" != no; then
19818 cat >>confdefs.h <<_ACEOF
19819 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
19823 { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE" >&5
19824 echo $ECHO_N "checking for _LARGEFILE_SOURCE... $ECHO_C" >&6; }
19825 if test "${ac_cv_sys_largefile_source+set}" = set; then
19826 echo $ECHO_N "(cached) $ECHO_C" >&6
19828 ac_cv_sys_largefile_source=no
19829 ac_cv_sys_largefile_source=1
19830 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
19832 -D_LARGEFILE_SOURCE)
19833 ac_cv_sys_largefile_source=1 ;;
19834 -D_LARGEFILE_SOURCE=*)
19835 ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
19840 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
19841 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
19842 if test "$ac_cv_sys_largefile_source" != no; then
19844 cat >>confdefs.h <<_ACEOF
19845 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
19849 { echo "$as_me:$LINENO: checking for _LARGE_FILES" >&5
19850 echo $ECHO_N "checking for _LARGE_FILES... $ECHO_C" >&6; }
19851 if test "${ac_cv_sys_large_files+set}" = set; then
19852 echo $ECHO_N "(cached) $ECHO_C" >&6
19854 ac_cv_sys_large_files=no
19855 ac_cv_sys_large_files=1
19856 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
19859 ac_cv_sys_large_files=1 ;;
19861 ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
19866 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
19867 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
19868 if test "$ac_cv_sys_large_files" != no; then
19870 cat >>confdefs.h <<_ACEOF
19871 #define _LARGE_FILES $ac_cv_sys_large_files
19879 { echo "$as_me:$LINENO: checking for X" >&5
19880 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
19883 # Check whether --with-x was given.
19884 if test "${with_x+set}" = set; then
19888 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
19889 if test "x$with_x" = xno; then
19890 # The user explicitly disabled X.
19893 case $x_includes,$x_libraries in #(
19894 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
19895 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
19896 { (exit 1); exit 1; }; };; #(
19897 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
19898 echo $ECHO_N "(cached) $ECHO_C" >&6
19900 # One or both of the vars are not set, and there is no cached value.
19901 ac_x_includes=no ac_x_libraries=no
19902 rm -f -r conftest.dir
19903 if mkdir conftest.dir; then
19905 cat >Imakefile <<'_ACEOF'
19907 @echo incroot='${INCROOT}'
19909 @echo usrlibdir='${USRLIBDIR}'
19911 @echo libdir='${LIBDIR}'
19913 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
19914 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
19915 for ac_var in incroot usrlibdir libdir; do
19916 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
19918 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
19919 for ac_extension in a so sl; do
19920 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
19921 test -f "$ac_im_libdir/libX11.$ac_extension"; then
19922 ac_im_usrlibdir=$ac_im_libdir; break
19925 # Screen out bogus values from the imake configuration. They are
19926 # bogus both because they are the default anyway, and because
19927 # using them would break gcc on systems where it needs fixed includes.
19928 case $ac_im_incroot in
19929 /usr/include) ac_x_includes= ;;
19930 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
19932 case $ac_im_usrlibdir in
19933 /usr/lib | /lib) ;;
19934 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
19938 rm -f -r conftest.dir
19941 # Standard set of common directories for X headers.
19942 # Check X11 before X11Rn because it is often a symlink to the current release.
19954 /usr/local/X11/include
19955 /usr/local/X11R6/include
19956 /usr/local/X11R5/include
19957 /usr/local/X11R4/include
19959 /usr/local/include/X11
19960 /usr/local/include/X11R6
19961 /usr/local/include/X11R5
19962 /usr/local/include/X11R4
19966 /usr/XFree86/include/X11
19970 /usr/unsupported/include
19971 /usr/athena/include
19972 /usr/local/x11r5/include
19973 /usr/lpp/Xamples/include
19975 /usr/openwin/include
19976 /usr/openwin/share/include'
19978 if test "$ac_x_includes" = no; then
19979 # Guess where to find include files, by looking for Xlib.h.
19980 # First, try using that file with no special directory specified.
19981 cat >conftest.$ac_ext <<_ACEOF
19984 cat confdefs.h >>conftest.$ac_ext
19985 cat >>conftest.$ac_ext <<_ACEOF
19986 /* end confdefs.h. */
19987 #include <X11/Xlib.h>
19989 if { (ac_try="$ac_cpp conftest.$ac_ext"
19990 case "(($ac_try" in
19991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19992 *) ac_try_echo=$ac_try;;
19994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19995 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19997 grep -v '^ *+' conftest.er1 >conftest.err
19999 cat conftest.err >&5
20000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20001 (exit $ac_status); } >/dev/null; then
20002 if test -s conftest.err; then
20003 ac_cpp_err=$ac_c_preproc_warn_flag
20004 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20011 if test -z "$ac_cpp_err"; then
20012 # We can compile using X headers with no special include directory.
20015 echo "$as_me: failed program was:" >&5
20016 sed 's/^/| /' conftest.$ac_ext >&5
20018 for ac_dir in $ac_x_header_dirs; do
20019 if test -r "$ac_dir/X11/Xlib.h"; then
20020 ac_x_includes=$ac_dir
20026 rm -f conftest.err conftest.$ac_ext
20027 fi # $ac_x_includes = no
20029 if test "$ac_x_libraries" = no; then
20030 # Check for the libraries.
20031 # See if we find them without any special options.
20032 # Don't add to $LIBS permanently.
20035 cat >conftest.$ac_ext <<_ACEOF
20038 cat confdefs.h >>conftest.$ac_ext
20039 cat >>conftest.$ac_ext <<_ACEOF
20040 /* end confdefs.h. */
20041 #include <X11/Xlib.h>
20050 rm -f conftest.$ac_objext conftest$ac_exeext
20051 if { (ac_try="$ac_link"
20052 case "(($ac_try" in
20053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20054 *) ac_try_echo=$ac_try;;
20056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20057 (eval "$ac_link") 2>conftest.er1
20059 grep -v '^ *+' conftest.er1 >conftest.err
20061 cat conftest.err >&5
20062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20063 (exit $ac_status); } &&
20064 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20065 { (case "(($ac_try" in
20066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20067 *) ac_try_echo=$ac_try;;
20069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20070 (eval "$ac_try") 2>&5
20072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20073 (exit $ac_status); }; } &&
20074 { ac_try='test -s conftest$ac_exeext'
20075 { (case "(($ac_try" in
20076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20077 *) ac_try_echo=$ac_try;;
20079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20080 (eval "$ac_try") 2>&5
20082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20083 (exit $ac_status); }; }; then
20085 # We can link X programs with no special library path.
20088 echo "$as_me: failed program was:" >&5
20089 sed 's/^/| /' conftest.$ac_ext >&5
20092 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
20094 # Don't even attempt the hair of trying to link an X program!
20095 for ac_extension in a so sl; do
20096 if test -r "$ac_dir/libXt.$ac_extension"; then
20097 ac_x_libraries=$ac_dir
20104 rm -f core conftest.err conftest.$ac_objext \
20105 conftest$ac_exeext conftest.$ac_ext
20106 fi # $ac_x_libraries = no
20108 case $ac_x_includes,$ac_x_libraries in #(
20109 no,* | *,no | *\'*)
20110 # Didn't find X, or a directory has "'" in its name.
20111 ac_cv_have_x="have_x=no";; #(
20113 # Record where we found X for the cache.
20114 ac_cv_have_x="have_x=yes\
20115 ac_x_includes='$ac_x_includes'\
20116 ac_x_libraries='$ac_x_libraries'"
20122 eval "$ac_cv_have_x"
20125 if test "$have_x" != yes; then
20126 { echo "$as_me:$LINENO: result: $have_x" >&5
20127 echo "${ECHO_T}$have_x" >&6; }
20130 # If each of the values was on the command line, it overrides each guess.
20131 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
20132 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
20133 # Update the cache value to reflect the command line values.
20134 ac_cv_have_x="have_x=yes\
20135 ac_x_includes='$x_includes'\
20136 ac_x_libraries='$x_libraries'"
20137 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
20138 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
20141 if test "$no_x" = yes; then
20142 # Not all programs may use this symbol, but it does not hurt to define it.
20144 cat >>confdefs.h <<\_ACEOF
20145 #define X_DISPLAY_MISSING 1
20148 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
20150 if test -n "$x_includes"; then
20151 X_CFLAGS="$X_CFLAGS -I$x_includes"
20154 # It would also be nice to do this for all -L options, not just this one.
20155 if test -n "$x_libraries"; then
20156 X_LIBS="$X_LIBS -L$x_libraries"
20157 # For Solaris; some versions of Sun CC require a space after -R and
20158 # others require no space. Words are not sufficient . . . .
20159 case `(uname -sr) 2>/dev/null` in
20161 { echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
20162 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6; }
20163 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
20164 cat >conftest.$ac_ext <<_ACEOF
20167 cat confdefs.h >>conftest.$ac_ext
20168 cat >>conftest.$ac_ext <<_ACEOF
20169 /* end confdefs.h. */
20179 rm -f conftest.$ac_objext conftest$ac_exeext
20180 if { (ac_try="$ac_link"
20181 case "(($ac_try" in
20182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20183 *) ac_try_echo=$ac_try;;
20185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20186 (eval "$ac_link") 2>conftest.er1
20188 grep -v '^ *+' conftest.er1 >conftest.err
20190 cat conftest.err >&5
20191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20192 (exit $ac_status); } &&
20193 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20194 { (case "(($ac_try" in
20195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20196 *) ac_try_echo=$ac_try;;
20198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20199 (eval "$ac_try") 2>&5
20201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20202 (exit $ac_status); }; } &&
20203 { ac_try='test -s conftest$ac_exeext'
20204 { (case "(($ac_try" in
20205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20206 *) ac_try_echo=$ac_try;;
20208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20209 (eval "$ac_try") 2>&5
20211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20212 (exit $ac_status); }; }; then
20215 echo "$as_me: failed program was:" >&5
20216 sed 's/^/| /' conftest.$ac_ext >&5
20221 rm -f core conftest.err conftest.$ac_objext \
20222 conftest$ac_exeext conftest.$ac_ext
20223 if test $ac_R_nospace = yes; then
20224 { echo "$as_me:$LINENO: result: no" >&5
20225 echo "${ECHO_T}no" >&6; }
20226 X_LIBS="$X_LIBS -R$x_libraries"
20228 LIBS="$ac_xsave_LIBS -R $x_libraries"
20229 cat >conftest.$ac_ext <<_ACEOF
20232 cat confdefs.h >>conftest.$ac_ext
20233 cat >>conftest.$ac_ext <<_ACEOF
20234 /* end confdefs.h. */
20244 rm -f conftest.$ac_objext conftest$ac_exeext
20245 if { (ac_try="$ac_link"
20246 case "(($ac_try" in
20247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20248 *) ac_try_echo=$ac_try;;
20250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20251 (eval "$ac_link") 2>conftest.er1
20253 grep -v '^ *+' conftest.er1 >conftest.err
20255 cat conftest.err >&5
20256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20257 (exit $ac_status); } &&
20258 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20259 { (case "(($ac_try" in
20260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20261 *) ac_try_echo=$ac_try;;
20263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20264 (eval "$ac_try") 2>&5
20266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20267 (exit $ac_status); }; } &&
20268 { ac_try='test -s conftest$ac_exeext'
20269 { (case "(($ac_try" in
20270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20271 *) ac_try_echo=$ac_try;;
20273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20274 (eval "$ac_try") 2>&5
20276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20277 (exit $ac_status); }; }; then
20280 echo "$as_me: failed program was:" >&5
20281 sed 's/^/| /' conftest.$ac_ext >&5
20286 rm -f core conftest.err conftest.$ac_objext \
20287 conftest$ac_exeext conftest.$ac_ext
20288 if test $ac_R_space = yes; then
20289 { echo "$as_me:$LINENO: result: yes" >&5
20290 echo "${ECHO_T}yes" >&6; }
20291 X_LIBS="$X_LIBS -R $x_libraries"
20293 { echo "$as_me:$LINENO: result: neither works" >&5
20294 echo "${ECHO_T}neither works" >&6; }
20297 LIBS=$ac_xsave_LIBS
20301 # Check for system-dependent libraries X programs must link with.
20302 # Do this before checking for the system-independent R6 libraries
20303 # (-lICE), since we may need -lsocket or whatever for X linking.
20305 if test "$ISC" = yes; then
20306 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
20308 # Martyn Johnson says this is needed for Ultrix, if the X
20309 # libraries were built with DECnet support. And Karl Berry says
20310 # the Alpha needs dnet_stub (dnet does not exist).
20311 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
20312 cat >conftest.$ac_ext <<_ACEOF
20315 cat confdefs.h >>conftest.$ac_ext
20316 cat >>conftest.$ac_ext <<_ACEOF
20317 /* end confdefs.h. */
20319 /* Override any GCC internal prototype to avoid an error.
20320 Use char because int might match the return type of a GCC
20321 builtin and then its argument prototype would still apply. */
20325 char XOpenDisplay ();
20329 return XOpenDisplay ();
20334 rm -f conftest.$ac_objext conftest$ac_exeext
20335 if { (ac_try="$ac_link"
20336 case "(($ac_try" in
20337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20338 *) ac_try_echo=$ac_try;;
20340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20341 (eval "$ac_link") 2>conftest.er1
20343 grep -v '^ *+' conftest.er1 >conftest.err
20345 cat conftest.err >&5
20346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20347 (exit $ac_status); } &&
20348 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20349 { (case "(($ac_try" in
20350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20351 *) ac_try_echo=$ac_try;;
20353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20354 (eval "$ac_try") 2>&5
20356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20357 (exit $ac_status); }; } &&
20358 { ac_try='test -s conftest$ac_exeext'
20359 { (case "(($ac_try" in
20360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20361 *) ac_try_echo=$ac_try;;
20363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20364 (eval "$ac_try") 2>&5
20366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20367 (exit $ac_status); }; }; then
20370 echo "$as_me: failed program was:" >&5
20371 sed 's/^/| /' conftest.$ac_ext >&5
20373 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
20374 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
20375 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
20376 echo $ECHO_N "(cached) $ECHO_C" >&6
20378 ac_check_lib_save_LIBS=$LIBS
20379 LIBS="-ldnet $LIBS"
20380 cat >conftest.$ac_ext <<_ACEOF
20383 cat confdefs.h >>conftest.$ac_ext
20384 cat >>conftest.$ac_ext <<_ACEOF
20385 /* end confdefs.h. */
20387 /* Override any GCC internal prototype to avoid an error.
20388 Use char because int might match the return type of a GCC
20389 builtin and then its argument prototype would still apply. */
20397 return dnet_ntoa ();
20402 rm -f conftest.$ac_objext conftest$ac_exeext
20403 if { (ac_try="$ac_link"
20404 case "(($ac_try" in
20405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20406 *) ac_try_echo=$ac_try;;
20408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20409 (eval "$ac_link") 2>conftest.er1
20411 grep -v '^ *+' conftest.er1 >conftest.err
20413 cat conftest.err >&5
20414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20415 (exit $ac_status); } &&
20416 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20417 { (case "(($ac_try" in
20418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20419 *) ac_try_echo=$ac_try;;
20421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20422 (eval "$ac_try") 2>&5
20424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20425 (exit $ac_status); }; } &&
20426 { ac_try='test -s conftest$ac_exeext'
20427 { (case "(($ac_try" in
20428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20429 *) ac_try_echo=$ac_try;;
20431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20432 (eval "$ac_try") 2>&5
20434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20435 (exit $ac_status); }; }; then
20436 ac_cv_lib_dnet_dnet_ntoa=yes
20438 echo "$as_me: failed program was:" >&5
20439 sed 's/^/| /' conftest.$ac_ext >&5
20441 ac_cv_lib_dnet_dnet_ntoa=no
20444 rm -f core conftest.err conftest.$ac_objext \
20445 conftest$ac_exeext conftest.$ac_ext
20446 LIBS=$ac_check_lib_save_LIBS
20448 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
20449 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
20450 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
20451 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
20454 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
20455 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
20456 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6; }
20457 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
20458 echo $ECHO_N "(cached) $ECHO_C" >&6
20460 ac_check_lib_save_LIBS=$LIBS
20461 LIBS="-ldnet_stub $LIBS"
20462 cat >conftest.$ac_ext <<_ACEOF
20465 cat confdefs.h >>conftest.$ac_ext
20466 cat >>conftest.$ac_ext <<_ACEOF
20467 /* end confdefs.h. */
20469 /* Override any GCC internal prototype to avoid an error.
20470 Use char because int might match the return type of a GCC
20471 builtin and then its argument prototype would still apply. */
20479 return dnet_ntoa ();
20484 rm -f conftest.$ac_objext conftest$ac_exeext
20485 if { (ac_try="$ac_link"
20486 case "(($ac_try" in
20487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20488 *) ac_try_echo=$ac_try;;
20490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20491 (eval "$ac_link") 2>conftest.er1
20493 grep -v '^ *+' conftest.er1 >conftest.err
20495 cat conftest.err >&5
20496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20497 (exit $ac_status); } &&
20498 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20499 { (case "(($ac_try" in
20500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20501 *) ac_try_echo=$ac_try;;
20503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20504 (eval "$ac_try") 2>&5
20506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20507 (exit $ac_status); }; } &&
20508 { ac_try='test -s conftest$ac_exeext'
20509 { (case "(($ac_try" in
20510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20511 *) ac_try_echo=$ac_try;;
20513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20514 (eval "$ac_try") 2>&5
20516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20517 (exit $ac_status); }; }; then
20518 ac_cv_lib_dnet_stub_dnet_ntoa=yes
20520 echo "$as_me: failed program was:" >&5
20521 sed 's/^/| /' conftest.$ac_ext >&5
20523 ac_cv_lib_dnet_stub_dnet_ntoa=no
20526 rm -f core conftest.err conftest.$ac_objext \
20527 conftest$ac_exeext conftest.$ac_ext
20528 LIBS=$ac_check_lib_save_LIBS
20530 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
20531 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
20532 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
20533 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
20539 rm -f core conftest.err conftest.$ac_objext \
20540 conftest$ac_exeext conftest.$ac_ext
20541 LIBS="$ac_xsave_LIBS"
20543 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
20544 # to get the SysV transport functions.
20545 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
20547 # The nsl library prevents programs from opening the X display
20548 # on Irix 5.2, according to T.E. Dickey.
20549 # The functions gethostbyname, getservbyname, and inet_addr are
20550 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
20551 { echo "$as_me:$LINENO: checking for gethostbyname" >&5
20552 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
20553 if test "${ac_cv_func_gethostbyname+set}" = set; then
20554 echo $ECHO_N "(cached) $ECHO_C" >&6
20556 cat >conftest.$ac_ext <<_ACEOF
20559 cat confdefs.h >>conftest.$ac_ext
20560 cat >>conftest.$ac_ext <<_ACEOF
20561 /* end confdefs.h. */
20562 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
20563 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20564 #define gethostbyname innocuous_gethostbyname
20566 /* System header to define __stub macros and hopefully few prototypes,
20567 which can conflict with char gethostbyname (); below.
20568 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20569 <limits.h> exists even on freestanding compilers. */
20572 # include <limits.h>
20574 # include <assert.h>
20577 #undef gethostbyname
20579 /* Override any GCC internal prototype to avoid an error.
20580 Use char because int might match the return type of a GCC
20581 builtin and then its argument prototype would still apply. */
20585 char gethostbyname ();
20586 /* The GNU C library defines this for functions which it implements
20587 to always fail with ENOSYS. Some functions are actually named
20588 something starting with __ and the normal name is an alias. */
20589 #if defined __stub_gethostbyname || defined __stub___gethostbyname
20596 return gethostbyname ();
20601 rm -f conftest.$ac_objext conftest$ac_exeext
20602 if { (ac_try="$ac_link"
20603 case "(($ac_try" in
20604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20605 *) ac_try_echo=$ac_try;;
20607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20608 (eval "$ac_link") 2>conftest.er1
20610 grep -v '^ *+' conftest.er1 >conftest.err
20612 cat conftest.err >&5
20613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20614 (exit $ac_status); } &&
20615 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20616 { (case "(($ac_try" in
20617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20618 *) ac_try_echo=$ac_try;;
20620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20621 (eval "$ac_try") 2>&5
20623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20624 (exit $ac_status); }; } &&
20625 { ac_try='test -s conftest$ac_exeext'
20626 { (case "(($ac_try" in
20627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20628 *) ac_try_echo=$ac_try;;
20630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20631 (eval "$ac_try") 2>&5
20633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20634 (exit $ac_status); }; }; then
20635 ac_cv_func_gethostbyname=yes
20637 echo "$as_me: failed program was:" >&5
20638 sed 's/^/| /' conftest.$ac_ext >&5
20640 ac_cv_func_gethostbyname=no
20643 rm -f core conftest.err conftest.$ac_objext \
20644 conftest$ac_exeext conftest.$ac_ext
20646 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
20647 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
20649 if test $ac_cv_func_gethostbyname = no; then
20650 { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
20651 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
20652 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
20653 echo $ECHO_N "(cached) $ECHO_C" >&6
20655 ac_check_lib_save_LIBS=$LIBS
20657 cat >conftest.$ac_ext <<_ACEOF
20660 cat confdefs.h >>conftest.$ac_ext
20661 cat >>conftest.$ac_ext <<_ACEOF
20662 /* end confdefs.h. */
20664 /* Override any GCC internal prototype to avoid an error.
20665 Use char because int might match the return type of a GCC
20666 builtin and then its argument prototype would still apply. */
20670 char gethostbyname ();
20674 return gethostbyname ();
20679 rm -f conftest.$ac_objext conftest$ac_exeext
20680 if { (ac_try="$ac_link"
20681 case "(($ac_try" in
20682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20683 *) ac_try_echo=$ac_try;;
20685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20686 (eval "$ac_link") 2>conftest.er1
20688 grep -v '^ *+' conftest.er1 >conftest.err
20690 cat conftest.err >&5
20691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20692 (exit $ac_status); } &&
20693 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20694 { (case "(($ac_try" in
20695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20696 *) ac_try_echo=$ac_try;;
20698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20699 (eval "$ac_try") 2>&5
20701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20702 (exit $ac_status); }; } &&
20703 { ac_try='test -s conftest$ac_exeext'
20704 { (case "(($ac_try" in
20705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20706 *) ac_try_echo=$ac_try;;
20708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20709 (eval "$ac_try") 2>&5
20711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20712 (exit $ac_status); }; }; then
20713 ac_cv_lib_nsl_gethostbyname=yes
20715 echo "$as_me: failed program was:" >&5
20716 sed 's/^/| /' conftest.$ac_ext >&5
20718 ac_cv_lib_nsl_gethostbyname=no
20721 rm -f core conftest.err conftest.$ac_objext \
20722 conftest$ac_exeext conftest.$ac_ext
20723 LIBS=$ac_check_lib_save_LIBS
20725 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
20726 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
20727 if test $ac_cv_lib_nsl_gethostbyname = yes; then
20728 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
20731 if test $ac_cv_lib_nsl_gethostbyname = no; then
20732 { echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
20733 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; }
20734 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
20735 echo $ECHO_N "(cached) $ECHO_C" >&6
20737 ac_check_lib_save_LIBS=$LIBS
20739 cat >conftest.$ac_ext <<_ACEOF
20742 cat confdefs.h >>conftest.$ac_ext
20743 cat >>conftest.$ac_ext <<_ACEOF
20744 /* end confdefs.h. */
20746 /* Override any GCC internal prototype to avoid an error.
20747 Use char because int might match the return type of a GCC
20748 builtin and then its argument prototype would still apply. */
20752 char gethostbyname ();
20756 return gethostbyname ();
20761 rm -f conftest.$ac_objext conftest$ac_exeext
20762 if { (ac_try="$ac_link"
20763 case "(($ac_try" in
20764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20765 *) ac_try_echo=$ac_try;;
20767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20768 (eval "$ac_link") 2>conftest.er1
20770 grep -v '^ *+' conftest.er1 >conftest.err
20772 cat conftest.err >&5
20773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20774 (exit $ac_status); } &&
20775 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20776 { (case "(($ac_try" in
20777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20778 *) ac_try_echo=$ac_try;;
20780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20781 (eval "$ac_try") 2>&5
20783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20784 (exit $ac_status); }; } &&
20785 { ac_try='test -s conftest$ac_exeext'
20786 { (case "(($ac_try" in
20787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20788 *) ac_try_echo=$ac_try;;
20790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20791 (eval "$ac_try") 2>&5
20793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20794 (exit $ac_status); }; }; then
20795 ac_cv_lib_bsd_gethostbyname=yes
20797 echo "$as_me: failed program was:" >&5
20798 sed 's/^/| /' conftest.$ac_ext >&5
20800 ac_cv_lib_bsd_gethostbyname=no
20803 rm -f core conftest.err conftest.$ac_objext \
20804 conftest$ac_exeext conftest.$ac_ext
20805 LIBS=$ac_check_lib_save_LIBS
20807 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
20808 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; }
20809 if test $ac_cv_lib_bsd_gethostbyname = yes; then
20810 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
20816 # lieder@skyler.mavd.honeywell.com says without -lsocket,
20817 # socket/setsockopt and other routines are undefined under SCO ODT
20818 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
20819 # on later versions), says Simon Leinen: it contains gethostby*
20820 # variants that don't use the name server (or something). -lsocket
20821 # must be given before -lnsl if both are needed. We assume that
20822 # if connect needs -lnsl, so does gethostbyname.
20823 { echo "$as_me:$LINENO: checking for connect" >&5
20824 echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
20825 if test "${ac_cv_func_connect+set}" = set; then
20826 echo $ECHO_N "(cached) $ECHO_C" >&6
20828 cat >conftest.$ac_ext <<_ACEOF
20831 cat confdefs.h >>conftest.$ac_ext
20832 cat >>conftest.$ac_ext <<_ACEOF
20833 /* end confdefs.h. */
20834 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
20835 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20836 #define connect innocuous_connect
20838 /* System header to define __stub macros and hopefully few prototypes,
20839 which can conflict with char connect (); below.
20840 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20841 <limits.h> exists even on freestanding compilers. */
20844 # include <limits.h>
20846 # include <assert.h>
20851 /* Override any GCC internal prototype to avoid an error.
20852 Use char because int might match the return type of a GCC
20853 builtin and then its argument prototype would still apply. */
20858 /* The GNU C library defines this for functions which it implements
20859 to always fail with ENOSYS. Some functions are actually named
20860 something starting with __ and the normal name is an alias. */
20861 #if defined __stub_connect || defined __stub___connect
20873 rm -f conftest.$ac_objext conftest$ac_exeext
20874 if { (ac_try="$ac_link"
20875 case "(($ac_try" in
20876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20877 *) ac_try_echo=$ac_try;;
20879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20880 (eval "$ac_link") 2>conftest.er1
20882 grep -v '^ *+' conftest.er1 >conftest.err
20884 cat conftest.err >&5
20885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20886 (exit $ac_status); } &&
20887 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20888 { (case "(($ac_try" in
20889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20890 *) ac_try_echo=$ac_try;;
20892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20893 (eval "$ac_try") 2>&5
20895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20896 (exit $ac_status); }; } &&
20897 { ac_try='test -s conftest$ac_exeext'
20898 { (case "(($ac_try" in
20899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20900 *) ac_try_echo=$ac_try;;
20902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20903 (eval "$ac_try") 2>&5
20905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20906 (exit $ac_status); }; }; then
20907 ac_cv_func_connect=yes
20909 echo "$as_me: failed program was:" >&5
20910 sed 's/^/| /' conftest.$ac_ext >&5
20912 ac_cv_func_connect=no
20915 rm -f core conftest.err conftest.$ac_objext \
20916 conftest$ac_exeext conftest.$ac_ext
20918 { echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
20919 echo "${ECHO_T}$ac_cv_func_connect" >&6; }
20921 if test $ac_cv_func_connect = no; then
20922 { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
20923 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
20924 if test "${ac_cv_lib_socket_connect+set}" = set; then
20925 echo $ECHO_N "(cached) $ECHO_C" >&6
20927 ac_check_lib_save_LIBS=$LIBS
20928 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
20929 cat >conftest.$ac_ext <<_ACEOF
20932 cat confdefs.h >>conftest.$ac_ext
20933 cat >>conftest.$ac_ext <<_ACEOF
20934 /* end confdefs.h. */
20936 /* Override any GCC internal prototype to avoid an error.
20937 Use char because int might match the return type of a GCC
20938 builtin and then its argument prototype would still apply. */
20951 rm -f conftest.$ac_objext conftest$ac_exeext
20952 if { (ac_try="$ac_link"
20953 case "(($ac_try" in
20954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20955 *) ac_try_echo=$ac_try;;
20957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20958 (eval "$ac_link") 2>conftest.er1
20960 grep -v '^ *+' conftest.er1 >conftest.err
20962 cat conftest.err >&5
20963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20964 (exit $ac_status); } &&
20965 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20966 { (case "(($ac_try" in
20967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20968 *) ac_try_echo=$ac_try;;
20970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20971 (eval "$ac_try") 2>&5
20973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20974 (exit $ac_status); }; } &&
20975 { ac_try='test -s conftest$ac_exeext'
20976 { (case "(($ac_try" in
20977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20978 *) ac_try_echo=$ac_try;;
20980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20981 (eval "$ac_try") 2>&5
20983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20984 (exit $ac_status); }; }; then
20985 ac_cv_lib_socket_connect=yes
20987 echo "$as_me: failed program was:" >&5
20988 sed 's/^/| /' conftest.$ac_ext >&5
20990 ac_cv_lib_socket_connect=no
20993 rm -f core conftest.err conftest.$ac_objext \
20994 conftest$ac_exeext conftest.$ac_ext
20995 LIBS=$ac_check_lib_save_LIBS
20997 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
20998 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
20999 if test $ac_cv_lib_socket_connect = yes; then
21000 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
21005 # Guillermo Gomez says -lposix is necessary on A/UX.
21006 { echo "$as_me:$LINENO: checking for remove" >&5
21007 echo $ECHO_N "checking for remove... $ECHO_C" >&6; }
21008 if test "${ac_cv_func_remove+set}" = set; then
21009 echo $ECHO_N "(cached) $ECHO_C" >&6
21011 cat >conftest.$ac_ext <<_ACEOF
21014 cat confdefs.h >>conftest.$ac_ext
21015 cat >>conftest.$ac_ext <<_ACEOF
21016 /* end confdefs.h. */
21017 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
21018 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21019 #define remove innocuous_remove
21021 /* System header to define __stub macros and hopefully few prototypes,
21022 which can conflict with char remove (); below.
21023 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21024 <limits.h> exists even on freestanding compilers. */
21027 # include <limits.h>
21029 # include <assert.h>
21034 /* Override any GCC internal prototype to avoid an error.
21035 Use char because int might match the return type of a GCC
21036 builtin and then its argument prototype would still apply. */
21041 /* The GNU C library defines this for functions which it implements
21042 to always fail with ENOSYS. Some functions are actually named
21043 something starting with __ and the normal name is an alias. */
21044 #if defined __stub_remove || defined __stub___remove
21056 rm -f conftest.$ac_objext conftest$ac_exeext
21057 if { (ac_try="$ac_link"
21058 case "(($ac_try" in
21059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21060 *) ac_try_echo=$ac_try;;
21062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21063 (eval "$ac_link") 2>conftest.er1
21065 grep -v '^ *+' conftest.er1 >conftest.err
21067 cat conftest.err >&5
21068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21069 (exit $ac_status); } &&
21070 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21071 { (case "(($ac_try" in
21072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21073 *) ac_try_echo=$ac_try;;
21075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21076 (eval "$ac_try") 2>&5
21078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21079 (exit $ac_status); }; } &&
21080 { ac_try='test -s conftest$ac_exeext'
21081 { (case "(($ac_try" in
21082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21083 *) ac_try_echo=$ac_try;;
21085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21086 (eval "$ac_try") 2>&5
21088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21089 (exit $ac_status); }; }; then
21090 ac_cv_func_remove=yes
21092 echo "$as_me: failed program was:" >&5
21093 sed 's/^/| /' conftest.$ac_ext >&5
21095 ac_cv_func_remove=no
21098 rm -f core conftest.err conftest.$ac_objext \
21099 conftest$ac_exeext conftest.$ac_ext
21101 { echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
21102 echo "${ECHO_T}$ac_cv_func_remove" >&6; }
21104 if test $ac_cv_func_remove = no; then
21105 { echo "$as_me:$LINENO: checking for remove in -lposix" >&5
21106 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; }
21107 if test "${ac_cv_lib_posix_remove+set}" = set; then
21108 echo $ECHO_N "(cached) $ECHO_C" >&6
21110 ac_check_lib_save_LIBS=$LIBS
21111 LIBS="-lposix $LIBS"
21112 cat >conftest.$ac_ext <<_ACEOF
21115 cat confdefs.h >>conftest.$ac_ext
21116 cat >>conftest.$ac_ext <<_ACEOF
21117 /* end confdefs.h. */
21119 /* Override any GCC internal prototype to avoid an error.
21120 Use char because int might match the return type of a GCC
21121 builtin and then its argument prototype would still apply. */
21134 rm -f conftest.$ac_objext conftest$ac_exeext
21135 if { (ac_try="$ac_link"
21136 case "(($ac_try" in
21137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21138 *) ac_try_echo=$ac_try;;
21140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21141 (eval "$ac_link") 2>conftest.er1
21143 grep -v '^ *+' conftest.er1 >conftest.err
21145 cat conftest.err >&5
21146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21147 (exit $ac_status); } &&
21148 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21149 { (case "(($ac_try" in
21150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21151 *) ac_try_echo=$ac_try;;
21153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21154 (eval "$ac_try") 2>&5
21156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21157 (exit $ac_status); }; } &&
21158 { ac_try='test -s conftest$ac_exeext'
21159 { (case "(($ac_try" in
21160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21161 *) ac_try_echo=$ac_try;;
21163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21164 (eval "$ac_try") 2>&5
21166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21167 (exit $ac_status); }; }; then
21168 ac_cv_lib_posix_remove=yes
21170 echo "$as_me: failed program was:" >&5
21171 sed 's/^/| /' conftest.$ac_ext >&5
21173 ac_cv_lib_posix_remove=no
21176 rm -f core conftest.err conftest.$ac_objext \
21177 conftest$ac_exeext conftest.$ac_ext
21178 LIBS=$ac_check_lib_save_LIBS
21180 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
21181 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; }
21182 if test $ac_cv_lib_posix_remove = yes; then
21183 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
21188 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
21189 { echo "$as_me:$LINENO: checking for shmat" >&5
21190 echo $ECHO_N "checking for shmat... $ECHO_C" >&6; }
21191 if test "${ac_cv_func_shmat+set}" = set; then
21192 echo $ECHO_N "(cached) $ECHO_C" >&6
21194 cat >conftest.$ac_ext <<_ACEOF
21197 cat confdefs.h >>conftest.$ac_ext
21198 cat >>conftest.$ac_ext <<_ACEOF
21199 /* end confdefs.h. */
21200 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
21201 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21202 #define shmat innocuous_shmat
21204 /* System header to define __stub macros and hopefully few prototypes,
21205 which can conflict with char shmat (); below.
21206 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21207 <limits.h> exists even on freestanding compilers. */
21210 # include <limits.h>
21212 # include <assert.h>
21217 /* Override any GCC internal prototype to avoid an error.
21218 Use char because int might match the return type of a GCC
21219 builtin and then its argument prototype would still apply. */
21224 /* The GNU C library defines this for functions which it implements
21225 to always fail with ENOSYS. Some functions are actually named
21226 something starting with __ and the normal name is an alias. */
21227 #if defined __stub_shmat || defined __stub___shmat
21239 rm -f conftest.$ac_objext conftest$ac_exeext
21240 if { (ac_try="$ac_link"
21241 case "(($ac_try" in
21242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21243 *) ac_try_echo=$ac_try;;
21245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21246 (eval "$ac_link") 2>conftest.er1
21248 grep -v '^ *+' conftest.er1 >conftest.err
21250 cat conftest.err >&5
21251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21252 (exit $ac_status); } &&
21253 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21254 { (case "(($ac_try" in
21255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21256 *) ac_try_echo=$ac_try;;
21258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21259 (eval "$ac_try") 2>&5
21261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21262 (exit $ac_status); }; } &&
21263 { ac_try='test -s conftest$ac_exeext'
21264 { (case "(($ac_try" in
21265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21266 *) ac_try_echo=$ac_try;;
21268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21269 (eval "$ac_try") 2>&5
21271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21272 (exit $ac_status); }; }; then
21273 ac_cv_func_shmat=yes
21275 echo "$as_me: failed program was:" >&5
21276 sed 's/^/| /' conftest.$ac_ext >&5
21278 ac_cv_func_shmat=no
21281 rm -f core conftest.err conftest.$ac_objext \
21282 conftest$ac_exeext conftest.$ac_ext
21284 { echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
21285 echo "${ECHO_T}$ac_cv_func_shmat" >&6; }
21287 if test $ac_cv_func_shmat = no; then
21288 { echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
21289 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; }
21290 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
21291 echo $ECHO_N "(cached) $ECHO_C" >&6
21293 ac_check_lib_save_LIBS=$LIBS
21295 cat >conftest.$ac_ext <<_ACEOF
21298 cat confdefs.h >>conftest.$ac_ext
21299 cat >>conftest.$ac_ext <<_ACEOF
21300 /* end confdefs.h. */
21302 /* Override any GCC internal prototype to avoid an error.
21303 Use char because int might match the return type of a GCC
21304 builtin and then its argument prototype would still apply. */
21317 rm -f conftest.$ac_objext conftest$ac_exeext
21318 if { (ac_try="$ac_link"
21319 case "(($ac_try" in
21320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21321 *) ac_try_echo=$ac_try;;
21323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21324 (eval "$ac_link") 2>conftest.er1
21326 grep -v '^ *+' conftest.er1 >conftest.err
21328 cat conftest.err >&5
21329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21330 (exit $ac_status); } &&
21331 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21332 { (case "(($ac_try" in
21333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21334 *) ac_try_echo=$ac_try;;
21336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21337 (eval "$ac_try") 2>&5
21339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21340 (exit $ac_status); }; } &&
21341 { ac_try='test -s conftest$ac_exeext'
21342 { (case "(($ac_try" in
21343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21344 *) ac_try_echo=$ac_try;;
21346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21347 (eval "$ac_try") 2>&5
21349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21350 (exit $ac_status); }; }; then
21351 ac_cv_lib_ipc_shmat=yes
21353 echo "$as_me: failed program was:" >&5
21354 sed 's/^/| /' conftest.$ac_ext >&5
21356 ac_cv_lib_ipc_shmat=no
21359 rm -f core conftest.err conftest.$ac_objext \
21360 conftest$ac_exeext conftest.$ac_ext
21361 LIBS=$ac_check_lib_save_LIBS
21363 { echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
21364 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; }
21365 if test $ac_cv_lib_ipc_shmat = yes; then
21366 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
21372 # Check for libraries that X11R6 Xt/Xaw programs need.
21373 ac_save_LDFLAGS=$LDFLAGS
21374 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
21375 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
21376 # check for ICE first), but we must link in the order -lSM -lICE or
21377 # we get undefined symbols. So assume we have SM if we have ICE.
21378 # These have to be linked with before -lX11, unlike the other
21379 # libraries we check for below, so use a different variable.
21380 # John Interrante, Karl Berry
21381 { echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
21382 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; }
21383 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
21384 echo $ECHO_N "(cached) $ECHO_C" >&6
21386 ac_check_lib_save_LIBS=$LIBS
21387 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
21388 cat >conftest.$ac_ext <<_ACEOF
21391 cat confdefs.h >>conftest.$ac_ext
21392 cat >>conftest.$ac_ext <<_ACEOF
21393 /* end confdefs.h. */
21395 /* Override any GCC internal prototype to avoid an error.
21396 Use char because int might match the return type of a GCC
21397 builtin and then its argument prototype would still apply. */
21401 char IceConnectionNumber ();
21405 return IceConnectionNumber ();
21410 rm -f conftest.$ac_objext conftest$ac_exeext
21411 if { (ac_try="$ac_link"
21412 case "(($ac_try" in
21413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21414 *) ac_try_echo=$ac_try;;
21416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21417 (eval "$ac_link") 2>conftest.er1
21419 grep -v '^ *+' conftest.er1 >conftest.err
21421 cat conftest.err >&5
21422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21423 (exit $ac_status); } &&
21424 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21425 { (case "(($ac_try" in
21426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21427 *) ac_try_echo=$ac_try;;
21429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21430 (eval "$ac_try") 2>&5
21432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21433 (exit $ac_status); }; } &&
21434 { ac_try='test -s conftest$ac_exeext'
21435 { (case "(($ac_try" in
21436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21437 *) ac_try_echo=$ac_try;;
21439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21440 (eval "$ac_try") 2>&5
21442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21443 (exit $ac_status); }; }; then
21444 ac_cv_lib_ICE_IceConnectionNumber=yes
21446 echo "$as_me: failed program was:" >&5
21447 sed 's/^/| /' conftest.$ac_ext >&5
21449 ac_cv_lib_ICE_IceConnectionNumber=no
21452 rm -f core conftest.err conftest.$ac_objext \
21453 conftest$ac_exeext conftest.$ac_ext
21454 LIBS=$ac_check_lib_save_LIBS
21456 { echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
21457 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
21458 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
21459 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
21462 LDFLAGS=$ac_save_LDFLAGS
21524 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21525 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21526 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21527 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21528 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21529 echo $ECHO_N "(cached) $ECHO_C" >&6
21531 ac_res=`eval echo '${'$as_ac_Header'}'`
21532 { echo "$as_me:$LINENO: result: $ac_res" >&5
21533 echo "${ECHO_T}$ac_res" >&6; }
21535 # Is the header compilable?
21536 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21537 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21538 cat >conftest.$ac_ext <<_ACEOF
21541 cat confdefs.h >>conftest.$ac_ext
21542 cat >>conftest.$ac_ext <<_ACEOF
21543 /* end confdefs.h. */
21544 $ac_includes_default
21545 #include <$ac_header>
21547 rm -f conftest.$ac_objext
21548 if { (ac_try="$ac_compile"
21549 case "(($ac_try" in
21550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21551 *) ac_try_echo=$ac_try;;
21553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21554 (eval "$ac_compile") 2>conftest.er1
21556 grep -v '^ *+' conftest.er1 >conftest.err
21558 cat conftest.err >&5
21559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21560 (exit $ac_status); } &&
21561 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21562 { (case "(($ac_try" in
21563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21564 *) ac_try_echo=$ac_try;;
21566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21567 (eval "$ac_try") 2>&5
21569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21570 (exit $ac_status); }; } &&
21571 { ac_try='test -s conftest.$ac_objext'
21572 { (case "(($ac_try" in
21573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21574 *) ac_try_echo=$ac_try;;
21576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21577 (eval "$ac_try") 2>&5
21579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21580 (exit $ac_status); }; }; then
21581 ac_header_compiler=yes
21583 echo "$as_me: failed program was:" >&5
21584 sed 's/^/| /' conftest.$ac_ext >&5
21586 ac_header_compiler=no
21589 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21590 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21591 echo "${ECHO_T}$ac_header_compiler" >&6; }
21593 # Is the header present?
21594 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21595 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21596 cat >conftest.$ac_ext <<_ACEOF
21599 cat confdefs.h >>conftest.$ac_ext
21600 cat >>conftest.$ac_ext <<_ACEOF
21601 /* end confdefs.h. */
21602 #include <$ac_header>
21604 if { (ac_try="$ac_cpp conftest.$ac_ext"
21605 case "(($ac_try" in
21606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21607 *) ac_try_echo=$ac_try;;
21609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21610 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21612 grep -v '^ *+' conftest.er1 >conftest.err
21614 cat conftest.err >&5
21615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21616 (exit $ac_status); } >/dev/null; then
21617 if test -s conftest.err; then
21618 ac_cpp_err=$ac_c_preproc_warn_flag
21619 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21626 if test -z "$ac_cpp_err"; then
21627 ac_header_preproc=yes
21629 echo "$as_me: failed program was:" >&5
21630 sed 's/^/| /' conftest.$ac_ext >&5
21632 ac_header_preproc=no
21635 rm -f conftest.err conftest.$ac_ext
21636 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21637 echo "${ECHO_T}$ac_header_preproc" >&6; }
21639 # So? What about this header?
21640 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21642 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21643 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21644 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21645 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21646 ac_header_preproc=yes
21649 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21650 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21651 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21652 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21653 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21654 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21655 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21656 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21657 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21658 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21659 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21660 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21664 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21665 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21666 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21667 echo $ECHO_N "(cached) $ECHO_C" >&6
21669 eval "$as_ac_Header=\$ac_header_preproc"
21671 ac_res=`eval echo '${'$as_ac_Header'}'`
21672 { echo "$as_me:$LINENO: result: $ac_res" >&5
21673 echo "${ECHO_T}$ac_res" >&6; }
21676 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21677 cat >>confdefs.h <<_ACEOF
21678 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21685 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
21686 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
21687 if test "${ac_cv_header_stdc+set}" = set; then
21688 echo $ECHO_N "(cached) $ECHO_C" >&6
21690 cat >conftest.$ac_ext <<_ACEOF
21693 cat confdefs.h >>conftest.$ac_ext
21694 cat >>conftest.$ac_ext <<_ACEOF
21695 /* end confdefs.h. */
21696 #include <stdlib.h>
21697 #include <stdarg.h>
21698 #include <string.h>
21709 rm -f conftest.$ac_objext
21710 if { (ac_try="$ac_compile"
21711 case "(($ac_try" in
21712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21713 *) ac_try_echo=$ac_try;;
21715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21716 (eval "$ac_compile") 2>conftest.er1
21718 grep -v '^ *+' conftest.er1 >conftest.err
21720 cat conftest.err >&5
21721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21722 (exit $ac_status); } &&
21723 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21724 { (case "(($ac_try" in
21725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21726 *) ac_try_echo=$ac_try;;
21728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21729 (eval "$ac_try") 2>&5
21731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21732 (exit $ac_status); }; } &&
21733 { ac_try='test -s conftest.$ac_objext'
21734 { (case "(($ac_try" in
21735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21736 *) ac_try_echo=$ac_try;;
21738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21739 (eval "$ac_try") 2>&5
21741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21742 (exit $ac_status); }; }; then
21743 ac_cv_header_stdc=yes
21745 echo "$as_me: failed program was:" >&5
21746 sed 's/^/| /' conftest.$ac_ext >&5
21748 ac_cv_header_stdc=no
21751 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21753 if test $ac_cv_header_stdc = yes; then
21754 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
21755 cat >conftest.$ac_ext <<_ACEOF
21758 cat confdefs.h >>conftest.$ac_ext
21759 cat >>conftest.$ac_ext <<_ACEOF
21760 /* end confdefs.h. */
21761 #include <string.h>
21764 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21765 $EGREP "memchr" >/dev/null 2>&1; then
21768 ac_cv_header_stdc=no
21774 if test $ac_cv_header_stdc = yes; then
21775 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
21776 cat >conftest.$ac_ext <<_ACEOF
21779 cat confdefs.h >>conftest.$ac_ext
21780 cat >>conftest.$ac_ext <<_ACEOF
21781 /* end confdefs.h. */
21782 #include <stdlib.h>
21785 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21786 $EGREP "free" >/dev/null 2>&1; then
21789 ac_cv_header_stdc=no
21795 if test $ac_cv_header_stdc = yes; then
21796 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
21797 if test "$cross_compiling" = yes; then
21800 cat >conftest.$ac_ext <<_ACEOF
21803 cat confdefs.h >>conftest.$ac_ext
21804 cat >>conftest.$ac_ext <<_ACEOF
21805 /* end confdefs.h. */
21807 #include <stdlib.h>
21808 #if ((' ' & 0x0FF) == 0x020)
21809 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
21810 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
21812 # define ISLOWER(c) \
21813 (('a' <= (c) && (c) <= 'i') \
21814 || ('j' <= (c) && (c) <= 'r') \
21815 || ('s' <= (c) && (c) <= 'z'))
21816 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
21819 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
21824 for (i = 0; i < 256; i++)
21825 if (XOR (islower (i), ISLOWER (i))
21826 || toupper (i) != TOUPPER (i))
21831 rm -f conftest$ac_exeext
21832 if { (ac_try="$ac_link"
21833 case "(($ac_try" in
21834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21835 *) ac_try_echo=$ac_try;;
21837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21838 (eval "$ac_link") 2>&5
21840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21841 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21842 { (case "(($ac_try" in
21843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21844 *) ac_try_echo=$ac_try;;
21846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21847 (eval "$ac_try") 2>&5
21849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21850 (exit $ac_status); }; }; then
21853 echo "$as_me: program exited with status $ac_status" >&5
21854 echo "$as_me: failed program was:" >&5
21855 sed 's/^/| /' conftest.$ac_ext >&5
21857 ( exit $ac_status )
21858 ac_cv_header_stdc=no
21860 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21866 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
21867 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
21868 if test $ac_cv_header_stdc = yes; then
21870 cat >>confdefs.h <<\_ACEOF
21871 #define STDC_HEADERS 1
21876 { echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
21877 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6; }
21878 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
21879 echo $ECHO_N "(cached) $ECHO_C" >&6
21881 cat >conftest.$ac_ext <<_ACEOF
21884 cat confdefs.h >>conftest.$ac_ext
21885 cat >>conftest.$ac_ext <<_ACEOF
21886 /* end confdefs.h. */
21887 #include <sys/types.h>
21891 return makedev(0, 0);
21896 rm -f conftest.$ac_objext conftest$ac_exeext
21897 if { (ac_try="$ac_link"
21898 case "(($ac_try" in
21899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21900 *) ac_try_echo=$ac_try;;
21902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21903 (eval "$ac_link") 2>conftest.er1
21905 grep -v '^ *+' conftest.er1 >conftest.err
21907 cat conftest.err >&5
21908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21909 (exit $ac_status); } &&
21910 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21911 { (case "(($ac_try" in
21912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21913 *) ac_try_echo=$ac_try;;
21915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21916 (eval "$ac_try") 2>&5
21918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21919 (exit $ac_status); }; } &&
21920 { ac_try='test -s conftest$ac_exeext'
21921 { (case "(($ac_try" in
21922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21923 *) ac_try_echo=$ac_try;;
21925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21926 (eval "$ac_try") 2>&5
21928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21929 (exit $ac_status); }; }; then
21930 ac_cv_header_sys_types_h_makedev=yes
21932 echo "$as_me: failed program was:" >&5
21933 sed 's/^/| /' conftest.$ac_ext >&5
21935 ac_cv_header_sys_types_h_makedev=no
21938 rm -f core conftest.err conftest.$ac_objext \
21939 conftest$ac_exeext conftest.$ac_ext
21942 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
21943 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6; }
21945 if test $ac_cv_header_sys_types_h_makedev = no; then
21946 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
21947 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
21948 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
21949 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
21950 echo $ECHO_N "(cached) $ECHO_C" >&6
21952 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
21953 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
21955 # Is the header compilable?
21956 { echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
21957 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6; }
21958 cat >conftest.$ac_ext <<_ACEOF
21961 cat confdefs.h >>conftest.$ac_ext
21962 cat >>conftest.$ac_ext <<_ACEOF
21963 /* end confdefs.h. */
21964 $ac_includes_default
21965 #include <sys/mkdev.h>
21967 rm -f conftest.$ac_objext
21968 if { (ac_try="$ac_compile"
21969 case "(($ac_try" in
21970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21971 *) ac_try_echo=$ac_try;;
21973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21974 (eval "$ac_compile") 2>conftest.er1
21976 grep -v '^ *+' conftest.er1 >conftest.err
21978 cat conftest.err >&5
21979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21980 (exit $ac_status); } &&
21981 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21982 { (case "(($ac_try" in
21983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21984 *) ac_try_echo=$ac_try;;
21986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21987 (eval "$ac_try") 2>&5
21989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21990 (exit $ac_status); }; } &&
21991 { ac_try='test -s conftest.$ac_objext'
21992 { (case "(($ac_try" in
21993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21994 *) ac_try_echo=$ac_try;;
21996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21997 (eval "$ac_try") 2>&5
21999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22000 (exit $ac_status); }; }; then
22001 ac_header_compiler=yes
22003 echo "$as_me: failed program was:" >&5
22004 sed 's/^/| /' conftest.$ac_ext >&5
22006 ac_header_compiler=no
22009 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22010 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22011 echo "${ECHO_T}$ac_header_compiler" >&6; }
22013 # Is the header present?
22014 { echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
22015 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6; }
22016 cat >conftest.$ac_ext <<_ACEOF
22019 cat confdefs.h >>conftest.$ac_ext
22020 cat >>conftest.$ac_ext <<_ACEOF
22021 /* end confdefs.h. */
22022 #include <sys/mkdev.h>
22024 if { (ac_try="$ac_cpp conftest.$ac_ext"
22025 case "(($ac_try" in
22026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22027 *) ac_try_echo=$ac_try;;
22029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22030 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22032 grep -v '^ *+' conftest.er1 >conftest.err
22034 cat conftest.err >&5
22035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22036 (exit $ac_status); } >/dev/null; then
22037 if test -s conftest.err; then
22038 ac_cpp_err=$ac_c_preproc_warn_flag
22039 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22046 if test -z "$ac_cpp_err"; then
22047 ac_header_preproc=yes
22049 echo "$as_me: failed program was:" >&5
22050 sed 's/^/| /' conftest.$ac_ext >&5
22052 ac_header_preproc=no
22055 rm -f conftest.err conftest.$ac_ext
22056 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22057 echo "${ECHO_T}$ac_header_preproc" >&6; }
22059 # So? What about this header?
22060 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22062 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
22063 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22064 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
22065 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
22066 ac_header_preproc=yes
22069 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
22070 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
22071 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
22072 echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
22073 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
22074 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
22075 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&5
22076 echo "$as_me: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&2;}
22077 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
22078 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
22079 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
22080 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
22084 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
22085 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
22086 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
22087 echo $ECHO_N "(cached) $ECHO_C" >&6
22089 ac_cv_header_sys_mkdev_h=$ac_header_preproc
22091 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
22092 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
22095 if test $ac_cv_header_sys_mkdev_h = yes; then
22097 cat >>confdefs.h <<\_ACEOF
22098 #define MAJOR_IN_MKDEV 1
22105 if test $ac_cv_header_sys_mkdev_h = no; then
22106 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
22107 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
22108 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
22109 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
22110 echo $ECHO_N "(cached) $ECHO_C" >&6
22112 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
22113 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
22115 # Is the header compilable?
22116 { echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
22117 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6; }
22118 cat >conftest.$ac_ext <<_ACEOF
22121 cat confdefs.h >>conftest.$ac_ext
22122 cat >>conftest.$ac_ext <<_ACEOF
22123 /* end confdefs.h. */
22124 $ac_includes_default
22125 #include <sys/sysmacros.h>
22127 rm -f conftest.$ac_objext
22128 if { (ac_try="$ac_compile"
22129 case "(($ac_try" in
22130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22131 *) ac_try_echo=$ac_try;;
22133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22134 (eval "$ac_compile") 2>conftest.er1
22136 grep -v '^ *+' conftest.er1 >conftest.err
22138 cat conftest.err >&5
22139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22140 (exit $ac_status); } &&
22141 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22142 { (case "(($ac_try" in
22143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22144 *) ac_try_echo=$ac_try;;
22146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22147 (eval "$ac_try") 2>&5
22149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22150 (exit $ac_status); }; } &&
22151 { ac_try='test -s conftest.$ac_objext'
22152 { (case "(($ac_try" in
22153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22154 *) ac_try_echo=$ac_try;;
22156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22157 (eval "$ac_try") 2>&5
22159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22160 (exit $ac_status); }; }; then
22161 ac_header_compiler=yes
22163 echo "$as_me: failed program was:" >&5
22164 sed 's/^/| /' conftest.$ac_ext >&5
22166 ac_header_compiler=no
22169 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22170 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22171 echo "${ECHO_T}$ac_header_compiler" >&6; }
22173 # Is the header present?
22174 { echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
22175 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6; }
22176 cat >conftest.$ac_ext <<_ACEOF
22179 cat confdefs.h >>conftest.$ac_ext
22180 cat >>conftest.$ac_ext <<_ACEOF
22181 /* end confdefs.h. */
22182 #include <sys/sysmacros.h>
22184 if { (ac_try="$ac_cpp conftest.$ac_ext"
22185 case "(($ac_try" in
22186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22187 *) ac_try_echo=$ac_try;;
22189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22190 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22192 grep -v '^ *+' conftest.er1 >conftest.err
22194 cat conftest.err >&5
22195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22196 (exit $ac_status); } >/dev/null; then
22197 if test -s conftest.err; then
22198 ac_cpp_err=$ac_c_preproc_warn_flag
22199 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22206 if test -z "$ac_cpp_err"; then
22207 ac_header_preproc=yes
22209 echo "$as_me: failed program was:" >&5
22210 sed 's/^/| /' conftest.$ac_ext >&5
22212 ac_header_preproc=no
22215 rm -f conftest.err conftest.$ac_ext
22216 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22217 echo "${ECHO_T}$ac_header_preproc" >&6; }
22219 # So? What about this header?
22220 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22222 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
22223 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22224 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
22225 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
22226 ac_header_preproc=yes
22229 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
22230 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
22231 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
22232 echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
22233 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
22234 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
22235 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&5
22236 echo "$as_me: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&2;}
22237 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
22238 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
22239 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
22240 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
22244 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
22245 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
22246 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
22247 echo $ECHO_N "(cached) $ECHO_C" >&6
22249 ac_cv_header_sys_sysmacros_h=$ac_header_preproc
22251 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
22252 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
22255 if test $ac_cv_header_sys_sysmacros_h = yes; then
22257 cat >>confdefs.h <<\_ACEOF
22258 #define MAJOR_IN_SYSMACROS 1
22272 ac_header_dirent=no
22273 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
22274 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
22275 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
22276 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
22277 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22278 echo $ECHO_N "(cached) $ECHO_C" >&6
22280 cat >conftest.$ac_ext <<_ACEOF
22283 cat confdefs.h >>conftest.$ac_ext
22284 cat >>conftest.$ac_ext <<_ACEOF
22285 /* end confdefs.h. */
22286 #include <sys/types.h>
22298 rm -f conftest.$ac_objext
22299 if { (ac_try="$ac_compile"
22300 case "(($ac_try" in
22301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22302 *) ac_try_echo=$ac_try;;
22304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22305 (eval "$ac_compile") 2>conftest.er1
22307 grep -v '^ *+' conftest.er1 >conftest.err
22309 cat conftest.err >&5
22310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22311 (exit $ac_status); } &&
22312 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22313 { (case "(($ac_try" in
22314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22315 *) ac_try_echo=$ac_try;;
22317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22318 (eval "$ac_try") 2>&5
22320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22321 (exit $ac_status); }; } &&
22322 { ac_try='test -s conftest.$ac_objext'
22323 { (case "(($ac_try" in
22324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22325 *) ac_try_echo=$ac_try;;
22327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22328 (eval "$ac_try") 2>&5
22330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22331 (exit $ac_status); }; }; then
22332 eval "$as_ac_Header=yes"
22334 echo "$as_me: failed program was:" >&5
22335 sed 's/^/| /' conftest.$ac_ext >&5
22337 eval "$as_ac_Header=no"
22340 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22342 ac_res=`eval echo '${'$as_ac_Header'}'`
22343 { echo "$as_me:$LINENO: result: $ac_res" >&5
22344 echo "${ECHO_T}$ac_res" >&6; }
22345 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22346 cat >>confdefs.h <<_ACEOF
22347 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
22350 ac_header_dirent=$ac_hdr; break
22354 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
22355 if test $ac_header_dirent = dirent.h; then
22356 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
22357 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
22358 if test "${ac_cv_search_opendir+set}" = set; then
22359 echo $ECHO_N "(cached) $ECHO_C" >&6
22361 ac_func_search_save_LIBS=$LIBS
22362 cat >conftest.$ac_ext <<_ACEOF
22365 cat confdefs.h >>conftest.$ac_ext
22366 cat >>conftest.$ac_ext <<_ACEOF
22367 /* end confdefs.h. */
22369 /* Override any GCC internal prototype to avoid an error.
22370 Use char because int might match the return type of a GCC
22371 builtin and then its argument prototype would still apply. */
22384 for ac_lib in '' dir; do
22385 if test -z "$ac_lib"; then
22386 ac_res="none required"
22389 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22391 rm -f conftest.$ac_objext conftest$ac_exeext
22392 if { (ac_try="$ac_link"
22393 case "(($ac_try" in
22394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22395 *) ac_try_echo=$ac_try;;
22397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22398 (eval "$ac_link") 2>conftest.er1
22400 grep -v '^ *+' conftest.er1 >conftest.err
22402 cat conftest.err >&5
22403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22404 (exit $ac_status); } &&
22405 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22406 { (case "(($ac_try" in
22407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22408 *) ac_try_echo=$ac_try;;
22410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22411 (eval "$ac_try") 2>&5
22413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22414 (exit $ac_status); }; } &&
22415 { ac_try='test -s conftest$ac_exeext'
22416 { (case "(($ac_try" in
22417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22418 *) ac_try_echo=$ac_try;;
22420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22421 (eval "$ac_try") 2>&5
22423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22424 (exit $ac_status); }; }; then
22425 ac_cv_search_opendir=$ac_res
22427 echo "$as_me: failed program was:" >&5
22428 sed 's/^/| /' conftest.$ac_ext >&5
22433 rm -f core conftest.err conftest.$ac_objext \
22435 if test "${ac_cv_search_opendir+set}" = set; then
22439 if test "${ac_cv_search_opendir+set}" = set; then
22442 ac_cv_search_opendir=no
22444 rm conftest.$ac_ext
22445 LIBS=$ac_func_search_save_LIBS
22447 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
22448 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
22449 ac_res=$ac_cv_search_opendir
22450 if test "$ac_res" != no; then
22451 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22456 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
22457 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
22458 if test "${ac_cv_search_opendir+set}" = set; then
22459 echo $ECHO_N "(cached) $ECHO_C" >&6
22461 ac_func_search_save_LIBS=$LIBS
22462 cat >conftest.$ac_ext <<_ACEOF
22465 cat confdefs.h >>conftest.$ac_ext
22466 cat >>conftest.$ac_ext <<_ACEOF
22467 /* end confdefs.h. */
22469 /* Override any GCC internal prototype to avoid an error.
22470 Use char because int might match the return type of a GCC
22471 builtin and then its argument prototype would still apply. */
22484 for ac_lib in '' x; do
22485 if test -z "$ac_lib"; then
22486 ac_res="none required"
22489 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22491 rm -f conftest.$ac_objext conftest$ac_exeext
22492 if { (ac_try="$ac_link"
22493 case "(($ac_try" in
22494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22495 *) ac_try_echo=$ac_try;;
22497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22498 (eval "$ac_link") 2>conftest.er1
22500 grep -v '^ *+' conftest.er1 >conftest.err
22502 cat conftest.err >&5
22503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22504 (exit $ac_status); } &&
22505 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22506 { (case "(($ac_try" in
22507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22508 *) ac_try_echo=$ac_try;;
22510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22511 (eval "$ac_try") 2>&5
22513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22514 (exit $ac_status); }; } &&
22515 { ac_try='test -s conftest$ac_exeext'
22516 { (case "(($ac_try" in
22517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22518 *) ac_try_echo=$ac_try;;
22520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22521 (eval "$ac_try") 2>&5
22523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22524 (exit $ac_status); }; }; then
22525 ac_cv_search_opendir=$ac_res
22527 echo "$as_me: failed program was:" >&5
22528 sed 's/^/| /' conftest.$ac_ext >&5
22533 rm -f core conftest.err conftest.$ac_objext \
22535 if test "${ac_cv_search_opendir+set}" = set; then
22539 if test "${ac_cv_search_opendir+set}" = set; then
22542 ac_cv_search_opendir=no
22544 rm conftest.$ac_ext
22545 LIBS=$ac_func_search_save_LIBS
22547 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
22548 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
22549 ac_res=$ac_cv_search_opendir
22550 if test "$ac_res" != no; then
22551 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22557 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
22558 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
22559 if test "${ac_cv_header_stat_broken+set}" = set; then
22560 echo $ECHO_N "(cached) $ECHO_C" >&6
22562 cat >conftest.$ac_ext <<_ACEOF
22565 cat confdefs.h >>conftest.$ac_ext
22566 cat >>conftest.$ac_ext <<_ACEOF
22567 /* end confdefs.h. */
22568 #include <sys/types.h>
22569 #include <sys/stat.h>
22571 #if defined S_ISBLK && defined S_IFDIR
22572 # if S_ISBLK (S_IFDIR)
22577 #if defined S_ISBLK && defined S_IFCHR
22578 # if S_ISBLK (S_IFCHR)
22583 #if defined S_ISLNK && defined S_IFREG
22584 # if S_ISLNK (S_IFREG)
22589 #if defined S_ISSOCK && defined S_IFREG
22590 # if S_ISSOCK (S_IFREG)
22596 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22597 $EGREP "You lose" >/dev/null 2>&1; then
22598 ac_cv_header_stat_broken=yes
22600 ac_cv_header_stat_broken=no
22605 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
22606 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
22607 if test $ac_cv_header_stat_broken = yes; then
22609 cat >>confdefs.h <<\_ACEOF
22610 #define STAT_MACROS_BROKEN 1
22615 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
22616 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
22617 if test "${ac_cv_header_sys_wait_h+set}" = set; then
22618 echo $ECHO_N "(cached) $ECHO_C" >&6
22620 cat >conftest.$ac_ext <<_ACEOF
22623 cat confdefs.h >>conftest.$ac_ext
22624 cat >>conftest.$ac_ext <<_ACEOF
22625 /* end confdefs.h. */
22626 #include <sys/types.h>
22627 #include <sys/wait.h>
22628 #ifndef WEXITSTATUS
22629 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
22632 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
22640 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
22645 rm -f conftest.$ac_objext
22646 if { (ac_try="$ac_compile"
22647 case "(($ac_try" in
22648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22649 *) ac_try_echo=$ac_try;;
22651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22652 (eval "$ac_compile") 2>conftest.er1
22654 grep -v '^ *+' conftest.er1 >conftest.err
22656 cat conftest.err >&5
22657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22658 (exit $ac_status); } &&
22659 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22660 { (case "(($ac_try" in
22661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22662 *) ac_try_echo=$ac_try;;
22664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22665 (eval "$ac_try") 2>&5
22667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22668 (exit $ac_status); }; } &&
22669 { ac_try='test -s conftest.$ac_objext'
22670 { (case "(($ac_try" in
22671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22672 *) ac_try_echo=$ac_try;;
22674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22675 (eval "$ac_try") 2>&5
22677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22678 (exit $ac_status); }; }; then
22679 ac_cv_header_sys_wait_h=yes
22681 echo "$as_me: failed program was:" >&5
22682 sed 's/^/| /' conftest.$ac_ext >&5
22684 ac_cv_header_sys_wait_h=no
22687 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22689 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
22690 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
22691 if test $ac_cv_header_sys_wait_h = yes; then
22693 cat >>confdefs.h <<\_ACEOF
22694 #define HAVE_SYS_WAIT_H 1
22699 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
22700 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
22701 if test "${ac_cv_header_time+set}" = set; then
22702 echo $ECHO_N "(cached) $ECHO_C" >&6
22704 cat >conftest.$ac_ext <<_ACEOF
22707 cat confdefs.h >>conftest.$ac_ext
22708 cat >>conftest.$ac_ext <<_ACEOF
22709 /* end confdefs.h. */
22710 #include <sys/types.h>
22711 #include <sys/time.h>
22717 if ((struct tm *) 0)
22723 rm -f conftest.$ac_objext
22724 if { (ac_try="$ac_compile"
22725 case "(($ac_try" in
22726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22727 *) ac_try_echo=$ac_try;;
22729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22730 (eval "$ac_compile") 2>conftest.er1
22732 grep -v '^ *+' conftest.er1 >conftest.err
22734 cat conftest.err >&5
22735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22736 (exit $ac_status); } &&
22737 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22738 { (case "(($ac_try" in
22739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22740 *) ac_try_echo=$ac_try;;
22742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22743 (eval "$ac_try") 2>&5
22745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22746 (exit $ac_status); }; } &&
22747 { ac_try='test -s conftest.$ac_objext'
22748 { (case "(($ac_try" in
22749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22750 *) ac_try_echo=$ac_try;;
22752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22753 (eval "$ac_try") 2>&5
22755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22756 (exit $ac_status); }; }; then
22757 ac_cv_header_time=yes
22759 echo "$as_me: failed program was:" >&5
22760 sed 's/^/| /' conftest.$ac_ext >&5
22762 ac_cv_header_time=no
22765 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22767 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
22768 echo "${ECHO_T}$ac_cv_header_time" >&6; }
22769 if test $ac_cv_header_time = yes; then
22771 cat >>confdefs.h <<\_ACEOF
22772 #define TIME_WITH_SYS_TIME 1
22777 { echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
22778 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6; }
22779 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
22780 echo $ECHO_N "(cached) $ECHO_C" >&6
22782 cat >conftest.$ac_ext <<_ACEOF
22785 cat confdefs.h >>conftest.$ac_ext
22786 cat >>conftest.$ac_ext <<_ACEOF
22787 /* end confdefs.h. */
22788 $ac_includes_default
22792 static struct stat ac_aggr;
22793 if (ac_aggr.st_blksize)
22799 rm -f conftest.$ac_objext
22800 if { (ac_try="$ac_compile"
22801 case "(($ac_try" in
22802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22803 *) ac_try_echo=$ac_try;;
22805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22806 (eval "$ac_compile") 2>conftest.er1
22808 grep -v '^ *+' conftest.er1 >conftest.err
22810 cat conftest.err >&5
22811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22812 (exit $ac_status); } &&
22813 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22814 { (case "(($ac_try" in
22815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22816 *) ac_try_echo=$ac_try;;
22818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22819 (eval "$ac_try") 2>&5
22821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22822 (exit $ac_status); }; } &&
22823 { ac_try='test -s conftest.$ac_objext'
22824 { (case "(($ac_try" in
22825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22826 *) ac_try_echo=$ac_try;;
22828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22829 (eval "$ac_try") 2>&5
22831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22832 (exit $ac_status); }; }; then
22833 ac_cv_member_struct_stat_st_blksize=yes
22835 echo "$as_me: failed program was:" >&5
22836 sed 's/^/| /' conftest.$ac_ext >&5
22838 cat >conftest.$ac_ext <<_ACEOF
22841 cat confdefs.h >>conftest.$ac_ext
22842 cat >>conftest.$ac_ext <<_ACEOF
22843 /* end confdefs.h. */
22844 $ac_includes_default
22848 static struct stat ac_aggr;
22849 if (sizeof ac_aggr.st_blksize)
22855 rm -f conftest.$ac_objext
22856 if { (ac_try="$ac_compile"
22857 case "(($ac_try" in
22858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22859 *) ac_try_echo=$ac_try;;
22861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22862 (eval "$ac_compile") 2>conftest.er1
22864 grep -v '^ *+' conftest.er1 >conftest.err
22866 cat conftest.err >&5
22867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22868 (exit $ac_status); } &&
22869 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22870 { (case "(($ac_try" in
22871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22872 *) ac_try_echo=$ac_try;;
22874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22875 (eval "$ac_try") 2>&5
22877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22878 (exit $ac_status); }; } &&
22879 { ac_try='test -s conftest.$ac_objext'
22880 { (case "(($ac_try" in
22881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22882 *) ac_try_echo=$ac_try;;
22884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22885 (eval "$ac_try") 2>&5
22887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22888 (exit $ac_status); }; }; then
22889 ac_cv_member_struct_stat_st_blksize=yes
22891 echo "$as_me: failed program was:" >&5
22892 sed 's/^/| /' conftest.$ac_ext >&5
22894 ac_cv_member_struct_stat_st_blksize=no
22897 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22900 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22902 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
22903 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; }
22904 if test $ac_cv_member_struct_stat_st_blksize = yes; then
22906 cat >>confdefs.h <<_ACEOF
22907 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
22911 cat >>confdefs.h <<\_ACEOF
22912 #define HAVE_ST_BLKSIZE 1
22918 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
22919 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
22920 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
22921 echo $ECHO_N "(cached) $ECHO_C" >&6
22923 cat >conftest.$ac_ext <<_ACEOF
22926 cat confdefs.h >>conftest.$ac_ext
22927 cat >>conftest.$ac_ext <<_ACEOF
22928 /* end confdefs.h. */
22929 $ac_includes_default
22933 static struct stat ac_aggr;
22934 if (ac_aggr.st_blocks)
22940 rm -f conftest.$ac_objext
22941 if { (ac_try="$ac_compile"
22942 case "(($ac_try" in
22943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22944 *) ac_try_echo=$ac_try;;
22946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22947 (eval "$ac_compile") 2>conftest.er1
22949 grep -v '^ *+' conftest.er1 >conftest.err
22951 cat conftest.err >&5
22952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22953 (exit $ac_status); } &&
22954 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22955 { (case "(($ac_try" in
22956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22957 *) ac_try_echo=$ac_try;;
22959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22960 (eval "$ac_try") 2>&5
22962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22963 (exit $ac_status); }; } &&
22964 { ac_try='test -s conftest.$ac_objext'
22965 { (case "(($ac_try" in
22966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22967 *) ac_try_echo=$ac_try;;
22969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22970 (eval "$ac_try") 2>&5
22972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22973 (exit $ac_status); }; }; then
22974 ac_cv_member_struct_stat_st_blocks=yes
22976 echo "$as_me: failed program was:" >&5
22977 sed 's/^/| /' conftest.$ac_ext >&5
22979 cat >conftest.$ac_ext <<_ACEOF
22982 cat confdefs.h >>conftest.$ac_ext
22983 cat >>conftest.$ac_ext <<_ACEOF
22984 /* end confdefs.h. */
22985 $ac_includes_default
22989 static struct stat ac_aggr;
22990 if (sizeof ac_aggr.st_blocks)
22996 rm -f conftest.$ac_objext
22997 if { (ac_try="$ac_compile"
22998 case "(($ac_try" in
22999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23000 *) ac_try_echo=$ac_try;;
23002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23003 (eval "$ac_compile") 2>conftest.er1
23005 grep -v '^ *+' conftest.er1 >conftest.err
23007 cat conftest.err >&5
23008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23009 (exit $ac_status); } &&
23010 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23011 { (case "(($ac_try" in
23012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23013 *) ac_try_echo=$ac_try;;
23015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23016 (eval "$ac_try") 2>&5
23018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23019 (exit $ac_status); }; } &&
23020 { ac_try='test -s conftest.$ac_objext'
23021 { (case "(($ac_try" in
23022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23023 *) ac_try_echo=$ac_try;;
23025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23026 (eval "$ac_try") 2>&5
23028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23029 (exit $ac_status); }; }; then
23030 ac_cv_member_struct_stat_st_blocks=yes
23032 echo "$as_me: failed program was:" >&5
23033 sed 's/^/| /' conftest.$ac_ext >&5
23035 ac_cv_member_struct_stat_st_blocks=no
23038 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23041 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23043 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
23044 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
23045 if test $ac_cv_member_struct_stat_st_blocks = yes; then
23047 cat >>confdefs.h <<_ACEOF
23048 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
23052 cat >>confdefs.h <<\_ACEOF
23053 #define HAVE_ST_BLOCKS 1
23057 case " $LIBOBJS " in
23058 *" fileblocks.$ac_objext "* ) ;;
23059 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
23066 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
23067 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
23068 if test "${ac_cv_struct_tm+set}" = set; then
23069 echo $ECHO_N "(cached) $ECHO_C" >&6
23071 cat >conftest.$ac_ext <<_ACEOF
23074 cat confdefs.h >>conftest.$ac_ext
23075 cat >>conftest.$ac_ext <<_ACEOF
23076 /* end confdefs.h. */
23077 #include <sys/types.h>
23083 struct tm *tp; tp->tm_sec;
23088 rm -f conftest.$ac_objext
23089 if { (ac_try="$ac_compile"
23090 case "(($ac_try" in
23091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23092 *) ac_try_echo=$ac_try;;
23094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23095 (eval "$ac_compile") 2>conftest.er1
23097 grep -v '^ *+' conftest.er1 >conftest.err
23099 cat conftest.err >&5
23100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23101 (exit $ac_status); } &&
23102 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23103 { (case "(($ac_try" in
23104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23105 *) ac_try_echo=$ac_try;;
23107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23108 (eval "$ac_try") 2>&5
23110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23111 (exit $ac_status); }; } &&
23112 { ac_try='test -s conftest.$ac_objext'
23113 { (case "(($ac_try" in
23114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23115 *) ac_try_echo=$ac_try;;
23117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23118 (eval "$ac_try") 2>&5
23120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23121 (exit $ac_status); }; }; then
23122 ac_cv_struct_tm=time.h
23124 echo "$as_me: failed program was:" >&5
23125 sed 's/^/| /' conftest.$ac_ext >&5
23127 ac_cv_struct_tm=sys/time.h
23130 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23132 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
23133 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
23134 if test $ac_cv_struct_tm = sys/time.h; then
23136 cat >>confdefs.h <<\_ACEOF
23137 #define TM_IN_SYS_TIME 1
23142 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
23143 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
23144 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
23145 echo $ECHO_N "(cached) $ECHO_C" >&6
23147 cat >conftest.$ac_ext <<_ACEOF
23150 cat confdefs.h >>conftest.$ac_ext
23151 cat >>conftest.$ac_ext <<_ACEOF
23152 /* end confdefs.h. */
23153 #include <sys/types.h>
23154 #include <$ac_cv_struct_tm>
23160 static struct tm ac_aggr;
23161 if (ac_aggr.tm_zone)
23167 rm -f conftest.$ac_objext
23168 if { (ac_try="$ac_compile"
23169 case "(($ac_try" in
23170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23171 *) ac_try_echo=$ac_try;;
23173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23174 (eval "$ac_compile") 2>conftest.er1
23176 grep -v '^ *+' conftest.er1 >conftest.err
23178 cat conftest.err >&5
23179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23180 (exit $ac_status); } &&
23181 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23182 { (case "(($ac_try" in
23183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23184 *) ac_try_echo=$ac_try;;
23186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23187 (eval "$ac_try") 2>&5
23189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23190 (exit $ac_status); }; } &&
23191 { ac_try='test -s conftest.$ac_objext'
23192 { (case "(($ac_try" in
23193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23194 *) ac_try_echo=$ac_try;;
23196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23197 (eval "$ac_try") 2>&5
23199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23200 (exit $ac_status); }; }; then
23201 ac_cv_member_struct_tm_tm_zone=yes
23203 echo "$as_me: failed program was:" >&5
23204 sed 's/^/| /' conftest.$ac_ext >&5
23206 cat >conftest.$ac_ext <<_ACEOF
23209 cat confdefs.h >>conftest.$ac_ext
23210 cat >>conftest.$ac_ext <<_ACEOF
23211 /* end confdefs.h. */
23212 #include <sys/types.h>
23213 #include <$ac_cv_struct_tm>
23219 static struct tm ac_aggr;
23220 if (sizeof ac_aggr.tm_zone)
23226 rm -f conftest.$ac_objext
23227 if { (ac_try="$ac_compile"
23228 case "(($ac_try" in
23229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23230 *) ac_try_echo=$ac_try;;
23232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23233 (eval "$ac_compile") 2>conftest.er1
23235 grep -v '^ *+' conftest.er1 >conftest.err
23237 cat conftest.err >&5
23238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23239 (exit $ac_status); } &&
23240 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23241 { (case "(($ac_try" in
23242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23243 *) ac_try_echo=$ac_try;;
23245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23246 (eval "$ac_try") 2>&5
23248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23249 (exit $ac_status); }; } &&
23250 { ac_try='test -s conftest.$ac_objext'
23251 { (case "(($ac_try" in
23252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23253 *) ac_try_echo=$ac_try;;
23255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23256 (eval "$ac_try") 2>&5
23258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23259 (exit $ac_status); }; }; then
23260 ac_cv_member_struct_tm_tm_zone=yes
23262 echo "$as_me: failed program was:" >&5
23263 sed 's/^/| /' conftest.$ac_ext >&5
23265 ac_cv_member_struct_tm_tm_zone=no
23268 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23271 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23273 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
23274 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
23275 if test $ac_cv_member_struct_tm_tm_zone = yes; then
23277 cat >>confdefs.h <<_ACEOF
23278 #define HAVE_STRUCT_TM_TM_ZONE 1
23284 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
23286 cat >>confdefs.h <<\_ACEOF
23287 #define HAVE_TM_ZONE 1
23291 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
23292 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
23293 if test "${ac_cv_have_decl_tzname+set}" = set; then
23294 echo $ECHO_N "(cached) $ECHO_C" >&6
23296 cat >conftest.$ac_ext <<_ACEOF
23299 cat confdefs.h >>conftest.$ac_ext
23300 cat >>conftest.$ac_ext <<_ACEOF
23301 /* end confdefs.h. */
23308 char *p = (char *) tzname;
23316 rm -f conftest.$ac_objext
23317 if { (ac_try="$ac_compile"
23318 case "(($ac_try" in
23319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23320 *) ac_try_echo=$ac_try;;
23322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23323 (eval "$ac_compile") 2>conftest.er1
23325 grep -v '^ *+' conftest.er1 >conftest.err
23327 cat conftest.err >&5
23328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23329 (exit $ac_status); } &&
23330 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23331 { (case "(($ac_try" in
23332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23333 *) ac_try_echo=$ac_try;;
23335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23336 (eval "$ac_try") 2>&5
23338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23339 (exit $ac_status); }; } &&
23340 { ac_try='test -s conftest.$ac_objext'
23341 { (case "(($ac_try" in
23342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23343 *) ac_try_echo=$ac_try;;
23345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23346 (eval "$ac_try") 2>&5
23348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23349 (exit $ac_status); }; }; then
23350 ac_cv_have_decl_tzname=yes
23352 echo "$as_me: failed program was:" >&5
23353 sed 's/^/| /' conftest.$ac_ext >&5
23355 ac_cv_have_decl_tzname=no
23358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23360 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
23361 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
23362 if test $ac_cv_have_decl_tzname = yes; then
23364 cat >>confdefs.h <<_ACEOF
23365 #define HAVE_DECL_TZNAME 1
23370 cat >>confdefs.h <<_ACEOF
23371 #define HAVE_DECL_TZNAME 0
23378 { echo "$as_me:$LINENO: checking for tzname" >&5
23379 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
23380 if test "${ac_cv_var_tzname+set}" = set; then
23381 echo $ECHO_N "(cached) $ECHO_C" >&6
23383 cat >conftest.$ac_ext <<_ACEOF
23386 cat confdefs.h >>conftest.$ac_ext
23387 cat >>conftest.$ac_ext <<_ACEOF
23388 /* end confdefs.h. */
23390 #if !HAVE_DECL_TZNAME
23391 extern char *tzname[];
23397 return tzname[0][0];
23402 rm -f conftest.$ac_objext conftest$ac_exeext
23403 if { (ac_try="$ac_link"
23404 case "(($ac_try" in
23405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23406 *) ac_try_echo=$ac_try;;
23408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23409 (eval "$ac_link") 2>conftest.er1
23411 grep -v '^ *+' conftest.er1 >conftest.err
23413 cat conftest.err >&5
23414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23415 (exit $ac_status); } &&
23416 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23417 { (case "(($ac_try" in
23418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23419 *) ac_try_echo=$ac_try;;
23421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23422 (eval "$ac_try") 2>&5
23424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23425 (exit $ac_status); }; } &&
23426 { ac_try='test -s conftest$ac_exeext'
23427 { (case "(($ac_try" in
23428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23429 *) ac_try_echo=$ac_try;;
23431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23432 (eval "$ac_try") 2>&5
23434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23435 (exit $ac_status); }; }; then
23436 ac_cv_var_tzname=yes
23438 echo "$as_me: failed program was:" >&5
23439 sed 's/^/| /' conftest.$ac_ext >&5
23441 ac_cv_var_tzname=no
23444 rm -f core conftest.err conftest.$ac_objext \
23445 conftest$ac_exeext conftest.$ac_ext
23447 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
23448 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
23449 if test $ac_cv_var_tzname = yes; then
23451 cat >>confdefs.h <<\_ACEOF
23452 #define HAVE_TZNAME 1
23459 { echo "$as_me:$LINENO: checking for utime.h" >&5
23460 echo $ECHO_N "checking for utime.h... $ECHO_C" >&6; }
23461 if test "${ba_cv_header_utime_h+set}" = set; then
23462 echo $ECHO_N "(cached) $ECHO_C" >&6
23464 cat >conftest.$ac_ext <<_ACEOF
23467 cat confdefs.h >>conftest.$ac_ext
23468 cat >>conftest.$ac_ext <<_ACEOF
23469 /* end confdefs.h. */
23471 #include <sys/types.h>
23481 rm -f conftest.$ac_objext
23482 if { (ac_try="$ac_compile"
23483 case "(($ac_try" in
23484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23485 *) ac_try_echo=$ac_try;;
23487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23488 (eval "$ac_compile") 2>conftest.er1
23490 grep -v '^ *+' conftest.er1 >conftest.err
23492 cat conftest.err >&5
23493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23494 (exit $ac_status); } &&
23495 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23496 { (case "(($ac_try" in
23497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23498 *) ac_try_echo=$ac_try;;
23500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23501 (eval "$ac_try") 2>&5
23503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23504 (exit $ac_status); }; } &&
23505 { ac_try='test -s conftest.$ac_objext'
23506 { (case "(($ac_try" in
23507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23508 *) ac_try_echo=$ac_try;;
23510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23511 (eval "$ac_try") 2>&5
23513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23514 (exit $ac_status); }; }; then
23515 ba_cv_header_utime_h=yes
23517 echo "$as_me: failed program was:" >&5
23518 sed 's/^/| /' conftest.$ac_ext >&5
23520 ba_cv_header_utime_h=no
23523 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23525 { echo "$as_me:$LINENO: result: $ba_cv_header_utime_h" >&5
23526 echo "${ECHO_T}$ba_cv_header_utime_h" >&6; }
23527 test $ba_cv_header_utime_h = yes && cat >>confdefs.h <<\_ACEOF
23528 #define HAVE_UTIME_H 1
23532 { echo "$as_me:$LINENO: checking for socklen_t" >&5
23533 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
23534 if test "${ba_cv_header_socklen_t+set}" = set; then
23535 echo $ECHO_N "(cached) $ECHO_C" >&6
23537 cat >conftest.$ac_ext <<_ACEOF
23540 cat confdefs.h >>conftest.$ac_ext
23541 cat >>conftest.$ac_ext <<_ACEOF
23542 /* end confdefs.h. */
23544 #include <sys/types.h>
23545 #include <sys/socket.h>
23554 rm -f conftest.$ac_objext
23555 if { (ac_try="$ac_compile"
23556 case "(($ac_try" in
23557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23558 *) ac_try_echo=$ac_try;;
23560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23561 (eval "$ac_compile") 2>conftest.er1
23563 grep -v '^ *+' conftest.er1 >conftest.err
23565 cat conftest.err >&5
23566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23567 (exit $ac_status); } &&
23568 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23569 { (case "(($ac_try" in
23570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23571 *) ac_try_echo=$ac_try;;
23573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23574 (eval "$ac_try") 2>&5
23576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23577 (exit $ac_status); }; } &&
23578 { ac_try='test -s conftest.$ac_objext'
23579 { (case "(($ac_try" in
23580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23581 *) ac_try_echo=$ac_try;;
23583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23584 (eval "$ac_try") 2>&5
23586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23587 (exit $ac_status); }; }; then
23588 ba_cv_header_socklen_t=yes
23590 echo "$as_me: failed program was:" >&5
23591 sed 's/^/| /' conftest.$ac_ext >&5
23593 ba_cv_header_socklen_t=no
23596 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23598 { echo "$as_me:$LINENO: result: $ba_cv_header_socklen_t" >&5
23599 echo "${ECHO_T}$ba_cv_header_socklen_t" >&6; }
23600 test $ba_cv_header_socklen_t = yes && cat >>confdefs.h <<\_ACEOF
23601 #define HAVE_SOCKLEN_T 1
23605 { echo "$as_me:$LINENO: checking for bigendian" >&5
23606 echo $ECHO_N "checking for bigendian... $ECHO_C" >&6; }
23607 if test "${ba_cv_bigendian+set}" = set; then
23608 echo $ECHO_N "(cached) $ECHO_C" >&6
23610 if test "$cross_compiling" = yes; then
23613 cat >conftest.$ac_ext <<_ACEOF
23616 cat confdefs.h >>conftest.$ac_ext
23617 cat >>conftest.$ac_ext <<_ACEOF
23618 /* end confdefs.h. */
23619 main(){long a=1L; char *p=(char *)&a; exit(*p);}
23621 rm -f conftest$ac_exeext
23622 if { (ac_try="$ac_link"
23623 case "(($ac_try" in
23624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23625 *) ac_try_echo=$ac_try;;
23627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23628 (eval "$ac_link") 2>&5
23630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23631 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23632 { (case "(($ac_try" in
23633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23634 *) ac_try_echo=$ac_try;;
23636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23637 (eval "$ac_try") 2>&5
23639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23640 (exit $ac_status); }; }; then
23641 ba_cv_bigendian=yes
23643 echo "$as_me: program exited with status $ac_status" >&5
23644 echo "$as_me: failed program was:" >&5
23645 sed 's/^/| /' conftest.$ac_ext >&5
23647 ( exit $ac_status )
23650 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23655 { echo "$as_me:$LINENO: result: $ba_cv_bigendian" >&5
23656 echo "${ECHO_T}$ba_cv_bigendian" >&6; }
23657 test $ba_cv_bigendian = yes && cat >>confdefs.h <<\_ACEOF
23658 #define HAVE_BIGENDIAN 1
23663 ac_cpp='$CXXCPP $CPPFLAGS'
23664 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23665 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23666 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23669 { echo "$as_me:$LINENO: checking for typeof" >&5
23670 echo $ECHO_N "checking for typeof... $ECHO_C" >&6; }
23671 if test "${ba_cv_have_typeof+set}" = set; then
23672 echo $ECHO_N "(cached) $ECHO_C" >&6
23674 if test "$cross_compiling" = yes; then
23675 ba_cv_have_typeof=no
23677 cat >conftest.$ac_ext <<_ACEOF
23680 cat confdefs.h >>conftest.$ac_ext
23681 cat >>conftest.$ac_ext <<_ACEOF
23682 /* end confdefs.h. */
23683 main(){char *a = 0; a = (typeof a)a;}
23685 rm -f conftest$ac_exeext
23686 if { (ac_try="$ac_link"
23687 case "(($ac_try" in
23688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23689 *) ac_try_echo=$ac_try;;
23691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23692 (eval "$ac_link") 2>&5
23694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23695 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23696 { (case "(($ac_try" in
23697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23698 *) ac_try_echo=$ac_try;;
23700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23701 (eval "$ac_try") 2>&5
23703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23704 (exit $ac_status); }; }; then
23705 ba_cv_have_typeof=yes
23707 echo "$as_me: program exited with status $ac_status" >&5
23708 echo "$as_me: failed program was:" >&5
23709 sed 's/^/| /' conftest.$ac_ext >&5
23711 ( exit $ac_status )
23712 ba_cv_have_typeof=no
23714 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23719 { echo "$as_me:$LINENO: result: $ba_cv_have_typeof" >&5
23720 echo "${ECHO_T}$ba_cv_have_typeof" >&6; }
23721 test $ba_cv_have_typeof = yes &&
23722 cat >>confdefs.h <<\_ACEOF
23723 #define HAVE_TYPEOF 1
23727 ac_cpp='$CPP $CPPFLAGS'
23728 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23729 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23730 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23733 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
23734 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
23735 if test "${ac_cv_c_const+set}" = set; then
23736 echo $ECHO_N "(cached) $ECHO_C" >&6
23738 cat >conftest.$ac_ext <<_ACEOF
23741 cat confdefs.h >>conftest.$ac_ext
23742 cat >>conftest.$ac_ext <<_ACEOF
23743 /* end confdefs.h. */
23748 /* FIXME: Include the comments suggested by Paul. */
23749 #ifndef __cplusplus
23750 /* Ultrix mips cc rejects this. */
23751 typedef int charset[2];
23753 /* SunOS 4.1.1 cc rejects this. */
23754 char const *const *ccp;
23756 /* NEC SVR4.0.2 mips cc rejects this. */
23757 struct point {int x, y;};
23758 static struct point const zero = {0,0};
23759 /* AIX XL C 1.02.0.0 rejects this.
23760 It does not let you subtract one const X* pointer from another in
23761 an arm of an if-expression whose if-part is not a constant
23763 const char *g = "string";
23764 ccp = &g + (g ? g-g : 0);
23765 /* HPUX 7.0 cc rejects these. */
23768 ccp = (char const *const *) p;
23769 { /* SCO 3.2v4 cc rejects this. */
23771 char const *s = 0 ? (char *) 0 : (char const *) 0;
23776 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
23777 int x[] = {25, 17};
23778 const int *foo = &x[0];
23781 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
23782 typedef const int *iptr;
23786 { /* AIX XL C 1.02.0.0 rejects this saying
23787 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
23788 struct s { int j; const int *ap[3]; };
23789 struct s *b; b->j = 5;
23791 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
23792 const int foo = 10;
23793 if (!foo) return 0;
23795 return !x[0] && !zero.x;
23802 rm -f conftest.$ac_objext
23803 if { (ac_try="$ac_compile"
23804 case "(($ac_try" in
23805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23806 *) ac_try_echo=$ac_try;;
23808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23809 (eval "$ac_compile") 2>conftest.er1
23811 grep -v '^ *+' conftest.er1 >conftest.err
23813 cat conftest.err >&5
23814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23815 (exit $ac_status); } &&
23816 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23817 { (case "(($ac_try" in
23818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23819 *) ac_try_echo=$ac_try;;
23821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23822 (eval "$ac_try") 2>&5
23824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23825 (exit $ac_status); }; } &&
23826 { ac_try='test -s conftest.$ac_objext'
23827 { (case "(($ac_try" in
23828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23829 *) ac_try_echo=$ac_try;;
23831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23832 (eval "$ac_try") 2>&5
23834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23835 (exit $ac_status); }; }; then
23838 echo "$as_me: failed program was:" >&5
23839 sed 's/^/| /' conftest.$ac_ext >&5
23844 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23846 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
23847 echo "${ECHO_T}$ac_cv_c_const" >&6; }
23848 if test $ac_cv_c_const = no; then
23850 cat >>confdefs.h <<\_ACEOF
23858 { echo "$as_me:$LINENO: checking how to get filesystem type" >&5
23859 echo $ECHO_N "checking how to get filesystem type... $ECHO_C" >&6; }
23861 # The order of these tests is important.
23862 cat >conftest.$ac_ext <<_ACEOF
23865 cat confdefs.h >>conftest.$ac_ext
23866 cat >>conftest.$ac_ext <<_ACEOF
23867 /* end confdefs.h. */
23868 #include <sys/statvfs.h>
23869 #include <sys/fstyp.h>
23871 if { (ac_try="$ac_cpp conftest.$ac_ext"
23872 case "(($ac_try" in
23873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23874 *) ac_try_echo=$ac_try;;
23876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23877 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23879 grep -v '^ *+' conftest.er1 >conftest.err
23881 cat conftest.err >&5
23882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23883 (exit $ac_status); } >/dev/null; then
23884 if test -s conftest.err; then
23885 ac_cpp_err=$ac_c_preproc_warn_flag
23886 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23893 if test -z "$ac_cpp_err"; then
23894 cat >>confdefs.h <<\_ACEOF
23895 #define FSTYPE_STATVFS 1
23899 echo "$as_me: failed program was:" >&5
23900 sed 's/^/| /' conftest.$ac_ext >&5
23905 rm -f conftest.err conftest.$ac_ext
23906 if test $fstype = no; then
23907 cat >conftest.$ac_ext <<_ACEOF
23910 cat confdefs.h >>conftest.$ac_ext
23911 cat >>conftest.$ac_ext <<_ACEOF
23912 /* end confdefs.h. */
23913 #include <sys/statfs.h>
23914 #include <sys/fstyp.h>
23916 if { (ac_try="$ac_cpp conftest.$ac_ext"
23917 case "(($ac_try" in
23918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23919 *) ac_try_echo=$ac_try;;
23921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23922 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23924 grep -v '^ *+' conftest.er1 >conftest.err
23926 cat conftest.err >&5
23927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23928 (exit $ac_status); } >/dev/null; then
23929 if test -s conftest.err; then
23930 ac_cpp_err=$ac_c_preproc_warn_flag
23931 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23938 if test -z "$ac_cpp_err"; then
23939 cat >>confdefs.h <<\_ACEOF
23940 #define FSTYPE_USG_STATFS 1
23944 echo "$as_me: failed program was:" >&5
23945 sed 's/^/| /' conftest.$ac_ext >&5
23950 rm -f conftest.err conftest.$ac_ext
23952 if test $fstype = no; then
23953 cat >conftest.$ac_ext <<_ACEOF
23956 cat confdefs.h >>conftest.$ac_ext
23957 cat >>conftest.$ac_ext <<_ACEOF
23958 /* end confdefs.h. */
23959 #include <sys/statfs.h>
23960 #include <sys/vmount.h>
23962 if { (ac_try="$ac_cpp conftest.$ac_ext"
23963 case "(($ac_try" in
23964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23965 *) ac_try_echo=$ac_try;;
23967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23968 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23970 grep -v '^ *+' conftest.er1 >conftest.err
23972 cat conftest.err >&5
23973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23974 (exit $ac_status); } >/dev/null; then
23975 if test -s conftest.err; then
23976 ac_cpp_err=$ac_c_preproc_warn_flag
23977 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23984 if test -z "$ac_cpp_err"; then
23985 cat >>confdefs.h <<\_ACEOF
23986 #define FSTYPE_AIX_STATFS 1
23990 echo "$as_me: failed program was:" >&5
23991 sed 's/^/| /' conftest.$ac_ext >&5
23996 rm -f conftest.err conftest.$ac_ext
23998 if test $fstype = no; then
23999 cat >conftest.$ac_ext <<_ACEOF
24002 cat confdefs.h >>conftest.$ac_ext
24003 cat >>conftest.$ac_ext <<_ACEOF
24004 /* end confdefs.h. */
24005 #include <mntent.h>
24007 if { (ac_try="$ac_cpp conftest.$ac_ext"
24008 case "(($ac_try" in
24009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24010 *) ac_try_echo=$ac_try;;
24012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24013 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24015 grep -v '^ *+' conftest.er1 >conftest.err
24017 cat conftest.err >&5
24018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24019 (exit $ac_status); } >/dev/null; then
24020 if test -s conftest.err; then
24021 ac_cpp_err=$ac_c_preproc_warn_flag
24022 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
24029 if test -z "$ac_cpp_err"; then
24030 cat >>confdefs.h <<\_ACEOF
24031 #define FSTYPE_MNTENT 1
24035 echo "$as_me: failed program was:" >&5
24036 sed 's/^/| /' conftest.$ac_ext >&5
24041 rm -f conftest.err conftest.$ac_ext
24043 if test $fstype = no; then
24044 cat >conftest.$ac_ext <<_ACEOF
24047 cat confdefs.h >>conftest.$ac_ext
24048 cat >>conftest.$ac_ext <<_ACEOF
24049 /* end confdefs.h. */
24050 #include <sys/mount.h>
24053 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24054 $EGREP "f_type;" >/dev/null 2>&1; then
24055 cat >>confdefs.h <<\_ACEOF
24056 #define FSTYPE_STATFS 1
24063 if test $fstype = no; then
24064 cat >conftest.$ac_ext <<_ACEOF
24067 cat confdefs.h >>conftest.$ac_ext
24068 cat >>conftest.$ac_ext <<_ACEOF
24069 /* end confdefs.h. */
24070 #include <sys/mount.h>
24071 #include <sys/fs_types.h>
24073 if { (ac_try="$ac_cpp conftest.$ac_ext"
24074 case "(($ac_try" in
24075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24076 *) ac_try_echo=$ac_try;;
24078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24079 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24081 grep -v '^ *+' conftest.er1 >conftest.err
24083 cat conftest.err >&5
24084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24085 (exit $ac_status); } >/dev/null; then
24086 if test -s conftest.err; then
24087 ac_cpp_err=$ac_c_preproc_warn_flag
24088 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
24095 if test -z "$ac_cpp_err"; then
24096 cat >>confdefs.h <<\_ACEOF
24097 #define FSTYPE_GETMNT 1
24101 echo "$as_me: failed program was:" >&5
24102 sed 's/^/| /' conftest.$ac_ext >&5
24107 rm -f conftest.err conftest.$ac_ext
24109 { echo "$as_me:$LINENO: result: $fstype" >&5
24110 echo "${ECHO_T}$fstype" >&6; }
24112 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
24113 { echo "$as_me:$LINENO: checking for sys/statvfs.h" >&5
24114 echo $ECHO_N "checking for sys/statvfs.h... $ECHO_C" >&6; }
24115 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
24116 echo $ECHO_N "(cached) $ECHO_C" >&6
24118 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_statvfs_h" >&5
24119 echo "${ECHO_T}$ac_cv_header_sys_statvfs_h" >&6; }
24121 # Is the header compilable?
24122 { echo "$as_me:$LINENO: checking sys/statvfs.h usability" >&5
24123 echo $ECHO_N "checking sys/statvfs.h usability... $ECHO_C" >&6; }
24124 cat >conftest.$ac_ext <<_ACEOF
24127 cat confdefs.h >>conftest.$ac_ext
24128 cat >>conftest.$ac_ext <<_ACEOF
24129 /* end confdefs.h. */
24130 $ac_includes_default
24131 #include <sys/statvfs.h>
24133 rm -f conftest.$ac_objext
24134 if { (ac_try="$ac_compile"
24135 case "(($ac_try" in
24136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24137 *) ac_try_echo=$ac_try;;
24139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24140 (eval "$ac_compile") 2>conftest.er1
24142 grep -v '^ *+' conftest.er1 >conftest.err
24144 cat conftest.err >&5
24145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24146 (exit $ac_status); } &&
24147 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24148 { (case "(($ac_try" in
24149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24150 *) ac_try_echo=$ac_try;;
24152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24153 (eval "$ac_try") 2>&5
24155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24156 (exit $ac_status); }; } &&
24157 { ac_try='test -s conftest.$ac_objext'
24158 { (case "(($ac_try" in
24159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24160 *) ac_try_echo=$ac_try;;
24162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24163 (eval "$ac_try") 2>&5
24165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24166 (exit $ac_status); }; }; then
24167 ac_header_compiler=yes
24169 echo "$as_me: failed program was:" >&5
24170 sed 's/^/| /' conftest.$ac_ext >&5
24172 ac_header_compiler=no
24175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24176 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24177 echo "${ECHO_T}$ac_header_compiler" >&6; }
24179 # Is the header present?
24180 { echo "$as_me:$LINENO: checking sys/statvfs.h presence" >&5
24181 echo $ECHO_N "checking sys/statvfs.h presence... $ECHO_C" >&6; }
24182 cat >conftest.$ac_ext <<_ACEOF
24185 cat confdefs.h >>conftest.$ac_ext
24186 cat >>conftest.$ac_ext <<_ACEOF
24187 /* end confdefs.h. */
24188 #include <sys/statvfs.h>
24190 if { (ac_try="$ac_cpp conftest.$ac_ext"
24191 case "(($ac_try" in
24192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24193 *) ac_try_echo=$ac_try;;
24195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24196 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24198 grep -v '^ *+' conftest.er1 >conftest.err
24200 cat conftest.err >&5
24201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24202 (exit $ac_status); } >/dev/null; then
24203 if test -s conftest.err; then
24204 ac_cpp_err=$ac_c_preproc_warn_flag
24205 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
24212 if test -z "$ac_cpp_err"; then
24213 ac_header_preproc=yes
24215 echo "$as_me: failed program was:" >&5
24216 sed 's/^/| /' conftest.$ac_ext >&5
24218 ac_header_preproc=no
24221 rm -f conftest.err conftest.$ac_ext
24222 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24223 echo "${ECHO_T}$ac_header_preproc" >&6; }
24225 # So? What about this header?
24226 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24228 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: accepted by the compiler, rejected by the preprocessor!" >&5
24229 echo "$as_me: WARNING: sys/statvfs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24230 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: proceeding with the compiler's result" >&5
24231 echo "$as_me: WARNING: sys/statvfs.h: proceeding with the compiler's result" >&2;}
24232 ac_header_preproc=yes
24235 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: present but cannot be compiled" >&5
24236 echo "$as_me: WARNING: sys/statvfs.h: present but cannot be compiled" >&2;}
24237 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: check for missing prerequisite headers?" >&5
24238 echo "$as_me: WARNING: sys/statvfs.h: check for missing prerequisite headers?" >&2;}
24239 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: see the Autoconf documentation" >&5
24240 echo "$as_me: WARNING: sys/statvfs.h: see the Autoconf documentation" >&2;}
24241 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: section \"Present But Cannot Be Compiled\"" >&5
24242 echo "$as_me: WARNING: sys/statvfs.h: section \"Present But Cannot Be Compiled\"" >&2;}
24243 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: proceeding with the preprocessor's result" >&5
24244 echo "$as_me: WARNING: sys/statvfs.h: proceeding with the preprocessor's result" >&2;}
24245 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: in the future, the compiler will take precedence" >&5
24246 echo "$as_me: WARNING: sys/statvfs.h: in the future, the compiler will take precedence" >&2;}
24250 { echo "$as_me:$LINENO: checking for sys/statvfs.h" >&5
24251 echo $ECHO_N "checking for sys/statvfs.h... $ECHO_C" >&6; }
24252 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
24253 echo $ECHO_N "(cached) $ECHO_C" >&6
24255 ac_cv_header_sys_statvfs_h=$ac_header_preproc
24257 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_statvfs_h" >&5
24258 echo "${ECHO_T}$ac_cv_header_sys_statvfs_h" >&6; }
24261 if test $ac_cv_header_sys_statvfs_h = yes; then
24263 cat >>confdefs.h <<\_ACEOF
24264 #define HAVE_SYS_STATVFS_H 1
24271 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
24272 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
24273 if test "${ac_cv_type_signal+set}" = set; then
24274 echo $ECHO_N "(cached) $ECHO_C" >&6
24276 cat >conftest.$ac_ext <<_ACEOF
24279 cat confdefs.h >>conftest.$ac_ext
24280 cat >>conftest.$ac_ext <<_ACEOF
24281 /* end confdefs.h. */
24282 #include <sys/types.h>
24283 #include <signal.h>
24288 return *(signal (0, 0)) (0) == 1;
24293 rm -f conftest.$ac_objext
24294 if { (ac_try="$ac_compile"
24295 case "(($ac_try" in
24296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24297 *) ac_try_echo=$ac_try;;
24299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24300 (eval "$ac_compile") 2>conftest.er1
24302 grep -v '^ *+' conftest.er1 >conftest.err
24304 cat conftest.err >&5
24305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24306 (exit $ac_status); } &&
24307 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24308 { (case "(($ac_try" in
24309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24310 *) ac_try_echo=$ac_try;;
24312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24313 (eval "$ac_try") 2>&5
24315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24316 (exit $ac_status); }; } &&
24317 { ac_try='test -s conftest.$ac_objext'
24318 { (case "(($ac_try" in
24319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24320 *) ac_try_echo=$ac_try;;
24322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24323 (eval "$ac_try") 2>&5
24325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24326 (exit $ac_status); }; }; then
24327 ac_cv_type_signal=int
24329 echo "$as_me: failed program was:" >&5
24330 sed 's/^/| /' conftest.$ac_ext >&5
24332 ac_cv_type_signal=void
24335 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24337 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
24338 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
24340 cat >>confdefs.h <<_ACEOF
24341 #define RETSIGTYPE $ac_cv_type_signal
24346 { echo "$as_me:$LINENO: checking for type of signal functions" >&5
24347 echo $ECHO_N "checking for type of signal functions... $ECHO_C" >&6; }
24348 if test "${bash_cv_signal_vintage+set}" = set; then
24349 echo $ECHO_N "(cached) $ECHO_C" >&6
24352 cat >conftest.$ac_ext <<_ACEOF
24355 cat confdefs.h >>conftest.$ac_ext
24356 cat >>conftest.$ac_ext <<_ACEOF
24357 /* end confdefs.h. */
24358 #include <signal.h>
24364 struct sigaction sa;
24365 sigemptyset(&ss); sigsuspend(&ss);
24366 sigaction(SIGINT, &sa, (struct sigaction *) 0);
24367 sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
24373 rm -f conftest.$ac_objext conftest$ac_exeext
24374 if { (ac_try="$ac_link"
24375 case "(($ac_try" in
24376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24377 *) ac_try_echo=$ac_try;;
24379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24380 (eval "$ac_link") 2>conftest.er1
24382 grep -v '^ *+' conftest.er1 >conftest.err
24384 cat conftest.err >&5
24385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24386 (exit $ac_status); } &&
24387 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24388 { (case "(($ac_try" in
24389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24390 *) ac_try_echo=$ac_try;;
24392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24393 (eval "$ac_try") 2>&5
24395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24396 (exit $ac_status); }; } &&
24397 { ac_try='test -s conftest$ac_exeext'
24398 { (case "(($ac_try" in
24399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24400 *) ac_try_echo=$ac_try;;
24402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24403 (eval "$ac_try") 2>&5
24405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24406 (exit $ac_status); }; }; then
24407 bash_cv_signal_vintage="posix"
24409 echo "$as_me: failed program was:" >&5
24410 sed 's/^/| /' conftest.$ac_ext >&5
24413 cat >conftest.$ac_ext <<_ACEOF
24416 cat confdefs.h >>conftest.$ac_ext
24417 cat >>conftest.$ac_ext <<_ACEOF
24418 /* end confdefs.h. */
24419 #include <signal.h>
24424 int mask = sigmask(SIGINT);
24425 sigsetmask(mask); sigblock(mask); sigpause(mask);
24431 rm -f conftest.$ac_objext conftest$ac_exeext
24432 if { (ac_try="$ac_link"
24433 case "(($ac_try" in
24434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24435 *) ac_try_echo=$ac_try;;
24437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24438 (eval "$ac_link") 2>conftest.er1
24440 grep -v '^ *+' conftest.er1 >conftest.err
24442 cat conftest.err >&5
24443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24444 (exit $ac_status); } &&
24445 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24446 { (case "(($ac_try" in
24447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24448 *) ac_try_echo=$ac_try;;
24450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24451 (eval "$ac_try") 2>&5
24453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24454 (exit $ac_status); }; } &&
24455 { ac_try='test -s conftest$ac_exeext'
24456 { (case "(($ac_try" in
24457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24458 *) ac_try_echo=$ac_try;;
24460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24461 (eval "$ac_try") 2>&5
24463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24464 (exit $ac_status); }; }; then
24465 bash_cv_signal_vintage="4.2bsd"
24467 echo "$as_me: failed program was:" >&5
24468 sed 's/^/| /' conftest.$ac_ext >&5
24471 cat >conftest.$ac_ext <<_ACEOF
24474 cat confdefs.h >>conftest.$ac_ext
24475 cat >>conftest.$ac_ext <<_ACEOF
24476 /* end confdefs.h. */
24478 #include <signal.h>
24479 RETSIGTYPE foo() { }
24484 int mask = sigmask(SIGINT);
24485 sigset(SIGINT, foo); sigrelse(SIGINT);
24486 sighold(SIGINT); sigpause(SIGINT);
24492 rm -f conftest.$ac_objext conftest$ac_exeext
24493 if { (ac_try="$ac_link"
24494 case "(($ac_try" in
24495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24496 *) ac_try_echo=$ac_try;;
24498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24499 (eval "$ac_link") 2>conftest.er1
24501 grep -v '^ *+' conftest.er1 >conftest.err
24503 cat conftest.err >&5
24504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24505 (exit $ac_status); } &&
24506 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24507 { (case "(($ac_try" in
24508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24509 *) ac_try_echo=$ac_try;;
24511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24512 (eval "$ac_try") 2>&5
24514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24515 (exit $ac_status); }; } &&
24516 { ac_try='test -s conftest$ac_exeext'
24517 { (case "(($ac_try" in
24518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24519 *) ac_try_echo=$ac_try;;
24521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24522 (eval "$ac_try") 2>&5
24524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24525 (exit $ac_status); }; }; then
24526 bash_cv_signal_vintage="svr3"
24528 echo "$as_me: failed program was:" >&5
24529 sed 's/^/| /' conftest.$ac_ext >&5
24531 bash_cv_signal_vintage="v7"
24535 rm -f core conftest.err conftest.$ac_objext \
24536 conftest$ac_exeext conftest.$ac_ext
24540 rm -f core conftest.err conftest.$ac_objext \
24541 conftest$ac_exeext conftest.$ac_ext
24545 rm -f core conftest.err conftest.$ac_objext \
24546 conftest$ac_exeext conftest.$ac_ext
24550 { echo "$as_me:$LINENO: result: $bash_cv_signal_vintage" >&5
24551 echo "${ECHO_T}$bash_cv_signal_vintage" >&6; }
24552 if test "$bash_cv_signal_vintage" = "posix"; then
24553 cat >>confdefs.h <<\_ACEOF
24554 #define HAVE_POSIX_SIGNALS 1
24557 elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
24558 cat >>confdefs.h <<\_ACEOF
24559 #define HAVE_BSD_SIGNALS 1
24562 elif test "$bash_cv_signal_vintage" = "svr3"; then
24563 cat >>confdefs.h <<\_ACEOF
24564 #define HAVE_USG_SIGHOLD 1
24569 { echo "$as_me:$LINENO: checking for mode_t" >&5
24570 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
24571 if test "${ac_cv_type_mode_t+set}" = set; then
24572 echo $ECHO_N "(cached) $ECHO_C" >&6
24574 cat >conftest.$ac_ext <<_ACEOF
24577 cat confdefs.h >>conftest.$ac_ext
24578 cat >>conftest.$ac_ext <<_ACEOF
24579 /* end confdefs.h. */
24580 $ac_includes_default
24581 typedef mode_t ac__type_new_;
24585 if ((ac__type_new_ *) 0)
24587 if (sizeof (ac__type_new_))
24593 rm -f conftest.$ac_objext
24594 if { (ac_try="$ac_compile"
24595 case "(($ac_try" in
24596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24597 *) ac_try_echo=$ac_try;;
24599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24600 (eval "$ac_compile") 2>conftest.er1
24602 grep -v '^ *+' conftest.er1 >conftest.err
24604 cat conftest.err >&5
24605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24606 (exit $ac_status); } &&
24607 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24608 { (case "(($ac_try" in
24609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24610 *) ac_try_echo=$ac_try;;
24612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24613 (eval "$ac_try") 2>&5
24615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24616 (exit $ac_status); }; } &&
24617 { ac_try='test -s conftest.$ac_objext'
24618 { (case "(($ac_try" in
24619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24620 *) ac_try_echo=$ac_try;;
24622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24623 (eval "$ac_try") 2>&5
24625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24626 (exit $ac_status); }; }; then
24627 ac_cv_type_mode_t=yes
24629 echo "$as_me: failed program was:" >&5
24630 sed 's/^/| /' conftest.$ac_ext >&5
24632 ac_cv_type_mode_t=no
24635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24637 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
24638 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
24639 if test $ac_cv_type_mode_t = yes; then
24643 cat >>confdefs.h <<_ACEOF
24649 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
24650 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
24651 if test "${ac_cv_type_uid_t+set}" = set; then
24652 echo $ECHO_N "(cached) $ECHO_C" >&6
24654 cat >conftest.$ac_ext <<_ACEOF
24657 cat confdefs.h >>conftest.$ac_ext
24658 cat >>conftest.$ac_ext <<_ACEOF
24659 /* end confdefs.h. */
24660 #include <sys/types.h>
24663 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24664 $EGREP "uid_t" >/dev/null 2>&1; then
24665 ac_cv_type_uid_t=yes
24667 ac_cv_type_uid_t=no
24672 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
24673 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
24674 if test $ac_cv_type_uid_t = no; then
24676 cat >>confdefs.h <<\_ACEOF
24681 cat >>confdefs.h <<\_ACEOF
24687 { echo "$as_me:$LINENO: checking for size_t" >&5
24688 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
24689 if test "${ac_cv_type_size_t+set}" = set; then
24690 echo $ECHO_N "(cached) $ECHO_C" >&6
24692 cat >conftest.$ac_ext <<_ACEOF
24695 cat confdefs.h >>conftest.$ac_ext
24696 cat >>conftest.$ac_ext <<_ACEOF
24697 /* end confdefs.h. */
24698 $ac_includes_default
24699 typedef size_t ac__type_new_;
24703 if ((ac__type_new_ *) 0)
24705 if (sizeof (ac__type_new_))
24711 rm -f conftest.$ac_objext
24712 if { (ac_try="$ac_compile"
24713 case "(($ac_try" in
24714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24715 *) ac_try_echo=$ac_try;;
24717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24718 (eval "$ac_compile") 2>conftest.er1
24720 grep -v '^ *+' conftest.er1 >conftest.err
24722 cat conftest.err >&5
24723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24724 (exit $ac_status); } &&
24725 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24726 { (case "(($ac_try" in
24727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24728 *) ac_try_echo=$ac_try;;
24730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24731 (eval "$ac_try") 2>&5
24733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24734 (exit $ac_status); }; } &&
24735 { ac_try='test -s conftest.$ac_objext'
24736 { (case "(($ac_try" in
24737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24738 *) ac_try_echo=$ac_try;;
24740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24741 (eval "$ac_try") 2>&5
24743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24744 (exit $ac_status); }; }; then
24745 ac_cv_type_size_t=yes
24747 echo "$as_me: failed program was:" >&5
24748 sed 's/^/| /' conftest.$ac_ext >&5
24750 ac_cv_type_size_t=no
24753 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24755 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
24756 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
24757 if test $ac_cv_type_size_t = yes; then
24761 cat >>confdefs.h <<_ACEOF
24762 #define size_t unsigned int
24767 { echo "$as_me:$LINENO: checking for pid_t" >&5
24768 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
24769 if test "${ac_cv_type_pid_t+set}" = set; then
24770 echo $ECHO_N "(cached) $ECHO_C" >&6
24772 cat >conftest.$ac_ext <<_ACEOF
24775 cat confdefs.h >>conftest.$ac_ext
24776 cat >>conftest.$ac_ext <<_ACEOF
24777 /* end confdefs.h. */
24778 $ac_includes_default
24779 typedef pid_t ac__type_new_;
24783 if ((ac__type_new_ *) 0)
24785 if (sizeof (ac__type_new_))
24791 rm -f conftest.$ac_objext
24792 if { (ac_try="$ac_compile"
24793 case "(($ac_try" in
24794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24795 *) ac_try_echo=$ac_try;;
24797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24798 (eval "$ac_compile") 2>conftest.er1
24800 grep -v '^ *+' conftest.er1 >conftest.err
24802 cat conftest.err >&5
24803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24804 (exit $ac_status); } &&
24805 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24806 { (case "(($ac_try" in
24807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24808 *) ac_try_echo=$ac_try;;
24810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24811 (eval "$ac_try") 2>&5
24813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24814 (exit $ac_status); }; } &&
24815 { ac_try='test -s conftest.$ac_objext'
24816 { (case "(($ac_try" in
24817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24818 *) ac_try_echo=$ac_try;;
24820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24821 (eval "$ac_try") 2>&5
24823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24824 (exit $ac_status); }; }; then
24825 ac_cv_type_pid_t=yes
24827 echo "$as_me: failed program was:" >&5
24828 sed 's/^/| /' conftest.$ac_ext >&5
24830 ac_cv_type_pid_t=no
24833 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24835 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
24836 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
24837 if test $ac_cv_type_pid_t = yes; then
24841 cat >>confdefs.h <<_ACEOF
24847 { echo "$as_me:$LINENO: checking for off_t" >&5
24848 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
24849 if test "${ac_cv_type_off_t+set}" = set; then
24850 echo $ECHO_N "(cached) $ECHO_C" >&6
24852 cat >conftest.$ac_ext <<_ACEOF
24855 cat confdefs.h >>conftest.$ac_ext
24856 cat >>conftest.$ac_ext <<_ACEOF
24857 /* end confdefs.h. */
24858 $ac_includes_default
24859 typedef off_t ac__type_new_;
24863 if ((ac__type_new_ *) 0)
24865 if (sizeof (ac__type_new_))
24871 rm -f conftest.$ac_objext
24872 if { (ac_try="$ac_compile"
24873 case "(($ac_try" in
24874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24875 *) ac_try_echo=$ac_try;;
24877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24878 (eval "$ac_compile") 2>conftest.er1
24880 grep -v '^ *+' conftest.er1 >conftest.err
24882 cat conftest.err >&5
24883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24884 (exit $ac_status); } &&
24885 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24886 { (case "(($ac_try" in
24887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24888 *) ac_try_echo=$ac_try;;
24890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24891 (eval "$ac_try") 2>&5
24893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24894 (exit $ac_status); }; } &&
24895 { ac_try='test -s conftest.$ac_objext'
24896 { (case "(($ac_try" in
24897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24898 *) ac_try_echo=$ac_try;;
24900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24901 (eval "$ac_try") 2>&5
24903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24904 (exit $ac_status); }; }; then
24905 ac_cv_type_off_t=yes
24907 echo "$as_me: failed program was:" >&5
24908 sed 's/^/| /' conftest.$ac_ext >&5
24910 ac_cv_type_off_t=no
24913 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24915 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
24916 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
24917 if test $ac_cv_type_off_t = yes; then
24921 cat >>confdefs.h <<_ACEOF
24922 #define off_t long int
24927 { echo "$as_me:$LINENO: checking for ino_t" >&5
24928 echo $ECHO_N "checking for ino_t... $ECHO_C" >&6; }
24929 if test "${ac_cv_type_ino_t+set}" = set; then
24930 echo $ECHO_N "(cached) $ECHO_C" >&6
24932 cat >conftest.$ac_ext <<_ACEOF
24935 cat confdefs.h >>conftest.$ac_ext
24936 cat >>conftest.$ac_ext <<_ACEOF
24937 /* end confdefs.h. */
24938 $ac_includes_default
24939 typedef ino_t ac__type_new_;
24943 if ((ac__type_new_ *) 0)
24945 if (sizeof (ac__type_new_))
24951 rm -f conftest.$ac_objext
24952 if { (ac_try="$ac_compile"
24953 case "(($ac_try" in
24954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24955 *) ac_try_echo=$ac_try;;
24957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24958 (eval "$ac_compile") 2>conftest.er1
24960 grep -v '^ *+' conftest.er1 >conftest.err
24962 cat conftest.err >&5
24963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24964 (exit $ac_status); } &&
24965 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24966 { (case "(($ac_try" in
24967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24968 *) ac_try_echo=$ac_try;;
24970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24971 (eval "$ac_try") 2>&5
24973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24974 (exit $ac_status); }; } &&
24975 { ac_try='test -s conftest.$ac_objext'
24976 { (case "(($ac_try" in
24977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24978 *) ac_try_echo=$ac_try;;
24980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24981 (eval "$ac_try") 2>&5
24983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24984 (exit $ac_status); }; }; then
24985 ac_cv_type_ino_t=yes
24987 echo "$as_me: failed program was:" >&5
24988 sed 's/^/| /' conftest.$ac_ext >&5
24990 ac_cv_type_ino_t=no
24993 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24995 { echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
24996 echo "${ECHO_T}$ac_cv_type_ino_t" >&6; }
24997 if test $ac_cv_type_ino_t = yes; then
25001 cat >>confdefs.h <<_ACEOF
25002 #define ino_t unsigned long
25007 { echo "$as_me:$LINENO: checking for dev_t" >&5
25008 echo $ECHO_N "checking for dev_t... $ECHO_C" >&6; }
25009 if test "${ac_cv_type_dev_t+set}" = set; then
25010 echo $ECHO_N "(cached) $ECHO_C" >&6
25012 cat >conftest.$ac_ext <<_ACEOF
25015 cat confdefs.h >>conftest.$ac_ext
25016 cat >>conftest.$ac_ext <<_ACEOF
25017 /* end confdefs.h. */
25018 $ac_includes_default
25019 typedef dev_t ac__type_new_;
25023 if ((ac__type_new_ *) 0)
25025 if (sizeof (ac__type_new_))
25031 rm -f conftest.$ac_objext
25032 if { (ac_try="$ac_compile"
25033 case "(($ac_try" in
25034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25035 *) ac_try_echo=$ac_try;;
25037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25038 (eval "$ac_compile") 2>conftest.er1
25040 grep -v '^ *+' conftest.er1 >conftest.err
25042 cat conftest.err >&5
25043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25044 (exit $ac_status); } &&
25045 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25046 { (case "(($ac_try" in
25047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25048 *) ac_try_echo=$ac_try;;
25050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25051 (eval "$ac_try") 2>&5
25053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25054 (exit $ac_status); }; } &&
25055 { ac_try='test -s conftest.$ac_objext'
25056 { (case "(($ac_try" in
25057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25058 *) ac_try_echo=$ac_try;;
25060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25061 (eval "$ac_try") 2>&5
25063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25064 (exit $ac_status); }; }; then
25065 ac_cv_type_dev_t=yes
25067 echo "$as_me: failed program was:" >&5
25068 sed 's/^/| /' conftest.$ac_ext >&5
25070 ac_cv_type_dev_t=no
25073 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25075 { echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5
25076 echo "${ECHO_T}$ac_cv_type_dev_t" >&6; }
25077 if test $ac_cv_type_dev_t = yes; then
25081 cat >>confdefs.h <<_ACEOF
25082 #define dev_t unsigned long
25087 { echo "$as_me:$LINENO: checking for daddr_t" >&5
25088 echo $ECHO_N "checking for daddr_t... $ECHO_C" >&6; }
25089 if test "${ac_cv_type_daddr_t+set}" = set; then
25090 echo $ECHO_N "(cached) $ECHO_C" >&6
25092 cat >conftest.$ac_ext <<_ACEOF
25095 cat confdefs.h >>conftest.$ac_ext
25096 cat >>conftest.$ac_ext <<_ACEOF
25097 /* end confdefs.h. */
25098 $ac_includes_default
25099 typedef daddr_t ac__type_new_;
25103 if ((ac__type_new_ *) 0)
25105 if (sizeof (ac__type_new_))
25111 rm -f conftest.$ac_objext
25112 if { (ac_try="$ac_compile"
25113 case "(($ac_try" in
25114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25115 *) ac_try_echo=$ac_try;;
25117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25118 (eval "$ac_compile") 2>conftest.er1
25120 grep -v '^ *+' conftest.er1 >conftest.err
25122 cat conftest.err >&5
25123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25124 (exit $ac_status); } &&
25125 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25126 { (case "(($ac_try" in
25127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25128 *) ac_try_echo=$ac_try;;
25130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25131 (eval "$ac_try") 2>&5
25133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25134 (exit $ac_status); }; } &&
25135 { ac_try='test -s conftest.$ac_objext'
25136 { (case "(($ac_try" in
25137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25138 *) ac_try_echo=$ac_try;;
25140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25141 (eval "$ac_try") 2>&5
25143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25144 (exit $ac_status); }; }; then
25145 ac_cv_type_daddr_t=yes
25147 echo "$as_me: failed program was:" >&5
25148 sed 's/^/| /' conftest.$ac_ext >&5
25150 ac_cv_type_daddr_t=no
25153 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25155 { echo "$as_me:$LINENO: result: $ac_cv_type_daddr_t" >&5
25156 echo "${ECHO_T}$ac_cv_type_daddr_t" >&6; }
25157 if test $ac_cv_type_daddr_t = yes; then
25161 cat >>confdefs.h <<_ACEOF
25162 #define daddr_t long
25167 { echo "$as_me:$LINENO: checking for major_t" >&5
25168 echo $ECHO_N "checking for major_t... $ECHO_C" >&6; }
25169 if test "${ac_cv_type_major_t+set}" = set; then
25170 echo $ECHO_N "(cached) $ECHO_C" >&6
25172 cat >conftest.$ac_ext <<_ACEOF
25175 cat confdefs.h >>conftest.$ac_ext
25176 cat >>conftest.$ac_ext <<_ACEOF
25177 /* end confdefs.h. */
25178 $ac_includes_default
25179 typedef major_t ac__type_new_;
25183 if ((ac__type_new_ *) 0)
25185 if (sizeof (ac__type_new_))
25191 rm -f conftest.$ac_objext
25192 if { (ac_try="$ac_compile"
25193 case "(($ac_try" in
25194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25195 *) ac_try_echo=$ac_try;;
25197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25198 (eval "$ac_compile") 2>conftest.er1
25200 grep -v '^ *+' conftest.er1 >conftest.err
25202 cat conftest.err >&5
25203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25204 (exit $ac_status); } &&
25205 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25206 { (case "(($ac_try" in
25207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25208 *) ac_try_echo=$ac_try;;
25210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25211 (eval "$ac_try") 2>&5
25213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25214 (exit $ac_status); }; } &&
25215 { ac_try='test -s conftest.$ac_objext'
25216 { (case "(($ac_try" in
25217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25218 *) ac_try_echo=$ac_try;;
25220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25221 (eval "$ac_try") 2>&5
25223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25224 (exit $ac_status); }; }; then
25225 ac_cv_type_major_t=yes
25227 echo "$as_me: failed program was:" >&5
25228 sed 's/^/| /' conftest.$ac_ext >&5
25230 ac_cv_type_major_t=no
25233 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25235 { echo "$as_me:$LINENO: result: $ac_cv_type_major_t" >&5
25236 echo "${ECHO_T}$ac_cv_type_major_t" >&6; }
25237 if test $ac_cv_type_major_t = yes; then
25241 cat >>confdefs.h <<_ACEOF
25242 #define major_t int
25247 { echo "$as_me:$LINENO: checking for minor_t" >&5
25248 echo $ECHO_N "checking for minor_t... $ECHO_C" >&6; }
25249 if test "${ac_cv_type_minor_t+set}" = set; then
25250 echo $ECHO_N "(cached) $ECHO_C" >&6
25252 cat >conftest.$ac_ext <<_ACEOF
25255 cat confdefs.h >>conftest.$ac_ext
25256 cat >>conftest.$ac_ext <<_ACEOF
25257 /* end confdefs.h. */
25258 $ac_includes_default
25259 typedef minor_t ac__type_new_;
25263 if ((ac__type_new_ *) 0)
25265 if (sizeof (ac__type_new_))
25271 rm -f conftest.$ac_objext
25272 if { (ac_try="$ac_compile"
25273 case "(($ac_try" in
25274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25275 *) ac_try_echo=$ac_try;;
25277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25278 (eval "$ac_compile") 2>conftest.er1
25280 grep -v '^ *+' conftest.er1 >conftest.err
25282 cat conftest.err >&5
25283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25284 (exit $ac_status); } &&
25285 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25286 { (case "(($ac_try" in
25287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25288 *) ac_try_echo=$ac_try;;
25290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25291 (eval "$ac_try") 2>&5
25293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25294 (exit $ac_status); }; } &&
25295 { ac_try='test -s conftest.$ac_objext'
25296 { (case "(($ac_try" in
25297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25298 *) ac_try_echo=$ac_try;;
25300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25301 (eval "$ac_try") 2>&5
25303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25304 (exit $ac_status); }; }; then
25305 ac_cv_type_minor_t=yes
25307 echo "$as_me: failed program was:" >&5
25308 sed 's/^/| /' conftest.$ac_ext >&5
25310 ac_cv_type_minor_t=no
25313 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25315 { echo "$as_me:$LINENO: result: $ac_cv_type_minor_t" >&5
25316 echo "${ECHO_T}$ac_cv_type_minor_t" >&6; }
25317 if test $ac_cv_type_minor_t = yes; then
25321 cat >>confdefs.h <<_ACEOF
25322 #define minor_t int
25327 { echo "$as_me:$LINENO: checking for ssize_t" >&5
25328 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
25329 if test "${ac_cv_type_ssize_t+set}" = set; then
25330 echo $ECHO_N "(cached) $ECHO_C" >&6
25332 cat >conftest.$ac_ext <<_ACEOF
25335 cat confdefs.h >>conftest.$ac_ext
25336 cat >>conftest.$ac_ext <<_ACEOF
25337 /* end confdefs.h. */
25338 $ac_includes_default
25339 typedef ssize_t ac__type_new_;
25343 if ((ac__type_new_ *) 0)
25345 if (sizeof (ac__type_new_))
25351 rm -f conftest.$ac_objext
25352 if { (ac_try="$ac_compile"
25353 case "(($ac_try" in
25354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25355 *) ac_try_echo=$ac_try;;
25357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25358 (eval "$ac_compile") 2>conftest.er1
25360 grep -v '^ *+' conftest.er1 >conftest.err
25362 cat conftest.err >&5
25363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25364 (exit $ac_status); } &&
25365 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25366 { (case "(($ac_try" in
25367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25368 *) ac_try_echo=$ac_try;;
25370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25371 (eval "$ac_try") 2>&5
25373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25374 (exit $ac_status); }; } &&
25375 { ac_try='test -s conftest.$ac_objext'
25376 { (case "(($ac_try" in
25377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25378 *) ac_try_echo=$ac_try;;
25380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25381 (eval "$ac_try") 2>&5
25383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25384 (exit $ac_status); }; }; then
25385 ac_cv_type_ssize_t=yes
25387 echo "$as_me: failed program was:" >&5
25388 sed 's/^/| /' conftest.$ac_ext >&5
25390 ac_cv_type_ssize_t=no
25393 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25395 { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
25396 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
25397 if test $ac_cv_type_ssize_t = yes; then
25401 cat >>confdefs.h <<_ACEOF
25402 #define ssize_t int
25407 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
25408 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
25409 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
25410 echo $ECHO_N "(cached) $ECHO_C" >&6
25412 cat >conftest.$ac_ext <<_ACEOF
25415 cat confdefs.h >>conftest.$ac_ext
25416 cat >>conftest.$ac_ext <<_ACEOF
25417 /* end confdefs.h. */
25418 $ac_includes_default
25422 static struct stat ac_aggr;
25423 if (ac_aggr.st_blocks)
25429 rm -f conftest.$ac_objext
25430 if { (ac_try="$ac_compile"
25431 case "(($ac_try" in
25432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25433 *) ac_try_echo=$ac_try;;
25435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25436 (eval "$ac_compile") 2>conftest.er1
25438 grep -v '^ *+' conftest.er1 >conftest.err
25440 cat conftest.err >&5
25441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25442 (exit $ac_status); } &&
25443 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25444 { (case "(($ac_try" in
25445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25446 *) ac_try_echo=$ac_try;;
25448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25449 (eval "$ac_try") 2>&5
25451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25452 (exit $ac_status); }; } &&
25453 { ac_try='test -s conftest.$ac_objext'
25454 { (case "(($ac_try" in
25455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25456 *) ac_try_echo=$ac_try;;
25458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25459 (eval "$ac_try") 2>&5
25461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25462 (exit $ac_status); }; }; then
25463 ac_cv_member_struct_stat_st_blocks=yes
25465 echo "$as_me: failed program was:" >&5
25466 sed 's/^/| /' conftest.$ac_ext >&5
25468 cat >conftest.$ac_ext <<_ACEOF
25471 cat confdefs.h >>conftest.$ac_ext
25472 cat >>conftest.$ac_ext <<_ACEOF
25473 /* end confdefs.h. */
25474 $ac_includes_default
25478 static struct stat ac_aggr;
25479 if (sizeof ac_aggr.st_blocks)
25485 rm -f conftest.$ac_objext
25486 if { (ac_try="$ac_compile"
25487 case "(($ac_try" in
25488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25489 *) ac_try_echo=$ac_try;;
25491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25492 (eval "$ac_compile") 2>conftest.er1
25494 grep -v '^ *+' conftest.er1 >conftest.err
25496 cat conftest.err >&5
25497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25498 (exit $ac_status); } &&
25499 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25500 { (case "(($ac_try" in
25501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25502 *) ac_try_echo=$ac_try;;
25504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25505 (eval "$ac_try") 2>&5
25507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25508 (exit $ac_status); }; } &&
25509 { ac_try='test -s conftest.$ac_objext'
25510 { (case "(($ac_try" in
25511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25512 *) ac_try_echo=$ac_try;;
25514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25515 (eval "$ac_try") 2>&5
25517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25518 (exit $ac_status); }; }; then
25519 ac_cv_member_struct_stat_st_blocks=yes
25521 echo "$as_me: failed program was:" >&5
25522 sed 's/^/| /' conftest.$ac_ext >&5
25524 ac_cv_member_struct_stat_st_blocks=no
25527 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25530 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25532 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
25533 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
25534 if test $ac_cv_member_struct_stat_st_blocks = yes; then
25536 cat >>confdefs.h <<_ACEOF
25537 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
25541 cat >>confdefs.h <<\_ACEOF
25542 #define HAVE_ST_BLOCKS 1
25546 case " $LIBOBJS " in
25547 *" fileblocks.$ac_objext "* ) ;;
25548 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
25555 { echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
25556 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6; }
25557 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
25558 echo $ECHO_N "(cached) $ECHO_C" >&6
25560 cat >conftest.$ac_ext <<_ACEOF
25563 cat confdefs.h >>conftest.$ac_ext
25564 cat >>conftest.$ac_ext <<_ACEOF
25565 /* end confdefs.h. */
25566 $ac_includes_default
25570 static struct stat ac_aggr;
25571 if (ac_aggr.st_rdev)
25577 rm -f conftest.$ac_objext
25578 if { (ac_try="$ac_compile"
25579 case "(($ac_try" in
25580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25581 *) ac_try_echo=$ac_try;;
25583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25584 (eval "$ac_compile") 2>conftest.er1
25586 grep -v '^ *+' conftest.er1 >conftest.err
25588 cat conftest.err >&5
25589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25590 (exit $ac_status); } &&
25591 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25592 { (case "(($ac_try" in
25593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25594 *) ac_try_echo=$ac_try;;
25596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25597 (eval "$ac_try") 2>&5
25599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25600 (exit $ac_status); }; } &&
25601 { ac_try='test -s conftest.$ac_objext'
25602 { (case "(($ac_try" in
25603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25604 *) ac_try_echo=$ac_try;;
25606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25607 (eval "$ac_try") 2>&5
25609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25610 (exit $ac_status); }; }; then
25611 ac_cv_member_struct_stat_st_rdev=yes
25613 echo "$as_me: failed program was:" >&5
25614 sed 's/^/| /' conftest.$ac_ext >&5
25616 cat >conftest.$ac_ext <<_ACEOF
25619 cat confdefs.h >>conftest.$ac_ext
25620 cat >>conftest.$ac_ext <<_ACEOF
25621 /* end confdefs.h. */
25622 $ac_includes_default
25626 static struct stat ac_aggr;
25627 if (sizeof ac_aggr.st_rdev)
25633 rm -f conftest.$ac_objext
25634 if { (ac_try="$ac_compile"
25635 case "(($ac_try" in
25636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25637 *) ac_try_echo=$ac_try;;
25639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25640 (eval "$ac_compile") 2>conftest.er1
25642 grep -v '^ *+' conftest.er1 >conftest.err
25644 cat conftest.err >&5
25645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25646 (exit $ac_status); } &&
25647 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25648 { (case "(($ac_try" in
25649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25650 *) ac_try_echo=$ac_try;;
25652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25653 (eval "$ac_try") 2>&5
25655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25656 (exit $ac_status); }; } &&
25657 { ac_try='test -s conftest.$ac_objext'
25658 { (case "(($ac_try" in
25659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25660 *) ac_try_echo=$ac_try;;
25662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25663 (eval "$ac_try") 2>&5
25665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25666 (exit $ac_status); }; }; then
25667 ac_cv_member_struct_stat_st_rdev=yes
25669 echo "$as_me: failed program was:" >&5
25670 sed 's/^/| /' conftest.$ac_ext >&5
25672 ac_cv_member_struct_stat_st_rdev=no
25675 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25678 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25680 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
25681 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6; }
25682 if test $ac_cv_member_struct_stat_st_rdev = yes; then
25684 cat >>confdefs.h <<_ACEOF
25685 #define HAVE_STRUCT_STAT_ST_RDEV 1
25689 cat >>confdefs.h <<\_ACEOF
25690 #define HAVE_ST_RDEV 1
25696 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
25697 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
25698 if test "${ac_cv_struct_tm+set}" = set; then
25699 echo $ECHO_N "(cached) $ECHO_C" >&6
25701 cat >conftest.$ac_ext <<_ACEOF
25704 cat confdefs.h >>conftest.$ac_ext
25705 cat >>conftest.$ac_ext <<_ACEOF
25706 /* end confdefs.h. */
25707 #include <sys/types.h>
25713 struct tm *tp; tp->tm_sec;
25718 rm -f conftest.$ac_objext
25719 if { (ac_try="$ac_compile"
25720 case "(($ac_try" in
25721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25722 *) ac_try_echo=$ac_try;;
25724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25725 (eval "$ac_compile") 2>conftest.er1
25727 grep -v '^ *+' conftest.er1 >conftest.err
25729 cat conftest.err >&5
25730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25731 (exit $ac_status); } &&
25732 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25733 { (case "(($ac_try" in
25734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25735 *) ac_try_echo=$ac_try;;
25737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25738 (eval "$ac_try") 2>&5
25740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25741 (exit $ac_status); }; } &&
25742 { ac_try='test -s conftest.$ac_objext'
25743 { (case "(($ac_try" in
25744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25745 *) ac_try_echo=$ac_try;;
25747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25748 (eval "$ac_try") 2>&5
25750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25751 (exit $ac_status); }; }; then
25752 ac_cv_struct_tm=time.h
25754 echo "$as_me: failed program was:" >&5
25755 sed 's/^/| /' conftest.$ac_ext >&5
25757 ac_cv_struct_tm=sys/time.h
25760 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25762 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
25763 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
25764 if test $ac_cv_struct_tm = sys/time.h; then
25766 cat >>confdefs.h <<\_ACEOF
25767 #define TM_IN_SYS_TIME 1
25772 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
25773 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
25774 if test "${ac_cv_c_const+set}" = set; then
25775 echo $ECHO_N "(cached) $ECHO_C" >&6
25777 cat >conftest.$ac_ext <<_ACEOF
25780 cat confdefs.h >>conftest.$ac_ext
25781 cat >>conftest.$ac_ext <<_ACEOF
25782 /* end confdefs.h. */
25787 /* FIXME: Include the comments suggested by Paul. */
25788 #ifndef __cplusplus
25789 /* Ultrix mips cc rejects this. */
25790 typedef int charset[2];
25792 /* SunOS 4.1.1 cc rejects this. */
25793 char const *const *ccp;
25795 /* NEC SVR4.0.2 mips cc rejects this. */
25796 struct point {int x, y;};
25797 static struct point const zero = {0,0};
25798 /* AIX XL C 1.02.0.0 rejects this.
25799 It does not let you subtract one const X* pointer from another in
25800 an arm of an if-expression whose if-part is not a constant
25802 const char *g = "string";
25803 ccp = &g + (g ? g-g : 0);
25804 /* HPUX 7.0 cc rejects these. */
25807 ccp = (char const *const *) p;
25808 { /* SCO 3.2v4 cc rejects this. */
25810 char const *s = 0 ? (char *) 0 : (char const *) 0;
25815 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
25816 int x[] = {25, 17};
25817 const int *foo = &x[0];
25820 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
25821 typedef const int *iptr;
25825 { /* AIX XL C 1.02.0.0 rejects this saying
25826 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
25827 struct s { int j; const int *ap[3]; };
25828 struct s *b; b->j = 5;
25830 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
25831 const int foo = 10;
25832 if (!foo) return 0;
25834 return !x[0] && !zero.x;
25841 rm -f conftest.$ac_objext
25842 if { (ac_try="$ac_compile"
25843 case "(($ac_try" in
25844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25845 *) ac_try_echo=$ac_try;;
25847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25848 (eval "$ac_compile") 2>conftest.er1
25850 grep -v '^ *+' conftest.er1 >conftest.err
25852 cat conftest.err >&5
25853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25854 (exit $ac_status); } &&
25855 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25856 { (case "(($ac_try" in
25857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25858 *) ac_try_echo=$ac_try;;
25860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25861 (eval "$ac_try") 2>&5
25863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25864 (exit $ac_status); }; } &&
25865 { ac_try='test -s conftest.$ac_objext'
25866 { (case "(($ac_try" in
25867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25868 *) ac_try_echo=$ac_try;;
25870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25871 (eval "$ac_try") 2>&5
25873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25874 (exit $ac_status); }; }; then
25877 echo "$as_me: failed program was:" >&5
25878 sed 's/^/| /' conftest.$ac_ext >&5
25883 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25885 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
25886 echo "${ECHO_T}$ac_cv_c_const" >&6; }
25887 if test $ac_cv_c_const = no; then
25889 cat >>confdefs.h <<\_ACEOF
25897 { echo "$as_me:$LINENO: checking for char" >&5
25898 echo $ECHO_N "checking for char... $ECHO_C" >&6; }
25899 if test "${ac_cv_type_char+set}" = set; then
25900 echo $ECHO_N "(cached) $ECHO_C" >&6
25902 cat >conftest.$ac_ext <<_ACEOF
25905 cat confdefs.h >>conftest.$ac_ext
25906 cat >>conftest.$ac_ext <<_ACEOF
25907 /* end confdefs.h. */
25908 $ac_includes_default
25909 typedef char ac__type_new_;
25913 if ((ac__type_new_ *) 0)
25915 if (sizeof (ac__type_new_))
25921 rm -f conftest.$ac_objext
25922 if { (ac_try="$ac_compile"
25923 case "(($ac_try" in
25924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25925 *) ac_try_echo=$ac_try;;
25927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25928 (eval "$ac_compile") 2>conftest.er1
25930 grep -v '^ *+' conftest.er1 >conftest.err
25932 cat conftest.err >&5
25933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25934 (exit $ac_status); } &&
25935 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25936 { (case "(($ac_try" in
25937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25938 *) ac_try_echo=$ac_try;;
25940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25941 (eval "$ac_try") 2>&5
25943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25944 (exit $ac_status); }; } &&
25945 { ac_try='test -s conftest.$ac_objext'
25946 { (case "(($ac_try" in
25947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25948 *) ac_try_echo=$ac_try;;
25950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25951 (eval "$ac_try") 2>&5
25953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25954 (exit $ac_status); }; }; then
25955 ac_cv_type_char=yes
25957 echo "$as_me: failed program was:" >&5
25958 sed 's/^/| /' conftest.$ac_ext >&5
25963 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25965 { echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
25966 echo "${ECHO_T}$ac_cv_type_char" >&6; }
25968 { echo "$as_me:$LINENO: checking size of char" >&5
25969 echo $ECHO_N "checking size of char... $ECHO_C" >&6; }
25970 if test "${ac_cv_sizeof_char+set}" = set; then
25971 echo $ECHO_N "(cached) $ECHO_C" >&6
25973 if test "$ac_cv_type_char" = yes; then
25974 # The cast to long int works around a bug in the HP C Compiler
25975 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
25976 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
25977 # This bug is HP SR number 8606223364.
25978 if test "$cross_compiling" = yes; then
25979 # Depending upon the size, compute the lo and hi bounds.
25980 cat >conftest.$ac_ext <<_ACEOF
25983 cat confdefs.h >>conftest.$ac_ext
25984 cat >>conftest.$ac_ext <<_ACEOF
25985 /* end confdefs.h. */
25986 $ac_includes_default
25987 typedef char ac__type_sizeof_;
25991 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
25998 rm -f conftest.$ac_objext
25999 if { (ac_try="$ac_compile"
26000 case "(($ac_try" in
26001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26002 *) ac_try_echo=$ac_try;;
26004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26005 (eval "$ac_compile") 2>conftest.er1
26007 grep -v '^ *+' conftest.er1 >conftest.err
26009 cat conftest.err >&5
26010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26011 (exit $ac_status); } &&
26012 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26013 { (case "(($ac_try" in
26014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26015 *) ac_try_echo=$ac_try;;
26017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26018 (eval "$ac_try") 2>&5
26020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26021 (exit $ac_status); }; } &&
26022 { ac_try='test -s conftest.$ac_objext'
26023 { (case "(($ac_try" in
26024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26025 *) ac_try_echo=$ac_try;;
26027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26028 (eval "$ac_try") 2>&5
26030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26031 (exit $ac_status); }; }; then
26034 cat >conftest.$ac_ext <<_ACEOF
26037 cat confdefs.h >>conftest.$ac_ext
26038 cat >>conftest.$ac_ext <<_ACEOF
26039 /* end confdefs.h. */
26040 $ac_includes_default
26041 typedef char ac__type_sizeof_;
26045 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
26052 rm -f conftest.$ac_objext
26053 if { (ac_try="$ac_compile"
26054 case "(($ac_try" in
26055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26056 *) ac_try_echo=$ac_try;;
26058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26059 (eval "$ac_compile") 2>conftest.er1
26061 grep -v '^ *+' conftest.er1 >conftest.err
26063 cat conftest.err >&5
26064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26065 (exit $ac_status); } &&
26066 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26067 { (case "(($ac_try" in
26068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26069 *) ac_try_echo=$ac_try;;
26071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26072 (eval "$ac_try") 2>&5
26074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26075 (exit $ac_status); }; } &&
26076 { ac_try='test -s conftest.$ac_objext'
26077 { (case "(($ac_try" in
26078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26079 *) ac_try_echo=$ac_try;;
26081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26082 (eval "$ac_try") 2>&5
26084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26085 (exit $ac_status); }; }; then
26086 ac_hi=$ac_mid; break
26088 echo "$as_me: failed program was:" >&5
26089 sed 's/^/| /' conftest.$ac_ext >&5
26091 ac_lo=`expr $ac_mid + 1`
26092 if test $ac_lo -le $ac_mid; then
26096 ac_mid=`expr 2 '*' $ac_mid + 1`
26099 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26102 echo "$as_me: failed program was:" >&5
26103 sed 's/^/| /' conftest.$ac_ext >&5
26105 cat >conftest.$ac_ext <<_ACEOF
26108 cat confdefs.h >>conftest.$ac_ext
26109 cat >>conftest.$ac_ext <<_ACEOF
26110 /* end confdefs.h. */
26111 $ac_includes_default
26112 typedef char ac__type_sizeof_;
26116 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
26123 rm -f conftest.$ac_objext
26124 if { (ac_try="$ac_compile"
26125 case "(($ac_try" in
26126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26127 *) ac_try_echo=$ac_try;;
26129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26130 (eval "$ac_compile") 2>conftest.er1
26132 grep -v '^ *+' conftest.er1 >conftest.err
26134 cat conftest.err >&5
26135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26136 (exit $ac_status); } &&
26137 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26138 { (case "(($ac_try" in
26139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26140 *) ac_try_echo=$ac_try;;
26142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26143 (eval "$ac_try") 2>&5
26145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26146 (exit $ac_status); }; } &&
26147 { ac_try='test -s conftest.$ac_objext'
26148 { (case "(($ac_try" in
26149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26150 *) ac_try_echo=$ac_try;;
26152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26153 (eval "$ac_try") 2>&5
26155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26156 (exit $ac_status); }; }; then
26159 cat >conftest.$ac_ext <<_ACEOF
26162 cat confdefs.h >>conftest.$ac_ext
26163 cat >>conftest.$ac_ext <<_ACEOF
26164 /* end confdefs.h. */
26165 $ac_includes_default
26166 typedef char ac__type_sizeof_;
26170 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
26177 rm -f conftest.$ac_objext
26178 if { (ac_try="$ac_compile"
26179 case "(($ac_try" in
26180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26181 *) ac_try_echo=$ac_try;;
26183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26184 (eval "$ac_compile") 2>conftest.er1
26186 grep -v '^ *+' conftest.er1 >conftest.err
26188 cat conftest.err >&5
26189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26190 (exit $ac_status); } &&
26191 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26192 { (case "(($ac_try" in
26193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26194 *) ac_try_echo=$ac_try;;
26196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26197 (eval "$ac_try") 2>&5
26199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26200 (exit $ac_status); }; } &&
26201 { ac_try='test -s conftest.$ac_objext'
26202 { (case "(($ac_try" in
26203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26204 *) ac_try_echo=$ac_try;;
26206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26207 (eval "$ac_try") 2>&5
26209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26210 (exit $ac_status); }; }; then
26211 ac_lo=$ac_mid; break
26213 echo "$as_me: failed program was:" >&5
26214 sed 's/^/| /' conftest.$ac_ext >&5
26216 ac_hi=`expr '(' $ac_mid ')' - 1`
26217 if test $ac_mid -le $ac_hi; then
26221 ac_mid=`expr 2 '*' $ac_mid`
26224 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26227 echo "$as_me: failed program was:" >&5
26228 sed 's/^/| /' conftest.$ac_ext >&5
26233 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26236 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26237 # Binary search between lo and hi bounds.
26238 while test "x$ac_lo" != "x$ac_hi"; do
26239 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
26240 cat >conftest.$ac_ext <<_ACEOF
26243 cat confdefs.h >>conftest.$ac_ext
26244 cat >>conftest.$ac_ext <<_ACEOF
26245 /* end confdefs.h. */
26246 $ac_includes_default
26247 typedef char ac__type_sizeof_;
26251 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
26258 rm -f conftest.$ac_objext
26259 if { (ac_try="$ac_compile"
26260 case "(($ac_try" in
26261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26262 *) ac_try_echo=$ac_try;;
26264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26265 (eval "$ac_compile") 2>conftest.er1
26267 grep -v '^ *+' conftest.er1 >conftest.err
26269 cat conftest.err >&5
26270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26271 (exit $ac_status); } &&
26272 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26273 { (case "(($ac_try" in
26274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26275 *) ac_try_echo=$ac_try;;
26277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26278 (eval "$ac_try") 2>&5
26280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26281 (exit $ac_status); }; } &&
26282 { ac_try='test -s conftest.$ac_objext'
26283 { (case "(($ac_try" in
26284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26285 *) ac_try_echo=$ac_try;;
26287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26288 (eval "$ac_try") 2>&5
26290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26291 (exit $ac_status); }; }; then
26294 echo "$as_me: failed program was:" >&5
26295 sed 's/^/| /' conftest.$ac_ext >&5
26297 ac_lo=`expr '(' $ac_mid ')' + 1`
26300 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26303 ?*) ac_cv_sizeof_char=$ac_lo;;
26304 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
26305 See \`config.log' for more details." >&5
26306 echo "$as_me: error: cannot compute sizeof (char)
26307 See \`config.log' for more details." >&2;}
26308 { (exit 77); exit 77; }; } ;;
26311 cat >conftest.$ac_ext <<_ACEOF
26314 cat confdefs.h >>conftest.$ac_ext
26315 cat >>conftest.$ac_ext <<_ACEOF
26316 /* end confdefs.h. */
26317 $ac_includes_default
26318 typedef char ac__type_sizeof_;
26319 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
26320 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
26322 #include <stdlib.h>
26327 FILE *f = fopen ("conftest.val", "w");
26330 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
26332 long int i = longval ();
26333 if (i != ((long int) (sizeof (ac__type_sizeof_))))
26335 fprintf (f, "%ld\n", i);
26339 unsigned long int i = ulongval ();
26340 if (i != ((long int) (sizeof (ac__type_sizeof_))))
26342 fprintf (f, "%lu\n", i);
26344 return ferror (f) || fclose (f) != 0;
26350 rm -f conftest$ac_exeext
26351 if { (ac_try="$ac_link"
26352 case "(($ac_try" in
26353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26354 *) ac_try_echo=$ac_try;;
26356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26357 (eval "$ac_link") 2>&5
26359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26360 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26361 { (case "(($ac_try" in
26362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26363 *) ac_try_echo=$ac_try;;
26365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26366 (eval "$ac_try") 2>&5
26368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26369 (exit $ac_status); }; }; then
26370 ac_cv_sizeof_char=`cat conftest.val`
26372 echo "$as_me: program exited with status $ac_status" >&5
26373 echo "$as_me: failed program was:" >&5
26374 sed 's/^/| /' conftest.$ac_ext >&5
26376 ( exit $ac_status )
26377 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
26378 See \`config.log' for more details." >&5
26379 echo "$as_me: error: cannot compute sizeof (char)
26380 See \`config.log' for more details." >&2;}
26381 { (exit 77); exit 77; }; }
26383 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26387 ac_cv_sizeof_char=0
26390 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
26391 echo "${ECHO_T}$ac_cv_sizeof_char" >&6; }
26392 cat >>confdefs.h <<_ACEOF
26393 #define SIZEOF_CHAR $ac_cv_sizeof_char
26397 { echo "$as_me:$LINENO: checking for short int" >&5
26398 echo $ECHO_N "checking for short int... $ECHO_C" >&6; }
26399 if test "${ac_cv_type_short_int+set}" = set; then
26400 echo $ECHO_N "(cached) $ECHO_C" >&6
26402 cat >conftest.$ac_ext <<_ACEOF
26405 cat confdefs.h >>conftest.$ac_ext
26406 cat >>conftest.$ac_ext <<_ACEOF
26407 /* end confdefs.h. */
26408 $ac_includes_default
26409 typedef short int ac__type_new_;
26413 if ((ac__type_new_ *) 0)
26415 if (sizeof (ac__type_new_))
26421 rm -f conftest.$ac_objext
26422 if { (ac_try="$ac_compile"
26423 case "(($ac_try" in
26424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26425 *) ac_try_echo=$ac_try;;
26427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26428 (eval "$ac_compile") 2>conftest.er1
26430 grep -v '^ *+' conftest.er1 >conftest.err
26432 cat conftest.err >&5
26433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26434 (exit $ac_status); } &&
26435 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26436 { (case "(($ac_try" in
26437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26438 *) ac_try_echo=$ac_try;;
26440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26441 (eval "$ac_try") 2>&5
26443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26444 (exit $ac_status); }; } &&
26445 { ac_try='test -s conftest.$ac_objext'
26446 { (case "(($ac_try" in
26447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26448 *) ac_try_echo=$ac_try;;
26450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26451 (eval "$ac_try") 2>&5
26453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26454 (exit $ac_status); }; }; then
26455 ac_cv_type_short_int=yes
26457 echo "$as_me: failed program was:" >&5
26458 sed 's/^/| /' conftest.$ac_ext >&5
26460 ac_cv_type_short_int=no
26463 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26465 { echo "$as_me:$LINENO: result: $ac_cv_type_short_int" >&5
26466 echo "${ECHO_T}$ac_cv_type_short_int" >&6; }
26468 { echo "$as_me:$LINENO: checking size of short int" >&5
26469 echo $ECHO_N "checking size of short int... $ECHO_C" >&6; }
26470 if test "${ac_cv_sizeof_short_int+set}" = set; then
26471 echo $ECHO_N "(cached) $ECHO_C" >&6
26473 if test "$ac_cv_type_short_int" = yes; then
26474 # The cast to long int works around a bug in the HP C Compiler
26475 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26476 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26477 # This bug is HP SR number 8606223364.
26478 if test "$cross_compiling" = yes; then
26479 # Depending upon the size, compute the lo and hi bounds.
26480 cat >conftest.$ac_ext <<_ACEOF
26483 cat confdefs.h >>conftest.$ac_ext
26484 cat >>conftest.$ac_ext <<_ACEOF
26485 /* end confdefs.h. */
26486 $ac_includes_default
26487 typedef short int ac__type_sizeof_;
26491 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
26498 rm -f conftest.$ac_objext
26499 if { (ac_try="$ac_compile"
26500 case "(($ac_try" in
26501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26502 *) ac_try_echo=$ac_try;;
26504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26505 (eval "$ac_compile") 2>conftest.er1
26507 grep -v '^ *+' conftest.er1 >conftest.err
26509 cat conftest.err >&5
26510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26511 (exit $ac_status); } &&
26512 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26513 { (case "(($ac_try" in
26514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26515 *) ac_try_echo=$ac_try;;
26517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26518 (eval "$ac_try") 2>&5
26520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26521 (exit $ac_status); }; } &&
26522 { ac_try='test -s conftest.$ac_objext'
26523 { (case "(($ac_try" in
26524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26525 *) ac_try_echo=$ac_try;;
26527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26528 (eval "$ac_try") 2>&5
26530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26531 (exit $ac_status); }; }; then
26534 cat >conftest.$ac_ext <<_ACEOF
26537 cat confdefs.h >>conftest.$ac_ext
26538 cat >>conftest.$ac_ext <<_ACEOF
26539 /* end confdefs.h. */
26540 $ac_includes_default
26541 typedef short int ac__type_sizeof_;
26545 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
26552 rm -f conftest.$ac_objext
26553 if { (ac_try="$ac_compile"
26554 case "(($ac_try" in
26555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26556 *) ac_try_echo=$ac_try;;
26558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26559 (eval "$ac_compile") 2>conftest.er1
26561 grep -v '^ *+' conftest.er1 >conftest.err
26563 cat conftest.err >&5
26564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26565 (exit $ac_status); } &&
26566 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26567 { (case "(($ac_try" in
26568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26569 *) ac_try_echo=$ac_try;;
26571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26572 (eval "$ac_try") 2>&5
26574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26575 (exit $ac_status); }; } &&
26576 { ac_try='test -s conftest.$ac_objext'
26577 { (case "(($ac_try" in
26578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26579 *) ac_try_echo=$ac_try;;
26581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26582 (eval "$ac_try") 2>&5
26584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26585 (exit $ac_status); }; }; then
26586 ac_hi=$ac_mid; break
26588 echo "$as_me: failed program was:" >&5
26589 sed 's/^/| /' conftest.$ac_ext >&5
26591 ac_lo=`expr $ac_mid + 1`
26592 if test $ac_lo -le $ac_mid; then
26596 ac_mid=`expr 2 '*' $ac_mid + 1`
26599 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26602 echo "$as_me: failed program was:" >&5
26603 sed 's/^/| /' conftest.$ac_ext >&5
26605 cat >conftest.$ac_ext <<_ACEOF
26608 cat confdefs.h >>conftest.$ac_ext
26609 cat >>conftest.$ac_ext <<_ACEOF
26610 /* end confdefs.h. */
26611 $ac_includes_default
26612 typedef short int ac__type_sizeof_;
26616 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
26623 rm -f conftest.$ac_objext
26624 if { (ac_try="$ac_compile"
26625 case "(($ac_try" in
26626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26627 *) ac_try_echo=$ac_try;;
26629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26630 (eval "$ac_compile") 2>conftest.er1
26632 grep -v '^ *+' conftest.er1 >conftest.err
26634 cat conftest.err >&5
26635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26636 (exit $ac_status); } &&
26637 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26638 { (case "(($ac_try" in
26639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26640 *) ac_try_echo=$ac_try;;
26642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26643 (eval "$ac_try") 2>&5
26645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26646 (exit $ac_status); }; } &&
26647 { ac_try='test -s conftest.$ac_objext'
26648 { (case "(($ac_try" in
26649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26650 *) ac_try_echo=$ac_try;;
26652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26653 (eval "$ac_try") 2>&5
26655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26656 (exit $ac_status); }; }; then
26659 cat >conftest.$ac_ext <<_ACEOF
26662 cat confdefs.h >>conftest.$ac_ext
26663 cat >>conftest.$ac_ext <<_ACEOF
26664 /* end confdefs.h. */
26665 $ac_includes_default
26666 typedef short int ac__type_sizeof_;
26670 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
26677 rm -f conftest.$ac_objext
26678 if { (ac_try="$ac_compile"
26679 case "(($ac_try" in
26680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26681 *) ac_try_echo=$ac_try;;
26683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26684 (eval "$ac_compile") 2>conftest.er1
26686 grep -v '^ *+' conftest.er1 >conftest.err
26688 cat conftest.err >&5
26689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26690 (exit $ac_status); } &&
26691 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26692 { (case "(($ac_try" in
26693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26694 *) ac_try_echo=$ac_try;;
26696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26697 (eval "$ac_try") 2>&5
26699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26700 (exit $ac_status); }; } &&
26701 { ac_try='test -s conftest.$ac_objext'
26702 { (case "(($ac_try" in
26703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26704 *) ac_try_echo=$ac_try;;
26706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26707 (eval "$ac_try") 2>&5
26709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26710 (exit $ac_status); }; }; then
26711 ac_lo=$ac_mid; break
26713 echo "$as_me: failed program was:" >&5
26714 sed 's/^/| /' conftest.$ac_ext >&5
26716 ac_hi=`expr '(' $ac_mid ')' - 1`
26717 if test $ac_mid -le $ac_hi; then
26721 ac_mid=`expr 2 '*' $ac_mid`
26724 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26727 echo "$as_me: failed program was:" >&5
26728 sed 's/^/| /' conftest.$ac_ext >&5
26733 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26736 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26737 # Binary search between lo and hi bounds.
26738 while test "x$ac_lo" != "x$ac_hi"; do
26739 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
26740 cat >conftest.$ac_ext <<_ACEOF
26743 cat confdefs.h >>conftest.$ac_ext
26744 cat >>conftest.$ac_ext <<_ACEOF
26745 /* end confdefs.h. */
26746 $ac_includes_default
26747 typedef short int ac__type_sizeof_;
26751 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
26758 rm -f conftest.$ac_objext
26759 if { (ac_try="$ac_compile"
26760 case "(($ac_try" in
26761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26762 *) ac_try_echo=$ac_try;;
26764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26765 (eval "$ac_compile") 2>conftest.er1
26767 grep -v '^ *+' conftest.er1 >conftest.err
26769 cat conftest.err >&5
26770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26771 (exit $ac_status); } &&
26772 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26773 { (case "(($ac_try" in
26774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26775 *) ac_try_echo=$ac_try;;
26777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26778 (eval "$ac_try") 2>&5
26780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26781 (exit $ac_status); }; } &&
26782 { ac_try='test -s conftest.$ac_objext'
26783 { (case "(($ac_try" in
26784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26785 *) ac_try_echo=$ac_try;;
26787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26788 (eval "$ac_try") 2>&5
26790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26791 (exit $ac_status); }; }; then
26794 echo "$as_me: failed program was:" >&5
26795 sed 's/^/| /' conftest.$ac_ext >&5
26797 ac_lo=`expr '(' $ac_mid ')' + 1`
26800 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26803 ?*) ac_cv_sizeof_short_int=$ac_lo;;
26804 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int)
26805 See \`config.log' for more details." >&5
26806 echo "$as_me: error: cannot compute sizeof (short int)
26807 See \`config.log' for more details." >&2;}
26808 { (exit 77); exit 77; }; } ;;
26811 cat >conftest.$ac_ext <<_ACEOF
26814 cat confdefs.h >>conftest.$ac_ext
26815 cat >>conftest.$ac_ext <<_ACEOF
26816 /* end confdefs.h. */
26817 $ac_includes_default
26818 typedef short int ac__type_sizeof_;
26819 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
26820 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
26822 #include <stdlib.h>
26827 FILE *f = fopen ("conftest.val", "w");
26830 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
26832 long int i = longval ();
26833 if (i != ((long int) (sizeof (ac__type_sizeof_))))
26835 fprintf (f, "%ld\n", i);
26839 unsigned long int i = ulongval ();
26840 if (i != ((long int) (sizeof (ac__type_sizeof_))))
26842 fprintf (f, "%lu\n", i);
26844 return ferror (f) || fclose (f) != 0;
26850 rm -f conftest$ac_exeext
26851 if { (ac_try="$ac_link"
26852 case "(($ac_try" in
26853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26854 *) ac_try_echo=$ac_try;;
26856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26857 (eval "$ac_link") 2>&5
26859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26860 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26861 { (case "(($ac_try" in
26862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26863 *) ac_try_echo=$ac_try;;
26865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26866 (eval "$ac_try") 2>&5
26868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26869 (exit $ac_status); }; }; then
26870 ac_cv_sizeof_short_int=`cat conftest.val`
26872 echo "$as_me: program exited with status $ac_status" >&5
26873 echo "$as_me: failed program was:" >&5
26874 sed 's/^/| /' conftest.$ac_ext >&5
26876 ( exit $ac_status )
26877 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int)
26878 See \`config.log' for more details." >&5
26879 echo "$as_me: error: cannot compute sizeof (short int)
26880 See \`config.log' for more details." >&2;}
26881 { (exit 77); exit 77; }; }
26883 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26887 ac_cv_sizeof_short_int=0
26890 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short_int" >&5
26891 echo "${ECHO_T}$ac_cv_sizeof_short_int" >&6; }
26892 cat >>confdefs.h <<_ACEOF
26893 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
26897 { echo "$as_me:$LINENO: checking for int" >&5
26898 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
26899 if test "${ac_cv_type_int+set}" = set; then
26900 echo $ECHO_N "(cached) $ECHO_C" >&6
26902 cat >conftest.$ac_ext <<_ACEOF
26905 cat confdefs.h >>conftest.$ac_ext
26906 cat >>conftest.$ac_ext <<_ACEOF
26907 /* end confdefs.h. */
26908 $ac_includes_default
26909 typedef int ac__type_new_;
26913 if ((ac__type_new_ *) 0)
26915 if (sizeof (ac__type_new_))
26921 rm -f conftest.$ac_objext
26922 if { (ac_try="$ac_compile"
26923 case "(($ac_try" in
26924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26925 *) ac_try_echo=$ac_try;;
26927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26928 (eval "$ac_compile") 2>conftest.er1
26930 grep -v '^ *+' conftest.er1 >conftest.err
26932 cat conftest.err >&5
26933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26934 (exit $ac_status); } &&
26935 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26936 { (case "(($ac_try" in
26937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26938 *) ac_try_echo=$ac_try;;
26940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26941 (eval "$ac_try") 2>&5
26943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26944 (exit $ac_status); }; } &&
26945 { ac_try='test -s conftest.$ac_objext'
26946 { (case "(($ac_try" in
26947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26948 *) ac_try_echo=$ac_try;;
26950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26951 (eval "$ac_try") 2>&5
26953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26954 (exit $ac_status); }; }; then
26957 echo "$as_me: failed program was:" >&5
26958 sed 's/^/| /' conftest.$ac_ext >&5
26963 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26965 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
26966 echo "${ECHO_T}$ac_cv_type_int" >&6; }
26968 { echo "$as_me:$LINENO: checking size of int" >&5
26969 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
26970 if test "${ac_cv_sizeof_int+set}" = set; then
26971 echo $ECHO_N "(cached) $ECHO_C" >&6
26973 if test "$ac_cv_type_int" = yes; then
26974 # The cast to long int works around a bug in the HP C Compiler
26975 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26976 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26977 # This bug is HP SR number 8606223364.
26978 if test "$cross_compiling" = yes; then
26979 # Depending upon the size, compute the lo and hi bounds.
26980 cat >conftest.$ac_ext <<_ACEOF
26983 cat confdefs.h >>conftest.$ac_ext
26984 cat >>conftest.$ac_ext <<_ACEOF
26985 /* end confdefs.h. */
26986 $ac_includes_default
26987 typedef int ac__type_sizeof_;
26991 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
26998 rm -f conftest.$ac_objext
26999 if { (ac_try="$ac_compile"
27000 case "(($ac_try" in
27001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27002 *) ac_try_echo=$ac_try;;
27004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27005 (eval "$ac_compile") 2>conftest.er1
27007 grep -v '^ *+' conftest.er1 >conftest.err
27009 cat conftest.err >&5
27010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27011 (exit $ac_status); } &&
27012 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27013 { (case "(($ac_try" in
27014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27015 *) ac_try_echo=$ac_try;;
27017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27018 (eval "$ac_try") 2>&5
27020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27021 (exit $ac_status); }; } &&
27022 { ac_try='test -s conftest.$ac_objext'
27023 { (case "(($ac_try" in
27024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27025 *) ac_try_echo=$ac_try;;
27027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27028 (eval "$ac_try") 2>&5
27030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27031 (exit $ac_status); }; }; then
27034 cat >conftest.$ac_ext <<_ACEOF
27037 cat confdefs.h >>conftest.$ac_ext
27038 cat >>conftest.$ac_ext <<_ACEOF
27039 /* end confdefs.h. */
27040 $ac_includes_default
27041 typedef int ac__type_sizeof_;
27045 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
27052 rm -f conftest.$ac_objext
27053 if { (ac_try="$ac_compile"
27054 case "(($ac_try" in
27055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27056 *) ac_try_echo=$ac_try;;
27058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27059 (eval "$ac_compile") 2>conftest.er1
27061 grep -v '^ *+' conftest.er1 >conftest.err
27063 cat conftest.err >&5
27064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27065 (exit $ac_status); } &&
27066 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27067 { (case "(($ac_try" in
27068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27069 *) ac_try_echo=$ac_try;;
27071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27072 (eval "$ac_try") 2>&5
27074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27075 (exit $ac_status); }; } &&
27076 { ac_try='test -s conftest.$ac_objext'
27077 { (case "(($ac_try" in
27078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27079 *) ac_try_echo=$ac_try;;
27081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27082 (eval "$ac_try") 2>&5
27084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27085 (exit $ac_status); }; }; then
27086 ac_hi=$ac_mid; break
27088 echo "$as_me: failed program was:" >&5
27089 sed 's/^/| /' conftest.$ac_ext >&5
27091 ac_lo=`expr $ac_mid + 1`
27092 if test $ac_lo -le $ac_mid; then
27096 ac_mid=`expr 2 '*' $ac_mid + 1`
27099 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27102 echo "$as_me: failed program was:" >&5
27103 sed 's/^/| /' conftest.$ac_ext >&5
27105 cat >conftest.$ac_ext <<_ACEOF
27108 cat confdefs.h >>conftest.$ac_ext
27109 cat >>conftest.$ac_ext <<_ACEOF
27110 /* end confdefs.h. */
27111 $ac_includes_default
27112 typedef int ac__type_sizeof_;
27116 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
27123 rm -f conftest.$ac_objext
27124 if { (ac_try="$ac_compile"
27125 case "(($ac_try" in
27126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27127 *) ac_try_echo=$ac_try;;
27129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27130 (eval "$ac_compile") 2>conftest.er1
27132 grep -v '^ *+' conftest.er1 >conftest.err
27134 cat conftest.err >&5
27135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27136 (exit $ac_status); } &&
27137 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27138 { (case "(($ac_try" in
27139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27140 *) ac_try_echo=$ac_try;;
27142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27143 (eval "$ac_try") 2>&5
27145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27146 (exit $ac_status); }; } &&
27147 { ac_try='test -s conftest.$ac_objext'
27148 { (case "(($ac_try" in
27149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27150 *) ac_try_echo=$ac_try;;
27152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27153 (eval "$ac_try") 2>&5
27155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27156 (exit $ac_status); }; }; then
27159 cat >conftest.$ac_ext <<_ACEOF
27162 cat confdefs.h >>conftest.$ac_ext
27163 cat >>conftest.$ac_ext <<_ACEOF
27164 /* end confdefs.h. */
27165 $ac_includes_default
27166 typedef int ac__type_sizeof_;
27170 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
27177 rm -f conftest.$ac_objext
27178 if { (ac_try="$ac_compile"
27179 case "(($ac_try" in
27180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27181 *) ac_try_echo=$ac_try;;
27183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27184 (eval "$ac_compile") 2>conftest.er1
27186 grep -v '^ *+' conftest.er1 >conftest.err
27188 cat conftest.err >&5
27189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27190 (exit $ac_status); } &&
27191 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27192 { (case "(($ac_try" in
27193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27194 *) ac_try_echo=$ac_try;;
27196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27197 (eval "$ac_try") 2>&5
27199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27200 (exit $ac_status); }; } &&
27201 { ac_try='test -s conftest.$ac_objext'
27202 { (case "(($ac_try" in
27203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27204 *) ac_try_echo=$ac_try;;
27206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27207 (eval "$ac_try") 2>&5
27209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27210 (exit $ac_status); }; }; then
27211 ac_lo=$ac_mid; break
27213 echo "$as_me: failed program was:" >&5
27214 sed 's/^/| /' conftest.$ac_ext >&5
27216 ac_hi=`expr '(' $ac_mid ')' - 1`
27217 if test $ac_mid -le $ac_hi; then
27221 ac_mid=`expr 2 '*' $ac_mid`
27224 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27227 echo "$as_me: failed program was:" >&5
27228 sed 's/^/| /' conftest.$ac_ext >&5
27233 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27236 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27237 # Binary search between lo and hi bounds.
27238 while test "x$ac_lo" != "x$ac_hi"; do
27239 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
27240 cat >conftest.$ac_ext <<_ACEOF
27243 cat confdefs.h >>conftest.$ac_ext
27244 cat >>conftest.$ac_ext <<_ACEOF
27245 /* end confdefs.h. */
27246 $ac_includes_default
27247 typedef int ac__type_sizeof_;
27251 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
27258 rm -f conftest.$ac_objext
27259 if { (ac_try="$ac_compile"
27260 case "(($ac_try" in
27261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27262 *) ac_try_echo=$ac_try;;
27264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27265 (eval "$ac_compile") 2>conftest.er1
27267 grep -v '^ *+' conftest.er1 >conftest.err
27269 cat conftest.err >&5
27270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27271 (exit $ac_status); } &&
27272 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27273 { (case "(($ac_try" in
27274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27275 *) ac_try_echo=$ac_try;;
27277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27278 (eval "$ac_try") 2>&5
27280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27281 (exit $ac_status); }; } &&
27282 { ac_try='test -s conftest.$ac_objext'
27283 { (case "(($ac_try" in
27284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27285 *) ac_try_echo=$ac_try;;
27287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27288 (eval "$ac_try") 2>&5
27290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27291 (exit $ac_status); }; }; then
27294 echo "$as_me: failed program was:" >&5
27295 sed 's/^/| /' conftest.$ac_ext >&5
27297 ac_lo=`expr '(' $ac_mid ')' + 1`
27300 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27303 ?*) ac_cv_sizeof_int=$ac_lo;;
27304 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
27305 See \`config.log' for more details." >&5
27306 echo "$as_me: error: cannot compute sizeof (int)
27307 See \`config.log' for more details." >&2;}
27308 { (exit 77); exit 77; }; } ;;
27311 cat >conftest.$ac_ext <<_ACEOF
27314 cat confdefs.h >>conftest.$ac_ext
27315 cat >>conftest.$ac_ext <<_ACEOF
27316 /* end confdefs.h. */
27317 $ac_includes_default
27318 typedef int ac__type_sizeof_;
27319 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
27320 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
27322 #include <stdlib.h>
27327 FILE *f = fopen ("conftest.val", "w");
27330 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
27332 long int i = longval ();
27333 if (i != ((long int) (sizeof (ac__type_sizeof_))))
27335 fprintf (f, "%ld\n", i);
27339 unsigned long int i = ulongval ();
27340 if (i != ((long int) (sizeof (ac__type_sizeof_))))
27342 fprintf (f, "%lu\n", i);
27344 return ferror (f) || fclose (f) != 0;
27350 rm -f conftest$ac_exeext
27351 if { (ac_try="$ac_link"
27352 case "(($ac_try" in
27353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27354 *) ac_try_echo=$ac_try;;
27356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27357 (eval "$ac_link") 2>&5
27359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27360 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27361 { (case "(($ac_try" in
27362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27363 *) ac_try_echo=$ac_try;;
27365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27366 (eval "$ac_try") 2>&5
27368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27369 (exit $ac_status); }; }; then
27370 ac_cv_sizeof_int=`cat conftest.val`
27372 echo "$as_me: program exited with status $ac_status" >&5
27373 echo "$as_me: failed program was:" >&5
27374 sed 's/^/| /' conftest.$ac_ext >&5
27376 ( exit $ac_status )
27377 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
27378 See \`config.log' for more details." >&5
27379 echo "$as_me: error: cannot compute sizeof (int)
27380 See \`config.log' for more details." >&2;}
27381 { (exit 77); exit 77; }; }
27383 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27390 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
27391 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
27392 cat >>confdefs.h <<_ACEOF
27393 #define SIZEOF_INT $ac_cv_sizeof_int
27397 { echo "$as_me:$LINENO: checking for long int" >&5
27398 echo $ECHO_N "checking for long int... $ECHO_C" >&6; }
27399 if test "${ac_cv_type_long_int+set}" = set; then
27400 echo $ECHO_N "(cached) $ECHO_C" >&6
27402 cat >conftest.$ac_ext <<_ACEOF
27405 cat confdefs.h >>conftest.$ac_ext
27406 cat >>conftest.$ac_ext <<_ACEOF
27407 /* end confdefs.h. */
27408 $ac_includes_default
27409 typedef long int ac__type_new_;
27413 if ((ac__type_new_ *) 0)
27415 if (sizeof (ac__type_new_))
27421 rm -f conftest.$ac_objext
27422 if { (ac_try="$ac_compile"
27423 case "(($ac_try" in
27424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27425 *) ac_try_echo=$ac_try;;
27427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27428 (eval "$ac_compile") 2>conftest.er1
27430 grep -v '^ *+' conftest.er1 >conftest.err
27432 cat conftest.err >&5
27433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27434 (exit $ac_status); } &&
27435 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27436 { (case "(($ac_try" in
27437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27438 *) ac_try_echo=$ac_try;;
27440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27441 (eval "$ac_try") 2>&5
27443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27444 (exit $ac_status); }; } &&
27445 { ac_try='test -s conftest.$ac_objext'
27446 { (case "(($ac_try" in
27447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27448 *) ac_try_echo=$ac_try;;
27450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27451 (eval "$ac_try") 2>&5
27453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27454 (exit $ac_status); }; }; then
27455 ac_cv_type_long_int=yes
27457 echo "$as_me: failed program was:" >&5
27458 sed 's/^/| /' conftest.$ac_ext >&5
27460 ac_cv_type_long_int=no
27463 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27465 { echo "$as_me:$LINENO: result: $ac_cv_type_long_int" >&5
27466 echo "${ECHO_T}$ac_cv_type_long_int" >&6; }
27468 { echo "$as_me:$LINENO: checking size of long int" >&5
27469 echo $ECHO_N "checking size of long int... $ECHO_C" >&6; }
27470 if test "${ac_cv_sizeof_long_int+set}" = set; then
27471 echo $ECHO_N "(cached) $ECHO_C" >&6
27473 if test "$ac_cv_type_long_int" = yes; then
27474 # The cast to long int works around a bug in the HP C Compiler
27475 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27476 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27477 # This bug is HP SR number 8606223364.
27478 if test "$cross_compiling" = yes; then
27479 # Depending upon the size, compute the lo and hi bounds.
27480 cat >conftest.$ac_ext <<_ACEOF
27483 cat confdefs.h >>conftest.$ac_ext
27484 cat >>conftest.$ac_ext <<_ACEOF
27485 /* end confdefs.h. */
27486 $ac_includes_default
27487 typedef long int ac__type_sizeof_;
27491 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
27498 rm -f conftest.$ac_objext
27499 if { (ac_try="$ac_compile"
27500 case "(($ac_try" in
27501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27502 *) ac_try_echo=$ac_try;;
27504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27505 (eval "$ac_compile") 2>conftest.er1
27507 grep -v '^ *+' conftest.er1 >conftest.err
27509 cat conftest.err >&5
27510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27511 (exit $ac_status); } &&
27512 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27513 { (case "(($ac_try" in
27514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27515 *) ac_try_echo=$ac_try;;
27517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27518 (eval "$ac_try") 2>&5
27520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27521 (exit $ac_status); }; } &&
27522 { ac_try='test -s conftest.$ac_objext'
27523 { (case "(($ac_try" in
27524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27525 *) ac_try_echo=$ac_try;;
27527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27528 (eval "$ac_try") 2>&5
27530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27531 (exit $ac_status); }; }; then
27534 cat >conftest.$ac_ext <<_ACEOF
27537 cat confdefs.h >>conftest.$ac_ext
27538 cat >>conftest.$ac_ext <<_ACEOF
27539 /* end confdefs.h. */
27540 $ac_includes_default
27541 typedef long int ac__type_sizeof_;
27545 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
27552 rm -f conftest.$ac_objext
27553 if { (ac_try="$ac_compile"
27554 case "(($ac_try" in
27555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27556 *) ac_try_echo=$ac_try;;
27558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27559 (eval "$ac_compile") 2>conftest.er1
27561 grep -v '^ *+' conftest.er1 >conftest.err
27563 cat conftest.err >&5
27564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27565 (exit $ac_status); } &&
27566 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27567 { (case "(($ac_try" in
27568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27569 *) ac_try_echo=$ac_try;;
27571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27572 (eval "$ac_try") 2>&5
27574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27575 (exit $ac_status); }; } &&
27576 { ac_try='test -s conftest.$ac_objext'
27577 { (case "(($ac_try" in
27578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27579 *) ac_try_echo=$ac_try;;
27581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27582 (eval "$ac_try") 2>&5
27584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27585 (exit $ac_status); }; }; then
27586 ac_hi=$ac_mid; break
27588 echo "$as_me: failed program was:" >&5
27589 sed 's/^/| /' conftest.$ac_ext >&5
27591 ac_lo=`expr $ac_mid + 1`
27592 if test $ac_lo -le $ac_mid; then
27596 ac_mid=`expr 2 '*' $ac_mid + 1`
27599 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27602 echo "$as_me: failed program was:" >&5
27603 sed 's/^/| /' conftest.$ac_ext >&5
27605 cat >conftest.$ac_ext <<_ACEOF
27608 cat confdefs.h >>conftest.$ac_ext
27609 cat >>conftest.$ac_ext <<_ACEOF
27610 /* end confdefs.h. */
27611 $ac_includes_default
27612 typedef long int ac__type_sizeof_;
27616 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
27623 rm -f conftest.$ac_objext
27624 if { (ac_try="$ac_compile"
27625 case "(($ac_try" in
27626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27627 *) ac_try_echo=$ac_try;;
27629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27630 (eval "$ac_compile") 2>conftest.er1
27632 grep -v '^ *+' conftest.er1 >conftest.err
27634 cat conftest.err >&5
27635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27636 (exit $ac_status); } &&
27637 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27638 { (case "(($ac_try" in
27639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27640 *) ac_try_echo=$ac_try;;
27642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27643 (eval "$ac_try") 2>&5
27645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27646 (exit $ac_status); }; } &&
27647 { ac_try='test -s conftest.$ac_objext'
27648 { (case "(($ac_try" in
27649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27650 *) ac_try_echo=$ac_try;;
27652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27653 (eval "$ac_try") 2>&5
27655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27656 (exit $ac_status); }; }; then
27659 cat >conftest.$ac_ext <<_ACEOF
27662 cat confdefs.h >>conftest.$ac_ext
27663 cat >>conftest.$ac_ext <<_ACEOF
27664 /* end confdefs.h. */
27665 $ac_includes_default
27666 typedef long int ac__type_sizeof_;
27670 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
27677 rm -f conftest.$ac_objext
27678 if { (ac_try="$ac_compile"
27679 case "(($ac_try" in
27680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27681 *) ac_try_echo=$ac_try;;
27683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27684 (eval "$ac_compile") 2>conftest.er1
27686 grep -v '^ *+' conftest.er1 >conftest.err
27688 cat conftest.err >&5
27689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27690 (exit $ac_status); } &&
27691 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27692 { (case "(($ac_try" in
27693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27694 *) ac_try_echo=$ac_try;;
27696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27697 (eval "$ac_try") 2>&5
27699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27700 (exit $ac_status); }; } &&
27701 { ac_try='test -s conftest.$ac_objext'
27702 { (case "(($ac_try" in
27703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27704 *) ac_try_echo=$ac_try;;
27706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27707 (eval "$ac_try") 2>&5
27709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27710 (exit $ac_status); }; }; then
27711 ac_lo=$ac_mid; break
27713 echo "$as_me: failed program was:" >&5
27714 sed 's/^/| /' conftest.$ac_ext >&5
27716 ac_hi=`expr '(' $ac_mid ')' - 1`
27717 if test $ac_mid -le $ac_hi; then
27721 ac_mid=`expr 2 '*' $ac_mid`
27724 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27727 echo "$as_me: failed program was:" >&5
27728 sed 's/^/| /' conftest.$ac_ext >&5
27733 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27736 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27737 # Binary search between lo and hi bounds.
27738 while test "x$ac_lo" != "x$ac_hi"; do
27739 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
27740 cat >conftest.$ac_ext <<_ACEOF
27743 cat confdefs.h >>conftest.$ac_ext
27744 cat >>conftest.$ac_ext <<_ACEOF
27745 /* end confdefs.h. */
27746 $ac_includes_default
27747 typedef long int ac__type_sizeof_;
27751 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
27758 rm -f conftest.$ac_objext
27759 if { (ac_try="$ac_compile"
27760 case "(($ac_try" in
27761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27762 *) ac_try_echo=$ac_try;;
27764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27765 (eval "$ac_compile") 2>conftest.er1
27767 grep -v '^ *+' conftest.er1 >conftest.err
27769 cat conftest.err >&5
27770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27771 (exit $ac_status); } &&
27772 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27773 { (case "(($ac_try" in
27774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27775 *) ac_try_echo=$ac_try;;
27777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27778 (eval "$ac_try") 2>&5
27780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27781 (exit $ac_status); }; } &&
27782 { ac_try='test -s conftest.$ac_objext'
27783 { (case "(($ac_try" in
27784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27785 *) ac_try_echo=$ac_try;;
27787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27788 (eval "$ac_try") 2>&5
27790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27791 (exit $ac_status); }; }; then
27794 echo "$as_me: failed program was:" >&5
27795 sed 's/^/| /' conftest.$ac_ext >&5
27797 ac_lo=`expr '(' $ac_mid ')' + 1`
27800 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27803 ?*) ac_cv_sizeof_long_int=$ac_lo;;
27804 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int)
27805 See \`config.log' for more details." >&5
27806 echo "$as_me: error: cannot compute sizeof (long int)
27807 See \`config.log' for more details." >&2;}
27808 { (exit 77); exit 77; }; } ;;
27811 cat >conftest.$ac_ext <<_ACEOF
27814 cat confdefs.h >>conftest.$ac_ext
27815 cat >>conftest.$ac_ext <<_ACEOF
27816 /* end confdefs.h. */
27817 $ac_includes_default
27818 typedef long int ac__type_sizeof_;
27819 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
27820 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
27822 #include <stdlib.h>
27827 FILE *f = fopen ("conftest.val", "w");
27830 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
27832 long int i = longval ();
27833 if (i != ((long int) (sizeof (ac__type_sizeof_))))
27835 fprintf (f, "%ld\n", i);
27839 unsigned long int i = ulongval ();
27840 if (i != ((long int) (sizeof (ac__type_sizeof_))))
27842 fprintf (f, "%lu\n", i);
27844 return ferror (f) || fclose (f) != 0;
27850 rm -f conftest$ac_exeext
27851 if { (ac_try="$ac_link"
27852 case "(($ac_try" in
27853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27854 *) ac_try_echo=$ac_try;;
27856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27857 (eval "$ac_link") 2>&5
27859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27860 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27861 { (case "(($ac_try" in
27862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27863 *) ac_try_echo=$ac_try;;
27865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27866 (eval "$ac_try") 2>&5
27868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27869 (exit $ac_status); }; }; then
27870 ac_cv_sizeof_long_int=`cat conftest.val`
27872 echo "$as_me: program exited with status $ac_status" >&5
27873 echo "$as_me: failed program was:" >&5
27874 sed 's/^/| /' conftest.$ac_ext >&5
27876 ( exit $ac_status )
27877 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int)
27878 See \`config.log' for more details." >&5
27879 echo "$as_me: error: cannot compute sizeof (long int)
27880 See \`config.log' for more details." >&2;}
27881 { (exit 77); exit 77; }; }
27883 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27887 ac_cv_sizeof_long_int=0
27890 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_int" >&5
27891 echo "${ECHO_T}$ac_cv_sizeof_long_int" >&6; }
27892 cat >>confdefs.h <<_ACEOF
27893 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
27897 { echo "$as_me:$LINENO: checking for long long int" >&5
27898 echo $ECHO_N "checking for long long int... $ECHO_C" >&6; }
27899 if test "${ac_cv_type_long_long_int+set}" = set; then
27900 echo $ECHO_N "(cached) $ECHO_C" >&6
27902 cat >conftest.$ac_ext <<_ACEOF
27905 cat confdefs.h >>conftest.$ac_ext
27906 cat >>conftest.$ac_ext <<_ACEOF
27907 /* end confdefs.h. */
27908 $ac_includes_default
27909 typedef long long int ac__type_new_;
27913 if ((ac__type_new_ *) 0)
27915 if (sizeof (ac__type_new_))
27921 rm -f conftest.$ac_objext
27922 if { (ac_try="$ac_compile"
27923 case "(($ac_try" in
27924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27925 *) ac_try_echo=$ac_try;;
27927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27928 (eval "$ac_compile") 2>conftest.er1
27930 grep -v '^ *+' conftest.er1 >conftest.err
27932 cat conftest.err >&5
27933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27934 (exit $ac_status); } &&
27935 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27936 { (case "(($ac_try" in
27937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27938 *) ac_try_echo=$ac_try;;
27940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27941 (eval "$ac_try") 2>&5
27943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27944 (exit $ac_status); }; } &&
27945 { ac_try='test -s conftest.$ac_objext'
27946 { (case "(($ac_try" in
27947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27948 *) ac_try_echo=$ac_try;;
27950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27951 (eval "$ac_try") 2>&5
27953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27954 (exit $ac_status); }; }; then
27955 ac_cv_type_long_long_int=yes
27957 echo "$as_me: failed program was:" >&5
27958 sed 's/^/| /' conftest.$ac_ext >&5
27960 ac_cv_type_long_long_int=no
27963 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27965 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
27966 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6; }
27968 { echo "$as_me:$LINENO: checking size of long long int" >&5
27969 echo $ECHO_N "checking size of long long int... $ECHO_C" >&6; }
27970 if test "${ac_cv_sizeof_long_long_int+set}" = set; then
27971 echo $ECHO_N "(cached) $ECHO_C" >&6
27973 if test "$ac_cv_type_long_long_int" = yes; then
27974 # The cast to long int works around a bug in the HP C Compiler
27975 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27976 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27977 # This bug is HP SR number 8606223364.
27978 if test "$cross_compiling" = yes; then
27979 # Depending upon the size, compute the lo and hi bounds.
27980 cat >conftest.$ac_ext <<_ACEOF
27983 cat confdefs.h >>conftest.$ac_ext
27984 cat >>conftest.$ac_ext <<_ACEOF
27985 /* end confdefs.h. */
27986 $ac_includes_default
27987 typedef long long int ac__type_sizeof_;
27991 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
27998 rm -f conftest.$ac_objext
27999 if { (ac_try="$ac_compile"
28000 case "(($ac_try" in
28001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28002 *) ac_try_echo=$ac_try;;
28004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28005 (eval "$ac_compile") 2>conftest.er1
28007 grep -v '^ *+' conftest.er1 >conftest.err
28009 cat conftest.err >&5
28010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28011 (exit $ac_status); } &&
28012 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28013 { (case "(($ac_try" in
28014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28015 *) ac_try_echo=$ac_try;;
28017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28018 (eval "$ac_try") 2>&5
28020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28021 (exit $ac_status); }; } &&
28022 { ac_try='test -s conftest.$ac_objext'
28023 { (case "(($ac_try" in
28024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28025 *) ac_try_echo=$ac_try;;
28027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28028 (eval "$ac_try") 2>&5
28030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28031 (exit $ac_status); }; }; then
28034 cat >conftest.$ac_ext <<_ACEOF
28037 cat confdefs.h >>conftest.$ac_ext
28038 cat >>conftest.$ac_ext <<_ACEOF
28039 /* end confdefs.h. */
28040 $ac_includes_default
28041 typedef long long int ac__type_sizeof_;
28045 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
28052 rm -f conftest.$ac_objext
28053 if { (ac_try="$ac_compile"
28054 case "(($ac_try" in
28055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28056 *) ac_try_echo=$ac_try;;
28058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28059 (eval "$ac_compile") 2>conftest.er1
28061 grep -v '^ *+' conftest.er1 >conftest.err
28063 cat conftest.err >&5
28064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28065 (exit $ac_status); } &&
28066 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28067 { (case "(($ac_try" in
28068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28069 *) ac_try_echo=$ac_try;;
28071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28072 (eval "$ac_try") 2>&5
28074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28075 (exit $ac_status); }; } &&
28076 { ac_try='test -s conftest.$ac_objext'
28077 { (case "(($ac_try" in
28078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28079 *) ac_try_echo=$ac_try;;
28081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28082 (eval "$ac_try") 2>&5
28084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28085 (exit $ac_status); }; }; then
28086 ac_hi=$ac_mid; break
28088 echo "$as_me: failed program was:" >&5
28089 sed 's/^/| /' conftest.$ac_ext >&5
28091 ac_lo=`expr $ac_mid + 1`
28092 if test $ac_lo -le $ac_mid; then
28096 ac_mid=`expr 2 '*' $ac_mid + 1`
28099 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28102 echo "$as_me: failed program was:" >&5
28103 sed 's/^/| /' conftest.$ac_ext >&5
28105 cat >conftest.$ac_ext <<_ACEOF
28108 cat confdefs.h >>conftest.$ac_ext
28109 cat >>conftest.$ac_ext <<_ACEOF
28110 /* end confdefs.h. */
28111 $ac_includes_default
28112 typedef long long int ac__type_sizeof_;
28116 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
28123 rm -f conftest.$ac_objext
28124 if { (ac_try="$ac_compile"
28125 case "(($ac_try" in
28126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28127 *) ac_try_echo=$ac_try;;
28129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28130 (eval "$ac_compile") 2>conftest.er1
28132 grep -v '^ *+' conftest.er1 >conftest.err
28134 cat conftest.err >&5
28135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28136 (exit $ac_status); } &&
28137 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28138 { (case "(($ac_try" in
28139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28140 *) ac_try_echo=$ac_try;;
28142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28143 (eval "$ac_try") 2>&5
28145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28146 (exit $ac_status); }; } &&
28147 { ac_try='test -s conftest.$ac_objext'
28148 { (case "(($ac_try" in
28149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28150 *) ac_try_echo=$ac_try;;
28152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28153 (eval "$ac_try") 2>&5
28155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28156 (exit $ac_status); }; }; then
28159 cat >conftest.$ac_ext <<_ACEOF
28162 cat confdefs.h >>conftest.$ac_ext
28163 cat >>conftest.$ac_ext <<_ACEOF
28164 /* end confdefs.h. */
28165 $ac_includes_default
28166 typedef long long int ac__type_sizeof_;
28170 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
28177 rm -f conftest.$ac_objext
28178 if { (ac_try="$ac_compile"
28179 case "(($ac_try" in
28180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28181 *) ac_try_echo=$ac_try;;
28183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28184 (eval "$ac_compile") 2>conftest.er1
28186 grep -v '^ *+' conftest.er1 >conftest.err
28188 cat conftest.err >&5
28189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28190 (exit $ac_status); } &&
28191 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28192 { (case "(($ac_try" in
28193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28194 *) ac_try_echo=$ac_try;;
28196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28197 (eval "$ac_try") 2>&5
28199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28200 (exit $ac_status); }; } &&
28201 { ac_try='test -s conftest.$ac_objext'
28202 { (case "(($ac_try" in
28203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28204 *) ac_try_echo=$ac_try;;
28206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28207 (eval "$ac_try") 2>&5
28209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28210 (exit $ac_status); }; }; then
28211 ac_lo=$ac_mid; break
28213 echo "$as_me: failed program was:" >&5
28214 sed 's/^/| /' conftest.$ac_ext >&5
28216 ac_hi=`expr '(' $ac_mid ')' - 1`
28217 if test $ac_mid -le $ac_hi; then
28221 ac_mid=`expr 2 '*' $ac_mid`
28224 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28227 echo "$as_me: failed program was:" >&5
28228 sed 's/^/| /' conftest.$ac_ext >&5
28233 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28236 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28237 # Binary search between lo and hi bounds.
28238 while test "x$ac_lo" != "x$ac_hi"; do
28239 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
28240 cat >conftest.$ac_ext <<_ACEOF
28243 cat confdefs.h >>conftest.$ac_ext
28244 cat >>conftest.$ac_ext <<_ACEOF
28245 /* end confdefs.h. */
28246 $ac_includes_default
28247 typedef long long int ac__type_sizeof_;
28251 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
28258 rm -f conftest.$ac_objext
28259 if { (ac_try="$ac_compile"
28260 case "(($ac_try" in
28261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28262 *) ac_try_echo=$ac_try;;
28264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28265 (eval "$ac_compile") 2>conftest.er1
28267 grep -v '^ *+' conftest.er1 >conftest.err
28269 cat conftest.err >&5
28270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28271 (exit $ac_status); } &&
28272 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28273 { (case "(($ac_try" in
28274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28275 *) ac_try_echo=$ac_try;;
28277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28278 (eval "$ac_try") 2>&5
28280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28281 (exit $ac_status); }; } &&
28282 { ac_try='test -s conftest.$ac_objext'
28283 { (case "(($ac_try" in
28284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28285 *) ac_try_echo=$ac_try;;
28287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28288 (eval "$ac_try") 2>&5
28290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28291 (exit $ac_status); }; }; then
28294 echo "$as_me: failed program was:" >&5
28295 sed 's/^/| /' conftest.$ac_ext >&5
28297 ac_lo=`expr '(' $ac_mid ')' + 1`
28300 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28303 ?*) ac_cv_sizeof_long_long_int=$ac_lo;;
28304 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int)
28305 See \`config.log' for more details." >&5
28306 echo "$as_me: error: cannot compute sizeof (long long int)
28307 See \`config.log' for more details." >&2;}
28308 { (exit 77); exit 77; }; } ;;
28311 cat >conftest.$ac_ext <<_ACEOF
28314 cat confdefs.h >>conftest.$ac_ext
28315 cat >>conftest.$ac_ext <<_ACEOF
28316 /* end confdefs.h. */
28317 $ac_includes_default
28318 typedef long long int ac__type_sizeof_;
28319 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
28320 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
28322 #include <stdlib.h>
28327 FILE *f = fopen ("conftest.val", "w");
28330 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
28332 long int i = longval ();
28333 if (i != ((long int) (sizeof (ac__type_sizeof_))))
28335 fprintf (f, "%ld\n", i);
28339 unsigned long int i = ulongval ();
28340 if (i != ((long int) (sizeof (ac__type_sizeof_))))
28342 fprintf (f, "%lu\n", i);
28344 return ferror (f) || fclose (f) != 0;
28350 rm -f conftest$ac_exeext
28351 if { (ac_try="$ac_link"
28352 case "(($ac_try" in
28353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28354 *) ac_try_echo=$ac_try;;
28356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28357 (eval "$ac_link") 2>&5
28359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28360 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28361 { (case "(($ac_try" in
28362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28363 *) ac_try_echo=$ac_try;;
28365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28366 (eval "$ac_try") 2>&5
28368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28369 (exit $ac_status); }; }; then
28370 ac_cv_sizeof_long_long_int=`cat conftest.val`
28372 echo "$as_me: program exited with status $ac_status" >&5
28373 echo "$as_me: failed program was:" >&5
28374 sed 's/^/| /' conftest.$ac_ext >&5
28376 ( exit $ac_status )
28377 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int)
28378 See \`config.log' for more details." >&5
28379 echo "$as_me: error: cannot compute sizeof (long long int)
28380 See \`config.log' for more details." >&2;}
28381 { (exit 77); exit 77; }; }
28383 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28387 ac_cv_sizeof_long_long_int=0
28390 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long_int" >&5
28391 echo "${ECHO_T}$ac_cv_sizeof_long_long_int" >&6; }
28392 cat >>confdefs.h <<_ACEOF
28393 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
28397 { echo "$as_me:$LINENO: checking for int *" >&5
28398 echo $ECHO_N "checking for int *... $ECHO_C" >&6; }
28399 if test "${ac_cv_type_int_p+set}" = set; then
28400 echo $ECHO_N "(cached) $ECHO_C" >&6
28402 cat >conftest.$ac_ext <<_ACEOF
28405 cat confdefs.h >>conftest.$ac_ext
28406 cat >>conftest.$ac_ext <<_ACEOF
28407 /* end confdefs.h. */
28408 $ac_includes_default
28409 typedef int * ac__type_new_;
28413 if ((ac__type_new_ *) 0)
28415 if (sizeof (ac__type_new_))
28421 rm -f conftest.$ac_objext
28422 if { (ac_try="$ac_compile"
28423 case "(($ac_try" in
28424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28425 *) ac_try_echo=$ac_try;;
28427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28428 (eval "$ac_compile") 2>conftest.er1
28430 grep -v '^ *+' conftest.er1 >conftest.err
28432 cat conftest.err >&5
28433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28434 (exit $ac_status); } &&
28435 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28436 { (case "(($ac_try" in
28437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28438 *) ac_try_echo=$ac_try;;
28440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28441 (eval "$ac_try") 2>&5
28443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28444 (exit $ac_status); }; } &&
28445 { ac_try='test -s conftest.$ac_objext'
28446 { (case "(($ac_try" in
28447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28448 *) ac_try_echo=$ac_try;;
28450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28451 (eval "$ac_try") 2>&5
28453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28454 (exit $ac_status); }; }; then
28455 ac_cv_type_int_p=yes
28457 echo "$as_me: failed program was:" >&5
28458 sed 's/^/| /' conftest.$ac_ext >&5
28460 ac_cv_type_int_p=no
28463 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28465 { echo "$as_me:$LINENO: result: $ac_cv_type_int_p" >&5
28466 echo "${ECHO_T}$ac_cv_type_int_p" >&6; }
28468 { echo "$as_me:$LINENO: checking size of int *" >&5
28469 echo $ECHO_N "checking size of int *... $ECHO_C" >&6; }
28470 if test "${ac_cv_sizeof_int_p+set}" = set; then
28471 echo $ECHO_N "(cached) $ECHO_C" >&6
28473 if test "$ac_cv_type_int_p" = yes; then
28474 # The cast to long int works around a bug in the HP C Compiler
28475 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
28476 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
28477 # This bug is HP SR number 8606223364.
28478 if test "$cross_compiling" = yes; then
28479 # Depending upon the size, compute the lo and hi bounds.
28480 cat >conftest.$ac_ext <<_ACEOF
28483 cat confdefs.h >>conftest.$ac_ext
28484 cat >>conftest.$ac_ext <<_ACEOF
28485 /* end confdefs.h. */
28486 $ac_includes_default
28487 typedef int * ac__type_sizeof_;
28491 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
28498 rm -f conftest.$ac_objext
28499 if { (ac_try="$ac_compile"
28500 case "(($ac_try" in
28501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28502 *) ac_try_echo=$ac_try;;
28504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28505 (eval "$ac_compile") 2>conftest.er1
28507 grep -v '^ *+' conftest.er1 >conftest.err
28509 cat conftest.err >&5
28510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28511 (exit $ac_status); } &&
28512 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28513 { (case "(($ac_try" in
28514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28515 *) ac_try_echo=$ac_try;;
28517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28518 (eval "$ac_try") 2>&5
28520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28521 (exit $ac_status); }; } &&
28522 { ac_try='test -s conftest.$ac_objext'
28523 { (case "(($ac_try" in
28524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28525 *) ac_try_echo=$ac_try;;
28527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28528 (eval "$ac_try") 2>&5
28530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28531 (exit $ac_status); }; }; then
28534 cat >conftest.$ac_ext <<_ACEOF
28537 cat confdefs.h >>conftest.$ac_ext
28538 cat >>conftest.$ac_ext <<_ACEOF
28539 /* end confdefs.h. */
28540 $ac_includes_default
28541 typedef int * ac__type_sizeof_;
28545 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
28552 rm -f conftest.$ac_objext
28553 if { (ac_try="$ac_compile"
28554 case "(($ac_try" in
28555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28556 *) ac_try_echo=$ac_try;;
28558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28559 (eval "$ac_compile") 2>conftest.er1
28561 grep -v '^ *+' conftest.er1 >conftest.err
28563 cat conftest.err >&5
28564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28565 (exit $ac_status); } &&
28566 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28567 { (case "(($ac_try" in
28568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28569 *) ac_try_echo=$ac_try;;
28571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28572 (eval "$ac_try") 2>&5
28574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28575 (exit $ac_status); }; } &&
28576 { ac_try='test -s conftest.$ac_objext'
28577 { (case "(($ac_try" in
28578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28579 *) ac_try_echo=$ac_try;;
28581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28582 (eval "$ac_try") 2>&5
28584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28585 (exit $ac_status); }; }; then
28586 ac_hi=$ac_mid; break
28588 echo "$as_me: failed program was:" >&5
28589 sed 's/^/| /' conftest.$ac_ext >&5
28591 ac_lo=`expr $ac_mid + 1`
28592 if test $ac_lo -le $ac_mid; then
28596 ac_mid=`expr 2 '*' $ac_mid + 1`
28599 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28602 echo "$as_me: failed program was:" >&5
28603 sed 's/^/| /' conftest.$ac_ext >&5
28605 cat >conftest.$ac_ext <<_ACEOF
28608 cat confdefs.h >>conftest.$ac_ext
28609 cat >>conftest.$ac_ext <<_ACEOF
28610 /* end confdefs.h. */
28611 $ac_includes_default
28612 typedef int * ac__type_sizeof_;
28616 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
28623 rm -f conftest.$ac_objext
28624 if { (ac_try="$ac_compile"
28625 case "(($ac_try" in
28626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28627 *) ac_try_echo=$ac_try;;
28629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28630 (eval "$ac_compile") 2>conftest.er1
28632 grep -v '^ *+' conftest.er1 >conftest.err
28634 cat conftest.err >&5
28635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28636 (exit $ac_status); } &&
28637 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28638 { (case "(($ac_try" in
28639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28640 *) ac_try_echo=$ac_try;;
28642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28643 (eval "$ac_try") 2>&5
28645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28646 (exit $ac_status); }; } &&
28647 { ac_try='test -s conftest.$ac_objext'
28648 { (case "(($ac_try" in
28649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28650 *) ac_try_echo=$ac_try;;
28652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28653 (eval "$ac_try") 2>&5
28655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28656 (exit $ac_status); }; }; then
28659 cat >conftest.$ac_ext <<_ACEOF
28662 cat confdefs.h >>conftest.$ac_ext
28663 cat >>conftest.$ac_ext <<_ACEOF
28664 /* end confdefs.h. */
28665 $ac_includes_default
28666 typedef int * ac__type_sizeof_;
28670 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
28677 rm -f conftest.$ac_objext
28678 if { (ac_try="$ac_compile"
28679 case "(($ac_try" in
28680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28681 *) ac_try_echo=$ac_try;;
28683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28684 (eval "$ac_compile") 2>conftest.er1
28686 grep -v '^ *+' conftest.er1 >conftest.err
28688 cat conftest.err >&5
28689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28690 (exit $ac_status); } &&
28691 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28692 { (case "(($ac_try" in
28693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28694 *) ac_try_echo=$ac_try;;
28696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28697 (eval "$ac_try") 2>&5
28699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28700 (exit $ac_status); }; } &&
28701 { ac_try='test -s conftest.$ac_objext'
28702 { (case "(($ac_try" in
28703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28704 *) ac_try_echo=$ac_try;;
28706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28707 (eval "$ac_try") 2>&5
28709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28710 (exit $ac_status); }; }; then
28711 ac_lo=$ac_mid; break
28713 echo "$as_me: failed program was:" >&5
28714 sed 's/^/| /' conftest.$ac_ext >&5
28716 ac_hi=`expr '(' $ac_mid ')' - 1`
28717 if test $ac_mid -le $ac_hi; then
28721 ac_mid=`expr 2 '*' $ac_mid`
28724 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28727 echo "$as_me: failed program was:" >&5
28728 sed 's/^/| /' conftest.$ac_ext >&5
28733 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28736 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28737 # Binary search between lo and hi bounds.
28738 while test "x$ac_lo" != "x$ac_hi"; do
28739 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
28740 cat >conftest.$ac_ext <<_ACEOF
28743 cat confdefs.h >>conftest.$ac_ext
28744 cat >>conftest.$ac_ext <<_ACEOF
28745 /* end confdefs.h. */
28746 $ac_includes_default
28747 typedef int * ac__type_sizeof_;
28751 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
28758 rm -f conftest.$ac_objext
28759 if { (ac_try="$ac_compile"
28760 case "(($ac_try" in
28761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28762 *) ac_try_echo=$ac_try;;
28764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28765 (eval "$ac_compile") 2>conftest.er1
28767 grep -v '^ *+' conftest.er1 >conftest.err
28769 cat conftest.err >&5
28770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28771 (exit $ac_status); } &&
28772 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28773 { (case "(($ac_try" in
28774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28775 *) ac_try_echo=$ac_try;;
28777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28778 (eval "$ac_try") 2>&5
28780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28781 (exit $ac_status); }; } &&
28782 { ac_try='test -s conftest.$ac_objext'
28783 { (case "(($ac_try" in
28784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28785 *) ac_try_echo=$ac_try;;
28787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28788 (eval "$ac_try") 2>&5
28790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28791 (exit $ac_status); }; }; then
28794 echo "$as_me: failed program was:" >&5
28795 sed 's/^/| /' conftest.$ac_ext >&5
28797 ac_lo=`expr '(' $ac_mid ')' + 1`
28800 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28803 ?*) ac_cv_sizeof_int_p=$ac_lo;;
28804 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *)
28805 See \`config.log' for more details." >&5
28806 echo "$as_me: error: cannot compute sizeof (int *)
28807 See \`config.log' for more details." >&2;}
28808 { (exit 77); exit 77; }; } ;;
28811 cat >conftest.$ac_ext <<_ACEOF
28814 cat confdefs.h >>conftest.$ac_ext
28815 cat >>conftest.$ac_ext <<_ACEOF
28816 /* end confdefs.h. */
28817 $ac_includes_default
28818 typedef int * ac__type_sizeof_;
28819 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
28820 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
28822 #include <stdlib.h>
28827 FILE *f = fopen ("conftest.val", "w");
28830 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
28832 long int i = longval ();
28833 if (i != ((long int) (sizeof (ac__type_sizeof_))))
28835 fprintf (f, "%ld\n", i);
28839 unsigned long int i = ulongval ();
28840 if (i != ((long int) (sizeof (ac__type_sizeof_))))
28842 fprintf (f, "%lu\n", i);
28844 return ferror (f) || fclose (f) != 0;
28850 rm -f conftest$ac_exeext
28851 if { (ac_try="$ac_link"
28852 case "(($ac_try" in
28853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28854 *) ac_try_echo=$ac_try;;
28856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28857 (eval "$ac_link") 2>&5
28859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28860 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28861 { (case "(($ac_try" in
28862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28863 *) ac_try_echo=$ac_try;;
28865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28866 (eval "$ac_try") 2>&5
28868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28869 (exit $ac_status); }; }; then
28870 ac_cv_sizeof_int_p=`cat conftest.val`
28872 echo "$as_me: program exited with status $ac_status" >&5
28873 echo "$as_me: failed program was:" >&5
28874 sed 's/^/| /' conftest.$ac_ext >&5
28876 ( exit $ac_status )
28877 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *)
28878 See \`config.log' for more details." >&5
28879 echo "$as_me: error: cannot compute sizeof (int *)
28880 See \`config.log' for more details." >&2;}
28881 { (exit 77); exit 77; }; }
28883 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28887 ac_cv_sizeof_int_p=0
28890 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int_p" >&5
28891 echo "${ECHO_T}$ac_cv_sizeof_int_p" >&6; }
28892 cat >>confdefs.h <<_ACEOF
28893 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
28898 # Check for sys/types.h types
28899 { echo "$as_me:$LINENO: checking for u_int type" >&5
28900 echo $ECHO_N "checking for u_int type... $ECHO_C" >&6; }
28901 if test "${ac_cv_have_u_int+set}" = set; then
28902 echo $ECHO_N "(cached) $ECHO_C" >&6
28905 cat >conftest.$ac_ext <<_ACEOF
28908 cat confdefs.h >>conftest.$ac_ext
28909 cat >>conftest.$ac_ext <<_ACEOF
28910 /* end confdefs.h. */
28911 #include <sys/types.h>
28920 rm -f conftest.$ac_objext
28921 if { (ac_try="$ac_compile"
28922 case "(($ac_try" in
28923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28924 *) ac_try_echo=$ac_try;;
28926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28927 (eval "$ac_compile") 2>conftest.er1
28929 grep -v '^ *+' conftest.er1 >conftest.err
28931 cat conftest.err >&5
28932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28933 (exit $ac_status); } &&
28934 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28935 { (case "(($ac_try" in
28936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28937 *) ac_try_echo=$ac_try;;
28939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28940 (eval "$ac_try") 2>&5
28942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28943 (exit $ac_status); }; } &&
28944 { ac_try='test -s conftest.$ac_objext'
28945 { (case "(($ac_try" in
28946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28947 *) ac_try_echo=$ac_try;;
28949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28950 (eval "$ac_try") 2>&5
28952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28953 (exit $ac_status); }; }; then
28954 ac_cv_have_u_int="yes"
28956 echo "$as_me: failed program was:" >&5
28957 sed 's/^/| /' conftest.$ac_ext >&5
28959 ac_cv_have_u_int="no"
28963 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28966 { echo "$as_me:$LINENO: result: $ac_cv_have_u_int" >&5
28967 echo "${ECHO_T}$ac_cv_have_u_int" >&6; }
28968 if test "x$ac_cv_have_u_int" = "xyes" ; then
28969 cat >>confdefs.h <<\_ACEOF
28970 #define HAVE_U_INT 1
28976 { echo "$as_me:$LINENO: checking for intmax_t type" >&5
28977 echo $ECHO_N "checking for intmax_t type... $ECHO_C" >&6; }
28978 if test "${ac_cv_have_intmax_t+set}" = set; then
28979 echo $ECHO_N "(cached) $ECHO_C" >&6
28982 cat >conftest.$ac_ext <<_ACEOF
28985 cat confdefs.h >>conftest.$ac_ext
28986 cat >>conftest.$ac_ext <<_ACEOF
28987 /* end confdefs.h. */
28988 #include <sys/types.h>
28997 rm -f conftest.$ac_objext
28998 if { (ac_try="$ac_compile"
28999 case "(($ac_try" in
29000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29001 *) ac_try_echo=$ac_try;;
29003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29004 (eval "$ac_compile") 2>conftest.er1
29006 grep -v '^ *+' conftest.er1 >conftest.err
29008 cat conftest.err >&5
29009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29010 (exit $ac_status); } &&
29011 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29012 { (case "(($ac_try" in
29013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29014 *) ac_try_echo=$ac_try;;
29016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29017 (eval "$ac_try") 2>&5
29019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29020 (exit $ac_status); }; } &&
29021 { ac_try='test -s conftest.$ac_objext'
29022 { (case "(($ac_try" in
29023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29024 *) ac_try_echo=$ac_try;;
29026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29027 (eval "$ac_try") 2>&5
29029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29030 (exit $ac_status); }; }; then
29031 ac_cv_have_intmax_t="yes"
29033 echo "$as_me: failed program was:" >&5
29034 sed 's/^/| /' conftest.$ac_ext >&5
29037 cat >conftest.$ac_ext <<_ACEOF
29040 cat confdefs.h >>conftest.$ac_ext
29041 cat >>conftest.$ac_ext <<_ACEOF
29042 /* end confdefs.h. */
29043 #include <stdint.h>
29052 rm -f conftest.$ac_objext
29053 if { (ac_try="$ac_compile"
29054 case "(($ac_try" in
29055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29056 *) ac_try_echo=$ac_try;;
29058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29059 (eval "$ac_compile") 2>conftest.er1
29061 grep -v '^ *+' conftest.er1 >conftest.err
29063 cat conftest.err >&5
29064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29065 (exit $ac_status); } &&
29066 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29067 { (case "(($ac_try" in
29068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29069 *) ac_try_echo=$ac_try;;
29071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29072 (eval "$ac_try") 2>&5
29074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29075 (exit $ac_status); }; } &&
29076 { ac_try='test -s conftest.$ac_objext'
29077 { (case "(($ac_try" in
29078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29079 *) ac_try_echo=$ac_try;;
29081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29082 (eval "$ac_try") 2>&5
29084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29085 (exit $ac_status); }; }; then
29086 ac_cv_have_intmax_t="yes"
29088 echo "$as_me: failed program was:" >&5
29089 sed 's/^/| /' conftest.$ac_ext >&5
29091 ac_cv_have_intmax_t="no"
29095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29104 { echo "$as_me:$LINENO: result: $ac_cv_have_intmax_t" >&5
29105 echo "${ECHO_T}$ac_cv_have_intmax_t" >&6; }
29106 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
29107 cat >>confdefs.h <<\_ACEOF
29108 #define HAVE_INTMAX_T 1
29115 { echo "$as_me:$LINENO: checking for u_intmax_t type" >&5
29116 echo $ECHO_N "checking for u_intmax_t type... $ECHO_C" >&6; }
29117 if test "${ac_cv_have_u_intmax_t+set}" = set; then
29118 echo $ECHO_N "(cached) $ECHO_C" >&6
29121 cat >conftest.$ac_ext <<_ACEOF
29124 cat confdefs.h >>conftest.$ac_ext
29125 cat >>conftest.$ac_ext <<_ACEOF
29126 /* end confdefs.h. */
29127 #include <sys/types.h>
29131 u_intmax_t a; a = 1;
29136 rm -f conftest.$ac_objext
29137 if { (ac_try="$ac_compile"
29138 case "(($ac_try" in
29139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29140 *) ac_try_echo=$ac_try;;
29142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29143 (eval "$ac_compile") 2>conftest.er1
29145 grep -v '^ *+' conftest.er1 >conftest.err
29147 cat conftest.err >&5
29148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29149 (exit $ac_status); } &&
29150 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29151 { (case "(($ac_try" in
29152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29153 *) ac_try_echo=$ac_try;;
29155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29156 (eval "$ac_try") 2>&5
29158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29159 (exit $ac_status); }; } &&
29160 { ac_try='test -s conftest.$ac_objext'
29161 { (case "(($ac_try" in
29162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29163 *) ac_try_echo=$ac_try;;
29165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29166 (eval "$ac_try") 2>&5
29168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29169 (exit $ac_status); }; }; then
29170 ac_cv_have_u_intmax_t="yes"
29172 echo "$as_me: failed program was:" >&5
29173 sed 's/^/| /' conftest.$ac_ext >&5
29176 cat >conftest.$ac_ext <<_ACEOF
29179 cat confdefs.h >>conftest.$ac_ext
29180 cat >>conftest.$ac_ext <<_ACEOF
29181 /* end confdefs.h. */
29182 #include <stdint.h>
29186 u_intmax_t a; a = 1;
29191 rm -f conftest.$ac_objext
29192 if { (ac_try="$ac_compile"
29193 case "(($ac_try" in
29194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29195 *) ac_try_echo=$ac_try;;
29197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29198 (eval "$ac_compile") 2>conftest.er1
29200 grep -v '^ *+' conftest.er1 >conftest.err
29202 cat conftest.err >&5
29203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29204 (exit $ac_status); } &&
29205 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29206 { (case "(($ac_try" in
29207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29208 *) ac_try_echo=$ac_try;;
29210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29211 (eval "$ac_try") 2>&5
29213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29214 (exit $ac_status); }; } &&
29215 { ac_try='test -s conftest.$ac_objext'
29216 { (case "(($ac_try" in
29217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29218 *) ac_try_echo=$ac_try;;
29220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29221 (eval "$ac_try") 2>&5
29223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29224 (exit $ac_status); }; }; then
29225 ac_cv_have_u_intmax_t="yes"
29227 echo "$as_me: failed program was:" >&5
29228 sed 's/^/| /' conftest.$ac_ext >&5
29230 ac_cv_have_u_intmax_t="no"
29234 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29239 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29242 { echo "$as_me:$LINENO: result: $ac_cv_have_u_intmax_t" >&5
29243 echo "${ECHO_T}$ac_cv_have_u_intmax_t" >&6; }
29244 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
29245 cat >>confdefs.h <<\_ACEOF
29246 #define HAVE_U_INTMAX_T 1
29253 { echo "$as_me:$LINENO: checking for intXX_t types" >&5
29254 echo $ECHO_N "checking for intXX_t types... $ECHO_C" >&6; }
29255 if test "${ac_cv_have_intxx_t+set}" = set; then
29256 echo $ECHO_N "(cached) $ECHO_C" >&6
29259 cat >conftest.$ac_ext <<_ACEOF
29262 cat confdefs.h >>conftest.$ac_ext
29263 cat >>conftest.$ac_ext <<_ACEOF
29264 /* end confdefs.h. */
29265 #include <sys/types.h>
29269 int8_t a; int16_t b; int32_t c; a = b = c = 1;
29274 rm -f conftest.$ac_objext
29275 if { (ac_try="$ac_compile"
29276 case "(($ac_try" in
29277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29278 *) ac_try_echo=$ac_try;;
29280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29281 (eval "$ac_compile") 2>conftest.er1
29283 grep -v '^ *+' conftest.er1 >conftest.err
29285 cat conftest.err >&5
29286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29287 (exit $ac_status); } &&
29288 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29289 { (case "(($ac_try" in
29290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29291 *) ac_try_echo=$ac_try;;
29293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29294 (eval "$ac_try") 2>&5
29296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29297 (exit $ac_status); }; } &&
29298 { ac_try='test -s conftest.$ac_objext'
29299 { (case "(($ac_try" in
29300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29301 *) ac_try_echo=$ac_try;;
29303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29304 (eval "$ac_try") 2>&5
29306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29307 (exit $ac_status); }; }; then
29308 ac_cv_have_intxx_t="yes"
29310 echo "$as_me: failed program was:" >&5
29311 sed 's/^/| /' conftest.$ac_ext >&5
29313 ac_cv_have_intxx_t="no"
29317 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29320 { echo "$as_me:$LINENO: result: $ac_cv_have_intxx_t" >&5
29321 echo "${ECHO_T}$ac_cv_have_intxx_t" >&6; }
29322 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
29323 cat >>confdefs.h <<\_ACEOF
29324 #define HAVE_INTXX_T 1
29330 { echo "$as_me:$LINENO: checking for int64_t type" >&5
29331 echo $ECHO_N "checking for int64_t type... $ECHO_C" >&6; }
29332 if test "${ac_cv_have_int64_t+set}" = set; then
29333 echo $ECHO_N "(cached) $ECHO_C" >&6
29336 cat >conftest.$ac_ext <<_ACEOF
29339 cat confdefs.h >>conftest.$ac_ext
29340 cat >>conftest.$ac_ext <<_ACEOF
29341 /* end confdefs.h. */
29342 #include <sys/types.h>
29351 rm -f conftest.$ac_objext
29352 if { (ac_try="$ac_compile"
29353 case "(($ac_try" in
29354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29355 *) ac_try_echo=$ac_try;;
29357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29358 (eval "$ac_compile") 2>conftest.er1
29360 grep -v '^ *+' conftest.er1 >conftest.err
29362 cat conftest.err >&5
29363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29364 (exit $ac_status); } &&
29365 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29366 { (case "(($ac_try" in
29367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29368 *) ac_try_echo=$ac_try;;
29370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29371 (eval "$ac_try") 2>&5
29373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29374 (exit $ac_status); }; } &&
29375 { ac_try='test -s conftest.$ac_objext'
29376 { (case "(($ac_try" in
29377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29378 *) ac_try_echo=$ac_try;;
29380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29381 (eval "$ac_try") 2>&5
29383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29384 (exit $ac_status); }; }; then
29385 ac_cv_have_int64_t="yes"
29387 echo "$as_me: failed program was:" >&5
29388 sed 's/^/| /' conftest.$ac_ext >&5
29390 ac_cv_have_int64_t="no"
29394 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29397 { echo "$as_me:$LINENO: result: $ac_cv_have_int64_t" >&5
29398 echo "${ECHO_T}$ac_cv_have_int64_t" >&6; }
29399 if test "x$ac_cv_have_int64_t" = "xyes" ; then
29400 cat >>confdefs.h <<\_ACEOF
29401 #define HAVE_INT64_T 1
29407 { echo "$as_me:$LINENO: checking for u_intXX_t types" >&5
29408 echo $ECHO_N "checking for u_intXX_t types... $ECHO_C" >&6; }
29409 if test "${ac_cv_have_u_intxx_t+set}" = set; then
29410 echo $ECHO_N "(cached) $ECHO_C" >&6
29413 cat >conftest.$ac_ext <<_ACEOF
29416 cat confdefs.h >>conftest.$ac_ext
29417 cat >>conftest.$ac_ext <<_ACEOF
29418 /* end confdefs.h. */
29419 #include <sys/types.h>
29423 u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
29428 rm -f conftest.$ac_objext
29429 if { (ac_try="$ac_compile"
29430 case "(($ac_try" in
29431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29432 *) ac_try_echo=$ac_try;;
29434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29435 (eval "$ac_compile") 2>conftest.er1
29437 grep -v '^ *+' conftest.er1 >conftest.err
29439 cat conftest.err >&5
29440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29441 (exit $ac_status); } &&
29442 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29443 { (case "(($ac_try" in
29444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29445 *) ac_try_echo=$ac_try;;
29447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29448 (eval "$ac_try") 2>&5
29450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29451 (exit $ac_status); }; } &&
29452 { ac_try='test -s conftest.$ac_objext'
29453 { (case "(($ac_try" in
29454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29455 *) ac_try_echo=$ac_try;;
29457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29458 (eval "$ac_try") 2>&5
29460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29461 (exit $ac_status); }; }; then
29462 ac_cv_have_u_intxx_t="yes"
29464 echo "$as_me: failed program was:" >&5
29465 sed 's/^/| /' conftest.$ac_ext >&5
29467 ac_cv_have_u_intxx_t="no"
29471 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29474 { echo "$as_me:$LINENO: result: $ac_cv_have_u_intxx_t" >&5
29475 echo "${ECHO_T}$ac_cv_have_u_intxx_t" >&6; }
29476 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
29477 cat >>confdefs.h <<\_ACEOF
29478 #define HAVE_U_INTXX_T 1
29484 { echo "$as_me:$LINENO: checking for u_int64_t types" >&5
29485 echo $ECHO_N "checking for u_int64_t types... $ECHO_C" >&6; }
29486 if test "${ac_cv_have_u_int64_t+set}" = set; then
29487 echo $ECHO_N "(cached) $ECHO_C" >&6
29490 cat >conftest.$ac_ext <<_ACEOF
29493 cat confdefs.h >>conftest.$ac_ext
29494 cat >>conftest.$ac_ext <<_ACEOF
29495 /* end confdefs.h. */
29496 #include <sys/types.h>
29500 u_int64_t a; a = 1;
29505 rm -f conftest.$ac_objext
29506 if { (ac_try="$ac_compile"
29507 case "(($ac_try" in
29508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29509 *) ac_try_echo=$ac_try;;
29511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29512 (eval "$ac_compile") 2>conftest.er1
29514 grep -v '^ *+' conftest.er1 >conftest.err
29516 cat conftest.err >&5
29517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29518 (exit $ac_status); } &&
29519 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29520 { (case "(($ac_try" in
29521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29522 *) ac_try_echo=$ac_try;;
29524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29525 (eval "$ac_try") 2>&5
29527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29528 (exit $ac_status); }; } &&
29529 { ac_try='test -s conftest.$ac_objext'
29530 { (case "(($ac_try" in
29531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29532 *) ac_try_echo=$ac_try;;
29534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29535 (eval "$ac_try") 2>&5
29537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29538 (exit $ac_status); }; }; then
29539 ac_cv_have_u_int64_t="yes"
29541 echo "$as_me: failed program was:" >&5
29542 sed 's/^/| /' conftest.$ac_ext >&5
29544 ac_cv_have_u_int64_t="no"
29548 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29551 { echo "$as_me:$LINENO: result: $ac_cv_have_u_int64_t" >&5
29552 echo "${ECHO_T}$ac_cv_have_u_int64_t" >&6; }
29553 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
29554 cat >>confdefs.h <<\_ACEOF
29555 #define HAVE_U_INT64_T 1
29561 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
29562 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
29564 { echo "$as_me:$LINENO: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
29565 echo $ECHO_N "checking for intXX_t and u_intXX_t types in sys/bitypes.h... $ECHO_C" >&6; }
29566 cat >conftest.$ac_ext <<_ACEOF
29569 cat confdefs.h >>conftest.$ac_ext
29570 cat >>conftest.$ac_ext <<_ACEOF
29571 /* end confdefs.h. */
29572 #include <sys/bitypes.h>
29576 int8_t a; int16_t b; int32_t c;
29577 u_int8_t e; u_int16_t f; u_int32_t g;
29578 a = b = c = e = f = g = 1;
29583 rm -f conftest.$ac_objext
29584 if { (ac_try="$ac_compile"
29585 case "(($ac_try" in
29586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29587 *) ac_try_echo=$ac_try;;
29589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29590 (eval "$ac_compile") 2>conftest.er1
29592 grep -v '^ *+' conftest.er1 >conftest.err
29594 cat conftest.err >&5
29595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29596 (exit $ac_status); } &&
29597 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29598 { (case "(($ac_try" in
29599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29600 *) ac_try_echo=$ac_try;;
29602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29603 (eval "$ac_try") 2>&5
29605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29606 (exit $ac_status); }; } &&
29607 { ac_try='test -s conftest.$ac_objext'
29608 { (case "(($ac_try" in
29609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29610 *) ac_try_echo=$ac_try;;
29612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29613 (eval "$ac_try") 2>&5
29615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29616 (exit $ac_status); }; }; then
29617 cat >>confdefs.h <<\_ACEOF
29618 #define HAVE_U_INTXX_T 1
29621 cat >>confdefs.h <<\_ACEOF
29622 #define HAVE_INTXX_T 1
29625 cat >>confdefs.h <<\_ACEOF
29626 #define HAVE_SYS_BITYPES_H 1
29629 { echo "$as_me:$LINENO: result: yes" >&5
29630 echo "${ECHO_T}yes" >&6; }
29632 echo "$as_me: failed program was:" >&5
29633 sed 's/^/| /' conftest.$ac_ext >&5
29635 { echo "$as_me:$LINENO: result: no" >&5
29636 echo "${ECHO_T}no" >&6; }
29640 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29643 if test -z "$have_u_intxx_t" ; then
29644 { echo "$as_me:$LINENO: checking for uintXX_t types" >&5
29645 echo $ECHO_N "checking for uintXX_t types... $ECHO_C" >&6; }
29646 if test "${ac_cv_have_uintxx_t+set}" = set; then
29647 echo $ECHO_N "(cached) $ECHO_C" >&6
29650 cat >conftest.$ac_ext <<_ACEOF
29653 cat confdefs.h >>conftest.$ac_ext
29654 cat >>conftest.$ac_ext <<_ACEOF
29655 /* end confdefs.h. */
29656 #include <sys/types.h>
29660 uint8_t a; uint16_t b;
29661 uint32_t c; a = b = c = 1;
29666 rm -f conftest.$ac_objext
29667 if { (ac_try="$ac_compile"
29668 case "(($ac_try" in
29669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29670 *) ac_try_echo=$ac_try;;
29672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29673 (eval "$ac_compile") 2>conftest.er1
29675 grep -v '^ *+' conftest.er1 >conftest.err
29677 cat conftest.err >&5
29678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29679 (exit $ac_status); } &&
29680 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29681 { (case "(($ac_try" in
29682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29683 *) ac_try_echo=$ac_try;;
29685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29686 (eval "$ac_try") 2>&5
29688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29689 (exit $ac_status); }; } &&
29690 { ac_try='test -s conftest.$ac_objext'
29691 { (case "(($ac_try" in
29692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29693 *) ac_try_echo=$ac_try;;
29695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29696 (eval "$ac_try") 2>&5
29698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29699 (exit $ac_status); }; }; then
29700 ac_cv_have_uintxx_t="yes"
29702 echo "$as_me: failed program was:" >&5
29703 sed 's/^/| /' conftest.$ac_ext >&5
29705 ac_cv_have_uintxx_t="no"
29709 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29712 { echo "$as_me:$LINENO: result: $ac_cv_have_uintxx_t" >&5
29713 echo "${ECHO_T}$ac_cv_have_uintxx_t" >&6; }
29714 if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
29715 cat >>confdefs.h <<\_ACEOF
29716 #define HAVE_UINTXX_T 1
29722 if (test -z "$have_u_int64_t" || test -z "$have_int64_t" && \
29723 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
29725 { echo "$as_me:$LINENO: checking for int64_t and u_int64_t types in sys/bitypes.h" >&5
29726 echo $ECHO_N "checking for int64_t and u_int64_t types in sys/bitypes.h... $ECHO_C" >&6; }
29727 cat >conftest.$ac_ext <<_ACEOF
29730 cat confdefs.h >>conftest.$ac_ext
29731 cat >>conftest.$ac_ext <<_ACEOF
29732 /* end confdefs.h. */
29733 #include <sys/bitypes.h>
29737 int64_t a; u_int64_t b;
29743 rm -f conftest.$ac_objext
29744 if { (ac_try="$ac_compile"
29745 case "(($ac_try" in
29746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29747 *) ac_try_echo=$ac_try;;
29749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29750 (eval "$ac_compile") 2>conftest.er1
29752 grep -v '^ *+' conftest.er1 >conftest.err
29754 cat conftest.err >&5
29755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29756 (exit $ac_status); } &&
29757 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29758 { (case "(($ac_try" in
29759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29760 *) ac_try_echo=$ac_try;;
29762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29763 (eval "$ac_try") 2>&5
29765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29766 (exit $ac_status); }; } &&
29767 { ac_try='test -s conftest.$ac_objext'
29768 { (case "(($ac_try" in
29769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29770 *) ac_try_echo=$ac_try;;
29772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29773 (eval "$ac_try") 2>&5
29775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29776 (exit $ac_status); }; }; then
29777 cat >>confdefs.h <<\_ACEOF
29778 #define HAVE_U_INT64_T 1
29781 cat >>confdefs.h <<\_ACEOF
29782 #define HAVE_INT64_T 1
29785 { echo "$as_me:$LINENO: result: yes" >&5
29786 echo "${ECHO_T}yes" >&6; }
29788 echo "$as_me: failed program was:" >&5
29789 sed 's/^/| /' conftest.$ac_ext >&5
29791 { echo "$as_me:$LINENO: result: no" >&5
29792 echo "${ECHO_T}no" >&6; }
29796 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29799 if (test -z "$have_uintxx_t" && \
29800 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
29802 { echo "$as_me:$LINENO: checking for uintXX_t types in sys/bitypes.h" >&5
29803 echo $ECHO_N "checking for uintXX_t types in sys/bitypes.h... $ECHO_C" >&6; }
29804 cat >conftest.$ac_ext <<_ACEOF
29807 cat confdefs.h >>conftest.$ac_ext
29808 cat >>conftest.$ac_ext <<_ACEOF
29809 /* end confdefs.h. */
29810 #include <sys/bitypes.h>
29814 uint8_t a; uint16_t b;
29815 uint32_t c; a = b = c = 1;
29820 rm -f conftest.$ac_objext
29821 if { (ac_try="$ac_compile"
29822 case "(($ac_try" in
29823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29824 *) ac_try_echo=$ac_try;;
29826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29827 (eval "$ac_compile") 2>conftest.er1
29829 grep -v '^ *+' conftest.er1 >conftest.err
29831 cat conftest.err >&5
29832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29833 (exit $ac_status); } &&
29834 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29835 { (case "(($ac_try" in
29836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29837 *) ac_try_echo=$ac_try;;
29839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29840 (eval "$ac_try") 2>&5
29842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29843 (exit $ac_status); }; } &&
29844 { ac_try='test -s conftest.$ac_objext'
29845 { (case "(($ac_try" in
29846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29847 *) ac_try_echo=$ac_try;;
29849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29850 (eval "$ac_try") 2>&5
29852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29853 (exit $ac_status); }; }; then
29854 cat >>confdefs.h <<\_ACEOF
29855 #define HAVE_UINTXX_T 1
29858 { echo "$as_me:$LINENO: result: yes" >&5
29859 echo "${ECHO_T}yes" >&6; }
29861 echo "$as_me: failed program was:" >&5
29862 sed 's/^/| /' conftest.$ac_ext >&5
29864 { echo "$as_me:$LINENO: result: no" >&5
29865 echo "${ECHO_T}no" >&6; }
29869 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29905 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29906 { echo "$as_me:$LINENO: checking for $ac_func" >&5
29907 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
29908 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
29909 echo $ECHO_N "(cached) $ECHO_C" >&6
29911 cat >conftest.$ac_ext <<_ACEOF
29914 cat confdefs.h >>conftest.$ac_ext
29915 cat >>conftest.$ac_ext <<_ACEOF
29916 /* end confdefs.h. */
29917 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29918 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29919 #define $ac_func innocuous_$ac_func
29921 /* System header to define __stub macros and hopefully few prototypes,
29922 which can conflict with char $ac_func (); below.
29923 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29924 <limits.h> exists even on freestanding compilers. */
29927 # include <limits.h>
29929 # include <assert.h>
29934 /* Override any GCC internal prototype to avoid an error.
29935 Use char because int might match the return type of a GCC
29936 builtin and then its argument prototype would still apply. */
29941 /* The GNU C library defines this for functions which it implements
29942 to always fail with ENOSYS. Some functions are actually named
29943 something starting with __ and the normal name is an alias. */
29944 #if defined __stub_$ac_func || defined __stub___$ac_func
29951 return $ac_func ();
29956 rm -f conftest.$ac_objext conftest$ac_exeext
29957 if { (ac_try="$ac_link"
29958 case "(($ac_try" in
29959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29960 *) ac_try_echo=$ac_try;;
29962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29963 (eval "$ac_link") 2>conftest.er1
29965 grep -v '^ *+' conftest.er1 >conftest.err
29967 cat conftest.err >&5
29968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29969 (exit $ac_status); } &&
29970 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29971 { (case "(($ac_try" in
29972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29973 *) ac_try_echo=$ac_try;;
29975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29976 (eval "$ac_try") 2>&5
29978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29979 (exit $ac_status); }; } &&
29980 { ac_try='test -s conftest$ac_exeext'
29981 { (case "(($ac_try" in
29982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29983 *) ac_try_echo=$ac_try;;
29985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29986 (eval "$ac_try") 2>&5
29988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29989 (exit $ac_status); }; }; then
29990 eval "$as_ac_var=yes"
29992 echo "$as_me: failed program was:" >&5
29993 sed 's/^/| /' conftest.$ac_ext >&5
29995 eval "$as_ac_var=no"
29998 rm -f core conftest.err conftest.$ac_objext \
29999 conftest$ac_exeext conftest.$ac_ext
30001 ac_res=`eval echo '${'$as_ac_var'}'`
30002 { echo "$as_me:$LINENO: result: $ac_res" >&5
30003 echo "${ECHO_T}$ac_res" >&6; }
30004 if test `eval echo '${'$as_ac_var'}'` = yes; then
30005 cat >>confdefs.h <<_ACEOF
30006 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30010 echo 'configure: cannot find needed function.'; exit 1
30017 for ac_func in fchdir
30019 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30020 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30021 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30022 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30023 echo $ECHO_N "(cached) $ECHO_C" >&6
30025 cat >conftest.$ac_ext <<_ACEOF
30028 cat confdefs.h >>conftest.$ac_ext
30029 cat >>conftest.$ac_ext <<_ACEOF
30030 /* end confdefs.h. */
30031 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30032 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30033 #define $ac_func innocuous_$ac_func
30035 /* System header to define __stub macros and hopefully few prototypes,
30036 which can conflict with char $ac_func (); below.
30037 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30038 <limits.h> exists even on freestanding compilers. */
30041 # include <limits.h>
30043 # include <assert.h>
30048 /* Override any GCC internal prototype to avoid an error.
30049 Use char because int might match the return type of a GCC
30050 builtin and then its argument prototype would still apply. */
30055 /* The GNU C library defines this for functions which it implements
30056 to always fail with ENOSYS. Some functions are actually named
30057 something starting with __ and the normal name is an alias. */
30058 #if defined __stub_$ac_func || defined __stub___$ac_func
30065 return $ac_func ();
30070 rm -f conftest.$ac_objext conftest$ac_exeext
30071 if { (ac_try="$ac_link"
30072 case "(($ac_try" in
30073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30074 *) ac_try_echo=$ac_try;;
30076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30077 (eval "$ac_link") 2>conftest.er1
30079 grep -v '^ *+' conftest.er1 >conftest.err
30081 cat conftest.err >&5
30082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30083 (exit $ac_status); } &&
30084 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30085 { (case "(($ac_try" in
30086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30087 *) ac_try_echo=$ac_try;;
30089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30090 (eval "$ac_try") 2>&5
30092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30093 (exit $ac_status); }; } &&
30094 { ac_try='test -s conftest$ac_exeext'
30095 { (case "(($ac_try" in
30096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30097 *) ac_try_echo=$ac_try;;
30099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30100 (eval "$ac_try") 2>&5
30102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30103 (exit $ac_status); }; }; then
30104 eval "$as_ac_var=yes"
30106 echo "$as_me: failed program was:" >&5
30107 sed 's/^/| /' conftest.$ac_ext >&5
30109 eval "$as_ac_var=no"
30112 rm -f core conftest.err conftest.$ac_objext \
30113 conftest$ac_exeext conftest.$ac_ext
30115 ac_res=`eval echo '${'$as_ac_var'}'`
30116 { echo "$as_me:$LINENO: result: $ac_res" >&5
30117 echo "${ECHO_T}$ac_res" >&6; }
30118 if test `eval echo '${'$as_ac_var'}'` = yes; then
30119 cat >>confdefs.h <<_ACEOF
30120 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30122 cat >>confdefs.h <<\_ACEOF
30123 #define HAVE_FCHDIR 1
30130 for ac_func in strtoll
30132 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30133 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30134 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30135 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30136 echo $ECHO_N "(cached) $ECHO_C" >&6
30138 cat >conftest.$ac_ext <<_ACEOF
30141 cat confdefs.h >>conftest.$ac_ext
30142 cat >>conftest.$ac_ext <<_ACEOF
30143 /* end confdefs.h. */
30144 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30145 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30146 #define $ac_func innocuous_$ac_func
30148 /* System header to define __stub macros and hopefully few prototypes,
30149 which can conflict with char $ac_func (); below.
30150 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30151 <limits.h> exists even on freestanding compilers. */
30154 # include <limits.h>
30156 # include <assert.h>
30161 /* Override any GCC internal prototype to avoid an error.
30162 Use char because int might match the return type of a GCC
30163 builtin and then its argument prototype would still apply. */
30168 /* The GNU C library defines this for functions which it implements
30169 to always fail with ENOSYS. Some functions are actually named
30170 something starting with __ and the normal name is an alias. */
30171 #if defined __stub_$ac_func || defined __stub___$ac_func
30178 return $ac_func ();
30183 rm -f conftest.$ac_objext conftest$ac_exeext
30184 if { (ac_try="$ac_link"
30185 case "(($ac_try" in
30186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30187 *) ac_try_echo=$ac_try;;
30189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30190 (eval "$ac_link") 2>conftest.er1
30192 grep -v '^ *+' conftest.er1 >conftest.err
30194 cat conftest.err >&5
30195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30196 (exit $ac_status); } &&
30197 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30198 { (case "(($ac_try" in
30199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30200 *) ac_try_echo=$ac_try;;
30202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30203 (eval "$ac_try") 2>&5
30205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30206 (exit $ac_status); }; } &&
30207 { ac_try='test -s conftest$ac_exeext'
30208 { (case "(($ac_try" in
30209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30210 *) ac_try_echo=$ac_try;;
30212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30213 (eval "$ac_try") 2>&5
30215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30216 (exit $ac_status); }; }; then
30217 eval "$as_ac_var=yes"
30219 echo "$as_me: failed program was:" >&5
30220 sed 's/^/| /' conftest.$ac_ext >&5
30222 eval "$as_ac_var=no"
30225 rm -f core conftest.err conftest.$ac_objext \
30226 conftest$ac_exeext conftest.$ac_ext
30228 ac_res=`eval echo '${'$as_ac_var'}'`
30229 { echo "$as_me:$LINENO: result: $ac_res" >&5
30230 echo "${ECHO_T}$ac_res" >&6; }
30231 if test `eval echo '${'$as_ac_var'}'` = yes; then
30232 cat >>confdefs.h <<_ACEOF
30233 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30235 cat >>confdefs.h <<\_ACEOF
30236 #define HAVE_STRTOLL 1
30243 for ac_func in posix_fadvise
30245 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30246 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30247 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30248 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30249 echo $ECHO_N "(cached) $ECHO_C" >&6
30251 cat >conftest.$ac_ext <<_ACEOF
30254 cat confdefs.h >>conftest.$ac_ext
30255 cat >>conftest.$ac_ext <<_ACEOF
30256 /* end confdefs.h. */
30257 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30258 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30259 #define $ac_func innocuous_$ac_func
30261 /* System header to define __stub macros and hopefully few prototypes,
30262 which can conflict with char $ac_func (); below.
30263 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30264 <limits.h> exists even on freestanding compilers. */
30267 # include <limits.h>
30269 # include <assert.h>
30274 /* Override any GCC internal prototype to avoid an error.
30275 Use char because int might match the return type of a GCC
30276 builtin and then its argument prototype would still apply. */
30281 /* The GNU C library defines this for functions which it implements
30282 to always fail with ENOSYS. Some functions are actually named
30283 something starting with __ and the normal name is an alias. */
30284 #if defined __stub_$ac_func || defined __stub___$ac_func
30291 return $ac_func ();
30296 rm -f conftest.$ac_objext conftest$ac_exeext
30297 if { (ac_try="$ac_link"
30298 case "(($ac_try" in
30299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30300 *) ac_try_echo=$ac_try;;
30302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30303 (eval "$ac_link") 2>conftest.er1
30305 grep -v '^ *+' conftest.er1 >conftest.err
30307 cat conftest.err >&5
30308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30309 (exit $ac_status); } &&
30310 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30311 { (case "(($ac_try" in
30312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30313 *) ac_try_echo=$ac_try;;
30315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30316 (eval "$ac_try") 2>&5
30318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30319 (exit $ac_status); }; } &&
30320 { ac_try='test -s conftest$ac_exeext'
30321 { (case "(($ac_try" in
30322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30323 *) ac_try_echo=$ac_try;;
30325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30326 (eval "$ac_try") 2>&5
30328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30329 (exit $ac_status); }; }; then
30330 eval "$as_ac_var=yes"
30332 echo "$as_me: failed program was:" >&5
30333 sed 's/^/| /' conftest.$ac_ext >&5
30335 eval "$as_ac_var=no"
30338 rm -f core conftest.err conftest.$ac_objext \
30339 conftest$ac_exeext conftest.$ac_ext
30341 ac_res=`eval echo '${'$as_ac_var'}'`
30342 { echo "$as_me:$LINENO: result: $ac_res" >&5
30343 echo "${ECHO_T}$ac_res" >&6; }
30344 if test `eval echo '${'$as_ac_var'}'` = yes; then
30345 cat >>confdefs.h <<_ACEOF
30346 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30353 for ac_func in fdatasync
30355 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30356 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30357 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30358 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30359 echo $ECHO_N "(cached) $ECHO_C" >&6
30361 cat >conftest.$ac_ext <<_ACEOF
30364 cat confdefs.h >>conftest.$ac_ext
30365 cat >>conftest.$ac_ext <<_ACEOF
30366 /* end confdefs.h. */
30367 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30368 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30369 #define $ac_func innocuous_$ac_func
30371 /* System header to define __stub macros and hopefully few prototypes,
30372 which can conflict with char $ac_func (); below.
30373 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30374 <limits.h> exists even on freestanding compilers. */
30377 # include <limits.h>
30379 # include <assert.h>
30384 /* Override any GCC internal prototype to avoid an error.
30385 Use char because int might match the return type of a GCC
30386 builtin and then its argument prototype would still apply. */
30391 /* The GNU C library defines this for functions which it implements
30392 to always fail with ENOSYS. Some functions are actually named
30393 something starting with __ and the normal name is an alias. */
30394 #if defined __stub_$ac_func || defined __stub___$ac_func
30401 return $ac_func ();
30406 rm -f conftest.$ac_objext conftest$ac_exeext
30407 if { (ac_try="$ac_link"
30408 case "(($ac_try" in
30409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30410 *) ac_try_echo=$ac_try;;
30412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30413 (eval "$ac_link") 2>conftest.er1
30415 grep -v '^ *+' conftest.er1 >conftest.err
30417 cat conftest.err >&5
30418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30419 (exit $ac_status); } &&
30420 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30421 { (case "(($ac_try" in
30422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30423 *) ac_try_echo=$ac_try;;
30425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30426 (eval "$ac_try") 2>&5
30428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30429 (exit $ac_status); }; } &&
30430 { ac_try='test -s conftest$ac_exeext'
30431 { (case "(($ac_try" in
30432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30433 *) ac_try_echo=$ac_try;;
30435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30436 (eval "$ac_try") 2>&5
30438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30439 (exit $ac_status); }; }; then
30440 eval "$as_ac_var=yes"
30442 echo "$as_me: failed program was:" >&5
30443 sed 's/^/| /' conftest.$ac_ext >&5
30445 eval "$as_ac_var=no"
30448 rm -f core conftest.err conftest.$ac_objext \
30449 conftest$ac_exeext conftest.$ac_ext
30451 ac_res=`eval echo '${'$as_ac_var'}'`
30452 { echo "$as_me:$LINENO: result: $ac_res" >&5
30453 echo "${ECHO_T}$ac_res" >&6; }
30454 if test `eval echo '${'$as_ac_var'}'` = yes; then
30455 cat >>confdefs.h <<_ACEOF
30456 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30464 for ac_func in chflags
30466 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30467 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30468 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30469 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30470 echo $ECHO_N "(cached) $ECHO_C" >&6
30472 cat >conftest.$ac_ext <<_ACEOF
30475 cat confdefs.h >>conftest.$ac_ext
30476 cat >>conftest.$ac_ext <<_ACEOF
30477 /* end confdefs.h. */
30478 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30479 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30480 #define $ac_func innocuous_$ac_func
30482 /* System header to define __stub macros and hopefully few prototypes,
30483 which can conflict with char $ac_func (); below.
30484 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30485 <limits.h> exists even on freestanding compilers. */
30488 # include <limits.h>
30490 # include <assert.h>
30495 /* Override any GCC internal prototype to avoid an error.
30496 Use char because int might match the return type of a GCC
30497 builtin and then its argument prototype would still apply. */
30502 /* The GNU C library defines this for functions which it implements
30503 to always fail with ENOSYS. Some functions are actually named
30504 something starting with __ and the normal name is an alias. */
30505 #if defined __stub_$ac_func || defined __stub___$ac_func
30512 return $ac_func ();
30517 rm -f conftest.$ac_objext conftest$ac_exeext
30518 if { (ac_try="$ac_link"
30519 case "(($ac_try" in
30520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30521 *) ac_try_echo=$ac_try;;
30523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30524 (eval "$ac_link") 2>conftest.er1
30526 grep -v '^ *+' conftest.er1 >conftest.err
30528 cat conftest.err >&5
30529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30530 (exit $ac_status); } &&
30531 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30532 { (case "(($ac_try" in
30533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30534 *) ac_try_echo=$ac_try;;
30536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30537 (eval "$ac_try") 2>&5
30539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30540 (exit $ac_status); }; } &&
30541 { ac_try='test -s conftest$ac_exeext'
30542 { (case "(($ac_try" in
30543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30544 *) ac_try_echo=$ac_try;;
30546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30547 (eval "$ac_try") 2>&5
30549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30550 (exit $ac_status); }; }; then
30551 eval "$as_ac_var=yes"
30553 echo "$as_me: failed program was:" >&5
30554 sed 's/^/| /' conftest.$ac_ext >&5
30556 eval "$as_ac_var=no"
30559 rm -f core conftest.err conftest.$ac_objext \
30560 conftest$ac_exeext conftest.$ac_ext
30562 ac_res=`eval echo '${'$as_ac_var'}'`
30563 { echo "$as_me:$LINENO: result: $ac_res" >&5
30564 echo "${ECHO_T}$ac_res" >&6; }
30565 if test `eval echo '${'$as_ac_var'}'` = yes; then
30566 cat >>confdefs.h <<_ACEOF
30567 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30578 for ac_func in snprintf vsnprintf gethostid fseeko
30580 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30581 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30582 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30583 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30584 echo $ECHO_N "(cached) $ECHO_C" >&6
30586 cat >conftest.$ac_ext <<_ACEOF
30589 cat confdefs.h >>conftest.$ac_ext
30590 cat >>conftest.$ac_ext <<_ACEOF
30591 /* end confdefs.h. */
30592 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30593 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30594 #define $ac_func innocuous_$ac_func
30596 /* System header to define __stub macros and hopefully few prototypes,
30597 which can conflict with char $ac_func (); below.
30598 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30599 <limits.h> exists even on freestanding compilers. */
30602 # include <limits.h>
30604 # include <assert.h>
30609 /* Override any GCC internal prototype to avoid an error.
30610 Use char because int might match the return type of a GCC
30611 builtin and then its argument prototype would still apply. */
30616 /* The GNU C library defines this for functions which it implements
30617 to always fail with ENOSYS. Some functions are actually named
30618 something starting with __ and the normal name is an alias. */
30619 #if defined __stub_$ac_func || defined __stub___$ac_func
30626 return $ac_func ();
30631 rm -f conftest.$ac_objext conftest$ac_exeext
30632 if { (ac_try="$ac_link"
30633 case "(($ac_try" in
30634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30635 *) ac_try_echo=$ac_try;;
30637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30638 (eval "$ac_link") 2>conftest.er1
30640 grep -v '^ *+' conftest.er1 >conftest.err
30642 cat conftest.err >&5
30643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30644 (exit $ac_status); } &&
30645 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30646 { (case "(($ac_try" in
30647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30648 *) ac_try_echo=$ac_try;;
30650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30651 (eval "$ac_try") 2>&5
30653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30654 (exit $ac_status); }; } &&
30655 { ac_try='test -s conftest$ac_exeext'
30656 { (case "(($ac_try" in
30657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30658 *) ac_try_echo=$ac_try;;
30660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30661 (eval "$ac_try") 2>&5
30663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30664 (exit $ac_status); }; }; then
30665 eval "$as_ac_var=yes"
30667 echo "$as_me: failed program was:" >&5
30668 sed 's/^/| /' conftest.$ac_ext >&5
30670 eval "$as_ac_var=no"
30673 rm -f core conftest.err conftest.$ac_objext \
30674 conftest$ac_exeext conftest.$ac_ext
30676 ac_res=`eval echo '${'$as_ac_var'}'`
30677 { echo "$as_me:$LINENO: result: $ac_res" >&5
30678 echo "${ECHO_T}$ac_res" >&6; }
30679 if test `eval echo '${'$as_ac_var'}'` = yes; then
30680 cat >>confdefs.h <<_ACEOF
30681 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30692 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
30694 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30695 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30696 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30697 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30698 echo $ECHO_N "(cached) $ECHO_C" >&6
30700 cat >conftest.$ac_ext <<_ACEOF
30703 cat confdefs.h >>conftest.$ac_ext
30704 cat >>conftest.$ac_ext <<_ACEOF
30705 /* end confdefs.h. */
30706 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30707 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30708 #define $ac_func innocuous_$ac_func
30710 /* System header to define __stub macros and hopefully few prototypes,
30711 which can conflict with char $ac_func (); below.
30712 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30713 <limits.h> exists even on freestanding compilers. */
30716 # include <limits.h>
30718 # include <assert.h>
30723 /* Override any GCC internal prototype to avoid an error.
30724 Use char because int might match the return type of a GCC
30725 builtin and then its argument prototype would still apply. */
30730 /* The GNU C library defines this for functions which it implements
30731 to always fail with ENOSYS. Some functions are actually named
30732 something starting with __ and the normal name is an alias. */
30733 #if defined __stub_$ac_func || defined __stub___$ac_func
30740 return $ac_func ();
30745 rm -f conftest.$ac_objext conftest$ac_exeext
30746 if { (ac_try="$ac_link"
30747 case "(($ac_try" in
30748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30749 *) ac_try_echo=$ac_try;;
30751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30752 (eval "$ac_link") 2>conftest.er1
30754 grep -v '^ *+' conftest.er1 >conftest.err
30756 cat conftest.err >&5
30757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30758 (exit $ac_status); } &&
30759 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30760 { (case "(($ac_try" in
30761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30762 *) ac_try_echo=$ac_try;;
30764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30765 (eval "$ac_try") 2>&5
30767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30768 (exit $ac_status); }; } &&
30769 { ac_try='test -s conftest$ac_exeext'
30770 { (case "(($ac_try" in
30771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30772 *) ac_try_echo=$ac_try;;
30774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30775 (eval "$ac_try") 2>&5
30777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30778 (exit $ac_status); }; }; then
30779 eval "$as_ac_var=yes"
30781 echo "$as_me: failed program was:" >&5
30782 sed 's/^/| /' conftest.$ac_ext >&5
30784 eval "$as_ac_var=no"
30787 rm -f core conftest.err conftest.$ac_objext \
30788 conftest$ac_exeext conftest.$ac_ext
30790 ac_res=`eval echo '${'$as_ac_var'}'`
30791 { echo "$as_me:$LINENO: result: $ac_res" >&5
30792 echo "${ECHO_T}$ac_res" >&6; }
30793 if test `eval echo '${'$as_ac_var'}'` = yes; then
30794 cat >>confdefs.h <<_ACEOF
30795 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30802 # If resolver functions are not in libc check for -lnsl or -lresolv.
30803 { echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
30804 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6; }
30805 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
30806 echo $ECHO_N "(cached) $ECHO_C" >&6
30808 cat >conftest.$ac_ext <<_ACEOF
30811 cat confdefs.h >>conftest.$ac_ext
30812 cat >>conftest.$ac_ext <<_ACEOF
30813 /* end confdefs.h. */
30814 /* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r.
30815 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30816 #define gethostbyname_r innocuous_gethostbyname_r
30818 /* System header to define __stub macros and hopefully few prototypes,
30819 which can conflict with char gethostbyname_r (); below.
30820 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30821 <limits.h> exists even on freestanding compilers. */
30824 # include <limits.h>
30826 # include <assert.h>
30829 #undef gethostbyname_r
30831 /* Override any GCC internal prototype to avoid an error.
30832 Use char because int might match the return type of a GCC
30833 builtin and then its argument prototype would still apply. */
30837 char gethostbyname_r ();
30838 /* The GNU C library defines this for functions which it implements
30839 to always fail with ENOSYS. Some functions are actually named
30840 something starting with __ and the normal name is an alias. */
30841 #if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r
30848 return gethostbyname_r ();
30853 rm -f conftest.$ac_objext conftest$ac_exeext
30854 if { (ac_try="$ac_link"
30855 case "(($ac_try" in
30856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30857 *) ac_try_echo=$ac_try;;
30859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30860 (eval "$ac_link") 2>conftest.er1
30862 grep -v '^ *+' conftest.er1 >conftest.err
30864 cat conftest.err >&5
30865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30866 (exit $ac_status); } &&
30867 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30868 { (case "(($ac_try" in
30869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30870 *) ac_try_echo=$ac_try;;
30872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30873 (eval "$ac_try") 2>&5
30875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30876 (exit $ac_status); }; } &&
30877 { ac_try='test -s conftest$ac_exeext'
30878 { (case "(($ac_try" in
30879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30880 *) ac_try_echo=$ac_try;;
30882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30883 (eval "$ac_try") 2>&5
30885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30886 (exit $ac_status); }; }; then
30887 ac_cv_func_gethostbyname_r=yes
30889 echo "$as_me: failed program was:" >&5
30890 sed 's/^/| /' conftest.$ac_ext >&5
30892 ac_cv_func_gethostbyname_r=no
30895 rm -f core conftest.err conftest.$ac_objext \
30896 conftest$ac_exeext conftest.$ac_ext
30898 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
30899 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6; }
30900 if test $ac_cv_func_gethostbyname_r = yes; then
30901 { echo "$as_me:$LINENO: result: using libc's resolver" >&5
30902 echo "${ECHO_T}using libc's resolver" >&6; }
30905 { echo "$as_me:$LINENO: checking for gethostbyname_r in -lnsl" >&5
30906 echo $ECHO_N "checking for gethostbyname_r in -lnsl... $ECHO_C" >&6; }
30907 if test "${ac_cv_lib_nsl_gethostbyname_r+set}" = set; then
30908 echo $ECHO_N "(cached) $ECHO_C" >&6
30910 ac_check_lib_save_LIBS=$LIBS
30912 cat >conftest.$ac_ext <<_ACEOF
30915 cat confdefs.h >>conftest.$ac_ext
30916 cat >>conftest.$ac_ext <<_ACEOF
30917 /* end confdefs.h. */
30919 /* Override any GCC internal prototype to avoid an error.
30920 Use char because int might match the return type of a GCC
30921 builtin and then its argument prototype would still apply. */
30925 char gethostbyname_r ();
30929 return gethostbyname_r ();
30934 rm -f conftest.$ac_objext conftest$ac_exeext
30935 if { (ac_try="$ac_link"
30936 case "(($ac_try" in
30937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30938 *) ac_try_echo=$ac_try;;
30940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30941 (eval "$ac_link") 2>conftest.er1
30943 grep -v '^ *+' conftest.er1 >conftest.err
30945 cat conftest.err >&5
30946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30947 (exit $ac_status); } &&
30948 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30949 { (case "(($ac_try" in
30950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30951 *) ac_try_echo=$ac_try;;
30953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30954 (eval "$ac_try") 2>&5
30956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30957 (exit $ac_status); }; } &&
30958 { ac_try='test -s conftest$ac_exeext'
30959 { (case "(($ac_try" in
30960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30961 *) ac_try_echo=$ac_try;;
30963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30964 (eval "$ac_try") 2>&5
30966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30967 (exit $ac_status); }; }; then
30968 ac_cv_lib_nsl_gethostbyname_r=yes
30970 echo "$as_me: failed program was:" >&5
30971 sed 's/^/| /' conftest.$ac_ext >&5
30973 ac_cv_lib_nsl_gethostbyname_r=no
30976 rm -f core conftest.err conftest.$ac_objext \
30977 conftest$ac_exeext conftest.$ac_ext
30978 LIBS=$ac_check_lib_save_LIBS
30980 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
30981 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname_r" >&6; }
30982 if test $ac_cv_lib_nsl_gethostbyname_r = yes; then
30983 cat >>confdefs.h <<_ACEOF
30984 #define HAVE_LIBNSL 1
30992 { echo "$as_me:$LINENO: checking for gethostbyname_r in -lresolv" >&5
30993 echo $ECHO_N "checking for gethostbyname_r in -lresolv... $ECHO_C" >&6; }
30994 if test "${ac_cv_lib_resolv_gethostbyname_r+set}" = set; then
30995 echo $ECHO_N "(cached) $ECHO_C" >&6
30997 ac_check_lib_save_LIBS=$LIBS
30998 LIBS="-lresolv $LIBS"
30999 cat >conftest.$ac_ext <<_ACEOF
31002 cat confdefs.h >>conftest.$ac_ext
31003 cat >>conftest.$ac_ext <<_ACEOF
31004 /* end confdefs.h. */
31006 /* Override any GCC internal prototype to avoid an error.
31007 Use char because int might match the return type of a GCC
31008 builtin and then its argument prototype would still apply. */
31012 char gethostbyname_r ();
31016 return gethostbyname_r ();
31021 rm -f conftest.$ac_objext conftest$ac_exeext
31022 if { (ac_try="$ac_link"
31023 case "(($ac_try" in
31024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31025 *) ac_try_echo=$ac_try;;
31027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31028 (eval "$ac_link") 2>conftest.er1
31030 grep -v '^ *+' conftest.er1 >conftest.err
31032 cat conftest.err >&5
31033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31034 (exit $ac_status); } &&
31035 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31036 { (case "(($ac_try" in
31037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31038 *) ac_try_echo=$ac_try;;
31040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31041 (eval "$ac_try") 2>&5
31043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31044 (exit $ac_status); }; } &&
31045 { ac_try='test -s conftest$ac_exeext'
31046 { (case "(($ac_try" in
31047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31048 *) ac_try_echo=$ac_try;;
31050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31051 (eval "$ac_try") 2>&5
31053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31054 (exit $ac_status); }; }; then
31055 ac_cv_lib_resolv_gethostbyname_r=yes
31057 echo "$as_me: failed program was:" >&5
31058 sed 's/^/| /' conftest.$ac_ext >&5
31060 ac_cv_lib_resolv_gethostbyname_r=no
31063 rm -f core conftest.err conftest.$ac_objext \
31064 conftest$ac_exeext conftest.$ac_ext
31065 LIBS=$ac_check_lib_save_LIBS
31067 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_gethostbyname_r" >&5
31068 echo "${ECHO_T}$ac_cv_lib_resolv_gethostbyname_r" >&6; }
31069 if test $ac_cv_lib_resolv_gethostbyname_r = yes; then
31070 cat >>confdefs.h <<_ACEOF
31071 #define HAVE_LIBRESOLV 1
31074 LIBS="-lresolv $LIBS"
31084 for ac_func in inet_pton
31086 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31087 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31088 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31089 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31090 echo $ECHO_N "(cached) $ECHO_C" >&6
31092 cat >conftest.$ac_ext <<_ACEOF
31095 cat confdefs.h >>conftest.$ac_ext
31096 cat >>conftest.$ac_ext <<_ACEOF
31097 /* end confdefs.h. */
31098 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31099 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31100 #define $ac_func innocuous_$ac_func
31102 /* System header to define __stub macros and hopefully few prototypes,
31103 which can conflict with char $ac_func (); below.
31104 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31105 <limits.h> exists even on freestanding compilers. */
31108 # include <limits.h>
31110 # include <assert.h>
31115 /* Override any GCC internal prototype to avoid an error.
31116 Use char because int might match the return type of a GCC
31117 builtin and then its argument prototype would still apply. */
31122 /* The GNU C library defines this for functions which it implements
31123 to always fail with ENOSYS. Some functions are actually named
31124 something starting with __ and the normal name is an alias. */
31125 #if defined __stub_$ac_func || defined __stub___$ac_func
31132 return $ac_func ();
31137 rm -f conftest.$ac_objext conftest$ac_exeext
31138 if { (ac_try="$ac_link"
31139 case "(($ac_try" in
31140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31141 *) ac_try_echo=$ac_try;;
31143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31144 (eval "$ac_link") 2>conftest.er1
31146 grep -v '^ *+' conftest.er1 >conftest.err
31148 cat conftest.err >&5
31149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31150 (exit $ac_status); } &&
31151 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31152 { (case "(($ac_try" in
31153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31154 *) ac_try_echo=$ac_try;;
31156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31157 (eval "$ac_try") 2>&5
31159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31160 (exit $ac_status); }; } &&
31161 { ac_try='test -s conftest$ac_exeext'
31162 { (case "(($ac_try" in
31163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31164 *) ac_try_echo=$ac_try;;
31166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31167 (eval "$ac_try") 2>&5
31169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31170 (exit $ac_status); }; }; then
31171 eval "$as_ac_var=yes"
31173 echo "$as_me: failed program was:" >&5
31174 sed 's/^/| /' conftest.$ac_ext >&5
31176 eval "$as_ac_var=no"
31179 rm -f core conftest.err conftest.$ac_objext \
31180 conftest$ac_exeext conftest.$ac_ext
31182 ac_res=`eval echo '${'$as_ac_var'}'`
31183 { echo "$as_me:$LINENO: result: $ac_res" >&5
31184 echo "${ECHO_T}$ac_res" >&6; }
31185 if test `eval echo '${'$as_ac_var'}'` = yes; then
31186 cat >>confdefs.h <<_ACEOF
31187 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31189 cat >>confdefs.h <<\_ACEOF
31190 #define HAVE_INET_PTON 1
31197 for ac_func in inet_ntop
31199 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31200 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31201 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31202 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31203 echo $ECHO_N "(cached) $ECHO_C" >&6
31205 cat >conftest.$ac_ext <<_ACEOF
31208 cat confdefs.h >>conftest.$ac_ext
31209 cat >>conftest.$ac_ext <<_ACEOF
31210 /* end confdefs.h. */
31211 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31212 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31213 #define $ac_func innocuous_$ac_func
31215 /* System header to define __stub macros and hopefully few prototypes,
31216 which can conflict with char $ac_func (); below.
31217 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31218 <limits.h> exists even on freestanding compilers. */
31221 # include <limits.h>
31223 # include <assert.h>
31228 /* Override any GCC internal prototype to avoid an error.
31229 Use char because int might match the return type of a GCC
31230 builtin and then its argument prototype would still apply. */
31235 /* The GNU C library defines this for functions which it implements
31236 to always fail with ENOSYS. Some functions are actually named
31237 something starting with __ and the normal name is an alias. */
31238 #if defined __stub_$ac_func || defined __stub___$ac_func
31245 return $ac_func ();
31250 rm -f conftest.$ac_objext conftest$ac_exeext
31251 if { (ac_try="$ac_link"
31252 case "(($ac_try" in
31253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31254 *) ac_try_echo=$ac_try;;
31256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31257 (eval "$ac_link") 2>conftest.er1
31259 grep -v '^ *+' conftest.er1 >conftest.err
31261 cat conftest.err >&5
31262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31263 (exit $ac_status); } &&
31264 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31265 { (case "(($ac_try" in
31266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31267 *) ac_try_echo=$ac_try;;
31269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31270 (eval "$ac_try") 2>&5
31272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31273 (exit $ac_status); }; } &&
31274 { ac_try='test -s conftest$ac_exeext'
31275 { (case "(($ac_try" in
31276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31277 *) ac_try_echo=$ac_try;;
31279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31280 (eval "$ac_try") 2>&5
31282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31283 (exit $ac_status); }; }; then
31284 eval "$as_ac_var=yes"
31286 echo "$as_me: failed program was:" >&5
31287 sed 's/^/| /' conftest.$ac_ext >&5
31289 eval "$as_ac_var=no"
31292 rm -f core conftest.err conftest.$ac_objext \
31293 conftest$ac_exeext conftest.$ac_ext
31295 ac_res=`eval echo '${'$as_ac_var'}'`
31296 { echo "$as_me:$LINENO: result: $ac_res" >&5
31297 echo "${ECHO_T}$ac_res" >&6; }
31298 if test `eval echo '${'$as_ac_var'}'` = yes; then
31299 cat >>confdefs.h <<_ACEOF
31300 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31302 cat >>confdefs.h <<\_ACEOF
31303 #define HAVE_INET_NTOP 1
31310 for ac_func in gethostbyname2
31312 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31313 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31314 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31315 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31316 echo $ECHO_N "(cached) $ECHO_C" >&6
31318 cat >conftest.$ac_ext <<_ACEOF
31321 cat confdefs.h >>conftest.$ac_ext
31322 cat >>conftest.$ac_ext <<_ACEOF
31323 /* end confdefs.h. */
31324 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31325 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31326 #define $ac_func innocuous_$ac_func
31328 /* System header to define __stub macros and hopefully few prototypes,
31329 which can conflict with char $ac_func (); below.
31330 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31331 <limits.h> exists even on freestanding compilers. */
31334 # include <limits.h>
31336 # include <assert.h>
31341 /* Override any GCC internal prototype to avoid an error.
31342 Use char because int might match the return type of a GCC
31343 builtin and then its argument prototype would still apply. */
31348 /* The GNU C library defines this for functions which it implements
31349 to always fail with ENOSYS. Some functions are actually named
31350 something starting with __ and the normal name is an alias. */
31351 #if defined __stub_$ac_func || defined __stub___$ac_func
31358 return $ac_func ();
31363 rm -f conftest.$ac_objext conftest$ac_exeext
31364 if { (ac_try="$ac_link"
31365 case "(($ac_try" in
31366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31367 *) ac_try_echo=$ac_try;;
31369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31370 (eval "$ac_link") 2>conftest.er1
31372 grep -v '^ *+' conftest.er1 >conftest.err
31374 cat conftest.err >&5
31375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31376 (exit $ac_status); } &&
31377 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31378 { (case "(($ac_try" in
31379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31380 *) ac_try_echo=$ac_try;;
31382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31383 (eval "$ac_try") 2>&5
31385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31386 (exit $ac_status); }; } &&
31387 { ac_try='test -s conftest$ac_exeext'
31388 { (case "(($ac_try" in
31389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31390 *) ac_try_echo=$ac_try;;
31392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31393 (eval "$ac_try") 2>&5
31395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31396 (exit $ac_status); }; }; then
31397 eval "$as_ac_var=yes"
31399 echo "$as_me: failed program was:" >&5
31400 sed 's/^/| /' conftest.$ac_ext >&5
31402 eval "$as_ac_var=no"
31405 rm -f core conftest.err conftest.$ac_objext \
31406 conftest$ac_exeext conftest.$ac_ext
31408 ac_res=`eval echo '${'$as_ac_var'}'`
31409 { echo "$as_me:$LINENO: result: $ac_res" >&5
31410 echo "${ECHO_T}$ac_res" >&6; }
31411 if test `eval echo '${'$as_ac_var'}'` = yes; then
31412 cat >>confdefs.h <<_ACEOF
31413 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31415 cat >>confdefs.h <<\_ACEOF
31416 #define HAVE_GETHOSTBYNAME2 1
31423 { echo "$as_me:$LINENO: checking for struct sockaddr has a sa_len field" >&5
31424 echo $ECHO_N "checking for struct sockaddr has a sa_len field... $ECHO_C" >&6; }
31425 if test "${ac_cv_struct_sockaddr_sa_len+set}" = set; then
31426 echo $ECHO_N "(cached) $ECHO_C" >&6
31428 cat >conftest.$ac_ext <<_ACEOF
31431 cat confdefs.h >>conftest.$ac_ext
31432 cat >>conftest.$ac_ext <<_ACEOF
31433 /* end confdefs.h. */
31434 #include <sys/socket.h>
31438 struct sockaddr s; s.sa_len;
31443 rm -f conftest.$ac_objext
31444 if { (ac_try="$ac_compile"
31445 case "(($ac_try" in
31446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31447 *) ac_try_echo=$ac_try;;
31449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31450 (eval "$ac_compile") 2>conftest.er1
31452 grep -v '^ *+' conftest.er1 >conftest.err
31454 cat conftest.err >&5
31455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31456 (exit $ac_status); } &&
31457 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31458 { (case "(($ac_try" in
31459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31460 *) ac_try_echo=$ac_try;;
31462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31463 (eval "$ac_try") 2>&5
31465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31466 (exit $ac_status); }; } &&
31467 { ac_try='test -s conftest.$ac_objext'
31468 { (case "(($ac_try" in
31469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31470 *) ac_try_echo=$ac_try;;
31472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31473 (eval "$ac_try") 2>&5
31475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31476 (exit $ac_status); }; }; then
31477 ac_cv_struct_sockaddr_sa_len=yes
31479 echo "$as_me: failed program was:" >&5
31480 sed 's/^/| /' conftest.$ac_ext >&5
31482 ac_cv_struct_sockaddr_sa_len=no
31485 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31487 { echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_sa_len" >&5
31488 echo "${ECHO_T}$ac_cv_struct_sockaddr_sa_len" >&6; }
31490 if test $ac_cv_struct_sockaddr_sa_len = yes; then
31492 cat >>confdefs.h <<\_ACEOF
31493 #define HAVE_SA_LEN 1
31502 for ac_func in strftime
31504 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31505 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31506 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31507 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31508 echo $ECHO_N "(cached) $ECHO_C" >&6
31510 cat >conftest.$ac_ext <<_ACEOF
31513 cat confdefs.h >>conftest.$ac_ext
31514 cat >>conftest.$ac_ext <<_ACEOF
31515 /* end confdefs.h. */
31516 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31517 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31518 #define $ac_func innocuous_$ac_func
31520 /* System header to define __stub macros and hopefully few prototypes,
31521 which can conflict with char $ac_func (); below.
31522 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31523 <limits.h> exists even on freestanding compilers. */
31526 # include <limits.h>
31528 # include <assert.h>
31533 /* Override any GCC internal prototype to avoid an error.
31534 Use char because int might match the return type of a GCC
31535 builtin and then its argument prototype would still apply. */
31540 /* The GNU C library defines this for functions which it implements
31541 to always fail with ENOSYS. Some functions are actually named
31542 something starting with __ and the normal name is an alias. */
31543 #if defined __stub_$ac_func || defined __stub___$ac_func
31550 return $ac_func ();
31555 rm -f conftest.$ac_objext conftest$ac_exeext
31556 if { (ac_try="$ac_link"
31557 case "(($ac_try" in
31558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31559 *) ac_try_echo=$ac_try;;
31561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31562 (eval "$ac_link") 2>conftest.er1
31564 grep -v '^ *+' conftest.er1 >conftest.err
31566 cat conftest.err >&5
31567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31568 (exit $ac_status); } &&
31569 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31570 { (case "(($ac_try" in
31571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31572 *) ac_try_echo=$ac_try;;
31574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31575 (eval "$ac_try") 2>&5
31577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31578 (exit $ac_status); }; } &&
31579 { ac_try='test -s conftest$ac_exeext'
31580 { (case "(($ac_try" in
31581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31582 *) ac_try_echo=$ac_try;;
31584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31585 (eval "$ac_try") 2>&5
31587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31588 (exit $ac_status); }; }; then
31589 eval "$as_ac_var=yes"
31591 echo "$as_me: failed program was:" >&5
31592 sed 's/^/| /' conftest.$ac_ext >&5
31594 eval "$as_ac_var=no"
31597 rm -f core conftest.err conftest.$ac_objext \
31598 conftest$ac_exeext conftest.$ac_ext
31600 ac_res=`eval echo '${'$as_ac_var'}'`
31601 { echo "$as_me:$LINENO: result: $ac_res" >&5
31602 echo "${ECHO_T}$ac_res" >&6; }
31603 if test `eval echo '${'$as_ac_var'}'` = yes; then
31604 cat >>confdefs.h <<_ACEOF
31605 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31609 # strftime is in -lintl on SCO UNIX.
31610 { echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
31611 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
31612 if test "${ac_cv_lib_intl_strftime+set}" = set; then
31613 echo $ECHO_N "(cached) $ECHO_C" >&6
31615 ac_check_lib_save_LIBS=$LIBS
31616 LIBS="-lintl $LIBS"
31617 cat >conftest.$ac_ext <<_ACEOF
31620 cat confdefs.h >>conftest.$ac_ext
31621 cat >>conftest.$ac_ext <<_ACEOF
31622 /* end confdefs.h. */
31624 /* Override any GCC internal prototype to avoid an error.
31625 Use char because int might match the return type of a GCC
31626 builtin and then its argument prototype would still apply. */
31634 return strftime ();
31639 rm -f conftest.$ac_objext conftest$ac_exeext
31640 if { (ac_try="$ac_link"
31641 case "(($ac_try" in
31642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31643 *) ac_try_echo=$ac_try;;
31645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31646 (eval "$ac_link") 2>conftest.er1
31648 grep -v '^ *+' conftest.er1 >conftest.err
31650 cat conftest.err >&5
31651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31652 (exit $ac_status); } &&
31653 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31654 { (case "(($ac_try" in
31655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31656 *) ac_try_echo=$ac_try;;
31658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31659 (eval "$ac_try") 2>&5
31661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31662 (exit $ac_status); }; } &&
31663 { ac_try='test -s conftest$ac_exeext'
31664 { (case "(($ac_try" in
31665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31666 *) ac_try_echo=$ac_try;;
31668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31669 (eval "$ac_try") 2>&5
31671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31672 (exit $ac_status); }; }; then
31673 ac_cv_lib_intl_strftime=yes
31675 echo "$as_me: failed program was:" >&5
31676 sed 's/^/| /' conftest.$ac_ext >&5
31678 ac_cv_lib_intl_strftime=no
31681 rm -f core conftest.err conftest.$ac_objext \
31682 conftest$ac_exeext conftest.$ac_ext
31683 LIBS=$ac_check_lib_save_LIBS
31685 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
31686 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
31687 if test $ac_cv_lib_intl_strftime = yes; then
31688 cat >>confdefs.h <<\_ACEOF
31689 #define HAVE_STRFTIME 1
31692 LIBS="-lintl $LIBS"
31699 for ac_func in vprintf
31701 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31702 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31703 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31704 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31705 echo $ECHO_N "(cached) $ECHO_C" >&6
31707 cat >conftest.$ac_ext <<_ACEOF
31710 cat confdefs.h >>conftest.$ac_ext
31711 cat >>conftest.$ac_ext <<_ACEOF
31712 /* end confdefs.h. */
31713 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31714 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31715 #define $ac_func innocuous_$ac_func
31717 /* System header to define __stub macros and hopefully few prototypes,
31718 which can conflict with char $ac_func (); below.
31719 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31720 <limits.h> exists even on freestanding compilers. */
31723 # include <limits.h>
31725 # include <assert.h>
31730 /* Override any GCC internal prototype to avoid an error.
31731 Use char because int might match the return type of a GCC
31732 builtin and then its argument prototype would still apply. */
31737 /* The GNU C library defines this for functions which it implements
31738 to always fail with ENOSYS. Some functions are actually named
31739 something starting with __ and the normal name is an alias. */
31740 #if defined __stub_$ac_func || defined __stub___$ac_func
31747 return $ac_func ();
31752 rm -f conftest.$ac_objext conftest$ac_exeext
31753 if { (ac_try="$ac_link"
31754 case "(($ac_try" in
31755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31756 *) ac_try_echo=$ac_try;;
31758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31759 (eval "$ac_link") 2>conftest.er1
31761 grep -v '^ *+' conftest.er1 >conftest.err
31763 cat conftest.err >&5
31764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31765 (exit $ac_status); } &&
31766 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31767 { (case "(($ac_try" in
31768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31769 *) ac_try_echo=$ac_try;;
31771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31772 (eval "$ac_try") 2>&5
31774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31775 (exit $ac_status); }; } &&
31776 { ac_try='test -s conftest$ac_exeext'
31777 { (case "(($ac_try" in
31778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31779 *) ac_try_echo=$ac_try;;
31781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31782 (eval "$ac_try") 2>&5
31784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31785 (exit $ac_status); }; }; then
31786 eval "$as_ac_var=yes"
31788 echo "$as_me: failed program was:" >&5
31789 sed 's/^/| /' conftest.$ac_ext >&5
31791 eval "$as_ac_var=no"
31794 rm -f core conftest.err conftest.$ac_objext \
31795 conftest$ac_exeext conftest.$ac_ext
31797 ac_res=`eval echo '${'$as_ac_var'}'`
31798 { echo "$as_me:$LINENO: result: $ac_res" >&5
31799 echo "${ECHO_T}$ac_res" >&6; }
31800 if test `eval echo '${'$as_ac_var'}'` = yes; then
31801 cat >>confdefs.h <<_ACEOF
31802 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31805 { echo "$as_me:$LINENO: checking for _doprnt" >&5
31806 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
31807 if test "${ac_cv_func__doprnt+set}" = set; then
31808 echo $ECHO_N "(cached) $ECHO_C" >&6
31810 cat >conftest.$ac_ext <<_ACEOF
31813 cat confdefs.h >>conftest.$ac_ext
31814 cat >>conftest.$ac_ext <<_ACEOF
31815 /* end confdefs.h. */
31816 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
31817 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31818 #define _doprnt innocuous__doprnt
31820 /* System header to define __stub macros and hopefully few prototypes,
31821 which can conflict with char _doprnt (); below.
31822 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31823 <limits.h> exists even on freestanding compilers. */
31826 # include <limits.h>
31828 # include <assert.h>
31833 /* Override any GCC internal prototype to avoid an error.
31834 Use char because int might match the return type of a GCC
31835 builtin and then its argument prototype would still apply. */
31840 /* The GNU C library defines this for functions which it implements
31841 to always fail with ENOSYS. Some functions are actually named
31842 something starting with __ and the normal name is an alias. */
31843 #if defined __stub__doprnt || defined __stub____doprnt
31855 rm -f conftest.$ac_objext conftest$ac_exeext
31856 if { (ac_try="$ac_link"
31857 case "(($ac_try" in
31858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31859 *) ac_try_echo=$ac_try;;
31861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31862 (eval "$ac_link") 2>conftest.er1
31864 grep -v '^ *+' conftest.er1 >conftest.err
31866 cat conftest.err >&5
31867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31868 (exit $ac_status); } &&
31869 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31870 { (case "(($ac_try" in
31871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31872 *) ac_try_echo=$ac_try;;
31874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31875 (eval "$ac_try") 2>&5
31877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31878 (exit $ac_status); }; } &&
31879 { ac_try='test -s conftest$ac_exeext'
31880 { (case "(($ac_try" in
31881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31882 *) ac_try_echo=$ac_try;;
31884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31885 (eval "$ac_try") 2>&5
31887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31888 (exit $ac_status); }; }; then
31889 ac_cv_func__doprnt=yes
31891 echo "$as_me: failed program was:" >&5
31892 sed 's/^/| /' conftest.$ac_ext >&5
31894 ac_cv_func__doprnt=no
31897 rm -f core conftest.err conftest.$ac_objext \
31898 conftest$ac_exeext conftest.$ac_ext
31900 { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
31901 echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
31902 if test $ac_cv_func__doprnt = yes; then
31904 cat >>confdefs.h <<\_ACEOF
31905 #define HAVE_DOPRNT 1
31914 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
31915 # for constant arguments. Useless!
31916 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
31917 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
31918 if test "${ac_cv_working_alloca_h+set}" = set; then
31919 echo $ECHO_N "(cached) $ECHO_C" >&6
31921 cat >conftest.$ac_ext <<_ACEOF
31924 cat confdefs.h >>conftest.$ac_ext
31925 cat >>conftest.$ac_ext <<_ACEOF
31926 /* end confdefs.h. */
31927 #include <alloca.h>
31931 char *p = (char *) alloca (2 * sizeof (int));
31937 rm -f conftest.$ac_objext conftest$ac_exeext
31938 if { (ac_try="$ac_link"
31939 case "(($ac_try" in
31940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31941 *) ac_try_echo=$ac_try;;
31943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31944 (eval "$ac_link") 2>conftest.er1
31946 grep -v '^ *+' conftest.er1 >conftest.err
31948 cat conftest.err >&5
31949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31950 (exit $ac_status); } &&
31951 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31952 { (case "(($ac_try" in
31953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31954 *) ac_try_echo=$ac_try;;
31956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31957 (eval "$ac_try") 2>&5
31959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31960 (exit $ac_status); }; } &&
31961 { ac_try='test -s conftest$ac_exeext'
31962 { (case "(($ac_try" in
31963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31964 *) ac_try_echo=$ac_try;;
31966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31967 (eval "$ac_try") 2>&5
31969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31970 (exit $ac_status); }; }; then
31971 ac_cv_working_alloca_h=yes
31973 echo "$as_me: failed program was:" >&5
31974 sed 's/^/| /' conftest.$ac_ext >&5
31976 ac_cv_working_alloca_h=no
31979 rm -f core conftest.err conftest.$ac_objext \
31980 conftest$ac_exeext conftest.$ac_ext
31982 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
31983 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
31984 if test $ac_cv_working_alloca_h = yes; then
31986 cat >>confdefs.h <<\_ACEOF
31987 #define HAVE_ALLOCA_H 1
31992 { echo "$as_me:$LINENO: checking for alloca" >&5
31993 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
31994 if test "${ac_cv_func_alloca_works+set}" = set; then
31995 echo $ECHO_N "(cached) $ECHO_C" >&6
31997 cat >conftest.$ac_ext <<_ACEOF
32000 cat confdefs.h >>conftest.$ac_ext
32001 cat >>conftest.$ac_ext <<_ACEOF
32002 /* end confdefs.h. */
32004 # define alloca __builtin_alloca
32007 # include <malloc.h>
32008 # define alloca _alloca
32011 # include <alloca.h>
32016 # ifndef alloca /* predefined by HP cc +Olibcalls */
32027 char *p = (char *) alloca (1);
32033 rm -f conftest.$ac_objext conftest$ac_exeext
32034 if { (ac_try="$ac_link"
32035 case "(($ac_try" in
32036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32037 *) ac_try_echo=$ac_try;;
32039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32040 (eval "$ac_link") 2>conftest.er1
32042 grep -v '^ *+' conftest.er1 >conftest.err
32044 cat conftest.err >&5
32045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32046 (exit $ac_status); } &&
32047 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32048 { (case "(($ac_try" in
32049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32050 *) ac_try_echo=$ac_try;;
32052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32053 (eval "$ac_try") 2>&5
32055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32056 (exit $ac_status); }; } &&
32057 { ac_try='test -s conftest$ac_exeext'
32058 { (case "(($ac_try" in
32059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32060 *) ac_try_echo=$ac_try;;
32062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32063 (eval "$ac_try") 2>&5
32065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32066 (exit $ac_status); }; }; then
32067 ac_cv_func_alloca_works=yes
32069 echo "$as_me: failed program was:" >&5
32070 sed 's/^/| /' conftest.$ac_ext >&5
32072 ac_cv_func_alloca_works=no
32075 rm -f core conftest.err conftest.$ac_objext \
32076 conftest$ac_exeext conftest.$ac_ext
32078 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
32079 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
32081 if test $ac_cv_func_alloca_works = yes; then
32083 cat >>confdefs.h <<\_ACEOF
32084 #define HAVE_ALLOCA 1
32088 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
32089 # that cause trouble. Some versions do not even contain alloca or
32090 # contain a buggy version. If you still want to use their alloca,
32091 # use ar to extract alloca.o from them instead of compiling alloca.c.
32093 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
32095 cat >>confdefs.h <<\_ACEOF
32100 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
32101 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
32102 if test "${ac_cv_os_cray+set}" = set; then
32103 echo $ECHO_N "(cached) $ECHO_C" >&6
32105 cat >conftest.$ac_ext <<_ACEOF
32108 cat confdefs.h >>conftest.$ac_ext
32109 cat >>conftest.$ac_ext <<_ACEOF
32110 /* end confdefs.h. */
32111 #if defined CRAY && ! defined CRAY2
32118 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32119 $EGREP "webecray" >/dev/null 2>&1; then
32127 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
32128 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
32129 if test $ac_cv_os_cray = yes; then
32130 for ac_func in _getb67 GETB67 getb67; do
32131 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32132 { echo "$as_me:$LINENO: checking for $ac_func" >&5
32133 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32134 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32135 echo $ECHO_N "(cached) $ECHO_C" >&6
32137 cat >conftest.$ac_ext <<_ACEOF
32140 cat confdefs.h >>conftest.$ac_ext
32141 cat >>conftest.$ac_ext <<_ACEOF
32142 /* end confdefs.h. */
32143 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32144 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32145 #define $ac_func innocuous_$ac_func
32147 /* System header to define __stub macros and hopefully few prototypes,
32148 which can conflict with char $ac_func (); below.
32149 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32150 <limits.h> exists even on freestanding compilers. */
32153 # include <limits.h>
32155 # include <assert.h>
32160 /* Override any GCC internal prototype to avoid an error.
32161 Use char because int might match the return type of a GCC
32162 builtin and then its argument prototype would still apply. */
32167 /* The GNU C library defines this for functions which it implements
32168 to always fail with ENOSYS. Some functions are actually named
32169 something starting with __ and the normal name is an alias. */
32170 #if defined __stub_$ac_func || defined __stub___$ac_func
32177 return $ac_func ();
32182 rm -f conftest.$ac_objext conftest$ac_exeext
32183 if { (ac_try="$ac_link"
32184 case "(($ac_try" in
32185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32186 *) ac_try_echo=$ac_try;;
32188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32189 (eval "$ac_link") 2>conftest.er1
32191 grep -v '^ *+' conftest.er1 >conftest.err
32193 cat conftest.err >&5
32194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32195 (exit $ac_status); } &&
32196 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32197 { (case "(($ac_try" in
32198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32199 *) ac_try_echo=$ac_try;;
32201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32202 (eval "$ac_try") 2>&5
32204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32205 (exit $ac_status); }; } &&
32206 { ac_try='test -s conftest$ac_exeext'
32207 { (case "(($ac_try" in
32208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32209 *) ac_try_echo=$ac_try;;
32211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32212 (eval "$ac_try") 2>&5
32214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32215 (exit $ac_status); }; }; then
32216 eval "$as_ac_var=yes"
32218 echo "$as_me: failed program was:" >&5
32219 sed 's/^/| /' conftest.$ac_ext >&5
32221 eval "$as_ac_var=no"
32224 rm -f core conftest.err conftest.$ac_objext \
32225 conftest$ac_exeext conftest.$ac_ext
32227 ac_res=`eval echo '${'$as_ac_var'}'`
32228 { echo "$as_me:$LINENO: result: $ac_res" >&5
32229 echo "${ECHO_T}$ac_res" >&6; }
32230 if test `eval echo '${'$as_ac_var'}'` = yes; then
32232 cat >>confdefs.h <<_ACEOF
32233 #define CRAY_STACKSEG_END $ac_func
32242 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
32243 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
32244 if test "${ac_cv_c_stack_direction+set}" = set; then
32245 echo $ECHO_N "(cached) $ECHO_C" >&6
32247 if test "$cross_compiling" = yes; then
32248 ac_cv_c_stack_direction=0
32250 cat >conftest.$ac_ext <<_ACEOF
32253 cat confdefs.h >>conftest.$ac_ext
32254 cat >>conftest.$ac_ext <<_ACEOF
32255 /* end confdefs.h. */
32256 $ac_includes_default
32258 find_stack_direction ()
32260 static char *addr = 0;
32265 return find_stack_direction ();
32268 return (&dummy > addr) ? 1 : -1;
32274 return find_stack_direction () < 0;
32277 rm -f conftest$ac_exeext
32278 if { (ac_try="$ac_link"
32279 case "(($ac_try" in
32280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32281 *) ac_try_echo=$ac_try;;
32283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32284 (eval "$ac_link") 2>&5
32286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32287 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32288 { (case "(($ac_try" in
32289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32290 *) ac_try_echo=$ac_try;;
32292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32293 (eval "$ac_try") 2>&5
32295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32296 (exit $ac_status); }; }; then
32297 ac_cv_c_stack_direction=1
32299 echo "$as_me: program exited with status $ac_status" >&5
32300 echo "$as_me: failed program was:" >&5
32301 sed 's/^/| /' conftest.$ac_ext >&5
32303 ( exit $ac_status )
32304 ac_cv_c_stack_direction=-1
32306 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32311 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
32312 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
32314 cat >>confdefs.h <<_ACEOF
32315 #define STACK_DIRECTION $ac_cv_c_stack_direction
32321 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
32322 # -lseq on Dynix/PTX, -lgen on Unixware.
32323 { echo "$as_me:$LINENO: checking for library containing getmntent" >&5
32324 echo $ECHO_N "checking for library containing getmntent... $ECHO_C" >&6; }
32325 if test "${ac_cv_search_getmntent+set}" = set; then
32326 echo $ECHO_N "(cached) $ECHO_C" >&6
32328 ac_func_search_save_LIBS=$LIBS
32329 cat >conftest.$ac_ext <<_ACEOF
32332 cat confdefs.h >>conftest.$ac_ext
32333 cat >>conftest.$ac_ext <<_ACEOF
32334 /* end confdefs.h. */
32336 /* Override any GCC internal prototype to avoid an error.
32337 Use char because int might match the return type of a GCC
32338 builtin and then its argument prototype would still apply. */
32346 return getmntent ();
32351 for ac_lib in '' sun seq gen; do
32352 if test -z "$ac_lib"; then
32353 ac_res="none required"
32356 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
32358 rm -f conftest.$ac_objext conftest$ac_exeext
32359 if { (ac_try="$ac_link"
32360 case "(($ac_try" in
32361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32362 *) ac_try_echo=$ac_try;;
32364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32365 (eval "$ac_link") 2>conftest.er1
32367 grep -v '^ *+' conftest.er1 >conftest.err
32369 cat conftest.err >&5
32370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32371 (exit $ac_status); } &&
32372 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32373 { (case "(($ac_try" in
32374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32375 *) ac_try_echo=$ac_try;;
32377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32378 (eval "$ac_try") 2>&5
32380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32381 (exit $ac_status); }; } &&
32382 { ac_try='test -s conftest$ac_exeext'
32383 { (case "(($ac_try" in
32384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32385 *) ac_try_echo=$ac_try;;
32387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32388 (eval "$ac_try") 2>&5
32390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32391 (exit $ac_status); }; }; then
32392 ac_cv_search_getmntent=$ac_res
32394 echo "$as_me: failed program was:" >&5
32395 sed 's/^/| /' conftest.$ac_ext >&5
32400 rm -f core conftest.err conftest.$ac_objext \
32402 if test "${ac_cv_search_getmntent+set}" = set; then
32406 if test "${ac_cv_search_getmntent+set}" = set; then
32409 ac_cv_search_getmntent=no
32411 rm conftest.$ac_ext
32412 LIBS=$ac_func_search_save_LIBS
32414 { echo "$as_me:$LINENO: result: $ac_cv_search_getmntent" >&5
32415 echo "${ECHO_T}$ac_cv_search_getmntent" >&6; }
32416 ac_res=$ac_cv_search_getmntent
32417 if test "$ac_res" != no; then
32418 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
32423 for ac_func in getmntent
32425 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32426 { echo "$as_me:$LINENO: checking for $ac_func" >&5
32427 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32428 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32429 echo $ECHO_N "(cached) $ECHO_C" >&6
32431 cat >conftest.$ac_ext <<_ACEOF
32434 cat confdefs.h >>conftest.$ac_ext
32435 cat >>conftest.$ac_ext <<_ACEOF
32436 /* end confdefs.h. */
32437 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32438 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32439 #define $ac_func innocuous_$ac_func
32441 /* System header to define __stub macros and hopefully few prototypes,
32442 which can conflict with char $ac_func (); below.
32443 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32444 <limits.h> exists even on freestanding compilers. */
32447 # include <limits.h>
32449 # include <assert.h>
32454 /* Override any GCC internal prototype to avoid an error.
32455 Use char because int might match the return type of a GCC
32456 builtin and then its argument prototype would still apply. */
32461 /* The GNU C library defines this for functions which it implements
32462 to always fail with ENOSYS. Some functions are actually named
32463 something starting with __ and the normal name is an alias. */
32464 #if defined __stub_$ac_func || defined __stub___$ac_func
32471 return $ac_func ();
32476 rm -f conftest.$ac_objext conftest$ac_exeext
32477 if { (ac_try="$ac_link"
32478 case "(($ac_try" in
32479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32480 *) ac_try_echo=$ac_try;;
32482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32483 (eval "$ac_link") 2>conftest.er1
32485 grep -v '^ *+' conftest.er1 >conftest.err
32487 cat conftest.err >&5
32488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32489 (exit $ac_status); } &&
32490 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32491 { (case "(($ac_try" in
32492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32493 *) ac_try_echo=$ac_try;;
32495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32496 (eval "$ac_try") 2>&5
32498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32499 (exit $ac_status); }; } &&
32500 { ac_try='test -s conftest$ac_exeext'
32501 { (case "(($ac_try" in
32502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32503 *) ac_try_echo=$ac_try;;
32505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32506 (eval "$ac_try") 2>&5
32508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32509 (exit $ac_status); }; }; then
32510 eval "$as_ac_var=yes"
32512 echo "$as_me: failed program was:" >&5
32513 sed 's/^/| /' conftest.$ac_ext >&5
32515 eval "$as_ac_var=no"
32518 rm -f core conftest.err conftest.$ac_objext \
32519 conftest$ac_exeext conftest.$ac_ext
32521 ac_res=`eval echo '${'$as_ac_var'}'`
32522 { echo "$as_me:$LINENO: result: $ac_res" >&5
32523 echo "${ECHO_T}$ac_res" >&6; }
32524 if test `eval echo '${'$as_ac_var'}'` = yes; then
32525 cat >>confdefs.h <<_ACEOF
32526 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32533 { echo "$as_me:$LINENO: checking whether closedir returns void" >&5
32534 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6; }
32535 if test "${ac_cv_func_closedir_void+set}" = set; then
32536 echo $ECHO_N "(cached) $ECHO_C" >&6
32538 if test "$cross_compiling" = yes; then
32539 ac_cv_func_closedir_void=yes
32541 cat >conftest.$ac_ext <<_ACEOF
32544 cat confdefs.h >>conftest.$ac_ext
32545 cat >>conftest.$ac_ext <<_ACEOF
32546 /* end confdefs.h. */
32547 $ac_includes_default
32548 #include <$ac_header_dirent>
32549 #ifndef __cplusplus
32556 return closedir (opendir (".")) != 0;
32561 rm -f conftest$ac_exeext
32562 if { (ac_try="$ac_link"
32563 case "(($ac_try" in
32564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32565 *) ac_try_echo=$ac_try;;
32567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32568 (eval "$ac_link") 2>&5
32570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32571 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32572 { (case "(($ac_try" in
32573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32574 *) ac_try_echo=$ac_try;;
32576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32577 (eval "$ac_try") 2>&5
32579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32580 (exit $ac_status); }; }; then
32581 ac_cv_func_closedir_void=no
32583 echo "$as_me: program exited with status $ac_status" >&5
32584 echo "$as_me: failed program was:" >&5
32585 sed 's/^/| /' conftest.$ac_ext >&5
32587 ( exit $ac_status )
32588 ac_cv_func_closedir_void=yes
32590 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32595 { echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
32596 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6; }
32597 if test $ac_cv_func_closedir_void = yes; then
32599 cat >>confdefs.h <<\_ACEOF
32600 #define CLOSEDIR_VOID 1
32605 { echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
32606 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6; }
32607 if test "${ac_cv_func_setpgrp_void+set}" = set; then
32608 echo $ECHO_N "(cached) $ECHO_C" >&6
32610 if test "$cross_compiling" = yes; then
32611 { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
32612 echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
32613 { (exit 1); exit 1; }; }
32615 cat >conftest.$ac_ext <<_ACEOF
32618 cat confdefs.h >>conftest.$ac_ext
32619 cat >>conftest.$ac_ext <<_ACEOF
32620 /* end confdefs.h. */
32621 $ac_includes_default
32625 /* If this system has a BSD-style setpgrp which takes arguments,
32626 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
32627 exit successfully. */
32628 return setpgrp (1,1) != -1;
32633 rm -f conftest$ac_exeext
32634 if { (ac_try="$ac_link"
32635 case "(($ac_try" in
32636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32637 *) ac_try_echo=$ac_try;;
32639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32640 (eval "$ac_link") 2>&5
32642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32643 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32644 { (case "(($ac_try" in
32645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32646 *) ac_try_echo=$ac_try;;
32648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32649 (eval "$ac_try") 2>&5
32651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32652 (exit $ac_status); }; }; then
32653 ac_cv_func_setpgrp_void=no
32655 echo "$as_me: program exited with status $ac_status" >&5
32656 echo "$as_me: failed program was:" >&5
32657 sed 's/^/| /' conftest.$ac_ext >&5
32659 ( exit $ac_status )
32660 ac_cv_func_setpgrp_void=yes
32662 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32667 { echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
32668 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6; }
32669 if test $ac_cv_func_setpgrp_void = yes; then
32671 cat >>confdefs.h <<\_ACEOF
32672 #define SETPGRP_VOID 1
32676 # AC_FUNC_FNMATCH dnl use local version
32679 { echo "$as_me:$LINENO: checking for gettext in -lintl" >&5
32680 echo $ECHO_N "checking for gettext in -lintl... $ECHO_C" >&6; }
32681 if test "${ac_cv_lib_intl_gettext+set}" = set; then
32682 echo $ECHO_N "(cached) $ECHO_C" >&6
32684 ac_check_lib_save_LIBS=$LIBS
32685 LIBS="-lintl $LIBS"
32686 cat >conftest.$ac_ext <<_ACEOF
32689 cat confdefs.h >>conftest.$ac_ext
32690 cat >>conftest.$ac_ext <<_ACEOF
32691 /* end confdefs.h. */
32693 /* Override any GCC internal prototype to avoid an error.
32694 Use char because int might match the return type of a GCC
32695 builtin and then its argument prototype would still apply. */
32708 rm -f conftest.$ac_objext conftest$ac_exeext
32709 if { (ac_try="$ac_link"
32710 case "(($ac_try" in
32711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32712 *) ac_try_echo=$ac_try;;
32714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32715 (eval "$ac_link") 2>conftest.er1
32717 grep -v '^ *+' conftest.er1 >conftest.err
32719 cat conftest.err >&5
32720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32721 (exit $ac_status); } &&
32722 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32723 { (case "(($ac_try" in
32724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32725 *) ac_try_echo=$ac_try;;
32727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32728 (eval "$ac_try") 2>&5
32730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32731 (exit $ac_status); }; } &&
32732 { ac_try='test -s conftest$ac_exeext'
32733 { (case "(($ac_try" in
32734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32735 *) ac_try_echo=$ac_try;;
32737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32738 (eval "$ac_try") 2>&5
32740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32741 (exit $ac_status); }; }; then
32742 ac_cv_lib_intl_gettext=yes
32744 echo "$as_me: failed program was:" >&5
32745 sed 's/^/| /' conftest.$ac_ext >&5
32747 ac_cv_lib_intl_gettext=no
32750 rm -f core conftest.err conftest.$ac_objext \
32751 conftest$ac_exeext conftest.$ac_ext
32752 LIBS=$ac_check_lib_save_LIBS
32754 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_gettext" >&5
32755 echo "${ECHO_T}$ac_cv_lib_intl_gettext" >&6; }
32756 if test $ac_cv_lib_intl_gettext = yes; then
32757 LIBS="$LIBS -lintl"
32763 { echo "$as_me:$LINENO: checking for getpwnam in -lsun" >&5
32764 echo $ECHO_N "checking for getpwnam in -lsun... $ECHO_C" >&6; }
32765 if test "${ac_cv_lib_sun_getpwnam+set}" = set; then
32766 echo $ECHO_N "(cached) $ECHO_C" >&6
32768 ac_check_lib_save_LIBS=$LIBS
32770 cat >conftest.$ac_ext <<_ACEOF
32773 cat confdefs.h >>conftest.$ac_ext
32774 cat >>conftest.$ac_ext <<_ACEOF
32775 /* end confdefs.h. */
32777 /* Override any GCC internal prototype to avoid an error.
32778 Use char because int might match the return type of a GCC
32779 builtin and then its argument prototype would still apply. */
32787 return getpwnam ();
32792 rm -f conftest.$ac_objext conftest$ac_exeext
32793 if { (ac_try="$ac_link"
32794 case "(($ac_try" in
32795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32796 *) ac_try_echo=$ac_try;;
32798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32799 (eval "$ac_link") 2>conftest.er1
32801 grep -v '^ *+' conftest.er1 >conftest.err
32803 cat conftest.err >&5
32804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32805 (exit $ac_status); } &&
32806 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32807 { (case "(($ac_try" in
32808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32809 *) ac_try_echo=$ac_try;;
32811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32812 (eval "$ac_try") 2>&5
32814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32815 (exit $ac_status); }; } &&
32816 { ac_try='test -s conftest$ac_exeext'
32817 { (case "(($ac_try" in
32818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32819 *) ac_try_echo=$ac_try;;
32821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32822 (eval "$ac_try") 2>&5
32824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32825 (exit $ac_status); }; }; then
32826 ac_cv_lib_sun_getpwnam=yes
32828 echo "$as_me: failed program was:" >&5
32829 sed 's/^/| /' conftest.$ac_ext >&5
32831 ac_cv_lib_sun_getpwnam=no
32834 rm -f core conftest.err conftest.$ac_objext \
32835 conftest$ac_exeext conftest.$ac_ext
32836 LIBS=$ac_check_lib_save_LIBS
32838 { echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getpwnam" >&5
32839 echo "${ECHO_T}$ac_cv_lib_sun_getpwnam" >&6; }
32840 if test $ac_cv_lib_sun_getpwnam = yes; then
32841 cat >>confdefs.h <<_ACEOF
32842 #define HAVE_LIBSUN 1
32851 for ac_header in zlib.h
32853 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32854 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32855 { echo "$as_me:$LINENO: checking for $ac_header" >&5
32856 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
32857 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32858 echo $ECHO_N "(cached) $ECHO_C" >&6
32860 ac_res=`eval echo '${'$as_ac_Header'}'`
32861 { echo "$as_me:$LINENO: result: $ac_res" >&5
32862 echo "${ECHO_T}$ac_res" >&6; }
32864 # Is the header compilable?
32865 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
32866 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
32867 cat >conftest.$ac_ext <<_ACEOF
32870 cat confdefs.h >>conftest.$ac_ext
32871 cat >>conftest.$ac_ext <<_ACEOF
32872 /* end confdefs.h. */
32873 $ac_includes_default
32874 #include <$ac_header>
32876 rm -f conftest.$ac_objext
32877 if { (ac_try="$ac_compile"
32878 case "(($ac_try" in
32879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32880 *) ac_try_echo=$ac_try;;
32882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32883 (eval "$ac_compile") 2>conftest.er1
32885 grep -v '^ *+' conftest.er1 >conftest.err
32887 cat conftest.err >&5
32888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32889 (exit $ac_status); } &&
32890 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32891 { (case "(($ac_try" in
32892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32893 *) ac_try_echo=$ac_try;;
32895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32896 (eval "$ac_try") 2>&5
32898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32899 (exit $ac_status); }; } &&
32900 { ac_try='test -s conftest.$ac_objext'
32901 { (case "(($ac_try" in
32902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32903 *) ac_try_echo=$ac_try;;
32905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32906 (eval "$ac_try") 2>&5
32908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32909 (exit $ac_status); }; }; then
32910 ac_header_compiler=yes
32912 echo "$as_me: failed program was:" >&5
32913 sed 's/^/| /' conftest.$ac_ext >&5
32915 ac_header_compiler=no
32918 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32919 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32920 echo "${ECHO_T}$ac_header_compiler" >&6; }
32922 # Is the header present?
32923 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
32924 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
32925 cat >conftest.$ac_ext <<_ACEOF
32928 cat confdefs.h >>conftest.$ac_ext
32929 cat >>conftest.$ac_ext <<_ACEOF
32930 /* end confdefs.h. */
32931 #include <$ac_header>
32933 if { (ac_try="$ac_cpp conftest.$ac_ext"
32934 case "(($ac_try" in
32935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32936 *) ac_try_echo=$ac_try;;
32938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32939 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32941 grep -v '^ *+' conftest.er1 >conftest.err
32943 cat conftest.err >&5
32944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32945 (exit $ac_status); } >/dev/null; then
32946 if test -s conftest.err; then
32947 ac_cpp_err=$ac_c_preproc_warn_flag
32948 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
32955 if test -z "$ac_cpp_err"; then
32956 ac_header_preproc=yes
32958 echo "$as_me: failed program was:" >&5
32959 sed 's/^/| /' conftest.$ac_ext >&5
32961 ac_header_preproc=no
32964 rm -f conftest.err conftest.$ac_ext
32965 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32966 echo "${ECHO_T}$ac_header_preproc" >&6; }
32968 # So? What about this header?
32969 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32971 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
32972 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
32973 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
32974 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
32975 ac_header_preproc=yes
32978 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
32979 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
32980 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
32981 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
32982 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
32983 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
32984 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
32985 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
32986 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
32987 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
32988 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
32989 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
32993 { echo "$as_me:$LINENO: checking for $ac_header" >&5
32994 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
32995 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32996 echo $ECHO_N "(cached) $ECHO_C" >&6
32998 eval "$as_ac_Header=\$ac_header_preproc"
33000 ac_res=`eval echo '${'$as_ac_Header'}'`
33001 { echo "$as_me:$LINENO: result: $ac_res" >&5
33002 echo "${ECHO_T}$ac_res" >&6; }
33005 if test `eval echo '${'$as_ac_Header'}'` = yes; then
33006 cat >>confdefs.h <<_ACEOF
33007 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
33014 { echo "$as_me:$LINENO: checking for deflate in -lz" >&5
33015 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6; }
33016 if test "${ac_cv_lib_z_deflate+set}" = set; then
33017 echo $ECHO_N "(cached) $ECHO_C" >&6
33019 ac_check_lib_save_LIBS=$LIBS
33021 cat >conftest.$ac_ext <<_ACEOF
33024 cat confdefs.h >>conftest.$ac_ext
33025 cat >>conftest.$ac_ext <<_ACEOF
33026 /* end confdefs.h. */
33028 /* Override any GCC internal prototype to avoid an error.
33029 Use char because int might match the return type of a GCC
33030 builtin and then its argument prototype would still apply. */
33043 rm -f conftest.$ac_objext conftest$ac_exeext
33044 if { (ac_try="$ac_link"
33045 case "(($ac_try" in
33046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33047 *) ac_try_echo=$ac_try;;
33049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33050 (eval "$ac_link") 2>conftest.er1
33052 grep -v '^ *+' conftest.er1 >conftest.err
33054 cat conftest.err >&5
33055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33056 (exit $ac_status); } &&
33057 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33058 { (case "(($ac_try" in
33059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33060 *) ac_try_echo=$ac_try;;
33062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33063 (eval "$ac_try") 2>&5
33065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33066 (exit $ac_status); }; } &&
33067 { ac_try='test -s conftest$ac_exeext'
33068 { (case "(($ac_try" in
33069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33070 *) ac_try_echo=$ac_try;;
33072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33073 (eval "$ac_try") 2>&5
33075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33076 (exit $ac_status); }; }; then
33077 ac_cv_lib_z_deflate=yes
33079 echo "$as_me: failed program was:" >&5
33080 sed 's/^/| /' conftest.$ac_ext >&5
33082 ac_cv_lib_z_deflate=no
33085 rm -f core conftest.err conftest.$ac_objext \
33086 conftest$ac_exeext conftest.$ac_ext
33087 LIBS=$ac_check_lib_save_LIBS
33089 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
33090 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6; }
33091 if test $ac_cv_lib_z_deflate = yes; then
33096 if test x$FDLIBS = x-lz; then
33097 cat >>confdefs.h <<\_ACEOF
33098 #define HAVE_LIBZ 1
33105 # Check for ACL libraries
33108 if test "${ac_cv_header_sys_acl_h+set}" = set; then
33109 { echo "$as_me:$LINENO: checking for sys/acl.h" >&5
33110 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6; }
33111 if test "${ac_cv_header_sys_acl_h+set}" = set; then
33112 echo $ECHO_N "(cached) $ECHO_C" >&6
33114 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
33115 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6; }
33117 # Is the header compilable?
33118 { echo "$as_me:$LINENO: checking sys/acl.h usability" >&5
33119 echo $ECHO_N "checking sys/acl.h usability... $ECHO_C" >&6; }
33120 cat >conftest.$ac_ext <<_ACEOF
33123 cat confdefs.h >>conftest.$ac_ext
33124 cat >>conftest.$ac_ext <<_ACEOF
33125 /* end confdefs.h. */
33126 $ac_includes_default
33127 #include <sys/acl.h>
33129 rm -f conftest.$ac_objext
33130 if { (ac_try="$ac_compile"
33131 case "(($ac_try" in
33132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33133 *) ac_try_echo=$ac_try;;
33135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33136 (eval "$ac_compile") 2>conftest.er1
33138 grep -v '^ *+' conftest.er1 >conftest.err
33140 cat conftest.err >&5
33141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33142 (exit $ac_status); } &&
33143 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33144 { (case "(($ac_try" in
33145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33146 *) ac_try_echo=$ac_try;;
33148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33149 (eval "$ac_try") 2>&5
33151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33152 (exit $ac_status); }; } &&
33153 { ac_try='test -s conftest.$ac_objext'
33154 { (case "(($ac_try" in
33155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33156 *) ac_try_echo=$ac_try;;
33158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33159 (eval "$ac_try") 2>&5
33161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33162 (exit $ac_status); }; }; then
33163 ac_header_compiler=yes
33165 echo "$as_me: failed program was:" >&5
33166 sed 's/^/| /' conftest.$ac_ext >&5
33168 ac_header_compiler=no
33171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33172 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33173 echo "${ECHO_T}$ac_header_compiler" >&6; }
33175 # Is the header present?
33176 { echo "$as_me:$LINENO: checking sys/acl.h presence" >&5
33177 echo $ECHO_N "checking sys/acl.h presence... $ECHO_C" >&6; }
33178 cat >conftest.$ac_ext <<_ACEOF
33181 cat confdefs.h >>conftest.$ac_ext
33182 cat >>conftest.$ac_ext <<_ACEOF
33183 /* end confdefs.h. */
33184 #include <sys/acl.h>
33186 if { (ac_try="$ac_cpp conftest.$ac_ext"
33187 case "(($ac_try" in
33188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33189 *) ac_try_echo=$ac_try;;
33191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33192 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33194 grep -v '^ *+' conftest.er1 >conftest.err
33196 cat conftest.err >&5
33197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33198 (exit $ac_status); } >/dev/null; then
33199 if test -s conftest.err; then
33200 ac_cpp_err=$ac_c_preproc_warn_flag
33201 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
33208 if test -z "$ac_cpp_err"; then
33209 ac_header_preproc=yes
33211 echo "$as_me: failed program was:" >&5
33212 sed 's/^/| /' conftest.$ac_ext >&5
33214 ac_header_preproc=no
33217 rm -f conftest.err conftest.$ac_ext
33218 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33219 echo "${ECHO_T}$ac_header_preproc" >&6; }
33221 # So? What about this header?
33222 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33224 { echo "$as_me:$LINENO: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&5
33225 echo "$as_me: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
33226 { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the compiler's result" >&5
33227 echo "$as_me: WARNING: sys/acl.h: proceeding with the compiler's result" >&2;}
33228 ac_header_preproc=yes
33231 { echo "$as_me:$LINENO: WARNING: sys/acl.h: present but cannot be compiled" >&5
33232 echo "$as_me: WARNING: sys/acl.h: present but cannot be compiled" >&2;}
33233 { echo "$as_me:$LINENO: WARNING: sys/acl.h: check for missing prerequisite headers?" >&5
33234 echo "$as_me: WARNING: sys/acl.h: check for missing prerequisite headers?" >&2;}
33235 { echo "$as_me:$LINENO: WARNING: sys/acl.h: see the Autoconf documentation" >&5
33236 echo "$as_me: WARNING: sys/acl.h: see the Autoconf documentation" >&2;}
33237 { echo "$as_me:$LINENO: WARNING: sys/acl.h: section \"Present But Cannot Be Compiled\"" >&5
33238 echo "$as_me: WARNING: sys/acl.h: section \"Present But Cannot Be Compiled\"" >&2;}
33239 { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&5
33240 echo "$as_me: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&2;}
33241 { echo "$as_me:$LINENO: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&5
33242 echo "$as_me: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&2;}
33246 { echo "$as_me:$LINENO: checking for sys/acl.h" >&5
33247 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6; }
33248 if test "${ac_cv_header_sys_acl_h+set}" = set; then
33249 echo $ECHO_N "(cached) $ECHO_C" >&6
33251 ac_cv_header_sys_acl_h=$ac_header_preproc
33253 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
33254 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6; }
33259 { echo "$as_me:$LINENO: checking for acl_get_file" >&5
33260 echo $ECHO_N "checking for acl_get_file... $ECHO_C" >&6; }
33261 if test "${ac_cv_func_acl_get_file+set}" = set; then
33262 echo $ECHO_N "(cached) $ECHO_C" >&6
33264 cat >conftest.$ac_ext <<_ACEOF
33267 cat confdefs.h >>conftest.$ac_ext
33268 cat >>conftest.$ac_ext <<_ACEOF
33269 /* end confdefs.h. */
33270 /* Define acl_get_file to an innocuous variant, in case <limits.h> declares acl_get_file.
33271 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33272 #define acl_get_file innocuous_acl_get_file
33274 /* System header to define __stub macros and hopefully few prototypes,
33275 which can conflict with char acl_get_file (); below.
33276 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33277 <limits.h> exists even on freestanding compilers. */
33280 # include <limits.h>
33282 # include <assert.h>
33285 #undef acl_get_file
33287 /* Override any GCC internal prototype to avoid an error.
33288 Use char because int might match the return type of a GCC
33289 builtin and then its argument prototype would still apply. */
33293 char acl_get_file ();
33294 /* The GNU C library defines this for functions which it implements
33295 to always fail with ENOSYS. Some functions are actually named
33296 something starting with __ and the normal name is an alias. */
33297 #if defined __stub_acl_get_file || defined __stub___acl_get_file
33304 return acl_get_file ();
33309 rm -f conftest.$ac_objext conftest$ac_exeext
33310 if { (ac_try="$ac_link"
33311 case "(($ac_try" in
33312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33313 *) ac_try_echo=$ac_try;;
33315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33316 (eval "$ac_link") 2>conftest.er1
33318 grep -v '^ *+' conftest.er1 >conftest.err
33320 cat conftest.err >&5
33321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33322 (exit $ac_status); } &&
33323 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33324 { (case "(($ac_try" in
33325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33326 *) ac_try_echo=$ac_try;;
33328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33329 (eval "$ac_try") 2>&5
33331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33332 (exit $ac_status); }; } &&
33333 { ac_try='test -s conftest$ac_exeext'
33334 { (case "(($ac_try" in
33335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33336 *) ac_try_echo=$ac_try;;
33338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33339 (eval "$ac_try") 2>&5
33341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33342 (exit $ac_status); }; }; then
33343 ac_cv_func_acl_get_file=yes
33345 echo "$as_me: failed program was:" >&5
33346 sed 's/^/| /' conftest.$ac_ext >&5
33348 ac_cv_func_acl_get_file=no
33351 rm -f core conftest.err conftest.$ac_objext \
33352 conftest$ac_exeext conftest.$ac_ext
33354 { echo "$as_me:$LINENO: result: $ac_cv_func_acl_get_file" >&5
33355 echo "${ECHO_T}$ac_cv_func_acl_get_file" >&6; }
33356 if test $ac_cv_func_acl_get_file = yes; then
33359 { echo "$as_me:$LINENO: checking for acl_get_file in -lacl" >&5
33360 echo $ECHO_N "checking for acl_get_file in -lacl... $ECHO_C" >&6; }
33361 if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then
33362 echo $ECHO_N "(cached) $ECHO_C" >&6
33364 ac_check_lib_save_LIBS=$LIBS
33366 cat >conftest.$ac_ext <<_ACEOF
33369 cat confdefs.h >>conftest.$ac_ext
33370 cat >>conftest.$ac_ext <<_ACEOF
33371 /* end confdefs.h. */
33373 /* Override any GCC internal prototype to avoid an error.
33374 Use char because int might match the return type of a GCC
33375 builtin and then its argument prototype would still apply. */
33379 char acl_get_file ();
33383 return acl_get_file ();
33388 rm -f conftest.$ac_objext conftest$ac_exeext
33389 if { (ac_try="$ac_link"
33390 case "(($ac_try" in
33391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33392 *) ac_try_echo=$ac_try;;
33394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33395 (eval "$ac_link") 2>conftest.er1
33397 grep -v '^ *+' conftest.er1 >conftest.err
33399 cat conftest.err >&5
33400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33401 (exit $ac_status); } &&
33402 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33403 { (case "(($ac_try" in
33404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33405 *) ac_try_echo=$ac_try;;
33407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33408 (eval "$ac_try") 2>&5
33410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33411 (exit $ac_status); }; } &&
33412 { ac_try='test -s conftest$ac_exeext'
33413 { (case "(($ac_try" in
33414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33415 *) ac_try_echo=$ac_try;;
33417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33418 (eval "$ac_try") 2>&5
33420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33421 (exit $ac_status); }; }; then
33422 ac_cv_lib_acl_acl_get_file=yes
33424 echo "$as_me: failed program was:" >&5
33425 sed 's/^/| /' conftest.$ac_ext >&5
33427 ac_cv_lib_acl_acl_get_file=no
33430 rm -f core conftest.err conftest.$ac_objext \
33431 conftest$ac_exeext conftest.$ac_ext
33432 LIBS=$ac_check_lib_save_LIBS
33434 { echo "$as_me:$LINENO: result: $ac_cv_lib_acl_acl_get_file" >&5
33435 echo "${ECHO_T}$ac_cv_lib_acl_acl_get_file" >&6; }
33436 if test $ac_cv_lib_acl_acl_get_file = yes; then
33437 have_acl=yes; FDLIBS="-lacl $FDLIBS"
33439 { echo "$as_me:$LINENO: checking for acltotext in -lsec" >&5
33440 echo $ECHO_N "checking for acltotext in -lsec... $ECHO_C" >&6; }
33441 if test "${ac_cv_lib_sec_acltotext+set}" = set; then
33442 echo $ECHO_N "(cached) $ECHO_C" >&6
33444 ac_check_lib_save_LIBS=$LIBS
33446 cat >conftest.$ac_ext <<_ACEOF
33449 cat confdefs.h >>conftest.$ac_ext
33450 cat >>conftest.$ac_ext <<_ACEOF
33451 /* end confdefs.h. */
33453 /* Override any GCC internal prototype to avoid an error.
33454 Use char because int might match the return type of a GCC
33455 builtin and then its argument prototype would still apply. */
33463 return acltotext ();
33468 rm -f conftest.$ac_objext conftest$ac_exeext
33469 if { (ac_try="$ac_link"
33470 case "(($ac_try" in
33471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33472 *) ac_try_echo=$ac_try;;
33474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33475 (eval "$ac_link") 2>conftest.er1
33477 grep -v '^ *+' conftest.er1 >conftest.err
33479 cat conftest.err >&5
33480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33481 (exit $ac_status); } &&
33482 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33483 { (case "(($ac_try" in
33484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33485 *) ac_try_echo=$ac_try;;
33487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33488 (eval "$ac_try") 2>&5
33490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33491 (exit $ac_status); }; } &&
33492 { ac_try='test -s conftest$ac_exeext'
33493 { (case "(($ac_try" in
33494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33495 *) ac_try_echo=$ac_try;;
33497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33498 (eval "$ac_try") 2>&5
33500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33501 (exit $ac_status); }; }; then
33502 ac_cv_lib_sec_acltotext=yes
33504 echo "$as_me: failed program was:" >&5
33505 sed 's/^/| /' conftest.$ac_ext >&5
33507 ac_cv_lib_sec_acltotext=no
33510 rm -f core conftest.err conftest.$ac_objext \
33511 conftest$ac_exeext conftest.$ac_ext
33512 LIBS=$ac_check_lib_save_LIBS
33514 { echo "$as_me:$LINENO: result: $ac_cv_lib_sec_acltotext" >&5
33515 echo "${ECHO_T}$ac_cv_lib_sec_acltotext" >&6; }
33516 if test $ac_cv_lib_sec_acltotext = yes; then
33517 have_acl=yes; FDLIBS="-lsec $FDLIBS"
33526 if test $have_acl = yes; then
33527 cat >>confdefs.h <<\_ACEOF
33534 { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
33535 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
33536 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
33537 echo $ECHO_N "(cached) $ECHO_C" >&6
33539 ac_check_lib_save_LIBS=$LIBS
33540 LIBS="-lpthread $LIBS"
33541 cat >conftest.$ac_ext <<_ACEOF
33544 cat confdefs.h >>conftest.$ac_ext
33545 cat >>conftest.$ac_ext <<_ACEOF
33546 /* end confdefs.h. */
33548 /* Override any GCC internal prototype to avoid an error.
33549 Use char because int might match the return type of a GCC
33550 builtin and then its argument prototype would still apply. */
33554 char pthread_create ();
33558 return pthread_create ();
33563 rm -f conftest.$ac_objext conftest$ac_exeext
33564 if { (ac_try="$ac_link"
33565 case "(($ac_try" in
33566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33567 *) ac_try_echo=$ac_try;;
33569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33570 (eval "$ac_link") 2>conftest.er1
33572 grep -v '^ *+' conftest.er1 >conftest.err
33574 cat conftest.err >&5
33575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33576 (exit $ac_status); } &&
33577 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33578 { (case "(($ac_try" in
33579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33580 *) ac_try_echo=$ac_try;;
33582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33583 (eval "$ac_try") 2>&5
33585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33586 (exit $ac_status); }; } &&
33587 { ac_try='test -s conftest$ac_exeext'
33588 { (case "(($ac_try" in
33589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33590 *) ac_try_echo=$ac_try;;
33592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33593 (eval "$ac_try") 2>&5
33595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33596 (exit $ac_status); }; }; then
33597 ac_cv_lib_pthread_pthread_create=yes
33599 echo "$as_me: failed program was:" >&5
33600 sed 's/^/| /' conftest.$ac_ext >&5
33602 ac_cv_lib_pthread_pthread_create=no
33605 rm -f core conftest.err conftest.$ac_objext \
33606 conftest$ac_exeext conftest.$ac_ext
33607 LIBS=$ac_check_lib_save_LIBS
33609 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
33610 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; }
33611 if test $ac_cv_lib_pthread_pthread_create = yes; then
33612 PTHREAD_LIB="-lpthread"
33614 { echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
33615 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6; }
33616 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
33617 echo $ECHO_N "(cached) $ECHO_C" >&6
33619 ac_check_lib_save_LIBS=$LIBS
33620 LIBS="-lpthreads $LIBS"
33621 cat >conftest.$ac_ext <<_ACEOF
33624 cat confdefs.h >>conftest.$ac_ext
33625 cat >>conftest.$ac_ext <<_ACEOF
33626 /* end confdefs.h. */
33628 /* Override any GCC internal prototype to avoid an error.
33629 Use char because int might match the return type of a GCC
33630 builtin and then its argument prototype would still apply. */
33634 char pthread_create ();
33638 return pthread_create ();
33643 rm -f conftest.$ac_objext conftest$ac_exeext
33644 if { (ac_try="$ac_link"
33645 case "(($ac_try" in
33646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33647 *) ac_try_echo=$ac_try;;
33649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33650 (eval "$ac_link") 2>conftest.er1
33652 grep -v '^ *+' conftest.er1 >conftest.err
33654 cat conftest.err >&5
33655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33656 (exit $ac_status); } &&
33657 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33658 { (case "(($ac_try" in
33659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33660 *) ac_try_echo=$ac_try;;
33662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33663 (eval "$ac_try") 2>&5
33665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33666 (exit $ac_status); }; } &&
33667 { ac_try='test -s conftest$ac_exeext'
33668 { (case "(($ac_try" in
33669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33670 *) ac_try_echo=$ac_try;;
33672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33673 (eval "$ac_try") 2>&5
33675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33676 (exit $ac_status); }; }; then
33677 ac_cv_lib_pthreads_pthread_create=yes
33679 echo "$as_me: failed program was:" >&5
33680 sed 's/^/| /' conftest.$ac_ext >&5
33682 ac_cv_lib_pthreads_pthread_create=no
33685 rm -f core conftest.err conftest.$ac_objext \
33686 conftest$ac_exeext conftest.$ac_ext
33687 LIBS=$ac_check_lib_save_LIBS
33689 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
33690 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6; }
33691 if test $ac_cv_lib_pthreads_pthread_create = yes; then
33692 PTHREAD_LIB="-lpthreads"
33694 { echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
33695 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6; }
33696 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
33697 echo $ECHO_N "(cached) $ECHO_C" >&6
33699 ac_check_lib_save_LIBS=$LIBS
33701 cat >conftest.$ac_ext <<_ACEOF
33704 cat confdefs.h >>conftest.$ac_ext
33705 cat >>conftest.$ac_ext <<_ACEOF
33706 /* end confdefs.h. */
33708 /* Override any GCC internal prototype to avoid an error.
33709 Use char because int might match the return type of a GCC
33710 builtin and then its argument prototype would still apply. */
33714 char pthread_create ();
33718 return pthread_create ();
33723 rm -f conftest.$ac_objext conftest$ac_exeext
33724 if { (ac_try="$ac_link"
33725 case "(($ac_try" in
33726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33727 *) ac_try_echo=$ac_try;;
33729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33730 (eval "$ac_link") 2>conftest.er1
33732 grep -v '^ *+' conftest.er1 >conftest.err
33734 cat conftest.err >&5
33735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33736 (exit $ac_status); } &&
33737 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33738 { (case "(($ac_try" in
33739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33740 *) ac_try_echo=$ac_try;;
33742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33743 (eval "$ac_try") 2>&5
33745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33746 (exit $ac_status); }; } &&
33747 { ac_try='test -s conftest$ac_exeext'
33748 { (case "(($ac_try" in
33749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33750 *) ac_try_echo=$ac_try;;
33752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33753 (eval "$ac_try") 2>&5
33755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33756 (exit $ac_status); }; }; then
33757 ac_cv_lib_c_r_pthread_create=yes
33759 echo "$as_me: failed program was:" >&5
33760 sed 's/^/| /' conftest.$ac_ext >&5
33762 ac_cv_lib_c_r_pthread_create=no
33765 rm -f core conftest.err conftest.$ac_objext \
33766 conftest$ac_exeext conftest.$ac_ext
33767 LIBS=$ac_check_lib_save_LIBS
33769 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
33770 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6; }
33771 if test $ac_cv_lib_c_r_pthread_create = yes; then
33772 PTHREAD_LIB="-lc_r"
33774 { echo "$as_me:$LINENO: checking for pthread_create" >&5
33775 echo $ECHO_N "checking for pthread_create... $ECHO_C" >&6; }
33776 if test "${ac_cv_func_pthread_create+set}" = set; then
33777 echo $ECHO_N "(cached) $ECHO_C" >&6
33779 cat >conftest.$ac_ext <<_ACEOF
33782 cat confdefs.h >>conftest.$ac_ext
33783 cat >>conftest.$ac_ext <<_ACEOF
33784 /* end confdefs.h. */
33785 /* Define pthread_create to an innocuous variant, in case <limits.h> declares pthread_create.
33786 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33787 #define pthread_create innocuous_pthread_create
33789 /* System header to define __stub macros and hopefully few prototypes,
33790 which can conflict with char pthread_create (); below.
33791 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33792 <limits.h> exists even on freestanding compilers. */
33795 # include <limits.h>
33797 # include <assert.h>
33800 #undef pthread_create
33802 /* Override any GCC internal prototype to avoid an error.
33803 Use char because int might match the return type of a GCC
33804 builtin and then its argument prototype would still apply. */
33808 char pthread_create ();
33809 /* The GNU C library defines this for functions which it implements
33810 to always fail with ENOSYS. Some functions are actually named
33811 something starting with __ and the normal name is an alias. */
33812 #if defined __stub_pthread_create || defined __stub___pthread_create
33819 return pthread_create ();
33824 rm -f conftest.$ac_objext conftest$ac_exeext
33825 if { (ac_try="$ac_link"
33826 case "(($ac_try" in
33827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33828 *) ac_try_echo=$ac_try;;
33830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33831 (eval "$ac_link") 2>conftest.er1
33833 grep -v '^ *+' conftest.er1 >conftest.err
33835 cat conftest.err >&5
33836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33837 (exit $ac_status); } &&
33838 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33839 { (case "(($ac_try" in
33840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33841 *) ac_try_echo=$ac_try;;
33843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33844 (eval "$ac_try") 2>&5
33846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33847 (exit $ac_status); }; } &&
33848 { ac_try='test -s conftest$ac_exeext'
33849 { (case "(($ac_try" in
33850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33851 *) ac_try_echo=$ac_try;;
33853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33854 (eval "$ac_try") 2>&5
33856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33857 (exit $ac_status); }; }; then
33858 ac_cv_func_pthread_create=yes
33860 echo "$as_me: failed program was:" >&5
33861 sed 's/^/| /' conftest.$ac_ext >&5
33863 ac_cv_func_pthread_create=no
33866 rm -f core conftest.err conftest.$ac_objext \
33867 conftest$ac_exeext conftest.$ac_ext
33869 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_create" >&5
33870 echo "${ECHO_T}$ac_cv_func_pthread_create" >&6; }
33883 cat >>confdefs.h <<\_ACEOF
33889 CFLAGS=${CFLAGS--O}
33891 if test x$have_gcc = xyes ; then
33892 CPPFLAGS="$CPPFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
33893 CFLAGS="$CFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
33895 LDFLAGS=${LDFLAGS--O}
33896 DB_LIBS="${SQL_LFLAGS}"
33897 CPPFLAGS="$CPPFLAGS"
33925 # Finally we set appropriate distribution specific
33926 # variables and defaults
33928 # PFILES are platform specific files
33929 PFILES="platforms/Makefile"
33933 hostname=`uname -n | cut -d '.' -f 1`
33934 if test x${hostname} = x ; then
33935 hostname="localhost"
33937 case "$DISTNAME" in
33940 PSCMD="ps -e -o pid,comm"
33941 PFILES="${PFILES} \
33942 platforms/aix/Makefile"
33943 TAPEDRIVE="/dev/rmt0.1"
33947 PTHREAD_LIB="-lpthread -lexc"
33948 if test "${CC}" = "gcc" ; then
33955 TAPEDRIVE="/dev/nrmt0"
33958 DISTVER=`uname -a |awk '{print $3}'`
33959 TAPEDRIVE="/dev/nrmt0"
33960 PTHREAD_LIB="-pthread"
33961 CFLAGS="${CFLAGS} -pthread"
33962 PSCMD="ps -ax -o pid,command"
33965 PFILES="${PFILES} \
33966 platforms/bsdi/Makefile \
33967 platforms/bsdi/bacula-fd \
33968 platforms/bsdi/bacula-sd \
33969 platforms/bsdi/bacula-dir"
33970 largefile_support="yes"
33973 DISTVER=`uname -a |awk '{print $3}'`
33974 TAPEDRIVE="/dev/nrst0"
33976 WCFLAGS="-mwindows"
33977 WLDFLAGS="-mwindows"
33981 TAPEDRIVE="/dev/nst0"
33982 PSCMD="ps -e -o pid,command"
33984 PFILES="${PFILES} \
33985 platforms/darwin/Makefile"
33988 DISTVER=`cat /etc/debian_version`
33989 TAPEDRIVE="/dev/nrst0"
33990 PSCMD="ps -e -o pid,command"
33993 DISTVER=`uname -a |awk '{print $3}'`
33994 VER=`echo $DISTVER | cut -c 1`
33995 if test x$VER = x4 ; then
33996 PTHREAD_LIB="${PTHREAD_LIBS:--pthread}"
33997 CFLAGS="${CFLAGS} ${PTHREAD_CFLAGS:--pthread}"
34001 TAPEDRIVE="/dev/nrsa0"
34002 PSCMD="ps -ax -o pid,command"
34003 PFILES="${PFILES} \
34004 platforms/freebsd/Makefile \
34005 platforms/freebsd/bacula-fd \
34006 platforms/freebsd/bacula-sd \
34007 platforms/freebsd/bacula-dir"
34008 largefile_support="yes"
34011 PSCMD="UNIX95=1 ps -e -o pid,comm"
34012 CFLAGS="${CFLAGS} -D_XOPEN_SOURCE_EXTENDED=1"
34014 TAPEDRIVE="/dev/rmt/0hnb"
34015 PTHREAD_LIB="-lpthread"
34016 cat >>confdefs.h <<\_ACEOF
34017 #define _INCLUDE_LONGLONG 1
34023 TAPEDRIVE="/dev/rmt/0cbn"
34024 PSCMD="ps -e -o pid,comm"
34025 PFILES="${PFILES} \
34026 platforms/irix/Makefile \
34027 platforms/irix/bacula-fd \
34028 platforms/irix/bacula-sd \
34029 platforms/irix/bacula-dir"
34032 DISTVER=`uname -a |awk '{print $3}'`
34035 TAPEDRIVE="/dev/nrst0"
34036 PSCMD="ps -ax -o pid,command"
34037 PTHREAD_LIB="-pthread"
34038 CFLAGS="${CFLAGS} -pthread"
34041 DISTVER=`uname -a |awk '{print $3}'`
34044 TAPEDRIVE="/dev/nrst0"
34045 PSCMD="ps -ax -o pid,command"
34046 PTHREAD_LIB="-pthread"
34047 CFLAGS="${CFLAGS} -pthread"
34048 PFILES="${PFILES} \
34049 platforms/openbsd/Makefile \
34050 platforms/openbsd/bacula-fd \
34051 platforms/openbsd/bacula-sd \
34052 platforms/openbsd/bacula-dir"
34055 if test -f /etc/whitebox-release ; then
34056 f=/etc/whitebox-release
34058 f=/etc/redhat-release
34060 if test `cat $f | grep release |\
34061 cut -f 3 -d ' '`x = "Enterprise"x ; then
34062 DISTVER="Enterprise "`cat $f | grep release |\
34065 DISTVER=`cat /etc/redhat-release | grep release |\
34068 TAPEDRIVE="/dev/nst0"
34069 PSCMD="ps -e -o pid,command"
34070 PFILES="${PFILES} \
34071 platforms/redhat/Makefile \
34072 platforms/redhat/bacula-fd \
34073 platforms/redhat/bacula-sd \
34074 platforms/redhat/bacula-dir \
34075 platforms/redhat/bacula.spec \
34079 DISTVER=`cat /etc/mandrake-release | grep release |\
34081 TAPEDRIVE="/dev/nst0"
34082 PSCMD="ps -e -o pid,command"
34083 PFILES="${PFILES} \
34084 platforms/mandrake/Makefile \
34085 platforms/mandrake/bacula-fd \
34086 platforms/mandrake/bacula-sd \
34087 platforms/mandrake/bacula-dir \
34088 platforms/mandrake/bacula.spec \
34092 DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
34093 TAPEDRIVE="/dev/nst0"
34094 PSCMD="ps -e -o pid,command"
34095 PFILES="${PFILES} \
34096 platforms/gentoo/Makefile \
34097 platforms/gentoo/bacula-init \
34098 platforms/gentoo/bacula-fd \
34099 platforms/gentoo/bacula-sd \
34100 platforms/gentoo/bacula-dir"
34103 DISTVER=`cat /etc/slackware-version`
34104 TAPEDRIVE="/dev/nst0"
34105 PSCMD="ps -e -o pid,command"
34106 PFILES="${PFILES} \
34107 platforms/slackware/Makefile \
34108 platforms/slackware/rc.bacula-fd \
34109 platforms/slackware/rc.bacula-sd \
34110 platforms/slackware/rc.bacula-dir\
34111 platforms/slackware/functions.bacula"
34115 TAPEDRIVE="/dev/rmt/0cbn"
34116 PSCMD="ps -e -o pid,comm"
34117 PFILES="${PFILES} \
34118 platforms/solaris/Makefile \
34119 platforms/solaris/bacula-fd \
34120 platforms/solaris/bacula-sd \
34121 platforms/solaris/bacula-dir"
34122 if test x$DISTVER = x5.6 ; then
34123 cat >>confdefs.h <<\_ACEOF
34124 #define HAVE_OLD_SOCKOPT 1
34128 LIBS="$LIBS -lresolv"
34131 DISTVER=`cat /etc/SuSE-release |grep VERSION|\
34133 TAPEDRIVE="/dev/nst0"
34134 PSCMD="ps -e -o pid,command"
34135 PFILES="${PFILES} \
34136 platforms/suse/Makefile \
34137 platforms/suse/bacula-fd \
34138 platforms/suse/bacula-sd \
34139 platforms/suse/bacula-dir \
34140 platforms/suse/bacula \
34141 platforms/suse/bacula.spec"
34146 TAPEDRIVE="/dev/nst0"
34147 PSCMD="ps -e -o pid,command"
34148 PFILES="${PFILES} \
34149 platforms/suse/Makefile \
34150 platforms/suse/bacula-fd \
34151 platforms/suse/bacula-sd \
34152 platforms/suse/bacula-dir"
34156 TAPEDRIVE="/dev/nst0"
34159 echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
34165 LIBS="$PTHREAD_LIB $LIBS"
34167 cat >>confdefs.h <<_ACEOF
34171 cat >>confdefs.h <<_ACEOF
34182 MCOMMON=./autoconf/Make.common
34185 if test "x${subsysdir}" = "x${sbindir}" ; then
34188 echo "You have set both --sbindir and --with-subsys-dir"
34189 echo " equal to: ${subsysdir} "
34190 echo "This is not permitted. Please reconfigure."
34192 echo "Aborting configuration ..."
34198 ac_config_files="$ac_config_files autoconf/Make.common Makefile manpages/Makefile scripts/startmysql scripts/stopmysql scripts/btraceback scripts/startit scripts/stopit scripts/bconsole scripts/gconsole scripts/bacula scripts/bacula-ctl-dir scripts/bacula-ctl-fd scripts/bacula-ctl-sd scripts/devel_bacula scripts/Makefile scripts/logrotate scripts/bacula.desktop.gnome1 scripts/bacula.desktop.gnome2 scripts/bacula.desktop.gnome1.consolehelper scripts/bacula.desktop.gnome2.consolehelper scripts/bacula.desktop.gnome1.xsu scripts/bacula.desktop.gnome2.xsu scripts/bgnome-console.console_apps scripts/mtx-changer scripts/disk-changer scripts/dvd-handler scripts/dvd-simulator scripts/bacula-tray-monitor.desktop scripts/logwatch/Makefile scripts/logwatch/logfile.bacula.conf scripts/wxconsole.console_apps scripts/wxconsole.desktop.consolehelper scripts/wxconsole.desktop.xsu scripts/bat.desktop scripts/bat.desktop.xsu scripts/bat.desktop.consolehelper scripts/bat.console_apps src/Makefile src/host.h src/console/Makefile src/console/bconsole.conf src/gnome2-console/Makefile src/gnome2-console/bgnome-console.conf src/qt-console/bat.conf src/qt-console/bat.pro src/qt-console/install_conf_file src/wx-console/Makefile src/wx-console/bwx-console.conf src/tray-monitor/Makefile src/tray-monitor/tray-monitor.conf src/dird/Makefile src/dird/bacula-dir.conf src/lib/Makefile src/stored/Makefile src/stored/bacula-sd.conf src/filed/Makefile src/filed/bacula-fd.conf src/cats/Makefile src/cats/make_catalog_backup src/cats/delete_catalog_backup src/cats/create_postgresql_database src/cats/update_postgresql_tables src/cats/make_postgresql_tables src/cats/grant_postgresql_privileges src/cats/drop_postgresql_tables src/cats/drop_postgresql_database src/cats/create_mysql_database src/cats/update_mysql_tables src/cats/make_mysql_tables src/cats/grant_mysql_privileges src/cats/drop_mysql_tables src/cats/drop_mysql_database src/cats/create_sqlite_database src/cats/update_sqlite_tables src/cats/make_sqlite_tables src/cats/grant_sqlite_privileges src/cats/drop_sqlite_tables src/cats/drop_sqlite_database src/cats/create_sqlite3_database src/cats/update_sqlite3_tables src/cats/make_sqlite3_tables src/cats/grant_sqlite3_privileges src/cats/drop_sqlite3_tables src/cats/drop_sqlite3_database src/cats/sqlite src/cats/mysql src/cats/create_bdb_database src/cats/update_bdb_tables src/cats/make_bdb_tables src/cats/grant_bdb_privileges src/cats/drop_bdb_tables src/cats/drop_bdb_database src/cats/create_bacula_database src/cats/update_bacula_tables src/cats/grant_bacula_privileges src/cats/make_bacula_tables src/cats/drop_bacula_tables src/cats/drop_bacula_database src/findlib/Makefile src/tools/Makefile po/Makefile.in $PFILES"
34200 ac_config_commands="$ac_config_commands default"
34202 cat >confcache <<\_ACEOF
34203 # This file is a shell script that caches the results of configure
34204 # tests run on this system so they can be shared between configure
34205 # scripts and configure runs, see configure's option --config-cache.
34206 # It is not useful on other systems. If it contains results you don't
34207 # want to keep, you may remove or edit it.
34209 # config.status only pays attention to the cache file if you give it
34210 # the --recheck option to rerun configure.
34212 # `ac_cv_env_foo' variables (set or unset) will be overridden when
34213 # loading this file, other *unset* `ac_cv_foo' will be assigned the
34214 # following values.
34218 # The following way of writing the cache mishandles newlines in values,
34219 # but we know of no workaround that is simple, portable, and efficient.
34220 # So, we kill variables containing newlines.
34221 # Ultrix sh set writes to stderr and can't be redirected directly,
34222 # and sets the high bit in the cache file unless we assign to the vars.
34224 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
34225 eval ac_val=\$$ac_var
34229 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
34230 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
34233 _ | IFS | as_nl) ;; #(
34234 *) $as_unset $ac_var ;;
34240 case $as_nl`(ac_space=' '; set) 2>&1` in #(
34241 *${as_nl}ac_space=\ *)
34242 # `set' does not quote correctly, so add quotes (double-quote
34243 # substitution turns \\\\ into \\, and sed turns \\ into \).
34246 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
34249 # `set' quotes correctly as required by POSIX, so do not add quotes.
34250 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
34259 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
34261 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
34263 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
34264 if test -w "$cache_file"; then
34265 test "x$cache_file" != "x/dev/null" &&
34266 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
34267 echo "$as_me: updating cache $cache_file" >&6;}
34268 cat confcache >$cache_file
34270 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
34271 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
34276 test "x$prefix" = xNONE && prefix=$ac_default_prefix
34277 # Let make expand exec_prefix.
34278 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
34280 DEFS=-DHAVE_CONFIG_H
34284 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
34285 # 1. Remove the extension, and $U if already installed.
34286 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
34287 ac_i=`echo "$ac_i" | sed "$ac_script"`
34288 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
34289 # will be set to the directory where LIBOBJS objects are built.
34290 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
34291 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
34293 LIBOBJS=$ac_libobjs
34295 LTLIBOBJS=$ac_ltlibobjs
34299 : ${CONFIG_STATUS=./config.status}
34300 ac_clean_files_save=$ac_clean_files
34301 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
34302 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
34303 echo "$as_me: creating $CONFIG_STATUS" >&6;}
34304 cat >$CONFIG_STATUS <<_ACEOF
34306 # Generated by $as_me.
34307 # Run this file to recreate the current configuration.
34308 # Compiler output produced by configure, useful for debugging
34309 # configure, is in config.log if it exists.
34312 ac_cs_recheck=false
34314 SHELL=\${CONFIG_SHELL-$SHELL}
34317 cat >>$CONFIG_STATUS <<\_ACEOF
34318 ## --------------------- ##
34319 ## M4sh Initialization. ##
34320 ## --------------------- ##
34322 # Be Bourne compatible
34323 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
34326 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
34327 # is contrary to our usage. Disable this feature.
34328 alias -g '${1+"$@"}'='"$@"'
34329 setopt NO_GLOB_SUBST
34331 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
34333 BIN_SH=xpg4; export BIN_SH # for Tru64
34334 DUALCASE=1; export DUALCASE # for MKS sh
34338 # Avoid depending upon Character Ranges.
34339 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
34340 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
34341 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
34342 as_cr_digits='0123456789'
34343 as_cr_alnum=$as_cr_Letters$as_cr_digits
34345 # The user is always right.
34346 if test "${PATH_SEPARATOR+set}" != set; then
34347 echo "#! /bin/sh" >conf$$.sh
34348 echo "exit 0" >>conf$$.sh
34350 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
34358 # Support unset when possible.
34359 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
34367 # We need space, tab and new line, in precisely that order. Quoting is
34368 # there to prevent editors from complaining about space-tab.
34369 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
34370 # splitting by setting IFS to empty value.)
34375 # Find who we are. Look in the path if we contain no directory separator.
34377 *[\\/]* ) as_myself=$0 ;;
34378 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34379 for as_dir in $PATH
34382 test -z "$as_dir" && as_dir=.
34383 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
34389 # We did not find ourselves, most probably we were run as `sh COMMAND'
34390 # in which case we are not to be found in the path.
34391 if test "x$as_myself" = x; then
34394 if test ! -f "$as_myself"; then
34395 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
34396 { (exit 1); exit 1; }
34399 # Work around bugs in pre-3.0 UWIN ksh.
34400 for as_var in ENV MAIL MAILPATH
34401 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
34409 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
34410 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
34411 LC_TELEPHONE LC_TIME
34413 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
34414 eval $as_var=C; export $as_var
34416 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
34420 # Required to use basename.
34421 if expr a : '\(a\)' >/dev/null 2>&1 &&
34422 test "X`expr 00001 : '.*\(...\)'`" = X001; then
34428 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
34429 as_basename=basename
34435 # Name of the executable.
34436 as_me=`$as_basename -- "$0" ||
34437 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
34438 X"$0" : 'X\(//\)$' \| \
34439 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
34441 sed '/^.*\/\([^/][^/]*\)\/*$/{
34460 as_lineno_1=$LINENO
34461 as_lineno_2=$LINENO
34462 test "x$as_lineno_1" != "x$as_lineno_2" &&
34463 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
34465 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
34466 # uniformly replaced by the line number. The first 'sed' inserts a
34467 # line-number line after each line using $LINENO; the second 'sed'
34468 # does the real work. The second script uses 'N' to pair each
34469 # line-number line with the line containing $LINENO, and appends
34470 # trailing '-' during substitution so that $LINENO is not a special
34471 # case at line end.
34472 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
34473 # scripts with optimization help from Paolo Bonzini. Blame Lee
34474 # E. McMahon (1931-1989) for sed's syntax. :-)
34486 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
34489 ' >$as_me.lineno &&
34490 chmod +x "$as_me.lineno" ||
34491 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
34492 { (exit 1); exit 1; }; }
34494 # Don't try to exec as it changes $[0], causing all sort of problems
34495 # (the dirname of $[0] is not the place where we might find the
34496 # original and so on. Autoconf is especially sensitive to this).
34497 . "./$as_me.lineno"
34498 # Exit status is that of the last command.
34503 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
34509 ECHO_C= ECHO_N= ECHO_T=
34510 case `echo -n x` in
34512 case `echo 'x\c'` in
34513 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
34520 if expr a : '\(a\)' >/dev/null 2>&1 &&
34521 test "X`expr 00001 : '.*\(...\)'`" = X001; then
34527 rm -f conf$$ conf$$.exe conf$$.file
34528 if test -d conf$$.dir; then
34529 rm -f conf$$.dir/conf$$.file
34535 if ln -s conf$$.file conf$$ 2>/dev/null; then
34537 # ... but there are two gotchas:
34538 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
34539 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
34540 # In both cases, we have to default to `cp -p'.
34541 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
34543 elif ln conf$$.file conf$$ 2>/dev/null; then
34548 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
34549 rmdir conf$$.dir 2>/dev/null
34551 if mkdir -p . 2>/dev/null; then
34554 test -d ./-p && rmdir ./-p
34558 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
34559 # systems may use methods other than mode bits to determine executability.
34560 cat >conf$$.file <<_ASEOF
34564 chmod +x conf$$.file
34565 if test -x conf$$.file >/dev/null 2>&1; then
34566 as_executable_p="test -x"
34572 # Sed expression to map a string onto a valid CPP name.
34573 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
34575 # Sed expression to map a string onto a valid variable name.
34576 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
34581 # Save the log message, to keep $[0] and so on meaningful, and to
34582 # report actual input values of CONFIG_FILES etc. instead of their
34583 # values after options handling.
34585 This file was extended by $as_me, which was
34586 generated by GNU Autoconf 2.60. Invocation command line was
34588 CONFIG_FILES = $CONFIG_FILES
34589 CONFIG_HEADERS = $CONFIG_HEADERS
34590 CONFIG_LINKS = $CONFIG_LINKS
34591 CONFIG_COMMANDS = $CONFIG_COMMANDS
34594 on `(hostname || uname -n) 2>/dev/null | sed 1q`
34599 cat >>$CONFIG_STATUS <<_ACEOF
34600 # Files that config.status was made for.
34601 config_files="$ac_config_files"
34602 config_headers="$ac_config_headers"
34603 config_commands="$ac_config_commands"
34607 cat >>$CONFIG_STATUS <<\_ACEOF
34609 \`$as_me' instantiates files from templates according to the
34610 current configuration.
34612 Usage: $0 [OPTIONS] [FILE]...
34614 -h, --help print this help, then exit
34615 -V, --version print version number, then exit
34616 -q, --quiet do not print progress messages
34617 -d, --debug don't remove temporary files
34618 --recheck update $as_me by reconfiguring in the same conditions
34619 --file=FILE[:TEMPLATE]
34620 instantiate the configuration file FILE
34621 --header=FILE[:TEMPLATE]
34622 instantiate the configuration header FILE
34624 Configuration files:
34627 Configuration headers:
34630 Configuration commands:
34633 Report bugs to <bug-autoconf@gnu.org>."
34636 cat >>$CONFIG_STATUS <<_ACEOF
34639 configured by $0, generated by GNU Autoconf 2.60,
34640 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
34642 Copyright (C) 2006 Free Software Foundation, Inc.
34643 This config.status script is free software; the Free Software Foundation
34644 gives unlimited permission to copy, distribute and modify it."
34651 cat >>$CONFIG_STATUS <<\_ACEOF
34652 # If no file are specified by the user, then we need to provide default
34653 # value. By we need to know if files were specified by the user.
34659 ac_option=`expr "X$1" : 'X\([^=]*\)='`
34660 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
34671 # Handling of the options.
34672 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
34674 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
34675 echo "$ac_cs_version"; exit ;;
34676 --debug | --debu | --deb | --de | --d | -d )
34678 --file | --fil | --fi | --f )
34680 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
34681 ac_need_defaults=false;;
34682 --header | --heade | --head | --hea )
34684 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
34685 ac_need_defaults=false;;
34687 # Conflict between --help and --header
34688 { echo "$as_me: error: ambiguous option: $1
34689 Try \`$0 --help' for more information." >&2
34690 { (exit 1); exit 1; }; };;
34691 --help | --hel | -h )
34692 echo "$ac_cs_usage"; exit ;;
34693 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
34694 | -silent | --silent | --silen | --sile | --sil | --si | --s)
34697 # This is an error.
34698 -*) { echo "$as_me: error: unrecognized option: $1
34699 Try \`$0 --help' for more information." >&2
34700 { (exit 1); exit 1; }; } ;;
34702 *) ac_config_targets="$ac_config_targets $1"
34703 ac_need_defaults=false ;;
34709 ac_configure_extra_args=
34711 if $ac_cs_silent; then
34713 ac_configure_extra_args="$ac_configure_extra_args --silent"
34717 cat >>$CONFIG_STATUS <<_ACEOF
34718 if \$ac_cs_recheck; then
34719 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
34720 CONFIG_SHELL=$SHELL
34721 export CONFIG_SHELL
34722 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
34726 cat >>$CONFIG_STATUS <<\_ACEOF
34730 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
34731 ## Running $as_me. ##
34737 cat >>$CONFIG_STATUS <<_ACEOF
34741 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
34742 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
34744 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
34745 # Capture the value of LINGUAS because we need it to compute CATALOGS.
34746 LINGUAS="${LINGUAS-%UNSET%}"
34751 cat >>$CONFIG_STATUS <<\_ACEOF
34753 # Handling of arguments.
34754 for ac_config_target in $ac_config_targets
34756 case $ac_config_target in
34757 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:autoconf/config.h.in" ;;
34758 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
34759 "autoconf/Make.common") CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
34760 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
34761 "manpages/Makefile") CONFIG_FILES="$CONFIG_FILES manpages/Makefile" ;;
34762 "scripts/startmysql") CONFIG_FILES="$CONFIG_FILES scripts/startmysql" ;;
34763 "scripts/stopmysql") CONFIG_FILES="$CONFIG_FILES scripts/stopmysql" ;;
34764 "scripts/btraceback") CONFIG_FILES="$CONFIG_FILES scripts/btraceback" ;;
34765 "scripts/startit") CONFIG_FILES="$CONFIG_FILES scripts/startit" ;;
34766 "scripts/stopit") CONFIG_FILES="$CONFIG_FILES scripts/stopit" ;;
34767 "scripts/bconsole") CONFIG_FILES="$CONFIG_FILES scripts/bconsole" ;;
34768 "scripts/gconsole") CONFIG_FILES="$CONFIG_FILES scripts/gconsole" ;;
34769 "scripts/bacula") CONFIG_FILES="$CONFIG_FILES scripts/bacula" ;;
34770 "scripts/bacula-ctl-dir") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-dir" ;;
34771 "scripts/bacula-ctl-fd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-fd" ;;
34772 "scripts/bacula-ctl-sd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-sd" ;;
34773 "scripts/devel_bacula") CONFIG_FILES="$CONFIG_FILES scripts/devel_bacula" ;;
34774 "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
34775 "scripts/logrotate") CONFIG_FILES="$CONFIG_FILES scripts/logrotate" ;;
34776 "scripts/bacula.desktop.gnome1") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1" ;;
34777 "scripts/bacula.desktop.gnome2") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2" ;;
34778 "scripts/bacula.desktop.gnome1.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.consolehelper" ;;
34779 "scripts/bacula.desktop.gnome2.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.consolehelper" ;;
34780 "scripts/bacula.desktop.gnome1.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.xsu" ;;
34781 "scripts/bacula.desktop.gnome2.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.xsu" ;;
34782 "scripts/bgnome-console.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/bgnome-console.console_apps" ;;
34783 "scripts/mtx-changer") CONFIG_FILES="$CONFIG_FILES scripts/mtx-changer" ;;
34784 "scripts/disk-changer") CONFIG_FILES="$CONFIG_FILES scripts/disk-changer" ;;
34785 "scripts/dvd-handler") CONFIG_FILES="$CONFIG_FILES scripts/dvd-handler" ;;
34786 "scripts/dvd-simulator") CONFIG_FILES="$CONFIG_FILES scripts/dvd-simulator" ;;
34787 "scripts/bacula-tray-monitor.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bacula-tray-monitor.desktop" ;;
34788 "scripts/logwatch/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/Makefile" ;;
34789 "scripts/logwatch/logfile.bacula.conf") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/logfile.bacula.conf" ;;
34790 "scripts/wxconsole.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.console_apps" ;;
34791 "scripts/wxconsole.desktop.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.consolehelper" ;;
34792 "scripts/wxconsole.desktop.xsu") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.xsu" ;;
34793 "scripts/bat.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop" ;;
34794 "scripts/bat.desktop.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.xsu" ;;
34795 "scripts/bat.desktop.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.consolehelper" ;;
34796 "scripts/bat.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/bat.console_apps" ;;
34797 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
34798 "src/host.h") CONFIG_FILES="$CONFIG_FILES src/host.h" ;;
34799 "src/console/Makefile") CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;;
34800 "src/console/bconsole.conf") CONFIG_FILES="$CONFIG_FILES src/console/bconsole.conf" ;;
34801 "src/gnome2-console/Makefile") CONFIG_FILES="$CONFIG_FILES src/gnome2-console/Makefile" ;;
34802 "src/gnome2-console/bgnome-console.conf") CONFIG_FILES="$CONFIG_FILES src/gnome2-console/bgnome-console.conf" ;;
34803 "src/qt-console/bat.conf") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.conf" ;;
34804 "src/qt-console/bat.pro") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro" ;;
34805 "src/qt-console/install_conf_file") CONFIG_FILES="$CONFIG_FILES src/qt-console/install_conf_file" ;;
34806 "src/wx-console/Makefile") CONFIG_FILES="$CONFIG_FILES src/wx-console/Makefile" ;;
34807 "src/wx-console/bwx-console.conf") CONFIG_FILES="$CONFIG_FILES src/wx-console/bwx-console.conf" ;;
34808 "src/tray-monitor/Makefile") CONFIG_FILES="$CONFIG_FILES src/tray-monitor/Makefile" ;;
34809 "src/tray-monitor/tray-monitor.conf") CONFIG_FILES="$CONFIG_FILES src/tray-monitor/tray-monitor.conf" ;;
34810 "src/dird/Makefile") CONFIG_FILES="$CONFIG_FILES src/dird/Makefile" ;;
34811 "src/dird/bacula-dir.conf") CONFIG_FILES="$CONFIG_FILES src/dird/bacula-dir.conf" ;;
34812 "src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
34813 "src/stored/Makefile") CONFIG_FILES="$CONFIG_FILES src/stored/Makefile" ;;
34814 "src/stored/bacula-sd.conf") CONFIG_FILES="$CONFIG_FILES src/stored/bacula-sd.conf" ;;
34815 "src/filed/Makefile") CONFIG_FILES="$CONFIG_FILES src/filed/Makefile" ;;
34816 "src/filed/bacula-fd.conf") CONFIG_FILES="$CONFIG_FILES src/filed/bacula-fd.conf" ;;
34817 "src/cats/Makefile") CONFIG_FILES="$CONFIG_FILES src/cats/Makefile" ;;
34818 "src/cats/make_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup" ;;
34819 "src/cats/delete_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/delete_catalog_backup" ;;
34820 "src/cats/create_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_postgresql_database" ;;
34821 "src/cats/update_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_postgresql_tables" ;;
34822 "src/cats/make_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_postgresql_tables" ;;
34823 "src/cats/grant_postgresql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_postgresql_privileges" ;;
34824 "src/cats/drop_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_tables" ;;
34825 "src/cats/drop_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_database" ;;
34826 "src/cats/create_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_mysql_database" ;;
34827 "src/cats/update_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_mysql_tables" ;;
34828 "src/cats/make_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_mysql_tables" ;;
34829 "src/cats/grant_mysql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_mysql_privileges" ;;
34830 "src/cats/drop_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_tables" ;;
34831 "src/cats/drop_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_database" ;;
34832 "src/cats/create_sqlite_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite_database" ;;
34833 "src/cats/update_sqlite_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite_tables" ;;
34834 "src/cats/make_sqlite_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite_tables" ;;
34835 "src/cats/grant_sqlite_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite_privileges" ;;
34836 "src/cats/drop_sqlite_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_tables" ;;
34837 "src/cats/drop_sqlite_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_database" ;;
34838 "src/cats/create_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite3_database" ;;
34839 "src/cats/update_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite3_tables" ;;
34840 "src/cats/make_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite3_tables" ;;
34841 "src/cats/grant_sqlite3_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite3_privileges" ;;
34842 "src/cats/drop_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_tables" ;;
34843 "src/cats/drop_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_database" ;;
34844 "src/cats/sqlite") CONFIG_FILES="$CONFIG_FILES src/cats/sqlite" ;;
34845 "src/cats/mysql") CONFIG_FILES="$CONFIG_FILES src/cats/mysql" ;;
34846 "src/cats/create_bdb_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_bdb_database" ;;
34847 "src/cats/update_bdb_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_bdb_tables" ;;
34848 "src/cats/make_bdb_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_bdb_tables" ;;
34849 "src/cats/grant_bdb_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_bdb_privileges" ;;
34850 "src/cats/drop_bdb_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_tables" ;;
34851 "src/cats/drop_bdb_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_database" ;;
34852 "src/cats/create_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_bacula_database" ;;
34853 "src/cats/update_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_bacula_tables" ;;
34854 "src/cats/grant_bacula_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_bacula_privileges" ;;
34855 "src/cats/make_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_bacula_tables" ;;
34856 "src/cats/drop_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_tables" ;;
34857 "src/cats/drop_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_database" ;;
34858 "src/findlib/Makefile") CONFIG_FILES="$CONFIG_FILES src/findlib/Makefile" ;;
34859 "src/tools/Makefile") CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
34860 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
34861 "$PFILES") CONFIG_FILES="$CONFIG_FILES $PFILES" ;;
34862 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
34864 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
34865 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
34866 { (exit 1); exit 1; }; };;
34871 # If the user did not use the arguments to specify the items to instantiate,
34872 # then the envvar interface is used. Set only those that are not.
34873 # We use the long form for the default assignment because of an extremely
34874 # bizarre bug on SunOS 4.1.3.
34875 if $ac_need_defaults; then
34876 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
34877 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
34878 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
34881 # Have a temporary directory for convenience. Make it in the build tree
34882 # simply because there is no reason against having it here, and in addition,
34883 # creating and moving files from /tmp can sometimes cause problems.
34884 # Hook for its removal unless debugging.
34885 # Note that there is a small window in which the directory will not be cleaned:
34886 # after its creation but before its name has been assigned to `$tmp'.
34890 trap 'exit_status=$?
34891 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
34893 trap '{ (exit 1); exit 1; }' 1 2 13 15
34895 # Create a (secure) tmp directory for tmp files.
34898 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
34899 test -n "$tmp" && test -d "$tmp"
34902 tmp=./conf$$-$RANDOM
34903 (umask 077 && mkdir "$tmp")
34906 echo "$me: cannot create a temporary directory in ." >&2
34907 { (exit 1); exit 1; }
34911 # Set up the sed scripts for CONFIG_FILES section.
34914 # No need to generate the scripts if there are no CONFIG_FILES.
34915 # This happens for instance when ./config.status config.h
34916 if test -n "$CONFIG_FILES"; then
34920 # Create sed commands to just substitute file output variables.
34922 # Remaining file output variables are in a fragment that also has non-file
34928 for ac_last_try in false false false false false :; do
34929 cat >conf$$subs.sed <<_ACEOF
34930 SHELL!$SHELL$ac_delim
34931 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
34932 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
34933 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
34934 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
34935 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
34936 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
34937 exec_prefix!$exec_prefix$ac_delim
34938 prefix!$prefix$ac_delim
34939 program_transform_name!$program_transform_name$ac_delim
34940 bindir!$bindir$ac_delim
34941 sbindir!$sbindir$ac_delim
34942 libexecdir!$libexecdir$ac_delim
34943 datarootdir!$datarootdir$ac_delim
34944 datadir!$datadir$ac_delim
34945 sysconfdir!$sysconfdir$ac_delim
34946 sharedstatedir!$sharedstatedir$ac_delim
34947 localstatedir!$localstatedir$ac_delim
34948 includedir!$includedir$ac_delim
34949 oldincludedir!$oldincludedir$ac_delim
34950 docdir!$docdir$ac_delim
34951 infodir!$infodir$ac_delim
34952 htmldir!$htmldir$ac_delim
34953 dvidir!$dvidir$ac_delim
34954 pdfdir!$pdfdir$ac_delim
34955 psdir!$psdir$ac_delim
34956 libdir!$libdir$ac_delim
34957 localedir!$localedir$ac_delim
34958 mandir!$mandir$ac_delim
34959 DEFS!$DEFS$ac_delim
34960 ECHO_C!$ECHO_C$ac_delim
34961 ECHO_N!$ECHO_N$ac_delim
34962 ECHO_T!$ECHO_T$ac_delim
34963 LIBS!$LIBS$ac_delim
34964 build_alias!$build_alias$ac_delim
34965 host_alias!$host_alias$ac_delim
34966 target_alias!$target_alias$ac_delim
34967 BUILD_DIR!$BUILD_DIR$ac_delim
34968 TOP_DIR!$TOP_DIR$ac_delim
34969 TRUEPRG!$TRUEPRG$ac_delim
34970 FALSEPRG!$FALSEPRG$ac_delim
34971 VERSION!$VERSION$ac_delim
34972 DATE!$DATE$ac_delim
34973 LSMDATE!$LSMDATE$ac_delim
34975 CFLAGS!$CFLAGS$ac_delim
34976 LDFLAGS!$LDFLAGS$ac_delim
34977 CPPFLAGS!$CPPFLAGS$ac_delim
34978 ac_ct_CC!$ac_ct_CC$ac_delim
34979 EXEEXT!$EXEEXT$ac_delim
34980 OBJEXT!$OBJEXT$ac_delim
34982 CXXFLAGS!$CXXFLAGS$ac_delim
34983 ac_ct_CXX!$ac_ct_CXX$ac_delim
34985 GREP!$GREP$ac_delim
34986 EGREP!$EGREP$ac_delim
34987 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
34988 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
34989 INSTALL_DATA!$INSTALL_DATA$ac_delim
34990 RANLIB!$RANLIB$ac_delim
34995 ECHO!$ECHO$ac_delim
34999 OPENSSL!$OPENSSL$ac_delim
35002 MKISOFS!$MKISOFS$ac_delim
35003 PYTHON!$PYTHON$ac_delim
35004 GROWISOFS!$GROWISOFS$ac_delim
35005 DVDRWMEDIAINFO!$DVDRWMEDIAINFO$ac_delim
35006 DVDRWFORMAT!$DVDRWFORMAT$ac_delim
35007 PKGCONFIG!$PKGCONFIG$ac_delim
35008 WXCONFIG!$WXCONFIG$ac_delim
35009 WXFLAGS!$WXFLAGS$ac_delim
35010 CDRECORD!$CDRECORD$ac_delim
35011 PIDOF!$PIDOF$ac_delim
35013 ARFLAGS!$ARFLAGS$ac_delim
35014 MAKE_SHELL!$MAKE_SHELL$ac_delim
35015 LOCAL_LIBS!$LOCAL_LIBS$ac_delim
35016 LOCAL_CFLAGS!$LOCAL_CFLAGS$ac_delim
35017 LOCAL_LDFLAGS!$LOCAL_LDFLAGS$ac_delim
35018 LOCAL_DEFS!$LOCAL_DEFS$ac_delim
35019 build!$build$ac_delim
35020 build_cpu!$build_cpu$ac_delim
35021 build_vendor!$build_vendor$ac_delim
35022 build_os!$build_os$ac_delim
35023 host!$host$ac_delim
35026 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 94; then
35028 elif $ac_last_try; then
35029 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
35030 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
35031 { (exit 1); exit 1; }; }
35033 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
35037 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
35038 if test -n "$ac_eof"; then
35039 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
35040 ac_eof=`expr $ac_eof + 1`
35043 cat >>$CONFIG_STATUS <<_ACEOF
35044 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
35045 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
35046 /^[ ]*@MCOMMON@[ ]*$/{
35052 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
35053 s/^/s,@/; s/!/@,|#_!!_#|/
35056 s/'"$ac_delim"'$/,g/; t
35058 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
35059 ' >>$CONFIG_STATUS <conf$$subs.sed
35060 rm -f conf$$subs.sed
35061 cat >>$CONFIG_STATUS <<_ACEOF
35067 for ac_last_try in false false false false false :; do
35068 cat >conf$$subs.sed <<_ACEOF
35069 host_cpu!$host_cpu$ac_delim
35070 host_vendor!$host_vendor$ac_delim
35071 host_os!$host_os$ac_delim
35072 HAVE_SUN_OS_TRUE!$HAVE_SUN_OS_TRUE$ac_delim
35073 HAVE_SUN_OS_FALSE!$HAVE_SUN_OS_FALSE$ac_delim
35074 HAVE_OSF1_OS_TRUE!$HAVE_OSF1_OS_TRUE$ac_delim
35075 HAVE_OSF1_OS_FALSE!$HAVE_OSF1_OS_FALSE$ac_delim
35076 HAVE_AIX_OS_TRUE!$HAVE_AIX_OS_TRUE$ac_delim
35077 HAVE_AIX_OS_FALSE!$HAVE_AIX_OS_FALSE$ac_delim
35078 HAVE_HPUX_OS_TRUE!$HAVE_HPUX_OS_TRUE$ac_delim
35079 HAVE_HPUX_OS_FALSE!$HAVE_HPUX_OS_FALSE$ac_delim
35080 HAVE_LINUX_OS_TRUE!$HAVE_LINUX_OS_TRUE$ac_delim
35081 HAVE_LINUX_OS_FALSE!$HAVE_LINUX_OS_FALSE$ac_delim
35082 HAVE_FREEBSD_OS_TRUE!$HAVE_FREEBSD_OS_TRUE$ac_delim
35083 HAVE_FREEBSD_OS_FALSE!$HAVE_FREEBSD_OS_FALSE$ac_delim
35084 HAVE_NETBSD_OS_TRUE!$HAVE_NETBSD_OS_TRUE$ac_delim
35085 HAVE_NETBSD_OS_FALSE!$HAVE_NETBSD_OS_FALSE$ac_delim
35086 HAVE_OPENBSD_OS_TRUE!$HAVE_OPENBSD_OS_TRUE$ac_delim
35087 HAVE_OPENBSD_OS_FALSE!$HAVE_OPENBSD_OS_FALSE$ac_delim
35088 HAVE_BSDI_OS_TRUE!$HAVE_BSDI_OS_TRUE$ac_delim
35089 HAVE_BSDI_OS_FALSE!$HAVE_BSDI_OS_FALSE$ac_delim
35090 HAVE_SGI_OS_TRUE!$HAVE_SGI_OS_TRUE$ac_delim
35091 HAVE_SGI_OS_FALSE!$HAVE_SGI_OS_FALSE$ac_delim
35092 HAVE_IRIX_OS_TRUE!$HAVE_IRIX_OS_TRUE$ac_delim
35093 HAVE_IRIX_OS_FALSE!$HAVE_IRIX_OS_FALSE$ac_delim
35094 HAVE_DARWIN_OS_TRUE!$HAVE_DARWIN_OS_TRUE$ac_delim
35095 HAVE_DARWIN_OS_FALSE!$HAVE_DARWIN_OS_FALSE$ac_delim
35096 SET_MAKE!$SET_MAKE$ac_delim
35097 MKINSTALLDIRS!$MKINSTALLDIRS$ac_delim
35098 USE_NLS!$USE_NLS$ac_delim
35099 MSGFMT!$MSGFMT$ac_delim
35100 GMSGFMT!$GMSGFMT$ac_delim
35101 XGETTEXT!$XGETTEXT$ac_delim
35102 MSGMERGE!$MSGMERGE$ac_delim
35103 INTL_MACOSX_LIBS!$INTL_MACOSX_LIBS$ac_delim
35104 LIBICONV!$LIBICONV$ac_delim
35105 LTLIBICONV!$LTLIBICONV$ac_delim
35106 INTLLIBS!$INTLLIBS$ac_delim
35107 LIBINTL!$LIBINTL$ac_delim
35108 LTLIBINTL!$LTLIBINTL$ac_delim
35109 POSUB!$POSUB$ac_delim
35110 GLIBC2!$GLIBC2$ac_delim
35111 ALLOCA!$ALLOCA$ac_delim
35112 GLIBC21!$GLIBC21$ac_delim
35113 HAVE_POSIX_PRINTF!$HAVE_POSIX_PRINTF$ac_delim
35114 HAVE_ASPRINTF!$HAVE_ASPRINTF$ac_delim
35115 HAVE_SNPRINTF!$HAVE_SNPRINTF$ac_delim
35116 HAVE_WPRINTF!$HAVE_WPRINTF$ac_delim
35117 INTLBISON!$INTLBISON$ac_delim
35118 BUILD_INCLUDED_LIBINTL!$BUILD_INCLUDED_LIBINTL$ac_delim
35119 USE_INCLUDED_LIBINTL!$USE_INCLUDED_LIBINTL$ac_delim
35120 CATOBJEXT!$CATOBJEXT$ac_delim
35121 DATADIRNAME!$DATADIRNAME$ac_delim
35122 INSTOBJEXT!$INSTOBJEXT$ac_delim
35123 GENCAT!$GENCAT$ac_delim
35124 INTLOBJS!$INTLOBJS$ac_delim
35125 INTL_LIBTOOL_SUFFIX_PREFIX!$INTL_LIBTOOL_SUFFIX_PREFIX$ac_delim
35126 GNOME_INCLUDEDIR!$GNOME_INCLUDEDIR$ac_delim
35127 GNOMEUI_LIBS!$GNOMEUI_LIBS$ac_delim
35128 GNOME_LIBDIR!$GNOME_LIBDIR$ac_delim
35129 GNOME_LIBS!$GNOME_LIBS$ac_delim
35130 GNOME_DIR!$GNOME_DIR$ac_delim
35131 BAT_DIR!$BAT_DIR$ac_delim
35132 WXCONS_CPPFLAGS!$WXCONS_CPPFLAGS$ac_delim
35133 WXCONS_LDFLAGS!$WXCONS_LDFLAGS$ac_delim
35134 WX_DIR!$WX_DIR$ac_delim
35135 TRAY_MONITOR_CPPFLAGS!$TRAY_MONITOR_CPPFLAGS$ac_delim
35136 TRAY_MONITOR_LDFLAGS!$TRAY_MONITOR_LDFLAGS$ac_delim
35137 TRAY_MONITOR_DIR!$TRAY_MONITOR_DIR$ac_delim
35138 TTOOL_LDFLAGS!$TTOOL_LDFLAGS$ac_delim
35139 STATIC_FD!$STATIC_FD$ac_delim
35140 STATIC_SD!$STATIC_SD$ac_delim
35141 STATIC_DIR!$STATIC_DIR$ac_delim
35142 STATIC_CONS!$STATIC_CONS$ac_delim
35143 STATIC_GNOME_CONS!$STATIC_GNOME_CONS$ac_delim
35144 STATIC_WX_CONS!$STATIC_WX_CONS$ac_delim
35145 ALL_DIRS!$ALL_DIRS$ac_delim
35146 DIRD_DIR!$DIRD_DIR$ac_delim
35147 DIR_TOOLS!$DIR_TOOLS$ac_delim
35148 STORED_DIR!$STORED_DIR$ac_delim
35149 CONS_INC!$CONS_INC$ac_delim
35150 CONS_OBJ!$CONS_OBJ$ac_delim
35151 CONS_SRC!$CONS_SRC$ac_delim
35152 CONS_LIBS!$CONS_LIBS$ac_delim
35153 CONS_LDFLAGS!$CONS_LDFLAGS$ac_delim
35154 READLINE_SRC!$READLINE_SRC$ac_delim
35155 PYTHON_LIBS!$PYTHON_LIBS$ac_delim
35156 PYTHON_INCDIR!$PYTHON_INCDIR$ac_delim
35157 OPENSSL_LIBS!$OPENSSL_LIBS$ac_delim
35158 OPENSSL_INC!$OPENSSL_INC$ac_delim
35159 working_dir!$working_dir$ac_delim
35160 scriptdir!$scriptdir$ac_delim
35161 dump_email!$dump_email$ac_delim
35162 job_email!$job_email$ac_delim
35163 smtp_host!$smtp_host$ac_delim
35164 piddir!$piddir$ac_delim
35165 subsysdir!$subsysdir$ac_delim
35168 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
35170 elif $ac_last_try; then
35171 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
35172 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
35173 { (exit 1); exit 1; }; }
35175 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
35179 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
35180 if test -n "$ac_eof"; then
35181 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
35182 ac_eof=`expr $ac_eof + 1`
35185 cat >>$CONFIG_STATUS <<_ACEOF
35186 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
35187 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
35190 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
35191 s/^/s,@/; s/!/@,|#_!!_#|/
35194 s/'"$ac_delim"'$/,g/; t
35196 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
35197 ' >>$CONFIG_STATUS <conf$$subs.sed
35198 rm -f conf$$subs.sed
35199 cat >>$CONFIG_STATUS <<_ACEOF
35205 for ac_last_try in false false false false false :; do
35206 cat >conf$$subs.sed <<_ACEOF
35207 baseport!$baseport$ac_delim
35208 dir_port!$dir_port$ac_delim
35209 fd_port!$fd_port$ac_delim
35210 sd_port!$sd_port$ac_delim
35211 dir_password!$dir_password$ac_delim
35212 fd_password!$fd_password$ac_delim
35213 sd_password!$sd_password$ac_delim
35214 mon_dir_password!$mon_dir_password$ac_delim
35215 mon_fd_password!$mon_fd_password$ac_delim
35216 mon_sd_password!$mon_sd_password$ac_delim
35217 db_name!$db_name$ac_delim
35218 db_user!$db_user$ac_delim
35219 dir_user!$dir_user$ac_delim
35220 dir_group!$dir_group$ac_delim
35221 sd_user!$sd_user$ac_delim
35222 sd_group!$sd_group$ac_delim
35223 fd_user!$fd_user$ac_delim
35224 fd_group!$fd_group$ac_delim
35225 SBINPERM!$SBINPERM$ac_delim
35226 SQL_LFLAGS!$SQL_LFLAGS$ac_delim
35227 SQL_INCLUDE!$SQL_INCLUDE$ac_delim
35228 SQL_BINDIR!$SQL_BINDIR$ac_delim
35229 cats!$cats$ac_delim
35230 DB_TYPE!$DB_TYPE$ac_delim
35231 GETCONF!$GETCONF$ac_delim
35232 XMKMF!$XMKMF$ac_delim
35233 X_CFLAGS!$X_CFLAGS$ac_delim
35234 X_PRE_LIBS!$X_PRE_LIBS$ac_delim
35235 X_LIBS!$X_LIBS$ac_delim
35236 X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim
35237 LIBOBJS!$LIBOBJS$ac_delim
35238 FDLIBS!$FDLIBS$ac_delim
35239 DEBUG!$DEBUG$ac_delim
35240 DINCLUDE!$DINCLUDE$ac_delim
35241 DLIB!$DLIB$ac_delim
35242 DB_LIBS!$DB_LIBS$ac_delim
35243 WCFLAGS!$WCFLAGS$ac_delim
35244 WLDFLAGS!$WLDFLAGS$ac_delim
35245 WRAPLIBS!$WRAPLIBS$ac_delim
35246 OBJLIST!$OBJLIST$ac_delim
35247 hostname!$hostname$ac_delim
35248 TAPEDRIVE!$TAPEDRIVE$ac_delim
35249 PSCMD!$PSCMD$ac_delim
35250 WIN32!$WIN32$ac_delim
35251 MACOSX!$MACOSX$ac_delim
35252 DISTNAME!$DISTNAME$ac_delim
35253 DISTVER!$DISTVER$ac_delim
35254 LTLIBOBJS!$LTLIBOBJS$ac_delim
35257 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 48; then
35259 elif $ac_last_try; then
35260 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
35261 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
35262 { (exit 1); exit 1; }; }
35264 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
35268 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
35269 if test -n "$ac_eof"; then
35270 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
35271 ac_eof=`expr $ac_eof + 1`
35274 cat >>$CONFIG_STATUS <<_ACEOF
35275 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
35276 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
35279 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
35280 s/^/s,@/; s/!/@,|#_!!_#|/
35283 s/'"$ac_delim"'$/,g/; t
35285 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
35286 ' >>$CONFIG_STATUS <conf$$subs.sed
35287 rm -f conf$$subs.sed
35288 cat >>$CONFIG_STATUS <<_ACEOF
35295 # VPATH may cause trouble with some makes, so we remove $(srcdir),
35296 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
35297 # trailing colons and then remove the whole line if VPATH becomes empty
35298 # (actually we leave an empty line to preserve line numbers).
35299 if test "x$srcdir" = x.; then
35300 ac_vpsub='/^[ ]*VPATH[ ]*=/{
35301 s/:*\$(srcdir):*/:/
35302 s/:*\${srcdir}:*/:/
35304 s/^\([^=]*=[ ]*\):*/\1/
35310 cat >>$CONFIG_STATUS <<\_ACEOF
35311 fi # test -n "$CONFIG_FILES"
35314 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
35317 :[FHLC]) ac_mode=$ac_tag; continue;;
35319 case $ac_mode$ac_tag in
35321 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
35322 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
35323 { (exit 1); exit 1; }; };;
35324 :[FH]-) ac_tag=-:-;;
35325 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
35342 -) ac_f="$tmp/stdin";;
35343 *) # Look for the file first in the build tree, then in the source tree
35344 # (if the path is not absolute). The absolute path cannot be DOS-style,
35345 # because $ac_f cannot contain `:'.
35349 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
35351 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
35352 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
35353 { (exit 1); exit 1; }; };;
35355 ac_file_inputs="$ac_file_inputs $ac_f"
35358 # Let's still pretend it is `configure' which instantiates (i.e., don't
35359 # use $as_me), people would be surprised to read:
35360 # /* config.h. Generated by config.status. */
35361 configure_input="Generated from "`IFS=:
35362 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
35363 if test x"$ac_file" != x-; then
35364 configure_input="$ac_file. $configure_input"
35365 { echo "$as_me:$LINENO: creating $ac_file" >&5
35366 echo "$as_me: creating $ac_file" >&6;}
35370 *:-:* | *:-) cat >"$tmp/stdin";;
35375 ac_dir=`$as_dirname -- "$ac_file" ||
35376 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35377 X"$ac_file" : 'X\(//\)[^/]' \| \
35378 X"$ac_file" : 'X\(//\)$' \| \
35379 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
35381 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35385 /^X\(\/\/\)[^/].*/{
35400 -*) as_dir=./$as_dir;;
35402 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
35406 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
35407 *) as_qdir=$as_dir;;
35409 as_dirs="'$as_qdir' $as_dirs"
35410 as_dir=`$as_dirname -- "$as_dir" ||
35411 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35412 X"$as_dir" : 'X\(//\)[^/]' \| \
35413 X"$as_dir" : 'X\(//\)$' \| \
35414 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
35416 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35420 /^X\(\/\/\)[^/].*/{
35433 test -d "$as_dir" && break
35435 test -z "$as_dirs" || eval "mkdir $as_dirs"
35436 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
35437 echo "$as_me: error: cannot create directory $as_dir" >&2;}
35438 { (exit 1); exit 1; }; }; }
35442 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
35444 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
35445 # A ".." for each directory in $ac_dir_suffix.
35446 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
35447 case $ac_top_builddir_sub in
35448 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
35449 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
35452 ac_abs_top_builddir=$ac_pwd
35453 ac_abs_builddir=$ac_pwd$ac_dir_suffix
35454 # for backward compatibility:
35455 ac_top_builddir=$ac_top_build_prefix
35458 .) # We are building in place.
35460 ac_top_srcdir=$ac_top_builddir_sub
35461 ac_abs_top_srcdir=$ac_pwd ;;
35462 [\\/]* | ?:[\\/]* ) # Absolute name.
35463 ac_srcdir=$srcdir$ac_dir_suffix;
35464 ac_top_srcdir=$srcdir
35465 ac_abs_top_srcdir=$srcdir ;;
35466 *) # Relative name.
35467 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
35468 ac_top_srcdir=$ac_top_build_prefix$srcdir
35469 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
35471 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
35481 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
35482 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
35486 cat >>$CONFIG_STATUS <<\_ACEOF
35487 # If the template does not know about datarootdir, expand it.
35488 # FIXME: This hack should be removed a few years after 2.60.
35489 ac_datarootdir_hack=; ac_datarootdir_seen=
35491 case `sed -n '/datarootdir/ {
35500 ' $ac_file_inputs` in
35501 *datarootdir*) ac_datarootdir_seen=yes;;
35502 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
35503 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
35504 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
35506 cat >>$CONFIG_STATUS <<_ACEOF
35507 ac_datarootdir_hack='
35508 s&@datadir@&$datadir&g
35509 s&@docdir@&$docdir&g
35510 s&@infodir@&$infodir&g
35511 s&@localedir@&$localedir&g
35512 s&@mandir@&$mandir&g
35513 s&\\\${datarootdir}&$datarootdir&g' ;;
35517 # Neutralize VPATH when `$srcdir' = `.'.
35518 # Shell code in configure.ac might set extrasub.
35519 # FIXME: do we really want to maintain this feature?
35520 cat >>$CONFIG_STATUS <<_ACEOF
35524 cat >>$CONFIG_STATUS <<\_ACEOF
35526 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
35527 s&@configure_input@&$configure_input&;t t
35528 s&@top_builddir@&$ac_top_builddir_sub&;t t
35529 s&@srcdir@&$ac_srcdir&;t t
35530 s&@abs_srcdir@&$ac_abs_srcdir&;t t
35531 s&@top_srcdir@&$ac_top_srcdir&;t t
35532 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
35533 s&@builddir@&$ac_builddir&;t t
35534 s&@abs_builddir@&$ac_abs_builddir&;t t
35535 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
35536 s&@INSTALL@&$ac_INSTALL&;t t
35537 $ac_datarootdir_hack
35538 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
35540 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
35541 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
35542 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
35543 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
35544 which seems to be undefined. Please make sure it is defined." >&5
35545 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
35546 which seems to be undefined. Please make sure it is defined." >&2;}
35550 -) cat "$tmp/out"; rm -f "$tmp/out";;
35551 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
35560 # Transform confdefs.h into a sed script `conftest.defines', that
35561 # substitutes the proper values into config.h.in to produce config.h.
35562 rm -f conftest.defines conftest.tail
35563 # First, append a space to every undef/define line, to ease matching.
35564 echo 's/$/ /' >conftest.defines
35565 # Then, protect against being on the right side of a sed subst, or in
35566 # an unquoted here document, in config.status. If some macros were
35567 # called several times there might be several #defines for the same
35568 # symbol, which is useless. But do not sort them, since the last
35569 # AC_DEFINE must be honored.
35570 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
35571 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
35572 # NAME is the cpp macro being defined, VALUE is the value it is being given.
35573 # PARAMS is the parameter list in the macro definition--in most cases, it's
35574 # just an empty string.
35575 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
35576 ac_dB='\\)[ (].*,\\1define\\2'
35584 s/^[ ]*#[ ]*define[ ][ ]*//
35589 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
35590 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
35591 ' >>conftest.defines
35593 # Remove the space that was appended to ease matching.
35594 # Then replace #undef with comments. This is necessary, for
35595 # example, in the case of _POSIX_SOURCE, which is predefined and required
35596 # on some systems where configure will not decide to define it.
35597 # (The regexp can be short, since the line contains either #define or #undef.)
35599 s,^[ #]*u.*,/* & */,' >>conftest.defines
35601 # Break up conftest.defines:
35602 ac_max_sed_lines=50
35604 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
35605 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
35606 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
35608 ac_in='$ac_file_inputs'
35609 ac_out='"$tmp/out1"'
35610 ac_nxt='"$tmp/out2"'
35614 # Write a here document:
35615 cat >>$CONFIG_STATUS <<_ACEOF
35616 # First, check the format of the line:
35617 cat >"\$tmp/defines.sed" <<\\CEOF
35618 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
35619 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
35623 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
35625 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
35626 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
35627 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
35628 grep . conftest.tail >/dev/null || break
35629 rm -f conftest.defines
35630 mv conftest.tail conftest.defines
35632 rm -f conftest.defines conftest.tail
35634 echo "ac_result=$ac_in" >>$CONFIG_STATUS
35635 cat >>$CONFIG_STATUS <<\_ACEOF
35636 if test x"$ac_file" != x-; then
35637 echo "/* $configure_input */" >"$tmp/config.h"
35638 cat "$ac_result" >>"$tmp/config.h"
35639 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
35640 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
35641 echo "$as_me: $ac_file is unchanged" >&6;}
35644 mv "$tmp/config.h" $ac_file
35647 echo "/* $configure_input */"
35653 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
35654 echo "$as_me: executing $ac_file commands" >&6;}
35659 case $ac_file$ac_mode in
35661 for ac_file in $CONFIG_FILES; do
35662 # Support "outfile[:infile[:infile...]]"
35664 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
35666 # PO directories have a Makefile.in generated from Makefile.in.in.
35667 case "$ac_file" in */Makefile.in)
35668 # Adjust a relative srcdir.
35669 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
35670 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
35671 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
35672 # In autoconf-2.13 it is called $ac_given_srcdir.
35673 # In autoconf-2.50 it is called $srcdir.
35674 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
35675 case "$ac_given_srcdir" in
35676 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
35677 /*) top_srcdir="$ac_given_srcdir" ;;
35678 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
35680 # Treat a directory as a PO directory if and only if it has a
35681 # POTFILES.in file. This allows packages to have multiple PO
35682 # directories under different names or in different locations.
35683 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
35684 rm -f "$ac_dir/POTFILES"
35685 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
35686 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
35687 POMAKEFILEDEPS="POTFILES.in"
35688 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
35689 # on $ac_dir but don't depend on user-specified configuration
35691 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
35692 # The LINGUAS file contains the set of available languages.
35693 if test -n "$OBSOLETE_ALL_LINGUAS"; then
35694 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
35696 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
35697 # Hide the ALL_LINGUAS assigment from automake.
35698 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
35699 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
35701 # The set of available languages was given in configure.in.
35702 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
35705 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
35706 # Compute UPDATEPOFILES
35707 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
35708 # Compute DUMMYPOFILES
35709 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
35711 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
35712 case "$ac_given_srcdir" in
35714 *) srcdirpre='$(srcdir)/' ;;
35720 for lang in $ALL_LINGUAS; do
35721 POFILES="$POFILES $srcdirpre$lang.po"
35722 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
35723 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
35724 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
35726 # CATALOGS depends on both $ac_dir and the user's LINGUAS
35727 # environment variable.
35729 if test -n "$ALL_LINGUAS"; then
35730 for presentlang in $ALL_LINGUAS; do
35732 if test "%UNSET%" != "$LINGUAS"; then
35733 desiredlanguages="$LINGUAS"
35735 desiredlanguages="$ALL_LINGUAS"
35737 for desiredlang in $desiredlanguages; do
35738 # Use the presentlang catalog if desiredlang is
35739 # a. equal to presentlang, or
35740 # b. a variant of presentlang (because in this case,
35741 # presentlang can be used as a fallback for messages
35742 # which are not translated in the desiredlang catalog).
35743 case "$desiredlang" in
35744 "$presentlang"*) useit=yes;;
35747 if test $useit = yes; then
35748 INST_LINGUAS="$INST_LINGUAS $presentlang"
35753 if test -n "$INST_LINGUAS"; then
35754 for lang in $INST_LINGUAS; do
35755 CATALOGS="$CATALOGS $lang.gmo"
35758 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
35759 sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
35760 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
35761 if test -f "$f"; then
35763 *.orig | *.bak | *~) ;;
35764 *) cat "$f" >> "$ac_dir/Makefile" ;;
35772 "default":C) (echo "Doing make of dependencies"; ${MAKE:-make} depend;)
35779 { (exit 0); exit 0; }
35781 chmod +x $CONFIG_STATUS
35782 ac_clean_files=$ac_clean_files_save
35785 # configure is writing to config.log, and then calls config.status.
35786 # config.status does its own redirection, appending to config.log.
35787 # Unfortunately, on DOS this fails, as config.log is still kept open
35788 # by configure, so config.status won't be able to write to it; its
35789 # output is simply discarded. So we exec the FD to /dev/null,
35790 # effectively closing config.log, so it can be properly (re)opened and
35791 # appended to by config.status. When coming back to configure, we
35792 # need to make the FD available again.
35793 if test "$no_create" != yes; then
35795 ac_config_status_args=
35796 test "$silent" = yes &&
35797 ac_config_status_args="$ac_config_status_args --quiet"
35799 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
35801 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
35802 # would make configure fail if this is the last instruction.
35803 $ac_cs_success || { (exit 1); exit 1; }
35808 chmod 755 startmysql stopmysql bacula startit stopit btraceback mtx-changer
35809 chmod 755 dvd-handler dvd-simulator
35810 chmod 755 bconsole gconsole mtx-changer devel_bacula logrotate
35815 chmod 755 $c/create_bacula_database $c/update_bacula_tables $c/make_bacula_tables
35816 chmod 755 $c/grant_bacula_privileges $c/drop_bacula_tables $c/drop_bacula_database
35818 chmod 755 $c/create_bdb_database $c/update_bdb_tables $c/make_bdb_tables
35819 chmod 755 $c/grant_bdb_privileges $c/drop_bdb_tables $c/drop_bdb_database
35821 chmod 755 $c/create_mysql_database $c/update_mysql_tables $c/make_mysql_tables
35822 chmod 755 $c/grant_mysql_privileges $c/drop_mysql_tables $c/drop_mysql_database
35824 chmod 755 $c/create_sqlite_database $c/update_sqlite_tables $c/make_sqlite_tables
35825 chmod 755 $c/grant_sqlite_privileges $c/drop_sqlite_tables $c/drop_sqlite_database
35827 chmod 755 $c/create_sqlite3_database $c/update_sqlite3_tables $c/make_sqlite3_tables
35828 chmod 755 $c/grant_sqlite3_privileges $c/drop_sqlite3_tables $c/drop_sqlite3_database
35830 chmod 755 $c/create_postgresql_database $c/update_postgresql_tables $c/make_postgresql_tables
35831 chmod 755 $c/grant_postgresql_privileges $c/drop_postgresql_tables $c/drop_postgresql_database
35833 chmod 755 $c/make_catalog_backup $c/delete_catalog_backup
35834 chmod 755 $c/sqlite
35837 chmod 755 src/win32/build-depkgs-mingw32
35839 if test "${support_bat}" = "yes" ; then
35842 chmod 755 install_conf_file build-depkgs-qt-console
35844 echo "Downloading, building, and installing the qwt graphics library"
35845 echo " The install will be to directory ${a}/qwt ..."
35847 ./build-depkgs-qt-console
35848 echo "Creating bat Makefile"
35853 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
35854 largefile_support="yes"
35858 # A whole lot of hand springs to get the compiler version.
35859 # This is because gcc changed the output in version 3.0
35861 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 3 -d ' '`
35862 if test "x${CCVERSION}" = "x" ; then
35863 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 1 -d ' '`
35865 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
35866 if test x"${CXXVERSION}" = x ; then
35867 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
35870 if test "x${subsysdir}" = "x${sbindir}" ; then
35873 echo "You have set --sbindir and --with-subsys-dir"
35874 echo " both equal to: ${subsysdir} "
35875 echo " This is not permitted. Please reconfigure."
35877 echo "Aborting configuration ..."
35883 if test "x${db_type}" = "xInternal" ; then
35886 echo "You have not specified either --enable-client-only or one of the"
35887 echo " supported databases: MySQL, PostgreSQL, SQLite3 or SQLite."
35888 echo " This is not permitted. Please reconfigure."
35890 echo "Aborting the configuration ..."
35897 Configuration on `date`:
35899 Host: $host -- ${DISTNAME} ${DISTVER}
35900 Bacula version: ${VERSION} (${DATE})
35901 Source code location: ${srcdir}
35902 Install binaries: ${sbindir}
35903 Install config files: ${sysconfdir}
35904 Scripts directory: ${scriptdir}
35905 Working directory: ${working_dir}
35906 PID directory: ${piddir}
35907 Subsys directory: ${subsysdir}
35908 Man directory: ${mandir}
35909 Data directory: ${datadir}
35910 C Compiler: ${CC} ${CCVERSION}
35911 C++ Compiler: ${CXX} ${CXXVERSION}
35912 Compiler flags: ${WCFLAGS} ${CFLAGS}
35913 Linker flags: ${WLDFLAGS} ${LDFLAGS}
35915 Statically Linked Tools: ${support_static_tools}
35916 Statically Linked FD: ${support_static_fd}
35917 Statically Linked SD: ${support_static_sd}
35918 Statically Linked DIR: ${support_static_dir}
35919 Statically Linked CONS: ${support_static_cons}
35920 Database type: ${db_type}
35921 Database lib: ${DB_LIBS}
35922 Database name: ${db_name}
35923 Database user: ${db_user}
35925 Job Output Email: ${job_email}
35926 Traceback Email: ${dump_email}
35927 SMTP Host Address: ${smtp_host}
35929 Director Port: ${dir_port}
35930 File daemon Port: ${fd_port}
35931 Storage daemon Port: ${sd_port}
35933 Director User: ${dir_user}
35934 Director Group: ${dir_group}
35935 Storage Daemon User: ${sd_user}
35936 Storage DaemonGroup: ${sd_group}
35937 File Daemon User: ${fd_user}
35938 File Daemon Group: ${fd_group}
35940 SQL binaries Directory ${SQL_BINDIR}
35942 Large file support: $largefile_support
35943 Bacula conio support: ${got_conio} ${CONS_LIBS}
35944 readline support: ${got_readline} ${PRTREADLINE_SRC}
35945 TCP Wrappers support: ${TCPW_MSG} ${WRAPLIBS}
35946 TLS support: ${support_tls}
35947 Encryption support: ${support_crypto}
35948 ZLIB support: ${have_zlib}
35949 enable-smartalloc: ${support_smartalloc}
35950 enable-bat: ${support_bat}
35951 enable-gnome: ${support_gnome} ${gnome_version}
35952 enable-bwx-console: ${support_wx_console} ${wx_version}
35953 enable-tray-monitor: ${support_tray_monitor}
35954 client-only: ${build_client_only}
35955 build-dird: ${build_dird}
35956 build-stored: ${build_stored}
35957 ACL support: ${have_acl}
35958 Python support: ${support_python} ${PYTHON_LIBS}
35959 Batch insert enabled: ${support_batch_insert}