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
19517 cat >>confdefs.h <<\_ACEOF
19518 #define HAVE_BATCH_INSERT 1
19521 support_batch_insert=yes
19530 cat >>confdefs.h <<\_ACEOF
19531 #define PROTOTYPES 1
19535 if test -z "$CFLAGS" -o "$CFLAGS" = "-g -O2"; then
19536 if test -z "$CCOPTS"; then
19537 CCOPTS='-g -O2 -Wall'
19545 largefile_support="no"
19547 # Check whether --enable-largefile was given.
19548 if test "${enable_largefile+set}" = set; then
19549 enableval=$enable_largefile;
19552 if test "$enable_largefile" != no; then
19553 if test -n "$ac_tool_prefix"; then
19554 # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
19555 set dummy ${ac_tool_prefix}getconf; ac_word=$2
19556 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19557 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19558 if test "${ac_cv_prog_GETCONF+set}" = set; then
19559 echo $ECHO_N "(cached) $ECHO_C" >&6
19561 if test -n "$GETCONF"; then
19562 ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
19564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19565 for as_dir in $PATH
19568 test -z "$as_dir" && as_dir=.
19569 for ac_exec_ext in '' $ac_executable_extensions; do
19570 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
19571 ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
19572 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19581 GETCONF=$ac_cv_prog_GETCONF
19582 if test -n "$GETCONF"; then
19583 { echo "$as_me:$LINENO: result: $GETCONF" >&5
19584 echo "${ECHO_T}$GETCONF" >&6; }
19586 { echo "$as_me:$LINENO: result: no" >&5
19587 echo "${ECHO_T}no" >&6; }
19592 if test -z "$ac_cv_prog_GETCONF"; then
19593 ac_ct_GETCONF=$GETCONF
19594 # Extract the first word of "getconf", so it can be a program name with args.
19595 set dummy getconf; ac_word=$2
19596 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19597 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19598 if test "${ac_cv_prog_ac_ct_GETCONF+set}" = set; then
19599 echo $ECHO_N "(cached) $ECHO_C" >&6
19601 if test -n "$ac_ct_GETCONF"; then
19602 ac_cv_prog_ac_ct_GETCONF="$ac_ct_GETCONF" # Let the user override the test.
19604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19605 for as_dir in $PATH
19608 test -z "$as_dir" && as_dir=.
19609 for ac_exec_ext in '' $ac_executable_extensions; do
19610 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
19611 ac_cv_prog_ac_ct_GETCONF="getconf"
19612 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19621 ac_ct_GETCONF=$ac_cv_prog_ac_ct_GETCONF
19622 if test -n "$ac_ct_GETCONF"; then
19623 { echo "$as_me:$LINENO: result: $ac_ct_GETCONF" >&5
19624 echo "${ECHO_T}$ac_ct_GETCONF" >&6; }
19626 { echo "$as_me:$LINENO: result: no" >&5
19627 echo "${ECHO_T}no" >&6; }
19630 if test "x$ac_ct_GETCONF" = x; then
19633 case $cross_compiling:$ac_tool_warned in
19635 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
19636 whose name does not start with the host triplet. If you think this
19637 configuration is useful to you, please write to autoconf@gnu.org." >&5
19638 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
19639 whose name does not start with the host triplet. If you think this
19640 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
19641 ac_tool_warned=yes ;;
19643 GETCONF=$ac_ct_GETCONF
19646 GETCONF="$ac_cv_prog_GETCONF"
19649 { echo "$as_me:$LINENO: checking for CFLAGS value to request large file support" >&5
19650 echo $ECHO_N "checking for CFLAGS value to request large file support... $ECHO_C" >&6; }
19651 if test "${ac_cv_sys_largefile_CFLAGS+set}" = set; then
19652 echo $ECHO_N "(cached) $ECHO_C" >&6
19654 ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
19655 ac_cv_sys_largefile_CFLAGS=no
19657 # IRIX 6.2 and later require cc -n32.
19658 irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
19659 if test "$GCC" != yes; then
19660 ac_cv_sys_largefile_CFLAGS=-n32
19663 CC="$CC $ac_cv_sys_largefile_CFLAGS"
19664 cat >conftest.$ac_ext <<_ACEOF
19667 cat confdefs.h >>conftest.$ac_ext
19668 cat >>conftest.$ac_ext <<_ACEOF
19669 /* end confdefs.h. */
19679 rm -f conftest.$ac_objext conftest$ac_exeext
19680 if { (ac_try="$ac_link"
19681 case "(($ac_try" in
19682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19683 *) ac_try_echo=$ac_try;;
19685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19686 (eval "$ac_link") 2>conftest.er1
19688 grep -v '^ *+' conftest.er1 >conftest.err
19690 cat conftest.err >&5
19691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19692 (exit $ac_status); } &&
19693 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19694 { (case "(($ac_try" in
19695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19696 *) ac_try_echo=$ac_try;;
19698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19699 (eval "$ac_try") 2>&5
19701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19702 (exit $ac_status); }; } &&
19703 { ac_try='test -s conftest$ac_exeext'
19704 { (case "(($ac_try" in
19705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19706 *) ac_try_echo=$ac_try;;
19708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19709 (eval "$ac_try") 2>&5
19711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19712 (exit $ac_status); }; }; then
19715 echo "$as_me: failed program was:" >&5
19716 sed 's/^/| /' conftest.$ac_ext >&5
19718 ac_cv_sys_largefile_CFLAGS=no
19721 rm -f core conftest.err conftest.$ac_objext \
19722 conftest$ac_exeext conftest.$ac_ext
19727 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CFLAGS" >&5
19728 echo "${ECHO_T}$ac_cv_sys_largefile_CFLAGS" >&6; }
19729 { echo "$as_me:$LINENO: checking for LDFLAGS value to request large file support" >&5
19730 echo $ECHO_N "checking for LDFLAGS value to request large file support... $ECHO_C" >&6; }
19731 if test "${ac_cv_sys_largefile_LDFLAGS+set}" = set; then
19732 echo $ECHO_N "(cached) $ECHO_C" >&6
19734 ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
19735 ac_cv_sys_largefile_LDFLAGS=no
19739 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LDFLAGS" >&5
19740 echo "${ECHO_T}$ac_cv_sys_largefile_LDFLAGS" >&6; }
19741 { echo "$as_me:$LINENO: checking for LIBS value to request large file support" >&5
19742 echo $ECHO_N "checking for LIBS value to request large file support... $ECHO_C" >&6; }
19743 if test "${ac_cv_sys_largefile_LIBS+set}" = set; then
19744 echo $ECHO_N "(cached) $ECHO_C" >&6
19746 ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
19747 ac_cv_sys_largefile_LIBS=no
19751 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LIBS" >&5
19752 echo "${ECHO_T}$ac_cv_sys_largefile_LIBS" >&6; }
19754 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
19757 -D_FILE_OFFSET_BITS=*) ;;
19758 -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
19759 -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
19764 case "$CPPFLAGS" in
19765 '') CPPFLAGS="$ac_flag" ;;
19766 *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
19774 '') CFLAGS="$ac_flag" ;;
19775 *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
19780 case "$ac_cv_sys_largefile_LDFLAGS" in
19784 '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
19785 *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
19788 case "$ac_cv_sys_largefile_LIBS" in
19792 '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
19793 *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
19796 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS" >&5
19797 echo $ECHO_N "checking for _FILE_OFFSET_BITS... $ECHO_C" >&6; }
19798 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
19799 echo $ECHO_N "(cached) $ECHO_C" >&6
19801 ac_cv_sys_file_offset_bits=no
19802 ac_cv_sys_file_offset_bits=64
19803 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
19805 -D_FILE_OFFSET_BITS)
19806 ac_cv_sys_file_offset_bits=1 ;;
19807 -D_FILE_OFFSET_BITS=*)
19808 ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
19813 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
19814 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
19815 if test "$ac_cv_sys_file_offset_bits" != no; then
19817 cat >>confdefs.h <<_ACEOF
19818 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
19822 { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE" >&5
19823 echo $ECHO_N "checking for _LARGEFILE_SOURCE... $ECHO_C" >&6; }
19824 if test "${ac_cv_sys_largefile_source+set}" = set; then
19825 echo $ECHO_N "(cached) $ECHO_C" >&6
19827 ac_cv_sys_largefile_source=no
19828 ac_cv_sys_largefile_source=1
19829 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
19831 -D_LARGEFILE_SOURCE)
19832 ac_cv_sys_largefile_source=1 ;;
19833 -D_LARGEFILE_SOURCE=*)
19834 ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
19839 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
19840 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
19841 if test "$ac_cv_sys_largefile_source" != no; then
19843 cat >>confdefs.h <<_ACEOF
19844 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
19848 { echo "$as_me:$LINENO: checking for _LARGE_FILES" >&5
19849 echo $ECHO_N "checking for _LARGE_FILES... $ECHO_C" >&6; }
19850 if test "${ac_cv_sys_large_files+set}" = set; then
19851 echo $ECHO_N "(cached) $ECHO_C" >&6
19853 ac_cv_sys_large_files=no
19854 ac_cv_sys_large_files=1
19855 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
19858 ac_cv_sys_large_files=1 ;;
19860 ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
19865 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
19866 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
19867 if test "$ac_cv_sys_large_files" != no; then
19869 cat >>confdefs.h <<_ACEOF
19870 #define _LARGE_FILES $ac_cv_sys_large_files
19878 { echo "$as_me:$LINENO: checking for X" >&5
19879 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
19882 # Check whether --with-x was given.
19883 if test "${with_x+set}" = set; then
19887 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
19888 if test "x$with_x" = xno; then
19889 # The user explicitly disabled X.
19892 case $x_includes,$x_libraries in #(
19893 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
19894 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
19895 { (exit 1); exit 1; }; };; #(
19896 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
19897 echo $ECHO_N "(cached) $ECHO_C" >&6
19899 # One or both of the vars are not set, and there is no cached value.
19900 ac_x_includes=no ac_x_libraries=no
19901 rm -f -r conftest.dir
19902 if mkdir conftest.dir; then
19904 cat >Imakefile <<'_ACEOF'
19906 @echo incroot='${INCROOT}'
19908 @echo usrlibdir='${USRLIBDIR}'
19910 @echo libdir='${LIBDIR}'
19912 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
19913 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
19914 for ac_var in incroot usrlibdir libdir; do
19915 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
19917 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
19918 for ac_extension in a so sl; do
19919 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
19920 test -f "$ac_im_libdir/libX11.$ac_extension"; then
19921 ac_im_usrlibdir=$ac_im_libdir; break
19924 # Screen out bogus values from the imake configuration. They are
19925 # bogus both because they are the default anyway, and because
19926 # using them would break gcc on systems where it needs fixed includes.
19927 case $ac_im_incroot in
19928 /usr/include) ac_x_includes= ;;
19929 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
19931 case $ac_im_usrlibdir in
19932 /usr/lib | /lib) ;;
19933 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
19937 rm -f -r conftest.dir
19940 # Standard set of common directories for X headers.
19941 # Check X11 before X11Rn because it is often a symlink to the current release.
19953 /usr/local/X11/include
19954 /usr/local/X11R6/include
19955 /usr/local/X11R5/include
19956 /usr/local/X11R4/include
19958 /usr/local/include/X11
19959 /usr/local/include/X11R6
19960 /usr/local/include/X11R5
19961 /usr/local/include/X11R4
19965 /usr/XFree86/include/X11
19969 /usr/unsupported/include
19970 /usr/athena/include
19971 /usr/local/x11r5/include
19972 /usr/lpp/Xamples/include
19974 /usr/openwin/include
19975 /usr/openwin/share/include'
19977 if test "$ac_x_includes" = no; then
19978 # Guess where to find include files, by looking for Xlib.h.
19979 # First, try using that file with no special directory specified.
19980 cat >conftest.$ac_ext <<_ACEOF
19983 cat confdefs.h >>conftest.$ac_ext
19984 cat >>conftest.$ac_ext <<_ACEOF
19985 /* end confdefs.h. */
19986 #include <X11/Xlib.h>
19988 if { (ac_try="$ac_cpp conftest.$ac_ext"
19989 case "(($ac_try" in
19990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19991 *) ac_try_echo=$ac_try;;
19993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19994 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19996 grep -v '^ *+' conftest.er1 >conftest.err
19998 cat conftest.err >&5
19999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20000 (exit $ac_status); } >/dev/null; then
20001 if test -s conftest.err; then
20002 ac_cpp_err=$ac_c_preproc_warn_flag
20003 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20010 if test -z "$ac_cpp_err"; then
20011 # We can compile using X headers with no special include directory.
20014 echo "$as_me: failed program was:" >&5
20015 sed 's/^/| /' conftest.$ac_ext >&5
20017 for ac_dir in $ac_x_header_dirs; do
20018 if test -r "$ac_dir/X11/Xlib.h"; then
20019 ac_x_includes=$ac_dir
20025 rm -f conftest.err conftest.$ac_ext
20026 fi # $ac_x_includes = no
20028 if test "$ac_x_libraries" = no; then
20029 # Check for the libraries.
20030 # See if we find them without any special options.
20031 # Don't add to $LIBS permanently.
20034 cat >conftest.$ac_ext <<_ACEOF
20037 cat confdefs.h >>conftest.$ac_ext
20038 cat >>conftest.$ac_ext <<_ACEOF
20039 /* end confdefs.h. */
20040 #include <X11/Xlib.h>
20049 rm -f conftest.$ac_objext conftest$ac_exeext
20050 if { (ac_try="$ac_link"
20051 case "(($ac_try" in
20052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20053 *) ac_try_echo=$ac_try;;
20055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20056 (eval "$ac_link") 2>conftest.er1
20058 grep -v '^ *+' conftest.er1 >conftest.err
20060 cat conftest.err >&5
20061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20062 (exit $ac_status); } &&
20063 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20064 { (case "(($ac_try" in
20065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20066 *) ac_try_echo=$ac_try;;
20068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20069 (eval "$ac_try") 2>&5
20071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20072 (exit $ac_status); }; } &&
20073 { ac_try='test -s conftest$ac_exeext'
20074 { (case "(($ac_try" in
20075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20076 *) ac_try_echo=$ac_try;;
20078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20079 (eval "$ac_try") 2>&5
20081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20082 (exit $ac_status); }; }; then
20084 # We can link X programs with no special library path.
20087 echo "$as_me: failed program was:" >&5
20088 sed 's/^/| /' conftest.$ac_ext >&5
20091 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
20093 # Don't even attempt the hair of trying to link an X program!
20094 for ac_extension in a so sl; do
20095 if test -r "$ac_dir/libXt.$ac_extension"; then
20096 ac_x_libraries=$ac_dir
20103 rm -f core conftest.err conftest.$ac_objext \
20104 conftest$ac_exeext conftest.$ac_ext
20105 fi # $ac_x_libraries = no
20107 case $ac_x_includes,$ac_x_libraries in #(
20108 no,* | *,no | *\'*)
20109 # Didn't find X, or a directory has "'" in its name.
20110 ac_cv_have_x="have_x=no";; #(
20112 # Record where we found X for the cache.
20113 ac_cv_have_x="have_x=yes\
20114 ac_x_includes='$ac_x_includes'\
20115 ac_x_libraries='$ac_x_libraries'"
20121 eval "$ac_cv_have_x"
20124 if test "$have_x" != yes; then
20125 { echo "$as_me:$LINENO: result: $have_x" >&5
20126 echo "${ECHO_T}$have_x" >&6; }
20129 # If each of the values was on the command line, it overrides each guess.
20130 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
20131 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
20132 # Update the cache value to reflect the command line values.
20133 ac_cv_have_x="have_x=yes\
20134 ac_x_includes='$x_includes'\
20135 ac_x_libraries='$x_libraries'"
20136 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
20137 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
20140 if test "$no_x" = yes; then
20141 # Not all programs may use this symbol, but it does not hurt to define it.
20143 cat >>confdefs.h <<\_ACEOF
20144 #define X_DISPLAY_MISSING 1
20147 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
20149 if test -n "$x_includes"; then
20150 X_CFLAGS="$X_CFLAGS -I$x_includes"
20153 # It would also be nice to do this for all -L options, not just this one.
20154 if test -n "$x_libraries"; then
20155 X_LIBS="$X_LIBS -L$x_libraries"
20156 # For Solaris; some versions of Sun CC require a space after -R and
20157 # others require no space. Words are not sufficient . . . .
20158 case `(uname -sr) 2>/dev/null` in
20160 { echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
20161 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6; }
20162 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
20163 cat >conftest.$ac_ext <<_ACEOF
20166 cat confdefs.h >>conftest.$ac_ext
20167 cat >>conftest.$ac_ext <<_ACEOF
20168 /* end confdefs.h. */
20178 rm -f conftest.$ac_objext conftest$ac_exeext
20179 if { (ac_try="$ac_link"
20180 case "(($ac_try" in
20181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20182 *) ac_try_echo=$ac_try;;
20184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20185 (eval "$ac_link") 2>conftest.er1
20187 grep -v '^ *+' conftest.er1 >conftest.err
20189 cat conftest.err >&5
20190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20191 (exit $ac_status); } &&
20192 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20193 { (case "(($ac_try" in
20194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20195 *) ac_try_echo=$ac_try;;
20197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20198 (eval "$ac_try") 2>&5
20200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20201 (exit $ac_status); }; } &&
20202 { ac_try='test -s conftest$ac_exeext'
20203 { (case "(($ac_try" in
20204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20205 *) ac_try_echo=$ac_try;;
20207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20208 (eval "$ac_try") 2>&5
20210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20211 (exit $ac_status); }; }; then
20214 echo "$as_me: failed program was:" >&5
20215 sed 's/^/| /' conftest.$ac_ext >&5
20220 rm -f core conftest.err conftest.$ac_objext \
20221 conftest$ac_exeext conftest.$ac_ext
20222 if test $ac_R_nospace = yes; then
20223 { echo "$as_me:$LINENO: result: no" >&5
20224 echo "${ECHO_T}no" >&6; }
20225 X_LIBS="$X_LIBS -R$x_libraries"
20227 LIBS="$ac_xsave_LIBS -R $x_libraries"
20228 cat >conftest.$ac_ext <<_ACEOF
20231 cat confdefs.h >>conftest.$ac_ext
20232 cat >>conftest.$ac_ext <<_ACEOF
20233 /* end confdefs.h. */
20243 rm -f conftest.$ac_objext conftest$ac_exeext
20244 if { (ac_try="$ac_link"
20245 case "(($ac_try" in
20246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20247 *) ac_try_echo=$ac_try;;
20249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20250 (eval "$ac_link") 2>conftest.er1
20252 grep -v '^ *+' conftest.er1 >conftest.err
20254 cat conftest.err >&5
20255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20256 (exit $ac_status); } &&
20257 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20258 { (case "(($ac_try" in
20259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20260 *) ac_try_echo=$ac_try;;
20262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20263 (eval "$ac_try") 2>&5
20265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20266 (exit $ac_status); }; } &&
20267 { ac_try='test -s conftest$ac_exeext'
20268 { (case "(($ac_try" in
20269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20270 *) ac_try_echo=$ac_try;;
20272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20273 (eval "$ac_try") 2>&5
20275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20276 (exit $ac_status); }; }; then
20279 echo "$as_me: failed program was:" >&5
20280 sed 's/^/| /' conftest.$ac_ext >&5
20285 rm -f core conftest.err conftest.$ac_objext \
20286 conftest$ac_exeext conftest.$ac_ext
20287 if test $ac_R_space = yes; then
20288 { echo "$as_me:$LINENO: result: yes" >&5
20289 echo "${ECHO_T}yes" >&6; }
20290 X_LIBS="$X_LIBS -R $x_libraries"
20292 { echo "$as_me:$LINENO: result: neither works" >&5
20293 echo "${ECHO_T}neither works" >&6; }
20296 LIBS=$ac_xsave_LIBS
20300 # Check for system-dependent libraries X programs must link with.
20301 # Do this before checking for the system-independent R6 libraries
20302 # (-lICE), since we may need -lsocket or whatever for X linking.
20304 if test "$ISC" = yes; then
20305 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
20307 # Martyn Johnson says this is needed for Ultrix, if the X
20308 # libraries were built with DECnet support. And Karl Berry says
20309 # the Alpha needs dnet_stub (dnet does not exist).
20310 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
20311 cat >conftest.$ac_ext <<_ACEOF
20314 cat confdefs.h >>conftest.$ac_ext
20315 cat >>conftest.$ac_ext <<_ACEOF
20316 /* end confdefs.h. */
20318 /* Override any GCC internal prototype to avoid an error.
20319 Use char because int might match the return type of a GCC
20320 builtin and then its argument prototype would still apply. */
20324 char XOpenDisplay ();
20328 return XOpenDisplay ();
20333 rm -f conftest.$ac_objext conftest$ac_exeext
20334 if { (ac_try="$ac_link"
20335 case "(($ac_try" in
20336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20337 *) ac_try_echo=$ac_try;;
20339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20340 (eval "$ac_link") 2>conftest.er1
20342 grep -v '^ *+' conftest.er1 >conftest.err
20344 cat conftest.err >&5
20345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20346 (exit $ac_status); } &&
20347 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20348 { (case "(($ac_try" in
20349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20350 *) ac_try_echo=$ac_try;;
20352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20353 (eval "$ac_try") 2>&5
20355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20356 (exit $ac_status); }; } &&
20357 { ac_try='test -s conftest$ac_exeext'
20358 { (case "(($ac_try" in
20359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20360 *) ac_try_echo=$ac_try;;
20362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20363 (eval "$ac_try") 2>&5
20365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20366 (exit $ac_status); }; }; then
20369 echo "$as_me: failed program was:" >&5
20370 sed 's/^/| /' conftest.$ac_ext >&5
20372 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
20373 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
20374 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
20375 echo $ECHO_N "(cached) $ECHO_C" >&6
20377 ac_check_lib_save_LIBS=$LIBS
20378 LIBS="-ldnet $LIBS"
20379 cat >conftest.$ac_ext <<_ACEOF
20382 cat confdefs.h >>conftest.$ac_ext
20383 cat >>conftest.$ac_ext <<_ACEOF
20384 /* end confdefs.h. */
20386 /* Override any GCC internal prototype to avoid an error.
20387 Use char because int might match the return type of a GCC
20388 builtin and then its argument prototype would still apply. */
20396 return dnet_ntoa ();
20401 rm -f conftest.$ac_objext conftest$ac_exeext
20402 if { (ac_try="$ac_link"
20403 case "(($ac_try" in
20404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20405 *) ac_try_echo=$ac_try;;
20407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20408 (eval "$ac_link") 2>conftest.er1
20410 grep -v '^ *+' conftest.er1 >conftest.err
20412 cat conftest.err >&5
20413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20414 (exit $ac_status); } &&
20415 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20416 { (case "(($ac_try" in
20417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20418 *) ac_try_echo=$ac_try;;
20420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20421 (eval "$ac_try") 2>&5
20423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20424 (exit $ac_status); }; } &&
20425 { ac_try='test -s conftest$ac_exeext'
20426 { (case "(($ac_try" in
20427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20428 *) ac_try_echo=$ac_try;;
20430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20431 (eval "$ac_try") 2>&5
20433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20434 (exit $ac_status); }; }; then
20435 ac_cv_lib_dnet_dnet_ntoa=yes
20437 echo "$as_me: failed program was:" >&5
20438 sed 's/^/| /' conftest.$ac_ext >&5
20440 ac_cv_lib_dnet_dnet_ntoa=no
20443 rm -f core conftest.err conftest.$ac_objext \
20444 conftest$ac_exeext conftest.$ac_ext
20445 LIBS=$ac_check_lib_save_LIBS
20447 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
20448 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
20449 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
20450 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
20453 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
20454 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
20455 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6; }
20456 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
20457 echo $ECHO_N "(cached) $ECHO_C" >&6
20459 ac_check_lib_save_LIBS=$LIBS
20460 LIBS="-ldnet_stub $LIBS"
20461 cat >conftest.$ac_ext <<_ACEOF
20464 cat confdefs.h >>conftest.$ac_ext
20465 cat >>conftest.$ac_ext <<_ACEOF
20466 /* end confdefs.h. */
20468 /* Override any GCC internal prototype to avoid an error.
20469 Use char because int might match the return type of a GCC
20470 builtin and then its argument prototype would still apply. */
20478 return dnet_ntoa ();
20483 rm -f conftest.$ac_objext conftest$ac_exeext
20484 if { (ac_try="$ac_link"
20485 case "(($ac_try" in
20486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20487 *) ac_try_echo=$ac_try;;
20489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20490 (eval "$ac_link") 2>conftest.er1
20492 grep -v '^ *+' conftest.er1 >conftest.err
20494 cat conftest.err >&5
20495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20496 (exit $ac_status); } &&
20497 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20498 { (case "(($ac_try" in
20499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20500 *) ac_try_echo=$ac_try;;
20502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20503 (eval "$ac_try") 2>&5
20505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20506 (exit $ac_status); }; } &&
20507 { ac_try='test -s conftest$ac_exeext'
20508 { (case "(($ac_try" in
20509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20510 *) ac_try_echo=$ac_try;;
20512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20513 (eval "$ac_try") 2>&5
20515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20516 (exit $ac_status); }; }; then
20517 ac_cv_lib_dnet_stub_dnet_ntoa=yes
20519 echo "$as_me: failed program was:" >&5
20520 sed 's/^/| /' conftest.$ac_ext >&5
20522 ac_cv_lib_dnet_stub_dnet_ntoa=no
20525 rm -f core conftest.err conftest.$ac_objext \
20526 conftest$ac_exeext conftest.$ac_ext
20527 LIBS=$ac_check_lib_save_LIBS
20529 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
20530 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
20531 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
20532 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
20538 rm -f core conftest.err conftest.$ac_objext \
20539 conftest$ac_exeext conftest.$ac_ext
20540 LIBS="$ac_xsave_LIBS"
20542 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
20543 # to get the SysV transport functions.
20544 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
20546 # The nsl library prevents programs from opening the X display
20547 # on Irix 5.2, according to T.E. Dickey.
20548 # The functions gethostbyname, getservbyname, and inet_addr are
20549 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
20550 { echo "$as_me:$LINENO: checking for gethostbyname" >&5
20551 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
20552 if test "${ac_cv_func_gethostbyname+set}" = set; then
20553 echo $ECHO_N "(cached) $ECHO_C" >&6
20555 cat >conftest.$ac_ext <<_ACEOF
20558 cat confdefs.h >>conftest.$ac_ext
20559 cat >>conftest.$ac_ext <<_ACEOF
20560 /* end confdefs.h. */
20561 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
20562 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20563 #define gethostbyname innocuous_gethostbyname
20565 /* System header to define __stub macros and hopefully few prototypes,
20566 which can conflict with char gethostbyname (); below.
20567 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20568 <limits.h> exists even on freestanding compilers. */
20571 # include <limits.h>
20573 # include <assert.h>
20576 #undef gethostbyname
20578 /* Override any GCC internal prototype to avoid an error.
20579 Use char because int might match the return type of a GCC
20580 builtin and then its argument prototype would still apply. */
20584 char gethostbyname ();
20585 /* The GNU C library defines this for functions which it implements
20586 to always fail with ENOSYS. Some functions are actually named
20587 something starting with __ and the normal name is an alias. */
20588 #if defined __stub_gethostbyname || defined __stub___gethostbyname
20595 return gethostbyname ();
20600 rm -f conftest.$ac_objext conftest$ac_exeext
20601 if { (ac_try="$ac_link"
20602 case "(($ac_try" in
20603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20604 *) ac_try_echo=$ac_try;;
20606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20607 (eval "$ac_link") 2>conftest.er1
20609 grep -v '^ *+' conftest.er1 >conftest.err
20611 cat conftest.err >&5
20612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20613 (exit $ac_status); } &&
20614 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20615 { (case "(($ac_try" in
20616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20617 *) ac_try_echo=$ac_try;;
20619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20620 (eval "$ac_try") 2>&5
20622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20623 (exit $ac_status); }; } &&
20624 { ac_try='test -s conftest$ac_exeext'
20625 { (case "(($ac_try" in
20626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20627 *) ac_try_echo=$ac_try;;
20629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20630 (eval "$ac_try") 2>&5
20632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20633 (exit $ac_status); }; }; then
20634 ac_cv_func_gethostbyname=yes
20636 echo "$as_me: failed program was:" >&5
20637 sed 's/^/| /' conftest.$ac_ext >&5
20639 ac_cv_func_gethostbyname=no
20642 rm -f core conftest.err conftest.$ac_objext \
20643 conftest$ac_exeext conftest.$ac_ext
20645 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
20646 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
20648 if test $ac_cv_func_gethostbyname = no; then
20649 { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
20650 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
20651 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
20652 echo $ECHO_N "(cached) $ECHO_C" >&6
20654 ac_check_lib_save_LIBS=$LIBS
20656 cat >conftest.$ac_ext <<_ACEOF
20659 cat confdefs.h >>conftest.$ac_ext
20660 cat >>conftest.$ac_ext <<_ACEOF
20661 /* end confdefs.h. */
20663 /* Override any GCC internal prototype to avoid an error.
20664 Use char because int might match the return type of a GCC
20665 builtin and then its argument prototype would still apply. */
20669 char gethostbyname ();
20673 return gethostbyname ();
20678 rm -f conftest.$ac_objext conftest$ac_exeext
20679 if { (ac_try="$ac_link"
20680 case "(($ac_try" in
20681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20682 *) ac_try_echo=$ac_try;;
20684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20685 (eval "$ac_link") 2>conftest.er1
20687 grep -v '^ *+' conftest.er1 >conftest.err
20689 cat conftest.err >&5
20690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20691 (exit $ac_status); } &&
20692 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20693 { (case "(($ac_try" in
20694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20695 *) ac_try_echo=$ac_try;;
20697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20698 (eval "$ac_try") 2>&5
20700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20701 (exit $ac_status); }; } &&
20702 { ac_try='test -s conftest$ac_exeext'
20703 { (case "(($ac_try" in
20704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20705 *) ac_try_echo=$ac_try;;
20707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20708 (eval "$ac_try") 2>&5
20710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20711 (exit $ac_status); }; }; then
20712 ac_cv_lib_nsl_gethostbyname=yes
20714 echo "$as_me: failed program was:" >&5
20715 sed 's/^/| /' conftest.$ac_ext >&5
20717 ac_cv_lib_nsl_gethostbyname=no
20720 rm -f core conftest.err conftest.$ac_objext \
20721 conftest$ac_exeext conftest.$ac_ext
20722 LIBS=$ac_check_lib_save_LIBS
20724 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
20725 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
20726 if test $ac_cv_lib_nsl_gethostbyname = yes; then
20727 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
20730 if test $ac_cv_lib_nsl_gethostbyname = no; then
20731 { echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
20732 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; }
20733 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
20734 echo $ECHO_N "(cached) $ECHO_C" >&6
20736 ac_check_lib_save_LIBS=$LIBS
20738 cat >conftest.$ac_ext <<_ACEOF
20741 cat confdefs.h >>conftest.$ac_ext
20742 cat >>conftest.$ac_ext <<_ACEOF
20743 /* end confdefs.h. */
20745 /* Override any GCC internal prototype to avoid an error.
20746 Use char because int might match the return type of a GCC
20747 builtin and then its argument prototype would still apply. */
20751 char gethostbyname ();
20755 return gethostbyname ();
20760 rm -f conftest.$ac_objext conftest$ac_exeext
20761 if { (ac_try="$ac_link"
20762 case "(($ac_try" in
20763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20764 *) ac_try_echo=$ac_try;;
20766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20767 (eval "$ac_link") 2>conftest.er1
20769 grep -v '^ *+' conftest.er1 >conftest.err
20771 cat conftest.err >&5
20772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20773 (exit $ac_status); } &&
20774 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20775 { (case "(($ac_try" in
20776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20777 *) ac_try_echo=$ac_try;;
20779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20780 (eval "$ac_try") 2>&5
20782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20783 (exit $ac_status); }; } &&
20784 { ac_try='test -s conftest$ac_exeext'
20785 { (case "(($ac_try" in
20786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20787 *) ac_try_echo=$ac_try;;
20789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20790 (eval "$ac_try") 2>&5
20792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20793 (exit $ac_status); }; }; then
20794 ac_cv_lib_bsd_gethostbyname=yes
20796 echo "$as_me: failed program was:" >&5
20797 sed 's/^/| /' conftest.$ac_ext >&5
20799 ac_cv_lib_bsd_gethostbyname=no
20802 rm -f core conftest.err conftest.$ac_objext \
20803 conftest$ac_exeext conftest.$ac_ext
20804 LIBS=$ac_check_lib_save_LIBS
20806 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
20807 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; }
20808 if test $ac_cv_lib_bsd_gethostbyname = yes; then
20809 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
20815 # lieder@skyler.mavd.honeywell.com says without -lsocket,
20816 # socket/setsockopt and other routines are undefined under SCO ODT
20817 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
20818 # on later versions), says Simon Leinen: it contains gethostby*
20819 # variants that don't use the name server (or something). -lsocket
20820 # must be given before -lnsl if both are needed. We assume that
20821 # if connect needs -lnsl, so does gethostbyname.
20822 { echo "$as_me:$LINENO: checking for connect" >&5
20823 echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
20824 if test "${ac_cv_func_connect+set}" = set; then
20825 echo $ECHO_N "(cached) $ECHO_C" >&6
20827 cat >conftest.$ac_ext <<_ACEOF
20830 cat confdefs.h >>conftest.$ac_ext
20831 cat >>conftest.$ac_ext <<_ACEOF
20832 /* end confdefs.h. */
20833 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
20834 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20835 #define connect innocuous_connect
20837 /* System header to define __stub macros and hopefully few prototypes,
20838 which can conflict with char connect (); below.
20839 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20840 <limits.h> exists even on freestanding compilers. */
20843 # include <limits.h>
20845 # include <assert.h>
20850 /* Override any GCC internal prototype to avoid an error.
20851 Use char because int might match the return type of a GCC
20852 builtin and then its argument prototype would still apply. */
20857 /* The GNU C library defines this for functions which it implements
20858 to always fail with ENOSYS. Some functions are actually named
20859 something starting with __ and the normal name is an alias. */
20860 #if defined __stub_connect || defined __stub___connect
20872 rm -f conftest.$ac_objext conftest$ac_exeext
20873 if { (ac_try="$ac_link"
20874 case "(($ac_try" in
20875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20876 *) ac_try_echo=$ac_try;;
20878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20879 (eval "$ac_link") 2>conftest.er1
20881 grep -v '^ *+' conftest.er1 >conftest.err
20883 cat conftest.err >&5
20884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20885 (exit $ac_status); } &&
20886 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20887 { (case "(($ac_try" in
20888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20889 *) ac_try_echo=$ac_try;;
20891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20892 (eval "$ac_try") 2>&5
20894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20895 (exit $ac_status); }; } &&
20896 { ac_try='test -s conftest$ac_exeext'
20897 { (case "(($ac_try" in
20898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20899 *) ac_try_echo=$ac_try;;
20901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20902 (eval "$ac_try") 2>&5
20904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20905 (exit $ac_status); }; }; then
20906 ac_cv_func_connect=yes
20908 echo "$as_me: failed program was:" >&5
20909 sed 's/^/| /' conftest.$ac_ext >&5
20911 ac_cv_func_connect=no
20914 rm -f core conftest.err conftest.$ac_objext \
20915 conftest$ac_exeext conftest.$ac_ext
20917 { echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
20918 echo "${ECHO_T}$ac_cv_func_connect" >&6; }
20920 if test $ac_cv_func_connect = no; then
20921 { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
20922 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
20923 if test "${ac_cv_lib_socket_connect+set}" = set; then
20924 echo $ECHO_N "(cached) $ECHO_C" >&6
20926 ac_check_lib_save_LIBS=$LIBS
20927 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
20928 cat >conftest.$ac_ext <<_ACEOF
20931 cat confdefs.h >>conftest.$ac_ext
20932 cat >>conftest.$ac_ext <<_ACEOF
20933 /* end confdefs.h. */
20935 /* Override any GCC internal prototype to avoid an error.
20936 Use char because int might match the return type of a GCC
20937 builtin and then its argument prototype would still apply. */
20950 rm -f conftest.$ac_objext conftest$ac_exeext
20951 if { (ac_try="$ac_link"
20952 case "(($ac_try" in
20953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20954 *) ac_try_echo=$ac_try;;
20956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20957 (eval "$ac_link") 2>conftest.er1
20959 grep -v '^ *+' conftest.er1 >conftest.err
20961 cat conftest.err >&5
20962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20963 (exit $ac_status); } &&
20964 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20965 { (case "(($ac_try" in
20966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20967 *) ac_try_echo=$ac_try;;
20969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20970 (eval "$ac_try") 2>&5
20972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20973 (exit $ac_status); }; } &&
20974 { ac_try='test -s conftest$ac_exeext'
20975 { (case "(($ac_try" in
20976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20977 *) ac_try_echo=$ac_try;;
20979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20980 (eval "$ac_try") 2>&5
20982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20983 (exit $ac_status); }; }; then
20984 ac_cv_lib_socket_connect=yes
20986 echo "$as_me: failed program was:" >&5
20987 sed 's/^/| /' conftest.$ac_ext >&5
20989 ac_cv_lib_socket_connect=no
20992 rm -f core conftest.err conftest.$ac_objext \
20993 conftest$ac_exeext conftest.$ac_ext
20994 LIBS=$ac_check_lib_save_LIBS
20996 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
20997 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
20998 if test $ac_cv_lib_socket_connect = yes; then
20999 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
21004 # Guillermo Gomez says -lposix is necessary on A/UX.
21005 { echo "$as_me:$LINENO: checking for remove" >&5
21006 echo $ECHO_N "checking for remove... $ECHO_C" >&6; }
21007 if test "${ac_cv_func_remove+set}" = set; then
21008 echo $ECHO_N "(cached) $ECHO_C" >&6
21010 cat >conftest.$ac_ext <<_ACEOF
21013 cat confdefs.h >>conftest.$ac_ext
21014 cat >>conftest.$ac_ext <<_ACEOF
21015 /* end confdefs.h. */
21016 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
21017 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21018 #define remove innocuous_remove
21020 /* System header to define __stub macros and hopefully few prototypes,
21021 which can conflict with char remove (); below.
21022 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21023 <limits.h> exists even on freestanding compilers. */
21026 # include <limits.h>
21028 # include <assert.h>
21033 /* Override any GCC internal prototype to avoid an error.
21034 Use char because int might match the return type of a GCC
21035 builtin and then its argument prototype would still apply. */
21040 /* The GNU C library defines this for functions which it implements
21041 to always fail with ENOSYS. Some functions are actually named
21042 something starting with __ and the normal name is an alias. */
21043 #if defined __stub_remove || defined __stub___remove
21055 rm -f conftest.$ac_objext conftest$ac_exeext
21056 if { (ac_try="$ac_link"
21057 case "(($ac_try" in
21058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21059 *) ac_try_echo=$ac_try;;
21061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21062 (eval "$ac_link") 2>conftest.er1
21064 grep -v '^ *+' conftest.er1 >conftest.err
21066 cat conftest.err >&5
21067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21068 (exit $ac_status); } &&
21069 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21070 { (case "(($ac_try" in
21071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21072 *) ac_try_echo=$ac_try;;
21074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21075 (eval "$ac_try") 2>&5
21077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21078 (exit $ac_status); }; } &&
21079 { ac_try='test -s conftest$ac_exeext'
21080 { (case "(($ac_try" in
21081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21082 *) ac_try_echo=$ac_try;;
21084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21085 (eval "$ac_try") 2>&5
21087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21088 (exit $ac_status); }; }; then
21089 ac_cv_func_remove=yes
21091 echo "$as_me: failed program was:" >&5
21092 sed 's/^/| /' conftest.$ac_ext >&5
21094 ac_cv_func_remove=no
21097 rm -f core conftest.err conftest.$ac_objext \
21098 conftest$ac_exeext conftest.$ac_ext
21100 { echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
21101 echo "${ECHO_T}$ac_cv_func_remove" >&6; }
21103 if test $ac_cv_func_remove = no; then
21104 { echo "$as_me:$LINENO: checking for remove in -lposix" >&5
21105 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; }
21106 if test "${ac_cv_lib_posix_remove+set}" = set; then
21107 echo $ECHO_N "(cached) $ECHO_C" >&6
21109 ac_check_lib_save_LIBS=$LIBS
21110 LIBS="-lposix $LIBS"
21111 cat >conftest.$ac_ext <<_ACEOF
21114 cat confdefs.h >>conftest.$ac_ext
21115 cat >>conftest.$ac_ext <<_ACEOF
21116 /* end confdefs.h. */
21118 /* Override any GCC internal prototype to avoid an error.
21119 Use char because int might match the return type of a GCC
21120 builtin and then its argument prototype would still apply. */
21133 rm -f conftest.$ac_objext conftest$ac_exeext
21134 if { (ac_try="$ac_link"
21135 case "(($ac_try" in
21136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21137 *) ac_try_echo=$ac_try;;
21139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21140 (eval "$ac_link") 2>conftest.er1
21142 grep -v '^ *+' conftest.er1 >conftest.err
21144 cat conftest.err >&5
21145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21146 (exit $ac_status); } &&
21147 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21148 { (case "(($ac_try" in
21149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21150 *) ac_try_echo=$ac_try;;
21152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21153 (eval "$ac_try") 2>&5
21155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21156 (exit $ac_status); }; } &&
21157 { ac_try='test -s conftest$ac_exeext'
21158 { (case "(($ac_try" in
21159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21160 *) ac_try_echo=$ac_try;;
21162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21163 (eval "$ac_try") 2>&5
21165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21166 (exit $ac_status); }; }; then
21167 ac_cv_lib_posix_remove=yes
21169 echo "$as_me: failed program was:" >&5
21170 sed 's/^/| /' conftest.$ac_ext >&5
21172 ac_cv_lib_posix_remove=no
21175 rm -f core conftest.err conftest.$ac_objext \
21176 conftest$ac_exeext conftest.$ac_ext
21177 LIBS=$ac_check_lib_save_LIBS
21179 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
21180 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; }
21181 if test $ac_cv_lib_posix_remove = yes; then
21182 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
21187 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
21188 { echo "$as_me:$LINENO: checking for shmat" >&5
21189 echo $ECHO_N "checking for shmat... $ECHO_C" >&6; }
21190 if test "${ac_cv_func_shmat+set}" = set; then
21191 echo $ECHO_N "(cached) $ECHO_C" >&6
21193 cat >conftest.$ac_ext <<_ACEOF
21196 cat confdefs.h >>conftest.$ac_ext
21197 cat >>conftest.$ac_ext <<_ACEOF
21198 /* end confdefs.h. */
21199 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
21200 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21201 #define shmat innocuous_shmat
21203 /* System header to define __stub macros and hopefully few prototypes,
21204 which can conflict with char shmat (); below.
21205 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21206 <limits.h> exists even on freestanding compilers. */
21209 # include <limits.h>
21211 # include <assert.h>
21216 /* Override any GCC internal prototype to avoid an error.
21217 Use char because int might match the return type of a GCC
21218 builtin and then its argument prototype would still apply. */
21223 /* The GNU C library defines this for functions which it implements
21224 to always fail with ENOSYS. Some functions are actually named
21225 something starting with __ and the normal name is an alias. */
21226 #if defined __stub_shmat || defined __stub___shmat
21238 rm -f conftest.$ac_objext conftest$ac_exeext
21239 if { (ac_try="$ac_link"
21240 case "(($ac_try" in
21241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21242 *) ac_try_echo=$ac_try;;
21244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21245 (eval "$ac_link") 2>conftest.er1
21247 grep -v '^ *+' conftest.er1 >conftest.err
21249 cat conftest.err >&5
21250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21251 (exit $ac_status); } &&
21252 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21253 { (case "(($ac_try" in
21254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21255 *) ac_try_echo=$ac_try;;
21257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21258 (eval "$ac_try") 2>&5
21260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21261 (exit $ac_status); }; } &&
21262 { ac_try='test -s conftest$ac_exeext'
21263 { (case "(($ac_try" in
21264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21265 *) ac_try_echo=$ac_try;;
21267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21268 (eval "$ac_try") 2>&5
21270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21271 (exit $ac_status); }; }; then
21272 ac_cv_func_shmat=yes
21274 echo "$as_me: failed program was:" >&5
21275 sed 's/^/| /' conftest.$ac_ext >&5
21277 ac_cv_func_shmat=no
21280 rm -f core conftest.err conftest.$ac_objext \
21281 conftest$ac_exeext conftest.$ac_ext
21283 { echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
21284 echo "${ECHO_T}$ac_cv_func_shmat" >&6; }
21286 if test $ac_cv_func_shmat = no; then
21287 { echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
21288 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; }
21289 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
21290 echo $ECHO_N "(cached) $ECHO_C" >&6
21292 ac_check_lib_save_LIBS=$LIBS
21294 cat >conftest.$ac_ext <<_ACEOF
21297 cat confdefs.h >>conftest.$ac_ext
21298 cat >>conftest.$ac_ext <<_ACEOF
21299 /* end confdefs.h. */
21301 /* Override any GCC internal prototype to avoid an error.
21302 Use char because int might match the return type of a GCC
21303 builtin and then its argument prototype would still apply. */
21316 rm -f conftest.$ac_objext conftest$ac_exeext
21317 if { (ac_try="$ac_link"
21318 case "(($ac_try" in
21319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21320 *) ac_try_echo=$ac_try;;
21322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21323 (eval "$ac_link") 2>conftest.er1
21325 grep -v '^ *+' conftest.er1 >conftest.err
21327 cat conftest.err >&5
21328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21329 (exit $ac_status); } &&
21330 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21331 { (case "(($ac_try" in
21332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21333 *) ac_try_echo=$ac_try;;
21335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21336 (eval "$ac_try") 2>&5
21338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21339 (exit $ac_status); }; } &&
21340 { ac_try='test -s conftest$ac_exeext'
21341 { (case "(($ac_try" in
21342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21343 *) ac_try_echo=$ac_try;;
21345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21346 (eval "$ac_try") 2>&5
21348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21349 (exit $ac_status); }; }; then
21350 ac_cv_lib_ipc_shmat=yes
21352 echo "$as_me: failed program was:" >&5
21353 sed 's/^/| /' conftest.$ac_ext >&5
21355 ac_cv_lib_ipc_shmat=no
21358 rm -f core conftest.err conftest.$ac_objext \
21359 conftest$ac_exeext conftest.$ac_ext
21360 LIBS=$ac_check_lib_save_LIBS
21362 { echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
21363 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; }
21364 if test $ac_cv_lib_ipc_shmat = yes; then
21365 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
21371 # Check for libraries that X11R6 Xt/Xaw programs need.
21372 ac_save_LDFLAGS=$LDFLAGS
21373 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
21374 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
21375 # check for ICE first), but we must link in the order -lSM -lICE or
21376 # we get undefined symbols. So assume we have SM if we have ICE.
21377 # These have to be linked with before -lX11, unlike the other
21378 # libraries we check for below, so use a different variable.
21379 # John Interrante, Karl Berry
21380 { echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
21381 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; }
21382 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
21383 echo $ECHO_N "(cached) $ECHO_C" >&6
21385 ac_check_lib_save_LIBS=$LIBS
21386 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
21387 cat >conftest.$ac_ext <<_ACEOF
21390 cat confdefs.h >>conftest.$ac_ext
21391 cat >>conftest.$ac_ext <<_ACEOF
21392 /* end confdefs.h. */
21394 /* Override any GCC internal prototype to avoid an error.
21395 Use char because int might match the return type of a GCC
21396 builtin and then its argument prototype would still apply. */
21400 char IceConnectionNumber ();
21404 return IceConnectionNumber ();
21409 rm -f conftest.$ac_objext conftest$ac_exeext
21410 if { (ac_try="$ac_link"
21411 case "(($ac_try" in
21412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21413 *) ac_try_echo=$ac_try;;
21415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21416 (eval "$ac_link") 2>conftest.er1
21418 grep -v '^ *+' conftest.er1 >conftest.err
21420 cat conftest.err >&5
21421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21422 (exit $ac_status); } &&
21423 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21424 { (case "(($ac_try" in
21425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21426 *) ac_try_echo=$ac_try;;
21428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21429 (eval "$ac_try") 2>&5
21431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21432 (exit $ac_status); }; } &&
21433 { ac_try='test -s conftest$ac_exeext'
21434 { (case "(($ac_try" in
21435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21436 *) ac_try_echo=$ac_try;;
21438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21439 (eval "$ac_try") 2>&5
21441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21442 (exit $ac_status); }; }; then
21443 ac_cv_lib_ICE_IceConnectionNumber=yes
21445 echo "$as_me: failed program was:" >&5
21446 sed 's/^/| /' conftest.$ac_ext >&5
21448 ac_cv_lib_ICE_IceConnectionNumber=no
21451 rm -f core conftest.err conftest.$ac_objext \
21452 conftest$ac_exeext conftest.$ac_ext
21453 LIBS=$ac_check_lib_save_LIBS
21455 { echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
21456 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
21457 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
21458 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
21461 LDFLAGS=$ac_save_LDFLAGS
21523 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21524 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21525 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21526 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21527 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21528 echo $ECHO_N "(cached) $ECHO_C" >&6
21530 ac_res=`eval echo '${'$as_ac_Header'}'`
21531 { echo "$as_me:$LINENO: result: $ac_res" >&5
21532 echo "${ECHO_T}$ac_res" >&6; }
21534 # Is the header compilable?
21535 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21536 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21537 cat >conftest.$ac_ext <<_ACEOF
21540 cat confdefs.h >>conftest.$ac_ext
21541 cat >>conftest.$ac_ext <<_ACEOF
21542 /* end confdefs.h. */
21543 $ac_includes_default
21544 #include <$ac_header>
21546 rm -f conftest.$ac_objext
21547 if { (ac_try="$ac_compile"
21548 case "(($ac_try" in
21549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21550 *) ac_try_echo=$ac_try;;
21552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21553 (eval "$ac_compile") 2>conftest.er1
21555 grep -v '^ *+' conftest.er1 >conftest.err
21557 cat conftest.err >&5
21558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21559 (exit $ac_status); } &&
21560 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21561 { (case "(($ac_try" in
21562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21563 *) ac_try_echo=$ac_try;;
21565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21566 (eval "$ac_try") 2>&5
21568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21569 (exit $ac_status); }; } &&
21570 { ac_try='test -s conftest.$ac_objext'
21571 { (case "(($ac_try" in
21572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21573 *) ac_try_echo=$ac_try;;
21575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21576 (eval "$ac_try") 2>&5
21578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21579 (exit $ac_status); }; }; then
21580 ac_header_compiler=yes
21582 echo "$as_me: failed program was:" >&5
21583 sed 's/^/| /' conftest.$ac_ext >&5
21585 ac_header_compiler=no
21588 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21589 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21590 echo "${ECHO_T}$ac_header_compiler" >&6; }
21592 # Is the header present?
21593 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21594 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21595 cat >conftest.$ac_ext <<_ACEOF
21598 cat confdefs.h >>conftest.$ac_ext
21599 cat >>conftest.$ac_ext <<_ACEOF
21600 /* end confdefs.h. */
21601 #include <$ac_header>
21603 if { (ac_try="$ac_cpp conftest.$ac_ext"
21604 case "(($ac_try" in
21605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21606 *) ac_try_echo=$ac_try;;
21608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21609 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21611 grep -v '^ *+' conftest.er1 >conftest.err
21613 cat conftest.err >&5
21614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21615 (exit $ac_status); } >/dev/null; then
21616 if test -s conftest.err; then
21617 ac_cpp_err=$ac_c_preproc_warn_flag
21618 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21625 if test -z "$ac_cpp_err"; then
21626 ac_header_preproc=yes
21628 echo "$as_me: failed program was:" >&5
21629 sed 's/^/| /' conftest.$ac_ext >&5
21631 ac_header_preproc=no
21634 rm -f conftest.err conftest.$ac_ext
21635 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21636 echo "${ECHO_T}$ac_header_preproc" >&6; }
21638 # So? What about this header?
21639 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21641 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21642 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21643 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21644 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21645 ac_header_preproc=yes
21648 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21649 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21650 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21651 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21652 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21653 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21654 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21655 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21656 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21657 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21658 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21659 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21663 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21664 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21665 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21666 echo $ECHO_N "(cached) $ECHO_C" >&6
21668 eval "$as_ac_Header=\$ac_header_preproc"
21670 ac_res=`eval echo '${'$as_ac_Header'}'`
21671 { echo "$as_me:$LINENO: result: $ac_res" >&5
21672 echo "${ECHO_T}$ac_res" >&6; }
21675 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21676 cat >>confdefs.h <<_ACEOF
21677 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21684 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
21685 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
21686 if test "${ac_cv_header_stdc+set}" = set; then
21687 echo $ECHO_N "(cached) $ECHO_C" >&6
21689 cat >conftest.$ac_ext <<_ACEOF
21692 cat confdefs.h >>conftest.$ac_ext
21693 cat >>conftest.$ac_ext <<_ACEOF
21694 /* end confdefs.h. */
21695 #include <stdlib.h>
21696 #include <stdarg.h>
21697 #include <string.h>
21708 rm -f conftest.$ac_objext
21709 if { (ac_try="$ac_compile"
21710 case "(($ac_try" in
21711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21712 *) ac_try_echo=$ac_try;;
21714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21715 (eval "$ac_compile") 2>conftest.er1
21717 grep -v '^ *+' conftest.er1 >conftest.err
21719 cat conftest.err >&5
21720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21721 (exit $ac_status); } &&
21722 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21723 { (case "(($ac_try" in
21724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21725 *) ac_try_echo=$ac_try;;
21727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21728 (eval "$ac_try") 2>&5
21730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21731 (exit $ac_status); }; } &&
21732 { ac_try='test -s conftest.$ac_objext'
21733 { (case "(($ac_try" in
21734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21735 *) ac_try_echo=$ac_try;;
21737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21738 (eval "$ac_try") 2>&5
21740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21741 (exit $ac_status); }; }; then
21742 ac_cv_header_stdc=yes
21744 echo "$as_me: failed program was:" >&5
21745 sed 's/^/| /' conftest.$ac_ext >&5
21747 ac_cv_header_stdc=no
21750 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21752 if test $ac_cv_header_stdc = yes; then
21753 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
21754 cat >conftest.$ac_ext <<_ACEOF
21757 cat confdefs.h >>conftest.$ac_ext
21758 cat >>conftest.$ac_ext <<_ACEOF
21759 /* end confdefs.h. */
21760 #include <string.h>
21763 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21764 $EGREP "memchr" >/dev/null 2>&1; then
21767 ac_cv_header_stdc=no
21773 if test $ac_cv_header_stdc = yes; then
21774 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
21775 cat >conftest.$ac_ext <<_ACEOF
21778 cat confdefs.h >>conftest.$ac_ext
21779 cat >>conftest.$ac_ext <<_ACEOF
21780 /* end confdefs.h. */
21781 #include <stdlib.h>
21784 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21785 $EGREP "free" >/dev/null 2>&1; then
21788 ac_cv_header_stdc=no
21794 if test $ac_cv_header_stdc = yes; then
21795 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
21796 if test "$cross_compiling" = yes; then
21799 cat >conftest.$ac_ext <<_ACEOF
21802 cat confdefs.h >>conftest.$ac_ext
21803 cat >>conftest.$ac_ext <<_ACEOF
21804 /* end confdefs.h. */
21806 #include <stdlib.h>
21807 #if ((' ' & 0x0FF) == 0x020)
21808 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
21809 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
21811 # define ISLOWER(c) \
21812 (('a' <= (c) && (c) <= 'i') \
21813 || ('j' <= (c) && (c) <= 'r') \
21814 || ('s' <= (c) && (c) <= 'z'))
21815 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
21818 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
21823 for (i = 0; i < 256; i++)
21824 if (XOR (islower (i), ISLOWER (i))
21825 || toupper (i) != TOUPPER (i))
21830 rm -f conftest$ac_exeext
21831 if { (ac_try="$ac_link"
21832 case "(($ac_try" in
21833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21834 *) ac_try_echo=$ac_try;;
21836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21837 (eval "$ac_link") 2>&5
21839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21840 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21841 { (case "(($ac_try" in
21842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21843 *) ac_try_echo=$ac_try;;
21845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21846 (eval "$ac_try") 2>&5
21848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21849 (exit $ac_status); }; }; then
21852 echo "$as_me: program exited with status $ac_status" >&5
21853 echo "$as_me: failed program was:" >&5
21854 sed 's/^/| /' conftest.$ac_ext >&5
21856 ( exit $ac_status )
21857 ac_cv_header_stdc=no
21859 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21865 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
21866 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
21867 if test $ac_cv_header_stdc = yes; then
21869 cat >>confdefs.h <<\_ACEOF
21870 #define STDC_HEADERS 1
21875 { echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
21876 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6; }
21877 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
21878 echo $ECHO_N "(cached) $ECHO_C" >&6
21880 cat >conftest.$ac_ext <<_ACEOF
21883 cat confdefs.h >>conftest.$ac_ext
21884 cat >>conftest.$ac_ext <<_ACEOF
21885 /* end confdefs.h. */
21886 #include <sys/types.h>
21890 return makedev(0, 0);
21895 rm -f conftest.$ac_objext conftest$ac_exeext
21896 if { (ac_try="$ac_link"
21897 case "(($ac_try" in
21898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21899 *) ac_try_echo=$ac_try;;
21901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21902 (eval "$ac_link") 2>conftest.er1
21904 grep -v '^ *+' conftest.er1 >conftest.err
21906 cat conftest.err >&5
21907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21908 (exit $ac_status); } &&
21909 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21910 { (case "(($ac_try" in
21911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21912 *) ac_try_echo=$ac_try;;
21914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21915 (eval "$ac_try") 2>&5
21917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21918 (exit $ac_status); }; } &&
21919 { ac_try='test -s conftest$ac_exeext'
21920 { (case "(($ac_try" in
21921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21922 *) ac_try_echo=$ac_try;;
21924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21925 (eval "$ac_try") 2>&5
21927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21928 (exit $ac_status); }; }; then
21929 ac_cv_header_sys_types_h_makedev=yes
21931 echo "$as_me: failed program was:" >&5
21932 sed 's/^/| /' conftest.$ac_ext >&5
21934 ac_cv_header_sys_types_h_makedev=no
21937 rm -f core conftest.err conftest.$ac_objext \
21938 conftest$ac_exeext conftest.$ac_ext
21941 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
21942 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6; }
21944 if test $ac_cv_header_sys_types_h_makedev = no; then
21945 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
21946 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
21947 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
21948 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
21949 echo $ECHO_N "(cached) $ECHO_C" >&6
21951 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
21952 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
21954 # Is the header compilable?
21955 { echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
21956 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6; }
21957 cat >conftest.$ac_ext <<_ACEOF
21960 cat confdefs.h >>conftest.$ac_ext
21961 cat >>conftest.$ac_ext <<_ACEOF
21962 /* end confdefs.h. */
21963 $ac_includes_default
21964 #include <sys/mkdev.h>
21966 rm -f conftest.$ac_objext
21967 if { (ac_try="$ac_compile"
21968 case "(($ac_try" in
21969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21970 *) ac_try_echo=$ac_try;;
21972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21973 (eval "$ac_compile") 2>conftest.er1
21975 grep -v '^ *+' conftest.er1 >conftest.err
21977 cat conftest.err >&5
21978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21979 (exit $ac_status); } &&
21980 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21981 { (case "(($ac_try" in
21982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21983 *) ac_try_echo=$ac_try;;
21985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21986 (eval "$ac_try") 2>&5
21988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21989 (exit $ac_status); }; } &&
21990 { ac_try='test -s conftest.$ac_objext'
21991 { (case "(($ac_try" in
21992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21993 *) ac_try_echo=$ac_try;;
21995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21996 (eval "$ac_try") 2>&5
21998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21999 (exit $ac_status); }; }; then
22000 ac_header_compiler=yes
22002 echo "$as_me: failed program was:" >&5
22003 sed 's/^/| /' conftest.$ac_ext >&5
22005 ac_header_compiler=no
22008 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22009 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22010 echo "${ECHO_T}$ac_header_compiler" >&6; }
22012 # Is the header present?
22013 { echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
22014 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6; }
22015 cat >conftest.$ac_ext <<_ACEOF
22018 cat confdefs.h >>conftest.$ac_ext
22019 cat >>conftest.$ac_ext <<_ACEOF
22020 /* end confdefs.h. */
22021 #include <sys/mkdev.h>
22023 if { (ac_try="$ac_cpp conftest.$ac_ext"
22024 case "(($ac_try" in
22025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22026 *) ac_try_echo=$ac_try;;
22028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22029 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22031 grep -v '^ *+' conftest.er1 >conftest.err
22033 cat conftest.err >&5
22034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22035 (exit $ac_status); } >/dev/null; then
22036 if test -s conftest.err; then
22037 ac_cpp_err=$ac_c_preproc_warn_flag
22038 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22045 if test -z "$ac_cpp_err"; then
22046 ac_header_preproc=yes
22048 echo "$as_me: failed program was:" >&5
22049 sed 's/^/| /' conftest.$ac_ext >&5
22051 ac_header_preproc=no
22054 rm -f conftest.err conftest.$ac_ext
22055 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22056 echo "${ECHO_T}$ac_header_preproc" >&6; }
22058 # So? What about this header?
22059 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22061 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
22062 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22063 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
22064 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
22065 ac_header_preproc=yes
22068 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
22069 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
22070 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
22071 echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
22072 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
22073 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
22074 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&5
22075 echo "$as_me: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&2;}
22076 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
22077 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
22078 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
22079 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
22083 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
22084 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
22085 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
22086 echo $ECHO_N "(cached) $ECHO_C" >&6
22088 ac_cv_header_sys_mkdev_h=$ac_header_preproc
22090 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
22091 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
22094 if test $ac_cv_header_sys_mkdev_h = yes; then
22096 cat >>confdefs.h <<\_ACEOF
22097 #define MAJOR_IN_MKDEV 1
22104 if test $ac_cv_header_sys_mkdev_h = no; then
22105 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
22106 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
22107 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
22108 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
22109 echo $ECHO_N "(cached) $ECHO_C" >&6
22111 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
22112 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
22114 # Is the header compilable?
22115 { echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
22116 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6; }
22117 cat >conftest.$ac_ext <<_ACEOF
22120 cat confdefs.h >>conftest.$ac_ext
22121 cat >>conftest.$ac_ext <<_ACEOF
22122 /* end confdefs.h. */
22123 $ac_includes_default
22124 #include <sys/sysmacros.h>
22126 rm -f conftest.$ac_objext
22127 if { (ac_try="$ac_compile"
22128 case "(($ac_try" in
22129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22130 *) ac_try_echo=$ac_try;;
22132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22133 (eval "$ac_compile") 2>conftest.er1
22135 grep -v '^ *+' conftest.er1 >conftest.err
22137 cat conftest.err >&5
22138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22139 (exit $ac_status); } &&
22140 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22141 { (case "(($ac_try" in
22142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22143 *) ac_try_echo=$ac_try;;
22145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22146 (eval "$ac_try") 2>&5
22148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22149 (exit $ac_status); }; } &&
22150 { ac_try='test -s conftest.$ac_objext'
22151 { (case "(($ac_try" in
22152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22153 *) ac_try_echo=$ac_try;;
22155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22156 (eval "$ac_try") 2>&5
22158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22159 (exit $ac_status); }; }; then
22160 ac_header_compiler=yes
22162 echo "$as_me: failed program was:" >&5
22163 sed 's/^/| /' conftest.$ac_ext >&5
22165 ac_header_compiler=no
22168 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22169 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22170 echo "${ECHO_T}$ac_header_compiler" >&6; }
22172 # Is the header present?
22173 { echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
22174 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6; }
22175 cat >conftest.$ac_ext <<_ACEOF
22178 cat confdefs.h >>conftest.$ac_ext
22179 cat >>conftest.$ac_ext <<_ACEOF
22180 /* end confdefs.h. */
22181 #include <sys/sysmacros.h>
22183 if { (ac_try="$ac_cpp conftest.$ac_ext"
22184 case "(($ac_try" in
22185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22186 *) ac_try_echo=$ac_try;;
22188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22189 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22191 grep -v '^ *+' conftest.er1 >conftest.err
22193 cat conftest.err >&5
22194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22195 (exit $ac_status); } >/dev/null; then
22196 if test -s conftest.err; then
22197 ac_cpp_err=$ac_c_preproc_warn_flag
22198 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22205 if test -z "$ac_cpp_err"; then
22206 ac_header_preproc=yes
22208 echo "$as_me: failed program was:" >&5
22209 sed 's/^/| /' conftest.$ac_ext >&5
22211 ac_header_preproc=no
22214 rm -f conftest.err conftest.$ac_ext
22215 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22216 echo "${ECHO_T}$ac_header_preproc" >&6; }
22218 # So? What about this header?
22219 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22221 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
22222 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22223 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
22224 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
22225 ac_header_preproc=yes
22228 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
22229 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
22230 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
22231 echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
22232 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
22233 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
22234 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&5
22235 echo "$as_me: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&2;}
22236 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
22237 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
22238 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
22239 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
22243 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
22244 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
22245 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
22246 echo $ECHO_N "(cached) $ECHO_C" >&6
22248 ac_cv_header_sys_sysmacros_h=$ac_header_preproc
22250 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
22251 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
22254 if test $ac_cv_header_sys_sysmacros_h = yes; then
22256 cat >>confdefs.h <<\_ACEOF
22257 #define MAJOR_IN_SYSMACROS 1
22271 ac_header_dirent=no
22272 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
22273 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
22274 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
22275 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
22276 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22277 echo $ECHO_N "(cached) $ECHO_C" >&6
22279 cat >conftest.$ac_ext <<_ACEOF
22282 cat confdefs.h >>conftest.$ac_ext
22283 cat >>conftest.$ac_ext <<_ACEOF
22284 /* end confdefs.h. */
22285 #include <sys/types.h>
22297 rm -f conftest.$ac_objext
22298 if { (ac_try="$ac_compile"
22299 case "(($ac_try" in
22300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22301 *) ac_try_echo=$ac_try;;
22303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22304 (eval "$ac_compile") 2>conftest.er1
22306 grep -v '^ *+' conftest.er1 >conftest.err
22308 cat conftest.err >&5
22309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22310 (exit $ac_status); } &&
22311 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22312 { (case "(($ac_try" in
22313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22314 *) ac_try_echo=$ac_try;;
22316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22317 (eval "$ac_try") 2>&5
22319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22320 (exit $ac_status); }; } &&
22321 { ac_try='test -s conftest.$ac_objext'
22322 { (case "(($ac_try" in
22323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22324 *) ac_try_echo=$ac_try;;
22326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22327 (eval "$ac_try") 2>&5
22329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22330 (exit $ac_status); }; }; then
22331 eval "$as_ac_Header=yes"
22333 echo "$as_me: failed program was:" >&5
22334 sed 's/^/| /' conftest.$ac_ext >&5
22336 eval "$as_ac_Header=no"
22339 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22341 ac_res=`eval echo '${'$as_ac_Header'}'`
22342 { echo "$as_me:$LINENO: result: $ac_res" >&5
22343 echo "${ECHO_T}$ac_res" >&6; }
22344 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22345 cat >>confdefs.h <<_ACEOF
22346 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
22349 ac_header_dirent=$ac_hdr; break
22353 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
22354 if test $ac_header_dirent = dirent.h; then
22355 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
22356 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
22357 if test "${ac_cv_search_opendir+set}" = set; then
22358 echo $ECHO_N "(cached) $ECHO_C" >&6
22360 ac_func_search_save_LIBS=$LIBS
22361 cat >conftest.$ac_ext <<_ACEOF
22364 cat confdefs.h >>conftest.$ac_ext
22365 cat >>conftest.$ac_ext <<_ACEOF
22366 /* end confdefs.h. */
22368 /* Override any GCC internal prototype to avoid an error.
22369 Use char because int might match the return type of a GCC
22370 builtin and then its argument prototype would still apply. */
22383 for ac_lib in '' dir; do
22384 if test -z "$ac_lib"; then
22385 ac_res="none required"
22388 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22390 rm -f conftest.$ac_objext conftest$ac_exeext
22391 if { (ac_try="$ac_link"
22392 case "(($ac_try" in
22393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22394 *) ac_try_echo=$ac_try;;
22396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22397 (eval "$ac_link") 2>conftest.er1
22399 grep -v '^ *+' conftest.er1 >conftest.err
22401 cat conftest.err >&5
22402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22403 (exit $ac_status); } &&
22404 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22405 { (case "(($ac_try" in
22406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22407 *) ac_try_echo=$ac_try;;
22409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22410 (eval "$ac_try") 2>&5
22412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22413 (exit $ac_status); }; } &&
22414 { ac_try='test -s conftest$ac_exeext'
22415 { (case "(($ac_try" in
22416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22417 *) ac_try_echo=$ac_try;;
22419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22420 (eval "$ac_try") 2>&5
22422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22423 (exit $ac_status); }; }; then
22424 ac_cv_search_opendir=$ac_res
22426 echo "$as_me: failed program was:" >&5
22427 sed 's/^/| /' conftest.$ac_ext >&5
22432 rm -f core conftest.err conftest.$ac_objext \
22434 if test "${ac_cv_search_opendir+set}" = set; then
22438 if test "${ac_cv_search_opendir+set}" = set; then
22441 ac_cv_search_opendir=no
22443 rm conftest.$ac_ext
22444 LIBS=$ac_func_search_save_LIBS
22446 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
22447 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
22448 ac_res=$ac_cv_search_opendir
22449 if test "$ac_res" != no; then
22450 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22455 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
22456 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
22457 if test "${ac_cv_search_opendir+set}" = set; then
22458 echo $ECHO_N "(cached) $ECHO_C" >&6
22460 ac_func_search_save_LIBS=$LIBS
22461 cat >conftest.$ac_ext <<_ACEOF
22464 cat confdefs.h >>conftest.$ac_ext
22465 cat >>conftest.$ac_ext <<_ACEOF
22466 /* end confdefs.h. */
22468 /* Override any GCC internal prototype to avoid an error.
22469 Use char because int might match the return type of a GCC
22470 builtin and then its argument prototype would still apply. */
22483 for ac_lib in '' x; do
22484 if test -z "$ac_lib"; then
22485 ac_res="none required"
22488 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22490 rm -f conftest.$ac_objext conftest$ac_exeext
22491 if { (ac_try="$ac_link"
22492 case "(($ac_try" in
22493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22494 *) ac_try_echo=$ac_try;;
22496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22497 (eval "$ac_link") 2>conftest.er1
22499 grep -v '^ *+' conftest.er1 >conftest.err
22501 cat conftest.err >&5
22502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22503 (exit $ac_status); } &&
22504 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22505 { (case "(($ac_try" in
22506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22507 *) ac_try_echo=$ac_try;;
22509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22510 (eval "$ac_try") 2>&5
22512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22513 (exit $ac_status); }; } &&
22514 { ac_try='test -s conftest$ac_exeext'
22515 { (case "(($ac_try" in
22516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22517 *) ac_try_echo=$ac_try;;
22519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22520 (eval "$ac_try") 2>&5
22522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22523 (exit $ac_status); }; }; then
22524 ac_cv_search_opendir=$ac_res
22526 echo "$as_me: failed program was:" >&5
22527 sed 's/^/| /' conftest.$ac_ext >&5
22532 rm -f core conftest.err conftest.$ac_objext \
22534 if test "${ac_cv_search_opendir+set}" = set; then
22538 if test "${ac_cv_search_opendir+set}" = set; then
22541 ac_cv_search_opendir=no
22543 rm conftest.$ac_ext
22544 LIBS=$ac_func_search_save_LIBS
22546 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
22547 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
22548 ac_res=$ac_cv_search_opendir
22549 if test "$ac_res" != no; then
22550 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22556 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
22557 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
22558 if test "${ac_cv_header_stat_broken+set}" = set; then
22559 echo $ECHO_N "(cached) $ECHO_C" >&6
22561 cat >conftest.$ac_ext <<_ACEOF
22564 cat confdefs.h >>conftest.$ac_ext
22565 cat >>conftest.$ac_ext <<_ACEOF
22566 /* end confdefs.h. */
22567 #include <sys/types.h>
22568 #include <sys/stat.h>
22570 #if defined S_ISBLK && defined S_IFDIR
22571 # if S_ISBLK (S_IFDIR)
22576 #if defined S_ISBLK && defined S_IFCHR
22577 # if S_ISBLK (S_IFCHR)
22582 #if defined S_ISLNK && defined S_IFREG
22583 # if S_ISLNK (S_IFREG)
22588 #if defined S_ISSOCK && defined S_IFREG
22589 # if S_ISSOCK (S_IFREG)
22595 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22596 $EGREP "You lose" >/dev/null 2>&1; then
22597 ac_cv_header_stat_broken=yes
22599 ac_cv_header_stat_broken=no
22604 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
22605 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
22606 if test $ac_cv_header_stat_broken = yes; then
22608 cat >>confdefs.h <<\_ACEOF
22609 #define STAT_MACROS_BROKEN 1
22614 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
22615 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
22616 if test "${ac_cv_header_sys_wait_h+set}" = set; then
22617 echo $ECHO_N "(cached) $ECHO_C" >&6
22619 cat >conftest.$ac_ext <<_ACEOF
22622 cat confdefs.h >>conftest.$ac_ext
22623 cat >>conftest.$ac_ext <<_ACEOF
22624 /* end confdefs.h. */
22625 #include <sys/types.h>
22626 #include <sys/wait.h>
22627 #ifndef WEXITSTATUS
22628 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
22631 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
22639 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
22644 rm -f conftest.$ac_objext
22645 if { (ac_try="$ac_compile"
22646 case "(($ac_try" in
22647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22648 *) ac_try_echo=$ac_try;;
22650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22651 (eval "$ac_compile") 2>conftest.er1
22653 grep -v '^ *+' conftest.er1 >conftest.err
22655 cat conftest.err >&5
22656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22657 (exit $ac_status); } &&
22658 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22659 { (case "(($ac_try" in
22660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22661 *) ac_try_echo=$ac_try;;
22663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22664 (eval "$ac_try") 2>&5
22666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22667 (exit $ac_status); }; } &&
22668 { ac_try='test -s conftest.$ac_objext'
22669 { (case "(($ac_try" in
22670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22671 *) ac_try_echo=$ac_try;;
22673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22674 (eval "$ac_try") 2>&5
22676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22677 (exit $ac_status); }; }; then
22678 ac_cv_header_sys_wait_h=yes
22680 echo "$as_me: failed program was:" >&5
22681 sed 's/^/| /' conftest.$ac_ext >&5
22683 ac_cv_header_sys_wait_h=no
22686 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22688 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
22689 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
22690 if test $ac_cv_header_sys_wait_h = yes; then
22692 cat >>confdefs.h <<\_ACEOF
22693 #define HAVE_SYS_WAIT_H 1
22698 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
22699 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
22700 if test "${ac_cv_header_time+set}" = set; then
22701 echo $ECHO_N "(cached) $ECHO_C" >&6
22703 cat >conftest.$ac_ext <<_ACEOF
22706 cat confdefs.h >>conftest.$ac_ext
22707 cat >>conftest.$ac_ext <<_ACEOF
22708 /* end confdefs.h. */
22709 #include <sys/types.h>
22710 #include <sys/time.h>
22716 if ((struct tm *) 0)
22722 rm -f conftest.$ac_objext
22723 if { (ac_try="$ac_compile"
22724 case "(($ac_try" in
22725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22726 *) ac_try_echo=$ac_try;;
22728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22729 (eval "$ac_compile") 2>conftest.er1
22731 grep -v '^ *+' conftest.er1 >conftest.err
22733 cat conftest.err >&5
22734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22735 (exit $ac_status); } &&
22736 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22737 { (case "(($ac_try" in
22738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22739 *) ac_try_echo=$ac_try;;
22741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22742 (eval "$ac_try") 2>&5
22744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22745 (exit $ac_status); }; } &&
22746 { ac_try='test -s conftest.$ac_objext'
22747 { (case "(($ac_try" in
22748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22749 *) ac_try_echo=$ac_try;;
22751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22752 (eval "$ac_try") 2>&5
22754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22755 (exit $ac_status); }; }; then
22756 ac_cv_header_time=yes
22758 echo "$as_me: failed program was:" >&5
22759 sed 's/^/| /' conftest.$ac_ext >&5
22761 ac_cv_header_time=no
22764 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22766 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
22767 echo "${ECHO_T}$ac_cv_header_time" >&6; }
22768 if test $ac_cv_header_time = yes; then
22770 cat >>confdefs.h <<\_ACEOF
22771 #define TIME_WITH_SYS_TIME 1
22776 { echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
22777 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6; }
22778 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
22779 echo $ECHO_N "(cached) $ECHO_C" >&6
22781 cat >conftest.$ac_ext <<_ACEOF
22784 cat confdefs.h >>conftest.$ac_ext
22785 cat >>conftest.$ac_ext <<_ACEOF
22786 /* end confdefs.h. */
22787 $ac_includes_default
22791 static struct stat ac_aggr;
22792 if (ac_aggr.st_blksize)
22798 rm -f conftest.$ac_objext
22799 if { (ac_try="$ac_compile"
22800 case "(($ac_try" in
22801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22802 *) ac_try_echo=$ac_try;;
22804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22805 (eval "$ac_compile") 2>conftest.er1
22807 grep -v '^ *+' conftest.er1 >conftest.err
22809 cat conftest.err >&5
22810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22811 (exit $ac_status); } &&
22812 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22813 { (case "(($ac_try" in
22814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22815 *) ac_try_echo=$ac_try;;
22817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22818 (eval "$ac_try") 2>&5
22820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22821 (exit $ac_status); }; } &&
22822 { ac_try='test -s conftest.$ac_objext'
22823 { (case "(($ac_try" in
22824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22825 *) ac_try_echo=$ac_try;;
22827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22828 (eval "$ac_try") 2>&5
22830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22831 (exit $ac_status); }; }; then
22832 ac_cv_member_struct_stat_st_blksize=yes
22834 echo "$as_me: failed program was:" >&5
22835 sed 's/^/| /' conftest.$ac_ext >&5
22837 cat >conftest.$ac_ext <<_ACEOF
22840 cat confdefs.h >>conftest.$ac_ext
22841 cat >>conftest.$ac_ext <<_ACEOF
22842 /* end confdefs.h. */
22843 $ac_includes_default
22847 static struct stat ac_aggr;
22848 if (sizeof ac_aggr.st_blksize)
22854 rm -f conftest.$ac_objext
22855 if { (ac_try="$ac_compile"
22856 case "(($ac_try" in
22857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22858 *) ac_try_echo=$ac_try;;
22860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22861 (eval "$ac_compile") 2>conftest.er1
22863 grep -v '^ *+' conftest.er1 >conftest.err
22865 cat conftest.err >&5
22866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22867 (exit $ac_status); } &&
22868 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22869 { (case "(($ac_try" in
22870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22871 *) ac_try_echo=$ac_try;;
22873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22874 (eval "$ac_try") 2>&5
22876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22877 (exit $ac_status); }; } &&
22878 { ac_try='test -s conftest.$ac_objext'
22879 { (case "(($ac_try" in
22880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22881 *) ac_try_echo=$ac_try;;
22883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22884 (eval "$ac_try") 2>&5
22886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22887 (exit $ac_status); }; }; then
22888 ac_cv_member_struct_stat_st_blksize=yes
22890 echo "$as_me: failed program was:" >&5
22891 sed 's/^/| /' conftest.$ac_ext >&5
22893 ac_cv_member_struct_stat_st_blksize=no
22896 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22899 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22901 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
22902 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; }
22903 if test $ac_cv_member_struct_stat_st_blksize = yes; then
22905 cat >>confdefs.h <<_ACEOF
22906 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
22910 cat >>confdefs.h <<\_ACEOF
22911 #define HAVE_ST_BLKSIZE 1
22917 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
22918 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
22919 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
22920 echo $ECHO_N "(cached) $ECHO_C" >&6
22922 cat >conftest.$ac_ext <<_ACEOF
22925 cat confdefs.h >>conftest.$ac_ext
22926 cat >>conftest.$ac_ext <<_ACEOF
22927 /* end confdefs.h. */
22928 $ac_includes_default
22932 static struct stat ac_aggr;
22933 if (ac_aggr.st_blocks)
22939 rm -f conftest.$ac_objext
22940 if { (ac_try="$ac_compile"
22941 case "(($ac_try" in
22942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22943 *) ac_try_echo=$ac_try;;
22945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22946 (eval "$ac_compile") 2>conftest.er1
22948 grep -v '^ *+' conftest.er1 >conftest.err
22950 cat conftest.err >&5
22951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22952 (exit $ac_status); } &&
22953 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22954 { (case "(($ac_try" in
22955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22956 *) ac_try_echo=$ac_try;;
22958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22959 (eval "$ac_try") 2>&5
22961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22962 (exit $ac_status); }; } &&
22963 { ac_try='test -s conftest.$ac_objext'
22964 { (case "(($ac_try" in
22965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22966 *) ac_try_echo=$ac_try;;
22968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22969 (eval "$ac_try") 2>&5
22971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22972 (exit $ac_status); }; }; then
22973 ac_cv_member_struct_stat_st_blocks=yes
22975 echo "$as_me: failed program was:" >&5
22976 sed 's/^/| /' conftest.$ac_ext >&5
22978 cat >conftest.$ac_ext <<_ACEOF
22981 cat confdefs.h >>conftest.$ac_ext
22982 cat >>conftest.$ac_ext <<_ACEOF
22983 /* end confdefs.h. */
22984 $ac_includes_default
22988 static struct stat ac_aggr;
22989 if (sizeof ac_aggr.st_blocks)
22995 rm -f conftest.$ac_objext
22996 if { (ac_try="$ac_compile"
22997 case "(($ac_try" in
22998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22999 *) ac_try_echo=$ac_try;;
23001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23002 (eval "$ac_compile") 2>conftest.er1
23004 grep -v '^ *+' conftest.er1 >conftest.err
23006 cat conftest.err >&5
23007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23008 (exit $ac_status); } &&
23009 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23010 { (case "(($ac_try" in
23011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23012 *) ac_try_echo=$ac_try;;
23014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23015 (eval "$ac_try") 2>&5
23017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23018 (exit $ac_status); }; } &&
23019 { ac_try='test -s conftest.$ac_objext'
23020 { (case "(($ac_try" in
23021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23022 *) ac_try_echo=$ac_try;;
23024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23025 (eval "$ac_try") 2>&5
23027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23028 (exit $ac_status); }; }; then
23029 ac_cv_member_struct_stat_st_blocks=yes
23031 echo "$as_me: failed program was:" >&5
23032 sed 's/^/| /' conftest.$ac_ext >&5
23034 ac_cv_member_struct_stat_st_blocks=no
23037 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23040 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23042 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
23043 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
23044 if test $ac_cv_member_struct_stat_st_blocks = yes; then
23046 cat >>confdefs.h <<_ACEOF
23047 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
23051 cat >>confdefs.h <<\_ACEOF
23052 #define HAVE_ST_BLOCKS 1
23056 case " $LIBOBJS " in
23057 *" fileblocks.$ac_objext "* ) ;;
23058 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
23065 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
23066 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
23067 if test "${ac_cv_struct_tm+set}" = set; then
23068 echo $ECHO_N "(cached) $ECHO_C" >&6
23070 cat >conftest.$ac_ext <<_ACEOF
23073 cat confdefs.h >>conftest.$ac_ext
23074 cat >>conftest.$ac_ext <<_ACEOF
23075 /* end confdefs.h. */
23076 #include <sys/types.h>
23082 struct tm *tp; tp->tm_sec;
23087 rm -f conftest.$ac_objext
23088 if { (ac_try="$ac_compile"
23089 case "(($ac_try" in
23090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23091 *) ac_try_echo=$ac_try;;
23093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23094 (eval "$ac_compile") 2>conftest.er1
23096 grep -v '^ *+' conftest.er1 >conftest.err
23098 cat conftest.err >&5
23099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23100 (exit $ac_status); } &&
23101 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23102 { (case "(($ac_try" in
23103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23104 *) ac_try_echo=$ac_try;;
23106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23107 (eval "$ac_try") 2>&5
23109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23110 (exit $ac_status); }; } &&
23111 { ac_try='test -s conftest.$ac_objext'
23112 { (case "(($ac_try" in
23113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23114 *) ac_try_echo=$ac_try;;
23116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23117 (eval "$ac_try") 2>&5
23119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23120 (exit $ac_status); }; }; then
23121 ac_cv_struct_tm=time.h
23123 echo "$as_me: failed program was:" >&5
23124 sed 's/^/| /' conftest.$ac_ext >&5
23126 ac_cv_struct_tm=sys/time.h
23129 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23131 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
23132 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
23133 if test $ac_cv_struct_tm = sys/time.h; then
23135 cat >>confdefs.h <<\_ACEOF
23136 #define TM_IN_SYS_TIME 1
23141 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
23142 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
23143 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
23144 echo $ECHO_N "(cached) $ECHO_C" >&6
23146 cat >conftest.$ac_ext <<_ACEOF
23149 cat confdefs.h >>conftest.$ac_ext
23150 cat >>conftest.$ac_ext <<_ACEOF
23151 /* end confdefs.h. */
23152 #include <sys/types.h>
23153 #include <$ac_cv_struct_tm>
23159 static struct tm ac_aggr;
23160 if (ac_aggr.tm_zone)
23166 rm -f conftest.$ac_objext
23167 if { (ac_try="$ac_compile"
23168 case "(($ac_try" in
23169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23170 *) ac_try_echo=$ac_try;;
23172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23173 (eval "$ac_compile") 2>conftest.er1
23175 grep -v '^ *+' conftest.er1 >conftest.err
23177 cat conftest.err >&5
23178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23179 (exit $ac_status); } &&
23180 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23181 { (case "(($ac_try" in
23182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23183 *) ac_try_echo=$ac_try;;
23185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23186 (eval "$ac_try") 2>&5
23188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23189 (exit $ac_status); }; } &&
23190 { ac_try='test -s conftest.$ac_objext'
23191 { (case "(($ac_try" in
23192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23193 *) ac_try_echo=$ac_try;;
23195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23196 (eval "$ac_try") 2>&5
23198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23199 (exit $ac_status); }; }; then
23200 ac_cv_member_struct_tm_tm_zone=yes
23202 echo "$as_me: failed program was:" >&5
23203 sed 's/^/| /' conftest.$ac_ext >&5
23205 cat >conftest.$ac_ext <<_ACEOF
23208 cat confdefs.h >>conftest.$ac_ext
23209 cat >>conftest.$ac_ext <<_ACEOF
23210 /* end confdefs.h. */
23211 #include <sys/types.h>
23212 #include <$ac_cv_struct_tm>
23218 static struct tm ac_aggr;
23219 if (sizeof ac_aggr.tm_zone)
23225 rm -f conftest.$ac_objext
23226 if { (ac_try="$ac_compile"
23227 case "(($ac_try" in
23228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23229 *) ac_try_echo=$ac_try;;
23231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23232 (eval "$ac_compile") 2>conftest.er1
23234 grep -v '^ *+' conftest.er1 >conftest.err
23236 cat conftest.err >&5
23237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23238 (exit $ac_status); } &&
23239 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23240 { (case "(($ac_try" in
23241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23242 *) ac_try_echo=$ac_try;;
23244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23245 (eval "$ac_try") 2>&5
23247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23248 (exit $ac_status); }; } &&
23249 { ac_try='test -s conftest.$ac_objext'
23250 { (case "(($ac_try" in
23251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23252 *) ac_try_echo=$ac_try;;
23254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23255 (eval "$ac_try") 2>&5
23257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23258 (exit $ac_status); }; }; then
23259 ac_cv_member_struct_tm_tm_zone=yes
23261 echo "$as_me: failed program was:" >&5
23262 sed 's/^/| /' conftest.$ac_ext >&5
23264 ac_cv_member_struct_tm_tm_zone=no
23267 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23270 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23272 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
23273 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
23274 if test $ac_cv_member_struct_tm_tm_zone = yes; then
23276 cat >>confdefs.h <<_ACEOF
23277 #define HAVE_STRUCT_TM_TM_ZONE 1
23283 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
23285 cat >>confdefs.h <<\_ACEOF
23286 #define HAVE_TM_ZONE 1
23290 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
23291 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
23292 if test "${ac_cv_have_decl_tzname+set}" = set; then
23293 echo $ECHO_N "(cached) $ECHO_C" >&6
23295 cat >conftest.$ac_ext <<_ACEOF
23298 cat confdefs.h >>conftest.$ac_ext
23299 cat >>conftest.$ac_ext <<_ACEOF
23300 /* end confdefs.h. */
23307 char *p = (char *) tzname;
23315 rm -f conftest.$ac_objext
23316 if { (ac_try="$ac_compile"
23317 case "(($ac_try" in
23318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23319 *) ac_try_echo=$ac_try;;
23321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23322 (eval "$ac_compile") 2>conftest.er1
23324 grep -v '^ *+' conftest.er1 >conftest.err
23326 cat conftest.err >&5
23327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23328 (exit $ac_status); } &&
23329 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23330 { (case "(($ac_try" in
23331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23332 *) ac_try_echo=$ac_try;;
23334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23335 (eval "$ac_try") 2>&5
23337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23338 (exit $ac_status); }; } &&
23339 { ac_try='test -s conftest.$ac_objext'
23340 { (case "(($ac_try" in
23341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23342 *) ac_try_echo=$ac_try;;
23344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23345 (eval "$ac_try") 2>&5
23347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23348 (exit $ac_status); }; }; then
23349 ac_cv_have_decl_tzname=yes
23351 echo "$as_me: failed program was:" >&5
23352 sed 's/^/| /' conftest.$ac_ext >&5
23354 ac_cv_have_decl_tzname=no
23357 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23359 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
23360 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
23361 if test $ac_cv_have_decl_tzname = yes; then
23363 cat >>confdefs.h <<_ACEOF
23364 #define HAVE_DECL_TZNAME 1
23369 cat >>confdefs.h <<_ACEOF
23370 #define HAVE_DECL_TZNAME 0
23377 { echo "$as_me:$LINENO: checking for tzname" >&5
23378 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
23379 if test "${ac_cv_var_tzname+set}" = set; then
23380 echo $ECHO_N "(cached) $ECHO_C" >&6
23382 cat >conftest.$ac_ext <<_ACEOF
23385 cat confdefs.h >>conftest.$ac_ext
23386 cat >>conftest.$ac_ext <<_ACEOF
23387 /* end confdefs.h. */
23389 #if !HAVE_DECL_TZNAME
23390 extern char *tzname[];
23396 return tzname[0][0];
23401 rm -f conftest.$ac_objext conftest$ac_exeext
23402 if { (ac_try="$ac_link"
23403 case "(($ac_try" in
23404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23405 *) ac_try_echo=$ac_try;;
23407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23408 (eval "$ac_link") 2>conftest.er1
23410 grep -v '^ *+' conftest.er1 >conftest.err
23412 cat conftest.err >&5
23413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23414 (exit $ac_status); } &&
23415 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23416 { (case "(($ac_try" in
23417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23418 *) ac_try_echo=$ac_try;;
23420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23421 (eval "$ac_try") 2>&5
23423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23424 (exit $ac_status); }; } &&
23425 { ac_try='test -s conftest$ac_exeext'
23426 { (case "(($ac_try" in
23427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23428 *) ac_try_echo=$ac_try;;
23430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23431 (eval "$ac_try") 2>&5
23433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23434 (exit $ac_status); }; }; then
23435 ac_cv_var_tzname=yes
23437 echo "$as_me: failed program was:" >&5
23438 sed 's/^/| /' conftest.$ac_ext >&5
23440 ac_cv_var_tzname=no
23443 rm -f core conftest.err conftest.$ac_objext \
23444 conftest$ac_exeext conftest.$ac_ext
23446 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
23447 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
23448 if test $ac_cv_var_tzname = yes; then
23450 cat >>confdefs.h <<\_ACEOF
23451 #define HAVE_TZNAME 1
23458 { echo "$as_me:$LINENO: checking for utime.h" >&5
23459 echo $ECHO_N "checking for utime.h... $ECHO_C" >&6; }
23460 if test "${ba_cv_header_utime_h+set}" = set; then
23461 echo $ECHO_N "(cached) $ECHO_C" >&6
23463 cat >conftest.$ac_ext <<_ACEOF
23466 cat confdefs.h >>conftest.$ac_ext
23467 cat >>conftest.$ac_ext <<_ACEOF
23468 /* end confdefs.h. */
23470 #include <sys/types.h>
23480 rm -f conftest.$ac_objext
23481 if { (ac_try="$ac_compile"
23482 case "(($ac_try" in
23483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23484 *) ac_try_echo=$ac_try;;
23486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23487 (eval "$ac_compile") 2>conftest.er1
23489 grep -v '^ *+' conftest.er1 >conftest.err
23491 cat conftest.err >&5
23492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23493 (exit $ac_status); } &&
23494 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23495 { (case "(($ac_try" in
23496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23497 *) ac_try_echo=$ac_try;;
23499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23500 (eval "$ac_try") 2>&5
23502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23503 (exit $ac_status); }; } &&
23504 { ac_try='test -s conftest.$ac_objext'
23505 { (case "(($ac_try" in
23506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23507 *) ac_try_echo=$ac_try;;
23509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23510 (eval "$ac_try") 2>&5
23512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23513 (exit $ac_status); }; }; then
23514 ba_cv_header_utime_h=yes
23516 echo "$as_me: failed program was:" >&5
23517 sed 's/^/| /' conftest.$ac_ext >&5
23519 ba_cv_header_utime_h=no
23522 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23524 { echo "$as_me:$LINENO: result: $ba_cv_header_utime_h" >&5
23525 echo "${ECHO_T}$ba_cv_header_utime_h" >&6; }
23526 test $ba_cv_header_utime_h = yes && cat >>confdefs.h <<\_ACEOF
23527 #define HAVE_UTIME_H 1
23531 { echo "$as_me:$LINENO: checking for socklen_t" >&5
23532 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
23533 if test "${ba_cv_header_socklen_t+set}" = set; then
23534 echo $ECHO_N "(cached) $ECHO_C" >&6
23536 cat >conftest.$ac_ext <<_ACEOF
23539 cat confdefs.h >>conftest.$ac_ext
23540 cat >>conftest.$ac_ext <<_ACEOF
23541 /* end confdefs.h. */
23543 #include <sys/types.h>
23544 #include <sys/socket.h>
23553 rm -f conftest.$ac_objext
23554 if { (ac_try="$ac_compile"
23555 case "(($ac_try" in
23556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23557 *) ac_try_echo=$ac_try;;
23559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23560 (eval "$ac_compile") 2>conftest.er1
23562 grep -v '^ *+' conftest.er1 >conftest.err
23564 cat conftest.err >&5
23565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23566 (exit $ac_status); } &&
23567 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23568 { (case "(($ac_try" in
23569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23570 *) ac_try_echo=$ac_try;;
23572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23573 (eval "$ac_try") 2>&5
23575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23576 (exit $ac_status); }; } &&
23577 { ac_try='test -s conftest.$ac_objext'
23578 { (case "(($ac_try" in
23579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23580 *) ac_try_echo=$ac_try;;
23582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23583 (eval "$ac_try") 2>&5
23585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23586 (exit $ac_status); }; }; then
23587 ba_cv_header_socklen_t=yes
23589 echo "$as_me: failed program was:" >&5
23590 sed 's/^/| /' conftest.$ac_ext >&5
23592 ba_cv_header_socklen_t=no
23595 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23597 { echo "$as_me:$LINENO: result: $ba_cv_header_socklen_t" >&5
23598 echo "${ECHO_T}$ba_cv_header_socklen_t" >&6; }
23599 test $ba_cv_header_socklen_t = yes && cat >>confdefs.h <<\_ACEOF
23600 #define HAVE_SOCKLEN_T 1
23604 { echo "$as_me:$LINENO: checking for bigendian" >&5
23605 echo $ECHO_N "checking for bigendian... $ECHO_C" >&6; }
23606 if test "${ba_cv_bigendian+set}" = set; then
23607 echo $ECHO_N "(cached) $ECHO_C" >&6
23609 if test "$cross_compiling" = yes; then
23612 cat >conftest.$ac_ext <<_ACEOF
23615 cat confdefs.h >>conftest.$ac_ext
23616 cat >>conftest.$ac_ext <<_ACEOF
23617 /* end confdefs.h. */
23618 main(){long a=1L; char *p=(char *)&a; exit(*p);}
23620 rm -f conftest$ac_exeext
23621 if { (ac_try="$ac_link"
23622 case "(($ac_try" in
23623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23624 *) ac_try_echo=$ac_try;;
23626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23627 (eval "$ac_link") 2>&5
23629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23630 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23631 { (case "(($ac_try" in
23632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23633 *) ac_try_echo=$ac_try;;
23635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23636 (eval "$ac_try") 2>&5
23638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23639 (exit $ac_status); }; }; then
23640 ba_cv_bigendian=yes
23642 echo "$as_me: program exited with status $ac_status" >&5
23643 echo "$as_me: failed program was:" >&5
23644 sed 's/^/| /' conftest.$ac_ext >&5
23646 ( exit $ac_status )
23649 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23654 { echo "$as_me:$LINENO: result: $ba_cv_bigendian" >&5
23655 echo "${ECHO_T}$ba_cv_bigendian" >&6; }
23656 test $ba_cv_bigendian = yes && cat >>confdefs.h <<\_ACEOF
23657 #define HAVE_BIGENDIAN 1
23662 ac_cpp='$CXXCPP $CPPFLAGS'
23663 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23664 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23665 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23668 { echo "$as_me:$LINENO: checking for typeof" >&5
23669 echo $ECHO_N "checking for typeof... $ECHO_C" >&6; }
23670 if test "${ba_cv_have_typeof+set}" = set; then
23671 echo $ECHO_N "(cached) $ECHO_C" >&6
23673 if test "$cross_compiling" = yes; then
23674 ba_cv_have_typeof=no
23676 cat >conftest.$ac_ext <<_ACEOF
23679 cat confdefs.h >>conftest.$ac_ext
23680 cat >>conftest.$ac_ext <<_ACEOF
23681 /* end confdefs.h. */
23682 main(){char *a = 0; a = (typeof a)a;}
23684 rm -f conftest$ac_exeext
23685 if { (ac_try="$ac_link"
23686 case "(($ac_try" in
23687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23688 *) ac_try_echo=$ac_try;;
23690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23691 (eval "$ac_link") 2>&5
23693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23694 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23695 { (case "(($ac_try" in
23696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23697 *) ac_try_echo=$ac_try;;
23699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23700 (eval "$ac_try") 2>&5
23702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23703 (exit $ac_status); }; }; then
23704 ba_cv_have_typeof=yes
23706 echo "$as_me: program exited with status $ac_status" >&5
23707 echo "$as_me: failed program was:" >&5
23708 sed 's/^/| /' conftest.$ac_ext >&5
23710 ( exit $ac_status )
23711 ba_cv_have_typeof=no
23713 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23718 { echo "$as_me:$LINENO: result: $ba_cv_have_typeof" >&5
23719 echo "${ECHO_T}$ba_cv_have_typeof" >&6; }
23720 test $ba_cv_have_typeof = yes &&
23721 cat >>confdefs.h <<\_ACEOF
23722 #define HAVE_TYPEOF 1
23726 ac_cpp='$CPP $CPPFLAGS'
23727 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23728 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23729 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23732 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
23733 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
23734 if test "${ac_cv_c_const+set}" = set; then
23735 echo $ECHO_N "(cached) $ECHO_C" >&6
23737 cat >conftest.$ac_ext <<_ACEOF
23740 cat confdefs.h >>conftest.$ac_ext
23741 cat >>conftest.$ac_ext <<_ACEOF
23742 /* end confdefs.h. */
23747 /* FIXME: Include the comments suggested by Paul. */
23748 #ifndef __cplusplus
23749 /* Ultrix mips cc rejects this. */
23750 typedef int charset[2];
23752 /* SunOS 4.1.1 cc rejects this. */
23753 char const *const *ccp;
23755 /* NEC SVR4.0.2 mips cc rejects this. */
23756 struct point {int x, y;};
23757 static struct point const zero = {0,0};
23758 /* AIX XL C 1.02.0.0 rejects this.
23759 It does not let you subtract one const X* pointer from another in
23760 an arm of an if-expression whose if-part is not a constant
23762 const char *g = "string";
23763 ccp = &g + (g ? g-g : 0);
23764 /* HPUX 7.0 cc rejects these. */
23767 ccp = (char const *const *) p;
23768 { /* SCO 3.2v4 cc rejects this. */
23770 char const *s = 0 ? (char *) 0 : (char const *) 0;
23775 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
23776 int x[] = {25, 17};
23777 const int *foo = &x[0];
23780 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
23781 typedef const int *iptr;
23785 { /* AIX XL C 1.02.0.0 rejects this saying
23786 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
23787 struct s { int j; const int *ap[3]; };
23788 struct s *b; b->j = 5;
23790 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
23791 const int foo = 10;
23792 if (!foo) return 0;
23794 return !x[0] && !zero.x;
23801 rm -f conftest.$ac_objext
23802 if { (ac_try="$ac_compile"
23803 case "(($ac_try" in
23804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23805 *) ac_try_echo=$ac_try;;
23807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23808 (eval "$ac_compile") 2>conftest.er1
23810 grep -v '^ *+' conftest.er1 >conftest.err
23812 cat conftest.err >&5
23813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23814 (exit $ac_status); } &&
23815 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23816 { (case "(($ac_try" in
23817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23818 *) ac_try_echo=$ac_try;;
23820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23821 (eval "$ac_try") 2>&5
23823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23824 (exit $ac_status); }; } &&
23825 { ac_try='test -s conftest.$ac_objext'
23826 { (case "(($ac_try" in
23827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23828 *) ac_try_echo=$ac_try;;
23830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23831 (eval "$ac_try") 2>&5
23833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23834 (exit $ac_status); }; }; then
23837 echo "$as_me: failed program was:" >&5
23838 sed 's/^/| /' conftest.$ac_ext >&5
23843 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23845 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
23846 echo "${ECHO_T}$ac_cv_c_const" >&6; }
23847 if test $ac_cv_c_const = no; then
23849 cat >>confdefs.h <<\_ACEOF
23857 { echo "$as_me:$LINENO: checking how to get filesystem type" >&5
23858 echo $ECHO_N "checking how to get filesystem type... $ECHO_C" >&6; }
23860 # The order of these tests is important.
23861 cat >conftest.$ac_ext <<_ACEOF
23864 cat confdefs.h >>conftest.$ac_ext
23865 cat >>conftest.$ac_ext <<_ACEOF
23866 /* end confdefs.h. */
23867 #include <sys/statvfs.h>
23868 #include <sys/fstyp.h>
23870 if { (ac_try="$ac_cpp conftest.$ac_ext"
23871 case "(($ac_try" in
23872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23873 *) ac_try_echo=$ac_try;;
23875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23876 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23878 grep -v '^ *+' conftest.er1 >conftest.err
23880 cat conftest.err >&5
23881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23882 (exit $ac_status); } >/dev/null; then
23883 if test -s conftest.err; then
23884 ac_cpp_err=$ac_c_preproc_warn_flag
23885 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23892 if test -z "$ac_cpp_err"; then
23893 cat >>confdefs.h <<\_ACEOF
23894 #define FSTYPE_STATVFS 1
23898 echo "$as_me: failed program was:" >&5
23899 sed 's/^/| /' conftest.$ac_ext >&5
23904 rm -f conftest.err conftest.$ac_ext
23905 if test $fstype = no; then
23906 cat >conftest.$ac_ext <<_ACEOF
23909 cat confdefs.h >>conftest.$ac_ext
23910 cat >>conftest.$ac_ext <<_ACEOF
23911 /* end confdefs.h. */
23912 #include <sys/statfs.h>
23913 #include <sys/fstyp.h>
23915 if { (ac_try="$ac_cpp conftest.$ac_ext"
23916 case "(($ac_try" in
23917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23918 *) ac_try_echo=$ac_try;;
23920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23921 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23923 grep -v '^ *+' conftest.er1 >conftest.err
23925 cat conftest.err >&5
23926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23927 (exit $ac_status); } >/dev/null; then
23928 if test -s conftest.err; then
23929 ac_cpp_err=$ac_c_preproc_warn_flag
23930 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23937 if test -z "$ac_cpp_err"; then
23938 cat >>confdefs.h <<\_ACEOF
23939 #define FSTYPE_USG_STATFS 1
23943 echo "$as_me: failed program was:" >&5
23944 sed 's/^/| /' conftest.$ac_ext >&5
23949 rm -f conftest.err conftest.$ac_ext
23951 if test $fstype = no; then
23952 cat >conftest.$ac_ext <<_ACEOF
23955 cat confdefs.h >>conftest.$ac_ext
23956 cat >>conftest.$ac_ext <<_ACEOF
23957 /* end confdefs.h. */
23958 #include <sys/statfs.h>
23959 #include <sys/vmount.h>
23961 if { (ac_try="$ac_cpp conftest.$ac_ext"
23962 case "(($ac_try" in
23963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23964 *) ac_try_echo=$ac_try;;
23966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23967 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23969 grep -v '^ *+' conftest.er1 >conftest.err
23971 cat conftest.err >&5
23972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23973 (exit $ac_status); } >/dev/null; then
23974 if test -s conftest.err; then
23975 ac_cpp_err=$ac_c_preproc_warn_flag
23976 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23983 if test -z "$ac_cpp_err"; then
23984 cat >>confdefs.h <<\_ACEOF
23985 #define FSTYPE_AIX_STATFS 1
23989 echo "$as_me: failed program was:" >&5
23990 sed 's/^/| /' conftest.$ac_ext >&5
23995 rm -f conftest.err conftest.$ac_ext
23997 if test $fstype = no; then
23998 cat >conftest.$ac_ext <<_ACEOF
24001 cat confdefs.h >>conftest.$ac_ext
24002 cat >>conftest.$ac_ext <<_ACEOF
24003 /* end confdefs.h. */
24004 #include <mntent.h>
24006 if { (ac_try="$ac_cpp conftest.$ac_ext"
24007 case "(($ac_try" in
24008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24009 *) ac_try_echo=$ac_try;;
24011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24012 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24014 grep -v '^ *+' conftest.er1 >conftest.err
24016 cat conftest.err >&5
24017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24018 (exit $ac_status); } >/dev/null; then
24019 if test -s conftest.err; then
24020 ac_cpp_err=$ac_c_preproc_warn_flag
24021 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
24028 if test -z "$ac_cpp_err"; then
24029 cat >>confdefs.h <<\_ACEOF
24030 #define FSTYPE_MNTENT 1
24034 echo "$as_me: failed program was:" >&5
24035 sed 's/^/| /' conftest.$ac_ext >&5
24040 rm -f conftest.err conftest.$ac_ext
24042 if test $fstype = no; then
24043 cat >conftest.$ac_ext <<_ACEOF
24046 cat confdefs.h >>conftest.$ac_ext
24047 cat >>conftest.$ac_ext <<_ACEOF
24048 /* end confdefs.h. */
24049 #include <sys/mount.h>
24052 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24053 $EGREP "f_type;" >/dev/null 2>&1; then
24054 cat >>confdefs.h <<\_ACEOF
24055 #define FSTYPE_STATFS 1
24062 if test $fstype = no; then
24063 cat >conftest.$ac_ext <<_ACEOF
24066 cat confdefs.h >>conftest.$ac_ext
24067 cat >>conftest.$ac_ext <<_ACEOF
24068 /* end confdefs.h. */
24069 #include <sys/mount.h>
24070 #include <sys/fs_types.h>
24072 if { (ac_try="$ac_cpp conftest.$ac_ext"
24073 case "(($ac_try" in
24074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24075 *) ac_try_echo=$ac_try;;
24077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24078 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24080 grep -v '^ *+' conftest.er1 >conftest.err
24082 cat conftest.err >&5
24083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24084 (exit $ac_status); } >/dev/null; then
24085 if test -s conftest.err; then
24086 ac_cpp_err=$ac_c_preproc_warn_flag
24087 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
24094 if test -z "$ac_cpp_err"; then
24095 cat >>confdefs.h <<\_ACEOF
24096 #define FSTYPE_GETMNT 1
24100 echo "$as_me: failed program was:" >&5
24101 sed 's/^/| /' conftest.$ac_ext >&5
24106 rm -f conftest.err conftest.$ac_ext
24108 { echo "$as_me:$LINENO: result: $fstype" >&5
24109 echo "${ECHO_T}$fstype" >&6; }
24111 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
24112 { echo "$as_me:$LINENO: checking for sys/statvfs.h" >&5
24113 echo $ECHO_N "checking for sys/statvfs.h... $ECHO_C" >&6; }
24114 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
24115 echo $ECHO_N "(cached) $ECHO_C" >&6
24117 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_statvfs_h" >&5
24118 echo "${ECHO_T}$ac_cv_header_sys_statvfs_h" >&6; }
24120 # Is the header compilable?
24121 { echo "$as_me:$LINENO: checking sys/statvfs.h usability" >&5
24122 echo $ECHO_N "checking sys/statvfs.h usability... $ECHO_C" >&6; }
24123 cat >conftest.$ac_ext <<_ACEOF
24126 cat confdefs.h >>conftest.$ac_ext
24127 cat >>conftest.$ac_ext <<_ACEOF
24128 /* end confdefs.h. */
24129 $ac_includes_default
24130 #include <sys/statvfs.h>
24132 rm -f conftest.$ac_objext
24133 if { (ac_try="$ac_compile"
24134 case "(($ac_try" in
24135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24136 *) ac_try_echo=$ac_try;;
24138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24139 (eval "$ac_compile") 2>conftest.er1
24141 grep -v '^ *+' conftest.er1 >conftest.err
24143 cat conftest.err >&5
24144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24145 (exit $ac_status); } &&
24146 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24147 { (case "(($ac_try" in
24148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24149 *) ac_try_echo=$ac_try;;
24151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24152 (eval "$ac_try") 2>&5
24154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24155 (exit $ac_status); }; } &&
24156 { ac_try='test -s conftest.$ac_objext'
24157 { (case "(($ac_try" in
24158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24159 *) ac_try_echo=$ac_try;;
24161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24162 (eval "$ac_try") 2>&5
24164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24165 (exit $ac_status); }; }; then
24166 ac_header_compiler=yes
24168 echo "$as_me: failed program was:" >&5
24169 sed 's/^/| /' conftest.$ac_ext >&5
24171 ac_header_compiler=no
24174 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24175 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24176 echo "${ECHO_T}$ac_header_compiler" >&6; }
24178 # Is the header present?
24179 { echo "$as_me:$LINENO: checking sys/statvfs.h presence" >&5
24180 echo $ECHO_N "checking sys/statvfs.h presence... $ECHO_C" >&6; }
24181 cat >conftest.$ac_ext <<_ACEOF
24184 cat confdefs.h >>conftest.$ac_ext
24185 cat >>conftest.$ac_ext <<_ACEOF
24186 /* end confdefs.h. */
24187 #include <sys/statvfs.h>
24189 if { (ac_try="$ac_cpp conftest.$ac_ext"
24190 case "(($ac_try" in
24191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24192 *) ac_try_echo=$ac_try;;
24194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24195 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24197 grep -v '^ *+' conftest.er1 >conftest.err
24199 cat conftest.err >&5
24200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24201 (exit $ac_status); } >/dev/null; then
24202 if test -s conftest.err; then
24203 ac_cpp_err=$ac_c_preproc_warn_flag
24204 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
24211 if test -z "$ac_cpp_err"; then
24212 ac_header_preproc=yes
24214 echo "$as_me: failed program was:" >&5
24215 sed 's/^/| /' conftest.$ac_ext >&5
24217 ac_header_preproc=no
24220 rm -f conftest.err conftest.$ac_ext
24221 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24222 echo "${ECHO_T}$ac_header_preproc" >&6; }
24224 # So? What about this header?
24225 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24227 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: accepted by the compiler, rejected by the preprocessor!" >&5
24228 echo "$as_me: WARNING: sys/statvfs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24229 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: proceeding with the compiler's result" >&5
24230 echo "$as_me: WARNING: sys/statvfs.h: proceeding with the compiler's result" >&2;}
24231 ac_header_preproc=yes
24234 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: present but cannot be compiled" >&5
24235 echo "$as_me: WARNING: sys/statvfs.h: present but cannot be compiled" >&2;}
24236 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: check for missing prerequisite headers?" >&5
24237 echo "$as_me: WARNING: sys/statvfs.h: check for missing prerequisite headers?" >&2;}
24238 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: see the Autoconf documentation" >&5
24239 echo "$as_me: WARNING: sys/statvfs.h: see the Autoconf documentation" >&2;}
24240 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: section \"Present But Cannot Be Compiled\"" >&5
24241 echo "$as_me: WARNING: sys/statvfs.h: section \"Present But Cannot Be Compiled\"" >&2;}
24242 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: proceeding with the preprocessor's result" >&5
24243 echo "$as_me: WARNING: sys/statvfs.h: proceeding with the preprocessor's result" >&2;}
24244 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: in the future, the compiler will take precedence" >&5
24245 echo "$as_me: WARNING: sys/statvfs.h: in the future, the compiler will take precedence" >&2;}
24249 { echo "$as_me:$LINENO: checking for sys/statvfs.h" >&5
24250 echo $ECHO_N "checking for sys/statvfs.h... $ECHO_C" >&6; }
24251 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
24252 echo $ECHO_N "(cached) $ECHO_C" >&6
24254 ac_cv_header_sys_statvfs_h=$ac_header_preproc
24256 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_statvfs_h" >&5
24257 echo "${ECHO_T}$ac_cv_header_sys_statvfs_h" >&6; }
24260 if test $ac_cv_header_sys_statvfs_h = yes; then
24262 cat >>confdefs.h <<\_ACEOF
24263 #define HAVE_SYS_STATVFS_H 1
24270 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
24271 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
24272 if test "${ac_cv_type_signal+set}" = set; then
24273 echo $ECHO_N "(cached) $ECHO_C" >&6
24275 cat >conftest.$ac_ext <<_ACEOF
24278 cat confdefs.h >>conftest.$ac_ext
24279 cat >>conftest.$ac_ext <<_ACEOF
24280 /* end confdefs.h. */
24281 #include <sys/types.h>
24282 #include <signal.h>
24287 return *(signal (0, 0)) (0) == 1;
24292 rm -f conftest.$ac_objext
24293 if { (ac_try="$ac_compile"
24294 case "(($ac_try" in
24295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24296 *) ac_try_echo=$ac_try;;
24298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24299 (eval "$ac_compile") 2>conftest.er1
24301 grep -v '^ *+' conftest.er1 >conftest.err
24303 cat conftest.err >&5
24304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24305 (exit $ac_status); } &&
24306 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24307 { (case "(($ac_try" in
24308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24309 *) ac_try_echo=$ac_try;;
24311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24312 (eval "$ac_try") 2>&5
24314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24315 (exit $ac_status); }; } &&
24316 { ac_try='test -s conftest.$ac_objext'
24317 { (case "(($ac_try" in
24318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24319 *) ac_try_echo=$ac_try;;
24321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24322 (eval "$ac_try") 2>&5
24324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24325 (exit $ac_status); }; }; then
24326 ac_cv_type_signal=int
24328 echo "$as_me: failed program was:" >&5
24329 sed 's/^/| /' conftest.$ac_ext >&5
24331 ac_cv_type_signal=void
24334 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24336 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
24337 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
24339 cat >>confdefs.h <<_ACEOF
24340 #define RETSIGTYPE $ac_cv_type_signal
24345 { echo "$as_me:$LINENO: checking for type of signal functions" >&5
24346 echo $ECHO_N "checking for type of signal functions... $ECHO_C" >&6; }
24347 if test "${bash_cv_signal_vintage+set}" = set; then
24348 echo $ECHO_N "(cached) $ECHO_C" >&6
24351 cat >conftest.$ac_ext <<_ACEOF
24354 cat confdefs.h >>conftest.$ac_ext
24355 cat >>conftest.$ac_ext <<_ACEOF
24356 /* end confdefs.h. */
24357 #include <signal.h>
24363 struct sigaction sa;
24364 sigemptyset(&ss); sigsuspend(&ss);
24365 sigaction(SIGINT, &sa, (struct sigaction *) 0);
24366 sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
24372 rm -f conftest.$ac_objext conftest$ac_exeext
24373 if { (ac_try="$ac_link"
24374 case "(($ac_try" in
24375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24376 *) ac_try_echo=$ac_try;;
24378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24379 (eval "$ac_link") 2>conftest.er1
24381 grep -v '^ *+' conftest.er1 >conftest.err
24383 cat conftest.err >&5
24384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24385 (exit $ac_status); } &&
24386 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24387 { (case "(($ac_try" in
24388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24389 *) ac_try_echo=$ac_try;;
24391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24392 (eval "$ac_try") 2>&5
24394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24395 (exit $ac_status); }; } &&
24396 { ac_try='test -s conftest$ac_exeext'
24397 { (case "(($ac_try" in
24398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24399 *) ac_try_echo=$ac_try;;
24401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24402 (eval "$ac_try") 2>&5
24404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24405 (exit $ac_status); }; }; then
24406 bash_cv_signal_vintage="posix"
24408 echo "$as_me: failed program was:" >&5
24409 sed 's/^/| /' conftest.$ac_ext >&5
24412 cat >conftest.$ac_ext <<_ACEOF
24415 cat confdefs.h >>conftest.$ac_ext
24416 cat >>conftest.$ac_ext <<_ACEOF
24417 /* end confdefs.h. */
24418 #include <signal.h>
24423 int mask = sigmask(SIGINT);
24424 sigsetmask(mask); sigblock(mask); sigpause(mask);
24430 rm -f conftest.$ac_objext conftest$ac_exeext
24431 if { (ac_try="$ac_link"
24432 case "(($ac_try" in
24433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24434 *) ac_try_echo=$ac_try;;
24436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24437 (eval "$ac_link") 2>conftest.er1
24439 grep -v '^ *+' conftest.er1 >conftest.err
24441 cat conftest.err >&5
24442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24443 (exit $ac_status); } &&
24444 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24445 { (case "(($ac_try" in
24446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24447 *) ac_try_echo=$ac_try;;
24449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24450 (eval "$ac_try") 2>&5
24452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24453 (exit $ac_status); }; } &&
24454 { ac_try='test -s conftest$ac_exeext'
24455 { (case "(($ac_try" in
24456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24457 *) ac_try_echo=$ac_try;;
24459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24460 (eval "$ac_try") 2>&5
24462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24463 (exit $ac_status); }; }; then
24464 bash_cv_signal_vintage="4.2bsd"
24466 echo "$as_me: failed program was:" >&5
24467 sed 's/^/| /' conftest.$ac_ext >&5
24470 cat >conftest.$ac_ext <<_ACEOF
24473 cat confdefs.h >>conftest.$ac_ext
24474 cat >>conftest.$ac_ext <<_ACEOF
24475 /* end confdefs.h. */
24477 #include <signal.h>
24478 RETSIGTYPE foo() { }
24483 int mask = sigmask(SIGINT);
24484 sigset(SIGINT, foo); sigrelse(SIGINT);
24485 sighold(SIGINT); sigpause(SIGINT);
24491 rm -f conftest.$ac_objext conftest$ac_exeext
24492 if { (ac_try="$ac_link"
24493 case "(($ac_try" in
24494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24495 *) ac_try_echo=$ac_try;;
24497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24498 (eval "$ac_link") 2>conftest.er1
24500 grep -v '^ *+' conftest.er1 >conftest.err
24502 cat conftest.err >&5
24503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24504 (exit $ac_status); } &&
24505 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24506 { (case "(($ac_try" in
24507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24508 *) ac_try_echo=$ac_try;;
24510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24511 (eval "$ac_try") 2>&5
24513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24514 (exit $ac_status); }; } &&
24515 { ac_try='test -s conftest$ac_exeext'
24516 { (case "(($ac_try" in
24517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24518 *) ac_try_echo=$ac_try;;
24520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24521 (eval "$ac_try") 2>&5
24523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24524 (exit $ac_status); }; }; then
24525 bash_cv_signal_vintage="svr3"
24527 echo "$as_me: failed program was:" >&5
24528 sed 's/^/| /' conftest.$ac_ext >&5
24530 bash_cv_signal_vintage="v7"
24534 rm -f core conftest.err conftest.$ac_objext \
24535 conftest$ac_exeext conftest.$ac_ext
24539 rm -f core conftest.err conftest.$ac_objext \
24540 conftest$ac_exeext conftest.$ac_ext
24544 rm -f core conftest.err conftest.$ac_objext \
24545 conftest$ac_exeext conftest.$ac_ext
24549 { echo "$as_me:$LINENO: result: $bash_cv_signal_vintage" >&5
24550 echo "${ECHO_T}$bash_cv_signal_vintage" >&6; }
24551 if test "$bash_cv_signal_vintage" = "posix"; then
24552 cat >>confdefs.h <<\_ACEOF
24553 #define HAVE_POSIX_SIGNALS 1
24556 elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
24557 cat >>confdefs.h <<\_ACEOF
24558 #define HAVE_BSD_SIGNALS 1
24561 elif test "$bash_cv_signal_vintage" = "svr3"; then
24562 cat >>confdefs.h <<\_ACEOF
24563 #define HAVE_USG_SIGHOLD 1
24568 { echo "$as_me:$LINENO: checking for mode_t" >&5
24569 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
24570 if test "${ac_cv_type_mode_t+set}" = set; then
24571 echo $ECHO_N "(cached) $ECHO_C" >&6
24573 cat >conftest.$ac_ext <<_ACEOF
24576 cat confdefs.h >>conftest.$ac_ext
24577 cat >>conftest.$ac_ext <<_ACEOF
24578 /* end confdefs.h. */
24579 $ac_includes_default
24580 typedef mode_t ac__type_new_;
24584 if ((ac__type_new_ *) 0)
24586 if (sizeof (ac__type_new_))
24592 rm -f conftest.$ac_objext
24593 if { (ac_try="$ac_compile"
24594 case "(($ac_try" in
24595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24596 *) ac_try_echo=$ac_try;;
24598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24599 (eval "$ac_compile") 2>conftest.er1
24601 grep -v '^ *+' conftest.er1 >conftest.err
24603 cat conftest.err >&5
24604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24605 (exit $ac_status); } &&
24606 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24607 { (case "(($ac_try" in
24608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24609 *) ac_try_echo=$ac_try;;
24611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24612 (eval "$ac_try") 2>&5
24614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24615 (exit $ac_status); }; } &&
24616 { ac_try='test -s conftest.$ac_objext'
24617 { (case "(($ac_try" in
24618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24619 *) ac_try_echo=$ac_try;;
24621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24622 (eval "$ac_try") 2>&5
24624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24625 (exit $ac_status); }; }; then
24626 ac_cv_type_mode_t=yes
24628 echo "$as_me: failed program was:" >&5
24629 sed 's/^/| /' conftest.$ac_ext >&5
24631 ac_cv_type_mode_t=no
24634 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24636 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
24637 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
24638 if test $ac_cv_type_mode_t = yes; then
24642 cat >>confdefs.h <<_ACEOF
24648 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
24649 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
24650 if test "${ac_cv_type_uid_t+set}" = set; then
24651 echo $ECHO_N "(cached) $ECHO_C" >&6
24653 cat >conftest.$ac_ext <<_ACEOF
24656 cat confdefs.h >>conftest.$ac_ext
24657 cat >>conftest.$ac_ext <<_ACEOF
24658 /* end confdefs.h. */
24659 #include <sys/types.h>
24662 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24663 $EGREP "uid_t" >/dev/null 2>&1; then
24664 ac_cv_type_uid_t=yes
24666 ac_cv_type_uid_t=no
24671 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
24672 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
24673 if test $ac_cv_type_uid_t = no; then
24675 cat >>confdefs.h <<\_ACEOF
24680 cat >>confdefs.h <<\_ACEOF
24686 { echo "$as_me:$LINENO: checking for size_t" >&5
24687 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
24688 if test "${ac_cv_type_size_t+set}" = set; then
24689 echo $ECHO_N "(cached) $ECHO_C" >&6
24691 cat >conftest.$ac_ext <<_ACEOF
24694 cat confdefs.h >>conftest.$ac_ext
24695 cat >>conftest.$ac_ext <<_ACEOF
24696 /* end confdefs.h. */
24697 $ac_includes_default
24698 typedef size_t ac__type_new_;
24702 if ((ac__type_new_ *) 0)
24704 if (sizeof (ac__type_new_))
24710 rm -f conftest.$ac_objext
24711 if { (ac_try="$ac_compile"
24712 case "(($ac_try" in
24713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24714 *) ac_try_echo=$ac_try;;
24716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24717 (eval "$ac_compile") 2>conftest.er1
24719 grep -v '^ *+' conftest.er1 >conftest.err
24721 cat conftest.err >&5
24722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24723 (exit $ac_status); } &&
24724 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24725 { (case "(($ac_try" in
24726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24727 *) ac_try_echo=$ac_try;;
24729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24730 (eval "$ac_try") 2>&5
24732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24733 (exit $ac_status); }; } &&
24734 { ac_try='test -s conftest.$ac_objext'
24735 { (case "(($ac_try" in
24736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24737 *) ac_try_echo=$ac_try;;
24739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24740 (eval "$ac_try") 2>&5
24742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24743 (exit $ac_status); }; }; then
24744 ac_cv_type_size_t=yes
24746 echo "$as_me: failed program was:" >&5
24747 sed 's/^/| /' conftest.$ac_ext >&5
24749 ac_cv_type_size_t=no
24752 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24754 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
24755 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
24756 if test $ac_cv_type_size_t = yes; then
24760 cat >>confdefs.h <<_ACEOF
24761 #define size_t unsigned int
24766 { echo "$as_me:$LINENO: checking for pid_t" >&5
24767 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
24768 if test "${ac_cv_type_pid_t+set}" = set; then
24769 echo $ECHO_N "(cached) $ECHO_C" >&6
24771 cat >conftest.$ac_ext <<_ACEOF
24774 cat confdefs.h >>conftest.$ac_ext
24775 cat >>conftest.$ac_ext <<_ACEOF
24776 /* end confdefs.h. */
24777 $ac_includes_default
24778 typedef pid_t ac__type_new_;
24782 if ((ac__type_new_ *) 0)
24784 if (sizeof (ac__type_new_))
24790 rm -f conftest.$ac_objext
24791 if { (ac_try="$ac_compile"
24792 case "(($ac_try" in
24793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24794 *) ac_try_echo=$ac_try;;
24796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24797 (eval "$ac_compile") 2>conftest.er1
24799 grep -v '^ *+' conftest.er1 >conftest.err
24801 cat conftest.err >&5
24802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24803 (exit $ac_status); } &&
24804 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24805 { (case "(($ac_try" in
24806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24807 *) ac_try_echo=$ac_try;;
24809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24810 (eval "$ac_try") 2>&5
24812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24813 (exit $ac_status); }; } &&
24814 { ac_try='test -s conftest.$ac_objext'
24815 { (case "(($ac_try" in
24816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24817 *) ac_try_echo=$ac_try;;
24819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24820 (eval "$ac_try") 2>&5
24822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24823 (exit $ac_status); }; }; then
24824 ac_cv_type_pid_t=yes
24826 echo "$as_me: failed program was:" >&5
24827 sed 's/^/| /' conftest.$ac_ext >&5
24829 ac_cv_type_pid_t=no
24832 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24834 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
24835 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
24836 if test $ac_cv_type_pid_t = yes; then
24840 cat >>confdefs.h <<_ACEOF
24846 { echo "$as_me:$LINENO: checking for off_t" >&5
24847 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
24848 if test "${ac_cv_type_off_t+set}" = set; then
24849 echo $ECHO_N "(cached) $ECHO_C" >&6
24851 cat >conftest.$ac_ext <<_ACEOF
24854 cat confdefs.h >>conftest.$ac_ext
24855 cat >>conftest.$ac_ext <<_ACEOF
24856 /* end confdefs.h. */
24857 $ac_includes_default
24858 typedef off_t ac__type_new_;
24862 if ((ac__type_new_ *) 0)
24864 if (sizeof (ac__type_new_))
24870 rm -f conftest.$ac_objext
24871 if { (ac_try="$ac_compile"
24872 case "(($ac_try" in
24873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24874 *) ac_try_echo=$ac_try;;
24876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24877 (eval "$ac_compile") 2>conftest.er1
24879 grep -v '^ *+' conftest.er1 >conftest.err
24881 cat conftest.err >&5
24882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24883 (exit $ac_status); } &&
24884 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24885 { (case "(($ac_try" in
24886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24887 *) ac_try_echo=$ac_try;;
24889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24890 (eval "$ac_try") 2>&5
24892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24893 (exit $ac_status); }; } &&
24894 { ac_try='test -s conftest.$ac_objext'
24895 { (case "(($ac_try" in
24896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24897 *) ac_try_echo=$ac_try;;
24899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24900 (eval "$ac_try") 2>&5
24902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24903 (exit $ac_status); }; }; then
24904 ac_cv_type_off_t=yes
24906 echo "$as_me: failed program was:" >&5
24907 sed 's/^/| /' conftest.$ac_ext >&5
24909 ac_cv_type_off_t=no
24912 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24914 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
24915 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
24916 if test $ac_cv_type_off_t = yes; then
24920 cat >>confdefs.h <<_ACEOF
24921 #define off_t long int
24926 { echo "$as_me:$LINENO: checking for ino_t" >&5
24927 echo $ECHO_N "checking for ino_t... $ECHO_C" >&6; }
24928 if test "${ac_cv_type_ino_t+set}" = set; then
24929 echo $ECHO_N "(cached) $ECHO_C" >&6
24931 cat >conftest.$ac_ext <<_ACEOF
24934 cat confdefs.h >>conftest.$ac_ext
24935 cat >>conftest.$ac_ext <<_ACEOF
24936 /* end confdefs.h. */
24937 $ac_includes_default
24938 typedef ino_t ac__type_new_;
24942 if ((ac__type_new_ *) 0)
24944 if (sizeof (ac__type_new_))
24950 rm -f conftest.$ac_objext
24951 if { (ac_try="$ac_compile"
24952 case "(($ac_try" in
24953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24954 *) ac_try_echo=$ac_try;;
24956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24957 (eval "$ac_compile") 2>conftest.er1
24959 grep -v '^ *+' conftest.er1 >conftest.err
24961 cat conftest.err >&5
24962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24963 (exit $ac_status); } &&
24964 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24965 { (case "(($ac_try" in
24966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24967 *) ac_try_echo=$ac_try;;
24969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24970 (eval "$ac_try") 2>&5
24972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24973 (exit $ac_status); }; } &&
24974 { ac_try='test -s conftest.$ac_objext'
24975 { (case "(($ac_try" in
24976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24977 *) ac_try_echo=$ac_try;;
24979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24980 (eval "$ac_try") 2>&5
24982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24983 (exit $ac_status); }; }; then
24984 ac_cv_type_ino_t=yes
24986 echo "$as_me: failed program was:" >&5
24987 sed 's/^/| /' conftest.$ac_ext >&5
24989 ac_cv_type_ino_t=no
24992 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24994 { echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
24995 echo "${ECHO_T}$ac_cv_type_ino_t" >&6; }
24996 if test $ac_cv_type_ino_t = yes; then
25000 cat >>confdefs.h <<_ACEOF
25001 #define ino_t unsigned long
25006 { echo "$as_me:$LINENO: checking for dev_t" >&5
25007 echo $ECHO_N "checking for dev_t... $ECHO_C" >&6; }
25008 if test "${ac_cv_type_dev_t+set}" = set; then
25009 echo $ECHO_N "(cached) $ECHO_C" >&6
25011 cat >conftest.$ac_ext <<_ACEOF
25014 cat confdefs.h >>conftest.$ac_ext
25015 cat >>conftest.$ac_ext <<_ACEOF
25016 /* end confdefs.h. */
25017 $ac_includes_default
25018 typedef dev_t ac__type_new_;
25022 if ((ac__type_new_ *) 0)
25024 if (sizeof (ac__type_new_))
25030 rm -f conftest.$ac_objext
25031 if { (ac_try="$ac_compile"
25032 case "(($ac_try" in
25033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25034 *) ac_try_echo=$ac_try;;
25036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25037 (eval "$ac_compile") 2>conftest.er1
25039 grep -v '^ *+' conftest.er1 >conftest.err
25041 cat conftest.err >&5
25042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25043 (exit $ac_status); } &&
25044 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25045 { (case "(($ac_try" in
25046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25047 *) ac_try_echo=$ac_try;;
25049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25050 (eval "$ac_try") 2>&5
25052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25053 (exit $ac_status); }; } &&
25054 { ac_try='test -s conftest.$ac_objext'
25055 { (case "(($ac_try" in
25056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25057 *) ac_try_echo=$ac_try;;
25059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25060 (eval "$ac_try") 2>&5
25062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25063 (exit $ac_status); }; }; then
25064 ac_cv_type_dev_t=yes
25066 echo "$as_me: failed program was:" >&5
25067 sed 's/^/| /' conftest.$ac_ext >&5
25069 ac_cv_type_dev_t=no
25072 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25074 { echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5
25075 echo "${ECHO_T}$ac_cv_type_dev_t" >&6; }
25076 if test $ac_cv_type_dev_t = yes; then
25080 cat >>confdefs.h <<_ACEOF
25081 #define dev_t unsigned long
25086 { echo "$as_me:$LINENO: checking for daddr_t" >&5
25087 echo $ECHO_N "checking for daddr_t... $ECHO_C" >&6; }
25088 if test "${ac_cv_type_daddr_t+set}" = set; then
25089 echo $ECHO_N "(cached) $ECHO_C" >&6
25091 cat >conftest.$ac_ext <<_ACEOF
25094 cat confdefs.h >>conftest.$ac_ext
25095 cat >>conftest.$ac_ext <<_ACEOF
25096 /* end confdefs.h. */
25097 $ac_includes_default
25098 typedef daddr_t ac__type_new_;
25102 if ((ac__type_new_ *) 0)
25104 if (sizeof (ac__type_new_))
25110 rm -f conftest.$ac_objext
25111 if { (ac_try="$ac_compile"
25112 case "(($ac_try" in
25113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25114 *) ac_try_echo=$ac_try;;
25116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25117 (eval "$ac_compile") 2>conftest.er1
25119 grep -v '^ *+' conftest.er1 >conftest.err
25121 cat conftest.err >&5
25122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25123 (exit $ac_status); } &&
25124 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25125 { (case "(($ac_try" in
25126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25127 *) ac_try_echo=$ac_try;;
25129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25130 (eval "$ac_try") 2>&5
25132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25133 (exit $ac_status); }; } &&
25134 { ac_try='test -s conftest.$ac_objext'
25135 { (case "(($ac_try" in
25136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25137 *) ac_try_echo=$ac_try;;
25139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25140 (eval "$ac_try") 2>&5
25142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25143 (exit $ac_status); }; }; then
25144 ac_cv_type_daddr_t=yes
25146 echo "$as_me: failed program was:" >&5
25147 sed 's/^/| /' conftest.$ac_ext >&5
25149 ac_cv_type_daddr_t=no
25152 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25154 { echo "$as_me:$LINENO: result: $ac_cv_type_daddr_t" >&5
25155 echo "${ECHO_T}$ac_cv_type_daddr_t" >&6; }
25156 if test $ac_cv_type_daddr_t = yes; then
25160 cat >>confdefs.h <<_ACEOF
25161 #define daddr_t long
25166 { echo "$as_me:$LINENO: checking for major_t" >&5
25167 echo $ECHO_N "checking for major_t... $ECHO_C" >&6; }
25168 if test "${ac_cv_type_major_t+set}" = set; then
25169 echo $ECHO_N "(cached) $ECHO_C" >&6
25171 cat >conftest.$ac_ext <<_ACEOF
25174 cat confdefs.h >>conftest.$ac_ext
25175 cat >>conftest.$ac_ext <<_ACEOF
25176 /* end confdefs.h. */
25177 $ac_includes_default
25178 typedef major_t ac__type_new_;
25182 if ((ac__type_new_ *) 0)
25184 if (sizeof (ac__type_new_))
25190 rm -f conftest.$ac_objext
25191 if { (ac_try="$ac_compile"
25192 case "(($ac_try" in
25193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25194 *) ac_try_echo=$ac_try;;
25196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25197 (eval "$ac_compile") 2>conftest.er1
25199 grep -v '^ *+' conftest.er1 >conftest.err
25201 cat conftest.err >&5
25202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25203 (exit $ac_status); } &&
25204 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25205 { (case "(($ac_try" in
25206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25207 *) ac_try_echo=$ac_try;;
25209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25210 (eval "$ac_try") 2>&5
25212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25213 (exit $ac_status); }; } &&
25214 { ac_try='test -s conftest.$ac_objext'
25215 { (case "(($ac_try" in
25216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25217 *) ac_try_echo=$ac_try;;
25219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25220 (eval "$ac_try") 2>&5
25222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25223 (exit $ac_status); }; }; then
25224 ac_cv_type_major_t=yes
25226 echo "$as_me: failed program was:" >&5
25227 sed 's/^/| /' conftest.$ac_ext >&5
25229 ac_cv_type_major_t=no
25232 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25234 { echo "$as_me:$LINENO: result: $ac_cv_type_major_t" >&5
25235 echo "${ECHO_T}$ac_cv_type_major_t" >&6; }
25236 if test $ac_cv_type_major_t = yes; then
25240 cat >>confdefs.h <<_ACEOF
25241 #define major_t int
25246 { echo "$as_me:$LINENO: checking for minor_t" >&5
25247 echo $ECHO_N "checking for minor_t... $ECHO_C" >&6; }
25248 if test "${ac_cv_type_minor_t+set}" = set; then
25249 echo $ECHO_N "(cached) $ECHO_C" >&6
25251 cat >conftest.$ac_ext <<_ACEOF
25254 cat confdefs.h >>conftest.$ac_ext
25255 cat >>conftest.$ac_ext <<_ACEOF
25256 /* end confdefs.h. */
25257 $ac_includes_default
25258 typedef minor_t ac__type_new_;
25262 if ((ac__type_new_ *) 0)
25264 if (sizeof (ac__type_new_))
25270 rm -f conftest.$ac_objext
25271 if { (ac_try="$ac_compile"
25272 case "(($ac_try" in
25273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25274 *) ac_try_echo=$ac_try;;
25276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25277 (eval "$ac_compile") 2>conftest.er1
25279 grep -v '^ *+' conftest.er1 >conftest.err
25281 cat conftest.err >&5
25282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25283 (exit $ac_status); } &&
25284 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25285 { (case "(($ac_try" in
25286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25287 *) ac_try_echo=$ac_try;;
25289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25290 (eval "$ac_try") 2>&5
25292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25293 (exit $ac_status); }; } &&
25294 { ac_try='test -s conftest.$ac_objext'
25295 { (case "(($ac_try" in
25296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25297 *) ac_try_echo=$ac_try;;
25299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25300 (eval "$ac_try") 2>&5
25302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25303 (exit $ac_status); }; }; then
25304 ac_cv_type_minor_t=yes
25306 echo "$as_me: failed program was:" >&5
25307 sed 's/^/| /' conftest.$ac_ext >&5
25309 ac_cv_type_minor_t=no
25312 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25314 { echo "$as_me:$LINENO: result: $ac_cv_type_minor_t" >&5
25315 echo "${ECHO_T}$ac_cv_type_minor_t" >&6; }
25316 if test $ac_cv_type_minor_t = yes; then
25320 cat >>confdefs.h <<_ACEOF
25321 #define minor_t int
25326 { echo "$as_me:$LINENO: checking for ssize_t" >&5
25327 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
25328 if test "${ac_cv_type_ssize_t+set}" = set; then
25329 echo $ECHO_N "(cached) $ECHO_C" >&6
25331 cat >conftest.$ac_ext <<_ACEOF
25334 cat confdefs.h >>conftest.$ac_ext
25335 cat >>conftest.$ac_ext <<_ACEOF
25336 /* end confdefs.h. */
25337 $ac_includes_default
25338 typedef ssize_t ac__type_new_;
25342 if ((ac__type_new_ *) 0)
25344 if (sizeof (ac__type_new_))
25350 rm -f conftest.$ac_objext
25351 if { (ac_try="$ac_compile"
25352 case "(($ac_try" in
25353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25354 *) ac_try_echo=$ac_try;;
25356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25357 (eval "$ac_compile") 2>conftest.er1
25359 grep -v '^ *+' conftest.er1 >conftest.err
25361 cat conftest.err >&5
25362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25363 (exit $ac_status); } &&
25364 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25365 { (case "(($ac_try" in
25366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25367 *) ac_try_echo=$ac_try;;
25369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25370 (eval "$ac_try") 2>&5
25372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25373 (exit $ac_status); }; } &&
25374 { ac_try='test -s conftest.$ac_objext'
25375 { (case "(($ac_try" in
25376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25377 *) ac_try_echo=$ac_try;;
25379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25380 (eval "$ac_try") 2>&5
25382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25383 (exit $ac_status); }; }; then
25384 ac_cv_type_ssize_t=yes
25386 echo "$as_me: failed program was:" >&5
25387 sed 's/^/| /' conftest.$ac_ext >&5
25389 ac_cv_type_ssize_t=no
25392 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25394 { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
25395 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
25396 if test $ac_cv_type_ssize_t = yes; then
25400 cat >>confdefs.h <<_ACEOF
25401 #define ssize_t int
25406 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
25407 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
25408 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
25409 echo $ECHO_N "(cached) $ECHO_C" >&6
25411 cat >conftest.$ac_ext <<_ACEOF
25414 cat confdefs.h >>conftest.$ac_ext
25415 cat >>conftest.$ac_ext <<_ACEOF
25416 /* end confdefs.h. */
25417 $ac_includes_default
25421 static struct stat ac_aggr;
25422 if (ac_aggr.st_blocks)
25428 rm -f conftest.$ac_objext
25429 if { (ac_try="$ac_compile"
25430 case "(($ac_try" in
25431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25432 *) ac_try_echo=$ac_try;;
25434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25435 (eval "$ac_compile") 2>conftest.er1
25437 grep -v '^ *+' conftest.er1 >conftest.err
25439 cat conftest.err >&5
25440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25441 (exit $ac_status); } &&
25442 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25443 { (case "(($ac_try" in
25444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25445 *) ac_try_echo=$ac_try;;
25447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25448 (eval "$ac_try") 2>&5
25450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25451 (exit $ac_status); }; } &&
25452 { ac_try='test -s conftest.$ac_objext'
25453 { (case "(($ac_try" in
25454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25455 *) ac_try_echo=$ac_try;;
25457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25458 (eval "$ac_try") 2>&5
25460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25461 (exit $ac_status); }; }; then
25462 ac_cv_member_struct_stat_st_blocks=yes
25464 echo "$as_me: failed program was:" >&5
25465 sed 's/^/| /' conftest.$ac_ext >&5
25467 cat >conftest.$ac_ext <<_ACEOF
25470 cat confdefs.h >>conftest.$ac_ext
25471 cat >>conftest.$ac_ext <<_ACEOF
25472 /* end confdefs.h. */
25473 $ac_includes_default
25477 static struct stat ac_aggr;
25478 if (sizeof ac_aggr.st_blocks)
25484 rm -f conftest.$ac_objext
25485 if { (ac_try="$ac_compile"
25486 case "(($ac_try" in
25487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25488 *) ac_try_echo=$ac_try;;
25490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25491 (eval "$ac_compile") 2>conftest.er1
25493 grep -v '^ *+' conftest.er1 >conftest.err
25495 cat conftest.err >&5
25496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25497 (exit $ac_status); } &&
25498 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25499 { (case "(($ac_try" in
25500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25501 *) ac_try_echo=$ac_try;;
25503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25504 (eval "$ac_try") 2>&5
25506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25507 (exit $ac_status); }; } &&
25508 { ac_try='test -s conftest.$ac_objext'
25509 { (case "(($ac_try" in
25510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25511 *) ac_try_echo=$ac_try;;
25513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25514 (eval "$ac_try") 2>&5
25516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25517 (exit $ac_status); }; }; then
25518 ac_cv_member_struct_stat_st_blocks=yes
25520 echo "$as_me: failed program was:" >&5
25521 sed 's/^/| /' conftest.$ac_ext >&5
25523 ac_cv_member_struct_stat_st_blocks=no
25526 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25531 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
25532 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
25533 if test $ac_cv_member_struct_stat_st_blocks = yes; then
25535 cat >>confdefs.h <<_ACEOF
25536 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
25540 cat >>confdefs.h <<\_ACEOF
25541 #define HAVE_ST_BLOCKS 1
25545 case " $LIBOBJS " in
25546 *" fileblocks.$ac_objext "* ) ;;
25547 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
25554 { echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
25555 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6; }
25556 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
25557 echo $ECHO_N "(cached) $ECHO_C" >&6
25559 cat >conftest.$ac_ext <<_ACEOF
25562 cat confdefs.h >>conftest.$ac_ext
25563 cat >>conftest.$ac_ext <<_ACEOF
25564 /* end confdefs.h. */
25565 $ac_includes_default
25569 static struct stat ac_aggr;
25570 if (ac_aggr.st_rdev)
25576 rm -f conftest.$ac_objext
25577 if { (ac_try="$ac_compile"
25578 case "(($ac_try" in
25579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25580 *) ac_try_echo=$ac_try;;
25582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25583 (eval "$ac_compile") 2>conftest.er1
25585 grep -v '^ *+' conftest.er1 >conftest.err
25587 cat conftest.err >&5
25588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25589 (exit $ac_status); } &&
25590 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25591 { (case "(($ac_try" in
25592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25593 *) ac_try_echo=$ac_try;;
25595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25596 (eval "$ac_try") 2>&5
25598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25599 (exit $ac_status); }; } &&
25600 { ac_try='test -s conftest.$ac_objext'
25601 { (case "(($ac_try" in
25602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25603 *) ac_try_echo=$ac_try;;
25605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25606 (eval "$ac_try") 2>&5
25608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25609 (exit $ac_status); }; }; then
25610 ac_cv_member_struct_stat_st_rdev=yes
25612 echo "$as_me: failed program was:" >&5
25613 sed 's/^/| /' conftest.$ac_ext >&5
25615 cat >conftest.$ac_ext <<_ACEOF
25618 cat confdefs.h >>conftest.$ac_ext
25619 cat >>conftest.$ac_ext <<_ACEOF
25620 /* end confdefs.h. */
25621 $ac_includes_default
25625 static struct stat ac_aggr;
25626 if (sizeof ac_aggr.st_rdev)
25632 rm -f conftest.$ac_objext
25633 if { (ac_try="$ac_compile"
25634 case "(($ac_try" in
25635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25636 *) ac_try_echo=$ac_try;;
25638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25639 (eval "$ac_compile") 2>conftest.er1
25641 grep -v '^ *+' conftest.er1 >conftest.err
25643 cat conftest.err >&5
25644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25645 (exit $ac_status); } &&
25646 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25647 { (case "(($ac_try" in
25648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25649 *) ac_try_echo=$ac_try;;
25651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25652 (eval "$ac_try") 2>&5
25654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25655 (exit $ac_status); }; } &&
25656 { ac_try='test -s conftest.$ac_objext'
25657 { (case "(($ac_try" in
25658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25659 *) ac_try_echo=$ac_try;;
25661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25662 (eval "$ac_try") 2>&5
25664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25665 (exit $ac_status); }; }; then
25666 ac_cv_member_struct_stat_st_rdev=yes
25668 echo "$as_me: failed program was:" >&5
25669 sed 's/^/| /' conftest.$ac_ext >&5
25671 ac_cv_member_struct_stat_st_rdev=no
25674 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25677 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25679 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
25680 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6; }
25681 if test $ac_cv_member_struct_stat_st_rdev = yes; then
25683 cat >>confdefs.h <<_ACEOF
25684 #define HAVE_STRUCT_STAT_ST_RDEV 1
25688 cat >>confdefs.h <<\_ACEOF
25689 #define HAVE_ST_RDEV 1
25695 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
25696 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
25697 if test "${ac_cv_struct_tm+set}" = set; then
25698 echo $ECHO_N "(cached) $ECHO_C" >&6
25700 cat >conftest.$ac_ext <<_ACEOF
25703 cat confdefs.h >>conftest.$ac_ext
25704 cat >>conftest.$ac_ext <<_ACEOF
25705 /* end confdefs.h. */
25706 #include <sys/types.h>
25712 struct tm *tp; tp->tm_sec;
25717 rm -f conftest.$ac_objext
25718 if { (ac_try="$ac_compile"
25719 case "(($ac_try" in
25720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25721 *) ac_try_echo=$ac_try;;
25723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25724 (eval "$ac_compile") 2>conftest.er1
25726 grep -v '^ *+' conftest.er1 >conftest.err
25728 cat conftest.err >&5
25729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25730 (exit $ac_status); } &&
25731 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25732 { (case "(($ac_try" in
25733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25734 *) ac_try_echo=$ac_try;;
25736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25737 (eval "$ac_try") 2>&5
25739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25740 (exit $ac_status); }; } &&
25741 { ac_try='test -s conftest.$ac_objext'
25742 { (case "(($ac_try" in
25743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25744 *) ac_try_echo=$ac_try;;
25746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25747 (eval "$ac_try") 2>&5
25749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25750 (exit $ac_status); }; }; then
25751 ac_cv_struct_tm=time.h
25753 echo "$as_me: failed program was:" >&5
25754 sed 's/^/| /' conftest.$ac_ext >&5
25756 ac_cv_struct_tm=sys/time.h
25759 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25761 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
25762 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
25763 if test $ac_cv_struct_tm = sys/time.h; then
25765 cat >>confdefs.h <<\_ACEOF
25766 #define TM_IN_SYS_TIME 1
25771 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
25772 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
25773 if test "${ac_cv_c_const+set}" = set; then
25774 echo $ECHO_N "(cached) $ECHO_C" >&6
25776 cat >conftest.$ac_ext <<_ACEOF
25779 cat confdefs.h >>conftest.$ac_ext
25780 cat >>conftest.$ac_ext <<_ACEOF
25781 /* end confdefs.h. */
25786 /* FIXME: Include the comments suggested by Paul. */
25787 #ifndef __cplusplus
25788 /* Ultrix mips cc rejects this. */
25789 typedef int charset[2];
25791 /* SunOS 4.1.1 cc rejects this. */
25792 char const *const *ccp;
25794 /* NEC SVR4.0.2 mips cc rejects this. */
25795 struct point {int x, y;};
25796 static struct point const zero = {0,0};
25797 /* AIX XL C 1.02.0.0 rejects this.
25798 It does not let you subtract one const X* pointer from another in
25799 an arm of an if-expression whose if-part is not a constant
25801 const char *g = "string";
25802 ccp = &g + (g ? g-g : 0);
25803 /* HPUX 7.0 cc rejects these. */
25806 ccp = (char const *const *) p;
25807 { /* SCO 3.2v4 cc rejects this. */
25809 char const *s = 0 ? (char *) 0 : (char const *) 0;
25814 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
25815 int x[] = {25, 17};
25816 const int *foo = &x[0];
25819 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
25820 typedef const int *iptr;
25824 { /* AIX XL C 1.02.0.0 rejects this saying
25825 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
25826 struct s { int j; const int *ap[3]; };
25827 struct s *b; b->j = 5;
25829 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
25830 const int foo = 10;
25831 if (!foo) return 0;
25833 return !x[0] && !zero.x;
25840 rm -f conftest.$ac_objext
25841 if { (ac_try="$ac_compile"
25842 case "(($ac_try" in
25843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25844 *) ac_try_echo=$ac_try;;
25846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25847 (eval "$ac_compile") 2>conftest.er1
25849 grep -v '^ *+' conftest.er1 >conftest.err
25851 cat conftest.err >&5
25852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25853 (exit $ac_status); } &&
25854 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25855 { (case "(($ac_try" in
25856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25857 *) ac_try_echo=$ac_try;;
25859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25860 (eval "$ac_try") 2>&5
25862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25863 (exit $ac_status); }; } &&
25864 { ac_try='test -s conftest.$ac_objext'
25865 { (case "(($ac_try" in
25866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25867 *) ac_try_echo=$ac_try;;
25869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25870 (eval "$ac_try") 2>&5
25872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25873 (exit $ac_status); }; }; then
25876 echo "$as_me: failed program was:" >&5
25877 sed 's/^/| /' conftest.$ac_ext >&5
25882 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25884 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
25885 echo "${ECHO_T}$ac_cv_c_const" >&6; }
25886 if test $ac_cv_c_const = no; then
25888 cat >>confdefs.h <<\_ACEOF
25896 { echo "$as_me:$LINENO: checking for char" >&5
25897 echo $ECHO_N "checking for char... $ECHO_C" >&6; }
25898 if test "${ac_cv_type_char+set}" = set; then
25899 echo $ECHO_N "(cached) $ECHO_C" >&6
25901 cat >conftest.$ac_ext <<_ACEOF
25904 cat confdefs.h >>conftest.$ac_ext
25905 cat >>conftest.$ac_ext <<_ACEOF
25906 /* end confdefs.h. */
25907 $ac_includes_default
25908 typedef char ac__type_new_;
25912 if ((ac__type_new_ *) 0)
25914 if (sizeof (ac__type_new_))
25920 rm -f conftest.$ac_objext
25921 if { (ac_try="$ac_compile"
25922 case "(($ac_try" in
25923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25924 *) ac_try_echo=$ac_try;;
25926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25927 (eval "$ac_compile") 2>conftest.er1
25929 grep -v '^ *+' conftest.er1 >conftest.err
25931 cat conftest.err >&5
25932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25933 (exit $ac_status); } &&
25934 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25935 { (case "(($ac_try" in
25936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25937 *) ac_try_echo=$ac_try;;
25939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25940 (eval "$ac_try") 2>&5
25942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25943 (exit $ac_status); }; } &&
25944 { ac_try='test -s conftest.$ac_objext'
25945 { (case "(($ac_try" in
25946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25947 *) ac_try_echo=$ac_try;;
25949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25950 (eval "$ac_try") 2>&5
25952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25953 (exit $ac_status); }; }; then
25954 ac_cv_type_char=yes
25956 echo "$as_me: failed program was:" >&5
25957 sed 's/^/| /' conftest.$ac_ext >&5
25962 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25964 { echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
25965 echo "${ECHO_T}$ac_cv_type_char" >&6; }
25967 { echo "$as_me:$LINENO: checking size of char" >&5
25968 echo $ECHO_N "checking size of char... $ECHO_C" >&6; }
25969 if test "${ac_cv_sizeof_char+set}" = set; then
25970 echo $ECHO_N "(cached) $ECHO_C" >&6
25972 if test "$ac_cv_type_char" = yes; then
25973 # The cast to long int works around a bug in the HP C Compiler
25974 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
25975 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
25976 # This bug is HP SR number 8606223364.
25977 if test "$cross_compiling" = yes; then
25978 # Depending upon the size, compute the lo and hi bounds.
25979 cat >conftest.$ac_ext <<_ACEOF
25982 cat confdefs.h >>conftest.$ac_ext
25983 cat >>conftest.$ac_ext <<_ACEOF
25984 /* end confdefs.h. */
25985 $ac_includes_default
25986 typedef char ac__type_sizeof_;
25990 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
25997 rm -f conftest.$ac_objext
25998 if { (ac_try="$ac_compile"
25999 case "(($ac_try" in
26000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26001 *) ac_try_echo=$ac_try;;
26003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26004 (eval "$ac_compile") 2>conftest.er1
26006 grep -v '^ *+' conftest.er1 >conftest.err
26008 cat conftest.err >&5
26009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26010 (exit $ac_status); } &&
26011 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26012 { (case "(($ac_try" in
26013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26014 *) ac_try_echo=$ac_try;;
26016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26017 (eval "$ac_try") 2>&5
26019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26020 (exit $ac_status); }; } &&
26021 { ac_try='test -s conftest.$ac_objext'
26022 { (case "(($ac_try" in
26023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26024 *) ac_try_echo=$ac_try;;
26026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26027 (eval "$ac_try") 2>&5
26029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26030 (exit $ac_status); }; }; then
26033 cat >conftest.$ac_ext <<_ACEOF
26036 cat confdefs.h >>conftest.$ac_ext
26037 cat >>conftest.$ac_ext <<_ACEOF
26038 /* end confdefs.h. */
26039 $ac_includes_default
26040 typedef char ac__type_sizeof_;
26044 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
26051 rm -f conftest.$ac_objext
26052 if { (ac_try="$ac_compile"
26053 case "(($ac_try" in
26054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26055 *) ac_try_echo=$ac_try;;
26057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26058 (eval "$ac_compile") 2>conftest.er1
26060 grep -v '^ *+' conftest.er1 >conftest.err
26062 cat conftest.err >&5
26063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26064 (exit $ac_status); } &&
26065 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26066 { (case "(($ac_try" in
26067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26068 *) ac_try_echo=$ac_try;;
26070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26071 (eval "$ac_try") 2>&5
26073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26074 (exit $ac_status); }; } &&
26075 { ac_try='test -s conftest.$ac_objext'
26076 { (case "(($ac_try" in
26077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26078 *) ac_try_echo=$ac_try;;
26080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26081 (eval "$ac_try") 2>&5
26083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26084 (exit $ac_status); }; }; then
26085 ac_hi=$ac_mid; break
26087 echo "$as_me: failed program was:" >&5
26088 sed 's/^/| /' conftest.$ac_ext >&5
26090 ac_lo=`expr $ac_mid + 1`
26091 if test $ac_lo -le $ac_mid; then
26095 ac_mid=`expr 2 '*' $ac_mid + 1`
26098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26101 echo "$as_me: failed program was:" >&5
26102 sed 's/^/| /' conftest.$ac_ext >&5
26104 cat >conftest.$ac_ext <<_ACEOF
26107 cat confdefs.h >>conftest.$ac_ext
26108 cat >>conftest.$ac_ext <<_ACEOF
26109 /* end confdefs.h. */
26110 $ac_includes_default
26111 typedef char ac__type_sizeof_;
26115 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
26122 rm -f conftest.$ac_objext
26123 if { (ac_try="$ac_compile"
26124 case "(($ac_try" in
26125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26126 *) ac_try_echo=$ac_try;;
26128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26129 (eval "$ac_compile") 2>conftest.er1
26131 grep -v '^ *+' conftest.er1 >conftest.err
26133 cat conftest.err >&5
26134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26135 (exit $ac_status); } &&
26136 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26137 { (case "(($ac_try" in
26138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26139 *) ac_try_echo=$ac_try;;
26141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26142 (eval "$ac_try") 2>&5
26144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26145 (exit $ac_status); }; } &&
26146 { ac_try='test -s conftest.$ac_objext'
26147 { (case "(($ac_try" in
26148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26149 *) ac_try_echo=$ac_try;;
26151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26152 (eval "$ac_try") 2>&5
26154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26155 (exit $ac_status); }; }; then
26158 cat >conftest.$ac_ext <<_ACEOF
26161 cat confdefs.h >>conftest.$ac_ext
26162 cat >>conftest.$ac_ext <<_ACEOF
26163 /* end confdefs.h. */
26164 $ac_includes_default
26165 typedef char ac__type_sizeof_;
26169 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
26176 rm -f conftest.$ac_objext
26177 if { (ac_try="$ac_compile"
26178 case "(($ac_try" in
26179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26180 *) ac_try_echo=$ac_try;;
26182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26183 (eval "$ac_compile") 2>conftest.er1
26185 grep -v '^ *+' conftest.er1 >conftest.err
26187 cat conftest.err >&5
26188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26189 (exit $ac_status); } &&
26190 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26191 { (case "(($ac_try" in
26192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26193 *) ac_try_echo=$ac_try;;
26195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26196 (eval "$ac_try") 2>&5
26198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26199 (exit $ac_status); }; } &&
26200 { ac_try='test -s conftest.$ac_objext'
26201 { (case "(($ac_try" in
26202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26203 *) ac_try_echo=$ac_try;;
26205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26206 (eval "$ac_try") 2>&5
26208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26209 (exit $ac_status); }; }; then
26210 ac_lo=$ac_mid; break
26212 echo "$as_me: failed program was:" >&5
26213 sed 's/^/| /' conftest.$ac_ext >&5
26215 ac_hi=`expr '(' $ac_mid ')' - 1`
26216 if test $ac_mid -le $ac_hi; then
26220 ac_mid=`expr 2 '*' $ac_mid`
26223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26226 echo "$as_me: failed program was:" >&5
26227 sed 's/^/| /' conftest.$ac_ext >&5
26232 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26235 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26236 # Binary search between lo and hi bounds.
26237 while test "x$ac_lo" != "x$ac_hi"; do
26238 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
26239 cat >conftest.$ac_ext <<_ACEOF
26242 cat confdefs.h >>conftest.$ac_ext
26243 cat >>conftest.$ac_ext <<_ACEOF
26244 /* end confdefs.h. */
26245 $ac_includes_default
26246 typedef char ac__type_sizeof_;
26250 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
26257 rm -f conftest.$ac_objext
26258 if { (ac_try="$ac_compile"
26259 case "(($ac_try" in
26260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26261 *) ac_try_echo=$ac_try;;
26263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26264 (eval "$ac_compile") 2>conftest.er1
26266 grep -v '^ *+' conftest.er1 >conftest.err
26268 cat conftest.err >&5
26269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26270 (exit $ac_status); } &&
26271 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26272 { (case "(($ac_try" in
26273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26274 *) ac_try_echo=$ac_try;;
26276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26277 (eval "$ac_try") 2>&5
26279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26280 (exit $ac_status); }; } &&
26281 { ac_try='test -s conftest.$ac_objext'
26282 { (case "(($ac_try" in
26283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26284 *) ac_try_echo=$ac_try;;
26286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26287 (eval "$ac_try") 2>&5
26289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26290 (exit $ac_status); }; }; then
26293 echo "$as_me: failed program was:" >&5
26294 sed 's/^/| /' conftest.$ac_ext >&5
26296 ac_lo=`expr '(' $ac_mid ')' + 1`
26299 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26302 ?*) ac_cv_sizeof_char=$ac_lo;;
26303 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
26304 See \`config.log' for more details." >&5
26305 echo "$as_me: error: cannot compute sizeof (char)
26306 See \`config.log' for more details." >&2;}
26307 { (exit 77); exit 77; }; } ;;
26310 cat >conftest.$ac_ext <<_ACEOF
26313 cat confdefs.h >>conftest.$ac_ext
26314 cat >>conftest.$ac_ext <<_ACEOF
26315 /* end confdefs.h. */
26316 $ac_includes_default
26317 typedef char ac__type_sizeof_;
26318 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
26319 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
26321 #include <stdlib.h>
26326 FILE *f = fopen ("conftest.val", "w");
26329 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
26331 long int i = longval ();
26332 if (i != ((long int) (sizeof (ac__type_sizeof_))))
26334 fprintf (f, "%ld\n", i);
26338 unsigned long int i = ulongval ();
26339 if (i != ((long int) (sizeof (ac__type_sizeof_))))
26341 fprintf (f, "%lu\n", i);
26343 return ferror (f) || fclose (f) != 0;
26349 rm -f conftest$ac_exeext
26350 if { (ac_try="$ac_link"
26351 case "(($ac_try" in
26352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26353 *) ac_try_echo=$ac_try;;
26355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26356 (eval "$ac_link") 2>&5
26358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26359 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26360 { (case "(($ac_try" in
26361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26362 *) ac_try_echo=$ac_try;;
26364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26365 (eval "$ac_try") 2>&5
26367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26368 (exit $ac_status); }; }; then
26369 ac_cv_sizeof_char=`cat conftest.val`
26371 echo "$as_me: program exited with status $ac_status" >&5
26372 echo "$as_me: failed program was:" >&5
26373 sed 's/^/| /' conftest.$ac_ext >&5
26375 ( exit $ac_status )
26376 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
26377 See \`config.log' for more details." >&5
26378 echo "$as_me: error: cannot compute sizeof (char)
26379 See \`config.log' for more details." >&2;}
26380 { (exit 77); exit 77; }; }
26382 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26386 ac_cv_sizeof_char=0
26389 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
26390 echo "${ECHO_T}$ac_cv_sizeof_char" >&6; }
26391 cat >>confdefs.h <<_ACEOF
26392 #define SIZEOF_CHAR $ac_cv_sizeof_char
26396 { echo "$as_me:$LINENO: checking for short int" >&5
26397 echo $ECHO_N "checking for short int... $ECHO_C" >&6; }
26398 if test "${ac_cv_type_short_int+set}" = set; then
26399 echo $ECHO_N "(cached) $ECHO_C" >&6
26401 cat >conftest.$ac_ext <<_ACEOF
26404 cat confdefs.h >>conftest.$ac_ext
26405 cat >>conftest.$ac_ext <<_ACEOF
26406 /* end confdefs.h. */
26407 $ac_includes_default
26408 typedef short int ac__type_new_;
26412 if ((ac__type_new_ *) 0)
26414 if (sizeof (ac__type_new_))
26420 rm -f conftest.$ac_objext
26421 if { (ac_try="$ac_compile"
26422 case "(($ac_try" in
26423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26424 *) ac_try_echo=$ac_try;;
26426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26427 (eval "$ac_compile") 2>conftest.er1
26429 grep -v '^ *+' conftest.er1 >conftest.err
26431 cat conftest.err >&5
26432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26433 (exit $ac_status); } &&
26434 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26435 { (case "(($ac_try" in
26436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26437 *) ac_try_echo=$ac_try;;
26439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26440 (eval "$ac_try") 2>&5
26442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26443 (exit $ac_status); }; } &&
26444 { ac_try='test -s conftest.$ac_objext'
26445 { (case "(($ac_try" in
26446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26447 *) ac_try_echo=$ac_try;;
26449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26450 (eval "$ac_try") 2>&5
26452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26453 (exit $ac_status); }; }; then
26454 ac_cv_type_short_int=yes
26456 echo "$as_me: failed program was:" >&5
26457 sed 's/^/| /' conftest.$ac_ext >&5
26459 ac_cv_type_short_int=no
26462 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26464 { echo "$as_me:$LINENO: result: $ac_cv_type_short_int" >&5
26465 echo "${ECHO_T}$ac_cv_type_short_int" >&6; }
26467 { echo "$as_me:$LINENO: checking size of short int" >&5
26468 echo $ECHO_N "checking size of short int... $ECHO_C" >&6; }
26469 if test "${ac_cv_sizeof_short_int+set}" = set; then
26470 echo $ECHO_N "(cached) $ECHO_C" >&6
26472 if test "$ac_cv_type_short_int" = yes; then
26473 # The cast to long int works around a bug in the HP C Compiler
26474 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26475 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26476 # This bug is HP SR number 8606223364.
26477 if test "$cross_compiling" = yes; then
26478 # Depending upon the size, compute the lo and hi bounds.
26479 cat >conftest.$ac_ext <<_ACEOF
26482 cat confdefs.h >>conftest.$ac_ext
26483 cat >>conftest.$ac_ext <<_ACEOF
26484 /* end confdefs.h. */
26485 $ac_includes_default
26486 typedef short int ac__type_sizeof_;
26490 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
26497 rm -f conftest.$ac_objext
26498 if { (ac_try="$ac_compile"
26499 case "(($ac_try" in
26500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26501 *) ac_try_echo=$ac_try;;
26503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26504 (eval "$ac_compile") 2>conftest.er1
26506 grep -v '^ *+' conftest.er1 >conftest.err
26508 cat conftest.err >&5
26509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26510 (exit $ac_status); } &&
26511 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26512 { (case "(($ac_try" in
26513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26514 *) ac_try_echo=$ac_try;;
26516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26517 (eval "$ac_try") 2>&5
26519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26520 (exit $ac_status); }; } &&
26521 { ac_try='test -s conftest.$ac_objext'
26522 { (case "(($ac_try" in
26523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26524 *) ac_try_echo=$ac_try;;
26526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26527 (eval "$ac_try") 2>&5
26529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26530 (exit $ac_status); }; }; then
26533 cat >conftest.$ac_ext <<_ACEOF
26536 cat confdefs.h >>conftest.$ac_ext
26537 cat >>conftest.$ac_ext <<_ACEOF
26538 /* end confdefs.h. */
26539 $ac_includes_default
26540 typedef short int ac__type_sizeof_;
26544 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
26551 rm -f conftest.$ac_objext
26552 if { (ac_try="$ac_compile"
26553 case "(($ac_try" in
26554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26555 *) ac_try_echo=$ac_try;;
26557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26558 (eval "$ac_compile") 2>conftest.er1
26560 grep -v '^ *+' conftest.er1 >conftest.err
26562 cat conftest.err >&5
26563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26564 (exit $ac_status); } &&
26565 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26566 { (case "(($ac_try" in
26567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26568 *) ac_try_echo=$ac_try;;
26570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26571 (eval "$ac_try") 2>&5
26573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26574 (exit $ac_status); }; } &&
26575 { ac_try='test -s conftest.$ac_objext'
26576 { (case "(($ac_try" in
26577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26578 *) ac_try_echo=$ac_try;;
26580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26581 (eval "$ac_try") 2>&5
26583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26584 (exit $ac_status); }; }; then
26585 ac_hi=$ac_mid; break
26587 echo "$as_me: failed program was:" >&5
26588 sed 's/^/| /' conftest.$ac_ext >&5
26590 ac_lo=`expr $ac_mid + 1`
26591 if test $ac_lo -le $ac_mid; then
26595 ac_mid=`expr 2 '*' $ac_mid + 1`
26598 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26601 echo "$as_me: failed program was:" >&5
26602 sed 's/^/| /' conftest.$ac_ext >&5
26604 cat >conftest.$ac_ext <<_ACEOF
26607 cat confdefs.h >>conftest.$ac_ext
26608 cat >>conftest.$ac_ext <<_ACEOF
26609 /* end confdefs.h. */
26610 $ac_includes_default
26611 typedef short int ac__type_sizeof_;
26615 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
26622 rm -f conftest.$ac_objext
26623 if { (ac_try="$ac_compile"
26624 case "(($ac_try" in
26625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26626 *) ac_try_echo=$ac_try;;
26628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26629 (eval "$ac_compile") 2>conftest.er1
26631 grep -v '^ *+' conftest.er1 >conftest.err
26633 cat conftest.err >&5
26634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26635 (exit $ac_status); } &&
26636 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26637 { (case "(($ac_try" in
26638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26639 *) ac_try_echo=$ac_try;;
26641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26642 (eval "$ac_try") 2>&5
26644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26645 (exit $ac_status); }; } &&
26646 { ac_try='test -s conftest.$ac_objext'
26647 { (case "(($ac_try" in
26648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26649 *) ac_try_echo=$ac_try;;
26651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26652 (eval "$ac_try") 2>&5
26654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26655 (exit $ac_status); }; }; then
26658 cat >conftest.$ac_ext <<_ACEOF
26661 cat confdefs.h >>conftest.$ac_ext
26662 cat >>conftest.$ac_ext <<_ACEOF
26663 /* end confdefs.h. */
26664 $ac_includes_default
26665 typedef short int ac__type_sizeof_;
26669 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
26676 rm -f conftest.$ac_objext
26677 if { (ac_try="$ac_compile"
26678 case "(($ac_try" in
26679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26680 *) ac_try_echo=$ac_try;;
26682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26683 (eval "$ac_compile") 2>conftest.er1
26685 grep -v '^ *+' conftest.er1 >conftest.err
26687 cat conftest.err >&5
26688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26689 (exit $ac_status); } &&
26690 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26691 { (case "(($ac_try" in
26692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26693 *) ac_try_echo=$ac_try;;
26695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26696 (eval "$ac_try") 2>&5
26698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26699 (exit $ac_status); }; } &&
26700 { ac_try='test -s conftest.$ac_objext'
26701 { (case "(($ac_try" in
26702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26703 *) ac_try_echo=$ac_try;;
26705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26706 (eval "$ac_try") 2>&5
26708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26709 (exit $ac_status); }; }; then
26710 ac_lo=$ac_mid; break
26712 echo "$as_me: failed program was:" >&5
26713 sed 's/^/| /' conftest.$ac_ext >&5
26715 ac_hi=`expr '(' $ac_mid ')' - 1`
26716 if test $ac_mid -le $ac_hi; then
26720 ac_mid=`expr 2 '*' $ac_mid`
26723 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26726 echo "$as_me: failed program was:" >&5
26727 sed 's/^/| /' conftest.$ac_ext >&5
26732 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26735 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26736 # Binary search between lo and hi bounds.
26737 while test "x$ac_lo" != "x$ac_hi"; do
26738 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
26739 cat >conftest.$ac_ext <<_ACEOF
26742 cat confdefs.h >>conftest.$ac_ext
26743 cat >>conftest.$ac_ext <<_ACEOF
26744 /* end confdefs.h. */
26745 $ac_includes_default
26746 typedef short int ac__type_sizeof_;
26750 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
26757 rm -f conftest.$ac_objext
26758 if { (ac_try="$ac_compile"
26759 case "(($ac_try" in
26760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26761 *) ac_try_echo=$ac_try;;
26763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26764 (eval "$ac_compile") 2>conftest.er1
26766 grep -v '^ *+' conftest.er1 >conftest.err
26768 cat conftest.err >&5
26769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26770 (exit $ac_status); } &&
26771 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26772 { (case "(($ac_try" in
26773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26774 *) ac_try_echo=$ac_try;;
26776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26777 (eval "$ac_try") 2>&5
26779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26780 (exit $ac_status); }; } &&
26781 { ac_try='test -s conftest.$ac_objext'
26782 { (case "(($ac_try" in
26783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26784 *) ac_try_echo=$ac_try;;
26786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26787 (eval "$ac_try") 2>&5
26789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26790 (exit $ac_status); }; }; then
26793 echo "$as_me: failed program was:" >&5
26794 sed 's/^/| /' conftest.$ac_ext >&5
26796 ac_lo=`expr '(' $ac_mid ')' + 1`
26799 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26802 ?*) ac_cv_sizeof_short_int=$ac_lo;;
26803 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int)
26804 See \`config.log' for more details." >&5
26805 echo "$as_me: error: cannot compute sizeof (short int)
26806 See \`config.log' for more details." >&2;}
26807 { (exit 77); exit 77; }; } ;;
26810 cat >conftest.$ac_ext <<_ACEOF
26813 cat confdefs.h >>conftest.$ac_ext
26814 cat >>conftest.$ac_ext <<_ACEOF
26815 /* end confdefs.h. */
26816 $ac_includes_default
26817 typedef short int ac__type_sizeof_;
26818 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
26819 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
26821 #include <stdlib.h>
26826 FILE *f = fopen ("conftest.val", "w");
26829 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
26831 long int i = longval ();
26832 if (i != ((long int) (sizeof (ac__type_sizeof_))))
26834 fprintf (f, "%ld\n", i);
26838 unsigned long int i = ulongval ();
26839 if (i != ((long int) (sizeof (ac__type_sizeof_))))
26841 fprintf (f, "%lu\n", i);
26843 return ferror (f) || fclose (f) != 0;
26849 rm -f conftest$ac_exeext
26850 if { (ac_try="$ac_link"
26851 case "(($ac_try" in
26852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26853 *) ac_try_echo=$ac_try;;
26855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26856 (eval "$ac_link") 2>&5
26858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26859 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26860 { (case "(($ac_try" in
26861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26862 *) ac_try_echo=$ac_try;;
26864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26865 (eval "$ac_try") 2>&5
26867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26868 (exit $ac_status); }; }; then
26869 ac_cv_sizeof_short_int=`cat conftest.val`
26871 echo "$as_me: program exited with status $ac_status" >&5
26872 echo "$as_me: failed program was:" >&5
26873 sed 's/^/| /' conftest.$ac_ext >&5
26875 ( exit $ac_status )
26876 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int)
26877 See \`config.log' for more details." >&5
26878 echo "$as_me: error: cannot compute sizeof (short int)
26879 See \`config.log' for more details." >&2;}
26880 { (exit 77); exit 77; }; }
26882 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26886 ac_cv_sizeof_short_int=0
26889 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short_int" >&5
26890 echo "${ECHO_T}$ac_cv_sizeof_short_int" >&6; }
26891 cat >>confdefs.h <<_ACEOF
26892 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
26896 { echo "$as_me:$LINENO: checking for int" >&5
26897 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
26898 if test "${ac_cv_type_int+set}" = set; then
26899 echo $ECHO_N "(cached) $ECHO_C" >&6
26901 cat >conftest.$ac_ext <<_ACEOF
26904 cat confdefs.h >>conftest.$ac_ext
26905 cat >>conftest.$ac_ext <<_ACEOF
26906 /* end confdefs.h. */
26907 $ac_includes_default
26908 typedef int ac__type_new_;
26912 if ((ac__type_new_ *) 0)
26914 if (sizeof (ac__type_new_))
26920 rm -f conftest.$ac_objext
26921 if { (ac_try="$ac_compile"
26922 case "(($ac_try" in
26923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26924 *) ac_try_echo=$ac_try;;
26926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26927 (eval "$ac_compile") 2>conftest.er1
26929 grep -v '^ *+' conftest.er1 >conftest.err
26931 cat conftest.err >&5
26932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26933 (exit $ac_status); } &&
26934 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26935 { (case "(($ac_try" in
26936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26937 *) ac_try_echo=$ac_try;;
26939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26940 (eval "$ac_try") 2>&5
26942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26943 (exit $ac_status); }; } &&
26944 { ac_try='test -s conftest.$ac_objext'
26945 { (case "(($ac_try" in
26946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26947 *) ac_try_echo=$ac_try;;
26949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26950 (eval "$ac_try") 2>&5
26952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26953 (exit $ac_status); }; }; then
26956 echo "$as_me: failed program was:" >&5
26957 sed 's/^/| /' conftest.$ac_ext >&5
26962 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26964 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
26965 echo "${ECHO_T}$ac_cv_type_int" >&6; }
26967 { echo "$as_me:$LINENO: checking size of int" >&5
26968 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
26969 if test "${ac_cv_sizeof_int+set}" = set; then
26970 echo $ECHO_N "(cached) $ECHO_C" >&6
26972 if test "$ac_cv_type_int" = yes; then
26973 # The cast to long int works around a bug in the HP C Compiler
26974 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26975 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26976 # This bug is HP SR number 8606223364.
26977 if test "$cross_compiling" = yes; then
26978 # Depending upon the size, compute the lo and hi bounds.
26979 cat >conftest.$ac_ext <<_ACEOF
26982 cat confdefs.h >>conftest.$ac_ext
26983 cat >>conftest.$ac_ext <<_ACEOF
26984 /* end confdefs.h. */
26985 $ac_includes_default
26986 typedef int ac__type_sizeof_;
26990 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
26997 rm -f conftest.$ac_objext
26998 if { (ac_try="$ac_compile"
26999 case "(($ac_try" in
27000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27001 *) ac_try_echo=$ac_try;;
27003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27004 (eval "$ac_compile") 2>conftest.er1
27006 grep -v '^ *+' conftest.er1 >conftest.err
27008 cat conftest.err >&5
27009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27010 (exit $ac_status); } &&
27011 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27012 { (case "(($ac_try" in
27013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27014 *) ac_try_echo=$ac_try;;
27016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27017 (eval "$ac_try") 2>&5
27019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27020 (exit $ac_status); }; } &&
27021 { ac_try='test -s conftest.$ac_objext'
27022 { (case "(($ac_try" in
27023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27024 *) ac_try_echo=$ac_try;;
27026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27027 (eval "$ac_try") 2>&5
27029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27030 (exit $ac_status); }; }; then
27033 cat >conftest.$ac_ext <<_ACEOF
27036 cat confdefs.h >>conftest.$ac_ext
27037 cat >>conftest.$ac_ext <<_ACEOF
27038 /* end confdefs.h. */
27039 $ac_includes_default
27040 typedef int ac__type_sizeof_;
27044 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
27051 rm -f conftest.$ac_objext
27052 if { (ac_try="$ac_compile"
27053 case "(($ac_try" in
27054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27055 *) ac_try_echo=$ac_try;;
27057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27058 (eval "$ac_compile") 2>conftest.er1
27060 grep -v '^ *+' conftest.er1 >conftest.err
27062 cat conftest.err >&5
27063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27064 (exit $ac_status); } &&
27065 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27066 { (case "(($ac_try" in
27067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27068 *) ac_try_echo=$ac_try;;
27070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27071 (eval "$ac_try") 2>&5
27073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27074 (exit $ac_status); }; } &&
27075 { ac_try='test -s conftest.$ac_objext'
27076 { (case "(($ac_try" in
27077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27078 *) ac_try_echo=$ac_try;;
27080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27081 (eval "$ac_try") 2>&5
27083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27084 (exit $ac_status); }; }; then
27085 ac_hi=$ac_mid; break
27087 echo "$as_me: failed program was:" >&5
27088 sed 's/^/| /' conftest.$ac_ext >&5
27090 ac_lo=`expr $ac_mid + 1`
27091 if test $ac_lo -le $ac_mid; then
27095 ac_mid=`expr 2 '*' $ac_mid + 1`
27098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27101 echo "$as_me: failed program was:" >&5
27102 sed 's/^/| /' conftest.$ac_ext >&5
27104 cat >conftest.$ac_ext <<_ACEOF
27107 cat confdefs.h >>conftest.$ac_ext
27108 cat >>conftest.$ac_ext <<_ACEOF
27109 /* end confdefs.h. */
27110 $ac_includes_default
27111 typedef int ac__type_sizeof_;
27115 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
27122 rm -f conftest.$ac_objext
27123 if { (ac_try="$ac_compile"
27124 case "(($ac_try" in
27125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27126 *) ac_try_echo=$ac_try;;
27128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27129 (eval "$ac_compile") 2>conftest.er1
27131 grep -v '^ *+' conftest.er1 >conftest.err
27133 cat conftest.err >&5
27134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27135 (exit $ac_status); } &&
27136 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27137 { (case "(($ac_try" in
27138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27139 *) ac_try_echo=$ac_try;;
27141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27142 (eval "$ac_try") 2>&5
27144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27145 (exit $ac_status); }; } &&
27146 { ac_try='test -s conftest.$ac_objext'
27147 { (case "(($ac_try" in
27148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27149 *) ac_try_echo=$ac_try;;
27151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27152 (eval "$ac_try") 2>&5
27154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27155 (exit $ac_status); }; }; then
27158 cat >conftest.$ac_ext <<_ACEOF
27161 cat confdefs.h >>conftest.$ac_ext
27162 cat >>conftest.$ac_ext <<_ACEOF
27163 /* end confdefs.h. */
27164 $ac_includes_default
27165 typedef int ac__type_sizeof_;
27169 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
27176 rm -f conftest.$ac_objext
27177 if { (ac_try="$ac_compile"
27178 case "(($ac_try" in
27179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27180 *) ac_try_echo=$ac_try;;
27182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27183 (eval "$ac_compile") 2>conftest.er1
27185 grep -v '^ *+' conftest.er1 >conftest.err
27187 cat conftest.err >&5
27188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27189 (exit $ac_status); } &&
27190 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27191 { (case "(($ac_try" in
27192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27193 *) ac_try_echo=$ac_try;;
27195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27196 (eval "$ac_try") 2>&5
27198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27199 (exit $ac_status); }; } &&
27200 { ac_try='test -s conftest.$ac_objext'
27201 { (case "(($ac_try" in
27202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27203 *) ac_try_echo=$ac_try;;
27205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27206 (eval "$ac_try") 2>&5
27208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27209 (exit $ac_status); }; }; then
27210 ac_lo=$ac_mid; break
27212 echo "$as_me: failed program was:" >&5
27213 sed 's/^/| /' conftest.$ac_ext >&5
27215 ac_hi=`expr '(' $ac_mid ')' - 1`
27216 if test $ac_mid -le $ac_hi; then
27220 ac_mid=`expr 2 '*' $ac_mid`
27223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27226 echo "$as_me: failed program was:" >&5
27227 sed 's/^/| /' conftest.$ac_ext >&5
27232 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27235 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27236 # Binary search between lo and hi bounds.
27237 while test "x$ac_lo" != "x$ac_hi"; do
27238 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
27239 cat >conftest.$ac_ext <<_ACEOF
27242 cat confdefs.h >>conftest.$ac_ext
27243 cat >>conftest.$ac_ext <<_ACEOF
27244 /* end confdefs.h. */
27245 $ac_includes_default
27246 typedef int ac__type_sizeof_;
27250 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
27257 rm -f conftest.$ac_objext
27258 if { (ac_try="$ac_compile"
27259 case "(($ac_try" in
27260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27261 *) ac_try_echo=$ac_try;;
27263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27264 (eval "$ac_compile") 2>conftest.er1
27266 grep -v '^ *+' conftest.er1 >conftest.err
27268 cat conftest.err >&5
27269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27270 (exit $ac_status); } &&
27271 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27272 { (case "(($ac_try" in
27273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27274 *) ac_try_echo=$ac_try;;
27276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27277 (eval "$ac_try") 2>&5
27279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27280 (exit $ac_status); }; } &&
27281 { ac_try='test -s conftest.$ac_objext'
27282 { (case "(($ac_try" in
27283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27284 *) ac_try_echo=$ac_try;;
27286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27287 (eval "$ac_try") 2>&5
27289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27290 (exit $ac_status); }; }; then
27293 echo "$as_me: failed program was:" >&5
27294 sed 's/^/| /' conftest.$ac_ext >&5
27296 ac_lo=`expr '(' $ac_mid ')' + 1`
27299 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27302 ?*) ac_cv_sizeof_int=$ac_lo;;
27303 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
27304 See \`config.log' for more details." >&5
27305 echo "$as_me: error: cannot compute sizeof (int)
27306 See \`config.log' for more details." >&2;}
27307 { (exit 77); exit 77; }; } ;;
27310 cat >conftest.$ac_ext <<_ACEOF
27313 cat confdefs.h >>conftest.$ac_ext
27314 cat >>conftest.$ac_ext <<_ACEOF
27315 /* end confdefs.h. */
27316 $ac_includes_default
27317 typedef int ac__type_sizeof_;
27318 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
27319 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
27321 #include <stdlib.h>
27326 FILE *f = fopen ("conftest.val", "w");
27329 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
27331 long int i = longval ();
27332 if (i != ((long int) (sizeof (ac__type_sizeof_))))
27334 fprintf (f, "%ld\n", i);
27338 unsigned long int i = ulongval ();
27339 if (i != ((long int) (sizeof (ac__type_sizeof_))))
27341 fprintf (f, "%lu\n", i);
27343 return ferror (f) || fclose (f) != 0;
27349 rm -f conftest$ac_exeext
27350 if { (ac_try="$ac_link"
27351 case "(($ac_try" in
27352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27353 *) ac_try_echo=$ac_try;;
27355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27356 (eval "$ac_link") 2>&5
27358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27359 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27360 { (case "(($ac_try" in
27361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27362 *) ac_try_echo=$ac_try;;
27364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27365 (eval "$ac_try") 2>&5
27367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27368 (exit $ac_status); }; }; then
27369 ac_cv_sizeof_int=`cat conftest.val`
27371 echo "$as_me: program exited with status $ac_status" >&5
27372 echo "$as_me: failed program was:" >&5
27373 sed 's/^/| /' conftest.$ac_ext >&5
27375 ( exit $ac_status )
27376 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
27377 See \`config.log' for more details." >&5
27378 echo "$as_me: error: cannot compute sizeof (int)
27379 See \`config.log' for more details." >&2;}
27380 { (exit 77); exit 77; }; }
27382 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27389 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
27390 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
27391 cat >>confdefs.h <<_ACEOF
27392 #define SIZEOF_INT $ac_cv_sizeof_int
27396 { echo "$as_me:$LINENO: checking for long int" >&5
27397 echo $ECHO_N "checking for long int... $ECHO_C" >&6; }
27398 if test "${ac_cv_type_long_int+set}" = set; then
27399 echo $ECHO_N "(cached) $ECHO_C" >&6
27401 cat >conftest.$ac_ext <<_ACEOF
27404 cat confdefs.h >>conftest.$ac_ext
27405 cat >>conftest.$ac_ext <<_ACEOF
27406 /* end confdefs.h. */
27407 $ac_includes_default
27408 typedef long int ac__type_new_;
27412 if ((ac__type_new_ *) 0)
27414 if (sizeof (ac__type_new_))
27420 rm -f conftest.$ac_objext
27421 if { (ac_try="$ac_compile"
27422 case "(($ac_try" in
27423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27424 *) ac_try_echo=$ac_try;;
27426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27427 (eval "$ac_compile") 2>conftest.er1
27429 grep -v '^ *+' conftest.er1 >conftest.err
27431 cat conftest.err >&5
27432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27433 (exit $ac_status); } &&
27434 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27435 { (case "(($ac_try" in
27436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27437 *) ac_try_echo=$ac_try;;
27439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27440 (eval "$ac_try") 2>&5
27442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27443 (exit $ac_status); }; } &&
27444 { ac_try='test -s conftest.$ac_objext'
27445 { (case "(($ac_try" in
27446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27447 *) ac_try_echo=$ac_try;;
27449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27450 (eval "$ac_try") 2>&5
27452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27453 (exit $ac_status); }; }; then
27454 ac_cv_type_long_int=yes
27456 echo "$as_me: failed program was:" >&5
27457 sed 's/^/| /' conftest.$ac_ext >&5
27459 ac_cv_type_long_int=no
27462 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27464 { echo "$as_me:$LINENO: result: $ac_cv_type_long_int" >&5
27465 echo "${ECHO_T}$ac_cv_type_long_int" >&6; }
27467 { echo "$as_me:$LINENO: checking size of long int" >&5
27468 echo $ECHO_N "checking size of long int... $ECHO_C" >&6; }
27469 if test "${ac_cv_sizeof_long_int+set}" = set; then
27470 echo $ECHO_N "(cached) $ECHO_C" >&6
27472 if test "$ac_cv_type_long_int" = yes; then
27473 # The cast to long int works around a bug in the HP C Compiler
27474 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27475 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27476 # This bug is HP SR number 8606223364.
27477 if test "$cross_compiling" = yes; then
27478 # Depending upon the size, compute the lo and hi bounds.
27479 cat >conftest.$ac_ext <<_ACEOF
27482 cat confdefs.h >>conftest.$ac_ext
27483 cat >>conftest.$ac_ext <<_ACEOF
27484 /* end confdefs.h. */
27485 $ac_includes_default
27486 typedef long int ac__type_sizeof_;
27490 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
27497 rm -f conftest.$ac_objext
27498 if { (ac_try="$ac_compile"
27499 case "(($ac_try" in
27500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27501 *) ac_try_echo=$ac_try;;
27503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27504 (eval "$ac_compile") 2>conftest.er1
27506 grep -v '^ *+' conftest.er1 >conftest.err
27508 cat conftest.err >&5
27509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27510 (exit $ac_status); } &&
27511 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27512 { (case "(($ac_try" in
27513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27514 *) ac_try_echo=$ac_try;;
27516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27517 (eval "$ac_try") 2>&5
27519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27520 (exit $ac_status); }; } &&
27521 { ac_try='test -s conftest.$ac_objext'
27522 { (case "(($ac_try" in
27523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27524 *) ac_try_echo=$ac_try;;
27526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27527 (eval "$ac_try") 2>&5
27529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27530 (exit $ac_status); }; }; then
27533 cat >conftest.$ac_ext <<_ACEOF
27536 cat confdefs.h >>conftest.$ac_ext
27537 cat >>conftest.$ac_ext <<_ACEOF
27538 /* end confdefs.h. */
27539 $ac_includes_default
27540 typedef long int ac__type_sizeof_;
27544 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
27551 rm -f conftest.$ac_objext
27552 if { (ac_try="$ac_compile"
27553 case "(($ac_try" in
27554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27555 *) ac_try_echo=$ac_try;;
27557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27558 (eval "$ac_compile") 2>conftest.er1
27560 grep -v '^ *+' conftest.er1 >conftest.err
27562 cat conftest.err >&5
27563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27564 (exit $ac_status); } &&
27565 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27566 { (case "(($ac_try" in
27567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27568 *) ac_try_echo=$ac_try;;
27570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27571 (eval "$ac_try") 2>&5
27573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27574 (exit $ac_status); }; } &&
27575 { ac_try='test -s conftest.$ac_objext'
27576 { (case "(($ac_try" in
27577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27578 *) ac_try_echo=$ac_try;;
27580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27581 (eval "$ac_try") 2>&5
27583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27584 (exit $ac_status); }; }; then
27585 ac_hi=$ac_mid; break
27587 echo "$as_me: failed program was:" >&5
27588 sed 's/^/| /' conftest.$ac_ext >&5
27590 ac_lo=`expr $ac_mid + 1`
27591 if test $ac_lo -le $ac_mid; then
27595 ac_mid=`expr 2 '*' $ac_mid + 1`
27598 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27601 echo "$as_me: failed program was:" >&5
27602 sed 's/^/| /' conftest.$ac_ext >&5
27604 cat >conftest.$ac_ext <<_ACEOF
27607 cat confdefs.h >>conftest.$ac_ext
27608 cat >>conftest.$ac_ext <<_ACEOF
27609 /* end confdefs.h. */
27610 $ac_includes_default
27611 typedef long int ac__type_sizeof_;
27615 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
27622 rm -f conftest.$ac_objext
27623 if { (ac_try="$ac_compile"
27624 case "(($ac_try" in
27625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27626 *) ac_try_echo=$ac_try;;
27628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27629 (eval "$ac_compile") 2>conftest.er1
27631 grep -v '^ *+' conftest.er1 >conftest.err
27633 cat conftest.err >&5
27634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27635 (exit $ac_status); } &&
27636 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27637 { (case "(($ac_try" in
27638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27639 *) ac_try_echo=$ac_try;;
27641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27642 (eval "$ac_try") 2>&5
27644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27645 (exit $ac_status); }; } &&
27646 { ac_try='test -s conftest.$ac_objext'
27647 { (case "(($ac_try" in
27648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27649 *) ac_try_echo=$ac_try;;
27651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27652 (eval "$ac_try") 2>&5
27654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27655 (exit $ac_status); }; }; then
27658 cat >conftest.$ac_ext <<_ACEOF
27661 cat confdefs.h >>conftest.$ac_ext
27662 cat >>conftest.$ac_ext <<_ACEOF
27663 /* end confdefs.h. */
27664 $ac_includes_default
27665 typedef long int ac__type_sizeof_;
27669 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
27676 rm -f conftest.$ac_objext
27677 if { (ac_try="$ac_compile"
27678 case "(($ac_try" in
27679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27680 *) ac_try_echo=$ac_try;;
27682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27683 (eval "$ac_compile") 2>conftest.er1
27685 grep -v '^ *+' conftest.er1 >conftest.err
27687 cat conftest.err >&5
27688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27689 (exit $ac_status); } &&
27690 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27691 { (case "(($ac_try" in
27692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27693 *) ac_try_echo=$ac_try;;
27695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27696 (eval "$ac_try") 2>&5
27698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27699 (exit $ac_status); }; } &&
27700 { ac_try='test -s conftest.$ac_objext'
27701 { (case "(($ac_try" in
27702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27703 *) ac_try_echo=$ac_try;;
27705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27706 (eval "$ac_try") 2>&5
27708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27709 (exit $ac_status); }; }; then
27710 ac_lo=$ac_mid; break
27712 echo "$as_me: failed program was:" >&5
27713 sed 's/^/| /' conftest.$ac_ext >&5
27715 ac_hi=`expr '(' $ac_mid ')' - 1`
27716 if test $ac_mid -le $ac_hi; then
27720 ac_mid=`expr 2 '*' $ac_mid`
27723 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27726 echo "$as_me: failed program was:" >&5
27727 sed 's/^/| /' conftest.$ac_ext >&5
27732 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27735 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27736 # Binary search between lo and hi bounds.
27737 while test "x$ac_lo" != "x$ac_hi"; do
27738 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
27739 cat >conftest.$ac_ext <<_ACEOF
27742 cat confdefs.h >>conftest.$ac_ext
27743 cat >>conftest.$ac_ext <<_ACEOF
27744 /* end confdefs.h. */
27745 $ac_includes_default
27746 typedef long int ac__type_sizeof_;
27750 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
27757 rm -f conftest.$ac_objext
27758 if { (ac_try="$ac_compile"
27759 case "(($ac_try" in
27760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27761 *) ac_try_echo=$ac_try;;
27763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27764 (eval "$ac_compile") 2>conftest.er1
27766 grep -v '^ *+' conftest.er1 >conftest.err
27768 cat conftest.err >&5
27769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27770 (exit $ac_status); } &&
27771 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27772 { (case "(($ac_try" in
27773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27774 *) ac_try_echo=$ac_try;;
27776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27777 (eval "$ac_try") 2>&5
27779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27780 (exit $ac_status); }; } &&
27781 { ac_try='test -s conftest.$ac_objext'
27782 { (case "(($ac_try" in
27783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27784 *) ac_try_echo=$ac_try;;
27786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27787 (eval "$ac_try") 2>&5
27789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27790 (exit $ac_status); }; }; then
27793 echo "$as_me: failed program was:" >&5
27794 sed 's/^/| /' conftest.$ac_ext >&5
27796 ac_lo=`expr '(' $ac_mid ')' + 1`
27799 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27802 ?*) ac_cv_sizeof_long_int=$ac_lo;;
27803 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int)
27804 See \`config.log' for more details." >&5
27805 echo "$as_me: error: cannot compute sizeof (long int)
27806 See \`config.log' for more details." >&2;}
27807 { (exit 77); exit 77; }; } ;;
27810 cat >conftest.$ac_ext <<_ACEOF
27813 cat confdefs.h >>conftest.$ac_ext
27814 cat >>conftest.$ac_ext <<_ACEOF
27815 /* end confdefs.h. */
27816 $ac_includes_default
27817 typedef long int ac__type_sizeof_;
27818 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
27819 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
27821 #include <stdlib.h>
27826 FILE *f = fopen ("conftest.val", "w");
27829 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
27831 long int i = longval ();
27832 if (i != ((long int) (sizeof (ac__type_sizeof_))))
27834 fprintf (f, "%ld\n", i);
27838 unsigned long int i = ulongval ();
27839 if (i != ((long int) (sizeof (ac__type_sizeof_))))
27841 fprintf (f, "%lu\n", i);
27843 return ferror (f) || fclose (f) != 0;
27849 rm -f conftest$ac_exeext
27850 if { (ac_try="$ac_link"
27851 case "(($ac_try" in
27852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27853 *) ac_try_echo=$ac_try;;
27855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27856 (eval "$ac_link") 2>&5
27858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27859 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27860 { (case "(($ac_try" in
27861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27862 *) ac_try_echo=$ac_try;;
27864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27865 (eval "$ac_try") 2>&5
27867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27868 (exit $ac_status); }; }; then
27869 ac_cv_sizeof_long_int=`cat conftest.val`
27871 echo "$as_me: program exited with status $ac_status" >&5
27872 echo "$as_me: failed program was:" >&5
27873 sed 's/^/| /' conftest.$ac_ext >&5
27875 ( exit $ac_status )
27876 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int)
27877 See \`config.log' for more details." >&5
27878 echo "$as_me: error: cannot compute sizeof (long int)
27879 See \`config.log' for more details." >&2;}
27880 { (exit 77); exit 77; }; }
27882 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27886 ac_cv_sizeof_long_int=0
27889 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_int" >&5
27890 echo "${ECHO_T}$ac_cv_sizeof_long_int" >&6; }
27891 cat >>confdefs.h <<_ACEOF
27892 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
27896 { echo "$as_me:$LINENO: checking for long long int" >&5
27897 echo $ECHO_N "checking for long long int... $ECHO_C" >&6; }
27898 if test "${ac_cv_type_long_long_int+set}" = set; then
27899 echo $ECHO_N "(cached) $ECHO_C" >&6
27901 cat >conftest.$ac_ext <<_ACEOF
27904 cat confdefs.h >>conftest.$ac_ext
27905 cat >>conftest.$ac_ext <<_ACEOF
27906 /* end confdefs.h. */
27907 $ac_includes_default
27908 typedef long long int ac__type_new_;
27912 if ((ac__type_new_ *) 0)
27914 if (sizeof (ac__type_new_))
27920 rm -f conftest.$ac_objext
27921 if { (ac_try="$ac_compile"
27922 case "(($ac_try" in
27923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27924 *) ac_try_echo=$ac_try;;
27926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27927 (eval "$ac_compile") 2>conftest.er1
27929 grep -v '^ *+' conftest.er1 >conftest.err
27931 cat conftest.err >&5
27932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27933 (exit $ac_status); } &&
27934 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27935 { (case "(($ac_try" in
27936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27937 *) ac_try_echo=$ac_try;;
27939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27940 (eval "$ac_try") 2>&5
27942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27943 (exit $ac_status); }; } &&
27944 { ac_try='test -s conftest.$ac_objext'
27945 { (case "(($ac_try" in
27946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27947 *) ac_try_echo=$ac_try;;
27949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27950 (eval "$ac_try") 2>&5
27952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27953 (exit $ac_status); }; }; then
27954 ac_cv_type_long_long_int=yes
27956 echo "$as_me: failed program was:" >&5
27957 sed 's/^/| /' conftest.$ac_ext >&5
27959 ac_cv_type_long_long_int=no
27962 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27964 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
27965 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6; }
27967 { echo "$as_me:$LINENO: checking size of long long int" >&5
27968 echo $ECHO_N "checking size of long long int... $ECHO_C" >&6; }
27969 if test "${ac_cv_sizeof_long_long_int+set}" = set; then
27970 echo $ECHO_N "(cached) $ECHO_C" >&6
27972 if test "$ac_cv_type_long_long_int" = yes; then
27973 # The cast to long int works around a bug in the HP C Compiler
27974 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27975 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27976 # This bug is HP SR number 8606223364.
27977 if test "$cross_compiling" = yes; then
27978 # Depending upon the size, compute the lo and hi bounds.
27979 cat >conftest.$ac_ext <<_ACEOF
27982 cat confdefs.h >>conftest.$ac_ext
27983 cat >>conftest.$ac_ext <<_ACEOF
27984 /* end confdefs.h. */
27985 $ac_includes_default
27986 typedef long long int ac__type_sizeof_;
27990 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
27997 rm -f conftest.$ac_objext
27998 if { (ac_try="$ac_compile"
27999 case "(($ac_try" in
28000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28001 *) ac_try_echo=$ac_try;;
28003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28004 (eval "$ac_compile") 2>conftest.er1
28006 grep -v '^ *+' conftest.er1 >conftest.err
28008 cat conftest.err >&5
28009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28010 (exit $ac_status); } &&
28011 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28012 { (case "(($ac_try" in
28013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28014 *) ac_try_echo=$ac_try;;
28016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28017 (eval "$ac_try") 2>&5
28019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28020 (exit $ac_status); }; } &&
28021 { ac_try='test -s conftest.$ac_objext'
28022 { (case "(($ac_try" in
28023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28024 *) ac_try_echo=$ac_try;;
28026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28027 (eval "$ac_try") 2>&5
28029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28030 (exit $ac_status); }; }; then
28033 cat >conftest.$ac_ext <<_ACEOF
28036 cat confdefs.h >>conftest.$ac_ext
28037 cat >>conftest.$ac_ext <<_ACEOF
28038 /* end confdefs.h. */
28039 $ac_includes_default
28040 typedef long long int ac__type_sizeof_;
28044 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
28051 rm -f conftest.$ac_objext
28052 if { (ac_try="$ac_compile"
28053 case "(($ac_try" in
28054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28055 *) ac_try_echo=$ac_try;;
28057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28058 (eval "$ac_compile") 2>conftest.er1
28060 grep -v '^ *+' conftest.er1 >conftest.err
28062 cat conftest.err >&5
28063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28064 (exit $ac_status); } &&
28065 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28066 { (case "(($ac_try" in
28067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28068 *) ac_try_echo=$ac_try;;
28070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28071 (eval "$ac_try") 2>&5
28073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28074 (exit $ac_status); }; } &&
28075 { ac_try='test -s conftest.$ac_objext'
28076 { (case "(($ac_try" in
28077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28078 *) ac_try_echo=$ac_try;;
28080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28081 (eval "$ac_try") 2>&5
28083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28084 (exit $ac_status); }; }; then
28085 ac_hi=$ac_mid; break
28087 echo "$as_me: failed program was:" >&5
28088 sed 's/^/| /' conftest.$ac_ext >&5
28090 ac_lo=`expr $ac_mid + 1`
28091 if test $ac_lo -le $ac_mid; then
28095 ac_mid=`expr 2 '*' $ac_mid + 1`
28098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28101 echo "$as_me: failed program was:" >&5
28102 sed 's/^/| /' conftest.$ac_ext >&5
28104 cat >conftest.$ac_ext <<_ACEOF
28107 cat confdefs.h >>conftest.$ac_ext
28108 cat >>conftest.$ac_ext <<_ACEOF
28109 /* end confdefs.h. */
28110 $ac_includes_default
28111 typedef long long int ac__type_sizeof_;
28115 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
28122 rm -f conftest.$ac_objext
28123 if { (ac_try="$ac_compile"
28124 case "(($ac_try" in
28125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28126 *) ac_try_echo=$ac_try;;
28128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28129 (eval "$ac_compile") 2>conftest.er1
28131 grep -v '^ *+' conftest.er1 >conftest.err
28133 cat conftest.err >&5
28134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28135 (exit $ac_status); } &&
28136 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28137 { (case "(($ac_try" in
28138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28139 *) ac_try_echo=$ac_try;;
28141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28142 (eval "$ac_try") 2>&5
28144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28145 (exit $ac_status); }; } &&
28146 { ac_try='test -s conftest.$ac_objext'
28147 { (case "(($ac_try" in
28148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28149 *) ac_try_echo=$ac_try;;
28151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28152 (eval "$ac_try") 2>&5
28154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28155 (exit $ac_status); }; }; then
28158 cat >conftest.$ac_ext <<_ACEOF
28161 cat confdefs.h >>conftest.$ac_ext
28162 cat >>conftest.$ac_ext <<_ACEOF
28163 /* end confdefs.h. */
28164 $ac_includes_default
28165 typedef long long int ac__type_sizeof_;
28169 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
28176 rm -f conftest.$ac_objext
28177 if { (ac_try="$ac_compile"
28178 case "(($ac_try" in
28179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28180 *) ac_try_echo=$ac_try;;
28182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28183 (eval "$ac_compile") 2>conftest.er1
28185 grep -v '^ *+' conftest.er1 >conftest.err
28187 cat conftest.err >&5
28188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28189 (exit $ac_status); } &&
28190 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28191 { (case "(($ac_try" in
28192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28193 *) ac_try_echo=$ac_try;;
28195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28196 (eval "$ac_try") 2>&5
28198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28199 (exit $ac_status); }; } &&
28200 { ac_try='test -s conftest.$ac_objext'
28201 { (case "(($ac_try" in
28202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28203 *) ac_try_echo=$ac_try;;
28205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28206 (eval "$ac_try") 2>&5
28208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28209 (exit $ac_status); }; }; then
28210 ac_lo=$ac_mid; break
28212 echo "$as_me: failed program was:" >&5
28213 sed 's/^/| /' conftest.$ac_ext >&5
28215 ac_hi=`expr '(' $ac_mid ')' - 1`
28216 if test $ac_mid -le $ac_hi; then
28220 ac_mid=`expr 2 '*' $ac_mid`
28223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28226 echo "$as_me: failed program was:" >&5
28227 sed 's/^/| /' conftest.$ac_ext >&5
28232 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28235 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28236 # Binary search between lo and hi bounds.
28237 while test "x$ac_lo" != "x$ac_hi"; do
28238 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
28239 cat >conftest.$ac_ext <<_ACEOF
28242 cat confdefs.h >>conftest.$ac_ext
28243 cat >>conftest.$ac_ext <<_ACEOF
28244 /* end confdefs.h. */
28245 $ac_includes_default
28246 typedef long long int ac__type_sizeof_;
28250 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
28257 rm -f conftest.$ac_objext
28258 if { (ac_try="$ac_compile"
28259 case "(($ac_try" in
28260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28261 *) ac_try_echo=$ac_try;;
28263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28264 (eval "$ac_compile") 2>conftest.er1
28266 grep -v '^ *+' conftest.er1 >conftest.err
28268 cat conftest.err >&5
28269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28270 (exit $ac_status); } &&
28271 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28272 { (case "(($ac_try" in
28273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28274 *) ac_try_echo=$ac_try;;
28276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28277 (eval "$ac_try") 2>&5
28279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28280 (exit $ac_status); }; } &&
28281 { ac_try='test -s conftest.$ac_objext'
28282 { (case "(($ac_try" in
28283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28284 *) ac_try_echo=$ac_try;;
28286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28287 (eval "$ac_try") 2>&5
28289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28290 (exit $ac_status); }; }; then
28293 echo "$as_me: failed program was:" >&5
28294 sed 's/^/| /' conftest.$ac_ext >&5
28296 ac_lo=`expr '(' $ac_mid ')' + 1`
28299 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28302 ?*) ac_cv_sizeof_long_long_int=$ac_lo;;
28303 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int)
28304 See \`config.log' for more details." >&5
28305 echo "$as_me: error: cannot compute sizeof (long long int)
28306 See \`config.log' for more details." >&2;}
28307 { (exit 77); exit 77; }; } ;;
28310 cat >conftest.$ac_ext <<_ACEOF
28313 cat confdefs.h >>conftest.$ac_ext
28314 cat >>conftest.$ac_ext <<_ACEOF
28315 /* end confdefs.h. */
28316 $ac_includes_default
28317 typedef long long int ac__type_sizeof_;
28318 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
28319 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
28321 #include <stdlib.h>
28326 FILE *f = fopen ("conftest.val", "w");
28329 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
28331 long int i = longval ();
28332 if (i != ((long int) (sizeof (ac__type_sizeof_))))
28334 fprintf (f, "%ld\n", i);
28338 unsigned long int i = ulongval ();
28339 if (i != ((long int) (sizeof (ac__type_sizeof_))))
28341 fprintf (f, "%lu\n", i);
28343 return ferror (f) || fclose (f) != 0;
28349 rm -f conftest$ac_exeext
28350 if { (ac_try="$ac_link"
28351 case "(($ac_try" in
28352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28353 *) ac_try_echo=$ac_try;;
28355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28356 (eval "$ac_link") 2>&5
28358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28359 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28360 { (case "(($ac_try" in
28361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28362 *) ac_try_echo=$ac_try;;
28364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28365 (eval "$ac_try") 2>&5
28367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28368 (exit $ac_status); }; }; then
28369 ac_cv_sizeof_long_long_int=`cat conftest.val`
28371 echo "$as_me: program exited with status $ac_status" >&5
28372 echo "$as_me: failed program was:" >&5
28373 sed 's/^/| /' conftest.$ac_ext >&5
28375 ( exit $ac_status )
28376 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int)
28377 See \`config.log' for more details." >&5
28378 echo "$as_me: error: cannot compute sizeof (long long int)
28379 See \`config.log' for more details." >&2;}
28380 { (exit 77); exit 77; }; }
28382 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28386 ac_cv_sizeof_long_long_int=0
28389 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long_int" >&5
28390 echo "${ECHO_T}$ac_cv_sizeof_long_long_int" >&6; }
28391 cat >>confdefs.h <<_ACEOF
28392 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
28396 { echo "$as_me:$LINENO: checking for int *" >&5
28397 echo $ECHO_N "checking for int *... $ECHO_C" >&6; }
28398 if test "${ac_cv_type_int_p+set}" = set; then
28399 echo $ECHO_N "(cached) $ECHO_C" >&6
28401 cat >conftest.$ac_ext <<_ACEOF
28404 cat confdefs.h >>conftest.$ac_ext
28405 cat >>conftest.$ac_ext <<_ACEOF
28406 /* end confdefs.h. */
28407 $ac_includes_default
28408 typedef int * ac__type_new_;
28412 if ((ac__type_new_ *) 0)
28414 if (sizeof (ac__type_new_))
28420 rm -f conftest.$ac_objext
28421 if { (ac_try="$ac_compile"
28422 case "(($ac_try" in
28423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28424 *) ac_try_echo=$ac_try;;
28426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28427 (eval "$ac_compile") 2>conftest.er1
28429 grep -v '^ *+' conftest.er1 >conftest.err
28431 cat conftest.err >&5
28432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28433 (exit $ac_status); } &&
28434 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28435 { (case "(($ac_try" in
28436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28437 *) ac_try_echo=$ac_try;;
28439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28440 (eval "$ac_try") 2>&5
28442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28443 (exit $ac_status); }; } &&
28444 { ac_try='test -s conftest.$ac_objext'
28445 { (case "(($ac_try" in
28446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28447 *) ac_try_echo=$ac_try;;
28449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28450 (eval "$ac_try") 2>&5
28452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28453 (exit $ac_status); }; }; then
28454 ac_cv_type_int_p=yes
28456 echo "$as_me: failed program was:" >&5
28457 sed 's/^/| /' conftest.$ac_ext >&5
28459 ac_cv_type_int_p=no
28462 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28464 { echo "$as_me:$LINENO: result: $ac_cv_type_int_p" >&5
28465 echo "${ECHO_T}$ac_cv_type_int_p" >&6; }
28467 { echo "$as_me:$LINENO: checking size of int *" >&5
28468 echo $ECHO_N "checking size of int *... $ECHO_C" >&6; }
28469 if test "${ac_cv_sizeof_int_p+set}" = set; then
28470 echo $ECHO_N "(cached) $ECHO_C" >&6
28472 if test "$ac_cv_type_int_p" = yes; then
28473 # The cast to long int works around a bug in the HP C Compiler
28474 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
28475 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
28476 # This bug is HP SR number 8606223364.
28477 if test "$cross_compiling" = yes; then
28478 # Depending upon the size, compute the lo and hi bounds.
28479 cat >conftest.$ac_ext <<_ACEOF
28482 cat confdefs.h >>conftest.$ac_ext
28483 cat >>conftest.$ac_ext <<_ACEOF
28484 /* end confdefs.h. */
28485 $ac_includes_default
28486 typedef int * ac__type_sizeof_;
28490 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
28497 rm -f conftest.$ac_objext
28498 if { (ac_try="$ac_compile"
28499 case "(($ac_try" in
28500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28501 *) ac_try_echo=$ac_try;;
28503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28504 (eval "$ac_compile") 2>conftest.er1
28506 grep -v '^ *+' conftest.er1 >conftest.err
28508 cat conftest.err >&5
28509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28510 (exit $ac_status); } &&
28511 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28512 { (case "(($ac_try" in
28513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28514 *) ac_try_echo=$ac_try;;
28516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28517 (eval "$ac_try") 2>&5
28519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28520 (exit $ac_status); }; } &&
28521 { ac_try='test -s conftest.$ac_objext'
28522 { (case "(($ac_try" in
28523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28524 *) ac_try_echo=$ac_try;;
28526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28527 (eval "$ac_try") 2>&5
28529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28530 (exit $ac_status); }; }; then
28533 cat >conftest.$ac_ext <<_ACEOF
28536 cat confdefs.h >>conftest.$ac_ext
28537 cat >>conftest.$ac_ext <<_ACEOF
28538 /* end confdefs.h. */
28539 $ac_includes_default
28540 typedef int * ac__type_sizeof_;
28544 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
28551 rm -f conftest.$ac_objext
28552 if { (ac_try="$ac_compile"
28553 case "(($ac_try" in
28554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28555 *) ac_try_echo=$ac_try;;
28557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28558 (eval "$ac_compile") 2>conftest.er1
28560 grep -v '^ *+' conftest.er1 >conftest.err
28562 cat conftest.err >&5
28563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28564 (exit $ac_status); } &&
28565 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28566 { (case "(($ac_try" in
28567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28568 *) ac_try_echo=$ac_try;;
28570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28571 (eval "$ac_try") 2>&5
28573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28574 (exit $ac_status); }; } &&
28575 { ac_try='test -s conftest.$ac_objext'
28576 { (case "(($ac_try" in
28577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28578 *) ac_try_echo=$ac_try;;
28580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28581 (eval "$ac_try") 2>&5
28583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28584 (exit $ac_status); }; }; then
28585 ac_hi=$ac_mid; break
28587 echo "$as_me: failed program was:" >&5
28588 sed 's/^/| /' conftest.$ac_ext >&5
28590 ac_lo=`expr $ac_mid + 1`
28591 if test $ac_lo -le $ac_mid; then
28595 ac_mid=`expr 2 '*' $ac_mid + 1`
28598 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28601 echo "$as_me: failed program was:" >&5
28602 sed 's/^/| /' conftest.$ac_ext >&5
28604 cat >conftest.$ac_ext <<_ACEOF
28607 cat confdefs.h >>conftest.$ac_ext
28608 cat >>conftest.$ac_ext <<_ACEOF
28609 /* end confdefs.h. */
28610 $ac_includes_default
28611 typedef int * ac__type_sizeof_;
28615 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
28622 rm -f conftest.$ac_objext
28623 if { (ac_try="$ac_compile"
28624 case "(($ac_try" in
28625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28626 *) ac_try_echo=$ac_try;;
28628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28629 (eval "$ac_compile") 2>conftest.er1
28631 grep -v '^ *+' conftest.er1 >conftest.err
28633 cat conftest.err >&5
28634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28635 (exit $ac_status); } &&
28636 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28637 { (case "(($ac_try" in
28638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28639 *) ac_try_echo=$ac_try;;
28641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28642 (eval "$ac_try") 2>&5
28644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28645 (exit $ac_status); }; } &&
28646 { ac_try='test -s conftest.$ac_objext'
28647 { (case "(($ac_try" in
28648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28649 *) ac_try_echo=$ac_try;;
28651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28652 (eval "$ac_try") 2>&5
28654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28655 (exit $ac_status); }; }; then
28658 cat >conftest.$ac_ext <<_ACEOF
28661 cat confdefs.h >>conftest.$ac_ext
28662 cat >>conftest.$ac_ext <<_ACEOF
28663 /* end confdefs.h. */
28664 $ac_includes_default
28665 typedef int * ac__type_sizeof_;
28669 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
28676 rm -f conftest.$ac_objext
28677 if { (ac_try="$ac_compile"
28678 case "(($ac_try" in
28679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28680 *) ac_try_echo=$ac_try;;
28682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28683 (eval "$ac_compile") 2>conftest.er1
28685 grep -v '^ *+' conftest.er1 >conftest.err
28687 cat conftest.err >&5
28688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28689 (exit $ac_status); } &&
28690 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28691 { (case "(($ac_try" in
28692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28693 *) ac_try_echo=$ac_try;;
28695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28696 (eval "$ac_try") 2>&5
28698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28699 (exit $ac_status); }; } &&
28700 { ac_try='test -s conftest.$ac_objext'
28701 { (case "(($ac_try" in
28702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28703 *) ac_try_echo=$ac_try;;
28705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28706 (eval "$ac_try") 2>&5
28708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28709 (exit $ac_status); }; }; then
28710 ac_lo=$ac_mid; break
28712 echo "$as_me: failed program was:" >&5
28713 sed 's/^/| /' conftest.$ac_ext >&5
28715 ac_hi=`expr '(' $ac_mid ')' - 1`
28716 if test $ac_mid -le $ac_hi; then
28720 ac_mid=`expr 2 '*' $ac_mid`
28723 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28726 echo "$as_me: failed program was:" >&5
28727 sed 's/^/| /' conftest.$ac_ext >&5
28732 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28735 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28736 # Binary search between lo and hi bounds.
28737 while test "x$ac_lo" != "x$ac_hi"; do
28738 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
28739 cat >conftest.$ac_ext <<_ACEOF
28742 cat confdefs.h >>conftest.$ac_ext
28743 cat >>conftest.$ac_ext <<_ACEOF
28744 /* end confdefs.h. */
28745 $ac_includes_default
28746 typedef int * ac__type_sizeof_;
28750 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
28757 rm -f conftest.$ac_objext
28758 if { (ac_try="$ac_compile"
28759 case "(($ac_try" in
28760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28761 *) ac_try_echo=$ac_try;;
28763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28764 (eval "$ac_compile") 2>conftest.er1
28766 grep -v '^ *+' conftest.er1 >conftest.err
28768 cat conftest.err >&5
28769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28770 (exit $ac_status); } &&
28771 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28772 { (case "(($ac_try" in
28773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28774 *) ac_try_echo=$ac_try;;
28776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28777 (eval "$ac_try") 2>&5
28779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28780 (exit $ac_status); }; } &&
28781 { ac_try='test -s conftest.$ac_objext'
28782 { (case "(($ac_try" in
28783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28784 *) ac_try_echo=$ac_try;;
28786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28787 (eval "$ac_try") 2>&5
28789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28790 (exit $ac_status); }; }; then
28793 echo "$as_me: failed program was:" >&5
28794 sed 's/^/| /' conftest.$ac_ext >&5
28796 ac_lo=`expr '(' $ac_mid ')' + 1`
28799 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28802 ?*) ac_cv_sizeof_int_p=$ac_lo;;
28803 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *)
28804 See \`config.log' for more details." >&5
28805 echo "$as_me: error: cannot compute sizeof (int *)
28806 See \`config.log' for more details." >&2;}
28807 { (exit 77); exit 77; }; } ;;
28810 cat >conftest.$ac_ext <<_ACEOF
28813 cat confdefs.h >>conftest.$ac_ext
28814 cat >>conftest.$ac_ext <<_ACEOF
28815 /* end confdefs.h. */
28816 $ac_includes_default
28817 typedef int * ac__type_sizeof_;
28818 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
28819 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
28821 #include <stdlib.h>
28826 FILE *f = fopen ("conftest.val", "w");
28829 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
28831 long int i = longval ();
28832 if (i != ((long int) (sizeof (ac__type_sizeof_))))
28834 fprintf (f, "%ld\n", i);
28838 unsigned long int i = ulongval ();
28839 if (i != ((long int) (sizeof (ac__type_sizeof_))))
28841 fprintf (f, "%lu\n", i);
28843 return ferror (f) || fclose (f) != 0;
28849 rm -f conftest$ac_exeext
28850 if { (ac_try="$ac_link"
28851 case "(($ac_try" in
28852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28853 *) ac_try_echo=$ac_try;;
28855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28856 (eval "$ac_link") 2>&5
28858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28859 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28860 { (case "(($ac_try" in
28861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28862 *) ac_try_echo=$ac_try;;
28864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28865 (eval "$ac_try") 2>&5
28867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28868 (exit $ac_status); }; }; then
28869 ac_cv_sizeof_int_p=`cat conftest.val`
28871 echo "$as_me: program exited with status $ac_status" >&5
28872 echo "$as_me: failed program was:" >&5
28873 sed 's/^/| /' conftest.$ac_ext >&5
28875 ( exit $ac_status )
28876 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *)
28877 See \`config.log' for more details." >&5
28878 echo "$as_me: error: cannot compute sizeof (int *)
28879 See \`config.log' for more details." >&2;}
28880 { (exit 77); exit 77; }; }
28882 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28886 ac_cv_sizeof_int_p=0
28889 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int_p" >&5
28890 echo "${ECHO_T}$ac_cv_sizeof_int_p" >&6; }
28891 cat >>confdefs.h <<_ACEOF
28892 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
28897 # Check for sys/types.h types
28898 { echo "$as_me:$LINENO: checking for u_int type" >&5
28899 echo $ECHO_N "checking for u_int type... $ECHO_C" >&6; }
28900 if test "${ac_cv_have_u_int+set}" = set; then
28901 echo $ECHO_N "(cached) $ECHO_C" >&6
28904 cat >conftest.$ac_ext <<_ACEOF
28907 cat confdefs.h >>conftest.$ac_ext
28908 cat >>conftest.$ac_ext <<_ACEOF
28909 /* end confdefs.h. */
28910 #include <sys/types.h>
28919 rm -f conftest.$ac_objext
28920 if { (ac_try="$ac_compile"
28921 case "(($ac_try" in
28922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28923 *) ac_try_echo=$ac_try;;
28925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28926 (eval "$ac_compile") 2>conftest.er1
28928 grep -v '^ *+' conftest.er1 >conftest.err
28930 cat conftest.err >&5
28931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28932 (exit $ac_status); } &&
28933 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28934 { (case "(($ac_try" in
28935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28936 *) ac_try_echo=$ac_try;;
28938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28939 (eval "$ac_try") 2>&5
28941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28942 (exit $ac_status); }; } &&
28943 { ac_try='test -s conftest.$ac_objext'
28944 { (case "(($ac_try" in
28945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28946 *) ac_try_echo=$ac_try;;
28948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28949 (eval "$ac_try") 2>&5
28951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28952 (exit $ac_status); }; }; then
28953 ac_cv_have_u_int="yes"
28955 echo "$as_me: failed program was:" >&5
28956 sed 's/^/| /' conftest.$ac_ext >&5
28958 ac_cv_have_u_int="no"
28962 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28965 { echo "$as_me:$LINENO: result: $ac_cv_have_u_int" >&5
28966 echo "${ECHO_T}$ac_cv_have_u_int" >&6; }
28967 if test "x$ac_cv_have_u_int" = "xyes" ; then
28968 cat >>confdefs.h <<\_ACEOF
28969 #define HAVE_U_INT 1
28975 { echo "$as_me:$LINENO: checking for intmax_t type" >&5
28976 echo $ECHO_N "checking for intmax_t type... $ECHO_C" >&6; }
28977 if test "${ac_cv_have_intmax_t+set}" = set; then
28978 echo $ECHO_N "(cached) $ECHO_C" >&6
28981 cat >conftest.$ac_ext <<_ACEOF
28984 cat confdefs.h >>conftest.$ac_ext
28985 cat >>conftest.$ac_ext <<_ACEOF
28986 /* end confdefs.h. */
28987 #include <sys/types.h>
28996 rm -f conftest.$ac_objext
28997 if { (ac_try="$ac_compile"
28998 case "(($ac_try" in
28999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29000 *) ac_try_echo=$ac_try;;
29002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29003 (eval "$ac_compile") 2>conftest.er1
29005 grep -v '^ *+' conftest.er1 >conftest.err
29007 cat conftest.err >&5
29008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29009 (exit $ac_status); } &&
29010 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29011 { (case "(($ac_try" in
29012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29013 *) ac_try_echo=$ac_try;;
29015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29016 (eval "$ac_try") 2>&5
29018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29019 (exit $ac_status); }; } &&
29020 { ac_try='test -s conftest.$ac_objext'
29021 { (case "(($ac_try" in
29022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29023 *) ac_try_echo=$ac_try;;
29025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29026 (eval "$ac_try") 2>&5
29028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29029 (exit $ac_status); }; }; then
29030 ac_cv_have_intmax_t="yes"
29032 echo "$as_me: failed program was:" >&5
29033 sed 's/^/| /' conftest.$ac_ext >&5
29036 cat >conftest.$ac_ext <<_ACEOF
29039 cat confdefs.h >>conftest.$ac_ext
29040 cat >>conftest.$ac_ext <<_ACEOF
29041 /* end confdefs.h. */
29042 #include <stdint.h>
29051 rm -f conftest.$ac_objext
29052 if { (ac_try="$ac_compile"
29053 case "(($ac_try" in
29054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29055 *) ac_try_echo=$ac_try;;
29057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29058 (eval "$ac_compile") 2>conftest.er1
29060 grep -v '^ *+' conftest.er1 >conftest.err
29062 cat conftest.err >&5
29063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29064 (exit $ac_status); } &&
29065 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29066 { (case "(($ac_try" in
29067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29068 *) ac_try_echo=$ac_try;;
29070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29071 (eval "$ac_try") 2>&5
29073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29074 (exit $ac_status); }; } &&
29075 { ac_try='test -s conftest.$ac_objext'
29076 { (case "(($ac_try" in
29077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29078 *) ac_try_echo=$ac_try;;
29080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29081 (eval "$ac_try") 2>&5
29083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29084 (exit $ac_status); }; }; then
29085 ac_cv_have_intmax_t="yes"
29087 echo "$as_me: failed program was:" >&5
29088 sed 's/^/| /' conftest.$ac_ext >&5
29090 ac_cv_have_intmax_t="no"
29094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29099 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29103 { echo "$as_me:$LINENO: result: $ac_cv_have_intmax_t" >&5
29104 echo "${ECHO_T}$ac_cv_have_intmax_t" >&6; }
29105 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
29106 cat >>confdefs.h <<\_ACEOF
29107 #define HAVE_INTMAX_T 1
29114 { echo "$as_me:$LINENO: checking for u_intmax_t type" >&5
29115 echo $ECHO_N "checking for u_intmax_t type... $ECHO_C" >&6; }
29116 if test "${ac_cv_have_u_intmax_t+set}" = set; then
29117 echo $ECHO_N "(cached) $ECHO_C" >&6
29120 cat >conftest.$ac_ext <<_ACEOF
29123 cat confdefs.h >>conftest.$ac_ext
29124 cat >>conftest.$ac_ext <<_ACEOF
29125 /* end confdefs.h. */
29126 #include <sys/types.h>
29130 u_intmax_t a; a = 1;
29135 rm -f conftest.$ac_objext
29136 if { (ac_try="$ac_compile"
29137 case "(($ac_try" in
29138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29139 *) ac_try_echo=$ac_try;;
29141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29142 (eval "$ac_compile") 2>conftest.er1
29144 grep -v '^ *+' conftest.er1 >conftest.err
29146 cat conftest.err >&5
29147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29148 (exit $ac_status); } &&
29149 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29150 { (case "(($ac_try" in
29151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29152 *) ac_try_echo=$ac_try;;
29154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29155 (eval "$ac_try") 2>&5
29157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29158 (exit $ac_status); }; } &&
29159 { ac_try='test -s conftest.$ac_objext'
29160 { (case "(($ac_try" in
29161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29162 *) ac_try_echo=$ac_try;;
29164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29165 (eval "$ac_try") 2>&5
29167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29168 (exit $ac_status); }; }; then
29169 ac_cv_have_u_intmax_t="yes"
29171 echo "$as_me: failed program was:" >&5
29172 sed 's/^/| /' conftest.$ac_ext >&5
29175 cat >conftest.$ac_ext <<_ACEOF
29178 cat confdefs.h >>conftest.$ac_ext
29179 cat >>conftest.$ac_ext <<_ACEOF
29180 /* end confdefs.h. */
29181 #include <stdint.h>
29185 u_intmax_t a; a = 1;
29190 rm -f conftest.$ac_objext
29191 if { (ac_try="$ac_compile"
29192 case "(($ac_try" in
29193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29194 *) ac_try_echo=$ac_try;;
29196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29197 (eval "$ac_compile") 2>conftest.er1
29199 grep -v '^ *+' conftest.er1 >conftest.err
29201 cat conftest.err >&5
29202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29203 (exit $ac_status); } &&
29204 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29205 { (case "(($ac_try" in
29206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29207 *) ac_try_echo=$ac_try;;
29209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29210 (eval "$ac_try") 2>&5
29212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29213 (exit $ac_status); }; } &&
29214 { ac_try='test -s conftest.$ac_objext'
29215 { (case "(($ac_try" in
29216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29217 *) ac_try_echo=$ac_try;;
29219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29220 (eval "$ac_try") 2>&5
29222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29223 (exit $ac_status); }; }; then
29224 ac_cv_have_u_intmax_t="yes"
29226 echo "$as_me: failed program was:" >&5
29227 sed 's/^/| /' conftest.$ac_ext >&5
29229 ac_cv_have_u_intmax_t="no"
29233 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29238 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29241 { echo "$as_me:$LINENO: result: $ac_cv_have_u_intmax_t" >&5
29242 echo "${ECHO_T}$ac_cv_have_u_intmax_t" >&6; }
29243 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
29244 cat >>confdefs.h <<\_ACEOF
29245 #define HAVE_U_INTMAX_T 1
29252 { echo "$as_me:$LINENO: checking for intXX_t types" >&5
29253 echo $ECHO_N "checking for intXX_t types... $ECHO_C" >&6; }
29254 if test "${ac_cv_have_intxx_t+set}" = set; then
29255 echo $ECHO_N "(cached) $ECHO_C" >&6
29258 cat >conftest.$ac_ext <<_ACEOF
29261 cat confdefs.h >>conftest.$ac_ext
29262 cat >>conftest.$ac_ext <<_ACEOF
29263 /* end confdefs.h. */
29264 #include <sys/types.h>
29268 int8_t a; int16_t b; int32_t c; a = b = c = 1;
29273 rm -f conftest.$ac_objext
29274 if { (ac_try="$ac_compile"
29275 case "(($ac_try" in
29276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29277 *) ac_try_echo=$ac_try;;
29279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29280 (eval "$ac_compile") 2>conftest.er1
29282 grep -v '^ *+' conftest.er1 >conftest.err
29284 cat conftest.err >&5
29285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29286 (exit $ac_status); } &&
29287 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29288 { (case "(($ac_try" in
29289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29290 *) ac_try_echo=$ac_try;;
29292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29293 (eval "$ac_try") 2>&5
29295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29296 (exit $ac_status); }; } &&
29297 { ac_try='test -s conftest.$ac_objext'
29298 { (case "(($ac_try" in
29299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29300 *) ac_try_echo=$ac_try;;
29302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29303 (eval "$ac_try") 2>&5
29305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29306 (exit $ac_status); }; }; then
29307 ac_cv_have_intxx_t="yes"
29309 echo "$as_me: failed program was:" >&5
29310 sed 's/^/| /' conftest.$ac_ext >&5
29312 ac_cv_have_intxx_t="no"
29316 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29319 { echo "$as_me:$LINENO: result: $ac_cv_have_intxx_t" >&5
29320 echo "${ECHO_T}$ac_cv_have_intxx_t" >&6; }
29321 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
29322 cat >>confdefs.h <<\_ACEOF
29323 #define HAVE_INTXX_T 1
29329 { echo "$as_me:$LINENO: checking for int64_t type" >&5
29330 echo $ECHO_N "checking for int64_t type... $ECHO_C" >&6; }
29331 if test "${ac_cv_have_int64_t+set}" = set; then
29332 echo $ECHO_N "(cached) $ECHO_C" >&6
29335 cat >conftest.$ac_ext <<_ACEOF
29338 cat confdefs.h >>conftest.$ac_ext
29339 cat >>conftest.$ac_ext <<_ACEOF
29340 /* end confdefs.h. */
29341 #include <sys/types.h>
29350 rm -f conftest.$ac_objext
29351 if { (ac_try="$ac_compile"
29352 case "(($ac_try" in
29353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29354 *) ac_try_echo=$ac_try;;
29356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29357 (eval "$ac_compile") 2>conftest.er1
29359 grep -v '^ *+' conftest.er1 >conftest.err
29361 cat conftest.err >&5
29362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29363 (exit $ac_status); } &&
29364 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29365 { (case "(($ac_try" in
29366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29367 *) ac_try_echo=$ac_try;;
29369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29370 (eval "$ac_try") 2>&5
29372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29373 (exit $ac_status); }; } &&
29374 { ac_try='test -s conftest.$ac_objext'
29375 { (case "(($ac_try" in
29376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29377 *) ac_try_echo=$ac_try;;
29379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29380 (eval "$ac_try") 2>&5
29382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29383 (exit $ac_status); }; }; then
29384 ac_cv_have_int64_t="yes"
29386 echo "$as_me: failed program was:" >&5
29387 sed 's/^/| /' conftest.$ac_ext >&5
29389 ac_cv_have_int64_t="no"
29393 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29396 { echo "$as_me:$LINENO: result: $ac_cv_have_int64_t" >&5
29397 echo "${ECHO_T}$ac_cv_have_int64_t" >&6; }
29398 if test "x$ac_cv_have_int64_t" = "xyes" ; then
29399 cat >>confdefs.h <<\_ACEOF
29400 #define HAVE_INT64_T 1
29406 { echo "$as_me:$LINENO: checking for u_intXX_t types" >&5
29407 echo $ECHO_N "checking for u_intXX_t types... $ECHO_C" >&6; }
29408 if test "${ac_cv_have_u_intxx_t+set}" = set; then
29409 echo $ECHO_N "(cached) $ECHO_C" >&6
29412 cat >conftest.$ac_ext <<_ACEOF
29415 cat confdefs.h >>conftest.$ac_ext
29416 cat >>conftest.$ac_ext <<_ACEOF
29417 /* end confdefs.h. */
29418 #include <sys/types.h>
29422 u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
29427 rm -f conftest.$ac_objext
29428 if { (ac_try="$ac_compile"
29429 case "(($ac_try" in
29430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29431 *) ac_try_echo=$ac_try;;
29433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29434 (eval "$ac_compile") 2>conftest.er1
29436 grep -v '^ *+' conftest.er1 >conftest.err
29438 cat conftest.err >&5
29439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29440 (exit $ac_status); } &&
29441 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29442 { (case "(($ac_try" in
29443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29444 *) ac_try_echo=$ac_try;;
29446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29447 (eval "$ac_try") 2>&5
29449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29450 (exit $ac_status); }; } &&
29451 { ac_try='test -s conftest.$ac_objext'
29452 { (case "(($ac_try" in
29453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29454 *) ac_try_echo=$ac_try;;
29456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29457 (eval "$ac_try") 2>&5
29459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29460 (exit $ac_status); }; }; then
29461 ac_cv_have_u_intxx_t="yes"
29463 echo "$as_me: failed program was:" >&5
29464 sed 's/^/| /' conftest.$ac_ext >&5
29466 ac_cv_have_u_intxx_t="no"
29470 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29473 { echo "$as_me:$LINENO: result: $ac_cv_have_u_intxx_t" >&5
29474 echo "${ECHO_T}$ac_cv_have_u_intxx_t" >&6; }
29475 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
29476 cat >>confdefs.h <<\_ACEOF
29477 #define HAVE_U_INTXX_T 1
29483 { echo "$as_me:$LINENO: checking for u_int64_t types" >&5
29484 echo $ECHO_N "checking for u_int64_t types... $ECHO_C" >&6; }
29485 if test "${ac_cv_have_u_int64_t+set}" = set; then
29486 echo $ECHO_N "(cached) $ECHO_C" >&6
29489 cat >conftest.$ac_ext <<_ACEOF
29492 cat confdefs.h >>conftest.$ac_ext
29493 cat >>conftest.$ac_ext <<_ACEOF
29494 /* end confdefs.h. */
29495 #include <sys/types.h>
29499 u_int64_t a; a = 1;
29504 rm -f conftest.$ac_objext
29505 if { (ac_try="$ac_compile"
29506 case "(($ac_try" in
29507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29508 *) ac_try_echo=$ac_try;;
29510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29511 (eval "$ac_compile") 2>conftest.er1
29513 grep -v '^ *+' conftest.er1 >conftest.err
29515 cat conftest.err >&5
29516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29517 (exit $ac_status); } &&
29518 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29519 { (case "(($ac_try" in
29520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29521 *) ac_try_echo=$ac_try;;
29523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29524 (eval "$ac_try") 2>&5
29526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29527 (exit $ac_status); }; } &&
29528 { ac_try='test -s conftest.$ac_objext'
29529 { (case "(($ac_try" in
29530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29531 *) ac_try_echo=$ac_try;;
29533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29534 (eval "$ac_try") 2>&5
29536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29537 (exit $ac_status); }; }; then
29538 ac_cv_have_u_int64_t="yes"
29540 echo "$as_me: failed program was:" >&5
29541 sed 's/^/| /' conftest.$ac_ext >&5
29543 ac_cv_have_u_int64_t="no"
29547 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29550 { echo "$as_me:$LINENO: result: $ac_cv_have_u_int64_t" >&5
29551 echo "${ECHO_T}$ac_cv_have_u_int64_t" >&6; }
29552 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
29553 cat >>confdefs.h <<\_ACEOF
29554 #define HAVE_U_INT64_T 1
29560 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
29561 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
29563 { echo "$as_me:$LINENO: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
29564 echo $ECHO_N "checking for intXX_t and u_intXX_t types in sys/bitypes.h... $ECHO_C" >&6; }
29565 cat >conftest.$ac_ext <<_ACEOF
29568 cat confdefs.h >>conftest.$ac_ext
29569 cat >>conftest.$ac_ext <<_ACEOF
29570 /* end confdefs.h. */
29571 #include <sys/bitypes.h>
29575 int8_t a; int16_t b; int32_t c;
29576 u_int8_t e; u_int16_t f; u_int32_t g;
29577 a = b = c = e = f = g = 1;
29582 rm -f conftest.$ac_objext
29583 if { (ac_try="$ac_compile"
29584 case "(($ac_try" in
29585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29586 *) ac_try_echo=$ac_try;;
29588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29589 (eval "$ac_compile") 2>conftest.er1
29591 grep -v '^ *+' conftest.er1 >conftest.err
29593 cat conftest.err >&5
29594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29595 (exit $ac_status); } &&
29596 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29597 { (case "(($ac_try" in
29598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29599 *) ac_try_echo=$ac_try;;
29601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29602 (eval "$ac_try") 2>&5
29604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29605 (exit $ac_status); }; } &&
29606 { ac_try='test -s conftest.$ac_objext'
29607 { (case "(($ac_try" in
29608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29609 *) ac_try_echo=$ac_try;;
29611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29612 (eval "$ac_try") 2>&5
29614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29615 (exit $ac_status); }; }; then
29616 cat >>confdefs.h <<\_ACEOF
29617 #define HAVE_U_INTXX_T 1
29620 cat >>confdefs.h <<\_ACEOF
29621 #define HAVE_INTXX_T 1
29624 cat >>confdefs.h <<\_ACEOF
29625 #define HAVE_SYS_BITYPES_H 1
29628 { echo "$as_me:$LINENO: result: yes" >&5
29629 echo "${ECHO_T}yes" >&6; }
29631 echo "$as_me: failed program was:" >&5
29632 sed 's/^/| /' conftest.$ac_ext >&5
29634 { echo "$as_me:$LINENO: result: no" >&5
29635 echo "${ECHO_T}no" >&6; }
29639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29642 if test -z "$have_u_intxx_t" ; then
29643 { echo "$as_me:$LINENO: checking for uintXX_t types" >&5
29644 echo $ECHO_N "checking for uintXX_t types... $ECHO_C" >&6; }
29645 if test "${ac_cv_have_uintxx_t+set}" = set; then
29646 echo $ECHO_N "(cached) $ECHO_C" >&6
29649 cat >conftest.$ac_ext <<_ACEOF
29652 cat confdefs.h >>conftest.$ac_ext
29653 cat >>conftest.$ac_ext <<_ACEOF
29654 /* end confdefs.h. */
29655 #include <sys/types.h>
29659 uint8_t a; uint16_t b;
29660 uint32_t c; a = b = c = 1;
29665 rm -f conftest.$ac_objext
29666 if { (ac_try="$ac_compile"
29667 case "(($ac_try" in
29668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29669 *) ac_try_echo=$ac_try;;
29671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29672 (eval "$ac_compile") 2>conftest.er1
29674 grep -v '^ *+' conftest.er1 >conftest.err
29676 cat conftest.err >&5
29677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29678 (exit $ac_status); } &&
29679 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29680 { (case "(($ac_try" in
29681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29682 *) ac_try_echo=$ac_try;;
29684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29685 (eval "$ac_try") 2>&5
29687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29688 (exit $ac_status); }; } &&
29689 { ac_try='test -s conftest.$ac_objext'
29690 { (case "(($ac_try" in
29691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29692 *) ac_try_echo=$ac_try;;
29694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29695 (eval "$ac_try") 2>&5
29697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29698 (exit $ac_status); }; }; then
29699 ac_cv_have_uintxx_t="yes"
29701 echo "$as_me: failed program was:" >&5
29702 sed 's/^/| /' conftest.$ac_ext >&5
29704 ac_cv_have_uintxx_t="no"
29708 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29711 { echo "$as_me:$LINENO: result: $ac_cv_have_uintxx_t" >&5
29712 echo "${ECHO_T}$ac_cv_have_uintxx_t" >&6; }
29713 if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
29714 cat >>confdefs.h <<\_ACEOF
29715 #define HAVE_UINTXX_T 1
29721 if (test -z "$have_u_int64_t" || test -z "$have_int64_t" && \
29722 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
29724 { echo "$as_me:$LINENO: checking for int64_t and u_int64_t types in sys/bitypes.h" >&5
29725 echo $ECHO_N "checking for int64_t and u_int64_t types in sys/bitypes.h... $ECHO_C" >&6; }
29726 cat >conftest.$ac_ext <<_ACEOF
29729 cat confdefs.h >>conftest.$ac_ext
29730 cat >>conftest.$ac_ext <<_ACEOF
29731 /* end confdefs.h. */
29732 #include <sys/bitypes.h>
29736 int64_t a; u_int64_t b;
29742 rm -f conftest.$ac_objext
29743 if { (ac_try="$ac_compile"
29744 case "(($ac_try" in
29745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29746 *) ac_try_echo=$ac_try;;
29748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29749 (eval "$ac_compile") 2>conftest.er1
29751 grep -v '^ *+' conftest.er1 >conftest.err
29753 cat conftest.err >&5
29754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29755 (exit $ac_status); } &&
29756 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29757 { (case "(($ac_try" in
29758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29759 *) ac_try_echo=$ac_try;;
29761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29762 (eval "$ac_try") 2>&5
29764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29765 (exit $ac_status); }; } &&
29766 { ac_try='test -s conftest.$ac_objext'
29767 { (case "(($ac_try" in
29768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29769 *) ac_try_echo=$ac_try;;
29771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29772 (eval "$ac_try") 2>&5
29774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29775 (exit $ac_status); }; }; then
29776 cat >>confdefs.h <<\_ACEOF
29777 #define HAVE_U_INT64_T 1
29780 cat >>confdefs.h <<\_ACEOF
29781 #define HAVE_INT64_T 1
29784 { echo "$as_me:$LINENO: result: yes" >&5
29785 echo "${ECHO_T}yes" >&6; }
29787 echo "$as_me: failed program was:" >&5
29788 sed 's/^/| /' conftest.$ac_ext >&5
29790 { echo "$as_me:$LINENO: result: no" >&5
29791 echo "${ECHO_T}no" >&6; }
29795 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29798 if (test -z "$have_uintxx_t" && \
29799 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
29801 { echo "$as_me:$LINENO: checking for uintXX_t types in sys/bitypes.h" >&5
29802 echo $ECHO_N "checking for uintXX_t types in sys/bitypes.h... $ECHO_C" >&6; }
29803 cat >conftest.$ac_ext <<_ACEOF
29806 cat confdefs.h >>conftest.$ac_ext
29807 cat >>conftest.$ac_ext <<_ACEOF
29808 /* end confdefs.h. */
29809 #include <sys/bitypes.h>
29813 uint8_t a; uint16_t b;
29814 uint32_t c; a = b = c = 1;
29819 rm -f conftest.$ac_objext
29820 if { (ac_try="$ac_compile"
29821 case "(($ac_try" in
29822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29823 *) ac_try_echo=$ac_try;;
29825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29826 (eval "$ac_compile") 2>conftest.er1
29828 grep -v '^ *+' conftest.er1 >conftest.err
29830 cat conftest.err >&5
29831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29832 (exit $ac_status); } &&
29833 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29834 { (case "(($ac_try" in
29835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29836 *) ac_try_echo=$ac_try;;
29838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29839 (eval "$ac_try") 2>&5
29841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29842 (exit $ac_status); }; } &&
29843 { ac_try='test -s conftest.$ac_objext'
29844 { (case "(($ac_try" in
29845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29846 *) ac_try_echo=$ac_try;;
29848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29849 (eval "$ac_try") 2>&5
29851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29852 (exit $ac_status); }; }; then
29853 cat >>confdefs.h <<\_ACEOF
29854 #define HAVE_UINTXX_T 1
29857 { echo "$as_me:$LINENO: result: yes" >&5
29858 echo "${ECHO_T}yes" >&6; }
29860 echo "$as_me: failed program was:" >&5
29861 sed 's/^/| /' conftest.$ac_ext >&5
29863 { echo "$as_me:$LINENO: result: no" >&5
29864 echo "${ECHO_T}no" >&6; }
29868 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29904 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29905 { echo "$as_me:$LINENO: checking for $ac_func" >&5
29906 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
29907 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
29908 echo $ECHO_N "(cached) $ECHO_C" >&6
29910 cat >conftest.$ac_ext <<_ACEOF
29913 cat confdefs.h >>conftest.$ac_ext
29914 cat >>conftest.$ac_ext <<_ACEOF
29915 /* end confdefs.h. */
29916 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29917 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29918 #define $ac_func innocuous_$ac_func
29920 /* System header to define __stub macros and hopefully few prototypes,
29921 which can conflict with char $ac_func (); below.
29922 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29923 <limits.h> exists even on freestanding compilers. */
29926 # include <limits.h>
29928 # include <assert.h>
29933 /* Override any GCC internal prototype to avoid an error.
29934 Use char because int might match the return type of a GCC
29935 builtin and then its argument prototype would still apply. */
29940 /* The GNU C library defines this for functions which it implements
29941 to always fail with ENOSYS. Some functions are actually named
29942 something starting with __ and the normal name is an alias. */
29943 #if defined __stub_$ac_func || defined __stub___$ac_func
29950 return $ac_func ();
29955 rm -f conftest.$ac_objext conftest$ac_exeext
29956 if { (ac_try="$ac_link"
29957 case "(($ac_try" in
29958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29959 *) ac_try_echo=$ac_try;;
29961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29962 (eval "$ac_link") 2>conftest.er1
29964 grep -v '^ *+' conftest.er1 >conftest.err
29966 cat conftest.err >&5
29967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29968 (exit $ac_status); } &&
29969 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29970 { (case "(($ac_try" in
29971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29972 *) ac_try_echo=$ac_try;;
29974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29975 (eval "$ac_try") 2>&5
29977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29978 (exit $ac_status); }; } &&
29979 { ac_try='test -s conftest$ac_exeext'
29980 { (case "(($ac_try" in
29981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29982 *) ac_try_echo=$ac_try;;
29984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29985 (eval "$ac_try") 2>&5
29987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29988 (exit $ac_status); }; }; then
29989 eval "$as_ac_var=yes"
29991 echo "$as_me: failed program was:" >&5
29992 sed 's/^/| /' conftest.$ac_ext >&5
29994 eval "$as_ac_var=no"
29997 rm -f core conftest.err conftest.$ac_objext \
29998 conftest$ac_exeext conftest.$ac_ext
30000 ac_res=`eval echo '${'$as_ac_var'}'`
30001 { echo "$as_me:$LINENO: result: $ac_res" >&5
30002 echo "${ECHO_T}$ac_res" >&6; }
30003 if test `eval echo '${'$as_ac_var'}'` = yes; then
30004 cat >>confdefs.h <<_ACEOF
30005 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30009 echo 'configure: cannot find needed function.'; exit 1
30016 for ac_func in fchdir
30018 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30019 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30020 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30021 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30022 echo $ECHO_N "(cached) $ECHO_C" >&6
30024 cat >conftest.$ac_ext <<_ACEOF
30027 cat confdefs.h >>conftest.$ac_ext
30028 cat >>conftest.$ac_ext <<_ACEOF
30029 /* end confdefs.h. */
30030 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30031 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30032 #define $ac_func innocuous_$ac_func
30034 /* System header to define __stub macros and hopefully few prototypes,
30035 which can conflict with char $ac_func (); below.
30036 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30037 <limits.h> exists even on freestanding compilers. */
30040 # include <limits.h>
30042 # include <assert.h>
30047 /* Override any GCC internal prototype to avoid an error.
30048 Use char because int might match the return type of a GCC
30049 builtin and then its argument prototype would still apply. */
30054 /* The GNU C library defines this for functions which it implements
30055 to always fail with ENOSYS. Some functions are actually named
30056 something starting with __ and the normal name is an alias. */
30057 #if defined __stub_$ac_func || defined __stub___$ac_func
30064 return $ac_func ();
30069 rm -f conftest.$ac_objext conftest$ac_exeext
30070 if { (ac_try="$ac_link"
30071 case "(($ac_try" in
30072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30073 *) ac_try_echo=$ac_try;;
30075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30076 (eval "$ac_link") 2>conftest.er1
30078 grep -v '^ *+' conftest.er1 >conftest.err
30080 cat conftest.err >&5
30081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30082 (exit $ac_status); } &&
30083 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30084 { (case "(($ac_try" in
30085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30086 *) ac_try_echo=$ac_try;;
30088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30089 (eval "$ac_try") 2>&5
30091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30092 (exit $ac_status); }; } &&
30093 { ac_try='test -s conftest$ac_exeext'
30094 { (case "(($ac_try" in
30095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30096 *) ac_try_echo=$ac_try;;
30098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30099 (eval "$ac_try") 2>&5
30101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30102 (exit $ac_status); }; }; then
30103 eval "$as_ac_var=yes"
30105 echo "$as_me: failed program was:" >&5
30106 sed 's/^/| /' conftest.$ac_ext >&5
30108 eval "$as_ac_var=no"
30111 rm -f core conftest.err conftest.$ac_objext \
30112 conftest$ac_exeext conftest.$ac_ext
30114 ac_res=`eval echo '${'$as_ac_var'}'`
30115 { echo "$as_me:$LINENO: result: $ac_res" >&5
30116 echo "${ECHO_T}$ac_res" >&6; }
30117 if test `eval echo '${'$as_ac_var'}'` = yes; then
30118 cat >>confdefs.h <<_ACEOF
30119 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30121 cat >>confdefs.h <<\_ACEOF
30122 #define HAVE_FCHDIR 1
30129 for ac_func in strtoll
30131 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30132 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30133 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30134 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30135 echo $ECHO_N "(cached) $ECHO_C" >&6
30137 cat >conftest.$ac_ext <<_ACEOF
30140 cat confdefs.h >>conftest.$ac_ext
30141 cat >>conftest.$ac_ext <<_ACEOF
30142 /* end confdefs.h. */
30143 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30144 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30145 #define $ac_func innocuous_$ac_func
30147 /* System header to define __stub macros and hopefully few prototypes,
30148 which can conflict with char $ac_func (); below.
30149 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30150 <limits.h> exists even on freestanding compilers. */
30153 # include <limits.h>
30155 # include <assert.h>
30160 /* Override any GCC internal prototype to avoid an error.
30161 Use char because int might match the return type of a GCC
30162 builtin and then its argument prototype would still apply. */
30167 /* The GNU C library defines this for functions which it implements
30168 to always fail with ENOSYS. Some functions are actually named
30169 something starting with __ and the normal name is an alias. */
30170 #if defined __stub_$ac_func || defined __stub___$ac_func
30177 return $ac_func ();
30182 rm -f conftest.$ac_objext conftest$ac_exeext
30183 if { (ac_try="$ac_link"
30184 case "(($ac_try" in
30185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30186 *) ac_try_echo=$ac_try;;
30188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30189 (eval "$ac_link") 2>conftest.er1
30191 grep -v '^ *+' conftest.er1 >conftest.err
30193 cat conftest.err >&5
30194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30195 (exit $ac_status); } &&
30196 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30197 { (case "(($ac_try" in
30198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30199 *) ac_try_echo=$ac_try;;
30201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30202 (eval "$ac_try") 2>&5
30204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30205 (exit $ac_status); }; } &&
30206 { ac_try='test -s conftest$ac_exeext'
30207 { (case "(($ac_try" in
30208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30209 *) ac_try_echo=$ac_try;;
30211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30212 (eval "$ac_try") 2>&5
30214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30215 (exit $ac_status); }; }; then
30216 eval "$as_ac_var=yes"
30218 echo "$as_me: failed program was:" >&5
30219 sed 's/^/| /' conftest.$ac_ext >&5
30221 eval "$as_ac_var=no"
30224 rm -f core conftest.err conftest.$ac_objext \
30225 conftest$ac_exeext conftest.$ac_ext
30227 ac_res=`eval echo '${'$as_ac_var'}'`
30228 { echo "$as_me:$LINENO: result: $ac_res" >&5
30229 echo "${ECHO_T}$ac_res" >&6; }
30230 if test `eval echo '${'$as_ac_var'}'` = yes; then
30231 cat >>confdefs.h <<_ACEOF
30232 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30234 cat >>confdefs.h <<\_ACEOF
30235 #define HAVE_STRTOLL 1
30242 for ac_func in posix_fadvise
30244 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30245 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30246 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30247 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30248 echo $ECHO_N "(cached) $ECHO_C" >&6
30250 cat >conftest.$ac_ext <<_ACEOF
30253 cat confdefs.h >>conftest.$ac_ext
30254 cat >>conftest.$ac_ext <<_ACEOF
30255 /* end confdefs.h. */
30256 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30257 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30258 #define $ac_func innocuous_$ac_func
30260 /* System header to define __stub macros and hopefully few prototypes,
30261 which can conflict with char $ac_func (); below.
30262 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30263 <limits.h> exists even on freestanding compilers. */
30266 # include <limits.h>
30268 # include <assert.h>
30273 /* Override any GCC internal prototype to avoid an error.
30274 Use char because int might match the return type of a GCC
30275 builtin and then its argument prototype would still apply. */
30280 /* The GNU C library defines this for functions which it implements
30281 to always fail with ENOSYS. Some functions are actually named
30282 something starting with __ and the normal name is an alias. */
30283 #if defined __stub_$ac_func || defined __stub___$ac_func
30290 return $ac_func ();
30295 rm -f conftest.$ac_objext conftest$ac_exeext
30296 if { (ac_try="$ac_link"
30297 case "(($ac_try" in
30298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30299 *) ac_try_echo=$ac_try;;
30301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30302 (eval "$ac_link") 2>conftest.er1
30304 grep -v '^ *+' conftest.er1 >conftest.err
30306 cat conftest.err >&5
30307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30308 (exit $ac_status); } &&
30309 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30310 { (case "(($ac_try" in
30311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30312 *) ac_try_echo=$ac_try;;
30314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30315 (eval "$ac_try") 2>&5
30317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30318 (exit $ac_status); }; } &&
30319 { ac_try='test -s conftest$ac_exeext'
30320 { (case "(($ac_try" in
30321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30322 *) ac_try_echo=$ac_try;;
30324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30325 (eval "$ac_try") 2>&5
30327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30328 (exit $ac_status); }; }; then
30329 eval "$as_ac_var=yes"
30331 echo "$as_me: failed program was:" >&5
30332 sed 's/^/| /' conftest.$ac_ext >&5
30334 eval "$as_ac_var=no"
30337 rm -f core conftest.err conftest.$ac_objext \
30338 conftest$ac_exeext conftest.$ac_ext
30340 ac_res=`eval echo '${'$as_ac_var'}'`
30341 { echo "$as_me:$LINENO: result: $ac_res" >&5
30342 echo "${ECHO_T}$ac_res" >&6; }
30343 if test `eval echo '${'$as_ac_var'}'` = yes; then
30344 cat >>confdefs.h <<_ACEOF
30345 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30352 for ac_func in fdatasync
30354 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30355 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30356 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30357 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30358 echo $ECHO_N "(cached) $ECHO_C" >&6
30360 cat >conftest.$ac_ext <<_ACEOF
30363 cat confdefs.h >>conftest.$ac_ext
30364 cat >>conftest.$ac_ext <<_ACEOF
30365 /* end confdefs.h. */
30366 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30367 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30368 #define $ac_func innocuous_$ac_func
30370 /* System header to define __stub macros and hopefully few prototypes,
30371 which can conflict with char $ac_func (); below.
30372 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30373 <limits.h> exists even on freestanding compilers. */
30376 # include <limits.h>
30378 # include <assert.h>
30383 /* Override any GCC internal prototype to avoid an error.
30384 Use char because int might match the return type of a GCC
30385 builtin and then its argument prototype would still apply. */
30390 /* The GNU C library defines this for functions which it implements
30391 to always fail with ENOSYS. Some functions are actually named
30392 something starting with __ and the normal name is an alias. */
30393 #if defined __stub_$ac_func || defined __stub___$ac_func
30400 return $ac_func ();
30405 rm -f conftest.$ac_objext conftest$ac_exeext
30406 if { (ac_try="$ac_link"
30407 case "(($ac_try" in
30408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30409 *) ac_try_echo=$ac_try;;
30411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30412 (eval "$ac_link") 2>conftest.er1
30414 grep -v '^ *+' conftest.er1 >conftest.err
30416 cat conftest.err >&5
30417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30418 (exit $ac_status); } &&
30419 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30420 { (case "(($ac_try" in
30421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30422 *) ac_try_echo=$ac_try;;
30424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30425 (eval "$ac_try") 2>&5
30427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30428 (exit $ac_status); }; } &&
30429 { ac_try='test -s conftest$ac_exeext'
30430 { (case "(($ac_try" in
30431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30432 *) ac_try_echo=$ac_try;;
30434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30435 (eval "$ac_try") 2>&5
30437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30438 (exit $ac_status); }; }; then
30439 eval "$as_ac_var=yes"
30441 echo "$as_me: failed program was:" >&5
30442 sed 's/^/| /' conftest.$ac_ext >&5
30444 eval "$as_ac_var=no"
30447 rm -f core conftest.err conftest.$ac_objext \
30448 conftest$ac_exeext conftest.$ac_ext
30450 ac_res=`eval echo '${'$as_ac_var'}'`
30451 { echo "$as_me:$LINENO: result: $ac_res" >&5
30452 echo "${ECHO_T}$ac_res" >&6; }
30453 if test `eval echo '${'$as_ac_var'}'` = yes; then
30454 cat >>confdefs.h <<_ACEOF
30455 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30463 for ac_func in chflags
30465 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30466 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30467 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30468 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30469 echo $ECHO_N "(cached) $ECHO_C" >&6
30471 cat >conftest.$ac_ext <<_ACEOF
30474 cat confdefs.h >>conftest.$ac_ext
30475 cat >>conftest.$ac_ext <<_ACEOF
30476 /* end confdefs.h. */
30477 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30478 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30479 #define $ac_func innocuous_$ac_func
30481 /* System header to define __stub macros and hopefully few prototypes,
30482 which can conflict with char $ac_func (); below.
30483 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30484 <limits.h> exists even on freestanding compilers. */
30487 # include <limits.h>
30489 # include <assert.h>
30494 /* Override any GCC internal prototype to avoid an error.
30495 Use char because int might match the return type of a GCC
30496 builtin and then its argument prototype would still apply. */
30501 /* The GNU C library defines this for functions which it implements
30502 to always fail with ENOSYS. Some functions are actually named
30503 something starting with __ and the normal name is an alias. */
30504 #if defined __stub_$ac_func || defined __stub___$ac_func
30511 return $ac_func ();
30516 rm -f conftest.$ac_objext conftest$ac_exeext
30517 if { (ac_try="$ac_link"
30518 case "(($ac_try" in
30519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30520 *) ac_try_echo=$ac_try;;
30522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30523 (eval "$ac_link") 2>conftest.er1
30525 grep -v '^ *+' conftest.er1 >conftest.err
30527 cat conftest.err >&5
30528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30529 (exit $ac_status); } &&
30530 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30531 { (case "(($ac_try" in
30532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30533 *) ac_try_echo=$ac_try;;
30535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30536 (eval "$ac_try") 2>&5
30538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30539 (exit $ac_status); }; } &&
30540 { ac_try='test -s conftest$ac_exeext'
30541 { (case "(($ac_try" in
30542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30543 *) ac_try_echo=$ac_try;;
30545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30546 (eval "$ac_try") 2>&5
30548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30549 (exit $ac_status); }; }; then
30550 eval "$as_ac_var=yes"
30552 echo "$as_me: failed program was:" >&5
30553 sed 's/^/| /' conftest.$ac_ext >&5
30555 eval "$as_ac_var=no"
30558 rm -f core conftest.err conftest.$ac_objext \
30559 conftest$ac_exeext conftest.$ac_ext
30561 ac_res=`eval echo '${'$as_ac_var'}'`
30562 { echo "$as_me:$LINENO: result: $ac_res" >&5
30563 echo "${ECHO_T}$ac_res" >&6; }
30564 if test `eval echo '${'$as_ac_var'}'` = yes; then
30565 cat >>confdefs.h <<_ACEOF
30566 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30577 for ac_func in snprintf vsnprintf gethostid fseeko
30579 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30580 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30581 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30582 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30583 echo $ECHO_N "(cached) $ECHO_C" >&6
30585 cat >conftest.$ac_ext <<_ACEOF
30588 cat confdefs.h >>conftest.$ac_ext
30589 cat >>conftest.$ac_ext <<_ACEOF
30590 /* end confdefs.h. */
30591 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30592 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30593 #define $ac_func innocuous_$ac_func
30595 /* System header to define __stub macros and hopefully few prototypes,
30596 which can conflict with char $ac_func (); below.
30597 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30598 <limits.h> exists even on freestanding compilers. */
30601 # include <limits.h>
30603 # include <assert.h>
30608 /* Override any GCC internal prototype to avoid an error.
30609 Use char because int might match the return type of a GCC
30610 builtin and then its argument prototype would still apply. */
30615 /* The GNU C library defines this for functions which it implements
30616 to always fail with ENOSYS. Some functions are actually named
30617 something starting with __ and the normal name is an alias. */
30618 #if defined __stub_$ac_func || defined __stub___$ac_func
30625 return $ac_func ();
30630 rm -f conftest.$ac_objext conftest$ac_exeext
30631 if { (ac_try="$ac_link"
30632 case "(($ac_try" in
30633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30634 *) ac_try_echo=$ac_try;;
30636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30637 (eval "$ac_link") 2>conftest.er1
30639 grep -v '^ *+' conftest.er1 >conftest.err
30641 cat conftest.err >&5
30642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30643 (exit $ac_status); } &&
30644 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30645 { (case "(($ac_try" in
30646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30647 *) ac_try_echo=$ac_try;;
30649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30650 (eval "$ac_try") 2>&5
30652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30653 (exit $ac_status); }; } &&
30654 { ac_try='test -s conftest$ac_exeext'
30655 { (case "(($ac_try" in
30656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30657 *) ac_try_echo=$ac_try;;
30659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30660 (eval "$ac_try") 2>&5
30662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30663 (exit $ac_status); }; }; then
30664 eval "$as_ac_var=yes"
30666 echo "$as_me: failed program was:" >&5
30667 sed 's/^/| /' conftest.$ac_ext >&5
30669 eval "$as_ac_var=no"
30672 rm -f core conftest.err conftest.$ac_objext \
30673 conftest$ac_exeext conftest.$ac_ext
30675 ac_res=`eval echo '${'$as_ac_var'}'`
30676 { echo "$as_me:$LINENO: result: $ac_res" >&5
30677 echo "${ECHO_T}$ac_res" >&6; }
30678 if test `eval echo '${'$as_ac_var'}'` = yes; then
30679 cat >>confdefs.h <<_ACEOF
30680 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30691 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
30693 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30694 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30695 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30696 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30697 echo $ECHO_N "(cached) $ECHO_C" >&6
30699 cat >conftest.$ac_ext <<_ACEOF
30702 cat confdefs.h >>conftest.$ac_ext
30703 cat >>conftest.$ac_ext <<_ACEOF
30704 /* end confdefs.h. */
30705 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30706 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30707 #define $ac_func innocuous_$ac_func
30709 /* System header to define __stub macros and hopefully few prototypes,
30710 which can conflict with char $ac_func (); below.
30711 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30712 <limits.h> exists even on freestanding compilers. */
30715 # include <limits.h>
30717 # include <assert.h>
30722 /* Override any GCC internal prototype to avoid an error.
30723 Use char because int might match the return type of a GCC
30724 builtin and then its argument prototype would still apply. */
30729 /* The GNU C library defines this for functions which it implements
30730 to always fail with ENOSYS. Some functions are actually named
30731 something starting with __ and the normal name is an alias. */
30732 #if defined __stub_$ac_func || defined __stub___$ac_func
30739 return $ac_func ();
30744 rm -f conftest.$ac_objext conftest$ac_exeext
30745 if { (ac_try="$ac_link"
30746 case "(($ac_try" in
30747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30748 *) ac_try_echo=$ac_try;;
30750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30751 (eval "$ac_link") 2>conftest.er1
30753 grep -v '^ *+' conftest.er1 >conftest.err
30755 cat conftest.err >&5
30756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30757 (exit $ac_status); } &&
30758 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30759 { (case "(($ac_try" in
30760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30761 *) ac_try_echo=$ac_try;;
30763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30764 (eval "$ac_try") 2>&5
30766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30767 (exit $ac_status); }; } &&
30768 { ac_try='test -s conftest$ac_exeext'
30769 { (case "(($ac_try" in
30770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30771 *) ac_try_echo=$ac_try;;
30773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30774 (eval "$ac_try") 2>&5
30776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30777 (exit $ac_status); }; }; then
30778 eval "$as_ac_var=yes"
30780 echo "$as_me: failed program was:" >&5
30781 sed 's/^/| /' conftest.$ac_ext >&5
30783 eval "$as_ac_var=no"
30786 rm -f core conftest.err conftest.$ac_objext \
30787 conftest$ac_exeext conftest.$ac_ext
30789 ac_res=`eval echo '${'$as_ac_var'}'`
30790 { echo "$as_me:$LINENO: result: $ac_res" >&5
30791 echo "${ECHO_T}$ac_res" >&6; }
30792 if test `eval echo '${'$as_ac_var'}'` = yes; then
30793 cat >>confdefs.h <<_ACEOF
30794 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30801 # If resolver functions are not in libc check for -lnsl or -lresolv.
30802 { echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
30803 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6; }
30804 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
30805 echo $ECHO_N "(cached) $ECHO_C" >&6
30807 cat >conftest.$ac_ext <<_ACEOF
30810 cat confdefs.h >>conftest.$ac_ext
30811 cat >>conftest.$ac_ext <<_ACEOF
30812 /* end confdefs.h. */
30813 /* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r.
30814 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30815 #define gethostbyname_r innocuous_gethostbyname_r
30817 /* System header to define __stub macros and hopefully few prototypes,
30818 which can conflict with char gethostbyname_r (); below.
30819 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30820 <limits.h> exists even on freestanding compilers. */
30823 # include <limits.h>
30825 # include <assert.h>
30828 #undef gethostbyname_r
30830 /* Override any GCC internal prototype to avoid an error.
30831 Use char because int might match the return type of a GCC
30832 builtin and then its argument prototype would still apply. */
30836 char gethostbyname_r ();
30837 /* The GNU C library defines this for functions which it implements
30838 to always fail with ENOSYS. Some functions are actually named
30839 something starting with __ and the normal name is an alias. */
30840 #if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r
30847 return gethostbyname_r ();
30852 rm -f conftest.$ac_objext conftest$ac_exeext
30853 if { (ac_try="$ac_link"
30854 case "(($ac_try" in
30855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30856 *) ac_try_echo=$ac_try;;
30858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30859 (eval "$ac_link") 2>conftest.er1
30861 grep -v '^ *+' conftest.er1 >conftest.err
30863 cat conftest.err >&5
30864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30865 (exit $ac_status); } &&
30866 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30867 { (case "(($ac_try" in
30868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30869 *) ac_try_echo=$ac_try;;
30871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30872 (eval "$ac_try") 2>&5
30874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30875 (exit $ac_status); }; } &&
30876 { ac_try='test -s conftest$ac_exeext'
30877 { (case "(($ac_try" in
30878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30879 *) ac_try_echo=$ac_try;;
30881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30882 (eval "$ac_try") 2>&5
30884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30885 (exit $ac_status); }; }; then
30886 ac_cv_func_gethostbyname_r=yes
30888 echo "$as_me: failed program was:" >&5
30889 sed 's/^/| /' conftest.$ac_ext >&5
30891 ac_cv_func_gethostbyname_r=no
30894 rm -f core conftest.err conftest.$ac_objext \
30895 conftest$ac_exeext conftest.$ac_ext
30897 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
30898 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6; }
30899 if test $ac_cv_func_gethostbyname_r = yes; then
30900 { echo "$as_me:$LINENO: result: using libc's resolver" >&5
30901 echo "${ECHO_T}using libc's resolver" >&6; }
30904 { echo "$as_me:$LINENO: checking for gethostbyname_r in -lnsl" >&5
30905 echo $ECHO_N "checking for gethostbyname_r in -lnsl... $ECHO_C" >&6; }
30906 if test "${ac_cv_lib_nsl_gethostbyname_r+set}" = set; then
30907 echo $ECHO_N "(cached) $ECHO_C" >&6
30909 ac_check_lib_save_LIBS=$LIBS
30911 cat >conftest.$ac_ext <<_ACEOF
30914 cat confdefs.h >>conftest.$ac_ext
30915 cat >>conftest.$ac_ext <<_ACEOF
30916 /* end confdefs.h. */
30918 /* Override any GCC internal prototype to avoid an error.
30919 Use char because int might match the return type of a GCC
30920 builtin and then its argument prototype would still apply. */
30924 char gethostbyname_r ();
30928 return gethostbyname_r ();
30933 rm -f conftest.$ac_objext conftest$ac_exeext
30934 if { (ac_try="$ac_link"
30935 case "(($ac_try" in
30936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30937 *) ac_try_echo=$ac_try;;
30939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30940 (eval "$ac_link") 2>conftest.er1
30942 grep -v '^ *+' conftest.er1 >conftest.err
30944 cat conftest.err >&5
30945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30946 (exit $ac_status); } &&
30947 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30948 { (case "(($ac_try" in
30949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30950 *) ac_try_echo=$ac_try;;
30952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30953 (eval "$ac_try") 2>&5
30955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30956 (exit $ac_status); }; } &&
30957 { ac_try='test -s conftest$ac_exeext'
30958 { (case "(($ac_try" in
30959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30960 *) ac_try_echo=$ac_try;;
30962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30963 (eval "$ac_try") 2>&5
30965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30966 (exit $ac_status); }; }; then
30967 ac_cv_lib_nsl_gethostbyname_r=yes
30969 echo "$as_me: failed program was:" >&5
30970 sed 's/^/| /' conftest.$ac_ext >&5
30972 ac_cv_lib_nsl_gethostbyname_r=no
30975 rm -f core conftest.err conftest.$ac_objext \
30976 conftest$ac_exeext conftest.$ac_ext
30977 LIBS=$ac_check_lib_save_LIBS
30979 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
30980 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname_r" >&6; }
30981 if test $ac_cv_lib_nsl_gethostbyname_r = yes; then
30982 cat >>confdefs.h <<_ACEOF
30983 #define HAVE_LIBNSL 1
30991 { echo "$as_me:$LINENO: checking for gethostbyname_r in -lresolv" >&5
30992 echo $ECHO_N "checking for gethostbyname_r in -lresolv... $ECHO_C" >&6; }
30993 if test "${ac_cv_lib_resolv_gethostbyname_r+set}" = set; then
30994 echo $ECHO_N "(cached) $ECHO_C" >&6
30996 ac_check_lib_save_LIBS=$LIBS
30997 LIBS="-lresolv $LIBS"
30998 cat >conftest.$ac_ext <<_ACEOF
31001 cat confdefs.h >>conftest.$ac_ext
31002 cat >>conftest.$ac_ext <<_ACEOF
31003 /* end confdefs.h. */
31005 /* Override any GCC internal prototype to avoid an error.
31006 Use char because int might match the return type of a GCC
31007 builtin and then its argument prototype would still apply. */
31011 char gethostbyname_r ();
31015 return gethostbyname_r ();
31020 rm -f conftest.$ac_objext conftest$ac_exeext
31021 if { (ac_try="$ac_link"
31022 case "(($ac_try" in
31023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31024 *) ac_try_echo=$ac_try;;
31026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31027 (eval "$ac_link") 2>conftest.er1
31029 grep -v '^ *+' conftest.er1 >conftest.err
31031 cat conftest.err >&5
31032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31033 (exit $ac_status); } &&
31034 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31035 { (case "(($ac_try" in
31036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31037 *) ac_try_echo=$ac_try;;
31039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31040 (eval "$ac_try") 2>&5
31042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31043 (exit $ac_status); }; } &&
31044 { ac_try='test -s conftest$ac_exeext'
31045 { (case "(($ac_try" in
31046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31047 *) ac_try_echo=$ac_try;;
31049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31050 (eval "$ac_try") 2>&5
31052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31053 (exit $ac_status); }; }; then
31054 ac_cv_lib_resolv_gethostbyname_r=yes
31056 echo "$as_me: failed program was:" >&5
31057 sed 's/^/| /' conftest.$ac_ext >&5
31059 ac_cv_lib_resolv_gethostbyname_r=no
31062 rm -f core conftest.err conftest.$ac_objext \
31063 conftest$ac_exeext conftest.$ac_ext
31064 LIBS=$ac_check_lib_save_LIBS
31066 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_gethostbyname_r" >&5
31067 echo "${ECHO_T}$ac_cv_lib_resolv_gethostbyname_r" >&6; }
31068 if test $ac_cv_lib_resolv_gethostbyname_r = yes; then
31069 cat >>confdefs.h <<_ACEOF
31070 #define HAVE_LIBRESOLV 1
31073 LIBS="-lresolv $LIBS"
31083 for ac_func in inet_pton
31085 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31086 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31087 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31088 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31089 echo $ECHO_N "(cached) $ECHO_C" >&6
31091 cat >conftest.$ac_ext <<_ACEOF
31094 cat confdefs.h >>conftest.$ac_ext
31095 cat >>conftest.$ac_ext <<_ACEOF
31096 /* end confdefs.h. */
31097 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31098 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31099 #define $ac_func innocuous_$ac_func
31101 /* System header to define __stub macros and hopefully few prototypes,
31102 which can conflict with char $ac_func (); below.
31103 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31104 <limits.h> exists even on freestanding compilers. */
31107 # include <limits.h>
31109 # include <assert.h>
31114 /* Override any GCC internal prototype to avoid an error.
31115 Use char because int might match the return type of a GCC
31116 builtin and then its argument prototype would still apply. */
31121 /* The GNU C library defines this for functions which it implements
31122 to always fail with ENOSYS. Some functions are actually named
31123 something starting with __ and the normal name is an alias. */
31124 #if defined __stub_$ac_func || defined __stub___$ac_func
31131 return $ac_func ();
31136 rm -f conftest.$ac_objext conftest$ac_exeext
31137 if { (ac_try="$ac_link"
31138 case "(($ac_try" in
31139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31140 *) ac_try_echo=$ac_try;;
31142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31143 (eval "$ac_link") 2>conftest.er1
31145 grep -v '^ *+' conftest.er1 >conftest.err
31147 cat conftest.err >&5
31148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31149 (exit $ac_status); } &&
31150 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31151 { (case "(($ac_try" in
31152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31153 *) ac_try_echo=$ac_try;;
31155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31156 (eval "$ac_try") 2>&5
31158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31159 (exit $ac_status); }; } &&
31160 { ac_try='test -s conftest$ac_exeext'
31161 { (case "(($ac_try" in
31162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31163 *) ac_try_echo=$ac_try;;
31165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31166 (eval "$ac_try") 2>&5
31168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31169 (exit $ac_status); }; }; then
31170 eval "$as_ac_var=yes"
31172 echo "$as_me: failed program was:" >&5
31173 sed 's/^/| /' conftest.$ac_ext >&5
31175 eval "$as_ac_var=no"
31178 rm -f core conftest.err conftest.$ac_objext \
31179 conftest$ac_exeext conftest.$ac_ext
31181 ac_res=`eval echo '${'$as_ac_var'}'`
31182 { echo "$as_me:$LINENO: result: $ac_res" >&5
31183 echo "${ECHO_T}$ac_res" >&6; }
31184 if test `eval echo '${'$as_ac_var'}'` = yes; then
31185 cat >>confdefs.h <<_ACEOF
31186 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31188 cat >>confdefs.h <<\_ACEOF
31189 #define HAVE_INET_PTON 1
31196 for ac_func in inet_ntop
31198 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31199 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31200 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31201 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31202 echo $ECHO_N "(cached) $ECHO_C" >&6
31204 cat >conftest.$ac_ext <<_ACEOF
31207 cat confdefs.h >>conftest.$ac_ext
31208 cat >>conftest.$ac_ext <<_ACEOF
31209 /* end confdefs.h. */
31210 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31211 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31212 #define $ac_func innocuous_$ac_func
31214 /* System header to define __stub macros and hopefully few prototypes,
31215 which can conflict with char $ac_func (); below.
31216 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31217 <limits.h> exists even on freestanding compilers. */
31220 # include <limits.h>
31222 # include <assert.h>
31227 /* Override any GCC internal prototype to avoid an error.
31228 Use char because int might match the return type of a GCC
31229 builtin and then its argument prototype would still apply. */
31234 /* The GNU C library defines this for functions which it implements
31235 to always fail with ENOSYS. Some functions are actually named
31236 something starting with __ and the normal name is an alias. */
31237 #if defined __stub_$ac_func || defined __stub___$ac_func
31244 return $ac_func ();
31249 rm -f conftest.$ac_objext conftest$ac_exeext
31250 if { (ac_try="$ac_link"
31251 case "(($ac_try" in
31252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31253 *) ac_try_echo=$ac_try;;
31255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31256 (eval "$ac_link") 2>conftest.er1
31258 grep -v '^ *+' conftest.er1 >conftest.err
31260 cat conftest.err >&5
31261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31262 (exit $ac_status); } &&
31263 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31264 { (case "(($ac_try" in
31265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31266 *) ac_try_echo=$ac_try;;
31268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31269 (eval "$ac_try") 2>&5
31271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31272 (exit $ac_status); }; } &&
31273 { ac_try='test -s conftest$ac_exeext'
31274 { (case "(($ac_try" in
31275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31276 *) ac_try_echo=$ac_try;;
31278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31279 (eval "$ac_try") 2>&5
31281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31282 (exit $ac_status); }; }; then
31283 eval "$as_ac_var=yes"
31285 echo "$as_me: failed program was:" >&5
31286 sed 's/^/| /' conftest.$ac_ext >&5
31288 eval "$as_ac_var=no"
31291 rm -f core conftest.err conftest.$ac_objext \
31292 conftest$ac_exeext conftest.$ac_ext
31294 ac_res=`eval echo '${'$as_ac_var'}'`
31295 { echo "$as_me:$LINENO: result: $ac_res" >&5
31296 echo "${ECHO_T}$ac_res" >&6; }
31297 if test `eval echo '${'$as_ac_var'}'` = yes; then
31298 cat >>confdefs.h <<_ACEOF
31299 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31301 cat >>confdefs.h <<\_ACEOF
31302 #define HAVE_INET_NTOP 1
31309 for ac_func in gethostbyname2
31311 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31312 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31313 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31314 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31315 echo $ECHO_N "(cached) $ECHO_C" >&6
31317 cat >conftest.$ac_ext <<_ACEOF
31320 cat confdefs.h >>conftest.$ac_ext
31321 cat >>conftest.$ac_ext <<_ACEOF
31322 /* end confdefs.h. */
31323 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31324 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31325 #define $ac_func innocuous_$ac_func
31327 /* System header to define __stub macros and hopefully few prototypes,
31328 which can conflict with char $ac_func (); below.
31329 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31330 <limits.h> exists even on freestanding compilers. */
31333 # include <limits.h>
31335 # include <assert.h>
31340 /* Override any GCC internal prototype to avoid an error.
31341 Use char because int might match the return type of a GCC
31342 builtin and then its argument prototype would still apply. */
31347 /* The GNU C library defines this for functions which it implements
31348 to always fail with ENOSYS. Some functions are actually named
31349 something starting with __ and the normal name is an alias. */
31350 #if defined __stub_$ac_func || defined __stub___$ac_func
31357 return $ac_func ();
31362 rm -f conftest.$ac_objext conftest$ac_exeext
31363 if { (ac_try="$ac_link"
31364 case "(($ac_try" in
31365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31366 *) ac_try_echo=$ac_try;;
31368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31369 (eval "$ac_link") 2>conftest.er1
31371 grep -v '^ *+' conftest.er1 >conftest.err
31373 cat conftest.err >&5
31374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31375 (exit $ac_status); } &&
31376 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31377 { (case "(($ac_try" in
31378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31379 *) ac_try_echo=$ac_try;;
31381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31382 (eval "$ac_try") 2>&5
31384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31385 (exit $ac_status); }; } &&
31386 { ac_try='test -s conftest$ac_exeext'
31387 { (case "(($ac_try" in
31388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31389 *) ac_try_echo=$ac_try;;
31391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31392 (eval "$ac_try") 2>&5
31394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31395 (exit $ac_status); }; }; then
31396 eval "$as_ac_var=yes"
31398 echo "$as_me: failed program was:" >&5
31399 sed 's/^/| /' conftest.$ac_ext >&5
31401 eval "$as_ac_var=no"
31404 rm -f core conftest.err conftest.$ac_objext \
31405 conftest$ac_exeext conftest.$ac_ext
31407 ac_res=`eval echo '${'$as_ac_var'}'`
31408 { echo "$as_me:$LINENO: result: $ac_res" >&5
31409 echo "${ECHO_T}$ac_res" >&6; }
31410 if test `eval echo '${'$as_ac_var'}'` = yes; then
31411 cat >>confdefs.h <<_ACEOF
31412 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31414 cat >>confdefs.h <<\_ACEOF
31415 #define HAVE_GETHOSTBYNAME2 1
31422 { echo "$as_me:$LINENO: checking for struct sockaddr has a sa_len field" >&5
31423 echo $ECHO_N "checking for struct sockaddr has a sa_len field... $ECHO_C" >&6; }
31424 if test "${ac_cv_struct_sockaddr_sa_len+set}" = set; then
31425 echo $ECHO_N "(cached) $ECHO_C" >&6
31427 cat >conftest.$ac_ext <<_ACEOF
31430 cat confdefs.h >>conftest.$ac_ext
31431 cat >>conftest.$ac_ext <<_ACEOF
31432 /* end confdefs.h. */
31433 #include <sys/socket.h>
31437 struct sockaddr s; s.sa_len;
31442 rm -f conftest.$ac_objext
31443 if { (ac_try="$ac_compile"
31444 case "(($ac_try" in
31445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31446 *) ac_try_echo=$ac_try;;
31448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31449 (eval "$ac_compile") 2>conftest.er1
31451 grep -v '^ *+' conftest.er1 >conftest.err
31453 cat conftest.err >&5
31454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31455 (exit $ac_status); } &&
31456 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31457 { (case "(($ac_try" in
31458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31459 *) ac_try_echo=$ac_try;;
31461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31462 (eval "$ac_try") 2>&5
31464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31465 (exit $ac_status); }; } &&
31466 { ac_try='test -s conftest.$ac_objext'
31467 { (case "(($ac_try" in
31468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31469 *) ac_try_echo=$ac_try;;
31471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31472 (eval "$ac_try") 2>&5
31474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31475 (exit $ac_status); }; }; then
31476 ac_cv_struct_sockaddr_sa_len=yes
31478 echo "$as_me: failed program was:" >&5
31479 sed 's/^/| /' conftest.$ac_ext >&5
31481 ac_cv_struct_sockaddr_sa_len=no
31484 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31486 { echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_sa_len" >&5
31487 echo "${ECHO_T}$ac_cv_struct_sockaddr_sa_len" >&6; }
31489 if test $ac_cv_struct_sockaddr_sa_len = yes; then
31491 cat >>confdefs.h <<\_ACEOF
31492 #define HAVE_SA_LEN 1
31501 for ac_func in strftime
31503 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31504 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31505 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31506 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31507 echo $ECHO_N "(cached) $ECHO_C" >&6
31509 cat >conftest.$ac_ext <<_ACEOF
31512 cat confdefs.h >>conftest.$ac_ext
31513 cat >>conftest.$ac_ext <<_ACEOF
31514 /* end confdefs.h. */
31515 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31516 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31517 #define $ac_func innocuous_$ac_func
31519 /* System header to define __stub macros and hopefully few prototypes,
31520 which can conflict with char $ac_func (); below.
31521 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31522 <limits.h> exists even on freestanding compilers. */
31525 # include <limits.h>
31527 # include <assert.h>
31532 /* Override any GCC internal prototype to avoid an error.
31533 Use char because int might match the return type of a GCC
31534 builtin and then its argument prototype would still apply. */
31539 /* The GNU C library defines this for functions which it implements
31540 to always fail with ENOSYS. Some functions are actually named
31541 something starting with __ and the normal name is an alias. */
31542 #if defined __stub_$ac_func || defined __stub___$ac_func
31549 return $ac_func ();
31554 rm -f conftest.$ac_objext conftest$ac_exeext
31555 if { (ac_try="$ac_link"
31556 case "(($ac_try" in
31557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31558 *) ac_try_echo=$ac_try;;
31560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31561 (eval "$ac_link") 2>conftest.er1
31563 grep -v '^ *+' conftest.er1 >conftest.err
31565 cat conftest.err >&5
31566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31567 (exit $ac_status); } &&
31568 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31569 { (case "(($ac_try" in
31570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31571 *) ac_try_echo=$ac_try;;
31573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31574 (eval "$ac_try") 2>&5
31576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31577 (exit $ac_status); }; } &&
31578 { ac_try='test -s conftest$ac_exeext'
31579 { (case "(($ac_try" in
31580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31581 *) ac_try_echo=$ac_try;;
31583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31584 (eval "$ac_try") 2>&5
31586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31587 (exit $ac_status); }; }; then
31588 eval "$as_ac_var=yes"
31590 echo "$as_me: failed program was:" >&5
31591 sed 's/^/| /' conftest.$ac_ext >&5
31593 eval "$as_ac_var=no"
31596 rm -f core conftest.err conftest.$ac_objext \
31597 conftest$ac_exeext conftest.$ac_ext
31599 ac_res=`eval echo '${'$as_ac_var'}'`
31600 { echo "$as_me:$LINENO: result: $ac_res" >&5
31601 echo "${ECHO_T}$ac_res" >&6; }
31602 if test `eval echo '${'$as_ac_var'}'` = yes; then
31603 cat >>confdefs.h <<_ACEOF
31604 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31608 # strftime is in -lintl on SCO UNIX.
31609 { echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
31610 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
31611 if test "${ac_cv_lib_intl_strftime+set}" = set; then
31612 echo $ECHO_N "(cached) $ECHO_C" >&6
31614 ac_check_lib_save_LIBS=$LIBS
31615 LIBS="-lintl $LIBS"
31616 cat >conftest.$ac_ext <<_ACEOF
31619 cat confdefs.h >>conftest.$ac_ext
31620 cat >>conftest.$ac_ext <<_ACEOF
31621 /* end confdefs.h. */
31623 /* Override any GCC internal prototype to avoid an error.
31624 Use char because int might match the return type of a GCC
31625 builtin and then its argument prototype would still apply. */
31633 return strftime ();
31638 rm -f conftest.$ac_objext conftest$ac_exeext
31639 if { (ac_try="$ac_link"
31640 case "(($ac_try" in
31641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31642 *) ac_try_echo=$ac_try;;
31644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31645 (eval "$ac_link") 2>conftest.er1
31647 grep -v '^ *+' conftest.er1 >conftest.err
31649 cat conftest.err >&5
31650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31651 (exit $ac_status); } &&
31652 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31653 { (case "(($ac_try" in
31654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31655 *) ac_try_echo=$ac_try;;
31657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31658 (eval "$ac_try") 2>&5
31660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31661 (exit $ac_status); }; } &&
31662 { ac_try='test -s conftest$ac_exeext'
31663 { (case "(($ac_try" in
31664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31665 *) ac_try_echo=$ac_try;;
31667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31668 (eval "$ac_try") 2>&5
31670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31671 (exit $ac_status); }; }; then
31672 ac_cv_lib_intl_strftime=yes
31674 echo "$as_me: failed program was:" >&5
31675 sed 's/^/| /' conftest.$ac_ext >&5
31677 ac_cv_lib_intl_strftime=no
31680 rm -f core conftest.err conftest.$ac_objext \
31681 conftest$ac_exeext conftest.$ac_ext
31682 LIBS=$ac_check_lib_save_LIBS
31684 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
31685 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
31686 if test $ac_cv_lib_intl_strftime = yes; then
31687 cat >>confdefs.h <<\_ACEOF
31688 #define HAVE_STRFTIME 1
31691 LIBS="-lintl $LIBS"
31698 for ac_func in vprintf
31700 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31701 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31702 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31703 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31704 echo $ECHO_N "(cached) $ECHO_C" >&6
31706 cat >conftest.$ac_ext <<_ACEOF
31709 cat confdefs.h >>conftest.$ac_ext
31710 cat >>conftest.$ac_ext <<_ACEOF
31711 /* end confdefs.h. */
31712 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31713 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31714 #define $ac_func innocuous_$ac_func
31716 /* System header to define __stub macros and hopefully few prototypes,
31717 which can conflict with char $ac_func (); below.
31718 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31719 <limits.h> exists even on freestanding compilers. */
31722 # include <limits.h>
31724 # include <assert.h>
31729 /* Override any GCC internal prototype to avoid an error.
31730 Use char because int might match the return type of a GCC
31731 builtin and then its argument prototype would still apply. */
31736 /* The GNU C library defines this for functions which it implements
31737 to always fail with ENOSYS. Some functions are actually named
31738 something starting with __ and the normal name is an alias. */
31739 #if defined __stub_$ac_func || defined __stub___$ac_func
31746 return $ac_func ();
31751 rm -f conftest.$ac_objext conftest$ac_exeext
31752 if { (ac_try="$ac_link"
31753 case "(($ac_try" in
31754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31755 *) ac_try_echo=$ac_try;;
31757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31758 (eval "$ac_link") 2>conftest.er1
31760 grep -v '^ *+' conftest.er1 >conftest.err
31762 cat conftest.err >&5
31763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31764 (exit $ac_status); } &&
31765 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31766 { (case "(($ac_try" in
31767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31768 *) ac_try_echo=$ac_try;;
31770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31771 (eval "$ac_try") 2>&5
31773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31774 (exit $ac_status); }; } &&
31775 { ac_try='test -s conftest$ac_exeext'
31776 { (case "(($ac_try" in
31777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31778 *) ac_try_echo=$ac_try;;
31780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31781 (eval "$ac_try") 2>&5
31783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31784 (exit $ac_status); }; }; then
31785 eval "$as_ac_var=yes"
31787 echo "$as_me: failed program was:" >&5
31788 sed 's/^/| /' conftest.$ac_ext >&5
31790 eval "$as_ac_var=no"
31793 rm -f core conftest.err conftest.$ac_objext \
31794 conftest$ac_exeext conftest.$ac_ext
31796 ac_res=`eval echo '${'$as_ac_var'}'`
31797 { echo "$as_me:$LINENO: result: $ac_res" >&5
31798 echo "${ECHO_T}$ac_res" >&6; }
31799 if test `eval echo '${'$as_ac_var'}'` = yes; then
31800 cat >>confdefs.h <<_ACEOF
31801 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31804 { echo "$as_me:$LINENO: checking for _doprnt" >&5
31805 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
31806 if test "${ac_cv_func__doprnt+set}" = set; then
31807 echo $ECHO_N "(cached) $ECHO_C" >&6
31809 cat >conftest.$ac_ext <<_ACEOF
31812 cat confdefs.h >>conftest.$ac_ext
31813 cat >>conftest.$ac_ext <<_ACEOF
31814 /* end confdefs.h. */
31815 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
31816 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31817 #define _doprnt innocuous__doprnt
31819 /* System header to define __stub macros and hopefully few prototypes,
31820 which can conflict with char _doprnt (); below.
31821 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31822 <limits.h> exists even on freestanding compilers. */
31825 # include <limits.h>
31827 # include <assert.h>
31832 /* Override any GCC internal prototype to avoid an error.
31833 Use char because int might match the return type of a GCC
31834 builtin and then its argument prototype would still apply. */
31839 /* The GNU C library defines this for functions which it implements
31840 to always fail with ENOSYS. Some functions are actually named
31841 something starting with __ and the normal name is an alias. */
31842 #if defined __stub__doprnt || defined __stub____doprnt
31854 rm -f conftest.$ac_objext conftest$ac_exeext
31855 if { (ac_try="$ac_link"
31856 case "(($ac_try" in
31857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31858 *) ac_try_echo=$ac_try;;
31860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31861 (eval "$ac_link") 2>conftest.er1
31863 grep -v '^ *+' conftest.er1 >conftest.err
31865 cat conftest.err >&5
31866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31867 (exit $ac_status); } &&
31868 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31869 { (case "(($ac_try" in
31870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31871 *) ac_try_echo=$ac_try;;
31873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31874 (eval "$ac_try") 2>&5
31876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31877 (exit $ac_status); }; } &&
31878 { ac_try='test -s conftest$ac_exeext'
31879 { (case "(($ac_try" in
31880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31881 *) ac_try_echo=$ac_try;;
31883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31884 (eval "$ac_try") 2>&5
31886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31887 (exit $ac_status); }; }; then
31888 ac_cv_func__doprnt=yes
31890 echo "$as_me: failed program was:" >&5
31891 sed 's/^/| /' conftest.$ac_ext >&5
31893 ac_cv_func__doprnt=no
31896 rm -f core conftest.err conftest.$ac_objext \
31897 conftest$ac_exeext conftest.$ac_ext
31899 { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
31900 echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
31901 if test $ac_cv_func__doprnt = yes; then
31903 cat >>confdefs.h <<\_ACEOF
31904 #define HAVE_DOPRNT 1
31913 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
31914 # for constant arguments. Useless!
31915 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
31916 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
31917 if test "${ac_cv_working_alloca_h+set}" = set; then
31918 echo $ECHO_N "(cached) $ECHO_C" >&6
31920 cat >conftest.$ac_ext <<_ACEOF
31923 cat confdefs.h >>conftest.$ac_ext
31924 cat >>conftest.$ac_ext <<_ACEOF
31925 /* end confdefs.h. */
31926 #include <alloca.h>
31930 char *p = (char *) alloca (2 * sizeof (int));
31936 rm -f conftest.$ac_objext conftest$ac_exeext
31937 if { (ac_try="$ac_link"
31938 case "(($ac_try" in
31939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31940 *) ac_try_echo=$ac_try;;
31942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31943 (eval "$ac_link") 2>conftest.er1
31945 grep -v '^ *+' conftest.er1 >conftest.err
31947 cat conftest.err >&5
31948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31949 (exit $ac_status); } &&
31950 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31951 { (case "(($ac_try" in
31952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31953 *) ac_try_echo=$ac_try;;
31955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31956 (eval "$ac_try") 2>&5
31958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31959 (exit $ac_status); }; } &&
31960 { ac_try='test -s conftest$ac_exeext'
31961 { (case "(($ac_try" in
31962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31963 *) ac_try_echo=$ac_try;;
31965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31966 (eval "$ac_try") 2>&5
31968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31969 (exit $ac_status); }; }; then
31970 ac_cv_working_alloca_h=yes
31972 echo "$as_me: failed program was:" >&5
31973 sed 's/^/| /' conftest.$ac_ext >&5
31975 ac_cv_working_alloca_h=no
31978 rm -f core conftest.err conftest.$ac_objext \
31979 conftest$ac_exeext conftest.$ac_ext
31981 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
31982 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
31983 if test $ac_cv_working_alloca_h = yes; then
31985 cat >>confdefs.h <<\_ACEOF
31986 #define HAVE_ALLOCA_H 1
31991 { echo "$as_me:$LINENO: checking for alloca" >&5
31992 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
31993 if test "${ac_cv_func_alloca_works+set}" = set; then
31994 echo $ECHO_N "(cached) $ECHO_C" >&6
31996 cat >conftest.$ac_ext <<_ACEOF
31999 cat confdefs.h >>conftest.$ac_ext
32000 cat >>conftest.$ac_ext <<_ACEOF
32001 /* end confdefs.h. */
32003 # define alloca __builtin_alloca
32006 # include <malloc.h>
32007 # define alloca _alloca
32010 # include <alloca.h>
32015 # ifndef alloca /* predefined by HP cc +Olibcalls */
32026 char *p = (char *) alloca (1);
32032 rm -f conftest.$ac_objext conftest$ac_exeext
32033 if { (ac_try="$ac_link"
32034 case "(($ac_try" in
32035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32036 *) ac_try_echo=$ac_try;;
32038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32039 (eval "$ac_link") 2>conftest.er1
32041 grep -v '^ *+' conftest.er1 >conftest.err
32043 cat conftest.err >&5
32044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32045 (exit $ac_status); } &&
32046 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32047 { (case "(($ac_try" in
32048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32049 *) ac_try_echo=$ac_try;;
32051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32052 (eval "$ac_try") 2>&5
32054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32055 (exit $ac_status); }; } &&
32056 { ac_try='test -s conftest$ac_exeext'
32057 { (case "(($ac_try" in
32058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32059 *) ac_try_echo=$ac_try;;
32061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32062 (eval "$ac_try") 2>&5
32064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32065 (exit $ac_status); }; }; then
32066 ac_cv_func_alloca_works=yes
32068 echo "$as_me: failed program was:" >&5
32069 sed 's/^/| /' conftest.$ac_ext >&5
32071 ac_cv_func_alloca_works=no
32074 rm -f core conftest.err conftest.$ac_objext \
32075 conftest$ac_exeext conftest.$ac_ext
32077 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
32078 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
32080 if test $ac_cv_func_alloca_works = yes; then
32082 cat >>confdefs.h <<\_ACEOF
32083 #define HAVE_ALLOCA 1
32087 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
32088 # that cause trouble. Some versions do not even contain alloca or
32089 # contain a buggy version. If you still want to use their alloca,
32090 # use ar to extract alloca.o from them instead of compiling alloca.c.
32092 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
32094 cat >>confdefs.h <<\_ACEOF
32099 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
32100 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
32101 if test "${ac_cv_os_cray+set}" = set; then
32102 echo $ECHO_N "(cached) $ECHO_C" >&6
32104 cat >conftest.$ac_ext <<_ACEOF
32107 cat confdefs.h >>conftest.$ac_ext
32108 cat >>conftest.$ac_ext <<_ACEOF
32109 /* end confdefs.h. */
32110 #if defined CRAY && ! defined CRAY2
32117 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32118 $EGREP "webecray" >/dev/null 2>&1; then
32126 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
32127 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
32128 if test $ac_cv_os_cray = yes; then
32129 for ac_func in _getb67 GETB67 getb67; do
32130 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32131 { echo "$as_me:$LINENO: checking for $ac_func" >&5
32132 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32133 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32134 echo $ECHO_N "(cached) $ECHO_C" >&6
32136 cat >conftest.$ac_ext <<_ACEOF
32139 cat confdefs.h >>conftest.$ac_ext
32140 cat >>conftest.$ac_ext <<_ACEOF
32141 /* end confdefs.h. */
32142 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32143 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32144 #define $ac_func innocuous_$ac_func
32146 /* System header to define __stub macros and hopefully few prototypes,
32147 which can conflict with char $ac_func (); below.
32148 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32149 <limits.h> exists even on freestanding compilers. */
32152 # include <limits.h>
32154 # include <assert.h>
32159 /* Override any GCC internal prototype to avoid an error.
32160 Use char because int might match the return type of a GCC
32161 builtin and then its argument prototype would still apply. */
32166 /* The GNU C library defines this for functions which it implements
32167 to always fail with ENOSYS. Some functions are actually named
32168 something starting with __ and the normal name is an alias. */
32169 #if defined __stub_$ac_func || defined __stub___$ac_func
32176 return $ac_func ();
32181 rm -f conftest.$ac_objext conftest$ac_exeext
32182 if { (ac_try="$ac_link"
32183 case "(($ac_try" in
32184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32185 *) ac_try_echo=$ac_try;;
32187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32188 (eval "$ac_link") 2>conftest.er1
32190 grep -v '^ *+' conftest.er1 >conftest.err
32192 cat conftest.err >&5
32193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32194 (exit $ac_status); } &&
32195 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32196 { (case "(($ac_try" in
32197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32198 *) ac_try_echo=$ac_try;;
32200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32201 (eval "$ac_try") 2>&5
32203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32204 (exit $ac_status); }; } &&
32205 { ac_try='test -s conftest$ac_exeext'
32206 { (case "(($ac_try" in
32207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32208 *) ac_try_echo=$ac_try;;
32210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32211 (eval "$ac_try") 2>&5
32213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32214 (exit $ac_status); }; }; then
32215 eval "$as_ac_var=yes"
32217 echo "$as_me: failed program was:" >&5
32218 sed 's/^/| /' conftest.$ac_ext >&5
32220 eval "$as_ac_var=no"
32223 rm -f core conftest.err conftest.$ac_objext \
32224 conftest$ac_exeext conftest.$ac_ext
32226 ac_res=`eval echo '${'$as_ac_var'}'`
32227 { echo "$as_me:$LINENO: result: $ac_res" >&5
32228 echo "${ECHO_T}$ac_res" >&6; }
32229 if test `eval echo '${'$as_ac_var'}'` = yes; then
32231 cat >>confdefs.h <<_ACEOF
32232 #define CRAY_STACKSEG_END $ac_func
32241 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
32242 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
32243 if test "${ac_cv_c_stack_direction+set}" = set; then
32244 echo $ECHO_N "(cached) $ECHO_C" >&6
32246 if test "$cross_compiling" = yes; then
32247 ac_cv_c_stack_direction=0
32249 cat >conftest.$ac_ext <<_ACEOF
32252 cat confdefs.h >>conftest.$ac_ext
32253 cat >>conftest.$ac_ext <<_ACEOF
32254 /* end confdefs.h. */
32255 $ac_includes_default
32257 find_stack_direction ()
32259 static char *addr = 0;
32264 return find_stack_direction ();
32267 return (&dummy > addr) ? 1 : -1;
32273 return find_stack_direction () < 0;
32276 rm -f conftest$ac_exeext
32277 if { (ac_try="$ac_link"
32278 case "(($ac_try" in
32279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32280 *) ac_try_echo=$ac_try;;
32282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32283 (eval "$ac_link") 2>&5
32285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32286 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32287 { (case "(($ac_try" in
32288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32289 *) ac_try_echo=$ac_try;;
32291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32292 (eval "$ac_try") 2>&5
32294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32295 (exit $ac_status); }; }; then
32296 ac_cv_c_stack_direction=1
32298 echo "$as_me: program exited with status $ac_status" >&5
32299 echo "$as_me: failed program was:" >&5
32300 sed 's/^/| /' conftest.$ac_ext >&5
32302 ( exit $ac_status )
32303 ac_cv_c_stack_direction=-1
32305 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32310 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
32311 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
32313 cat >>confdefs.h <<_ACEOF
32314 #define STACK_DIRECTION $ac_cv_c_stack_direction
32320 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
32321 # -lseq on Dynix/PTX, -lgen on Unixware.
32322 { echo "$as_me:$LINENO: checking for library containing getmntent" >&5
32323 echo $ECHO_N "checking for library containing getmntent... $ECHO_C" >&6; }
32324 if test "${ac_cv_search_getmntent+set}" = set; then
32325 echo $ECHO_N "(cached) $ECHO_C" >&6
32327 ac_func_search_save_LIBS=$LIBS
32328 cat >conftest.$ac_ext <<_ACEOF
32331 cat confdefs.h >>conftest.$ac_ext
32332 cat >>conftest.$ac_ext <<_ACEOF
32333 /* end confdefs.h. */
32335 /* Override any GCC internal prototype to avoid an error.
32336 Use char because int might match the return type of a GCC
32337 builtin and then its argument prototype would still apply. */
32345 return getmntent ();
32350 for ac_lib in '' sun seq gen; do
32351 if test -z "$ac_lib"; then
32352 ac_res="none required"
32355 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
32357 rm -f conftest.$ac_objext conftest$ac_exeext
32358 if { (ac_try="$ac_link"
32359 case "(($ac_try" in
32360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32361 *) ac_try_echo=$ac_try;;
32363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32364 (eval "$ac_link") 2>conftest.er1
32366 grep -v '^ *+' conftest.er1 >conftest.err
32368 cat conftest.err >&5
32369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32370 (exit $ac_status); } &&
32371 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32372 { (case "(($ac_try" in
32373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32374 *) ac_try_echo=$ac_try;;
32376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32377 (eval "$ac_try") 2>&5
32379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32380 (exit $ac_status); }; } &&
32381 { ac_try='test -s conftest$ac_exeext'
32382 { (case "(($ac_try" in
32383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32384 *) ac_try_echo=$ac_try;;
32386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32387 (eval "$ac_try") 2>&5
32389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32390 (exit $ac_status); }; }; then
32391 ac_cv_search_getmntent=$ac_res
32393 echo "$as_me: failed program was:" >&5
32394 sed 's/^/| /' conftest.$ac_ext >&5
32399 rm -f core conftest.err conftest.$ac_objext \
32401 if test "${ac_cv_search_getmntent+set}" = set; then
32405 if test "${ac_cv_search_getmntent+set}" = set; then
32408 ac_cv_search_getmntent=no
32410 rm conftest.$ac_ext
32411 LIBS=$ac_func_search_save_LIBS
32413 { echo "$as_me:$LINENO: result: $ac_cv_search_getmntent" >&5
32414 echo "${ECHO_T}$ac_cv_search_getmntent" >&6; }
32415 ac_res=$ac_cv_search_getmntent
32416 if test "$ac_res" != no; then
32417 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
32422 for ac_func in getmntent
32424 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32425 { echo "$as_me:$LINENO: checking for $ac_func" >&5
32426 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32427 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32428 echo $ECHO_N "(cached) $ECHO_C" >&6
32430 cat >conftest.$ac_ext <<_ACEOF
32433 cat confdefs.h >>conftest.$ac_ext
32434 cat >>conftest.$ac_ext <<_ACEOF
32435 /* end confdefs.h. */
32436 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32437 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32438 #define $ac_func innocuous_$ac_func
32440 /* System header to define __stub macros and hopefully few prototypes,
32441 which can conflict with char $ac_func (); below.
32442 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32443 <limits.h> exists even on freestanding compilers. */
32446 # include <limits.h>
32448 # include <assert.h>
32453 /* Override any GCC internal prototype to avoid an error.
32454 Use char because int might match the return type of a GCC
32455 builtin and then its argument prototype would still apply. */
32460 /* The GNU C library defines this for functions which it implements
32461 to always fail with ENOSYS. Some functions are actually named
32462 something starting with __ and the normal name is an alias. */
32463 #if defined __stub_$ac_func || defined __stub___$ac_func
32470 return $ac_func ();
32475 rm -f conftest.$ac_objext conftest$ac_exeext
32476 if { (ac_try="$ac_link"
32477 case "(($ac_try" in
32478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32479 *) ac_try_echo=$ac_try;;
32481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32482 (eval "$ac_link") 2>conftest.er1
32484 grep -v '^ *+' conftest.er1 >conftest.err
32486 cat conftest.err >&5
32487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32488 (exit $ac_status); } &&
32489 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32490 { (case "(($ac_try" in
32491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32492 *) ac_try_echo=$ac_try;;
32494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32495 (eval "$ac_try") 2>&5
32497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32498 (exit $ac_status); }; } &&
32499 { ac_try='test -s conftest$ac_exeext'
32500 { (case "(($ac_try" in
32501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32502 *) ac_try_echo=$ac_try;;
32504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32505 (eval "$ac_try") 2>&5
32507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32508 (exit $ac_status); }; }; then
32509 eval "$as_ac_var=yes"
32511 echo "$as_me: failed program was:" >&5
32512 sed 's/^/| /' conftest.$ac_ext >&5
32514 eval "$as_ac_var=no"
32517 rm -f core conftest.err conftest.$ac_objext \
32518 conftest$ac_exeext conftest.$ac_ext
32520 ac_res=`eval echo '${'$as_ac_var'}'`
32521 { echo "$as_me:$LINENO: result: $ac_res" >&5
32522 echo "${ECHO_T}$ac_res" >&6; }
32523 if test `eval echo '${'$as_ac_var'}'` = yes; then
32524 cat >>confdefs.h <<_ACEOF
32525 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32532 { echo "$as_me:$LINENO: checking whether closedir returns void" >&5
32533 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6; }
32534 if test "${ac_cv_func_closedir_void+set}" = set; then
32535 echo $ECHO_N "(cached) $ECHO_C" >&6
32537 if test "$cross_compiling" = yes; then
32538 ac_cv_func_closedir_void=yes
32540 cat >conftest.$ac_ext <<_ACEOF
32543 cat confdefs.h >>conftest.$ac_ext
32544 cat >>conftest.$ac_ext <<_ACEOF
32545 /* end confdefs.h. */
32546 $ac_includes_default
32547 #include <$ac_header_dirent>
32548 #ifndef __cplusplus
32555 return closedir (opendir (".")) != 0;
32560 rm -f conftest$ac_exeext
32561 if { (ac_try="$ac_link"
32562 case "(($ac_try" in
32563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32564 *) ac_try_echo=$ac_try;;
32566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32567 (eval "$ac_link") 2>&5
32569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32570 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32571 { (case "(($ac_try" in
32572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32573 *) ac_try_echo=$ac_try;;
32575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32576 (eval "$ac_try") 2>&5
32578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32579 (exit $ac_status); }; }; then
32580 ac_cv_func_closedir_void=no
32582 echo "$as_me: program exited with status $ac_status" >&5
32583 echo "$as_me: failed program was:" >&5
32584 sed 's/^/| /' conftest.$ac_ext >&5
32586 ( exit $ac_status )
32587 ac_cv_func_closedir_void=yes
32589 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32594 { echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
32595 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6; }
32596 if test $ac_cv_func_closedir_void = yes; then
32598 cat >>confdefs.h <<\_ACEOF
32599 #define CLOSEDIR_VOID 1
32604 { echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
32605 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6; }
32606 if test "${ac_cv_func_setpgrp_void+set}" = set; then
32607 echo $ECHO_N "(cached) $ECHO_C" >&6
32609 if test "$cross_compiling" = yes; then
32610 { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
32611 echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
32612 { (exit 1); exit 1; }; }
32614 cat >conftest.$ac_ext <<_ACEOF
32617 cat confdefs.h >>conftest.$ac_ext
32618 cat >>conftest.$ac_ext <<_ACEOF
32619 /* end confdefs.h. */
32620 $ac_includes_default
32624 /* If this system has a BSD-style setpgrp which takes arguments,
32625 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
32626 exit successfully. */
32627 return setpgrp (1,1) != -1;
32632 rm -f conftest$ac_exeext
32633 if { (ac_try="$ac_link"
32634 case "(($ac_try" in
32635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32636 *) ac_try_echo=$ac_try;;
32638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32639 (eval "$ac_link") 2>&5
32641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32642 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32643 { (case "(($ac_try" in
32644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32645 *) ac_try_echo=$ac_try;;
32647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32648 (eval "$ac_try") 2>&5
32650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32651 (exit $ac_status); }; }; then
32652 ac_cv_func_setpgrp_void=no
32654 echo "$as_me: program exited with status $ac_status" >&5
32655 echo "$as_me: failed program was:" >&5
32656 sed 's/^/| /' conftest.$ac_ext >&5
32658 ( exit $ac_status )
32659 ac_cv_func_setpgrp_void=yes
32661 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32666 { echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
32667 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6; }
32668 if test $ac_cv_func_setpgrp_void = yes; then
32670 cat >>confdefs.h <<\_ACEOF
32671 #define SETPGRP_VOID 1
32675 # AC_FUNC_FNMATCH dnl use local version
32678 { echo "$as_me:$LINENO: checking for gettext in -lintl" >&5
32679 echo $ECHO_N "checking for gettext in -lintl... $ECHO_C" >&6; }
32680 if test "${ac_cv_lib_intl_gettext+set}" = set; then
32681 echo $ECHO_N "(cached) $ECHO_C" >&6
32683 ac_check_lib_save_LIBS=$LIBS
32684 LIBS="-lintl $LIBS"
32685 cat >conftest.$ac_ext <<_ACEOF
32688 cat confdefs.h >>conftest.$ac_ext
32689 cat >>conftest.$ac_ext <<_ACEOF
32690 /* end confdefs.h. */
32692 /* Override any GCC internal prototype to avoid an error.
32693 Use char because int might match the return type of a GCC
32694 builtin and then its argument prototype would still apply. */
32707 rm -f conftest.$ac_objext conftest$ac_exeext
32708 if { (ac_try="$ac_link"
32709 case "(($ac_try" in
32710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32711 *) ac_try_echo=$ac_try;;
32713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32714 (eval "$ac_link") 2>conftest.er1
32716 grep -v '^ *+' conftest.er1 >conftest.err
32718 cat conftest.err >&5
32719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32720 (exit $ac_status); } &&
32721 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32722 { (case "(($ac_try" in
32723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32724 *) ac_try_echo=$ac_try;;
32726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32727 (eval "$ac_try") 2>&5
32729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32730 (exit $ac_status); }; } &&
32731 { ac_try='test -s conftest$ac_exeext'
32732 { (case "(($ac_try" in
32733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32734 *) ac_try_echo=$ac_try;;
32736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32737 (eval "$ac_try") 2>&5
32739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32740 (exit $ac_status); }; }; then
32741 ac_cv_lib_intl_gettext=yes
32743 echo "$as_me: failed program was:" >&5
32744 sed 's/^/| /' conftest.$ac_ext >&5
32746 ac_cv_lib_intl_gettext=no
32749 rm -f core conftest.err conftest.$ac_objext \
32750 conftest$ac_exeext conftest.$ac_ext
32751 LIBS=$ac_check_lib_save_LIBS
32753 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_gettext" >&5
32754 echo "${ECHO_T}$ac_cv_lib_intl_gettext" >&6; }
32755 if test $ac_cv_lib_intl_gettext = yes; then
32756 LIBS="$LIBS -lintl"
32762 { echo "$as_me:$LINENO: checking for getpwnam in -lsun" >&5
32763 echo $ECHO_N "checking for getpwnam in -lsun... $ECHO_C" >&6; }
32764 if test "${ac_cv_lib_sun_getpwnam+set}" = set; then
32765 echo $ECHO_N "(cached) $ECHO_C" >&6
32767 ac_check_lib_save_LIBS=$LIBS
32769 cat >conftest.$ac_ext <<_ACEOF
32772 cat confdefs.h >>conftest.$ac_ext
32773 cat >>conftest.$ac_ext <<_ACEOF
32774 /* end confdefs.h. */
32776 /* Override any GCC internal prototype to avoid an error.
32777 Use char because int might match the return type of a GCC
32778 builtin and then its argument prototype would still apply. */
32786 return getpwnam ();
32791 rm -f conftest.$ac_objext conftest$ac_exeext
32792 if { (ac_try="$ac_link"
32793 case "(($ac_try" in
32794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32795 *) ac_try_echo=$ac_try;;
32797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32798 (eval "$ac_link") 2>conftest.er1
32800 grep -v '^ *+' conftest.er1 >conftest.err
32802 cat conftest.err >&5
32803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32804 (exit $ac_status); } &&
32805 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32806 { (case "(($ac_try" in
32807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32808 *) ac_try_echo=$ac_try;;
32810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32811 (eval "$ac_try") 2>&5
32813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32814 (exit $ac_status); }; } &&
32815 { ac_try='test -s conftest$ac_exeext'
32816 { (case "(($ac_try" in
32817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32818 *) ac_try_echo=$ac_try;;
32820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32821 (eval "$ac_try") 2>&5
32823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32824 (exit $ac_status); }; }; then
32825 ac_cv_lib_sun_getpwnam=yes
32827 echo "$as_me: failed program was:" >&5
32828 sed 's/^/| /' conftest.$ac_ext >&5
32830 ac_cv_lib_sun_getpwnam=no
32833 rm -f core conftest.err conftest.$ac_objext \
32834 conftest$ac_exeext conftest.$ac_ext
32835 LIBS=$ac_check_lib_save_LIBS
32837 { echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getpwnam" >&5
32838 echo "${ECHO_T}$ac_cv_lib_sun_getpwnam" >&6; }
32839 if test $ac_cv_lib_sun_getpwnam = yes; then
32840 cat >>confdefs.h <<_ACEOF
32841 #define HAVE_LIBSUN 1
32850 for ac_header in zlib.h
32852 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32853 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32854 { echo "$as_me:$LINENO: checking for $ac_header" >&5
32855 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
32856 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32857 echo $ECHO_N "(cached) $ECHO_C" >&6
32859 ac_res=`eval echo '${'$as_ac_Header'}'`
32860 { echo "$as_me:$LINENO: result: $ac_res" >&5
32861 echo "${ECHO_T}$ac_res" >&6; }
32863 # Is the header compilable?
32864 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
32865 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
32866 cat >conftest.$ac_ext <<_ACEOF
32869 cat confdefs.h >>conftest.$ac_ext
32870 cat >>conftest.$ac_ext <<_ACEOF
32871 /* end confdefs.h. */
32872 $ac_includes_default
32873 #include <$ac_header>
32875 rm -f conftest.$ac_objext
32876 if { (ac_try="$ac_compile"
32877 case "(($ac_try" in
32878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32879 *) ac_try_echo=$ac_try;;
32881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32882 (eval "$ac_compile") 2>conftest.er1
32884 grep -v '^ *+' conftest.er1 >conftest.err
32886 cat conftest.err >&5
32887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32888 (exit $ac_status); } &&
32889 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32890 { (case "(($ac_try" in
32891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32892 *) ac_try_echo=$ac_try;;
32894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32895 (eval "$ac_try") 2>&5
32897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32898 (exit $ac_status); }; } &&
32899 { ac_try='test -s conftest.$ac_objext'
32900 { (case "(($ac_try" in
32901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32902 *) ac_try_echo=$ac_try;;
32904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32905 (eval "$ac_try") 2>&5
32907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32908 (exit $ac_status); }; }; then
32909 ac_header_compiler=yes
32911 echo "$as_me: failed program was:" >&5
32912 sed 's/^/| /' conftest.$ac_ext >&5
32914 ac_header_compiler=no
32917 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32918 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32919 echo "${ECHO_T}$ac_header_compiler" >&6; }
32921 # Is the header present?
32922 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
32923 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
32924 cat >conftest.$ac_ext <<_ACEOF
32927 cat confdefs.h >>conftest.$ac_ext
32928 cat >>conftest.$ac_ext <<_ACEOF
32929 /* end confdefs.h. */
32930 #include <$ac_header>
32932 if { (ac_try="$ac_cpp conftest.$ac_ext"
32933 case "(($ac_try" in
32934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32935 *) ac_try_echo=$ac_try;;
32937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32938 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32940 grep -v '^ *+' conftest.er1 >conftest.err
32942 cat conftest.err >&5
32943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32944 (exit $ac_status); } >/dev/null; then
32945 if test -s conftest.err; then
32946 ac_cpp_err=$ac_c_preproc_warn_flag
32947 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
32954 if test -z "$ac_cpp_err"; then
32955 ac_header_preproc=yes
32957 echo "$as_me: failed program was:" >&5
32958 sed 's/^/| /' conftest.$ac_ext >&5
32960 ac_header_preproc=no
32963 rm -f conftest.err conftest.$ac_ext
32964 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32965 echo "${ECHO_T}$ac_header_preproc" >&6; }
32967 # So? What about this header?
32968 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32970 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
32971 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
32972 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
32973 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
32974 ac_header_preproc=yes
32977 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
32978 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
32979 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
32980 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
32981 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
32982 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
32983 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
32984 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
32985 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
32986 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
32987 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
32988 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
32992 { echo "$as_me:$LINENO: checking for $ac_header" >&5
32993 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
32994 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32995 echo $ECHO_N "(cached) $ECHO_C" >&6
32997 eval "$as_ac_Header=\$ac_header_preproc"
32999 ac_res=`eval echo '${'$as_ac_Header'}'`
33000 { echo "$as_me:$LINENO: result: $ac_res" >&5
33001 echo "${ECHO_T}$ac_res" >&6; }
33004 if test `eval echo '${'$as_ac_Header'}'` = yes; then
33005 cat >>confdefs.h <<_ACEOF
33006 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
33013 { echo "$as_me:$LINENO: checking for deflate in -lz" >&5
33014 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6; }
33015 if test "${ac_cv_lib_z_deflate+set}" = set; then
33016 echo $ECHO_N "(cached) $ECHO_C" >&6
33018 ac_check_lib_save_LIBS=$LIBS
33020 cat >conftest.$ac_ext <<_ACEOF
33023 cat confdefs.h >>conftest.$ac_ext
33024 cat >>conftest.$ac_ext <<_ACEOF
33025 /* end confdefs.h. */
33027 /* Override any GCC internal prototype to avoid an error.
33028 Use char because int might match the return type of a GCC
33029 builtin and then its argument prototype would still apply. */
33042 rm -f conftest.$ac_objext conftest$ac_exeext
33043 if { (ac_try="$ac_link"
33044 case "(($ac_try" in
33045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33046 *) ac_try_echo=$ac_try;;
33048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33049 (eval "$ac_link") 2>conftest.er1
33051 grep -v '^ *+' conftest.er1 >conftest.err
33053 cat conftest.err >&5
33054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33055 (exit $ac_status); } &&
33056 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33057 { (case "(($ac_try" in
33058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33059 *) ac_try_echo=$ac_try;;
33061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33062 (eval "$ac_try") 2>&5
33064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33065 (exit $ac_status); }; } &&
33066 { ac_try='test -s conftest$ac_exeext'
33067 { (case "(($ac_try" in
33068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33069 *) ac_try_echo=$ac_try;;
33071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33072 (eval "$ac_try") 2>&5
33074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33075 (exit $ac_status); }; }; then
33076 ac_cv_lib_z_deflate=yes
33078 echo "$as_me: failed program was:" >&5
33079 sed 's/^/| /' conftest.$ac_ext >&5
33081 ac_cv_lib_z_deflate=no
33084 rm -f core conftest.err conftest.$ac_objext \
33085 conftest$ac_exeext conftest.$ac_ext
33086 LIBS=$ac_check_lib_save_LIBS
33088 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
33089 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6; }
33090 if test $ac_cv_lib_z_deflate = yes; then
33095 if test x$FDLIBS = x-lz; then
33096 cat >>confdefs.h <<\_ACEOF
33097 #define HAVE_LIBZ 1
33104 # Check for ACL libraries
33107 if test "${ac_cv_header_sys_acl_h+set}" = set; then
33108 { echo "$as_me:$LINENO: checking for sys/acl.h" >&5
33109 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6; }
33110 if test "${ac_cv_header_sys_acl_h+set}" = set; then
33111 echo $ECHO_N "(cached) $ECHO_C" >&6
33113 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
33114 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6; }
33116 # Is the header compilable?
33117 { echo "$as_me:$LINENO: checking sys/acl.h usability" >&5
33118 echo $ECHO_N "checking sys/acl.h usability... $ECHO_C" >&6; }
33119 cat >conftest.$ac_ext <<_ACEOF
33122 cat confdefs.h >>conftest.$ac_ext
33123 cat >>conftest.$ac_ext <<_ACEOF
33124 /* end confdefs.h. */
33125 $ac_includes_default
33126 #include <sys/acl.h>
33128 rm -f conftest.$ac_objext
33129 if { (ac_try="$ac_compile"
33130 case "(($ac_try" in
33131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33132 *) ac_try_echo=$ac_try;;
33134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33135 (eval "$ac_compile") 2>conftest.er1
33137 grep -v '^ *+' conftest.er1 >conftest.err
33139 cat conftest.err >&5
33140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33141 (exit $ac_status); } &&
33142 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33143 { (case "(($ac_try" in
33144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33145 *) ac_try_echo=$ac_try;;
33147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33148 (eval "$ac_try") 2>&5
33150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33151 (exit $ac_status); }; } &&
33152 { ac_try='test -s conftest.$ac_objext'
33153 { (case "(($ac_try" in
33154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33155 *) ac_try_echo=$ac_try;;
33157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33158 (eval "$ac_try") 2>&5
33160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33161 (exit $ac_status); }; }; then
33162 ac_header_compiler=yes
33164 echo "$as_me: failed program was:" >&5
33165 sed 's/^/| /' conftest.$ac_ext >&5
33167 ac_header_compiler=no
33170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33171 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33172 echo "${ECHO_T}$ac_header_compiler" >&6; }
33174 # Is the header present?
33175 { echo "$as_me:$LINENO: checking sys/acl.h presence" >&5
33176 echo $ECHO_N "checking sys/acl.h presence... $ECHO_C" >&6; }
33177 cat >conftest.$ac_ext <<_ACEOF
33180 cat confdefs.h >>conftest.$ac_ext
33181 cat >>conftest.$ac_ext <<_ACEOF
33182 /* end confdefs.h. */
33183 #include <sys/acl.h>
33185 if { (ac_try="$ac_cpp conftest.$ac_ext"
33186 case "(($ac_try" in
33187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33188 *) ac_try_echo=$ac_try;;
33190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33191 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33193 grep -v '^ *+' conftest.er1 >conftest.err
33195 cat conftest.err >&5
33196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33197 (exit $ac_status); } >/dev/null; then
33198 if test -s conftest.err; then
33199 ac_cpp_err=$ac_c_preproc_warn_flag
33200 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
33207 if test -z "$ac_cpp_err"; then
33208 ac_header_preproc=yes
33210 echo "$as_me: failed program was:" >&5
33211 sed 's/^/| /' conftest.$ac_ext >&5
33213 ac_header_preproc=no
33216 rm -f conftest.err conftest.$ac_ext
33217 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33218 echo "${ECHO_T}$ac_header_preproc" >&6; }
33220 # So? What about this header?
33221 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33223 { echo "$as_me:$LINENO: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&5
33224 echo "$as_me: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
33225 { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the compiler's result" >&5
33226 echo "$as_me: WARNING: sys/acl.h: proceeding with the compiler's result" >&2;}
33227 ac_header_preproc=yes
33230 { echo "$as_me:$LINENO: WARNING: sys/acl.h: present but cannot be compiled" >&5
33231 echo "$as_me: WARNING: sys/acl.h: present but cannot be compiled" >&2;}
33232 { echo "$as_me:$LINENO: WARNING: sys/acl.h: check for missing prerequisite headers?" >&5
33233 echo "$as_me: WARNING: sys/acl.h: check for missing prerequisite headers?" >&2;}
33234 { echo "$as_me:$LINENO: WARNING: sys/acl.h: see the Autoconf documentation" >&5
33235 echo "$as_me: WARNING: sys/acl.h: see the Autoconf documentation" >&2;}
33236 { echo "$as_me:$LINENO: WARNING: sys/acl.h: section \"Present But Cannot Be Compiled\"" >&5
33237 echo "$as_me: WARNING: sys/acl.h: section \"Present But Cannot Be Compiled\"" >&2;}
33238 { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&5
33239 echo "$as_me: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&2;}
33240 { echo "$as_me:$LINENO: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&5
33241 echo "$as_me: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&2;}
33245 { echo "$as_me:$LINENO: checking for sys/acl.h" >&5
33246 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6; }
33247 if test "${ac_cv_header_sys_acl_h+set}" = set; then
33248 echo $ECHO_N "(cached) $ECHO_C" >&6
33250 ac_cv_header_sys_acl_h=$ac_header_preproc
33252 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
33253 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6; }
33258 { echo "$as_me:$LINENO: checking for acl_get_file" >&5
33259 echo $ECHO_N "checking for acl_get_file... $ECHO_C" >&6; }
33260 if test "${ac_cv_func_acl_get_file+set}" = set; then
33261 echo $ECHO_N "(cached) $ECHO_C" >&6
33263 cat >conftest.$ac_ext <<_ACEOF
33266 cat confdefs.h >>conftest.$ac_ext
33267 cat >>conftest.$ac_ext <<_ACEOF
33268 /* end confdefs.h. */
33269 /* Define acl_get_file to an innocuous variant, in case <limits.h> declares acl_get_file.
33270 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33271 #define acl_get_file innocuous_acl_get_file
33273 /* System header to define __stub macros and hopefully few prototypes,
33274 which can conflict with char acl_get_file (); below.
33275 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33276 <limits.h> exists even on freestanding compilers. */
33279 # include <limits.h>
33281 # include <assert.h>
33284 #undef acl_get_file
33286 /* Override any GCC internal prototype to avoid an error.
33287 Use char because int might match the return type of a GCC
33288 builtin and then its argument prototype would still apply. */
33292 char acl_get_file ();
33293 /* The GNU C library defines this for functions which it implements
33294 to always fail with ENOSYS. Some functions are actually named
33295 something starting with __ and the normal name is an alias. */
33296 #if defined __stub_acl_get_file || defined __stub___acl_get_file
33303 return acl_get_file ();
33308 rm -f conftest.$ac_objext conftest$ac_exeext
33309 if { (ac_try="$ac_link"
33310 case "(($ac_try" in
33311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33312 *) ac_try_echo=$ac_try;;
33314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33315 (eval "$ac_link") 2>conftest.er1
33317 grep -v '^ *+' conftest.er1 >conftest.err
33319 cat conftest.err >&5
33320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33321 (exit $ac_status); } &&
33322 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33323 { (case "(($ac_try" in
33324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33325 *) ac_try_echo=$ac_try;;
33327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33328 (eval "$ac_try") 2>&5
33330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33331 (exit $ac_status); }; } &&
33332 { ac_try='test -s conftest$ac_exeext'
33333 { (case "(($ac_try" in
33334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33335 *) ac_try_echo=$ac_try;;
33337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33338 (eval "$ac_try") 2>&5
33340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33341 (exit $ac_status); }; }; then
33342 ac_cv_func_acl_get_file=yes
33344 echo "$as_me: failed program was:" >&5
33345 sed 's/^/| /' conftest.$ac_ext >&5
33347 ac_cv_func_acl_get_file=no
33350 rm -f core conftest.err conftest.$ac_objext \
33351 conftest$ac_exeext conftest.$ac_ext
33353 { echo "$as_me:$LINENO: result: $ac_cv_func_acl_get_file" >&5
33354 echo "${ECHO_T}$ac_cv_func_acl_get_file" >&6; }
33355 if test $ac_cv_func_acl_get_file = yes; then
33358 { echo "$as_me:$LINENO: checking for acl_get_file in -lacl" >&5
33359 echo $ECHO_N "checking for acl_get_file in -lacl... $ECHO_C" >&6; }
33360 if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then
33361 echo $ECHO_N "(cached) $ECHO_C" >&6
33363 ac_check_lib_save_LIBS=$LIBS
33365 cat >conftest.$ac_ext <<_ACEOF
33368 cat confdefs.h >>conftest.$ac_ext
33369 cat >>conftest.$ac_ext <<_ACEOF
33370 /* end confdefs.h. */
33372 /* Override any GCC internal prototype to avoid an error.
33373 Use char because int might match the return type of a GCC
33374 builtin and then its argument prototype would still apply. */
33378 char acl_get_file ();
33382 return acl_get_file ();
33387 rm -f conftest.$ac_objext conftest$ac_exeext
33388 if { (ac_try="$ac_link"
33389 case "(($ac_try" in
33390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33391 *) ac_try_echo=$ac_try;;
33393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33394 (eval "$ac_link") 2>conftest.er1
33396 grep -v '^ *+' conftest.er1 >conftest.err
33398 cat conftest.err >&5
33399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33400 (exit $ac_status); } &&
33401 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33402 { (case "(($ac_try" in
33403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33404 *) ac_try_echo=$ac_try;;
33406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33407 (eval "$ac_try") 2>&5
33409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33410 (exit $ac_status); }; } &&
33411 { ac_try='test -s conftest$ac_exeext'
33412 { (case "(($ac_try" in
33413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33414 *) ac_try_echo=$ac_try;;
33416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33417 (eval "$ac_try") 2>&5
33419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33420 (exit $ac_status); }; }; then
33421 ac_cv_lib_acl_acl_get_file=yes
33423 echo "$as_me: failed program was:" >&5
33424 sed 's/^/| /' conftest.$ac_ext >&5
33426 ac_cv_lib_acl_acl_get_file=no
33429 rm -f core conftest.err conftest.$ac_objext \
33430 conftest$ac_exeext conftest.$ac_ext
33431 LIBS=$ac_check_lib_save_LIBS
33433 { echo "$as_me:$LINENO: result: $ac_cv_lib_acl_acl_get_file" >&5
33434 echo "${ECHO_T}$ac_cv_lib_acl_acl_get_file" >&6; }
33435 if test $ac_cv_lib_acl_acl_get_file = yes; then
33436 have_acl=yes; FDLIBS="-lacl $FDLIBS"
33438 { echo "$as_me:$LINENO: checking for acltotext in -lsec" >&5
33439 echo $ECHO_N "checking for acltotext in -lsec... $ECHO_C" >&6; }
33440 if test "${ac_cv_lib_sec_acltotext+set}" = set; then
33441 echo $ECHO_N "(cached) $ECHO_C" >&6
33443 ac_check_lib_save_LIBS=$LIBS
33445 cat >conftest.$ac_ext <<_ACEOF
33448 cat confdefs.h >>conftest.$ac_ext
33449 cat >>conftest.$ac_ext <<_ACEOF
33450 /* end confdefs.h. */
33452 /* Override any GCC internal prototype to avoid an error.
33453 Use char because int might match the return type of a GCC
33454 builtin and then its argument prototype would still apply. */
33462 return acltotext ();
33467 rm -f conftest.$ac_objext conftest$ac_exeext
33468 if { (ac_try="$ac_link"
33469 case "(($ac_try" in
33470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33471 *) ac_try_echo=$ac_try;;
33473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33474 (eval "$ac_link") 2>conftest.er1
33476 grep -v '^ *+' conftest.er1 >conftest.err
33478 cat conftest.err >&5
33479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33480 (exit $ac_status); } &&
33481 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33482 { (case "(($ac_try" in
33483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33484 *) ac_try_echo=$ac_try;;
33486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33487 (eval "$ac_try") 2>&5
33489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33490 (exit $ac_status); }; } &&
33491 { ac_try='test -s conftest$ac_exeext'
33492 { (case "(($ac_try" in
33493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33494 *) ac_try_echo=$ac_try;;
33496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33497 (eval "$ac_try") 2>&5
33499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33500 (exit $ac_status); }; }; then
33501 ac_cv_lib_sec_acltotext=yes
33503 echo "$as_me: failed program was:" >&5
33504 sed 's/^/| /' conftest.$ac_ext >&5
33506 ac_cv_lib_sec_acltotext=no
33509 rm -f core conftest.err conftest.$ac_objext \
33510 conftest$ac_exeext conftest.$ac_ext
33511 LIBS=$ac_check_lib_save_LIBS
33513 { echo "$as_me:$LINENO: result: $ac_cv_lib_sec_acltotext" >&5
33514 echo "${ECHO_T}$ac_cv_lib_sec_acltotext" >&6; }
33515 if test $ac_cv_lib_sec_acltotext = yes; then
33516 have_acl=yes; FDLIBS="-lsec $FDLIBS"
33525 if test $have_acl = yes; then
33526 cat >>confdefs.h <<\_ACEOF
33533 { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
33534 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
33535 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
33536 echo $ECHO_N "(cached) $ECHO_C" >&6
33538 ac_check_lib_save_LIBS=$LIBS
33539 LIBS="-lpthread $LIBS"
33540 cat >conftest.$ac_ext <<_ACEOF
33543 cat confdefs.h >>conftest.$ac_ext
33544 cat >>conftest.$ac_ext <<_ACEOF
33545 /* end confdefs.h. */
33547 /* Override any GCC internal prototype to avoid an error.
33548 Use char because int might match the return type of a GCC
33549 builtin and then its argument prototype would still apply. */
33553 char pthread_create ();
33557 return pthread_create ();
33562 rm -f conftest.$ac_objext conftest$ac_exeext
33563 if { (ac_try="$ac_link"
33564 case "(($ac_try" in
33565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33566 *) ac_try_echo=$ac_try;;
33568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33569 (eval "$ac_link") 2>conftest.er1
33571 grep -v '^ *+' conftest.er1 >conftest.err
33573 cat conftest.err >&5
33574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33575 (exit $ac_status); } &&
33576 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33577 { (case "(($ac_try" in
33578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33579 *) ac_try_echo=$ac_try;;
33581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33582 (eval "$ac_try") 2>&5
33584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33585 (exit $ac_status); }; } &&
33586 { ac_try='test -s conftest$ac_exeext'
33587 { (case "(($ac_try" in
33588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33589 *) ac_try_echo=$ac_try;;
33591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33592 (eval "$ac_try") 2>&5
33594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33595 (exit $ac_status); }; }; then
33596 ac_cv_lib_pthread_pthread_create=yes
33598 echo "$as_me: failed program was:" >&5
33599 sed 's/^/| /' conftest.$ac_ext >&5
33601 ac_cv_lib_pthread_pthread_create=no
33604 rm -f core conftest.err conftest.$ac_objext \
33605 conftest$ac_exeext conftest.$ac_ext
33606 LIBS=$ac_check_lib_save_LIBS
33608 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
33609 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; }
33610 if test $ac_cv_lib_pthread_pthread_create = yes; then
33611 PTHREAD_LIB="-lpthread"
33613 { echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
33614 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6; }
33615 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
33616 echo $ECHO_N "(cached) $ECHO_C" >&6
33618 ac_check_lib_save_LIBS=$LIBS
33619 LIBS="-lpthreads $LIBS"
33620 cat >conftest.$ac_ext <<_ACEOF
33623 cat confdefs.h >>conftest.$ac_ext
33624 cat >>conftest.$ac_ext <<_ACEOF
33625 /* end confdefs.h. */
33627 /* Override any GCC internal prototype to avoid an error.
33628 Use char because int might match the return type of a GCC
33629 builtin and then its argument prototype would still apply. */
33633 char pthread_create ();
33637 return pthread_create ();
33642 rm -f conftest.$ac_objext conftest$ac_exeext
33643 if { (ac_try="$ac_link"
33644 case "(($ac_try" in
33645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33646 *) ac_try_echo=$ac_try;;
33648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33649 (eval "$ac_link") 2>conftest.er1
33651 grep -v '^ *+' conftest.er1 >conftest.err
33653 cat conftest.err >&5
33654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33655 (exit $ac_status); } &&
33656 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33657 { (case "(($ac_try" in
33658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33659 *) ac_try_echo=$ac_try;;
33661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33662 (eval "$ac_try") 2>&5
33664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33665 (exit $ac_status); }; } &&
33666 { ac_try='test -s conftest$ac_exeext'
33667 { (case "(($ac_try" in
33668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33669 *) ac_try_echo=$ac_try;;
33671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33672 (eval "$ac_try") 2>&5
33674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33675 (exit $ac_status); }; }; then
33676 ac_cv_lib_pthreads_pthread_create=yes
33678 echo "$as_me: failed program was:" >&5
33679 sed 's/^/| /' conftest.$ac_ext >&5
33681 ac_cv_lib_pthreads_pthread_create=no
33684 rm -f core conftest.err conftest.$ac_objext \
33685 conftest$ac_exeext conftest.$ac_ext
33686 LIBS=$ac_check_lib_save_LIBS
33688 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
33689 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6; }
33690 if test $ac_cv_lib_pthreads_pthread_create = yes; then
33691 PTHREAD_LIB="-lpthreads"
33693 { echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
33694 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6; }
33695 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
33696 echo $ECHO_N "(cached) $ECHO_C" >&6
33698 ac_check_lib_save_LIBS=$LIBS
33700 cat >conftest.$ac_ext <<_ACEOF
33703 cat confdefs.h >>conftest.$ac_ext
33704 cat >>conftest.$ac_ext <<_ACEOF
33705 /* end confdefs.h. */
33707 /* Override any GCC internal prototype to avoid an error.
33708 Use char because int might match the return type of a GCC
33709 builtin and then its argument prototype would still apply. */
33713 char pthread_create ();
33717 return pthread_create ();
33722 rm -f conftest.$ac_objext conftest$ac_exeext
33723 if { (ac_try="$ac_link"
33724 case "(($ac_try" in
33725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33726 *) ac_try_echo=$ac_try;;
33728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33729 (eval "$ac_link") 2>conftest.er1
33731 grep -v '^ *+' conftest.er1 >conftest.err
33733 cat conftest.err >&5
33734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33735 (exit $ac_status); } &&
33736 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33737 { (case "(($ac_try" in
33738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33739 *) ac_try_echo=$ac_try;;
33741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33742 (eval "$ac_try") 2>&5
33744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33745 (exit $ac_status); }; } &&
33746 { ac_try='test -s conftest$ac_exeext'
33747 { (case "(($ac_try" in
33748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33749 *) ac_try_echo=$ac_try;;
33751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33752 (eval "$ac_try") 2>&5
33754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33755 (exit $ac_status); }; }; then
33756 ac_cv_lib_c_r_pthread_create=yes
33758 echo "$as_me: failed program was:" >&5
33759 sed 's/^/| /' conftest.$ac_ext >&5
33761 ac_cv_lib_c_r_pthread_create=no
33764 rm -f core conftest.err conftest.$ac_objext \
33765 conftest$ac_exeext conftest.$ac_ext
33766 LIBS=$ac_check_lib_save_LIBS
33768 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
33769 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6; }
33770 if test $ac_cv_lib_c_r_pthread_create = yes; then
33771 PTHREAD_LIB="-lc_r"
33773 { echo "$as_me:$LINENO: checking for pthread_create" >&5
33774 echo $ECHO_N "checking for pthread_create... $ECHO_C" >&6; }
33775 if test "${ac_cv_func_pthread_create+set}" = set; then
33776 echo $ECHO_N "(cached) $ECHO_C" >&6
33778 cat >conftest.$ac_ext <<_ACEOF
33781 cat confdefs.h >>conftest.$ac_ext
33782 cat >>conftest.$ac_ext <<_ACEOF
33783 /* end confdefs.h. */
33784 /* Define pthread_create to an innocuous variant, in case <limits.h> declares pthread_create.
33785 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33786 #define pthread_create innocuous_pthread_create
33788 /* System header to define __stub macros and hopefully few prototypes,
33789 which can conflict with char pthread_create (); below.
33790 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33791 <limits.h> exists even on freestanding compilers. */
33794 # include <limits.h>
33796 # include <assert.h>
33799 #undef pthread_create
33801 /* Override any GCC internal prototype to avoid an error.
33802 Use char because int might match the return type of a GCC
33803 builtin and then its argument prototype would still apply. */
33807 char pthread_create ();
33808 /* The GNU C library defines this for functions which it implements
33809 to always fail with ENOSYS. Some functions are actually named
33810 something starting with __ and the normal name is an alias. */
33811 #if defined __stub_pthread_create || defined __stub___pthread_create
33818 return pthread_create ();
33823 rm -f conftest.$ac_objext conftest$ac_exeext
33824 if { (ac_try="$ac_link"
33825 case "(($ac_try" in
33826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33827 *) ac_try_echo=$ac_try;;
33829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33830 (eval "$ac_link") 2>conftest.er1
33832 grep -v '^ *+' conftest.er1 >conftest.err
33834 cat conftest.err >&5
33835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33836 (exit $ac_status); } &&
33837 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33838 { (case "(($ac_try" in
33839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33840 *) ac_try_echo=$ac_try;;
33842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33843 (eval "$ac_try") 2>&5
33845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33846 (exit $ac_status); }; } &&
33847 { ac_try='test -s conftest$ac_exeext'
33848 { (case "(($ac_try" in
33849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33850 *) ac_try_echo=$ac_try;;
33852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33853 (eval "$ac_try") 2>&5
33855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33856 (exit $ac_status); }; }; then
33857 ac_cv_func_pthread_create=yes
33859 echo "$as_me: failed program was:" >&5
33860 sed 's/^/| /' conftest.$ac_ext >&5
33862 ac_cv_func_pthread_create=no
33865 rm -f core conftest.err conftest.$ac_objext \
33866 conftest$ac_exeext conftest.$ac_ext
33868 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_create" >&5
33869 echo "${ECHO_T}$ac_cv_func_pthread_create" >&6; }
33882 cat >>confdefs.h <<\_ACEOF
33888 CFLAGS=${CFLAGS--O}
33890 if test x$have_gcc = xyes ; then
33891 CPPFLAGS="$CPPFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
33892 CFLAGS="$CFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
33894 LDFLAGS=${LDFLAGS--O}
33895 DB_LIBS="${SQL_LFLAGS}"
33896 CPPFLAGS="$CPPFLAGS"
33924 # Finally we set appropriate distribution specific
33925 # variables and defaults
33927 # PFILES are platform specific files
33928 PFILES="platforms/Makefile"
33932 hostname=`uname -n | cut -d '.' -f 1`
33933 if test x${hostname} = x ; then
33934 hostname="localhost"
33936 case "$DISTNAME" in
33939 PSCMD="ps -e -o pid,comm"
33940 PFILES="${PFILES} \
33941 platforms/aix/Makefile"
33942 TAPEDRIVE="/dev/rmt0.1"
33946 PTHREAD_LIB="-lpthread -lexc"
33947 if test "${CC}" = "gcc" ; then
33954 TAPEDRIVE="/dev/nrmt0"
33957 DISTVER=`uname -a |awk '{print $3}'`
33958 TAPEDRIVE="/dev/nrmt0"
33959 PTHREAD_LIB="-pthread"
33960 CFLAGS="${CFLAGS} -pthread"
33961 PSCMD="ps -ax -o pid,command"
33964 PFILES="${PFILES} \
33965 platforms/bsdi/Makefile \
33966 platforms/bsdi/bacula-fd \
33967 platforms/bsdi/bacula-sd \
33968 platforms/bsdi/bacula-dir"
33969 largefile_support="yes"
33972 DISTVER=`uname -a |awk '{print $3}'`
33973 TAPEDRIVE="/dev/nrst0"
33975 WCFLAGS="-mwindows"
33976 WLDFLAGS="-mwindows"
33980 TAPEDRIVE="/dev/nst0"
33981 PSCMD="ps -e -o pid,command"
33983 PFILES="${PFILES} \
33984 platforms/darwin/Makefile"
33987 DISTVER=`cat /etc/debian_version`
33988 TAPEDRIVE="/dev/nrst0"
33989 PSCMD="ps -e -o pid,command"
33992 DISTVER=`uname -a |awk '{print $3}'`
33993 VER=`echo $DISTVER | cut -c 1`
33994 if test x$VER = x4 ; then
33995 PTHREAD_LIB="${PTHREAD_LIBS:--pthread}"
33996 CFLAGS="${CFLAGS} ${PTHREAD_CFLAGS:--pthread}"
34000 TAPEDRIVE="/dev/nrsa0"
34001 PSCMD="ps -ax -o pid,command"
34002 PFILES="${PFILES} \
34003 platforms/freebsd/Makefile \
34004 platforms/freebsd/bacula-fd \
34005 platforms/freebsd/bacula-sd \
34006 platforms/freebsd/bacula-dir"
34007 largefile_support="yes"
34010 PSCMD="UNIX95=1 ps -e -o pid,comm"
34011 CFLAGS="${CFLAGS} -D_XOPEN_SOURCE_EXTENDED=1"
34013 TAPEDRIVE="/dev/rmt/0hnb"
34014 PTHREAD_LIB="-lpthread"
34015 cat >>confdefs.h <<\_ACEOF
34016 #define _INCLUDE_LONGLONG 1
34022 TAPEDRIVE="/dev/rmt/0cbn"
34023 PSCMD="ps -e -o pid,comm"
34024 PFILES="${PFILES} \
34025 platforms/irix/Makefile \
34026 platforms/irix/bacula-fd \
34027 platforms/irix/bacula-sd \
34028 platforms/irix/bacula-dir"
34031 DISTVER=`uname -a |awk '{print $3}'`
34034 TAPEDRIVE="/dev/nrst0"
34035 PSCMD="ps -ax -o pid,command"
34036 PTHREAD_LIB="-pthread"
34037 CFLAGS="${CFLAGS} -pthread"
34040 DISTVER=`uname -a |awk '{print $3}'`
34043 TAPEDRIVE="/dev/nrst0"
34044 PSCMD="ps -ax -o pid,command"
34045 PTHREAD_LIB="-pthread"
34046 CFLAGS="${CFLAGS} -pthread"
34047 PFILES="${PFILES} \
34048 platforms/openbsd/Makefile \
34049 platforms/openbsd/bacula-fd \
34050 platforms/openbsd/bacula-sd \
34051 platforms/openbsd/bacula-dir"
34054 if test -f /etc/whitebox-release ; then
34055 f=/etc/whitebox-release
34057 f=/etc/redhat-release
34059 if test `cat $f | grep release |\
34060 cut -f 3 -d ' '`x = "Enterprise"x ; then
34061 DISTVER="Enterprise "`cat $f | grep release |\
34064 DISTVER=`cat /etc/redhat-release | grep release |\
34067 TAPEDRIVE="/dev/nst0"
34068 PSCMD="ps -e -o pid,command"
34069 PFILES="${PFILES} \
34070 platforms/redhat/Makefile \
34071 platforms/redhat/bacula-fd \
34072 platforms/redhat/bacula-sd \
34073 platforms/redhat/bacula-dir \
34074 platforms/redhat/bacula.spec \
34078 DISTVER=`cat /etc/mandrake-release | grep release |\
34080 TAPEDRIVE="/dev/nst0"
34081 PSCMD="ps -e -o pid,command"
34082 PFILES="${PFILES} \
34083 platforms/mandrake/Makefile \
34084 platforms/mandrake/bacula-fd \
34085 platforms/mandrake/bacula-sd \
34086 platforms/mandrake/bacula-dir \
34087 platforms/mandrake/bacula.spec \
34091 DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
34092 TAPEDRIVE="/dev/nst0"
34093 PSCMD="ps -e -o pid,command"
34094 PFILES="${PFILES} \
34095 platforms/gentoo/Makefile \
34096 platforms/gentoo/bacula-init \
34097 platforms/gentoo/bacula-fd \
34098 platforms/gentoo/bacula-sd \
34099 platforms/gentoo/bacula-dir"
34102 DISTVER=`cat /etc/slackware-version`
34103 TAPEDRIVE="/dev/nst0"
34104 PSCMD="ps -e -o pid,command"
34105 PFILES="${PFILES} \
34106 platforms/slackware/Makefile \
34107 platforms/slackware/rc.bacula-fd \
34108 platforms/slackware/rc.bacula-sd \
34109 platforms/slackware/rc.bacula-dir\
34110 platforms/slackware/functions.bacula"
34114 TAPEDRIVE="/dev/rmt/0cbn"
34115 PSCMD="ps -e -o pid,comm"
34116 PFILES="${PFILES} \
34117 platforms/solaris/Makefile \
34118 platforms/solaris/bacula-fd \
34119 platforms/solaris/bacula-sd \
34120 platforms/solaris/bacula-dir"
34121 if test x$DISTVER = x5.6 ; then
34122 cat >>confdefs.h <<\_ACEOF
34123 #define HAVE_OLD_SOCKOPT 1
34127 LIBS="$LIBS -lresolv"
34130 DISTVER=`cat /etc/SuSE-release |grep VERSION|\
34132 TAPEDRIVE="/dev/nst0"
34133 PSCMD="ps -e -o pid,command"
34134 PFILES="${PFILES} \
34135 platforms/suse/Makefile \
34136 platforms/suse/bacula-fd \
34137 platforms/suse/bacula-sd \
34138 platforms/suse/bacula-dir \
34139 platforms/suse/bacula \
34140 platforms/suse/bacula.spec"
34145 TAPEDRIVE="/dev/nst0"
34146 PSCMD="ps -e -o pid,command"
34147 PFILES="${PFILES} \
34148 platforms/suse/Makefile \
34149 platforms/suse/bacula-fd \
34150 platforms/suse/bacula-sd \
34151 platforms/suse/bacula-dir"
34155 TAPEDRIVE="/dev/nst0"
34158 echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
34164 LIBS="$PTHREAD_LIB $LIBS"
34166 cat >>confdefs.h <<_ACEOF
34170 cat >>confdefs.h <<_ACEOF
34181 MCOMMON=./autoconf/Make.common
34184 if test "x${subsysdir}" = "x${sbindir}" ; then
34187 echo "You have set both --sbindir and --with-subsys-dir"
34188 echo " equal to: ${subsysdir} "
34189 echo "This is not permitted. Please reconfigure."
34191 echo "Aborting configuration ..."
34197 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"
34199 ac_config_commands="$ac_config_commands default"
34201 cat >confcache <<\_ACEOF
34202 # This file is a shell script that caches the results of configure
34203 # tests run on this system so they can be shared between configure
34204 # scripts and configure runs, see configure's option --config-cache.
34205 # It is not useful on other systems. If it contains results you don't
34206 # want to keep, you may remove or edit it.
34208 # config.status only pays attention to the cache file if you give it
34209 # the --recheck option to rerun configure.
34211 # `ac_cv_env_foo' variables (set or unset) will be overridden when
34212 # loading this file, other *unset* `ac_cv_foo' will be assigned the
34213 # following values.
34217 # The following way of writing the cache mishandles newlines in values,
34218 # but we know of no workaround that is simple, portable, and efficient.
34219 # So, we kill variables containing newlines.
34220 # Ultrix sh set writes to stderr and can't be redirected directly,
34221 # and sets the high bit in the cache file unless we assign to the vars.
34223 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
34224 eval ac_val=\$$ac_var
34228 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
34229 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
34232 _ | IFS | as_nl) ;; #(
34233 *) $as_unset $ac_var ;;
34239 case $as_nl`(ac_space=' '; set) 2>&1` in #(
34240 *${as_nl}ac_space=\ *)
34241 # `set' does not quote correctly, so add quotes (double-quote
34242 # substitution turns \\\\ into \\, and sed turns \\ into \).
34245 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
34248 # `set' quotes correctly as required by POSIX, so do not add quotes.
34249 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
34258 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
34260 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
34262 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
34263 if test -w "$cache_file"; then
34264 test "x$cache_file" != "x/dev/null" &&
34265 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
34266 echo "$as_me: updating cache $cache_file" >&6;}
34267 cat confcache >$cache_file
34269 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
34270 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
34275 test "x$prefix" = xNONE && prefix=$ac_default_prefix
34276 # Let make expand exec_prefix.
34277 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
34279 DEFS=-DHAVE_CONFIG_H
34283 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
34284 # 1. Remove the extension, and $U if already installed.
34285 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
34286 ac_i=`echo "$ac_i" | sed "$ac_script"`
34287 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
34288 # will be set to the directory where LIBOBJS objects are built.
34289 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
34290 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
34292 LIBOBJS=$ac_libobjs
34294 LTLIBOBJS=$ac_ltlibobjs
34298 : ${CONFIG_STATUS=./config.status}
34299 ac_clean_files_save=$ac_clean_files
34300 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
34301 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
34302 echo "$as_me: creating $CONFIG_STATUS" >&6;}
34303 cat >$CONFIG_STATUS <<_ACEOF
34305 # Generated by $as_me.
34306 # Run this file to recreate the current configuration.
34307 # Compiler output produced by configure, useful for debugging
34308 # configure, is in config.log if it exists.
34311 ac_cs_recheck=false
34313 SHELL=\${CONFIG_SHELL-$SHELL}
34316 cat >>$CONFIG_STATUS <<\_ACEOF
34317 ## --------------------- ##
34318 ## M4sh Initialization. ##
34319 ## --------------------- ##
34321 # Be Bourne compatible
34322 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
34325 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
34326 # is contrary to our usage. Disable this feature.
34327 alias -g '${1+"$@"}'='"$@"'
34328 setopt NO_GLOB_SUBST
34330 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
34332 BIN_SH=xpg4; export BIN_SH # for Tru64
34333 DUALCASE=1; export DUALCASE # for MKS sh
34337 # Avoid depending upon Character Ranges.
34338 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
34339 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
34340 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
34341 as_cr_digits='0123456789'
34342 as_cr_alnum=$as_cr_Letters$as_cr_digits
34344 # The user is always right.
34345 if test "${PATH_SEPARATOR+set}" != set; then
34346 echo "#! /bin/sh" >conf$$.sh
34347 echo "exit 0" >>conf$$.sh
34349 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
34357 # Support unset when possible.
34358 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
34366 # We need space, tab and new line, in precisely that order. Quoting is
34367 # there to prevent editors from complaining about space-tab.
34368 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
34369 # splitting by setting IFS to empty value.)
34374 # Find who we are. Look in the path if we contain no directory separator.
34376 *[\\/]* ) as_myself=$0 ;;
34377 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34378 for as_dir in $PATH
34381 test -z "$as_dir" && as_dir=.
34382 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
34388 # We did not find ourselves, most probably we were run as `sh COMMAND'
34389 # in which case we are not to be found in the path.
34390 if test "x$as_myself" = x; then
34393 if test ! -f "$as_myself"; then
34394 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
34395 { (exit 1); exit 1; }
34398 # Work around bugs in pre-3.0 UWIN ksh.
34399 for as_var in ENV MAIL MAILPATH
34400 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
34408 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
34409 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
34410 LC_TELEPHONE LC_TIME
34412 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
34413 eval $as_var=C; export $as_var
34415 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
34419 # Required to use basename.
34420 if expr a : '\(a\)' >/dev/null 2>&1 &&
34421 test "X`expr 00001 : '.*\(...\)'`" = X001; then
34427 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
34428 as_basename=basename
34434 # Name of the executable.
34435 as_me=`$as_basename -- "$0" ||
34436 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
34437 X"$0" : 'X\(//\)$' \| \
34438 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
34440 sed '/^.*\/\([^/][^/]*\)\/*$/{
34459 as_lineno_1=$LINENO
34460 as_lineno_2=$LINENO
34461 test "x$as_lineno_1" != "x$as_lineno_2" &&
34462 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
34464 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
34465 # uniformly replaced by the line number. The first 'sed' inserts a
34466 # line-number line after each line using $LINENO; the second 'sed'
34467 # does the real work. The second script uses 'N' to pair each
34468 # line-number line with the line containing $LINENO, and appends
34469 # trailing '-' during substitution so that $LINENO is not a special
34470 # case at line end.
34471 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
34472 # scripts with optimization help from Paolo Bonzini. Blame Lee
34473 # E. McMahon (1931-1989) for sed's syntax. :-)
34485 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
34488 ' >$as_me.lineno &&
34489 chmod +x "$as_me.lineno" ||
34490 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
34491 { (exit 1); exit 1; }; }
34493 # Don't try to exec as it changes $[0], causing all sort of problems
34494 # (the dirname of $[0] is not the place where we might find the
34495 # original and so on. Autoconf is especially sensitive to this).
34496 . "./$as_me.lineno"
34497 # Exit status is that of the last command.
34502 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
34508 ECHO_C= ECHO_N= ECHO_T=
34509 case `echo -n x` in
34511 case `echo 'x\c'` in
34512 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
34519 if expr a : '\(a\)' >/dev/null 2>&1 &&
34520 test "X`expr 00001 : '.*\(...\)'`" = X001; then
34526 rm -f conf$$ conf$$.exe conf$$.file
34527 if test -d conf$$.dir; then
34528 rm -f conf$$.dir/conf$$.file
34534 if ln -s conf$$.file conf$$ 2>/dev/null; then
34536 # ... but there are two gotchas:
34537 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
34538 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
34539 # In both cases, we have to default to `cp -p'.
34540 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
34542 elif ln conf$$.file conf$$ 2>/dev/null; then
34547 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
34548 rmdir conf$$.dir 2>/dev/null
34550 if mkdir -p . 2>/dev/null; then
34553 test -d ./-p && rmdir ./-p
34557 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
34558 # systems may use methods other than mode bits to determine executability.
34559 cat >conf$$.file <<_ASEOF
34563 chmod +x conf$$.file
34564 if test -x conf$$.file >/dev/null 2>&1; then
34565 as_executable_p="test -x"
34571 # Sed expression to map a string onto a valid CPP name.
34572 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
34574 # Sed expression to map a string onto a valid variable name.
34575 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
34580 # Save the log message, to keep $[0] and so on meaningful, and to
34581 # report actual input values of CONFIG_FILES etc. instead of their
34582 # values after options handling.
34584 This file was extended by $as_me, which was
34585 generated by GNU Autoconf 2.60. Invocation command line was
34587 CONFIG_FILES = $CONFIG_FILES
34588 CONFIG_HEADERS = $CONFIG_HEADERS
34589 CONFIG_LINKS = $CONFIG_LINKS
34590 CONFIG_COMMANDS = $CONFIG_COMMANDS
34593 on `(hostname || uname -n) 2>/dev/null | sed 1q`
34598 cat >>$CONFIG_STATUS <<_ACEOF
34599 # Files that config.status was made for.
34600 config_files="$ac_config_files"
34601 config_headers="$ac_config_headers"
34602 config_commands="$ac_config_commands"
34606 cat >>$CONFIG_STATUS <<\_ACEOF
34608 \`$as_me' instantiates files from templates according to the
34609 current configuration.
34611 Usage: $0 [OPTIONS] [FILE]...
34613 -h, --help print this help, then exit
34614 -V, --version print version number, then exit
34615 -q, --quiet do not print progress messages
34616 -d, --debug don't remove temporary files
34617 --recheck update $as_me by reconfiguring in the same conditions
34618 --file=FILE[:TEMPLATE]
34619 instantiate the configuration file FILE
34620 --header=FILE[:TEMPLATE]
34621 instantiate the configuration header FILE
34623 Configuration files:
34626 Configuration headers:
34629 Configuration commands:
34632 Report bugs to <bug-autoconf@gnu.org>."
34635 cat >>$CONFIG_STATUS <<_ACEOF
34638 configured by $0, generated by GNU Autoconf 2.60,
34639 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
34641 Copyright (C) 2006 Free Software Foundation, Inc.
34642 This config.status script is free software; the Free Software Foundation
34643 gives unlimited permission to copy, distribute and modify it."
34650 cat >>$CONFIG_STATUS <<\_ACEOF
34651 # If no file are specified by the user, then we need to provide default
34652 # value. By we need to know if files were specified by the user.
34658 ac_option=`expr "X$1" : 'X\([^=]*\)='`
34659 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
34670 # Handling of the options.
34671 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
34673 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
34674 echo "$ac_cs_version"; exit ;;
34675 --debug | --debu | --deb | --de | --d | -d )
34677 --file | --fil | --fi | --f )
34679 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
34680 ac_need_defaults=false;;
34681 --header | --heade | --head | --hea )
34683 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
34684 ac_need_defaults=false;;
34686 # Conflict between --help and --header
34687 { echo "$as_me: error: ambiguous option: $1
34688 Try \`$0 --help' for more information." >&2
34689 { (exit 1); exit 1; }; };;
34690 --help | --hel | -h )
34691 echo "$ac_cs_usage"; exit ;;
34692 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
34693 | -silent | --silent | --silen | --sile | --sil | --si | --s)
34696 # This is an error.
34697 -*) { echo "$as_me: error: unrecognized option: $1
34698 Try \`$0 --help' for more information." >&2
34699 { (exit 1); exit 1; }; } ;;
34701 *) ac_config_targets="$ac_config_targets $1"
34702 ac_need_defaults=false ;;
34708 ac_configure_extra_args=
34710 if $ac_cs_silent; then
34712 ac_configure_extra_args="$ac_configure_extra_args --silent"
34716 cat >>$CONFIG_STATUS <<_ACEOF
34717 if \$ac_cs_recheck; then
34718 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
34719 CONFIG_SHELL=$SHELL
34720 export CONFIG_SHELL
34721 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
34725 cat >>$CONFIG_STATUS <<\_ACEOF
34729 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
34730 ## Running $as_me. ##
34736 cat >>$CONFIG_STATUS <<_ACEOF
34740 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
34741 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
34743 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
34744 # Capture the value of LINGUAS because we need it to compute CATALOGS.
34745 LINGUAS="${LINGUAS-%UNSET%}"
34750 cat >>$CONFIG_STATUS <<\_ACEOF
34752 # Handling of arguments.
34753 for ac_config_target in $ac_config_targets
34755 case $ac_config_target in
34756 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:autoconf/config.h.in" ;;
34757 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
34758 "autoconf/Make.common") CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
34759 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
34760 "manpages/Makefile") CONFIG_FILES="$CONFIG_FILES manpages/Makefile" ;;
34761 "scripts/startmysql") CONFIG_FILES="$CONFIG_FILES scripts/startmysql" ;;
34762 "scripts/stopmysql") CONFIG_FILES="$CONFIG_FILES scripts/stopmysql" ;;
34763 "scripts/btraceback") CONFIG_FILES="$CONFIG_FILES scripts/btraceback" ;;
34764 "scripts/startit") CONFIG_FILES="$CONFIG_FILES scripts/startit" ;;
34765 "scripts/stopit") CONFIG_FILES="$CONFIG_FILES scripts/stopit" ;;
34766 "scripts/bconsole") CONFIG_FILES="$CONFIG_FILES scripts/bconsole" ;;
34767 "scripts/gconsole") CONFIG_FILES="$CONFIG_FILES scripts/gconsole" ;;
34768 "scripts/bacula") CONFIG_FILES="$CONFIG_FILES scripts/bacula" ;;
34769 "scripts/bacula-ctl-dir") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-dir" ;;
34770 "scripts/bacula-ctl-fd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-fd" ;;
34771 "scripts/bacula-ctl-sd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-sd" ;;
34772 "scripts/devel_bacula") CONFIG_FILES="$CONFIG_FILES scripts/devel_bacula" ;;
34773 "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
34774 "scripts/logrotate") CONFIG_FILES="$CONFIG_FILES scripts/logrotate" ;;
34775 "scripts/bacula.desktop.gnome1") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1" ;;
34776 "scripts/bacula.desktop.gnome2") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2" ;;
34777 "scripts/bacula.desktop.gnome1.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.consolehelper" ;;
34778 "scripts/bacula.desktop.gnome2.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.consolehelper" ;;
34779 "scripts/bacula.desktop.gnome1.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.xsu" ;;
34780 "scripts/bacula.desktop.gnome2.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.xsu" ;;
34781 "scripts/bgnome-console.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/bgnome-console.console_apps" ;;
34782 "scripts/mtx-changer") CONFIG_FILES="$CONFIG_FILES scripts/mtx-changer" ;;
34783 "scripts/disk-changer") CONFIG_FILES="$CONFIG_FILES scripts/disk-changer" ;;
34784 "scripts/dvd-handler") CONFIG_FILES="$CONFIG_FILES scripts/dvd-handler" ;;
34785 "scripts/dvd-simulator") CONFIG_FILES="$CONFIG_FILES scripts/dvd-simulator" ;;
34786 "scripts/bacula-tray-monitor.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bacula-tray-monitor.desktop" ;;
34787 "scripts/logwatch/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/Makefile" ;;
34788 "scripts/logwatch/logfile.bacula.conf") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/logfile.bacula.conf" ;;
34789 "scripts/wxconsole.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.console_apps" ;;
34790 "scripts/wxconsole.desktop.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.consolehelper" ;;
34791 "scripts/wxconsole.desktop.xsu") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.xsu" ;;
34792 "scripts/bat.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop" ;;
34793 "scripts/bat.desktop.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.xsu" ;;
34794 "scripts/bat.desktop.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.consolehelper" ;;
34795 "scripts/bat.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/bat.console_apps" ;;
34796 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
34797 "src/host.h") CONFIG_FILES="$CONFIG_FILES src/host.h" ;;
34798 "src/console/Makefile") CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;;
34799 "src/console/bconsole.conf") CONFIG_FILES="$CONFIG_FILES src/console/bconsole.conf" ;;
34800 "src/gnome2-console/Makefile") CONFIG_FILES="$CONFIG_FILES src/gnome2-console/Makefile" ;;
34801 "src/gnome2-console/bgnome-console.conf") CONFIG_FILES="$CONFIG_FILES src/gnome2-console/bgnome-console.conf" ;;
34802 "src/qt-console/bat.conf") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.conf" ;;
34803 "src/qt-console/bat.pro") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro" ;;
34804 "src/qt-console/install_conf_file") CONFIG_FILES="$CONFIG_FILES src/qt-console/install_conf_file" ;;
34805 "src/wx-console/Makefile") CONFIG_FILES="$CONFIG_FILES src/wx-console/Makefile" ;;
34806 "src/wx-console/bwx-console.conf") CONFIG_FILES="$CONFIG_FILES src/wx-console/bwx-console.conf" ;;
34807 "src/tray-monitor/Makefile") CONFIG_FILES="$CONFIG_FILES src/tray-monitor/Makefile" ;;
34808 "src/tray-monitor/tray-monitor.conf") CONFIG_FILES="$CONFIG_FILES src/tray-monitor/tray-monitor.conf" ;;
34809 "src/dird/Makefile") CONFIG_FILES="$CONFIG_FILES src/dird/Makefile" ;;
34810 "src/dird/bacula-dir.conf") CONFIG_FILES="$CONFIG_FILES src/dird/bacula-dir.conf" ;;
34811 "src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
34812 "src/stored/Makefile") CONFIG_FILES="$CONFIG_FILES src/stored/Makefile" ;;
34813 "src/stored/bacula-sd.conf") CONFIG_FILES="$CONFIG_FILES src/stored/bacula-sd.conf" ;;
34814 "src/filed/Makefile") CONFIG_FILES="$CONFIG_FILES src/filed/Makefile" ;;
34815 "src/filed/bacula-fd.conf") CONFIG_FILES="$CONFIG_FILES src/filed/bacula-fd.conf" ;;
34816 "src/cats/Makefile") CONFIG_FILES="$CONFIG_FILES src/cats/Makefile" ;;
34817 "src/cats/make_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup" ;;
34818 "src/cats/delete_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/delete_catalog_backup" ;;
34819 "src/cats/create_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_postgresql_database" ;;
34820 "src/cats/update_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_postgresql_tables" ;;
34821 "src/cats/make_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_postgresql_tables" ;;
34822 "src/cats/grant_postgresql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_postgresql_privileges" ;;
34823 "src/cats/drop_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_tables" ;;
34824 "src/cats/drop_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_database" ;;
34825 "src/cats/create_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_mysql_database" ;;
34826 "src/cats/update_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_mysql_tables" ;;
34827 "src/cats/make_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_mysql_tables" ;;
34828 "src/cats/grant_mysql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_mysql_privileges" ;;
34829 "src/cats/drop_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_tables" ;;
34830 "src/cats/drop_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_database" ;;
34831 "src/cats/create_sqlite_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite_database" ;;
34832 "src/cats/update_sqlite_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite_tables" ;;
34833 "src/cats/make_sqlite_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite_tables" ;;
34834 "src/cats/grant_sqlite_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite_privileges" ;;
34835 "src/cats/drop_sqlite_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_tables" ;;
34836 "src/cats/drop_sqlite_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_database" ;;
34837 "src/cats/create_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite3_database" ;;
34838 "src/cats/update_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite3_tables" ;;
34839 "src/cats/make_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite3_tables" ;;
34840 "src/cats/grant_sqlite3_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite3_privileges" ;;
34841 "src/cats/drop_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_tables" ;;
34842 "src/cats/drop_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_database" ;;
34843 "src/cats/sqlite") CONFIG_FILES="$CONFIG_FILES src/cats/sqlite" ;;
34844 "src/cats/mysql") CONFIG_FILES="$CONFIG_FILES src/cats/mysql" ;;
34845 "src/cats/create_bdb_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_bdb_database" ;;
34846 "src/cats/update_bdb_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_bdb_tables" ;;
34847 "src/cats/make_bdb_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_bdb_tables" ;;
34848 "src/cats/grant_bdb_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_bdb_privileges" ;;
34849 "src/cats/drop_bdb_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_tables" ;;
34850 "src/cats/drop_bdb_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_database" ;;
34851 "src/cats/create_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_bacula_database" ;;
34852 "src/cats/update_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_bacula_tables" ;;
34853 "src/cats/grant_bacula_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_bacula_privileges" ;;
34854 "src/cats/make_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_bacula_tables" ;;
34855 "src/cats/drop_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_tables" ;;
34856 "src/cats/drop_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_database" ;;
34857 "src/findlib/Makefile") CONFIG_FILES="$CONFIG_FILES src/findlib/Makefile" ;;
34858 "src/tools/Makefile") CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
34859 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
34860 "$PFILES") CONFIG_FILES="$CONFIG_FILES $PFILES" ;;
34861 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
34863 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
34864 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
34865 { (exit 1); exit 1; }; };;
34870 # If the user did not use the arguments to specify the items to instantiate,
34871 # then the envvar interface is used. Set only those that are not.
34872 # We use the long form for the default assignment because of an extremely
34873 # bizarre bug on SunOS 4.1.3.
34874 if $ac_need_defaults; then
34875 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
34876 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
34877 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
34880 # Have a temporary directory for convenience. Make it in the build tree
34881 # simply because there is no reason against having it here, and in addition,
34882 # creating and moving files from /tmp can sometimes cause problems.
34883 # Hook for its removal unless debugging.
34884 # Note that there is a small window in which the directory will not be cleaned:
34885 # after its creation but before its name has been assigned to `$tmp'.
34889 trap 'exit_status=$?
34890 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
34892 trap '{ (exit 1); exit 1; }' 1 2 13 15
34894 # Create a (secure) tmp directory for tmp files.
34897 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
34898 test -n "$tmp" && test -d "$tmp"
34901 tmp=./conf$$-$RANDOM
34902 (umask 077 && mkdir "$tmp")
34905 echo "$me: cannot create a temporary directory in ." >&2
34906 { (exit 1); exit 1; }
34910 # Set up the sed scripts for CONFIG_FILES section.
34913 # No need to generate the scripts if there are no CONFIG_FILES.
34914 # This happens for instance when ./config.status config.h
34915 if test -n "$CONFIG_FILES"; then
34919 # Create sed commands to just substitute file output variables.
34921 # Remaining file output variables are in a fragment that also has non-file
34927 for ac_last_try in false false false false false :; do
34928 cat >conf$$subs.sed <<_ACEOF
34929 SHELL!$SHELL$ac_delim
34930 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
34931 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
34932 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
34933 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
34934 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
34935 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
34936 exec_prefix!$exec_prefix$ac_delim
34937 prefix!$prefix$ac_delim
34938 program_transform_name!$program_transform_name$ac_delim
34939 bindir!$bindir$ac_delim
34940 sbindir!$sbindir$ac_delim
34941 libexecdir!$libexecdir$ac_delim
34942 datarootdir!$datarootdir$ac_delim
34943 datadir!$datadir$ac_delim
34944 sysconfdir!$sysconfdir$ac_delim
34945 sharedstatedir!$sharedstatedir$ac_delim
34946 localstatedir!$localstatedir$ac_delim
34947 includedir!$includedir$ac_delim
34948 oldincludedir!$oldincludedir$ac_delim
34949 docdir!$docdir$ac_delim
34950 infodir!$infodir$ac_delim
34951 htmldir!$htmldir$ac_delim
34952 dvidir!$dvidir$ac_delim
34953 pdfdir!$pdfdir$ac_delim
34954 psdir!$psdir$ac_delim
34955 libdir!$libdir$ac_delim
34956 localedir!$localedir$ac_delim
34957 mandir!$mandir$ac_delim
34958 DEFS!$DEFS$ac_delim
34959 ECHO_C!$ECHO_C$ac_delim
34960 ECHO_N!$ECHO_N$ac_delim
34961 ECHO_T!$ECHO_T$ac_delim
34962 LIBS!$LIBS$ac_delim
34963 build_alias!$build_alias$ac_delim
34964 host_alias!$host_alias$ac_delim
34965 target_alias!$target_alias$ac_delim
34966 BUILD_DIR!$BUILD_DIR$ac_delim
34967 TOP_DIR!$TOP_DIR$ac_delim
34968 TRUEPRG!$TRUEPRG$ac_delim
34969 FALSEPRG!$FALSEPRG$ac_delim
34970 VERSION!$VERSION$ac_delim
34971 DATE!$DATE$ac_delim
34972 LSMDATE!$LSMDATE$ac_delim
34974 CFLAGS!$CFLAGS$ac_delim
34975 LDFLAGS!$LDFLAGS$ac_delim
34976 CPPFLAGS!$CPPFLAGS$ac_delim
34977 ac_ct_CC!$ac_ct_CC$ac_delim
34978 EXEEXT!$EXEEXT$ac_delim
34979 OBJEXT!$OBJEXT$ac_delim
34981 CXXFLAGS!$CXXFLAGS$ac_delim
34982 ac_ct_CXX!$ac_ct_CXX$ac_delim
34984 GREP!$GREP$ac_delim
34985 EGREP!$EGREP$ac_delim
34986 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
34987 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
34988 INSTALL_DATA!$INSTALL_DATA$ac_delim
34989 RANLIB!$RANLIB$ac_delim
34994 ECHO!$ECHO$ac_delim
34998 OPENSSL!$OPENSSL$ac_delim
35001 MKISOFS!$MKISOFS$ac_delim
35002 PYTHON!$PYTHON$ac_delim
35003 GROWISOFS!$GROWISOFS$ac_delim
35004 DVDRWMEDIAINFO!$DVDRWMEDIAINFO$ac_delim
35005 DVDRWFORMAT!$DVDRWFORMAT$ac_delim
35006 PKGCONFIG!$PKGCONFIG$ac_delim
35007 WXCONFIG!$WXCONFIG$ac_delim
35008 WXFLAGS!$WXFLAGS$ac_delim
35009 CDRECORD!$CDRECORD$ac_delim
35010 PIDOF!$PIDOF$ac_delim
35012 ARFLAGS!$ARFLAGS$ac_delim
35013 MAKE_SHELL!$MAKE_SHELL$ac_delim
35014 LOCAL_LIBS!$LOCAL_LIBS$ac_delim
35015 LOCAL_CFLAGS!$LOCAL_CFLAGS$ac_delim
35016 LOCAL_LDFLAGS!$LOCAL_LDFLAGS$ac_delim
35017 LOCAL_DEFS!$LOCAL_DEFS$ac_delim
35018 build!$build$ac_delim
35019 build_cpu!$build_cpu$ac_delim
35020 build_vendor!$build_vendor$ac_delim
35021 build_os!$build_os$ac_delim
35022 host!$host$ac_delim
35025 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 94; then
35027 elif $ac_last_try; then
35028 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
35029 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
35030 { (exit 1); exit 1; }; }
35032 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
35036 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
35037 if test -n "$ac_eof"; then
35038 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
35039 ac_eof=`expr $ac_eof + 1`
35042 cat >>$CONFIG_STATUS <<_ACEOF
35043 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
35044 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
35045 /^[ ]*@MCOMMON@[ ]*$/{
35051 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
35052 s/^/s,@/; s/!/@,|#_!!_#|/
35055 s/'"$ac_delim"'$/,g/; t
35057 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
35058 ' >>$CONFIG_STATUS <conf$$subs.sed
35059 rm -f conf$$subs.sed
35060 cat >>$CONFIG_STATUS <<_ACEOF
35066 for ac_last_try in false false false false false :; do
35067 cat >conf$$subs.sed <<_ACEOF
35068 host_cpu!$host_cpu$ac_delim
35069 host_vendor!$host_vendor$ac_delim
35070 host_os!$host_os$ac_delim
35071 HAVE_SUN_OS_TRUE!$HAVE_SUN_OS_TRUE$ac_delim
35072 HAVE_SUN_OS_FALSE!$HAVE_SUN_OS_FALSE$ac_delim
35073 HAVE_OSF1_OS_TRUE!$HAVE_OSF1_OS_TRUE$ac_delim
35074 HAVE_OSF1_OS_FALSE!$HAVE_OSF1_OS_FALSE$ac_delim
35075 HAVE_AIX_OS_TRUE!$HAVE_AIX_OS_TRUE$ac_delim
35076 HAVE_AIX_OS_FALSE!$HAVE_AIX_OS_FALSE$ac_delim
35077 HAVE_HPUX_OS_TRUE!$HAVE_HPUX_OS_TRUE$ac_delim
35078 HAVE_HPUX_OS_FALSE!$HAVE_HPUX_OS_FALSE$ac_delim
35079 HAVE_LINUX_OS_TRUE!$HAVE_LINUX_OS_TRUE$ac_delim
35080 HAVE_LINUX_OS_FALSE!$HAVE_LINUX_OS_FALSE$ac_delim
35081 HAVE_FREEBSD_OS_TRUE!$HAVE_FREEBSD_OS_TRUE$ac_delim
35082 HAVE_FREEBSD_OS_FALSE!$HAVE_FREEBSD_OS_FALSE$ac_delim
35083 HAVE_NETBSD_OS_TRUE!$HAVE_NETBSD_OS_TRUE$ac_delim
35084 HAVE_NETBSD_OS_FALSE!$HAVE_NETBSD_OS_FALSE$ac_delim
35085 HAVE_OPENBSD_OS_TRUE!$HAVE_OPENBSD_OS_TRUE$ac_delim
35086 HAVE_OPENBSD_OS_FALSE!$HAVE_OPENBSD_OS_FALSE$ac_delim
35087 HAVE_BSDI_OS_TRUE!$HAVE_BSDI_OS_TRUE$ac_delim
35088 HAVE_BSDI_OS_FALSE!$HAVE_BSDI_OS_FALSE$ac_delim
35089 HAVE_SGI_OS_TRUE!$HAVE_SGI_OS_TRUE$ac_delim
35090 HAVE_SGI_OS_FALSE!$HAVE_SGI_OS_FALSE$ac_delim
35091 HAVE_IRIX_OS_TRUE!$HAVE_IRIX_OS_TRUE$ac_delim
35092 HAVE_IRIX_OS_FALSE!$HAVE_IRIX_OS_FALSE$ac_delim
35093 HAVE_DARWIN_OS_TRUE!$HAVE_DARWIN_OS_TRUE$ac_delim
35094 HAVE_DARWIN_OS_FALSE!$HAVE_DARWIN_OS_FALSE$ac_delim
35095 SET_MAKE!$SET_MAKE$ac_delim
35096 MKINSTALLDIRS!$MKINSTALLDIRS$ac_delim
35097 USE_NLS!$USE_NLS$ac_delim
35098 MSGFMT!$MSGFMT$ac_delim
35099 GMSGFMT!$GMSGFMT$ac_delim
35100 XGETTEXT!$XGETTEXT$ac_delim
35101 MSGMERGE!$MSGMERGE$ac_delim
35102 INTL_MACOSX_LIBS!$INTL_MACOSX_LIBS$ac_delim
35103 LIBICONV!$LIBICONV$ac_delim
35104 LTLIBICONV!$LTLIBICONV$ac_delim
35105 INTLLIBS!$INTLLIBS$ac_delim
35106 LIBINTL!$LIBINTL$ac_delim
35107 LTLIBINTL!$LTLIBINTL$ac_delim
35108 POSUB!$POSUB$ac_delim
35109 GLIBC2!$GLIBC2$ac_delim
35110 ALLOCA!$ALLOCA$ac_delim
35111 GLIBC21!$GLIBC21$ac_delim
35112 HAVE_POSIX_PRINTF!$HAVE_POSIX_PRINTF$ac_delim
35113 HAVE_ASPRINTF!$HAVE_ASPRINTF$ac_delim
35114 HAVE_SNPRINTF!$HAVE_SNPRINTF$ac_delim
35115 HAVE_WPRINTF!$HAVE_WPRINTF$ac_delim
35116 INTLBISON!$INTLBISON$ac_delim
35117 BUILD_INCLUDED_LIBINTL!$BUILD_INCLUDED_LIBINTL$ac_delim
35118 USE_INCLUDED_LIBINTL!$USE_INCLUDED_LIBINTL$ac_delim
35119 CATOBJEXT!$CATOBJEXT$ac_delim
35120 DATADIRNAME!$DATADIRNAME$ac_delim
35121 INSTOBJEXT!$INSTOBJEXT$ac_delim
35122 GENCAT!$GENCAT$ac_delim
35123 INTLOBJS!$INTLOBJS$ac_delim
35124 INTL_LIBTOOL_SUFFIX_PREFIX!$INTL_LIBTOOL_SUFFIX_PREFIX$ac_delim
35125 GNOME_INCLUDEDIR!$GNOME_INCLUDEDIR$ac_delim
35126 GNOMEUI_LIBS!$GNOMEUI_LIBS$ac_delim
35127 GNOME_LIBDIR!$GNOME_LIBDIR$ac_delim
35128 GNOME_LIBS!$GNOME_LIBS$ac_delim
35129 GNOME_DIR!$GNOME_DIR$ac_delim
35130 BAT_DIR!$BAT_DIR$ac_delim
35131 WXCONS_CPPFLAGS!$WXCONS_CPPFLAGS$ac_delim
35132 WXCONS_LDFLAGS!$WXCONS_LDFLAGS$ac_delim
35133 WX_DIR!$WX_DIR$ac_delim
35134 TRAY_MONITOR_CPPFLAGS!$TRAY_MONITOR_CPPFLAGS$ac_delim
35135 TRAY_MONITOR_LDFLAGS!$TRAY_MONITOR_LDFLAGS$ac_delim
35136 TRAY_MONITOR_DIR!$TRAY_MONITOR_DIR$ac_delim
35137 TTOOL_LDFLAGS!$TTOOL_LDFLAGS$ac_delim
35138 STATIC_FD!$STATIC_FD$ac_delim
35139 STATIC_SD!$STATIC_SD$ac_delim
35140 STATIC_DIR!$STATIC_DIR$ac_delim
35141 STATIC_CONS!$STATIC_CONS$ac_delim
35142 STATIC_GNOME_CONS!$STATIC_GNOME_CONS$ac_delim
35143 STATIC_WX_CONS!$STATIC_WX_CONS$ac_delim
35144 ALL_DIRS!$ALL_DIRS$ac_delim
35145 DIRD_DIR!$DIRD_DIR$ac_delim
35146 DIR_TOOLS!$DIR_TOOLS$ac_delim
35147 STORED_DIR!$STORED_DIR$ac_delim
35148 CONS_INC!$CONS_INC$ac_delim
35149 CONS_OBJ!$CONS_OBJ$ac_delim
35150 CONS_SRC!$CONS_SRC$ac_delim
35151 CONS_LIBS!$CONS_LIBS$ac_delim
35152 CONS_LDFLAGS!$CONS_LDFLAGS$ac_delim
35153 READLINE_SRC!$READLINE_SRC$ac_delim
35154 PYTHON_LIBS!$PYTHON_LIBS$ac_delim
35155 PYTHON_INCDIR!$PYTHON_INCDIR$ac_delim
35156 OPENSSL_LIBS!$OPENSSL_LIBS$ac_delim
35157 OPENSSL_INC!$OPENSSL_INC$ac_delim
35158 working_dir!$working_dir$ac_delim
35159 scriptdir!$scriptdir$ac_delim
35160 dump_email!$dump_email$ac_delim
35161 job_email!$job_email$ac_delim
35162 smtp_host!$smtp_host$ac_delim
35163 piddir!$piddir$ac_delim
35164 subsysdir!$subsysdir$ac_delim
35167 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
35169 elif $ac_last_try; then
35170 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
35171 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
35172 { (exit 1); exit 1; }; }
35174 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
35178 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
35179 if test -n "$ac_eof"; then
35180 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
35181 ac_eof=`expr $ac_eof + 1`
35184 cat >>$CONFIG_STATUS <<_ACEOF
35185 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
35186 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
35189 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
35190 s/^/s,@/; s/!/@,|#_!!_#|/
35193 s/'"$ac_delim"'$/,g/; t
35195 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
35196 ' >>$CONFIG_STATUS <conf$$subs.sed
35197 rm -f conf$$subs.sed
35198 cat >>$CONFIG_STATUS <<_ACEOF
35204 for ac_last_try in false false false false false :; do
35205 cat >conf$$subs.sed <<_ACEOF
35206 baseport!$baseport$ac_delim
35207 dir_port!$dir_port$ac_delim
35208 fd_port!$fd_port$ac_delim
35209 sd_port!$sd_port$ac_delim
35210 dir_password!$dir_password$ac_delim
35211 fd_password!$fd_password$ac_delim
35212 sd_password!$sd_password$ac_delim
35213 mon_dir_password!$mon_dir_password$ac_delim
35214 mon_fd_password!$mon_fd_password$ac_delim
35215 mon_sd_password!$mon_sd_password$ac_delim
35216 db_name!$db_name$ac_delim
35217 db_user!$db_user$ac_delim
35218 dir_user!$dir_user$ac_delim
35219 dir_group!$dir_group$ac_delim
35220 sd_user!$sd_user$ac_delim
35221 sd_group!$sd_group$ac_delim
35222 fd_user!$fd_user$ac_delim
35223 fd_group!$fd_group$ac_delim
35224 SBINPERM!$SBINPERM$ac_delim
35225 SQL_LFLAGS!$SQL_LFLAGS$ac_delim
35226 SQL_INCLUDE!$SQL_INCLUDE$ac_delim
35227 SQL_BINDIR!$SQL_BINDIR$ac_delim
35228 cats!$cats$ac_delim
35229 DB_TYPE!$DB_TYPE$ac_delim
35230 GETCONF!$GETCONF$ac_delim
35231 XMKMF!$XMKMF$ac_delim
35232 X_CFLAGS!$X_CFLAGS$ac_delim
35233 X_PRE_LIBS!$X_PRE_LIBS$ac_delim
35234 X_LIBS!$X_LIBS$ac_delim
35235 X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim
35236 LIBOBJS!$LIBOBJS$ac_delim
35237 FDLIBS!$FDLIBS$ac_delim
35238 DEBUG!$DEBUG$ac_delim
35239 DINCLUDE!$DINCLUDE$ac_delim
35240 DLIB!$DLIB$ac_delim
35241 DB_LIBS!$DB_LIBS$ac_delim
35242 WCFLAGS!$WCFLAGS$ac_delim
35243 WLDFLAGS!$WLDFLAGS$ac_delim
35244 WRAPLIBS!$WRAPLIBS$ac_delim
35245 OBJLIST!$OBJLIST$ac_delim
35246 hostname!$hostname$ac_delim
35247 TAPEDRIVE!$TAPEDRIVE$ac_delim
35248 PSCMD!$PSCMD$ac_delim
35249 WIN32!$WIN32$ac_delim
35250 MACOSX!$MACOSX$ac_delim
35251 DISTNAME!$DISTNAME$ac_delim
35252 DISTVER!$DISTVER$ac_delim
35253 LTLIBOBJS!$LTLIBOBJS$ac_delim
35256 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 48; then
35258 elif $ac_last_try; then
35259 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
35260 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
35261 { (exit 1); exit 1; }; }
35263 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
35267 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
35268 if test -n "$ac_eof"; then
35269 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
35270 ac_eof=`expr $ac_eof + 1`
35273 cat >>$CONFIG_STATUS <<_ACEOF
35274 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
35275 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
35278 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
35279 s/^/s,@/; s/!/@,|#_!!_#|/
35282 s/'"$ac_delim"'$/,g/; t
35284 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
35285 ' >>$CONFIG_STATUS <conf$$subs.sed
35286 rm -f conf$$subs.sed
35287 cat >>$CONFIG_STATUS <<_ACEOF
35294 # VPATH may cause trouble with some makes, so we remove $(srcdir),
35295 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
35296 # trailing colons and then remove the whole line if VPATH becomes empty
35297 # (actually we leave an empty line to preserve line numbers).
35298 if test "x$srcdir" = x.; then
35299 ac_vpsub='/^[ ]*VPATH[ ]*=/{
35300 s/:*\$(srcdir):*/:/
35301 s/:*\${srcdir}:*/:/
35303 s/^\([^=]*=[ ]*\):*/\1/
35309 cat >>$CONFIG_STATUS <<\_ACEOF
35310 fi # test -n "$CONFIG_FILES"
35313 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
35316 :[FHLC]) ac_mode=$ac_tag; continue;;
35318 case $ac_mode$ac_tag in
35320 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
35321 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
35322 { (exit 1); exit 1; }; };;
35323 :[FH]-) ac_tag=-:-;;
35324 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
35341 -) ac_f="$tmp/stdin";;
35342 *) # Look for the file first in the build tree, then in the source tree
35343 # (if the path is not absolute). The absolute path cannot be DOS-style,
35344 # because $ac_f cannot contain `:'.
35348 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
35350 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
35351 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
35352 { (exit 1); exit 1; }; };;
35354 ac_file_inputs="$ac_file_inputs $ac_f"
35357 # Let's still pretend it is `configure' which instantiates (i.e., don't
35358 # use $as_me), people would be surprised to read:
35359 # /* config.h. Generated by config.status. */
35360 configure_input="Generated from "`IFS=:
35361 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
35362 if test x"$ac_file" != x-; then
35363 configure_input="$ac_file. $configure_input"
35364 { echo "$as_me:$LINENO: creating $ac_file" >&5
35365 echo "$as_me: creating $ac_file" >&6;}
35369 *:-:* | *:-) cat >"$tmp/stdin";;
35374 ac_dir=`$as_dirname -- "$ac_file" ||
35375 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35376 X"$ac_file" : 'X\(//\)[^/]' \| \
35377 X"$ac_file" : 'X\(//\)$' \| \
35378 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
35380 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35384 /^X\(\/\/\)[^/].*/{
35399 -*) as_dir=./$as_dir;;
35401 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
35405 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
35406 *) as_qdir=$as_dir;;
35408 as_dirs="'$as_qdir' $as_dirs"
35409 as_dir=`$as_dirname -- "$as_dir" ||
35410 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35411 X"$as_dir" : 'X\(//\)[^/]' \| \
35412 X"$as_dir" : 'X\(//\)$' \| \
35413 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
35415 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35419 /^X\(\/\/\)[^/].*/{
35432 test -d "$as_dir" && break
35434 test -z "$as_dirs" || eval "mkdir $as_dirs"
35435 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
35436 echo "$as_me: error: cannot create directory $as_dir" >&2;}
35437 { (exit 1); exit 1; }; }; }
35441 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
35443 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
35444 # A ".." for each directory in $ac_dir_suffix.
35445 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
35446 case $ac_top_builddir_sub in
35447 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
35448 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
35451 ac_abs_top_builddir=$ac_pwd
35452 ac_abs_builddir=$ac_pwd$ac_dir_suffix
35453 # for backward compatibility:
35454 ac_top_builddir=$ac_top_build_prefix
35457 .) # We are building in place.
35459 ac_top_srcdir=$ac_top_builddir_sub
35460 ac_abs_top_srcdir=$ac_pwd ;;
35461 [\\/]* | ?:[\\/]* ) # Absolute name.
35462 ac_srcdir=$srcdir$ac_dir_suffix;
35463 ac_top_srcdir=$srcdir
35464 ac_abs_top_srcdir=$srcdir ;;
35465 *) # Relative name.
35466 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
35467 ac_top_srcdir=$ac_top_build_prefix$srcdir
35468 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
35470 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
35480 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
35481 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
35485 cat >>$CONFIG_STATUS <<\_ACEOF
35486 # If the template does not know about datarootdir, expand it.
35487 # FIXME: This hack should be removed a few years after 2.60.
35488 ac_datarootdir_hack=; ac_datarootdir_seen=
35490 case `sed -n '/datarootdir/ {
35499 ' $ac_file_inputs` in
35500 *datarootdir*) ac_datarootdir_seen=yes;;
35501 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
35502 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
35503 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
35505 cat >>$CONFIG_STATUS <<_ACEOF
35506 ac_datarootdir_hack='
35507 s&@datadir@&$datadir&g
35508 s&@docdir@&$docdir&g
35509 s&@infodir@&$infodir&g
35510 s&@localedir@&$localedir&g
35511 s&@mandir@&$mandir&g
35512 s&\\\${datarootdir}&$datarootdir&g' ;;
35516 # Neutralize VPATH when `$srcdir' = `.'.
35517 # Shell code in configure.ac might set extrasub.
35518 # FIXME: do we really want to maintain this feature?
35519 cat >>$CONFIG_STATUS <<_ACEOF
35523 cat >>$CONFIG_STATUS <<\_ACEOF
35525 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
35526 s&@configure_input@&$configure_input&;t t
35527 s&@top_builddir@&$ac_top_builddir_sub&;t t
35528 s&@srcdir@&$ac_srcdir&;t t
35529 s&@abs_srcdir@&$ac_abs_srcdir&;t t
35530 s&@top_srcdir@&$ac_top_srcdir&;t t
35531 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
35532 s&@builddir@&$ac_builddir&;t t
35533 s&@abs_builddir@&$ac_abs_builddir&;t t
35534 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
35535 s&@INSTALL@&$ac_INSTALL&;t t
35536 $ac_datarootdir_hack
35537 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
35539 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
35540 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
35541 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
35542 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
35543 which seems to be undefined. Please make sure it is defined." >&5
35544 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
35545 which seems to be undefined. Please make sure it is defined." >&2;}
35549 -) cat "$tmp/out"; rm -f "$tmp/out";;
35550 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
35559 # Transform confdefs.h into a sed script `conftest.defines', that
35560 # substitutes the proper values into config.h.in to produce config.h.
35561 rm -f conftest.defines conftest.tail
35562 # First, append a space to every undef/define line, to ease matching.
35563 echo 's/$/ /' >conftest.defines
35564 # Then, protect against being on the right side of a sed subst, or in
35565 # an unquoted here document, in config.status. If some macros were
35566 # called several times there might be several #defines for the same
35567 # symbol, which is useless. But do not sort them, since the last
35568 # AC_DEFINE must be honored.
35569 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
35570 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
35571 # NAME is the cpp macro being defined, VALUE is the value it is being given.
35572 # PARAMS is the parameter list in the macro definition--in most cases, it's
35573 # just an empty string.
35574 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
35575 ac_dB='\\)[ (].*,\\1define\\2'
35583 s/^[ ]*#[ ]*define[ ][ ]*//
35588 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
35589 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
35590 ' >>conftest.defines
35592 # Remove the space that was appended to ease matching.
35593 # Then replace #undef with comments. This is necessary, for
35594 # example, in the case of _POSIX_SOURCE, which is predefined and required
35595 # on some systems where configure will not decide to define it.
35596 # (The regexp can be short, since the line contains either #define or #undef.)
35598 s,^[ #]*u.*,/* & */,' >>conftest.defines
35600 # Break up conftest.defines:
35601 ac_max_sed_lines=50
35603 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
35604 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
35605 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
35607 ac_in='$ac_file_inputs'
35608 ac_out='"$tmp/out1"'
35609 ac_nxt='"$tmp/out2"'
35613 # Write a here document:
35614 cat >>$CONFIG_STATUS <<_ACEOF
35615 # First, check the format of the line:
35616 cat >"\$tmp/defines.sed" <<\\CEOF
35617 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
35618 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
35622 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
35624 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
35625 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
35626 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
35627 grep . conftest.tail >/dev/null || break
35628 rm -f conftest.defines
35629 mv conftest.tail conftest.defines
35631 rm -f conftest.defines conftest.tail
35633 echo "ac_result=$ac_in" >>$CONFIG_STATUS
35634 cat >>$CONFIG_STATUS <<\_ACEOF
35635 if test x"$ac_file" != x-; then
35636 echo "/* $configure_input */" >"$tmp/config.h"
35637 cat "$ac_result" >>"$tmp/config.h"
35638 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
35639 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
35640 echo "$as_me: $ac_file is unchanged" >&6;}
35643 mv "$tmp/config.h" $ac_file
35646 echo "/* $configure_input */"
35652 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
35653 echo "$as_me: executing $ac_file commands" >&6;}
35658 case $ac_file$ac_mode in
35660 for ac_file in $CONFIG_FILES; do
35661 # Support "outfile[:infile[:infile...]]"
35663 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
35665 # PO directories have a Makefile.in generated from Makefile.in.in.
35666 case "$ac_file" in */Makefile.in)
35667 # Adjust a relative srcdir.
35668 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
35669 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
35670 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
35671 # In autoconf-2.13 it is called $ac_given_srcdir.
35672 # In autoconf-2.50 it is called $srcdir.
35673 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
35674 case "$ac_given_srcdir" in
35675 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
35676 /*) top_srcdir="$ac_given_srcdir" ;;
35677 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
35679 # Treat a directory as a PO directory if and only if it has a
35680 # POTFILES.in file. This allows packages to have multiple PO
35681 # directories under different names or in different locations.
35682 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
35683 rm -f "$ac_dir/POTFILES"
35684 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
35685 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
35686 POMAKEFILEDEPS="POTFILES.in"
35687 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
35688 # on $ac_dir but don't depend on user-specified configuration
35690 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
35691 # The LINGUAS file contains the set of available languages.
35692 if test -n "$OBSOLETE_ALL_LINGUAS"; then
35693 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
35695 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
35696 # Hide the ALL_LINGUAS assigment from automake.
35697 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
35698 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
35700 # The set of available languages was given in configure.in.
35701 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
35704 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
35705 # Compute UPDATEPOFILES
35706 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
35707 # Compute DUMMYPOFILES
35708 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
35710 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
35711 case "$ac_given_srcdir" in
35713 *) srcdirpre='$(srcdir)/' ;;
35719 for lang in $ALL_LINGUAS; do
35720 POFILES="$POFILES $srcdirpre$lang.po"
35721 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
35722 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
35723 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
35725 # CATALOGS depends on both $ac_dir and the user's LINGUAS
35726 # environment variable.
35728 if test -n "$ALL_LINGUAS"; then
35729 for presentlang in $ALL_LINGUAS; do
35731 if test "%UNSET%" != "$LINGUAS"; then
35732 desiredlanguages="$LINGUAS"
35734 desiredlanguages="$ALL_LINGUAS"
35736 for desiredlang in $desiredlanguages; do
35737 # Use the presentlang catalog if desiredlang is
35738 # a. equal to presentlang, or
35739 # b. a variant of presentlang (because in this case,
35740 # presentlang can be used as a fallback for messages
35741 # which are not translated in the desiredlang catalog).
35742 case "$desiredlang" in
35743 "$presentlang"*) useit=yes;;
35746 if test $useit = yes; then
35747 INST_LINGUAS="$INST_LINGUAS $presentlang"
35752 if test -n "$INST_LINGUAS"; then
35753 for lang in $INST_LINGUAS; do
35754 CATALOGS="$CATALOGS $lang.gmo"
35757 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
35758 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"
35759 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
35760 if test -f "$f"; then
35762 *.orig | *.bak | *~) ;;
35763 *) cat "$f" >> "$ac_dir/Makefile" ;;
35771 "default":C) (echo "Doing make of dependencies"; ${MAKE:-make} depend;)
35778 { (exit 0); exit 0; }
35780 chmod +x $CONFIG_STATUS
35781 ac_clean_files=$ac_clean_files_save
35784 # configure is writing to config.log, and then calls config.status.
35785 # config.status does its own redirection, appending to config.log.
35786 # Unfortunately, on DOS this fails, as config.log is still kept open
35787 # by configure, so config.status won't be able to write to it; its
35788 # output is simply discarded. So we exec the FD to /dev/null,
35789 # effectively closing config.log, so it can be properly (re)opened and
35790 # appended to by config.status. When coming back to configure, we
35791 # need to make the FD available again.
35792 if test "$no_create" != yes; then
35794 ac_config_status_args=
35795 test "$silent" = yes &&
35796 ac_config_status_args="$ac_config_status_args --quiet"
35798 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
35800 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
35801 # would make configure fail if this is the last instruction.
35802 $ac_cs_success || { (exit 1); exit 1; }
35807 chmod 755 startmysql stopmysql bacula startit stopit btraceback mtx-changer
35808 chmod 755 dvd-handler dvd-simulator
35809 chmod 755 bconsole gconsole mtx-changer devel_bacula logrotate
35814 chmod 755 $c/create_bacula_database $c/update_bacula_tables $c/make_bacula_tables
35815 chmod 755 $c/grant_bacula_privileges $c/drop_bacula_tables $c/drop_bacula_database
35817 chmod 755 $c/create_bdb_database $c/update_bdb_tables $c/make_bdb_tables
35818 chmod 755 $c/grant_bdb_privileges $c/drop_bdb_tables $c/drop_bdb_database
35820 chmod 755 $c/create_mysql_database $c/update_mysql_tables $c/make_mysql_tables
35821 chmod 755 $c/grant_mysql_privileges $c/drop_mysql_tables $c/drop_mysql_database
35823 chmod 755 $c/create_sqlite_database $c/update_sqlite_tables $c/make_sqlite_tables
35824 chmod 755 $c/grant_sqlite_privileges $c/drop_sqlite_tables $c/drop_sqlite_database
35826 chmod 755 $c/create_sqlite3_database $c/update_sqlite3_tables $c/make_sqlite3_tables
35827 chmod 755 $c/grant_sqlite3_privileges $c/drop_sqlite3_tables $c/drop_sqlite3_database
35829 chmod 755 $c/create_postgresql_database $c/update_postgresql_tables $c/make_postgresql_tables
35830 chmod 755 $c/grant_postgresql_privileges $c/drop_postgresql_tables $c/drop_postgresql_database
35832 chmod 755 $c/make_catalog_backup $c/delete_catalog_backup
35833 chmod 755 $c/sqlite
35836 chmod 755 src/win32/build-depkgs-mingw32
35838 if test "${support_bat}" = "yes" ; then
35840 chmod 755 install_conf_file
35845 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
35846 largefile_support="yes"
35850 # A whole lot of hand springs to get the compiler version.
35851 # This is because gcc changed the output in version 3.0
35853 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 3 -d ' '`
35854 if test "x${CCVERSION}" = "x" ; then
35855 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 1 -d ' '`
35857 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
35858 if test x"${CXXVERSION}" = x ; then
35859 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
35862 if test "x${subsysdir}" = "x${sbindir}" ; then
35865 echo "You have set --sbindir and --with-subsys-dir"
35866 echo " both equal to: ${subsysdir} "
35867 echo " This is not permitted. Please reconfigure."
35869 echo "Aborting configuration ..."
35875 if test "x${db_type}" = "xInternal" ; then
35878 echo "You have not specified either --enable-client-only or one of the"
35879 echo " supported databases: MySQL, PostgreSQL, SQLite3 or SQLite."
35880 echo " This is not permitted. Please reconfigure."
35882 echo "Aborting the configuration ..."
35889 Configuration on `date`:
35891 Host: $host -- ${DISTNAME} ${DISTVER}
35892 Bacula version: ${VERSION} (${DATE})
35893 Source code location: ${srcdir}
35894 Install binaries: ${sbindir}
35895 Install config files: ${sysconfdir}
35896 Scripts directory: ${scriptdir}
35897 Working directory: ${working_dir}
35898 PID directory: ${piddir}
35899 Subsys directory: ${subsysdir}
35900 Man directory: ${mandir}
35901 Data directory: ${datadir}
35902 C Compiler: ${CC} ${CCVERSION}
35903 C++ Compiler: ${CXX} ${CXXVERSION}
35904 Compiler flags: ${WCFLAGS} ${CFLAGS}
35905 Linker flags: ${WLDFLAGS} ${LDFLAGS}
35907 Statically Linked Tools: ${support_static_tools}
35908 Statically Linked FD: ${support_static_fd}
35909 Statically Linked SD: ${support_static_sd}
35910 Statically Linked DIR: ${support_static_dir}
35911 Statically Linked CONS: ${support_static_cons}
35912 Database type: ${db_type}
35913 Database lib: ${DB_LIBS}
35914 Database name: ${db_name}
35915 Database user: ${db_user}
35917 Job Output Email: ${job_email}
35918 Traceback Email: ${dump_email}
35919 SMTP Host Address: ${smtp_host}
35921 Director Port: ${dir_port}
35922 File daemon Port: ${fd_port}
35923 Storage daemon Port: ${sd_port}
35925 Director User: ${dir_user}
35926 Director Group: ${dir_group}
35927 Storage Daemon User: ${sd_user}
35928 Storage DaemonGroup: ${sd_group}
35929 File Daemon User: ${fd_user}
35930 File Daemon Group: ${fd_group}
35932 SQL binaries Directory ${SQL_BINDIR}
35934 Large file support: $largefile_support
35935 Bacula conio support: ${got_conio} ${CONS_LIBS}
35936 readline support: ${got_readline} ${PRTREADLINE_SRC}
35937 TCP Wrappers support: ${TCPW_MSG} ${WRAPLIBS}
35938 TLS support: ${support_tls}
35939 Encryption support: ${support_crypto}
35940 ZLIB support: ${have_zlib}
35941 enable-smartalloc: ${support_smartalloc}
35942 enable-bat: ${support_bat}
35943 enable-gnome: ${support_gnome} ${gnome_version}
35944 enable-bwx-console: ${support_wx_console} ${wx_version}
35945 enable-tray-monitor: ${support_tray_monitor}
35946 client-only: ${build_client_only}
35947 build-dird: ${build_dird}
35948 build-stored: ${build_stored}
35949 ACL support: ${have_acl}
35950 Python support: ${support_python} ${PYTHON_LIBS}
35951 Batch insert enabled: ${support_batch_insert}