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
763 TRAY_MONITOR_CPPFLAGS
842 ac_subst_files='MCOMMON'
843 ac_precious_vars='build_alias
859 # Initialize some variables set by options.
861 ac_init_version=false
862 # The variables have the same names as the options, with
863 # dashes changed to underlines.
871 program_transform_name=s,x,x,
879 # Installation directory options.
880 # These are left unexpanded so users can "make install exec_prefix=/foo"
881 # and all the variables that are supposed to be based on exec_prefix
882 # by default will actually change.
883 # Use braces instead of parens because sh, perl, etc. also accept them.
884 # (The list follows the same order as the GNU Coding Standards.)
885 bindir='${exec_prefix}/bin'
886 sbindir='${exec_prefix}/sbin'
887 libexecdir='${exec_prefix}/libexec'
888 datarootdir='${prefix}/share'
889 datadir='${datarootdir}'
890 sysconfdir='${prefix}/etc'
891 sharedstatedir='${prefix}/com'
892 localstatedir='${prefix}/var'
893 includedir='${prefix}/include'
894 oldincludedir='/usr/include'
895 docdir='${datarootdir}/doc/${PACKAGE}'
896 infodir='${datarootdir}/info'
901 libdir='${exec_prefix}/lib'
902 localedir='${datarootdir}/locale'
903 mandir='${datarootdir}/man'
909 # If the previous option needs an argument, assign it.
910 if test -n "$ac_prev"; then
911 eval $ac_prev=\$ac_option
917 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
921 # Accept the important Cygnus configure options, so we can diagnose typos.
923 case $ac_dashdash$ac_option in
927 -bindir | --bindir | --bindi | --bind | --bin | --bi)
929 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
932 -build | --build | --buil | --bui | --bu)
933 ac_prev=build_alias ;;
934 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
935 build_alias=$ac_optarg ;;
937 -cache-file | --cache-file | --cache-fil | --cache-fi \
938 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
939 ac_prev=cache_file ;;
940 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
941 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
942 cache_file=$ac_optarg ;;
945 cache_file=config.cache ;;
947 -datadir | --datadir | --datadi | --datad)
949 -datadir=* | --datadir=* | --datadi=* | --datad=*)
950 datadir=$ac_optarg ;;
952 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
953 | --dataroo | --dataro | --datar)
954 ac_prev=datarootdir ;;
955 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
956 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
957 datarootdir=$ac_optarg ;;
959 -disable-* | --disable-*)
960 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
961 # Reject names that are not valid shell variable names.
962 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
963 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
964 { (exit 1); exit 1; }; }
965 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
966 eval enable_$ac_feature=no ;;
968 -docdir | --docdir | --docdi | --doc | --do)
970 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
973 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
975 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
978 -enable-* | --enable-*)
979 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
980 # Reject names that are not valid shell variable names.
981 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
982 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
983 { (exit 1); exit 1; }; }
984 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
985 eval enable_$ac_feature=\$ac_optarg ;;
987 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
988 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
989 | --exec | --exe | --ex)
990 ac_prev=exec_prefix ;;
991 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
992 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
993 | --exec=* | --exe=* | --ex=*)
994 exec_prefix=$ac_optarg ;;
996 -gas | --gas | --ga | --g)
997 # Obsolete; use --with-gas.
1000 -help | --help | --hel | --he | -h)
1001 ac_init_help=long ;;
1002 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1003 ac_init_help=recursive ;;
1004 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1005 ac_init_help=short ;;
1007 -host | --host | --hos | --ho)
1008 ac_prev=host_alias ;;
1009 -host=* | --host=* | --hos=* | --ho=*)
1010 host_alias=$ac_optarg ;;
1012 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1014 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1016 htmldir=$ac_optarg ;;
1018 -includedir | --includedir | --includedi | --included | --include \
1019 | --includ | --inclu | --incl | --inc)
1020 ac_prev=includedir ;;
1021 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1022 | --includ=* | --inclu=* | --incl=* | --inc=*)
1023 includedir=$ac_optarg ;;
1025 -infodir | --infodir | --infodi | --infod | --info | --inf)
1027 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1028 infodir=$ac_optarg ;;
1030 -libdir | --libdir | --libdi | --libd)
1032 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1033 libdir=$ac_optarg ;;
1035 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1036 | --libexe | --libex | --libe)
1037 ac_prev=libexecdir ;;
1038 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1039 | --libexe=* | --libex=* | --libe=*)
1040 libexecdir=$ac_optarg ;;
1042 -localedir | --localedir | --localedi | --localed | --locale)
1043 ac_prev=localedir ;;
1044 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1045 localedir=$ac_optarg ;;
1047 -localstatedir | --localstatedir | --localstatedi | --localstated \
1048 | --localstate | --localstat | --localsta | --localst | --locals)
1049 ac_prev=localstatedir ;;
1050 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1051 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1052 localstatedir=$ac_optarg ;;
1054 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1056 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1057 mandir=$ac_optarg ;;
1059 -nfp | --nfp | --nf)
1060 # Obsolete; use --without-fp.
1063 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1064 | --no-cr | --no-c | -n)
1067 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1068 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1071 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1072 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1073 | --oldin | --oldi | --old | --ol | --o)
1074 ac_prev=oldincludedir ;;
1075 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1076 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1077 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1078 oldincludedir=$ac_optarg ;;
1080 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1082 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1083 prefix=$ac_optarg ;;
1085 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1086 | --program-pre | --program-pr | --program-p)
1087 ac_prev=program_prefix ;;
1088 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1089 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1090 program_prefix=$ac_optarg ;;
1092 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1093 | --program-suf | --program-su | --program-s)
1094 ac_prev=program_suffix ;;
1095 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1096 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1097 program_suffix=$ac_optarg ;;
1099 -program-transform-name | --program-transform-name \
1100 | --program-transform-nam | --program-transform-na \
1101 | --program-transform-n | --program-transform- \
1102 | --program-transform | --program-transfor \
1103 | --program-transfo | --program-transf \
1104 | --program-trans | --program-tran \
1105 | --progr-tra | --program-tr | --program-t)
1106 ac_prev=program_transform_name ;;
1107 -program-transform-name=* | --program-transform-name=* \
1108 | --program-transform-nam=* | --program-transform-na=* \
1109 | --program-transform-n=* | --program-transform-=* \
1110 | --program-transform=* | --program-transfor=* \
1111 | --program-transfo=* | --program-transf=* \
1112 | --program-trans=* | --program-tran=* \
1113 | --progr-tra=* | --program-tr=* | --program-t=*)
1114 program_transform_name=$ac_optarg ;;
1116 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1118 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1119 pdfdir=$ac_optarg ;;
1121 -psdir | --psdir | --psdi | --psd | --ps)
1123 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1126 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1127 | -silent | --silent | --silen | --sile | --sil)
1130 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1132 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1134 sbindir=$ac_optarg ;;
1136 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1137 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1138 | --sharedst | --shareds | --shared | --share | --shar \
1140 ac_prev=sharedstatedir ;;
1141 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1142 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1143 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1145 sharedstatedir=$ac_optarg ;;
1147 -site | --site | --sit)
1149 -site=* | --site=* | --sit=*)
1152 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1154 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1155 srcdir=$ac_optarg ;;
1157 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1158 | --syscon | --sysco | --sysc | --sys | --sy)
1159 ac_prev=sysconfdir ;;
1160 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1161 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1162 sysconfdir=$ac_optarg ;;
1164 -target | --target | --targe | --targ | --tar | --ta | --t)
1165 ac_prev=target_alias ;;
1166 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1167 target_alias=$ac_optarg ;;
1169 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1172 -version | --version | --versio | --versi | --vers | -V)
1173 ac_init_version=: ;;
1176 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1177 # Reject names that are not valid shell variable names.
1178 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1179 { echo "$as_me: error: invalid package name: $ac_package" >&2
1180 { (exit 1); exit 1; }; }
1181 ac_package=`echo $ac_package| sed 's/-/_/g'`
1182 eval with_$ac_package=\$ac_optarg ;;
1184 -without-* | --without-*)
1185 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1186 # Reject names that are not valid shell variable names.
1187 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1188 { echo "$as_me: error: invalid package name: $ac_package" >&2
1189 { (exit 1); exit 1; }; }
1190 ac_package=`echo $ac_package | sed 's/-/_/g'`
1191 eval with_$ac_package=no ;;
1194 # Obsolete; use --with-x.
1197 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1198 | --x-incl | --x-inc | --x-in | --x-i)
1199 ac_prev=x_includes ;;
1200 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1201 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1202 x_includes=$ac_optarg ;;
1204 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1205 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1206 ac_prev=x_libraries ;;
1207 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1208 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1209 x_libraries=$ac_optarg ;;
1211 -*) { echo "$as_me: error: unrecognized option: $ac_option
1212 Try \`$0 --help' for more information." >&2
1213 { (exit 1); exit 1; }; }
1217 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1218 # Reject names that are not valid shell variable names.
1219 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1220 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1221 { (exit 1); exit 1; }; }
1222 eval $ac_envvar=\$ac_optarg
1223 export $ac_envvar ;;
1226 # FIXME: should be removed in autoconf 3.0.
1227 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1228 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1229 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1230 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1236 if test -n "$ac_prev"; then
1237 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1238 { echo "$as_me: error: missing argument to $ac_option" >&2
1239 { (exit 1); exit 1; }; }
1242 # Be sure to have absolute directory names.
1243 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1244 datadir sysconfdir sharedstatedir localstatedir includedir \
1245 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1246 libdir localedir mandir
1248 eval ac_val=\$$ac_var
1250 [\\/$]* | ?:[\\/]* ) continue;;
1251 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1253 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1254 { (exit 1); exit 1; }; }
1257 # There might be people who depend on the old broken behavior: `$host'
1258 # used to hold the argument of --host etc.
1259 # FIXME: To remove some day.
1262 target=$target_alias
1264 # FIXME: To remove some day.
1265 if test "x$host_alias" != x; then
1266 if test "x$build_alias" = x; then
1267 cross_compiling=maybe
1268 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1269 If a cross compiler is detected then cross compile mode will be used." >&2
1270 elif test "x$build_alias" != "x$host_alias"; then
1276 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1278 test "$silent" = yes && exec 6>/dev/null
1281 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1282 ac_ls_di=`ls -di .` &&
1283 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1284 { echo "$as_me: error: Working directory cannot be determined" >&2
1285 { (exit 1); exit 1; }; }
1286 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1287 { echo "$as_me: error: pwd does not report name of working directory" >&2
1288 { (exit 1); exit 1; }; }
1291 # Find the source files, if location was not specified.
1292 if test -z "$srcdir"; then
1293 ac_srcdir_defaulted=yes
1294 # Try the directory containing this script, then the parent directory.
1295 ac_confdir=`$as_dirname -- "$0" ||
1296 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1297 X"$0" : 'X\(//\)[^/]' \| \
1298 X"$0" : 'X\(//\)$' \| \
1299 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1301 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1319 if test ! -r "$srcdir/$ac_unique_file"; then
1323 ac_srcdir_defaulted=no
1325 if test ! -r "$srcdir/$ac_unique_file"; then
1326 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1327 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1328 { (exit 1); exit 1; }; }
1330 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1332 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1333 { (exit 1); exit 1; }; }
1335 # When building in place, set srcdir=.
1336 if test "$ac_abs_confdir" = "$ac_pwd"; then
1339 # Remove unnecessary trailing slashes from srcdir.
1340 # Double slashes in file names in object file debugging info
1341 # mess up M-x gdb in Emacs.
1343 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1345 for ac_var in $ac_precious_vars; do
1346 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1347 eval ac_env_${ac_var}_value=\$${ac_var}
1348 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1349 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1353 # Report the --help message.
1355 if test "$ac_init_help" = "long"; then
1356 # Omit some internal or obsolete options to make the list less imposing.
1357 # This message is too long to be a string in the A/UX 3.1 sh.
1359 \`configure' configures this package to adapt to many kinds of systems.
1361 Usage: $0 [OPTION]... [VAR=VALUE]...
1363 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1364 VAR=VALUE. See below for descriptions of some of the useful variables.
1366 Defaults for the options are specified in brackets.
1369 -h, --help display this help and exit
1370 --help=short display options specific to this package
1371 --help=recursive display the short help of all the included packages
1372 -V, --version display version information and exit
1373 -q, --quiet, --silent do not print \`checking...' messages
1374 --cache-file=FILE cache test results in FILE [disabled]
1375 -C, --config-cache alias for \`--cache-file=config.cache'
1376 -n, --no-create do not create output files
1377 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1379 Installation directories:
1380 --prefix=PREFIX install architecture-independent files in PREFIX
1381 [$ac_default_prefix]
1382 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1385 By default, \`make install' will install all the files in
1386 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1387 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1388 for instance \`--prefix=\$HOME'.
1390 For better control, use the options below.
1392 Fine tuning of the installation directories:
1393 --bindir=DIR user executables [EPREFIX/bin]
1394 --sbindir=DIR system admin executables [EPREFIX/sbin]
1395 --libexecdir=DIR program executables [EPREFIX/libexec]
1396 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1397 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1398 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1399 --libdir=DIR object code libraries [EPREFIX/lib]
1400 --includedir=DIR C header files [PREFIX/include]
1401 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1402 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1403 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1404 --infodir=DIR info documentation [DATAROOTDIR/info]
1405 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1406 --mandir=DIR man documentation [DATAROOTDIR/man]
1407 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1408 --htmldir=DIR html documentation [DOCDIR]
1409 --dvidir=DIR dvi documentation [DOCDIR]
1410 --pdfdir=DIR pdf documentation [DOCDIR]
1411 --psdir=DIR ps documentation [DOCDIR]
1417 --x-includes=DIR X include files are in DIR
1418 --x-libraries=DIR X library files are in DIR
1421 --build=BUILD configure for building on BUILD [guessed]
1422 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1426 if test -n "$ac_init_help"; then
1431 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1432 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1433 --disable-nls do not use Native Language Support
1434 --disable-rpath do not hardcode runtime library paths
1435 --enable-gnome enable build of bgnome-console GUI disabled
1436 --enable-bat enable build of bat Qt4 GUI disabled
1437 --enable-bwx-console enable build of wxWidgets console disabled
1438 --enable-tray-monitor enable build of Gnome tray monitor (compatible with KDE) disabled
1439 --enable-smartalloc enable smartalloc debugging support disabled
1440 --enable-static-tools enable static tape tools disabled
1441 --enable-static-fd enable static File daemon disabled
1442 --enable-static-sd enable static Storage daemon disabled
1443 --enable-static-dir enable static Director disabled
1444 --enable-static-cons enable static Console disabled
1445 --enable-client-only build client (File daemon) only disabled
1446 --enable-build-dird enable building of dird (Director) enabled
1447 --enable-build-stored enable building of stored (Storage daemon) enabled
1448 --disable-conio disable conio support enabled
1450 --enable-ipv6 enable ipv6 support enabled
1452 --disable-readline disable readline support disable
1454 --enable-batch-insert enable the DB batch insert code disabled
1455 --disable-largefile omit support for large files
1458 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1459 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1460 --with-gnu-ld assume the C compiler uses GNU ld default=no
1461 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1462 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1463 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1464 --without-libintl-prefix don't search for libintl in includedir and libdir
1465 --with-included-gettext use the GNU gettext library included here
1466 --with-qwt[=DIR] specify qwt library directory
1467 --with-readline[=DIR] specify readline library directory
1469 --with-python[=DIR] Include Python support. DIR is the Python base
1470 install directory, default is to search through
1471 a number of common places for the Python files.
1472 --with-tcp-wrappers[=DIR] enable tcpwrappers support
1473 --with-openssl[=DIR] Include OpenSSL support. DIR is the OpenSSL base
1474 --with-working-dir=PATH specify path of Bacula working directory
1475 --with-scriptdir=PATH specify path of Bacula scripts directory
1476 --with-dump-email=EMAIL dump email address
1477 --with-job-email=EMAIL job output email address
1478 --with-smtp-host=HOST SMTP mail host address
1479 --with-pid-dir=PATH specify location of Bacula pid files
1480 --with-subsys-dir=PATH specify location of Bacula subsys file
1481 --with-baseport=PORT specify base port address for daemons
1482 --with-dir-password=PASSWORD specify Director's password
1483 --with-fd-password=PASSWORD specify Client's password
1484 --with-sd-password=PASSWORD specify Storage daemon's password
1485 --with-mon-dir-password=PASSWORD specify Director's password used by the monitor
1486 --with-mon-fd-password=PASSWORD specify Client's password used by the monitor
1487 --with-mon-sd-password=PASSWORD specify Storage daemon's password used by the monitor
1488 --with-db-name=DBNAME specify database name (default bacula)
1489 --with-db-user=UNAME specify database user (default bacula)
1490 --with-dir-user=USER specify user for Director daemon
1491 --with-dir-group=GROUP specify group for Director daemon
1492 --with-sd-user=USER specify user for Storage daemon
1493 --with-sd-group=GROUP specify group for Storage daemon
1494 --with-fd-user=USER specify user for File daemon
1495 --with-fd-group=GROUP specify group for File daemon
1496 --with-sbin-perm=MODE specify permissions for sbin binaries (0754)
1497 --with-postgresql[=DIR] Include PostgreSQL support. DIR is the PostgreSQL
1498 base install directory, defaults to /usr/local/pgsql
1500 --with-mysql[=DIR] Include MySQL support. DIR is the MySQL base
1501 install directory, default is to search through
1502 a number of common places for the MySQL files.
1504 --with-embedded-mysql[=DIR] Include MySQL support. DIR is the MySQL base
1505 install directory, default is to search through
1506 a number of common places for the MySQL files.
1508 --with-sqlite3[=DIR] Include SQLite3 support. DIR is the SQLite3 base
1509 install directory, default is to search through
1510 a number of common places for the SQLite3 files.
1512 --with-sqlite[=DIR] Include SQLite support. DIR is the SQLite base
1513 install directory, default is to search through
1514 a number of common places for the SQLite files.
1515 --with-x use the X Window System
1517 Some influential environment variables:
1518 CC C compiler command
1519 CFLAGS C compiler flags
1520 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1521 nonstandard directory <lib dir>
1522 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1523 you have headers in a nonstandard directory <include dir>
1524 CXX C++ compiler command
1525 CXXFLAGS C++ compiler flags
1527 WXCONFIG wx-config command. On some systems, you must set it to
1528 wx-config-2.6 to use wxWidgets 2.6.
1529 WXFLAGS Parameters to pass to wx-config (e.g. --unicode=no).
1530 XMKMF Path to xmkmf, Makefile generator for X Window System
1532 Use these variables to override the choices made by `configure' or to help
1533 it to find libraries and programs with nonstandard names/locations.
1539 if test "$ac_init_help" = "recursive"; then
1540 # If there are subdirs, report their specific --help.
1541 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1542 test -d "$ac_dir" || continue
1546 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1548 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1549 # A ".." for each directory in $ac_dir_suffix.
1550 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1551 case $ac_top_builddir_sub in
1552 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1553 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1556 ac_abs_top_builddir=$ac_pwd
1557 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1558 # for backward compatibility:
1559 ac_top_builddir=$ac_top_build_prefix
1562 .) # We are building in place.
1564 ac_top_srcdir=$ac_top_builddir_sub
1565 ac_abs_top_srcdir=$ac_pwd ;;
1566 [\\/]* | ?:[\\/]* ) # Absolute name.
1567 ac_srcdir=$srcdir$ac_dir_suffix;
1568 ac_top_srcdir=$srcdir
1569 ac_abs_top_srcdir=$srcdir ;;
1571 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1572 ac_top_srcdir=$ac_top_build_prefix$srcdir
1573 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1575 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1577 cd "$ac_dir" || { ac_status=$?; continue; }
1578 # Check for guested configure.
1579 if test -f "$ac_srcdir/configure.gnu"; then
1581 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1582 elif test -f "$ac_srcdir/configure"; then
1584 $SHELL "$ac_srcdir/configure" --help=recursive
1586 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1588 cd "$ac_pwd" || { ac_status=$?; break; }
1592 test -n "$ac_init_help" && exit $ac_status
1593 if $ac_init_version; then
1596 generated by GNU Autoconf 2.60
1598 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1599 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1600 This configure script is free software; the Free Software Foundation
1601 gives unlimited permission to copy, distribute and modify it.
1605 cat >config.log <<_ACEOF
1606 This file contains any messages produced by compilers while
1607 running configure, to aid debugging if configure makes a mistake.
1609 It was created by $as_me, which was
1610 generated by GNU Autoconf 2.60. Invocation command line was
1622 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1623 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1624 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1625 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1626 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1628 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1629 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1631 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1632 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1633 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1634 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1635 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1636 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1637 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1645 test -z "$as_dir" && as_dir=.
1646 echo "PATH: $as_dir"
1662 # Keep a trace of the command line.
1663 # Strip out --no-create and --no-recursion so they do not pile up.
1664 # Strip out --silent because we don't want to record it for future runs.
1665 # Also quote any args containing shell meta-characters.
1666 # Make two passes to allow for proper duplicate-argument suppression.
1670 ac_must_keep_next=false
1676 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1677 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1678 | -silent | --silent | --silen | --sile | --sil)
1681 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1684 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1686 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1687 if test $ac_must_keep_next = true; then
1688 ac_must_keep_next=false # Got value, back to normal.
1691 *=* | --config-cache | -C | -disable-* | --disable-* \
1692 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1693 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1694 | -with-* | --with-* | -without-* | --without-* | --x)
1695 case "$ac_configure_args0 " in
1696 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1699 -* ) ac_must_keep_next=true ;;
1702 ac_configure_args="$ac_configure_args '$ac_arg'"
1707 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1708 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1710 # When interrupted or exit'd, cleanup temporary files, and complete
1711 # config.log. We remove comments because anyway the quotes in there
1712 # would cause problems or look ugly.
1713 # WARNING: Use '\'' to represent an apostrophe within the trap.
1714 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1715 trap 'exit_status=$?
1716 # Save into config.log some information that might help in debugging.
1721 ## ---------------- ##
1722 ## Cache variables. ##
1723 ## ---------------- ##
1726 # The following way of writing the cache mishandles newlines in values,
1728 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1729 eval ac_val=\$$ac_var
1733 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1734 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1737 _ | IFS | as_nl) ;; #(
1738 *) $as_unset $ac_var ;;
1743 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1744 *${as_nl}ac_space=\ *)
1746 "s/'\''/'\''\\\\'\'''\''/g;
1747 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1750 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1758 ## ----------------- ##
1759 ## Output variables. ##
1760 ## ----------------- ##
1763 for ac_var in $ac_subst_vars
1765 eval ac_val=\$$ac_var
1767 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1769 echo "$ac_var='\''$ac_val'\''"
1773 if test -n "$ac_subst_files"; then
1775 ## ------------------- ##
1776 ## File substitutions. ##
1777 ## ------------------- ##
1780 for ac_var in $ac_subst_files
1782 eval ac_val=\$$ac_var
1784 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1786 echo "$ac_var='\''$ac_val'\''"
1791 if test -s confdefs.h; then
1801 test "$ac_signal" != 0 &&
1802 echo "$as_me: caught signal $ac_signal"
1803 echo "$as_me: exit $exit_status"
1805 rm -f core *.core core.conftest.* &&
1806 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1809 for ac_signal in 1 2 13 15; do
1810 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1814 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1815 rm -f -r conftest* confdefs.h
1817 # Predefined preprocessor variables.
1819 cat >>confdefs.h <<_ACEOF
1820 #define PACKAGE_NAME "$PACKAGE_NAME"
1824 cat >>confdefs.h <<_ACEOF
1825 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1829 cat >>confdefs.h <<_ACEOF
1830 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1834 cat >>confdefs.h <<_ACEOF
1835 #define PACKAGE_STRING "$PACKAGE_STRING"
1839 cat >>confdefs.h <<_ACEOF
1840 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1844 # Let the site file select an alternate cache file if it wants to.
1845 # Prefer explicitly selected file to automatically selected ones.
1846 if test -n "$CONFIG_SITE"; then
1847 set x "$CONFIG_SITE"
1848 elif test "x$prefix" != xNONE; then
1849 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1851 set x "$ac_default_prefix/share/config.site" \
1852 "$ac_default_prefix/etc/config.site"
1857 if test -r "$ac_site_file"; then
1858 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1859 echo "$as_me: loading site script $ac_site_file" >&6;}
1860 sed 's/^/| /' "$ac_site_file" >&5
1865 if test -r "$cache_file"; then
1866 # Some versions of bash will fail to source /dev/null (special
1867 # files actually), so we avoid doing that.
1868 if test -f "$cache_file"; then
1869 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1870 echo "$as_me: loading cache $cache_file" >&6;}
1872 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1873 *) . "./$cache_file";;
1877 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1878 echo "$as_me: creating cache $cache_file" >&6;}
1882 # Check that the precious variables saved in the cache have kept the same
1884 ac_cache_corrupted=false
1885 for ac_var in $ac_precious_vars; do
1886 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1887 eval ac_new_set=\$ac_env_${ac_var}_set
1888 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1889 eval ac_new_val=\$ac_env_${ac_var}_value
1890 case $ac_old_set,$ac_new_set in
1892 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1893 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1894 ac_cache_corrupted=: ;;
1896 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1897 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1898 ac_cache_corrupted=: ;;
1901 if test "x$ac_old_val" != "x$ac_new_val"; then
1902 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1903 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1904 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1905 echo "$as_me: former value: $ac_old_val" >&2;}
1906 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1907 echo "$as_me: current value: $ac_new_val" >&2;}
1908 ac_cache_corrupted=:
1911 # Pass precious variables to config.status.
1912 if test "$ac_new_set" = set; then
1914 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1915 *) ac_arg=$ac_var=$ac_new_val ;;
1917 case " $ac_configure_args " in
1918 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1919 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1923 if $ac_cache_corrupted; then
1924 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1925 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1926 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1927 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1928 { (exit 1); exit 1; }; }
1948 ac_cpp='$CPP $CPPFLAGS'
1949 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1950 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1951 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1961 for ac_dir in ${BUILD_DIR}/autoconf "$srcdir"/${BUILD_DIR}/autoconf; do
1962 if test -f "$ac_dir/install-sh"; then
1964 ac_install_sh="$ac_aux_dir/install-sh -c"
1966 elif test -f "$ac_dir/install.sh"; then
1968 ac_install_sh="$ac_aux_dir/install.sh -c"
1970 elif test -f "$ac_dir/shtool"; then
1972 ac_install_sh="$ac_aux_dir/shtool install -c"
1976 if test -z "$ac_aux_dir"; then
1977 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf \"$srcdir\"/${BUILD_DIR}/autoconf" >&5
1978 echo "$as_me: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf \"$srcdir\"/${BUILD_DIR}/autoconf" >&2;}
1979 { (exit 1); exit 1; }; }
1982 # These three variables are undocumented and unsupported,
1983 # and are intended to be withdrawn in a future Autoconf release.
1984 # They can cause serious problems if a builder's source tree is in a directory
1985 # whose full name contains unusual characters.
1986 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1987 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1988 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1991 ac_config_headers="$ac_config_headers src/config.h:autoconf/config.h.in"
1999 # Extract the first word of "$ac_prog", so it can be a program name with args.
2000 set dummy $ac_prog; ac_word=$2
2001 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2002 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2003 if test "${ac_cv_path_TRUEPRG+set}" = set; then
2004 echo $ECHO_N "(cached) $ECHO_C" >&6
2008 ac_cv_path_TRUEPRG="$TRUEPRG" # Let the user override the test with a path.
2011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2015 test -z "$as_dir" && as_dir=.
2016 for ac_exec_ext in '' $ac_executable_extensions; do
2017 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2018 ac_cv_path_TRUEPRG="$as_dir/$ac_word$ac_exec_ext"
2019 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2029 TRUEPRG=$ac_cv_path_TRUEPRG
2030 if test -n "$TRUEPRG"; then
2031 { echo "$as_me:$LINENO: result: $TRUEPRG" >&5
2032 echo "${ECHO_T}$TRUEPRG" >&6; }
2034 { echo "$as_me:$LINENO: result: no" >&5
2035 echo "${ECHO_T}no" >&6; }
2039 test -n "$TRUEPRG" && break
2041 test -n "$TRUEPRG" || TRUEPRG=":"
2043 for ac_prog in false
2045 # Extract the first word of "$ac_prog", so it can be a program name with args.
2046 set dummy $ac_prog; ac_word=$2
2047 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2048 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2049 if test "${ac_cv_path_FALSEPRG+set}" = set; then
2050 echo $ECHO_N "(cached) $ECHO_C" >&6
2054 ac_cv_path_FALSEPRG="$FALSEPRG" # Let the user override the test with a path.
2057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2061 test -z "$as_dir" && as_dir=.
2062 for ac_exec_ext in '' $ac_executable_extensions; do
2063 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2064 ac_cv_path_FALSEPRG="$as_dir/$ac_word$ac_exec_ext"
2065 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2075 FALSEPRG=$ac_cv_path_FALSEPRG
2076 if test -n "$FALSEPRG"; then
2077 { echo "$as_me:$LINENO: result: $FALSEPRG" >&5
2078 echo "${ECHO_T}$FALSEPRG" >&6; }
2080 { echo "$as_me:$LINENO: result: no" >&5
2081 echo "${ECHO_T}no" >&6; }
2085 test -n "$FALSEPRG" && break
2087 test -n "$FALSEPRG" || FALSEPRG=":"
2092 VERSION=`sed -n -e 's/^.*VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2093 DATE=`sed -n -e 's/^.* \t*BDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2094 LSMDATE=`sed -n -e 's/^.*LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2095 echo "configuring for bacula $VERSION ($DATE)"
2100 ac_cpp='$CPP $CPPFLAGS'
2101 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2102 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2103 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2104 if test -n "$ac_tool_prefix"; then
2105 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2106 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2107 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2108 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2109 if test "${ac_cv_prog_CC+set}" = set; then
2110 echo $ECHO_N "(cached) $ECHO_C" >&6
2112 if test -n "$CC"; then
2113 ac_cv_prog_CC="$CC" # Let the user override the test.
2115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2119 test -z "$as_dir" && as_dir=.
2120 for ac_exec_ext in '' $ac_executable_extensions; do
2121 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2122 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2123 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2133 if test -n "$CC"; then
2134 { echo "$as_me:$LINENO: result: $CC" >&5
2135 echo "${ECHO_T}$CC" >&6; }
2137 { echo "$as_me:$LINENO: result: no" >&5
2138 echo "${ECHO_T}no" >&6; }
2143 if test -z "$ac_cv_prog_CC"; then
2145 # Extract the first word of "gcc", so it can be a program name with args.
2146 set dummy gcc; ac_word=$2
2147 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2148 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2149 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2150 echo $ECHO_N "(cached) $ECHO_C" >&6
2152 if test -n "$ac_ct_CC"; then
2153 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2159 test -z "$as_dir" && as_dir=.
2160 for ac_exec_ext in '' $ac_executable_extensions; do
2161 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2162 ac_cv_prog_ac_ct_CC="gcc"
2163 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2172 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2173 if test -n "$ac_ct_CC"; then
2174 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2175 echo "${ECHO_T}$ac_ct_CC" >&6; }
2177 { echo "$as_me:$LINENO: result: no" >&5
2178 echo "${ECHO_T}no" >&6; }
2181 if test "x$ac_ct_CC" = x; then
2184 case $cross_compiling:$ac_tool_warned in
2186 { echo "$as_me:$LINENO: 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." >&5
2189 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2190 whose name does not start with the host triplet. If you think this
2191 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2192 ac_tool_warned=yes ;;
2200 if test -z "$CC"; then
2201 if test -n "$ac_tool_prefix"; then
2202 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2203 set dummy ${ac_tool_prefix}cc; ac_word=$2
2204 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2205 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2206 if test "${ac_cv_prog_CC+set}" = set; then
2207 echo $ECHO_N "(cached) $ECHO_C" >&6
2209 if test -n "$CC"; then
2210 ac_cv_prog_CC="$CC" # Let the user override the test.
2212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2216 test -z "$as_dir" && as_dir=.
2217 for ac_exec_ext in '' $ac_executable_extensions; do
2218 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2219 ac_cv_prog_CC="${ac_tool_prefix}cc"
2220 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2230 if test -n "$CC"; then
2231 { echo "$as_me:$LINENO: result: $CC" >&5
2232 echo "${ECHO_T}$CC" >&6; }
2234 { echo "$as_me:$LINENO: result: no" >&5
2235 echo "${ECHO_T}no" >&6; }
2241 if test -z "$CC"; then
2242 # Extract the first word of "cc", so it can be a program name with args.
2243 set dummy cc; ac_word=$2
2244 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2245 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2246 if test "${ac_cv_prog_CC+set}" = set; then
2247 echo $ECHO_N "(cached) $ECHO_C" >&6
2249 if test -n "$CC"; then
2250 ac_cv_prog_CC="$CC" # Let the user override the test.
2253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2257 test -z "$as_dir" && as_dir=.
2258 for ac_exec_ext in '' $ac_executable_extensions; do
2259 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2260 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2261 ac_prog_rejected=yes
2265 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2272 if test $ac_prog_rejected = yes; then
2273 # We found a bogon in the path, so make sure we never use it.
2274 set dummy $ac_cv_prog_CC
2276 if test $# != 0; then
2277 # We chose a different compiler from the bogus one.
2278 # However, it has the same basename, so the bogon will be chosen
2279 # first if we set CC to just the basename; use the full file name.
2281 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2287 if test -n "$CC"; then
2288 { echo "$as_me:$LINENO: result: $CC" >&5
2289 echo "${ECHO_T}$CC" >&6; }
2291 { echo "$as_me:$LINENO: result: no" >&5
2292 echo "${ECHO_T}no" >&6; }
2297 if test -z "$CC"; then
2298 if test -n "$ac_tool_prefix"; then
2299 for ac_prog in cl.exe
2301 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2302 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2303 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2304 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2305 if test "${ac_cv_prog_CC+set}" = set; then
2306 echo $ECHO_N "(cached) $ECHO_C" >&6
2308 if test -n "$CC"; then
2309 ac_cv_prog_CC="$CC" # Let the user override the test.
2311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2315 test -z "$as_dir" && as_dir=.
2316 for ac_exec_ext in '' $ac_executable_extensions; do
2317 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2318 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2319 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2329 if test -n "$CC"; then
2330 { echo "$as_me:$LINENO: result: $CC" >&5
2331 echo "${ECHO_T}$CC" >&6; }
2333 { echo "$as_me:$LINENO: result: no" >&5
2334 echo "${ECHO_T}no" >&6; }
2338 test -n "$CC" && break
2341 if test -z "$CC"; then
2343 for ac_prog in cl.exe
2345 # Extract the first word of "$ac_prog", so it can be a program name with args.
2346 set dummy $ac_prog; ac_word=$2
2347 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2348 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2349 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2350 echo $ECHO_N "(cached) $ECHO_C" >&6
2352 if test -n "$ac_ct_CC"; then
2353 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2359 test -z "$as_dir" && as_dir=.
2360 for ac_exec_ext in '' $ac_executable_extensions; do
2361 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2362 ac_cv_prog_ac_ct_CC="$ac_prog"
2363 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2372 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2373 if test -n "$ac_ct_CC"; then
2374 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2375 echo "${ECHO_T}$ac_ct_CC" >&6; }
2377 { echo "$as_me:$LINENO: result: no" >&5
2378 echo "${ECHO_T}no" >&6; }
2382 test -n "$ac_ct_CC" && break
2385 if test "x$ac_ct_CC" = x; then
2388 case $cross_compiling:$ac_tool_warned in
2390 { echo "$as_me:$LINENO: 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." >&5
2393 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2394 whose name does not start with the host triplet. If you think this
2395 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2396 ac_tool_warned=yes ;;
2405 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2406 See \`config.log' for more details." >&5
2407 echo "$as_me: error: no acceptable C compiler found in \$PATH
2408 See \`config.log' for more details." >&2;}
2409 { (exit 1); exit 1; }; }
2411 # Provide some information about the compiler.
2412 echo "$as_me:$LINENO: checking for C compiler version" >&5
2413 ac_compiler=`set X $ac_compile; echo $2`
2414 { (ac_try="$ac_compiler --version >&5"
2416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2417 *) ac_try_echo=$ac_try;;
2419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2420 (eval "$ac_compiler --version >&5") 2>&5
2422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2423 (exit $ac_status); }
2424 { (ac_try="$ac_compiler -v >&5"
2426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2427 *) ac_try_echo=$ac_try;;
2429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2430 (eval "$ac_compiler -v >&5") 2>&5
2432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2433 (exit $ac_status); }
2434 { (ac_try="$ac_compiler -V >&5"
2436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2437 *) ac_try_echo=$ac_try;;
2439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2440 (eval "$ac_compiler -V >&5") 2>&5
2442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2443 (exit $ac_status); }
2445 cat >conftest.$ac_ext <<_ACEOF
2448 cat confdefs.h >>conftest.$ac_ext
2449 cat >>conftest.$ac_ext <<_ACEOF
2450 /* end confdefs.h. */
2460 ac_clean_files_save=$ac_clean_files
2461 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2462 # Try to create an executable without -o first, disregard a.out.
2463 # It will help us diagnose broken compilers, and finding out an intuition
2465 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2466 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2467 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2469 # List of possible output files, starting from the most likely.
2470 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2471 # only as a last resort. b.out is created by i960 compilers.
2472 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2474 # The IRIX 6 linker writes into existing files which may not be
2475 # executable, retaining their permissions. Remove them first so a
2476 # subsequent execution test works.
2478 for ac_file in $ac_files
2481 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2482 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2487 if { (ac_try="$ac_link_default"
2489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2490 *) ac_try_echo=$ac_try;;
2492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2493 (eval "$ac_link_default") 2>&5
2495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2496 (exit $ac_status); }; then
2497 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2498 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2499 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2500 # so that the user can short-circuit this test for compilers unknown to
2502 for ac_file in $ac_files
2504 test -f "$ac_file" || continue
2506 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2509 # We found the default executable, but exeext='' is most
2513 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2515 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2517 # We set ac_cv_exeext here because the later test for it is not
2518 # safe: cross compilers may not add the suffix if given an `-o'
2519 # argument, so we may need to know it at that point already.
2520 # Even if this section looks crufty: it has the advantage of
2527 test "$ac_cv_exeext" = no && ac_cv_exeext=
2530 echo "$as_me: failed program was:" >&5
2531 sed 's/^/| /' conftest.$ac_ext >&5
2533 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2534 See \`config.log' for more details." >&5
2535 echo "$as_me: error: C compiler cannot create executables
2536 See \`config.log' for more details." >&2;}
2537 { (exit 77); exit 77; }; }
2540 ac_exeext=$ac_cv_exeext
2541 { echo "$as_me:$LINENO: result: $ac_file" >&5
2542 echo "${ECHO_T}$ac_file" >&6; }
2544 # Check that the compiler produces executables we can run. If not, either
2545 # the compiler is broken, or we cross compile.
2546 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2547 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2548 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2549 # If not cross compiling, check that we can run a simple program.
2550 if test "$cross_compiling" != yes; then
2551 if { ac_try='./$ac_file'
2552 { (case "(($ac_try" in
2553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2554 *) ac_try_echo=$ac_try;;
2556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2557 (eval "$ac_try") 2>&5
2559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2560 (exit $ac_status); }; }; then
2563 if test "$cross_compiling" = maybe; then
2566 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2567 If you meant to cross compile, use \`--host'.
2568 See \`config.log' for more details." >&5
2569 echo "$as_me: error: cannot run C compiled programs.
2570 If you meant to cross compile, use \`--host'.
2571 See \`config.log' for more details." >&2;}
2572 { (exit 1); exit 1; }; }
2576 { echo "$as_me:$LINENO: result: yes" >&5
2577 echo "${ECHO_T}yes" >&6; }
2579 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2580 ac_clean_files=$ac_clean_files_save
2581 # Check that the compiler produces executables we can run. If not, either
2582 # the compiler is broken, or we cross compile.
2583 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2584 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2585 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2586 echo "${ECHO_T}$cross_compiling" >&6; }
2588 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2589 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2590 if { (ac_try="$ac_link"
2592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2593 *) ac_try_echo=$ac_try;;
2595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2596 (eval "$ac_link") 2>&5
2598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2599 (exit $ac_status); }; then
2600 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2601 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2602 # work properly (i.e., refer to `conftest.exe'), while it won't with
2604 for ac_file in conftest.exe conftest conftest.*; do
2605 test -f "$ac_file" || continue
2607 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2608 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2614 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2615 See \`config.log' for more details." >&5
2616 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2617 See \`config.log' for more details." >&2;}
2618 { (exit 1); exit 1; }; }
2621 rm -f conftest$ac_cv_exeext
2622 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2623 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2625 rm -f conftest.$ac_ext
2626 EXEEXT=$ac_cv_exeext
2628 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2629 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2630 if test "${ac_cv_objext+set}" = set; then
2631 echo $ECHO_N "(cached) $ECHO_C" >&6
2633 cat >conftest.$ac_ext <<_ACEOF
2636 cat confdefs.h >>conftest.$ac_ext
2637 cat >>conftest.$ac_ext <<_ACEOF
2638 /* end confdefs.h. */
2648 rm -f conftest.o conftest.obj
2649 if { (ac_try="$ac_compile"
2651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2652 *) ac_try_echo=$ac_try;;
2654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2655 (eval "$ac_compile") 2>&5
2657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2658 (exit $ac_status); }; then
2659 for ac_file in conftest.o conftest.obj conftest.*; do
2660 test -f "$ac_file" || continue;
2662 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2663 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2668 echo "$as_me: failed program was:" >&5
2669 sed 's/^/| /' conftest.$ac_ext >&5
2671 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2672 See \`config.log' for more details." >&5
2673 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2674 See \`config.log' for more details." >&2;}
2675 { (exit 1); exit 1; }; }
2678 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2680 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2681 echo "${ECHO_T}$ac_cv_objext" >&6; }
2682 OBJEXT=$ac_cv_objext
2684 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2685 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2686 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2687 echo $ECHO_N "(cached) $ECHO_C" >&6
2689 cat >conftest.$ac_ext <<_ACEOF
2692 cat confdefs.h >>conftest.$ac_ext
2693 cat >>conftest.$ac_ext <<_ACEOF
2694 /* end confdefs.h. */
2707 rm -f conftest.$ac_objext
2708 if { (ac_try="$ac_compile"
2710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2711 *) ac_try_echo=$ac_try;;
2713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2714 (eval "$ac_compile") 2>conftest.er1
2716 grep -v '^ *+' conftest.er1 >conftest.err
2718 cat conftest.err >&5
2719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2720 (exit $ac_status); } &&
2721 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2722 { (case "(($ac_try" in
2723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2724 *) ac_try_echo=$ac_try;;
2726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2727 (eval "$ac_try") 2>&5
2729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2730 (exit $ac_status); }; } &&
2731 { ac_try='test -s conftest.$ac_objext'
2732 { (case "(($ac_try" in
2733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2734 *) ac_try_echo=$ac_try;;
2736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2737 (eval "$ac_try") 2>&5
2739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2740 (exit $ac_status); }; }; then
2743 echo "$as_me: failed program was:" >&5
2744 sed 's/^/| /' conftest.$ac_ext >&5
2749 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2750 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2753 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2754 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2755 GCC=`test $ac_compiler_gnu = yes && echo yes`
2756 ac_test_CFLAGS=${CFLAGS+set}
2757 ac_save_CFLAGS=$CFLAGS
2758 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2759 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2760 if test "${ac_cv_prog_cc_g+set}" = set; then
2761 echo $ECHO_N "(cached) $ECHO_C" >&6
2763 ac_save_c_werror_flag=$ac_c_werror_flag
2764 ac_c_werror_flag=yes
2767 cat >conftest.$ac_ext <<_ACEOF
2770 cat confdefs.h >>conftest.$ac_ext
2771 cat >>conftest.$ac_ext <<_ACEOF
2772 /* end confdefs.h. */
2782 rm -f conftest.$ac_objext
2783 if { (ac_try="$ac_compile"
2785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2786 *) ac_try_echo=$ac_try;;
2788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2789 (eval "$ac_compile") 2>conftest.er1
2791 grep -v '^ *+' conftest.er1 >conftest.err
2793 cat conftest.err >&5
2794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2795 (exit $ac_status); } &&
2796 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2797 { (case "(($ac_try" in
2798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2799 *) ac_try_echo=$ac_try;;
2801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2802 (eval "$ac_try") 2>&5
2804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2805 (exit $ac_status); }; } &&
2806 { ac_try='test -s conftest.$ac_objext'
2807 { (case "(($ac_try" in
2808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2809 *) ac_try_echo=$ac_try;;
2811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2812 (eval "$ac_try") 2>&5
2814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2815 (exit $ac_status); }; }; then
2818 echo "$as_me: failed program was:" >&5
2819 sed 's/^/| /' conftest.$ac_ext >&5
2822 cat >conftest.$ac_ext <<_ACEOF
2825 cat confdefs.h >>conftest.$ac_ext
2826 cat >>conftest.$ac_ext <<_ACEOF
2827 /* end confdefs.h. */
2837 rm -f conftest.$ac_objext
2838 if { (ac_try="$ac_compile"
2840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2841 *) ac_try_echo=$ac_try;;
2843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2844 (eval "$ac_compile") 2>conftest.er1
2846 grep -v '^ *+' conftest.er1 >conftest.err
2848 cat conftest.err >&5
2849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2850 (exit $ac_status); } &&
2851 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2852 { (case "(($ac_try" in
2853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2854 *) ac_try_echo=$ac_try;;
2856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2857 (eval "$ac_try") 2>&5
2859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2860 (exit $ac_status); }; } &&
2861 { ac_try='test -s conftest.$ac_objext'
2862 { (case "(($ac_try" in
2863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2864 *) ac_try_echo=$ac_try;;
2866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2867 (eval "$ac_try") 2>&5
2869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2870 (exit $ac_status); }; }; then
2873 echo "$as_me: failed program was:" >&5
2874 sed 's/^/| /' conftest.$ac_ext >&5
2876 ac_c_werror_flag=$ac_save_c_werror_flag
2878 cat >conftest.$ac_ext <<_ACEOF
2881 cat confdefs.h >>conftest.$ac_ext
2882 cat >>conftest.$ac_ext <<_ACEOF
2883 /* end confdefs.h. */
2893 rm -f conftest.$ac_objext
2894 if { (ac_try="$ac_compile"
2896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2897 *) ac_try_echo=$ac_try;;
2899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2900 (eval "$ac_compile") 2>conftest.er1
2902 grep -v '^ *+' conftest.er1 >conftest.err
2904 cat conftest.err >&5
2905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2906 (exit $ac_status); } &&
2907 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2908 { (case "(($ac_try" in
2909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2910 *) ac_try_echo=$ac_try;;
2912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2913 (eval "$ac_try") 2>&5
2915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2916 (exit $ac_status); }; } &&
2917 { ac_try='test -s conftest.$ac_objext'
2918 { (case "(($ac_try" in
2919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2920 *) ac_try_echo=$ac_try;;
2922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2923 (eval "$ac_try") 2>&5
2925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2926 (exit $ac_status); }; }; then
2929 echo "$as_me: failed program was:" >&5
2930 sed 's/^/| /' conftest.$ac_ext >&5
2935 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2938 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2941 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2942 ac_c_werror_flag=$ac_save_c_werror_flag
2944 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2945 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2946 if test "$ac_test_CFLAGS" = set; then
2947 CFLAGS=$ac_save_CFLAGS
2948 elif test $ac_cv_prog_cc_g = yes; then
2949 if test "$GCC" = yes; then
2955 if test "$GCC" = yes; then
2961 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2962 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2963 if test "${ac_cv_prog_cc_c89+set}" = set; then
2964 echo $ECHO_N "(cached) $ECHO_C" >&6
2966 ac_cv_prog_cc_c89=no
2968 cat >conftest.$ac_ext <<_ACEOF
2971 cat confdefs.h >>conftest.$ac_ext
2972 cat >>conftest.$ac_ext <<_ACEOF
2973 /* end confdefs.h. */
2976 #include <sys/types.h>
2977 #include <sys/stat.h>
2978 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2979 struct buf { int x; };
2980 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2981 static char *e (p, i)
2987 static char *f (char * (*g) (char **, int), char **p, ...)
2992 s = g (p, va_arg (v,int));
2997 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2998 function prototypes and stuff, but not '\xHH' hex character constants.
2999 These don't provoke an error unfortunately, instead are silently treated
3000 as 'x'. The following induces an error, until -std is added to get
3001 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3002 array size at least. It's necessary to write '\x00'==0 to get something
3003 that's true only with -std. */
3004 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3006 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3007 inside strings and character constants. */
3009 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3011 int test (int i, double x);
3012 struct s1 {int (*f) (int a);};
3013 struct s2 {int (*f) (double a);};
3014 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3020 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3025 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3026 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3028 CC="$ac_save_CC $ac_arg"
3029 rm -f conftest.$ac_objext
3030 if { (ac_try="$ac_compile"
3032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3033 *) ac_try_echo=$ac_try;;
3035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3036 (eval "$ac_compile") 2>conftest.er1
3038 grep -v '^ *+' conftest.er1 >conftest.err
3040 cat conftest.err >&5
3041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3042 (exit $ac_status); } &&
3043 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3044 { (case "(($ac_try" in
3045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3046 *) ac_try_echo=$ac_try;;
3048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3049 (eval "$ac_try") 2>&5
3051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3052 (exit $ac_status); }; } &&
3053 { ac_try='test -s conftest.$ac_objext'
3054 { (case "(($ac_try" in
3055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3056 *) ac_try_echo=$ac_try;;
3058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3059 (eval "$ac_try") 2>&5
3061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3062 (exit $ac_status); }; }; then
3063 ac_cv_prog_cc_c89=$ac_arg
3065 echo "$as_me: failed program was:" >&5
3066 sed 's/^/| /' conftest.$ac_ext >&5
3071 rm -f core conftest.err conftest.$ac_objext
3072 test "x$ac_cv_prog_cc_c89" != "xno" && break
3074 rm -f conftest.$ac_ext
3079 case "x$ac_cv_prog_cc_c89" in
3081 { echo "$as_me:$LINENO: result: none needed" >&5
3082 echo "${ECHO_T}none needed" >&6; } ;;
3084 { echo "$as_me:$LINENO: result: unsupported" >&5
3085 echo "${ECHO_T}unsupported" >&6; } ;;
3087 CC="$CC $ac_cv_prog_cc_c89"
3088 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3089 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3094 ac_cpp='$CPP $CPPFLAGS'
3095 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3096 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3097 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3100 ac_cpp='$CXXCPP $CPPFLAGS'
3101 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3102 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3103 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3104 if test -z "$CXX"; then
3105 if test -n "$CCC"; then
3108 if test -n "$ac_tool_prefix"; then
3109 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3111 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3112 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3113 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3114 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3115 if test "${ac_cv_prog_CXX+set}" = set; then
3116 echo $ECHO_N "(cached) $ECHO_C" >&6
3118 if test -n "$CXX"; then
3119 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3125 test -z "$as_dir" && as_dir=.
3126 for ac_exec_ext in '' $ac_executable_extensions; do
3127 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
3128 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3129 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3139 if test -n "$CXX"; then
3140 { echo "$as_me:$LINENO: result: $CXX" >&5
3141 echo "${ECHO_T}$CXX" >&6; }
3143 { echo "$as_me:$LINENO: result: no" >&5
3144 echo "${ECHO_T}no" >&6; }
3148 test -n "$CXX" && break
3151 if test -z "$CXX"; then
3153 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3155 # Extract the first word of "$ac_prog", so it can be a program name with args.
3156 set dummy $ac_prog; ac_word=$2
3157 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3158 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3159 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3160 echo $ECHO_N "(cached) $ECHO_C" >&6
3162 if test -n "$ac_ct_CXX"; then
3163 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3169 test -z "$as_dir" && as_dir=.
3170 for ac_exec_ext in '' $ac_executable_extensions; do
3171 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
3172 ac_cv_prog_ac_ct_CXX="$ac_prog"
3173 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3182 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3183 if test -n "$ac_ct_CXX"; then
3184 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3185 echo "${ECHO_T}$ac_ct_CXX" >&6; }
3187 { echo "$as_me:$LINENO: result: no" >&5
3188 echo "${ECHO_T}no" >&6; }
3192 test -n "$ac_ct_CXX" && break
3195 if test "x$ac_ct_CXX" = x; then
3198 case $cross_compiling:$ac_tool_warned in
3200 { echo "$as_me:$LINENO: 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." >&5
3203 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3204 whose name does not start with the host triplet. If you think this
3205 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3206 ac_tool_warned=yes ;;
3214 # Provide some information about the compiler.
3215 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
3216 ac_compiler=`set X $ac_compile; echo $2`
3217 { (ac_try="$ac_compiler --version >&5"
3219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3220 *) ac_try_echo=$ac_try;;
3222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3223 (eval "$ac_compiler --version >&5") 2>&5
3225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3226 (exit $ac_status); }
3227 { (ac_try="$ac_compiler -v >&5"
3229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3230 *) ac_try_echo=$ac_try;;
3232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3233 (eval "$ac_compiler -v >&5") 2>&5
3235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3236 (exit $ac_status); }
3237 { (ac_try="$ac_compiler -V >&5"
3239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3240 *) ac_try_echo=$ac_try;;
3242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3243 (eval "$ac_compiler -V >&5") 2>&5
3245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3246 (exit $ac_status); }
3248 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3249 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
3250 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3251 echo $ECHO_N "(cached) $ECHO_C" >&6
3253 cat >conftest.$ac_ext <<_ACEOF
3256 cat confdefs.h >>conftest.$ac_ext
3257 cat >>conftest.$ac_ext <<_ACEOF
3258 /* end confdefs.h. */
3271 rm -f conftest.$ac_objext
3272 if { (ac_try="$ac_compile"
3274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3275 *) ac_try_echo=$ac_try;;
3277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3278 (eval "$ac_compile") 2>conftest.er1
3280 grep -v '^ *+' conftest.er1 >conftest.err
3282 cat conftest.err >&5
3283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3284 (exit $ac_status); } &&
3285 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3286 { (case "(($ac_try" in
3287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3288 *) ac_try_echo=$ac_try;;
3290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3291 (eval "$ac_try") 2>&5
3293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3294 (exit $ac_status); }; } &&
3295 { ac_try='test -s conftest.$ac_objext'
3296 { (case "(($ac_try" in
3297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3298 *) ac_try_echo=$ac_try;;
3300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3301 (eval "$ac_try") 2>&5
3303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3304 (exit $ac_status); }; }; then
3307 echo "$as_me: failed program was:" >&5
3308 sed 's/^/| /' conftest.$ac_ext >&5
3313 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3314 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3317 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3318 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3319 GXX=`test $ac_compiler_gnu = yes && echo yes`
3320 ac_test_CXXFLAGS=${CXXFLAGS+set}
3321 ac_save_CXXFLAGS=$CXXFLAGS
3322 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3323 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3324 if test "${ac_cv_prog_cxx_g+set}" = set; then
3325 echo $ECHO_N "(cached) $ECHO_C" >&6
3327 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3328 ac_cxx_werror_flag=yes
3331 cat >conftest.$ac_ext <<_ACEOF
3334 cat confdefs.h >>conftest.$ac_ext
3335 cat >>conftest.$ac_ext <<_ACEOF
3336 /* end confdefs.h. */
3346 rm -f conftest.$ac_objext
3347 if { (ac_try="$ac_compile"
3349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3350 *) ac_try_echo=$ac_try;;
3352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3353 (eval "$ac_compile") 2>conftest.er1
3355 grep -v '^ *+' conftest.er1 >conftest.err
3357 cat conftest.err >&5
3358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3359 (exit $ac_status); } &&
3360 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3361 { (case "(($ac_try" in
3362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3363 *) ac_try_echo=$ac_try;;
3365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3366 (eval "$ac_try") 2>&5
3368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3369 (exit $ac_status); }; } &&
3370 { ac_try='test -s conftest.$ac_objext'
3371 { (case "(($ac_try" in
3372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3373 *) ac_try_echo=$ac_try;;
3375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3376 (eval "$ac_try") 2>&5
3378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3379 (exit $ac_status); }; }; then
3380 ac_cv_prog_cxx_g=yes
3382 echo "$as_me: failed program was:" >&5
3383 sed 's/^/| /' conftest.$ac_ext >&5
3386 cat >conftest.$ac_ext <<_ACEOF
3389 cat confdefs.h >>conftest.$ac_ext
3390 cat >>conftest.$ac_ext <<_ACEOF
3391 /* end confdefs.h. */
3401 rm -f conftest.$ac_objext
3402 if { (ac_try="$ac_compile"
3404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3405 *) ac_try_echo=$ac_try;;
3407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3408 (eval "$ac_compile") 2>conftest.er1
3410 grep -v '^ *+' conftest.er1 >conftest.err
3412 cat conftest.err >&5
3413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3414 (exit $ac_status); } &&
3415 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3416 { (case "(($ac_try" in
3417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3418 *) ac_try_echo=$ac_try;;
3420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3421 (eval "$ac_try") 2>&5
3423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3424 (exit $ac_status); }; } &&
3425 { ac_try='test -s conftest.$ac_objext'
3426 { (case "(($ac_try" in
3427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3428 *) ac_try_echo=$ac_try;;
3430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3431 (eval "$ac_try") 2>&5
3433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3434 (exit $ac_status); }; }; then
3437 echo "$as_me: failed program was:" >&5
3438 sed 's/^/| /' conftest.$ac_ext >&5
3440 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3442 cat >conftest.$ac_ext <<_ACEOF
3445 cat confdefs.h >>conftest.$ac_ext
3446 cat >>conftest.$ac_ext <<_ACEOF
3447 /* end confdefs.h. */
3457 rm -f conftest.$ac_objext
3458 if { (ac_try="$ac_compile"
3460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3461 *) ac_try_echo=$ac_try;;
3463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3464 (eval "$ac_compile") 2>conftest.er1
3466 grep -v '^ *+' conftest.er1 >conftest.err
3468 cat conftest.err >&5
3469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3470 (exit $ac_status); } &&
3471 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3472 { (case "(($ac_try" in
3473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3474 *) ac_try_echo=$ac_try;;
3476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3477 (eval "$ac_try") 2>&5
3479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3480 (exit $ac_status); }; } &&
3481 { ac_try='test -s conftest.$ac_objext'
3482 { (case "(($ac_try" in
3483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3484 *) ac_try_echo=$ac_try;;
3486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3487 (eval "$ac_try") 2>&5
3489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3490 (exit $ac_status); }; }; then
3491 ac_cv_prog_cxx_g=yes
3493 echo "$as_me: failed program was:" >&5
3494 sed 's/^/| /' conftest.$ac_ext >&5
3499 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3502 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3505 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3506 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3508 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3509 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3510 if test "$ac_test_CXXFLAGS" = set; then
3511 CXXFLAGS=$ac_save_CXXFLAGS
3512 elif test $ac_cv_prog_cxx_g = yes; then
3513 if test "$GXX" = yes; then
3519 if test "$GXX" = yes; then
3526 ac_cpp='$CPP $CPPFLAGS'
3527 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3528 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3529 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3531 if test "x$CC" != xcc; then
3532 { echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
3533 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6; }
3535 { echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
3536 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6; }
3538 set dummy $CC; ac_cc=`echo $2 |
3539 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3540 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
3541 echo $ECHO_N "(cached) $ECHO_C" >&6
3543 cat >conftest.$ac_ext <<_ACEOF
3546 cat confdefs.h >>conftest.$ac_ext
3547 cat >>conftest.$ac_ext <<_ACEOF
3548 /* end confdefs.h. */
3558 # Make sure it works both with $CC and with simple cc.
3559 # We do the test twice because some compilers refuse to overwrite an
3560 # existing .o file with -o, though they will create one.
3561 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3563 if { (case "(($ac_try" in
3564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3565 *) ac_try_echo=$ac_try;;
3567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3568 (eval "$ac_try") 2>&5
3570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3571 (exit $ac_status); } &&
3572 test -f conftest2.$ac_objext && { (case "(($ac_try" in
3573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3574 *) ac_try_echo=$ac_try;;
3576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3577 (eval "$ac_try") 2>&5
3579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3580 (exit $ac_status); };
3582 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
3583 if test "x$CC" != xcc; then
3584 # Test first that cc exists at all.
3585 if { ac_try='cc -c conftest.$ac_ext >&5'
3586 { (case "(($ac_try" in
3587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3588 *) ac_try_echo=$ac_try;;
3590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3591 (eval "$ac_try") 2>&5
3593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3594 (exit $ac_status); }; }; then
3595 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3597 if { (case "(($ac_try" in
3598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3599 *) ac_try_echo=$ac_try;;
3601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3602 (eval "$ac_try") 2>&5
3604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3605 (exit $ac_status); } &&
3606 test -f conftest2.$ac_objext && { (case "(($ac_try" in
3607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3608 *) ac_try_echo=$ac_try;;
3610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3611 (eval "$ac_try") 2>&5
3613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3614 (exit $ac_status); };
3619 # cc exists but doesn't like -o.
3620 eval ac_cv_prog_cc_${ac_cc}_c_o=no
3625 eval ac_cv_prog_cc_${ac_cc}_c_o=no
3627 rm -f core conftest*
3630 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
3631 { echo "$as_me:$LINENO: result: yes" >&5
3632 echo "${ECHO_T}yes" >&6; }
3634 { echo "$as_me:$LINENO: result: no" >&5
3635 echo "${ECHO_T}no" >&6; }
3637 cat >>confdefs.h <<\_ACEOF
3638 #define NO_MINUS_C_MINUS_O 1
3644 ac_cpp='$CPP $CPPFLAGS'
3645 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3646 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3647 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3648 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3649 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3650 # On Suns, sometimes $CPP names a directory.
3651 if test -n "$CPP" && test -d "$CPP"; then
3654 if test -z "$CPP"; then
3655 if test "${ac_cv_prog_CPP+set}" = set; then
3656 echo $ECHO_N "(cached) $ECHO_C" >&6
3658 # Double quotes because CPP needs to be expanded
3659 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3662 for ac_c_preproc_warn_flag in '' yes
3664 # Use a header file that comes with gcc, so configuring glibc
3665 # with a fresh cross-compiler works.
3666 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3667 # <limits.h> exists even on freestanding compilers.
3668 # On the NeXT, cc -E runs the code through the compiler's parser,
3669 # not just through cpp. "Syntax error" is here to catch this case.
3670 cat >conftest.$ac_ext <<_ACEOF
3673 cat confdefs.h >>conftest.$ac_ext
3674 cat >>conftest.$ac_ext <<_ACEOF
3675 /* end confdefs.h. */
3677 # include <limits.h>
3679 # include <assert.h>
3683 if { (ac_try="$ac_cpp conftest.$ac_ext"
3685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3686 *) ac_try_echo=$ac_try;;
3688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3689 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3691 grep -v '^ *+' conftest.er1 >conftest.err
3693 cat conftest.err >&5
3694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3695 (exit $ac_status); } >/dev/null; then
3696 if test -s conftest.err; then
3697 ac_cpp_err=$ac_c_preproc_warn_flag
3698 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3705 if test -z "$ac_cpp_err"; then
3708 echo "$as_me: failed program was:" >&5
3709 sed 's/^/| /' conftest.$ac_ext >&5
3711 # Broken: fails on valid input.
3715 rm -f conftest.err conftest.$ac_ext
3717 # OK, works on sane cases. Now check whether nonexistent headers
3718 # can be detected and how.
3719 cat >conftest.$ac_ext <<_ACEOF
3722 cat confdefs.h >>conftest.$ac_ext
3723 cat >>conftest.$ac_ext <<_ACEOF
3724 /* end confdefs.h. */
3725 #include <ac_nonexistent.h>
3727 if { (ac_try="$ac_cpp conftest.$ac_ext"
3729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3730 *) ac_try_echo=$ac_try;;
3732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3733 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3735 grep -v '^ *+' conftest.er1 >conftest.err
3737 cat conftest.err >&5
3738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3739 (exit $ac_status); } >/dev/null; then
3740 if test -s conftest.err; then
3741 ac_cpp_err=$ac_c_preproc_warn_flag
3742 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3749 if test -z "$ac_cpp_err"; then
3750 # Broken: success on invalid input.
3753 echo "$as_me: failed program was:" >&5
3754 sed 's/^/| /' conftest.$ac_ext >&5
3756 # Passes both tests.
3761 rm -f conftest.err conftest.$ac_ext
3764 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3765 rm -f conftest.err conftest.$ac_ext
3766 if $ac_preproc_ok; then
3778 { echo "$as_me:$LINENO: result: $CPP" >&5
3779 echo "${ECHO_T}$CPP" >&6; }
3781 for ac_c_preproc_warn_flag in '' yes
3783 # Use a header file that comes with gcc, so configuring glibc
3784 # with a fresh cross-compiler works.
3785 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3786 # <limits.h> exists even on freestanding compilers.
3787 # On the NeXT, cc -E runs the code through the compiler's parser,
3788 # not just through cpp. "Syntax error" is here to catch this case.
3789 cat >conftest.$ac_ext <<_ACEOF
3792 cat confdefs.h >>conftest.$ac_ext
3793 cat >>conftest.$ac_ext <<_ACEOF
3794 /* end confdefs.h. */
3796 # include <limits.h>
3798 # include <assert.h>
3802 if { (ac_try="$ac_cpp conftest.$ac_ext"
3804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3805 *) ac_try_echo=$ac_try;;
3807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3808 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3810 grep -v '^ *+' conftest.er1 >conftest.err
3812 cat conftest.err >&5
3813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3814 (exit $ac_status); } >/dev/null; then
3815 if test -s conftest.err; then
3816 ac_cpp_err=$ac_c_preproc_warn_flag
3817 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3824 if test -z "$ac_cpp_err"; then
3827 echo "$as_me: failed program was:" >&5
3828 sed 's/^/| /' conftest.$ac_ext >&5
3830 # Broken: fails on valid input.
3834 rm -f conftest.err conftest.$ac_ext
3836 # OK, works on sane cases. Now check whether nonexistent headers
3837 # can be detected and how.
3838 cat >conftest.$ac_ext <<_ACEOF
3841 cat confdefs.h >>conftest.$ac_ext
3842 cat >>conftest.$ac_ext <<_ACEOF
3843 /* end confdefs.h. */
3844 #include <ac_nonexistent.h>
3846 if { (ac_try="$ac_cpp conftest.$ac_ext"
3848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3849 *) ac_try_echo=$ac_try;;
3851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3852 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3854 grep -v '^ *+' conftest.er1 >conftest.err
3856 cat conftest.err >&5
3857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3858 (exit $ac_status); } >/dev/null; then
3859 if test -s conftest.err; then
3860 ac_cpp_err=$ac_c_preproc_warn_flag
3861 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3868 if test -z "$ac_cpp_err"; then
3869 # Broken: success on invalid input.
3872 echo "$as_me: failed program was:" >&5
3873 sed 's/^/| /' conftest.$ac_ext >&5
3875 # Passes both tests.
3880 rm -f conftest.err conftest.$ac_ext
3883 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3884 rm -f conftest.err conftest.$ac_ext
3885 if $ac_preproc_ok; then
3888 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3889 See \`config.log' for more details." >&5
3890 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3891 See \`config.log' for more details." >&2;}
3892 { (exit 1); exit 1; }; }
3896 ac_cpp='$CPP $CPPFLAGS'
3897 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3898 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3899 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3902 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3903 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3904 if test "${ac_cv_path_GREP+set}" = set; then
3905 echo $ECHO_N "(cached) $ECHO_C" >&6
3907 # Extract the first word of "grep ggrep" to use in msg output
3908 if test -z "$GREP"; then
3909 set dummy grep ggrep; ac_prog_name=$2
3910 if test "${ac_cv_path_GREP+set}" = set; then
3911 echo $ECHO_N "(cached) $ECHO_C" >&6
3913 ac_path_GREP_found=false
3914 # Loop through the user's path and test for each of PROGNAME-LIST
3915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3916 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3919 test -z "$as_dir" && as_dir=.
3920 for ac_prog in grep ggrep; do
3921 for ac_exec_ext in '' $ac_executable_extensions; do
3922 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3923 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3924 # Check for GNU ac_path_GREP and select it if it is found.
3925 # Check for GNU $ac_path_GREP
3926 case `"$ac_path_GREP" --version 2>&1` in
3928 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3931 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3934 cat "conftest.in" "conftest.in" >"conftest.tmp"
3935 mv "conftest.tmp" "conftest.in"
3936 cp "conftest.in" "conftest.nl"
3937 echo 'GREP' >> "conftest.nl"
3938 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3939 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3940 ac_count=`expr $ac_count + 1`
3941 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3942 # Best one so far, save it but keep looking for a better one
3943 ac_cv_path_GREP="$ac_path_GREP"
3944 ac_path_GREP_max=$ac_count
3946 # 10*(2^10) chars as input seems more than enough
3947 test $ac_count -gt 10 && break
3949 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3953 $ac_path_GREP_found && break 3
3963 GREP="$ac_cv_path_GREP"
3964 if test -z "$GREP"; then
3965 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3966 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3967 { (exit 1); exit 1; }; }
3971 ac_cv_path_GREP=$GREP
3976 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3977 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3978 GREP="$ac_cv_path_GREP"
3981 { echo "$as_me:$LINENO: checking for egrep" >&5
3982 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3983 if test "${ac_cv_path_EGREP+set}" = set; then
3984 echo $ECHO_N "(cached) $ECHO_C" >&6
3986 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3987 then ac_cv_path_EGREP="$GREP -E"
3989 # Extract the first word of "egrep" to use in msg output
3990 if test -z "$EGREP"; then
3991 set dummy egrep; ac_prog_name=$2
3992 if test "${ac_cv_path_EGREP+set}" = set; then
3993 echo $ECHO_N "(cached) $ECHO_C" >&6
3995 ac_path_EGREP_found=false
3996 # Loop through the user's path and test for each of PROGNAME-LIST
3997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3998 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4001 test -z "$as_dir" && as_dir=.
4002 for ac_prog in egrep; do
4003 for ac_exec_ext in '' $ac_executable_extensions; do
4004 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4005 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
4006 # Check for GNU ac_path_EGREP and select it if it is found.
4007 # Check for GNU $ac_path_EGREP
4008 case `"$ac_path_EGREP" --version 2>&1` in
4010 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4013 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4016 cat "conftest.in" "conftest.in" >"conftest.tmp"
4017 mv "conftest.tmp" "conftest.in"
4018 cp "conftest.in" "conftest.nl"
4019 echo 'EGREP' >> "conftest.nl"
4020 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4021 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4022 ac_count=`expr $ac_count + 1`
4023 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4024 # Best one so far, save it but keep looking for a better one
4025 ac_cv_path_EGREP="$ac_path_EGREP"
4026 ac_path_EGREP_max=$ac_count
4028 # 10*(2^10) chars as input seems more than enough
4029 test $ac_count -gt 10 && break
4031 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4035 $ac_path_EGREP_found && break 3
4045 EGREP="$ac_cv_path_EGREP"
4046 if test -z "$EGREP"; then
4047 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4048 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4049 { (exit 1); exit 1; }; }
4053 ac_cv_path_EGREP=$EGREP
4059 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4060 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4061 EGREP="$ac_cv_path_EGREP"
4064 if test $ac_cv_c_compiler_gnu = yes; then
4065 { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
4066 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
4067 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
4068 echo $ECHO_N "(cached) $ECHO_C" >&6
4070 ac_pattern="Autoconf.*'x'"
4071 cat >conftest.$ac_ext <<_ACEOF
4074 cat confdefs.h >>conftest.$ac_ext
4075 cat >>conftest.$ac_ext <<_ACEOF
4076 /* end confdefs.h. */
4080 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4081 $EGREP "$ac_pattern" >/dev/null 2>&1; then
4082 ac_cv_prog_gcc_traditional=yes
4084 ac_cv_prog_gcc_traditional=no
4089 if test $ac_cv_prog_gcc_traditional = no; then
4090 cat >conftest.$ac_ext <<_ACEOF
4093 cat confdefs.h >>conftest.$ac_ext
4094 cat >>conftest.$ac_ext <<_ACEOF
4095 /* end confdefs.h. */
4099 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4100 $EGREP "$ac_pattern" >/dev/null 2>&1; then
4101 ac_cv_prog_gcc_traditional=yes
4107 { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
4108 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
4109 if test $ac_cv_prog_gcc_traditional = yes; then
4110 CC="$CC -traditional"
4114 BASECC=`basename $CC`
4116 if test "x$BASECC" = xgcc; then
4117 cat >>confdefs.h <<\_ACEOF
4123 # Extract the first word of "$CXX", so it can be a program name with args.
4124 set dummy $CXX; ac_word=$2
4125 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4126 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4127 if test "${ac_cv_path_CXX+set}" = set; then
4128 echo $ECHO_N "(cached) $ECHO_C" >&6
4132 ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
4135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4139 test -z "$as_dir" && as_dir=.
4140 for ac_exec_ext in '' $ac_executable_extensions; do
4141 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4142 ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
4143 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4150 test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="$CXX"
4155 if test -n "$CXX"; then
4156 { echo "$as_me:$LINENO: result: $CXX" >&5
4157 echo "${ECHO_T}$CXX" >&6; }
4159 { echo "$as_me:$LINENO: result: no" >&5
4160 echo "${ECHO_T}no" >&6; }
4164 if test ! -e $CXX; then
4165 { { echo "$as_me:$LINENO: error: Unable to find C++ compiler" >&5
4166 echo "$as_me: error: Unable to find C++ compiler" >&2;}
4167 { (exit 1); exit 1; }; }
4170 # Find a good install program. We prefer a C program (faster),
4171 # so one script is as good as another. But avoid the broken or
4172 # incompatible versions:
4173 # SysV /etc/install, /usr/sbin/install
4174 # SunOS /usr/etc/install
4175 # IRIX /sbin/install
4177 # AmigaOS /C/install, which installs bootblocks on floppy discs
4178 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4179 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4180 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4181 # OS/2's system install, which has a completely different semantic
4182 # ./install, which can be erroneously created by make from ./install.sh.
4183 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4184 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4185 if test -z "$INSTALL"; then
4186 if test "${ac_cv_path_install+set}" = set; then
4187 echo $ECHO_N "(cached) $ECHO_C" >&6
4189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4193 test -z "$as_dir" && as_dir=.
4194 # Account for people who put trailing slashes in PATH elements.
4196 ./ | .// | /cC/* | \
4197 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4198 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4201 # OSF1 and SCO ODT 3.0 have their own names for install.
4202 # Don't use installbsd from OSF since it installs stuff as root
4204 for ac_prog in ginstall scoinst install; do
4205 for ac_exec_ext in '' $ac_executable_extensions; do
4206 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
4207 if test $ac_prog = install &&
4208 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4209 # AIX install. It has an incompatible calling convention.
4211 elif test $ac_prog = install &&
4212 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4213 # program-specific install script used by HP pwplus--don't use.
4216 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4229 if test "${ac_cv_path_install+set}" = set; then
4230 INSTALL=$ac_cv_path_install
4232 # As a last resort, use the slow shell script. Don't cache a
4233 # value for INSTALL within a source directory, because that will
4234 # break other packages using the cache if that directory is
4235 # removed, or if the value is a relative name.
4236 INSTALL=$ac_install_sh
4239 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4240 echo "${ECHO_T}$INSTALL" >&6; }
4242 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4243 # It thinks the first close brace ends the variable substitution.
4244 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4246 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4248 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4250 if test -n "$ac_tool_prefix"; then
4251 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4252 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4253 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4254 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4255 if test "${ac_cv_prog_RANLIB+set}" = set; then
4256 echo $ECHO_N "(cached) $ECHO_C" >&6
4258 if test -n "$RANLIB"; then
4259 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4265 test -z "$as_dir" && as_dir=.
4266 for ac_exec_ext in '' $ac_executable_extensions; do
4267 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4268 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4269 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4278 RANLIB=$ac_cv_prog_RANLIB
4279 if test -n "$RANLIB"; then
4280 { echo "$as_me:$LINENO: result: $RANLIB" >&5
4281 echo "${ECHO_T}$RANLIB" >&6; }
4283 { echo "$as_me:$LINENO: result: no" >&5
4284 echo "${ECHO_T}no" >&6; }
4289 if test -z "$ac_cv_prog_RANLIB"; then
4290 ac_ct_RANLIB=$RANLIB
4291 # Extract the first word of "ranlib", so it can be a program name with args.
4292 set dummy ranlib; ac_word=$2
4293 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4294 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4295 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4296 echo $ECHO_N "(cached) $ECHO_C" >&6
4298 if test -n "$ac_ct_RANLIB"; then
4299 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4305 test -z "$as_dir" && as_dir=.
4306 for ac_exec_ext in '' $ac_executable_extensions; do
4307 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4308 ac_cv_prog_ac_ct_RANLIB="ranlib"
4309 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4318 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4319 if test -n "$ac_ct_RANLIB"; then
4320 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4321 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
4323 { echo "$as_me:$LINENO: result: no" >&5
4324 echo "${ECHO_T}no" >&6; }
4327 if test "x$ac_ct_RANLIB" = x; then
4330 case $cross_compiling:$ac_tool_warned in
4332 { echo "$as_me:$LINENO: 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." >&5
4335 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4336 whose name does not start with the host triplet. If you think this
4337 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4338 ac_tool_warned=yes ;;
4340 RANLIB=$ac_ct_RANLIB
4343 RANLIB="$ac_cv_prog_RANLIB"
4346 # Extract the first word of "mv", so it can be a program name with args.
4347 set dummy mv; ac_word=$2
4348 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4349 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4350 if test "${ac_cv_path_MV+set}" = set; then
4351 echo $ECHO_N "(cached) $ECHO_C" >&6
4355 ac_cv_path_MV="$MV" # Let the user override the test with a path.
4358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4362 test -z "$as_dir" && as_dir=.
4363 for ac_exec_ext in '' $ac_executable_extensions; do
4364 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4365 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
4366 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4373 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
4378 if test -n "$MV"; then
4379 { echo "$as_me:$LINENO: result: $MV" >&5
4380 echo "${ECHO_T}$MV" >&6; }
4382 { echo "$as_me:$LINENO: result: no" >&5
4383 echo "${ECHO_T}no" >&6; }
4387 # Extract the first word of "rm", so it can be a program name with args.
4388 set dummy rm; ac_word=$2
4389 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4390 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4391 if test "${ac_cv_path_RM+set}" = set; then
4392 echo $ECHO_N "(cached) $ECHO_C" >&6
4396 ac_cv_path_RM="$RM" # Let the user override the test with a path.
4399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4403 test -z "$as_dir" && as_dir=.
4404 for ac_exec_ext in '' $ac_executable_extensions; do
4405 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4406 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
4407 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4414 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
4419 if test -n "$RM"; then
4420 { echo "$as_me:$LINENO: result: $RM" >&5
4421 echo "${ECHO_T}$RM" >&6; }
4423 { echo "$as_me:$LINENO: result: no" >&5
4424 echo "${ECHO_T}no" >&6; }
4428 # Extract the first word of "cp", so it can be a program name with args.
4429 set dummy cp; ac_word=$2
4430 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4431 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4432 if test "${ac_cv_path_CP+set}" = set; then
4433 echo $ECHO_N "(cached) $ECHO_C" >&6
4437 ac_cv_path_CP="$CP" # Let the user override the test with a path.
4440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4444 test -z "$as_dir" && as_dir=.
4445 for ac_exec_ext in '' $ac_executable_extensions; do
4446 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4447 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
4448 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4455 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
4460 if test -n "$CP"; then
4461 { echo "$as_me:$LINENO: result: $CP" >&5
4462 echo "${ECHO_T}$CP" >&6; }
4464 { echo "$as_me:$LINENO: result: no" >&5
4465 echo "${ECHO_T}no" >&6; }
4469 # Extract the first word of "sed", so it can be a program name with args.
4470 set dummy sed; ac_word=$2
4471 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4472 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4473 if test "${ac_cv_path_SED+set}" = set; then
4474 echo $ECHO_N "(cached) $ECHO_C" >&6
4478 ac_cv_path_SED="$SED" # Let the user override the test with a path.
4481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4485 test -z "$as_dir" && as_dir=.
4486 for ac_exec_ext in '' $ac_executable_extensions; do
4487 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4488 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
4489 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4496 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
4501 if test -n "$SED"; then
4502 { echo "$as_me:$LINENO: result: $SED" >&5
4503 echo "${ECHO_T}$SED" >&6; }
4505 { echo "$as_me:$LINENO: result: no" >&5
4506 echo "${ECHO_T}no" >&6; }
4510 # Extract the first word of "echo", so it can be a program name with args.
4511 set dummy echo; ac_word=$2
4512 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4513 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4514 if test "${ac_cv_path_ECHO+set}" = set; then
4515 echo $ECHO_N "(cached) $ECHO_C" >&6
4519 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
4522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4526 test -z "$as_dir" && as_dir=.
4527 for ac_exec_ext in '' $ac_executable_extensions; do
4528 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4529 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
4530 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4537 test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
4541 ECHO=$ac_cv_path_ECHO
4542 if test -n "$ECHO"; then
4543 { echo "$as_me:$LINENO: result: $ECHO" >&5
4544 echo "${ECHO_T}$ECHO" >&6; }
4546 { echo "$as_me:$LINENO: result: no" >&5
4547 echo "${ECHO_T}no" >&6; }
4551 # Extract the first word of "cmp", so it can be a program name with args.
4552 set dummy cmp; ac_word=$2
4553 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4554 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4555 if test "${ac_cv_path_CMP+set}" = set; then
4556 echo $ECHO_N "(cached) $ECHO_C" >&6
4560 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
4563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4567 test -z "$as_dir" && as_dir=.
4568 for ac_exec_ext in '' $ac_executable_extensions; do
4569 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4570 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
4571 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4578 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
4583 if test -n "$CMP"; then
4584 { echo "$as_me:$LINENO: result: $CMP" >&5
4585 echo "${ECHO_T}$CMP" >&6; }
4587 { echo "$as_me:$LINENO: result: no" >&5
4588 echo "${ECHO_T}no" >&6; }
4592 # Extract the first word of "tbl", so it can be a program name with args.
4593 set dummy tbl; ac_word=$2
4594 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4595 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4596 if test "${ac_cv_path_TBL+set}" = set; then
4597 echo $ECHO_N "(cached) $ECHO_C" >&6
4601 ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
4604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4608 test -z "$as_dir" && as_dir=.
4609 for ac_exec_ext in '' $ac_executable_extensions; do
4610 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4611 ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext"
4612 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4619 test -z "$ac_cv_path_TBL" && ac_cv_path_TBL="tbl"
4624 if test -n "$TBL"; then
4625 { echo "$as_me:$LINENO: result: $TBL" >&5
4626 echo "${ECHO_T}$TBL" >&6; }
4628 { echo "$as_me:$LINENO: result: no" >&5
4629 echo "${ECHO_T}no" >&6; }
4633 # Extract the first word of "ar", so it can be a program name with args.
4634 set dummy ar; ac_word=$2
4635 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4636 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4637 if test "${ac_cv_path_AR+set}" = set; then
4638 echo $ECHO_N "(cached) $ECHO_C" >&6
4642 ac_cv_path_AR="$AR" # Let the user override the test with a path.
4645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4649 test -z "$as_dir" && as_dir=.
4650 for ac_exec_ext in '' $ac_executable_extensions; do
4651 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4652 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
4653 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4660 test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
4665 if test -n "$AR"; then
4666 { echo "$as_me:$LINENO: result: $AR" >&5
4667 echo "${ECHO_T}$AR" >&6; }
4669 { echo "$as_me:$LINENO: result: no" >&5
4670 echo "${ECHO_T}no" >&6; }
4674 # Extract the first word of "openssl", so it can be a program name with args.
4675 set dummy openssl; ac_word=$2
4676 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4677 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4678 if test "${ac_cv_path_OPENSSL+set}" = set; then
4679 echo $ECHO_N "(cached) $ECHO_C" >&6
4683 ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a path.
4686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4690 test -z "$as_dir" && as_dir=.
4691 for ac_exec_ext in '' $ac_executable_extensions; do
4692 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4693 ac_cv_path_OPENSSL="$as_dir/$ac_word$ac_exec_ext"
4694 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4701 test -z "$ac_cv_path_OPENSSL" && ac_cv_path_OPENSSL="none"
4705 OPENSSL=$ac_cv_path_OPENSSL
4706 if test -n "$OPENSSL"; then
4707 { echo "$as_me:$LINENO: result: $OPENSSL" >&5
4708 echo "${ECHO_T}$OPENSSL" >&6; }
4710 { echo "$as_me:$LINENO: result: no" >&5
4711 echo "${ECHO_T}no" >&6; }
4715 # Extract the first word of "mtx", so it can be a program name with args.
4716 set dummy mtx; ac_word=$2
4717 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4718 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4719 if test "${ac_cv_path_MTX+set}" = set; then
4720 echo $ECHO_N "(cached) $ECHO_C" >&6
4724 ac_cv_path_MTX="$MTX" # Let the user override the test with a path.
4727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4731 test -z "$as_dir" && as_dir=.
4732 for ac_exec_ext in '' $ac_executable_extensions; do
4733 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4734 ac_cv_path_MTX="$as_dir/$ac_word$ac_exec_ext"
4735 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4742 test -z "$ac_cv_path_MTX" && ac_cv_path_MTX="mtx"
4747 if test -n "$MTX"; then
4748 { echo "$as_me:$LINENO: result: $MTX" >&5
4749 echo "${ECHO_T}$MTX" >&6; }
4751 { echo "$as_me:$LINENO: result: no" >&5
4752 echo "${ECHO_T}no" >&6; }
4756 # Extract the first word of "dd", so it can be a program name with args.
4757 set dummy dd; ac_word=$2
4758 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4759 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4760 if test "${ac_cv_path_DD+set}" = set; then
4761 echo $ECHO_N "(cached) $ECHO_C" >&6
4765 ac_cv_path_DD="$DD" # Let the user override the test with a path.
4768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4772 test -z "$as_dir" && as_dir=.
4773 for ac_exec_ext in '' $ac_executable_extensions; do
4774 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4775 ac_cv_path_DD="$as_dir/$ac_word$ac_exec_ext"
4776 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4783 test -z "$ac_cv_path_DD" && ac_cv_path_DD="dd"
4788 if test -n "$DD"; then
4789 { echo "$as_me:$LINENO: result: $DD" >&5
4790 echo "${ECHO_T}$DD" >&6; }
4792 { echo "$as_me:$LINENO: result: no" >&5
4793 echo "${ECHO_T}no" >&6; }
4797 # Extract the first word of "mkisofs", so it can be a program name with args.
4798 set dummy mkisofs; ac_word=$2
4799 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4800 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4801 if test "${ac_cv_path_MKISOFS+set}" = set; then
4802 echo $ECHO_N "(cached) $ECHO_C" >&6
4806 ac_cv_path_MKISOFS="$MKISOFS" # Let the user override the test with a path.
4809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4813 test -z "$as_dir" && as_dir=.
4814 for ac_exec_ext in '' $ac_executable_extensions; do
4815 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4816 ac_cv_path_MKISOFS="$as_dir/$ac_word$ac_exec_ext"
4817 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4824 test -z "$ac_cv_path_MKISOFS" && ac_cv_path_MKISOFS="mkisofs"
4828 MKISOFS=$ac_cv_path_MKISOFS
4829 if test -n "$MKISOFS"; then
4830 { echo "$as_me:$LINENO: result: $MKISOFS" >&5
4831 echo "${ECHO_T}$MKISOFS" >&6; }
4833 { echo "$as_me:$LINENO: result: no" >&5
4834 echo "${ECHO_T}no" >&6; }
4838 # Extract the first word of "python", so it can be a program name with args.
4839 set dummy python; ac_word=$2
4840 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4841 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4842 if test "${ac_cv_path_PYTHON+set}" = set; then
4843 echo $ECHO_N "(cached) $ECHO_C" >&6
4847 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
4850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4854 test -z "$as_dir" && as_dir=.
4855 for ac_exec_ext in '' $ac_executable_extensions; do
4856 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4857 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
4858 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4865 test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="python"
4869 PYTHON=$ac_cv_path_PYTHON
4870 if test -n "$PYTHON"; then
4871 { echo "$as_me:$LINENO: result: $PYTHON" >&5
4872 echo "${ECHO_T}$PYTHON" >&6; }
4874 { echo "$as_me:$LINENO: result: no" >&5
4875 echo "${ECHO_T}no" >&6; }
4879 # Extract the first word of "growisofs", so it can be a program name with args.
4880 set dummy growisofs; ac_word=$2
4881 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4882 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4883 if test "${ac_cv_path_GROWISOFS+set}" = set; then
4884 echo $ECHO_N "(cached) $ECHO_C" >&6
4888 ac_cv_path_GROWISOFS="$GROWISOFS" # Let the user override the test with a path.
4891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4895 test -z "$as_dir" && as_dir=.
4896 for ac_exec_ext in '' $ac_executable_extensions; do
4897 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4898 ac_cv_path_GROWISOFS="$as_dir/$ac_word$ac_exec_ext"
4899 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4906 test -z "$ac_cv_path_GROWISOFS" && ac_cv_path_GROWISOFS="growisofs"
4910 GROWISOFS=$ac_cv_path_GROWISOFS
4911 if test -n "$GROWISOFS"; then
4912 { echo "$as_me:$LINENO: result: $GROWISOFS" >&5
4913 echo "${ECHO_T}$GROWISOFS" >&6; }
4915 { echo "$as_me:$LINENO: result: no" >&5
4916 echo "${ECHO_T}no" >&6; }
4920 # Extract the first word of "dvd+rw-mediainfo", so it can be a program name with args.
4921 set dummy dvd+rw-mediainfo; ac_word=$2
4922 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4923 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4924 if test "${ac_cv_path_DVDRWMEDIAINFO+set}" = set; then
4925 echo $ECHO_N "(cached) $ECHO_C" >&6
4927 case $DVDRWMEDIAINFO in
4929 ac_cv_path_DVDRWMEDIAINFO="$DVDRWMEDIAINFO" # Let the user override the test with a path.
4932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4936 test -z "$as_dir" && as_dir=.
4937 for ac_exec_ext in '' $ac_executable_extensions; do
4938 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4939 ac_cv_path_DVDRWMEDIAINFO="$as_dir/$ac_word$ac_exec_ext"
4940 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4947 test -z "$ac_cv_path_DVDRWMEDIAINFO" && ac_cv_path_DVDRWMEDIAINFO="dvd+rw-mediainfo"
4951 DVDRWMEDIAINFO=$ac_cv_path_DVDRWMEDIAINFO
4952 if test -n "$DVDRWMEDIAINFO"; then
4953 { echo "$as_me:$LINENO: result: $DVDRWMEDIAINFO" >&5
4954 echo "${ECHO_T}$DVDRWMEDIAINFO" >&6; }
4956 { echo "$as_me:$LINENO: result: no" >&5
4957 echo "${ECHO_T}no" >&6; }
4961 # Extract the first word of "dvd+rw-format", so it can be a program name with args.
4962 set dummy dvd+rw-format; ac_word=$2
4963 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4964 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4965 if test "${ac_cv_path_DVDRWFORMAT+set}" = set; then
4966 echo $ECHO_N "(cached) $ECHO_C" >&6
4968 case $DVDRWFORMAT in
4970 ac_cv_path_DVDRWFORMAT="$DVDRWFORMAT" # Let the user override the test with a path.
4973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4977 test -z "$as_dir" && as_dir=.
4978 for ac_exec_ext in '' $ac_executable_extensions; do
4979 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4980 ac_cv_path_DVDRWFORMAT="$as_dir/$ac_word$ac_exec_ext"
4981 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4988 test -z "$ac_cv_path_DVDRWFORMAT" && ac_cv_path_DVDRWFORMAT="dvd+rw-format"
4992 DVDRWFORMAT=$ac_cv_path_DVDRWFORMAT
4993 if test -n "$DVDRWFORMAT"; then
4994 { echo "$as_me:$LINENO: result: $DVDRWFORMAT" >&5
4995 echo "${ECHO_T}$DVDRWFORMAT" >&6; }
4997 { echo "$as_me:$LINENO: result: no" >&5
4998 echo "${ECHO_T}no" >&6; }
5002 # Extract the first word of "pkg-config", so it can be a program name with args.
5003 set dummy pkg-config; ac_word=$2
5004 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5005 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5006 if test "${ac_cv_path_PKGCONFIG+set}" = set; then
5007 echo $ECHO_N "(cached) $ECHO_C" >&6
5011 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
5014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5018 test -z "$as_dir" && as_dir=.
5019 for ac_exec_ext in '' $ac_executable_extensions; do
5020 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5021 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
5022 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5029 test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="pkg-config"
5033 PKGCONFIG=$ac_cv_path_PKGCONFIG
5034 if test -n "$PKGCONFIG"; then
5035 { echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
5036 echo "${ECHO_T}$PKGCONFIG" >&6; }
5038 { echo "$as_me:$LINENO: result: no" >&5
5039 echo "${ECHO_T}no" >&6; }
5044 if test "x$WXCONFIG" = x; then
5047 # Extract the first word of "${WXCONFIG}", so it can be a program name with args.
5048 set dummy ${WXCONFIG}; ac_word=$2
5049 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5050 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5051 if test "${ac_cv_path_WXCONFIG+set}" = set; then
5052 echo $ECHO_N "(cached) $ECHO_C" >&6
5056 ac_cv_path_WXCONFIG="$WXCONFIG" # Let the user override the test with a path.
5059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5063 test -z "$as_dir" && as_dir=.
5064 for ac_exec_ext in '' $ac_executable_extensions; do
5065 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5066 ac_cv_path_WXCONFIG="$as_dir/$ac_word$ac_exec_ext"
5067 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5074 test -z "$ac_cv_path_WXCONFIG" && ac_cv_path_WXCONFIG="${WXCONFIG}"
5078 WXCONFIG=$ac_cv_path_WXCONFIG
5079 if test -n "$WXCONFIG"; then
5080 { echo "$as_me:$LINENO: result: $WXCONFIG" >&5
5081 echo "${ECHO_T}$WXCONFIG" >&6; }
5083 { echo "$as_me:$LINENO: result: no" >&5
5084 echo "${ECHO_T}no" >&6; }
5089 # Extract the first word of "cdrecord", so it can be a program name with args.
5090 set dummy cdrecord; ac_word=$2
5091 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5092 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5093 if test "${ac_cv_path_CDRECORD+set}" = set; then
5094 echo $ECHO_N "(cached) $ECHO_C" >&6
5098 ac_cv_path_CDRECORD="$CDRECORD" # Let the user override the test with a path.
5101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5105 test -z "$as_dir" && as_dir=.
5106 for ac_exec_ext in '' $ac_executable_extensions; do
5107 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5108 ac_cv_path_CDRECORD="$as_dir/$ac_word$ac_exec_ext"
5109 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5116 test -z "$ac_cv_path_CDRECORD" && ac_cv_path_CDRECORD="cdrecord"
5120 CDRECORD=$ac_cv_path_CDRECORD
5121 if test -n "$CDRECORD"; then
5122 { echo "$as_me:$LINENO: result: $CDRECORD" >&5
5123 echo "${ECHO_T}$CDRECORD" >&6; }
5125 { echo "$as_me:$LINENO: result: no" >&5
5126 echo "${ECHO_T}no" >&6; }
5130 # Extract the first word of "pidof", so it can be a program name with args.
5131 set dummy pidof; ac_word=$2
5132 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5133 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5134 if test "${ac_cv_path_PIDOF+set}" = set; then
5135 echo $ECHO_N "(cached) $ECHO_C" >&6
5139 ac_cv_path_PIDOF="$PIDOF" # Let the user override the test with a path.
5142 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5146 test -z "$as_dir" && as_dir=.
5147 for ac_exec_ext in '' $ac_executable_extensions; do
5148 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5149 ac_cv_path_PIDOF="$as_dir/$ac_word$ac_exec_ext"
5150 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5157 test -z "$ac_cv_path_PIDOF" && ac_cv_path_PIDOF="pidof"
5161 PIDOF=$ac_cv_path_PIDOF
5162 if test -n "$PIDOF"; then
5163 { echo "$as_me:$LINENO: result: $PIDOF" >&5
5164 echo "${ECHO_T}$PIDOF" >&6; }
5166 { echo "$as_me:$LINENO: result: no" >&5
5167 echo "${ECHO_T}no" >&6; }
5171 for ac_prog in gawk mawk nawk awk
5173 # Extract the first word of "$ac_prog", so it can be a program name with args.
5174 set dummy $ac_prog; ac_word=$2
5175 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5176 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5177 if test "${ac_cv_prog_AWK+set}" = set; then
5178 echo $ECHO_N "(cached) $ECHO_C" >&6
5180 if test -n "$AWK"; then
5181 ac_cv_prog_AWK="$AWK" # Let the user override the test.
5183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5187 test -z "$as_dir" && as_dir=.
5188 for ac_exec_ext in '' $ac_executable_extensions; do
5189 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5190 ac_cv_prog_AWK="$ac_prog"
5191 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5201 if test -n "$AWK"; then
5202 { echo "$as_me:$LINENO: result: $AWK" >&5
5203 echo "${ECHO_T}$AWK" >&6; }
5205 { echo "$as_me:$LINENO: result: no" >&5
5206 echo "${ECHO_T}no" >&6; }
5210 test -n "$AWK" && break
5213 # Some AWK programs fail, so test it and warn the user
5214 if echo xfoo | $AWK 'BEGIN { prog=ARGV1; ARGC=1 }
5215 { if ((prog == $2) || (("(" prog ")") == $2) ||
5216 (("" prog "") == $2) ||
5217 ((prog ":") == $2)) { print $1 ; exit 0 } }' xfoo>/dev/null; then :;
5219 { { echo "$as_me:$LINENO: error: !!!!!!!!! WARNING !!!!!!!!!!!!!!
5220 The regex engine of $AWK is too broken to be used you
5221 might want to install GNU AWK.
5222 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&5
5223 echo "$as_me: error: !!!!!!!!! WARNING !!!!!!!!!!!!!!
5224 The regex engine of $AWK is too broken to be used you
5225 might want to install GNU AWK.
5226 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&2;}
5227 { (exit 1); exit 1; }; }
5230 # Extract the first word of "$THE_AWK", so it can be a program name with args.
5231 set dummy $THE_AWK; ac_word=$2
5232 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5233 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5234 if test "${ac_cv_path_AWK+set}" = set; then
5235 echo $ECHO_N "(cached) $ECHO_C" >&6
5239 ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
5242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5246 test -z "$as_dir" && as_dir=.
5247 for ac_exec_ext in '' $ac_executable_extensions; do
5248 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5249 ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
5250 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5257 test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="$THE_AWK"
5262 if test -n "$AWK"; then
5263 { echo "$as_me:$LINENO: result: $AWK" >&5
5264 echo "${ECHO_T}$AWK" >&6; }
5266 { echo "$as_me:$LINENO: result: no" >&5
5267 echo "${ECHO_T}no" >&6; }
5272 test -n "$ARFLAG" || ARFLAGS="cr"
5283 # Make sure we can run config.sub.
5284 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5285 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
5286 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
5287 { (exit 1); exit 1; }; }
5289 { echo "$as_me:$LINENO: checking build system type" >&5
5290 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
5291 if test "${ac_cv_build+set}" = set; then
5292 echo $ECHO_N "(cached) $ECHO_C" >&6
5294 ac_build_alias=$build_alias
5295 test "x$ac_build_alias" = x &&
5296 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5297 test "x$ac_build_alias" = x &&
5298 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
5299 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
5300 { (exit 1); exit 1; }; }
5301 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5302 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
5303 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
5304 { (exit 1); exit 1; }; }
5307 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
5308 echo "${ECHO_T}$ac_cv_build" >&6; }
5309 case $ac_cv_build in
5311 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
5312 echo "$as_me: error: invalid value of canonical build" >&2;}
5313 { (exit 1); exit 1; }; };;
5316 ac_save_IFS=$IFS; IFS='-'
5322 # Remember, the first character of IFS is used to create $*,
5323 # except with old shells:
5326 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5330 { echo "$as_me:$LINENO: checking host system type" >&5
5331 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
5332 if test "${ac_cv_host+set}" = set; then
5333 echo $ECHO_N "(cached) $ECHO_C" >&6
5335 if test "x$host_alias" = x; then
5336 ac_cv_host=$ac_cv_build
5338 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5339 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
5340 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
5341 { (exit 1); exit 1; }; }
5345 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
5346 echo "${ECHO_T}$ac_cv_host" >&6; }
5349 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
5350 echo "$as_me: error: invalid value of canonical host" >&2;}
5351 { (exit 1); exit 1; }; };;
5354 ac_save_IFS=$IFS; IFS='-'
5360 # Remember, the first character of IFS is used to create $*,
5361 # except with old shells:
5364 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5368 *cygwin* ) CYGWIN=yes;;
5372 if test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
5378 HAVE_SUN_OS_FALSE='#'
5380 HAVE_SUN_OS_TRUE='#'
5383 cat >>confdefs.h <<\_ACEOF
5384 #define HAVE_SUN_OS 1
5392 HAVE_SUN_OS_FALSE='#'
5394 HAVE_SUN_OS_TRUE='#'
5399 if test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
5405 HAVE_OSF1_OS_FALSE='#'
5407 HAVE_OSF1_OS_TRUE='#'
5410 cat >>confdefs.h <<\_ACEOF
5411 #define HAVE_OSF1_OS 1
5419 HAVE_OSF1_OS_FALSE='#'
5421 HAVE_OSF1_OS_TRUE='#'
5426 if test $HAVE_UNAME=yes -a x`uname -s` = xAIX
5432 HAVE_AIX_OS_FALSE='#'
5434 HAVE_AIX_OS_TRUE='#'
5437 cat >>confdefs.h <<\_ACEOF
5438 #define HAVE_AIX_OS 1
5446 HAVE_AIX_OS_FALSE='#'
5448 HAVE_AIX_OS_TRUE='#'
5453 if test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
5459 HAVE_HPUX_OS_FALSE='#'
5461 HAVE_HPUX_OS_TRUE='#'
5464 cat >>confdefs.h <<\_ACEOF
5465 #define HAVE_HPUX_OS 1
5473 HAVE_HPUX_OS_FALSE='#'
5475 HAVE_HPUX_OS_TRUE='#'
5480 if test $HAVE_UNAME=yes -a x`uname -s` = xLinux
5486 HAVE_LINUX_OS_FALSE='#'
5488 HAVE_LINUX_OS_TRUE='#'
5489 HAVE_LINUX_OS_FALSE=
5491 cat >>confdefs.h <<\_ACEOF
5492 #define HAVE_LINUX_OS 1
5500 HAVE_LINUX_OS_FALSE='#'
5502 HAVE_LINUX_OS_TRUE='#'
5503 HAVE_LINUX_OS_FALSE=
5507 if test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
5512 HAVE_FREEBSD_OS_TRUE=
5513 HAVE_FREEBSD_OS_FALSE='#'
5515 HAVE_FREEBSD_OS_TRUE='#'
5516 HAVE_FREEBSD_OS_FALSE=
5518 cat >>confdefs.h <<\_ACEOF
5519 #define HAVE_FREEBSD_OS 1
5526 HAVE_FREEBSD_OS_TRUE=
5527 HAVE_FREEBSD_OS_FALSE='#'
5529 HAVE_FREEBSD_OS_TRUE='#'
5530 HAVE_FREEBSD_OS_FALSE=
5534 if test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
5539 HAVE_NETBSD_OS_TRUE=
5540 HAVE_NETBSD_OS_FALSE='#'
5542 HAVE_NETBSD_OS_TRUE='#'
5543 HAVE_NETBSD_OS_FALSE=
5545 cat >>confdefs.h <<\_ACEOF
5546 #define HAVE_NETBSD_OS 1
5553 HAVE_NETBSD_OS_TRUE=
5554 HAVE_NETBSD_OS_FALSE='#'
5556 HAVE_NETBSD_OS_TRUE='#'
5557 HAVE_NETBSD_OS_FALSE=
5561 if test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
5566 HAVE_OPENBSD_OS_TRUE=
5567 HAVE_OPENBSD_OS_FALSE='#'
5569 HAVE_OPENBSD_OS_TRUE='#'
5570 HAVE_OPENBSD_OS_FALSE=
5572 cat >>confdefs.h <<\_ACEOF
5573 #define HAVE_OPENBSD_OS 1
5580 HAVE_OPENBSD_OS_TRUE=
5581 HAVE_OPENBSD_OS_FALSE='#'
5583 HAVE_OPENBSD_OS_TRUE='#'
5584 HAVE_OPENBSD_OS_FALSE=
5588 if test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
5594 HAVE_BSDI_OS_FALSE='#'
5596 HAVE_BSDI_OS_TRUE='#'
5599 cat >>confdefs.h <<\_ACEOF
5600 #define HAVE_BSDI_OS 1
5608 HAVE_BSDI_OS_FALSE='#'
5610 HAVE_BSDI_OS_TRUE='#'
5615 if test $HAVE_UNAME=yes -a x`uname -s` = xSGI
5621 HAVE_SGI_OS_FALSE='#'
5623 HAVE_SGI_OS_TRUE='#'
5626 cat >>confdefs.h <<\_ACEOF
5627 #define HAVE_SGI_OS 1
5635 HAVE_SGI_OS_FALSE='#'
5637 HAVE_SGI_OS_TRUE='#'
5642 if test $HAVE_UNAME=yes -a x`uname -s` = xIRIX -o x`uname -s` = xIRIX64
5648 HAVE_IRIX_OS_FALSE='#'
5650 HAVE_IRIX_OS_TRUE='#'
5653 cat >>confdefs.h <<\_ACEOF
5654 #define HAVE_IRIX_OS 1
5662 HAVE_IRIX_OS_FALSE='#'
5664 HAVE_IRIX_OS_TRUE='#'
5669 if test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
5674 HAVE_DARWIN_OS_TRUE=
5675 HAVE_DARWIN_OS_FALSE='#'
5677 HAVE_DARWIN_OS_TRUE='#'
5678 HAVE_DARWIN_OS_FALSE=
5680 cat >>confdefs.h <<\_ACEOF
5681 #define HAVE_DARWIN_OS 1
5688 HAVE_DARWIN_OS_TRUE=
5689 HAVE_DARWIN_OS_FALSE='#'
5691 HAVE_DARWIN_OS_TRUE='#'
5692 HAVE_DARWIN_OS_FALSE=
5697 # -----------------------------------------------------------
5698 # ----------------------------------------------------------
5699 { echo "$as_me:$LINENO: checking for Operating System Distribution" >&5
5700 echo $ECHO_N "checking for Operating System Distribution... $ECHO_C" >&6; }
5701 if test "x$DISTNAME" != "x"
5703 echo "distname set to $DISTNAME"
5704 elif test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
5707 elif test $HAVE_UNAME=yes -a x`uname -s` = xAIX
5710 elif test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
5713 elif test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
5716 elif test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
5719 elif test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
5722 elif test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
5725 elif test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
5728 elif test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
5731 elif test -f /etc/SuSE-release
5734 elif test -d /etc/SuSEconfig
5737 elif test -f /etc/mandrake-release
5740 elif test -f /etc/whitebox-release
5743 elif test -f /etc/redhat-release
5746 elif test -f /etc/gentoo-release
5749 elif test -f /etc/debian_version
5752 elif test -f /etc/slackware-version
5755 elif test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
5758 elif test -f /etc/engarde-version
5761 elif test "$CYGWIN" = yes
5764 cat >>confdefs.h <<\_ACEOF
5765 #define HAVE_CYGWIN 1
5771 { echo "$as_me:$LINENO: result: done" >&5
5772 echo "${ECHO_T}done" >&6; }
5775 # --------------------------------------------------
5776 # Suppport for gettext (translations)
5777 # By default, $datadir is ${prefix}/share
5778 # --------------------------------------------------
5779 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5780 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
5781 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5782 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
5783 echo $ECHO_N "(cached) $ECHO_C" >&6
5785 cat >conftest.make <<\_ACEOF
5788 @echo '@@@%%%=$(MAKE)=@@@%%%'
5790 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5791 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5793 eval ac_cv_prog_make_${ac_make}_set=yes;;
5795 eval ac_cv_prog_make_${ac_make}_set=no;;
5799 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5800 { echo "$as_me:$LINENO: result: yes" >&5
5801 echo "${ECHO_T}yes" >&6; }
5804 { echo "$as_me:$LINENO: result: no" >&5
5805 echo "${ECHO_T}no" >&6; }
5806 SET_MAKE="MAKE=${MAKE-make}"
5812 if test -n "$ac_aux_dir"; then
5813 case "$ac_aux_dir" in
5814 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
5815 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
5818 if test -z "$MKINSTALLDIRS"; then
5819 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
5824 { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
5825 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
5826 # Check whether --enable-nls was given.
5827 if test "${enable_nls+set}" = set; then
5828 enableval=$enable_nls; USE_NLS=$enableval
5833 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
5834 echo "${ECHO_T}$USE_NLS" >&6; }
5841 # Prepare PATH_SEPARATOR.
5842 # The user is always right.
5843 if test "${PATH_SEPARATOR+set}" != set; then
5844 echo "#! /bin/sh" >conf$$.sh
5845 echo "exit 0" >>conf$$.sh
5847 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5855 # Find out how to test for executable files. Don't use a zero-byte file,
5856 # as systems may use methods other than mode bits to determine executability.
5857 cat >conf$$.file <<_ASEOF
5861 chmod +x conf$$.file
5862 if test -x conf$$.file >/dev/null 2>&1; then
5863 ac_executable_p="test -x"
5865 ac_executable_p="test -f"
5869 # Extract the first word of "msgfmt", so it can be a program name with args.
5870 set dummy msgfmt; ac_word=$2
5871 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5872 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5873 if test "${ac_cv_path_MSGFMT+set}" = set; then
5874 echo $ECHO_N "(cached) $ECHO_C" >&6
5878 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
5881 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5882 for ac_dir in $PATH; do
5884 test -z "$ac_dir" && ac_dir=.
5885 for ac_exec_ext in '' $ac_executable_extensions; do
5886 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5887 echo "$as_me: trying $ac_dir/$ac_word..." >&5
5888 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
5889 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5890 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
5897 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
5901 MSGFMT="$ac_cv_path_MSGFMT"
5902 if test "$MSGFMT" != ":"; then
5903 { echo "$as_me:$LINENO: result: $MSGFMT" >&5
5904 echo "${ECHO_T}$MSGFMT" >&6; }
5906 { echo "$as_me:$LINENO: result: no" >&5
5907 echo "${ECHO_T}no" >&6; }
5910 # Extract the first word of "gmsgfmt", so it can be a program name with args.
5911 set dummy gmsgfmt; ac_word=$2
5912 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5913 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5914 if test "${ac_cv_path_GMSGFMT+set}" = set; then
5915 echo $ECHO_N "(cached) $ECHO_C" >&6
5919 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
5922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5926 test -z "$as_dir" && as_dir=.
5927 for ac_exec_ext in '' $ac_executable_extensions; do
5928 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5929 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
5930 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5937 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
5941 GMSGFMT=$ac_cv_path_GMSGFMT
5942 if test -n "$GMSGFMT"; then
5943 { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
5944 echo "${ECHO_T}$GMSGFMT" >&6; }
5946 { echo "$as_me:$LINENO: result: no" >&5
5947 echo "${ECHO_T}no" >&6; }
5953 # Prepare PATH_SEPARATOR.
5954 # The user is always right.
5955 if test "${PATH_SEPARATOR+set}" != set; then
5956 echo "#! /bin/sh" >conf$$.sh
5957 echo "exit 0" >>conf$$.sh
5959 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5967 # Find out how to test for executable files. Don't use a zero-byte file,
5968 # as systems may use methods other than mode bits to determine executability.
5969 cat >conf$$.file <<_ASEOF
5973 chmod +x conf$$.file
5974 if test -x conf$$.file >/dev/null 2>&1; then
5975 ac_executable_p="test -x"
5977 ac_executable_p="test -f"
5981 # Extract the first word of "xgettext", so it can be a program name with args.
5982 set dummy xgettext; ac_word=$2
5983 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5984 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5985 if test "${ac_cv_path_XGETTEXT+set}" = set; then
5986 echo $ECHO_N "(cached) $ECHO_C" >&6
5990 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5993 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5994 for ac_dir in $PATH; do
5996 test -z "$ac_dir" && ac_dir=.
5997 for ac_exec_ext in '' $ac_executable_extensions; do
5998 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5999 echo "$as_me: trying $ac_dir/$ac_word..." >&5
6000 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
6001 (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
6002 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
6009 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
6013 XGETTEXT="$ac_cv_path_XGETTEXT"
6014 if test "$XGETTEXT" != ":"; then
6015 { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
6016 echo "${ECHO_T}$XGETTEXT" >&6; }
6018 { echo "$as_me:$LINENO: result: no" >&5
6019 echo "${ECHO_T}no" >&6; }
6025 # Prepare PATH_SEPARATOR.
6026 # The user is always right.
6027 if test "${PATH_SEPARATOR+set}" != set; then
6028 echo "#! /bin/sh" >conf$$.sh
6029 echo "exit 0" >>conf$$.sh
6031 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6039 # Find out how to test for executable files. Don't use a zero-byte file,
6040 # as systems may use methods other than mode bits to determine executability.
6041 cat >conf$$.file <<_ASEOF
6045 chmod +x conf$$.file
6046 if test -x conf$$.file >/dev/null 2>&1; then
6047 ac_executable_p="test -x"
6049 ac_executable_p="test -f"
6053 # Extract the first word of "msgmerge", so it can be a program name with args.
6054 set dummy msgmerge; ac_word=$2
6055 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6056 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6057 if test "${ac_cv_path_MSGMERGE+set}" = set; then
6058 echo $ECHO_N "(cached) $ECHO_C" >&6
6062 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
6065 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6066 for ac_dir in $PATH; do
6068 test -z "$ac_dir" && ac_dir=.
6069 for ac_exec_ext in '' $ac_executable_extensions; do
6070 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6071 echo "$as_me: trying $ac_dir/$ac_word..." >&5
6072 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
6073 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
6080 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
6084 MSGMERGE="$ac_cv_path_MSGMERGE"
6085 if test "$MSGMERGE" != ":"; then
6086 { echo "$as_me:$LINENO: result: $MSGMERGE" >&5
6087 echo "${ECHO_T}$MSGMERGE" >&6; }
6089 { echo "$as_me:$LINENO: result: no" >&5
6090 echo "${ECHO_T}no" >&6; }
6094 if test "$GMSGFMT" != ":"; then
6095 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
6096 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
6099 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
6100 { echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
6101 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
6106 if test "$XGETTEXT" != ":"; then
6107 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
6108 (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
6111 { echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
6112 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6; }
6118 ac_config_commands="$ac_config_commands default-1"
6122 if test "X$prefix" = "XNONE"; then
6123 acl_final_prefix="$ac_default_prefix"
6125 acl_final_prefix="$prefix"
6127 if test "X$exec_prefix" = "XNONE"; then
6128 acl_final_exec_prefix='${prefix}'
6130 acl_final_exec_prefix="$exec_prefix"
6132 acl_save_prefix="$prefix"
6133 prefix="$acl_final_prefix"
6134 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
6135 prefix="$acl_save_prefix"
6138 # Check whether --with-gnu-ld was given.
6139 if test "${with_gnu_ld+set}" = set; then
6140 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6145 # Prepare PATH_SEPARATOR.
6146 # The user is always right.
6147 if test "${PATH_SEPARATOR+set}" != set; then
6148 echo "#! /bin/sh" >conf$$.sh
6149 echo "exit 0" >>conf$$.sh
6151 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6159 if test "$GCC" = yes; then
6160 # Check if gcc -print-prog-name=ld gives a path.
6161 { echo "$as_me:$LINENO: checking for ld used by GCC" >&5
6162 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6; }
6165 # gcc leaves a trailing carriage return which upsets mingw
6166 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6168 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6171 # Accept absolute paths.
6172 [\\/]* | [A-Za-z]:[\\/]*)
6173 re_direlt='/[^/][^/]*/\.\./'
6174 # Canonicalize the path of ld
6175 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
6176 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
6177 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
6179 test -z "$LD" && LD="$ac_prog"
6182 # If it fails, then pretend we aren't using GCC.
6186 # If it is relative, then search for the first ld in PATH.
6190 elif test "$with_gnu_ld" = yes; then
6191 { echo "$as_me:$LINENO: checking for GNU ld" >&5
6192 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
6194 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
6195 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
6197 if test "${acl_cv_path_LD+set}" = set; then
6198 echo $ECHO_N "(cached) $ECHO_C" >&6
6200 if test -z "$LD"; then
6201 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
6202 for ac_dir in $PATH; do
6203 test -z "$ac_dir" && ac_dir=.
6204 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6205 acl_cv_path_LD="$ac_dir/$ac_prog"
6206 # Check to see if the program is GNU ld. I'd rather use --version,
6207 # but apparently some GNU ld's only accept -v.
6208 # Break only if it was the GNU/non-GNU ld that we prefer.
6209 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
6210 *GNU* | *'with BFD'*)
6211 test "$with_gnu_ld" != no && break ;;
6213 test "$with_gnu_ld" != yes && break ;;
6219 acl_cv_path_LD="$LD" # Let the user override the test with a path.
6223 LD="$acl_cv_path_LD"
6224 if test -n "$LD"; then
6225 { echo "$as_me:$LINENO: result: $LD" >&5
6226 echo "${ECHO_T}$LD" >&6; }
6228 { echo "$as_me:$LINENO: result: no" >&5
6229 echo "${ECHO_T}no" >&6; }
6231 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
6232 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
6233 { (exit 1); exit 1; }; }
6234 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
6235 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
6236 if test "${acl_cv_prog_gnu_ld+set}" = set; then
6237 echo $ECHO_N "(cached) $ECHO_C" >&6
6239 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
6240 case `$LD -v 2>&1 </dev/null` in
6241 *GNU* | *'with BFD'*)
6242 acl_cv_prog_gnu_ld=yes ;;
6244 acl_cv_prog_gnu_ld=no ;;
6247 { echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
6248 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6; }
6249 with_gnu_ld=$acl_cv_prog_gnu_ld
6254 { echo "$as_me:$LINENO: checking for shared library run path origin" >&5
6255 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6; }
6256 if test "${acl_cv_rpath+set}" = set; then
6257 echo $ECHO_N "(cached) $ECHO_C" >&6
6260 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
6261 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
6267 { echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
6268 echo "${ECHO_T}$acl_cv_rpath" >&6; }
6270 libext="$acl_cv_libext"
6271 shlibext="$acl_cv_shlibext"
6272 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
6273 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
6274 hardcode_direct="$acl_cv_hardcode_direct"
6275 hardcode_minus_L="$acl_cv_hardcode_minus_L"
6276 # Check whether --enable-rpath was given.
6277 if test "${enable_rpath+set}" = set; then
6278 enableval=$enable_rpath; :
6292 acl_save_prefix="$prefix"
6293 prefix="$acl_final_prefix"
6294 acl_save_exec_prefix="$exec_prefix"
6295 exec_prefix="$acl_final_exec_prefix"
6297 eval additional_includedir=\"$includedir\"
6298 eval additional_libdir=\"$libdir\"
6300 exec_prefix="$acl_save_exec_prefix"
6301 prefix="$acl_save_prefix"
6304 # Check whether --with-libiconv-prefix was given.
6305 if test "${with_libiconv_prefix+set}" = set; then
6306 withval=$with_libiconv_prefix;
6307 if test "X$withval" = "Xno"; then
6310 if test "X$withval" = "X"; then
6312 acl_save_prefix="$prefix"
6313 prefix="$acl_final_prefix"
6314 acl_save_exec_prefix="$exec_prefix"
6315 exec_prefix="$acl_final_exec_prefix"
6317 eval additional_includedir=\"$includedir\"
6318 eval additional_libdir=\"$libdir\"
6320 exec_prefix="$acl_save_exec_prefix"
6321 prefix="$acl_save_prefix"
6324 additional_includedir="$withval/include"
6325 additional_libdir="$withval/lib"
6336 names_already_handled=
6337 names_next_round='iconv '
6338 while test -n "$names_next_round"; do
6339 names_this_round="$names_next_round"
6341 for name in $names_this_round; do
6343 for n in $names_already_handled; do
6344 if test "$n" = "$name"; then
6349 if test -z "$already_handled"; then
6350 names_already_handled="$names_already_handled $name"
6351 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
6352 eval value=\"\$HAVE_LIB$uppername\"
6353 if test -n "$value"; then
6354 if test "$value" = yes; then
6355 eval value=\"\$LIB$uppername\"
6356 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
6357 eval value=\"\$LTLIB$uppername\"
6358 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
6367 if test $use_additional = yes; then
6368 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
6369 found_dir="$additional_libdir"
6370 found_so="$additional_libdir/lib$name.$shlibext"
6371 if test -f "$additional_libdir/lib$name.la"; then
6372 found_la="$additional_libdir/lib$name.la"
6375 if test -f "$additional_libdir/lib$name.$libext"; then
6376 found_dir="$additional_libdir"
6377 found_a="$additional_libdir/lib$name.$libext"
6378 if test -f "$additional_libdir/lib$name.la"; then
6379 found_la="$additional_libdir/lib$name.la"
6384 if test "X$found_dir" = "X"; then
6385 for x in $LDFLAGS $LTLIBICONV; do
6387 acl_save_prefix="$prefix"
6388 prefix="$acl_final_prefix"
6389 acl_save_exec_prefix="$exec_prefix"
6390 exec_prefix="$acl_final_exec_prefix"
6392 exec_prefix="$acl_save_exec_prefix"
6393 prefix="$acl_save_prefix"
6397 dir=`echo "X$x" | sed -e 's/^X-L//'`
6398 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
6400 found_so="$dir/lib$name.$shlibext"
6401 if test -f "$dir/lib$name.la"; then
6402 found_la="$dir/lib$name.la"
6405 if test -f "$dir/lib$name.$libext"; then
6407 found_a="$dir/lib$name.$libext"
6408 if test -f "$dir/lib$name.la"; then
6409 found_la="$dir/lib$name.la"
6415 if test "X$found_dir" != "X"; then
6420 if test "X$found_dir" != "X"; then
6421 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
6422 if test "X$found_so" != "X"; then
6423 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
6424 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6427 for x in $ltrpathdirs; do
6428 if test "X$x" = "X$found_dir"; then
6433 if test -z "$haveit"; then
6434 ltrpathdirs="$ltrpathdirs $found_dir"
6436 if test "$hardcode_direct" = yes; then
6437 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6439 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
6440 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6442 for x in $rpathdirs; do
6443 if test "X$x" = "X$found_dir"; then
6448 if test -z "$haveit"; then
6449 rpathdirs="$rpathdirs $found_dir"
6453 for x in $LDFLAGS $LIBICONV; do
6455 acl_save_prefix="$prefix"
6456 prefix="$acl_final_prefix"
6457 acl_save_exec_prefix="$exec_prefix"
6458 exec_prefix="$acl_final_exec_prefix"
6460 exec_prefix="$acl_save_exec_prefix"
6461 prefix="$acl_save_prefix"
6463 if test "X$x" = "X-L$found_dir"; then
6468 if test -z "$haveit"; then
6469 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
6471 if test "$hardcode_minus_L" != no; then
6472 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6474 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
6480 if test "X$found_a" != "X"; then
6481 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
6483 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
6486 additional_includedir=
6487 case "$found_dir" in
6489 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
6490 additional_includedir="$basedir/include"
6493 if test "X$additional_includedir" != "X"; then
6494 if test "X$additional_includedir" != "X/usr/include"; then
6496 if test "X$additional_includedir" = "X/usr/local/include"; then
6497 if test -n "$GCC"; then
6499 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
6503 if test -z "$haveit"; then
6504 for x in $CPPFLAGS $INCICONV; do
6506 acl_save_prefix="$prefix"
6507 prefix="$acl_final_prefix"
6508 acl_save_exec_prefix="$exec_prefix"
6509 exec_prefix="$acl_final_exec_prefix"
6511 exec_prefix="$acl_save_exec_prefix"
6512 prefix="$acl_save_prefix"
6514 if test "X$x" = "X-I$additional_includedir"; then
6519 if test -z "$haveit"; then
6520 if test -d "$additional_includedir"; then
6521 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
6527 if test -n "$found_la"; then
6528 save_libdir="$libdir"
6530 */* | *\\*) . "$found_la" ;;
6531 *) . "./$found_la" ;;
6533 libdir="$save_libdir"
6534 for dep in $dependency_libs; do
6537 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
6538 if test "X$additional_libdir" != "X/usr/lib"; then
6540 if test "X$additional_libdir" = "X/usr/local/lib"; then
6541 if test -n "$GCC"; then
6543 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
6547 if test -z "$haveit"; then
6549 for x in $LDFLAGS $LIBICONV; do
6551 acl_save_prefix="$prefix"
6552 prefix="$acl_final_prefix"
6553 acl_save_exec_prefix="$exec_prefix"
6554 exec_prefix="$acl_final_exec_prefix"
6556 exec_prefix="$acl_save_exec_prefix"
6557 prefix="$acl_save_prefix"
6559 if test "X$x" = "X-L$additional_libdir"; then
6564 if test -z "$haveit"; then
6565 if test -d "$additional_libdir"; then
6566 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
6570 for x in $LDFLAGS $LTLIBICONV; do
6572 acl_save_prefix="$prefix"
6573 prefix="$acl_final_prefix"
6574 acl_save_exec_prefix="$exec_prefix"
6575 exec_prefix="$acl_final_exec_prefix"
6577 exec_prefix="$acl_save_exec_prefix"
6578 prefix="$acl_save_prefix"
6580 if test "X$x" = "X-L$additional_libdir"; then
6585 if test -z "$haveit"; then
6586 if test -d "$additional_libdir"; then
6587 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
6594 dir=`echo "X$dep" | sed -e 's/^X-R//'`
6595 if test "$enable_rpath" != no; then
6597 for x in $rpathdirs; do
6598 if test "X$x" = "X$dir"; then
6603 if test -z "$haveit"; then
6604 rpathdirs="$rpathdirs $dir"
6607 for x in $ltrpathdirs; do
6608 if test "X$x" = "X$dir"; then
6613 if test -z "$haveit"; then
6614 ltrpathdirs="$ltrpathdirs $dir"
6619 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
6622 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
6625 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
6626 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
6632 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
6633 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
6639 if test "X$rpathdirs" != "X"; then
6640 if test -n "$hardcode_libdir_separator"; then
6642 for found_dir in $rpathdirs; do
6643 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
6645 acl_save_libdir="$libdir"
6647 eval flag=\"$hardcode_libdir_flag_spec\"
6648 libdir="$acl_save_libdir"
6649 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
6651 for found_dir in $rpathdirs; do
6652 acl_save_libdir="$libdir"
6654 eval flag=\"$hardcode_libdir_flag_spec\"
6655 libdir="$acl_save_libdir"
6656 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
6660 if test "X$ltrpathdirs" != "X"; then
6661 for found_dir in $ltrpathdirs; do
6662 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
6683 { echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
6684 echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6; }
6685 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
6686 echo $ECHO_N "(cached) $ECHO_C" >&6
6688 gt_save_CPPFLAGS="$CPPFLAGS"
6689 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
6690 gt_save_LIBS="$LIBS"
6691 LIBS="$LIBS -framework CoreFoundation"
6692 cat >conftest.$ac_ext <<_ACEOF
6695 cat confdefs.h >>conftest.$ac_ext
6696 cat >>conftest.$ac_ext <<_ACEOF
6697 /* end confdefs.h. */
6698 #include <CFPreferences.h>
6702 CFPreferencesCopyAppValue(NULL, NULL)
6707 rm -f conftest.$ac_objext conftest$ac_exeext
6708 if { (ac_try="$ac_link"
6710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6711 *) ac_try_echo=$ac_try;;
6713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6714 (eval "$ac_link") 2>conftest.er1
6716 grep -v '^ *+' conftest.er1 >conftest.err
6718 cat conftest.err >&5
6719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6720 (exit $ac_status); } &&
6721 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6722 { (case "(($ac_try" in
6723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6724 *) ac_try_echo=$ac_try;;
6726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6727 (eval "$ac_try") 2>&5
6729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6730 (exit $ac_status); }; } &&
6731 { ac_try='test -s conftest$ac_exeext'
6732 { (case "(($ac_try" in
6733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6734 *) ac_try_echo=$ac_try;;
6736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6737 (eval "$ac_try") 2>&5
6739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6740 (exit $ac_status); }; }; then
6741 gt_cv_func_CFPreferencesCopyAppValue=yes
6743 echo "$as_me: failed program was:" >&5
6744 sed 's/^/| /' conftest.$ac_ext >&5
6746 gt_cv_func_CFPreferencesCopyAppValue=no
6749 rm -f core conftest.err conftest.$ac_objext \
6750 conftest$ac_exeext conftest.$ac_ext
6751 CPPFLAGS="$gt_save_CPPFLAGS"
6752 LIBS="$gt_save_LIBS"
6754 { echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
6755 echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
6756 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
6758 cat >>confdefs.h <<\_ACEOF
6759 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
6763 { echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
6764 echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6; }
6765 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
6766 echo $ECHO_N "(cached) $ECHO_C" >&6
6768 gt_save_CPPFLAGS="$CPPFLAGS"
6769 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
6770 gt_save_LIBS="$LIBS"
6771 LIBS="$LIBS -framework CoreFoundation"
6772 cat >conftest.$ac_ext <<_ACEOF
6775 cat confdefs.h >>conftest.$ac_ext
6776 cat >>conftest.$ac_ext <<_ACEOF
6777 /* end confdefs.h. */
6778 #include <CFLocale.h>
6782 CFLocaleCopyCurrent();
6787 rm -f conftest.$ac_objext conftest$ac_exeext
6788 if { (ac_try="$ac_link"
6790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6791 *) ac_try_echo=$ac_try;;
6793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6794 (eval "$ac_link") 2>conftest.er1
6796 grep -v '^ *+' conftest.er1 >conftest.err
6798 cat conftest.err >&5
6799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6800 (exit $ac_status); } &&
6801 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6802 { (case "(($ac_try" in
6803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6804 *) ac_try_echo=$ac_try;;
6806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6807 (eval "$ac_try") 2>&5
6809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6810 (exit $ac_status); }; } &&
6811 { ac_try='test -s conftest$ac_exeext'
6812 { (case "(($ac_try" in
6813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6814 *) ac_try_echo=$ac_try;;
6816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6817 (eval "$ac_try") 2>&5
6819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6820 (exit $ac_status); }; }; then
6821 gt_cv_func_CFLocaleCopyCurrent=yes
6823 echo "$as_me: failed program was:" >&5
6824 sed 's/^/| /' conftest.$ac_ext >&5
6826 gt_cv_func_CFLocaleCopyCurrent=no
6829 rm -f core conftest.err conftest.$ac_objext \
6830 conftest$ac_exeext conftest.$ac_ext
6831 CPPFLAGS="$gt_save_CPPFLAGS"
6832 LIBS="$gt_save_LIBS"
6834 { echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
6835 echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6; }
6836 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
6838 cat >>confdefs.h <<\_ACEOF
6839 #define HAVE_CFLOCALECOPYCURRENT 1
6844 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
6845 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
6851 { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
6852 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
6853 # Check whether --enable-nls was given.
6854 if test "${enable_nls+set}" = set; then
6855 enableval=$enable_nls; USE_NLS=$enableval
6860 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
6861 echo "${ECHO_T}$USE_NLS" >&6; }
6870 if test "$USE_NLS" = "yes"; then
6871 gt_use_preinstalled_gnugettext=no
6878 { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
6879 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
6880 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
6881 echo $ECHO_N "(cached) $ECHO_C" >&6
6883 cat >conftest.$ac_ext <<_ACEOF
6886 cat confdefs.h >>conftest.$ac_ext
6887 cat >>conftest.$ac_ext <<_ACEOF
6888 /* end confdefs.h. */
6889 #include <libintl.h>
6890 extern int _nl_msg_cat_cntr;
6891 extern int *_nl_domain_bindings;
6895 bindtextdomain ("", "");
6896 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
6901 rm -f conftest.$ac_objext conftest$ac_exeext
6902 if { (ac_try="$ac_link"
6904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6905 *) ac_try_echo=$ac_try;;
6907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6908 (eval "$ac_link") 2>conftest.er1
6910 grep -v '^ *+' conftest.er1 >conftest.err
6912 cat conftest.err >&5
6913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6914 (exit $ac_status); } &&
6915 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6916 { (case "(($ac_try" in
6917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6918 *) ac_try_echo=$ac_try;;
6920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6921 (eval "$ac_try") 2>&5
6923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6924 (exit $ac_status); }; } &&
6925 { ac_try='test -s conftest$ac_exeext'
6926 { (case "(($ac_try" in
6927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6928 *) ac_try_echo=$ac_try;;
6930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6931 (eval "$ac_try") 2>&5
6933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6934 (exit $ac_status); }; }; then
6935 gt_cv_func_gnugettext1_libc=yes
6937 echo "$as_me: failed program was:" >&5
6938 sed 's/^/| /' conftest.$ac_ext >&5
6940 gt_cv_func_gnugettext1_libc=no
6943 rm -f core conftest.err conftest.$ac_objext \
6944 conftest$ac_exeext conftest.$ac_ext
6946 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
6947 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6; }
6949 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
6955 am_save_CPPFLAGS="$CPPFLAGS"
6957 for element in $INCICONV; do
6959 for x in $CPPFLAGS; do
6961 acl_save_prefix="$prefix"
6962 prefix="$acl_final_prefix"
6963 acl_save_exec_prefix="$exec_prefix"
6964 exec_prefix="$acl_final_exec_prefix"
6966 exec_prefix="$acl_save_exec_prefix"
6967 prefix="$acl_save_prefix"
6969 if test "X$x" = "X$element"; then
6974 if test -z "$haveit"; then
6975 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
6980 { echo "$as_me:$LINENO: checking for iconv" >&5
6981 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
6982 if test "${am_cv_func_iconv+set}" = set; then
6983 echo $ECHO_N "(cached) $ECHO_C" >&6
6986 am_cv_func_iconv="no, consider installing GNU libiconv"
6988 cat >conftest.$ac_ext <<_ACEOF
6991 cat confdefs.h >>conftest.$ac_ext
6992 cat >>conftest.$ac_ext <<_ACEOF
6993 /* end confdefs.h. */
6999 iconv_t cd = iconv_open("","");
7000 iconv(cd,NULL,NULL,NULL,NULL);
7006 rm -f conftest.$ac_objext conftest$ac_exeext
7007 if { (ac_try="$ac_link"
7009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7010 *) ac_try_echo=$ac_try;;
7012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7013 (eval "$ac_link") 2>conftest.er1
7015 grep -v '^ *+' conftest.er1 >conftest.err
7017 cat conftest.err >&5
7018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7019 (exit $ac_status); } &&
7020 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7021 { (case "(($ac_try" in
7022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7023 *) ac_try_echo=$ac_try;;
7025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7026 (eval "$ac_try") 2>&5
7028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7029 (exit $ac_status); }; } &&
7030 { ac_try='test -s conftest$ac_exeext'
7031 { (case "(($ac_try" in
7032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7033 *) ac_try_echo=$ac_try;;
7035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7036 (eval "$ac_try") 2>&5
7038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7039 (exit $ac_status); }; }; then
7040 am_cv_func_iconv=yes
7042 echo "$as_me: failed program was:" >&5
7043 sed 's/^/| /' conftest.$ac_ext >&5
7048 rm -f core conftest.err conftest.$ac_objext \
7049 conftest$ac_exeext conftest.$ac_ext
7050 if test "$am_cv_func_iconv" != yes; then
7051 am_save_LIBS="$LIBS"
7052 LIBS="$LIBS $LIBICONV"
7053 cat >conftest.$ac_ext <<_ACEOF
7056 cat confdefs.h >>conftest.$ac_ext
7057 cat >>conftest.$ac_ext <<_ACEOF
7058 /* end confdefs.h. */
7064 iconv_t cd = iconv_open("","");
7065 iconv(cd,NULL,NULL,NULL,NULL);
7071 rm -f conftest.$ac_objext conftest$ac_exeext
7072 if { (ac_try="$ac_link"
7074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7075 *) ac_try_echo=$ac_try;;
7077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7078 (eval "$ac_link") 2>conftest.er1
7080 grep -v '^ *+' conftest.er1 >conftest.err
7082 cat conftest.err >&5
7083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7084 (exit $ac_status); } &&
7085 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7086 { (case "(($ac_try" in
7087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7088 *) ac_try_echo=$ac_try;;
7090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7091 (eval "$ac_try") 2>&5
7093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7094 (exit $ac_status); }; } &&
7095 { ac_try='test -s conftest$ac_exeext'
7096 { (case "(($ac_try" in
7097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7098 *) ac_try_echo=$ac_try;;
7100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7101 (eval "$ac_try") 2>&5
7103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7104 (exit $ac_status); }; }; then
7106 am_cv_func_iconv=yes
7108 echo "$as_me: failed program was:" >&5
7109 sed 's/^/| /' conftest.$ac_ext >&5
7114 rm -f core conftest.err conftest.$ac_objext \
7115 conftest$ac_exeext conftest.$ac_ext
7116 LIBS="$am_save_LIBS"
7120 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
7121 echo "${ECHO_T}$am_cv_func_iconv" >&6; }
7122 if test "$am_cv_func_iconv" = yes; then
7124 cat >>confdefs.h <<\_ACEOF
7125 #define HAVE_ICONV 1
7129 if test "$am_cv_lib_iconv" = yes; then
7130 { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
7131 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
7132 { echo "$as_me:$LINENO: result: $LIBICONV" >&5
7133 echo "${ECHO_T}$LIBICONV" >&6; }
7135 CPPFLAGS="$am_save_CPPFLAGS"
7147 acl_save_prefix="$prefix"
7148 prefix="$acl_final_prefix"
7149 acl_save_exec_prefix="$exec_prefix"
7150 exec_prefix="$acl_final_exec_prefix"
7152 eval additional_includedir=\"$includedir\"
7153 eval additional_libdir=\"$libdir\"
7155 exec_prefix="$acl_save_exec_prefix"
7156 prefix="$acl_save_prefix"
7159 # Check whether --with-libintl-prefix was given.
7160 if test "${with_libintl_prefix+set}" = set; then
7161 withval=$with_libintl_prefix;
7162 if test "X$withval" = "Xno"; then
7165 if test "X$withval" = "X"; then
7167 acl_save_prefix="$prefix"
7168 prefix="$acl_final_prefix"
7169 acl_save_exec_prefix="$exec_prefix"
7170 exec_prefix="$acl_final_exec_prefix"
7172 eval additional_includedir=\"$includedir\"
7173 eval additional_libdir=\"$libdir\"
7175 exec_prefix="$acl_save_exec_prefix"
7176 prefix="$acl_save_prefix"
7179 additional_includedir="$withval/include"
7180 additional_libdir="$withval/lib"
7191 names_already_handled=
7192 names_next_round='intl '
7193 while test -n "$names_next_round"; do
7194 names_this_round="$names_next_round"
7196 for name in $names_this_round; do
7198 for n in $names_already_handled; do
7199 if test "$n" = "$name"; then
7204 if test -z "$already_handled"; then
7205 names_already_handled="$names_already_handled $name"
7206 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
7207 eval value=\"\$HAVE_LIB$uppername\"
7208 if test -n "$value"; then
7209 if test "$value" = yes; then
7210 eval value=\"\$LIB$uppername\"
7211 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
7212 eval value=\"\$LTLIB$uppername\"
7213 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
7222 if test $use_additional = yes; then
7223 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
7224 found_dir="$additional_libdir"
7225 found_so="$additional_libdir/lib$name.$shlibext"
7226 if test -f "$additional_libdir/lib$name.la"; then
7227 found_la="$additional_libdir/lib$name.la"
7230 if test -f "$additional_libdir/lib$name.$libext"; then
7231 found_dir="$additional_libdir"
7232 found_a="$additional_libdir/lib$name.$libext"
7233 if test -f "$additional_libdir/lib$name.la"; then
7234 found_la="$additional_libdir/lib$name.la"
7239 if test "X$found_dir" = "X"; then
7240 for x in $LDFLAGS $LTLIBINTL; do
7242 acl_save_prefix="$prefix"
7243 prefix="$acl_final_prefix"
7244 acl_save_exec_prefix="$exec_prefix"
7245 exec_prefix="$acl_final_exec_prefix"
7247 exec_prefix="$acl_save_exec_prefix"
7248 prefix="$acl_save_prefix"
7252 dir=`echo "X$x" | sed -e 's/^X-L//'`
7253 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
7255 found_so="$dir/lib$name.$shlibext"
7256 if test -f "$dir/lib$name.la"; then
7257 found_la="$dir/lib$name.la"
7260 if test -f "$dir/lib$name.$libext"; then
7262 found_a="$dir/lib$name.$libext"
7263 if test -f "$dir/lib$name.la"; then
7264 found_la="$dir/lib$name.la"
7270 if test "X$found_dir" != "X"; then
7275 if test "X$found_dir" != "X"; then
7276 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
7277 if test "X$found_so" != "X"; then
7278 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
7279 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
7282 for x in $ltrpathdirs; do
7283 if test "X$x" = "X$found_dir"; then
7288 if test -z "$haveit"; then
7289 ltrpathdirs="$ltrpathdirs $found_dir"
7291 if test "$hardcode_direct" = yes; then
7292 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
7294 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
7295 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
7297 for x in $rpathdirs; do
7298 if test "X$x" = "X$found_dir"; then
7303 if test -z "$haveit"; then
7304 rpathdirs="$rpathdirs $found_dir"
7308 for x in $LDFLAGS $LIBINTL; do
7310 acl_save_prefix="$prefix"
7311 prefix="$acl_final_prefix"
7312 acl_save_exec_prefix="$exec_prefix"
7313 exec_prefix="$acl_final_exec_prefix"
7315 exec_prefix="$acl_save_exec_prefix"
7316 prefix="$acl_save_prefix"
7318 if test "X$x" = "X-L$found_dir"; then
7323 if test -z "$haveit"; then
7324 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
7326 if test "$hardcode_minus_L" != no; then
7327 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
7329 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
7335 if test "X$found_a" != "X"; then
7336 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
7338 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
7341 additional_includedir=
7342 case "$found_dir" in
7344 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
7345 additional_includedir="$basedir/include"
7348 if test "X$additional_includedir" != "X"; then
7349 if test "X$additional_includedir" != "X/usr/include"; then
7351 if test "X$additional_includedir" = "X/usr/local/include"; then
7352 if test -n "$GCC"; then
7354 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
7358 if test -z "$haveit"; then
7359 for x in $CPPFLAGS $INCINTL; do
7361 acl_save_prefix="$prefix"
7362 prefix="$acl_final_prefix"
7363 acl_save_exec_prefix="$exec_prefix"
7364 exec_prefix="$acl_final_exec_prefix"
7366 exec_prefix="$acl_save_exec_prefix"
7367 prefix="$acl_save_prefix"
7369 if test "X$x" = "X-I$additional_includedir"; then
7374 if test -z "$haveit"; then
7375 if test -d "$additional_includedir"; then
7376 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
7382 if test -n "$found_la"; then
7383 save_libdir="$libdir"
7385 */* | *\\*) . "$found_la" ;;
7386 *) . "./$found_la" ;;
7388 libdir="$save_libdir"
7389 for dep in $dependency_libs; do
7392 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
7393 if test "X$additional_libdir" != "X/usr/lib"; then
7395 if test "X$additional_libdir" = "X/usr/local/lib"; then
7396 if test -n "$GCC"; then
7398 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
7402 if test -z "$haveit"; then
7404 for x in $LDFLAGS $LIBINTL; do
7406 acl_save_prefix="$prefix"
7407 prefix="$acl_final_prefix"
7408 acl_save_exec_prefix="$exec_prefix"
7409 exec_prefix="$acl_final_exec_prefix"
7411 exec_prefix="$acl_save_exec_prefix"
7412 prefix="$acl_save_prefix"
7414 if test "X$x" = "X-L$additional_libdir"; then
7419 if test -z "$haveit"; then
7420 if test -d "$additional_libdir"; then
7421 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
7425 for x in $LDFLAGS $LTLIBINTL; do
7427 acl_save_prefix="$prefix"
7428 prefix="$acl_final_prefix"
7429 acl_save_exec_prefix="$exec_prefix"
7430 exec_prefix="$acl_final_exec_prefix"
7432 exec_prefix="$acl_save_exec_prefix"
7433 prefix="$acl_save_prefix"
7435 if test "X$x" = "X-L$additional_libdir"; then
7440 if test -z "$haveit"; then
7441 if test -d "$additional_libdir"; then
7442 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
7449 dir=`echo "X$dep" | sed -e 's/^X-R//'`
7450 if test "$enable_rpath" != no; then
7452 for x in $rpathdirs; do
7453 if test "X$x" = "X$dir"; then
7458 if test -z "$haveit"; then
7459 rpathdirs="$rpathdirs $dir"
7462 for x in $ltrpathdirs; do
7463 if test "X$x" = "X$dir"; then
7468 if test -z "$haveit"; then
7469 ltrpathdirs="$ltrpathdirs $dir"
7474 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
7477 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
7480 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
7481 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
7487 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
7488 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
7494 if test "X$rpathdirs" != "X"; then
7495 if test -n "$hardcode_libdir_separator"; then
7497 for found_dir in $rpathdirs; do
7498 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
7500 acl_save_libdir="$libdir"
7502 eval flag=\"$hardcode_libdir_flag_spec\"
7503 libdir="$acl_save_libdir"
7504 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
7506 for found_dir in $rpathdirs; do
7507 acl_save_libdir="$libdir"
7509 eval flag=\"$hardcode_libdir_flag_spec\"
7510 libdir="$acl_save_libdir"
7511 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
7515 if test "X$ltrpathdirs" != "X"; then
7516 for found_dir in $ltrpathdirs; do
7517 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
7521 { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
7522 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
7523 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
7524 echo $ECHO_N "(cached) $ECHO_C" >&6
7526 gt_save_CPPFLAGS="$CPPFLAGS"
7527 CPPFLAGS="$CPPFLAGS $INCINTL"
7528 gt_save_LIBS="$LIBS"
7529 LIBS="$LIBS $LIBINTL"
7530 cat >conftest.$ac_ext <<_ACEOF
7533 cat confdefs.h >>conftest.$ac_ext
7534 cat >>conftest.$ac_ext <<_ACEOF
7535 /* end confdefs.h. */
7536 #include <libintl.h>
7537 extern int _nl_msg_cat_cntr;
7542 const char *_nl_expand_alias (const char *);
7546 bindtextdomain ("", "");
7547 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
7552 rm -f conftest.$ac_objext conftest$ac_exeext
7553 if { (ac_try="$ac_link"
7555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7556 *) ac_try_echo=$ac_try;;
7558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7559 (eval "$ac_link") 2>conftest.er1
7561 grep -v '^ *+' conftest.er1 >conftest.err
7563 cat conftest.err >&5
7564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7565 (exit $ac_status); } &&
7566 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7567 { (case "(($ac_try" in
7568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7569 *) ac_try_echo=$ac_try;;
7571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7572 (eval "$ac_try") 2>&5
7574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7575 (exit $ac_status); }; } &&
7576 { ac_try='test -s conftest$ac_exeext'
7577 { (case "(($ac_try" in
7578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7579 *) ac_try_echo=$ac_try;;
7581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7582 (eval "$ac_try") 2>&5
7584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7585 (exit $ac_status); }; }; then
7586 gt_cv_func_gnugettext1_libintl=yes
7588 echo "$as_me: failed program was:" >&5
7589 sed 's/^/| /' conftest.$ac_ext >&5
7591 gt_cv_func_gnugettext1_libintl=no
7594 rm -f core conftest.err conftest.$ac_objext \
7595 conftest$ac_exeext conftest.$ac_ext
7596 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
7597 LIBS="$LIBS $LIBICONV"
7598 cat >conftest.$ac_ext <<_ACEOF
7601 cat confdefs.h >>conftest.$ac_ext
7602 cat >>conftest.$ac_ext <<_ACEOF
7603 /* end confdefs.h. */
7604 #include <libintl.h>
7605 extern int _nl_msg_cat_cntr;
7610 const char *_nl_expand_alias (const char *);
7614 bindtextdomain ("", "");
7615 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
7620 rm -f conftest.$ac_objext conftest$ac_exeext
7621 if { (ac_try="$ac_link"
7623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7624 *) ac_try_echo=$ac_try;;
7626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7627 (eval "$ac_link") 2>conftest.er1
7629 grep -v '^ *+' conftest.er1 >conftest.err
7631 cat conftest.err >&5
7632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7633 (exit $ac_status); } &&
7634 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7635 { (case "(($ac_try" in
7636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7637 *) ac_try_echo=$ac_try;;
7639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7640 (eval "$ac_try") 2>&5
7642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7643 (exit $ac_status); }; } &&
7644 { ac_try='test -s conftest$ac_exeext'
7645 { (case "(($ac_try" in
7646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7647 *) ac_try_echo=$ac_try;;
7649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7650 (eval "$ac_try") 2>&5
7652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7653 (exit $ac_status); }; }; then
7654 LIBINTL="$LIBINTL $LIBICONV"
7655 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
7656 gt_cv_func_gnugettext1_libintl=yes
7659 echo "$as_me: failed program was:" >&5
7660 sed 's/^/| /' conftest.$ac_ext >&5
7665 rm -f core conftest.err conftest.$ac_objext \
7666 conftest$ac_exeext conftest.$ac_ext
7668 CPPFLAGS="$gt_save_CPPFLAGS"
7669 LIBS="$gt_save_LIBS"
7671 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
7672 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6; }
7675 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
7676 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
7677 && test "$PACKAGE" != gettext-runtime \
7678 && test "$PACKAGE" != gettext-tools; }; then
7679 gt_use_preinstalled_gnugettext=yes
7688 if test -n "$INTL_MACOSX_LIBS"; then
7689 if test "$gt_use_preinstalled_gnugettext" = "yes" \
7690 || test "$nls_cv_use_gnu_gettext" = "yes"; then
7691 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
7692 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
7696 if test "$gt_use_preinstalled_gnugettext" = "yes" \
7697 || test "$nls_cv_use_gnu_gettext" = "yes"; then
7699 cat >>confdefs.h <<\_ACEOF
7700 #define ENABLE_NLS 1
7708 { echo "$as_me:$LINENO: checking whether to use NLS" >&5
7709 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; }
7710 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
7711 echo "${ECHO_T}$USE_NLS" >&6; }
7712 if test "$USE_NLS" = "yes"; then
7713 { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
7714 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; }
7715 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
7716 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
7717 gt_source="external libintl"
7722 gt_source="included intl directory"
7724 { echo "$as_me:$LINENO: result: $gt_source" >&5
7725 echo "${ECHO_T}$gt_source" >&6; }
7728 if test "$USE_NLS" = "yes"; then
7730 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
7731 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
7732 { echo "$as_me:$LINENO: checking how to link with libintl" >&5
7733 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; }
7734 { echo "$as_me:$LINENO: result: $LIBINTL" >&5
7735 echo "${ECHO_T}$LIBINTL" >&6; }
7737 for element in $INCINTL; do
7739 for x in $CPPFLAGS; do
7741 acl_save_prefix="$prefix"
7742 prefix="$acl_final_prefix"
7743 acl_save_exec_prefix="$exec_prefix"
7744 exec_prefix="$acl_final_exec_prefix"
7746 exec_prefix="$acl_save_exec_prefix"
7747 prefix="$acl_save_prefix"
7749 if test "X$x" = "X$element"; then
7754 if test -z "$haveit"; then
7755 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
7762 cat >>confdefs.h <<\_ACEOF
7763 #define HAVE_GETTEXT 1
7767 cat >>confdefs.h <<\_ACEOF
7768 #define HAVE_DCGETTEXT 1
7785 if test x${prefix} = xNONE ; then
7786 if test `eval echo ${datadir}` = NONE/share ; then
7791 # ------------------------------------------------------------------
7792 # If the user has not set --prefix, we set our default to nothing.
7793 # In this case, if the user has not set --sysconfdir, we set it
7794 # to the package default of /etc/bacula. If either --prefix or
7795 # --sysconfdir is set, we leave sysconfdir alone except to eval it.
7796 # ------------------------------------------------------------------
7797 if test x${prefix} = xNONE ; then
7798 if test `eval echo ${sysconfdir}` = NONE/etc ; then
7799 sysconfdir=/etc/bacula
7803 sysconfdir=`eval echo ${sysconfdir}`
7804 datadir=`eval echo ${datadir}`
7805 localedir=`eval echo ${datadir}/locale`
7806 cat >>confdefs.h <<_ACEOF
7807 #define LOCALEDIR "$localedir"
7810 cat >>confdefs.h <<_ACEOF
7811 #define SYSCONFDIR "$sysconfdir"
7815 # -------------------------------------------------------------------------
7816 # If the user has not set --exec-prefix, we default to ${prefix}
7817 # -------------------------------------------------------------------------
7818 if test x${exec_prefix} = xNONE ; then
7819 exec_prefix=${prefix}
7822 # ------------------------------------------------------------------
7823 # If the user has not set --sbindir, we set our default as /sbin
7824 # ------------------------------------------------------------------
7825 if test x$sbindir = x'${exec_prefix}/sbin' ; then
7826 sbindir=${exec_prefix}/sbin
7828 sbindir=`eval echo ${sbindir}`
7830 # -------------------------------------------------------------------------
7831 # If the user has not set --mandir, we default to /usr/share/man
7832 # -------------------------------------------------------------------------
7833 if test x$mandir = x'${prefix}/man' ; then
7834 mandir=/usr/share/man
7838 # ------------------------------------------------------------------
7839 # All list of languages for which a translation exist. Each
7840 # language is separated by a space.
7841 # ------------------------------------------------------------------
7844 for ac_prog in msgfmt
7846 # Extract the first word of "$ac_prog", so it can be a program name with args.
7847 set dummy $ac_prog; ac_word=$2
7848 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7849 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7850 if test "${ac_cv_path_MSGFMT+set}" = set; then
7851 echo $ECHO_N "(cached) $ECHO_C" >&6
7855 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
7858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7862 test -z "$as_dir" && as_dir=.
7863 for ac_exec_ext in '' $ac_executable_extensions; do
7864 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7865 ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
7866 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7876 MSGFMT=$ac_cv_path_MSGFMT
7877 if test -n "$MSGFMT"; then
7878 { echo "$as_me:$LINENO: result: $MSGFMT" >&5
7879 echo "${ECHO_T}$MSGFMT" >&6; }
7881 { echo "$as_me:$LINENO: result: no" >&5
7882 echo "${ECHO_T}no" >&6; }
7886 test -n "$MSGFMT" && break
7888 test -n "$MSGFMT" || MSGFMT="no"
7890 if test "$MSGFMT" = "no"
7892 echo 'msgfmt program not found, disabling NLS !'
7894 USE_INCLUDED_LIBINTL=no
7897 { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2 or newer" >&5
7898 echo $ECHO_N "checking whether we are using the GNU C Library 2 or newer... $ECHO_C" >&6; }
7899 if test "${ac_cv_gnu_library_2+set}" = set; then
7900 echo $ECHO_N "(cached) $ECHO_C" >&6
7902 cat >conftest.$ac_ext <<_ACEOF
7905 cat confdefs.h >>conftest.$ac_ext
7906 cat >>conftest.$ac_ext <<_ACEOF
7907 /* end confdefs.h. */
7909 #include <features.h>
7910 #ifdef __GNU_LIBRARY__
7911 #if (__GLIBC__ >= 2)
7917 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7918 $EGREP "Lucky GNU user" >/dev/null 2>&1; then
7919 ac_cv_gnu_library_2=yes
7921 ac_cv_gnu_library_2=no
7928 { echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2" >&5
7929 echo "${ECHO_T}$ac_cv_gnu_library_2" >&6; }
7931 GLIBC2="$ac_cv_gnu_library_2"
7935 { echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
7936 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6; }
7937 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
7938 echo $ECHO_N "(cached) $ECHO_C" >&6
7940 ac_check_lib_save_LIBS=$LIBS
7941 LIBS="-lcposix $LIBS"
7942 cat >conftest.$ac_ext <<_ACEOF
7945 cat confdefs.h >>conftest.$ac_ext
7946 cat >>conftest.$ac_ext <<_ACEOF
7947 /* end confdefs.h. */
7949 /* Override any GCC internal prototype to avoid an error.
7950 Use char because int might match the return type of a GCC
7951 builtin and then its argument prototype would still apply. */
7964 rm -f conftest.$ac_objext conftest$ac_exeext
7965 if { (ac_try="$ac_link"
7967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7968 *) ac_try_echo=$ac_try;;
7970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7971 (eval "$ac_link") 2>conftest.er1
7973 grep -v '^ *+' conftest.er1 >conftest.err
7975 cat conftest.err >&5
7976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7977 (exit $ac_status); } &&
7978 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7979 { (case "(($ac_try" in
7980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7981 *) ac_try_echo=$ac_try;;
7983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7984 (eval "$ac_try") 2>&5
7986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7987 (exit $ac_status); }; } &&
7988 { ac_try='test -s conftest$ac_exeext'
7989 { (case "(($ac_try" in
7990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7991 *) ac_try_echo=$ac_try;;
7993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7994 (eval "$ac_try") 2>&5
7996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7997 (exit $ac_status); }; }; then
7998 ac_cv_lib_cposix_strerror=yes
8000 echo "$as_me: failed program was:" >&5
8001 sed 's/^/| /' conftest.$ac_ext >&5
8003 ac_cv_lib_cposix_strerror=no
8006 rm -f core conftest.err conftest.$ac_objext \
8007 conftest$ac_exeext conftest.$ac_ext
8008 LIBS=$ac_check_lib_save_LIBS
8010 { echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
8011 echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6; }
8012 if test $ac_cv_lib_cposix_strerror = yes; then
8013 LIBS="$LIBS -lcposix"
8018 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
8019 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
8020 if test "${ac_cv_header_stdc+set}" = set; then
8021 echo $ECHO_N "(cached) $ECHO_C" >&6
8023 cat >conftest.$ac_ext <<_ACEOF
8026 cat confdefs.h >>conftest.$ac_ext
8027 cat >>conftest.$ac_ext <<_ACEOF
8028 /* end confdefs.h. */
8042 rm -f conftest.$ac_objext
8043 if { (ac_try="$ac_compile"
8045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8046 *) ac_try_echo=$ac_try;;
8048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8049 (eval "$ac_compile") 2>conftest.er1
8051 grep -v '^ *+' conftest.er1 >conftest.err
8053 cat conftest.err >&5
8054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8055 (exit $ac_status); } &&
8056 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8057 { (case "(($ac_try" in
8058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8059 *) ac_try_echo=$ac_try;;
8061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8062 (eval "$ac_try") 2>&5
8064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8065 (exit $ac_status); }; } &&
8066 { ac_try='test -s conftest.$ac_objext'
8067 { (case "(($ac_try" in
8068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8069 *) ac_try_echo=$ac_try;;
8071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8072 (eval "$ac_try") 2>&5
8074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8075 (exit $ac_status); }; }; then
8076 ac_cv_header_stdc=yes
8078 echo "$as_me: failed program was:" >&5
8079 sed 's/^/| /' conftest.$ac_ext >&5
8081 ac_cv_header_stdc=no
8084 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8086 if test $ac_cv_header_stdc = yes; then
8087 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8088 cat >conftest.$ac_ext <<_ACEOF
8091 cat confdefs.h >>conftest.$ac_ext
8092 cat >>conftest.$ac_ext <<_ACEOF
8093 /* end confdefs.h. */
8097 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8098 $EGREP "memchr" >/dev/null 2>&1; then
8101 ac_cv_header_stdc=no
8107 if test $ac_cv_header_stdc = yes; then
8108 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8109 cat >conftest.$ac_ext <<_ACEOF
8112 cat confdefs.h >>conftest.$ac_ext
8113 cat >>conftest.$ac_ext <<_ACEOF
8114 /* end confdefs.h. */
8118 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8119 $EGREP "free" >/dev/null 2>&1; then
8122 ac_cv_header_stdc=no
8128 if test $ac_cv_header_stdc = yes; then
8129 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8130 if test "$cross_compiling" = yes; then
8133 cat >conftest.$ac_ext <<_ACEOF
8136 cat confdefs.h >>conftest.$ac_ext
8137 cat >>conftest.$ac_ext <<_ACEOF
8138 /* end confdefs.h. */
8141 #if ((' ' & 0x0FF) == 0x020)
8142 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8143 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8145 # define ISLOWER(c) \
8146 (('a' <= (c) && (c) <= 'i') \
8147 || ('j' <= (c) && (c) <= 'r') \
8148 || ('s' <= (c) && (c) <= 'z'))
8149 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8152 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8157 for (i = 0; i < 256; i++)
8158 if (XOR (islower (i), ISLOWER (i))
8159 || toupper (i) != TOUPPER (i))
8164 rm -f conftest$ac_exeext
8165 if { (ac_try="$ac_link"
8167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8168 *) ac_try_echo=$ac_try;;
8170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8171 (eval "$ac_link") 2>&5
8173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8174 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8175 { (case "(($ac_try" in
8176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8177 *) ac_try_echo=$ac_try;;
8179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8180 (eval "$ac_try") 2>&5
8182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8183 (exit $ac_status); }; }; then
8186 echo "$as_me: program exited with status $ac_status" >&5
8187 echo "$as_me: failed program was:" >&5
8188 sed 's/^/| /' conftest.$ac_ext >&5
8191 ac_cv_header_stdc=no
8193 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8199 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8200 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
8201 if test $ac_cv_header_stdc = yes; then
8203 cat >>confdefs.h <<\_ACEOF
8204 #define STDC_HEADERS 1
8209 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8210 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8211 if test "${ac_cv_c_const+set}" = set; then
8212 echo $ECHO_N "(cached) $ECHO_C" >&6
8214 cat >conftest.$ac_ext <<_ACEOF
8217 cat confdefs.h >>conftest.$ac_ext
8218 cat >>conftest.$ac_ext <<_ACEOF
8219 /* end confdefs.h. */
8224 /* FIXME: Include the comments suggested by Paul. */
8226 /* Ultrix mips cc rejects this. */
8227 typedef int charset[2];
8229 /* SunOS 4.1.1 cc rejects this. */
8230 char const *const *ccp;
8232 /* NEC SVR4.0.2 mips cc rejects this. */
8233 struct point {int x, y;};
8234 static struct point const zero = {0,0};
8235 /* AIX XL C 1.02.0.0 rejects this.
8236 It does not let you subtract one const X* pointer from another in
8237 an arm of an if-expression whose if-part is not a constant
8239 const char *g = "string";
8240 ccp = &g + (g ? g-g : 0);
8241 /* HPUX 7.0 cc rejects these. */
8244 ccp = (char const *const *) p;
8245 { /* SCO 3.2v4 cc rejects this. */
8247 char const *s = 0 ? (char *) 0 : (char const *) 0;
8252 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8254 const int *foo = &x[0];
8257 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8258 typedef const int *iptr;
8262 { /* AIX XL C 1.02.0.0 rejects this saying
8263 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8264 struct s { int j; const int *ap[3]; };
8265 struct s *b; b->j = 5;
8267 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8271 return !x[0] && !zero.x;
8278 rm -f conftest.$ac_objext
8279 if { (ac_try="$ac_compile"
8281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8282 *) ac_try_echo=$ac_try;;
8284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8285 (eval "$ac_compile") 2>conftest.er1
8287 grep -v '^ *+' conftest.er1 >conftest.err
8289 cat conftest.err >&5
8290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8291 (exit $ac_status); } &&
8292 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8293 { (case "(($ac_try" in
8294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8295 *) ac_try_echo=$ac_try;;
8297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8298 (eval "$ac_try") 2>&5
8300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8301 (exit $ac_status); }; } &&
8302 { ac_try='test -s conftest.$ac_objext'
8303 { (case "(($ac_try" in
8304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8305 *) ac_try_echo=$ac_try;;
8307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8308 (eval "$ac_try") 2>&5
8310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8311 (exit $ac_status); }; }; then
8314 echo "$as_me: failed program was:" >&5
8315 sed 's/^/| /' conftest.$ac_ext >&5
8320 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8322 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8323 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8324 if test $ac_cv_c_const = no; then
8326 cat >>confdefs.h <<\_ACEOF
8333 { echo "$as_me:$LINENO: checking for signed" >&5
8334 echo $ECHO_N "checking for signed... $ECHO_C" >&6; }
8335 if test "${bh_cv_c_signed+set}" = set; then
8336 echo $ECHO_N "(cached) $ECHO_C" >&6
8338 cat >conftest.$ac_ext <<_ACEOF
8341 cat confdefs.h >>conftest.$ac_ext
8342 cat >>conftest.$ac_ext <<_ACEOF
8343 /* end confdefs.h. */
8353 rm -f conftest.$ac_objext
8354 if { (ac_try="$ac_compile"
8356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8357 *) ac_try_echo=$ac_try;;
8359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8360 (eval "$ac_compile") 2>conftest.er1
8362 grep -v '^ *+' conftest.er1 >conftest.err
8364 cat conftest.err >&5
8365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8366 (exit $ac_status); } &&
8367 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8368 { (case "(($ac_try" in
8369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8370 *) ac_try_echo=$ac_try;;
8372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8373 (eval "$ac_try") 2>&5
8375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8376 (exit $ac_status); }; } &&
8377 { ac_try='test -s conftest.$ac_objext'
8378 { (case "(($ac_try" in
8379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8380 *) ac_try_echo=$ac_try;;
8382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8383 (eval "$ac_try") 2>&5
8385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8386 (exit $ac_status); }; }; then
8389 echo "$as_me: failed program was:" >&5
8390 sed 's/^/| /' conftest.$ac_ext >&5
8395 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8397 { echo "$as_me:$LINENO: result: $bh_cv_c_signed" >&5
8398 echo "${ECHO_T}$bh_cv_c_signed" >&6; }
8399 if test $bh_cv_c_signed = no; then
8401 cat >>confdefs.h <<\_ACEOF
8407 { echo "$as_me:$LINENO: checking for inline" >&5
8408 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
8409 if test "${ac_cv_c_inline+set}" = set; then
8410 echo $ECHO_N "(cached) $ECHO_C" >&6
8413 for ac_kw in inline __inline__ __inline; do
8414 cat >conftest.$ac_ext <<_ACEOF
8417 cat confdefs.h >>conftest.$ac_ext
8418 cat >>conftest.$ac_ext <<_ACEOF
8419 /* end confdefs.h. */
8422 static $ac_kw foo_t static_foo () {return 0; }
8423 $ac_kw foo_t foo () {return 0; }
8427 rm -f conftest.$ac_objext
8428 if { (ac_try="$ac_compile"
8430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8431 *) ac_try_echo=$ac_try;;
8433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8434 (eval "$ac_compile") 2>conftest.er1
8436 grep -v '^ *+' conftest.er1 >conftest.err
8438 cat conftest.err >&5
8439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8440 (exit $ac_status); } &&
8441 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8442 { (case "(($ac_try" in
8443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8444 *) ac_try_echo=$ac_try;;
8446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8447 (eval "$ac_try") 2>&5
8449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8450 (exit $ac_status); }; } &&
8451 { ac_try='test -s conftest.$ac_objext'
8452 { (case "(($ac_try" in
8453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8454 *) ac_try_echo=$ac_try;;
8456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8457 (eval "$ac_try") 2>&5
8459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8460 (exit $ac_status); }; }; then
8461 ac_cv_c_inline=$ac_kw
8463 echo "$as_me: failed program was:" >&5
8464 sed 's/^/| /' conftest.$ac_ext >&5
8469 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8470 test "$ac_cv_c_inline" != no && break
8474 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
8475 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
8478 case $ac_cv_c_inline in
8481 case $ac_cv_c_inline in
8483 *) ac_val=$ac_cv_c_inline;;
8485 cat >>confdefs.h <<_ACEOF
8487 #define inline $ac_val
8493 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8503 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8504 inttypes.h stdint.h unistd.h
8506 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8507 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8508 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8509 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8510 echo $ECHO_N "(cached) $ECHO_C" >&6
8512 cat >conftest.$ac_ext <<_ACEOF
8515 cat confdefs.h >>conftest.$ac_ext
8516 cat >>conftest.$ac_ext <<_ACEOF
8517 /* end confdefs.h. */
8518 $ac_includes_default
8520 #include <$ac_header>
8522 rm -f conftest.$ac_objext
8523 if { (ac_try="$ac_compile"
8525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8526 *) ac_try_echo=$ac_try;;
8528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8529 (eval "$ac_compile") 2>conftest.er1
8531 grep -v '^ *+' conftest.er1 >conftest.err
8533 cat conftest.err >&5
8534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8535 (exit $ac_status); } &&
8536 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8537 { (case "(($ac_try" in
8538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8539 *) ac_try_echo=$ac_try;;
8541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8542 (eval "$ac_try") 2>&5
8544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8545 (exit $ac_status); }; } &&
8546 { ac_try='test -s conftest.$ac_objext'
8547 { (case "(($ac_try" in
8548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8549 *) ac_try_echo=$ac_try;;
8551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8552 (eval "$ac_try") 2>&5
8554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8555 (exit $ac_status); }; }; then
8556 eval "$as_ac_Header=yes"
8558 echo "$as_me: failed program was:" >&5
8559 sed 's/^/| /' conftest.$ac_ext >&5
8561 eval "$as_ac_Header=no"
8564 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8566 ac_res=`eval echo '${'$as_ac_Header'}'`
8567 { echo "$as_me:$LINENO: result: $ac_res" >&5
8568 echo "${ECHO_T}$ac_res" >&6; }
8569 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8570 cat >>confdefs.h <<_ACEOF
8571 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8579 { echo "$as_me:$LINENO: checking for off_t" >&5
8580 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
8581 if test "${ac_cv_type_off_t+set}" = set; then
8582 echo $ECHO_N "(cached) $ECHO_C" >&6
8584 cat >conftest.$ac_ext <<_ACEOF
8587 cat confdefs.h >>conftest.$ac_ext
8588 cat >>conftest.$ac_ext <<_ACEOF
8589 /* end confdefs.h. */
8590 $ac_includes_default
8591 typedef off_t ac__type_new_;
8595 if ((ac__type_new_ *) 0)
8597 if (sizeof (ac__type_new_))
8603 rm -f conftest.$ac_objext
8604 if { (ac_try="$ac_compile"
8606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8607 *) ac_try_echo=$ac_try;;
8609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8610 (eval "$ac_compile") 2>conftest.er1
8612 grep -v '^ *+' conftest.er1 >conftest.err
8614 cat conftest.err >&5
8615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8616 (exit $ac_status); } &&
8617 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8618 { (case "(($ac_try" in
8619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8620 *) ac_try_echo=$ac_try;;
8622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8623 (eval "$ac_try") 2>&5
8625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8626 (exit $ac_status); }; } &&
8627 { ac_try='test -s conftest.$ac_objext'
8628 { (case "(($ac_try" in
8629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8630 *) ac_try_echo=$ac_try;;
8632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8633 (eval "$ac_try") 2>&5
8635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8636 (exit $ac_status); }; }; then
8637 ac_cv_type_off_t=yes
8639 echo "$as_me: failed program was:" >&5
8640 sed 's/^/| /' conftest.$ac_ext >&5
8645 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8647 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
8648 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
8649 if test $ac_cv_type_off_t = yes; then
8653 cat >>confdefs.h <<_ACEOF
8654 #define off_t long int
8659 { echo "$as_me:$LINENO: checking for size_t" >&5
8660 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
8661 if test "${ac_cv_type_size_t+set}" = set; then
8662 echo $ECHO_N "(cached) $ECHO_C" >&6
8664 cat >conftest.$ac_ext <<_ACEOF
8667 cat confdefs.h >>conftest.$ac_ext
8668 cat >>conftest.$ac_ext <<_ACEOF
8669 /* end confdefs.h. */
8670 $ac_includes_default
8671 typedef size_t ac__type_new_;
8675 if ((ac__type_new_ *) 0)
8677 if (sizeof (ac__type_new_))
8683 rm -f conftest.$ac_objext
8684 if { (ac_try="$ac_compile"
8686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8687 *) ac_try_echo=$ac_try;;
8689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8690 (eval "$ac_compile") 2>conftest.er1
8692 grep -v '^ *+' conftest.er1 >conftest.err
8694 cat conftest.err >&5
8695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8696 (exit $ac_status); } &&
8697 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8698 { (case "(($ac_try" in
8699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8700 *) ac_try_echo=$ac_try;;
8702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8703 (eval "$ac_try") 2>&5
8705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8706 (exit $ac_status); }; } &&
8707 { ac_try='test -s conftest.$ac_objext'
8708 { (case "(($ac_try" in
8709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8710 *) ac_try_echo=$ac_try;;
8712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8713 (eval "$ac_try") 2>&5
8715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8716 (exit $ac_status); }; }; then
8717 ac_cv_type_size_t=yes
8719 echo "$as_me: failed program was:" >&5
8720 sed 's/^/| /' conftest.$ac_ext >&5
8722 ac_cv_type_size_t=no
8725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8727 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
8728 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
8729 if test $ac_cv_type_size_t = yes; then
8733 cat >>confdefs.h <<_ACEOF
8734 #define size_t unsigned int
8740 { echo "$as_me:$LINENO: checking for long long" >&5
8741 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
8742 if test "${ac_cv_type_long_long+set}" = set; then
8743 echo $ECHO_N "(cached) $ECHO_C" >&6
8745 cat >conftest.$ac_ext <<_ACEOF
8748 cat confdefs.h >>conftest.$ac_ext
8749 cat >>conftest.$ac_ext <<_ACEOF
8750 /* end confdefs.h. */
8751 long long ll = 1LL; int i = 63;
8755 long long llmax = (long long) -1;
8756 return ll << i | ll >> i | llmax / ll | llmax % ll;
8761 rm -f conftest.$ac_objext conftest$ac_exeext
8762 if { (ac_try="$ac_link"
8764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8765 *) ac_try_echo=$ac_try;;
8767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8768 (eval "$ac_link") 2>conftest.er1
8770 grep -v '^ *+' conftest.er1 >conftest.err
8772 cat conftest.err >&5
8773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8774 (exit $ac_status); } &&
8775 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8776 { (case "(($ac_try" in
8777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8778 *) ac_try_echo=$ac_try;;
8780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8781 (eval "$ac_try") 2>&5
8783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8784 (exit $ac_status); }; } &&
8785 { ac_try='test -s conftest$ac_exeext'
8786 { (case "(($ac_try" in
8787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8788 *) ac_try_echo=$ac_try;;
8790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8791 (eval "$ac_try") 2>&5
8793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8794 (exit $ac_status); }; }; then
8795 ac_cv_type_long_long=yes
8797 echo "$as_me: failed program was:" >&5
8798 sed 's/^/| /' conftest.$ac_ext >&5
8800 ac_cv_type_long_long=no
8803 rm -f core conftest.err conftest.$ac_objext \
8804 conftest$ac_exeext conftest.$ac_ext
8806 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
8807 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
8808 if test $ac_cv_type_long_long = yes; then
8810 cat >>confdefs.h <<\_ACEOF
8811 #define HAVE_LONG_LONG 1
8817 { echo "$as_me:$LINENO: checking for long double" >&5
8818 echo $ECHO_N "checking for long double... $ECHO_C" >&6; }
8819 if test "${gt_cv_c_long_double+set}" = set; then
8820 echo $ECHO_N "(cached) $ECHO_C" >&6
8822 if test "$GCC" = yes; then
8823 gt_cv_c_long_double=yes
8825 cat >conftest.$ac_ext <<_ACEOF
8828 cat confdefs.h >>conftest.$ac_ext
8829 cat >>conftest.$ac_ext <<_ACEOF
8830 /* end confdefs.h. */
8832 /* The Stardent Vistra knows sizeof(long double), but does not support it. */
8833 long double foo = 0.0;
8834 /* On Ultrix 4.3 cc, long double is 4 and double is 8. */
8835 int array [2*(sizeof(long double) >= sizeof(double)) - 1];
8845 rm -f conftest.$ac_objext
8846 if { (ac_try="$ac_compile"
8848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8849 *) ac_try_echo=$ac_try;;
8851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8852 (eval "$ac_compile") 2>conftest.er1
8854 grep -v '^ *+' conftest.er1 >conftest.err
8856 cat conftest.err >&5
8857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8858 (exit $ac_status); } &&
8859 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8860 { (case "(($ac_try" in
8861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8862 *) ac_try_echo=$ac_try;;
8864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8865 (eval "$ac_try") 2>&5
8867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8868 (exit $ac_status); }; } &&
8869 { ac_try='test -s conftest.$ac_objext'
8870 { (case "(($ac_try" in
8871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8872 *) ac_try_echo=$ac_try;;
8874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8875 (eval "$ac_try") 2>&5
8877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8878 (exit $ac_status); }; }; then
8879 gt_cv_c_long_double=yes
8881 echo "$as_me: failed program was:" >&5
8882 sed 's/^/| /' conftest.$ac_ext >&5
8884 gt_cv_c_long_double=no
8887 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8890 { echo "$as_me:$LINENO: result: $gt_cv_c_long_double" >&5
8891 echo "${ECHO_T}$gt_cv_c_long_double" >&6; }
8892 if test $gt_cv_c_long_double = yes; then
8894 cat >>confdefs.h <<\_ACEOF
8895 #define HAVE_LONG_DOUBLE 1
8901 { echo "$as_me:$LINENO: checking for wchar_t" >&5
8902 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
8903 if test "${gt_cv_c_wchar_t+set}" = set; then
8904 echo $ECHO_N "(cached) $ECHO_C" >&6
8906 cat >conftest.$ac_ext <<_ACEOF
8909 cat confdefs.h >>conftest.$ac_ext
8910 cat >>conftest.$ac_ext <<_ACEOF
8911 /* end confdefs.h. */
8913 wchar_t foo = (wchar_t)'\0';
8922 rm -f conftest.$ac_objext
8923 if { (ac_try="$ac_compile"
8925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8926 *) ac_try_echo=$ac_try;;
8928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8929 (eval "$ac_compile") 2>conftest.er1
8931 grep -v '^ *+' conftest.er1 >conftest.err
8933 cat conftest.err >&5
8934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8935 (exit $ac_status); } &&
8936 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8937 { (case "(($ac_try" in
8938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8939 *) ac_try_echo=$ac_try;;
8941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8942 (eval "$ac_try") 2>&5
8944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8945 (exit $ac_status); }; } &&
8946 { ac_try='test -s conftest.$ac_objext'
8947 { (case "(($ac_try" in
8948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8949 *) ac_try_echo=$ac_try;;
8951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8952 (eval "$ac_try") 2>&5
8954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8955 (exit $ac_status); }; }; then
8958 echo "$as_me: failed program was:" >&5
8959 sed 's/^/| /' conftest.$ac_ext >&5
8964 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8966 { echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
8967 echo "${ECHO_T}$gt_cv_c_wchar_t" >&6; }
8968 if test $gt_cv_c_wchar_t = yes; then
8970 cat >>confdefs.h <<\_ACEOF
8971 #define HAVE_WCHAR_T 1
8977 { echo "$as_me:$LINENO: checking for wint_t" >&5
8978 echo $ECHO_N "checking for wint_t... $ECHO_C" >&6; }
8979 if test "${gt_cv_c_wint_t+set}" = set; then
8980 echo $ECHO_N "(cached) $ECHO_C" >&6
8982 cat >conftest.$ac_ext <<_ACEOF
8985 cat confdefs.h >>conftest.$ac_ext
8986 cat >>conftest.$ac_ext <<_ACEOF
8987 /* end confdefs.h. */
8989 wint_t foo = (wchar_t)'\0';
8998 rm -f conftest.$ac_objext
8999 if { (ac_try="$ac_compile"
9001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9002 *) ac_try_echo=$ac_try;;
9004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9005 (eval "$ac_compile") 2>conftest.er1
9007 grep -v '^ *+' conftest.er1 >conftest.err
9009 cat conftest.err >&5
9010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9011 (exit $ac_status); } &&
9012 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9013 { (case "(($ac_try" in
9014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9015 *) ac_try_echo=$ac_try;;
9017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9018 (eval "$ac_try") 2>&5
9020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9021 (exit $ac_status); }; } &&
9022 { ac_try='test -s conftest.$ac_objext'
9023 { (case "(($ac_try" in
9024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9025 *) ac_try_echo=$ac_try;;
9027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9028 (eval "$ac_try") 2>&5
9030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9031 (exit $ac_status); }; }; then
9034 echo "$as_me: failed program was:" >&5
9035 sed 's/^/| /' conftest.$ac_ext >&5
9040 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9042 { echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
9043 echo "${ECHO_T}$gt_cv_c_wint_t" >&6; }
9044 if test $gt_cv_c_wint_t = yes; then
9046 cat >>confdefs.h <<\_ACEOF
9047 #define HAVE_WINT_T 1
9053 { echo "$as_me:$LINENO: checking for inttypes.h" >&5
9054 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
9055 if test "${gl_cv_header_inttypes_h+set}" = set; then
9056 echo $ECHO_N "(cached) $ECHO_C" >&6
9058 cat >conftest.$ac_ext <<_ACEOF
9061 cat confdefs.h >>conftest.$ac_ext
9062 cat >>conftest.$ac_ext <<_ACEOF
9063 /* end confdefs.h. */
9064 #include <sys/types.h>
9065 #include <inttypes.h>
9069 uintmax_t i = (uintmax_t) -1;
9074 rm -f conftest.$ac_objext
9075 if { (ac_try="$ac_compile"
9077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9078 *) ac_try_echo=$ac_try;;
9080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9081 (eval "$ac_compile") 2>conftest.er1
9083 grep -v '^ *+' conftest.er1 >conftest.err
9085 cat conftest.err >&5
9086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9087 (exit $ac_status); } &&
9088 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9089 { (case "(($ac_try" in
9090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9091 *) ac_try_echo=$ac_try;;
9093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9094 (eval "$ac_try") 2>&5
9096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9097 (exit $ac_status); }; } &&
9098 { ac_try='test -s conftest.$ac_objext'
9099 { (case "(($ac_try" in
9100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9101 *) ac_try_echo=$ac_try;;
9103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9104 (eval "$ac_try") 2>&5
9106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9107 (exit $ac_status); }; }; then
9108 gl_cv_header_inttypes_h=yes
9110 echo "$as_me: failed program was:" >&5
9111 sed 's/^/| /' conftest.$ac_ext >&5
9113 gl_cv_header_inttypes_h=no
9116 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9118 { echo "$as_me:$LINENO: result: $gl_cv_header_inttypes_h" >&5
9119 echo "${ECHO_T}$gl_cv_header_inttypes_h" >&6; }
9120 if test $gl_cv_header_inttypes_h = yes; then
9122 cat >>confdefs.h <<_ACEOF
9123 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
9129 { echo "$as_me:$LINENO: checking for stdint.h" >&5
9130 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6; }
9131 if test "${gl_cv_header_stdint_h+set}" = set; then
9132 echo $ECHO_N "(cached) $ECHO_C" >&6
9134 cat >conftest.$ac_ext <<_ACEOF
9137 cat confdefs.h >>conftest.$ac_ext
9138 cat >>conftest.$ac_ext <<_ACEOF
9139 /* end confdefs.h. */
9140 #include <sys/types.h>
9145 uintmax_t i = (uintmax_t) -1;
9150 rm -f conftest.$ac_objext
9151 if { (ac_try="$ac_compile"
9153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9154 *) ac_try_echo=$ac_try;;
9156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9157 (eval "$ac_compile") 2>conftest.er1
9159 grep -v '^ *+' conftest.er1 >conftest.err
9161 cat conftest.err >&5
9162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9163 (exit $ac_status); } &&
9164 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9165 { (case "(($ac_try" in
9166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9167 *) ac_try_echo=$ac_try;;
9169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9170 (eval "$ac_try") 2>&5
9172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9173 (exit $ac_status); }; } &&
9174 { ac_try='test -s conftest.$ac_objext'
9175 { (case "(($ac_try" in
9176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9177 *) ac_try_echo=$ac_try;;
9179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9180 (eval "$ac_try") 2>&5
9182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9183 (exit $ac_status); }; }; then
9184 gl_cv_header_stdint_h=yes
9186 echo "$as_me: failed program was:" >&5
9187 sed 's/^/| /' conftest.$ac_ext >&5
9189 gl_cv_header_stdint_h=no
9192 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9194 { echo "$as_me:$LINENO: result: $gl_cv_header_stdint_h" >&5
9195 echo "${ECHO_T}$gl_cv_header_stdint_h" >&6; }
9196 if test $gl_cv_header_stdint_h = yes; then
9198 cat >>confdefs.h <<_ACEOF
9199 #define HAVE_STDINT_H_WITH_UINTMAX 1
9207 { echo "$as_me:$LINENO: checking for intmax_t" >&5
9208 echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6; }
9209 if test "${gt_cv_c_intmax_t+set}" = set; then
9210 echo $ECHO_N "(cached) $ECHO_C" >&6
9212 cat >conftest.$ac_ext <<_ACEOF
9215 cat confdefs.h >>conftest.$ac_ext
9216 cat >>conftest.$ac_ext <<_ACEOF
9217 /* end confdefs.h. */
9221 #if HAVE_STDINT_H_WITH_UINTMAX
9224 #if HAVE_INTTYPES_H_WITH_UINTMAX
9225 #include <inttypes.h>
9236 rm -f conftest.$ac_objext
9237 if { (ac_try="$ac_compile"
9239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9240 *) ac_try_echo=$ac_try;;
9242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9243 (eval "$ac_compile") 2>conftest.er1
9245 grep -v '^ *+' conftest.er1 >conftest.err
9247 cat conftest.err >&5
9248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9249 (exit $ac_status); } &&
9250 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9251 { (case "(($ac_try" in
9252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9253 *) ac_try_echo=$ac_try;;
9255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9256 (eval "$ac_try") 2>&5
9258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9259 (exit $ac_status); }; } &&
9260 { ac_try='test -s conftest.$ac_objext'
9261 { (case "(($ac_try" in
9262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9263 *) ac_try_echo=$ac_try;;
9265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9266 (eval "$ac_try") 2>&5
9268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9269 (exit $ac_status); }; }; then
9270 gt_cv_c_intmax_t=yes
9272 echo "$as_me: failed program was:" >&5
9273 sed 's/^/| /' conftest.$ac_ext >&5
9278 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9280 { echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
9281 echo "${ECHO_T}$gt_cv_c_intmax_t" >&6; }
9282 if test $gt_cv_c_intmax_t = yes; then
9284 cat >>confdefs.h <<\_ACEOF
9285 #define HAVE_INTMAX_T 1
9292 { echo "$as_me:$LINENO: checking whether printf() supports POSIX/XSI format strings" >&5
9293 echo $ECHO_N "checking whether printf() supports POSIX/XSI format strings... $ECHO_C" >&6; }
9294 if test "${gt_cv_func_printf_posix+set}" = set; then
9295 echo $ECHO_N "(cached) $ECHO_C" >&6
9298 if test "$cross_compiling" = yes; then
9300 cat >conftest.$ac_ext <<_ACEOF
9303 cat confdefs.h >>conftest.$ac_ext
9304 cat >>conftest.$ac_ext <<_ACEOF
9305 /* end confdefs.h. */
9307 #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
9312 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9313 $EGREP "notposix" >/dev/null 2>&1; then
9314 gt_cv_func_printf_posix="guessing no"
9316 gt_cv_func_printf_posix="guessing yes"
9322 cat >conftest.$ac_ext <<_ACEOF
9325 cat confdefs.h >>conftest.$ac_ext
9326 cat >>conftest.$ac_ext <<_ACEOF
9327 /* end confdefs.h. */
9331 /* The string "%2$d %1$d", with dollar characters protected from the shell's
9332 dollar expansion (possibly an autoconf bug). */
9333 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
9334 static char buf[100];
9337 sprintf (buf, format, 33, 55);
9338 return (strcmp (buf, "55 33") != 0);
9341 rm -f conftest$ac_exeext
9342 if { (ac_try="$ac_link"
9344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9345 *) ac_try_echo=$ac_try;;
9347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9348 (eval "$ac_link") 2>&5
9350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9351 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9352 { (case "(($ac_try" in
9353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9354 *) ac_try_echo=$ac_try;;
9356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9357 (eval "$ac_try") 2>&5
9359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9360 (exit $ac_status); }; }; then
9361 gt_cv_func_printf_posix=yes
9363 echo "$as_me: program exited with status $ac_status" >&5
9364 echo "$as_me: failed program was:" >&5
9365 sed 's/^/| /' conftest.$ac_ext >&5
9368 gt_cv_func_printf_posix=no
9370 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9376 { echo "$as_me:$LINENO: result: $gt_cv_func_printf_posix" >&5
9377 echo "${ECHO_T}$gt_cv_func_printf_posix" >&6; }
9378 case $gt_cv_func_printf_posix in
9381 cat >>confdefs.h <<\_ACEOF
9382 #define HAVE_POSIX_PRINTF 1
9388 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
9389 # for constant arguments. Useless!
9390 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
9391 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
9392 if test "${ac_cv_working_alloca_h+set}" = set; then
9393 echo $ECHO_N "(cached) $ECHO_C" >&6
9395 cat >conftest.$ac_ext <<_ACEOF
9398 cat confdefs.h >>conftest.$ac_ext
9399 cat >>conftest.$ac_ext <<_ACEOF
9400 /* end confdefs.h. */
9405 char *p = (char *) alloca (2 * sizeof (int));
9411 rm -f conftest.$ac_objext conftest$ac_exeext
9412 if { (ac_try="$ac_link"
9414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9415 *) ac_try_echo=$ac_try;;
9417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9418 (eval "$ac_link") 2>conftest.er1
9420 grep -v '^ *+' conftest.er1 >conftest.err
9422 cat conftest.err >&5
9423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9424 (exit $ac_status); } &&
9425 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9426 { (case "(($ac_try" in
9427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9428 *) ac_try_echo=$ac_try;;
9430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9431 (eval "$ac_try") 2>&5
9433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9434 (exit $ac_status); }; } &&
9435 { ac_try='test -s conftest$ac_exeext'
9436 { (case "(($ac_try" in
9437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9438 *) ac_try_echo=$ac_try;;
9440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9441 (eval "$ac_try") 2>&5
9443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9444 (exit $ac_status); }; }; then
9445 ac_cv_working_alloca_h=yes
9447 echo "$as_me: failed program was:" >&5
9448 sed 's/^/| /' conftest.$ac_ext >&5
9450 ac_cv_working_alloca_h=no
9453 rm -f core conftest.err conftest.$ac_objext \
9454 conftest$ac_exeext conftest.$ac_ext
9456 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
9457 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
9458 if test $ac_cv_working_alloca_h = yes; then
9460 cat >>confdefs.h <<\_ACEOF
9461 #define HAVE_ALLOCA_H 1
9466 { echo "$as_me:$LINENO: checking for alloca" >&5
9467 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
9468 if test "${ac_cv_func_alloca_works+set}" = set; then
9469 echo $ECHO_N "(cached) $ECHO_C" >&6
9471 cat >conftest.$ac_ext <<_ACEOF
9474 cat confdefs.h >>conftest.$ac_ext
9475 cat >>conftest.$ac_ext <<_ACEOF
9476 /* end confdefs.h. */
9478 # define alloca __builtin_alloca
9481 # include <malloc.h>
9482 # define alloca _alloca
9485 # include <alloca.h>
9490 # ifndef alloca /* predefined by HP cc +Olibcalls */
9501 char *p = (char *) alloca (1);
9507 rm -f conftest.$ac_objext conftest$ac_exeext
9508 if { (ac_try="$ac_link"
9510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9511 *) ac_try_echo=$ac_try;;
9513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9514 (eval "$ac_link") 2>conftest.er1
9516 grep -v '^ *+' conftest.er1 >conftest.err
9518 cat conftest.err >&5
9519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9520 (exit $ac_status); } &&
9521 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9522 { (case "(($ac_try" in
9523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9524 *) ac_try_echo=$ac_try;;
9526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9527 (eval "$ac_try") 2>&5
9529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9530 (exit $ac_status); }; } &&
9531 { ac_try='test -s conftest$ac_exeext'
9532 { (case "(($ac_try" in
9533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9534 *) ac_try_echo=$ac_try;;
9536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9537 (eval "$ac_try") 2>&5
9539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9540 (exit $ac_status); }; }; then
9541 ac_cv_func_alloca_works=yes
9543 echo "$as_me: failed program was:" >&5
9544 sed 's/^/| /' conftest.$ac_ext >&5
9546 ac_cv_func_alloca_works=no
9549 rm -f core conftest.err conftest.$ac_objext \
9550 conftest$ac_exeext conftest.$ac_ext
9552 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
9553 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
9555 if test $ac_cv_func_alloca_works = yes; then
9557 cat >>confdefs.h <<\_ACEOF
9558 #define HAVE_ALLOCA 1
9562 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
9563 # that cause trouble. Some versions do not even contain alloca or
9564 # contain a buggy version. If you still want to use their alloca,
9565 # use ar to extract alloca.o from them instead of compiling alloca.c.
9567 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
9569 cat >>confdefs.h <<\_ACEOF
9574 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
9575 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
9576 if test "${ac_cv_os_cray+set}" = set; then
9577 echo $ECHO_N "(cached) $ECHO_C" >&6
9579 cat >conftest.$ac_ext <<_ACEOF
9582 cat confdefs.h >>conftest.$ac_ext
9583 cat >>conftest.$ac_ext <<_ACEOF
9584 /* end confdefs.h. */
9585 #if defined CRAY && ! defined CRAY2
9592 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9593 $EGREP "webecray" >/dev/null 2>&1; then
9601 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
9602 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
9603 if test $ac_cv_os_cray = yes; then
9604 for ac_func in _getb67 GETB67 getb67; do
9605 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9606 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9607 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9608 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9609 echo $ECHO_N "(cached) $ECHO_C" >&6
9611 cat >conftest.$ac_ext <<_ACEOF
9614 cat confdefs.h >>conftest.$ac_ext
9615 cat >>conftest.$ac_ext <<_ACEOF
9616 /* end confdefs.h. */
9617 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9618 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9619 #define $ac_func innocuous_$ac_func
9621 /* System header to define __stub macros and hopefully few prototypes,
9622 which can conflict with char $ac_func (); below.
9623 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9624 <limits.h> exists even on freestanding compilers. */
9627 # include <limits.h>
9629 # include <assert.h>
9634 /* Override any GCC internal prototype to avoid an error.
9635 Use char because int might match the return type of a GCC
9636 builtin and then its argument prototype would still apply. */
9641 /* The GNU C library defines this for functions which it implements
9642 to always fail with ENOSYS. Some functions are actually named
9643 something starting with __ and the normal name is an alias. */
9644 #if defined __stub_$ac_func || defined __stub___$ac_func
9656 rm -f conftest.$ac_objext conftest$ac_exeext
9657 if { (ac_try="$ac_link"
9659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9660 *) ac_try_echo=$ac_try;;
9662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9663 (eval "$ac_link") 2>conftest.er1
9665 grep -v '^ *+' conftest.er1 >conftest.err
9667 cat conftest.err >&5
9668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9669 (exit $ac_status); } &&
9670 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9671 { (case "(($ac_try" in
9672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9673 *) ac_try_echo=$ac_try;;
9675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9676 (eval "$ac_try") 2>&5
9678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9679 (exit $ac_status); }; } &&
9680 { ac_try='test -s conftest$ac_exeext'
9681 { (case "(($ac_try" in
9682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9683 *) ac_try_echo=$ac_try;;
9685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9686 (eval "$ac_try") 2>&5
9688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9689 (exit $ac_status); }; }; then
9690 eval "$as_ac_var=yes"
9692 echo "$as_me: failed program was:" >&5
9693 sed 's/^/| /' conftest.$ac_ext >&5
9695 eval "$as_ac_var=no"
9698 rm -f core conftest.err conftest.$ac_objext \
9699 conftest$ac_exeext conftest.$ac_ext
9701 ac_res=`eval echo '${'$as_ac_var'}'`
9702 { echo "$as_me:$LINENO: result: $ac_res" >&5
9703 echo "${ECHO_T}$ac_res" >&6; }
9704 if test `eval echo '${'$as_ac_var'}'` = yes; then
9706 cat >>confdefs.h <<_ACEOF
9707 #define CRAY_STACKSEG_END $ac_func
9716 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
9717 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
9718 if test "${ac_cv_c_stack_direction+set}" = set; then
9719 echo $ECHO_N "(cached) $ECHO_C" >&6
9721 if test "$cross_compiling" = yes; then
9722 ac_cv_c_stack_direction=0
9724 cat >conftest.$ac_ext <<_ACEOF
9727 cat confdefs.h >>conftest.$ac_ext
9728 cat >>conftest.$ac_ext <<_ACEOF
9729 /* end confdefs.h. */
9730 $ac_includes_default
9732 find_stack_direction ()
9734 static char *addr = 0;
9739 return find_stack_direction ();
9742 return (&dummy > addr) ? 1 : -1;
9748 return find_stack_direction () < 0;
9751 rm -f conftest$ac_exeext
9752 if { (ac_try="$ac_link"
9754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9755 *) ac_try_echo=$ac_try;;
9757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9758 (eval "$ac_link") 2>&5
9760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9761 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9762 { (case "(($ac_try" in
9763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9764 *) ac_try_echo=$ac_try;;
9766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9767 (eval "$ac_try") 2>&5
9769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9770 (exit $ac_status); }; }; then
9771 ac_cv_c_stack_direction=1
9773 echo "$as_me: program exited with status $ac_status" >&5
9774 echo "$as_me: failed program was:" >&5
9775 sed 's/^/| /' conftest.$ac_ext >&5
9778 ac_cv_c_stack_direction=-1
9780 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9785 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
9786 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
9788 cat >>confdefs.h <<_ACEOF
9789 #define STACK_DIRECTION $ac_cv_c_stack_direction
9797 for ac_header in stdlib.h unistd.h
9799 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9800 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9801 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9802 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9803 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9804 echo $ECHO_N "(cached) $ECHO_C" >&6
9806 ac_res=`eval echo '${'$as_ac_Header'}'`
9807 { echo "$as_me:$LINENO: result: $ac_res" >&5
9808 echo "${ECHO_T}$ac_res" >&6; }
9810 # Is the header compilable?
9811 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9812 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9813 cat >conftest.$ac_ext <<_ACEOF
9816 cat confdefs.h >>conftest.$ac_ext
9817 cat >>conftest.$ac_ext <<_ACEOF
9818 /* end confdefs.h. */
9819 $ac_includes_default
9820 #include <$ac_header>
9822 rm -f conftest.$ac_objext
9823 if { (ac_try="$ac_compile"
9825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9826 *) ac_try_echo=$ac_try;;
9828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9829 (eval "$ac_compile") 2>conftest.er1
9831 grep -v '^ *+' conftest.er1 >conftest.err
9833 cat conftest.err >&5
9834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9835 (exit $ac_status); } &&
9836 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9837 { (case "(($ac_try" in
9838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9839 *) ac_try_echo=$ac_try;;
9841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9842 (eval "$ac_try") 2>&5
9844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9845 (exit $ac_status); }; } &&
9846 { ac_try='test -s conftest.$ac_objext'
9847 { (case "(($ac_try" in
9848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9849 *) ac_try_echo=$ac_try;;
9851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9852 (eval "$ac_try") 2>&5
9854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9855 (exit $ac_status); }; }; then
9856 ac_header_compiler=yes
9858 echo "$as_me: failed program was:" >&5
9859 sed 's/^/| /' conftest.$ac_ext >&5
9861 ac_header_compiler=no
9864 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9865 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9866 echo "${ECHO_T}$ac_header_compiler" >&6; }
9868 # Is the header present?
9869 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9870 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9871 cat >conftest.$ac_ext <<_ACEOF
9874 cat confdefs.h >>conftest.$ac_ext
9875 cat >>conftest.$ac_ext <<_ACEOF
9876 /* end confdefs.h. */
9877 #include <$ac_header>
9879 if { (ac_try="$ac_cpp conftest.$ac_ext"
9881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9882 *) ac_try_echo=$ac_try;;
9884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9885 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9887 grep -v '^ *+' conftest.er1 >conftest.err
9889 cat conftest.err >&5
9890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9891 (exit $ac_status); } >/dev/null; then
9892 if test -s conftest.err; then
9893 ac_cpp_err=$ac_c_preproc_warn_flag
9894 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9901 if test -z "$ac_cpp_err"; then
9902 ac_header_preproc=yes
9904 echo "$as_me: failed program was:" >&5
9905 sed 's/^/| /' conftest.$ac_ext >&5
9907 ac_header_preproc=no
9910 rm -f conftest.err conftest.$ac_ext
9911 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9912 echo "${ECHO_T}$ac_header_preproc" >&6; }
9914 # So? What about this header?
9915 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9917 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9918 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9919 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9920 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9921 ac_header_preproc=yes
9924 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9925 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9926 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9927 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9928 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9929 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9930 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9931 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9932 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9933 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9934 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9935 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9939 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9940 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9941 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9942 echo $ECHO_N "(cached) $ECHO_C" >&6
9944 eval "$as_ac_Header=\$ac_header_preproc"
9946 ac_res=`eval echo '${'$as_ac_Header'}'`
9947 { echo "$as_me:$LINENO: result: $ac_res" >&5
9948 echo "${ECHO_T}$ac_res" >&6; }
9951 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9952 cat >>confdefs.h <<_ACEOF
9953 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9961 for ac_func in getpagesize
9963 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9964 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9965 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9966 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9967 echo $ECHO_N "(cached) $ECHO_C" >&6
9969 cat >conftest.$ac_ext <<_ACEOF
9972 cat confdefs.h >>conftest.$ac_ext
9973 cat >>conftest.$ac_ext <<_ACEOF
9974 /* end confdefs.h. */
9975 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9976 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9977 #define $ac_func innocuous_$ac_func
9979 /* System header to define __stub macros and hopefully few prototypes,
9980 which can conflict with char $ac_func (); below.
9981 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9982 <limits.h> exists even on freestanding compilers. */
9985 # include <limits.h>
9987 # include <assert.h>
9992 /* Override any GCC internal prototype to avoid an error.
9993 Use char because int might match the return type of a GCC
9994 builtin and then its argument prototype would still apply. */
9999 /* The GNU C library defines this for functions which it implements
10000 to always fail with ENOSYS. Some functions are actually named
10001 something starting with __ and the normal name is an alias. */
10002 #if defined __stub_$ac_func || defined __stub___$ac_func
10009 return $ac_func ();
10014 rm -f conftest.$ac_objext conftest$ac_exeext
10015 if { (ac_try="$ac_link"
10016 case "(($ac_try" in
10017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10018 *) ac_try_echo=$ac_try;;
10020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10021 (eval "$ac_link") 2>conftest.er1
10023 grep -v '^ *+' conftest.er1 >conftest.err
10025 cat conftest.err >&5
10026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10027 (exit $ac_status); } &&
10028 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10029 { (case "(($ac_try" in
10030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10031 *) ac_try_echo=$ac_try;;
10033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10034 (eval "$ac_try") 2>&5
10036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10037 (exit $ac_status); }; } &&
10038 { ac_try='test -s conftest$ac_exeext'
10039 { (case "(($ac_try" in
10040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10041 *) ac_try_echo=$ac_try;;
10043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10044 (eval "$ac_try") 2>&5
10046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10047 (exit $ac_status); }; }; then
10048 eval "$as_ac_var=yes"
10050 echo "$as_me: failed program was:" >&5
10051 sed 's/^/| /' conftest.$ac_ext >&5
10053 eval "$as_ac_var=no"
10056 rm -f core conftest.err conftest.$ac_objext \
10057 conftest$ac_exeext conftest.$ac_ext
10059 ac_res=`eval echo '${'$as_ac_var'}'`
10060 { echo "$as_me:$LINENO: result: $ac_res" >&5
10061 echo "${ECHO_T}$ac_res" >&6; }
10062 if test `eval echo '${'$as_ac_var'}'` = yes; then
10063 cat >>confdefs.h <<_ACEOF
10064 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10070 { echo "$as_me:$LINENO: checking for working mmap" >&5
10071 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
10072 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
10073 echo $ECHO_N "(cached) $ECHO_C" >&6
10075 if test "$cross_compiling" = yes; then
10076 ac_cv_func_mmap_fixed_mapped=no
10078 cat >conftest.$ac_ext <<_ACEOF
10081 cat confdefs.h >>conftest.$ac_ext
10082 cat >>conftest.$ac_ext <<_ACEOF
10083 /* end confdefs.h. */
10084 $ac_includes_default
10085 /* malloc might have been renamed as rpl_malloc. */
10088 /* Thanks to Mike Haertel and Jim Avera for this test.
10089 Here is a matrix of mmap possibilities:
10090 mmap private not fixed
10091 mmap private fixed at somewhere currently unmapped
10092 mmap private fixed at somewhere already mapped
10093 mmap shared not fixed
10094 mmap shared fixed at somewhere currently unmapped
10095 mmap shared fixed at somewhere already mapped
10096 For private mappings, we should verify that changes cannot be read()
10097 back from the file, nor mmap's back from the file at a different
10098 address. (There have been systems where private was not correctly
10099 implemented like the infamous i386 svr4.0, and systems where the
10100 VM page cache was not coherent with the file system buffer cache
10101 like early versions of FreeBSD and possibly contemporary NetBSD.)
10102 For shared mappings, we should conversely verify that changes get
10103 propagated back to all the places they're supposed to be.
10105 Grep wants private fixed already mapped.
10106 The main things grep needs to know about mmap are:
10107 * does it exist and is it safe to write into the mmap'd area
10108 * how to use it (BSD variants) */
10111 #include <sys/mman.h>
10113 #if !STDC_HEADERS && !HAVE_STDLIB_H
10117 /* This mess was copied from the GNU getpagesize.h. */
10118 #if !HAVE_GETPAGESIZE
10119 /* Assume that all systems that can run configure have sys/param.h. */
10120 # if !HAVE_SYS_PARAM_H
10121 # define HAVE_SYS_PARAM_H 1
10124 # ifdef _SC_PAGESIZE
10125 # define getpagesize() sysconf(_SC_PAGESIZE)
10126 # else /* no _SC_PAGESIZE */
10127 # if HAVE_SYS_PARAM_H
10128 # include <sys/param.h>
10129 # ifdef EXEC_PAGESIZE
10130 # define getpagesize() EXEC_PAGESIZE
10131 # else /* no EXEC_PAGESIZE */
10133 # define getpagesize() NBPG * CLSIZE
10136 # endif /* no CLSIZE */
10137 # else /* no NBPG */
10139 # define getpagesize() NBPC
10140 # else /* no NBPC */
10142 # define getpagesize() PAGESIZE
10143 # endif /* PAGESIZE */
10144 # endif /* no NBPC */
10145 # endif /* no NBPG */
10146 # endif /* no EXEC_PAGESIZE */
10147 # else /* no HAVE_SYS_PARAM_H */
10148 # define getpagesize() 8192 /* punt totally */
10149 # endif /* no HAVE_SYS_PARAM_H */
10150 # endif /* no _SC_PAGESIZE */
10152 #endif /* no HAVE_GETPAGESIZE */
10157 char *data, *data2, *data3;
10161 pagesize = getpagesize ();
10163 /* First, make a file with some known garbage in it. */
10164 data = (char *) malloc (pagesize);
10167 for (i = 0; i < pagesize; ++i)
10168 *(data + i) = rand ();
10170 fd = creat ("conftest.mmap", 0600);
10173 if (write (fd, data, pagesize) != pagesize)
10177 /* Next, try to mmap the file at a fixed address which already has
10178 something else allocated at it. If we can, also make sure that
10179 we see the same garbage. */
10180 fd = open ("conftest.mmap", O_RDWR);
10183 data2 = (char *) malloc (2 * pagesize);
10186 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
10187 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10188 MAP_PRIVATE | MAP_FIXED, fd, 0L))
10190 for (i = 0; i < pagesize; ++i)
10191 if (*(data + i) != *(data2 + i))
10194 /* Finally, make sure that changes to the mapped area do not
10195 percolate back to the file as seen by read(). (This is a bug on
10196 some variants of i386 svr4.0.) */
10197 for (i = 0; i < pagesize; ++i)
10198 *(data2 + i) = *(data2 + i) + 1;
10199 data3 = (char *) malloc (pagesize);
10202 if (read (fd, data3, pagesize) != pagesize)
10204 for (i = 0; i < pagesize; ++i)
10205 if (*(data + i) != *(data3 + i))
10211 rm -f conftest$ac_exeext
10212 if { (ac_try="$ac_link"
10213 case "(($ac_try" in
10214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10215 *) ac_try_echo=$ac_try;;
10217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10218 (eval "$ac_link") 2>&5
10220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10221 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10222 { (case "(($ac_try" in
10223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10224 *) ac_try_echo=$ac_try;;
10226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10227 (eval "$ac_try") 2>&5
10229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10230 (exit $ac_status); }; }; then
10231 ac_cv_func_mmap_fixed_mapped=yes
10233 echo "$as_me: program exited with status $ac_status" >&5
10234 echo "$as_me: failed program was:" >&5
10235 sed 's/^/| /' conftest.$ac_ext >&5
10237 ( exit $ac_status )
10238 ac_cv_func_mmap_fixed_mapped=no
10240 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10245 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
10246 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
10247 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10249 cat >>confdefs.h <<\_ACEOF
10250 #define HAVE_MMAP 1
10254 rm -f conftest.mmap
10257 { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
10258 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6; }
10259 if test "${ac_cv_gnu_library_2_1+set}" = set; then
10260 echo $ECHO_N "(cached) $ECHO_C" >&6
10262 cat >conftest.$ac_ext <<_ACEOF
10265 cat confdefs.h >>conftest.$ac_ext
10266 cat >>conftest.$ac_ext <<_ACEOF
10267 /* end confdefs.h. */
10269 #include <features.h>
10270 #ifdef __GNU_LIBRARY__
10271 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
10277 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10278 $EGREP "Lucky GNU user" >/dev/null 2>&1; then
10279 ac_cv_gnu_library_2_1=yes
10281 ac_cv_gnu_library_2_1=no
10288 { echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
10289 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6; }
10291 GLIBC21="$ac_cv_gnu_library_2_1"
10296 { echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
10297 echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6; }
10298 if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
10299 echo $ECHO_N "(cached) $ECHO_C" >&6
10302 if test "$cross_compiling" = yes; then
10304 # Guess based on the CPU.
10305 case "$host_cpu" in
10306 alpha* | i3456786 | m68k | s390*)
10307 gt_cv_int_divbyzero_sigfpe="guessing yes";;
10309 gt_cv_int_divbyzero_sigfpe="guessing no";;
10313 cat >conftest.$ac_ext <<_ACEOF
10316 cat confdefs.h >>conftest.$ac_ext
10317 cat >>conftest.$ac_ext <<_ACEOF
10318 /* end confdefs.h. */
10320 #include <stdlib.h>
10321 #include <signal.h>
10325 sigfpe_handler (int sig)
10327 sigfpe_handler (sig) int sig;
10330 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
10331 exit (sig != SIGFPE);
10341 signal (SIGFPE, sigfpe_handler);
10342 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
10343 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
10344 signal (SIGTRAP, sigfpe_handler);
10346 /* Linux/SPARC yields signal SIGILL. */
10347 #if defined (__sparc__) && defined (__linux__)
10348 signal (SIGILL, sigfpe_handler);
10357 rm -f conftest$ac_exeext
10358 if { (ac_try="$ac_link"
10359 case "(($ac_try" in
10360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10361 *) ac_try_echo=$ac_try;;
10363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10364 (eval "$ac_link") 2>&5
10366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10367 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10368 { (case "(($ac_try" in
10369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10370 *) ac_try_echo=$ac_try;;
10372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10373 (eval "$ac_try") 2>&5
10375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10376 (exit $ac_status); }; }; then
10377 gt_cv_int_divbyzero_sigfpe=yes
10379 echo "$as_me: program exited with status $ac_status" >&5
10380 echo "$as_me: failed program was:" >&5
10381 sed 's/^/| /' conftest.$ac_ext >&5
10383 ( exit $ac_status )
10384 gt_cv_int_divbyzero_sigfpe=no
10386 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10392 { echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
10393 echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6; }
10394 case "$gt_cv_int_divbyzero_sigfpe" in
10399 cat >>confdefs.h <<_ACEOF
10400 #define INTDIV0_RAISES_SIGFPE $value
10405 { echo "$as_me:$LINENO: checking for unsigned long long" >&5
10406 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6; }
10407 if test "${ac_cv_type_unsigned_long_long+set}" = set; then
10408 echo $ECHO_N "(cached) $ECHO_C" >&6
10410 cat >conftest.$ac_ext <<_ACEOF
10413 cat confdefs.h >>conftest.$ac_ext
10414 cat >>conftest.$ac_ext <<_ACEOF
10415 /* end confdefs.h. */
10416 unsigned long long ull = 1ULL; int i = 63;
10420 unsigned long long ullmax = (unsigned long long) -1;
10421 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
10426 rm -f conftest.$ac_objext conftest$ac_exeext
10427 if { (ac_try="$ac_link"
10428 case "(($ac_try" in
10429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10430 *) ac_try_echo=$ac_try;;
10432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10433 (eval "$ac_link") 2>conftest.er1
10435 grep -v '^ *+' conftest.er1 >conftest.err
10437 cat conftest.err >&5
10438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10439 (exit $ac_status); } &&
10440 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10441 { (case "(($ac_try" in
10442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10443 *) ac_try_echo=$ac_try;;
10445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10446 (eval "$ac_try") 2>&5
10448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10449 (exit $ac_status); }; } &&
10450 { ac_try='test -s conftest$ac_exeext'
10451 { (case "(($ac_try" in
10452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10453 *) ac_try_echo=$ac_try;;
10455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10456 (eval "$ac_try") 2>&5
10458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10459 (exit $ac_status); }; }; then
10460 ac_cv_type_unsigned_long_long=yes
10462 echo "$as_me: failed program was:" >&5
10463 sed 's/^/| /' conftest.$ac_ext >&5
10465 ac_cv_type_unsigned_long_long=no
10468 rm -f core conftest.err conftest.$ac_objext \
10469 conftest$ac_exeext conftest.$ac_ext
10471 { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
10472 echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6; }
10473 if test $ac_cv_type_unsigned_long_long = yes; then
10475 cat >>confdefs.h <<\_ACEOF
10476 #define HAVE_UNSIGNED_LONG_LONG 1
10484 if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
10486 test $ac_cv_type_unsigned_long_long = yes \
10487 && ac_type='unsigned long long' \
10488 || ac_type='unsigned long'
10490 cat >>confdefs.h <<_ACEOF
10491 #define uintmax_t $ac_type
10496 cat >>confdefs.h <<\_ACEOF
10497 #define HAVE_UINTMAX_T 1
10503 { echo "$as_me:$LINENO: checking for inttypes.h" >&5
10504 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
10505 if test "${gt_cv_header_inttypes_h+set}" = set; then
10506 echo $ECHO_N "(cached) $ECHO_C" >&6
10509 cat >conftest.$ac_ext <<_ACEOF
10512 cat confdefs.h >>conftest.$ac_ext
10513 cat >>conftest.$ac_ext <<_ACEOF
10514 /* end confdefs.h. */
10515 #include <sys/types.h>
10516 #include <inttypes.h>
10525 rm -f conftest.$ac_objext
10526 if { (ac_try="$ac_compile"
10527 case "(($ac_try" in
10528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10529 *) ac_try_echo=$ac_try;;
10531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10532 (eval "$ac_compile") 2>conftest.er1
10534 grep -v '^ *+' conftest.er1 >conftest.err
10536 cat conftest.err >&5
10537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10538 (exit $ac_status); } &&
10539 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10540 { (case "(($ac_try" in
10541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10542 *) ac_try_echo=$ac_try;;
10544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10545 (eval "$ac_try") 2>&5
10547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10548 (exit $ac_status); }; } &&
10549 { ac_try='test -s conftest.$ac_objext'
10550 { (case "(($ac_try" in
10551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10552 *) ac_try_echo=$ac_try;;
10554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10555 (eval "$ac_try") 2>&5
10557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10558 (exit $ac_status); }; }; then
10559 gt_cv_header_inttypes_h=yes
10561 echo "$as_me: failed program was:" >&5
10562 sed 's/^/| /' conftest.$ac_ext >&5
10564 gt_cv_header_inttypes_h=no
10567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10570 { echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
10571 echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6; }
10572 if test $gt_cv_header_inttypes_h = yes; then
10574 cat >>confdefs.h <<_ACEOF
10575 #define HAVE_INTTYPES_H 1
10582 if test $gt_cv_header_inttypes_h = yes; then
10583 { echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
10584 echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6; }
10585 if test "${gt_cv_inttypes_pri_broken+set}" = set; then
10586 echo $ECHO_N "(cached) $ECHO_C" >&6
10589 cat >conftest.$ac_ext <<_ACEOF
10592 cat confdefs.h >>conftest.$ac_ext
10593 cat >>conftest.$ac_ext <<_ACEOF
10594 /* end confdefs.h. */
10595 #include <inttypes.h>
10608 rm -f conftest.$ac_objext
10609 if { (ac_try="$ac_compile"
10610 case "(($ac_try" in
10611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10612 *) ac_try_echo=$ac_try;;
10614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10615 (eval "$ac_compile") 2>conftest.er1
10617 grep -v '^ *+' conftest.er1 >conftest.err
10619 cat conftest.err >&5
10620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10621 (exit $ac_status); } &&
10622 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10623 { (case "(($ac_try" in
10624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10625 *) ac_try_echo=$ac_try;;
10627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10628 (eval "$ac_try") 2>&5
10630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10631 (exit $ac_status); }; } &&
10632 { ac_try='test -s conftest.$ac_objext'
10633 { (case "(($ac_try" in
10634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10635 *) ac_try_echo=$ac_try;;
10637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10638 (eval "$ac_try") 2>&5
10640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10641 (exit $ac_status); }; }; then
10642 gt_cv_inttypes_pri_broken=no
10644 echo "$as_me: failed program was:" >&5
10645 sed 's/^/| /' conftest.$ac_ext >&5
10647 gt_cv_inttypes_pri_broken=yes
10650 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10653 { echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
10654 echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6; }
10656 if test "$gt_cv_inttypes_pri_broken" = yes; then
10658 cat >>confdefs.h <<_ACEOF
10659 #define PRI_MACROS_BROKEN 1
10666 for ac_header in stdint.h
10668 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10669 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10670 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10671 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10672 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10673 echo $ECHO_N "(cached) $ECHO_C" >&6
10675 ac_res=`eval echo '${'$as_ac_Header'}'`
10676 { echo "$as_me:$LINENO: result: $ac_res" >&5
10677 echo "${ECHO_T}$ac_res" >&6; }
10679 # Is the header compilable?
10680 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10681 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10682 cat >conftest.$ac_ext <<_ACEOF
10685 cat confdefs.h >>conftest.$ac_ext
10686 cat >>conftest.$ac_ext <<_ACEOF
10687 /* end confdefs.h. */
10688 $ac_includes_default
10689 #include <$ac_header>
10691 rm -f conftest.$ac_objext
10692 if { (ac_try="$ac_compile"
10693 case "(($ac_try" in
10694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10695 *) ac_try_echo=$ac_try;;
10697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10698 (eval "$ac_compile") 2>conftest.er1
10700 grep -v '^ *+' conftest.er1 >conftest.err
10702 cat conftest.err >&5
10703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10704 (exit $ac_status); } &&
10705 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10706 { (case "(($ac_try" in
10707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10708 *) ac_try_echo=$ac_try;;
10710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10711 (eval "$ac_try") 2>&5
10713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10714 (exit $ac_status); }; } &&
10715 { ac_try='test -s conftest.$ac_objext'
10716 { (case "(($ac_try" in
10717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10718 *) ac_try_echo=$ac_try;;
10720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10721 (eval "$ac_try") 2>&5
10723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10724 (exit $ac_status); }; }; then
10725 ac_header_compiler=yes
10727 echo "$as_me: failed program was:" >&5
10728 sed 's/^/| /' conftest.$ac_ext >&5
10730 ac_header_compiler=no
10733 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10734 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10735 echo "${ECHO_T}$ac_header_compiler" >&6; }
10737 # Is the header present?
10738 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10739 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10740 cat >conftest.$ac_ext <<_ACEOF
10743 cat confdefs.h >>conftest.$ac_ext
10744 cat >>conftest.$ac_ext <<_ACEOF
10745 /* end confdefs.h. */
10746 #include <$ac_header>
10748 if { (ac_try="$ac_cpp conftest.$ac_ext"
10749 case "(($ac_try" in
10750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10751 *) ac_try_echo=$ac_try;;
10753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10754 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10756 grep -v '^ *+' conftest.er1 >conftest.err
10758 cat conftest.err >&5
10759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10760 (exit $ac_status); } >/dev/null; then
10761 if test -s conftest.err; then
10762 ac_cpp_err=$ac_c_preproc_warn_flag
10763 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10770 if test -z "$ac_cpp_err"; then
10771 ac_header_preproc=yes
10773 echo "$as_me: failed program was:" >&5
10774 sed 's/^/| /' conftest.$ac_ext >&5
10776 ac_header_preproc=no
10779 rm -f conftest.err conftest.$ac_ext
10780 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10781 echo "${ECHO_T}$ac_header_preproc" >&6; }
10783 # So? What about this header?
10784 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10786 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10787 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10788 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10789 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10790 ac_header_preproc=yes
10793 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10794 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10795 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10796 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10797 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10798 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10799 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10800 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10801 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10802 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10803 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10804 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10808 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10809 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10810 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10811 echo $ECHO_N "(cached) $ECHO_C" >&6
10813 eval "$as_ac_Header=\$ac_header_preproc"
10815 ac_res=`eval echo '${'$as_ac_Header'}'`
10816 { echo "$as_me:$LINENO: result: $ac_res" >&5
10817 echo "${ECHO_T}$ac_res" >&6; }
10820 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10821 cat >>confdefs.h <<_ACEOF
10822 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10829 { echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
10830 echo $ECHO_N "checking for SIZE_MAX... $ECHO_C" >&6; }
10832 cat >conftest.$ac_ext <<_ACEOF
10835 cat confdefs.h >>conftest.$ac_ext
10836 cat >>conftest.$ac_ext <<_ACEOF
10837 /* end confdefs.h. */
10839 #include <limits.h>
10841 #include <stdint.h>
10848 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10849 $EGREP "Found it" >/dev/null 2>&1; then
10854 if test -z "$result"; then
10855 if test "$cross_compiling" = yes; then
10856 # Depending upon the size, compute the lo and hi bounds.
10857 cat >conftest.$ac_ext <<_ACEOF
10860 cat confdefs.h >>conftest.$ac_ext
10861 cat >>conftest.$ac_ext <<_ACEOF
10862 /* end confdefs.h. */
10863 #include <stddef.h>
10867 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= 0)];
10874 rm -f conftest.$ac_objext
10875 if { (ac_try="$ac_compile"
10876 case "(($ac_try" in
10877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10878 *) ac_try_echo=$ac_try;;
10880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10881 (eval "$ac_compile") 2>conftest.er1
10883 grep -v '^ *+' conftest.er1 >conftest.err
10885 cat conftest.err >&5
10886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10887 (exit $ac_status); } &&
10888 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10889 { (case "(($ac_try" in
10890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10891 *) ac_try_echo=$ac_try;;
10893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10894 (eval "$ac_try") 2>&5
10896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10897 (exit $ac_status); }; } &&
10898 { ac_try='test -s conftest.$ac_objext'
10899 { (case "(($ac_try" in
10900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10901 *) ac_try_echo=$ac_try;;
10903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10904 (eval "$ac_try") 2>&5
10906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10907 (exit $ac_status); }; }; then
10910 cat >conftest.$ac_ext <<_ACEOF
10913 cat confdefs.h >>conftest.$ac_ext
10914 cat >>conftest.$ac_ext <<_ACEOF
10915 /* end confdefs.h. */
10916 #include <stddef.h>
10920 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
10927 rm -f conftest.$ac_objext
10928 if { (ac_try="$ac_compile"
10929 case "(($ac_try" in
10930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10931 *) ac_try_echo=$ac_try;;
10933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10934 (eval "$ac_compile") 2>conftest.er1
10936 grep -v '^ *+' conftest.er1 >conftest.err
10938 cat conftest.err >&5
10939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10940 (exit $ac_status); } &&
10941 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10942 { (case "(($ac_try" in
10943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10944 *) ac_try_echo=$ac_try;;
10946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10947 (eval "$ac_try") 2>&5
10949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10950 (exit $ac_status); }; } &&
10951 { ac_try='test -s conftest.$ac_objext'
10952 { (case "(($ac_try" in
10953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10954 *) ac_try_echo=$ac_try;;
10956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10957 (eval "$ac_try") 2>&5
10959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10960 (exit $ac_status); }; }; then
10961 ac_hi=$ac_mid; break
10963 echo "$as_me: failed program was:" >&5
10964 sed 's/^/| /' conftest.$ac_ext >&5
10966 ac_lo=`expr $ac_mid + 1`
10967 if test $ac_lo -le $ac_mid; then
10971 ac_mid=`expr 2 '*' $ac_mid + 1`
10974 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10977 echo "$as_me: failed program was:" >&5
10978 sed 's/^/| /' conftest.$ac_ext >&5
10980 cat >conftest.$ac_ext <<_ACEOF
10983 cat confdefs.h >>conftest.$ac_ext
10984 cat >>conftest.$ac_ext <<_ACEOF
10985 /* end confdefs.h. */
10986 #include <stddef.h>
10990 static int test_array [1 - 2 * !((~(size_t)0 / 10) < 0)];
10997 rm -f conftest.$ac_objext
10998 if { (ac_try="$ac_compile"
10999 case "(($ac_try" in
11000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11001 *) ac_try_echo=$ac_try;;
11003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11004 (eval "$ac_compile") 2>conftest.er1
11006 grep -v '^ *+' conftest.er1 >conftest.err
11008 cat conftest.err >&5
11009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11010 (exit $ac_status); } &&
11011 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11012 { (case "(($ac_try" in
11013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11014 *) ac_try_echo=$ac_try;;
11016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11017 (eval "$ac_try") 2>&5
11019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11020 (exit $ac_status); }; } &&
11021 { ac_try='test -s conftest.$ac_objext'
11022 { (case "(($ac_try" in
11023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11024 *) ac_try_echo=$ac_try;;
11026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11027 (eval "$ac_try") 2>&5
11029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11030 (exit $ac_status); }; }; then
11033 cat >conftest.$ac_ext <<_ACEOF
11036 cat confdefs.h >>conftest.$ac_ext
11037 cat >>conftest.$ac_ext <<_ACEOF
11038 /* end confdefs.h. */
11039 #include <stddef.h>
11043 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= $ac_mid)];
11050 rm -f conftest.$ac_objext
11051 if { (ac_try="$ac_compile"
11052 case "(($ac_try" in
11053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11054 *) ac_try_echo=$ac_try;;
11056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11057 (eval "$ac_compile") 2>conftest.er1
11059 grep -v '^ *+' conftest.er1 >conftest.err
11061 cat conftest.err >&5
11062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11063 (exit $ac_status); } &&
11064 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11065 { (case "(($ac_try" in
11066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11067 *) ac_try_echo=$ac_try;;
11069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11070 (eval "$ac_try") 2>&5
11072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11073 (exit $ac_status); }; } &&
11074 { ac_try='test -s conftest.$ac_objext'
11075 { (case "(($ac_try" in
11076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11077 *) ac_try_echo=$ac_try;;
11079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11080 (eval "$ac_try") 2>&5
11082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11083 (exit $ac_status); }; }; then
11084 ac_lo=$ac_mid; break
11086 echo "$as_me: failed program was:" >&5
11087 sed 's/^/| /' conftest.$ac_ext >&5
11089 ac_hi=`expr '(' $ac_mid ')' - 1`
11090 if test $ac_mid -le $ac_hi; then
11094 ac_mid=`expr 2 '*' $ac_mid`
11097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11100 echo "$as_me: failed program was:" >&5
11101 sed 's/^/| /' conftest.$ac_ext >&5
11106 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11109 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11110 # Binary search between lo and hi bounds.
11111 while test "x$ac_lo" != "x$ac_hi"; do
11112 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11113 cat >conftest.$ac_ext <<_ACEOF
11116 cat confdefs.h >>conftest.$ac_ext
11117 cat >>conftest.$ac_ext <<_ACEOF
11118 /* end confdefs.h. */
11119 #include <stddef.h>
11123 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
11130 rm -f conftest.$ac_objext
11131 if { (ac_try="$ac_compile"
11132 case "(($ac_try" in
11133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11134 *) ac_try_echo=$ac_try;;
11136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11137 (eval "$ac_compile") 2>conftest.er1
11139 grep -v '^ *+' conftest.er1 >conftest.err
11141 cat conftest.err >&5
11142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11143 (exit $ac_status); } &&
11144 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11145 { (case "(($ac_try" in
11146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11147 *) ac_try_echo=$ac_try;;
11149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11150 (eval "$ac_try") 2>&5
11152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11153 (exit $ac_status); }; } &&
11154 { ac_try='test -s conftest.$ac_objext'
11155 { (case "(($ac_try" in
11156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11157 *) ac_try_echo=$ac_try;;
11159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11160 (eval "$ac_try") 2>&5
11162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11163 (exit $ac_status); }; }; then
11166 echo "$as_me: failed program was:" >&5
11167 sed 's/^/| /' conftest.$ac_ext >&5
11169 ac_lo=`expr '(' $ac_mid ')' + 1`
11172 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11175 ?*) res_hi=$ac_lo;;
11179 cat >conftest.$ac_ext <<_ACEOF
11182 cat confdefs.h >>conftest.$ac_ext
11183 cat >>conftest.$ac_ext <<_ACEOF
11184 /* end confdefs.h. */
11185 #include <stddef.h>
11186 static long int longval () { return ~(size_t)0 / 10; }
11187 static unsigned long int ulongval () { return ~(size_t)0 / 10; }
11189 #include <stdlib.h>
11194 FILE *f = fopen ("conftest.val", "w");
11197 if ((~(size_t)0 / 10) < 0)
11199 long int i = longval ();
11200 if (i != (~(size_t)0 / 10))
11202 fprintf (f, "%ld\n", i);
11206 unsigned long int i = ulongval ();
11207 if (i != (~(size_t)0 / 10))
11209 fprintf (f, "%lu\n", i);
11211 return ferror (f) || fclose (f) != 0;
11217 rm -f conftest$ac_exeext
11218 if { (ac_try="$ac_link"
11219 case "(($ac_try" in
11220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11221 *) ac_try_echo=$ac_try;;
11223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11224 (eval "$ac_link") 2>&5
11226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11227 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11228 { (case "(($ac_try" in
11229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11230 *) ac_try_echo=$ac_try;;
11232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11233 (eval "$ac_try") 2>&5
11235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11236 (exit $ac_status); }; }; then
11237 res_hi=`cat conftest.val`
11239 echo "$as_me: program exited with status $ac_status" >&5
11240 echo "$as_me: failed program was:" >&5
11241 sed 's/^/| /' conftest.$ac_ext >&5
11243 ( exit $ac_status )
11246 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11249 if test "$cross_compiling" = yes; then
11250 # Depending upon the size, compute the lo and hi bounds.
11251 cat >conftest.$ac_ext <<_ACEOF
11254 cat confdefs.h >>conftest.$ac_ext
11255 cat >>conftest.$ac_ext <<_ACEOF
11256 /* end confdefs.h. */
11257 #include <stddef.h>
11261 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= 0)];
11268 rm -f conftest.$ac_objext
11269 if { (ac_try="$ac_compile"
11270 case "(($ac_try" in
11271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11272 *) ac_try_echo=$ac_try;;
11274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11275 (eval "$ac_compile") 2>conftest.er1
11277 grep -v '^ *+' conftest.er1 >conftest.err
11279 cat conftest.err >&5
11280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11281 (exit $ac_status); } &&
11282 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11283 { (case "(($ac_try" in
11284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11285 *) ac_try_echo=$ac_try;;
11287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11288 (eval "$ac_try") 2>&5
11290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11291 (exit $ac_status); }; } &&
11292 { ac_try='test -s conftest.$ac_objext'
11293 { (case "(($ac_try" in
11294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11295 *) ac_try_echo=$ac_try;;
11297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11298 (eval "$ac_try") 2>&5
11300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11301 (exit $ac_status); }; }; then
11304 cat >conftest.$ac_ext <<_ACEOF
11307 cat confdefs.h >>conftest.$ac_ext
11308 cat >>conftest.$ac_ext <<_ACEOF
11309 /* end confdefs.h. */
11310 #include <stddef.h>
11314 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
11321 rm -f conftest.$ac_objext
11322 if { (ac_try="$ac_compile"
11323 case "(($ac_try" in
11324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11325 *) ac_try_echo=$ac_try;;
11327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11328 (eval "$ac_compile") 2>conftest.er1
11330 grep -v '^ *+' conftest.er1 >conftest.err
11332 cat conftest.err >&5
11333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11334 (exit $ac_status); } &&
11335 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11336 { (case "(($ac_try" in
11337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11338 *) ac_try_echo=$ac_try;;
11340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11341 (eval "$ac_try") 2>&5
11343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11344 (exit $ac_status); }; } &&
11345 { ac_try='test -s conftest.$ac_objext'
11346 { (case "(($ac_try" in
11347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11348 *) ac_try_echo=$ac_try;;
11350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11351 (eval "$ac_try") 2>&5
11353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11354 (exit $ac_status); }; }; then
11355 ac_hi=$ac_mid; break
11357 echo "$as_me: failed program was:" >&5
11358 sed 's/^/| /' conftest.$ac_ext >&5
11360 ac_lo=`expr $ac_mid + 1`
11361 if test $ac_lo -le $ac_mid; then
11365 ac_mid=`expr 2 '*' $ac_mid + 1`
11368 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11371 echo "$as_me: failed program was:" >&5
11372 sed 's/^/| /' conftest.$ac_ext >&5
11374 cat >conftest.$ac_ext <<_ACEOF
11377 cat confdefs.h >>conftest.$ac_ext
11378 cat >>conftest.$ac_ext <<_ACEOF
11379 /* end confdefs.h. */
11380 #include <stddef.h>
11384 static int test_array [1 - 2 * !((~(size_t)0 % 10) < 0)];
11391 rm -f conftest.$ac_objext
11392 if { (ac_try="$ac_compile"
11393 case "(($ac_try" in
11394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11395 *) ac_try_echo=$ac_try;;
11397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11398 (eval "$ac_compile") 2>conftest.er1
11400 grep -v '^ *+' conftest.er1 >conftest.err
11402 cat conftest.err >&5
11403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11404 (exit $ac_status); } &&
11405 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11406 { (case "(($ac_try" in
11407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11408 *) ac_try_echo=$ac_try;;
11410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11411 (eval "$ac_try") 2>&5
11413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11414 (exit $ac_status); }; } &&
11415 { ac_try='test -s conftest.$ac_objext'
11416 { (case "(($ac_try" in
11417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11418 *) ac_try_echo=$ac_try;;
11420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11421 (eval "$ac_try") 2>&5
11423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11424 (exit $ac_status); }; }; then
11427 cat >conftest.$ac_ext <<_ACEOF
11430 cat confdefs.h >>conftest.$ac_ext
11431 cat >>conftest.$ac_ext <<_ACEOF
11432 /* end confdefs.h. */
11433 #include <stddef.h>
11437 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= $ac_mid)];
11444 rm -f conftest.$ac_objext
11445 if { (ac_try="$ac_compile"
11446 case "(($ac_try" in
11447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11448 *) ac_try_echo=$ac_try;;
11450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11451 (eval "$ac_compile") 2>conftest.er1
11453 grep -v '^ *+' conftest.er1 >conftest.err
11455 cat conftest.err >&5
11456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11457 (exit $ac_status); } &&
11458 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11459 { (case "(($ac_try" in
11460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11461 *) ac_try_echo=$ac_try;;
11463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11464 (eval "$ac_try") 2>&5
11466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11467 (exit $ac_status); }; } &&
11468 { ac_try='test -s conftest.$ac_objext'
11469 { (case "(($ac_try" in
11470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11471 *) ac_try_echo=$ac_try;;
11473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11474 (eval "$ac_try") 2>&5
11476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11477 (exit $ac_status); }; }; then
11478 ac_lo=$ac_mid; break
11480 echo "$as_me: failed program was:" >&5
11481 sed 's/^/| /' conftest.$ac_ext >&5
11483 ac_hi=`expr '(' $ac_mid ')' - 1`
11484 if test $ac_mid -le $ac_hi; then
11488 ac_mid=`expr 2 '*' $ac_mid`
11491 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11494 echo "$as_me: failed program was:" >&5
11495 sed 's/^/| /' conftest.$ac_ext >&5
11500 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11503 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11504 # Binary search between lo and hi bounds.
11505 while test "x$ac_lo" != "x$ac_hi"; do
11506 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11507 cat >conftest.$ac_ext <<_ACEOF
11510 cat confdefs.h >>conftest.$ac_ext
11511 cat >>conftest.$ac_ext <<_ACEOF
11512 /* end confdefs.h. */
11513 #include <stddef.h>
11517 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
11524 rm -f conftest.$ac_objext
11525 if { (ac_try="$ac_compile"
11526 case "(($ac_try" in
11527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11528 *) ac_try_echo=$ac_try;;
11530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11531 (eval "$ac_compile") 2>conftest.er1
11533 grep -v '^ *+' conftest.er1 >conftest.err
11535 cat conftest.err >&5
11536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11537 (exit $ac_status); } &&
11538 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11539 { (case "(($ac_try" in
11540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11541 *) ac_try_echo=$ac_try;;
11543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11544 (eval "$ac_try") 2>&5
11546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11547 (exit $ac_status); }; } &&
11548 { ac_try='test -s conftest.$ac_objext'
11549 { (case "(($ac_try" in
11550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11551 *) ac_try_echo=$ac_try;;
11553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11554 (eval "$ac_try") 2>&5
11556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11557 (exit $ac_status); }; }; then
11560 echo "$as_me: failed program was:" >&5
11561 sed 's/^/| /' conftest.$ac_ext >&5
11563 ac_lo=`expr '(' $ac_mid ')' + 1`
11566 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11569 ?*) res_lo=$ac_lo;;
11573 cat >conftest.$ac_ext <<_ACEOF
11576 cat confdefs.h >>conftest.$ac_ext
11577 cat >>conftest.$ac_ext <<_ACEOF
11578 /* end confdefs.h. */
11579 #include <stddef.h>
11580 static long int longval () { return ~(size_t)0 % 10; }
11581 static unsigned long int ulongval () { return ~(size_t)0 % 10; }
11583 #include <stdlib.h>
11588 FILE *f = fopen ("conftest.val", "w");
11591 if ((~(size_t)0 % 10) < 0)
11593 long int i = longval ();
11594 if (i != (~(size_t)0 % 10))
11596 fprintf (f, "%ld\n", i);
11600 unsigned long int i = ulongval ();
11601 if (i != (~(size_t)0 % 10))
11603 fprintf (f, "%lu\n", i);
11605 return ferror (f) || fclose (f) != 0;
11611 rm -f conftest$ac_exeext
11612 if { (ac_try="$ac_link"
11613 case "(($ac_try" in
11614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11615 *) ac_try_echo=$ac_try;;
11617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11618 (eval "$ac_link") 2>&5
11620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11621 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11622 { (case "(($ac_try" in
11623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11624 *) ac_try_echo=$ac_try;;
11626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11627 (eval "$ac_try") 2>&5
11629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11630 (exit $ac_status); }; }; then
11631 res_lo=`cat conftest.val`
11633 echo "$as_me: program exited with status $ac_status" >&5
11634 echo "$as_me: failed program was:" >&5
11635 sed 's/^/| /' conftest.$ac_ext >&5
11637 ( exit $ac_status )
11640 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11643 if test "$cross_compiling" = yes; then
11644 # Depending upon the size, compute the lo and hi bounds.
11645 cat >conftest.$ac_ext <<_ACEOF
11648 cat confdefs.h >>conftest.$ac_ext
11649 cat >>conftest.$ac_ext <<_ACEOF
11650 /* end confdefs.h. */
11651 #include <stddef.h>
11655 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
11662 rm -f conftest.$ac_objext
11663 if { (ac_try="$ac_compile"
11664 case "(($ac_try" in
11665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11666 *) ac_try_echo=$ac_try;;
11668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11669 (eval "$ac_compile") 2>conftest.er1
11671 grep -v '^ *+' conftest.er1 >conftest.err
11673 cat conftest.err >&5
11674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11675 (exit $ac_status); } &&
11676 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11677 { (case "(($ac_try" in
11678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11679 *) ac_try_echo=$ac_try;;
11681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11682 (eval "$ac_try") 2>&5
11684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11685 (exit $ac_status); }; } &&
11686 { ac_try='test -s conftest.$ac_objext'
11687 { (case "(($ac_try" in
11688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11689 *) ac_try_echo=$ac_try;;
11691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11692 (eval "$ac_try") 2>&5
11694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11695 (exit $ac_status); }; }; then
11698 cat >conftest.$ac_ext <<_ACEOF
11701 cat confdefs.h >>conftest.$ac_ext
11702 cat >>conftest.$ac_ext <<_ACEOF
11703 /* end confdefs.h. */
11704 #include <stddef.h>
11708 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
11715 rm -f conftest.$ac_objext
11716 if { (ac_try="$ac_compile"
11717 case "(($ac_try" in
11718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11719 *) ac_try_echo=$ac_try;;
11721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11722 (eval "$ac_compile") 2>conftest.er1
11724 grep -v '^ *+' conftest.er1 >conftest.err
11726 cat conftest.err >&5
11727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11728 (exit $ac_status); } &&
11729 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11730 { (case "(($ac_try" in
11731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11732 *) ac_try_echo=$ac_try;;
11734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11735 (eval "$ac_try") 2>&5
11737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11738 (exit $ac_status); }; } &&
11739 { ac_try='test -s conftest.$ac_objext'
11740 { (case "(($ac_try" in
11741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11742 *) ac_try_echo=$ac_try;;
11744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11745 (eval "$ac_try") 2>&5
11747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11748 (exit $ac_status); }; }; then
11749 ac_hi=$ac_mid; break
11751 echo "$as_me: failed program was:" >&5
11752 sed 's/^/| /' conftest.$ac_ext >&5
11754 ac_lo=`expr $ac_mid + 1`
11755 if test $ac_lo -le $ac_mid; then
11759 ac_mid=`expr 2 '*' $ac_mid + 1`
11762 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11765 echo "$as_me: failed program was:" >&5
11766 sed 's/^/| /' conftest.$ac_ext >&5
11768 cat >conftest.$ac_ext <<_ACEOF
11771 cat confdefs.h >>conftest.$ac_ext
11772 cat >>conftest.$ac_ext <<_ACEOF
11773 /* end confdefs.h. */
11774 #include <stddef.h>
11778 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
11785 rm -f conftest.$ac_objext
11786 if { (ac_try="$ac_compile"
11787 case "(($ac_try" in
11788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11789 *) ac_try_echo=$ac_try;;
11791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11792 (eval "$ac_compile") 2>conftest.er1
11794 grep -v '^ *+' conftest.er1 >conftest.err
11796 cat conftest.err >&5
11797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11798 (exit $ac_status); } &&
11799 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11800 { (case "(($ac_try" in
11801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11802 *) ac_try_echo=$ac_try;;
11804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11805 (eval "$ac_try") 2>&5
11807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11808 (exit $ac_status); }; } &&
11809 { ac_try='test -s conftest.$ac_objext'
11810 { (case "(($ac_try" in
11811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11812 *) ac_try_echo=$ac_try;;
11814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11815 (eval "$ac_try") 2>&5
11817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11818 (exit $ac_status); }; }; then
11821 cat >conftest.$ac_ext <<_ACEOF
11824 cat confdefs.h >>conftest.$ac_ext
11825 cat >>conftest.$ac_ext <<_ACEOF
11826 /* end confdefs.h. */
11827 #include <stddef.h>
11831 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
11838 rm -f conftest.$ac_objext
11839 if { (ac_try="$ac_compile"
11840 case "(($ac_try" in
11841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11842 *) ac_try_echo=$ac_try;;
11844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11845 (eval "$ac_compile") 2>conftest.er1
11847 grep -v '^ *+' conftest.er1 >conftest.err
11849 cat conftest.err >&5
11850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11851 (exit $ac_status); } &&
11852 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11853 { (case "(($ac_try" in
11854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11855 *) ac_try_echo=$ac_try;;
11857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11858 (eval "$ac_try") 2>&5
11860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11861 (exit $ac_status); }; } &&
11862 { ac_try='test -s conftest.$ac_objext'
11863 { (case "(($ac_try" in
11864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11865 *) ac_try_echo=$ac_try;;
11867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11868 (eval "$ac_try") 2>&5
11870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11871 (exit $ac_status); }; }; then
11872 ac_lo=$ac_mid; break
11874 echo "$as_me: failed program was:" >&5
11875 sed 's/^/| /' conftest.$ac_ext >&5
11877 ac_hi=`expr '(' $ac_mid ')' - 1`
11878 if test $ac_mid -le $ac_hi; then
11882 ac_mid=`expr 2 '*' $ac_mid`
11885 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11888 echo "$as_me: failed program was:" >&5
11889 sed 's/^/| /' conftest.$ac_ext >&5
11894 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11897 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11898 # Binary search between lo and hi bounds.
11899 while test "x$ac_lo" != "x$ac_hi"; do
11900 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11901 cat >conftest.$ac_ext <<_ACEOF
11904 cat confdefs.h >>conftest.$ac_ext
11905 cat >>conftest.$ac_ext <<_ACEOF
11906 /* end confdefs.h. */
11907 #include <stddef.h>
11911 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
11918 rm -f conftest.$ac_objext
11919 if { (ac_try="$ac_compile"
11920 case "(($ac_try" in
11921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11922 *) ac_try_echo=$ac_try;;
11924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11925 (eval "$ac_compile") 2>conftest.er1
11927 grep -v '^ *+' conftest.er1 >conftest.err
11929 cat conftest.err >&5
11930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11931 (exit $ac_status); } &&
11932 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11933 { (case "(($ac_try" in
11934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11935 *) ac_try_echo=$ac_try;;
11937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11938 (eval "$ac_try") 2>&5
11940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11941 (exit $ac_status); }; } &&
11942 { ac_try='test -s conftest.$ac_objext'
11943 { (case "(($ac_try" in
11944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11945 *) ac_try_echo=$ac_try;;
11947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11948 (eval "$ac_try") 2>&5
11950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11951 (exit $ac_status); }; }; then
11954 echo "$as_me: failed program was:" >&5
11955 sed 's/^/| /' conftest.$ac_ext >&5
11957 ac_lo=`expr '(' $ac_mid ')' + 1`
11960 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11963 ?*) fits_in_uint=$ac_lo;;
11967 cat >conftest.$ac_ext <<_ACEOF
11970 cat confdefs.h >>conftest.$ac_ext
11971 cat >>conftest.$ac_ext <<_ACEOF
11972 /* end confdefs.h. */
11973 #include <stddef.h>
11974 static long int longval () { return sizeof (size_t) <= sizeof (unsigned int); }
11975 static unsigned long int ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
11977 #include <stdlib.h>
11982 FILE *f = fopen ("conftest.val", "w");
11985 if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
11987 long int i = longval ();
11988 if (i != (sizeof (size_t) <= sizeof (unsigned int)))
11990 fprintf (f, "%ld\n", i);
11994 unsigned long int i = ulongval ();
11995 if (i != (sizeof (size_t) <= sizeof (unsigned int)))
11997 fprintf (f, "%lu\n", i);
11999 return ferror (f) || fclose (f) != 0;
12005 rm -f conftest$ac_exeext
12006 if { (ac_try="$ac_link"
12007 case "(($ac_try" in
12008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12009 *) ac_try_echo=$ac_try;;
12011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12012 (eval "$ac_link") 2>&5
12014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12015 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12016 { (case "(($ac_try" in
12017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12018 *) ac_try_echo=$ac_try;;
12020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12021 (eval "$ac_try") 2>&5
12023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12024 (exit $ac_status); }; }; then
12025 fits_in_uint=`cat conftest.val`
12027 echo "$as_me: program exited with status $ac_status" >&5
12028 echo "$as_me: failed program was:" >&5
12029 sed 's/^/| /' conftest.$ac_ext >&5
12031 ( exit $ac_status )
12034 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12037 if test "$fits_in_uint" = 1; then
12038 cat >conftest.$ac_ext <<_ACEOF
12041 cat confdefs.h >>conftest.$ac_ext
12042 cat >>conftest.$ac_ext <<_ACEOF
12043 /* end confdefs.h. */
12044 #include <stddef.h>
12046 extern unsigned long foo;
12056 rm -f conftest.$ac_objext
12057 if { (ac_try="$ac_compile"
12058 case "(($ac_try" in
12059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12060 *) ac_try_echo=$ac_try;;
12062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12063 (eval "$ac_compile") 2>conftest.er1
12065 grep -v '^ *+' conftest.er1 >conftest.err
12067 cat conftest.err >&5
12068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12069 (exit $ac_status); } &&
12070 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12071 { (case "(($ac_try" in
12072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12073 *) ac_try_echo=$ac_try;;
12075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12076 (eval "$ac_try") 2>&5
12078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12079 (exit $ac_status); }; } &&
12080 { ac_try='test -s conftest.$ac_objext'
12081 { (case "(($ac_try" in
12082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12083 *) ac_try_echo=$ac_try;;
12085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12086 (eval "$ac_try") 2>&5
12088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12089 (exit $ac_status); }; }; then
12092 echo "$as_me: failed program was:" >&5
12093 sed 's/^/| /' conftest.$ac_ext >&5
12098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12100 if test -z "$result"; then
12101 if test "$fits_in_uint" = 1; then
12102 result="$res_hi$res_lo"U
12104 result="$res_hi$res_lo"UL
12107 result='~(size_t)0'
12110 { echo "$as_me:$LINENO: result: $result" >&5
12111 echo "${ECHO_T}$result" >&6; }
12112 if test "$result" != yes; then
12114 cat >>confdefs.h <<_ACEOF
12115 #define SIZE_MAX $result
12124 for ac_header in stdint.h
12126 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12127 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12128 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12129 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12130 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12131 echo $ECHO_N "(cached) $ECHO_C" >&6
12133 ac_res=`eval echo '${'$as_ac_Header'}'`
12134 { echo "$as_me:$LINENO: result: $ac_res" >&5
12135 echo "${ECHO_T}$ac_res" >&6; }
12137 # Is the header compilable?
12138 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12139 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12140 cat >conftest.$ac_ext <<_ACEOF
12143 cat confdefs.h >>conftest.$ac_ext
12144 cat >>conftest.$ac_ext <<_ACEOF
12145 /* end confdefs.h. */
12146 $ac_includes_default
12147 #include <$ac_header>
12149 rm -f conftest.$ac_objext
12150 if { (ac_try="$ac_compile"
12151 case "(($ac_try" in
12152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12153 *) ac_try_echo=$ac_try;;
12155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12156 (eval "$ac_compile") 2>conftest.er1
12158 grep -v '^ *+' conftest.er1 >conftest.err
12160 cat conftest.err >&5
12161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12162 (exit $ac_status); } &&
12163 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12164 { (case "(($ac_try" in
12165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12166 *) ac_try_echo=$ac_try;;
12168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12169 (eval "$ac_try") 2>&5
12171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12172 (exit $ac_status); }; } &&
12173 { ac_try='test -s conftest.$ac_objext'
12174 { (case "(($ac_try" in
12175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12176 *) ac_try_echo=$ac_try;;
12178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12179 (eval "$ac_try") 2>&5
12181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12182 (exit $ac_status); }; }; then
12183 ac_header_compiler=yes
12185 echo "$as_me: failed program was:" >&5
12186 sed 's/^/| /' conftest.$ac_ext >&5
12188 ac_header_compiler=no
12191 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12192 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12193 echo "${ECHO_T}$ac_header_compiler" >&6; }
12195 # Is the header present?
12196 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12197 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12198 cat >conftest.$ac_ext <<_ACEOF
12201 cat confdefs.h >>conftest.$ac_ext
12202 cat >>conftest.$ac_ext <<_ACEOF
12203 /* end confdefs.h. */
12204 #include <$ac_header>
12206 if { (ac_try="$ac_cpp conftest.$ac_ext"
12207 case "(($ac_try" in
12208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12209 *) ac_try_echo=$ac_try;;
12211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12212 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12214 grep -v '^ *+' conftest.er1 >conftest.err
12216 cat conftest.err >&5
12217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12218 (exit $ac_status); } >/dev/null; then
12219 if test -s conftest.err; then
12220 ac_cpp_err=$ac_c_preproc_warn_flag
12221 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12228 if test -z "$ac_cpp_err"; then
12229 ac_header_preproc=yes
12231 echo "$as_me: failed program was:" >&5
12232 sed 's/^/| /' conftest.$ac_ext >&5
12234 ac_header_preproc=no
12237 rm -f conftest.err conftest.$ac_ext
12238 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12239 echo "${ECHO_T}$ac_header_preproc" >&6; }
12241 # So? What about this header?
12242 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12244 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12245 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12246 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12247 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12248 ac_header_preproc=yes
12251 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12252 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12253 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12254 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12255 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12256 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12257 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12258 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12259 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12260 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12261 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12262 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12266 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12267 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12268 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12269 echo $ECHO_N "(cached) $ECHO_C" >&6
12271 eval "$as_ac_Header=\$ac_header_preproc"
12273 ac_res=`eval echo '${'$as_ac_Header'}'`
12274 { echo "$as_me:$LINENO: result: $ac_res" >&5
12275 echo "${ECHO_T}$ac_res" >&6; }
12278 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12279 cat >>confdefs.h <<_ACEOF
12280 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12294 { echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
12295 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6; }
12296 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
12297 echo $ECHO_N "(cached) $ECHO_C" >&6
12299 cat >conftest.$ac_ext <<_ACEOF
12302 cat confdefs.h >>conftest.$ac_ext
12303 cat >>conftest.$ac_ext <<_ACEOF
12304 /* end confdefs.h. */
12305 $ac_includes_default
12306 typedef ptrdiff_t ac__type_new_;
12310 if ((ac__type_new_ *) 0)
12312 if (sizeof (ac__type_new_))
12318 rm -f conftest.$ac_objext
12319 if { (ac_try="$ac_compile"
12320 case "(($ac_try" in
12321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12322 *) ac_try_echo=$ac_try;;
12324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12325 (eval "$ac_compile") 2>conftest.er1
12327 grep -v '^ *+' conftest.er1 >conftest.err
12329 cat conftest.err >&5
12330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12331 (exit $ac_status); } &&
12332 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12333 { (case "(($ac_try" in
12334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12335 *) ac_try_echo=$ac_try;;
12337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12338 (eval "$ac_try") 2>&5
12340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12341 (exit $ac_status); }; } &&
12342 { ac_try='test -s conftest.$ac_objext'
12343 { (case "(($ac_try" in
12344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12345 *) ac_try_echo=$ac_try;;
12347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12348 (eval "$ac_try") 2>&5
12350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12351 (exit $ac_status); }; }; then
12352 ac_cv_type_ptrdiff_t=yes
12354 echo "$as_me: failed program was:" >&5
12355 sed 's/^/| /' conftest.$ac_ext >&5
12357 ac_cv_type_ptrdiff_t=no
12360 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12362 { echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
12363 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; }
12364 if test $ac_cv_type_ptrdiff_t = yes; then
12368 cat >>confdefs.h <<\_ACEOF
12369 #define ptrdiff_t long
12385 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
12386 stdlib.h string.h unistd.h sys/param.h
12388 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12389 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12390 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12391 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12392 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12393 echo $ECHO_N "(cached) $ECHO_C" >&6
12395 ac_res=`eval echo '${'$as_ac_Header'}'`
12396 { echo "$as_me:$LINENO: result: $ac_res" >&5
12397 echo "${ECHO_T}$ac_res" >&6; }
12399 # Is the header compilable?
12400 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12401 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12402 cat >conftest.$ac_ext <<_ACEOF
12405 cat confdefs.h >>conftest.$ac_ext
12406 cat >>conftest.$ac_ext <<_ACEOF
12407 /* end confdefs.h. */
12408 $ac_includes_default
12409 #include <$ac_header>
12411 rm -f conftest.$ac_objext
12412 if { (ac_try="$ac_compile"
12413 case "(($ac_try" in
12414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12415 *) ac_try_echo=$ac_try;;
12417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12418 (eval "$ac_compile") 2>conftest.er1
12420 grep -v '^ *+' conftest.er1 >conftest.err
12422 cat conftest.err >&5
12423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12424 (exit $ac_status); } &&
12425 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12426 { (case "(($ac_try" in
12427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12428 *) ac_try_echo=$ac_try;;
12430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12431 (eval "$ac_try") 2>&5
12433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12434 (exit $ac_status); }; } &&
12435 { ac_try='test -s conftest.$ac_objext'
12436 { (case "(($ac_try" in
12437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12438 *) ac_try_echo=$ac_try;;
12440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12441 (eval "$ac_try") 2>&5
12443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12444 (exit $ac_status); }; }; then
12445 ac_header_compiler=yes
12447 echo "$as_me: failed program was:" >&5
12448 sed 's/^/| /' conftest.$ac_ext >&5
12450 ac_header_compiler=no
12453 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12454 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12455 echo "${ECHO_T}$ac_header_compiler" >&6; }
12457 # Is the header present?
12458 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12459 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12460 cat >conftest.$ac_ext <<_ACEOF
12463 cat confdefs.h >>conftest.$ac_ext
12464 cat >>conftest.$ac_ext <<_ACEOF
12465 /* end confdefs.h. */
12466 #include <$ac_header>
12468 if { (ac_try="$ac_cpp conftest.$ac_ext"
12469 case "(($ac_try" in
12470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12471 *) ac_try_echo=$ac_try;;
12473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12474 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12476 grep -v '^ *+' conftest.er1 >conftest.err
12478 cat conftest.err >&5
12479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12480 (exit $ac_status); } >/dev/null; then
12481 if test -s conftest.err; then
12482 ac_cpp_err=$ac_c_preproc_warn_flag
12483 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12490 if test -z "$ac_cpp_err"; then
12491 ac_header_preproc=yes
12493 echo "$as_me: failed program was:" >&5
12494 sed 's/^/| /' conftest.$ac_ext >&5
12496 ac_header_preproc=no
12499 rm -f conftest.err conftest.$ac_ext
12500 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12501 echo "${ECHO_T}$ac_header_preproc" >&6; }
12503 # So? What about this header?
12504 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12506 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12507 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12508 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12509 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12510 ac_header_preproc=yes
12513 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12514 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12515 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12516 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12517 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12518 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12519 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12520 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12521 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12522 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12523 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12524 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12528 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12529 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12530 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12531 echo $ECHO_N "(cached) $ECHO_C" >&6
12533 eval "$as_ac_Header=\$ac_header_preproc"
12535 ac_res=`eval echo '${'$as_ac_Header'}'`
12536 { echo "$as_me:$LINENO: result: $ac_res" >&5
12537 echo "${ECHO_T}$ac_res" >&6; }
12540 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12541 cat >>confdefs.h <<_ACEOF
12542 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12572 for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
12573 mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
12574 strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
12577 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12578 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12579 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12580 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12581 echo $ECHO_N "(cached) $ECHO_C" >&6
12583 cat >conftest.$ac_ext <<_ACEOF
12586 cat confdefs.h >>conftest.$ac_ext
12587 cat >>conftest.$ac_ext <<_ACEOF
12588 /* end confdefs.h. */
12589 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12590 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12591 #define $ac_func innocuous_$ac_func
12593 /* System header to define __stub macros and hopefully few prototypes,
12594 which can conflict with char $ac_func (); below.
12595 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12596 <limits.h> exists even on freestanding compilers. */
12599 # include <limits.h>
12601 # include <assert.h>
12606 /* Override any GCC internal prototype to avoid an error.
12607 Use char because int might match the return type of a GCC
12608 builtin and then its argument prototype would still apply. */
12613 /* The GNU C library defines this for functions which it implements
12614 to always fail with ENOSYS. Some functions are actually named
12615 something starting with __ and the normal name is an alias. */
12616 #if defined __stub_$ac_func || defined __stub___$ac_func
12623 return $ac_func ();
12628 rm -f conftest.$ac_objext conftest$ac_exeext
12629 if { (ac_try="$ac_link"
12630 case "(($ac_try" in
12631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12632 *) ac_try_echo=$ac_try;;
12634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12635 (eval "$ac_link") 2>conftest.er1
12637 grep -v '^ *+' conftest.er1 >conftest.err
12639 cat conftest.err >&5
12640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12641 (exit $ac_status); } &&
12642 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12643 { (case "(($ac_try" in
12644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12645 *) ac_try_echo=$ac_try;;
12647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12648 (eval "$ac_try") 2>&5
12650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12651 (exit $ac_status); }; } &&
12652 { ac_try='test -s conftest$ac_exeext'
12653 { (case "(($ac_try" in
12654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12655 *) ac_try_echo=$ac_try;;
12657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12658 (eval "$ac_try") 2>&5
12660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12661 (exit $ac_status); }; }; then
12662 eval "$as_ac_var=yes"
12664 echo "$as_me: failed program was:" >&5
12665 sed 's/^/| /' conftest.$ac_ext >&5
12667 eval "$as_ac_var=no"
12670 rm -f core conftest.err conftest.$ac_objext \
12671 conftest$ac_exeext conftest.$ac_ext
12673 ac_res=`eval echo '${'$as_ac_var'}'`
12674 { echo "$as_me:$LINENO: result: $ac_res" >&5
12675 echo "${ECHO_T}$ac_res" >&6; }
12676 if test `eval echo '${'$as_ac_var'}'` = yes; then
12677 cat >>confdefs.h <<_ACEOF
12678 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12686 { echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5
12687 echo $ECHO_N "checking whether _snprintf is declared... $ECHO_C" >&6; }
12688 if test "${ac_cv_have_decl__snprintf+set}" = set; then
12689 echo $ECHO_N "(cached) $ECHO_C" >&6
12691 cat >conftest.$ac_ext <<_ACEOF
12694 cat confdefs.h >>conftest.$ac_ext
12695 cat >>conftest.$ac_ext <<_ACEOF
12696 /* end confdefs.h. */
12703 char *p = (char *) _snprintf;
12710 rm -f conftest.$ac_objext
12711 if { (ac_try="$ac_compile"
12712 case "(($ac_try" in
12713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12714 *) ac_try_echo=$ac_try;;
12716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12717 (eval "$ac_compile") 2>conftest.er1
12719 grep -v '^ *+' conftest.er1 >conftest.err
12721 cat conftest.err >&5
12722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12723 (exit $ac_status); } &&
12724 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12725 { (case "(($ac_try" in
12726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12727 *) ac_try_echo=$ac_try;;
12729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12730 (eval "$ac_try") 2>&5
12732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12733 (exit $ac_status); }; } &&
12734 { ac_try='test -s conftest.$ac_objext'
12735 { (case "(($ac_try" in
12736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12737 *) ac_try_echo=$ac_try;;
12739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12740 (eval "$ac_try") 2>&5
12742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12743 (exit $ac_status); }; }; then
12744 ac_cv_have_decl__snprintf=yes
12746 echo "$as_me: failed program was:" >&5
12747 sed 's/^/| /' conftest.$ac_ext >&5
12749 ac_cv_have_decl__snprintf=no
12752 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12754 { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5
12755 echo "${ECHO_T}$ac_cv_have_decl__snprintf" >&6; }
12756 if test $ac_cv_have_decl__snprintf = yes; then
12762 cat >>confdefs.h <<_ACEOF
12763 #define HAVE_DECL__SNPRINTF $gt_value
12768 { echo "$as_me:$LINENO: checking whether _snwprintf is declared" >&5
12769 echo $ECHO_N "checking whether _snwprintf is declared... $ECHO_C" >&6; }
12770 if test "${ac_cv_have_decl__snwprintf+set}" = set; then
12771 echo $ECHO_N "(cached) $ECHO_C" >&6
12773 cat >conftest.$ac_ext <<_ACEOF
12776 cat confdefs.h >>conftest.$ac_ext
12777 cat >>conftest.$ac_ext <<_ACEOF
12778 /* end confdefs.h. */
12785 char *p = (char *) _snwprintf;
12792 rm -f conftest.$ac_objext
12793 if { (ac_try="$ac_compile"
12794 case "(($ac_try" in
12795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12796 *) ac_try_echo=$ac_try;;
12798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12799 (eval "$ac_compile") 2>conftest.er1
12801 grep -v '^ *+' conftest.er1 >conftest.err
12803 cat conftest.err >&5
12804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12805 (exit $ac_status); } &&
12806 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12807 { (case "(($ac_try" in
12808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12809 *) ac_try_echo=$ac_try;;
12811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12812 (eval "$ac_try") 2>&5
12814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12815 (exit $ac_status); }; } &&
12816 { ac_try='test -s conftest.$ac_objext'
12817 { (case "(($ac_try" in
12818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12819 *) ac_try_echo=$ac_try;;
12821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12822 (eval "$ac_try") 2>&5
12824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12825 (exit $ac_status); }; }; then
12826 ac_cv_have_decl__snwprintf=yes
12828 echo "$as_me: failed program was:" >&5
12829 sed 's/^/| /' conftest.$ac_ext >&5
12831 ac_cv_have_decl__snwprintf=no
12834 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12836 { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snwprintf" >&5
12837 echo "${ECHO_T}$ac_cv_have_decl__snwprintf" >&6; }
12838 if test $ac_cv_have_decl__snwprintf = yes; then
12844 cat >>confdefs.h <<_ACEOF
12845 #define HAVE_DECL__SNWPRINTF $gt_value
12851 { echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
12852 echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6; }
12853 if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
12854 echo $ECHO_N "(cached) $ECHO_C" >&6
12856 cat >conftest.$ac_ext <<_ACEOF
12859 cat confdefs.h >>conftest.$ac_ext
12860 cat >>conftest.$ac_ext <<_ACEOF
12861 /* end confdefs.h. */
12867 #ifndef feof_unlocked
12868 char *p = (char *) feof_unlocked;
12875 rm -f conftest.$ac_objext
12876 if { (ac_try="$ac_compile"
12877 case "(($ac_try" in
12878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12879 *) ac_try_echo=$ac_try;;
12881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12882 (eval "$ac_compile") 2>conftest.er1
12884 grep -v '^ *+' conftest.er1 >conftest.err
12886 cat conftest.err >&5
12887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12888 (exit $ac_status); } &&
12889 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12890 { (case "(($ac_try" in
12891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12892 *) ac_try_echo=$ac_try;;
12894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12895 (eval "$ac_try") 2>&5
12897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12898 (exit $ac_status); }; } &&
12899 { ac_try='test -s conftest.$ac_objext'
12900 { (case "(($ac_try" in
12901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12902 *) ac_try_echo=$ac_try;;
12904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12905 (eval "$ac_try") 2>&5
12907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12908 (exit $ac_status); }; }; then
12909 ac_cv_have_decl_feof_unlocked=yes
12911 echo "$as_me: failed program was:" >&5
12912 sed 's/^/| /' conftest.$ac_ext >&5
12914 ac_cv_have_decl_feof_unlocked=no
12917 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12919 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
12920 echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6; }
12921 if test $ac_cv_have_decl_feof_unlocked = yes; then
12927 cat >>confdefs.h <<_ACEOF
12928 #define HAVE_DECL_FEOF_UNLOCKED $gt_value
12933 { echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
12934 echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6; }
12935 if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
12936 echo $ECHO_N "(cached) $ECHO_C" >&6
12938 cat >conftest.$ac_ext <<_ACEOF
12941 cat confdefs.h >>conftest.$ac_ext
12942 cat >>conftest.$ac_ext <<_ACEOF
12943 /* end confdefs.h. */
12949 #ifndef fgets_unlocked
12950 char *p = (char *) fgets_unlocked;
12957 rm -f conftest.$ac_objext
12958 if { (ac_try="$ac_compile"
12959 case "(($ac_try" in
12960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12961 *) ac_try_echo=$ac_try;;
12963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12964 (eval "$ac_compile") 2>conftest.er1
12966 grep -v '^ *+' conftest.er1 >conftest.err
12968 cat conftest.err >&5
12969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12970 (exit $ac_status); } &&
12971 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12972 { (case "(($ac_try" in
12973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12974 *) ac_try_echo=$ac_try;;
12976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12977 (eval "$ac_try") 2>&5
12979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12980 (exit $ac_status); }; } &&
12981 { ac_try='test -s conftest.$ac_objext'
12982 { (case "(($ac_try" in
12983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12984 *) ac_try_echo=$ac_try;;
12986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12987 (eval "$ac_try") 2>&5
12989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12990 (exit $ac_status); }; }; then
12991 ac_cv_have_decl_fgets_unlocked=yes
12993 echo "$as_me: failed program was:" >&5
12994 sed 's/^/| /' conftest.$ac_ext >&5
12996 ac_cv_have_decl_fgets_unlocked=no
12999 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13001 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
13002 echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6; }
13003 if test $ac_cv_have_decl_fgets_unlocked = yes; then
13009 cat >>confdefs.h <<_ACEOF
13010 #define HAVE_DECL_FGETS_UNLOCKED $gt_value
13015 { echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
13016 echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6; }
13017 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
13018 echo $ECHO_N "(cached) $ECHO_C" >&6
13020 cat >conftest.$ac_ext <<_ACEOF
13023 cat confdefs.h >>conftest.$ac_ext
13024 cat >>conftest.$ac_ext <<_ACEOF
13025 /* end confdefs.h. */
13031 #ifndef getc_unlocked
13032 char *p = (char *) getc_unlocked;
13039 rm -f conftest.$ac_objext
13040 if { (ac_try="$ac_compile"
13041 case "(($ac_try" in
13042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13043 *) ac_try_echo=$ac_try;;
13045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13046 (eval "$ac_compile") 2>conftest.er1
13048 grep -v '^ *+' conftest.er1 >conftest.err
13050 cat conftest.err >&5
13051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13052 (exit $ac_status); } &&
13053 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13054 { (case "(($ac_try" in
13055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13056 *) ac_try_echo=$ac_try;;
13058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13059 (eval "$ac_try") 2>&5
13061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13062 (exit $ac_status); }; } &&
13063 { ac_try='test -s conftest.$ac_objext'
13064 { (case "(($ac_try" in
13065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13066 *) ac_try_echo=$ac_try;;
13068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13069 (eval "$ac_try") 2>&5
13071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13072 (exit $ac_status); }; }; then
13073 ac_cv_have_decl_getc_unlocked=yes
13075 echo "$as_me: failed program was:" >&5
13076 sed 's/^/| /' conftest.$ac_ext >&5
13078 ac_cv_have_decl_getc_unlocked=no
13081 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13083 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
13084 echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6; }
13085 if test $ac_cv_have_decl_getc_unlocked = yes; then
13091 cat >>confdefs.h <<_ACEOF
13092 #define HAVE_DECL_GETC_UNLOCKED $gt_value
13097 case $gt_cv_func_printf_posix in
13098 *yes) HAVE_POSIX_PRINTF=1 ;;
13099 *) HAVE_POSIX_PRINTF=0 ;;
13102 if test "$ac_cv_func_asprintf" = yes; then
13108 if test "$ac_cv_func_snprintf" = yes; then
13114 if test "$ac_cv_func_wprintf" = yes; then
13126 am_save_CPPFLAGS="$CPPFLAGS"
13128 for element in $INCICONV; do
13130 for x in $CPPFLAGS; do
13132 acl_save_prefix="$prefix"
13133 prefix="$acl_final_prefix"
13134 acl_save_exec_prefix="$exec_prefix"
13135 exec_prefix="$acl_final_exec_prefix"
13137 exec_prefix="$acl_save_exec_prefix"
13138 prefix="$acl_save_prefix"
13140 if test "X$x" = "X$element"; then
13145 if test -z "$haveit"; then
13146 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
13151 { echo "$as_me:$LINENO: checking for iconv" >&5
13152 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
13153 if test "${am_cv_func_iconv+set}" = set; then
13154 echo $ECHO_N "(cached) $ECHO_C" >&6
13157 am_cv_func_iconv="no, consider installing GNU libiconv"
13159 cat >conftest.$ac_ext <<_ACEOF
13162 cat confdefs.h >>conftest.$ac_ext
13163 cat >>conftest.$ac_ext <<_ACEOF
13164 /* end confdefs.h. */
13165 #include <stdlib.h>
13170 iconv_t cd = iconv_open("","");
13171 iconv(cd,NULL,NULL,NULL,NULL);
13177 rm -f conftest.$ac_objext conftest$ac_exeext
13178 if { (ac_try="$ac_link"
13179 case "(($ac_try" in
13180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13181 *) ac_try_echo=$ac_try;;
13183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13184 (eval "$ac_link") 2>conftest.er1
13186 grep -v '^ *+' conftest.er1 >conftest.err
13188 cat conftest.err >&5
13189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13190 (exit $ac_status); } &&
13191 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13192 { (case "(($ac_try" in
13193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13194 *) ac_try_echo=$ac_try;;
13196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13197 (eval "$ac_try") 2>&5
13199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13200 (exit $ac_status); }; } &&
13201 { ac_try='test -s conftest$ac_exeext'
13202 { (case "(($ac_try" in
13203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13204 *) ac_try_echo=$ac_try;;
13206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13207 (eval "$ac_try") 2>&5
13209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13210 (exit $ac_status); }; }; then
13211 am_cv_func_iconv=yes
13213 echo "$as_me: failed program was:" >&5
13214 sed 's/^/| /' conftest.$ac_ext >&5
13219 rm -f core conftest.err conftest.$ac_objext \
13220 conftest$ac_exeext conftest.$ac_ext
13221 if test "$am_cv_func_iconv" != yes; then
13222 am_save_LIBS="$LIBS"
13223 LIBS="$LIBS $LIBICONV"
13224 cat >conftest.$ac_ext <<_ACEOF
13227 cat confdefs.h >>conftest.$ac_ext
13228 cat >>conftest.$ac_ext <<_ACEOF
13229 /* end confdefs.h. */
13230 #include <stdlib.h>
13235 iconv_t cd = iconv_open("","");
13236 iconv(cd,NULL,NULL,NULL,NULL);
13242 rm -f conftest.$ac_objext conftest$ac_exeext
13243 if { (ac_try="$ac_link"
13244 case "(($ac_try" in
13245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13246 *) ac_try_echo=$ac_try;;
13248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13249 (eval "$ac_link") 2>conftest.er1
13251 grep -v '^ *+' conftest.er1 >conftest.err
13253 cat conftest.err >&5
13254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13255 (exit $ac_status); } &&
13256 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13257 { (case "(($ac_try" in
13258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13259 *) ac_try_echo=$ac_try;;
13261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13262 (eval "$ac_try") 2>&5
13264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13265 (exit $ac_status); }; } &&
13266 { ac_try='test -s conftest$ac_exeext'
13267 { (case "(($ac_try" in
13268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13269 *) ac_try_echo=$ac_try;;
13271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13272 (eval "$ac_try") 2>&5
13274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13275 (exit $ac_status); }; }; then
13276 am_cv_lib_iconv=yes
13277 am_cv_func_iconv=yes
13279 echo "$as_me: failed program was:" >&5
13280 sed 's/^/| /' conftest.$ac_ext >&5
13285 rm -f core conftest.err conftest.$ac_objext \
13286 conftest$ac_exeext conftest.$ac_ext
13287 LIBS="$am_save_LIBS"
13291 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
13292 echo "${ECHO_T}$am_cv_func_iconv" >&6; }
13293 if test "$am_cv_func_iconv" = yes; then
13295 cat >>confdefs.h <<\_ACEOF
13296 #define HAVE_ICONV 1
13300 if test "$am_cv_lib_iconv" = yes; then
13301 { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
13302 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
13303 { echo "$as_me:$LINENO: result: $LIBICONV" >&5
13304 echo "${ECHO_T}$LIBICONV" >&6; }
13306 CPPFLAGS="$am_save_CPPFLAGS"
13313 if test "$am_cv_func_iconv" = yes; then
13314 { echo "$as_me:$LINENO: checking for iconv declaration" >&5
13315 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6; }
13316 if test "${am_cv_proto_iconv+set}" = set; then
13317 echo $ECHO_N "(cached) $ECHO_C" >&6
13320 cat >conftest.$ac_ext <<_ACEOF
13323 cat confdefs.h >>conftest.$ac_ext
13324 cat >>conftest.$ac_ext <<_ACEOF
13325 /* end confdefs.h. */
13327 #include <stdlib.h>
13333 #if defined(__STDC__) || defined(__cplusplus)
13334 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
13347 rm -f conftest.$ac_objext
13348 if { (ac_try="$ac_compile"
13349 case "(($ac_try" in
13350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13351 *) ac_try_echo=$ac_try;;
13353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13354 (eval "$ac_compile") 2>conftest.er1
13356 grep -v '^ *+' conftest.er1 >conftest.err
13358 cat conftest.err >&5
13359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13360 (exit $ac_status); } &&
13361 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13362 { (case "(($ac_try" in
13363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13364 *) ac_try_echo=$ac_try;;
13366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13367 (eval "$ac_try") 2>&5
13369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13370 (exit $ac_status); }; } &&
13371 { ac_try='test -s conftest.$ac_objext'
13372 { (case "(($ac_try" in
13373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13374 *) ac_try_echo=$ac_try;;
13376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13377 (eval "$ac_try") 2>&5
13379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13380 (exit $ac_status); }; }; then
13381 am_cv_proto_iconv_arg1=""
13383 echo "$as_me: failed program was:" >&5
13384 sed 's/^/| /' conftest.$ac_ext >&5
13386 am_cv_proto_iconv_arg1="const"
13389 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13390 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);"
13393 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
13394 { echo "$as_me:$LINENO: result: ${ac_t:-
13395 }$am_cv_proto_iconv" >&5
13396 echo "${ECHO_T}${ac_t:-
13397 }$am_cv_proto_iconv" >&6; }
13399 cat >>confdefs.h <<_ACEOF
13400 #define ICONV_CONST $am_cv_proto_iconv_arg1
13406 { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
13407 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; }
13408 if test "${am_cv_langinfo_codeset+set}" = set; then
13409 echo $ECHO_N "(cached) $ECHO_C" >&6
13411 cat >conftest.$ac_ext <<_ACEOF
13414 cat confdefs.h >>conftest.$ac_ext
13415 cat >>conftest.$ac_ext <<_ACEOF
13416 /* end confdefs.h. */
13417 #include <langinfo.h>
13421 char* cs = nl_langinfo(CODESET);
13426 rm -f conftest.$ac_objext conftest$ac_exeext
13427 if { (ac_try="$ac_link"
13428 case "(($ac_try" in
13429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13430 *) ac_try_echo=$ac_try;;
13432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13433 (eval "$ac_link") 2>conftest.er1
13435 grep -v '^ *+' conftest.er1 >conftest.err
13437 cat conftest.err >&5
13438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13439 (exit $ac_status); } &&
13440 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13441 { (case "(($ac_try" in
13442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13443 *) ac_try_echo=$ac_try;;
13445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13446 (eval "$ac_try") 2>&5
13448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13449 (exit $ac_status); }; } &&
13450 { ac_try='test -s conftest$ac_exeext'
13451 { (case "(($ac_try" in
13452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13453 *) ac_try_echo=$ac_try;;
13455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13456 (eval "$ac_try") 2>&5
13458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13459 (exit $ac_status); }; }; then
13460 am_cv_langinfo_codeset=yes
13462 echo "$as_me: failed program was:" >&5
13463 sed 's/^/| /' conftest.$ac_ext >&5
13465 am_cv_langinfo_codeset=no
13468 rm -f core conftest.err conftest.$ac_objext \
13469 conftest$ac_exeext conftest.$ac_ext
13472 { echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
13473 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6; }
13474 if test $am_cv_langinfo_codeset = yes; then
13476 cat >>confdefs.h <<\_ACEOF
13477 #define HAVE_LANGINFO_CODESET 1
13482 if test $ac_cv_header_locale_h = yes; then
13484 { echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
13485 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6; }
13486 if test "${gt_cv_val_LC_MESSAGES+set}" = set; then
13487 echo $ECHO_N "(cached) $ECHO_C" >&6
13489 cat >conftest.$ac_ext <<_ACEOF
13492 cat confdefs.h >>conftest.$ac_ext
13493 cat >>conftest.$ac_ext <<_ACEOF
13494 /* end confdefs.h. */
13495 #include <locale.h>
13504 rm -f conftest.$ac_objext conftest$ac_exeext
13505 if { (ac_try="$ac_link"
13506 case "(($ac_try" in
13507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13508 *) ac_try_echo=$ac_try;;
13510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13511 (eval "$ac_link") 2>conftest.er1
13513 grep -v '^ *+' conftest.er1 >conftest.err
13515 cat conftest.err >&5
13516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13517 (exit $ac_status); } &&
13518 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13519 { (case "(($ac_try" in
13520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13521 *) ac_try_echo=$ac_try;;
13523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13524 (eval "$ac_try") 2>&5
13526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13527 (exit $ac_status); }; } &&
13528 { ac_try='test -s conftest$ac_exeext'
13529 { (case "(($ac_try" in
13530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13531 *) ac_try_echo=$ac_try;;
13533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13534 (eval "$ac_try") 2>&5
13536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13537 (exit $ac_status); }; }; then
13538 gt_cv_val_LC_MESSAGES=yes
13540 echo "$as_me: failed program was:" >&5
13541 sed 's/^/| /' conftest.$ac_ext >&5
13543 gt_cv_val_LC_MESSAGES=no
13546 rm -f core conftest.err conftest.$ac_objext \
13547 conftest$ac_exeext conftest.$ac_ext
13549 { echo "$as_me:$LINENO: result: $gt_cv_val_LC_MESSAGES" >&5
13550 echo "${ECHO_T}$gt_cv_val_LC_MESSAGES" >&6; }
13551 if test $gt_cv_val_LC_MESSAGES = yes; then
13553 cat >>confdefs.h <<\_ACEOF
13554 #define HAVE_LC_MESSAGES 1
13561 if test -n "$INTL_MACOSX_LIBS"; then
13562 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
13565 for ac_prog in bison
13567 # Extract the first word of "$ac_prog", so it can be a program name with args.
13568 set dummy $ac_prog; ac_word=$2
13569 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13570 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13571 if test "${ac_cv_prog_INTLBISON+set}" = set; then
13572 echo $ECHO_N "(cached) $ECHO_C" >&6
13574 if test -n "$INTLBISON"; then
13575 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
13577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13578 for as_dir in $PATH
13581 test -z "$as_dir" && as_dir=.
13582 for ac_exec_ext in '' $ac_executable_extensions; do
13583 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13584 ac_cv_prog_INTLBISON="$ac_prog"
13585 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13594 INTLBISON=$ac_cv_prog_INTLBISON
13595 if test -n "$INTLBISON"; then
13596 { echo "$as_me:$LINENO: result: $INTLBISON" >&5
13597 echo "${ECHO_T}$INTLBISON" >&6; }
13599 { echo "$as_me:$LINENO: result: no" >&5
13600 echo "${ECHO_T}no" >&6; }
13604 test -n "$INTLBISON" && break
13607 if test -z "$INTLBISON"; then
13610 { echo "$as_me:$LINENO: checking version of bison" >&5
13611 echo $ECHO_N "checking version of bison... $ECHO_C" >&6; }
13612 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
13613 case $ac_prog_version in
13614 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
13615 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
13616 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
13617 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
13619 { echo "$as_me:$LINENO: result: $ac_prog_version" >&5
13620 echo "${ECHO_T}$ac_prog_version" >&6; }
13622 if test $ac_verc_fail = yes; then
13641 { echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
13642 echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6; }
13643 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
13644 echo $ECHO_N "(cached) $ECHO_C" >&6
13646 gt_save_CPPFLAGS="$CPPFLAGS"
13647 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
13648 gt_save_LIBS="$LIBS"
13649 LIBS="$LIBS -framework CoreFoundation"
13650 cat >conftest.$ac_ext <<_ACEOF
13653 cat confdefs.h >>conftest.$ac_ext
13654 cat >>conftest.$ac_ext <<_ACEOF
13655 /* end confdefs.h. */
13656 #include <CFPreferences.h>
13660 CFPreferencesCopyAppValue(NULL, NULL)
13665 rm -f conftest.$ac_objext conftest$ac_exeext
13666 if { (ac_try="$ac_link"
13667 case "(($ac_try" in
13668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13669 *) ac_try_echo=$ac_try;;
13671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13672 (eval "$ac_link") 2>conftest.er1
13674 grep -v '^ *+' conftest.er1 >conftest.err
13676 cat conftest.err >&5
13677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13678 (exit $ac_status); } &&
13679 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13680 { (case "(($ac_try" in
13681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13682 *) ac_try_echo=$ac_try;;
13684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13685 (eval "$ac_try") 2>&5
13687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13688 (exit $ac_status); }; } &&
13689 { ac_try='test -s conftest$ac_exeext'
13690 { (case "(($ac_try" in
13691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13692 *) ac_try_echo=$ac_try;;
13694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13695 (eval "$ac_try") 2>&5
13697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13698 (exit $ac_status); }; }; then
13699 gt_cv_func_CFPreferencesCopyAppValue=yes
13701 echo "$as_me: failed program was:" >&5
13702 sed 's/^/| /' conftest.$ac_ext >&5
13704 gt_cv_func_CFPreferencesCopyAppValue=no
13707 rm -f core conftest.err conftest.$ac_objext \
13708 conftest$ac_exeext conftest.$ac_ext
13709 CPPFLAGS="$gt_save_CPPFLAGS"
13710 LIBS="$gt_save_LIBS"
13712 { echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
13713 echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
13714 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
13716 cat >>confdefs.h <<\_ACEOF
13717 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
13721 { echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
13722 echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6; }
13723 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
13724 echo $ECHO_N "(cached) $ECHO_C" >&6
13726 gt_save_CPPFLAGS="$CPPFLAGS"
13727 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
13728 gt_save_LIBS="$LIBS"
13729 LIBS="$LIBS -framework CoreFoundation"
13730 cat >conftest.$ac_ext <<_ACEOF
13733 cat confdefs.h >>conftest.$ac_ext
13734 cat >>conftest.$ac_ext <<_ACEOF
13735 /* end confdefs.h. */
13736 #include <CFLocale.h>
13740 CFLocaleCopyCurrent();
13745 rm -f conftest.$ac_objext conftest$ac_exeext
13746 if { (ac_try="$ac_link"
13747 case "(($ac_try" in
13748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13749 *) ac_try_echo=$ac_try;;
13751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13752 (eval "$ac_link") 2>conftest.er1
13754 grep -v '^ *+' conftest.er1 >conftest.err
13756 cat conftest.err >&5
13757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13758 (exit $ac_status); } &&
13759 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13760 { (case "(($ac_try" in
13761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13762 *) ac_try_echo=$ac_try;;
13764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13765 (eval "$ac_try") 2>&5
13767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13768 (exit $ac_status); }; } &&
13769 { ac_try='test -s conftest$ac_exeext'
13770 { (case "(($ac_try" in
13771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13772 *) ac_try_echo=$ac_try;;
13774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13775 (eval "$ac_try") 2>&5
13777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13778 (exit $ac_status); }; }; then
13779 gt_cv_func_CFLocaleCopyCurrent=yes
13781 echo "$as_me: failed program was:" >&5
13782 sed 's/^/| /' conftest.$ac_ext >&5
13784 gt_cv_func_CFLocaleCopyCurrent=no
13787 rm -f core conftest.err conftest.$ac_objext \
13788 conftest$ac_exeext conftest.$ac_ext
13789 CPPFLAGS="$gt_save_CPPFLAGS"
13790 LIBS="$gt_save_LIBS"
13792 { echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
13793 echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6; }
13794 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
13796 cat >>confdefs.h <<\_ACEOF
13797 #define HAVE_CFLOCALECOPYCURRENT 1
13802 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
13803 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
13809 { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
13810 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
13811 # Check whether --enable-nls was given.
13812 if test "${enable_nls+set}" = set; then
13813 enableval=$enable_nls; USE_NLS=$enableval
13818 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
13819 echo "${ECHO_T}$USE_NLS" >&6; }
13824 BUILD_INCLUDED_LIBINTL=no
13825 USE_INCLUDED_LIBINTL=no
13831 if test "$USE_NLS" = "yes"; then
13832 gt_use_preinstalled_gnugettext=no
13834 { echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
13835 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6; }
13837 # Check whether --with-included-gettext was given.
13838 if test "${with_included_gettext+set}" = set; then
13839 withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
13841 nls_cv_force_use_gnu_gettext=no
13844 { echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
13845 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6; }
13847 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
13848 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
13855 { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
13856 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
13857 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
13858 echo $ECHO_N "(cached) $ECHO_C" >&6
13860 cat >conftest.$ac_ext <<_ACEOF
13863 cat confdefs.h >>conftest.$ac_ext
13864 cat >>conftest.$ac_ext <<_ACEOF
13865 /* end confdefs.h. */
13866 #include <libintl.h>
13867 extern int _nl_msg_cat_cntr;
13868 extern int *_nl_domain_bindings;
13872 bindtextdomain ("", "");
13873 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
13878 rm -f conftest.$ac_objext conftest$ac_exeext
13879 if { (ac_try="$ac_link"
13880 case "(($ac_try" in
13881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13882 *) ac_try_echo=$ac_try;;
13884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13885 (eval "$ac_link") 2>conftest.er1
13887 grep -v '^ *+' conftest.er1 >conftest.err
13889 cat conftest.err >&5
13890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13891 (exit $ac_status); } &&
13892 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13893 { (case "(($ac_try" in
13894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13895 *) ac_try_echo=$ac_try;;
13897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13898 (eval "$ac_try") 2>&5
13900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13901 (exit $ac_status); }; } &&
13902 { ac_try='test -s conftest$ac_exeext'
13903 { (case "(($ac_try" in
13904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13905 *) ac_try_echo=$ac_try;;
13907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13908 (eval "$ac_try") 2>&5
13910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13911 (exit $ac_status); }; }; then
13912 gt_cv_func_gnugettext1_libc=yes
13914 echo "$as_me: failed program was:" >&5
13915 sed 's/^/| /' conftest.$ac_ext >&5
13917 gt_cv_func_gnugettext1_libc=no
13920 rm -f core conftest.err conftest.$ac_objext \
13921 conftest$ac_exeext conftest.$ac_ext
13923 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
13924 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6; }
13926 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
13932 acl_save_prefix="$prefix"
13933 prefix="$acl_final_prefix"
13934 acl_save_exec_prefix="$exec_prefix"
13935 exec_prefix="$acl_final_exec_prefix"
13937 eval additional_includedir=\"$includedir\"
13938 eval additional_libdir=\"$libdir\"
13940 exec_prefix="$acl_save_exec_prefix"
13941 prefix="$acl_save_prefix"
13944 # Check whether --with-libintl-prefix was given.
13945 if test "${with_libintl_prefix+set}" = set; then
13946 withval=$with_libintl_prefix;
13947 if test "X$withval" = "Xno"; then
13950 if test "X$withval" = "X"; then
13952 acl_save_prefix="$prefix"
13953 prefix="$acl_final_prefix"
13954 acl_save_exec_prefix="$exec_prefix"
13955 exec_prefix="$acl_final_exec_prefix"
13957 eval additional_includedir=\"$includedir\"
13958 eval additional_libdir=\"$libdir\"
13960 exec_prefix="$acl_save_exec_prefix"
13961 prefix="$acl_save_prefix"
13964 additional_includedir="$withval/include"
13965 additional_libdir="$withval/lib"
13976 names_already_handled=
13977 names_next_round='intl '
13978 while test -n "$names_next_round"; do
13979 names_this_round="$names_next_round"
13981 for name in $names_this_round; do
13983 for n in $names_already_handled; do
13984 if test "$n" = "$name"; then
13985 already_handled=yes
13989 if test -z "$already_handled"; then
13990 names_already_handled="$names_already_handled $name"
13991 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
13992 eval value=\"\$HAVE_LIB$uppername\"
13993 if test -n "$value"; then
13994 if test "$value" = yes; then
13995 eval value=\"\$LIB$uppername\"
13996 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
13997 eval value=\"\$LTLIB$uppername\"
13998 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
14007 if test $use_additional = yes; then
14008 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
14009 found_dir="$additional_libdir"
14010 found_so="$additional_libdir/lib$name.$shlibext"
14011 if test -f "$additional_libdir/lib$name.la"; then
14012 found_la="$additional_libdir/lib$name.la"
14015 if test -f "$additional_libdir/lib$name.$libext"; then
14016 found_dir="$additional_libdir"
14017 found_a="$additional_libdir/lib$name.$libext"
14018 if test -f "$additional_libdir/lib$name.la"; then
14019 found_la="$additional_libdir/lib$name.la"
14024 if test "X$found_dir" = "X"; then
14025 for x in $LDFLAGS $LTLIBINTL; do
14027 acl_save_prefix="$prefix"
14028 prefix="$acl_final_prefix"
14029 acl_save_exec_prefix="$exec_prefix"
14030 exec_prefix="$acl_final_exec_prefix"
14032 exec_prefix="$acl_save_exec_prefix"
14033 prefix="$acl_save_prefix"
14037 dir=`echo "X$x" | sed -e 's/^X-L//'`
14038 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
14040 found_so="$dir/lib$name.$shlibext"
14041 if test -f "$dir/lib$name.la"; then
14042 found_la="$dir/lib$name.la"
14045 if test -f "$dir/lib$name.$libext"; then
14047 found_a="$dir/lib$name.$libext"
14048 if test -f "$dir/lib$name.la"; then
14049 found_la="$dir/lib$name.la"
14055 if test "X$found_dir" != "X"; then
14060 if test "X$found_dir" != "X"; then
14061 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
14062 if test "X$found_so" != "X"; then
14063 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
14064 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
14067 for x in $ltrpathdirs; do
14068 if test "X$x" = "X$found_dir"; then
14073 if test -z "$haveit"; then
14074 ltrpathdirs="$ltrpathdirs $found_dir"
14076 if test "$hardcode_direct" = yes; then
14077 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
14079 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
14080 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
14082 for x in $rpathdirs; do
14083 if test "X$x" = "X$found_dir"; then
14088 if test -z "$haveit"; then
14089 rpathdirs="$rpathdirs $found_dir"
14093 for x in $LDFLAGS $LIBINTL; do
14095 acl_save_prefix="$prefix"
14096 prefix="$acl_final_prefix"
14097 acl_save_exec_prefix="$exec_prefix"
14098 exec_prefix="$acl_final_exec_prefix"
14100 exec_prefix="$acl_save_exec_prefix"
14101 prefix="$acl_save_prefix"
14103 if test "X$x" = "X-L$found_dir"; then
14108 if test -z "$haveit"; then
14109 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
14111 if test "$hardcode_minus_L" != no; then
14112 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
14114 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
14120 if test "X$found_a" != "X"; then
14121 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
14123 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
14126 additional_includedir=
14127 case "$found_dir" in
14129 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
14130 additional_includedir="$basedir/include"
14133 if test "X$additional_includedir" != "X"; then
14134 if test "X$additional_includedir" != "X/usr/include"; then
14136 if test "X$additional_includedir" = "X/usr/local/include"; then
14137 if test -n "$GCC"; then
14139 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
14143 if test -z "$haveit"; then
14144 for x in $CPPFLAGS $INCINTL; do
14146 acl_save_prefix="$prefix"
14147 prefix="$acl_final_prefix"
14148 acl_save_exec_prefix="$exec_prefix"
14149 exec_prefix="$acl_final_exec_prefix"
14151 exec_prefix="$acl_save_exec_prefix"
14152 prefix="$acl_save_prefix"
14154 if test "X$x" = "X-I$additional_includedir"; then
14159 if test -z "$haveit"; then
14160 if test -d "$additional_includedir"; then
14161 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
14167 if test -n "$found_la"; then
14168 save_libdir="$libdir"
14169 case "$found_la" in
14170 */* | *\\*) . "$found_la" ;;
14171 *) . "./$found_la" ;;
14173 libdir="$save_libdir"
14174 for dep in $dependency_libs; do
14177 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
14178 if test "X$additional_libdir" != "X/usr/lib"; then
14180 if test "X$additional_libdir" = "X/usr/local/lib"; then
14181 if test -n "$GCC"; then
14183 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
14187 if test -z "$haveit"; then
14189 for x in $LDFLAGS $LIBINTL; do
14191 acl_save_prefix="$prefix"
14192 prefix="$acl_final_prefix"
14193 acl_save_exec_prefix="$exec_prefix"
14194 exec_prefix="$acl_final_exec_prefix"
14196 exec_prefix="$acl_save_exec_prefix"
14197 prefix="$acl_save_prefix"
14199 if test "X$x" = "X-L$additional_libdir"; then
14204 if test -z "$haveit"; then
14205 if test -d "$additional_libdir"; then
14206 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
14210 for x in $LDFLAGS $LTLIBINTL; do
14212 acl_save_prefix="$prefix"
14213 prefix="$acl_final_prefix"
14214 acl_save_exec_prefix="$exec_prefix"
14215 exec_prefix="$acl_final_exec_prefix"
14217 exec_prefix="$acl_save_exec_prefix"
14218 prefix="$acl_save_prefix"
14220 if test "X$x" = "X-L$additional_libdir"; then
14225 if test -z "$haveit"; then
14226 if test -d "$additional_libdir"; then
14227 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
14234 dir=`echo "X$dep" | sed -e 's/^X-R//'`
14235 if test "$enable_rpath" != no; then
14237 for x in $rpathdirs; do
14238 if test "X$x" = "X$dir"; then
14243 if test -z "$haveit"; then
14244 rpathdirs="$rpathdirs $dir"
14247 for x in $ltrpathdirs; do
14248 if test "X$x" = "X$dir"; then
14253 if test -z "$haveit"; then
14254 ltrpathdirs="$ltrpathdirs $dir"
14259 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
14262 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
14265 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
14266 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
14272 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
14273 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
14279 if test "X$rpathdirs" != "X"; then
14280 if test -n "$hardcode_libdir_separator"; then
14282 for found_dir in $rpathdirs; do
14283 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
14285 acl_save_libdir="$libdir"
14287 eval flag=\"$hardcode_libdir_flag_spec\"
14288 libdir="$acl_save_libdir"
14289 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
14291 for found_dir in $rpathdirs; do
14292 acl_save_libdir="$libdir"
14293 libdir="$found_dir"
14294 eval flag=\"$hardcode_libdir_flag_spec\"
14295 libdir="$acl_save_libdir"
14296 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
14300 if test "X$ltrpathdirs" != "X"; then
14301 for found_dir in $ltrpathdirs; do
14302 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
14306 { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
14307 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
14308 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
14309 echo $ECHO_N "(cached) $ECHO_C" >&6
14311 gt_save_CPPFLAGS="$CPPFLAGS"
14312 CPPFLAGS="$CPPFLAGS $INCINTL"
14313 gt_save_LIBS="$LIBS"
14314 LIBS="$LIBS $LIBINTL"
14315 cat >conftest.$ac_ext <<_ACEOF
14318 cat confdefs.h >>conftest.$ac_ext
14319 cat >>conftest.$ac_ext <<_ACEOF
14320 /* end confdefs.h. */
14321 #include <libintl.h>
14322 extern int _nl_msg_cat_cntr;
14327 const char *_nl_expand_alias (const char *);
14331 bindtextdomain ("", "");
14332 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
14337 rm -f conftest.$ac_objext conftest$ac_exeext
14338 if { (ac_try="$ac_link"
14339 case "(($ac_try" in
14340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14341 *) ac_try_echo=$ac_try;;
14343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14344 (eval "$ac_link") 2>conftest.er1
14346 grep -v '^ *+' conftest.er1 >conftest.err
14348 cat conftest.err >&5
14349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14350 (exit $ac_status); } &&
14351 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14352 { (case "(($ac_try" in
14353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14354 *) ac_try_echo=$ac_try;;
14356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14357 (eval "$ac_try") 2>&5
14359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14360 (exit $ac_status); }; } &&
14361 { ac_try='test -s conftest$ac_exeext'
14362 { (case "(($ac_try" in
14363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14364 *) ac_try_echo=$ac_try;;
14366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14367 (eval "$ac_try") 2>&5
14369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14370 (exit $ac_status); }; }; then
14371 gt_cv_func_gnugettext1_libintl=yes
14373 echo "$as_me: failed program was:" >&5
14374 sed 's/^/| /' conftest.$ac_ext >&5
14376 gt_cv_func_gnugettext1_libintl=no
14379 rm -f core conftest.err conftest.$ac_objext \
14380 conftest$ac_exeext conftest.$ac_ext
14381 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
14382 LIBS="$LIBS $LIBICONV"
14383 cat >conftest.$ac_ext <<_ACEOF
14386 cat confdefs.h >>conftest.$ac_ext
14387 cat >>conftest.$ac_ext <<_ACEOF
14388 /* end confdefs.h. */
14389 #include <libintl.h>
14390 extern int _nl_msg_cat_cntr;
14395 const char *_nl_expand_alias (const char *);
14399 bindtextdomain ("", "");
14400 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
14405 rm -f conftest.$ac_objext conftest$ac_exeext
14406 if { (ac_try="$ac_link"
14407 case "(($ac_try" in
14408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14409 *) ac_try_echo=$ac_try;;
14411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14412 (eval "$ac_link") 2>conftest.er1
14414 grep -v '^ *+' conftest.er1 >conftest.err
14416 cat conftest.err >&5
14417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14418 (exit $ac_status); } &&
14419 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14420 { (case "(($ac_try" in
14421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14422 *) ac_try_echo=$ac_try;;
14424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14425 (eval "$ac_try") 2>&5
14427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14428 (exit $ac_status); }; } &&
14429 { ac_try='test -s conftest$ac_exeext'
14430 { (case "(($ac_try" in
14431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14432 *) ac_try_echo=$ac_try;;
14434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14435 (eval "$ac_try") 2>&5
14437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14438 (exit $ac_status); }; }; then
14439 LIBINTL="$LIBINTL $LIBICONV"
14440 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
14441 gt_cv_func_gnugettext1_libintl=yes
14444 echo "$as_me: failed program was:" >&5
14445 sed 's/^/| /' conftest.$ac_ext >&5
14450 rm -f core conftest.err conftest.$ac_objext \
14451 conftest$ac_exeext conftest.$ac_ext
14453 CPPFLAGS="$gt_save_CPPFLAGS"
14454 LIBS="$gt_save_LIBS"
14456 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
14457 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6; }
14460 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
14461 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
14462 && test "$PACKAGE" != gettext-runtime \
14463 && test "$PACKAGE" != gettext-tools; }; then
14464 gt_use_preinstalled_gnugettext=yes
14472 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
14473 nls_cv_use_gnu_gettext=yes
14477 if test "$nls_cv_use_gnu_gettext" = "yes"; then
14478 BUILD_INCLUDED_LIBINTL=yes
14479 USE_INCLUDED_LIBINTL=yes
14480 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
14481 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
14482 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
14486 if test "$gt_use_preinstalled_gnugettext" = "yes" \
14487 || test "$nls_cv_use_gnu_gettext" = "yes"; then
14492 if test -n "$INTL_MACOSX_LIBS"; then
14493 if test "$gt_use_preinstalled_gnugettext" = "yes" \
14494 || test "$nls_cv_use_gnu_gettext" = "yes"; then
14495 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
14496 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
14500 if test "$gt_use_preinstalled_gnugettext" = "yes" \
14501 || test "$nls_cv_use_gnu_gettext" = "yes"; then
14503 cat >>confdefs.h <<\_ACEOF
14504 #define ENABLE_NLS 1
14512 { echo "$as_me:$LINENO: checking whether to use NLS" >&5
14513 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; }
14514 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
14515 echo "${ECHO_T}$USE_NLS" >&6; }
14516 if test "$USE_NLS" = "yes"; then
14517 { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
14518 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; }
14519 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
14520 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
14521 gt_source="external libintl"
14526 gt_source="included intl directory"
14528 { echo "$as_me:$LINENO: result: $gt_source" >&5
14529 echo "${ECHO_T}$gt_source" >&6; }
14532 if test "$USE_NLS" = "yes"; then
14534 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
14535 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
14536 { echo "$as_me:$LINENO: checking how to link with libintl" >&5
14537 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; }
14538 { echo "$as_me:$LINENO: result: $LIBINTL" >&5
14539 echo "${ECHO_T}$LIBINTL" >&6; }
14541 for element in $INCINTL; do
14543 for x in $CPPFLAGS; do
14545 acl_save_prefix="$prefix"
14546 prefix="$acl_final_prefix"
14547 acl_save_exec_prefix="$exec_prefix"
14548 exec_prefix="$acl_final_exec_prefix"
14550 exec_prefix="$acl_save_exec_prefix"
14551 prefix="$acl_save_prefix"
14553 if test "X$x" = "X$element"; then
14558 if test -z "$haveit"; then
14559 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
14566 cat >>confdefs.h <<\_ACEOF
14567 #define HAVE_GETTEXT 1
14571 cat >>confdefs.h <<\_ACEOF
14572 #define HAVE_DCGETTEXT 1
14581 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
14582 BUILD_INCLUDED_LIBINTL=yes
14589 nls_cv_header_intl=
14590 nls_cv_header_libgt=
14602 if test "$USE_INCLUDED_LIBINTL" = yes; then
14603 INTLOBJS="\$(GETTOBJS)"
14607 INTL_LIBTOOL_SUFFIX_PREFIX=
14611 INTLLIBS="$LIBINTL"
14624 support_postgresql=no
14625 support_smartalloc=yes
14626 support_readline=yes
14630 support_wx_console=no
14635 support_static_tools=no
14636 support_static_fd=no
14637 support_static_sd=no
14638 support_static_dir=no
14639 support_static_cons=no
14641 build_client_only=no
14649 # -------------------------------------------
14650 # gnome (default off)
14651 # -------------------------------------------
14652 # Check whether --enable-gnome was given.
14653 if test "${enable_gnome+set}" = set; then
14654 enableval=$enable_gnome; if test x$enableval = xyes; then
14661 if test x$support_gnome = xyes; then
14662 abc=`$PKGCONFIG --exists libgnomeui-2.0`
14664 if test $pkg = 0; then
14665 GNOME_INCLUDEDIR=`$PKGCONFIG --cflags-only-I libgnomeui-2.0`
14666 GNOMEUI_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
14667 GNOME_LIBDIR=`$PKGCONFIG --libs libgnomeui-2.0`
14668 GNOME_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
14673 GNOME_DIR=src/gnome2-console
14674 gnome_version="Version 2.x"
14676 { { echo "$as_me:$LINENO: error: Unable to find Gnome 2 installation" >&5
14677 echo "$as_me: error: Unable to find Gnome 2 installation" >&2;}
14678 { (exit 1); exit 1; }; }
14683 # -------------------------------------------
14684 # bat (default off)
14685 # -------------------------------------------
14686 # Check whether --enable-bat was given.
14687 if test "${enable_bat+set}" = set; then
14688 enableval=$enable_bat; if test x$enableval = xyes; then
14690 cat >>confdefs.h <<\_ACEOF
14700 if test x$support_bat = xyes; then
14701 abc=`$PKGCONFIG --atleast-version=4.2 QtGui`
14703 if test $pkg = 0; then
14704 BAT_DIR=src/qt-console
14706 { { echo "$as_me:$LINENO: error: Unable to find Qt4 installation needed by bat" >&5
14707 echo "$as_me: error: Unable to find Qt4 installation needed by bat" >&2;}
14708 { (exit 1); exit 1; }; }
14713 # If bat is enabled, we need the qwt library
14717 if test x$support_bat = xyes; then
14718 { echo "$as_me:$LINENO: checking for qwt support" >&5
14719 echo $ECHO_N "checking for qwt support... $ECHO_C" >&6; }
14721 # Check whether --with-qwt was given.
14722 if test "${with_qwt+set}" = set; then
14724 case "$with_qwt" in
14728 if test -f ${with_qwt}/include/qwt.h; then
14729 QWT_INC="${with_qwt}/include"
14730 QWT_LDFLAGS="-L${with_qwt}/lib"
14739 # Search in standard places, or --with-qwt not specified
14741 if test x$QWT_INC = x; then
14742 for root in /usr /usr/local; do
14743 for ver in qwt qwt5; do
14744 if test -f ${root}/include/${ver}/qwt.h; then
14745 QWT_INC="${root}/include/${ver}"
14746 if test -d ${root}/lib64/; then
14747 QWT_LDFLAGS="-L${root}/lib64"
14749 QWT_LDFLAGS="-L${root}/lib"
14757 if test x$QWT_INC = x; then
14758 { echo "$as_me:$LINENO: result: no" >&5
14759 echo "${ECHO_T}no" >&6; }
14760 { { echo "$as_me:$LINENO: error: Unable to find qwt package needed by bat" >&5
14761 echo "$as_me: error: Unable to find qwt package needed by bat" >&2;}
14762 { (exit 1); exit 1; }; }
14766 { echo "$as_me:$LINENO: result: yes" >&5
14767 echo "${ECHO_T}yes" >&6; }
14776 # -------------------------------------------
14777 # bwx-console (default off)
14778 # -------------------------------------------
14779 # Check whether --enable-bwx-console was given.
14780 if test "${enable_bwx_console+set}" = set; then
14781 enableval=$enable_bwx_console; if test x$enableval = xyes; then
14782 support_wx_console=yes
14788 if test x$support_wx_console = xyes; then
14789 abc=`$WXCONFIG $WXFLAGS --cppflags`
14791 if test $pkg = 0; then
14792 wx_version="wxWidgets `$WXCONFIG $WXFLAGS --release`"
14793 WXCONS_CPPFLAGS=`$WXCONFIG $WXFLAGS --cppflags`
14794 WXCONS_LDFLAGS=`$WXCONFIG $WXFLAGS --libs`
14798 WX_DIR=src/wx-console
14801 echo "wx-config program not found. bwx-console disabled."
14803 support_wx_console=no
14809 # -------------------------------------------
14810 # tray-monitor (default off)
14811 # -------------------------------------------
14812 # Check whether --enable-tray-monitor was given.
14813 if test "${enable_tray_monitor+set}" = set; then
14814 enableval=$enable_tray_monitor; if test x$enableval = xyes; then
14815 support_tray_monitor=yes
14821 if test x$support_tray_monitor = xyes; then
14822 abc=`$PKGCONFIG --exists gtk+-2.0`
14824 if test $pkg = 0; then
14825 TRAY_MONITOR_CPPFLAGS=`$PKGCONFIG --cflags gtk+-2.0`
14826 TRAY_MONITOR_LDFLAGS=`$PKGCONFIG --libs gtk+-2.0`
14829 TRAY_MONITOR_DIR=src/tray-monitor
14830 abc=`$PKGCONFIG --atleast-version=2.4 gtk+-2.0`
14832 if test $pkg = 0; then
14833 cat >>confdefs.h <<\_ACEOF
14834 #define HAVE_GTK_2_4 1
14842 # -------------------------------------------
14843 # smartalloc (default off)
14844 # -------------------------------------------
14845 # Check whether --enable-smartalloc was given.
14846 if test "${enable_smartalloc+set}" = set; then
14847 enableval=$enable_smartalloc; if test x$enableval = xno; then
14848 support_smartalloc=no
14853 if test x$support_smartalloc = xyes; then
14854 cat >>confdefs.h <<\_ACEOF
14855 #define SMARTALLOC 1
14860 # -------------------------------------------
14861 # static-tools (default off)
14862 # -------------------------------------------
14863 # Check whether --enable-static-tools was given.
14864 if test "${enable_static_tools+set}" = set; then
14865 enableval=$enable_static_tools; if test x$enableval = xyes; then
14866 support_static_tools=yes
14872 if test x$support_static_tools = xyes; then
14873 TTOOL_LDFLAGS="-static"
14877 # -------------------------------------------
14878 # static-fd (default off)
14879 # -------------------------------------------
14880 # Check whether --enable-static-fd was given.
14881 if test "${enable_static_fd+set}" = set; then
14882 enableval=$enable_static_fd; if test x$enableval = xyes; then
14883 support_static_fd=yes
14889 if test x$support_static_fd = xyes; then
14890 STATIC_FD="static-bacula-fd"
14894 # -------------------------------------------
14895 # static-sd (default off)
14896 # -------------------------------------------
14897 # Check whether --enable-static-sd was given.
14898 if test "${enable_static_sd+set}" = set; then
14899 enableval=$enable_static_sd; if test x$enableval = xyes; then
14900 support_static_sd=yes
14906 if test x$support_static_sd = xyes; then
14907 STATIC_SD="static-bacula-sd"
14911 # -------------------------------------------
14912 # static-dir (default off)
14913 # -------------------------------------------
14914 # Check whether --enable-static-dir was given.
14915 if test "${enable_static_dir+set}" = set; then
14916 enableval=$enable_static_dir; if test x$enableval = xyes; then
14917 support_static_dir=yes
14923 if test x$support_static_dir = xyes; then
14924 STATIC_DIR="static-bacula-dir"
14928 # -------------------------------------------
14929 # static-cons (default off)
14930 # -------------------------------------------
14931 # Check whether --enable-static-cons was given.
14932 if test "${enable_static_cons+set}" = set; then
14933 enableval=$enable_static_cons; if test x$enableval = xyes; then
14934 support_static_cons=yes
14942 if test x$support_static_cons = xyes; then
14943 STATIC_CONS="static-bconsole"
14944 STATIC_GNOME_CONS="static-bgnome-console"
14945 STATIC_WX_CONS="static-bwx-console"
14951 # -------------------------------------------
14952 # client_only (default off)
14953 # -------------------------------------------
14954 # Check whether --enable-client-only was given.
14955 if test "${enable_client_only+set}" = set; then
14956 enableval=$enable_client_only; if test x$enableval = xyes; then
14957 build_client_only=yes
14963 if test x$build_client_only = xno; then
14970 # -------------------------------------------
14971 # director (default on)
14972 # -------------------------------------------
14973 # Check whether --enable-build-dird was given.
14974 if test "${enable_build_dird+set}" = set; then
14975 enableval=$enable_build_dird; if test x$enableval = xno; then
14980 if test x$build_dird = xyes; then
14981 DIRD_DIR="src/dird"
14982 DIR_TOOLS="DIRTOOLS"
14985 DIR_TOOLS="NODIRTOOLS"
14990 # -------------------------------------------
14991 # stored (default on)
14992 # -------------------------------------------
14993 # Check whether --enable-build-stored was given.
14994 if test "${enable_build_stored+set}" = set; then
14995 enableval=$enable_build_stored; if test x$enableval = xno; then
15000 if test x$build_stored = xyes; then
15001 STORED_DIR="src/stored"
15007 # ---------------------------------------------------
15008 # Check for conio (Bacula readline substitute)(
15009 # ---------------------------------------------------
15010 # this allows you to turn it completely off
15011 # Check whether --enable-conio was given.
15012 if test "${enable_conio+set}" = set; then
15013 enableval=$enable_conio; if test x$enableval = xno; then
15021 # ---------------------------------------------------
15022 # Check for IPv6 support
15023 # ---------------------------------------------------
15024 # this allows you to turn it completely off
15026 # Check whether --enable-ipv6 was given.
15027 if test "${enable_ipv6+set}" = set; then
15028 enableval=$enable_ipv6; if test x$enableval = xno; then
15035 if test x$support_ipv6 = xyes; then
15036 cat >conftest.$ac_ext <<_ACEOF
15039 cat confdefs.h >>conftest.$ac_ext
15040 cat >>conftest.$ac_ext <<_ACEOF
15041 /* end confdefs.h. */
15042 #include <sys/types.h>
15043 #include <sys/socket.h>
15044 #include <netinet/in.h>
15048 struct sockaddr_in6 s; struct in6_addr t=in6addr_any; int i=AF_INET6; s; t.s6_addr[0] = 0;
15053 rm -f conftest.$ac_objext conftest$ac_exeext
15054 if { (ac_try="$ac_link"
15055 case "(($ac_try" in
15056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15057 *) ac_try_echo=$ac_try;;
15059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15060 (eval "$ac_link") 2>conftest.er1
15062 grep -v '^ *+' conftest.er1 >conftest.err
15064 cat conftest.err >&5
15065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15066 (exit $ac_status); } &&
15067 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15068 { (case "(($ac_try" in
15069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15070 *) ac_try_echo=$ac_try;;
15072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15073 (eval "$ac_try") 2>&5
15075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15076 (exit $ac_status); }; } &&
15077 { ac_try='test -s conftest$ac_exeext'
15078 { (case "(($ac_try" in
15079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15080 *) ac_try_echo=$ac_try;;
15082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15083 (eval "$ac_try") 2>&5
15085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15086 (exit $ac_status); }; }; then
15089 echo "$as_me: failed program was:" >&5
15090 sed 's/^/| /' conftest.$ac_ext >&5
15095 rm -f core conftest.err conftest.$ac_objext \
15096 conftest$ac_exeext conftest.$ac_ext
15099 if test x$support_ipv6 = xyes; then
15101 cat >>confdefs.h <<\_ACEOF
15102 #define HAVE_IPV6 1
15110 if test x$support_conio = xyes; then
15111 if test "${ac_cv_header_termcap_h+set}" = set; then
15112 { echo "$as_me:$LINENO: checking for termcap.h" >&5
15113 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6; }
15114 if test "${ac_cv_header_termcap_h+set}" = set; then
15115 echo $ECHO_N "(cached) $ECHO_C" >&6
15117 { echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
15118 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6; }
15120 # Is the header compilable?
15121 { echo "$as_me:$LINENO: checking termcap.h usability" >&5
15122 echo $ECHO_N "checking termcap.h usability... $ECHO_C" >&6; }
15123 cat >conftest.$ac_ext <<_ACEOF
15126 cat confdefs.h >>conftest.$ac_ext
15127 cat >>conftest.$ac_ext <<_ACEOF
15128 /* end confdefs.h. */
15129 $ac_includes_default
15130 #include <termcap.h>
15132 rm -f conftest.$ac_objext
15133 if { (ac_try="$ac_compile"
15134 case "(($ac_try" in
15135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15136 *) ac_try_echo=$ac_try;;
15138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15139 (eval "$ac_compile") 2>conftest.er1
15141 grep -v '^ *+' conftest.er1 >conftest.err
15143 cat conftest.err >&5
15144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15145 (exit $ac_status); } &&
15146 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15147 { (case "(($ac_try" in
15148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15149 *) ac_try_echo=$ac_try;;
15151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15152 (eval "$ac_try") 2>&5
15154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15155 (exit $ac_status); }; } &&
15156 { ac_try='test -s conftest.$ac_objext'
15157 { (case "(($ac_try" in
15158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15159 *) ac_try_echo=$ac_try;;
15161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15162 (eval "$ac_try") 2>&5
15164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15165 (exit $ac_status); }; }; then
15166 ac_header_compiler=yes
15168 echo "$as_me: failed program was:" >&5
15169 sed 's/^/| /' conftest.$ac_ext >&5
15171 ac_header_compiler=no
15174 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15175 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15176 echo "${ECHO_T}$ac_header_compiler" >&6; }
15178 # Is the header present?
15179 { echo "$as_me:$LINENO: checking termcap.h presence" >&5
15180 echo $ECHO_N "checking termcap.h presence... $ECHO_C" >&6; }
15181 cat >conftest.$ac_ext <<_ACEOF
15184 cat confdefs.h >>conftest.$ac_ext
15185 cat >>conftest.$ac_ext <<_ACEOF
15186 /* end confdefs.h. */
15187 #include <termcap.h>
15189 if { (ac_try="$ac_cpp conftest.$ac_ext"
15190 case "(($ac_try" in
15191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15192 *) ac_try_echo=$ac_try;;
15194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15195 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15197 grep -v '^ *+' conftest.er1 >conftest.err
15199 cat conftest.err >&5
15200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15201 (exit $ac_status); } >/dev/null; then
15202 if test -s conftest.err; then
15203 ac_cpp_err=$ac_c_preproc_warn_flag
15204 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15211 if test -z "$ac_cpp_err"; then
15212 ac_header_preproc=yes
15214 echo "$as_me: failed program was:" >&5
15215 sed 's/^/| /' conftest.$ac_ext >&5
15217 ac_header_preproc=no
15220 rm -f conftest.err conftest.$ac_ext
15221 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15222 echo "${ECHO_T}$ac_header_preproc" >&6; }
15224 # So? What about this header?
15225 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15227 { echo "$as_me:$LINENO: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&5
15228 echo "$as_me: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15229 { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the compiler's result" >&5
15230 echo "$as_me: WARNING: termcap.h: proceeding with the compiler's result" >&2;}
15231 ac_header_preproc=yes
15234 { echo "$as_me:$LINENO: WARNING: termcap.h: present but cannot be compiled" >&5
15235 echo "$as_me: WARNING: termcap.h: present but cannot be compiled" >&2;}
15236 { echo "$as_me:$LINENO: WARNING: termcap.h: check for missing prerequisite headers?" >&5
15237 echo "$as_me: WARNING: termcap.h: check for missing prerequisite headers?" >&2;}
15238 { echo "$as_me:$LINENO: WARNING: termcap.h: see the Autoconf documentation" >&5
15239 echo "$as_me: WARNING: termcap.h: see the Autoconf documentation" >&2;}
15240 { echo "$as_me:$LINENO: WARNING: termcap.h: section \"Present But Cannot Be Compiled\"" >&5
15241 echo "$as_me: WARNING: termcap.h: section \"Present But Cannot Be Compiled\"" >&2;}
15242 { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the preprocessor's result" >&5
15243 echo "$as_me: WARNING: termcap.h: proceeding with the preprocessor's result" >&2;}
15244 { echo "$as_me:$LINENO: WARNING: termcap.h: in the future, the compiler will take precedence" >&5
15245 echo "$as_me: WARNING: termcap.h: in the future, the compiler will take precedence" >&2;}
15249 { echo "$as_me:$LINENO: checking for termcap.h" >&5
15250 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6; }
15251 if test "${ac_cv_header_termcap_h+set}" = set; then
15252 echo $ECHO_N "(cached) $ECHO_C" >&6
15254 ac_cv_header_termcap_h=$ac_header_preproc
15256 { echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
15257 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6; }
15260 if test $ac_cv_header_termcap_h = yes; then
15261 { echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
15262 echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6; }
15263 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
15264 echo $ECHO_N "(cached) $ECHO_C" >&6
15266 ac_check_lib_save_LIBS=$LIBS
15267 LIBS="-ltermcap $LIBS"
15268 cat >conftest.$ac_ext <<_ACEOF
15271 cat confdefs.h >>conftest.$ac_ext
15272 cat >>conftest.$ac_ext <<_ACEOF
15273 /* end confdefs.h. */
15275 /* Override any GCC internal prototype to avoid an error.
15276 Use char because int might match the return type of a GCC
15277 builtin and then its argument prototype would still apply. */
15290 rm -f conftest.$ac_objext conftest$ac_exeext
15291 if { (ac_try="$ac_link"
15292 case "(($ac_try" in
15293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15294 *) ac_try_echo=$ac_try;;
15296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15297 (eval "$ac_link") 2>conftest.er1
15299 grep -v '^ *+' conftest.er1 >conftest.err
15301 cat conftest.err >&5
15302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15303 (exit $ac_status); } &&
15304 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15305 { (case "(($ac_try" in
15306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15307 *) ac_try_echo=$ac_try;;
15309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15310 (eval "$ac_try") 2>&5
15312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15313 (exit $ac_status); }; } &&
15314 { ac_try='test -s conftest$ac_exeext'
15315 { (case "(($ac_try" in
15316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15317 *) ac_try_echo=$ac_try;;
15319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15320 (eval "$ac_try") 2>&5
15322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15323 (exit $ac_status); }; }; then
15324 ac_cv_lib_termcap_tgetent=yes
15326 echo "$as_me: failed program was:" >&5
15327 sed 's/^/| /' conftest.$ac_ext >&5
15329 ac_cv_lib_termcap_tgetent=no
15332 rm -f core conftest.err conftest.$ac_objext \
15333 conftest$ac_exeext conftest.$ac_ext
15334 LIBS=$ac_check_lib_save_LIBS
15336 { echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
15337 echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6; }
15338 if test $ac_cv_lib_termcap_tgetent = yes; then
15339 CONS_LIBS="-ltermcap"
15343 support_readline=no
15345 cat >>confdefs.h <<\_ACEOF
15346 #define HAVE_CONIO 1
15351 { echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5
15352 echo $ECHO_N "checking for tgetent in -lncurses... $ECHO_C" >&6; }
15353 if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then
15354 echo $ECHO_N "(cached) $ECHO_C" >&6
15356 ac_check_lib_save_LIBS=$LIBS
15357 LIBS="-lncurses $LIBS"
15358 cat >conftest.$ac_ext <<_ACEOF
15361 cat confdefs.h >>conftest.$ac_ext
15362 cat >>conftest.$ac_ext <<_ACEOF
15363 /* end confdefs.h. */
15365 /* Override any GCC internal prototype to avoid an error.
15366 Use char because int might match the return type of a GCC
15367 builtin and then its argument prototype would still apply. */
15380 rm -f conftest.$ac_objext conftest$ac_exeext
15381 if { (ac_try="$ac_link"
15382 case "(($ac_try" in
15383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15384 *) ac_try_echo=$ac_try;;
15386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15387 (eval "$ac_link") 2>conftest.er1
15389 grep -v '^ *+' conftest.er1 >conftest.err
15391 cat conftest.err >&5
15392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15393 (exit $ac_status); } &&
15394 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15395 { (case "(($ac_try" in
15396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15397 *) ac_try_echo=$ac_try;;
15399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15400 (eval "$ac_try") 2>&5
15402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15403 (exit $ac_status); }; } &&
15404 { ac_try='test -s conftest$ac_exeext'
15405 { (case "(($ac_try" in
15406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15407 *) ac_try_echo=$ac_try;;
15409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15410 (eval "$ac_try") 2>&5
15412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15413 (exit $ac_status); }; }; then
15414 ac_cv_lib_ncurses_tgetent=yes
15416 echo "$as_me: failed program was:" >&5
15417 sed 's/^/| /' conftest.$ac_ext >&5
15419 ac_cv_lib_ncurses_tgetent=no
15422 rm -f core conftest.err conftest.$ac_objext \
15423 conftest$ac_exeext conftest.$ac_ext
15424 LIBS=$ac_check_lib_save_LIBS
15426 { echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5
15427 echo "${ECHO_T}$ac_cv_lib_ncurses_tgetent" >&6; }
15428 if test $ac_cv_lib_ncurses_tgetent = yes; then
15429 CONS_LIBS="-lncurses"
15433 support_readline=no
15435 cat >>confdefs.h <<\_ACEOF
15436 #define HAVE_CONIO 1
15449 for ac_header in curses.h
15451 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15452 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15453 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15454 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15455 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15456 echo $ECHO_N "(cached) $ECHO_C" >&6
15458 ac_res=`eval echo '${'$as_ac_Header'}'`
15459 { echo "$as_me:$LINENO: result: $ac_res" >&5
15460 echo "${ECHO_T}$ac_res" >&6; }
15462 # Is the header compilable?
15463 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15464 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15465 cat >conftest.$ac_ext <<_ACEOF
15468 cat confdefs.h >>conftest.$ac_ext
15469 cat >>conftest.$ac_ext <<_ACEOF
15470 /* end confdefs.h. */
15471 $ac_includes_default
15472 #include <$ac_header>
15474 rm -f conftest.$ac_objext
15475 if { (ac_try="$ac_compile"
15476 case "(($ac_try" in
15477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15478 *) ac_try_echo=$ac_try;;
15480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15481 (eval "$ac_compile") 2>conftest.er1
15483 grep -v '^ *+' conftest.er1 >conftest.err
15485 cat conftest.err >&5
15486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15487 (exit $ac_status); } &&
15488 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15489 { (case "(($ac_try" in
15490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15491 *) ac_try_echo=$ac_try;;
15493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15494 (eval "$ac_try") 2>&5
15496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15497 (exit $ac_status); }; } &&
15498 { ac_try='test -s conftest.$ac_objext'
15499 { (case "(($ac_try" in
15500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15501 *) ac_try_echo=$ac_try;;
15503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15504 (eval "$ac_try") 2>&5
15506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15507 (exit $ac_status); }; }; then
15508 ac_header_compiler=yes
15510 echo "$as_me: failed program was:" >&5
15511 sed 's/^/| /' conftest.$ac_ext >&5
15513 ac_header_compiler=no
15516 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15517 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15518 echo "${ECHO_T}$ac_header_compiler" >&6; }
15520 # Is the header present?
15521 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15522 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15523 cat >conftest.$ac_ext <<_ACEOF
15526 cat confdefs.h >>conftest.$ac_ext
15527 cat >>conftest.$ac_ext <<_ACEOF
15528 /* end confdefs.h. */
15529 #include <$ac_header>
15531 if { (ac_try="$ac_cpp conftest.$ac_ext"
15532 case "(($ac_try" in
15533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15534 *) ac_try_echo=$ac_try;;
15536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15537 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15539 grep -v '^ *+' conftest.er1 >conftest.err
15541 cat conftest.err >&5
15542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15543 (exit $ac_status); } >/dev/null; then
15544 if test -s conftest.err; then
15545 ac_cpp_err=$ac_c_preproc_warn_flag
15546 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15553 if test -z "$ac_cpp_err"; then
15554 ac_header_preproc=yes
15556 echo "$as_me: failed program was:" >&5
15557 sed 's/^/| /' conftest.$ac_ext >&5
15559 ac_header_preproc=no
15562 rm -f conftest.err conftest.$ac_ext
15563 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15564 echo "${ECHO_T}$ac_header_preproc" >&6; }
15566 # So? What about this header?
15567 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15569 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15570 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15571 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15572 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15573 ac_header_preproc=yes
15576 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15577 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15578 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15579 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15580 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15581 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15582 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15583 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15584 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15585 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15586 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15587 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15591 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15592 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15593 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15594 echo $ECHO_N "(cached) $ECHO_C" >&6
15596 eval "$as_ac_Header=\$ac_header_preproc"
15598 ac_res=`eval echo '${'$as_ac_Header'}'`
15599 { echo "$as_me:$LINENO: result: $ac_res" >&5
15600 echo "${ECHO_T}$ac_res" >&6; }
15603 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15604 cat >>confdefs.h <<_ACEOF
15605 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15612 { echo "$as_me:$LINENO: checking for term.h" >&5
15613 echo $ECHO_N "checking for term.h... $ECHO_C" >&6; }
15614 if test "${ac_cv_header_term_h+set}" = set; then
15615 echo $ECHO_N "(cached) $ECHO_C" >&6
15617 cat >conftest.$ac_ext <<_ACEOF
15620 cat confdefs.h >>conftest.$ac_ext
15621 cat >>conftest.$ac_ext <<_ACEOF
15622 /* end confdefs.h. */
15624 #include <curses.h>
15630 rm -f conftest.$ac_objext
15631 if { (ac_try="$ac_compile"
15632 case "(($ac_try" in
15633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15634 *) ac_try_echo=$ac_try;;
15636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15637 (eval "$ac_compile") 2>conftest.er1
15639 grep -v '^ *+' conftest.er1 >conftest.err
15641 cat conftest.err >&5
15642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15643 (exit $ac_status); } &&
15644 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15645 { (case "(($ac_try" in
15646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15647 *) ac_try_echo=$ac_try;;
15649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15650 (eval "$ac_try") 2>&5
15652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15653 (exit $ac_status); }; } &&
15654 { ac_try='test -s conftest.$ac_objext'
15655 { (case "(($ac_try" in
15656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15657 *) ac_try_echo=$ac_try;;
15659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15660 (eval "$ac_try") 2>&5
15662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15663 (exit $ac_status); }; }; then
15664 ac_cv_header_term_h=yes
15666 echo "$as_me: failed program was:" >&5
15667 sed 's/^/| /' conftest.$ac_ext >&5
15669 ac_cv_header_term_h=no
15672 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15674 { echo "$as_me:$LINENO: result: $ac_cv_header_term_h" >&5
15675 echo "${ECHO_T}$ac_cv_header_term_h" >&6; }
15676 if test $ac_cv_header_term_h = yes; then
15677 { echo "$as_me:$LINENO: checking for tgetent in -lcurses" >&5
15678 echo $ECHO_N "checking for tgetent in -lcurses... $ECHO_C" >&6; }
15679 if test "${ac_cv_lib_curses_tgetent+set}" = set; then
15680 echo $ECHO_N "(cached) $ECHO_C" >&6
15682 ac_check_lib_save_LIBS=$LIBS
15683 LIBS="-lcurses $LIBS"
15684 cat >conftest.$ac_ext <<_ACEOF
15687 cat confdefs.h >>conftest.$ac_ext
15688 cat >>conftest.$ac_ext <<_ACEOF
15689 /* end confdefs.h. */
15691 /* Override any GCC internal prototype to avoid an error.
15692 Use char because int might match the return type of a GCC
15693 builtin and then its argument prototype would still apply. */
15706 rm -f conftest.$ac_objext conftest$ac_exeext
15707 if { (ac_try="$ac_link"
15708 case "(($ac_try" in
15709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15710 *) ac_try_echo=$ac_try;;
15712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15713 (eval "$ac_link") 2>conftest.er1
15715 grep -v '^ *+' conftest.er1 >conftest.err
15717 cat conftest.err >&5
15718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15719 (exit $ac_status); } &&
15720 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15721 { (case "(($ac_try" in
15722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15723 *) ac_try_echo=$ac_try;;
15725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15726 (eval "$ac_try") 2>&5
15728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15729 (exit $ac_status); }; } &&
15730 { ac_try='test -s conftest$ac_exeext'
15731 { (case "(($ac_try" in
15732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15733 *) ac_try_echo=$ac_try;;
15735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15736 (eval "$ac_try") 2>&5
15738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15739 (exit $ac_status); }; }; then
15740 ac_cv_lib_curses_tgetent=yes
15742 echo "$as_me: failed program was:" >&5
15743 sed 's/^/| /' conftest.$ac_ext >&5
15745 ac_cv_lib_curses_tgetent=no
15748 rm -f core conftest.err conftest.$ac_objext \
15749 conftest$ac_exeext conftest.$ac_ext
15750 LIBS=$ac_check_lib_save_LIBS
15752 { echo "$as_me:$LINENO: result: $ac_cv_lib_curses_tgetent" >&5
15753 echo "${ECHO_T}$ac_cv_lib_curses_tgetent" >&6; }
15754 if test $ac_cv_lib_curses_tgetent = yes; then
15755 CONS_LIBS="-lcurses"
15759 support_readline=no
15761 cat >>confdefs.h <<\_ACEOF
15762 #define HAVE_CONIO 1
15770 echo " "; echo "Required libraries not found. CONIO turned off ..."; echo " "
15781 # ---------------------------------------------------
15782 # Check for readline support/directory (default off)
15783 # ---------------------------------------------------
15784 # this allows you to turn it completely off
15785 # Check whether --enable-readline was given.
15786 if test "${enable_readline+set}" = set; then
15787 enableval=$enable_readline; if test x$enableval = xno; then
15788 support_readline=no
15795 if test x$support_readline = xyes; then
15797 # Check whether --with-readline was given.
15798 if test "${with_readline+set}" = set; then
15799 withval=$with_readline;
15800 case "$with_readline" in
15803 if test -f ${with_readline}/readline.h; then
15804 CONS_INC="-I${with_readline}"
15805 CONS_LDFLAGS="-L$with_readline"
15806 elif test -f ${with_readline}/include/readline/readline.h; then
15807 CONS_INC="-I${with_readline}/include/readline"
15808 CONS_LDFLAGS="-L${with_readline}/lib"
15809 with_readline="${with_readline}/include/readline"
15811 with_readline="/usr/include/readline"
15813 as_ac_Header=`echo "ac_cv_header_${with_readline}/readline.h" | $as_tr_sh`
15814 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15815 { echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
15816 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6; }
15817 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15818 echo $ECHO_N "(cached) $ECHO_C" >&6
15820 ac_res=`eval echo '${'$as_ac_Header'}'`
15821 { echo "$as_me:$LINENO: result: $ac_res" >&5
15822 echo "${ECHO_T}$ac_res" >&6; }
15824 # Is the header compilable?
15825 { echo "$as_me:$LINENO: checking ${with_readline}/readline.h usability" >&5
15826 echo $ECHO_N "checking ${with_readline}/readline.h usability... $ECHO_C" >&6; }
15827 cat >conftest.$ac_ext <<_ACEOF
15830 cat confdefs.h >>conftest.$ac_ext
15831 cat >>conftest.$ac_ext <<_ACEOF
15832 /* end confdefs.h. */
15833 $ac_includes_default
15834 #include <${with_readline}/readline.h>
15836 rm -f conftest.$ac_objext
15837 if { (ac_try="$ac_compile"
15838 case "(($ac_try" in
15839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15840 *) ac_try_echo=$ac_try;;
15842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15843 (eval "$ac_compile") 2>conftest.er1
15845 grep -v '^ *+' conftest.er1 >conftest.err
15847 cat conftest.err >&5
15848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15849 (exit $ac_status); } &&
15850 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15851 { (case "(($ac_try" in
15852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15853 *) ac_try_echo=$ac_try;;
15855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15856 (eval "$ac_try") 2>&5
15858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15859 (exit $ac_status); }; } &&
15860 { ac_try='test -s conftest.$ac_objext'
15861 { (case "(($ac_try" in
15862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15863 *) ac_try_echo=$ac_try;;
15865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15866 (eval "$ac_try") 2>&5
15868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15869 (exit $ac_status); }; }; then
15870 ac_header_compiler=yes
15872 echo "$as_me: failed program was:" >&5
15873 sed 's/^/| /' conftest.$ac_ext >&5
15875 ac_header_compiler=no
15878 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15879 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15880 echo "${ECHO_T}$ac_header_compiler" >&6; }
15882 # Is the header present?
15883 { echo "$as_me:$LINENO: checking ${with_readline}/readline.h presence" >&5
15884 echo $ECHO_N "checking ${with_readline}/readline.h presence... $ECHO_C" >&6; }
15885 cat >conftest.$ac_ext <<_ACEOF
15888 cat confdefs.h >>conftest.$ac_ext
15889 cat >>conftest.$ac_ext <<_ACEOF
15890 /* end confdefs.h. */
15891 #include <${with_readline}/readline.h>
15893 if { (ac_try="$ac_cpp conftest.$ac_ext"
15894 case "(($ac_try" in
15895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15896 *) ac_try_echo=$ac_try;;
15898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15899 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15901 grep -v '^ *+' conftest.er1 >conftest.err
15903 cat conftest.err >&5
15904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15905 (exit $ac_status); } >/dev/null; then
15906 if test -s conftest.err; then
15907 ac_cpp_err=$ac_c_preproc_warn_flag
15908 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15915 if test -z "$ac_cpp_err"; then
15916 ac_header_preproc=yes
15918 echo "$as_me: failed program was:" >&5
15919 sed 's/^/| /' conftest.$ac_ext >&5
15921 ac_header_preproc=no
15924 rm -f conftest.err conftest.$ac_ext
15925 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15926 echo "${ECHO_T}$ac_header_preproc" >&6; }
15928 # So? What about this header?
15929 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15931 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
15932 echo "$as_me: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15933 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&5
15934 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&2;}
15935 ac_header_preproc=yes
15938 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&5
15939 echo "$as_me: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&2;}
15940 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: check for missing prerequisite headers?" >&5
15941 echo "$as_me: WARNING: ${with_readline}/readline.h: check for missing prerequisite headers?" >&2;}
15942 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&5
15943 echo "$as_me: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&2;}
15944 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: section \"Present But Cannot Be Compiled\"" >&5
15945 echo "$as_me: WARNING: ${with_readline}/readline.h: section \"Present But Cannot Be Compiled\"" >&2;}
15946 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&5
15947 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&2;}
15948 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&5
15949 echo "$as_me: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&2;}
15953 { echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
15954 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6; }
15955 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15956 echo $ECHO_N "(cached) $ECHO_C" >&6
15958 eval "$as_ac_Header=\$ac_header_preproc"
15960 ac_res=`eval echo '${'$as_ac_Header'}'`
15961 { echo "$as_me:$LINENO: result: $ac_res" >&5
15962 echo "${ECHO_T}$ac_res" >&6; }
15965 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15966 cat >>confdefs.h <<\_ACEOF
15967 #define HAVE_READLINE 1
15970 CONS_LIBS="-lreadline -lhistory -ltermcap"
15975 echo "readline.h not found. readline turned off ..."
15987 # check for standard readline library
15988 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
15989 { echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
15990 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6; }
15991 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
15992 echo $ECHO_N "(cached) $ECHO_C" >&6
15994 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
15995 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6; }
15997 # Is the header compilable?
15998 { echo "$as_me:$LINENO: checking /usr/include/readline/readline.h usability" >&5
15999 echo $ECHO_N "checking /usr/include/readline/readline.h usability... $ECHO_C" >&6; }
16000 cat >conftest.$ac_ext <<_ACEOF
16003 cat confdefs.h >>conftest.$ac_ext
16004 cat >>conftest.$ac_ext <<_ACEOF
16005 /* end confdefs.h. */
16006 $ac_includes_default
16007 #include </usr/include/readline/readline.h>
16009 rm -f conftest.$ac_objext
16010 if { (ac_try="$ac_compile"
16011 case "(($ac_try" in
16012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16013 *) ac_try_echo=$ac_try;;
16015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16016 (eval "$ac_compile") 2>conftest.er1
16018 grep -v '^ *+' conftest.er1 >conftest.err
16020 cat conftest.err >&5
16021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16022 (exit $ac_status); } &&
16023 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16024 { (case "(($ac_try" in
16025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16026 *) ac_try_echo=$ac_try;;
16028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16029 (eval "$ac_try") 2>&5
16031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16032 (exit $ac_status); }; } &&
16033 { ac_try='test -s conftest.$ac_objext'
16034 { (case "(($ac_try" in
16035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16036 *) ac_try_echo=$ac_try;;
16038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16039 (eval "$ac_try") 2>&5
16041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16042 (exit $ac_status); }; }; then
16043 ac_header_compiler=yes
16045 echo "$as_me: failed program was:" >&5
16046 sed 's/^/| /' conftest.$ac_ext >&5
16048 ac_header_compiler=no
16051 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16052 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16053 echo "${ECHO_T}$ac_header_compiler" >&6; }
16055 # Is the header present?
16056 { echo "$as_me:$LINENO: checking /usr/include/readline/readline.h presence" >&5
16057 echo $ECHO_N "checking /usr/include/readline/readline.h presence... $ECHO_C" >&6; }
16058 cat >conftest.$ac_ext <<_ACEOF
16061 cat confdefs.h >>conftest.$ac_ext
16062 cat >>conftest.$ac_ext <<_ACEOF
16063 /* end confdefs.h. */
16064 #include </usr/include/readline/readline.h>
16066 if { (ac_try="$ac_cpp conftest.$ac_ext"
16067 case "(($ac_try" in
16068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16069 *) ac_try_echo=$ac_try;;
16071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16072 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16074 grep -v '^ *+' conftest.er1 >conftest.err
16076 cat conftest.err >&5
16077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16078 (exit $ac_status); } >/dev/null; then
16079 if test -s conftest.err; then
16080 ac_cpp_err=$ac_c_preproc_warn_flag
16081 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16088 if test -z "$ac_cpp_err"; then
16089 ac_header_preproc=yes
16091 echo "$as_me: failed program was:" >&5
16092 sed 's/^/| /' conftest.$ac_ext >&5
16094 ac_header_preproc=no
16097 rm -f conftest.err conftest.$ac_ext
16098 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16099 echo "${ECHO_T}$ac_header_preproc" >&6; }
16101 # So? What about this header?
16102 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16104 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
16105 echo "$as_me: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16106 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&5
16107 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&2;}
16108 ac_header_preproc=yes
16111 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&5
16112 echo "$as_me: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&2;}
16113 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: check for missing prerequisite headers?" >&5
16114 echo "$as_me: WARNING: /usr/include/readline/readline.h: check for missing prerequisite headers?" >&2;}
16115 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&5
16116 echo "$as_me: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&2;}
16117 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&5
16118 echo "$as_me: WARNING: /usr/include/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&2;}
16119 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&5
16120 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&2;}
16121 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&5
16122 echo "$as_me: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&2;}
16126 { echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
16127 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6; }
16128 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
16129 echo $ECHO_N "(cached) $ECHO_C" >&6
16131 ac_cv_header__usr_include_readline_readline_h=$ac_header_preproc
16133 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
16134 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6; }
16137 if test $ac_cv_header__usr_include_readline_readline_h = yes; then
16138 cat >>confdefs.h <<\_ACEOF
16139 #define HAVE_READLINE 1
16143 CONS_INC="-I/usr/include/readline"
16144 CONS_LIBS="-lreadline -ltermcap"
16148 # Did not find standard library, so try Bacula's default
16149 as_ac_Header=`echo "ac_cv_header_${TOP_DIR}/depkgs/readline/readline.h" | $as_tr_sh`
16150 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16151 { echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
16152 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6; }
16153 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16154 echo $ECHO_N "(cached) $ECHO_C" >&6
16156 ac_res=`eval echo '${'$as_ac_Header'}'`
16157 { echo "$as_me:$LINENO: result: $ac_res" >&5
16158 echo "${ECHO_T}$ac_res" >&6; }
16160 # Is the header compilable?
16161 { echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h usability" >&5
16162 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h usability... $ECHO_C" >&6; }
16163 cat >conftest.$ac_ext <<_ACEOF
16166 cat confdefs.h >>conftest.$ac_ext
16167 cat >>conftest.$ac_ext <<_ACEOF
16168 /* end confdefs.h. */
16169 $ac_includes_default
16170 #include <${TOP_DIR}/depkgs/readline/readline.h>
16172 rm -f conftest.$ac_objext
16173 if { (ac_try="$ac_compile"
16174 case "(($ac_try" in
16175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16176 *) ac_try_echo=$ac_try;;
16178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16179 (eval "$ac_compile") 2>conftest.er1
16181 grep -v '^ *+' conftest.er1 >conftest.err
16183 cat conftest.err >&5
16184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16185 (exit $ac_status); } &&
16186 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16187 { (case "(($ac_try" in
16188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16189 *) ac_try_echo=$ac_try;;
16191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16192 (eval "$ac_try") 2>&5
16194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16195 (exit $ac_status); }; } &&
16196 { ac_try='test -s conftest.$ac_objext'
16197 { (case "(($ac_try" in
16198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16199 *) ac_try_echo=$ac_try;;
16201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16202 (eval "$ac_try") 2>&5
16204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16205 (exit $ac_status); }; }; then
16206 ac_header_compiler=yes
16208 echo "$as_me: failed program was:" >&5
16209 sed 's/^/| /' conftest.$ac_ext >&5
16211 ac_header_compiler=no
16214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16215 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16216 echo "${ECHO_T}$ac_header_compiler" >&6; }
16218 # Is the header present?
16219 { echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h presence" >&5
16220 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h presence... $ECHO_C" >&6; }
16221 cat >conftest.$ac_ext <<_ACEOF
16224 cat confdefs.h >>conftest.$ac_ext
16225 cat >>conftest.$ac_ext <<_ACEOF
16226 /* end confdefs.h. */
16227 #include <${TOP_DIR}/depkgs/readline/readline.h>
16229 if { (ac_try="$ac_cpp conftest.$ac_ext"
16230 case "(($ac_try" in
16231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16232 *) ac_try_echo=$ac_try;;
16234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16235 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16237 grep -v '^ *+' conftest.er1 >conftest.err
16239 cat conftest.err >&5
16240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16241 (exit $ac_status); } >/dev/null; then
16242 if test -s conftest.err; then
16243 ac_cpp_err=$ac_c_preproc_warn_flag
16244 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16251 if test -z "$ac_cpp_err"; then
16252 ac_header_preproc=yes
16254 echo "$as_me: failed program was:" >&5
16255 sed 's/^/| /' conftest.$ac_ext >&5
16257 ac_header_preproc=no
16260 rm -f conftest.err conftest.$ac_ext
16261 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16262 echo "${ECHO_T}$ac_header_preproc" >&6; }
16264 # So? What about this header?
16265 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16267 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
16268 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16269 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&5
16270 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&2;}
16271 ac_header_preproc=yes
16274 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&5
16275 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&2;}
16276 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: check for missing prerequisite headers?" >&5
16277 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: check for missing prerequisite headers?" >&2;}
16278 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&5
16279 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&2;}
16280 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&5
16281 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&2;}
16282 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&5
16283 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&2;}
16284 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&5
16285 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&2;}
16289 { echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
16290 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6; }
16291 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16292 echo $ECHO_N "(cached) $ECHO_C" >&6
16294 eval "$as_ac_Header=\$ac_header_preproc"
16296 ac_res=`eval echo '${'$as_ac_Header'}'`
16297 { echo "$as_me:$LINENO: result: $ac_res" >&5
16298 echo "${ECHO_T}$ac_res" >&6; }
16301 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16302 cat >>confdefs.h <<\_ACEOF
16303 #define HAVE_READLINE 1
16307 CONS_INC="-I${TOP_DIR}/depkgs/readline"
16308 CONS_LIBS="-lreadline -lhistory -ltermcap"
16309 CONS_LDFLAGS="-L${TOP_DIR}/depkgs/readline"
16310 PRTREADLINE_SRC="${TOP_DIR}/depkgs/readline"
16314 echo "readline.h not found. readline turned off ..."
16341 # Minimal stuff for readline Makefile configuration
16344 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
16345 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
16346 if test "${ac_cv_header_stat_broken+set}" = set; then
16347 echo $ECHO_N "(cached) $ECHO_C" >&6
16349 cat >conftest.$ac_ext <<_ACEOF
16352 cat confdefs.h >>conftest.$ac_ext
16353 cat >>conftest.$ac_ext <<_ACEOF
16354 /* end confdefs.h. */
16355 #include <sys/types.h>
16356 #include <sys/stat.h>
16358 #if defined S_ISBLK && defined S_IFDIR
16359 # if S_ISBLK (S_IFDIR)
16364 #if defined S_ISBLK && defined S_IFCHR
16365 # if S_ISBLK (S_IFCHR)
16370 #if defined S_ISLNK && defined S_IFREG
16371 # if S_ISLNK (S_IFREG)
16376 #if defined S_ISSOCK && defined S_IFREG
16377 # if S_ISSOCK (S_IFREG)
16383 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16384 $EGREP "You lose" >/dev/null 2>&1; then
16385 ac_cv_header_stat_broken=yes
16387 ac_cv_header_stat_broken=no
16392 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
16393 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
16394 if test $ac_cv_header_stat_broken = yes; then
16396 cat >>confdefs.h <<\_ACEOF
16397 #define STAT_MACROS_BROKEN 1
16407 ac_header_dirent=no
16408 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
16409 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
16410 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
16411 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
16412 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16413 echo $ECHO_N "(cached) $ECHO_C" >&6
16415 cat >conftest.$ac_ext <<_ACEOF
16418 cat confdefs.h >>conftest.$ac_ext
16419 cat >>conftest.$ac_ext <<_ACEOF
16420 /* end confdefs.h. */
16421 #include <sys/types.h>
16433 rm -f conftest.$ac_objext
16434 if { (ac_try="$ac_compile"
16435 case "(($ac_try" in
16436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16437 *) ac_try_echo=$ac_try;;
16439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16440 (eval "$ac_compile") 2>conftest.er1
16442 grep -v '^ *+' conftest.er1 >conftest.err
16444 cat conftest.err >&5
16445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16446 (exit $ac_status); } &&
16447 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16448 { (case "(($ac_try" in
16449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16450 *) ac_try_echo=$ac_try;;
16452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16453 (eval "$ac_try") 2>&5
16455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16456 (exit $ac_status); }; } &&
16457 { ac_try='test -s conftest.$ac_objext'
16458 { (case "(($ac_try" in
16459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16460 *) ac_try_echo=$ac_try;;
16462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16463 (eval "$ac_try") 2>&5
16465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16466 (exit $ac_status); }; }; then
16467 eval "$as_ac_Header=yes"
16469 echo "$as_me: failed program was:" >&5
16470 sed 's/^/| /' conftest.$ac_ext >&5
16472 eval "$as_ac_Header=no"
16475 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16477 ac_res=`eval echo '${'$as_ac_Header'}'`
16478 { echo "$as_me:$LINENO: result: $ac_res" >&5
16479 echo "${ECHO_T}$ac_res" >&6; }
16480 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16481 cat >>confdefs.h <<_ACEOF
16482 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
16485 ac_header_dirent=$ac_hdr; break
16489 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
16490 if test $ac_header_dirent = dirent.h; then
16491 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
16492 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
16493 if test "${ac_cv_search_opendir+set}" = set; then
16494 echo $ECHO_N "(cached) $ECHO_C" >&6
16496 ac_func_search_save_LIBS=$LIBS
16497 cat >conftest.$ac_ext <<_ACEOF
16500 cat confdefs.h >>conftest.$ac_ext
16501 cat >>conftest.$ac_ext <<_ACEOF
16502 /* end confdefs.h. */
16504 /* Override any GCC internal prototype to avoid an error.
16505 Use char because int might match the return type of a GCC
16506 builtin and then its argument prototype would still apply. */
16519 for ac_lib in '' dir; do
16520 if test -z "$ac_lib"; then
16521 ac_res="none required"
16524 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16526 rm -f conftest.$ac_objext conftest$ac_exeext
16527 if { (ac_try="$ac_link"
16528 case "(($ac_try" in
16529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16530 *) ac_try_echo=$ac_try;;
16532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16533 (eval "$ac_link") 2>conftest.er1
16535 grep -v '^ *+' conftest.er1 >conftest.err
16537 cat conftest.err >&5
16538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16539 (exit $ac_status); } &&
16540 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16541 { (case "(($ac_try" in
16542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16543 *) ac_try_echo=$ac_try;;
16545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16546 (eval "$ac_try") 2>&5
16548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16549 (exit $ac_status); }; } &&
16550 { ac_try='test -s conftest$ac_exeext'
16551 { (case "(($ac_try" in
16552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16553 *) ac_try_echo=$ac_try;;
16555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16556 (eval "$ac_try") 2>&5
16558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16559 (exit $ac_status); }; }; then
16560 ac_cv_search_opendir=$ac_res
16562 echo "$as_me: failed program was:" >&5
16563 sed 's/^/| /' conftest.$ac_ext >&5
16568 rm -f core conftest.err conftest.$ac_objext \
16570 if test "${ac_cv_search_opendir+set}" = set; then
16574 if test "${ac_cv_search_opendir+set}" = set; then
16577 ac_cv_search_opendir=no
16579 rm conftest.$ac_ext
16580 LIBS=$ac_func_search_save_LIBS
16582 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
16583 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
16584 ac_res=$ac_cv_search_opendir
16585 if test "$ac_res" != no; then
16586 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16591 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
16592 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
16593 if test "${ac_cv_search_opendir+set}" = set; then
16594 echo $ECHO_N "(cached) $ECHO_C" >&6
16596 ac_func_search_save_LIBS=$LIBS
16597 cat >conftest.$ac_ext <<_ACEOF
16600 cat confdefs.h >>conftest.$ac_ext
16601 cat >>conftest.$ac_ext <<_ACEOF
16602 /* end confdefs.h. */
16604 /* Override any GCC internal prototype to avoid an error.
16605 Use char because int might match the return type of a GCC
16606 builtin and then its argument prototype would still apply. */
16619 for ac_lib in '' x; do
16620 if test -z "$ac_lib"; then
16621 ac_res="none required"
16624 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16626 rm -f conftest.$ac_objext conftest$ac_exeext
16627 if { (ac_try="$ac_link"
16628 case "(($ac_try" in
16629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16630 *) ac_try_echo=$ac_try;;
16632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16633 (eval "$ac_link") 2>conftest.er1
16635 grep -v '^ *+' conftest.er1 >conftest.err
16637 cat conftest.err >&5
16638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16639 (exit $ac_status); } &&
16640 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16641 { (case "(($ac_try" in
16642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16643 *) ac_try_echo=$ac_try;;
16645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16646 (eval "$ac_try") 2>&5
16648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16649 (exit $ac_status); }; } &&
16650 { ac_try='test -s conftest$ac_exeext'
16651 { (case "(($ac_try" in
16652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16653 *) ac_try_echo=$ac_try;;
16655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16656 (eval "$ac_try") 2>&5
16658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16659 (exit $ac_status); }; }; then
16660 ac_cv_search_opendir=$ac_res
16662 echo "$as_me: failed program was:" >&5
16663 sed 's/^/| /' conftest.$ac_ext >&5
16668 rm -f core conftest.err conftest.$ac_objext \
16670 if test "${ac_cv_search_opendir+set}" = set; then
16674 if test "${ac_cv_search_opendir+set}" = set; then
16677 ac_cv_search_opendir=no
16679 rm conftest.$ac_ext
16680 LIBS=$ac_func_search_save_LIBS
16682 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
16683 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
16684 ac_res=$ac_cv_search_opendir
16685 if test "$ac_res" != no; then
16686 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16699 for ac_func in strcasecmp select setenv putenv tcgetattr lstat lchown
16701 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16702 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16703 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16704 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16705 echo $ECHO_N "(cached) $ECHO_C" >&6
16707 cat >conftest.$ac_ext <<_ACEOF
16710 cat confdefs.h >>conftest.$ac_ext
16711 cat >>conftest.$ac_ext <<_ACEOF
16712 /* end confdefs.h. */
16713 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16714 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16715 #define $ac_func innocuous_$ac_func
16717 /* System header to define __stub macros and hopefully few prototypes,
16718 which can conflict with char $ac_func (); below.
16719 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16720 <limits.h> exists even on freestanding compilers. */
16723 # include <limits.h>
16725 # include <assert.h>
16730 /* Override any GCC internal prototype to avoid an error.
16731 Use char because int might match the return type of a GCC
16732 builtin and then its argument prototype would still apply. */
16737 /* The GNU C library defines this for functions which it implements
16738 to always fail with ENOSYS. Some functions are actually named
16739 something starting with __ and the normal name is an alias. */
16740 #if defined __stub_$ac_func || defined __stub___$ac_func
16747 return $ac_func ();
16752 rm -f conftest.$ac_objext conftest$ac_exeext
16753 if { (ac_try="$ac_link"
16754 case "(($ac_try" in
16755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16756 *) ac_try_echo=$ac_try;;
16758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16759 (eval "$ac_link") 2>conftest.er1
16761 grep -v '^ *+' conftest.er1 >conftest.err
16763 cat conftest.err >&5
16764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16765 (exit $ac_status); } &&
16766 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16767 { (case "(($ac_try" in
16768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16769 *) ac_try_echo=$ac_try;;
16771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16772 (eval "$ac_try") 2>&5
16774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16775 (exit $ac_status); }; } &&
16776 { ac_try='test -s conftest$ac_exeext'
16777 { (case "(($ac_try" in
16778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16779 *) ac_try_echo=$ac_try;;
16781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16782 (eval "$ac_try") 2>&5
16784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16785 (exit $ac_status); }; }; then
16786 eval "$as_ac_var=yes"
16788 echo "$as_me: failed program was:" >&5
16789 sed 's/^/| /' conftest.$ac_ext >&5
16791 eval "$as_ac_var=no"
16794 rm -f core conftest.err conftest.$ac_objext \
16795 conftest$ac_exeext conftest.$ac_ext
16797 ac_res=`eval echo '${'$as_ac_var'}'`
16798 { echo "$as_me:$LINENO: result: $ac_res" >&5
16799 echo "${ECHO_T}$ac_res" >&6; }
16800 if test `eval echo '${'$as_ac_var'}'` = yes; then
16801 cat >>confdefs.h <<_ACEOF
16802 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16810 for ac_func in nanosleep nl_langinfo
16812 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16813 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16814 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16815 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16816 echo $ECHO_N "(cached) $ECHO_C" >&6
16818 cat >conftest.$ac_ext <<_ACEOF
16821 cat confdefs.h >>conftest.$ac_ext
16822 cat >>conftest.$ac_ext <<_ACEOF
16823 /* end confdefs.h. */
16824 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16825 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16826 #define $ac_func innocuous_$ac_func
16828 /* System header to define __stub macros and hopefully few prototypes,
16829 which can conflict with char $ac_func (); below.
16830 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16831 <limits.h> exists even on freestanding compilers. */
16834 # include <limits.h>
16836 # include <assert.h>
16841 /* Override any GCC internal prototype to avoid an error.
16842 Use char because int might match the return type of a GCC
16843 builtin and then its argument prototype would still apply. */
16848 /* The GNU C library defines this for functions which it implements
16849 to always fail with ENOSYS. Some functions are actually named
16850 something starting with __ and the normal name is an alias. */
16851 #if defined __stub_$ac_func || defined __stub___$ac_func
16858 return $ac_func ();
16863 rm -f conftest.$ac_objext conftest$ac_exeext
16864 if { (ac_try="$ac_link"
16865 case "(($ac_try" in
16866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16867 *) ac_try_echo=$ac_try;;
16869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16870 (eval "$ac_link") 2>conftest.er1
16872 grep -v '^ *+' conftest.er1 >conftest.err
16874 cat conftest.err >&5
16875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16876 (exit $ac_status); } &&
16877 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16878 { (case "(($ac_try" in
16879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16880 *) ac_try_echo=$ac_try;;
16882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16883 (eval "$ac_try") 2>&5
16885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16886 (exit $ac_status); }; } &&
16887 { ac_try='test -s conftest$ac_exeext'
16888 { (case "(($ac_try" in
16889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16890 *) ac_try_echo=$ac_try;;
16892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16893 (eval "$ac_try") 2>&5
16895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16896 (exit $ac_status); }; }; then
16897 eval "$as_ac_var=yes"
16899 echo "$as_me: failed program was:" >&5
16900 sed 's/^/| /' conftest.$ac_ext >&5
16902 eval "$as_ac_var=no"
16905 rm -f core conftest.err conftest.$ac_objext \
16906 conftest$ac_exeext conftest.$ac_ext
16908 ac_res=`eval echo '${'$as_ac_var'}'`
16909 { echo "$as_me:$LINENO: result: $ac_res" >&5
16910 echo "${ECHO_T}$ac_res" >&6; }
16911 if test `eval echo '${'$as_ac_var'}'` = yes; then
16912 cat >>confdefs.h <<_ACEOF
16913 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16920 for ac_header in varargs.h
16922 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16923 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16924 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16925 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16926 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16927 echo $ECHO_N "(cached) $ECHO_C" >&6
16929 ac_res=`eval echo '${'$as_ac_Header'}'`
16930 { echo "$as_me:$LINENO: result: $ac_res" >&5
16931 echo "${ECHO_T}$ac_res" >&6; }
16933 # Is the header compilable?
16934 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16935 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16936 cat >conftest.$ac_ext <<_ACEOF
16939 cat confdefs.h >>conftest.$ac_ext
16940 cat >>conftest.$ac_ext <<_ACEOF
16941 /* end confdefs.h. */
16942 $ac_includes_default
16943 #include <$ac_header>
16945 rm -f conftest.$ac_objext
16946 if { (ac_try="$ac_compile"
16947 case "(($ac_try" in
16948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16949 *) ac_try_echo=$ac_try;;
16951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16952 (eval "$ac_compile") 2>conftest.er1
16954 grep -v '^ *+' conftest.er1 >conftest.err
16956 cat conftest.err >&5
16957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16958 (exit $ac_status); } &&
16959 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16960 { (case "(($ac_try" in
16961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16962 *) ac_try_echo=$ac_try;;
16964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16965 (eval "$ac_try") 2>&5
16967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16968 (exit $ac_status); }; } &&
16969 { ac_try='test -s conftest.$ac_objext'
16970 { (case "(($ac_try" in
16971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16972 *) ac_try_echo=$ac_try;;
16974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16975 (eval "$ac_try") 2>&5
16977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16978 (exit $ac_status); }; }; then
16979 ac_header_compiler=yes
16981 echo "$as_me: failed program was:" >&5
16982 sed 's/^/| /' conftest.$ac_ext >&5
16984 ac_header_compiler=no
16987 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16988 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16989 echo "${ECHO_T}$ac_header_compiler" >&6; }
16991 # Is the header present?
16992 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16993 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16994 cat >conftest.$ac_ext <<_ACEOF
16997 cat confdefs.h >>conftest.$ac_ext
16998 cat >>conftest.$ac_ext <<_ACEOF
16999 /* end confdefs.h. */
17000 #include <$ac_header>
17002 if { (ac_try="$ac_cpp conftest.$ac_ext"
17003 case "(($ac_try" in
17004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17005 *) ac_try_echo=$ac_try;;
17007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17008 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17010 grep -v '^ *+' conftest.er1 >conftest.err
17012 cat conftest.err >&5
17013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17014 (exit $ac_status); } >/dev/null; then
17015 if test -s conftest.err; then
17016 ac_cpp_err=$ac_c_preproc_warn_flag
17017 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17024 if test -z "$ac_cpp_err"; then
17025 ac_header_preproc=yes
17027 echo "$as_me: failed program was:" >&5
17028 sed 's/^/| /' conftest.$ac_ext >&5
17030 ac_header_preproc=no
17033 rm -f conftest.err conftest.$ac_ext
17034 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17035 echo "${ECHO_T}$ac_header_preproc" >&6; }
17037 # So? What about this header?
17038 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17040 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17041 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17042 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17043 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17044 ac_header_preproc=yes
17047 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17048 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17049 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17050 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17051 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17052 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17053 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17054 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17055 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17056 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17057 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17058 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17062 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17063 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17064 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17065 echo $ECHO_N "(cached) $ECHO_C" >&6
17067 eval "$as_ac_Header=\$ac_header_preproc"
17069 ac_res=`eval echo '${'$as_ac_Header'}'`
17070 { echo "$as_me:$LINENO: result: $ac_res" >&5
17071 echo "${ECHO_T}$ac_res" >&6; }
17074 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17075 cat >>confdefs.h <<_ACEOF
17076 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17084 # End of readline/conio stuff
17085 # -----------------------------------------------------------------------
17087 # -----------------------------------------------------------------------
17088 # Check for Python support
17090 { echo "$as_me:$LINENO: checking for Python support" >&5
17091 echo $ECHO_N "checking for Python support... $ECHO_C" >&6; }
17093 # Check whether --with-python was given.
17094 if test "${with_python+set}" = set; then
17095 withval=$with_python;
17098 if test "$withval" != "no"; then
17099 if test "$withval" = "yes"; then
17100 for python_root in /usr /usr/local /usr/sfw; do
17101 for ver in python2.2 python2.3 python2.4 python2.5; do
17102 if test -f $python_root/include/${ver}/Python.h; then
17103 PYTHON_INCDIR=-I$python_root/include/${ver}
17104 if test -d $python_root/lib64/${ver}/config; then
17105 PYTHON_LIBS="-L$python_root/lib64/${ver}/config -l${ver}"
17107 PYTHON_LIBS="-L$python_root/lib/${ver}/config -l${ver}"
17113 if test x$PYTHON_INCDIR = x; then
17114 if test -f $prefix/include/Python.h; then
17115 PYTHON_INCDIR=-I$prefix/include
17116 if test -d $prefix/lib64/config; then
17117 PYTHON_LIBS="-L$prefix/lib64/config -lpython"
17119 PYTHON_LIBS="-L$prefix/lib/config -lpython"
17122 { echo "$as_me:$LINENO: result: no" >&5
17123 echo "${ECHO_T}no" >&6; }
17124 { { echo "$as_me:$LINENO: error: Unable to find Python.h in standard locations" >&5
17125 echo "$as_me: error: Unable to find Python.h in standard locations" >&2;}
17126 { (exit 1); exit 1; }; }
17130 if test -f $withval/Python.h; then
17131 PYTHON_INCDIR=-I$withval
17132 PYTHON_LIBS="-L$withval/config -lpython"
17133 elif test -f $withval/include/Python.h; then
17134 PYTHON_INCDIR=-I$withval/include
17135 if test -d $withval/lib64/config; then
17136 PYTHON_LIBS="-L$withval/lib64/config -lpython"
17138 PYTHON_LIBS="-L$withval/lib/config -lpython"
17140 elif test -f $withval/include/python/Python.h; then
17141 PYTHON_INCDIR=-I$withval/include/python
17142 if test -d $withval/lib64/python/config; then
17143 PYTHON_LIBS="-L$withval/lib64/python/config -lpython"
17145 PYTHON_LIBS="-L$withval/lib/python/config -lpython"
17148 { echo "$as_me:$LINENO: result: no" >&5
17149 echo "${ECHO_T}no" >&6; }
17150 { { echo "$as_me:$LINENO: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&5
17151 echo "$as_me: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&2;}
17152 { (exit 1); exit 1; }; }
17155 cat >>confdefs.h <<\_ACEOF
17156 #define HAVE_PYTHON 1
17159 { echo "$as_me:$LINENO: result: yes" >&5
17160 echo "${ECHO_T}yes" >&6; }
17162 { echo "$as_me:$LINENO: checking for more Python libs" >&5
17163 echo "$as_me: checking for more Python libs" >&6;}
17164 saved_LIBS="$LIBS"; LIBS=
17165 { echo "$as_me:$LINENO: checking for library containing shm_open" >&5
17166 echo $ECHO_N "checking for library containing shm_open... $ECHO_C" >&6; }
17167 if test "${ac_cv_search_shm_open+set}" = set; then
17168 echo $ECHO_N "(cached) $ECHO_C" >&6
17170 ac_func_search_save_LIBS=$LIBS
17171 cat >conftest.$ac_ext <<_ACEOF
17174 cat confdefs.h >>conftest.$ac_ext
17175 cat >>conftest.$ac_ext <<_ACEOF
17176 /* end confdefs.h. */
17178 /* Override any GCC internal prototype to avoid an error.
17179 Use char because int might match the return type of a GCC
17180 builtin and then its argument prototype would still apply. */
17188 return shm_open ();
17193 for ac_lib in '' rt; do
17194 if test -z "$ac_lib"; then
17195 ac_res="none required"
17198 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17200 rm -f conftest.$ac_objext conftest$ac_exeext
17201 if { (ac_try="$ac_link"
17202 case "(($ac_try" in
17203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17204 *) ac_try_echo=$ac_try;;
17206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17207 (eval "$ac_link") 2>conftest.er1
17209 grep -v '^ *+' conftest.er1 >conftest.err
17211 cat conftest.err >&5
17212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17213 (exit $ac_status); } &&
17214 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17215 { (case "(($ac_try" in
17216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17217 *) ac_try_echo=$ac_try;;
17219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17220 (eval "$ac_try") 2>&5
17222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17223 (exit $ac_status); }; } &&
17224 { ac_try='test -s conftest$ac_exeext'
17225 { (case "(($ac_try" in
17226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17227 *) ac_try_echo=$ac_try;;
17229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17230 (eval "$ac_try") 2>&5
17232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17233 (exit $ac_status); }; }; then
17234 ac_cv_search_shm_open=$ac_res
17236 echo "$as_me: failed program was:" >&5
17237 sed 's/^/| /' conftest.$ac_ext >&5
17242 rm -f core conftest.err conftest.$ac_objext \
17244 if test "${ac_cv_search_shm_open+set}" = set; then
17248 if test "${ac_cv_search_shm_open+set}" = set; then
17251 ac_cv_search_shm_open=no
17253 rm conftest.$ac_ext
17254 LIBS=$ac_func_search_save_LIBS
17256 { echo "$as_me:$LINENO: result: $ac_cv_search_shm_open" >&5
17257 echo "${ECHO_T}$ac_cv_search_shm_open" >&6; }
17258 ac_res=$ac_cv_search_shm_open
17259 if test "$ac_res" != no; then
17260 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17265 { echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
17266 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6; }
17267 if test "${ac_cv_lib_util_openpty+set}" = set; then
17268 echo $ECHO_N "(cached) $ECHO_C" >&6
17270 ac_check_lib_save_LIBS=$LIBS
17271 LIBS="-lutil $LIBS"
17272 cat >conftest.$ac_ext <<_ACEOF
17275 cat confdefs.h >>conftest.$ac_ext
17276 cat >>conftest.$ac_ext <<_ACEOF
17277 /* end confdefs.h. */
17279 /* Override any GCC internal prototype to avoid an error.
17280 Use char because int might match the return type of a GCC
17281 builtin and then its argument prototype would still apply. */
17294 rm -f conftest.$ac_objext conftest$ac_exeext
17295 if { (ac_try="$ac_link"
17296 case "(($ac_try" in
17297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17298 *) ac_try_echo=$ac_try;;
17300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17301 (eval "$ac_link") 2>conftest.er1
17303 grep -v '^ *+' conftest.er1 >conftest.err
17305 cat conftest.err >&5
17306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17307 (exit $ac_status); } &&
17308 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17309 { (case "(($ac_try" in
17310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17311 *) ac_try_echo=$ac_try;;
17313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17314 (eval "$ac_try") 2>&5
17316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17317 (exit $ac_status); }; } &&
17318 { ac_try='test -s conftest$ac_exeext'
17319 { (case "(($ac_try" in
17320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17321 *) ac_try_echo=$ac_try;;
17323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17324 (eval "$ac_try") 2>&5
17326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17327 (exit $ac_status); }; }; then
17328 ac_cv_lib_util_openpty=yes
17330 echo "$as_me: failed program was:" >&5
17331 sed 's/^/| /' conftest.$ac_ext >&5
17333 ac_cv_lib_util_openpty=no
17336 rm -f core conftest.err conftest.$ac_objext \
17337 conftest$ac_exeext conftest.$ac_ext
17338 LIBS=$ac_check_lib_save_LIBS
17340 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
17341 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6; }
17342 if test $ac_cv_lib_util_openpty = yes; then
17343 cat >>confdefs.h <<_ACEOF
17344 #define HAVE_LIBUTIL 1
17347 LIBS="-lutil $LIBS"
17351 PYTHON_LIBS="$PYTHON_LIBS $LIBS"
17354 { echo "$as_me:$LINENO: result: no" >&5
17355 echo "${ECHO_T}no" >&6; }
17360 { echo "$as_me:$LINENO: result: no" >&5
17361 echo "${ECHO_T}no" >&6; }
17369 # Find where sockets are (especially for Solaris)
17370 # Do this before the TCP Wrappers test since tcp wrappers
17371 # uses the socket library and some linkers are stupid.
17373 { echo "$as_me:$LINENO: checking for socket" >&5
17374 echo $ECHO_N "checking for socket... $ECHO_C" >&6; }
17375 if test "${ac_cv_func_socket+set}" = set; then
17376 echo $ECHO_N "(cached) $ECHO_C" >&6
17378 cat >conftest.$ac_ext <<_ACEOF
17381 cat confdefs.h >>conftest.$ac_ext
17382 cat >>conftest.$ac_ext <<_ACEOF
17383 /* end confdefs.h. */
17384 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
17385 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17386 #define socket innocuous_socket
17388 /* System header to define __stub macros and hopefully few prototypes,
17389 which can conflict with char socket (); below.
17390 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17391 <limits.h> exists even on freestanding compilers. */
17394 # include <limits.h>
17396 # include <assert.h>
17401 /* Override any GCC internal prototype to avoid an error.
17402 Use char because int might match the return type of a GCC
17403 builtin and then its argument prototype would still apply. */
17408 /* The GNU C library defines this for functions which it implements
17409 to always fail with ENOSYS. Some functions are actually named
17410 something starting with __ and the normal name is an alias. */
17411 #if defined __stub_socket || defined __stub___socket
17423 rm -f conftest.$ac_objext conftest$ac_exeext
17424 if { (ac_try="$ac_link"
17425 case "(($ac_try" in
17426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17427 *) ac_try_echo=$ac_try;;
17429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17430 (eval "$ac_link") 2>conftest.er1
17432 grep -v '^ *+' conftest.er1 >conftest.err
17434 cat conftest.err >&5
17435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17436 (exit $ac_status); } &&
17437 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17438 { (case "(($ac_try" in
17439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17440 *) ac_try_echo=$ac_try;;
17442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17443 (eval "$ac_try") 2>&5
17445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17446 (exit $ac_status); }; } &&
17447 { ac_try='test -s conftest$ac_exeext'
17448 { (case "(($ac_try" in
17449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17450 *) ac_try_echo=$ac_try;;
17452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17453 (eval "$ac_try") 2>&5
17455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17456 (exit $ac_status); }; }; then
17457 ac_cv_func_socket=yes
17459 echo "$as_me: failed program was:" >&5
17460 sed 's/^/| /' conftest.$ac_ext >&5
17462 ac_cv_func_socket=no
17465 rm -f core conftest.err conftest.$ac_objext \
17466 conftest$ac_exeext conftest.$ac_ext
17468 { echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
17469 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
17470 if test $ac_cv_func_socket = yes; then
17471 { echo "$as_me:$LINENO: result: using libc's socket" >&5
17472 echo "${ECHO_T}using libc's socket" >&6; }
17475 { echo "$as_me:$LINENO: checking for socket in -lxnet" >&5
17476 echo $ECHO_N "checking for socket in -lxnet... $ECHO_C" >&6; }
17477 if test "${ac_cv_lib_xnet_socket+set}" = set; then
17478 echo $ECHO_N "(cached) $ECHO_C" >&6
17480 ac_check_lib_save_LIBS=$LIBS
17481 LIBS="-lxnet $LIBS"
17482 cat >conftest.$ac_ext <<_ACEOF
17485 cat confdefs.h >>conftest.$ac_ext
17486 cat >>conftest.$ac_ext <<_ACEOF
17487 /* end confdefs.h. */
17489 /* Override any GCC internal prototype to avoid an error.
17490 Use char because int might match the return type of a GCC
17491 builtin and then its argument prototype would still apply. */
17504 rm -f conftest.$ac_objext conftest$ac_exeext
17505 if { (ac_try="$ac_link"
17506 case "(($ac_try" in
17507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17508 *) ac_try_echo=$ac_try;;
17510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17511 (eval "$ac_link") 2>conftest.er1
17513 grep -v '^ *+' conftest.er1 >conftest.err
17515 cat conftest.err >&5
17516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17517 (exit $ac_status); } &&
17518 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17519 { (case "(($ac_try" in
17520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17521 *) ac_try_echo=$ac_try;;
17523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17524 (eval "$ac_try") 2>&5
17526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17527 (exit $ac_status); }; } &&
17528 { ac_try='test -s conftest$ac_exeext'
17529 { (case "(($ac_try" in
17530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17531 *) ac_try_echo=$ac_try;;
17533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17534 (eval "$ac_try") 2>&5
17536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17537 (exit $ac_status); }; }; then
17538 ac_cv_lib_xnet_socket=yes
17540 echo "$as_me: failed program was:" >&5
17541 sed 's/^/| /' conftest.$ac_ext >&5
17543 ac_cv_lib_xnet_socket=no
17546 rm -f core conftest.err conftest.$ac_objext \
17547 conftest$ac_exeext conftest.$ac_ext
17548 LIBS=$ac_check_lib_save_LIBS
17550 { echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_socket" >&5
17551 echo "${ECHO_T}$ac_cv_lib_xnet_socket" >&6; }
17552 if test $ac_cv_lib_xnet_socket = yes; then
17553 cat >>confdefs.h <<_ACEOF
17554 #define HAVE_LIBXNET 1
17557 LIBS="-lxnet $LIBS"
17562 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
17563 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
17564 if test "${ac_cv_lib_socket_socket+set}" = set; then
17565 echo $ECHO_N "(cached) $ECHO_C" >&6
17567 ac_check_lib_save_LIBS=$LIBS
17568 LIBS="-lsocket $LIBS"
17569 cat >conftest.$ac_ext <<_ACEOF
17572 cat confdefs.h >>conftest.$ac_ext
17573 cat >>conftest.$ac_ext <<_ACEOF
17574 /* end confdefs.h. */
17576 /* Override any GCC internal prototype to avoid an error.
17577 Use char because int might match the return type of a GCC
17578 builtin and then its argument prototype would still apply. */
17591 rm -f conftest.$ac_objext conftest$ac_exeext
17592 if { (ac_try="$ac_link"
17593 case "(($ac_try" in
17594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17595 *) ac_try_echo=$ac_try;;
17597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17598 (eval "$ac_link") 2>conftest.er1
17600 grep -v '^ *+' conftest.er1 >conftest.err
17602 cat conftest.err >&5
17603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17604 (exit $ac_status); } &&
17605 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17606 { (case "(($ac_try" in
17607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17608 *) ac_try_echo=$ac_try;;
17610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17611 (eval "$ac_try") 2>&5
17613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17614 (exit $ac_status); }; } &&
17615 { ac_try='test -s conftest$ac_exeext'
17616 { (case "(($ac_try" in
17617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17618 *) ac_try_echo=$ac_try;;
17620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17621 (eval "$ac_try") 2>&5
17623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17624 (exit $ac_status); }; }; then
17625 ac_cv_lib_socket_socket=yes
17627 echo "$as_me: failed program was:" >&5
17628 sed 's/^/| /' conftest.$ac_ext >&5
17630 ac_cv_lib_socket_socket=no
17633 rm -f core conftest.err conftest.$ac_objext \
17634 conftest$ac_exeext conftest.$ac_ext
17635 LIBS=$ac_check_lib_save_LIBS
17637 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
17638 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
17639 if test $ac_cv_lib_socket_socket = yes; then
17640 cat >>confdefs.h <<_ACEOF
17641 #define HAVE_LIBSOCKET 1
17644 LIBS="-lsocket $LIBS"
17649 { echo "$as_me:$LINENO: checking for socket in -linet" >&5
17650 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6; }
17651 if test "${ac_cv_lib_inet_socket+set}" = set; then
17652 echo $ECHO_N "(cached) $ECHO_C" >&6
17654 ac_check_lib_save_LIBS=$LIBS
17655 LIBS="-linet $LIBS"
17656 cat >conftest.$ac_ext <<_ACEOF
17659 cat confdefs.h >>conftest.$ac_ext
17660 cat >>conftest.$ac_ext <<_ACEOF
17661 /* end confdefs.h. */
17663 /* Override any GCC internal prototype to avoid an error.
17664 Use char because int might match the return type of a GCC
17665 builtin and then its argument prototype would still apply. */
17678 rm -f conftest.$ac_objext conftest$ac_exeext
17679 if { (ac_try="$ac_link"
17680 case "(($ac_try" in
17681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17682 *) ac_try_echo=$ac_try;;
17684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17685 (eval "$ac_link") 2>conftest.er1
17687 grep -v '^ *+' conftest.er1 >conftest.err
17689 cat conftest.err >&5
17690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17691 (exit $ac_status); } &&
17692 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17693 { (case "(($ac_try" in
17694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17695 *) ac_try_echo=$ac_try;;
17697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17698 (eval "$ac_try") 2>&5
17700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17701 (exit $ac_status); }; } &&
17702 { ac_try='test -s conftest$ac_exeext'
17703 { (case "(($ac_try" in
17704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17705 *) ac_try_echo=$ac_try;;
17707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17708 (eval "$ac_try") 2>&5
17710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17711 (exit $ac_status); }; }; then
17712 ac_cv_lib_inet_socket=yes
17714 echo "$as_me: failed program was:" >&5
17715 sed 's/^/| /' conftest.$ac_ext >&5
17717 ac_cv_lib_inet_socket=no
17720 rm -f core conftest.err conftest.$ac_objext \
17721 conftest$ac_exeext conftest.$ac_ext
17722 LIBS=$ac_check_lib_save_LIBS
17724 { echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
17725 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6; }
17726 if test $ac_cv_lib_inet_socket = yes; then
17727 cat >>confdefs.h <<_ACEOF
17728 #define HAVE_LIBINET 1
17731 LIBS="-linet $LIBS"
17739 # -----------------------------------------------------------
17740 # Check whether user wants TCP wrappers support (default off)
17741 # -----------------------------------------------------------
17745 # Check whether --with-tcp-wrappers was given.
17746 if test "${with_tcp_wrappers+set}" = set; then
17747 withval=$with_tcp_wrappers;
17748 if test "x$withval" != "xno" ; then
17750 LIBS="$saved_LIBS -lwrap"
17751 { echo "$as_me:$LINENO: checking for libwrap" >&5
17752 echo $ECHO_N "checking for libwrap... $ECHO_C" >&6; }
17753 { echo "$as_me:$LINENO: checking for library containing nanosleep" >&5
17754 echo $ECHO_N "checking for library containing nanosleep... $ECHO_C" >&6; }
17755 if test "${ac_cv_search_nanosleep+set}" = set; then
17756 echo $ECHO_N "(cached) $ECHO_C" >&6
17758 ac_func_search_save_LIBS=$LIBS
17759 cat >conftest.$ac_ext <<_ACEOF
17762 cat confdefs.h >>conftest.$ac_ext
17763 cat >>conftest.$ac_ext <<_ACEOF
17764 /* end confdefs.h. */
17766 /* Override any GCC internal prototype to avoid an error.
17767 Use char because int might match the return type of a GCC
17768 builtin and then its argument prototype would still apply. */
17776 return nanosleep ();
17781 for ac_lib in '' rt; do
17782 if test -z "$ac_lib"; then
17783 ac_res="none required"
17786 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17788 rm -f conftest.$ac_objext conftest$ac_exeext
17789 if { (ac_try="$ac_link"
17790 case "(($ac_try" in
17791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17792 *) ac_try_echo=$ac_try;;
17794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17795 (eval "$ac_link") 2>conftest.er1
17797 grep -v '^ *+' conftest.er1 >conftest.err
17799 cat conftest.err >&5
17800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17801 (exit $ac_status); } &&
17802 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17803 { (case "(($ac_try" in
17804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17805 *) ac_try_echo=$ac_try;;
17807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17808 (eval "$ac_try") 2>&5
17810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17811 (exit $ac_status); }; } &&
17812 { ac_try='test -s conftest$ac_exeext'
17813 { (case "(($ac_try" in
17814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17815 *) ac_try_echo=$ac_try;;
17817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17818 (eval "$ac_try") 2>&5
17820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17821 (exit $ac_status); }; }; then
17822 ac_cv_search_nanosleep=$ac_res
17824 echo "$as_me: failed program was:" >&5
17825 sed 's/^/| /' conftest.$ac_ext >&5
17830 rm -f core conftest.err conftest.$ac_objext \
17832 if test "${ac_cv_search_nanosleep+set}" = set; then
17836 if test "${ac_cv_search_nanosleep+set}" = set; then
17839 ac_cv_search_nanosleep=no
17841 rm conftest.$ac_ext
17842 LIBS=$ac_func_search_save_LIBS
17844 { echo "$as_me:$LINENO: result: $ac_cv_search_nanosleep" >&5
17845 echo "${ECHO_T}$ac_cv_search_nanosleep" >&6; }
17846 ac_res=$ac_cv_search_nanosleep
17847 if test "$ac_res" != no; then
17848 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17852 cat >conftest.$ac_ext <<_ACEOF
17855 cat confdefs.h >>conftest.$ac_ext
17856 cat >>conftest.$ac_ext <<_ACEOF
17857 /* end confdefs.h. */
17858 #include <sys/types.h>
17860 int deny_severity = 0;
17861 int allow_severity = 0;
17862 struct request_info *req;
17871 rm -f conftest.$ac_objext conftest$ac_exeext
17872 if { (ac_try="$ac_link"
17873 case "(($ac_try" in
17874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17875 *) ac_try_echo=$ac_try;;
17877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17878 (eval "$ac_link") 2>conftest.er1
17880 grep -v '^ *+' conftest.er1 >conftest.err
17882 cat conftest.err >&5
17883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17884 (exit $ac_status); } &&
17885 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17886 { (case "(($ac_try" in
17887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17888 *) ac_try_echo=$ac_try;;
17890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17891 (eval "$ac_try") 2>&5
17893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17894 (exit $ac_status); }; } &&
17895 { ac_try='test -s conftest$ac_exeext'
17896 { (case "(($ac_try" in
17897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17898 *) ac_try_echo=$ac_try;;
17900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17901 (eval "$ac_try") 2>&5
17903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17904 (exit $ac_status); }; }; then
17906 { echo "$as_me:$LINENO: result: yes" >&5
17907 echo "${ECHO_T}yes" >&6; }
17908 cat >>confdefs.h <<\_ACEOF
17909 #define HAVE_LIBWRAP 1
17917 echo "$as_me: failed program was:" >&5
17918 sed 's/^/| /' conftest.$ac_ext >&5
17921 LIBS="$saved_LIBS -lwrap -lnsl"
17922 WRAPLIBS="$saved_LIBS -lwrap -lnsl"
17923 cat >conftest.$ac_ext <<_ACEOF
17926 cat confdefs.h >>conftest.$ac_ext
17927 cat >>conftest.$ac_ext <<_ACEOF
17928 /* end confdefs.h. */
17929 #include <sys/types.h>
17931 int deny_severity = 0;
17932 int allow_severity = 0;
17933 struct request_info *req;
17942 rm -f conftest.$ac_objext conftest$ac_exeext
17943 if { (ac_try="$ac_link"
17944 case "(($ac_try" in
17945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17946 *) ac_try_echo=$ac_try;;
17948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17949 (eval "$ac_link") 2>conftest.er1
17951 grep -v '^ *+' conftest.er1 >conftest.err
17953 cat conftest.err >&5
17954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17955 (exit $ac_status); } &&
17956 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17957 { (case "(($ac_try" in
17958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17959 *) ac_try_echo=$ac_try;;
17961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17962 (eval "$ac_try") 2>&5
17964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17965 (exit $ac_status); }; } &&
17966 { ac_try='test -s conftest$ac_exeext'
17967 { (case "(($ac_try" in
17968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17969 *) ac_try_echo=$ac_try;;
17971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17972 (eval "$ac_try") 2>&5
17974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17975 (exit $ac_status); }; }; then
17977 { echo "$as_me:$LINENO: result: yes" >&5
17978 echo "${ECHO_T}yes" >&6; }
17979 cat >>confdefs.h <<\_ACEOF
17980 #define HAVE_LIBWRAP 1
17988 echo "$as_me: failed program was:" >&5
17989 sed 's/^/| /' conftest.$ac_ext >&5
17991 { { echo "$as_me:$LINENO: error: *** libwrap missing" >&5
17992 echo "$as_me: error: *** libwrap missing" >&2;}
17993 { (exit 1); exit 1; }; }
17997 rm -f core conftest.err conftest.$ac_objext \
17998 conftest$ac_exeext conftest.$ac_ext
18002 rm -f core conftest.err conftest.$ac_objext \
18003 conftest$ac_exeext conftest.$ac_ext
18010 # -----------------------------------------------------------
18011 # Check whether OpenSSL is available
18012 # -----------------------------------------------------------
18013 { echo "$as_me:$LINENO: checking for OpenSSL" >&5
18014 echo $ECHO_N "checking for OpenSSL... $ECHO_C" >&6; }
18016 # Check whether --with-openssl was given.
18017 if test "${with_openssl+set}" = set; then
18018 withval=$with_openssl; with_openssl_directory=${withval}
18022 if test "x$with_openssl_directory" != "x"; then
18023 OPENSSL_LIBS="-lssl -lcrypto"
18026 if test "x$with_openssl_directory" != "xyes" && test x"${with_openssl_directory}" != "x"; then
18027 OPENSSL_LIBS="-L$with_openssl_directory/lib $OPENSSL_LIBS"
18028 OPENSSL_INC="-I$with_openssl_directory/include $OPENSSL_INC"
18031 saved_LIBS="${LIBS}"
18032 saved_CFLAGS="${CFLAGS}"
18033 LIBS="${saved_LIBS} ${OPENSSL_LIBS}"
18034 CFLAGS="${saved_CFLAGS} ${OPENSSL_INC}"
18036 cat >conftest.$ac_ext <<_ACEOF
18039 cat confdefs.h >>conftest.$ac_ext
18040 cat >>conftest.$ac_ext <<_ACEOF
18041 /* end confdefs.h. */
18042 #include <openssl/ssl.h>
18046 CRYPTO_set_id_callback(NULL);
18051 rm -f conftest.$ac_objext conftest$ac_exeext
18052 if { (ac_try="$ac_link"
18053 case "(($ac_try" in
18054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18055 *) ac_try_echo=$ac_try;;
18057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18058 (eval "$ac_link") 2>conftest.er1
18060 grep -v '^ *+' conftest.er1 >conftest.err
18062 cat conftest.err >&5
18063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18064 (exit $ac_status); } &&
18065 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18066 { (case "(($ac_try" in
18067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18068 *) ac_try_echo=$ac_try;;
18070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18071 (eval "$ac_try") 2>&5
18073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18074 (exit $ac_status); }; } &&
18075 { ac_try='test -s conftest$ac_exeext'
18076 { (case "(($ac_try" in
18077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18078 *) ac_try_echo=$ac_try;;
18080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18081 (eval "$ac_try") 2>&5
18083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18084 (exit $ac_status); }; }; then
18087 support_crypto="yes"
18090 echo "$as_me: failed program was:" >&5
18091 sed 's/^/| /' conftest.$ac_ext >&5
18097 rm -f core conftest.err conftest.$ac_objext \
18098 conftest$ac_exeext conftest.$ac_ext
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_sha2="yes"
18151 echo "$as_me: failed program was:" >&5
18152 sed 's/^/| /' conftest.$ac_ext >&5
18154 ac_cv_openssl_sha2="no"
18158 rm -f core conftest.err conftest.$ac_objext \
18159 conftest$ac_exeext conftest.$ac_ext
18161 # Solaris disables greater than 128+ bit encryption in their OpenSSL
18162 # implementation, presumably for export reasons. If 192bit AES
18163 # is available, we assume that we're running with a 'non-export'
18165 cat >conftest.$ac_ext <<_ACEOF
18168 cat confdefs.h >>conftest.$ac_ext
18169 cat >>conftest.$ac_ext <<_ACEOF
18170 /* end confdefs.h. */
18171 #include <openssl/evp.h>
18180 rm -f conftest.$ac_objext conftest$ac_exeext
18181 if { (ac_try="$ac_link"
18182 case "(($ac_try" in
18183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18184 *) ac_try_echo=$ac_try;;
18186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18187 (eval "$ac_link") 2>conftest.er1
18189 grep -v '^ *+' conftest.er1 >conftest.err
18191 cat conftest.err >&5
18192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18193 (exit $ac_status); } &&
18194 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18195 { (case "(($ac_try" in
18196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18197 *) ac_try_echo=$ac_try;;
18199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18200 (eval "$ac_try") 2>&5
18202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18203 (exit $ac_status); }; } &&
18204 { ac_try='test -s conftest$ac_exeext'
18205 { (case "(($ac_try" in
18206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18207 *) ac_try_echo=$ac_try;;
18209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18210 (eval "$ac_try") 2>&5
18212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18213 (exit $ac_status); }; }; then
18214 ac_cv_openssl_export="no"
18216 echo "$as_me: failed program was:" >&5
18217 sed 's/^/| /' conftest.$ac_ext >&5
18219 ac_cv_openssl_export="yes"
18223 rm -f core conftest.err conftest.$ac_objext \
18224 conftest$ac_exeext conftest.$ac_ext
18226 LIBS="${saved_LIBS}"
18227 CFLAGS="${saved_CFLAGS}"
18229 if test "$support_tls" = "yes"; then
18231 cat >>confdefs.h <<\_ACEOF
18232 #define HAVE_OPENSSL 1
18236 cat >>confdefs.h <<\_ACEOF
18241 cat >>confdefs.h <<\_ACEOF
18242 #define HAVE_CRYPTO 1
18247 if test "$ac_cv_openssl_sha2" = "yes"; then
18249 cat >>confdefs.h <<\_ACEOF
18250 #define HAVE_SHA2 1
18255 if test "$ac_cv_openssl_export" = "yes"; then
18257 cat >>confdefs.h <<\_ACEOF
18258 #define HAVE_OPENSSL_EXPORT_LIBRARY 1
18264 support_crypto="no"
18269 { echo "$as_me:$LINENO: result: $support_tls" >&5
18270 echo "${ECHO_T}$support_tls" >&6; }
18275 # -----------------------------------------------------------
18276 # Python and OpenSSL are using dlopen
18277 # -----------------------------------------------------------
18279 if test "$support_python" = "yes" -o "$support_tls" = "yes"; then
18280 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
18281 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
18282 if test "${ac_cv_search_dlopen+set}" = set; then
18283 echo $ECHO_N "(cached) $ECHO_C" >&6
18285 ac_func_search_save_LIBS=$LIBS
18286 cat >conftest.$ac_ext <<_ACEOF
18289 cat confdefs.h >>conftest.$ac_ext
18290 cat >>conftest.$ac_ext <<_ACEOF
18291 /* end confdefs.h. */
18293 /* Override any GCC internal prototype to avoid an error.
18294 Use char because int might match the return type of a GCC
18295 builtin and then its argument prototype would still apply. */
18308 for ac_lib in '' dl; do
18309 if test -z "$ac_lib"; then
18310 ac_res="none required"
18313 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18315 rm -f conftest.$ac_objext conftest$ac_exeext
18316 if { (ac_try="$ac_link"
18317 case "(($ac_try" in
18318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18319 *) ac_try_echo=$ac_try;;
18321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18322 (eval "$ac_link") 2>conftest.er1
18324 grep -v '^ *+' conftest.er1 >conftest.err
18326 cat conftest.err >&5
18327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18328 (exit $ac_status); } &&
18329 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18330 { (case "(($ac_try" in
18331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18332 *) ac_try_echo=$ac_try;;
18334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18335 (eval "$ac_try") 2>&5
18337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18338 (exit $ac_status); }; } &&
18339 { ac_try='test -s conftest$ac_exeext'
18340 { (case "(($ac_try" in
18341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18342 *) ac_try_echo=$ac_try;;
18344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18345 (eval "$ac_try") 2>&5
18347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18348 (exit $ac_status); }; }; then
18349 ac_cv_search_dlopen=$ac_res
18351 echo "$as_me: failed program was:" >&5
18352 sed 's/^/| /' conftest.$ac_ext >&5
18357 rm -f core conftest.err conftest.$ac_objext \
18359 if test "${ac_cv_search_dlopen+set}" = set; then
18363 if test "${ac_cv_search_dlopen+set}" = set; then
18366 ac_cv_search_dlopen=no
18368 rm conftest.$ac_ext
18369 LIBS=$ac_func_search_save_LIBS
18371 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
18372 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
18373 ac_res=$ac_cv_search_dlopen
18374 if test "$ac_res" != no; then
18375 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18381 # ------------------------------------------
18382 # Where to place working dir
18383 # ------------------------------------------
18384 working_dir=`eval echo ${prefix}/var/bacula/working`
18386 # Check whether --with-working-dir was given.
18387 if test "${with_working_dir+set}" = set; then
18388 withval=$with_working_dir;
18389 if test "x$withval" != "xno" ; then
18390 working_dir=$withval
18400 # ------------------------------------------
18401 # Where to place scriptdir (script files)
18402 # ------------------------------------------
18403 scriptdir=`eval echo ${sysconfdir}`
18405 # Check whether --with-scriptdir was given.
18406 if test "${with_scriptdir+set}" = set; then
18407 withval=$with_scriptdir;
18408 if test "x$withval" != "xno" ; then
18419 # ------------------------------------------
18420 # Where to send dump email
18421 # ------------------------------------------
18422 dump_email=root@localhost
18424 # Check whether --with-dump-email was given.
18425 if test "${with_dump_email+set}" = set; then
18426 withval=$with_dump_email;
18427 if test "x$withval" != "xno" ; then
18428 dump_email=$withval
18437 # ------------------------------------------
18438 # Where to send job email
18439 # ------------------------------------------
18440 job_email=root@localhost
18442 # Check whether --with-job-email was given.
18443 if test "${with_job_email+set}" = set; then
18444 withval=$with_job_email;
18445 if test "x$withval" != "xno" ; then
18455 # ------------------------------------------
18456 # Where to find smtp host
18457 # ------------------------------------------
18458 smtp_host=localhost
18460 # Check whether --with-smtp_host was given.
18461 if test "${with_smtp_host+set}" = set; then
18462 withval=$with_smtp_host;
18463 if test "x$withval" != "xno" ; then
18474 # ------------------------------------
18475 # Where to place pid files
18476 # ------------------------------------
18479 # Check whether --with-pid-dir was given.
18480 if test "${with_pid_dir+set}" = set; then
18481 withval=$with_pid_dir;
18482 if test "x$withval" != "xno" ; then
18490 cat >>confdefs.h <<_ACEOF
18491 #define _PATH_BACULA_PIDDIR "$piddir"
18497 # ------------------------------------
18498 # Where to place subsys "lock file"
18499 # ------------------------------------
18500 ubsysdir=/var/run/subsys
18501 if test -d /var/run/subsys; then
18502 subsysdir=/var/run/subsys
18503 elif test -d /var/lock/subsys; then
18504 subsysdir=/var/lock/subsys
18506 subsysdir=/var/run/subsys
18509 # Check whether --with-subsys-dir was given.
18510 if test "${with_subsys_dir+set}" = set; then
18511 withval=$with_subsys_dir;
18512 if test "x$withval" != "xno" ; then
18524 # ------------------------------------
18525 # Where to start assigning ports
18526 # ------------------------------------
18529 # Check whether --with-baseport was given.
18530 if test "${with_baseport+set}" = set; then
18531 withval=$with_baseport;
18532 if test "x$withval" != "xno" ; then
18541 dir_port=`expr $baseport`
18542 fd_port=`expr $baseport + 1`
18543 sd_port=`expr $fd_port + 1`
18550 # ------------------------------------------
18551 # Generate passwords
18552 # ------------------------------------------
18555 # Check whether --with-dir-password was given.
18556 if test "${with_dir_password+set}" = set; then
18557 withval=$with_dir_password;
18558 if test "x$withval" != "xno" ; then
18559 dir_password=$withval
18566 if test "x$dir_password" = "x" ; then
18567 if test "x$OPENSSL" = "xnone" ; then
18568 key=`autoconf/randpass 33`
18570 key=`openssl rand -base64 33`
18577 # Check whether --with-fd-password was given.
18578 if test "${with_fd_password+set}" = set; then
18579 withval=$with_fd_password;
18580 if test "x$withval" != "xno" ; then
18581 fd_password=$withval
18588 if test "x$fd_password" = "x" ; then
18589 if test "x$OPENSSL" = "xnone" ; then
18590 key=`autoconf/randpass 37`
18592 key=`openssl rand -base64 33`
18599 # Check whether --with-sd-password was given.
18600 if test "${with_sd_password+set}" = set; then
18601 withval=$with_sd_password;
18602 if test "x$withval" != "xno" ; then
18603 sd_password=$withval
18610 if test "x$sd_password" = "x" ; then
18611 if test "x$OPENSSL" = "xnone" ; then
18612 key=`autoconf/randpass 41`
18614 key=`openssl rand -base64 33`
18621 # Check whether --with-mon-dir-password was given.
18622 if test "${with_mon_dir_password+set}" = set; then
18623 withval=$with_mon_dir_password;
18624 if test "x$withval" != "xno" ; then
18625 mon_dir_password=$withval
18632 if test "x$mon_dir_password" = "x" ; then
18633 if test "x$OPENSSL" = "xnone" ; then
18634 key=`autoconf/randpass 33`
18636 key=`openssl rand -base64 33`
18638 mon_dir_password=$key
18643 # Check whether --with-mon-fd-password was given.
18644 if test "${with_mon_fd_password+set}" = set; then
18645 withval=$with_mon_fd_password;
18646 if test "x$withval" != "xno" ; then
18647 mon_fd_password=$withval
18654 if test "x$mon_fd_password" = "x" ; then
18655 if test "x$OPENSSL" = "xnone" ; then
18656 key=`autoconf/randpass 37`
18658 key=`openssl rand -base64 33`
18660 mon_fd_password=$key
18665 # Check whether --with-mon-sd-password was given.
18666 if test "${with_mon_sd_password+set}" = set; then
18667 withval=$with_mon_sd_password;
18668 if test "x$withval" != "xno" ; then
18669 mon_sd_password=$withval
18676 if test "x$mon_sd_password" = "x" ; then
18677 if test "x$OPENSSL" = "xnone" ; then
18678 key=`autoconf/randpass 41`
18680 key=`openssl rand -base64 33`
18682 mon_sd_password=$key
18693 # Pickup any database name
18697 # Check whether --with-db_name was given.
18698 if test "${with_db_name+set}" = set; then
18699 withval=$with_db_name;
18700 if test "x$withval" != "x" ; then
18711 # Check whether --with-db_user was given.
18712 if test "${with_db_user+set}" = set; then
18713 withval=$with_db_user;
18714 if test "x$withval" != "x" ; then
18725 # Handle users and groups for each daemon
18729 # Check whether --with-dir_user was given.
18730 if test "${with_dir_user+set}" = set; then
18731 withval=$with_dir_user;
18732 if test "x$withval" != "x" ; then
18742 # Check whether --with-dir_group was given.
18743 if test "${with_dir_group+set}" = set; then
18744 withval=$with_dir_group;
18745 if test "x$withval" != "x" ; then
18755 # Check whether --with-sd_user was given.
18756 if test "${with_sd_user+set}" = set; then
18757 withval=$with_sd_user;
18758 if test "x$withval" != "x" ; then
18768 # Check whether --with-sd_group was given.
18769 if test "${with_sd_group+set}" = set; then
18770 withval=$with_sd_group;
18771 if test "x$withval" != "x" ; then
18781 # Check whether --with-fd_user was given.
18782 if test "${with_fd_user+set}" = set; then
18783 withval=$with_fd_user;
18784 if test "x$withval" != "x" ; then
18794 # Check whether --with-fd_group was given.
18795 if test "${with_fd_group+set}" = set; then
18796 withval=$with_fd_group;
18797 if test "x$withval" != "x" ; then
18813 # allow setting default executable permissions
18817 # Check whether --with-sbin-perm was given.
18818 if test "${with_sbin_perm+set}" = set; then
18819 withval=$with_sbin_perm;
18820 if test "x$withval" != "x" ; then
18830 # ------------------------------------------------
18831 # Bacula check for various SQL database engines
18832 # ------------------------------------------------
18836 { echo "$as_me:$LINENO: checking for PostgreSQL support" >&5
18837 echo $ECHO_N "checking for PostgreSQL support... $ECHO_C" >&6; }
18839 # Check whether --with-postgresql was given.
18840 if test "${with_postgresql+set}" = set; then
18841 withval=$with_postgresql;
18842 if test "$withval" != "no"; then
18843 if test "$db_found" = "yes"; then
18844 { echo "$as_me:$LINENO: result: error" >&5
18845 echo "${ECHO_T}error" >&6; }
18846 { { echo "$as_me:$LINENO: error: \"You can configure for only one database.\"" >&5
18847 echo "$as_me: error: \"You can configure for only one database.\"" >&2;}
18848 { (exit 1); exit 1; }; };
18850 if test "$withval" = "yes"; then
18851 PG_CONFIG=`which pg_config`
18852 if test -n "$PG_CONFIG";then
18853 POSTGRESQL_INCDIR=`"$PG_CONFIG" --includedir`
18854 POSTGRESQL_LIBDIR=`"$PG_CONFIG" --libdir`
18855 POSTGRESQL_BINDIR=`"$PG_CONFIG" --bindir`
18856 elif test -f /usr/local/include/libpq-fe.h; then
18857 POSTGRESQL_INCDIR=/usr/local/include
18858 if test -d /usr/local/lib64; then
18859 POSTGRESQL_LIBDIR=/usr/local/lib64
18861 POSTGRESQL_LIBDIR=/usr/local/lib
18863 POSTGRESQL_BINDIR=/usr/local/bin
18864 elif test -f /usr/include/libpq-fe.h; then
18865 POSTGRESQL_INCDIR=/usr/include
18866 if test -d /usr/lib64; then
18867 POSTGRESQL_LIBDIR=/usr/lib64
18869 POSTGRESQL_LIBDIR=/usr/lib
18871 POSTGRESQL_BINDIR=/usr/bin
18872 elif test -f /usr/include/pgsql/libpq-fe.h; then
18873 POSTGRESQL_INCDIR=/usr/include/pgsql
18874 if test -d /usr/lib64/pgsql; then
18875 POSTGRESQL_LIBDIR=/usr/lib64/pgsql
18877 POSTGRESQL_LIBDIR=/usr/lib/pgsql
18879 POSTGRESQL_BINDIR=/usr/bin
18880 elif test -f /usr/include/postgresql/libpq-fe.h; then
18881 POSTGRESQL_INCDIR=/usr/include/postgresql
18882 if test -d /usr/lib64/postgresql; then
18883 POSTGRESQL_LIBDIR=/usr/lib64/postgresql
18885 POSTGRESQL_LIBDIR=/usr/lib/postgresql
18887 POSTGRESQL_BINDIR=/usr/bin
18889 { echo "$as_me:$LINENO: result: no" >&5
18890 echo "${ECHO_T}no" >&6; }
18891 { { echo "$as_me:$LINENO: error: Unable to find libpq-fe.h in standard locations" >&5
18892 echo "$as_me: error: Unable to find libpq-fe.h in standard locations" >&2;}
18893 { (exit 1); exit 1; }; }
18895 elif test -f $withval/include/libpq-fe.h; then
18896 POSTGRESQL_INCDIR=$withval/include
18897 POSTGRESQL_LIBDIR=$withval/lib
18898 POSTGRESQL_BINDIR=$withval/bin
18899 elif test -f $withval/include/postgresql/libpq-fe.h; then
18900 POSTGRESQL_INCDIR=$withval/include/postgresql
18901 if test -d $withval/lib64; then
18902 POSTGRESQL_LIBDIR=$withval/lib64
18904 POSTGRESQL_LIBDIR=$withval/lib
18906 POSTGRESQL_BINDIR=$withval/bin
18908 { echo "$as_me:$LINENO: result: no" >&5
18909 echo "${ECHO_T}no" >&6; }
18910 { { echo "$as_me:$LINENO: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&5
18911 echo "$as_me: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&2;}
18912 { (exit 1); exit 1; }; }
18914 POSTGRESQL_LFLAGS="-L$POSTGRESQL_LIBDIR -lpq"
18915 { echo "$as_me:$LINENO: checking for crypt" >&5
18916 echo $ECHO_N "checking for crypt... $ECHO_C" >&6; }
18917 if test "${ac_cv_func_crypt+set}" = set; then
18918 echo $ECHO_N "(cached) $ECHO_C" >&6
18920 cat >conftest.$ac_ext <<_ACEOF
18923 cat confdefs.h >>conftest.$ac_ext
18924 cat >>conftest.$ac_ext <<_ACEOF
18925 /* end confdefs.h. */
18926 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
18927 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18928 #define crypt innocuous_crypt
18930 /* System header to define __stub macros and hopefully few prototypes,
18931 which can conflict with char crypt (); below.
18932 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18933 <limits.h> exists even on freestanding compilers. */
18936 # include <limits.h>
18938 # include <assert.h>
18943 /* Override any GCC internal prototype to avoid an error.
18944 Use char because int might match the return type of a GCC
18945 builtin and then its argument prototype would still apply. */
18950 /* The GNU C library defines this for functions which it implements
18951 to always fail with ENOSYS. Some functions are actually named
18952 something starting with __ and the normal name is an alias. */
18953 #if defined __stub_crypt || defined __stub___crypt
18965 rm -f conftest.$ac_objext conftest$ac_exeext
18966 if { (ac_try="$ac_link"
18967 case "(($ac_try" in
18968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18969 *) ac_try_echo=$ac_try;;
18971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18972 (eval "$ac_link") 2>conftest.er1
18974 grep -v '^ *+' conftest.er1 >conftest.err
18976 cat conftest.err >&5
18977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18978 (exit $ac_status); } &&
18979 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18980 { (case "(($ac_try" in
18981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18982 *) ac_try_echo=$ac_try;;
18984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18985 (eval "$ac_try") 2>&5
18987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18988 (exit $ac_status); }; } &&
18989 { ac_try='test -s conftest$ac_exeext'
18990 { (case "(($ac_try" in
18991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18992 *) ac_try_echo=$ac_try;;
18994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18995 (eval "$ac_try") 2>&5
18997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18998 (exit $ac_status); }; }; then
18999 ac_cv_func_crypt=yes
19001 echo "$as_me: failed program was:" >&5
19002 sed 's/^/| /' conftest.$ac_ext >&5
19004 ac_cv_func_crypt=no
19007 rm -f core conftest.err conftest.$ac_objext \
19008 conftest$ac_exeext conftest.$ac_ext
19010 { echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
19011 echo "${ECHO_T}$ac_cv_func_crypt" >&6; }
19012 if test $ac_cv_func_crypt = yes; then
19015 { echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
19016 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6; }
19017 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
19018 echo $ECHO_N "(cached) $ECHO_C" >&6
19020 ac_check_lib_save_LIBS=$LIBS
19021 LIBS="-lcrypt $LIBS"
19022 cat >conftest.$ac_ext <<_ACEOF
19025 cat confdefs.h >>conftest.$ac_ext
19026 cat >>conftest.$ac_ext <<_ACEOF
19027 /* end confdefs.h. */
19029 /* Override any GCC internal prototype to avoid an error.
19030 Use char because int might match the return type of a GCC
19031 builtin and then its argument prototype would still apply. */
19044 rm -f conftest.$ac_objext conftest$ac_exeext
19045 if { (ac_try="$ac_link"
19046 case "(($ac_try" in
19047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19048 *) ac_try_echo=$ac_try;;
19050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19051 (eval "$ac_link") 2>conftest.er1
19053 grep -v '^ *+' conftest.er1 >conftest.err
19055 cat conftest.err >&5
19056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19057 (exit $ac_status); } &&
19058 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19059 { (case "(($ac_try" in
19060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19061 *) ac_try_echo=$ac_try;;
19063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19064 (eval "$ac_try") 2>&5
19066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19067 (exit $ac_status); }; } &&
19068 { ac_try='test -s conftest$ac_exeext'
19069 { (case "(($ac_try" in
19070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19071 *) ac_try_echo=$ac_try;;
19073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19074 (eval "$ac_try") 2>&5
19076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19077 (exit $ac_status); }; }; then
19078 ac_cv_lib_crypt_crypt=yes
19080 echo "$as_me: failed program was:" >&5
19081 sed 's/^/| /' conftest.$ac_ext >&5
19083 ac_cv_lib_crypt_crypt=no
19086 rm -f core conftest.err conftest.$ac_objext \
19087 conftest$ac_exeext conftest.$ac_ext
19088 LIBS=$ac_check_lib_save_LIBS
19090 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
19091 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6; }
19092 if test $ac_cv_lib_crypt_crypt = yes; then
19093 POSTGRESQL_LFLAGS="$POSTGRESQL_LFLAGS -lcrypt"
19098 SQL_INCLUDE=-I$POSTGRESQL_INCDIR
19099 SQL_LFLAGS=$POSTGRESQL_LFLAGS
19100 SQL_BINDIR=$POSTGRESQL_BINDIR
19101 SQL_LIB=$POSTGRESQL_LIBDIR/libpq.a
19103 cat >>confdefs.h <<\_ACEOF
19104 #define HAVE_POSTGRESQL 1
19107 { echo "$as_me:$LINENO: result: yes" >&5
19108 echo "${ECHO_T}yes" >&6; }
19110 support_postgresql=yes
19114 { echo "$as_me:$LINENO: result: no" >&5
19115 echo "${ECHO_T}no" >&6; }
19120 { echo "$as_me:$LINENO: result: no" >&5
19121 echo "${ECHO_T}no" >&6; }
19133 { echo "$as_me:$LINENO: checking for MySQL support" >&5
19134 echo $ECHO_N "checking for MySQL support... $ECHO_C" >&6; }
19136 # Check whether --with-mysql was given.
19137 if test "${with_mysql+set}" = set; then
19138 withval=$with_mysql;
19139 if test "$withval" != "no"; then
19140 if test "$withval" = "yes"; then
19141 if test -f /usr/local/mysql/include/mysql/mysql.h; then
19142 MYSQL_INCDIR=/usr/local/mysql/include/mysql
19143 if test -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.a \
19144 -o -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.so; then
19145 MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
19147 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
19149 MYSQL_BINDIR=/usr/local/mysql/bin
19150 elif test -f /usr/include/mysql/mysql.h; then
19151 MYSQL_INCDIR=/usr/include/mysql
19152 if test -f /usr/lib64/mysql/libmysqlclient_r.a \
19153 -o -f /usr/lib64/mysql/libmysqlclient_r.so; then
19154 MYSQL_LIBDIR=/usr/lib64/mysql
19155 elif test -f /usr/lib/mysql/libmysqlclient_r.a \
19156 -o -f /usr/lib/mysql/libmysqlclient_r.so; then
19157 MYSQL_LIBDIR=/usr/lib/mysql
19159 MYSQL_LIBDIR=/usr/lib
19161 MYSQL_BINDIR=/usr/bin
19162 elif test -f /usr/include/mysql.h; then
19163 MYSQL_INCDIR=/usr/include
19164 if test -f /usr/lib64/libmysqlclient_r.a \
19165 -o -f /usr/lib64/libmysqlclient_r.so; then
19166 MYSQL_LIBDIR=/usr/lib64
19168 MYSQL_LIBDIR=/usr/lib
19170 MYSQL_BINDIR=/usr/bin
19171 elif test -f /usr/local/include/mysql/mysql.h; then
19172 MYSQL_INCDIR=/usr/local/include/mysql
19173 if test -f /usr/local/lib64/mysql/libmysqlclient_r.a \
19174 -o -f /usr/local/lib64/mysql/libmysqlclient_r.so; then
19175 MYSQL_LIBDIR=/usr/local/lib64/mysql
19177 MYSQL_LIBDIR=/usr/local/lib/mysql
19179 MYSQL_BINDIR=/usr/local/bin
19180 elif test -f /usr/local/include/mysql.h; then
19181 MYSQL_INCDIR=/usr/local/include
19182 if test -f /usr/local/lib64/libmysqlclient_r.a \
19183 -o -f /usr/local/lib64/libmysqlclient_r.so; then
19184 MYSQL_LIBDIR=/usr/local/lib64
19186 MYSQL_LIBDIR=/usr/local/lib
19188 MYSQL_BINDIR=/usr/local/bin
19190 { echo "$as_me:$LINENO: result: no" >&5
19191 echo "${ECHO_T}no" >&6; }
19192 { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
19193 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
19194 { (exit 1); exit 1; }; }
19197 if test -f $withval/include/mysql/mysql.h; then
19198 MYSQL_INCDIR=$withval/include/mysql
19199 if test -f $withval/lib64/mysql/libmysqlclient_r.a \
19200 -o -f $withval/lib64/mysql/libmysqlclient_r.so; then
19201 MYSQL_LIBDIR=$withval/lib64/mysql
19203 MYSQL_LIBDIR=$withval/lib/mysql
19205 if test -f $withval/lib/libmysqlclient_r.so; then
19206 MYSQL_LIBDIR=$withval/lib
19209 MYSQL_BINDIR=$withval/bin
19210 elif test -f $withval/include/mysql.h; then
19211 MYSQL_INCDIR=$withval/include
19212 if test -f $withval/lib64/libmysqlclient_r.a \
19213 -o -f $withval/lib64/libmysqlclient_r.so; then
19214 MYSQL_LIBDIR=$withval/lib64
19216 MYSQL_LIBDIR=$withval/lib
19218 MYSQL_BINDIR=$withval/bin
19220 { echo "$as_me:$LINENO: result: no" >&5
19221 echo "${ECHO_T}no" >&6; }
19222 { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
19223 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
19224 { (exit 1); exit 1; }; }
19227 SQL_INCLUDE=-I$MYSQL_INCDIR
19228 if test -f $MYSQL_LIBDIR/libmysqlclient_r.a \
19229 -o -f $MYSQL_LIBDIR/libmysqlclient_r.so; then
19230 SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient_r -lz"
19231 cat >>confdefs.h <<\_ACEOF
19232 #define HAVE_THREAD_SAFE_MYSQL 1
19236 SQL_BINDIR=$MYSQL_BINDIR
19237 SQL_LIB=$MYSQL_LIBDIR/libmysqlclient_r.a
19239 cat >>confdefs.h <<\_ACEOF
19240 #define HAVE_MYSQL 1
19243 { echo "$as_me:$LINENO: result: yes" >&5
19244 echo "${ECHO_T}yes" >&6; }
19251 { echo "$as_me:$LINENO: result: no" >&5
19252 echo "${ECHO_T}no" >&6; }
19260 # Check whether --with-embedded-mysql was given.
19261 if test "${with_embedded_mysql+set}" = set; then
19262 withval=$with_embedded_mysql;
19263 if test "$withval" != "no"; then
19264 if test "$withval" = "yes"; then
19265 if test -f /usr/local/mysql/include/mysql/mysql.h; then
19266 MYSQL_INCDIR=/usr/local/mysql/include/mysql
19267 if test -d /usr/local/mysql/lib64/mysql; then
19268 MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
19270 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
19272 MYSQL_BINDIR=/usr/local/mysql/bin
19273 elif test -f /usr/include/mysql/mysql.h; then
19274 MYSQL_INCDIR=/usr/include/mysql
19275 if test -d /usr/lib64/mysql; then
19276 MYSQL_LIBDIR=/usr/lib64/mysql
19278 MYSQL_LIBDIR=/usr/lib/mysql
19280 MYSQL_BINDIR=/usr/bin
19281 elif test -f /usr/include/mysql.h; then
19282 MYSQL_INCDIR=/usr/include
19283 if test -d /usr/lib64; then
19284 MYSQL_LIBDIR=/usr/lib64
19286 MYSQL_LIBDIR=/usr/lib
19288 MYSQL_BINDIR=/usr/bin
19289 elif test -f /usr/local/include/mysql/mysql.h; then
19290 MYSQL_INCDIR=/usr/local/include/mysql
19291 if test -d /usr/local/lib64/mysql; then
19292 MYSQL_LIBDIR=/usr/local/lib64/mysql
19294 MYSQL_LIBDIR=/usr/local/lib/mysql
19296 MYSQL_BINDIR=/usr/local/bin
19297 elif test -f /usr/local/include/mysql.h; then
19298 MYSQL_INCDIR=/usr/local/include
19299 if test -d /usr/local/lib64; then
19300 MYSQL_LIBDIR=/usr/local/lib64
19302 MYSQL_LIBDIR=/usr/local/lib
19304 MYSQL_BINDIR=/usr/local/bin
19306 { echo "$as_me:$LINENO: result: no" >&5
19307 echo "${ECHO_T}no" >&6; }
19308 { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
19309 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
19310 { (exit 1); exit 1; }; }
19313 if test -f $withval/include/mysql/mysql.h; then
19314 MYSQL_INCDIR=$withval/include/mysql
19315 if test -d $withval/lib64/mysql; then
19316 MYSQL_LIBDIR=$withval/lib64/mysql
19318 MYSQL_LIBDIR=$withval/lib/mysql
19320 MYSQL_BINDIR=$withval/bin
19321 elif test -f $withval/include/mysql.h; then
19322 MYSQL_INCDIR=$withval/include
19323 if test -d $withval/lib64; then
19324 MYSQL_LIBDIR=$withval/lib64
19326 MYSQL_LIBDIR=$withval/lib
19328 MYSQL_BINDIR=$withval/bin
19330 { echo "$as_me:$LINENO: result: no" >&5
19331 echo "${ECHO_T}no" >&6; }
19332 { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
19333 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
19334 { (exit 1); exit 1; }; }
19337 SQL_INCLUDE=-I$MYSQL_INCDIR
19338 SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
19339 SQL_BINDIR=$MYSQL_BINDIR
19340 SQL_LIB=$MYSQL_LIBDIR/libmysqld.a
19342 cat >>confdefs.h <<\_ACEOF
19343 #define HAVE_MYSQL 1
19346 cat >>confdefs.h <<\_ACEOF
19347 #define HAVE_EMBEDDED_MYSQL 1
19350 { echo "$as_me:$LINENO: result: yes" >&5
19351 echo "${ECHO_T}yes" >&6; }
19358 { echo "$as_me:$LINENO: result: no" >&5
19359 echo "${ECHO_T}no" >&6; }
19375 { echo "$as_me:$LINENO: checking for SQLite3 support" >&5
19376 echo $ECHO_N "checking for SQLite3 support... $ECHO_C" >&6; }
19378 # Check whether --with-sqlite3 was given.
19379 if test "${with_sqlite3+set}" = set; then
19380 withval=$with_sqlite3;
19381 if test "$withval" != "no"; then
19382 if test "$withval" = "yes"; then
19383 if test -f /usr/local/include/sqlite3.h; then
19384 SQLITE_INCDIR=/usr/local/include
19385 if test -d /usr/local/lib64; then
19386 SQLITE_LIBDIR=/usr/local/lib64
19388 SQLITE_LIBDIR=/usr/local/lib
19390 SQLITE_BINDIR=/usr/local/bin
19391 elif test -f /usr/include/sqlite3.h; then
19392 SQLITE_INCDIR=/usr/include
19393 if test -d /usr/lib64; then
19394 SQLITE_LIBDIR=/usr/lib64
19396 SQLITE_LIBDIR=/usr/lib
19398 SQLITE_BINDIR=/usr/bin
19399 elif test -f $prefix/include/sqlite3.h; then
19400 SQLITE_INCDIR=$prefix/include
19401 if test -d $prefix/lib64; then
19402 SQLITE_LIBDIR=$prefix/lib64
19404 SQLITE_LIBDIR=$prefix/lib
19406 SQLITE_BINDIR=$prefix/bin
19408 { echo "$as_me:$LINENO: result: no" >&5
19409 echo "${ECHO_T}no" >&6; }
19410 { { echo "$as_me:$LINENO: error: Unable to find sqlite3.h in standard locations" >&5
19411 echo "$as_me: error: Unable to find sqlite3.h in standard locations" >&2;}
19412 { (exit 1); exit 1; }; }
19415 if test -f $withval/sqlite3.h; then
19416 SQLITE_INCDIR=$withval
19417 SQLITE_LIBDIR=$withval
19418 SQLITE_BINDIR=$withval
19419 elif test -f $withval/include/sqlite3.h; then
19420 SQLITE_INCDIR=$withval/include
19421 if test -d $withval/lib64; then
19422 SQLITE_LIBDIR=$withval/lib64
19424 SQLITE_LIBDIR=$withval/lib
19426 SQLITE_BINDIR=$withval/bin
19428 { echo "$as_me:$LINENO: result: no" >&5
19429 echo "${ECHO_T}no" >&6; }
19430 { { echo "$as_me:$LINENO: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&5
19431 echo "$as_me: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&2;}
19432 { (exit 1); exit 1; }; }
19435 SQL_INCLUDE=-I$SQLITE_INCDIR
19436 SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite3"
19437 SQL_BINDIR=$SQLITE_BINDIR
19438 SQL_LIB=$SQLITE_LIBDIR/libsqlite3.a
19440 cat >>confdefs.h <<\_ACEOF
19441 #define HAVE_SQLITE3 1
19444 { echo "$as_me:$LINENO: result: yes" >&5
19445 echo "${ECHO_T}yes" >&6; }
19447 support_sqlite3=yes
19452 { echo "$as_me:$LINENO: result: no" >&5
19453 echo "${ECHO_T}no" >&6; }
19458 { echo "$as_me:$LINENO: result: no" >&5
19459 echo "${ECHO_T}no" >&6; }
19471 { echo "$as_me:$LINENO: checking for SQLite support" >&5
19472 echo $ECHO_N "checking for SQLite support... $ECHO_C" >&6; }
19474 # Check whether --with-sqlite was given.
19475 if test "${with_sqlite+set}" = set; then
19476 withval=$with_sqlite;
19477 if test "$withval" != "no"; then
19478 if test "$withval" = "yes"; then
19479 if test -f /usr/local/include/sqlite.h; then
19480 SQLITE_INCDIR=/usr/local/include
19481 if test -d /usr/local/lib64; then
19482 SQLITE_LIBDIR=/usr/local/lib64
19484 SQLITE_LIBDIR=/usr/local/lib
19486 SQLITE_BINDIR=/usr/local/bin
19487 elif test -f /usr/include/sqlite.h; then
19488 SQLITE_INCDIR=/usr/include
19489 if test -d /usr/lib64; then
19490 SQLITE_LIBDIR=/usr/lib64
19492 SQLITE_LIBDIR=/usr/lib
19494 SQLITE_BINDIR=/usr/bin
19495 elif test -f $prefix/include/sqlite.h; then
19496 SQLITE_INCDIR=$prefix/include
19497 if test -d $prefix/lib64; then
19498 SQLITE_LIBDIR=$prefix/lib64
19500 SQLITE_LIBDIR=$prefix/lib
19502 SQLITE_BINDIR=$prefix/bin
19504 { echo "$as_me:$LINENO: result: no" >&5
19505 echo "${ECHO_T}no" >&6; }
19506 { { echo "$as_me:$LINENO: error: Unable to find sqlite.h in standard locations" >&5
19507 echo "$as_me: error: Unable to find sqlite.h in standard locations" >&2;}
19508 { (exit 1); exit 1; }; }
19511 if test -f $withval/sqlite.h; then
19512 SQLITE_INCDIR=$withval
19513 SQLITE_LIBDIR=$withval
19514 SQLITE_BINDIR=$withval
19515 elif test -f $withval/include/sqlite.h; then
19516 SQLITE_INCDIR=$withval/include
19517 if test -d $withval/lib64; then
19518 SQLITE_LIBDIR=$withval/lib64
19520 SQLITE_LIBDIR=$withval/lib
19522 SQLITE_BINDIR=$withval/bin
19524 { echo "$as_me:$LINENO: result: no" >&5
19525 echo "${ECHO_T}no" >&6; }
19526 { { echo "$as_me:$LINENO: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&5
19527 echo "$as_me: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&2;}
19528 { (exit 1); exit 1; }; }
19531 SQL_INCLUDE=-I$SQLITE_INCDIR
19532 SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite"
19533 SQL_BINDIR=$SQLITE_BINDIR
19534 SQL_LIB=$SQLITE_LIBDIR/libsqlite.a
19536 cat >>confdefs.h <<\_ACEOF
19537 #define HAVE_SQLITE 1
19540 { echo "$as_me:$LINENO: result: yes" >&5
19541 echo "${ECHO_T}yes" >&6; }
19548 { echo "$as_me:$LINENO: result: no" >&5
19549 echo "${ECHO_T}no" >&6; }
19554 { echo "$as_me:$LINENO: result: no" >&5
19555 echo "${ECHO_T}no" >&6; }
19568 # -------------------------------------------
19569 # enable batch attribute DB insert (default on)
19570 # -------------------------------------------
19571 support_batch_insert=no
19572 A=`nm $SQL_LIB | grep pthread_mutex_lock`
19574 if test $pkg = 0; then
19575 support_batch_insert=yes
19576 # Check whether --enable-batch-insert was given.
19577 if test "${enable_batch_insert+set}" = set; then
19578 enableval=$enable_batch_insert; if test x$enableval = xno; then
19579 support_batch_insert=no
19581 support_batch_insert=yes
19587 if test $support_batch_insert = yes ; then
19589 cat >>confdefs.h <<\_ACEOF
19590 #define HAVE_BATCH_FILE_INSERT 1
19596 cat >>confdefs.h <<\_ACEOF
19597 #define PROTOTYPES 1
19601 if test -z "$CFLAGS" -o "$CFLAGS" = "-g -O2"; then
19602 if test -z "$CCOPTS"; then
19603 CCOPTS='-g -O2 -Wall'
19611 largefile_support="no"
19613 # Check whether --enable-largefile was given.
19614 if test "${enable_largefile+set}" = set; then
19615 enableval=$enable_largefile;
19618 if test "$enable_largefile" != no; then
19619 if test -n "$ac_tool_prefix"; then
19620 # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
19621 set dummy ${ac_tool_prefix}getconf; ac_word=$2
19622 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19623 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19624 if test "${ac_cv_prog_GETCONF+set}" = set; then
19625 echo $ECHO_N "(cached) $ECHO_C" >&6
19627 if test -n "$GETCONF"; then
19628 ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
19630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19631 for as_dir in $PATH
19634 test -z "$as_dir" && as_dir=.
19635 for ac_exec_ext in '' $ac_executable_extensions; do
19636 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
19637 ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
19638 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19647 GETCONF=$ac_cv_prog_GETCONF
19648 if test -n "$GETCONF"; then
19649 { echo "$as_me:$LINENO: result: $GETCONF" >&5
19650 echo "${ECHO_T}$GETCONF" >&6; }
19652 { echo "$as_me:$LINENO: result: no" >&5
19653 echo "${ECHO_T}no" >&6; }
19658 if test -z "$ac_cv_prog_GETCONF"; then
19659 ac_ct_GETCONF=$GETCONF
19660 # Extract the first word of "getconf", so it can be a program name with args.
19661 set dummy getconf; ac_word=$2
19662 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19663 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19664 if test "${ac_cv_prog_ac_ct_GETCONF+set}" = set; then
19665 echo $ECHO_N "(cached) $ECHO_C" >&6
19667 if test -n "$ac_ct_GETCONF"; then
19668 ac_cv_prog_ac_ct_GETCONF="$ac_ct_GETCONF" # Let the user override the test.
19670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19671 for as_dir in $PATH
19674 test -z "$as_dir" && as_dir=.
19675 for ac_exec_ext in '' $ac_executable_extensions; do
19676 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
19677 ac_cv_prog_ac_ct_GETCONF="getconf"
19678 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19687 ac_ct_GETCONF=$ac_cv_prog_ac_ct_GETCONF
19688 if test -n "$ac_ct_GETCONF"; then
19689 { echo "$as_me:$LINENO: result: $ac_ct_GETCONF" >&5
19690 echo "${ECHO_T}$ac_ct_GETCONF" >&6; }
19692 { echo "$as_me:$LINENO: result: no" >&5
19693 echo "${ECHO_T}no" >&6; }
19696 if test "x$ac_ct_GETCONF" = x; then
19699 case $cross_compiling:$ac_tool_warned in
19701 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
19702 whose name does not start with the host triplet. If you think this
19703 configuration is useful to you, please write to autoconf@gnu.org." >&5
19704 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
19705 whose name does not start with the host triplet. If you think this
19706 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
19707 ac_tool_warned=yes ;;
19709 GETCONF=$ac_ct_GETCONF
19712 GETCONF="$ac_cv_prog_GETCONF"
19715 { echo "$as_me:$LINENO: checking for CFLAGS value to request large file support" >&5
19716 echo $ECHO_N "checking for CFLAGS value to request large file support... $ECHO_C" >&6; }
19717 if test "${ac_cv_sys_largefile_CFLAGS+set}" = set; then
19718 echo $ECHO_N "(cached) $ECHO_C" >&6
19720 ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
19721 ac_cv_sys_largefile_CFLAGS=no
19723 # IRIX 6.2 and later require cc -n32.
19724 irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
19725 if test "$GCC" != yes; then
19726 ac_cv_sys_largefile_CFLAGS=-n32
19729 CC="$CC $ac_cv_sys_largefile_CFLAGS"
19730 cat >conftest.$ac_ext <<_ACEOF
19733 cat confdefs.h >>conftest.$ac_ext
19734 cat >>conftest.$ac_ext <<_ACEOF
19735 /* end confdefs.h. */
19745 rm -f conftest.$ac_objext conftest$ac_exeext
19746 if { (ac_try="$ac_link"
19747 case "(($ac_try" in
19748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19749 *) ac_try_echo=$ac_try;;
19751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19752 (eval "$ac_link") 2>conftest.er1
19754 grep -v '^ *+' conftest.er1 >conftest.err
19756 cat conftest.err >&5
19757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19758 (exit $ac_status); } &&
19759 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19760 { (case "(($ac_try" in
19761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19762 *) ac_try_echo=$ac_try;;
19764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19765 (eval "$ac_try") 2>&5
19767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19768 (exit $ac_status); }; } &&
19769 { ac_try='test -s conftest$ac_exeext'
19770 { (case "(($ac_try" in
19771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19772 *) ac_try_echo=$ac_try;;
19774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19775 (eval "$ac_try") 2>&5
19777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19778 (exit $ac_status); }; }; then
19781 echo "$as_me: failed program was:" >&5
19782 sed 's/^/| /' conftest.$ac_ext >&5
19784 ac_cv_sys_largefile_CFLAGS=no
19787 rm -f core conftest.err conftest.$ac_objext \
19788 conftest$ac_exeext conftest.$ac_ext
19793 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CFLAGS" >&5
19794 echo "${ECHO_T}$ac_cv_sys_largefile_CFLAGS" >&6; }
19795 { echo "$as_me:$LINENO: checking for LDFLAGS value to request large file support" >&5
19796 echo $ECHO_N "checking for LDFLAGS value to request large file support... $ECHO_C" >&6; }
19797 if test "${ac_cv_sys_largefile_LDFLAGS+set}" = set; then
19798 echo $ECHO_N "(cached) $ECHO_C" >&6
19800 ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
19801 ac_cv_sys_largefile_LDFLAGS=no
19805 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LDFLAGS" >&5
19806 echo "${ECHO_T}$ac_cv_sys_largefile_LDFLAGS" >&6; }
19807 { echo "$as_me:$LINENO: checking for LIBS value to request large file support" >&5
19808 echo $ECHO_N "checking for LIBS value to request large file support... $ECHO_C" >&6; }
19809 if test "${ac_cv_sys_largefile_LIBS+set}" = set; then
19810 echo $ECHO_N "(cached) $ECHO_C" >&6
19812 ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
19813 ac_cv_sys_largefile_LIBS=no
19817 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LIBS" >&5
19818 echo "${ECHO_T}$ac_cv_sys_largefile_LIBS" >&6; }
19820 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
19823 -D_FILE_OFFSET_BITS=*) ;;
19824 -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
19825 -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
19830 case "$CPPFLAGS" in
19831 '') CPPFLAGS="$ac_flag" ;;
19832 *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
19840 '') CFLAGS="$ac_flag" ;;
19841 *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
19846 case "$ac_cv_sys_largefile_LDFLAGS" in
19850 '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
19851 *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
19854 case "$ac_cv_sys_largefile_LIBS" in
19858 '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
19859 *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
19862 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS" >&5
19863 echo $ECHO_N "checking for _FILE_OFFSET_BITS... $ECHO_C" >&6; }
19864 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
19865 echo $ECHO_N "(cached) $ECHO_C" >&6
19867 ac_cv_sys_file_offset_bits=no
19868 ac_cv_sys_file_offset_bits=64
19869 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
19871 -D_FILE_OFFSET_BITS)
19872 ac_cv_sys_file_offset_bits=1 ;;
19873 -D_FILE_OFFSET_BITS=*)
19874 ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
19879 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
19880 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
19881 if test "$ac_cv_sys_file_offset_bits" != no; then
19883 cat >>confdefs.h <<_ACEOF
19884 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
19888 { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE" >&5
19889 echo $ECHO_N "checking for _LARGEFILE_SOURCE... $ECHO_C" >&6; }
19890 if test "${ac_cv_sys_largefile_source+set}" = set; then
19891 echo $ECHO_N "(cached) $ECHO_C" >&6
19893 ac_cv_sys_largefile_source=no
19894 ac_cv_sys_largefile_source=1
19895 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
19897 -D_LARGEFILE_SOURCE)
19898 ac_cv_sys_largefile_source=1 ;;
19899 -D_LARGEFILE_SOURCE=*)
19900 ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
19905 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
19906 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
19907 if test "$ac_cv_sys_largefile_source" != no; then
19909 cat >>confdefs.h <<_ACEOF
19910 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
19914 { echo "$as_me:$LINENO: checking for _LARGE_FILES" >&5
19915 echo $ECHO_N "checking for _LARGE_FILES... $ECHO_C" >&6; }
19916 if test "${ac_cv_sys_large_files+set}" = set; then
19917 echo $ECHO_N "(cached) $ECHO_C" >&6
19919 ac_cv_sys_large_files=no
19920 ac_cv_sys_large_files=1
19921 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
19924 ac_cv_sys_large_files=1 ;;
19926 ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
19931 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
19932 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
19933 if test "$ac_cv_sys_large_files" != no; then
19935 cat >>confdefs.h <<_ACEOF
19936 #define _LARGE_FILES $ac_cv_sys_large_files
19944 { echo "$as_me:$LINENO: checking for X" >&5
19945 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
19948 # Check whether --with-x was given.
19949 if test "${with_x+set}" = set; then
19953 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
19954 if test "x$with_x" = xno; then
19955 # The user explicitly disabled X.
19958 case $x_includes,$x_libraries in #(
19959 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
19960 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
19961 { (exit 1); exit 1; }; };; #(
19962 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
19963 echo $ECHO_N "(cached) $ECHO_C" >&6
19965 # One or both of the vars are not set, and there is no cached value.
19966 ac_x_includes=no ac_x_libraries=no
19967 rm -f -r conftest.dir
19968 if mkdir conftest.dir; then
19970 cat >Imakefile <<'_ACEOF'
19972 @echo incroot='${INCROOT}'
19974 @echo usrlibdir='${USRLIBDIR}'
19976 @echo libdir='${LIBDIR}'
19978 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
19979 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
19980 for ac_var in incroot usrlibdir libdir; do
19981 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
19983 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
19984 for ac_extension in a so sl; do
19985 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
19986 test -f "$ac_im_libdir/libX11.$ac_extension"; then
19987 ac_im_usrlibdir=$ac_im_libdir; break
19990 # Screen out bogus values from the imake configuration. They are
19991 # bogus both because they are the default anyway, and because
19992 # using them would break gcc on systems where it needs fixed includes.
19993 case $ac_im_incroot in
19994 /usr/include) ac_x_includes= ;;
19995 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
19997 case $ac_im_usrlibdir in
19998 /usr/lib | /lib) ;;
19999 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
20003 rm -f -r conftest.dir
20006 # Standard set of common directories for X headers.
20007 # Check X11 before X11Rn because it is often a symlink to the current release.
20019 /usr/local/X11/include
20020 /usr/local/X11R6/include
20021 /usr/local/X11R5/include
20022 /usr/local/X11R4/include
20024 /usr/local/include/X11
20025 /usr/local/include/X11R6
20026 /usr/local/include/X11R5
20027 /usr/local/include/X11R4
20031 /usr/XFree86/include/X11
20035 /usr/unsupported/include
20036 /usr/athena/include
20037 /usr/local/x11r5/include
20038 /usr/lpp/Xamples/include
20040 /usr/openwin/include
20041 /usr/openwin/share/include'
20043 if test "$ac_x_includes" = no; then
20044 # Guess where to find include files, by looking for Xlib.h.
20045 # First, try using that file with no special directory specified.
20046 cat >conftest.$ac_ext <<_ACEOF
20049 cat confdefs.h >>conftest.$ac_ext
20050 cat >>conftest.$ac_ext <<_ACEOF
20051 /* end confdefs.h. */
20052 #include <X11/Xlib.h>
20054 if { (ac_try="$ac_cpp conftest.$ac_ext"
20055 case "(($ac_try" in
20056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20057 *) ac_try_echo=$ac_try;;
20059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20060 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20062 grep -v '^ *+' conftest.er1 >conftest.err
20064 cat conftest.err >&5
20065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20066 (exit $ac_status); } >/dev/null; then
20067 if test -s conftest.err; then
20068 ac_cpp_err=$ac_c_preproc_warn_flag
20069 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20076 if test -z "$ac_cpp_err"; then
20077 # We can compile using X headers with no special include directory.
20080 echo "$as_me: failed program was:" >&5
20081 sed 's/^/| /' conftest.$ac_ext >&5
20083 for ac_dir in $ac_x_header_dirs; do
20084 if test -r "$ac_dir/X11/Xlib.h"; then
20085 ac_x_includes=$ac_dir
20091 rm -f conftest.err conftest.$ac_ext
20092 fi # $ac_x_includes = no
20094 if test "$ac_x_libraries" = no; then
20095 # Check for the libraries.
20096 # See if we find them without any special options.
20097 # Don't add to $LIBS permanently.
20100 cat >conftest.$ac_ext <<_ACEOF
20103 cat confdefs.h >>conftest.$ac_ext
20104 cat >>conftest.$ac_ext <<_ACEOF
20105 /* end confdefs.h. */
20106 #include <X11/Xlib.h>
20115 rm -f conftest.$ac_objext conftest$ac_exeext
20116 if { (ac_try="$ac_link"
20117 case "(($ac_try" in
20118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20119 *) ac_try_echo=$ac_try;;
20121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20122 (eval "$ac_link") 2>conftest.er1
20124 grep -v '^ *+' conftest.er1 >conftest.err
20126 cat conftest.err >&5
20127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20128 (exit $ac_status); } &&
20129 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20130 { (case "(($ac_try" in
20131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20132 *) ac_try_echo=$ac_try;;
20134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20135 (eval "$ac_try") 2>&5
20137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20138 (exit $ac_status); }; } &&
20139 { ac_try='test -s conftest$ac_exeext'
20140 { (case "(($ac_try" in
20141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20142 *) ac_try_echo=$ac_try;;
20144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20145 (eval "$ac_try") 2>&5
20147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20148 (exit $ac_status); }; }; then
20150 # We can link X programs with no special library path.
20153 echo "$as_me: failed program was:" >&5
20154 sed 's/^/| /' conftest.$ac_ext >&5
20157 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
20159 # Don't even attempt the hair of trying to link an X program!
20160 for ac_extension in a so sl; do
20161 if test -r "$ac_dir/libXt.$ac_extension"; then
20162 ac_x_libraries=$ac_dir
20169 rm -f core conftest.err conftest.$ac_objext \
20170 conftest$ac_exeext conftest.$ac_ext
20171 fi # $ac_x_libraries = no
20173 case $ac_x_includes,$ac_x_libraries in #(
20174 no,* | *,no | *\'*)
20175 # Didn't find X, or a directory has "'" in its name.
20176 ac_cv_have_x="have_x=no";; #(
20178 # Record where we found X for the cache.
20179 ac_cv_have_x="have_x=yes\
20180 ac_x_includes='$ac_x_includes'\
20181 ac_x_libraries='$ac_x_libraries'"
20187 eval "$ac_cv_have_x"
20190 if test "$have_x" != yes; then
20191 { echo "$as_me:$LINENO: result: $have_x" >&5
20192 echo "${ECHO_T}$have_x" >&6; }
20195 # If each of the values was on the command line, it overrides each guess.
20196 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
20197 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
20198 # Update the cache value to reflect the command line values.
20199 ac_cv_have_x="have_x=yes\
20200 ac_x_includes='$x_includes'\
20201 ac_x_libraries='$x_libraries'"
20202 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
20203 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
20206 if test "$no_x" = yes; then
20207 # Not all programs may use this symbol, but it does not hurt to define it.
20209 cat >>confdefs.h <<\_ACEOF
20210 #define X_DISPLAY_MISSING 1
20213 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
20215 if test -n "$x_includes"; then
20216 X_CFLAGS="$X_CFLAGS -I$x_includes"
20219 # It would also be nice to do this for all -L options, not just this one.
20220 if test -n "$x_libraries"; then
20221 X_LIBS="$X_LIBS -L$x_libraries"
20222 # For Solaris; some versions of Sun CC require a space after -R and
20223 # others require no space. Words are not sufficient . . . .
20224 case `(uname -sr) 2>/dev/null` in
20226 { echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
20227 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6; }
20228 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
20229 cat >conftest.$ac_ext <<_ACEOF
20232 cat confdefs.h >>conftest.$ac_ext
20233 cat >>conftest.$ac_ext <<_ACEOF
20234 /* end confdefs.h. */
20244 rm -f conftest.$ac_objext conftest$ac_exeext
20245 if { (ac_try="$ac_link"
20246 case "(($ac_try" in
20247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20248 *) ac_try_echo=$ac_try;;
20250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20251 (eval "$ac_link") 2>conftest.er1
20253 grep -v '^ *+' conftest.er1 >conftest.err
20255 cat conftest.err >&5
20256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20257 (exit $ac_status); } &&
20258 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20259 { (case "(($ac_try" in
20260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20261 *) ac_try_echo=$ac_try;;
20263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20264 (eval "$ac_try") 2>&5
20266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20267 (exit $ac_status); }; } &&
20268 { ac_try='test -s conftest$ac_exeext'
20269 { (case "(($ac_try" in
20270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20271 *) ac_try_echo=$ac_try;;
20273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20274 (eval "$ac_try") 2>&5
20276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20277 (exit $ac_status); }; }; then
20280 echo "$as_me: failed program was:" >&5
20281 sed 's/^/| /' conftest.$ac_ext >&5
20286 rm -f core conftest.err conftest.$ac_objext \
20287 conftest$ac_exeext conftest.$ac_ext
20288 if test $ac_R_nospace = yes; then
20289 { echo "$as_me:$LINENO: result: no" >&5
20290 echo "${ECHO_T}no" >&6; }
20291 X_LIBS="$X_LIBS -R$x_libraries"
20293 LIBS="$ac_xsave_LIBS -R $x_libraries"
20294 cat >conftest.$ac_ext <<_ACEOF
20297 cat confdefs.h >>conftest.$ac_ext
20298 cat >>conftest.$ac_ext <<_ACEOF
20299 /* end confdefs.h. */
20309 rm -f conftest.$ac_objext conftest$ac_exeext
20310 if { (ac_try="$ac_link"
20311 case "(($ac_try" in
20312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20313 *) ac_try_echo=$ac_try;;
20315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20316 (eval "$ac_link") 2>conftest.er1
20318 grep -v '^ *+' conftest.er1 >conftest.err
20320 cat conftest.err >&5
20321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20322 (exit $ac_status); } &&
20323 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20324 { (case "(($ac_try" in
20325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20326 *) ac_try_echo=$ac_try;;
20328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20329 (eval "$ac_try") 2>&5
20331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20332 (exit $ac_status); }; } &&
20333 { ac_try='test -s conftest$ac_exeext'
20334 { (case "(($ac_try" in
20335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20336 *) ac_try_echo=$ac_try;;
20338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20339 (eval "$ac_try") 2>&5
20341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20342 (exit $ac_status); }; }; then
20345 echo "$as_me: failed program was:" >&5
20346 sed 's/^/| /' conftest.$ac_ext >&5
20351 rm -f core conftest.err conftest.$ac_objext \
20352 conftest$ac_exeext conftest.$ac_ext
20353 if test $ac_R_space = yes; then
20354 { echo "$as_me:$LINENO: result: yes" >&5
20355 echo "${ECHO_T}yes" >&6; }
20356 X_LIBS="$X_LIBS -R $x_libraries"
20358 { echo "$as_me:$LINENO: result: neither works" >&5
20359 echo "${ECHO_T}neither works" >&6; }
20362 LIBS=$ac_xsave_LIBS
20366 # Check for system-dependent libraries X programs must link with.
20367 # Do this before checking for the system-independent R6 libraries
20368 # (-lICE), since we may need -lsocket or whatever for X linking.
20370 if test "$ISC" = yes; then
20371 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
20373 # Martyn Johnson says this is needed for Ultrix, if the X
20374 # libraries were built with DECnet support. And Karl Berry says
20375 # the Alpha needs dnet_stub (dnet does not exist).
20376 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
20377 cat >conftest.$ac_ext <<_ACEOF
20380 cat confdefs.h >>conftest.$ac_ext
20381 cat >>conftest.$ac_ext <<_ACEOF
20382 /* end confdefs.h. */
20384 /* Override any GCC internal prototype to avoid an error.
20385 Use char because int might match the return type of a GCC
20386 builtin and then its argument prototype would still apply. */
20390 char XOpenDisplay ();
20394 return XOpenDisplay ();
20399 rm -f conftest.$ac_objext conftest$ac_exeext
20400 if { (ac_try="$ac_link"
20401 case "(($ac_try" in
20402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20403 *) ac_try_echo=$ac_try;;
20405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20406 (eval "$ac_link") 2>conftest.er1
20408 grep -v '^ *+' conftest.er1 >conftest.err
20410 cat conftest.err >&5
20411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20412 (exit $ac_status); } &&
20413 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20414 { (case "(($ac_try" in
20415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20416 *) ac_try_echo=$ac_try;;
20418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20419 (eval "$ac_try") 2>&5
20421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20422 (exit $ac_status); }; } &&
20423 { ac_try='test -s conftest$ac_exeext'
20424 { (case "(($ac_try" in
20425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20426 *) ac_try_echo=$ac_try;;
20428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20429 (eval "$ac_try") 2>&5
20431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20432 (exit $ac_status); }; }; then
20435 echo "$as_me: failed program was:" >&5
20436 sed 's/^/| /' conftest.$ac_ext >&5
20438 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
20439 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
20440 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
20441 echo $ECHO_N "(cached) $ECHO_C" >&6
20443 ac_check_lib_save_LIBS=$LIBS
20444 LIBS="-ldnet $LIBS"
20445 cat >conftest.$ac_ext <<_ACEOF
20448 cat confdefs.h >>conftest.$ac_ext
20449 cat >>conftest.$ac_ext <<_ACEOF
20450 /* end confdefs.h. */
20452 /* Override any GCC internal prototype to avoid an error.
20453 Use char because int might match the return type of a GCC
20454 builtin and then its argument prototype would still apply. */
20462 return dnet_ntoa ();
20467 rm -f conftest.$ac_objext conftest$ac_exeext
20468 if { (ac_try="$ac_link"
20469 case "(($ac_try" in
20470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20471 *) ac_try_echo=$ac_try;;
20473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20474 (eval "$ac_link") 2>conftest.er1
20476 grep -v '^ *+' conftest.er1 >conftest.err
20478 cat conftest.err >&5
20479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20480 (exit $ac_status); } &&
20481 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20482 { (case "(($ac_try" in
20483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20484 *) ac_try_echo=$ac_try;;
20486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20487 (eval "$ac_try") 2>&5
20489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20490 (exit $ac_status); }; } &&
20491 { ac_try='test -s conftest$ac_exeext'
20492 { (case "(($ac_try" in
20493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20494 *) ac_try_echo=$ac_try;;
20496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20497 (eval "$ac_try") 2>&5
20499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20500 (exit $ac_status); }; }; then
20501 ac_cv_lib_dnet_dnet_ntoa=yes
20503 echo "$as_me: failed program was:" >&5
20504 sed 's/^/| /' conftest.$ac_ext >&5
20506 ac_cv_lib_dnet_dnet_ntoa=no
20509 rm -f core conftest.err conftest.$ac_objext \
20510 conftest$ac_exeext conftest.$ac_ext
20511 LIBS=$ac_check_lib_save_LIBS
20513 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
20514 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
20515 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
20516 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
20519 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
20520 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
20521 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6; }
20522 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
20523 echo $ECHO_N "(cached) $ECHO_C" >&6
20525 ac_check_lib_save_LIBS=$LIBS
20526 LIBS="-ldnet_stub $LIBS"
20527 cat >conftest.$ac_ext <<_ACEOF
20530 cat confdefs.h >>conftest.$ac_ext
20531 cat >>conftest.$ac_ext <<_ACEOF
20532 /* end confdefs.h. */
20534 /* Override any GCC internal prototype to avoid an error.
20535 Use char because int might match the return type of a GCC
20536 builtin and then its argument prototype would still apply. */
20544 return dnet_ntoa ();
20549 rm -f conftest.$ac_objext conftest$ac_exeext
20550 if { (ac_try="$ac_link"
20551 case "(($ac_try" in
20552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20553 *) ac_try_echo=$ac_try;;
20555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20556 (eval "$ac_link") 2>conftest.er1
20558 grep -v '^ *+' conftest.er1 >conftest.err
20560 cat conftest.err >&5
20561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20562 (exit $ac_status); } &&
20563 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20564 { (case "(($ac_try" in
20565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20566 *) ac_try_echo=$ac_try;;
20568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20569 (eval "$ac_try") 2>&5
20571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20572 (exit $ac_status); }; } &&
20573 { ac_try='test -s conftest$ac_exeext'
20574 { (case "(($ac_try" in
20575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20576 *) ac_try_echo=$ac_try;;
20578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20579 (eval "$ac_try") 2>&5
20581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20582 (exit $ac_status); }; }; then
20583 ac_cv_lib_dnet_stub_dnet_ntoa=yes
20585 echo "$as_me: failed program was:" >&5
20586 sed 's/^/| /' conftest.$ac_ext >&5
20588 ac_cv_lib_dnet_stub_dnet_ntoa=no
20591 rm -f core conftest.err conftest.$ac_objext \
20592 conftest$ac_exeext conftest.$ac_ext
20593 LIBS=$ac_check_lib_save_LIBS
20595 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
20596 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
20597 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
20598 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
20604 rm -f core conftest.err conftest.$ac_objext \
20605 conftest$ac_exeext conftest.$ac_ext
20606 LIBS="$ac_xsave_LIBS"
20608 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
20609 # to get the SysV transport functions.
20610 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
20612 # The nsl library prevents programs from opening the X display
20613 # on Irix 5.2, according to T.E. Dickey.
20614 # The functions gethostbyname, getservbyname, and inet_addr are
20615 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
20616 { echo "$as_me:$LINENO: checking for gethostbyname" >&5
20617 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
20618 if test "${ac_cv_func_gethostbyname+set}" = set; then
20619 echo $ECHO_N "(cached) $ECHO_C" >&6
20621 cat >conftest.$ac_ext <<_ACEOF
20624 cat confdefs.h >>conftest.$ac_ext
20625 cat >>conftest.$ac_ext <<_ACEOF
20626 /* end confdefs.h. */
20627 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
20628 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20629 #define gethostbyname innocuous_gethostbyname
20631 /* System header to define __stub macros and hopefully few prototypes,
20632 which can conflict with char gethostbyname (); below.
20633 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20634 <limits.h> exists even on freestanding compilers. */
20637 # include <limits.h>
20639 # include <assert.h>
20642 #undef gethostbyname
20644 /* Override any GCC internal prototype to avoid an error.
20645 Use char because int might match the return type of a GCC
20646 builtin and then its argument prototype would still apply. */
20650 char gethostbyname ();
20651 /* The GNU C library defines this for functions which it implements
20652 to always fail with ENOSYS. Some functions are actually named
20653 something starting with __ and the normal name is an alias. */
20654 #if defined __stub_gethostbyname || defined __stub___gethostbyname
20661 return gethostbyname ();
20666 rm -f conftest.$ac_objext conftest$ac_exeext
20667 if { (ac_try="$ac_link"
20668 case "(($ac_try" in
20669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20670 *) ac_try_echo=$ac_try;;
20672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20673 (eval "$ac_link") 2>conftest.er1
20675 grep -v '^ *+' conftest.er1 >conftest.err
20677 cat conftest.err >&5
20678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20679 (exit $ac_status); } &&
20680 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20681 { (case "(($ac_try" in
20682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20683 *) ac_try_echo=$ac_try;;
20685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20686 (eval "$ac_try") 2>&5
20688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20689 (exit $ac_status); }; } &&
20690 { ac_try='test -s conftest$ac_exeext'
20691 { (case "(($ac_try" in
20692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20693 *) ac_try_echo=$ac_try;;
20695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20696 (eval "$ac_try") 2>&5
20698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20699 (exit $ac_status); }; }; then
20700 ac_cv_func_gethostbyname=yes
20702 echo "$as_me: failed program was:" >&5
20703 sed 's/^/| /' conftest.$ac_ext >&5
20705 ac_cv_func_gethostbyname=no
20708 rm -f core conftest.err conftest.$ac_objext \
20709 conftest$ac_exeext conftest.$ac_ext
20711 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
20712 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
20714 if test $ac_cv_func_gethostbyname = no; then
20715 { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
20716 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
20717 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
20718 echo $ECHO_N "(cached) $ECHO_C" >&6
20720 ac_check_lib_save_LIBS=$LIBS
20722 cat >conftest.$ac_ext <<_ACEOF
20725 cat confdefs.h >>conftest.$ac_ext
20726 cat >>conftest.$ac_ext <<_ACEOF
20727 /* end confdefs.h. */
20729 /* Override any GCC internal prototype to avoid an error.
20730 Use char because int might match the return type of a GCC
20731 builtin and then its argument prototype would still apply. */
20735 char gethostbyname ();
20739 return gethostbyname ();
20744 rm -f conftest.$ac_objext conftest$ac_exeext
20745 if { (ac_try="$ac_link"
20746 case "(($ac_try" in
20747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20748 *) ac_try_echo=$ac_try;;
20750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20751 (eval "$ac_link") 2>conftest.er1
20753 grep -v '^ *+' conftest.er1 >conftest.err
20755 cat conftest.err >&5
20756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20757 (exit $ac_status); } &&
20758 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20759 { (case "(($ac_try" in
20760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20761 *) ac_try_echo=$ac_try;;
20763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20764 (eval "$ac_try") 2>&5
20766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20767 (exit $ac_status); }; } &&
20768 { ac_try='test -s conftest$ac_exeext'
20769 { (case "(($ac_try" in
20770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20771 *) ac_try_echo=$ac_try;;
20773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20774 (eval "$ac_try") 2>&5
20776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20777 (exit $ac_status); }; }; then
20778 ac_cv_lib_nsl_gethostbyname=yes
20780 echo "$as_me: failed program was:" >&5
20781 sed 's/^/| /' conftest.$ac_ext >&5
20783 ac_cv_lib_nsl_gethostbyname=no
20786 rm -f core conftest.err conftest.$ac_objext \
20787 conftest$ac_exeext conftest.$ac_ext
20788 LIBS=$ac_check_lib_save_LIBS
20790 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
20791 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
20792 if test $ac_cv_lib_nsl_gethostbyname = yes; then
20793 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
20796 if test $ac_cv_lib_nsl_gethostbyname = no; then
20797 { echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
20798 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; }
20799 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
20800 echo $ECHO_N "(cached) $ECHO_C" >&6
20802 ac_check_lib_save_LIBS=$LIBS
20804 cat >conftest.$ac_ext <<_ACEOF
20807 cat confdefs.h >>conftest.$ac_ext
20808 cat >>conftest.$ac_ext <<_ACEOF
20809 /* end confdefs.h. */
20811 /* Override any GCC internal prototype to avoid an error.
20812 Use char because int might match the return type of a GCC
20813 builtin and then its argument prototype would still apply. */
20817 char gethostbyname ();
20821 return gethostbyname ();
20826 rm -f conftest.$ac_objext conftest$ac_exeext
20827 if { (ac_try="$ac_link"
20828 case "(($ac_try" in
20829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20830 *) ac_try_echo=$ac_try;;
20832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20833 (eval "$ac_link") 2>conftest.er1
20835 grep -v '^ *+' conftest.er1 >conftest.err
20837 cat conftest.err >&5
20838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20839 (exit $ac_status); } &&
20840 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20841 { (case "(($ac_try" in
20842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20843 *) ac_try_echo=$ac_try;;
20845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20846 (eval "$ac_try") 2>&5
20848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20849 (exit $ac_status); }; } &&
20850 { ac_try='test -s conftest$ac_exeext'
20851 { (case "(($ac_try" in
20852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20853 *) ac_try_echo=$ac_try;;
20855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20856 (eval "$ac_try") 2>&5
20858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20859 (exit $ac_status); }; }; then
20860 ac_cv_lib_bsd_gethostbyname=yes
20862 echo "$as_me: failed program was:" >&5
20863 sed 's/^/| /' conftest.$ac_ext >&5
20865 ac_cv_lib_bsd_gethostbyname=no
20868 rm -f core conftest.err conftest.$ac_objext \
20869 conftest$ac_exeext conftest.$ac_ext
20870 LIBS=$ac_check_lib_save_LIBS
20872 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
20873 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; }
20874 if test $ac_cv_lib_bsd_gethostbyname = yes; then
20875 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
20881 # lieder@skyler.mavd.honeywell.com says without -lsocket,
20882 # socket/setsockopt and other routines are undefined under SCO ODT
20883 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
20884 # on later versions), says Simon Leinen: it contains gethostby*
20885 # variants that don't use the name server (or something). -lsocket
20886 # must be given before -lnsl if both are needed. We assume that
20887 # if connect needs -lnsl, so does gethostbyname.
20888 { echo "$as_me:$LINENO: checking for connect" >&5
20889 echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
20890 if test "${ac_cv_func_connect+set}" = set; then
20891 echo $ECHO_N "(cached) $ECHO_C" >&6
20893 cat >conftest.$ac_ext <<_ACEOF
20896 cat confdefs.h >>conftest.$ac_ext
20897 cat >>conftest.$ac_ext <<_ACEOF
20898 /* end confdefs.h. */
20899 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
20900 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20901 #define connect innocuous_connect
20903 /* System header to define __stub macros and hopefully few prototypes,
20904 which can conflict with char connect (); below.
20905 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20906 <limits.h> exists even on freestanding compilers. */
20909 # include <limits.h>
20911 # include <assert.h>
20916 /* Override any GCC internal prototype to avoid an error.
20917 Use char because int might match the return type of a GCC
20918 builtin and then its argument prototype would still apply. */
20923 /* The GNU C library defines this for functions which it implements
20924 to always fail with ENOSYS. Some functions are actually named
20925 something starting with __ and the normal name is an alias. */
20926 #if defined __stub_connect || defined __stub___connect
20938 rm -f conftest.$ac_objext conftest$ac_exeext
20939 if { (ac_try="$ac_link"
20940 case "(($ac_try" in
20941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20942 *) ac_try_echo=$ac_try;;
20944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20945 (eval "$ac_link") 2>conftest.er1
20947 grep -v '^ *+' conftest.er1 >conftest.err
20949 cat conftest.err >&5
20950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20951 (exit $ac_status); } &&
20952 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20953 { (case "(($ac_try" in
20954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20955 *) ac_try_echo=$ac_try;;
20957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20958 (eval "$ac_try") 2>&5
20960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20961 (exit $ac_status); }; } &&
20962 { ac_try='test -s conftest$ac_exeext'
20963 { (case "(($ac_try" in
20964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20965 *) ac_try_echo=$ac_try;;
20967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20968 (eval "$ac_try") 2>&5
20970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20971 (exit $ac_status); }; }; then
20972 ac_cv_func_connect=yes
20974 echo "$as_me: failed program was:" >&5
20975 sed 's/^/| /' conftest.$ac_ext >&5
20977 ac_cv_func_connect=no
20980 rm -f core conftest.err conftest.$ac_objext \
20981 conftest$ac_exeext conftest.$ac_ext
20983 { echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
20984 echo "${ECHO_T}$ac_cv_func_connect" >&6; }
20986 if test $ac_cv_func_connect = no; then
20987 { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
20988 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
20989 if test "${ac_cv_lib_socket_connect+set}" = set; then
20990 echo $ECHO_N "(cached) $ECHO_C" >&6
20992 ac_check_lib_save_LIBS=$LIBS
20993 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
20994 cat >conftest.$ac_ext <<_ACEOF
20997 cat confdefs.h >>conftest.$ac_ext
20998 cat >>conftest.$ac_ext <<_ACEOF
20999 /* end confdefs.h. */
21001 /* Override any GCC internal prototype to avoid an error.
21002 Use char because int might match the return type of a GCC
21003 builtin and then its argument prototype would still apply. */
21016 rm -f conftest.$ac_objext conftest$ac_exeext
21017 if { (ac_try="$ac_link"
21018 case "(($ac_try" in
21019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21020 *) ac_try_echo=$ac_try;;
21022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21023 (eval "$ac_link") 2>conftest.er1
21025 grep -v '^ *+' conftest.er1 >conftest.err
21027 cat conftest.err >&5
21028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21029 (exit $ac_status); } &&
21030 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21031 { (case "(($ac_try" in
21032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21033 *) ac_try_echo=$ac_try;;
21035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21036 (eval "$ac_try") 2>&5
21038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21039 (exit $ac_status); }; } &&
21040 { ac_try='test -s conftest$ac_exeext'
21041 { (case "(($ac_try" in
21042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21043 *) ac_try_echo=$ac_try;;
21045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21046 (eval "$ac_try") 2>&5
21048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21049 (exit $ac_status); }; }; then
21050 ac_cv_lib_socket_connect=yes
21052 echo "$as_me: failed program was:" >&5
21053 sed 's/^/| /' conftest.$ac_ext >&5
21055 ac_cv_lib_socket_connect=no
21058 rm -f core conftest.err conftest.$ac_objext \
21059 conftest$ac_exeext conftest.$ac_ext
21060 LIBS=$ac_check_lib_save_LIBS
21062 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
21063 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
21064 if test $ac_cv_lib_socket_connect = yes; then
21065 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
21070 # Guillermo Gomez says -lposix is necessary on A/UX.
21071 { echo "$as_me:$LINENO: checking for remove" >&5
21072 echo $ECHO_N "checking for remove... $ECHO_C" >&6; }
21073 if test "${ac_cv_func_remove+set}" = set; then
21074 echo $ECHO_N "(cached) $ECHO_C" >&6
21076 cat >conftest.$ac_ext <<_ACEOF
21079 cat confdefs.h >>conftest.$ac_ext
21080 cat >>conftest.$ac_ext <<_ACEOF
21081 /* end confdefs.h. */
21082 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
21083 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21084 #define remove innocuous_remove
21086 /* System header to define __stub macros and hopefully few prototypes,
21087 which can conflict with char remove (); below.
21088 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21089 <limits.h> exists even on freestanding compilers. */
21092 # include <limits.h>
21094 # include <assert.h>
21099 /* Override any GCC internal prototype to avoid an error.
21100 Use char because int might match the return type of a GCC
21101 builtin and then its argument prototype would still apply. */
21106 /* The GNU C library defines this for functions which it implements
21107 to always fail with ENOSYS. Some functions are actually named
21108 something starting with __ and the normal name is an alias. */
21109 #if defined __stub_remove || defined __stub___remove
21121 rm -f conftest.$ac_objext conftest$ac_exeext
21122 if { (ac_try="$ac_link"
21123 case "(($ac_try" in
21124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21125 *) ac_try_echo=$ac_try;;
21127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21128 (eval "$ac_link") 2>conftest.er1
21130 grep -v '^ *+' conftest.er1 >conftest.err
21132 cat conftest.err >&5
21133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21134 (exit $ac_status); } &&
21135 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21136 { (case "(($ac_try" in
21137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21138 *) ac_try_echo=$ac_try;;
21140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21141 (eval "$ac_try") 2>&5
21143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21144 (exit $ac_status); }; } &&
21145 { ac_try='test -s conftest$ac_exeext'
21146 { (case "(($ac_try" in
21147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21148 *) ac_try_echo=$ac_try;;
21150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21151 (eval "$ac_try") 2>&5
21153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21154 (exit $ac_status); }; }; then
21155 ac_cv_func_remove=yes
21157 echo "$as_me: failed program was:" >&5
21158 sed 's/^/| /' conftest.$ac_ext >&5
21160 ac_cv_func_remove=no
21163 rm -f core conftest.err conftest.$ac_objext \
21164 conftest$ac_exeext conftest.$ac_ext
21166 { echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
21167 echo "${ECHO_T}$ac_cv_func_remove" >&6; }
21169 if test $ac_cv_func_remove = no; then
21170 { echo "$as_me:$LINENO: checking for remove in -lposix" >&5
21171 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; }
21172 if test "${ac_cv_lib_posix_remove+set}" = set; then
21173 echo $ECHO_N "(cached) $ECHO_C" >&6
21175 ac_check_lib_save_LIBS=$LIBS
21176 LIBS="-lposix $LIBS"
21177 cat >conftest.$ac_ext <<_ACEOF
21180 cat confdefs.h >>conftest.$ac_ext
21181 cat >>conftest.$ac_ext <<_ACEOF
21182 /* end confdefs.h. */
21184 /* Override any GCC internal prototype to avoid an error.
21185 Use char because int might match the return type of a GCC
21186 builtin and then its argument prototype would still apply. */
21199 rm -f conftest.$ac_objext conftest$ac_exeext
21200 if { (ac_try="$ac_link"
21201 case "(($ac_try" in
21202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21203 *) ac_try_echo=$ac_try;;
21205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21206 (eval "$ac_link") 2>conftest.er1
21208 grep -v '^ *+' conftest.er1 >conftest.err
21210 cat conftest.err >&5
21211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21212 (exit $ac_status); } &&
21213 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21214 { (case "(($ac_try" in
21215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21216 *) ac_try_echo=$ac_try;;
21218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21219 (eval "$ac_try") 2>&5
21221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21222 (exit $ac_status); }; } &&
21223 { ac_try='test -s conftest$ac_exeext'
21224 { (case "(($ac_try" in
21225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21226 *) ac_try_echo=$ac_try;;
21228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21229 (eval "$ac_try") 2>&5
21231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21232 (exit $ac_status); }; }; then
21233 ac_cv_lib_posix_remove=yes
21235 echo "$as_me: failed program was:" >&5
21236 sed 's/^/| /' conftest.$ac_ext >&5
21238 ac_cv_lib_posix_remove=no
21241 rm -f core conftest.err conftest.$ac_objext \
21242 conftest$ac_exeext conftest.$ac_ext
21243 LIBS=$ac_check_lib_save_LIBS
21245 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
21246 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; }
21247 if test $ac_cv_lib_posix_remove = yes; then
21248 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
21253 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
21254 { echo "$as_me:$LINENO: checking for shmat" >&5
21255 echo $ECHO_N "checking for shmat... $ECHO_C" >&6; }
21256 if test "${ac_cv_func_shmat+set}" = set; then
21257 echo $ECHO_N "(cached) $ECHO_C" >&6
21259 cat >conftest.$ac_ext <<_ACEOF
21262 cat confdefs.h >>conftest.$ac_ext
21263 cat >>conftest.$ac_ext <<_ACEOF
21264 /* end confdefs.h. */
21265 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
21266 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21267 #define shmat innocuous_shmat
21269 /* System header to define __stub macros and hopefully few prototypes,
21270 which can conflict with char shmat (); below.
21271 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21272 <limits.h> exists even on freestanding compilers. */
21275 # include <limits.h>
21277 # include <assert.h>
21282 /* Override any GCC internal prototype to avoid an error.
21283 Use char because int might match the return type of a GCC
21284 builtin and then its argument prototype would still apply. */
21289 /* The GNU C library defines this for functions which it implements
21290 to always fail with ENOSYS. Some functions are actually named
21291 something starting with __ and the normal name is an alias. */
21292 #if defined __stub_shmat || defined __stub___shmat
21304 rm -f conftest.$ac_objext conftest$ac_exeext
21305 if { (ac_try="$ac_link"
21306 case "(($ac_try" in
21307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21308 *) ac_try_echo=$ac_try;;
21310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21311 (eval "$ac_link") 2>conftest.er1
21313 grep -v '^ *+' conftest.er1 >conftest.err
21315 cat conftest.err >&5
21316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21317 (exit $ac_status); } &&
21318 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21319 { (case "(($ac_try" in
21320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21321 *) ac_try_echo=$ac_try;;
21323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21324 (eval "$ac_try") 2>&5
21326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21327 (exit $ac_status); }; } &&
21328 { ac_try='test -s conftest$ac_exeext'
21329 { (case "(($ac_try" in
21330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21331 *) ac_try_echo=$ac_try;;
21333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21334 (eval "$ac_try") 2>&5
21336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21337 (exit $ac_status); }; }; then
21338 ac_cv_func_shmat=yes
21340 echo "$as_me: failed program was:" >&5
21341 sed 's/^/| /' conftest.$ac_ext >&5
21343 ac_cv_func_shmat=no
21346 rm -f core conftest.err conftest.$ac_objext \
21347 conftest$ac_exeext conftest.$ac_ext
21349 { echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
21350 echo "${ECHO_T}$ac_cv_func_shmat" >&6; }
21352 if test $ac_cv_func_shmat = no; then
21353 { echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
21354 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; }
21355 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
21356 echo $ECHO_N "(cached) $ECHO_C" >&6
21358 ac_check_lib_save_LIBS=$LIBS
21360 cat >conftest.$ac_ext <<_ACEOF
21363 cat confdefs.h >>conftest.$ac_ext
21364 cat >>conftest.$ac_ext <<_ACEOF
21365 /* end confdefs.h. */
21367 /* Override any GCC internal prototype to avoid an error.
21368 Use char because int might match the return type of a GCC
21369 builtin and then its argument prototype would still apply. */
21382 rm -f conftest.$ac_objext conftest$ac_exeext
21383 if { (ac_try="$ac_link"
21384 case "(($ac_try" in
21385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21386 *) ac_try_echo=$ac_try;;
21388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21389 (eval "$ac_link") 2>conftest.er1
21391 grep -v '^ *+' conftest.er1 >conftest.err
21393 cat conftest.err >&5
21394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21395 (exit $ac_status); } &&
21396 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21397 { (case "(($ac_try" in
21398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21399 *) ac_try_echo=$ac_try;;
21401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21402 (eval "$ac_try") 2>&5
21404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21405 (exit $ac_status); }; } &&
21406 { ac_try='test -s conftest$ac_exeext'
21407 { (case "(($ac_try" in
21408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21409 *) ac_try_echo=$ac_try;;
21411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21412 (eval "$ac_try") 2>&5
21414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21415 (exit $ac_status); }; }; then
21416 ac_cv_lib_ipc_shmat=yes
21418 echo "$as_me: failed program was:" >&5
21419 sed 's/^/| /' conftest.$ac_ext >&5
21421 ac_cv_lib_ipc_shmat=no
21424 rm -f core conftest.err conftest.$ac_objext \
21425 conftest$ac_exeext conftest.$ac_ext
21426 LIBS=$ac_check_lib_save_LIBS
21428 { echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
21429 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; }
21430 if test $ac_cv_lib_ipc_shmat = yes; then
21431 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
21437 # Check for libraries that X11R6 Xt/Xaw programs need.
21438 ac_save_LDFLAGS=$LDFLAGS
21439 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
21440 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
21441 # check for ICE first), but we must link in the order -lSM -lICE or
21442 # we get undefined symbols. So assume we have SM if we have ICE.
21443 # These have to be linked with before -lX11, unlike the other
21444 # libraries we check for below, so use a different variable.
21445 # John Interrante, Karl Berry
21446 { echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
21447 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; }
21448 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
21449 echo $ECHO_N "(cached) $ECHO_C" >&6
21451 ac_check_lib_save_LIBS=$LIBS
21452 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
21453 cat >conftest.$ac_ext <<_ACEOF
21456 cat confdefs.h >>conftest.$ac_ext
21457 cat >>conftest.$ac_ext <<_ACEOF
21458 /* end confdefs.h. */
21460 /* Override any GCC internal prototype to avoid an error.
21461 Use char because int might match the return type of a GCC
21462 builtin and then its argument prototype would still apply. */
21466 char IceConnectionNumber ();
21470 return IceConnectionNumber ();
21475 rm -f conftest.$ac_objext conftest$ac_exeext
21476 if { (ac_try="$ac_link"
21477 case "(($ac_try" in
21478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21479 *) ac_try_echo=$ac_try;;
21481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21482 (eval "$ac_link") 2>conftest.er1
21484 grep -v '^ *+' conftest.er1 >conftest.err
21486 cat conftest.err >&5
21487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21488 (exit $ac_status); } &&
21489 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21490 { (case "(($ac_try" in
21491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21492 *) ac_try_echo=$ac_try;;
21494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21495 (eval "$ac_try") 2>&5
21497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21498 (exit $ac_status); }; } &&
21499 { ac_try='test -s conftest$ac_exeext'
21500 { (case "(($ac_try" in
21501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21502 *) ac_try_echo=$ac_try;;
21504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21505 (eval "$ac_try") 2>&5
21507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21508 (exit $ac_status); }; }; then
21509 ac_cv_lib_ICE_IceConnectionNumber=yes
21511 echo "$as_me: failed program was:" >&5
21512 sed 's/^/| /' conftest.$ac_ext >&5
21514 ac_cv_lib_ICE_IceConnectionNumber=no
21517 rm -f core conftest.err conftest.$ac_objext \
21518 conftest$ac_exeext conftest.$ac_ext
21519 LIBS=$ac_check_lib_save_LIBS
21521 { echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
21522 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
21523 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
21524 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
21527 LDFLAGS=$ac_save_LDFLAGS
21589 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21590 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21591 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21592 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21593 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21594 echo $ECHO_N "(cached) $ECHO_C" >&6
21596 ac_res=`eval echo '${'$as_ac_Header'}'`
21597 { echo "$as_me:$LINENO: result: $ac_res" >&5
21598 echo "${ECHO_T}$ac_res" >&6; }
21600 # Is the header compilable?
21601 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21602 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21603 cat >conftest.$ac_ext <<_ACEOF
21606 cat confdefs.h >>conftest.$ac_ext
21607 cat >>conftest.$ac_ext <<_ACEOF
21608 /* end confdefs.h. */
21609 $ac_includes_default
21610 #include <$ac_header>
21612 rm -f conftest.$ac_objext
21613 if { (ac_try="$ac_compile"
21614 case "(($ac_try" in
21615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21616 *) ac_try_echo=$ac_try;;
21618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21619 (eval "$ac_compile") 2>conftest.er1
21621 grep -v '^ *+' conftest.er1 >conftest.err
21623 cat conftest.err >&5
21624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21625 (exit $ac_status); } &&
21626 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21627 { (case "(($ac_try" in
21628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21629 *) ac_try_echo=$ac_try;;
21631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21632 (eval "$ac_try") 2>&5
21634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21635 (exit $ac_status); }; } &&
21636 { ac_try='test -s conftest.$ac_objext'
21637 { (case "(($ac_try" in
21638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21639 *) ac_try_echo=$ac_try;;
21641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21642 (eval "$ac_try") 2>&5
21644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21645 (exit $ac_status); }; }; then
21646 ac_header_compiler=yes
21648 echo "$as_me: failed program was:" >&5
21649 sed 's/^/| /' conftest.$ac_ext >&5
21651 ac_header_compiler=no
21654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21655 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21656 echo "${ECHO_T}$ac_header_compiler" >&6; }
21658 # Is the header present?
21659 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21660 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21661 cat >conftest.$ac_ext <<_ACEOF
21664 cat confdefs.h >>conftest.$ac_ext
21665 cat >>conftest.$ac_ext <<_ACEOF
21666 /* end confdefs.h. */
21667 #include <$ac_header>
21669 if { (ac_try="$ac_cpp conftest.$ac_ext"
21670 case "(($ac_try" in
21671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21672 *) ac_try_echo=$ac_try;;
21674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21675 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21677 grep -v '^ *+' conftest.er1 >conftest.err
21679 cat conftest.err >&5
21680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21681 (exit $ac_status); } >/dev/null; then
21682 if test -s conftest.err; then
21683 ac_cpp_err=$ac_c_preproc_warn_flag
21684 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21691 if test -z "$ac_cpp_err"; then
21692 ac_header_preproc=yes
21694 echo "$as_me: failed program was:" >&5
21695 sed 's/^/| /' conftest.$ac_ext >&5
21697 ac_header_preproc=no
21700 rm -f conftest.err conftest.$ac_ext
21701 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21702 echo "${ECHO_T}$ac_header_preproc" >&6; }
21704 # So? What about this header?
21705 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21707 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21708 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21709 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21710 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21711 ac_header_preproc=yes
21714 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21715 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21716 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21717 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21718 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21719 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21720 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21721 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21722 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21723 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21724 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21725 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21729 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21730 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21731 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21732 echo $ECHO_N "(cached) $ECHO_C" >&6
21734 eval "$as_ac_Header=\$ac_header_preproc"
21736 ac_res=`eval echo '${'$as_ac_Header'}'`
21737 { echo "$as_me:$LINENO: result: $ac_res" >&5
21738 echo "${ECHO_T}$ac_res" >&6; }
21741 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21742 cat >>confdefs.h <<_ACEOF
21743 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21750 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
21751 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
21752 if test "${ac_cv_header_stdc+set}" = set; then
21753 echo $ECHO_N "(cached) $ECHO_C" >&6
21755 cat >conftest.$ac_ext <<_ACEOF
21758 cat confdefs.h >>conftest.$ac_ext
21759 cat >>conftest.$ac_ext <<_ACEOF
21760 /* end confdefs.h. */
21761 #include <stdlib.h>
21762 #include <stdarg.h>
21763 #include <string.h>
21774 rm -f conftest.$ac_objext
21775 if { (ac_try="$ac_compile"
21776 case "(($ac_try" in
21777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21778 *) ac_try_echo=$ac_try;;
21780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21781 (eval "$ac_compile") 2>conftest.er1
21783 grep -v '^ *+' conftest.er1 >conftest.err
21785 cat conftest.err >&5
21786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21787 (exit $ac_status); } &&
21788 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21789 { (case "(($ac_try" in
21790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21791 *) ac_try_echo=$ac_try;;
21793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21794 (eval "$ac_try") 2>&5
21796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21797 (exit $ac_status); }; } &&
21798 { ac_try='test -s conftest.$ac_objext'
21799 { (case "(($ac_try" in
21800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21801 *) ac_try_echo=$ac_try;;
21803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21804 (eval "$ac_try") 2>&5
21806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21807 (exit $ac_status); }; }; then
21808 ac_cv_header_stdc=yes
21810 echo "$as_me: failed program was:" >&5
21811 sed 's/^/| /' conftest.$ac_ext >&5
21813 ac_cv_header_stdc=no
21816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21818 if test $ac_cv_header_stdc = yes; then
21819 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
21820 cat >conftest.$ac_ext <<_ACEOF
21823 cat confdefs.h >>conftest.$ac_ext
21824 cat >>conftest.$ac_ext <<_ACEOF
21825 /* end confdefs.h. */
21826 #include <string.h>
21829 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21830 $EGREP "memchr" >/dev/null 2>&1; then
21833 ac_cv_header_stdc=no
21839 if test $ac_cv_header_stdc = yes; then
21840 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
21841 cat >conftest.$ac_ext <<_ACEOF
21844 cat confdefs.h >>conftest.$ac_ext
21845 cat >>conftest.$ac_ext <<_ACEOF
21846 /* end confdefs.h. */
21847 #include <stdlib.h>
21850 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21851 $EGREP "free" >/dev/null 2>&1; then
21854 ac_cv_header_stdc=no
21860 if test $ac_cv_header_stdc = yes; then
21861 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
21862 if test "$cross_compiling" = yes; then
21865 cat >conftest.$ac_ext <<_ACEOF
21868 cat confdefs.h >>conftest.$ac_ext
21869 cat >>conftest.$ac_ext <<_ACEOF
21870 /* end confdefs.h. */
21872 #include <stdlib.h>
21873 #if ((' ' & 0x0FF) == 0x020)
21874 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
21875 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
21877 # define ISLOWER(c) \
21878 (('a' <= (c) && (c) <= 'i') \
21879 || ('j' <= (c) && (c) <= 'r') \
21880 || ('s' <= (c) && (c) <= 'z'))
21881 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
21884 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
21889 for (i = 0; i < 256; i++)
21890 if (XOR (islower (i), ISLOWER (i))
21891 || toupper (i) != TOUPPER (i))
21896 rm -f conftest$ac_exeext
21897 if { (ac_try="$ac_link"
21898 case "(($ac_try" in
21899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21900 *) ac_try_echo=$ac_try;;
21902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21903 (eval "$ac_link") 2>&5
21905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21906 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21907 { (case "(($ac_try" in
21908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21909 *) ac_try_echo=$ac_try;;
21911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21912 (eval "$ac_try") 2>&5
21914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21915 (exit $ac_status); }; }; then
21918 echo "$as_me: program exited with status $ac_status" >&5
21919 echo "$as_me: failed program was:" >&5
21920 sed 's/^/| /' conftest.$ac_ext >&5
21922 ( exit $ac_status )
21923 ac_cv_header_stdc=no
21925 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21931 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
21932 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
21933 if test $ac_cv_header_stdc = yes; then
21935 cat >>confdefs.h <<\_ACEOF
21936 #define STDC_HEADERS 1
21941 { echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
21942 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6; }
21943 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
21944 echo $ECHO_N "(cached) $ECHO_C" >&6
21946 cat >conftest.$ac_ext <<_ACEOF
21949 cat confdefs.h >>conftest.$ac_ext
21950 cat >>conftest.$ac_ext <<_ACEOF
21951 /* end confdefs.h. */
21952 #include <sys/types.h>
21956 return makedev(0, 0);
21961 rm -f conftest.$ac_objext conftest$ac_exeext
21962 if { (ac_try="$ac_link"
21963 case "(($ac_try" in
21964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21965 *) ac_try_echo=$ac_try;;
21967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21968 (eval "$ac_link") 2>conftest.er1
21970 grep -v '^ *+' conftest.er1 >conftest.err
21972 cat conftest.err >&5
21973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21974 (exit $ac_status); } &&
21975 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21976 { (case "(($ac_try" in
21977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21978 *) ac_try_echo=$ac_try;;
21980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21981 (eval "$ac_try") 2>&5
21983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21984 (exit $ac_status); }; } &&
21985 { ac_try='test -s conftest$ac_exeext'
21986 { (case "(($ac_try" in
21987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21988 *) ac_try_echo=$ac_try;;
21990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21991 (eval "$ac_try") 2>&5
21993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21994 (exit $ac_status); }; }; then
21995 ac_cv_header_sys_types_h_makedev=yes
21997 echo "$as_me: failed program was:" >&5
21998 sed 's/^/| /' conftest.$ac_ext >&5
22000 ac_cv_header_sys_types_h_makedev=no
22003 rm -f core conftest.err conftest.$ac_objext \
22004 conftest$ac_exeext conftest.$ac_ext
22007 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
22008 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6; }
22010 if test $ac_cv_header_sys_types_h_makedev = no; then
22011 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
22012 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
22013 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
22014 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
22015 echo $ECHO_N "(cached) $ECHO_C" >&6
22017 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
22018 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
22020 # Is the header compilable?
22021 { echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
22022 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6; }
22023 cat >conftest.$ac_ext <<_ACEOF
22026 cat confdefs.h >>conftest.$ac_ext
22027 cat >>conftest.$ac_ext <<_ACEOF
22028 /* end confdefs.h. */
22029 $ac_includes_default
22030 #include <sys/mkdev.h>
22032 rm -f conftest.$ac_objext
22033 if { (ac_try="$ac_compile"
22034 case "(($ac_try" in
22035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22036 *) ac_try_echo=$ac_try;;
22038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22039 (eval "$ac_compile") 2>conftest.er1
22041 grep -v '^ *+' conftest.er1 >conftest.err
22043 cat conftest.err >&5
22044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22045 (exit $ac_status); } &&
22046 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22047 { (case "(($ac_try" in
22048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22049 *) ac_try_echo=$ac_try;;
22051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22052 (eval "$ac_try") 2>&5
22054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22055 (exit $ac_status); }; } &&
22056 { ac_try='test -s conftest.$ac_objext'
22057 { (case "(($ac_try" in
22058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22059 *) ac_try_echo=$ac_try;;
22061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22062 (eval "$ac_try") 2>&5
22064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22065 (exit $ac_status); }; }; then
22066 ac_header_compiler=yes
22068 echo "$as_me: failed program was:" >&5
22069 sed 's/^/| /' conftest.$ac_ext >&5
22071 ac_header_compiler=no
22074 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22075 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22076 echo "${ECHO_T}$ac_header_compiler" >&6; }
22078 # Is the header present?
22079 { echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
22080 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6; }
22081 cat >conftest.$ac_ext <<_ACEOF
22084 cat confdefs.h >>conftest.$ac_ext
22085 cat >>conftest.$ac_ext <<_ACEOF
22086 /* end confdefs.h. */
22087 #include <sys/mkdev.h>
22089 if { (ac_try="$ac_cpp conftest.$ac_ext"
22090 case "(($ac_try" in
22091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22092 *) ac_try_echo=$ac_try;;
22094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22095 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22097 grep -v '^ *+' conftest.er1 >conftest.err
22099 cat conftest.err >&5
22100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22101 (exit $ac_status); } >/dev/null; then
22102 if test -s conftest.err; then
22103 ac_cpp_err=$ac_c_preproc_warn_flag
22104 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22111 if test -z "$ac_cpp_err"; then
22112 ac_header_preproc=yes
22114 echo "$as_me: failed program was:" >&5
22115 sed 's/^/| /' conftest.$ac_ext >&5
22117 ac_header_preproc=no
22120 rm -f conftest.err conftest.$ac_ext
22121 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22122 echo "${ECHO_T}$ac_header_preproc" >&6; }
22124 # So? What about this header?
22125 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22127 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
22128 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22129 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
22130 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
22131 ac_header_preproc=yes
22134 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
22135 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
22136 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
22137 echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
22138 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
22139 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
22140 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&5
22141 echo "$as_me: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&2;}
22142 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
22143 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
22144 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
22145 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
22149 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
22150 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
22151 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
22152 echo $ECHO_N "(cached) $ECHO_C" >&6
22154 ac_cv_header_sys_mkdev_h=$ac_header_preproc
22156 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
22157 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
22160 if test $ac_cv_header_sys_mkdev_h = yes; then
22162 cat >>confdefs.h <<\_ACEOF
22163 #define MAJOR_IN_MKDEV 1
22170 if test $ac_cv_header_sys_mkdev_h = no; then
22171 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
22172 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
22173 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
22174 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
22175 echo $ECHO_N "(cached) $ECHO_C" >&6
22177 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
22178 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
22180 # Is the header compilable?
22181 { echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
22182 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6; }
22183 cat >conftest.$ac_ext <<_ACEOF
22186 cat confdefs.h >>conftest.$ac_ext
22187 cat >>conftest.$ac_ext <<_ACEOF
22188 /* end confdefs.h. */
22189 $ac_includes_default
22190 #include <sys/sysmacros.h>
22192 rm -f conftest.$ac_objext
22193 if { (ac_try="$ac_compile"
22194 case "(($ac_try" in
22195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22196 *) ac_try_echo=$ac_try;;
22198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22199 (eval "$ac_compile") 2>conftest.er1
22201 grep -v '^ *+' conftest.er1 >conftest.err
22203 cat conftest.err >&5
22204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22205 (exit $ac_status); } &&
22206 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22207 { (case "(($ac_try" in
22208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22209 *) ac_try_echo=$ac_try;;
22211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22212 (eval "$ac_try") 2>&5
22214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22215 (exit $ac_status); }; } &&
22216 { ac_try='test -s conftest.$ac_objext'
22217 { (case "(($ac_try" in
22218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22219 *) ac_try_echo=$ac_try;;
22221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22222 (eval "$ac_try") 2>&5
22224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22225 (exit $ac_status); }; }; then
22226 ac_header_compiler=yes
22228 echo "$as_me: failed program was:" >&5
22229 sed 's/^/| /' conftest.$ac_ext >&5
22231 ac_header_compiler=no
22234 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22235 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22236 echo "${ECHO_T}$ac_header_compiler" >&6; }
22238 # Is the header present?
22239 { echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
22240 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6; }
22241 cat >conftest.$ac_ext <<_ACEOF
22244 cat confdefs.h >>conftest.$ac_ext
22245 cat >>conftest.$ac_ext <<_ACEOF
22246 /* end confdefs.h. */
22247 #include <sys/sysmacros.h>
22249 if { (ac_try="$ac_cpp conftest.$ac_ext"
22250 case "(($ac_try" in
22251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22252 *) ac_try_echo=$ac_try;;
22254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22255 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22257 grep -v '^ *+' conftest.er1 >conftest.err
22259 cat conftest.err >&5
22260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22261 (exit $ac_status); } >/dev/null; then
22262 if test -s conftest.err; then
22263 ac_cpp_err=$ac_c_preproc_warn_flag
22264 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22271 if test -z "$ac_cpp_err"; then
22272 ac_header_preproc=yes
22274 echo "$as_me: failed program was:" >&5
22275 sed 's/^/| /' conftest.$ac_ext >&5
22277 ac_header_preproc=no
22280 rm -f conftest.err conftest.$ac_ext
22281 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22282 echo "${ECHO_T}$ac_header_preproc" >&6; }
22284 # So? What about this header?
22285 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22287 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
22288 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22289 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
22290 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
22291 ac_header_preproc=yes
22294 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
22295 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
22296 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
22297 echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
22298 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
22299 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
22300 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&5
22301 echo "$as_me: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&2;}
22302 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
22303 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
22304 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
22305 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
22309 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
22310 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
22311 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
22312 echo $ECHO_N "(cached) $ECHO_C" >&6
22314 ac_cv_header_sys_sysmacros_h=$ac_header_preproc
22316 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
22317 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
22320 if test $ac_cv_header_sys_sysmacros_h = yes; then
22322 cat >>confdefs.h <<\_ACEOF
22323 #define MAJOR_IN_SYSMACROS 1
22337 ac_header_dirent=no
22338 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
22339 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
22340 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
22341 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
22342 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22343 echo $ECHO_N "(cached) $ECHO_C" >&6
22345 cat >conftest.$ac_ext <<_ACEOF
22348 cat confdefs.h >>conftest.$ac_ext
22349 cat >>conftest.$ac_ext <<_ACEOF
22350 /* end confdefs.h. */
22351 #include <sys/types.h>
22363 rm -f conftest.$ac_objext
22364 if { (ac_try="$ac_compile"
22365 case "(($ac_try" in
22366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22367 *) ac_try_echo=$ac_try;;
22369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22370 (eval "$ac_compile") 2>conftest.er1
22372 grep -v '^ *+' conftest.er1 >conftest.err
22374 cat conftest.err >&5
22375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22376 (exit $ac_status); } &&
22377 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22378 { (case "(($ac_try" in
22379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22380 *) ac_try_echo=$ac_try;;
22382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22383 (eval "$ac_try") 2>&5
22385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22386 (exit $ac_status); }; } &&
22387 { ac_try='test -s conftest.$ac_objext'
22388 { (case "(($ac_try" in
22389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22390 *) ac_try_echo=$ac_try;;
22392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22393 (eval "$ac_try") 2>&5
22395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22396 (exit $ac_status); }; }; then
22397 eval "$as_ac_Header=yes"
22399 echo "$as_me: failed program was:" >&5
22400 sed 's/^/| /' conftest.$ac_ext >&5
22402 eval "$as_ac_Header=no"
22405 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22407 ac_res=`eval echo '${'$as_ac_Header'}'`
22408 { echo "$as_me:$LINENO: result: $ac_res" >&5
22409 echo "${ECHO_T}$ac_res" >&6; }
22410 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22411 cat >>confdefs.h <<_ACEOF
22412 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
22415 ac_header_dirent=$ac_hdr; break
22419 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
22420 if test $ac_header_dirent = dirent.h; then
22421 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
22422 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
22423 if test "${ac_cv_search_opendir+set}" = set; then
22424 echo $ECHO_N "(cached) $ECHO_C" >&6
22426 ac_func_search_save_LIBS=$LIBS
22427 cat >conftest.$ac_ext <<_ACEOF
22430 cat confdefs.h >>conftest.$ac_ext
22431 cat >>conftest.$ac_ext <<_ACEOF
22432 /* end confdefs.h. */
22434 /* Override any GCC internal prototype to avoid an error.
22435 Use char because int might match the return type of a GCC
22436 builtin and then its argument prototype would still apply. */
22449 for ac_lib in '' dir; do
22450 if test -z "$ac_lib"; then
22451 ac_res="none required"
22454 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22456 rm -f conftest.$ac_objext conftest$ac_exeext
22457 if { (ac_try="$ac_link"
22458 case "(($ac_try" in
22459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22460 *) ac_try_echo=$ac_try;;
22462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22463 (eval "$ac_link") 2>conftest.er1
22465 grep -v '^ *+' conftest.er1 >conftest.err
22467 cat conftest.err >&5
22468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22469 (exit $ac_status); } &&
22470 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22471 { (case "(($ac_try" in
22472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22473 *) ac_try_echo=$ac_try;;
22475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22476 (eval "$ac_try") 2>&5
22478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22479 (exit $ac_status); }; } &&
22480 { ac_try='test -s conftest$ac_exeext'
22481 { (case "(($ac_try" in
22482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22483 *) ac_try_echo=$ac_try;;
22485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22486 (eval "$ac_try") 2>&5
22488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22489 (exit $ac_status); }; }; then
22490 ac_cv_search_opendir=$ac_res
22492 echo "$as_me: failed program was:" >&5
22493 sed 's/^/| /' conftest.$ac_ext >&5
22498 rm -f core conftest.err conftest.$ac_objext \
22500 if test "${ac_cv_search_opendir+set}" = set; then
22504 if test "${ac_cv_search_opendir+set}" = set; then
22507 ac_cv_search_opendir=no
22509 rm conftest.$ac_ext
22510 LIBS=$ac_func_search_save_LIBS
22512 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
22513 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
22514 ac_res=$ac_cv_search_opendir
22515 if test "$ac_res" != no; then
22516 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22521 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
22522 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
22523 if test "${ac_cv_search_opendir+set}" = set; then
22524 echo $ECHO_N "(cached) $ECHO_C" >&6
22526 ac_func_search_save_LIBS=$LIBS
22527 cat >conftest.$ac_ext <<_ACEOF
22530 cat confdefs.h >>conftest.$ac_ext
22531 cat >>conftest.$ac_ext <<_ACEOF
22532 /* end confdefs.h. */
22534 /* Override any GCC internal prototype to avoid an error.
22535 Use char because int might match the return type of a GCC
22536 builtin and then its argument prototype would still apply. */
22549 for ac_lib in '' x; do
22550 if test -z "$ac_lib"; then
22551 ac_res="none required"
22554 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22556 rm -f conftest.$ac_objext conftest$ac_exeext
22557 if { (ac_try="$ac_link"
22558 case "(($ac_try" in
22559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22560 *) ac_try_echo=$ac_try;;
22562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22563 (eval "$ac_link") 2>conftest.er1
22565 grep -v '^ *+' conftest.er1 >conftest.err
22567 cat conftest.err >&5
22568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22569 (exit $ac_status); } &&
22570 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22571 { (case "(($ac_try" in
22572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22573 *) ac_try_echo=$ac_try;;
22575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22576 (eval "$ac_try") 2>&5
22578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22579 (exit $ac_status); }; } &&
22580 { ac_try='test -s conftest$ac_exeext'
22581 { (case "(($ac_try" in
22582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22583 *) ac_try_echo=$ac_try;;
22585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22586 (eval "$ac_try") 2>&5
22588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22589 (exit $ac_status); }; }; then
22590 ac_cv_search_opendir=$ac_res
22592 echo "$as_me: failed program was:" >&5
22593 sed 's/^/| /' conftest.$ac_ext >&5
22598 rm -f core conftest.err conftest.$ac_objext \
22600 if test "${ac_cv_search_opendir+set}" = set; then
22604 if test "${ac_cv_search_opendir+set}" = set; then
22607 ac_cv_search_opendir=no
22609 rm conftest.$ac_ext
22610 LIBS=$ac_func_search_save_LIBS
22612 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
22613 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
22614 ac_res=$ac_cv_search_opendir
22615 if test "$ac_res" != no; then
22616 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22622 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
22623 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
22624 if test "${ac_cv_header_stat_broken+set}" = set; then
22625 echo $ECHO_N "(cached) $ECHO_C" >&6
22627 cat >conftest.$ac_ext <<_ACEOF
22630 cat confdefs.h >>conftest.$ac_ext
22631 cat >>conftest.$ac_ext <<_ACEOF
22632 /* end confdefs.h. */
22633 #include <sys/types.h>
22634 #include <sys/stat.h>
22636 #if defined S_ISBLK && defined S_IFDIR
22637 # if S_ISBLK (S_IFDIR)
22642 #if defined S_ISBLK && defined S_IFCHR
22643 # if S_ISBLK (S_IFCHR)
22648 #if defined S_ISLNK && defined S_IFREG
22649 # if S_ISLNK (S_IFREG)
22654 #if defined S_ISSOCK && defined S_IFREG
22655 # if S_ISSOCK (S_IFREG)
22661 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22662 $EGREP "You lose" >/dev/null 2>&1; then
22663 ac_cv_header_stat_broken=yes
22665 ac_cv_header_stat_broken=no
22670 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
22671 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
22672 if test $ac_cv_header_stat_broken = yes; then
22674 cat >>confdefs.h <<\_ACEOF
22675 #define STAT_MACROS_BROKEN 1
22680 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
22681 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
22682 if test "${ac_cv_header_sys_wait_h+set}" = set; then
22683 echo $ECHO_N "(cached) $ECHO_C" >&6
22685 cat >conftest.$ac_ext <<_ACEOF
22688 cat confdefs.h >>conftest.$ac_ext
22689 cat >>conftest.$ac_ext <<_ACEOF
22690 /* end confdefs.h. */
22691 #include <sys/types.h>
22692 #include <sys/wait.h>
22693 #ifndef WEXITSTATUS
22694 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
22697 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
22705 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
22710 rm -f conftest.$ac_objext
22711 if { (ac_try="$ac_compile"
22712 case "(($ac_try" in
22713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22714 *) ac_try_echo=$ac_try;;
22716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22717 (eval "$ac_compile") 2>conftest.er1
22719 grep -v '^ *+' conftest.er1 >conftest.err
22721 cat conftest.err >&5
22722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22723 (exit $ac_status); } &&
22724 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22725 { (case "(($ac_try" in
22726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22727 *) ac_try_echo=$ac_try;;
22729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22730 (eval "$ac_try") 2>&5
22732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22733 (exit $ac_status); }; } &&
22734 { ac_try='test -s conftest.$ac_objext'
22735 { (case "(($ac_try" in
22736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22737 *) ac_try_echo=$ac_try;;
22739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22740 (eval "$ac_try") 2>&5
22742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22743 (exit $ac_status); }; }; then
22744 ac_cv_header_sys_wait_h=yes
22746 echo "$as_me: failed program was:" >&5
22747 sed 's/^/| /' conftest.$ac_ext >&5
22749 ac_cv_header_sys_wait_h=no
22752 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22754 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
22755 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
22756 if test $ac_cv_header_sys_wait_h = yes; then
22758 cat >>confdefs.h <<\_ACEOF
22759 #define HAVE_SYS_WAIT_H 1
22764 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
22765 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
22766 if test "${ac_cv_header_time+set}" = set; then
22767 echo $ECHO_N "(cached) $ECHO_C" >&6
22769 cat >conftest.$ac_ext <<_ACEOF
22772 cat confdefs.h >>conftest.$ac_ext
22773 cat >>conftest.$ac_ext <<_ACEOF
22774 /* end confdefs.h. */
22775 #include <sys/types.h>
22776 #include <sys/time.h>
22782 if ((struct tm *) 0)
22788 rm -f conftest.$ac_objext
22789 if { (ac_try="$ac_compile"
22790 case "(($ac_try" in
22791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22792 *) ac_try_echo=$ac_try;;
22794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22795 (eval "$ac_compile") 2>conftest.er1
22797 grep -v '^ *+' conftest.er1 >conftest.err
22799 cat conftest.err >&5
22800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22801 (exit $ac_status); } &&
22802 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22803 { (case "(($ac_try" in
22804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22805 *) ac_try_echo=$ac_try;;
22807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22808 (eval "$ac_try") 2>&5
22810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22811 (exit $ac_status); }; } &&
22812 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
22822 ac_cv_header_time=yes
22824 echo "$as_me: failed program was:" >&5
22825 sed 's/^/| /' conftest.$ac_ext >&5
22827 ac_cv_header_time=no
22830 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22832 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
22833 echo "${ECHO_T}$ac_cv_header_time" >&6; }
22834 if test $ac_cv_header_time = yes; then
22836 cat >>confdefs.h <<\_ACEOF
22837 #define TIME_WITH_SYS_TIME 1
22842 { echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
22843 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6; }
22844 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
22845 echo $ECHO_N "(cached) $ECHO_C" >&6
22847 cat >conftest.$ac_ext <<_ACEOF
22850 cat confdefs.h >>conftest.$ac_ext
22851 cat >>conftest.$ac_ext <<_ACEOF
22852 /* end confdefs.h. */
22853 $ac_includes_default
22857 static struct stat ac_aggr;
22858 if (ac_aggr.st_blksize)
22864 rm -f conftest.$ac_objext
22865 if { (ac_try="$ac_compile"
22866 case "(($ac_try" in
22867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22868 *) ac_try_echo=$ac_try;;
22870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22871 (eval "$ac_compile") 2>conftest.er1
22873 grep -v '^ *+' conftest.er1 >conftest.err
22875 cat conftest.err >&5
22876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22877 (exit $ac_status); } &&
22878 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
22888 { ac_try='test -s conftest.$ac_objext'
22889 { (case "(($ac_try" in
22890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22891 *) ac_try_echo=$ac_try;;
22893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22894 (eval "$ac_try") 2>&5
22896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22897 (exit $ac_status); }; }; then
22898 ac_cv_member_struct_stat_st_blksize=yes
22900 echo "$as_me: failed program was:" >&5
22901 sed 's/^/| /' conftest.$ac_ext >&5
22903 cat >conftest.$ac_ext <<_ACEOF
22906 cat confdefs.h >>conftest.$ac_ext
22907 cat >>conftest.$ac_ext <<_ACEOF
22908 /* end confdefs.h. */
22909 $ac_includes_default
22913 static struct stat ac_aggr;
22914 if (sizeof ac_aggr.st_blksize)
22920 rm -f conftest.$ac_objext
22921 if { (ac_try="$ac_compile"
22922 case "(($ac_try" in
22923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22924 *) ac_try_echo=$ac_try;;
22926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22927 (eval "$ac_compile") 2>conftest.er1
22929 grep -v '^ *+' conftest.er1 >conftest.err
22931 cat conftest.err >&5
22932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22933 (exit $ac_status); } &&
22934 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22935 { (case "(($ac_try" in
22936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22937 *) ac_try_echo=$ac_try;;
22939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22940 (eval "$ac_try") 2>&5
22942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22943 (exit $ac_status); }; } &&
22944 { ac_try='test -s conftest.$ac_objext'
22945 { (case "(($ac_try" in
22946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22947 *) ac_try_echo=$ac_try;;
22949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22950 (eval "$ac_try") 2>&5
22952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22953 (exit $ac_status); }; }; then
22954 ac_cv_member_struct_stat_st_blksize=yes
22956 echo "$as_me: failed program was:" >&5
22957 sed 's/^/| /' conftest.$ac_ext >&5
22959 ac_cv_member_struct_stat_st_blksize=no
22962 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22965 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22967 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
22968 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; }
22969 if test $ac_cv_member_struct_stat_st_blksize = yes; then
22971 cat >>confdefs.h <<_ACEOF
22972 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
22976 cat >>confdefs.h <<\_ACEOF
22977 #define HAVE_ST_BLKSIZE 1
22983 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
22984 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
22985 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
22986 echo $ECHO_N "(cached) $ECHO_C" >&6
22988 cat >conftest.$ac_ext <<_ACEOF
22991 cat confdefs.h >>conftest.$ac_ext
22992 cat >>conftest.$ac_ext <<_ACEOF
22993 /* end confdefs.h. */
22994 $ac_includes_default
22998 static struct stat ac_aggr;
22999 if (ac_aggr.st_blocks)
23005 rm -f conftest.$ac_objext
23006 if { (ac_try="$ac_compile"
23007 case "(($ac_try" in
23008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23009 *) ac_try_echo=$ac_try;;
23011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23012 (eval "$ac_compile") 2>conftest.er1
23014 grep -v '^ *+' conftest.er1 >conftest.err
23016 cat conftest.err >&5
23017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23018 (exit $ac_status); } &&
23019 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
23029 { ac_try='test -s conftest.$ac_objext'
23030 { (case "(($ac_try" in
23031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23032 *) ac_try_echo=$ac_try;;
23034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23035 (eval "$ac_try") 2>&5
23037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23038 (exit $ac_status); }; }; then
23039 ac_cv_member_struct_stat_st_blocks=yes
23041 echo "$as_me: failed program was:" >&5
23042 sed 's/^/| /' conftest.$ac_ext >&5
23044 cat >conftest.$ac_ext <<_ACEOF
23047 cat confdefs.h >>conftest.$ac_ext
23048 cat >>conftest.$ac_ext <<_ACEOF
23049 /* end confdefs.h. */
23050 $ac_includes_default
23054 static struct stat ac_aggr;
23055 if (sizeof ac_aggr.st_blocks)
23061 rm -f conftest.$ac_objext
23062 if { (ac_try="$ac_compile"
23063 case "(($ac_try" in
23064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23065 *) ac_try_echo=$ac_try;;
23067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23068 (eval "$ac_compile") 2>conftest.er1
23070 grep -v '^ *+' conftest.er1 >conftest.err
23072 cat conftest.err >&5
23073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23074 (exit $ac_status); } &&
23075 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23076 { (case "(($ac_try" in
23077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23078 *) ac_try_echo=$ac_try;;
23080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23081 (eval "$ac_try") 2>&5
23083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23084 (exit $ac_status); }; } &&
23085 { ac_try='test -s conftest.$ac_objext'
23086 { (case "(($ac_try" in
23087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23088 *) ac_try_echo=$ac_try;;
23090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23091 (eval "$ac_try") 2>&5
23093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23094 (exit $ac_status); }; }; then
23095 ac_cv_member_struct_stat_st_blocks=yes
23097 echo "$as_me: failed program was:" >&5
23098 sed 's/^/| /' conftest.$ac_ext >&5
23100 ac_cv_member_struct_stat_st_blocks=no
23103 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23106 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23108 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
23109 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
23110 if test $ac_cv_member_struct_stat_st_blocks = yes; then
23112 cat >>confdefs.h <<_ACEOF
23113 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
23117 cat >>confdefs.h <<\_ACEOF
23118 #define HAVE_ST_BLOCKS 1
23122 case " $LIBOBJS " in
23123 *" fileblocks.$ac_objext "* ) ;;
23124 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
23131 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
23132 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
23133 if test "${ac_cv_struct_tm+set}" = set; then
23134 echo $ECHO_N "(cached) $ECHO_C" >&6
23136 cat >conftest.$ac_ext <<_ACEOF
23139 cat confdefs.h >>conftest.$ac_ext
23140 cat >>conftest.$ac_ext <<_ACEOF
23141 /* end confdefs.h. */
23142 #include <sys/types.h>
23148 struct tm *tp; tp->tm_sec;
23153 rm -f conftest.$ac_objext
23154 if { (ac_try="$ac_compile"
23155 case "(($ac_try" in
23156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23157 *) ac_try_echo=$ac_try;;
23159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23160 (eval "$ac_compile") 2>conftest.er1
23162 grep -v '^ *+' conftest.er1 >conftest.err
23164 cat conftest.err >&5
23165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23166 (exit $ac_status); } &&
23167 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
23175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23176 (exit $ac_status); }; } &&
23177 { ac_try='test -s conftest.$ac_objext'
23178 { (case "(($ac_try" in
23179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23180 *) ac_try_echo=$ac_try;;
23182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23183 (eval "$ac_try") 2>&5
23185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23186 (exit $ac_status); }; }; then
23187 ac_cv_struct_tm=time.h
23189 echo "$as_me: failed program was:" >&5
23190 sed 's/^/| /' conftest.$ac_ext >&5
23192 ac_cv_struct_tm=sys/time.h
23195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23197 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
23198 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
23199 if test $ac_cv_struct_tm = sys/time.h; then
23201 cat >>confdefs.h <<\_ACEOF
23202 #define TM_IN_SYS_TIME 1
23207 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
23208 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
23209 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
23210 echo $ECHO_N "(cached) $ECHO_C" >&6
23212 cat >conftest.$ac_ext <<_ACEOF
23215 cat confdefs.h >>conftest.$ac_ext
23216 cat >>conftest.$ac_ext <<_ACEOF
23217 /* end confdefs.h. */
23218 #include <sys/types.h>
23219 #include <$ac_cv_struct_tm>
23225 static struct tm ac_aggr;
23226 if (ac_aggr.tm_zone)
23232 rm -f conftest.$ac_objext
23233 if { (ac_try="$ac_compile"
23234 case "(($ac_try" in
23235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23236 *) ac_try_echo=$ac_try;;
23238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23239 (eval "$ac_compile") 2>conftest.er1
23241 grep -v '^ *+' conftest.er1 >conftest.err
23243 cat conftest.err >&5
23244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23245 (exit $ac_status); } &&
23246 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23247 { (case "(($ac_try" in
23248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23249 *) ac_try_echo=$ac_try;;
23251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23252 (eval "$ac_try") 2>&5
23254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23255 (exit $ac_status); }; } &&
23256 { ac_try='test -s conftest.$ac_objext'
23257 { (case "(($ac_try" in
23258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23259 *) ac_try_echo=$ac_try;;
23261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23262 (eval "$ac_try") 2>&5
23264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23265 (exit $ac_status); }; }; then
23266 ac_cv_member_struct_tm_tm_zone=yes
23268 echo "$as_me: failed program was:" >&5
23269 sed 's/^/| /' conftest.$ac_ext >&5
23271 cat >conftest.$ac_ext <<_ACEOF
23274 cat confdefs.h >>conftest.$ac_ext
23275 cat >>conftest.$ac_ext <<_ACEOF
23276 /* end confdefs.h. */
23277 #include <sys/types.h>
23278 #include <$ac_cv_struct_tm>
23284 static struct tm ac_aggr;
23285 if (sizeof ac_aggr.tm_zone)
23291 rm -f conftest.$ac_objext
23292 if { (ac_try="$ac_compile"
23293 case "(($ac_try" in
23294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23295 *) ac_try_echo=$ac_try;;
23297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23298 (eval "$ac_compile") 2>conftest.er1
23300 grep -v '^ *+' conftest.er1 >conftest.err
23302 cat conftest.err >&5
23303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23304 (exit $ac_status); } &&
23305 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23306 { (case "(($ac_try" in
23307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23308 *) ac_try_echo=$ac_try;;
23310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23311 (eval "$ac_try") 2>&5
23313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23314 (exit $ac_status); }; } &&
23315 { ac_try='test -s conftest.$ac_objext'
23316 { (case "(($ac_try" in
23317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23318 *) ac_try_echo=$ac_try;;
23320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23321 (eval "$ac_try") 2>&5
23323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23324 (exit $ac_status); }; }; then
23325 ac_cv_member_struct_tm_tm_zone=yes
23327 echo "$as_me: failed program was:" >&5
23328 sed 's/^/| /' conftest.$ac_ext >&5
23330 ac_cv_member_struct_tm_tm_zone=no
23333 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23338 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
23339 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
23340 if test $ac_cv_member_struct_tm_tm_zone = yes; then
23342 cat >>confdefs.h <<_ACEOF
23343 #define HAVE_STRUCT_TM_TM_ZONE 1
23349 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
23351 cat >>confdefs.h <<\_ACEOF
23352 #define HAVE_TM_ZONE 1
23356 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
23357 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
23358 if test "${ac_cv_have_decl_tzname+set}" = set; then
23359 echo $ECHO_N "(cached) $ECHO_C" >&6
23361 cat >conftest.$ac_ext <<_ACEOF
23364 cat confdefs.h >>conftest.$ac_ext
23365 cat >>conftest.$ac_ext <<_ACEOF
23366 /* end confdefs.h. */
23373 char *p = (char *) tzname;
23381 rm -f conftest.$ac_objext
23382 if { (ac_try="$ac_compile"
23383 case "(($ac_try" in
23384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23385 *) ac_try_echo=$ac_try;;
23387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23388 (eval "$ac_compile") 2>conftest.er1
23390 grep -v '^ *+' conftest.er1 >conftest.err
23392 cat conftest.err >&5
23393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23394 (exit $ac_status); } &&
23395 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23396 { (case "(($ac_try" in
23397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23398 *) ac_try_echo=$ac_try;;
23400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23401 (eval "$ac_try") 2>&5
23403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23404 (exit $ac_status); }; } &&
23405 { ac_try='test -s conftest.$ac_objext'
23406 { (case "(($ac_try" in
23407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23408 *) ac_try_echo=$ac_try;;
23410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23411 (eval "$ac_try") 2>&5
23413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23414 (exit $ac_status); }; }; then
23415 ac_cv_have_decl_tzname=yes
23417 echo "$as_me: failed program was:" >&5
23418 sed 's/^/| /' conftest.$ac_ext >&5
23420 ac_cv_have_decl_tzname=no
23423 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23425 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
23426 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
23427 if test $ac_cv_have_decl_tzname = yes; then
23429 cat >>confdefs.h <<_ACEOF
23430 #define HAVE_DECL_TZNAME 1
23435 cat >>confdefs.h <<_ACEOF
23436 #define HAVE_DECL_TZNAME 0
23443 { echo "$as_me:$LINENO: checking for tzname" >&5
23444 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
23445 if test "${ac_cv_var_tzname+set}" = set; then
23446 echo $ECHO_N "(cached) $ECHO_C" >&6
23448 cat >conftest.$ac_ext <<_ACEOF
23451 cat confdefs.h >>conftest.$ac_ext
23452 cat >>conftest.$ac_ext <<_ACEOF
23453 /* end confdefs.h. */
23455 #if !HAVE_DECL_TZNAME
23456 extern char *tzname[];
23462 return tzname[0][0];
23467 rm -f conftest.$ac_objext conftest$ac_exeext
23468 if { (ac_try="$ac_link"
23469 case "(($ac_try" in
23470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23471 *) ac_try_echo=$ac_try;;
23473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23474 (eval "$ac_link") 2>conftest.er1
23476 grep -v '^ *+' conftest.er1 >conftest.err
23478 cat conftest.err >&5
23479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23480 (exit $ac_status); } &&
23481 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
23489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23490 (exit $ac_status); }; } &&
23491 { ac_try='test -s conftest$ac_exeext'
23492 { (case "(($ac_try" in
23493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23494 *) ac_try_echo=$ac_try;;
23496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23497 (eval "$ac_try") 2>&5
23499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23500 (exit $ac_status); }; }; then
23501 ac_cv_var_tzname=yes
23503 echo "$as_me: failed program was:" >&5
23504 sed 's/^/| /' conftest.$ac_ext >&5
23506 ac_cv_var_tzname=no
23509 rm -f core conftest.err conftest.$ac_objext \
23510 conftest$ac_exeext conftest.$ac_ext
23512 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
23513 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
23514 if test $ac_cv_var_tzname = yes; then
23516 cat >>confdefs.h <<\_ACEOF
23517 #define HAVE_TZNAME 1
23524 { echo "$as_me:$LINENO: checking for utime.h" >&5
23525 echo $ECHO_N "checking for utime.h... $ECHO_C" >&6; }
23526 if test "${ba_cv_header_utime_h+set}" = set; then
23527 echo $ECHO_N "(cached) $ECHO_C" >&6
23529 cat >conftest.$ac_ext <<_ACEOF
23532 cat confdefs.h >>conftest.$ac_ext
23533 cat >>conftest.$ac_ext <<_ACEOF
23534 /* end confdefs.h. */
23536 #include <sys/types.h>
23546 rm -f conftest.$ac_objext
23547 if { (ac_try="$ac_compile"
23548 case "(($ac_try" in
23549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23550 *) ac_try_echo=$ac_try;;
23552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23553 (eval "$ac_compile") 2>conftest.er1
23555 grep -v '^ *+' conftest.er1 >conftest.err
23557 cat conftest.err >&5
23558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23559 (exit $ac_status); } &&
23560 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23561 { (case "(($ac_try" in
23562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23563 *) ac_try_echo=$ac_try;;
23565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23566 (eval "$ac_try") 2>&5
23568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23569 (exit $ac_status); }; } &&
23570 { ac_try='test -s conftest.$ac_objext'
23571 { (case "(($ac_try" in
23572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23573 *) ac_try_echo=$ac_try;;
23575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23576 (eval "$ac_try") 2>&5
23578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23579 (exit $ac_status); }; }; then
23580 ba_cv_header_utime_h=yes
23582 echo "$as_me: failed program was:" >&5
23583 sed 's/^/| /' conftest.$ac_ext >&5
23585 ba_cv_header_utime_h=no
23588 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23590 { echo "$as_me:$LINENO: result: $ba_cv_header_utime_h" >&5
23591 echo "${ECHO_T}$ba_cv_header_utime_h" >&6; }
23592 test $ba_cv_header_utime_h = yes && cat >>confdefs.h <<\_ACEOF
23593 #define HAVE_UTIME_H 1
23597 { echo "$as_me:$LINENO: checking for socklen_t" >&5
23598 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
23599 if test "${ba_cv_header_socklen_t+set}" = set; then
23600 echo $ECHO_N "(cached) $ECHO_C" >&6
23602 cat >conftest.$ac_ext <<_ACEOF
23605 cat confdefs.h >>conftest.$ac_ext
23606 cat >>conftest.$ac_ext <<_ACEOF
23607 /* end confdefs.h. */
23609 #include <sys/types.h>
23610 #include <sys/socket.h>
23619 rm -f conftest.$ac_objext
23620 if { (ac_try="$ac_compile"
23621 case "(($ac_try" in
23622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23623 *) ac_try_echo=$ac_try;;
23625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23626 (eval "$ac_compile") 2>conftest.er1
23628 grep -v '^ *+' conftest.er1 >conftest.err
23630 cat conftest.err >&5
23631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23632 (exit $ac_status); } &&
23633 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23634 { (case "(($ac_try" in
23635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23636 *) ac_try_echo=$ac_try;;
23638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23639 (eval "$ac_try") 2>&5
23641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23642 (exit $ac_status); }; } &&
23643 { ac_try='test -s conftest.$ac_objext'
23644 { (case "(($ac_try" in
23645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23646 *) ac_try_echo=$ac_try;;
23648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23649 (eval "$ac_try") 2>&5
23651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23652 (exit $ac_status); }; }; then
23653 ba_cv_header_socklen_t=yes
23655 echo "$as_me: failed program was:" >&5
23656 sed 's/^/| /' conftest.$ac_ext >&5
23658 ba_cv_header_socklen_t=no
23661 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23663 { echo "$as_me:$LINENO: result: $ba_cv_header_socklen_t" >&5
23664 echo "${ECHO_T}$ba_cv_header_socklen_t" >&6; }
23665 test $ba_cv_header_socklen_t = yes && cat >>confdefs.h <<\_ACEOF
23666 #define HAVE_SOCKLEN_T 1
23670 { echo "$as_me:$LINENO: checking for bigendian" >&5
23671 echo $ECHO_N "checking for bigendian... $ECHO_C" >&6; }
23672 if test "${ba_cv_bigendian+set}" = set; then
23673 echo $ECHO_N "(cached) $ECHO_C" >&6
23675 if test "$cross_compiling" = yes; then
23678 cat >conftest.$ac_ext <<_ACEOF
23681 cat confdefs.h >>conftest.$ac_ext
23682 cat >>conftest.$ac_ext <<_ACEOF
23683 /* end confdefs.h. */
23684 main(){long a=1L; char *p=(char *)&a; exit(*p);}
23686 rm -f conftest$ac_exeext
23687 if { (ac_try="$ac_link"
23688 case "(($ac_try" in
23689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23690 *) ac_try_echo=$ac_try;;
23692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23693 (eval "$ac_link") 2>&5
23695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23696 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23697 { (case "(($ac_try" in
23698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23699 *) ac_try_echo=$ac_try;;
23701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23702 (eval "$ac_try") 2>&5
23704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23705 (exit $ac_status); }; }; then
23706 ba_cv_bigendian=yes
23708 echo "$as_me: program exited with status $ac_status" >&5
23709 echo "$as_me: failed program was:" >&5
23710 sed 's/^/| /' conftest.$ac_ext >&5
23712 ( exit $ac_status )
23715 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23720 { echo "$as_me:$LINENO: result: $ba_cv_bigendian" >&5
23721 echo "${ECHO_T}$ba_cv_bigendian" >&6; }
23722 test $ba_cv_bigendian = yes && cat >>confdefs.h <<\_ACEOF
23723 #define HAVE_BIGENDIAN 1
23728 ac_cpp='$CXXCPP $CPPFLAGS'
23729 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23730 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23731 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23734 { echo "$as_me:$LINENO: checking for typeof" >&5
23735 echo $ECHO_N "checking for typeof... $ECHO_C" >&6; }
23736 if test "${ba_cv_have_typeof+set}" = set; then
23737 echo $ECHO_N "(cached) $ECHO_C" >&6
23739 if test "$cross_compiling" = yes; then
23740 ba_cv_have_typeof=no
23742 cat >conftest.$ac_ext <<_ACEOF
23745 cat confdefs.h >>conftest.$ac_ext
23746 cat >>conftest.$ac_ext <<_ACEOF
23747 /* end confdefs.h. */
23748 main(){char *a = 0; a = (typeof a)a;}
23750 rm -f conftest$ac_exeext
23751 if { (ac_try="$ac_link"
23752 case "(($ac_try" in
23753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23754 *) ac_try_echo=$ac_try;;
23756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23757 (eval "$ac_link") 2>&5
23759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23760 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23761 { (case "(($ac_try" in
23762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23763 *) ac_try_echo=$ac_try;;
23765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23766 (eval "$ac_try") 2>&5
23768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23769 (exit $ac_status); }; }; then
23770 ba_cv_have_typeof=yes
23772 echo "$as_me: program exited with status $ac_status" >&5
23773 echo "$as_me: failed program was:" >&5
23774 sed 's/^/| /' conftest.$ac_ext >&5
23776 ( exit $ac_status )
23777 ba_cv_have_typeof=no
23779 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23784 { echo "$as_me:$LINENO: result: $ba_cv_have_typeof" >&5
23785 echo "${ECHO_T}$ba_cv_have_typeof" >&6; }
23786 test $ba_cv_have_typeof = yes &&
23787 cat >>confdefs.h <<\_ACEOF
23788 #define HAVE_TYPEOF 1
23792 ac_cpp='$CPP $CPPFLAGS'
23793 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23794 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23795 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23798 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
23799 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
23800 if test "${ac_cv_c_const+set}" = set; then
23801 echo $ECHO_N "(cached) $ECHO_C" >&6
23803 cat >conftest.$ac_ext <<_ACEOF
23806 cat confdefs.h >>conftest.$ac_ext
23807 cat >>conftest.$ac_ext <<_ACEOF
23808 /* end confdefs.h. */
23813 /* FIXME: Include the comments suggested by Paul. */
23814 #ifndef __cplusplus
23815 /* Ultrix mips cc rejects this. */
23816 typedef int charset[2];
23818 /* SunOS 4.1.1 cc rejects this. */
23819 char const *const *ccp;
23821 /* NEC SVR4.0.2 mips cc rejects this. */
23822 struct point {int x, y;};
23823 static struct point const zero = {0,0};
23824 /* AIX XL C 1.02.0.0 rejects this.
23825 It does not let you subtract one const X* pointer from another in
23826 an arm of an if-expression whose if-part is not a constant
23828 const char *g = "string";
23829 ccp = &g + (g ? g-g : 0);
23830 /* HPUX 7.0 cc rejects these. */
23833 ccp = (char const *const *) p;
23834 { /* SCO 3.2v4 cc rejects this. */
23836 char const *s = 0 ? (char *) 0 : (char const *) 0;
23841 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
23842 int x[] = {25, 17};
23843 const int *foo = &x[0];
23846 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
23847 typedef const int *iptr;
23851 { /* AIX XL C 1.02.0.0 rejects this saying
23852 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
23853 struct s { int j; const int *ap[3]; };
23854 struct s *b; b->j = 5;
23856 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
23857 const int foo = 10;
23858 if (!foo) return 0;
23860 return !x[0] && !zero.x;
23867 rm -f conftest.$ac_objext
23868 if { (ac_try="$ac_compile"
23869 case "(($ac_try" in
23870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23871 *) ac_try_echo=$ac_try;;
23873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23874 (eval "$ac_compile") 2>conftest.er1
23876 grep -v '^ *+' conftest.er1 >conftest.err
23878 cat conftest.err >&5
23879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23880 (exit $ac_status); } &&
23881 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23882 { (case "(($ac_try" in
23883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23884 *) ac_try_echo=$ac_try;;
23886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23887 (eval "$ac_try") 2>&5
23889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23890 (exit $ac_status); }; } &&
23891 { ac_try='test -s conftest.$ac_objext'
23892 { (case "(($ac_try" in
23893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23894 *) ac_try_echo=$ac_try;;
23896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23897 (eval "$ac_try") 2>&5
23899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23900 (exit $ac_status); }; }; then
23903 echo "$as_me: failed program was:" >&5
23904 sed 's/^/| /' conftest.$ac_ext >&5
23909 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23911 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
23912 echo "${ECHO_T}$ac_cv_c_const" >&6; }
23913 if test $ac_cv_c_const = no; then
23915 cat >>confdefs.h <<\_ACEOF
23923 { echo "$as_me:$LINENO: checking how to get filesystem type" >&5
23924 echo $ECHO_N "checking how to get filesystem type... $ECHO_C" >&6; }
23926 # The order of these tests is important.
23927 cat >conftest.$ac_ext <<_ACEOF
23930 cat confdefs.h >>conftest.$ac_ext
23931 cat >>conftest.$ac_ext <<_ACEOF
23932 /* end confdefs.h. */
23933 #include <sys/statvfs.h>
23934 #include <sys/fstyp.h>
23936 if { (ac_try="$ac_cpp conftest.$ac_ext"
23937 case "(($ac_try" in
23938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23939 *) ac_try_echo=$ac_try;;
23941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23942 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23944 grep -v '^ *+' conftest.er1 >conftest.err
23946 cat conftest.err >&5
23947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23948 (exit $ac_status); } >/dev/null; then
23949 if test -s conftest.err; then
23950 ac_cpp_err=$ac_c_preproc_warn_flag
23951 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23958 if test -z "$ac_cpp_err"; then
23959 cat >>confdefs.h <<\_ACEOF
23960 #define FSTYPE_STATVFS 1
23964 echo "$as_me: failed program was:" >&5
23965 sed 's/^/| /' conftest.$ac_ext >&5
23970 rm -f conftest.err conftest.$ac_ext
23971 if test $fstype = no; then
23972 cat >conftest.$ac_ext <<_ACEOF
23975 cat confdefs.h >>conftest.$ac_ext
23976 cat >>conftest.$ac_ext <<_ACEOF
23977 /* end confdefs.h. */
23978 #include <sys/statfs.h>
23979 #include <sys/fstyp.h>
23981 if { (ac_try="$ac_cpp conftest.$ac_ext"
23982 case "(($ac_try" in
23983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23984 *) ac_try_echo=$ac_try;;
23986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23987 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23989 grep -v '^ *+' conftest.er1 >conftest.err
23991 cat conftest.err >&5
23992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23993 (exit $ac_status); } >/dev/null; then
23994 if test -s conftest.err; then
23995 ac_cpp_err=$ac_c_preproc_warn_flag
23996 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
24003 if test -z "$ac_cpp_err"; then
24004 cat >>confdefs.h <<\_ACEOF
24005 #define FSTYPE_USG_STATFS 1
24009 echo "$as_me: failed program was:" >&5
24010 sed 's/^/| /' conftest.$ac_ext >&5
24015 rm -f conftest.err conftest.$ac_ext
24017 if test $fstype = no; then
24018 cat >conftest.$ac_ext <<_ACEOF
24021 cat confdefs.h >>conftest.$ac_ext
24022 cat >>conftest.$ac_ext <<_ACEOF
24023 /* end confdefs.h. */
24024 #include <sys/statfs.h>
24025 #include <sys/vmount.h>
24027 if { (ac_try="$ac_cpp conftest.$ac_ext"
24028 case "(($ac_try" in
24029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24030 *) ac_try_echo=$ac_try;;
24032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24033 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24035 grep -v '^ *+' conftest.er1 >conftest.err
24037 cat conftest.err >&5
24038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24039 (exit $ac_status); } >/dev/null; then
24040 if test -s conftest.err; then
24041 ac_cpp_err=$ac_c_preproc_warn_flag
24042 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
24049 if test -z "$ac_cpp_err"; then
24050 cat >>confdefs.h <<\_ACEOF
24051 #define FSTYPE_AIX_STATFS 1
24055 echo "$as_me: failed program was:" >&5
24056 sed 's/^/| /' conftest.$ac_ext >&5
24061 rm -f conftest.err conftest.$ac_ext
24063 if test $fstype = no; then
24064 cat >conftest.$ac_ext <<_ACEOF
24067 cat confdefs.h >>conftest.$ac_ext
24068 cat >>conftest.$ac_ext <<_ACEOF
24069 /* end confdefs.h. */
24070 #include <mntent.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_MNTENT 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 if test $fstype = no; then
24109 cat >conftest.$ac_ext <<_ACEOF
24112 cat confdefs.h >>conftest.$ac_ext
24113 cat >>conftest.$ac_ext <<_ACEOF
24114 /* end confdefs.h. */
24115 #include <sys/mount.h>
24118 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24119 $EGREP "f_type;" >/dev/null 2>&1; then
24120 cat >>confdefs.h <<\_ACEOF
24121 #define FSTYPE_STATFS 1
24128 if test $fstype = no; then
24129 cat >conftest.$ac_ext <<_ACEOF
24132 cat confdefs.h >>conftest.$ac_ext
24133 cat >>conftest.$ac_ext <<_ACEOF
24134 /* end confdefs.h. */
24135 #include <sys/mount.h>
24136 #include <sys/fs_types.h>
24138 if { (ac_try="$ac_cpp conftest.$ac_ext"
24139 case "(($ac_try" in
24140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24141 *) ac_try_echo=$ac_try;;
24143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24144 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24146 grep -v '^ *+' conftest.er1 >conftest.err
24148 cat conftest.err >&5
24149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24150 (exit $ac_status); } >/dev/null; then
24151 if test -s conftest.err; then
24152 ac_cpp_err=$ac_c_preproc_warn_flag
24153 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
24160 if test -z "$ac_cpp_err"; then
24161 cat >>confdefs.h <<\_ACEOF
24162 #define FSTYPE_GETMNT 1
24166 echo "$as_me: failed program was:" >&5
24167 sed 's/^/| /' conftest.$ac_ext >&5
24172 rm -f conftest.err conftest.$ac_ext
24174 { echo "$as_me:$LINENO: result: $fstype" >&5
24175 echo "${ECHO_T}$fstype" >&6; }
24177 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
24178 { echo "$as_me:$LINENO: checking for sys/statvfs.h" >&5
24179 echo $ECHO_N "checking for sys/statvfs.h... $ECHO_C" >&6; }
24180 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
24181 echo $ECHO_N "(cached) $ECHO_C" >&6
24183 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_statvfs_h" >&5
24184 echo "${ECHO_T}$ac_cv_header_sys_statvfs_h" >&6; }
24186 # Is the header compilable?
24187 { echo "$as_me:$LINENO: checking sys/statvfs.h usability" >&5
24188 echo $ECHO_N "checking sys/statvfs.h usability... $ECHO_C" >&6; }
24189 cat >conftest.$ac_ext <<_ACEOF
24192 cat confdefs.h >>conftest.$ac_ext
24193 cat >>conftest.$ac_ext <<_ACEOF
24194 /* end confdefs.h. */
24195 $ac_includes_default
24196 #include <sys/statvfs.h>
24198 rm -f conftest.$ac_objext
24199 if { (ac_try="$ac_compile"
24200 case "(($ac_try" in
24201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24202 *) ac_try_echo=$ac_try;;
24204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24205 (eval "$ac_compile") 2>conftest.er1
24207 grep -v '^ *+' conftest.er1 >conftest.err
24209 cat conftest.err >&5
24210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24211 (exit $ac_status); } &&
24212 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24213 { (case "(($ac_try" in
24214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24215 *) ac_try_echo=$ac_try;;
24217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24218 (eval "$ac_try") 2>&5
24220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24221 (exit $ac_status); }; } &&
24222 { ac_try='test -s conftest.$ac_objext'
24223 { (case "(($ac_try" in
24224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24225 *) ac_try_echo=$ac_try;;
24227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24228 (eval "$ac_try") 2>&5
24230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24231 (exit $ac_status); }; }; then
24232 ac_header_compiler=yes
24234 echo "$as_me: failed program was:" >&5
24235 sed 's/^/| /' conftest.$ac_ext >&5
24237 ac_header_compiler=no
24240 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24241 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24242 echo "${ECHO_T}$ac_header_compiler" >&6; }
24244 # Is the header present?
24245 { echo "$as_me:$LINENO: checking sys/statvfs.h presence" >&5
24246 echo $ECHO_N "checking sys/statvfs.h presence... $ECHO_C" >&6; }
24247 cat >conftest.$ac_ext <<_ACEOF
24250 cat confdefs.h >>conftest.$ac_ext
24251 cat >>conftest.$ac_ext <<_ACEOF
24252 /* end confdefs.h. */
24253 #include <sys/statvfs.h>
24255 if { (ac_try="$ac_cpp conftest.$ac_ext"
24256 case "(($ac_try" in
24257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24258 *) ac_try_echo=$ac_try;;
24260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24261 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24263 grep -v '^ *+' conftest.er1 >conftest.err
24265 cat conftest.err >&5
24266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24267 (exit $ac_status); } >/dev/null; then
24268 if test -s conftest.err; then
24269 ac_cpp_err=$ac_c_preproc_warn_flag
24270 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
24277 if test -z "$ac_cpp_err"; then
24278 ac_header_preproc=yes
24280 echo "$as_me: failed program was:" >&5
24281 sed 's/^/| /' conftest.$ac_ext >&5
24283 ac_header_preproc=no
24286 rm -f conftest.err conftest.$ac_ext
24287 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24288 echo "${ECHO_T}$ac_header_preproc" >&6; }
24290 # So? What about this header?
24291 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24293 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: accepted by the compiler, rejected by the preprocessor!" >&5
24294 echo "$as_me: WARNING: sys/statvfs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24295 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: proceeding with the compiler's result" >&5
24296 echo "$as_me: WARNING: sys/statvfs.h: proceeding with the compiler's result" >&2;}
24297 ac_header_preproc=yes
24300 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: present but cannot be compiled" >&5
24301 echo "$as_me: WARNING: sys/statvfs.h: present but cannot be compiled" >&2;}
24302 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: check for missing prerequisite headers?" >&5
24303 echo "$as_me: WARNING: sys/statvfs.h: check for missing prerequisite headers?" >&2;}
24304 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: see the Autoconf documentation" >&5
24305 echo "$as_me: WARNING: sys/statvfs.h: see the Autoconf documentation" >&2;}
24306 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: section \"Present But Cannot Be Compiled\"" >&5
24307 echo "$as_me: WARNING: sys/statvfs.h: section \"Present But Cannot Be Compiled\"" >&2;}
24308 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: proceeding with the preprocessor's result" >&5
24309 echo "$as_me: WARNING: sys/statvfs.h: proceeding with the preprocessor's result" >&2;}
24310 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: in the future, the compiler will take precedence" >&5
24311 echo "$as_me: WARNING: sys/statvfs.h: in the future, the compiler will take precedence" >&2;}
24315 { echo "$as_me:$LINENO: checking for sys/statvfs.h" >&5
24316 echo $ECHO_N "checking for sys/statvfs.h... $ECHO_C" >&6; }
24317 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
24318 echo $ECHO_N "(cached) $ECHO_C" >&6
24320 ac_cv_header_sys_statvfs_h=$ac_header_preproc
24322 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_statvfs_h" >&5
24323 echo "${ECHO_T}$ac_cv_header_sys_statvfs_h" >&6; }
24326 if test $ac_cv_header_sys_statvfs_h = yes; then
24328 cat >>confdefs.h <<\_ACEOF
24329 #define HAVE_SYS_STATVFS_H 1
24336 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
24337 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
24338 if test "${ac_cv_type_signal+set}" = set; then
24339 echo $ECHO_N "(cached) $ECHO_C" >&6
24341 cat >conftest.$ac_ext <<_ACEOF
24344 cat confdefs.h >>conftest.$ac_ext
24345 cat >>conftest.$ac_ext <<_ACEOF
24346 /* end confdefs.h. */
24347 #include <sys/types.h>
24348 #include <signal.h>
24353 return *(signal (0, 0)) (0) == 1;
24358 rm -f conftest.$ac_objext
24359 if { (ac_try="$ac_compile"
24360 case "(($ac_try" in
24361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24362 *) ac_try_echo=$ac_try;;
24364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24365 (eval "$ac_compile") 2>conftest.er1
24367 grep -v '^ *+' conftest.er1 >conftest.err
24369 cat conftest.err >&5
24370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24371 (exit $ac_status); } &&
24372 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24373 { (case "(($ac_try" in
24374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24375 *) ac_try_echo=$ac_try;;
24377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24378 (eval "$ac_try") 2>&5
24380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24381 (exit $ac_status); }; } &&
24382 { ac_try='test -s conftest.$ac_objext'
24383 { (case "(($ac_try" in
24384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24385 *) ac_try_echo=$ac_try;;
24387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24388 (eval "$ac_try") 2>&5
24390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24391 (exit $ac_status); }; }; then
24392 ac_cv_type_signal=int
24394 echo "$as_me: failed program was:" >&5
24395 sed 's/^/| /' conftest.$ac_ext >&5
24397 ac_cv_type_signal=void
24400 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24402 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
24403 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
24405 cat >>confdefs.h <<_ACEOF
24406 #define RETSIGTYPE $ac_cv_type_signal
24411 { echo "$as_me:$LINENO: checking for type of signal functions" >&5
24412 echo $ECHO_N "checking for type of signal functions... $ECHO_C" >&6; }
24413 if test "${bash_cv_signal_vintage+set}" = set; then
24414 echo $ECHO_N "(cached) $ECHO_C" >&6
24417 cat >conftest.$ac_ext <<_ACEOF
24420 cat confdefs.h >>conftest.$ac_ext
24421 cat >>conftest.$ac_ext <<_ACEOF
24422 /* end confdefs.h. */
24423 #include <signal.h>
24429 struct sigaction sa;
24430 sigemptyset(&ss); sigsuspend(&ss);
24431 sigaction(SIGINT, &sa, (struct sigaction *) 0);
24432 sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
24438 rm -f conftest.$ac_objext conftest$ac_exeext
24439 if { (ac_try="$ac_link"
24440 case "(($ac_try" in
24441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24442 *) ac_try_echo=$ac_try;;
24444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24445 (eval "$ac_link") 2>conftest.er1
24447 grep -v '^ *+' conftest.er1 >conftest.err
24449 cat conftest.err >&5
24450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24451 (exit $ac_status); } &&
24452 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24453 { (case "(($ac_try" in
24454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24455 *) ac_try_echo=$ac_try;;
24457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24458 (eval "$ac_try") 2>&5
24460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24461 (exit $ac_status); }; } &&
24462 { ac_try='test -s conftest$ac_exeext'
24463 { (case "(($ac_try" in
24464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24465 *) ac_try_echo=$ac_try;;
24467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24468 (eval "$ac_try") 2>&5
24470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24471 (exit $ac_status); }; }; then
24472 bash_cv_signal_vintage="posix"
24474 echo "$as_me: failed program was:" >&5
24475 sed 's/^/| /' conftest.$ac_ext >&5
24478 cat >conftest.$ac_ext <<_ACEOF
24481 cat confdefs.h >>conftest.$ac_ext
24482 cat >>conftest.$ac_ext <<_ACEOF
24483 /* end confdefs.h. */
24484 #include <signal.h>
24489 int mask = sigmask(SIGINT);
24490 sigsetmask(mask); sigblock(mask); sigpause(mask);
24496 rm -f conftest.$ac_objext conftest$ac_exeext
24497 if { (ac_try="$ac_link"
24498 case "(($ac_try" in
24499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24500 *) ac_try_echo=$ac_try;;
24502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24503 (eval "$ac_link") 2>conftest.er1
24505 grep -v '^ *+' conftest.er1 >conftest.err
24507 cat conftest.err >&5
24508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24509 (exit $ac_status); } &&
24510 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24511 { (case "(($ac_try" in
24512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24513 *) ac_try_echo=$ac_try;;
24515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24516 (eval "$ac_try") 2>&5
24518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24519 (exit $ac_status); }; } &&
24520 { ac_try='test -s conftest$ac_exeext'
24521 { (case "(($ac_try" in
24522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24523 *) ac_try_echo=$ac_try;;
24525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24526 (eval "$ac_try") 2>&5
24528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24529 (exit $ac_status); }; }; then
24530 bash_cv_signal_vintage="4.2bsd"
24532 echo "$as_me: failed program was:" >&5
24533 sed 's/^/| /' conftest.$ac_ext >&5
24536 cat >conftest.$ac_ext <<_ACEOF
24539 cat confdefs.h >>conftest.$ac_ext
24540 cat >>conftest.$ac_ext <<_ACEOF
24541 /* end confdefs.h. */
24543 #include <signal.h>
24544 RETSIGTYPE foo() { }
24549 int mask = sigmask(SIGINT);
24550 sigset(SIGINT, foo); sigrelse(SIGINT);
24551 sighold(SIGINT); sigpause(SIGINT);
24557 rm -f conftest.$ac_objext conftest$ac_exeext
24558 if { (ac_try="$ac_link"
24559 case "(($ac_try" in
24560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24561 *) ac_try_echo=$ac_try;;
24563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24564 (eval "$ac_link") 2>conftest.er1
24566 grep -v '^ *+' conftest.er1 >conftest.err
24568 cat conftest.err >&5
24569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24570 (exit $ac_status); } &&
24571 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24572 { (case "(($ac_try" in
24573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24574 *) ac_try_echo=$ac_try;;
24576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24577 (eval "$ac_try") 2>&5
24579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24580 (exit $ac_status); }; } &&
24581 { ac_try='test -s conftest$ac_exeext'
24582 { (case "(($ac_try" in
24583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24584 *) ac_try_echo=$ac_try;;
24586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24587 (eval "$ac_try") 2>&5
24589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24590 (exit $ac_status); }; }; then
24591 bash_cv_signal_vintage="svr3"
24593 echo "$as_me: failed program was:" >&5
24594 sed 's/^/| /' conftest.$ac_ext >&5
24596 bash_cv_signal_vintage="v7"
24600 rm -f core conftest.err conftest.$ac_objext \
24601 conftest$ac_exeext conftest.$ac_ext
24605 rm -f core conftest.err conftest.$ac_objext \
24606 conftest$ac_exeext conftest.$ac_ext
24610 rm -f core conftest.err conftest.$ac_objext \
24611 conftest$ac_exeext conftest.$ac_ext
24615 { echo "$as_me:$LINENO: result: $bash_cv_signal_vintage" >&5
24616 echo "${ECHO_T}$bash_cv_signal_vintage" >&6; }
24617 if test "$bash_cv_signal_vintage" = "posix"; then
24618 cat >>confdefs.h <<\_ACEOF
24619 #define HAVE_POSIX_SIGNALS 1
24622 elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
24623 cat >>confdefs.h <<\_ACEOF
24624 #define HAVE_BSD_SIGNALS 1
24627 elif test "$bash_cv_signal_vintage" = "svr3"; then
24628 cat >>confdefs.h <<\_ACEOF
24629 #define HAVE_USG_SIGHOLD 1
24634 { echo "$as_me:$LINENO: checking for mode_t" >&5
24635 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
24636 if test "${ac_cv_type_mode_t+set}" = set; then
24637 echo $ECHO_N "(cached) $ECHO_C" >&6
24639 cat >conftest.$ac_ext <<_ACEOF
24642 cat confdefs.h >>conftest.$ac_ext
24643 cat >>conftest.$ac_ext <<_ACEOF
24644 /* end confdefs.h. */
24645 $ac_includes_default
24646 typedef mode_t ac__type_new_;
24650 if ((ac__type_new_ *) 0)
24652 if (sizeof (ac__type_new_))
24658 rm -f conftest.$ac_objext
24659 if { (ac_try="$ac_compile"
24660 case "(($ac_try" in
24661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24662 *) ac_try_echo=$ac_try;;
24664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24665 (eval "$ac_compile") 2>conftest.er1
24667 grep -v '^ *+' conftest.er1 >conftest.err
24669 cat conftest.err >&5
24670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24671 (exit $ac_status); } &&
24672 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24673 { (case "(($ac_try" in
24674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24675 *) ac_try_echo=$ac_try;;
24677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24678 (eval "$ac_try") 2>&5
24680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24681 (exit $ac_status); }; } &&
24682 { ac_try='test -s conftest.$ac_objext'
24683 { (case "(($ac_try" in
24684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24685 *) ac_try_echo=$ac_try;;
24687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24688 (eval "$ac_try") 2>&5
24690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24691 (exit $ac_status); }; }; then
24692 ac_cv_type_mode_t=yes
24694 echo "$as_me: failed program was:" >&5
24695 sed 's/^/| /' conftest.$ac_ext >&5
24697 ac_cv_type_mode_t=no
24700 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24702 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
24703 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
24704 if test $ac_cv_type_mode_t = yes; then
24708 cat >>confdefs.h <<_ACEOF
24714 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
24715 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
24716 if test "${ac_cv_type_uid_t+set}" = set; then
24717 echo $ECHO_N "(cached) $ECHO_C" >&6
24719 cat >conftest.$ac_ext <<_ACEOF
24722 cat confdefs.h >>conftest.$ac_ext
24723 cat >>conftest.$ac_ext <<_ACEOF
24724 /* end confdefs.h. */
24725 #include <sys/types.h>
24728 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24729 $EGREP "uid_t" >/dev/null 2>&1; then
24730 ac_cv_type_uid_t=yes
24732 ac_cv_type_uid_t=no
24737 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
24738 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
24739 if test $ac_cv_type_uid_t = no; then
24741 cat >>confdefs.h <<\_ACEOF
24746 cat >>confdefs.h <<\_ACEOF
24752 { echo "$as_me:$LINENO: checking for size_t" >&5
24753 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
24754 if test "${ac_cv_type_size_t+set}" = set; then
24755 echo $ECHO_N "(cached) $ECHO_C" >&6
24757 cat >conftest.$ac_ext <<_ACEOF
24760 cat confdefs.h >>conftest.$ac_ext
24761 cat >>conftest.$ac_ext <<_ACEOF
24762 /* end confdefs.h. */
24763 $ac_includes_default
24764 typedef size_t ac__type_new_;
24768 if ((ac__type_new_ *) 0)
24770 if (sizeof (ac__type_new_))
24776 rm -f conftest.$ac_objext
24777 if { (ac_try="$ac_compile"
24778 case "(($ac_try" in
24779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24780 *) ac_try_echo=$ac_try;;
24782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24783 (eval "$ac_compile") 2>conftest.er1
24785 grep -v '^ *+' conftest.er1 >conftest.err
24787 cat conftest.err >&5
24788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24789 (exit $ac_status); } &&
24790 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24791 { (case "(($ac_try" in
24792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24793 *) ac_try_echo=$ac_try;;
24795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24796 (eval "$ac_try") 2>&5
24798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24799 (exit $ac_status); }; } &&
24800 { ac_try='test -s conftest.$ac_objext'
24801 { (case "(($ac_try" in
24802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24803 *) ac_try_echo=$ac_try;;
24805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24806 (eval "$ac_try") 2>&5
24808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24809 (exit $ac_status); }; }; then
24810 ac_cv_type_size_t=yes
24812 echo "$as_me: failed program was:" >&5
24813 sed 's/^/| /' conftest.$ac_ext >&5
24815 ac_cv_type_size_t=no
24818 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24820 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
24821 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
24822 if test $ac_cv_type_size_t = yes; then
24826 cat >>confdefs.h <<_ACEOF
24827 #define size_t unsigned int
24832 { echo "$as_me:$LINENO: checking for pid_t" >&5
24833 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
24834 if test "${ac_cv_type_pid_t+set}" = set; then
24835 echo $ECHO_N "(cached) $ECHO_C" >&6
24837 cat >conftest.$ac_ext <<_ACEOF
24840 cat confdefs.h >>conftest.$ac_ext
24841 cat >>conftest.$ac_ext <<_ACEOF
24842 /* end confdefs.h. */
24843 $ac_includes_default
24844 typedef pid_t ac__type_new_;
24848 if ((ac__type_new_ *) 0)
24850 if (sizeof (ac__type_new_))
24856 rm -f conftest.$ac_objext
24857 if { (ac_try="$ac_compile"
24858 case "(($ac_try" in
24859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24860 *) ac_try_echo=$ac_try;;
24862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24863 (eval "$ac_compile") 2>conftest.er1
24865 grep -v '^ *+' conftest.er1 >conftest.err
24867 cat conftest.err >&5
24868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24869 (exit $ac_status); } &&
24870 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24871 { (case "(($ac_try" in
24872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24873 *) ac_try_echo=$ac_try;;
24875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24876 (eval "$ac_try") 2>&5
24878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24879 (exit $ac_status); }; } &&
24880 { ac_try='test -s conftest.$ac_objext'
24881 { (case "(($ac_try" in
24882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24883 *) ac_try_echo=$ac_try;;
24885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24886 (eval "$ac_try") 2>&5
24888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24889 (exit $ac_status); }; }; then
24890 ac_cv_type_pid_t=yes
24892 echo "$as_me: failed program was:" >&5
24893 sed 's/^/| /' conftest.$ac_ext >&5
24895 ac_cv_type_pid_t=no
24898 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24900 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
24901 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
24902 if test $ac_cv_type_pid_t = yes; then
24906 cat >>confdefs.h <<_ACEOF
24912 { echo "$as_me:$LINENO: checking for off_t" >&5
24913 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
24914 if test "${ac_cv_type_off_t+set}" = set; then
24915 echo $ECHO_N "(cached) $ECHO_C" >&6
24917 cat >conftest.$ac_ext <<_ACEOF
24920 cat confdefs.h >>conftest.$ac_ext
24921 cat >>conftest.$ac_ext <<_ACEOF
24922 /* end confdefs.h. */
24923 $ac_includes_default
24924 typedef off_t ac__type_new_;
24928 if ((ac__type_new_ *) 0)
24930 if (sizeof (ac__type_new_))
24936 rm -f conftest.$ac_objext
24937 if { (ac_try="$ac_compile"
24938 case "(($ac_try" in
24939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24940 *) ac_try_echo=$ac_try;;
24942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24943 (eval "$ac_compile") 2>conftest.er1
24945 grep -v '^ *+' conftest.er1 >conftest.err
24947 cat conftest.err >&5
24948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24949 (exit $ac_status); } &&
24950 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24951 { (case "(($ac_try" in
24952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24953 *) ac_try_echo=$ac_try;;
24955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24956 (eval "$ac_try") 2>&5
24958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24959 (exit $ac_status); }; } &&
24960 { ac_try='test -s conftest.$ac_objext'
24961 { (case "(($ac_try" in
24962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24963 *) ac_try_echo=$ac_try;;
24965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24966 (eval "$ac_try") 2>&5
24968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24969 (exit $ac_status); }; }; then
24970 ac_cv_type_off_t=yes
24972 echo "$as_me: failed program was:" >&5
24973 sed 's/^/| /' conftest.$ac_ext >&5
24975 ac_cv_type_off_t=no
24978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24980 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
24981 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
24982 if test $ac_cv_type_off_t = yes; then
24986 cat >>confdefs.h <<_ACEOF
24987 #define off_t long int
24992 { echo "$as_me:$LINENO: checking for ino_t" >&5
24993 echo $ECHO_N "checking for ino_t... $ECHO_C" >&6; }
24994 if test "${ac_cv_type_ino_t+set}" = set; then
24995 echo $ECHO_N "(cached) $ECHO_C" >&6
24997 cat >conftest.$ac_ext <<_ACEOF
25000 cat confdefs.h >>conftest.$ac_ext
25001 cat >>conftest.$ac_ext <<_ACEOF
25002 /* end confdefs.h. */
25003 $ac_includes_default
25004 typedef ino_t ac__type_new_;
25008 if ((ac__type_new_ *) 0)
25010 if (sizeof (ac__type_new_))
25016 rm -f conftest.$ac_objext
25017 if { (ac_try="$ac_compile"
25018 case "(($ac_try" in
25019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25020 *) ac_try_echo=$ac_try;;
25022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25023 (eval "$ac_compile") 2>conftest.er1
25025 grep -v '^ *+' conftest.er1 >conftest.err
25027 cat conftest.err >&5
25028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25029 (exit $ac_status); } &&
25030 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25031 { (case "(($ac_try" in
25032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25033 *) ac_try_echo=$ac_try;;
25035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25036 (eval "$ac_try") 2>&5
25038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25039 (exit $ac_status); }; } &&
25040 { ac_try='test -s conftest.$ac_objext'
25041 { (case "(($ac_try" in
25042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25043 *) ac_try_echo=$ac_try;;
25045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25046 (eval "$ac_try") 2>&5
25048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25049 (exit $ac_status); }; }; then
25050 ac_cv_type_ino_t=yes
25052 echo "$as_me: failed program was:" >&5
25053 sed 's/^/| /' conftest.$ac_ext >&5
25055 ac_cv_type_ino_t=no
25058 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25060 { echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
25061 echo "${ECHO_T}$ac_cv_type_ino_t" >&6; }
25062 if test $ac_cv_type_ino_t = yes; then
25066 cat >>confdefs.h <<_ACEOF
25067 #define ino_t unsigned long
25072 { echo "$as_me:$LINENO: checking for dev_t" >&5
25073 echo $ECHO_N "checking for dev_t... $ECHO_C" >&6; }
25074 if test "${ac_cv_type_dev_t+set}" = set; then
25075 echo $ECHO_N "(cached) $ECHO_C" >&6
25077 cat >conftest.$ac_ext <<_ACEOF
25080 cat confdefs.h >>conftest.$ac_ext
25081 cat >>conftest.$ac_ext <<_ACEOF
25082 /* end confdefs.h. */
25083 $ac_includes_default
25084 typedef dev_t ac__type_new_;
25088 if ((ac__type_new_ *) 0)
25090 if (sizeof (ac__type_new_))
25096 rm -f conftest.$ac_objext
25097 if { (ac_try="$ac_compile"
25098 case "(($ac_try" in
25099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25100 *) ac_try_echo=$ac_try;;
25102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25103 (eval "$ac_compile") 2>conftest.er1
25105 grep -v '^ *+' conftest.er1 >conftest.err
25107 cat conftest.err >&5
25108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25109 (exit $ac_status); } &&
25110 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25111 { (case "(($ac_try" in
25112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25113 *) ac_try_echo=$ac_try;;
25115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25116 (eval "$ac_try") 2>&5
25118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25119 (exit $ac_status); }; } &&
25120 { ac_try='test -s conftest.$ac_objext'
25121 { (case "(($ac_try" in
25122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25123 *) ac_try_echo=$ac_try;;
25125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25126 (eval "$ac_try") 2>&5
25128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25129 (exit $ac_status); }; }; then
25130 ac_cv_type_dev_t=yes
25132 echo "$as_me: failed program was:" >&5
25133 sed 's/^/| /' conftest.$ac_ext >&5
25135 ac_cv_type_dev_t=no
25138 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25140 { echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5
25141 echo "${ECHO_T}$ac_cv_type_dev_t" >&6; }
25142 if test $ac_cv_type_dev_t = yes; then
25146 cat >>confdefs.h <<_ACEOF
25147 #define dev_t unsigned long
25152 { echo "$as_me:$LINENO: checking for daddr_t" >&5
25153 echo $ECHO_N "checking for daddr_t... $ECHO_C" >&6; }
25154 if test "${ac_cv_type_daddr_t+set}" = set; then
25155 echo $ECHO_N "(cached) $ECHO_C" >&6
25157 cat >conftest.$ac_ext <<_ACEOF
25160 cat confdefs.h >>conftest.$ac_ext
25161 cat >>conftest.$ac_ext <<_ACEOF
25162 /* end confdefs.h. */
25163 $ac_includes_default
25164 typedef daddr_t ac__type_new_;
25168 if ((ac__type_new_ *) 0)
25170 if (sizeof (ac__type_new_))
25176 rm -f conftest.$ac_objext
25177 if { (ac_try="$ac_compile"
25178 case "(($ac_try" in
25179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25180 *) ac_try_echo=$ac_try;;
25182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25183 (eval "$ac_compile") 2>conftest.er1
25185 grep -v '^ *+' conftest.er1 >conftest.err
25187 cat conftest.err >&5
25188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25189 (exit $ac_status); } &&
25190 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25191 { (case "(($ac_try" in
25192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25193 *) ac_try_echo=$ac_try;;
25195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25196 (eval "$ac_try") 2>&5
25198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25199 (exit $ac_status); }; } &&
25200 { ac_try='test -s conftest.$ac_objext'
25201 { (case "(($ac_try" in
25202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25203 *) ac_try_echo=$ac_try;;
25205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25206 (eval "$ac_try") 2>&5
25208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25209 (exit $ac_status); }; }; then
25210 ac_cv_type_daddr_t=yes
25212 echo "$as_me: failed program was:" >&5
25213 sed 's/^/| /' conftest.$ac_ext >&5
25215 ac_cv_type_daddr_t=no
25218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25220 { echo "$as_me:$LINENO: result: $ac_cv_type_daddr_t" >&5
25221 echo "${ECHO_T}$ac_cv_type_daddr_t" >&6; }
25222 if test $ac_cv_type_daddr_t = yes; then
25226 cat >>confdefs.h <<_ACEOF
25227 #define daddr_t long
25232 { echo "$as_me:$LINENO: checking for major_t" >&5
25233 echo $ECHO_N "checking for major_t... $ECHO_C" >&6; }
25234 if test "${ac_cv_type_major_t+set}" = set; then
25235 echo $ECHO_N "(cached) $ECHO_C" >&6
25237 cat >conftest.$ac_ext <<_ACEOF
25240 cat confdefs.h >>conftest.$ac_ext
25241 cat >>conftest.$ac_ext <<_ACEOF
25242 /* end confdefs.h. */
25243 $ac_includes_default
25244 typedef major_t ac__type_new_;
25248 if ((ac__type_new_ *) 0)
25250 if (sizeof (ac__type_new_))
25256 rm -f conftest.$ac_objext
25257 if { (ac_try="$ac_compile"
25258 case "(($ac_try" in
25259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25260 *) ac_try_echo=$ac_try;;
25262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25263 (eval "$ac_compile") 2>conftest.er1
25265 grep -v '^ *+' conftest.er1 >conftest.err
25267 cat conftest.err >&5
25268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25269 (exit $ac_status); } &&
25270 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25271 { (case "(($ac_try" in
25272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25273 *) ac_try_echo=$ac_try;;
25275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25276 (eval "$ac_try") 2>&5
25278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25279 (exit $ac_status); }; } &&
25280 { ac_try='test -s conftest.$ac_objext'
25281 { (case "(($ac_try" in
25282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25283 *) ac_try_echo=$ac_try;;
25285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25286 (eval "$ac_try") 2>&5
25288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25289 (exit $ac_status); }; }; then
25290 ac_cv_type_major_t=yes
25292 echo "$as_me: failed program was:" >&5
25293 sed 's/^/| /' conftest.$ac_ext >&5
25295 ac_cv_type_major_t=no
25298 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25300 { echo "$as_me:$LINENO: result: $ac_cv_type_major_t" >&5
25301 echo "${ECHO_T}$ac_cv_type_major_t" >&6; }
25302 if test $ac_cv_type_major_t = yes; then
25306 cat >>confdefs.h <<_ACEOF
25307 #define major_t int
25312 { echo "$as_me:$LINENO: checking for minor_t" >&5
25313 echo $ECHO_N "checking for minor_t... $ECHO_C" >&6; }
25314 if test "${ac_cv_type_minor_t+set}" = set; then
25315 echo $ECHO_N "(cached) $ECHO_C" >&6
25317 cat >conftest.$ac_ext <<_ACEOF
25320 cat confdefs.h >>conftest.$ac_ext
25321 cat >>conftest.$ac_ext <<_ACEOF
25322 /* end confdefs.h. */
25323 $ac_includes_default
25324 typedef minor_t ac__type_new_;
25328 if ((ac__type_new_ *) 0)
25330 if (sizeof (ac__type_new_))
25336 rm -f conftest.$ac_objext
25337 if { (ac_try="$ac_compile"
25338 case "(($ac_try" in
25339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25340 *) ac_try_echo=$ac_try;;
25342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25343 (eval "$ac_compile") 2>conftest.er1
25345 grep -v '^ *+' conftest.er1 >conftest.err
25347 cat conftest.err >&5
25348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25349 (exit $ac_status); } &&
25350 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25351 { (case "(($ac_try" in
25352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25353 *) ac_try_echo=$ac_try;;
25355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25356 (eval "$ac_try") 2>&5
25358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25359 (exit $ac_status); }; } &&
25360 { ac_try='test -s conftest.$ac_objext'
25361 { (case "(($ac_try" in
25362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25363 *) ac_try_echo=$ac_try;;
25365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25366 (eval "$ac_try") 2>&5
25368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25369 (exit $ac_status); }; }; then
25370 ac_cv_type_minor_t=yes
25372 echo "$as_me: failed program was:" >&5
25373 sed 's/^/| /' conftest.$ac_ext >&5
25375 ac_cv_type_minor_t=no
25378 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25380 { echo "$as_me:$LINENO: result: $ac_cv_type_minor_t" >&5
25381 echo "${ECHO_T}$ac_cv_type_minor_t" >&6; }
25382 if test $ac_cv_type_minor_t = yes; then
25386 cat >>confdefs.h <<_ACEOF
25387 #define minor_t int
25392 { echo "$as_me:$LINENO: checking for ssize_t" >&5
25393 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
25394 if test "${ac_cv_type_ssize_t+set}" = set; then
25395 echo $ECHO_N "(cached) $ECHO_C" >&6
25397 cat >conftest.$ac_ext <<_ACEOF
25400 cat confdefs.h >>conftest.$ac_ext
25401 cat >>conftest.$ac_ext <<_ACEOF
25402 /* end confdefs.h. */
25403 $ac_includes_default
25404 typedef ssize_t ac__type_new_;
25408 if ((ac__type_new_ *) 0)
25410 if (sizeof (ac__type_new_))
25416 rm -f conftest.$ac_objext
25417 if { (ac_try="$ac_compile"
25418 case "(($ac_try" in
25419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25420 *) ac_try_echo=$ac_try;;
25422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25423 (eval "$ac_compile") 2>conftest.er1
25425 grep -v '^ *+' conftest.er1 >conftest.err
25427 cat conftest.err >&5
25428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25429 (exit $ac_status); } &&
25430 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25431 { (case "(($ac_try" in
25432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25433 *) ac_try_echo=$ac_try;;
25435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25436 (eval "$ac_try") 2>&5
25438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25439 (exit $ac_status); }; } &&
25440 { ac_try='test -s conftest.$ac_objext'
25441 { (case "(($ac_try" in
25442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25443 *) ac_try_echo=$ac_try;;
25445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25446 (eval "$ac_try") 2>&5
25448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25449 (exit $ac_status); }; }; then
25450 ac_cv_type_ssize_t=yes
25452 echo "$as_me: failed program was:" >&5
25453 sed 's/^/| /' conftest.$ac_ext >&5
25455 ac_cv_type_ssize_t=no
25458 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25460 { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
25461 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
25462 if test $ac_cv_type_ssize_t = yes; then
25466 cat >>confdefs.h <<_ACEOF
25467 #define ssize_t int
25472 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
25473 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
25474 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
25475 echo $ECHO_N "(cached) $ECHO_C" >&6
25477 cat >conftest.$ac_ext <<_ACEOF
25480 cat confdefs.h >>conftest.$ac_ext
25481 cat >>conftest.$ac_ext <<_ACEOF
25482 /* end confdefs.h. */
25483 $ac_includes_default
25487 static struct stat ac_aggr;
25488 if (ac_aggr.st_blocks)
25494 rm -f conftest.$ac_objext
25495 if { (ac_try="$ac_compile"
25496 case "(($ac_try" in
25497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25498 *) ac_try_echo=$ac_try;;
25500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25501 (eval "$ac_compile") 2>conftest.er1
25503 grep -v '^ *+' conftest.er1 >conftest.err
25505 cat conftest.err >&5
25506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25507 (exit $ac_status); } &&
25508 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
25518 { ac_try='test -s conftest.$ac_objext'
25519 { (case "(($ac_try" in
25520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25521 *) ac_try_echo=$ac_try;;
25523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25524 (eval "$ac_try") 2>&5
25526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25527 (exit $ac_status); }; }; then
25528 ac_cv_member_struct_stat_st_blocks=yes
25530 echo "$as_me: failed program was:" >&5
25531 sed 's/^/| /' conftest.$ac_ext >&5
25533 cat >conftest.$ac_ext <<_ACEOF
25536 cat confdefs.h >>conftest.$ac_ext
25537 cat >>conftest.$ac_ext <<_ACEOF
25538 /* end confdefs.h. */
25539 $ac_includes_default
25543 static struct stat ac_aggr;
25544 if (sizeof ac_aggr.st_blocks)
25550 rm -f conftest.$ac_objext
25551 if { (ac_try="$ac_compile"
25552 case "(($ac_try" in
25553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25554 *) ac_try_echo=$ac_try;;
25556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25557 (eval "$ac_compile") 2>conftest.er1
25559 grep -v '^ *+' conftest.er1 >conftest.err
25561 cat conftest.err >&5
25562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25563 (exit $ac_status); } &&
25564 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25565 { (case "(($ac_try" in
25566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25567 *) ac_try_echo=$ac_try;;
25569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25570 (eval "$ac_try") 2>&5
25572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25573 (exit $ac_status); }; } &&
25574 { ac_try='test -s conftest.$ac_objext'
25575 { (case "(($ac_try" in
25576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25577 *) ac_try_echo=$ac_try;;
25579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25580 (eval "$ac_try") 2>&5
25582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25583 (exit $ac_status); }; }; then
25584 ac_cv_member_struct_stat_st_blocks=yes
25586 echo "$as_me: failed program was:" >&5
25587 sed 's/^/| /' conftest.$ac_ext >&5
25589 ac_cv_member_struct_stat_st_blocks=no
25592 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25595 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25597 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
25598 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
25599 if test $ac_cv_member_struct_stat_st_blocks = yes; then
25601 cat >>confdefs.h <<_ACEOF
25602 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
25606 cat >>confdefs.h <<\_ACEOF
25607 #define HAVE_ST_BLOCKS 1
25611 case " $LIBOBJS " in
25612 *" fileblocks.$ac_objext "* ) ;;
25613 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
25620 { echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
25621 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6; }
25622 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
25623 echo $ECHO_N "(cached) $ECHO_C" >&6
25625 cat >conftest.$ac_ext <<_ACEOF
25628 cat confdefs.h >>conftest.$ac_ext
25629 cat >>conftest.$ac_ext <<_ACEOF
25630 /* end confdefs.h. */
25631 $ac_includes_default
25635 static struct stat ac_aggr;
25636 if (ac_aggr.st_rdev)
25642 rm -f conftest.$ac_objext
25643 if { (ac_try="$ac_compile"
25644 case "(($ac_try" in
25645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25646 *) ac_try_echo=$ac_try;;
25648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25649 (eval "$ac_compile") 2>conftest.er1
25651 grep -v '^ *+' conftest.er1 >conftest.err
25653 cat conftest.err >&5
25654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25655 (exit $ac_status); } &&
25656 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
25666 { ac_try='test -s conftest.$ac_objext'
25667 { (case "(($ac_try" in
25668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25669 *) ac_try_echo=$ac_try;;
25671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25672 (eval "$ac_try") 2>&5
25674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25675 (exit $ac_status); }; }; then
25676 ac_cv_member_struct_stat_st_rdev=yes
25678 echo "$as_me: failed program was:" >&5
25679 sed 's/^/| /' conftest.$ac_ext >&5
25681 cat >conftest.$ac_ext <<_ACEOF
25684 cat confdefs.h >>conftest.$ac_ext
25685 cat >>conftest.$ac_ext <<_ACEOF
25686 /* end confdefs.h. */
25687 $ac_includes_default
25691 static struct stat ac_aggr;
25692 if (sizeof ac_aggr.st_rdev)
25698 rm -f conftest.$ac_objext
25699 if { (ac_try="$ac_compile"
25700 case "(($ac_try" in
25701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25702 *) ac_try_echo=$ac_try;;
25704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25705 (eval "$ac_compile") 2>conftest.er1
25707 grep -v '^ *+' conftest.er1 >conftest.err
25709 cat conftest.err >&5
25710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25711 (exit $ac_status); } &&
25712 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25713 { (case "(($ac_try" in
25714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25715 *) ac_try_echo=$ac_try;;
25717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25718 (eval "$ac_try") 2>&5
25720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25721 (exit $ac_status); }; } &&
25722 { ac_try='test -s conftest.$ac_objext'
25723 { (case "(($ac_try" in
25724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25725 *) ac_try_echo=$ac_try;;
25727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25728 (eval "$ac_try") 2>&5
25730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25731 (exit $ac_status); }; }; then
25732 ac_cv_member_struct_stat_st_rdev=yes
25734 echo "$as_me: failed program was:" >&5
25735 sed 's/^/| /' conftest.$ac_ext >&5
25737 ac_cv_member_struct_stat_st_rdev=no
25740 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25743 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25745 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
25746 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6; }
25747 if test $ac_cv_member_struct_stat_st_rdev = yes; then
25749 cat >>confdefs.h <<_ACEOF
25750 #define HAVE_STRUCT_STAT_ST_RDEV 1
25754 cat >>confdefs.h <<\_ACEOF
25755 #define HAVE_ST_RDEV 1
25761 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
25762 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
25763 if test "${ac_cv_struct_tm+set}" = set; then
25764 echo $ECHO_N "(cached) $ECHO_C" >&6
25766 cat >conftest.$ac_ext <<_ACEOF
25769 cat confdefs.h >>conftest.$ac_ext
25770 cat >>conftest.$ac_ext <<_ACEOF
25771 /* end confdefs.h. */
25772 #include <sys/types.h>
25778 struct tm *tp; tp->tm_sec;
25783 rm -f conftest.$ac_objext
25784 if { (ac_try="$ac_compile"
25785 case "(($ac_try" in
25786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25787 *) ac_try_echo=$ac_try;;
25789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25790 (eval "$ac_compile") 2>conftest.er1
25792 grep -v '^ *+' conftest.er1 >conftest.err
25794 cat conftest.err >&5
25795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25796 (exit $ac_status); } &&
25797 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25798 { (case "(($ac_try" in
25799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25800 *) ac_try_echo=$ac_try;;
25802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25803 (eval "$ac_try") 2>&5
25805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25806 (exit $ac_status); }; } &&
25807 { ac_try='test -s conftest.$ac_objext'
25808 { (case "(($ac_try" in
25809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25810 *) ac_try_echo=$ac_try;;
25812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25813 (eval "$ac_try") 2>&5
25815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25816 (exit $ac_status); }; }; then
25817 ac_cv_struct_tm=time.h
25819 echo "$as_me: failed program was:" >&5
25820 sed 's/^/| /' conftest.$ac_ext >&5
25822 ac_cv_struct_tm=sys/time.h
25825 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25827 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
25828 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
25829 if test $ac_cv_struct_tm = sys/time.h; then
25831 cat >>confdefs.h <<\_ACEOF
25832 #define TM_IN_SYS_TIME 1
25837 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
25838 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
25839 if test "${ac_cv_c_const+set}" = set; then
25840 echo $ECHO_N "(cached) $ECHO_C" >&6
25842 cat >conftest.$ac_ext <<_ACEOF
25845 cat confdefs.h >>conftest.$ac_ext
25846 cat >>conftest.$ac_ext <<_ACEOF
25847 /* end confdefs.h. */
25852 /* FIXME: Include the comments suggested by Paul. */
25853 #ifndef __cplusplus
25854 /* Ultrix mips cc rejects this. */
25855 typedef int charset[2];
25857 /* SunOS 4.1.1 cc rejects this. */
25858 char const *const *ccp;
25860 /* NEC SVR4.0.2 mips cc rejects this. */
25861 struct point {int x, y;};
25862 static struct point const zero = {0,0};
25863 /* AIX XL C 1.02.0.0 rejects this.
25864 It does not let you subtract one const X* pointer from another in
25865 an arm of an if-expression whose if-part is not a constant
25867 const char *g = "string";
25868 ccp = &g + (g ? g-g : 0);
25869 /* HPUX 7.0 cc rejects these. */
25872 ccp = (char const *const *) p;
25873 { /* SCO 3.2v4 cc rejects this. */
25875 char const *s = 0 ? (char *) 0 : (char const *) 0;
25880 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
25881 int x[] = {25, 17};
25882 const int *foo = &x[0];
25885 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
25886 typedef const int *iptr;
25890 { /* AIX XL C 1.02.0.0 rejects this saying
25891 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
25892 struct s { int j; const int *ap[3]; };
25893 struct s *b; b->j = 5;
25895 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
25896 const int foo = 10;
25897 if (!foo) return 0;
25899 return !x[0] && !zero.x;
25906 rm -f conftest.$ac_objext
25907 if { (ac_try="$ac_compile"
25908 case "(($ac_try" in
25909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25910 *) ac_try_echo=$ac_try;;
25912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25913 (eval "$ac_compile") 2>conftest.er1
25915 grep -v '^ *+' conftest.er1 >conftest.err
25917 cat conftest.err >&5
25918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25919 (exit $ac_status); } &&
25920 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25921 { (case "(($ac_try" in
25922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25923 *) ac_try_echo=$ac_try;;
25925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25926 (eval "$ac_try") 2>&5
25928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25929 (exit $ac_status); }; } &&
25930 { ac_try='test -s conftest.$ac_objext'
25931 { (case "(($ac_try" in
25932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25933 *) ac_try_echo=$ac_try;;
25935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25936 (eval "$ac_try") 2>&5
25938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25939 (exit $ac_status); }; }; then
25942 echo "$as_me: failed program was:" >&5
25943 sed 's/^/| /' conftest.$ac_ext >&5
25948 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25950 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
25951 echo "${ECHO_T}$ac_cv_c_const" >&6; }
25952 if test $ac_cv_c_const = no; then
25954 cat >>confdefs.h <<\_ACEOF
25962 { echo "$as_me:$LINENO: checking for char" >&5
25963 echo $ECHO_N "checking for char... $ECHO_C" >&6; }
25964 if test "${ac_cv_type_char+set}" = set; then
25965 echo $ECHO_N "(cached) $ECHO_C" >&6
25967 cat >conftest.$ac_ext <<_ACEOF
25970 cat confdefs.h >>conftest.$ac_ext
25971 cat >>conftest.$ac_ext <<_ACEOF
25972 /* end confdefs.h. */
25973 $ac_includes_default
25974 typedef char ac__type_new_;
25978 if ((ac__type_new_ *) 0)
25980 if (sizeof (ac__type_new_))
25986 rm -f conftest.$ac_objext
25987 if { (ac_try="$ac_compile"
25988 case "(($ac_try" in
25989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25990 *) ac_try_echo=$ac_try;;
25992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25993 (eval "$ac_compile") 2>conftest.er1
25995 grep -v '^ *+' conftest.er1 >conftest.err
25997 cat conftest.err >&5
25998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25999 (exit $ac_status); } &&
26000 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26001 { (case "(($ac_try" in
26002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26003 *) ac_try_echo=$ac_try;;
26005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26006 (eval "$ac_try") 2>&5
26008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26009 (exit $ac_status); }; } &&
26010 { ac_try='test -s conftest.$ac_objext'
26011 { (case "(($ac_try" in
26012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26013 *) ac_try_echo=$ac_try;;
26015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26016 (eval "$ac_try") 2>&5
26018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26019 (exit $ac_status); }; }; then
26020 ac_cv_type_char=yes
26022 echo "$as_me: failed program was:" >&5
26023 sed 's/^/| /' conftest.$ac_ext >&5
26028 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26030 { echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
26031 echo "${ECHO_T}$ac_cv_type_char" >&6; }
26033 { echo "$as_me:$LINENO: checking size of char" >&5
26034 echo $ECHO_N "checking size of char... $ECHO_C" >&6; }
26035 if test "${ac_cv_sizeof_char+set}" = set; then
26036 echo $ECHO_N "(cached) $ECHO_C" >&6
26038 if test "$ac_cv_type_char" = yes; then
26039 # The cast to long int works around a bug in the HP C Compiler
26040 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26041 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26042 # This bug is HP SR number 8606223364.
26043 if test "$cross_compiling" = yes; then
26044 # Depending upon the size, compute the lo and hi bounds.
26045 cat >conftest.$ac_ext <<_ACEOF
26048 cat confdefs.h >>conftest.$ac_ext
26049 cat >>conftest.$ac_ext <<_ACEOF
26050 /* end confdefs.h. */
26051 $ac_includes_default
26052 typedef char ac__type_sizeof_;
26056 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
26063 rm -f conftest.$ac_objext
26064 if { (ac_try="$ac_compile"
26065 case "(($ac_try" in
26066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26067 *) ac_try_echo=$ac_try;;
26069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26070 (eval "$ac_compile") 2>conftest.er1
26072 grep -v '^ *+' conftest.er1 >conftest.err
26074 cat conftest.err >&5
26075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26076 (exit $ac_status); } &&
26077 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26078 { (case "(($ac_try" in
26079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26080 *) ac_try_echo=$ac_try;;
26082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26083 (eval "$ac_try") 2>&5
26085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26086 (exit $ac_status); }; } &&
26087 { ac_try='test -s conftest.$ac_objext'
26088 { (case "(($ac_try" in
26089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26090 *) ac_try_echo=$ac_try;;
26092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26093 (eval "$ac_try") 2>&5
26095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26096 (exit $ac_status); }; }; then
26099 cat >conftest.$ac_ext <<_ACEOF
26102 cat confdefs.h >>conftest.$ac_ext
26103 cat >>conftest.$ac_ext <<_ACEOF
26104 /* end confdefs.h. */
26105 $ac_includes_default
26106 typedef char ac__type_sizeof_;
26110 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
26117 rm -f conftest.$ac_objext
26118 if { (ac_try="$ac_compile"
26119 case "(($ac_try" in
26120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26121 *) ac_try_echo=$ac_try;;
26123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26124 (eval "$ac_compile") 2>conftest.er1
26126 grep -v '^ *+' conftest.er1 >conftest.err
26128 cat conftest.err >&5
26129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26130 (exit $ac_status); } &&
26131 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26132 { (case "(($ac_try" in
26133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26134 *) ac_try_echo=$ac_try;;
26136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26137 (eval "$ac_try") 2>&5
26139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26140 (exit $ac_status); }; } &&
26141 { ac_try='test -s conftest.$ac_objext'
26142 { (case "(($ac_try" in
26143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26144 *) ac_try_echo=$ac_try;;
26146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26147 (eval "$ac_try") 2>&5
26149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26150 (exit $ac_status); }; }; then
26151 ac_hi=$ac_mid; break
26153 echo "$as_me: failed program was:" >&5
26154 sed 's/^/| /' conftest.$ac_ext >&5
26156 ac_lo=`expr $ac_mid + 1`
26157 if test $ac_lo -le $ac_mid; then
26161 ac_mid=`expr 2 '*' $ac_mid + 1`
26164 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26167 echo "$as_me: failed program was:" >&5
26168 sed 's/^/| /' conftest.$ac_ext >&5
26170 cat >conftest.$ac_ext <<_ACEOF
26173 cat confdefs.h >>conftest.$ac_ext
26174 cat >>conftest.$ac_ext <<_ACEOF
26175 /* end confdefs.h. */
26176 $ac_includes_default
26177 typedef char ac__type_sizeof_;
26181 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
26188 rm -f conftest.$ac_objext
26189 if { (ac_try="$ac_compile"
26190 case "(($ac_try" in
26191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26192 *) ac_try_echo=$ac_try;;
26194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26195 (eval "$ac_compile") 2>conftest.er1
26197 grep -v '^ *+' conftest.er1 >conftest.err
26199 cat conftest.err >&5
26200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26201 (exit $ac_status); } &&
26202 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26203 { (case "(($ac_try" in
26204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26205 *) ac_try_echo=$ac_try;;
26207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26208 (eval "$ac_try") 2>&5
26210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26211 (exit $ac_status); }; } &&
26212 { ac_try='test -s conftest.$ac_objext'
26213 { (case "(($ac_try" in
26214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26215 *) ac_try_echo=$ac_try;;
26217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26218 (eval "$ac_try") 2>&5
26220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26221 (exit $ac_status); }; }; then
26224 cat >conftest.$ac_ext <<_ACEOF
26227 cat confdefs.h >>conftest.$ac_ext
26228 cat >>conftest.$ac_ext <<_ACEOF
26229 /* end confdefs.h. */
26230 $ac_includes_default
26231 typedef char ac__type_sizeof_;
26235 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
26242 rm -f conftest.$ac_objext
26243 if { (ac_try="$ac_compile"
26244 case "(($ac_try" in
26245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26246 *) ac_try_echo=$ac_try;;
26248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26249 (eval "$ac_compile") 2>conftest.er1
26251 grep -v '^ *+' conftest.er1 >conftest.err
26253 cat conftest.err >&5
26254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26255 (exit $ac_status); } &&
26256 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26257 { (case "(($ac_try" in
26258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26259 *) ac_try_echo=$ac_try;;
26261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26262 (eval "$ac_try") 2>&5
26264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26265 (exit $ac_status); }; } &&
26266 { ac_try='test -s conftest.$ac_objext'
26267 { (case "(($ac_try" in
26268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26269 *) ac_try_echo=$ac_try;;
26271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26272 (eval "$ac_try") 2>&5
26274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26275 (exit $ac_status); }; }; then
26276 ac_lo=$ac_mid; break
26278 echo "$as_me: failed program was:" >&5
26279 sed 's/^/| /' conftest.$ac_ext >&5
26281 ac_hi=`expr '(' $ac_mid ')' - 1`
26282 if test $ac_mid -le $ac_hi; then
26286 ac_mid=`expr 2 '*' $ac_mid`
26289 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26292 echo "$as_me: failed program was:" >&5
26293 sed 's/^/| /' conftest.$ac_ext >&5
26298 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26301 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26302 # Binary search between lo and hi bounds.
26303 while test "x$ac_lo" != "x$ac_hi"; do
26304 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
26305 cat >conftest.$ac_ext <<_ACEOF
26308 cat confdefs.h >>conftest.$ac_ext
26309 cat >>conftest.$ac_ext <<_ACEOF
26310 /* end confdefs.h. */
26311 $ac_includes_default
26312 typedef char ac__type_sizeof_;
26316 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
26323 rm -f conftest.$ac_objext
26324 if { (ac_try="$ac_compile"
26325 case "(($ac_try" in
26326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26327 *) ac_try_echo=$ac_try;;
26329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26330 (eval "$ac_compile") 2>conftest.er1
26332 grep -v '^ *+' conftest.er1 >conftest.err
26334 cat conftest.err >&5
26335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26336 (exit $ac_status); } &&
26337 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26338 { (case "(($ac_try" in
26339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26340 *) ac_try_echo=$ac_try;;
26342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26343 (eval "$ac_try") 2>&5
26345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26346 (exit $ac_status); }; } &&
26347 { ac_try='test -s conftest.$ac_objext'
26348 { (case "(($ac_try" in
26349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26350 *) ac_try_echo=$ac_try;;
26352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26353 (eval "$ac_try") 2>&5
26355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26356 (exit $ac_status); }; }; then
26359 echo "$as_me: failed program was:" >&5
26360 sed 's/^/| /' conftest.$ac_ext >&5
26362 ac_lo=`expr '(' $ac_mid ')' + 1`
26365 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26368 ?*) ac_cv_sizeof_char=$ac_lo;;
26369 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
26370 See \`config.log' for more details." >&5
26371 echo "$as_me: error: cannot compute sizeof (char)
26372 See \`config.log' for more details." >&2;}
26373 { (exit 77); exit 77; }; } ;;
26376 cat >conftest.$ac_ext <<_ACEOF
26379 cat confdefs.h >>conftest.$ac_ext
26380 cat >>conftest.$ac_ext <<_ACEOF
26381 /* end confdefs.h. */
26382 $ac_includes_default
26383 typedef char ac__type_sizeof_;
26384 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
26385 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
26387 #include <stdlib.h>
26392 FILE *f = fopen ("conftest.val", "w");
26395 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
26397 long int i = longval ();
26398 if (i != ((long int) (sizeof (ac__type_sizeof_))))
26400 fprintf (f, "%ld\n", i);
26404 unsigned long int i = ulongval ();
26405 if (i != ((long int) (sizeof (ac__type_sizeof_))))
26407 fprintf (f, "%lu\n", i);
26409 return ferror (f) || fclose (f) != 0;
26415 rm -f conftest$ac_exeext
26416 if { (ac_try="$ac_link"
26417 case "(($ac_try" in
26418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26419 *) ac_try_echo=$ac_try;;
26421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26422 (eval "$ac_link") 2>&5
26424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26425 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26426 { (case "(($ac_try" in
26427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26428 *) ac_try_echo=$ac_try;;
26430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26431 (eval "$ac_try") 2>&5
26433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26434 (exit $ac_status); }; }; then
26435 ac_cv_sizeof_char=`cat conftest.val`
26437 echo "$as_me: program exited with status $ac_status" >&5
26438 echo "$as_me: failed program was:" >&5
26439 sed 's/^/| /' conftest.$ac_ext >&5
26441 ( exit $ac_status )
26442 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
26443 See \`config.log' for more details." >&5
26444 echo "$as_me: error: cannot compute sizeof (char)
26445 See \`config.log' for more details." >&2;}
26446 { (exit 77); exit 77; }; }
26448 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26452 ac_cv_sizeof_char=0
26455 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
26456 echo "${ECHO_T}$ac_cv_sizeof_char" >&6; }
26457 cat >>confdefs.h <<_ACEOF
26458 #define SIZEOF_CHAR $ac_cv_sizeof_char
26462 { echo "$as_me:$LINENO: checking for short int" >&5
26463 echo $ECHO_N "checking for short int... $ECHO_C" >&6; }
26464 if test "${ac_cv_type_short_int+set}" = set; then
26465 echo $ECHO_N "(cached) $ECHO_C" >&6
26467 cat >conftest.$ac_ext <<_ACEOF
26470 cat confdefs.h >>conftest.$ac_ext
26471 cat >>conftest.$ac_ext <<_ACEOF
26472 /* end confdefs.h. */
26473 $ac_includes_default
26474 typedef short int ac__type_new_;
26478 if ((ac__type_new_ *) 0)
26480 if (sizeof (ac__type_new_))
26486 rm -f conftest.$ac_objext
26487 if { (ac_try="$ac_compile"
26488 case "(($ac_try" in
26489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26490 *) ac_try_echo=$ac_try;;
26492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26493 (eval "$ac_compile") 2>conftest.er1
26495 grep -v '^ *+' conftest.er1 >conftest.err
26497 cat conftest.err >&5
26498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26499 (exit $ac_status); } &&
26500 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26501 { (case "(($ac_try" in
26502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26503 *) ac_try_echo=$ac_try;;
26505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26506 (eval "$ac_try") 2>&5
26508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26509 (exit $ac_status); }; } &&
26510 { ac_try='test -s conftest.$ac_objext'
26511 { (case "(($ac_try" in
26512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26513 *) ac_try_echo=$ac_try;;
26515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26516 (eval "$ac_try") 2>&5
26518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26519 (exit $ac_status); }; }; then
26520 ac_cv_type_short_int=yes
26522 echo "$as_me: failed program was:" >&5
26523 sed 's/^/| /' conftest.$ac_ext >&5
26525 ac_cv_type_short_int=no
26528 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26530 { echo "$as_me:$LINENO: result: $ac_cv_type_short_int" >&5
26531 echo "${ECHO_T}$ac_cv_type_short_int" >&6; }
26533 { echo "$as_me:$LINENO: checking size of short int" >&5
26534 echo $ECHO_N "checking size of short int... $ECHO_C" >&6; }
26535 if test "${ac_cv_sizeof_short_int+set}" = set; then
26536 echo $ECHO_N "(cached) $ECHO_C" >&6
26538 if test "$ac_cv_type_short_int" = yes; then
26539 # The cast to long int works around a bug in the HP C Compiler
26540 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26541 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26542 # This bug is HP SR number 8606223364.
26543 if test "$cross_compiling" = yes; then
26544 # Depending upon the size, compute the lo and hi bounds.
26545 cat >conftest.$ac_ext <<_ACEOF
26548 cat confdefs.h >>conftest.$ac_ext
26549 cat >>conftest.$ac_ext <<_ACEOF
26550 /* end confdefs.h. */
26551 $ac_includes_default
26552 typedef short int ac__type_sizeof_;
26556 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
26563 rm -f conftest.$ac_objext
26564 if { (ac_try="$ac_compile"
26565 case "(($ac_try" in
26566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26567 *) ac_try_echo=$ac_try;;
26569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26570 (eval "$ac_compile") 2>conftest.er1
26572 grep -v '^ *+' conftest.er1 >conftest.err
26574 cat conftest.err >&5
26575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26576 (exit $ac_status); } &&
26577 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26578 { (case "(($ac_try" in
26579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26580 *) ac_try_echo=$ac_try;;
26582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26583 (eval "$ac_try") 2>&5
26585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26586 (exit $ac_status); }; } &&
26587 { ac_try='test -s conftest.$ac_objext'
26588 { (case "(($ac_try" in
26589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26590 *) ac_try_echo=$ac_try;;
26592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26593 (eval "$ac_try") 2>&5
26595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26596 (exit $ac_status); }; }; then
26599 cat >conftest.$ac_ext <<_ACEOF
26602 cat confdefs.h >>conftest.$ac_ext
26603 cat >>conftest.$ac_ext <<_ACEOF
26604 /* end confdefs.h. */
26605 $ac_includes_default
26606 typedef short int ac__type_sizeof_;
26610 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
26617 rm -f conftest.$ac_objext
26618 if { (ac_try="$ac_compile"
26619 case "(($ac_try" in
26620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26621 *) ac_try_echo=$ac_try;;
26623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26624 (eval "$ac_compile") 2>conftest.er1
26626 grep -v '^ *+' conftest.er1 >conftest.err
26628 cat conftest.err >&5
26629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26630 (exit $ac_status); } &&
26631 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26632 { (case "(($ac_try" in
26633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26634 *) ac_try_echo=$ac_try;;
26636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26637 (eval "$ac_try") 2>&5
26639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26640 (exit $ac_status); }; } &&
26641 { ac_try='test -s conftest.$ac_objext'
26642 { (case "(($ac_try" in
26643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26644 *) ac_try_echo=$ac_try;;
26646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26647 (eval "$ac_try") 2>&5
26649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26650 (exit $ac_status); }; }; then
26651 ac_hi=$ac_mid; break
26653 echo "$as_me: failed program was:" >&5
26654 sed 's/^/| /' conftest.$ac_ext >&5
26656 ac_lo=`expr $ac_mid + 1`
26657 if test $ac_lo -le $ac_mid; then
26661 ac_mid=`expr 2 '*' $ac_mid + 1`
26664 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26667 echo "$as_me: failed program was:" >&5
26668 sed 's/^/| /' conftest.$ac_ext >&5
26670 cat >conftest.$ac_ext <<_ACEOF
26673 cat confdefs.h >>conftest.$ac_ext
26674 cat >>conftest.$ac_ext <<_ACEOF
26675 /* end confdefs.h. */
26676 $ac_includes_default
26677 typedef short int ac__type_sizeof_;
26681 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
26688 rm -f conftest.$ac_objext
26689 if { (ac_try="$ac_compile"
26690 case "(($ac_try" in
26691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26692 *) ac_try_echo=$ac_try;;
26694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26695 (eval "$ac_compile") 2>conftest.er1
26697 grep -v '^ *+' conftest.er1 >conftest.err
26699 cat conftest.err >&5
26700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26701 (exit $ac_status); } &&
26702 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26703 { (case "(($ac_try" in
26704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26705 *) ac_try_echo=$ac_try;;
26707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26708 (eval "$ac_try") 2>&5
26710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26711 (exit $ac_status); }; } &&
26712 { ac_try='test -s conftest.$ac_objext'
26713 { (case "(($ac_try" in
26714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26715 *) ac_try_echo=$ac_try;;
26717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26718 (eval "$ac_try") 2>&5
26720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26721 (exit $ac_status); }; }; then
26724 cat >conftest.$ac_ext <<_ACEOF
26727 cat confdefs.h >>conftest.$ac_ext
26728 cat >>conftest.$ac_ext <<_ACEOF
26729 /* end confdefs.h. */
26730 $ac_includes_default
26731 typedef short int ac__type_sizeof_;
26735 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
26742 rm -f conftest.$ac_objext
26743 if { (ac_try="$ac_compile"
26744 case "(($ac_try" in
26745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26746 *) ac_try_echo=$ac_try;;
26748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26749 (eval "$ac_compile") 2>conftest.er1
26751 grep -v '^ *+' conftest.er1 >conftest.err
26753 cat conftest.err >&5
26754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26755 (exit $ac_status); } &&
26756 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26757 { (case "(($ac_try" in
26758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26759 *) ac_try_echo=$ac_try;;
26761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26762 (eval "$ac_try") 2>&5
26764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26765 (exit $ac_status); }; } &&
26766 { ac_try='test -s conftest.$ac_objext'
26767 { (case "(($ac_try" in
26768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26769 *) ac_try_echo=$ac_try;;
26771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26772 (eval "$ac_try") 2>&5
26774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26775 (exit $ac_status); }; }; then
26776 ac_lo=$ac_mid; break
26778 echo "$as_me: failed program was:" >&5
26779 sed 's/^/| /' conftest.$ac_ext >&5
26781 ac_hi=`expr '(' $ac_mid ')' - 1`
26782 if test $ac_mid -le $ac_hi; then
26786 ac_mid=`expr 2 '*' $ac_mid`
26789 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26792 echo "$as_me: failed program was:" >&5
26793 sed 's/^/| /' conftest.$ac_ext >&5
26798 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26801 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26802 # Binary search between lo and hi bounds.
26803 while test "x$ac_lo" != "x$ac_hi"; do
26804 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
26805 cat >conftest.$ac_ext <<_ACEOF
26808 cat confdefs.h >>conftest.$ac_ext
26809 cat >>conftest.$ac_ext <<_ACEOF
26810 /* end confdefs.h. */
26811 $ac_includes_default
26812 typedef short int ac__type_sizeof_;
26816 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
26823 rm -f conftest.$ac_objext
26824 if { (ac_try="$ac_compile"
26825 case "(($ac_try" in
26826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26827 *) ac_try_echo=$ac_try;;
26829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26830 (eval "$ac_compile") 2>conftest.er1
26832 grep -v '^ *+' conftest.er1 >conftest.err
26834 cat conftest.err >&5
26835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26836 (exit $ac_status); } &&
26837 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26838 { (case "(($ac_try" in
26839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26840 *) ac_try_echo=$ac_try;;
26842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26843 (eval "$ac_try") 2>&5
26845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26846 (exit $ac_status); }; } &&
26847 { ac_try='test -s conftest.$ac_objext'
26848 { (case "(($ac_try" in
26849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26850 *) ac_try_echo=$ac_try;;
26852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26853 (eval "$ac_try") 2>&5
26855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26856 (exit $ac_status); }; }; then
26859 echo "$as_me: failed program was:" >&5
26860 sed 's/^/| /' conftest.$ac_ext >&5
26862 ac_lo=`expr '(' $ac_mid ')' + 1`
26865 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26868 ?*) ac_cv_sizeof_short_int=$ac_lo;;
26869 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int)
26870 See \`config.log' for more details." >&5
26871 echo "$as_me: error: cannot compute sizeof (short int)
26872 See \`config.log' for more details." >&2;}
26873 { (exit 77); exit 77; }; } ;;
26876 cat >conftest.$ac_ext <<_ACEOF
26879 cat confdefs.h >>conftest.$ac_ext
26880 cat >>conftest.$ac_ext <<_ACEOF
26881 /* end confdefs.h. */
26882 $ac_includes_default
26883 typedef short int ac__type_sizeof_;
26884 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
26885 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
26887 #include <stdlib.h>
26892 FILE *f = fopen ("conftest.val", "w");
26895 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
26897 long int i = longval ();
26898 if (i != ((long int) (sizeof (ac__type_sizeof_))))
26900 fprintf (f, "%ld\n", i);
26904 unsigned long int i = ulongval ();
26905 if (i != ((long int) (sizeof (ac__type_sizeof_))))
26907 fprintf (f, "%lu\n", i);
26909 return ferror (f) || fclose (f) != 0;
26915 rm -f conftest$ac_exeext
26916 if { (ac_try="$ac_link"
26917 case "(($ac_try" in
26918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26919 *) ac_try_echo=$ac_try;;
26921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26922 (eval "$ac_link") 2>&5
26924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26925 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26926 { (case "(($ac_try" in
26927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26928 *) ac_try_echo=$ac_try;;
26930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26931 (eval "$ac_try") 2>&5
26933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26934 (exit $ac_status); }; }; then
26935 ac_cv_sizeof_short_int=`cat conftest.val`
26937 echo "$as_me: program exited with status $ac_status" >&5
26938 echo "$as_me: failed program was:" >&5
26939 sed 's/^/| /' conftest.$ac_ext >&5
26941 ( exit $ac_status )
26942 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int)
26943 See \`config.log' for more details." >&5
26944 echo "$as_me: error: cannot compute sizeof (short int)
26945 See \`config.log' for more details." >&2;}
26946 { (exit 77); exit 77; }; }
26948 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26952 ac_cv_sizeof_short_int=0
26955 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short_int" >&5
26956 echo "${ECHO_T}$ac_cv_sizeof_short_int" >&6; }
26957 cat >>confdefs.h <<_ACEOF
26958 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
26962 { echo "$as_me:$LINENO: checking for int" >&5
26963 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
26964 if test "${ac_cv_type_int+set}" = set; then
26965 echo $ECHO_N "(cached) $ECHO_C" >&6
26967 cat >conftest.$ac_ext <<_ACEOF
26970 cat confdefs.h >>conftest.$ac_ext
26971 cat >>conftest.$ac_ext <<_ACEOF
26972 /* end confdefs.h. */
26973 $ac_includes_default
26974 typedef int ac__type_new_;
26978 if ((ac__type_new_ *) 0)
26980 if (sizeof (ac__type_new_))
26986 rm -f conftest.$ac_objext
26987 if { (ac_try="$ac_compile"
26988 case "(($ac_try" in
26989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26990 *) ac_try_echo=$ac_try;;
26992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26993 (eval "$ac_compile") 2>conftest.er1
26995 grep -v '^ *+' conftest.er1 >conftest.err
26997 cat conftest.err >&5
26998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26999 (exit $ac_status); } &&
27000 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27001 { (case "(($ac_try" in
27002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27003 *) ac_try_echo=$ac_try;;
27005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27006 (eval "$ac_try") 2>&5
27008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27009 (exit $ac_status); }; } &&
27010 { ac_try='test -s conftest.$ac_objext'
27011 { (case "(($ac_try" in
27012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27013 *) ac_try_echo=$ac_try;;
27015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27016 (eval "$ac_try") 2>&5
27018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27019 (exit $ac_status); }; }; then
27022 echo "$as_me: failed program was:" >&5
27023 sed 's/^/| /' conftest.$ac_ext >&5
27028 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27030 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
27031 echo "${ECHO_T}$ac_cv_type_int" >&6; }
27033 { echo "$as_me:$LINENO: checking size of int" >&5
27034 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
27035 if test "${ac_cv_sizeof_int+set}" = set; then
27036 echo $ECHO_N "(cached) $ECHO_C" >&6
27038 if test "$ac_cv_type_int" = yes; then
27039 # The cast to long int works around a bug in the HP C Compiler
27040 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27041 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27042 # This bug is HP SR number 8606223364.
27043 if test "$cross_compiling" = yes; then
27044 # Depending upon the size, compute the lo and hi bounds.
27045 cat >conftest.$ac_ext <<_ACEOF
27048 cat confdefs.h >>conftest.$ac_ext
27049 cat >>conftest.$ac_ext <<_ACEOF
27050 /* end confdefs.h. */
27051 $ac_includes_default
27052 typedef int ac__type_sizeof_;
27056 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
27063 rm -f conftest.$ac_objext
27064 if { (ac_try="$ac_compile"
27065 case "(($ac_try" in
27066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27067 *) ac_try_echo=$ac_try;;
27069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27070 (eval "$ac_compile") 2>conftest.er1
27072 grep -v '^ *+' conftest.er1 >conftest.err
27074 cat conftest.err >&5
27075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27076 (exit $ac_status); } &&
27077 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27078 { (case "(($ac_try" in
27079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27080 *) ac_try_echo=$ac_try;;
27082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27083 (eval "$ac_try") 2>&5
27085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27086 (exit $ac_status); }; } &&
27087 { ac_try='test -s conftest.$ac_objext'
27088 { (case "(($ac_try" in
27089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27090 *) ac_try_echo=$ac_try;;
27092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27093 (eval "$ac_try") 2>&5
27095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27096 (exit $ac_status); }; }; then
27099 cat >conftest.$ac_ext <<_ACEOF
27102 cat confdefs.h >>conftest.$ac_ext
27103 cat >>conftest.$ac_ext <<_ACEOF
27104 /* end confdefs.h. */
27105 $ac_includes_default
27106 typedef int ac__type_sizeof_;
27110 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
27117 rm -f conftest.$ac_objext
27118 if { (ac_try="$ac_compile"
27119 case "(($ac_try" in
27120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27121 *) ac_try_echo=$ac_try;;
27123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27124 (eval "$ac_compile") 2>conftest.er1
27126 grep -v '^ *+' conftest.er1 >conftest.err
27128 cat conftest.err >&5
27129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27130 (exit $ac_status); } &&
27131 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27132 { (case "(($ac_try" in
27133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27134 *) ac_try_echo=$ac_try;;
27136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27137 (eval "$ac_try") 2>&5
27139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27140 (exit $ac_status); }; } &&
27141 { ac_try='test -s conftest.$ac_objext'
27142 { (case "(($ac_try" in
27143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27144 *) ac_try_echo=$ac_try;;
27146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27147 (eval "$ac_try") 2>&5
27149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27150 (exit $ac_status); }; }; then
27151 ac_hi=$ac_mid; break
27153 echo "$as_me: failed program was:" >&5
27154 sed 's/^/| /' conftest.$ac_ext >&5
27156 ac_lo=`expr $ac_mid + 1`
27157 if test $ac_lo -le $ac_mid; then
27161 ac_mid=`expr 2 '*' $ac_mid + 1`
27164 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27167 echo "$as_me: failed program was:" >&5
27168 sed 's/^/| /' conftest.$ac_ext >&5
27170 cat >conftest.$ac_ext <<_ACEOF
27173 cat confdefs.h >>conftest.$ac_ext
27174 cat >>conftest.$ac_ext <<_ACEOF
27175 /* end confdefs.h. */
27176 $ac_includes_default
27177 typedef int ac__type_sizeof_;
27181 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
27188 rm -f conftest.$ac_objext
27189 if { (ac_try="$ac_compile"
27190 case "(($ac_try" in
27191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27192 *) ac_try_echo=$ac_try;;
27194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27195 (eval "$ac_compile") 2>conftest.er1
27197 grep -v '^ *+' conftest.er1 >conftest.err
27199 cat conftest.err >&5
27200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27201 (exit $ac_status); } &&
27202 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27203 { (case "(($ac_try" in
27204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27205 *) ac_try_echo=$ac_try;;
27207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27208 (eval "$ac_try") 2>&5
27210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27211 (exit $ac_status); }; } &&
27212 { ac_try='test -s conftest.$ac_objext'
27213 { (case "(($ac_try" in
27214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27215 *) ac_try_echo=$ac_try;;
27217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27218 (eval "$ac_try") 2>&5
27220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27221 (exit $ac_status); }; }; then
27224 cat >conftest.$ac_ext <<_ACEOF
27227 cat confdefs.h >>conftest.$ac_ext
27228 cat >>conftest.$ac_ext <<_ACEOF
27229 /* end confdefs.h. */
27230 $ac_includes_default
27231 typedef int ac__type_sizeof_;
27235 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
27242 rm -f conftest.$ac_objext
27243 if { (ac_try="$ac_compile"
27244 case "(($ac_try" in
27245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27246 *) ac_try_echo=$ac_try;;
27248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27249 (eval "$ac_compile") 2>conftest.er1
27251 grep -v '^ *+' conftest.er1 >conftest.err
27253 cat conftest.err >&5
27254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27255 (exit $ac_status); } &&
27256 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27257 { (case "(($ac_try" in
27258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27259 *) ac_try_echo=$ac_try;;
27261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27262 (eval "$ac_try") 2>&5
27264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27265 (exit $ac_status); }; } &&
27266 { ac_try='test -s conftest.$ac_objext'
27267 { (case "(($ac_try" in
27268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27269 *) ac_try_echo=$ac_try;;
27271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27272 (eval "$ac_try") 2>&5
27274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27275 (exit $ac_status); }; }; then
27276 ac_lo=$ac_mid; break
27278 echo "$as_me: failed program was:" >&5
27279 sed 's/^/| /' conftest.$ac_ext >&5
27281 ac_hi=`expr '(' $ac_mid ')' - 1`
27282 if test $ac_mid -le $ac_hi; then
27286 ac_mid=`expr 2 '*' $ac_mid`
27289 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27292 echo "$as_me: failed program was:" >&5
27293 sed 's/^/| /' conftest.$ac_ext >&5
27298 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27301 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27302 # Binary search between lo and hi bounds.
27303 while test "x$ac_lo" != "x$ac_hi"; do
27304 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
27305 cat >conftest.$ac_ext <<_ACEOF
27308 cat confdefs.h >>conftest.$ac_ext
27309 cat >>conftest.$ac_ext <<_ACEOF
27310 /* end confdefs.h. */
27311 $ac_includes_default
27312 typedef int ac__type_sizeof_;
27316 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
27323 rm -f conftest.$ac_objext
27324 if { (ac_try="$ac_compile"
27325 case "(($ac_try" in
27326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27327 *) ac_try_echo=$ac_try;;
27329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27330 (eval "$ac_compile") 2>conftest.er1
27332 grep -v '^ *+' conftest.er1 >conftest.err
27334 cat conftest.err >&5
27335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27336 (exit $ac_status); } &&
27337 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27338 { (case "(($ac_try" in
27339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27340 *) ac_try_echo=$ac_try;;
27342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27343 (eval "$ac_try") 2>&5
27345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27346 (exit $ac_status); }; } &&
27347 { ac_try='test -s conftest.$ac_objext'
27348 { (case "(($ac_try" in
27349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27350 *) ac_try_echo=$ac_try;;
27352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27353 (eval "$ac_try") 2>&5
27355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27356 (exit $ac_status); }; }; then
27359 echo "$as_me: failed program was:" >&5
27360 sed 's/^/| /' conftest.$ac_ext >&5
27362 ac_lo=`expr '(' $ac_mid ')' + 1`
27365 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27368 ?*) ac_cv_sizeof_int=$ac_lo;;
27369 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
27370 See \`config.log' for more details." >&5
27371 echo "$as_me: error: cannot compute sizeof (int)
27372 See \`config.log' for more details." >&2;}
27373 { (exit 77); exit 77; }; } ;;
27376 cat >conftest.$ac_ext <<_ACEOF
27379 cat confdefs.h >>conftest.$ac_ext
27380 cat >>conftest.$ac_ext <<_ACEOF
27381 /* end confdefs.h. */
27382 $ac_includes_default
27383 typedef int ac__type_sizeof_;
27384 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
27385 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
27387 #include <stdlib.h>
27392 FILE *f = fopen ("conftest.val", "w");
27395 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
27397 long int i = longval ();
27398 if (i != ((long int) (sizeof (ac__type_sizeof_))))
27400 fprintf (f, "%ld\n", i);
27404 unsigned long int i = ulongval ();
27405 if (i != ((long int) (sizeof (ac__type_sizeof_))))
27407 fprintf (f, "%lu\n", i);
27409 return ferror (f) || fclose (f) != 0;
27415 rm -f conftest$ac_exeext
27416 if { (ac_try="$ac_link"
27417 case "(($ac_try" in
27418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27419 *) ac_try_echo=$ac_try;;
27421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27422 (eval "$ac_link") 2>&5
27424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27425 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27426 { (case "(($ac_try" in
27427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27428 *) ac_try_echo=$ac_try;;
27430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27431 (eval "$ac_try") 2>&5
27433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27434 (exit $ac_status); }; }; then
27435 ac_cv_sizeof_int=`cat conftest.val`
27437 echo "$as_me: program exited with status $ac_status" >&5
27438 echo "$as_me: failed program was:" >&5
27439 sed 's/^/| /' conftest.$ac_ext >&5
27441 ( exit $ac_status )
27442 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
27443 See \`config.log' for more details." >&5
27444 echo "$as_me: error: cannot compute sizeof (int)
27445 See \`config.log' for more details." >&2;}
27446 { (exit 77); exit 77; }; }
27448 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27455 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
27456 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
27457 cat >>confdefs.h <<_ACEOF
27458 #define SIZEOF_INT $ac_cv_sizeof_int
27462 { echo "$as_me:$LINENO: checking for long int" >&5
27463 echo $ECHO_N "checking for long int... $ECHO_C" >&6; }
27464 if test "${ac_cv_type_long_int+set}" = set; then
27465 echo $ECHO_N "(cached) $ECHO_C" >&6
27467 cat >conftest.$ac_ext <<_ACEOF
27470 cat confdefs.h >>conftest.$ac_ext
27471 cat >>conftest.$ac_ext <<_ACEOF
27472 /* end confdefs.h. */
27473 $ac_includes_default
27474 typedef long int ac__type_new_;
27478 if ((ac__type_new_ *) 0)
27480 if (sizeof (ac__type_new_))
27486 rm -f conftest.$ac_objext
27487 if { (ac_try="$ac_compile"
27488 case "(($ac_try" in
27489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27490 *) ac_try_echo=$ac_try;;
27492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27493 (eval "$ac_compile") 2>conftest.er1
27495 grep -v '^ *+' conftest.er1 >conftest.err
27497 cat conftest.err >&5
27498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27499 (exit $ac_status); } &&
27500 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27501 { (case "(($ac_try" in
27502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27503 *) ac_try_echo=$ac_try;;
27505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27506 (eval "$ac_try") 2>&5
27508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27509 (exit $ac_status); }; } &&
27510 { ac_try='test -s conftest.$ac_objext'
27511 { (case "(($ac_try" in
27512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27513 *) ac_try_echo=$ac_try;;
27515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27516 (eval "$ac_try") 2>&5
27518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27519 (exit $ac_status); }; }; then
27520 ac_cv_type_long_int=yes
27522 echo "$as_me: failed program was:" >&5
27523 sed 's/^/| /' conftest.$ac_ext >&5
27525 ac_cv_type_long_int=no
27528 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27530 { echo "$as_me:$LINENO: result: $ac_cv_type_long_int" >&5
27531 echo "${ECHO_T}$ac_cv_type_long_int" >&6; }
27533 { echo "$as_me:$LINENO: checking size of long int" >&5
27534 echo $ECHO_N "checking size of long int... $ECHO_C" >&6; }
27535 if test "${ac_cv_sizeof_long_int+set}" = set; then
27536 echo $ECHO_N "(cached) $ECHO_C" >&6
27538 if test "$ac_cv_type_long_int" = yes; then
27539 # The cast to long int works around a bug in the HP C Compiler
27540 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27541 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27542 # This bug is HP SR number 8606223364.
27543 if test "$cross_compiling" = yes; then
27544 # Depending upon the size, compute the lo and hi bounds.
27545 cat >conftest.$ac_ext <<_ACEOF
27548 cat confdefs.h >>conftest.$ac_ext
27549 cat >>conftest.$ac_ext <<_ACEOF
27550 /* end confdefs.h. */
27551 $ac_includes_default
27552 typedef long int ac__type_sizeof_;
27556 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
27563 rm -f conftest.$ac_objext
27564 if { (ac_try="$ac_compile"
27565 case "(($ac_try" in
27566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27567 *) ac_try_echo=$ac_try;;
27569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27570 (eval "$ac_compile") 2>conftest.er1
27572 grep -v '^ *+' conftest.er1 >conftest.err
27574 cat conftest.err >&5
27575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27576 (exit $ac_status); } &&
27577 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27578 { (case "(($ac_try" in
27579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27580 *) ac_try_echo=$ac_try;;
27582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27583 (eval "$ac_try") 2>&5
27585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27586 (exit $ac_status); }; } &&
27587 { ac_try='test -s conftest.$ac_objext'
27588 { (case "(($ac_try" in
27589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27590 *) ac_try_echo=$ac_try;;
27592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27593 (eval "$ac_try") 2>&5
27595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27596 (exit $ac_status); }; }; then
27599 cat >conftest.$ac_ext <<_ACEOF
27602 cat confdefs.h >>conftest.$ac_ext
27603 cat >>conftest.$ac_ext <<_ACEOF
27604 /* end confdefs.h. */
27605 $ac_includes_default
27606 typedef long int ac__type_sizeof_;
27610 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
27617 rm -f conftest.$ac_objext
27618 if { (ac_try="$ac_compile"
27619 case "(($ac_try" in
27620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27621 *) ac_try_echo=$ac_try;;
27623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27624 (eval "$ac_compile") 2>conftest.er1
27626 grep -v '^ *+' conftest.er1 >conftest.err
27628 cat conftest.err >&5
27629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27630 (exit $ac_status); } &&
27631 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27632 { (case "(($ac_try" in
27633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27634 *) ac_try_echo=$ac_try;;
27636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27637 (eval "$ac_try") 2>&5
27639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27640 (exit $ac_status); }; } &&
27641 { ac_try='test -s conftest.$ac_objext'
27642 { (case "(($ac_try" in
27643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27644 *) ac_try_echo=$ac_try;;
27646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27647 (eval "$ac_try") 2>&5
27649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27650 (exit $ac_status); }; }; then
27651 ac_hi=$ac_mid; break
27653 echo "$as_me: failed program was:" >&5
27654 sed 's/^/| /' conftest.$ac_ext >&5
27656 ac_lo=`expr $ac_mid + 1`
27657 if test $ac_lo -le $ac_mid; then
27661 ac_mid=`expr 2 '*' $ac_mid + 1`
27664 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27667 echo "$as_me: failed program was:" >&5
27668 sed 's/^/| /' conftest.$ac_ext >&5
27670 cat >conftest.$ac_ext <<_ACEOF
27673 cat confdefs.h >>conftest.$ac_ext
27674 cat >>conftest.$ac_ext <<_ACEOF
27675 /* end confdefs.h. */
27676 $ac_includes_default
27677 typedef long int ac__type_sizeof_;
27681 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
27688 rm -f conftest.$ac_objext
27689 if { (ac_try="$ac_compile"
27690 case "(($ac_try" in
27691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27692 *) ac_try_echo=$ac_try;;
27694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27695 (eval "$ac_compile") 2>conftest.er1
27697 grep -v '^ *+' conftest.er1 >conftest.err
27699 cat conftest.err >&5
27700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27701 (exit $ac_status); } &&
27702 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27703 { (case "(($ac_try" in
27704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27705 *) ac_try_echo=$ac_try;;
27707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27708 (eval "$ac_try") 2>&5
27710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27711 (exit $ac_status); }; } &&
27712 { ac_try='test -s conftest.$ac_objext'
27713 { (case "(($ac_try" in
27714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27715 *) ac_try_echo=$ac_try;;
27717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27718 (eval "$ac_try") 2>&5
27720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27721 (exit $ac_status); }; }; then
27724 cat >conftest.$ac_ext <<_ACEOF
27727 cat confdefs.h >>conftest.$ac_ext
27728 cat >>conftest.$ac_ext <<_ACEOF
27729 /* end confdefs.h. */
27730 $ac_includes_default
27731 typedef long int ac__type_sizeof_;
27735 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
27742 rm -f conftest.$ac_objext
27743 if { (ac_try="$ac_compile"
27744 case "(($ac_try" in
27745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27746 *) ac_try_echo=$ac_try;;
27748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27749 (eval "$ac_compile") 2>conftest.er1
27751 grep -v '^ *+' conftest.er1 >conftest.err
27753 cat conftest.err >&5
27754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27755 (exit $ac_status); } &&
27756 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27757 { (case "(($ac_try" in
27758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27759 *) ac_try_echo=$ac_try;;
27761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27762 (eval "$ac_try") 2>&5
27764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27765 (exit $ac_status); }; } &&
27766 { ac_try='test -s conftest.$ac_objext'
27767 { (case "(($ac_try" in
27768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27769 *) ac_try_echo=$ac_try;;
27771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27772 (eval "$ac_try") 2>&5
27774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27775 (exit $ac_status); }; }; then
27776 ac_lo=$ac_mid; break
27778 echo "$as_me: failed program was:" >&5
27779 sed 's/^/| /' conftest.$ac_ext >&5
27781 ac_hi=`expr '(' $ac_mid ')' - 1`
27782 if test $ac_mid -le $ac_hi; then
27786 ac_mid=`expr 2 '*' $ac_mid`
27789 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27792 echo "$as_me: failed program was:" >&5
27793 sed 's/^/| /' conftest.$ac_ext >&5
27798 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27801 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27802 # Binary search between lo and hi bounds.
27803 while test "x$ac_lo" != "x$ac_hi"; do
27804 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
27805 cat >conftest.$ac_ext <<_ACEOF
27808 cat confdefs.h >>conftest.$ac_ext
27809 cat >>conftest.$ac_ext <<_ACEOF
27810 /* end confdefs.h. */
27811 $ac_includes_default
27812 typedef long int ac__type_sizeof_;
27816 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
27823 rm -f conftest.$ac_objext
27824 if { (ac_try="$ac_compile"
27825 case "(($ac_try" in
27826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27827 *) ac_try_echo=$ac_try;;
27829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27830 (eval "$ac_compile") 2>conftest.er1
27832 grep -v '^ *+' conftest.er1 >conftest.err
27834 cat conftest.err >&5
27835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27836 (exit $ac_status); } &&
27837 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27838 { (case "(($ac_try" in
27839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27840 *) ac_try_echo=$ac_try;;
27842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27843 (eval "$ac_try") 2>&5
27845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27846 (exit $ac_status); }; } &&
27847 { ac_try='test -s conftest.$ac_objext'
27848 { (case "(($ac_try" in
27849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27850 *) ac_try_echo=$ac_try;;
27852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27853 (eval "$ac_try") 2>&5
27855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27856 (exit $ac_status); }; }; then
27859 echo "$as_me: failed program was:" >&5
27860 sed 's/^/| /' conftest.$ac_ext >&5
27862 ac_lo=`expr '(' $ac_mid ')' + 1`
27865 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27868 ?*) ac_cv_sizeof_long_int=$ac_lo;;
27869 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int)
27870 See \`config.log' for more details." >&5
27871 echo "$as_me: error: cannot compute sizeof (long int)
27872 See \`config.log' for more details." >&2;}
27873 { (exit 77); exit 77; }; } ;;
27876 cat >conftest.$ac_ext <<_ACEOF
27879 cat confdefs.h >>conftest.$ac_ext
27880 cat >>conftest.$ac_ext <<_ACEOF
27881 /* end confdefs.h. */
27882 $ac_includes_default
27883 typedef long int ac__type_sizeof_;
27884 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
27885 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
27887 #include <stdlib.h>
27892 FILE *f = fopen ("conftest.val", "w");
27895 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
27897 long int i = longval ();
27898 if (i != ((long int) (sizeof (ac__type_sizeof_))))
27900 fprintf (f, "%ld\n", i);
27904 unsigned long int i = ulongval ();
27905 if (i != ((long int) (sizeof (ac__type_sizeof_))))
27907 fprintf (f, "%lu\n", i);
27909 return ferror (f) || fclose (f) != 0;
27915 rm -f conftest$ac_exeext
27916 if { (ac_try="$ac_link"
27917 case "(($ac_try" in
27918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27919 *) ac_try_echo=$ac_try;;
27921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27922 (eval "$ac_link") 2>&5
27924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27925 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27926 { (case "(($ac_try" in
27927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27928 *) ac_try_echo=$ac_try;;
27930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27931 (eval "$ac_try") 2>&5
27933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27934 (exit $ac_status); }; }; then
27935 ac_cv_sizeof_long_int=`cat conftest.val`
27937 echo "$as_me: program exited with status $ac_status" >&5
27938 echo "$as_me: failed program was:" >&5
27939 sed 's/^/| /' conftest.$ac_ext >&5
27941 ( exit $ac_status )
27942 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int)
27943 See \`config.log' for more details." >&5
27944 echo "$as_me: error: cannot compute sizeof (long int)
27945 See \`config.log' for more details." >&2;}
27946 { (exit 77); exit 77; }; }
27948 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27952 ac_cv_sizeof_long_int=0
27955 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_int" >&5
27956 echo "${ECHO_T}$ac_cv_sizeof_long_int" >&6; }
27957 cat >>confdefs.h <<_ACEOF
27958 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
27962 { echo "$as_me:$LINENO: checking for long long int" >&5
27963 echo $ECHO_N "checking for long long int... $ECHO_C" >&6; }
27964 if test "${ac_cv_type_long_long_int+set}" = set; then
27965 echo $ECHO_N "(cached) $ECHO_C" >&6
27967 cat >conftest.$ac_ext <<_ACEOF
27970 cat confdefs.h >>conftest.$ac_ext
27971 cat >>conftest.$ac_ext <<_ACEOF
27972 /* end confdefs.h. */
27973 $ac_includes_default
27974 typedef long long int ac__type_new_;
27978 if ((ac__type_new_ *) 0)
27980 if (sizeof (ac__type_new_))
27986 rm -f conftest.$ac_objext
27987 if { (ac_try="$ac_compile"
27988 case "(($ac_try" in
27989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27990 *) ac_try_echo=$ac_try;;
27992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27993 (eval "$ac_compile") 2>conftest.er1
27995 grep -v '^ *+' conftest.er1 >conftest.err
27997 cat conftest.err >&5
27998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27999 (exit $ac_status); } &&
28000 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28001 { (case "(($ac_try" in
28002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28003 *) ac_try_echo=$ac_try;;
28005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28006 (eval "$ac_try") 2>&5
28008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28009 (exit $ac_status); }; } &&
28010 { ac_try='test -s conftest.$ac_objext'
28011 { (case "(($ac_try" in
28012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28013 *) ac_try_echo=$ac_try;;
28015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28016 (eval "$ac_try") 2>&5
28018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28019 (exit $ac_status); }; }; then
28020 ac_cv_type_long_long_int=yes
28022 echo "$as_me: failed program was:" >&5
28023 sed 's/^/| /' conftest.$ac_ext >&5
28025 ac_cv_type_long_long_int=no
28028 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28030 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
28031 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6; }
28033 { echo "$as_me:$LINENO: checking size of long long int" >&5
28034 echo $ECHO_N "checking size of long long int... $ECHO_C" >&6; }
28035 if test "${ac_cv_sizeof_long_long_int+set}" = set; then
28036 echo $ECHO_N "(cached) $ECHO_C" >&6
28038 if test "$ac_cv_type_long_long_int" = yes; then
28039 # The cast to long int works around a bug in the HP C Compiler
28040 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
28041 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
28042 # This bug is HP SR number 8606223364.
28043 if test "$cross_compiling" = yes; then
28044 # Depending upon the size, compute the lo and hi bounds.
28045 cat >conftest.$ac_ext <<_ACEOF
28048 cat confdefs.h >>conftest.$ac_ext
28049 cat >>conftest.$ac_ext <<_ACEOF
28050 /* end confdefs.h. */
28051 $ac_includes_default
28052 typedef long long int ac__type_sizeof_;
28056 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
28063 rm -f conftest.$ac_objext
28064 if { (ac_try="$ac_compile"
28065 case "(($ac_try" in
28066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28067 *) ac_try_echo=$ac_try;;
28069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28070 (eval "$ac_compile") 2>conftest.er1
28072 grep -v '^ *+' conftest.er1 >conftest.err
28074 cat conftest.err >&5
28075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28076 (exit $ac_status); } &&
28077 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28078 { (case "(($ac_try" in
28079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28080 *) ac_try_echo=$ac_try;;
28082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28083 (eval "$ac_try") 2>&5
28085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28086 (exit $ac_status); }; } &&
28087 { ac_try='test -s conftest.$ac_objext'
28088 { (case "(($ac_try" in
28089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28090 *) ac_try_echo=$ac_try;;
28092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28093 (eval "$ac_try") 2>&5
28095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28096 (exit $ac_status); }; }; then
28099 cat >conftest.$ac_ext <<_ACEOF
28102 cat confdefs.h >>conftest.$ac_ext
28103 cat >>conftest.$ac_ext <<_ACEOF
28104 /* end confdefs.h. */
28105 $ac_includes_default
28106 typedef long long int ac__type_sizeof_;
28110 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
28117 rm -f conftest.$ac_objext
28118 if { (ac_try="$ac_compile"
28119 case "(($ac_try" in
28120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28121 *) ac_try_echo=$ac_try;;
28123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28124 (eval "$ac_compile") 2>conftest.er1
28126 grep -v '^ *+' conftest.er1 >conftest.err
28128 cat conftest.err >&5
28129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28130 (exit $ac_status); } &&
28131 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28132 { (case "(($ac_try" in
28133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28134 *) ac_try_echo=$ac_try;;
28136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28137 (eval "$ac_try") 2>&5
28139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28140 (exit $ac_status); }; } &&
28141 { ac_try='test -s conftest.$ac_objext'
28142 { (case "(($ac_try" in
28143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28144 *) ac_try_echo=$ac_try;;
28146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28147 (eval "$ac_try") 2>&5
28149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28150 (exit $ac_status); }; }; then
28151 ac_hi=$ac_mid; break
28153 echo "$as_me: failed program was:" >&5
28154 sed 's/^/| /' conftest.$ac_ext >&5
28156 ac_lo=`expr $ac_mid + 1`
28157 if test $ac_lo -le $ac_mid; then
28161 ac_mid=`expr 2 '*' $ac_mid + 1`
28164 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28167 echo "$as_me: failed program was:" >&5
28168 sed 's/^/| /' conftest.$ac_ext >&5
28170 cat >conftest.$ac_ext <<_ACEOF
28173 cat confdefs.h >>conftest.$ac_ext
28174 cat >>conftest.$ac_ext <<_ACEOF
28175 /* end confdefs.h. */
28176 $ac_includes_default
28177 typedef long long int ac__type_sizeof_;
28181 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
28188 rm -f conftest.$ac_objext
28189 if { (ac_try="$ac_compile"
28190 case "(($ac_try" in
28191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28192 *) ac_try_echo=$ac_try;;
28194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28195 (eval "$ac_compile") 2>conftest.er1
28197 grep -v '^ *+' conftest.er1 >conftest.err
28199 cat conftest.err >&5
28200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28201 (exit $ac_status); } &&
28202 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28203 { (case "(($ac_try" in
28204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28205 *) ac_try_echo=$ac_try;;
28207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28208 (eval "$ac_try") 2>&5
28210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28211 (exit $ac_status); }; } &&
28212 { ac_try='test -s conftest.$ac_objext'
28213 { (case "(($ac_try" in
28214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28215 *) ac_try_echo=$ac_try;;
28217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28218 (eval "$ac_try") 2>&5
28220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28221 (exit $ac_status); }; }; then
28224 cat >conftest.$ac_ext <<_ACEOF
28227 cat confdefs.h >>conftest.$ac_ext
28228 cat >>conftest.$ac_ext <<_ACEOF
28229 /* end confdefs.h. */
28230 $ac_includes_default
28231 typedef long long int ac__type_sizeof_;
28235 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
28242 rm -f conftest.$ac_objext
28243 if { (ac_try="$ac_compile"
28244 case "(($ac_try" in
28245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28246 *) ac_try_echo=$ac_try;;
28248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28249 (eval "$ac_compile") 2>conftest.er1
28251 grep -v '^ *+' conftest.er1 >conftest.err
28253 cat conftest.err >&5
28254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28255 (exit $ac_status); } &&
28256 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28257 { (case "(($ac_try" in
28258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28259 *) ac_try_echo=$ac_try;;
28261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28262 (eval "$ac_try") 2>&5
28264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28265 (exit $ac_status); }; } &&
28266 { ac_try='test -s conftest.$ac_objext'
28267 { (case "(($ac_try" in
28268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28269 *) ac_try_echo=$ac_try;;
28271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28272 (eval "$ac_try") 2>&5
28274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28275 (exit $ac_status); }; }; then
28276 ac_lo=$ac_mid; break
28278 echo "$as_me: failed program was:" >&5
28279 sed 's/^/| /' conftest.$ac_ext >&5
28281 ac_hi=`expr '(' $ac_mid ')' - 1`
28282 if test $ac_mid -le $ac_hi; then
28286 ac_mid=`expr 2 '*' $ac_mid`
28289 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28292 echo "$as_me: failed program was:" >&5
28293 sed 's/^/| /' conftest.$ac_ext >&5
28298 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28301 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28302 # Binary search between lo and hi bounds.
28303 while test "x$ac_lo" != "x$ac_hi"; do
28304 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
28305 cat >conftest.$ac_ext <<_ACEOF
28308 cat confdefs.h >>conftest.$ac_ext
28309 cat >>conftest.$ac_ext <<_ACEOF
28310 /* end confdefs.h. */
28311 $ac_includes_default
28312 typedef long long int ac__type_sizeof_;
28316 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
28323 rm -f conftest.$ac_objext
28324 if { (ac_try="$ac_compile"
28325 case "(($ac_try" in
28326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28327 *) ac_try_echo=$ac_try;;
28329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28330 (eval "$ac_compile") 2>conftest.er1
28332 grep -v '^ *+' conftest.er1 >conftest.err
28334 cat conftest.err >&5
28335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28336 (exit $ac_status); } &&
28337 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28338 { (case "(($ac_try" in
28339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28340 *) ac_try_echo=$ac_try;;
28342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28343 (eval "$ac_try") 2>&5
28345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28346 (exit $ac_status); }; } &&
28347 { ac_try='test -s conftest.$ac_objext'
28348 { (case "(($ac_try" in
28349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28350 *) ac_try_echo=$ac_try;;
28352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28353 (eval "$ac_try") 2>&5
28355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28356 (exit $ac_status); }; }; then
28359 echo "$as_me: failed program was:" >&5
28360 sed 's/^/| /' conftest.$ac_ext >&5
28362 ac_lo=`expr '(' $ac_mid ')' + 1`
28365 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28368 ?*) ac_cv_sizeof_long_long_int=$ac_lo;;
28369 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int)
28370 See \`config.log' for more details." >&5
28371 echo "$as_me: error: cannot compute sizeof (long long int)
28372 See \`config.log' for more details." >&2;}
28373 { (exit 77); exit 77; }; } ;;
28376 cat >conftest.$ac_ext <<_ACEOF
28379 cat confdefs.h >>conftest.$ac_ext
28380 cat >>conftest.$ac_ext <<_ACEOF
28381 /* end confdefs.h. */
28382 $ac_includes_default
28383 typedef long long int ac__type_sizeof_;
28384 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
28385 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
28387 #include <stdlib.h>
28392 FILE *f = fopen ("conftest.val", "w");
28395 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
28397 long int i = longval ();
28398 if (i != ((long int) (sizeof (ac__type_sizeof_))))
28400 fprintf (f, "%ld\n", i);
28404 unsigned long int i = ulongval ();
28405 if (i != ((long int) (sizeof (ac__type_sizeof_))))
28407 fprintf (f, "%lu\n", i);
28409 return ferror (f) || fclose (f) != 0;
28415 rm -f conftest$ac_exeext
28416 if { (ac_try="$ac_link"
28417 case "(($ac_try" in
28418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28419 *) ac_try_echo=$ac_try;;
28421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28422 (eval "$ac_link") 2>&5
28424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28425 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28426 { (case "(($ac_try" in
28427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28428 *) ac_try_echo=$ac_try;;
28430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28431 (eval "$ac_try") 2>&5
28433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28434 (exit $ac_status); }; }; then
28435 ac_cv_sizeof_long_long_int=`cat conftest.val`
28437 echo "$as_me: program exited with status $ac_status" >&5
28438 echo "$as_me: failed program was:" >&5
28439 sed 's/^/| /' conftest.$ac_ext >&5
28441 ( exit $ac_status )
28442 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int)
28443 See \`config.log' for more details." >&5
28444 echo "$as_me: error: cannot compute sizeof (long long int)
28445 See \`config.log' for more details." >&2;}
28446 { (exit 77); exit 77; }; }
28448 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28452 ac_cv_sizeof_long_long_int=0
28455 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long_int" >&5
28456 echo "${ECHO_T}$ac_cv_sizeof_long_long_int" >&6; }
28457 cat >>confdefs.h <<_ACEOF
28458 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
28462 { echo "$as_me:$LINENO: checking for int *" >&5
28463 echo $ECHO_N "checking for int *... $ECHO_C" >&6; }
28464 if test "${ac_cv_type_int_p+set}" = set; then
28465 echo $ECHO_N "(cached) $ECHO_C" >&6
28467 cat >conftest.$ac_ext <<_ACEOF
28470 cat confdefs.h >>conftest.$ac_ext
28471 cat >>conftest.$ac_ext <<_ACEOF
28472 /* end confdefs.h. */
28473 $ac_includes_default
28474 typedef int * ac__type_new_;
28478 if ((ac__type_new_ *) 0)
28480 if (sizeof (ac__type_new_))
28486 rm -f conftest.$ac_objext
28487 if { (ac_try="$ac_compile"
28488 case "(($ac_try" in
28489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28490 *) ac_try_echo=$ac_try;;
28492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28493 (eval "$ac_compile") 2>conftest.er1
28495 grep -v '^ *+' conftest.er1 >conftest.err
28497 cat conftest.err >&5
28498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28499 (exit $ac_status); } &&
28500 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28501 { (case "(($ac_try" in
28502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28503 *) ac_try_echo=$ac_try;;
28505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28506 (eval "$ac_try") 2>&5
28508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28509 (exit $ac_status); }; } &&
28510 { ac_try='test -s conftest.$ac_objext'
28511 { (case "(($ac_try" in
28512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28513 *) ac_try_echo=$ac_try;;
28515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28516 (eval "$ac_try") 2>&5
28518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28519 (exit $ac_status); }; }; then
28520 ac_cv_type_int_p=yes
28522 echo "$as_me: failed program was:" >&5
28523 sed 's/^/| /' conftest.$ac_ext >&5
28525 ac_cv_type_int_p=no
28528 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28530 { echo "$as_me:$LINENO: result: $ac_cv_type_int_p" >&5
28531 echo "${ECHO_T}$ac_cv_type_int_p" >&6; }
28533 { echo "$as_me:$LINENO: checking size of int *" >&5
28534 echo $ECHO_N "checking size of int *... $ECHO_C" >&6; }
28535 if test "${ac_cv_sizeof_int_p+set}" = set; then
28536 echo $ECHO_N "(cached) $ECHO_C" >&6
28538 if test "$ac_cv_type_int_p" = yes; then
28539 # The cast to long int works around a bug in the HP C Compiler
28540 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
28541 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
28542 # This bug is HP SR number 8606223364.
28543 if test "$cross_compiling" = yes; then
28544 # Depending upon the size, compute the lo and hi bounds.
28545 cat >conftest.$ac_ext <<_ACEOF
28548 cat confdefs.h >>conftest.$ac_ext
28549 cat >>conftest.$ac_ext <<_ACEOF
28550 /* end confdefs.h. */
28551 $ac_includes_default
28552 typedef int * ac__type_sizeof_;
28556 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
28563 rm -f conftest.$ac_objext
28564 if { (ac_try="$ac_compile"
28565 case "(($ac_try" in
28566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28567 *) ac_try_echo=$ac_try;;
28569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28570 (eval "$ac_compile") 2>conftest.er1
28572 grep -v '^ *+' conftest.er1 >conftest.err
28574 cat conftest.err >&5
28575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28576 (exit $ac_status); } &&
28577 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28578 { (case "(($ac_try" in
28579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28580 *) ac_try_echo=$ac_try;;
28582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28583 (eval "$ac_try") 2>&5
28585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28586 (exit $ac_status); }; } &&
28587 { ac_try='test -s conftest.$ac_objext'
28588 { (case "(($ac_try" in
28589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28590 *) ac_try_echo=$ac_try;;
28592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28593 (eval "$ac_try") 2>&5
28595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28596 (exit $ac_status); }; }; then
28599 cat >conftest.$ac_ext <<_ACEOF
28602 cat confdefs.h >>conftest.$ac_ext
28603 cat >>conftest.$ac_ext <<_ACEOF
28604 /* end confdefs.h. */
28605 $ac_includes_default
28606 typedef int * ac__type_sizeof_;
28610 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
28617 rm -f conftest.$ac_objext
28618 if { (ac_try="$ac_compile"
28619 case "(($ac_try" in
28620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28621 *) ac_try_echo=$ac_try;;
28623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28624 (eval "$ac_compile") 2>conftest.er1
28626 grep -v '^ *+' conftest.er1 >conftest.err
28628 cat conftest.err >&5
28629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28630 (exit $ac_status); } &&
28631 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28632 { (case "(($ac_try" in
28633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28634 *) ac_try_echo=$ac_try;;
28636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28637 (eval "$ac_try") 2>&5
28639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28640 (exit $ac_status); }; } &&
28641 { ac_try='test -s conftest.$ac_objext'
28642 { (case "(($ac_try" in
28643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28644 *) ac_try_echo=$ac_try;;
28646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28647 (eval "$ac_try") 2>&5
28649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28650 (exit $ac_status); }; }; then
28651 ac_hi=$ac_mid; break
28653 echo "$as_me: failed program was:" >&5
28654 sed 's/^/| /' conftest.$ac_ext >&5
28656 ac_lo=`expr $ac_mid + 1`
28657 if test $ac_lo -le $ac_mid; then
28661 ac_mid=`expr 2 '*' $ac_mid + 1`
28664 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28667 echo "$as_me: failed program was:" >&5
28668 sed 's/^/| /' conftest.$ac_ext >&5
28670 cat >conftest.$ac_ext <<_ACEOF
28673 cat confdefs.h >>conftest.$ac_ext
28674 cat >>conftest.$ac_ext <<_ACEOF
28675 /* end confdefs.h. */
28676 $ac_includes_default
28677 typedef int * ac__type_sizeof_;
28681 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
28688 rm -f conftest.$ac_objext
28689 if { (ac_try="$ac_compile"
28690 case "(($ac_try" in
28691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28692 *) ac_try_echo=$ac_try;;
28694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28695 (eval "$ac_compile") 2>conftest.er1
28697 grep -v '^ *+' conftest.er1 >conftest.err
28699 cat conftest.err >&5
28700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28701 (exit $ac_status); } &&
28702 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28703 { (case "(($ac_try" in
28704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28705 *) ac_try_echo=$ac_try;;
28707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28708 (eval "$ac_try") 2>&5
28710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28711 (exit $ac_status); }; } &&
28712 { ac_try='test -s conftest.$ac_objext'
28713 { (case "(($ac_try" in
28714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28715 *) ac_try_echo=$ac_try;;
28717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28718 (eval "$ac_try") 2>&5
28720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28721 (exit $ac_status); }; }; then
28724 cat >conftest.$ac_ext <<_ACEOF
28727 cat confdefs.h >>conftest.$ac_ext
28728 cat >>conftest.$ac_ext <<_ACEOF
28729 /* end confdefs.h. */
28730 $ac_includes_default
28731 typedef int * ac__type_sizeof_;
28735 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
28742 rm -f conftest.$ac_objext
28743 if { (ac_try="$ac_compile"
28744 case "(($ac_try" in
28745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28746 *) ac_try_echo=$ac_try;;
28748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28749 (eval "$ac_compile") 2>conftest.er1
28751 grep -v '^ *+' conftest.er1 >conftest.err
28753 cat conftest.err >&5
28754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28755 (exit $ac_status); } &&
28756 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28757 { (case "(($ac_try" in
28758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28759 *) ac_try_echo=$ac_try;;
28761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28762 (eval "$ac_try") 2>&5
28764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28765 (exit $ac_status); }; } &&
28766 { ac_try='test -s conftest.$ac_objext'
28767 { (case "(($ac_try" in
28768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28769 *) ac_try_echo=$ac_try;;
28771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28772 (eval "$ac_try") 2>&5
28774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28775 (exit $ac_status); }; }; then
28776 ac_lo=$ac_mid; break
28778 echo "$as_me: failed program was:" >&5
28779 sed 's/^/| /' conftest.$ac_ext >&5
28781 ac_hi=`expr '(' $ac_mid ')' - 1`
28782 if test $ac_mid -le $ac_hi; then
28786 ac_mid=`expr 2 '*' $ac_mid`
28789 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28792 echo "$as_me: failed program was:" >&5
28793 sed 's/^/| /' conftest.$ac_ext >&5
28798 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28801 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28802 # Binary search between lo and hi bounds.
28803 while test "x$ac_lo" != "x$ac_hi"; do
28804 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
28805 cat >conftest.$ac_ext <<_ACEOF
28808 cat confdefs.h >>conftest.$ac_ext
28809 cat >>conftest.$ac_ext <<_ACEOF
28810 /* end confdefs.h. */
28811 $ac_includes_default
28812 typedef int * ac__type_sizeof_;
28816 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
28823 rm -f conftest.$ac_objext
28824 if { (ac_try="$ac_compile"
28825 case "(($ac_try" in
28826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28827 *) ac_try_echo=$ac_try;;
28829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28830 (eval "$ac_compile") 2>conftest.er1
28832 grep -v '^ *+' conftest.er1 >conftest.err
28834 cat conftest.err >&5
28835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28836 (exit $ac_status); } &&
28837 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28838 { (case "(($ac_try" in
28839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28840 *) ac_try_echo=$ac_try;;
28842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28843 (eval "$ac_try") 2>&5
28845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28846 (exit $ac_status); }; } &&
28847 { ac_try='test -s conftest.$ac_objext'
28848 { (case "(($ac_try" in
28849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28850 *) ac_try_echo=$ac_try;;
28852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28853 (eval "$ac_try") 2>&5
28855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28856 (exit $ac_status); }; }; then
28859 echo "$as_me: failed program was:" >&5
28860 sed 's/^/| /' conftest.$ac_ext >&5
28862 ac_lo=`expr '(' $ac_mid ')' + 1`
28865 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28868 ?*) ac_cv_sizeof_int_p=$ac_lo;;
28869 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *)
28870 See \`config.log' for more details." >&5
28871 echo "$as_me: error: cannot compute sizeof (int *)
28872 See \`config.log' for more details." >&2;}
28873 { (exit 77); exit 77; }; } ;;
28876 cat >conftest.$ac_ext <<_ACEOF
28879 cat confdefs.h >>conftest.$ac_ext
28880 cat >>conftest.$ac_ext <<_ACEOF
28881 /* end confdefs.h. */
28882 $ac_includes_default
28883 typedef int * ac__type_sizeof_;
28884 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
28885 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
28887 #include <stdlib.h>
28892 FILE *f = fopen ("conftest.val", "w");
28895 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
28897 long int i = longval ();
28898 if (i != ((long int) (sizeof (ac__type_sizeof_))))
28900 fprintf (f, "%ld\n", i);
28904 unsigned long int i = ulongval ();
28905 if (i != ((long int) (sizeof (ac__type_sizeof_))))
28907 fprintf (f, "%lu\n", i);
28909 return ferror (f) || fclose (f) != 0;
28915 rm -f conftest$ac_exeext
28916 if { (ac_try="$ac_link"
28917 case "(($ac_try" in
28918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28919 *) ac_try_echo=$ac_try;;
28921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28922 (eval "$ac_link") 2>&5
28924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28925 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28926 { (case "(($ac_try" in
28927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28928 *) ac_try_echo=$ac_try;;
28930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28931 (eval "$ac_try") 2>&5
28933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28934 (exit $ac_status); }; }; then
28935 ac_cv_sizeof_int_p=`cat conftest.val`
28937 echo "$as_me: program exited with status $ac_status" >&5
28938 echo "$as_me: failed program was:" >&5
28939 sed 's/^/| /' conftest.$ac_ext >&5
28941 ( exit $ac_status )
28942 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *)
28943 See \`config.log' for more details." >&5
28944 echo "$as_me: error: cannot compute sizeof (int *)
28945 See \`config.log' for more details." >&2;}
28946 { (exit 77); exit 77; }; }
28948 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28952 ac_cv_sizeof_int_p=0
28955 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int_p" >&5
28956 echo "${ECHO_T}$ac_cv_sizeof_int_p" >&6; }
28957 cat >>confdefs.h <<_ACEOF
28958 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
28963 # Check for sys/types.h types
28964 { echo "$as_me:$LINENO: checking for u_int type" >&5
28965 echo $ECHO_N "checking for u_int type... $ECHO_C" >&6; }
28966 if test "${ac_cv_have_u_int+set}" = set; then
28967 echo $ECHO_N "(cached) $ECHO_C" >&6
28970 cat >conftest.$ac_ext <<_ACEOF
28973 cat confdefs.h >>conftest.$ac_ext
28974 cat >>conftest.$ac_ext <<_ACEOF
28975 /* end confdefs.h. */
28976 #include <sys/types.h>
28985 rm -f conftest.$ac_objext
28986 if { (ac_try="$ac_compile"
28987 case "(($ac_try" in
28988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28989 *) ac_try_echo=$ac_try;;
28991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28992 (eval "$ac_compile") 2>conftest.er1
28994 grep -v '^ *+' conftest.er1 >conftest.err
28996 cat conftest.err >&5
28997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28998 (exit $ac_status); } &&
28999 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29000 { (case "(($ac_try" in
29001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29002 *) ac_try_echo=$ac_try;;
29004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29005 (eval "$ac_try") 2>&5
29007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29008 (exit $ac_status); }; } &&
29009 { ac_try='test -s conftest.$ac_objext'
29010 { (case "(($ac_try" in
29011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29012 *) ac_try_echo=$ac_try;;
29014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29015 (eval "$ac_try") 2>&5
29017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29018 (exit $ac_status); }; }; then
29019 ac_cv_have_u_int="yes"
29021 echo "$as_me: failed program was:" >&5
29022 sed 's/^/| /' conftest.$ac_ext >&5
29024 ac_cv_have_u_int="no"
29028 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29031 { echo "$as_me:$LINENO: result: $ac_cv_have_u_int" >&5
29032 echo "${ECHO_T}$ac_cv_have_u_int" >&6; }
29033 if test "x$ac_cv_have_u_int" = "xyes" ; then
29034 cat >>confdefs.h <<\_ACEOF
29035 #define HAVE_U_INT 1
29041 { echo "$as_me:$LINENO: checking for intmax_t type" >&5
29042 echo $ECHO_N "checking for intmax_t type... $ECHO_C" >&6; }
29043 if test "${ac_cv_have_intmax_t+set}" = set; then
29044 echo $ECHO_N "(cached) $ECHO_C" >&6
29047 cat >conftest.$ac_ext <<_ACEOF
29050 cat confdefs.h >>conftest.$ac_ext
29051 cat >>conftest.$ac_ext <<_ACEOF
29052 /* end confdefs.h. */
29053 #include <sys/types.h>
29062 rm -f conftest.$ac_objext
29063 if { (ac_try="$ac_compile"
29064 case "(($ac_try" in
29065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29066 *) ac_try_echo=$ac_try;;
29068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29069 (eval "$ac_compile") 2>conftest.er1
29071 grep -v '^ *+' conftest.er1 >conftest.err
29073 cat conftest.err >&5
29074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29075 (exit $ac_status); } &&
29076 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29077 { (case "(($ac_try" in
29078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29079 *) ac_try_echo=$ac_try;;
29081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29082 (eval "$ac_try") 2>&5
29084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29085 (exit $ac_status); }; } &&
29086 { ac_try='test -s conftest.$ac_objext'
29087 { (case "(($ac_try" in
29088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29089 *) ac_try_echo=$ac_try;;
29091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29092 (eval "$ac_try") 2>&5
29094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29095 (exit $ac_status); }; }; then
29096 ac_cv_have_intmax_t="yes"
29098 echo "$as_me: failed program was:" >&5
29099 sed 's/^/| /' conftest.$ac_ext >&5
29102 cat >conftest.$ac_ext <<_ACEOF
29105 cat confdefs.h >>conftest.$ac_ext
29106 cat >>conftest.$ac_ext <<_ACEOF
29107 /* end confdefs.h. */
29108 #include <stdint.h>
29117 rm -f conftest.$ac_objext
29118 if { (ac_try="$ac_compile"
29119 case "(($ac_try" in
29120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29121 *) ac_try_echo=$ac_try;;
29123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29124 (eval "$ac_compile") 2>conftest.er1
29126 grep -v '^ *+' conftest.er1 >conftest.err
29128 cat conftest.err >&5
29129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29130 (exit $ac_status); } &&
29131 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29132 { (case "(($ac_try" in
29133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29134 *) ac_try_echo=$ac_try;;
29136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29137 (eval "$ac_try") 2>&5
29139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29140 (exit $ac_status); }; } &&
29141 { ac_try='test -s conftest.$ac_objext'
29142 { (case "(($ac_try" in
29143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29144 *) ac_try_echo=$ac_try;;
29146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29147 (eval "$ac_try") 2>&5
29149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29150 (exit $ac_status); }; }; then
29151 ac_cv_have_intmax_t="yes"
29153 echo "$as_me: failed program was:" >&5
29154 sed 's/^/| /' conftest.$ac_ext >&5
29156 ac_cv_have_intmax_t="no"
29160 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29165 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29169 { echo "$as_me:$LINENO: result: $ac_cv_have_intmax_t" >&5
29170 echo "${ECHO_T}$ac_cv_have_intmax_t" >&6; }
29171 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
29172 cat >>confdefs.h <<\_ACEOF
29173 #define HAVE_INTMAX_T 1
29180 { echo "$as_me:$LINENO: checking for u_intmax_t type" >&5
29181 echo $ECHO_N "checking for u_intmax_t type... $ECHO_C" >&6; }
29182 if test "${ac_cv_have_u_intmax_t+set}" = set; then
29183 echo $ECHO_N "(cached) $ECHO_C" >&6
29186 cat >conftest.$ac_ext <<_ACEOF
29189 cat confdefs.h >>conftest.$ac_ext
29190 cat >>conftest.$ac_ext <<_ACEOF
29191 /* end confdefs.h. */
29192 #include <sys/types.h>
29196 u_intmax_t a; a = 1;
29201 rm -f conftest.$ac_objext
29202 if { (ac_try="$ac_compile"
29203 case "(($ac_try" in
29204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29205 *) ac_try_echo=$ac_try;;
29207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29208 (eval "$ac_compile") 2>conftest.er1
29210 grep -v '^ *+' conftest.er1 >conftest.err
29212 cat conftest.err >&5
29213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29214 (exit $ac_status); } &&
29215 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29216 { (case "(($ac_try" in
29217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29218 *) ac_try_echo=$ac_try;;
29220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29221 (eval "$ac_try") 2>&5
29223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29224 (exit $ac_status); }; } &&
29225 { ac_try='test -s conftest.$ac_objext'
29226 { (case "(($ac_try" in
29227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29228 *) ac_try_echo=$ac_try;;
29230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29231 (eval "$ac_try") 2>&5
29233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29234 (exit $ac_status); }; }; then
29235 ac_cv_have_u_intmax_t="yes"
29237 echo "$as_me: failed program was:" >&5
29238 sed 's/^/| /' conftest.$ac_ext >&5
29241 cat >conftest.$ac_ext <<_ACEOF
29244 cat confdefs.h >>conftest.$ac_ext
29245 cat >>conftest.$ac_ext <<_ACEOF
29246 /* end confdefs.h. */
29247 #include <stdint.h>
29251 u_intmax_t a; a = 1;
29256 rm -f conftest.$ac_objext
29257 if { (ac_try="$ac_compile"
29258 case "(($ac_try" in
29259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29260 *) ac_try_echo=$ac_try;;
29262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29263 (eval "$ac_compile") 2>conftest.er1
29265 grep -v '^ *+' conftest.er1 >conftest.err
29267 cat conftest.err >&5
29268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29269 (exit $ac_status); } &&
29270 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29271 { (case "(($ac_try" in
29272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29273 *) ac_try_echo=$ac_try;;
29275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29276 (eval "$ac_try") 2>&5
29278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29279 (exit $ac_status); }; } &&
29280 { ac_try='test -s conftest.$ac_objext'
29281 { (case "(($ac_try" in
29282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29283 *) ac_try_echo=$ac_try;;
29285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29286 (eval "$ac_try") 2>&5
29288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29289 (exit $ac_status); }; }; then
29290 ac_cv_have_u_intmax_t="yes"
29292 echo "$as_me: failed program was:" >&5
29293 sed 's/^/| /' conftest.$ac_ext >&5
29295 ac_cv_have_u_intmax_t="no"
29299 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29304 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29307 { echo "$as_me:$LINENO: result: $ac_cv_have_u_intmax_t" >&5
29308 echo "${ECHO_T}$ac_cv_have_u_intmax_t" >&6; }
29309 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
29310 cat >>confdefs.h <<\_ACEOF
29311 #define HAVE_U_INTMAX_T 1
29318 { echo "$as_me:$LINENO: checking for intXX_t types" >&5
29319 echo $ECHO_N "checking for intXX_t types... $ECHO_C" >&6; }
29320 if test "${ac_cv_have_intxx_t+set}" = set; then
29321 echo $ECHO_N "(cached) $ECHO_C" >&6
29324 cat >conftest.$ac_ext <<_ACEOF
29327 cat confdefs.h >>conftest.$ac_ext
29328 cat >>conftest.$ac_ext <<_ACEOF
29329 /* end confdefs.h. */
29330 #include <sys/types.h>
29334 int8_t a; int16_t b; int32_t c; a = b = c = 1;
29339 rm -f conftest.$ac_objext
29340 if { (ac_try="$ac_compile"
29341 case "(($ac_try" in
29342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29343 *) ac_try_echo=$ac_try;;
29345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29346 (eval "$ac_compile") 2>conftest.er1
29348 grep -v '^ *+' conftest.er1 >conftest.err
29350 cat conftest.err >&5
29351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29352 (exit $ac_status); } &&
29353 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29354 { (case "(($ac_try" in
29355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29356 *) ac_try_echo=$ac_try;;
29358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29359 (eval "$ac_try") 2>&5
29361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29362 (exit $ac_status); }; } &&
29363 { ac_try='test -s conftest.$ac_objext'
29364 { (case "(($ac_try" in
29365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29366 *) ac_try_echo=$ac_try;;
29368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29369 (eval "$ac_try") 2>&5
29371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29372 (exit $ac_status); }; }; then
29373 ac_cv_have_intxx_t="yes"
29375 echo "$as_me: failed program was:" >&5
29376 sed 's/^/| /' conftest.$ac_ext >&5
29378 ac_cv_have_intxx_t="no"
29382 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29385 { echo "$as_me:$LINENO: result: $ac_cv_have_intxx_t" >&5
29386 echo "${ECHO_T}$ac_cv_have_intxx_t" >&6; }
29387 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
29388 cat >>confdefs.h <<\_ACEOF
29389 #define HAVE_INTXX_T 1
29395 { echo "$as_me:$LINENO: checking for int64_t type" >&5
29396 echo $ECHO_N "checking for int64_t type... $ECHO_C" >&6; }
29397 if test "${ac_cv_have_int64_t+set}" = set; then
29398 echo $ECHO_N "(cached) $ECHO_C" >&6
29401 cat >conftest.$ac_ext <<_ACEOF
29404 cat confdefs.h >>conftest.$ac_ext
29405 cat >>conftest.$ac_ext <<_ACEOF
29406 /* end confdefs.h. */
29407 #include <sys/types.h>
29416 rm -f conftest.$ac_objext
29417 if { (ac_try="$ac_compile"
29418 case "(($ac_try" in
29419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29420 *) ac_try_echo=$ac_try;;
29422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29423 (eval "$ac_compile") 2>conftest.er1
29425 grep -v '^ *+' conftest.er1 >conftest.err
29427 cat conftest.err >&5
29428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29429 (exit $ac_status); } &&
29430 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29431 { (case "(($ac_try" in
29432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29433 *) ac_try_echo=$ac_try;;
29435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29436 (eval "$ac_try") 2>&5
29438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29439 (exit $ac_status); }; } &&
29440 { ac_try='test -s conftest.$ac_objext'
29441 { (case "(($ac_try" in
29442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29443 *) ac_try_echo=$ac_try;;
29445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29446 (eval "$ac_try") 2>&5
29448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29449 (exit $ac_status); }; }; then
29450 ac_cv_have_int64_t="yes"
29452 echo "$as_me: failed program was:" >&5
29453 sed 's/^/| /' conftest.$ac_ext >&5
29455 ac_cv_have_int64_t="no"
29459 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29462 { echo "$as_me:$LINENO: result: $ac_cv_have_int64_t" >&5
29463 echo "${ECHO_T}$ac_cv_have_int64_t" >&6; }
29464 if test "x$ac_cv_have_int64_t" = "xyes" ; then
29465 cat >>confdefs.h <<\_ACEOF
29466 #define HAVE_INT64_T 1
29472 { echo "$as_me:$LINENO: checking for u_intXX_t types" >&5
29473 echo $ECHO_N "checking for u_intXX_t types... $ECHO_C" >&6; }
29474 if test "${ac_cv_have_u_intxx_t+set}" = set; then
29475 echo $ECHO_N "(cached) $ECHO_C" >&6
29478 cat >conftest.$ac_ext <<_ACEOF
29481 cat confdefs.h >>conftest.$ac_ext
29482 cat >>conftest.$ac_ext <<_ACEOF
29483 /* end confdefs.h. */
29484 #include <sys/types.h>
29488 u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
29493 rm -f conftest.$ac_objext
29494 if { (ac_try="$ac_compile"
29495 case "(($ac_try" in
29496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29497 *) ac_try_echo=$ac_try;;
29499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29500 (eval "$ac_compile") 2>conftest.er1
29502 grep -v '^ *+' conftest.er1 >conftest.err
29504 cat conftest.err >&5
29505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29506 (exit $ac_status); } &&
29507 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29508 { (case "(($ac_try" in
29509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29510 *) ac_try_echo=$ac_try;;
29512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29513 (eval "$ac_try") 2>&5
29515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29516 (exit $ac_status); }; } &&
29517 { ac_try='test -s conftest.$ac_objext'
29518 { (case "(($ac_try" in
29519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29520 *) ac_try_echo=$ac_try;;
29522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29523 (eval "$ac_try") 2>&5
29525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29526 (exit $ac_status); }; }; then
29527 ac_cv_have_u_intxx_t="yes"
29529 echo "$as_me: failed program was:" >&5
29530 sed 's/^/| /' conftest.$ac_ext >&5
29532 ac_cv_have_u_intxx_t="no"
29536 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29539 { echo "$as_me:$LINENO: result: $ac_cv_have_u_intxx_t" >&5
29540 echo "${ECHO_T}$ac_cv_have_u_intxx_t" >&6; }
29541 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
29542 cat >>confdefs.h <<\_ACEOF
29543 #define HAVE_U_INTXX_T 1
29549 { echo "$as_me:$LINENO: checking for u_int64_t types" >&5
29550 echo $ECHO_N "checking for u_int64_t types... $ECHO_C" >&6; }
29551 if test "${ac_cv_have_u_int64_t+set}" = set; then
29552 echo $ECHO_N "(cached) $ECHO_C" >&6
29555 cat >conftest.$ac_ext <<_ACEOF
29558 cat confdefs.h >>conftest.$ac_ext
29559 cat >>conftest.$ac_ext <<_ACEOF
29560 /* end confdefs.h. */
29561 #include <sys/types.h>
29565 u_int64_t a; a = 1;
29570 rm -f conftest.$ac_objext
29571 if { (ac_try="$ac_compile"
29572 case "(($ac_try" in
29573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29574 *) ac_try_echo=$ac_try;;
29576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29577 (eval "$ac_compile") 2>conftest.er1
29579 grep -v '^ *+' conftest.er1 >conftest.err
29581 cat conftest.err >&5
29582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29583 (exit $ac_status); } &&
29584 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29585 { (case "(($ac_try" in
29586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29587 *) ac_try_echo=$ac_try;;
29589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29590 (eval "$ac_try") 2>&5
29592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29593 (exit $ac_status); }; } &&
29594 { ac_try='test -s conftest.$ac_objext'
29595 { (case "(($ac_try" in
29596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29597 *) ac_try_echo=$ac_try;;
29599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29600 (eval "$ac_try") 2>&5
29602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29603 (exit $ac_status); }; }; then
29604 ac_cv_have_u_int64_t="yes"
29606 echo "$as_me: failed program was:" >&5
29607 sed 's/^/| /' conftest.$ac_ext >&5
29609 ac_cv_have_u_int64_t="no"
29613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29616 { echo "$as_me:$LINENO: result: $ac_cv_have_u_int64_t" >&5
29617 echo "${ECHO_T}$ac_cv_have_u_int64_t" >&6; }
29618 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
29619 cat >>confdefs.h <<\_ACEOF
29620 #define HAVE_U_INT64_T 1
29626 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
29627 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
29629 { echo "$as_me:$LINENO: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
29630 echo $ECHO_N "checking for intXX_t and u_intXX_t types in sys/bitypes.h... $ECHO_C" >&6; }
29631 cat >conftest.$ac_ext <<_ACEOF
29634 cat confdefs.h >>conftest.$ac_ext
29635 cat >>conftest.$ac_ext <<_ACEOF
29636 /* end confdefs.h. */
29637 #include <sys/bitypes.h>
29641 int8_t a; int16_t b; int32_t c;
29642 u_int8_t e; u_int16_t f; u_int32_t g;
29643 a = b = c = e = f = g = 1;
29648 rm -f conftest.$ac_objext
29649 if { (ac_try="$ac_compile"
29650 case "(($ac_try" in
29651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29652 *) ac_try_echo=$ac_try;;
29654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29655 (eval "$ac_compile") 2>conftest.er1
29657 grep -v '^ *+' conftest.er1 >conftest.err
29659 cat conftest.err >&5
29660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29661 (exit $ac_status); } &&
29662 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29663 { (case "(($ac_try" in
29664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29665 *) ac_try_echo=$ac_try;;
29667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29668 (eval "$ac_try") 2>&5
29670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29671 (exit $ac_status); }; } &&
29672 { ac_try='test -s conftest.$ac_objext'
29673 { (case "(($ac_try" in
29674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29675 *) ac_try_echo=$ac_try;;
29677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29678 (eval "$ac_try") 2>&5
29680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29681 (exit $ac_status); }; }; then
29682 cat >>confdefs.h <<\_ACEOF
29683 #define HAVE_U_INTXX_T 1
29686 cat >>confdefs.h <<\_ACEOF
29687 #define HAVE_INTXX_T 1
29690 cat >>confdefs.h <<\_ACEOF
29691 #define HAVE_SYS_BITYPES_H 1
29694 { echo "$as_me:$LINENO: result: yes" >&5
29695 echo "${ECHO_T}yes" >&6; }
29697 echo "$as_me: failed program was:" >&5
29698 sed 's/^/| /' conftest.$ac_ext >&5
29700 { echo "$as_me:$LINENO: result: no" >&5
29701 echo "${ECHO_T}no" >&6; }
29705 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29708 if test -z "$have_u_intxx_t" ; then
29709 { echo "$as_me:$LINENO: checking for uintXX_t types" >&5
29710 echo $ECHO_N "checking for uintXX_t types... $ECHO_C" >&6; }
29711 if test "${ac_cv_have_uintxx_t+set}" = set; then
29712 echo $ECHO_N "(cached) $ECHO_C" >&6
29715 cat >conftest.$ac_ext <<_ACEOF
29718 cat confdefs.h >>conftest.$ac_ext
29719 cat >>conftest.$ac_ext <<_ACEOF
29720 /* end confdefs.h. */
29721 #include <sys/types.h>
29725 uint8_t a; uint16_t b;
29726 uint32_t c; a = b = c = 1;
29731 rm -f conftest.$ac_objext
29732 if { (ac_try="$ac_compile"
29733 case "(($ac_try" in
29734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29735 *) ac_try_echo=$ac_try;;
29737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29738 (eval "$ac_compile") 2>conftest.er1
29740 grep -v '^ *+' conftest.er1 >conftest.err
29742 cat conftest.err >&5
29743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29744 (exit $ac_status); } &&
29745 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29746 { (case "(($ac_try" in
29747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29748 *) ac_try_echo=$ac_try;;
29750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29751 (eval "$ac_try") 2>&5
29753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29754 (exit $ac_status); }; } &&
29755 { ac_try='test -s conftest.$ac_objext'
29756 { (case "(($ac_try" in
29757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29758 *) ac_try_echo=$ac_try;;
29760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29761 (eval "$ac_try") 2>&5
29763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29764 (exit $ac_status); }; }; then
29765 ac_cv_have_uintxx_t="yes"
29767 echo "$as_me: failed program was:" >&5
29768 sed 's/^/| /' conftest.$ac_ext >&5
29770 ac_cv_have_uintxx_t="no"
29774 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29777 { echo "$as_me:$LINENO: result: $ac_cv_have_uintxx_t" >&5
29778 echo "${ECHO_T}$ac_cv_have_uintxx_t" >&6; }
29779 if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
29780 cat >>confdefs.h <<\_ACEOF
29781 #define HAVE_UINTXX_T 1
29787 if (test -z "$have_u_int64_t" || test -z "$have_int64_t" && \
29788 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
29790 { echo "$as_me:$LINENO: checking for int64_t and u_int64_t types in sys/bitypes.h" >&5
29791 echo $ECHO_N "checking for int64_t and u_int64_t types in sys/bitypes.h... $ECHO_C" >&6; }
29792 cat >conftest.$ac_ext <<_ACEOF
29795 cat confdefs.h >>conftest.$ac_ext
29796 cat >>conftest.$ac_ext <<_ACEOF
29797 /* end confdefs.h. */
29798 #include <sys/bitypes.h>
29802 int64_t a; u_int64_t b;
29808 rm -f conftest.$ac_objext
29809 if { (ac_try="$ac_compile"
29810 case "(($ac_try" in
29811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29812 *) ac_try_echo=$ac_try;;
29814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29815 (eval "$ac_compile") 2>conftest.er1
29817 grep -v '^ *+' conftest.er1 >conftest.err
29819 cat conftest.err >&5
29820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29821 (exit $ac_status); } &&
29822 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29823 { (case "(($ac_try" in
29824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29825 *) ac_try_echo=$ac_try;;
29827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29828 (eval "$ac_try") 2>&5
29830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29831 (exit $ac_status); }; } &&
29832 { ac_try='test -s conftest.$ac_objext'
29833 { (case "(($ac_try" in
29834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29835 *) ac_try_echo=$ac_try;;
29837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29838 (eval "$ac_try") 2>&5
29840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29841 (exit $ac_status); }; }; then
29842 cat >>confdefs.h <<\_ACEOF
29843 #define HAVE_U_INT64_T 1
29846 cat >>confdefs.h <<\_ACEOF
29847 #define HAVE_INT64_T 1
29850 { echo "$as_me:$LINENO: result: yes" >&5
29851 echo "${ECHO_T}yes" >&6; }
29853 echo "$as_me: failed program was:" >&5
29854 sed 's/^/| /' conftest.$ac_ext >&5
29856 { echo "$as_me:$LINENO: result: no" >&5
29857 echo "${ECHO_T}no" >&6; }
29861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29864 if (test -z "$have_uintxx_t" && \
29865 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
29867 { echo "$as_me:$LINENO: checking for uintXX_t types in sys/bitypes.h" >&5
29868 echo $ECHO_N "checking for uintXX_t types in sys/bitypes.h... $ECHO_C" >&6; }
29869 cat >conftest.$ac_ext <<_ACEOF
29872 cat confdefs.h >>conftest.$ac_ext
29873 cat >>conftest.$ac_ext <<_ACEOF
29874 /* end confdefs.h. */
29875 #include <sys/bitypes.h>
29879 uint8_t a; uint16_t b;
29880 uint32_t c; a = b = c = 1;
29885 rm -f conftest.$ac_objext
29886 if { (ac_try="$ac_compile"
29887 case "(($ac_try" in
29888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29889 *) ac_try_echo=$ac_try;;
29891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29892 (eval "$ac_compile") 2>conftest.er1
29894 grep -v '^ *+' conftest.er1 >conftest.err
29896 cat conftest.err >&5
29897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29898 (exit $ac_status); } &&
29899 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29900 { (case "(($ac_try" in
29901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29902 *) ac_try_echo=$ac_try;;
29904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29905 (eval "$ac_try") 2>&5
29907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29908 (exit $ac_status); }; } &&
29909 { ac_try='test -s conftest.$ac_objext'
29910 { (case "(($ac_try" in
29911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29912 *) ac_try_echo=$ac_try;;
29914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29915 (eval "$ac_try") 2>&5
29917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29918 (exit $ac_status); }; }; then
29919 cat >>confdefs.h <<\_ACEOF
29920 #define HAVE_UINTXX_T 1
29923 { echo "$as_me:$LINENO: result: yes" >&5
29924 echo "${ECHO_T}yes" >&6; }
29926 echo "$as_me: failed program was:" >&5
29927 sed 's/^/| /' conftest.$ac_ext >&5
29929 { echo "$as_me:$LINENO: result: no" >&5
29930 echo "${ECHO_T}no" >&6; }
29934 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29970 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29971 { echo "$as_me:$LINENO: checking for $ac_func" >&5
29972 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
29973 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
29974 echo $ECHO_N "(cached) $ECHO_C" >&6
29976 cat >conftest.$ac_ext <<_ACEOF
29979 cat confdefs.h >>conftest.$ac_ext
29980 cat >>conftest.$ac_ext <<_ACEOF
29981 /* end confdefs.h. */
29982 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29983 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29984 #define $ac_func innocuous_$ac_func
29986 /* System header to define __stub macros and hopefully few prototypes,
29987 which can conflict with char $ac_func (); below.
29988 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29989 <limits.h> exists even on freestanding compilers. */
29992 # include <limits.h>
29994 # include <assert.h>
29999 /* Override any GCC internal prototype to avoid an error.
30000 Use char because int might match the return type of a GCC
30001 builtin and then its argument prototype would still apply. */
30006 /* The GNU C library defines this for functions which it implements
30007 to always fail with ENOSYS. Some functions are actually named
30008 something starting with __ and the normal name is an alias. */
30009 #if defined __stub_$ac_func || defined __stub___$ac_func
30016 return $ac_func ();
30021 rm -f conftest.$ac_objext conftest$ac_exeext
30022 if { (ac_try="$ac_link"
30023 case "(($ac_try" in
30024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30025 *) ac_try_echo=$ac_try;;
30027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30028 (eval "$ac_link") 2>conftest.er1
30030 grep -v '^ *+' conftest.er1 >conftest.err
30032 cat conftest.err >&5
30033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30034 (exit $ac_status); } &&
30035 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30036 { (case "(($ac_try" in
30037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30038 *) ac_try_echo=$ac_try;;
30040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30041 (eval "$ac_try") 2>&5
30043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30044 (exit $ac_status); }; } &&
30045 { ac_try='test -s conftest$ac_exeext'
30046 { (case "(($ac_try" in
30047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30048 *) ac_try_echo=$ac_try;;
30050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30051 (eval "$ac_try") 2>&5
30053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30054 (exit $ac_status); }; }; then
30055 eval "$as_ac_var=yes"
30057 echo "$as_me: failed program was:" >&5
30058 sed 's/^/| /' conftest.$ac_ext >&5
30060 eval "$as_ac_var=no"
30063 rm -f core conftest.err conftest.$ac_objext \
30064 conftest$ac_exeext conftest.$ac_ext
30066 ac_res=`eval echo '${'$as_ac_var'}'`
30067 { echo "$as_me:$LINENO: result: $ac_res" >&5
30068 echo "${ECHO_T}$ac_res" >&6; }
30069 if test `eval echo '${'$as_ac_var'}'` = yes; then
30070 cat >>confdefs.h <<_ACEOF
30071 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30075 echo 'configure: cannot find needed function.'; exit 1
30082 for ac_func in fchdir
30084 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30085 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30086 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30087 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30088 echo $ECHO_N "(cached) $ECHO_C" >&6
30090 cat >conftest.$ac_ext <<_ACEOF
30093 cat confdefs.h >>conftest.$ac_ext
30094 cat >>conftest.$ac_ext <<_ACEOF
30095 /* end confdefs.h. */
30096 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30097 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30098 #define $ac_func innocuous_$ac_func
30100 /* System header to define __stub macros and hopefully few prototypes,
30101 which can conflict with char $ac_func (); below.
30102 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30103 <limits.h> exists even on freestanding compilers. */
30106 # include <limits.h>
30108 # include <assert.h>
30113 /* Override any GCC internal prototype to avoid an error.
30114 Use char because int might match the return type of a GCC
30115 builtin and then its argument prototype would still apply. */
30120 /* The GNU C library defines this for functions which it implements
30121 to always fail with ENOSYS. Some functions are actually named
30122 something starting with __ and the normal name is an alias. */
30123 #if defined __stub_$ac_func || defined __stub___$ac_func
30130 return $ac_func ();
30135 rm -f conftest.$ac_objext conftest$ac_exeext
30136 if { (ac_try="$ac_link"
30137 case "(($ac_try" in
30138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30139 *) ac_try_echo=$ac_try;;
30141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30142 (eval "$ac_link") 2>conftest.er1
30144 grep -v '^ *+' conftest.er1 >conftest.err
30146 cat conftest.err >&5
30147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30148 (exit $ac_status); } &&
30149 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30150 { (case "(($ac_try" in
30151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30152 *) ac_try_echo=$ac_try;;
30154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30155 (eval "$ac_try") 2>&5
30157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30158 (exit $ac_status); }; } &&
30159 { ac_try='test -s conftest$ac_exeext'
30160 { (case "(($ac_try" in
30161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30162 *) ac_try_echo=$ac_try;;
30164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30165 (eval "$ac_try") 2>&5
30167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30168 (exit $ac_status); }; }; then
30169 eval "$as_ac_var=yes"
30171 echo "$as_me: failed program was:" >&5
30172 sed 's/^/| /' conftest.$ac_ext >&5
30174 eval "$as_ac_var=no"
30177 rm -f core conftest.err conftest.$ac_objext \
30178 conftest$ac_exeext conftest.$ac_ext
30180 ac_res=`eval echo '${'$as_ac_var'}'`
30181 { echo "$as_me:$LINENO: result: $ac_res" >&5
30182 echo "${ECHO_T}$ac_res" >&6; }
30183 if test `eval echo '${'$as_ac_var'}'` = yes; then
30184 cat >>confdefs.h <<_ACEOF
30185 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30187 cat >>confdefs.h <<\_ACEOF
30188 #define HAVE_FCHDIR 1
30195 for ac_func in strtoll
30197 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30198 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30199 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30200 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30201 echo $ECHO_N "(cached) $ECHO_C" >&6
30203 cat >conftest.$ac_ext <<_ACEOF
30206 cat confdefs.h >>conftest.$ac_ext
30207 cat >>conftest.$ac_ext <<_ACEOF
30208 /* end confdefs.h. */
30209 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30210 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30211 #define $ac_func innocuous_$ac_func
30213 /* System header to define __stub macros and hopefully few prototypes,
30214 which can conflict with char $ac_func (); below.
30215 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30216 <limits.h> exists even on freestanding compilers. */
30219 # include <limits.h>
30221 # include <assert.h>
30226 /* Override any GCC internal prototype to avoid an error.
30227 Use char because int might match the return type of a GCC
30228 builtin and then its argument prototype would still apply. */
30233 /* The GNU C library defines this for functions which it implements
30234 to always fail with ENOSYS. Some functions are actually named
30235 something starting with __ and the normal name is an alias. */
30236 #if defined __stub_$ac_func || defined __stub___$ac_func
30243 return $ac_func ();
30248 rm -f conftest.$ac_objext conftest$ac_exeext
30249 if { (ac_try="$ac_link"
30250 case "(($ac_try" in
30251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30252 *) ac_try_echo=$ac_try;;
30254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30255 (eval "$ac_link") 2>conftest.er1
30257 grep -v '^ *+' conftest.er1 >conftest.err
30259 cat conftest.err >&5
30260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30261 (exit $ac_status); } &&
30262 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30263 { (case "(($ac_try" in
30264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30265 *) ac_try_echo=$ac_try;;
30267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30268 (eval "$ac_try") 2>&5
30270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30271 (exit $ac_status); }; } &&
30272 { ac_try='test -s conftest$ac_exeext'
30273 { (case "(($ac_try" in
30274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30275 *) ac_try_echo=$ac_try;;
30277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30278 (eval "$ac_try") 2>&5
30280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30281 (exit $ac_status); }; }; then
30282 eval "$as_ac_var=yes"
30284 echo "$as_me: failed program was:" >&5
30285 sed 's/^/| /' conftest.$ac_ext >&5
30287 eval "$as_ac_var=no"
30290 rm -f core conftest.err conftest.$ac_objext \
30291 conftest$ac_exeext conftest.$ac_ext
30293 ac_res=`eval echo '${'$as_ac_var'}'`
30294 { echo "$as_me:$LINENO: result: $ac_res" >&5
30295 echo "${ECHO_T}$ac_res" >&6; }
30296 if test `eval echo '${'$as_ac_var'}'` = yes; then
30297 cat >>confdefs.h <<_ACEOF
30298 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30300 cat >>confdefs.h <<\_ACEOF
30301 #define HAVE_STRTOLL 1
30308 for ac_func in posix_fadvise
30310 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30311 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30312 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30313 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30314 echo $ECHO_N "(cached) $ECHO_C" >&6
30316 cat >conftest.$ac_ext <<_ACEOF
30319 cat confdefs.h >>conftest.$ac_ext
30320 cat >>conftest.$ac_ext <<_ACEOF
30321 /* end confdefs.h. */
30322 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30323 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30324 #define $ac_func innocuous_$ac_func
30326 /* System header to define __stub macros and hopefully few prototypes,
30327 which can conflict with char $ac_func (); below.
30328 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30329 <limits.h> exists even on freestanding compilers. */
30332 # include <limits.h>
30334 # include <assert.h>
30339 /* Override any GCC internal prototype to avoid an error.
30340 Use char because int might match the return type of a GCC
30341 builtin and then its argument prototype would still apply. */
30346 /* The GNU C library defines this for functions which it implements
30347 to always fail with ENOSYS. Some functions are actually named
30348 something starting with __ and the normal name is an alias. */
30349 #if defined __stub_$ac_func || defined __stub___$ac_func
30356 return $ac_func ();
30361 rm -f conftest.$ac_objext conftest$ac_exeext
30362 if { (ac_try="$ac_link"
30363 case "(($ac_try" in
30364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30365 *) ac_try_echo=$ac_try;;
30367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30368 (eval "$ac_link") 2>conftest.er1
30370 grep -v '^ *+' conftest.er1 >conftest.err
30372 cat conftest.err >&5
30373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30374 (exit $ac_status); } &&
30375 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30376 { (case "(($ac_try" in
30377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30378 *) ac_try_echo=$ac_try;;
30380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30381 (eval "$ac_try") 2>&5
30383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30384 (exit $ac_status); }; } &&
30385 { ac_try='test -s conftest$ac_exeext'
30386 { (case "(($ac_try" in
30387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30388 *) ac_try_echo=$ac_try;;
30390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30391 (eval "$ac_try") 2>&5
30393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30394 (exit $ac_status); }; }; then
30395 eval "$as_ac_var=yes"
30397 echo "$as_me: failed program was:" >&5
30398 sed 's/^/| /' conftest.$ac_ext >&5
30400 eval "$as_ac_var=no"
30403 rm -f core conftest.err conftest.$ac_objext \
30404 conftest$ac_exeext conftest.$ac_ext
30406 ac_res=`eval echo '${'$as_ac_var'}'`
30407 { echo "$as_me:$LINENO: result: $ac_res" >&5
30408 echo "${ECHO_T}$ac_res" >&6; }
30409 if test `eval echo '${'$as_ac_var'}'` = yes; then
30410 cat >>confdefs.h <<_ACEOF
30411 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30418 for ac_func in fdatasync
30420 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30421 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30422 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30423 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30424 echo $ECHO_N "(cached) $ECHO_C" >&6
30426 cat >conftest.$ac_ext <<_ACEOF
30429 cat confdefs.h >>conftest.$ac_ext
30430 cat >>conftest.$ac_ext <<_ACEOF
30431 /* end confdefs.h. */
30432 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30433 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30434 #define $ac_func innocuous_$ac_func
30436 /* System header to define __stub macros and hopefully few prototypes,
30437 which can conflict with char $ac_func (); below.
30438 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30439 <limits.h> exists even on freestanding compilers. */
30442 # include <limits.h>
30444 # include <assert.h>
30449 /* Override any GCC internal prototype to avoid an error.
30450 Use char because int might match the return type of a GCC
30451 builtin and then its argument prototype would still apply. */
30456 /* The GNU C library defines this for functions which it implements
30457 to always fail with ENOSYS. Some functions are actually named
30458 something starting with __ and the normal name is an alias. */
30459 #if defined __stub_$ac_func || defined __stub___$ac_func
30466 return $ac_func ();
30471 rm -f conftest.$ac_objext conftest$ac_exeext
30472 if { (ac_try="$ac_link"
30473 case "(($ac_try" in
30474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30475 *) ac_try_echo=$ac_try;;
30477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30478 (eval "$ac_link") 2>conftest.er1
30480 grep -v '^ *+' conftest.er1 >conftest.err
30482 cat conftest.err >&5
30483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30484 (exit $ac_status); } &&
30485 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30486 { (case "(($ac_try" in
30487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30488 *) ac_try_echo=$ac_try;;
30490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30491 (eval "$ac_try") 2>&5
30493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30494 (exit $ac_status); }; } &&
30495 { ac_try='test -s conftest$ac_exeext'
30496 { (case "(($ac_try" in
30497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30498 *) ac_try_echo=$ac_try;;
30500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30501 (eval "$ac_try") 2>&5
30503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30504 (exit $ac_status); }; }; then
30505 eval "$as_ac_var=yes"
30507 echo "$as_me: failed program was:" >&5
30508 sed 's/^/| /' conftest.$ac_ext >&5
30510 eval "$as_ac_var=no"
30513 rm -f core conftest.err conftest.$ac_objext \
30514 conftest$ac_exeext conftest.$ac_ext
30516 ac_res=`eval echo '${'$as_ac_var'}'`
30517 { echo "$as_me:$LINENO: result: $ac_res" >&5
30518 echo "${ECHO_T}$ac_res" >&6; }
30519 if test `eval echo '${'$as_ac_var'}'` = yes; then
30520 cat >>confdefs.h <<_ACEOF
30521 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30529 for ac_func in chflags
30531 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30532 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30533 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30534 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30535 echo $ECHO_N "(cached) $ECHO_C" >&6
30537 cat >conftest.$ac_ext <<_ACEOF
30540 cat confdefs.h >>conftest.$ac_ext
30541 cat >>conftest.$ac_ext <<_ACEOF
30542 /* end confdefs.h. */
30543 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30544 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30545 #define $ac_func innocuous_$ac_func
30547 /* System header to define __stub macros and hopefully few prototypes,
30548 which can conflict with char $ac_func (); below.
30549 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30550 <limits.h> exists even on freestanding compilers. */
30553 # include <limits.h>
30555 # include <assert.h>
30560 /* Override any GCC internal prototype to avoid an error.
30561 Use char because int might match the return type of a GCC
30562 builtin and then its argument prototype would still apply. */
30567 /* The GNU C library defines this for functions which it implements
30568 to always fail with ENOSYS. Some functions are actually named
30569 something starting with __ and the normal name is an alias. */
30570 #if defined __stub_$ac_func || defined __stub___$ac_func
30577 return $ac_func ();
30582 rm -f conftest.$ac_objext conftest$ac_exeext
30583 if { (ac_try="$ac_link"
30584 case "(($ac_try" in
30585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30586 *) ac_try_echo=$ac_try;;
30588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30589 (eval "$ac_link") 2>conftest.er1
30591 grep -v '^ *+' conftest.er1 >conftest.err
30593 cat conftest.err >&5
30594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30595 (exit $ac_status); } &&
30596 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30597 { (case "(($ac_try" in
30598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30599 *) ac_try_echo=$ac_try;;
30601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30602 (eval "$ac_try") 2>&5
30604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30605 (exit $ac_status); }; } &&
30606 { ac_try='test -s conftest$ac_exeext'
30607 { (case "(($ac_try" in
30608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30609 *) ac_try_echo=$ac_try;;
30611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30612 (eval "$ac_try") 2>&5
30614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30615 (exit $ac_status); }; }; then
30616 eval "$as_ac_var=yes"
30618 echo "$as_me: failed program was:" >&5
30619 sed 's/^/| /' conftest.$ac_ext >&5
30621 eval "$as_ac_var=no"
30624 rm -f core conftest.err conftest.$ac_objext \
30625 conftest$ac_exeext conftest.$ac_ext
30627 ac_res=`eval echo '${'$as_ac_var'}'`
30628 { echo "$as_me:$LINENO: result: $ac_res" >&5
30629 echo "${ECHO_T}$ac_res" >&6; }
30630 if test `eval echo '${'$as_ac_var'}'` = yes; then
30631 cat >>confdefs.h <<_ACEOF
30632 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30643 for ac_func in snprintf vsnprintf gethostid fseeko
30645 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30646 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30647 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30648 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30649 echo $ECHO_N "(cached) $ECHO_C" >&6
30651 cat >conftest.$ac_ext <<_ACEOF
30654 cat confdefs.h >>conftest.$ac_ext
30655 cat >>conftest.$ac_ext <<_ACEOF
30656 /* end confdefs.h. */
30657 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30658 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30659 #define $ac_func innocuous_$ac_func
30661 /* System header to define __stub macros and hopefully few prototypes,
30662 which can conflict with char $ac_func (); below.
30663 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30664 <limits.h> exists even on freestanding compilers. */
30667 # include <limits.h>
30669 # include <assert.h>
30674 /* Override any GCC internal prototype to avoid an error.
30675 Use char because int might match the return type of a GCC
30676 builtin and then its argument prototype would still apply. */
30681 /* The GNU C library defines this for functions which it implements
30682 to always fail with ENOSYS. Some functions are actually named
30683 something starting with __ and the normal name is an alias. */
30684 #if defined __stub_$ac_func || defined __stub___$ac_func
30691 return $ac_func ();
30696 rm -f conftest.$ac_objext conftest$ac_exeext
30697 if { (ac_try="$ac_link"
30698 case "(($ac_try" in
30699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30700 *) ac_try_echo=$ac_try;;
30702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30703 (eval "$ac_link") 2>conftest.er1
30705 grep -v '^ *+' conftest.er1 >conftest.err
30707 cat conftest.err >&5
30708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30709 (exit $ac_status); } &&
30710 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30711 { (case "(($ac_try" in
30712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30713 *) ac_try_echo=$ac_try;;
30715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30716 (eval "$ac_try") 2>&5
30718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30719 (exit $ac_status); }; } &&
30720 { ac_try='test -s conftest$ac_exeext'
30721 { (case "(($ac_try" in
30722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30723 *) ac_try_echo=$ac_try;;
30725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30726 (eval "$ac_try") 2>&5
30728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30729 (exit $ac_status); }; }; then
30730 eval "$as_ac_var=yes"
30732 echo "$as_me: failed program was:" >&5
30733 sed 's/^/| /' conftest.$ac_ext >&5
30735 eval "$as_ac_var=no"
30738 rm -f core conftest.err conftest.$ac_objext \
30739 conftest$ac_exeext conftest.$ac_ext
30741 ac_res=`eval echo '${'$as_ac_var'}'`
30742 { echo "$as_me:$LINENO: result: $ac_res" >&5
30743 echo "${ECHO_T}$ac_res" >&6; }
30744 if test `eval echo '${'$as_ac_var'}'` = yes; then
30745 cat >>confdefs.h <<_ACEOF
30746 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30757 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
30759 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30760 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30761 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30762 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30763 echo $ECHO_N "(cached) $ECHO_C" >&6
30765 cat >conftest.$ac_ext <<_ACEOF
30768 cat confdefs.h >>conftest.$ac_ext
30769 cat >>conftest.$ac_ext <<_ACEOF
30770 /* end confdefs.h. */
30771 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30772 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30773 #define $ac_func innocuous_$ac_func
30775 /* System header to define __stub macros and hopefully few prototypes,
30776 which can conflict with char $ac_func (); below.
30777 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30778 <limits.h> exists even on freestanding compilers. */
30781 # include <limits.h>
30783 # include <assert.h>
30788 /* Override any GCC internal prototype to avoid an error.
30789 Use char because int might match the return type of a GCC
30790 builtin and then its argument prototype would still apply. */
30795 /* The GNU C library defines this for functions which it implements
30796 to always fail with ENOSYS. Some functions are actually named
30797 something starting with __ and the normal name is an alias. */
30798 #if defined __stub_$ac_func || defined __stub___$ac_func
30805 return $ac_func ();
30810 rm -f conftest.$ac_objext conftest$ac_exeext
30811 if { (ac_try="$ac_link"
30812 case "(($ac_try" in
30813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30814 *) ac_try_echo=$ac_try;;
30816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30817 (eval "$ac_link") 2>conftest.er1
30819 grep -v '^ *+' conftest.er1 >conftest.err
30821 cat conftest.err >&5
30822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30823 (exit $ac_status); } &&
30824 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30825 { (case "(($ac_try" in
30826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30827 *) ac_try_echo=$ac_try;;
30829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30830 (eval "$ac_try") 2>&5
30832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30833 (exit $ac_status); }; } &&
30834 { ac_try='test -s conftest$ac_exeext'
30835 { (case "(($ac_try" in
30836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30837 *) ac_try_echo=$ac_try;;
30839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30840 (eval "$ac_try") 2>&5
30842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30843 (exit $ac_status); }; }; then
30844 eval "$as_ac_var=yes"
30846 echo "$as_me: failed program was:" >&5
30847 sed 's/^/| /' conftest.$ac_ext >&5
30849 eval "$as_ac_var=no"
30852 rm -f core conftest.err conftest.$ac_objext \
30853 conftest$ac_exeext conftest.$ac_ext
30855 ac_res=`eval echo '${'$as_ac_var'}'`
30856 { echo "$as_me:$LINENO: result: $ac_res" >&5
30857 echo "${ECHO_T}$ac_res" >&6; }
30858 if test `eval echo '${'$as_ac_var'}'` = yes; then
30859 cat >>confdefs.h <<_ACEOF
30860 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30867 # If resolver functions are not in libc check for -lnsl or -lresolv.
30868 { echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
30869 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6; }
30870 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
30871 echo $ECHO_N "(cached) $ECHO_C" >&6
30873 cat >conftest.$ac_ext <<_ACEOF
30876 cat confdefs.h >>conftest.$ac_ext
30877 cat >>conftest.$ac_ext <<_ACEOF
30878 /* end confdefs.h. */
30879 /* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r.
30880 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30881 #define gethostbyname_r innocuous_gethostbyname_r
30883 /* System header to define __stub macros and hopefully few prototypes,
30884 which can conflict with char gethostbyname_r (); below.
30885 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30886 <limits.h> exists even on freestanding compilers. */
30889 # include <limits.h>
30891 # include <assert.h>
30894 #undef gethostbyname_r
30896 /* Override any GCC internal prototype to avoid an error.
30897 Use char because int might match the return type of a GCC
30898 builtin and then its argument prototype would still apply. */
30902 char gethostbyname_r ();
30903 /* The GNU C library defines this for functions which it implements
30904 to always fail with ENOSYS. Some functions are actually named
30905 something starting with __ and the normal name is an alias. */
30906 #if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r
30913 return gethostbyname_r ();
30918 rm -f conftest.$ac_objext conftest$ac_exeext
30919 if { (ac_try="$ac_link"
30920 case "(($ac_try" in
30921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30922 *) ac_try_echo=$ac_try;;
30924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30925 (eval "$ac_link") 2>conftest.er1
30927 grep -v '^ *+' conftest.er1 >conftest.err
30929 cat conftest.err >&5
30930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30931 (exit $ac_status); } &&
30932 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30933 { (case "(($ac_try" in
30934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30935 *) ac_try_echo=$ac_try;;
30937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30938 (eval "$ac_try") 2>&5
30940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30941 (exit $ac_status); }; } &&
30942 { ac_try='test -s conftest$ac_exeext'
30943 { (case "(($ac_try" in
30944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30945 *) ac_try_echo=$ac_try;;
30947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30948 (eval "$ac_try") 2>&5
30950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30951 (exit $ac_status); }; }; then
30952 ac_cv_func_gethostbyname_r=yes
30954 echo "$as_me: failed program was:" >&5
30955 sed 's/^/| /' conftest.$ac_ext >&5
30957 ac_cv_func_gethostbyname_r=no
30960 rm -f core conftest.err conftest.$ac_objext \
30961 conftest$ac_exeext conftest.$ac_ext
30963 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
30964 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6; }
30965 if test $ac_cv_func_gethostbyname_r = yes; then
30966 { echo "$as_me:$LINENO: result: using libc's resolver" >&5
30967 echo "${ECHO_T}using libc's resolver" >&6; }
30970 { echo "$as_me:$LINENO: checking for gethostbyname_r in -lnsl" >&5
30971 echo $ECHO_N "checking for gethostbyname_r in -lnsl... $ECHO_C" >&6; }
30972 if test "${ac_cv_lib_nsl_gethostbyname_r+set}" = set; then
30973 echo $ECHO_N "(cached) $ECHO_C" >&6
30975 ac_check_lib_save_LIBS=$LIBS
30977 cat >conftest.$ac_ext <<_ACEOF
30980 cat confdefs.h >>conftest.$ac_ext
30981 cat >>conftest.$ac_ext <<_ACEOF
30982 /* end confdefs.h. */
30984 /* Override any GCC internal prototype to avoid an error.
30985 Use char because int might match the return type of a GCC
30986 builtin and then its argument prototype would still apply. */
30990 char gethostbyname_r ();
30994 return gethostbyname_r ();
30999 rm -f conftest.$ac_objext conftest$ac_exeext
31000 if { (ac_try="$ac_link"
31001 case "(($ac_try" in
31002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31003 *) ac_try_echo=$ac_try;;
31005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31006 (eval "$ac_link") 2>conftest.er1
31008 grep -v '^ *+' conftest.er1 >conftest.err
31010 cat conftest.err >&5
31011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31012 (exit $ac_status); } &&
31013 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31014 { (case "(($ac_try" in
31015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31016 *) ac_try_echo=$ac_try;;
31018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31019 (eval "$ac_try") 2>&5
31021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31022 (exit $ac_status); }; } &&
31023 { ac_try='test -s conftest$ac_exeext'
31024 { (case "(($ac_try" in
31025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31026 *) ac_try_echo=$ac_try;;
31028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31029 (eval "$ac_try") 2>&5
31031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31032 (exit $ac_status); }; }; then
31033 ac_cv_lib_nsl_gethostbyname_r=yes
31035 echo "$as_me: failed program was:" >&5
31036 sed 's/^/| /' conftest.$ac_ext >&5
31038 ac_cv_lib_nsl_gethostbyname_r=no
31041 rm -f core conftest.err conftest.$ac_objext \
31042 conftest$ac_exeext conftest.$ac_ext
31043 LIBS=$ac_check_lib_save_LIBS
31045 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
31046 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname_r" >&6; }
31047 if test $ac_cv_lib_nsl_gethostbyname_r = yes; then
31048 cat >>confdefs.h <<_ACEOF
31049 #define HAVE_LIBNSL 1
31057 { echo "$as_me:$LINENO: checking for gethostbyname_r in -lresolv" >&5
31058 echo $ECHO_N "checking for gethostbyname_r in -lresolv... $ECHO_C" >&6; }
31059 if test "${ac_cv_lib_resolv_gethostbyname_r+set}" = set; then
31060 echo $ECHO_N "(cached) $ECHO_C" >&6
31062 ac_check_lib_save_LIBS=$LIBS
31063 LIBS="-lresolv $LIBS"
31064 cat >conftest.$ac_ext <<_ACEOF
31067 cat confdefs.h >>conftest.$ac_ext
31068 cat >>conftest.$ac_ext <<_ACEOF
31069 /* end confdefs.h. */
31071 /* Override any GCC internal prototype to avoid an error.
31072 Use char because int might match the return type of a GCC
31073 builtin and then its argument prototype would still apply. */
31077 char gethostbyname_r ();
31081 return gethostbyname_r ();
31086 rm -f conftest.$ac_objext conftest$ac_exeext
31087 if { (ac_try="$ac_link"
31088 case "(($ac_try" in
31089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31090 *) ac_try_echo=$ac_try;;
31092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31093 (eval "$ac_link") 2>conftest.er1
31095 grep -v '^ *+' conftest.er1 >conftest.err
31097 cat conftest.err >&5
31098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31099 (exit $ac_status); } &&
31100 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31101 { (case "(($ac_try" in
31102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31103 *) ac_try_echo=$ac_try;;
31105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31106 (eval "$ac_try") 2>&5
31108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31109 (exit $ac_status); }; } &&
31110 { ac_try='test -s conftest$ac_exeext'
31111 { (case "(($ac_try" in
31112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31113 *) ac_try_echo=$ac_try;;
31115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31116 (eval "$ac_try") 2>&5
31118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31119 (exit $ac_status); }; }; then
31120 ac_cv_lib_resolv_gethostbyname_r=yes
31122 echo "$as_me: failed program was:" >&5
31123 sed 's/^/| /' conftest.$ac_ext >&5
31125 ac_cv_lib_resolv_gethostbyname_r=no
31128 rm -f core conftest.err conftest.$ac_objext \
31129 conftest$ac_exeext conftest.$ac_ext
31130 LIBS=$ac_check_lib_save_LIBS
31132 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_gethostbyname_r" >&5
31133 echo "${ECHO_T}$ac_cv_lib_resolv_gethostbyname_r" >&6; }
31134 if test $ac_cv_lib_resolv_gethostbyname_r = yes; then
31135 cat >>confdefs.h <<_ACEOF
31136 #define HAVE_LIBRESOLV 1
31139 LIBS="-lresolv $LIBS"
31149 for ac_func in inet_pton
31151 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31152 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31153 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31154 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31155 echo $ECHO_N "(cached) $ECHO_C" >&6
31157 cat >conftest.$ac_ext <<_ACEOF
31160 cat confdefs.h >>conftest.$ac_ext
31161 cat >>conftest.$ac_ext <<_ACEOF
31162 /* end confdefs.h. */
31163 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31164 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31165 #define $ac_func innocuous_$ac_func
31167 /* System header to define __stub macros and hopefully few prototypes,
31168 which can conflict with char $ac_func (); below.
31169 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31170 <limits.h> exists even on freestanding compilers. */
31173 # include <limits.h>
31175 # include <assert.h>
31180 /* Override any GCC internal prototype to avoid an error.
31181 Use char because int might match the return type of a GCC
31182 builtin and then its argument prototype would still apply. */
31187 /* The GNU C library defines this for functions which it implements
31188 to always fail with ENOSYS. Some functions are actually named
31189 something starting with __ and the normal name is an alias. */
31190 #if defined __stub_$ac_func || defined __stub___$ac_func
31197 return $ac_func ();
31202 rm -f conftest.$ac_objext conftest$ac_exeext
31203 if { (ac_try="$ac_link"
31204 case "(($ac_try" in
31205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31206 *) ac_try_echo=$ac_try;;
31208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31209 (eval "$ac_link") 2>conftest.er1
31211 grep -v '^ *+' conftest.er1 >conftest.err
31213 cat conftest.err >&5
31214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31215 (exit $ac_status); } &&
31216 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31217 { (case "(($ac_try" in
31218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31219 *) ac_try_echo=$ac_try;;
31221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31222 (eval "$ac_try") 2>&5
31224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31225 (exit $ac_status); }; } &&
31226 { ac_try='test -s conftest$ac_exeext'
31227 { (case "(($ac_try" in
31228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31229 *) ac_try_echo=$ac_try;;
31231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31232 (eval "$ac_try") 2>&5
31234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31235 (exit $ac_status); }; }; then
31236 eval "$as_ac_var=yes"
31238 echo "$as_me: failed program was:" >&5
31239 sed 's/^/| /' conftest.$ac_ext >&5
31241 eval "$as_ac_var=no"
31244 rm -f core conftest.err conftest.$ac_objext \
31245 conftest$ac_exeext conftest.$ac_ext
31247 ac_res=`eval echo '${'$as_ac_var'}'`
31248 { echo "$as_me:$LINENO: result: $ac_res" >&5
31249 echo "${ECHO_T}$ac_res" >&6; }
31250 if test `eval echo '${'$as_ac_var'}'` = yes; then
31251 cat >>confdefs.h <<_ACEOF
31252 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31254 cat >>confdefs.h <<\_ACEOF
31255 #define HAVE_INET_PTON 1
31262 for ac_func in inet_ntop
31264 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31265 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31266 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31267 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31268 echo $ECHO_N "(cached) $ECHO_C" >&6
31270 cat >conftest.$ac_ext <<_ACEOF
31273 cat confdefs.h >>conftest.$ac_ext
31274 cat >>conftest.$ac_ext <<_ACEOF
31275 /* end confdefs.h. */
31276 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31277 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31278 #define $ac_func innocuous_$ac_func
31280 /* System header to define __stub macros and hopefully few prototypes,
31281 which can conflict with char $ac_func (); below.
31282 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31283 <limits.h> exists even on freestanding compilers. */
31286 # include <limits.h>
31288 # include <assert.h>
31293 /* Override any GCC internal prototype to avoid an error.
31294 Use char because int might match the return type of a GCC
31295 builtin and then its argument prototype would still apply. */
31300 /* The GNU C library defines this for functions which it implements
31301 to always fail with ENOSYS. Some functions are actually named
31302 something starting with __ and the normal name is an alias. */
31303 #if defined __stub_$ac_func || defined __stub___$ac_func
31310 return $ac_func ();
31315 rm -f conftest.$ac_objext conftest$ac_exeext
31316 if { (ac_try="$ac_link"
31317 case "(($ac_try" in
31318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31319 *) ac_try_echo=$ac_try;;
31321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31322 (eval "$ac_link") 2>conftest.er1
31324 grep -v '^ *+' conftest.er1 >conftest.err
31326 cat conftest.err >&5
31327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31328 (exit $ac_status); } &&
31329 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31330 { (case "(($ac_try" in
31331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31332 *) ac_try_echo=$ac_try;;
31334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31335 (eval "$ac_try") 2>&5
31337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31338 (exit $ac_status); }; } &&
31339 { ac_try='test -s conftest$ac_exeext'
31340 { (case "(($ac_try" in
31341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31342 *) ac_try_echo=$ac_try;;
31344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31345 (eval "$ac_try") 2>&5
31347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31348 (exit $ac_status); }; }; then
31349 eval "$as_ac_var=yes"
31351 echo "$as_me: failed program was:" >&5
31352 sed 's/^/| /' conftest.$ac_ext >&5
31354 eval "$as_ac_var=no"
31357 rm -f core conftest.err conftest.$ac_objext \
31358 conftest$ac_exeext conftest.$ac_ext
31360 ac_res=`eval echo '${'$as_ac_var'}'`
31361 { echo "$as_me:$LINENO: result: $ac_res" >&5
31362 echo "${ECHO_T}$ac_res" >&6; }
31363 if test `eval echo '${'$as_ac_var'}'` = yes; then
31364 cat >>confdefs.h <<_ACEOF
31365 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31367 cat >>confdefs.h <<\_ACEOF
31368 #define HAVE_INET_NTOP 1
31375 for ac_func in gethostbyname2
31377 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31378 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31379 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31380 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31381 echo $ECHO_N "(cached) $ECHO_C" >&6
31383 cat >conftest.$ac_ext <<_ACEOF
31386 cat confdefs.h >>conftest.$ac_ext
31387 cat >>conftest.$ac_ext <<_ACEOF
31388 /* end confdefs.h. */
31389 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31390 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31391 #define $ac_func innocuous_$ac_func
31393 /* System header to define __stub macros and hopefully few prototypes,
31394 which can conflict with char $ac_func (); below.
31395 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31396 <limits.h> exists even on freestanding compilers. */
31399 # include <limits.h>
31401 # include <assert.h>
31406 /* Override any GCC internal prototype to avoid an error.
31407 Use char because int might match the return type of a GCC
31408 builtin and then its argument prototype would still apply. */
31413 /* The GNU C library defines this for functions which it implements
31414 to always fail with ENOSYS. Some functions are actually named
31415 something starting with __ and the normal name is an alias. */
31416 #if defined __stub_$ac_func || defined __stub___$ac_func
31423 return $ac_func ();
31428 rm -f conftest.$ac_objext conftest$ac_exeext
31429 if { (ac_try="$ac_link"
31430 case "(($ac_try" in
31431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31432 *) ac_try_echo=$ac_try;;
31434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31435 (eval "$ac_link") 2>conftest.er1
31437 grep -v '^ *+' conftest.er1 >conftest.err
31439 cat conftest.err >&5
31440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31441 (exit $ac_status); } &&
31442 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31443 { (case "(($ac_try" in
31444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31445 *) ac_try_echo=$ac_try;;
31447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31448 (eval "$ac_try") 2>&5
31450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31451 (exit $ac_status); }; } &&
31452 { ac_try='test -s conftest$ac_exeext'
31453 { (case "(($ac_try" in
31454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31455 *) ac_try_echo=$ac_try;;
31457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31458 (eval "$ac_try") 2>&5
31460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31461 (exit $ac_status); }; }; then
31462 eval "$as_ac_var=yes"
31464 echo "$as_me: failed program was:" >&5
31465 sed 's/^/| /' conftest.$ac_ext >&5
31467 eval "$as_ac_var=no"
31470 rm -f core conftest.err conftest.$ac_objext \
31471 conftest$ac_exeext conftest.$ac_ext
31473 ac_res=`eval echo '${'$as_ac_var'}'`
31474 { echo "$as_me:$LINENO: result: $ac_res" >&5
31475 echo "${ECHO_T}$ac_res" >&6; }
31476 if test `eval echo '${'$as_ac_var'}'` = yes; then
31477 cat >>confdefs.h <<_ACEOF
31478 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31480 cat >>confdefs.h <<\_ACEOF
31481 #define HAVE_GETHOSTBYNAME2 1
31488 { echo "$as_me:$LINENO: checking for struct sockaddr has a sa_len field" >&5
31489 echo $ECHO_N "checking for struct sockaddr has a sa_len field... $ECHO_C" >&6; }
31490 if test "${ac_cv_struct_sockaddr_sa_len+set}" = set; then
31491 echo $ECHO_N "(cached) $ECHO_C" >&6
31493 cat >conftest.$ac_ext <<_ACEOF
31496 cat confdefs.h >>conftest.$ac_ext
31497 cat >>conftest.$ac_ext <<_ACEOF
31498 /* end confdefs.h. */
31499 #include <sys/socket.h>
31503 struct sockaddr s; s.sa_len;
31508 rm -f conftest.$ac_objext
31509 if { (ac_try="$ac_compile"
31510 case "(($ac_try" in
31511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31512 *) ac_try_echo=$ac_try;;
31514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31515 (eval "$ac_compile") 2>conftest.er1
31517 grep -v '^ *+' conftest.er1 >conftest.err
31519 cat conftest.err >&5
31520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31521 (exit $ac_status); } &&
31522 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31523 { (case "(($ac_try" in
31524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31525 *) ac_try_echo=$ac_try;;
31527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31528 (eval "$ac_try") 2>&5
31530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31531 (exit $ac_status); }; } &&
31532 { ac_try='test -s conftest.$ac_objext'
31533 { (case "(($ac_try" in
31534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31535 *) ac_try_echo=$ac_try;;
31537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31538 (eval "$ac_try") 2>&5
31540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31541 (exit $ac_status); }; }; then
31542 ac_cv_struct_sockaddr_sa_len=yes
31544 echo "$as_me: failed program was:" >&5
31545 sed 's/^/| /' conftest.$ac_ext >&5
31547 ac_cv_struct_sockaddr_sa_len=no
31550 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31552 { echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_sa_len" >&5
31553 echo "${ECHO_T}$ac_cv_struct_sockaddr_sa_len" >&6; }
31555 if test $ac_cv_struct_sockaddr_sa_len = yes; then
31557 cat >>confdefs.h <<\_ACEOF
31558 #define HAVE_SA_LEN 1
31567 for ac_func in strftime
31569 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31570 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31571 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31572 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31573 echo $ECHO_N "(cached) $ECHO_C" >&6
31575 cat >conftest.$ac_ext <<_ACEOF
31578 cat confdefs.h >>conftest.$ac_ext
31579 cat >>conftest.$ac_ext <<_ACEOF
31580 /* end confdefs.h. */
31581 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31582 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31583 #define $ac_func innocuous_$ac_func
31585 /* System header to define __stub macros and hopefully few prototypes,
31586 which can conflict with char $ac_func (); below.
31587 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31588 <limits.h> exists even on freestanding compilers. */
31591 # include <limits.h>
31593 # include <assert.h>
31598 /* Override any GCC internal prototype to avoid an error.
31599 Use char because int might match the return type of a GCC
31600 builtin and then its argument prototype would still apply. */
31605 /* The GNU C library defines this for functions which it implements
31606 to always fail with ENOSYS. Some functions are actually named
31607 something starting with __ and the normal name is an alias. */
31608 #if defined __stub_$ac_func || defined __stub___$ac_func
31615 return $ac_func ();
31620 rm -f conftest.$ac_objext conftest$ac_exeext
31621 if { (ac_try="$ac_link"
31622 case "(($ac_try" in
31623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31624 *) ac_try_echo=$ac_try;;
31626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31627 (eval "$ac_link") 2>conftest.er1
31629 grep -v '^ *+' conftest.er1 >conftest.err
31631 cat conftest.err >&5
31632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31633 (exit $ac_status); } &&
31634 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31635 { (case "(($ac_try" in
31636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31637 *) ac_try_echo=$ac_try;;
31639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31640 (eval "$ac_try") 2>&5
31642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31643 (exit $ac_status); }; } &&
31644 { ac_try='test -s conftest$ac_exeext'
31645 { (case "(($ac_try" in
31646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31647 *) ac_try_echo=$ac_try;;
31649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31650 (eval "$ac_try") 2>&5
31652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31653 (exit $ac_status); }; }; then
31654 eval "$as_ac_var=yes"
31656 echo "$as_me: failed program was:" >&5
31657 sed 's/^/| /' conftest.$ac_ext >&5
31659 eval "$as_ac_var=no"
31662 rm -f core conftest.err conftest.$ac_objext \
31663 conftest$ac_exeext conftest.$ac_ext
31665 ac_res=`eval echo '${'$as_ac_var'}'`
31666 { echo "$as_me:$LINENO: result: $ac_res" >&5
31667 echo "${ECHO_T}$ac_res" >&6; }
31668 if test `eval echo '${'$as_ac_var'}'` = yes; then
31669 cat >>confdefs.h <<_ACEOF
31670 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31674 # strftime is in -lintl on SCO UNIX.
31675 { echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
31676 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
31677 if test "${ac_cv_lib_intl_strftime+set}" = set; then
31678 echo $ECHO_N "(cached) $ECHO_C" >&6
31680 ac_check_lib_save_LIBS=$LIBS
31681 LIBS="-lintl $LIBS"
31682 cat >conftest.$ac_ext <<_ACEOF
31685 cat confdefs.h >>conftest.$ac_ext
31686 cat >>conftest.$ac_ext <<_ACEOF
31687 /* end confdefs.h. */
31689 /* Override any GCC internal prototype to avoid an error.
31690 Use char because int might match the return type of a GCC
31691 builtin and then its argument prototype would still apply. */
31699 return strftime ();
31704 rm -f conftest.$ac_objext conftest$ac_exeext
31705 if { (ac_try="$ac_link"
31706 case "(($ac_try" in
31707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31708 *) ac_try_echo=$ac_try;;
31710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31711 (eval "$ac_link") 2>conftest.er1
31713 grep -v '^ *+' conftest.er1 >conftest.err
31715 cat conftest.err >&5
31716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31717 (exit $ac_status); } &&
31718 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31719 { (case "(($ac_try" in
31720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31721 *) ac_try_echo=$ac_try;;
31723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31724 (eval "$ac_try") 2>&5
31726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31727 (exit $ac_status); }; } &&
31728 { ac_try='test -s conftest$ac_exeext'
31729 { (case "(($ac_try" in
31730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31731 *) ac_try_echo=$ac_try;;
31733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31734 (eval "$ac_try") 2>&5
31736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31737 (exit $ac_status); }; }; then
31738 ac_cv_lib_intl_strftime=yes
31740 echo "$as_me: failed program was:" >&5
31741 sed 's/^/| /' conftest.$ac_ext >&5
31743 ac_cv_lib_intl_strftime=no
31746 rm -f core conftest.err conftest.$ac_objext \
31747 conftest$ac_exeext conftest.$ac_ext
31748 LIBS=$ac_check_lib_save_LIBS
31750 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
31751 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
31752 if test $ac_cv_lib_intl_strftime = yes; then
31753 cat >>confdefs.h <<\_ACEOF
31754 #define HAVE_STRFTIME 1
31757 LIBS="-lintl $LIBS"
31764 for ac_func in vprintf
31766 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31767 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31768 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31769 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31770 echo $ECHO_N "(cached) $ECHO_C" >&6
31772 cat >conftest.$ac_ext <<_ACEOF
31775 cat confdefs.h >>conftest.$ac_ext
31776 cat >>conftest.$ac_ext <<_ACEOF
31777 /* end confdefs.h. */
31778 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31779 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31780 #define $ac_func innocuous_$ac_func
31782 /* System header to define __stub macros and hopefully few prototypes,
31783 which can conflict with char $ac_func (); below.
31784 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31785 <limits.h> exists even on freestanding compilers. */
31788 # include <limits.h>
31790 # include <assert.h>
31795 /* Override any GCC internal prototype to avoid an error.
31796 Use char because int might match the return type of a GCC
31797 builtin and then its argument prototype would still apply. */
31802 /* The GNU C library defines this for functions which it implements
31803 to always fail with ENOSYS. Some functions are actually named
31804 something starting with __ and the normal name is an alias. */
31805 #if defined __stub_$ac_func || defined __stub___$ac_func
31812 return $ac_func ();
31817 rm -f conftest.$ac_objext conftest$ac_exeext
31818 if { (ac_try="$ac_link"
31819 case "(($ac_try" in
31820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31821 *) ac_try_echo=$ac_try;;
31823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31824 (eval "$ac_link") 2>conftest.er1
31826 grep -v '^ *+' conftest.er1 >conftest.err
31828 cat conftest.err >&5
31829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31830 (exit $ac_status); } &&
31831 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31832 { (case "(($ac_try" in
31833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31834 *) ac_try_echo=$ac_try;;
31836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31837 (eval "$ac_try") 2>&5
31839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31840 (exit $ac_status); }; } &&
31841 { ac_try='test -s conftest$ac_exeext'
31842 { (case "(($ac_try" in
31843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31844 *) ac_try_echo=$ac_try;;
31846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31847 (eval "$ac_try") 2>&5
31849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31850 (exit $ac_status); }; }; then
31851 eval "$as_ac_var=yes"
31853 echo "$as_me: failed program was:" >&5
31854 sed 's/^/| /' conftest.$ac_ext >&5
31856 eval "$as_ac_var=no"
31859 rm -f core conftest.err conftest.$ac_objext \
31860 conftest$ac_exeext conftest.$ac_ext
31862 ac_res=`eval echo '${'$as_ac_var'}'`
31863 { echo "$as_me:$LINENO: result: $ac_res" >&5
31864 echo "${ECHO_T}$ac_res" >&6; }
31865 if test `eval echo '${'$as_ac_var'}'` = yes; then
31866 cat >>confdefs.h <<_ACEOF
31867 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31870 { echo "$as_me:$LINENO: checking for _doprnt" >&5
31871 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
31872 if test "${ac_cv_func__doprnt+set}" = set; then
31873 echo $ECHO_N "(cached) $ECHO_C" >&6
31875 cat >conftest.$ac_ext <<_ACEOF
31878 cat confdefs.h >>conftest.$ac_ext
31879 cat >>conftest.$ac_ext <<_ACEOF
31880 /* end confdefs.h. */
31881 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
31882 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31883 #define _doprnt innocuous__doprnt
31885 /* System header to define __stub macros and hopefully few prototypes,
31886 which can conflict with char _doprnt (); below.
31887 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31888 <limits.h> exists even on freestanding compilers. */
31891 # include <limits.h>
31893 # include <assert.h>
31898 /* Override any GCC internal prototype to avoid an error.
31899 Use char because int might match the return type of a GCC
31900 builtin and then its argument prototype would still apply. */
31905 /* The GNU C library defines this for functions which it implements
31906 to always fail with ENOSYS. Some functions are actually named
31907 something starting with __ and the normal name is an alias. */
31908 #if defined __stub__doprnt || defined __stub____doprnt
31920 rm -f conftest.$ac_objext conftest$ac_exeext
31921 if { (ac_try="$ac_link"
31922 case "(($ac_try" in
31923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31924 *) ac_try_echo=$ac_try;;
31926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31927 (eval "$ac_link") 2>conftest.er1
31929 grep -v '^ *+' conftest.er1 >conftest.err
31931 cat conftest.err >&5
31932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31933 (exit $ac_status); } &&
31934 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31935 { (case "(($ac_try" in
31936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31937 *) ac_try_echo=$ac_try;;
31939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31940 (eval "$ac_try") 2>&5
31942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31943 (exit $ac_status); }; } &&
31944 { ac_try='test -s conftest$ac_exeext'
31945 { (case "(($ac_try" in
31946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31947 *) ac_try_echo=$ac_try;;
31949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31950 (eval "$ac_try") 2>&5
31952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31953 (exit $ac_status); }; }; then
31954 ac_cv_func__doprnt=yes
31956 echo "$as_me: failed program was:" >&5
31957 sed 's/^/| /' conftest.$ac_ext >&5
31959 ac_cv_func__doprnt=no
31962 rm -f core conftest.err conftest.$ac_objext \
31963 conftest$ac_exeext conftest.$ac_ext
31965 { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
31966 echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
31967 if test $ac_cv_func__doprnt = yes; then
31969 cat >>confdefs.h <<\_ACEOF
31970 #define HAVE_DOPRNT 1
31979 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
31980 # for constant arguments. Useless!
31981 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
31982 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
31983 if test "${ac_cv_working_alloca_h+set}" = set; then
31984 echo $ECHO_N "(cached) $ECHO_C" >&6
31986 cat >conftest.$ac_ext <<_ACEOF
31989 cat confdefs.h >>conftest.$ac_ext
31990 cat >>conftest.$ac_ext <<_ACEOF
31991 /* end confdefs.h. */
31992 #include <alloca.h>
31996 char *p = (char *) alloca (2 * sizeof (int));
32002 rm -f conftest.$ac_objext conftest$ac_exeext
32003 if { (ac_try="$ac_link"
32004 case "(($ac_try" in
32005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32006 *) ac_try_echo=$ac_try;;
32008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32009 (eval "$ac_link") 2>conftest.er1
32011 grep -v '^ *+' conftest.er1 >conftest.err
32013 cat conftest.err >&5
32014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32015 (exit $ac_status); } &&
32016 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32017 { (case "(($ac_try" in
32018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32019 *) ac_try_echo=$ac_try;;
32021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32022 (eval "$ac_try") 2>&5
32024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32025 (exit $ac_status); }; } &&
32026 { ac_try='test -s conftest$ac_exeext'
32027 { (case "(($ac_try" in
32028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32029 *) ac_try_echo=$ac_try;;
32031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32032 (eval "$ac_try") 2>&5
32034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32035 (exit $ac_status); }; }; then
32036 ac_cv_working_alloca_h=yes
32038 echo "$as_me: failed program was:" >&5
32039 sed 's/^/| /' conftest.$ac_ext >&5
32041 ac_cv_working_alloca_h=no
32044 rm -f core conftest.err conftest.$ac_objext \
32045 conftest$ac_exeext conftest.$ac_ext
32047 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
32048 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
32049 if test $ac_cv_working_alloca_h = yes; then
32051 cat >>confdefs.h <<\_ACEOF
32052 #define HAVE_ALLOCA_H 1
32057 { echo "$as_me:$LINENO: checking for alloca" >&5
32058 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
32059 if test "${ac_cv_func_alloca_works+set}" = set; then
32060 echo $ECHO_N "(cached) $ECHO_C" >&6
32062 cat >conftest.$ac_ext <<_ACEOF
32065 cat confdefs.h >>conftest.$ac_ext
32066 cat >>conftest.$ac_ext <<_ACEOF
32067 /* end confdefs.h. */
32069 # define alloca __builtin_alloca
32072 # include <malloc.h>
32073 # define alloca _alloca
32076 # include <alloca.h>
32081 # ifndef alloca /* predefined by HP cc +Olibcalls */
32092 char *p = (char *) alloca (1);
32098 rm -f conftest.$ac_objext conftest$ac_exeext
32099 if { (ac_try="$ac_link"
32100 case "(($ac_try" in
32101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32102 *) ac_try_echo=$ac_try;;
32104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32105 (eval "$ac_link") 2>conftest.er1
32107 grep -v '^ *+' conftest.er1 >conftest.err
32109 cat conftest.err >&5
32110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32111 (exit $ac_status); } &&
32112 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32113 { (case "(($ac_try" in
32114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32115 *) ac_try_echo=$ac_try;;
32117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32118 (eval "$ac_try") 2>&5
32120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32121 (exit $ac_status); }; } &&
32122 { ac_try='test -s conftest$ac_exeext'
32123 { (case "(($ac_try" in
32124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32125 *) ac_try_echo=$ac_try;;
32127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32128 (eval "$ac_try") 2>&5
32130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32131 (exit $ac_status); }; }; then
32132 ac_cv_func_alloca_works=yes
32134 echo "$as_me: failed program was:" >&5
32135 sed 's/^/| /' conftest.$ac_ext >&5
32137 ac_cv_func_alloca_works=no
32140 rm -f core conftest.err conftest.$ac_objext \
32141 conftest$ac_exeext conftest.$ac_ext
32143 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
32144 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
32146 if test $ac_cv_func_alloca_works = yes; then
32148 cat >>confdefs.h <<\_ACEOF
32149 #define HAVE_ALLOCA 1
32153 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
32154 # that cause trouble. Some versions do not even contain alloca or
32155 # contain a buggy version. If you still want to use their alloca,
32156 # use ar to extract alloca.o from them instead of compiling alloca.c.
32158 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
32160 cat >>confdefs.h <<\_ACEOF
32165 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
32166 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
32167 if test "${ac_cv_os_cray+set}" = set; then
32168 echo $ECHO_N "(cached) $ECHO_C" >&6
32170 cat >conftest.$ac_ext <<_ACEOF
32173 cat confdefs.h >>conftest.$ac_ext
32174 cat >>conftest.$ac_ext <<_ACEOF
32175 /* end confdefs.h. */
32176 #if defined CRAY && ! defined CRAY2
32183 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32184 $EGREP "webecray" >/dev/null 2>&1; then
32192 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
32193 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
32194 if test $ac_cv_os_cray = yes; then
32195 for ac_func in _getb67 GETB67 getb67; do
32196 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32197 { echo "$as_me:$LINENO: checking for $ac_func" >&5
32198 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32199 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32200 echo $ECHO_N "(cached) $ECHO_C" >&6
32202 cat >conftest.$ac_ext <<_ACEOF
32205 cat confdefs.h >>conftest.$ac_ext
32206 cat >>conftest.$ac_ext <<_ACEOF
32207 /* end confdefs.h. */
32208 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32209 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32210 #define $ac_func innocuous_$ac_func
32212 /* System header to define __stub macros and hopefully few prototypes,
32213 which can conflict with char $ac_func (); below.
32214 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32215 <limits.h> exists even on freestanding compilers. */
32218 # include <limits.h>
32220 # include <assert.h>
32225 /* Override any GCC internal prototype to avoid an error.
32226 Use char because int might match the return type of a GCC
32227 builtin and then its argument prototype would still apply. */
32232 /* The GNU C library defines this for functions which it implements
32233 to always fail with ENOSYS. Some functions are actually named
32234 something starting with __ and the normal name is an alias. */
32235 #if defined __stub_$ac_func || defined __stub___$ac_func
32242 return $ac_func ();
32247 rm -f conftest.$ac_objext conftest$ac_exeext
32248 if { (ac_try="$ac_link"
32249 case "(($ac_try" in
32250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32251 *) ac_try_echo=$ac_try;;
32253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32254 (eval "$ac_link") 2>conftest.er1
32256 grep -v '^ *+' conftest.er1 >conftest.err
32258 cat conftest.err >&5
32259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32260 (exit $ac_status); } &&
32261 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32262 { (case "(($ac_try" in
32263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32264 *) ac_try_echo=$ac_try;;
32266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32267 (eval "$ac_try") 2>&5
32269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32270 (exit $ac_status); }; } &&
32271 { ac_try='test -s conftest$ac_exeext'
32272 { (case "(($ac_try" in
32273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32274 *) ac_try_echo=$ac_try;;
32276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32277 (eval "$ac_try") 2>&5
32279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32280 (exit $ac_status); }; }; then
32281 eval "$as_ac_var=yes"
32283 echo "$as_me: failed program was:" >&5
32284 sed 's/^/| /' conftest.$ac_ext >&5
32286 eval "$as_ac_var=no"
32289 rm -f core conftest.err conftest.$ac_objext \
32290 conftest$ac_exeext conftest.$ac_ext
32292 ac_res=`eval echo '${'$as_ac_var'}'`
32293 { echo "$as_me:$LINENO: result: $ac_res" >&5
32294 echo "${ECHO_T}$ac_res" >&6; }
32295 if test `eval echo '${'$as_ac_var'}'` = yes; then
32297 cat >>confdefs.h <<_ACEOF
32298 #define CRAY_STACKSEG_END $ac_func
32307 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
32308 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
32309 if test "${ac_cv_c_stack_direction+set}" = set; then
32310 echo $ECHO_N "(cached) $ECHO_C" >&6
32312 if test "$cross_compiling" = yes; then
32313 ac_cv_c_stack_direction=0
32315 cat >conftest.$ac_ext <<_ACEOF
32318 cat confdefs.h >>conftest.$ac_ext
32319 cat >>conftest.$ac_ext <<_ACEOF
32320 /* end confdefs.h. */
32321 $ac_includes_default
32323 find_stack_direction ()
32325 static char *addr = 0;
32330 return find_stack_direction ();
32333 return (&dummy > addr) ? 1 : -1;
32339 return find_stack_direction () < 0;
32342 rm -f conftest$ac_exeext
32343 if { (ac_try="$ac_link"
32344 case "(($ac_try" in
32345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32346 *) ac_try_echo=$ac_try;;
32348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32349 (eval "$ac_link") 2>&5
32351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32352 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32353 { (case "(($ac_try" in
32354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32355 *) ac_try_echo=$ac_try;;
32357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32358 (eval "$ac_try") 2>&5
32360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32361 (exit $ac_status); }; }; then
32362 ac_cv_c_stack_direction=1
32364 echo "$as_me: program exited with status $ac_status" >&5
32365 echo "$as_me: failed program was:" >&5
32366 sed 's/^/| /' conftest.$ac_ext >&5
32368 ( exit $ac_status )
32369 ac_cv_c_stack_direction=-1
32371 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32376 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
32377 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
32379 cat >>confdefs.h <<_ACEOF
32380 #define STACK_DIRECTION $ac_cv_c_stack_direction
32386 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
32387 # -lseq on Dynix/PTX, -lgen on Unixware.
32388 { echo "$as_me:$LINENO: checking for library containing getmntent" >&5
32389 echo $ECHO_N "checking for library containing getmntent... $ECHO_C" >&6; }
32390 if test "${ac_cv_search_getmntent+set}" = set; then
32391 echo $ECHO_N "(cached) $ECHO_C" >&6
32393 ac_func_search_save_LIBS=$LIBS
32394 cat >conftest.$ac_ext <<_ACEOF
32397 cat confdefs.h >>conftest.$ac_ext
32398 cat >>conftest.$ac_ext <<_ACEOF
32399 /* end confdefs.h. */
32401 /* Override any GCC internal prototype to avoid an error.
32402 Use char because int might match the return type of a GCC
32403 builtin and then its argument prototype would still apply. */
32411 return getmntent ();
32416 for ac_lib in '' sun seq gen; do
32417 if test -z "$ac_lib"; then
32418 ac_res="none required"
32421 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
32423 rm -f conftest.$ac_objext conftest$ac_exeext
32424 if { (ac_try="$ac_link"
32425 case "(($ac_try" in
32426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32427 *) ac_try_echo=$ac_try;;
32429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32430 (eval "$ac_link") 2>conftest.er1
32432 grep -v '^ *+' conftest.er1 >conftest.err
32434 cat conftest.err >&5
32435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32436 (exit $ac_status); } &&
32437 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32438 { (case "(($ac_try" in
32439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32440 *) ac_try_echo=$ac_try;;
32442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32443 (eval "$ac_try") 2>&5
32445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32446 (exit $ac_status); }; } &&
32447 { ac_try='test -s conftest$ac_exeext'
32448 { (case "(($ac_try" in
32449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32450 *) ac_try_echo=$ac_try;;
32452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32453 (eval "$ac_try") 2>&5
32455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32456 (exit $ac_status); }; }; then
32457 ac_cv_search_getmntent=$ac_res
32459 echo "$as_me: failed program was:" >&5
32460 sed 's/^/| /' conftest.$ac_ext >&5
32465 rm -f core conftest.err conftest.$ac_objext \
32467 if test "${ac_cv_search_getmntent+set}" = set; then
32471 if test "${ac_cv_search_getmntent+set}" = set; then
32474 ac_cv_search_getmntent=no
32476 rm conftest.$ac_ext
32477 LIBS=$ac_func_search_save_LIBS
32479 { echo "$as_me:$LINENO: result: $ac_cv_search_getmntent" >&5
32480 echo "${ECHO_T}$ac_cv_search_getmntent" >&6; }
32481 ac_res=$ac_cv_search_getmntent
32482 if test "$ac_res" != no; then
32483 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
32488 for ac_func in getmntent
32490 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32491 { echo "$as_me:$LINENO: checking for $ac_func" >&5
32492 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32493 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32494 echo $ECHO_N "(cached) $ECHO_C" >&6
32496 cat >conftest.$ac_ext <<_ACEOF
32499 cat confdefs.h >>conftest.$ac_ext
32500 cat >>conftest.$ac_ext <<_ACEOF
32501 /* end confdefs.h. */
32502 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32503 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32504 #define $ac_func innocuous_$ac_func
32506 /* System header to define __stub macros and hopefully few prototypes,
32507 which can conflict with char $ac_func (); below.
32508 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32509 <limits.h> exists even on freestanding compilers. */
32512 # include <limits.h>
32514 # include <assert.h>
32519 /* Override any GCC internal prototype to avoid an error.
32520 Use char because int might match the return type of a GCC
32521 builtin and then its argument prototype would still apply. */
32526 /* The GNU C library defines this for functions which it implements
32527 to always fail with ENOSYS. Some functions are actually named
32528 something starting with __ and the normal name is an alias. */
32529 #if defined __stub_$ac_func || defined __stub___$ac_func
32536 return $ac_func ();
32541 rm -f conftest.$ac_objext conftest$ac_exeext
32542 if { (ac_try="$ac_link"
32543 case "(($ac_try" in
32544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32545 *) ac_try_echo=$ac_try;;
32547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32548 (eval "$ac_link") 2>conftest.er1
32550 grep -v '^ *+' conftest.er1 >conftest.err
32552 cat conftest.err >&5
32553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32554 (exit $ac_status); } &&
32555 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32556 { (case "(($ac_try" in
32557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32558 *) ac_try_echo=$ac_try;;
32560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32561 (eval "$ac_try") 2>&5
32563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32564 (exit $ac_status); }; } &&
32565 { ac_try='test -s conftest$ac_exeext'
32566 { (case "(($ac_try" in
32567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32568 *) ac_try_echo=$ac_try;;
32570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32571 (eval "$ac_try") 2>&5
32573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32574 (exit $ac_status); }; }; then
32575 eval "$as_ac_var=yes"
32577 echo "$as_me: failed program was:" >&5
32578 sed 's/^/| /' conftest.$ac_ext >&5
32580 eval "$as_ac_var=no"
32583 rm -f core conftest.err conftest.$ac_objext \
32584 conftest$ac_exeext conftest.$ac_ext
32586 ac_res=`eval echo '${'$as_ac_var'}'`
32587 { echo "$as_me:$LINENO: result: $ac_res" >&5
32588 echo "${ECHO_T}$ac_res" >&6; }
32589 if test `eval echo '${'$as_ac_var'}'` = yes; then
32590 cat >>confdefs.h <<_ACEOF
32591 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32598 { echo "$as_me:$LINENO: checking whether closedir returns void" >&5
32599 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6; }
32600 if test "${ac_cv_func_closedir_void+set}" = set; then
32601 echo $ECHO_N "(cached) $ECHO_C" >&6
32603 if test "$cross_compiling" = yes; then
32604 ac_cv_func_closedir_void=yes
32606 cat >conftest.$ac_ext <<_ACEOF
32609 cat confdefs.h >>conftest.$ac_ext
32610 cat >>conftest.$ac_ext <<_ACEOF
32611 /* end confdefs.h. */
32612 $ac_includes_default
32613 #include <$ac_header_dirent>
32614 #ifndef __cplusplus
32621 return closedir (opendir (".")) != 0;
32626 rm -f conftest$ac_exeext
32627 if { (ac_try="$ac_link"
32628 case "(($ac_try" in
32629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32630 *) ac_try_echo=$ac_try;;
32632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32633 (eval "$ac_link") 2>&5
32635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32636 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32637 { (case "(($ac_try" in
32638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32639 *) ac_try_echo=$ac_try;;
32641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32642 (eval "$ac_try") 2>&5
32644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32645 (exit $ac_status); }; }; then
32646 ac_cv_func_closedir_void=no
32648 echo "$as_me: program exited with status $ac_status" >&5
32649 echo "$as_me: failed program was:" >&5
32650 sed 's/^/| /' conftest.$ac_ext >&5
32652 ( exit $ac_status )
32653 ac_cv_func_closedir_void=yes
32655 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32660 { echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
32661 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6; }
32662 if test $ac_cv_func_closedir_void = yes; then
32664 cat >>confdefs.h <<\_ACEOF
32665 #define CLOSEDIR_VOID 1
32670 { echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
32671 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6; }
32672 if test "${ac_cv_func_setpgrp_void+set}" = set; then
32673 echo $ECHO_N "(cached) $ECHO_C" >&6
32675 if test "$cross_compiling" = yes; then
32676 { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
32677 echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
32678 { (exit 1); exit 1; }; }
32680 cat >conftest.$ac_ext <<_ACEOF
32683 cat confdefs.h >>conftest.$ac_ext
32684 cat >>conftest.$ac_ext <<_ACEOF
32685 /* end confdefs.h. */
32686 $ac_includes_default
32690 /* If this system has a BSD-style setpgrp which takes arguments,
32691 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
32692 exit successfully. */
32693 return setpgrp (1,1) != -1;
32698 rm -f conftest$ac_exeext
32699 if { (ac_try="$ac_link"
32700 case "(($ac_try" in
32701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32702 *) ac_try_echo=$ac_try;;
32704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32705 (eval "$ac_link") 2>&5
32707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32708 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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_try") 2>&5
32716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32717 (exit $ac_status); }; }; then
32718 ac_cv_func_setpgrp_void=no
32720 echo "$as_me: program exited with status $ac_status" >&5
32721 echo "$as_me: failed program was:" >&5
32722 sed 's/^/| /' conftest.$ac_ext >&5
32724 ( exit $ac_status )
32725 ac_cv_func_setpgrp_void=yes
32727 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32732 { echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
32733 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6; }
32734 if test $ac_cv_func_setpgrp_void = yes; then
32736 cat >>confdefs.h <<\_ACEOF
32737 #define SETPGRP_VOID 1
32741 # AC_FUNC_FNMATCH dnl use local version
32744 { echo "$as_me:$LINENO: checking for gettext in -lintl" >&5
32745 echo $ECHO_N "checking for gettext in -lintl... $ECHO_C" >&6; }
32746 if test "${ac_cv_lib_intl_gettext+set}" = set; then
32747 echo $ECHO_N "(cached) $ECHO_C" >&6
32749 ac_check_lib_save_LIBS=$LIBS
32750 LIBS="-lintl $LIBS"
32751 cat >conftest.$ac_ext <<_ACEOF
32754 cat confdefs.h >>conftest.$ac_ext
32755 cat >>conftest.$ac_ext <<_ACEOF
32756 /* end confdefs.h. */
32758 /* Override any GCC internal prototype to avoid an error.
32759 Use char because int might match the return type of a GCC
32760 builtin and then its argument prototype would still apply. */
32773 rm -f conftest.$ac_objext conftest$ac_exeext
32774 if { (ac_try="$ac_link"
32775 case "(($ac_try" in
32776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32777 *) ac_try_echo=$ac_try;;
32779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32780 (eval "$ac_link") 2>conftest.er1
32782 grep -v '^ *+' conftest.er1 >conftest.err
32784 cat conftest.err >&5
32785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32786 (exit $ac_status); } &&
32787 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32788 { (case "(($ac_try" in
32789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32790 *) ac_try_echo=$ac_try;;
32792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32793 (eval "$ac_try") 2>&5
32795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32796 (exit $ac_status); }; } &&
32797 { ac_try='test -s conftest$ac_exeext'
32798 { (case "(($ac_try" in
32799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32800 *) ac_try_echo=$ac_try;;
32802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32803 (eval "$ac_try") 2>&5
32805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32806 (exit $ac_status); }; }; then
32807 ac_cv_lib_intl_gettext=yes
32809 echo "$as_me: failed program was:" >&5
32810 sed 's/^/| /' conftest.$ac_ext >&5
32812 ac_cv_lib_intl_gettext=no
32815 rm -f core conftest.err conftest.$ac_objext \
32816 conftest$ac_exeext conftest.$ac_ext
32817 LIBS=$ac_check_lib_save_LIBS
32819 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_gettext" >&5
32820 echo "${ECHO_T}$ac_cv_lib_intl_gettext" >&6; }
32821 if test $ac_cv_lib_intl_gettext = yes; then
32822 LIBS="$LIBS -lintl"
32828 { echo "$as_me:$LINENO: checking for getpwnam in -lsun" >&5
32829 echo $ECHO_N "checking for getpwnam in -lsun... $ECHO_C" >&6; }
32830 if test "${ac_cv_lib_sun_getpwnam+set}" = set; then
32831 echo $ECHO_N "(cached) $ECHO_C" >&6
32833 ac_check_lib_save_LIBS=$LIBS
32835 cat >conftest.$ac_ext <<_ACEOF
32838 cat confdefs.h >>conftest.$ac_ext
32839 cat >>conftest.$ac_ext <<_ACEOF
32840 /* end confdefs.h. */
32842 /* Override any GCC internal prototype to avoid an error.
32843 Use char because int might match the return type of a GCC
32844 builtin and then its argument prototype would still apply. */
32852 return getpwnam ();
32857 rm -f conftest.$ac_objext conftest$ac_exeext
32858 if { (ac_try="$ac_link"
32859 case "(($ac_try" in
32860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32861 *) ac_try_echo=$ac_try;;
32863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32864 (eval "$ac_link") 2>conftest.er1
32866 grep -v '^ *+' conftest.er1 >conftest.err
32868 cat conftest.err >&5
32869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32870 (exit $ac_status); } &&
32871 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32872 { (case "(($ac_try" in
32873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32874 *) ac_try_echo=$ac_try;;
32876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32877 (eval "$ac_try") 2>&5
32879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32880 (exit $ac_status); }; } &&
32881 { ac_try='test -s conftest$ac_exeext'
32882 { (case "(($ac_try" in
32883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32884 *) ac_try_echo=$ac_try;;
32886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32887 (eval "$ac_try") 2>&5
32889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32890 (exit $ac_status); }; }; then
32891 ac_cv_lib_sun_getpwnam=yes
32893 echo "$as_me: failed program was:" >&5
32894 sed 's/^/| /' conftest.$ac_ext >&5
32896 ac_cv_lib_sun_getpwnam=no
32899 rm -f core conftest.err conftest.$ac_objext \
32900 conftest$ac_exeext conftest.$ac_ext
32901 LIBS=$ac_check_lib_save_LIBS
32903 { echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getpwnam" >&5
32904 echo "${ECHO_T}$ac_cv_lib_sun_getpwnam" >&6; }
32905 if test $ac_cv_lib_sun_getpwnam = yes; then
32906 cat >>confdefs.h <<_ACEOF
32907 #define HAVE_LIBSUN 1
32916 for ac_header in zlib.h
32918 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32919 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32920 { echo "$as_me:$LINENO: checking for $ac_header" >&5
32921 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
32922 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32923 echo $ECHO_N "(cached) $ECHO_C" >&6
32925 ac_res=`eval echo '${'$as_ac_Header'}'`
32926 { echo "$as_me:$LINENO: result: $ac_res" >&5
32927 echo "${ECHO_T}$ac_res" >&6; }
32929 # Is the header compilable?
32930 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
32931 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
32932 cat >conftest.$ac_ext <<_ACEOF
32935 cat confdefs.h >>conftest.$ac_ext
32936 cat >>conftest.$ac_ext <<_ACEOF
32937 /* end confdefs.h. */
32938 $ac_includes_default
32939 #include <$ac_header>
32941 rm -f conftest.$ac_objext
32942 if { (ac_try="$ac_compile"
32943 case "(($ac_try" in
32944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32945 *) ac_try_echo=$ac_try;;
32947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32948 (eval "$ac_compile") 2>conftest.er1
32950 grep -v '^ *+' conftest.er1 >conftest.err
32952 cat conftest.err >&5
32953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32954 (exit $ac_status); } &&
32955 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32956 { (case "(($ac_try" in
32957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32958 *) ac_try_echo=$ac_try;;
32960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32961 (eval "$ac_try") 2>&5
32963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32964 (exit $ac_status); }; } &&
32965 { ac_try='test -s conftest.$ac_objext'
32966 { (case "(($ac_try" in
32967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32968 *) ac_try_echo=$ac_try;;
32970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32971 (eval "$ac_try") 2>&5
32973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32974 (exit $ac_status); }; }; then
32975 ac_header_compiler=yes
32977 echo "$as_me: failed program was:" >&5
32978 sed 's/^/| /' conftest.$ac_ext >&5
32980 ac_header_compiler=no
32983 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32984 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32985 echo "${ECHO_T}$ac_header_compiler" >&6; }
32987 # Is the header present?
32988 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
32989 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
32990 cat >conftest.$ac_ext <<_ACEOF
32993 cat confdefs.h >>conftest.$ac_ext
32994 cat >>conftest.$ac_ext <<_ACEOF
32995 /* end confdefs.h. */
32996 #include <$ac_header>
32998 if { (ac_try="$ac_cpp conftest.$ac_ext"
32999 case "(($ac_try" in
33000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33001 *) ac_try_echo=$ac_try;;
33003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33004 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33006 grep -v '^ *+' conftest.er1 >conftest.err
33008 cat conftest.err >&5
33009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33010 (exit $ac_status); } >/dev/null; then
33011 if test -s conftest.err; then
33012 ac_cpp_err=$ac_c_preproc_warn_flag
33013 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
33020 if test -z "$ac_cpp_err"; then
33021 ac_header_preproc=yes
33023 echo "$as_me: failed program was:" >&5
33024 sed 's/^/| /' conftest.$ac_ext >&5
33026 ac_header_preproc=no
33029 rm -f conftest.err conftest.$ac_ext
33030 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33031 echo "${ECHO_T}$ac_header_preproc" >&6; }
33033 # So? What about this header?
33034 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33036 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
33037 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
33038 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
33039 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
33040 ac_header_preproc=yes
33043 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
33044 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
33045 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
33046 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
33047 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
33048 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
33049 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
33050 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
33051 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
33052 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
33053 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
33054 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
33058 { echo "$as_me:$LINENO: checking for $ac_header" >&5
33059 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
33060 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33061 echo $ECHO_N "(cached) $ECHO_C" >&6
33063 eval "$as_ac_Header=\$ac_header_preproc"
33065 ac_res=`eval echo '${'$as_ac_Header'}'`
33066 { echo "$as_me:$LINENO: result: $ac_res" >&5
33067 echo "${ECHO_T}$ac_res" >&6; }
33070 if test `eval echo '${'$as_ac_Header'}'` = yes; then
33071 cat >>confdefs.h <<_ACEOF
33072 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
33079 { echo "$as_me:$LINENO: checking for deflate in -lz" >&5
33080 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6; }
33081 if test "${ac_cv_lib_z_deflate+set}" = set; then
33082 echo $ECHO_N "(cached) $ECHO_C" >&6
33084 ac_check_lib_save_LIBS=$LIBS
33086 cat >conftest.$ac_ext <<_ACEOF
33089 cat confdefs.h >>conftest.$ac_ext
33090 cat >>conftest.$ac_ext <<_ACEOF
33091 /* end confdefs.h. */
33093 /* Override any GCC internal prototype to avoid an error.
33094 Use char because int might match the return type of a GCC
33095 builtin and then its argument prototype would still apply. */
33108 rm -f conftest.$ac_objext conftest$ac_exeext
33109 if { (ac_try="$ac_link"
33110 case "(($ac_try" in
33111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33112 *) ac_try_echo=$ac_try;;
33114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33115 (eval "$ac_link") 2>conftest.er1
33117 grep -v '^ *+' conftest.er1 >conftest.err
33119 cat conftest.err >&5
33120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33121 (exit $ac_status); } &&
33122 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33123 { (case "(($ac_try" in
33124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33125 *) ac_try_echo=$ac_try;;
33127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33128 (eval "$ac_try") 2>&5
33130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33131 (exit $ac_status); }; } &&
33132 { ac_try='test -s conftest$ac_exeext'
33133 { (case "(($ac_try" in
33134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33135 *) ac_try_echo=$ac_try;;
33137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33138 (eval "$ac_try") 2>&5
33140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33141 (exit $ac_status); }; }; then
33142 ac_cv_lib_z_deflate=yes
33144 echo "$as_me: failed program was:" >&5
33145 sed 's/^/| /' conftest.$ac_ext >&5
33147 ac_cv_lib_z_deflate=no
33150 rm -f core conftest.err conftest.$ac_objext \
33151 conftest$ac_exeext conftest.$ac_ext
33152 LIBS=$ac_check_lib_save_LIBS
33154 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
33155 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6; }
33156 if test $ac_cv_lib_z_deflate = yes; then
33161 if test x$FDLIBS = x-lz; then
33162 cat >>confdefs.h <<\_ACEOF
33163 #define HAVE_LIBZ 1
33170 # Check for ACL libraries
33173 if test "${ac_cv_header_sys_acl_h+set}" = set; then
33174 { echo "$as_me:$LINENO: checking for sys/acl.h" >&5
33175 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6; }
33176 if test "${ac_cv_header_sys_acl_h+set}" = set; then
33177 echo $ECHO_N "(cached) $ECHO_C" >&6
33179 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
33180 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6; }
33182 # Is the header compilable?
33183 { echo "$as_me:$LINENO: checking sys/acl.h usability" >&5
33184 echo $ECHO_N "checking sys/acl.h usability... $ECHO_C" >&6; }
33185 cat >conftest.$ac_ext <<_ACEOF
33188 cat confdefs.h >>conftest.$ac_ext
33189 cat >>conftest.$ac_ext <<_ACEOF
33190 /* end confdefs.h. */
33191 $ac_includes_default
33192 #include <sys/acl.h>
33194 rm -f conftest.$ac_objext
33195 if { (ac_try="$ac_compile"
33196 case "(($ac_try" in
33197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33198 *) ac_try_echo=$ac_try;;
33200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33201 (eval "$ac_compile") 2>conftest.er1
33203 grep -v '^ *+' conftest.er1 >conftest.err
33205 cat conftest.err >&5
33206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33207 (exit $ac_status); } &&
33208 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33209 { (case "(($ac_try" in
33210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33211 *) ac_try_echo=$ac_try;;
33213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33214 (eval "$ac_try") 2>&5
33216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33217 (exit $ac_status); }; } &&
33218 { ac_try='test -s conftest.$ac_objext'
33219 { (case "(($ac_try" in
33220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33221 *) ac_try_echo=$ac_try;;
33223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33224 (eval "$ac_try") 2>&5
33226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33227 (exit $ac_status); }; }; then
33228 ac_header_compiler=yes
33230 echo "$as_me: failed program was:" >&5
33231 sed 's/^/| /' conftest.$ac_ext >&5
33233 ac_header_compiler=no
33236 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33237 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33238 echo "${ECHO_T}$ac_header_compiler" >&6; }
33240 # Is the header present?
33241 { echo "$as_me:$LINENO: checking sys/acl.h presence" >&5
33242 echo $ECHO_N "checking sys/acl.h presence... $ECHO_C" >&6; }
33243 cat >conftest.$ac_ext <<_ACEOF
33246 cat confdefs.h >>conftest.$ac_ext
33247 cat >>conftest.$ac_ext <<_ACEOF
33248 /* end confdefs.h. */
33249 #include <sys/acl.h>
33251 if { (ac_try="$ac_cpp conftest.$ac_ext"
33252 case "(($ac_try" in
33253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33254 *) ac_try_echo=$ac_try;;
33256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33257 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33259 grep -v '^ *+' conftest.er1 >conftest.err
33261 cat conftest.err >&5
33262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33263 (exit $ac_status); } >/dev/null; then
33264 if test -s conftest.err; then
33265 ac_cpp_err=$ac_c_preproc_warn_flag
33266 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
33273 if test -z "$ac_cpp_err"; then
33274 ac_header_preproc=yes
33276 echo "$as_me: failed program was:" >&5
33277 sed 's/^/| /' conftest.$ac_ext >&5
33279 ac_header_preproc=no
33282 rm -f conftest.err conftest.$ac_ext
33283 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33284 echo "${ECHO_T}$ac_header_preproc" >&6; }
33286 # So? What about this header?
33287 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33289 { echo "$as_me:$LINENO: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&5
33290 echo "$as_me: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
33291 { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the compiler's result" >&5
33292 echo "$as_me: WARNING: sys/acl.h: proceeding with the compiler's result" >&2;}
33293 ac_header_preproc=yes
33296 { echo "$as_me:$LINENO: WARNING: sys/acl.h: present but cannot be compiled" >&5
33297 echo "$as_me: WARNING: sys/acl.h: present but cannot be compiled" >&2;}
33298 { echo "$as_me:$LINENO: WARNING: sys/acl.h: check for missing prerequisite headers?" >&5
33299 echo "$as_me: WARNING: sys/acl.h: check for missing prerequisite headers?" >&2;}
33300 { echo "$as_me:$LINENO: WARNING: sys/acl.h: see the Autoconf documentation" >&5
33301 echo "$as_me: WARNING: sys/acl.h: see the Autoconf documentation" >&2;}
33302 { echo "$as_me:$LINENO: WARNING: sys/acl.h: section \"Present But Cannot Be Compiled\"" >&5
33303 echo "$as_me: WARNING: sys/acl.h: section \"Present But Cannot Be Compiled\"" >&2;}
33304 { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&5
33305 echo "$as_me: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&2;}
33306 { echo "$as_me:$LINENO: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&5
33307 echo "$as_me: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&2;}
33311 { echo "$as_me:$LINENO: checking for sys/acl.h" >&5
33312 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6; }
33313 if test "${ac_cv_header_sys_acl_h+set}" = set; then
33314 echo $ECHO_N "(cached) $ECHO_C" >&6
33316 ac_cv_header_sys_acl_h=$ac_header_preproc
33318 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
33319 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6; }
33324 { echo "$as_me:$LINENO: checking for acl_get_file" >&5
33325 echo $ECHO_N "checking for acl_get_file... $ECHO_C" >&6; }
33326 if test "${ac_cv_func_acl_get_file+set}" = set; then
33327 echo $ECHO_N "(cached) $ECHO_C" >&6
33329 cat >conftest.$ac_ext <<_ACEOF
33332 cat confdefs.h >>conftest.$ac_ext
33333 cat >>conftest.$ac_ext <<_ACEOF
33334 /* end confdefs.h. */
33335 /* Define acl_get_file to an innocuous variant, in case <limits.h> declares acl_get_file.
33336 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33337 #define acl_get_file innocuous_acl_get_file
33339 /* System header to define __stub macros and hopefully few prototypes,
33340 which can conflict with char acl_get_file (); below.
33341 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33342 <limits.h> exists even on freestanding compilers. */
33345 # include <limits.h>
33347 # include <assert.h>
33350 #undef acl_get_file
33352 /* Override any GCC internal prototype to avoid an error.
33353 Use char because int might match the return type of a GCC
33354 builtin and then its argument prototype would still apply. */
33358 char acl_get_file ();
33359 /* The GNU C library defines this for functions which it implements
33360 to always fail with ENOSYS. Some functions are actually named
33361 something starting with __ and the normal name is an alias. */
33362 #if defined __stub_acl_get_file || defined __stub___acl_get_file
33369 return acl_get_file ();
33374 rm -f conftest.$ac_objext conftest$ac_exeext
33375 if { (ac_try="$ac_link"
33376 case "(($ac_try" in
33377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33378 *) ac_try_echo=$ac_try;;
33380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33381 (eval "$ac_link") 2>conftest.er1
33383 grep -v '^ *+' conftest.er1 >conftest.err
33385 cat conftest.err >&5
33386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33387 (exit $ac_status); } &&
33388 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
33396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33397 (exit $ac_status); }; } &&
33398 { ac_try='test -s conftest$ac_exeext'
33399 { (case "(($ac_try" in
33400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33401 *) ac_try_echo=$ac_try;;
33403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33404 (eval "$ac_try") 2>&5
33406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33407 (exit $ac_status); }; }; then
33408 ac_cv_func_acl_get_file=yes
33410 echo "$as_me: failed program was:" >&5
33411 sed 's/^/| /' conftest.$ac_ext >&5
33413 ac_cv_func_acl_get_file=no
33416 rm -f core conftest.err conftest.$ac_objext \
33417 conftest$ac_exeext conftest.$ac_ext
33419 { echo "$as_me:$LINENO: result: $ac_cv_func_acl_get_file" >&5
33420 echo "${ECHO_T}$ac_cv_func_acl_get_file" >&6; }
33421 if test $ac_cv_func_acl_get_file = yes; then
33424 { echo "$as_me:$LINENO: checking for acl_get_file in -lacl" >&5
33425 echo $ECHO_N "checking for acl_get_file in -lacl... $ECHO_C" >&6; }
33426 if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then
33427 echo $ECHO_N "(cached) $ECHO_C" >&6
33429 ac_check_lib_save_LIBS=$LIBS
33431 cat >conftest.$ac_ext <<_ACEOF
33434 cat confdefs.h >>conftest.$ac_ext
33435 cat >>conftest.$ac_ext <<_ACEOF
33436 /* end confdefs.h. */
33438 /* Override any GCC internal prototype to avoid an error.
33439 Use char because int might match the return type of a GCC
33440 builtin and then its argument prototype would still apply. */
33444 char acl_get_file ();
33448 return acl_get_file ();
33453 rm -f conftest.$ac_objext conftest$ac_exeext
33454 if { (ac_try="$ac_link"
33455 case "(($ac_try" in
33456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33457 *) ac_try_echo=$ac_try;;
33459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33460 (eval "$ac_link") 2>conftest.er1
33462 grep -v '^ *+' conftest.er1 >conftest.err
33464 cat conftest.err >&5
33465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33466 (exit $ac_status); } &&
33467 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33468 { (case "(($ac_try" in
33469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33470 *) ac_try_echo=$ac_try;;
33472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33473 (eval "$ac_try") 2>&5
33475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33476 (exit $ac_status); }; } &&
33477 { ac_try='test -s conftest$ac_exeext'
33478 { (case "(($ac_try" in
33479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33480 *) ac_try_echo=$ac_try;;
33482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33483 (eval "$ac_try") 2>&5
33485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33486 (exit $ac_status); }; }; then
33487 ac_cv_lib_acl_acl_get_file=yes
33489 echo "$as_me: failed program was:" >&5
33490 sed 's/^/| /' conftest.$ac_ext >&5
33492 ac_cv_lib_acl_acl_get_file=no
33495 rm -f core conftest.err conftest.$ac_objext \
33496 conftest$ac_exeext conftest.$ac_ext
33497 LIBS=$ac_check_lib_save_LIBS
33499 { echo "$as_me:$LINENO: result: $ac_cv_lib_acl_acl_get_file" >&5
33500 echo "${ECHO_T}$ac_cv_lib_acl_acl_get_file" >&6; }
33501 if test $ac_cv_lib_acl_acl_get_file = yes; then
33502 have_acl=yes; FDLIBS="-lacl $FDLIBS"
33504 { echo "$as_me:$LINENO: checking for acltotext in -lsec" >&5
33505 echo $ECHO_N "checking for acltotext in -lsec... $ECHO_C" >&6; }
33506 if test "${ac_cv_lib_sec_acltotext+set}" = set; then
33507 echo $ECHO_N "(cached) $ECHO_C" >&6
33509 ac_check_lib_save_LIBS=$LIBS
33511 cat >conftest.$ac_ext <<_ACEOF
33514 cat confdefs.h >>conftest.$ac_ext
33515 cat >>conftest.$ac_ext <<_ACEOF
33516 /* end confdefs.h. */
33518 /* Override any GCC internal prototype to avoid an error.
33519 Use char because int might match the return type of a GCC
33520 builtin and then its argument prototype would still apply. */
33528 return acltotext ();
33533 rm -f conftest.$ac_objext conftest$ac_exeext
33534 if { (ac_try="$ac_link"
33535 case "(($ac_try" in
33536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33537 *) ac_try_echo=$ac_try;;
33539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33540 (eval "$ac_link") 2>conftest.er1
33542 grep -v '^ *+' conftest.er1 >conftest.err
33544 cat conftest.err >&5
33545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33546 (exit $ac_status); } &&
33547 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33548 { (case "(($ac_try" in
33549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33550 *) ac_try_echo=$ac_try;;
33552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33553 (eval "$ac_try") 2>&5
33555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33556 (exit $ac_status); }; } &&
33557 { ac_try='test -s conftest$ac_exeext'
33558 { (case "(($ac_try" in
33559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33560 *) ac_try_echo=$ac_try;;
33562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33563 (eval "$ac_try") 2>&5
33565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33566 (exit $ac_status); }; }; then
33567 ac_cv_lib_sec_acltotext=yes
33569 echo "$as_me: failed program was:" >&5
33570 sed 's/^/| /' conftest.$ac_ext >&5
33572 ac_cv_lib_sec_acltotext=no
33575 rm -f core conftest.err conftest.$ac_objext \
33576 conftest$ac_exeext conftest.$ac_ext
33577 LIBS=$ac_check_lib_save_LIBS
33579 { echo "$as_me:$LINENO: result: $ac_cv_lib_sec_acltotext" >&5
33580 echo "${ECHO_T}$ac_cv_lib_sec_acltotext" >&6; }
33581 if test $ac_cv_lib_sec_acltotext = yes; then
33582 have_acl=yes; FDLIBS="-lsec $FDLIBS"
33591 if test $have_acl = yes; then
33592 cat >>confdefs.h <<\_ACEOF
33599 { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
33600 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
33601 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
33602 echo $ECHO_N "(cached) $ECHO_C" >&6
33604 ac_check_lib_save_LIBS=$LIBS
33605 LIBS="-lpthread $LIBS"
33606 cat >conftest.$ac_ext <<_ACEOF
33609 cat confdefs.h >>conftest.$ac_ext
33610 cat >>conftest.$ac_ext <<_ACEOF
33611 /* end confdefs.h. */
33613 /* Override any GCC internal prototype to avoid an error.
33614 Use char because int might match the return type of a GCC
33615 builtin and then its argument prototype would still apply. */
33619 char pthread_create ();
33623 return pthread_create ();
33628 rm -f conftest.$ac_objext conftest$ac_exeext
33629 if { (ac_try="$ac_link"
33630 case "(($ac_try" in
33631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33632 *) ac_try_echo=$ac_try;;
33634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33635 (eval "$ac_link") 2>conftest.er1
33637 grep -v '^ *+' conftest.er1 >conftest.err
33639 cat conftest.err >&5
33640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33641 (exit $ac_status); } &&
33642 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33643 { (case "(($ac_try" in
33644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33645 *) ac_try_echo=$ac_try;;
33647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33648 (eval "$ac_try") 2>&5
33650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33651 (exit $ac_status); }; } &&
33652 { ac_try='test -s conftest$ac_exeext'
33653 { (case "(($ac_try" in
33654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33655 *) ac_try_echo=$ac_try;;
33657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33658 (eval "$ac_try") 2>&5
33660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33661 (exit $ac_status); }; }; then
33662 ac_cv_lib_pthread_pthread_create=yes
33664 echo "$as_me: failed program was:" >&5
33665 sed 's/^/| /' conftest.$ac_ext >&5
33667 ac_cv_lib_pthread_pthread_create=no
33670 rm -f core conftest.err conftest.$ac_objext \
33671 conftest$ac_exeext conftest.$ac_ext
33672 LIBS=$ac_check_lib_save_LIBS
33674 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
33675 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; }
33676 if test $ac_cv_lib_pthread_pthread_create = yes; then
33677 PTHREAD_LIB="-lpthread"
33679 { echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
33680 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6; }
33681 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
33682 echo $ECHO_N "(cached) $ECHO_C" >&6
33684 ac_check_lib_save_LIBS=$LIBS
33685 LIBS="-lpthreads $LIBS"
33686 cat >conftest.$ac_ext <<_ACEOF
33689 cat confdefs.h >>conftest.$ac_ext
33690 cat >>conftest.$ac_ext <<_ACEOF
33691 /* end confdefs.h. */
33693 /* Override any GCC internal prototype to avoid an error.
33694 Use char because int might match the return type of a GCC
33695 builtin and then its argument prototype would still apply. */
33699 char pthread_create ();
33703 return pthread_create ();
33708 rm -f conftest.$ac_objext conftest$ac_exeext
33709 if { (ac_try="$ac_link"
33710 case "(($ac_try" in
33711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33712 *) ac_try_echo=$ac_try;;
33714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33715 (eval "$ac_link") 2>conftest.er1
33717 grep -v '^ *+' conftest.er1 >conftest.err
33719 cat conftest.err >&5
33720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33721 (exit $ac_status); } &&
33722 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33723 { (case "(($ac_try" in
33724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33725 *) ac_try_echo=$ac_try;;
33727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33728 (eval "$ac_try") 2>&5
33730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33731 (exit $ac_status); }; } &&
33732 { ac_try='test -s conftest$ac_exeext'
33733 { (case "(($ac_try" in
33734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33735 *) ac_try_echo=$ac_try;;
33737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33738 (eval "$ac_try") 2>&5
33740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33741 (exit $ac_status); }; }; then
33742 ac_cv_lib_pthreads_pthread_create=yes
33744 echo "$as_me: failed program was:" >&5
33745 sed 's/^/| /' conftest.$ac_ext >&5
33747 ac_cv_lib_pthreads_pthread_create=no
33750 rm -f core conftest.err conftest.$ac_objext \
33751 conftest$ac_exeext conftest.$ac_ext
33752 LIBS=$ac_check_lib_save_LIBS
33754 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
33755 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6; }
33756 if test $ac_cv_lib_pthreads_pthread_create = yes; then
33757 PTHREAD_LIB="-lpthreads"
33759 { echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
33760 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6; }
33761 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
33762 echo $ECHO_N "(cached) $ECHO_C" >&6
33764 ac_check_lib_save_LIBS=$LIBS
33766 cat >conftest.$ac_ext <<_ACEOF
33769 cat confdefs.h >>conftest.$ac_ext
33770 cat >>conftest.$ac_ext <<_ACEOF
33771 /* end confdefs.h. */
33773 /* Override any GCC internal prototype to avoid an error.
33774 Use char because int might match the return type of a GCC
33775 builtin and then its argument prototype would still apply. */
33779 char pthread_create ();
33783 return pthread_create ();
33788 rm -f conftest.$ac_objext conftest$ac_exeext
33789 if { (ac_try="$ac_link"
33790 case "(($ac_try" in
33791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33792 *) ac_try_echo=$ac_try;;
33794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33795 (eval "$ac_link") 2>conftest.er1
33797 grep -v '^ *+' conftest.er1 >conftest.err
33799 cat conftest.err >&5
33800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33801 (exit $ac_status); } &&
33802 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33803 { (case "(($ac_try" in
33804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33805 *) ac_try_echo=$ac_try;;
33807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33808 (eval "$ac_try") 2>&5
33810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33811 (exit $ac_status); }; } &&
33812 { ac_try='test -s conftest$ac_exeext'
33813 { (case "(($ac_try" in
33814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33815 *) ac_try_echo=$ac_try;;
33817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33818 (eval "$ac_try") 2>&5
33820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33821 (exit $ac_status); }; }; then
33822 ac_cv_lib_c_r_pthread_create=yes
33824 echo "$as_me: failed program was:" >&5
33825 sed 's/^/| /' conftest.$ac_ext >&5
33827 ac_cv_lib_c_r_pthread_create=no
33830 rm -f core conftest.err conftest.$ac_objext \
33831 conftest$ac_exeext conftest.$ac_ext
33832 LIBS=$ac_check_lib_save_LIBS
33834 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
33835 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6; }
33836 if test $ac_cv_lib_c_r_pthread_create = yes; then
33837 PTHREAD_LIB="-lc_r"
33839 { echo "$as_me:$LINENO: checking for pthread_create" >&5
33840 echo $ECHO_N "checking for pthread_create... $ECHO_C" >&6; }
33841 if test "${ac_cv_func_pthread_create+set}" = set; then
33842 echo $ECHO_N "(cached) $ECHO_C" >&6
33844 cat >conftest.$ac_ext <<_ACEOF
33847 cat confdefs.h >>conftest.$ac_ext
33848 cat >>conftest.$ac_ext <<_ACEOF
33849 /* end confdefs.h. */
33850 /* Define pthread_create to an innocuous variant, in case <limits.h> declares pthread_create.
33851 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33852 #define pthread_create innocuous_pthread_create
33854 /* System header to define __stub macros and hopefully few prototypes,
33855 which can conflict with char pthread_create (); below.
33856 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33857 <limits.h> exists even on freestanding compilers. */
33860 # include <limits.h>
33862 # include <assert.h>
33865 #undef pthread_create
33867 /* Override any GCC internal prototype to avoid an error.
33868 Use char because int might match the return type of a GCC
33869 builtin and then its argument prototype would still apply. */
33873 char pthread_create ();
33874 /* The GNU C library defines this for functions which it implements
33875 to always fail with ENOSYS. Some functions are actually named
33876 something starting with __ and the normal name is an alias. */
33877 #if defined __stub_pthread_create || defined __stub___pthread_create
33884 return pthread_create ();
33889 rm -f conftest.$ac_objext conftest$ac_exeext
33890 if { (ac_try="$ac_link"
33891 case "(($ac_try" in
33892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33893 *) ac_try_echo=$ac_try;;
33895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33896 (eval "$ac_link") 2>conftest.er1
33898 grep -v '^ *+' conftest.er1 >conftest.err
33900 cat conftest.err >&5
33901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33902 (exit $ac_status); } &&
33903 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33904 { (case "(($ac_try" in
33905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33906 *) ac_try_echo=$ac_try;;
33908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33909 (eval "$ac_try") 2>&5
33911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33912 (exit $ac_status); }; } &&
33913 { ac_try='test -s conftest$ac_exeext'
33914 { (case "(($ac_try" in
33915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33916 *) ac_try_echo=$ac_try;;
33918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33919 (eval "$ac_try") 2>&5
33921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33922 (exit $ac_status); }; }; then
33923 ac_cv_func_pthread_create=yes
33925 echo "$as_me: failed program was:" >&5
33926 sed 's/^/| /' conftest.$ac_ext >&5
33928 ac_cv_func_pthread_create=no
33931 rm -f core conftest.err conftest.$ac_objext \
33932 conftest$ac_exeext conftest.$ac_ext
33934 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_create" >&5
33935 echo "${ECHO_T}$ac_cv_func_pthread_create" >&6; }
33948 cat >>confdefs.h <<\_ACEOF
33954 CFLAGS=${CFLAGS--O}
33956 if test x$have_gcc = xyes ; then
33957 CPPFLAGS="$CPPFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
33958 CFLAGS="$CFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
33960 LDFLAGS=${LDFLAGS--O}
33961 DB_LIBS="${SQL_LFLAGS}"
33962 CPPFLAGS="$CPPFLAGS"
33990 # Finally we set appropriate distribution specific
33991 # variables and defaults
33993 # PFILES are platform specific files
33994 PFILES="platforms/Makefile"
33998 hostname=`uname -n | cut -d '.' -f 1`
33999 if test x${hostname} = x ; then
34000 hostname="localhost"
34002 case "$DISTNAME" in
34005 PSCMD="ps -e -o pid,comm"
34006 PFILES="${PFILES} \
34007 platforms/aix/Makefile"
34008 TAPEDRIVE="/dev/rmt0.1"
34012 PTHREAD_LIB="-lpthread -lexc"
34013 if test "${CC}" = "gcc" ; then
34020 TAPEDRIVE="/dev/nrmt0"
34023 DISTVER=`uname -a |awk '{print $3}'`
34024 TAPEDRIVE="/dev/nrmt0"
34025 PTHREAD_LIB="-pthread"
34026 CFLAGS="${CFLAGS} -pthread"
34027 PSCMD="ps -ax -o pid,command"
34030 PFILES="${PFILES} \
34031 platforms/bsdi/Makefile \
34032 platforms/bsdi/bacula-fd \
34033 platforms/bsdi/bacula-sd \
34034 platforms/bsdi/bacula-dir"
34035 largefile_support="yes"
34038 DISTVER=`uname -a |awk '{print $3}'`
34039 TAPEDRIVE="/dev/nrst0"
34041 WCFLAGS="-mwindows"
34042 WLDFLAGS="-mwindows"
34046 TAPEDRIVE="/dev/nst0"
34047 PSCMD="ps -e -o pid,command"
34049 PFILES="${PFILES} \
34050 platforms/darwin/Makefile"
34053 DISTVER=`cat /etc/debian_version`
34054 TAPEDRIVE="/dev/nrst0"
34055 PSCMD="ps -e -o pid,command"
34058 DISTVER=`uname -a |awk '{print $3}'`
34059 VER=`echo $DISTVER | cut -c 1`
34060 if test x$VER = x4 ; then
34061 PTHREAD_LIB="${PTHREAD_LIBS:--pthread}"
34062 CFLAGS="${CFLAGS} ${PTHREAD_CFLAGS:--pthread}"
34066 TAPEDRIVE="/dev/nrsa0"
34067 PSCMD="ps -ax -o pid,command"
34068 PFILES="${PFILES} \
34069 platforms/freebsd/Makefile \
34070 platforms/freebsd/bacula-fd \
34071 platforms/freebsd/bacula-sd \
34072 platforms/freebsd/bacula-dir"
34073 largefile_support="yes"
34076 PSCMD="UNIX95=1; ps -e -o pid,comm"
34077 CFLAGS="${CFLAGS} -D_XOPEN_SOURCE_EXTENDED=1"
34079 TAPEDRIVE="/dev/rmt/0hnb"
34080 PTHREAD_LIB="-lpthread"
34081 cat >>confdefs.h <<\_ACEOF
34082 #define _INCLUDE_LONGLONG 1
34088 TAPEDRIVE="/dev/rmt/0cbn"
34089 PSCMD="ps -e -o pid,comm"
34090 PFILES="${PFILES} \
34091 platforms/irix/Makefile \
34092 platforms/irix/bacula-fd \
34093 platforms/irix/bacula-sd \
34094 platforms/irix/bacula-dir"
34097 DISTVER=`uname -a |awk '{print $3}'`
34100 TAPEDRIVE="/dev/nrst0"
34101 PSCMD="ps -ax -o pid,command"
34102 PTHREAD_LIB="-pthread"
34103 CFLAGS="${CFLAGS} -pthread"
34106 DISTVER=`uname -a |awk '{print $3}'`
34109 TAPEDRIVE="/dev/nrst0"
34110 PSCMD="ps -ax -o pid,command"
34111 PTHREAD_LIB="-pthread"
34112 CFLAGS="${CFLAGS} -pthread"
34113 PFILES="${PFILES} \
34114 platforms/openbsd/Makefile \
34115 platforms/openbsd/bacula-fd \
34116 platforms/openbsd/bacula-sd \
34117 platforms/openbsd/bacula-dir"
34120 if test -f /etc/whitebox-release ; then
34121 f=/etc/whitebox-release
34123 f=/etc/redhat-release
34125 if test `cat $f | grep release |\
34126 cut -f 3 -d ' '`x = "Enterprise"x ; then
34127 DISTVER="Enterprise "`cat $f | grep release |\
34130 DISTVER=`cat /etc/redhat-release | grep release |\
34133 TAPEDRIVE="/dev/nst0"
34134 PSCMD="ps -e -o pid,command"
34135 PFILES="${PFILES} \
34136 platforms/redhat/Makefile \
34137 platforms/redhat/bacula-fd \
34138 platforms/redhat/bacula-sd \
34139 platforms/redhat/bacula-dir \
34140 platforms/redhat/bacula.spec \
34144 DISTVER=`cat /etc/mandrake-release | grep release |\
34146 TAPEDRIVE="/dev/nst0"
34147 PSCMD="ps -e -o pid,command"
34148 PFILES="${PFILES} \
34149 platforms/mandrake/Makefile \
34150 platforms/mandrake/bacula-fd \
34151 platforms/mandrake/bacula-sd \
34152 platforms/mandrake/bacula-dir \
34153 platforms/mandrake/bacula.spec \
34157 DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
34158 TAPEDRIVE="/dev/nst0"
34159 PSCMD="ps -e -o pid,command"
34160 PFILES="${PFILES} \
34161 platforms/gentoo/Makefile \
34162 platforms/gentoo/bacula-init \
34163 platforms/gentoo/bacula-fd \
34164 platforms/gentoo/bacula-sd \
34165 platforms/gentoo/bacula-dir"
34168 DISTVER=`cat /etc/slackware-version`
34169 TAPEDRIVE="/dev/nst0"
34170 PSCMD="ps -e -o pid,command"
34171 PFILES="${PFILES} \
34172 platforms/slackware/Makefile \
34173 platforms/slackware/rc.bacula-fd \
34174 platforms/slackware/rc.bacula-sd \
34175 platforms/slackware/rc.bacula-dir\
34176 platforms/slackware/functions.bacula"
34180 TAPEDRIVE="/dev/rmt/0cbn"
34181 PSCMD="ps -e -o pid,comm"
34182 PFILES="${PFILES} \
34183 platforms/solaris/Makefile \
34184 platforms/solaris/bacula-fd \
34185 platforms/solaris/bacula-sd \
34186 platforms/solaris/bacula-dir"
34187 if test x$DISTVER = x5.6 ; then
34188 cat >>confdefs.h <<\_ACEOF
34189 #define HAVE_OLD_SOCKOPT 1
34193 LIBS="$LIBS -lresolv"
34196 DISTVER=`cat /etc/SuSE-release |grep VERSION|\
34198 TAPEDRIVE="/dev/nst0"
34199 PSCMD="ps -e -o pid,command"
34200 PFILES="${PFILES} \
34201 platforms/suse/Makefile \
34202 platforms/suse/bacula-fd \
34203 platforms/suse/bacula-sd \
34204 platforms/suse/bacula-dir \
34205 platforms/suse/bacula \
34206 platforms/suse/bacula.spec"
34211 TAPEDRIVE="/dev/nst0"
34212 PSCMD="ps -e -o pid,command"
34213 PFILES="${PFILES} \
34214 platforms/suse/Makefile \
34215 platforms/suse/bacula-fd \
34216 platforms/suse/bacula-sd \
34217 platforms/suse/bacula-dir"
34221 TAPEDRIVE="/dev/nst0"
34224 echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
34230 LIBS="$PTHREAD_LIB $LIBS"
34232 cat >>confdefs.h <<_ACEOF
34236 cat >>confdefs.h <<_ACEOF
34247 MCOMMON=./autoconf/Make.common
34250 if test "x${subsysdir}" = "x${sbindir}" ; then
34253 echo "You have set both --sbindir and --with-subsys-dir"
34254 echo " equal to: ${subsysdir} "
34255 echo "This is not permitted. Please reconfigure."
34257 echo "Aborting configuration ..."
34263 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"
34265 ac_config_commands="$ac_config_commands default"
34267 cat >confcache <<\_ACEOF
34268 # This file is a shell script that caches the results of configure
34269 # tests run on this system so they can be shared between configure
34270 # scripts and configure runs, see configure's option --config-cache.
34271 # It is not useful on other systems. If it contains results you don't
34272 # want to keep, you may remove or edit it.
34274 # config.status only pays attention to the cache file if you give it
34275 # the --recheck option to rerun configure.
34277 # `ac_cv_env_foo' variables (set or unset) will be overridden when
34278 # loading this file, other *unset* `ac_cv_foo' will be assigned the
34279 # following values.
34283 # The following way of writing the cache mishandles newlines in values,
34284 # but we know of no workaround that is simple, portable, and efficient.
34285 # So, we kill variables containing newlines.
34286 # Ultrix sh set writes to stderr and can't be redirected directly,
34287 # and sets the high bit in the cache file unless we assign to the vars.
34289 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
34290 eval ac_val=\$$ac_var
34294 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
34295 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
34298 _ | IFS | as_nl) ;; #(
34299 *) $as_unset $ac_var ;;
34305 case $as_nl`(ac_space=' '; set) 2>&1` in #(
34306 *${as_nl}ac_space=\ *)
34307 # `set' does not quote correctly, so add quotes (double-quote
34308 # substitution turns \\\\ into \\, and sed turns \\ into \).
34311 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
34314 # `set' quotes correctly as required by POSIX, so do not add quotes.
34315 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
34324 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
34326 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
34328 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
34329 if test -w "$cache_file"; then
34330 test "x$cache_file" != "x/dev/null" &&
34331 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
34332 echo "$as_me: updating cache $cache_file" >&6;}
34333 cat confcache >$cache_file
34335 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
34336 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
34341 test "x$prefix" = xNONE && prefix=$ac_default_prefix
34342 # Let make expand exec_prefix.
34343 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
34345 DEFS=-DHAVE_CONFIG_H
34349 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
34350 # 1. Remove the extension, and $U if already installed.
34351 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
34352 ac_i=`echo "$ac_i" | sed "$ac_script"`
34353 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
34354 # will be set to the directory where LIBOBJS objects are built.
34355 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
34356 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
34358 LIBOBJS=$ac_libobjs
34360 LTLIBOBJS=$ac_ltlibobjs
34364 : ${CONFIG_STATUS=./config.status}
34365 ac_clean_files_save=$ac_clean_files
34366 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
34367 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
34368 echo "$as_me: creating $CONFIG_STATUS" >&6;}
34369 cat >$CONFIG_STATUS <<_ACEOF
34371 # Generated by $as_me.
34372 # Run this file to recreate the current configuration.
34373 # Compiler output produced by configure, useful for debugging
34374 # configure, is in config.log if it exists.
34377 ac_cs_recheck=false
34379 SHELL=\${CONFIG_SHELL-$SHELL}
34382 cat >>$CONFIG_STATUS <<\_ACEOF
34383 ## --------------------- ##
34384 ## M4sh Initialization. ##
34385 ## --------------------- ##
34387 # Be Bourne compatible
34388 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
34391 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
34392 # is contrary to our usage. Disable this feature.
34393 alias -g '${1+"$@"}'='"$@"'
34394 setopt NO_GLOB_SUBST
34396 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
34398 BIN_SH=xpg4; export BIN_SH # for Tru64
34399 DUALCASE=1; export DUALCASE # for MKS sh
34403 # Avoid depending upon Character Ranges.
34404 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
34405 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
34406 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
34407 as_cr_digits='0123456789'
34408 as_cr_alnum=$as_cr_Letters$as_cr_digits
34410 # The user is always right.
34411 if test "${PATH_SEPARATOR+set}" != set; then
34412 echo "#! /bin/sh" >conf$$.sh
34413 echo "exit 0" >>conf$$.sh
34415 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
34423 # Support unset when possible.
34424 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
34432 # We need space, tab and new line, in precisely that order. Quoting is
34433 # there to prevent editors from complaining about space-tab.
34434 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
34435 # splitting by setting IFS to empty value.)
34440 # Find who we are. Look in the path if we contain no directory separator.
34442 *[\\/]* ) as_myself=$0 ;;
34443 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34444 for as_dir in $PATH
34447 test -z "$as_dir" && as_dir=.
34448 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
34454 # We did not find ourselves, most probably we were run as `sh COMMAND'
34455 # in which case we are not to be found in the path.
34456 if test "x$as_myself" = x; then
34459 if test ! -f "$as_myself"; then
34460 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
34461 { (exit 1); exit 1; }
34464 # Work around bugs in pre-3.0 UWIN ksh.
34465 for as_var in ENV MAIL MAILPATH
34466 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
34474 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
34475 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
34476 LC_TELEPHONE LC_TIME
34478 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
34479 eval $as_var=C; export $as_var
34481 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
34485 # Required to use basename.
34486 if expr a : '\(a\)' >/dev/null 2>&1 &&
34487 test "X`expr 00001 : '.*\(...\)'`" = X001; then
34493 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
34494 as_basename=basename
34500 # Name of the executable.
34501 as_me=`$as_basename -- "$0" ||
34502 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
34503 X"$0" : 'X\(//\)$' \| \
34504 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
34506 sed '/^.*\/\([^/][^/]*\)\/*$/{
34525 as_lineno_1=$LINENO
34526 as_lineno_2=$LINENO
34527 test "x$as_lineno_1" != "x$as_lineno_2" &&
34528 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
34530 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
34531 # uniformly replaced by the line number. The first 'sed' inserts a
34532 # line-number line after each line using $LINENO; the second 'sed'
34533 # does the real work. The second script uses 'N' to pair each
34534 # line-number line with the line containing $LINENO, and appends
34535 # trailing '-' during substitution so that $LINENO is not a special
34536 # case at line end.
34537 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
34538 # scripts with optimization help from Paolo Bonzini. Blame Lee
34539 # E. McMahon (1931-1989) for sed's syntax. :-)
34551 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
34554 ' >$as_me.lineno &&
34555 chmod +x "$as_me.lineno" ||
34556 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
34557 { (exit 1); exit 1; }; }
34559 # Don't try to exec as it changes $[0], causing all sort of problems
34560 # (the dirname of $[0] is not the place where we might find the
34561 # original and so on. Autoconf is especially sensitive to this).
34562 . "./$as_me.lineno"
34563 # Exit status is that of the last command.
34568 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
34574 ECHO_C= ECHO_N= ECHO_T=
34575 case `echo -n x` in
34577 case `echo 'x\c'` in
34578 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
34585 if expr a : '\(a\)' >/dev/null 2>&1 &&
34586 test "X`expr 00001 : '.*\(...\)'`" = X001; then
34592 rm -f conf$$ conf$$.exe conf$$.file
34593 if test -d conf$$.dir; then
34594 rm -f conf$$.dir/conf$$.file
34600 if ln -s conf$$.file conf$$ 2>/dev/null; then
34602 # ... but there are two gotchas:
34603 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
34604 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
34605 # In both cases, we have to default to `cp -p'.
34606 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
34608 elif ln conf$$.file conf$$ 2>/dev/null; then
34613 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
34614 rmdir conf$$.dir 2>/dev/null
34616 if mkdir -p . 2>/dev/null; then
34619 test -d ./-p && rmdir ./-p
34623 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
34624 # systems may use methods other than mode bits to determine executability.
34625 cat >conf$$.file <<_ASEOF
34629 chmod +x conf$$.file
34630 if test -x conf$$.file >/dev/null 2>&1; then
34631 as_executable_p="test -x"
34637 # Sed expression to map a string onto a valid CPP name.
34638 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
34640 # Sed expression to map a string onto a valid variable name.
34641 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
34646 # Save the log message, to keep $[0] and so on meaningful, and to
34647 # report actual input values of CONFIG_FILES etc. instead of their
34648 # values after options handling.
34650 This file was extended by $as_me, which was
34651 generated by GNU Autoconf 2.60. Invocation command line was
34653 CONFIG_FILES = $CONFIG_FILES
34654 CONFIG_HEADERS = $CONFIG_HEADERS
34655 CONFIG_LINKS = $CONFIG_LINKS
34656 CONFIG_COMMANDS = $CONFIG_COMMANDS
34659 on `(hostname || uname -n) 2>/dev/null | sed 1q`
34664 cat >>$CONFIG_STATUS <<_ACEOF
34665 # Files that config.status was made for.
34666 config_files="$ac_config_files"
34667 config_headers="$ac_config_headers"
34668 config_commands="$ac_config_commands"
34672 cat >>$CONFIG_STATUS <<\_ACEOF
34674 \`$as_me' instantiates files from templates according to the
34675 current configuration.
34677 Usage: $0 [OPTIONS] [FILE]...
34679 -h, --help print this help, then exit
34680 -V, --version print version number, then exit
34681 -q, --quiet do not print progress messages
34682 -d, --debug don't remove temporary files
34683 --recheck update $as_me by reconfiguring in the same conditions
34684 --file=FILE[:TEMPLATE]
34685 instantiate the configuration file FILE
34686 --header=FILE[:TEMPLATE]
34687 instantiate the configuration header FILE
34689 Configuration files:
34692 Configuration headers:
34695 Configuration commands:
34698 Report bugs to <bug-autoconf@gnu.org>."
34701 cat >>$CONFIG_STATUS <<_ACEOF
34704 configured by $0, generated by GNU Autoconf 2.60,
34705 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
34707 Copyright (C) 2006 Free Software Foundation, Inc.
34708 This config.status script is free software; the Free Software Foundation
34709 gives unlimited permission to copy, distribute and modify it."
34716 cat >>$CONFIG_STATUS <<\_ACEOF
34717 # If no file are specified by the user, then we need to provide default
34718 # value. By we need to know if files were specified by the user.
34724 ac_option=`expr "X$1" : 'X\([^=]*\)='`
34725 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
34736 # Handling of the options.
34737 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
34739 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
34740 echo "$ac_cs_version"; exit ;;
34741 --debug | --debu | --deb | --de | --d | -d )
34743 --file | --fil | --fi | --f )
34745 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
34746 ac_need_defaults=false;;
34747 --header | --heade | --head | --hea )
34749 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
34750 ac_need_defaults=false;;
34752 # Conflict between --help and --header
34753 { echo "$as_me: error: ambiguous option: $1
34754 Try \`$0 --help' for more information." >&2
34755 { (exit 1); exit 1; }; };;
34756 --help | --hel | -h )
34757 echo "$ac_cs_usage"; exit ;;
34758 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
34759 | -silent | --silent | --silen | --sile | --sil | --si | --s)
34762 # This is an error.
34763 -*) { echo "$as_me: error: unrecognized option: $1
34764 Try \`$0 --help' for more information." >&2
34765 { (exit 1); exit 1; }; } ;;
34767 *) ac_config_targets="$ac_config_targets $1"
34768 ac_need_defaults=false ;;
34774 ac_configure_extra_args=
34776 if $ac_cs_silent; then
34778 ac_configure_extra_args="$ac_configure_extra_args --silent"
34782 cat >>$CONFIG_STATUS <<_ACEOF
34783 if \$ac_cs_recheck; then
34784 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
34785 CONFIG_SHELL=$SHELL
34786 export CONFIG_SHELL
34787 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
34791 cat >>$CONFIG_STATUS <<\_ACEOF
34795 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
34796 ## Running $as_me. ##
34802 cat >>$CONFIG_STATUS <<_ACEOF
34806 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
34807 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
34809 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
34810 # Capture the value of LINGUAS because we need it to compute CATALOGS.
34811 LINGUAS="${LINGUAS-%UNSET%}"
34816 cat >>$CONFIG_STATUS <<\_ACEOF
34818 # Handling of arguments.
34819 for ac_config_target in $ac_config_targets
34821 case $ac_config_target in
34822 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:autoconf/config.h.in" ;;
34823 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
34824 "autoconf/Make.common") CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
34825 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
34826 "manpages/Makefile") CONFIG_FILES="$CONFIG_FILES manpages/Makefile" ;;
34827 "scripts/startmysql") CONFIG_FILES="$CONFIG_FILES scripts/startmysql" ;;
34828 "scripts/stopmysql") CONFIG_FILES="$CONFIG_FILES scripts/stopmysql" ;;
34829 "scripts/btraceback") CONFIG_FILES="$CONFIG_FILES scripts/btraceback" ;;
34830 "scripts/startit") CONFIG_FILES="$CONFIG_FILES scripts/startit" ;;
34831 "scripts/stopit") CONFIG_FILES="$CONFIG_FILES scripts/stopit" ;;
34832 "scripts/bconsole") CONFIG_FILES="$CONFIG_FILES scripts/bconsole" ;;
34833 "scripts/gconsole") CONFIG_FILES="$CONFIG_FILES scripts/gconsole" ;;
34834 "scripts/bacula") CONFIG_FILES="$CONFIG_FILES scripts/bacula" ;;
34835 "scripts/bacula-ctl-dir") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-dir" ;;
34836 "scripts/bacula-ctl-fd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-fd" ;;
34837 "scripts/bacula-ctl-sd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-sd" ;;
34838 "scripts/devel_bacula") CONFIG_FILES="$CONFIG_FILES scripts/devel_bacula" ;;
34839 "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
34840 "scripts/logrotate") CONFIG_FILES="$CONFIG_FILES scripts/logrotate" ;;
34841 "scripts/bacula.desktop.gnome1") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1" ;;
34842 "scripts/bacula.desktop.gnome2") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2" ;;
34843 "scripts/bacula.desktop.gnome1.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.consolehelper" ;;
34844 "scripts/bacula.desktop.gnome2.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.consolehelper" ;;
34845 "scripts/bacula.desktop.gnome1.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.xsu" ;;
34846 "scripts/bacula.desktop.gnome2.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.xsu" ;;
34847 "scripts/bgnome-console.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/bgnome-console.console_apps" ;;
34848 "scripts/mtx-changer") CONFIG_FILES="$CONFIG_FILES scripts/mtx-changer" ;;
34849 "scripts/disk-changer") CONFIG_FILES="$CONFIG_FILES scripts/disk-changer" ;;
34850 "scripts/dvd-handler") CONFIG_FILES="$CONFIG_FILES scripts/dvd-handler" ;;
34851 "scripts/dvd-simulator") CONFIG_FILES="$CONFIG_FILES scripts/dvd-simulator" ;;
34852 "scripts/bacula-tray-monitor.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bacula-tray-monitor.desktop" ;;
34853 "scripts/logwatch/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/Makefile" ;;
34854 "scripts/logwatch/logfile.bacula.conf") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/logfile.bacula.conf" ;;
34855 "scripts/wxconsole.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.console_apps" ;;
34856 "scripts/wxconsole.desktop.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.consolehelper" ;;
34857 "scripts/wxconsole.desktop.xsu") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.xsu" ;;
34858 "scripts/bat.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop" ;;
34859 "scripts/bat.desktop.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.xsu" ;;
34860 "scripts/bat.desktop.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.consolehelper" ;;
34861 "scripts/bat.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/bat.console_apps" ;;
34862 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
34863 "src/host.h") CONFIG_FILES="$CONFIG_FILES src/host.h" ;;
34864 "src/console/Makefile") CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;;
34865 "src/console/bconsole.conf") CONFIG_FILES="$CONFIG_FILES src/console/bconsole.conf" ;;
34866 "src/gnome2-console/Makefile") CONFIG_FILES="$CONFIG_FILES src/gnome2-console/Makefile" ;;
34867 "src/gnome2-console/bgnome-console.conf") CONFIG_FILES="$CONFIG_FILES src/gnome2-console/bgnome-console.conf" ;;
34868 "src/qt-console/bat.conf") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.conf" ;;
34869 "src/qt-console/bat.pro") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro" ;;
34870 "src/qt-console/install_conf_file") CONFIG_FILES="$CONFIG_FILES src/qt-console/install_conf_file" ;;
34871 "src/wx-console/Makefile") CONFIG_FILES="$CONFIG_FILES src/wx-console/Makefile" ;;
34872 "src/wx-console/bwx-console.conf") CONFIG_FILES="$CONFIG_FILES src/wx-console/bwx-console.conf" ;;
34873 "src/tray-monitor/Makefile") CONFIG_FILES="$CONFIG_FILES src/tray-monitor/Makefile" ;;
34874 "src/tray-monitor/tray-monitor.conf") CONFIG_FILES="$CONFIG_FILES src/tray-monitor/tray-monitor.conf" ;;
34875 "src/dird/Makefile") CONFIG_FILES="$CONFIG_FILES src/dird/Makefile" ;;
34876 "src/dird/bacula-dir.conf") CONFIG_FILES="$CONFIG_FILES src/dird/bacula-dir.conf" ;;
34877 "src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
34878 "src/stored/Makefile") CONFIG_FILES="$CONFIG_FILES src/stored/Makefile" ;;
34879 "src/stored/bacula-sd.conf") CONFIG_FILES="$CONFIG_FILES src/stored/bacula-sd.conf" ;;
34880 "src/filed/Makefile") CONFIG_FILES="$CONFIG_FILES src/filed/Makefile" ;;
34881 "src/filed/bacula-fd.conf") CONFIG_FILES="$CONFIG_FILES src/filed/bacula-fd.conf" ;;
34882 "src/cats/Makefile") CONFIG_FILES="$CONFIG_FILES src/cats/Makefile" ;;
34883 "src/cats/make_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup" ;;
34884 "src/cats/delete_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/delete_catalog_backup" ;;
34885 "src/cats/create_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_postgresql_database" ;;
34886 "src/cats/update_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_postgresql_tables" ;;
34887 "src/cats/make_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_postgresql_tables" ;;
34888 "src/cats/grant_postgresql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_postgresql_privileges" ;;
34889 "src/cats/drop_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_tables" ;;
34890 "src/cats/drop_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_database" ;;
34891 "src/cats/create_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_mysql_database" ;;
34892 "src/cats/update_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_mysql_tables" ;;
34893 "src/cats/make_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_mysql_tables" ;;
34894 "src/cats/grant_mysql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_mysql_privileges" ;;
34895 "src/cats/drop_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_tables" ;;
34896 "src/cats/drop_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_database" ;;
34897 "src/cats/create_sqlite_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite_database" ;;
34898 "src/cats/update_sqlite_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite_tables" ;;
34899 "src/cats/make_sqlite_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite_tables" ;;
34900 "src/cats/grant_sqlite_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite_privileges" ;;
34901 "src/cats/drop_sqlite_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_tables" ;;
34902 "src/cats/drop_sqlite_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_database" ;;
34903 "src/cats/create_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite3_database" ;;
34904 "src/cats/update_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite3_tables" ;;
34905 "src/cats/make_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite3_tables" ;;
34906 "src/cats/grant_sqlite3_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite3_privileges" ;;
34907 "src/cats/drop_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_tables" ;;
34908 "src/cats/drop_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_database" ;;
34909 "src/cats/sqlite") CONFIG_FILES="$CONFIG_FILES src/cats/sqlite" ;;
34910 "src/cats/mysql") CONFIG_FILES="$CONFIG_FILES src/cats/mysql" ;;
34911 "src/cats/create_bdb_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_bdb_database" ;;
34912 "src/cats/update_bdb_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_bdb_tables" ;;
34913 "src/cats/make_bdb_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_bdb_tables" ;;
34914 "src/cats/grant_bdb_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_bdb_privileges" ;;
34915 "src/cats/drop_bdb_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_tables" ;;
34916 "src/cats/drop_bdb_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_database" ;;
34917 "src/cats/create_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_bacula_database" ;;
34918 "src/cats/update_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_bacula_tables" ;;
34919 "src/cats/grant_bacula_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_bacula_privileges" ;;
34920 "src/cats/make_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_bacula_tables" ;;
34921 "src/cats/drop_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_tables" ;;
34922 "src/cats/drop_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_database" ;;
34923 "src/findlib/Makefile") CONFIG_FILES="$CONFIG_FILES src/findlib/Makefile" ;;
34924 "src/tools/Makefile") CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
34925 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
34926 "$PFILES") CONFIG_FILES="$CONFIG_FILES $PFILES" ;;
34927 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
34929 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
34930 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
34931 { (exit 1); exit 1; }; };;
34936 # If the user did not use the arguments to specify the items to instantiate,
34937 # then the envvar interface is used. Set only those that are not.
34938 # We use the long form for the default assignment because of an extremely
34939 # bizarre bug on SunOS 4.1.3.
34940 if $ac_need_defaults; then
34941 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
34942 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
34943 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
34946 # Have a temporary directory for convenience. Make it in the build tree
34947 # simply because there is no reason against having it here, and in addition,
34948 # creating and moving files from /tmp can sometimes cause problems.
34949 # Hook for its removal unless debugging.
34950 # Note that there is a small window in which the directory will not be cleaned:
34951 # after its creation but before its name has been assigned to `$tmp'.
34955 trap 'exit_status=$?
34956 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
34958 trap '{ (exit 1); exit 1; }' 1 2 13 15
34960 # Create a (secure) tmp directory for tmp files.
34963 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
34964 test -n "$tmp" && test -d "$tmp"
34967 tmp=./conf$$-$RANDOM
34968 (umask 077 && mkdir "$tmp")
34971 echo "$me: cannot create a temporary directory in ." >&2
34972 { (exit 1); exit 1; }
34976 # Set up the sed scripts for CONFIG_FILES section.
34979 # No need to generate the scripts if there are no CONFIG_FILES.
34980 # This happens for instance when ./config.status config.h
34981 if test -n "$CONFIG_FILES"; then
34985 # Create sed commands to just substitute file output variables.
34987 # Remaining file output variables are in a fragment that also has non-file
34993 for ac_last_try in false false false false false :; do
34994 cat >conf$$subs.sed <<_ACEOF
34995 SHELL!$SHELL$ac_delim
34996 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
34997 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
34998 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
34999 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
35000 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
35001 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
35002 exec_prefix!$exec_prefix$ac_delim
35003 prefix!$prefix$ac_delim
35004 program_transform_name!$program_transform_name$ac_delim
35005 bindir!$bindir$ac_delim
35006 sbindir!$sbindir$ac_delim
35007 libexecdir!$libexecdir$ac_delim
35008 datarootdir!$datarootdir$ac_delim
35009 datadir!$datadir$ac_delim
35010 sysconfdir!$sysconfdir$ac_delim
35011 sharedstatedir!$sharedstatedir$ac_delim
35012 localstatedir!$localstatedir$ac_delim
35013 includedir!$includedir$ac_delim
35014 oldincludedir!$oldincludedir$ac_delim
35015 docdir!$docdir$ac_delim
35016 infodir!$infodir$ac_delim
35017 htmldir!$htmldir$ac_delim
35018 dvidir!$dvidir$ac_delim
35019 pdfdir!$pdfdir$ac_delim
35020 psdir!$psdir$ac_delim
35021 libdir!$libdir$ac_delim
35022 localedir!$localedir$ac_delim
35023 mandir!$mandir$ac_delim
35024 DEFS!$DEFS$ac_delim
35025 ECHO_C!$ECHO_C$ac_delim
35026 ECHO_N!$ECHO_N$ac_delim
35027 ECHO_T!$ECHO_T$ac_delim
35028 LIBS!$LIBS$ac_delim
35029 build_alias!$build_alias$ac_delim
35030 host_alias!$host_alias$ac_delim
35031 target_alias!$target_alias$ac_delim
35032 BUILD_DIR!$BUILD_DIR$ac_delim
35033 TOP_DIR!$TOP_DIR$ac_delim
35034 TRUEPRG!$TRUEPRG$ac_delim
35035 FALSEPRG!$FALSEPRG$ac_delim
35036 VERSION!$VERSION$ac_delim
35037 DATE!$DATE$ac_delim
35038 LSMDATE!$LSMDATE$ac_delim
35040 CFLAGS!$CFLAGS$ac_delim
35041 LDFLAGS!$LDFLAGS$ac_delim
35042 CPPFLAGS!$CPPFLAGS$ac_delim
35043 ac_ct_CC!$ac_ct_CC$ac_delim
35044 EXEEXT!$EXEEXT$ac_delim
35045 OBJEXT!$OBJEXT$ac_delim
35047 CXXFLAGS!$CXXFLAGS$ac_delim
35048 ac_ct_CXX!$ac_ct_CXX$ac_delim
35050 GREP!$GREP$ac_delim
35051 EGREP!$EGREP$ac_delim
35052 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
35053 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
35054 INSTALL_DATA!$INSTALL_DATA$ac_delim
35055 RANLIB!$RANLIB$ac_delim
35060 ECHO!$ECHO$ac_delim
35064 OPENSSL!$OPENSSL$ac_delim
35067 MKISOFS!$MKISOFS$ac_delim
35068 PYTHON!$PYTHON$ac_delim
35069 GROWISOFS!$GROWISOFS$ac_delim
35070 DVDRWMEDIAINFO!$DVDRWMEDIAINFO$ac_delim
35071 DVDRWFORMAT!$DVDRWFORMAT$ac_delim
35072 PKGCONFIG!$PKGCONFIG$ac_delim
35073 WXCONFIG!$WXCONFIG$ac_delim
35074 WXFLAGS!$WXFLAGS$ac_delim
35075 CDRECORD!$CDRECORD$ac_delim
35076 PIDOF!$PIDOF$ac_delim
35078 ARFLAGS!$ARFLAGS$ac_delim
35079 MAKE_SHELL!$MAKE_SHELL$ac_delim
35080 LOCAL_LIBS!$LOCAL_LIBS$ac_delim
35081 LOCAL_CFLAGS!$LOCAL_CFLAGS$ac_delim
35082 LOCAL_LDFLAGS!$LOCAL_LDFLAGS$ac_delim
35083 LOCAL_DEFS!$LOCAL_DEFS$ac_delim
35084 build!$build$ac_delim
35085 build_cpu!$build_cpu$ac_delim
35086 build_vendor!$build_vendor$ac_delim
35087 build_os!$build_os$ac_delim
35088 host!$host$ac_delim
35091 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 94; then
35093 elif $ac_last_try; then
35094 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
35095 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
35096 { (exit 1); exit 1; }; }
35098 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
35102 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
35103 if test -n "$ac_eof"; then
35104 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
35105 ac_eof=`expr $ac_eof + 1`
35108 cat >>$CONFIG_STATUS <<_ACEOF
35109 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
35110 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
35111 /^[ ]*@MCOMMON@[ ]*$/{
35117 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
35118 s/^/s,@/; s/!/@,|#_!!_#|/
35121 s/'"$ac_delim"'$/,g/; t
35123 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
35124 ' >>$CONFIG_STATUS <conf$$subs.sed
35125 rm -f conf$$subs.sed
35126 cat >>$CONFIG_STATUS <<_ACEOF
35132 for ac_last_try in false false false false false :; do
35133 cat >conf$$subs.sed <<_ACEOF
35134 host_cpu!$host_cpu$ac_delim
35135 host_vendor!$host_vendor$ac_delim
35136 host_os!$host_os$ac_delim
35137 HAVE_SUN_OS_TRUE!$HAVE_SUN_OS_TRUE$ac_delim
35138 HAVE_SUN_OS_FALSE!$HAVE_SUN_OS_FALSE$ac_delim
35139 HAVE_OSF1_OS_TRUE!$HAVE_OSF1_OS_TRUE$ac_delim
35140 HAVE_OSF1_OS_FALSE!$HAVE_OSF1_OS_FALSE$ac_delim
35141 HAVE_AIX_OS_TRUE!$HAVE_AIX_OS_TRUE$ac_delim
35142 HAVE_AIX_OS_FALSE!$HAVE_AIX_OS_FALSE$ac_delim
35143 HAVE_HPUX_OS_TRUE!$HAVE_HPUX_OS_TRUE$ac_delim
35144 HAVE_HPUX_OS_FALSE!$HAVE_HPUX_OS_FALSE$ac_delim
35145 HAVE_LINUX_OS_TRUE!$HAVE_LINUX_OS_TRUE$ac_delim
35146 HAVE_LINUX_OS_FALSE!$HAVE_LINUX_OS_FALSE$ac_delim
35147 HAVE_FREEBSD_OS_TRUE!$HAVE_FREEBSD_OS_TRUE$ac_delim
35148 HAVE_FREEBSD_OS_FALSE!$HAVE_FREEBSD_OS_FALSE$ac_delim
35149 HAVE_NETBSD_OS_TRUE!$HAVE_NETBSD_OS_TRUE$ac_delim
35150 HAVE_NETBSD_OS_FALSE!$HAVE_NETBSD_OS_FALSE$ac_delim
35151 HAVE_OPENBSD_OS_TRUE!$HAVE_OPENBSD_OS_TRUE$ac_delim
35152 HAVE_OPENBSD_OS_FALSE!$HAVE_OPENBSD_OS_FALSE$ac_delim
35153 HAVE_BSDI_OS_TRUE!$HAVE_BSDI_OS_TRUE$ac_delim
35154 HAVE_BSDI_OS_FALSE!$HAVE_BSDI_OS_FALSE$ac_delim
35155 HAVE_SGI_OS_TRUE!$HAVE_SGI_OS_TRUE$ac_delim
35156 HAVE_SGI_OS_FALSE!$HAVE_SGI_OS_FALSE$ac_delim
35157 HAVE_IRIX_OS_TRUE!$HAVE_IRIX_OS_TRUE$ac_delim
35158 HAVE_IRIX_OS_FALSE!$HAVE_IRIX_OS_FALSE$ac_delim
35159 HAVE_DARWIN_OS_TRUE!$HAVE_DARWIN_OS_TRUE$ac_delim
35160 HAVE_DARWIN_OS_FALSE!$HAVE_DARWIN_OS_FALSE$ac_delim
35161 SET_MAKE!$SET_MAKE$ac_delim
35162 MKINSTALLDIRS!$MKINSTALLDIRS$ac_delim
35163 USE_NLS!$USE_NLS$ac_delim
35164 MSGFMT!$MSGFMT$ac_delim
35165 GMSGFMT!$GMSGFMT$ac_delim
35166 XGETTEXT!$XGETTEXT$ac_delim
35167 MSGMERGE!$MSGMERGE$ac_delim
35168 INTL_MACOSX_LIBS!$INTL_MACOSX_LIBS$ac_delim
35169 LIBICONV!$LIBICONV$ac_delim
35170 LTLIBICONV!$LTLIBICONV$ac_delim
35171 INTLLIBS!$INTLLIBS$ac_delim
35172 LIBINTL!$LIBINTL$ac_delim
35173 LTLIBINTL!$LTLIBINTL$ac_delim
35174 POSUB!$POSUB$ac_delim
35175 GLIBC2!$GLIBC2$ac_delim
35176 ALLOCA!$ALLOCA$ac_delim
35177 GLIBC21!$GLIBC21$ac_delim
35178 HAVE_POSIX_PRINTF!$HAVE_POSIX_PRINTF$ac_delim
35179 HAVE_ASPRINTF!$HAVE_ASPRINTF$ac_delim
35180 HAVE_SNPRINTF!$HAVE_SNPRINTF$ac_delim
35181 HAVE_WPRINTF!$HAVE_WPRINTF$ac_delim
35182 INTLBISON!$INTLBISON$ac_delim
35183 BUILD_INCLUDED_LIBINTL!$BUILD_INCLUDED_LIBINTL$ac_delim
35184 USE_INCLUDED_LIBINTL!$USE_INCLUDED_LIBINTL$ac_delim
35185 CATOBJEXT!$CATOBJEXT$ac_delim
35186 DATADIRNAME!$DATADIRNAME$ac_delim
35187 INSTOBJEXT!$INSTOBJEXT$ac_delim
35188 GENCAT!$GENCAT$ac_delim
35189 INTLOBJS!$INTLOBJS$ac_delim
35190 INTL_LIBTOOL_SUFFIX_PREFIX!$INTL_LIBTOOL_SUFFIX_PREFIX$ac_delim
35191 GNOME_INCLUDEDIR!$GNOME_INCLUDEDIR$ac_delim
35192 GNOMEUI_LIBS!$GNOMEUI_LIBS$ac_delim
35193 GNOME_LIBDIR!$GNOME_LIBDIR$ac_delim
35194 GNOME_LIBS!$GNOME_LIBS$ac_delim
35195 GNOME_DIR!$GNOME_DIR$ac_delim
35196 BAT_DIR!$BAT_DIR$ac_delim
35197 QWT_INC!$QWT_INC$ac_delim
35198 QWT_LDFLAGS!$QWT_LDFLAGS$ac_delim
35199 WXCONS_CPPFLAGS!$WXCONS_CPPFLAGS$ac_delim
35200 WXCONS_LDFLAGS!$WXCONS_LDFLAGS$ac_delim
35201 WX_DIR!$WX_DIR$ac_delim
35202 TRAY_MONITOR_CPPFLAGS!$TRAY_MONITOR_CPPFLAGS$ac_delim
35203 TRAY_MONITOR_LDFLAGS!$TRAY_MONITOR_LDFLAGS$ac_delim
35204 TRAY_MONITOR_DIR!$TRAY_MONITOR_DIR$ac_delim
35205 TTOOL_LDFLAGS!$TTOOL_LDFLAGS$ac_delim
35206 STATIC_FD!$STATIC_FD$ac_delim
35207 STATIC_SD!$STATIC_SD$ac_delim
35208 STATIC_DIR!$STATIC_DIR$ac_delim
35209 STATIC_CONS!$STATIC_CONS$ac_delim
35210 STATIC_GNOME_CONS!$STATIC_GNOME_CONS$ac_delim
35211 STATIC_WX_CONS!$STATIC_WX_CONS$ac_delim
35212 ALL_DIRS!$ALL_DIRS$ac_delim
35213 DIRD_DIR!$DIRD_DIR$ac_delim
35214 DIR_TOOLS!$DIR_TOOLS$ac_delim
35215 STORED_DIR!$STORED_DIR$ac_delim
35216 CONS_INC!$CONS_INC$ac_delim
35217 CONS_OBJ!$CONS_OBJ$ac_delim
35218 CONS_SRC!$CONS_SRC$ac_delim
35219 CONS_LIBS!$CONS_LIBS$ac_delim
35220 CONS_LDFLAGS!$CONS_LDFLAGS$ac_delim
35221 READLINE_SRC!$READLINE_SRC$ac_delim
35222 PYTHON_LIBS!$PYTHON_LIBS$ac_delim
35223 PYTHON_INCDIR!$PYTHON_INCDIR$ac_delim
35224 OPENSSL_LIBS!$OPENSSL_LIBS$ac_delim
35225 OPENSSL_INC!$OPENSSL_INC$ac_delim
35226 working_dir!$working_dir$ac_delim
35227 scriptdir!$scriptdir$ac_delim
35228 dump_email!$dump_email$ac_delim
35229 job_email!$job_email$ac_delim
35230 smtp_host!$smtp_host$ac_delim
35233 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
35235 elif $ac_last_try; then
35236 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
35237 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
35238 { (exit 1); exit 1; }; }
35240 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
35244 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
35245 if test -n "$ac_eof"; then
35246 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
35247 ac_eof=`expr $ac_eof + 1`
35250 cat >>$CONFIG_STATUS <<_ACEOF
35251 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
35252 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
35255 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
35256 s/^/s,@/; s/!/@,|#_!!_#|/
35259 s/'"$ac_delim"'$/,g/; t
35261 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
35262 ' >>$CONFIG_STATUS <conf$$subs.sed
35263 rm -f conf$$subs.sed
35264 cat >>$CONFIG_STATUS <<_ACEOF
35270 for ac_last_try in false false false false false :; do
35271 cat >conf$$subs.sed <<_ACEOF
35272 piddir!$piddir$ac_delim
35273 subsysdir!$subsysdir$ac_delim
35274 baseport!$baseport$ac_delim
35275 dir_port!$dir_port$ac_delim
35276 fd_port!$fd_port$ac_delim
35277 sd_port!$sd_port$ac_delim
35278 dir_password!$dir_password$ac_delim
35279 fd_password!$fd_password$ac_delim
35280 sd_password!$sd_password$ac_delim
35281 mon_dir_password!$mon_dir_password$ac_delim
35282 mon_fd_password!$mon_fd_password$ac_delim
35283 mon_sd_password!$mon_sd_password$ac_delim
35284 db_name!$db_name$ac_delim
35285 db_user!$db_user$ac_delim
35286 dir_user!$dir_user$ac_delim
35287 dir_group!$dir_group$ac_delim
35288 sd_user!$sd_user$ac_delim
35289 sd_group!$sd_group$ac_delim
35290 fd_user!$fd_user$ac_delim
35291 fd_group!$fd_group$ac_delim
35292 SBINPERM!$SBINPERM$ac_delim
35293 SQL_LFLAGS!$SQL_LFLAGS$ac_delim
35294 SQL_INCLUDE!$SQL_INCLUDE$ac_delim
35295 SQL_BINDIR!$SQL_BINDIR$ac_delim
35296 cats!$cats$ac_delim
35297 DB_TYPE!$DB_TYPE$ac_delim
35298 GETCONF!$GETCONF$ac_delim
35299 XMKMF!$XMKMF$ac_delim
35300 X_CFLAGS!$X_CFLAGS$ac_delim
35301 X_PRE_LIBS!$X_PRE_LIBS$ac_delim
35302 X_LIBS!$X_LIBS$ac_delim
35303 X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim
35304 LIBOBJS!$LIBOBJS$ac_delim
35305 FDLIBS!$FDLIBS$ac_delim
35306 DEBUG!$DEBUG$ac_delim
35307 DINCLUDE!$DINCLUDE$ac_delim
35308 DLIB!$DLIB$ac_delim
35309 DB_LIBS!$DB_LIBS$ac_delim
35310 WCFLAGS!$WCFLAGS$ac_delim
35311 WLDFLAGS!$WLDFLAGS$ac_delim
35312 WRAPLIBS!$WRAPLIBS$ac_delim
35313 OBJLIST!$OBJLIST$ac_delim
35314 hostname!$hostname$ac_delim
35315 TAPEDRIVE!$TAPEDRIVE$ac_delim
35316 PSCMD!$PSCMD$ac_delim
35317 WIN32!$WIN32$ac_delim
35318 MACOSX!$MACOSX$ac_delim
35319 DISTNAME!$DISTNAME$ac_delim
35320 DISTVER!$DISTVER$ac_delim
35321 LTLIBOBJS!$LTLIBOBJS$ac_delim
35324 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 50; then
35326 elif $ac_last_try; then
35327 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
35328 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
35329 { (exit 1); exit 1; }; }
35331 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
35335 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
35336 if test -n "$ac_eof"; then
35337 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
35338 ac_eof=`expr $ac_eof + 1`
35341 cat >>$CONFIG_STATUS <<_ACEOF
35342 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
35343 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
35346 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
35347 s/^/s,@/; s/!/@,|#_!!_#|/
35350 s/'"$ac_delim"'$/,g/; t
35352 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
35353 ' >>$CONFIG_STATUS <conf$$subs.sed
35354 rm -f conf$$subs.sed
35355 cat >>$CONFIG_STATUS <<_ACEOF
35362 # VPATH may cause trouble with some makes, so we remove $(srcdir),
35363 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
35364 # trailing colons and then remove the whole line if VPATH becomes empty
35365 # (actually we leave an empty line to preserve line numbers).
35366 if test "x$srcdir" = x.; then
35367 ac_vpsub='/^[ ]*VPATH[ ]*=/{
35368 s/:*\$(srcdir):*/:/
35369 s/:*\${srcdir}:*/:/
35371 s/^\([^=]*=[ ]*\):*/\1/
35377 cat >>$CONFIG_STATUS <<\_ACEOF
35378 fi # test -n "$CONFIG_FILES"
35381 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
35384 :[FHLC]) ac_mode=$ac_tag; continue;;
35386 case $ac_mode$ac_tag in
35388 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
35389 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
35390 { (exit 1); exit 1; }; };;
35391 :[FH]-) ac_tag=-:-;;
35392 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
35409 -) ac_f="$tmp/stdin";;
35410 *) # Look for the file first in the build tree, then in the source tree
35411 # (if the path is not absolute). The absolute path cannot be DOS-style,
35412 # because $ac_f cannot contain `:'.
35416 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
35418 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
35419 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
35420 { (exit 1); exit 1; }; };;
35422 ac_file_inputs="$ac_file_inputs $ac_f"
35425 # Let's still pretend it is `configure' which instantiates (i.e., don't
35426 # use $as_me), people would be surprised to read:
35427 # /* config.h. Generated by config.status. */
35428 configure_input="Generated from "`IFS=:
35429 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
35430 if test x"$ac_file" != x-; then
35431 configure_input="$ac_file. $configure_input"
35432 { echo "$as_me:$LINENO: creating $ac_file" >&5
35433 echo "$as_me: creating $ac_file" >&6;}
35437 *:-:* | *:-) cat >"$tmp/stdin";;
35442 ac_dir=`$as_dirname -- "$ac_file" ||
35443 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35444 X"$ac_file" : 'X\(//\)[^/]' \| \
35445 X"$ac_file" : 'X\(//\)$' \| \
35446 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
35448 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35452 /^X\(\/\/\)[^/].*/{
35467 -*) as_dir=./$as_dir;;
35469 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
35473 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
35474 *) as_qdir=$as_dir;;
35476 as_dirs="'$as_qdir' $as_dirs"
35477 as_dir=`$as_dirname -- "$as_dir" ||
35478 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35479 X"$as_dir" : 'X\(//\)[^/]' \| \
35480 X"$as_dir" : 'X\(//\)$' \| \
35481 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
35483 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35487 /^X\(\/\/\)[^/].*/{
35500 test -d "$as_dir" && break
35502 test -z "$as_dirs" || eval "mkdir $as_dirs"
35503 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
35504 echo "$as_me: error: cannot create directory $as_dir" >&2;}
35505 { (exit 1); exit 1; }; }; }
35509 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
35511 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
35512 # A ".." for each directory in $ac_dir_suffix.
35513 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
35514 case $ac_top_builddir_sub in
35515 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
35516 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
35519 ac_abs_top_builddir=$ac_pwd
35520 ac_abs_builddir=$ac_pwd$ac_dir_suffix
35521 # for backward compatibility:
35522 ac_top_builddir=$ac_top_build_prefix
35525 .) # We are building in place.
35527 ac_top_srcdir=$ac_top_builddir_sub
35528 ac_abs_top_srcdir=$ac_pwd ;;
35529 [\\/]* | ?:[\\/]* ) # Absolute name.
35530 ac_srcdir=$srcdir$ac_dir_suffix;
35531 ac_top_srcdir=$srcdir
35532 ac_abs_top_srcdir=$srcdir ;;
35533 *) # Relative name.
35534 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
35535 ac_top_srcdir=$ac_top_build_prefix$srcdir
35536 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
35538 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
35548 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
35549 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
35553 cat >>$CONFIG_STATUS <<\_ACEOF
35554 # If the template does not know about datarootdir, expand it.
35555 # FIXME: This hack should be removed a few years after 2.60.
35556 ac_datarootdir_hack=; ac_datarootdir_seen=
35558 case `sed -n '/datarootdir/ {
35567 ' $ac_file_inputs` in
35568 *datarootdir*) ac_datarootdir_seen=yes;;
35569 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
35570 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
35571 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
35573 cat >>$CONFIG_STATUS <<_ACEOF
35574 ac_datarootdir_hack='
35575 s&@datadir@&$datadir&g
35576 s&@docdir@&$docdir&g
35577 s&@infodir@&$infodir&g
35578 s&@localedir@&$localedir&g
35579 s&@mandir@&$mandir&g
35580 s&\\\${datarootdir}&$datarootdir&g' ;;
35584 # Neutralize VPATH when `$srcdir' = `.'.
35585 # Shell code in configure.ac might set extrasub.
35586 # FIXME: do we really want to maintain this feature?
35587 cat >>$CONFIG_STATUS <<_ACEOF
35591 cat >>$CONFIG_STATUS <<\_ACEOF
35593 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
35594 s&@configure_input@&$configure_input&;t t
35595 s&@top_builddir@&$ac_top_builddir_sub&;t t
35596 s&@srcdir@&$ac_srcdir&;t t
35597 s&@abs_srcdir@&$ac_abs_srcdir&;t t
35598 s&@top_srcdir@&$ac_top_srcdir&;t t
35599 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
35600 s&@builddir@&$ac_builddir&;t t
35601 s&@abs_builddir@&$ac_abs_builddir&;t t
35602 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
35603 s&@INSTALL@&$ac_INSTALL&;t t
35604 $ac_datarootdir_hack
35605 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
35607 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
35608 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
35609 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
35610 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
35611 which seems to be undefined. Please make sure it is defined." >&5
35612 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
35613 which seems to be undefined. Please make sure it is defined." >&2;}
35617 -) cat "$tmp/out"; rm -f "$tmp/out";;
35618 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
35627 # Transform confdefs.h into a sed script `conftest.defines', that
35628 # substitutes the proper values into config.h.in to produce config.h.
35629 rm -f conftest.defines conftest.tail
35630 # First, append a space to every undef/define line, to ease matching.
35631 echo 's/$/ /' >conftest.defines
35632 # Then, protect against being on the right side of a sed subst, or in
35633 # an unquoted here document, in config.status. If some macros were
35634 # called several times there might be several #defines for the same
35635 # symbol, which is useless. But do not sort them, since the last
35636 # AC_DEFINE must be honored.
35637 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
35638 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
35639 # NAME is the cpp macro being defined, VALUE is the value it is being given.
35640 # PARAMS is the parameter list in the macro definition--in most cases, it's
35641 # just an empty string.
35642 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
35643 ac_dB='\\)[ (].*,\\1define\\2'
35651 s/^[ ]*#[ ]*define[ ][ ]*//
35656 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
35657 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
35658 ' >>conftest.defines
35660 # Remove the space that was appended to ease matching.
35661 # Then replace #undef with comments. This is necessary, for
35662 # example, in the case of _POSIX_SOURCE, which is predefined and required
35663 # on some systems where configure will not decide to define it.
35664 # (The regexp can be short, since the line contains either #define or #undef.)
35666 s,^[ #]*u.*,/* & */,' >>conftest.defines
35668 # Break up conftest.defines:
35669 ac_max_sed_lines=50
35671 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
35672 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
35673 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
35675 ac_in='$ac_file_inputs'
35676 ac_out='"$tmp/out1"'
35677 ac_nxt='"$tmp/out2"'
35681 # Write a here document:
35682 cat >>$CONFIG_STATUS <<_ACEOF
35683 # First, check the format of the line:
35684 cat >"\$tmp/defines.sed" <<\\CEOF
35685 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
35686 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
35690 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
35692 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
35693 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
35694 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
35695 grep . conftest.tail >/dev/null || break
35696 rm -f conftest.defines
35697 mv conftest.tail conftest.defines
35699 rm -f conftest.defines conftest.tail
35701 echo "ac_result=$ac_in" >>$CONFIG_STATUS
35702 cat >>$CONFIG_STATUS <<\_ACEOF
35703 if test x"$ac_file" != x-; then
35704 echo "/* $configure_input */" >"$tmp/config.h"
35705 cat "$ac_result" >>"$tmp/config.h"
35706 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
35707 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
35708 echo "$as_me: $ac_file is unchanged" >&6;}
35711 mv "$tmp/config.h" $ac_file
35714 echo "/* $configure_input */"
35720 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
35721 echo "$as_me: executing $ac_file commands" >&6;}
35726 case $ac_file$ac_mode in
35728 for ac_file in $CONFIG_FILES; do
35729 # Support "outfile[:infile[:infile...]]"
35731 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
35733 # PO directories have a Makefile.in generated from Makefile.in.in.
35734 case "$ac_file" in */Makefile.in)
35735 # Adjust a relative srcdir.
35736 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
35737 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
35738 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
35739 # In autoconf-2.13 it is called $ac_given_srcdir.
35740 # In autoconf-2.50 it is called $srcdir.
35741 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
35742 case "$ac_given_srcdir" in
35743 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
35744 /*) top_srcdir="$ac_given_srcdir" ;;
35745 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
35747 # Treat a directory as a PO directory if and only if it has a
35748 # POTFILES.in file. This allows packages to have multiple PO
35749 # directories under different names or in different locations.
35750 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
35751 rm -f "$ac_dir/POTFILES"
35752 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
35753 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
35754 POMAKEFILEDEPS="POTFILES.in"
35755 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
35756 # on $ac_dir but don't depend on user-specified configuration
35758 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
35759 # The LINGUAS file contains the set of available languages.
35760 if test -n "$OBSOLETE_ALL_LINGUAS"; then
35761 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
35763 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
35764 # Hide the ALL_LINGUAS assigment from automake.
35765 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
35766 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
35768 # The set of available languages was given in configure.in.
35769 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
35772 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
35773 # Compute UPDATEPOFILES
35774 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
35775 # Compute DUMMYPOFILES
35776 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
35778 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
35779 case "$ac_given_srcdir" in
35781 *) srcdirpre='$(srcdir)/' ;;
35787 for lang in $ALL_LINGUAS; do
35788 POFILES="$POFILES $srcdirpre$lang.po"
35789 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
35790 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
35791 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
35793 # CATALOGS depends on both $ac_dir and the user's LINGUAS
35794 # environment variable.
35796 if test -n "$ALL_LINGUAS"; then
35797 for presentlang in $ALL_LINGUAS; do
35799 if test "%UNSET%" != "$LINGUAS"; then
35800 desiredlanguages="$LINGUAS"
35802 desiredlanguages="$ALL_LINGUAS"
35804 for desiredlang in $desiredlanguages; do
35805 # Use the presentlang catalog if desiredlang is
35806 # a. equal to presentlang, or
35807 # b. a variant of presentlang (because in this case,
35808 # presentlang can be used as a fallback for messages
35809 # which are not translated in the desiredlang catalog).
35810 case "$desiredlang" in
35811 "$presentlang"*) useit=yes;;
35814 if test $useit = yes; then
35815 INST_LINGUAS="$INST_LINGUAS $presentlang"
35820 if test -n "$INST_LINGUAS"; then
35821 for lang in $INST_LINGUAS; do
35822 CATALOGS="$CATALOGS $lang.gmo"
35825 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
35826 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"
35827 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
35828 if test -f "$f"; then
35830 *.orig | *.bak | *~) ;;
35831 *) cat "$f" >> "$ac_dir/Makefile" ;;
35839 "default":C) (echo "Doing make of dependencies"; ${MAKE:-make} depend;)
35846 { (exit 0); exit 0; }
35848 chmod +x $CONFIG_STATUS
35849 ac_clean_files=$ac_clean_files_save
35852 # configure is writing to config.log, and then calls config.status.
35853 # config.status does its own redirection, appending to config.log.
35854 # Unfortunately, on DOS this fails, as config.log is still kept open
35855 # by configure, so config.status won't be able to write to it; its
35856 # output is simply discarded. So we exec the FD to /dev/null,
35857 # effectively closing config.log, so it can be properly (re)opened and
35858 # appended to by config.status. When coming back to configure, we
35859 # need to make the FD available again.
35860 if test "$no_create" != yes; then
35862 ac_config_status_args=
35863 test "$silent" = yes &&
35864 ac_config_status_args="$ac_config_status_args --quiet"
35866 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
35868 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
35869 # would make configure fail if this is the last instruction.
35870 $ac_cs_success || { (exit 1); exit 1; }
35875 chmod 755 startmysql stopmysql bacula startit stopit btraceback mtx-changer
35876 chmod 755 dvd-handler dvd-simulator
35877 chmod 755 bconsole gconsole mtx-changer devel_bacula logrotate
35882 chmod 755 $c/create_bacula_database $c/update_bacula_tables $c/make_bacula_tables
35883 chmod 755 $c/grant_bacula_privileges $c/drop_bacula_tables $c/drop_bacula_database
35885 chmod 755 $c/create_bdb_database $c/update_bdb_tables $c/make_bdb_tables
35886 chmod 755 $c/grant_bdb_privileges $c/drop_bdb_tables $c/drop_bdb_database
35888 chmod 755 $c/create_mysql_database $c/update_mysql_tables $c/make_mysql_tables
35889 chmod 755 $c/grant_mysql_privileges $c/drop_mysql_tables $c/drop_mysql_database
35891 chmod 755 $c/create_sqlite_database $c/update_sqlite_tables $c/make_sqlite_tables
35892 chmod 755 $c/grant_sqlite_privileges $c/drop_sqlite_tables $c/drop_sqlite_database
35894 chmod 755 $c/create_sqlite3_database $c/update_sqlite3_tables $c/make_sqlite3_tables
35895 chmod 755 $c/grant_sqlite3_privileges $c/drop_sqlite3_tables $c/drop_sqlite3_database
35897 chmod 755 $c/create_postgresql_database $c/update_postgresql_tables $c/make_postgresql_tables
35898 chmod 755 $c/grant_postgresql_privileges $c/drop_postgresql_tables $c/drop_postgresql_database
35900 chmod 755 $c/make_catalog_backup $c/delete_catalog_backup
35901 chmod 755 $c/sqlite
35904 chmod 755 src/win32/build-depkgs-mingw32
35906 if test "${support_bat}" = "yes" ; then
35909 chmod 755 install_conf_file build-depkgs-qt-console
35910 echo "Creating bat Makefile"
35915 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
35916 largefile_support="yes"
35920 # A whole lot of hand springs to get the compiler version.
35921 # This is because gcc changed the output in version 3.0
35923 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 3 -d ' '`
35924 if test "x${CCVERSION}" = "x" ; then
35925 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 1 -d ' '`
35927 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
35928 if test x"${CXXVERSION}" = x ; then
35929 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
35932 if test "x${subsysdir}" = "x${sbindir}" ; then
35935 echo "You have set --sbindir and --with-subsys-dir"
35936 echo " both equal to: ${subsysdir} "
35937 echo " This is not permitted. Please reconfigure."
35939 echo "Aborting configuration ..."
35945 if test "x${db_type}" = "xInternal" ; then
35948 echo "You have not specified either --enable-client-only or one of the"
35949 echo " supported databases: MySQL, PostgreSQL, SQLite3 or SQLite."
35950 echo " This is not permitted. Please reconfigure."
35952 echo "Aborting the configuration ..."
35959 Configuration on `date`:
35961 Host: $host -- ${DISTNAME} ${DISTVER}
35962 Bacula version: ${VERSION} (${DATE})
35963 Source code location: ${srcdir}
35964 Install binaries: ${sbindir}
35965 Install config files: ${sysconfdir}
35966 Scripts directory: ${scriptdir}
35967 Working directory: ${working_dir}
35968 PID directory: ${piddir}
35969 Subsys directory: ${subsysdir}
35970 Man directory: ${mandir}
35971 Data directory: ${datadir}
35972 C Compiler: ${CC} ${CCVERSION}
35973 C++ Compiler: ${CXX} ${CXXVERSION}
35974 Compiler flags: ${WCFLAGS} ${CFLAGS}
35975 Linker flags: ${WLDFLAGS} ${LDFLAGS}
35977 Statically Linked Tools: ${support_static_tools}
35978 Statically Linked FD: ${support_static_fd}
35979 Statically Linked SD: ${support_static_sd}
35980 Statically Linked DIR: ${support_static_dir}
35981 Statically Linked CONS: ${support_static_cons}
35982 Database type: ${db_type}
35983 Database lib: ${DB_LIBS}
35984 Database name: ${db_name}
35985 Database user: ${db_user}
35987 Job Output Email: ${job_email}
35988 Traceback Email: ${dump_email}
35989 SMTP Host Address: ${smtp_host}
35991 Director Port: ${dir_port}
35992 File daemon Port: ${fd_port}
35993 Storage daemon Port: ${sd_port}
35995 Director User: ${dir_user}
35996 Director Group: ${dir_group}
35997 Storage Daemon User: ${sd_user}
35998 Storage DaemonGroup: ${sd_group}
35999 File Daemon User: ${fd_user}
36000 File Daemon Group: ${fd_group}
36002 SQL binaries Directory ${SQL_BINDIR}
36004 Large file support: $largefile_support
36005 Bacula conio support: ${got_conio} ${CONS_LIBS}
36006 readline support: ${got_readline} ${PRTREADLINE_SRC}
36007 TCP Wrappers support: ${TCPW_MSG} ${WRAPLIBS}
36008 TLS support: ${support_tls}
36009 Encryption support: ${support_crypto}
36010 ZLIB support: ${have_zlib}
36011 enable-smartalloc: ${support_smartalloc}
36012 bat support: ${support_bat} ${QWT_LDFLAGS}
36013 enable-gnome: ${support_gnome} ${gnome_version}
36014 enable-bwx-console: ${support_wx_console} ${wx_version}
36015 enable-tray-monitor: ${support_tray_monitor}
36016 client-only: ${build_client_only}
36017 build-dird: ${build_dird}
36018 build-stored: ${build_stored}
36019 ACL support: ${have_acl}
36020 Python support: ${support_python} ${PYTHON_LIBS}
36021 Batch insert enabled: ${support_batch_insert}